@tecsinapse/react-core 1.17.4 → 1.20.0
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/CHANGELOG.md +42 -0
- package/babel.config.esm.js +34 -0
- package/dist/components/atoms/Avatar/Avatar.js +12 -8
- package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
- package/dist/components/atoms/Avatar/helpers.js +3 -1
- package/dist/components/atoms/Avatar/helpers.js.map +1 -1
- package/dist/components/atoms/Avatar/index.d.ts +2 -1
- package/dist/components/atoms/Avatar/index.js +11 -9
- package/dist/components/atoms/Avatar/index.js.map +1 -1
- package/dist/components/atoms/Avatar/styled.js +38 -39
- package/dist/components/atoms/Avatar/styled.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.js +11 -8
- package/dist/components/atoms/Badge/Badge.js.map +1 -1
- package/dist/components/atoms/Badge/index.d.ts +2 -1
- package/dist/components/atoms/Badge/index.js +11 -9
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/Badge/styled.js +15 -24
- package/dist/components/atoms/Badge/styled.js.map +1 -1
- package/dist/components/atoms/BoxContent/BoxContent.js +8 -5
- package/dist/components/atoms/BoxContent/BoxContent.js.map +1 -1
- package/dist/components/atoms/BoxContent/index.d.ts +2 -1
- package/dist/components/atoms/BoxContent/index.js +11 -9
- package/dist/components/atoms/BoxContent/index.js.map +1 -1
- package/dist/components/atoms/BoxContent/styled.js +63 -58
- package/dist/components/atoms/BoxContent/styled.js.map +1 -1
- package/dist/components/atoms/Button/Button.js +21 -18
- package/dist/components/atoms/Button/Button.js.map +1 -1
- package/dist/components/atoms/Button/States/BaseState.js +11 -8
- package/dist/components/atoms/Button/States/BaseState.js.map +1 -1
- package/dist/components/atoms/Button/States/Error.js +4 -2
- package/dist/components/atoms/Button/States/Error.js.map +1 -1
- package/dist/components/atoms/Button/States/Loading.js +10 -7
- package/dist/components/atoms/Button/States/Loading.js.map +1 -1
- package/dist/components/atoms/Button/States/Success.js +4 -2
- package/dist/components/atoms/Button/States/Success.js.map +1 -1
- package/dist/components/atoms/Button/States/index.js +21 -8
- package/dist/components/atoms/Button/States/index.js.map +1 -1
- package/dist/components/atoms/Button/States/styled.js +32 -20
- package/dist/components/atoms/Button/States/styled.js.map +1 -1
- package/dist/components/atoms/Button/index.d.ts +2 -1
- package/dist/components/atoms/Button/index.js +29 -16
- package/dist/components/atoms/Button/index.js.map +1 -1
- package/dist/components/atoms/Button/styled.js +33 -36
- package/dist/components/atoms/Button/styled.js.map +1 -1
- package/dist/components/atoms/Card/Card.js +12 -8
- package/dist/components/atoms/Card/Card.js.map +1 -1
- package/dist/components/atoms/Card/Footer/Footer.js +12 -7
- package/dist/components/atoms/Card/Footer/Footer.js.map +1 -1
- package/dist/components/atoms/Card/Footer/index.d.ts +2 -1
- package/dist/components/atoms/Card/Footer/index.js +11 -9
- package/dist/components/atoms/Card/Footer/index.js.map +1 -1
- package/dist/components/atoms/Card/Header/Header.js +12 -7
- package/dist/components/atoms/Card/Header/Header.js.map +1 -1
- package/dist/components/atoms/Card/Header/index.d.ts +2 -1
- package/dist/components/atoms/Card/Header/index.js +11 -9
- package/dist/components/atoms/Card/Header/index.js.map +1 -1
- package/dist/components/atoms/Card/index.d.ts +2 -1
- package/dist/components/atoms/Card/index.js +11 -9
- package/dist/components/atoms/Card/index.js.map +1 -1
- package/dist/components/atoms/Card/styled.js +8 -5
- package/dist/components/atoms/Card/styled.js.map +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.js +17 -13
- package/dist/components/atoms/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/atoms/Checkbox/index.d.ts +2 -1
- package/dist/components/atoms/Checkbox/index.js +11 -9
- package/dist/components/atoms/Checkbox/index.js.map +1 -1
- package/dist/components/atoms/Checkbox/styled.js +63 -45
- package/dist/components/atoms/Checkbox/styled.js.map +1 -1
- package/dist/components/atoms/Divider/Divider.js +8 -5
- package/dist/components/atoms/Divider/Divider.js.map +1 -1
- package/dist/components/atoms/Divider/index.d.ts +2 -1
- package/dist/components/atoms/Divider/index.js +11 -9
- package/dist/components/atoms/Divider/index.js.map +1 -1
- package/dist/components/atoms/Divider/styled.js +33 -26
- package/dist/components/atoms/Divider/styled.js.map +1 -1
- package/dist/components/atoms/GroupButton/GroupButton.d.ts +1 -1
- package/dist/components/atoms/GroupButton/GroupButton.js +25 -21
- package/dist/components/atoms/GroupButton/GroupButton.js.map +1 -1
- package/dist/components/atoms/GroupButton/GroupButtonOption.js +9 -6
- package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
- package/dist/components/atoms/GroupButton/index.d.ts +4 -2
- package/dist/components/atoms/GroupButton/index.js +18 -14
- package/dist/components/atoms/GroupButton/index.js.map +1 -1
- package/dist/components/atoms/GroupButton/styled.js +98 -101
- package/dist/components/atoms/GroupButton/styled.js.map +1 -1
- package/dist/components/atoms/Icon/Icon.js +16 -13
- package/dist/components/atoms/Icon/Icon.js.map +1 -1
- package/dist/components/atoms/Icon/helpers.js +14 -8
- package/dist/components/atoms/Icon/helpers.js.map +1 -1
- package/dist/components/atoms/Icon/index.d.ts +2 -1
- package/dist/components/atoms/Icon/index.js +11 -9
- package/dist/components/atoms/Icon/index.js.map +1 -1
- package/dist/components/atoms/Input/Hint.js +9 -6
- package/dist/components/atoms/Input/Hint.js.map +1 -1
- package/dist/components/atoms/Input/InputContainer/InputContainer.d.ts +1 -1
- package/dist/components/atoms/Input/InputContainer/InputContainer.js +23 -20
- package/dist/components/atoms/Input/InputContainer/InputContainer.js.map +1 -1
- package/dist/components/atoms/Input/InputElement/InputElement.d.ts +3 -4
- package/dist/components/atoms/Input/InputElement/InputElement.js +14 -11
- package/dist/components/atoms/Input/InputElement/InputElement.js.map +1 -1
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +3 -4
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js +18 -15
- package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -1
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +12 -9
- package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -1
- package/dist/components/atoms/Input/PressableInputContainer/index.d.ts +2 -1
- package/dist/components/atoms/Input/PressableInputContainer/index.js +11 -9
- package/dist/components/atoms/Input/PressableInputContainer/index.js.map +1 -1
- package/dist/components/atoms/Input/PressableInputContainer/styled.js +9 -4
- package/dist/components/atoms/Input/PressableInputContainer/styled.js.map +1 -1
- package/dist/components/atoms/Input/hooks/useInputFocus.js +5 -2
- package/dist/components/atoms/Input/hooks/useInputFocus.js.map +1 -1
- package/dist/components/atoms/Input/hooks/useNumberMask.js +7 -4
- package/dist/components/atoms/Input/hooks/useNumberMask.js.map +1 -1
- package/dist/components/atoms/Input/hooks/useStringMask.js +11 -6
- package/dist/components/atoms/Input/hooks/useStringMask.js.map +1 -1
- package/dist/components/atoms/Input/index.d.ts +8 -4
- package/dist/components/atoms/Input/index.js +66 -35
- package/dist/components/atoms/Input/index.js.map +1 -1
- package/dist/components/atoms/Input/styled.js +120 -107
- package/dist/components/atoms/Input/styled.js.map +1 -1
- package/dist/components/atoms/Paper/Paper.js +14 -9
- package/dist/components/atoms/Paper/Paper.js.map +1 -1
- package/dist/components/atoms/Paper/index.d.ts +2 -1
- package/dist/components/atoms/Paper/index.js +11 -9
- package/dist/components/atoms/Paper/index.js.map +1 -1
- package/dist/components/atoms/Paper/styled.js +8 -5
- package/dist/components/atoms/Paper/styled.js.map +1 -1
- package/dist/components/atoms/PressableSurface/PressableSurface.js +28 -19
- package/dist/components/atoms/PressableSurface/PressableSurface.js.map +1 -1
- package/dist/components/atoms/PressableSurface/index.d.ts +2 -1
- package/dist/components/atoms/PressableSurface/index.js +11 -9
- package/dist/components/atoms/PressableSurface/index.js.map +1 -1
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/atoms/ProgressBar/ProgressBar.js +20 -15
- package/dist/components/atoms/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/atoms/ProgressBar/index.d.ts +2 -1
- package/dist/components/atoms/ProgressBar/index.js +11 -9
- package/dist/components/atoms/ProgressBar/index.js.map +1 -1
- package/dist/components/atoms/ProgressBar/styled.js +39 -30
- package/dist/components/atoms/ProgressBar/styled.js.map +1 -1
- package/dist/components/atoms/RadioButton/RadioButton.js +17 -13
- package/dist/components/atoms/RadioButton/RadioButton.js.map +1 -1
- package/dist/components/atoms/RadioButton/index.d.ts +2 -1
- package/dist/components/atoms/RadioButton/index.js +11 -9
- package/dist/components/atoms/RadioButton/index.js.map +1 -1
- package/dist/components/atoms/RadioButton/styled.js +39 -30
- package/dist/components/atoms/RadioButton/styled.js.map +1 -1
- package/dist/components/atoms/Switch/Switch.d.ts +1 -1
- package/dist/components/atoms/Switch/Switch.js +17 -14
- package/dist/components/atoms/Switch/Switch.js.map +1 -1
- package/dist/components/atoms/Switch/animation.js +3 -1
- package/dist/components/atoms/Switch/animation.js.map +1 -1
- package/dist/components/atoms/Switch/index.d.ts +2 -1
- package/dist/components/atoms/Switch/index.js +11 -9
- package/dist/components/atoms/Switch/index.js.map +1 -1
- package/dist/components/atoms/Switch/styled.d.ts +2 -14
- package/dist/components/atoms/Switch/styled.js +30 -23
- package/dist/components/atoms/Switch/styled.js.map +1 -1
- package/dist/components/atoms/Tag/Tag.js +15 -12
- package/dist/components/atoms/Tag/Tag.js.map +1 -1
- package/dist/components/atoms/Tag/index.d.ts +2 -1
- package/dist/components/atoms/Tag/index.js +11 -9
- package/dist/components/atoms/Tag/index.js.map +1 -1
- package/dist/components/atoms/Tag/styled.js +48 -44
- package/dist/components/atoms/Tag/styled.js.map +1 -1
- package/dist/components/atoms/Text/Text.js +20 -17
- package/dist/components/atoms/Text/Text.js.map +1 -1
- package/dist/components/atoms/Text/functions.js +3 -1
- package/dist/components/atoms/Text/functions.js.map +1 -1
- package/dist/components/atoms/Text/index.d.ts +2 -1
- package/dist/components/atoms/Text/index.js +11 -9
- package/dist/components/atoms/Text/index.js.map +1 -1
- package/dist/components/atoms/Text/styled.js +52 -34
- package/dist/components/atoms/Text/styled.js.map +1 -1
- package/dist/components/atoms/shared/PaperAndCard.js +29 -20
- package/dist/components/atoms/shared/PaperAndCard.js.map +1 -1
- package/dist/components/molecules/Calendar/Calendar.js +20 -16
- package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
- package/dist/components/molecules/Calendar/components/MonthWeek.js +16 -12
- package/dist/components/molecules/Calendar/components/MonthWeek.js.map +1 -1
- package/dist/components/molecules/Calendar/components/Weekdays.js +9 -6
- package/dist/components/molecules/Calendar/components/Weekdays.js.map +1 -1
- package/dist/components/molecules/Calendar/components/index.js +15 -6
- package/dist/components/molecules/Calendar/components/index.js.map +1 -1
- package/dist/components/molecules/Calendar/index.d.ts +2 -1
- package/dist/components/molecules/Calendar/index.js +11 -12
- package/dist/components/molecules/Calendar/index.js.map +1 -1
- package/dist/components/molecules/Calendar/styled.js +59 -71
- package/dist/components/molecules/Calendar/styled.js.map +1 -1
- package/dist/components/molecules/DatePicker/DatePicker.js +35 -32
- package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/molecules/DatePicker/index.d.ts +2 -1
- package/dist/components/molecules/DatePicker/index.js +11 -9
- package/dist/components/molecules/DatePicker/index.js.map +1 -1
- package/dist/components/molecules/DatePicker/styled.js +20 -14
- package/dist/components/molecules/DatePicker/styled.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js +44 -41
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/index.d.ts +2 -1
- package/dist/components/molecules/DateTimePicker/index.js +11 -9
- package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/styled.js +13 -6
- package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +28 -25
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/Selector.js +18 -14
- package/dist/components/molecules/DateTimeSelector/Selector.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/index.d.ts +2 -1
- package/dist/components/molecules/DateTimeSelector/index.js +11 -10
- package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/styled.js +89 -69
- package/dist/components/molecules/DateTimeSelector/styled.js.map +1 -1
- package/dist/components/molecules/Grid/functions.d.ts +3 -0
- package/dist/components/molecules/Grid/functions.js +25 -0
- package/dist/components/molecules/Grid/functions.js.map +1 -0
- package/dist/components/molecules/Grid/index.d.ts +42 -2
- package/dist/components/molecules/Grid/index.js +16 -15
- package/dist/components/molecules/Grid/index.js.map +1 -1
- package/dist/components/molecules/HintInputContainer/HintInputContainer.js +20 -16
- package/dist/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -1
- package/dist/components/molecules/HintInputContainer/index.js +9 -4
- package/dist/components/molecules/HintInputContainer/index.js.map +1 -1
- package/dist/components/molecules/HintInputContainer/styled.js.map +1 -1
- package/dist/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
- package/dist/components/molecules/IconTextButton/IconComponent.js +33 -0
- package/dist/components/molecules/IconTextButton/IconComponent.js.map +1 -0
- package/dist/components/molecules/IconTextButton/IconTextButton.d.ts +8 -0
- package/dist/components/molecules/IconTextButton/IconTextButton.js +6 -0
- package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
- package/dist/components/molecules/IconTextButton/index.d.ts +2 -0
- package/dist/components/molecules/IconTextButton/index.js +16 -0
- package/dist/components/molecules/IconTextButton/index.js.map +1 -0
- package/dist/components/molecules/IconTextButton/styled.d.ts +4 -0
- package/dist/components/molecules/IconTextButton/styled.js +29 -0
- package/dist/components/molecules/IconTextButton/styled.js.map +1 -0
- package/dist/components/molecules/InputPassword/InputPasswordIcon.js +10 -7
- package/dist/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -1
- package/dist/components/molecules/InputPassword/index.js +9 -4
- package/dist/components/molecules/InputPassword/index.js.map +1 -1
- package/dist/components/molecules/InputPassword/styled.js +13 -6
- package/dist/components/molecules/InputPassword/styled.js.map +1 -1
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +6 -0
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
- package/dist/components/molecules/LabeledSwitch/index.d.ts +1 -0
- package/dist/components/molecules/LabeledSwitch/index.js +6 -0
- package/dist/components/molecules/LabeledSwitch/index.js.map +1 -0
- package/dist/components/molecules/Snackbar/Snackbar.js +26 -22
- package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/molecules/Snackbar/index.d.ts +2 -1
- package/dist/components/molecules/Snackbar/index.js +11 -9
- package/dist/components/molecules/Snackbar/index.js.map +1 -1
- package/dist/components/molecules/Snackbar/styled.js +53 -77
- package/dist/components/molecules/Snackbar/styled.js.map +1 -1
- package/dist/components/molecules/TextArea/TextArea.d.ts +1 -1
- package/dist/components/molecules/TextArea/TextArea.js +29 -26
- package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
- package/dist/components/molecules/TextArea/index.d.ts +2 -1
- package/dist/components/molecules/TextArea/index.js +17 -11
- package/dist/components/molecules/TextArea/index.js.map +1 -1
- package/dist/components/molecules/TextArea/styled.d.ts +2 -14
- package/dist/components/molecules/TextArea/styled.js +15 -13
- package/dist/components/molecules/TextArea/styled.js.map +1 -1
- package/dist/hooks/index.js +15 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useDebouncedState.js +5 -2
- package/dist/hooks/useDebouncedState.js.map +1 -1
- package/dist/hooks/useTheme.js +3 -1
- package/dist/hooks/useTheme.js.map +1 -1
- package/dist/index.d.ts +58 -28
- package/dist/index.js +319 -175
- package/dist/index.js.map +1 -1
- package/dist/styles/ThemeProvider.js +8 -5
- package/dist/styles/ThemeProvider.js.map +1 -1
- package/dist/styles/definitions.d.ts +2 -1
- package/dist/styles/definitions.js +13 -4
- package/dist/styles/definitions.js.map +1 -1
- package/dist/styles/light.js +5 -2
- package/dist/styles/light.js.map +1 -1
- package/dist/types/defaults.d.ts +8 -2
- package/dist/types/defaults.js +3 -1
- package/dist/types/defaults.js.map +1 -1
- package/dist/utils/IPhoneXHelper.js +6 -4
- package/dist/utils/IPhoneXHelper.js.map +1 -1
- package/dist/utils/ResponsiveFontSize.js +12 -9
- package/dist/utils/ResponsiveFontSize.js.map +1 -1
- package/dist/utils/extractNumbersFromString.js +4 -2
- package/dist/utils/extractNumbersFromString.js.map +1 -1
- package/dist/utils/formatWithMask.js +3 -1
- package/dist/utils/formatWithMask.js.map +1 -1
- package/dist/utils/index.d.ts +5 -4
- package/dist/utils/index.js +71 -23
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/lightenDarkenColor.js +3 -1
- package/dist/utils/lightenDarkenColor.js.map +1 -1
- package/dist/utils/masks.js +5 -3
- package/dist/utils/masks.js.map +1 -1
- package/dist/utils/variantComplement.d.ts +6 -0
- package/dist/utils/variantComplement.js +37 -0
- package/dist/utils/variantComplement.js.map +1 -0
- package/esm/components/atoms/Avatar/Avatar.d.ts +14 -0
- package/esm/components/atoms/Avatar/Avatar.js +50 -0
- package/esm/components/atoms/Avatar/Avatar.js.map +1 -0
- package/esm/components/atoms/Avatar/helpers.d.ts +1 -0
- package/esm/components/atoms/Avatar/helpers.js +12 -0
- package/esm/components/atoms/Avatar/helpers.js.map +1 -0
- package/esm/components/atoms/Avatar/index.d.ts +2 -0
- package/esm/components/atoms/Avatar/index.js +2 -0
- package/esm/components/atoms/Avatar/index.js.map +1 -0
- package/esm/components/atoms/Avatar/styled.d.ts +28 -0
- package/esm/components/atoms/Avatar/styled.js +33 -0
- package/esm/components/atoms/Avatar/styled.js.map +1 -0
- package/esm/components/atoms/Badge/Badge.d.ts +11 -0
- package/esm/components/atoms/Badge/Badge.js +20 -0
- package/esm/components/atoms/Badge/Badge.js.map +1 -0
- package/esm/components/atoms/Badge/index.d.ts +2 -0
- package/esm/components/atoms/Badge/index.js +2 -0
- package/esm/components/atoms/Badge/index.js.map +1 -0
- package/esm/components/atoms/Badge/styled.d.ts +15 -0
- package/esm/components/atoms/Badge/styled.js +20 -0
- package/esm/components/atoms/Badge/styled.js.map +1 -0
- package/esm/components/atoms/BoxContent/BoxContent.d.ts +7 -0
- package/esm/components/atoms/BoxContent/BoxContent.js +18 -0
- package/esm/components/atoms/BoxContent/BoxContent.js.map +1 -0
- package/esm/components/atoms/BoxContent/index.d.ts +2 -0
- package/esm/components/atoms/BoxContent/index.js +2 -0
- package/esm/components/atoms/BoxContent/index.js.map +1 -0
- package/esm/components/atoms/BoxContent/styled.d.ts +24 -0
- package/esm/components/atoms/BoxContent/styled.js +55 -0
- package/esm/components/atoms/BoxContent/styled.js.map +1 -0
- package/esm/components/atoms/Button/Button.d.ts +28 -0
- package/esm/components/atoms/Button/Button.js +76 -0
- package/esm/components/atoms/Button/Button.js.map +1 -0
- package/esm/components/atoms/Button/States/BaseState.d.ts +7 -0
- package/esm/components/atoms/Button/States/BaseState.js +29 -0
- package/esm/components/atoms/Button/States/BaseState.js.map +1 -0
- package/esm/components/atoms/Button/States/Error.d.ts +4 -0
- package/esm/components/atoms/Button/States/Error.js +11 -0
- package/esm/components/atoms/Button/States/Error.js.map +1 -0
- package/esm/components/atoms/Button/States/Loading.d.ts +4 -0
- package/esm/components/atoms/Button/States/Loading.js +26 -0
- package/esm/components/atoms/Button/States/Loading.js.map +1 -0
- package/esm/components/atoms/Button/States/Success.d.ts +4 -0
- package/esm/components/atoms/Button/States/Success.js +11 -0
- package/esm/components/atoms/Button/States/Success.js.map +1 -0
- package/esm/components/atoms/Button/States/index.d.ts +3 -0
- package/esm/components/atoms/Button/States/index.js +4 -0
- package/esm/components/atoms/Button/States/index.js.map +1 -0
- package/esm/components/atoms/Button/States/styled.d.ts +16 -0
- package/esm/components/atoms/Button/States/styled.js +25 -0
- package/esm/components/atoms/Button/States/styled.js.map +1 -0
- package/esm/components/atoms/Button/index.d.ts +3 -0
- package/esm/components/atoms/Button/index.js +3 -0
- package/esm/components/atoms/Button/index.js.map +1 -0
- package/esm/components/atoms/Button/styled.d.ts +8 -0
- package/esm/components/atoms/Button/styled.js +42 -0
- package/esm/components/atoms/Button/styled.js.map +1 -0
- package/esm/components/atoms/Card/Card.d.ts +9 -0
- package/esm/components/atoms/Card/Card.js +33 -0
- package/esm/components/atoms/Card/Card.js.map +1 -0
- package/esm/components/atoms/Card/Footer/Footer.d.ts +7 -0
- package/esm/components/atoms/Card/Footer/Footer.js +13 -0
- package/esm/components/atoms/Card/Footer/Footer.js.map +1 -0
- package/esm/components/atoms/Card/Footer/index.d.ts +2 -0
- package/esm/components/atoms/Card/Footer/index.js +2 -0
- package/esm/components/atoms/Card/Footer/index.js.map +1 -0
- package/esm/components/atoms/Card/Header/Header.d.ts +7 -0
- package/esm/components/atoms/Card/Header/Header.js +13 -0
- package/esm/components/atoms/Card/Header/Header.js.map +1 -0
- package/esm/components/atoms/Card/Header/index.d.ts +2 -0
- package/esm/components/atoms/Card/Header/index.js +2 -0
- package/esm/components/atoms/Card/Header/index.js.map +1 -0
- package/esm/components/atoms/Card/index.d.ts +2 -0
- package/esm/components/atoms/Card/index.js +2 -0
- package/esm/components/atoms/Card/index.js.map +1 -0
- package/esm/components/atoms/Card/styled.d.ts +8 -0
- package/esm/components/atoms/Card/styled.js +11 -0
- package/esm/components/atoms/Card/styled.js.map +1 -0
- package/esm/components/atoms/Checkbox/Checkbox.d.ts +14 -0
- package/esm/components/atoms/Checkbox/Checkbox.js +56 -0
- package/esm/components/atoms/Checkbox/Checkbox.js.map +1 -0
- package/esm/components/atoms/Checkbox/index.d.ts +2 -0
- package/esm/components/atoms/Checkbox/index.js +2 -0
- package/esm/components/atoms/Checkbox/index.js.map +1 -0
- package/esm/components/atoms/Checkbox/styled.d.ts +27 -0
- package/esm/components/atoms/Checkbox/styled.js +50 -0
- package/esm/components/atoms/Checkbox/styled.js.map +1 -0
- package/esm/components/atoms/Divider/Divider.d.ts +8 -0
- package/esm/components/atoms/Divider/Divider.js +18 -0
- package/esm/components/atoms/Divider/Divider.js.map +1 -0
- package/esm/components/atoms/Divider/index.d.ts +2 -0
- package/esm/components/atoms/Divider/index.js +2 -0
- package/esm/components/atoms/Divider/index.js.map +1 -0
- package/esm/components/atoms/Divider/styled.d.ts +13 -0
- package/esm/components/atoms/Divider/styled.js +28 -0
- package/esm/components/atoms/Divider/styled.js.map +1 -0
- package/esm/components/atoms/GroupButton/GroupButton.d.ts +32 -0
- package/esm/components/atoms/GroupButton/GroupButton.js +78 -0
- package/esm/components/atoms/GroupButton/GroupButton.js.map +1 -0
- package/esm/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
- package/esm/components/atoms/GroupButton/GroupButtonOption.js +19 -0
- package/esm/components/atoms/GroupButton/GroupButtonOption.js.map +1 -0
- package/esm/components/atoms/GroupButton/index.d.ts +4 -0
- package/esm/components/atoms/GroupButton/index.js +3 -0
- package/esm/components/atoms/GroupButton/index.js.map +1 -0
- package/esm/components/atoms/GroupButton/styled.d.ts +42 -0
- package/esm/components/atoms/GroupButton/styled.js +97 -0
- package/esm/components/atoms/GroupButton/styled.js.map +1 -0
- package/esm/components/atoms/Icon/Icon.d.ts +14 -0
- package/esm/components/atoms/Icon/Icon.js +37 -0
- package/esm/components/atoms/Icon/Icon.js.map +1 -0
- package/esm/components/atoms/Icon/helpers.d.ts +4 -0
- package/esm/components/atoms/Icon/helpers.js +78 -0
- package/esm/components/atoms/Icon/helpers.js.map +1 -0
- package/esm/components/atoms/Icon/index.d.ts +2 -0
- package/esm/components/atoms/Icon/index.js +2 -0
- package/esm/components/atoms/Icon/index.js.map +1 -0
- package/esm/components/atoms/Input/Hint.d.ts +10 -0
- package/esm/components/atoms/Input/Hint.js +41 -0
- package/esm/components/atoms/Input/Hint.js.map +1 -0
- package/esm/components/atoms/Input/InputContainer/InputContainer.d.ts +29 -0
- package/esm/components/atoms/Input/InputContainer/InputContainer.js +66 -0
- package/esm/components/atoms/Input/InputContainer/InputContainer.js.map +1 -0
- package/esm/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
- package/esm/components/atoms/Input/InputElement/InputElement.js +37 -0
- package/esm/components/atoms/Input/InputElement/InputElement.js.map +1 -0
- package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
- package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +92 -0
- package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -0
- package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +10 -0
- package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +30 -0
- package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -0
- package/esm/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
- package/esm/components/atoms/Input/PressableInputContainer/index.js +2 -0
- package/esm/components/atoms/Input/PressableInputContainer/index.js.map +1 -0
- package/esm/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
- package/esm/components/atoms/Input/PressableInputContainer/styled.js +7 -0
- package/esm/components/atoms/Input/PressableInputContainer/styled.js.map +1 -0
- package/esm/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
- package/esm/components/atoms/Input/hooks/useInputFocus.js +40 -0
- package/esm/components/atoms/Input/hooks/useInputFocus.js.map +1 -0
- package/esm/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
- package/esm/components/atoms/Input/hooks/useNumberMask.js +108 -0
- package/esm/components/atoms/Input/hooks/useNumberMask.js.map +1 -0
- package/esm/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
- package/esm/components/atoms/Input/hooks/useStringMask.js +116 -0
- package/esm/components/atoms/Input/hooks/useStringMask.js.map +1 -0
- package/esm/components/atoms/Input/index.d.ts +13 -0
- package/esm/components/atoms/Input/index.js +10 -0
- package/esm/components/atoms/Input/index.js.map +1 -0
- package/esm/components/atoms/Input/styled.d.ts +64 -0
- package/esm/components/atoms/Input/styled.js +93 -0
- package/esm/components/atoms/Input/styled.js.map +1 -0
- package/esm/components/atoms/Paper/Paper.d.ts +8 -0
- package/esm/components/atoms/Paper/Paper.js +24 -0
- package/esm/components/atoms/Paper/Paper.js.map +1 -0
- package/esm/components/atoms/Paper/index.d.ts +2 -0
- package/esm/components/atoms/Paper/index.js +2 -0
- package/esm/components/atoms/Paper/index.js.map +1 -0
- package/esm/components/atoms/Paper/styled.d.ts +9 -0
- package/esm/components/atoms/Paper/styled.js +11 -0
- package/esm/components/atoms/Paper/styled.js.map +1 -0
- package/esm/components/atoms/PressableSurface/PressableSurface.d.ts +10 -0
- package/esm/components/atoms/PressableSurface/PressableSurface.js +86 -0
- package/esm/components/atoms/PressableSurface/PressableSurface.js.map +1 -0
- package/esm/components/atoms/PressableSurface/index.d.ts +2 -0
- package/esm/components/atoms/PressableSurface/index.js +2 -0
- package/esm/components/atoms/PressableSurface/index.js.map +1 -0
- package/esm/components/atoms/ProgressBar/ProgressBar.d.ts +18 -0
- package/esm/components/atoms/ProgressBar/ProgressBar.js +90 -0
- package/esm/components/atoms/ProgressBar/ProgressBar.js.map +1 -0
- package/esm/components/atoms/ProgressBar/index.d.ts +2 -0
- package/esm/components/atoms/ProgressBar/index.js +2 -0
- package/esm/components/atoms/ProgressBar/index.js.map +1 -0
- package/esm/components/atoms/ProgressBar/styled.d.ts +20 -0
- package/esm/components/atoms/ProgressBar/styled.js +26 -0
- package/esm/components/atoms/ProgressBar/styled.js.map +1 -0
- package/esm/components/atoms/RadioButton/RadioButton.d.ts +14 -0
- package/esm/components/atoms/RadioButton/RadioButton.js +51 -0
- package/esm/components/atoms/RadioButton/RadioButton.js.map +1 -0
- package/esm/components/atoms/RadioButton/index.d.ts +2 -0
- package/esm/components/atoms/RadioButton/index.js +2 -0
- package/esm/components/atoms/RadioButton/index.js.map +1 -0
- package/esm/components/atoms/RadioButton/styled.d.ts +27 -0
- package/esm/components/atoms/RadioButton/styled.js +30 -0
- package/esm/components/atoms/RadioButton/styled.js.map +1 -0
- package/esm/components/atoms/Switch/Switch.d.ts +16 -0
- package/esm/components/atoms/Switch/Switch.js +87 -0
- package/esm/components/atoms/Switch/Switch.js.map +1 -0
- package/esm/components/atoms/Switch/animation.d.ts +2 -0
- package/esm/components/atoms/Switch/animation.js +33 -0
- package/esm/components/atoms/Switch/animation.js.map +1 -0
- package/esm/components/atoms/Switch/index.d.ts +2 -0
- package/esm/components/atoms/Switch/index.js +2 -0
- package/esm/components/atoms/Switch/index.js.map +1 -0
- package/esm/components/atoms/Switch/styled.d.ts +16 -0
- package/esm/components/atoms/Switch/styled.js +24 -0
- package/esm/components/atoms/Switch/styled.js.map +1 -0
- package/esm/components/atoms/Tag/Tag.d.ts +12 -0
- package/esm/components/atoms/Tag/Tag.js +80 -0
- package/esm/components/atoms/Tag/Tag.js.map +1 -0
- package/esm/components/atoms/Tag/index.d.ts +2 -0
- package/esm/components/atoms/Tag/index.js +2 -0
- package/esm/components/atoms/Tag/index.js.map +1 -0
- package/esm/components/atoms/Tag/styled.d.ts +24 -0
- package/esm/components/atoms/Tag/styled.js +39 -0
- package/esm/components/atoms/Tag/styled.js.map +1 -0
- package/esm/components/atoms/Text/Text.d.ts +19 -0
- package/esm/components/atoms/Text/Text.js +47 -0
- package/esm/components/atoms/Text/Text.js.map +1 -0
- package/esm/components/atoms/Text/functions.d.ts +2 -0
- package/esm/components/atoms/Text/functions.js +7 -0
- package/esm/components/atoms/Text/functions.js.map +1 -0
- package/esm/components/atoms/Text/index.d.ts +2 -0
- package/esm/components/atoms/Text/index.js +2 -0
- package/esm/components/atoms/Text/index.js.map +1 -0
- package/esm/components/atoms/Text/styled.d.ts +20 -0
- package/esm/components/atoms/Text/styled.js +46 -0
- package/esm/components/atoms/Text/styled.js.map +1 -0
- package/esm/components/atoms/shared/PaperAndCard.d.ts +5 -0
- package/esm/components/atoms/shared/PaperAndCard.js +25 -0
- package/esm/components/atoms/shared/PaperAndCard.js.map +1 -0
- package/esm/components/molecules/Calendar/Calendar.d.ts +20 -0
- package/esm/components/molecules/Calendar/Calendar.js +144 -0
- package/esm/components/molecules/Calendar/Calendar.js.map +1 -0
- package/esm/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
- package/esm/components/molecules/Calendar/components/MonthWeek.js +128 -0
- package/esm/components/molecules/Calendar/components/MonthWeek.js.map +1 -0
- package/esm/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
- package/esm/components/molecules/Calendar/components/Weekdays.js +29 -0
- package/esm/components/molecules/Calendar/components/Weekdays.js.map +1 -0
- package/esm/components/molecules/Calendar/components/index.d.ts +2 -0
- package/esm/components/molecules/Calendar/components/index.js +3 -0
- package/esm/components/molecules/Calendar/components/index.js.map +1 -0
- package/esm/components/molecules/Calendar/index.d.ts +2 -0
- package/esm/components/molecules/Calendar/index.js +2 -0
- package/esm/components/molecules/Calendar/index.js.map +1 -0
- package/esm/components/molecules/Calendar/styled.d.ts +61 -0
- package/esm/components/molecules/Calendar/styled.js +56 -0
- package/esm/components/molecules/Calendar/styled.js.map +1 -0
- package/esm/components/molecules/DatePicker/DatePicker.d.ts +19 -0
- package/esm/components/molecules/DatePicker/DatePicker.js +120 -0
- package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -0
- package/esm/components/molecules/DatePicker/index.d.ts +2 -0
- package/esm/components/molecules/DatePicker/index.js +2 -0
- package/esm/components/molecules/DatePicker/index.js.map +1 -0
- package/esm/components/molecules/DatePicker/styled.d.ts +15 -0
- package/esm/components/molecules/DatePicker/styled.js +22 -0
- package/esm/components/molecules/DatePicker/styled.js.map +1 -0
- package/esm/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
- package/esm/components/molecules/DateTimePicker/DateTimePicker.js +122 -0
- package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -0
- package/esm/components/molecules/DateTimePicker/index.d.ts +2 -0
- package/esm/components/molecules/DateTimePicker/index.js +2 -0
- package/esm/components/molecules/DateTimePicker/index.js.map +1 -0
- package/esm/components/molecules/DateTimePicker/styled.d.ts +8 -0
- package/esm/components/molecules/DateTimePicker/styled.js +12 -0
- package/esm/components/molecules/DateTimePicker/styled.js.map +1 -0
- package/esm/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
- package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +219 -0
- package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -0
- package/esm/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
- package/esm/components/molecules/DateTimeSelector/Selector.js +113 -0
- package/esm/components/molecules/DateTimeSelector/Selector.js.map +1 -0
- package/esm/components/molecules/DateTimeSelector/index.d.ts +2 -0
- package/esm/components/molecules/DateTimeSelector/index.js +2 -0
- package/esm/components/molecules/DateTimeSelector/index.js.map +1 -0
- package/esm/components/molecules/DateTimeSelector/styled.d.ts +52 -0
- package/esm/components/molecules/DateTimeSelector/styled.js +54 -0
- package/esm/components/molecules/DateTimeSelector/styled.js.map +1 -0
- package/esm/components/molecules/Grid/functions.d.ts +3 -0
- package/esm/components/molecules/Grid/functions.js +16 -0
- package/esm/components/molecules/Grid/functions.js.map +1 -0
- package/esm/components/molecules/Grid/index.d.ts +42 -0
- package/esm/components/molecules/Grid/index.js +2 -0
- package/esm/components/molecules/Grid/index.js.map +1 -0
- package/esm/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
- package/esm/components/molecules/HintInputContainer/HintInputContainer.js +46 -0
- package/esm/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -0
- package/esm/components/molecules/HintInputContainer/index.d.ts +2 -0
- package/esm/components/molecules/HintInputContainer/index.js +2 -0
- package/esm/components/molecules/HintInputContainer/index.js.map +1 -0
- package/esm/components/molecules/HintInputContainer/styled.d.ts +0 -0
- package/esm/components/molecules/HintInputContainer/styled.js +2 -0
- package/esm/components/molecules/HintInputContainer/styled.js.map +1 -0
- package/esm/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
- package/esm/components/molecules/IconTextButton/IconComponent.js +20 -0
- package/esm/components/molecules/IconTextButton/IconComponent.js.map +1 -0
- package/esm/components/molecules/IconTextButton/IconTextButton.d.ts +8 -0
- package/esm/components/molecules/IconTextButton/IconTextButton.js +2 -0
- package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
- package/esm/components/molecules/IconTextButton/index.d.ts +2 -0
- package/esm/components/molecules/IconTextButton/index.js +2 -0
- package/esm/components/molecules/IconTextButton/index.js.map +1 -0
- package/esm/components/molecules/IconTextButton/styled.d.ts +11 -0
- package/esm/components/molecules/IconTextButton/styled.js +14 -0
- package/esm/components/molecules/IconTextButton/styled.js.map +1 -0
- package/esm/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
- package/esm/components/molecules/InputPassword/InputPasswordIcon.js +33 -0
- package/esm/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -0
- package/esm/components/molecules/InputPassword/index.d.ts +1 -0
- package/esm/components/molecules/InputPassword/index.js +2 -0
- package/esm/components/molecules/InputPassword/index.js.map +1 -0
- package/esm/components/molecules/InputPassword/styled.d.ts +7 -0
- package/esm/components/molecules/InputPassword/styled.js +11 -0
- package/esm/components/molecules/InputPassword/styled.js.map +1 -0
- package/esm/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
- package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +2 -0
- package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
- package/esm/components/molecules/LabeledSwitch/index.d.ts +1 -0
- package/esm/components/molecules/LabeledSwitch/index.js +2 -0
- package/esm/components/molecules/LabeledSwitch/index.js.map +1 -0
- package/esm/components/molecules/Snackbar/Snackbar.d.ts +19 -0
- package/esm/components/molecules/Snackbar/Snackbar.js +103 -0
- package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -0
- package/esm/components/molecules/Snackbar/index.d.ts +2 -0
- package/esm/components/molecules/Snackbar/index.js +2 -0
- package/esm/components/molecules/Snackbar/index.js.map +1 -0
- package/esm/components/molecules/Snackbar/styled.d.ts +47 -0
- package/esm/components/molecules/Snackbar/styled.js +54 -0
- package/esm/components/molecules/Snackbar/styled.js.map +1 -0
- package/esm/components/molecules/TextArea/TextArea.d.ts +14 -0
- package/esm/components/molecules/TextArea/TextArea.js +77 -0
- package/esm/components/molecules/TextArea/TextArea.js.map +1 -0
- package/esm/components/molecules/TextArea/index.d.ts +3 -0
- package/esm/components/molecules/TextArea/index.js +3 -0
- package/esm/components/molecules/TextArea/index.js.map +1 -0
- package/esm/components/molecules/TextArea/styled.d.ts +12 -0
- package/esm/components/molecules/TextArea/styled.js +14 -0
- package/esm/components/molecules/TextArea/styled.js.map +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +3 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/useDebouncedState.d.ts +2 -0
- package/esm/hooks/useDebouncedState.js +31 -0
- package/esm/hooks/useDebouncedState.js.map +1 -0
- package/esm/hooks/useTheme.d.ts +2 -0
- package/esm/hooks/useTheme.js +5 -0
- package/esm/hooks/useTheme.js.map +1 -0
- package/esm/index.d.ts +64 -0
- package/esm/index.js +36 -0
- package/esm/index.js.map +1 -0
- package/esm/styles/ThemeProvider.d.ts +4 -0
- package/esm/styles/ThemeProvider.js +13 -0
- package/esm/styles/ThemeProvider.js.map +1 -0
- package/esm/styles/definitions.d.ts +45 -0
- package/esm/styles/definitions.js +168 -0
- package/esm/styles/definitions.js.map +1 -0
- package/esm/styles/light.d.ts +2 -0
- package/esm/styles/light.js +42 -0
- package/esm/styles/light.js.map +1 -0
- package/esm/types/defaults.d.ts +134 -0
- package/esm/types/defaults.js +2 -0
- package/esm/types/defaults.js.map +1 -0
- package/esm/utils/IPhoneXHelper.d.ts +4 -0
- package/esm/utils/IPhoneXHelper.js +23 -0
- package/esm/utils/IPhoneXHelper.js.map +1 -0
- package/esm/utils/ResponsiveFontSize.d.ts +3 -0
- package/esm/utils/ResponsiveFontSize.js +37 -0
- package/esm/utils/ResponsiveFontSize.js.map +1 -0
- package/esm/utils/extractNumbersFromString.d.ts +2 -0
- package/esm/utils/extractNumbersFromString.js +7 -0
- package/esm/utils/extractNumbersFromString.js.map +1 -0
- package/esm/utils/formatWithMask.d.ts +3 -0
- package/esm/utils/formatWithMask.js +19 -0
- package/esm/utils/formatWithMask.js.map +1 -0
- package/esm/utils/index.d.ts +7 -0
- package/esm/utils/index.js +8 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/lightenDarkenColor.d.ts +1 -0
- package/esm/utils/lightenDarkenColor.js +18 -0
- package/esm/utils/lightenDarkenColor.js.map +1 -0
- package/esm/utils/masks.d.ts +11 -0
- package/esm/utils/masks.js +19 -0
- package/esm/utils/masks.js.map +1 -0
- package/esm/utils/variantComplement.d.ts +6 -0
- package/esm/utils/variantComplement.js +26 -0
- package/esm/utils/variantComplement.js.map +1 -0
- package/package.json +12 -7
- package/src/components/atoms/Avatar/index.ts +2 -1
- package/src/components/atoms/Badge/index.ts +2 -1
- package/src/components/atoms/Badge/styled.ts +2 -3
- package/src/components/atoms/BoxContent/index.ts +2 -1
- package/src/components/atoms/Button/index.ts +3 -3
- package/src/components/atoms/Card/Footer/index.ts +2 -1
- package/src/components/atoms/Card/Header/index.ts +2 -1
- package/src/components/atoms/Card/index.ts +2 -1
- package/src/components/atoms/Checkbox/index.ts +2 -1
- package/src/components/atoms/Divider/index.ts +2 -1
- package/src/components/atoms/GroupButton/GroupButton.tsx +2 -5
- package/src/components/atoms/GroupButton/index.ts +4 -9
- package/src/components/atoms/Icon/index.ts +2 -1
- package/src/components/atoms/Input/InputContainer/InputContainer.tsx +3 -3
- package/src/components/atoms/Input/InputElement/InputElement.tsx +4 -5
- package/src/components/atoms/Input/InputMaskElement/InputMaskElement.tsx +4 -5
- package/src/components/atoms/Input/PressableInputContainer/index.ts +2 -4
- package/src/components/atoms/Input/index.ts +8 -14
- package/src/components/atoms/Paper/index.ts +2 -1
- package/src/components/atoms/PressableSurface/index.ts +2 -4
- package/src/components/atoms/ProgressBar/ProgressBar.tsx +2 -4
- package/src/components/atoms/ProgressBar/index.ts +2 -1
- package/src/components/atoms/RadioButton/index.ts +2 -1
- package/src/components/atoms/Switch/Switch.tsx +39 -19
- package/src/components/atoms/Switch/animation.ts +4 -6
- package/src/components/atoms/Switch/index.ts +2 -1
- package/src/components/atoms/Switch/styled.ts +4 -6
- package/src/components/atoms/Tag/Tag.tsx +1 -1
- package/src/components/atoms/Tag/index.ts +2 -1
- package/src/components/atoms/Text/index.ts +2 -1
- package/src/components/atoms/shared/PaperAndCard.ts +1 -1
- package/src/components/molecules/Calendar/index.ts +3 -3
- package/src/components/molecules/DatePicker/DatePicker.tsx +12 -8
- package/src/components/molecules/DatePicker/index.ts +2 -1
- package/src/components/molecules/DateTimePicker/DateTimePicker.tsx +19 -11
- package/src/components/molecules/DateTimePicker/index.ts +2 -4
- package/src/components/molecules/DateTimeSelector/DateTimeSelector.tsx +0 -1
- package/src/components/molecules/DateTimeSelector/index.ts +2 -2
- package/src/components/molecules/Grid/functions.ts +29 -0
- package/src/components/molecules/Grid/index.ts +66 -2
- package/src/components/molecules/HintInputContainer/HintInputContainer.tsx +6 -1
- package/src/components/molecules/IconTextButton/IconComponent.tsx +31 -0
- package/src/components/molecules/IconTextButton/IconTextButton.tsx +10 -0
- package/src/components/molecules/IconTextButton/index.ts +5 -0
- package/src/components/molecules/IconTextButton/styled.ts +20 -0
- package/src/components/molecules/LabeledSwitch/LabeledSwitch.tsx +9 -0
- package/src/components/molecules/LabeledSwitch/index.ts +1 -0
- package/src/components/molecules/Snackbar/Snackbar.tsx +1 -1
- package/src/components/molecules/Snackbar/index.ts +2 -1
- package/src/components/molecules/Snackbar/styled.ts +6 -2
- package/src/components/molecules/TextArea/TextArea.tsx +6 -2
- package/src/components/molecules/TextArea/index.ts +2 -1
- package/src/components/molecules/TextArea/styled.ts +5 -2
- package/src/index.ts +82 -54
- package/src/styles/definitions.ts +8 -1
- package/src/styles/light.ts +2 -0
- package/src/types/defaults.ts +11 -1
- package/src/utils/IPhoneXHelper.ts +27 -22
- package/src/utils/ResponsiveFontSize.ts +55 -36
- package/src/utils/index.ts +5 -4
- package/src/utils/variantComplement.ts +36 -0
- package/tsconfig.build.esm.json +10 -0
- package/dist/components/molecules/Grid/Grid.d.ts +0 -15
- package/dist/components/molecules/Grid/Grid.js +0 -55
- package/dist/components/molecules/Grid/Grid.js.map +0 -1
- package/dist/components/molecules/Grid/Item/Item.d.ts +0 -30
- package/dist/components/molecules/Grid/Item/Item.js +0 -68
- package/dist/components/molecules/Grid/Item/Item.js.map +0 -1
- package/dist/components/molecules/Grid/Item/index.d.ts +0 -1
- package/dist/components/molecules/Grid/Item/index.js +0 -14
- package/dist/components/molecules/Grid/Item/index.js.map +0 -1
- package/src/components/molecules/Grid/Grid.stories.tsx +0 -132
- package/src/components/molecules/Grid/Grid.tsx +0 -87
- package/src/components/molecules/Grid/Item/Item.tsx +0 -93
- package/src/components/molecules/Grid/Item/index.ts +0 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Animated } from 'react-native';
|
|
5
|
+
import { Icon } from '../../atoms/Icon';
|
|
6
|
+
import { ContentContainer, DismissContainer, IconContainer, SnackbarContainer, StyledContainerFlexRow, StyledProgressBar, TextContainer } from './styled';
|
|
7
|
+
export var Snackbar = function Snackbar(_ref) {
|
|
8
|
+
var children = _ref.children,
|
|
9
|
+
_ref$open = _ref.open,
|
|
10
|
+
open = _ref$open === void 0 ? true : _ref$open,
|
|
11
|
+
onClose = _ref.onClose,
|
|
12
|
+
_ref$dismissable = _ref.dismissable,
|
|
13
|
+
dismissable = _ref$dismissable === void 0 ? false : _ref$dismissable,
|
|
14
|
+
_ref$timeout = _ref.timeout,
|
|
15
|
+
timeout = _ref$timeout === void 0 ? undefined : _ref$timeout,
|
|
16
|
+
leftIcon = _ref.leftIcon,
|
|
17
|
+
_ref$colorTone = _ref.colorTone,
|
|
18
|
+
colorTone = _ref$colorTone === void 0 ? 'xlight' : _ref$colorTone,
|
|
19
|
+
_ref$colorVariant = _ref.colorVariant,
|
|
20
|
+
colorVariant = _ref$colorVariant === void 0 ? 'primary' : _ref$colorVariant,
|
|
21
|
+
_ref$rightIcon = _ref.rightIcon,
|
|
22
|
+
rightIcon = _ref$rightIcon === void 0 ? {
|
|
23
|
+
colorTone: 'medium',
|
|
24
|
+
colorVariant: 'primary'
|
|
25
|
+
} : _ref$rightIcon,
|
|
26
|
+
_ref$anchor = _ref.anchor,
|
|
27
|
+
anchor = _ref$anchor === void 0 ? 'bottom' : _ref$anchor,
|
|
28
|
+
anchorDistance = _ref.anchorDistance,
|
|
29
|
+
style = _ref.style;
|
|
30
|
+
var fadeAnim = React.useRef(new Animated.Value(0)).current;
|
|
31
|
+
var duration = 500;
|
|
32
|
+
|
|
33
|
+
var fadeIn = function fadeIn() {
|
|
34
|
+
Animated.timing(fadeAnim, {
|
|
35
|
+
toValue: 1,
|
|
36
|
+
useNativeDriver: true,
|
|
37
|
+
duration: duration
|
|
38
|
+
}).start(function () {
|
|
39
|
+
return timeout && fadeOut();
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var fadeOut = function fadeOut() {
|
|
44
|
+
Animated.timing(fadeAnim, {
|
|
45
|
+
toValue: 0,
|
|
46
|
+
useNativeDriver: true,
|
|
47
|
+
duration: duration,
|
|
48
|
+
delay: timeout ? timeout - duration : 0
|
|
49
|
+
}).start();
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
React.useEffect(function () {
|
|
53
|
+
if (open) {
|
|
54
|
+
fadeIn();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (open && timeout) {
|
|
58
|
+
setTimeout(function () {
|
|
59
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
60
|
+
}, timeout + duration);
|
|
61
|
+
}
|
|
62
|
+
}, [open, timeout]);
|
|
63
|
+
return React.createElement(SnackbarContainer, {
|
|
64
|
+
colorVariant: colorVariant,
|
|
65
|
+
colorTone: colorTone,
|
|
66
|
+
elevated: true,
|
|
67
|
+
anchor: anchor,
|
|
68
|
+
anchorDistance: anchorDistance,
|
|
69
|
+
visible: open,
|
|
70
|
+
style: [{
|
|
71
|
+
opacity: fadeAnim
|
|
72
|
+
}, style],
|
|
73
|
+
timeout: timeout
|
|
74
|
+
}, React.createElement(StyledContainerFlexRow, null, React.createElement(ContentContainer, null, leftIcon && React.createElement(IconContainer, null, React.createElement(Icon, _extends({}, leftIcon, {
|
|
75
|
+
size: "centi"
|
|
76
|
+
}))), React.createElement(TextContainer, null, children)), dismissable && React.createElement(DismissContainer, {
|
|
77
|
+
effect: "none",
|
|
78
|
+
onPress: function onPress() {
|
|
79
|
+
fadeOut();
|
|
80
|
+
setTimeout(function () {
|
|
81
|
+
fadeAnim.setValue(0);
|
|
82
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
83
|
+
}, duration);
|
|
84
|
+
}
|
|
85
|
+
}, React.createElement(Icon, _extends({}, rightIcon, {
|
|
86
|
+
size: "centi",
|
|
87
|
+
name: "close",
|
|
88
|
+
type: "material-community"
|
|
89
|
+
})))), timeout && open && React.createElement(StyledProgressBar, {
|
|
90
|
+
valueNow: 0,
|
|
91
|
+
valueMax: 100,
|
|
92
|
+
valueMin: 0,
|
|
93
|
+
animate: true,
|
|
94
|
+
color: colorVariant,
|
|
95
|
+
colorTone: "medium",
|
|
96
|
+
animationParameters: {
|
|
97
|
+
direction: 'left',
|
|
98
|
+
duration: timeout
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
export default Snackbar;
|
|
103
|
+
//# sourceMappingURL=Snackbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Snackbar.js","names":["React","Animated","Icon","ContentContainer","DismissContainer","IconContainer","SnackbarContainer","StyledContainerFlexRow","StyledProgressBar","TextContainer","Snackbar","children","open","onClose","dismissable","timeout","undefined","leftIcon","colorTone","colorVariant","rightIcon","anchor","anchorDistance","style","fadeAnim","useRef","Value","current","duration","fadeIn","timing","toValue","useNativeDriver","start","fadeOut","delay","useEffect","setTimeout","opacity","setValue","direction"],"sources":["../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated, StyleProp, ViewStyle } from 'react-native';\nimport { ColorGradationType, ColorType } from '../../../types/defaults';\nimport { Icon, IconProps } from '../../atoms/Icon';\nimport {\n ContentContainer,\n DismissContainer,\n IconContainer,\n SnackbarContainer,\n StyledContainerFlexRow,\n StyledProgressBar,\n TextContainer,\n} from './styled';\n\nexport interface SnackbarProps {\n colorVariant?: ColorType;\n colorTone?: ColorGradationType;\n open: boolean;\n /** Close callback */\n onClose?: () => void;\n /** Snackbar is closable */\n dismissable?: boolean;\n /** Time in miliseconds for auto hide */\n timeout?: number;\n leftIcon?: IconProps;\n /** Properties for close icon */\n rightIcon?: Omit<IconProps, 'name' | 'type'>;\n anchor?: 'top' | 'bottom';\n /** Distance from anchorage (results in px) */\n anchorDistance?: number;\n style?: StyleProp<ViewStyle>;\n}\n\nexport const Snackbar: React.FC<SnackbarProps> = ({\n children,\n open = true,\n onClose,\n dismissable = false,\n timeout = undefined,\n leftIcon,\n colorTone = 'xlight',\n colorVariant = 'primary',\n rightIcon = { colorTone: 'medium', colorVariant: 'primary' },\n anchor = 'bottom',\n anchorDistance,\n style,\n}) => {\n const fadeAnim = React.useRef(new Animated.Value(0)).current;\n const duration = 500;\n\n const fadeIn = () => {\n Animated.timing(fadeAnim, {\n toValue: 1,\n useNativeDriver: true,\n duration,\n }).start(() => timeout && fadeOut());\n };\n\n const fadeOut = () => {\n Animated.timing(fadeAnim, {\n toValue: 0,\n useNativeDriver: true,\n duration,\n delay: timeout ? timeout - duration : 0,\n }).start();\n };\n\n React.useEffect(() => {\n if (open) {\n fadeIn();\n }\n if (open && timeout) {\n setTimeout(() => {\n onClose?.();\n }, timeout + duration);\n }\n }, [open, timeout]);\n\n return (\n <SnackbarContainer\n colorVariant={colorVariant}\n colorTone={colorTone}\n elevated\n anchor={anchor}\n anchorDistance={anchorDistance}\n visible={open}\n style={[{ opacity: fadeAnim as unknown as number }, style]}\n timeout={timeout}\n >\n <StyledContainerFlexRow>\n <ContentContainer>\n {leftIcon && (\n <IconContainer>\n <Icon {...leftIcon} size=\"centi\" />\n </IconContainer>\n )}\n <TextContainer>{children}</TextContainer>\n </ContentContainer>\n {dismissable && (\n <DismissContainer\n effect=\"none\"\n onPress={() => {\n fadeOut();\n setTimeout(() => {\n fadeAnim.setValue(0);\n onClose?.();\n }, duration);\n }}\n >\n <Icon\n {...rightIcon}\n size=\"centi\"\n name=\"close\"\n type=\"material-community\"\n />\n </DismissContainer>\n )}\n </StyledContainerFlexRow>\n {timeout && open && (\n <StyledProgressBar\n valueNow={0}\n valueMax={100}\n valueMin={0}\n animate={true}\n color={colorVariant}\n colorTone=\"medium\"\n animationParameters={{ direction: 'left', duration: timeout }}\n />\n )}\n </SnackbarContainer>\n );\n};\n\nexport default Snackbar;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,QAA+C,cAA/C;AAEA,SAASC,IAAT,QAAgC,kBAAhC;AACA,SACEC,gBADF,EAEEC,gBAFF,EAGEC,aAHF,EAIEC,iBAJF,EAKEC,sBALF,EAMEC,iBANF,EAOEC,aAPF,QAQO,UARP;AA6BA,OAAO,IAAMC,QAAiC,GAAG,SAApCA,QAAoC,OAa3C;EAAA,IAZJC,QAYI,QAZJA,QAYI;EAAA,qBAXJC,IAWI;EAAA,IAXJA,IAWI,0BAXG,IAWH;EAAA,IAVJC,OAUI,QAVJA,OAUI;EAAA,4BATJC,WASI;EAAA,IATJA,WASI,iCATU,KASV;EAAA,wBARJC,OAQI;EAAA,IARJA,OAQI,6BARMC,SAQN;EAAA,IAPJC,QAOI,QAPJA,QAOI;EAAA,0BANJC,SAMI;EAAA,IANJA,SAMI,+BANQ,QAMR;EAAA,6BALJC,YAKI;EAAA,IALJA,YAKI,kCALW,SAKX;EAAA,0BAJJC,SAII;EAAA,IAJJA,SAII,+BAJQ;IAAEF,SAAS,EAAE,QAAb;IAAuBC,YAAY,EAAE;EAArC,CAIR;EAAA,uBAHJE,MAGI;EAAA,IAHJA,MAGI,4BAHK,QAGL;EAAA,IAFJC,cAEI,QAFJA,cAEI;EAAA,IADJC,KACI,QADJA,KACI;EACJ,IAAMC,QAAQ,GAAGxB,KAAK,CAACyB,MAAN,CAAa,IAAIxB,QAAQ,CAACyB,KAAb,CAAmB,CAAnB,CAAb,EAAoCC,OAArD;EACA,IAAMC,QAAQ,GAAG,GAAjB;;EAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,GAAM;IACnB5B,QAAQ,CAAC6B,MAAT,CAAgBN,QAAhB,EAA0B;MACxBO,OAAO,EAAE,CADe;MAExBC,eAAe,EAAE,IAFO;MAGxBJ,QAAQ,EAARA;IAHwB,CAA1B,EAIGK,KAJH,CAIS;MAAA,OAAMlB,OAAO,IAAImB,OAAO,EAAxB;IAAA,CAJT;EAKD,CAND;;EAQA,IAAMA,OAAO,GAAG,SAAVA,OAAU,GAAM;IACpBjC,QAAQ,CAAC6B,MAAT,CAAgBN,QAAhB,EAA0B;MACxBO,OAAO,EAAE,CADe;MAExBC,eAAe,EAAE,IAFO;MAGxBJ,QAAQ,EAARA,QAHwB;MAIxBO,KAAK,EAAEpB,OAAO,GAAGA,OAAO,GAAGa,QAAb,GAAwB;IAJd,CAA1B,EAKGK,KALH;EAMD,CAPD;;EASAjC,KAAK,CAACoC,SAAN,CAAgB,YAAM;IACpB,IAAIxB,IAAJ,EAAU;MACRiB,MAAM;IACP;;IACD,IAAIjB,IAAI,IAAIG,OAAZ,EAAqB;MACnBsB,UAAU,CAAC,YAAM;QACfxB,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO;MACR,CAFS,EAEPE,OAAO,GAAGa,QAFH,CAAV;IAGD;EACF,CATD,EASG,CAAChB,IAAD,EAAOG,OAAP,CATH;EAWA,OACE,oBAAC,iBAAD;IACE,YAAY,EAAEI,YADhB;IAEE,SAAS,EAAED,SAFb;IAGE,QAAQ,MAHV;IAIE,MAAM,EAAEG,MAJV;IAKE,cAAc,EAAEC,cALlB;IAME,OAAO,EAAEV,IANX;IAOE,KAAK,EAAE,CAAC;MAAE0B,OAAO,EAAEd;IAAX,CAAD,EAA6CD,KAA7C,CAPT;IAQE,OAAO,EAAER;EARX,GAUE,oBAAC,sBAAD,QACE,oBAAC,gBAAD,QACGE,QAAQ,IACP,oBAAC,aAAD,QACE,oBAAC,IAAD,eAAUA,QAAV;IAAoB,IAAI,EAAC;EAAzB,GADF,CAFJ,EAME,oBAAC,aAAD,QAAgBN,QAAhB,CANF,CADF,EASGG,WAAW,IACV,oBAAC,gBAAD;IACE,MAAM,EAAC,MADT;IAEE,OAAO,EAAE,mBAAM;MACboB,OAAO;MACPG,UAAU,CAAC,YAAM;QACfb,QAAQ,CAACe,QAAT,CAAkB,CAAlB;QACA1B,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO;MACR,CAHS,EAGPe,QAHO,CAAV;IAID;EARH,GAUE,oBAAC,IAAD,eACMR,SADN;IAEE,IAAI,EAAC,OAFP;IAGE,IAAI,EAAC,OAHP;IAIE,IAAI,EAAC;EAJP,GAVF,CAVJ,CAVF,EAuCGL,OAAO,IAAIH,IAAX,IACC,oBAAC,iBAAD;IACE,QAAQ,EAAE,CADZ;IAEE,QAAQ,EAAE,GAFZ;IAGE,QAAQ,EAAE,CAHZ;IAIE,OAAO,EAAE,IAJX;IAKE,KAAK,EAAEO,YALT;IAME,SAAS,EAAC,QANZ;IAOE,mBAAmB,EAAE;MAAEqB,SAAS,EAAE,MAAb;MAAqBZ,QAAQ,EAAEb;IAA/B;EAPvB,EAxCJ,CADF;AAqDD,CAlGM;AAoGP,eAAeL,QAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","Snackbar"],"sources":["../../../../src/components/molecules/Snackbar/index.ts"],"sourcesContent":["export { default as Snackbar } from './Snackbar';\nexport type { SnackbarProps } from './Snackbar';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAApB,QAAoC,YAApC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { SnackbarProps } from './Snackbar';
|
|
4
|
+
export declare const SnackbarContainer: import("@emotion/native").StyledComponent<import("../../atoms/Paper").PaperProps & {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
} & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
} & Partial<SnackbarProps & import("../../../types/defaults").ThemeProviderProps> & {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
export declare const ContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}, {}, {
|
|
16
|
+
ref?: import("react").Ref<View> | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const IconContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
22
|
+
ref?: import("react").Ref<View> | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const DismissContainer: import("@emotion/native").StyledComponent<import("../../atoms/PressableSurface").PressableSurfaceProps & {
|
|
25
|
+
children?: import("react").ReactNode;
|
|
26
|
+
} & {
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
as?: import("react").ElementType<any> | undefined;
|
|
29
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
30
|
+
export declare const StyledProgressBar: import("@emotion/native").StyledComponent<import("../../atoms/ProgressBar").ProgressBarProps & {
|
|
31
|
+
children?: import("react").ReactNode;
|
|
32
|
+
} & {
|
|
33
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
+
as?: import("react").ElementType<any> | undefined;
|
|
35
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {}>;
|
|
36
|
+
export declare const StyledContainerFlexRow: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
} & Partial<import("../../../types/defaults").ThemeProviderProps>, {}, {
|
|
40
|
+
ref?: import("react").Ref<View> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const TextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
|
+
}, {}, {
|
|
46
|
+
ref?: import("react").Ref<View> | undefined;
|
|
47
|
+
}>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
2
|
+
|
|
3
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
+
|
|
5
|
+
import styled, { css } from '@emotion/native';
|
|
6
|
+
import { View } from 'react-native';
|
|
7
|
+
import { RFValue } from '../../../utils';
|
|
8
|
+
import { Paper } from '../../atoms/Paper';
|
|
9
|
+
import { PressableSurface } from '../../atoms/PressableSurface';
|
|
10
|
+
import { ProgressBar } from '../../atoms/ProgressBar';
|
|
11
|
+
|
|
12
|
+
var baseStyles = function baseStyles(_ref) {
|
|
13
|
+
var theme = _ref.theme,
|
|
14
|
+
_ref$colorTone = _ref.colorTone,
|
|
15
|
+
colorTone = _ref$colorTone === void 0 ? 'xlight' : _ref$colorTone,
|
|
16
|
+
_ref$colorVariant = _ref.colorVariant,
|
|
17
|
+
colorVariant = _ref$colorVariant === void 0 ? 'primary' : _ref$colorVariant,
|
|
18
|
+
visible = _ref.visible;
|
|
19
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0;\n border-radius: ", ";\n background-color: ", ";\n position: absolute;\n z-index: ", ";\n display: ", ";\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n"])), theme.borderRadius.mili, theme.color[colorVariant][colorTone], theme.zIndex.modal, visible ? 'flex' : 'none');
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var anchorTop = function anchorTop(_ref2) {
|
|
23
|
+
var theme = _ref2.theme,
|
|
24
|
+
anchor = _ref2.anchor,
|
|
25
|
+
anchorDistance = _ref2.anchorDistance;
|
|
26
|
+
return anchor === 'top' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n top: ", ";\n "])), anchorDistance ? "".concat(RFValue(anchorDistance), "px") : theme.spacing.deca);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var anchorBottom = function anchorBottom(_ref3) {
|
|
30
|
+
var theme = _ref3.theme,
|
|
31
|
+
anchor = _ref3.anchor,
|
|
32
|
+
anchorDistance = _ref3.anchorDistance;
|
|
33
|
+
return anchor === 'bottom' && css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n bottom: ", ";\n "])), anchorDistance ? "".concat(RFValue(anchorDistance), "px") : theme.spacing.deca);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export var SnackbarContainer = styled(Paper)(function (props) {
|
|
37
|
+
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n "])), baseStyles(props), anchorBottom(props), anchorTop(props));
|
|
38
|
+
});
|
|
39
|
+
export var ContentContainer = styled(View)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n align-items: center;\n flex-shrink: 1;\n"])));
|
|
40
|
+
export var IconContainer = styled(View)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"])), function (_ref4) {
|
|
41
|
+
var theme = _ref4.theme;
|
|
42
|
+
return theme.spacing.mili;
|
|
43
|
+
});
|
|
44
|
+
export var DismissContainer = styled(PressableSurface)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-left: ", ";\n"])), function (_ref5) {
|
|
45
|
+
var theme = _ref5.theme;
|
|
46
|
+
return theme.spacing.mili;
|
|
47
|
+
});
|
|
48
|
+
export var StyledProgressBar = styled(ProgressBar)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n"])));
|
|
49
|
+
export var StyledContainerFlexRow = styled(View)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: ", ";\n"])), function (_ref6) {
|
|
50
|
+
var theme = _ref6.theme;
|
|
51
|
+
return theme.spacing.mili;
|
|
52
|
+
});
|
|
53
|
+
export var TextContainer = styled(View)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 1;\n"])));
|
|
54
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","names":["styled","css","View","RFValue","Paper","PressableSurface","ProgressBar","baseStyles","theme","colorTone","colorVariant","visible","borderRadius","mili","color","zIndex","modal","anchorTop","anchor","anchorDistance","spacing","deca","anchorBottom","SnackbarContainer","props","ContentContainer","IconContainer","DismissContainer","StyledProgressBar","StyledContainerFlexRow","TextContainer"],"sources":["../../../../src/components/molecules/Snackbar/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { View } from 'react-native';\nimport { StyleProps } from '../../../types/defaults';\nimport { RFValue } from '../../../utils';\nimport { Paper } from '../../atoms/Paper';\nimport { PressableSurface } from '../../atoms/PressableSurface';\nimport { ProgressBar } from '../../atoms/ProgressBar';\nimport { SnackbarProps } from './Snackbar';\n\nconst baseStyles = ({\n theme,\n colorTone = 'xlight',\n colorVariant = 'primary',\n visible,\n}: StyleProps & Partial<SnackbarProps> & { visible: boolean }) => css`\n padding: 0;\n border-radius: ${theme.borderRadius.mili};\n background-color: ${theme.color[colorVariant][colorTone]};\n position: absolute;\n z-index: ${theme.zIndex.modal};\n display: ${visible ? 'flex' : 'none'};\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n`;\n\nconst anchorTop = ({\n theme,\n anchor,\n anchorDistance,\n}: Partial<SnackbarProps> & StyleProps) => {\n return (\n anchor === 'top' &&\n css`\n top: ${anchorDistance\n ? `${RFValue(anchorDistance)}px`\n : theme.spacing.deca};\n `\n );\n};\n\nconst anchorBottom = ({\n theme,\n anchor,\n anchorDistance,\n}: Partial<SnackbarProps> & StyleProps) => {\n return (\n anchor === 'bottom' &&\n css`\n bottom: ${anchorDistance\n ? `${RFValue(anchorDistance)}px`\n : theme.spacing.deca};\n `\n );\n};\n\nexport const SnackbarContainer = styled(Paper)<\n Partial<SnackbarProps & StyleProps> & { visible: boolean }\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)}\n `\n);\n\nexport const ContentContainer = styled(View)`\n flex-direction: row;\n display: flex;\n align-items: center;\n flex-shrink: 1;\n`;\n\nexport const IconContainer = styled(View)<Partial<StyleProps>>`\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-right: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const DismissContainer = styled(PressableSurface)<Partial<StyleProps>>`\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-left: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const StyledProgressBar = styled(ProgressBar)<Partial<StyleProps>>`\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n`;\n\nexport const StyledContainerFlexRow = styled(View)<Partial<StyleProps>>`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const TextContainer = styled(View)`\n display: flex;\n flex-shrink: 1;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,iBAA5B;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SAASC,OAAT,QAAwB,gBAAxB;AACA,SAASC,KAAT,QAAsB,mBAAtB;AACA,SAASC,gBAAT,QAAiC,8BAAjC;AACA,SAASC,WAAT,QAA4B,yBAA5B;;AAGA,IAAMC,UAAU,GAAG,SAAbA,UAAa;EAAA,IACjBC,KADiB,QACjBA,KADiB;EAAA,0BAEjBC,SAFiB;EAAA,IAEjBA,SAFiB,+BAEL,QAFK;EAAA,6BAGjBC,YAHiB;EAAA,IAGjBA,YAHiB,kCAGF,SAHE;EAAA,IAIjBC,OAJiB,QAIjBA,OAJiB;EAAA,OAK+CV,GAL/C,4RAOAO,KAAK,CAACI,YAAN,CAAmBC,IAPnB,EAQGL,KAAK,CAACM,KAAN,CAAYJ,YAAZ,EAA0BD,SAA1B,CARH,EAUND,KAAK,CAACO,MAAN,CAAaC,KAVP,EAWNL,OAAO,GAAG,MAAH,GAAY,MAXb;AAAA,CAAnB;;AAiBA,IAAMM,SAAS,GAAG,SAAZA,SAAY,QAIyB;EAAA,IAHzCT,KAGyC,SAHzCA,KAGyC;EAAA,IAFzCU,MAEyC,SAFzCA,MAEyC;EAAA,IADzCC,cACyC,SADzCA,cACyC;EACzC,OACED,MAAM,KAAK,KAAX,IACAjB,GADA,gGAESkB,cAAc,aACdhB,OAAO,CAACgB,cAAD,CADO,UAEjBX,KAAK,CAACY,OAAN,CAAcC,IAJpB,CADF;AAQD,CAbD;;AAeA,IAAMC,YAAY,GAAG,SAAfA,YAAe,QAIsB;EAAA,IAHzCd,KAGyC,SAHzCA,KAGyC;EAAA,IAFzCU,MAEyC,SAFzCA,MAEyC;EAAA,IADzCC,cACyC,SADzCA,cACyC;EACzC,OACED,MAAM,KAAK,QAAX,IACAjB,GADA,mGAEYkB,cAAc,aACjBhB,OAAO,CAACgB,cAAD,CADU,UAEpBX,KAAK,CAACY,OAAN,CAAcC,IAJpB,CADF;AAQD,CAbD;;AAeA,OAAO,IAAME,iBAAiB,GAAGvB,MAAM,CAACI,KAAD,CAAN,CAG/B,UAAAoB,KAAK;EAAA,OAAIvB,GAAJ,0GACDM,UAAU,CAACiB,KAAD,CADT,EAEDF,YAAY,CAACE,KAAD,CAFX,EAGDP,SAAS,CAACO,KAAD,CAHR;AAAA,CAH0B,CAA1B;AAUP,OAAO,IAAMC,gBAAgB,GAAGzB,MAAM,CAACE,IAAD,CAAT,8JAAtB;AAOP,OAAO,IAAMwB,aAAa,GAAG1B,MAAM,CAACE,IAAD,CAAT,mKAIR;EAAA,IAAGM,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACY,OAAN,CAAcP,IAA7B;AAAA,CAJQ,CAAnB;AAOP,OAAO,IAAMc,gBAAgB,GAAG3B,MAAM,CAACK,gBAAD,CAAT,kKAIZ;EAAA,IAAGG,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACY,OAAN,CAAcP,IAA7B;AAAA,CAJY,CAAtB;AAOP,OAAO,IAAMe,iBAAiB,GAAG5B,MAAM,CAACM,WAAD,CAAT,sIAAvB;AAKP,OAAO,IAAMuB,sBAAsB,GAAG7B,MAAM,CAACE,IAAD,CAAT,yKAItB;EAAA,IAAGM,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACY,OAAN,CAAcP,IAA7B;AAAA,CAJsB,CAA5B;AAOP,OAAO,IAAMiB,aAAa,GAAG9B,MAAM,CAACE,IAAD,CAAT,gHAAnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FontStackType, FontWeightType } from '@tecsinapse/react-core';
|
|
3
|
+
import { InputContainerProps, InputElementProps } from '../../atoms/Input';
|
|
4
|
+
import { TextProps } from '../../atoms/Text';
|
|
5
|
+
export interface TextAreaProps extends Omit<InputElementProps, 'style' | 'multiline' | 'value'>, InputContainerProps {
|
|
6
|
+
inputFontStack?: FontStackType;
|
|
7
|
+
inputFontWeight?: FontWeightType;
|
|
8
|
+
maxCharCount?: number;
|
|
9
|
+
value: string;
|
|
10
|
+
TextComponent?: FC<TextProps>;
|
|
11
|
+
focused?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const TextArea: FC<TextAreaProps>;
|
|
14
|
+
export default TextArea;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { Hint } from '../../atoms/Input';
|
|
4
|
+
import { Text } from '../../atoms/Text';
|
|
5
|
+
import { StyledInputContainer } from './styled';
|
|
6
|
+
|
|
7
|
+
var TextArea = function TextArea(_ref) {
|
|
8
|
+
var label = _ref.label,
|
|
9
|
+
labelColor = _ref.labelColor,
|
|
10
|
+
labelColorVariant = _ref.labelColorVariant,
|
|
11
|
+
labelColorTone = _ref.labelColorTone,
|
|
12
|
+
labelTypography = _ref.labelTypography,
|
|
13
|
+
labelStack = _ref.labelStack,
|
|
14
|
+
labelWeight = _ref.labelWeight,
|
|
15
|
+
leftComponent = _ref.leftComponent,
|
|
16
|
+
rightComponent = _ref.rightComponent,
|
|
17
|
+
disabled = _ref.disabled,
|
|
18
|
+
style = _ref.style,
|
|
19
|
+
borderColor = _ref.borderColor,
|
|
20
|
+
borderColorGradation = _ref.borderColorGradation,
|
|
21
|
+
inputContainerStyle = _ref.inputContainerStyle,
|
|
22
|
+
_ref$variant = _ref.variant,
|
|
23
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
24
|
+
hintComponent = _ref.hintComponent,
|
|
25
|
+
hint = _ref.hint,
|
|
26
|
+
_ref$TextComponent = _ref.TextComponent,
|
|
27
|
+
TextComponent = _ref$TextComponent === void 0 ? Text : _ref$TextComponent,
|
|
28
|
+
focused = _ref.focused,
|
|
29
|
+
children = _ref.children,
|
|
30
|
+
_maxLenght = _ref.maxLength,
|
|
31
|
+
_value = _ref.value;
|
|
32
|
+
var length = _value.length;
|
|
33
|
+
var maxLength = _maxLenght;
|
|
34
|
+
|
|
35
|
+
if (maxLength && length > maxLength) {
|
|
36
|
+
length = maxLength;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var _hint = hintComponent || React.createElement(Hint, {
|
|
40
|
+
TextComponent: TextComponent,
|
|
41
|
+
text: hint,
|
|
42
|
+
variant: variant
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
return React.createElement(View, {
|
|
46
|
+
style: style
|
|
47
|
+
}, React.createElement(StyledInputContainer, {
|
|
48
|
+
label: label,
|
|
49
|
+
labelColor: labelColor,
|
|
50
|
+
labelColorVariant: labelColorVariant,
|
|
51
|
+
labelColorTone: labelColorTone,
|
|
52
|
+
labelTypography: labelTypography,
|
|
53
|
+
labelStack: labelStack,
|
|
54
|
+
labelWeight: labelWeight,
|
|
55
|
+
LabelComponent: TextComponent,
|
|
56
|
+
leftComponent: leftComponent,
|
|
57
|
+
rightComponent: rightComponent,
|
|
58
|
+
borderColor: borderColor,
|
|
59
|
+
borderColorGradation: borderColorGradation,
|
|
60
|
+
inputContainerStyle: inputContainerStyle,
|
|
61
|
+
focused: focused,
|
|
62
|
+
disabled: disabled,
|
|
63
|
+
variant: variant
|
|
64
|
+
}, children, maxLength && React.createElement(TextComponent, {
|
|
65
|
+
colorVariant: 'secondary',
|
|
66
|
+
colorTone: 'medium',
|
|
67
|
+
typography: 'label',
|
|
68
|
+
fontStack: 'default',
|
|
69
|
+
fontWeight: 'bold',
|
|
70
|
+
style: {
|
|
71
|
+
textAlign: 'right'
|
|
72
|
+
}
|
|
73
|
+
}, "".concat(length, "/").concat(maxLength))), hint && _hint);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export default TextArea;
|
|
77
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.js","names":["React","View","Hint","Text","StyledInputContainer","TextArea","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputContainerStyle","variant","hintComponent","hint","TextComponent","focused","children","_maxLenght","maxLength","_value","value","length","_hint","textAlign"],"sources":["../../../../src/components/molecules/TextArea/TextArea.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { FontStackType, FontWeightType } from '@tecsinapse/react-core';\nimport {\n Hint,\n InputContainerProps,\n InputElementProps,\n} from '../../atoms/Input';\nimport { Text, TextProps } from '../../atoms/Text';\nimport { StyledInputContainer } from './styled';\n\nexport interface TextAreaProps\n extends Omit<InputElementProps, 'style' | 'multiline' | 'value'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n maxCharCount?: number;\n value: string;\n // Omit below\n TextComponent?: FC<TextProps>;\n focused?: boolean;\n}\n\nconst TextArea: FC<TextAreaProps> = ({\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n TextComponent = Text,\n focused,\n children,\n maxLength: _maxLenght,\n value: _value,\n}) => {\n let length = _value.length;\n const maxLength = _maxLenght;\n if (maxLength && length > maxLength) {\n length = maxLength;\n }\n\n const _hint = hintComponent || (\n <Hint TextComponent={TextComponent} text={hint} variant={variant} />\n );\n\n return (\n <View style={style}>\n <StyledInputContainer\n label={label}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={TextComponent}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n {children}\n {maxLength && (\n <TextComponent\n colorVariant={'secondary'}\n colorTone={'medium'}\n typography={'label'}\n fontStack={'default'}\n fontWeight={'bold'}\n style={{ textAlign: 'right' }}\n >\n {`${length}/${maxLength}`}\n </TextComponent>\n )}\n </StyledInputContainer>\n {hint && _hint}\n </View>\n );\n};\n\nexport default TextArea;\n"],"mappings":"AAAA,OAAOA,KAAP,MAA0B,OAA1B;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SACEC,IADF,QAIO,mBAJP;AAKA,SAASC,IAAT,QAAgC,kBAAhC;AACA,SAASC,oBAAT,QAAqC,UAArC;;AAcA,IAAMC,QAA2B,GAAG,SAA9BA,QAA8B,OAuB9B;EAAA,IAtBJC,KAsBI,QAtBJA,KAsBI;EAAA,IArBJC,UAqBI,QArBJA,UAqBI;EAAA,IApBJC,iBAoBI,QApBJA,iBAoBI;EAAA,IAnBJC,cAmBI,QAnBJA,cAmBI;EAAA,IAlBJC,eAkBI,QAlBJA,eAkBI;EAAA,IAjBJC,UAiBI,QAjBJA,UAiBI;EAAA,IAhBJC,WAgBI,QAhBJA,WAgBI;EAAA,IAfJC,aAeI,QAfJA,aAeI;EAAA,IAdJC,cAcI,QAdJA,cAcI;EAAA,IAbJC,QAaI,QAbJA,QAaI;EAAA,IAZJC,KAYI,QAZJA,KAYI;EAAA,IAXJC,WAWI,QAXJA,WAWI;EAAA,IAVJC,oBAUI,QAVJA,oBAUI;EAAA,IATJC,mBASI,QATJA,mBASI;EAAA,wBARJC,OAQI;EAAA,IARJA,OAQI,6BARM,SAQN;EAAA,IAPJC,aAOI,QAPJA,aAOI;EAAA,IANJC,IAMI,QANJA,IAMI;EAAA,8BALJC,aAKI;EAAA,IALJA,aAKI,mCALYpB,IAKZ;EAAA,IAJJqB,OAII,QAJJA,OAII;EAAA,IAHJC,QAGI,QAHJA,QAGI;EAAA,IAFOC,UAEP,QAFJC,SAEI;EAAA,IADGC,MACH,QADJC,KACI;EACJ,IAAIC,MAAM,GAAGF,MAAM,CAACE,MAApB;EACA,IAAMH,SAAS,GAAGD,UAAlB;;EACA,IAAIC,SAAS,IAAIG,MAAM,GAAGH,SAA1B,EAAqC;IACnCG,MAAM,GAAGH,SAAT;EACD;;EAED,IAAMI,KAAK,GAAGV,aAAa,IACzB,oBAAC,IAAD;IAAM,aAAa,EAAEE,aAArB;IAAoC,IAAI,EAAED,IAA1C;IAAgD,OAAO,EAAEF;EAAzD,EADF;;EAIA,OACE,oBAAC,IAAD;IAAM,KAAK,EAAEJ;EAAb,GACE,oBAAC,oBAAD;IACE,KAAK,EAAEV,KADT;IAEE,UAAU,EAAEC,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEW,aARlB;IASE,aAAa,EAAEV,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEG,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEC,mBAbvB;IAcE,OAAO,EAAEK,OAdX;IAeE,QAAQ,EAAET,QAfZ;IAgBE,OAAO,EAAEK;EAhBX,GAkBGK,QAlBH,EAmBGE,SAAS,IACR,oBAAC,aAAD;IACE,YAAY,EAAE,WADhB;IAEE,SAAS,EAAE,QAFb;IAGE,UAAU,EAAE,OAHd;IAIE,SAAS,EAAE,SAJb;IAKE,UAAU,EAAE,MALd;IAME,KAAK,EAAE;MAAEK,SAAS,EAAE;IAAb;EANT,aAQMF,MARN,cAQgBH,SARhB,EApBJ,CADF,EAiCGL,IAAI,IAAIS,KAjCX,CADF;AAqCD,CAvED;;AAyEA,eAAe1B,QAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","TextArea","TextAreaInputBase"],"sources":["../../../../src/components/molecules/TextArea/index.ts"],"sourcesContent":["export { default as TextArea } from './TextArea';\nexport type { TextAreaProps } from './TextArea';\nexport { TextAreaInputBase } from './styled';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAApB,QAAoC,YAApC;AAEA,SAASC,iBAAT,QAAkC,UAAlC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextAreaProps } from './TextArea';
|
|
3
|
+
export declare const StyledInputContainer: import("@emotion/native").StyledComponent<import("../../atoms/Input").InputContainerProps & Partial<import("../../atoms/Input").InputElementProps> & {
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
} & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
} & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
|
|
9
|
+
export declare const TextAreaInputBase: import("@emotion/native").StyledComponent<import("../../atoms/Input").InputElementProps & import("react").RefAttributes<import("react-native").TextInput> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} & Partial<TextAreaProps> & Partial<import("@tecsinapse/react-core").ThemeProviderProps>, {}, {}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
|
|
3
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
+
|
|
5
|
+
import styled from '@emotion/native';
|
|
6
|
+
import { extractNumbersFromString, RFValue, RFValueStr } from '../../../utils';
|
|
7
|
+
import { InputContainer, InputElement } from '../../atoms/Input';
|
|
8
|
+
export var StyledInputContainer = styled(InputContainer)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: ", ";\n"])), RFValueStr('50px'));
|
|
9
|
+
export var TextAreaInputBase = styled(InputElement)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", ";\n width: 100%;\n padding: 0;\n margin: ", " 0;\n"])), function (_ref) {
|
|
10
|
+
var theme = _ref.theme,
|
|
11
|
+
numberOfLines = _ref.numberOfLines;
|
|
12
|
+
return "".concat(RFValue(extractNumbersFromString(theme.typography.h5.lineHeight) * (numberOfLines || 1)), "px");
|
|
13
|
+
}, RFValueStr('3px'));
|
|
14
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","names":["styled","extractNumbersFromString","RFValue","RFValueStr","InputContainer","InputElement","StyledInputContainer","TextAreaInputBase","theme","numberOfLines","typography","h5","lineHeight"],"sources":["../../../../src/components/molecules/TextArea/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { extractNumbersFromString, RFValue, RFValueStr } from '../../../utils';\nimport { InputContainer, InputElement } from '../../atoms/Input';\nimport { TextAreaProps } from './TextArea';\n\nexport const StyledInputContainer = styled(InputContainer)<Partial<StyleProps>>`\n min-height: ${RFValueStr('50px')};\n`;\n\nexport const TextAreaInputBase = styled(InputElement)<\n Partial<TextAreaProps> & Partial<StyleProps>\n>`\n max-height: ${({ theme, numberOfLines }) =>\n `${RFValue(\n extractNumbersFromString(theme.typography.h5.lineHeight) *\n (numberOfLines || 1)\n )}px`};\n width: 100%;\n padding: 0;\n margin: ${RFValueStr('3px')} 0;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AAEA,SAASC,wBAAT,EAAmCC,OAAnC,EAA4CC,UAA5C,QAA8D,gBAA9D;AACA,SAASC,cAAT,EAAyBC,YAAzB,QAA6C,mBAA7C;AAGA,OAAO,IAAMC,oBAAoB,GAAGN,MAAM,CAACI,cAAD,CAAT,6FACjBD,UAAU,CAAC,MAAD,CADO,CAA1B;AAIP,OAAO,IAAMI,iBAAiB,GAAGP,MAAM,CAACK,YAAD,CAAT,iJAGd;EAAA,IAAGG,KAAH,QAAGA,KAAH;EAAA,IAAUC,aAAV,QAAUA,aAAV;EAAA,iBACTP,OAAO,CACRD,wBAAwB,CAACO,KAAK,CAACE,UAAN,CAAiBC,EAAjB,CAAoBC,UAArB,CAAxB,IACGH,aAAa,IAAI,CADpB,CADQ,CADE;AAAA,CAHc,EAUlBN,UAAU,CAAC,KAAD,CAVQ,CAAvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["useDebouncedState","useTheme"],"sources":["../../src/hooks/index.ts"],"sourcesContent":["export { useDebouncedState } from './useDebouncedState';\nexport { useTheme } from './useTheme';\n"],"mappings":"AAAA,SAASA,iBAAT,QAAkC,qBAAlC;AACA,SAASC,QAAT,QAAyB,YAAzB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import { useEffect, useRef, useState } from 'react';
|
|
14
|
+
export function useDebouncedState(initialState, timeoutCallback) {
|
|
15
|
+
var timeoutMs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 166;
|
|
16
|
+
var timeoutId = useRef();
|
|
17
|
+
|
|
18
|
+
var _useState = useState(initialState),
|
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
+
state = _useState2[0],
|
|
21
|
+
setState = _useState2[1];
|
|
22
|
+
|
|
23
|
+
useEffect(function () {
|
|
24
|
+
if (timeoutId.current) clearTimeout(timeoutId.current);
|
|
25
|
+
if (timeoutCallback) timeoutId.current = setTimeout(function () {
|
|
26
|
+
return timeoutCallback(state);
|
|
27
|
+
}, timeoutMs);
|
|
28
|
+
}, [state]);
|
|
29
|
+
return [state, setState];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=useDebouncedState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebouncedState.js","names":["useEffect","useRef","useState","useDebouncedState","initialState","timeoutCallback","timeoutMs","timeoutId","state","setState","current","clearTimeout","setTimeout"],"sources":["../../src/hooks/useDebouncedState.ts"],"sourcesContent":["import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';\n\n/**\n * @param initialState\n * @param timeoutCallback callback to be called after bouncing ends. Should be memoized.\n * @param timeoutMs\n */\nexport function useDebouncedState<S>(\n initialState: S | (() => S),\n timeoutCallback?: (state: S) => void,\n timeoutMs = 166\n): [S, Dispatch<SetStateAction<S>>] {\n const timeoutId = useRef<number>();\n\n const [state, setState] = useState<S>(initialState);\n\n useEffect(() => {\n if (timeoutId.current) clearTimeout(timeoutId.current);\n if (timeoutCallback)\n timeoutId.current = setTimeout(() => timeoutCallback(state), timeoutMs);\n }, [state]);\n\n return [state, setState];\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAmCA,SAAnC,EAA8CC,MAA9C,EAAsDC,QAAtD,QAAsE,OAAtE;AAOA,OAAO,SAASC,iBAAT,CACLC,YADK,EAELC,eAFK,EAI6B;EAAA,IADlCC,SACkC,uEADtB,GACsB;EAClC,IAAMC,SAAS,GAAGN,MAAM,EAAxB;;EAEA,gBAA0BC,QAAQ,CAAIE,YAAJ,CAAlC;EAAA;EAAA,IAAOI,KAAP;EAAA,IAAcC,QAAd;;EAEAT,SAAS,CAAC,YAAM;IACd,IAAIO,SAAS,CAACG,OAAd,EAAuBC,YAAY,CAACJ,SAAS,CAACG,OAAX,CAAZ;IACvB,IAAIL,eAAJ,EACEE,SAAS,CAACG,OAAV,GAAoBE,UAAU,CAAC;MAAA,OAAMP,eAAe,CAACG,KAAD,CAArB;IAAA,CAAD,EAA+BF,SAA/B,CAA9B;EACH,CAJQ,EAIN,CAACE,KAAD,CAJM,CAAT;EAMA,OAAO,CAACA,KAAD,EAAQC,QAAR,CAAP;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.js","names":["useTheme","useEmotionTheme"],"sources":["../../src/hooks/useTheme.ts"],"sourcesContent":["import { useTheme as useEmotionTheme } from '@emotion/react';\nimport { ThemeProp } from '../types/defaults';\n\nexport const useTheme = (): ThemeProp => useEmotionTheme() as ThemeProp;\n"],"mappings":"AAAA,SAASA,QAAQ,IAAIC,eAArB,QAA4C,gBAA5C;AAGA,OAAO,IAAMD,QAAQ,GAAG,SAAXA,QAAW;EAAA,OAAiBC,eAAe,EAAhC;AAAA,CAAjB"}
|
package/esm/index.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export { Avatar } from './components/atoms/Avatar';
|
|
2
|
+
export type { AvatarProps } from './components/atoms/Avatar';
|
|
3
|
+
export { Badge } from './components/atoms/Badge';
|
|
4
|
+
export type { BadgeProps } from './components/atoms/Badge';
|
|
5
|
+
export { BoxContent } from './components/atoms/BoxContent';
|
|
6
|
+
export type { BoxContentProps } from './components/atoms/BoxContent';
|
|
7
|
+
export { Button, Error, Loading, Success } from './components/atoms/Button';
|
|
8
|
+
export type { ButtonProps, ButtonSizeType, ButtonStateProps, ButtonStateType, } from './components/atoms/Button';
|
|
9
|
+
export { Card } from './components/atoms/Card';
|
|
10
|
+
export type { CardProps } from './components/atoms/Card';
|
|
11
|
+
export { Footer } from './components/atoms/Card/Footer';
|
|
12
|
+
export type { FooterProps } from './components/atoms/Card/Footer';
|
|
13
|
+
export { Header } from './components/atoms/Card/Header';
|
|
14
|
+
export type { HeaderProps } from './components/atoms/Card/Header';
|
|
15
|
+
export { Checkbox } from './components/atoms/Checkbox';
|
|
16
|
+
export type { CheckboxProps } from './components/atoms/Checkbox';
|
|
17
|
+
export { Divider } from './components/atoms/Divider';
|
|
18
|
+
export type { DividerProps } from './components/atoms/Divider';
|
|
19
|
+
export { GroupButton, GroupButtonOption } from './components/atoms/GroupButton';
|
|
20
|
+
export type { GroupButtonOptionProps, GroupButtonProps, GroupButtonValue, } from './components/atoms/GroupButton';
|
|
21
|
+
export { Icon } from './components/atoms/Icon';
|
|
22
|
+
export type { IconProps } from './components/atoms/Icon';
|
|
23
|
+
export { disabledInputStyles, Hint, InputContainer, InputElement, InputMaskElement, PressableInputContainer, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask, } from './components/atoms/Input';
|
|
24
|
+
export type { InputContainerProps, InputElementProps, InputMaskElementProps, InputVariantType, PressableInputContainerProps, } from './components/atoms/Input';
|
|
25
|
+
export { Paper } from './components/atoms/Paper';
|
|
26
|
+
export type { PaperProps } from './components/atoms/Paper';
|
|
27
|
+
export { PressableSurface } from './components/atoms/PressableSurface';
|
|
28
|
+
export type { PressableSurfaceProps } from './components/atoms/PressableSurface';
|
|
29
|
+
export { ProgressBar } from './components/atoms/ProgressBar';
|
|
30
|
+
export type { ProgressBarProps } from './components/atoms/ProgressBar';
|
|
31
|
+
export { RadioButton } from './components/atoms/RadioButton';
|
|
32
|
+
export type { RadioButtonProps } from './components/atoms/RadioButton';
|
|
33
|
+
export { Switch } from './components/atoms/Switch';
|
|
34
|
+
export type { SwitchProps } from './components/atoms/Switch';
|
|
35
|
+
export { Tag } from './components/atoms/Tag';
|
|
36
|
+
export type { TagProps } from './components/atoms/Tag';
|
|
37
|
+
export { Text } from './components/atoms/Text';
|
|
38
|
+
export type { TextProps } from './components/atoms/Text';
|
|
39
|
+
export { Calendar } from './components/molecules/Calendar';
|
|
40
|
+
export type { CalendarProps, DateRange, SelectionType, Value, } from './components/molecules/Calendar';
|
|
41
|
+
export { DatePicker } from './components/molecules/DatePicker';
|
|
42
|
+
export type { DatePickerProps } from './components/molecules/DatePicker';
|
|
43
|
+
export { DateTimePicker } from './components/molecules/DateTimePicker';
|
|
44
|
+
export type { DateTimePickerProps } from './components/molecules/DateTimePicker';
|
|
45
|
+
export { DateTimeSelector } from './components/molecules/DateTimeSelector';
|
|
46
|
+
export type { DateTimeSelectorMode, DateTimeSelectorProps, } from './components/molecules/DateTimeSelector';
|
|
47
|
+
export { getGridItemPadding, getGridItemColumSpan, } from './components/molecules/Grid';
|
|
48
|
+
export type { GridSpacing, IGridItem, IGrid, FlexAlignBase, FlexAlignType, FlexPositioning, FlexSpacing, PaddingPosition, } from './components/molecules/Grid';
|
|
49
|
+
export { HintInputContainer } from './components/molecules/HintInputContainer';
|
|
50
|
+
export type { HintInputContainerProps } from './components/molecules/HintInputContainer';
|
|
51
|
+
export { IconComponent } from './components/molecules/IconTextButton';
|
|
52
|
+
export type { IconPositionOptions, IconTextButtonProps, } from './components/molecules/IconTextButton';
|
|
53
|
+
export { InputPasswordIcon } from './components/molecules/InputPassword';
|
|
54
|
+
export type { LabeledSwitchProps, LabelPositionOptions, } from './components/molecules/LabeledSwitch';
|
|
55
|
+
export { Snackbar } from './components/molecules/Snackbar';
|
|
56
|
+
export type { SnackbarProps } from './components/molecules/Snackbar';
|
|
57
|
+
export { TextArea, TextAreaInputBase } from './components/molecules/TextArea';
|
|
58
|
+
export type { TextAreaProps } from './components/molecules/TextArea';
|
|
59
|
+
export * from './hooks';
|
|
60
|
+
export * from './styles/definitions';
|
|
61
|
+
export * from './styles/light';
|
|
62
|
+
export { default as ThemeProvider } from './styles/ThemeProvider';
|
|
63
|
+
export * from './types/defaults';
|
|
64
|
+
export * from './utils';
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { Avatar } from './components/atoms/Avatar';
|
|
2
|
+
export { Badge } from './components/atoms/Badge';
|
|
3
|
+
export { BoxContent } from './components/atoms/BoxContent';
|
|
4
|
+
export { Button, Error, Loading, Success } from './components/atoms/Button';
|
|
5
|
+
export { Card } from './components/atoms/Card';
|
|
6
|
+
export { Footer } from './components/atoms/Card/Footer';
|
|
7
|
+
export { Header } from './components/atoms/Card/Header';
|
|
8
|
+
export { Checkbox } from './components/atoms/Checkbox';
|
|
9
|
+
export { Divider } from './components/atoms/Divider';
|
|
10
|
+
export { GroupButton, GroupButtonOption } from './components/atoms/GroupButton';
|
|
11
|
+
export { Icon } from './components/atoms/Icon';
|
|
12
|
+
export { disabledInputStyles, Hint, InputContainer, InputElement, InputMaskElement, PressableInputContainer, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask } from './components/atoms/Input';
|
|
13
|
+
export { Paper } from './components/atoms/Paper';
|
|
14
|
+
export { PressableSurface } from './components/atoms/PressableSurface';
|
|
15
|
+
export { ProgressBar } from './components/atoms/ProgressBar';
|
|
16
|
+
export { RadioButton } from './components/atoms/RadioButton';
|
|
17
|
+
export { Switch } from './components/atoms/Switch';
|
|
18
|
+
export { Tag } from './components/atoms/Tag';
|
|
19
|
+
export { Text } from './components/atoms/Text';
|
|
20
|
+
export { Calendar } from './components/molecules/Calendar';
|
|
21
|
+
export { DatePicker } from './components/molecules/DatePicker';
|
|
22
|
+
export { DateTimePicker } from './components/molecules/DateTimePicker';
|
|
23
|
+
export { DateTimeSelector } from './components/molecules/DateTimeSelector';
|
|
24
|
+
export { getGridItemPadding, getGridItemColumSpan } from './components/molecules/Grid';
|
|
25
|
+
export { HintInputContainer } from './components/molecules/HintInputContainer';
|
|
26
|
+
export { IconComponent } from './components/molecules/IconTextButton';
|
|
27
|
+
export { InputPasswordIcon } from './components/molecules/InputPassword';
|
|
28
|
+
export { Snackbar } from './components/molecules/Snackbar';
|
|
29
|
+
export { TextArea, TextAreaInputBase } from './components/molecules/TextArea';
|
|
30
|
+
export * from './hooks';
|
|
31
|
+
export * from './styles/definitions';
|
|
32
|
+
export * from './styles/light';
|
|
33
|
+
export { default as ThemeProvider } from './styles/ThemeProvider';
|
|
34
|
+
export * from './types/defaults';
|
|
35
|
+
export * from './utils';
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Avatar","Badge","BoxContent","Button","Error","Loading","Success","Card","Footer","Header","Checkbox","Divider","GroupButton","GroupButtonOption","Icon","disabledInputStyles","Hint","InputContainer","InputElement","InputMaskElement","PressableInputContainer","StyledBorderKeeper","useInputFocus","useNumberMask","useStringMask","Paper","PressableSurface","ProgressBar","RadioButton","Switch","Tag","Text","Calendar","DatePicker","DateTimePicker","DateTimeSelector","getGridItemPadding","getGridItemColumSpan","HintInputContainer","IconComponent","InputPasswordIcon","Snackbar","TextArea","TextAreaInputBase","default","ThemeProvider"],"sources":["../src/index.ts"],"sourcesContent":["export { Avatar } from './components/atoms/Avatar';\nexport type { AvatarProps } from './components/atoms/Avatar';\nexport { Badge } from './components/atoms/Badge';\nexport type { BadgeProps } from './components/atoms/Badge';\nexport { BoxContent } from './components/atoms/BoxContent';\nexport type { BoxContentProps } from './components/atoms/BoxContent';\nexport { Button, Error, Loading, Success } from './components/atoms/Button';\nexport type {\n ButtonProps,\n ButtonSizeType,\n ButtonStateProps,\n ButtonStateType,\n} from './components/atoms/Button';\nexport { Card } from './components/atoms/Card';\nexport type { CardProps } from './components/atoms/Card';\nexport { Footer } from './components/atoms/Card/Footer';\nexport type { FooterProps } from './components/atoms/Card/Footer';\nexport { Header } from './components/atoms/Card/Header';\nexport type { HeaderProps } from './components/atoms/Card/Header';\nexport { Checkbox } from './components/atoms/Checkbox';\nexport type { CheckboxProps } from './components/atoms/Checkbox';\nexport { Divider } from './components/atoms/Divider';\nexport type { DividerProps } from './components/atoms/Divider';\nexport { GroupButton, GroupButtonOption } from './components/atoms/GroupButton';\nexport type {\n GroupButtonOptionProps,\n GroupButtonProps,\n GroupButtonValue,\n} from './components/atoms/GroupButton';\nexport { Icon } from './components/atoms/Icon';\nexport type { IconProps } from './components/atoms/Icon';\nexport {\n disabledInputStyles,\n Hint,\n InputContainer,\n InputElement,\n InputMaskElement,\n PressableInputContainer,\n StyledBorderKeeper,\n useInputFocus,\n useNumberMask,\n useStringMask,\n} from './components/atoms/Input';\nexport type {\n InputContainerProps,\n InputElementProps,\n InputMaskElementProps,\n InputVariantType,\n PressableInputContainerProps,\n} from './components/atoms/Input';\nexport { Paper } from './components/atoms/Paper';\nexport type { PaperProps } from './components/atoms/Paper';\nexport { PressableSurface } from './components/atoms/PressableSurface';\nexport type { PressableSurfaceProps } from './components/atoms/PressableSurface';\nexport { ProgressBar } from './components/atoms/ProgressBar';\nexport type { ProgressBarProps } from './components/atoms/ProgressBar';\nexport { RadioButton } from './components/atoms/RadioButton';\nexport type { RadioButtonProps } from './components/atoms/RadioButton';\nexport { Switch } from './components/atoms/Switch';\nexport type { SwitchProps } from './components/atoms/Switch';\nexport { Tag } from './components/atoms/Tag';\nexport type { TagProps } from './components/atoms/Tag';\nexport { Text } from './components/atoms/Text';\nexport type { TextProps } from './components/atoms/Text';\nexport { Calendar } from './components/molecules/Calendar';\nexport type {\n CalendarProps,\n DateRange,\n SelectionType,\n Value,\n} from './components/molecules/Calendar';\nexport { DatePicker } from './components/molecules/DatePicker';\nexport type { DatePickerProps } from './components/molecules/DatePicker';\nexport { DateTimePicker } from './components/molecules/DateTimePicker';\nexport type { DateTimePickerProps } from './components/molecules/DateTimePicker';\nexport { DateTimeSelector } from './components/molecules/DateTimeSelector';\nexport type {\n DateTimeSelectorMode,\n DateTimeSelectorProps,\n} from './components/molecules/DateTimeSelector';\nexport {\n getGridItemPadding,\n getGridItemColumSpan,\n} from './components/molecules/Grid';\nexport type {\n GridSpacing,\n IGridItem,\n IGrid,\n FlexAlignBase,\n FlexAlignType,\n FlexPositioning,\n FlexSpacing,\n PaddingPosition,\n} from './components/molecules/Grid';\nexport { HintInputContainer } from './components/molecules/HintInputContainer';\nexport type { HintInputContainerProps } from './components/molecules/HintInputContainer';\nexport { IconComponent } from './components/molecules/IconTextButton';\nexport type {\n IconPositionOptions,\n IconTextButtonProps,\n} from './components/molecules/IconTextButton';\nexport { InputPasswordIcon } from './components/molecules/InputPassword';\nexport type {\n LabeledSwitchProps,\n LabelPositionOptions,\n} from './components/molecules/LabeledSwitch';\nexport { Snackbar } from './components/molecules/Snackbar';\nexport type { SnackbarProps } from './components/molecules/Snackbar';\nexport { TextArea, TextAreaInputBase } from './components/molecules/TextArea';\nexport type { TextAreaProps } from './components/molecules/TextArea';\nexport * from './hooks';\nexport * from './styles/definitions';\nexport * from './styles/light';\nexport { default as ThemeProvider } from './styles/ThemeProvider';\nexport * from './types/defaults';\nexport * from './utils';\n"],"mappings":"AAAA,SAASA,MAAT,QAAuB,2BAAvB;AAEA,SAASC,KAAT,QAAsB,0BAAtB;AAEA,SAASC,UAAT,QAA2B,+BAA3B;AAEA,SAASC,MAAT,EAAiBC,KAAjB,EAAwBC,OAAxB,EAAiCC,OAAjC,QAAgD,2BAAhD;AAOA,SAASC,IAAT,QAAqB,yBAArB;AAEA,SAASC,MAAT,QAAuB,gCAAvB;AAEA,SAASC,MAAT,QAAuB,gCAAvB;AAEA,SAASC,QAAT,QAAyB,6BAAzB;AAEA,SAASC,OAAT,QAAwB,4BAAxB;AAEA,SAASC,WAAT,EAAsBC,iBAAtB,QAA+C,gCAA/C;AAMA,SAASC,IAAT,QAAqB,yBAArB;AAEA,SACEC,mBADF,EAEEC,IAFF,EAGEC,cAHF,EAIEC,YAJF,EAKEC,gBALF,EAMEC,uBANF,EAOEC,kBAPF,EAQEC,aARF,EASEC,aATF,EAUEC,aAVF,QAWO,0BAXP;AAmBA,SAASC,KAAT,QAAsB,0BAAtB;AAEA,SAASC,gBAAT,QAAiC,qCAAjC;AAEA,SAASC,WAAT,QAA4B,gCAA5B;AAEA,SAASC,WAAT,QAA4B,gCAA5B;AAEA,SAASC,MAAT,QAAuB,2BAAvB;AAEA,SAASC,GAAT,QAAoB,wBAApB;AAEA,SAASC,IAAT,QAAqB,yBAArB;AAEA,SAASC,QAAT,QAAyB,iCAAzB;AAOA,SAASC,UAAT,QAA2B,mCAA3B;AAEA,SAASC,cAAT,QAA+B,uCAA/B;AAEA,SAASC,gBAAT,QAAiC,yCAAjC;AAKA,SACEC,kBADF,EAEEC,oBAFF,QAGO,6BAHP;AAcA,SAASC,kBAAT,QAAmC,2CAAnC;AAEA,SAASC,aAAT,QAA8B,uCAA9B;AAKA,SAASC,iBAAT,QAAkC,sCAAlC;AAKA,SAASC,QAAT,QAAyB,iCAAzB;AAEA,SAASC,QAAT,EAAmBC,iBAAnB,QAA4C,iCAA5C;AAEA,cAAc,SAAd;AACA,cAAc,sBAAd;AACA,cAAc,gBAAd;AACA,SAASC,OAAO,IAAIC,aAApB,QAAyC,wBAAzC;AACA,cAAc,kBAAd;AACA,cAAc,SAAd"}
|