@kivid/native-components 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -57
- package/dist/commonjs/components/Avatar/assets/class-variants.js +24 -0
- package/dist/commonjs/components/Avatar/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Avatar/images/girl.jpg +0 -0
- package/dist/commonjs/components/Avatar/index.js +115 -0
- package/dist/commonjs/components/Avatar/index.js.map +1 -0
- package/dist/commonjs/components/Avatar/types.js.map +1 -0
- package/dist/commonjs/components/Button/assets/class-variants.js +8 -7
- package/dist/commonjs/components/Button/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/Button/index.js +4 -3
- package/dist/commonjs/components/Button/index.js.map +1 -1
- package/dist/commonjs/components/ChatBubble/assets/class-variants.js +68 -0
- package/dist/commonjs/components/ChatBubble/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleContent/index.js +28 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleContent/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleContent/types.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleEar/index.js +48 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleEar/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleLoading/index.js +27 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleLoading/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleSeal/index.js +41 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleSeal/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleSeal/types.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleText/index.js +38 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleText/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleText/types.js +6 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleText/types.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleTime/index.js +37 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleTime/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleTime/types.js +6 -0
- package/dist/commonjs/components/ChatBubble/components/ChatBubbleTime/types.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/components/index.js +48 -0
- package/dist/commonjs/components/ChatBubble/components/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/context.js +17 -0
- package/dist/commonjs/components/ChatBubble/context.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/index.js +94 -0
- package/dist/commonjs/components/ChatBubble/index.js.map +1 -0
- package/dist/commonjs/components/ChatBubble/types.js +6 -0
- package/dist/commonjs/components/ChatBubble/types.js.map +1 -0
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/assets/class-variants.js +2 -2
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/enums/checkbox-variant.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/enums/index.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/enums/select-variant.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/icons/CheckIcon/index.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/icons/IndeterminateIcon/index.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/icons/index.js.map +1 -1
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/index.js +7 -5
- package/dist/commonjs/components/CheckboxInput/index.js.map +1 -0
- package/dist/commonjs/components/CheckboxInput/types.js +6 -0
- package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/types.js.map +1 -1
- package/dist/commonjs/components/Chip/enums/index.js +0 -11
- package/dist/commonjs/components/Chip/enums/index.js.map +1 -1
- package/dist/commonjs/components/Chip/index.js +4 -3
- package/dist/commonjs/components/Chip/index.js.map +1 -1
- package/dist/commonjs/components/InformationStatus/index.js +8 -7
- package/dist/commonjs/components/InformationStatus/index.js.map +1 -1
- package/dist/commonjs/components/ListButton/assets/class-variants.js +60 -0
- package/dist/commonjs/components/ListButton/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/ListButton/enums/icon-color.js +18 -0
- package/dist/commonjs/components/ListButton/enums/icon-color.js.map +1 -0
- package/dist/commonjs/components/ListButton/enums/index.js +28 -0
- package/dist/commonjs/components/ListButton/enums/index.js.map +1 -0
- package/dist/commonjs/components/ListButton/enums/variant.js +17 -0
- package/dist/commonjs/components/ListButton/enums/variant.js.map +1 -0
- package/dist/commonjs/components/ListButton/index.js +113 -0
- package/dist/commonjs/components/ListButton/index.js.map +1 -0
- package/dist/commonjs/components/ListButton/types.js +6 -0
- package/dist/commonjs/components/ListButton/types.js.map +1 -0
- package/dist/commonjs/components/LoadingDots/index.js.map +1 -1
- package/dist/commonjs/components/OtpInput/assets/class-variant.js +24 -0
- package/dist/commonjs/components/OtpInput/assets/class-variant.js.map +1 -0
- package/dist/commonjs/components/{InputOTP → OtpInput}/components/InformationStatus/index.js +5 -4
- package/dist/commonjs/components/OtpInput/components/InformationStatus/index.js.map +1 -0
- package/dist/commonjs/components/OtpInput/components/InformationStatus/types.js +6 -0
- package/dist/{module/components/InputOTP → commonjs/components/OtpInput}/components/InformationStatus/types.js.map +1 -1
- package/dist/commonjs/components/{InputOTP → OtpInput}/components/index.js.map +1 -1
- package/dist/commonjs/components/{InputOTP → OtpInput}/enums/index.js.map +1 -1
- package/dist/commonjs/components/{InputOTP → OtpInput}/index.js +10 -4
- package/dist/commonjs/components/OtpInput/index.js.map +1 -0
- package/dist/commonjs/components/OtpInput/types.js +6 -0
- package/dist/commonjs/components/{InputOTP → OtpInput}/types.js.map +1 -1
- package/dist/commonjs/components/RadioInput/assets/class-variants.js +101 -0
- package/dist/commonjs/components/RadioInput/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/RadioInput/enums/index.js +17 -0
- package/dist/commonjs/components/RadioInput/enums/index.js.map +1 -0
- package/dist/commonjs/components/RadioInput/index.js +41 -0
- package/dist/commonjs/components/RadioInput/index.js.map +1 -0
- package/dist/commonjs/components/RadioInput/types.js +6 -0
- package/dist/commonjs/components/RadioInput/types.js.map +1 -0
- package/dist/commonjs/components/Seal/assets/class-variants.js +3 -2
- package/dist/commonjs/components/Seal/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/Seal/components/AddIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/AddIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/components/AlertIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/AlertIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/components/ErrorIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/ErrorIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/components/LeftIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/LeftIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/components/MinusIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/MinusIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/components/RightIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/RightIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/components/SuccessIcon/index.js +4 -3
- package/dist/commonjs/components/Seal/components/SuccessIcon/index.js.map +1 -1
- package/dist/commonjs/components/Seal/index.js +5 -2
- package/dist/commonjs/components/Seal/index.js.map +1 -1
- package/dist/commonjs/components/SelectButton/assets/class-variants.js +31 -0
- package/dist/commonjs/components/SelectButton/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/SelectButton/enums/index.js +12 -0
- package/dist/commonjs/components/SelectButton/enums/index.js.map +1 -0
- package/dist/commonjs/components/SelectButton/index.js +110 -0
- package/dist/commonjs/components/SelectButton/index.js.map +1 -0
- package/dist/commonjs/components/SelectButton/types.js +6 -0
- package/dist/commonjs/components/SelectButton/types.js.map +1 -0
- package/dist/commonjs/components/TextInput/assets/class-variants.js +71 -0
- package/dist/commonjs/components/TextInput/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/TextInput/enums.js +12 -0
- package/dist/commonjs/components/TextInput/enums.js.map +1 -0
- package/dist/commonjs/components/TextInput/index.js +124 -0
- package/dist/commonjs/components/TextInput/index.js.map +1 -0
- package/dist/commonjs/components/TextInput/types.js +6 -0
- package/dist/commonjs/components/TextInput/types.js.map +1 -0
- package/dist/commonjs/components/Title/components/icon/index.js +2 -1
- package/dist/commonjs/components/Title/components/icon/index.js.map +1 -1
- package/dist/commonjs/components/Title/components/icon/types.js.map +1 -1
- package/dist/commonjs/components/Title/components/marker/index.js +4 -3
- package/dist/commonjs/components/Title/components/marker/index.js.map +1 -1
- package/dist/commonjs/components/Title/components/marker/types.js +4 -0
- package/dist/commonjs/components/Title/index.js +8 -7
- package/dist/commonjs/components/Title/index.js.map +1 -1
- package/dist/commonjs/components/Toast/assets/class-variants.js +32 -0
- package/dist/commonjs/components/Toast/assets/class-variants.js.map +1 -0
- package/dist/commonjs/components/Toast/enums/index.js +28 -0
- package/dist/commonjs/components/Toast/enums/index.js.map +1 -0
- package/dist/commonjs/components/Toast/enums/position.js +12 -0
- package/dist/commonjs/components/Toast/enums/position.js.map +1 -0
- package/dist/commonjs/components/Toast/enums/variant.js +13 -0
- package/dist/commonjs/components/Toast/enums/variant.js.map +1 -0
- package/dist/commonjs/components/Toast/index.js +107 -0
- package/dist/commonjs/components/Toast/index.js.map +1 -0
- package/dist/commonjs/components/Toast/types.js +6 -0
- package/dist/commonjs/components/Toast/types.js.map +1 -0
- package/dist/commonjs/components/Tooltip/assets/class-variant.js +25 -0
- package/dist/commonjs/components/Tooltip/assets/class-variant.js.map +1 -0
- package/dist/commonjs/components/Tooltip/components/Content/index.js +83 -0
- package/dist/commonjs/components/Tooltip/components/Content/index.js.map +1 -0
- package/dist/commonjs/components/Tooltip/components/Content/types.js +6 -0
- package/dist/commonjs/components/Tooltip/components/Content/types.js.map +1 -0
- package/dist/commonjs/{hooks → components/Tooltip/components}/index.js +4 -4
- package/dist/commonjs/components/Tooltip/components/index.js.map +1 -0
- package/dist/commonjs/components/Tooltip/enum/index.js +18 -0
- package/dist/commonjs/components/Tooltip/enum/index.js.map +1 -0
- package/dist/commonjs/components/Tooltip/hooks/index.js +17 -0
- package/dist/commonjs/components/Tooltip/hooks/index.js.map +1 -0
- package/dist/commonjs/components/Tooltip/hooks/tooltip-position.js +66 -0
- package/dist/commonjs/components/Tooltip/hooks/tooltip-position.js.map +1 -0
- package/dist/commonjs/components/Tooltip/index.js +43 -0
- package/dist/commonjs/components/Tooltip/index.js.map +1 -0
- package/dist/commonjs/components/Tooltip/types.js +6 -0
- package/dist/commonjs/components/Tooltip/types.js.map +1 -0
- package/dist/commonjs/components/Typography/assets/class-variants.js +1 -1
- package/dist/commonjs/components/Typography/assets/class-variants.js.map +1 -1
- package/dist/commonjs/components/index.js +184 -41
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/enums/corners.js +14 -0
- package/dist/commonjs/enums/corners.js.map +1 -0
- package/dist/commonjs/enums/index.js +28 -0
- package/dist/commonjs/enums/index.js.map +1 -0
- package/dist/commonjs/enums/size.js +18 -0
- package/dist/commonjs/enums/size.js.map +1 -0
- package/dist/commonjs/index.js +11 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/storybook-utils/components/CodeBlock/index.js +50 -0
- package/dist/commonjs/storybook-utils/components/CodeBlock/index.js.map +1 -0
- package/dist/commonjs/storybook-utils/components/CodeBlock/types.js +2 -0
- package/dist/commonjs/storybook-utils/components/CodeBlock/types.js.map +1 -0
- package/dist/commonjs/storybook-utils/components/index.js +13 -0
- package/dist/commonjs/storybook-utils/components/index.js.map +1 -0
- package/dist/commonjs/storybook-utils/index.js +17 -0
- package/dist/commonjs/storybook-utils/index.js.map +1 -0
- package/dist/commonjs/styles/index.js +17 -0
- package/dist/commonjs/styles/index.js.map +1 -0
- package/dist/commonjs/styles/mixins/index.js +17 -0
- package/dist/commonjs/styles/mixins/index.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-down-100.js +8 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-down-100.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-down-200.js +8 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-down-200.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-down-300.js +8 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-down-300.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-up-100.js +8 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-up-100.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-up-200.js +8 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-up-200.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-up-300.js +8 -0
- package/dist/commonjs/styles/mixins/shadows/elevation-up-300.js.map +1 -0
- package/dist/commonjs/styles/mixins/shadows/index.js +72 -0
- package/dist/commonjs/styles/mixins/shadows/index.js.map +1 -0
- package/dist/module/components/Avatar/assets/class-variants.js +21 -0
- package/dist/module/components/Avatar/assets/class-variants.js.map +1 -0
- package/dist/module/components/Avatar/images/girl.jpg +0 -0
- package/dist/module/components/Avatar/index.js +110 -0
- package/dist/module/components/Avatar/index.js.map +1 -0
- package/dist/module/components/Avatar/types.js.map +1 -0
- package/dist/module/components/Button/assets/class-variants.js +8 -7
- package/dist/module/components/Button/assets/class-variants.js.map +1 -1
- package/dist/module/components/Button/index.js +4 -3
- package/dist/module/components/Button/index.js.map +1 -1
- package/dist/module/components/ChatBubble/assets/class-variants.js +64 -0
- package/dist/module/components/ChatBubble/assets/class-variants.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleContent/index.js +22 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleContent/index.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleContent/types.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleEar/index.js +41 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleEar/index.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleLoading/index.js +22 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleLoading/index.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleSeal/index.js +35 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleSeal/index.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleSeal/types.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleText/index.js +32 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleText/index.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleText/types.js +4 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleText/types.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleTime/index.js +31 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleTime/index.js.map +1 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleTime/types.js +4 -0
- package/dist/module/components/ChatBubble/components/ChatBubbleTime/types.js.map +1 -0
- package/dist/module/components/ChatBubble/components/index.js +9 -0
- package/dist/module/components/ChatBubble/components/index.js.map +1 -0
- package/dist/module/components/ChatBubble/context.js +12 -0
- package/dist/module/components/ChatBubble/context.js.map +1 -0
- package/dist/module/components/ChatBubble/index.js +91 -0
- package/dist/module/components/ChatBubble/index.js.map +1 -0
- package/dist/module/components/ChatBubble/types.js +4 -0
- package/dist/module/components/ChatBubble/types.js.map +1 -0
- package/dist/module/components/{InputCheckbox → CheckboxInput}/assets/class-variants.js +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/assets/class-variants.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/enums/checkbox-variant.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/enums/index.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/enums/select-variant.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/icons/CheckIcon/index.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/icons/IndeterminateIcon/index.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/icons/index.js.map +1 -1
- package/dist/module/components/{InputCheckbox → CheckboxInput}/index.js +7 -5
- package/dist/module/components/CheckboxInput/index.js.map +1 -0
- package/dist/module/components/CheckboxInput/types.js +4 -0
- package/dist/module/components/{InputCheckbox → CheckboxInput}/types.js.map +1 -1
- package/dist/module/components/Chip/enums/index.js +0 -1
- package/dist/module/components/Chip/enums/index.js.map +1 -1
- package/dist/module/components/Chip/index.js +4 -3
- package/dist/module/components/Chip/index.js.map +1 -1
- package/dist/module/components/InformationStatus/index.js +8 -7
- package/dist/module/components/InformationStatus/index.js.map +1 -1
- package/dist/module/components/ListButton/assets/class-variants.js +57 -0
- package/dist/module/components/ListButton/assets/class-variants.js.map +1 -0
- package/dist/module/components/ListButton/enums/icon-color.js +14 -0
- package/dist/module/components/ListButton/enums/icon-color.js.map +1 -0
- package/dist/module/components/ListButton/enums/index.js +5 -0
- package/dist/module/components/ListButton/enums/index.js.map +1 -0
- package/dist/module/components/ListButton/enums/variant.js +13 -0
- package/dist/module/components/ListButton/enums/variant.js.map +1 -0
- package/dist/module/components/ListButton/index.js +109 -0
- package/dist/module/components/ListButton/index.js.map +1 -0
- package/dist/module/components/ListButton/types.js +4 -0
- package/dist/module/components/ListButton/types.js.map +1 -0
- package/dist/module/components/LoadingDots/index.js.map +1 -1
- package/dist/module/components/OtpInput/assets/class-variant.js +20 -0
- package/dist/module/components/OtpInput/assets/class-variant.js.map +1 -0
- package/dist/module/components/{InputOTP → OtpInput}/components/InformationStatus/index.js +5 -4
- package/dist/module/components/OtpInput/components/InformationStatus/index.js.map +1 -0
- package/dist/module/components/OtpInput/components/InformationStatus/types.js +4 -0
- package/dist/{commonjs/components/InputOTP → module/components/OtpInput}/components/InformationStatus/types.js.map +1 -1
- package/dist/module/components/{InputOTP → OtpInput}/components/index.js.map +1 -1
- package/dist/module/components/{InputOTP → OtpInput}/enums/index.js.map +1 -1
- package/dist/module/components/{InputOTP → OtpInput}/index.js +9 -3
- package/dist/module/components/OtpInput/index.js.map +1 -0
- package/dist/module/components/OtpInput/types.js +4 -0
- package/dist/module/components/{InputOTP → OtpInput}/types.js.map +1 -1
- package/dist/module/components/RadioInput/assets/class-variants.js +97 -0
- package/dist/module/components/RadioInput/assets/class-variants.js.map +1 -0
- package/dist/module/components/RadioInput/enums/index.js +13 -0
- package/dist/module/components/RadioInput/enums/index.js.map +1 -0
- package/dist/module/components/RadioInput/index.js +37 -0
- package/dist/module/components/RadioInput/index.js.map +1 -0
- package/dist/module/components/RadioInput/types.js +4 -0
- package/dist/module/components/RadioInput/types.js.map +1 -0
- package/dist/module/components/Seal/assets/class-variants.js +3 -2
- package/dist/module/components/Seal/assets/class-variants.js.map +1 -1
- package/dist/module/components/Seal/components/AddIcon/index.js +4 -3
- package/dist/module/components/Seal/components/AddIcon/index.js.map +1 -1
- package/dist/module/components/Seal/components/AlertIcon/index.js +4 -3
- package/dist/module/components/Seal/components/AlertIcon/index.js.map +1 -1
- package/dist/module/components/Seal/components/ErrorIcon/index.js +4 -3
- package/dist/module/components/Seal/components/ErrorIcon/index.js.map +1 -1
- package/dist/module/components/Seal/components/LeftIcon/index.js +4 -3
- package/dist/module/components/Seal/components/LeftIcon/index.js.map +1 -1
- package/dist/module/components/Seal/components/MinusIcon/index.js +4 -3
- package/dist/module/components/Seal/components/MinusIcon/index.js.map +1 -1
- package/dist/module/components/Seal/components/RightIcon/index.js +4 -3
- package/dist/module/components/Seal/components/RightIcon/index.js.map +1 -1
- package/dist/module/components/Seal/components/SuccessIcon/index.js +4 -3
- package/dist/module/components/Seal/components/SuccessIcon/index.js.map +1 -1
- package/dist/module/components/Seal/index.js +5 -2
- package/dist/module/components/Seal/index.js.map +1 -1
- package/dist/module/components/SelectButton/assets/class-variants.js +28 -0
- package/dist/module/components/SelectButton/assets/class-variants.js.map +1 -0
- package/dist/module/components/SelectButton/enums/index.js +8 -0
- package/dist/module/components/SelectButton/enums/index.js.map +1 -0
- package/dist/module/components/SelectButton/index.js +106 -0
- package/dist/module/components/SelectButton/index.js.map +1 -0
- package/dist/module/components/SelectButton/types.js +4 -0
- package/dist/module/components/SelectButton/types.js.map +1 -0
- package/dist/module/components/TextInput/assets/class-variants.js +67 -0
- package/dist/module/components/TextInput/assets/class-variants.js.map +1 -0
- package/dist/module/components/TextInput/enums.js +8 -0
- package/dist/module/components/TextInput/enums.js.map +1 -0
- package/dist/module/components/TextInput/index.js +118 -0
- package/dist/module/components/TextInput/index.js.map +1 -0
- package/dist/module/components/TextInput/types.js +4 -0
- package/dist/module/components/TextInput/types.js.map +1 -0
- package/dist/module/components/Title/components/icon/index.js +2 -1
- package/dist/module/components/Title/components/icon/index.js.map +1 -1
- package/dist/module/components/Title/components/icon/types.js.map +1 -1
- package/dist/module/components/Title/components/marker/index.js +4 -3
- package/dist/module/components/Title/components/marker/index.js.map +1 -1
- package/dist/module/components/Title/components/marker/types.js +2 -0
- package/dist/module/components/Title/index.js +8 -7
- package/dist/module/components/Title/index.js.map +1 -1
- package/dist/module/components/Toast/assets/class-variants.js +29 -0
- package/dist/module/components/Toast/assets/class-variants.js.map +1 -0
- package/dist/module/components/Toast/enums/index.js +5 -0
- package/dist/module/components/Toast/enums/index.js.map +1 -0
- package/dist/module/components/Toast/enums/position.js +8 -0
- package/dist/module/components/Toast/enums/position.js.map +1 -0
- package/dist/module/components/Toast/enums/variant.js +9 -0
- package/dist/module/components/Toast/enums/variant.js.map +1 -0
- package/dist/module/components/Toast/index.js +102 -0
- package/dist/module/components/Toast/index.js.map +1 -0
- package/dist/module/components/Toast/types.js +4 -0
- package/dist/module/components/Toast/types.js.map +1 -0
- package/dist/module/components/Tooltip/assets/class-variant.js +21 -0
- package/dist/module/components/Tooltip/assets/class-variant.js.map +1 -0
- package/dist/module/components/Tooltip/components/Content/index.js +78 -0
- package/dist/module/components/Tooltip/components/Content/index.js.map +1 -0
- package/dist/module/components/Tooltip/components/Content/types.js +4 -0
- package/dist/module/components/Tooltip/components/Content/types.js.map +1 -0
- package/dist/module/components/Tooltip/components/index.js +4 -0
- package/dist/module/components/Tooltip/components/index.js.map +1 -0
- package/dist/module/components/Tooltip/enum/index.js +14 -0
- package/dist/module/components/Tooltip/enum/index.js.map +1 -0
- package/dist/module/components/Tooltip/hooks/index.js +4 -0
- package/dist/module/components/Tooltip/hooks/index.js.map +1 -0
- package/dist/module/components/Tooltip/hooks/tooltip-position.js +62 -0
- package/dist/module/components/Tooltip/hooks/tooltip-position.js.map +1 -0
- package/dist/module/components/Tooltip/index.js +39 -0
- package/dist/module/components/Tooltip/index.js.map +1 -0
- package/dist/module/components/Tooltip/types.js +4 -0
- package/dist/module/components/Tooltip/types.js.map +1 -0
- package/dist/module/components/Typography/assets/class-variants.js +1 -1
- package/dist/module/components/Typography/assets/class-variants.js.map +1 -1
- package/dist/module/components/index.js +17 -4
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/enums/corners.js +10 -0
- package/dist/module/enums/corners.js.map +1 -0
- package/dist/module/enums/index.js +5 -0
- package/dist/module/enums/index.js.map +1 -0
- package/dist/module/enums/size.js +14 -0
- package/dist/module/enums/size.js.map +1 -0
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/storybook-utils/components/CodeBlock/index.js +44 -0
- package/dist/module/storybook-utils/components/CodeBlock/index.js.map +1 -0
- package/dist/module/storybook-utils/components/CodeBlock/types.js +2 -0
- package/dist/module/storybook-utils/components/CodeBlock/types.js.map +1 -0
- package/dist/module/storybook-utils/components/index.js +14 -0
- package/dist/module/storybook-utils/components/index.js.map +1 -0
- package/dist/module/storybook-utils/index.js +11 -0
- package/dist/module/storybook-utils/index.js.map +1 -0
- package/dist/module/styles/index.js +4 -0
- package/dist/module/styles/index.js.map +1 -0
- package/dist/module/styles/mixins/index.js +4 -0
- package/dist/module/styles/mixins/index.js.map +1 -0
- package/dist/module/styles/mixins/shadows/elevation-down-100.js +4 -0
- package/dist/module/styles/mixins/shadows/elevation-down-100.js.map +1 -0
- package/dist/module/styles/mixins/shadows/elevation-down-200.js +4 -0
- package/dist/module/styles/mixins/shadows/elevation-down-200.js.map +1 -0
- package/dist/module/styles/mixins/shadows/elevation-down-300.js +4 -0
- package/dist/module/styles/mixins/shadows/elevation-down-300.js.map +1 -0
- package/dist/module/styles/mixins/shadows/elevation-up-100.js +4 -0
- package/dist/module/styles/mixins/shadows/elevation-up-100.js.map +1 -0
- package/dist/module/styles/mixins/shadows/elevation-up-200.js +4 -0
- package/dist/module/styles/mixins/shadows/elevation-up-200.js.map +1 -0
- package/dist/module/styles/mixins/shadows/elevation-up-300.js +4 -0
- package/dist/module/styles/mixins/shadows/elevation-up-300.js.map +1 -0
- package/dist/module/styles/mixins/shadows/index.js +9 -0
- package/dist/module/styles/mixins/shadows/index.js.map +1 -0
- package/dist/typescript/components/Avatar/assets/class-variants.d.ts +5 -0
- package/dist/typescript/components/Avatar/index.d.ts +2 -0
- package/dist/typescript/components/Avatar/types.d.ts +7 -0
- package/dist/typescript/components/Button/assets/class-variants.d.ts +3 -2
- package/dist/typescript/components/Button/index.d.ts +2 -1
- package/dist/typescript/components/Button/types.d.ts +3 -2
- package/dist/typescript/components/ChatBubble/assets/class-variants.d.ts +7 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleContent/index.d.ts +6 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleContent/types.d.ts +5 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleEar/index.d.ts +8 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleLoading/index.d.ts +9 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleSeal/index.d.ts +3 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleSeal/types.d.ts +4 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleText/index.d.ts +6 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleText/types.d.ts +4 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleTime/index.d.ts +6 -0
- package/dist/typescript/components/ChatBubble/components/ChatBubbleTime/types.d.ts +5 -0
- package/dist/typescript/components/ChatBubble/components/index.d.ts +6 -0
- package/dist/typescript/components/ChatBubble/context.d.ts +8 -0
- package/dist/typescript/components/ChatBubble/index.d.ts +12 -0
- package/dist/typescript/components/ChatBubble/types.d.ts +14 -0
- package/dist/typescript/components/{InputCheckbox → CheckboxInput}/assets/class-variants.d.ts +1 -1
- package/dist/typescript/components/{InputCheckbox → CheckboxInput}/icons/CheckIcon/index.d.ts +1 -1
- package/dist/typescript/components/{InputCheckbox → CheckboxInput}/icons/IndeterminateIcon/index.d.ts +1 -1
- package/dist/typescript/components/CheckboxInput/index.d.ts +2 -0
- package/dist/typescript/components/{InputCheckbox → CheckboxInput}/types.d.ts +3 -2
- package/dist/typescript/components/Chip/assets/class-variants.d.ts +1 -1
- package/dist/typescript/components/Chip/enums/index.d.ts +0 -1
- package/dist/typescript/components/Chip/index.d.ts +1 -1
- package/dist/typescript/components/Chip/types.d.ts +3 -2
- package/dist/typescript/components/HighlightedText/index.d.ts +1 -1
- package/dist/typescript/components/InformationStatus/components/GradientAdd/index.d.ts +1 -1
- package/dist/typescript/components/InformationStatus/components/GradientAlert/index.d.ts +1 -1
- package/dist/typescript/components/InformationStatus/components/GradientCheck/index.d.ts +1 -1
- package/dist/typescript/components/InformationStatus/components/GradientClose/index.d.ts +1 -1
- package/dist/typescript/components/InformationStatus/index.d.ts +1 -1
- package/dist/typescript/components/InformationStatus/types.d.ts +3 -1
- package/dist/typescript/components/ListButton/assets/class-variants.d.ts +14 -0
- package/dist/typescript/components/ListButton/enums/icon-color.d.ts +10 -0
- package/dist/typescript/components/ListButton/enums/index.d.ts +2 -0
- package/dist/typescript/components/ListButton/enums/variant.d.ts +9 -0
- package/dist/typescript/components/ListButton/index.d.ts +2 -0
- package/dist/typescript/components/ListButton/types.d.ts +17 -0
- package/dist/typescript/components/LoadingDots/index.d.ts +1 -1
- package/dist/typescript/components/OtpInput/assets/class-variant.d.ts +5 -0
- package/dist/typescript/components/{InputOTP → OtpInput}/components/InformationStatus/index.d.ts +1 -1
- package/dist/typescript/components/OtpInput/index.d.ts +3 -0
- package/dist/typescript/components/{InputOTP → OtpInput}/types.d.ts +2 -1
- package/dist/typescript/components/RadioInput/assets/class-variants.d.ts +6 -0
- package/dist/typescript/components/RadioInput/enums/index.d.ts +9 -0
- package/dist/typescript/components/RadioInput/index.d.ts +2 -0
- package/dist/typescript/components/RadioInput/types.d.ts +8 -0
- package/dist/typescript/components/Seal/assets/class-variants.d.ts +3 -2
- package/dist/typescript/components/Seal/components/AddIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/components/AlertIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/components/ErrorIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/components/LeftIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/components/MinusIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/components/RightIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/components/SuccessIcon/index.d.ts +1 -1
- package/dist/typescript/components/Seal/types.d.ts +3 -1
- package/dist/typescript/components/SelectButton/assets/class-variants.d.ts +7 -0
- package/dist/typescript/components/SelectButton/enums/index.d.ts +4 -0
- package/dist/typescript/components/SelectButton/index.d.ts +2 -0
- package/dist/typescript/components/SelectButton/types.d.ts +17 -0
- package/dist/typescript/components/TextInput/assets/class-variants.d.ts +15 -0
- package/dist/typescript/components/TextInput/enums.d.ts +4 -0
- package/dist/typescript/components/TextInput/index.d.ts +6 -0
- package/dist/typescript/components/TextInput/types.d.ts +18 -0
- package/dist/typescript/components/Title/components/icon/index.d.ts +1 -1
- package/dist/typescript/components/Title/components/icon/types.d.ts +3 -1
- package/dist/typescript/components/Title/components/marker/index.d.ts +1 -1
- package/dist/typescript/components/Title/components/marker/types.d.ts +3 -1
- package/dist/typescript/components/Title/index.d.ts +1 -1
- package/dist/typescript/components/Title/types.d.ts +3 -1
- package/dist/typescript/components/Toast/assets/class-variants.d.ts +8 -0
- package/dist/typescript/components/Toast/enums/index.d.ts +2 -0
- package/dist/typescript/components/Toast/enums/position.d.ts +4 -0
- package/dist/typescript/components/Toast/enums/variant.d.ts +5 -0
- package/dist/typescript/components/Toast/index.d.ts +2 -0
- package/dist/typescript/components/Toast/types.d.ts +11 -0
- package/dist/typescript/components/Toggle/index.d.ts +1 -1
- package/dist/typescript/components/Tooltip/assets/class-variant.d.ts +7 -0
- package/dist/typescript/components/Tooltip/components/Content/index.d.ts +2 -0
- package/dist/typescript/components/Tooltip/components/Content/types.d.ts +13 -0
- package/dist/typescript/components/Tooltip/components/index.d.ts +1 -0
- package/dist/typescript/components/Tooltip/enum/index.d.ts +9 -0
- package/dist/typescript/components/Tooltip/hooks/index.d.ts +1 -0
- package/dist/typescript/components/Tooltip/hooks/tooltip-position.d.ts +17 -0
- package/dist/typescript/components/Tooltip/index.d.ts +2 -0
- package/dist/typescript/components/Tooltip/types.d.ts +12 -0
- package/dist/typescript/components/index.d.ts +26 -6
- package/dist/typescript/enums/corners.d.ts +6 -0
- package/dist/typescript/enums/index.d.ts +2 -0
- package/dist/typescript/enums/size.d.ts +10 -0
- package/dist/typescript/iconography/Icons/index.d.ts +2 -1
- package/dist/typescript/index.d.ts +1 -0
- package/dist/typescript/storybook-utils/components/CodeBlock/index.d.ts +4 -0
- package/dist/typescript/storybook-utils/components/CodeBlock/types.d.ts +6 -0
- package/dist/typescript/storybook-utils/components/index.d.ts +11 -0
- package/dist/typescript/storybook-utils/index.d.ts +7 -0
- package/dist/typescript/styles/index.d.ts +1 -0
- package/dist/typescript/styles/mixins/index.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/elevation-down-100.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/elevation-down-200.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/elevation-down-300.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/elevation-up-100.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/elevation-up-200.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/elevation-up-300.d.ts +1 -0
- package/dist/typescript/styles/mixins/shadows/index.d.ts +6 -0
- package/package.json +38 -60
- package/src/components/Avatar/assets/class-variants.ts +23 -0
- package/src/components/Avatar/images/girl.jpg +0 -0
- package/src/components/Avatar/index.tsx +119 -0
- package/src/components/Avatar/types.ts +15 -0
- package/src/components/Button/assets/class-variants.ts +8 -7
- package/src/components/Button/index.tsx +8 -7
- package/src/components/Button/types.ts +3 -2
- package/src/components/ChatBubble/assets/class-variants.ts +75 -0
- package/src/components/ChatBubble/components/ChatBubbleContent/index.tsx +24 -0
- package/src/components/ChatBubble/components/ChatBubbleContent/types.ts +6 -0
- package/src/components/ChatBubble/components/ChatBubbleEar/index.tsx +40 -0
- package/src/components/ChatBubble/components/ChatBubbleLoading/index.tsx +25 -0
- package/src/components/ChatBubble/components/ChatBubbleSeal/index.tsx +36 -0
- package/src/components/ChatBubble/components/ChatBubbleSeal/types.ts +5 -0
- package/src/components/ChatBubble/components/ChatBubbleText/index.tsx +35 -0
- package/src/components/ChatBubble/components/ChatBubbleText/types.ts +6 -0
- package/src/components/ChatBubble/components/ChatBubbleTime/index.tsx +34 -0
- package/src/components/ChatBubble/components/ChatBubbleTime/types.ts +6 -0
- package/src/components/ChatBubble/components/index.ts +6 -0
- package/src/components/ChatBubble/context.tsx +26 -0
- package/src/components/ChatBubble/index.tsx +112 -0
- package/src/components/ChatBubble/types.ts +17 -0
- package/src/components/{InputCheckbox → CheckboxInput}/assets/class-variants.ts +1 -1
- package/src/components/{InputCheckbox → CheckboxInput}/index.tsx +10 -8
- package/src/components/{InputCheckbox → CheckboxInput}/types.ts +3 -2
- package/src/components/Chip/enums/index.ts +0 -1
- package/src/components/Chip/index.tsx +5 -3
- package/src/components/Chip/types.ts +3 -2
- package/src/components/InformationStatus/index.tsx +14 -7
- package/src/components/InformationStatus/types.ts +7 -1
- package/src/components/ListButton/assets/class-variants.ts +87 -0
- package/src/components/ListButton/enums/icon-color.ts +10 -0
- package/src/components/ListButton/enums/index.ts +2 -0
- package/src/components/ListButton/enums/variant.ts +9 -0
- package/src/components/ListButton/index.tsx +124 -0
- package/src/components/ListButton/types.ts +20 -0
- package/src/components/LoadingDots/index.tsx +0 -1
- package/src/components/OtpInput/assets/class-variant.ts +21 -0
- package/src/components/{InputOTP → OtpInput}/components/InformationStatus/index.tsx +5 -4
- package/src/components/{InputOTP → OtpInput}/index.tsx +7 -9
- package/src/components/{InputOTP → OtpInput}/types.ts +2 -1
- package/src/components/RadioInput/assets/class-variants.ts +112 -0
- package/src/components/RadioInput/enums/index.ts +9 -0
- package/src/components/RadioInput/index.tsx +36 -0
- package/src/components/RadioInput/types.ts +9 -0
- package/src/components/Seal/assets/class-variants.ts +3 -2
- package/src/components/Seal/components/AddIcon/index.tsx +7 -3
- package/src/components/Seal/components/AlertIcon/index.tsx +7 -3
- package/src/components/Seal/components/ErrorIcon/index.tsx +7 -3
- package/src/components/Seal/components/LeftIcon/index.tsx +7 -3
- package/src/components/Seal/components/MinusIcon/index.tsx +7 -3
- package/src/components/Seal/components/RightIcon/index.tsx +7 -3
- package/src/components/Seal/components/SuccessIcon/index.tsx +7 -3
- package/src/components/Seal/index.tsx +4 -1
- package/src/components/Seal/types.ts +4 -2
- package/src/components/SelectButton/assets/class-variants.ts +28 -0
- package/src/components/SelectButton/enums/index.ts +4 -0
- package/src/components/SelectButton/index.tsx +133 -0
- package/src/components/SelectButton/types.ts +20 -0
- package/src/components/TextInput/assets/class-variants.ts +74 -0
- package/src/components/TextInput/enums.ts +4 -0
- package/src/components/TextInput/index.tsx +145 -0
- package/src/components/TextInput/types.ts +24 -0
- package/src/components/Title/components/icon/index.tsx +2 -1
- package/src/components/Title/components/icon/types.ts +6 -1
- package/src/components/Title/components/marker/index.tsx +4 -3
- package/src/components/Title/components/marker/types.ts +5 -1
- package/src/components/Title/index.tsx +8 -7
- package/src/components/Title/types.ts +11 -1
- package/src/components/Toast/assets/class-variants.ts +32 -0
- package/src/components/Toast/enums/index.ts +2 -0
- package/src/components/Toast/enums/position.ts +4 -0
- package/src/components/Toast/enums/variant.ts +5 -0
- package/src/components/Toast/index.tsx +102 -0
- package/src/components/Toast/types.ts +12 -0
- package/src/components/Tooltip/assets/class-variant.ts +26 -0
- package/src/components/Tooltip/components/Content/index.tsx +93 -0
- package/src/components/Tooltip/components/Content/types.ts +14 -0
- package/src/components/Tooltip/components/index.ts +1 -0
- package/src/components/Tooltip/enum/index.ts +10 -0
- package/src/components/Tooltip/hooks/index.ts +1 -0
- package/src/components/Tooltip/hooks/tooltip-position.ts +85 -0
- package/src/components/Tooltip/index.tsx +38 -0
- package/src/components/Tooltip/types.ts +13 -0
- package/src/components/Typography/assets/class-variants.ts +1 -1
- package/src/components/index.ts +33 -6
- package/src/enums/corners.ts +6 -0
- package/src/enums/index.ts +2 -0
- package/src/enums/size.ts +10 -0
- package/src/index.ts +1 -0
- package/src/storybook-utils/components/CodeBlock/index.tsx +46 -0
- package/src/storybook-utils/components/CodeBlock/types.ts +6 -0
- package/src/storybook-utils/components/index.ts +12 -0
- package/src/storybook-utils/index.ts +8 -0
- package/src/styles/index.ts +1 -0
- package/src/styles/mixins/index.ts +1 -0
- package/src/styles/mixins/shadows/elevation-down-100.tsx +2 -0
- package/src/styles/mixins/shadows/elevation-down-200.tsx +2 -0
- package/src/styles/mixins/shadows/elevation-down-300.tsx +2 -0
- package/src/styles/mixins/shadows/elevation-up-100.tsx +2 -0
- package/src/styles/mixins/shadows/elevation-up-200.tsx +2 -0
- package/src/styles/mixins/shadows/elevation-up-300.tsx +2 -0
- package/src/styles/mixins/shadows/index.ts +6 -0
- package/dist/README.md +0 -57
- package/dist/commonjs/components/Chip/enums/chip-size.js +0 -12
- package/dist/commonjs/components/Chip/enums/chip-size.js.map +0 -1
- package/dist/commonjs/components/InputCheckbox/index.js.map +0 -1
- package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js.map +0 -1
- package/dist/commonjs/components/InputOTP/index.js.map +0 -1
- package/dist/commonjs/hooks/index.js.map +0 -1
- package/dist/commonjs/hooks/use-fonts.js +0 -39
- package/dist/commonjs/hooks/use-fonts.js.map +0 -1
- package/dist/module/components/Chip/enums/chip-size.js +0 -8
- package/dist/module/components/Chip/enums/chip-size.js.map +0 -1
- package/dist/module/components/InputCheckbox/index.js.map +0 -1
- package/dist/module/components/InputOTP/components/InformationStatus/index.js.map +0 -1
- package/dist/module/components/InputOTP/index.js.map +0 -1
- package/dist/module/hooks/index.js +0 -4
- package/dist/module/hooks/index.js.map +0 -1
- package/dist/module/hooks/use-fonts.js +0 -35
- package/dist/module/hooks/use-fonts.js.map +0 -1
- package/dist/package.json +0 -56
- package/dist/typescript/components/Chip/enums/chip-size.d.ts +0 -4
- package/dist/typescript/components/InputCheckbox/index.d.ts +0 -2
- package/dist/typescript/components/InputOTP/index.d.ts +0 -3
- package/dist/typescript/hooks/index.d.ts +0 -1
- package/dist/typescript/hooks/use-fonts.d.ts +0 -10
- package/index.js +0 -6
- package/src/components/Button/index.stories.tsx +0 -407
- package/src/components/Chip/enums/chip-size.ts +0 -4
- package/src/components/Chip/index.stories.tsx +0 -95
- package/src/components/HighlightedText/index.stories.tsx +0 -209
- package/src/components/InformationStatus/index.stories.tsx +0 -112
- package/src/components/InputCheckbox/index.stories.tsx +0 -133
- package/src/components/InputOTP/index.stories.tsx +0 -256
- package/src/components/LoadingDots/index.stories.tsx +0 -74
- package/src/components/Seal/index.stories.tsx +0 -124
- package/src/components/Title/index.stories.tsx +0 -729
- package/src/components/Toggle/index.stories.tsx +0 -88
- package/src/components/Typography/index.stories.tsx +0 -218
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-fonts.ts +0 -30
- package/src/iconography/Icons/index.stories.tsx +0 -23
- /package/dist/commonjs/components/{InputCheckbox → Avatar}/types.js +0 -0
- /package/dist/commonjs/components/{InputOTP/components/InformationStatus → ChatBubble/components/ChatBubbleContent}/types.js +0 -0
- /package/dist/commonjs/components/{InputOTP → ChatBubble/components/ChatBubbleSeal}/types.js +0 -0
- /package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/enums/checkbox-variant.js +0 -0
- /package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/enums/index.js +0 -0
- /package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/enums/select-variant.js +0 -0
- /package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/icons/CheckIcon/index.js +0 -0
- /package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/icons/IndeterminateIcon/index.js +0 -0
- /package/dist/commonjs/components/{InputCheckbox → CheckboxInput}/icons/index.js +0 -0
- /package/dist/commonjs/components/{InputOTP → OtpInput}/components/index.js +0 -0
- /package/dist/commonjs/components/{InputOTP → OtpInput}/enums/index.js +0 -0
- /package/dist/module/components/{InputCheckbox → Avatar}/types.js +0 -0
- /package/dist/module/components/{InputOTP/components/InformationStatus → ChatBubble/components/ChatBubbleContent}/types.js +0 -0
- /package/dist/module/components/{InputOTP → ChatBubble/components/ChatBubbleSeal}/types.js +0 -0
- /package/dist/module/components/{InputCheckbox → CheckboxInput}/enums/checkbox-variant.js +0 -0
- /package/dist/module/components/{InputCheckbox → CheckboxInput}/enums/index.js +0 -0
- /package/dist/module/components/{InputCheckbox → CheckboxInput}/enums/select-variant.js +0 -0
- /package/dist/module/components/{InputCheckbox → CheckboxInput}/icons/CheckIcon/index.js +0 -0
- /package/dist/module/components/{InputCheckbox → CheckboxInput}/icons/IndeterminateIcon/index.js +0 -0
- /package/dist/module/components/{InputCheckbox → CheckboxInput}/icons/index.js +0 -0
- /package/dist/module/components/{InputOTP → OtpInput}/components/index.js +0 -0
- /package/dist/module/components/{InputOTP → OtpInput}/enums/index.js +0 -0
- /package/dist/typescript/components/{InputCheckbox → CheckboxInput}/enums/checkbox-variant.d.ts +0 -0
- /package/dist/typescript/components/{InputCheckbox → CheckboxInput}/enums/index.d.ts +0 -0
- /package/dist/typescript/components/{InputCheckbox → CheckboxInput}/enums/select-variant.d.ts +0 -0
- /package/dist/typescript/components/{InputCheckbox → CheckboxInput}/icons/index.d.ts +0 -0
- /package/dist/typescript/components/{InputOTP → OtpInput}/components/InformationStatus/types.d.ts +0 -0
- /package/dist/typescript/components/{InputOTP → OtpInput}/components/index.d.ts +0 -0
- /package/dist/typescript/components/{InputOTP → OtpInput}/enums/index.d.ts +0 -0
- /package/src/components/{InputCheckbox → CheckboxInput}/enums/checkbox-variant.ts +0 -0
- /package/src/components/{InputCheckbox → CheckboxInput}/enums/index.ts +0 -0
- /package/src/components/{InputCheckbox → CheckboxInput}/enums/select-variant.ts +0 -0
- /package/src/components/{InputCheckbox → CheckboxInput}/icons/CheckIcon/index.tsx +0 -0
- /package/src/components/{InputCheckbox → CheckboxInput}/icons/IndeterminateIcon/index.tsx +0 -0
- /package/src/components/{InputCheckbox → CheckboxInput}/icons/index.ts +0 -0
- /package/src/components/{InputOTP → OtpInput}/components/InformationStatus/types.ts +0 -0
- /package/src/components/{InputOTP → OtpInput}/components/index.ts +0 -0
- /package/src/components/{InputOTP → OtpInput}/enums/index.ts +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _variant = require("./variant.js");
|
|
7
|
+
Object.keys(_variant).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _variant[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _variant[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _iconColor = require("./icon-color.js");
|
|
18
|
+
Object.keys(_iconColor).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _iconColor[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _iconColor[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_variant","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_iconColor"],"sourceRoot":"../../../../../src","sources":["components/ListButton/enums/index.ts"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ListButtonVariantEnum = void 0;
|
|
7
|
+
let ListButtonVariantEnum = exports.ListButtonVariantEnum = /*#__PURE__*/function (ListButtonVariantEnum) {
|
|
8
|
+
ListButtonVariantEnum["GRAPE"] = "grape";
|
|
9
|
+
ListButtonVariantEnum["JAVA"] = "java";
|
|
10
|
+
ListButtonVariantEnum["PEAR"] = "pear";
|
|
11
|
+
ListButtonVariantEnum["TANGERINE"] = "tangerine";
|
|
12
|
+
ListButtonVariantEnum["BLACKBERRY"] = "blackberry";
|
|
13
|
+
ListButtonVariantEnum["CHIA"] = "chia";
|
|
14
|
+
ListButtonVariantEnum["OUTLINE"] = "outline";
|
|
15
|
+
return ListButtonVariantEnum;
|
|
16
|
+
}({});
|
|
17
|
+
//# sourceMappingURL=variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ListButtonVariantEnum","exports"],"sourceRoot":"../../../../../src","sources":["components/ListButton/enums/variant.ts"],"mappings":";;;;;;IAAYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ListButton = ListButton;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _index = require("../Typography/index.js");
|
|
9
|
+
var _index2 = require("./enums/index.js");
|
|
10
|
+
var _index3 = require("../../enums/index.js");
|
|
11
|
+
var _native = require("@kivid/icons/native");
|
|
12
|
+
var _classVariants = require("./assets/class-variants.js");
|
|
13
|
+
var _tailwindPreset = require("@kivid/tailwind-preset");
|
|
14
|
+
var _react = require("react");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function ListButton(props) {
|
|
17
|
+
const {
|
|
18
|
+
icon,
|
|
19
|
+
iconColor = _index2.ListButtonIconColorEnum.GHOST,
|
|
20
|
+
children,
|
|
21
|
+
showChevronIcon = true,
|
|
22
|
+
variant = _index2.ListButtonVariantEnum.GRAPE,
|
|
23
|
+
size = _index3.SizeEnum.SMALL,
|
|
24
|
+
corners = _index3.CornersEnum.SMALL,
|
|
25
|
+
disabled = false,
|
|
26
|
+
className,
|
|
27
|
+
accessibilityLabel,
|
|
28
|
+
onPressIn,
|
|
29
|
+
onPressOut,
|
|
30
|
+
...rest
|
|
31
|
+
} = props;
|
|
32
|
+
const typographyVariantMap = {
|
|
33
|
+
small: "label_small",
|
|
34
|
+
medium: "label_medium",
|
|
35
|
+
large: "label_large"
|
|
36
|
+
};
|
|
37
|
+
const typographyVariant = typographyVariantMap[size];
|
|
38
|
+
const chevronIconColor = variant === _index2.ListButtonVariantEnum.OUTLINE ? "#393E3E" : "#FAFCFC";
|
|
39
|
+
const textStyle = (0, _classVariants.textVariants)({
|
|
40
|
+
variant
|
|
41
|
+
});
|
|
42
|
+
const animatedValue = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
43
|
+
const mappedIconColor = {
|
|
44
|
+
[_index2.ListButtonIconColorEnum.GHOST]: "#FAFCFC",
|
|
45
|
+
[_index2.ListButtonIconColorEnum.GRAPE]: "#7A50D9",
|
|
46
|
+
[_index2.ListButtonIconColorEnum.JAVA]: "#43C1E0",
|
|
47
|
+
[_index2.ListButtonIconColorEnum.PITAYA]: "#E64595",
|
|
48
|
+
[_index2.ListButtonIconColorEnum.PEAR]: "#3DCC78",
|
|
49
|
+
[_index2.ListButtonIconColorEnum.TANGERINE]: "#FF8B59",
|
|
50
|
+
[_index2.ListButtonIconColorEnum.BLACKBERRY]: "#E65245",
|
|
51
|
+
[_index2.ListButtonIconColorEnum.CHIA]: "#393E3E"
|
|
52
|
+
}[iconColor];
|
|
53
|
+
const handlePressIn = event => {
|
|
54
|
+
_reactNative.Animated.timing(animatedValue, {
|
|
55
|
+
toValue: 0.7,
|
|
56
|
+
duration: 100,
|
|
57
|
+
useNativeDriver: true
|
|
58
|
+
}).start();
|
|
59
|
+
onPressIn?.(event);
|
|
60
|
+
};
|
|
61
|
+
const handlePressOut = event => {
|
|
62
|
+
_reactNative.Animated.timing(animatedValue, {
|
|
63
|
+
toValue: 1,
|
|
64
|
+
duration: 100,
|
|
65
|
+
useNativeDriver: true
|
|
66
|
+
}).start();
|
|
67
|
+
onPressOut?.(event);
|
|
68
|
+
};
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
70
|
+
style: {
|
|
71
|
+
opacity: animatedValue
|
|
72
|
+
},
|
|
73
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
74
|
+
className: (0, _tailwindPreset.merge)((0, _classVariants.buttonVariants)({
|
|
75
|
+
variant,
|
|
76
|
+
size,
|
|
77
|
+
corners
|
|
78
|
+
}), className),
|
|
79
|
+
disabled: disabled,
|
|
80
|
+
accessibilityRole: "button",
|
|
81
|
+
accessibilityLabel: accessibilityLabel,
|
|
82
|
+
accessibilityState: {
|
|
83
|
+
disabled: disabled
|
|
84
|
+
},
|
|
85
|
+
onPressIn: handlePressIn,
|
|
86
|
+
onPressOut: handlePressOut,
|
|
87
|
+
...rest,
|
|
88
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
89
|
+
className: (0, _classVariants.iconButtonVariants)({
|
|
90
|
+
showChevronIcon
|
|
91
|
+
}),
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
93
|
+
className: "mr-400 flex items-center",
|
|
94
|
+
children: icon ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.ChatbubbleEllipses, {
|
|
95
|
+
size: 24,
|
|
96
|
+
color: mappedIconColor
|
|
97
|
+
})
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Typography, {
|
|
99
|
+
variant: typographyVariant,
|
|
100
|
+
weight: "700",
|
|
101
|
+
className: (0, _tailwindPreset.merge)(textStyle, "truncate mr-700"),
|
|
102
|
+
children: children
|
|
103
|
+
})]
|
|
104
|
+
}), showChevronIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
105
|
+
className: "flex items-center",
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.ChevronRight, {
|
|
107
|
+
color: chevronIconColor
|
|
108
|
+
})
|
|
109
|
+
})]
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_index","_index2","_index3","_native","_classVariants","_tailwindPreset","_react","_jsxRuntime","ListButton","props","icon","iconColor","ListButtonIconColorEnum","GHOST","children","showChevronIcon","variant","ListButtonVariantEnum","GRAPE","size","SizeEnum","SMALL","corners","CornersEnum","disabled","className","accessibilityLabel","onPressIn","onPressOut","rest","typographyVariantMap","small","medium","large","typographyVariant","chevronIconColor","OUTLINE","textStyle","textVariants","animatedValue","useRef","Animated","Value","current","mappedIconColor","JAVA","PITAYA","PEAR","TANGERINE","BLACKBERRY","CHIA","handlePressIn","event","timing","toValue","duration","useNativeDriver","start","handlePressOut","jsx","View","style","opacity","jsxs","Pressable","merge","buttonVariants","accessibilityRole","accessibilityState","iconButtonVariants","ChatbubbleEllipses","color","Typography","weight","ChevronRight"],"sourceRoot":"../../../../src","sources":["components/ListButton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A,kBAAmB;MACvC0C,kBAAkB,EAAE;QAClB5C,QAAQ,EAAEA;MACZ,CAAE;MACFG,SAAS,EAAEwB,aAAc;MACzBvB,UAAU,EAAE8B,cAAe;MAAA,GACvB7B,IAAI;MAAAf,QAAA,gBAER,IAAAP,WAAA,CAAAwD,IAAA,EAACjE,YAAA,CAAA8D,IAAI;QAACnC,SAAS,EAAE,IAAA4C,iCAAkB,EAAC;UAAEtD;QAAgB,CAAC,CAAE;QAAAD,QAAA,gBACvD,IAAAP,WAAA,CAAAoD,GAAA,EAAC7D,YAAA,CAAA8D,IAAI;UAACnC,SAAS,EAAC,0BAA0B;UAAAX,QAAA,EACvCJ,IAAI,iBAAI,IAAAH,WAAA,CAAAoD,GAAA,EAACxD,OAAA,CAAAmE,kBAAkB;YAACnD,IAAI,EAAE,EAAG;YAACoD,KAAK,EAAE3B;UAAgB,CAAE;QAAC,CAC7D,CAAC,eAEP,IAAArC,WAAA,CAAAoD,GAAA,EAAC3D,MAAA,CAAAwE,UAAU;UACTxD,OAAO,EAAEkB,iBAAkB;UAC3BuC,MAAM,EAAC,KAAK;UACZhD,SAAS,EAAE,IAAAwC,qBAAK,EAAC5B,SAAS,EAAE,iBAAiB,CAAE;UAAAvB,QAAA,EAE9CA;QAAQ,CACC,CAAC;MAAA,CACT,CAAC,EAENC,eAAe,iBACd,IAAAR,WAAA,CAAAoD,GAAA,EAAC7D,YAAA,CAAA8D,IAAI;QAACnC,SAAS,EAAC,mBAAmB;QAAAX,QAAA,eACjC,IAAAP,WAAA,CAAAoD,GAAA,EAACxD,OAAA,CAAAuE,YAAY;UAACH,KAAK,EAAEpC;QAAiB,CAAE;MAAC,CACrC,CACP;IAAA,CACQ;EAAC,CACC,CAAC;AAEpB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/ListButton/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_lottieReactNative","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","LoadingDots","variant","className","style","lottieViewStyle","ref","rest","variantsMap","grape","light","dark","purposefulOverwrittenSrc","narrowedStyle","jsx","View","children","loop","autoPlay","width","height","source","exports","_default"],"sourceRoot":"../../../../src","sources":["components/LoadingDots/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_lottieReactNative","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","LoadingDots","variant","className","style","lottieViewStyle","ref","rest","variantsMap","grape","light","dark","purposefulOverwrittenSrc","narrowedStyle","jsx","View","children","loop","autoPlay","width","height","source","exports","_default"],"sourceRoot":"../../../../src","sources":["components/LoadingDots/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAA+C,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAExC,MAAMG,WAAW,GAAGA,CAAC;EAC1BC,OAAO,GAAG,OAAO;EACjBC,SAAS;EACTC,KAAK;EACLC,eAAe;EACfC,GAAG;EACH,GAAGC;AACa,CAAC,KAAK;EACtB,MAAMC,WAA+C,GAAG;IACtDC,KAAK,EAAEd,OAAO,CAAC,oCAAoC,CAAC;IACpDe,KAAK,EAAEf,OAAO,CAAC,oCAAoC,CAAC;IACpDgB,IAAI,EAAEhB,OAAO,CAAC,mCAAmC;EACnD,CAAC;EAED,MAAMiB,wBAAwB,GAAGJ,WAAW,CAACN,OAAO,CAAC;EAErD,MAAMW,aAAa,GAAIR,eAAe,IAAkB,CAAC,CAAC;EAE1D,oBACE,IAAAR,WAAA,CAAAiB,GAAA,EAAClB,YAAA,CAAAmB,IAAI;IAACZ,SAAS,EAAEA,SAAU;IAACC,KAAK,EAAEA,KAAM;IAACE,GAAG,EAAEA,GAAI;IAAAU,QAAA,eACjD,IAAAnB,WAAA,CAAAiB,GAAA,EAACrB,kBAAA,CAAAO,OAAU;MACTiB,IAAI,EAAE,IAAK;MACXC,QAAQ,EAAE,IAAK;MAAA,GACXX,IAAI;MACRH,KAAK,EAAE;QAAEe,KAAK,EAAE,EAAE;QAAEC,MAAM,EAAE,EAAE;QAAE,GAAGP;MAAc,CAAE;MACnDQ,MAAM,EAAET;IAAyB,CAClC;EAAC,CACE,CAAC;AAEX,CAAC;AAACU,OAAA,CAAArB,WAAA,GAAAA,WAAA;AAAA,IAAAsB,QAAA,GAAAD,OAAA,CAAAtB,OAAA,GAEaC,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.inputVariants = void 0;
|
|
7
|
+
var _classVarianceAuthority = require("class-variance-authority");
|
|
8
|
+
const inputVariants = exports.inputVariants = (0, _classVarianceAuthority.cva)("h-1000 flex-1 text-center text-3 font-bold leading-600 border-100 bg-chia-100 placeholder-chia-400", {
|
|
9
|
+
variants: {
|
|
10
|
+
rounded: {
|
|
11
|
+
true: "rounded-700",
|
|
12
|
+
false: "rounded-500"
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
true: "opacity-50",
|
|
16
|
+
false: ""
|
|
17
|
+
},
|
|
18
|
+
hasError: {
|
|
19
|
+
true: "border-blackberry-500 text-blackberry-500",
|
|
20
|
+
false: "border-chia-400 text-chia-900"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=class-variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_classVarianceAuthority","require","inputVariants","exports","cva","variants","rounded","true","false","disabled","hasError"],"sourceRoot":"../../../../../src","sources":["components/OtpInput/assets/class-variant.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAEO,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,2BAAG,EAC9B,oGAAoG,EACpG;EACEC,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,IAAI,EAAE,aAAa;MACnBC,KAAK,EAAE;IACT,CAAC;IACDC,QAAQ,EAAE;MACRF,IAAI,EAAE,YAAY;MAClBC,KAAK,EAAE;IACT,CAAC;IACDE,QAAQ,EAAE;MACRH,IAAI,EAAE,2CAA2C;MACjDC,KAAK,EAAE;IACT;EACF;AACF,CACF,CAAC","ignoreList":[]}
|
package/dist/commonjs/components/{InputOTP → OtpInput}/components/InformationStatus/index.js
RENAMED
|
@@ -16,6 +16,7 @@ var _reactNative = require("react-native");
|
|
|
16
16
|
var _index5 = require("../../../Chip/enums/index.js");
|
|
17
17
|
var _index6 = require("../../../Seal/enums/index.js");
|
|
18
18
|
var _index7 = require("../../enums/index.js");
|
|
19
|
+
var _index8 = require("../../../../enums/index.js");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
22
|
function InformationStatus(props) {
|
|
@@ -30,10 +31,10 @@ function InformationStatus(props) {
|
|
|
30
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
31
32
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Button, {
|
|
32
33
|
variant: "outline",
|
|
33
|
-
corners:
|
|
34
|
+
corners: _index8.CornersEnum.MEDIUM,
|
|
34
35
|
disabled: disabled,
|
|
35
36
|
onPress: onPress,
|
|
36
|
-
size:
|
|
37
|
+
size: _index8.SizeEnum.SMALL,
|
|
37
38
|
children: "Reenviar c\xF3digo"
|
|
38
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.HighlightedText, {
|
|
39
40
|
highlightText: "Pronto,",
|
|
@@ -73,10 +74,10 @@ function InformationStatus(props) {
|
|
|
73
74
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
74
75
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Button, {
|
|
75
76
|
variant: "outline",
|
|
76
|
-
corners:
|
|
77
|
+
corners: _index8.CornersEnum.MEDIUM,
|
|
77
78
|
disabled: disabled,
|
|
78
79
|
onPress: onPress,
|
|
79
|
-
size:
|
|
80
|
+
size: _index8.SizeEnum.SMALL,
|
|
80
81
|
children: "Reenviar c\xF3digo"
|
|
81
82
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
82
83
|
className: disabled ? "opacity-50" : "",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","InformationStatus","default","_react","require","_tailwindPreset","_index","_index2","_index3","_interopRequireDefault","_index4","_reactNative","_index5","_index6","_index7","_index8","_jsxRuntime","e","__esModule","props","status","InformationStatusEnum","DEFAULT","disabled","onPress","renderInformation","useMemo","textStyle","merge","jsxs","Fragment","children","jsx","Button","variant","corners","CornersEnum","MEDIUM","size","SizeEnum","SMALL","HighlightedText","highlightText","text","reverse","className","LOADING","SUCCESS","Chip","ChipVariantEnum","OUTLINE","sealVariant","SealVariantEnum","label","ERROR","Text","_default"],"sourceRoot":"../../../../../../src","sources":["components/OtpInput/components/InformationStatus/index.tsx"],"mappings":";AAAA,YAAY;;AAACA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,iBAAA,GAAAA,iBAAA;AAAAF,OAAA,CAAAG,OAAA;AAEb,IAAAC,MAAA,GAAAC,OAAA;AAGA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OA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AQ,EAAEA,QAAS;UACnBC,OAAO,EAAEA,OAAQ;UACjBc,IAAI,EAAEC,gBAAQ,CAACC,KAAM;UAAAT,QAAA,EACtB;QAED,CAAQ,CAAC,eAET,IAAAf,WAAA,CAAAgB,GAAA,EAACrB,YAAA,CAAA4C,IAAI;UAACV,SAAS,EAAEtB,QAAQ,GAAG,YAAY,GAAG,EAAG;UAAAQ,QAAA,EAAC;QAE/C,CAAM,CAAC;MAAA,CACP,CAAC;IAEP;EACF,CAAC,EAAE,CAACR,QAAQ,EAAEC,OAAO,EAAEJ,MAAM,CAAC,CAAC;EAE/B,oBAAO,IAAAJ,WAAA,CAAAgB,GAAA,EAAAhB,WAAA,CAAAc,QAAA;IAAAC,QAAA,EAAGN;EAAiB,CAAG,CAAC;AACjC;AAAC,IAAA+B,QAAA,GAAAzD,OAAA,CAAAG,OAAA,GAEcD,iBAAiB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/OtpInput/components/InformationStatus/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["components/
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["components/OtpInput/components/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InformationStatusEnum","exports"],"sourceRoot":"../../../../../src","sources":["components/
|
|
1
|
+
{"version":3,"names":["InformationStatusEnum","exports"],"sourceRoot":"../../../../../src","sources":["components/OtpInput/enums/index.ts"],"mappings":";;;;;;IAAYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -3,21 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.OtpInput = OtpInput;
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _tailwindPreset = require("@kivid/tailwind-preset");
|
|
11
11
|
var _index = require("./components/index.js");
|
|
12
12
|
var _index2 = require("./enums/index.js");
|
|
13
|
+
var _classVariant = require("./assets/class-variant.js");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function
|
|
15
|
+
function OtpInput(props) {
|
|
15
16
|
const {
|
|
16
17
|
status = _index2.InformationStatusEnum.DEFAULT,
|
|
17
18
|
OTPInputsQuantity = 6,
|
|
18
19
|
customInformation,
|
|
19
20
|
rounded = false,
|
|
20
21
|
disabled = false,
|
|
22
|
+
inputClassName,
|
|
21
23
|
onChange,
|
|
22
24
|
onPressRetryToken
|
|
23
25
|
} = props;
|
|
@@ -106,7 +108,11 @@ function InputOTP(props) {
|
|
|
106
108
|
onPress: handlePress
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
|
-
const inputStyle = (0, _tailwindPreset.merge)(
|
|
111
|
+
const inputStyle = (0, _tailwindPreset.merge)((0, _classVariant.inputVariants)({
|
|
112
|
+
rounded,
|
|
113
|
+
hasError,
|
|
114
|
+
disabled
|
|
115
|
+
}), inputClassName);
|
|
110
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
111
117
|
className: "flex flex-col items-center gap-600",
|
|
112
118
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -131,5 +137,5 @@ function InputOTP(props) {
|
|
|
131
137
|
}), renderInformationStatus()]
|
|
132
138
|
});
|
|
133
139
|
}
|
|
134
|
-
var _default = exports.default =
|
|
140
|
+
var _default = exports.default = OtpInput;
|
|
135
141
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_tailwindPreset","_index","_index2","_classVariant","_jsxRuntime","OtpInput","props","status","InformationStatusEnum","DEFAULT","OTPInputsQuantity","customInformation","rounded","disabled","inputClassName","onChange","onPressRetryToken","inputsRef","useRef","inputValues","setInputValues","useState","Array","fill","hasError","ERROR","handlePress","values","inputRefValuesJoined","join","length","handleChange","event","index","text","nativeEvent","newValues","chars","split","targetIndex","forEach","char","nextEmptyIndex","findIndex","value","current","focus","v","i","handleKeyDown","e","key","hasValueAhead","slice","some","lastFilledIndex","map","filter","pop","undefined","handleFocus","firstEmptyIndex","preventDefault","renderInformationStatus","jsx","Fragment","children","InformationStatus","onPress","inputStyle","merge","inputVariants","jsxs","View","className","from","_","TextInput","ref","textContentType","placeholder","autoComplete","Platform","OS","placeholderTextColor","editable","onKeyPress","onFocus","_default","exports","default"],"sourceRoot":"../../../../src","sources":["components/OtpInput/index.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,eAAA,GAAAF,OAAA;A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BAAoB,EAAC,SAAS;QAC9BC,QAAQ,EAAE,CAACxE,QAAS;QACpB+B,KAAK,EAAEzB,WAAW,CAAC6B,CAAC,CAAE;QACtBjC,QAAQ,EAAGmC,CAAC,IAAKnB,YAAY,CAACmB,CAAC,EAAEF,CAAC,CAAE;QACpCsC,UAAU,EAAGpC,CAAC,IAAKD,aAAa,CAACC,CAAC,EAAEF,CAAC,CAAE;QACvCuC,OAAO,EAAGrC,CAAC,IAAKU,WAAW,CAACV,CAAC,EAAEF,CAAC;MAAE,GAZ7B,aAAaA,CAAC,EAapB,CACF;IAAC,CACE,CAAC,EAENe,uBAAuB,CAAC,CAAC;EAAA,CACtB,CAAC;AAEX;AAAC,IAAAyB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcrF,QAAQ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/OtpInput/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.radioInputVariants = void 0;
|
|
7
|
+
var _classVarianceAuthority = require("class-variance-authority");
|
|
8
|
+
var _index = require("../enums/index.js");
|
|
9
|
+
const radioInputVariants = exports.radioInputVariants = (0, _classVarianceAuthority.cva)("w-[20px] h-[20px] rounded-full border-200 flex items-center justify-center", {
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
[_index.RadioInputVariantEnum.GRAPE]: ["bg-chia-200 border-chia-400"],
|
|
13
|
+
[_index.RadioInputVariantEnum.JAVA]: ["bg-chia-200 border-chia-400"],
|
|
14
|
+
[_index.RadioInputVariantEnum.PEAR]: ["bg-chia-200 border-chia-400"],
|
|
15
|
+
[_index.RadioInputVariantEnum.TANGERINE]: ["bg-chia-200 border-chia-400"],
|
|
16
|
+
[_index.RadioInputVariantEnum.CHIA]: ["bg-chia-200 border-chia-400"],
|
|
17
|
+
[_index.RadioInputVariantEnum.PITAYA]: ["bg-chia-200 border-chia-400"],
|
|
18
|
+
[_index.RadioInputVariantEnum.MANGO]: ["bg-chia-200 border-chia-400"]
|
|
19
|
+
},
|
|
20
|
+
isSelected: {
|
|
21
|
+
true: null,
|
|
22
|
+
false: "bg-chia-100 border-chia-400"
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
true: "opacity-50 cursor-not-allowed",
|
|
26
|
+
false: "cursor-pointer"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
compoundVariants: [{
|
|
30
|
+
variant: _index.RadioInputVariantEnum.GRAPE,
|
|
31
|
+
isSelected: true,
|
|
32
|
+
class: "bg-grape-500 border-grape-500"
|
|
33
|
+
}, {
|
|
34
|
+
variant: _index.RadioInputVariantEnum.JAVA,
|
|
35
|
+
isSelected: true,
|
|
36
|
+
class: "bg-java-500 border-java-500"
|
|
37
|
+
}, {
|
|
38
|
+
variant: _index.RadioInputVariantEnum.PEAR,
|
|
39
|
+
isSelected: true,
|
|
40
|
+
class: "bg-pear-500 border-pear-500"
|
|
41
|
+
}, {
|
|
42
|
+
variant: _index.RadioInputVariantEnum.TANGERINE,
|
|
43
|
+
isSelected: true,
|
|
44
|
+
class: "bg-tangerine-500 border-tangerine-500"
|
|
45
|
+
}, {
|
|
46
|
+
variant: _index.RadioInputVariantEnum.CHIA,
|
|
47
|
+
isSelected: true,
|
|
48
|
+
class: "bg-chia-600 border-chia-600"
|
|
49
|
+
}, {
|
|
50
|
+
variant: _index.RadioInputVariantEnum.PITAYA,
|
|
51
|
+
isSelected: true,
|
|
52
|
+
class: "bg-pitaya-500 border-pitaya-500"
|
|
53
|
+
}, {
|
|
54
|
+
variant: _index.RadioInputVariantEnum.MANGO,
|
|
55
|
+
isSelected: true,
|
|
56
|
+
class: "bg-mango-500 border-mango-500"
|
|
57
|
+
},
|
|
58
|
+
// Compound variants para disabled + selected para manter cores mais claras apenas quando selecionado
|
|
59
|
+
{
|
|
60
|
+
variant: _index.RadioInputVariantEnum.GRAPE,
|
|
61
|
+
isSelected: true,
|
|
62
|
+
disabled: true,
|
|
63
|
+
class: "bg-grape-300 border-grape-300"
|
|
64
|
+
}, {
|
|
65
|
+
variant: _index.RadioInputVariantEnum.JAVA,
|
|
66
|
+
isSelected: true,
|
|
67
|
+
disabled: true,
|
|
68
|
+
class: "bg-java-300 border-java-300"
|
|
69
|
+
}, {
|
|
70
|
+
variant: _index.RadioInputVariantEnum.PEAR,
|
|
71
|
+
isSelected: true,
|
|
72
|
+
disabled: true,
|
|
73
|
+
class: "bg-pear-300 border-pear-300"
|
|
74
|
+
}, {
|
|
75
|
+
variant: _index.RadioInputVariantEnum.TANGERINE,
|
|
76
|
+
isSelected: true,
|
|
77
|
+
disabled: true,
|
|
78
|
+
class: "bg-tangerine-300 border-tangerine-300"
|
|
79
|
+
}, {
|
|
80
|
+
variant: _index.RadioInputVariantEnum.CHIA,
|
|
81
|
+
isSelected: true,
|
|
82
|
+
disabled: true,
|
|
83
|
+
class: "bg-chia-300 border-chia-300"
|
|
84
|
+
}, {
|
|
85
|
+
variant: _index.RadioInputVariantEnum.PITAYA,
|
|
86
|
+
isSelected: true,
|
|
87
|
+
disabled: true,
|
|
88
|
+
class: "bg-pitaya-300 border-pitaya-300"
|
|
89
|
+
}, {
|
|
90
|
+
variant: _index.RadioInputVariantEnum.MANGO,
|
|
91
|
+
isSelected: true,
|
|
92
|
+
disabled: true,
|
|
93
|
+
class: "bg-mango-300 border-mango-300"
|
|
94
|
+
}],
|
|
95
|
+
defaultVariants: {
|
|
96
|
+
variant: _index.RadioInputVariantEnum.JAVA,
|
|
97
|
+
isSelected: false,
|
|
98
|
+
disabled: false
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=class-variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_classVarianceAuthority","require","_index","radioInputVariants","exports","cva","variants","variant","RadioInputVariantEnum","GRAPE","JAVA","PEAR","TANGERINE","CHIA","PITAYA","MANGO","isSelected","true","false","disabled","compoundVariants","class","defaultVariants"],"sourceRoot":"../../../../../src","sources":["components/RadioInput/assets/class-variants.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,2BAAG,EACnC,4EAA4E,EAC5E;EACEC,QAAQ,EAAE;IACRC,OAAO,EAAE;MACP,CAACC,4BAAqB,CAACC,KAAK,GAAG,CAAC,6BAA6B,CAAC;MAC9D,CAACD,4BAAqB,CAACE,IAAI,GAAG,CAAC,6BAA6B,CAAC;MAC7D,CAACF,4BAAqB,CAACG,IAAI,GAAG,CAAC,6BAA6B,CAAC;MAC7D,CAACH,4BAAqB,CAACI,SAAS,GAAG,CAAC,6BAA6B,CAAC;MAClE,CAACJ,4BAAqB,CAACK,IAAI,GAAG,CAAC,6BAA6B,CAAC;MAC7D,CAACL,4BAAqB,CAACM,MAAM,GAAG,CAAC,6BAA6B,CAAC;MAC/D,CAACN,4BAAqB,CAACO,KAAK,GAAG,CAAC,6BAA6B;IAC/D,CAAC;IACDC,UAAU,EAAE;MACVC,IAAI,EAAE,IAAI;MACVC,KAAK,EAAE;IACT,CAAC;IACDC,QAAQ,EAAE;MACRF,IAAI,EAAE,+BAA+B;MACrCC,KAAK,EAAE;IACT;EACF,CAAC;EACDE,gBAAgB,EAAE,CAChB;IACEb,OAAO,EAAEC,4BAAqB,CAACC,KAAK;IACpCO,UAAU,EAAE,IAAI;IAChBK,KAAK,EAAE;EACT,CAAC,EACD;IACEd,OAAO,EAAEC,4BAAqB,CAACE,IAAI;IACnCM,UAAU,EAAE,IAAI;IAChBK,KAAK,EAAE;EACT,CA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dE,KAAK,EAAE;EACT,CAAC,EACD;IACEd,OAAO,EAAEC,4BAAqB,CAACO,KAAK;IACpCC,UAAU,EAAE,IAAI;IAChBG,QAAQ,EAAE,IAAI;IACdE,KAAK,EAAE;EACT,CAAC,CACF;EACDC,eAAe,EAAE;IACff,OAAO,EAAEC,4BAAqB,CAACE,IAAI;IACnCM,UAAU,EAAE,KAAK;IACjBG,QAAQ,EAAE;EACZ;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RadioInputVariantEnum = void 0;
|
|
7
|
+
let RadioInputVariantEnum = exports.RadioInputVariantEnum = /*#__PURE__*/function (RadioInputVariantEnum) {
|
|
8
|
+
RadioInputVariantEnum["GRAPE"] = "grape";
|
|
9
|
+
RadioInputVariantEnum["JAVA"] = "java";
|
|
10
|
+
RadioInputVariantEnum["PEAR"] = "pear";
|
|
11
|
+
RadioInputVariantEnum["TANGERINE"] = "tangerine";
|
|
12
|
+
RadioInputVariantEnum["CHIA"] = "chia";
|
|
13
|
+
RadioInputVariantEnum["PITAYA"] = "pitaya";
|
|
14
|
+
RadioInputVariantEnum["MANGO"] = "mango";
|
|
15
|
+
return RadioInputVariantEnum;
|
|
16
|
+
}({});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RadioInputVariantEnum","exports"],"sourceRoot":"../../../../../src","sources":["components/RadioInput/enums/index.ts"],"mappings":";;;;;;IAAYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RadioInput = RadioInput;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _index = require("./enums/index.js");
|
|
9
|
+
var _classVariants = require("./assets/class-variants.js");
|
|
10
|
+
var _tailwindPreset = require("@kivid/tailwind-preset");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function RadioInput(props) {
|
|
13
|
+
const {
|
|
14
|
+
isSelected = false,
|
|
15
|
+
variant = _index.RadioInputVariantEnum.JAVA,
|
|
16
|
+
onChange,
|
|
17
|
+
disabled = false,
|
|
18
|
+
className
|
|
19
|
+
} = props;
|
|
20
|
+
function handleChange() {
|
|
21
|
+
onChange?.(!isSelected);
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
24
|
+
onPress: handleChange,
|
|
25
|
+
disabled: disabled,
|
|
26
|
+
accessible: true,
|
|
27
|
+
accessibilityRole: "radio",
|
|
28
|
+
accessibilityState: {
|
|
29
|
+
checked: isSelected
|
|
30
|
+
},
|
|
31
|
+
className: (0, _tailwindPreset.merge)((0, _classVariants.radioInputVariants)({
|
|
32
|
+
variant,
|
|
33
|
+
isSelected,
|
|
34
|
+
disabled
|
|
35
|
+
}), className),
|
|
36
|
+
children: isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
37
|
+
className: "w-400 h-400 rounded-full bg-white"
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_index","_classVariants","_tailwindPreset","_jsxRuntime","RadioInput","props","isSelected","variant","RadioInputVariantEnum","JAVA","onChange","disabled","className","handleChange","jsx","TouchableOpacity","onPress","accessible","accessibilityRole","accessibilityState","checked","merge","radioInputVariants","children","View"],"sourceRoot":"../../../../src","sources":["components/RadioInput/index.tsx"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAA+C,IAAAI,WAAA,GAAAJ,OAAA;AAExC,SAASK,UAAUA,CAACC,KAAsB,EAAE;EACjD,MAAM;IACJC,UAAU,GAAG,KAAK;IAClBC,OAAO,GAAGC,4BAAqB,CAACC,IAAI;IACpCC,QAAQ;IACRC,QAAQ,GAAG,KAAK;IAChBC;EACF,CAAC,GAAGP,KAAK;EAET,SAASQ,YAAYA,CAAA,EAAG;IACtBH,QAAQ,GAAG,CAACJ,UAAU,CAAC;EACzB;EAEA,oBACE,IAAAH,WAAA,CAAAW,GAAA,EAAChB,YAAA,CAAAiB,gBAAgB;IACfC,OAAO,EAAEH,YAAa;IACtBF,QAAQ,EAAEA,QAAS;IACnBM,UAAU;IACVC,iBAAiB,EAAC,OAAO;IACzBC,kBAAkB,EAAE;MAAEC,OAAO,EAAEd;IAAW,CAAE;IAC5CM,SAAS,EAAE,IAAAS,qBAAK,EACd,IAAAC,iCAAkB,EAAC;MAAEf,OAAO;MAAED,UAAU;MAAEK;IAAS,CAAC,CAAC,EACrDC,SACF,CAAE;IAAAW,QAAA,EAEDjB,UAAU,iBAAI,IAAAH,WAAA,CAAAW,GAAA,EAAChB,YAAA,CAAA0B,IAAI;MAACZ,SAAS,EAAC;IAAmC,CAAE;EAAC,CACrD,CAAC;AAEvB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/RadioInput/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.sealVariants = void 0;
|
|
7
7
|
var _classVarianceAuthority = require("class-variance-authority");
|
|
8
|
+
var _index = require("../../../enums/index.js");
|
|
8
9
|
const sealVariants = exports.sealVariants = (0, _classVarianceAuthority.cva)("flex items-center justify-center transition ease-in-out pointer-events-none w-fit stroke-none", {
|
|
9
10
|
variants: {
|
|
10
11
|
size: {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
[_index.SizeEnum.SMALL]: "w-600 h-600 rounded-300",
|
|
13
|
+
[_index.SizeEnum.MEDIUM]: "w-700 h-700 rounded-500"
|
|
13
14
|
},
|
|
14
15
|
variant: {
|
|
15
16
|
add: "bg-grape-500",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_classVarianceAuthority","require","sealVariants","exports","cva","variants","size","
|
|
1
|
+
{"version":3,"names":["_classVarianceAuthority","require","_index","sealVariants","exports","cva","variants","size","SizeEnum","SMALL","MEDIUM","variant","add","success","error","alert","minus","right","left","inverted","true","false","compoundVariants","className","defaultVariants"],"sourceRoot":"../../../../../src","sources":["components/Seal/assets/class-variants.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,2BAAG,EAC7B,+FAA+F,EAC/F;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJ,CAACC,eAAQ,CAACC,KAAK,GAAG,yBAAyB;MAC3C,CAACD,eAAQ,CAACE,MAAM,GAAG;IACrB,CAAC;IACDC,OAAO,EAAE;MACPC,GAAG,EAAE,cAAc;MACnBC,OAAO,EAAE,aAAa;MACtBC,KAAK,EAAE,mBAAmB;MAC1BC,KAAK,EAAE,kBAAkB;MACzBC,KAAK,EAAE,aAAa;MACpBC,KAAK,EAAE,aAAa;MACpBC,IAAI,EAAE;IACR,CAAC;IACDC,QAAQ,EAAE;MACRC,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,gBAAgB,EAAE,CAChB;IACEH,QAAQ,EAAE,KAAK;IACfI,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,KAAK;IACdY,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,SAAS;IAClBY,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,OAAO;IAChBY,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,OAAO;IAChBY,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,OAAO;IAChBY,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,OAAO;IAChBY,SAAS,EAAE;EACb,CAAC,EACD;IACEJ,QAAQ,EAAE,IAAI;IACdR,OAAO,EAAE,MAAM;IACfY,SAAS,EAAE;EACb,CAAC,CACF;EACDC,eAAe,EAAE;IACfL,QAAQ,EAAE;EACZ;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.AddIcon = void 0;
|
|
7
7
|
var _reactNativeSvg = require("react-native-svg");
|
|
8
|
+
var _index = require("../../../../enums/index.js");
|
|
8
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
10
|
const AddIcon = ({
|
|
10
|
-
size =
|
|
11
|
+
size = _index.SizeEnum.MEDIUM,
|
|
11
12
|
...props
|
|
12
13
|
}) => {
|
|
13
14
|
const sizes = {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
[_index.SizeEnum.SMALL]: 16,
|
|
16
|
+
[_index.SizeEnum.MEDIUM]: 24
|
|
16
17
|
};
|
|
17
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Svg, {
|
|
18
19
|
width: sizes[size],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeSvg","require","_jsxRuntime","AddIcon","size","
|
|
1
|
+
{"version":3,"names":["_reactNativeSvg","require","_index","_jsxRuntime","AddIcon","size","SizeEnum","MEDIUM","props","sizes","SMALL","jsx","Svg","width","height","viewBox","fill","children","Path","fillRule","clipRule","d","exports"],"sourceRoot":"../../../../../../src","sources":["components/Seal/components/AddIcon/index.tsx"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAA6C,IAAAE,WAAA,GAAAF,OAAA;AAEtC,MAAMG,OAAO,GAAGA,CAAC;EACtBC,IAAI,GAAGC,eAAQ,CAACC,MAAM;EACtB,GAAGC;AACU,CAAC,KAAK;EACnB,MAAMC,KAAK,GAAG;IACZ,CAACH,eAAQ,CAACI,KAAK,GAAG,EAAE;IACpB,CAACJ,eAAQ,CAACC,MAAM,GAAG;EACrB,CAAC;EAED,oBACE,IAAAJ,WAAA,CAAAQ,GAAA,EAACX,eAAA,CAAAY,GAAG;IACFC,KAAK,EAAEJ,KAAK,CAACJ,IAAI,CAAE;IACnBS,MAAM,EAAEL,KAAK,CAACJ,IAAI,CAAE;IACpBU,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IAAA,GACPR,KAAK;IAAAS,QAAA,eAET,IAAAd,WAAA,CAAAQ,GAAA,EAACX,eAAA,CAAAkB,IAAI;MACHC,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,6UAA6U;MAC/UL,IAAI,EAAC;IAAc,CACpB;EAAC,CACC,CAAC;AAEV,CAAC;AAACM,OAAA,CAAAlB,OAAA,GAAAA,OAAA","ignoreList":[]}
|