@pedidopago/ui 1.3.10 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -93
- 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/types.d.ts +101 -101
- package/dist/components/Card/card.test.tsx.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/types.d.ts +16 -16
- 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/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/ColorPicker/utils/parsers.js +18 -18
- 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 +264 -264
- package/dist/components/DateInput/components/ModalWrapper/types.d.ts +13 -13
- 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 +11 -11
- package/dist/components/DateInput/styles.d.ts +266 -266
- package/dist/components/DateInput/types.d.ts +16 -16
- 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 +12 -28
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/datepicker.test.js +0 -2
- 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 +8 -6
- package/dist/components/DatePicker/styles.d.ts +74 -74
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +27 -21
- package/dist/components/DatePicker/types.d.ts +58 -58
- 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/Dropzone/utils/accepts.js +8 -8
- 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/payment.d.ts.map +1 -1
- package/dist/components/Icon/data/payment.js +5 -19
- 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/build.js +2 -2
- package/dist/components/Icon/scripts/extractor.d.ts +15 -15
- package/dist/components/Icon/scripts/extractor.js +5 -5
- 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/scripts/writers.js +9 -9
- 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/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/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/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +68 -68
- package/dist/components/Input/types.d.ts +26 -26
- package/dist/components/Label/index.d.ts +4 -4
- 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 +15 -15
- 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 +3 -3
- 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 +27 -27
- 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/OptionsArea.d.ts +18 -18
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +15 -15
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +10 -10
- package/dist/components/MultipleSelect/components/SelectArea/Label.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/Label.js +35 -35
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +18 -18
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +17 -16
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/index.js +8 -5
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +11 -0
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -0
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +42 -0
- 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 +2 -2
- package/dist/components/MultipleSelect/types.d.ts +36 -37
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +3 -0
- 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/Linear/index.d.ts +3 -3
- 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/style.d.ts +38 -38
- package/dist/components/Progress/type.d.ts +69 -69
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +61 -76
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/index.d.ts.map +1 -1
- package/dist/components/RadioInput/index.js +22 -69
- package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
- package/dist/components/RadioInput/radio-input.test.js +44 -98
- package/dist/components/RadioInput/styles.d.ts +30 -30
- package/dist/components/RadioInput/styles.d.ts.map +1 -1
- package/dist/components/RadioInput/styles.js +5 -11
- package/dist/components/RadioInput/types.d.ts +32 -60
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
- package/dist/components/Rating/components/GradientIcon/data/dash.d.ts +8 -8
- package/dist/components/Rating/components/GradientIcon/data/ecommerce.d.ts +8 -8
- package/dist/components/Rating/components/GradientIcon/index.d.ts +4 -4
- package/dist/components/Rating/components/GradientIcon/scripts/build.d.ts +7 -7
- package/dist/components/Rating/components/GradientIcon/scripts/build.js +4 -4
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.d.ts +15 -15
- package/dist/components/Rating/components/GradientIcon/scripts/extractor.js +5 -5
- package/dist/components/Rating/components/GradientIcon/scripts/writers.d.ts +22 -22
- package/dist/components/Rating/components/GradientIcon/scripts/writers.js +9 -9
- package/dist/components/Rating/components/GradientIcon/styles.d.ts +12 -12
- package/dist/components/Rating/components/GradientIcon/types.d.ts +15 -15
- package/dist/components/Rating/components/GradientIcon/utils/allIcons.d.ts +8 -8
- package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithMultipleValues/styles.d.ts +6 -6
- package/dist/components/Rating/components/RatingWithMultipleValues/types.d.ts +16 -16
- package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/0.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/1.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/2.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/3.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/4.d.ts +3 -3
- package/dist/components/Rating/components/RatingWithSingleValue/icons/index.d.ts +6 -6
- package/dist/components/Rating/components/RatingWithSingleValue/styles.d.ts +6 -6
- package/dist/components/Rating/components/RatingWithSingleValue/types.d.ts +10 -10
- package/dist/components/Rating/index.d.ts +4 -4
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/types.d.ts +28 -28
- package/dist/components/Rating/utils/IconObjectsController.d.ts +9 -9
- package/dist/components/Rating/utils/svgDataTratamentFunction.d.ts +9 -9
- package/dist/components/ReactPortal/index.d.ts +7 -7
- package/dist/components/ReactPortal/index.d.ts.map +1 -1
- package/dist/components/ReactPortal/index.js +1 -1
- 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 +264 -264
- package/dist/components/Select/components/OptionsSelect/types.d.ts +15 -15
- 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 +12 -6
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +17 -17
- package/dist/components/Select/types.d.ts +22 -22
- package/dist/components/Skeleton/index.d.ts +4 -4
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +4 -5
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/styles.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.js +5 -3
- package/dist/components/Skeleton/types.d.ts +40 -35
- package/dist/components/Skeleton/types.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +4 -4
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +3 -0
- 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 +38 -38
- 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 +17 -17
- 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 +39 -39
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts +49 -49
- 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/index.d.ts.map +1 -1
- package/dist/components/TextAreaInput/index.js +31 -21
- 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 +15 -13
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/text-area-input.test.js +13 -13
- package/dist/components/TextAreaInput/types.d.ts +26 -25
- package/dist/components/TextAreaInput/types.d.ts.map +1 -1
- 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/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/index.d.ts +4 -4
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +12 -7
- package/dist/components/Tooltip/styles.d.ts +261 -261
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Tooltip/types.d.ts +22 -21
- 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 +20 -20
- package/dist/components/Typography/types.d.ts +15 -15
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/index.d.ts +46 -46
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/hooks/breakpoints.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoint.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoint.js +5 -5
- 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 +2 -1
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
- package/dist/shared/hooks/useWindowSize.d.ts +4 -4
- 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/GenerateKey.js +6 -6
- package/dist/utils/brightnessColorChange.d.ts +8 -8
- package/dist/utils/brightnessColorChange.js +6 -6
- package/dist/utils/colorCheck.d.ts +40 -40
- package/dist/utils/colorCheck.js +24 -24
- 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 +291 -291
- package/dist/utils/getColorValue.js +8 -8
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/invertColor.d.ts +7 -7
- package/dist/utils/invertColor.js +5 -5
- package/package.json +1 -1
|
@@ -32,11 +32,14 @@ describe('Radio Input', function () {
|
|
|
32
32
|
it('should check input on Click on input', function () {
|
|
33
33
|
var fn = jest.fn();
|
|
34
34
|
|
|
35
|
-
var _render2 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
var _render2 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
|
|
36
|
+
radiosName: "radio",
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
38
|
+
onChange: fn,
|
|
39
|
+
value: "test",
|
|
40
|
+
id: "test",
|
|
41
|
+
children: "Radio Test"
|
|
42
|
+
})
|
|
40
43
|
})),
|
|
41
44
|
container = _render2.container;
|
|
42
45
|
|
|
@@ -49,11 +52,14 @@ describe('Radio Input', function () {
|
|
|
49
52
|
it('should check input on Click label', function () {
|
|
50
53
|
var fn = jest.fn();
|
|
51
54
|
|
|
52
|
-
var _render3 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
var _render3 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
|
|
56
|
+
radiosName: "radio",
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
58
|
+
onChange: fn,
|
|
59
|
+
value: "test",
|
|
60
|
+
id: "test",
|
|
61
|
+
children: "Radio Test"
|
|
62
|
+
})
|
|
57
63
|
})),
|
|
58
64
|
container = _render3.container,
|
|
59
65
|
getByText = _render3.getByText;
|
|
@@ -68,12 +74,15 @@ describe('Radio Input', function () {
|
|
|
68
74
|
it('should checked input if defaultChecked is provided', function () {
|
|
69
75
|
var fn = jest.fn();
|
|
70
76
|
|
|
71
|
-
var _render4 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
var _render4 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
|
|
78
|
+
defaultValue: "test",
|
|
79
|
+
radiosName: "radio",
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
81
|
+
onChange: fn,
|
|
82
|
+
value: "test",
|
|
83
|
+
id: "test",
|
|
84
|
+
children: "Radio Test"
|
|
85
|
+
})
|
|
77
86
|
})),
|
|
78
87
|
container = _render4.container;
|
|
79
88
|
|
|
@@ -83,87 +92,27 @@ describe('Radio Input', function () {
|
|
|
83
92
|
it('should call onChange on Click input', function () {
|
|
84
93
|
var fn = jest.fn();
|
|
85
94
|
|
|
86
|
-
var _render5 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
var _render5 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
|
|
96
|
+
onChangeValue: fn,
|
|
97
|
+
radiosName: "radio",
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
99
|
+
value: "test",
|
|
100
|
+
id: "test",
|
|
101
|
+
children: "Radio Test"
|
|
102
|
+
})
|
|
91
103
|
})),
|
|
92
104
|
container = _render5.container;
|
|
93
105
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
_react.fireEvent.click(radio);
|
|
106
|
+
_react.fireEvent.click(container);
|
|
97
107
|
|
|
98
108
|
expect(fn).toBeCalled();
|
|
99
109
|
});
|
|
100
|
-
it('should ChoiceList control radio childrens', function () {
|
|
101
|
-
var fn = jest.fn();
|
|
102
|
-
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
|
|
103
|
-
onChange: fn,
|
|
104
|
-
value: "test1",
|
|
105
|
-
name: "test-name",
|
|
106
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
107
|
-
value: "test1",
|
|
108
|
-
id: "test",
|
|
109
|
-
children: "Radio Test 1"
|
|
110
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
111
|
-
value: "test2",
|
|
112
|
-
id: "test",
|
|
113
|
-
children: "Radio Test 2"
|
|
114
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
115
|
-
value: "test3",
|
|
116
|
-
id: "test",
|
|
117
|
-
children: "Radio Test 3"
|
|
118
|
-
})]
|
|
119
|
-
}));
|
|
120
|
-
|
|
121
|
-
var sut = _react.screen.getAllByRole('radio');
|
|
122
|
-
|
|
123
|
-
expect(sut[0]).toBeChecked();
|
|
124
|
-
expect(sut[1]).not.toBeChecked();
|
|
125
|
-
expect(sut[2]).not.toBeChecked();
|
|
126
|
-
});
|
|
127
|
-
it('Should ChoiceList change checked radio children is defaultValue is provided', function () {
|
|
128
|
-
var fn = jest.fn();
|
|
129
|
-
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
|
|
130
|
-
onChange: fn,
|
|
131
|
-
value: "",
|
|
132
|
-
name: "test-name",
|
|
133
|
-
defaultValue: "test3",
|
|
134
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
135
|
-
value: "test1",
|
|
136
|
-
id: "test",
|
|
137
|
-
children: "Radio Test 1"
|
|
138
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
139
|
-
value: "test2",
|
|
140
|
-
id: "test",
|
|
141
|
-
children: "Radio Test 2"
|
|
142
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
143
|
-
value: "test3",
|
|
144
|
-
id: "test",
|
|
145
|
-
children: "Radio Test 3"
|
|
146
|
-
})]
|
|
147
|
-
}));
|
|
148
|
-
|
|
149
|
-
var sut = _react.screen.getAllByRole('radio');
|
|
150
|
-
|
|
151
|
-
expect(sut[0]).not.toBeChecked();
|
|
152
|
-
expect(sut[1]).not.toBeChecked();
|
|
153
|
-
expect(sut[2]).toBeChecked();
|
|
154
|
-
|
|
155
|
-
_react.fireEvent.click(sut[0]);
|
|
156
|
-
|
|
157
|
-
expect(sut[0]).toBeChecked();
|
|
158
|
-
expect(sut[2]).not.toBeChecked();
|
|
159
|
-
});
|
|
160
110
|
it('Should ChoiceList disabled radio children is isDisabled is provided', function () {
|
|
161
111
|
var fn = jest.fn();
|
|
162
112
|
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
|
|
163
|
-
|
|
164
|
-
value: "",
|
|
113
|
+
onChangeValue: fn,
|
|
165
114
|
isDisabled: true,
|
|
166
|
-
|
|
115
|
+
radiosName: "test-name",
|
|
167
116
|
defaultValue: "test3",
|
|
168
117
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
169
118
|
value: "test1",
|
|
@@ -189,9 +138,8 @@ describe('Radio Input', function () {
|
|
|
189
138
|
it('should render helpText if helpText is provided', function () {
|
|
190
139
|
var fn = jest.fn();
|
|
191
140
|
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
name: "test-name",
|
|
141
|
+
onChangeValue: fn,
|
|
142
|
+
radiosName: "test-name",
|
|
195
143
|
defaultValue: "test3",
|
|
196
144
|
helpText: "Help Text",
|
|
197
145
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
@@ -213,10 +161,9 @@ describe('Radio Input', function () {
|
|
|
213
161
|
it('should render label if label is provided', function () {
|
|
214
162
|
var fn = jest.fn();
|
|
215
163
|
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
|
|
216
|
-
|
|
217
|
-
value: "",
|
|
164
|
+
onChangeValue: fn,
|
|
218
165
|
label: "any_label",
|
|
219
|
-
|
|
166
|
+
radiosName: "test-name",
|
|
220
167
|
defaultValue: "test3",
|
|
221
168
|
helpText: "Help Text",
|
|
222
169
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
@@ -233,14 +180,13 @@ describe('Radio Input', function () {
|
|
|
233
180
|
children: "Radio Test 3"
|
|
234
181
|
})]
|
|
235
182
|
}));
|
|
236
|
-
expect(_react.screen.getByRole('radiogroup').children[
|
|
183
|
+
expect(_react.screen.getByRole('radiogroup').children[1].tagName.toLowerCase()).toBe('label');
|
|
237
184
|
});
|
|
238
185
|
it('should not render label if label not provided', function () {
|
|
239
186
|
var fn = jest.fn();
|
|
240
187
|
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
name: "test-name",
|
|
188
|
+
onChangeValue: fn,
|
|
189
|
+
radiosName: "test-name",
|
|
244
190
|
defaultValue: "test3",
|
|
245
191
|
helpText: "Help Text",
|
|
246
192
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
@@ -257,6 +203,6 @@ describe('Radio Input', function () {
|
|
|
257
203
|
children: "Radio Test 3"
|
|
258
204
|
})]
|
|
259
205
|
}));
|
|
260
|
-
expect(_react.screen.getByRole('radiogroup').children[
|
|
206
|
+
expect(_react.screen.getByRole('radiogroup').children[1].tagName.toLowerCase()).not.toBe('label');
|
|
261
207
|
});
|
|
262
208
|
});
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStyledRadioInput } from './types';
|
|
3
|
-
export declare const Wrapper: 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 Label: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
11
|
-
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
15
|
-
export declare const ChoiceWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
|
|
20
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
-
as?: import("react").ElementType<any> | undefined;
|
|
22
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
27
|
-
export declare const HelpText: import("@emotion/styled").StyledComponent<{
|
|
28
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
as?: import("react").ElementType<any> | undefined;
|
|
30
|
-
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IStyledRadioInput } from './types';
|
|
3
|
+
export declare const Wrapper: 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 Label: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
11
|
+
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
15
|
+
export declare const ChoiceWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
27
|
+
export declare const HelpText: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any> | undefined;
|
|
30
|
+
} & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
31
31
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,OAAO;;;yGAInB,CAAC;AAEF,eAAO,MAAM,KAAK;;;kHAGjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,OAAO;;;yGAInB,CAAC;AAEF,eAAO,MAAM,KAAK;;;kHAGjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;sIAgEjB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAAe,CAAC;AAE1C,eAAO,MAAM,WAAW;;;6HAOvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;sIASvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;+HASpB,CAAC"}
|
|
@@ -24,13 +24,8 @@ var Label = _styled.default.label(_templateObject2 || (_templateObject2 = _tagge
|
|
|
24
24
|
exports.Label = Label;
|
|
25
25
|
|
|
26
26
|
var Input = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
theme = _ref.theme;
|
|
30
|
-
return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n appearance: none;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid\n ", ";\n\n cursor: pointer;\n\n + label {\n color: ", ";\n line-height: 20px;\n cursor: pointer;\n }\n\n :hover {\n border-color: ", ";\n }\n :focus {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n :disabled {\n cursor: default;\n border-color: ", ";\n background-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n :checked {\n background-color: ", ";\n border-color: ", ";\n &:focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n &::after {\n display: none;\n }\n }\n\n &::after {\n content: '';\n display: block;\n width: 6px;\n height: 6px;\n background: #fff;\n border-radius: 50%;\n }\n }\n "])), {
|
|
31
|
-
light: theme.colors.neutral.neutral2,
|
|
32
|
-
dark: theme.colors.neutral.neutral5
|
|
33
|
-
}[theme.colorMode], theme.colorMode === 'light' ? colorProps === null || colorProps === void 0 ? void 0 : colorProps.black : theme.colors.neutral.white, theme.colors.primary.hover, colorProps === null || colorProps === void 0 ? void 0 : colorProps.focus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, color, color, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturationFocus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturationFocus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.shadowLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturation, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturation, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, colorProps === null || colorProps === void 0 ? void 0 : colorProps.graySaturation);
|
|
27
|
+
var colors = _ref.theme.colors;
|
|
28
|
+
return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n appearance: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n min-width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid ", ";\n transition: all ease 0.2s;\n cursor: pointer;\n\n + label {\n color: ", ";\n line-height: 20px;\n cursor: pointer;\n }\n\n :hover {\n border-color: ", ";\n }\n\n :disabled {\n cursor: default;\n border-color: ", ";\n background-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n :checked {\n background-color: ", ";\n border-color: ", ";\n &:focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n &::after {\n content: '';\n width: 6px;\n height: 6px;\n background: #fff;\n border-radius: 50%;\n }\n }\n "])), colors.neutral.neutral2, colors.neutral.black, colors.primary.hover, colors.neutral.neutral1, colors.neutral.neutral1, colors.neutral.neutral2, colors.primary.default, colors.primary.default, colors.primary.focus, colors.primary.focus, colors.primary.disabled, colors.primary.hover, colors.primary.hover, colors.neutral.neutral2, colors.neutral.neutral2, colors.neutral.neutral4);
|
|
34
29
|
});
|
|
35
30
|
|
|
36
31
|
exports.Input = Input;
|
|
@@ -48,9 +43,8 @@ var ListWrapper = _styled.default.div(_templateObject6 || (_templateObject6 = _t
|
|
|
48
43
|
exports.ListWrapper = ListWrapper;
|
|
49
44
|
|
|
50
45
|
var ChoiceLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref3) {
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), theme.colorMode === 'light' ? colorProps === null || colorProps === void 0 ? void 0 : colorProps.black : theme.colors.neutral.white);
|
|
46
|
+
var colors = _ref3.theme.colors;
|
|
47
|
+
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), colors.neutral.black);
|
|
54
48
|
});
|
|
55
49
|
|
|
56
50
|
exports.ChoiceLabel = ChoiceLabel;
|
|
@@ -58,7 +52,7 @@ exports.ChoiceLabel = ChoiceLabel;
|
|
|
58
52
|
var HelpText = _styled.default.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref4) {
|
|
59
53
|
var theme = _ref4.theme,
|
|
60
54
|
textColor = _ref4.textColor;
|
|
61
|
-
return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n font-weight:
|
|
55
|
+
return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n font-weight: 500;\n display: block;\n padding-left: 30px;\n margin-top: 18px;\n "])), theme.fontSizes.xxs, textColor);
|
|
62
56
|
});
|
|
63
57
|
|
|
64
58
|
exports.HelpText = HelpText;
|
|
@@ -1,61 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
value: string;
|
|
34
|
-
defaultValue?: string;
|
|
35
|
-
isDisabled?: boolean;
|
|
36
|
-
name: string;
|
|
37
|
-
alignDirection?: 'column' | 'row';
|
|
38
|
-
color?: string;
|
|
39
|
-
helpText?: string;
|
|
40
|
-
children: ReactNode;
|
|
41
|
-
formRegister?: FormRegister;
|
|
42
|
-
}
|
|
43
|
-
export declare type ChoiceListContext = {
|
|
44
|
-
handleRadioClick: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
45
|
-
isRadioSelected: (value: string) => boolean;
|
|
46
|
-
groupName: string;
|
|
47
|
-
groupColor: string;
|
|
48
|
-
groupFormRegister?: FormRegister;
|
|
49
|
-
isDisabled?: boolean;
|
|
50
|
-
};
|
|
51
|
-
export interface IStyledRadioInput {
|
|
52
|
-
color?: string;
|
|
53
|
-
colorProps?: ColorProps;
|
|
54
|
-
textColor?: string;
|
|
55
|
-
alignDirection?: 'column' | 'row';
|
|
56
|
-
disabledColor?: string;
|
|
57
|
-
disabledWithCheckedColor?: string;
|
|
58
|
-
disabledTextColor?: string;
|
|
59
|
-
disabledTextWithCheckedColor?: string;
|
|
60
|
-
}
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IRadioInputProps {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
id: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
color?: string;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface ChoiceListProps {
|
|
13
|
+
onChangeValue?: (value: string) => void;
|
|
14
|
+
label?: string;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
radiosName: string;
|
|
18
|
+
alignDirection?: 'column' | 'row';
|
|
19
|
+
color?: string;
|
|
20
|
+
helpText?: string;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare type ChoiceListContext = {
|
|
24
|
+
handleRadioClick: (e: string) => void;
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
groupName: string;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export interface IStyledRadioInput {
|
|
30
|
+
textColor?: string;
|
|
31
|
+
alignDirection?: 'column' | 'row';
|
|
32
|
+
}
|
|
61
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,oBAAY,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CACnC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare function getColorsProps(hue: number): {
|
|
2
|
-
black: string;
|
|
3
|
-
gray: string;
|
|
4
|
-
grayLightness: string;
|
|
5
|
-
graySaturation: string;
|
|
6
|
-
focus: string;
|
|
7
|
-
focusChecked: string;
|
|
8
|
-
shadowLightness: string;
|
|
9
|
-
saturation: string;
|
|
10
|
-
saturationFocus: string;
|
|
11
|
-
};
|
|
1
|
+
export declare function getColorsProps(hue: number): {
|
|
2
|
+
black: string;
|
|
3
|
+
gray: string;
|
|
4
|
+
grayLightness: string;
|
|
5
|
+
graySaturation: string;
|
|
6
|
+
focus: string;
|
|
7
|
+
focusChecked: string;
|
|
8
|
+
shadowLightness: string;
|
|
9
|
+
saturation: string;
|
|
10
|
+
saturationFocus: string;
|
|
11
|
+
};
|
|
12
12
|
//# sourceMappingURL=get-colors-props.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const dashIcons: {
|
|
2
|
-
name: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
}[];
|
|
1
|
+
export declare const dashIcons: {
|
|
2
|
+
name: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
}[];
|
|
9
9
|
//# sourceMappingURL=dash.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const ecommerceIcons: {
|
|
2
|
-
name: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
}[];
|
|
1
|
+
export declare const ecommerceIcons: {
|
|
2
|
+
name: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
}[];
|
|
9
9
|
//# sourceMappingURL=ecommerce.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IIconComponentProps } from './types';
|
|
3
|
-
declare const Icon: FC<IIconComponentProps>;
|
|
4
|
-
export default Icon;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IIconComponentProps } from './types';
|
|
3
|
+
declare const Icon: FC<IIconComponentProps>;
|
|
4
|
+
export default Icon;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds the icons and types files.
|
|
3
|
-
* To run this script, you need to call this at the test file:
|
|
4
|
-
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
5
|
-
*/
|
|
6
|
-
declare const builder: () => void;
|
|
7
|
-
export default builder;
|
|
1
|
+
/**
|
|
2
|
+
* Builds the icons and types files.
|
|
3
|
+
* To run this script, you need to call this at the test file:
|
|
4
|
+
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
5
|
+
*/
|
|
6
|
+
declare const builder: () => void;
|
|
7
|
+
export default builder;
|
|
8
8
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -35,10 +35,10 @@ var twirlTimer = function twirlTimer() {
|
|
|
35
35
|
x &= 3;
|
|
36
36
|
}, 250);
|
|
37
37
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Builds the icons and types files.
|
|
40
|
-
* To run this script, you need to call this at the test file:
|
|
41
|
-
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
38
|
+
/**
|
|
39
|
+
* Builds the icons and types files.
|
|
40
|
+
* To run this script, you need to call this at the test file:
|
|
41
|
+
* `require('./scripts/build')` or `import build from './scripts/build'`
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
44
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extractor is a function that extracts the svg content from the icon file.
|
|
3
|
-
* @param files - The directory with the files to extract.
|
|
4
|
-
* @param currentPath - The current path of the file
|
|
5
|
-
* @returns Array of objects with the name and the content of the icon svg.
|
|
6
|
-
*/
|
|
7
|
-
declare const extractor: (files: string[], currentPath: string) => {
|
|
8
|
-
name: string;
|
|
9
|
-
width: string;
|
|
10
|
-
height: string;
|
|
11
|
-
viewBox: string;
|
|
12
|
-
xmlns: string;
|
|
13
|
-
html: string;
|
|
14
|
-
}[];
|
|
15
|
-
export default extractor;
|
|
1
|
+
/**
|
|
2
|
+
* Extractor is a function that extracts the svg content from the icon file.
|
|
3
|
+
* @param files - The directory with the files to extract.
|
|
4
|
+
* @param currentPath - The current path of the file
|
|
5
|
+
* @returns Array of objects with the name and the content of the icon svg.
|
|
6
|
+
*/
|
|
7
|
+
declare const extractor: (files: string[], currentPath: string) => {
|
|
8
|
+
name: string;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
viewBox: string;
|
|
12
|
+
xmlns: string;
|
|
13
|
+
html: string;
|
|
14
|
+
}[];
|
|
15
|
+
export default extractor;
|
|
16
16
|
//# sourceMappingURL=extractor.d.ts.map
|
|
@@ -11,11 +11,11 @@ var _fs = require("fs");
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Extractor is a function that extracts the svg content from the icon file.
|
|
16
|
-
* @param files - The directory with the files to extract.
|
|
17
|
-
* @param currentPath - The current path of the file
|
|
18
|
-
* @returns Array of objects with the name and the content of the icon svg.
|
|
14
|
+
/**
|
|
15
|
+
* Extractor is a function that extracts the svg content from the icon file.
|
|
16
|
+
* @param files - The directory with the files to extract.
|
|
17
|
+
* @param currentPath - The current path of the file
|
|
18
|
+
* @returns Array of objects with the name and the content of the icon svg.
|
|
19
19
|
*/
|
|
20
20
|
var extractor = function extractor(files, currentPath) {
|
|
21
21
|
return files.map(function (file) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
declare type iconsList = {
|
|
2
|
-
name: string;
|
|
3
|
-
width: string;
|
|
4
|
-
height: string;
|
|
5
|
-
viewBox: string;
|
|
6
|
-
html: string;
|
|
7
|
-
xmlns: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* This function generates the types file for the Icon component
|
|
11
|
-
* @param iconsList - The list of icons
|
|
12
|
-
* @param overwrite - If true, the file will be overwritten
|
|
13
|
-
*/
|
|
14
|
-
export declare const writeTypesFile: (iconsList: iconsList[], overwrite?: boolean) => void;
|
|
15
|
-
/**
|
|
16
|
-
* This function generates the icons json file for the Icon component
|
|
17
|
-
* @param iconsList - The list of icons
|
|
18
|
-
* @param jsonFileName - The name of the json file
|
|
19
|
-
* @param overwrite - If true, the file will be overwritten
|
|
20
|
-
*/
|
|
21
|
-
export declare const writeIconsFile: (iconsList: iconsList[], jsonFileName: string, overwrite?: boolean) => void;
|
|
22
|
-
export {};
|
|
1
|
+
declare type iconsList = {
|
|
2
|
+
name: string;
|
|
3
|
+
width: string;
|
|
4
|
+
height: string;
|
|
5
|
+
viewBox: string;
|
|
6
|
+
html: string;
|
|
7
|
+
xmlns: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* This function generates the types file for the Icon component
|
|
11
|
+
* @param iconsList - The list of icons
|
|
12
|
+
* @param overwrite - If true, the file will be overwritten
|
|
13
|
+
*/
|
|
14
|
+
export declare const writeTypesFile: (iconsList: iconsList[], overwrite?: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* This function generates the icons json file for the Icon component
|
|
17
|
+
* @param iconsList - The list of icons
|
|
18
|
+
* @param jsonFileName - The name of the json file
|
|
19
|
+
* @param overwrite - If true, the file will be overwritten
|
|
20
|
+
*/
|
|
21
|
+
export declare const writeIconsFile: (iconsList: iconsList[], jsonFileName: string, overwrite?: boolean) => void;
|
|
22
|
+
export {};
|
|
23
23
|
//# sourceMappingURL=writers.d.ts.map
|