@kivid/native-components 1.0.0-alpha.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/README.md +57 -0
- package/assets/adaptive-icon.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/fonts/Nunito-Bold.ttf +0 -0
- package/assets/fonts/Nunito-BoldItalic.ttf +0 -0
- package/assets/fonts/Nunito-Italic.ttf +0 -0
- package/assets/fonts/Nunito-Medium.ttf +0 -0
- package/assets/fonts/Nunito-MediumItalic.ttf +0 -0
- package/assets/fonts/Nunito-Regular.ttf +0 -0
- package/assets/fonts/Nunito-SemiBold.ttf +0 -0
- package/assets/fonts/Nunito-SemiBoldItalic.ttf +0 -0
- package/assets/icon.png +0 -0
- package/assets/splash.png +0 -0
- package/dist/README.md +57 -0
- package/dist/commonjs/components/Button/assets/class-variants.js +91 -0
- package/dist/commonjs/components/Button/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Button/assets/design-system-showcase.js +1455 -0
- package/dist/commonjs/components/Button/assets/design-system-showcase.js.map +1 -0
- package/dist/commonjs/components/Button/index.js +116 -0
- package/dist/commonjs/components/Button/index.js.map +1 -0
- package/dist/commonjs/components/Button/types.js +6 -0
- package/dist/commonjs/components/Button/types.js.map +1 -0
- package/dist/commonjs/components/Chip/assets/class-variants.js +63 -0
- package/dist/commonjs/components/Chip/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Chip/enums/chip-size.js +12 -0
- package/dist/commonjs/components/Chip/enums/chip-size.js.map +1 -0
- package/dist/commonjs/components/Chip/enums/chip-variant.js +13 -0
- package/dist/commonjs/components/Chip/enums/chip-variant.js.map +1 -0
- package/dist/commonjs/components/Chip/enums/index.js +28 -0
- package/dist/commonjs/components/Chip/enums/index.js.map +1 -0
- package/dist/commonjs/components/Chip/index.js +38 -0
- package/dist/commonjs/components/Chip/index.js.map +1 -0
- package/dist/commonjs/components/Chip/types.js +6 -0
- package/dist/commonjs/components/Chip/types.js.map +1 -0
- package/dist/commonjs/components/HighlightedText/index.js +46 -0
- package/dist/commonjs/components/HighlightedText/index.js.map +1 -0
- package/dist/commonjs/components/HighlightedText/types.js +6 -0
- package/dist/commonjs/components/HighlightedText/types.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAdd/index.js +74 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAdd/index.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAdd/types.js +6 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAdd/types.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAlert/index.js +79 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAlert/index.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAlert/types.js +6 -0
- package/dist/commonjs/components/InformationStatus/components/GradientAlert/types.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientCheck/index.js +74 -0
- package/dist/commonjs/components/InformationStatus/components/GradientCheck/index.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientCheck/types.js +6 -0
- package/dist/commonjs/components/InformationStatus/components/GradientCheck/types.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientClose/index.js +72 -0
- package/dist/commonjs/components/InformationStatus/components/GradientClose/index.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/GradientClose/types.js +6 -0
- package/dist/commonjs/components/InformationStatus/components/GradientClose/types.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/components/index.js +50 -0
- package/dist/commonjs/components/InformationStatus/components/index.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/enums.js +14 -0
- package/dist/commonjs/components/InformationStatus/enums.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/index.js +75 -0
- package/dist/commonjs/components/InformationStatus/index.js.map +1 -0
- package/dist/commonjs/components/InformationStatus/types.js +6 -0
- package/dist/commonjs/components/InformationStatus/types.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/assets/class-variants.js +64 -0
- package/dist/commonjs/components/InputCheckbox/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/enums/checkbox-variant.js +17 -0
- package/dist/commonjs/components/InputCheckbox/enums/checkbox-variant.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/enums/index.js +28 -0
- package/dist/commonjs/components/InputCheckbox/enums/index.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/enums/select-variant.js +12 -0
- package/dist/commonjs/components/InputCheckbox/enums/select-variant.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/icons/CheckIcon/index.js +28 -0
- package/dist/commonjs/components/InputCheckbox/icons/CheckIcon/index.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/icons/IndeterminateIcon/index.js +28 -0
- package/dist/commonjs/components/InputCheckbox/icons/IndeterminateIcon/index.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/icons/index.js +20 -0
- package/dist/commonjs/components/InputCheckbox/icons/index.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/index.js +53 -0
- package/dist/commonjs/components/InputCheckbox/index.js.map +1 -0
- package/dist/commonjs/components/InputCheckbox/types.js +6 -0
- package/dist/commonjs/components/InputCheckbox/types.js.map +1 -0
- package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js +93 -0
- package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js.map +1 -0
- package/dist/commonjs/components/InputOTP/components/InformationStatus/types.js +6 -0
- package/dist/commonjs/components/InputOTP/components/InformationStatus/types.js.map +1 -0
- package/dist/commonjs/components/InputOTP/components/index.js +17 -0
- package/dist/commonjs/components/InputOTP/components/index.js.map +1 -0
- package/dist/commonjs/components/InputOTP/enums/index.js +17 -0
- package/dist/commonjs/components/InputOTP/enums/index.js.map +1 -0
- package/dist/commonjs/components/InputOTP/enums/information-status.js +15 -0
- package/dist/commonjs/components/InputOTP/enums/information-status.js.map +1 -0
- package/dist/commonjs/components/InputOTP/index.js +135 -0
- package/dist/commonjs/components/InputOTP/index.js.map +1 -0
- package/dist/commonjs/components/InputOTP/types.js +6 -0
- package/dist/commonjs/components/InputOTP/types.js.map +1 -0
- package/dist/commonjs/components/LoadingDots/assets/loading-button-dark.json +1 -0
- package/dist/commonjs/components/LoadingDots/assets/loading-button-grape.json +1 -0
- package/dist/commonjs/components/LoadingDots/assets/loading-button-light.json +1 -0
- package/dist/commonjs/components/LoadingDots/index.js +45 -0
- package/dist/commonjs/components/LoadingDots/index.js.map +1 -0
- package/dist/commonjs/components/LoadingDots/types.js +6 -0
- package/dist/commonjs/components/LoadingDots/types.js.map +1 -0
- package/dist/commonjs/components/Seal/assets/class-variants.js +64 -0
- package/dist/commonjs/components/Seal/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Seal/components/AddIcon/index.js +32 -0
- package/dist/commonjs/components/Seal/components/AddIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/AlertIcon/index.js +32 -0
- package/dist/commonjs/components/Seal/components/AlertIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/ErrorIcon/index.js +32 -0
- package/dist/commonjs/components/Seal/components/ErrorIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/LeftIcon/index.js +32 -0
- package/dist/commonjs/components/Seal/components/LeftIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/MinusIcon/index.js +30 -0
- package/dist/commonjs/components/Seal/components/MinusIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/RightIcon/index.js +32 -0
- package/dist/commonjs/components/Seal/components/RightIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/SuccessIcon/index.js +32 -0
- package/dist/commonjs/components/Seal/components/SuccessIcon/index.js.map +1 -0
- package/dist/commonjs/components/Seal/components/index.js +55 -0
- package/dist/commonjs/components/Seal/components/index.js.map +1 -0
- package/dist/commonjs/components/Seal/enums/index.js +17 -0
- package/dist/commonjs/components/Seal/enums/index.js.map +1 -0
- package/dist/commonjs/components/Seal/enums/seal-variant.js +17 -0
- package/dist/commonjs/components/Seal/enums/seal-variant.js.map +1 -0
- package/dist/commonjs/components/Seal/index.js +52 -0
- package/dist/commonjs/components/Seal/index.js.map +1 -0
- package/dist/commonjs/components/Seal/types.js +6 -0
- package/dist/commonjs/components/Seal/types.js.map +1 -0
- package/dist/commonjs/components/Title/components/icon/index.js +49 -0
- package/dist/commonjs/components/Title/components/icon/index.js.map +1 -0
- package/dist/commonjs/components/Title/components/icon/types.js +15 -0
- package/dist/commonjs/components/Title/components/icon/types.js.map +1 -0
- package/dist/commonjs/components/Title/components/index.js +28 -0
- package/dist/commonjs/components/Title/components/index.js.map +1 -0
- package/dist/commonjs/components/Title/components/marker/index.js +33 -0
- package/dist/commonjs/components/Title/components/marker/index.js.map +1 -0
- package/dist/commonjs/components/Title/components/marker/types.js +2 -0
- package/dist/commonjs/components/Title/components/marker/types.js.map +1 -0
- package/dist/commonjs/components/Title/index.js +44 -0
- package/dist/commonjs/components/Title/index.js.map +1 -0
- package/dist/commonjs/components/Title/types.js +6 -0
- package/dist/commonjs/components/Title/types.js.map +1 -0
- package/dist/commonjs/components/Toggle/assets/class-variants.js +37 -0
- package/dist/commonjs/components/Toggle/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Toggle/enums/index.js +17 -0
- package/dist/commonjs/components/Toggle/enums/index.js.map +1 -0
- package/dist/commonjs/components/Toggle/enums/variant.js +15 -0
- package/dist/commonjs/components/Toggle/enums/variant.js.map +1 -0
- package/dist/commonjs/components/Toggle/index.js +41 -0
- package/dist/commonjs/components/Toggle/index.js.map +1 -0
- package/dist/commonjs/components/Toggle/types.js +6 -0
- package/dist/commonjs/components/Toggle/types.js.map +1 -0
- package/dist/commonjs/components/Typography/index.js +52 -0
- package/dist/commonjs/components/Typography/index.js.map +1 -0
- package/dist/commonjs/components/Typography/types.js +6 -0
- package/dist/commonjs/components/Typography/types.js.map +1 -0
- package/dist/commonjs/components/index.js +127 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/hooks/index.js +17 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/use-fonts.js +31 -0
- package/dist/commonjs/hooks/use-fonts.js.map +1 -0
- package/dist/commonjs/iconography/Icons/index.js +97 -0
- package/dist/commonjs/iconography/Icons/index.js.map +1 -0
- package/dist/commonjs/iconography/Icons/types.js +6 -0
- package/dist/commonjs/iconography/Icons/types.js.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/nativewind-env.d.js +3 -0
- package/dist/commonjs/nativewind-env.d.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/welcome.mdx +3 -0
- package/dist/module/components/Button/assets/class-variants.js +88 -0
- package/dist/module/components/Button/assets/class-variants.js.map +1 -0
- package/dist/module/components/Button/assets/design-system-showcase.js +1451 -0
- package/dist/module/components/Button/assets/design-system-showcase.js.map +1 -0
- package/dist/module/components/Button/index.js +110 -0
- package/dist/module/components/Button/index.js.map +1 -0
- package/dist/module/components/Button/types.js +4 -0
- package/dist/module/components/Button/types.js.map +1 -0
- package/dist/module/components/Chip/assets/class-variants.js +59 -0
- package/dist/module/components/Chip/assets/class-variants.js.map +1 -0
- package/dist/module/components/Chip/enums/chip-size.js +8 -0
- package/dist/module/components/Chip/enums/chip-size.js.map +1 -0
- package/dist/module/components/Chip/enums/chip-variant.js +9 -0
- package/dist/module/components/Chip/enums/chip-variant.js.map +1 -0
- package/dist/module/components/Chip/enums/index.js +5 -0
- package/dist/module/components/Chip/enums/index.js.map +1 -0
- package/dist/module/components/Chip/index.js +34 -0
- package/dist/module/components/Chip/index.js.map +1 -0
- package/dist/module/components/Chip/types.js +4 -0
- package/dist/module/components/Chip/types.js.map +1 -0
- package/dist/module/components/HighlightedText/index.js +41 -0
- package/dist/module/components/HighlightedText/index.js.map +1 -0
- package/dist/module/components/HighlightedText/types.js +4 -0
- package/dist/module/components/HighlightedText/types.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientAdd/index.js +69 -0
- package/dist/module/components/InformationStatus/components/GradientAdd/index.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientAdd/types.js +4 -0
- package/dist/module/components/InformationStatus/components/GradientAdd/types.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientAlert/index.js +74 -0
- package/dist/module/components/InformationStatus/components/GradientAlert/index.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientAlert/types.js +4 -0
- package/dist/module/components/InformationStatus/components/GradientAlert/types.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientCheck/index.js +69 -0
- package/dist/module/components/InformationStatus/components/GradientCheck/index.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientCheck/types.js +4 -0
- package/dist/module/components/InformationStatus/components/GradientCheck/types.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientClose/index.js +67 -0
- package/dist/module/components/InformationStatus/components/GradientClose/index.js.map +1 -0
- package/dist/module/components/InformationStatus/components/GradientClose/types.js +4 -0
- package/dist/module/components/InformationStatus/components/GradientClose/types.js.map +1 -0
- package/dist/module/components/InformationStatus/components/index.js +7 -0
- package/dist/module/components/InformationStatus/components/index.js.map +1 -0
- package/dist/module/components/InformationStatus/enums.js +10 -0
- package/dist/module/components/InformationStatus/enums.js.map +1 -0
- package/dist/module/components/InformationStatus/index.js +71 -0
- package/dist/module/components/InformationStatus/index.js.map +1 -0
- package/dist/module/components/InformationStatus/types.js +4 -0
- package/dist/module/components/InformationStatus/types.js.map +1 -0
- package/dist/module/components/InputCheckbox/assets/class-variants.js +60 -0
- package/dist/module/components/InputCheckbox/assets/class-variants.js.map +1 -0
- package/dist/module/components/InputCheckbox/enums/checkbox-variant.js +13 -0
- package/dist/module/components/InputCheckbox/enums/checkbox-variant.js.map +1 -0
- package/dist/module/components/InputCheckbox/enums/index.js +5 -0
- package/dist/module/components/InputCheckbox/enums/index.js.map +1 -0
- package/dist/module/components/InputCheckbox/enums/select-variant.js +8 -0
- package/dist/module/components/InputCheckbox/enums/select-variant.js.map +1 -0
- package/dist/module/components/InputCheckbox/icons/CheckIcon/index.js +22 -0
- package/dist/module/components/InputCheckbox/icons/CheckIcon/index.js.map +1 -0
- package/dist/module/components/InputCheckbox/icons/IndeterminateIcon/index.js +22 -0
- package/dist/module/components/InputCheckbox/icons/IndeterminateIcon/index.js.map +1 -0
- package/dist/module/components/InputCheckbox/icons/index.js +5 -0
- package/dist/module/components/InputCheckbox/icons/index.js.map +1 -0
- package/dist/module/components/InputCheckbox/index.js +49 -0
- package/dist/module/components/InputCheckbox/index.js.map +1 -0
- package/dist/module/components/InputCheckbox/types.js +4 -0
- package/dist/module/components/InputCheckbox/types.js.map +1 -0
- package/dist/module/components/InputOTP/components/InformationStatus/index.js +87 -0
- package/dist/module/components/InputOTP/components/InformationStatus/index.js.map +1 -0
- package/dist/module/components/InputOTP/components/InformationStatus/types.js +4 -0
- package/dist/module/components/InputOTP/components/InformationStatus/types.js.map +1 -0
- package/dist/module/components/InputOTP/components/index.js +4 -0
- package/dist/module/components/InputOTP/components/index.js.map +1 -0
- package/dist/module/components/InputOTP/enums/index.js +4 -0
- package/dist/module/components/InputOTP/enums/index.js.map +1 -0
- package/dist/module/components/InputOTP/enums/information-status.js +11 -0
- package/dist/module/components/InputOTP/enums/information-status.js.map +1 -0
- package/dist/module/components/InputOTP/index.js +130 -0
- package/dist/module/components/InputOTP/index.js.map +1 -0
- package/dist/module/components/InputOTP/types.js +4 -0
- package/dist/module/components/InputOTP/types.js.map +1 -0
- package/dist/module/components/LoadingDots/assets/loading-button-dark.json +1 -0
- package/dist/module/components/LoadingDots/assets/loading-button-grape.json +1 -0
- package/dist/module/components/LoadingDots/assets/loading-button-light.json +1 -0
- package/dist/module/components/LoadingDots/index.js +39 -0
- package/dist/module/components/LoadingDots/index.js.map +1 -0
- package/dist/module/components/LoadingDots/types.js +4 -0
- package/dist/module/components/LoadingDots/types.js.map +1 -0
- package/dist/module/components/Seal/assets/class-variants.js +60 -0
- package/dist/module/components/Seal/assets/class-variants.js.map +1 -0
- package/dist/module/components/Seal/components/AddIcon/index.js +27 -0
- package/dist/module/components/Seal/components/AddIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/AlertIcon/index.js +27 -0
- package/dist/module/components/Seal/components/AlertIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/ErrorIcon/index.js +27 -0
- package/dist/module/components/Seal/components/ErrorIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/LeftIcon/index.js +27 -0
- package/dist/module/components/Seal/components/LeftIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/MinusIcon/index.js +25 -0
- package/dist/module/components/Seal/components/MinusIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/RightIcon/index.js +27 -0
- package/dist/module/components/Seal/components/RightIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/SuccessIcon/index.js +27 -0
- package/dist/module/components/Seal/components/SuccessIcon/index.js.map +1 -0
- package/dist/module/components/Seal/components/index.js +10 -0
- package/dist/module/components/Seal/components/index.js.map +1 -0
- package/dist/module/components/Seal/enums/index.js +4 -0
- package/dist/module/components/Seal/enums/index.js.map +1 -0
- package/dist/module/components/Seal/enums/seal-variant.js +13 -0
- package/dist/module/components/Seal/enums/seal-variant.js.map +1 -0
- package/dist/module/components/Seal/index.js +46 -0
- package/dist/module/components/Seal/index.js.map +1 -0
- package/dist/module/components/Seal/types.js +4 -0
- package/dist/module/components/Seal/types.js.map +1 -0
- package/dist/module/components/Title/components/icon/index.js +45 -0
- package/dist/module/components/Title/components/icon/index.js.map +1 -0
- package/dist/module/components/Title/components/icon/types.js +11 -0
- package/dist/module/components/Title/components/icon/types.js.map +1 -0
- package/dist/module/components/Title/components/index.js +5 -0
- package/dist/module/components/Title/components/index.js.map +1 -0
- package/dist/module/components/Title/components/marker/index.js +29 -0
- package/dist/module/components/Title/components/marker/index.js.map +1 -0
- package/dist/module/components/Title/components/marker/types.js +2 -0
- package/dist/module/components/Title/components/marker/types.js.map +1 -0
- package/dist/module/components/Title/index.js +41 -0
- package/dist/module/components/Title/index.js.map +1 -0
- package/dist/module/components/Title/types.js +4 -0
- package/dist/module/components/Title/types.js.map +1 -0
- package/dist/module/components/Toggle/assets/class-variants.js +34 -0
- package/dist/module/components/Toggle/assets/class-variants.js.map +1 -0
- package/dist/module/components/Toggle/enums/index.js +4 -0
- package/dist/module/components/Toggle/enums/index.js.map +1 -0
- package/dist/module/components/Toggle/enums/variant.js +11 -0
- package/dist/module/components/Toggle/enums/variant.js.map +1 -0
- package/dist/module/components/Toggle/index.js +37 -0
- package/dist/module/components/Toggle/index.js.map +1 -0
- package/dist/module/components/Toggle/types.js +4 -0
- package/dist/module/components/Toggle/types.js.map +1 -0
- package/dist/module/components/Typography/index.js +47 -0
- package/dist/module/components/Typography/index.js.map +1 -0
- package/dist/module/components/Typography/types.js +4 -0
- package/dist/module/components/Typography/types.js.map +1 -0
- package/dist/module/components/index.js +14 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/hooks/index.js +4 -0
- package/dist/module/hooks/index.js.map +1 -0
- package/dist/module/hooks/use-fonts.js +27 -0
- package/dist/module/hooks/use-fonts.js.map +1 -0
- package/dist/module/iconography/Icons/index.js +92 -0
- package/dist/module/iconography/Icons/index.js.map +1 -0
- package/dist/module/iconography/Icons/types.js +4 -0
- package/dist/module/iconography/Icons/types.js.map +1 -0
- package/dist/module/index.js +4 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/nativewind-env.d.js +3 -0
- package/dist/module/nativewind-env.d.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/welcome.mdx +3 -0
- package/dist/package.json +57 -0
- package/dist/typescript/components/Button/assets/class-variants.d.ts +16 -0
- package/dist/typescript/components/Button/assets/design-system-showcase.d.ts +1448 -0
- package/dist/typescript/components/Button/index.d.ts +6 -0
- package/dist/typescript/components/Button/types.d.ts +16 -0
- package/dist/typescript/components/Chip/assets/class-variants.d.ts +5 -0
- package/dist/typescript/components/Chip/enums/chip-size.d.ts +4 -0
- package/dist/typescript/components/Chip/enums/chip-variant.d.ts +5 -0
- package/dist/typescript/components/Chip/enums/index.d.ts +2 -0
- package/dist/typescript/components/Chip/index.d.ts +2 -0
- package/dist/typescript/components/Chip/types.d.ts +11 -0
- package/dist/typescript/components/HighlightedText/index.d.ts +6 -0
- package/dist/typescript/components/HighlightedText/types.d.ts +9 -0
- package/dist/typescript/components/InformationStatus/components/GradientAdd/index.d.ts +3 -0
- package/dist/typescript/components/InformationStatus/components/GradientAdd/types.d.ts +5 -0
- package/dist/typescript/components/InformationStatus/components/GradientAlert/index.d.ts +3 -0
- package/dist/typescript/components/InformationStatus/components/GradientAlert/types.d.ts +5 -0
- package/dist/typescript/components/InformationStatus/components/GradientCheck/index.d.ts +3 -0
- package/dist/typescript/components/InformationStatus/components/GradientCheck/types.d.ts +5 -0
- package/dist/typescript/components/InformationStatus/components/GradientClose/index.d.ts +3 -0
- package/dist/typescript/components/InformationStatus/components/GradientClose/types.d.ts +5 -0
- package/dist/typescript/components/InformationStatus/components/index.d.ts +4 -0
- package/dist/typescript/components/InformationStatus/enums.d.ts +6 -0
- package/dist/typescript/components/InformationStatus/index.d.ts +2 -0
- package/dist/typescript/components/InformationStatus/types.d.ts +14 -0
- package/dist/typescript/components/InputCheckbox/assets/class-variants.d.ts +6 -0
- package/dist/typescript/components/InputCheckbox/enums/checkbox-variant.d.ts +9 -0
- package/dist/typescript/components/InputCheckbox/enums/index.d.ts +2 -0
- package/dist/typescript/components/InputCheckbox/enums/select-variant.d.ts +4 -0
- package/dist/typescript/components/InputCheckbox/icons/CheckIcon/index.d.ts +2 -0
- package/dist/typescript/components/InputCheckbox/icons/IndeterminateIcon/index.d.ts +2 -0
- package/dist/typescript/components/InputCheckbox/icons/index.d.ts +2 -0
- package/dist/typescript/components/InputCheckbox/index.d.ts +2 -0
- package/dist/typescript/components/InputCheckbox/types.d.ts +10 -0
- package/dist/typescript/components/InputOTP/components/InformationStatus/index.d.ts +3 -0
- package/dist/typescript/components/InputOTP/components/InformationStatus/types.d.ts +6 -0
- package/dist/typescript/components/InputOTP/components/index.d.ts +1 -0
- package/dist/typescript/components/InputOTP/enums/index.d.ts +1 -0
- package/dist/typescript/components/InputOTP/enums/information-status.d.ts +7 -0
- package/dist/typescript/components/InputOTP/index.d.ts +3 -0
- package/dist/typescript/components/InputOTP/types.d.ts +11 -0
- package/dist/typescript/components/LoadingDots/index.d.ts +3 -0
- package/dist/typescript/components/LoadingDots/types.d.ts +9 -0
- package/dist/typescript/components/Seal/assets/class-variants.d.ts +5 -0
- package/dist/typescript/components/Seal/components/AddIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/AlertIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/ErrorIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/LeftIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/MinusIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/RightIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/SuccessIcon/index.d.ts +2 -0
- package/dist/typescript/components/Seal/components/index.d.ts +7 -0
- package/dist/typescript/components/Seal/enums/index.d.ts +1 -0
- package/dist/typescript/components/Seal/enums/seal-variant.d.ts +9 -0
- package/dist/typescript/components/Seal/index.d.ts +3 -0
- package/dist/typescript/components/Seal/types.d.ts +14 -0
- package/dist/typescript/components/Title/components/icon/index.d.ts +2 -0
- package/dist/typescript/components/Title/components/icon/types.d.ts +12 -0
- package/dist/typescript/components/Title/components/index.d.ts +2 -0
- package/dist/typescript/components/Title/components/marker/index.d.ts +2 -0
- package/dist/typescript/components/Title/components/marker/types.d.ts +4 -0
- package/dist/typescript/components/Title/index.d.ts +7 -0
- package/dist/typescript/components/Title/types.d.ts +7 -0
- package/dist/typescript/components/Toggle/assets/class-variants.d.ts +6 -0
- package/dist/typescript/components/Toggle/enums/index.d.ts +1 -0
- package/dist/typescript/components/Toggle/enums/variant.d.ts +7 -0
- package/dist/typescript/components/Toggle/index.d.ts +2 -0
- package/dist/typescript/components/Toggle/types.d.ts +7 -0
- package/dist/typescript/components/Typography/index.d.ts +27 -0
- package/dist/typescript/components/Typography/types.d.ts +7 -0
- package/dist/typescript/components/index.d.ts +11 -0
- package/dist/typescript/hooks/index.d.ts +1 -0
- package/dist/typescript/hooks/use-fonts.d.ts +10 -0
- package/dist/typescript/iconography/Icons/index.d.ts +2 -0
- package/dist/typescript/iconography/Icons/types.d.ts +11 -0
- package/dist/typescript/index.d.ts +1 -0
- package/index.js +6 -0
- package/package.json +128 -0
- package/src/components/Button/assets/class-variants.ts +111 -0
- package/src/components/Button/assets/design-system-showcase.ts +1745 -0
- package/src/components/Button/index.stories.tsx +407 -0
- package/src/components/Button/index.tsx +137 -0
- package/src/components/Button/types.ts +31 -0
- package/src/components/Chip/assets/class-variants.ts +68 -0
- package/src/components/Chip/enums/chip-size.ts +4 -0
- package/src/components/Chip/enums/chip-variant.ts +5 -0
- package/src/components/Chip/enums/index.ts +2 -0
- package/src/components/Chip/index.stories.tsx +95 -0
- package/src/components/Chip/index.tsx +35 -0
- package/src/components/Chip/types.ts +13 -0
- package/src/components/HighlightedText/index.stories.tsx +110 -0
- package/src/components/HighlightedText/index.tsx +38 -0
- package/src/components/HighlightedText/types.ts +10 -0
- package/src/components/InformationStatus/components/GradientAdd/index.tsx +74 -0
- package/src/components/InformationStatus/components/GradientAdd/types.ts +6 -0
- package/src/components/InformationStatus/components/GradientAlert/index.tsx +81 -0
- package/src/components/InformationStatus/components/GradientAlert/types.ts +6 -0
- package/src/components/InformationStatus/components/GradientCheck/index.tsx +75 -0
- package/src/components/InformationStatus/components/GradientCheck/types.ts +6 -0
- package/src/components/InformationStatus/components/GradientClose/index.tsx +73 -0
- package/src/components/InformationStatus/components/GradientClose/types.ts +6 -0
- package/src/components/InformationStatus/components/index.ts +4 -0
- package/src/components/InformationStatus/enums.ts +6 -0
- package/src/components/InformationStatus/index.stories.tsx +112 -0
- package/src/components/InformationStatus/index.tsx +76 -0
- package/src/components/InformationStatus/types.ts +16 -0
- package/src/components/InputCheckbox/assets/class-variants.ts +90 -0
- package/src/components/InputCheckbox/enums/checkbox-variant.ts +9 -0
- package/src/components/InputCheckbox/enums/index.ts +2 -0
- package/src/components/InputCheckbox/enums/select-variant.ts +4 -0
- package/src/components/InputCheckbox/icons/CheckIcon/index.tsx +23 -0
- package/src/components/InputCheckbox/icons/IndeterminateIcon/index.tsx +23 -0
- package/src/components/InputCheckbox/icons/index.ts +2 -0
- package/src/components/InputCheckbox/index.stories.tsx +133 -0
- package/src/components/InputCheckbox/index.tsx +53 -0
- package/src/components/InputCheckbox/types.ts +13 -0
- package/src/components/InputOTP/components/InformationStatus/index.tsx +105 -0
- package/src/components/InputOTP/components/InformationStatus/types.ts +6 -0
- package/src/components/InputOTP/components/index.ts +1 -0
- package/src/components/InputOTP/enums/index.ts +1 -0
- package/src/components/InputOTP/enums/information-status.ts +7 -0
- package/src/components/InputOTP/index.stories.tsx +247 -0
- package/src/components/InputOTP/index.tsx +177 -0
- package/src/components/InputOTP/types.ts +12 -0
- package/src/components/LoadingDots/assets/loading-button-dark.json +1 -0
- package/src/components/LoadingDots/assets/loading-button-grape.json +1 -0
- package/src/components/LoadingDots/assets/loading-button-light.json +1 -0
- package/src/components/LoadingDots/index.stories.tsx +74 -0
- package/src/components/LoadingDots/index.tsx +37 -0
- package/src/components/LoadingDots/types.ts +10 -0
- package/src/components/Seal/assets/class-variants.ts +70 -0
- package/src/components/Seal/components/AddIcon/index.tsx +26 -0
- package/src/components/Seal/components/AlertIcon/index.tsx +26 -0
- package/src/components/Seal/components/ErrorIcon/index.tsx +26 -0
- package/src/components/Seal/components/LeftIcon/index.tsx +26 -0
- package/src/components/Seal/components/MinusIcon/index.tsx +24 -0
- package/src/components/Seal/components/RightIcon/index.tsx +26 -0
- package/src/components/Seal/components/SuccessIcon/index.tsx +26 -0
- package/src/components/Seal/components/index.ts +7 -0
- package/src/components/Seal/enums/index.ts +1 -0
- package/src/components/Seal/enums/seal-variant.ts +9 -0
- package/src/components/Seal/index.stories.tsx +124 -0
- package/src/components/Seal/index.tsx +53 -0
- package/src/components/Seal/types.ts +18 -0
- package/src/components/Title/components/icon/index.tsx +51 -0
- package/src/components/Title/components/icon/types.ts +12 -0
- package/src/components/Title/components/index.ts +2 -0
- package/src/components/Title/components/marker/index.tsx +25 -0
- package/src/components/Title/components/marker/types.ts +13 -0
- package/src/components/Title/index.stories.tsx +619 -0
- package/src/components/Title/index.tsx +36 -0
- package/src/components/Title/types.ts +7 -0
- package/src/components/Toggle/assets/class-variants.ts +40 -0
- package/src/components/Toggle/enums/index.ts +1 -0
- package/src/components/Toggle/enums/variant.ts +7 -0
- package/src/components/Toggle/index.stories.tsx +88 -0
- package/src/components/Toggle/index.tsx +42 -0
- package/src/components/Toggle/types.ts +8 -0
- package/src/components/Typography/index.stories.tsx +260 -0
- package/src/components/Typography/index.tsx +46 -0
- package/src/components/Typography/types.ts +8 -0
- package/src/components/index.ts +11 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-fonts.ts +22 -0
- package/src/iconography/Icons/index.stories.tsx +23 -0
- package/src/iconography/Icons/index.tsx +89 -0
- package/src/iconography/Icons/types.ts +12 -0
- package/src/index.ts +1 -0
- package/src/nativewind-env.d.ts +1 -0
- package/src/welcome.mdx +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Path","Svg","jsx","_jsx","RightIcon","size","props","sizes","small","medium","width","height","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../../../src","sources":["components/Seal/components/RightIcon/index.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7C,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,IAAI,GAAG,QAAQ;EAAE,GAAGC;AAAqB,CAAC,KAAK;EACzE,MAAMC,KAAK,GAAG;IACZC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV,CAAC;EAED,oBACEN,IAAA,CAACF,GAAG;IACFS,KAAK,EAAEH,KAAK,CAACF,IAAI,CAAE;IACnBM,MAAM,EAAEJ,KAAK,CAACF,IAAI,CAAE;IACpBO,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IAAA,GACPP,KAAK;IAAAQ,QAAA,eAETX,IAAA,CAACH,IAAI;MACHe,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,+YAA+Y;MACjZJ,IAAI,EAAC;IAAc,CACpB;EAAC,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Path, Svg } from "react-native-svg";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const SuccessIcon = ({
|
|
6
|
+
size = "medium",
|
|
7
|
+
...props
|
|
8
|
+
}) => {
|
|
9
|
+
const sizes = {
|
|
10
|
+
small: 16,
|
|
11
|
+
medium: 24
|
|
12
|
+
};
|
|
13
|
+
return /*#__PURE__*/_jsx(Svg, {
|
|
14
|
+
width: sizes[size],
|
|
15
|
+
height: sizes[size],
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
...props,
|
|
19
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
20
|
+
fillRule: "evenodd",
|
|
21
|
+
clipRule: "evenodd",
|
|
22
|
+
d: "M18.1537 8.38643C18.6307 8.88555 18.6127 9.6768 18.1136 10.1537L11.8345 16.1537C11.3572 16.6098 10.6076 16.6161 10.1227 16.1682L6.40178 12.7307C5.8947 12.2622 5.86339 11.4714 6.33185 10.9643C6.80031 10.4572 7.59114 10.4259 8.09823 10.8943L10.9565 13.5349L16.3864 8.34626C16.8856 7.86933 17.6768 7.88731 18.1537 8.38643Z",
|
|
23
|
+
fill: "currentColor"
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Path","Svg","jsx","_jsx","SuccessIcon","size","props","sizes","small","medium","width","height","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../../../src","sources":["components/Seal/components/SuccessIcon/index.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7C,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,IAAI,GAAG,QAAQ;EAAE,GAAGC;AAAqB,CAAC,KAAK;EAC3E,MAAMC,KAAK,GAAG;IACZC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV,CAAC;EAED,oBACEN,IAAA,CAACF,GAAG;IACFS,KAAK,EAAEH,KAAK,CAACF,IAAI,CAAE;IACnBM,MAAM,EAAEJ,KAAK,CAACF,IAAI,CAAE;IACpBO,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IAAA,GACPP,KAAK;IAAAQ,QAAA,eAETX,IAAA,CAACH,IAAI;MACHe,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,iUAAiU;MACnUJ,IAAI,EAAC;IAAc,CACpB;EAAC,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { AddIcon } from "./AddIcon/index.js";
|
|
4
|
+
export { SuccessIcon } from "./SuccessIcon/index.js";
|
|
5
|
+
export { ErrorIcon } from "./ErrorIcon/index.js";
|
|
6
|
+
export { AlertIcon } from "./AlertIcon/index.js";
|
|
7
|
+
export { MinusIcon } from "./MinusIcon/index.js";
|
|
8
|
+
export { RightIcon } from "./RightIcon/index.js";
|
|
9
|
+
export { LeftIcon } from "./LeftIcon/index.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AddIcon","SuccessIcon","ErrorIcon","AlertIcon","MinusIcon","RightIcon","LeftIcon"],"sourceRoot":"../../../../../src","sources":["components/Seal/components/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,oBAAW;AACnC,SAASC,WAAW,QAAQ,wBAAe;AAC3C,SAASC,SAAS,QAAQ,sBAAa;AACvC,SAASC,SAAS,QAAQ,sBAAa;AACvC,SAASC,SAAS,QAAQ,sBAAa;AACvC,SAASC,SAAS,QAAQ,sBAAa;AACvC,SAASC,QAAQ,QAAQ,qBAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Seal/enums/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let SealVariantEnum = /*#__PURE__*/function (SealVariantEnum) {
|
|
4
|
+
SealVariantEnum["ADD"] = "add";
|
|
5
|
+
SealVariantEnum["SUCCESS"] = "success";
|
|
6
|
+
SealVariantEnum["ERROR"] = "error";
|
|
7
|
+
SealVariantEnum["ALERT"] = "alert";
|
|
8
|
+
SealVariantEnum["MINUS"] = "minus";
|
|
9
|
+
SealVariantEnum["LEFT"] = "left";
|
|
10
|
+
SealVariantEnum["RIGHT"] = "right";
|
|
11
|
+
return SealVariantEnum;
|
|
12
|
+
}({});
|
|
13
|
+
//# sourceMappingURL=seal-variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SealVariantEnum"],"sourceRoot":"../../../../../src","sources":["components/Seal/enums/seal-variant.ts"],"mappings":";;AAAA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { View } from "react-native";
|
|
5
|
+
import { AddIcon, ErrorIcon, MinusIcon, SuccessIcon, RightIcon, LeftIcon, AlertIcon } from "./components/index.js";
|
|
6
|
+
import { merge } from "@butterfly/tailwind-preset";
|
|
7
|
+
import { sealVariants } from "./assets/class-variants.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export const Seal = ({
|
|
10
|
+
variant,
|
|
11
|
+
size = "medium",
|
|
12
|
+
inverted = false,
|
|
13
|
+
className = ""
|
|
14
|
+
}) => {
|
|
15
|
+
const mappedColorByVariant = {
|
|
16
|
+
add: inverted ? "#7A50D9" : "#F2F7F7",
|
|
17
|
+
success: inverted ? "#3DCC78" : "#F2F7F7",
|
|
18
|
+
error: inverted ? "#E65245" : "#F2F7F7",
|
|
19
|
+
alert: inverted ? "#FF8B59" : "#F2F7F7",
|
|
20
|
+
minus: inverted ? "#B6C2C2" : "#F2F7F7",
|
|
21
|
+
right: inverted ? "#B6C2C2" : "#F2F7F7",
|
|
22
|
+
left: inverted ? "#B6C2C2" : "#F2F7F7"
|
|
23
|
+
};
|
|
24
|
+
const iconMap = {
|
|
25
|
+
success: SuccessIcon,
|
|
26
|
+
add: AddIcon,
|
|
27
|
+
error: ErrorIcon,
|
|
28
|
+
right: RightIcon,
|
|
29
|
+
left: LeftIcon,
|
|
30
|
+
minus: MinusIcon,
|
|
31
|
+
alert: AlertIcon
|
|
32
|
+
};
|
|
33
|
+
const Icon = iconMap[variant];
|
|
34
|
+
return /*#__PURE__*/_jsx(View, {
|
|
35
|
+
className: merge(sealVariants({
|
|
36
|
+
size,
|
|
37
|
+
variant,
|
|
38
|
+
inverted
|
|
39
|
+
}), className),
|
|
40
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
41
|
+
size: size,
|
|
42
|
+
color: mappedColorByVariant[variant]
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","AddIcon","ErrorIcon","MinusIcon","SuccessIcon","RightIcon","LeftIcon","AlertIcon","merge","sealVariants","jsx","_jsx","Seal","variant","size","inverted","className","mappedColorByVariant","add","success","error","alert","minus","right","left","iconMap","Icon","children","color"],"sourceRoot":"../../../../src","sources":["components/Seal/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SACEC,OAAO,EACPC,SAAS,EACTC,SAAS,EACTC,WAAW,EACXC,SAAS,EACTC,QAAQ,EACRC,SAAS,QACJ,uBAAc;AACrB,SAASC,KAAK,QAAQ,4BAA4B;AAClD,SAASC,YAAY,QAAQ,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvD,OAAO,MAAMC,IAAyB,GAAGA,CAAC;EACxCC,OAAO;EACPC,IAAI,GAAG,QAAQ;EACfC,QAAQ,GAAG,KAAK;EAChBC,SAAS,GAAG;AACd,CAAC,KAAK;EACJ,MAAMC,oBAAoB,GAAG;IAC3BC,GAAG,EAAEH,QAAQ,GAAG,SAAS,GAAG,SAAS;IACrCI,OAAO,EAAEJ,QAAQ,GAAG,SAAS,GAAG,SAAS;IACzCK,KAAK,EAAEL,QAAQ,GAAG,SAAS,GAAG,SAAS;IACvCM,KAAK,EAAEN,QAAQ,GAAG,SAAS,GAAG,SAAS;IACvCO,KAAK,EAAEP,QAAQ,GAAG,SAAS,GAAG,SAAS;IACvCQ,KAAK,EAAER,QAAQ,GAAG,SAAS,GAAG,SAAS;IACvCS,IAAI,EAAET,QAAQ,GAAG,SAAS,GAAG;EAC/B,CAAC;EAED,MAAMU,OAAO,GAAG;IACdN,OAAO,EAAEf,WAAW;IACpBc,GAAG,EAAEjB,OAAO;IACZmB,KAAK,EAAElB,SAAS;IAChBqB,KAAK,EAAElB,SAAS;IAChBmB,IAAI,EAAElB,QAAQ;IACdgB,KAAK,EAAEnB,SAAS;IAChBkB,KAAK,EAAEd;EACT,CAAC;EAED,MAAMmB,IAAI,GAAGD,OAAO,CAACZ,OAAO,CAAC;EAE7B,oBACEF,IAAA,CAACX,IAAI;IACHgB,SAAS,EAAER,KAAK,CAACC,YAAY,CAAC;MAAEK,IAAI;MAAED,OAAO;MAAEE;IAAS,CAAC,CAAC,EAAEC,SAAS,CAAE;IAAAW,QAAA,eAEvEhB,IAAA,CAACe,IAAI;MAACZ,IAAI,EAAEA,IAAK;MAACc,KAAK,EAAEX,oBAAoB,CAACJ,OAAO;IAAE,CAAE;EAAC,CACtD,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Seal/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { InformationStatus } from "../../../InformationStatus/index.js";
|
|
4
|
+
import { InformationStatusOptionsEnum } from "../../../InformationStatus/enums.js";
|
|
5
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
export function Icon(props) {
|
|
7
|
+
const {
|
|
8
|
+
variants,
|
|
9
|
+
customIcon,
|
|
10
|
+
size = "medium"
|
|
11
|
+
} = props;
|
|
12
|
+
function renderIcon() {
|
|
13
|
+
if (variants === "success") {
|
|
14
|
+
return /*#__PURE__*/_jsx(InformationStatus, {
|
|
15
|
+
status: InformationStatusOptionsEnum.SUCCESS,
|
|
16
|
+
size: size
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (variants === "error") {
|
|
20
|
+
return /*#__PURE__*/_jsx(InformationStatus, {
|
|
21
|
+
status: InformationStatusOptionsEnum.ERROR,
|
|
22
|
+
size: size
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (variants === "warning") {
|
|
26
|
+
return /*#__PURE__*/_jsx(InformationStatus, {
|
|
27
|
+
status: InformationStatusOptionsEnum.WARNING,
|
|
28
|
+
size: size
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
if (variants === "add") {
|
|
32
|
+
return /*#__PURE__*/_jsx(InformationStatus, {
|
|
33
|
+
status: InformationStatusOptionsEnum.ADD,
|
|
34
|
+
size: size
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
if (variants === "custom" && customIcon) {
|
|
38
|
+
return customIcon;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
42
|
+
children: renderIcon()
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["InformationStatus","InformationStatusOptionsEnum","jsx","_jsx","Fragment","_Fragment","Icon","props","variants","customIcon","size","renderIcon","status","SUCCESS","ERROR","WARNING","ADD","children"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/icon/index.tsx"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,qCAA4B;AAC9D,SAASC,4BAA4B,QAAQ,qCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAEhF,OAAO,SAASC,IAAIA,CAACC,KAAgB,EAAE;EACrC,MAAM;IAAEC,QAAQ;IAAEC,UAAU;IAAEC,IAAI,GAAG;EAAS,CAAC,GAAGH,KAAK;EAEvD,SAASI,UAAUA,CAAA,EAAG;IACpB,IAAIH,QAAQ,KAAK,SAAS,EAAE;MAC1B,oBACEL,IAAA,CAACH,iBAAiB;QAChBY,MAAM,EAAEX,4BAA4B,CAACY,OAAQ;QAC7CH,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,OAAO,EAAE;MACxB,oBACEL,IAAA,CAACH,iBAAiB;QAChBY,MAAM,EAAEX,4BAA4B,CAACa,KAAM;QAC3CJ,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,SAAS,EAAE;MAC1B,oBACEL,IAAA,CAACH,iBAAiB;QAChBY,MAAM,EAAEX,4BAA4B,CAACc,OAAQ;QAC7CL,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,KAAK,EAAE;MACtB,oBACEL,IAAA,CAACH,iBAAiB;QAChBY,MAAM,EAAEX,4BAA4B,CAACe,GAAI;QACzCN,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,QAAQ,IAAIC,UAAU,EAAE;MACvC,OAAOA,UAAU;IACnB;EACF;EAEA,oBAAON,IAAA,CAAAE,SAAA;IAAAY,QAAA,EAAGN,UAAU,CAAC;EAAC,CAAG,CAAC;AAC5B","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let IconVariants = /*#__PURE__*/function (IconVariants) {
|
|
4
|
+
IconVariants["SUCCESS"] = "success";
|
|
5
|
+
IconVariants["ERROR"] = "error";
|
|
6
|
+
IconVariants["WARNING"] = "warning";
|
|
7
|
+
IconVariants["ADD"] = "add";
|
|
8
|
+
IconVariants["CUSTOM"] = "custom";
|
|
9
|
+
return IconVariants;
|
|
10
|
+
}({});
|
|
11
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IconVariants"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/icon/types.ts"],"mappings":";;AAAA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Title/components/index.ts"],"mappings":";;AAAA,cAAc,iBAAQ;AACtB,cAAc,mBAAU","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export function Marker(props) {
|
|
6
|
+
const {
|
|
7
|
+
size = "medium",
|
|
8
|
+
color = "chia"
|
|
9
|
+
} = props;
|
|
10
|
+
const mappedSize = {
|
|
11
|
+
small: "w-700 h-300",
|
|
12
|
+
medium: "w-800 h-[6px]"
|
|
13
|
+
}[size];
|
|
14
|
+
const mappedColor = {
|
|
15
|
+
pear: "bg-pear-500",
|
|
16
|
+
java: "bg-java-500",
|
|
17
|
+
grape: "bg-grape-500",
|
|
18
|
+
pitaya: "bg-pitaya-500",
|
|
19
|
+
tangerine: "bg-tangerine-500",
|
|
20
|
+
mango: "bg-mango-500",
|
|
21
|
+
blackberry: "bg-blackberry-500",
|
|
22
|
+
chia: "bg-chia-600",
|
|
23
|
+
ghost: "bg-chia-200"
|
|
24
|
+
}[color];
|
|
25
|
+
return /*#__PURE__*/_jsx(View, {
|
|
26
|
+
className: `${mappedColor} ${mappedSize} rounded-500`
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","jsx","_jsx","Marker","props","size","color","mappedSize","small","medium","mappedColor","pear","java","grape","pitaya","tangerine","mango","blackberry","chia","ghost","className"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/marker/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpC,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAM;IAAEC,IAAI,GAAG,QAAQ;IAAEC,KAAK,GAAG;EAAO,CAAC,GAAGF,KAAK;EAEjD,MAAMG,UAAU,GAAG;IACjBC,KAAK,EAAE,aAAa;IACpBC,MAAM,EAAE;EACV,CAAC,CAACJ,IAAI,CAAC;EAEP,MAAMK,WAAW,GAAG;IAClBC,IAAI,EAAE,aAAa;IACnBC,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE,cAAc;IACrBC,MAAM,EAAE,eAAe;IACvBC,SAAS,EAAE,kBAAkB;IAC7BC,KAAK,EAAE,cAAc;IACrBC,UAAU,EAAE,mBAAmB;IAC/BC,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;EACT,CAAC,CAACb,KAAK,CAAC;EAER,oBAAOJ,IAAA,CAACF,IAAI;IAACoB,SAAS,EAAE,GAAGV,WAAW,IAAIH,UAAU;EAAe,CAAE,CAAC;AACxE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/Title/components/marker/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import { Icon, Marker } from "./components/index.js";
|
|
5
|
+
import { merge } from "@butterfly/tailwind-preset";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function Title(props) {
|
|
9
|
+
const {
|
|
10
|
+
children,
|
|
11
|
+
className,
|
|
12
|
+
variant = "medium",
|
|
13
|
+
head
|
|
14
|
+
} = props;
|
|
15
|
+
const variantClass = cva("", {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
"2xlarge": "pb-600",
|
|
19
|
+
xlarge: "pb-500",
|
|
20
|
+
large: "pb-600",
|
|
21
|
+
medium: "pb-600",
|
|
22
|
+
small: "pb-400",
|
|
23
|
+
xsmall: "pb-400"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
})({
|
|
27
|
+
variant
|
|
28
|
+
});
|
|
29
|
+
const mergedClassName = merge("flex flex-col max-w-[344px]", className);
|
|
30
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
31
|
+
className: mergedClassName,
|
|
32
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
33
|
+
className: `${variantClass}`,
|
|
34
|
+
children: head
|
|
35
|
+
}), children]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
Title.Icon = Icon;
|
|
39
|
+
Title.Marker = Marker;
|
|
40
|
+
export { Title };
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Icon","Marker","merge","cva","jsx","_jsx","jsxs","_jsxs","Title","props","children","className","variant","head","variantClass","variants","xlarge","large","medium","small","xsmall","mergedClassName"],"sourceRoot":"../../../../src","sources":["components/Title/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,MAAM,QAAQ,uBAAc;AAE3C,SAASC,KAAK,QAAQ,4BAA4B;AAClD,SAASC,GAAG,QAAQ,0BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,SAASC,KAAKA,CAACC,KAAiB,EAAE;EAChC,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,OAAO,GAAG,QAAQ;IAAEC;EAAK,CAAC,GAAGJ,KAAK;EAE/D,MAAMK,YAAY,GAAGX,GAAG,CAAC,EAAE,EAAE;IAC3BY,QAAQ,EAAE;MACRH,OAAO,EAAE;QACP,SAAS,EAAE,QAAQ;QACnBI,MAAM,EAAE,QAAQ;QAChBC,KAAK,EAAE,QAAQ;QACfC,MAAM,EAAE,QAAQ;QAChBC,KAAK,EAAE,QAAQ;QACfC,MAAM,EAAE;MACV;IACF;EACF,CAAC,CAAC,CAAC;IAAER;EAAQ,CAAC,CAAC;EAEf,MAAMS,eAAe,GAAGnB,KAAK,CAAC,6BAA6B,EAAES,SAAS,CAAC;EAEvE,oBACEJ,KAAA,CAACR,IAAI;IAACY,SAAS,EAAEU,eAAgB;IAAAX,QAAA,gBAC/BL,IAAA,CAACN,IAAI;MAACY,SAAS,EAAE,GAAGG,YAAY,EAAG;MAAAJ,QAAA,EAAEG;IAAI,CAAO,CAAC,EAChDH,QAAQ;EAAA,CACL,CAAC;AAEX;AAEAF,KAAK,CAACR,IAAI,GAAGA,IAAI;AACjBQ,KAAK,CAACP,MAAM,GAAGA,MAAM;AAErB,SAASO,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Title/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
const toggleVariants = cva(["absolute top-100 left-100 right-100 bottom-100 transition-all duration-300 rounded-500"], {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
grape: ["bg-grape-500"],
|
|
8
|
+
java: ["bg-java-500"],
|
|
9
|
+
pear: ["bg-pear-500"],
|
|
10
|
+
tangerine: ["bg-tangerine-500"],
|
|
11
|
+
chia: ["bg-chia-800"]
|
|
12
|
+
},
|
|
13
|
+
checked: {
|
|
14
|
+
true: "",
|
|
15
|
+
false: "bg-chia-400"
|
|
16
|
+
},
|
|
17
|
+
disabled: {
|
|
18
|
+
true: "cursor-not-allowed opacity-50",
|
|
19
|
+
false: "cursor-pointer"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
compoundVariants: [{
|
|
23
|
+
checked: false,
|
|
24
|
+
variant: "chia",
|
|
25
|
+
class: "bg-chia-400"
|
|
26
|
+
}],
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "java",
|
|
29
|
+
checked: false,
|
|
30
|
+
disabled: false
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export { toggleVariants };
|
|
34
|
+
//# sourceMappingURL=class-variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cva","toggleVariants","variants","variant","grape","java","pear","tangerine","chia","checked","true","false","disabled","compoundVariants","class","defaultVariants"],"sourceRoot":"../../../../../src","sources":["components/Toggle/assets/class-variants.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAE9C,MAAMC,cAAc,GAAGD,GAAG,CACxB,CACE,wFAAwF,CACzF,EACD;EACEE,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,KAAK,EAAE,CAAC,cAAc,CAAC;MACvBC,IAAI,EAAE,CAAC,aAAa,CAAC;MACrBC,IAAI,EAAE,CAAC,aAAa,CAAC;MACrBC,SAAS,EAAE,CAAC,kBAAkB,CAAC;MAC/BC,IAAI,EAAE,CAAC,aAAa;IACtB,CAAC;IACDC,OAAO,EAAE;MACPC,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;IACT,CAAC;IACDC,QAAQ,EAAE;MACRF,IAAI,EAAE,+BAA+B;MACrCC,KAAK,EAAE;IACT;EACF,CAAC;EACDE,gBAAgB,EAAE,CAChB;IACEJ,OAAO,EAAE,KAAK;IACdN,OAAO,EAAE,MAAM;IACfW,KAAK,EAAE;EACT,CAAC,CACF;EACDC,eAAe,EAAE;IACfZ,OAAO,EAAE,MAAM;IACfM,OAAO,EAAE,KAAK;IACdG,QAAQ,EAAE;EACZ;AACF,CACF,CAAC;AAED,SAASX,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Toggle/enums/index.ts"],"mappings":";;AAAA,cAAc,cAAW","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let VariantEnum = /*#__PURE__*/function (VariantEnum) {
|
|
4
|
+
VariantEnum["GRAPE"] = "grape";
|
|
5
|
+
VariantEnum["JAVA"] = "java";
|
|
6
|
+
VariantEnum["PEAR"] = "pear";
|
|
7
|
+
VariantEnum["TANGERINE"] = "tangerine";
|
|
8
|
+
VariantEnum["CHIA"] = "chia";
|
|
9
|
+
return VariantEnum;
|
|
10
|
+
}({});
|
|
11
|
+
//# sourceMappingURL=variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VariantEnum"],"sourceRoot":"../../../../../src","sources":["components/Toggle/enums/variant.ts"],"mappings":";;AAAA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, View } from "react-native";
|
|
4
|
+
import { VariantEnum } from "./enums/index.js";
|
|
5
|
+
import { merge } from "@butterfly/tailwind-preset";
|
|
6
|
+
import { toggleVariants } from "./assets/class-variants.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export function Toggle(props) {
|
|
9
|
+
const {
|
|
10
|
+
checked,
|
|
11
|
+
disabled = false,
|
|
12
|
+
variant = VariantEnum.JAVA,
|
|
13
|
+
onChange
|
|
14
|
+
} = props;
|
|
15
|
+
const handleToggle = () => {
|
|
16
|
+
if (disabled) return;
|
|
17
|
+
if (onChange) {
|
|
18
|
+
onChange(!checked);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const mergeToggleClass = merge(toggleVariants({
|
|
22
|
+
variant,
|
|
23
|
+
checked,
|
|
24
|
+
disabled
|
|
25
|
+
}), disabled && !checked ? "bg-chia-400" : "");
|
|
26
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
27
|
+
onPress: handleToggle,
|
|
28
|
+
className: "w-[40px] h-[24px] bg-chia-400 rounded-500",
|
|
29
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
30
|
+
className: mergeToggleClass,
|
|
31
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
32
|
+
className: `absolute left-300 bottom-300 w-600 h-600 bg-chia-200 rounded-400 transition-all duration-300 ${checked ? "translate-x-[16px]" : "translate-x-100"}`
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","View","VariantEnum","merge","toggleVariants","jsx","_jsx","Toggle","props","checked","disabled","variant","JAVA","onChange","handleToggle","mergeToggleClass","onPress","className","children"],"sourceRoot":"../../../../src","sources":["components/Toggle/index.tsx"],"mappings":";;AACA,SAASA,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAC9C,SAASC,WAAW,QAAQ,kBAAS;AACrC,SAASC,KAAK,QAAQ,4BAA4B;AAClD,SAASC,cAAc,QAAQ,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzD,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAM;IACJC,OAAO;IACPC,QAAQ,GAAG,KAAK;IAChBC,OAAO,GAAGT,WAAW,CAACU,IAAI;IAC1BC;EACF,CAAC,GAAGL,KAAK;EAET,MAAMM,YAAY,GAAGA,CAAA,KAAM;IACzB,IAAIJ,QAAQ,EAAE;IAEd,IAAIG,QAAQ,EAAE;MACZA,QAAQ,CAAC,CAACJ,OAAO,CAAC;IACpB;EACF,CAAC;EAED,MAAMM,gBAAgB,GAAGZ,KAAK,CAC5BC,cAAc,CAAC;IAAEO,OAAO;IAAEF,OAAO;IAAEC;EAAS,CAAC,CAAC,EAC9CA,QAAQ,IAAI,CAACD,OAAO,GAAG,aAAa,GAAG,EACzC,CAAC;EAED,oBACEH,IAAA,CAACN,SAAS;IACRgB,OAAO,EAAEF,YAAa;IACtBG,SAAS,EAAC,2CAA2C;IAAAC,QAAA,eAErDZ,IAAA,CAACL,IAAI;MAACgB,SAAS,EAAEF,gBAAiB;MAAAG,QAAA,eAChCZ,IAAA,CAACL,IAAI;QACHgB,SAAS,EAAE,gGACTR,OAAO,GAAG,oBAAoB,GAAG,iBAAiB;MACjD,CACE;IAAC,CACJ;EAAC,CACE,CAAC;AAEhB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Toggle/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Text } from "react-native";
|
|
5
|
+
import { merge } from "@butterfly/tailwind-preset";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Universal Typography component for React Native.
|
|
9
|
+
*
|
|
10
|
+
* This component provides:
|
|
11
|
+
* - Type-safe access to all typography variants from your design tokens
|
|
12
|
+
* - Automatic font-family mapping based on font weight
|
|
13
|
+
* - NativeWind className support for additional styling
|
|
14
|
+
* - Consistent typography across your React Native app
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Display text with automatic font mapping
|
|
18
|
+
* <Typography variant="text-display_large_700">Hero Title</Typography>
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Body text with medium weight
|
|
22
|
+
* <Typography variant="text-body_medium_500">Content text</Typography>
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // With additional styling
|
|
26
|
+
* <Typography variant="text-label_small_300" className="text-gray-600">
|
|
27
|
+
* Form label
|
|
28
|
+
* </Typography>
|
|
29
|
+
*/
|
|
30
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
|
+
export const Typography = ({
|
|
32
|
+
variant,
|
|
33
|
+
className,
|
|
34
|
+
style,
|
|
35
|
+
children,
|
|
36
|
+
...props
|
|
37
|
+
}) => {
|
|
38
|
+
const textClassName = merge(`font-nunito`, variant, className);
|
|
39
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
40
|
+
className: textClassName,
|
|
41
|
+
...props,
|
|
42
|
+
children: children
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Typography.displayName = "Typography";
|
|
46
|
+
export default Typography;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","merge","jsx","_jsx","Typography","variant","className","style","children","props","textClassName","displayName"],"sourceRoot":"../../../../src","sources":["components/Typography/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,KAAK,QAAQ,4BAA4B;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtBA,SAAAC,GAAA,IAAAC,IAAA;AAuBA,OAAO,MAAMC,UAAqC,GAAGA,CAAC;EACpDC,OAAO;EACPC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,aAAa,GAAGT,KAAK,CAAC,aAAa,EAAEI,OAAO,EAAEC,SAAS,CAAC;EAE9D,oBACEH,IAAA,CAACH,IAAI;IAACM,SAAS,EAAEI,aAAc;IAAA,GAAKD,KAAK;IAAAD,QAAA,EACtCA;EAAQ,CACL,CAAC;AAEX,CAAC;AAEDJ,UAAU,CAACO,WAAW,GAAG,YAAY;AACrC,eAAeP,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Typography/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export * from "./Button/index.js";
|
|
4
|
+
export * from "./Chip/index.js";
|
|
5
|
+
export * from "./InformationStatus/index.js";
|
|
6
|
+
export * from "./InputCheckbox/index.js";
|
|
7
|
+
export * from "./InputOTP/index.js";
|
|
8
|
+
export * from "./HighlightedText/index.js";
|
|
9
|
+
export * from "./LoadingDots/index.js";
|
|
10
|
+
export * from "./Seal/index.js";
|
|
11
|
+
export * from "./Title/index.js";
|
|
12
|
+
export * from "./Toggle/index.js";
|
|
13
|
+
export * from "./Typography/index.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,mBAAU;AACxB,cAAc,iBAAQ;AACtB,cAAc,8BAAqB;AACnC,cAAc,0BAAiB;AAC/B,cAAc,qBAAY;AAC1B,cAAc,4BAAmB;AACjC,cAAc,wBAAe;AAC7B,cAAc,iBAAQ;AACtB,cAAc,kBAAS;AACvB,cAAc,mBAAU;AACxB,cAAc,uBAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":";;AAAA,cAAc,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useFonts as useExpoFonts } from "expo-font";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A hook to load the custom fonts for the design system.
|
|
7
|
+
* This should be used in the root component of the application (e.g., App.tsx).
|
|
8
|
+
*
|
|
9
|
+
* @returns A boolean indicating if the fonts have been loaded, and an error object if one occurred.
|
|
10
|
+
*/
|
|
11
|
+
export const useBrandFonts = () => {
|
|
12
|
+
const [fontsLoaded, fontError] = useExpoFonts({
|
|
13
|
+
"Nunito-Bold": require("../../assets/fonts/Nunito-Bold.ttf"),
|
|
14
|
+
"Nunito-BoldItalic": require("../../assets/fonts/Nunito-BoldItalic.ttf"),
|
|
15
|
+
"Nunito-Italic": require("../../assets/fonts/Nunito-Italic.ttf"),
|
|
16
|
+
"Nunito-Medium": require("../../assets/fonts/Nunito-Medium.ttf"),
|
|
17
|
+
"Nunito-MediumItalic": require("../../assets/fonts/Nunito-MediumItalic.ttf"),
|
|
18
|
+
"Nunito-Regular": require("../../assets/fonts/Nunito-Regular.ttf"),
|
|
19
|
+
"Nunito-SemiBold": require("../../assets/fonts/Nunito-SemiBold.ttf"),
|
|
20
|
+
"Nunito-SemiBoldItalic": require("../../assets/fonts/Nunito-SemiBoldItalic.ttf")
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
fontsLoaded,
|
|
24
|
+
fontError
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=use-fonts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useFonts","useExpoFonts","useBrandFonts","fontsLoaded","fontError","require"],"sourceRoot":"../../../src","sources":["hooks/use-fonts.ts"],"mappings":";;AAAA,SAASA,QAAQ,IAAIC,YAAY,QAAQ,WAAW;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAM,CAACC,WAAW,EAAEC,SAAS,CAAC,GAAGH,YAAY,CAAC;IAC5C,aAAa,EAAEI,OAAO,CAAC,oCAAoC,CAAC;IAC5D,mBAAmB,EAAEA,OAAO,CAAC,0CAA0C,CAAC;IACxE,eAAe,EAAEA,OAAO,CAAC,sCAAsC,CAAC;IAChE,eAAe,EAAEA,OAAO,CAAC,sCAAsC,CAAC;IAChE,qBAAqB,EAAEA,OAAO,CAAC,4CAA4C,CAAC;IAC5E,gBAAgB,EAAEA,OAAO,CAAC,uCAAuC,CAAC;IAClE,iBAAiB,EAAEA,OAAO,CAAC,wCAAwC,CAAC;IACpE,uBAAuB,EAAEA,OAAO,CAAC,8CAA8C;EACjF,CAAC,CAAC;EAEF,OAAO;IAAEF,WAAW;IAAEC;EAAU,CAAC;AACnC,CAAC","ignoreList":[]}
|