react-native-mantine 0.14.0 → 0.15.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 +138 -0
- 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 +3 -4
- 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/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/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 +3 -4
- 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/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/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/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/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/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/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 +3 -5
- 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/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/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/src/theme/index.tsx +0 -9
|
@@ -3,30 +3,44 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports._DEFAULT_THEME = exports.DEFAULT_THEME =
|
|
6
|
+
exports._DEFAULT_THEME = exports.DEFAULT_THEME = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _attachFunctions = require("./functions/attach-functions.js");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
teal: ['#e6fcf5', '#c3fae8', '#96f2d7', '#63e6be', '#38d9a9', '#20c997', '#12b886', '#0ca678', '#099268', '#087f5b'],
|
|
20
|
-
green: ['#ebfbee', '#d3f9d8', '#b2f2bb', '#8ce99a', '#69db7c', '#51cf66', '#40c057', '#37b24d', '#2f9e44', '#2b8a3e'],
|
|
21
|
-
lime: ['#f4fce3', '#e9fac8', '#d8f5a2', '#c0eb75', '#a9e34b', '#94d82d', '#82c91e', '#74b816', '#66a80f', '#5c940d'],
|
|
22
|
-
yellow: ['#fff9db', '#fff3bf', '#ffec99', '#ffe066', '#ffd43b', '#fcc419', '#fab005', '#f59f00', '#f08c00', '#e67700'],
|
|
23
|
-
orange: ['#fff4e6', '#ffe8cc', '#ffd8a8', '#ffc078', '#ffa94d', '#ff922b', '#fd7e14', '#f76707', '#e8590c', '#d9480f']
|
|
24
|
-
};
|
|
25
|
-
const tintColorLight = '#2f95dc';
|
|
26
|
-
const tintColorDark = '#fff';
|
|
9
|
+
var _defaultColors = require("./default-colors.js");
|
|
10
|
+
/**
|
|
11
|
+
* Default Mantine React Native theme
|
|
12
|
+
* Aligned with Mantine web v6 architecture with React Native adaptations
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Base theme configuration (without functions)
|
|
17
|
+
* Matches Mantine web structure with React Native-specific adaptations
|
|
18
|
+
*/
|
|
27
19
|
const _DEFAULT_THEME = exports._DEFAULT_THEME = {
|
|
20
|
+
// ============================================================================
|
|
21
|
+
// Color System
|
|
22
|
+
// ============================================================================
|
|
23
|
+
|
|
24
|
+
colorScheme: 'light',
|
|
25
|
+
primaryColor: 'blue',
|
|
26
|
+
primaryShade: {
|
|
27
|
+
light: 6,
|
|
28
|
+
dark: 8
|
|
29
|
+
},
|
|
30
|
+
colors: _defaultColors.DEFAULT_COLORS,
|
|
31
|
+
white: '#ffffff',
|
|
32
|
+
black: '#000000',
|
|
33
|
+
defaultGradient: {
|
|
34
|
+
from: 'blue',
|
|
35
|
+
to: 'cyan',
|
|
36
|
+
deg: 45
|
|
37
|
+
},
|
|
38
|
+
// ============================================================================
|
|
39
|
+
// Typography
|
|
40
|
+
// ============================================================================
|
|
41
|
+
|
|
28
42
|
// Font configuration matches Mantine web as closely as possible
|
|
29
|
-
// Web: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif
|
|
43
|
+
// Web: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif'
|
|
30
44
|
// React Native maps to platform-specific system fonts
|
|
31
45
|
fontFamily: _reactNative.Platform.select({
|
|
32
46
|
ios: 'System',
|
|
@@ -58,6 +72,7 @@ const _DEFAULT_THEME = exports._DEFAULT_THEME = {
|
|
|
58
72
|
android: 'Roboto',
|
|
59
73
|
default: 'System'
|
|
60
74
|
}),
|
|
75
|
+
// Monospace font
|
|
61
76
|
// Web: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace'
|
|
62
77
|
fontFamilyMonospace: _reactNative.Platform.select({
|
|
63
78
|
ios: 'Menlo',
|
|
@@ -77,42 +92,91 @@ const _DEFAULT_THEME = exports._DEFAULT_THEME = {
|
|
|
77
92
|
extrabold: '800',
|
|
78
93
|
black: '900'
|
|
79
94
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
95
|
+
fontSizes: {
|
|
96
|
+
xs: 12,
|
|
97
|
+
sm: 14,
|
|
98
|
+
md: 16,
|
|
99
|
+
lg: 18,
|
|
100
|
+
xl: 20
|
|
84
101
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
lineHeight: 1.55,
|
|
103
|
+
// Matches Mantine web default
|
|
104
|
+
|
|
105
|
+
// Line heights scale (unitless multipliers)
|
|
106
|
+
// Matches Mantine web line height scale
|
|
107
|
+
lineHeights: {
|
|
108
|
+
xs: 1.4,
|
|
109
|
+
sm: 1.45,
|
|
110
|
+
md: 1.55,
|
|
111
|
+
lg: 1.6,
|
|
112
|
+
xl: 1.65
|
|
95
113
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
headings: {
|
|
115
|
+
// Headings use bold font family for proper weight rendering on iOS/Android
|
|
116
|
+
fontFamily: _reactNative.Platform.select({
|
|
117
|
+
ios: 'System',
|
|
118
|
+
android: 'Roboto-Bold',
|
|
119
|
+
default: 'System'
|
|
120
|
+
}),
|
|
121
|
+
fontWeight: '700',
|
|
122
|
+
// Matches Mantine web heading weight
|
|
123
|
+
sizes: {
|
|
124
|
+
h1: {
|
|
125
|
+
fontSize: 34,
|
|
126
|
+
lineHeight: 1.3
|
|
127
|
+
},
|
|
128
|
+
h2: {
|
|
129
|
+
fontSize: 26,
|
|
130
|
+
lineHeight: 1.35
|
|
131
|
+
},
|
|
132
|
+
h3: {
|
|
133
|
+
fontSize: 22,
|
|
134
|
+
lineHeight: 1.4
|
|
135
|
+
},
|
|
136
|
+
h4: {
|
|
137
|
+
fontSize: 18,
|
|
138
|
+
lineHeight: 1.45
|
|
139
|
+
},
|
|
140
|
+
h5: {
|
|
141
|
+
fontSize: 16,
|
|
142
|
+
lineHeight: 1.5
|
|
143
|
+
},
|
|
144
|
+
h6: {
|
|
145
|
+
fontSize: 14,
|
|
146
|
+
lineHeight: 1.5
|
|
147
|
+
}
|
|
148
|
+
}
|
|
104
149
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
150
|
+
// ============================================================================
|
|
151
|
+
// Spacing & Layout
|
|
152
|
+
// ============================================================================
|
|
153
|
+
|
|
154
|
+
spacing: {
|
|
155
|
+
xs: 10,
|
|
156
|
+
sm: 12,
|
|
157
|
+
md: 16,
|
|
158
|
+
lg: 20,
|
|
159
|
+
xl: 24
|
|
113
160
|
},
|
|
114
|
-
|
|
115
|
-
|
|
161
|
+
radius: {
|
|
162
|
+
xs: 2,
|
|
163
|
+
sm: 4,
|
|
164
|
+
md: 8,
|
|
165
|
+
lg: 16,
|
|
166
|
+
xl: 32
|
|
167
|
+
},
|
|
168
|
+
defaultRadius: 'md',
|
|
169
|
+
breakpoints: {
|
|
170
|
+
xs: 576,
|
|
171
|
+
sm: 768,
|
|
172
|
+
md: 992,
|
|
173
|
+
lg: 1200,
|
|
174
|
+
xl: 1408
|
|
175
|
+
},
|
|
176
|
+
// ============================================================================
|
|
177
|
+
// Visual Effects
|
|
178
|
+
// ============================================================================
|
|
179
|
+
|
|
116
180
|
shadows: _reactNative.Platform.select({
|
|
117
181
|
ios: {
|
|
118
182
|
xs: {
|
|
@@ -196,86 +260,38 @@ const _DEFAULT_THEME = exports._DEFAULT_THEME = {
|
|
|
196
260
|
}
|
|
197
261
|
}
|
|
198
262
|
}),
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
spacing: {
|
|
215
|
-
xs: 10,
|
|
216
|
-
sm: 12,
|
|
217
|
-
md: 16,
|
|
218
|
-
lg: 20,
|
|
219
|
-
xl: 24
|
|
220
|
-
},
|
|
221
|
-
breakpoints: {
|
|
222
|
-
xs: 576,
|
|
223
|
-
sm: 768,
|
|
224
|
-
md: 992,
|
|
225
|
-
lg: 1200,
|
|
226
|
-
xl: 1408
|
|
227
|
-
},
|
|
228
|
-
headings: {
|
|
229
|
-
// Headings use bold font family for proper weight rendering on iOS/Android
|
|
230
|
-
// On Android, using Roboto-Bold ensures proper bold rendering
|
|
231
|
-
fontFamily: _reactNative.Platform.select({
|
|
232
|
-
ios: 'System',
|
|
233
|
-
// San Francisco (equivalent to -apple-system)
|
|
234
|
-
android: 'Roboto-Bold',
|
|
235
|
-
// Android needs explicit bold font family
|
|
236
|
-
default: 'System'
|
|
237
|
-
}),
|
|
238
|
-
fontWeight: '700',
|
|
239
|
-
// Matches Mantine web heading weight
|
|
240
|
-
sizes: {
|
|
241
|
-
h1: {
|
|
242
|
-
fontSize: 34,
|
|
243
|
-
lineHeight: 1.3,
|
|
244
|
-
fontWeight: undefined
|
|
245
|
-
},
|
|
246
|
-
h2: {
|
|
247
|
-
fontSize: 26,
|
|
248
|
-
lineHeight: 1.35,
|
|
249
|
-
fontWeight: undefined
|
|
250
|
-
},
|
|
251
|
-
h3: {
|
|
252
|
-
fontSize: 22,
|
|
253
|
-
lineHeight: 1.4,
|
|
254
|
-
fontWeight: undefined
|
|
255
|
-
},
|
|
256
|
-
h4: {
|
|
257
|
-
fontSize: 18,
|
|
258
|
-
lineHeight: 1.45,
|
|
259
|
-
fontWeight: undefined
|
|
260
|
-
},
|
|
261
|
-
h5: {
|
|
262
|
-
fontSize: 16,
|
|
263
|
-
lineHeight: 1.5,
|
|
264
|
-
fontWeight: undefined
|
|
265
|
-
},
|
|
266
|
-
h6: {
|
|
267
|
-
fontSize: 14,
|
|
268
|
-
lineHeight: 1.5,
|
|
269
|
-
fontWeight: undefined
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
},
|
|
263
|
+
// ============================================================================
|
|
264
|
+
// Component Overrides
|
|
265
|
+
// ============================================================================
|
|
266
|
+
|
|
267
|
+
components: {},
|
|
268
|
+
// ============================================================================
|
|
269
|
+
// Custom Values
|
|
270
|
+
// ============================================================================
|
|
271
|
+
|
|
272
|
+
other: {},
|
|
273
|
+
// ============================================================================
|
|
274
|
+
// React Native Specific
|
|
275
|
+
// ============================================================================
|
|
276
|
+
|
|
273
277
|
window: {
|
|
274
278
|
width: 375,
|
|
275
279
|
height: 800
|
|
276
280
|
},
|
|
277
|
-
|
|
278
|
-
|
|
281
|
+
isIOS: _reactNative.Platform.OS === 'ios',
|
|
282
|
+
OSVersion: _reactNative.Platform.Version,
|
|
283
|
+
// ============================================================================
|
|
284
|
+
// Active Styles (for Pressable components)
|
|
285
|
+
// ============================================================================
|
|
286
|
+
|
|
287
|
+
activeStyles: {
|
|
288
|
+
opacity: 0.8
|
|
289
|
+
}
|
|
279
290
|
};
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Default Mantine theme with attached helper functions
|
|
294
|
+
* This is the main theme object exported for use
|
|
295
|
+
*/
|
|
280
296
|
const DEFAULT_THEME = exports.DEFAULT_THEME = (0, _attachFunctions.attachFunctions)(_DEFAULT_THEME);
|
|
281
297
|
//# sourceMappingURL=default-theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_attachFunctions","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_attachFunctions","_defaultColors","_DEFAULT_THEME","exports","colorScheme","primaryColor","primaryShade","light","dark","colors","DEFAULT_COLORS","white","black","defaultGradient","from","to","deg","fontFamily","Platform","select","ios","android","default","fontFamilyBold","fontFamilySemiBold","fontFamilyInput","fontFamilyMonospace","fontWeights","thin","extralight","normal","medium","semibold","bold","extrabold","fontSizes","xs","sm","md","lg","xl","lineHeight","lineHeights","headings","fontWeight","sizes","h1","fontSize","h2","h3","h4","h5","h6","spacing","radius","defaultRadius","breakpoints","shadows","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","components","other","window","isIOS","OS","OSVersion","Version","activeStyles","opacity","DEFAULT_THEME","attachFunctions"],"sourceRoot":"../../../src","sources":["theme/default-theme.ts"],"mappings":";;;;;;AAKA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAPA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACO,MAAMG,cAAgC,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC9C;EACA;EACA;;EAEAE,WAAW,EAAE,OAAO;EAEpBC,YAAY,EAAE,MAAM;EAEpBC,YAAY,EAAE;IACZC,KAAK,EAAE,CAAC;IACRC,IAAI,EAAE;EACR,CAAC;EAEDC,MAAM,EAAEC,6BAAc;EAEtBC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAEhBC,eAAe,EAAE;IACfC,IAAI,EAAE,MAAM;IACZC,EAAE,EAAE,MAAM;IACVC,GAAG,EAAE;EACP,CAAC;EAED;EACA;EACA;;EAEA;EACA;EACA;EACAC,UAAU,EAAEC,qBAAQ,CAACC,MAAM,CAAC;IAC1BC,GAAG,EAAE,QAAQ;IAAE;IACfC,OAAO,EAAE,QAAQ;IAAE;IACnBC,OAAO,EAAE;EACX,CAAC,CAAW;EAEZ;EACA;EACAC,cAAc,EAAEL,qBAAQ,CAACC,MAAM,CAAC;IAC9BC,GAAG,EAAE,QAAQ;IAAE;IACfC,OAAO,EAAE,aAAa;IAAE;IACxBC,OAAO,EAAE;EACX,CAAC,CAAW;EAEZ;EACAE,kBAAkB,EAAEN,qBAAQ,CAACC,MAAM,CAAC;IAClCC,GAAG,EAAE,QAAQ;IAAE;IACfC,OAAO,EAAE,eAAe;IAAE;IAC1BC,OAAO,EAAE;EACX,CAAC,CAAW;EAEZ;EACAG,eAAe,EAAEP,qBAAQ,CAACC,MAAM,CAAC;IAC/BC,GAAG,EAAE,QAAQ;IACbC,OAAO,EAAE,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K,EAAElD,qBAAQ,CAACmD,EAAE,KAAK,KAAK;EAC5BC,SAAS,EAAEpD,qBAAQ,CAACqD,OAAO;EAE3B;EACA;EACA;;EAEAC,YAAY,EAAE;IACZC,OAAO,EAAE;EACX;AACF,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMC,aAA+B,GAAAvE,OAAA,CAAAuE,aAAA,GAAG,IAAAC,gCAAe,EAACzE,cAAc,CAAC","ignoreList":[]}
|
|
@@ -5,34 +5,66 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.attachFunctions = attachFunctions;
|
|
7
7
|
var _index = require("./fns/index.js");
|
|
8
|
+
var _primaryShade = require("./fns/primary-shade.js");
|
|
9
|
+
var _themeColor = require("./fns/theme-color/theme-color.js");
|
|
10
|
+
/**
|
|
11
|
+
* Attach helper functions to theme object
|
|
12
|
+
* Creates theme.fn object with all utility functions
|
|
13
|
+
* Aligned with Mantine web's theme function attachment pattern
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Attach helper functions to theme base object
|
|
18
|
+
* Converts MantineThemeBase to full MantineTheme with fn object
|
|
19
|
+
*
|
|
20
|
+
* @param themeBase - Base theme configuration without functions
|
|
21
|
+
* @returns Complete theme with attached helper functions
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* const theme = attachFunctions(baseTheme);
|
|
25
|
+
* theme.fn.themeColor('blue', 5); // '#339af0'
|
|
26
|
+
* theme.fn.primaryShade(); // 6
|
|
27
|
+
* theme.fn.variant({ variant: 'filled', color: 'blue' });
|
|
28
|
+
*/
|
|
8
29
|
function attachFunctions(themeBase) {
|
|
9
30
|
return {
|
|
10
31
|
...themeBase,
|
|
11
32
|
fn: {
|
|
12
|
-
|
|
33
|
+
// Color functions
|
|
34
|
+
themeColor: (0, _themeColor.createThemeColorFunction)(themeBase),
|
|
35
|
+
primaryShade: (0, _primaryShade.createPrimaryShadeFunction)(themeBase),
|
|
36
|
+
primaryColor: (0, _primaryShade.createPrimaryColorFunction)(themeBase),
|
|
37
|
+
// Variant function
|
|
38
|
+
variant: _index.fns.variant(themeBase),
|
|
39
|
+
// Color manipulation
|
|
13
40
|
rgba: _index.fns.rgba(themeBase),
|
|
41
|
+
lighten: _index.fns.lighten,
|
|
42
|
+
darken: _index.fns.darken,
|
|
43
|
+
dimmed: _index.fns.dimmed(themeBase),
|
|
44
|
+
// Size and spacing functions
|
|
45
|
+
radius: _index.fns.radius(themeBase),
|
|
14
46
|
size: _index.fns.size(themeBase),
|
|
15
|
-
|
|
16
|
-
themeColor: (color, shade) => _index.fns.themeColor({
|
|
17
|
-
theme: themeBase,
|
|
18
|
-
color,
|
|
19
|
-
shade
|
|
20
|
-
}),
|
|
47
|
+
// Visual effects
|
|
21
48
|
shadow: _index.fns.shadow,
|
|
22
49
|
gradient: _index.fns.gradient(themeBase),
|
|
50
|
+
// Typography functions
|
|
23
51
|
fontStyles: _index.fns.fontStyles(themeBase),
|
|
24
52
|
inputFontStyles: _index.fns.inputFontStyles(themeBase),
|
|
25
|
-
focusStyles: _index.fns.focusStyles(themeBase),
|
|
26
53
|
placeholderStyles: _index.fns.placeholderStyles(themeBase),
|
|
54
|
+
fontSize: _index.fns.fontSize(themeBase),
|
|
55
|
+
lineHeight: _index.fns.lineHeight(themeBase),
|
|
56
|
+
headingStyles: _index.fns.headingStyles(themeBase),
|
|
57
|
+
// Layout functions
|
|
27
58
|
cover: _index.fns.cover(themeBase),
|
|
59
|
+
focusStyles: _index.fns.focusStyles(themeBase),
|
|
28
60
|
hover: _index.fns.hover(themeBase),
|
|
29
|
-
|
|
30
|
-
darken: _index.fns.darken,
|
|
31
|
-
dimmed: _index.fns.dimmed(themeBase),
|
|
61
|
+
// Responsive functions
|
|
32
62
|
largerThan: _index.fns.largerThan(themeBase),
|
|
33
|
-
smallerThan: _index.fns.smallerThan(themeBase)
|
|
34
|
-
|
|
35
|
-
|
|
63
|
+
smallerThan: _index.fns.smallerThan(themeBase),
|
|
64
|
+
// Color scheme helpers
|
|
65
|
+
colorSchemeValue: _index.fns.colorSchemeValue(themeBase),
|
|
66
|
+
colorSchemeConstants: _index.fns.colorSchemeConstants(themeBase)
|
|
67
|
+
}
|
|
36
68
|
};
|
|
37
69
|
}
|
|
38
70
|
//# sourceMappingURL=attach-functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","attachFunctions","themeBase","fn","
|
|
1
|
+
{"version":3,"names":["_index","require","_primaryShade","_themeColor","attachFunctions","themeBase","fn","themeColor","createThemeColorFunction","primaryShade","createPrimaryShadeFunction","primaryColor","createPrimaryColorFunction","variant","fns","rgba","lighten","darken","dimmed","radius","size","shadow","gradient","fontStyles","inputFontStyles","placeholderStyles","fontSize","lineHeight","headingStyles","cover","focusStyles","hover","largerThan","smallerThan","colorSchemeValue","colorSchemeConstants"],"sourceRoot":"../../../../src","sources":["theme/functions/attach-functions.ts"],"mappings":";;;;;;AAOA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAIA,IAAAE,WAAA,GAAAF,OAAA;AAZA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,eAAeA,CAACC,SAA2B,EAAgB;EACzE,OAAO;IACL,GAAGA,SAAS;IACZC,EAAE,EAAE;MACF;MACAC,UAAU,EAAE,IAAAC,oCAAwB,EAACH,SAAS,CAAC;MAC/CI,YAAY,EAAE,IAAAC,wCAA0B,EAACL,SAAS,CAAC;MACnDM,YAAY,EAAE,IAAAC,wCAA0B,EAACP,SAAS,CAAC;MAEnD;MACAQ,OAAO,EAAEC,UAAG,CAACD,OAAO,CAACR,SAAS,CAAC;MAE/B;MACAU,IAAI,EAAED,UAAG,CAACC,IAAI,CAACV,SAAS,CAAC;MACzBW,OAAO,EAAEF,UAAG,CAACE,OAAO;MACpBC,MAAM,EAAEH,UAAG,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sm","md","lg","xl","getBreakpointValue","breakpoint","theme","breakpoints","value","Number","largerThan","width","Dimensions","get","breakpointValue","smallerThan"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/breakpoints.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA,MAAMC,mBAAmB,GAAG;EAC1BC,EAAE,EAAE,GAAG;EAAE;EACTC,EAAE,EAAE,GAAG;EAAE;EACTC,EAAE,EAAE,GAAG;EAAE;EACTC,EAAE,EAAE,IAAI;EAAE;EACVC,EAAE,EAAE,IAAI,CAAE;AACZ,CAAC;AAID;AACA;AACA;AACA,SAASC,kBAAkBA,CACzBC,UAA6B,EAC7BC,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","DEFAULT_BREAKPOINTS","xs","sm","md","lg","xl","getBreakpointValue","breakpoint","theme","breakpoints","value","Number","largerThan","width","Dimensions","get","breakpointValue","smallerThan"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/breakpoints.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA,MAAMC,mBAAmB,GAAG;EAC1BC,EAAE,EAAE,GAAG;EAAE;EACTC,EAAE,EAAE,GAAG;EAAE;EACTC,EAAE,EAAE,GAAG;EAAE;EACTC,EAAE,EAAE,IAAI;EAAE;EACVC,EAAE,EAAE,IAAI,CAAE;AACZ,CAAC;AAID;AACA;AACA;AACA,SAASC,kBAAkBA,CACzBC,UAA6B,EAC7BC,KAAuB,EACf;EACR,IAAI,OAAOD,UAAU,KAAK,QAAQ,EAAE;IAClC,OAAOA,UAAU;EACnB;;EAEA;EACA,IAAIC,KAAK,CAACC,WAAW,IAAID,KAAK,CAACC,WAAW,CAACF,UAAU,CAAC,EAAE;IACtD,MAAMG,KAAK,GAAGF,KAAK,CAACC,WAAW,CAACF,UAAU,CAAC;IAC3C,OAAO,OAAOG,KAAK,KAAK,QAAQ,GAAGA,KAAK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