carbon-react 124.2.0 → 124.2.2
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__/checkable-input/checkable-input.component.js +0 -1
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +0 -1
- package/esm/__internal__/focus-trap/focus-trap-utils.js +0 -1
- package/esm/__internal__/input/input.component.js +0 -1
- package/esm/components/accordion/accordion-group/accordion-group.component.js +1 -0
- package/esm/components/box/box.component.js +303 -45
- package/esm/components/checkbox/checkbox.component.js +0 -1
- package/esm/components/date/__internal__/utils.js +0 -1
- package/esm/components/date/date.component.js +0 -7
- package/esm/components/decimal/decimal.component.js +0 -1
- package/esm/components/grouped-character/grouped-character.component.js +0 -1
- package/esm/components/message/message-content/message-content.style.js +0 -8
- package/esm/components/navigation-bar/navigation-bar.component.js +293 -35
- package/esm/components/number/number.component.js +0 -1
- package/esm/components/radio-button/radio-button.component.js +0 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +7 -2
- package/esm/components/select/multi-select/multi-select.component.js +0 -1
- package/esm/components/select/option/option.component.js +0 -1
- package/esm/components/select/select-textbox/select-textbox.component.js +1 -5
- package/esm/components/select/simple-select/simple-select.component.js +0 -1
- package/esm/components/switch/switch.component.js +0 -1
- package/esm/components/textarea/textarea.component.js +0 -1
- package/esm/components/textbox/textbox.component.js +4 -5
- package/esm/components/toast/toast.component.js +4 -4
- package/esm/components/toast/toast.style.d.ts +14 -13
- package/esm/components/toast/toast.style.js +42 -14
- package/lib/__internal__/character-count/character-count.component.js +1 -2
- package/lib/__internal__/character-count/character-count.style.js +6 -10
- package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.js +1 -2
- package/lib/__internal__/checkable-input/checkable-input.component.js +3 -5
- package/lib/__internal__/checkable-input/checkable-input.style.js +5 -7
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +3 -5
- package/lib/__internal__/checkable-input/hidden-checkable-input.style.js +1 -2
- package/lib/__internal__/field-help/field-help.component.js +1 -2
- package/lib/__internal__/field-help/field-help.style.js +3 -4
- package/lib/__internal__/fieldset/fieldset.component.js +3 -4
- package/lib/__internal__/fieldset/fieldset.style.js +6 -9
- package/lib/__internal__/focus-trap/focus-trap-utils.js +1 -3
- package/lib/__internal__/focus-trap/focus-trap.component.js +6 -8
- package/lib/__internal__/form-field/form-field.component.js +3 -4
- package/lib/__internal__/form-field/form-field.style.js +4 -6
- package/lib/__internal__/form-spacing-provider/form-spacing-context.js +1 -2
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +1 -2
- package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +3 -4
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +4 -6
- package/lib/__internal__/i18n-context/index.js +1 -2
- package/lib/__internal__/input/index.js +1 -2
- package/lib/__internal__/input/input-presentation.component.js +3 -4
- package/lib/__internal__/input/input-presentation.style.js +4 -6
- package/lib/__internal__/input/input-sizes.style.js +1 -2
- package/lib/__internal__/input/input.component.js +3 -5
- package/lib/__internal__/input/input.style.js +3 -4
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +1 -2
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +1 -2
- package/lib/__internal__/input-behaviour/useInputBehaviour.js +1 -2
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.js +1 -2
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +3 -4
- package/lib/__internal__/label/icon-wrapper.style.js +1 -2
- package/lib/__internal__/label/label.component.js +3 -4
- package/lib/__internal__/label/label.style.js +4 -6
- package/lib/__internal__/popover/popover.component.js +3 -4
- package/lib/__internal__/popover/popover.style.js +3 -5
- package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +3 -4
- package/lib/__internal__/sticky-footer/sticky-footer.component.js +3 -4
- package/lib/__internal__/sticky-footer/sticky-footer.style.js +3 -4
- package/lib/__internal__/tooltip-provider/index.js +3 -4
- package/lib/__internal__/utils/helpers/browser-type-check/index.js +1 -2
- package/lib/__internal__/utils/helpers/events/events.js +1 -2
- package/lib/__internal__/utils/helpers/tags/tags.js +1 -2
- package/lib/__internal__/utils/logger/index.js +1 -2
- package/lib/__internal__/validation-message/validation-message.component.js +1 -2
- package/lib/__internal__/validation-message/validation-message.style.js +3 -4
- package/lib/__internal__/validations/validation-icon.component.js +3 -4
- package/lib/__internal__/validations/validation-icon.style.js +3 -4
- package/lib/__spec_helper__/mock-resize-observer.js +1 -2
- package/lib/__spec_helper__/test-utils.js +6 -12
- package/lib/components/accordion/accordion-group/accordion-group.component.js +3 -4
- package/lib/components/accordion/accordion.component.js +4 -6
- package/lib/components/accordion/accordion.style.js +11 -20
- package/lib/components/action-popover/action-popover-context.js +1 -2
- package/lib/components/action-popover/action-popover-divider/action-popover-divider.component.js +1 -2
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +3 -4
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +3 -4
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +1 -2
- package/lib/components/action-popover/action-popover.component.js +3 -4
- package/lib/components/action-popover/action-popover.style.js +15 -27
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +3 -4
- package/lib/components/advanced-color-picker/advanced-color-picker.component.js +3 -4
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +7 -11
- package/lib/components/alert/alert.component.js +1 -2
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +1 -2
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +3 -4
- package/lib/components/anchor-navigation/anchor-navigation.component.js +3 -4
- package/lib/components/anchor-navigation/anchor-navigation.style.js +4 -7
- package/lib/components/anchor-navigation/anchor-section-divider.component.js +1 -2
- package/lib/components/badge/badge.component.js +1 -2
- package/lib/components/badge/badge.style.js +6 -10
- package/lib/components/batch-selection/batch-selection.component.js +1 -2
- package/lib/components/batch-selection/batch-selection.style.js +5 -7
- package/lib/components/box/box.component.js +305 -49
- package/lib/components/box/box.config.js +2 -3
- package/lib/components/box/box.style.js +3 -4
- package/lib/components/breadcrumbs/breadcrumbs.component.js +2 -4
- package/lib/components/breadcrumbs/breadcrumbs.style.js +1 -2
- package/lib/components/breadcrumbs/crumb/crumb.component.js +1 -2
- package/lib/components/breadcrumbs/crumb/crumb.style.js +6 -9
- package/lib/components/button/button.component.js +4 -6
- package/lib/components/button/button.config.js +3 -6
- package/lib/components/button/button.style.js +4 -6
- package/lib/components/button/index.js +2 -2
- package/lib/components/button-bar/button-bar.component.js +2 -4
- package/lib/components/button-bar/button-bar.config.js +2 -4
- package/lib/components/button-bar/button-bar.style.js +3 -4
- package/lib/components/button-minor/button-minor.component.js +3 -4
- package/lib/components/button-minor/button-minor.style.js +3 -4
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +4 -6
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.js +4 -6
- package/lib/components/button-toggle/button-toggle-icon.component.js +1 -2
- package/lib/components/button-toggle/button-toggle.component.js +3 -4
- package/lib/components/button-toggle/button-toggle.style.js +7 -11
- package/lib/components/carbon-provider/carbon-provider.component.js +4 -6
- package/lib/components/carbon-provider/top-modal-context.js +3 -4
- package/lib/components/card/__internal__/card-context/index.js +1 -2
- package/lib/components/card/card-column/card-column.component.js +1 -2
- package/lib/components/card/card-column/card-column.style.js +1 -2
- package/lib/components/card/card-footer/card-footer.component.js +3 -4
- package/lib/components/card/card-footer/card-footer.style.js +3 -4
- package/lib/components/card/card-row/card-row.component.js +1 -2
- package/lib/components/card/card-row/card-row.style.js +3 -4
- package/lib/components/card/card.component.js +3 -4
- package/lib/components/card/card.config.js +2 -4
- package/lib/components/card/card.style.js +3 -4
- package/lib/components/carousel/carousel.component.js +3 -4
- package/lib/components/carousel/carousel.style.js +16 -29
- package/lib/components/carousel/slide/slide.component.js +1 -2
- package/lib/components/carousel/slide/slide.style.js +4 -5
- package/lib/components/carousel/slide.config.js +3 -5
- package/lib/components/checkbox/checkbox-group.component.js +4 -6
- package/lib/components/checkbox/checkbox-group.style.js +4 -6
- package/lib/components/checkbox/checkbox-svg.component.js +1 -2
- package/lib/components/checkbox/checkbox.component.js +4 -7
- package/lib/components/checkbox/checkbox.style.js +3 -4
- package/lib/components/confirm/confirm.component.js +3 -4
- package/lib/components/confirm/confirm.config.js +1 -2
- package/lib/components/confirm/confirm.style.js +5 -7
- package/lib/components/content/content.component.js +1 -2
- package/lib/components/content/content.style.js +6 -9
- package/lib/components/date/__internal__/date-formats/index.js +1 -2
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +3 -4
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +3 -4
- package/lib/components/date/__internal__/navbar/button.style.js +1 -2
- package/lib/components/date/__internal__/navbar/navbar.component.js +1 -2
- package/lib/components/date/__internal__/navbar/navbar.style.js +1 -2
- package/lib/components/date/__internal__/utils.js +0 -1
- package/lib/components/date/__internal__/weekday/abbr.style.js +1 -2
- package/lib/components/date/__internal__/weekday/weekday.component.js +1 -2
- package/lib/components/date/__internal__/weekday/weekday.style.js +1 -2
- package/lib/components/date/date.component.js +4 -13
- package/lib/components/date/date.style.js +3 -4
- package/lib/components/date-range/date-range.component.js +3 -4
- package/lib/components/date-range/date-range.context.js +1 -2
- package/lib/components/date-range/date-range.style.js +1 -2
- package/lib/components/decimal/decimal.component.js +4 -7
- package/lib/components/definition-list/__internal__/dl.context.js +1 -2
- package/lib/components/definition-list/dd.component.js +3 -4
- package/lib/components/definition-list/definition-list.style.js +6 -9
- package/lib/components/definition-list/dl.component.js +1 -2
- package/lib/components/definition-list/dt.component.js +3 -4
- package/lib/components/detail/detail.component.js +1 -2
- package/lib/components/detail/detail.style.js +6 -10
- package/lib/components/dialog/dialog.component.js +4 -6
- package/lib/components/dialog/dialog.config.js +5 -10
- package/lib/components/dialog/dialog.style.js +6 -10
- package/lib/components/dialog-full-screen/content.style.js +3 -4
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +3 -4
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +3 -4
- package/lib/components/dismissible-box/dismissible-box.component.js +1 -2
- package/lib/components/dismissible-box/dismissible-box.style.js +4 -5
- package/lib/components/draggable/draggable-container.component.js +3 -4
- package/lib/components/draggable/draggable-item.component.js +1 -2
- package/lib/components/draggable/draggable-item.style.js +3 -6
- package/lib/components/draggable/internal/drop-target.component.js +1 -2
- package/lib/components/drawer/drawer.component.js +4 -6
- package/lib/components/drawer/drawer.style.js +10 -17
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/duelling-picklist/duelling-picklist.component.js +3 -4
- package/lib/components/duelling-picklist/duelling-picklist.context.js +1 -2
- package/lib/components/duelling-picklist/duelling-picklist.style.js +9 -16
- package/lib/components/duelling-picklist/picklist/picklist.component.js +3 -4
- package/lib/components/duelling-picklist/picklist/picklist.style.js +3 -5
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.js +1 -2
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.style.js +1 -2
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +4 -6
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +7 -11
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +4 -6
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +6 -9
- package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +1 -2
- package/lib/components/fieldset/fieldset.component.js +1 -2
- package/lib/components/fieldset/fieldset.style.js +4 -7
- package/lib/components/flat-table/cell-sizes.style.js +2 -3
- package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +2 -4
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +3 -4
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +3 -4
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +3 -4
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +4 -6
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +3 -4
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +3 -4
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +4 -6
- package/lib/components/flat-table/flat-table-head/flat-table-head.style.js +1 -2
- package/lib/components/flat-table/flat-table-header/flat-table-header-utils.js +1 -2
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +3 -4
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +3 -4
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-context.js +2 -3
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +1 -2
- package/lib/components/flat-table/flat-table-row/__internal__/sub-row-provider.js +4 -6
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +4 -6
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +3 -4
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +3 -4
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +5 -7
- package/lib/components/flat-table/flat-table.component.js +4 -6
- package/lib/components/flat-table/flat-table.config.js +2 -4
- package/lib/components/flat-table/flat-table.style.js +6 -10
- package/lib/components/flat-table/sort/sort.component.js +3 -4
- package/lib/components/flat-table/sort/sort.style.js +3 -5
- package/lib/components/form/__internal__/form-summary.component.js +3 -4
- package/lib/components/form/__internal__/form-summary.style.js +6 -9
- package/lib/components/form/form.component.js +3 -4
- package/lib/components/form/form.config.js +3 -5
- package/lib/components/form/form.style.js +8 -14
- package/lib/components/global-header/global-header.component.js +1 -2
- package/lib/components/grid/grid-container/grid-container.component.js +1 -2
- package/lib/components/grid/grid-container/grid-container.style.js +1 -2
- package/lib/components/grid/grid-item/grid-item.component.js +1 -2
- package/lib/components/grid/grid-item/grid-item.style.js +3 -4
- package/lib/components/grouped-character/grouped-character.component.js +4 -7
- package/lib/components/heading/heading.component.js +1 -2
- package/lib/components/heading/heading.style.js +14 -25
- package/lib/components/help/help.component.js +3 -4
- package/lib/components/help/help.config.js +1 -2
- package/lib/components/help/help.style.js +3 -4
- package/lib/components/hr/hr.component.js +1 -2
- package/lib/components/hr/hr.style.js +1 -2
- package/lib/components/i18n-provider/i18n-provider.component.js +1 -2
- package/lib/components/icon/icon-config.js +6 -12
- package/lib/components/icon/icon-unicodes.js +1 -2
- package/lib/components/icon/icon.component.js +3 -4
- package/lib/components/icon/icon.style.js +3 -4
- package/lib/components/icon-button/icon-button.component.js +3 -4
- package/lib/components/icon-button/icon-button.style.js +3 -4
- package/lib/components/image/image.component.js +1 -2
- package/lib/components/image/image.style.js +3 -4
- package/lib/components/inline-inputs/inline-inputs.component.js +3 -4
- package/lib/components/inline-inputs/inline-inputs.config.js +1 -2
- package/lib/components/inline-inputs/inline-inputs.style.js +5 -8
- package/lib/components/link/link.component.js +4 -6
- package/lib/components/link/link.config.js +3 -6
- package/lib/components/link/link.style.js +4 -6
- package/lib/components/link-preview/__internal__/placeholder.component.js +2 -4
- package/lib/components/link-preview/link-preview.component.js +1 -2
- package/lib/components/link-preview/link-preview.style.js +9 -15
- package/lib/components/loader/loader-square.style.js +3 -4
- package/lib/components/loader/loader.component.js +1 -2
- package/lib/components/loader/loader.config.js +1 -2
- package/lib/components/loader/loader.style.js +1 -2
- package/lib/components/loader-bar/loader-bar.component.js +3 -4
- package/lib/components/loader-bar/loader-bar.config.js +1 -2
- package/lib/components/loader-bar/loader-bar.style.js +5 -8
- package/lib/components/menu/__internal__/locators.js +6 -12
- package/lib/components/menu/__internal__/spec-helper/index.js +1 -2
- package/lib/components/menu/__internal__/submenu/submenu.component.js +3 -4
- package/lib/components/menu/__internal__/submenu/submenu.context.js +1 -2
- package/lib/components/menu/__internal__/submenu/submenu.style.js +4 -6
- package/lib/components/menu/menu-divider/menu-divider.component.js +3 -4
- package/lib/components/menu/menu-divider/menu-divider.style.js +3 -4
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +3 -4
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +4 -6
- package/lib/components/menu/menu-item/menu-item.component.js +3 -4
- package/lib/components/menu/menu-item/menu-item.style.js +3 -4
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +3 -4
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +5 -7
- package/lib/components/menu/menu.component.js +3 -4
- package/lib/components/menu/menu.config.js +2 -3
- package/lib/components/menu/menu.context.js +2 -3
- package/lib/components/menu/menu.style.js +4 -6
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +3 -4
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +3 -4
- package/lib/components/message/message-content/message-content.component.js +1 -2
- package/lib/components/message/message-content/message-content.style.js +1 -10
- package/lib/components/message/message.component.js +4 -6
- package/lib/components/message/message.style.js +3 -4
- package/lib/components/message/type-icon/type-icon.component.js +1 -2
- package/lib/components/message/type-icon/type-icon.style.js +3 -4
- package/lib/components/modal/__internal__/modal-manager.js +2 -4
- package/lib/components/modal/index.js +2 -2
- package/lib/components/modal/modal.component.js +4 -6
- package/lib/components/modal/modal.style.js +4 -6
- package/lib/components/multi-action-button/multi-action-button.component.js +3 -4
- package/lib/components/multi-action-button/multi-action-button.config.js +3 -6
- package/lib/components/multi-action-button/multi-action-button.style.js +4 -6
- package/lib/components/navigation-bar/fixed-navigation-bar.context.js +3 -4
- package/lib/components/navigation-bar/navigation-bar.component.js +296 -39
- package/lib/components/navigation-bar/navigation-bar.style.js +3 -4
- package/lib/components/note/__internal__/status-icon/status-icon.component.js +1 -2
- package/lib/components/note/__internal__/status-icon/status-icon.style.js +1 -2
- package/lib/components/note/note.component.js +1 -2
- package/lib/components/note/note.style.js +9 -16
- package/lib/components/number/number.component.js +4 -7
- package/lib/components/numeral-date/numeral-date-context.js +1 -2
- package/lib/components/numeral-date/numeral-date.component.js +4 -6
- package/lib/components/numeral-date/numeral-date.style.js +5 -7
- package/lib/components/pager/__internal__/pager-navigation-link.component.js +3 -4
- package/lib/components/pager/__internal__/pager-navigation.component.js +3 -4
- package/lib/components/pager/pager.component.js +3 -4
- package/lib/components/pager/pager.style.js +13 -23
- package/lib/components/pages/page/page.component.js +3 -4
- package/lib/components/pages/page/page.style.js +2 -4
- package/lib/components/pages/pages.component.js +3 -4
- package/lib/components/pages/pages.config.js +3 -5
- package/lib/components/pages/pages.style.js +2 -4
- package/lib/components/password/password.component.js +3 -4
- package/lib/components/password/password.style.js +3 -5
- package/lib/components/pill/pill.component.js +1 -2
- package/lib/components/pill/pill.style.js +3 -4
- package/lib/components/pod/pod.component.js +3 -4
- package/lib/components/pod/pod.config.js +3 -6
- package/lib/components/pod/pod.style.js +13 -24
- package/lib/components/popover-container/popover-container.component.js +3 -4
- package/lib/components/popover-container/popover-container.style.js +6 -12
- package/lib/components/portal/portal.js +4 -6
- package/lib/components/portrait/portrait.component.js +3 -4
- package/lib/components/portrait/portrait.config.js +4 -7
- package/lib/components/portrait/portrait.style.js +5 -10
- package/lib/components/preview/__internal__/preview-placeholder.component.js +1 -2
- package/lib/components/preview/__internal__/preview-placeholder.style.js +4 -5
- package/lib/components/preview/preview.component.js +1 -2
- package/lib/components/preview/preview.style.js +1 -2
- package/lib/components/profile/profile.component.js +1 -2
- package/lib/components/profile/profile.config.js +3 -5
- package/lib/components/profile/profile.style.js +6 -12
- package/lib/components/progress-tracker/progress-tracker.component.js +3 -4
- package/lib/components/progress-tracker/progress-tracker.config.js +1 -2
- package/lib/components/progress-tracker/progress-tracker.style.js +8 -14
- package/lib/components/radio-button/index.js +1 -2
- package/lib/components/radio-button/radio-button-group.component.js +3 -4
- package/lib/components/radio-button/radio-button-group.style.js +4 -6
- package/lib/components/radio-button/radio-button-svg.component.js +1 -2
- package/lib/components/radio-button/radio-button.component.js +4 -7
- package/lib/components/radio-button/radio-button.style.js +3 -4
- package/lib/components/search/search-button.style.js +2 -4
- package/lib/components/search/search.component.js +4 -6
- package/lib/components/search/search.style.js +3 -4
- package/lib/components/select/__internal__/select-list-context.js +1 -2
- package/lib/components/select/__internal__/select-text/select-text.component.js +1 -2
- package/lib/components/select/__internal__/select-text/select-text.style.js +3 -4
- package/lib/components/select/filterable-select/filterable-select.component.js +11 -8
- package/lib/components/select/list-action-button/list-action-button.component.js +1 -2
- package/lib/components/select/list-action-button/list-action-button.style.js +1 -2
- package/lib/components/select/multi-select/multi-select.component.js +4 -7
- package/lib/components/select/multi-select/multi-select.style.js +3 -6
- package/lib/components/select/option/option.component.js +3 -5
- package/lib/components/select/option/option.style.js +3 -4
- package/lib/components/select/option-group-header/option-group-header.component.js +1 -2
- package/lib/components/select/option-group-header/option-group-header.style.js +1 -2
- package/lib/components/select/option-row/option-row.component.js +3 -4
- package/lib/components/select/option-row/option-row.style.js +3 -4
- package/lib/components/select/select-list/select-list-container.style.js +1 -2
- package/lib/components/select/select-list/select-list.component.js +3 -4
- package/lib/components/select/select-list/select-list.style.js +8 -13
- package/lib/components/select/select-textbox/select-textbox.component.js +4 -9
- package/lib/components/select/select.style.js +3 -4
- package/lib/components/select/simple-select/simple-select.component.js +4 -7
- package/lib/components/select/utils/get-next-index-by-key.js +1 -2
- package/lib/components/select/utils/matching-text.style.js +1 -2
- package/lib/components/select/utils/with-filter.hoc.js +3 -4
- package/lib/components/settings-row/settings-row.component.js +1 -2
- package/lib/components/settings-row/settings-row.style.js +6 -9
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +1 -2
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +3 -4
- package/lib/components/sidebar/index.js +2 -2
- package/lib/components/sidebar/sidebar.component.js +5 -8
- package/lib/components/sidebar/sidebar.config.js +7 -14
- package/lib/components/sidebar/sidebar.style.js +3 -4
- package/lib/components/simple-color-picker/simple-color/simple-color.component.js +4 -6
- package/lib/components/simple-color-picker/simple-color/simple-color.style.js +7 -11
- package/lib/components/simple-color-picker/simple-color-picker.component.js +4 -6
- package/lib/components/simple-color-picker/simple-color-picker.style.js +5 -7
- package/lib/components/split-button/__internal__/split-button.context.js +2 -3
- package/lib/components/split-button/split-button-children.style.js +4 -6
- package/lib/components/split-button/split-button-toggle.style.js +3 -4
- package/lib/components/split-button/split-button.component.js +3 -4
- package/lib/components/split-button/split-button.config.js +4 -8
- package/lib/components/split-button/split-button.style.js +3 -4
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +3 -4
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +7 -11
- package/lib/components/step-sequence/step-sequence.component.js +2 -4
- package/lib/components/step-sequence/step-sequence.config.js +2 -4
- package/lib/components/step-sequence/step-sequence.style.js +3 -4
- package/lib/components/switch/__internal__/switch-slider-panel.style.js +3 -4
- package/lib/components/switch/__internal__/switch-slider.component.js +1 -2
- package/lib/components/switch/__internal__/switch-slider.style.js +3 -4
- package/lib/components/switch/switch.component.js +4 -7
- package/lib/components/switch/switch.style.js +5 -8
- package/lib/components/tabs/__internal__/tab-title/index.js +2 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +4 -6
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +8 -13
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +3 -4
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +9 -15
- package/lib/components/tabs/tab/index.js +2 -2
- package/lib/components/tabs/tab/tab.component.js +4 -6
- package/lib/components/tabs/tab/tab.style.js +3 -4
- package/lib/components/tabs/tabs.component.js +2 -2
- package/lib/components/tabs/tabs.style.js +3 -4
- package/lib/components/text-editor/__internal__/decorators/index.js +1 -2
- package/lib/components/text-editor/__internal__/decorators/link-decorator.js +2 -3
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +3 -4
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.js +1 -2
- package/lib/components/text-editor/__internal__/editor-validation-wrapper/editor-validation-wrapper.component.js +1 -2
- package/lib/components/text-editor/__internal__/editor-validation-wrapper/editor-validation-wrapper.style.js +1 -2
- package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +1 -2
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +2 -4
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -4
- package/lib/components/text-editor/__internal__/toolbar/toolbar.component.js +3 -4
- package/lib/components/text-editor/__internal__/toolbar/toolbar.style.js +4 -7
- package/lib/components/text-editor/index.js +2 -2
- package/lib/components/text-editor/text-editor.component.js +7 -12
- package/lib/components/text-editor/text-editor.style.js +6 -9
- package/lib/components/text-editor/types.js +4 -8
- package/lib/components/textarea/textarea.component.js +4 -7
- package/lib/components/textarea/textarea.style.js +4 -6
- package/lib/components/textbox/__internal__/prefix.style.js +1 -2
- package/lib/components/textbox/textbox.component.js +8 -11
- package/lib/components/textbox/textbox.style.js +5 -7
- package/lib/components/tile/__internal__/tile-context.js +2 -3
- package/lib/components/tile/tile-content/tile-content.component.js +3 -4
- package/lib/components/tile/tile-content/tile-content.style.js +3 -4
- package/lib/components/tile/tile-footer/tile-footer.component.js +1 -2
- package/lib/components/tile/tile-footer/tile-footer.style.js +3 -4
- package/lib/components/tile/tile.component.js +1 -2
- package/lib/components/tile/tile.config.js +2 -4
- package/lib/components/tile/tile.style.js +3 -4
- package/lib/components/tile-select/__internal__/accordion/accordion.component.js +3 -4
- package/lib/components/tile-select/__internal__/accordion/accordion.style.js +3 -5
- package/lib/components/tile-select/tile-select-group.component.js +1 -2
- package/lib/components/tile-select/tile-select.component.js +3 -4
- package/lib/components/tile-select/tile-select.style.js +16 -30
- package/lib/components/toast/toast.component.js +7 -9
- package/lib/components/toast/toast.config.js +1 -2
- package/lib/components/toast/toast.style.d.ts +14 -13
- package/lib/components/toast/toast.style.js +47 -23
- package/lib/components/tooltip/tooltip-pointer.style.js +3 -4
- package/lib/components/tooltip/tooltip.component.js +4 -6
- package/lib/components/tooltip/tooltip.config.js +1 -2
- package/lib/components/tooltip/tooltip.style.js +3 -4
- package/lib/components/typography/typography.component.js +1 -2
- package/lib/components/typography/typography.style.js +3 -4
- package/lib/components/vertical-divider/vertical-divider.component.js +3 -4
- package/lib/components/vertical-divider/vertical-divider.style.js +4 -6
- package/lib/components/vertical-menu/vertical-menu-full-screen.component.js +3 -4
- package/lib/components/vertical-menu/vertical-menu-full-screen.context.js +1 -2
- package/lib/components/vertical-menu/vertical-menu-item.component.js +3 -4
- package/lib/components/vertical-menu/vertical-menu-trigger.component.js +1 -2
- package/lib/components/vertical-menu/vertical-menu.component.js +1 -2
- package/lib/components/vertical-menu/vertical-menu.style.js +11 -19
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +3 -4
- package/lib/hooks/__internal__/useChildButtons/useChildButtons.js +1 -2
- package/lib/hooks/__internal__/useDebounce/useDebounce.js +1 -2
- package/lib/hooks/__internal__/useFloating/useFloating.js +1 -2
- package/lib/hooks/__internal__/useIsStickyFooterForm/useIsStickyFooterForm.js +2 -2
- package/lib/hooks/__internal__/useModalManager/useModalManager.js +1 -2
- package/lib/hooks/__internal__/useScrollBlock/scroll-block-manager.js +1 -2
- package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.js +1 -2
- package/lib/hooks/__internal__/useStableCallback/useStableCallback.js +1 -2
- package/lib/hooks/__internal__/useThrottle/useThrottle.js +1 -2
- package/lib/locales/en-gb.js +1 -2
- package/lib/locales/pl-pl.js +1 -2
- package/lib/style/color-config/index.js +1 -2
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +1 -2
- package/lib/style/design-tokens/debug-theme.util.js +2 -3
- package/lib/style/global-style.js +1 -2
- package/lib/style/palette/index.js +1 -2
- package/lib/style/themes/aegean/index.js +1 -2
- package/lib/style/themes/base/base-theme.config.js +1 -2
- package/lib/style/themes/base/index.js +1 -2
- package/lib/style/themes/index.js +1 -2
- package/lib/style/themes/medium/index.js +2 -3
- package/lib/style/themes/mint/index.js +1 -2
- package/lib/style/themes/none/index.js +1 -2
- package/lib/style/themes/sage/index.js +2 -3
- package/lib/style/themes/small/index.js +2 -3
- package/lib/style/utils/filter-out-position-props.js +1 -2
- package/lib/style/utils/filter-out-styled-system-spacing-props.js +1 -2
- package/lib/style/utils/filter-styled-system-flexbox-props.js +1 -2
- package/lib/style/utils/filter-styled-system-grid-props.js +1 -2
- package/lib/style/utils/filter-styled-system-layout-props.js +1 -2
- package/lib/style/utils/filter-styled-system-margin-props.js +1 -2
- package/lib/style/utils/filter-styled-system-padding-props.js +8 -16
- package/lib/style/utils/get-rgb-values.js +1 -2
- package/lib/style/utils/visually-hidden.js +2 -3
- package/package.json +53 -49
|
@@ -19,8 +19,8 @@ var _validationMessage = _interopRequireDefault(require("../../__internal__/vali
|
|
|
19
19
|
var _box = _interopRequireDefault(require("../../components/box"));
|
|
20
20
|
var _textbox = require("../../components/textbox/textbox.style");
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
let deprecateUncontrolledWarnTriggered = false;
|
|
26
26
|
const RadioButtonGroup = props => {
|
|
@@ -150,5 +150,4 @@ const RadioButtonGroup = props => {
|
|
|
150
150
|
};
|
|
151
151
|
exports.RadioButtonGroup = RadioButtonGroup;
|
|
152
152
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
153
|
-
var _default = RadioButtonGroup;
|
|
154
|
-
exports.default = _default;
|
|
153
|
+
var _default = exports.default = RadioButtonGroup;
|
|
@@ -5,15 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.StyledHintText = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
function _getRequireWildcardCache(
|
|
9
|
-
function _interopRequireWildcard(
|
|
10
|
-
const StyledHintText = _styledComponents.default.div`
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const StyledHintText = exports.StyledHintText = _styledComponents.default.div`
|
|
11
11
|
margin-top: -4px;
|
|
12
12
|
margin-bottom: 8px;
|
|
13
13
|
color: var(--colorsUtilityYin055);
|
|
14
14
|
font-size: 14px;
|
|
15
15
|
`;
|
|
16
|
-
exports.StyledHintText = StyledHintText;
|
|
17
16
|
const RadioButtonGroupStyle = _styledComponents.default.div`
|
|
18
17
|
${({
|
|
19
18
|
inline,
|
|
@@ -25,5 +24,4 @@ const RadioButtonGroupStyle = _styledComponents.default.div`
|
|
|
25
24
|
${legendInline && "margin-top: 4px;"}
|
|
26
25
|
`};
|
|
27
26
|
`;
|
|
28
|
-
var _default = RadioButtonGroupStyle;
|
|
29
|
-
exports.default = _default;
|
|
27
|
+
var _default = exports.default = RadioButtonGroupStyle;
|
|
@@ -15,11 +15,11 @@ var _tooltipProvider = require("../../__internal__/tooltip-provider");
|
|
|
15
15
|
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
16
16
|
var _carbonProvider = require("../carbon-provider/carbon-provider.component");
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
let deprecateInputRefWarnTriggered = false;
|
|
22
|
-
const RadioButton = /*#__PURE__*/_react.default.forwardRef(({
|
|
22
|
+
const RadioButton = exports.RadioButton = /*#__PURE__*/_react.default.forwardRef(({
|
|
23
23
|
autoFocus,
|
|
24
24
|
checked,
|
|
25
25
|
disabled,
|
|
@@ -132,7 +132,6 @@ const RadioButton = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
132
132
|
tooltipPosition: tooltipPosition
|
|
133
133
|
}, componentToRender));
|
|
134
134
|
});
|
|
135
|
-
exports.RadioButton = RadioButton;
|
|
136
135
|
RadioButton.propTypes = {
|
|
137
136
|
"about": _propTypes.default.string,
|
|
138
137
|
"accept": _propTypes.default.string,
|
|
@@ -201,7 +200,6 @@ RadioButton.propTypes = {
|
|
|
201
200
|
"content": _propTypes.default.string,
|
|
202
201
|
"contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
|
|
203
202
|
"contextMenu": _propTypes.default.string,
|
|
204
|
-
"crossOrigin": _propTypes.default.oneOf(["", "anonymous", "use-credentials"]),
|
|
205
203
|
"dangerouslySetInnerHTML": _propTypes.default.shape({
|
|
206
204
|
"__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
|
|
207
205
|
}),
|
|
@@ -657,5 +655,4 @@ RadioButton.propTypes = {
|
|
|
657
655
|
"width": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
658
656
|
};
|
|
659
657
|
RadioButton.displayName = "RadioButton";
|
|
660
|
-
var _default = /*#__PURE__*/_react.default.memo(RadioButton);
|
|
661
|
-
exports.default = _default;
|
|
658
|
+
var _default = exports.default = /*#__PURE__*/_react.default.memo(RadioButton);
|
|
@@ -15,8 +15,8 @@ var _label = require("../../__internal__/label/label.style");
|
|
|
15
15
|
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
16
16
|
var _formField = _interopRequireDefault(require("../../__internal__/form-field/form-field.style"));
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
const RadioButtonStyle = (0, _styledComponents.default)(_checkbox.default)`
|
|
21
21
|
${({
|
|
22
22
|
disabled,
|
|
@@ -122,5 +122,4 @@ const RadioButtonStyle = (0, _styledComponents.default)(_checkbox.default)`
|
|
|
122
122
|
RadioButtonStyle.defaultProps = {
|
|
123
123
|
theme: _base.default
|
|
124
124
|
};
|
|
125
|
-
var _default = RadioButtonStyle;
|
|
126
|
-
exports.default = _default;
|
|
125
|
+
var _default = exports.default = RadioButtonStyle;
|
|
@@ -9,13 +9,12 @@ var _button = _interopRequireDefault(require("../button/button.style"));
|
|
|
9
9
|
var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
10
10
|
var _themes = require("../../style/themes");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
const StyledButtonIcon = _styledComponents.default.div`
|
|
12
|
+
const StyledButtonIcon = exports.StyledButtonIcon = _styledComponents.default.div`
|
|
13
13
|
&&& ${_icon.default} {
|
|
14
14
|
color: var(--colorsActionMajorYang100);
|
|
15
15
|
margin-right: 0px;
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
18
|
-
exports.StyledButtonIcon = StyledButtonIcon;
|
|
19
18
|
const StyledSearchButton = _styledComponents.default.div`
|
|
20
19
|
display: inline-flex;
|
|
21
20
|
border-bottom: none;
|
|
@@ -46,5 +45,4 @@ const StyledSearchButton = _styledComponents.default.div`
|
|
|
46
45
|
StyledSearchButton.defaultProps = {
|
|
47
46
|
theme: _themes.baseTheme
|
|
48
47
|
};
|
|
49
|
-
var _default = StyledSearchButton;
|
|
50
|
-
exports.default = _default;
|
|
48
|
+
var _default = exports.default = StyledSearchButton;
|
|
@@ -16,12 +16,12 @@ var _textbox = _interopRequireDefault(require("../textbox"));
|
|
|
16
16
|
var _button = _interopRequireDefault(require("../button"));
|
|
17
17
|
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
function _getRequireWildcardCache(
|
|
20
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
22
|
let deprecateInputRefWarnTriggered = false;
|
|
23
23
|
let deprecateUncontrolledWarnTriggered = false;
|
|
24
|
-
const Search = /*#__PURE__*/_react.default.forwardRef(({
|
|
24
|
+
const Search = exports.Search = /*#__PURE__*/_react.default.forwardRef(({
|
|
25
25
|
defaultValue,
|
|
26
26
|
onChange,
|
|
27
27
|
onClick,
|
|
@@ -176,7 +176,6 @@ const Search = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
176
176
|
type: "search"
|
|
177
177
|
})))));
|
|
178
178
|
});
|
|
179
|
-
exports.Search = Search;
|
|
180
179
|
Search.propTypes = {
|
|
181
180
|
"aria-label": _propTypes.default.string,
|
|
182
181
|
"defaultValue": _propTypes.default.string,
|
|
@@ -359,5 +358,4 @@ Search.propTypes = {
|
|
|
359
358
|
"warning": _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool])
|
|
360
359
|
};
|
|
361
360
|
Search.displayName = "Search";
|
|
362
|
-
var _default = Search;
|
|
363
|
-
exports.default = _default;
|
|
361
|
+
var _default = exports.default = Search;
|
|
@@ -13,8 +13,8 @@ var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
|
13
13
|
var _themes = require("../../style/themes");
|
|
14
14
|
var _formField = _interopRequireDefault(require("../../__internal__/form-field/form-field.style"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const StyledSearch = _styledComponents.default.div`
|
|
19
19
|
${({
|
|
20
20
|
isFocused,
|
|
@@ -155,5 +155,4 @@ const StyledSearch = _styledComponents.default.div`
|
|
|
155
155
|
StyledSearch.defaultProps = {
|
|
156
156
|
theme: _themes.baseTheme
|
|
157
157
|
};
|
|
158
|
-
var _default = StyledSearch;
|
|
159
|
-
exports.default = _default;
|
|
158
|
+
var _default = exports.default = StyledSearch;
|
|
@@ -7,5 +7,4 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const SelectListContext = /*#__PURE__*/_react.default.createContext({});
|
|
10
|
-
var _default = SelectListContext;
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = SelectListContext;
|
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _inputSizes = _interopRequireDefault(require("../../../../__internal__/input/input-sizes.style"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
const StyledSelectText = _styledComponents.default.span`
|
|
13
13
|
${({
|
|
14
14
|
disabled,
|
|
@@ -55,5 +55,4 @@ const StyledSelectText = _styledComponents.default.span`
|
|
|
55
55
|
`}
|
|
56
56
|
`}
|
|
57
57
|
`;
|
|
58
|
-
var _default = StyledSelectText;
|
|
59
|
-
exports.default = _default;
|
|
58
|
+
var _default = exports.default = StyledSelectText;
|
|
@@ -20,13 +20,13 @@ var _useStableCallback = _interopRequireDefault(require("../../../hooks/__intern
|
|
|
20
20
|
var _useFormSpacing = _interopRequireDefault(require("../../../hooks/__internal__/useFormSpacing"));
|
|
21
21
|
var _useInputAccessibility = _interopRequireDefault(require("../../../hooks/__internal__/useInputAccessibility/useInputAccessibility"));
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
function _getRequireWildcardCache(
|
|
24
|
-
function _interopRequireWildcard(
|
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26
26
|
let deprecateInputRefWarnTriggered = false;
|
|
27
27
|
let deprecateUncontrolledWarnTriggered = false;
|
|
28
28
|
const FilterableSelectList = (0, _withFilter.default)(_selectList.default);
|
|
29
|
-
const FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
29
|
+
const FilterableSelect = exports.FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
30
30
|
"aria-label": ariaLabel,
|
|
31
31
|
"aria-labelledby": ariaLabelledby,
|
|
32
32
|
value,
|
|
@@ -87,6 +87,7 @@ const FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
87
87
|
label
|
|
88
88
|
});
|
|
89
89
|
const focusTimer = (0, _react.useRef)(null);
|
|
90
|
+
const openOnFocusFlagBlock = (0, _react.useRef)(false);
|
|
90
91
|
if (!deprecateInputRefWarnTriggered && inputRef) {
|
|
91
92
|
deprecateInputRefWarnTriggered = true;
|
|
92
93
|
_logger.default.deprecate("The `inputRef` prop in `Filterable Select` component is deprecated and will soon be removed. Please use `ref` instead.");
|
|
@@ -289,11 +290,13 @@ const FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
289
290
|
triggerChange(newValue, selectionConfirmed);
|
|
290
291
|
setActiveDescendantId(selectedOptionId);
|
|
291
292
|
if (selectionType !== "navigationKey") {
|
|
293
|
+
openOnFocusFlagBlock.current = !!openOnFocus;
|
|
292
294
|
setOpen(false);
|
|
293
295
|
textboxRef?.focus();
|
|
294
296
|
textboxRef?.select();
|
|
297
|
+
openOnFocusFlagBlock.current = false;
|
|
295
298
|
}
|
|
296
|
-
}, [textboxRef, triggerChange]);
|
|
299
|
+
}, [textboxRef, triggerChange, openOnFocus]);
|
|
297
300
|
const onSelectListClose = (0, _react.useCallback)(() => {
|
|
298
301
|
setOpen(false);
|
|
299
302
|
setMatchingText(selectedValue, true);
|
|
@@ -319,6 +322,9 @@ const FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
319
322
|
if (focusTimer.current) {
|
|
320
323
|
clearTimeout(focusTimer.current);
|
|
321
324
|
}
|
|
325
|
+
if (openOnFocusFlagBlock.current) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
322
328
|
|
|
323
329
|
// we need to use a timeout here as there is a race condition when rendered in a modal
|
|
324
330
|
// whereby the select list isn't visible when the select is auto focused straight away
|
|
@@ -447,7 +453,6 @@ const FilterableSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
447
453
|
textboxRef: textboxRef
|
|
448
454
|
}, getTextboxProps()))), selectList);
|
|
449
455
|
});
|
|
450
|
-
exports.FilterableSelect = FilterableSelect;
|
|
451
456
|
FilterableSelect.propTypes = {
|
|
452
457
|
"about": _propTypes.default.string,
|
|
453
458
|
"accept": _propTypes.default.string,
|
|
@@ -521,7 +526,6 @@ FilterableSelect.propTypes = {
|
|
|
521
526
|
"content": _propTypes.default.string,
|
|
522
527
|
"contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
|
|
523
528
|
"contextMenu": _propTypes.default.string,
|
|
524
|
-
"crossOrigin": _propTypes.default.oneOf(["", "anonymous", "use-credentials"]),
|
|
525
529
|
"dangerouslySetInnerHTML": _propTypes.default.shape({
|
|
526
530
|
"__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
|
|
527
531
|
}),
|
|
@@ -999,5 +1003,4 @@ FilterableSelect.propTypes = {
|
|
|
999
1003
|
"warning": _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
1000
1004
|
"width": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
1001
1005
|
};
|
|
1002
|
-
var _default = FilterableSelect;
|
|
1003
|
-
exports.default = _default;
|
|
1006
|
+
var _default = exports.default = FilterableSelect;
|
|
@@ -22,13 +22,13 @@ var _useStableCallback = _interopRequireDefault(require("../../../hooks/__intern
|
|
|
22
22
|
var _useFormSpacing = _interopRequireDefault(require("../../../hooks/__internal__/useFormSpacing"));
|
|
23
23
|
var _useInputAccessibility = _interopRequireDefault(require("../../../hooks/__internal__/useInputAccessibility/useInputAccessibility"));
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
27
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
28
28
|
let deprecateInputRefWarnTriggered = false;
|
|
29
29
|
let deprecateUncontrolledWarnTriggered = false;
|
|
30
30
|
const FilterableSelectList = (0, _withFilter.default)(_selectList.default);
|
|
31
|
-
const MultiSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
31
|
+
const MultiSelect = exports.MultiSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
32
32
|
"aria-label": ariaLabel,
|
|
33
33
|
"aria-labelledby": ariaLabelledby,
|
|
34
34
|
value,
|
|
@@ -469,7 +469,6 @@ const MultiSelect = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
469
469
|
textboxRef: textboxRef
|
|
470
470
|
}, getTextboxProps()))), selectList);
|
|
471
471
|
});
|
|
472
|
-
exports.MultiSelect = MultiSelect;
|
|
473
472
|
MultiSelect.propTypes = {
|
|
474
473
|
"about": _propTypes.default.string,
|
|
475
474
|
"accept": _propTypes.default.string,
|
|
@@ -543,7 +542,6 @@ MultiSelect.propTypes = {
|
|
|
543
542
|
"content": _propTypes.default.string,
|
|
544
543
|
"contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
|
|
545
544
|
"contextMenu": _propTypes.default.string,
|
|
546
|
-
"crossOrigin": _propTypes.default.oneOf(["", "anonymous", "use-credentials"]),
|
|
547
545
|
"dangerouslySetInnerHTML": _propTypes.default.shape({
|
|
548
546
|
"__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
|
|
549
547
|
}),
|
|
@@ -1019,5 +1017,4 @@ MultiSelect.propTypes = {
|
|
|
1019
1017
|
"width": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
1020
1018
|
"wrapPillText": _propTypes.default.bool
|
|
1021
1019
|
};
|
|
1022
|
-
var _default = MultiSelect;
|
|
1023
|
-
exports.default = _default;
|
|
1020
|
+
var _default = exports.default = MultiSelect;
|
|
@@ -13,7 +13,7 @@ var _inputPresentation = _interopRequireDefault(require("../../../__internal__/i
|
|
|
13
13
|
var _input = _interopRequireDefault(require("../../../__internal__/input/input.style"));
|
|
14
14
|
var _inputSizes = _interopRequireDefault(require("../../../__internal__/input/input-sizes.style"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
const StyledSelectPillContainer = _styledComponents.default.div`
|
|
16
|
+
const StyledSelectPillContainer = exports.StyledSelectPillContainer = _styledComponents.default.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
justify-content: center;
|
|
@@ -24,8 +24,7 @@ const StyledSelectPillContainer = _styledComponents.default.div`
|
|
|
24
24
|
text-overflow: ellipsis;
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
|
-
exports.
|
|
28
|
-
const StyledSelectMultiSelect = (0, _styledComponents.default)(_select.default)`
|
|
27
|
+
const StyledSelectMultiSelect = exports.StyledSelectMultiSelect = (0, _styledComponents.default)(_select.default)`
|
|
29
28
|
${_inputIconToggle.default} {
|
|
30
29
|
position: absolute;
|
|
31
30
|
right: 0;
|
|
@@ -47,11 +46,9 @@ const StyledSelectMultiSelect = (0, _styledComponents.default)(_select.default)`
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
`;
|
|
50
|
-
exports.
|
|
51
|
-
const StyledAccessibilityLabelContainer = _styledComponents.default.div`
|
|
49
|
+
const StyledAccessibilityLabelContainer = exports.StyledAccessibilityLabelContainer = _styledComponents.default.div`
|
|
52
50
|
display: none;
|
|
53
51
|
`;
|
|
54
|
-
exports.StyledAccessibilityLabelContainer = StyledAccessibilityLabelContainer;
|
|
55
52
|
StyledSelectPillContainer.defaultProps = {
|
|
56
53
|
theme: _themes.baseTheme
|
|
57
54
|
};
|
|
@@ -9,8 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _option = _interopRequireDefault(require("./option.style"));
|
|
10
10
|
var _selectListContext = _interopRequireDefault(require("../__internal__/select-list-context"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
const Option = /*#__PURE__*/_react.default.forwardRef(({
|
|
16
16
|
text,
|
|
@@ -122,7 +122,6 @@ Option.propTypes = {
|
|
|
122
122
|
"content": _propTypes.default.string,
|
|
123
123
|
"contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
|
|
124
124
|
"contextMenu": _propTypes.default.string,
|
|
125
|
-
"crossOrigin": _propTypes.default.oneOf(["", "anonymous", "use-credentials"]),
|
|
126
125
|
"dangerouslySetInnerHTML": _propTypes.default.shape({
|
|
127
126
|
"__html": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
|
|
128
127
|
}),
|
|
@@ -457,5 +456,4 @@ Option.propTypes = {
|
|
|
457
456
|
"width": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
458
457
|
};
|
|
459
458
|
Option.displayName = "Option";
|
|
460
|
-
var _default = Option;
|
|
461
|
-
exports.default = _default;
|
|
459
|
+
var _default = exports.default = Option;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
function _getRequireWildcardCache(
|
|
9
|
-
function _interopRequireWildcard(
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
10
|
const StyledOption = _styledComponents.default.li`
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
box-sizing: border-box;
|
|
@@ -33,5 +33,4 @@ const StyledOption = _styledComponents.default.li`
|
|
|
33
33
|
background-color: var(--colorsUtilityMajor100);
|
|
34
34
|
}
|
|
35
35
|
`;
|
|
36
|
-
var _default = StyledOption;
|
|
37
|
-
exports.default = _default;
|
|
36
|
+
var _default = exports.default = StyledOption;
|
|
@@ -9,8 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _optionRow = _interopRequireDefault(require("./option-row.style"));
|
|
10
10
|
var _selectListContext = _interopRequireDefault(require("../__internal__/select-list-context"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
const OptionRow = /*#__PURE__*/_react.default.forwardRef(({
|
|
16
16
|
id,
|
|
@@ -61,5 +61,4 @@ OptionRow.propTypes = {
|
|
|
61
61
|
"value": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
|
|
62
62
|
};
|
|
63
63
|
OptionRow.displayName = "OptionRow";
|
|
64
|
-
var _default = OptionRow;
|
|
65
|
-
exports.default = _default;
|
|
64
|
+
var _default = exports.default = OptionRow;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
function _getRequireWildcardCache(
|
|
9
|
-
function _interopRequireWildcard(
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
10
|
const StyledOptionRow = _styledComponents.default.tr`
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
position: absolute;
|
|
@@ -37,5 +37,4 @@ const StyledOptionRow = _styledComponents.default.tr`
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
40
|
-
var _default = StyledOptionRow;
|
|
41
|
-
exports.default = _default;
|
|
40
|
+
var _default = exports.default = StyledOptionRow;
|
|
@@ -40,5 +40,4 @@ const StyledSelectListContainer = _styledComponents.default.div`
|
|
|
40
40
|
StyledSelectListContainer.defaultProps = {
|
|
41
41
|
theme: _themes.baseTheme
|
|
42
42
|
};
|
|
43
|
-
var _default = StyledSelectListContainer;
|
|
44
|
-
exports.default = _default;
|
|
43
|
+
var _default = exports.default = StyledSelectListContainer;
|
|
@@ -24,8 +24,8 @@ var _option = _interopRequireDefault(require("../option"));
|
|
|
24
24
|
var _guid = _interopRequireDefault(require("../../../__internal__/utils/helpers/guid"));
|
|
25
25
|
var _selectListContext = _interopRequireDefault(require("../__internal__/select-list-context"));
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
function _getRequireWildcardCache(
|
|
28
|
-
function _interopRequireWildcard(
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
29
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
30
30
|
const TABLE_HEADER_HEIGHT = 48;
|
|
31
31
|
const SCROLL_OPTIONS = {
|
|
@@ -413,5 +413,4 @@ SelectList.propTypes = {
|
|
|
413
413
|
"tableHeader": _propTypes.default.node,
|
|
414
414
|
"virtualScrollOverscan": _propTypes.default.number
|
|
415
415
|
};
|
|
416
|
-
var _default = SelectList;
|
|
417
|
-
exports.default = _default;
|
|
416
|
+
var _default = exports.default = SelectList;
|