@salutejs/plasma-new-hope 0.174.0-canary.1452.11462555994.0 → 0.174.0-canary.1488.11482175295.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
- package/cjs/components/Attach/Attach.js +3 -4
- package/cjs/components/Attach/Attach.js.map +1 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js +0 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -2
- package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
- package/cjs/components/Attach/utils/getFileicon.js +3 -4
- package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
- package/cjs/components/Attach/utils/index.js +0 -3
- package/cjs/components/Attach/utils/index.js.map +1 -1
- package/cjs/components/Autocomplete/Autocomplete.js +5 -6
- package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/cjs/components/Autocomplete/Autocomplete.styles.js +2 -3
- package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/Avatar/Avatar.js +2 -3
- package/cjs/components/Avatar/Avatar.js.map +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/cjs/components/Button/Button.styles.js +0 -3
- package/cjs/components/Button/Button.styles.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +5 -5
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
- package/cjs/components/Calendar/hooks/useDays.js +2 -2
- package/cjs/components/Calendar/hooks/useKeyNavigation.js +1 -1
- package/cjs/components/Calendar/hooks/useMonths.js +2 -2
- package/cjs/components/Calendar/hooks/useQuarters.js +2 -2
- package/cjs/components/Calendar/hooks/useYears.js +2 -2
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +11 -12
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
- package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
- package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -10
- package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
- package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
- package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/cjs/components/Drawer/Drawer.js +5 -10
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.styles.js +0 -4
- package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
- package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
- package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
- package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
- package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.js +3 -10
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles.js +2 -3
- package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
- package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
- package/cjs/components/Editable/Editable.js +3 -4
- package/cjs/components/Editable/Editable.js.map +1 -1
- package/cjs/components/Editable/utils/clearSelection.js +0 -2
- package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
- package/cjs/components/Editable/utils/selectText.js +0 -2
- package/cjs/components/Editable/utils/selectText.js.map +1 -1
- package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
- package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
- package/cjs/components/IconButton/IconButton.js +1 -1
- package/cjs/components/IconButton/IconButton.styles.js +0 -8
- package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
- package/cjs/components/Modal/Modal.js +6 -8
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/hooks/useModal.js +0 -4
- package/cjs/components/Modal/hooks/useModal.js.map +1 -1
- package/cjs/components/Notification/Notification.styles.js +2 -3
- package/cjs/components/Notification/Notification.styles.js.map +1 -1
- package/cjs/components/Notification/NotificationsPortal.js +3 -4
- package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
- package/cjs/components/Pagination/Pagination.styles.js +1 -2
- package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/cjs/components/Popover/Popover.js +1 -1
- package/cjs/components/Popup/Popup.js +2 -2
- package/cjs/components/Popup/PopupContext.js +1 -1
- package/cjs/components/Range/Range.styles.js +0 -1
- package/cjs/components/Range/Range.styles.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/cjs/components/Select/Select.js +11 -12
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +2 -5
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/hooks/usePathMaps.js +0 -2
- package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
- package/cjs/components/Select/ui/Inner/Inner.js +1 -2
- package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
- package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
- package/cjs/components/Select/utils/getButtonLabel.js +0 -2
- package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
- package/cjs/components/Sheet/Sheet.js +3 -3
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
- package/cjs/components/Slider/Slider.css +13 -15
- package/cjs/components/Slider/Slider.js +2 -18
- package/cjs/components/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/Slider.tokens.js +17 -23
- package/cjs/components/Slider/Slider.tokens.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.css +8 -8
- package/cjs/components/Slider/components/Double/Double.js +24 -60
- package/cjs/components/Slider/components/Double/Double.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
- package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.css +14 -14
- package/cjs/components/Slider/components/Single/Single.js +34 -66
- package/cjs/components/Slider/components/Single/Single.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
- package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
- package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
- package/cjs/components/Slider/components/SliderBase/SliderBase.js +13 -32
- package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
- package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
- package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
- package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
- package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
- package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
- package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
- package/cjs/components/Slider/utils/index.js +10 -28
- package/cjs/components/Slider/utils/index.js.map +1 -1
- package/cjs/components/Slider/variations/_view/base.js +1 -1
- package/cjs/components/Slider/variations/_view/base.js.map +1 -1
- package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Steps/Steps.js +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/cjs/components/TextArea/TextArea.js +2 -2
- package/cjs/components/TextArea/TextArea.styles.js +2 -3
- package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
- package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
- package/cjs/components/TextField/TextField.js +3 -3
- package/cjs/components/TextField/TextField.styles.js +1 -2
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
- package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/cjs/components/Toast/Toast.styles.js +1 -1
- package/cjs/components/Toast/ToastController.js +1 -1
- package/cjs/components/Toast/utils.js +1 -2
- package/cjs/components/Toast/utils.js.map +1 -1
- package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
- package/cjs/components/Tooltip/Tooltip.js +2 -3
- package/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/cjs/components/ViewContainer/ViewContainer.js +38 -0
- package/cjs/components/ViewContainer/ViewContainer.js.map +1 -0
- package/cjs/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
- package/cjs/components/ViewContainer/_view/base.js +9 -0
- package/cjs/components/ViewContainer/_view/base.js.map +1 -0
- package/cjs/components/ViewContainer/_view/base_x642ct.css +1 -0
- package/cjs/engines/index.js +0 -2
- package/cjs/engines/index.js.map +1 -1
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/cjs/index.css +15 -15
- package/cjs/index.js +51 -51
- package/cjs/utils/index.js +0 -5
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/Slider/Slider.js +2 -10
- package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
- package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
- package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
- package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
- package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
- package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
- package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
- package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
- package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
- package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
- package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
- package/emotion/cjs/components/Slider/utils/index.js +10 -28
- package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
- package/emotion/cjs/components/ViewContainer/ViewContainer.js +49 -0
- package/emotion/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
- package/emotion/cjs/components/ViewContainer/_view/base.js +8 -0
- package/emotion/cjs/components/ViewContainer/_view/tokens.json +1 -0
- package/emotion/cjs/components/ViewContainer/index.js +18 -0
- package/emotion/cjs/examples/_helpers.js +3 -14
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
- package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
- package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
- package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
- package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
- package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
- package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/emotion/cjs/index.js +11 -0
- package/emotion/es/components/Slider/Slider.js +2 -11
- package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
- package/emotion/es/components/Slider/Slider.tokens.js +17 -23
- package/emotion/es/components/Slider/components/Double/Double.js +19 -54
- package/emotion/es/components/Slider/components/Single/Single.js +34 -65
- package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
- package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
- package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
- package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
- package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
- package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
- package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
- package/emotion/es/components/Slider/utils/index.js +10 -28
- package/emotion/es/components/Slider/variations/_view/base.js +1 -2
- package/emotion/es/components/ViewContainer/ViewContainer.js +40 -0
- package/emotion/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
- package/emotion/es/components/ViewContainer/_view/base.js +2 -0
- package/emotion/es/components/ViewContainer/_view/tokens.json +1 -0
- package/emotion/es/components/ViewContainer/index.js +1 -0
- package/emotion/es/examples/_helpers.js +3 -14
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
- package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
- package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
- package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
- package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
- package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
- package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
- package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/emotion/es/index.js +2 -1
- package/emotion/package.json +2 -1
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
- package/es/components/Attach/Attach.js +3 -4
- package/es/components/Attach/Attach.js.map +1 -1
- package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
- package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
- package/es/components/Attach/ui/Button/Button.styles.js +0 -1
- package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
- package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
- package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
- package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
- package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
- package/es/components/Attach/utils/getFileicon.js +3 -4
- package/es/components/Attach/utils/getFileicon.js.map +1 -1
- package/es/components/Attach/utils/index.js +0 -3
- package/es/components/Attach/utils/index.js.map +1 -1
- package/es/components/Autocomplete/Autocomplete.js +5 -6
- package/es/components/Autocomplete/Autocomplete.js.map +1 -1
- package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
- package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
- package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
- package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
- package/es/components/Avatar/Avatar.js +2 -3
- package/es/components/Avatar/Avatar.js.map +1 -1
- package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
- package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/es/components/Button/Button.styles.js +0 -3
- package/es/components/Button/Button.styles.js.map +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
- package/es/components/Calendar/hooks/useDays.js +2 -2
- package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
- package/es/components/Calendar/hooks/useMonths.js +2 -2
- package/es/components/Calendar/hooks/useQuarters.js +2 -2
- package/es/components/Calendar/hooks/useYears.js +2 -2
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
- package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
- package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
- package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
- package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
- package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
- package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
- package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
- package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
- package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
- package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
- package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
- package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
- package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
- package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
- package/es/components/Drawer/Drawer.js +5 -10
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/Drawer.styles.js +0 -4
- package/es/components/Drawer/Drawer.styles.js.map +1 -1
- package/es/components/Drawer/hooks/useDrawer.js +0 -4
- package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
- package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
- package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
- package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
- package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
- package/es/components/Dropdown/Dropdown.js +3 -10
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/Dropdown.styles.js +2 -3
- package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
- package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
- package/es/components/Editable/Editable.js +3 -4
- package/es/components/Editable/Editable.js.map +1 -1
- package/es/components/Editable/utils/clearSelection.js +0 -2
- package/es/components/Editable/utils/clearSelection.js.map +1 -1
- package/es/components/Editable/utils/selectText.js +0 -2
- package/es/components/Editable/utils/selectText.js.map +1 -1
- package/es/components/EmptyState/EmptyState.styles.js +1 -2
- package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
- package/es/components/IconButton/IconButton.js +1 -1
- package/es/components/IconButton/IconButton.styles.js +0 -8
- package/es/components/IconButton/IconButton.styles.js.map +1 -1
- package/es/components/Modal/Modal.js +6 -8
- package/es/components/Modal/Modal.js.map +1 -1
- package/es/components/Modal/hooks/useModal.js +0 -4
- package/es/components/Modal/hooks/useModal.js.map +1 -1
- package/es/components/Notification/Notification.styles.js +2 -3
- package/es/components/Notification/Notification.styles.js.map +1 -1
- package/es/components/Notification/NotificationsPortal.js +3 -4
- package/es/components/Notification/NotificationsPortal.js.map +1 -1
- package/es/components/Pagination/Pagination.styles.js +1 -2
- package/es/components/Pagination/Pagination.styles.js.map +1 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
- package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/es/components/Popover/Popover.js +1 -1
- package/es/components/Popup/Popup.js +2 -2
- package/es/components/Popup/PopupContext.js +1 -1
- package/es/components/Range/Range.styles.js +0 -1
- package/es/components/Range/Range.styles.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/es/components/Select/Select.js +11 -12
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/Select.styles.js +2 -5
- package/es/components/Select/Select.styles.js.map +1 -1
- package/es/components/Select/hooks/usePathMaps.js +0 -2
- package/es/components/Select/hooks/usePathMaps.js.map +1 -1
- package/es/components/Select/ui/Inner/Inner.js +1 -2
- package/es/components/Select/ui/Inner/Inner.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
- package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
- package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
- package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
- package/es/components/Select/utils/getButtonLabel.js +0 -2
- package/es/components/Select/utils/getButtonLabel.js.map +1 -1
- package/es/components/Sheet/Sheet.js +3 -3
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
- package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
- package/es/components/Slider/Slider.css +13 -15
- package/es/components/Slider/Slider.js +2 -18
- package/es/components/Slider/Slider.js.map +1 -1
- package/es/components/Slider/Slider.tokens.js +17 -23
- package/es/components/Slider/Slider.tokens.js.map +1 -1
- package/es/components/Slider/components/Double/Double.css +8 -8
- package/es/components/Slider/components/Double/Double.js +20 -56
- package/es/components/Slider/components/Double/Double.js.map +1 -1
- package/es/components/Slider/components/Double/Double.styles.js +0 -1
- package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
- package/es/components/Slider/components/Single/Single.css +14 -14
- package/es/components/Slider/components/Single/Single.js +35 -67
- package/es/components/Slider/components/Single/Single.js.map +1 -1
- package/es/components/Slider/components/Single/Single.styles.js +4 -4
- package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
- package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
- package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
- package/es/components/Slider/components/SliderBase/SliderBase.js +13 -32
- package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
- package/es/components/Slider/ui/Handler/Handler.css +3 -3
- package/es/components/Slider/ui/Handler/Handler.js +87 -48
- package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
- package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
- package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
- package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
- package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
- package/es/components/Slider/utils/index.js +10 -28
- package/es/components/Slider/utils/index.js.map +1 -1
- package/es/components/Slider/variations/_view/base.js +1 -1
- package/es/components/Slider/variations/_view/base.js.map +1 -1
- package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
- package/es/components/Steps/Steps.js +1 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
- package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/es/components/TextArea/TextArea.js +2 -2
- package/es/components/TextArea/TextArea.styles.js +2 -3
- package/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/es/components/TextArea/ui/Hint/Hint.js +1 -2
- package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
- package/es/components/TextField/TextField.js +3 -3
- package/es/components/TextField/TextField.styles.js +1 -2
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/es/components/TextField/ui/Hint/Hint.js +1 -2
- package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/es/components/Toast/Toast.styles.js +1 -1
- package/es/components/Toast/ToastController.js +1 -1
- package/es/components/Toast/utils.js +1 -2
- package/es/components/Toast/utils.js.map +1 -1
- package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
- package/es/components/Tooltip/Tooltip.js +2 -3
- package/es/components/Tooltip/Tooltip.js.map +1 -1
- package/es/components/ViewContainer/ViewContainer.js +33 -0
- package/es/components/ViewContainer/ViewContainer.js.map +1 -0
- package/es/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
- package/es/components/ViewContainer/_view/base.js +5 -0
- package/es/components/ViewContainer/_view/base.js.map +1 -0
- package/es/components/ViewContainer/_view/base_x642ct.css +1 -0
- package/es/engines/index.js +0 -2
- package/es/engines/index.js.map +1 -1
- package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
- package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/es/index.css +15 -15
- package/es/index.js +22 -24
- package/es/index.js.map +1 -1
- package/es/utils/index.js +0 -3
- package/es/utils/index.js.map +1 -1
- package/package.json +6 -2
- package/styled-components/cjs/components/Slider/Slider.js +2 -10
- package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
- package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
- package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
- package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
- package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
- package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
- package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
- package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
- package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
- package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
- package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
- package/styled-components/cjs/components/Slider/utils/index.js +10 -28
- package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
- package/styled-components/cjs/components/ViewContainer/ViewContainer.js +40 -0
- package/styled-components/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
- package/styled-components/cjs/components/ViewContainer/_view/base.js +8 -0
- package/styled-components/cjs/components/ViewContainer/_view/tokens.json +1 -0
- package/styled-components/cjs/components/ViewContainer/index.js +18 -0
- package/styled-components/cjs/examples/_helpers.js +3 -14
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
- package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
- package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
- package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
- package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
- package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
- package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/styled-components/cjs/index.js +11 -0
- package/styled-components/es/components/Slider/Slider.js +2 -11
- package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
- package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
- package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
- package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
- package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
- package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
- package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
- package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
- package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
- package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
- package/styled-components/es/components/Slider/utils/index.js +10 -28
- package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
- package/styled-components/es/components/ViewContainer/ViewContainer.js +31 -0
- package/styled-components/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
- package/styled-components/es/components/ViewContainer/_view/base.js +2 -0
- package/styled-components/es/components/ViewContainer/_view/tokens.json +1 -0
- package/styled-components/es/components/ViewContainer/index.js +1 -0
- package/styled-components/es/examples/_helpers.js +3 -14
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
- package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
- package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
- package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
- package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
- package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
- package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
- package/styled-components/es/index.js +2 -1
- package/styled-components/package.json +2 -1
- package/types/components/Slider/Slider.d.ts.map +1 -1
- package/types/components/Slider/Slider.tokens.d.ts +16 -22
- package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
- package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.types.d.ts +7 -80
- package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
- package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
- package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
- package/types/components/Slider/utils/index.d.ts +8 -26
- package/types/components/Slider/utils/index.d.ts.map +1 -1
- package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
- package/types/components/ViewContainer/ViewContainer.d.ts +26 -0
- package/types/components/ViewContainer/ViewContainer.d.ts.map +1 -0
- package/types/components/ViewContainer/_view/base.d.ts +2 -0
- package/types/components/ViewContainer/_view/base.d.ts.map +1 -0
- package/types/components/ViewContainer/index.d.ts +2 -0
- package/types/components/ViewContainer/index.d.ts.map +1 -0
- package/types/examples/_helpers.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -84
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts +9 -0
- package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts +8 -0
- package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -84
- package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
- package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts +9 -0
- package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts +8 -0
- package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/utils/index.d.ts +1 -1
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
- package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
- package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
- package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
- package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
- package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
- package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
- package/emotion/cjs/examples/themes/declaration.d.ts +0 -4
- package/emotion/cjs/examples/themes/index.js +0 -15
- package/emotion/cjs/examples/themes/plasma_b2c.module.css +0 -984
- package/emotion/cjs/examples/themes/plasma_web.module.css +0 -984
- package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
- package/emotion/es/examples/themes/declaration.d.ts +0 -4
- package/emotion/es/examples/themes/index.js +0 -7
- package/emotion/es/examples/themes/plasma_b2c.module.css +0 -984
- package/emotion/es/examples/themes/plasma_web.module.css +0 -984
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
- package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
- package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
- package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
- package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
- package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
- package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
- package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
- package/styled-components/cjs/examples/themes/declaration.d.ts +0 -4
- package/styled-components/cjs/examples/themes/index.js +0 -15
- package/styled-components/cjs/examples/themes/plasma_b2c.module.css +0 -984
- package/styled-components/cjs/examples/themes/plasma_web.module.css +0 -984
- package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
- package/styled-components/es/examples/themes/declaration.d.ts +0 -4
- package/styled-components/es/examples/themes/index.js +0 -7
- package/styled-components/es/examples/themes/plasma_b2c.module.css +0 -984
- package/styled-components/es/examples/themes/plasma_web.module.css +0 -984
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
- package/types/examples/themes/index.d.ts +0 -6
- package/types/examples/themes/index.d.ts.map +0 -1
package/cjs/index.js
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var index = require('./engines/index.js');
|
6
|
+
var index$1 = require('./utils/index.js');
|
7
|
+
var index$2 = require('./components/ButtonBase/index.js');
|
5
8
|
var applyBlur = require('./mixins/applyBlur.js');
|
6
9
|
var applyEllipsis = require('./mixins/applyEllipsis.js');
|
7
10
|
var applySpacing = require('./mixins/applySpacing.js');
|
@@ -14,7 +17,7 @@ var applyRoundness = require('./mixins/applyRoundness.js');
|
|
14
17
|
var applySkeletonGradient = require('./mixins/applySkeletonGradient.js');
|
15
18
|
var applyDisabled = require('./mixins/applyDisabled.js');
|
16
19
|
var applyHidden = require('./mixins/applyHidden.js');
|
17
|
-
var
|
20
|
+
var common = require('./engines/common.js');
|
18
21
|
var useUniqId = require('./hooks/useUniqId.js');
|
19
22
|
var useFocusTrap = require('./hooks/useFocusTrap.js');
|
20
23
|
var usePreviousValue = require('./hooks/usePreviousValue.js');
|
@@ -22,7 +25,16 @@ var useForceUpdate = require('./hooks/useForceUpdate.js');
|
|
22
25
|
var useDidMountEffect = require('./hooks/useDidMountEffect.js');
|
23
26
|
var useOutsideClick = require('./hooks/useOutsideClick.js');
|
24
27
|
var useIsomorphicLayoutEffect = require('./hooks/useIsomorphicLayoutEffect.js');
|
25
|
-
var
|
28
|
+
var canUseDOM = require('./utils/canUseDOM.js');
|
29
|
+
var extractTextFrom = require('./utils/extractTextFrom.js');
|
30
|
+
var getSizeValueFromProp = require('./utils/getSizeValueFromProp.js');
|
31
|
+
var react = require('./utils/react.js');
|
32
|
+
var isNumber = require('./utils/isNumber.js');
|
33
|
+
var setRefList = require('./utils/setRefList.js');
|
34
|
+
var isEmpty = require('./utils/isEmpty.js');
|
35
|
+
var noop = require('./utils/noop.js');
|
36
|
+
var getPopoverPlacement = require('./utils/getPopoverPlacement.js');
|
37
|
+
var constants = require('./utils/constants.js');
|
26
38
|
var Button = require('./components/Button/Button.js');
|
27
39
|
var Button_tokens = require('./components/Button/Button.tokens.js');
|
28
40
|
var IconButton = require('./components/IconButton/IconButton.js');
|
@@ -71,6 +83,7 @@ var withRange = require('./components/Calendar/hoc/withRange.js');
|
|
71
83
|
var CalendarBase = require('./components/Calendar/CalendarBase/CalendarBase.js');
|
72
84
|
var CalendarDouble = require('./components/Calendar/CalendarDouble/CalendarDouble.js');
|
73
85
|
var Calendar_tokens = require('./components/Calendar/Calendar.tokens.js');
|
86
|
+
var tokens$1 = require('./components/Typography/tokens.js');
|
74
87
|
var Body = require('./components/Typography/Body/Body.js');
|
75
88
|
var Dspl = require('./components/Typography/Dspl/Dspl.js');
|
76
89
|
var Heading = require('./components/Typography/Heading/Heading.js');
|
@@ -85,7 +98,6 @@ var Paragraph = require('./components/Typography/Old/Paragraph/Paragraph.js');
|
|
85
98
|
var ParagraphText = require('./components/Typography/Old/ParagraphText/ParagraphText.js');
|
86
99
|
var Underline = require('./components/Typography/Old/Underline/Underline.js');
|
87
100
|
var Subtitle = require('./components/Typography/Old/Subtitle/Subtitle.js');
|
88
|
-
var tokens$1 = require('./components/Typography/tokens.js');
|
89
101
|
var PopupContext = require('./components/Popup/PopupContext.js');
|
90
102
|
var Popup = require('./components/Popup/Popup.js');
|
91
103
|
var usePopup = require('./components/Popup/hooks/usePopup.js');
|
@@ -97,10 +109,10 @@ var Notification = require('./components/Notification/Notification.js');
|
|
97
109
|
var NotificationsStore = require('./components/Notification/NotificationsStore.js');
|
98
110
|
var Notification_tokens = require('./components/Notification/Notification.tokens.js');
|
99
111
|
var Drawer = require('./components/Drawer/Drawer.js');
|
112
|
+
var Drawer_tokens = require('./components/Drawer/Drawer.tokens.js');
|
100
113
|
var DrawerContent = require('./components/Drawer/ui/DrawerContent/DrawerContent.js');
|
101
114
|
var DrawerFooter = require('./components/Drawer/ui/DrawerFooter/DrawerFooter.js');
|
102
115
|
var DrawerHeader = require('./components/Drawer/ui/DrawerHeader/DrawerHeader.js');
|
103
|
-
var Drawer_tokens = require('./components/Drawer/Drawer.tokens.js');
|
104
116
|
var Dropdown = require('./components/Dropdown/Dropdown.js');
|
105
117
|
var Dropdown_tokens = require('./components/Dropdown/Dropdown.tokens.js');
|
106
118
|
var useKeyboardNavigation = require('./components/Dropdown/hooks/useKeyboardNavigation.js');
|
@@ -115,8 +127,8 @@ var DropdownOld = require('./components/Dropdown/ui/DropdownOld/DropdownOld.js')
|
|
115
127
|
var DropdownOld_tokens = require('./components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js');
|
116
128
|
var Tooltip = require('./components/Tooltip/Tooltip.js');
|
117
129
|
var Tooltip_tokens = require('./components/Tooltip/Tooltip.tokens.js');
|
118
|
-
var SegmentGroup = require('./components/Segment/ui/SegmentGroup/SegmentGroup.js');
|
119
130
|
var SegmentItem = require('./components/Segment/ui/SegmentItem/SegmentItem.js');
|
131
|
+
var SegmentGroup = require('./components/Segment/ui/SegmentGroup/SegmentGroup.js');
|
120
132
|
var SegmentProvider = require('./components/Segment/SegmentProvider/SegmentProvider.js');
|
121
133
|
var tokens$2 = require('./components/Segment/tokens.js');
|
122
134
|
var LineSkeleton = require('./components/Skeleton/LineSkeleton/LineSkeleton.js');
|
@@ -141,23 +153,22 @@ var Toast_tokens = require('./components/Toast/Toast.tokens.js');
|
|
141
153
|
var Overlay = require('./components/Overlay/Overlay.js');
|
142
154
|
var SSRProvider = require('./components/SSRProvider/SSRProvider.js');
|
143
155
|
var Combobox = require('./components/Combobox/ComboboxOld/Combobox.js');
|
144
|
-
var Combobox_tokens = require('./components/Combobox/ComboboxOld/Combobox.tokens.js');
|
145
156
|
var ComboboxDivider = require('./components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js');
|
146
157
|
var ComboboxFooter = require('./components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js');
|
147
158
|
var ComboboxGroup = require('./components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js');
|
148
159
|
var ComboboxHeader = require('./components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js');
|
149
160
|
var ComboboxItem = require('./components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.js');
|
150
161
|
var ComboboxTarget = require('./components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js');
|
151
|
-
var
|
162
|
+
var Combobox_tokens = require('./components/Combobox/ComboboxOld/Combobox.tokens.js');
|
152
163
|
var Combobox_tokens$1 = require('./components/Combobox/ComboboxNew/Combobox.tokens.js');
|
164
|
+
var Combobox$1 = require('./components/Combobox/ComboboxNew/Combobox.js');
|
153
165
|
var Indicator = require('./components/Indicator/Indicator.js');
|
154
166
|
var Indicator_tokens = require('./components/Indicator/Indicator.tokens.js');
|
155
|
-
var index$2 = require('./components/ButtonBase/index.js');
|
156
167
|
var Grid = require('./components/Grid/Grid.js');
|
157
168
|
var Grid_tokens = require('./components/Grid/Grid.tokens.js');
|
169
|
+
var index$3 = require('./components/Grid/utils/index.js');
|
158
170
|
var Row = require('./components/Grid/ui/Row/Row.js');
|
159
171
|
var Col = require('./components/Grid/ui/Col/Col.js');
|
160
|
-
var index$3 = require('./components/Grid/utils/index.js');
|
161
172
|
var Progress = require('./components/Progress/Progress.js');
|
162
173
|
var Progress_tokens = require('./components/Progress/Progress.tokens.js');
|
163
174
|
var Select = require('./components/Select/Select.js');
|
@@ -171,10 +182,7 @@ var Sheet = require('./components/Sheet/Sheet.js');
|
|
171
182
|
var Sheet_tokens = require('./components/Sheet/Sheet.tokens.js');
|
172
183
|
var Slider = require('./components/Slider/Slider.js');
|
173
184
|
var Slider_tokens = require('./components/Slider/Slider.tokens.js');
|
174
|
-
require('react');
|
175
|
-
require('react-draggable');
|
176
185
|
var Thumb_styles = require('./components/Slider/ui/Thumb/Thumb.styles.js');
|
177
|
-
require('@linaria/react');
|
178
186
|
var Steps = require('./components/Steps/Steps.js');
|
179
187
|
var Steps_tokens = require('./components/Steps/Steps.tokens.js');
|
180
188
|
var Range = require('./components/Range/Range.js');
|
@@ -197,20 +205,14 @@ var Editable_tokens = require('./components/Editable/Editable.tokens.js');
|
|
197
205
|
var Mask = require('./components/Mask/Mask.js');
|
198
206
|
var Attach = require('./components/Attach/Attach.js');
|
199
207
|
var Attach_tokens = require('./components/Attach/Attach.tokens.js');
|
200
|
-
var
|
201
|
-
var canUseDOM = require('./utils/canUseDOM.js');
|
202
|
-
var extractTextFrom = require('./utils/extractTextFrom.js');
|
203
|
-
var getSizeValueFromProp = require('./utils/getSizeValueFromProp.js');
|
204
|
-
var react = require('./utils/react.js');
|
205
|
-
var isNumber = require('./utils/isNumber.js');
|
206
|
-
var setRefList = require('./utils/setRefList.js');
|
207
|
-
var isEmpty = require('./utils/isEmpty.js');
|
208
|
-
var noop = require('./utils/noop.js');
|
209
|
-
var getPopoverPlacement = require('./utils/getPopoverPlacement.js');
|
210
|
-
var constants = require('./utils/constants.js');
|
208
|
+
var ViewContainer = require('./components/ViewContainer/ViewContainer.js');
|
211
209
|
|
212
210
|
|
213
211
|
|
212
|
+
exports.css = index.css;
|
213
|
+
exports.composableStyle = index$1.composableStyle;
|
214
|
+
exports.cx = index$1.cx;
|
215
|
+
exports.ButtonBase = index$2.ButtonBase;
|
214
216
|
exports.applyBlur = applyBlur.applyBlur;
|
215
217
|
exports.blurs = applyBlur.blurs;
|
216
218
|
exports.applyEllipsis = applyEllipsis.applyEllipsis;
|
@@ -286,7 +288,8 @@ exports.applySkeletonGradient = applySkeletonGradient.applySkeletonGradient;
|
|
286
288
|
exports.getSkeletonColor = applySkeletonGradient.getSkeletonColor;
|
287
289
|
exports.applyDisabled = applyDisabled.applyDisabled;
|
288
290
|
exports.applyHidden = applyHidden.applyHidden;
|
289
|
-
exports.
|
291
|
+
exports.component = common.component;
|
292
|
+
exports.mergeConfig = common.mergeConfig;
|
290
293
|
exports.useUniqId = useUniqId.useUniqId;
|
291
294
|
exports.useFocusTrap = useFocusTrap.useFocusTrap;
|
292
295
|
exports.usePreviousValue = usePreviousValue.usePreviousValue;
|
@@ -294,8 +297,19 @@ exports.useForceUpdate = useForceUpdate.useForceUpdate;
|
|
294
297
|
exports.useDidMountEffect = useDidMountEffect.useDidMountEffect;
|
295
298
|
exports.useOutsideClick = useOutsideClick.useOutsideClick;
|
296
299
|
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect.useIsomorphicLayoutEffect;
|
297
|
-
exports.
|
298
|
-
exports.
|
300
|
+
exports.canUseDOM = canUseDOM.canUseDOM;
|
301
|
+
exports.extractTextFrom = extractTextFrom.extractTextFrom;
|
302
|
+
exports.getSizeValueFromProp = getSizeValueFromProp.getSizeValueFromProp;
|
303
|
+
exports.IS_REACT_18 = react.IS_REACT_18;
|
304
|
+
exports.safeUseId = react.safeUseId;
|
305
|
+
exports.isNumber = isNumber.isNumber;
|
306
|
+
exports.mergeRefs = setRefList.mergeRefs;
|
307
|
+
exports.setRefList = setRefList.setRefList;
|
308
|
+
exports.isEmpty = isEmpty.isEmpty;
|
309
|
+
exports.noop = noop.noop;
|
310
|
+
exports.getPlacement = getPopoverPlacement.getPlacement;
|
311
|
+
exports.getPlacements = getPopoverPlacement.getPlacements;
|
312
|
+
exports.constants = constants;
|
299
313
|
exports.buttonConfig = Button.buttonConfig;
|
300
314
|
exports.buttonRoot = Button.buttonRoot;
|
301
315
|
exports.buttonClasses = Button_tokens.classes;
|
@@ -377,6 +391,7 @@ exports.calendarDoubleConfig = CalendarDouble.calendarDoubleConfig;
|
|
377
391
|
exports.calendarDoubleRoot = CalendarDouble.calendarDoubleRoot;
|
378
392
|
exports.calendarBaseTokens = Calendar_tokens.tokens;
|
379
393
|
exports.calendarDoubleTokens = Calendar_tokens.tokens;
|
394
|
+
exports.typographyTokens = tokens$1.tokens;
|
380
395
|
exports.bodyConfig = Body.bodyConfig;
|
381
396
|
exports.bodyRoot = Body.bodyRoot;
|
382
397
|
exports.dsplConfig = Dspl.dsplConfig;
|
@@ -405,7 +420,6 @@ exports.underlineConfig = Underline.underlineConfig;
|
|
405
420
|
exports.underlineRoot = Underline.underlineRoot;
|
406
421
|
exports.subtitleConfig = Subtitle.subtitleConfig;
|
407
422
|
exports.subtitleRoot = Subtitle.subtitleRoot;
|
408
|
-
exports.typographyTokens = tokens$1.tokens;
|
409
423
|
exports.PopupProvider = PopupContext.PopupProvider;
|
410
424
|
exports.usePopupContext = PopupContext.usePopupContext;
|
411
425
|
exports.popupConfig = Popup.popupConfig;
|
@@ -425,14 +439,14 @@ exports.notificationClasses = Notification_tokens.classes;
|
|
425
439
|
exports.notificationTokens = Notification_tokens.tokens;
|
426
440
|
exports.drawerConfig = Drawer.drawerConfig;
|
427
441
|
exports.drawerRoot = Drawer.drawerRoot;
|
442
|
+
exports.drawerClasses = Drawer_tokens.classes;
|
443
|
+
exports.drawerTokens = Drawer_tokens.tokens;
|
428
444
|
exports.drawerContentConfig = DrawerContent.drawerContentConfig;
|
429
445
|
exports.drawerContentRoot = DrawerContent.drawerContentRoot;
|
430
446
|
exports.drawerFooterConfig = DrawerFooter.drawerFooterConfig;
|
431
447
|
exports.drawerFooterRoot = DrawerFooter.drawerFooterRoot;
|
432
448
|
exports.drawerHeaderConfig = DrawerHeader.drawerHeaderConfig;
|
433
449
|
exports.drawerHeaderRoot = DrawerHeader.drawerHeaderRoot;
|
434
|
-
exports.drawerClasses = Drawer_tokens.classes;
|
435
|
-
exports.drawerTokens = Drawer_tokens.tokens;
|
436
450
|
exports.dropdownConfig = Dropdown.dropdownConfig;
|
437
451
|
exports.dropdownRoot = Dropdown.dropdownRoot;
|
438
452
|
exports.dropdownClasses = Dropdown_tokens.classes;
|
@@ -456,10 +470,10 @@ exports.dropdownOldTokens = DropdownOld_tokens.tokens;
|
|
456
470
|
exports.tooltipConfig = Tooltip.tooltipConfig;
|
457
471
|
exports.tooltipRoot = Tooltip.tooltipRoot;
|
458
472
|
exports.tooltipTokens = Tooltip_tokens.tokens;
|
459
|
-
exports.segmentGroupConfig = SegmentGroup.segmentGroupConfig;
|
460
|
-
exports.segmentGroupRoot = SegmentGroup.segmentGroupRoot;
|
461
473
|
exports.segmentItemConfig = SegmentItem.segmentItemConfig;
|
462
474
|
exports.segmentItemRoot = SegmentItem.segmentItemRoot;
|
475
|
+
exports.segmentGroupConfig = SegmentGroup.segmentGroupConfig;
|
476
|
+
exports.segmentGroupRoot = SegmentGroup.segmentGroupRoot;
|
463
477
|
exports.SegmentProvider = SegmentProvider.SegmentProvider;
|
464
478
|
exports.useSegment = SegmentProvider.useSegment;
|
465
479
|
exports.segmentClasses = tokens$2.classes;
|
@@ -501,8 +515,6 @@ exports.SSRContext = SSRProvider.SSRContext;
|
|
501
515
|
exports.SSRProvider = SSRProvider.SSRProvider;
|
502
516
|
exports.comboboxOldConfig = Combobox.comboboxConfig;
|
503
517
|
exports.comboboxOldRoot = Combobox.comboboxRoot;
|
504
|
-
exports.comboboxOldClasses = Combobox_tokens.classes;
|
505
|
-
exports.comboboxOldTokens = Combobox_tokens.tokens;
|
506
518
|
exports.comboboxDividerConfig = ComboboxDivider.comboboxDividerConfig;
|
507
519
|
exports.comboboxDividerRoot = ComboboxDivider.comboboxDividerRoot;
|
508
520
|
exports.comboboxFooterConfig = ComboboxFooter.comboboxFooterConfig;
|
@@ -514,19 +526,20 @@ exports.comboboxHeaderRoot = ComboboxHeader.comboboxHeaderRoot;
|
|
514
526
|
exports.comboboxItemConfig = ComboboxItem.comboboxItemConfig;
|
515
527
|
exports.comboboxItemRoot = ComboboxItem.comboboxItemRoot;
|
516
528
|
exports.ComboboxTarget = ComboboxTarget.ComboboxTarget;
|
529
|
+
exports.comboboxOldClasses = Combobox_tokens.classes;
|
530
|
+
exports.comboboxOldTokens = Combobox_tokens.tokens;
|
531
|
+
exports.comboboxNewTokens = Combobox_tokens$1.tokens;
|
517
532
|
exports.comboboxNewConfig = Combobox$1.comboboxConfig;
|
518
533
|
exports.comboboxNewRoot = Combobox$1.comboboxRoot;
|
519
|
-
exports.comboboxNewTokens = Combobox_tokens$1.tokens;
|
520
534
|
exports.indicatorConfig = Indicator.indicatorConfig;
|
521
535
|
exports.indicatorRoot = Indicator.indicatorRoot;
|
522
536
|
exports.indicatorTokens = Indicator_tokens.tokens;
|
523
|
-
exports.ButtonBase = index$2.ButtonBase;
|
524
537
|
exports.gridConfig = Grid.gridConfig;
|
525
538
|
exports.gridRoot = Grid.gridRoot;
|
526
539
|
exports.gridTokens = Grid_tokens.tokens;
|
540
|
+
exports.getBaseGridView = index$3.getBaseGridView;
|
527
541
|
exports.Row = Row.Row;
|
528
542
|
exports.Col = Col.Col;
|
529
|
-
exports.getBaseGridView = index$3.getBaseGridView;
|
530
543
|
exports.progressConfig = Progress.progressConfig;
|
531
544
|
exports.progressRoot = Progress.progressRoot;
|
532
545
|
exports.progressTokens = Progress_tokens.tokens;
|
@@ -584,19 +597,6 @@ exports.composeMask = Mask.composeMask;
|
|
584
597
|
exports.attachConfig = Attach.attachConfig;
|
585
598
|
exports.attachRoot = Attach.attachRoot;
|
586
599
|
exports.attachTokens = Attach_tokens.tokens;
|
587
|
-
exports.
|
588
|
-
exports.
|
589
|
-
exports.canUseDOM = canUseDOM.canUseDOM;
|
590
|
-
exports.extractTextFrom = extractTextFrom.extractTextFrom;
|
591
|
-
exports.getSizeValueFromProp = getSizeValueFromProp.getSizeValueFromProp;
|
592
|
-
exports.IS_REACT_18 = react.IS_REACT_18;
|
593
|
-
exports.safeUseId = react.safeUseId;
|
594
|
-
exports.isNumber = isNumber.isNumber;
|
595
|
-
exports.mergeRefs = setRefList.mergeRefs;
|
596
|
-
exports.setRefList = setRefList.setRefList;
|
597
|
-
exports.isEmpty = isEmpty.isEmpty;
|
598
|
-
exports.noop = noop.noop;
|
599
|
-
exports.getPlacement = getPopoverPlacement.getPlacement;
|
600
|
-
exports.getPlacements = getPopoverPlacement.getPlacements;
|
601
|
-
exports.constants = constants;
|
600
|
+
exports.viewContainerConfig = ViewContainer.viewContainerConfig;
|
601
|
+
exports.viewContainerRoot = ViewContainer.viewContainerRoot;
|
602
602
|
//# sourceMappingURL=index.js.map
|
package/cjs/utils/index.js
CHANGED
@@ -2,9 +2,6 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
require('react');
|
6
|
-
var react = require('./react.js');
|
7
|
-
|
8
5
|
var cx = function cx() {
|
9
6
|
for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
|
10
7
|
classes[_key] = arguments[_key];
|
@@ -23,8 +20,6 @@ var composableStyle = function composableStyle(s) {
|
|
23
20
|
return res;
|
24
21
|
};
|
25
22
|
|
26
|
-
exports.IS_REACT_18 = react.IS_REACT_18;
|
27
|
-
exports.safeUseId = react.safeUseId;
|
28
23
|
exports.composableStyle = composableStyle;
|
29
24
|
exports.cx = cx;
|
30
25
|
//# sourceMappingURL=index.js.map
|
package/cjs/utils/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\nexport { mergeRefs, setRefList } from './setRefList';\nexport { isEmpty } from './isEmpty';\nexport * as constants from './constants';\nexport * from './getPopoverPlacement';\nexport { noop } from './noop';\n\nexport const cx = (...classes: (string |
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\nexport { mergeRefs, setRefList } from './setRefList';\nexport { isEmpty } from './isEmpty';\nexport * as constants from './constants';\nexport * from './getPopoverPlacement';\nexport { noop } from './noop';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":";;;;AAaaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAE/FC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;;"}
|
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.sliderRoot = exports.sliderConfig = void 0;
|
7
7
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
8
|
-
var _utils = /*#__PURE__*/require("../../utils");
|
9
8
|
var _base = /*#__PURE__*/require("./variations/_view/base");
|
10
9
|
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
11
10
|
var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
|
12
11
|
var _components = /*#__PURE__*/require("./components");
|
13
|
-
var _Slider = /*#__PURE__*/require("./Slider.tokens");
|
14
12
|
var _excluded = ["type"];
|
15
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
16
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
@@ -31,15 +29,9 @@ var sliderRoot = exports.sliderRoot = function sliderRoot(Root) {
|
|
31
29
|
var _ref$type = _ref.type,
|
32
30
|
type = _ref$type === void 0 ? 'single' : _ref$type,
|
33
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
34
|
-
|
35
|
-
return /*#__PURE__*/_react["default"].createElement(Root, _extends({}, props, {
|
36
|
-
className: (0, _utils.cx)(props.orientation === 'vertical' && _Slider.classes.verticalOrientation, props.className),
|
37
|
-
ref: ref
|
38
|
-
}), /*#__PURE__*/_react["default"].createElement(_components.SingleSlider, props));
|
39
|
-
}
|
40
|
-
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
32
|
+
return /*#__PURE__*/_react["default"].createElement(Root, _extends({}, props, {
|
41
33
|
ref: ref
|
42
|
-
}, props), isDoubleValueProps(props, type) && /*#__PURE__*/_react["default"].createElement(_components.DoubleUncontrolled, props));
|
34
|
+
}), isSingleValueProps(props, type) && /*#__PURE__*/_react["default"].createElement(_components.SingleSlider, props), isDoubleValueProps(props, type) && /*#__PURE__*/_react["default"].createElement(_components.DoubleUncontrolled, props));
|
43
35
|
});
|
44
36
|
};
|
45
37
|
var sliderConfig = exports.sliderConfig = {
|
@@ -76,29 +76,3 @@ export function App() {
|
|
76
76
|
);
|
77
77
|
}
|
78
78
|
```
|
79
|
-
|
80
|
-
# Вертикальное отображение
|
81
|
-
|
82
|
-
```tsx live
|
83
|
-
import React from 'react';
|
84
|
-
import { Slider } from '@salutejs/{{ package }}';
|
85
|
-
import { IconMic } from '@salutejs/plasma-icons';
|
86
|
-
|
87
|
-
export function App() {
|
88
|
-
return (
|
89
|
-
<section>
|
90
|
-
<Slider
|
91
|
-
onChangeCommitted={() => {}}
|
92
|
-
min={0}
|
93
|
-
max={100}
|
94
|
-
value={30}
|
95
|
-
label="Громкость"
|
96
|
-
labelContent={<IconMic size="s" />}
|
97
|
-
orientation="vertical"
|
98
|
-
sliderAlign="center"
|
99
|
-
size="m"
|
100
|
-
/>
|
101
|
-
</section>
|
102
|
-
);
|
103
|
-
}
|
104
|
-
```
|
@@ -7,12 +7,6 @@ exports.tokens = exports.classes = void 0;
|
|
7
7
|
var classes = exports.classes = {
|
8
8
|
labelPlacementOuter: 'slider-label-placement-outer',
|
9
9
|
labelPlacementInner: 'slider-label-placement-inner',
|
10
|
-
labelPlacementBottom: 'slider-label-placement-bottom',
|
11
|
-
labelAlignLeft: 'slider-label-align-left',
|
12
|
-
labelAlignCenter: 'slider-label-align-center',
|
13
|
-
labelAlignRight: 'slider-label-align-right',
|
14
|
-
labelAlignNone: 'slider-label-align-none',
|
15
|
-
labelContentReversed: 'slider-label-content-reversed',
|
16
10
|
rangeValuesPlacementOuter: 'slider-range-values-placement-outer',
|
17
11
|
rangeValuesPlacementInner: 'slider-range-values-placement-inner',
|
18
12
|
maxRangeValue: 'slider-max-range-value',
|
@@ -21,17 +15,13 @@ var classes = exports.classes = {
|
|
21
15
|
textFieldActive: 'slider-text-field-active',
|
22
16
|
firstTextField: 'slider-first-text-field',
|
23
17
|
secondTextField: 'slider-second-text-field',
|
24
|
-
activeRangeValue: 'slider-active-range-value'
|
25
|
-
verticalOrientation: 'slider-vertical-orientation',
|
26
|
-
valuePlacementLeft: 'slider-value-placement-left',
|
27
|
-
reversed: 'slider-reversed'
|
18
|
+
activeRangeValue: 'slider-active-range-value'
|
28
19
|
};
|
29
20
|
var tokens = exports.tokens = {
|
30
|
-
|
21
|
+
height: '--plasma-slider-height',
|
31
22
|
labelWrapperGap: '--plasma-slider-label-wrapper-gap',
|
32
23
|
labelWrapperMarginBottom: '--plasma-slider-label-wrapper-margin-bottom',
|
33
24
|
labelWrapperMarginRight: '--plasma-slider-label-wrapper-margin-right',
|
34
|
-
labelWrapperVerticalMargin: '--plasma-slider-label-wrapper-vertical-margin',
|
35
25
|
labelColor: '--plasma-slider-label-color',
|
36
26
|
labelFontFamily: '--plasma-slider-label-font-family',
|
37
27
|
labelFontSize: '--plasma-slider-label-font-size',
|
@@ -39,27 +29,31 @@ var tokens = exports.tokens = {
|
|
39
29
|
labelFontWeight: '--plasma-slider-label-font-weight',
|
40
30
|
labelLetterSpacing: '--plasma-slider-label-letter-spacing',
|
41
31
|
labelLineHeight: '--plasma-slider-label-line-height',
|
32
|
+
rangeMinValueMargin: '--plasma-slider-range-min-value-margin',
|
33
|
+
rangeMaxValueMargin: '--plasma-slider-range-max-value-margin',
|
42
34
|
rangeValueBottomOffset: '--plasma-slider-range-value-bottom-offset',
|
43
|
-
rangeValueHorizontalMargin: '--plasma-slider-range-value-horizontal-margin',
|
44
|
-
rangeValueHorizontalOffset: '--plasma-slider-range-value-horizontal-offset',
|
45
|
-
rangeValueVerticalMargin: '--plasma-slider-range-value-vertical-margin',
|
46
35
|
rangeValueColor: '--plasma-slider-range-value-color',
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
36
|
+
rangeValueFontFamily: '--plasma-slider-range-value-font-family',
|
37
|
+
rangeValueFontSize: '--plasma-slider-range-value-font-size',
|
38
|
+
rangeValueFontStyle: '--plasma-slider-range-value-font-style',
|
39
|
+
rangeValueFontWeight: '--plasma-slider-range-value-font-weight',
|
40
|
+
rangeValueLetterSpacing: '--plasma-slider-range-value-letter-spacing',
|
41
|
+
rangeValueLineHeight: '--plasma-slider-range-value-line-height',
|
53
42
|
doubleWrapperGap: '--plasma-slider-double-wrapper-gap',
|
54
43
|
thumbSize: '--plasma-slider-thumb-size',
|
55
|
-
thumbSizeLarge: '--plasma-slider-thumb-size-large',
|
56
44
|
thumbBorder: '--plasma-slider-thumb-border',
|
57
45
|
thumbBorderColor: '--plasma-slider-thumb-border-color',
|
58
46
|
thumbBackgroundColor: '--plasma-slider-thumb-background-color',
|
59
47
|
thumbFocusBorderColor: '--plasma-slider-thumb-focus-border-color',
|
60
48
|
currentValueTopOffset: '--plasma-slider-current-value-top-offset',
|
49
|
+
currentValueFontFamily: '--plasma-slider-current-value-font-family',
|
50
|
+
currentValueFontSize: '--plasma-slider-current-value-font-size',
|
51
|
+
currentValueFontStyle: '--plasma-slider-current-value-font-style',
|
52
|
+
currentValueFontWeight: '--plasma-slider-current-value-font-weight',
|
53
|
+
currentValueLetterSpacing: '--plasma-slider-current-value-letter-spacing',
|
54
|
+
currentValueLineHeight: '--plasma-slider-current-value-line-height',
|
61
55
|
railBackgroundColor: '--plasma-slider-rail-background-color',
|
62
|
-
|
56
|
+
railHeight: '--plasma-slider-rail-height',
|
63
57
|
railBorderRadius: '--plasma-slider-rail-border-radius',
|
64
58
|
railIndent: '--plasma-slider-rail-indent',
|
65
59
|
fillColor: '--plasma-slider-fill-color',
|
@@ -13,7 +13,7 @@ var _utils2 = /*#__PURE__*/require("../../utils");
|
|
13
13
|
var _Slider = /*#__PURE__*/require("../../Slider.tokens");
|
14
14
|
var _SliderBase2 = /*#__PURE__*/require("../SliderBase/SliderBase.styles");
|
15
15
|
var _Double = /*#__PURE__*/require("./Double.styles");
|
16
|
-
var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "
|
16
|
+
var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "onChangeCommitted", "onChangeTextField", "onBlurTextField", "onKeyDownTextField", "onChange", "ariaLabel", "multipleStepSize", "name"];
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
18
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
19
19
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -46,8 +46,6 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
|
|
46
46
|
labelContentLeft = _ref.labelContentLeft,
|
47
47
|
_ref$size = _ref.size,
|
48
48
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
49
|
-
_ref$pointerSize = _ref.pointerSize,
|
50
|
-
pointerSize = _ref$pointerSize === void 0 ? 'small' : _ref$pointerSize,
|
51
49
|
onChangeCommitted = _ref.onChangeCommitted,
|
52
50
|
onChangeTextField = _ref.onChangeTextField,
|
53
51
|
onBlurTextField = _ref.onBlurTextField,
|
@@ -74,30 +72,20 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
|
|
74
72
|
setState = _useState2[1];
|
75
73
|
var _useState3 = (0, _react.useState)(false),
|
76
74
|
_useState4 = _slicedToArray(_useState3, 2),
|
77
|
-
|
78
|
-
|
75
|
+
firstInputActive = _useState4[0],
|
76
|
+
setFirstInputActive = _useState4[1];
|
79
77
|
var _useState5 = (0, _react.useState)(false),
|
80
78
|
_useState6 = _slicedToArray(_useState5, 2),
|
81
|
-
|
82
|
-
|
83
|
-
var _useState7 = (0, _react.useState)(
|
79
|
+
secondInputActive = _useState6[0],
|
80
|
+
setSecondInputActive = _useState6[1];
|
81
|
+
var _useState7 = (0, _react.useState)(value[0]),
|
84
82
|
_useState8 = _slicedToArray(_useState7, 2),
|
85
|
-
|
86
|
-
|
87
|
-
var _useState9 = (0, _react.useState)(
|
83
|
+
firstValue = _useState8[0],
|
84
|
+
setFirstValue = _useState8[1];
|
85
|
+
var _useState9 = (0, _react.useState)(value[1]),
|
88
86
|
_useState10 = _slicedToArray(_useState9, 2),
|
89
|
-
|
90
|
-
|
91
|
-
var firstInputActive = firstInputHovered || firstInputFocused;
|
92
|
-
var secondInputActive = secondInputHovered || secondInputFocused;
|
93
|
-
var _useState11 = (0, _react.useState)(value[0]),
|
94
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
95
|
-
firstValue = _useState12[0],
|
96
|
-
setFirstValue = _useState12[1];
|
97
|
-
var _useState13 = (0, _react.useState)(value[1]),
|
98
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
99
|
-
secondValue = _useState14[0],
|
100
|
-
setSecondValue = _useState14[1];
|
87
|
+
secondValue = _useState10[0],
|
88
|
+
setSecondValue = _useState10[1];
|
101
89
|
var firstHandleRef = (0, _react.useRef)(null);
|
102
90
|
var secondHandleRef = (0, _react.useRef)(null);
|
103
91
|
var firstHandleValue = (0, _react.useRef)(value[0]);
|
@@ -122,16 +110,6 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
|
|
122
110
|
});
|
123
111
|
});
|
124
112
|
}, [value, stepSize, min, max, setFirstValue, setSecondValue]);
|
125
|
-
(0, _react.useEffect)(function () {
|
126
|
-
var onMouseUp = function onMouseUp() {
|
127
|
-
setFirstInputFocused(false);
|
128
|
-
setSecondInputFocused(false);
|
129
|
-
};
|
130
|
-
window.addEventListener('mouseup', onMouseUp);
|
131
|
-
return function () {
|
132
|
-
window.removeEventListener('mouseup', onMouseUp);
|
133
|
-
};
|
134
|
-
}, []);
|
135
113
|
var setStepSize = (0, _react.useCallback)(function (newStepSize) {
|
136
114
|
setState(function (prevState) {
|
137
115
|
return _objectSpread(_objectSpread({}, prevState), {}, {
|
@@ -273,20 +251,16 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
|
|
273
251
|
ariaLabelLeft = _ref3[0],
|
274
252
|
ariaLabelRight = _ref3[1];
|
275
253
|
var currentFirstSliderValue = Math.max(state.firstValue, min);
|
276
|
-
var settings = _utils2.sizeData[size][pointerSize === 'large' ? 'large' : 'small'];
|
277
254
|
return /*#__PURE__*/_react["default"].createElement(_Double.DoubleWrapper, null, hasLabelContent && /*#__PURE__*/_react["default"].createElement(_Double.LabelWrapper, null, labelContentLeft && /*#__PURE__*/_react["default"].createElement(_Double.LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/_react["default"].createElement(_Double.Label, null, label)), /*#__PURE__*/_react["default"].createElement(_Double.SliderWrapper, null, /*#__PURE__*/_react["default"].createElement(_SliderBase.SliderBase, _extends({
|
278
255
|
min: min,
|
279
256
|
max: max,
|
280
|
-
size: size,
|
281
257
|
disabled: disabled,
|
282
258
|
setStepSize: setStepSize,
|
283
259
|
railFillWidth: state.railFillWidth,
|
284
|
-
settings:
|
285
|
-
railFillXPosition: state.railFillXPosition
|
286
|
-
orientation: "horizontal"
|
260
|
+
settings: _utils2.sizeData[size],
|
261
|
+
railFillXPosition: state.railFillXPosition
|
287
262
|
}, rest), /*#__PURE__*/_react["default"].createElement(_ui.Handler, {
|
288
263
|
ref: firstHandleRef,
|
289
|
-
size: pointerSize,
|
290
264
|
stepSize: state.stepSize,
|
291
265
|
multipleStepSize: multipleStepSize,
|
292
266
|
onChangeCommitted: onFirstHandleChangeCommitted,
|
@@ -296,23 +270,18 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
|
|
296
270
|
disabled: disabled,
|
297
271
|
bounds: [min, state.secondValue],
|
298
272
|
side: "left",
|
299
|
-
|
300
|
-
position: state.xFirstHandle,
|
273
|
+
xPosition: state.xFirstHandle,
|
301
274
|
zIndex: state.firstHandleZIndex,
|
302
275
|
value: currentFirstSliderValue,
|
303
276
|
ariaLabel: ariaLabelLeft,
|
304
|
-
onMouseDown: function onMouseDown() {
|
305
|
-
return setFirstInputFocused(true);
|
306
|
-
},
|
307
277
|
onMouseEnter: function onMouseEnter() {
|
308
|
-
return
|
278
|
+
return setFirstInputActive(true);
|
309
279
|
},
|
310
280
|
onMouseLeave: function onMouseLeave() {
|
311
|
-
return
|
281
|
+
return setFirstInputActive(false);
|
312
282
|
}
|
313
283
|
}), /*#__PURE__*/_react["default"].createElement(_ui.Handler, {
|
314
284
|
ref: secondHandleRef,
|
315
|
-
size: pointerSize,
|
316
285
|
stepSize: state.stepSize,
|
317
286
|
multipleStepSize: multipleStepSize,
|
318
287
|
onChangeCommitted: onSecondHandleChangeCommitted,
|
@@ -323,19 +292,15 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
|
|
323
292
|
disabled: disabled,
|
324
293
|
bounds: [state.firstValue, max],
|
325
294
|
side: "right",
|
326
|
-
|
327
|
-
position: state.xSecondHandle,
|
295
|
+
xPosition: state.xSecondHandle,
|
328
296
|
zIndex: state.secondHandleZIndex,
|
329
297
|
value: Math.max(state.secondValue, min),
|
330
298
|
ariaLabel: ariaLabelRight,
|
331
|
-
onMouseDown: function onMouseDown() {
|
332
|
-
return setSecondInputFocused(true);
|
333
|
-
},
|
334
299
|
onMouseEnter: function onMouseEnter() {
|
335
|
-
return
|
300
|
+
return setSecondInputActive(true);
|
336
301
|
},
|
337
302
|
onMouseLeave: function onMouseLeave() {
|
338
|
-
return
|
303
|
+
return setSecondInputActive(false);
|
339
304
|
}
|
340
305
|
})), /*#__PURE__*/_react["default"].createElement(_Double.InputsWrapper, null, /*#__PURE__*/_react["default"].createElement(_Double.StyledInput, {
|
341
306
|
className: (0, _utils.cx)(_Slider.classes.firstTextField, firstInputActiveClass),
|