@pedidopago/ui 1.6.9 → 1.6.11
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 +1 -1
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/components/Alert/alert.test.js +4 -11
- package/dist/components/Alert/index.js +9 -16
- package/dist/components/Alert/styles.js +0 -16
- package/dist/components/Alert/types.d.ts +2 -2
- package/dist/components/Alert/types.d.ts.map +1 -1
- package/dist/components/Avatar/avatar.test.js +4 -11
- package/dist/components/Avatar/index.js +15 -38
- package/dist/components/Avatar/styles.js +0 -16
- package/dist/components/Avatar/types.d.ts +2 -2
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Badge/badge.test.js +5 -16
- package/dist/components/Badge/index.js +5 -9
- package/dist/components/Badge/styles.js +1 -11
- package/dist/components/Badge/types.d.ts +3 -3
- package/dist/components/Badge/types.d.ts.map +1 -1
- package/dist/components/Button/Button.test.js +14 -32
- package/dist/components/Button/index.js +21 -37
- package/dist/components/Button/styles.js +6 -35
- package/dist/components/Button/types.d.ts +4 -4
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/card.test.js +8 -15
- package/dist/components/Card/index.js +15 -24
- package/dist/components/Card/styles.js +0 -8
- package/dist/components/Card/types.d.ts +2 -2
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/CheckboxInput/checkbox-input.test.js +65 -89
- package/dist/components/CheckboxInput/components/MultipleCheckbox.js +27 -58
- package/dist/components/CheckboxInput/index.js +20 -41
- package/dist/components/CheckboxInput/styles.js +9 -33
- package/dist/components/CheckboxInput/types.d.ts +1 -1
- package/dist/components/CheckboxInput/types.d.ts.map +1 -1
- package/dist/components/CollapseCard/ExpandButton/index.js +3 -11
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts +4 -2
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts.map +1 -1
- package/dist/components/CollapseCard/ExpandButton/styles.js +0 -6
- package/dist/components/CollapseCard/expand-button.test.js +71 -110
- package/dist/components/CollapseCard/index.js +23 -44
- package/dist/components/CollapseCard/styles.d.ts +4 -1
- package/dist/components/CollapseCard/styles.d.ts.map +1 -1
- package/dist/components/CollapseCard/styles.js +0 -9
- package/dist/components/ColorPicker/colorpicker.test.js +6 -16
- package/dist/components/ColorPicker/components/ColorHue.js +1 -12
- package/dist/components/ColorPicker/components/ColorInput.js +10 -31
- package/dist/components/ColorPicker/components/ColorPickerBox.js +5 -17
- package/dist/components/ColorPicker/components/ColorPointer.js +3 -8
- package/dist/components/ColorPicker/components/ColorSelector.js +45 -77
- package/dist/components/ColorPicker/hooks/useCachedCallback.js +0 -3
- package/dist/components/ColorPicker/hooks/useHsva.js +7 -20
- package/dist/components/ColorPicker/index.js +18 -41
- package/dist/components/ColorPicker/styles.js +0 -24
- package/dist/components/ColorPicker/types.d.ts +11 -11
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/utils/checkers.js +0 -19
- package/dist/components/ColorPicker/utils/conversors.js +41 -88
- package/dist/components/ColorPicker/utils/parsers.js +11 -40
- package/dist/components/DateInput/DateInput-example.js +14 -23
- package/dist/components/DateInput/components/ModalWrapper/index.js +8 -12
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +4 -1
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts.map +1 -1
- package/dist/components/DateInput/components/ModalWrapper/styles.js +1 -12
- package/dist/components/DateInput/dateInput.test.js +17 -26
- package/dist/components/DateInput/index.js +32 -54
- package/dist/components/DateInput/styles.js +0 -9
- package/dist/components/DateInput/types.d.ts +1 -1
- package/dist/components/DateInput/types.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.js +19 -43
- package/dist/components/DatePicker/components/DateYearPicker.js +11 -31
- package/dist/components/DatePicker/datepicker.test.js +44 -62
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +74 -118
- package/dist/components/DatePicker/styles.js +2 -35
- package/dist/components/DatePicker/types.d.ts +4 -4
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/DatePicker/utils/getMonthName.js +0 -2
- package/dist/components/Dialog/dialog-example.js +9 -22
- package/dist/components/Dialog/dialog.test.js +32 -45
- package/dist/components/Dialog/index.js +14 -22
- package/dist/components/Dialog/styles.js +0 -13
- package/dist/components/Dropzone/dropzone.test.js +35 -45
- package/dist/components/Dropzone/index.js +29 -68
- package/dist/components/Dropzone/styles.js +8 -32
- package/dist/components/Dropzone/types.d.ts +4 -4
- package/dist/components/Dropzone/types.d.ts.map +1 -1
- package/dist/components/Dropzone/utils/accepts.js +0 -5
- package/dist/components/Flex/flex.test.js +267 -286
- package/dist/components/Flex/index.js +16 -24
- package/dist/components/Flex/styles.js +0 -11
- package/dist/components/Flex/types.d.ts +13 -13
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/Grid/grid.test.js +0 -6
- package/dist/components/Grid/index.js +17 -25
- package/dist/components/Grid/styles.js +1 -9
- package/dist/components/Grid/types.d.ts +2 -2
- package/dist/components/Grid/types.d.ts.map +1 -1
- package/dist/components/Icon/data/beauty.js +1 -0
- package/dist/components/Icon/data/ecommerce.js +1 -0
- package/dist/components/Icon/data/form.js +1 -0
- package/dist/components/Icon/data/health.js +1 -0
- package/dist/components/Icon/data/illustrations.js +1 -0
- package/dist/components/Icon/data/men.js +1 -0
- package/dist/components/Icon/data/payment.js +1 -0
- package/dist/components/Icon/data/pedidoPago.js +1 -0
- package/dist/components/Icon/data/physicalPerfomance.js +1 -0
- package/dist/components/Icon/data/social.js +1 -0
- package/dist/components/Icon/data/status.js +1 -0
- package/dist/components/Icon/data/summer.js +1 -0
- package/dist/components/Icon/data/woman.js +1 -0
- package/dist/components/Icon/icon.test.js +19 -32
- package/dist/components/Icon/index.js +14 -28
- package/dist/components/Icon/scripts/build.js +14 -51
- package/dist/components/Icon/scripts/extractor.js +0 -6
- package/dist/components/Icon/scripts/run-build.js +0 -2
- package/dist/components/Icon/scripts/writers.d.ts +1 -1
- package/dist/components/Icon/scripts/writers.d.ts.map +1 -1
- package/dist/components/Icon/scripts/writers.js +1 -12
- package/dist/components/Icon/styles.d.ts +1 -1
- package/dist/components/Icon/styles.d.ts.map +1 -1
- package/dist/components/Icon/styles.js +3 -11
- package/dist/components/Icon/types.d.ts +2 -2
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Icon/utils/allIcons.js +1 -22
- package/dist/components/Icon/utils/iconExists.d.ts +1 -1
- package/dist/components/Icon/utils/iconExists.d.ts.map +1 -1
- package/dist/components/Icon/utils/iconExists.js +0 -3
- package/dist/components/IconItem/IconItem.test.js +27 -37
- package/dist/components/IconItem/index.js +5 -12
- package/dist/components/IconItem/styles.js +2 -16
- package/dist/components/IconItem/types.d.ts +3 -3
- package/dist/components/IconItem/types.d.ts.map +1 -1
- package/dist/components/Illustration/AlternativeOrderSvg/index.js +0 -2
- package/dist/components/Illustration/BoletoSvg/index.js +0 -2
- package/dist/components/Illustration/BoxClosedSvg/index.js +0 -2
- package/dist/components/Illustration/BoxDeliverySvg/index.js +0 -2
- package/dist/components/Illustration/BoxOpenSvg/index.js +0 -2
- package/dist/components/Illustration/CalendarSvg/index.js +0 -2
- package/dist/components/Illustration/CardSvg/index.js +0 -2
- package/dist/components/Illustration/CollaboratorSvg/index.js +0 -2
- package/dist/components/Illustration/InquirySvg/index.js +0 -2
- package/dist/components/Illustration/OrderSvg/index.js +0 -2
- package/dist/components/Illustration/PixSvg/index.js +0 -2
- package/dist/components/Illustration/PrescriptionSvg/index.js +0 -2
- package/dist/components/Illustration/TransportSvg/index.js +0 -2
- package/dist/components/Illustration/illustration.test.js +20 -31
- package/dist/components/Illustration/index.js +11 -43
- package/dist/components/Illustration/styles.js +0 -14
- package/dist/components/ImageItem/imageFake.js +0 -2
- package/dist/components/ImageItem/index.js +18 -25
- package/dist/components/ImageItem/input.test.js +31 -51
- package/dist/components/ImageItem/styles.js +2 -22
- package/dist/components/ImageItem/types.d.ts +2 -2
- package/dist/components/ImageItem/types.d.ts.map +1 -1
- package/dist/components/Input/index.js +25 -47
- package/dist/components/Input/input.test.js +49 -73
- package/dist/components/Input/styles.js +12 -65
- package/dist/components/Input/types.d.ts +1 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/Label/index.js +9 -19
- package/dist/components/Label/label.test.js +32 -58
- package/dist/components/Label/styles.js +0 -6
- package/dist/components/Label/types.d.ts +2 -2
- package/dist/components/Label/types.d.ts.map +1 -1
- package/dist/components/List/index.js +9 -17
- package/dist/components/List/list.test.js +4 -11
- package/dist/components/List/styles.js +0 -11
- package/dist/components/Modal/ModalExample.js +9 -27
- package/dist/components/Modal/index.js +23 -47
- package/dist/components/Modal/modal.test.js +15 -33
- package/dist/components/Modal/styles.d.ts +8 -2
- package/dist/components/Modal/styles.d.ts.map +1 -1
- package/dist/components/Modal/styles.js +3 -16
- package/dist/components/Modal/types.d.ts +2 -2
- package/dist/components/Modal/types.d.ts.map +1 -1
- package/dist/components/MultipleSelect/MultipleSelect.test.js +106 -223
- package/dist/components/MultipleSelect/components/InputWrapper/index.js +1 -11
- package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +1 -1
- package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/index.js +36 -70
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +4 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +6 -19
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.js +0 -9
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.js +2 -12
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +0 -15
- package/dist/components/MultipleSelect/components/SelectArea/index.js +10 -20
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +1 -12
- package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/types.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/index.js +0 -6
- package/dist/components/MultipleSelect/index.d.ts +1 -1
- package/dist/components/MultipleSelect/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/index.js +51 -94
- package/dist/components/MultipleSelect/types.d.ts +2 -2
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Observer/index.js +10 -25
- package/dist/components/Observer/observer.test.js +0 -4
- package/dist/components/Observer/types.d.ts +1 -1
- package/dist/components/Observer/types.d.ts.map +1 -1
- package/dist/components/Pagination/hooks/usePagination.js +2 -18
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +53 -86
- package/dist/components/Pagination/pagination.test.js +16 -50
- package/dist/components/Pagination/styles.js +23 -45
- package/dist/components/Progress/Circle/index.js +15 -31
- package/dist/components/Progress/Circle/styles.js +1 -15
- package/dist/components/Progress/Circle/types.d.ts +1 -1
- package/dist/components/Progress/Circle/types.d.ts.map +1 -1
- package/dist/components/Progress/Linear/index.js +12 -30
- package/dist/components/Progress/Linear/styles.js +1 -14
- package/dist/components/Progress/Linear/types.d.ts +3 -3
- package/dist/components/Progress/Linear/types.d.ts.map +1 -1
- package/dist/components/Progress/getSteps.js +0 -3
- package/dist/components/Progress/index.js +10 -19
- package/dist/components/Progress/progress.test.js +47 -64
- package/dist/components/Progress/types.d.ts +2 -2
- package/dist/components/Progress/types.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +14 -27
- package/dist/components/RadioInput/index.js +15 -26
- package/dist/components/RadioInput/radio-input.test.js +44 -68
- package/dist/components/RadioInput/styles.js +2 -21
- package/dist/components/RadioInput/types.d.ts +4 -4
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/RadioInput/utils/get-colors-props.js +0 -1
- package/dist/components/Rating/index.js +35 -66
- package/dist/components/Rating/rating.test.js +0 -16
- package/dist/components/Rating/styles.js +1 -12
- package/dist/components/ReactPortal/index.js +7 -22
- package/dist/components/ReactPortal/reactPortal.test.js +0 -5
- package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.js +0 -1
- package/dist/components/Select/components/OptionsSelect/index.js +25 -45
- package/dist/components/Select/components/OptionsSelect/styles.d.ts +4 -1
- package/dist/components/Select/components/OptionsSelect/styles.d.ts.map +1 -1
- package/dist/components/Select/components/OptionsSelect/styles.js +1 -12
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +37 -74
- package/dist/components/Select/select.test.js +13 -22
- package/dist/components/Select/styles.js +0 -12
- package/dist/components/Select/types.d.ts +2 -2
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +6 -14
- package/dist/components/Skeleton/skeleton.test.js +35 -51
- package/dist/components/Skeleton/styles.js +0 -10
- package/dist/components/Skeleton/types.d.ts +1 -1
- package/dist/components/Skeleton/types.d.ts.map +1 -1
- package/dist/components/Slider/SliderExample.js +11 -25
- package/dist/components/Slider/components/SliderPointer.js +1 -7
- package/dist/components/Slider/components/SliderRail.js +49 -81
- package/dist/components/Slider/components/SliderSelector.js +22 -45
- package/dist/components/Slider/hooks/useEventCallback.js +0 -3
- package/dist/components/Slider/index.js +26 -62
- package/dist/components/Slider/slider.test.js +52 -65
- package/dist/components/Slider/styles.js +0 -25
- package/dist/components/Slider/types.d.ts +5 -5
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Spinner/index.js +6 -10
- package/dist/components/Spinner/spinner.test.js +14 -24
- package/dist/components/Spinner/styles.js +5 -10
- package/dist/components/Spinner/types.d.ts +2 -2
- package/dist/components/Spinner/types.d.ts.map +1 -1
- package/dist/components/Steps/components/StepIcon/index.js +5 -14
- package/dist/components/Steps/components/StepIconMobile/index.js +5 -14
- package/dist/components/Steps/index.js +12 -37
- package/dist/components/Steps/steps.test.js +23 -33
- package/dist/components/Steps/styles.js +4 -27
- package/dist/components/Steps/types.d.ts +1 -1
- package/dist/components/Steps/types.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +22 -39
- package/dist/components/Switch/styles.js +4 -21
- package/dist/components/Switch/switch.test.js +41 -179
- package/dist/components/Switch/types.d.ts +2 -2
- package/dist/components/Switch/types.d.ts.map +1 -1
- package/dist/components/Table/components/MenuItem.js +5 -11
- package/dist/components/Table/components/TableSkeleton.js +3 -9
- package/dist/components/Table/index.js +38 -71
- package/dist/components/Table/styles.js +0 -19
- package/dist/components/Table/table.test.js +68 -84
- package/dist/components/Table/types.d.ts +3 -3
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/TabsExample.js +11 -24
- package/dist/components/Tabs/components/Tab.js +12 -20
- package/dist/components/Tabs/components/TabPanel.js +3 -7
- package/dist/components/Tabs/components/Tabs.js +25 -49
- package/dist/components/Tabs/index.js +0 -3
- package/dist/components/Tabs/styles.js +9 -29
- package/dist/components/Tabs/tabs.test.js +104 -117
- package/dist/components/Tabs/types.d.ts +7 -7
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Tag/index.js +6 -13
- package/dist/components/Tag/styles.js +7 -18
- package/dist/components/Tag/tag.test.js +3 -17
- package/dist/components/TextAreaInput/index.js +16 -35
- package/dist/components/TextAreaInput/styles.js +10 -23
- package/dist/components/TextAreaInput/text-area-input.test.js +21 -36
- package/dist/components/TextAreaInput/types.d.ts +3 -3
- package/dist/components/TextAreaInput/types.d.ts.map +1 -1
- package/dist/components/Thumbnail/index.js +31 -60
- package/dist/components/Thumbnail/styles.js +9 -26
- package/dist/components/Thumbnail/thumbnail.test.js +13 -29
- package/dist/components/Thumbnail/types.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts.map +1 -1
- package/dist/components/Thumbnail/utils/index.js +0 -4
- package/dist/components/Thumbnail/utils/validate-file-size.js +0 -1
- package/dist/components/Thumbnail/utils/validate-file-type.js +0 -1
- package/dist/components/Timeline/components/Timeline.js +3 -8
- package/dist/components/Timeline/components/TimelineContent.js +7 -18
- package/dist/components/Timeline/components/TimelineItem.js +5 -13
- package/dist/components/Timeline/components/TimelineSeparator.js +1 -5
- package/dist/components/Timeline/index.js +0 -4
- package/dist/components/Timeline/styles.js +0 -17
- package/dist/components/Timeline/timeline.test.js +103 -115
- package/dist/components/Timeline/types.d.ts +4 -4
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/button-example.js +1 -14
- package/dist/components/Toast/components/Toast.js +12 -21
- package/dist/components/Toast/contexts/ToastProvider.js +9 -31
- package/dist/components/Toast/hooks/useToast.js +1 -7
- package/dist/components/Toast/index.js +6 -17
- package/dist/components/Toast/styles.js +0 -12
- package/dist/components/Toast/toast.test.js +4 -14
- package/dist/components/Toast/types.d.ts +5 -5
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipLabel.js +12 -23
- package/dist/components/Tooltip/example.js +0 -4
- package/dist/components/Tooltip/index.js +29 -66
- package/dist/components/Tooltip/styles.js +0 -10
- package/dist/components/Tooltip/types.d.ts +3 -3
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Typography/index.js +9 -21
- package/dist/components/Typography/styles.js +0 -7
- package/dist/components/Typography/types.d.ts +1 -1
- package/dist/components/Typography/types.d.ts.map +1 -1
- package/dist/components/Typography/typography.test.js +134 -171
- package/dist/index.js +0 -61
- package/dist/shared/components/FocusLock/index.js +17 -30
- package/dist/shared/formatters/format-number.js +4 -10
- package/dist/shared/hooks/devices.d.ts +1 -1
- package/dist/shared/hooks/devices.d.ts.map +1 -1
- package/dist/shared/hooks/useBreakpoints.d.ts +3 -3
- package/dist/shared/hooks/useBreakpoints.d.ts.map +1 -1
- package/dist/shared/hooks/useBreakpoints.js +5 -34
- package/dist/shared/hooks/useDebounce.js +1 -12
- package/dist/shared/hooks/useDevices.js +6 -20
- package/dist/shared/hooks/useDisableBodyScroll.js +6 -15
- package/dist/shared/hooks/useKeyPress.js +0 -3
- package/dist/shared/hooks/useObserver.js +1 -5
- package/dist/shared/hooks/useOnClickOutside.js +0 -7
- package/dist/shared/hooks/useWindowSize.d.ts +1 -1
- package/dist/shared/hooks/useWindowSize.d.ts.map +1 -1
- package/dist/shared/hooks/useWindowSize.js +8 -18
- package/dist/shared/tests/test-utils.js +5 -13
- package/dist/shared/tests/types.d.ts +1 -1
- package/dist/shared/tests/types.d.ts.map +1 -1
- package/dist/shared/theme/button-example.js +2 -12
- package/dist/shared/theme/contexts/ThemeContext.d.ts +2 -2
- package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/shared/theme/contexts/ThemeContext.js +14 -37
- package/dist/shared/theme/hooks/useColorMode.js +2 -7
- package/dist/shared/theme/hooks/useColorModeValue.js +1 -5
- package/dist/shared/theme/hooks/useTheme.js +1 -7
- package/dist/shared/theme/index.js +0 -8
- package/dist/shared/theme/theme.js +5 -9
- package/dist/shared/theme/theme.test.js +35 -61
- package/dist/shared/theme/theme.types.d.ts +5 -5
- package/dist/shared/theme/theme.types.d.ts.map +1 -1
- package/dist/shared/theme/utils/extendTheme.js +0 -4
- package/dist/shared/types/credit-card.d.ts +1 -1
- package/dist/shared/types/credit-card.d.ts.map +1 -1
- package/dist/shared/types/file.d.ts +2 -2
- package/dist/shared/types/file.d.ts.map +1 -1
- package/dist/shared/types/name.d.ts +1 -1
- package/dist/shared/types/name.d.ts.map +1 -1
- package/dist/utils/GenerateKey.js +1 -3
- package/dist/utils/brightnessColorChange.js +0 -1
- package/dist/utils/colorCheck.d.ts +1 -1
- package/dist/utils/colorCheck.d.ts.map +1 -1
- package/dist/utils/colorCheck.js +9 -29
- package/dist/utils/colorFunctions.js +0 -6
- package/dist/utils/colorToGray.js +5 -22
- package/dist/utils/file.d.ts.map +1 -1
- package/dist/utils/file.js +56 -83
- package/dist/utils/formatters/bytes.js +0 -1
- package/dist/utils/formatters/capitalize.js +0 -1
- package/dist/utils/formatters/cep.js +1 -3
- package/dist/utils/formatters/cnpj.js +2 -9
- package/dist/utils/formatters/color.js +19 -20
- package/dist/utils/formatters/cpf.js +18 -25
- package/dist/utils/formatters/credit-card.js +6 -19
- package/dist/utils/formatters/index.js +0 -30
- package/dist/utils/formatters/name.js +1 -6
- package/dist/utils/formatters/number.js +0 -1
- package/dist/utils/formatters/passport.js +3 -7
- package/dist/utils/formatters/phone.js +17 -45
- package/dist/utils/formatters/price.js +1 -3
- package/dist/utils/formatters/rg.js +1 -3
- package/dist/utils/formatters/strings.js +0 -5
- package/dist/utils/fuctionsColors.js +0 -6
- package/dist/utils/generateUUID.js +0 -1
- package/dist/utils/getColorValue.js +0 -5
- package/dist/utils/getSvg.d.ts +1 -1
- package/dist/utils/getSvg.d.ts.map +1 -1
- package/dist/utils/getSvg.js +0 -3
- package/dist/utils/getValuesBySize.d.ts +2 -2
- package/dist/utils/getValuesBySize.d.ts.map +1 -1
- package/dist/utils/getValuesBySize.js +0 -1
- package/dist/utils/invertColor.js +7 -15
- package/package.json +18 -18
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
-
|
|
5
4
|
require("@testing-library/jest-dom");
|
|
6
|
-
|
|
7
5
|
var _react = require("@testing-library/react");
|
|
8
|
-
|
|
9
6
|
var _ = _interopRequireDefault(require("."));
|
|
10
|
-
|
|
11
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
|
|
13
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
|
|
17
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
-
|
|
19
|
-
function
|
|
20
|
-
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
15
|
var mockPropCheckboxChildren = [{
|
|
22
16
|
label: 'Children-1',
|
|
23
17
|
value: 'children-1',
|
|
@@ -31,7 +25,6 @@ var mockPropCheckboxChildren = [{
|
|
|
31
25
|
value: 'children-3',
|
|
32
26
|
id: 'children-3'
|
|
33
27
|
}];
|
|
34
|
-
|
|
35
28
|
var makeSut = function makeSut(props) {
|
|
36
29
|
var sut = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
37
30
|
var checkbox = sut.container.querySelector('input');
|
|
@@ -42,109 +35,96 @@ var makeSut = function makeSut(props) {
|
|
|
42
35
|
label: label
|
|
43
36
|
};
|
|
44
37
|
};
|
|
45
|
-
|
|
46
38
|
describe('CheckboxInput', function () {
|
|
47
39
|
it('should render input with type checkbox', function () {
|
|
48
40
|
var _makeSut = makeSut(),
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
checkbox = _makeSut.checkbox;
|
|
51
42
|
expect(checkbox === null || checkbox === void 0 ? void 0 : checkbox.getAttribute('type')).toBe('checkbox');
|
|
52
43
|
});
|
|
53
44
|
it('should must disable checkbox when isDisabled is true', function () {
|
|
54
45
|
var _makeSut2 = makeSut({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
isDisabled: true
|
|
47
|
+
}),
|
|
48
|
+
checkbox = _makeSut2.checkbox;
|
|
59
49
|
expect(checkbox).toBeDisabled();
|
|
60
50
|
});
|
|
61
51
|
it('should not render label if label prop not provided', function () {
|
|
62
52
|
var _makeSut3 = makeSut({
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
label: ''
|
|
54
|
+
}),
|
|
55
|
+
label = _makeSut3.label;
|
|
67
56
|
expect(label).not.toBeInTheDocument();
|
|
68
57
|
});
|
|
69
58
|
it('should render label element with correct label prop value', function () {
|
|
70
59
|
var labelValue = 'correct_label_value';
|
|
71
|
-
|
|
72
60
|
var _makeSut4 = makeSut({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
61
|
+
label: labelValue
|
|
62
|
+
}),
|
|
63
|
+
label = _makeSut4.label;
|
|
77
64
|
expect(label.innerHTML).toBe(labelValue);
|
|
78
65
|
});
|
|
79
66
|
it('should select checkbox on click in label element', function () {
|
|
80
67
|
var _makeSut5 = makeSut({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
68
|
+
id: 'any_id',
|
|
69
|
+
label: 'any_label'
|
|
70
|
+
}),
|
|
71
|
+
label = _makeSut5.label,
|
|
72
|
+
checkbox = _makeSut5.checkbox;
|
|
87
73
|
_react.fireEvent.click(label);
|
|
88
|
-
|
|
89
74
|
expect(checkbox).toBeChecked();
|
|
90
75
|
});
|
|
91
76
|
it('should render multiple checkbox', function () {
|
|
92
77
|
var _makeSut6 = makeSut({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
id: 'any_id',
|
|
79
|
+
label: 'any_label',
|
|
80
|
+
isMultiple: true,
|
|
81
|
+
checkboxChildren: mockPropCheckboxChildren
|
|
82
|
+
}),
|
|
83
|
+
sut = _makeSut6.sut;
|
|
100
84
|
expect(sut.getByRole('list')).toBeInTheDocument();
|
|
101
85
|
});
|
|
102
86
|
it('should render multiple checkbox with childrens', function () {
|
|
103
87
|
var _makeSut7 = makeSut({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
88
|
+
id: 'any_id',
|
|
89
|
+
label: 'any_label',
|
|
90
|
+
isMultiple: true,
|
|
91
|
+
checkboxChildren: mockPropCheckboxChildren
|
|
92
|
+
}),
|
|
93
|
+
sut = _makeSut7.sut;
|
|
111
94
|
expect(sut.getAllByRole('listitem')).toBeTruthy();
|
|
112
95
|
});
|
|
113
96
|
it('should render multiple checkbox with parent label', function () {
|
|
114
97
|
var _makeSut8 = makeSut({
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
98
|
+
id: 'any_id',
|
|
99
|
+
label: 'any_label',
|
|
100
|
+
isMultiple: true,
|
|
101
|
+
checkboxChildren: mockPropCheckboxChildren
|
|
102
|
+
}),
|
|
103
|
+
sut = _makeSut8.sut;
|
|
122
104
|
expect(sut.getByLabelText('any_label')).toBeInTheDocument();
|
|
123
105
|
});
|
|
124
106
|
it('should render multiple checkbox with children label', function () {
|
|
125
107
|
var _makeSut9 = makeSut({
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
108
|
+
id: 'any_id',
|
|
109
|
+
label: 'any_label',
|
|
110
|
+
isMultiple: true,
|
|
111
|
+
checkboxChildren: mockPropCheckboxChildren
|
|
112
|
+
}),
|
|
113
|
+
sut = _makeSut9.sut;
|
|
133
114
|
mockPropCheckboxChildren.forEach(function (item) {
|
|
134
115
|
expect(sut.getByLabelText(item.label)).toBeInTheDocument();
|
|
135
116
|
});
|
|
136
117
|
});
|
|
137
118
|
it('should disabled multiple checkbox with isDisabled are provided', function () {
|
|
138
119
|
var _makeSut10 = makeSut({
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
120
|
+
id: 'any_id',
|
|
121
|
+
label: 'any_label',
|
|
122
|
+
isMultiple: true,
|
|
123
|
+
checkboxChildren: mockPropCheckboxChildren,
|
|
124
|
+
isDisabled: true
|
|
125
|
+
}),
|
|
126
|
+
sut = _makeSut10.sut,
|
|
127
|
+
checkbox = _makeSut10.checkbox;
|
|
148
128
|
var checkboxChildrens = sut.getAllByRole('listitem');
|
|
149
129
|
checkboxChildrens.forEach(function (children) {
|
|
150
130
|
children.querySelectorAll('input').forEach(function (input) {
|
|
@@ -155,16 +135,14 @@ describe('CheckboxInput', function () {
|
|
|
155
135
|
});
|
|
156
136
|
it('should checked childrens on click parent checkbox', function () {
|
|
157
137
|
var _makeSut11 = makeSut({
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
138
|
+
id: 'any_id',
|
|
139
|
+
label: 'any_label',
|
|
140
|
+
isMultiple: true,
|
|
141
|
+
checkboxChildren: mockPropCheckboxChildren
|
|
142
|
+
}),
|
|
143
|
+
sut = _makeSut11.sut,
|
|
144
|
+
checkbox = _makeSut11.checkbox;
|
|
166
145
|
_react.fireEvent.click(checkbox);
|
|
167
|
-
|
|
168
146
|
var checkboxChildrens = sut.getAllByRole('listitem');
|
|
169
147
|
checkboxChildrens.forEach(function (children) {
|
|
170
148
|
children.querySelectorAll('input').forEach(function (input) {
|
|
@@ -174,16 +152,14 @@ describe('CheckboxInput', function () {
|
|
|
174
152
|
});
|
|
175
153
|
it('should unchecked childrens on click checked parent checkbox', function () {
|
|
176
154
|
var _makeSut12 = makeSut({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
155
|
+
id: 'any_id',
|
|
156
|
+
label: 'any_label',
|
|
157
|
+
isMultiple: true,
|
|
158
|
+
checkboxChildren: mockPropCheckboxChildren
|
|
159
|
+
}),
|
|
160
|
+
sut = _makeSut12.sut,
|
|
161
|
+
checkbox = _makeSut12.checkbox;
|
|
185
162
|
_react.fireEvent.doubleClick(checkbox);
|
|
186
|
-
|
|
187
163
|
var checkboxChildrens = sut.getAllByRole('listitem');
|
|
188
164
|
checkboxChildrens.forEach(function (children) {
|
|
189
165
|
children.querySelectorAll('input').forEach(function (input) {
|
|
@@ -1,73 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
|
-
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
|
|
10
9
|
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
11
|
-
|
|
12
10
|
var _styles = require("../styles");
|
|
13
|
-
|
|
14
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
12
|
var _excluded = ["id", "label", "color", "checkboxChildren", "isDisabled", "onChangeValue"];
|
|
17
|
-
|
|
18
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
-
|
|
22
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
16
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
-
|
|
30
21
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
-
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
36
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
39
|
-
|
|
40
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
41
|
-
|
|
42
27
|
var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
43
28
|
var id = _ref.id,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
29
|
+
label = _ref.label,
|
|
30
|
+
color = _ref.color,
|
|
31
|
+
checkboxChildren = _ref.checkboxChildren,
|
|
32
|
+
isDisabled = _ref.isDisabled,
|
|
33
|
+
onChangeValue = _ref.onChangeValue,
|
|
34
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
51
35
|
var _useState = (0, _react.useState)(false),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
hasDeselectedChildren = _useState2[0],
|
|
38
|
+
setHasDeselectedChildren = _useState2[1];
|
|
56
39
|
var _useState3 = (0, _react.useState)(false),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
41
|
+
parentChecked = _useState4[0],
|
|
42
|
+
setParentChecked = _useState4[1];
|
|
61
43
|
var _useState5 = (0, _react.useState)(false),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
44
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
45
|
+
isvisibleOptions = _useState6[0],
|
|
46
|
+
setIsVisibleOptions = _useState6[1];
|
|
66
47
|
var _useState7 = (0, _react.useState)([]),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
48
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
49
|
+
childrenData = _useState8[0],
|
|
50
|
+
setChildrenData = _useState8[1];
|
|
71
51
|
(0, _react.useEffect)(function () {
|
|
72
52
|
var haveDeselectedChildrens = childrenData.some(function (data) {
|
|
73
53
|
return data.hasSelected === true;
|
|
@@ -85,14 +65,12 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
85
65
|
};
|
|
86
66
|
});
|
|
87
67
|
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(selectedChildrens);
|
|
88
|
-
|
|
89
68
|
if (haveDeselectedChildrens) {
|
|
90
69
|
if (hasAllChildrensSelected) {
|
|
91
70
|
setHasDeselectedChildren(false);
|
|
92
71
|
} else {
|
|
93
72
|
setHasDeselectedChildren(true);
|
|
94
73
|
}
|
|
95
|
-
|
|
96
74
|
setParentChecked(true);
|
|
97
75
|
} else {
|
|
98
76
|
setParentChecked(false);
|
|
@@ -106,12 +84,10 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
106
84
|
});
|
|
107
85
|
setChildrenData(childrensState);
|
|
108
86
|
}, [checkboxChildren]);
|
|
109
|
-
|
|
110
87
|
function checkedAll() {
|
|
111
88
|
if (isvisibleOptions) {
|
|
112
89
|
setIsVisibleOptions(false);
|
|
113
90
|
}
|
|
114
|
-
|
|
115
91
|
setChildrenData(function (state) {
|
|
116
92
|
return state.map(function (children) {
|
|
117
93
|
return _objectSpread(_objectSpread({}, children), {}, {
|
|
@@ -120,7 +96,6 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
120
96
|
});
|
|
121
97
|
});
|
|
122
98
|
}
|
|
123
|
-
|
|
124
99
|
function deselectAll() {
|
|
125
100
|
setChildrenData(function (state) {
|
|
126
101
|
return state.map(function (children) {
|
|
@@ -130,20 +105,17 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
130
105
|
});
|
|
131
106
|
});
|
|
132
107
|
}
|
|
133
|
-
|
|
134
108
|
function handleParentChange(event) {
|
|
135
109
|
var checked = event.target.checked;
|
|
136
110
|
setParentChecked(function (v) {
|
|
137
111
|
return !v;
|
|
138
112
|
});
|
|
139
|
-
|
|
140
113
|
if (checked) {
|
|
141
114
|
checkedAll();
|
|
142
115
|
} else {
|
|
143
116
|
deselectAll();
|
|
144
117
|
}
|
|
145
118
|
}
|
|
146
|
-
|
|
147
119
|
function handleChildrenChange(event, id) {
|
|
148
120
|
var checked = event.target.checked;
|
|
149
121
|
setChildrenData(function (state) {
|
|
@@ -151,12 +123,10 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
151
123
|
if (id === children.id) {
|
|
152
124
|
children.hasSelected = !!checked;
|
|
153
125
|
}
|
|
154
|
-
|
|
155
126
|
return children;
|
|
156
127
|
});
|
|
157
128
|
});
|
|
158
129
|
}
|
|
159
|
-
|
|
160
130
|
function handleRenderParentIcon() {
|
|
161
131
|
if (!parentChecked) {
|
|
162
132
|
return null;
|
|
@@ -174,7 +144,6 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
174
144
|
});
|
|
175
145
|
}
|
|
176
146
|
}
|
|
177
|
-
|
|
178
147
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.MultipleWrapper, {
|
|
179
148
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Wrapper, {
|
|
180
149
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.CheckBoxWrapper, {
|
|
@@ -198,9 +167,9 @@ var MultipleCheckbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
198
167
|
role: "list",
|
|
199
168
|
children: childrenData.map(function (_ref2) {
|
|
200
169
|
var label = _ref2.label,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
170
|
+
id = _ref2.id,
|
|
171
|
+
value = _ref2.value,
|
|
172
|
+
hasSelected = _ref2.hasSelected;
|
|
204
173
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Wrapper, {
|
|
205
174
|
role: "listitem",
|
|
206
175
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.CheckBoxWrapper, {
|
|
@@ -1,65 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
|
-
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
|
|
10
9
|
var _MultipleCheckbox = _interopRequireDefault(require("./components/MultipleCheckbox"));
|
|
11
|
-
|
|
12
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
13
|
-
|
|
14
11
|
var _styles = require("./styles");
|
|
15
|
-
|
|
16
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
13
|
var _excluded = ["label", "id", "isDisabled", "isInderteminate", "defaultIsChecked", "isMultiple", "color", "checkboxChildren", "onChangeValue"];
|
|
19
|
-
|
|
20
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
15
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
-
|
|
24
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
-
|
|
32
22
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
|
-
|
|
23
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
38
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
-
|
|
42
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
-
|
|
44
28
|
var CheckboxInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
45
29
|
var label = _ref.label,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
30
|
+
id = _ref.id,
|
|
31
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
32
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
33
|
+
_ref$isInderteminate = _ref.isInderteminate,
|
|
34
|
+
isInderteminate = _ref$isInderteminate === void 0 ? false : _ref$isInderteminate,
|
|
35
|
+
defaultIsChecked = _ref.defaultIsChecked,
|
|
36
|
+
isMultiple = _ref.isMultiple,
|
|
37
|
+
color = _ref.color,
|
|
38
|
+
checkboxChildren = _ref.checkboxChildren,
|
|
39
|
+
onChangeValue = _ref.onChangeValue,
|
|
40
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
58
41
|
var _useState = (0, _react.useState)(defaultIsChecked || false),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
checked = _useState2[0],
|
|
44
|
+
setChecked = _useState2[1];
|
|
63
45
|
var inputRef = (0, _react.useRef)(null);
|
|
64
46
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
65
47
|
return inputRef.current;
|
|
@@ -67,14 +49,12 @@ var CheckboxInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
67
49
|
(0, _react.useEffect)(function () {
|
|
68
50
|
setChecked(defaultIsChecked || false);
|
|
69
51
|
}, [defaultIsChecked]);
|
|
70
|
-
|
|
71
52
|
function handleChange(e) {
|
|
72
53
|
if (e !== null && e !== void 0 && e.currentTarget) {
|
|
73
54
|
setChecked(e.currentTarget.checked);
|
|
74
55
|
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(e.currentTarget.checked);
|
|
75
56
|
}
|
|
76
57
|
}
|
|
77
|
-
|
|
78
58
|
if (isMultiple && checkboxChildren) {
|
|
79
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultipleCheckbox.default, {
|
|
80
60
|
ref: inputRef,
|
|
@@ -86,7 +66,6 @@ var CheckboxInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
86
66
|
onChangeValue: onChangeValue
|
|
87
67
|
});
|
|
88
68
|
}
|
|
89
|
-
|
|
90
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Wrapper, {
|
|
91
70
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.CheckboxWrapper, {
|
|
92
71
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Checkbox, _objectSpread({
|
|
@@ -4,25 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Wrapper = exports.MultipleWrapper = exports.Label = exports.ChildrensWrapper = exports.CheckboxWrapper = exports.Checkbox = exports.CheckBoxWrapper = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("@emotion/react");
|
|
9
|
-
|
|
10
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
11
|
-
|
|
12
9
|
var _colorToGray = require("../../utils/colorToGray");
|
|
13
|
-
|
|
14
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
19
|
-
|
|
20
13
|
function handleColorProp(theme, color) {
|
|
21
14
|
var _convertColor = (0, _colorToGray.convertColor)(color || theme.colors.primary.focus),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
neutral1 = _convertColor.neutral1,
|
|
16
|
+
neutral3 = _convertColor.neutral3,
|
|
17
|
+
neutral4 = _convertColor.neutral4;
|
|
26
18
|
var disabled = "hsl(".concat(neutral1[0], ", 14%, 93%)");
|
|
27
19
|
var highlight = color || theme.colors.primary.focus;
|
|
28
20
|
var gray = "hsl(".concat(neutral1[0], ", 13%, 82%)");
|
|
@@ -32,49 +24,33 @@ function handleColorProp(theme, color) {
|
|
|
32
24
|
var lightnessHue = "hsl(".concat(neutral1[0], ", 68%, 83%)");
|
|
33
25
|
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 2px solid ", ";\n :hover {\n border-color: ", ";\n }\n\n :focus {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n\n :not(:disabled):checked {\n :hover {\n background-color: ", ";\n }\n :focus {\n border-color: transparent;\n box-shadow: 0 0 0 2px ", ";\n }\n border-color: transparent;\n background: ", ";\n }\n :disabled {\n border-color: ", ";\n background-color: ", ";\n }\n "])), gray, hoverGray, focusGray, grayShadow, highlight, lightnessHue, highlight, disabled, disabled);
|
|
34
26
|
}
|
|
35
|
-
|
|
36
27
|
var Wrapper = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
|
|
37
|
-
|
|
38
28
|
exports.Wrapper = Wrapper;
|
|
39
|
-
|
|
40
29
|
var CheckboxWrapper = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n position: relative;\n svg {\n position: absolute;\n pointer-events: none;\n top: 2;\n left: 2;\n }\n"])));
|
|
41
|
-
|
|
42
30
|
exports.CheckboxWrapper = CheckboxWrapper;
|
|
43
|
-
|
|
44
31
|
var Checkbox = _styled.default.input(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
45
32
|
var theme = _ref.theme,
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
color = _ref.color,
|
|
34
|
+
disabled = _ref.disabled;
|
|
48
35
|
return (0, _react.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0;\n box-sizing: border-box;\n appearance: none;\n width: 20px;\n height: 20px;\n border-radius: 6px;\n cursor: ", ";\n ", "\n "])), disabled && 'not-allowed', handleColorProp(theme, color));
|
|
49
36
|
});
|
|
50
|
-
|
|
51
37
|
exports.Checkbox = Checkbox;
|
|
52
|
-
|
|
53
38
|
var Label = _styled.default.label(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
|
|
54
39
|
var theme = _ref2.theme,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
isDisabled = _ref2.isDisabled,
|
|
41
|
+
color = _ref2.color;
|
|
58
42
|
var _convertColor2 = (0, _colorToGray.convertColor)(color || theme.colors.primary.focus),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
neutral1 = _convertColor2.neutral1,
|
|
44
|
+
black = _convertColor2.black;
|
|
62
45
|
var textColor = theme.colorMode === 'light' ? "hsl(".concat(black[0], ", ").concat(black[1], "%, ").concat(black[2], "% )") : theme.colors.neutral.white;
|
|
63
46
|
var disabled = "hsl(".concat(neutral1[0], ", 14%, 93%)");
|
|
64
47
|
var styles = isDisabled ? (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n color: ", ";\n cursor: not-allowed;\n font-weight: 500;\n "])), disabled) : (0, _react.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n color: ", ";\n "])), textColor);
|
|
65
48
|
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-weight: 500;\n ", ";\n "])), styles);
|
|
66
49
|
});
|
|
67
|
-
|
|
68
50
|
exports.Label = Label;
|
|
69
|
-
|
|
70
51
|
var ChildrensWrapper = _styled.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n margin-top: 8px;\n margin-left: 24px;\n flex-direction: column;\n gap: 8px;\n"])));
|
|
71
|
-
|
|
72
52
|
exports.ChildrensWrapper = ChildrensWrapper;
|
|
73
|
-
|
|
74
53
|
var CheckBoxWrapper = _styled.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n svg {\n box-sizing: border-box;\n padding: 2px;\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n }\n"])));
|
|
75
|
-
|
|
76
54
|
exports.CheckBoxWrapper = CheckBoxWrapper;
|
|
77
|
-
|
|
78
55
|
var MultipleWrapper = _styled.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
|
|
79
|
-
|
|
80
56
|
exports.MultipleWrapper = MultipleWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE5C,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,gBAAgB,EAAE,KAAK,IAAI,CAAC;CACjE;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC;IACrF,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|