@pedidopago/ui 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +6 -6
- package/dist/components/Alert/alert.test.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +4 -4
- package/dist/components/Alert/styles.d.ts +24 -24
- package/dist/components/Alert/types.d.ts +44 -44
- package/dist/components/Avatar/avatar.test.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts +4 -4
- package/dist/components/Avatar/styles.d.ts +25 -25
- package/dist/components/Avatar/types.d.ts +15 -15
- package/dist/components/Badge/badge.test.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Badge/styles.d.ts +16 -16
- package/dist/components/Badge/types.d.ts +11 -11
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/styles.d.ts +14 -14
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Button/types.d.ts +92 -92
- package/dist/components/Card/card.test.d.ts +1 -1
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Card/styles.d.ts +6 -6
- package/dist/components/Card/styles.d.ts.map +1 -1
- package/dist/components/Card/styles.js +3 -1
- package/dist/components/Card/types.d.ts +17 -16
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
- package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
- package/dist/components/CheckboxInput/index.d.ts +4 -4
- package/dist/components/CheckboxInput/styles.d.ts +31 -31
- package/dist/components/CheckboxInput/types.d.ts +26 -26
- package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts +267 -267
- package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
- package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
- package/dist/components/CollapseCard/index.d.ts +3 -3
- package/dist/components/CollapseCard/index.js +14 -14
- package/dist/components/CollapseCard/styles.d.ts +265 -265
- package/dist/components/CollapseCard/types.d.ts +12 -12
- package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
- package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
- package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
- package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
- package/dist/components/ColorPicker/index.d.ts +4 -4
- package/dist/components/ColorPicker/styles.d.ts +44 -44
- package/dist/components/ColorPicker/types.d.ts +73 -73
- package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
- package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
- package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
- package/dist/components/DateInput/DateInput-example.d.ts +5 -5
- package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +265 -265
- package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
- package/dist/components/DateInput/dateInput.test.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +18 -15
- package/dist/components/DateInput/styles.d.ts +10 -266
- package/dist/components/DateInput/styles.d.ts.map +1 -1
- package/dist/components/DateInput/styles.js +3 -18
- package/dist/components/DateInput/types.d.ts +18 -18
- package/dist/components/DateInput/types.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
- package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.js +14 -8
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/components/DateYearPicker.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DateYearPicker.js +17 -9
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +132 -87
- package/dist/components/DatePicker/styles.d.ts +77 -75
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +13 -7
- package/dist/components/DatePicker/types.d.ts +69 -62
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
- package/dist/components/Dialog/dialog-example.d.ts +3 -3
- package/dist/components/Dialog/dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +3 -3
- package/dist/components/Dialog/styles.d.ts +25 -25
- package/dist/components/Dialog/types.d.ts +30 -30
- package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
- package/dist/components/Dropzone/index.d.ts +4 -4
- package/dist/components/Dropzone/styles.d.ts +46 -46
- package/dist/components/Dropzone/types.d.ts +19 -19
- package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
- package/dist/components/Flex/flex.test.d.ts +1 -1
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/styles.d.ts +296 -296
- package/dist/components/Flex/types.d.ts +175 -175
- package/dist/components/Grid/grid.test.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +4 -4
- package/dist/components/Grid/styles.d.ts +288 -288
- package/dist/components/Grid/types.d.ts +88 -88
- package/dist/components/Icon/data/beauty.d.ts +8 -8
- package/dist/components/Icon/data/dash.d.ts +8 -8
- package/dist/components/Icon/data/dash.d.ts.map +1 -1
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/ecommerce.d.ts +8 -8
- package/dist/components/Icon/data/form.d.ts +8 -8
- package/dist/components/Icon/data/health.d.ts +8 -8
- package/dist/components/Icon/data/illustrations.d.ts +8 -8
- package/dist/components/Icon/data/men.d.ts +8 -8
- package/dist/components/Icon/data/payment.d.ts +8 -8
- package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
- package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
- package/dist/components/Icon/data/social.d.ts +8 -8
- package/dist/components/Icon/data/status.d.ts +8 -8
- package/dist/components/Icon/data/summer.d.ts +8 -8
- package/dist/components/Icon/data/woman.d.ts +8 -8
- package/dist/components/Icon/icon.test.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +4 -4
- package/dist/components/Icon/scripts/build.d.ts +5 -5
- package/dist/components/Icon/scripts/extractor.d.ts +15 -15
- package/dist/components/Icon/scripts/run-build.d.ts +1 -1
- package/dist/components/Icon/scripts/writers.d.ts +22 -22
- package/dist/components/Icon/styles.d.ts +13 -13
- package/dist/components/Icon/types.d.ts +8 -8
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Icon/utils/allIcons.d.ts +8 -8
- package/dist/components/IconItem/IconItem.test.d.ts +1 -1
- package/dist/components/IconItem/index.d.ts +4 -4
- package/dist/components/IconItem/styles.d.ts +18 -18
- package/dist/components/IconItem/types.d.ts +22 -22
- package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoletoSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CollaboratorSvg/index.d.ts +4 -4
- package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
- package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
- package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
- package/dist/components/Illustration/illustration.test.d.ts +1 -1
- package/dist/components/Illustration/index.d.ts +4 -4
- package/dist/components/Illustration/styles.d.ts +10 -10
- package/dist/components/Illustration/types.d.ts +6 -6
- package/dist/components/ImageItem/imageFake.d.ts +2 -2
- package/dist/components/ImageItem/index.d.ts +4 -4
- package/dist/components/ImageItem/input.test.d.ts +1 -1
- package/dist/components/ImageItem/styles.d.ts +26 -26
- package/dist/components/ImageItem/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +9 -4
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +69 -68
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/Input/styles.js +18 -15
- package/dist/components/Input/types.d.ts +28 -26
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/Label/index.d.ts +3 -3
- package/dist/components/Label/label.test.d.ts +1 -1
- package/dist/components/Label/styles.d.ts +6 -6
- package/dist/components/Label/types.d.ts +17 -17
- package/dist/components/List/index.d.ts +4 -4
- package/dist/components/List/list.test.d.ts +1 -1
- package/dist/components/List/styles.d.ts +15 -15
- package/dist/components/List/types.d.ts +7 -7
- package/dist/components/Modal/ModalExample.d.ts +7 -7
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/modal.test.d.ts +1 -1
- package/dist/components/Modal/styles.d.ts +531 -531
- package/dist/components/Modal/types.d.ts +35 -35
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
- package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +15 -15
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/index.js +15 -2
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +18 -18
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +10 -10
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +20 -20
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +17 -17
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +16 -16
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +2 -2
- package/dist/components/MultipleSelect/components/index.d.ts +3 -3
- package/dist/components/MultipleSelect/index.d.ts +5 -5
- package/dist/components/MultipleSelect/index.js +1 -1
- package/dist/components/MultipleSelect/types.d.ts +37 -37
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/pagination.test.d.ts +1 -1
- package/dist/components/Pagination/styles.d.ts +34 -34
- package/dist/components/Pagination/types.d.ts +28 -28
- package/dist/components/Progress/Circle/index.d.ts +3 -3
- package/dist/components/Progress/Circle/styles.d.ts +27 -27
- package/dist/components/Progress/Circle/types.d.ts +18 -18
- package/dist/components/Progress/Linear/index.d.ts +3 -3
- package/dist/components/Progress/Linear/styles.d.ts +15 -15
- package/dist/components/Progress/Linear/types.d.ts +13 -13
- package/dist/components/Progress/getSteps.d.ts +1 -1
- package/dist/components/Progress/index.d.ts +4 -4
- package/dist/components/Progress/progress.test.d.ts +1 -1
- package/dist/components/Progress/types.d.ts +27 -27
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
- package/dist/components/RadioInput/styles.d.ts +30 -30
- package/dist/components/RadioInput/types.d.ts +32 -32
- package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
- package/dist/components/Rating/index.d.ts +3 -3
- package/dist/components/Rating/index.d.ts.map +1 -1
- package/dist/components/Rating/index.js +41 -37
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/styles.d.ts +18 -18
- package/dist/components/Rating/types.d.ts +19 -19
- package/dist/components/Rating/types.d.ts.map +1 -1
- package/dist/components/ReactPortal/index.d.ts +7 -7
- package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
- package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
- package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
- package/dist/components/Select/components/OptionsSelect/styles.d.ts +265 -265
- package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +121 -112
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +22 -17
- package/dist/components/Select/styles.d.ts.map +1 -1
- package/dist/components/Select/styles.js +12 -6
- package/dist/components/Select/types.d.ts +26 -26
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Skeleton/index.d.ts +4 -4
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/types.d.ts +40 -40
- package/dist/components/Slider/SliderExample.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +19 -19
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/styles.d.ts +65 -65
- package/dist/components/Slider/types.d.ts +40 -40
- package/dist/components/Spinner/index.d.ts +4 -4
- package/dist/components/Spinner/spinner.test.d.ts +1 -1
- package/dist/components/Spinner/styles.d.ts +288 -288
- package/dist/components/Spinner/types.d.ts +11 -11
- package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
- package/dist/components/Steps/index.d.ts +4 -4
- package/dist/components/Steps/steps.test.d.ts +1 -1
- package/dist/components/Steps/styles.d.ts +45 -45
- package/dist/components/Steps/types.d.ts +20 -20
- package/dist/components/Steps/utils.d.ts +7 -7
- package/dist/components/Switch/index.d.ts +4 -4
- package/dist/components/Switch/styles.d.ts +18 -18
- package/dist/components/Switch/switch.test.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +14 -14
- package/dist/components/Table/components/MenuItem.d.ts +3 -3
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/styles.d.ts +34 -34
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/types.d.ts +39 -39
- package/dist/components/Tabs/TabsExample.d.ts +3 -3
- package/dist/components/Tabs/components/Tab.d.ts +3 -3
- package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/components/Tabs.d.ts +4 -4
- package/dist/components/Tabs/index.d.ts +3 -3
- package/dist/components/Tabs/styles.d.ts +41 -41
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts +50 -50
- package/dist/components/Tag/index.d.ts +4 -4
- package/dist/components/Tag/styles.d.ts +869 -869
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +9 -9
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/styles.d.ts +18 -18
- package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
- package/dist/components/TextAreaInput/styles.js +2 -2
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/types.d.ts +26 -26
- package/dist/components/Thumbnail/index.d.ts +3 -3
- package/dist/components/Thumbnail/styles.d.ts +42 -42
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts +28 -28
- package/dist/components/Thumbnail/utils/index.d.ts +2 -2
- package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
- package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
- package/dist/components/Timeline/components/Timeline.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
- package/dist/components/Timeline/index.d.ts +4 -4
- package/dist/components/Timeline/styles.d.ts +31 -31
- package/dist/components/Timeline/timeline.test.d.ts +1 -1
- package/dist/components/Timeline/types.d.ts +20 -20
- package/dist/components/Toast/button-example.d.ts +6 -6
- package/dist/components/Toast/components/Toast.d.ts +4 -4
- package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
- package/dist/components/Toast/hooks/useToast.d.ts +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/styles.d.ts +22 -22
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Toast/toast.test.d.ts +1 -1
- package/dist/components/Toast/types.d.ts +26 -26
- package/dist/components/Tooltip/components/TooltipLabel.d.ts +3 -3
- package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.js +36 -3
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +63 -18
- package/dist/components/Tooltip/styles.d.ts +264 -261
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +8 -4
- package/dist/components/Tooltip/types.d.ts +25 -22
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Typography/index.d.ts +4 -4
- package/dist/components/Typography/styles.d.ts +21 -21
- package/dist/components/Typography/types.d.ts +16 -16
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/index.d.ts +53 -53
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/formatters/format-number.d.ts +5 -5
- package/dist/shared/formatters/types.d.ts +5 -5
- package/dist/shared/hooks/devices.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
- package/dist/shared/hooks/useBreakpoints.d.ts.map +1 -1
- package/dist/shared/hooks/useBreakpoints.js +8 -7
- package/dist/shared/hooks/useDevices.d.ts +8 -8
- package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.js +25 -21
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
- package/dist/shared/hooks/useOnClickOutside.d.ts.map +1 -1
- package/dist/shared/hooks/useOnClickOutside.js +10 -0
- package/dist/shared/hooks/useWindowSize.d.ts +8 -8
- package/dist/shared/tests/test-utils.d.ts +4 -4
- package/dist/shared/theme/button-example.d.ts +2 -2
- package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
- package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
- package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/theme.d.ts +282 -282
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.types.d.ts +14 -14
- package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
- package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
- package/dist/utils/GenerateKey.d.ts +10 -10
- package/dist/utils/brightnessColorChange.d.ts +8 -8
- package/dist/utils/colorCheck.d.ts +40 -40
- package/dist/utils/colorFunctions.d.ts +2 -2
- package/dist/utils/colorToGray.d.ts +5 -5
- package/dist/utils/fuctionsColors.d.ts +2 -2
- package/dist/utils/generateUUID.d.ts +1 -1
- package/dist/utils/getColorValue.d.ts +292 -292
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/getValuesBySize.d.ts +6 -6
- package/dist/utils/invertColor.d.ts +7 -7
- package/package.json +1 -1
- package/dist/components/Progress/style.d.ts +0 -39
- package/dist/components/Progress/style.d.ts.map +0 -1
- package/dist/components/Progress/style.js +0 -137
- package/dist/components/Progress/type.d.ts +0 -70
- package/dist/components/Progress/type.d.ts.map +0 -1
- package/dist/components/Progress/type.js +0 -1
- package/dist/components/Rating/components/GradientIcon/data/dash.d.ts +0 -9
- package/dist/components/Rating/components/GradientIcon/data/dash.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/data/dash.js +0 -150
- package/dist/components/Rating/components/GradientIcon/data/ecommerce.d.ts +0 -9
- package/dist/components/Rating/components/GradientIcon/data/ecommerce.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/data/ecommerce.js +0 -24
- package/dist/components/Rating/components/GradientIcon/index.d.ts +0 -5
- package/dist/components/Rating/components/GradientIcon/index.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/index.js +0 -81
- package/dist/components/Rating/components/GradientIcon/scripts/build.d.ts +0 -8
- package/dist/components/Rating/components/GradientIcon/scripts/build.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/scripts/build.js +0 -137
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.d.ts +0 -16
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.js +0 -62
- package/dist/components/Rating/components/GradientIcon/scripts/test.js +0 -7
- package/dist/components/Rating/components/GradientIcon/scripts/writers.d.ts +0 -23
- package/dist/components/Rating/components/GradientIcon/scripts/writers.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/scripts/writers.js +0 -53
- package/dist/components/Rating/components/GradientIcon/styles.d.ts +0 -13
- package/dist/components/Rating/components/GradientIcon/styles.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/styles.js +0 -24
- package/dist/components/Rating/components/GradientIcon/types.d.ts +0 -16
- package/dist/components/Rating/components/GradientIcon/types.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/types.js +0 -1
- package/dist/components/Rating/components/GradientIcon/utils/allIcons.d.ts +0 -9
- package/dist/components/Rating/components/GradientIcon/utils/allIcons.d.ts.map +0 -1
- package/dist/components/Rating/components/GradientIcon/utils/allIcons.js +0 -25
- package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.js +0 -141
- package/dist/components/Rating/components/RatingWithMultipleValues/styles.d.ts +0 -7
- package/dist/components/Rating/components/RatingWithMultipleValues/styles.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithMultipleValues/styles.js +0 -23
- package/dist/components/Rating/components/RatingWithMultipleValues/types.d.ts +0 -17
- package/dist/components/Rating/components/RatingWithMultipleValues/types.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithMultipleValues/types.js +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.js +0 -73
- package/dist/components/Rating/components/RatingWithSingleValue/icons/0.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithSingleValue/icons/0.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/icons/0.js +0 -27
- package/dist/components/Rating/components/RatingWithSingleValue/icons/1.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithSingleValue/icons/1.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/icons/1.js +0 -27
- package/dist/components/Rating/components/RatingWithSingleValue/icons/2.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithSingleValue/icons/2.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/icons/2.js +0 -27
- package/dist/components/Rating/components/RatingWithSingleValue/icons/3.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithSingleValue/icons/3.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/icons/3.js +0 -27
- package/dist/components/Rating/components/RatingWithSingleValue/icons/4.d.ts +0 -4
- package/dist/components/Rating/components/RatingWithSingleValue/icons/4.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/icons/4.js +0 -27
- package/dist/components/Rating/components/RatingWithSingleValue/icons/index.d.ts +0 -7
- package/dist/components/Rating/components/RatingWithSingleValue/icons/index.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/icons/index.js +0 -41
- package/dist/components/Rating/components/RatingWithSingleValue/styles.d.ts +0 -7
- package/dist/components/Rating/components/RatingWithSingleValue/styles.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/styles.js +0 -35
- package/dist/components/Rating/components/RatingWithSingleValue/types.d.ts +0 -11
- package/dist/components/Rating/components/RatingWithSingleValue/types.d.ts.map +0 -1
- package/dist/components/Rating/components/RatingWithSingleValue/types.js +0 -1
- package/dist/components/Rating/utils/IconObjectsController.d.ts +0 -10
- package/dist/components/Rating/utils/IconObjectsController.d.ts.map +0 -1
- package/dist/components/Rating/utils/IconObjectsController.js +0 -127
- package/dist/components/Rating/utils/svgDataTratamentFunction.d.ts +0 -10
- package/dist/components/Rating/utils/svgDataTratamentFunction.d.ts.map +0 -1
- package/dist/components/Rating/utils/svgDataTratamentFunction.js +0 -39
- package/dist/shared/hooks/breakpoints.d.ts +0 -9
- package/dist/shared/hooks/breakpoints.d.ts.map +0 -1
- package/dist/shared/hooks/breakpoints.js +0 -14
- package/dist/shared/hooks/useBreakpoint.d.ts +0 -9
- package/dist/shared/hooks/useBreakpoint.d.ts.map +0 -1
- package/dist/shared/hooks/useBreakpoint.js +0 -61
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function BoxClosedSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function BoxClosedSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function BoxDeliverySvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function BoxDeliverySvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function BoxOpenSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function BoxOpenSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function CalendarSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function CalendarSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function CardSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function CardSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function CollaboratorSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function CollaboratorSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function InquirySvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function InquirySvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function OrderSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function OrderSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function PixSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function PixSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function PrescriptionSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function PrescriptionSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function TransportSvg({ color }: {
|
|
3
|
-
color: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function TransportSvg({ color }: {
|
|
3
|
+
color: string;
|
|
4
|
+
}): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=illustration.test.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IllustrationProps } from './types';
|
|
3
|
-
declare const Illustration: FC<IllustrationProps>;
|
|
4
|
-
export default Illustration;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IllustrationProps } from './types';
|
|
3
|
+
declare const Illustration: FC<IllustrationProps>;
|
|
4
|
+
export default Illustration;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IllustrationProps } from './types';
|
|
3
|
-
export declare const IllustrationContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export declare const IconContainer: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & Partial<IllustrationProps>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IllustrationProps } from './types';
|
|
3
|
+
export declare const IllustrationContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const IconContainer: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
} & Partial<IllustrationProps>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
11
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IconName } from '../Icon/types';
|
|
2
|
-
export interface IllustrationProps {
|
|
3
|
-
iconName?: IconName;
|
|
4
|
-
name?: 'illust-inquiry' | 'illust-order' | 'illust-alternative-order' | 'illust-prescription' | 'illust-calendar' | 'illust-card' | 'illust-pix' | 'illust-boleto' | 'illust-box-closed' | 'illust-box-open' | 'illust-box-delivery' | 'illust-transport' | 'illust-collaborator';
|
|
5
|
-
type?: 'default' | 'success' | 'warning' | 'error' | 'critical' | 'informative';
|
|
6
|
-
}
|
|
1
|
+
import { IconName } from '../Icon/types';
|
|
2
|
+
export interface IllustrationProps {
|
|
3
|
+
iconName?: IconName;
|
|
4
|
+
name?: 'illust-inquiry' | 'illust-order' | 'illust-alternative-order' | 'illust-prescription' | 'illust-calendar' | 'illust-card' | 'illust-pix' | 'illust-boleto' | 'illust-box-closed' | 'illust-box-open' | 'illust-box-delivery' | 'illust-transport' | 'illust-collaborator';
|
|
5
|
+
type?: 'default' | 'success' | 'warning' | 'error' | 'critical' | 'informative';
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ImageFake: JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ImageFake: JSX.Element;
|
|
3
3
|
//# sourceMappingURL=imageFake.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IInputProps } from './types';
|
|
3
|
-
declare const ImageItem: FC<IInputProps>;
|
|
4
|
-
export default ImageItem;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IInputProps } from './types';
|
|
3
|
+
declare const ImageItem: FC<IInputProps>;
|
|
4
|
+
export default ImageItem;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
2
2
|
//# sourceMappingURL=input.test.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStyleProps } from './types';
|
|
3
|
-
export declare const ImageItemWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
export declare const DescriptionWrapper: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
export declare const Title: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export declare const Subtitle: import("@emotion/styled").StyledComponent<{
|
|
20
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
-
as?: import("react").ElementType<any> | undefined;
|
|
22
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const Description: import("@emotion/styled").StyledComponent<{
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IStyleProps } from './types';
|
|
3
|
+
export declare const ImageItemWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const DescriptionWrapper: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export declare const Title: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const Subtitle: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const Description: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
} & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
27
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { Theme } from '@emotion/react';
|
|
3
|
-
export declare type IStyleProps = {
|
|
4
|
-
theme?: Theme;
|
|
5
|
-
imageSide?: 'left' | 'right';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
color?: string;
|
|
8
|
-
size?: 'normal' | 'large';
|
|
9
|
-
};
|
|
10
|
-
export declare type ImageItemStyles = {
|
|
11
|
-
imageItemStyle?: CSSProperties;
|
|
12
|
-
imageStyle?: CSSProperties;
|
|
13
|
-
titleStyle?: CSSProperties;
|
|
14
|
-
subtitleStyle?: CSSProperties;
|
|
15
|
-
};
|
|
16
|
-
export interface IInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
17
|
-
title?: string;
|
|
18
|
-
subtitle?: string;
|
|
19
|
-
size?: 'normal' | 'large';
|
|
20
|
-
imageSide?: 'left' | 'right';
|
|
21
|
-
styles?: ImageItemStyles;
|
|
22
|
-
color?: string;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
}
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
export declare type IStyleProps = {
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
imageSide?: 'left' | 'right';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: 'normal' | 'large';
|
|
9
|
+
};
|
|
10
|
+
export declare type ImageItemStyles = {
|
|
11
|
+
imageItemStyle?: CSSProperties;
|
|
12
|
+
imageStyle?: CSSProperties;
|
|
13
|
+
titleStyle?: CSSProperties;
|
|
14
|
+
subtitleStyle?: CSSProperties;
|
|
15
|
+
};
|
|
16
|
+
export interface IInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
17
|
+
title?: string;
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
size?: 'normal' | 'large';
|
|
20
|
+
imageSide?: 'left' | 'right';
|
|
21
|
+
styles?: ImageItemStyles;
|
|
22
|
+
color?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
}
|
|
26
26
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { InputGroupProps } from './types';
|
|
3
|
-
declare const Input: import("react").ForwardRefExoticComponent<InputGroupProps & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
|
-
export default Input;
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { InputGroupProps } from './types';
|
|
3
|
+
declare const Input: import("react").ForwardRefExoticComponent<InputGroupProps & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default Input;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAKpB,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAKpB,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,KAAK,sJAoGV,CAAC;AAGF,eAAe,KAAK,CAAC"}
|
|
@@ -13,7 +13,7 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
|
-
var _excluded = ["placeholder", "type", "disabled", "label", "labelBackground", "withIcon", "hiddenContent", "helperText", "alert", "withAddon", "addonContent"];
|
|
16
|
+
var _excluded = ["placeholder", "type", "disabled", "label", "labelBackground", "withIcon", "hiddenContent", "helperText", "alert", "withAddon", "addonContent", "leftIcon", "rightIcon"];
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
@@ -51,6 +51,8 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
51
51
|
alert = _ref.alert,
|
|
52
52
|
withAddon = _ref.withAddon,
|
|
53
53
|
addonContent = _ref.addonContent,
|
|
54
|
+
leftIcon = _ref.leftIcon,
|
|
55
|
+
rightIcon = _ref.rightIcon,
|
|
54
56
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
55
57
|
|
|
56
58
|
var _useState = (0, _react.useState)(false),
|
|
@@ -99,6 +101,7 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
99
101
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.InputContent, {
|
|
100
102
|
withAddon: withAddon,
|
|
101
103
|
children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.InputLabel, {
|
|
104
|
+
withIcon: !!withIcon,
|
|
102
105
|
hasDisabled: disabled,
|
|
103
106
|
children: label
|
|
104
107
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Fieldset, {
|
|
@@ -112,13 +115,13 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
112
115
|
})
|
|
113
116
|
})
|
|
114
117
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.InputContentRow, {
|
|
115
|
-
children: [withIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.InputIcon, {
|
|
116
|
-
children: withIcon
|
|
118
|
+
children: [(withIcon || leftIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.InputIcon, {
|
|
119
|
+
children: withIcon || leftIcon
|
|
117
120
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Input, _objectSpread(_objectSpread({
|
|
118
121
|
"data-input": "input",
|
|
119
122
|
type: hiddenInfo ? 'password' : type,
|
|
120
123
|
"aria-label": label,
|
|
121
|
-
withIcon: withIcon,
|
|
124
|
+
withIcon: withIcon || leftIcon || rightIcon,
|
|
122
125
|
hiddenContent: hiddenContent,
|
|
123
126
|
disabled: disabled,
|
|
124
127
|
alert: alert,
|
|
@@ -139,6 +142,8 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
139
142
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
140
143
|
name: "eye-off"
|
|
141
144
|
})
|
|
145
|
+
}), rightIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.InputIcon, {
|
|
146
|
+
children: rightIcon
|
|
142
147
|
})]
|
|
143
148
|
})]
|
|
144
149
|
})]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
2
2
|
//# sourceMappingURL=input.test.d.ts.map
|
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { InputComponentProps, InputProps } from './types';
|
|
3
|
-
import { GenericStyledProps } from '../../@types';
|
|
4
|
-
export declare const InputGroupElement: import("@emotion/styled").StyledComponent<{
|
|
5
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
-
} & InputComponentProps & {
|
|
8
|
-
hasDisabled?: boolean | undefined;
|
|
9
|
-
withIcon?: boolean | undefined;
|
|
10
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
export declare const InputColumn: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
export declare const InputContent: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
withAddon?: boolean | undefined;
|
|
20
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
-
export declare const InputContentRow: import("@emotion/styled").StyledComponent<{
|
|
22
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
-
as?: import("react").ElementType<any> | undefined;
|
|
24
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
|
-
export declare const InputIcon: import("@emotion/styled").StyledComponent<{
|
|
26
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
-
as?: import("react").ElementType<any> | undefined;
|
|
28
|
-
} & GenericStyledProps & {
|
|
29
|
-
clickable?: boolean | undefined;
|
|
30
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
-
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
32
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
-
as?: import("react").ElementType<any> | undefined;
|
|
34
|
-
} & InputProps, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
35
|
-
export declare const InputLabel: import("@emotion/styled").StyledComponent<{
|
|
36
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
-
as?: import("react").ElementType<any> | undefined;
|
|
38
|
-
} & {
|
|
39
|
-
hasDisabled?: boolean | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputComponentProps, InputProps } from './types';
|
|
3
|
+
import { GenericStyledProps } from '../../@types';
|
|
4
|
+
export declare const InputGroupElement: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} & InputComponentProps & {
|
|
8
|
+
hasDisabled?: boolean | undefined;
|
|
9
|
+
withIcon?: boolean | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const InputColumn: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export declare const InputContent: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
withAddon?: boolean | undefined;
|
|
20
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
+
export declare const InputContentRow: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
|
+
export declare const InputIcon: import("@emotion/styled").StyledComponent<{
|
|
26
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
+
as?: import("react").ElementType<any> | undefined;
|
|
28
|
+
} & GenericStyledProps & {
|
|
29
|
+
clickable?: boolean | undefined;
|
|
30
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
+
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any> | undefined;
|
|
34
|
+
} & InputProps, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
35
|
+
export declare const InputLabel: import("@emotion/styled").StyledComponent<{
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any> | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
hasDisabled?: boolean | undefined;
|
|
40
|
+
withIcon?: boolean | undefined;
|
|
41
|
+
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
42
|
+
export declare const Fieldset: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
|
+
} & InputProps & {
|
|
46
|
+
hasDisabled?: boolean | undefined;
|
|
47
|
+
}, import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, {}>;
|
|
48
|
+
export declare const Legend: import("@emotion/styled").StyledComponent<{
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
as?: import("react").ElementType<any> | undefined;
|
|
51
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, {}>;
|
|
52
|
+
export declare const LegendText: import("@emotion/styled").StyledComponent<{
|
|
53
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
54
|
+
as?: import("react").ElementType<any> | undefined;
|
|
55
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
56
|
+
export declare const HelperText: import("@emotion/styled").StyledComponent<{
|
|
57
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
58
|
+
as?: import("react").ElementType<any> | undefined;
|
|
59
|
+
} & InputProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
60
|
+
export declare const AddonElement: import("@emotion/styled").StyledComponent<{
|
|
61
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
62
|
+
as?: import("react").ElementType<any> | undefined;
|
|
63
|
+
} & InputProps & {
|
|
64
|
+
hasDisabled?: boolean | undefined;
|
|
65
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
66
|
+
export declare const AddonContent: import("@emotion/styled").StyledComponent<{
|
|
67
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
68
|
+
as?: import("react").ElementType<any> | undefined;
|
|
69
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
69
70
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,iBAAiB;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,iBAAiB;;;;;;yGAsI7B,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAQvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;yGAKxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAK3B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;yGAarB,CAAC;AAEF,eAAO,MAAM,KAAK;;;+HA+BjB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;kHAqBtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;2HAyCpB,CAAC;AAEF,eAAO,MAAM,MAAM;;;+GAQlB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAItB,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAUtB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;yGAyCxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;2GAOxB,CAAC"}
|
|
@@ -19,7 +19,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
19
19
|
|
|
20
20
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
21
|
|
|
22
|
-
var InputGroupElement = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-radius: ", ";\n font-weight: ", ";\n transition: all 0.2s ease-in-out;\n\n &:hover fieldset {\n border-color: ", ";\n }\n\n &:hover > div > div:first-of-type {\n border-color: ", ";\n &:hover label {\n color: ", ";\n }\n }\n\n &:focus-within > div > div:first-of-type {\n background: ", ";\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type span {\n color: ", ";\n }\n\n &:focus-within {\n border-radius: 2px solid ", ";\n }\n &:focus-within label {\n color: ", ";\n }\n\n &:focus-within > div {\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n &:focus-within label {\n transform: translate(19px, -11px) scale(0.8);\n\n background-color: ", ";\n height:
|
|
22
|
+
var InputGroupElement = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-radius: ", ";\n font-weight: ", ";\n transition: all 0.2s ease-in-out;\n\n &:hover fieldset {\n border-color: ", ";\n }\n\n &:hover > div > div:first-of-type {\n border-color: ", ";\n &:hover label {\n color: ", ";\n }\n }\n\n &:focus-within > div > div:first-of-type {\n background: ", ";\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type span {\n color: ", ";\n }\n\n &:focus-within {\n border-radius: 2px solid ", ";\n }\n &:focus-within label {\n color: ", ";\n }\n\n &:focus-within > div {\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n &:focus-within label {\n transform: translate(19px, -11px) scale(0.8);\n\n background-color: ", ";\n height: 20px;\n }\n\n &:focus-within fieldset {\n border-width: 2px;\n border-color: ", ";\n }\n\n ", "\n\n & label {\n transform: ", ";\n\n background-color: ", ";\n height: ", ";\n }\n"])), function (props) {
|
|
23
23
|
return props.theme.borderRadius.default;
|
|
24
24
|
}, function (props) {
|
|
25
25
|
return props.theme.fontWeight[400];
|
|
@@ -106,7 +106,7 @@ var InputGroupElement = _styled.default.div(_templateObject || (_templateObject
|
|
|
106
106
|
}[props.theme.colorMode];
|
|
107
107
|
}, function (_ref6) {
|
|
108
108
|
var hasValueOnInput = _ref6.hasValueOnInput;
|
|
109
|
-
return hasValueOnInput ? '
|
|
109
|
+
return hasValueOnInput ? '20px' : 'unset';
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
exports.InputGroupElement = InputGroupElement;
|
|
@@ -153,18 +153,21 @@ var Input = _styled.default.input(_templateObject7 || (_templateObject7 = _tagge
|
|
|
153
153
|
|
|
154
154
|
exports.Input = Input;
|
|
155
155
|
|
|
156
|
-
var InputLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n height: auto;\n padding: 0 6px;\n position: absolute;\n z-index: ", ";\n pointer-events: none;\n color: ", ";\n background-color: transparent;\n transform-origin: left;\n transition: all ease 0.2s;\n font-weight: 500;\n"])), function (props) {
|
|
156
|
+
var InputLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n height: auto;\n padding: 0 6px;\n position: absolute;\n z-index: ", ";\n pointer-events: none;\n color: ", ";\n background-color: transparent;\n transform-origin: left;\n transition: all ease 0.2s;\n font-weight: 500;\n\n white-space: nowrap;\n max-width: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (props) {
|
|
157
157
|
return props.theme.zIndex.level1;
|
|
158
158
|
}, function (props) {
|
|
159
159
|
return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.neutral3;
|
|
160
|
+
}, function (_ref9) {
|
|
161
|
+
var withIcon = _ref9.withIcon;
|
|
162
|
+
return withIcon ? '65%' : '85%';
|
|
160
163
|
});
|
|
161
164
|
|
|
162
165
|
exports.InputLabel = InputLabel;
|
|
163
166
|
|
|
164
|
-
var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n top: 0;\n pointer-events: none;\n padding: 0 17px;\n overflow: hidden;\n\n background-color: ", ";\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n border-left: ", ";\n\n transition: all 0.2s ease;\n"])), function (
|
|
165
|
-
var alert =
|
|
166
|
-
theme =
|
|
167
|
-
hasDisabled =
|
|
167
|
+
var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n top: 0;\n pointer-events: none;\n padding: 0 17px;\n overflow: hidden;\n\n background-color: ", ";\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n border-left: ", ";\n\n transition: all 0.2s ease;\n"])), function (_ref10) {
|
|
168
|
+
var alert = _ref10.alert,
|
|
169
|
+
theme = _ref10.theme,
|
|
170
|
+
hasDisabled = _ref10.hasDisabled;
|
|
168
171
|
|
|
169
172
|
if (alert && !hasDisabled) {
|
|
170
173
|
return "".concat(theme.colors[alert].blurred, "33");
|
|
@@ -177,10 +180,10 @@ var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 =
|
|
|
177
180
|
return 'transparent';
|
|
178
181
|
}, function (props) {
|
|
179
182
|
return props.withAddon ? "0 ".concat(props.theme.borderRadius.default, " ").concat(props.theme.borderRadius.default, " 0") : props.theme.borderRadius.default;
|
|
180
|
-
}, function (
|
|
181
|
-
var theme =
|
|
182
|
-
hasDisabled =
|
|
183
|
-
alert =
|
|
183
|
+
}, function (_ref11) {
|
|
184
|
+
var theme = _ref11.theme,
|
|
185
|
+
hasDisabled = _ref11.hasDisabled,
|
|
186
|
+
alert = _ref11.alert;
|
|
184
187
|
|
|
185
188
|
if (alert && !hasDisabled) {
|
|
186
189
|
return theme.colors[alert].default;
|
|
@@ -228,10 +231,10 @@ var AddonElement = _styled.default.div(_templateObject13 || (_templateObject13 =
|
|
|
228
231
|
light: props.theme.colors.neutral.neutral1,
|
|
229
232
|
dark: props.theme.colors.neutral.neutral6
|
|
230
233
|
}[props.theme.colorMode];
|
|
231
|
-
}, function (
|
|
232
|
-
var theme =
|
|
233
|
-
hasDisabled =
|
|
234
|
-
alert =
|
|
234
|
+
}, function (_ref12) {
|
|
235
|
+
var theme = _ref12.theme,
|
|
236
|
+
hasDisabled = _ref12.hasDisabled,
|
|
237
|
+
alert = _ref12.alert;
|
|
235
238
|
|
|
236
239
|
if (alert && !hasDisabled) {
|
|
237
240
|
return theme.colors[alert].default;
|