@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,619 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-native";
|
|
2
|
+
import { Title } from "./index";
|
|
3
|
+
import { GradientDocLab200BasicPink } from "@butterfly/icons/native";
|
|
4
|
+
|
|
5
|
+
import { View } from "react-native";
|
|
6
|
+
import { HighlightedText } from "../HighlightedText";
|
|
7
|
+
import { IconVariants } from "./components/icon/types";
|
|
8
|
+
|
|
9
|
+
const meta = {
|
|
10
|
+
title: "Components/Title",
|
|
11
|
+
component: Title,
|
|
12
|
+
parameters: {
|
|
13
|
+
layout: "centered",
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
component:
|
|
17
|
+
"Title component with multiple variants, sizes, and states matching the Figma design system.",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
tags: ["autodocs"],
|
|
22
|
+
args: {
|
|
23
|
+
children: "Default Title",
|
|
24
|
+
head: <Title.Marker />,
|
|
25
|
+
},
|
|
26
|
+
} satisfies Meta<typeof Title>;
|
|
27
|
+
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
|
|
31
|
+
export const WithMarker: Story = {
|
|
32
|
+
render: () => (
|
|
33
|
+
<View className="flex items-center">
|
|
34
|
+
<Title head={<Title.Marker />}>
|
|
35
|
+
<HighlightedText text="Title" highlightText="with marker" />
|
|
36
|
+
</Title>
|
|
37
|
+
</View>
|
|
38
|
+
),
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
description: {
|
|
42
|
+
story: "Title with Marker with default value.",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const WithIcon: Story = {
|
|
49
|
+
render: () => (
|
|
50
|
+
<View className="flex items-center">
|
|
51
|
+
<Title head={<Title.Icon variants={IconVariants.WARNING} />}>
|
|
52
|
+
<HighlightedText text="Warning" highlightText="icon" />
|
|
53
|
+
</Title>
|
|
54
|
+
</View>
|
|
55
|
+
),
|
|
56
|
+
parameters: {
|
|
57
|
+
docs: {
|
|
58
|
+
description: {
|
|
59
|
+
story: "Title with Icon with default value.",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const WithCustomIcon: Story = {
|
|
66
|
+
render: () => {
|
|
67
|
+
return (
|
|
68
|
+
<View className="flex items-center">
|
|
69
|
+
<Title
|
|
70
|
+
head={
|
|
71
|
+
<Title.Icon
|
|
72
|
+
size="medium"
|
|
73
|
+
variants={IconVariants.CUSTOM}
|
|
74
|
+
customIcon={<GradientDocLab200BasicPink size={48} />}
|
|
75
|
+
/>
|
|
76
|
+
}
|
|
77
|
+
>
|
|
78
|
+
<HighlightedText
|
|
79
|
+
text="Custom"
|
|
80
|
+
highlightText="icon"
|
|
81
|
+
className="text-headline_large_300 "
|
|
82
|
+
highlightTextClassName="text-headline_large_700"
|
|
83
|
+
/>
|
|
84
|
+
</Title>
|
|
85
|
+
</View>
|
|
86
|
+
);
|
|
87
|
+
},
|
|
88
|
+
parameters: {
|
|
89
|
+
docs: {
|
|
90
|
+
description: {
|
|
91
|
+
story: "Title with Icon receives a config to render a custom icon.",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const Large2X: Story = {
|
|
98
|
+
render: () => {
|
|
99
|
+
function renderContent() {
|
|
100
|
+
return (
|
|
101
|
+
<>
|
|
102
|
+
<HighlightedText
|
|
103
|
+
text="Sub"
|
|
104
|
+
highlightText="highlight"
|
|
105
|
+
className="text-headline_large_300 "
|
|
106
|
+
highlightTextClassName="text-headline_large_500"
|
|
107
|
+
/>
|
|
108
|
+
<HighlightedText
|
|
109
|
+
text="Sub"
|
|
110
|
+
highlightText="highlight"
|
|
111
|
+
className="text-headline_large_300 "
|
|
112
|
+
highlightTextClassName="text-headline_large_500"
|
|
113
|
+
/>
|
|
114
|
+
<HighlightedText
|
|
115
|
+
text="Curabitur blandit tempus porttitor."
|
|
116
|
+
className="mt-400"
|
|
117
|
+
/>
|
|
118
|
+
<HighlightedText
|
|
119
|
+
text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
|
|
120
|
+
className="mt-400"
|
|
121
|
+
/>
|
|
122
|
+
</>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return (
|
|
127
|
+
<View className="flex items-center gap-700">
|
|
128
|
+
<Title
|
|
129
|
+
variant="2xlarge"
|
|
130
|
+
head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
|
|
131
|
+
>
|
|
132
|
+
{renderContent()}
|
|
133
|
+
</Title>
|
|
134
|
+
|
|
135
|
+
<Title
|
|
136
|
+
variant="2xlarge"
|
|
137
|
+
head={<Title.Marker size="medium" color="chia" />}
|
|
138
|
+
>
|
|
139
|
+
{renderContent()}
|
|
140
|
+
</Title>
|
|
141
|
+
</View>
|
|
142
|
+
);
|
|
143
|
+
},
|
|
144
|
+
parameters: {
|
|
145
|
+
docs: {
|
|
146
|
+
description: {
|
|
147
|
+
story: "Title 2x large with Headline, subtitle and multiples texts",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export const LargeX: Story = {
|
|
154
|
+
render: () => {
|
|
155
|
+
function renderContent() {
|
|
156
|
+
return (
|
|
157
|
+
<>
|
|
158
|
+
<HighlightedText
|
|
159
|
+
text="Sub"
|
|
160
|
+
highlightText="highlight"
|
|
161
|
+
className="text-headline_medium_300"
|
|
162
|
+
highlightTextClassName="text-headline_medium_500"
|
|
163
|
+
/>
|
|
164
|
+
<HighlightedText
|
|
165
|
+
text="Sub"
|
|
166
|
+
highlightText="highlight"
|
|
167
|
+
className="text-headline_medium_300"
|
|
168
|
+
highlightTextClassName="text-headline_medium_500"
|
|
169
|
+
/>
|
|
170
|
+
<HighlightedText
|
|
171
|
+
text="Curabitur blandit tempus porttitor."
|
|
172
|
+
className="mt-400 text-body_medium_500"
|
|
173
|
+
/>
|
|
174
|
+
<HighlightedText
|
|
175
|
+
text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
|
|
176
|
+
className="mt-400 text-body_medium_500"
|
|
177
|
+
/>
|
|
178
|
+
</>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return (
|
|
183
|
+
<View className="flex items-center gap-700">
|
|
184
|
+
<Title
|
|
185
|
+
variant="xlarge"
|
|
186
|
+
head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
|
|
187
|
+
>
|
|
188
|
+
{renderContent()}
|
|
189
|
+
</Title>
|
|
190
|
+
|
|
191
|
+
<Title
|
|
192
|
+
variant="xlarge"
|
|
193
|
+
head={<Title.Marker size="medium" color="chia" />}
|
|
194
|
+
>
|
|
195
|
+
{renderContent()}
|
|
196
|
+
</Title>
|
|
197
|
+
</View>
|
|
198
|
+
);
|
|
199
|
+
},
|
|
200
|
+
parameters: {
|
|
201
|
+
docs: {
|
|
202
|
+
description: {
|
|
203
|
+
story: "Title x large with Headline, subtitle and multiples texts",
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export const Large: Story = {
|
|
210
|
+
render: () => {
|
|
211
|
+
function renderContent() {
|
|
212
|
+
return (
|
|
213
|
+
<>
|
|
214
|
+
<HighlightedText
|
|
215
|
+
text="Sub"
|
|
216
|
+
highlightText="highlight"
|
|
217
|
+
className="text-headline_small_300"
|
|
218
|
+
highlightTextClassName="text-headline_small_500"
|
|
219
|
+
/>
|
|
220
|
+
<HighlightedText
|
|
221
|
+
text="Sub"
|
|
222
|
+
highlightText="highlight"
|
|
223
|
+
className="text-headline_small_300"
|
|
224
|
+
highlightTextClassName="text-headline_small_500"
|
|
225
|
+
/>
|
|
226
|
+
<HighlightedText
|
|
227
|
+
text="Curabitur blandit tempus porttitor."
|
|
228
|
+
className="mt-400 text-body_medium_500"
|
|
229
|
+
/>
|
|
230
|
+
<HighlightedText
|
|
231
|
+
text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
|
|
232
|
+
className="mt-400 text-body_medium_500"
|
|
233
|
+
/>
|
|
234
|
+
</>
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
return (
|
|
239
|
+
<View className="flex items-center gap-700">
|
|
240
|
+
<Title
|
|
241
|
+
variant="large"
|
|
242
|
+
head={<Title.Icon variants={IconVariants.SUCCESS} />}
|
|
243
|
+
>
|
|
244
|
+
{renderContent()}
|
|
245
|
+
</Title>
|
|
246
|
+
|
|
247
|
+
<Title variant="large" head={<Title.Marker color="chia" />}>
|
|
248
|
+
{renderContent()}
|
|
249
|
+
</Title>
|
|
250
|
+
</View>
|
|
251
|
+
);
|
|
252
|
+
},
|
|
253
|
+
parameters: {
|
|
254
|
+
docs: {
|
|
255
|
+
description: {
|
|
256
|
+
story: "Title large with Headline, subtitle and multiples texts",
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export const Medium: Story = {
|
|
263
|
+
render: () => {
|
|
264
|
+
function renderContent() {
|
|
265
|
+
return (
|
|
266
|
+
<>
|
|
267
|
+
<HighlightedText
|
|
268
|
+
text="Sub"
|
|
269
|
+
highlightText="highlight"
|
|
270
|
+
className="text-title_large_300"
|
|
271
|
+
highlightTextClassName="text-title_large_500"
|
|
272
|
+
/>
|
|
273
|
+
<HighlightedText
|
|
274
|
+
text="Sub"
|
|
275
|
+
highlightText="highlight"
|
|
276
|
+
className="text-title_large_300"
|
|
277
|
+
highlightTextClassName="text-title_large_500"
|
|
278
|
+
/>
|
|
279
|
+
<HighlightedText
|
|
280
|
+
text="Curabitur blandit tempus porttitor."
|
|
281
|
+
className="mt-400 text-body_medium_500"
|
|
282
|
+
/>
|
|
283
|
+
<HighlightedText
|
|
284
|
+
text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
|
|
285
|
+
className="mt-400 text-body_medium_500"
|
|
286
|
+
/>
|
|
287
|
+
</>
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return (
|
|
292
|
+
<View className="flex items-center gap-700">
|
|
293
|
+
<Title
|
|
294
|
+
variant="medium"
|
|
295
|
+
head={<Title.Icon variants={IconVariants.SUCCESS} />}
|
|
296
|
+
>
|
|
297
|
+
{renderContent()}
|
|
298
|
+
</Title>
|
|
299
|
+
|
|
300
|
+
<Title variant="medium" head={<Title.Marker color="chia" />}>
|
|
301
|
+
{renderContent()}
|
|
302
|
+
</Title>
|
|
303
|
+
</View>
|
|
304
|
+
);
|
|
305
|
+
},
|
|
306
|
+
parameters: {
|
|
307
|
+
docs: {
|
|
308
|
+
description: {
|
|
309
|
+
story: "Title medium with Headline, subtitle and multiples texts",
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export const Small: Story = {
|
|
316
|
+
render: () => {
|
|
317
|
+
function renderContent() {
|
|
318
|
+
return (
|
|
319
|
+
<>
|
|
320
|
+
<HighlightedText
|
|
321
|
+
text="Sub"
|
|
322
|
+
highlightText="highlight"
|
|
323
|
+
className="text-title_medium_300"
|
|
324
|
+
highlightTextClassName="text-title_medium_700"
|
|
325
|
+
/>
|
|
326
|
+
<HighlightedText
|
|
327
|
+
text="Sub"
|
|
328
|
+
highlightText="highlight"
|
|
329
|
+
className="text-title_medium_300"
|
|
330
|
+
highlightTextClassName="text-title_medium_700"
|
|
331
|
+
/>
|
|
332
|
+
<HighlightedText
|
|
333
|
+
text="Curabitur blandit tempus porttitor."
|
|
334
|
+
className="mt-400 text-body_small_500"
|
|
335
|
+
/>
|
|
336
|
+
<HighlightedText
|
|
337
|
+
text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
|
|
338
|
+
className="mt-400 text-body_small_500"
|
|
339
|
+
/>
|
|
340
|
+
</>
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return (
|
|
345
|
+
<View className="flex items-center gap-700">
|
|
346
|
+
<Title
|
|
347
|
+
variant="small"
|
|
348
|
+
head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
|
|
349
|
+
>
|
|
350
|
+
{renderContent()}
|
|
351
|
+
</Title>
|
|
352
|
+
|
|
353
|
+
<Title variant="small" head={<Title.Marker color="chia" />}>
|
|
354
|
+
{renderContent()}
|
|
355
|
+
</Title>
|
|
356
|
+
</View>
|
|
357
|
+
);
|
|
358
|
+
},
|
|
359
|
+
parameters: {
|
|
360
|
+
docs: {
|
|
361
|
+
description: {
|
|
362
|
+
story: "Title small with Headline, subtitle and multiples texts",
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export const XSmall: Story = {
|
|
369
|
+
render: () => {
|
|
370
|
+
function renderContent() {
|
|
371
|
+
return (
|
|
372
|
+
<>
|
|
373
|
+
<HighlightedText
|
|
374
|
+
text="Sub"
|
|
375
|
+
highlightText="highlight"
|
|
376
|
+
className="text-title_small_300"
|
|
377
|
+
highlightTextClassName="text-title_small_700"
|
|
378
|
+
/>
|
|
379
|
+
<HighlightedText
|
|
380
|
+
text="Sub"
|
|
381
|
+
highlightText="highlight"
|
|
382
|
+
className="text-title_small_300"
|
|
383
|
+
highlightTextClassName="text-title_small_700"
|
|
384
|
+
/>
|
|
385
|
+
<HighlightedText
|
|
386
|
+
text="Curabitur blandit tempus porttitor."
|
|
387
|
+
className="mt-400 text-body_small_500"
|
|
388
|
+
/>
|
|
389
|
+
<HighlightedText
|
|
390
|
+
text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
|
|
391
|
+
className="mt-400 text-body_small_500"
|
|
392
|
+
/>
|
|
393
|
+
</>
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
return (
|
|
398
|
+
<View className="flex items-center gap-700">
|
|
399
|
+
<Title
|
|
400
|
+
variant="xsmall"
|
|
401
|
+
head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
|
|
402
|
+
>
|
|
403
|
+
{renderContent()}
|
|
404
|
+
</Title>
|
|
405
|
+
|
|
406
|
+
<Title variant="xsmall" head={<Title.Marker color="chia" />}>
|
|
407
|
+
{renderContent()}
|
|
408
|
+
</Title>
|
|
409
|
+
</View>
|
|
410
|
+
);
|
|
411
|
+
},
|
|
412
|
+
parameters: {
|
|
413
|
+
docs: {
|
|
414
|
+
description: {
|
|
415
|
+
story: "Title x small with Headline, subtitle and multiples texts",
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
export const MarkerSizesAndVariants: Story = {
|
|
422
|
+
render: () => (
|
|
423
|
+
<>
|
|
424
|
+
<View className="flex flex-column gap-400 mb-700">
|
|
425
|
+
<HighlightedText
|
|
426
|
+
text="Small"
|
|
427
|
+
className="text-label_small_700 text-center"
|
|
428
|
+
/>
|
|
429
|
+
|
|
430
|
+
<View className="flex flex-row gap-300 justify-center">
|
|
431
|
+
<Title head={<Title.Marker color="blackberry" size="small" />}>
|
|
432
|
+
<HighlightedText
|
|
433
|
+
text="Blackberry"
|
|
434
|
+
className="text-label_small_700"
|
|
435
|
+
/>
|
|
436
|
+
</Title>
|
|
437
|
+
<Title head={<Title.Marker color="chia" size="small" />}>
|
|
438
|
+
<HighlightedText text="Chia" className="text-label_small_700" />
|
|
439
|
+
</Title>
|
|
440
|
+
<Title head={<Title.Marker color="java" size="small" />}>
|
|
441
|
+
<HighlightedText text="Java" className="text-label_small_700" />
|
|
442
|
+
</Title>
|
|
443
|
+
<Title head={<Title.Marker color="grape" size="small" />}>
|
|
444
|
+
<HighlightedText text="Grape" className="text-label_small_700" />
|
|
445
|
+
</Title>
|
|
446
|
+
</View>
|
|
447
|
+
|
|
448
|
+
<View className="flex flex-row gap-300 justify-center">
|
|
449
|
+
<Title head={<Title.Marker color="mango" size="small" />}>
|
|
450
|
+
<HighlightedText text="Mango" className="text-label_small_700" />
|
|
451
|
+
</Title>
|
|
452
|
+
<Title head={<Title.Marker color="tangerine" size="small" />}>
|
|
453
|
+
<HighlightedText
|
|
454
|
+
text="Tangerine"
|
|
455
|
+
className="text-label_small_700"
|
|
456
|
+
/>
|
|
457
|
+
</Title>
|
|
458
|
+
<Title head={<Title.Marker color="pear" size="small" />}>
|
|
459
|
+
<HighlightedText text="Pear" className="text-label_small_700" />
|
|
460
|
+
</Title>
|
|
461
|
+
<Title head={<Title.Marker color="ghost" size="small" />}>
|
|
462
|
+
<HighlightedText text="Ghost" className="text-label_small_700" />
|
|
463
|
+
</Title>
|
|
464
|
+
</View>
|
|
465
|
+
</View>
|
|
466
|
+
|
|
467
|
+
<View className="flex flex-column gap-400">
|
|
468
|
+
<HighlightedText
|
|
469
|
+
text="Medium"
|
|
470
|
+
className="text-label_medium_700 text-center"
|
|
471
|
+
/>
|
|
472
|
+
|
|
473
|
+
<View className="flex flex-row gap-300 justify-center">
|
|
474
|
+
<Title head={<Title.Marker color="blackberry" />}>
|
|
475
|
+
<HighlightedText
|
|
476
|
+
text="Blackberry"
|
|
477
|
+
className="text-label_medium_700"
|
|
478
|
+
/>
|
|
479
|
+
</Title>
|
|
480
|
+
<Title head={<Title.Marker color="chia" />}>
|
|
481
|
+
<HighlightedText text="Chia" className="text-label_medium_700" />
|
|
482
|
+
</Title>
|
|
483
|
+
<Title head={<Title.Marker color="java" />}>
|
|
484
|
+
<HighlightedText text="Java" className="text-label_medium_700" />
|
|
485
|
+
</Title>
|
|
486
|
+
<Title head={<Title.Marker color="grape" />}>
|
|
487
|
+
<HighlightedText text="Grape" className="text-label_medium_700" />
|
|
488
|
+
</Title>
|
|
489
|
+
</View>
|
|
490
|
+
|
|
491
|
+
<View className="flex flex-row gap-300 justify-center">
|
|
492
|
+
<Title head={<Title.Marker color="mango" />}>
|
|
493
|
+
<HighlightedText text="Mango" className="text-label_medium_700" />
|
|
494
|
+
</Title>
|
|
495
|
+
<Title head={<Title.Marker color="tangerine" />}>
|
|
496
|
+
<HighlightedText
|
|
497
|
+
text="Tangerine"
|
|
498
|
+
className="text-label_medium_700"
|
|
499
|
+
/>
|
|
500
|
+
</Title>
|
|
501
|
+
<Title head={<Title.Marker color="pear" />}>
|
|
502
|
+
<HighlightedText text="Pear" className="text-label_medium_700" />
|
|
503
|
+
</Title>
|
|
504
|
+
<Title head={<Title.Marker color="ghost" />}>
|
|
505
|
+
<HighlightedText text="Ghost" className="text-label_medium_700" />
|
|
506
|
+
</Title>
|
|
507
|
+
</View>
|
|
508
|
+
</View>
|
|
509
|
+
</>
|
|
510
|
+
),
|
|
511
|
+
parameters: {
|
|
512
|
+
docs: {
|
|
513
|
+
description: {
|
|
514
|
+
story:
|
|
515
|
+
"Complete showcase of the Title.Marker design system matching the Figma specifications with all variants, sizes, and states.",
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
export const IconSizesAndVariants: Story = {
|
|
522
|
+
render: () => (
|
|
523
|
+
<>
|
|
524
|
+
<View className="flex flex-column gap-300 mb-500">
|
|
525
|
+
<HighlightedText
|
|
526
|
+
text="Small"
|
|
527
|
+
className="text-label_small_700 text-center"
|
|
528
|
+
/>
|
|
529
|
+
|
|
530
|
+
<View className="flex flex-row gap-300">
|
|
531
|
+
<Title head={<Title.Icon size="small" variants={IconVariants.ADD} />}>
|
|
532
|
+
<HighlightedText text="add" className="text-label_small_700" />
|
|
533
|
+
</Title>
|
|
534
|
+
<Title
|
|
535
|
+
head={<Title.Icon size="small" variants={IconVariants.WARNING} />}
|
|
536
|
+
>
|
|
537
|
+
<HighlightedText text="warning" className="text-label_small_700" />
|
|
538
|
+
</Title>
|
|
539
|
+
<Title
|
|
540
|
+
head={<Title.Icon size="small" variants={IconVariants.ERROR} />}
|
|
541
|
+
>
|
|
542
|
+
<HighlightedText text="error" className="text-label_small_700" />
|
|
543
|
+
</Title>
|
|
544
|
+
<Title
|
|
545
|
+
head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
|
|
546
|
+
>
|
|
547
|
+
<HighlightedText text="success" className="text-label_small_700" />
|
|
548
|
+
</Title>
|
|
549
|
+
</View>
|
|
550
|
+
</View>
|
|
551
|
+
|
|
552
|
+
<View className="flex flex-column gap-300 mb-500">
|
|
553
|
+
<HighlightedText
|
|
554
|
+
text="Medium"
|
|
555
|
+
className="text-label_medium_700 text-center"
|
|
556
|
+
/>
|
|
557
|
+
|
|
558
|
+
<View className="flex flex-row gap-300">
|
|
559
|
+
<Title
|
|
560
|
+
head={<Title.Icon size="medium" variants={IconVariants.ADD} />}
|
|
561
|
+
>
|
|
562
|
+
<HighlightedText text="add" className="text-label_medium_700" />
|
|
563
|
+
</Title>
|
|
564
|
+
<Title
|
|
565
|
+
head={<Title.Icon size="medium" variants={IconVariants.WARNING} />}
|
|
566
|
+
>
|
|
567
|
+
<HighlightedText text="warning" className="text-label_medium_700" />
|
|
568
|
+
</Title>
|
|
569
|
+
<Title
|
|
570
|
+
head={<Title.Icon size="medium" variants={IconVariants.ERROR} />}
|
|
571
|
+
>
|
|
572
|
+
<HighlightedText text="error" className="text-label_medium_700" />
|
|
573
|
+
</Title>
|
|
574
|
+
<Title
|
|
575
|
+
head={<Title.Icon size="medium" variants={IconVariants.SUCCESS} />}
|
|
576
|
+
>
|
|
577
|
+
<HighlightedText text="success" className="text-label_medium_700" />
|
|
578
|
+
</Title>
|
|
579
|
+
</View>
|
|
580
|
+
</View>
|
|
581
|
+
|
|
582
|
+
<View className="flex flex-column gap-300 mb-500">
|
|
583
|
+
<HighlightedText
|
|
584
|
+
text="Large"
|
|
585
|
+
className="text-label_large_700 text-center"
|
|
586
|
+
/>
|
|
587
|
+
|
|
588
|
+
<View className="flex flex-row gap-300">
|
|
589
|
+
<Title head={<Title.Icon size="large" variants={IconVariants.ADD} />}>
|
|
590
|
+
<HighlightedText text="add" className="text-label_large_700" />
|
|
591
|
+
</Title>
|
|
592
|
+
<Title
|
|
593
|
+
head={<Title.Icon size="large" variants={IconVariants.WARNING} />}
|
|
594
|
+
>
|
|
595
|
+
<HighlightedText text="warning" className="text-label_large_700" />
|
|
596
|
+
</Title>
|
|
597
|
+
<Title
|
|
598
|
+
head={<Title.Icon size="large" variants={IconVariants.ERROR} />}
|
|
599
|
+
>
|
|
600
|
+
<HighlightedText text="error" className="text-label_large_700" />
|
|
601
|
+
</Title>
|
|
602
|
+
<Title
|
|
603
|
+
head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
|
|
604
|
+
>
|
|
605
|
+
<HighlightedText text="success" className="text-label_large_700" />
|
|
606
|
+
</Title>
|
|
607
|
+
</View>
|
|
608
|
+
</View>
|
|
609
|
+
</>
|
|
610
|
+
),
|
|
611
|
+
parameters: {
|
|
612
|
+
docs: {
|
|
613
|
+
description: {
|
|
614
|
+
story:
|
|
615
|
+
"Complete showcase of the Title.Marker design system matching the Figma specifications with all variants, sizes, and states.",
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { View } from "react-native";
|
|
2
|
+
import { Icon, Marker } from "./components";
|
|
3
|
+
import type { TitleProps } from "./types";
|
|
4
|
+
import { merge } from "@butterfly/tailwind-preset";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
|
|
7
|
+
function Title(props: TitleProps) {
|
|
8
|
+
const { children, className, variant = "medium", head } = props;
|
|
9
|
+
|
|
10
|
+
const variantClass = cva("", {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
"2xlarge": "pb-600",
|
|
14
|
+
xlarge: "pb-500",
|
|
15
|
+
large: "pb-600",
|
|
16
|
+
medium: "pb-600",
|
|
17
|
+
small: "pb-400",
|
|
18
|
+
xsmall: "pb-400",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
})({ variant });
|
|
22
|
+
|
|
23
|
+
const mergedClassName = merge("flex flex-col max-w-[344px]", className);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<View className={mergedClassName}>
|
|
27
|
+
<View className={`${variantClass}`}>{head}</View>
|
|
28
|
+
{children}
|
|
29
|
+
</View>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
Title.Icon = Icon;
|
|
34
|
+
Title.Marker = Marker;
|
|
35
|
+
|
|
36
|
+
export { Title };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
|
|
3
|
+
const toggleVariants = cva(
|
|
4
|
+
[
|
|
5
|
+
"absolute top-100 left-100 right-100 bottom-100 transition-all duration-300 rounded-500",
|
|
6
|
+
],
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
grape: ["bg-grape-500"],
|
|
11
|
+
java: ["bg-java-500"],
|
|
12
|
+
pear: ["bg-pear-500"],
|
|
13
|
+
tangerine: ["bg-tangerine-500"],
|
|
14
|
+
chia: ["bg-chia-800"],
|
|
15
|
+
},
|
|
16
|
+
checked: {
|
|
17
|
+
true: "",
|
|
18
|
+
false: "bg-chia-400",
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
true: "cursor-not-allowed opacity-50",
|
|
22
|
+
false: "cursor-pointer",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
compoundVariants: [
|
|
26
|
+
{
|
|
27
|
+
checked: false,
|
|
28
|
+
variant: "chia",
|
|
29
|
+
class: "bg-chia-400",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
variant: "java",
|
|
34
|
+
checked: false,
|
|
35
|
+
disabled: false,
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export { toggleVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./variant";
|