@nexara/nativeflow 0.1.8 → 0.1.10
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/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.map +1 -1
- 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 +9 -4
- package/lib/commonjs/components/Button/Button.js.map +1 -1
- package/lib/commonjs/components/Button/utils.js +17 -10
- package/lib/commonjs/components/Button/utils.js.map +1 -1
- package/lib/commonjs/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/commonjs/components/Chip/Chip.js.map +1 -1
- package/lib/commonjs/components/Chip/utils.js.map +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogBody.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/commonjs/components/Dialog/DialogFoot.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/Grid/Grid.js.map +1 -1
- package/lib/commonjs/components/Icon/Icon.js.map +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js.map +1 -1
- package/lib/commonjs/components/Link/Link.js.map +1 -1
- package/lib/commonjs/components/Menu/Menu.js.map +1 -1
- package/lib/commonjs/components/Menu/MenuItem.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/Portal/PortalProvider.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/Radio/RadioGroup.js.map +1 -1
- package/lib/commonjs/components/Radio/RadioItem.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Slider/Slider.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- 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 +3 -1
- package/lib/commonjs/components/StyledComponents/StyledText.js.map +1 -1
- 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 +3 -3
- package/lib/commonjs/components/Surface/Surface.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/UserInput/UserInputV2.js.map +1 -1
- 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.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 +4 -1
- 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.map +1 -1
- package/lib/commonjs/themes/DarkTheme.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/types/grid.type.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/link.type.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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 +10 -5
- package/lib/module/components/Button/Button.js.map +1 -1
- package/lib/module/components/Button/utils.js +17 -10
- package/lib/module/components/Button/utils.js.map +1 -1
- package/lib/module/components/CheckBox/CheckBox.js.map +1 -1
- package/lib/module/components/Chip/Chip.js.map +1 -1
- package/lib/module/components/Chip/utils.js.map +1 -1
- package/lib/module/components/Dialog/Dialog.js.map +1 -1
- package/lib/module/components/Dialog/DialogBody.js.map +1 -1
- package/lib/module/components/Dialog/DialogDescription.js.map +1 -1
- package/lib/module/components/Dialog/DialogFoot.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/Grid/Grid.js.map +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.map +1 -1
- package/lib/module/components/Menu/Menu.js.map +1 -1
- package/lib/module/components/Menu/MenuItem.js.map +1 -1
- 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.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.map +1 -1
- package/lib/module/components/Radio/RadioItem.js.map +1 -1
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Slider/Slider.js.map +1 -1
- package/lib/module/components/Stack/HStack.js.map +1 -1
- 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 +3 -1
- package/lib/module/components/StyledComponents/StyledText.js.map +1 -1
- 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 +3 -3
- package/lib/module/components/Surface/Surface.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/UserInput/UserInputV2.js.map +1 -1
- 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.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 +4 -1
- 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.map +1 -1
- package/lib/module/themes/DarkTheme.js.map +1 -1
- package/lib/module/themes/LightTheme.js.map +1 -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.map +1 -1
- package/lib/module/types/grid.type.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/link.type.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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/Button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/Button/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/button.type.d.ts +2 -0
- package/lib/typescript/commonjs/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/surface.type.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/surface.type.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/Button.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/utils.d.ts +2 -1
- package/lib/typescript/module/src/components/Button/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserInput/UserInput.d.ts.map +1 -1
- package/lib/typescript/module/src/helpers/ResponsiveCalculations.d.ts.map +1 -1
- package/lib/typescript/module/src/types/button.type.d.ts +2 -0
- package/lib/typescript/module/src/types/button.type.d.ts.map +1 -1
- package/lib/typescript/module/src/types/surface.type.d.ts +1 -1
- package/lib/typescript/module/src/types/surface.type.d.ts.map +1 -1
- package/package.json +2 -2
- 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 -33
- package/src/components/Avatar/AvatarText.tsx +34 -34
- package/src/components/Avatar/index.ts +8 -8
- package/src/components/Button/Button.tsx +216 -205
- package/src/components/Button/utils.ts +152 -141
- package/src/components/CheckBox/CheckBox.tsx +118 -118
- package/src/components/Chip/Chip.tsx +82 -82
- package/src/components/Chip/utils.ts +109 -109
- package/src/components/Dialog/Dialog.tsx +124 -124
- package/src/components/Dialog/DialogBody.tsx +31 -31
- package/src/components/Dialog/DialogDescription.tsx +27 -27
- package/src/components/Dialog/DialogFoot.tsx +35 -35
- package/src/components/Dialog/DialogHead.tsx +50 -50
- package/src/components/Dialog/index.ts +10 -10
- package/src/components/Divider/Divider.tsx +22 -22
- package/src/components/Grid/Grid.tsx +61 -61
- package/src/components/Icon/Icon.tsx +31 -31
- package/src/components/IconButton/IconButton.tsx +44 -44
- package/src/components/Link/Link.tsx +38 -38
- package/src/components/Menu/Menu.tsx +142 -142
- package/src/components/Menu/MenuItem.tsx +33 -33
- package/src/components/Menu/MenuItemLabel.tsx +21 -21
- 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 -66
- package/src/components/Provider/ContextManager.tsx +8 -8
- package/src/components/Provider/NativeProvider.tsx +72 -72
- package/src/components/Radio/RadioGroup.tsx +39 -39
- package/src/components/Radio/RadioItem.tsx +72 -72
- package/src/components/Radio/index.ts +8 -8
- package/src/components/Slider/Slider.tsx +45 -45
- package/src/components/Stack/HStack.tsx +32 -32
- package/src/components/Stack/VStack.tsx +26 -26
- package/src/components/Stack/index.ts +8 -8
- package/src/components/StyledComponents/StyledText.tsx +49 -49
- package/src/components/StyledComponents/StyledView.tsx +44 -44
- package/src/components/StyledComponents/index.tsx +5 -5
- package/src/components/Surface/Surface.tsx +31 -31
- package/src/components/Switch/Switch.tsx +36 -36
- package/src/components/TouchableRipple/TouchableRipple.tsx +92 -92
- package/src/components/UserInput/UserInput.tsx +135 -135
- 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 -19
- package/src/helpers/CalculateGridSize.ts +25 -25
- package/src/helpers/DeviceSizeCategory.ts +21 -21
- package/src/helpers/ResponsiveCalculations.ts +107 -104
- 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 -52
- package/src/themes/DarkTheme.ts +177 -177
- package/src/themes/LightTheme.ts +88 -88
- package/src/themes/index.ts +3 -3
- package/src/types/avatar.type.ts +40 -40
- package/src/types/button.type.ts +79 -76
- package/src/types/checkbox.type.ts +64 -64
- package/src/types/chip.type.ts +65 -65
- package/src/types/common.type.ts +109 -109
- package/src/types/dialog.type.ts +89 -89
- package/src/types/divider.type.ts +15 -15
- package/src/types/grid.type.ts +71 -71
- package/src/types/index.ts +16 -16
- package/src/types/link.type.ts +14 -14
- package/src/types/menu.type.ts +100 -100
- package/src/types/progress.type.ts +15 -15
- package/src/types/radio.type.ts +78 -78
- package/src/types/stack.type.ts +46 -46
- package/src/types/styledComponents.type.ts +70 -70
- package/src/types/surface.type.ts +19 -19
- package/src/types/switch.type.ts +39 -39
- package/src/types/userInput.type.ts +98 -98
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAO,MAAM,OAAO,CAAC;AAMrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAO,MAAM,OAAO,CAAC;AAMrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA4K3B,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ButtonVariant, ThemeTypes } from "../../types";
|
|
2
|
-
declare const getButtonColors: ({ theme, variant, bg, titleColor, strokeColor, disabled }: {
|
|
2
|
+
declare const getButtonColors: ({ theme, variant, bg, titleColor, strokeColor, disabled, loading }: {
|
|
3
3
|
theme: ThemeTypes;
|
|
4
4
|
variant: ButtonVariant;
|
|
5
5
|
bg: string | undefined;
|
|
6
6
|
titleColor: string | undefined;
|
|
7
7
|
strokeColor: string | undefined;
|
|
8
8
|
disabled: boolean;
|
|
9
|
+
loading: boolean;
|
|
9
10
|
}) => {
|
|
10
11
|
backgroundColor: string;
|
|
11
12
|
buttonTextColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAiG7D,QAAA,MAAM,eAAe,GAAI,oEAQtB;IACC,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CACpB;;;;CAqCA,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UserInput/UserInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;
|
|
1
|
+
{"version":3,"file":"UserInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UserInput/UserInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;aA8BuB,CAAC;kBAElB,CAAA;iBACC,CAAC;;;;;;;;;;;;;;;;;qBA6Bf,CAAP;sBAIa,CAAC;aAAqC,CAAC;aACzC,CAAJ;kBAEQ,CAAJ;;6CAwCV,CAAC;AACH,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveCalculations.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/ResponsiveCalculations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponsiveCalculations.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/ResponsiveCalculations.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAG9C,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAG5C,CAAA;AAkBD,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,MAmBrD,CAAC"}
|
|
@@ -45,6 +45,8 @@ export type ButtonProps = TouchableOpacityProps & {
|
|
|
45
45
|
renderRightIcon?: JSX.Element;
|
|
46
46
|
/** Disables the button when true */
|
|
47
47
|
disabled?: boolean;
|
|
48
|
+
/** Shows loading state when true */
|
|
49
|
+
loading?: boolean;
|
|
48
50
|
/** Custom styles for the button container */
|
|
49
51
|
containerStyle?: StyleProp<ViewStyle>;
|
|
50
52
|
/** Custom styles for the title text */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,qBAAqB,GAAG;IAC9C,yEAAyE;IACzE,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,kDAAkD;IAClD,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAExB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,6DAA6D;IAC7D,EAAE,CAAC,EA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AAC,EAAE,OAAO,CAAC;IAElB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uCAAuC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAElC,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export type SurfaceProps = StyledViewProps & {
|
|
|
9
9
|
/** Border radius of the surface container */
|
|
10
10
|
br?: number;
|
|
11
11
|
/** Style variant of the surface: 'elevated' adds shadow, 'outlined' adds border */
|
|
12
|
-
variant?: 'elevated' | 'outlined';
|
|
12
|
+
variant?: 'elevated' | 'outlined' | 'default';
|
|
13
13
|
/** Child components to be rendered inside the surface */
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/surface.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG;IACzC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mFAAmF;IACnF,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"surface.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/surface.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG;IACzC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mFAAmF;IACnF,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAE9C,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAO,MAAM,OAAO,CAAC;AAMrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAO,MAAM,OAAO,CAAC;AAMrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA4K3B,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ButtonVariant, ThemeTypes } from "../../types";
|
|
2
|
-
declare const getButtonColors: ({ theme, variant, bg, titleColor, strokeColor, disabled }: {
|
|
2
|
+
declare const getButtonColors: ({ theme, variant, bg, titleColor, strokeColor, disabled, loading }: {
|
|
3
3
|
theme: ThemeTypes;
|
|
4
4
|
variant: ButtonVariant;
|
|
5
5
|
bg: string | undefined;
|
|
6
6
|
titleColor: string | undefined;
|
|
7
7
|
strokeColor: string | undefined;
|
|
8
8
|
disabled: boolean;
|
|
9
|
+
loading: boolean;
|
|
9
10
|
}) => {
|
|
10
11
|
backgroundColor: string;
|
|
11
12
|
buttonTextColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAiG7D,QAAA,MAAM,eAAe,GAAI,oEAQtB;IACC,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CACpB;;;;CAqCA,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UserInput/UserInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;
|
|
1
|
+
{"version":3,"file":"UserInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UserInput/UserInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;aA8BuB,CAAC;kBAElB,CAAA;iBACC,CAAC;;;;;;;;;;;;;;;;;qBA6Bf,CAAP;sBAIa,CAAC;aAAqC,CAAC;aACzC,CAAJ;kBAEQ,CAAJ;;6CAwCV,CAAC;AACH,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveCalculations.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/ResponsiveCalculations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponsiveCalculations.d.ts","sourceRoot":"","sources":["../../../../../src/helpers/ResponsiveCalculations.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAG9C,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAG5C,CAAA;AAkBD,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,MAmBrD,CAAC"}
|
|
@@ -45,6 +45,8 @@ export type ButtonProps = TouchableOpacityProps & {
|
|
|
45
45
|
renderRightIcon?: JSX.Element;
|
|
46
46
|
/** Disables the button when true */
|
|
47
47
|
disabled?: boolean;
|
|
48
|
+
/** Shows loading state when true */
|
|
49
|
+
loading?: boolean;
|
|
48
50
|
/** Custom styles for the button container */
|
|
49
51
|
containerStyle?: StyleProp<ViewStyle>;
|
|
50
52
|
/** Custom styles for the title text */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,KA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AAqD;IACrD,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAEzB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE7B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAE9B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC,uCAAuC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAElC,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export type SurfaceProps = StyledViewProps & {
|
|
|
9
9
|
/** Border radius of the surface container */
|
|
10
10
|
br?: number;
|
|
11
11
|
/** Style variant of the surface: 'elevated' adds shadow, 'outlined' adds border */
|
|
12
|
-
variant?: 'elevated' | 'outlined';
|
|
12
|
+
variant?: 'elevated' | 'outlined' | 'default';
|
|
13
13
|
/** Child components to be rendered inside the surface */
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/surface.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG;IACzC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mFAAmF;IACnF,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"surface.type.d.ts","sourceRoot":"","sources":["../../../../../src/types/surface.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG;IACzC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mFAAmF;IACnF,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAE9C,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexara/nativeflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"!**/.*"
|
|
39
39
|
],
|
|
40
40
|
"scripts": {
|
|
41
|
-
"example": "yarn workspace @nexara/nativeflow-example",
|
|
41
|
+
"example": "yarn workspace @nexara/nativeflow-example start",
|
|
42
42
|
"test": "jest",
|
|
43
43
|
"typecheck": "tsc",
|
|
44
44
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
package/src/assets/svg/Check.tsx
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Path, Svg } from "react-native-svg";
|
|
2
|
-
|
|
3
|
-
const Check = ({ size = 24, color = '#000' }) => {
|
|
4
|
-
return (<>
|
|
5
|
-
<Svg
|
|
6
|
-
height={size}
|
|
7
|
-
viewBox="0 -960 960 960"
|
|
8
|
-
width={size}
|
|
9
|
-
fill={color}
|
|
10
|
-
>
|
|
11
|
-
<Path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" />
|
|
12
|
-
</Svg>
|
|
13
|
-
|
|
14
|
-
</>);
|
|
15
|
-
}
|
|
16
|
-
|
|
1
|
+
import { Path, Svg } from "react-native-svg";
|
|
2
|
+
|
|
3
|
+
const Check = ({ size = 24, color = '#000' }) => {
|
|
4
|
+
return (<>
|
|
5
|
+
<Svg
|
|
6
|
+
height={size}
|
|
7
|
+
viewBox="0 -960 960 960"
|
|
8
|
+
width={size}
|
|
9
|
+
fill={color}
|
|
10
|
+
>
|
|
11
|
+
<Path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" />
|
|
12
|
+
</Svg>
|
|
13
|
+
|
|
14
|
+
</>);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
17
|
export default Check;
|
package/src/assets/svg/X.tsx
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Path, Svg } from "react-native-svg";
|
|
2
|
-
|
|
3
|
-
const X = ({ size = 24, color = '#000' }) => {
|
|
4
|
-
return (
|
|
5
|
-
<Svg
|
|
6
|
-
height={size}
|
|
7
|
-
viewBox="0 -960 960 960"
|
|
8
|
-
width={size}
|
|
9
|
-
fill={color}
|
|
10
|
-
>
|
|
11
|
-
<Path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
|
|
12
|
-
</Svg>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
1
|
+
import { Path, Svg } from "react-native-svg";
|
|
2
|
+
|
|
3
|
+
const X = ({ size = 24, color = '#000' }) => {
|
|
4
|
+
return (
|
|
5
|
+
<Svg
|
|
6
|
+
height={size}
|
|
7
|
+
viewBox="0 -960 960 960"
|
|
8
|
+
width={size}
|
|
9
|
+
fill={color}
|
|
10
|
+
>
|
|
11
|
+
<Path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
|
|
12
|
+
</Svg>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
16
|
export default X;
|
package/src/assets/svg/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as X } from './X';
|
|
1
|
+
export { default as X } from './X';
|
|
2
2
|
export { default as Check } from './Check';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { type FC } from "react";
|
|
2
|
-
import { Image } from "react-native";
|
|
3
|
-
import { StyledView } from "../StyledComponents";
|
|
4
|
-
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
5
|
-
import type { AvatarImageProps } from "../../types";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const AvatarImage: FC<AvatarImageProps> = ({
|
|
9
|
-
size = 70,
|
|
10
|
-
source,
|
|
11
|
-
resizeMode = 'cover',
|
|
12
|
-
containerStyle,
|
|
13
|
-
imageStyle
|
|
14
|
-
}) => {
|
|
15
|
-
|
|
16
|
-
return (<>
|
|
17
|
-
<StyledView
|
|
18
|
-
// alignSelf='flex-start'
|
|
19
|
-
height={verticalScale(size)}
|
|
20
|
-
width={verticalScale(size)}
|
|
21
|
-
borderRadius={verticalScale(size)}
|
|
22
|
-
overflow='hidden'
|
|
23
|
-
style={containerStyle}
|
|
24
|
-
>
|
|
25
|
-
<Image
|
|
26
|
-
source={source}
|
|
27
|
-
style={[{ height: '100%', width: '100%' }, imageStyle]}
|
|
28
|
-
resizeMode={resizeMode}
|
|
29
|
-
/>
|
|
30
|
-
</StyledView>
|
|
31
|
-
</>)
|
|
32
|
-
}
|
|
33
|
-
export default AvatarImage;
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import { Image } from "react-native";
|
|
3
|
+
import { StyledView } from "../StyledComponents";
|
|
4
|
+
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
5
|
+
import type { AvatarImageProps } from "../../types";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const AvatarImage: FC<AvatarImageProps> = ({
|
|
9
|
+
size = 70,
|
|
10
|
+
source,
|
|
11
|
+
resizeMode = 'cover',
|
|
12
|
+
containerStyle,
|
|
13
|
+
imageStyle
|
|
14
|
+
}) => {
|
|
15
|
+
|
|
16
|
+
return (<>
|
|
17
|
+
<StyledView
|
|
18
|
+
// alignSelf='flex-start'
|
|
19
|
+
height={verticalScale(size)}
|
|
20
|
+
width={verticalScale(size)}
|
|
21
|
+
borderRadius={verticalScale(size)}
|
|
22
|
+
overflow='hidden'
|
|
23
|
+
style={containerStyle}
|
|
24
|
+
>
|
|
25
|
+
<Image
|
|
26
|
+
source={source}
|
|
27
|
+
style={[{ height: '100%', width: '100%' }, imageStyle]}
|
|
28
|
+
resizeMode={resizeMode}
|
|
29
|
+
/>
|
|
30
|
+
</StyledView>
|
|
31
|
+
</>)
|
|
32
|
+
}
|
|
33
|
+
export default AvatarImage;
|
|
34
34
|
export type { AvatarImageProps };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { type FC } from "react";
|
|
2
|
-
import { StyledText, StyledView } from "../StyledComponents";
|
|
3
|
-
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
4
|
-
import { useTheme } from "../../hooks";
|
|
5
|
-
import type { AvatarTextProps } from "../../types";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const AvatarText: FC<AvatarTextProps> = ({
|
|
9
|
-
size = 70,
|
|
10
|
-
fs,
|
|
11
|
-
text = 'YH',
|
|
12
|
-
bg,
|
|
13
|
-
containerStyle,
|
|
14
|
-
textStyle,
|
|
15
|
-
}) => {
|
|
16
|
-
text = text.slice(0, 2).toUpperCase();
|
|
17
|
-
const theme: any = useTheme();
|
|
18
|
-
|
|
19
|
-
return (<>
|
|
20
|
-
<StyledView
|
|
21
|
-
bg={bg ?? theme.colors.brand.primary}
|
|
22
|
-
// alignSelf='flex-start'
|
|
23
|
-
h={verticalScale(size)}
|
|
24
|
-
w={verticalScale(size)}
|
|
25
|
-
align='center'
|
|
26
|
-
justify='center'
|
|
27
|
-
borderRadius={verticalScale(size)}
|
|
28
|
-
style={containerStyle}
|
|
29
|
-
>
|
|
30
|
-
<StyledText color={theme.colors.brand.onPrimary} fw='bold' fs={fs ?? (size / 3)} style={textStyle}>{text}</StyledText>
|
|
31
|
-
</StyledView>
|
|
32
|
-
</>)
|
|
33
|
-
}
|
|
34
|
-
export default AvatarText;
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import { StyledText, StyledView } from "../StyledComponents";
|
|
3
|
+
import { verticalScale } from "../../helpers/ResponsiveCalculations";
|
|
4
|
+
import { useTheme } from "../../hooks";
|
|
5
|
+
import type { AvatarTextProps } from "../../types";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const AvatarText: FC<AvatarTextProps> = ({
|
|
9
|
+
size = 70,
|
|
10
|
+
fs,
|
|
11
|
+
text = 'YH',
|
|
12
|
+
bg,
|
|
13
|
+
containerStyle,
|
|
14
|
+
textStyle,
|
|
15
|
+
}) => {
|
|
16
|
+
text = text.slice(0, 2).toUpperCase();
|
|
17
|
+
const theme: any = useTheme();
|
|
18
|
+
|
|
19
|
+
return (<>
|
|
20
|
+
<StyledView
|
|
21
|
+
bg={bg ?? theme.colors.brand.primary}
|
|
22
|
+
// alignSelf='flex-start'
|
|
23
|
+
h={verticalScale(size)}
|
|
24
|
+
w={verticalScale(size)}
|
|
25
|
+
align='center'
|
|
26
|
+
justify='center'
|
|
27
|
+
borderRadius={verticalScale(size)}
|
|
28
|
+
style={containerStyle}
|
|
29
|
+
>
|
|
30
|
+
<StyledText color={theme.colors.brand.onPrimary} fw='bold' fs={fs ?? (size / 3)} style={textStyle}>{text}</StyledText>
|
|
31
|
+
</StyledView>
|
|
32
|
+
</>)
|
|
33
|
+
}
|
|
34
|
+
export default AvatarText;
|
|
35
35
|
export type { AvatarTextProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import AvatarImage from "./AvatarImage";
|
|
2
|
-
import AvatarText from "./AvatarText";
|
|
3
|
-
const Avatar = {
|
|
4
|
-
Image: AvatarImage,
|
|
5
|
-
Text: AvatarText
|
|
6
|
-
};
|
|
7
|
-
export type { AvatarImageProps } from './AvatarImage';
|
|
8
|
-
export type { AvatarTextProps } from './AvatarText';
|
|
1
|
+
import AvatarImage from "./AvatarImage";
|
|
2
|
+
import AvatarText from "./AvatarText";
|
|
3
|
+
const Avatar = {
|
|
4
|
+
Image: AvatarImage,
|
|
5
|
+
Text: AvatarText
|
|
6
|
+
};
|
|
7
|
+
export type { AvatarImageProps } from './AvatarImage';
|
|
8
|
+
export type { AvatarTextProps } from './AvatarText';
|
|
9
9
|
export default Avatar;
|