@tecsinapse/react-core 1.21.1-beta.1 → 1.21.1-beta.3
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/dist/components/atoms/Avatar/Avatar.cjs +38 -0
- package/dist/components/atoms/Avatar/Avatar.cjs.map +1 -0
- package/dist/components/atoms/Avatar/Avatar.mjs +32 -0
- package/dist/components/atoms/Avatar/Avatar.mjs.map +1 -0
- package/dist/components/atoms/Avatar/helpers.cjs +14 -0
- package/dist/components/atoms/Avatar/helpers.cjs.map +1 -0
- package/dist/components/atoms/Avatar/helpers.mjs +10 -0
- package/dist/components/atoms/Avatar/helpers.mjs.map +1 -0
- package/dist/components/atoms/Avatar/styled.cjs +46 -0
- package/dist/components/atoms/Avatar/styled.cjs.map +1 -0
- package/dist/components/atoms/Avatar/styled.mjs +35 -0
- package/dist/components/atoms/Avatar/styled.mjs.map +1 -0
- package/dist/components/atoms/Badge/Badge.cjs +25 -0
- package/dist/components/atoms/Badge/Badge.cjs.map +1 -0
- package/dist/components/atoms/Badge/Badge.mjs +19 -0
- package/dist/components/atoms/Badge/Badge.mjs.map +1 -0
- package/dist/components/atoms/Badge/styled.cjs +48 -0
- package/dist/components/atoms/Badge/styled.cjs.map +1 -0
- package/dist/components/atoms/Badge/styled.mjs +39 -0
- package/dist/components/atoms/Badge/styled.mjs.map +1 -0
- package/dist/components/atoms/BoxContent/BoxContent.cjs +44 -0
- package/dist/components/atoms/BoxContent/BoxContent.cjs.map +1 -0
- package/dist/components/atoms/BoxContent/BoxContent.mjs +38 -0
- package/dist/components/atoms/BoxContent/BoxContent.mjs.map +1 -0
- package/dist/components/atoms/BoxContent/styled.cjs +63 -0
- package/dist/components/atoms/BoxContent/styled.cjs.map +1 -0
- package/dist/components/atoms/BoxContent/styled.mjs +54 -0
- package/dist/components/atoms/BoxContent/styled.mjs.map +1 -0
- package/dist/components/atoms/Button/Button.cjs +105 -0
- package/dist/components/atoms/Button/Button.cjs.map +1 -0
- package/dist/components/atoms/Button/Button.mjs +99 -0
- package/dist/components/atoms/Button/Button.mjs.map +1 -0
- package/dist/components/atoms/Button/States/BaseState.cjs +35 -0
- package/dist/components/atoms/Button/States/BaseState.cjs.map +1 -0
- package/dist/components/atoms/Button/States/BaseState.mjs +29 -0
- package/dist/components/atoms/Button/States/BaseState.mjs.map +1 -0
- package/dist/components/atoms/Button/States/Error.cjs +36 -0
- package/dist/components/atoms/Button/States/Error.cjs.map +1 -0
- package/dist/components/atoms/Button/States/Error.mjs +30 -0
- package/dist/components/atoms/Button/States/Error.mjs.map +1 -0
- package/dist/components/atoms/Button/States/Loading.cjs +32 -0
- package/dist/components/atoms/Button/States/Loading.cjs.map +1 -0
- package/dist/components/atoms/Button/States/Loading.mjs +26 -0
- package/dist/components/atoms/Button/States/Loading.mjs.map +1 -0
- package/dist/components/atoms/Button/States/Success.cjs +36 -0
- package/dist/components/atoms/Button/States/Success.cjs.map +1 -0
- package/dist/components/atoms/Button/States/Success.mjs +30 -0
- package/dist/components/atoms/Button/States/Success.mjs.map +1 -0
- package/dist/components/atoms/Button/States/styled.cjs +25 -0
- package/dist/components/atoms/Button/States/styled.cjs.map +1 -0
- package/dist/components/atoms/Button/States/styled.mjs +16 -0
- package/dist/components/atoms/Button/States/styled.mjs.map +1 -0
- package/dist/components/atoms/Button/styled.cjs +58 -0
- package/dist/components/atoms/Button/styled.cjs.map +1 -0
- package/dist/components/atoms/Button/styled.mjs +50 -0
- package/dist/components/atoms/Button/styled.mjs.map +1 -0
- package/dist/components/atoms/Card/Card.cjs +64 -0
- package/dist/components/atoms/Card/Card.cjs.map +1 -0
- package/dist/components/atoms/Card/Card.mjs +58 -0
- package/dist/components/atoms/Card/Card.mjs.map +1 -0
- package/dist/components/atoms/Card/Footer/Footer.cjs +15 -0
- package/dist/components/atoms/Card/Footer/Footer.cjs.map +1 -0
- package/dist/components/atoms/Card/Footer/Footer.mjs +9 -0
- package/dist/components/atoms/Card/Footer/Footer.mjs.map +1 -0
- package/dist/components/atoms/Card/Header/Header.cjs +15 -0
- package/dist/components/atoms/Card/Header/Header.cjs.map +1 -0
- package/dist/components/atoms/Card/Header/Header.mjs +9 -0
- package/dist/components/atoms/Card/Header/Header.mjs.map +1 -0
- package/dist/components/atoms/Card/styled.cjs +21 -0
- package/dist/components/atoms/Card/styled.cjs.map +1 -0
- package/dist/components/atoms/Card/styled.mjs +13 -0
- package/dist/components/atoms/Card/styled.mjs.map +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.cjs +88 -0
- package/dist/components/atoms/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.mjs +82 -0
- package/dist/components/atoms/Checkbox/Checkbox.mjs.map +1 -0
- package/dist/components/atoms/Checkbox/styled.cjs +48 -0
- package/dist/components/atoms/Checkbox/styled.cjs.map +1 -0
- package/dist/components/atoms/Checkbox/styled.mjs +37 -0
- package/dist/components/atoms/Checkbox/styled.mjs.map +1 -0
- package/dist/components/atoms/Divider/Divider.cjs +44 -0
- package/dist/components/atoms/Divider/Divider.cjs.map +1 -0
- package/dist/components/atoms/Divider/Divider.mjs +38 -0
- package/dist/components/atoms/Divider/Divider.mjs.map +1 -0
- package/dist/components/atoms/Divider/styled.cjs +32 -0
- package/dist/components/atoms/Divider/styled.cjs.map +1 -0
- package/dist/components/atoms/Divider/styled.mjs +24 -0
- package/dist/components/atoms/Divider/styled.mjs.map +1 -0
- package/dist/components/atoms/GroupButton/GroupButton.cjs +105 -0
- package/dist/components/atoms/GroupButton/GroupButton.cjs.map +1 -0
- package/dist/components/atoms/GroupButton/GroupButton.mjs +99 -0
- package/dist/components/atoms/GroupButton/GroupButton.mjs.map +1 -0
- package/dist/components/atoms/GroupButton/GroupButtonOption.cjs +25 -0
- package/dist/components/atoms/GroupButton/GroupButtonOption.cjs.map +1 -0
- package/dist/components/atoms/GroupButton/GroupButtonOption.mjs +19 -0
- package/dist/components/atoms/GroupButton/GroupButtonOption.mjs.map +1 -0
- package/dist/components/atoms/GroupButton/styled.cjs +126 -0
- package/dist/components/atoms/GroupButton/styled.cjs.map +1 -0
- package/dist/components/atoms/GroupButton/styled.mjs +114 -0
- package/dist/components/atoms/GroupButton/styled.mjs.map +1 -0
- package/dist/components/atoms/Icon/Icon.cjs +74 -0
- package/dist/components/atoms/Icon/Icon.cjs.map +1 -0
- package/dist/components/atoms/Icon/Icon.mjs +68 -0
- package/dist/components/atoms/Icon/Icon.mjs.map +1 -0
- package/dist/components/atoms/Icon/helpers.cjs +127 -0
- package/dist/components/atoms/Icon/helpers.cjs.map +1 -0
- package/dist/components/atoms/Icon/helpers.mjs +100 -0
- package/dist/components/atoms/Icon/helpers.mjs.map +1 -0
- package/dist/components/atoms/Input/Hint.cjs +39 -0
- package/dist/components/atoms/Input/Hint.cjs.map +1 -0
- package/dist/components/atoms/Input/Hint.mjs +33 -0
- package/dist/components/atoms/Input/Hint.mjs.map +1 -0
- package/dist/components/atoms/Input/InputContainer/InputContainer.cjs +105 -0
- package/dist/components/atoms/Input/InputContainer/InputContainer.cjs.map +1 -0
- package/dist/components/atoms/Input/InputContainer/InputContainer.mjs +99 -0
- package/dist/components/atoms/Input/InputContainer/InputContainer.mjs.map +1 -0
- package/dist/components/atoms/Input/InputElement/InputElement.cjs +73 -0
- package/dist/components/atoms/Input/InputElement/InputElement.cjs.map +1 -0
- package/dist/components/atoms/Input/InputElement/InputElement.mjs +67 -0
- package/dist/components/atoms/Input/InputElement/InputElement.mjs.map +1 -0
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.cjs +113 -0
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.cjs.map +1 -0
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.mjs +107 -0
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.mjs.map +1 -0
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.cjs +77 -0
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.cjs.map +1 -0
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.mjs +55 -0
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.mjs.map +1 -0
- package/dist/components/atoms/Input/PressableInputContainer/styled.cjs +16 -0
- package/dist/components/atoms/Input/PressableInputContainer/styled.cjs.map +1 -0
- package/dist/components/atoms/Input/PressableInputContainer/styled.mjs +8 -0
- package/dist/components/atoms/Input/PressableInputContainer/styled.mjs.map +1 -0
- package/dist/components/atoms/Input/hooks/useInputFocus.cjs +29 -0
- package/dist/components/atoms/Input/hooks/useInputFocus.cjs.map +1 -0
- package/dist/components/atoms/Input/hooks/useInputFocus.mjs +25 -0
- package/dist/components/atoms/Input/hooks/useInputFocus.mjs.map +1 -0
- package/dist/components/atoms/Input/hooks/useNumberMask.cjs +100 -0
- package/dist/components/atoms/Input/hooks/useNumberMask.cjs.map +1 -0
- package/dist/components/atoms/Input/hooks/useNumberMask.mjs +91 -0
- package/dist/components/atoms/Input/hooks/useNumberMask.mjs.map +1 -0
- package/dist/components/atoms/Input/hooks/useStringMask.cjs +101 -0
- package/dist/components/atoms/Input/hooks/useStringMask.cjs.map +1 -0
- package/dist/components/atoms/Input/hooks/useStringMask.mjs +95 -0
- package/dist/components/atoms/Input/hooks/useStringMask.mjs.map +1 -0
- package/dist/components/atoms/Input/styled.cjs +111 -0
- package/dist/components/atoms/Input/styled.cjs.map +1 -0
- package/dist/components/atoms/Input/styled.mjs +95 -0
- package/dist/components/atoms/Input/styled.mjs.map +1 -0
- package/dist/components/atoms/Paper/Paper.cjs +55 -0
- package/dist/components/atoms/Paper/Paper.cjs.map +1 -0
- package/dist/components/atoms/Paper/Paper.mjs +49 -0
- package/dist/components/atoms/Paper/Paper.mjs.map +1 -0
- package/dist/components/atoms/Paper/styled.cjs +21 -0
- package/dist/components/atoms/Paper/styled.cjs.map +1 -0
- package/dist/components/atoms/Paper/styled.mjs +13 -0
- package/dist/components/atoms/Paper/styled.mjs.map +1 -0
- package/dist/components/atoms/PressableSurface/PressableSurface.cjs +109 -0
- package/dist/components/atoms/PressableSurface/PressableSurface.cjs.map +1 -0
- package/dist/components/atoms/PressableSurface/PressableSurface.mjs +103 -0
- package/dist/components/atoms/PressableSurface/PressableSurface.mjs.map +1 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.cjs +127 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.cjs.map +1 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.mjs +105 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.mjs.map +1 -0
- package/dist/components/atoms/ProgressBar/styled.cjs +42 -0
- package/dist/components/atoms/ProgressBar/styled.cjs.map +1 -0
- package/dist/components/atoms/ProgressBar/styled.mjs +32 -0
- package/dist/components/atoms/ProgressBar/styled.mjs.map +1 -0
- package/dist/components/atoms/RadioButton/RadioButton.cjs +83 -0
- package/dist/components/atoms/RadioButton/RadioButton.cjs.map +1 -0
- package/dist/components/atoms/RadioButton/RadioButton.mjs +77 -0
- package/dist/components/atoms/RadioButton/RadioButton.mjs.map +1 -0
- package/dist/components/atoms/RadioButton/styled.cjs +37 -0
- package/dist/components/atoms/RadioButton/styled.cjs.map +1 -0
- package/dist/components/atoms/RadioButton/styled.mjs +26 -0
- package/dist/components/atoms/RadioButton/styled.mjs.map +1 -0
- package/dist/components/atoms/Switch/Switch.cjs +119 -0
- package/dist/components/atoms/Switch/Switch.cjs.map +1 -0
- package/dist/components/atoms/Switch/Switch.mjs +113 -0
- package/dist/components/atoms/Switch/Switch.mjs.map +1 -0
- package/dist/components/atoms/Switch/animation.cjs +39 -0
- package/dist/components/atoms/Switch/animation.cjs.map +1 -0
- package/dist/components/atoms/Switch/animation.mjs +35 -0
- package/dist/components/atoms/Switch/animation.mjs.map +1 -0
- package/dist/components/atoms/Switch/styled.cjs +40 -0
- package/dist/components/atoms/Switch/styled.cjs.map +1 -0
- package/dist/components/atoms/Switch/styled.mjs +29 -0
- package/dist/components/atoms/Switch/styled.mjs.map +1 -0
- package/dist/components/atoms/Tag/Tag.cjs +92 -0
- package/dist/components/atoms/Tag/Tag.cjs.map +1 -0
- package/dist/components/atoms/Tag/Tag.mjs +86 -0
- package/dist/components/atoms/Tag/Tag.mjs.map +1 -0
- package/dist/components/atoms/Tag/styled.cjs +45 -0
- package/dist/components/atoms/Tag/styled.cjs.map +1 -0
- package/dist/components/atoms/Tag/styled.mjs +35 -0
- package/dist/components/atoms/Tag/styled.mjs.map +1 -0
- package/dist/components/atoms/Text/Text.cjs +82 -0
- package/dist/components/atoms/Text/Text.cjs.map +1 -0
- package/dist/components/atoms/Text/Text.mjs +76 -0
- package/dist/components/atoms/Text/Text.mjs.map +1 -0
- package/dist/components/atoms/Text/functions.cjs +10 -0
- package/dist/components/atoms/Text/functions.cjs.map +1 -0
- package/dist/components/atoms/Text/functions.mjs +5 -0
- package/dist/components/atoms/Text/functions.mjs.map +1 -0
- package/dist/components/atoms/Text/styled.cjs +31 -0
- package/dist/components/atoms/Text/styled.cjs.map +1 -0
- package/dist/components/atoms/Text/styled.mjs +22 -0
- package/dist/components/atoms/Text/styled.mjs.map +1 -0
- package/dist/components/atoms/shared/PaperAndCard.cjs +26 -0
- package/dist/components/atoms/shared/PaperAndCard.cjs.map +1 -0
- package/dist/components/atoms/shared/PaperAndCard.mjs +21 -0
- package/dist/components/atoms/shared/PaperAndCard.mjs.map +1 -0
- package/dist/components/molecules/Calendar/Calendar.cjs +172 -0
- package/dist/components/molecules/Calendar/Calendar.cjs.map +1 -0
- package/dist/components/molecules/Calendar/Calendar.mjs +150 -0
- package/dist/components/molecules/Calendar/Calendar.mjs.map +1 -0
- package/dist/components/molecules/Calendar/components/MonthWeek.cjs +116 -0
- package/dist/components/molecules/Calendar/components/MonthWeek.cjs.map +1 -0
- package/dist/components/molecules/Calendar/components/MonthWeek.mjs +110 -0
- package/dist/components/molecules/Calendar/components/MonthWeek.mjs.map +1 -0
- package/dist/components/molecules/Calendar/components/Weekdays.cjs +29 -0
- package/dist/components/molecules/Calendar/components/Weekdays.cjs.map +1 -0
- package/dist/components/molecules/Calendar/components/Weekdays.mjs +23 -0
- package/dist/components/molecules/Calendar/components/Weekdays.mjs.map +1 -0
- package/dist/components/molecules/Calendar/styled.cjs +97 -0
- package/dist/components/molecules/Calendar/styled.cjs.map +1 -0
- package/dist/components/molecules/Calendar/styled.mjs +83 -0
- package/dist/components/molecules/Calendar/styled.mjs.map +1 -0
- package/dist/components/molecules/DatePicker/DatePicker.cjs +177 -0
- package/dist/components/molecules/DatePicker/DatePicker.cjs.map +1 -0
- package/dist/components/molecules/DatePicker/DatePicker.mjs +156 -0
- package/dist/components/molecules/DatePicker/DatePicker.mjs.map +1 -0
- package/dist/components/molecules/DatePicker/styled.cjs +37 -0
- package/dist/components/molecules/DatePicker/styled.cjs.map +1 -0
- package/dist/components/molecules/DatePicker/styled.mjs +28 -0
- package/dist/components/molecules/DatePicker/styled.mjs.map +1 -0
- package/dist/components/molecules/DateTimePicker/DateTimePicker.cjs +197 -0
- package/dist/components/molecules/DateTimePicker/DateTimePicker.cjs.map +1 -0
- package/dist/components/molecules/DateTimePicker/DateTimePicker.mjs +175 -0
- package/dist/components/molecules/DateTimePicker/DateTimePicker.mjs.map +1 -0
- package/dist/components/molecules/DateTimePicker/styled.cjs +18 -0
- package/dist/components/molecules/DateTimePicker/styled.cjs.map +1 -0
- package/dist/components/molecules/DateTimePicker/styled.mjs +10 -0
- package/dist/components/molecules/DateTimePicker/styled.mjs.map +1 -0
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.cjs +237 -0
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.cjs.map +1 -0
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.mjs +215 -0
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.mjs.map +1 -0
- package/dist/components/molecules/DateTimeSelector/Selector.cjs +148 -0
- package/dist/components/molecules/DateTimeSelector/Selector.cjs.map +1 -0
- package/dist/components/molecules/DateTimeSelector/Selector.mjs +124 -0
- package/dist/components/molecules/DateTimeSelector/Selector.mjs.map +1 -0
- package/dist/components/molecules/DateTimeSelector/styled.cjs +71 -0
- package/dist/components/molecules/DateTimeSelector/styled.cjs.map +1 -0
- package/dist/components/molecules/DateTimeSelector/styled.mjs +56 -0
- package/dist/components/molecules/DateTimeSelector/styled.mjs.map +1 -0
- package/dist/components/molecules/Grid/functions.cjs +31 -0
- package/dist/components/molecules/Grid/functions.cjs.map +1 -0
- package/dist/components/molecules/Grid/functions.mjs +26 -0
- package/dist/components/molecules/Grid/functions.mjs.map +1 -0
- package/dist/components/molecules/HintInputContainer/HintInputContainer.cjs +103 -0
- package/dist/components/molecules/HintInputContainer/HintInputContainer.cjs.map +1 -0
- package/dist/components/molecules/HintInputContainer/HintInputContainer.mjs +81 -0
- package/dist/components/molecules/HintInputContainer/HintInputContainer.mjs.map +1 -0
- package/dist/components/molecules/IconTextButton/IconComponent.cjs +40 -0
- package/dist/components/molecules/IconTextButton/IconComponent.cjs.map +1 -0
- package/dist/components/molecules/IconTextButton/IconComponent.mjs +34 -0
- package/dist/components/molecules/IconTextButton/IconComponent.mjs.map +1 -0
- package/dist/components/molecules/InputPassword/InputPasswordIcon.cjs +63 -0
- package/dist/components/molecules/InputPassword/InputPasswordIcon.cjs.map +1 -0
- package/dist/components/molecules/InputPassword/InputPasswordIcon.mjs +57 -0
- package/dist/components/molecules/InputPassword/InputPasswordIcon.mjs.map +1 -0
- package/dist/components/molecules/InputPassword/styled.cjs +22 -0
- package/dist/components/molecules/InputPassword/styled.cjs.map +1 -0
- package/dist/components/molecules/InputPassword/styled.mjs +14 -0
- package/dist/components/molecules/InputPassword/styled.mjs.map +1 -0
- package/dist/components/molecules/Snackbar/Snackbar.cjs +108 -0
- package/dist/components/molecules/Snackbar/Snackbar.cjs.map +1 -0
- package/dist/components/molecules/Snackbar/Snackbar.mjs +102 -0
- package/dist/components/molecules/Snackbar/Snackbar.mjs.map +1 -0
- package/dist/components/molecules/Snackbar/styled.cjs +104 -0
- package/dist/components/molecules/Snackbar/styled.cjs.map +1 -0
- package/dist/components/molecules/Snackbar/styled.mjs +90 -0
- package/dist/components/molecules/Snackbar/styled.mjs.map +1 -0
- package/dist/components/molecules/TextArea/TextArea.cjs +82 -0
- package/dist/components/molecules/TextArea/TextArea.cjs.map +1 -0
- package/dist/components/molecules/TextArea/TextArea.mjs +76 -0
- package/dist/components/molecules/TextArea/TextArea.mjs.map +1 -0
- package/dist/components/molecules/TextArea/styled.cjs +36 -0
- package/dist/components/molecules/TextArea/styled.cjs.map +1 -0
- package/dist/components/molecules/TextArea/styled.mjs +27 -0
- package/dist/components/molecules/TextArea/styled.mjs.map +1 -0
- package/dist/hooks/useDebouncedState.cjs +20 -0
- package/dist/hooks/useDebouncedState.cjs.map +1 -0
- package/dist/hooks/useDebouncedState.mjs +16 -0
- package/dist/hooks/useDebouncedState.mjs.map +1 -0
- package/dist/hooks/useTheme.cjs +10 -0
- package/dist/hooks/useTheme.cjs.map +1 -0
- package/dist/hooks/useTheme.mjs +6 -0
- package/dist/hooks/useTheme.mjs.map +1 -0
- package/dist/index.cjs +141 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles/ThemeProvider.cjs +20 -0
- package/dist/styles/ThemeProvider.cjs.map +1 -0
- package/dist/styles/ThemeProvider.mjs +14 -0
- package/dist/styles/ThemeProvider.mjs.map +1 -0
- package/dist/styles/definitions.cjs +175 -0
- package/dist/styles/definitions.cjs.map +1 -0
- package/dist/styles/definitions.mjs +158 -0
- package/dist/styles/definitions.mjs.map +1 -0
- package/dist/styles/light.cjs +59 -0
- package/dist/styles/light.cjs.map +1 -0
- package/dist/styles/light.mjs +55 -0
- package/dist/styles/light.mjs.map +1 -0
- package/dist/utils/IPhoneXHelper.cjs +32 -0
- package/dist/utils/IPhoneXHelper.cjs.map +1 -0
- package/dist/utils/IPhoneXHelper.mjs +25 -0
- package/dist/utils/IPhoneXHelper.mjs.map +1 -0
- package/dist/utils/ResponsiveFontSize.cjs +38 -0
- package/dist/utils/ResponsiveFontSize.cjs.map +1 -0
- package/dist/utils/ResponsiveFontSize.mjs +32 -0
- package/dist/utils/ResponsiveFontSize.mjs.map +1 -0
- package/dist/utils/extractNumbersFromString.cjs +10 -0
- package/dist/utils/extractNumbersFromString.cjs.map +1 -0
- package/dist/utils/extractNumbersFromString.mjs +5 -0
- package/dist/utils/extractNumbersFromString.mjs.map +1 -0
- package/dist/utils/formatWithMask.cjs +34 -0
- package/dist/utils/formatWithMask.cjs.map +1 -0
- package/dist/utils/formatWithMask.mjs +26 -0
- package/dist/utils/formatWithMask.mjs.map +1 -0
- package/dist/utils/lightenDarkenColor.cjs +31 -0
- package/dist/utils/lightenDarkenColor.cjs.map +1 -0
- package/dist/utils/lightenDarkenColor.mjs +27 -0
- package/dist/utils/lightenDarkenColor.mjs.map +1 -0
- package/dist/utils/masks.cjs +24 -0
- package/dist/utils/masks.cjs.map +1 -0
- package/dist/utils/masks.mjs +20 -0
- package/dist/utils/masks.mjs.map +1 -0
- package/dist/utils/variantComplement.cjs +36 -0
- package/dist/utils/variantComplement.cjs.map +1 -0
- package/dist/utils/variantComplement.mjs +28 -0
- package/dist/utils/variantComplement.mjs.map +1 -0
- package/package.json +14 -6
- package/CHANGELOG.md +0 -868
- package/dist/components/atoms/Avatar/Avatar.js +0 -38
- package/dist/components/atoms/Avatar/Avatar.js.map +0 -1
- package/dist/components/atoms/Avatar/helpers.js +0 -14
- package/dist/components/atoms/Avatar/helpers.js.map +0 -1
- package/dist/components/atoms/Avatar/styled.js +0 -46
- package/dist/components/atoms/Avatar/styled.js.map +0 -1
- package/dist/components/atoms/Badge/Badge.js +0 -25
- package/dist/components/atoms/Badge/Badge.js.map +0 -1
- package/dist/components/atoms/Badge/styled.js +0 -48
- package/dist/components/atoms/Badge/styled.js.map +0 -1
- package/dist/components/atoms/BoxContent/BoxContent.js +0 -44
- package/dist/components/atoms/BoxContent/BoxContent.js.map +0 -1
- package/dist/components/atoms/BoxContent/styled.js +0 -63
- package/dist/components/atoms/BoxContent/styled.js.map +0 -1
- package/dist/components/atoms/Button/Button.js +0 -105
- package/dist/components/atoms/Button/Button.js.map +0 -1
- package/dist/components/atoms/Button/States/BaseState.js +0 -35
- package/dist/components/atoms/Button/States/BaseState.js.map +0 -1
- package/dist/components/atoms/Button/States/Error.js +0 -36
- package/dist/components/atoms/Button/States/Error.js.map +0 -1
- package/dist/components/atoms/Button/States/Loading.js +0 -32
- package/dist/components/atoms/Button/States/Loading.js.map +0 -1
- package/dist/components/atoms/Button/States/Success.js +0 -36
- package/dist/components/atoms/Button/States/Success.js.map +0 -1
- package/dist/components/atoms/Button/States/styled.js +0 -25
- package/dist/components/atoms/Button/States/styled.js.map +0 -1
- package/dist/components/atoms/Button/styled.js +0 -58
- package/dist/components/atoms/Button/styled.js.map +0 -1
- package/dist/components/atoms/Card/Card.js +0 -64
- package/dist/components/atoms/Card/Card.js.map +0 -1
- package/dist/components/atoms/Card/Footer/Footer.js +0 -15
- package/dist/components/atoms/Card/Footer/Footer.js.map +0 -1
- package/dist/components/atoms/Card/Header/Header.js +0 -15
- package/dist/components/atoms/Card/Header/Header.js.map +0 -1
- package/dist/components/atoms/Card/styled.js +0 -21
- package/dist/components/atoms/Card/styled.js.map +0 -1
- package/dist/components/atoms/Checkbox/Checkbox.js +0 -88
- package/dist/components/atoms/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/atoms/Checkbox/styled.js +0 -48
- package/dist/components/atoms/Checkbox/styled.js.map +0 -1
- package/dist/components/atoms/Divider/Divider.js +0 -44
- package/dist/components/atoms/Divider/Divider.js.map +0 -1
- package/dist/components/atoms/Divider/styled.js +0 -32
- package/dist/components/atoms/Divider/styled.js.map +0 -1
- package/dist/components/atoms/GroupButton/GroupButton.js +0 -105
- package/dist/components/atoms/GroupButton/GroupButton.js.map +0 -1
- package/dist/components/atoms/GroupButton/GroupButtonOption.js +0 -25
- package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +0 -1
- package/dist/components/atoms/GroupButton/styled.js +0 -126
- package/dist/components/atoms/GroupButton/styled.js.map +0 -1
- package/dist/components/atoms/Icon/Icon.js +0 -74
- package/dist/components/atoms/Icon/Icon.js.map +0 -1
- package/dist/components/atoms/Icon/helpers.js +0 -127
- package/dist/components/atoms/Icon/helpers.js.map +0 -1
- package/dist/components/atoms/Input/Hint.js +0 -39
- package/dist/components/atoms/Input/Hint.js.map +0 -1
- package/dist/components/atoms/Input/InputContainer/InputContainer.js +0 -105
- package/dist/components/atoms/Input/InputContainer/InputContainer.js.map +0 -1
- package/dist/components/atoms/Input/InputElement/InputElement.js +0 -73
- package/dist/components/atoms/Input/InputElement/InputElement.js.map +0 -1
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js +0 -113
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +0 -1
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +0 -77
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +0 -1
- package/dist/components/atoms/Input/PressableInputContainer/styled.js +0 -16
- package/dist/components/atoms/Input/PressableInputContainer/styled.js.map +0 -1
- package/dist/components/atoms/Input/hooks/useInputFocus.js +0 -29
- package/dist/components/atoms/Input/hooks/useInputFocus.js.map +0 -1
- package/dist/components/atoms/Input/hooks/useNumberMask.js +0 -100
- package/dist/components/atoms/Input/hooks/useNumberMask.js.map +0 -1
- package/dist/components/atoms/Input/hooks/useStringMask.js +0 -101
- package/dist/components/atoms/Input/hooks/useStringMask.js.map +0 -1
- package/dist/components/atoms/Input/styled.js +0 -111
- package/dist/components/atoms/Input/styled.js.map +0 -1
- package/dist/components/atoms/Paper/Paper.js +0 -55
- package/dist/components/atoms/Paper/Paper.js.map +0 -1
- package/dist/components/atoms/Paper/styled.js +0 -21
- package/dist/components/atoms/Paper/styled.js.map +0 -1
- package/dist/components/atoms/PressableSurface/PressableSurface.js +0 -109
- package/dist/components/atoms/PressableSurface/PressableSurface.js.map +0 -1
- package/dist/components/atoms/ProgressBar/ProgressBar.js +0 -127
- package/dist/components/atoms/ProgressBar/ProgressBar.js.map +0 -1
- package/dist/components/atoms/ProgressBar/styled.js +0 -42
- package/dist/components/atoms/ProgressBar/styled.js.map +0 -1
- package/dist/components/atoms/RadioButton/RadioButton.js +0 -83
- package/dist/components/atoms/RadioButton/RadioButton.js.map +0 -1
- package/dist/components/atoms/RadioButton/styled.js +0 -37
- package/dist/components/atoms/RadioButton/styled.js.map +0 -1
- package/dist/components/atoms/Switch/Switch.js +0 -119
- package/dist/components/atoms/Switch/Switch.js.map +0 -1
- package/dist/components/atoms/Switch/animation.js +0 -39
- package/dist/components/atoms/Switch/animation.js.map +0 -1
- package/dist/components/atoms/Switch/styled.js +0 -40
- package/dist/components/atoms/Switch/styled.js.map +0 -1
- package/dist/components/atoms/Tag/Tag.js +0 -92
- package/dist/components/atoms/Tag/Tag.js.map +0 -1
- package/dist/components/atoms/Tag/styled.js +0 -45
- package/dist/components/atoms/Tag/styled.js.map +0 -1
- package/dist/components/atoms/Text/Text.js +0 -82
- package/dist/components/atoms/Text/Text.js.map +0 -1
- package/dist/components/atoms/Text/functions.js +0 -10
- package/dist/components/atoms/Text/functions.js.map +0 -1
- package/dist/components/atoms/Text/styled.js +0 -31
- package/dist/components/atoms/Text/styled.js.map +0 -1
- package/dist/components/atoms/shared/PaperAndCard.js +0 -26
- package/dist/components/atoms/shared/PaperAndCard.js.map +0 -1
- package/dist/components/molecules/Calendar/Calendar.js +0 -172
- package/dist/components/molecules/Calendar/Calendar.js.map +0 -1
- package/dist/components/molecules/Calendar/components/MonthWeek.js +0 -116
- package/dist/components/molecules/Calendar/components/MonthWeek.js.map +0 -1
- package/dist/components/molecules/Calendar/components/Weekdays.js +0 -29
- package/dist/components/molecules/Calendar/components/Weekdays.js.map +0 -1
- package/dist/components/molecules/Calendar/styled.js +0 -97
- package/dist/components/molecules/Calendar/styled.js.map +0 -1
- package/dist/components/molecules/DatePicker/DatePicker.js +0 -177
- package/dist/components/molecules/DatePicker/DatePicker.js.map +0 -1
- package/dist/components/molecules/DatePicker/styled.js +0 -37
- package/dist/components/molecules/DatePicker/styled.js.map +0 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js +0 -197
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +0 -1
- package/dist/components/molecules/DateTimePicker/styled.js +0 -18
- package/dist/components/molecules/DateTimePicker/styled.js.map +0 -1
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +0 -237
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +0 -1
- package/dist/components/molecules/DateTimeSelector/Selector.js +0 -148
- package/dist/components/molecules/DateTimeSelector/Selector.js.map +0 -1
- package/dist/components/molecules/DateTimeSelector/styled.js +0 -71
- package/dist/components/molecules/DateTimeSelector/styled.js.map +0 -1
- package/dist/components/molecules/Grid/functions.js +0 -31
- package/dist/components/molecules/Grid/functions.js.map +0 -1
- package/dist/components/molecules/HintInputContainer/HintInputContainer.js +0 -103
- package/dist/components/molecules/HintInputContainer/HintInputContainer.js.map +0 -1
- package/dist/components/molecules/IconTextButton/IconComponent.js +0 -40
- package/dist/components/molecules/IconTextButton/IconComponent.js.map +0 -1
- package/dist/components/molecules/InputPassword/InputPasswordIcon.js +0 -63
- package/dist/components/molecules/InputPassword/InputPasswordIcon.js.map +0 -1
- package/dist/components/molecules/InputPassword/styled.js +0 -22
- package/dist/components/molecules/InputPassword/styled.js.map +0 -1
- package/dist/components/molecules/Snackbar/Snackbar.js +0 -108
- package/dist/components/molecules/Snackbar/Snackbar.js.map +0 -1
- package/dist/components/molecules/Snackbar/styled.js +0 -104
- package/dist/components/molecules/Snackbar/styled.js.map +0 -1
- package/dist/components/molecules/TextArea/TextArea.js +0 -82
- package/dist/components/molecules/TextArea/TextArea.js.map +0 -1
- package/dist/components/molecules/TextArea/styled.js +0 -36
- package/dist/components/molecules/TextArea/styled.js.map +0 -1
- package/dist/hooks/useDebouncedState.js +0 -20
- package/dist/hooks/useDebouncedState.js.map +0 -1
- package/dist/hooks/useTheme.js +0 -10
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/index.js +0 -141
- package/dist/index.js.map +0 -1
- package/dist/styles/ThemeProvider.js +0 -20
- package/dist/styles/ThemeProvider.js.map +0 -1
- package/dist/styles/definitions.js +0 -175
- package/dist/styles/definitions.js.map +0 -1
- package/dist/styles/light.js +0 -59
- package/dist/styles/light.js.map +0 -1
- package/dist/utils/IPhoneXHelper.js +0 -32
- package/dist/utils/IPhoneXHelper.js.map +0 -1
- package/dist/utils/ResponsiveFontSize.js +0 -38
- package/dist/utils/ResponsiveFontSize.js.map +0 -1
- package/dist/utils/extractNumbersFromString.js +0 -10
- package/dist/utils/extractNumbersFromString.js.map +0 -1
- package/dist/utils/formatWithMask.js +0 -34
- package/dist/utils/formatWithMask.js.map +0 -1
- package/dist/utils/lightenDarkenColor.js +0 -31
- package/dist/utils/lightenDarkenColor.js.map +0 -1
- package/dist/utils/masks.js +0 -24
- package/dist/utils/masks.js.map +0 -1
- package/dist/utils/variantComplement.js +0 -36
- package/dist/utils/variantComplement.js.map +0 -1
- package/esm/components/atoms/Avatar/Avatar.d.ts +0 -14
- package/esm/components/atoms/Avatar/Avatar.js +0 -32
- package/esm/components/atoms/Avatar/Avatar.js.map +0 -1
- package/esm/components/atoms/Avatar/helpers.d.ts +0 -1
- package/esm/components/atoms/Avatar/helpers.js +0 -10
- package/esm/components/atoms/Avatar/helpers.js.map +0 -1
- package/esm/components/atoms/Avatar/index.d.ts +0 -2
- package/esm/components/atoms/Avatar/styled.d.ts +0 -28
- package/esm/components/atoms/Avatar/styled.js +0 -35
- package/esm/components/atoms/Avatar/styled.js.map +0 -1
- package/esm/components/atoms/Badge/Badge.d.ts +0 -11
- package/esm/components/atoms/Badge/Badge.js +0 -19
- package/esm/components/atoms/Badge/Badge.js.map +0 -1
- package/esm/components/atoms/Badge/index.d.ts +0 -2
- package/esm/components/atoms/Badge/styled.d.ts +0 -15
- package/esm/components/atoms/Badge/styled.js +0 -39
- package/esm/components/atoms/Badge/styled.js.map +0 -1
- package/esm/components/atoms/BoxContent/BoxContent.d.ts +0 -7
- package/esm/components/atoms/BoxContent/BoxContent.js +0 -38
- package/esm/components/atoms/BoxContent/BoxContent.js.map +0 -1
- package/esm/components/atoms/BoxContent/index.d.ts +0 -2
- package/esm/components/atoms/BoxContent/styled.d.ts +0 -11
- package/esm/components/atoms/BoxContent/styled.js +0 -54
- package/esm/components/atoms/BoxContent/styled.js.map +0 -1
- package/esm/components/atoms/Button/Button.d.ts +0 -28
- package/esm/components/atoms/Button/Button.js +0 -99
- package/esm/components/atoms/Button/Button.js.map +0 -1
- package/esm/components/atoms/Button/States/BaseState.d.ts +0 -7
- package/esm/components/atoms/Button/States/BaseState.js +0 -29
- package/esm/components/atoms/Button/States/BaseState.js.map +0 -1
- package/esm/components/atoms/Button/States/Error.d.ts +0 -4
- package/esm/components/atoms/Button/States/Error.js +0 -30
- package/esm/components/atoms/Button/States/Error.js.map +0 -1
- package/esm/components/atoms/Button/States/Loading.d.ts +0 -4
- package/esm/components/atoms/Button/States/Loading.js +0 -26
- package/esm/components/atoms/Button/States/Loading.js.map +0 -1
- package/esm/components/atoms/Button/States/Success.d.ts +0 -4
- package/esm/components/atoms/Button/States/Success.js +0 -30
- package/esm/components/atoms/Button/States/Success.js.map +0 -1
- package/esm/components/atoms/Button/States/index.d.ts +0 -3
- package/esm/components/atoms/Button/States/styled.d.ts +0 -7
- package/esm/components/atoms/Button/States/styled.js +0 -16
- package/esm/components/atoms/Button/States/styled.js.map +0 -1
- package/esm/components/atoms/Button/index.d.ts +0 -3
- package/esm/components/atoms/Button/styled.d.ts +0 -8
- package/esm/components/atoms/Button/styled.js +0 -50
- package/esm/components/atoms/Button/styled.js.map +0 -1
- package/esm/components/atoms/Card/Card.d.ts +0 -9
- package/esm/components/atoms/Card/Card.js +0 -58
- package/esm/components/atoms/Card/Card.js.map +0 -1
- package/esm/components/atoms/Card/Footer/Footer.d.ts +0 -7
- package/esm/components/atoms/Card/Footer/Footer.js +0 -9
- package/esm/components/atoms/Card/Footer/Footer.js.map +0 -1
- package/esm/components/atoms/Card/Footer/index.d.ts +0 -2
- package/esm/components/atoms/Card/Header/Header.d.ts +0 -7
- package/esm/components/atoms/Card/Header/Header.js +0 -9
- package/esm/components/atoms/Card/Header/Header.js.map +0 -1
- package/esm/components/atoms/Card/Header/index.d.ts +0 -2
- package/esm/components/atoms/Card/index.d.ts +0 -2
- package/esm/components/atoms/Card/styled.d.ts +0 -1
- package/esm/components/atoms/Card/styled.js +0 -13
- package/esm/components/atoms/Card/styled.js.map +0 -1
- package/esm/components/atoms/Checkbox/Checkbox.d.ts +0 -14
- package/esm/components/atoms/Checkbox/Checkbox.js +0 -82
- package/esm/components/atoms/Checkbox/Checkbox.js.map +0 -1
- package/esm/components/atoms/Checkbox/index.d.ts +0 -2
- package/esm/components/atoms/Checkbox/styled.d.ts +0 -23
- package/esm/components/atoms/Checkbox/styled.js +0 -37
- package/esm/components/atoms/Checkbox/styled.js.map +0 -1
- package/esm/components/atoms/Divider/Divider.d.ts +0 -8
- package/esm/components/atoms/Divider/Divider.js +0 -38
- package/esm/components/atoms/Divider/Divider.js.map +0 -1
- package/esm/components/atoms/Divider/index.d.ts +0 -2
- package/esm/components/atoms/Divider/styled.d.ts +0 -1
- package/esm/components/atoms/Divider/styled.js +0 -24
- package/esm/components/atoms/Divider/styled.js.map +0 -1
- package/esm/components/atoms/GroupButton/GroupButton.d.ts +0 -32
- package/esm/components/atoms/GroupButton/GroupButton.js +0 -99
- package/esm/components/atoms/GroupButton/GroupButton.js.map +0 -1
- package/esm/components/atoms/GroupButton/GroupButtonOption.d.ts +0 -9
- package/esm/components/atoms/GroupButton/GroupButtonOption.js +0 -19
- package/esm/components/atoms/GroupButton/GroupButtonOption.js.map +0 -1
- package/esm/components/atoms/GroupButton/index.d.ts +0 -4
- package/esm/components/atoms/GroupButton/styled.d.ts +0 -42
- package/esm/components/atoms/GroupButton/styled.js +0 -114
- package/esm/components/atoms/GroupButton/styled.js.map +0 -1
- package/esm/components/atoms/Icon/Icon.d.ts +0 -14
- package/esm/components/atoms/Icon/Icon.js +0 -68
- package/esm/components/atoms/Icon/Icon.js.map +0 -1
- package/esm/components/atoms/Icon/helpers.d.ts +0 -4
- package/esm/components/atoms/Icon/helpers.js +0 -100
- package/esm/components/atoms/Icon/helpers.js.map +0 -1
- package/esm/components/atoms/Icon/index.d.ts +0 -2
- package/esm/components/atoms/Input/Hint.d.ts +0 -10
- package/esm/components/atoms/Input/Hint.js +0 -33
- package/esm/components/atoms/Input/Hint.js.map +0 -1
- package/esm/components/atoms/Input/InputContainer/InputContainer.d.ts +0 -29
- package/esm/components/atoms/Input/InputContainer/InputContainer.js +0 -99
- package/esm/components/atoms/Input/InputContainer/InputContainer.js.map +0 -1
- package/esm/components/atoms/Input/InputElement/InputElement.d.ts +0 -13
- package/esm/components/atoms/Input/InputElement/InputElement.js +0 -67
- package/esm/components/atoms/Input/InputElement/InputElement.js.map +0 -1
- package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +0 -16
- package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +0 -107
- package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +0 -1
- package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +0 -10
- package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +0 -55
- package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +0 -1
- package/esm/components/atoms/Input/PressableInputContainer/index.d.ts +0 -2
- package/esm/components/atoms/Input/PressableInputContainer/styled.d.ts +0 -5
- package/esm/components/atoms/Input/PressableInputContainer/styled.js +0 -8
- package/esm/components/atoms/Input/PressableInputContainer/styled.js.map +0 -1
- package/esm/components/atoms/Input/hooks/useInputFocus.d.ts +0 -5
- package/esm/components/atoms/Input/hooks/useInputFocus.js +0 -25
- package/esm/components/atoms/Input/hooks/useInputFocus.js.map +0 -1
- package/esm/components/atoms/Input/hooks/useNumberMask.d.ts +0 -8
- package/esm/components/atoms/Input/hooks/useNumberMask.js +0 -91
- package/esm/components/atoms/Input/hooks/useNumberMask.js.map +0 -1
- package/esm/components/atoms/Input/hooks/useStringMask.d.ts +0 -8
- package/esm/components/atoms/Input/hooks/useStringMask.js +0 -95
- package/esm/components/atoms/Input/hooks/useStringMask.js.map +0 -1
- package/esm/components/atoms/Input/index.d.ts +0 -13
- package/esm/components/atoms/Input/styled.d.ts +0 -64
- package/esm/components/atoms/Input/styled.js +0 -95
- package/esm/components/atoms/Input/styled.js.map +0 -1
- package/esm/components/atoms/Paper/Paper.d.ts +0 -8
- package/esm/components/atoms/Paper/Paper.js +0 -49
- package/esm/components/atoms/Paper/Paper.js.map +0 -1
- package/esm/components/atoms/Paper/index.d.ts +0 -2
- package/esm/components/atoms/Paper/styled.d.ts +0 -1
- package/esm/components/atoms/Paper/styled.js +0 -13
- package/esm/components/atoms/Paper/styled.js.map +0 -1
- package/esm/components/atoms/PressableSurface/PressableSurface.d.ts +0 -10
- package/esm/components/atoms/PressableSurface/PressableSurface.js +0 -103
- package/esm/components/atoms/PressableSurface/PressableSurface.js.map +0 -1
- package/esm/components/atoms/PressableSurface/index.d.ts +0 -2
- package/esm/components/atoms/ProgressBar/ProgressBar.d.ts +0 -18
- package/esm/components/atoms/ProgressBar/ProgressBar.js +0 -105
- package/esm/components/atoms/ProgressBar/ProgressBar.js.map +0 -1
- package/esm/components/atoms/ProgressBar/index.d.ts +0 -2
- package/esm/components/atoms/ProgressBar/styled.d.ts +0 -20
- package/esm/components/atoms/ProgressBar/styled.js +0 -32
- package/esm/components/atoms/ProgressBar/styled.js.map +0 -1
- package/esm/components/atoms/RadioButton/RadioButton.d.ts +0 -14
- package/esm/components/atoms/RadioButton/RadioButton.js +0 -77
- package/esm/components/atoms/RadioButton/RadioButton.js.map +0 -1
- package/esm/components/atoms/RadioButton/index.d.ts +0 -2
- package/esm/components/atoms/RadioButton/styled.d.ts +0 -27
- package/esm/components/atoms/RadioButton/styled.js +0 -26
- package/esm/components/atoms/RadioButton/styled.js.map +0 -1
- package/esm/components/atoms/Switch/Switch.d.ts +0 -16
- package/esm/components/atoms/Switch/Switch.js +0 -113
- package/esm/components/atoms/Switch/Switch.js.map +0 -1
- package/esm/components/atoms/Switch/animation.d.ts +0 -2
- package/esm/components/atoms/Switch/animation.js +0 -35
- package/esm/components/atoms/Switch/animation.js.map +0 -1
- package/esm/components/atoms/Switch/index.d.ts +0 -2
- package/esm/components/atoms/Switch/styled.d.ts +0 -4
- package/esm/components/atoms/Switch/styled.js +0 -29
- package/esm/components/atoms/Switch/styled.js.map +0 -1
- package/esm/components/atoms/Tag/Tag.d.ts +0 -12
- package/esm/components/atoms/Tag/Tag.js +0 -86
- package/esm/components/atoms/Tag/Tag.js.map +0 -1
- package/esm/components/atoms/Tag/index.d.ts +0 -2
- package/esm/components/atoms/Tag/styled.d.ts +0 -24
- package/esm/components/atoms/Tag/styled.js +0 -35
- package/esm/components/atoms/Tag/styled.js.map +0 -1
- package/esm/components/atoms/Text/Text.d.ts +0 -19
- package/esm/components/atoms/Text/Text.js +0 -76
- package/esm/components/atoms/Text/Text.js.map +0 -1
- package/esm/components/atoms/Text/functions.d.ts +0 -2
- package/esm/components/atoms/Text/functions.js +0 -5
- package/esm/components/atoms/Text/functions.js.map +0 -1
- package/esm/components/atoms/Text/index.d.ts +0 -2
- package/esm/components/atoms/Text/styled.d.ts +0 -6
- package/esm/components/atoms/Text/styled.js +0 -22
- package/esm/components/atoms/Text/styled.js.map +0 -1
- package/esm/components/atoms/shared/PaperAndCard.d.ts +0 -3
- package/esm/components/atoms/shared/PaperAndCard.js +0 -21
- package/esm/components/atoms/shared/PaperAndCard.js.map +0 -1
- package/esm/components/molecules/Calendar/Calendar.d.ts +0 -20
- package/esm/components/molecules/Calendar/Calendar.js +0 -150
- package/esm/components/molecules/Calendar/Calendar.js.map +0 -1
- package/esm/components/molecules/Calendar/components/MonthWeek.d.ts +0 -13
- package/esm/components/molecules/Calendar/components/MonthWeek.js +0 -110
- package/esm/components/molecules/Calendar/components/MonthWeek.js.map +0 -1
- package/esm/components/molecules/Calendar/components/Weekdays.d.ts +0 -8
- package/esm/components/molecules/Calendar/components/Weekdays.js +0 -23
- package/esm/components/molecules/Calendar/components/Weekdays.js.map +0 -1
- package/esm/components/molecules/Calendar/components/index.d.ts +0 -2
- package/esm/components/molecules/Calendar/index.d.ts +0 -2
- package/esm/components/molecules/Calendar/styled.d.ts +0 -61
- package/esm/components/molecules/Calendar/styled.js +0 -83
- package/esm/components/molecules/Calendar/styled.js.map +0 -1
- package/esm/components/molecules/DatePicker/DatePicker.d.ts +0 -19
- package/esm/components/molecules/DatePicker/DatePicker.js +0 -156
- package/esm/components/molecules/DatePicker/DatePicker.js.map +0 -1
- package/esm/components/molecules/DatePicker/index.d.ts +0 -2
- package/esm/components/molecules/DatePicker/styled.d.ts +0 -15
- package/esm/components/molecules/DatePicker/styled.js +0 -28
- package/esm/components/molecules/DatePicker/styled.js.map +0 -1
- package/esm/components/molecules/DateTimePicker/DateTimePicker.d.ts +0 -17
- package/esm/components/molecules/DateTimePicker/DateTimePicker.js +0 -175
- package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +0 -1
- package/esm/components/molecules/DateTimePicker/index.d.ts +0 -2
- package/esm/components/molecules/DateTimePicker/styled.d.ts +0 -8
- package/esm/components/molecules/DateTimePicker/styled.js +0 -10
- package/esm/components/molecules/DateTimePicker/styled.js.map +0 -1
- package/esm/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +0 -28
- package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +0 -215
- package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js.map +0 -1
- package/esm/components/molecules/DateTimeSelector/Selector.d.ts +0 -17
- package/esm/components/molecules/DateTimeSelector/Selector.js +0 -124
- package/esm/components/molecules/DateTimeSelector/Selector.js.map +0 -1
- package/esm/components/molecules/DateTimeSelector/index.d.ts +0 -2
- package/esm/components/molecules/DateTimeSelector/styled.d.ts +0 -52
- package/esm/components/molecules/DateTimeSelector/styled.js +0 -56
- package/esm/components/molecules/DateTimeSelector/styled.js.map +0 -1
- package/esm/components/molecules/Grid/functions.d.ts +0 -3
- package/esm/components/molecules/Grid/functions.js +0 -26
- package/esm/components/molecules/Grid/functions.js.map +0 -1
- package/esm/components/molecules/Grid/index.d.ts +0 -42
- package/esm/components/molecules/HintInputContainer/HintInputContainer.d.ts +0 -17
- package/esm/components/molecules/HintInputContainer/HintInputContainer.js +0 -81
- package/esm/components/molecules/HintInputContainer/HintInputContainer.js.map +0 -1
- package/esm/components/molecules/HintInputContainer/index.d.ts +0 -2
- package/esm/components/molecules/HintInputContainer/styled.d.ts +0 -0
- package/esm/components/molecules/IconTextButton/IconComponent.d.ts +0 -9
- package/esm/components/molecules/IconTextButton/IconComponent.js +0 -34
- package/esm/components/molecules/IconTextButton/IconComponent.js.map +0 -1
- package/esm/components/molecules/IconTextButton/IconTextButton.d.ts +0 -8
- package/esm/components/molecules/IconTextButton/index.d.ts +0 -2
- package/esm/components/molecules/InputPassword/InputPasswordIcon.d.ts +0 -8
- package/esm/components/molecules/InputPassword/InputPasswordIcon.js +0 -57
- package/esm/components/molecules/InputPassword/InputPasswordIcon.js.map +0 -1
- package/esm/components/molecules/InputPassword/index.d.ts +0 -1
- package/esm/components/molecules/InputPassword/styled.d.ts +0 -7
- package/esm/components/molecules/InputPassword/styled.js +0 -14
- package/esm/components/molecules/InputPassword/styled.js.map +0 -1
- package/esm/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +0 -7
- package/esm/components/molecules/LabeledSwitch/index.d.ts +0 -1
- package/esm/components/molecules/Snackbar/Snackbar.d.ts +0 -19
- package/esm/components/molecules/Snackbar/Snackbar.js +0 -102
- package/esm/components/molecules/Snackbar/Snackbar.js.map +0 -1
- package/esm/components/molecules/Snackbar/index.d.ts +0 -2
- package/esm/components/molecules/Snackbar/styled.d.ts +0 -47
- package/esm/components/molecules/Snackbar/styled.js +0 -90
- package/esm/components/molecules/Snackbar/styled.js.map +0 -1
- package/esm/components/molecules/TextArea/TextArea.d.ts +0 -14
- package/esm/components/molecules/TextArea/TextArea.js +0 -76
- package/esm/components/molecules/TextArea/TextArea.js.map +0 -1
- package/esm/components/molecules/TextArea/index.d.ts +0 -3
- package/esm/components/molecules/TextArea/styled.d.ts +0 -2
- package/esm/components/molecules/TextArea/styled.js +0 -27
- package/esm/components/molecules/TextArea/styled.js.map +0 -1
- package/esm/hooks/index.d.ts +0 -2
- package/esm/hooks/useDebouncedState.d.ts +0 -2
- package/esm/hooks/useDebouncedState.js +0 -16
- package/esm/hooks/useDebouncedState.js.map +0 -1
- package/esm/hooks/useTheme.d.ts +0 -2
- package/esm/hooks/useTheme.js +0 -6
- package/esm/hooks/useTheme.js.map +0 -1
- package/esm/index.d.ts +0 -64
- package/esm/index.js +0 -55
- package/esm/index.js.map +0 -1
- package/esm/styles/ThemeProvider.d.ts +0 -4
- package/esm/styles/ThemeProvider.js +0 -14
- package/esm/styles/ThemeProvider.js.map +0 -1
- package/esm/styles/definitions.d.ts +0 -45
- package/esm/styles/definitions.js +0 -158
- package/esm/styles/definitions.js.map +0 -1
- package/esm/styles/light.d.ts +0 -2
- package/esm/styles/light.js +0 -55
- package/esm/styles/light.js.map +0 -1
- package/esm/types/defaults.d.ts +0 -134
- package/esm/utils/IPhoneXHelper.d.ts +0 -4
- package/esm/utils/IPhoneXHelper.js +0 -25
- package/esm/utils/IPhoneXHelper.js.map +0 -1
- package/esm/utils/ResponsiveFontSize.d.ts +0 -3
- package/esm/utils/ResponsiveFontSize.js +0 -32
- package/esm/utils/ResponsiveFontSize.js.map +0 -1
- package/esm/utils/extractNumbersFromString.d.ts +0 -2
- package/esm/utils/extractNumbersFromString.js +0 -5
- package/esm/utils/extractNumbersFromString.js.map +0 -1
- package/esm/utils/formatWithMask.d.ts +0 -3
- package/esm/utils/formatWithMask.js +0 -26
- package/esm/utils/formatWithMask.js.map +0 -1
- package/esm/utils/index.d.ts +0 -7
- package/esm/utils/lightenDarkenColor.d.ts +0 -1
- package/esm/utils/lightenDarkenColor.js +0 -27
- package/esm/utils/lightenDarkenColor.js.map +0 -1
- package/esm/utils/masks.d.ts +0 -11
- package/esm/utils/masks.js +0 -20
- package/esm/utils/masks.js.map +0 -1
- package/esm/utils/variantComplement.d.ts +0 -6
- package/esm/utils/variantComplement.js +0 -28
- package/esm/utils/variantComplement.js.map +0 -1
- package/rollup.config.js +0 -36
- package/src/components/atoms/Avatar/Avatar.stories.tsx +0 -21
- package/src/components/atoms/Avatar/Avatar.tsx +0 -56
- package/src/components/atoms/Avatar/helpers.ts +0 -10
- package/src/components/atoms/Avatar/index.ts +0 -2
- package/src/components/atoms/Avatar/styled.ts +0 -43
- package/src/components/atoms/Badge/Badge.tsx +0 -30
- package/src/components/atoms/Badge/index.ts +0 -2
- package/src/components/atoms/Badge/styled.ts +0 -34
- package/src/components/atoms/BoxContent/BoxContent.stories.tsx +0 -30
- package/src/components/atoms/BoxContent/BoxContent.tsx +0 -13
- package/src/components/atoms/BoxContent/index.ts +0 -2
- package/src/components/atoms/BoxContent/styled.ts +0 -67
- package/src/components/atoms/Button/Button.tsx +0 -103
- package/src/components/atoms/Button/States/BaseState.tsx +0 -38
- package/src/components/atoms/Button/States/Error.tsx +0 -9
- package/src/components/atoms/Button/States/Loading.tsx +0 -33
- package/src/components/atoms/Button/States/Success.tsx +0 -9
- package/src/components/atoms/Button/States/index.ts +0 -3
- package/src/components/atoms/Button/States/styled.ts +0 -23
- package/src/components/atoms/Button/index.ts +0 -8
- package/src/components/atoms/Button/styled.ts +0 -51
- package/src/components/atoms/Card/Card.stories.tsx +0 -29
- package/src/components/atoms/Card/Card.tsx +0 -35
- package/src/components/atoms/Card/Footer/Footer.tsx +0 -12
- package/src/components/atoms/Card/Footer/index.ts +0 -2
- package/src/components/atoms/Card/Header/Header.tsx +0 -12
- package/src/components/atoms/Card/Header/index.ts +0 -2
- package/src/components/atoms/Card/index.ts +0 -2
- package/src/components/atoms/Card/styled.ts +0 -13
- package/src/components/atoms/Checkbox/Checkbox.stories.tsx +0 -32
- package/src/components/atoms/Checkbox/Checkbox.tsx +0 -81
- package/src/components/atoms/Checkbox/index.ts +0 -2
- package/src/components/atoms/Checkbox/styled.ts +0 -44
- package/src/components/atoms/Divider/Divider.stories.tsx +0 -28
- package/src/components/atoms/Divider/Divider.tsx +0 -14
- package/src/components/atoms/Divider/index.ts +0 -2
- package/src/components/atoms/Divider/styled.ts +0 -34
- package/src/components/atoms/GroupButton/GroupButton.stories.tsx +0 -55
- package/src/components/atoms/GroupButton/GroupButton.tsx +0 -118
- package/src/components/atoms/GroupButton/GroupButtonOption.tsx +0 -24
- package/src/components/atoms/GroupButton/index.ts +0 -4
- package/src/components/atoms/GroupButton/styled.ts +0 -147
- package/src/components/atoms/Icon/Icon.stories.tsx +0 -21
- package/src/components/atoms/Icon/Icon.tsx +0 -52
- package/src/components/atoms/Icon/helpers.ts +0 -120
- package/src/components/atoms/Icon/index.ts +0 -2
- package/src/components/atoms/Input/Hint.tsx +0 -48
- package/src/components/atoms/Input/InputContainer/InputContainer.tsx +0 -109
- package/src/components/atoms/Input/InputElement/InputElement.tsx +0 -50
- package/src/components/atoms/Input/InputMaskElement/InputMaskElement.tsx +0 -119
- package/src/components/atoms/Input/PressableInputContainer/PressableInputContainer.tsx +0 -36
- package/src/components/atoms/Input/PressableInputContainer/index.ts +0 -2
- package/src/components/atoms/Input/PressableInputContainer/styled.ts +0 -5
- package/src/components/atoms/Input/hooks/useInputFocus.ts +0 -29
- package/src/components/atoms/Input/hooks/useNumberMask.ts +0 -99
- package/src/components/atoms/Input/hooks/useStringMask.ts +0 -128
- package/src/components/atoms/Input/index.ts +0 -16
- package/src/components/atoms/Input/styled.ts +0 -130
- package/src/components/atoms/Paper/Paper.stories.tsx +0 -27
- package/src/components/atoms/Paper/Paper.tsx +0 -21
- package/src/components/atoms/Paper/index.ts +0 -2
- package/src/components/atoms/Paper/styled.ts +0 -14
- package/src/components/atoms/PressableSurface/PressableSurface.tsx +0 -82
- package/src/components/atoms/PressableSurface/index.ts +0 -2
- package/src/components/atoms/ProgressBar/ProgressBar.stories.tsx +0 -27
- package/src/components/atoms/ProgressBar/ProgressBar.tsx +0 -108
- package/src/components/atoms/ProgressBar/index.ts +0 -2
- package/src/components/atoms/ProgressBar/styled.ts +0 -25
- package/src/components/atoms/RadioButton/RadioButton.stories.tsx +0 -39
- package/src/components/atoms/RadioButton/RadioButton.tsx +0 -81
- package/src/components/atoms/RadioButton/index.ts +0 -2
- package/src/components/atoms/RadioButton/styled.ts +0 -29
- package/src/components/atoms/Switch/Switch.stories.tsx +0 -27
- package/src/components/atoms/Switch/Switch.tsx +0 -111
- package/src/components/atoms/Switch/animation.ts +0 -39
- package/src/components/atoms/Switch/index.ts +0 -2
- package/src/components/atoms/Switch/styled.ts +0 -22
- package/src/components/atoms/Tag/Tag.tsx +0 -71
- package/src/components/atoms/Tag/index.ts +0 -2
- package/src/components/atoms/Tag/styled.ts +0 -45
- package/src/components/atoms/Text/Text.stories.tsx +0 -32
- package/src/components/atoms/Text/Text.tsx +0 -68
- package/src/components/atoms/Text/functions.ts +0 -8
- package/src/components/atoms/Text/index.ts +0 -2
- package/src/components/atoms/Text/styled.ts +0 -31
- package/src/components/atoms/shared/PaperAndCard.ts +0 -24
- package/src/components/molecules/Calendar/Calendar.stories.tsx +0 -20
- package/src/components/molecules/Calendar/Calendar.tsx +0 -159
- package/src/components/molecules/Calendar/components/MonthWeek.tsx +0 -139
- package/src/components/molecules/Calendar/components/Weekdays.tsx +0 -34
- package/src/components/molecules/Calendar/components/index.ts +0 -2
- package/src/components/molecules/Calendar/index.ts +0 -7
- package/src/components/molecules/Calendar/styled.ts +0 -117
- package/src/components/molecules/DatePicker/DatePicker.tsx +0 -140
- package/src/components/molecules/DatePicker/index.ts +0 -2
- package/src/components/molecules/DatePicker/styled.ts +0 -20
- package/src/components/molecules/DateTimePicker/DateTimePicker.tsx +0 -147
- package/src/components/molecules/DateTimePicker/index.ts +0 -2
- package/src/components/molecules/DateTimePicker/styled.ts +0 -12
- package/src/components/molecules/DateTimeSelector/DateTimeSelector.tsx +0 -319
- package/src/components/molecules/DateTimeSelector/Selector.tsx +0 -122
- package/src/components/molecules/DateTimeSelector/index.ts +0 -5
- package/src/components/molecules/DateTimeSelector/styled.ts +0 -55
- package/src/components/molecules/Grid/functions.ts +0 -25
- package/src/components/molecules/Grid/index.ts +0 -66
- package/src/components/molecules/HintInputContainer/HintInputContainer.tsx +0 -58
- package/src/components/molecules/HintInputContainer/index.ts +0 -2
- package/src/components/molecules/HintInputContainer/styled.ts +0 -0
- package/src/components/molecules/IconTextButton/IconComponent.tsx +0 -27
- package/src/components/molecules/IconTextButton/IconTextButton.ts +0 -10
- package/src/components/molecules/IconTextButton/index.ts +0 -5
- package/src/components/molecules/InputPassword/InputPasswordIcon.tsx +0 -29
- package/src/components/molecules/InputPassword/index.ts +0 -1
- package/src/components/molecules/InputPassword/styled.ts +0 -7
- package/src/components/molecules/LabeledSwitch/LabeledSwitch.tsx +0 -9
- package/src/components/molecules/LabeledSwitch/index.ts +0 -1
- package/src/components/molecules/Snackbar/Snackbar.tsx +0 -134
- package/src/components/molecules/Snackbar/index.ts +0 -2
- package/src/components/molecules/Snackbar/styled.ts +0 -103
- package/src/components/molecules/TextArea/TextArea.tsx +0 -97
- package/src/components/molecules/TextArea/index.ts +0 -3
- package/src/components/molecules/TextArea/styled.ts +0 -22
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useDebouncedState.ts +0 -24
- package/src/hooks/useTheme.ts +0 -4
- package/src/index.ts +0 -116
- package/src/styles/ThemeProvider.tsx +0 -12
- package/src/styles/definitions.ts +0 -188
- package/src/styles/light.ts +0 -56
- package/src/types/defaults.ts +0 -162
- package/src/utils/IPhoneXHelper.ts +0 -39
- package/src/utils/ResponsiveFontSize.ts +0 -71
- package/src/utils/extractNumbersFromString.ts +0 -5
- package/src/utils/formatWithMask.ts +0 -25
- package/src/utils/index.ts +0 -10
- package/src/utils/lightenDarkenColor.ts +0 -24
- package/src/utils/masks.ts +0 -24
- package/src/utils/variantComplement.ts +0 -36
- package/tsconfig.build.esm.json +0 -10
- package/tsconfig.build.json +0 -11
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import styled, { css } from '@emotion/native';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../Text/styled.mjs';
|
|
4
|
+
import '../Input/styled.mjs';
|
|
5
|
+
import 'currency.js';
|
|
6
|
+
import '../Input/InputElement/InputElement.mjs';
|
|
7
|
+
import '../Input/InputMaskElement/InputMaskElement.mjs';
|
|
8
|
+
import '../Input/PressableInputContainer/styled.mjs';
|
|
9
|
+
import 'react-native';
|
|
10
|
+
import { RFValueStr } from '../../../utils/ResponsiveFontSize.mjs';
|
|
11
|
+
import PressableSurface from '../PressableSurface/PressableSurface.mjs';
|
|
12
|
+
|
|
13
|
+
const StyledGroupButton = styled.View`
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
`;
|
|
16
|
+
const disabledStyles = ({
|
|
17
|
+
disabled,
|
|
18
|
+
isActive
|
|
19
|
+
}) => disabled && !isActive && css`
|
|
20
|
+
background-color: #dcdcdc;
|
|
21
|
+
`;
|
|
22
|
+
const getStyledGroupItemText = (component) => {
|
|
23
|
+
return styled(component)`
|
|
24
|
+
color: ${({ active, theme }) => active ? theme.miscellaneous.surfaceColor : theme.color.secondary.medium};
|
|
25
|
+
`;
|
|
26
|
+
};
|
|
27
|
+
const activeStyles = ({
|
|
28
|
+
theme,
|
|
29
|
+
isActive,
|
|
30
|
+
activeBorderColor = "secondary",
|
|
31
|
+
activeBorderColorTone = "medium"
|
|
32
|
+
}) => isActive && css`
|
|
33
|
+
border-color: ${theme == null ? void 0 : theme.color[activeBorderColor][activeBorderColorTone]};
|
|
34
|
+
`;
|
|
35
|
+
const inactiveStyles = ({
|
|
36
|
+
theme,
|
|
37
|
+
isActive,
|
|
38
|
+
inactiveBackgroundColor,
|
|
39
|
+
inactiveBackgroundColorTone,
|
|
40
|
+
inactiveBorderColor = "secondary",
|
|
41
|
+
inactiveBorderColorTone = "light"
|
|
42
|
+
}) => {
|
|
43
|
+
if (!isActive && inactiveBackgroundColor && inactiveBackgroundColorTone) {
|
|
44
|
+
return css`
|
|
45
|
+
border-color: ${theme == null ? void 0 : theme.color[inactiveBorderColor][inactiveBorderColorTone]};
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
if (!isActive) {
|
|
49
|
+
return css`
|
|
50
|
+
border-color: ${theme == null ? void 0 : theme.color[inactiveBorderColor][inactiveBorderColorTone]};
|
|
51
|
+
`;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const leftStyles = ({
|
|
55
|
+
theme,
|
|
56
|
+
isFirstOption
|
|
57
|
+
}) => isFirstOption && css`
|
|
58
|
+
border-top-left-radius: ${theme == null ? void 0 : theme.borderRadius.mili};
|
|
59
|
+
border-bottom-left-radius: ${theme == null ? void 0 : theme.borderRadius.mili};
|
|
60
|
+
border-left-width: ${theme == null ? void 0 : theme.borderWidth.pico};
|
|
61
|
+
`;
|
|
62
|
+
const rightStyles = ({
|
|
63
|
+
theme,
|
|
64
|
+
isLastOption
|
|
65
|
+
}) => isLastOption && css`
|
|
66
|
+
border-top-right-radius: ${theme == null ? void 0 : theme.borderRadius.mili};
|
|
67
|
+
border-bottom-right-radius: ${theme == null ? void 0 : theme.borderRadius.mili};
|
|
68
|
+
border-right-width: ${theme == null ? void 0 : theme.borderWidth.pico};
|
|
69
|
+
`;
|
|
70
|
+
const sizeStyles = ({
|
|
71
|
+
theme,
|
|
72
|
+
buttonSize = "small"
|
|
73
|
+
}) => {
|
|
74
|
+
switch (buttonSize) {
|
|
75
|
+
case "small":
|
|
76
|
+
return css`
|
|
77
|
+
padding: ${theme == null ? void 0 : theme.spacing.mili} ${theme == null ? void 0 : theme.spacing.deca};
|
|
78
|
+
min-height: ${RFValueStr("34px")};
|
|
79
|
+
`;
|
|
80
|
+
default:
|
|
81
|
+
return css`
|
|
82
|
+
padding: ${theme == null ? void 0 : theme.spacing.mili} ${theme == null ? void 0 : theme.spacing.kilo};
|
|
83
|
+
min-height: ${RFValueStr("44px")};
|
|
84
|
+
`;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const StyledPressableBase = styled(PressableSurface)`
|
|
88
|
+
border-top-width: ${({ theme }) => theme.borderWidth.pico};
|
|
89
|
+
border-bottom-width: ${({ theme }) => theme.borderWidth.pico};
|
|
90
|
+
justify-content: center;
|
|
91
|
+
align-items: center;
|
|
92
|
+
flex: 1;
|
|
93
|
+
`;
|
|
94
|
+
const StyledOption = styled.View`
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
flex: 1;
|
|
97
|
+
`;
|
|
98
|
+
const StyledDivider = styled.View`
|
|
99
|
+
width: ${({ theme }) => theme.borderWidth.pico};
|
|
100
|
+
background-color: ${({ theme }) => theme.color.secondary.light}; ;
|
|
101
|
+
`;
|
|
102
|
+
const StyledPressable = styled(StyledPressableBase)(
|
|
103
|
+
(props) => css`
|
|
104
|
+
${activeStyles(props)}
|
|
105
|
+
${inactiveStyles(props)}
|
|
106
|
+
${leftStyles(props)}
|
|
107
|
+
${rightStyles(props)}
|
|
108
|
+
${sizeStyles(props)}
|
|
109
|
+
${disabledStyles(props)}
|
|
110
|
+
`
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
export { StyledDivider, StyledGroupButton, StyledOption, StyledPressable, getStyledGroupItemText };
|
|
114
|
+
//# sourceMappingURL=styled.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.mjs","sources":["../../../../src/components/atoms/GroupButton/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { FC } from 'react';\nimport { StyleProps } from '../../../types/defaults';\nimport { RFValueStr } from '../../../utils';\nimport { ButtonSizeType } from '../Button';\nimport { PressableSurface } from '../PressableSurface';\nimport { TextProps } from '../Text';\nimport { GroupButtonOptions } from './GroupButton';\nimport { GroupButtonOptionProps } from './GroupButtonOption';\n\ninterface PressableOptions extends GroupButtonOptions {\n isActive: boolean;\n isFirstOption: boolean;\n isLastOption: boolean;\n buttonSize?: ButtonSizeType;\n}\n\nexport const StyledGroupButton = styled.View<Partial<StyleProps>>`\n flex-direction: row;\n`;\n\n// TO FIXED: hexa color to theme definitions\nconst disabledStyles = ({\n disabled,\n isActive,\n}: PressableOptions & Partial<StyleProps>) =>\n disabled &&\n !isActive &&\n css`\n background-color: #dcdcdc;\n `;\n\nexport const getStyledGroupItemText = (component: FC<TextProps>) => {\n return styled(component)<\n Partial<GroupButtonOptionProps> & Partial<StyleProps>\n >`\n color: ${({ active, theme }) =>\n active ? theme.miscellaneous.surfaceColor : theme.color.secondary.medium};\n `;\n};\n\nconst activeStyles = ({\n theme,\n isActive,\n activeBorderColor = 'secondary',\n activeBorderColorTone = 'medium',\n}: PressableOptions & Partial<StyleProps>) =>\n isActive &&\n css`\n border-color: ${theme?.color[activeBorderColor][activeBorderColorTone]};\n `;\n\nconst inactiveStyles = ({\n theme,\n isActive,\n inactiveBackgroundColor,\n inactiveBackgroundColorTone,\n inactiveBorderColor = 'secondary',\n inactiveBorderColorTone = 'light',\n}: PressableOptions & Partial<StyleProps>) => {\n if (!isActive && inactiveBackgroundColor && inactiveBackgroundColorTone) {\n return css`\n border-color: ${theme?.color[inactiveBorderColor][\n inactiveBorderColorTone\n ]};\n `;\n }\n\n if (!isActive) {\n return css`\n border-color: ${theme?.color[inactiveBorderColor][\n inactiveBorderColorTone\n ]};\n `;\n }\n};\n\nconst leftStyles = ({\n theme,\n isFirstOption,\n}: PressableOptions & Partial<StyleProps>) =>\n isFirstOption &&\n css`\n border-top-left-radius: ${theme?.borderRadius.mili};\n border-bottom-left-radius: ${theme?.borderRadius.mili};\n border-left-width: ${theme?.borderWidth.pico};\n `;\n\nconst rightStyles = ({\n theme,\n isLastOption,\n}: PressableOptions & Partial<StyleProps>) =>\n isLastOption &&\n css`\n border-top-right-radius: ${theme?.borderRadius.mili};\n border-bottom-right-radius: ${theme?.borderRadius.mili};\n border-right-width: ${theme?.borderWidth.pico};\n `;\n\nconst sizeStyles = ({\n theme,\n buttonSize = 'small',\n}: PressableOptions & Partial<StyleProps>) => {\n switch (buttonSize) {\n case 'small':\n return css`\n padding: ${theme?.spacing.mili} ${theme?.spacing.deca};\n min-height: ${RFValueStr('34px')};\n `;\n default:\n return css`\n padding: ${theme?.spacing.mili} ${theme?.spacing.kilo};\n min-height: ${RFValueStr('44px')};\n `;\n }\n};\n\nconst StyledPressableBase = styled(PressableSurface)<\n PressableOptions & Partial<StyleProps>\n>`\n border-top-width: ${({ theme }) => theme.borderWidth.pico};\n border-bottom-width: ${({ theme }) => theme.borderWidth.pico};\n justify-content: center;\n align-items: center;\n flex: 1;\n`;\n\nexport const StyledOption = styled.View`\n flex-direction: row;\n flex: 1;\n`;\n\nexport const StyledDivider = styled.View<Partial<StyleProps>>`\n width: ${({ theme }) => theme.borderWidth.pico};\n background-color: ${({ theme }) => theme.color.secondary.light}; ;\n`;\n\nexport const StyledPressable = styled(StyledPressableBase)(\n (props: PressableOptions & Partial<StyleProps>) => css`\n ${activeStyles(props)}\n ${inactiveStyles(props)}\n ${leftStyles(props)}\n ${rightStyles(props)}\n ${sizeStyles(props)}\n ${disabledStyles(props)}\n `\n);\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var reactNative = require('react-native');
|
|
5
|
+
var react = require('@emotion/react');
|
|
6
|
+
var helpers = require('./helpers.cjs');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __defProps = Object.defineProperties;
|
|
14
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
15
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
18
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
19
|
+
var __spreadValues = (a, b) => {
|
|
20
|
+
for (var prop in b || (b = {}))
|
|
21
|
+
if (__hasOwnProp.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
23
|
+
if (__getOwnPropSymbols)
|
|
24
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
25
|
+
if (__propIsEnum.call(b, prop))
|
|
26
|
+
__defNormalProp(a, prop, b[prop]);
|
|
27
|
+
}
|
|
28
|
+
return a;
|
|
29
|
+
};
|
|
30
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
31
|
+
var __objRest = (source, exclude) => {
|
|
32
|
+
var target = {};
|
|
33
|
+
for (var prop in source)
|
|
34
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35
|
+
target[prop] = source[prop];
|
|
36
|
+
if (source != null && __getOwnPropSymbols)
|
|
37
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
38
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
39
|
+
target[prop] = source[prop];
|
|
40
|
+
}
|
|
41
|
+
return target;
|
|
42
|
+
};
|
|
43
|
+
const Icon = (_a) => {
|
|
44
|
+
var _b = _a, {
|
|
45
|
+
name,
|
|
46
|
+
size = "centi",
|
|
47
|
+
type,
|
|
48
|
+
style,
|
|
49
|
+
fontColor = "dark",
|
|
50
|
+
colorVariant,
|
|
51
|
+
colorTone = "medium"
|
|
52
|
+
} = _b, rest = __objRest(_b, [
|
|
53
|
+
"name",
|
|
54
|
+
"size",
|
|
55
|
+
"type",
|
|
56
|
+
"style",
|
|
57
|
+
"fontColor",
|
|
58
|
+
"colorVariant",
|
|
59
|
+
"colorTone"
|
|
60
|
+
]);
|
|
61
|
+
const theme = react.useTheme();
|
|
62
|
+
const color = helpers.getIconColor(colorVariant, colorTone, fontColor, theme);
|
|
63
|
+
const RNVIcon = helpers.getIconComponent(type, size);
|
|
64
|
+
return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Suspense, {
|
|
65
|
+
fallback: /* @__PURE__ */ React__default["default"].createElement(reactNative.Text, null, " ")
|
|
66
|
+
}, /* @__PURE__ */ React__default["default"].createElement(RNVIcon, __spreadProps(__spreadValues({}, rest), {
|
|
67
|
+
style,
|
|
68
|
+
name,
|
|
69
|
+
color
|
|
70
|
+
})));
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
module.exports = Icon;
|
|
74
|
+
//# sourceMappingURL=Icon.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.cjs","sources":["../../../../src/components/atoms/Icon/Icon.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleProp, TextStyle, Text } from 'react-native';\nimport { useTheme } from '@emotion/react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport { getIconColor, getIconComponent } from './helpers';\n\nexport interface IconProps {\n /** Name of the icon. You must use the same icons from react-native-vector-icons */\n name: string;\n /** Default icon sizes from theme */\n size?: IconSizeType;\n /** Icon family. You must use the same icons from react-native-vector-icons */\n type: IconType;\n /** Font theme fill color */\n fontColor?: FontColorType;\n /** Palette theme fill color */\n colorVariant?: ColorType;\n /** Palette theme gradation fill color */\n colorTone?: ColorGradationType;\n style?: StyleProp<TextStyle>;\n}\n\n/** NOTE: When using colors, the order matters if you're trying to merge multiple types. */\nconst Icon: FC<IconProps> = ({\n name,\n size = 'centi',\n type,\n style,\n fontColor = 'dark',\n colorVariant,\n colorTone = 'medium',\n ...rest\n}) => {\n const theme = useTheme() as ThemeProp;\n const color = getIconColor(colorVariant, colorTone, fontColor, theme);\n const RNVIcon = getIconComponent(type, size);\n\n return (\n <React.Suspense fallback={<Text> </Text>}>\n <RNVIcon {...rest} style={style} name={name} color={color} />\n </React.Suspense>\n );\n};\n\nexport default Icon;\n"],"names":["useTheme","getIconColor","getIconComponent","React","Text"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BM,MAAA,IAAA,GAAsB,CAAC,EASvB,KAAA;AATuB,EAC3B,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,IAAA;AAAA,IACA,IAAO,GAAA,OAAA;AAAA,IACP,IAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAY,GAAA,MAAA;AAAA,IACZ,YAAA;AAAA,IACA,SAAY,GAAA,QAAA;AAAA,GArCd,GA8B6B,EAQxB,EAAA,IAAA,GAAA,SAAA,CARwB,EAQxB,EAAA;AAAA,IAPH,MAAA;AAAA,IACA,MAAA;AAAA,IACA,MAAA;AAAA,IACA,OAAA;AAAA,IACA,WAAA;AAAA,IACA,cAAA;AAAA,IACA,WAAA;AAAA,GAAA,CAAA,CAAA;AAGA,EAAA,MAAM,QAAQA,cAAS,EAAA,CAAA;AACvB,EAAA,MAAM,KAAQ,GAAAC,oBAAA,CAAa,YAAc,EAAA,SAAA,EAAW,WAAW,KAAK,CAAA,CAAA;AACpE,EAAM,MAAA,OAAA,GAAUC,wBAAiB,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAE3C,EACE,uBAAAC,yBAAA,CAAA,aAAA,CAACA,0BAAM,QAAN,EAAA;AAAA,IAAe,QAAA,kBAAWA,yBAAA,CAAA,aAAA,CAAAC,gBAAA,EAAA,IAAA,EAAK,GAAC,CAAA;AAAA,GAC/B,kBAAAD,yBAAA,CAAA,aAAA,CAAC,0CAAY,IAAZ,CAAA,EAAA;AAAA,IAAkB,KAAA;AAAA,IAAc,IAAA;AAAA,IAAY,KAAA;AAAA,GAAA,CAAc,CAC7D,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
import { useTheme } from '@emotion/react';
|
|
4
|
+
import { getIconColor, getIconComponent } from './helpers.mjs';
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defProps = Object.defineProperties;
|
|
8
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
const Icon = (_a) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
name,
|
|
40
|
+
size = "centi",
|
|
41
|
+
type,
|
|
42
|
+
style,
|
|
43
|
+
fontColor = "dark",
|
|
44
|
+
colorVariant,
|
|
45
|
+
colorTone = "medium"
|
|
46
|
+
} = _b, rest = __objRest(_b, [
|
|
47
|
+
"name",
|
|
48
|
+
"size",
|
|
49
|
+
"type",
|
|
50
|
+
"style",
|
|
51
|
+
"fontColor",
|
|
52
|
+
"colorVariant",
|
|
53
|
+
"colorTone"
|
|
54
|
+
]);
|
|
55
|
+
const theme = useTheme();
|
|
56
|
+
const color = getIconColor(colorVariant, colorTone, fontColor, theme);
|
|
57
|
+
const RNVIcon = getIconComponent(type, size);
|
|
58
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Suspense, {
|
|
59
|
+
fallback: /* @__PURE__ */ React__default.createElement(Text, null, " ")
|
|
60
|
+
}, /* @__PURE__ */ React__default.createElement(RNVIcon, __spreadProps(__spreadValues({}, rest), {
|
|
61
|
+
style,
|
|
62
|
+
name,
|
|
63
|
+
color
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { Icon as default };
|
|
68
|
+
//# sourceMappingURL=Icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.mjs","sources":["../../../../src/components/atoms/Icon/Icon.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleProp, TextStyle, Text } from 'react-native';\nimport { useTheme } from '@emotion/react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport { getIconColor, getIconComponent } from './helpers';\n\nexport interface IconProps {\n /** Name of the icon. You must use the same icons from react-native-vector-icons */\n name: string;\n /** Default icon sizes from theme */\n size?: IconSizeType;\n /** Icon family. You must use the same icons from react-native-vector-icons */\n type: IconType;\n /** Font theme fill color */\n fontColor?: FontColorType;\n /** Palette theme fill color */\n colorVariant?: ColorType;\n /** Palette theme gradation fill color */\n colorTone?: ColorGradationType;\n style?: StyleProp<TextStyle>;\n}\n\n/** NOTE: When using colors, the order matters if you're trying to merge multiple types. */\nconst Icon: FC<IconProps> = ({\n name,\n size = 'centi',\n type,\n style,\n fontColor = 'dark',\n colorVariant,\n colorTone = 'medium',\n ...rest\n}) => {\n const theme = useTheme() as ThemeProp;\n const color = getIconColor(colorVariant, colorTone, fontColor, theme);\n const RNVIcon = getIconComponent(type, size);\n\n return (\n <React.Suspense fallback={<Text> </Text>}>\n <RNVIcon {...rest} style={style} name={name} color={color} />\n </React.Suspense>\n );\n};\n\nexport default Icon;\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BM,MAAA,IAAA,GAAsB,CAAC,EASvB,KAAA;AATuB,EAC3B,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,IAAA;AAAA,IACA,IAAO,GAAA,OAAA;AAAA,IACP,IAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAY,GAAA,MAAA;AAAA,IACZ,YAAA;AAAA,IACA,SAAY,GAAA,QAAA;AAAA,GArCd,GA8B6B,EAQxB,EAAA,IAAA,GAAA,SAAA,CARwB,EAQxB,EAAA;AAAA,IAPH,MAAA;AAAA,IACA,MAAA;AAAA,IACA,MAAA;AAAA,IACA,OAAA;AAAA,IACA,WAAA;AAAA,IACA,cAAA;AAAA,IACA,WAAA;AAAA,GAAA,CAAA,CAAA;AAGA,EAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,EAAA,MAAM,KAAQ,GAAA,YAAA,CAAa,YAAc,EAAA,SAAA,EAAW,WAAW,KAAK,CAAA,CAAA;AACpE,EAAM,MAAA,OAAA,GAAU,gBAAiB,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAE3C,EACE,uBAAAA,cAAA,CAAA,aAAA,CAACA,eAAM,QAAN,EAAA;AAAA,IAAe,QAAA,kBAAWA,cAAA,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,EAAK,GAAC,CAAA;AAAA,GAC/B,kBAAAA,cAAA,CAAA,aAAA,CAAC,0CAAY,IAAZ,CAAA,EAAA;AAAA,IAAkB,KAAA;AAAA,IAAc,IAAA;AAAA,IAAY,KAAA;AAAA,GAAA,CAAc,CAC7D,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var styled = require('@emotion/native');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
29
|
+
|
|
30
|
+
const customIcons = {};
|
|
31
|
+
const getStyledIcon = (Component, size) => styled__default["default"](Component)`
|
|
32
|
+
font-size: ${({ theme }) => theme.iconSize[size]};
|
|
33
|
+
text-align: center;
|
|
34
|
+
`;
|
|
35
|
+
const getIconComponent = (type, size) => {
|
|
36
|
+
switch (type) {
|
|
37
|
+
case "zocial":
|
|
38
|
+
const Zocial = React.lazy(
|
|
39
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Zocial')); })
|
|
40
|
+
);
|
|
41
|
+
return getStyledIcon(Zocial, size);
|
|
42
|
+
case "octicon":
|
|
43
|
+
const Octicons = React.lazy(
|
|
44
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Octicons')); })
|
|
45
|
+
);
|
|
46
|
+
return getStyledIcon(Octicons, size);
|
|
47
|
+
case "material":
|
|
48
|
+
const Material = React.lazy(
|
|
49
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/MaterialIcons')); })
|
|
50
|
+
);
|
|
51
|
+
return getStyledIcon(Material, size);
|
|
52
|
+
case "material-community":
|
|
53
|
+
const MaterialCommunity = React.lazy(
|
|
54
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/MaterialCommunityIcons')); })
|
|
55
|
+
);
|
|
56
|
+
return getStyledIcon(MaterialCommunity, size);
|
|
57
|
+
case "ionicon":
|
|
58
|
+
const Ionicons = React.lazy(
|
|
59
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Ionicons')); })
|
|
60
|
+
);
|
|
61
|
+
return getStyledIcon(Ionicons, size);
|
|
62
|
+
case "foundation":
|
|
63
|
+
const Foundation = React.lazy(
|
|
64
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Foundation')); })
|
|
65
|
+
);
|
|
66
|
+
return getStyledIcon(Foundation, size);
|
|
67
|
+
case "evilicon":
|
|
68
|
+
const EvilIcons = React.lazy(
|
|
69
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/EvilIcons')); })
|
|
70
|
+
);
|
|
71
|
+
return getStyledIcon(EvilIcons, size);
|
|
72
|
+
case "entypo":
|
|
73
|
+
const Entypo = React.lazy(
|
|
74
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Entypo')); })
|
|
75
|
+
);
|
|
76
|
+
return getStyledIcon(Entypo, size);
|
|
77
|
+
case "font-awesome":
|
|
78
|
+
const FontAwesome = React.lazy(
|
|
79
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/FontAwesome')); })
|
|
80
|
+
);
|
|
81
|
+
return getStyledIcon(FontAwesome, size);
|
|
82
|
+
case "font-awesome-5":
|
|
83
|
+
const FontAwesome5 = React.lazy(
|
|
84
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/FontAwesome5')); })
|
|
85
|
+
);
|
|
86
|
+
return getStyledIcon(FontAwesome5, size);
|
|
87
|
+
case "simple-line-icon":
|
|
88
|
+
const SimpleLineIcons = React.lazy(
|
|
89
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/SimpleLineIcons')); })
|
|
90
|
+
);
|
|
91
|
+
return getStyledIcon(SimpleLineIcons, size);
|
|
92
|
+
case "feather":
|
|
93
|
+
const Feather = React.lazy(
|
|
94
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Feather')); })
|
|
95
|
+
);
|
|
96
|
+
return getStyledIcon(Feather, size);
|
|
97
|
+
case "antdesign":
|
|
98
|
+
case "ant-design":
|
|
99
|
+
const AntDesign = React.lazy(
|
|
100
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/AntDesign')); })
|
|
101
|
+
);
|
|
102
|
+
return getStyledIcon(AntDesign, size);
|
|
103
|
+
case "fontisto":
|
|
104
|
+
const Fontisto = React.lazy(
|
|
105
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/Fontisto')); })
|
|
106
|
+
);
|
|
107
|
+
return getStyledIcon(Fontisto, size);
|
|
108
|
+
default:
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(customIcons, type)) {
|
|
110
|
+
return getStyledIcon(customIcons[type], size);
|
|
111
|
+
}
|
|
112
|
+
const MaterialIcons = React.lazy(
|
|
113
|
+
async () => await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-native-vector-icons/dist/MaterialIcons')); })
|
|
114
|
+
);
|
|
115
|
+
return getStyledIcon(MaterialIcons, size);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const getIconColor = (colorVariant, colorGradation, fontColor, theme) => {
|
|
119
|
+
if (colorVariant && colorGradation) {
|
|
120
|
+
return theme.color[colorVariant][colorGradation];
|
|
121
|
+
}
|
|
122
|
+
return theme.font.color[fontColor];
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
exports.getIconColor = getIconColor;
|
|
126
|
+
exports.getIconComponent = getIconComponent;
|
|
127
|
+
//# sourceMappingURL=helpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.cjs","sources":["../../../../src/components/atoms/Icon/helpers.ts"],"sourcesContent":["import { lazy } from 'react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport styled from '@emotion/native';\n\n/* eslint-disable */\nconst customIcons: any = {};\n\nexport const registerCustomIconType = (id: string, customIcon: any) => {\n customIcons[id] = customIcon;\n};\n\nconst getStyledIcon = (Component, size) => styled(Component)`\n font-size: ${({ theme }) => theme.iconSize[size]};\n text-align: center;\n`;\n\nexport const getIconComponent = (type: IconType, size: IconSizeType): any => {\n switch (type) {\n case 'zocial':\n const Zocial = lazy(\n async () => await import('react-native-vector-icons/dist/Zocial')\n );\n return getStyledIcon(Zocial, size);\n case 'octicon':\n const Octicons = lazy(\n async () => await import('react-native-vector-icons/dist/Octicons')\n );\n return getStyledIcon(Octicons, size);\n case 'material':\n const Material = lazy(\n async () => await import('react-native-vector-icons/dist/MaterialIcons')\n );\n return getStyledIcon(Material, size);\n case 'material-community':\n const MaterialCommunity = lazy(\n async () =>\n await import('react-native-vector-icons/dist/MaterialCommunityIcons')\n );\n return getStyledIcon(MaterialCommunity, size);\n case 'ionicon':\n const Ionicons = lazy(\n async () => await import('react-native-vector-icons/dist/Ionicons')\n );\n return getStyledIcon(Ionicons, size);\n case 'foundation':\n const Foundation = lazy(\n async () => await import('react-native-vector-icons/dist/Foundation')\n );\n return getStyledIcon(Foundation, size);\n case 'evilicon':\n const EvilIcons = lazy(\n async () => await import('react-native-vector-icons/dist/EvilIcons')\n );\n return getStyledIcon(EvilIcons, size);\n case 'entypo':\n const Entypo = lazy(\n async () => await import('react-native-vector-icons/dist/Entypo')\n );\n return getStyledIcon(Entypo, size);\n case 'font-awesome':\n const FontAwesome = lazy(\n async () => await import('react-native-vector-icons/dist/FontAwesome')\n );\n return getStyledIcon(FontAwesome, size);\n case 'font-awesome-5':\n const FontAwesome5 = lazy(\n async () => await import('react-native-vector-icons/dist/FontAwesome5')\n );\n return getStyledIcon(FontAwesome5, size);\n case 'simple-line-icon':\n const SimpleLineIcons = lazy(\n async () =>\n await import('react-native-vector-icons/dist/SimpleLineIcons')\n );\n return getStyledIcon(SimpleLineIcons, size);\n case 'feather':\n const Feather = lazy(\n async () => await import('react-native-vector-icons/dist/Feather')\n );\n return getStyledIcon(Feather, size);\n case 'antdesign':\n case 'ant-design':\n const AntDesign = lazy(\n async () => await import('react-native-vector-icons/dist/AntDesign')\n );\n return getStyledIcon(AntDesign, size);\n case 'fontisto':\n const Fontisto = lazy(\n async () => await import('react-native-vector-icons/dist/Fontisto')\n );\n return getStyledIcon(Fontisto, size);\n default:\n if (Object.prototype.hasOwnProperty.call(customIcons, type)) {\n return getStyledIcon(customIcons[type], size);\n }\n const MaterialIcons = lazy(\n async () => await import('react-native-vector-icons/dist/MaterialIcons')\n );\n return getStyledIcon(MaterialIcons, size);\n }\n};\n/* eslint-enable */\nexport const getIconColor = (\n colorVariant: ColorType | undefined,\n colorGradation: ColorGradationType | undefined,\n fontColor: FontColorType,\n theme: ThemeProp\n): string => {\n if (colorVariant && colorGradation) {\n return theme.color[colorVariant][colorGradation];\n }\n return theme.font.color[fontColor];\n};\n"],"names":["styled","lazy"],"mappings":"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"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import styled from '@emotion/native';
|
|
3
|
+
|
|
4
|
+
const customIcons = {};
|
|
5
|
+
const getStyledIcon = (Component, size) => styled(Component)`
|
|
6
|
+
font-size: ${({ theme }) => theme.iconSize[size]};
|
|
7
|
+
text-align: center;
|
|
8
|
+
`;
|
|
9
|
+
const getIconComponent = (type, size) => {
|
|
10
|
+
switch (type) {
|
|
11
|
+
case "zocial":
|
|
12
|
+
const Zocial = lazy(
|
|
13
|
+
async () => await import('react-native-vector-icons/dist/Zocial')
|
|
14
|
+
);
|
|
15
|
+
return getStyledIcon(Zocial, size);
|
|
16
|
+
case "octicon":
|
|
17
|
+
const Octicons = lazy(
|
|
18
|
+
async () => await import('react-native-vector-icons/dist/Octicons')
|
|
19
|
+
);
|
|
20
|
+
return getStyledIcon(Octicons, size);
|
|
21
|
+
case "material":
|
|
22
|
+
const Material = lazy(
|
|
23
|
+
async () => await import('react-native-vector-icons/dist/MaterialIcons')
|
|
24
|
+
);
|
|
25
|
+
return getStyledIcon(Material, size);
|
|
26
|
+
case "material-community":
|
|
27
|
+
const MaterialCommunity = lazy(
|
|
28
|
+
async () => await import('react-native-vector-icons/dist/MaterialCommunityIcons')
|
|
29
|
+
);
|
|
30
|
+
return getStyledIcon(MaterialCommunity, size);
|
|
31
|
+
case "ionicon":
|
|
32
|
+
const Ionicons = lazy(
|
|
33
|
+
async () => await import('react-native-vector-icons/dist/Ionicons')
|
|
34
|
+
);
|
|
35
|
+
return getStyledIcon(Ionicons, size);
|
|
36
|
+
case "foundation":
|
|
37
|
+
const Foundation = lazy(
|
|
38
|
+
async () => await import('react-native-vector-icons/dist/Foundation')
|
|
39
|
+
);
|
|
40
|
+
return getStyledIcon(Foundation, size);
|
|
41
|
+
case "evilicon":
|
|
42
|
+
const EvilIcons = lazy(
|
|
43
|
+
async () => await import('react-native-vector-icons/dist/EvilIcons')
|
|
44
|
+
);
|
|
45
|
+
return getStyledIcon(EvilIcons, size);
|
|
46
|
+
case "entypo":
|
|
47
|
+
const Entypo = lazy(
|
|
48
|
+
async () => await import('react-native-vector-icons/dist/Entypo')
|
|
49
|
+
);
|
|
50
|
+
return getStyledIcon(Entypo, size);
|
|
51
|
+
case "font-awesome":
|
|
52
|
+
const FontAwesome = lazy(
|
|
53
|
+
async () => await import('react-native-vector-icons/dist/FontAwesome')
|
|
54
|
+
);
|
|
55
|
+
return getStyledIcon(FontAwesome, size);
|
|
56
|
+
case "font-awesome-5":
|
|
57
|
+
const FontAwesome5 = lazy(
|
|
58
|
+
async () => await import('react-native-vector-icons/dist/FontAwesome5')
|
|
59
|
+
);
|
|
60
|
+
return getStyledIcon(FontAwesome5, size);
|
|
61
|
+
case "simple-line-icon":
|
|
62
|
+
const SimpleLineIcons = lazy(
|
|
63
|
+
async () => await import('react-native-vector-icons/dist/SimpleLineIcons')
|
|
64
|
+
);
|
|
65
|
+
return getStyledIcon(SimpleLineIcons, size);
|
|
66
|
+
case "feather":
|
|
67
|
+
const Feather = lazy(
|
|
68
|
+
async () => await import('react-native-vector-icons/dist/Feather')
|
|
69
|
+
);
|
|
70
|
+
return getStyledIcon(Feather, size);
|
|
71
|
+
case "antdesign":
|
|
72
|
+
case "ant-design":
|
|
73
|
+
const AntDesign = lazy(
|
|
74
|
+
async () => await import('react-native-vector-icons/dist/AntDesign')
|
|
75
|
+
);
|
|
76
|
+
return getStyledIcon(AntDesign, size);
|
|
77
|
+
case "fontisto":
|
|
78
|
+
const Fontisto = lazy(
|
|
79
|
+
async () => await import('react-native-vector-icons/dist/Fontisto')
|
|
80
|
+
);
|
|
81
|
+
return getStyledIcon(Fontisto, size);
|
|
82
|
+
default:
|
|
83
|
+
if (Object.prototype.hasOwnProperty.call(customIcons, type)) {
|
|
84
|
+
return getStyledIcon(customIcons[type], size);
|
|
85
|
+
}
|
|
86
|
+
const MaterialIcons = lazy(
|
|
87
|
+
async () => await import('react-native-vector-icons/dist/MaterialIcons')
|
|
88
|
+
);
|
|
89
|
+
return getStyledIcon(MaterialIcons, size);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const getIconColor = (colorVariant, colorGradation, fontColor, theme) => {
|
|
93
|
+
if (colorVariant && colorGradation) {
|
|
94
|
+
return theme.color[colorVariant][colorGradation];
|
|
95
|
+
}
|
|
96
|
+
return theme.font.color[fontColor];
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export { getIconColor, getIconComponent };
|
|
100
|
+
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.mjs","sources":["../../../../src/components/atoms/Icon/helpers.ts"],"sourcesContent":["import { lazy } from 'react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n IconSizeType,\n IconType,\n ThemeProp,\n} from '@tecsinapse/react-core';\nimport styled from '@emotion/native';\n\n/* eslint-disable */\nconst customIcons: any = {};\n\nexport const registerCustomIconType = (id: string, customIcon: any) => {\n customIcons[id] = customIcon;\n};\n\nconst getStyledIcon = (Component, size) => styled(Component)`\n font-size: ${({ theme }) => theme.iconSize[size]};\n text-align: center;\n`;\n\nexport const getIconComponent = (type: IconType, size: IconSizeType): any => {\n switch (type) {\n case 'zocial':\n const Zocial = lazy(\n async () => await import('react-native-vector-icons/dist/Zocial')\n );\n return getStyledIcon(Zocial, size);\n case 'octicon':\n const Octicons = lazy(\n async () => await import('react-native-vector-icons/dist/Octicons')\n );\n return getStyledIcon(Octicons, size);\n case 'material':\n const Material = lazy(\n async () => await import('react-native-vector-icons/dist/MaterialIcons')\n );\n return getStyledIcon(Material, size);\n case 'material-community':\n const MaterialCommunity = lazy(\n async () =>\n await import('react-native-vector-icons/dist/MaterialCommunityIcons')\n );\n return getStyledIcon(MaterialCommunity, size);\n case 'ionicon':\n const Ionicons = lazy(\n async () => await import('react-native-vector-icons/dist/Ionicons')\n );\n return getStyledIcon(Ionicons, size);\n case 'foundation':\n const Foundation = lazy(\n async () => await import('react-native-vector-icons/dist/Foundation')\n );\n return getStyledIcon(Foundation, size);\n case 'evilicon':\n const EvilIcons = lazy(\n async () => await import('react-native-vector-icons/dist/EvilIcons')\n );\n return getStyledIcon(EvilIcons, size);\n case 'entypo':\n const Entypo = lazy(\n async () => await import('react-native-vector-icons/dist/Entypo')\n );\n return getStyledIcon(Entypo, size);\n case 'font-awesome':\n const FontAwesome = lazy(\n async () => await import('react-native-vector-icons/dist/FontAwesome')\n );\n return getStyledIcon(FontAwesome, size);\n case 'font-awesome-5':\n const FontAwesome5 = lazy(\n async () => await import('react-native-vector-icons/dist/FontAwesome5')\n );\n return getStyledIcon(FontAwesome5, size);\n case 'simple-line-icon':\n const SimpleLineIcons = lazy(\n async () =>\n await import('react-native-vector-icons/dist/SimpleLineIcons')\n );\n return getStyledIcon(SimpleLineIcons, size);\n case 'feather':\n const Feather = lazy(\n async () => await import('react-native-vector-icons/dist/Feather')\n );\n return getStyledIcon(Feather, size);\n case 'antdesign':\n case 'ant-design':\n const AntDesign = lazy(\n async () => await import('react-native-vector-icons/dist/AntDesign')\n );\n return getStyledIcon(AntDesign, size);\n case 'fontisto':\n const Fontisto = lazy(\n async () => await import('react-native-vector-icons/dist/Fontisto')\n );\n return getStyledIcon(Fontisto, size);\n default:\n if (Object.prototype.hasOwnProperty.call(customIcons, type)) {\n return getStyledIcon(customIcons[type], size);\n }\n const MaterialIcons = lazy(\n async () => await import('react-native-vector-icons/dist/MaterialIcons')\n );\n return getStyledIcon(MaterialIcons, size);\n }\n};\n/* eslint-enable */\nexport const getIconColor = (\n colorVariant: ColorType | undefined,\n colorGradation: ColorGradationType | undefined,\n fontColor: FontColorType,\n theme: ThemeProp\n): string => {\n if (colorVariant && colorGradation) {\n return theme.color[colorVariant][colorGradation];\n }\n return theme.font.color[fontColor];\n};\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var Text = require('../Text/Text.cjs');
|
|
5
|
+
var styled = require('./styled.cjs');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
|
|
11
|
+
const Hint = ({ variant, text, TextComponent = Text }) => {
|
|
12
|
+
let color;
|
|
13
|
+
let icon;
|
|
14
|
+
switch (variant) {
|
|
15
|
+
case "default":
|
|
16
|
+
color = "secondary";
|
|
17
|
+
break;
|
|
18
|
+
case "error":
|
|
19
|
+
color = "error";
|
|
20
|
+
icon = "close-circle-outline";
|
|
21
|
+
break;
|
|
22
|
+
case "success":
|
|
23
|
+
color = "success";
|
|
24
|
+
icon = "checkmark-circle-outline";
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ React__default["default"].createElement(styled.StyledHintContainer, null, icon && /* @__PURE__ */ React__default["default"].createElement(styled.StyledHintIcon, {
|
|
28
|
+
name: icon,
|
|
29
|
+
type: "ionicon",
|
|
30
|
+
size: "centi",
|
|
31
|
+
colorVariant: color
|
|
32
|
+
}), /* @__PURE__ */ React__default["default"].createElement(TextComponent, {
|
|
33
|
+
typography: "label",
|
|
34
|
+
colorVariant: color
|
|
35
|
+
}, text));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
module.exports = Hint;
|
|
39
|
+
//# sourceMappingURL=Hint.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hint.cjs","sources":["../../../../src/components/atoms/Input/Hint.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { ColorType } from '../../../types/defaults';\nimport { InputVariantType } from '../Input';\nimport { Text, TextProps } from '../Text';\nimport { StyledHintContainer, StyledHintIcon } from './styled';\n\ninterface HintProps {\n text?: string;\n variant: InputVariantType;\n TextComponent?: FC<TextProps>;\n}\n\nconst Hint: FC<HintProps> = ({ variant, text, TextComponent = Text }) => {\n let color: ColorType;\n let icon;\n\n switch (variant) {\n case 'default':\n color = 'secondary';\n break;\n case 'error':\n color = 'error';\n icon = 'close-circle-outline';\n break;\n case 'success':\n color = 'success';\n icon = 'checkmark-circle-outline';\n break;\n }\n\n return (\n <StyledHintContainer>\n {icon && (\n <StyledHintIcon\n name={icon}\n type=\"ionicon\"\n size=\"centi\"\n colorVariant={color}\n />\n )}\n <TextComponent typography=\"label\" colorVariant={color}>\n {text}\n </TextComponent>\n </StyledHintContainer>\n );\n};\n\nexport default Hint;\n"],"names":["React","StyledHintContainer","StyledHintIcon"],"mappings":";;;;;;;;;;AAYA,MAAM,OAAsB,CAAC,EAAE,SAAS,IAAM,EAAA,aAAA,GAAgB,MAAW,KAAA;AACvE,EAAI,IAAA,KAAA,CAAA;AACJ,EAAI,IAAA,IAAA,CAAA;AAEJ,EAAA,QAAQ,OAAS;AAAA,IACf,KAAK,SAAA;AACH,MAAQ,KAAA,GAAA,WAAA,CAAA;AACR,MAAA,MAAA;AAAA,IACF,KAAK,OAAA;AACH,MAAQ,KAAA,GAAA,OAAA,CAAA;AACR,MAAO,IAAA,GAAA,sBAAA,CAAA;AACP,MAAA,MAAA;AAAA,IACF,KAAK,SAAA;AACH,MAAQ,KAAA,GAAA,SAAA,CAAA;AACR,MAAO,IAAA,GAAA,0BAAA,CAAA;AACP,MAAA,MAAA;AAAA,GACJ;AAEA,EACE,uBAAAA,yBAAA,CAAA,aAAA,CAACC,0BACE,EAAA,IAAA,EAAA,IAAA,oBACED,yBAAA,CAAA,aAAA,CAAAE,qBAAA,EAAA;AAAA,IACC,IAAM,EAAA,IAAA;AAAA,IACN,IAAK,EAAA,SAAA;AAAA,IACL,IAAK,EAAA,OAAA;AAAA,IACL,YAAc,EAAA,KAAA;AAAA,GAChB,mBAEDF,yBAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IAAc,UAAW,EAAA,OAAA;AAAA,IAAQ,YAAc,EAAA,KAAA;AAAA,GAAA,EAC7C,IACH,CACF,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import Text from '../Text/Text.mjs';
|
|
3
|
+
import { StyledHintContainer, StyledHintIcon } from './styled.mjs';
|
|
4
|
+
|
|
5
|
+
const Hint = ({ variant, text, TextComponent = Text }) => {
|
|
6
|
+
let color;
|
|
7
|
+
let icon;
|
|
8
|
+
switch (variant) {
|
|
9
|
+
case "default":
|
|
10
|
+
color = "secondary";
|
|
11
|
+
break;
|
|
12
|
+
case "error":
|
|
13
|
+
color = "error";
|
|
14
|
+
icon = "close-circle-outline";
|
|
15
|
+
break;
|
|
16
|
+
case "success":
|
|
17
|
+
color = "success";
|
|
18
|
+
icon = "checkmark-circle-outline";
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ React__default.createElement(StyledHintContainer, null, icon && /* @__PURE__ */ React__default.createElement(StyledHintIcon, {
|
|
22
|
+
name: icon,
|
|
23
|
+
type: "ionicon",
|
|
24
|
+
size: "centi",
|
|
25
|
+
colorVariant: color
|
|
26
|
+
}), /* @__PURE__ */ React__default.createElement(TextComponent, {
|
|
27
|
+
typography: "label",
|
|
28
|
+
colorVariant: color
|
|
29
|
+
}, text));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { Hint as default };
|
|
33
|
+
//# sourceMappingURL=Hint.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hint.mjs","sources":["../../../../src/components/atoms/Input/Hint.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { ColorType } from '../../../types/defaults';\nimport { InputVariantType } from '../Input';\nimport { Text, TextProps } from '../Text';\nimport { StyledHintContainer, StyledHintIcon } from './styled';\n\ninterface HintProps {\n text?: string;\n variant: InputVariantType;\n TextComponent?: FC<TextProps>;\n}\n\nconst Hint: FC<HintProps> = ({ variant, text, TextComponent = Text }) => {\n let color: ColorType;\n let icon;\n\n switch (variant) {\n case 'default':\n color = 'secondary';\n break;\n case 'error':\n color = 'error';\n icon = 'close-circle-outline';\n break;\n case 'success':\n color = 'success';\n icon = 'checkmark-circle-outline';\n break;\n }\n\n return (\n <StyledHintContainer>\n {icon && (\n <StyledHintIcon\n name={icon}\n type=\"ionicon\"\n size=\"centi\"\n colorVariant={color}\n />\n )}\n <TextComponent typography=\"label\" colorVariant={color}>\n {text}\n </TextComponent>\n </StyledHintContainer>\n );\n};\n\nexport default Hint;\n"],"names":["React"],"mappings":";;;;AAYA,MAAM,OAAsB,CAAC,EAAE,SAAS,IAAM,EAAA,aAAA,GAAgB,MAAW,KAAA;AACvE,EAAI,IAAA,KAAA,CAAA;AACJ,EAAI,IAAA,IAAA,CAAA;AAEJ,EAAA,QAAQ,OAAS;AAAA,IACf,KAAK,SAAA;AACH,MAAQ,KAAA,GAAA,WAAA,CAAA;AACR,MAAA,MAAA;AAAA,IACF,KAAK,OAAA;AACH,MAAQ,KAAA,GAAA,OAAA,CAAA;AACR,MAAO,IAAA,GAAA,sBAAA,CAAA;AACP,MAAA,MAAA;AAAA,IACF,KAAK,SAAA;AACH,MAAQ,KAAA,GAAA,SAAA,CAAA;AACR,MAAO,IAAA,GAAA,0BAAA,CAAA;AACP,MAAA,MAAA;AAAA,GACJ;AAEA,EACE,uBAAAA,cAAA,CAAA,aAAA,CAAC,mBACE,EAAA,IAAA,EAAA,IAAA,oBACEA,cAAA,CAAA,aAAA,CAAA,cAAA,EAAA;AAAA,IACC,IAAM,EAAA,IAAA;AAAA,IACN,IAAK,EAAA,SAAA;AAAA,IACL,IAAK,EAAA,OAAA;AAAA,IACL,YAAc,EAAA,KAAA;AAAA,GAChB,mBAEDA,cAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IAAc,UAAW,EAAA,OAAA;AAAA,IAAQ,YAAc,EAAA,KAAA;AAAA,GAAA,EAC7C,IACH,CACF,CAAA,CAAA;AAEJ;;;;"}
|