@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
1 lines • 2.01 kB
Source Map (JSON)
{"version":3,"file":"LevelsGroup.mjs","names":["classes"],"sources":["../../../src/components/LevelsGroup/LevelsGroup.tsx"],"sourcesContent":["import {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n MantineSize,\n StylesApiProps,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport classes from './LevelsGroup.module.css';\n\nexport type LevelsGroupStylesNames = 'levelsGroup';\n\nexport interface LevelsGroupProps\n extends BoxProps, StylesApiProps<LevelsGroupFactory>, ElementProps<'div'> {\n __staticSelector?: string;\n size?: MantineSize;\n\n /** Determines whether the group should take the full width of its container @default false */\n fullWidth?: boolean;\n}\n\nexport type LevelsGroupFactory = Factory<{\n props: LevelsGroupProps;\n ref: HTMLDivElement;\n stylesNames: LevelsGroupStylesNames;\n}>;\n\nexport const LevelsGroup = factory<LevelsGroupFactory>((_props) => {\n const props = useProps('LevelsGroup', null, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n __staticSelector,\n fullWidth,\n attributes,\n ...others\n } = props;\n\n const getStyles = useStyles<LevelsGroupFactory>({\n name: __staticSelector || 'LevelsGroup',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n attributes,\n vars,\n rootSelector: 'levelsGroup',\n });\n\n return <Box {...getStyles('levelsGroup')} data-full-width={fullWidth || undefined} {...others} />;\n});\n\nLevelsGroup.classes = classes;\nLevelsGroup.displayName = '@mantine/dates/LevelsGroup';\n"],"mappings":";;;;;AA8BA,MAAa,cAAc,SAA6B,WAAW;CACjE,MAAM,QAAQ,SAAS,eAAe,MAAM,MAAM;CAClD,MAAM,EACJ,YACA,WACA,OACA,QACA,UACA,MACA,kBACA,WACA,YACA,GAAG,WACD;CAgBJ,OAAO,oBAAC,KAAD;EAAK,GAdM,UAA8B;GAC9C,MAAM,oBAAoB;GAC1B,SAAA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,cAAc;EAChB,CAEwB,CAAC,CAAC,aAAa;EAAG,mBAAiB,aAAa,KAAA;EAAW,GAAI;CAAS,CAAA;AAClG,CAAC;AAED,YAAY,UAAUA;AACtB,YAAY,cAAc"}