@funidata/ngx-fudis
Version:
Funidata Design System.
18 lines (17 loc) • 905 B
TypeScript
import { FudisGridProperties, FudisGridPropertyCollection } from '../../types/grid';
/**
* Utility function used with GridDirective. Takes in object of Input() attributes and creates CSS
* classlist out of those to be passed to Grid element.
*/
export declare const getGridClasses: (values: FudisGridProperties) => string;
export declare const replaceFormInputWidthsToRem: (value: string) => string;
/**
* Utility function to convert parameters to either Grid CSS value 'grid-column-template' or CSS
* grid item value 'grid-column'
*/
export declare const getGridCssValue: (value: number | string, isGridItem?: boolean) => string;
/**
* Determine Grid Input Properties based on if Service defaults should be ignored or if application
* has provided values
*/
export declare const getValuesForCSSClasses: (properties: FudisGridPropertyCollection, serviceDefaults: boolean) => FudisGridProperties;