@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,86 @@
|
|
|
1
|
+
import React__default, { useState, useCallback } from 'react';
|
|
2
|
+
import { Animated } from 'react-native';
|
|
3
|
+
import PressableSurface from '../PressableSurface/PressableSurface.mjs';
|
|
4
|
+
import { StyledTagContainer, StyledLeftIcon, StyledCloseIcon } from './styled.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 Tag = (_a) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
value,
|
|
40
|
+
icon,
|
|
41
|
+
variant = "small",
|
|
42
|
+
dismiss: canDismiss = false,
|
|
43
|
+
onDismiss,
|
|
44
|
+
style
|
|
45
|
+
} = _b, rest = __objRest(_b, [
|
|
46
|
+
"value",
|
|
47
|
+
"icon",
|
|
48
|
+
"variant",
|
|
49
|
+
"dismiss",
|
|
50
|
+
"onDismiss",
|
|
51
|
+
"style"
|
|
52
|
+
]);
|
|
53
|
+
const [dismiss, setDismiss] = useState(false);
|
|
54
|
+
const fadeAnim = React__default.useRef(new Animated.Value(1)).current;
|
|
55
|
+
const duration = 300;
|
|
56
|
+
const fadeOut = () => {
|
|
57
|
+
Animated.timing(fadeAnim, {
|
|
58
|
+
toValue: 0,
|
|
59
|
+
duration,
|
|
60
|
+
useNativeDriver: true
|
|
61
|
+
}).start();
|
|
62
|
+
};
|
|
63
|
+
const handleDismiss = useCallback(() => {
|
|
64
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
65
|
+
fadeOut();
|
|
66
|
+
setTimeout(() => setDismiss(true), duration);
|
|
67
|
+
}, [onDismiss]);
|
|
68
|
+
return /* @__PURE__ */ React__default.createElement(StyledTagContainer, __spreadProps(__spreadValues({}, rest), {
|
|
69
|
+
variant,
|
|
70
|
+
style: [{ opacity: fadeAnim }, style],
|
|
71
|
+
visible: !dismiss
|
|
72
|
+
}), icon && /* @__PURE__ */ React__default.createElement(StyledLeftIcon, __spreadValues({
|
|
73
|
+
size: icon.size || "micro",
|
|
74
|
+
colorVariant: icon.colorVariant || "primary"
|
|
75
|
+
}, icon)), value, canDismiss && /* @__PURE__ */ React__default.createElement(PressableSurface, {
|
|
76
|
+
onPress: handleDismiss
|
|
77
|
+
}, /* @__PURE__ */ React__default.createElement(StyledCloseIcon, {
|
|
78
|
+
name: "close-outline",
|
|
79
|
+
type: "ionicon",
|
|
80
|
+
size: "centi",
|
|
81
|
+
fontColor: "medium"
|
|
82
|
+
})));
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export { Tag as default };
|
|
86
|
+
//# sourceMappingURL=Tag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.mjs","sources":["../../../../src/components/atoms/Tag/Tag.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Animated, ViewProps } from 'react-native';\nimport { IconProps } from '../Icon';\nimport { PressableSurface } from '../PressableSurface';\nimport { StyledCloseIcon, StyledLeftIcon, StyledTagContainer } from './styled';\n\nexport interface TagProps extends ViewProps {\n value: React.ReactNode;\n icon?: IconProps;\n dismiss?: boolean;\n onDismiss?: () => void;\n variant?: 'small' | 'default';\n}\n\nconst Tag: React.FC<TagProps> = ({\n value,\n icon,\n variant = 'small',\n dismiss: canDismiss = false,\n onDismiss,\n style,\n ...rest\n}): JSX.Element => {\n const [dismiss, setDismiss] = useState(false);\n const fadeAnim = React.useRef(new Animated.Value(1)).current;\n const duration = 300;\n\n const fadeOut = () => {\n Animated.timing(fadeAnim, {\n toValue: 0,\n duration,\n useNativeDriver: true,\n }).start();\n };\n\n const handleDismiss = useCallback(() => {\n onDismiss?.();\n fadeOut();\n setTimeout(() => setDismiss(true), duration);\n }, [onDismiss]);\n\n return (\n <StyledTagContainer\n {...rest}\n variant={variant}\n style={[{ opacity: fadeAnim as unknown as number }, style]}\n visible={!dismiss}\n >\n {icon && (\n <StyledLeftIcon\n size={icon.size || 'micro'}\n colorVariant={icon.colorVariant || 'primary'}\n {...icon}\n />\n )}\n {value}\n {canDismiss && (\n <PressableSurface onPress={handleDismiss}>\n <StyledCloseIcon\n name=\"close-outline\"\n type=\"ionicon\"\n size=\"centi\"\n fontColor=\"medium\"\n />\n </PressableSurface>\n )}\n </StyledTagContainer>\n );\n};\n\nexport default Tag;\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM,MAAA,GAAA,GAA0B,CAAC,EAQd,KAAA;AARc,EAC/B,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,KAAA;AAAA,IACA,IAAA;AAAA,IACA,OAAU,GAAA,OAAA;AAAA,IACV,SAAS,UAAa,GAAA,KAAA;AAAA,IACtB,SAAA;AAAA,IACA,KAAA;AAAA,GApBF,GAciC,EAO5B,EAAA,IAAA,GAAA,SAAA,CAP4B,EAO5B,EAAA;AAAA,IANH,OAAA;AAAA,IACA,MAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAA;AAAA,IACA,WAAA;AAAA,IACA,OAAA;AAAA,GAAA,CAAA,CAAA;AAGA,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAI,SAAS,KAAK,CAAA,CAAA;AAC5C,EAAM,MAAA,QAAA,GAAWA,eAAM,MAAO,CAAA,IAAI,SAAS,KAAM,CAAA,CAAC,CAAC,CAAE,CAAA,OAAA,CAAA;AACrD,EAAA,MAAM,QAAW,GAAA,GAAA,CAAA;AAEjB,EAAA,MAAM,UAAU,MAAM;AACpB,IAAA,QAAA,CAAS,OAAO,QAAU,EAAA;AAAA,MACxB,OAAS,EAAA,CAAA;AAAA,MACT,QAAA;AAAA,MACA,eAAiB,EAAA,IAAA;AAAA,KAClB,EAAE,KAAM,EAAA,CAAA;AAAA,GACX,CAAA;AAEA,EAAM,MAAA,aAAA,GAAgB,YAAY,MAAM;AACtC,IAAA,SAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,EAAA,CAAA;AACA,IAAQ,OAAA,EAAA,CAAA;AACR,IAAA,UAAA,CAAW,MAAM,UAAA,CAAW,IAAI,CAAA,EAAG,QAAQ,CAAA,CAAA;AAAA,GAC7C,EAAG,CAAC,SAAS,CAAC,CAAA,CAAA;AAEd,EACE,uBAAAA,cAAA,CAAA,aAAA,CAAC,qDACK,IADL,CAAA,EAAA;AAAA,IAEC,OAAA;AAAA,IACA,OAAO,CAAC,EAAE,OAAS,EAAA,QAAA,IAAiC,KAAK,CAAA;AAAA,IACzD,SAAS,CAAC,OAAA;AAAA,GAAA,CAAA,EAET,wBACEA,cAAA,CAAA,aAAA,CAAA,cAAA,EAAA,cAAA,CAAA;AAAA,IACC,IAAA,EAAM,KAAK,IAAQ,IAAA,OAAA;AAAA,IACnB,YAAA,EAAc,KAAK,YAAgB,IAAA,SAAA;AAAA,GAAA,EAC/B,IACN,CAAA,CAAA,EAED,KACA,EAAA,UAAA,oBACEA,cAAA,CAAA,aAAA,CAAA,gBAAA,EAAA;AAAA,IAAiB,OAAS,EAAA,aAAA;AAAA,GAAA,kBACxBA,cAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,IACC,IAAK,EAAA,eAAA;AAAA,IACL,IAAK,EAAA,SAAA;AAAA,IACL,IAAK,EAAA,OAAA;AAAA,IACL,SAAU,EAAA,QAAA;AAAA,GACZ,CACF,CAEJ,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('@emotion/native');
|
|
6
|
+
var reactNative = require('react-native');
|
|
7
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
+
|
|
13
|
+
const smallVariant = ({ theme, variant }) => variant === "small" && styled.css`
|
|
14
|
+
border-radius: ${theme.borderRadius.micro};
|
|
15
|
+
padding: ${theme.spacing.nano} ${theme.spacing.mili};
|
|
16
|
+
`;
|
|
17
|
+
const defaultVariant = ({ theme, variant }) => variant === "default" && styled.css`
|
|
18
|
+
border-radius: ${theme.borderRadius.mili};
|
|
19
|
+
padding: ${theme.spacing.micro} ${theme.spacing.centi};
|
|
20
|
+
`;
|
|
21
|
+
const StyledTagContainerBase = styled__default["default"](reactNative.Animated.View)`
|
|
22
|
+
background-color: ${({ theme }) => theme.miscellaneous.bodyColor};
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
align-self: center;
|
|
27
|
+
display: ${({ visible }) => visible ? "flex" : "none"};
|
|
28
|
+
`;
|
|
29
|
+
const StyledTagContainer = styled__default["default"](StyledTagContainerBase)(
|
|
30
|
+
(props) => styled.css`
|
|
31
|
+
${smallVariant(props)}
|
|
32
|
+
${defaultVariant(props)}
|
|
33
|
+
`
|
|
34
|
+
);
|
|
35
|
+
const StyledLeftIcon = styled__default["default"](Icon)`
|
|
36
|
+
margin-right: ${({ theme }) => theme.spacing.micro};
|
|
37
|
+
`;
|
|
38
|
+
const StyledCloseIcon = styled__default["default"](Icon)`
|
|
39
|
+
margin-left: ${({ theme }) => theme.spacing.nano};
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
exports.StyledCloseIcon = StyledCloseIcon;
|
|
43
|
+
exports.StyledLeftIcon = StyledLeftIcon;
|
|
44
|
+
exports.StyledTagContainer = StyledTagContainer;
|
|
45
|
+
//# sourceMappingURL=styled.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.cjs","sources":["../../../../src/components/atoms/Tag/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { Animated, ViewProps } from 'react-native';\nimport { StyleProps } from '../../../types/defaults';\nimport { Icon, IconProps } from '../Icon';\nimport { TagProps } from './Tag';\n\nconst smallVariant = ({ theme, variant }: Partial<TagProps> & StyleProps) =>\n variant === 'small' &&\n css`\n border-radius: ${theme.borderRadius.micro};\n padding: ${theme.spacing.nano} ${theme.spacing.mili};\n `;\n\nconst defaultVariant = ({ theme, variant }: Partial<TagProps> & StyleProps) =>\n variant === 'default' &&\n css`\n border-radius: ${theme.borderRadius.mili};\n padding: ${theme.spacing.micro} ${theme.spacing.centi};\n `;\n\nconst StyledTagContainerBase = styled(Animated.View)<\n Partial<TagProps> & Partial<StyleProps> & ViewProps & { visible: boolean }\n>`\n background-color: ${({ theme }) => theme.miscellaneous.bodyColor};\n flex-direction: row;\n justify-content: center;\n align-items: center;\n align-self: center;\n display: ${({ visible }) => (visible ? 'flex' : 'none')};\n`;\n\nexport const StyledTagContainer = styled(StyledTagContainerBase)(\n props => css`\n ${smallVariant(props)}\n ${defaultVariant(props)}\n `\n);\n\nexport const StyledLeftIcon = styled(Icon)<Partial<StyleProps> & IconProps>`\n margin-right: ${({ theme }) => theme.spacing.micro};\n`;\n\nexport const StyledCloseIcon = styled(Icon)<Partial<StyleProps> & IconProps>`\n margin-left: ${({ theme }) => theme.spacing.nano};\n`;\n"],"names":["css","styled","Animated"],"mappings":";;;;;;;;;;;;AAMA,MAAM,eAAe,CAAC,EAAE,OAAO,OAAQ,EAAA,KACrC,YAAY,OACZ,IAAAA,UAAA,CAAA;AAAA,mBAAA,EACmB,MAAM,YAAa,CAAA,KAAA,CAAA;AAAA,aAAA,EACzB,KAAM,CAAA,OAAA,CAAQ,IAAQ,CAAA,CAAA,EAAA,KAAA,CAAM,OAAQ,CAAA,IAAA,CAAA;AAAA,EAAA,CAAA,CAAA;AAGnD,MAAM,iBAAiB,CAAC,EAAE,OAAO,OAAQ,EAAA,KACvC,YAAY,SACZ,IAAAA,UAAA,CAAA;AAAA,mBAAA,EACmB,MAAM,YAAa,CAAA,IAAA,CAAA;AAAA,aAAA,EACzB,KAAM,CAAA,OAAA,CAAQ,KAAS,CAAA,CAAA,EAAA,KAAA,CAAM,OAAQ,CAAA,KAAA,CAAA;AAAA,EAAA,CAAA,CAAA;AAGpD,MAAM,sBAAA,GAAyBC,0BAAO,CAAAC,oBAAA,CAAS,IAAI,CAAA,CAAA;AAAA,oBAAA,EAG7B,CAAC,EAAE,KAAM,EAAA,KAAM,MAAM,aAAc,CAAA,SAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAA,EAK5C,CAAC,EAAE,OAAQ,EAAA,KAAO,UAAU,MAAS,GAAA,MAAA,CAAA;AAAA,CAAA,CAAA;AAGrC,MAAA,kBAAA,GAAqBD,2BAAO,sBAAsB,CAAA;AAAA,EAC7D,CAAS,KAAA,KAAAD,UAAA,CAAA;AAAA,IAAA,EACL,aAAa,KAAK,CAAA,CAAA;AAAA,IAAA,EAClB,eAAe,KAAK,CAAA,CAAA;AAAA,EAAA,CAAA;AAE1B,EAAA;AAEa,MAAA,cAAA,GAAiBC,2BAAO,IAAI,CAAA,CAAA;AAAA,gBAAA,EACvB,CAAC,EAAE,KAAM,EAAA,KAAM,MAAM,OAAQ,CAAA,KAAA,CAAA;AAAA,EAAA;AAGlC,MAAA,eAAA,GAAkBA,2BAAO,IAAI,CAAA,CAAA;AAAA,eAAA,EACzB,CAAC,EAAE,KAAM,EAAA,KAAM,MAAM,OAAQ,CAAA,IAAA,CAAA;AAAA;;;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import styled, { css } from '@emotion/native';
|
|
2
|
+
import { Animated } from 'react-native';
|
|
3
|
+
import Icon from '../Icon/Icon.mjs';
|
|
4
|
+
|
|
5
|
+
const smallVariant = ({ theme, variant }) => variant === "small" && css`
|
|
6
|
+
border-radius: ${theme.borderRadius.micro};
|
|
7
|
+
padding: ${theme.spacing.nano} ${theme.spacing.mili};
|
|
8
|
+
`;
|
|
9
|
+
const defaultVariant = ({ theme, variant }) => variant === "default" && css`
|
|
10
|
+
border-radius: ${theme.borderRadius.mili};
|
|
11
|
+
padding: ${theme.spacing.micro} ${theme.spacing.centi};
|
|
12
|
+
`;
|
|
13
|
+
const StyledTagContainerBase = styled(Animated.View)`
|
|
14
|
+
background-color: ${({ theme }) => theme.miscellaneous.bodyColor};
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
align-self: center;
|
|
19
|
+
display: ${({ visible }) => visible ? "flex" : "none"};
|
|
20
|
+
`;
|
|
21
|
+
const StyledTagContainer = styled(StyledTagContainerBase)(
|
|
22
|
+
(props) => css`
|
|
23
|
+
${smallVariant(props)}
|
|
24
|
+
${defaultVariant(props)}
|
|
25
|
+
`
|
|
26
|
+
);
|
|
27
|
+
const StyledLeftIcon = styled(Icon)`
|
|
28
|
+
margin-right: ${({ theme }) => theme.spacing.micro};
|
|
29
|
+
`;
|
|
30
|
+
const StyledCloseIcon = styled(Icon)`
|
|
31
|
+
margin-left: ${({ theme }) => theme.spacing.nano};
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
export { StyledCloseIcon, StyledLeftIcon, StyledTagContainer };
|
|
35
|
+
//# sourceMappingURL=styled.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.mjs","sources":["../../../../src/components/atoms/Tag/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { Animated, ViewProps } from 'react-native';\nimport { StyleProps } from '../../../types/defaults';\nimport { Icon, IconProps } from '../Icon';\nimport { TagProps } from './Tag';\n\nconst smallVariant = ({ theme, variant }: Partial<TagProps> & StyleProps) =>\n variant === 'small' &&\n css`\n border-radius: ${theme.borderRadius.micro};\n padding: ${theme.spacing.nano} ${theme.spacing.mili};\n `;\n\nconst defaultVariant = ({ theme, variant }: Partial<TagProps> & StyleProps) =>\n variant === 'default' &&\n css`\n border-radius: ${theme.borderRadius.mili};\n padding: ${theme.spacing.micro} ${theme.spacing.centi};\n `;\n\nconst StyledTagContainerBase = styled(Animated.View)<\n Partial<TagProps> & Partial<StyleProps> & ViewProps & { visible: boolean }\n>`\n background-color: ${({ theme }) => theme.miscellaneous.bodyColor};\n flex-direction: row;\n justify-content: center;\n align-items: center;\n align-self: center;\n display: ${({ visible }) => (visible ? 'flex' : 'none')};\n`;\n\nexport const StyledTagContainer = styled(StyledTagContainerBase)(\n props => css`\n ${smallVariant(props)}\n ${defaultVariant(props)}\n `\n);\n\nexport const StyledLeftIcon = styled(Icon)<Partial<StyleProps> & IconProps>`\n margin-right: ${({ theme }) => theme.spacing.micro};\n`;\n\nexport const StyledCloseIcon = styled(Icon)<Partial<StyleProps> & IconProps>`\n margin-left: ${({ theme }) => theme.spacing.nano};\n`;\n"],"names":[],"mappings":";;;;AAMA,MAAM,eAAe,CAAC,EAAE,OAAO,OAAQ,EAAA,KACrC,YAAY,OACZ,IAAA,GAAA,CAAA;AAAA,mBAAA,EACmB,MAAM,YAAa,CAAA,KAAA,CAAA;AAAA,aAAA,EACzB,KAAM,CAAA,OAAA,CAAQ,IAAQ,CAAA,CAAA,EAAA,KAAA,CAAM,OAAQ,CAAA,IAAA,CAAA;AAAA,EAAA,CAAA,CAAA;AAGnD,MAAM,iBAAiB,CAAC,EAAE,OAAO,OAAQ,EAAA,KACvC,YAAY,SACZ,IAAA,GAAA,CAAA;AAAA,mBAAA,EACmB,MAAM,YAAa,CAAA,IAAA,CAAA;AAAA,aAAA,EACzB,KAAM,CAAA,OAAA,CAAQ,KAAS,CAAA,CAAA,EAAA,KAAA,CAAM,OAAQ,CAAA,KAAA,CAAA;AAAA,EAAA,CAAA,CAAA;AAGpD,MAAM,sBAAA,GAAyB,MAAO,CAAA,QAAA,CAAS,IAAI,CAAA,CAAA;AAAA,oBAAA,EAG7B,CAAC,EAAE,KAAM,EAAA,KAAM,MAAM,aAAc,CAAA,SAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAA,EAK5C,CAAC,EAAE,OAAQ,EAAA,KAAO,UAAU,MAAS,GAAA,MAAA,CAAA;AAAA,CAAA,CAAA;AAGrC,MAAA,kBAAA,GAAqB,OAAO,sBAAsB,CAAA;AAAA,EAC7D,CAAS,KAAA,KAAA,GAAA,CAAA;AAAA,IAAA,EACL,aAAa,KAAK,CAAA,CAAA;AAAA,IAAA,EAClB,eAAe,KAAK,CAAA,CAAA;AAAA,EAAA,CAAA;AAE1B,EAAA;AAEa,MAAA,cAAA,GAAiB,OAAO,IAAI,CAAA,CAAA;AAAA,gBAAA,EACvB,CAAC,EAAE,KAAM,EAAA,KAAM,MAAM,OAAQ,CAAA,KAAA,CAAA;AAAA,EAAA;AAGlC,MAAA,eAAA,GAAkB,OAAO,IAAI,CAAA,CAAA;AAAA,eAAA,EACzB,CAAC,EAAE,KAAM,EAAA,KAAM,MAAM,OAAQ,CAAA,IAAA,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styled = require('./styled.cjs');
|
|
5
|
+
var functions = require('./functions.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
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __defProps = Object.defineProperties;
|
|
13
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
14
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
17
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
18
|
+
var __spreadValues = (a, b) => {
|
|
19
|
+
for (var prop in b || (b = {}))
|
|
20
|
+
if (__hasOwnProp.call(b, prop))
|
|
21
|
+
__defNormalProp(a, prop, b[prop]);
|
|
22
|
+
if (__getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
24
|
+
if (__propIsEnum.call(b, prop))
|
|
25
|
+
__defNormalProp(a, prop, b[prop]);
|
|
26
|
+
}
|
|
27
|
+
return a;
|
|
28
|
+
};
|
|
29
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
30
|
+
var __objRest = (source, exclude) => {
|
|
31
|
+
var target = {};
|
|
32
|
+
for (var prop in source)
|
|
33
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34
|
+
target[prop] = source[prop];
|
|
35
|
+
if (source != null && __getOwnPropSymbols)
|
|
36
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
37
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
38
|
+
target[prop] = source[prop];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
};
|
|
42
|
+
const Text = (_a) => {
|
|
43
|
+
var _b = _a, {
|
|
44
|
+
children,
|
|
45
|
+
style,
|
|
46
|
+
fontColor = "dark",
|
|
47
|
+
colorTone = "medium",
|
|
48
|
+
colorVariant,
|
|
49
|
+
fontWeight = "regular",
|
|
50
|
+
typography = "base",
|
|
51
|
+
numberOfLines,
|
|
52
|
+
ellipsizeMode,
|
|
53
|
+
textTransform = "none",
|
|
54
|
+
capitalFirst = false
|
|
55
|
+
} = _b, rest = __objRest(_b, [
|
|
56
|
+
"children",
|
|
57
|
+
"style",
|
|
58
|
+
"fontColor",
|
|
59
|
+
"colorTone",
|
|
60
|
+
"colorVariant",
|
|
61
|
+
"fontWeight",
|
|
62
|
+
"typography",
|
|
63
|
+
"numberOfLines",
|
|
64
|
+
"ellipsizeMode",
|
|
65
|
+
"textTransform",
|
|
66
|
+
"capitalFirst"
|
|
67
|
+
]);
|
|
68
|
+
return /* @__PURE__ */ React__default["default"].createElement(styled.StyledColoredText, __spreadProps(__spreadValues({}, rest), {
|
|
69
|
+
style,
|
|
70
|
+
fontColor,
|
|
71
|
+
colorTone,
|
|
72
|
+
colorVariant,
|
|
73
|
+
fontWeight,
|
|
74
|
+
typography,
|
|
75
|
+
numberOfLines,
|
|
76
|
+
ellipsizeMode,
|
|
77
|
+
textTransform
|
|
78
|
+
}), functions.getLabel(children, capitalFirst));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
module.exports = Text;
|
|
82
|
+
//# sourceMappingURL=Text.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.cjs","sources":["../../../../src/components/atoms/Text/Text.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n FontStackType,\n FontWeightType,\n TypographyVariationType,\n} from '@tecsinapse/react-core';\nimport { StyleProp, TextStyle } from 'react-native';\nimport { StyledColoredText } from './styled';\nimport { getLabel } from './functions';\n\nexport interface TextProps {\n /** Font theme text color */\n fontColor?: FontColorType;\n /** Font theme weight */\n fontWeight?: FontWeightType;\n /** Font theme sizes */\n typography?: TypographyVariationType;\n /** Font theme stack */\n fontStack?: FontStackType;\n /** Palette theme colors. You can specify this prop to override theme fontColor */\n colorVariant?: ColorType;\n /** Palette theme colors gradation */\n colorTone?: ColorGradationType;\n numberOfLines?: number;\n ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip';\n textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';\n capitalFirst?: boolean;\n style?: StyleProp<TextStyle>;\n children?: React.ReactNode;\n}\n\n/** NOTE: When using colors, be careful to not override fontColor by using colorVariant and colorTone, referent to theme colors and not text colors. */\nconst Text: FC<TextProps> = ({\n children,\n style,\n fontColor = 'dark',\n colorTone = 'medium',\n colorVariant,\n fontWeight = 'regular',\n typography = 'base',\n numberOfLines,\n ellipsizeMode,\n textTransform = 'none',\n capitalFirst = false,\n ...rest\n}): JSX.Element => {\n return (\n <StyledColoredText\n {...rest}\n style={style}\n fontColor={fontColor}\n colorTone={colorTone}\n colorVariant={colorVariant}\n fontWeight={fontWeight}\n typography={typography}\n numberOfLines={numberOfLines}\n ellipsizeMode={ellipsizeMode}\n textTransform={textTransform}\n >\n {getLabel(children, capitalFirst)}\n </StyledColoredText>\n );\n};\n\nexport default Text;\n"],"names":["React","StyledColoredText","getLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCM,MAAA,IAAA,GAAsB,CAAC,EAaV,KAAA;AAbU,EAC3B,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,QAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAY,GAAA,MAAA;AAAA,IACZ,SAAY,GAAA,QAAA;AAAA,IACZ,YAAA;AAAA,IACA,UAAa,GAAA,SAAA;AAAA,IACb,UAAa,GAAA,MAAA;AAAA,IACb,aAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAgB,GAAA,MAAA;AAAA,IAChB,YAAe,GAAA,KAAA;AAAA,GA9CjB,GAmC6B,EAYxB,EAAA,IAAA,GAAA,SAAA,CAZwB,EAYxB,EAAA;AAAA,IAXH,UAAA;AAAA,IACA,OAAA;AAAA,IACA,WAAA;AAAA,IACA,WAAA;AAAA,IACA,cAAA;AAAA,IACA,YAAA;AAAA,IACA,YAAA;AAAA,IACA,eAAA;AAAA,IACA,eAAA;AAAA,IACA,eAAA;AAAA,IACA,cAAA;AAAA,GAAA,CAAA,CAAA;AAGA,EACE,uBAAAA,yBAAA,CAAA,aAAA,CAACC,2DACK,IADL,CAAA,EAAA;AAAA,IAEC,KAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAA;AAAA,IACA,YAAA;AAAA,IACA,UAAA;AAAA,IACA,UAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAA;AAAA,GAEC,CAAA,EAAAC,kBAAA,CAAS,QAAU,EAAA,YAAY,CAClC,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { StyledColoredText } from './styled.mjs';
|
|
3
|
+
import { getLabel } from './functions.mjs';
|
|
4
|
+
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defProps = Object.defineProperties;
|
|
7
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
+
var __objRest = (source, exclude) => {
|
|
25
|
+
var target = {};
|
|
26
|
+
for (var prop in source)
|
|
27
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
if (source != null && __getOwnPropSymbols)
|
|
30
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
32
|
+
target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const Text = (_a) => {
|
|
37
|
+
var _b = _a, {
|
|
38
|
+
children,
|
|
39
|
+
style,
|
|
40
|
+
fontColor = "dark",
|
|
41
|
+
colorTone = "medium",
|
|
42
|
+
colorVariant,
|
|
43
|
+
fontWeight = "regular",
|
|
44
|
+
typography = "base",
|
|
45
|
+
numberOfLines,
|
|
46
|
+
ellipsizeMode,
|
|
47
|
+
textTransform = "none",
|
|
48
|
+
capitalFirst = false
|
|
49
|
+
} = _b, rest = __objRest(_b, [
|
|
50
|
+
"children",
|
|
51
|
+
"style",
|
|
52
|
+
"fontColor",
|
|
53
|
+
"colorTone",
|
|
54
|
+
"colorVariant",
|
|
55
|
+
"fontWeight",
|
|
56
|
+
"typography",
|
|
57
|
+
"numberOfLines",
|
|
58
|
+
"ellipsizeMode",
|
|
59
|
+
"textTransform",
|
|
60
|
+
"capitalFirst"
|
|
61
|
+
]);
|
|
62
|
+
return /* @__PURE__ */ React__default.createElement(StyledColoredText, __spreadProps(__spreadValues({}, rest), {
|
|
63
|
+
style,
|
|
64
|
+
fontColor,
|
|
65
|
+
colorTone,
|
|
66
|
+
colorVariant,
|
|
67
|
+
fontWeight,
|
|
68
|
+
typography,
|
|
69
|
+
numberOfLines,
|
|
70
|
+
ellipsizeMode,
|
|
71
|
+
textTransform
|
|
72
|
+
}), getLabel(children, capitalFirst));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { Text as default };
|
|
76
|
+
//# sourceMappingURL=Text.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.mjs","sources":["../../../../src/components/atoms/Text/Text.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport {\n ColorGradationType,\n ColorType,\n FontColorType,\n FontStackType,\n FontWeightType,\n TypographyVariationType,\n} from '@tecsinapse/react-core';\nimport { StyleProp, TextStyle } from 'react-native';\nimport { StyledColoredText } from './styled';\nimport { getLabel } from './functions';\n\nexport interface TextProps {\n /** Font theme text color */\n fontColor?: FontColorType;\n /** Font theme weight */\n fontWeight?: FontWeightType;\n /** Font theme sizes */\n typography?: TypographyVariationType;\n /** Font theme stack */\n fontStack?: FontStackType;\n /** Palette theme colors. You can specify this prop to override theme fontColor */\n colorVariant?: ColorType;\n /** Palette theme colors gradation */\n colorTone?: ColorGradationType;\n numberOfLines?: number;\n ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip';\n textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';\n capitalFirst?: boolean;\n style?: StyleProp<TextStyle>;\n children?: React.ReactNode;\n}\n\n/** NOTE: When using colors, be careful to not override fontColor by using colorVariant and colorTone, referent to theme colors and not text colors. */\nconst Text: FC<TextProps> = ({\n children,\n style,\n fontColor = 'dark',\n colorTone = 'medium',\n colorVariant,\n fontWeight = 'regular',\n typography = 'base',\n numberOfLines,\n ellipsizeMode,\n textTransform = 'none',\n capitalFirst = false,\n ...rest\n}): JSX.Element => {\n return (\n <StyledColoredText\n {...rest}\n style={style}\n fontColor={fontColor}\n colorTone={colorTone}\n colorVariant={colorVariant}\n fontWeight={fontWeight}\n typography={typography}\n numberOfLines={numberOfLines}\n ellipsizeMode={ellipsizeMode}\n textTransform={textTransform}\n >\n {getLabel(children, capitalFirst)}\n </StyledColoredText>\n );\n};\n\nexport default Text;\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCM,MAAA,IAAA,GAAsB,CAAC,EAaV,KAAA;AAbU,EAC3B,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,QAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAY,GAAA,MAAA;AAAA,IACZ,SAAY,GAAA,QAAA;AAAA,IACZ,YAAA;AAAA,IACA,UAAa,GAAA,SAAA;AAAA,IACb,UAAa,GAAA,MAAA;AAAA,IACb,aAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAgB,GAAA,MAAA;AAAA,IAChB,YAAe,GAAA,KAAA;AAAA,GA9CjB,GAmC6B,EAYxB,EAAA,IAAA,GAAA,SAAA,CAZwB,EAYxB,EAAA;AAAA,IAXH,UAAA;AAAA,IACA,OAAA;AAAA,IACA,WAAA;AAAA,IACA,WAAA;AAAA,IACA,cAAA;AAAA,IACA,YAAA;AAAA,IACA,YAAA;AAAA,IACA,eAAA;AAAA,IACA,eAAA;AAAA,IACA,eAAA;AAAA,IACA,cAAA;AAAA,GAAA,CAAA,CAAA;AAGA,EACE,uBAAAA,cAAA,CAAA,aAAA,CAAC,oDACK,IADL,CAAA,EAAA;AAAA,IAEC,KAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAA;AAAA,IACA,YAAA;AAAA,IACA,UAAA;AAAA,IACA,UAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAA;AAAA,GAEC,CAAA,EAAA,QAAA,CAAS,QAAU,EAAA,YAAY,CAClC,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const getFirstCapitalCharacter = (value) => value.charAt(0).toUpperCase().concat(value.slice(1));
|
|
6
|
+
const getLabel = (children, capitalFirst) => typeof children === "string" && capitalFirst ? getFirstCapitalCharacter(children) : children;
|
|
7
|
+
|
|
8
|
+
exports.getFirstCapitalCharacter = getFirstCapitalCharacter;
|
|
9
|
+
exports.getLabel = getLabel;
|
|
10
|
+
//# sourceMappingURL=functions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.cjs","sources":["../../../../src/components/atoms/Text/functions.ts"],"sourcesContent":["export const getFirstCapitalCharacter = (value: string): string =>\n value.charAt(0).toUpperCase().concat(value.slice(1));\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const getLabel = (children, capitalFirst: boolean) =>\n typeof children === 'string' && capitalFirst\n ? getFirstCapitalCharacter(children)\n : children;\n"],"names":[],"mappings":";;;;AAAO,MAAM,wBAA2B,GAAA,CAAC,KACvC,KAAA,KAAA,CAAM,MAAO,CAAA,CAAC,CAAE,CAAA,WAAA,EAAc,CAAA,MAAA,CAAO,KAAM,CAAA,KAAA,CAAM,CAAC,CAAC,EAAA;AAGxC,MAAA,QAAA,GAAW,CAAC,QAAA,EAAU,YACjC,KAAA,OAAO,aAAa,QAAY,IAAA,YAAA,GAC5B,wBAAyB,CAAA,QAAQ,CACjC,GAAA;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const getFirstCapitalCharacter = (value) => value.charAt(0).toUpperCase().concat(value.slice(1));
|
|
2
|
+
const getLabel = (children, capitalFirst) => typeof children === "string" && capitalFirst ? getFirstCapitalCharacter(children) : children;
|
|
3
|
+
|
|
4
|
+
export { getFirstCapitalCharacter, getLabel };
|
|
5
|
+
//# sourceMappingURL=functions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.mjs","sources":["../../../../src/components/atoms/Text/functions.ts"],"sourcesContent":["export const getFirstCapitalCharacter = (value: string): string =>\n value.charAt(0).toUpperCase().concat(value.slice(1));\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const getLabel = (children, capitalFirst: boolean) =>\n typeof children === 'string' && capitalFirst\n ? getFirstCapitalCharacter(children)\n : children;\n"],"names":[],"mappings":"AAAO,MAAM,wBAA2B,GAAA,CAAC,KACvC,KAAA,KAAA,CAAM,MAAO,CAAA,CAAC,CAAE,CAAA,WAAA,EAAc,CAAA,MAAA,CAAO,KAAM,CAAA,KAAA,CAAM,CAAC,CAAC,EAAA;AAGxC,MAAA,QAAA,GAAW,CAAC,QAAA,EAAU,YACjC,KAAA,OAAO,aAAa,QAAY,IAAA,YAAA,GAC5B,wBAAyB,CAAA,QAAQ,CACjC,GAAA;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('@emotion/native');
|
|
6
|
+
var reactNative = require('react-native');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
const StyledText = styled__default["default"](reactNative.Text)`
|
|
13
|
+
color: ${({ theme, fontColor = "dark" }) => theme.font.color[fontColor]};
|
|
14
|
+
font-weight: ${({ theme, fontWeight = "regular" }) => theme.font.weight[fontWeight]};
|
|
15
|
+
font-size: ${({ theme, typography = "base" }) => theme.typography[typography].fontSize};
|
|
16
|
+
line-height: ${({ theme, typography = "base" }) => theme.typography[typography].lineHeight};
|
|
17
|
+
font-family: ${({ theme, fontStack = "default" }) => `'${theme.font.stack[fontStack]}'`};
|
|
18
|
+
text-transform: ${({ textTransform = "none" }) => `${textTransform}`};
|
|
19
|
+
`;
|
|
20
|
+
const colorStyles = ({
|
|
21
|
+
colorVariant,
|
|
22
|
+
colorTone,
|
|
23
|
+
theme
|
|
24
|
+
}) => colorVariant && colorTone && styled.css`
|
|
25
|
+
color: ${theme.color[colorVariant][colorTone]};
|
|
26
|
+
`;
|
|
27
|
+
const StyledColoredText = styled__default["default"](StyledText)(colorStyles);
|
|
28
|
+
|
|
29
|
+
exports.StyledColoredText = StyledColoredText;
|
|
30
|
+
exports.StyledText = StyledText;
|
|
31
|
+
//# sourceMappingURL=styled.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.cjs","sources":["../../../../src/components/atoms/Text/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { StyleProps, TextProps } from '@tecsinapse/react-core';\nimport { Text as RNText } from 'react-native';\n\nexport const StyledText = styled(RNText)<TextProps & Partial<StyleProps>>`\n color: ${({ theme, fontColor = 'dark' }) => theme.font.color[fontColor]};\n font-weight: ${({ theme, fontWeight = 'regular' }) =>\n theme.font.weight[fontWeight]};\n font-size: ${({ theme, typography = 'base' }) =>\n theme.typography[typography].fontSize};\n line-height: ${({ theme, typography = 'base' }) =>\n theme.typography[typography].lineHeight};\n font-family: ${({ theme, fontStack = 'default' }) =>\n `'${theme.font.stack[fontStack]}'`};\n text-transform: ${({ textTransform = 'none' }) => `${textTransform}`};\n`;\n\nconst colorStyles = ({\n colorVariant,\n colorTone,\n theme,\n}: TextProps & StyleProps) =>\n colorVariant &&\n colorTone &&\n css`\n color: ${theme.color[colorVariant][colorTone]};\n `;\n\nexport const StyledColoredText = styled(StyledText)<\n TextProps & Partial<StyleProps>\n>(colorStyles);\n"],"names":["styled","RNText","css"],"mappings":";;;;;;;;;;;AAIa,MAAA,UAAA,GAAaA,2BAAOC,gBAAM,CAAA,CAAA;AAAA,SAC5B,EAAA,CAAC,EAAE,KAAO,EAAA,SAAA,GAAY,QAAa,KAAA,KAAA,CAAM,KAAK,KAAM,CAAA,SAAA,CAAA,CAAA;AAAA,eAC9C,EAAA,CAAC,EAAE,KAAO,EAAA,UAAA,GAAa,WACpC,KAAA,KAAA,CAAM,KAAK,MAAO,CAAA,UAAA,CAAA,CAAA;AAAA,aACP,EAAA,CAAC,EAAE,KAAO,EAAA,UAAA,GAAa,QAClC,KAAA,KAAA,CAAM,WAAW,UAAY,CAAA,CAAA,QAAA,CAAA;AAAA,eAChB,EAAA,CAAC,EAAE,KAAO,EAAA,UAAA,GAAa,QACpC,KAAA,KAAA,CAAM,WAAW,UAAY,CAAA,CAAA,UAAA,CAAA;AAAA,eAChB,EAAA,CAAC,EAAE,KAAO,EAAA,SAAA,GAAY,WACnC,KAAA,CAAA,CAAA,EAAI,KAAM,CAAA,IAAA,CAAK,KAAM,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,kBAAA,EACL,CAAC,EAAE,aAAgB,GAAA,MAAA,OAAa,CAAG,EAAA,aAAA,CAAA,CAAA,CAAA;AAAA,EAAA;AAGvD,MAAM,cAAc,CAAC;AAAA,EACnB,YAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AACF,CAAA,KACE,gBACA,SACA,IAAAC,UAAA,CAAA;AAAA,WACW,EAAA,KAAA,CAAM,MAAM,YAAc,CAAA,CAAA,SAAA,CAAA,CAAA;AAAA,EAAA,CAAA,CAAA;AAGhC,MAAM,iBAAoB,GAAAF,0BAAA,CAAO,UAAU,CAAA,CAEhD,WAAW;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import styled, { css } from '@emotion/native';
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const StyledText = styled(Text)`
|
|
5
|
+
color: ${({ theme, fontColor = "dark" }) => theme.font.color[fontColor]};
|
|
6
|
+
font-weight: ${({ theme, fontWeight = "regular" }) => theme.font.weight[fontWeight]};
|
|
7
|
+
font-size: ${({ theme, typography = "base" }) => theme.typography[typography].fontSize};
|
|
8
|
+
line-height: ${({ theme, typography = "base" }) => theme.typography[typography].lineHeight};
|
|
9
|
+
font-family: ${({ theme, fontStack = "default" }) => `'${theme.font.stack[fontStack]}'`};
|
|
10
|
+
text-transform: ${({ textTransform = "none" }) => `${textTransform}`};
|
|
11
|
+
`;
|
|
12
|
+
const colorStyles = ({
|
|
13
|
+
colorVariant,
|
|
14
|
+
colorTone,
|
|
15
|
+
theme
|
|
16
|
+
}) => colorVariant && colorTone && css`
|
|
17
|
+
color: ${theme.color[colorVariant][colorTone]};
|
|
18
|
+
`;
|
|
19
|
+
const StyledColoredText = styled(StyledText)(colorStyles);
|
|
20
|
+
|
|
21
|
+
export { StyledColoredText, StyledText };
|
|
22
|
+
//# sourceMappingURL=styled.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.mjs","sources":["../../../../src/components/atoms/Text/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { StyleProps, TextProps } from '@tecsinapse/react-core';\nimport { Text as RNText } from 'react-native';\n\nexport const StyledText = styled(RNText)<TextProps & Partial<StyleProps>>`\n color: ${({ theme, fontColor = 'dark' }) => theme.font.color[fontColor]};\n font-weight: ${({ theme, fontWeight = 'regular' }) =>\n theme.font.weight[fontWeight]};\n font-size: ${({ theme, typography = 'base' }) =>\n theme.typography[typography].fontSize};\n line-height: ${({ theme, typography = 'base' }) =>\n theme.typography[typography].lineHeight};\n font-family: ${({ theme, fontStack = 'default' }) =>\n `'${theme.font.stack[fontStack]}'`};\n text-transform: ${({ textTransform = 'none' }) => `${textTransform}`};\n`;\n\nconst colorStyles = ({\n colorVariant,\n colorTone,\n theme,\n}: TextProps & StyleProps) =>\n colorVariant &&\n colorTone &&\n css`\n color: ${theme.color[colorVariant][colorTone]};\n `;\n\nexport const StyledColoredText = styled(StyledText)<\n TextProps & Partial<StyleProps>\n>(colorStyles);\n"],"names":["RNText"],"mappings":";;;AAIa,MAAA,UAAA,GAAa,OAAOA,IAAM,CAAA,CAAA;AAAA,SAC5B,EAAA,CAAC,EAAE,KAAO,EAAA,SAAA,GAAY,QAAa,KAAA,KAAA,CAAM,KAAK,KAAM,CAAA,SAAA,CAAA,CAAA;AAAA,eAC9C,EAAA,CAAC,EAAE,KAAO,EAAA,UAAA,GAAa,WACpC,KAAA,KAAA,CAAM,KAAK,MAAO,CAAA,UAAA,CAAA,CAAA;AAAA,aACP,EAAA,CAAC,EAAE,KAAO,EAAA,UAAA,GAAa,QAClC,KAAA,KAAA,CAAM,WAAW,UAAY,CAAA,CAAA,QAAA,CAAA;AAAA,eAChB,EAAA,CAAC,EAAE,KAAO,EAAA,UAAA,GAAa,QACpC,KAAA,KAAA,CAAM,WAAW,UAAY,CAAA,CAAA,UAAA,CAAA;AAAA,eAChB,EAAA,CAAC,EAAE,KAAO,EAAA,SAAA,GAAY,WACnC,KAAA,CAAA,CAAA,EAAI,KAAM,CAAA,IAAA,CAAK,KAAM,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,kBAAA,EACL,CAAC,EAAE,aAAgB,GAAA,MAAA,OAAa,CAAG,EAAA,aAAA,CAAA,CAAA,CAAA;AAAA,EAAA;AAGvD,MAAM,cAAc,CAAC;AAAA,EACnB,YAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AACF,CAAA,KACE,gBACA,SACA,IAAA,GAAA,CAAA;AAAA,WACW,EAAA,KAAA,CAAM,MAAM,YAAc,CAAA,CAAA,SAAA,CAAA,CAAA;AAAA,EAAA,CAAA,CAAA;AAGhC,MAAM,iBAAoB,GAAA,MAAA,CAAO,UAAU,CAAA,CAEhD,WAAW;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('@emotion/native');
|
|
6
|
+
|
|
7
|
+
const baseStyles = ({ theme }) => styled.css`
|
|
8
|
+
border-radius: ${theme.borderRadius.mili};
|
|
9
|
+
background-color: ${theme.miscellaneous.surfaceColor};
|
|
10
|
+
`;
|
|
11
|
+
const elevatedStyles = ({
|
|
12
|
+
theme,
|
|
13
|
+
elevated = false
|
|
14
|
+
}) => elevated && [
|
|
15
|
+
styled.css({
|
|
16
|
+
shadowColor: theme.miscellaneous.shadow,
|
|
17
|
+
shadowOffset: { width: 0, height: 2 },
|
|
18
|
+
shadowOpacity: 0.05,
|
|
19
|
+
shadowRadius: 5,
|
|
20
|
+
elevation: 2
|
|
21
|
+
})
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
exports.baseStyles = baseStyles;
|
|
25
|
+
exports.elevatedStyles = elevatedStyles;
|
|
26
|
+
//# sourceMappingURL=PaperAndCard.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaperAndCard.cjs","sources":["../../../../src/components/atoms/shared/PaperAndCard.ts"],"sourcesContent":["import { css } from '@emotion/native';\nimport { StyleProps } from '@tecsinapse/react-core';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const baseStyles = ({ theme }: StyleProps): any => css`\n border-radius: ${theme.borderRadius.mili};\n background-color: ${theme.miscellaneous.surfaceColor};\n`;\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport const elevatedStyles = ({\n theme,\n elevated = false,\n}: { elevated?: boolean } & StyleProps): any =>\n elevated && [\n css({\n shadowColor: theme.miscellaneous.shadow,\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.05,\n shadowRadius: 5,\n elevation: 2,\n }),\n ];\n/* eslint-enable @typescript-eslint/no-explicit-any */\n"],"names":["css"],"mappings":";;;;;;AAIO,MAAM,UAAa,GAAA,CAAC,EAAE,KAAA,EAA6B,KAAAA,UAAA,CAAA;AAAA,iBAAA,EACvC,MAAM,YAAa,CAAA,IAAA,CAAA;AAAA,oBAAA,EAChB,MAAM,aAAc,CAAA,YAAA,CAAA;AAAA,EAAA;AAInC,MAAM,iBAAiB,CAAC;AAAA,EAC7B,KAAA;AAAA,EACA,QAAW,GAAA,KAAA;AACb,CAAA,KACE,QAAY,IAAA;AAAA,EACVA,UAAI,CAAA;AAAA,IACF,WAAA,EAAa,MAAM,aAAc,CAAA,MAAA;AAAA,IACjC,YAAc,EAAA,EAAE,KAAO,EAAA,CAAA,EAAG,QAAQ,CAAE,EAAA;AAAA,IACpC,aAAe,EAAA,IAAA;AAAA,IACf,YAAc,EAAA,CAAA;AAAA,IACd,SAAW,EAAA,CAAA;AAAA,GACZ,CAAA;AACH;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { css } from '@emotion/native';
|
|
2
|
+
|
|
3
|
+
const baseStyles = ({ theme }) => css`
|
|
4
|
+
border-radius: ${theme.borderRadius.mili};
|
|
5
|
+
background-color: ${theme.miscellaneous.surfaceColor};
|
|
6
|
+
`;
|
|
7
|
+
const elevatedStyles = ({
|
|
8
|
+
theme,
|
|
9
|
+
elevated = false
|
|
10
|
+
}) => elevated && [
|
|
11
|
+
css({
|
|
12
|
+
shadowColor: theme.miscellaneous.shadow,
|
|
13
|
+
shadowOffset: { width: 0, height: 2 },
|
|
14
|
+
shadowOpacity: 0.05,
|
|
15
|
+
shadowRadius: 5,
|
|
16
|
+
elevation: 2
|
|
17
|
+
})
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export { baseStyles, elevatedStyles };
|
|
21
|
+
//# sourceMappingURL=PaperAndCard.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaperAndCard.mjs","sources":["../../../../src/components/atoms/shared/PaperAndCard.ts"],"sourcesContent":["import { css } from '@emotion/native';\nimport { StyleProps } from '@tecsinapse/react-core';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const baseStyles = ({ theme }: StyleProps): any => css`\n border-radius: ${theme.borderRadius.mili};\n background-color: ${theme.miscellaneous.surfaceColor};\n`;\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport const elevatedStyles = ({\n theme,\n elevated = false,\n}: { elevated?: boolean } & StyleProps): any =>\n elevated && [\n css({\n shadowColor: theme.miscellaneous.shadow,\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.05,\n shadowRadius: 5,\n elevation: 2,\n }),\n ];\n/* eslint-enable @typescript-eslint/no-explicit-any */\n"],"names":[],"mappings":";;AAIO,MAAM,UAAa,GAAA,CAAC,EAAE,KAAA,EAA6B,KAAA,GAAA,CAAA;AAAA,iBAAA,EACvC,MAAM,YAAa,CAAA,IAAA,CAAA;AAAA,oBAAA,EAChB,MAAM,aAAc,CAAA,YAAA,CAAA;AAAA,EAAA;AAInC,MAAM,iBAAiB,CAAC;AAAA,EAC7B,KAAA;AAAA,EACA,QAAW,GAAA,KAAA;AACb,CAAA,KACE,QAAY,IAAA;AAAA,EACV,GAAI,CAAA;AAAA,IACF,WAAA,EAAa,MAAM,aAAc,CAAA,MAAA;AAAA,IACjC,YAAc,EAAA,EAAE,KAAO,EAAA,CAAA,EAAG,QAAQ,CAAE,EAAA;AAAA,IACpC,aAAe,EAAA,IAAA;AAAA,IACf,YAAc,EAAA,CAAA;AAAA,IACd,SAAW,EAAA,CAAA;AAAA,GACZ,CAAA;AACH;;;;"}
|