@nexara/nativeflow 0.1.7 → 0.1.9
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/assets/svg/Check.js.map +1 -1
- package/lib/commonjs/assets/svg/X.js.map +1 -1
- package/lib/commonjs/assets/svg/index.js.map +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/Avatar/index.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/Dialog/index.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/Menu/calculations.js.map +1 -1
- package/lib/commonjs/components/Menu/index.js.map +1 -1
- package/lib/commonjs/components/Portal/Portal.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalContext.js +1 -2
- package/lib/commonjs/components/Portal/PortalContext.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalProvider.js +1 -2
- package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -1
- package/lib/commonjs/components/Progress/Progress.js +6 -7
- package/lib/commonjs/components/Progress/Progress.js.map +1 -1
- package/lib/commonjs/components/Provider/ContextManager.js.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/Stack/index.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/StyledComponents/index.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/TouchableRipple/TouchableRipple.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/UserInputV2.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/breakPoints.js.map +1 -1
- package/lib/commonjs/constants/dialogSizes.js.map +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/constants/theme.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/CalculateGridSize.js +1 -1
- package/lib/commonjs/helpers/CalculateGridSize.js.map +1 -1
- package/lib/commonjs/helpers/DeviceSizeCategory.js.map +1 -1
- package/lib/commonjs/helpers/ResponsiveCalculations.js +29 -32
- package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/commonjs/helpers/index.js.map +1 -1
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useColorScheme.js.map +1 -1
- package/lib/commonjs/hooks/useConditionalWindowDimension.js.map +1 -1
- package/lib/commonjs/hooks/useScalingMode.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js.map +1 -1
- package/lib/commonjs/index.d.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/themes/index.js.map +1 -1
- package/lib/commonjs/types/avatar.type.js.map +1 -1
- package/lib/commonjs/types/button.type.js.map +1 -1
- package/lib/commonjs/types/checkbox.type.js.map +1 -1
- package/lib/commonjs/types/chip.type.js.map +1 -1
- package/lib/commonjs/types/common.type.js.map +1 -1
- package/lib/commonjs/types/dialog.type.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/grid.type.js.map +1 -1
- 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/menu.type.js.map +1 -1
- package/lib/commonjs/types/progress.type.js.map +1 -1
- package/lib/commonjs/types/radio.type.js +6 -0
- package/lib/commonjs/types/radio.type.js.map +1 -0
- package/lib/commonjs/types/stack.type.js.map +1 -1
- package/lib/commonjs/types/styledComponents.type.js.map +1 -1
- package/lib/commonjs/types/surface.type.js +6 -0
- package/lib/commonjs/types/surface.type.js.map +1 -0
- package/lib/commonjs/types/switch.type.js.map +1 -1
- package/lib/commonjs/types/userInput.type.js.map +1 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/assets/svg/Check.js.map +1 -1
- package/lib/module/assets/svg/X.js.map +1 -1
- package/lib/module/assets/svg/index.js.map +1 -1
- 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/Avatar/index.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/Dialog/index.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/Menu/calculations.js.map +1 -1
- package/lib/module/components/Menu/index.js.map +1 -1
- package/lib/module/components/Portal/Portal.js.map +1 -1
- package/lib/module/components/Portal/PortalContext.js.map +1 -1
- package/lib/module/components/Portal/PortalProvider.js.map +1 -1
- package/lib/module/components/Progress/Progress.js +7 -6
- package/lib/module/components/Progress/Progress.js.map +1 -1
- package/lib/module/components/Provider/ContextManager.js.map +1 -1
- package/lib/module/components/Provider/NativeProvider.js.map +1 -1
- package/lib/module/components/Radio/RadioGroup.js +41 -0
- package/lib/module/components/Radio/RadioGroup.js.map +1 -0
- package/lib/module/components/Radio/RadioItem.js +73 -0
- package/lib/module/components/Radio/RadioItem.js.map +1 -0
- package/lib/module/components/Radio/index.js +10 -0
- package/lib/module/components/Radio/index.js.map +1 -0
- package/lib/module/components/Slider/Slider.js +5 -5
- package/lib/module/components/Slider/Slider.js.map +1 -1
- package/lib/module/components/Stack/HStack.js +3 -7
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js +4 -8
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/Stack/index.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/StyledComponents/index.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/TouchableRipple/TouchableRipple.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/UserInputV2.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/breakPoints.js.map +1 -1
- package/lib/module/constants/dialogSizes.js.map +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/constants/theme.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/CalculateGridSize.js +1 -1
- package/lib/module/helpers/CalculateGridSize.js.map +1 -1
- package/lib/module/helpers/DeviceSizeCategory.js.map +1 -1
- package/lib/module/helpers/ResponsiveCalculations.js +29 -29
- package/lib/module/helpers/ResponsiveCalculations.js.map +1 -1
- package/lib/module/helpers/index.js.map +1 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useColorScheme.js.map +1 -1
- package/lib/module/hooks/useConditionalWindowDimension.js.map +1 -1
- package/lib/module/hooks/useScalingMode.js.map +1 -1
- package/lib/module/hooks/useTheme.js.map +1 -1
- package/lib/module/index.d.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/avatar.type.js.map +1 -1
- package/lib/module/types/button.type.js.map +1 -1
- package/lib/module/types/checkbox.type.js.map +1 -1
- package/lib/module/types/chip.type.js.map +1 -1
- package/lib/module/types/common.type.js.map +1 -1
- package/lib/module/types/dialog.type.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/grid.type.js.map +1 -1
- 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/menu.type.js.map +1 -1
- package/lib/module/types/progress.type.js.map +1 -1
- package/lib/module/types/radio.type.js +4 -0
- package/lib/module/types/radio.type.js.map +1 -0
- package/lib/module/types/stack.type.js.map +1 -1
- package/lib/module/types/styledComponents.type.js.map +1 -1
- package/lib/module/types/surface.type.js +4 -0
- package/lib/module/types/surface.type.js.map +1 -0
- package/lib/module/types/switch.type.js.map +1 -1
- package/lib/module/types/userInput.type.js.map +1 -1
- package/lib/module/utils/index.js.map +1 -1
- 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 +10 -5
- package/src/assets/svg/Check.tsx +16 -16
- package/src/assets/svg/X.tsx +15 -15
- package/src/assets/svg/index.ts +1 -1
- package/src/components/Avatar/AvatarImage.tsx +33 -38
- package/src/components/Avatar/AvatarText.tsx +34 -34
- package/src/components/Avatar/index.ts +8 -8
- package/src/components/Button/Button.tsx +205 -199
- package/src/components/Button/utils.ts +141 -141
- package/src/components/CheckBox/CheckBox.tsx +118 -116
- package/src/components/Chip/Chip.tsx +82 -90
- package/src/components/Chip/utils.ts +109 -95
- package/src/components/Dialog/Dialog.tsx +124 -120
- package/src/components/Dialog/DialogBody.tsx +31 -31
- package/src/components/Dialog/DialogDescription.tsx +27 -27
- package/src/components/Dialog/DialogFoot.tsx +36 -38
- package/src/components/Dialog/DialogHead.tsx +50 -55
- package/src/components/Dialog/index.ts +10 -10
- package/src/components/Divider/Divider.tsx +22 -30
- package/src/components/Grid/Grid.tsx +61 -60
- package/src/components/Icon/Icon.tsx +31 -31
- package/src/components/IconButton/IconButton.tsx +44 -44
- package/src/components/Link/Link.tsx +38 -47
- package/src/components/Menu/Menu.tsx +142 -139
- package/src/components/Menu/MenuItem.tsx +33 -33
- package/src/components/Menu/MenuItemLabel.tsx +21 -26
- package/src/components/Menu/calculations.ts +33 -33
- package/src/components/Menu/index.ts +7 -7
- package/src/components/Portal/Portal.tsx +18 -18
- package/src/components/Portal/PortalContext.tsx +9 -9
- package/src/components/Portal/PortalProvider.tsx +36 -36
- package/src/components/Progress/Progress.tsx +66 -65
- package/src/components/Provider/ContextManager.tsx +8 -8
- package/src/components/Provider/NativeProvider.tsx +72 -72
- 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 +45 -45
- package/src/components/Stack/HStack.tsx +32 -35
- package/src/components/Stack/VStack.tsx +26 -31
- package/src/components/Stack/index.ts +8 -8
- package/src/components/StyledComponents/StyledText.tsx +49 -40
- package/src/components/StyledComponents/StyledView.tsx +44 -44
- package/src/components/StyledComponents/index.tsx +5 -5
- package/src/components/Surface/Surface.tsx +31 -38
- package/src/components/Switch/Switch.tsx +36 -34
- package/src/components/TouchableRipple/TouchableRipple.tsx +92 -92
- package/src/components/UserInput/UserInput.tsx +135 -132
- package/src/components/UserInput/UserInputV2.tsx +132 -132
- package/src/components/UserInput/generateColors.ts +13 -13
- package/src/constants/breakPoints.ts +17 -17
- package/src/constants/dialogSizes.ts +11 -11
- package/src/constants/index.ts +2 -2
- package/src/constants/theme.ts +32 -32
- package/src/constants/typographySizes.ts +19 -21
- package/src/helpers/CalculateGridSize.ts +25 -25
- package/src/helpers/DeviceSizeCategory.ts +21 -21
- package/src/helpers/ResponsiveCalculations.ts +107 -108
- package/src/helpers/index.ts +2 -2
- package/src/hooks/index.ts +3 -3
- package/src/hooks/useColorScheme.tsx +11 -11
- package/src/hooks/useConditionalWindowDimension.tsx +7 -7
- package/src/hooks/useScalingMode.tsx +6 -6
- package/src/hooks/useTheme.tsx +12 -12
- package/src/index.d.ts +2 -2
- package/src/index.ts +52 -53
- package/src/themes/DarkTheme.ts +178 -39
- package/src/themes/LightTheme.ts +88 -95
- package/src/themes/index.ts +3 -4
- package/src/types/avatar.type.ts +40 -43
- package/src/types/button.type.ts +76 -76
- package/src/types/checkbox.type.ts +64 -57
- package/src/types/chip.type.ts +65 -56
- package/src/types/common.type.ts +109 -51
- package/src/types/dialog.type.ts +90 -89
- package/src/types/divider.type.ts +15 -0
- package/src/types/grid.type.ts +71 -70
- package/src/types/index.ts +17 -13
- package/src/types/link.type.ts +15 -0
- package/src/types/menu.type.ts +100 -116
- package/src/types/progress.type.ts +15 -15
- package/src/types/radio.type.ts +78 -0
- package/src/types/stack.type.ts +46 -56
- package/src/types/styledComponents.type.ts +70 -118
- package/src/types/surface.type.ts +19 -0
- package/src/types/switch.type.ts +39 -39
- package/src/types/userInput.type.ts +98 -103
- 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,32 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
3
|
-
import type { VStackProps } from "../../types";
|
|
4
|
-
import { StyledView } from "../StyledComponents";
|
|
5
|
-
import type { ViewStyle } from "react-native";
|
|
6
|
-
|
|
7
|
-
const VStack:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{children}
|
|
28
|
-
</StyledView>
|
|
29
|
-
</>)
|
|
30
|
-
}
|
|
31
|
-
export default VStack;
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
3
|
+
import type { VStackProps } from "../../types";
|
|
4
|
+
import { StyledView } from "../StyledComponents";
|
|
5
|
+
import type { ViewStyle } from "react-native";
|
|
6
|
+
|
|
7
|
+
const VStack: FC<VStackProps> = ({
|
|
8
|
+
gap = 10,
|
|
9
|
+
containerStyle,
|
|
10
|
+
children,
|
|
11
|
+
...rest
|
|
12
|
+
}) => {
|
|
13
|
+
const viewProps: ViewStyle = {
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
gap: verticalScale(gap),
|
|
16
|
+
};
|
|
17
|
+
return (<>
|
|
18
|
+
<StyledView
|
|
19
|
+
style={[viewProps, containerStyle]}
|
|
20
|
+
{...rest}
|
|
21
|
+
>
|
|
22
|
+
{children}
|
|
23
|
+
</StyledView>
|
|
24
|
+
</>)
|
|
25
|
+
}
|
|
26
|
+
export default VStack;
|
|
32
27
|
export type { VStackProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import HStack from "./HStack";
|
|
2
|
-
import VStack from "./VStack";
|
|
3
|
-
const Stack = {
|
|
4
|
-
H: HStack,
|
|
5
|
-
V: VStack
|
|
6
|
-
};
|
|
7
|
-
export type { HStackProps } from './HStack';
|
|
8
|
-
export type { VStackProps } from './VStack';
|
|
1
|
+
import HStack from "./HStack";
|
|
2
|
+
import VStack from "./VStack";
|
|
3
|
+
const Stack = {
|
|
4
|
+
H: HStack,
|
|
5
|
+
V: VStack
|
|
6
|
+
};
|
|
7
|
+
export type { HStackProps } from './HStack';
|
|
8
|
+
export type { VStackProps } from './VStack';
|
|
9
9
|
export default Stack;
|
|
@@ -1,41 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Text } from 'react-native';
|
|
3
|
-
import { responsiveFontSize } from '../../helpers/ResponsiveCalculations';
|
|
4
|
-
import { useTheme } from '../../hooks';
|
|
5
|
-
import type { StyledTextProps } from '../../types';
|
|
6
|
-
|
|
7
|
-
const StyledText:
|
|
8
|
-
variant = '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
import { responsiveFontSize } from '../../helpers/ResponsiveCalculations';
|
|
4
|
+
import { useTheme } from '../../hooks';
|
|
5
|
+
import type { StyledTextProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
const StyledText: FC<StyledTextProps> = ({
|
|
8
|
+
variant = 'primary',
|
|
9
|
+
fScale = 'base',
|
|
10
|
+
children,
|
|
11
|
+
style,
|
|
12
|
+
ff,
|
|
13
|
+
fs,
|
|
14
|
+
tas,
|
|
15
|
+
fw,
|
|
16
|
+
color,
|
|
17
|
+
themeColor,
|
|
18
|
+
...rest
|
|
19
|
+
}) => {
|
|
20
|
+
const { colors, sizes: { typography: typographyScales } }: any = useTheme();
|
|
21
|
+
|
|
22
|
+
const getVariantColor = () => {
|
|
23
|
+
switch (variant) {
|
|
24
|
+
case 'secondary': return colors.typography.secondary;
|
|
25
|
+
case 'tertiary': return colors.typography.tertiary;
|
|
26
|
+
case 'disabled': return colors.typography.disabled;
|
|
27
|
+
case 'inverse': return colors.typography.inverse;
|
|
28
|
+
default: return colors.typography.primary;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return (
|
|
32
|
+
<Text
|
|
33
|
+
style={[{
|
|
34
|
+
fontSize: responsiveFontSize(fs ?? typographyScales[fScale]),
|
|
35
|
+
fontFamily: ff ?? '',
|
|
36
|
+
textAlign: tas ? 'center' : 'auto',
|
|
37
|
+
fontWeight: fw ?? 'normal',
|
|
38
|
+
color: color ?? (themeColor && colors.brand.primary || getVariantColor()),
|
|
39
|
+
},
|
|
40
|
+
style,
|
|
41
|
+
]}
|
|
42
|
+
{...rest}
|
|
43
|
+
>
|
|
44
|
+
{children}
|
|
45
|
+
</Text>
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default StyledText;
|
|
41
50
|
export type { StyledTextProps };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { forwardRef } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { useTheme } from '../../hooks';
|
|
4
|
-
import type { StyledViewProps } from '../../types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const StyledView = forwardRef<View, StyledViewProps>(({
|
|
8
|
-
f,
|
|
9
|
-
justify,
|
|
10
|
-
align,
|
|
11
|
-
fWrap,
|
|
12
|
-
bg,
|
|
13
|
-
themeBg = false,
|
|
14
|
-
h,
|
|
15
|
-
w,
|
|
16
|
-
children,
|
|
17
|
-
style,
|
|
18
|
-
...rest
|
|
19
|
-
}, ref) => {
|
|
20
|
-
|
|
21
|
-
const theme = useTheme(
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<View
|
|
25
|
-
style={[{
|
|
26
|
-
flex: f,
|
|
27
|
-
justifyContent: justify,
|
|
28
|
-
alignItems: align,
|
|
29
|
-
flexWrap: fWrap,
|
|
30
|
-
backgroundColor: bg ?? (themeBg ? theme?.colors.
|
|
31
|
-
height: h,
|
|
32
|
-
width: w,
|
|
33
|
-
},
|
|
34
|
-
style
|
|
35
|
-
]}
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
>
|
|
39
|
-
{children}
|
|
40
|
-
</View>
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export default StyledView;
|
|
1
|
+
import { forwardRef } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../hooks';
|
|
4
|
+
import type { StyledViewProps } from '../../types';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const StyledView = forwardRef<View, StyledViewProps>(({
|
|
8
|
+
f,
|
|
9
|
+
justify,
|
|
10
|
+
align,
|
|
11
|
+
fWrap,
|
|
12
|
+
bg,
|
|
13
|
+
themeBg = false,
|
|
14
|
+
h,
|
|
15
|
+
w,
|
|
16
|
+
children,
|
|
17
|
+
style,
|
|
18
|
+
...rest
|
|
19
|
+
}, ref) => {
|
|
20
|
+
|
|
21
|
+
const theme = useTheme();
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<View
|
|
25
|
+
style={[{
|
|
26
|
+
flex: f,
|
|
27
|
+
justifyContent: justify,
|
|
28
|
+
alignItems: align,
|
|
29
|
+
flexWrap: fWrap,
|
|
30
|
+
backgroundColor: bg ?? (themeBg ? theme?.colors.background.default : 'transparent'),
|
|
31
|
+
height: h,
|
|
32
|
+
width: w,
|
|
33
|
+
},
|
|
34
|
+
style
|
|
35
|
+
]}
|
|
36
|
+
ref={ref}
|
|
37
|
+
{...rest}
|
|
38
|
+
>
|
|
39
|
+
{children}
|
|
40
|
+
</View>
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export default StyledView;
|
|
45
45
|
export type { StyledViewProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as StyledText } from './StyledText';
|
|
2
|
-
export { default as StyledView } from './StyledView';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type { StyledViewProps } from './StyledView';
|
|
1
|
+
export { default as StyledText } from './StyledText';
|
|
2
|
+
export { default as StyledView } from './StyledView';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export type { StyledViewProps } from './StyledView';
|
|
6
6
|
export type { StyledTextProps } from './StyledText';
|
|
@@ -1,38 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<StyledView style={STYLES.CONTAINER}>
|
|
33
|
-
|
|
34
|
-
</StyledView>
|
|
35
|
-
</>);
|
|
36
|
-
};
|
|
37
|
-
export default Surface;
|
|
38
|
-
export type { SurfaceProps };
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { StyledView } from '../StyledComponents';
|
|
3
|
+
import { useTheme } from '../../hooks';
|
|
4
|
+
import { verticalScale } from '../../helpers';
|
|
5
|
+
import type { SurfaceProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
const Surface: FC<SurfaceProps> = ({
|
|
8
|
+
variant = 'elevated',
|
|
9
|
+
padding = 10,
|
|
10
|
+
br = 5,
|
|
11
|
+
children,
|
|
12
|
+
...rest
|
|
13
|
+
}) => {
|
|
14
|
+
|
|
15
|
+
const { colors }: any = useTheme();
|
|
16
|
+
const styles = variant === 'elevated' ? { boxShadow: colors.elevation.level1 } : { borderColor: colors.border.default, borderWidth: 0.5 };
|
|
17
|
+
|
|
18
|
+
return (<>
|
|
19
|
+
<StyledView
|
|
20
|
+
padding={verticalScale(padding)}
|
|
21
|
+
borderRadius={verticalScale(br)}
|
|
22
|
+
bg={colors.background.surface}
|
|
23
|
+
{...styles}
|
|
24
|
+
{...rest}
|
|
25
|
+
>
|
|
26
|
+
{children}
|
|
27
|
+
</StyledView>
|
|
28
|
+
</>);
|
|
29
|
+
};
|
|
30
|
+
export default Surface;
|
|
31
|
+
export type { SurfaceProps };
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Switch as NativeSwitch } from "react-native";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const Switch:
|
|
9
|
-
checked = true,
|
|
10
|
-
color,
|
|
11
|
-
disabled = false,
|
|
12
|
-
size = 0.
|
|
13
|
-
activeTrackColor,
|
|
14
|
-
inactiveTrackColor
|
|
15
|
-
onChange,
|
|
16
|
-
...rest
|
|
17
|
-
}) => {
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const switchColor = disabled ?
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { Switch as NativeSwitch } from "react-native";
|
|
3
|
+
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
4
|
+
import { useTheme } from "../../hooks";
|
|
5
|
+
import type { SwitchProps } from "../../types";
|
|
6
|
+
import Color from "color";
|
|
7
|
+
|
|
8
|
+
const Switch: FC<SwitchProps> = ({
|
|
9
|
+
checked = true,
|
|
10
|
+
color,
|
|
11
|
+
disabled = false,
|
|
12
|
+
size = 0.9,
|
|
13
|
+
activeTrackColor,
|
|
14
|
+
inactiveTrackColor,
|
|
15
|
+
onChange,
|
|
16
|
+
...rest
|
|
17
|
+
}) => {
|
|
18
|
+
|
|
19
|
+
const { colors }: any = useTheme();
|
|
20
|
+
const switchColor = disabled ? colors.states.disabled : color ?? colors.brand.primary;
|
|
21
|
+
const disabledAndInActiveTrackColor = colors.palette.natural[200];
|
|
22
|
+
const generateActiveTrackColor = Color(colors.brand.primary).lighten(0).alpha(0.3).rgb().string();
|
|
23
|
+
|
|
24
|
+
return (<>
|
|
25
|
+
<NativeSwitch
|
|
26
|
+
value={checked}
|
|
27
|
+
trackColor={{ true: (disabled && disabledAndInActiveTrackColor) || (activeTrackColor ?? generateActiveTrackColor), false: (disabled && disabledAndInActiveTrackColor) || (inactiveTrackColor ?? disabledAndInActiveTrackColor) }}
|
|
28
|
+
thumbColor={switchColor}
|
|
29
|
+
onValueChange={onChange}
|
|
30
|
+
style={{ transform: [{ scaleX: verticalScale(size) }, { scaleY: verticalScale(size) }] }}
|
|
31
|
+
disabled={disabled}
|
|
32
|
+
{...rest}
|
|
33
|
+
/>
|
|
34
|
+
</>)
|
|
35
|
+
}
|
|
36
|
+
export default Switch;
|
|
35
37
|
export type { SwitchProps };
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { Pressable, StyleSheet } from "react-native";
|
|
3
|
-
// import type { ViewStyle, StyleProp, PressableProps } from "react-native";
|
|
4
|
-
// import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
5
|
-
// import Animated, { useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
6
|
-
// import { StyledView } from '../StyledComponents';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// type TouchableRippleProps = PressableProps & {
|
|
10
|
-
// rippleColor?: string;
|
|
11
|
-
// style?: StyleProp<ViewStyle>;
|
|
12
|
-
// children?: React.ReactNode;
|
|
13
|
-
// }
|
|
14
|
-
|
|
15
|
-
// const TouchableRipple: React.FC<TouchableRippleProps> = ({
|
|
16
|
-
// rippleColor = '#b6b6b681',
|
|
17
|
-
// style,
|
|
18
|
-
// children,
|
|
19
|
-
// ...rest
|
|
20
|
-
// }) => {
|
|
21
|
-
|
|
22
|
-
// const positionX = useSharedValue(0);
|
|
23
|
-
// const positionY = useSharedValue(0);
|
|
24
|
-
// const overlayHeight = useSharedValue(0);
|
|
25
|
-
// const overlayWidth = useSharedValue(0);
|
|
26
|
-
// const scale = useSharedValue(0);
|
|
27
|
-
// const opacity = useSharedValue(1);
|
|
28
|
-
|
|
29
|
-
// const STYLES = StyleSheet.create({
|
|
30
|
-
// OVERLAY: {
|
|
31
|
-
// position: 'absolute',
|
|
32
|
-
// top: 0,
|
|
33
|
-
// left: 0,
|
|
34
|
-
// zIndex: -1
|
|
35
|
-
// }
|
|
36
|
-
// });
|
|
37
|
-
|
|
38
|
-
// const effectAnimatedStyle = useAnimatedStyle(() => {
|
|
39
|
-
// const radius = Math.sqrt(overlayWidth.value ** 2 + overlayHeight.value ** 2);
|
|
40
|
-
// return {
|
|
41
|
-
// height: radius * 2,
|
|
42
|
-
// width: radius * 2,
|
|
43
|
-
// opacity: opacity.value,
|
|
44
|
-
// borderRadius: radius,
|
|
45
|
-
// backgroundColor: rippleColor,
|
|
46
|
-
// transform: [
|
|
47
|
-
// { translateX: positionX.value - radius },
|
|
48
|
-
// { translateY: positionY.value - radius },
|
|
49
|
-
// {
|
|
50
|
-
// scale: scale.value
|
|
51
|
-
// }
|
|
52
|
-
// ]
|
|
53
|
-
// }
|
|
54
|
-
// });
|
|
55
|
-
|
|
56
|
-
// const onGesturePress = !props.disabled ? Gesture.Tap().runOnJS(true).onTouchesDown(({ allTouches }: { allTouches: any }) => {
|
|
57
|
-
// positionX.value = allTouches[0].x;
|
|
58
|
-
// positionY.value = allTouches[0].y;
|
|
59
|
-
// opacity.value = 1;
|
|
60
|
-
// scale.value = 0;
|
|
61
|
-
// scale.value = withTiming(1, { duration: 600 });
|
|
62
|
-
// }).onTouchesUp(() => {
|
|
63
|
-
// opacity.value = withTiming(0, { duration: 800 });
|
|
64
|
-
// }).onTouchesCancelled(() => {
|
|
65
|
-
// opacity.value = withTiming(0, { duration: 800 });
|
|
66
|
-
// }) : Gesture.Simultaneous();
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
// return (<>
|
|
70
|
-
// <GestureHandlerRootView style={{ width: '100%' }}>
|
|
71
|
-
// <GestureDetector gesture={onGesturePress}>
|
|
72
|
-
// <Pressable
|
|
73
|
-
// {...rest}
|
|
74
|
-
// >
|
|
75
|
-
// <StyledView
|
|
76
|
-
// overflow='hidden'
|
|
77
|
-
// onLayout={({ nativeEvent: { layout: { height, width } } }) => {
|
|
78
|
-
// overlayHeight.value = height;
|
|
79
|
-
// overlayWidth.value = width;
|
|
80
|
-
// }}
|
|
81
|
-
// style={style}
|
|
82
|
-
// >
|
|
83
|
-
// {children}
|
|
84
|
-
// <Animated.View style={[STYLES.OVERLAY, effectAnimatedStyle]} />
|
|
85
|
-
// </StyledView>
|
|
86
|
-
// </Pressable>
|
|
87
|
-
// </GestureDetector>
|
|
88
|
-
// </GestureHandlerRootView>
|
|
89
|
-
// </>);
|
|
90
|
-
// };
|
|
91
|
-
// export default TouchableRipple;
|
|
92
|
-
// export type { TouchableRippleProps };
|
|
1
|
+
// import React from 'react';
|
|
2
|
+
// import { Pressable, StyleSheet } from "react-native";
|
|
3
|
+
// import type { ViewStyle, StyleProp, PressableProps } from "react-native";
|
|
4
|
+
// import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
5
|
+
// import Animated, { useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
6
|
+
// import { StyledView } from '../StyledComponents';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// type TouchableRippleProps = PressableProps & {
|
|
10
|
+
// rippleColor?: string;
|
|
11
|
+
// style?: StyleProp<ViewStyle>;
|
|
12
|
+
// children?: React.ReactNode;
|
|
13
|
+
// }
|
|
14
|
+
|
|
15
|
+
// const TouchableRipple: React.FC<TouchableRippleProps> = ({
|
|
16
|
+
// rippleColor = '#b6b6b681',
|
|
17
|
+
// style,
|
|
18
|
+
// children,
|
|
19
|
+
// ...rest
|
|
20
|
+
// }) => {
|
|
21
|
+
|
|
22
|
+
// const positionX = useSharedValue(0);
|
|
23
|
+
// const positionY = useSharedValue(0);
|
|
24
|
+
// const overlayHeight = useSharedValue(0);
|
|
25
|
+
// const overlayWidth = useSharedValue(0);
|
|
26
|
+
// const scale = useSharedValue(0);
|
|
27
|
+
// const opacity = useSharedValue(1);
|
|
28
|
+
|
|
29
|
+
// const STYLES = StyleSheet.create({
|
|
30
|
+
// OVERLAY: {
|
|
31
|
+
// position: 'absolute',
|
|
32
|
+
// top: 0,
|
|
33
|
+
// left: 0,
|
|
34
|
+
// zIndex: -1
|
|
35
|
+
// }
|
|
36
|
+
// });
|
|
37
|
+
|
|
38
|
+
// const effectAnimatedStyle = useAnimatedStyle(() => {
|
|
39
|
+
// const radius = Math.sqrt(overlayWidth.value ** 2 + overlayHeight.value ** 2);
|
|
40
|
+
// return {
|
|
41
|
+
// height: radius * 2,
|
|
42
|
+
// width: radius * 2,
|
|
43
|
+
// opacity: opacity.value,
|
|
44
|
+
// borderRadius: radius,
|
|
45
|
+
// backgroundColor: rippleColor,
|
|
46
|
+
// transform: [
|
|
47
|
+
// { translateX: positionX.value - radius },
|
|
48
|
+
// { translateY: positionY.value - radius },
|
|
49
|
+
// {
|
|
50
|
+
// scale: scale.value
|
|
51
|
+
// }
|
|
52
|
+
// ]
|
|
53
|
+
// }
|
|
54
|
+
// });
|
|
55
|
+
|
|
56
|
+
// const onGesturePress = !props.disabled ? Gesture.Tap().runOnJS(true).onTouchesDown(({ allTouches }: { allTouches: any }) => {
|
|
57
|
+
// positionX.value = allTouches[0].x;
|
|
58
|
+
// positionY.value = allTouches[0].y;
|
|
59
|
+
// opacity.value = 1;
|
|
60
|
+
// scale.value = 0;
|
|
61
|
+
// scale.value = withTiming(1, { duration: 600 });
|
|
62
|
+
// }).onTouchesUp(() => {
|
|
63
|
+
// opacity.value = withTiming(0, { duration: 800 });
|
|
64
|
+
// }).onTouchesCancelled(() => {
|
|
65
|
+
// opacity.value = withTiming(0, { duration: 800 });
|
|
66
|
+
// }) : Gesture.Simultaneous();
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// return (<>
|
|
70
|
+
// <GestureHandlerRootView style={{ width: '100%' }}>
|
|
71
|
+
// <GestureDetector gesture={onGesturePress}>
|
|
72
|
+
// <Pressable
|
|
73
|
+
// {...rest}
|
|
74
|
+
// >
|
|
75
|
+
// <StyledView
|
|
76
|
+
// overflow='hidden'
|
|
77
|
+
// onLayout={({ nativeEvent: { layout: { height, width } } }) => {
|
|
78
|
+
// overlayHeight.value = height;
|
|
79
|
+
// overlayWidth.value = width;
|
|
80
|
+
// }}
|
|
81
|
+
// style={style}
|
|
82
|
+
// >
|
|
83
|
+
// {children}
|
|
84
|
+
// <Animated.View style={[STYLES.OVERLAY, effectAnimatedStyle]} />
|
|
85
|
+
// </StyledView>
|
|
86
|
+
// </Pressable>
|
|
87
|
+
// </GestureDetector>
|
|
88
|
+
// </GestureHandlerRootView>
|
|
89
|
+
// </>);
|
|
90
|
+
// };
|
|
91
|
+
// export default TouchableRipple;
|
|
92
|
+
// export type { TouchableRippleProps };
|