@salutejs/plasma-new-hope 0.242.0-dev.0 → 0.242.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Accordion/Accordion.js +5 -1
- package/cjs/components/Accordion/Accordion.js.map +1 -1
- package/cjs/components/Accordion/Accordion.styles.js +1 -1
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +14 -10
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +1 -1
- package/cjs/components/Accordion/variations/_size/base.js +1 -1
- package/cjs/components/Accordion/variations/_view/base.js +1 -1
- package/cjs/components/Attach/Attach.js +11 -7
- package/cjs/components/Attach/Attach.js.map +1 -1
- package/cjs/components/Attach/Attach.styles.js +1 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.js +7 -3
- package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js +1 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles.js +1 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +1 -1
- package/cjs/components/Attach/utils/getFileicon.js +10 -6
- package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
- package/cjs/components/Attach/variations/_helperTextView/base.js +1 -1
- package/cjs/components/Attach/variations/_size/base.js +1 -1
- package/cjs/components/Attach/variations/_view/base.js +1 -1
- package/cjs/components/Autocomplete/Autocomplete.js +11 -7
- package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/cjs/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/cjs/components/Autocomplete/ui/SuggestionItem/SuggestionItem.js +6 -2
- package/cjs/components/Autocomplete/ui/SuggestionItem/SuggestionItem.js.map +1 -1
- package/cjs/components/Autocomplete/ui/SuggestionItem/SuggestionItem.styles.js +1 -1
- package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
- package/cjs/components/Avatar/Avatar.js +14 -10
- package/cjs/components/Avatar/Avatar.js.map +1 -1
- package/cjs/components/Avatar/Avatar.styles.js +1 -1
- package/cjs/components/Avatar/variations/_focused/base.js +1 -1
- package/cjs/components/Avatar/variations/_size/base.js +1 -1
- package/cjs/components/AvatarGroup/AvatarGroup.js +5 -1
- package/cjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/cjs/components/AvatarGroup/AvatarGroup.styles.js +1 -1
- package/cjs/components/Badge/Badge.js +8 -4
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Badge/Badge.styles.js +1 -1
- package/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/cjs/components/Badge/variations/_pilled/base.js +1 -1
- package/cjs/components/Badge/variations/_size/base.js +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/cjs/components/Badge/variations/_view/base.js +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.js +7 -3
- package/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +1 -1
- package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.js +6 -2
- package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.js.map +1 -1
- package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js +1 -1
- package/cjs/components/Breadcrumbs/utils/getShortItems.js +6 -2
- package/cjs/components/Breadcrumbs/utils/getShortItems.js.map +1 -1
- package/cjs/components/Breadcrumbs/variations/_size/base.js +1 -1
- package/cjs/components/Breadcrumbs/variations/_view/base.js +1 -1
- package/cjs/components/Button/Button.js +8 -4
- package/cjs/components/Button/Button.js.map +1 -1
- package/cjs/components/Button/Button.styles.js +1 -1
- package/cjs/components/Button/variations/_blurred/base.js +1 -1
- package/cjs/components/Button/variations/_disabled/base.js +1 -1
- package/cjs/components/Button/variations/_focused/base.js +1 -1
- package/cjs/components/Button/variations/_size/base.js +1 -1
- package/cjs/components/Button/variations/_stretching/base.js +1 -1
- package/cjs/components/Button/variations/_view/base.js +1 -1
- package/cjs/components/ButtonBase/index.js +1 -1
- package/cjs/components/ButtonGroup/ButtonGroup.js +5 -1
- package/cjs/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/cjs/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/cjs/components/ButtonGroup/variations/_gap/base.js +1 -1
- package/cjs/components/ButtonGroup/variations/_orientation/base.js +1 -1
- package/cjs/components/ButtonGroup/variations/_shape/base.js +1 -1
- package/cjs/components/ButtonGroup/variations/_size/base.js +1 -1
- package/cjs/components/ButtonGroup/variations/_stretching/base.js +1 -1
- package/cjs/components/ButtonGroup/variations/_view/base.js +1 -1
- package/cjs/components/Calendar/Calendar.js +8 -4
- package/cjs/components/Calendar/Calendar.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +11 -7
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/cjs/components/Calendar/CalendarBase/variations/_size/base.js +1 -1
- package/cjs/components/Calendar/CalendarBase/variations/_view/base.js +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +15 -11
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
- package/cjs/components/Calendar/CalendarDouble/variations/_view/base.js +1 -1
- package/cjs/components/Calendar/hoc/withRange.js +5 -1
- package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +10 -6
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +16 -12
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +7 -3
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +7 -3
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +7 -3
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
- package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.js +8 -4
- package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.js.map +1 -1
- package/cjs/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.js +1 -1
- package/cjs/components/Cell/Cell.js +9 -5
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/Cell/Cell.styles.js +1 -1
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +6 -2
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +1 -1
- package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +5 -1
- package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +1 -1
- package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +5 -1
- package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +1 -1
- package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +5 -1
- package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +1 -1
- package/cjs/components/Cell/variations/_size/base.js +1 -1
- package/cjs/components/Cell/variations/_view/base.js +1 -1
- package/cjs/components/Checkbox/Checkbox.js +11 -7
- package/cjs/components/Checkbox/Checkbox.js.map +1 -1
- package/cjs/components/Checkbox/Checkbox.styles.js +1 -1
- package/cjs/components/Checkbox/IconsSvg.js +10 -6
- package/cjs/components/Checkbox/IconsSvg.js.map +1 -1
- package/cjs/components/Checkbox/variations/_disabled/base.js +1 -1
- package/cjs/components/Checkbox/variations/_focused/base.js +1 -1
- package/cjs/components/Checkbox/variations/_size/base.js +1 -1
- package/cjs/components/Checkbox/variations/_view/base.js +1 -1
- package/cjs/components/Chip/Chip.js +7 -3
- package/cjs/components/Chip/Chip.js.map +1 -1
- package/cjs/components/Chip/Chip.styles.js +1 -1
- package/cjs/components/Chip/variations/_disabled/base.js +1 -1
- package/cjs/components/Chip/variations/_focused/base.js +1 -1
- package/cjs/components/Chip/variations/_pilled/base.js +1 -1
- package/cjs/components/Chip/variations/_readonly/base.js +1 -1
- package/cjs/components/Chip/variations/_size/base.js +1 -1
- package/cjs/components/Chip/variations/_view/base.js +1 -1
- package/cjs/components/ChipGroup/ChipGroup.js +5 -1
- package/cjs/components/ChipGroup/ChipGroup.js.map +1 -1
- package/cjs/components/ChipGroup/ChipGroup.styles.js +1 -1
- package/cjs/components/ChipGroup/variations/_gap/base.js +1 -1
- package/cjs/components/ChipGroup/variations/_size/base.js +1 -1
- package/cjs/components/ChipGroup/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +15 -11
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +7 -3
- package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +9 -5
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +12 -8
- 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 -1
- package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js +6 -2
- package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxNew/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxNew/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.js +11 -7
- package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.js +5 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.js +6 -2
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/variations/_view/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +13 -9
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/utils/index.js +5 -1
- package/cjs/components/Combobox/ComboboxOld/utils/index.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/variations/_size/base.js +1 -1
- package/cjs/components/Combobox/ComboboxOld/variations/_view/base.js +1 -1
- package/cjs/components/Counter/Counter.js +5 -1
- package/cjs/components/Counter/Counter.js.map +1 -1
- package/cjs/components/Counter/Counter.styles.js +1 -1
- package/cjs/components/Counter/variations/_size/base.js +1 -1
- package/cjs/components/Counter/variations/_view/base.js +1 -1
- package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +10 -6
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +8 -4
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
- package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +1 -1
- package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +1 -1
- package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
- package/cjs/components/DatePicker/RangeDate/variations/_view/base.js +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.js +10 -6
- package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
- package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +1 -1
- package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +1 -1
- package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +1 -1
- package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +1 -1
- package/cjs/components/Divider/Divider.js +5 -1
- package/cjs/components/Divider/Divider.js.map +1 -1
- package/cjs/components/Divider/variations/_orientation/base.js +1 -1
- package/cjs/components/Divider/variations/_size/base.js +1 -1
- package/cjs/components/Divider/variations/_view/base.js +1 -1
- package/cjs/components/Drawer/Drawer.js +9 -5
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.styles.js +1 -1
- package/cjs/components/Drawer/variations/_borderRadius/base.js +1 -1
- package/cjs/components/Drawer/variations/_size/base.js +1 -1
- package/cjs/components/Drawer/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/Dropdown.js +9 -5
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.styles.js +1 -1
- package/cjs/components/Dropdown/FloatingPopover.js +7 -3
- package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownDivider/DropdownDivider.js +6 -2
- package/cjs/components/Dropdown/ui/DropdownDivider/DropdownDivider.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownDivider/DropdownDivider.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownDivider/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownDivider/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownFooter/DropdownFooter.js +6 -2
- package/cjs/components/Dropdown/ui/DropdownFooter/DropdownFooter.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownFooter/DropdownFooter.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownFooter/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownFooter/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownGroup/DropdownGroup.js +7 -3
- package/cjs/components/Dropdown/ui/DropdownGroup/DropdownGroup.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownGroup/DropdownGroup.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownGroup/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownGroup/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownHeader/DropdownHeader.js +6 -2
- package/cjs/components/Dropdown/ui/DropdownHeader/DropdownHeader.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownHeader/DropdownHeader.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownHeader/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownHeader/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +9 -5
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +9 -5
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +6 -2
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +7 -3
- package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/ui/DropdownOld/variations/_view/base.js +1 -1
- package/cjs/components/Dropdown/utils/index.js +7 -3
- package/cjs/components/Dropdown/utils/index.js.map +1 -1
- package/cjs/components/Dropdown/variations/_size/base.js +1 -1
- package/cjs/components/Dropdown/variations/_view/base.js +1 -1
- package/cjs/components/Dropzone/Dropzone.js +16 -12
- package/cjs/components/Dropzone/Dropzone.js.map +1 -1
- package/cjs/components/Dropzone/Dropzone.styles.js +1 -1
- package/cjs/components/Dropzone/variations/_disabled/base.js +1 -1
- package/cjs/components/Dropzone/variations/_size/base.js +1 -1
- package/cjs/components/Dropzone/variations/_view/base.js +1 -1
- package/cjs/components/Editable/Editable.js +8 -4
- package/cjs/components/Editable/Editable.js.map +1 -1
- package/cjs/components/Editable/Editable.styles.js +1 -1
- package/cjs/components/Editable/variations/_size/base.js +1 -1
- package/cjs/components/Editable/variations/_view/base.js +1 -1
- package/cjs/components/EmptyState/EmptyState.js +6 -2
- package/cjs/components/EmptyState/EmptyState.js.map +1 -1
- package/cjs/components/EmptyState/EmptyState.styles.js +1 -1
- package/cjs/components/Flow/Flow.js +11 -5
- package/cjs/components/Flow/Flow.js.map +1 -1
- package/cjs/components/Flow/Flow.styles.js +1 -1
- package/cjs/components/Grid/Grid.js +5 -1
- package/cjs/components/Grid/Grid.js.map +1 -1
- package/cjs/components/Grid/Grid.styles.js +1 -1
- package/cjs/components/Grid/ui/Col/Col.js +5 -1
- package/cjs/components/Grid/ui/Col/Col.js.map +1 -1
- package/cjs/components/Grid/ui/Col/Col.styles.js +1 -1
- package/cjs/components/Grid/ui/Row/Row.js +5 -1
- package/cjs/components/Grid/ui/Row/Row.js.map +1 -1
- package/cjs/components/Grid/ui/Row/Row.styles.js +1 -1
- package/cjs/components/Grid/variations/_view/base.js +1 -1
- package/cjs/components/IconButton/IconButton.styles.js +1 -1
- package/cjs/components/Image/Image.js +7 -3
- package/cjs/components/Image/Image.js.map +1 -1
- package/cjs/components/Image/Image.styles.js +1 -1
- package/cjs/components/Indicator/Indicator.js +5 -1
- package/cjs/components/Indicator/Indicator.js.map +1 -1
- package/cjs/components/Indicator/Indicator.styles.js +1 -1
- package/cjs/components/Indicator/variations/_size/base.js +1 -1
- package/cjs/components/Indicator/variations/_view/base.js +1 -1
- package/cjs/components/Link/Link.js +6 -2
- package/cjs/components/Link/Link.js.map +1 -1
- package/cjs/components/Link/_disabled/base.js +1 -1
- package/cjs/components/Link/_focused/base.js +1 -1
- package/cjs/components/Link/_view/base.js +1 -1
- package/cjs/components/Mask/Mask.js +7 -2
- package/cjs/components/Mask/Mask.js.map +1 -1
- package/cjs/components/Modal/Modal.js +11 -7
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/Modal.styles.js +1 -1
- package/cjs/components/Modal/variations/_view/base.js +1 -1
- package/cjs/components/Note/Note.js +9 -5
- package/cjs/components/Note/Note.js.map +1 -1
- package/cjs/components/Note/Note.styles.js +1 -1
- package/cjs/components/Note/variations/_size/base.js +1 -1
- package/cjs/components/Note/variations/_view/base.js +1 -1
- package/cjs/components/Notification/Notification.js +15 -11
- package/cjs/components/Notification/Notification.js.map +1 -1
- package/cjs/components/Notification/Notification.styles.js +1 -1
- package/cjs/components/Notification/NotificationsPortal.js +9 -5
- package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
- package/cjs/components/Notification/NotificationsProvider.js +6 -2
- package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
- package/cjs/components/Notification/variations/_closeIconType/base.js +1 -1
- package/cjs/components/Notification/variations/_layout/base.js +1 -1
- package/cjs/components/Notification/variations/_size/base.js +1 -1
- package/cjs/components/Notification/variations/_view/base.js +1 -1
- package/cjs/components/NumberInput/NumberInput.js +10 -6
- package/cjs/components/NumberInput/NumberInput.js.map +1 -1
- package/cjs/components/NumberInput/NumberInput.styles.js +1 -1
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +5 -1
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -1
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +1 -1
- package/cjs/components/NumberInput/ui/Input/Input.js +10 -6
- package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -1
- package/cjs/components/NumberInput/ui/Input/Input.styles.js +1 -1
- package/cjs/components/NumberInput/variations/_background-type/base.js +1 -1
- package/cjs/components/NumberInput/variations/_disabled/base.js +1 -1
- package/cjs/components/NumberInput/variations/_segmentation/base.js +1 -1
- package/cjs/components/NumberInput/variations/_shape/base.js +1 -1
- package/cjs/components/NumberInput/variations/_size/base.js +1 -1
- package/cjs/components/NumberInput/variations/_view/base.js +1 -1
- package/cjs/components/Overlay/Overlay.js +5 -1
- package/cjs/components/Overlay/Overlay.js.map +1 -1
- package/cjs/components/Overlay/Overlay.styles.js +1 -1
- package/cjs/components/Pagination/Pagination.js +14 -10
- package/cjs/components/Pagination/Pagination.js.map +1 -1
- package/cjs/components/Pagination/Pagination.styles.js +1 -1
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js +5 -1
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.js +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +5 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/cjs/components/Pagination/variations/_size/base.js +1 -1
- package/cjs/components/Pagination/variations/_type/base.js +1 -1
- package/cjs/components/Pagination/variations/_view/base.js +1 -1
- package/cjs/components/Panel/Panel.js +6 -2
- package/cjs/components/Panel/Panel.js.map +1 -1
- package/cjs/components/Panel/Panel.styles.js +1 -1
- package/cjs/components/Panel/ui/PanelContent/PanelContent.js +5 -1
- package/cjs/components/Panel/ui/PanelContent/PanelContent.js.map +1 -1
- package/cjs/components/Panel/ui/PanelContent/variations/_view/base.js +1 -1
- package/cjs/components/Panel/ui/PanelFooter/PanelFooter.js +5 -1
- package/cjs/components/Panel/ui/PanelFooter/PanelFooter.js.map +1 -1
- package/cjs/components/Panel/ui/PanelFooter/variations/_view/base.js +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +8 -4
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
- package/cjs/components/Panel/ui/PanelHeader/variations/_view/base.js +1 -1
- package/cjs/components/Panel/variations/_borderRadius/base.js +1 -1
- package/cjs/components/Panel/variations/_size/base.js +1 -1
- package/cjs/components/Panel/variations/_view/base.js +1 -1
- package/cjs/components/Popover/Popover.js +11 -7
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popover/Popover.styles.js +1 -1
- package/cjs/components/Popover/variations/_view/base.js +1 -1
- package/cjs/components/Popup/Popup.js +11 -7
- package/cjs/components/Popup/Popup.js.map +1 -1
- package/cjs/components/Popup/Popup.styles.js +1 -1
- package/cjs/components/Popup/PopupContext.js +8 -4
- package/cjs/components/Popup/PopupContext.js.map +1 -1
- package/cjs/components/Popup/PopupRoot.js +6 -2
- package/cjs/components/Popup/PopupRoot.js.map +1 -1
- package/cjs/components/Portal/Portal.js +6 -1
- package/cjs/components/Portal/Portal.js.map +1 -1
- package/cjs/components/Price/Price.js +6 -2
- package/cjs/components/Price/Price.js.map +1 -1
- package/cjs/components/Price/Price.styles.js +1 -1
- package/cjs/components/Price/variations/_view/base.js +1 -1
- package/cjs/components/Progress/Progress.js +7 -3
- package/cjs/components/Progress/Progress.js.map +1 -1
- package/cjs/components/Progress/Progress.styles.js +1 -1
- package/cjs/components/Progress/variations/_size/base.js +1 -1
- package/cjs/components/Progress/variations/_view/base.js +1 -1
- package/cjs/components/Radiobox/RadioGroup.js +6 -2
- package/cjs/components/Radiobox/RadioGroup.js.map +1 -1
- package/cjs/components/Radiobox/Radiobox.js +11 -7
- package/cjs/components/Radiobox/Radiobox.js.map +1 -1
- package/cjs/components/Radiobox/Radiobox.styles.js +1 -1
- package/cjs/components/Radiobox/variations/_disabled/base.js +1 -1
- package/cjs/components/Radiobox/variations/_focused/base.js +1 -1
- package/cjs/components/Radiobox/variations/_size/base.js +1 -1
- package/cjs/components/Radiobox/variations/_view/base.js +1 -1
- package/cjs/components/Range/Range.js +13 -9
- package/cjs/components/Range/Range.js.map +1 -1
- package/cjs/components/Range/Range.styles.js +1 -1
- package/cjs/components/Range/variations/_disabled/base.js +1 -1
- package/cjs/components/Range/variations/_readonly/base.js +1 -1
- package/cjs/components/Range/variations/_size/base.js +1 -1
- package/cjs/components/Range/variations/_view/base.js +1 -1
- package/cjs/components/Rating/Rating.js +9 -5
- package/cjs/components/Rating/Rating.js.map +1 -1
- package/cjs/components/Rating/Rating.styles.js +1 -1
- package/cjs/components/Rating/utils/getIcons.js +20 -16
- package/cjs/components/Rating/utils/getIcons.js.map +1 -1
- package/cjs/components/Rating/variations/_size/base.js +1 -1
- package/cjs/components/Rating/variations/_view/base.js +1 -1
- package/cjs/components/SSRProvider/SSRProvider.js +5 -1
- package/cjs/components/SSRProvider/SSRProvider.js.map +1 -1
- package/cjs/components/Segment/SegmentProvider/SegmentProvider.js +5 -1
- package/cjs/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +13 -9
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_disabled/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_stretch/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_view/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +6 -2
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_disabled/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_size/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
- package/cjs/components/Select/FloatingPopover.js +7 -3
- package/cjs/components/Select/FloatingPopover.js.map +1 -1
- package/cjs/components/Select/Select.js +12 -8
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +1 -1
- package/cjs/components/Select/ui/Inner/Inner.js +9 -5
- package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js +13 -9
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
- package/cjs/components/Select/ui/SelectNative/SelectNative.js +6 -2
- package/cjs/components/Select/ui/SelectNative/SelectNative.js.map +1 -1
- package/cjs/components/Select/ui/SelectNative/SelectNative.styles.js +1 -1
- package/cjs/components/Select/ui/Target/Target.js +7 -3
- package/cjs/components/Select/ui/Target/Target.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.js +7 -3
- package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +7 -3
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
- package/cjs/components/Sheet/Sheet.js +11 -7
- package/cjs/components/Sheet/Sheet.js.map +1 -1
- package/cjs/components/Sheet/Sheet.styles.js +1 -1
- package/cjs/components/Sheet/hooks/useSheetSwipe.js +5 -1
- package/cjs/components/Sheet/hooks/useSheetSwipe.js.map +1 -1
- package/cjs/components/Sheet/variations/_view/base.js +1 -1
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +6 -2
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +1 -1
- package/cjs/components/Skeleton/LineSkeleton/variations/_size/base.js +1 -1
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +5 -1
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.styles.js +1 -1
- package/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js +6 -2
- package/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/TextSkeleton/TextSkeleton.styles.js +1 -1
- package/cjs/components/Skeleton/hoc/withSkeleton.js +6 -2
- package/cjs/components/Skeleton/hoc/withSkeleton.js.map +1 -1
- package/cjs/components/Slider/Slider.js +8 -4
- package/cjs/components/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.js +11 -7
- package/cjs/components/Slider/components/Double/Double.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.styles.js +1 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +6 -2
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.js +11 -7
- package/cjs/components/Slider/components/Single/Single.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles.js +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.js +7 -3
- package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.js +9 -4
- package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles.js +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.js +5 -1
- 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/variations/_disabled/base.js +1 -1
- package/cjs/components/Slider/variations/_size/base.js +1 -1
- package/cjs/components/Slider/variations/_view/base.js +1 -1
- package/cjs/components/Spinner/Spinner.js +7 -3
- package/cjs/components/Spinner/Spinner.js.map +1 -1
- package/cjs/components/Spinner/Spinner.styles.js +1 -1
- package/cjs/components/Spinner/SpinnerSvg.js +17 -13
- package/cjs/components/Spinner/SpinnerSvg.js.map +1 -1
- package/cjs/components/Spinner/variations/_size/base.js +1 -1
- package/cjs/components/Spinner/variations/_view/base.js +1 -1
- package/cjs/components/Steps/Steps.js +8 -3
- package/cjs/components/Steps/Steps.js.map +1 -1
- package/cjs/components/Steps/Steps.styles.js +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.js +31 -26
- package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
- package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +1 -1
- package/cjs/components/Steps/variations/_size/base.js +1 -1
- package/cjs/components/Steps/variations/_view/base.js +1 -1
- package/cjs/components/Switch/Switch.js +10 -6
- package/cjs/components/Switch/Switch.js.map +1 -1
- package/cjs/components/Switch/Switch.styles.js +1 -1
- package/cjs/components/Switch/_disabled/base.js +1 -1
- package/cjs/components/Switch/_focused/base.js +1 -1
- package/cjs/components/Switch/_size/base.js +1 -1
- package/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/cjs/components/Switch/_view/base.js +1 -1
- package/cjs/components/Tabs/createTabsController.js +6 -2
- package/cjs/components/Tabs/createTabsController.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +8 -4
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_disabled/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_pilled/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_size/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +12 -8
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_disabled/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_pilled/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_size/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_stretch/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +8 -4
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_disabled/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_size/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +12 -8
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/variations/_disabled/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/variations/_size/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/variations/_view/base.js +1 -1
- package/cjs/components/TextArea/TextArea.js +21 -17
- package/cjs/components/TextArea/TextArea.js.map +1 -1
- package/cjs/components/TextArea/TextArea.styles.js +1 -1
- package/cjs/components/TextArea/ui/Hint/Hint.js +7 -3
- package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
- package/cjs/components/TextArea/variations/_clear/base.js +1 -1
- package/cjs/components/TextArea/variations/_disabled/base.js +1 -1
- package/cjs/components/TextArea/variations/_hint-size/base.js +1 -1
- package/cjs/components/TextArea/variations/_hint-view/base.js +1 -1
- package/cjs/components/TextArea/variations/_size/base.js +1 -1
- package/cjs/components/TextArea/variations/_view/base.js +1 -1
- package/cjs/components/TextField/TextField.js +25 -21
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +1 -1
- package/cjs/components/TextField/ui/Hint/Hint.js +7 -3
- package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -3
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -1
- package/cjs/components/TextField/variations/_clear/base.js +1 -1
- package/cjs/components/TextField/variations/_disabled/base.js +1 -1
- package/cjs/components/TextField/variations/_hint-size/base.js +1 -1
- package/cjs/components/TextField/variations/_hint-view/base.js +1 -1
- package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/cjs/components/TextField/variations/_read-only/base.js +1 -1
- package/cjs/components/TextField/variations/_size/base.js +1 -1
- package/cjs/components/TextField/variations/_view/base.js +1 -1
- package/cjs/components/TextFieldGroup/TextFieldGroup.js +5 -1
- package/cjs/components/TextFieldGroup/TextFieldGroup.js.map +1 -1
- package/cjs/components/TextFieldGroup/TextFieldGroup.styles.js +1 -1
- package/cjs/components/TextFieldGroup/variations/_gap/base.js +1 -1
- package/cjs/components/TextFieldGroup/variations/_orientation/base.js +1 -1
- package/cjs/components/TextFieldGroup/variations/_shape/base.js +1 -1
- package/cjs/components/TextFieldGroup/variations/_size/base.js +1 -1
- package/cjs/components/TextFieldGroup/variations/_stretching/base.js +1 -1
- package/cjs/components/Toast/Toast.js +8 -4
- package/cjs/components/Toast/Toast.js.map +1 -1
- package/cjs/components/Toast/Toast.styles.js +1 -1
- package/cjs/components/Toast/ToastController.js +7 -3
- package/cjs/components/Toast/ToastController.js.map +1 -1
- package/cjs/components/Toast/ToastProvider/ToastProvider.js +6 -2
- package/cjs/components/Toast/ToastProvider/ToastProvider.js.map +1 -1
- package/cjs/components/Toast/variations/_closeIconType/base.js +1 -1
- package/cjs/components/Toast/variations/_pilled/base.js +1 -1
- package/cjs/components/Toast/variations/_size/base.js +1 -1
- package/cjs/components/Toast/variations/_view/base.js +1 -1
- package/cjs/components/Toolbar/Toolbar.js +5 -1
- package/cjs/components/Toolbar/Toolbar.js.map +1 -1
- package/cjs/components/Toolbar/Toolbar.styles.js +1 -1
- package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.styles.js +1 -1
- package/cjs/components/Toolbar/variations/_size/base.js +1 -1
- package/cjs/components/Toolbar/variations/_view/base.js +1 -1
- package/cjs/components/Tooltip/Tooltip.js +9 -5
- package/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/cjs/components/Tooltip/Tooltip.styles.js +1 -1
- package/cjs/components/Tooltip/variations/_size/base.js +1 -1
- package/cjs/components/Tooltip/variations/_view/base.js +1 -1
- package/cjs/components/Tree/Tree.js +9 -4
- package/cjs/components/Tree/Tree.js.map +1 -1
- package/cjs/components/Tree/Tree.styles.js +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.js +5 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/cjs/components/Typography/Old/TypographyOld.js +5 -1
- package/cjs/components/Typography/Old/TypographyOld.js.map +1 -1
- package/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/cjs/components/Typography/Typography.js +5 -1
- package/cjs/components/Typography/Typography.js.map +1 -1
- package/cjs/components/Typography/Typography.styles.js +1 -1
- package/cjs/components/Typography/variations/_size/base.js +1 -1
- package/cjs/components/ViewContainer/ViewContainer.js +6 -2
- package/cjs/components/ViewContainer/ViewContainer.js.map +1 -1
- package/cjs/components/ViewContainer/_view/base.js +1 -1
- package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +6 -2
- package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +9 -5
- package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +9 -5
- package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankOutline.js +6 -2
- package/cjs/components/_Icon/Icon.assets/BlankOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +7 -3
- package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +9 -5
- package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +9 -5
- package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/ChevronDown.js +6 -2
- package/cjs/components/_Icon/Icon.assets/ChevronDown.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Close.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Close.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +6 -2
- package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Cross.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Cross.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/CrossThin.js +6 -2
- package/cjs/components/_Icon/Icon.assets/CrossThin.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +8 -4
- package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureDownWithOffset.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureDownWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureLeftWithOffset.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureLeftWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +8 -4
- package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureRightWithOffset.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureRightWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureUpWithOffset.js +6 -2
- package/cjs/components/_Icon/Icon.assets/DisclosureUpWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Done.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Done.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Folder.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Folder.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.16/StarFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.16/StarFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.16/StarHalfFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.16/StarHalfFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.16/StarOutline.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.16/StarOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.24/StarFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.24/StarFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.24/StarHalfFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.24/StarHalfFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.24/StarOutline.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.24/StarOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.36/StarFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.36/StarFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.36/StarHalfFill.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.36/StarHalfFill.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Icon.svg.36/StarOutline.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Icon.svg.36/StarOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +6 -2
- package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Minus.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Minus.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/Plus.js +6 -2
- package/cjs/components/_Icon/Icon.assets/Plus.js.map +1 -1
- package/cjs/components/_Icon/IconRoot.js +7 -3
- package/cjs/components/_Icon/IconRoot.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.16/IconStarFill.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.16/IconStarFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.16/IconStarHalfFill.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.16/IconStarHalfFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.16/IconStarOutline.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.16/IconStarOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.24/IconStarFill.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.24/IconStarFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.24/IconStarHalfFill.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.24/IconStarHalfFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.24/IconStarOutline.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.24/IconStarOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.36/IconStarFill.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.36/IconStarFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.36/IconStarHalfFill.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.36/IconStarHalfFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/Icon.36/IconStarOutline.js +5 -1
- package/cjs/components/_Icon/Icons/Icon.36/IconStarOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconArrowBarDown.js +5 -1
- package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconBlankDocOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconBlankDocOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconBlankOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconBlankOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconChevronDown.js +5 -1
- package/cjs/components/_Icon/Icons/IconChevronDown.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconChevronDownFill.js +5 -1
- package/cjs/components/_Icon/Icons/IconChevronDownFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconClose.js +5 -1
- package/cjs/components/_Icon/Icons/IconClose.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconCross.js +5 -1
- package/cjs/components/_Icon/Icons/IconCross.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconCrossThin.js +5 -1
- package/cjs/components/_Icon/Icons/IconCrossThin.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureDownWithOffset.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureDownWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureLeft.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureLeft.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureLeftWithOffset.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureLeftWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureRight.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureRight.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureRightWithOffset.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureRightWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDisclosureUpWithOffset.js +5 -1
- package/cjs/components/_Icon/Icons/IconDisclosureUpWithOffset.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconDone.js +5 -1
- package/cjs/components/_Icon/Icons/IconDone.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconFolder.js +5 -1
- package/cjs/components/_Icon/Icons/IconFolder.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +5 -1
- package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconMinus.js +5 -1
- package/cjs/components/_Icon/Icons/IconMinus.js.map +1 -1
- package/cjs/components/_Icon/Icons/IconPlus.js +5 -1
- package/cjs/components/_Icon/Icons/IconPlus.js.map +1 -1
- package/cjs/engines/common.js +6 -2
- package/cjs/engines/common.js.map +1 -1
- package/cjs/engines/linaria.js +5 -1
- package/cjs/engines/linaria.js.map +1 -1
- package/cjs/utils/datejs.js +11 -4
- package/cjs/utils/datejs.js.map +1 -1
- package/cjs/utils/fixedForwardRef.js +5 -1
- package/cjs/utils/fixedForwardRef.js.map +1 -1
- package/cjs/utils/react.js +7 -2
- package/cjs/utils/react.js.map +1 -1
- package/package.json +2 -2
@@ -13,6 +13,10 @@ var clearSelection = require('./utils/clearSelection.js');
|
|
13
13
|
var selectText = require('./utils/selectText.js');
|
14
14
|
var constants = require('../../utils/constants.js');
|
15
15
|
|
16
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
17
|
+
|
18
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
19
|
+
|
16
20
|
var _excluded = ["textComponent", "value", "icon", "maxLength", "spellCheck", "placeholder", "name", "onChange", "onBlur", "onPaste"];
|
17
21
|
var editableRoot = function editableRoot(typographyVariants) {
|
18
22
|
return function (Root) {
|
@@ -103,7 +107,7 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
103
107
|
}
|
104
108
|
inputRef.current.textContent = value;
|
105
109
|
}, [value, textComponent]);
|
106
|
-
return /*#__PURE__*/
|
110
|
+
return /*#__PURE__*/React__default.default.createElement(Root, props, /*#__PURE__*/React__default.default.createElement(Component, {
|
107
111
|
ref: innerRef,
|
108
112
|
className: Editable_tokens.classes.editableTextBox,
|
109
113
|
role: "textbox",
|
@@ -115,13 +119,13 @@ var editableRoot = function editableRoot(typographyVariants) {
|
|
115
119
|
onFocus: handleFocus,
|
116
120
|
onKeyDown: handleKeyDown,
|
117
121
|
"aria-label": placeholder
|
118
|
-
}), ((_prevValueRef$current = prevValueRef.current) === null || _prevValueRef$current === void 0 ? void 0 : _prevValueRef$current.length) === 0 && !isEditing && /*#__PURE__*/
|
122
|
+
}), ((_prevValueRef$current = prevValueRef.current) === null || _prevValueRef$current === void 0 ? void 0 : _prevValueRef$current.length) === 0 && !isEditing && /*#__PURE__*/React__default.default.createElement(Component, null, /*#__PURE__*/React__default.default.createElement(Editable_styles.StyledPlacehpolder, {
|
119
123
|
onClick: handleEditClick
|
120
|
-
}, placeholder)), /*#__PURE__*/
|
124
|
+
}, placeholder)), /*#__PURE__*/React__default.default.createElement(Editable_styles.StyledInput, {
|
121
125
|
type: "hidden",
|
122
126
|
value: prevValueRef.current,
|
123
127
|
name: name
|
124
|
-
}), /*#__PURE__*/
|
128
|
+
}), /*#__PURE__*/React__default.default.createElement(Editable_styles.EditButton, {
|
125
129
|
onClick: handleEditClick,
|
126
130
|
isHidden: isEditing
|
127
131
|
}, icon));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Editable.js","sources":["../../../src/components/Editable/Editable.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport type {\n ChangeEvent,\n ClipboardEvent,\n FocusEvent,\n ClipboardEventHandler,\n FocusEventHandler,\n FormEventHandler,\n KeyboardEventHandler,\n} from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\nimport { constants } from '../../utils';\n\nimport type { EditableProps, TypographyVariants } from './Editable.types';\nimport { clearSelection, selectText } from './utils';\nimport { classes } from './Editable.tokens';\nimport { base, EditButton, StyledInput, StyledPlacehpolder } from './Editable.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\n\nexport const editableRoot = (typographyVariants: TypographyVariants) => (\n Root: RootProps<HTMLSpanElement, Omit<EditableProps<typeof typographyVariants>, 'textComponent'>>,\n) =>\n forwardRef<HTMLInputElement, EditableProps<typeof typographyVariants>>(\n (\n {\n textComponent,\n value,\n icon,\n maxLength,\n spellCheck = 'false',\n placeholder,\n name,\n onChange,\n onBlur,\n onPaste,\n ...props\n },\n outerRef,\n ) => {\n const Component = textComponent;\n\n const [isEditing, setIsEditing] = useState(false);\n\n const inputRef = useRef<HTMLDivElement>(null);\n const innerRef = useForkRef(inputRef, outerRef);\n\n const prevValueRef = useRef(value || '');\n\n const handlePaste: ClipboardEventHandler<HTMLDivElement> = (e) => {\n if (!inputRef.current) {\n return;\n }\n\n e.preventDefault();\n\n const text = e.clipboardData.getData('text/plain').replace(/[\\n\\r]/gi, '');\n\n if (document.queryCommandSupported('insertText')) {\n document.execCommand('insertText', false, text);\n } else {\n try {\n navigator.clipboard.writeText(text);\n } catch {\n inputRef.current.textContent = text;\n }\n }\n\n if (onPaste) {\n onPaste(e as ClipboardEvent<HTMLInputElement>);\n }\n };\n\n const handleBlur: FocusEventHandler<HTMLDivElement> = (e) => {\n setIsEditing(false);\n\n clearSelection();\n\n // NOTE: Remove <br> tag inserted by Safari\n const editableElement = inputRef.current;\n if (editableElement && editableElement.innerHTML === '<br>') {\n editableElement.innerHTML = '';\n }\n\n if (onBlur) {\n onBlur(e as FocusEvent<HTMLInputElement>);\n }\n };\n\n const handleFocus: FocusEventHandler = () => {\n setIsEditing(true);\n\n inputRef.current && selectText(inputRef.current);\n };\n\n const handleEditClick = () => {\n inputRef.current?.focus();\n };\n\n const handleKeyDown: KeyboardEventHandler = (e) => {\n if ([constants.keyCodes.Enter, constants.keyCodes.Escape].includes(e.keyCode)) {\n inputRef.current?.blur();\n }\n };\n\n const handleChange: FormEventHandler = (e) => {\n if (!inputRef.current) {\n return;\n }\n\n const contentLength = inputRef.current.textContent?.length || 0;\n\n if (!maxLength || contentLength <= maxLength) {\n prevValueRef.current = inputRef.current.textContent || '';\n\n onChange && onChange(e as ChangeEvent<HTMLInputElement>);\n } else {\n inputRef.current.textContent = prevValueRef.current;\n }\n };\n\n useEffect(() => {\n if (!inputRef.current || typeof value === 'undefined' || value === inputRef.current.textContent) {\n return;\n }\n\n inputRef.current.textContent = value;\n }, [value, textComponent]);\n\n return (\n <Root {...props}>\n <Component\n ref={innerRef}\n className={classes.editableTextBox}\n role=\"textbox\"\n spellCheck={spellCheck}\n contentEditable\n onPaste={handlePaste}\n onInput={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onKeyDown={handleKeyDown}\n aria-label={placeholder}\n />\n {prevValueRef.current?.length === 0 && !isEditing && (\n <Component>\n <StyledPlacehpolder onClick={handleEditClick}>{placeholder}</StyledPlacehpolder>\n </Component>\n )}\n <StyledInput type=\"hidden\" value={prevValueRef.current} name={name} />\n <EditButton onClick={handleEditClick} isHidden={isEditing}>\n {icon}\n </EditButton>\n </Root>\n );\n },\n );\n\nexport const editableConfig = (typographyVariants: TypographyVariants) => ({\n name: 'Editable',\n tag: 'span',\n layout: editableRoot(typographyVariants),\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n});\n"],"names":["editableRoot","typographyVariants","Root","forwardRef","_ref","outerRef","_prevValueRef$current","textComponent","value","icon","maxLength","_ref$spellCheck","spellCheck","placeholder","name","onChange","onBlur","onPaste","props","_objectWithoutProperties","_excluded","Component","_useState","useState","_useState2","_slicedToArray","isEditing","setIsEditing","inputRef","useRef","innerRef","useForkRef","prevValueRef","handlePaste","e","current","preventDefault","text","clipboardData","getData","replace","document","queryCommandSupported","execCommand","navigator","clipboard","writeText","_unused","textContent","handleBlur","clearSelection","editableElement","innerHTML","handleFocus","selectText","handleEditClick","_inputRef$current","focus","handleKeyDown","constants","Enter","Escape","includes","keyCode","_inputRef$current2","blur","handleChange","_inputRef$current$tex","contentLength","length","useEffect","React","createElement","ref","className","classes","editableTextBox","role","contentEditable","onInput","onFocus","onKeyDown","StyledPlacehpolder","onClick","StyledInput","type","EditButton","isHidden","editableConfig","tag","layout","base","variations","view","css","viewCSS","size","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;IAsBaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,kBAAsC,EAAA;AAAA,EAAA,OAAK,UACpEC,IAAiG,EAAA;AAAA,IAAA,oBAEjGC,gBAAU,CACN,UAAAC,IAAA,EAcIC,QAAQ,EACP;AAAA,MAAA,IAAAC,qBAAA,CAAA;AAAA,MAAA,IAbGC,aAAa,GAAAH,IAAA,CAAbG,aAAa;QACbC,KAAK,GAAAJ,IAAA,CAALI,KAAK;QACLC,IAAI,GAAAL,IAAA,CAAJK,IAAI;QACJC,SAAS,GAAAN,IAAA,CAATM,SAAS;QAAAC,eAAA,GAAAP,IAAA,CACTQ,UAAU;AAAVA,QAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,OAAO,GAAAA,eAAA;QACpBE,WAAW,GAAAT,IAAA,CAAXS,WAAW;QACXC,IAAI,GAAAV,IAAA,CAAJU,IAAI;QACJC,QAAQ,GAAAX,IAAA,CAARW,QAAQ;QACRC,MAAM,GAAAZ,IAAA,CAANY,MAAM;QACNC,OAAO,GAAAb,IAAA,CAAPa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AcA,CAAIvF,kBAAsC,EAAA;EAAA,OAAM;AACvEa,IAAAA,IAAI,EAAE,UAAU;AAChB2E,IAAAA,GAAG,EAAE,MAAM;AACXC,IAAAA,MAAM,EAAE1F,YAAY,CAAmB,CAAC;AACxC2F,IAAAA,IAAI,EAAJA,oBAAI;AACJC,IAAAA,UAAU,EAAE;AACRC,MAAAA,IAAI,EAAE;AACFC,QAAAA,GAAG,EAAEC,SAAAA;OACR;AACDC,MAAAA,IAAI,EAAE;AACFF,QAAAA,GAAG,EAAEG,WAAAA;AACT,OAAA;KACH;AACDC,IAAAA,QAAQ,EAAE;AACNL,MAAAA,IAAI,EAAE,SAAS;AACfG,MAAAA,IAAI,EAAE,GAAA;AACV,KAAA;GACH,CAAA;AAAA;;;;;"}
|
1
|
+
{"version":3,"file":"Editable.js","sources":["../../../src/components/Editable/Editable.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport type {\n ChangeEvent,\n ClipboardEvent,\n FocusEvent,\n ClipboardEventHandler,\n FocusEventHandler,\n FormEventHandler,\n KeyboardEventHandler,\n} from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\nimport { constants } from '../../utils';\n\nimport type { EditableProps, TypographyVariants } from './Editable.types';\nimport { clearSelection, selectText } from './utils';\nimport { classes } from './Editable.tokens';\nimport { base, EditButton, StyledInput, StyledPlacehpolder } from './Editable.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\n\nexport const editableRoot = (typographyVariants: TypographyVariants) => (\n Root: RootProps<HTMLSpanElement, Omit<EditableProps<typeof typographyVariants>, 'textComponent'>>,\n) =>\n forwardRef<HTMLInputElement, EditableProps<typeof typographyVariants>>(\n (\n {\n textComponent,\n value,\n icon,\n maxLength,\n spellCheck = 'false',\n placeholder,\n name,\n onChange,\n onBlur,\n onPaste,\n ...props\n },\n outerRef,\n ) => {\n const Component = textComponent;\n\n const [isEditing, setIsEditing] = useState(false);\n\n const inputRef = useRef<HTMLDivElement>(null);\n const innerRef = useForkRef(inputRef, outerRef);\n\n const prevValueRef = useRef(value || '');\n\n const handlePaste: ClipboardEventHandler<HTMLDivElement> = (e) => {\n if (!inputRef.current) {\n return;\n }\n\n e.preventDefault();\n\n const text = e.clipboardData.getData('text/plain').replace(/[\\n\\r]/gi, '');\n\n if (document.queryCommandSupported('insertText')) {\n document.execCommand('insertText', false, text);\n } else {\n try {\n navigator.clipboard.writeText(text);\n } catch {\n inputRef.current.textContent = text;\n }\n }\n\n if (onPaste) {\n onPaste(e as ClipboardEvent<HTMLInputElement>);\n }\n };\n\n const handleBlur: FocusEventHandler<HTMLDivElement> = (e) => {\n setIsEditing(false);\n\n clearSelection();\n\n // NOTE: Remove <br> tag inserted by Safari\n const editableElement = inputRef.current;\n if (editableElement && editableElement.innerHTML === '<br>') {\n editableElement.innerHTML = '';\n }\n\n if (onBlur) {\n onBlur(e as FocusEvent<HTMLInputElement>);\n }\n };\n\n const handleFocus: FocusEventHandler = () => {\n setIsEditing(true);\n\n inputRef.current && selectText(inputRef.current);\n };\n\n const handleEditClick = () => {\n inputRef.current?.focus();\n };\n\n const handleKeyDown: KeyboardEventHandler = (e) => {\n if ([constants.keyCodes.Enter, constants.keyCodes.Escape].includes(e.keyCode)) {\n inputRef.current?.blur();\n }\n };\n\n const handleChange: FormEventHandler = (e) => {\n if (!inputRef.current) {\n return;\n }\n\n const contentLength = inputRef.current.textContent?.length || 0;\n\n if (!maxLength || contentLength <= maxLength) {\n prevValueRef.current = inputRef.current.textContent || '';\n\n onChange && onChange(e as ChangeEvent<HTMLInputElement>);\n } else {\n inputRef.current.textContent = prevValueRef.current;\n }\n };\n\n useEffect(() => {\n if (!inputRef.current || typeof value === 'undefined' || value === inputRef.current.textContent) {\n return;\n }\n\n inputRef.current.textContent = value;\n }, [value, textComponent]);\n\n return (\n <Root {...props}>\n <Component\n ref={innerRef}\n className={classes.editableTextBox}\n role=\"textbox\"\n spellCheck={spellCheck}\n contentEditable\n onPaste={handlePaste}\n onInput={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onKeyDown={handleKeyDown}\n aria-label={placeholder}\n />\n {prevValueRef.current?.length === 0 && !isEditing && (\n <Component>\n <StyledPlacehpolder onClick={handleEditClick}>{placeholder}</StyledPlacehpolder>\n </Component>\n )}\n <StyledInput type=\"hidden\" value={prevValueRef.current} name={name} />\n <EditButton onClick={handleEditClick} isHidden={isEditing}>\n {icon}\n </EditButton>\n </Root>\n );\n },\n );\n\nexport const editableConfig = (typographyVariants: TypographyVariants) => ({\n name: 'Editable',\n tag: 'span',\n layout: editableRoot(typographyVariants),\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n});\n"],"names":["editableRoot","typographyVariants","Root","forwardRef","_ref","outerRef","_prevValueRef$current","textComponent","value","icon","maxLength","_ref$spellCheck","spellCheck","placeholder","name","onChange","onBlur","onPaste","props","_objectWithoutProperties","_excluded","Component","_useState","useState","_useState2","_slicedToArray","isEditing","setIsEditing","inputRef","useRef","innerRef","useForkRef","prevValueRef","handlePaste","e","current","preventDefault","text","clipboardData","getData","replace","document","queryCommandSupported","execCommand","navigator","clipboard","writeText","_unused","textContent","handleBlur","clearSelection","editableElement","innerHTML","handleFocus","selectText","handleEditClick","_inputRef$current","focus","handleKeyDown","constants","Enter","Escape","includes","keyCode","_inputRef$current2","blur","handleChange","_inputRef$current$tex","contentLength","length","useEffect","React","createElement","ref","className","classes","editableTextBox","role","contentEditable","onInput","onFocus","onKeyDown","StyledPlacehpolder","onClick","StyledInput","type","EditButton","isHidden","editableConfig","tag","layout","base","variations","view","css","viewCSS","size","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;IAsBaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,kBAAsC,EAAA;AAAA,EAAA,OAAK,UACpEC,IAAiG,EAAA;AAAA,IAAA,o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ACnD,SAAS,EACNkD,IAAAA,eAAAA,sBAAA,CAAAC,aAAA,CAACU,kCAAkB,EAAA;AAACC,QAAAA,OAAO,EAAE5B,eAAAA;OAAkB1C,EAAAA,WAAgC,CACxE,CACd,eACD0D,sBAAA,CAAAC,aAAA,CAACY,2BAAW,EAAA;AAACC,QAAAA,IAAI,EAAC,QAAQ;QAAC7E,KAAK,EAAEwB,YAAY,CAACG,OAAQ;AAACrB,QAAAA,IAAI,EAAEA,IAAAA;AAAK,OAAE,CAAC,eACtEyD,sBAAA,CAAAC,aAAA,CAACc,0BAAU,EAAA;AAACH,QAAAA,OAAO,EAAE5B,eAAgB;AAACgC,QAAAA,QAAQ,EAAE7D,SAAAA;OAC3CjB,EAAAA,IACO,CACV,CAAC,CAAA;AAEf,KACJ,CAAC,CAAA;AAAA,GAAA,CAAA;AAAA,EAAA;IAEQ+E,cAAc,GAAG,SAAjBA,cAAcA,CAAIvF,kBAAsC,EAAA;EAAA,OAAM;AACvEa,IAAAA,IAAI,EAAE,UAAU;AAChB2E,IAAAA,GAAG,EAAE,MAAM;AACXC,IAAAA,MAAM,EAAE1F,YAAY,CAAmB,CAAC;AACxC2F,IAAAA,IAAI,EAAJA,oBAAI;AACJC,IAAAA,UAAU,EAAE;AACRC,MAAAA,IAAI,EAAE;AACFC,QAAAA,GAAG,EAAEC,SAAAA;OACR;AACDC,MAAAA,IAAI,EAAE;AACFF,QAAAA,GAAG,EAAEG,WAAAA;AACT,OAAA;KACH;AACDC,IAAAA,QAAQ,EAAE;AACNL,MAAAA,IAAI,EAAE,SAAS;AACfG,MAAAA,IAAI,EAAE,GAAA;AACV,KAAA;GACH,CAAA;AAAA;;;;;"}
|
@@ -6,6 +6,10 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
|
|
6
6
|
var React = require('react');
|
7
7
|
var EmptyState_styles = require('./EmptyState.styles.js');
|
8
8
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
+
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
12
|
+
|
9
13
|
/**
|
10
14
|
* Компонент для альтернативного показа содержимого выпадающего списка.
|
11
15
|
*/
|
@@ -15,9 +19,9 @@ var emptyStateRoot = function emptyStateRoot(Root) {
|
|
15
19
|
description = props.description,
|
16
20
|
buttonText = props.buttonText,
|
17
21
|
buttonAction = props.buttonAction;
|
18
|
-
return /*#__PURE__*/
|
22
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({}, props, {
|
19
23
|
ref: ref
|
20
|
-
}), icon && /*#__PURE__*/
|
24
|
+
}), icon && /*#__PURE__*/React__default.default.createElement(EmptyState_styles.IconWrapper, null, icon), /*#__PURE__*/React__default.default.createElement(EmptyState_styles.Description, null, description), buttonText && /*#__PURE__*/React__default.default.createElement(EmptyState_styles.StyledButton, {
|
21
25
|
stretching: "filled",
|
22
26
|
onClick: buttonAction
|
23
27
|
}, buttonText));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmptyState.js","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\n\nimport { Props } from './EmptyState.types';\nimport { base, StyledButton, IconWrapper, Description } from './EmptyState.styles';\n\n/**\n * Компонент для альтернативного показа содержимого выпадающего списка.\n */\nexport const emptyStateRoot = (Root: RootProps<HTMLDivElement, Props>) =>\n forwardRef<HTMLDivElement, Props>((props, ref) => {\n const { icon, description, buttonText, buttonAction } = props;\n\n return (\n <Root {...props} ref={ref}>\n {icon && <IconWrapper>{icon}</IconWrapper>}\n\n <Description>{description}</Description>\n\n {buttonText && (\n <StyledButton stretching=\"filled\" onClick={buttonAction}>\n {buttonText}\n </StyledButton>\n )}\n </Root>\n );\n });\n\nexport const emptyStateConfig = {\n name: 'EmptyState',\n tag: 'div',\n layout: emptyStateRoot,\n base,\n defaults: {\n size: 'l',\n },\n variations: {},\n};\n"],"names":["emptyStateRoot","Root","forwardRef","props","ref","icon","description","buttonText","buttonAction","React","createElement","_extends","IconWrapper","Description","StyledButton","stretching","onClick","emptyStateConfig","name","tag","layout","base","defaults","size","variations"],"mappings":"
|
1
|
+
{"version":3,"file":"EmptyState.js","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\n\nimport { Props } from './EmptyState.types';\nimport { base, StyledButton, IconWrapper, Description } from './EmptyState.styles';\n\n/**\n * Компонент для альтернативного показа содержимого выпадающего списка.\n */\nexport const emptyStateRoot = (Root: RootProps<HTMLDivElement, Props>) =>\n forwardRef<HTMLDivElement, Props>((props, ref) => {\n const { icon, description, buttonText, buttonAction } = props;\n\n return (\n <Root {...props} ref={ref}>\n {icon && <IconWrapper>{icon}</IconWrapper>}\n\n <Description>{description}</Description>\n\n {buttonText && (\n <StyledButton stretching=\"filled\" onClick={buttonAction}>\n {buttonText}\n </StyledButton>\n )}\n </Root>\n );\n });\n\nexport const emptyStateConfig = {\n name: 'EmptyState',\n tag: 'div',\n layout: emptyStateRoot,\n base,\n defaults: {\n size: 'l',\n },\n variations: {},\n};\n"],"names":["emptyStateRoot","Root","forwardRef","props","ref","icon","description","buttonText","buttonAction","React","createElement","_extends","IconWrapper","Description","StyledButton","stretching","onClick","emptyStateConfig","name","tag","layout","base","defaults","size","variations"],"mappings":";;;;;;;;;;;;AAOA;AACA;AACA;IACaA,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,IAAsC,EAAA;AAAA,EAAA,oBACjEC,gBAAU,CAAwB,UAACC,KAAK,EAAEC,GAAG,EAAK;AAC9C,IAAA,IAAQC,IAAI,GAA4CF,KAAK,CAArDE,IAAI;MAAEC,WAAW,GAA+BH,KAAK,CAA/CG,WAAW;MAAEC,UAAU,GAAmBJ,KAAK,CAAlCI,UAAU;MAAEC,YAAY,GAAKL,KAAK,CAAtBK,YAAY,CAAA;IAEnD,oBACIC,sBAAA,CAAAC,aAAA,CAACT,IAAI,EAAAU,iCAAA,KAAKR,KAAK,EAAA;AAAEC,MAAAA,GAAG,EAAEA,GAAAA;KACjBC,CAAAA,EAAAA,IAAI,iBAAII,sBAAA,CAAAC,aAAA,CAACE,6BAAW,EAAEP,IAAAA,EAAAA,IAAkB,CAAC,eAE1CI,sBAAA,CAAAC,aAAA,CAACG,6BAAW,EAAEP,IAAAA,EAAAA,WAAyB,CAAC,EAEvCC,UAAU,iBACPE,sBAAA,CAAAC,aAAA,CAACI,8BAAY,EAAA;AAACC,MAAAA,UAAU,EAAC,QAAQ;AAACC,MAAAA,OAAO,EAAER,YAAAA;KACtCD,EAAAA,UACS,CAEhB,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMU,gBAAgB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,YAAY;AAClBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpB,cAAc;AACtBqB,EAAAA,IAAI,EAAJA,sBAAI;AACJC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE,EAAC;AACjB;;;;;"}
|
@@ -8,6 +8,12 @@ var cls = require('classnames');
|
|
8
8
|
var chunk = require('lodash.chunk');
|
9
9
|
var Flow_styles = require('./Flow.styles.js');
|
10
10
|
|
11
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
12
|
+
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
14
|
+
var cls__default = /*#__PURE__*/_interopDefault(cls);
|
15
|
+
var chunk__default = /*#__PURE__*/_interopDefault(chunk);
|
16
|
+
|
11
17
|
var _excluded = ["children", "className", "style", "orientation", "arrangement", "alignment", "mainAxisGap", "crossAxisGap", "minColWidth", "itemsPerLine"];
|
12
18
|
var flowRoot = function flowRoot(Root) {
|
13
19
|
return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
@@ -35,13 +41,13 @@ var flowRoot = function flowRoot(Root) {
|
|
35
41
|
innerMainAxisGap = '0';
|
36
42
|
}
|
37
43
|
var hasChunks = Number(itemsPerLine) > 0;
|
38
|
-
var chunks = hasChunks ?
|
44
|
+
var chunks = hasChunks ? chunk__default.default(React__default.default.Children.toArray(children), itemsPerLine) : [];
|
39
45
|
var gap = isVertical ? "".concat(innerMainAxisGap, " ").concat(innerCrossAxisGap) : "".concat(innerCrossAxisGap, " ").concat(innerMainAxisGap);
|
40
46
|
var wrapperGap = isVertical ? "0 ".concat(innerCrossAxisGap) : "".concat(innerCrossAxisGap, " 0");
|
41
47
|
var lineGap = isVertical ? "".concat(innerMainAxisGap, " 0") : "0 ".concat(innerMainAxisGap);
|
42
|
-
return /*#__PURE__*/
|
48
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
43
49
|
ref: ref,
|
44
|
-
className:
|
50
|
+
className: cls__default.default(className, {
|
45
51
|
vertical: isVertical,
|
46
52
|
grid: hasMinWidth,
|
47
53
|
elastic: hasMinWidth,
|
@@ -55,8 +61,8 @@ var flowRoot = function flowRoot(Root) {
|
|
55
61
|
"data-arrangement": arrangement,
|
56
62
|
"data-alignment": alignment
|
57
63
|
}, rest), hasChunks && chunks.map(function (chunkNode) {
|
58
|
-
return /*#__PURE__*/
|
59
|
-
className:
|
64
|
+
return /*#__PURE__*/React__default.default.createElement(Flow_styles.Line, {
|
65
|
+
className: cls__default.default({
|
60
66
|
vertical: isVertical,
|
61
67
|
grid: needGrid,
|
62
68
|
elastic: hasMinWidth
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Flow.js","sources":["../../../src/components/Flow/Flow.tsx"],"sourcesContent":["import React, { CSSProperties, forwardRef } from 'react';\nimport cls from 'classnames';\nimport chunk from 'lodash.chunk';\n\nimport { RootProps } from '../../engines';\n\nimport { base, Line } from './Flow.styles';\nimport { FlowProps } from './Flow.types';\n\ntype TempFlowTypes = FlowProps & {\n /**\n * Минимальный размер колонки для эластичной сетки с динамическим количеством растянутых столбцов\n * через `repeat(auto-fill, minmax(${minColWidth}, auto))`\n */\n minColWidth?: string;\n};\n\nexport const flowRoot = (Root: RootProps<HTMLDivElement, TempFlowTypes>) =>\n forwardRef<HTMLDivElement, TempFlowTypes>(\n (\n {\n children,\n className,\n style,\n orientation = 'horizontal',\n arrangement,\n alignment,\n mainAxisGap = '0',\n crossAxisGap = '0',\n minColWidth = 'auto',\n itemsPerLine,\n ...rest\n },\n ref,\n ) => {\n const isVertical = orientation === 'vertical';\n const hasMinWidth = Boolean(minColWidth && minColWidth !== 'auto');\n const needGrid = Boolean(Number(itemsPerLine) > 0 || hasMinWidth);\n\n let innerMainAxisGap =\n typeof mainAxisGap === 'number' || !Number.isNaN(+mainAxisGap) ? `${mainAxisGap || 0}px` : mainAxisGap;\n const innerCrossAxisGap =\n typeof crossAxisGap === 'number' || !Number.isNaN(+crossAxisGap)\n ? `${crossAxisGap || 0}px`\n : crossAxisGap;\n\n if (arrangement === 'spaceBetween' || arrangement === 'spaceAround') {\n innerMainAxisGap = '0';\n }\n\n const hasChunks = Number(itemsPerLine) > 0;\n const chunks: React.ReactNode[] = hasChunks ? chunk(React.Children.toArray(children), itemsPerLine) : [];\n\n const gap = isVertical\n ? `${innerMainAxisGap} ${innerCrossAxisGap}`\n : `${innerCrossAxisGap} ${innerMainAxisGap}`;\n\n const wrapperGap = isVertical ? `0 ${innerCrossAxisGap}` : `${innerCrossAxisGap} 0`;\n const lineGap = isVertical ? `${innerMainAxisGap} 0` : `0 ${innerMainAxisGap}`;\n\n return (\n <Root\n ref={ref}\n className={cls(className, {\n vertical: isVertical,\n grid: hasMinWidth,\n elastic: hasMinWidth,\n hasChunks,\n })}\n style={\n {\n ...style,\n '--plasma-private-gap': hasChunks ? wrapperGap : gap,\n '--plasma-private-items': String(itemsPerLine),\n '--plasma-private-min-width': String(minColWidth),\n } as CSSProperties & {\n '--plasma-private-gap': string;\n '--plasma-private-items': string;\n '--plasma-private-min-width': string;\n }\n }\n data-arrangement={arrangement}\n data-alignment={alignment}\n {...rest}\n >\n {hasChunks &&\n chunks.map((chunkNode) => (\n <Line\n className={cls({\n vertical: isVertical,\n grid: needGrid,\n elastic: hasMinWidth,\n })}\n style={\n {\n '--plasma-private-gap': lineGap,\n } as CSSProperties & {\n '--plasma-private-gap': string;\n }\n }\n data-arrangement={arrangement}\n data-alignment={alignment}\n >\n {chunkNode}\n </Line>\n ))}\n {!hasChunks && children}\n </Root>\n );\n },\n );\n\nexport const flowConfig = {\n name: 'Flow',\n tag: 'div',\n layout: flowRoot,\n base,\n defaults: {},\n variations: {},\n};\n"],"names":["flowRoot","Root","forwardRef","_ref","ref","children","className","style","_ref$orientation","orientation","arrangement","alignment","_ref$mainAxisGap","mainAxisGap","_ref$crossAxisGap","crossAxisGap","_ref$minColWidth","minColWidth","itemsPerLine","rest","_objectWithoutProperties","_excluded","isVertical","hasMinWidth","Boolean","needGrid","Number","innerMainAxisGap","isNaN","concat","innerCrossAxisGap","hasChunks","chunks","chunk","React","Children","toArray","gap","wrapperGap","lineGap","createElement","_extends","cls","vertical","grid","elastic","_objectSpread","String","map","chunkNode","Line","flowConfig","name","tag","layout","base","defaults","variations"],"mappings":"
|
1
|
+
{"version":3,"file":"Flow.js","sources":["../../../src/components/Flow/Flow.tsx"],"sourcesContent":["import React, { CSSProperties, forwardRef } from 'react';\nimport cls from 'classnames';\nimport chunk from 'lodash.chunk';\n\nimport { RootProps } from '../../engines';\n\nimport { base, Line } from './Flow.styles';\nimport { FlowProps } from './Flow.types';\n\ntype TempFlowTypes = FlowProps & {\n /**\n * Минимальный размер колонки для эластичной сетки с динамическим количеством растянутых столбцов\n * через `repeat(auto-fill, minmax(${minColWidth}, auto))`\n */\n minColWidth?: string;\n};\n\nexport const flowRoot = (Root: RootProps<HTMLDivElement, TempFlowTypes>) =>\n forwardRef<HTMLDivElement, TempFlowTypes>(\n (\n {\n children,\n className,\n style,\n orientation = 'horizontal',\n arrangement,\n alignment,\n mainAxisGap = '0',\n crossAxisGap = '0',\n minColWidth = 'auto',\n itemsPerLine,\n ...rest\n },\n ref,\n ) => {\n const isVertical = orientation === 'vertical';\n const hasMinWidth = Boolean(minColWidth && minColWidth !== 'auto');\n const needGrid = Boolean(Number(itemsPerLine) > 0 || hasMinWidth);\n\n let innerMainAxisGap =\n typeof mainAxisGap === 'number' || !Number.isNaN(+mainAxisGap) ? `${mainAxisGap || 0}px` : mainAxisGap;\n const innerCrossAxisGap =\n typeof crossAxisGap === 'number' || !Number.isNaN(+crossAxisGap)\n ? `${crossAxisGap || 0}px`\n : crossAxisGap;\n\n if (arrangement === 'spaceBetween' || arrangement === 'spaceAround') {\n innerMainAxisGap = '0';\n }\n\n const hasChunks = Number(itemsPerLine) > 0;\n const chunks: React.ReactNode[] = hasChunks ? chunk(React.Children.toArray(children), itemsPerLine) : [];\n\n const gap = isVertical\n ? `${innerMainAxisGap} ${innerCrossAxisGap}`\n : `${innerCrossAxisGap} ${innerMainAxisGap}`;\n\n const wrapperGap = isVertical ? `0 ${innerCrossAxisGap}` : `${innerCrossAxisGap} 0`;\n const lineGap = isVertical ? `${innerMainAxisGap} 0` : `0 ${innerMainAxisGap}`;\n\n return (\n <Root\n ref={ref}\n className={cls(className, {\n vertical: isVertical,\n grid: hasMinWidth,\n elastic: hasMinWidth,\n hasChunks,\n })}\n style={\n {\n ...style,\n '--plasma-private-gap': hasChunks ? wrapperGap : gap,\n '--plasma-private-items': String(itemsPerLine),\n '--plasma-private-min-width': String(minColWidth),\n } as CSSProperties & {\n '--plasma-private-gap': string;\n '--plasma-private-items': string;\n '--plasma-private-min-width': string;\n }\n }\n data-arrangement={arrangement}\n data-alignment={alignment}\n {...rest}\n >\n {hasChunks &&\n chunks.map((chunkNode) => (\n <Line\n className={cls({\n vertical: isVertical,\n grid: needGrid,\n elastic: hasMinWidth,\n })}\n style={\n {\n '--plasma-private-gap': lineGap,\n } as CSSProperties & {\n '--plasma-private-gap': string;\n }\n }\n data-arrangement={arrangement}\n data-alignment={alignment}\n >\n {chunkNode}\n </Line>\n ))}\n {!hasChunks && children}\n </Root>\n );\n },\n );\n\nexport const flowConfig = {\n name: 'Flow',\n tag: 'div',\n layout: flowRoot,\n base,\n defaults: {},\n variations: {},\n};\n"],"names":["flowRoot","Root","forwardRef","_ref","ref","children","className","style","_ref$orientation","orientation","arrangement","alignment","_ref$mainAxisGap","mainAxisGap","_ref$crossAxisGap","crossAxisGap","_ref$minColWidth","minColWidth","itemsPerLine","rest","_objectWithoutProperties","_excluded","isVertical","hasMinWidth","Boolean","needGrid","Number","innerMainAxisGap","isNaN","concat","innerCrossAxisGap","hasChunks","chunks","chunk","React","Children","toArray","gap","wrapperGap","lineGap","createElement","_extends","cls","vertical","grid","elastic","_objectSpread","String","map","chunkNode","Line","flowConfig","name","tag","layout","base","defaults","variations"],"mappings":";;;;;;;;;;;;;;;;;IAiBaA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACnEC,gBAAU,CACN,UAAAC,IAAA,EAcIC,GAAG,EACF;AAAA,IAAA,IAbGC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;MACRC,SAAS,GAAAH,IAAA,CAATG,SAAS;MACTC,KAAK,GAAAJ,IAAA,CAALI,KAAK;MAAAC,gBAAA,GAAAL,IAAA,CACLM,WAAW;AAAXA,MAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,YAAY,GAAAA,gBAAA;MAC1BE,WAAW,GAAAP,IAAA,CAAXO,WAAW;MACXC,SAAS,GAAAR,IAAA,CAATQ,SAAS;MAAAC,gBAAA,GAAAT,IAAA,CACTU,WAAW;AAAXA,MAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,GAAG,GAAAA,gBAAA;MAAAE,iBAAA,GAAAX,IAAA,CACjBY,YAAY;AAAZA,MAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,GAAG,GAAAA,i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AAG,CAAC,UAACC,SAAS,EAAA;AAAA,MAAA,oBACjBf,sBAAA,CAAAM,aAAA,CAACU,gBAAI,EAAA;QACD5C,SAAS,EAAEoC,oBAAG,CAAC;AACXC,UAAAA,QAAQ,EAAErB,UAAU;AACpBsB,UAAAA,IAAI,EAAEnB,QAAQ;AACdoB,UAAAA,OAAO,EAAEtB,WAAAA;AACb,SAAC,CAAE;AACHhB,QAAAA,KAAK,EACD;AACI,UAAA,sBAAsB,EAAEgC,OAAAA;SAI/B;AACD,QAAA,kBAAA,EAAkB7B,WAAY;QAC9B,gBAAgBC,EAAAA,SAAAA;AAAU,OAAA,EAEzBsC,SACC,CAAC,CAAA;AAAA,KACV,CAAC,EACL,CAAClB,SAAS,IAAI1B,QACb,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM8C,UAAU,GAAG;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEtD,QAAQ;AAChBuD,EAAAA,IAAI,EAAJA,gBAAI;EACJC,QAAQ,EAAE,EAAE;AACZC,EAAAA,UAAU,EAAE,EAAC;AACjB;;;;;"}
|
@@ -9,6 +9,10 @@ var Grid_styles = require('./Grid.styles.js');
|
|
9
9
|
var base = require('./variations/_view/base.js');
|
10
10
|
var index$1 = require('./utils/index.js');
|
11
11
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
+
|
14
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
15
|
+
|
12
16
|
var _excluded = ["children", "view", "className", "style", "maxWidth"];
|
13
17
|
var gridRoot = function gridRoot(Root) {
|
14
18
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
@@ -23,7 +27,7 @@ var gridRoot = function gridRoot(Root) {
|
|
23
27
|
var maxWidthToken = maxWidthValue || maxWidth ? {
|
24
28
|
'--plasma_private-grid-max-width': maxWidth || maxWidthValue
|
25
29
|
} : {};
|
26
|
-
return /*#__PURE__*/
|
30
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
27
31
|
ref: ref,
|
28
32
|
view: view,
|
29
33
|
className: index.cx(viewClass, className),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Grid.js","sources":["../../../src/components/Grid/Grid.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { GridProps } from './Grid.types';\nimport { base } from './Grid.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { getGridViewClass } from './utils';\n\nexport const gridRoot = (Root: RootProps<HTMLDivElement, GridProps>) =>\n forwardRef<HTMLDivElement, GridProps>((props, ref) => {\n const { children, view, className, style, maxWidth, ...rest } = props;\n\n const viewClass = getGridViewClass(view || 'default');\n const maxWidthValue = view === 'legacy' ? '90rem' : null;\n const maxWidthToken =\n maxWidthValue || maxWidth\n ? {\n '--plasma_private-grid-max-width': maxWidth || maxWidthValue,\n }\n : {};\n\n return (\n <Root\n ref={ref}\n view={view}\n className={cx(viewClass, className)}\n style={{\n ...maxWidthToken,\n ...style,\n }}\n {...rest}\n >\n {children}\n </Root>\n );\n });\n\nexport const gridConfig = {\n name: 'Grid',\n tag: 'div',\n layout: gridRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["gridRoot","Root","forwardRef","props","ref","children","view","className","style","maxWidth","rest","_objectWithoutProperties","_excluded","viewClass","getGridViewClass","maxWidthValue","maxWidthToken","React","createElement","_extends","cx","_objectSpread","gridConfig","name","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":"
|
1
|
+
{"version":3,"file":"Grid.js","sources":["../../../src/components/Grid/Grid.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { GridProps } from './Grid.types';\nimport { base } from './Grid.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { getGridViewClass } from './utils';\n\nexport const gridRoot = (Root: RootProps<HTMLDivElement, GridProps>) =>\n forwardRef<HTMLDivElement, GridProps>((props, ref) => {\n const { children, view, className, style, maxWidth, ...rest } = props;\n\n const viewClass = getGridViewClass(view || 'default');\n const maxWidthValue = view === 'legacy' ? '90rem' : null;\n const maxWidthToken =\n maxWidthValue || maxWidth\n ? {\n '--plasma_private-grid-max-width': maxWidth || maxWidthValue,\n }\n : {};\n\n return (\n <Root\n ref={ref}\n view={view}\n className={cx(viewClass, className)}\n style={{\n ...maxWidthToken,\n ...style,\n }}\n {...rest}\n >\n {children}\n </Root>\n );\n });\n\nexport const gridConfig = {\n name: 'Grid',\n tag: 'div',\n layout: gridRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["gridRoot","Root","forwardRef","props","ref","children","view","className","style","maxWidth","rest","_objectWithoutProperties","_excluded","viewClass","getGridViewClass","maxWidthValue","maxWidthToken","React","createElement","_extends","cx","_objectSpread","gridConfig","name","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;IAUaA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,IAA0C,EAAA;AAAA,EAAA,oBAC/DC,gBAAU,CAA4B,UAACC,KAAK,EAAEC,GAAG,EAAK;AAClD,IAAA,IAAQC,QAAQ,GAAgDF,KAAK,CAA7DE,QAAQ;MAAEC,IAAI,GAA0CH,KAAK,CAAnDG,IAAI;MAAEC,SAAS,GAA+BJ,KAAK,CAA7CI,SAAS;MAAEC,KAAK,GAAwBL,KAAK,CAAlCK,KAAK;MAAEC,QAAQ,GAAcN,KAAK,CAA3BM,QAAQ;AAAKC,MAAAA,IAAI,GAAAC,iDAAA,CAAKR,KAAK,EAAAS,SAAA,CAAA,CAAA;AAErE,IAAA,IAAMC,SAAS,GAAGC,wBAAgB,CAACR,IAAI,IAAI,SAAS,CAAC,CAAA;IACrD,IAAMS,aAAa,GAAGT,IAAI,KAAK,QAAQ,GAAG,OAAO,GAAG,IAAI,CAAA;AACxD,IAAA,IAAMU,aAAa,GACfD,aAAa,IAAIN,QAAQ,GACnB;MACI,iCAAiC,EAAEA,QAAQ,IAAIM,aAAAA;KAClD,GACD,EAAE,CAAA;AAEZ,IAAA,oBACIE,sBAAA,CAAAC,aAAA,CAACjB,IAAI,EAAAkB,iCAAA,CAAA;AACDf,MAAAA,GAAG,EAAEA,GAAI;AACTE,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,SAAS,EAAEa,QAAE,CAACP,SAAS,EAAEN,SAAS,CAAE;AACpCC,MAAAA,KAAK,EAAAa,uCAAA,CAAAA,uCAAA,CACEL,EAAAA,EAAAA,aAAa,GACbR,KAAK,CAAA;KAERE,EAAAA,IAAI,CAEPL,EAAAA,QACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMiB,UAAU,GAAG;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEzB,QAAQ;AAChB0B,EAAAA,IAAI,EAAJA,gBAAI;AACJC,EAAAA,UAAU,EAAE;AACRrB,IAAAA,IAAI,EAAE;AACFsB,MAAAA,GAAG,EAAEC,SAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNxB,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
|
@@ -9,6 +9,10 @@ var index = require('../../utils/index.js');
|
|
9
9
|
var Grid_tokens = require('../../Grid.tokens.js');
|
10
10
|
var Col_styles = require('./Col.styles.js');
|
11
11
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
+
|
14
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
15
|
+
|
12
16
|
var _excluded = ["className", "style", "size", "offset"];
|
13
17
|
|
14
18
|
/**
|
@@ -26,7 +30,7 @@ var Col = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26
30
|
'--plasma_private-grid-col-default-size': size,
|
27
31
|
'--plasma_private-grid-col-default-offset': offset
|
28
32
|
};
|
29
|
-
return /*#__PURE__*/
|
33
|
+
return /*#__PURE__*/React__default.default.createElement(Col_styles.StyledCol, _rollupPluginBabelHelpers.extends({
|
30
34
|
ref: ref,
|
31
35
|
style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, defaultTokens), index.getColTokens(rest)), style),
|
32
36
|
className: index$1.cx(Grid_tokens.classes.col, className)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Col.js","sources":["../../../../../src/components/Grid/ui/Col/Col.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { cx } from '../../../../utils';\nimport { getColTokens } from '../../utils';\nimport { classes } from '../../Grid.tokens';\n\nimport type { ColProps } from './Col.types';\nimport { StyledCol } from './Col.styles';\n\n/**\n * Блок для размещения контента внутри себя.\n * По дефолту доступные пропсы для задания позиционирования:\n * smallM, mediumS, mediumM, largeS, largeM\n */\nexport const Col = forwardRef<HTMLDivElement, ColProps>((props, ref) => {\n const { className, style, size, offset, ...rest } = props;\n\n const defaultTokens = {\n '--plasma_private-grid-col-default-size': size,\n '--plasma_private-grid-col-default-offset': offset,\n };\n\n return (\n <StyledCol\n ref={ref}\n style={{\n ...defaultTokens,\n ...getColTokens(rest),\n ...style,\n }}\n className={cx(classes.col, className)}\n {...rest}\n />\n );\n});\n"],"names":["Col","forwardRef","props","ref","className","style","size","offset","rest","_objectWithoutProperties","_excluded","defaultTokens","React","createElement","StyledCol","_extends","_objectSpread","getColTokens","cx","classes","col"],"mappings":"
|
1
|
+
{"version":3,"file":"Col.js","sources":["../../../../../src/components/Grid/ui/Col/Col.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { cx } from '../../../../utils';\nimport { getColTokens } from '../../utils';\nimport { classes } from '../../Grid.tokens';\n\nimport type { ColProps } from './Col.types';\nimport { StyledCol } from './Col.styles';\n\n/**\n * Блок для размещения контента внутри себя.\n * По дефолту доступные пропсы для задания позиционирования:\n * smallM, mediumS, mediumM, largeS, largeM\n */\nexport const Col = forwardRef<HTMLDivElement, ColProps>((props, ref) => {\n const { className, style, size, offset, ...rest } = props;\n\n const defaultTokens = {\n '--plasma_private-grid-col-default-size': size,\n '--plasma_private-grid-col-default-offset': offset,\n };\n\n return (\n <StyledCol\n ref={ref}\n style={{\n ...defaultTokens,\n ...getColTokens(rest),\n ...style,\n }}\n className={cx(classes.col, className)}\n {...rest}\n />\n );\n});\n"],"names":["Col","forwardRef","props","ref","className","style","size","offset","rest","_objectWithoutProperties","_excluded","defaultTokens","React","createElement","StyledCol","_extends","_objectSpread","getColTokens","cx","classes","col"],"mappings":";;;;;;;;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACO,IAAMA,GAAG,gBAAGC,gBAAU,CAA2B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACpE,EAAA,IAAQC,SAAS,GAAmCF,KAAK,CAAjDE,SAAS;IAAEC,KAAK,GAA4BH,KAAK,CAAtCG,KAAK;IAAEC,IAAI,GAAsBJ,KAAK,CAA/BI,IAAI;IAAEC,MAAM,GAAcL,KAAK,CAAzBK,MAAM;AAAKC,IAAAA,IAAI,GAAAC,iDAAA,CAAKP,KAAK,EAAAQ,SAAA,CAAA,CAAA;AAEzD,EAAA,IAAMC,aAAa,GAAG;AAClB,IAAA,wCAAwC,EAAEL,IAAI;AAC9C,IAAA,0CAA0C,EAAEC,MAAAA;GAC/C,CAAA;AAED,EAAA,oBACIK,sBAAA,CAAAC,aAAA,CAACC,oBAAS,EAAAC,iCAAA,CAAA;AACNZ,IAAAA,GAAG,EAAEA,GAAI;AACTE,IAAAA,KAAK,EAAAW,uCAAA,CAAAA,uCAAA,CAAAA,uCAAA,CAAA,EAAA,EACEL,aAAa,CAAA,EACbM,kBAAY,CAACT,IAAI,CAAC,CAAA,EAClBH,KAAK,CACV;AACFD,IAAAA,SAAS,EAAEc,UAAE,CAACC,mBAAO,CAACC,GAAG,EAAEhB,SAAS,CAAA;GAChCI,EAAAA,IAAI,CACX,CAAC,CAAA;AAEV,CAAC;;;;"}
|
@@ -6,6 +6,10 @@ var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabel
|
|
6
6
|
var React = require('react');
|
7
7
|
var Row_styles = require('./Row.styles.js');
|
8
8
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
+
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
12
|
+
|
9
13
|
var _excluded = ["children"];
|
10
14
|
|
11
15
|
/**
|
@@ -16,7 +20,7 @@ var _excluded = ["children"];
|
|
16
20
|
var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
17
21
|
var children = props.children,
|
18
22
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
19
|
-
return /*#__PURE__*/
|
23
|
+
return /*#__PURE__*/React__default.default.createElement(Row_styles.StyledRow, _rollupPluginBabelHelpers.extends({
|
20
24
|
ref: ref
|
21
25
|
}, rest), children);
|
22
26
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Row.js","sources":["../../../../../src/components/Grid/ui/Row/Row.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { HTMLAttributes } from 'react';\n\nimport { StyledRow } from './Row.styles';\n\n/**\n * Блок для размещения колонок (``<Col />``) по горизонтали.\n * Блок нельзя вкладывать сам в себя, но можно чередовать далее по дереву с использованием ``Col``.\n * Стилизованный компонент, обладающий всеми свойствами ``div``.\n */\nexport const Row = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>((props, ref) => {\n const { children, ...rest } = props;\n\n return (\n <StyledRow ref={ref} {...rest}>\n {children}\n </StyledRow>\n );\n});\n"],"names":["Row","forwardRef","props","ref","children","rest","_objectWithoutProperties","_excluded","React","createElement","StyledRow","_extends"],"mappings":"
|
1
|
+
{"version":3,"file":"Row.js","sources":["../../../../../src/components/Grid/ui/Row/Row.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { HTMLAttributes } from 'react';\n\nimport { StyledRow } from './Row.styles';\n\n/**\n * Блок для размещения колонок (``<Col />``) по горизонтали.\n * Блок нельзя вкладывать сам в себя, но можно чередовать далее по дереву с использованием ``Col``.\n * Стилизованный компонент, обладающий всеми свойствами ``div``.\n */\nexport const Row = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>((props, ref) => {\n const { children, ...rest } = props;\n\n return (\n <StyledRow ref={ref} {...rest}>\n {children}\n </StyledRow>\n );\n});\n"],"names":["Row","forwardRef","props","ref","children","rest","_objectWithoutProperties","_excluded","React","createElement","StyledRow","_extends"],"mappings":";;;;;;;;;;;;;;AAKA;AACA;AACA;AACA;AACA;AACO,IAAMA,GAAG,gBAAGC,gBAAU,CAAiD,UAACC,KAAK,EAAEC,GAAG,EAAK;AAC1F,EAAA,IAAQC,QAAQ,GAAcF,KAAK,CAA3BE,QAAQ;AAAKC,IAAAA,IAAI,GAAAC,iDAAA,CAAKJ,KAAK,EAAAK,SAAA,CAAA,CAAA;AAEnC,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,oBAAS,EAAAC,iCAAA,CAAA;AAACR,IAAAA,GAAG,EAAEA,GAAAA;GAASE,EAAAA,IAAI,CACxBD,EAAAA,QACM,CAAC,CAAA;AAEpB,CAAC;;;;"}
|
@@ -7,6 +7,10 @@ var React = require('react');
|
|
7
7
|
var Image_styles = require('./Image.styles.js');
|
8
8
|
var Image_utils = require('./Image.utils.js');
|
9
9
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
+
|
12
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
+
|
10
14
|
var _excluded = ["src", "srcSet", "sizes", "ratio", "customRatio", "alt", "width", "height", "base", "style"];
|
11
15
|
|
12
16
|
/**
|
@@ -36,15 +40,15 @@ var imageRoot = function imageRoot(Root) {
|
|
36
40
|
var ratioToken = {
|
37
41
|
'--plasma_private-image-pading-bottom': ratio ? "".concat(Image_utils.ratios[ratio], "%") : rootCustomRatio
|
38
42
|
};
|
39
|
-
return /*#__PURE__*/
|
43
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
40
44
|
ref: outerRootRef,
|
41
45
|
style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, style), widthToken), heightToken), ratioToken)
|
42
|
-
}, rest), base === 'img' && /*#__PURE__*/
|
46
|
+
}, rest), base === 'img' && /*#__PURE__*/React__default.default.createElement(Image_styles.StyledImg, {
|
43
47
|
src: src,
|
44
48
|
srcSet: srcSet,
|
45
49
|
sizes: sizes,
|
46
50
|
alt: alt
|
47
|
-
}), base === 'div' && /*#__PURE__*/
|
51
|
+
}), base === 'div' && /*#__PURE__*/React__default.default.createElement(Image_styles.StyledDivImg, {
|
48
52
|
style: {
|
49
53
|
backgroundImage: "url(".concat(src, ")")
|
50
54
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Image.js","sources":["../../../src/components/Image/Image.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { HTMLAttributes } from 'react';\n\nimport type { RootProps } from '../../engines';\n\nimport { StyledDivImg, StyledImg, base as baseCSS } from './Image.styles';\nimport type { ImageProps } from './Image.types';\nimport { ratios } from './Image.utils';\n\n/**\n * Компонент для отображения картинок.\n */\nexport const imageRoot = (Root: RootProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>) =>\n forwardRef<HTMLDivElement, ImageProps>(\n (\n { src, srcSet, sizes, ratio, customRatio, alt, width, height, base = 'img', style, ...rest },\n outerRootRef,\n ) => {\n const widthToken = {\n '--plasma_private-image-width': width || '100%',\n };\n const heightToken = {\n '--plasma_private-image-height': height || '0',\n };\n const rootCustomRatio = customRatio ? `${customRatio}%` : 'unset';\n const ratioToken = {\n '--plasma_private-image-pading-bottom': ratio ? `${ratios[ratio]}%` : rootCustomRatio,\n };\n\n return (\n <Root\n ref={outerRootRef}\n style={{\n ...style,\n ...widthToken,\n ...heightToken,\n ...ratioToken,\n }}\n {...rest}\n >\n {base === 'img' && <StyledImg src={src} srcSet={srcSet} sizes={sizes} alt={alt} />}\n {base === 'div' && (\n <StyledDivImg style={{ backgroundImage: `url(${src})` }} role=\"img\" aria-label={alt} />\n )}\n </Root>\n );\n },\n );\n\nexport const imageConfig = {\n name: 'Image',\n tag: 'div',\n layout: imageRoot,\n base: baseCSS,\n variations: {},\n defaults: {},\n};\n"],"names":["imageRoot","Root","forwardRef","_ref","outerRootRef","src","srcSet","sizes","ratio","customRatio","alt","width","height","_ref$base","base","style","rest","_objectWithoutProperties","_excluded","widthToken","heightToken","rootCustomRatio","concat","ratioToken","ratios","React","createElement","_extends","ref","_objectSpread","StyledImg","StyledDivImg","backgroundImage","role","imageConfig","name","tag","layout","baseCSS","variations","defaults"],"mappings":"
|
1
|
+
{"version":3,"file":"Image.js","sources":["../../../src/components/Image/Image.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { HTMLAttributes } from 'react';\n\nimport type { RootProps } from '../../engines';\n\nimport { StyledDivImg, StyledImg, base as baseCSS } from './Image.styles';\nimport type { ImageProps } from './Image.types';\nimport { ratios } from './Image.utils';\n\n/**\n * Компонент для отображения картинок.\n */\nexport const imageRoot = (Root: RootProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>) =>\n forwardRef<HTMLDivElement, ImageProps>(\n (\n { src, srcSet, sizes, ratio, customRatio, alt, width, height, base = 'img', style, ...rest },\n outerRootRef,\n ) => {\n const widthToken = {\n '--plasma_private-image-width': width || '100%',\n };\n const heightToken = {\n '--plasma_private-image-height': height || '0',\n };\n const rootCustomRatio = customRatio ? `${customRatio}%` : 'unset';\n const ratioToken = {\n '--plasma_private-image-pading-bottom': ratio ? `${ratios[ratio]}%` : rootCustomRatio,\n };\n\n return (\n <Root\n ref={outerRootRef}\n style={{\n ...style,\n ...widthToken,\n ...heightToken,\n ...ratioToken,\n }}\n {...rest}\n >\n {base === 'img' && <StyledImg src={src} srcSet={srcSet} sizes={sizes} alt={alt} />}\n {base === 'div' && (\n <StyledDivImg style={{ backgroundImage: `url(${src})` }} role=\"img\" aria-label={alt} />\n )}\n </Root>\n );\n },\n );\n\nexport const imageConfig = {\n name: 'Image',\n tag: 'div',\n layout: imageRoot,\n base: baseCSS,\n variations: {},\n defaults: {},\n};\n"],"names":["imageRoot","Root","forwardRef","_ref","outerRootRef","src","srcSet","sizes","ratio","customRatio","alt","width","height","_ref$base","base","style","rest","_objectWithoutProperties","_excluded","widthToken","heightToken","rootCustomRatio","concat","ratioToken","ratios","React","createElement","_extends","ref","_objectSpread","StyledImg","StyledDivImg","backgroundImage","role","imageConfig","name","tag","layout","baseCSS","variations","defaults"],"mappings":";;;;;;;;;;;;;;;AASA;AACA;AACA;IACaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA+D,EAAA;AAAA,EAAA,oBACrFC,gBAAU,CACN,UAAAC,IAAA,EAEIC,YAAY,EACX;AAAA,IAAA,IAFCC,GAAG,GAAAF,IAAA,CAAHE,GAAG;MAAEC,MAAM,GAAAH,IAAA,CAANG,MAAM;MAAEC,KAAK,GAAAJ,IAAA,CAALI,KAAK;MAAEC,KAAK,GAAAL,IAAA,CAALK,KAAK;MAAEC,WAAW,GAAAN,IAAA,CAAXM,WAAW;MAAEC,GAAG,GAAAP,IAAA,CAAHO,GAAG;MAAEC,KAAK,GAAAR,IAAA,CAALQ,KAAK;MAAEC,MAAM,GAAAT,IAAA,CAANS,MAAM;MAAAC,SAAA,GAAAV,IAAA,CAAEW,IAAI;AAAJA,MAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GA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A;OAAM;AAAC4B,MAAAA,IAAI,EAAC,KAAK;MAAC,YAAYvB,EAAAA,GAAAA;AAAI,KAAE,CAExF,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMwB,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAErC,SAAS;AACjBc,EAAAA,IAAI,EAAEwB,iBAAO;EACbC,UAAU,EAAE,EAAE;AACdC,EAAAA,QAAQ,EAAE,EAAC;AACf;;;;;"}
|
@@ -8,13 +8,17 @@ var Indicator_styles = require('./Indicator.styles.js');
|
|
8
8
|
var base$1 = require('./variations/_view/base.js');
|
9
9
|
var base = require('./variations/_size/base.js');
|
10
10
|
|
11
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
12
|
+
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
14
|
+
|
11
15
|
var _excluded = ["size", "view"];
|
12
16
|
var indicatorRoot = function indicatorRoot(Root) {
|
13
17
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
14
18
|
var size = props.size,
|
15
19
|
view = props.view,
|
16
20
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
17
|
-
return /*#__PURE__*/
|
21
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
18
22
|
ref: ref,
|
19
23
|
size: size,
|
20
24
|
view: view
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Indicator.js","sources":["../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\n\nimport { base } from './Indicator.styles';\nimport { IndicatorProps } from './Indicator.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\n\nexport const indicatorRoot = (Root: RootProps<HTMLDivElement, IndicatorProps>) => {\n return forwardRef<HTMLDivElement, IndicatorProps>((props, ref) => {\n const { size, view, ...rest } = props;\n\n return <Root ref={ref} size={size} view={view} {...rest} />;\n });\n};\n\nexport const indicatorConfig = {\n name: 'Indicator',\n tag: 'div',\n layout: indicatorRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n size: 's',\n view: 'default',\n },\n};\n"],"names":["indicatorRoot","Root","forwardRef","props","ref","size","view","rest","_objectWithoutProperties","_excluded","React","createElement","_extends","indicatorConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","defaults"],"mappings":"
|
1
|
+
{"version":3,"file":"Indicator.js","sources":["../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\n\nimport { base } from './Indicator.styles';\nimport { IndicatorProps } from './Indicator.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\n\nexport const indicatorRoot = (Root: RootProps<HTMLDivElement, IndicatorProps>) => {\n return forwardRef<HTMLDivElement, IndicatorProps>((props, ref) => {\n const { size, view, ...rest } = props;\n\n return <Root ref={ref} size={size} view={view} {...rest} />;\n });\n};\n\nexport const indicatorConfig = {\n name: 'Indicator',\n tag: 'div',\n layout: indicatorRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n size: 's',\n view: 'default',\n },\n};\n"],"names":["indicatorRoot","Root","forwardRef","props","ref","size","view","rest","_objectWithoutProperties","_excluded","React","createElement","_extends","indicatorConfig","name","tag","layout","base","variations","css","sizeCSS","viewCSS","defaults"],"mappings":";;;;;;;;;;;;;;;IASaA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAA+C,EAAK;AAC9E,EAAA,oBAAOC,gBAAU,CAAiC,UAACC,KAAK,EAAEC,GAAG,EAAK;AAC9D,IAAA,IAAQC,IAAI,GAAoBF,KAAK,CAA7BE,IAAI;MAAEC,IAAI,GAAcH,KAAK,CAAvBG,IAAI;AAAKC,MAAAA,IAAI,GAAAC,iDAAA,CAAKL,KAAK,EAAAM,SAAA,CAAA,CAAA;AAErC,IAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACV,IAAI,EAAAW,iCAAA,CAAA;AAACR,MAAAA,GAAG,EAAEA,GAAI;AAACC,MAAAA,IAAI,EAAEA,IAAK;AAACC,MAAAA,IAAI,EAAEA,IAAAA;KAAUC,EAAAA,IAAI,CAAG,CAAC,CAAA;AAC/D,GAAC,CAAC,CAAA;AACN,EAAC;AAEM,IAAMM,eAAe,GAAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEhB,aAAa;AACrBiB,EAAAA,IAAI,EAAJA,qBAAI;AACJC,EAAAA,UAAU,EAAE;AACRb,IAAAA,IAAI,EAAE;AACFc,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDd,IAAAA,IAAI,EAAE;AACFa,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNjB,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require('./Link_1oiwct5.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -9,6 +9,10 @@ var base$1 = require('./_view/base.js');
|
|
9
9
|
var base$2 = require('./_disabled/base.js');
|
10
10
|
var base$3 = require('./_focused/base.js');
|
11
11
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
+
|
14
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
15
|
+
|
12
16
|
var _excluded = ["children", "disabled", "target", "href", "rel"];
|
13
17
|
var base = "b1j91s21";
|
14
18
|
var linkRoot = function linkRoot(Root) {
|
@@ -26,7 +30,7 @@ var linkRoot = function linkRoot(Root) {
|
|
26
30
|
// NOTE: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener/
|
27
31
|
rel: target === '_blank' ? 'noopener noreferrer' : rel
|
28
32
|
};
|
29
|
-
return /*#__PURE__*/
|
33
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
30
34
|
ref: ref
|
31
35
|
}, forwardProps, rest), children);
|
32
36
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Link.js","sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines/types';\n\nimport { base as viewCSS } from './_view/base';\nimport { base as disabledCSS } from './_disabled/base';\nimport { base as focusedCSS } from './_focused/base';\n\nconst base = css`\n position: relative;\n text-decoration: none;\n transition: color 0.15s ease-in;\n\n ::before {\n content: '';\n position: absolute;\n inset: 0;\n opacity: 0.4;\n }\n`;\n\nexport type LinkCustomProps = {\n /**\n * Компонент может фокусироваться.\n */\n focused?: boolean;\n /**\n * Компонент неактивен.\n */\n disabled?: boolean;\n /**\n * Вид компонента.\n */\n view?: string;\n /**\n * Размер компонента.\n */\n size?: string;\n};\n\ntype LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkCustomProps;\n\nexport const linkRoot = (Root: RootProps<HTMLAnchorElement, LinkProps>) =>\n forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => {\n const { children, disabled, target, href, rel, ...rest } = props;\n\n const forwardProps = {\n disabled,\n target,\n href: disabled ? undefined : href,\n // NOTE: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener/\n rel: target === '_blank' ? 'noopener noreferrer' : rel,\n };\n\n return (\n <Root ref={ref} {...forwardProps} {...rest}>\n {children}\n </Root>\n );\n });\n\nexport const linkConfig = {\n name: 'Link',\n tag: 'a',\n layout: linkRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["base","linkRoot","Root","forwardRef","props","ref","children","disabled","target","href","rel","rest","_excluded","forwardProps","undefined","React","createElement","_extends","linkConfig","name","tag","layout","variations","view","css","viewCSS","disabledCSS","attrs","focused","focusedCSS","defaults","size"],"mappings":"
|
1
|
+
{"version":3,"file":"Link.js","sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines/types';\n\nimport { base as viewCSS } from './_view/base';\nimport { base as disabledCSS } from './_disabled/base';\nimport { base as focusedCSS } from './_focused/base';\n\nconst base = css`\n position: relative;\n text-decoration: none;\n transition: color 0.15s ease-in;\n\n ::before {\n content: '';\n position: absolute;\n inset: 0;\n opacity: 0.4;\n }\n`;\n\nexport type LinkCustomProps = {\n /**\n * Компонент может фокусироваться.\n */\n focused?: boolean;\n /**\n * Компонент неактивен.\n */\n disabled?: boolean;\n /**\n * Вид компонента.\n */\n view?: string;\n /**\n * Размер компонента.\n */\n size?: string;\n};\n\ntype LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkCustomProps;\n\nexport const linkRoot = (Root: RootProps<HTMLAnchorElement, LinkProps>) =>\n forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => {\n const { children, disabled, target, href, rel, ...rest } = props;\n\n const forwardProps = {\n disabled,\n target,\n href: disabled ? undefined : href,\n // NOTE: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener/\n rel: target === '_blank' ? 'noopener noreferrer' : rel,\n };\n\n return (\n <Root ref={ref} {...forwardProps} {...rest}>\n {children}\n </Root>\n );\n });\n\nexport const linkConfig = {\n name: 'Link',\n tag: 'a',\n layout: linkRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["base","linkRoot","Root","forwardRef","props","ref","children","disabled","target","href","rel","rest","_excluded","forwardProps","undefined","React","createElement","_extends","linkConfig","name","tag","layout","variations","view","css","viewCSS","disabledCSS","attrs","focused","focusedCSS","defaults","size"],"mappings":";;;;;;;;;;;;;;;AASA,IAAMA,IAAI,GAWT,UAAA,CAAA;IAuBYC,QAAQ,GAAGA,SAAXA,QAAQA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBAClEC,gBAAU,CAA+B,UAACC,KAAK,EAAEC,GAAG,EAAK;AACrD,IAAA,IAAQC,QAAQ,GAA2CF,KAAK,CAAxDE,QAAQ;MAAEC,QAAQ,GAAiCH,KAAK,CAA9CG,QAAQ;MAAEC,MAAM,GAAyBJ,KAAK,CAApCI,MAAM;MAAEC,IAAI,GAAmBL,KAAK,CAA5BK,IAAI;MAAEC,GAAG,GAAcN,KAAK,CAAtBM,GAAG;AAAKC,MAAAA,IAAAA,GAAAA,iDAAAA,CAASP,KAAK,EAAAQ,SAAA,CAAA,CAAA;AAEhE,IAAA,IAAMC,YAAY,GAAG;AACjBN,MAAAA,QAAQ,EAARA,QAAQ;AACRC,MAAAA,MAAM,EAANA,MAAM;AACNC,MAAAA,IAAI,EAAEF,QAAQ,GAAGO,SAAS,GAAGL,IAAI;AACjC;AACAC,MAAAA,GAAG,EAAEF,MAAM,KAAK,QAAQ,GAAG,qBAAqB,GAAGE,GAAAA;KACtD,CAAA;AAED,IAAA,oBACIK,sBAAA,CAAAC,aAAA,CAACd,IAAI,EAAAe,iCAAA,CAAA;AAACZ,MAAAA,GAAG,EAAEA,GAAAA;AAAI,KAAA,EAAKQ,YAAY,EAAMF,IAAI,CAAA,EACrCL,QACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMY,UAA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