@nexara/nativeflow 0.1.7 → 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 +23 -24
- 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 +41 -38
- 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 -11
- 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 -19
- package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogHead.js +20 -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 +2 -3
- package/lib/commonjs/components/Icon/Icon.js.map +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +1 -2
- 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 +12 -8
- 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/NativeProvider.js +1 -2
- 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 +3 -3
- 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 +17 -14
- 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 +25 -31
- package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/commonjs/index.js +23 -42
- 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/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 +22 -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 +35 -30
- 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 -9
- 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 -17
- package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
- package/lib/module/components/Dialog/DialogHead.js +22 -27
- 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 +1 -1
- package/lib/module/components/Icon/Icon.js.map +1 -1
- 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 +11 -6
- 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/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 +3 -3
- 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 +18 -15
- 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 +25 -28
- package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/module/index.js +3 -4
- 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/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/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/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/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 -2
- 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 -2
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +4 -4
- 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 +71 -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 +2 -15
- 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 +24 -71
- 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 -14
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -1
- 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/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/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/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 -2
- 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 -2
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +4 -4
- 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 +71 -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 +2 -15
- 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 +24 -71
- 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 -14
- package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -1
- 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 +32 -26
- package/src/components/Button/utils.ts +30 -30
- package/src/components/CheckBox/CheckBox.tsx +30 -28
- package/src/components/Chip/Chip.tsx +23 -31
- package/src/components/Chip/utils.ts +34 -20
- package/src/components/Dialog/Dialog.tsx +11 -7
- package/src/components/Dialog/DialogBody.tsx +13 -13
- package/src/components/Dialog/DialogDescription.tsx +9 -9
- package/src/components/Dialog/DialogFoot.tsx +19 -21
- package/src/components/Dialog/DialogHead.tsx +15 -20
- package/src/components/Divider/Divider.tsx +7 -15
- package/src/components/Grid/Grid.tsx +6 -5
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/IconButton/IconButton.tsx +2 -2
- package/src/components/Link/Link.tsx +20 -29
- package/src/components/Menu/Menu.tsx +9 -6
- 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/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 +4 -4
- package/src/components/Surface/Surface.tsx +20 -27
- package/src/components/Switch/Switch.tsx +12 -10
- package/src/components/UserInput/UserInput.tsx +19 -16
- package/src/components/UserInput/generateColors.ts +3 -3
- package/src/constants/typographySizes.ts +13 -15
- package/src/helpers/ResponsiveCalculations.ts +25 -29
- package/src/index.ts +5 -6
- 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 +81 -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 +2 -18
- package/src/types/radio.type.ts +78 -0
- package/src/types/stack.type.ts +7 -17
- package/src/types/styledComponents.type.ts +26 -74
- package/src/types/surface.type.ts +19 -0
- package/src/types/userInput.type.ts +10 -15
- 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/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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"button.type.d.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zB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE7B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE9B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uCAAuC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAElC,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TypographyScale } from "./common.type";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the CheckBox component
|
|
5
|
+
*/
|
|
3
6
|
export type CheckBoxProps = {
|
|
4
|
-
/**
|
|
7
|
+
/** Shape of the checkbox: 'square' or 'round' */
|
|
5
8
|
variant?: 'square' | 'round';
|
|
6
|
-
/** Current checked state
|
|
9
|
+
/** Current checked state (for controlled component) */
|
|
7
10
|
isChecked?: boolean;
|
|
8
11
|
/** Default checked state (for uncontrolled component) */
|
|
9
12
|
defaultValue?: boolean;
|
|
@@ -13,29 +16,32 @@ export type CheckBoxProps = {
|
|
|
13
16
|
inActiveBgColor?: string;
|
|
14
17
|
/** Color of the checkmark icon */
|
|
15
18
|
iconColor?: string;
|
|
16
|
-
/**
|
|
19
|
+
/** Disables built-in state handling (for controlled usage) */
|
|
17
20
|
disableBuiltInState?: boolean;
|
|
18
21
|
/** Disables the checkbox, preventing user interaction */
|
|
19
22
|
disabled?: boolean;
|
|
20
23
|
/** Text label displayed next to the checkbox */
|
|
21
|
-
|
|
22
|
-
/**
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Typography scale for the label text (maps to your design system) */
|
|
26
|
+
fScale?: TypographyScale;
|
|
27
|
+
/** Font size of the label text (overrides fScale if provided) */
|
|
23
28
|
fs?: number;
|
|
24
|
-
/**
|
|
25
|
-
|
|
29
|
+
/** Font family for the label text */
|
|
30
|
+
ff?: string;
|
|
26
31
|
/** Size of the checkbox (width & height) */
|
|
27
32
|
size?: number;
|
|
28
33
|
/** Size of the checkmark icon inside the checkbox */
|
|
29
34
|
iconSize?: number;
|
|
30
|
-
/** Custom styles for the
|
|
35
|
+
/** Custom styles for the outer container of checkbox + label */
|
|
31
36
|
containerStyle?: StyleProp<ViewStyle>;
|
|
32
37
|
/** Custom styles for the checkbox itself */
|
|
33
38
|
checkBoxStyle?: StyleProp<ViewStyle>;
|
|
34
|
-
/** Custom styles for the text
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
39
|
+
/** Custom styles for the label text */
|
|
40
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
41
|
+
/**
|
|
42
|
+
* Callback triggered when the checkbox is pressed.
|
|
43
|
+
* @param checked - The new checked state (true/false)
|
|
38
44
|
*/
|
|
39
|
-
onPress?: (
|
|
45
|
+
onPress?: (checked: boolean) => void;
|
|
40
46
|
};
|
|
41
47
|
//# sourceMappingURL=checkbox.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/checkbox.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"checkbox.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/checkbox.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,iDAAiD;IACjD,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAE7B,uDAAuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,yDAAyD;IACzD,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,iEAAiE;IACjE,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,8DAA8D;IAC9D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uEAAuE;IACvE,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,iEAAiE;IACjE,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,gEAAgE;IAChE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,4CAA4C;IAC5C,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAErC,uCAAuC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAElC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC"}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import type { JSX } from "react";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle, TouchableOpacityProps } from "react-native";
|
|
3
|
+
import type { TypographyScale } from "./common.type";
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Chip component
|
|
6
|
+
*/
|
|
7
|
+
export type ChipProps = TouchableOpacityProps & {
|
|
4
8
|
/** Text displayed inside the chip */
|
|
5
|
-
|
|
9
|
+
label?: string;
|
|
6
10
|
/** Background color of the chip */
|
|
7
11
|
bg?: string;
|
|
8
|
-
/** Color of the text
|
|
9
|
-
|
|
10
|
-
/** Font size of the
|
|
12
|
+
/** Color of the label text */
|
|
13
|
+
labelColor?: string;
|
|
14
|
+
/** Font size of the label text (overrides fScale if provided) */
|
|
11
15
|
fs?: number;
|
|
16
|
+
/** Typography scale of the label text (e.g., xs, sm, md, lg, xl) */
|
|
17
|
+
fScale?: TypographyScale;
|
|
18
|
+
/** Font family for the label text */
|
|
19
|
+
ff?: string;
|
|
12
20
|
/** Border radius of the chip */
|
|
13
21
|
br?: number;
|
|
14
22
|
/** Spacing between elements inside the chip */
|
|
@@ -19,21 +27,21 @@ export type ChipProps = PressableProps & {
|
|
|
19
27
|
paddingH?: number;
|
|
20
28
|
/** Border width of the chip */
|
|
21
29
|
stroke?: number;
|
|
22
|
-
/**
|
|
23
|
-
|
|
30
|
+
/** Border color of the chip */
|
|
31
|
+
strokeColor?: string;
|
|
24
32
|
/** Ripple effect color when pressed */
|
|
25
33
|
rippleColor?: string;
|
|
26
34
|
/** Disables the chip, preventing interaction */
|
|
27
35
|
disabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
/** Icon to render on the left side of the chip */
|
|
36
|
+
/** Indicates the chip is active (for styling purposes) */
|
|
37
|
+
active?: boolean;
|
|
38
|
+
/** Icon element to render on the left side of the chip */
|
|
31
39
|
renderLeftIcon?: JSX.Element;
|
|
32
|
-
/** Icon to render on the right side of the chip */
|
|
40
|
+
/** Icon element to render on the right side of the chip */
|
|
33
41
|
renderRightIcon?: JSX.Element;
|
|
34
42
|
/** Custom styles for the chip container */
|
|
35
43
|
containerStyle?: StyleProp<ViewStyle>;
|
|
36
|
-
/** Custom styles for the
|
|
44
|
+
/** Custom styles for the label text */
|
|
37
45
|
textStyle?: StyleProp<TextStyle>;
|
|
38
46
|
};
|
|
39
47
|
//# sourceMappingURL=chip.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/chip.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"chip.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/chip.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,qBAAqB,GAAG;IAC5C,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,mCAAmC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iEAAiE;IACjE,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,oEAAoE;IACpE,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,gCAAgC;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,0DAA0D;IAC1D,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE7B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE9B,2CAA2C;IAC3C,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uCAAuC;IACvC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpC,CAAC"}
|
|
@@ -2,7 +2,8 @@ import type { typographySizeTypes } from "../constants/typographySizes";
|
|
|
2
2
|
export type UserInputVariant = 'outlined' | 'standard';
|
|
3
3
|
export type DialogVariant = 'classic' | 'default';
|
|
4
4
|
export type ButtonVariant = 'outlined' | 'contained';
|
|
5
|
-
export type
|
|
5
|
+
export type TypographyScale = 'xxs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
6
|
+
export type TypographyVariant = keyof ThemeColorTypes['typography'];
|
|
6
7
|
export type themeModeTypes = 'light' | 'dark';
|
|
7
8
|
export type scalingModeTypes = 'full' | 'partial';
|
|
8
9
|
export type dialogSizesTypes = {
|
|
@@ -12,33 +13,81 @@ export type dialogSizesTypes = {
|
|
|
12
13
|
lg: number;
|
|
13
14
|
full: number;
|
|
14
15
|
};
|
|
16
|
+
type ColorPalette = {
|
|
17
|
+
natural: {
|
|
18
|
+
0: string;
|
|
19
|
+
50: string;
|
|
20
|
+
100: string;
|
|
21
|
+
200: string;
|
|
22
|
+
300: string;
|
|
23
|
+
400: string;
|
|
24
|
+
500: string;
|
|
25
|
+
600: string;
|
|
26
|
+
700: string;
|
|
27
|
+
800: string;
|
|
28
|
+
900: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
15
31
|
type ThemeColorTypes = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
palette: ColorPalette;
|
|
33
|
+
brand: {
|
|
34
|
+
primary: string;
|
|
35
|
+
onPrimary: string;
|
|
36
|
+
secondary: string;
|
|
37
|
+
onSecondary: string;
|
|
38
|
+
tertiary: string;
|
|
39
|
+
onTertiary: string;
|
|
40
|
+
};
|
|
41
|
+
semantic: {
|
|
42
|
+
success: string;
|
|
43
|
+
onSuccess: string;
|
|
44
|
+
warning: string;
|
|
45
|
+
onWarning: string;
|
|
46
|
+
danger: string;
|
|
47
|
+
onDanger: string;
|
|
48
|
+
info: string;
|
|
49
|
+
onInfo: string;
|
|
50
|
+
};
|
|
51
|
+
background: {
|
|
52
|
+
default: string;
|
|
53
|
+
surface: string;
|
|
54
|
+
elevated: string;
|
|
55
|
+
backdrop: string;
|
|
56
|
+
};
|
|
57
|
+
border: {
|
|
58
|
+
subtle: string;
|
|
59
|
+
default: string;
|
|
60
|
+
strong: string;
|
|
61
|
+
focus: string;
|
|
62
|
+
};
|
|
63
|
+
typography: {
|
|
64
|
+
primary: string;
|
|
65
|
+
secondary: string;
|
|
66
|
+
tertiary: string;
|
|
67
|
+
disabled: string;
|
|
68
|
+
inverse: string;
|
|
69
|
+
};
|
|
70
|
+
states: {
|
|
71
|
+
hover: string;
|
|
72
|
+
pressed: string;
|
|
73
|
+
focus: string;
|
|
74
|
+
disabled: string;
|
|
75
|
+
};
|
|
76
|
+
elevation?: {
|
|
77
|
+
level0: string;
|
|
78
|
+
level1: string;
|
|
79
|
+
level2: string;
|
|
80
|
+
level3: string;
|
|
81
|
+
level4: string;
|
|
82
|
+
};
|
|
34
83
|
};
|
|
35
84
|
export type ThemeTypes = {
|
|
36
85
|
isDark: boolean;
|
|
37
86
|
colors: ThemeColorTypes;
|
|
38
|
-
|
|
39
|
-
|
|
87
|
+
sizes: {
|
|
88
|
+
typography: typographySizeTypes;
|
|
89
|
+
dialog: dialogSizesTypes;
|
|
40
90
|
};
|
|
41
|
-
dialogSizes: dialogSizesTypes;
|
|
42
91
|
};
|
|
43
92
|
export type Theme = {
|
|
44
93
|
light: ThemeTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/common.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"common.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/common.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,WAAW,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACjH,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC,YAAY,CAAC,CAAC;AACpE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UAAU,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,UAAU,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,MAAM,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,SAAS,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE;QACH,UAAU,EAAE,mBAAmB,CAAC;QAChC,MAAM,EAAE,gBAAgB,CAAC;KAC5B,CAAC;CACL,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAChB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;CACpB,CAAC"}
|
|
@@ -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
|
export type DialogRefProps = {
|
|
5
6
|
open: () => void;
|
|
6
7
|
close: () => void;
|
|
@@ -29,11 +30,9 @@ export type DialogBodyProps = {
|
|
|
29
30
|
/** Content to be rendered inside the dialog body */
|
|
30
31
|
children?: ReactNode;
|
|
31
32
|
};
|
|
32
|
-
export type DialogDescriptionProps = {
|
|
33
|
+
export type DialogDescriptionProps = StyledTextProps & {
|
|
33
34
|
/** Variant of the typography to be applied to the text */
|
|
34
|
-
|
|
35
|
-
/** Font size for the dialog description text */
|
|
36
|
-
fs?: number;
|
|
35
|
+
fScale?: TypographyScale;
|
|
37
36
|
/** Style for the container wrapping the dialog description */
|
|
38
37
|
containerStyle?: StyleProp<ViewStyle>;
|
|
39
38
|
/** Style for the text inside the dialog description */
|
|
@@ -41,24 +40,26 @@ export type DialogDescriptionProps = {
|
|
|
41
40
|
/** Content to be rendered inside the dialog description */
|
|
42
41
|
children?: ReactNode;
|
|
43
42
|
};
|
|
44
|
-
export type DialogFootProps = {
|
|
43
|
+
export type DialogFootProps = StyledViewProps & {
|
|
45
44
|
/** Custom styles for the container wrapping the dialog footer */
|
|
46
45
|
containerStyle?: StyleProp<ViewStyle>;
|
|
47
46
|
/** Content to be rendered inside the dialog footer */
|
|
48
47
|
children?: ReactNode;
|
|
49
48
|
};
|
|
50
49
|
export type DialogHeadProps = {
|
|
51
|
-
/** Title text to be displayed in the dialog header */
|
|
50
|
+
/** Title text to be displayed in the dialog header. If not provided, `children` will be rendered. */
|
|
52
51
|
title?: string;
|
|
53
|
-
/** Typography
|
|
54
|
-
|
|
55
|
-
/** Font size of the title text */
|
|
52
|
+
/** Typography scale for the title text (e.g., xs, sm, md, lg, xl) */
|
|
53
|
+
fScale?: TypographyScale;
|
|
54
|
+
/** Font size of the title text (overrides fScale if provided) */
|
|
56
55
|
fs?: number;
|
|
56
|
+
/** Font family for the title text */
|
|
57
|
+
ff?: string;
|
|
57
58
|
/** Custom styles for the container wrapping the dialog header */
|
|
58
59
|
containerStyle?: StyleProp<ViewStyle>;
|
|
59
60
|
/** Custom styles for the title text */
|
|
60
|
-
|
|
61
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
61
62
|
/** Additional elements or components to be rendered inside the dialog header */
|
|
62
|
-
children?:
|
|
63
|
+
children?: ReactNode;
|
|
63
64
|
};
|
|
64
65
|
//# sourceMappingURL=dialog.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialog.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialog.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAGhF,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,gDAAgD;IAChD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,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ACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,iEAAiE;IACjE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uCAAuC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAElC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
/** Props for the Divider component */
|
|
3
|
+
export type DividerProps = {
|
|
4
|
+
/** Thickness of the divider line */
|
|
5
|
+
thickness?: number;
|
|
6
|
+
/** Custom styles to apply to the divider */
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
/** Color of the divider line; defaults to theme's subtle border color if not provided */
|
|
9
|
+
color?: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=divider.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/divider.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvD,sCAAsC;AAExC,MAAM,MAAM,YAAY,GAAG;IAEvB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
-
|
|
2
|
+
import type { StyledViewProps } from "./styledComponents.type";
|
|
3
|
+
export type GridProps = StyledViewProps & {
|
|
3
4
|
/**
|
|
4
5
|
* If true, the component will act as a grid container.
|
|
5
6
|
* Similar to CSS flex/grid container.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/grid.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"grid.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/grid.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;MAEE;IACF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B,CAAC"}
|
|
@@ -11,4 +11,8 @@ export * from './styledComponents.type';
|
|
|
11
11
|
export * from './switch.type';
|
|
12
12
|
export * from './userInput.type';
|
|
13
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';
|
|
14
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TextStyle } from "react-native";
|
|
2
|
+
import type { StyledTextProps } from "./styledComponents.type";
|
|
3
|
+
/** Props for the Link component */
|
|
4
|
+
export type LinkProps = StyledTextProps & {
|
|
5
|
+
/** The visible text of the link */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The URL to be opened when the link is pressed */
|
|
8
|
+
href: string;
|
|
9
|
+
/** Optional custom styles for the text */
|
|
10
|
+
style?: TextStyle;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=link.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/link.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,mCAAmC;AAEnC,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACtC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IAEd,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IAEb,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { JSX, ReactNode } from "react";
|
|
2
|
-
import type { StyleProp,
|
|
3
|
-
import type { TypographyVariant } from "./common.type";
|
|
2
|
+
import type { StyleProp, TouchableOpacityProps, View, ViewStyle } from "react-native";
|
|
4
3
|
import type { StyledTextProps } from "./styledComponents.type";
|
|
5
4
|
export type MenuProps = {
|
|
6
5
|
/**
|
|
@@ -69,25 +68,13 @@ export type MenuItemProps = TouchableOpacityProps & {
|
|
|
69
68
|
/**
|
|
70
69
|
* Custom styles for the menu item container.
|
|
71
70
|
*/
|
|
72
|
-
|
|
71
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
73
72
|
/**
|
|
74
73
|
* Child components to be rendered inside the menu item.
|
|
75
74
|
*/
|
|
76
75
|
children?: ReactNode;
|
|
77
76
|
};
|
|
78
77
|
export type MenuItemLabelProps = StyledTextProps & {
|
|
79
|
-
/**
|
|
80
|
-
* Font size of the label text.
|
|
81
|
-
*/
|
|
82
|
-
fs?: number;
|
|
83
|
-
/**
|
|
84
|
-
* Typography variant for the label text.
|
|
85
|
-
*/
|
|
86
|
-
textVariant?: TypographyVariant;
|
|
87
|
-
/**
|
|
88
|
-
* Custom styles for the text component.
|
|
89
|
-
*/
|
|
90
|
-
style?: StyleProp<TextStyle>;
|
|
91
78
|
/**
|
|
92
79
|
* Text to be displayed inside the label.
|
|
93
80
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/menu.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"menu.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/menu.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D,MAAM,MAAM,SAAS,GAAG;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAErB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAE9C;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;CACrC,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG,qBAAqB,GAAG;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Props for the RadioGroup component
|
|
7
|
+
*/
|
|
8
|
+
export type RadioGroupProps = StyledViewProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Unique name for the radio group (useful for forms or multiple groups)
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Default selected value (for uncontrolled usage)
|
|
15
|
+
*/
|
|
16
|
+
defaultValue?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Current selected value (for controlled usage)
|
|
19
|
+
*/
|
|
20
|
+
value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Children must be Radio components
|
|
23
|
+
*/
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Callback when a radio option is selected
|
|
27
|
+
* @param name - Group name
|
|
28
|
+
* @param value - Selected value
|
|
29
|
+
*/
|
|
30
|
+
onSelect?: (name: string, value: string) => void;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Props for the RadioItem component
|
|
34
|
+
*/
|
|
35
|
+
export type RadioItemProps = TouchableOpacityProps & {
|
|
36
|
+
/** Size of the radio circle */
|
|
37
|
+
size?: number;
|
|
38
|
+
/** Border stroke width of the outer circle */
|
|
39
|
+
stroke?: number;
|
|
40
|
+
/** Custom color for the radio item (defaults to theme color) */
|
|
41
|
+
color?: string;
|
|
42
|
+
/** Whether this item is selected */
|
|
43
|
+
active?: boolean;
|
|
44
|
+
/** Unique name of the radio item (used in groups) */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** Value associated with this radio item */
|
|
47
|
+
value: string;
|
|
48
|
+
/** If true, the radio item is disabled */
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** Optional label text displayed beside the radio item */
|
|
51
|
+
label?: string;
|
|
52
|
+
/** Font size override for the label */
|
|
53
|
+
fs?: number;
|
|
54
|
+
/** Typography scale for the label */
|
|
55
|
+
fScale?: TypographyScale;
|
|
56
|
+
/** Font family for the label */
|
|
57
|
+
ff?: string;
|
|
58
|
+
/** Additional style props for the label text */
|
|
59
|
+
labelStyle?: StyledTextProps;
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=radio.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/radio.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAA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|
|
2
2
|
import type { FlexStyle, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { StyledViewProps } from "./styledComponents.type";
|
|
4
4
|
export type HStackProps = StyledViewProps & {
|
|
5
|
-
/**
|
|
6
|
-
* Defines the alignment of children along the main axis.
|
|
7
|
-
*/
|
|
8
|
-
justify?: FlexStyle['justifyContent'];
|
|
9
5
|
/**
|
|
10
6
|
* Defines the alignment of children along the cross axis.
|
|
11
7
|
*/
|
|
@@ -21,28 +17,24 @@ export type HStackProps = StyledViewProps & {
|
|
|
21
17
|
/**
|
|
22
18
|
* Custom styles for the container.
|
|
23
19
|
*/
|
|
24
|
-
|
|
20
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
21
|
/**
|
|
26
22
|
* Child components to be rendered inside the HStack.
|
|
27
23
|
*/
|
|
28
24
|
children?: React.ReactNode;
|
|
29
25
|
};
|
|
30
26
|
export type VStackProps = StyledViewProps & {
|
|
27
|
+
/**
|
|
28
|
+
* Space between child components.
|
|
29
|
+
*/
|
|
30
|
+
gap?: number;
|
|
31
31
|
/**
|
|
32
32
|
* Child components to be rendered inside the VStack.
|
|
33
33
|
*/
|
|
34
34
|
children?: React.ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Defines the alignment of children along the cross axis.
|
|
37
|
-
*/
|
|
38
|
-
align?: FlexStyle['alignItems'];
|
|
39
|
-
/**
|
|
40
|
-
* Space between child components.
|
|
41
|
-
*/
|
|
42
|
-
gap?: number;
|
|
43
35
|
/**
|
|
44
36
|
* Custom styles for the container.
|
|
45
37
|
*/
|
|
46
|
-
|
|
38
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
47
39
|
};
|
|
48
40
|
//# sourceMappingURL=stack.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/stack.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"stack.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/stack.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAE9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IACxC;;MAEE;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC,CAAC"}
|