@nexara/nativeflow 0.1.6 → 0.1.8
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 +1 -1
- package/lib/commonjs/components/Avatar/AvatarImage.js +3 -9
- package/lib/commonjs/components/Avatar/AvatarImage.js.map +1 -1
- package/lib/commonjs/components/Avatar/AvatarText.js +2 -4
- package/lib/commonjs/components/Avatar/AvatarText.js.map +1 -1
- package/lib/commonjs/components/Button/Button.js +24 -23
- package/lib/commonjs/components/Button/Button.js.map +1 -1
- package/lib/commonjs/components/Button/utils.js +34 -27
- package/lib/commonjs/components/Button/utils.js.map +1 -1
- package/lib/commonjs/components/CheckBox/CheckBox.js +43 -39
- package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/commonjs/components/Chip/Chip.js +21 -25
- package/lib/commonjs/components/Chip/Chip.js.map +1 -1
- package/lib/commonjs/components/Chip/utils.js +31 -18
- package/lib/commonjs/components/Chip/utils.js.map +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +14 -10
- package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogBody.js +7 -7
- package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogDescription.js +7 -9
- package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogFoot.js +13 -16
- package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogHead.js +22 -27
- package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -1
- package/lib/commonjs/components/Divider/Divider.js +4 -8
- package/lib/commonjs/components/Divider/Divider.js.map +1 -1
- package/lib/commonjs/components/Grid/Grid.js +3 -4
- package/lib/commonjs/components/Grid/Grid.js.map +1 -1
- package/lib/commonjs/components/Icon/Icon.js +4 -5
- package/lib/commonjs/components/Icon/Icon.js.map +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +21 -20
- package/lib/commonjs/components/IconButton/IconButton.js.map +1 -1
- package/lib/commonjs/components/Link/Link.js +13 -17
- package/lib/commonjs/components/Link/Link.js.map +1 -1
- package/lib/commonjs/components/Menu/Menu.js +14 -9
- package/lib/commonjs/components/Menu/Menu.js.map +1 -1
- package/lib/commonjs/components/Menu/MenuItem.js +3 -5
- package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
- package/lib/commonjs/components/Menu/MenuItemLabel.js +2 -8
- package/lib/commonjs/components/Menu/MenuItemLabel.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalContext.js +1 -2
- package/lib/commonjs/components/Portal/PortalContext.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalProvider.js +1 -2
- package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -1
- package/lib/commonjs/components/Progress/Progress.js +6 -7
- package/lib/commonjs/components/Progress/Progress.js.map +1 -1
- package/lib/commonjs/components/Provider/ContextManager.js +16 -0
- package/lib/commonjs/components/Provider/ContextManager.js.map +1 -0
- package/lib/commonjs/components/Provider/NativeProvider.js +18 -9
- package/lib/commonjs/components/Provider/NativeProvider.js.map +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js +46 -0
- package/lib/commonjs/components/Radio/RadioGroup.js.map +1 -0
- package/lib/commonjs/components/Radio/RadioItem.js +77 -0
- package/lib/commonjs/components/Radio/RadioItem.js.map +1 -0
- package/lib/commonjs/components/Radio/index.js +15 -0
- package/lib/commonjs/components/Radio/index.js.map +1 -0
- package/lib/commonjs/components/Slider/Slider.js +4 -4
- package/lib/commonjs/components/Slider/Slider.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js +3 -9
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js +4 -10
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/StyledText.js +20 -9
- package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
- package/lib/commonjs/components/StyledComponents/StyledView.js +6 -8
- package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -1
- package/lib/commonjs/components/Surface/Surface.js +24 -21
- package/lib/commonjs/components/Surface/Surface.js.map +1 -1
- package/lib/commonjs/components/Switch/Switch.js +13 -10
- package/lib/commonjs/components/Switch/Switch.js.map +1 -1
- package/lib/commonjs/components/UserInput/UserInput.js +23 -18
- package/lib/commonjs/components/UserInput/UserInput.js.map +1 -1
- package/lib/commonjs/components/UserInput/generateColors.js +3 -3
- package/lib/commonjs/components/UserInput/generateColors.js.map +1 -1
- package/lib/commonjs/constants/typographySizes.js +11 -7
- package/lib/commonjs/constants/typographySizes.js.map +1 -1
- package/lib/commonjs/helpers/ResponsiveCalculations.js +47 -53
- package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/commonjs/hooks/index.js +3 -3
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/{useResponsive.js → useScalingMode.js} +3 -3
- package/lib/commonjs/hooks/useScalingMode.js.map +1 -0
- package/lib/commonjs/index.d.js +2 -0
- package/lib/commonjs/index.d.js.map +1 -0
- package/lib/commonjs/index.js +27 -40
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/themes/DarkTheme.js +185 -25
- package/lib/commonjs/themes/DarkTheme.js.map +1 -1
- package/lib/commonjs/themes/LightTheme.js +89 -81
- package/lib/commonjs/themes/LightTheme.js.map +1 -1
- package/lib/commonjs/types/divider.type.js +6 -0
- package/lib/commonjs/types/divider.type.js.map +1 -0
- package/lib/commonjs/types/index.js +44 -0
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/link.type.js +6 -0
- package/lib/commonjs/types/link.type.js.map +1 -0
- package/lib/commonjs/types/radio.type.js +6 -0
- package/lib/commonjs/types/radio.type.js.map +1 -0
- package/lib/commonjs/types/surface.type.js +6 -0
- package/lib/commonjs/types/surface.type.js.map +1 -0
- package/lib/commonjs/utils/index.js +2 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/module/components/Avatar/AvatarImage.js +3 -8
- package/lib/module/components/Avatar/AvatarImage.js.map +1 -1
- package/lib/module/components/Avatar/AvatarText.js +2 -3
- package/lib/module/components/Avatar/AvatarText.js.map +1 -1
- package/lib/module/components/Button/Button.js +23 -22
- package/lib/module/components/Button/Button.js.map +1 -1
- package/lib/module/components/Button/utils.js +34 -27
- package/lib/module/components/Button/utils.js.map +1 -1
- package/lib/module/components/CheckBox/CheckBox.js +37 -31
- package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/module/components/Chip/Chip.js +22 -26
- package/lib/module/components/Chip/Chip.js.map +1 -1
- package/lib/module/components/Chip/utils.js +30 -18
- package/lib/module/components/Chip/utils.js.map +1 -1
- package/lib/module/components/Dialog/Dialog.js +13 -8
- package/lib/module/components/Dialog/Dialog.js.map +1 -1
- package/lib/module/components/Dialog/DialogBody.js +9 -8
- package/lib/module/components/Dialog/DialogBody.js.map +1 -1
- package/lib/module/components/Dialog/DialogDescription.js +8 -9
- package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/module/components/Dialog/DialogFoot.js +14 -16
- package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/module/components/Dialog/DialogHead.js +24 -28
- package/lib/module/components/Dialog/DialogHead.js.map +1 -1
- package/lib/module/components/Divider/Divider.js +5 -8
- package/lib/module/components/Divider/Divider.js.map +1 -1
- package/lib/module/components/Grid/Grid.js +4 -3
- package/lib/module/components/Grid/Grid.js.map +1 -1
- package/lib/module/components/Icon/Icon.js +3 -3
- package/lib/module/components/Icon/Icon.js.map +1 -1
- package/lib/module/components/IconButton/IconButton.js +20 -19
- package/lib/module/components/IconButton/IconButton.js.map +1 -1
- package/lib/module/components/Link/Link.js +15 -19
- package/lib/module/components/Link/Link.js.map +1 -1
- package/lib/module/components/Menu/Menu.js +14 -8
- package/lib/module/components/Menu/Menu.js.map +1 -1
- package/lib/module/components/Menu/MenuItem.js +4 -5
- package/lib/module/components/Menu/MenuItem.js.map +1 -1
- package/lib/module/components/Menu/MenuItemLabel.js +2 -7
- package/lib/module/components/Menu/MenuItemLabel.js.map +1 -1
- package/lib/module/components/Progress/Progress.js +7 -6
- package/lib/module/components/Progress/Progress.js.map +1 -1
- package/lib/module/components/Provider/ContextManager.js +10 -0
- package/lib/module/components/Provider/ContextManager.js.map +1 -0
- package/lib/module/components/Provider/NativeProvider.js +17 -7
- package/lib/module/components/Provider/NativeProvider.js.map +1 -1
- package/lib/module/components/Radio/RadioGroup.js +41 -0
- package/lib/module/components/Radio/RadioGroup.js.map +1 -0
- package/lib/module/components/Radio/RadioItem.js +73 -0
- package/lib/module/components/Radio/RadioItem.js.map +1 -0
- package/lib/module/components/Radio/index.js +10 -0
- package/lib/module/components/Radio/index.js.map +1 -0
- package/lib/module/components/Slider/Slider.js +5 -5
- package/lib/module/components/Slider/Slider.js.map +1 -1
- package/lib/module/components/Stack/HStack.js +3 -7
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js +4 -8
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/StyledComponents/StyledText.js +20 -8
- package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
- package/lib/module/components/StyledComponents/StyledView.js +6 -7
- package/lib/module/components/StyledComponents/StyledView.js.map +1 -1
- package/lib/module/components/Surface/Surface.js +24 -20
- package/lib/module/components/Surface/Surface.js.map +1 -1
- package/lib/module/components/Switch/Switch.js +14 -11
- package/lib/module/components/Switch/Switch.js.map +1 -1
- package/lib/module/components/UserInput/UserInput.js +24 -19
- package/lib/module/components/UserInput/UserInput.js.map +1 -1
- package/lib/module/components/UserInput/generateColors.js +3 -3
- package/lib/module/components/UserInput/generateColors.js.map +1 -1
- package/lib/module/constants/typographySizes.js +11 -7
- package/lib/module/constants/typographySizes.js.map +1 -1
- package/lib/module/helpers/ResponsiveCalculations.js +46 -48
- package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/module/hooks/index.js +1 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useScalingMode.js +7 -0
- package/lib/module/hooks/useScalingMode.js.map +1 -0
- package/lib/module/index.d.js +2 -0
- package/lib/module/index.d.js.map +1 -0
- package/lib/module/index.js +4 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/themes/DarkTheme.js +188 -24
- package/lib/module/themes/DarkTheme.js.map +1 -1
- package/lib/module/themes/LightTheme.js +88 -81
- package/lib/module/themes/LightTheme.js.map +1 -1
- package/lib/module/themes/index.js +0 -1
- package/lib/module/themes/index.js.map +1 -1
- package/lib/module/types/divider.type.js +4 -0
- package/lib/module/types/divider.type.js.map +1 -0
- package/lib/module/types/index.js +4 -0
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/link.type.js +4 -0
- package/lib/module/types/link.type.js.map +1 -0
- package/lib/module/types/radio.type.js +4 -0
- package/lib/module/types/radio.type.js.map +1 -0
- package/lib/module/types/surface.type.js +4 -0
- package/lib/module/types/surface.type.js.map +1 -0
- package/lib/module/utils/index.js +2 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/commonjs/scripts/generateConfig.d.ts +1 -0
- package/lib/typescript/commonjs/scripts/generateConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/scripts/readConfig.d.ts +1 -0
- package/lib/typescript/commonjs/scripts/readConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/Button.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts +0 -1
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Chip/utils.d.ts +3 -2
- package/lib/typescript/commonjs/src/components/Chip/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts +3 -8
- package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts +4 -2
- package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Link/Link.d.ts +3 -10
- package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Provider/ContextManager.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/Provider/ContextManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts +9 -4
- package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Radio/RadioGroup.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/Radio/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Radio/RadioItem.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/Radio/RadioItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Radio/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +36 -1
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/constants/typographySizes.d.ts +2 -8
- package/lib/typescript/commonjs/src/constants/typographySizes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +0 -3
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useScalingMode.d.ts +5 -0
- package/lib/typescript/commonjs/src/hooks/useScalingMode.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +5 -5
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/avatar.type.d.ts +0 -2
- package/lib/typescript/commonjs/src/types/avatar.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/button.type.d.ts +20 -20
- package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/checkbox.type.d.ts +20 -14
- package/lib/typescript/commonjs/src/types/checkbox.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/chip.type.d.ts +21 -13
- package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/common.type.d.ts +72 -22
- package/lib/typescript/commonjs/src/types/common.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/dialog.type.d.ts +13 -12
- package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/divider.type.d.ts +11 -0
- package/lib/typescript/commonjs/src/types/divider.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/grid.type.d.ts +2 -1
- package/lib/typescript/commonjs/src/types/grid.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/link.type.d.ts +12 -0
- package/lib/typescript/commonjs/src/types/link.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/menu.type.d.ts +4 -16
- package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/radio.type.d.ts +61 -0
- package/lib/typescript/commonjs/src/types/radio.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/stack.type.d.ts +6 -14
- package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +25 -72
- package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/surface.type.d.ts +16 -0
- package/lib/typescript/commonjs/src/types/surface.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts +10 -13
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/scripts/generateConfig.d.ts +1 -0
- package/lib/typescript/module/scripts/generateConfig.d.ts.map +1 -0
- package/lib/typescript/module/scripts/readConfig.d.ts +1 -0
- package/lib/typescript/module/scripts/readConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts +2 -2
- package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts +2 -2
- package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/Button.d.ts +2 -2
- package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/utils.d.ts +0 -1
- package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts +2 -2
- package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Chip/Chip.d.ts +2 -2
- package/lib/typescript/module/src/components/Chip/Chip.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Chip/utils.d.ts +3 -2
- package/lib/typescript/module/src/components/Chip/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts +4 -4
- package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts +2 -2
- package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts +2 -2
- package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts +2 -2
- package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Divider/Divider.d.ts +3 -8
- package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Grid/Grid.d.ts +2 -2
- package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -1
- package/lib/typescript/module/src/components/IconButton/IconButton.d.ts +4 -2
- package/lib/typescript/module/src/components/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Link/Link.d.ts +3 -10
- package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Menu/Menu.d.ts +2 -2
- package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Menu/MenuItem.d.ts +2 -2
- package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts +2 -2
- package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Progress/Progress.d.ts +2 -2
- package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Provider/ContextManager.d.ts +3 -0
- package/lib/typescript/module/src/components/Provider/ContextManager.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts +9 -4
- package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Radio/RadioGroup.d.ts +5 -0
- package/lib/typescript/module/src/components/Radio/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Radio/RadioItem.d.ts +5 -0
- package/lib/typescript/module/src/components/Radio/RadioItem.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Radio/index.d.ts +6 -0
- package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Stack/HStack.d.ts +2 -2
- package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Stack/VStack.d.ts +2 -2
- package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts +2 -2
- package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -1
- package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts +2 -2
- package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Surface/Surface.d.ts +3 -3
- package/lib/typescript/module/src/components/Surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Switch/Switch.d.ts +2 -2
- package/lib/typescript/module/src/components/Switch/Switch.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +36 -1
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/module/src/constants/typographySizes.d.ts +2 -8
- package/lib/typescript/module/src/constants/typographySizes.d.ts.map +1 -1
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +0 -3
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/index.d.ts +1 -1
- package/lib/typescript/module/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useScalingMode.d.ts +5 -0
- package/lib/typescript/module/src/hooks/useScalingMode.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +5 -5
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/themes/DarkTheme.d.ts.map +1 -1
- package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -1
- package/lib/typescript/module/src/types/avatar.type.d.ts +0 -2
- package/lib/typescript/module/src/types/avatar.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/button.type.d.ts +20 -20
- package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/checkbox.type.d.ts +20 -14
- package/lib/typescript/module/src/types/checkbox.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/chip.type.d.ts +21 -13
- package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/common.type.d.ts +72 -22
- package/lib/typescript/module/src/types/common.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/dialog.type.d.ts +13 -12
- package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/divider.type.d.ts +11 -0
- package/lib/typescript/module/src/types/divider.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/grid.type.d.ts +2 -1
- package/lib/typescript/module/src/types/grid.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/index.d.ts +4 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/link.type.d.ts +12 -0
- package/lib/typescript/module/src/types/link.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/menu.type.d.ts +4 -16
- package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/radio.type.d.ts +61 -0
- package/lib/typescript/module/src/types/radio.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/stack.type.d.ts +6 -14
- package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/styledComponents.type.d.ts +25 -72
- package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/surface.type.d.ts +16 -0
- package/lib/typescript/module/src/types/surface.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/userInput.type.d.ts +10 -13
- package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +1 -0
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
- package/package.json +9 -4
- package/src/components/Avatar/AvatarImage.tsx +2 -7
- package/src/components/Avatar/AvatarText.tsx +4 -4
- package/src/components/Button/Button.tsx +35 -26
- package/src/components/Button/utils.ts +30 -30
- package/src/components/CheckBox/CheckBox.tsx +33 -29
- package/src/components/Chip/Chip.tsx +25 -32
- package/src/components/Chip/utils.ts +34 -20
- package/src/components/Dialog/Dialog.tsx +11 -6
- package/src/components/Dialog/DialogBody.tsx +13 -13
- package/src/components/Dialog/DialogDescription.tsx +9 -9
- package/src/components/Dialog/DialogFoot.tsx +19 -20
- package/src/components/Dialog/DialogHead.tsx +17 -21
- package/src/components/Divider/Divider.tsx +7 -15
- package/src/components/Grid/Grid.tsx +6 -5
- package/src/components/Icon/Icon.tsx +3 -3
- package/src/components/IconButton/IconButton.tsx +26 -17
- package/src/components/Link/Link.tsx +20 -29
- package/src/components/Menu/Menu.tsx +11 -7
- package/src/components/Menu/MenuItem.tsx +6 -6
- package/src/components/Menu/MenuItemLabel.tsx +4 -9
- package/src/components/Progress/Progress.tsx +8 -7
- package/src/components/Provider/ContextManager.tsx +9 -0
- package/src/components/Provider/NativeProvider.tsx +25 -10
- package/src/components/Radio/RadioGroup.tsx +40 -0
- package/src/components/Radio/RadioItem.tsx +72 -0
- package/src/components/Radio/index.ts +9 -0
- package/src/components/Slider/Slider.tsx +3 -3
- package/src/components/Stack/HStack.tsx +5 -8
- package/src/components/Stack/VStack.tsx +6 -11
- package/src/components/StyledComponents/StyledText.tsx +17 -8
- package/src/components/StyledComponents/StyledView.tsx +7 -8
- package/src/components/Surface/Surface.tsx +20 -27
- package/src/components/Switch/Switch.tsx +12 -10
- package/src/components/UserInput/UserInput.tsx +25 -19
- package/src/components/UserInput/generateColors.ts +3 -3
- package/src/constants/typographySizes.ts +13 -15
- package/src/helpers/ResponsiveCalculations.ts +50 -49
- package/src/hooks/index.ts +1 -1
- package/src/hooks/{useResponsive.tsx → useScalingMode.tsx} +2 -2
- package/src/index.d.ts +3 -0
- package/src/index.ts +7 -7
- package/src/themes/DarkTheme.ts +169 -30
- package/src/themes/LightTheme.ts +78 -85
- package/src/themes/index.ts +0 -1
- package/src/types/avatar.type.ts +0 -3
- package/src/types/button.type.ts +20 -20
- package/src/types/checkbox.type.ts +22 -15
- package/src/types/chip.type.ts +24 -15
- package/src/types/common.type.ts +82 -23
- package/src/types/dialog.type.ts +15 -14
- package/src/types/divider.type.ts +15 -0
- package/src/types/grid.type.ts +2 -1
- package/src/types/index.ts +5 -1
- package/src/types/link.type.ts +15 -0
- package/src/types/menu.type.ts +4 -19
- package/src/types/radio.type.ts +78 -0
- package/src/types/stack.type.ts +7 -17
- package/src/types/styledComponents.type.ts +27 -75
- package/src/types/surface.type.ts +19 -0
- package/src/types/userInput.type.ts +10 -14
- package/src/utils/index.ts +0 -0
- package/lib/commonjs/components/Header/Header.js +0 -78
- package/lib/commonjs/components/Header/Header.js.map +0 -1
- package/lib/commonjs/helpers/LightenColorShades.js +0 -27
- package/lib/commonjs/helpers/LightenColorShades.js.map +0 -1
- package/lib/commonjs/hooks/useResponsive.js.map +0 -1
- package/lib/commonjs/themes/createTheme.js +0 -25
- package/lib/commonjs/themes/createTheme.js.map +0 -1
- package/lib/module/components/Header/Header.js +0 -73
- package/lib/module/components/Header/Header.js.map +0 -1
- package/lib/module/helpers/LightenColorShades.js +0 -23
- package/lib/module/helpers/LightenColorShades.js.map +0 -1
- package/lib/module/hooks/useResponsive.js +0 -7
- package/lib/module/hooks/useResponsive.js.map +0 -1
- package/lib/module/themes/createTheme.js +0 -25
- package/lib/module/themes/createTheme.js.map +0 -1
- package/lib/typescript/commonjs/src/components/Header/Header.d.ts +0 -16
- package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +0 -3
- package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts +0 -3
- package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/themes/createTheme.d.ts +0 -1
- package/lib/typescript/commonjs/src/themes/createTheme.d.ts.map +0 -1
- package/lib/typescript/module/src/components/Header/Header.d.ts +0 -16
- package/lib/typescript/module/src/components/Header/Header.d.ts.map +0 -1
- package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +0 -3
- package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useResponsive.d.ts +0 -3
- package/lib/typescript/module/src/hooks/useResponsive.d.ts.map +0 -1
- package/lib/typescript/module/src/themes/createTheme.d.ts +0 -1
- package/lib/typescript/module/src/themes/createTheme.d.ts.map +0 -1
- package/src/components/Header/Header.tsx +0 -82
- package/src/helpers/LightenColorShades.ts +0 -27
- package/src/themes/createTheme.ts +0 -23
package/src/types/button.type.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StyleProp, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";
|
|
2
|
-
import type { ButtonVariant,
|
|
2
|
+
import type { ButtonVariant, TypographyScale } from "./common.type";
|
|
3
3
|
import type { JSX } from "react";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -12,7 +12,7 @@ export type ButtonProps = TouchableOpacityProps & {
|
|
|
12
12
|
/** Determines button shape - 'round' or 'flat' */
|
|
13
13
|
type?: 'round' | 'flat';
|
|
14
14
|
|
|
15
|
-
/**
|
|
15
|
+
/** Expands the button to occupy the full available width */
|
|
16
16
|
fullWidth?: boolean;
|
|
17
17
|
|
|
18
18
|
/** Horizontal padding inside the button */
|
|
@@ -21,56 +21,56 @@ export type ButtonProps = TouchableOpacityProps & {
|
|
|
21
21
|
/** Vertical padding inside the button */
|
|
22
22
|
paddingV?: number;
|
|
23
23
|
|
|
24
|
-
/** Custom background color */
|
|
24
|
+
/** Custom background color (applies to contained buttons) */
|
|
25
25
|
bg?: string;
|
|
26
26
|
|
|
27
27
|
/** Border radius of the button */
|
|
28
28
|
br?: number;
|
|
29
29
|
|
|
30
|
-
/** Border width (
|
|
30
|
+
/** Border width (used in outlined variant) */
|
|
31
31
|
stroke?: number;
|
|
32
32
|
|
|
33
|
-
/** Border color */
|
|
33
|
+
/** Border color (used in outlined variant) */
|
|
34
34
|
strokeColor?: string;
|
|
35
35
|
|
|
36
|
-
/** Text color */
|
|
36
|
+
/** Text (label) color */
|
|
37
37
|
titleColor?: string;
|
|
38
38
|
|
|
39
|
-
/**
|
|
39
|
+
/** Text (label) displayed on the button */
|
|
40
40
|
title?: string;
|
|
41
41
|
|
|
42
42
|
/** Font size of the button text */
|
|
43
|
-
|
|
43
|
+
fs?: number;
|
|
44
44
|
|
|
45
|
-
/** Typography
|
|
46
|
-
|
|
45
|
+
/** Typography scale (h1, h2, body, caption, etc.) */
|
|
46
|
+
fScale?: TypographyScale;
|
|
47
47
|
|
|
48
48
|
/** Font family for the button text */
|
|
49
|
-
|
|
49
|
+
ff?: string;
|
|
50
50
|
|
|
51
|
-
/**
|
|
51
|
+
/** Size of the button (applies when `type="round"`) */
|
|
52
52
|
size?: number;
|
|
53
53
|
|
|
54
|
-
/** Ripple effect color */
|
|
54
|
+
/** Ripple effect color for button press feedback */
|
|
55
55
|
rippleColor?: string;
|
|
56
56
|
|
|
57
|
-
/**
|
|
57
|
+
/** Single icon element placed at the center (used mostly in round buttons) */
|
|
58
58
|
renderIcon?: JSX.Element;
|
|
59
59
|
|
|
60
|
-
/**
|
|
60
|
+
/** Icon displayed before the button text */
|
|
61
61
|
renderLeftIcon?: JSX.Element;
|
|
62
62
|
|
|
63
|
-
/**
|
|
63
|
+
/** Icon displayed after the button text */
|
|
64
64
|
renderRightIcon?: JSX.Element;
|
|
65
65
|
|
|
66
|
-
/** Disables the button when
|
|
66
|
+
/** Disables the button when true */
|
|
67
67
|
disabled?: boolean;
|
|
68
68
|
|
|
69
69
|
/** Custom styles for the button container */
|
|
70
|
-
|
|
70
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
71
71
|
|
|
72
|
-
/** Custom styles for the text */
|
|
73
|
-
|
|
72
|
+
/** Custom styles for the title text */
|
|
73
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
74
74
|
|
|
75
75
|
/** Function to execute when button is pressed */
|
|
76
76
|
onPress?: () => void;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TypographyScale } from "./common.type";
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Props for the CheckBox component
|
|
6
|
+
*/
|
|
4
7
|
export type CheckBoxProps = {
|
|
5
|
-
/**
|
|
8
|
+
/** Shape of the checkbox: 'square' or 'round' */
|
|
6
9
|
variant?: 'square' | 'round';
|
|
7
10
|
|
|
8
|
-
/** Current checked state
|
|
11
|
+
/** Current checked state (for controlled component) */
|
|
9
12
|
isChecked?: boolean;
|
|
10
13
|
|
|
11
14
|
/** Default checked state (for uncontrolled component) */
|
|
@@ -20,20 +23,23 @@ export type CheckBoxProps = {
|
|
|
20
23
|
/** Color of the checkmark icon */
|
|
21
24
|
iconColor?: string;
|
|
22
25
|
|
|
23
|
-
/**
|
|
26
|
+
/** Disables built-in state handling (for controlled usage) */
|
|
24
27
|
disableBuiltInState?: boolean;
|
|
25
28
|
|
|
26
29
|
/** Disables the checkbox, preventing user interaction */
|
|
27
30
|
disabled?: boolean;
|
|
28
31
|
|
|
29
32
|
/** Text label displayed next to the checkbox */
|
|
30
|
-
|
|
33
|
+
label?: string;
|
|
31
34
|
|
|
32
|
-
/**
|
|
35
|
+
/** Typography scale for the label text (maps to your design system) */
|
|
36
|
+
fScale?: TypographyScale;
|
|
37
|
+
|
|
38
|
+
/** Font size of the label text (overrides fScale if provided) */
|
|
33
39
|
fs?: number;
|
|
34
40
|
|
|
35
|
-
/**
|
|
36
|
-
|
|
41
|
+
/** Font family for the label text */
|
|
42
|
+
ff?: string;
|
|
37
43
|
|
|
38
44
|
/** Size of the checkbox (width & height) */
|
|
39
45
|
size?: number;
|
|
@@ -41,17 +47,18 @@ export type CheckBoxProps = {
|
|
|
41
47
|
/** Size of the checkmark icon inside the checkbox */
|
|
42
48
|
iconSize?: number;
|
|
43
49
|
|
|
44
|
-
/** Custom styles for the
|
|
50
|
+
/** Custom styles for the outer container of checkbox + label */
|
|
45
51
|
containerStyle?: StyleProp<ViewStyle>;
|
|
46
52
|
|
|
47
53
|
/** Custom styles for the checkbox itself */
|
|
48
54
|
checkBoxStyle?: StyleProp<ViewStyle>;
|
|
49
55
|
|
|
50
|
-
/** Custom styles for the text
|
|
51
|
-
|
|
56
|
+
/** Custom styles for the label text */
|
|
57
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
52
58
|
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
59
|
+
/**
|
|
60
|
+
* Callback triggered when the checkbox is pressed.
|
|
61
|
+
* @param checked - The new checked state (true/false)
|
|
55
62
|
*/
|
|
56
|
-
onPress?: (
|
|
57
|
-
};
|
|
63
|
+
onPress?: (checked: boolean) => void;
|
|
64
|
+
};
|
package/src/types/chip.type.ts
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import type { JSX } from "react";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export type ChipProps = PressableProps & {
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle, TouchableOpacityProps } from "react-native";
|
|
3
|
+
import type { TypographyScale } from "./common.type";
|
|
5
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Chip component
|
|
7
|
+
*/
|
|
8
|
+
export type ChipProps = TouchableOpacityProps & {
|
|
6
9
|
/** Text displayed inside the chip */
|
|
7
|
-
|
|
10
|
+
label?: string;
|
|
8
11
|
|
|
9
12
|
/** Background color of the chip */
|
|
10
13
|
bg?: string;
|
|
11
14
|
|
|
12
|
-
/** Color of the text
|
|
13
|
-
|
|
15
|
+
/** Color of the label text */
|
|
16
|
+
labelColor?: string;
|
|
14
17
|
|
|
15
|
-
/** Font size of the
|
|
18
|
+
/** Font size of the label text (overrides fScale if provided) */
|
|
16
19
|
fs?: number;
|
|
17
20
|
|
|
21
|
+
/** Typography scale of the label text (e.g., xs, sm, md, lg, xl) */
|
|
22
|
+
fScale?: TypographyScale;
|
|
23
|
+
|
|
24
|
+
/** Font family for the label text */
|
|
25
|
+
ff?: string;
|
|
26
|
+
|
|
18
27
|
/** Border radius of the chip */
|
|
19
28
|
br?: number;
|
|
20
29
|
|
|
@@ -30,8 +39,8 @@ export type ChipProps = PressableProps & {
|
|
|
30
39
|
/** Border width of the chip */
|
|
31
40
|
stroke?: number;
|
|
32
41
|
|
|
33
|
-
/**
|
|
34
|
-
|
|
42
|
+
/** Border color of the chip */
|
|
43
|
+
strokeColor?: string;
|
|
35
44
|
|
|
36
45
|
/** Ripple effect color when pressed */
|
|
37
46
|
rippleColor?: string;
|
|
@@ -39,18 +48,18 @@ export type ChipProps = PressableProps & {
|
|
|
39
48
|
/** Disables the chip, preventing interaction */
|
|
40
49
|
disabled?: boolean;
|
|
41
50
|
|
|
42
|
-
/**
|
|
43
|
-
|
|
51
|
+
/** Indicates the chip is active (for styling purposes) */
|
|
52
|
+
active?: boolean;
|
|
44
53
|
|
|
45
|
-
/** Icon to render on the left side of the chip */
|
|
54
|
+
/** Icon element to render on the left side of the chip */
|
|
46
55
|
renderLeftIcon?: JSX.Element;
|
|
47
56
|
|
|
48
|
-
/** Icon to render on the right side of the chip */
|
|
57
|
+
/** Icon element to render on the right side of the chip */
|
|
49
58
|
renderRightIcon?: JSX.Element;
|
|
50
59
|
|
|
51
60
|
/** Custom styles for the chip container */
|
|
52
61
|
containerStyle?: StyleProp<ViewStyle>;
|
|
53
62
|
|
|
54
|
-
/** Custom styles for the
|
|
63
|
+
/** Custom styles for the label text */
|
|
55
64
|
textStyle?: StyleProp<TextStyle>;
|
|
56
|
-
};
|
|
65
|
+
};
|
package/src/types/common.type.ts
CHANGED
|
@@ -3,8 +3,11 @@ import type { typographySizeTypes } from "../constants/typographySizes";
|
|
|
3
3
|
export type UserInputVariant = 'outlined' | 'standard';
|
|
4
4
|
export type DialogVariant = 'classic' | 'default';
|
|
5
5
|
export type ButtonVariant = 'outlined' | 'contained';
|
|
6
|
-
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7';
|
|
6
|
+
// export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7';
|
|
7
|
+
export type TypographyScale = 'xxs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
8
|
+
export type TypographyVariant = keyof ThemeColorTypes['typography'];
|
|
7
9
|
export type themeModeTypes = 'light' | 'dark';
|
|
10
|
+
export type scalingModeTypes = 'full' | 'partial';
|
|
8
11
|
|
|
9
12
|
export type dialogSizesTypes = {
|
|
10
13
|
xs: number,
|
|
@@ -14,34 +17,90 @@ export type dialogSizesTypes = {
|
|
|
14
17
|
full: number,
|
|
15
18
|
};
|
|
16
19
|
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
dividerColor: string;
|
|
32
|
-
switchColor: string;
|
|
33
|
-
inputBgColor: string;
|
|
34
|
-
chipBgColor: string;
|
|
35
|
-
error: string;
|
|
20
|
+
type ColorPalette = {
|
|
21
|
+
natural: {
|
|
22
|
+
0: string;
|
|
23
|
+
50: string;
|
|
24
|
+
100: string;
|
|
25
|
+
200: string;
|
|
26
|
+
300: string;
|
|
27
|
+
400: string;
|
|
28
|
+
500: string;
|
|
29
|
+
600: string;
|
|
30
|
+
700: string;
|
|
31
|
+
800: string;
|
|
32
|
+
900: string;
|
|
33
|
+
}
|
|
36
34
|
}
|
|
35
|
+
type ThemeColorTypes = {
|
|
36
|
+
|
|
37
|
+
palette: ColorPalette;
|
|
38
|
+
|
|
39
|
+
brand: {
|
|
40
|
+
primary: string; // Main brand color (buttons, highlights)
|
|
41
|
+
onPrimary: string; // Text/icons on primary background
|
|
42
|
+
secondary: string; // Secondary brand color (accents)
|
|
43
|
+
onSecondary: string; // Text/icons on secondary background
|
|
44
|
+
tertiary: string; // Optional brand accent (extra highlight)
|
|
45
|
+
onTertiary: string; // Text/icons on tertiary background
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
semantic: {
|
|
49
|
+
success: string; // Success indicators (green states)
|
|
50
|
+
onSuccess: string; // Text/icons on success background
|
|
51
|
+
warning: string; // Warning indicators (yellow states)
|
|
52
|
+
onWarning: string; // Text/icons on warning background
|
|
53
|
+
danger: string; // Error/destructive indicators (red states)
|
|
54
|
+
onDanger: string; // Text/icons on danger background
|
|
55
|
+
info: string; // Informational highlights (blue states)
|
|
56
|
+
onInfo: string; // Text/icons on info background
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
background: {
|
|
60
|
+
default: string; // App/page root background
|
|
61
|
+
surface: string; // Surfaces like cards, sections
|
|
62
|
+
elevated: string; // Floating UI (menus, dialogs)
|
|
63
|
+
backdrop: string; // Dimmed overlay behind modals
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
border: {
|
|
67
|
+
subtle: string; // For dividers, separators, very low-emphasis outlines like Card dividers.
|
|
68
|
+
default: string; // The “go-to” border color for most components. like Button borders, Input fields when idle, Container outlines.
|
|
69
|
+
strong: string; // High-contrast, visible borders that must stand out, Modals or cards against busy backgrounds.
|
|
70
|
+
focus: string; //Special border color for focus rings or interactive states, Input fields when focused.
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
typography: {
|
|
74
|
+
primary: string;
|
|
75
|
+
secondary: string;
|
|
76
|
+
tertiary: string;
|
|
77
|
+
disabled: string;
|
|
78
|
+
inverse: string; // for text over dark backgrounds
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
states: {
|
|
82
|
+
hover: string;
|
|
83
|
+
pressed: string;
|
|
84
|
+
focus: string;
|
|
85
|
+
disabled: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
elevation?: {
|
|
89
|
+
level0: string; // shadow for flat
|
|
90
|
+
level1: string; // small cards
|
|
91
|
+
level2: string; // dialogs
|
|
92
|
+
level3: string; // modals
|
|
93
|
+
level4: string; // modals
|
|
94
|
+
};
|
|
95
|
+
};
|
|
37
96
|
|
|
38
97
|
export type ThemeTypes = {
|
|
39
98
|
isDark: boolean,
|
|
40
99
|
colors: ThemeColorTypes;
|
|
41
|
-
|
|
42
|
-
|
|
100
|
+
sizes: {
|
|
101
|
+
typography: typographySizeTypes;
|
|
102
|
+
dialog: dialogSizesTypes;
|
|
43
103
|
};
|
|
44
|
-
dialogSizes: dialogSizesTypes;
|
|
45
104
|
}
|
|
46
105
|
|
|
47
106
|
export type Theme = {
|
package/src/types/dialog.type.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
-
import type { DialogVariant,
|
|
3
|
+
import type { DialogVariant, TypographyScale } from "./common.type";
|
|
4
|
+
import type { StyledTextProps, StyledViewProps } from "./styledComponents.type";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
export type DialogRefProps = {
|
|
@@ -42,13 +43,10 @@ export type DialogBodyProps = {
|
|
|
42
43
|
children?: ReactNode;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
|
-
export type DialogDescriptionProps = {
|
|
46
|
+
export type DialogDescriptionProps = StyledTextProps & {
|
|
46
47
|
|
|
47
48
|
/** Variant of the typography to be applied to the text */
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/** Font size for the dialog description text */
|
|
51
|
-
fs?: number;
|
|
49
|
+
fScale?: TypographyScale;
|
|
52
50
|
|
|
53
51
|
/** Style for the container wrapping the dialog description */
|
|
54
52
|
containerStyle?: StyleProp<ViewStyle>;
|
|
@@ -60,7 +58,7 @@ export type DialogDescriptionProps = {
|
|
|
60
58
|
children?: ReactNode;
|
|
61
59
|
};
|
|
62
60
|
|
|
63
|
-
export type DialogFootProps = {
|
|
61
|
+
export type DialogFootProps = StyledViewProps & {
|
|
64
62
|
/** Custom styles for the container wrapping the dialog footer */
|
|
65
63
|
containerStyle?: StyleProp<ViewStyle>;
|
|
66
64
|
|
|
@@ -69,21 +67,24 @@ export type DialogFootProps = {
|
|
|
69
67
|
};
|
|
70
68
|
|
|
71
69
|
export type DialogHeadProps = {
|
|
72
|
-
/** Title text to be displayed in the dialog header */
|
|
70
|
+
/** Title text to be displayed in the dialog header. If not provided, `children` will be rendered. */
|
|
73
71
|
title?: string;
|
|
74
72
|
|
|
75
|
-
/** Typography
|
|
76
|
-
|
|
73
|
+
/** Typography scale for the title text (e.g., xs, sm, md, lg, xl) */
|
|
74
|
+
fScale?: TypographyScale;
|
|
77
75
|
|
|
78
|
-
/** Font size of the title text */
|
|
76
|
+
/** Font size of the title text (overrides fScale if provided) */
|
|
79
77
|
fs?: number;
|
|
80
78
|
|
|
79
|
+
/** Font family for the title text */
|
|
80
|
+
ff?: string;
|
|
81
|
+
|
|
81
82
|
/** Custom styles for the container wrapping the dialog header */
|
|
82
83
|
containerStyle?: StyleProp<ViewStyle>;
|
|
83
84
|
|
|
84
85
|
/** Custom styles for the title text */
|
|
85
|
-
|
|
86
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
86
87
|
|
|
87
88
|
/** Additional elements or components to be rendered inside the dialog header */
|
|
88
|
-
children?:
|
|
89
|
-
};
|
|
89
|
+
children?: ReactNode;
|
|
90
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
|
|
3
|
+
/** Props for the Divider component */
|
|
4
|
+
|
|
5
|
+
export type DividerProps = {
|
|
6
|
+
|
|
7
|
+
/** Thickness of the divider line */
|
|
8
|
+
thickness?: number;
|
|
9
|
+
|
|
10
|
+
/** Custom styles to apply to the divider */
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
|
|
13
|
+
/** Color of the divider line; defaults to theme's subtle border color if not provided */
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
package/src/types/grid.type.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { StyledViewProps } from "./styledComponents.type";
|
|
2
3
|
|
|
3
|
-
export type GridProps =
|
|
4
|
+
export type GridProps = StyledViewProps & {
|
|
4
5
|
/**
|
|
5
6
|
* If true, the component will act as a grid container.
|
|
6
7
|
* Similar to CSS flex/grid container.
|
package/src/types/index.ts
CHANGED
|
@@ -10,4 +10,8 @@ export * from './stack.type';
|
|
|
10
10
|
export * from './styledComponents.type';
|
|
11
11
|
export * from './switch.type';
|
|
12
12
|
export * from './userInput.type';
|
|
13
|
-
export * from './progress.type'
|
|
13
|
+
export * from './progress.type'
|
|
14
|
+
export * from './surface.type'
|
|
15
|
+
export * from './radio.type'
|
|
16
|
+
export * from './divider.type'
|
|
17
|
+
export * from './link.type'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TextStyle } from "react-native";
|
|
2
|
+
import type { StyledTextProps } from "./styledComponents.type";
|
|
3
|
+
|
|
4
|
+
/** Props for the Link component */
|
|
5
|
+
|
|
6
|
+
export type LinkProps = StyledTextProps & {
|
|
7
|
+
/** The visible text of the link */
|
|
8
|
+
title: string;
|
|
9
|
+
|
|
10
|
+
/** The URL to be opened when the link is pressed */
|
|
11
|
+
href: string;
|
|
12
|
+
|
|
13
|
+
/** Optional custom styles for the text */
|
|
14
|
+
style?: TextStyle;
|
|
15
|
+
}
|
package/src/types/menu.type.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSX, ReactNode } from "react";
|
|
2
|
-
import type { StyleProp,
|
|
3
|
-
import type {
|
|
2
|
+
import type { StyleProp, TouchableOpacityProps, View, ViewStyle } from "react-native";
|
|
3
|
+
import type { StyledTextProps } from "./styledComponents.type";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export type MenuProps = {
|
|
@@ -85,7 +85,7 @@ export type MenuItemProps = TouchableOpacityProps & {
|
|
|
85
85
|
/**
|
|
86
86
|
* Custom styles for the menu item container.
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Child components to be rendered inside the menu item.
|
|
@@ -93,22 +93,7 @@ export type MenuItemProps = TouchableOpacityProps & {
|
|
|
93
93
|
children?: ReactNode;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export type MenuItemLabelProps =
|
|
97
|
-
/**
|
|
98
|
-
* Font size of the label text.
|
|
99
|
-
*/
|
|
100
|
-
fs?: number;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Typography variant for the label text.
|
|
104
|
-
*/
|
|
105
|
-
textVariant?: TypographyVariant;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Custom styles for the text component.
|
|
109
|
-
*/
|
|
110
|
-
style?: StyleProp<TextStyle>;
|
|
111
|
-
|
|
96
|
+
export type MenuItemLabelProps = StyledTextProps & {
|
|
112
97
|
/**
|
|
113
98
|
* Text to be displayed inside the label.
|
|
114
99
|
*/
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyledTextProps, StyledViewProps } from "./styledComponents.type";
|
|
3
|
+
import type { TouchableOpacityProps } from "react-native";
|
|
4
|
+
import type { TypographyScale } from "./common.type";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props for the RadioGroup component
|
|
8
|
+
*/
|
|
9
|
+
export type RadioGroupProps = StyledViewProps & {
|
|
10
|
+
/**
|
|
11
|
+
* Unique name for the radio group (useful for forms or multiple groups)
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Default selected value (for uncontrolled usage)
|
|
17
|
+
*/
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Current selected value (for controlled usage)
|
|
22
|
+
*/
|
|
23
|
+
value?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Children must be Radio components
|
|
27
|
+
*/
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Callback when a radio option is selected
|
|
32
|
+
* @param name - Group name
|
|
33
|
+
* @param value - Selected value
|
|
34
|
+
*/
|
|
35
|
+
onSelect?: (name: string, value: string) => void;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Props for the RadioItem component
|
|
41
|
+
*/
|
|
42
|
+
export type RadioItemProps = TouchableOpacityProps & {
|
|
43
|
+
/** Size of the radio circle */
|
|
44
|
+
size?: number;
|
|
45
|
+
|
|
46
|
+
/** Border stroke width of the outer circle */
|
|
47
|
+
stroke?: number;
|
|
48
|
+
|
|
49
|
+
/** Custom color for the radio item (defaults to theme color) */
|
|
50
|
+
color?: string;
|
|
51
|
+
|
|
52
|
+
/** Whether this item is selected */
|
|
53
|
+
active?: boolean;
|
|
54
|
+
|
|
55
|
+
/** Unique name of the radio item (used in groups) */
|
|
56
|
+
name?: string;
|
|
57
|
+
|
|
58
|
+
/** Value associated with this radio item */
|
|
59
|
+
value: string;
|
|
60
|
+
|
|
61
|
+
/** If true, the radio item is disabled */
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
|
|
64
|
+
/** Optional label text displayed beside the radio item */
|
|
65
|
+
label?: string;
|
|
66
|
+
|
|
67
|
+
/** Font size override for the label */
|
|
68
|
+
fs?: number;
|
|
69
|
+
|
|
70
|
+
/** Typography scale for the label */
|
|
71
|
+
fScale?: TypographyScale;
|
|
72
|
+
|
|
73
|
+
/** Font family for the label */
|
|
74
|
+
ff?: string;
|
|
75
|
+
|
|
76
|
+
/** Additional style props for the label text */
|
|
77
|
+
labelStyle?: StyledTextProps;
|
|
78
|
+
};
|
package/src/types/stack.type.ts
CHANGED
|
@@ -3,11 +3,6 @@ import type { FlexStyle, StyleProp, ViewStyle } from "react-native";
|
|
|
3
3
|
import type { StyledViewProps } from "./styledComponents.type";
|
|
4
4
|
|
|
5
5
|
export type HStackProps = StyledViewProps & {
|
|
6
|
-
/**
|
|
7
|
-
* Defines the alignment of children along the main axis.
|
|
8
|
-
*/
|
|
9
|
-
justify?: FlexStyle['justifyContent'];
|
|
10
|
-
|
|
11
6
|
/**
|
|
12
7
|
* Defines the alignment of children along the cross axis.
|
|
13
8
|
*/
|
|
@@ -26,7 +21,7 @@ export type HStackProps = StyledViewProps & {
|
|
|
26
21
|
/**
|
|
27
22
|
* Custom styles for the container.
|
|
28
23
|
*/
|
|
29
|
-
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
30
25
|
|
|
31
26
|
/**
|
|
32
27
|
* Child components to be rendered inside the HStack.
|
|
@@ -36,22 +31,17 @@ export type HStackProps = StyledViewProps & {
|
|
|
36
31
|
|
|
37
32
|
export type VStackProps = StyledViewProps & {
|
|
38
33
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Defines the alignment of children along the cross axis.
|
|
45
|
-
*/
|
|
46
|
-
align?: FlexStyle['alignItems'];
|
|
34
|
+
* Space between child components.
|
|
35
|
+
*/
|
|
36
|
+
gap?: number;
|
|
47
37
|
|
|
48
38
|
/**
|
|
49
|
-
*
|
|
39
|
+
* Child components to be rendered inside the VStack.
|
|
50
40
|
*/
|
|
51
|
-
|
|
41
|
+
children?: React.ReactNode;
|
|
52
42
|
|
|
53
43
|
/**
|
|
54
44
|
* Custom styles for the container.
|
|
55
45
|
*/
|
|
56
|
-
|
|
46
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
57
47
|
};
|