react-native-mantine 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -232
- package/lib/commonjs/components/ActionIcon/ActionIcon.js +1 -1
- package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/commonjs/components/Anchor/index.js +3 -4
- package/lib/commonjs/components/Anchor/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +1 -2
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Badge/index.js +54 -24
- package/lib/commonjs/components/Badge/index.js.map +1 -1
- package/lib/commonjs/components/Blockquote/index.js +4 -5
- package/lib/commonjs/components/Blockquote/index.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +7 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Center/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/index.js +4 -5
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +40 -21
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Code/index.js +6 -4
- package/lib/commonjs/components/Code/index.js.map +1 -1
- package/lib/commonjs/components/Grid/index.js +18 -13
- package/lib/commonjs/components/Grid/index.js.map +1 -1
- package/lib/commonjs/components/Highlight/index.js +1 -1
- package/lib/commonjs/components/Highlight/index.js.map +1 -1
- package/lib/commonjs/components/Indicator/index.js +2 -3
- package/lib/commonjs/components/Indicator/index.js.map +1 -1
- package/lib/commonjs/components/Menu/index.js +4 -5
- package/lib/commonjs/components/Menu/index.js.map +1 -1
- package/lib/commonjs/components/MultiSelect/index.js +8 -9
- package/lib/commonjs/components/MultiSelect/index.js.map +1 -1
- package/lib/commonjs/components/NativeSelect/index.js +14 -14
- package/lib/commonjs/components/NativeSelect/index.js.map +1 -1
- package/lib/commonjs/components/NavLink/index.js +43 -20
- package/lib/commonjs/components/NavLink/index.js.map +1 -1
- package/lib/commonjs/components/Notification/index.js +5 -6
- package/lib/commonjs/components/Notification/index.js.map +1 -1
- package/lib/commonjs/components/Pagination/index.js +5 -6
- package/lib/commonjs/components/Pagination/index.js.map +1 -1
- package/lib/commonjs/components/PinInput/index.js +3 -3
- package/lib/commonjs/components/PinInput/index.js.map +1 -1
- package/lib/commonjs/components/Progress/index.js +3 -5
- package/lib/commonjs/components/Progress/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js +4 -5
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Rating/index.js +2 -4
- package/lib/commonjs/components/Rating/index.js.map +1 -1
- package/lib/commonjs/components/RingProgress/index.js +79 -57
- package/lib/commonjs/components/RingProgress/index.js.map +1 -1
- package/lib/commonjs/components/Select/index.js +7 -8
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/SimpleGrid/index.js +4 -2
- package/lib/commonjs/components/SimpleGrid/index.js.map +1 -1
- package/lib/commonjs/components/Spoiler/index.js +1 -1
- package/lib/commonjs/components/Spoiler/index.js.map +1 -1
- package/lib/commonjs/components/Stepper/index.js +8 -6
- package/lib/commonjs/components/Stepper/index.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js +4 -5
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Table/index.js +257 -273
- package/lib/commonjs/components/Table/index.js.map +1 -1
- package/lib/commonjs/components/Text/index.js +78 -17
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/ThemeIcon/index.js +40 -19
- package/lib/commonjs/components/ThemeIcon/index.js.map +1 -1
- package/lib/commonjs/components/Timeline/index.js +6 -5
- package/lib/commonjs/components/Timeline/index.js.map +1 -1
- package/lib/commonjs/components/Title/index.js +5 -17
- package/lib/commonjs/components/Title/index.js.map +1 -1
- package/lib/commonjs/components/Tooltip/index.js +1 -2
- package/lib/commonjs/components/Tooltip/index.js.map +1 -1
- package/lib/commonjs/components/TransferList/index.js +9 -10
- package/lib/commonjs/components/TransferList/index.js.map +1 -1
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js +2 -2
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js.map +1 -1
- package/lib/commonjs/components/index.js +29 -29
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/index.js +34 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theme/create-theme.js +114 -25
- package/lib/commonjs/theme/create-theme.js.map +1 -1
- package/lib/commonjs/theme/default-colors.js +103 -0
- package/lib/commonjs/theme/default-colors.js.map +1 -0
- package/lib/commonjs/theme/default-theme.js +144 -128
- package/lib/commonjs/theme/default-theme.js.map +1 -1
- package/lib/commonjs/theme/functions/attach-functions.js +46 -14
- package/lib/commonjs/theme/functions/attach-functions.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/breakpoints.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/color-scheme-value.js +190 -0
- package/lib/commonjs/theme/functions/fns/color-scheme-value.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/dimmed.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/gradient/gradient.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/helpers.js +51 -3
- package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/index.js +151 -6
- package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/primary-shade.js +81 -2
- package/lib/commonjs/theme/functions/fns/primary-shade.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/shadow.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/size.js +2 -1
- package/lib/commonjs/theme/functions/fns/size.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/theme-color/color-utils.js +196 -0
- package/lib/commonjs/theme/functions/fns/theme-color/color-utils.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +92 -9
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/variant.js +112 -17
- package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
- package/lib/commonjs/theme/functions/index.js +172 -0
- package/lib/commonjs/theme/functions/index.js.map +1 -0
- package/lib/commonjs/theme/index.js +116 -14
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/theme-provider.js +1 -22
- package/lib/commonjs/theme/theme-provider.js.map +1 -1
- package/lib/commonjs/theme/types.js +6 -0
- package/lib/commonjs/theme/types.js.map +1 -0
- package/lib/commonjs/theme/utils/withTextWrapper.js +1 -2
- package/lib/commonjs/theme/utils/withTextWrapper.js.map +1 -1
- package/lib/module/components/ActionIcon/ActionIcon.js +1 -1
- package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/module/components/Anchor/index.js +3 -4
- package/lib/module/components/Anchor/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +1 -2
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Badge/index.js +54 -24
- package/lib/module/components/Badge/index.js.map +1 -1
- package/lib/module/components/Blockquote/index.js +4 -5
- package/lib/module/components/Blockquote/index.js.map +1 -1
- package/lib/module/components/Button/index.js +7 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Center/index.js.map +1 -1
- package/lib/module/components/Checkbox/index.js +4 -5
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Chip/index.js +40 -21
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Code/index.js +6 -4
- package/lib/module/components/Code/index.js.map +1 -1
- package/lib/module/components/Grid/index.js +18 -13
- package/lib/module/components/Grid/index.js.map +1 -1
- package/lib/module/components/Highlight/index.js +1 -1
- package/lib/module/components/Highlight/index.js.map +1 -1
- package/lib/module/components/Indicator/index.js +2 -3
- package/lib/module/components/Indicator/index.js.map +1 -1
- package/lib/module/components/Menu/index.js +4 -5
- package/lib/module/components/Menu/index.js.map +1 -1
- package/lib/module/components/MultiSelect/index.js +8 -9
- package/lib/module/components/MultiSelect/index.js.map +1 -1
- package/lib/module/components/NativeSelect/index.js +14 -14
- package/lib/module/components/NativeSelect/index.js.map +1 -1
- package/lib/module/components/NavLink/index.js +43 -20
- package/lib/module/components/NavLink/index.js.map +1 -1
- package/lib/module/components/Notification/index.js +5 -6
- package/lib/module/components/Notification/index.js.map +1 -1
- package/lib/module/components/Pagination/index.js +5 -6
- package/lib/module/components/Pagination/index.js.map +1 -1
- package/lib/module/components/PinInput/index.js +3 -3
- package/lib/module/components/PinInput/index.js.map +1 -1
- package/lib/module/components/Progress/index.js +3 -5
- package/lib/module/components/Progress/index.js.map +1 -1
- package/lib/module/components/Radio/index.js +4 -5
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Rating/index.js +2 -4
- package/lib/module/components/Rating/index.js.map +1 -1
- package/lib/module/components/RingProgress/index.js +80 -58
- package/lib/module/components/RingProgress/index.js.map +1 -1
- package/lib/module/components/Select/index.js +7 -8
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/SimpleGrid/index.js +4 -2
- package/lib/module/components/SimpleGrid/index.js.map +1 -1
- package/lib/module/components/Spoiler/index.js +1 -1
- package/lib/module/components/Spoiler/index.js.map +1 -1
- package/lib/module/components/Stepper/index.js +8 -6
- package/lib/module/components/Stepper/index.js.map +1 -1
- package/lib/module/components/Switch/index.js +4 -5
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Table/index.js +257 -274
- package/lib/module/components/Table/index.js.map +1 -1
- package/lib/module/components/Text/index.js +78 -17
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/ThemeIcon/index.js +40 -19
- package/lib/module/components/ThemeIcon/index.js.map +1 -1
- package/lib/module/components/Timeline/index.js +6 -5
- package/lib/module/components/Timeline/index.js.map +1 -1
- package/lib/module/components/Title/index.js +5 -17
- package/lib/module/components/Title/index.js.map +1 -1
- package/lib/module/components/Tooltip/index.js +1 -2
- package/lib/module/components/Tooltip/index.js.map +1 -1
- package/lib/module/components/TransferList/index.js +9 -10
- package/lib/module/components/TransferList/index.js.map +1 -1
- package/lib/module/components/UnstyledButton/UnstyledButton.styles.js +2 -2
- package/lib/module/components/UnstyledButton/UnstyledButton.styles.js.map +1 -1
- package/lib/module/components/index.js +3 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/theme/create-theme.js +114 -24
- package/lib/module/theme/create-theme.js.map +1 -1
- package/lib/module/theme/default-colors.js +99 -0
- package/lib/module/theme/default-colors.js.map +1 -0
- package/lib/module/theme/default-theme.js +143 -127
- package/lib/module/theme/default-theme.js.map +1 -1
- package/lib/module/theme/functions/attach-functions.js +47 -14
- package/lib/module/theme/functions/attach-functions.js.map +1 -1
- package/lib/module/theme/functions/fns/breakpoints.js.map +1 -1
- package/lib/module/theme/functions/fns/color-scheme-value.js +180 -0
- package/lib/module/theme/functions/fns/color-scheme-value.js.map +1 -0
- package/lib/module/theme/functions/fns/dimmed.js.map +1 -1
- package/lib/module/theme/functions/fns/gradient/gradient.js.map +1 -1
- package/lib/module/theme/functions/fns/helpers.js +48 -2
- package/lib/module/theme/functions/fns/helpers.js.map +1 -1
- package/lib/module/theme/functions/fns/index.js +35 -7
- package/lib/module/theme/functions/fns/index.js.map +1 -1
- package/lib/module/theme/functions/fns/primary-shade.js +78 -2
- package/lib/module/theme/functions/fns/primary-shade.js.map +1 -1
- package/lib/module/theme/functions/fns/shadow.js.map +1 -1
- package/lib/module/theme/functions/fns/size.js +2 -1
- package/lib/module/theme/functions/fns/size.js.map +1 -1
- package/lib/module/theme/functions/fns/theme-color/color-utils.js +189 -0
- package/lib/module/theme/functions/fns/theme-color/color-utils.js.map +1 -0
- package/lib/module/theme/functions/fns/theme-color/theme-color.js +91 -9
- package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
- package/lib/module/theme/functions/fns/variant.js +112 -17
- package/lib/module/theme/functions/fns/variant.js.map +1 -1
- package/lib/module/theme/functions/index.js +22 -0
- package/lib/module/theme/functions/index.js.map +1 -0
- package/lib/module/theme/index.js +16 -4
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/theme-provider.js +1 -22
- package/lib/module/theme/theme-provider.js.map +1 -1
- package/lib/module/theme/types.js +4 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/module/theme/utils/withTextWrapper.js +1 -2
- package/lib/module/theme/utils/withTextWrapper.js.map +1 -1
- package/lib/typescript/commonjs/src/components/Anchor/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts +8 -8
- package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Center/index.d.ts +1 -2
- package/lib/typescript/commonjs/src/components/Center/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Container/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Container/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Flex/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Flex/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Grid/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Highlight/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Indicator/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NavLink/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Notification/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Pagination/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/PinInput/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Progress/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Rating/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Table/index.d.ts +17 -83
- package/lib/typescript/commonjs/src/components/Table/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Text/index.d.ts +54 -7
- package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Timeline/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Title/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/TransferList/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/create-styles.d.ts +1 -1
- package/lib/typescript/commonjs/src/theme/create-styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/create-theme.d.ts +68 -2
- package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/default-colors.d.ts +12 -0
- package/lib/typescript/commonjs/src/theme/default-colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts +15 -108
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts +20 -1
- package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts +3 -3
- package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/color-scheme-value.d.ts +100 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/color-scheme-value.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts +2 -2
- package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts +2 -3
- package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +36 -8
- package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +40 -14
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts +53 -3
- package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/size.d.ts +2 -2
- package/lib/typescript/commonjs/src/theme/functions/fns/size.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/color-utils.d.ts +50 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/color-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +51 -5
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +52 -19
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/index.d.ts +19 -0
- package/lib/typescript/commonjs/src/theme/functions/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/index.d.ts +9 -6
- package/lib/typescript/commonjs/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/theme-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/types.d.ts +494 -0
- package/lib/typescript/commonjs/src/theme/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/utils/withTextWrapper.d.ts +1 -1
- package/lib/typescript/commonjs/src/theme/utils/withTextWrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Anchor/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Blockquote/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/Button.styles.d.ts +8 -8
- package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Center/index.d.ts +1 -2
- package/lib/typescript/module/src/components/Center/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Container/index.d.ts +2 -2
- package/lib/typescript/module/src/components/Container/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Flex/index.d.ts +2 -2
- package/lib/typescript/module/src/components/Flex/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Grid/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Highlight/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Indicator/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MultiSelect/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NativeSelect/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NavLink/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Notification/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Pagination/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/PinInput/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Progress/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Rating/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RingProgress/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SimpleGrid/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Table/index.d.ts +17 -83
- package/lib/typescript/module/src/components/Table/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Text/index.d.ts +54 -7
- package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Timeline/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Title/index.d.ts +1 -0
- package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Tooltip/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/TransferList/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts +2 -2
- package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/index.d.ts +1 -1
- package/lib/typescript/module/src/components/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/create-styles.d.ts +1 -1
- package/lib/typescript/module/src/theme/create-styles.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/create-theme.d.ts +68 -2
- package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/default-colors.d.ts +12 -0
- package/lib/typescript/module/src/theme/default-colors.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/default-theme.d.ts +15 -108
- package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/attach-functions.d.ts +20 -1
- package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts +3 -3
- package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/color-scheme-value.d.ts +100 -0
- package/lib/typescript/module/src/theme/functions/fns/color-scheme-value.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts +2 -2
- package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts +2 -3
- package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +36 -8
- package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts +40 -14
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts +53 -3
- package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts +1 -1
- package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/size.d.ts +2 -2
- package/lib/typescript/module/src/theme/functions/fns/size.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/theme-color/color-utils.d.ts +50 -0
- package/lib/typescript/module/src/theme/functions/fns/theme-color/color-utils.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +51 -5
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +52 -19
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/index.d.ts +19 -0
- package/lib/typescript/module/src/theme/functions/index.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/index.d.ts +9 -6
- package/lib/typescript/module/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/theme-provider.d.ts +1 -1
- package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/types.d.ts +494 -0
- package/lib/typescript/module/src/theme/types.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/utils/withTextWrapper.d.ts +1 -1
- package/lib/typescript/module/src/theme/utils/withTextWrapper.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ActionIcon/ActionIcon.tsx +3 -3
- package/src/components/Anchor/index.tsx +3 -4
- package/src/components/Avatar/index.tsx +1 -2
- package/src/components/Badge/index.tsx +36 -19
- package/src/components/Blockquote/index.tsx +4 -6
- package/src/components/Button/index.tsx +5 -1
- package/src/components/Center/index.tsx +1 -2
- package/src/components/Checkbox/index.tsx +4 -5
- package/src/components/Chip/index.tsx +25 -18
- package/src/components/Code/index.tsx +7 -5
- package/src/components/Container/index.tsx +2 -2
- package/src/components/Flex/index.tsx +2 -2
- package/src/components/Grid/index.tsx +16 -10
- package/src/components/Highlight/index.tsx +1 -2
- package/src/components/Indicator/index.tsx +3 -4
- package/src/components/Menu/index.tsx +8 -10
- package/src/components/MultiSelect/index.tsx +13 -15
- package/src/components/NativeSelect/index.tsx +34 -21
- package/src/components/NavLink/index.tsx +27 -23
- package/src/components/Notification/index.tsx +5 -6
- package/src/components/Pagination/index.tsx +5 -6
- package/src/components/PinInput/index.tsx +5 -6
- package/src/components/Progress/index.tsx +5 -6
- package/src/components/Radio/index.tsx +4 -5
- package/src/components/Rating/index.tsx +2 -4
- package/src/components/RingProgress/index.tsx +93 -62
- package/src/components/Select/index.tsx +11 -13
- package/src/components/SimpleGrid/index.tsx +5 -2
- package/src/components/Spoiler/index.tsx +1 -1
- package/src/components/Stepper/index.tsx +17 -17
- package/src/components/Switch/index.tsx +5 -6
- package/src/components/Table/index.tsx +333 -413
- package/src/components/Text/index.tsx +125 -28
- package/src/components/ThemeIcon/index.tsx +23 -23
- package/src/components/Timeline/index.tsx +12 -15
- package/src/components/Title/index.tsx +5 -22
- package/src/components/Tooltip/index.tsx +1 -3
- package/src/components/TransferList/index.tsx +16 -18
- package/src/components/UnstyledButton/UnstyledButton.styles.ts +4 -2
- package/src/components/index.tsx +3 -1
- package/src/index.tsx +1 -1
- package/src/theme/create-styles.ts +1 -1
- package/src/theme/create-theme.ts +134 -23
- package/src/theme/default-colors.ts +252 -0
- package/src/theme/default-theme.ts +178 -392
- package/src/theme/functions/attach-functions.ts +57 -10
- package/src/theme/functions/fns/breakpoints.ts +4 -4
- package/src/theme/functions/fns/color-scheme-value.ts +200 -0
- package/src/theme/functions/fns/dimmed.ts +2 -2
- package/src/theme/functions/fns/gradient/gradient.ts +2 -3
- package/src/theme/functions/fns/helpers.ts +50 -9
- package/src/theme/functions/fns/index.ts +63 -3
- package/src/theme/functions/fns/primary-shade.ts +84 -8
- package/src/theme/functions/fns/shadow.ts +1 -1
- package/src/theme/functions/fns/size.ts +4 -3
- package/src/theme/functions/fns/theme-color/color-utils.ts +193 -0
- package/src/theme/functions/fns/theme-color/theme-color.ts +85 -17
- package/src/theme/functions/fns/variant.ts +106 -44
- package/src/theme/functions/index.ts +19 -0
- package/src/theme/index.ts +91 -0
- package/src/theme/theme-provider.tsx +2 -17
- package/src/theme/types.ts +625 -0
- package/src/theme/utils/withTextWrapper.tsx +2 -3
- package/lib/commonjs/components/Table/Table.example.js +0 -323
- package/lib/commonjs/components/Table/Table.example.js.map +0 -1
- package/lib/module/components/Table/Table.example.js +0 -318
- package/lib/module/components/Table/Table.example.js.map +0 -1
- package/lib/typescript/commonjs/src/components/Table/Table.example.d.ts +0 -13
- package/lib/typescript/commonjs/src/components/Table/Table.example.d.ts.map +0 -1
- package/lib/typescript/module/src/components/Table/Table.example.d.ts +0 -13
- package/lib/typescript/module/src/components/Table/Table.example.d.ts.map +0 -1
- package/src/components/Table/Table.example.tsx +0 -215
- package/src/theme/index.tsx +0 -9
|
@@ -1,109 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type ThemeSize = {
|
|
17
|
-
xs: number;
|
|
18
|
-
sm: number;
|
|
19
|
-
md: number;
|
|
20
|
-
lg: number;
|
|
21
|
-
xl: number;
|
|
22
|
-
};
|
|
23
|
-
export type HeadingStyle = {
|
|
24
|
-
fontSize: number;
|
|
25
|
-
lineHeight: number;
|
|
26
|
-
fontWeight?: number;
|
|
27
|
-
};
|
|
28
|
-
export type MantineHeadings = {
|
|
29
|
-
fontFamily?: string;
|
|
30
|
-
fontWeight?: string;
|
|
31
|
-
sizes: {
|
|
32
|
-
h1: HeadingStyle;
|
|
33
|
-
h2: HeadingStyle;
|
|
34
|
-
h3: HeadingStyle;
|
|
35
|
-
h4: HeadingStyle;
|
|
36
|
-
h5: HeadingStyle;
|
|
37
|
-
h6: HeadingStyle;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export type FontWeights = {
|
|
41
|
-
thin: string;
|
|
42
|
-
extralight: string;
|
|
43
|
-
light: string;
|
|
44
|
-
normal: string;
|
|
45
|
-
medium: string;
|
|
46
|
-
semibold: string;
|
|
47
|
-
bold: string;
|
|
48
|
-
extrabold: string;
|
|
49
|
-
black: string;
|
|
50
|
-
};
|
|
51
|
-
export type themeMode = 'dark' | 'light';
|
|
52
|
-
type Shade = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
53
|
-
export interface MantinePrimaryShade {
|
|
54
|
-
light: Shade;
|
|
55
|
-
dark: Shade;
|
|
56
|
-
}
|
|
57
|
-
export type MantineTheme = {
|
|
58
|
-
fontFamily: string;
|
|
59
|
-
fontFamilyBold: string;
|
|
60
|
-
fontFamilySemiBold: string;
|
|
61
|
-
fontFamilyInput: string;
|
|
62
|
-
fontFamilyMonospace: string;
|
|
63
|
-
fontWeights: FontWeights;
|
|
64
|
-
localColor: string;
|
|
65
|
-
currentMode?: themeMode;
|
|
66
|
-
toggleMode?: () => void;
|
|
67
|
-
primaryShade: Shade | MantinePrimaryShade;
|
|
68
|
-
colors: {
|
|
69
|
-
[key: string]: Palette;
|
|
70
|
-
};
|
|
71
|
-
primaryColor: string;
|
|
72
|
-
secondaryColor: string;
|
|
73
|
-
secondaryBgColor: string;
|
|
74
|
-
white: string;
|
|
75
|
-
black: string;
|
|
76
|
-
defaultGradient?: {
|
|
77
|
-
from: string;
|
|
78
|
-
to: string;
|
|
79
|
-
deg: number;
|
|
80
|
-
};
|
|
81
|
-
light: ColorScheme;
|
|
82
|
-
dark: ColorScheme;
|
|
83
|
-
other: {
|
|
84
|
-
[key: string]: any;
|
|
85
|
-
};
|
|
86
|
-
shadows: {
|
|
87
|
-
xs: any;
|
|
88
|
-
sm: any;
|
|
89
|
-
md: any;
|
|
90
|
-
lg: any;
|
|
91
|
-
xl: any;
|
|
92
|
-
[key: string]: any;
|
|
93
|
-
};
|
|
94
|
-
radius: ThemeSize;
|
|
95
|
-
fontSizes: ThemeSize;
|
|
96
|
-
breakpoints: ThemeSize;
|
|
97
|
-
headings: MantineHeadings;
|
|
98
|
-
window: {
|
|
99
|
-
width: number;
|
|
100
|
-
height: number;
|
|
101
|
-
};
|
|
102
|
-
primaryBgColor: string;
|
|
103
|
-
primaryTextColor: string;
|
|
104
|
-
isIOS?: boolean;
|
|
105
|
-
OSVersion?: any;
|
|
106
|
-
[key: string]: any;
|
|
107
|
-
};
|
|
108
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* Default Mantine React Native theme
|
|
3
|
+
* Aligned with Mantine web v6 architecture with React Native adaptations
|
|
4
|
+
*/
|
|
5
|
+
import type { MantineTheme as MantineThemeType, MantineThemeBase } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* Base theme configuration (without functions)
|
|
8
|
+
* Matches Mantine web structure with React Native-specific adaptations
|
|
9
|
+
*/
|
|
10
|
+
export declare const _DEFAULT_THEME: MantineThemeBase;
|
|
11
|
+
/**
|
|
12
|
+
* Default Mantine theme with attached helper functions
|
|
13
|
+
* This is the main theme object exported for use
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_THEME: MantineThemeType;
|
|
109
16
|
//# sourceMappingURL=default-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/default-theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/default-theme.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,gBAwO5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,gBAAkD,CAAC"}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Attach helper functions to theme object
|
|
3
|
+
* Creates theme.fn object with all utility functions
|
|
4
|
+
* Aligned with Mantine web's theme function attachment pattern
|
|
5
|
+
*/
|
|
6
|
+
import type { MantineTheme, MantineThemeBase } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Attach helper functions to theme base object
|
|
9
|
+
* Converts MantineThemeBase to full MantineTheme with fn object
|
|
10
|
+
*
|
|
11
|
+
* @param themeBase - Base theme configuration without functions
|
|
12
|
+
* @returns Complete theme with attached helper functions
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const theme = attachFunctions(baseTheme);
|
|
16
|
+
* theme.fn.themeColor('blue', 5); // '#339af0'
|
|
17
|
+
* theme.fn.primaryShade(); // 6
|
|
18
|
+
* theme.fn.variant({ variant: 'filled', color: 'blue' });
|
|
19
|
+
*/
|
|
20
|
+
export declare function attachFunctions(themeBase: MantineThemeBase): MantineTheme;
|
|
2
21
|
//# sourceMappingURL=attach-functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attach-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/functions/attach-functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attach-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/functions/attach-functions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQ/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,gBAAgB,GAAG,YAAY,CAgDzE"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MantineThemeBase } from '../../types';
|
|
2
2
|
export type MantineNumberSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
3
3
|
/**
|
|
4
4
|
* Returns true if current screen width is larger than the specified breakpoint
|
|
5
5
|
* @param theme - The Mantine theme
|
|
6
6
|
* @returns A function that takes a breakpoint and returns a boolean
|
|
7
7
|
*/
|
|
8
|
-
export declare function largerThan(theme:
|
|
8
|
+
export declare function largerThan(theme: MantineThemeBase): (breakpoint: MantineNumberSize) => boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Returns true if current screen width is smaller than the specified breakpoint
|
|
11
11
|
* @param theme - The Mantine theme
|
|
12
12
|
* @returns A function that takes a breakpoint and returns a boolean
|
|
13
13
|
*/
|
|
14
|
-
export declare function smallerThan(theme:
|
|
14
|
+
export declare function smallerThan(theme: MantineThemeBase): (breakpoint: MantineNumberSize) => boolean;
|
|
15
15
|
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/breakpoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/breakpoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAcpD,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAsB1E;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,gBAAgB,IACxC,YAAY,iBAAiB,KAAG,OAAO,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,IACzC,YAAY,iBAAiB,KAAG,OAAO,CAKhD"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color scheme value helper
|
|
3
|
+
* Returns different values based on the current color scheme (light or dark mode)
|
|
4
|
+
* Useful for theme-aware constants like colors, spacing, etc.
|
|
5
|
+
*/
|
|
6
|
+
import type { MantineThemeBase, ColorScheme } from '../../types';
|
|
7
|
+
/**
|
|
8
|
+
* Color scheme value type
|
|
9
|
+
* Represents a value that has different values for light and dark modes
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorSchemeValue<T = any> {
|
|
12
|
+
light: T;
|
|
13
|
+
dark: T;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Type helper to resolve ColorSchemeValue types to their base types
|
|
17
|
+
* Recursively transforms ColorSchemeValue<T> to T in object structures
|
|
18
|
+
*/
|
|
19
|
+
export type ResolveColorSchemeValue<T> = T extends ColorSchemeValue<infer U> ? U : T extends Record<string, any> ? {
|
|
20
|
+
[K in keyof T]: ResolveColorSchemeValue<T[K]>;
|
|
21
|
+
} : T;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a value is a color scheme value object
|
|
24
|
+
* @param value - Value to check
|
|
25
|
+
* @returns True if value is a ColorSchemeValue object
|
|
26
|
+
*/
|
|
27
|
+
export declare function isColorSchemeValue<T = any>(value: any): value is ColorSchemeValue<T>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a color scheme-aware value
|
|
30
|
+
* Returns an object with light and dark values
|
|
31
|
+
*
|
|
32
|
+
* @param light - Value for light mode
|
|
33
|
+
* @param dark - Value for dark mode
|
|
34
|
+
* @returns ColorSchemeValue object
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* const backgroundColor = colorSchemeValue('#FCFCFC', '#272727');
|
|
38
|
+
* // { light: '#FCFCFC', dark: '#272727' }
|
|
39
|
+
*/
|
|
40
|
+
export declare function colorSchemeValue<T = any>(light: T, dark: T): ColorSchemeValue<T>;
|
|
41
|
+
/**
|
|
42
|
+
* Get the appropriate value based on color scheme
|
|
43
|
+
* If the value is a ColorSchemeValue object, returns the appropriate value
|
|
44
|
+
* Otherwise, returns the value as-is
|
|
45
|
+
*
|
|
46
|
+
* @param value - Value or ColorSchemeValue object
|
|
47
|
+
* @param colorScheme - Current color scheme
|
|
48
|
+
* @returns Resolved value for the current color scheme
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* const bgColor = resolveColorSchemeValue({ light: '#fff', dark: '#000' }, 'dark');
|
|
52
|
+
* // '#000'
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* const fixedColor = resolveColorSchemeValue('#blue', 'dark');
|
|
56
|
+
* // '#blue'
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveColorSchemeValue<T = any>(value: T | ColorSchemeValue<T>, colorScheme: ColorScheme): T;
|
|
59
|
+
/**
|
|
60
|
+
* Create a theme function that resolves color scheme values
|
|
61
|
+
* This is attached to theme.fn.colorSchemeValue
|
|
62
|
+
*
|
|
63
|
+
* @param theme - Mantine theme base
|
|
64
|
+
* @returns Function that resolves color scheme values based on current theme
|
|
65
|
+
*/
|
|
66
|
+
export declare const createColorSchemeValueFunction: (theme: MantineThemeBase) => <T = any>(value: T | ColorSchemeValue<T>) => T;
|
|
67
|
+
/**
|
|
68
|
+
* Helper to create a set of color scheme-aware constants
|
|
69
|
+
* Converts an object with ColorSchemeValue properties into resolved values
|
|
70
|
+
*
|
|
71
|
+
* @param constants - Object with ColorSchemeValue properties
|
|
72
|
+
* @param colorScheme - Current color scheme
|
|
73
|
+
* @returns Object with resolved values
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* const constants = {
|
|
77
|
+
* text: { light: '#000', dark: '#fff' },
|
|
78
|
+
* background: { light: '#FCFCFC', dark: '#272727' },
|
|
79
|
+
* primaryButtonBackground: { light: '#00203E', dark: '#2581C4' },
|
|
80
|
+
* fixedColor: '#blue', // Non-scheme values pass through
|
|
81
|
+
* };
|
|
82
|
+
*
|
|
83
|
+
* const resolved = resolveColorSchemeConstants(constants, 'dark');
|
|
84
|
+
* // {
|
|
85
|
+
* // text: '#fff',
|
|
86
|
+
* // background: '#272727',
|
|
87
|
+
* // primaryButtonBackground: '#2581C4',
|
|
88
|
+
* // fixedColor: '#blue'
|
|
89
|
+
* // }
|
|
90
|
+
*/
|
|
91
|
+
export declare function resolveColorSchemeConstants<T extends Record<string, any>>(constants: T, colorScheme: ColorScheme): ResolveColorSchemeValue<T>;
|
|
92
|
+
/**
|
|
93
|
+
* Create a theme function that resolves color scheme constants
|
|
94
|
+
* This is attached to theme.fn.colorSchemeConstants
|
|
95
|
+
*
|
|
96
|
+
* @param theme - Mantine theme base
|
|
97
|
+
* @returns Function that resolves all constants in an object based on current theme
|
|
98
|
+
*/
|
|
99
|
+
export declare const createColorSchemeConstantsFunction: (theme: MantineThemeBase) => <T extends Record<string, any>>(constants: T) => ResolveColorSchemeValue<T>;
|
|
100
|
+
//# sourceMappingURL=color-scheme-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-scheme-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/color-scheme-value.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG;IACvC,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,CAAC,CAAC;CACT;AAED;;;GAGG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,CAAC,GACxE,CAAC,GACD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACjD,CAAC,CAAC;AAEN;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAQpF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAEhF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,GAAG,EAC7C,KAAK,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAC9B,WAAW,EAAE,WAAW,GACvB,CAAC,CAKH;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,gBAAgB,MAmB5D,CAAC,GAAG,GAAG,EAAE,OAAO,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,KAAG,CAGnD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvE,SAAS,EAAE,CAAC,EACZ,WAAW,EAAE,WAAW,GACvB,uBAAuB,CAAC,CAAC,CAAC,CAoB5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,GAAI,OAAO,gBAAgB,MAwBhE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,WAAW,CAAC,KAAG,uBAAuB,CAAC,CAAC,CAGhF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MantineThemeBase } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Returns a dimmed text color based on the current color scheme
|
|
4
4
|
* Used for secondary text and less prominent UI elements
|
|
5
5
|
* @param theme - The Mantine theme
|
|
6
6
|
* @returns A function that returns the dimmed color
|
|
7
7
|
*/
|
|
8
|
-
export declare function dimmed(theme:
|
|
8
|
+
export declare function dimmed(theme: MantineThemeBase): () => string;
|
|
9
9
|
//# sourceMappingURL=dimmed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimmed.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/dimmed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dimmed.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/dimmed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,gBAAgB,gBAO7C"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { MantineGradient, GradientConfig } from '../../../theme.d';
|
|
1
|
+
import type { MantineThemeBase, MantineGradient, GradientConfig } from '../../../types';
|
|
3
2
|
/**
|
|
4
3
|
* Creates a gradient configuration for use with expo-linear-gradient
|
|
5
4
|
* Returns gradient colors and coordinates based on theme gradient settings
|
|
6
5
|
*/
|
|
7
|
-
export declare function gradient(theme:
|
|
6
|
+
export declare function gradient(theme: MantineThemeBase): (payload?: MantineGradient) => GradientConfig;
|
|
8
7
|
/**
|
|
9
8
|
* Legacy function for web compatibility - returns gradient string
|
|
10
9
|
* Not used in React Native but kept for API compatibility
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/gradient/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/gradient/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA6BxF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,IACtC,UAAU,eAAe,KAAG,cAAc,CAmBnD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,UAEpE"}
|
|
@@ -1,26 +1,54 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { MantineThemeBase, MantineNumberSize } from '../../types';
|
|
2
|
+
import type { TextStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Returns base font styles from theme
|
|
5
|
+
* Includes fontFamily and lineHeight
|
|
6
|
+
*/
|
|
7
|
+
export declare const fontStyles: (theme: MantineThemeBase) => () => {
|
|
3
8
|
fontFamily: string;
|
|
9
|
+
lineHeight: number;
|
|
4
10
|
};
|
|
5
11
|
/**
|
|
6
12
|
* Returns font styles specifically for input components
|
|
7
13
|
*/
|
|
8
|
-
export declare const inputFontStyles: (theme:
|
|
14
|
+
export declare const inputFontStyles: (theme: MantineThemeBase) => () => {
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
lineHeight: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Get font size from theme
|
|
21
|
+
* @param size - Size key or number
|
|
22
|
+
*/
|
|
23
|
+
export declare const fontSize: (theme: MantineThemeBase) => (size: MantineNumberSize) => number;
|
|
24
|
+
/**
|
|
25
|
+
* Get line height from theme
|
|
26
|
+
* @param size - Size key or number (unitless multiplier)
|
|
27
|
+
*/
|
|
28
|
+
export declare const lineHeight: (theme: MantineThemeBase) => (size: MantineNumberSize) => number;
|
|
29
|
+
/**
|
|
30
|
+
* Get heading styles by order
|
|
31
|
+
* @param order - Heading level (1-6)
|
|
32
|
+
*/
|
|
33
|
+
export declare const headingStyles: (theme: MantineThemeBase) => (order: 1 | 2 | 3 | 4 | 5 | 6) => {
|
|
34
|
+
fontSize: number;
|
|
35
|
+
lineHeight: number;
|
|
36
|
+
fontWeight: TextStyle["fontWeight"];
|
|
9
37
|
fontFamily: string;
|
|
10
38
|
};
|
|
11
|
-
export declare const focusStyles: (_theme:
|
|
12
|
-
export declare const placeholderStyles: (_theme:
|
|
39
|
+
export declare const focusStyles: (_theme: MantineThemeBase) => () => {};
|
|
40
|
+
export declare const placeholderStyles: (_theme: MantineThemeBase) => () => {
|
|
13
41
|
opacity: number;
|
|
14
42
|
};
|
|
15
|
-
export declare const cover: (_theme:
|
|
43
|
+
export declare const cover: (_theme: MantineThemeBase) => (offset?: number) => {
|
|
16
44
|
position: "absolute";
|
|
17
45
|
top: number;
|
|
18
46
|
right: number;
|
|
19
47
|
bottom: number;
|
|
20
48
|
left: number;
|
|
21
49
|
};
|
|
22
|
-
export declare const hover: (_theme:
|
|
23
|
-
export declare const activeStyles: (_theme:
|
|
50
|
+
export declare const hover: (_theme: MantineThemeBase) => (styles: any) => any;
|
|
51
|
+
export declare const activeStyles: (_theme: MantineThemeBase) => {
|
|
24
52
|
opacity: number;
|
|
25
53
|
transform: {
|
|
26
54
|
scale: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,gBAAgB;;;CAGhD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,gBAAgB;;;;CAMtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,MAAM,MAAM,iBAAiB,WAE5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,gBAAgB,MAAM,MAAM,iBAAiB,WAE9E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;;;gBAOQ,SAAS,CAAC,YAAY,CAAC;;CAGrH,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,gBAAgB,aAIlD,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,gBAAgB;;CAGxD,CAAC;AAEH,eAAO,MAAM,KAAK,GACf,QAAQ,gBAAgB,MACxB,SAAQ,MAAU;;;;;;CAMjB,CAAC;AAEL,eAAO,MAAM,KAAK,GAAI,QAAQ,gBAAgB,MAAM,QAAQ,GAAG,QAI7D,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,QAAQ,gBAAgB;;;;;CAInD,CAAC"}
|
|
@@ -1,51 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme helper functions
|
|
3
|
+
* Exports all utility functions for theme manipulation
|
|
4
|
+
*/
|
|
1
5
|
import { radius } from './radius';
|
|
2
6
|
import { rgba } from './rgba';
|
|
3
7
|
import { size } from './size';
|
|
4
8
|
import { themeColor } from './theme-color/theme-color';
|
|
5
|
-
import {
|
|
9
|
+
import { variant } from './variant';
|
|
10
|
+
import { getPrimaryShade, getPrimaryColor } from './primary-shade';
|
|
6
11
|
import { shadow } from './shadow';
|
|
7
12
|
import { gradient } from './gradient/gradient';
|
|
8
13
|
import { lighten } from './lighten';
|
|
9
14
|
import { darken } from './darken';
|
|
10
15
|
import { dimmed } from './dimmed';
|
|
11
16
|
import { largerThan, smallerThan } from './breakpoints';
|
|
17
|
+
/**
|
|
18
|
+
* Collection of all theme helper functions
|
|
19
|
+
* Used by attach-functions to create theme.fn object
|
|
20
|
+
*/
|
|
12
21
|
export declare const fns: {
|
|
13
|
-
fontStyles: (theme: import("
|
|
22
|
+
fontStyles: (theme: import("../..").MantineThemeBase) => () => {
|
|
14
23
|
fontFamily: string;
|
|
24
|
+
lineHeight: number;
|
|
15
25
|
};
|
|
16
|
-
inputFontStyles: (theme: import("
|
|
26
|
+
inputFontStyles: (theme: import("../..").MantineThemeBase) => () => {
|
|
17
27
|
fontFamily: string;
|
|
28
|
+
fontSize: number;
|
|
29
|
+
lineHeight: number;
|
|
18
30
|
};
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
fontSize: (theme: import("../..").MantineThemeBase) => (size: import("../..").MantineNumberSize) => number;
|
|
32
|
+
lineHeight: (theme: import("../..").MantineThemeBase) => (size: import("../..").MantineNumberSize) => number;
|
|
33
|
+
headingStyles: (theme: import("../..").MantineThemeBase) => (order: 1 | 2 | 3 | 4 | 5 | 6) => {
|
|
34
|
+
fontSize: number;
|
|
35
|
+
lineHeight: number;
|
|
36
|
+
fontWeight: import("react-native").TextStyle["fontWeight"];
|
|
37
|
+
fontFamily: string;
|
|
38
|
+
};
|
|
39
|
+
focusStyles: (_theme: import("../..").MantineThemeBase) => () => {};
|
|
40
|
+
placeholderStyles: (_theme: import("../..").MantineThemeBase) => () => {
|
|
21
41
|
opacity: number;
|
|
22
42
|
};
|
|
23
|
-
cover: (_theme: import("
|
|
43
|
+
cover: (_theme: import("../..").MantineThemeBase) => (offset?: number) => {
|
|
24
44
|
position: "absolute";
|
|
25
45
|
top: number;
|
|
26
46
|
right: number;
|
|
27
47
|
bottom: number;
|
|
28
48
|
left: number;
|
|
29
49
|
};
|
|
30
|
-
hover: (_theme: import("
|
|
31
|
-
activeStyles: (_theme: import("
|
|
50
|
+
hover: (_theme: import("../..").MantineThemeBase) => (styles: any) => any;
|
|
51
|
+
activeStyles: (_theme: import("../..").MantineThemeBase) => {
|
|
32
52
|
opacity: number;
|
|
33
53
|
transform: {
|
|
34
54
|
scale: number;
|
|
35
55
|
}[];
|
|
36
56
|
};
|
|
37
|
-
radius: typeof radius;
|
|
38
|
-
rgba: typeof rgba;
|
|
39
|
-
size: typeof size;
|
|
40
|
-
variant: (theme: import("../../default-theme").MantineTheme) => (input: import("./variant").VariantInput) => import("./variant").VariantOutput;
|
|
41
57
|
themeColor: typeof themeColor;
|
|
42
58
|
getPrimaryShade: typeof getPrimaryShade;
|
|
43
|
-
|
|
44
|
-
|
|
59
|
+
getPrimaryColor: typeof getPrimaryColor;
|
|
60
|
+
variant: (theme: import("../..").MantineThemeBase) => (input: import("../..").VariantInput) => import("../..").VariantOutput;
|
|
61
|
+
rgba: typeof rgba;
|
|
45
62
|
lighten: typeof lighten;
|
|
46
63
|
darken: typeof darken;
|
|
47
64
|
dimmed: typeof dimmed;
|
|
65
|
+
radius: typeof radius;
|
|
66
|
+
size: typeof size;
|
|
67
|
+
shadow: typeof shadow;
|
|
68
|
+
gradient: typeof gradient;
|
|
48
69
|
largerThan: typeof largerThan;
|
|
49
70
|
smallerThan: typeof smallerThan;
|
|
71
|
+
colorSchemeValue: (theme: import("../..").MantineThemeBase) => <T = any>(value: T | import("./color-scheme-value").ColorSchemeValue<T>) => T;
|
|
72
|
+
colorSchemeConstants: (theme: import("../..").MantineThemeBase) => <T extends Record<string, any>>(constants: T) => import("./color-scheme-value").ResolveColorSchemeValue<T>;
|
|
50
73
|
};
|
|
74
|
+
export { radius, rgba, size, themeColor, variant, getPrimaryShade, getPrimaryColor, shadow, gradient, lighten, darken, dimmed, largerThan, smallerThan, };
|
|
75
|
+
export { colorSchemeValue, resolveColorSchemeValue, resolveColorSchemeConstants, isColorSchemeValue, createColorSchemeValueFunction, createColorSchemeConstantsFunction, } from './color-scheme-value';
|
|
76
|
+
export type { ColorSchemeValue, ResolveColorSchemeValue } from './color-scheme-value';
|
|
51
77
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOxD;;;GAGG;AACH,eAAO,MAAM,GAAG;iBAlBc,uCACd;;;;sBAIP,uCAAsB;;;;;eAOL,uCAGb,MAAM,uCAAuB;iBAUjC,uCAEW,MAClB,uCAEI;oBAgBJ,uCAAsB,MAAM,4BACxB;;;;;;kBA6BE,wCACE;wBAIE,wCAAwB;;;YAA8F,wCAAwB,MAAQ,eAAkB;;;;;;;YAAkJ,wCAAwB,MAAM,WAAW;mBAAuM,wCAAwB;;;;;;;;;2DAA/f,mCAAmB;;;;;;;;;;;oEAAwsC,OAAO,EAAE,6DAA8B;wEAAuqF,6BAA6B,EAAE,YAAY;CA9BliI,CAAC;AAGF,OAAO,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,OAAO,EACP,eAAe,EACf,eAAe,EACf,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,MAAM,EACN,UAAU,EACV,WAAW,GACZ,CAAC;AAGF,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,57 @@
|
|
|
1
|
-
import type { MantineTheme } from '../../default-theme';
|
|
2
1
|
/**
|
|
2
|
+
* Primary shade helper function
|
|
3
3
|
* Returns the appropriate primary shade based on the current color scheme
|
|
4
|
-
*
|
|
4
|
+
* Aligned with Mantine web's primaryShade implementation
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
import type { MantineThemeBase, ColorScheme, Shade } from '../../types';
|
|
7
|
+
/**
|
|
8
|
+
* Get the primary shade for the current color scheme
|
|
9
|
+
*
|
|
10
|
+
* If theme.primaryShade is a number, returns that number.
|
|
11
|
+
* If theme.primaryShade is an object with light/dark values, returns the
|
|
12
|
+
* appropriate value based on the color scheme.
|
|
13
|
+
*
|
|
14
|
+
* @param theme - Mantine theme object
|
|
15
|
+
* @param colorScheme - Optional color scheme override (light or dark)
|
|
16
|
+
* @returns Shade value (0-9)
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // With theme.primaryShade = { light: 6, dark: 8 }
|
|
20
|
+
* // and theme.colorScheme = 'light'
|
|
21
|
+
* getPrimaryShade(theme) // returns 6
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // With explicit colorScheme override
|
|
25
|
+
* getPrimaryShade(theme, 'dark') // returns 8
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* // With theme.primaryShade = 7 (single number)
|
|
29
|
+
* getPrimaryShade(theme) // returns 7
|
|
30
|
+
*/
|
|
31
|
+
export declare function getPrimaryShade(theme: MantineThemeBase, colorScheme?: ColorScheme): Shade;
|
|
32
|
+
/**
|
|
33
|
+
* Curried version of getPrimaryShade for use with theme.fn
|
|
34
|
+
* Matches Mantine web's theme.fn.primaryShade signature
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare function createPrimaryShadeFunction(theme: MantineThemeBase): (colorScheme?: ColorScheme) => Shade;
|
|
39
|
+
/**
|
|
40
|
+
* Get the primary color at the primary shade
|
|
41
|
+
*
|
|
42
|
+
* @param theme - Mantine theme object
|
|
43
|
+
* @param colorScheme - Optional color scheme override
|
|
44
|
+
* @returns Color string value
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Get primary color at primary shade
|
|
48
|
+
* getPrimaryColor(theme) // returns '#228be6' (blue[6])
|
|
49
|
+
*/
|
|
50
|
+
export declare function getPrimaryColor(theme: MantineThemeBase, colorScheme?: ColorScheme): string;
|
|
51
|
+
/**
|
|
52
|
+
* Curried version of getPrimaryColor for use with theme.fn
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
export declare function createPrimaryColorFunction(theme: MantineThemeBase): (colorScheme?: ColorScheme) => string;
|
|
7
57
|
//# sourceMappingURL=primary-shade.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primary-shade.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/primary-shade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"primary-shade.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/primary-shade.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,KAAK,CAYzF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,IACxD,cAAc,WAAW,KAAG,KAAK,CAG1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAY1F;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,IACxD,cAAc,WAAW,KAAG,MAAM,CAG3C"}
|
|
@@ -20,5 +20,5 @@ export type MantineShadow = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
20
20
|
* // Android will get: { elevation: 4 }
|
|
21
21
|
* const shadowStyles = shadow('md');
|
|
22
22
|
*/
|
|
23
|
-
export declare function shadow(size?:
|
|
23
|
+
export declare function shadow(size?: MantineSize): ShadowStyles;
|
|
24
24
|
//# sourceMappingURL=shadow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/shadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAiE7D;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/shadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAiE7D;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,YAAY,CAavD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MantineNumberSize } from '../../types';
|
|
2
2
|
export declare function size(_theme: any): <Sizes extends Record<any, any>>({ size, sizes, }: {
|
|
3
|
-
size
|
|
3
|
+
size?: MantineNumberSize | (string & {});
|
|
4
4
|
sizes: Sizes;
|
|
5
|
-
}) => number;
|
|
5
|
+
}) => number | string;
|
|
6
6
|
//# sourceMappingURL=size.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,wBAAgB,IAAI,CAAC,MAAM,EAAE,GAAG,IACtB,KAAK,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,kBAGrC;IACD,IAAI,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,wBAAgB,IAAI,CAAC,MAAM,EAAE,GAAG,IACtB,KAAK,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,kBAGrC;IACD,IAAI,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;CACd,KAAG,MAAM,GAAG,MAAM,CAIpB"}
|