@bloomreach/react-banana-ui 1.27.0 → 1.28.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/dist/bloomreach-react-banana-ui.es.js +8393 -8256
- package/dist/bloomreach-react-banana-ui.es.js.map +1 -1
- package/dist/bloomreach-react-banana-ui.umd.js +21 -20
- package/dist/bloomreach-react-banana-ui.umd.js.map +1 -1
- package/dist/components/buttons/button/button.qa.stories.d.ts +1 -1
- package/dist/components/buttons/button/button.stories.d.ts +1 -1
- package/dist/components/buttons/button/button.types.d.ts +2 -2
- package/dist/components/buttons/button-group/button-group.qa.stories.d.ts +1 -1
- package/dist/components/buttons/button-group/button-group.stories.d.ts +1 -1
- package/dist/components/buttons/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/buttons/toggle-button/toggle-button.stories.d.ts +2 -2
- package/dist/components/buttons/toggle-button/toggle-button.types.d.ts +1 -1
- package/dist/components/buttons/toggle-button-group/toggle-button-group.d.ts +3 -4
- package/dist/components/buttons/toggle-button-group/toggle-button-group.stories.d.ts +1 -1
- package/dist/components/buttons/toggle-button-group/toggle-button-group.types.d.ts +14 -14
- package/dist/components/data-display/actions-container/actions-container.qa.stories.d.ts +1 -1
- package/dist/components/data-display/actions-container/actions-container.stories.d.ts +1 -1
- package/dist/components/data-display/actions-container/actions-container.types.d.ts +4 -4
- package/dist/components/data-display/asset-tag/asset-tag.qa.stories.d.ts +1 -1
- package/dist/components/data-display/asset-tag/asset-tag.stories.d.ts +1 -1
- package/dist/components/data-display/asset-tag/asset-tag.types.d.ts +9 -9
- package/dist/components/data-display/badge/badge.qa.stories.d.ts +1 -1
- package/dist/components/data-display/badge/badge.stories.d.ts +1 -1
- package/dist/components/data-display/badge/badge.types.d.ts +1 -1
- package/dist/components/data-display/description/description.qa.stories.d.ts +1 -1
- package/dist/components/data-display/description/description.stories.d.ts +1 -1
- package/dist/components/data-display/description/description.types.d.ts +4 -4
- package/dist/components/data-display/filter-tag/filter-tag.qa.stories.d.ts +1 -1
- package/dist/components/data-display/filter-tag/filter-tag.stories.d.ts +1 -1
- package/dist/components/data-display/filter-tag/filter-tag.types.d.ts +8 -8
- package/dist/components/data-display/header/header.qa.stories.d.ts +1 -1
- package/dist/components/data-display/header/header.stories.d.ts +1 -1
- package/dist/components/data-display/header/header.types.d.ts +4 -4
- package/dist/components/data-display/index.d.ts +2 -2
- package/dist/components/data-display/input-tag/input-tag.qa.stories.d.ts +1 -1
- package/dist/components/data-display/input-tag/input-tag.stories.d.ts +1 -1
- package/dist/components/data-display/input-tag/input-tag.types.d.ts +16 -16
- package/dist/components/data-display/table/table-context.d.ts +1 -1
- package/dist/components/data-display/table/table-section-context.d.ts +1 -1
- package/dist/components/data-display/table/table.qa.stories.d.ts +1 -1
- package/dist/components/data-display/table/table.stories.d.ts +1 -1
- package/dist/components/data-display/table/table.types.d.ts +9 -9
- package/dist/components/data-display/table-body/table-body.types.d.ts +4 -4
- package/dist/components/data-display/table-cell/table-cell.types.d.ts +5 -5
- package/dist/components/data-display/table-cell-action/table-cell-action.types.d.ts +4 -4
- package/dist/components/data-display/table-foot/table-foot.types.d.ts +4 -4
- package/dist/components/data-display/table-head/table-head.types.d.ts +4 -4
- package/dist/components/data-display/table-row/table-row-context.d.ts +1 -1
- package/dist/components/data-display/table-row/table-row.types.d.ts +4 -4
- package/dist/components/data-display/table-sort-label/table-sort-label.types.d.ts +5 -5
- package/dist/components/data-display/tag/tag.types.d.ts +18 -18
- package/dist/components/data-display/tag-group/tag-group.qa.stories.d.ts +1 -1
- package/dist/components/data-display/tag-group/tag-group.stories.d.ts +1 -1
- package/dist/components/data-display/tag-group/tag-group.types.d.ts +4 -4
- package/dist/components/data-display/typography/typography.d.ts +23 -2
- package/dist/components/data-display/typography/typography.qa.stories.d.ts +1 -1
- package/dist/components/data-display/typography/typography.stories.d.ts +1 -1
- package/dist/components/data-display/typography/typography.types.d.ts +22 -23
- package/dist/components/dropdowns/menu/index.d.ts +6 -6
- package/dist/components/dropdowns/menu/menu/menu.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu/menu.types.d.ts +4 -4
- package/dist/components/dropdowns/menu/menu-button/menu-button.d.ts +1 -2
- package/dist/components/dropdowns/menu/menu-button/menu-button.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu-button/menu-button.types.d.ts +1 -2
- package/dist/components/dropdowns/menu/menu-content/menu-content.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu-group/menu-group.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu-group-label/menu-group-label.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu-item/menu-item.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu-item/menu-item.types.d.ts +4 -4
- package/dist/components/dropdowns/menu/menu-separator/menu-separator.stories.d.ts +1 -1
- package/dist/components/dropdowns/menu/menu.stories.d.ts +1 -1
- package/dist/components/feedback/alert/alert.qa.stories.d.ts +1 -1
- package/dist/components/feedback/alert/alert.stories.d.ts +1 -1
- package/dist/components/feedback/alert/alert.types.d.ts +8 -8
- package/dist/components/foundations/icon/deprecated/index.d.ts +4 -4
- package/dist/components/foundations/icon/icon.d.ts +1 -1
- package/dist/components/foundations/icon/icon.qa.stories.d.ts +1 -1
- package/dist/components/foundations/icon/icon.stories.d.ts +1 -1
- package/dist/components/foundations/icon/icon.types.d.ts +4 -4
- package/dist/components/foundations/icon/icons/index.d.ts +245 -245
- package/dist/components/foundations/icon/index.d.ts +1 -1
- package/dist/components/inputs/autocomplete/autocomplete.qa.stories.d.ts +7 -2
- package/dist/components/inputs/autocomplete/autocomplete.stories.d.ts +15 -3
- package/dist/components/inputs/autocomplete/autocomplete.types.d.ts +31 -12
- package/dist/components/inputs/base-field/base-field.d.ts +0 -1
- package/dist/components/inputs/base-field/base-field.types.d.ts +1 -1
- package/dist/components/inputs/base-input/base-input.d.ts +0 -5
- package/dist/components/inputs/base-input/base-input.types.d.ts +5 -5
- package/dist/components/inputs/calendar/calendar.qa.stories.d.ts +1 -1
- package/dist/components/inputs/calendar/calendar.stories.d.ts +2 -2
- package/dist/components/inputs/calendar/calendar.types.d.ts +3 -3
- package/dist/components/inputs/calendar-cell/calendar-cell.types.d.ts +4 -4
- package/dist/components/inputs/checkbox/checkbox.qa.stories.d.ts +1 -1
- package/dist/components/inputs/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/components/inputs/checkbox/checkbox.types.d.ts +13 -13
- package/dist/components/inputs/checkbox-field/checkbox-field.qa.stories.d.ts +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.stories.d.ts +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group-context.d.ts +2 -2
- package/dist/components/inputs/checkbox-group/checkbox-group.qa.stories.d.ts +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.stories.d.ts +1 -1
- package/dist/components/inputs/date-input/date-input.qa.stories.d.ts +1 -1
- package/dist/components/inputs/date-input/date-input.stories.d.ts +1 -1
- package/dist/components/inputs/date-picker/date-picker.stories.d.ts +1 -1
- package/dist/components/inputs/date-picker/use-date-picker.d.ts +1 -1
- package/dist/components/inputs/date-segment/date-segment.types.d.ts +4 -4
- package/dist/components/inputs/field-label/field-label.types.d.ts +5 -5
- package/dist/components/inputs/index.d.ts +2 -2
- package/dist/components/inputs/input-field/input-field.qa.stories.d.ts +1 -1
- package/dist/components/inputs/input-field/input-field.stories.d.ts +1 -1
- package/dist/components/inputs/internal.d.ts +1 -1
- package/dist/components/inputs/radio/radio.qa.stories.d.ts +1 -1
- package/dist/components/inputs/radio/radio.stories.d.ts +1 -1
- package/dist/components/inputs/radio-field/radio-field.qa.stories.d.ts +1 -1
- package/dist/components/inputs/radio-field/radio-field.stories.d.ts +1 -1
- package/dist/components/inputs/radio-group/radio-group-context.d.ts +3 -3
- package/dist/components/inputs/radio-group/radio-group.qa.stories.d.ts +1 -1
- package/dist/components/inputs/radio-group/radio-group.stories.d.ts +1 -1
- package/dist/components/inputs/radio-group/radio-group.types.d.ts +2 -2
- package/dist/components/inputs/select/select.types.d.ts +9 -9
- package/dist/components/inputs/select-field/select-field.qa.stories.d.ts +1 -1
- package/dist/components/inputs/select-field/select-field.stories.d.ts +1 -1
- package/dist/components/inputs/select-field/select-field.types.d.ts +6 -6
- package/dist/components/inputs/select-option/select-option.types.d.ts +14 -14
- package/dist/components/inputs/text-field/text-field.qa.stories.d.ts +1 -1
- package/dist/components/inputs/text-field/text-field.stories.d.ts +1 -1
- package/dist/components/inputs/toggle-field/toggle-field.qa.stories.d.ts +1 -1
- package/dist/components/inputs/toggle-field/toggle-field.stories.d.ts +1 -1
- package/dist/components/layout/box/box.qa.stories.d.ts +1 -1
- package/dist/components/layout/box/box.stories.d.ts +1 -1
- package/dist/components/layout/box/box.types.d.ts +4 -4
- package/dist/components/layout/flex/flex.qa.stories.d.ts +1 -1
- package/dist/components/layout/flex/flex.stories.d.ts +1 -1
- package/dist/components/layout/flex/flex.types.d.ts +4 -4
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/lists/internal.d.ts +2 -2
- package/dist/components/lists/listbox/listbox.types.d.ts +4 -4
- package/dist/components/lists/listbox-group/listbox-group.types.d.ts +4 -4
- package/dist/components/lists/listbox-group-label/listbox-group-label.types.d.ts +4 -4
- package/dist/components/lists/listbox-item/listbox-item.types.d.ts +8 -8
- package/dist/components/navigation/pagination/pagination-context.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination-navigation-helpers.d.ts +3 -3
- package/dist/components/navigation/pagination/pagination.qa.stories.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.stories.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.types.d.ts +9 -9
- package/dist/components/navigation/tabs/tab/tab.types.d.ts +9 -9
- package/dist/components/navigation/tabs/tab-list/tab-list.types.d.ts +4 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.types.d.ts +8 -8
- package/dist/components/navigation/tabs/tabs/tabs.types.d.ts +11 -11
- package/dist/components/navigation/tabs/tabs.qa.stories.d.ts +1 -1
- package/dist/components/navigation/tabs/tabs.stories.d.ts +1 -1
- package/dist/components/popovers/modal/index.d.ts +4 -4
- package/dist/components/popovers/modal/modal.qa.stories.d.ts +1 -1
- package/dist/components/popovers/modal/modal.types.d.ts +32 -32
- package/dist/components/popovers/popup/popup/index.d.ts +1 -1
- package/dist/components/popovers/popup/popup/popup.types.d.ts +6 -7
- package/dist/components/popovers/popup/popup/use-popup.d.ts +8 -8
- package/dist/components/popovers/popup/popup-content/popup-content.types.d.ts +10 -10
- package/dist/components/popovers/popup/popup.stories.d.ts +1 -1
- package/dist/components/popovers/tooltip/tooltip.qa.stories.d.ts +1 -1
- package/dist/components/popovers/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/components/popovers/tooltip/tooltip.types.d.ts +13 -13
- package/dist/components/surfaces/accordion/accordion/accordion.types.d.ts +4 -4
- package/dist/components/surfaces/accordion/accordion-content/accordion-content.types.d.ts +4 -4
- package/dist/components/surfaces/accordion/accordion-filter-header/accordion-filter-header.types.d.ts +5 -5
- package/dist/components/surfaces/accordion/accordion-group/accordion-group.types.d.ts +29 -29
- package/dist/components/surfaces/accordion/accordion-header/accordion-header.types.d.ts +4 -4
- package/dist/components/surfaces/accordion/accordion.qa.stories.d.ts +1 -1
- package/dist/components/surfaces/accordion/accordion.stories.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/date/aria-date-conversion.d.ts +10 -10
- package/dist/utils/date/date-validation.d.ts +5 -5
- package/dist/utils/filter-style-props.d.ts +29 -29
- package/dist/utils/hooks/index.d.ts +1 -1
- package/dist/utils/hooks/use-controlled-value.d.ts +1 -1
- package/dist/utils/hooks/use-hover.d.ts +3 -3
- package/dist/utils/types/index.d.ts +2 -2
- package/dist/utils/types/polymorphic-prop.types.d.ts +7 -7
- package/dist/utils/types/slots.types.d.ts +16 -16
- package/dist/utils/types/styles.types.d.ts +170 -170
- package/package.json +79 -69
- /package/dist/components/foundations/icon/deprecated/{NextStepIcon.d.ts → next-step-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/deprecated/{SortAscIcon.d.ts → sort-asc-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/deprecated/{SortDescIcon.d.ts → sort-desc-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/deprecated/{SortInactiveIcon.d.ts → sort-inactive-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AbTestIcon.d.ts → ab-test-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AggregateIcon.d.ts → aggregate-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AnalyticsIcon.d.ts → analytics-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AndroidIcon.d.ts → android-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AnonymizeIcon.d.ts → anonymize-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AppleIcon.d.ts → apple-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArchiveAltIcon.d.ts → archive-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArchiveIcon.d.ts → archive-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowCollapseIcon.d.ts → arrow-collapse-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowDownIcon.d.ts → arrow-down-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowExpandIcon.d.ts → arrow-expand-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowKeyboardNextIcon.d.ts → arrow-keyboard-next-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowKeyboardPreviousIcon.d.ts → arrow-keyboard-previous-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowKeyboardUpIcon.d.ts → arrow-keyboard-up-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowLeftIcon.d.ts → arrow-left-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowRightIcon.d.ts → arrow-right-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ArrowUpIcon.d.ts → arrow-up-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AttributeSlotIcon.d.ts → attribute-slot-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AxisIcon.d.ts → axis-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{AxisLimtIcon.d.ts → axis-limt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BarChartIcon.d.ts → bar-chart-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BooleanIcon.d.ts → boolean-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BoostIcon.d.ts → boost-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BracketsCancelIcon.d.ts → brackets-cancel-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BracketsIcon.d.ts → brackets-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BrowserIcon.d.ts → browser-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BrowserPushIcon.d.ts → browser-push-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{BuryIcon.d.ts → bury-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CalendarAltIcon.d.ts → calendar-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CalendarIcon.d.ts → calendar-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CatalogIcon.d.ts → catalog-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChatAddIcon.d.ts → chat-add-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChatIcon.d.ts → chat-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChatsIcon.d.ts → chats-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CheckCircleIcon.d.ts → check-circle-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CheckFilledIcon.d.ts → check-filled-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CheckIcon.d.ts → check-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CheckSmallIcon.d.ts → check-small-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronDownFillIcon.d.ts → chevron-down-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronDownIcon.d.ts → chevron-down-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronLeftFillIcon.d.ts → chevron-left-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronLeftIcon.d.ts → chevron-left-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronRightFillIcon.d.ts → chevron-right-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronRightIcon.d.ts → chevron-right-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronUpFillIcon.d.ts → chevron-up-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ChevronUpIcon.d.ts → chevron-up-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ClearFillIcon.d.ts → clear-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ClearIcon.d.ts → clear-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ClipboardAddIcon.d.ts → clipboard-add-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ClockCircleIcon.d.ts → clock-circle-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CloneIcon.d.ts → clone-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CloseIcon.d.ts → close-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CloseSmallIcon.d.ts → close-small-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CloudCheckIcon.d.ts → cloud-check-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CloudDownloadIcon.d.ts → cloud-download-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CodeIcon.d.ts → code-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ColorPickerAltIcon.d.ts → color-picker-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ColorPickerIcon.d.ts → color-picker-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ColumnsIcon.d.ts → columns-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ConditionAltIcon.d.ts → condition-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ConditionIcon.d.ts → condition-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ConsoleIcon.d.ts → console-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ConstantAltIcon.d.ts → constant-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ConstantIcon.d.ts → constant-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ContextualPersonalizationIcon.d.ts → contextual-personalization-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CopyIcon.d.ts → copy-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CopyToDashboardIcon.d.ts → copy-to-dashboard-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CsvIcon.d.ts → csv-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CustomRowIcon.d.ts → custom-row-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CustomerIcon.d.ts → customer-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CustomersFilterIcon.d.ts → customers-filter-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{CustomersSegmentationIcon.d.ts → customers-segmentation-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DateTimeIcon.d.ts → date-time-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DescriptionIcon.d.ts → description-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DesktopIcon.d.ts → desktop-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DisabledIcon.d.ts → disabled-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DivideIcon.d.ts → divide-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DocumentationIcon.d.ts → documentation-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DownloadIcon.d.ts → download-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DragHorizontalIcon.d.ts → drag-horizontal-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{DragVericalIcon.d.ts → drag-verical-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EditIcon.d.ts → edit-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EducationHubIcon.d.ts → education-hub-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EllipsisVerticalIcon.d.ts → ellipsis-vertical-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EllipsissHorizontalIcon.d.ts → ellipsiss-horizontal-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EmailIcon.d.ts → email-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EmojiPickerIcon.d.ts → emoji-picker-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EmptyIcon.d.ts → empty-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ErrorFillIcon.d.ts → error-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EventIcon.d.ts → event-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EventsSegmentationIcon.d.ts → events-segmentation-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ExperimentIcon.d.ts → experiment-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ExposeIcon.d.ts → expose-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ExpressionIcon.d.ts → expression-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ExternalLinkIcon.d.ts → external-link-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EyeCrossedIcon.d.ts → eye-crossed-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{EyeIcon.d.ts → eye-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FastForwardIcon.d.ts → fast-forward-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FileIcon.d.ts → file-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FileVideoIcon.d.ts → file-video-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FilterIcon.d.ts → filter-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FireIcon.d.ts → fire-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FolderEmptyIcon.d.ts → folder-empty-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FolderFullIcon.d.ts → folder-full-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ForceAddToRecallIcon.d.ts → force-add-to-recall-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ForceAddToRecallUndoIcon.d.ts → force-add-to-recall-undo-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FormulaExpressionIcon.d.ts → formula-expression-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FormulaIcon.d.ts → formula-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FromStartAltIcon.d.ts → from-start-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{FullscreenIcon.d.ts → fullscreen-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{GiftIcon.d.ts → gift-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{GoToIcon.d.ts → go-to-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{GraphStatsIcon.d.ts → graph-stats-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{GridAltIcon.d.ts → grid-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{GridIcon.d.ts → grid-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{HelpIcon.d.ts → help-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{HistoryIcon.d.ts → history-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{HomeIcon.d.ts → home-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{HtmlIcon.d.ts → html-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ImageSearchIcon.d.ts → image-search-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ImagesIcon.d.ts → images-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ImpactDownIcon.d.ts → impact-down-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{InfoFilledIcon.d.ts → info-filled-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{InfoIcon.d.ts → info-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{InfoSmallIcon.d.ts → info-small-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{InternetIcon.d.ts → internet-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{KeyIcon.d.ts → key-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{LayoutIcon.d.ts → layout-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{LikeIcon.d.ts → like-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{LineChartIcon.d.ts → line-chart-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{LinkIcon.d.ts → link-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ListIcon.d.ts → list-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{LoaderIcon.d.ts → loader-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{LockIcon.d.ts → lock-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MapIcon.d.ts → map-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MetricAltIcon.d.ts → metric-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MinusIcon.d.ts → minus-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobileAppInboxIcon.d.ts → mobile-app-inbox-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobileImageMessageIcon.d.ts → mobile-image-message-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobilePhoneLandscapeIcon.d.ts → mobile-phone-landscape-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobilePhonePortraitIcon.d.ts → mobile-phone-portrait-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobilePushIcon.d.ts → mobile-push-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobileSmsIcon.d.ts → mobile-sms-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MobileTextMessageIcon.d.ts → mobile-text-message-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MoveIcon.d.ts → move-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MultiParentRejectedIcon.d.ts → multi-parent-rejected-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MultiParentSelectedIcon.d.ts → multi-parent-selected-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{MultiParentUnassignedIcon.d.ts → multi-parent-unassigned-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{NegationIcon.d.ts → negation-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{NotificationIcon.d.ts → notification-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{NumberIcon.d.ts → number-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{OfflineFillIcon.d.ts → offline-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{OfflineIcon.d.ts → offline-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{OutOfStockIcon.d.ts → out-of-stock-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PagesIcon.d.ts → pages-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PaintIcon.d.ts → paint-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ParagraphCenterAlignIcon.d.ts → paragraph-center-align-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ParagraphLeftAlignIcon.d.ts → paragraph-left-align-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ParagraphRightAlignIcon.d.ts → paragraph-right-align-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PassDownIcon.d.ts → pass-down-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PassThroughIcon.d.ts → pass-through-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PercentageIcon.d.ts → percentage-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PersAlt1Icon.d.ts → pers-alt-1-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PersAlt2Icon.d.ts → pers-alt-2-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PersAlt3Icon.d.ts → pers-alt-3-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PersAlt4Icon.d.ts → pers-alt-4-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PictureAltIcon.d.ts → picture-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PictureIcon.d.ts → picture-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PinIcon.d.ts → pin-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PlugPlayIcon.d.ts → plug-play-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PlusCircleFillIcon.d.ts → plus-circle-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PlusCircleIcon.d.ts → plus-circle-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PlusIcon.d.ts → plus-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{PoverButtonIcon.d.ts → pover-button-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ProductSlotsIcon.d.ts → product-slots-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ReceiveIcon.d.ts → receive-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RefreshIcon.d.ts → refresh-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ReleaseNotesIcon.d.ts → release-notes-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RenameAltIcon.d.ts → rename-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RenameIcon.d.ts → rename-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ReorderIcon.d.ts → reorder-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ReportIcon.d.ts → report-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RetentionIcon.d.ts → retention-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RewertLeftIcon.d.ts → rewert-left-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RewertRightIcon.d.ts → rewert-right-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RibbonIcon.d.ts → ribbon-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RoadmapIcon.d.ts → roadmap-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RobotIcon.d.ts → robot-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RuleLabelIcon.d.ts → rule-label-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{RunningAggregateIcon.d.ts → running-aggregate-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SaveIcon.d.ts → save-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ScenarioIcon.d.ts → scenario-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SearchIcon.d.ts → search-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SecurityShieldIcon.d.ts → security-shield-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SendIcon.d.ts → send-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SettingsAltIcon.d.ts → settings-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SettingsIcon.d.ts → settings-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ShareIcon.d.ts → share-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ShopIcon.d.ts → shop-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{ShrinkIcon.d.ts → shrink-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SortIcon.d.ts → sort-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SplitFlowIcon.d.ts → split-flow-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SqlIcon.d.ts → sql-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StarFillIcon.d.ts → star-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StarIcon.d.ts → star-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StartFillIcon.d.ts → start-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StartIcon.d.ts → start-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StatusDotIcon.d.ts → status-dot-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StopIcon.d.ts → stop-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StopwatchIcon.d.ts → stopwatch-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StringComponentIcon.d.ts → string-component-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{StringIcon.d.ts → string-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SuggestionIcon.d.ts → suggestion-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SurveyIcon.d.ts → survey-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{SwapIcon.d.ts → swap-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TabletLangscapeIcon.d.ts → tablet-langscape-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TabletPortraitIcon.d.ts → tablet-portrait-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TagAltIcon.d.ts → tag-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TagIcon.d.ts → tag-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TemplateIcon.d.ts → template-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TextBoldIcon.d.ts → text-bold-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TextItalicIcon.d.ts → text-italic-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TextStyleIcon.d.ts → text-style-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TragetIcon.d.ts → traget-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TransferIcon.d.ts → transfer-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TrashIcon.d.ts → trash-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{TrendIcon.d.ts → trend-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UnExposeIcon.d.ts → un-expose-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UnarchiveAltIcon.d.ts → unarchive-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UndoIcon.d.ts → undo-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UnlinkIcon.d.ts → unlink-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UnlockIcon.d.ts → unlock-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UntilNowAltIcon.d.ts → until-now-alt-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UploadIcon.d.ts → upload-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UsagesIcon.d.ts → usages-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{UsersIcon.d.ts → users-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{VariantsIcon.d.ts → variants-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{VisualIcon.d.ts → visual-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{VoucherIcon.d.ts → voucher-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{WaitIcon.d.ts → wait-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{WalkthroughsIcon.d.ts → walkthroughs-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{WarningFillIcon.d.ts → warning-fill-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{WebhookIcon.d.ts → webhook-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{WeblayerIcon.d.ts → weblayer-icon.d.ts} +0 -0
- /package/dist/components/foundations/icon/icons/{WrenchIcon.d.ts → wrench-icon.d.ts} +0 -0
- /package/dist/{setupTests.d.ts → setup-tests.d.ts} +0 -0
- /package/dist/utils/{Slot.d.ts → slot.d.ts} +0 -0
- /package/dist/utils/{SlotsContext.d.ts → slots-context.d.ts} +0 -0
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { AutocompleteGroupedOption as MuiBaseAutocompleteGroupedOption } from '@mui/base';
|
|
1
|
+
import { FilterOptionsState, AutocompleteGroupedOption as MuiBaseAutocompleteGroupedOption } from '@mui/base';
|
|
2
2
|
import { ForwardedRef, ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export interface AutocompleteComponentType {
|
|
4
|
+
<AutocompleteOption extends NonNullable<unknown>, Multiple extends boolean = false, FreeSolo extends boolean = false>(props: AutocompleteProps<AutocompleteOption, Multiple, FreeSolo> & {
|
|
5
|
+
ref?: ForwardedRef<HTMLElement>;
|
|
6
|
+
}): null | ReactElement;
|
|
7
|
+
displayName?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export type AutocompleteGroupedOption<AutocompleteOption extends NonNullable<unknown>> = MuiBaseAutocompleteGroupedOption<AutocompleteOption>;
|
|
5
10
|
export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknown>, Multiple extends boolean, FreeSolo extends boolean> {
|
|
6
11
|
/**
|
|
7
12
|
* Custom class name for the container of the component.
|
|
@@ -27,6 +32,12 @@ export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknow
|
|
|
27
32
|
* @default false
|
|
28
33
|
*/
|
|
29
34
|
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Filter function to determine which options to show based on user input.
|
|
37
|
+
* @param options The array of options to filter
|
|
38
|
+
* @param state The current state of the autocomplete
|
|
39
|
+
*/
|
|
40
|
+
filterOptions?: (options: AutocompleteOption[], state: FilterOptionsState<AutocompleteOption>) => AutocompleteOption[];
|
|
30
41
|
/**
|
|
31
42
|
* If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
|
|
32
43
|
*/
|
|
@@ -37,9 +48,10 @@ export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknow
|
|
|
37
48
|
getOptionDisabled?: (option: AutocompleteOption) => boolean;
|
|
38
49
|
/**
|
|
39
50
|
* Used to determine the string value for a given option.
|
|
51
|
+
* This is used for filtering and input value display.
|
|
40
52
|
* @default (option) => option
|
|
41
53
|
*/
|
|
42
|
-
getOptionLabel?: (option:
|
|
54
|
+
getOptionLabel?: (option: AutocompleteFreeSoloValueMapping<FreeSolo> | AutocompleteOption) => string;
|
|
43
55
|
/**
|
|
44
56
|
* If provided, the options will be grouped under the returned string.
|
|
45
57
|
* The groupBy value is also used as the text for group headings
|
|
@@ -50,6 +62,10 @@ export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknow
|
|
|
50
62
|
* @default false
|
|
51
63
|
*/
|
|
52
64
|
hideSelectedOptions?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The input value.
|
|
67
|
+
*/
|
|
68
|
+
inputValue?: string;
|
|
53
69
|
/**
|
|
54
70
|
* If `true`, the component is in a loading state.
|
|
55
71
|
* @default false
|
|
@@ -78,6 +94,10 @@ export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknow
|
|
|
78
94
|
* Callback fired when the popup closes.
|
|
79
95
|
*/
|
|
80
96
|
onClose?: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Callback fired when the input value changes.
|
|
99
|
+
*/
|
|
100
|
+
onInputChange?: (event: SyntheticEvent, value: string) => void;
|
|
81
101
|
/**
|
|
82
102
|
* Callback fired when the popup opens.
|
|
83
103
|
*/
|
|
@@ -94,6 +114,11 @@ export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknow
|
|
|
94
114
|
* If `true`, the autocomplete is readonly.
|
|
95
115
|
*/
|
|
96
116
|
readOnly?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Used to render the option in the listbox.
|
|
119
|
+
* If not provided, getOptionLabel will be used.
|
|
120
|
+
*/
|
|
121
|
+
renderOption?: (option: AutocompleteOption) => ReactNode;
|
|
97
122
|
/**
|
|
98
123
|
* If `true`, the autocomplete is required.
|
|
99
124
|
* @default false
|
|
@@ -106,15 +131,9 @@ export interface AutocompleteProps<AutocompleteOption extends NonNullable<unknow
|
|
|
106
131
|
*/
|
|
107
132
|
value?: AutocompleteValue<AutocompleteOption, Multiple, FreeSolo>;
|
|
108
133
|
}
|
|
109
|
-
export interface AutocompleteGroupedOption<AutocompleteOption extends NonNullable<unknown>> extends MuiBaseAutocompleteGroupedOption<AutocompleteOption> {
|
|
110
|
-
}
|
|
111
134
|
export interface AutocompleteRenderGroupParams extends AutocompleteGroupedOption<object> {
|
|
112
135
|
children: ReactNode;
|
|
113
136
|
}
|
|
114
|
-
export
|
|
115
|
-
|
|
116
|
-
ref?: ForwardedRef<HTMLElement>;
|
|
117
|
-
}): ReactElement | null;
|
|
118
|
-
displayName?: string | undefined;
|
|
119
|
-
}
|
|
137
|
+
export type AutocompleteValue<Value, Multiple, FreeSolo> = Multiple extends true ? Array<AutocompleteFreeSoloValueMapping<FreeSolo> | Value> : AutocompleteFreeSoloValueMapping<FreeSolo> | null | Value;
|
|
138
|
+
type AutocompleteFreeSoloValueMapping<FreeSolo> = FreeSolo extends true ? string : never;
|
|
120
139
|
export {};
|
|
@@ -28,7 +28,7 @@ export interface BaseFieldProps {
|
|
|
28
28
|
* The position of the label.
|
|
29
29
|
* @default 'block-start'
|
|
30
30
|
*/
|
|
31
|
-
labelPosition?: 'block-start' | 'inline-
|
|
31
|
+
labelPosition?: 'block-start' | 'inline-end' | 'inline-start';
|
|
32
32
|
/**
|
|
33
33
|
* The metadata content.
|
|
34
34
|
*/
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { BaseInputProps } from './base-input.types';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* The base input component to enter and edit text.
|
|
5
|
-
* Should be used only by other components and not exposed to the end users.
|
|
6
|
-
*/
|
|
7
2
|
declare const BaseInput: import('react').ForwardRefExoticComponent<BaseInputProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
3
|
export default BaseInput;
|
|
@@ -77,15 +77,15 @@ export interface BaseInputProps {
|
|
|
77
77
|
* If `true`, the `input` or `textarea` will be read-only.
|
|
78
78
|
*/
|
|
79
79
|
readOnly?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* If `true`, the `input` or `textarea` will be required.
|
|
82
|
-
*/
|
|
83
|
-
required?: boolean;
|
|
84
80
|
/**
|
|
85
81
|
* Custom render function for the `input` or `textarea` element.
|
|
86
82
|
* Use this to render a custom `input` or `textarea` element.
|
|
87
83
|
*/
|
|
88
|
-
renderInput?: (props: InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, ref: RefCallback<HTMLInputElement | HTMLTextAreaElement>
|
|
84
|
+
renderInput?: (props: InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, ref: null | RefCallback<HTMLInputElement | HTMLTextAreaElement>) => JSX.Element;
|
|
85
|
+
/**
|
|
86
|
+
* If `true`, the `input` or `textarea` will be required.
|
|
87
|
+
*/
|
|
88
|
+
required?: boolean;
|
|
89
89
|
/**
|
|
90
90
|
* Icon or any element displayed at the start of the `input` or `textarea`.
|
|
91
91
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ArgTypes, Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as Calendar } from './calendar';
|
|
2
|
+
import { ArgTypes, Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
/**
|
|
4
4
|
* Convert the number values in the args to Date objects.
|
|
5
5
|
* The storybook URL contains the args as string values, so we need to convert them to Date objects.
|
|
6
6
|
*/
|
|
7
|
-
export declare const convertArgsToDate: (dateArgs: string[], args: Record<string,
|
|
7
|
+
export declare const convertArgsToDate: (dateArgs: string[], args: Record<string, unknown>) => Record<string, unknown>;
|
|
8
8
|
export declare const getDateArgNames: (argTypes: ArgTypes) => string[];
|
|
9
9
|
declare const meta: Meta<typeof Calendar>;
|
|
10
10
|
export default meta;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { CalendarState } from '@react-stately/calendar';
|
|
2
|
+
export interface CalendarBaseProps {
|
|
3
|
+
state: CalendarState;
|
|
4
|
+
}
|
|
2
5
|
export interface CalendarProps {
|
|
3
6
|
/**
|
|
4
7
|
* Custom class name for the container of the component.
|
|
@@ -46,6 +49,3 @@ export interface CalendarProps {
|
|
|
46
49
|
*/
|
|
47
50
|
value?: Date | null;
|
|
48
51
|
}
|
|
49
|
-
export interface CalendarBaseProps {
|
|
50
|
-
state: CalendarState;
|
|
51
|
-
}
|
|
@@ -5,12 +5,12 @@ export interface CalendarCellProps {
|
|
|
5
5
|
* Custom class name for the container of the component.
|
|
6
6
|
*/
|
|
7
7
|
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The state of the calendar. Use `useCalendarState` to get it.
|
|
10
|
-
*/
|
|
11
|
-
state: CalendarState;
|
|
12
8
|
/**
|
|
13
9
|
* The date of the cell. Came from the `CalendarGrid` component.
|
|
14
10
|
*/
|
|
15
11
|
date: CalendarDate;
|
|
12
|
+
/**
|
|
13
|
+
* The state of the calendar. Use `useCalendarState` to get it.
|
|
14
|
+
*/
|
|
15
|
+
state: CalendarState;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as Checkbox } from './checkbox';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof Checkbox>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof Checkbox>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface CheckboxProps {
|
|
3
|
-
/**
|
|
4
|
-
* Custom class name for the container of the component.
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
3
|
/**
|
|
8
4
|
* If `true`, the checkbox is checked.
|
|
9
5
|
*/
|
|
10
6
|
checked?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Custom class name for the container of the component.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
11
|
/**
|
|
12
12
|
* The state of the checkbox when it is initially rendered. Use when you do not need to control its state.
|
|
13
13
|
* @default false
|
|
@@ -18,6 +18,15 @@ export interface CheckboxProps {
|
|
|
18
18
|
* @default false
|
|
19
19
|
*/
|
|
20
20
|
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, the checkbox will be in indeterminate state.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
indeterminate?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The props applied to the input element.
|
|
28
|
+
*/
|
|
29
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
21
30
|
/**
|
|
22
31
|
* Callback fired when the state is changed.
|
|
23
32
|
*/
|
|
@@ -32,13 +41,4 @@ export interface CheckboxProps {
|
|
|
32
41
|
* @default false
|
|
33
42
|
*/
|
|
34
43
|
required?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* If `true`, the checkbox will be in indeterminate state.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
indeterminate?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* The props applied to the input element.
|
|
42
|
-
*/
|
|
43
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
44
44
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as CheckboxField } from './checkbox-field';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof CheckboxField>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof CheckboxField>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface CheckboxGroupContextType {
|
|
3
3
|
/**
|
|
4
4
|
* If `true`, all the checkboxes within the group will be disabled, preventing user interaction.
|
|
5
5
|
* @default false
|
|
@@ -11,5 +11,5 @@ export type CheckboxGroupContextType = {
|
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
13
13
|
readOnly?: boolean;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
export declare const CheckboxGroupContext: React.Context<CheckboxGroupContextType | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Args, Meta } from '@storybook/react';
|
|
2
1
|
import { Story } from './checkbox-group.stories';
|
|
2
|
+
import { Args, Meta } from '@storybook/react';
|
|
3
3
|
import { CheckboxGroupProps } from './checkbox-group.types';
|
|
4
4
|
type StoryArgs = Args & CheckboxGroupProps;
|
|
5
5
|
declare const meta: Meta<StoryArgs>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as CheckboxGroup } from './checkbox-group';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof CheckboxGroup>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof CheckboxGroup>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as DateInput } from './date-input';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof DateInput>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof DateInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as DatePicker } from './date-picker';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof DatePicker>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof DatePicker>;
|
|
@@ -6,7 +6,7 @@ import { DatePickerProps } from './date-picker.types';
|
|
|
6
6
|
* Custom hook for the DatePicker component.
|
|
7
7
|
*/
|
|
8
8
|
export declare function useDatePicker(props: DatePickerProps, state: DatePickerState): {
|
|
9
|
-
dateInputProps: DateInputProps;
|
|
10
9
|
calendarState: CalendarState;
|
|
10
|
+
dateInputProps: DateInputProps;
|
|
11
11
|
lockFocus: boolean;
|
|
12
12
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DateFieldState, DateSegment } from '@react-stately/datepicker';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export interface DateSegmentProps {
|
|
4
|
-
/**
|
|
5
|
-
* Custom class name for the container of the component.
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
4
|
/**
|
|
9
5
|
* The content of the component.
|
|
10
6
|
*/
|
|
11
7
|
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Custom class name for the container of the component.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
12
|
/**
|
|
13
13
|
* The segment of the date.
|
|
14
14
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface FieldLabelProps {
|
|
3
|
-
/**
|
|
4
|
-
* Custom class name for the container of the component.
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
3
|
/**
|
|
8
4
|
* The content of the component.
|
|
9
5
|
*/
|
|
10
6
|
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Custom class name for the container of the component.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
11
|
/**
|
|
12
12
|
* The `id` of the element the label is associated with.
|
|
13
13
|
*/
|
|
@@ -16,5 +16,5 @@ export interface FieldLabelProps {
|
|
|
16
16
|
* The size of the label.
|
|
17
17
|
* @default 'bold'
|
|
18
18
|
*/
|
|
19
|
-
view?: '
|
|
19
|
+
view?: 'bold' | 'normal';
|
|
20
20
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * from './autocomplete';
|
|
2
2
|
export * from './calendar';
|
|
3
|
+
export * from './checkbox';
|
|
3
4
|
export * from './checkbox-field';
|
|
4
5
|
export * from './checkbox-group';
|
|
5
|
-
export * from './checkbox';
|
|
6
6
|
export * from './date-input';
|
|
7
7
|
export * from './date-picker';
|
|
8
8
|
export * from './input-field';
|
|
9
|
+
export * from './radio';
|
|
9
10
|
export * from './radio-field';
|
|
10
11
|
export * from './radio-group';
|
|
11
|
-
export * from './radio';
|
|
12
12
|
export * from './select-field';
|
|
13
13
|
export * from './select-option';
|
|
14
14
|
export * from './text-field';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as InputField } from './input-field';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof InputField>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof InputField>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as RadioField } from './radio-field';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof RadioField>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof RadioField>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface RadioGroupContextType {
|
|
3
3
|
/**
|
|
4
4
|
* If `true`, all the radio buttons within the group will be disabled, preventing user interaction.
|
|
5
5
|
* @default false
|
|
@@ -29,6 +29,6 @@ export type RadioGroupContextType = {
|
|
|
29
29
|
/**
|
|
30
30
|
* The current value of the radio group. This is usually the value of the selected radio button within the group.
|
|
31
31
|
*/
|
|
32
|
-
value:
|
|
33
|
-
}
|
|
32
|
+
value: null | string;
|
|
33
|
+
}
|
|
34
34
|
export declare const RadioGroupContext: React.Context<RadioGroupContextType | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Args, Meta } from '@storybook/react';
|
|
2
1
|
import { Story } from './radio-group.stories';
|
|
2
|
+
import { Args, Meta } from '@storybook/react';
|
|
3
3
|
import { RadioGroupProps } from './radio-group.types';
|
|
4
4
|
type StoryArgs = Args & RadioGroupProps;
|
|
5
5
|
declare const meta: Meta<StoryArgs>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as RadioGroup } from './radio-group';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof RadioGroup>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof RadioGroup>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { ReactElement, default as React } from 'react';
|
|
2
2
|
export interface RadioGroupProps {
|
|
3
3
|
/**
|
|
4
4
|
* The child elements of the component. These are usually `Radio` or 'RadioField' components.
|
|
@@ -53,5 +53,5 @@ export interface RadioGroupProps {
|
|
|
53
53
|
* The value of the selected radio field in a controlled component.
|
|
54
54
|
* This is the value that the radio group starts with.
|
|
55
55
|
*/
|
|
56
|
-
value?:
|
|
56
|
+
value?: null | string;
|
|
57
57
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { ForwardedRef, ReactElement, ReactNode, default as React } from 'react';
|
|
2
|
+
export interface SelectComponentType {
|
|
3
|
+
<OptionValue extends NonNullable<unknown>, Multiple extends boolean = false>(props: SelectProps<OptionValue, Multiple> & {
|
|
4
|
+
ref?: ForwardedRef<HTMLElement>;
|
|
5
|
+
}): null | ReactElement;
|
|
6
|
+
displayName?: string | undefined;
|
|
7
|
+
}
|
|
3
8
|
export interface SelectProps<OptionValue extends NonNullable<unknown>, Multiple extends boolean> {
|
|
4
9
|
/**
|
|
5
10
|
* The content of the component.
|
|
@@ -38,7 +43,7 @@ export interface SelectProps<OptionValue extends NonNullable<unknown>, Multiple
|
|
|
38
43
|
/**
|
|
39
44
|
* Callback fired when an option is selected.
|
|
40
45
|
*/
|
|
41
|
-
onChange?: (event:
|
|
46
|
+
onChange?: (event: null | React.ChangeEvent<HTMLInputElement> | React.FocusEvent<Element, Element> | React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>, value: SelectValue<OptionValue, Multiple>) => void;
|
|
42
47
|
/**
|
|
43
48
|
* Text to show when there is no selected value.
|
|
44
49
|
*/
|
|
@@ -58,9 +63,4 @@ export interface SelectProps<OptionValue extends NonNullable<unknown>, Multiple
|
|
|
58
63
|
*/
|
|
59
64
|
value?: SelectValue<OptionValue, Multiple>;
|
|
60
65
|
}
|
|
61
|
-
export
|
|
62
|
-
<OptionValue extends NonNullable<unknown>, Multiple extends boolean = false>(props: SelectProps<OptionValue, Multiple> & {
|
|
63
|
-
ref?: ForwardedRef<HTMLElement>;
|
|
64
|
-
}): ReactElement | null;
|
|
65
|
-
displayName?: string | undefined;
|
|
66
|
-
}
|
|
66
|
+
export type SelectValue<Value, Multiple> = Multiple extends true ? Value[] : null | Value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Story } from './select-field.stories';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { SelectField } from '.';
|
|
3
|
-
import { Story } from './select-field.stories';
|
|
4
4
|
declare const meta: Meta<typeof SelectField>;
|
|
5
5
|
export default meta;
|
|
6
6
|
export declare const Basic: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as SelectField } from './select-field';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof SelectField>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story<ValueType extends NonNullable<unknown> = string, Multiple extends boolean = false> = StoryObj<typeof SelectField<ValueType, Multiple>>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ForwardedRef, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { SelectProps } from '../../internal';
|
|
3
|
+
export interface SelectFieldComponentType {
|
|
4
|
+
<OptionValue extends NonNullable<unknown>, Multiple extends boolean = false>(props: SelectFieldProps<OptionValue, Multiple> & {
|
|
5
|
+
ref?: ForwardedRef<HTMLElement>;
|
|
6
|
+
}): null | ReactElement;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
}
|
|
3
9
|
export interface SelectFieldProps<OptionValue extends NonNullable<unknown>, Multiple extends boolean> extends SelectProps<OptionValue, Multiple> {
|
|
4
10
|
/**
|
|
5
11
|
* The options of the select. Use the `SelectOption` component to define the options.
|
|
@@ -30,9 +36,3 @@ export interface SelectFieldProps<OptionValue extends NonNullable<unknown>, Mult
|
|
|
30
36
|
*/
|
|
31
37
|
tooltip?: ReactNode;
|
|
32
38
|
}
|
|
33
|
-
export interface SelectFieldComponentType {
|
|
34
|
-
<OptionValue extends NonNullable<unknown>, Multiple extends boolean = false>(props: SelectFieldProps<OptionValue, Multiple> & {
|
|
35
|
-
ref?: ForwardedRef<HTMLElement>;
|
|
36
|
-
}): ReactElement | null;
|
|
37
|
-
displayName?: string;
|
|
38
|
-
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { ForwardedRef, ReactElement, ReactNode } from 'react';
|
|
2
|
+
export interface SelectOptionComponentType {
|
|
3
|
+
<OptionValue>(props: SelectOptionProps<OptionValue> & {
|
|
4
|
+
ref?: ForwardedRef<HTMLElement>;
|
|
5
|
+
}): null | ReactElement;
|
|
6
|
+
displayName?: string;
|
|
7
|
+
}
|
|
2
8
|
export interface SelectOptionProps<OptionValue> {
|
|
3
|
-
/**
|
|
4
|
-
* Custom class name for the container of the component.
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
9
|
/**
|
|
8
10
|
* The content of the component.
|
|
9
11
|
*/
|
|
10
12
|
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Custom class name for the container of the component.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
11
17
|
/**
|
|
12
18
|
* If `true`, the option will be disabled.
|
|
13
19
|
*/
|
|
14
20
|
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* A text representation of the option's content. Used for keyboard text navigation matching.
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
15
25
|
/**
|
|
16
26
|
* The value of the option.
|
|
17
27
|
* If the value is an object it must have reference equality with the select in order to be selected.
|
|
18
28
|
*/
|
|
19
29
|
value: OptionValue;
|
|
20
|
-
/**
|
|
21
|
-
* A text representation of the option's content. Used for keyboard text navigation matching.
|
|
22
|
-
*/
|
|
23
|
-
label?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface SelectOptionComponentType {
|
|
26
|
-
<OptionValue>(props: SelectOptionProps<OptionValue> & {
|
|
27
|
-
ref?: ForwardedRef<HTMLElement>;
|
|
28
|
-
}): ReactElement | null;
|
|
29
|
-
displayName?: string;
|
|
30
30
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
1
|
import { default as TextField } from './text-field';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: Meta<typeof TextField>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export type Story = StoryObj<typeof TextField>;
|