@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 @@
|
|
|
1
|
+
{"version":3,"names":["useRef","View","TextInput","RNTextInput","Pressable","merge","Seal","SealVariantEnum","TextInputCornersEnum","textInputContainerVariants","textInputContentVariants","textInputFieldVariants","Typography","SizeEnum","Tooltip","TooltipVariantEnum","jsx","_jsx","jsxs","_jsxs","corners","MEDIUM","label","value","onChangeText","disabled","error","isValid","className","inputClassName","labelClassName","placeholder","accessibilityLabel","containerTestID","ref","tooltipClassName","rest","inputRef","hasLabel","hasError","shouldShowSeal","renderSeal","testID","sealVariant","ERROR","SUCCESS","children","variant","size","handleChangeText","text","getAccessibilityLabel","labelText","isVisible","message","showLabel","onPress","current","focus","weight","editable","accessibilityState","instance","displayName"],"sourceRoot":"../../../../src","sources":["components/TextInput/index.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,OAAO;AAC9B,SAASC,IAAI,EAAEC,SAAS,IAAIC,WAAW,EAAEC,SAAS,QAAQ,cAAc;AACxE,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,eAAe,QAAQ,wBAAe;AAE/C,SAASC,oBAAoB,QAAQ,YAAS;AAC9C,SACEC,0BAA0B,EAC1BC,wBAAwB,EACxBC,sBAAsB,QACjB,4BAAyB;AAChC,OAAOC,UAAU,MAAM,wBAAe;AACtC,SAASC,QAAQ,QAAQ,sBAAa;AACtC,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,kBAAkB,QAAQ,0BAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAErD,OAAO,SAASjB,SAASA,CAAC;EACxBkB,OAAO,GAAGZ,oBAAoB,CAACa,MAAM;EACrCC,KAAK;EACLC,KAAK;EACLC,YAAY;EACZC,QAAQ,GAAG,KAAK;EAChBC,KAAK;EACLC,OAAO;EACPC,SAAS,GAAG,EAAE;EACdC,cAAc,GAAG,EAAE;EACnBC,cAAc,GAAG,EAAE;EACnBC,WAAW,GAAG,aAAa;EAC3BC,kBAAkB;EAClBC,eAAe;EACfC,GAAG;EACHC,gBAAgB,GAAG,EAAE;EACrB,GAAGC;AACW,CAAC,EAAE;EACjB,MAAMC,QAAQ,GAAGrC,MAAM,CAAc,IAAI,CAAC;EAC1C,MAAMsC,QAAQ,GAAG,CAAC,CAAChB,KAAK;EACxB,MAAMiB,QAAQ,GAAG,CAAC,CAACb,KAAK;EAExB,MAAMc,cAAc,GAAGd,KAAK,IAAIC,OAAO;EAEvC,MAAMc,UAAU,GAAGA,CAAA,KAAM;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
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/TextInput/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { InformationStatus } from "../../../InformationStatus/index.js";
|
|
4
4
|
import { InformationStatusOptionsEnum } from "../../../InformationStatus/enums.js";
|
|
5
|
+
import { SizeEnum } from "../../../../enums/index.js";
|
|
5
6
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
7
|
export function Icon(props) {
|
|
7
8
|
const {
|
|
8
9
|
variants,
|
|
9
10
|
customIcon,
|
|
10
|
-
size =
|
|
11
|
+
size = SizeEnum.MEDIUM
|
|
11
12
|
} = props;
|
|
12
13
|
function renderIcon() {
|
|
13
14
|
if (variants === "success") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InformationStatus","InformationStatusOptionsEnum","jsx","_jsx","Fragment","_Fragment","Icon","props","variants","customIcon","size","renderIcon","status","SUCCESS","ERROR","WARNING","ADD","children"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/icon/index.tsx"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,qCAA4B;AAC9D,SAASC,4BAA4B,QAAQ,qCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;
|
|
1
|
+
{"version":3,"names":["InformationStatus","InformationStatusOptionsEnum","SizeEnum","jsx","_jsx","Fragment","_Fragment","Icon","props","variants","customIcon","size","MEDIUM","renderIcon","status","SUCCESS","ERROR","WARNING","ADD","children"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/icon/index.tsx"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,qCAA4B;AAC9D,SAASC,4BAA4B,QAAQ,qCAAkC;AAC/E,SAASC,QAAQ,QAAQ,4BAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAE7C,OAAO,SAASC,IAAIA,CAACC,KAAgB,EAAE;EACrC,MAAM;IAAEC,QAAQ;IAAEC,UAAU;IAAEC,IAAI,GAAGT,QAAQ,CAACU;EAAO,CAAC,GAAGJ,KAAK;EAE9D,SAASK,UAAUA,CAAA,EAAG;IACpB,IAAIJ,QAAQ,KAAK,SAAS,EAAE;MAC1B,oBACEL,IAAA,CAACJ,iBAAiB;QAChBc,MAAM,EAAEb,4BAA4B,CAACc,OAAQ;QAC7CJ,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,OAAO,EAAE;MACxB,oBACEL,IAAA,CAACJ,iBAAiB;QAChBc,MAAM,EAAEb,4BAA4B,CAACe,KAAM;QAC3CL,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,SAAS,EAAE;MAC1B,oBACEL,IAAA,CAACJ,iBAAiB;QAChBc,MAAM,EAAEb,4BAA4B,CAACgB,OAAQ;QAC7CN,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,KAAK,EAAE;MACtB,oBACEL,IAAA,CAACJ,iBAAiB;QAChBc,MAAM,EAAEb,4BAA4B,CAACiB,GAAI;QACzCP,IAAI,EAAEA;MAAK,CACZ,CAAC;IAEN;IAEA,IAAIF,QAAQ,KAAK,QAAQ,IAAIC,UAAU,EAAE;MACvC,OAAOA,UAAU;IACnB;EACF;EAEA,oBAAON,IAAA,CAAAE,SAAA;IAAAa,QAAA,EAAGN,UAAU,CAAC;EAAC,CAAG,CAAC;AAC5B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IconVariants"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/icon/types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["IconVariants"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/icon/types.ts"],"mappings":";;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { View } from "react-native";
|
|
4
|
+
import { SizeEnum } from "../../../../enums/index.js";
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
export function Marker(props) {
|
|
6
7
|
const {
|
|
7
|
-
size =
|
|
8
|
+
size = SizeEnum.MEDIUM,
|
|
8
9
|
color = "chia"
|
|
9
10
|
} = props;
|
|
10
11
|
const mappedSize = {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
[SizeEnum.SMALL]: "w-700 h-300",
|
|
13
|
+
[SizeEnum.MEDIUM]: "w-800 h-[6px]"
|
|
13
14
|
}[size];
|
|
14
15
|
const mappedColor = {
|
|
15
16
|
pear: "bg-pear-500",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","jsx","_jsx","Marker","props","size","
|
|
1
|
+
{"version":3,"names":["View","SizeEnum","jsx","_jsx","Marker","props","size","MEDIUM","color","mappedSize","SMALL","mappedColor","pear","java","grape","pitaya","tangerine","mango","blackberry","chia","ghost","className"],"sourceRoot":"../../../../../../src","sources":["components/Title/components/marker/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,QAAQ,QAAQ,4BAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7C,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAM;IAAEC,IAAI,GAAGL,QAAQ,CAACM,MAAM;IAAEC,KAAK,GAAG;EAAO,CAAC,GAAGH,KAAK;EAExD,MAAMI,UAAU,GAAG;IACjB,CAACR,QAAQ,CAACS,KAAK,GAAG,aAAa;IAC/B,CAACT,QAAQ,CAACM,MAAM,GAAG;EACrB,CAAC,CAACD,IAAI,CAAC;EAEP,MAAMK,WAAW,GAAG;IAClBC,IAAI,EAAE,aAAa;IACnBC,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE,cAAc;IACrBC,MAAM,EAAE,eAAe;IACvBC,SAAS,EAAE,kBAAkB;IAC7BC,KAAK,EAAE,cAAc;IACrBC,UAAU,EAAE,mBAAmB;IAC/BC,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;EACT,CAAC,CAACZ,KAAK,CAAC;EAER,oBAAOL,IAAA,CAACH,IAAI;IAACqB,SAAS,EAAE,GAAGV,WAAW,IAAIF,UAAU;EAAe,CAAE,CAAC;AACxE","ignoreList":[]}
|
|
@@ -4,23 +4,24 @@ import { View } from "react-native";
|
|
|
4
4
|
import { Icon, Marker } from "./components/index.js";
|
|
5
5
|
import { merge } from "@kivid/tailwind-preset";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
|
+
import { SizeEnum } from "../../enums/index.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
function Title(props) {
|
|
9
10
|
const {
|
|
10
11
|
children,
|
|
11
12
|
className,
|
|
12
|
-
variant =
|
|
13
|
+
variant = SizeEnum.MEDIUM,
|
|
13
14
|
head
|
|
14
15
|
} = props;
|
|
15
16
|
const variantClass = cva("", {
|
|
16
17
|
variants: {
|
|
17
18
|
variant: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
[SizeEnum.XXLARGE]: "pb-600",
|
|
20
|
+
[SizeEnum.XLARGE]: "pb-500",
|
|
21
|
+
[SizeEnum.LARGE]: "pb-600",
|
|
22
|
+
[SizeEnum.MEDIUM]: "pb-600",
|
|
23
|
+
[SizeEnum.SMALL]: "pb-400",
|
|
24
|
+
[SizeEnum.XSMALL]: "pb-400"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
})({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","Icon","Marker","merge","cva","jsx","_jsx","jsxs","_jsxs","Title","props","children","className","variant","head","variantClass","variants","
|
|
1
|
+
{"version":3,"names":["View","Icon","Marker","merge","cva","SizeEnum","jsx","_jsx","jsxs","_jsxs","Title","props","children","className","variant","MEDIUM","head","variantClass","variants","XXLARGE","XLARGE","LARGE","SMALL","XSMALL","mergedClassName"],"sourceRoot":"../../../../src","sources":["components/Title/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,MAAM,QAAQ,uBAAc;AAE3C,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,SAASC,QAAQ,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEvC,SAASC,KAAKA,CAACC,KAAiB,EAAE;EAChC,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,OAAO,GAAGT,QAAQ,CAACU,MAAM;IAAEC;EAAK,CAAC,GAAGL,KAAK;EAEtE,MAAMM,YAAY,GAAGb,GAAG,CAAC,EAAE,EAAE;IAC3Bc,QAAQ,EAAE;MACRJ,OAAO,EAAE;QACP,CAACT,QAAQ,CAACc,OAAO,GAAG,QAAQ;QAC5B,CAACd,QAAQ,CAACe,MAAM,GAAG,QAAQ;QAC3B,CAACf,QAAQ,CAACgB,KAAK,GAAG,QAAQ;QAC1B,CAAChB,QAAQ,CAACU,MAAM,GAAG,QAAQ;QAC3B,CAACV,QAAQ,CAACiB,KAAK,GAAG,QAAQ;QAC1B,CAACjB,QAAQ,CAACkB,MAAM,GAAG;MACrB;IACF;EACF,CAAC,CAAC,CAAC;IAAET;EAAQ,CAAC,CAAC;EAEf,MAAMU,eAAe,GAAGrB,KAAK,CAAC,6BAA6B,EAAEU,SAAS,CAAC;EAEvE,oBACEJ,KAAA,CAACT,IAAI;IAACa,SAAS,EAAEW,eAAgB;IAAAZ,QAAA,gBAC/BL,IAAA,CAACP,IAAI;MAACa,SAAS,EAAE,GAAGI,YAAY,EAAG;MAAAL,QAAA,EAAEI;IAAI,CAAO,CAAC,EAChDJ,QAAQ;EAAA,CACL,CAAC;AAEX;AAEAF,KAAK,CAACT,IAAI,GAAGA,IAAI;AACjBS,KAAK,CAACR,MAAM,GAAGA,MAAM;AAErB,SAASQ,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { ToastPositionEnum, ToastVariantEnum } from "../enums/index.js";
|
|
5
|
+
const toastVariants = cva("justify-between min-w-[200px] max-w min-h-12 mx-600 px-500 py-400 gap-400 items-center flex flex-row rounded-700", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
[ToastVariantEnum.SUCCESS]: "bg-pear-500",
|
|
9
|
+
[ToastVariantEnum.ERROR]: "bg-blackberry-500",
|
|
10
|
+
[ToastVariantEnum.WARNING]: "bg-tangerine-500"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: ToastVariantEnum.SUCCESS
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const containerVariants = cva("absolute z-[800px] w-full min-h-12 flex", {
|
|
18
|
+
variants: {
|
|
19
|
+
position: {
|
|
20
|
+
[ToastPositionEnum.TOP]: "top-1000",
|
|
21
|
+
[ToastPositionEnum.BOTTOM]: "bottom-1000"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
position: ToastPositionEnum.TOP
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export { toastVariants, containerVariants };
|
|
29
|
+
//# sourceMappingURL=class-variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cva","ToastPositionEnum","ToastVariantEnum","toastVariants","variants","variant","SUCCESS","ERROR","WARNING","defaultVariants","containerVariants","position","TOP","BOTTOM"],"sourceRoot":"../../../../../src","sources":["components/Toast/assets/class-variants.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAC9C,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,mBAAU;AAE9D,MAAMC,aAAa,GAAGH,GAAG,CACvB,kHAAkH,EAClH;EACEI,QAAQ,EAAE;IACRC,OAAO,EAAE;MACP,CAACH,gBAAgB,CAACI,OAAO,GAAG,aAAa;MACzC,CAACJ,gBAAgB,CAACK,KAAK,GAAG,mBAAmB;MAC7C,CAACL,gBAAgB,CAACM,OAAO,GAAG;IAC9B;EACF,CAAC;EACDC,eAAe,EAAE;IACfJ,OAAO,EAAEH,gBAAgB,CAACI;EAC5B;AACF,CACF,CAAC;AAED,MAAMI,iBAAiB,GAAGV,GAAG,CAAC,yCAAyC,EAAE;EACvEI,QAAQ,EAAE;IACRO,QAAQ,EAAE;MACR,CAACV,iBAAiB,CAACW,GAAG,GAAG,UAAU;MACnC,CAACX,iBAAiB,CAACY,MAAM,GAAG;IAC9B;EACF,CAAC;EACDJ,eAAe,EAAE;IACfE,QAAQ,EAAEV,iBAAiB,CAACW;EAC9B;AACF,CAAC,CAAC;AAEF,SAAST,aAAa,EAAEO,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Toast/enums/index.ts"],"mappings":";;AAAA,cAAc,cAAW;AACzB,cAAc,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ToastPositionEnum"],"sourceRoot":"../../../../../src","sources":["components/Toast/enums/position.ts"],"mappings":";;AAAA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let ToastVariantEnum = /*#__PURE__*/function (ToastVariantEnum) {
|
|
4
|
+
ToastVariantEnum["SUCCESS"] = "success";
|
|
5
|
+
ToastVariantEnum["ERROR"] = "error";
|
|
6
|
+
ToastVariantEnum["WARNING"] = "warning";
|
|
7
|
+
return ToastVariantEnum;
|
|
8
|
+
}({});
|
|
9
|
+
//# sourceMappingURL=variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ToastVariantEnum"],"sourceRoot":"../../../../../src","sources":["components/Toast/enums/variant.ts"],"mappings":";;AAAA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
import { View, Animated, Pressable } from "react-native";
|
|
5
|
+
import { ToastPositionEnum, ToastVariantEnum } from "./enums/index.js";
|
|
6
|
+
import { containerVariants, toastVariants } from "./assets/class-variants.js";
|
|
7
|
+
import { Close } from "@kivid/icons/native";
|
|
8
|
+
import Typography from "../Typography/index.js";
|
|
9
|
+
import { merge } from "@kivid/tailwind-preset";
|
|
10
|
+
import { Seal } from "../Seal/index.js";
|
|
11
|
+
import { SealVariantEnum } from "../Seal/enums/index.js";
|
|
12
|
+
import { elevationDown100 } from "../../styles/mixins/shadows/index.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export function Toast(props) {
|
|
15
|
+
const {
|
|
16
|
+
description,
|
|
17
|
+
isToastOpen,
|
|
18
|
+
onCloseToast,
|
|
19
|
+
className,
|
|
20
|
+
descriptionClassName,
|
|
21
|
+
durationInMilliSeconds = 3000,
|
|
22
|
+
position = ToastPositionEnum.TOP,
|
|
23
|
+
variant = ToastVariantEnum.SUCCESS
|
|
24
|
+
} = props;
|
|
25
|
+
const animatedValue = useRef(new Animated.Value(0)).current;
|
|
26
|
+
const timerRef = useRef(null);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (!isToastOpen) return;
|
|
29
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
30
|
+
Animated.timing(animatedValue, {
|
|
31
|
+
toValue: 1,
|
|
32
|
+
duration: 200,
|
|
33
|
+
useNativeDriver: true
|
|
34
|
+
}).start();
|
|
35
|
+
timerRef.current = setTimeout(() => {
|
|
36
|
+
Animated.timing(animatedValue, {
|
|
37
|
+
toValue: 0,
|
|
38
|
+
duration: 200,
|
|
39
|
+
useNativeDriver: true
|
|
40
|
+
}).start(() => {
|
|
41
|
+
onCloseToast(false);
|
|
42
|
+
});
|
|
43
|
+
}, durationInMilliSeconds);
|
|
44
|
+
return () => {
|
|
45
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
46
|
+
};
|
|
47
|
+
}, [isToastOpen]);
|
|
48
|
+
if (!isToastOpen) return null;
|
|
49
|
+
function handleClose() {
|
|
50
|
+
onCloseToast(false);
|
|
51
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
52
|
+
}
|
|
53
|
+
const toastStyle = toastVariants({
|
|
54
|
+
variant
|
|
55
|
+
});
|
|
56
|
+
const containerStyle = containerVariants({
|
|
57
|
+
position
|
|
58
|
+
});
|
|
59
|
+
const iconMap = {
|
|
60
|
+
[ToastVariantEnum.SUCCESS]: () => /*#__PURE__*/_jsx(Seal, {
|
|
61
|
+
variant: SealVariantEnum.SUCCESS,
|
|
62
|
+
inverted: true
|
|
63
|
+
}),
|
|
64
|
+
[ToastVariantEnum.ERROR]: () => /*#__PURE__*/_jsx(Seal, {
|
|
65
|
+
variant: SealVariantEnum.ERROR,
|
|
66
|
+
inverted: true
|
|
67
|
+
}),
|
|
68
|
+
[ToastVariantEnum.WARNING]: () => /*#__PURE__*/_jsx(Seal, {
|
|
69
|
+
variant: SealVariantEnum.ALERT,
|
|
70
|
+
inverted: true
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
const Icon = iconMap[variant];
|
|
74
|
+
return /*#__PURE__*/_jsx(Animated.View, {
|
|
75
|
+
className: containerStyle,
|
|
76
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
77
|
+
className: merge(toastStyle, className),
|
|
78
|
+
style: {
|
|
79
|
+
boxShadow: elevationDown100
|
|
80
|
+
},
|
|
81
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
82
|
+
className: "flex flex-row items-center gap-500",
|
|
83
|
+
children: [/*#__PURE__*/_jsx(Icon, {}), /*#__PURE__*/_jsx(View, {
|
|
84
|
+
className: "flex items-center gap-8",
|
|
85
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
86
|
+
className: merge("title_small font-bold text-chia-100", descriptionClassName),
|
|
87
|
+
children: description
|
|
88
|
+
})
|
|
89
|
+
})]
|
|
90
|
+
}), /*#__PURE__*/_jsx(Pressable, {
|
|
91
|
+
className: "cursor-pointer",
|
|
92
|
+
onPress: handleClose,
|
|
93
|
+
children: /*#__PURE__*/_jsx(Close, {
|
|
94
|
+
color: "#FAFCFC",
|
|
95
|
+
size: 30
|
|
96
|
+
})
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
;
|
|
102
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","View","Animated","Pressable","ToastPositionEnum","ToastVariantEnum","containerVariants","toastVariants","Close","Typography","merge","Seal","SealVariantEnum","elevationDown100","jsx","_jsx","jsxs","_jsxs","Toast","props","description","isToastOpen","onCloseToast","className","descriptionClassName","durationInMilliSeconds","position","TOP","variant","SUCCESS","animatedValue","Value","current","timerRef","clearTimeout","timing","toValue","duration","useNativeDriver","start","setTimeout","handleClose","toastStyle","containerStyle","iconMap","inverted","ERROR","WARNING","ALERT","Icon","children","style","boxShadow","on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,CAAC;EAED,MAAMI,IAAI,GAAGL,OAAO,CAAChB,OAAO,CAAC;EAE7B,oBACEb,IAAA,CAACb,QAAQ,CAACD,IAAI;IACZsB,SAAS,EAAEoB,cAAe;IAAAO,QAAA,eAE1BjC,KAAA,CAAChB,IAAI;MACHsB,SAAS,EAAEb,KAAK,CAACgC,UAAU,EAAEnB,SAAS,CAAE;MACxC4B,KAAK,EAAE;QACLC,SAAS,EAAEvC;MACb,CAAE;MAAAqC,QAAA,gBAEFjC,KAAA,CAAChB,IAAI;QAACsB,SAAS,EAAC,oCAAoC;QAAA2B,QAAA,gBAClDnC,IAAA,CAACkC,IAAI,IAAE,CAAC,eAERlC,IAAA,CAACd,IAAI;UAACsB,SAAS,EAAC,yBAAyB;UAAA2B,QAAA,eACvCnC,IAAA,CAACN,UAAU;YACTc,SAAS,EAAEb,KAAK,CAAC,qCAAqC,EAAEc,oBAAoB,CAAE;YAAA0B,QAAA,EAE7E9B;UAAW,CACF;QAAC,CACT,CAAC;MAAA,CACH,CAAC,eAEPL,IAAA,CAACZ,SAAS;QAACoB,SAAS,EAAC,gBAAgB;QAAC8B,OAAO,EAAEZ,WAAY;QAAAS,QAAA,eACzDnC,IAAA,CAACP,KAAK;UAAC8C,KAAK,EAAC,SAAS;UAACC,IAAI,EAAE;QAAG,CAAE;MAAC,CAC1B,CAAC;IAAA,CACR;EAAC,CACM,CAAC;AAEpB;AAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Toast/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { TooltipVariantEnum } from "../enum/index.js";
|
|
5
|
+
export const contentVariants = cva("bg-chia-200 rounded-500 p-400 px-3 py-2 border z-50", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
[TooltipVariantEnum.ERROR]: "text-red-600 border-blackberry-300",
|
|
9
|
+
[TooltipVariantEnum.TRIGGER]: "border-chia-400"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export const pointerVariants = cva("absolute -top-[9px] mx-4 w-0 h-0 border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent", {
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
[TooltipVariantEnum.ERROR]: "border-b-blackberry-300",
|
|
17
|
+
[TooltipVariantEnum.TRIGGER]: "border-b-chia-400"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=class-variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cva","TooltipVariantEnum","contentVariants","variants","variant","ERROR","TRIGGER","pointerVariants"],"sourceRoot":"../../../../../src","sources":["components/Tooltip/assets/class-variant.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAC9C,SAASC,kBAAkB,QAAQ,kBAAS;AAE5C,OAAO,MAAMC,eAAe,GAAGF,GAAG,CAChC,qDAAqD,EACrD;EACEG,QAAQ,EAAE;IACRC,OAAO,EAAE;MACP,CAACH,kBAAkB,CAACI,KAAK,GAAG,oCAAoC;MAChE,CAACJ,kBAAkB,CAACK,OAAO,GAAG;IAChC;EACF;AACF,CACF,CAAC;AAED,OAAO,MAAMC,eAAe,GAAGP,GAAG,CAChC,6GAA6G,EAC7G;EACEG,QAAQ,EAAE;IACRC,OAAO,EAAE;MACP,CAACH,kBAAkB,CAACI,KAAK,GAAG,yBAAyB;MACrD,CAACJ,kBAAkB,CAACK,OAAO,GAAG;IAChC;EACF;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import { merge } from "@kivid/tailwind-preset";
|
|
5
|
+
import { TooltipPointerOffsetEnum, TooltipVariantEnum } from "../../enum/index.js";
|
|
6
|
+
import { contentVariants, pointerVariants } from "../../assets/class-variant.js";
|
|
7
|
+
import { SealVariantEnum } from "../../../Seal/enums/index.js";
|
|
8
|
+
import { Seal } from "../../../Seal/index.js";
|
|
9
|
+
import Typography from "../../../Typography/index.js";
|
|
10
|
+
import { SizeEnum } from "../../../../enums/index.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
export function Content(props) {
|
|
13
|
+
const {
|
|
14
|
+
message,
|
|
15
|
+
variant = TooltipVariantEnum.TRIGGER,
|
|
16
|
+
className,
|
|
17
|
+
isVisible,
|
|
18
|
+
translateX,
|
|
19
|
+
pointerOffset,
|
|
20
|
+
pointerClassName,
|
|
21
|
+
containerClassName,
|
|
22
|
+
onLayout
|
|
23
|
+
} = props;
|
|
24
|
+
const pointerStyle = pointerVariants({
|
|
25
|
+
variant
|
|
26
|
+
});
|
|
27
|
+
const contentStyle = contentVariants({
|
|
28
|
+
variant
|
|
29
|
+
});
|
|
30
|
+
const mergedContainerClassName = merge("absolute top-full mt-[9px] z-50 self-center", containerClassName);
|
|
31
|
+
function renderContent() {
|
|
32
|
+
if (variant === TooltipVariantEnum.ERROR) {
|
|
33
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
34
|
+
className: "flex flex-row items-center gap-2",
|
|
35
|
+
children: [/*#__PURE__*/_jsx(Seal, {
|
|
36
|
+
variant: SealVariantEnum.ERROR,
|
|
37
|
+
size: SizeEnum.SMALL
|
|
38
|
+
}), typeof message === "string" ? /*#__PURE__*/_jsx(Typography, {
|
|
39
|
+
className: "text-blackberry-500",
|
|
40
|
+
variant: "body_small",
|
|
41
|
+
weight: "600",
|
|
42
|
+
children: message
|
|
43
|
+
}) : message]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return typeof message === "string" ? /*#__PURE__*/_jsx(Typography, {
|
|
47
|
+
className: "text-chia-900",
|
|
48
|
+
variant: "body_small",
|
|
49
|
+
weight: "600",
|
|
50
|
+
children: message
|
|
51
|
+
}) : message;
|
|
52
|
+
}
|
|
53
|
+
if (!isVisible) return null;
|
|
54
|
+
const mappedPointerPosition = {
|
|
55
|
+
[TooltipPointerOffsetEnum.LEFT]: "flex-start",
|
|
56
|
+
[TooltipPointerOffsetEnum.RIGHT]: "flex-end",
|
|
57
|
+
[TooltipPointerOffsetEnum.CENTER]: "center"
|
|
58
|
+
};
|
|
59
|
+
return /*#__PURE__*/_jsx(View, {
|
|
60
|
+
className: mergedContainerClassName,
|
|
61
|
+
style: {
|
|
62
|
+
transform: [{
|
|
63
|
+
translateX: translateX ?? 0
|
|
64
|
+
}]
|
|
65
|
+
},
|
|
66
|
+
onLayout: onLayout,
|
|
67
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
68
|
+
className: merge(contentStyle, className),
|
|
69
|
+
children: [renderContent(), /*#__PURE__*/_jsx(View, {
|
|
70
|
+
className: merge(pointerStyle, pointerClassName),
|
|
71
|
+
style: {
|
|
72
|
+
alignSelf: mappedPointerPosition[pointerOffset ?? TooltipPointerOffsetEnum.CENTER]
|
|
73
|
+
}
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","merge","TooltipPointerOffsetEnum","TooltipVariantEnum","contentVariants","pointerVariants","SealVariantEnum","Seal","Typography","SizeEnum","jsx","_jsx","jsxs","_jsxs","Content","props","message","variant","TRIGGER","className","isVisible","translateX","pointerOffset","pointerClassName","containerClassName","onLayout","pointerStyle","contentStyle","mergedContainerClassName","renderContent","ERROR","children","size","SMALL","weight","mappedPointerPosition","LEFT","RIGHT","CENTER","style","transform","alignSelf"],"sourceRoot":"../../../../../../src","sources":["components/Tooltip/components/Content/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,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AAA,CACG,CAAC;IAEX;IAEA,OAAO,OAAOA,OAAO,KAAK,QAAQ,gBAChCL,IAAA,CAACH,UAAU;MAACW,SAAS,EAAC,eAAe;MAACF,OAAO,EAAC,YAAY;MAACiB,MAAM,EAAC,KAAK;MAAAH,QAAA,EACpEf;IAAO,CACE,CAAC,GAEbA,OACD;EACH;EAEA,IAAI,CAACI,SAAS,EAAE,OAAO,IAAI;EAE3B,MAAMe,qBAGL,GAAG;IACF,CAACjC,wBAAwB,CAACkC,IAAI,GAAG,YAAY;IAC7C,CAAClC,wBAAwB,CAACmC,KAAK,GAAG,UAAU;IAC5C,CAACnC,wBAAwB,CAACoC,MAAM,GAAG;EACrC,CAAC;EAED,oBACE3B,IAAA,CAACX,IAAI;IACHmB,SAAS,EAAES,wBAAyB;IACpCW,KAAK,EAAE;MACLC,SAAS,EAAE,CAAC;QAAEnB,UAAU,EAAEA,UAAU,IAAI;MAAE,CAAC;IAC7C,CAAE;IACFI,QAAQ,EAAEA,QAAS;IAAAM,QAAA,eAEnBlB,KAAA,CAACb,IAAI;MAACmB,SAAS,EAAElB,KAAK,CAAC0B,YAAY,EAAER,SAAS,CAAE;MAAAY,QAAA,GAC7CF,aAAa,CAAC,CAAC,eAChBlB,IAAA,CAACX,IAAI;QACHmB,SAAS,EAAElB,KAAK,CAACyB,YAAY,EAAEH,gBAAgB,CAAE;QACjDgB,KAAK,EAAE;UACLE,SAAS,EACPN,qBAAqB,CACnBb,aAAa,IAAIpB,wBAAwB,CAACoC,MAAM;QAEtD;MAAE,CACH,CAAC;IAAA,CACE;EAAC,CACH,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/Tooltip/components/Content/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Tooltip/components/index.ts"],"mappings":";;AAAA,cAAc,oBAAW","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let TooltipVariantEnum = /*#__PURE__*/function (TooltipVariantEnum) {
|
|
4
|
+
TooltipVariantEnum["ERROR"] = "error";
|
|
5
|
+
TooltipVariantEnum["TRIGGER"] = "trigger";
|
|
6
|
+
return TooltipVariantEnum;
|
|
7
|
+
}({});
|
|
8
|
+
export let TooltipPointerOffsetEnum = /*#__PURE__*/function (TooltipPointerOffsetEnum) {
|
|
9
|
+
TooltipPointerOffsetEnum["LEFT"] = "left";
|
|
10
|
+
TooltipPointerOffsetEnum["CENTER"] = "center";
|
|
11
|
+
TooltipPointerOffsetEnum["RIGHT"] = "right";
|
|
12
|
+
return TooltipPointerOffsetEnum;
|
|
13
|
+
}({});
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TooltipVariantEnum","TooltipPointerOffsetEnum"],"sourceRoot":"../../../../../src","sources":["components/Tooltip/enum/index.ts"],"mappings":";;AAAA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAK9B,WAAYC,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Tooltip/hooks/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useCallback, useMemo } from "react";
|
|
4
|
+
import { Dimensions } from "react-native";
|
|
5
|
+
import { TooltipPointerOffsetEnum } from "../enum/index.js";
|
|
6
|
+
export function useTooltipPosition() {
|
|
7
|
+
const [triggerLayout, setTriggerLayout] = useState(null);
|
|
8
|
+
const [tooltipLayout, setTooltipLayout] = useState(null);
|
|
9
|
+
const screenWidth = Dimensions.get("window").width;
|
|
10
|
+
const onTriggerLayout = useCallback(event => {
|
|
11
|
+
setTriggerLayout(event.nativeEvent.layout);
|
|
12
|
+
}, []);
|
|
13
|
+
const onTooltipLayout = useCallback(event => {
|
|
14
|
+
setTooltipLayout(event.nativeEvent.layout);
|
|
15
|
+
}, []);
|
|
16
|
+
const pointerOffset = useMemo(() => {
|
|
17
|
+
if (!triggerLayout || !tooltipLayout) return TooltipPointerOffsetEnum.CENTER;
|
|
18
|
+
const elementPositionX = triggerLayout.x;
|
|
19
|
+
const tooltipPositionXAxis = elementPositionX + tooltipLayout.width;
|
|
20
|
+
if (elementPositionX === 0) {
|
|
21
|
+
return TooltipPointerOffsetEnum.LEFT;
|
|
22
|
+
}
|
|
23
|
+
if (tooltipPositionXAxis > screenWidth) {
|
|
24
|
+
return TooltipPointerOffsetEnum.RIGHT;
|
|
25
|
+
}
|
|
26
|
+
return TooltipPointerOffsetEnum.CENTER;
|
|
27
|
+
}, [triggerLayout, tooltipLayout]);
|
|
28
|
+
const calculateAdjustedPosition = useCallback(() => {
|
|
29
|
+
if (!triggerLayout || !tooltipLayout) {
|
|
30
|
+
return {
|
|
31
|
+
translateX: 0
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const elementPositionX = triggerLayout.x;
|
|
35
|
+
const tooltipPositionXAxis = elementPositionX + tooltipLayout.width;
|
|
36
|
+
if (elementPositionX === 0) {
|
|
37
|
+
return {
|
|
38
|
+
translateX: -tooltipLayout.x
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (tooltipPositionXAxis > screenWidth) {
|
|
42
|
+
return {
|
|
43
|
+
translateX: tooltipLayout.x
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
translateX: 0
|
|
48
|
+
};
|
|
49
|
+
}, [triggerLayout, tooltipLayout, screenWidth]);
|
|
50
|
+
return {
|
|
51
|
+
positionData: {
|
|
52
|
+
triggerLayout,
|
|
53
|
+
tooltipLayout,
|
|
54
|
+
screenWidth,
|
|
55
|
+
adjustedPosition: calculateAdjustedPosition(),
|
|
56
|
+
pointerOffset
|
|
57
|
+
},
|
|
58
|
+
onTriggerLayout,
|
|
59
|
+
onTooltipLayout
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=tooltip-position.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","useCallback","useMemo","Dimensions","TooltipPointerOffsetEnum","useTooltipPosition","triggerLayout","setTriggerLayout","tooltipLayout","setTooltipLayout","screenWidth","get","width","onTriggerLayout","event","nativeEvent","layout","onTooltipLayout","pointerOffset","CENTER","elementPositionX","x","tooltipPositionXAxis","LEFT","RIGHT","calculateAdjustedPosition","translateX","positionData","adjustedPosition"],"sourceRoot":"../../../../../src","sources":["components/Tooltip/hooks/tooltip-position.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACtD,SAASC,UAAU,QAA4C,cAAc;AAC7E,SAASC,wBAAwB,QAAQ,kBAAS;AAYlD,OAAO,SAASC,kBAAkBA,CAAA,EAIhC;EACA,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGP,QAAQ,CAChD,IACF,CAAC;EACD,MAAM,CAACQ,aAAa,EAAEC,gBAAgB,CAAC,GAAGT,QAAQ,CAChD,IACF,CAAC;EAED,MAAMU,WAAW,GAAGP,UAAU,CAACQ,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;EAElD,MAAMC,eAAe,GAAGZ,WAAW,CAAEa,KAAwB,IAAK;IAChEP,gBAAgB,CAACO,KAAK,CAACC,WAAW,CAACC,MAAM,CAAC;EAC5C,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,eAAe,G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AE;MACZrB,aAAa;MACbE,aAAa;MACbE,WAAW;MACXkB,gBAAgB,EAAEH,yBAAyB,CAAC,CAAC;MAC7CP;IACF,CAAC;IACDL,eAAe;IACfI;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import { Content } from "./components/index.js";
|
|
5
|
+
import { useTooltipPosition } from "./hooks/index.js";
|
|
6
|
+
import { TooltipVariantEnum } from "./enum/index.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export function Tooltip(props) {
|
|
9
|
+
const {
|
|
10
|
+
children,
|
|
11
|
+
message,
|
|
12
|
+
variant = TooltipVariantEnum.TRIGGER,
|
|
13
|
+
isVisible,
|
|
14
|
+
className,
|
|
15
|
+
containerClassName,
|
|
16
|
+
pointerClassName
|
|
17
|
+
} = props;
|
|
18
|
+
const {
|
|
19
|
+
positionData,
|
|
20
|
+
onTriggerLayout,
|
|
21
|
+
onTooltipLayout
|
|
22
|
+
} = useTooltipPosition();
|
|
23
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
24
|
+
className: "relative",
|
|
25
|
+
onLayout: onTriggerLayout,
|
|
26
|
+
children: [children, /*#__PURE__*/_jsx(Content, {
|
|
27
|
+
message: message,
|
|
28
|
+
variant: variant,
|
|
29
|
+
isVisible: isVisible,
|
|
30
|
+
onLayout: onTooltipLayout,
|
|
31
|
+
translateX: positionData.adjustedPosition.translateX,
|
|
32
|
+
pointerOffset: positionData.pointerOffset,
|
|
33
|
+
className: className,
|
|
34
|
+
containerClassName: containerClassName,
|
|
35
|
+
pointerClassName: pointerClassName
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Content","useTooltipPosition","TooltipVariantEnum","jsx","_jsx","jsxs","_jsxs","Tooltip","props","children","message","variant","TRIGGER","isVisible","className","containerClassName","pointerClassName","positionData","onTriggerLayout","onTooltipLayout","onLayout","translateX","adjustedPosition","pointerOffset"],"sourceRoot":"../../../../src","sources":["components/Tooltip/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,OAAO,QAAQ,uBAAc;AACtC,SAASC,kBAAkB,QAAQ,kBAAS;AAG5C,SAASC,kBAAkB,QAAQ,iBAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5C,OAAO,SAASC,OAAOA,CAACC,KAAmB,EAAE;EAC3C,MAAM;IACJC,QAAQ;IACRC,OAAO;IACPC,OAAO,GAAGT,kBAAkB,CAACU,OAAO;IACpCC,SAAS;IACTC,SAAS;IACTC,kBAAkB;IAClBC;EACF,CAAC,GAAGR,KAAK;EACT,MAAM;IAAES,YAAY;IAAEC,eAAe;IAAEC;EAAgB,CAAC,GACtDlB,kBAAkB,CAAC,CAAC;EAEtB,oBACEK,KAAA,CAACP,IAAI;IAACe,SAAS,EAAC,UAAU;IAACM,QAAQ,EAAEF,eAAgB;IAAAT,QAAA,GAClDA,QAAQ,eAETL,IAAA,CAACJ,OAAO;MACNU,OAAO,EAAEA,OAAQ;MACjBC,OAAO,EAAEA,OAAQ;MACjBE,SAAS,EAAEA,SAAU;MACrBO,QAAQ,EAAED,eAAgB;MAC1BE,UAAU,EAAEJ,YAAY,CAACK,gBAAgB,CAACD,UAAW;MACrDE,aAAa,EAAEN,YAAY,CAACM,aAAc;MAC1CT,SAAS,EAAEA,SAAU;MACrBC,kBAAkB,EAAEA,kBAAmB;MACvCC,gBAAgB,EAAEA;IAAiB,CACpC,CAAC;EAAA,CACE,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Tooltip/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -26,7 +26,7 @@ const getWeightVariants = () => {
|
|
|
26
26
|
"900": "font-nunito-black"
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export const typographyVariants = cva("font-nunito-regular", {
|
|
29
|
+
export const typographyVariants = cva("font-nunito-regular text-chia-900", {
|
|
30
30
|
variants: {
|
|
31
31
|
variant: {
|
|
32
32
|
label_small: "text-[12px] leading-[16px]",
|