@nexara/nativeflow 0.1.1
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/LICENSE +20 -0
- package/README.md +67 -0
- package/lib/commonjs/assets/svg/Check.js +26 -0
- package/lib/commonjs/assets/svg/Check.js.map +1 -0
- package/lib/commonjs/assets/svg/X.js +24 -0
- package/lib/commonjs/assets/svg/X.js.map +1 -0
- package/lib/commonjs/assets/svg/index.js +21 -0
- package/lib/commonjs/assets/svg/index.js.map +1 -0
- package/lib/commonjs/components/Avatar/AvatarImage.js +45 -0
- package/lib/commonjs/components/Avatar/AvatarImage.js.map +1 -0
- package/lib/commonjs/components/Avatar/AvatarText.js +45 -0
- package/lib/commonjs/components/Avatar/AvatarText.js.map +1 -0
- package/lib/commonjs/components/Avatar/index.js +15 -0
- package/lib/commonjs/components/Avatar/index.js.map +1 -0
- package/lib/commonjs/components/Button/Button.js +148 -0
- package/lib/commonjs/components/Button/Button.js.map +1 -0
- package/lib/commonjs/components/Button/utils.js +105 -0
- package/lib/commonjs/components/Button/utils.js.map +1 -0
- package/lib/commonjs/components/CheckBox/CheckBox.js +105 -0
- package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -0
- package/lib/commonjs/components/Chip/Chip.js +92 -0
- package/lib/commonjs/components/Chip/Chip.js.map +1 -0
- package/lib/commonjs/components/Chip/utils.js +73 -0
- package/lib/commonjs/components/Chip/utils.js.map +1 -0
- package/lib/commonjs/components/Dialog/Dialog.js +114 -0
- package/lib/commonjs/components/Dialog/Dialog.js.map +1 -0
- package/lib/commonjs/components/Dialog/DialogBody.js +37 -0
- package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -0
- package/lib/commonjs/components/Dialog/DialogDescription.js +39 -0
- package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -0
- package/lib/commonjs/components/Dialog/DialogFoot.js +38 -0
- package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -0
- package/lib/commonjs/components/Dialog/DialogHead.js +58 -0
- package/lib/commonjs/components/Dialog/DialogHead.js.map +1 -0
- package/lib/commonjs/components/Dialog/index.js +42 -0
- package/lib/commonjs/components/Dialog/index.js.map +1 -0
- package/lib/commonjs/components/Divider/Divider.js +33 -0
- package/lib/commonjs/components/Divider/Divider.js.map +1 -0
- package/lib/commonjs/components/Grid/Grid.js +66 -0
- package/lib/commonjs/components/Grid/Grid.js.map +1 -0
- package/lib/commonjs/components/Header/Header.js +78 -0
- package/lib/commonjs/components/Header/Header.js.map +1 -0
- package/lib/commonjs/components/Icon/Icon.js +26 -0
- package/lib/commonjs/components/Icon/Icon.js.map +1 -0
- package/lib/commonjs/components/IconButton/IconButton.js +39 -0
- package/lib/commonjs/components/IconButton/IconButton.js.map +1 -0
- package/lib/commonjs/components/Link/Link.js +45 -0
- package/lib/commonjs/components/Link/Link.js.map +1 -0
- package/lib/commonjs/components/Menu/Menu.js +165 -0
- package/lib/commonjs/components/Menu/Menu.js.map +1 -0
- package/lib/commonjs/components/Menu/MenuItem.js +39 -0
- package/lib/commonjs/components/Menu/MenuItem.js.map +1 -0
- package/lib/commonjs/components/Menu/MenuItemLabel.js +31 -0
- package/lib/commonjs/components/Menu/MenuItemLabel.js.map +1 -0
- package/lib/commonjs/components/Menu/calculations.js +31 -0
- package/lib/commonjs/components/Menu/calculations.js.map +1 -0
- package/lib/commonjs/components/Menu/index.js +28 -0
- package/lib/commonjs/components/Menu/index.js.map +1 -0
- package/lib/commonjs/components/Portal/Portal.js +29 -0
- package/lib/commonjs/components/Portal/Portal.js.map +1 -0
- package/lib/commonjs/components/Portal/PortalContext.js +19 -0
- package/lib/commonjs/components/Portal/PortalContext.js.map +1 -0
- package/lib/commonjs/components/Portal/PortalProvider.js +47 -0
- package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -0
- package/lib/commonjs/components/Progress/Progress.js +58 -0
- package/lib/commonjs/components/Progress/Progress.js.map +1 -0
- package/lib/commonjs/components/Provider/NativeProvider.js +44 -0
- package/lib/commonjs/components/Provider/NativeProvider.js.map +1 -0
- package/lib/commonjs/components/Slider/Slider.js +43 -0
- package/lib/commonjs/components/Slider/Slider.js.map +1 -0
- package/lib/commonjs/components/Stack/HStack.js +43 -0
- package/lib/commonjs/components/Stack/HStack.js.map +1 -0
- package/lib/commonjs/components/Stack/VStack.js +36 -0
- package/lib/commonjs/components/Stack/VStack.js.map +1 -0
- package/lib/commonjs/components/Stack/index.js +15 -0
- package/lib/commonjs/components/Stack/index.js.map +1 -0
- package/lib/commonjs/components/StyledComponents/StyledText.js +49 -0
- package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -0
- package/lib/commonjs/components/StyledComponents/StyledView.js +43 -0
- package/lib/commonjs/components/StyledComponents/StyledView.js.map +1 -0
- package/lib/commonjs/components/StyledComponents/index.js +21 -0
- package/lib/commonjs/components/StyledComponents/index.js.map +1 -0
- package/lib/commonjs/components/Surface/Surface.js +36 -0
- package/lib/commonjs/components/Surface/Surface.js.map +1 -0
- package/lib/commonjs/components/Switch/Switch.js +48 -0
- package/lib/commonjs/components/Switch/Switch.js.map +1 -0
- package/lib/commonjs/components/TouchableRipple/TouchableRipple.js +105 -0
- package/lib/commonjs/components/TouchableRipple/TouchableRipple.js.map +1 -0
- package/lib/commonjs/components/UserInput/UserInput.js +122 -0
- package/lib/commonjs/components/UserInput/UserInput.js.map +1 -0
- package/lib/commonjs/components/UserInput/UserInputV2.js +95 -0
- package/lib/commonjs/components/UserInput/UserInputV2.js.map +1 -0
- package/lib/commonjs/components/UserInput/generateColors.js +18 -0
- package/lib/commonjs/components/UserInput/generateColors.js.map +1 -0
- package/lib/commonjs/constants/breakPoints.js +15 -0
- package/lib/commonjs/constants/breakPoints.js.map +1 -0
- package/lib/commonjs/constants/dialogSizes.js +15 -0
- package/lib/commonjs/constants/dialogSizes.js.map +1 -0
- package/lib/commonjs/constants/index.js +28 -0
- package/lib/commonjs/constants/index.js.map +1 -0
- package/lib/commonjs/constants/theme.js +21 -0
- package/lib/commonjs/constants/theme.js.map +1 -0
- package/lib/commonjs/constants/typographySizes.js +17 -0
- package/lib/commonjs/constants/typographySizes.js.map +1 -0
- package/lib/commonjs/helpers/CalculateGridSize.js +27 -0
- package/lib/commonjs/helpers/CalculateGridSize.js.map +1 -0
- package/lib/commonjs/helpers/DeviceSizeCategory.js +40 -0
- package/lib/commonjs/helpers/DeviceSizeCategory.js.map +1 -0
- package/lib/commonjs/helpers/LightenColorShades.js +14 -0
- package/lib/commonjs/helpers/LightenColorShades.js.map +1 -0
- package/lib/commonjs/helpers/ResponsiveCalculations.js +77 -0
- package/lib/commonjs/helpers/ResponsiveCalculations.js.map +1 -0
- package/lib/commonjs/helpers/index.js +21 -0
- package/lib/commonjs/helpers/index.js.map +1 -0
- package/lib/commonjs/hooks/index.js +35 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useColorScheme.js +17 -0
- package/lib/commonjs/hooks/useColorScheme.js.map +1 -0
- package/lib/commonjs/hooks/useConditionalWindowDimension.js +15 -0
- package/lib/commonjs/hooks/useConditionalWindowDimension.js.map +1 -0
- package/lib/commonjs/hooks/useResponsive.js +11 -0
- package/lib/commonjs/hooks/useResponsive.js.map +1 -0
- package/lib/commonjs/hooks/useTheme.js +17 -0
- package/lib/commonjs/hooks/useTheme.js.map +1 -0
- package/lib/commonjs/index.js +255 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/themes/DarkTheme.js +38 -0
- package/lib/commonjs/themes/DarkTheme.js.map +1 -0
- package/lib/commonjs/themes/LightTheme.js +97 -0
- package/lib/commonjs/themes/LightTheme.js.map +1 -0
- package/lib/commonjs/themes/createTheme.js +25 -0
- package/lib/commonjs/themes/createTheme.js.map +1 -0
- package/lib/commonjs/themes/index.js +21 -0
- package/lib/commonjs/themes/index.js.map +1 -0
- package/lib/commonjs/types/avatar.type.js +6 -0
- package/lib/commonjs/types/avatar.type.js.map +1 -0
- package/lib/commonjs/types/button.type.js +6 -0
- package/lib/commonjs/types/button.type.js.map +1 -0
- package/lib/commonjs/types/checkbox.type.js +6 -0
- package/lib/commonjs/types/checkbox.type.js.map +1 -0
- package/lib/commonjs/types/chip.type.js +6 -0
- package/lib/commonjs/types/chip.type.js.map +1 -0
- package/lib/commonjs/types/common.type.js +6 -0
- package/lib/commonjs/types/common.type.js.map +1 -0
- package/lib/commonjs/types/dialog.type.js +6 -0
- package/lib/commonjs/types/dialog.type.js.map +1 -0
- package/lib/commonjs/types/grid.type.js +6 -0
- package/lib/commonjs/types/grid.type.js.map +1 -0
- package/lib/commonjs/types/index.js +138 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/menu.type.js +6 -0
- package/lib/commonjs/types/menu.type.js.map +1 -0
- package/lib/commonjs/types/stack.type.js +6 -0
- package/lib/commonjs/types/stack.type.js.map +1 -0
- package/lib/commonjs/types/styledComponents.type.js +6 -0
- package/lib/commonjs/types/styledComponents.type.js.map +1 -0
- package/lib/commonjs/types/switch.type.js +6 -0
- package/lib/commonjs/types/switch.type.js.map +1 -0
- package/lib/commonjs/types/userInput.type.js +6 -0
- package/lib/commonjs/types/userInput.type.js.map +1 -0
- package/lib/module/assets/svg/Check.js +22 -0
- package/lib/module/assets/svg/Check.js.map +1 -0
- package/lib/module/assets/svg/X.js +20 -0
- package/lib/module/assets/svg/X.js.map +1 -0
- package/lib/module/assets/svg/index.js +5 -0
- package/lib/module/assets/svg/index.js.map +1 -0
- package/lib/module/components/Avatar/AvatarImage.js +40 -0
- package/lib/module/components/Avatar/AvatarImage.js.map +1 -0
- package/lib/module/components/Avatar/AvatarText.js +40 -0
- package/lib/module/components/Avatar/AvatarText.js.map +1 -0
- package/lib/module/components/Avatar/index.js +10 -0
- package/lib/module/components/Avatar/index.js.map +1 -0
- package/lib/module/components/Button/Button.js +143 -0
- package/lib/module/components/Button/Button.js.map +1 -0
- package/lib/module/components/Button/utils.js +101 -0
- package/lib/module/components/Button/utils.js.map +1 -0
- package/lib/module/components/CheckBox/CheckBox.js +99 -0
- package/lib/module/components/CheckBox/CheckBox.js.map +1 -0
- package/lib/module/components/Chip/Chip.js +87 -0
- package/lib/module/components/Chip/Chip.js.map +1 -0
- package/lib/module/components/Chip/utils.js +69 -0
- package/lib/module/components/Chip/utils.js.map +1 -0
- package/lib/module/components/Dialog/Dialog.js +107 -0
- package/lib/module/components/Dialog/Dialog.js.map +1 -0
- package/lib/module/components/Dialog/DialogBody.js +32 -0
- package/lib/module/components/Dialog/DialogBody.js.map +1 -0
- package/lib/module/components/Dialog/DialogDescription.js +34 -0
- package/lib/module/components/Dialog/DialogDescription.js.map +1 -0
- package/lib/module/components/Dialog/DialogFoot.js +33 -0
- package/lib/module/components/Dialog/DialogFoot.js.map +1 -0
- package/lib/module/components/Dialog/DialogHead.js +53 -0
- package/lib/module/components/Dialog/DialogHead.js.map +1 -0
- package/lib/module/components/Dialog/index.js +8 -0
- package/lib/module/components/Dialog/index.js.map +1 -0
- package/lib/module/components/Divider/Divider.js +28 -0
- package/lib/module/components/Divider/Divider.js.map +1 -0
- package/lib/module/components/Grid/Grid.js +60 -0
- package/lib/module/components/Grid/Grid.js.map +1 -0
- package/lib/module/components/Header/Header.js +73 -0
- package/lib/module/components/Header/Header.js.map +1 -0
- package/lib/module/components/Icon/Icon.js +21 -0
- package/lib/module/components/Icon/Icon.js.map +1 -0
- package/lib/module/components/IconButton/IconButton.js +34 -0
- package/lib/module/components/IconButton/IconButton.js.map +1 -0
- package/lib/module/components/Link/Link.js +41 -0
- package/lib/module/components/Link/Link.js.map +1 -0
- package/lib/module/components/Menu/Menu.js +158 -0
- package/lib/module/components/Menu/Menu.js.map +1 -0
- package/lib/module/components/Menu/MenuItem.js +34 -0
- package/lib/module/components/Menu/MenuItem.js.map +1 -0
- package/lib/module/components/Menu/MenuItemLabel.js +26 -0
- package/lib/module/components/Menu/MenuItemLabel.js.map +1 -0
- package/lib/module/components/Menu/calculations.js +27 -0
- package/lib/module/components/Menu/calculations.js.map +1 -0
- package/lib/module/components/Menu/index.js +6 -0
- package/lib/module/components/Menu/index.js.map +1 -0
- package/lib/module/components/Portal/Portal.js +24 -0
- package/lib/module/components/Portal/Portal.js.map +1 -0
- package/lib/module/components/Portal/PortalContext.js +13 -0
- package/lib/module/components/Portal/PortalContext.js.map +1 -0
- package/lib/module/components/Portal/PortalProvider.js +40 -0
- package/lib/module/components/Portal/PortalProvider.js.map +1 -0
- package/lib/module/components/Progress/Progress.js +52 -0
- package/lib/module/components/Progress/Progress.js.map +1 -0
- package/lib/module/components/Provider/NativeProvider.js +38 -0
- package/lib/module/components/Provider/NativeProvider.js.map +1 -0
- package/lib/module/components/Slider/Slider.js +38 -0
- package/lib/module/components/Slider/Slider.js.map +1 -0
- package/lib/module/components/Stack/HStack.js +37 -0
- package/lib/module/components/Stack/HStack.js.map +1 -0
- package/lib/module/components/Stack/VStack.js +30 -0
- package/lib/module/components/Stack/VStack.js.map +1 -0
- package/lib/module/components/Stack/index.js +10 -0
- package/lib/module/components/Stack/index.js.map +1 -0
- package/lib/module/components/StyledComponents/StyledText.js +44 -0
- package/lib/module/components/StyledComponents/StyledText.js.map +1 -0
- package/lib/module/components/StyledComponents/StyledView.js +38 -0
- package/lib/module/components/StyledComponents/StyledView.js.map +1 -0
- package/lib/module/components/StyledComponents/index.js +5 -0
- package/lib/module/components/StyledComponents/index.js.map +1 -0
- package/lib/module/components/Surface/Surface.js +31 -0
- package/lib/module/components/Surface/Surface.js.map +1 -0
- package/lib/module/components/Switch/Switch.js +43 -0
- package/lib/module/components/Switch/Switch.js.map +1 -0
- package/lib/module/components/TouchableRipple/TouchableRipple.js +98 -0
- package/lib/module/components/TouchableRipple/TouchableRipple.js.map +1 -0
- package/lib/module/components/UserInput/UserInput.js +119 -0
- package/lib/module/components/UserInput/UserInput.js.map +1 -0
- package/lib/module/components/UserInput/UserInputV2.js +90 -0
- package/lib/module/components/UserInput/UserInputV2.js.map +1 -0
- package/lib/module/components/UserInput/generateColors.js +14 -0
- package/lib/module/components/UserInput/generateColors.js.map +1 -0
- package/lib/module/constants/breakPoints.js +11 -0
- package/lib/module/constants/breakPoints.js.map +1 -0
- package/lib/module/constants/dialogSizes.js +11 -0
- package/lib/module/constants/dialogSizes.js.map +1 -0
- package/lib/module/constants/index.js +6 -0
- package/lib/module/constants/index.js.map +1 -0
- package/lib/module/constants/theme.js +17 -0
- package/lib/module/constants/theme.js.map +1 -0
- package/lib/module/constants/typographySizes.js +13 -0
- package/lib/module/constants/typographySizes.js.map +1 -0
- package/lib/module/helpers/CalculateGridSize.js +22 -0
- package/lib/module/helpers/CalculateGridSize.js.map +1 -0
- package/lib/module/helpers/DeviceSizeCategory.js +36 -0
- package/lib/module/helpers/DeviceSizeCategory.js.map +1 -0
- package/lib/module/helpers/LightenColorShades.js +10 -0
- package/lib/module/helpers/LightenColorShades.js.map +1 -0
- package/lib/module/helpers/ResponsiveCalculations.js +68 -0
- package/lib/module/helpers/ResponsiveCalculations.js.map +1 -0
- package/lib/module/helpers/index.js +5 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/hooks/index.js +7 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useColorScheme.js +13 -0
- package/lib/module/hooks/useColorScheme.js.map +1 -0
- package/lib/module/hooks/useConditionalWindowDimension.js +11 -0
- package/lib/module/hooks/useConditionalWindowDimension.js.map +1 -0
- package/lib/module/hooks/useResponsive.js +7 -0
- package/lib/module/hooks/useResponsive.js.map +1 -0
- package/lib/module/hooks/useTheme.js +13 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/index.js +34 -0
- package/lib/module/index.js.map +2 -0
- package/lib/module/themes/DarkTheme.js +34 -0
- package/lib/module/themes/DarkTheme.js.map +1 -0
- package/lib/module/themes/LightTheme.js +92 -0
- package/lib/module/themes/LightTheme.js.map +1 -0
- package/lib/module/themes/createTheme.js +25 -0
- package/lib/module/themes/createTheme.js.map +1 -0
- package/lib/module/themes/index.js +6 -0
- package/lib/module/themes/index.js.map +1 -0
- package/lib/module/types/avatar.type.js +4 -0
- package/lib/module/types/avatar.type.js.map +1 -0
- package/lib/module/types/button.type.js +4 -0
- package/lib/module/types/button.type.js.map +1 -0
- package/lib/module/types/checkbox.type.js +4 -0
- package/lib/module/types/checkbox.type.js.map +1 -0
- package/lib/module/types/chip.type.js +4 -0
- package/lib/module/types/chip.type.js.map +1 -0
- package/lib/module/types/common.type.js +4 -0
- package/lib/module/types/common.type.js.map +1 -0
- package/lib/module/types/dialog.type.js +4 -0
- package/lib/module/types/dialog.type.js.map +1 -0
- package/lib/module/types/grid.type.js +4 -0
- package/lib/module/types/grid.type.js.map +1 -0
- package/lib/module/types/index.js +15 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/menu.type.js +4 -0
- package/lib/module/types/menu.type.js.map +1 -0
- package/lib/module/types/stack.type.js +4 -0
- package/lib/module/types/stack.type.js.map +1 -0
- package/lib/module/types/styledComponents.type.js +4 -0
- package/lib/module/types/styledComponents.type.js.map +1 -0
- package/lib/module/types/switch.type.js +4 -0
- package/lib/module/types/switch.type.js.map +1 -0
- package/lib/module/types/userInput.type.js +4 -0
- package/lib/module/types/userInput.type.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/assets/svg/Check.d.ts +6 -0
- package/lib/typescript/commonjs/src/assets/svg/Check.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/assets/svg/X.d.ts +6 -0
- package/lib/typescript/commonjs/src/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/assets/svg/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/assets/svg/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Avatar/AvatarImage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Avatar/AvatarText.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Avatar/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Button/Button.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Button/Button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts +16 -0
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/CheckBox/CheckBox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Chip/Chip.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Chip/utils.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/Chip/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogBody.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogDescription.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogFoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/Dialog/DialogHead.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/Divider/Divider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Grid/Grid.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Header/Header.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/Header/Header.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/Icon/Icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/IconButton/IconButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Link/Link.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/Link/Link.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Menu/Menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Menu/MenuItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Menu/MenuItemLabel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Menu/calculations.d.ts +18 -0
- package/lib/typescript/commonjs/src/components/Menu/calculations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Menu/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/Portal/Portal.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Portal/PortalContext.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/Portal/PortalContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Portal/PortalProvider.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/Portal/PortalProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/Progress/Progress.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts +32 -0
- package/lib/typescript/commonjs/src/components/Provider/NativeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Slider/Slider.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/Slider/Slider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Stack/HStack.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Stack/VStack.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Stack/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/Stack/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledText.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/StyledComponents/StyledView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/StyledComponents/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/StyledComponents/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Surface/Surface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Switch/Switch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts +38 -0
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts +30 -0
- package/lib/typescript/commonjs/src/components/UserInput/UserInputV2.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UserInput/generateColors.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/UserInput/generateColors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/breakPoints.d.ts +11 -0
- package/lib/typescript/commonjs/src/constants/breakPoints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/dialogSizes.d.ts +4 -0
- package/lib/typescript/commonjs/src/constants/dialogSizes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/theme.d.ts +17 -0
- package/lib/typescript/commonjs/src/constants/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/typographySizes.d.ts +13 -0
- package/lib/typescript/commonjs/src/constants/typographySizes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/CalculateGridSize.d.ts +3 -0
- package/lib/typescript/commonjs/src/helpers/CalculateGridSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/DeviceSizeCategory.d.ts +7 -0
- package/lib/typescript/commonjs/src/helpers/DeviceSizeCategory.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts +3 -0
- package/lib/typescript/commonjs/src/helpers/LightenColorShades.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts +6 -0
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useColorScheme.d.ts +3 -0
- package/lib/typescript/commonjs/src/hooks/useColorScheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useConditionalWindowDimension.d.ts +6 -0
- package/lib/typescript/commonjs/src/hooks/useConditionalWindowDimension.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts +3 -0
- package/lib/typescript/commonjs/src/hooks/useResponsive.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useTheme.d.ts +5 -0
- package/lib/typescript/commonjs/src/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +48 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts +4 -0
- package/lib/typescript/commonjs/src/themes/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/themes/LightTheme.d.ts +4 -0
- package/lib/typescript/commonjs/src/themes/LightTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/themes/createTheme.d.ts +1 -0
- package/lib/typescript/commonjs/src/themes/createTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/themes/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/themes/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/avatar.type.d.ts +34 -0
- package/lib/typescript/commonjs/src/types/avatar.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/button.type.d.ts +54 -0
- package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/checkbox.type.d.ts +41 -0
- package/lib/typescript/commonjs/src/types/checkbox.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/chip.type.d.ts +38 -0
- package/lib/typescript/commonjs/src/types/chip.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/common.type.d.ts +47 -0
- package/lib/typescript/commonjs/src/types/common.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/dialog.type.d.ts +66 -0
- package/lib/typescript/commonjs/src/types/dialog.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/grid.type.d.ts +58 -0
- package/lib/typescript/commonjs/src/types/grid.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/menu.type.d.ts +90 -0
- package/lib/typescript/commonjs/src/types/menu.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/stack.type.d.ts +46 -0
- package/lib/typescript/commonjs/src/types/stack.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts +91 -0
- package/lib/typescript/commonjs/src/types/styledComponents.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/switch.type.d.ts +33 -0
- package/lib/typescript/commonjs/src/types/switch.type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts +74 -0
- package/lib/typescript/commonjs/src/types/userInput.type.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/assets/svg/Check.d.ts +6 -0
- package/lib/typescript/module/src/assets/svg/Check.d.ts.map +1 -0
- package/lib/typescript/module/src/assets/svg/X.d.ts +6 -0
- package/lib/typescript/module/src/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/module/src/assets/svg/index.d.ts +3 -0
- package/lib/typescript/module/src/assets/svg/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts +6 -0
- package/lib/typescript/module/src/components/Avatar/AvatarImage.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts +6 -0
- package/lib/typescript/module/src/components/Avatar/AvatarText.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Avatar/index.d.ts +8 -0
- package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Button/Button.d.ts +6 -0
- package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Button/utils.d.ts +16 -0
- package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -0
- package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts +6 -0
- package/lib/typescript/module/src/components/CheckBox/CheckBox.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Chip/Chip.d.ts +6 -0
- package/lib/typescript/module/src/components/Chip/Chip.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Chip/utils.d.ts +14 -0
- package/lib/typescript/module/src/components/Chip/utils.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/Dialog.d.ts +6 -0
- package/lib/typescript/module/src/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts +9 -0
- package/lib/typescript/module/src/components/Dialog/DialogBody.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts +6 -0
- package/lib/typescript/module/src/components/Dialog/DialogDescription.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts +9 -0
- package/lib/typescript/module/src/components/Dialog/DialogFoot.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts +9 -0
- package/lib/typescript/module/src/components/Dialog/DialogHead.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/index.d.ts +11 -0
- package/lib/typescript/module/src/components/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Divider/Divider.d.ts +11 -0
- package/lib/typescript/module/src/components/Divider/Divider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Grid/Grid.d.ts +6 -0
- package/lib/typescript/module/src/components/Grid/Grid.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Header/Header.d.ts +15 -0
- package/lib/typescript/module/src/components/Header/Header.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Icon/Icon.d.ts +9 -0
- package/lib/typescript/module/src/components/Icon/Icon.d.ts.map +1 -0
- package/lib/typescript/module/src/components/IconButton/IconButton.d.ts +11 -0
- package/lib/typescript/module/src/components/IconButton/IconButton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Link/Link.d.ts +8 -0
- package/lib/typescript/module/src/components/Link/Link.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Menu/Menu.d.ts +6 -0
- package/lib/typescript/module/src/components/Menu/Menu.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Menu/MenuItem.d.ts +6 -0
- package/lib/typescript/module/src/components/Menu/MenuItem.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts +6 -0
- package/lib/typescript/module/src/components/Menu/MenuItemLabel.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Menu/calculations.d.ts +18 -0
- package/lib/typescript/module/src/components/Menu/calculations.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Menu/index.d.ts +7 -0
- package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Portal/Portal.d.ts +8 -0
- package/lib/typescript/module/src/components/Portal/Portal.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Portal/PortalContext.d.ts +11 -0
- package/lib/typescript/module/src/components/Portal/PortalContext.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Portal/PortalProvider.d.ts +7 -0
- package/lib/typescript/module/src/components/Portal/PortalProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Progress/Progress.d.ts +17 -0
- package/lib/typescript/module/src/components/Progress/Progress.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts +32 -0
- package/lib/typescript/module/src/components/Provider/NativeProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Slider/Slider.d.ts +11 -0
- package/lib/typescript/module/src/components/Slider/Slider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Stack/HStack.d.ts +6 -0
- package/lib/typescript/module/src/components/Stack/HStack.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Stack/VStack.d.ts +6 -0
- package/lib/typescript/module/src/components/Stack/VStack.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Stack/index.d.ts +8 -0
- package/lib/typescript/module/src/components/Stack/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts +6 -0
- package/lib/typescript/module/src/components/StyledComponents/StyledText.d.ts.map +1 -0
- package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts +6 -0
- package/lib/typescript/module/src/components/StyledComponents/StyledView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/StyledComponents/index.d.ts +5 -0
- package/lib/typescript/module/src/components/StyledComponents/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Surface/Surface.d.ts +6 -0
- package/lib/typescript/module/src/components/Surface/Surface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Switch/Switch.d.ts +6 -0
- package/lib/typescript/module/src/components/Switch/Switch.d.ts.map +1 -0
- package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts +11 -0
- package/lib/typescript/module/src/components/TouchableRipple/TouchableRipple.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts +38 -0
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts +30 -0
- package/lib/typescript/module/src/components/UserInput/UserInputV2.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UserInput/generateColors.d.ts +8 -0
- package/lib/typescript/module/src/components/UserInput/generateColors.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/breakPoints.d.ts +11 -0
- package/lib/typescript/module/src/constants/breakPoints.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/dialogSizes.d.ts +4 -0
- package/lib/typescript/module/src/constants/dialogSizes.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/index.d.ts +4 -0
- package/lib/typescript/module/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/theme.d.ts +17 -0
- package/lib/typescript/module/src/constants/theme.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/typographySizes.d.ts +13 -0
- package/lib/typescript/module/src/constants/typographySizes.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/CalculateGridSize.d.ts +3 -0
- package/lib/typescript/module/src/helpers/CalculateGridSize.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/DeviceSizeCategory.d.ts +7 -0
- package/lib/typescript/module/src/helpers/DeviceSizeCategory.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/LightenColorShades.d.ts +3 -0
- package/lib/typescript/module/src/helpers/LightenColorShades.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts +6 -0
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/index.d.ts +3 -0
- package/lib/typescript/module/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/index.d.ts +5 -0
- package/lib/typescript/module/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useColorScheme.d.ts +3 -0
- package/lib/typescript/module/src/hooks/useColorScheme.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useConditionalWindowDimension.d.ts +6 -0
- package/lib/typescript/module/src/hooks/useConditionalWindowDimension.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useResponsive.d.ts +3 -0
- package/lib/typescript/module/src/hooks/useResponsive.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useTheme.d.ts +5 -0
- package/lib/typescript/module/src/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +48 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/themes/DarkTheme.d.ts +4 -0
- package/lib/typescript/module/src/themes/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/themes/LightTheme.d.ts +4 -0
- package/lib/typescript/module/src/themes/LightTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/themes/createTheme.d.ts +1 -0
- package/lib/typescript/module/src/themes/createTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/themes/index.d.ts +3 -0
- package/lib/typescript/module/src/themes/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/avatar.type.d.ts +34 -0
- package/lib/typescript/module/src/types/avatar.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/button.type.d.ts +54 -0
- package/lib/typescript/module/src/types/button.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/checkbox.type.d.ts +41 -0
- package/lib/typescript/module/src/types/checkbox.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/chip.type.d.ts +38 -0
- package/lib/typescript/module/src/types/chip.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/common.type.d.ts +47 -0
- package/lib/typescript/module/src/types/common.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/dialog.type.d.ts +66 -0
- package/lib/typescript/module/src/types/dialog.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/grid.type.d.ts +58 -0
- package/lib/typescript/module/src/types/grid.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/index.d.ts +13 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/menu.type.d.ts +90 -0
- package/lib/typescript/module/src/types/menu.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/stack.type.d.ts +46 -0
- package/lib/typescript/module/src/types/stack.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/styledComponents.type.d.ts +91 -0
- package/lib/typescript/module/src/types/styledComponents.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/switch.type.d.ts +33 -0
- package/lib/typescript/module/src/types/switch.type.d.ts.map +1 -0
- package/lib/typescript/module/src/types/userInput.type.d.ts +74 -0
- package/lib/typescript/module/src/types/userInput.type.d.ts.map +1 -0
- package/package.json +197 -0
- package/src/assets/svg/Check.tsx +17 -0
- package/src/assets/svg/X.tsx +16 -0
- package/src/assets/svg/index.ts +2 -0
- package/src/components/Avatar/AvatarImage.tsx +39 -0
- package/src/components/Avatar/AvatarText.tsx +35 -0
- package/src/components/Avatar/index.ts +9 -0
- package/src/components/Button/Button.tsx +153 -0
- package/src/components/Button/utils.ts +142 -0
- package/src/components/CheckBox/CheckBox.tsx +102 -0
- package/src/components/Chip/Chip.tsx +89 -0
- package/src/components/Chip/utils.ts +96 -0
- package/src/components/Dialog/Dialog.tsx +116 -0
- package/src/components/Dialog/DialogBody.tsx +34 -0
- package/src/components/Dialog/DialogDescription.tsx +28 -0
- package/src/components/Dialog/DialogFoot.tsx +35 -0
- package/src/components/Dialog/DialogHead.tsx +51 -0
- package/src/components/Dialog/index.ts +11 -0
- package/src/components/Divider/Divider.tsx +35 -0
- package/src/components/Grid/Grid.tsx +61 -0
- package/src/components/Header/Header.tsx +81 -0
- package/src/components/Icon/Icon.tsx +28 -0
- package/src/components/IconButton/IconButton.tsx +36 -0
- package/src/components/Link/Link.tsx +31 -0
- package/src/components/Menu/Menu.tsx +139 -0
- package/src/components/Menu/MenuItem.tsx +36 -0
- package/src/components/Menu/MenuItemLabel.tsx +27 -0
- package/src/components/Menu/calculations.ts +34 -0
- package/src/components/Menu/index.ts +8 -0
- package/src/components/Portal/Portal.tsx +19 -0
- package/src/components/Portal/PortalContext.tsx +10 -0
- package/src/components/Portal/PortalProvider.tsx +37 -0
- package/src/components/Progress/Progress.tsx +69 -0
- package/src/components/Provider/NativeProvider.tsx +58 -0
- package/src/components/Slider/Slider.tsx +45 -0
- package/src/components/Stack/HStack.tsx +38 -0
- package/src/components/Stack/VStack.tsx +31 -0
- package/src/components/Stack/index.ts +9 -0
- package/src/components/StyledComponents/StyledText.tsx +44 -0
- package/src/components/StyledComponents/StyledView.tsx +42 -0
- package/src/components/StyledComponents/index.tsx +6 -0
- package/src/components/Surface/Surface.tsx +38 -0
- package/src/components/Switch/Switch.tsx +35 -0
- package/src/components/TouchableRipple/TouchableRipple.tsx +92 -0
- package/src/components/UserInput/UserInput.tsx +124 -0
- package/src/components/UserInput/UserInputV2.tsx +132 -0
- package/src/components/UserInput/generateColors.ts +14 -0
- package/src/constants/breakPoints.ts +18 -0
- package/src/constants/dialogSizes.ts +12 -0
- package/src/constants/index.ts +3 -0
- package/src/constants/theme.ts +33 -0
- package/src/constants/typographySizes.ts +22 -0
- package/src/helpers/CalculateGridSize.ts +26 -0
- package/src/helpers/DeviceSizeCategory.ts +22 -0
- package/src/helpers/LightenColorShades.ts +7 -0
- package/src/helpers/ResponsiveCalculations.ts +78 -0
- package/src/helpers/index.ts +2 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useColorScheme.tsx +12 -0
- package/src/hooks/useConditionalWindowDimension.tsx +7 -0
- package/src/hooks/useResponsive.tsx +6 -0
- package/src/hooks/useTheme.tsx +13 -0
- package/src/index.ts +52 -0
- package/src/index.tsx +3 -0
- package/src/themes/DarkTheme.ts +39 -0
- package/src/themes/LightTheme.ts +97 -0
- package/src/themes/createTheme.ts +23 -0
- package/src/themes/index.ts +4 -0
- package/src/types/avatar.type.ts +43 -0
- package/src/types/button.type.ts +76 -0
- package/src/types/checkbox.type.ts +57 -0
- package/src/types/chip.type.ts +55 -0
- package/src/types/common.type.ts +50 -0
- package/src/types/dialog.type.ts +91 -0
- package/src/types/grid.type.ts +70 -0
- package/src/types/index.ts +12 -0
- package/src/types/menu.type.ts +110 -0
- package/src/types/stack.type.ts +55 -0
- package/src/types/styledComponents.type.ts +111 -0
- package/src/types/switch.type.ts +39 -0
- package/src/types/userInput.type.ts +95 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import Color from "color";
|
|
2
|
+
import { dialogSizes, typographySizes } from "../constants";
|
|
3
|
+
import type { ThemeTypes } from "../types";
|
|
4
|
+
|
|
5
|
+
// const base = Color(theme.colors.primary);
|
|
6
|
+
|
|
7
|
+
// const createTheme = (theme: { primary: string; secondary: string }) => {
|
|
8
|
+
// return {
|
|
9
|
+
// isDark: false,
|
|
10
|
+
// colors: {
|
|
11
|
+
// ...theme,
|
|
12
|
+
// outline: '#8080805e',
|
|
13
|
+
// disable: Color(theme.primary).mix(Color("white"), 0.4).hex(),
|
|
14
|
+
|
|
15
|
+
// textPrimary: '#000000',
|
|
16
|
+
// textSecondary: '#ffffff',
|
|
17
|
+
// textTertiary: 'gray',
|
|
18
|
+
// textDisable: '#9E9E9E',
|
|
19
|
+
// cursorColor: '#000000',
|
|
20
|
+
// placeholderColor: '#808080',
|
|
21
|
+
|
|
22
|
+
// iconPrimary: '#000000',
|
|
23
|
+
// iconSecondary: '#E0E0E0',
|
|
24
|
+
// iconDisable: '#9E9E9E',
|
|
25
|
+
|
|
26
|
+
// dividerColor: "#DCDBDB",
|
|
27
|
+
|
|
28
|
+
// switchColor: '#353935',
|
|
29
|
+
// error: '#ED2939',
|
|
30
|
+
// },
|
|
31
|
+
// typography: {
|
|
32
|
+
// variantSizes: typographySizes
|
|
33
|
+
// },
|
|
34
|
+
// // screenBreakpoints: BreakPoints,
|
|
35
|
+
// dialogSizes
|
|
36
|
+
// }
|
|
37
|
+
// }
|
|
38
|
+
|
|
39
|
+
// const LightTheme = createTheme({
|
|
40
|
+
// primary: '#000000',
|
|
41
|
+
// secondary: '#ffffff',
|
|
42
|
+
// textPrimary: '#000000',
|
|
43
|
+
|
|
44
|
+
// textSecondary: '#ffffff',
|
|
45
|
+
// textTertiary: 'gray',
|
|
46
|
+
// textDisable: '#9E9E9E',
|
|
47
|
+
// cursorColor: '#000000',
|
|
48
|
+
// placeholderColor: '#808080',
|
|
49
|
+
|
|
50
|
+
// iconPrimary: '#000000',
|
|
51
|
+
// iconSecondary: '#E0E0E0',
|
|
52
|
+
// iconDisable: '#9E9E9E',
|
|
53
|
+
|
|
54
|
+
// dividerColor: "#DCDBDB",
|
|
55
|
+
|
|
56
|
+
// switchColor: '#353935',
|
|
57
|
+
// error: '#ED2939',
|
|
58
|
+
// })
|
|
59
|
+
console.log(Color('rgba(0, 0, 0, 1)').alpha(0.12).rgb().string())
|
|
60
|
+
const LightTheme: ThemeTypes = {
|
|
61
|
+
isDark: false,
|
|
62
|
+
colors: {
|
|
63
|
+
primary: '#000000',
|
|
64
|
+
secondary: '#ffffff',
|
|
65
|
+
// tertiary: '#8080805e',
|
|
66
|
+
// outline: '#8080805e',
|
|
67
|
+
outline: '#cbd5e1',
|
|
68
|
+
// disable: '#E0E0E0',
|
|
69
|
+
disable: 'rgba(100, 100, 100, 0.15)',
|
|
70
|
+
|
|
71
|
+
textPrimary: '#000000',
|
|
72
|
+
textSecondary: '#ffffff',
|
|
73
|
+
textTertiary: '#808080',
|
|
74
|
+
textDisable: '#9E9E9E',
|
|
75
|
+
cursorColor: '#000000',
|
|
76
|
+
// placeholderColor: '#808080',
|
|
77
|
+
placeholderColor: '#cbd5e1',
|
|
78
|
+
|
|
79
|
+
iconPrimary: '#000000',
|
|
80
|
+
iconSecondary: '#E0E0E0',
|
|
81
|
+
iconDisable: '#9E9E9E',
|
|
82
|
+
|
|
83
|
+
dividerColor: "#DCDBDB",
|
|
84
|
+
|
|
85
|
+
inputBgColor: '#f9fbfd',
|
|
86
|
+
chipBgColor: '#f9fbfd',
|
|
87
|
+
|
|
88
|
+
switchColor: '#353935',
|
|
89
|
+
error: '#ED2939',
|
|
90
|
+
},
|
|
91
|
+
typography: {
|
|
92
|
+
variantSizes: typographySizes
|
|
93
|
+
},
|
|
94
|
+
dialogSizes
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export default LightTheme;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// import Color from "color";
|
|
2
|
+
// import { dialogSizes, typographySizes } from "../constants";
|
|
3
|
+
// import type { ThemeColorTypes, ThemeTypes } from "./ThemeTypes";
|
|
4
|
+
|
|
5
|
+
// const createTheme = (theme: ThemeColorTypes) => {
|
|
6
|
+
// console.log(theme)
|
|
7
|
+
// const primaryColor = Color(theme.primary)
|
|
8
|
+
// const isPrimaryDark = primaryColor.isDark();
|
|
9
|
+
// return {
|
|
10
|
+
// isDark: false,
|
|
11
|
+
// colors: {
|
|
12
|
+
// ...theme,
|
|
13
|
+
// outline: '#8080805e',
|
|
14
|
+
// disable: Color('rgba(0, 0, 0, 1)').alpha(0.12).rgb().string(),
|
|
15
|
+
|
|
16
|
+
// },
|
|
17
|
+
// typography: {
|
|
18
|
+
// variantSizes: typographySizes
|
|
19
|
+
// },
|
|
20
|
+
// dialogSizes
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
23
|
+
// export default createTheme;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ImageProps, StyleProp, ViewStyle, ImageStyle, TextStyle } from "react-native";
|
|
2
|
+
|
|
3
|
+
/** Props for the AvatarImage component */
|
|
4
|
+
export type AvatarImageProps = {
|
|
5
|
+
/** Size of the avatar (width & height) */
|
|
6
|
+
size?: number;
|
|
7
|
+
|
|
8
|
+
/** Image source (can be a remote URI or a local asset reference) */
|
|
9
|
+
source?: { uri?: string } | number;
|
|
10
|
+
|
|
11
|
+
/** Background color of the avatar */
|
|
12
|
+
bg?: string;
|
|
13
|
+
|
|
14
|
+
/** Defines how the image should be resized to fit its container */
|
|
15
|
+
resizeMode?: NonNullable<ImageProps['resizeMode']>;
|
|
16
|
+
|
|
17
|
+
/** Custom styles for the avatar container */
|
|
18
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
|
|
20
|
+
/** Custom styles for the image inside the avatar */
|
|
21
|
+
imageStyle?: StyleProp<ImageStyle>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** Props for the AvatarText component */
|
|
25
|
+
export type AvatarTextProps = {
|
|
26
|
+
/** Size of the avatar (width & height) */
|
|
27
|
+
size?: number;
|
|
28
|
+
|
|
29
|
+
/** Font size of the text inside the avatar */
|
|
30
|
+
fs?: number;
|
|
31
|
+
|
|
32
|
+
/** Text to be displayed inside the avatar (e.g., initials) */
|
|
33
|
+
text?: string;
|
|
34
|
+
|
|
35
|
+
/** Background color of the avatar */
|
|
36
|
+
bg?: string;
|
|
37
|
+
|
|
38
|
+
/** Custom styles for the avatar container */
|
|
39
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
40
|
+
|
|
41
|
+
/** Custom styles for the text inside the avatar */
|
|
42
|
+
textStyle?: StyleProp<TextStyle>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
import type { ButtonVariant, TypographyVariant } from "./common.type";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @see https://rn-nativeflow-docs.onrender.com/docs/components/button
|
|
6
|
+
*/
|
|
7
|
+
export type ButtonProps = PressableProps & {
|
|
8
|
+
/** Specifies the button style variant (e.g., 'contained', 'outlined') */
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
|
|
11
|
+
/** Determines button shape - 'round' or 'flat' */
|
|
12
|
+
type?: 'round' | 'flat';
|
|
13
|
+
|
|
14
|
+
/** Whether the button should expand to full width */
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
|
|
17
|
+
/** Horizontal padding inside the button */
|
|
18
|
+
paddingH?: number;
|
|
19
|
+
|
|
20
|
+
/** Vertical padding inside the button */
|
|
21
|
+
paddingV?: number;
|
|
22
|
+
|
|
23
|
+
/** Custom background color */
|
|
24
|
+
bg?: string;
|
|
25
|
+
|
|
26
|
+
/** Border radius of the button */
|
|
27
|
+
br?: number;
|
|
28
|
+
|
|
29
|
+
/** Border width (for outlined buttons) */
|
|
30
|
+
stroke?: number;
|
|
31
|
+
|
|
32
|
+
/** Border color */
|
|
33
|
+
strokeColor?: string;
|
|
34
|
+
|
|
35
|
+
/** Text color */
|
|
36
|
+
titleColor?: string;
|
|
37
|
+
|
|
38
|
+
/** Button text */
|
|
39
|
+
title?: string;
|
|
40
|
+
|
|
41
|
+
/** Font size of the button text */
|
|
42
|
+
titleFS?: number;
|
|
43
|
+
|
|
44
|
+
/** Typography variant (h1, h2, h3, etc.) */
|
|
45
|
+
titleVariant?: TypographyVariant;
|
|
46
|
+
|
|
47
|
+
/** Font family for the button text */
|
|
48
|
+
titleFF?: string;
|
|
49
|
+
|
|
50
|
+
/** Custom size (for round buttons) */
|
|
51
|
+
size?: number;
|
|
52
|
+
|
|
53
|
+
/** Ripple effect color */
|
|
54
|
+
rippleColor?: string;
|
|
55
|
+
|
|
56
|
+
/** Icon element to be displayed inside the button */
|
|
57
|
+
renderIcon?: JSX.Element;
|
|
58
|
+
|
|
59
|
+
/** Left-side icon */
|
|
60
|
+
renderLeftIcon?: JSX.Element;
|
|
61
|
+
|
|
62
|
+
/** Right-side icon */
|
|
63
|
+
renderRightIcon?: JSX.Element;
|
|
64
|
+
|
|
65
|
+
/** Disables the button when `true` */
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
|
|
68
|
+
/** Custom styles for the button container */
|
|
69
|
+
buttonContainerStyle?: StyleProp<ViewStyle>;
|
|
70
|
+
|
|
71
|
+
/** Custom styles for the text */
|
|
72
|
+
textStyle?: StyleProp<TextStyle>;
|
|
73
|
+
|
|
74
|
+
/** Function to execute when button is pressed */
|
|
75
|
+
onPress?: () => void;
|
|
76
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
import type { TypographyVariant } from "./common.type";
|
|
3
|
+
|
|
4
|
+
export type CheckBoxProps = {
|
|
5
|
+
/** Defines the shape of the checkbox: 'square' or 'round' */
|
|
6
|
+
variant?: 'square' | 'round';
|
|
7
|
+
|
|
8
|
+
/** Current checked state of the checkbox (controlled component) */
|
|
9
|
+
isChecked?: boolean;
|
|
10
|
+
|
|
11
|
+
/** Default checked state (for uncontrolled component) */
|
|
12
|
+
defaultValue?: boolean;
|
|
13
|
+
|
|
14
|
+
/** Background color when the checkbox is active (checked) */
|
|
15
|
+
activeBgColor?: string;
|
|
16
|
+
|
|
17
|
+
/** Background color when the checkbox is inactive (unchecked) */
|
|
18
|
+
inActiveBgColor?: string;
|
|
19
|
+
|
|
20
|
+
/** Color of the checkmark icon */
|
|
21
|
+
iconColor?: string;
|
|
22
|
+
|
|
23
|
+
/** If true, disables the built-in state management (for controlled usage) */
|
|
24
|
+
disableBuiltInState?: boolean;
|
|
25
|
+
|
|
26
|
+
/** Disables the checkbox, preventing user interaction */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
|
|
29
|
+
/** Text label displayed next to the checkbox */
|
|
30
|
+
text?: string;
|
|
31
|
+
|
|
32
|
+
/** Font size of the text label */
|
|
33
|
+
fs?: number;
|
|
34
|
+
|
|
35
|
+
/** Typography variant for text styling */
|
|
36
|
+
textVariant?: TypographyVariant;
|
|
37
|
+
|
|
38
|
+
/** Size of the checkbox (width & height) */
|
|
39
|
+
size?: number;
|
|
40
|
+
|
|
41
|
+
/** Size of the checkmark icon inside the checkbox */
|
|
42
|
+
iconSize?: number;
|
|
43
|
+
|
|
44
|
+
/** Custom styles for the checkbox container */
|
|
45
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
46
|
+
|
|
47
|
+
/** Custom styles for the checkbox itself */
|
|
48
|
+
checkBoxStyle?: StyleProp<ViewStyle>;
|
|
49
|
+
|
|
50
|
+
/** Custom styles for the text label */
|
|
51
|
+
textStyle?: StyleProp<TextStyle>;
|
|
52
|
+
|
|
53
|
+
/** Callback function triggered when the checkbox is pressed
|
|
54
|
+
* @param e - The new checked state (true/false)
|
|
55
|
+
*/
|
|
56
|
+
onPress?: (e: boolean) => void;
|
|
57
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
|
|
3
|
+
export type ChipProps = PressableProps & {
|
|
4
|
+
|
|
5
|
+
/** Text displayed inside the chip */
|
|
6
|
+
title?: string;
|
|
7
|
+
|
|
8
|
+
/** Background color of the chip */
|
|
9
|
+
bg?: string;
|
|
10
|
+
|
|
11
|
+
/** Color of the text inside the chip */
|
|
12
|
+
titleColor?: string;
|
|
13
|
+
|
|
14
|
+
/** Font size of the title */
|
|
15
|
+
fs?: number;
|
|
16
|
+
|
|
17
|
+
/** Border radius of the chip */
|
|
18
|
+
br?: number;
|
|
19
|
+
|
|
20
|
+
/** Spacing between elements inside the chip */
|
|
21
|
+
gap?: number;
|
|
22
|
+
|
|
23
|
+
/** Vertical padding inside the chip */
|
|
24
|
+
paddingV?: number;
|
|
25
|
+
|
|
26
|
+
/** Horizontal padding inside the chip */
|
|
27
|
+
paddingH?: number;
|
|
28
|
+
|
|
29
|
+
/** Border width of the chip */
|
|
30
|
+
stroke?: number;
|
|
31
|
+
|
|
32
|
+
/** General color for the chip (could be used for text, border, or background) */
|
|
33
|
+
color?: string;
|
|
34
|
+
|
|
35
|
+
/** Ripple effect color when pressed */
|
|
36
|
+
rippleColor?: string;
|
|
37
|
+
|
|
38
|
+
/** Disables the chip, preventing interaction */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
|
|
41
|
+
/** Color of the chip's border */
|
|
42
|
+
strokeColor?: string;
|
|
43
|
+
|
|
44
|
+
/** Icon to render on the left side of the chip */
|
|
45
|
+
renderLeftIcon?: JSX.Element;
|
|
46
|
+
|
|
47
|
+
/** Icon to render on the right side of the chip */
|
|
48
|
+
renderRightIcon?: JSX.Element;
|
|
49
|
+
|
|
50
|
+
/** Custom styles for the chip container */
|
|
51
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
52
|
+
|
|
53
|
+
/** Custom styles for the title text */
|
|
54
|
+
textStyle?: StyleProp<TextStyle>;
|
|
55
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { typographySizeTypes } from "../constants/typographySizes";
|
|
2
|
+
|
|
3
|
+
export type UserInputVariant = 'outlined' | 'standard';
|
|
4
|
+
export type DialogVariant = 'classic' | 'default';
|
|
5
|
+
export type ButtonVariant = 'outlined' | 'contained';
|
|
6
|
+
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7';
|
|
7
|
+
export type themeModeTypes = 'light' | 'dark';
|
|
8
|
+
|
|
9
|
+
export type dialogSizesTypes = {
|
|
10
|
+
xs: number,
|
|
11
|
+
sm: number,
|
|
12
|
+
md: number,
|
|
13
|
+
lg: number,
|
|
14
|
+
full: number,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type ThemeColorTypes = {
|
|
18
|
+
primary: string;
|
|
19
|
+
secondary: string;
|
|
20
|
+
outline: string;
|
|
21
|
+
disable: string;
|
|
22
|
+
textPrimary: string;
|
|
23
|
+
textSecondary: string;
|
|
24
|
+
textTertiary: string;
|
|
25
|
+
textDisable: string;
|
|
26
|
+
cursorColor: string;
|
|
27
|
+
placeholderColor: string;
|
|
28
|
+
iconPrimary: string;
|
|
29
|
+
iconSecondary: string;
|
|
30
|
+
iconDisable: string;
|
|
31
|
+
dividerColor: string;
|
|
32
|
+
switchColor: string;
|
|
33
|
+
inputBgColor: string;
|
|
34
|
+
chipBgColor: string;
|
|
35
|
+
error: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ThemeTypes = {
|
|
39
|
+
isDark: boolean,
|
|
40
|
+
colors: ThemeColorTypes;
|
|
41
|
+
typography: {
|
|
42
|
+
variantSizes: typographySizeTypes;
|
|
43
|
+
};
|
|
44
|
+
dialogSizes: dialogSizesTypes;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type Theme = {
|
|
48
|
+
light: ThemeTypes;
|
|
49
|
+
dark: ThemeTypes;
|
|
50
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
import type { DialogVariant, TypographyVariant } from "./common.type";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export type DialogRefProps = {
|
|
7
|
+
open: () => void;
|
|
8
|
+
close: () => void;
|
|
9
|
+
}
|
|
10
|
+
export type DialogProps = {
|
|
11
|
+
/** Defines the dialog style variant */
|
|
12
|
+
variant?: DialogVariant;
|
|
13
|
+
|
|
14
|
+
/** Controls the visibility of the dialog */
|
|
15
|
+
isVisible?: boolean;
|
|
16
|
+
|
|
17
|
+
/** Defines the horizontal size of the dialog */
|
|
18
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'full';
|
|
19
|
+
|
|
20
|
+
/** If true, the dialog takes up the entire screen */
|
|
21
|
+
fullScreen?: boolean;
|
|
22
|
+
|
|
23
|
+
/** Background color of the backdrop */
|
|
24
|
+
backdropColor?: string;
|
|
25
|
+
|
|
26
|
+
/** Duration of the animation in milliseconds */
|
|
27
|
+
animationDuration?: number;
|
|
28
|
+
|
|
29
|
+
/** Callback function triggered when the dialog is closed */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
|
|
32
|
+
/** Content to be displayed inside the dialog */
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type DialogBodyProps = {
|
|
37
|
+
|
|
38
|
+
/** Enables or disables scrolling within the dialog body */
|
|
39
|
+
scrollEnable?: boolean;
|
|
40
|
+
|
|
41
|
+
/** Custom styles for the dialog body container */
|
|
42
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
43
|
+
|
|
44
|
+
/** Content to be rendered inside the dialog body */
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type DialogDescriptionProps = {
|
|
49
|
+
/** Font size for the dialog description text */
|
|
50
|
+
fs?: number;
|
|
51
|
+
|
|
52
|
+
/** Variant of the typography to be applied to the text */
|
|
53
|
+
textVariant?: TypographyVariant;
|
|
54
|
+
|
|
55
|
+
/** Style for the container wrapping the dialog description */
|
|
56
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
57
|
+
|
|
58
|
+
/** Style for the text inside the dialog description */
|
|
59
|
+
textStyle?: StyleProp<TextStyle>;
|
|
60
|
+
|
|
61
|
+
/** Content to be rendered inside the dialog description */
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type DialogFootProps = {
|
|
66
|
+
/** Custom styles for the container wrapping the dialog footer */
|
|
67
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
68
|
+
|
|
69
|
+
/** Content to be rendered inside the dialog footer */
|
|
70
|
+
children?: ReactNode;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type DialogHeadProps = {
|
|
74
|
+
/** Title text to be displayed in the dialog header */
|
|
75
|
+
title?: string;
|
|
76
|
+
|
|
77
|
+
/** Typography variant for styling the title text */
|
|
78
|
+
textVariant?: TypographyVariant;
|
|
79
|
+
|
|
80
|
+
/** Font size of the title text */
|
|
81
|
+
fs?: number;
|
|
82
|
+
|
|
83
|
+
/** Custom styles for the container wrapping the dialog header */
|
|
84
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
85
|
+
|
|
86
|
+
/** Custom styles for the title text */
|
|
87
|
+
textStyle?: StyleProp<TextStyle>;
|
|
88
|
+
|
|
89
|
+
/** Additional elements or components to be rendered inside the dialog header */
|
|
90
|
+
children?: React.ReactNode;
|
|
91
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
|
|
3
|
+
export type GridProps = ViewStyle & {
|
|
4
|
+
/**
|
|
5
|
+
* If true, the component will act as a grid container.
|
|
6
|
+
* Similar to CSS flex/grid container.
|
|
7
|
+
*/
|
|
8
|
+
container?: boolean;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* If true, the component will act as a grid item.
|
|
12
|
+
* Should be used inside a container.
|
|
13
|
+
*/
|
|
14
|
+
item?: boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines the spacing (margin) between grid items.
|
|
18
|
+
*/
|
|
19
|
+
spacing?: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Defines the horizontal spacing (paddingLeft & paddingRight).
|
|
23
|
+
*/
|
|
24
|
+
spacingH?: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Defines the vertical spacing (paddingTop & paddingBottom).
|
|
28
|
+
*/
|
|
29
|
+
spacingV?: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the number of columns inside grid.
|
|
33
|
+
*/
|
|
34
|
+
size?: number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Number of columns the grid item should take on extra-small screens (mobile phones).
|
|
38
|
+
*/
|
|
39
|
+
xs?: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Number of columns the grid item should take on small screens (tablets).
|
|
43
|
+
*/
|
|
44
|
+
sm?: number;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Number of columns the grid item should take on medium screens (small laptops).
|
|
48
|
+
*/
|
|
49
|
+
md?: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Number of columns the grid item should take on large screens (desktops).
|
|
53
|
+
*/
|
|
54
|
+
lg?: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Number of columns the grid item should take on extra-large screens (big monitors).
|
|
58
|
+
*/
|
|
59
|
+
xl?: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Custom styles for the grid container.
|
|
63
|
+
*/
|
|
64
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Children components inside the Grid.
|
|
68
|
+
*/
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './common.type';
|
|
2
|
+
export * from './button.type';
|
|
3
|
+
export * from './checkbox.type';
|
|
4
|
+
export * from './dialog.type';
|
|
5
|
+
export * from './avatar.type';
|
|
6
|
+
export * from './chip.type';
|
|
7
|
+
export * from './grid.type';
|
|
8
|
+
export * from './menu.type';
|
|
9
|
+
export * from './stack.type';
|
|
10
|
+
export * from './styledComponents.type';
|
|
11
|
+
export * from './switch.type';
|
|
12
|
+
export * from './userInput.type';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";
|
|
3
|
+
import type { TypographyVariant } from "./common.type";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export type MenuProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the placement of the menu relative to the anchor element.
|
|
9
|
+
* Options: 'top' | 'bottom'.
|
|
10
|
+
*/
|
|
11
|
+
placement?: 'top' | 'bottom';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The element that triggers the menu when interacted with.
|
|
15
|
+
*/
|
|
16
|
+
anchor?: JSX.Element;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Disables the built-in state management of the menu.
|
|
20
|
+
* If true, you must control the open state manually.
|
|
21
|
+
*/
|
|
22
|
+
disableBuiltInState?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Controls whether the menu is open.
|
|
26
|
+
* Used when `disableBuiltInState` is true.
|
|
27
|
+
*/
|
|
28
|
+
isOpen?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Callback triggered when the menu is requested to open.
|
|
32
|
+
*/
|
|
33
|
+
onRequestOpen?: () => void;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Callback triggered when the menu is requested to close.
|
|
37
|
+
*/
|
|
38
|
+
onRequestClose?: () => void;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Callback triggered when an item is selected.
|
|
42
|
+
* Receives the name of the selected item.
|
|
43
|
+
*/
|
|
44
|
+
onSelect?: (name: string | undefined) => void;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Custom styles for the menu container.
|
|
48
|
+
*/
|
|
49
|
+
style?: StyleProp<ViewStyle>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Child components to be rendered inside the menu.
|
|
53
|
+
*/
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
export type MenuItemProps = TouchableOpacityProps & {
|
|
59
|
+
/**
|
|
60
|
+
* Vertical padding inside the menu item.
|
|
61
|
+
*/
|
|
62
|
+
paddingV?: number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Horizontal padding inside the menu item.
|
|
66
|
+
*/
|
|
67
|
+
paddingH?: number;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Space between elements inside the menu item.
|
|
71
|
+
*/
|
|
72
|
+
gap?: number;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The name or identifier of the menu item.
|
|
76
|
+
*/
|
|
77
|
+
name?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Custom styles for the menu item container.
|
|
81
|
+
*/
|
|
82
|
+
style?: StyleProp<ViewStyle>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Child components to be rendered inside the menu item.
|
|
86
|
+
*/
|
|
87
|
+
children?: ReactNode;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type MenuItemLabelProps = TextStyle & {
|
|
91
|
+
/**
|
|
92
|
+
* Font size of the label text.
|
|
93
|
+
*/
|
|
94
|
+
fs?: number;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Typography variant for the label text.
|
|
98
|
+
*/
|
|
99
|
+
textVariant?: TypographyVariant;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Custom styles for the text component.
|
|
103
|
+
*/
|
|
104
|
+
style?: StyleProp<TextStyle>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Text to be displayed inside the label.
|
|
108
|
+
*/
|
|
109
|
+
children?: ReactNode;
|
|
110
|
+
};
|