@salutejs/plasma-new-hope 0.195.2-canary.1580.11946918297.0 → 0.196.0-canary.1574.11948690681.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.js +7 -1
- package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
- package/emotion/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
- package/emotion/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -1
- package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
- package/emotion/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Body/Body.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
- package/emotion/es/examples/typograpy/components/Text/Text.stories.tsx +1 -1
- package/es/components/Autocomplete/Autocomplete.js +7 -1
- package/es/components/Autocomplete/Autocomplete.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
- package/styled-components/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -1
- package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
- package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Body/Body.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
- package/styled-components/es/examples/typograpy/components/Text/Text.stories.tsx +1 -1
- package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/components/Autocomplete/Autocomplete.types.d.ts +4 -0
- package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
@@ -14,7 +14,7 @@ var TextField_styles = require('./ui/TextField/TextField.styles.js');
|
|
14
14
|
var SuggestionItem = require('./ui/SuggestionItem/SuggestionItem.js');
|
15
15
|
var getPopoverPlacement = require('../../utils/getPopoverPlacement.js');
|
16
16
|
|
17
|
-
var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
|
17
|
+
var _excluded = ["value", "defaultValue", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
|
18
18
|
|
19
19
|
/**
|
20
20
|
* Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.
|
@@ -22,6 +22,7 @@ var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlace
|
|
22
22
|
var autocompleteRoot = function autocompleteRoot(Root) {
|
23
23
|
return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
24
24
|
var outerValue = _ref.value,
|
25
|
+
defaultValue = _ref.defaultValue,
|
25
26
|
onChange = _ref.onChange,
|
26
27
|
suggestions = _ref.suggestions,
|
27
28
|
view = _ref.view,
|
@@ -109,6 +110,11 @@ var autocompleteRoot = function autocompleteRoot(Root) {
|
|
109
110
|
type: 'reset'
|
110
111
|
});
|
111
112
|
}, [value]);
|
113
|
+
useDidMountEffect.useDidMountEffect(function () {
|
114
|
+
if (defaultValue) {
|
115
|
+
setInnerValue(defaultValue);
|
116
|
+
}
|
117
|
+
}, [defaultValue]);
|
112
118
|
return /*#__PURE__*/React.createElement(Root, {
|
113
119
|
view: view,
|
114
120
|
size: size,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Autocomplete.js","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { useDidMountEffect, useOutsideClick } from '../../hooks';\nimport { RootProps } from '../../engines';\nimport { getPlacements } from '../../utils';\n\nimport { focusedReducer } from './reducers/focusedReducer';\nimport { SuggestionItem, StyledTextField } from './ui';\nimport { StyledPopover, Ul, LeftHelper, base, InfiniteLoaderWrapper } from './Autocomplete.styles';\nimport type { AutocompleteProps, SuggestionItemType } from './Autocomplete.types';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\n\n/**\n * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.\n */\nexport const autocompleteRoot = (Root: RootProps<HTMLInputElement, AutocompleteProps>) =>\n forwardRef<HTMLInputElement, AutocompleteProps>(\n (\n {\n value: outerValue,\n onChange,\n suggestions,\n view,\n size,\n labelPlacement,\n disabled,\n readOnly,\n label,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n onScroll,\n listMaxHeight,\n listWidth,\n portal,\n filter,\n onSuggestionSelect,\n threshold = 2,\n renderList,\n renderListEnd,\n onSearch,\n\n hintText,\n\n ...rest\n },\n ref,\n ) => {\n const [focused, dispatchFocused] = useReducer(focusedReducer, null);\n const [innerValue, setInnerValue] = useState<string | number>('');\n const [isOpen, setIsOpen] = useState(false);\n\n const listId = safeUseId();\n const value = outerValue ?? innerValue;\n\n const helperTextId = safeUseId();\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n setIsOpen(false);\n });\n\n const handleFocus = () => {\n if (value.toString().length >= threshold) {\n setIsOpen(true);\n }\n };\n\n const handleItemClick = (e: SuggestionItemType) => {\n setInnerValue(e.label);\n\n if (onSuggestionSelect) {\n onSuggestionSelect(e);\n }\n\n setIsOpen(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const currentValue = e.target.value;\n\n setInnerValue(currentValue);\n\n if (onChange) {\n onChange(e);\n }\n\n if (currentValue.toString().length >= threshold) {\n setIsOpen(true);\n } else {\n setIsOpen(false);\n }\n };\n\n const defaultFilterCallback = ({ label }: { label: string }) => {\n return label.toLowerCase().includes(value.toString().toLowerCase());\n };\n\n const finalResults = suggestions?.filter(filter || defaultFilterCallback) || [];\n\n const { onKeyDown } = useKeyNavigation({\n isOpen,\n setIsOpen,\n focused,\n dispatchFocused,\n finalResults,\n handleItemClick,\n });\n\n useDidMountEffect(() => {\n dispatchFocused({ type: 'reset' });\n }, [value]);\n\n return (\n <Root view={view} size={size} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <StyledPopover\n opened={isOpen}\n offset={[0, 0]}\n placement={getPlacements('bottom')}\n isFocusTrapped={false}\n usePortal={Boolean(portal)}\n frame={portal}\n target={\n <StyledTextField\n value={value}\n onChange={handleChange}\n onSearch={focused === null ? onSearch : undefined}\n ref={ref}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onFocus={handleFocus}\n onKeyDown={onKeyDown}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={listId}\n aria-expanded={isOpen}\n aria-activedescendant={`${listId}/${focused}`}\n aria-describedby={helperTextId}\n hintText={String(hintText || '')}\n {...rest}\n />\n }\n preventOverflow={false}\n ref={targetRef}\n listWidth={listWidth}\n >\n {(renderList && renderList(finalResults)) ||\n (Boolean(finalResults.length) && (\n <Root\n view={view}\n size={size}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n id={listId}\n role=\"listbox\"\n aria-label={label}\n onScroll={onScroll}\n listMaxHeight={listMaxHeight}\n >\n {finalResults.map((suggestion, index) => (\n <SuggestionItem\n key={index}\n item={suggestion}\n onClick={handleItemClick}\n id={`${listId}/${index}`}\n focused={focused === index}\n />\n ))}\n\n {renderListEnd && (\n <InfiniteLoaderWrapper>{renderListEnd()}</InfiniteLoaderWrapper>\n )}\n </Ul>\n </Root>\n ))}\n </StyledPopover>\n\n {/* TODO: Дублируем хелпер для корректного позиционирования списка подсказок */}\n {leftHelper && (\n <LeftHelper id={helperTextId} disabled={disabled} readOnly={readOnly}>\n {leftHelper}\n </LeftHelper>\n )}\n </Root>\n );\n },\n );\n\nexport const autocompleteConfig = {\n name: 'Autocomplete',\n tag: 'div',\n layout: autocompleteRoot,\n base,\n defaults: {\n view: 'default',\n size: 'l',\n labelPlacement: 'outer',\n },\n variations: {\n view: {\n css: '',\n },\n },\n};\n"],"names":["autocompleteRoot","Root","forwardRef","_ref","ref","outerValue","value","onChange","suggestions","view","size","labelPlacement","disabled","readOnly","label","leftHelper","contentLeft","contentRight","textBefore","textAfter","onScroll","listMaxHeight","listWidth","portal","filter","onSuggestionSelect","_ref$threshold","threshold","renderList","renderListEnd","onSearch","hintText","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","focusedReducer","_useReducer2","_slicedToArray","focused","dispatchFocused","_useState","useState","_useState2","innerValue","setInnerValue","_useState3","_useState4","isOpen","setIsOpen","listId","safeUseId","helperTextId","targetRef","useOutsideClick","handleFocus","toString","length","handleItemClick","e","handleChange","currentValue","target","defaultFilterCallback","_ref2","toLowerCase","includes","finalResults","_useKeyNavigation","useKeyNavigation","onKeyDown","useDidMountEffect","type","React","createElement","StyledPopover","opened","offset","placement","getPlacements","isFocusTrapped","usePortal","Boolean","frame","StyledTextField","_extends","undefined","onFocus","role","concat","String","preventOverflow","Ul","id","map","suggestion","index","SuggestionItem","key","item","onClick","InfiniteLoaderWrapper","LeftHelper","autocompleteConfig","name","tag","layout","base","defaults","variations","css"],"mappings":";;;;;;;;;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAoD,EAAA;AAAA,EAAA,oBACjFC,gBAAU,CACN,UAAAC,IAAA,EA+BIC,GAAG,EACF;AAAA,IAAA,IA9BUC,UAAU,GAAAF,IAAA,CAAjBG,KAAK;MACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,WAAW,GAAAL,IAAA,CAAXK,WAAW;MACXC,IAAI,GAAAN,IAAA,CAAJM,IAAI;MACJC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;MACdC,QAAQ,GAAAT,IAAA,CAARS,QAAQ;MACRC,QAAQ,GAAAV,IAAA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AEJ,UAAW;AACjBK,QAAAA,OAAO,EAAE1C,eAAgB;QACzBmC,EAAE,EAAA,EAAA,CAAAJ,MAAA,CAAKvC,MAAM,OAAAuC,MAAA,CAAIO,KAAK,CAAG;QACzBzD,OAAO,EAAEA,OAAO,KAAKyD,KAAAA;AAAM,OAC9B,CAAC,CAAA;KACL,CAAC,EAEDpE,aAAa,iBACV6C,KAAA,CAAAC,aAAA,CAAC2B,yCAAqB,EAAA,IAAA,EAAEzE,aAAa,EAA0B,CAEnE,CACF,CAEH,CAAC,EAGfd,UAAU,iBACP2D,KAAA,CAAAC,aAAA,CAAC4B,8BAAU,EAAA;AAACT,MAAAA,EAAE,EAAEzC,YAAa;AAACzC,MAAAA,QAAQ,EAAEA,QAAS;AAACC,MAAAA,QAAQ,EAAEA,QAAAA;KACvDE,EAAAA,UACO,CAEd,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyF,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE3G,gBAAgB;AACxB4G,EAAAA,IAAI,EAAJA,wBAAI;AACJC,EAAAA,QAAQ,EAAE;AACNpG,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,cAAc,EAAE,OAAA;GACnB;AACDmG,EAAAA,UAAU,EAAE;AACRrG,IAAAA,IAAI,EAAE;AACFsG,MAAAA,GAAG,EAAE,EAAA;AACT,KAAA;AACJ,GAAA;AACJ;;;;;"}
|
1
|
+
{"version":3,"file":"Autocomplete.js","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { useDidMountEffect, useOutsideClick } from '../../hooks';\nimport { RootProps } from '../../engines';\nimport { getPlacements } from '../../utils';\n\nimport { focusedReducer } from './reducers/focusedReducer';\nimport { SuggestionItem, StyledTextField } from './ui';\nimport { StyledPopover, Ul, LeftHelper, base, InfiniteLoaderWrapper } from './Autocomplete.styles';\nimport type { AutocompleteProps, SuggestionItemType } from './Autocomplete.types';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\n\n/**\n * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.\n */\nexport const autocompleteRoot = (Root: RootProps<HTMLInputElement, AutocompleteProps>) =>\n forwardRef<HTMLInputElement, AutocompleteProps>(\n (\n {\n value: outerValue,\n defaultValue,\n onChange,\n suggestions,\n view,\n size,\n labelPlacement,\n disabled,\n readOnly,\n label,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n onScroll,\n listMaxHeight,\n listWidth,\n portal,\n filter,\n onSuggestionSelect,\n threshold = 2,\n renderList,\n renderListEnd,\n onSearch,\n\n hintText,\n\n ...rest\n },\n ref,\n ) => {\n const [focused, dispatchFocused] = useReducer(focusedReducer, null);\n const [innerValue, setInnerValue] = useState<string | number>('');\n const [isOpen, setIsOpen] = useState(false);\n\n const listId = safeUseId();\n const value = outerValue ?? innerValue;\n\n const helperTextId = safeUseId();\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n setIsOpen(false);\n });\n\n const handleFocus = () => {\n if (value.toString().length >= threshold) {\n setIsOpen(true);\n }\n };\n\n const handleItemClick = (e: SuggestionItemType) => {\n setInnerValue(e.label);\n\n if (onSuggestionSelect) {\n onSuggestionSelect(e);\n }\n\n setIsOpen(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const currentValue = e.target.value;\n\n setInnerValue(currentValue);\n\n if (onChange) {\n onChange(e);\n }\n\n if (currentValue.toString().length >= threshold) {\n setIsOpen(true);\n } else {\n setIsOpen(false);\n }\n };\n\n const defaultFilterCallback = ({ label }: { label: string }) => {\n return label.toLowerCase().includes(value.toString().toLowerCase());\n };\n\n const finalResults = suggestions?.filter(filter || defaultFilterCallback) || [];\n\n const { onKeyDown } = useKeyNavigation({\n isOpen,\n setIsOpen,\n focused,\n dispatchFocused,\n finalResults,\n handleItemClick,\n });\n\n useDidMountEffect(() => {\n dispatchFocused({ type: 'reset' });\n }, [value]);\n\n useDidMountEffect(() => {\n if (defaultValue) {\n setInnerValue(defaultValue);\n }\n }, [defaultValue]);\n\n return (\n <Root view={view} size={size} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <StyledPopover\n opened={isOpen}\n offset={[0, 0]}\n placement={getPlacements('bottom')}\n isFocusTrapped={false}\n usePortal={Boolean(portal)}\n frame={portal}\n target={\n <StyledTextField\n value={value}\n onChange={handleChange}\n onSearch={focused === null ? onSearch : undefined}\n ref={ref}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onFocus={handleFocus}\n onKeyDown={onKeyDown}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={listId}\n aria-expanded={isOpen}\n aria-activedescendant={`${listId}/${focused}`}\n aria-describedby={helperTextId}\n hintText={String(hintText || '')}\n {...rest}\n />\n }\n preventOverflow={false}\n ref={targetRef}\n listWidth={listWidth}\n >\n {(renderList && renderList(finalResults)) ||\n (Boolean(finalResults.length) && (\n <Root\n view={view}\n size={size}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n id={listId}\n role=\"listbox\"\n aria-label={label}\n onScroll={onScroll}\n listMaxHeight={listMaxHeight}\n >\n {finalResults.map((suggestion, index) => (\n <SuggestionItem\n key={index}\n item={suggestion}\n onClick={handleItemClick}\n id={`${listId}/${index}`}\n focused={focused === index}\n />\n ))}\n\n {renderListEnd && (\n <InfiniteLoaderWrapper>{renderListEnd()}</InfiniteLoaderWrapper>\n )}\n </Ul>\n </Root>\n ))}\n </StyledPopover>\n\n {/* TODO: Дублируем хелпер для корректного позиционирования списка подсказок */}\n {leftHelper && (\n <LeftHelper id={helperTextId} disabled={disabled} readOnly={readOnly}>\n {leftHelper}\n </LeftHelper>\n )}\n </Root>\n );\n },\n );\n\nexport const autocompleteConfig = {\n name: 'Autocomplete',\n tag: 'div',\n layout: autocompleteRoot,\n base,\n defaults: {\n view: 'default',\n size: 'l',\n labelPlacement: 'outer',\n },\n variations: {\n view: {\n css: '',\n },\n },\n};\n"],"names":["autocompleteRoot","Root","forwardRef","_ref","ref","outerValue","value","defaultValue","onChange","suggestions","view","size","labelPlacement","disabled","readOnly","label","leftHelper","contentLeft","contentRight","textBefore","textAfter","onScroll","listMaxHeight","listWidth","portal","filter","onSuggestionSelect","_ref$threshold","threshold","renderList","renderListEnd","onSearch","hintText","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","focusedReducer","_useReducer2","_slicedToArray","focused","dispatchFocused","_useState","useState","_useState2","innerValue","setInnerValue","_useState3","_useState4","isOpen","setIsOpen","listId","safeUseId","helperTextId","targetRef","useOutsideClick","handleFocus","toString","length","handleItemClick","e","handleChange","currentValue","target","defaultFilterCallback","_ref2","toLowerCase","includes","finalResults","_useKeyNavigation","useKeyNavigation","onKeyDown","useDidMountEffect","type","React","createElement","StyledPopover","opened","offset","placement","getPlacements","isFocusTrapped","usePortal","Boolean","frame","StyledTextField","_extends","undefined","onFocus","role","concat","String","preventOverflow","Ul","id","map","suggestion","index","SuggestionItem","key","item","onClick","InfiniteLoaderWrapper","LeftHelper","autocompleteConfig","name","tag","layout","base","defaults","variations","css"],"mappings":";;;;;;;;;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAoD,EAAA;AAAA,EAAA,oBACjFC,gBAAU,CACN,UAAAC,IAAA,EAgCIC,GAAG,EACF;AAAA,IAAA,IA/BUC,UAAU,GAAAF,IAAA,CAAjBG,KAAK;MACLC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;MACZC,QAAQ,GAAAL,IAAA,CA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C,IAAAA,cAAc,EAAE,OAAA;GACnB;AACDmG,EAAAA,UAAU,EAAE;AACRrG,IAAAA,IAAI,EAAE;AACFsG,MAAAA,GAAG,EAAE,EAAA;AACT,KAAA;AACJ,GAAA;AACJ;;;;;"}
|
@@ -13,7 +13,7 @@ var _focusedReducer = /*#__PURE__*/require("./reducers/focusedReducer");
|
|
13
13
|
var _ui = /*#__PURE__*/require("./ui");
|
14
14
|
var _Autocomplete = /*#__PURE__*/require("./Autocomplete.styles");
|
15
15
|
var _useKeyboardNavigation = /*#__PURE__*/require("./hooks/useKeyboardNavigation");
|
16
|
-
var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
|
16
|
+
var _excluded = ["value", "defaultValue", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
18
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
19
19
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -31,6 +31,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
31
31
|
var autocompleteRoot = exports.autocompleteRoot = function autocompleteRoot(Root) {
|
32
32
|
return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
33
33
|
var outerValue = _ref.value,
|
34
|
+
defaultValue = _ref.defaultValue,
|
34
35
|
onChange = _ref.onChange,
|
35
36
|
suggestions = _ref.suggestions,
|
36
37
|
view = _ref.view,
|
@@ -118,6 +119,11 @@ var autocompleteRoot = exports.autocompleteRoot = function autocompleteRoot(Root
|
|
118
119
|
type: 'reset'
|
119
120
|
});
|
120
121
|
}, [value]);
|
122
|
+
(0, _hooks.useDidMountEffect)(function () {
|
123
|
+
if (defaultValue) {
|
124
|
+
setInnerValue(defaultValue);
|
125
|
+
}
|
126
|
+
}, [defaultValue]);
|
121
127
|
return /*#__PURE__*/_react["default"].createElement(Root, {
|
122
128
|
view: view,
|
123
129
|
size: size,
|
@@ -24,7 +24,7 @@ type AccordionItemCustomProps = {
|
|
24
24
|
type AccordionProps = ComponentProps<typeof Accordion> & AccordionItemCustomProps;
|
25
25
|
|
26
26
|
const meta: Meta<AccordionProps> = {
|
27
|
-
title: '
|
27
|
+
title: 'plasma_b2c/Accordion',
|
28
28
|
decorators: [WithTheme],
|
29
29
|
component: Accordion,
|
30
30
|
args: {
|
@@ -7,7 +7,7 @@ import { argTypesFromConfig, WithTheme } from '../../../_helpers';
|
|
7
7
|
import { Avatar, mergedConfig } from './Avatar';
|
8
8
|
|
9
9
|
const meta: Meta<typeof Avatar> = {
|
10
|
-
title: '
|
10
|
+
title: 'plasma_b2c/Avatar',
|
11
11
|
decorators: [WithTheme],
|
12
12
|
component: Avatar,
|
13
13
|
argTypes: {
|
@@ -11,7 +11,7 @@ type Story = StoryObj<ComponentProps<typeof AvatarGroup>>;
|
|
11
11
|
type Avatar = ComponentProps<typeof Avatar>;
|
12
12
|
|
13
13
|
const meta: Meta<typeof AvatarGroup> = {
|
14
|
-
title: '
|
14
|
+
title: 'plasma_b2c/AvatarGroup',
|
15
15
|
decorators: [WithTheme],
|
16
16
|
component: AvatarGroup,
|
17
17
|
};
|
@@ -13,7 +13,7 @@ import { Breadcrumbs } from './Breadcrumbs';
|
|
13
13
|
type BreadcrumbsProps = ComponentProps<typeof Breadcrumbs>;
|
14
14
|
|
15
15
|
const meta: Meta<BreadcrumbsProps> = {
|
16
|
-
title: '
|
16
|
+
title: 'plasma_b2c/Breadcrumbs',
|
17
17
|
decorators: [WithTheme],
|
18
18
|
component: Breadcrumbs,
|
19
19
|
args: {
|
@@ -19,7 +19,7 @@ const shapeValues = ['segmented', 'default'];
|
|
19
19
|
const stretchingValues = ['auto', 'filled'];
|
20
20
|
|
21
21
|
const meta: Meta<typeof ButtonGroup> = {
|
22
|
-
title: '
|
22
|
+
title: 'plasma_b2c/ButtonGroup',
|
23
23
|
decorators: [WithTheme],
|
24
24
|
argTypes: {
|
25
25
|
size: {
|
@@ -13,7 +13,7 @@ import { Calendar, CalendarBase, CalendarBaseRange, CalendarDouble, CalendarDoub
|
|
13
13
|
const onChangeValue = action('onChangeValue');
|
14
14
|
|
15
15
|
const meta: Meta<typeof CalendarBase> = {
|
16
|
-
title: '
|
16
|
+
title: 'plasma_b2c/Calendar',
|
17
17
|
decorators: [WithTheme],
|
18
18
|
argTypes: {
|
19
19
|
min: {
|
@@ -16,7 +16,7 @@ const onFocus = action('onFocus');
|
|
16
16
|
const onBlur = action('onBlur');
|
17
17
|
|
18
18
|
const meta: Meta<typeof Checkbox> = {
|
19
|
-
title: '
|
19
|
+
title: 'plasma_b2c/Checkbox',
|
20
20
|
decorators: [WithTheme],
|
21
21
|
component: Checkbox,
|
22
22
|
argTypes: argTypesFromConfig(mergeConfig(checkboxConfig, config)),
|
@@ -17,7 +17,7 @@ const labelPlacement = ['inner', 'outer'];
|
|
17
17
|
const variant = ['normal', 'tight'];
|
18
18
|
|
19
19
|
const meta: Meta<StorySelectProps> = {
|
20
|
-
title: '
|
20
|
+
title: 'plasma_b2c/Combobox',
|
21
21
|
decorators: [WithTheme],
|
22
22
|
component: Combobox,
|
23
23
|
argTypes: {
|
@@ -25,7 +25,7 @@ type StorySelectPropsCustom = {
|
|
25
25
|
type StorySelectProps = ComponentProps<typeof Combobox> & StorySelectPropsCustom;
|
26
26
|
|
27
27
|
const meta: Meta<StorySelectProps> = {
|
28
|
-
title: '
|
28
|
+
title: 'plasma_b2c/Combobox',
|
29
29
|
decorators: [WithTheme],
|
30
30
|
component: Combobox,
|
31
31
|
argTypes: {
|
@@ -9,7 +9,7 @@ const sizes = ['l', 'm', 's', 'xs', 'xxs'];
|
|
9
9
|
const views = ['default', 'accent', 'positive', 'warning', 'negative', 'dark', 'light'];
|
10
10
|
|
11
11
|
const meta: Meta<typeof Counter> = {
|
12
|
-
title: '
|
12
|
+
title: 'plasma_b2c/Counter',
|
13
13
|
component: Counter,
|
14
14
|
decorators: [WithTheme],
|
15
15
|
argTypes: {
|
@@ -14,7 +14,7 @@ import type { ClosePlacementType } from '../../../../components/Drawer';
|
|
14
14
|
import { Drawer, DrawerContent, DrawerFooter, DrawerHeader } from './Drawer';
|
15
15
|
|
16
16
|
export default {
|
17
|
-
title: '
|
17
|
+
title: 'plasma_b2c/Drawer',
|
18
18
|
decorators: [WithTheme],
|
19
19
|
argTypes: {
|
20
20
|
placement: {
|
@@ -11,7 +11,7 @@ import { Editable, typographyVariants } from './Editable';
|
|
11
11
|
const iconSizes = ['s', 'xs'] as const;
|
12
12
|
|
13
13
|
const meta: Meta<typeof Editable> = {
|
14
|
-
title: '
|
14
|
+
title: 'plasma_b2c/Editable',
|
15
15
|
decorators: [WithTheme],
|
16
16
|
component: Editable,
|
17
17
|
argTypes: {
|
@@ -11,7 +11,7 @@ import { config } from './IconButton.config';
|
|
11
11
|
import { IconButton } from './IconButton';
|
12
12
|
|
13
13
|
const meta: Meta<typeof IconButton> = {
|
14
|
-
title: '
|
14
|
+
title: 'plasma_b2c/IconButton',
|
15
15
|
decorators: [WithTheme],
|
16
16
|
component: IconButton,
|
17
17
|
argTypes: {
|
@@ -10,7 +10,7 @@ const bases = ['div', 'img'];
|
|
10
10
|
const ratios = ['1/1', '3/4', '4/3', '9/16', '16/9', '1/2', '2/1'];
|
11
11
|
|
12
12
|
const meta: Meta<ImageProps> = {
|
13
|
-
title: '
|
13
|
+
title: 'plasma_b2c/Image',
|
14
14
|
component: Image,
|
15
15
|
decorators: [InSpacingDecorator],
|
16
16
|
argTypes: {
|
@@ -6,7 +6,7 @@ import { argTypesFromConfig, WithTheme } from '../../../_helpers';
|
|
6
6
|
import { Indicator, mergedConfig } from './Indicator';
|
7
7
|
|
8
8
|
const meta: Meta<typeof Indicator> = {
|
9
|
-
title: '
|
9
|
+
title: 'plasma_b2c/Indicator',
|
10
10
|
decorators: [WithTheme],
|
11
11
|
component: Indicator,
|
12
12
|
argTypes: {
|
@@ -10,7 +10,7 @@ import { config } from './Link.config';
|
|
10
10
|
import { Link } from './Link';
|
11
11
|
|
12
12
|
const meta: Meta<typeof Link> = {
|
13
|
-
title: '
|
13
|
+
title: 'plasma_b2c/Link',
|
14
14
|
decorators: [WithTheme],
|
15
15
|
component: Link,
|
16
16
|
argTypes: argTypesFromConfig(mergeConfig(linkConfig, config)),
|
@@ -13,7 +13,7 @@ const sizes = ['l', 'm', 's', 'xs'];
|
|
13
13
|
const views = ['default', 'positive', 'warning', 'negative'];
|
14
14
|
|
15
15
|
const meta: Meta<typeof Mask> = {
|
16
|
-
title: '
|
16
|
+
title: 'plasma_b2c/Mask',
|
17
17
|
component: Mask,
|
18
18
|
decorators: [WithTheme],
|
19
19
|
argTypes: {
|
@@ -12,7 +12,7 @@ import { WithTheme } from '../../../_helpers';
|
|
12
12
|
import { Modal, modalClasses } from './Modal';
|
13
13
|
|
14
14
|
export default {
|
15
|
-
title: '
|
15
|
+
title: 'plasma_b2c/Modal',
|
16
16
|
decorators: [WithTheme],
|
17
17
|
parameters: {
|
18
18
|
docs: { story: { inline: false, iframeHeight: '30rem' } },
|
@@ -17,7 +17,7 @@ const inputBackgroundTypes = ['fill', 'clear'];
|
|
17
17
|
const segmentation = ['default', 'segmented', 'solid'];
|
18
18
|
|
19
19
|
const meta: Meta<typeof NumberInput> = {
|
20
|
-
title: '
|
20
|
+
title: 'plasma_b2c/NumberInput',
|
21
21
|
component: NumberInput,
|
22
22
|
decorators: [WithTheme],
|
23
23
|
argTypes: {
|
@@ -14,7 +14,7 @@ const onOverlayClick = action('onOverlayClick');
|
|
14
14
|
type StoryOverlayProps = ComponentProps<typeof Overlay>;
|
15
15
|
|
16
16
|
const meta: Meta<StoryOverlayProps> = {
|
17
|
-
title: '
|
17
|
+
title: 'plasma_b2c/Overlay',
|
18
18
|
decorators: [WithTheme],
|
19
19
|
argTypes: {
|
20
20
|
isClickable: {
|
@@ -8,7 +8,7 @@ import { Button } from '../Button/Button';
|
|
8
8
|
import { Pagination } from './Pagination';
|
9
9
|
|
10
10
|
const meta: Meta<typeof Pagination> = {
|
11
|
-
title: '
|
11
|
+
title: 'plasma_b2c/Pagination',
|
12
12
|
component: Pagination,
|
13
13
|
decorators: [WithTheme],
|
14
14
|
argTypes: {
|
@@ -13,7 +13,7 @@ import { SSRProvider } from '../../../../components/SSRProvider';
|
|
13
13
|
import { Panel, PanelContent, PanelFooter, PanelHeader } from './Panel';
|
14
14
|
|
15
15
|
export default {
|
16
|
-
title: '
|
16
|
+
title: 'plasma_b2c/Panel',
|
17
17
|
decorators: [WithTheme],
|
18
18
|
argTypes: {
|
19
19
|
borderRadius: {
|
@@ -10,7 +10,7 @@ import { WithTheme } from '../../../_helpers';
|
|
10
10
|
import { Popup, popupClasses, PopupProvider } from './Popup';
|
11
11
|
|
12
12
|
const meta: Meta<typeof Popup> = {
|
13
|
-
title: '
|
13
|
+
title: 'plasma_b2c/Popup',
|
14
14
|
decorators: [WithTheme],
|
15
15
|
parameters: {
|
16
16
|
docs: { story: { inline: false, iframeHeight: '30rem' } },
|
@@ -9,7 +9,7 @@ import { Body } from '../../../typograpy/components/Body/Body';
|
|
9
9
|
import { Portal } from '../../../../components/Portal';
|
10
10
|
|
11
11
|
const meta: Meta<typeof Portal> = {
|
12
|
-
title: '
|
12
|
+
title: 'plasma_b2c/Portal',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
args: {
|
15
15
|
disabled: false,
|
@@ -9,7 +9,7 @@ import { Progress } from './Progress';
|
|
9
9
|
const views = ['default', 'secondary', 'primary', 'accent', 'success', 'warning', 'error'];
|
10
10
|
|
11
11
|
const meta: Meta<typeof Progress> = {
|
12
|
-
title: '
|
12
|
+
title: 'plasma_b2c/Progress',
|
13
13
|
component: Progress,
|
14
14
|
decorators: [WithTheme],
|
15
15
|
argTypes: {
|
@@ -16,7 +16,7 @@ const onFocus = action('onFocus');
|
|
16
16
|
const onBlur = action('onBlur');
|
17
17
|
|
18
18
|
const meta: Meta<typeof Radiobox> = {
|
19
|
-
title: '
|
19
|
+
title: 'plasma_b2c/Radiobox',
|
20
20
|
decorators: [WithTheme],
|
21
21
|
component: Radiobox,
|
22
22
|
argTypes: argTypesFromConfig(mergeConfig(radioboxConfig, config)),
|
@@ -52,7 +52,7 @@ const getContentRight = (contentRightOption: string, size: Size) => {
|
|
52
52
|
};
|
53
53
|
|
54
54
|
const meta: Meta<StorySegmentProps> = {
|
55
|
-
title: '
|
55
|
+
title: 'plasma_b2c/Segment',
|
56
56
|
decorators: [WithTheme],
|
57
57
|
component: SegmentGroup,
|
58
58
|
argTypes: {
|
@@ -20,7 +20,7 @@ const chip = ['default', 'secondary', 'accent'];
|
|
20
20
|
const variant = ['normal', 'tight'];
|
21
21
|
|
22
22
|
const meta: Meta<StorySelectProps> = {
|
23
|
-
title: '
|
23
|
+
title: 'plasma_b2c/Select',
|
24
24
|
decorators: [WithTheme],
|
25
25
|
component: Select,
|
26
26
|
argTypes: {
|
@@ -10,7 +10,7 @@ import { Body } from '../../../typograpy/components/Body/Body';
|
|
10
10
|
import { Sheet } from './Sheet';
|
11
11
|
|
12
12
|
const meta: Meta<typeof Sheet> = {
|
13
|
-
title: '
|
13
|
+
title: 'plasma_b2c/Sheet',
|
14
14
|
decorators: [WithTheme],
|
15
15
|
args: {
|
16
16
|
withBlur: false,
|