@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,97 +1,50 @@
|
|
|
1
1
|
import type { ColorValue, DimensionValue, StyleProp, TextProps, TextStyle, View, ViewProps, ViewStyle } from "react-native";
|
|
2
|
-
import type { TypographyVariant } from "./common.type";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import type { TypographyScale, TypographyVariant } from "./common.type";
|
|
4
4
|
export type StyledViewProps = ViewStyle & ViewProps & {
|
|
5
|
-
/**
|
|
6
|
-
* Flex value to control the flex growth, shrink, and basis of the view.
|
|
7
|
-
*/
|
|
5
|
+
/** Flex value to control the flex growth, shrink, and basis of the view */
|
|
8
6
|
f?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Defines how children are aligned along the main axis.
|
|
11
|
-
*/
|
|
7
|
+
/** How children are aligned along the main axis */
|
|
12
8
|
justify?: ViewStyle['justifyContent'];
|
|
13
|
-
/**
|
|
14
|
-
* Defines how children are aligned along the cross axis.
|
|
15
|
-
*/
|
|
9
|
+
/** How children are aligned along the cross axis */
|
|
16
10
|
align?: ViewStyle['alignItems'];
|
|
17
|
-
/**
|
|
18
|
-
* Determines whether the children should wrap if they exceed the container size.
|
|
19
|
-
*/
|
|
11
|
+
/** Whether children should wrap if they exceed the container size */
|
|
20
12
|
fWrap?: ViewStyle['flexWrap'];
|
|
21
|
-
/**
|
|
22
|
-
* Background color of the view.
|
|
23
|
-
*/
|
|
13
|
+
/** Background color of the view */
|
|
24
14
|
bg?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Whether the background color should be derived from the theme.
|
|
27
|
-
*/
|
|
15
|
+
/** Whether the background color should be derived from the theme */
|
|
28
16
|
themeBg?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Height of the view, can be a number or a percentage string.
|
|
31
|
-
*/
|
|
17
|
+
/** Height of the view (number = pixels, string = percentage) */
|
|
32
18
|
h?: DimensionValue;
|
|
33
|
-
/**
|
|
34
|
-
* Width of the view, can be a number or a percentage string.
|
|
35
|
-
*/
|
|
19
|
+
/** Width of the view (number = pixels, string = percentage) */
|
|
36
20
|
w?: DimensionValue;
|
|
37
|
-
/**
|
|
38
|
-
* Child components to be rendered inside StyledView.
|
|
39
|
-
*/
|
|
21
|
+
/** Child components to be rendered inside StyledView */
|
|
40
22
|
children?: React.ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* Custom styles for the view component.
|
|
43
|
-
*/
|
|
23
|
+
/** Custom styles for the view component */
|
|
44
24
|
style?: StyleProp<ViewStyle>;
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
* This can be used for measuring layout, animations, or imperative interactions.
|
|
48
|
-
*/
|
|
49
|
-
ref?: React.RefObject<View>;
|
|
25
|
+
/** Ref to access the underlying View component */
|
|
26
|
+
ref?: React.Ref<View>;
|
|
50
27
|
};
|
|
51
28
|
export type StyledTextProps = TextProps & TextStyle & {
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
|
|
29
|
+
/** Typography scale for font size (e.g., xs, sm, md, lg, xl) */
|
|
30
|
+
fScale?: TypographyScale;
|
|
31
|
+
/** Typography variant to determine default text color */
|
|
55
32
|
variant?: TypographyVariant;
|
|
56
|
-
/**
|
|
57
|
-
* Text content to be rendered inside StyledText.
|
|
58
|
-
*/
|
|
33
|
+
/** Text content to be rendered inside StyledText */
|
|
59
34
|
children?: React.ReactNode;
|
|
60
|
-
/**
|
|
61
|
-
* Custom styles for the text component.
|
|
62
|
-
*/
|
|
35
|
+
/** Custom styles for the Text component */
|
|
63
36
|
style?: StyleProp<TextStyle>;
|
|
64
|
-
/**
|
|
65
|
-
* Font family for the text.
|
|
66
|
-
*/
|
|
37
|
+
/** Font family for the text */
|
|
67
38
|
ff?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Font size of the text.
|
|
70
|
-
*/
|
|
39
|
+
/** Font size of the text (overrides fScale if provided) */
|
|
71
40
|
fs?: number;
|
|
72
|
-
/**
|
|
73
|
-
* Font weight of the text.
|
|
74
|
-
*/
|
|
41
|
+
/** Font weight of the text */
|
|
75
42
|
fw?: TextStyle['fontWeight'];
|
|
76
|
-
/**
|
|
77
|
-
* Whether the text should be automatically capitalized or adjusted based on the theme.
|
|
78
|
-
*/
|
|
43
|
+
/** Text align center flag (true = center, false/undefined = auto) */
|
|
79
44
|
tas?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Color of the text. Accepts standard color values.
|
|
82
|
-
*/
|
|
45
|
+
/** Color of the text (overrides variant and themeColor if provided) */
|
|
83
46
|
color?: ColorValue;
|
|
84
|
-
/**
|
|
85
|
-
* Whether the text color should be derived from the theme.
|
|
86
|
-
*/
|
|
47
|
+
/** Whether to derive text color from the theme */
|
|
87
48
|
themeColor?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Whether the text should use the primary theme color.
|
|
90
|
-
*/
|
|
91
|
-
primary?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Whether the text should use the secondary theme color.
|
|
94
|
-
*/
|
|
95
|
-
secondary?: boolean;
|
|
96
49
|
};
|
|
97
50
|
//# sourceMappingURL=styledComponents.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styledComponents.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/styledComponents.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5H,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"styledComponents.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/styledComponents.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5H,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG;IAClD,2EAA2E;IAC3E,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX,mDAAmD;IACnD,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEtC,oDAAoD;IACpD,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAEhC,qEAAqE;IACrE,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAE9B,mCAAmC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,gEAAgE;IAChE,CAAC,CAAC,EAAE,cAAc,CAAC;IAEnB,+DAA+D;IAC/D,CAAC,CAAC,EAAE,cAAc,CAAC;IAEnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B,kDAAkD;IAClD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG;IAClD,gEAAgE;IAChE,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,yDAAyD;IACzD,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B,+BAA+B;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,8BAA8B;IAC9B,EAAE,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAE7B,qEAAqE;IACrE,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd,uEAAuE;IACvE,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,kDAAkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyledViewProps } from "./styledComponents.type";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Surface component
|
|
5
|
+
*/
|
|
6
|
+
export type SurfaceProps = StyledViewProps & {
|
|
7
|
+
/** Padding inside the surface container (applied uniformly) */
|
|
8
|
+
padding?: number;
|
|
9
|
+
/** Border radius of the surface container */
|
|
10
|
+
br?: number;
|
|
11
|
+
/** Style variant of the surface: 'elevated' adds shadow, 'outlined' adds border */
|
|
12
|
+
variant?: 'elevated' | 'outlined';
|
|
13
|
+
/** Child components to be rendered inside the surface */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=surface.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/surface.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG;IACzC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mFAAmF;IACnF,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAElC,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
import type { TypographyScale, UserInputVariant } from "./common.type";
|
|
4
4
|
export type UserInputProps = TextInputProps & {
|
|
5
5
|
/**
|
|
6
6
|
* Defines the input style variant.
|
|
@@ -23,11 +23,12 @@ export type UserInputProps = TextInputProps & {
|
|
|
23
23
|
* Defines typography styles for text elements.
|
|
24
24
|
* - `label`: Typography variant for the label.
|
|
25
25
|
* - `helperText`: Typography variant for the helper text.
|
|
26
|
+
* - `inputText`: Typography variant for the input text.
|
|
26
27
|
*/
|
|
27
|
-
|
|
28
|
-
label?:
|
|
29
|
-
helperText?:
|
|
30
|
-
inputText?:
|
|
28
|
+
textScale?: {
|
|
29
|
+
label?: TypographyScale;
|
|
30
|
+
helperText?: TypographyScale;
|
|
31
|
+
inputText?: TypographyScale;
|
|
31
32
|
};
|
|
32
33
|
/** Color of the text inside the input field. */
|
|
33
34
|
inputTextColor?: string;
|
|
@@ -54,9 +55,9 @@ export type UserInputProps = TextInputProps & {
|
|
|
54
55
|
/** If `true`, the input field allows multiple lines of text. */
|
|
55
56
|
multiline?: boolean;
|
|
56
57
|
/** Renders a custom left icon inside the input field. */
|
|
57
|
-
renderLeftIcon?:
|
|
58
|
+
renderLeftIcon?: ReactNode;
|
|
58
59
|
/** Renders a custom right icon inside the input field. */
|
|
59
|
-
renderRightIcon?:
|
|
60
|
+
renderRightIcon?: ReactNode;
|
|
60
61
|
/**
|
|
61
62
|
* Custom styles for different parts of the component.
|
|
62
63
|
* - `mainContainer`: Styles for the outermost wrapper.
|
|
@@ -72,10 +73,5 @@ export type UserInputProps = TextInputProps & {
|
|
|
72
73
|
label?: StyleProp<TextStyle>;
|
|
73
74
|
helperText?: StyleProp<TextStyle>;
|
|
74
75
|
};
|
|
75
|
-
/**
|
|
76
|
-
* A ref to access the underlying View component.
|
|
77
|
-
* This can be used for measuring layout, animations, or imperative interactions.
|
|
78
|
-
*/
|
|
79
|
-
ref?: React.RefObject<TextInput>;
|
|
80
76
|
};
|
|
81
77
|
//# sourceMappingURL=userInput.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userInput.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/userInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"userInput.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/userInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC1C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,wCAAwC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,eAAe,CAAC;QACxB,UAAU,CAAC,EAAE,eAAe,CAAC;QAC7B,SAAS,CAAC,EAAE,eAAe,CAAC;KAC/B,CAAC;IAEF,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,yDAAyD;IACzD,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,0DAA0D;IAC1D,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE;QACL,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACrC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACtC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC7B,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACrC,CAAC;CACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexara/nativeflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -67,7 +67,9 @@
|
|
|
67
67
|
"react-native-design-system",
|
|
68
68
|
"react-native-styling",
|
|
69
69
|
"rn-ui",
|
|
70
|
-
"react-native-ui-kit"
|
|
70
|
+
"react-native-ui-kit",
|
|
71
|
+
"nativeflow",
|
|
72
|
+
"nexara"
|
|
71
73
|
],
|
|
72
74
|
"repository": {
|
|
73
75
|
"type": "git",
|
|
@@ -98,8 +100,8 @@
|
|
|
98
100
|
"eslint-plugin-prettier": "^5.0.1",
|
|
99
101
|
"jest": "^29.7.0",
|
|
100
102
|
"prettier": "^3.0.3",
|
|
101
|
-
"react": "
|
|
102
|
-
"react-native": "
|
|
103
|
+
"react": "19.1.0",
|
|
104
|
+
"react-native": "0.81.4",
|
|
103
105
|
"react-native-builder-bob": "^0.36.0",
|
|
104
106
|
"react-native-svg": "^15.11.2",
|
|
105
107
|
"release-it": "^17.10.0",
|
|
@@ -203,5 +205,8 @@
|
|
|
203
205
|
"languages": "js",
|
|
204
206
|
"type": "library",
|
|
205
207
|
"version": "0.48.3"
|
|
208
|
+
},
|
|
209
|
+
"dependencies": {
|
|
210
|
+
"color": "^5.0.2"
|
|
206
211
|
}
|
|
207
212
|
}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type FC } from "react";
|
|
2
2
|
import { Image } from "react-native";
|
|
3
3
|
import { StyledView } from "../StyledComponents";
|
|
4
4
|
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
5
|
-
import { useTheme } from "../../hooks";
|
|
6
5
|
import type { AvatarImageProps } from "../../types";
|
|
7
6
|
|
|
8
7
|
|
|
9
|
-
const AvatarImage:
|
|
8
|
+
const AvatarImage: FC<AvatarImageProps> = ({
|
|
10
9
|
size = 70,
|
|
11
10
|
source,
|
|
12
|
-
bg,
|
|
13
11
|
resizeMode = 'cover',
|
|
14
12
|
containerStyle,
|
|
15
13
|
imageStyle
|
|
16
14
|
}) => {
|
|
17
15
|
|
|
18
|
-
const theme: any = useTheme();
|
|
19
|
-
|
|
20
16
|
return (<>
|
|
21
17
|
<StyledView
|
|
22
|
-
backgroundColor={bg ?? theme.colors.primary}
|
|
23
18
|
// alignSelf='flex-start'
|
|
24
19
|
height={verticalScale(size)}
|
|
25
20
|
width={verticalScale(size)}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type FC } from "react";
|
|
2
2
|
import { StyledText, StyledView } from "../StyledComponents";
|
|
3
3
|
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
4
4
|
import { useTheme } from "../../hooks";
|
|
5
5
|
import type { AvatarTextProps } from "../../types";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
const AvatarText:
|
|
8
|
+
const AvatarText: FC<AvatarTextProps> = ({
|
|
9
9
|
size = 70,
|
|
10
10
|
fs,
|
|
11
11
|
text = 'YH',
|
|
@@ -18,7 +18,7 @@ const AvatarText: React.FC<AvatarTextProps> = ({
|
|
|
18
18
|
|
|
19
19
|
return (<>
|
|
20
20
|
<StyledView
|
|
21
|
-
bg={bg ?? theme.colors.primary}
|
|
21
|
+
bg={bg ?? theme.colors.brand.primary}
|
|
22
22
|
// alignSelf='flex-start'
|
|
23
23
|
h={verticalScale(size)}
|
|
24
24
|
w={verticalScale(size)}
|
|
@@ -27,7 +27,7 @@ const AvatarText: React.FC<AvatarTextProps> = ({
|
|
|
27
27
|
borderRadius={verticalScale(size)}
|
|
28
28
|
style={containerStyle}
|
|
29
29
|
>
|
|
30
|
-
<StyledText
|
|
30
|
+
<StyledText color={theme.colors.brand.onPrimary} fw='bold' fs={fs ?? (size / 3)} style={textStyle}>{text}</StyledText>
|
|
31
31
|
</StyledView>
|
|
32
32
|
</>)
|
|
33
33
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import type { JSX } from 'react';
|
|
2
|
+
import type { FC, JSX } from 'react';
|
|
3
3
|
import { StyleSheet, TouchableOpacity, type ViewStyle } from "react-native";
|
|
4
4
|
import { verticalScale, horizontalScale } from "../../helpers/ResponsiveCalculations";
|
|
5
5
|
import { StyledText, StyledView } from '../StyledComponents';
|
|
@@ -8,35 +8,36 @@ import { getButtonColors } from './utils';
|
|
|
8
8
|
import type { ButtonProps } from '../../types';
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
const Button:
|
|
11
|
+
const Button: FC<ButtonProps> = ({
|
|
12
12
|
variant = 'contained',
|
|
13
13
|
type = 'flat',
|
|
14
14
|
fullWidth = false,
|
|
15
15
|
paddingH = 19,
|
|
16
|
-
paddingV =
|
|
16
|
+
paddingV = 12,
|
|
17
17
|
bg,
|
|
18
|
-
br =
|
|
18
|
+
br = 8,
|
|
19
19
|
stroke = 1,
|
|
20
20
|
strokeColor,
|
|
21
21
|
titleColor,
|
|
22
|
-
title
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
title,
|
|
23
|
+
fScale = 'base',
|
|
24
|
+
fs,
|
|
25
|
+
ff,
|
|
26
26
|
size = 50,
|
|
27
27
|
rippleColor,
|
|
28
28
|
renderIcon,
|
|
29
29
|
renderLeftIcon,
|
|
30
30
|
renderRightIcon,
|
|
31
31
|
disabled = false,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
containerStyle,
|
|
33
|
+
titleStyle,
|
|
34
34
|
onPress,
|
|
35
|
+
children,
|
|
35
36
|
...rest
|
|
36
37
|
}) => {
|
|
37
38
|
const theme: any = useTheme();
|
|
38
39
|
|
|
39
|
-
const { backgroundColor, buttonTextColor, buttonBorderColor
|
|
40
|
+
const { backgroundColor, buttonTextColor, buttonBorderColor } = getButtonColors({
|
|
40
41
|
theme,
|
|
41
42
|
variant,
|
|
42
43
|
bg,
|
|
@@ -45,7 +46,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
45
46
|
disabled
|
|
46
47
|
});
|
|
47
48
|
|
|
48
|
-
const STYLES = useMemo(
|
|
49
|
+
const STYLES = useMemo(customStyles, []);
|
|
49
50
|
|
|
50
51
|
const dynamicStyles = {
|
|
51
52
|
BUTTON_CONT: {
|
|
@@ -55,7 +56,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
55
56
|
},
|
|
56
57
|
BUTTON_TEXT: {
|
|
57
58
|
color: buttonTextColor,
|
|
58
|
-
fontFamily:
|
|
59
|
+
fontFamily: ff ?? '',
|
|
59
60
|
},
|
|
60
61
|
FLAT_BTN_MAIN_CONT: {
|
|
61
62
|
borderRadius: verticalScale(br),
|
|
@@ -75,7 +76,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
75
76
|
const cloneElement = (element: JSX.Element): JSX.Element | null => {
|
|
76
77
|
if (React.isValidElement<{ color?: string }>(element)) {
|
|
77
78
|
return React.cloneElement(element, {
|
|
78
|
-
color: element.props.color ??
|
|
79
|
+
color: element.props.color ?? buttonTextColor
|
|
79
80
|
})
|
|
80
81
|
}
|
|
81
82
|
return null;
|
|
@@ -105,7 +106,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
105
106
|
STYLES.BUTTON_CONT,
|
|
106
107
|
dynamicStyles.FLAT_BTN_INNER_CONT,
|
|
107
108
|
dynamicStyles.BUTTON_CONT,
|
|
108
|
-
|
|
109
|
+
containerStyle
|
|
109
110
|
]}>
|
|
110
111
|
{(renderLeftIcon || (fullWidth && renderRightIcon)) && (
|
|
111
112
|
<StyledView f={fullWidth ? 1 : undefined}>
|
|
@@ -117,15 +118,20 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
117
118
|
flexShrink={1}
|
|
118
119
|
f={fullWidth ? 8 : undefined}
|
|
119
120
|
>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
{
|
|
122
|
+
(title ?? children) ?
|
|
123
|
+
<StyledText numberOfLines={1} fs={fs} fScale={fScale}
|
|
124
|
+
style={[
|
|
125
|
+
STYLES.BUTTON_TEXT,
|
|
126
|
+
dynamicStyles.BUTTON_TEXT,
|
|
127
|
+
titleStyle,
|
|
128
|
+
]}
|
|
129
|
+
>
|
|
130
|
+
{title ?? children}
|
|
131
|
+
</StyledText>
|
|
132
|
+
:
|
|
133
|
+
(renderIcon && cloneElement(renderIcon))
|
|
134
|
+
}
|
|
129
135
|
</StyledView>
|
|
130
136
|
|
|
131
137
|
{(renderRightIcon || (fullWidth && renderLeftIcon)) && (
|
|
@@ -153,7 +159,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
153
159
|
STYLES.ROUND_BTN_INNER_CONT,
|
|
154
160
|
dynamicStyles.BUTTON_CONT,
|
|
155
161
|
dynamicStyles.ROUND_BTN_INNER_CONT,
|
|
156
|
-
|
|
162
|
+
containerStyle
|
|
157
163
|
]}
|
|
158
164
|
>
|
|
159
165
|
{renderIcon && cloneElement(renderIcon)}
|
|
@@ -168,7 +174,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
168
174
|
export default Button;
|
|
169
175
|
export type { ButtonProps };
|
|
170
176
|
|
|
171
|
-
const
|
|
177
|
+
const customStyles = () => StyleSheet.create({
|
|
172
178
|
BUTTON_CONT: {
|
|
173
179
|
maxWidth: '100%',
|
|
174
180
|
},
|
|
@@ -11,12 +11,12 @@ const getButtonBorderColor = ({
|
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
}) => {
|
|
13
13
|
if (disabled) {
|
|
14
|
-
return theme.colors.
|
|
14
|
+
return theme.colors.border.default;
|
|
15
15
|
}
|
|
16
16
|
if (strokeColor) {
|
|
17
17
|
return strokeColor
|
|
18
18
|
}
|
|
19
|
-
return theme.colors.
|
|
19
|
+
return theme.colors.border.default;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
|
|
@@ -33,15 +33,15 @@ const getButtonTextColor = ({
|
|
|
33
33
|
}) => {
|
|
34
34
|
|
|
35
35
|
if (disabled) {
|
|
36
|
-
return theme.colors.
|
|
36
|
+
return theme.colors.typography.disabled;
|
|
37
37
|
}
|
|
38
38
|
else if (titleColor) {
|
|
39
39
|
return titleColor
|
|
40
40
|
}
|
|
41
41
|
else if (checkVariant('outlined')) {
|
|
42
|
-
return theme.colors.
|
|
42
|
+
return theme.colors.typography.primary;
|
|
43
43
|
}
|
|
44
|
-
return theme.colors.
|
|
44
|
+
return theme.colors.brand.onPrimary;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const getButtonBackgroundColor = ({
|
|
@@ -57,37 +57,37 @@ const getButtonBackgroundColor = ({
|
|
|
57
57
|
}) => {
|
|
58
58
|
|
|
59
59
|
if (disabled) {
|
|
60
|
-
return theme.colors.
|
|
60
|
+
return theme.colors.states.disabled;
|
|
61
61
|
}
|
|
62
62
|
else if (bg) {
|
|
63
63
|
return bg
|
|
64
64
|
}
|
|
65
65
|
else if (checkVariant('contained')) {
|
|
66
|
-
return theme.colors.primary;
|
|
66
|
+
return theme.colors.brand.primary;
|
|
67
67
|
}
|
|
68
68
|
else if (checkVariant('outlined')) {
|
|
69
69
|
return 'transparent';
|
|
70
70
|
}
|
|
71
|
-
return theme.colors.primary;
|
|
71
|
+
return theme.colors.brand.primary;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
const getButtonIconColor = ({
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}) => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
};
|
|
75
|
+
// const getButtonIconColor = ({
|
|
76
|
+
// theme,
|
|
77
|
+
// checkVariant,
|
|
78
|
+
// disabled,
|
|
79
|
+
// }: {
|
|
80
|
+
// theme: ThemeTypes;
|
|
81
|
+
// checkVariant: (variant: ButtonVariant) => boolean;
|
|
82
|
+
// disabled: boolean;
|
|
83
|
+
// }) => {
|
|
84
|
+
// if (disabled) {
|
|
85
|
+
// return theme.colors.iconDisable;
|
|
86
|
+
// } else if (checkVariant('outlined')) {
|
|
87
|
+
// return theme.colors.iconPrimary
|
|
88
|
+
// }
|
|
89
|
+
// return theme.colors.iconSecondary;
|
|
90
|
+
// };
|
|
91
91
|
|
|
92
92
|
const getButtonColors = ({
|
|
93
93
|
theme,
|
|
@@ -125,17 +125,17 @@ const getButtonColors = ({
|
|
|
125
125
|
strokeColor,
|
|
126
126
|
disabled
|
|
127
127
|
});
|
|
128
|
-
const buttonIconColor = getButtonIconColor({
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
});
|
|
128
|
+
// const buttonIconColor = getButtonIconColor({
|
|
129
|
+
// checkVariant,
|
|
130
|
+
// theme,
|
|
131
|
+
// disabled
|
|
132
|
+
// });
|
|
133
133
|
|
|
134
134
|
return {
|
|
135
135
|
backgroundColor,
|
|
136
136
|
buttonTextColor,
|
|
137
137
|
buttonBorderColor,
|
|
138
|
-
buttonIconColor
|
|
138
|
+
// buttonIconColor
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
|