carbon-react 118.1.0 → 118.2.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/esm/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
- package/esm/__internal__/input/input-presentation.style.js +1 -0
- package/esm/__internal__/input/input.style.js +1 -0
- package/esm/components/action-popover/action-popover.style.js +3 -0
- package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/esm/components/badge/badge.style.js +1 -1
- package/esm/components/batch-selection/batch-selection.style.js +6 -0
- package/esm/components/box/box.component.d.ts +3 -0
- package/esm/components/box/box.component.js +4 -0
- package/esm/components/button/button.style.js +10 -9
- package/esm/components/button-bar/button-bar.style.js +19 -0
- package/esm/components/button-minor/button-minor.style.js +42 -40
- package/esm/components/button-toggle/button-toggle.component.js +2 -1
- package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/esm/components/button-toggle/button-toggle.style.js +31 -13
- package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
- package/esm/components/card/__internal__/card-context/index.js +2 -0
- package/esm/components/card/card-footer/card-footer.component.js +9 -2
- package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/esm/components/card/card-footer/card-footer.style.js +10 -1
- package/esm/components/card/card.component.d.ts +3 -2
- package/esm/components/card/card.component.js +10 -1
- package/esm/components/card/card.style.d.ts +2 -1
- package/esm/components/card/card.style.js +3 -1
- package/esm/components/carousel/carousel.component.js +1 -1
- package/esm/components/carousel/carousel.style.js +4 -2
- package/esm/components/carousel/slide/slide.style.js +2 -0
- package/esm/components/checkbox/checkbox.style.js +2 -0
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/esm/components/date/__internal__/navbar/button.style.js +2 -0
- package/esm/components/dialog/dialog.style.js +5 -0
- package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
- package/esm/components/drawer/drawer.style.js +1 -0
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/esm/components/flat-table/flat-table.component.js +56 -2
- package/esm/components/flat-table/flat-table.style.js +101 -1
- package/esm/components/flat-table/sort/sort.style.js +1 -0
- package/esm/components/icon-button/icon-button.style.js +1 -0
- package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
- package/esm/components/link/link.style.js +1 -0
- package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
- package/esm/components/link-preview/link-preview.style.js +1 -0
- package/esm/components/loader/loader-square.style.js +5 -0
- package/esm/components/loader-bar/loader-bar.style.js +1 -0
- package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/esm/components/menu/menu.style.js +13 -6
- package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
- package/esm/components/message/message.style.js +2 -0
- package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
- package/esm/components/note/note.style.js +1 -0
- package/esm/components/numeral-date/numeral-date.component.js +2 -0
- package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/esm/components/numeral-date/numeral-date.style.js +12 -0
- package/esm/components/pager/pager.component.js +5 -5
- package/esm/components/pager/pager.style.js +2 -0
- package/esm/components/pill/pill.component.d.ts +3 -1
- package/esm/components/pill/pill.component.js +1 -0
- package/esm/components/pill/pill.style.js +5 -15
- package/esm/components/pod/pod.style.js +6 -0
- package/esm/components/popover-container/popover-container.style.js +1 -0
- package/esm/components/portrait/portrait-gravatar.component.js +1 -1
- package/esm/components/portrait/portrait-initials.component.js +1 -1
- package/esm/components/portrait/portrait.component.js +1 -1
- package/esm/components/portrait/portrait.style.js +1 -3
- package/esm/components/profile/profile.component.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
- package/esm/components/radio-button/radio-button.style.js +1 -1
- package/esm/components/search/search-button.style.js +5 -0
- package/esm/components/search/search.style.js +7 -0
- package/esm/components/select/__internal__/select-list-context.d.ts +7 -0
- package/esm/components/select/__internal__/select-text/index.d.ts +2 -0
- package/esm/components/select/__internal__/select-text/index.js +1 -0
- package/esm/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
- package/esm/components/select/__internal__/select-text/select-text.component.js +16 -36
- package/esm/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
- package/esm/components/select/filterable-select/filterable-select.component.d.ts +65 -0
- package/esm/components/select/filterable-select/filterable-select.component.js +568 -102
- package/esm/components/select/filterable-select/index.d.ts +2 -1
- package/esm/components/select/filterable-select/index.js +1 -0
- package/esm/components/select/index.d.ts +6 -0
- package/esm/components/select/index.js +6 -6
- package/esm/components/select/list-action-button/index.d.ts +2 -0
- package/esm/components/select/list-action-button/index.js +1 -0
- package/esm/components/select/list-action-button/list-action-button.component.d.ts +7 -0
- package/esm/components/select/list-action-button/list-action-button.component.js +9 -6
- package/esm/components/select/list-action-button/list-action-button.style.d.ts +2 -0
- package/esm/components/select/multi-select/index.d.ts +2 -1
- package/esm/components/select/multi-select/index.js +1 -0
- package/esm/components/select/multi-select/multi-select.component.d.ts +62 -0
- package/esm/components/select/multi-select/multi-select.component.js +575 -104
- package/esm/components/select/multi-select/multi-select.style.d.ts +4 -0
- package/esm/components/select/multi-select/multi-select.style.js +1 -0
- package/esm/components/select/option/index.d.ts +2 -25
- package/esm/components/select/option/index.js +1 -0
- package/esm/components/select/option/option.component.d.ts +34 -0
- package/esm/components/select/option/option.component.js +399 -62
- package/esm/components/select/option/option.style.d.ts +6 -0
- package/esm/components/select/option/option.style.js +0 -5
- package/esm/components/select/option-group-header/index.d.ts +2 -10
- package/esm/components/select/option-group-header/index.js +1 -0
- package/esm/components/select/option-group-header/option-group-header.component.d.ts +16 -0
- package/esm/components/select/option-group-header/option-group-header.component.js +4 -15
- package/esm/components/select/option-group-header/option-group-header.style.d.ts +2 -0
- package/esm/components/select/option-row/index.d.ts +2 -16
- package/esm/components/select/option-row/index.js +1 -0
- package/esm/components/select/option-row/option-row.component.d.ts +42 -0
- package/esm/components/select/option-row/option-row.component.js +10 -40
- package/esm/components/select/option-row/option-row.style.d.ts +6 -0
- package/esm/components/select/select-list/index.d.ts +2 -0
- package/esm/components/select/select-list/index.js +1 -0
- package/esm/components/select/select-list/select-list-container.style.d.ts +6 -0
- package/esm/components/select/select-list/select-list-container.style.js +1 -0
- package/esm/components/select/select-list/select-list.component.d.ts +64 -0
- package/esm/components/select/select-list/select-list.component.js +69 -100
- package/esm/components/select/select-list/select-list.style.d.ts +12 -0
- package/esm/components/select/select-list/select-list.style.js +2 -2
- package/esm/components/select/select-textbox/index.d.ts +2 -1
- package/esm/components/select/select-textbox/index.js +1 -0
- package/esm/components/select/select-textbox/select-textbox.component.d.ts +81 -0
- package/esm/components/select/select-textbox/select-textbox.component.js +567 -142
- package/esm/components/select/select.style.d.ts +8 -0
- package/esm/components/select/simple-select/index.d.ts +2 -1
- package/esm/components/select/simple-select/index.js +1 -0
- package/esm/components/select/simple-select/simple-select.component.d.ts +58 -0
- package/esm/components/select/simple-select/simple-select.component.js +578 -111
- package/esm/components/select/utils/get-next-child-by-text.d.ts +5 -0
- package/esm/components/select/utils/get-next-child-by-text.js +20 -17
- package/esm/components/select/utils/get-next-index-by-key.d.ts +2 -0
- package/esm/components/select/utils/highlight-part-of-text.d.ts +2 -0
- package/esm/components/select/utils/highlight-part-of-text.js +10 -3
- package/esm/components/select/utils/is-expected-option.d.ts +2 -0
- package/esm/components/select/utils/is-expected-option.js +1 -1
- package/esm/components/select/utils/is-expected-value.d.ts +1 -0
- package/esm/components/select/utils/is-expected-value.js +1 -1
- package/esm/components/select/utils/is-navigation-key.d.ts +1 -0
- package/esm/components/select/utils/matching-text.style.d.ts +2 -0
- package/esm/components/select/utils/with-filter.hoc.d.ts +14 -0
- package/esm/components/select/utils/with-filter.hoc.js +59 -41
- package/esm/components/split-button/split-button-children.style.d.ts +1 -0
- package/esm/components/split-button/split-button-children.style.js +28 -0
- package/esm/components/split-button/split-button-toggle.style.js +6 -1
- package/esm/components/split-button/split-button.style.js +5 -2
- package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
- package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/esm/components/text-editor/text-editor.style.js +3 -0
- package/esm/components/tile/tile.component.d.ts +3 -1
- package/esm/components/tile/tile.component.js +3 -1
- package/esm/components/tile/tile.style.d.ts +1 -1
- package/esm/components/tile/tile.style.js +4 -1
- package/esm/components/tile-select/tile-select.style.d.ts +1 -0
- package/esm/components/tile-select/tile-select.style.js +8 -0
- package/esm/components/tooltip/tooltip.style.js +1 -0
- package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
- package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
- package/lib/__internal__/input/input-presentation.style.js +1 -0
- package/lib/__internal__/input/input.style.js +1 -0
- package/lib/components/action-popover/action-popover.style.js +3 -0
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/batch-selection/batch-selection.style.js +6 -0
- package/lib/components/box/box.component.d.ts +3 -0
- package/lib/components/box/box.component.js +4 -0
- package/lib/components/button/button.style.js +10 -9
- package/lib/components/button-bar/button-bar.style.js +19 -0
- package/lib/components/button-minor/button-minor.style.js +42 -40
- package/lib/components/button-toggle/button-toggle.component.js +2 -1
- package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/lib/components/button-toggle/button-toggle.style.js +31 -13
- package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
- package/lib/components/card/__internal__/card-context/index.js +14 -0
- package/lib/components/card/__internal__/card-context/package.json +6 -0
- package/lib/components/card/card-footer/card-footer.component.js +14 -2
- package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/lib/components/card/card-footer/card-footer.style.js +10 -1
- package/lib/components/card/card.component.d.ts +3 -2
- package/lib/components/card/card.component.js +11 -1
- package/lib/components/card/card.style.d.ts +2 -1
- package/lib/components/card/card.style.js +3 -1
- package/lib/components/carousel/carousel.component.js +1 -1
- package/lib/components/carousel/carousel.style.js +4 -2
- package/lib/components/carousel/slide/slide.style.js +2 -0
- package/lib/components/checkbox/checkbox.style.js +2 -0
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/lib/components/date/__internal__/navbar/button.style.js +2 -0
- package/lib/components/dialog/dialog.style.js +5 -0
- package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
- package/lib/components/drawer/drawer.style.js +1 -0
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/lib/components/flat-table/flat-table.component.js +60 -2
- package/lib/components/flat-table/flat-table.style.js +102 -1
- package/lib/components/flat-table/sort/sort.style.js +1 -0
- package/lib/components/icon-button/icon-button.style.js +1 -0
- package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
- package/lib/components/link/link.style.js +1 -0
- package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
- package/lib/components/link-preview/link-preview.style.js +1 -0
- package/lib/components/loader/loader-square.style.js +5 -0
- package/lib/components/loader-bar/loader-bar.style.js +1 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/lib/components/menu/menu.style.js +13 -6
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
- package/lib/components/message/message.style.js +2 -0
- package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
- package/lib/components/note/note.style.js +1 -0
- package/lib/components/numeral-date/numeral-date.component.js +2 -0
- package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/lib/components/numeral-date/numeral-date.style.js +12 -0
- package/lib/components/pager/pager.component.js +5 -5
- package/lib/components/pager/pager.style.js +2 -0
- package/lib/components/pill/pill.component.d.ts +3 -1
- package/lib/components/pill/pill.component.js +1 -0
- package/lib/components/pill/pill.style.js +5 -15
- package/lib/components/pod/pod.style.js +6 -0
- package/lib/components/popover-container/popover-container.style.js +1 -0
- package/lib/components/portrait/portrait-gravatar.component.js +1 -1
- package/lib/components/portrait/portrait-initials.component.js +1 -1
- package/lib/components/portrait/portrait.component.js +1 -1
- package/lib/components/portrait/portrait.style.js +1 -3
- package/lib/components/profile/profile.component.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
- package/lib/components/radio-button/radio-button.style.js +1 -1
- package/lib/components/search/search-button.style.js +5 -0
- package/lib/components/search/search.style.js +7 -0
- package/lib/components/select/__internal__/select-list-context.d.ts +7 -0
- package/lib/components/select/__internal__/select-text/index.d.ts +2 -0
- package/lib/components/select/__internal__/select-text/index.js +15 -0
- package/lib/components/select/__internal__/select-text/package.json +6 -0
- package/lib/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
- package/lib/components/select/__internal__/select-text/select-text.component.js +16 -36
- package/lib/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
- package/lib/components/select/filterable-select/filterable-select.component.d.ts +65 -0
- package/lib/components/select/filterable-select/filterable-select.component.js +569 -103
- package/lib/components/select/filterable-select/index.d.ts +2 -1
- package/lib/components/select/filterable-select/index.js +15 -0
- package/lib/components/select/filterable-select/package.json +6 -0
- package/lib/components/select/index.d.ts +6 -0
- package/lib/components/select/index.js +6 -6
- package/lib/components/select/list-action-button/index.d.ts +2 -0
- package/lib/components/select/list-action-button/index.js +15 -0
- package/lib/components/select/list-action-button/list-action-button.component.d.ts +7 -0
- package/lib/components/select/list-action-button/list-action-button.component.js +9 -6
- package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
- package/lib/components/select/list-action-button/package.json +6 -0
- package/lib/components/select/multi-select/index.d.ts +2 -1
- package/lib/components/select/multi-select/index.js +15 -0
- package/lib/components/select/multi-select/multi-select.component.d.ts +62 -0
- package/lib/components/select/multi-select/multi-select.component.js +576 -105
- package/lib/components/select/multi-select/multi-select.style.d.ts +4 -0
- package/lib/components/select/multi-select/multi-select.style.js +1 -0
- package/lib/components/select/multi-select/package.json +6 -0
- package/lib/components/select/option/index.d.ts +2 -25
- package/lib/components/select/option/index.js +15 -0
- package/lib/components/select/option/option.component.d.ts +34 -0
- package/lib/components/select/option/option.component.js +399 -62
- package/lib/components/select/option/option.style.d.ts +6 -0
- package/lib/components/select/option/option.style.js +0 -8
- package/lib/components/select/option/package.json +6 -0
- package/lib/components/select/option-group-header/index.d.ts +2 -10
- package/lib/components/select/option-group-header/index.js +15 -0
- package/lib/components/select/option-group-header/option-group-header.component.d.ts +16 -0
- package/lib/components/select/option-group-header/option-group-header.component.js +4 -15
- package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
- package/lib/components/select/option-group-header/package.json +6 -0
- package/lib/components/select/option-row/index.d.ts +2 -16
- package/lib/components/select/option-row/index.js +15 -0
- package/lib/components/select/option-row/option-row.component.d.ts +42 -0
- package/lib/components/select/option-row/option-row.component.js +10 -40
- package/lib/components/select/option-row/option-row.style.d.ts +6 -0
- package/lib/components/select/option-row/package.json +6 -0
- package/lib/components/select/select-list/index.d.ts +2 -0
- package/lib/components/select/select-list/index.js +15 -0
- package/lib/components/select/select-list/package.json +6 -0
- package/lib/components/select/select-list/select-list-container.style.d.ts +6 -0
- package/lib/components/select/select-list/select-list-container.style.js +1 -0
- package/lib/components/select/select-list/select-list.component.d.ts +64 -0
- package/lib/components/select/select-list/select-list.component.js +69 -100
- package/lib/components/select/select-list/select-list.style.d.ts +12 -0
- package/lib/components/select/select-list/select-list.style.js +2 -2
- package/lib/components/select/select-textbox/index.d.ts +2 -1
- package/lib/components/select/select-textbox/index.js +15 -0
- package/lib/components/select/select-textbox/package.json +6 -0
- package/lib/components/select/select-textbox/select-textbox.component.d.ts +81 -0
- package/lib/components/select/select-textbox/select-textbox.component.js +567 -142
- package/lib/components/select/select.style.d.ts +8 -0
- package/lib/components/select/simple-select/index.d.ts +2 -1
- package/lib/components/select/simple-select/index.js +15 -0
- package/lib/components/select/simple-select/package.json +6 -0
- package/lib/components/select/simple-select/simple-select.component.d.ts +58 -0
- package/lib/components/select/simple-select/simple-select.component.js +579 -113
- package/lib/components/select/utils/get-next-child-by-text.d.ts +5 -0
- package/lib/components/select/utils/get-next-child-by-text.js +20 -17
- package/lib/components/select/utils/get-next-index-by-key.d.ts +2 -0
- package/lib/components/select/utils/highlight-part-of-text.d.ts +2 -0
- package/lib/components/select/utils/highlight-part-of-text.js +10 -3
- package/lib/components/select/utils/is-expected-option.d.ts +2 -0
- package/lib/components/select/utils/is-expected-option.js +1 -1
- package/lib/components/select/utils/is-expected-value.d.ts +1 -0
- package/lib/components/select/utils/is-expected-value.js +1 -1
- package/lib/components/select/utils/is-navigation-key.d.ts +1 -0
- package/lib/components/select/utils/matching-text.style.d.ts +2 -0
- package/lib/components/select/utils/with-filter.hoc.d.ts +14 -0
- package/lib/components/select/utils/with-filter.hoc.js +59 -42
- package/lib/components/split-button/split-button-children.style.d.ts +1 -0
- package/lib/components/split-button/split-button-children.style.js +30 -1
- package/lib/components/split-button/split-button-toggle.style.js +6 -1
- package/lib/components/split-button/split-button.style.js +5 -2
- package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/lib/components/text-editor/text-editor.style.js +3 -0
- package/lib/components/tile/tile.component.d.ts +3 -1
- package/lib/components/tile/tile.component.js +3 -1
- package/lib/components/tile/tile.style.d.ts +1 -1
- package/lib/components/tile/tile.style.js +4 -1
- package/lib/components/tile-select/tile-select.style.d.ts +1 -0
- package/lib/components/tile-select/tile-select.style.js +8 -0
- package/lib/components/tooltip/tooltip.style.js +1 -0
- package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
- package/package.json +1 -1
- package/esm/components/select/__internal__/select-text/select-text.d.ts +0 -36
- package/esm/components/select/filterable-select/filterable-select.d.ts +0 -71
- package/esm/components/select/multi-select/multi-select.d.ts +0 -68
- package/esm/components/select/select-textbox/select-textbox.d.ts +0 -72
- package/esm/components/select/simple-select/simple-select.d.ts +0 -64
- package/lib/components/select/__internal__/select-text/select-text.d.ts +0 -36
- package/lib/components/select/filterable-select/filterable-select.d.ts +0 -71
- package/lib/components/select/multi-select/multi-select.d.ts +0 -68
- package/lib/components/select/select-textbox/select-textbox.d.ts +0 -72
- package/lib/components/select/simple-select/simple-select.d.ts +0 -64
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const StyledSelectPillContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
declare const StyledSelectMultiSelect: import("styled-components").StyledComponent<"div", any, import("../select.style").StyledSelectProps, never>;
|
|
3
|
+
declare const StyledAccessibilityLabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export { StyledSelectPillContainer, StyledSelectMultiSelect, StyledAccessibilityLabelContainer, };
|
|
@@ -43,6 +43,7 @@ const StyledSelectMultiSelect = (0, _styledComponents.default)(_select.default)`
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
${_inputPresentation.default} {
|
|
46
|
+
// size has a default value of "medium" defined in StyledSelect, but TS can't see this
|
|
46
47
|
padding-right: ${({
|
|
47
48
|
size
|
|
48
49
|
}) => _inputSizes.default[size].height};
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface OptionProps {
|
|
4
|
-
/** The option's visible text, displayed within <Textbox> of <Select>, and used for filtering */
|
|
5
|
-
text: string;
|
|
6
|
-
/** Optional: alternative rendered content, displayed within <SelectList> of <Select> (eg: an icon, an image, etc) */
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
/** The option's invisible internal value */
|
|
9
|
-
value: string | Record<string, unknown>;
|
|
10
|
-
/** MultiSelect only - custom Pill border color - provide any color from palette or any valid css color value. */
|
|
11
|
-
borderColor?: string;
|
|
12
|
-
/** MultiSelect only - fill Pill background with color */
|
|
13
|
-
fill?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
* @ignore
|
|
17
|
-
* OnClick callback */
|
|
18
|
-
onClick?: (ev: React.MouseEvent<HTMLLIElement>) => void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare function Option(
|
|
22
|
-
props: OptionProps & React.RefAttributes<HTMLLIElement>
|
|
23
|
-
): JSX.Element;
|
|
24
|
-
|
|
25
|
-
export default Option;
|
|
1
|
+
export { default } from "./option.component";
|
|
2
|
+
export type { OptionProps } from "./option.component";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _option.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _option = _interopRequireDefault(require("./option.component"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface OptionProps extends Omit<React.InputHTMLAttributes<HTMLLIElement>, "value" | "onSelect" | "onClick"> {
|
|
3
|
+
/** The option's visible text, displayed within <Textbox> of <Select>, and used for filtering */
|
|
4
|
+
text: string;
|
|
5
|
+
/** Optional: alternative rendered content, displayed within <SelectList> of <Select> (eg: an icon, an image, etc) */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** The option's invisible internal value */
|
|
8
|
+
value: string | Record<string, unknown>;
|
|
9
|
+
/** MultiSelect only - custom Pill border color - provide any color from palette or any valid css color value. */
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
/** MultiSelect only - fill Pill background with color */
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
* @ignore
|
|
16
|
+
* OnClick callback */
|
|
17
|
+
onClick?: (value: string | Record<string, unknown>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* @private
|
|
20
|
+
* @ignore
|
|
21
|
+
* OnSelect callback */
|
|
22
|
+
onSelect?: (target?: {
|
|
23
|
+
text?: string;
|
|
24
|
+
value?: string | Record<string, unknown>;
|
|
25
|
+
id?: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
/**
|
|
28
|
+
* @private
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
index?: number;
|
|
32
|
+
}
|
|
33
|
+
declare const Option: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<HTMLLIElement>>;
|
|
34
|
+
export default Option;
|
|
@@ -42,20 +42,14 @@ const Option = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
42
42
|
|
|
43
43
|
function handleClick() {
|
|
44
44
|
if (!onClick) {
|
|
45
|
-
onSelect({
|
|
45
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect({
|
|
46
46
|
text,
|
|
47
47
|
value,
|
|
48
48
|
id
|
|
49
49
|
});
|
|
50
50
|
} else {
|
|
51
|
-
onSelect();
|
|
52
|
-
onClick(
|
|
53
|
-
target: {
|
|
54
|
-
text,
|
|
55
|
-
value,
|
|
56
|
-
id
|
|
57
|
-
}
|
|
58
|
-
});
|
|
51
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
52
|
+
onClick(value);
|
|
59
53
|
}
|
|
60
54
|
}
|
|
61
55
|
|
|
@@ -73,59 +67,402 @@ const Option = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
73
67
|
});
|
|
74
68
|
|
|
75
69
|
Option.propTypes = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
70
|
+
"about": _propTypes.default.string,
|
|
71
|
+
"accept": _propTypes.default.string,
|
|
72
|
+
"accessKey": _propTypes.default.string,
|
|
73
|
+
"alt": _propTypes.default.string,
|
|
74
|
+
"aria-activedescendant": _propTypes.default.string,
|
|
75
|
+
"aria-atomic": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
76
|
+
"aria-autocomplete": _propTypes.default.oneOf(["both", "inline", "list", "none"]),
|
|
77
|
+
"aria-busy": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
78
|
+
"aria-checked": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
|
|
79
|
+
"aria-colcount": _propTypes.default.number,
|
|
80
|
+
"aria-colindex": _propTypes.default.number,
|
|
81
|
+
"aria-colspan": _propTypes.default.number,
|
|
82
|
+
"aria-controls": _propTypes.default.string,
|
|
83
|
+
"aria-current": _propTypes.default.oneOfType([_propTypes.default.oneOf(["date", "false", "location", "page", "step", "time", "true"]), _propTypes.default.bool]),
|
|
84
|
+
"aria-describedby": _propTypes.default.string,
|
|
85
|
+
"aria-details": _propTypes.default.string,
|
|
86
|
+
"aria-disabled": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
87
|
+
"aria-dropeffect": _propTypes.default.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
|
|
88
|
+
"aria-errormessage": _propTypes.default.string,
|
|
89
|
+
"aria-expanded": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
90
|
+
"aria-flowto": _propTypes.default.string,
|
|
91
|
+
"aria-grabbed": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
92
|
+
"aria-haspopup": _propTypes.default.oneOfType([_propTypes.default.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), _propTypes.default.bool]),
|
|
93
|
+
"aria-hidden": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
94
|
+
"aria-invalid": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "grammar", "spelling", "true"]), _propTypes.default.bool]),
|
|
95
|
+
"aria-keyshortcuts": _propTypes.default.string,
|
|
96
|
+
"aria-label": _propTypes.default.string,
|
|
97
|
+
"aria-labelledby": _propTypes.default.string,
|
|
98
|
+
"aria-level": _propTypes.default.number,
|
|
99
|
+
"aria-live": _propTypes.default.oneOf(["assertive", "off", "polite"]),
|
|
100
|
+
"aria-modal": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
101
|
+
"aria-multiline": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
102
|
+
"aria-multiselectable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
103
|
+
"aria-orientation": _propTypes.default.oneOf(["horizontal", "vertical"]),
|
|
104
|
+
"aria-owns": _propTypes.default.string,
|
|
105
|
+
"aria-placeholder": _propTypes.default.string,
|
|
106
|
+
"aria-posinset": _propTypes.default.number,
|
|
107
|
+
"aria-pressed": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
|
|
108
|
+
"aria-readonly": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
109
|
+
"aria-relevant": _propTypes.default.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
|
|
110
|
+
"aria-required": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
111
|
+
"aria-roledescription": _propTypes.default.string,
|
|
112
|
+
"aria-rowcount": _propTypes.default.number,
|
|
113
|
+
"aria-rowindex": _propTypes.default.number,
|
|
114
|
+
"aria-rowspan": _propTypes.default.number,
|
|
115
|
+
"aria-selected": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
116
|
+
"aria-setsize": _propTypes.default.number,
|
|
117
|
+
"aria-sort": _propTypes.default.oneOf(["ascending", "descending", "none", "other"]),
|
|
118
|
+
"aria-valuemax": _propTypes.default.number,
|
|
119
|
+
"aria-valuemin": _propTypes.default.number,
|
|
120
|
+
"aria-valuenow": _propTypes.default.number,
|
|
121
|
+
"aria-valuetext": _propTypes.default.string,
|
|
122
|
+
"autoCapitalize": _propTypes.default.string,
|
|
123
|
+
"autoComplete": _propTypes.default.string,
|
|
124
|
+
"autoCorrect": _propTypes.default.string,
|
|
125
|
+
"autoFocus": _propTypes.default.bool,
|
|
126
|
+
"autoSave": _propTypes.default.string,
|
|
127
|
+
"borderColor": _propTypes.default.string,
|
|
128
|
+
"capture": _propTypes.default.oneOfType([_propTypes.default.oneOf(["environment", "user"]), _propTypes.default.bool]),
|
|
129
|
+
"checked": _propTypes.default.bool,
|
|
130
|
+
"children": _propTypes.default.node,
|
|
131
|
+
"className": _propTypes.default.string,
|
|
132
|
+
"color": _propTypes.default.string,
|
|
133
|
+
"contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
|
|
134
|
+
"contextMenu": _propTypes.default.string,
|
|
135
|
+
"crossOrigin": _propTypes.default.string,
|
|
136
|
+
"css": _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
137
|
+
"__emotion_styles": _propTypes.default.any.isRequired
|
|
138
|
+
}), _propTypes.default.string, _propTypes.default.bool]),
|
|
139
|
+
"dangerouslySetInnerHTML": _propTypes.default.shape({
|
|
140
|
+
"__html": _propTypes.default.string.isRequired
|
|
141
|
+
}),
|
|
142
|
+
"datatype": _propTypes.default.string,
|
|
143
|
+
"defaultChecked": _propTypes.default.bool,
|
|
144
|
+
"defaultValue": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.number, _propTypes.default.string]),
|
|
145
|
+
"dir": _propTypes.default.string,
|
|
146
|
+
"disabled": _propTypes.default.bool,
|
|
147
|
+
"draggable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
148
|
+
"enterKeyHint": _propTypes.default.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
149
|
+
"fill": _propTypes.default.bool,
|
|
150
|
+
"form": _propTypes.default.string,
|
|
151
|
+
"formAction": _propTypes.default.string,
|
|
152
|
+
"formEncType": _propTypes.default.string,
|
|
153
|
+
"formMethod": _propTypes.default.string,
|
|
154
|
+
"formNoValidate": _propTypes.default.bool,
|
|
155
|
+
"formTarget": _propTypes.default.string,
|
|
156
|
+
"height": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
157
|
+
"hidden": _propTypes.default.bool,
|
|
158
|
+
"id": _propTypes.default.string,
|
|
159
|
+
"index": _propTypes.default.number,
|
|
160
|
+
"inlist": _propTypes.default.any,
|
|
161
|
+
"inputMode": _propTypes.default.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
162
|
+
"is": _propTypes.default.string,
|
|
163
|
+
"itemID": _propTypes.default.string,
|
|
164
|
+
"itemProp": _propTypes.default.string,
|
|
165
|
+
"itemRef": _propTypes.default.string,
|
|
166
|
+
"itemScope": _propTypes.default.bool,
|
|
167
|
+
"itemType": _propTypes.default.string,
|
|
168
|
+
"lang": _propTypes.default.string,
|
|
169
|
+
"list": _propTypes.default.string,
|
|
170
|
+
"max": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
171
|
+
"maxLength": _propTypes.default.number,
|
|
172
|
+
"min": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
173
|
+
"minLength": _propTypes.default.number,
|
|
174
|
+
"multiple": _propTypes.default.bool,
|
|
175
|
+
"name": _propTypes.default.string,
|
|
176
|
+
"onAbort": _propTypes.default.func,
|
|
177
|
+
"onAbortCapture": _propTypes.default.func,
|
|
178
|
+
"onAnimationEnd": _propTypes.default.func,
|
|
179
|
+
"onAnimationEndCapture": _propTypes.default.func,
|
|
180
|
+
"onAnimationIteration": _propTypes.default.func,
|
|
181
|
+
"onAnimationIterationCapture": _propTypes.default.func,
|
|
182
|
+
"onAnimationStart": _propTypes.default.func,
|
|
183
|
+
"onAnimationStartCapture": _propTypes.default.func,
|
|
184
|
+
"onAuxClick": _propTypes.default.func,
|
|
185
|
+
"onAuxClickCapture": _propTypes.default.func,
|
|
186
|
+
"onBeforeInput": _propTypes.default.func,
|
|
187
|
+
"onBeforeInputCapture": _propTypes.default.func,
|
|
188
|
+
"onBlur": _propTypes.default.func,
|
|
189
|
+
"onBlurCapture": _propTypes.default.func,
|
|
190
|
+
"onCanPlay": _propTypes.default.func,
|
|
191
|
+
"onCanPlayCapture": _propTypes.default.func,
|
|
192
|
+
"onCanPlayThrough": _propTypes.default.func,
|
|
193
|
+
"onCanPlayThroughCapture": _propTypes.default.func,
|
|
194
|
+
"onChange": _propTypes.default.func,
|
|
195
|
+
"onChangeCapture": _propTypes.default.func,
|
|
196
|
+
"onClick": _propTypes.default.func,
|
|
197
|
+
"onClickCapture": _propTypes.default.func,
|
|
198
|
+
"onCompositionEnd": _propTypes.default.func,
|
|
199
|
+
"onCompositionEndCapture": _propTypes.default.func,
|
|
200
|
+
"onCompositionStart": _propTypes.default.func,
|
|
201
|
+
"onCompositionStartCapture": _propTypes.default.func,
|
|
202
|
+
"onCompositionUpdate": _propTypes.default.func,
|
|
203
|
+
"onCompositionUpdateCapture": _propTypes.default.func,
|
|
204
|
+
"onContextMenu": _propTypes.default.func,
|
|
205
|
+
"onContextMenuCapture": _propTypes.default.func,
|
|
206
|
+
"onCopy": _propTypes.default.func,
|
|
207
|
+
"onCopyCapture": _propTypes.default.func,
|
|
208
|
+
"onCut": _propTypes.default.func,
|
|
209
|
+
"onCutCapture": _propTypes.default.func,
|
|
210
|
+
"onDoubleClick": _propTypes.default.func,
|
|
211
|
+
"onDoubleClickCapture": _propTypes.default.func,
|
|
212
|
+
"onDrag": _propTypes.default.func,
|
|
213
|
+
"onDragCapture": _propTypes.default.func,
|
|
214
|
+
"onDragEnd": _propTypes.default.func,
|
|
215
|
+
"onDragEndCapture": _propTypes.default.func,
|
|
216
|
+
"onDragEnter": _propTypes.default.func,
|
|
217
|
+
"onDragEnterCapture": _propTypes.default.func,
|
|
218
|
+
"onDragExit": _propTypes.default.func,
|
|
219
|
+
"onDragExitCapture": _propTypes.default.func,
|
|
220
|
+
"onDragLeave": _propTypes.default.func,
|
|
221
|
+
"onDragLeaveCapture": _propTypes.default.func,
|
|
222
|
+
"onDragOver": _propTypes.default.func,
|
|
223
|
+
"onDragOverCapture": _propTypes.default.func,
|
|
224
|
+
"onDragStart": _propTypes.default.func,
|
|
225
|
+
"onDragStartCapture": _propTypes.default.func,
|
|
226
|
+
"onDrop": _propTypes.default.func,
|
|
227
|
+
"onDropCapture": _propTypes.default.func,
|
|
228
|
+
"onDurationChange": _propTypes.default.func,
|
|
229
|
+
"onDurationChangeCapture": _propTypes.default.func,
|
|
230
|
+
"onEmptied": _propTypes.default.func,
|
|
231
|
+
"onEmptiedCapture": _propTypes.default.func,
|
|
232
|
+
"onEncrypted": _propTypes.default.func,
|
|
233
|
+
"onEncryptedCapture": _propTypes.default.func,
|
|
234
|
+
"onEnded": _propTypes.default.func,
|
|
235
|
+
"onEndedCapture": _propTypes.default.func,
|
|
236
|
+
"onError": _propTypes.default.func,
|
|
237
|
+
"onErrorCapture": _propTypes.default.func,
|
|
238
|
+
"onFocus": _propTypes.default.func,
|
|
239
|
+
"onFocusCapture": _propTypes.default.func,
|
|
240
|
+
"onGotPointerCapture": _propTypes.default.func,
|
|
241
|
+
"onGotPointerCaptureCapture": _propTypes.default.func,
|
|
242
|
+
"onInput": _propTypes.default.func,
|
|
243
|
+
"onInputCapture": _propTypes.default.func,
|
|
244
|
+
"onInvalid": _propTypes.default.func,
|
|
245
|
+
"onInvalidCapture": _propTypes.default.func,
|
|
246
|
+
"onKeyDown": _propTypes.default.func,
|
|
247
|
+
"onKeyDownCapture": _propTypes.default.func,
|
|
248
|
+
"onKeyPress": _propTypes.default.func,
|
|
249
|
+
"onKeyPressCapture": _propTypes.default.func,
|
|
250
|
+
"onKeyUp": _propTypes.default.func,
|
|
251
|
+
"onKeyUpCapture": _propTypes.default.func,
|
|
252
|
+
"onLoad": _propTypes.default.func,
|
|
253
|
+
"onLoadCapture": _propTypes.default.func,
|
|
254
|
+
"onLoadedData": _propTypes.default.func,
|
|
255
|
+
"onLoadedDataCapture": _propTypes.default.func,
|
|
256
|
+
"onLoadedMetadata": _propTypes.default.func,
|
|
257
|
+
"onLoadedMetadataCapture": _propTypes.default.func,
|
|
258
|
+
"onLoadStart": _propTypes.default.func,
|
|
259
|
+
"onLoadStartCapture": _propTypes.default.func,
|
|
260
|
+
"onLostPointerCapture": _propTypes.default.func,
|
|
261
|
+
"onLostPointerCaptureCapture": _propTypes.default.func,
|
|
262
|
+
"onMouseDown": _propTypes.default.func,
|
|
263
|
+
"onMouseDownCapture": _propTypes.default.func,
|
|
264
|
+
"onMouseEnter": _propTypes.default.func,
|
|
265
|
+
"onMouseLeave": _propTypes.default.func,
|
|
266
|
+
"onMouseMove": _propTypes.default.func,
|
|
267
|
+
"onMouseMoveCapture": _propTypes.default.func,
|
|
268
|
+
"onMouseOut": _propTypes.default.func,
|
|
269
|
+
"onMouseOutCapture": _propTypes.default.func,
|
|
270
|
+
"onMouseOver": _propTypes.default.func,
|
|
271
|
+
"onMouseOverCapture": _propTypes.default.func,
|
|
272
|
+
"onMouseUp": _propTypes.default.func,
|
|
273
|
+
"onMouseUpCapture": _propTypes.default.func,
|
|
274
|
+
"onPaste": _propTypes.default.func,
|
|
275
|
+
"onPasteCapture": _propTypes.default.func,
|
|
276
|
+
"onPause": _propTypes.default.func,
|
|
277
|
+
"onPauseCapture": _propTypes.default.func,
|
|
278
|
+
"onPlay": _propTypes.default.func,
|
|
279
|
+
"onPlayCapture": _propTypes.default.func,
|
|
280
|
+
"onPlaying": _propTypes.default.func,
|
|
281
|
+
"onPlayingCapture": _propTypes.default.func,
|
|
282
|
+
"onPointerCancel": _propTypes.default.func,
|
|
283
|
+
"onPointerCancelCapture": _propTypes.default.func,
|
|
284
|
+
"onPointerDown": _propTypes.default.func,
|
|
285
|
+
"onPointerDownCapture": _propTypes.default.func,
|
|
286
|
+
"onPointerEnter": _propTypes.default.func,
|
|
287
|
+
"onPointerEnterCapture": _propTypes.default.func,
|
|
288
|
+
"onPointerLeave": _propTypes.default.func,
|
|
289
|
+
"onPointerLeaveCapture": _propTypes.default.func,
|
|
290
|
+
"onPointerMove": _propTypes.default.func,
|
|
291
|
+
"onPointerMoveCapture": _propTypes.default.func,
|
|
292
|
+
"onPointerOut": _propTypes.default.func,
|
|
293
|
+
"onPointerOutCapture": _propTypes.default.func,
|
|
294
|
+
"onPointerOver": _propTypes.default.func,
|
|
295
|
+
"onPointerOverCapture": _propTypes.default.func,
|
|
296
|
+
"onPointerUp": _propTypes.default.func,
|
|
297
|
+
"onPointerUpCapture": _propTypes.default.func,
|
|
298
|
+
"onProgress": _propTypes.default.func,
|
|
299
|
+
"onProgressCapture": _propTypes.default.func,
|
|
300
|
+
"onRateChange": _propTypes.default.func,
|
|
301
|
+
"onRateChangeCapture": _propTypes.default.func,
|
|
302
|
+
"onReset": _propTypes.default.func,
|
|
303
|
+
"onResetCapture": _propTypes.default.func,
|
|
304
|
+
"onScroll": _propTypes.default.func,
|
|
305
|
+
"onScrollCapture": _propTypes.default.func,
|
|
306
|
+
"onSeeked": _propTypes.default.func,
|
|
307
|
+
"onSeekedCapture": _propTypes.default.func,
|
|
308
|
+
"onSeeking": _propTypes.default.func,
|
|
309
|
+
"onSeekingCapture": _propTypes.default.func,
|
|
310
|
+
"onSelect": _propTypes.default.func,
|
|
311
|
+
"onSelectCapture": _propTypes.default.func,
|
|
312
|
+
"onStalled": _propTypes.default.func,
|
|
313
|
+
"onStalledCapture": _propTypes.default.func,
|
|
314
|
+
"onSubmit": _propTypes.default.func,
|
|
315
|
+
"onSubmitCapture": _propTypes.default.func,
|
|
316
|
+
"onSuspend": _propTypes.default.func,
|
|
317
|
+
"onSuspendCapture": _propTypes.default.func,
|
|
318
|
+
"onTimeUpdate": _propTypes.default.func,
|
|
319
|
+
"onTimeUpdateCapture": _propTypes.default.func,
|
|
320
|
+
"onTouchCancel": _propTypes.default.func,
|
|
321
|
+
"onTouchCancelCapture": _propTypes.default.func,
|
|
322
|
+
"onTouchEnd": _propTypes.default.func,
|
|
323
|
+
"onTouchEndCapture": _propTypes.default.func,
|
|
324
|
+
"onTouchMove": _propTypes.default.func,
|
|
325
|
+
"onTouchMoveCapture": _propTypes.default.func,
|
|
326
|
+
"onTouchStart": _propTypes.default.func,
|
|
327
|
+
"onTouchStartCapture": _propTypes.default.func,
|
|
328
|
+
"onTransitionEnd": _propTypes.default.func,
|
|
329
|
+
"onTransitionEndCapture": _propTypes.default.func,
|
|
330
|
+
"onVolumeChange": _propTypes.default.func,
|
|
331
|
+
"onVolumeChangeCapture": _propTypes.default.func,
|
|
332
|
+
"onWaiting": _propTypes.default.func,
|
|
333
|
+
"onWaitingCapture": _propTypes.default.func,
|
|
334
|
+
"onWheel": _propTypes.default.func,
|
|
335
|
+
"onWheelCapture": _propTypes.default.func,
|
|
336
|
+
"pattern": _propTypes.default.string,
|
|
337
|
+
"placeholder": _propTypes.default.string,
|
|
338
|
+
"prefix": _propTypes.default.string,
|
|
339
|
+
"property": _propTypes.default.string,
|
|
340
|
+
"radioGroup": _propTypes.default.string,
|
|
341
|
+
"readOnly": _propTypes.default.bool,
|
|
342
|
+
"required": _propTypes.default.bool,
|
|
343
|
+
"resource": _propTypes.default.string,
|
|
344
|
+
"results": _propTypes.default.number,
|
|
345
|
+
"role": _propTypes.default.oneOfType([_propTypes.default.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), _propTypes.default.shape({
|
|
346
|
+
"__@iterator": _propTypes.default.func.isRequired,
|
|
347
|
+
"anchor": _propTypes.default.func.isRequired,
|
|
348
|
+
"at": _propTypes.default.func.isRequired,
|
|
349
|
+
"big": _propTypes.default.func.isRequired,
|
|
350
|
+
"blink": _propTypes.default.func.isRequired,
|
|
351
|
+
"bold": _propTypes.default.func.isRequired,
|
|
352
|
+
"charAt": _propTypes.default.func.isRequired,
|
|
353
|
+
"charCodeAt": _propTypes.default.func.isRequired,
|
|
354
|
+
"codePointAt": _propTypes.default.func.isRequired,
|
|
355
|
+
"concat": _propTypes.default.func.isRequired,
|
|
356
|
+
"endsWith": _propTypes.default.func.isRequired,
|
|
357
|
+
"fixed": _propTypes.default.func.isRequired,
|
|
358
|
+
"fontcolor": _propTypes.default.func.isRequired,
|
|
359
|
+
"fontsize": _propTypes.default.func.isRequired,
|
|
360
|
+
"includes": _propTypes.default.func.isRequired,
|
|
361
|
+
"indexOf": _propTypes.default.func.isRequired,
|
|
362
|
+
"italics": _propTypes.default.func.isRequired,
|
|
363
|
+
"lastIndexOf": _propTypes.default.func.isRequired,
|
|
364
|
+
"length": _propTypes.default.number.isRequired,
|
|
365
|
+
"link": _propTypes.default.func.isRequired,
|
|
366
|
+
"localeCompare": _propTypes.default.func.isRequired,
|
|
367
|
+
"match": _propTypes.default.func.isRequired,
|
|
368
|
+
"matchAll": _propTypes.default.func.isRequired,
|
|
369
|
+
"normalize": _propTypes.default.func.isRequired,
|
|
370
|
+
"padEnd": _propTypes.default.func.isRequired,
|
|
371
|
+
"padStart": _propTypes.default.func.isRequired,
|
|
372
|
+
"repeat": _propTypes.default.func.isRequired,
|
|
373
|
+
"replace": _propTypes.default.func.isRequired,
|
|
374
|
+
"search": _propTypes.default.func.isRequired,
|
|
375
|
+
"slice": _propTypes.default.func.isRequired,
|
|
376
|
+
"small": _propTypes.default.func.isRequired,
|
|
377
|
+
"split": _propTypes.default.func.isRequired,
|
|
378
|
+
"startsWith": _propTypes.default.func.isRequired,
|
|
379
|
+
"strike": _propTypes.default.func.isRequired,
|
|
380
|
+
"sub": _propTypes.default.func.isRequired,
|
|
381
|
+
"substr": _propTypes.default.func.isRequired,
|
|
382
|
+
"substring": _propTypes.default.func.isRequired,
|
|
383
|
+
"sup": _propTypes.default.func.isRequired,
|
|
384
|
+
"toLocaleLowerCase": _propTypes.default.func.isRequired,
|
|
385
|
+
"toLocaleUpperCase": _propTypes.default.func.isRequired,
|
|
386
|
+
"toLowerCase": _propTypes.default.func.isRequired,
|
|
387
|
+
"toString": _propTypes.default.func.isRequired,
|
|
388
|
+
"toUpperCase": _propTypes.default.func.isRequired,
|
|
389
|
+
"trim": _propTypes.default.func.isRequired,
|
|
390
|
+
"trimEnd": _propTypes.default.func.isRequired,
|
|
391
|
+
"trimLeft": _propTypes.default.func.isRequired,
|
|
392
|
+
"trimRight": _propTypes.default.func.isRequired,
|
|
393
|
+
"trimStart": _propTypes.default.func.isRequired,
|
|
394
|
+
"valueOf": _propTypes.default.func.isRequired
|
|
395
|
+
})]),
|
|
396
|
+
"security": _propTypes.default.string,
|
|
397
|
+
"size": _propTypes.default.number,
|
|
398
|
+
"slot": _propTypes.default.string,
|
|
399
|
+
"spellCheck": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
400
|
+
"src": _propTypes.default.string,
|
|
401
|
+
"step": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
402
|
+
"style": _propTypes.default.object,
|
|
403
|
+
"suppressContentEditableWarning": _propTypes.default.bool,
|
|
404
|
+
"suppressHydrationWarning": _propTypes.default.bool,
|
|
405
|
+
"tabIndex": _propTypes.default.number,
|
|
406
|
+
"text": _propTypes.default.string.isRequired,
|
|
407
|
+
"title": _propTypes.default.string,
|
|
408
|
+
"translate": _propTypes.default.oneOf(["no", "yes"]),
|
|
409
|
+
"type": _propTypes.default.oneOfType([_propTypes.default.oneOf(["button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week"]), _propTypes.default.shape({
|
|
410
|
+
"__@iterator": _propTypes.default.func.isRequired,
|
|
411
|
+
"anchor": _propTypes.default.func.isRequired,
|
|
412
|
+
"at": _propTypes.default.func.isRequired,
|
|
413
|
+
"big": _propTypes.default.func.isRequired,
|
|
414
|
+
"blink": _propTypes.default.func.isRequired,
|
|
415
|
+
"bold": _propTypes.default.func.isRequired,
|
|
416
|
+
"charAt": _propTypes.default.func.isRequired,
|
|
417
|
+
"charCodeAt": _propTypes.default.func.isRequired,
|
|
418
|
+
"codePointAt": _propTypes.default.func.isRequired,
|
|
419
|
+
"concat": _propTypes.default.func.isRequired,
|
|
420
|
+
"endsWith": _propTypes.default.func.isRequired,
|
|
421
|
+
"fixed": _propTypes.default.func.isRequired,
|
|
422
|
+
"fontcolor": _propTypes.default.func.isRequired,
|
|
423
|
+
"fontsize": _propTypes.default.func.isRequired,
|
|
424
|
+
"includes": _propTypes.default.func.isRequired,
|
|
425
|
+
"indexOf": _propTypes.default.func.isRequired,
|
|
426
|
+
"italics": _propTypes.default.func.isRequired,
|
|
427
|
+
"lastIndexOf": _propTypes.default.func.isRequired,
|
|
428
|
+
"length": _propTypes.default.number.isRequired,
|
|
429
|
+
"link": _propTypes.default.func.isRequired,
|
|
430
|
+
"localeCompare": _propTypes.default.func.isRequired,
|
|
431
|
+
"match": _propTypes.default.func.isRequired,
|
|
432
|
+
"matchAll": _propTypes.default.func.isRequired,
|
|
433
|
+
"normalize": _propTypes.default.func.isRequired,
|
|
434
|
+
"padEnd": _propTypes.default.func.isRequired,
|
|
435
|
+
"padStart": _propTypes.default.func.isRequired,
|
|
436
|
+
"repeat": _propTypes.default.func.isRequired,
|
|
437
|
+
"replace": _propTypes.default.func.isRequired,
|
|
438
|
+
"search": _propTypes.default.func.isRequired,
|
|
439
|
+
"slice": _propTypes.default.func.isRequired,
|
|
440
|
+
"small": _propTypes.default.func.isRequired,
|
|
441
|
+
"split": _propTypes.default.func.isRequired,
|
|
442
|
+
"startsWith": _propTypes.default.func.isRequired,
|
|
443
|
+
"strike": _propTypes.default.func.isRequired,
|
|
444
|
+
"sub": _propTypes.default.func.isRequired,
|
|
445
|
+
"substr": _propTypes.default.func.isRequired,
|
|
446
|
+
"substring": _propTypes.default.func.isRequired,
|
|
447
|
+
"sup": _propTypes.default.func.isRequired,
|
|
448
|
+
"toLocaleLowerCase": _propTypes.default.func.isRequired,
|
|
449
|
+
"toLocaleUpperCase": _propTypes.default.func.isRequired,
|
|
450
|
+
"toLowerCase": _propTypes.default.func.isRequired,
|
|
451
|
+
"toString": _propTypes.default.func.isRequired,
|
|
452
|
+
"toUpperCase": _propTypes.default.func.isRequired,
|
|
453
|
+
"trim": _propTypes.default.func.isRequired,
|
|
454
|
+
"trimEnd": _propTypes.default.func.isRequired,
|
|
455
|
+
"trimLeft": _propTypes.default.func.isRequired,
|
|
456
|
+
"trimRight": _propTypes.default.func.isRequired,
|
|
457
|
+
"trimStart": _propTypes.default.func.isRequired,
|
|
458
|
+
"valueOf": _propTypes.default.func.isRequired
|
|
459
|
+
})]),
|
|
460
|
+
"typeof": _propTypes.default.string,
|
|
461
|
+
"unselectable": _propTypes.default.oneOf(["off", "on"]),
|
|
462
|
+
"value": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired,
|
|
463
|
+
"vocab": _propTypes.default.string,
|
|
464
|
+
"width": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
129
465
|
};
|
|
466
|
+
Option.displayName = "Option";
|
|
130
467
|
var _default = Option;
|
|
131
468
|
exports.default = _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OptionProps } from ".";
|
|
2
|
+
interface StyledOptionProps extends Pick<OptionProps, "id"> {
|
|
3
|
+
isHighlighted?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const StyledOption: import("styled-components").StyledComponent<"li", any, StyledOptionProps, never>;
|
|
6
|
+
export default StyledOption;
|
|
@@ -7,10 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
15
11
|
|
|
16
12
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -41,9 +37,5 @@ const StyledOption = _styledComponents.default.li`
|
|
|
41
37
|
background-color: var(--colorsUtilityMajor100);
|
|
42
38
|
}
|
|
43
39
|
`;
|
|
44
|
-
StyledOption.propTypes = {
|
|
45
|
-
id: _propTypes.default.any,
|
|
46
|
-
isHighlighted: _propTypes.default.bool
|
|
47
|
-
};
|
|
48
40
|
var _default = StyledOption;
|
|
49
41
|
exports.default = _default;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
/** Any valid Carbon icon name */
|
|
5
|
-
icon?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare function OptionGroupHeader(props: OptionGroupHeaderProps): JSX.Element;
|
|
9
|
-
|
|
10
|
-
export default OptionGroupHeader;
|
|
1
|
+
export { default } from "./option-group-header.component";
|
|
2
|
+
export type { OptionGroupHeaderProps } from "./option-group-header.component";
|