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
|
@@ -34,7 +34,7 @@ const NavigationBar = ({
|
|
|
34
34
|
}), !isLoading && children));
|
|
35
35
|
};
|
|
36
36
|
NavigationBar.propTypes = {
|
|
37
|
-
"alignContent": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert", "space-around", "space-between", "space-evenly", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert", "space-around", "space-between", "space-evenly", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
37
|
+
"alignContent": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert-layer", "revert", "space-around", "space-between", "space-evenly", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert-layer", "revert", "space-around", "space-between", "space-evenly", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
38
38
|
"__@iterator": PropTypes.func.isRequired,
|
|
39
39
|
"anchor": PropTypes.func.isRequired,
|
|
40
40
|
"at": PropTypes.func.isRequired,
|
|
@@ -135,7 +135,7 @@ NavigationBar.propTypes = {
|
|
|
135
135
|
"trimStart": PropTypes.func.isRequired,
|
|
136
136
|
"valueOf": PropTypes.func.isRequired
|
|
137
137
|
})]),
|
|
138
|
-
"alignItems": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
138
|
+
"alignItems": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert-layer", "revert", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert-layer", "revert", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
139
139
|
"__@iterator": PropTypes.func.isRequired,
|
|
140
140
|
"anchor": PropTypes.func.isRequired,
|
|
141
141
|
"at": PropTypes.func.isRequired,
|
|
@@ -236,7 +236,7 @@ NavigationBar.propTypes = {
|
|
|
236
236
|
"trimStart": PropTypes.func.isRequired,
|
|
237
237
|
"valueOf": PropTypes.func.isRequired
|
|
238
238
|
})]),
|
|
239
|
-
"alignSelf": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
239
|
+
"alignSelf": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert-layer", "revert", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "normal", "revert-layer", "revert", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
240
240
|
"__@iterator": PropTypes.func.isRequired,
|
|
241
241
|
"anchor": PropTypes.func.isRequired,
|
|
242
242
|
"at": PropTypes.func.isRequired,
|
|
@@ -541,41 +541,213 @@ NavigationBar.propTypes = {
|
|
|
541
541
|
"trimStart": PropTypes.func.isRequired,
|
|
542
542
|
"valueOf": PropTypes.func.isRequired
|
|
543
543
|
}), PropTypes.string]),
|
|
544
|
-
"flexDirection": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "column-reverse", "column", "inherit", "initial", "revert", "row-reverse", "row", "unset"]), PropTypes.arrayOf(PropTypes.oneOf(["-moz-initial", "column-reverse", "column", "inherit", "initial", "revert", "row-reverse", "row", "unset", null])), PropTypes.object]),
|
|
545
|
-
"flexGrow": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert", "unset", null]), PropTypes.shape({
|
|
546
|
-
"
|
|
547
|
-
"
|
|
548
|
-
"
|
|
549
|
-
"
|
|
544
|
+
"flexDirection": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "column-reverse", "column", "inherit", "initial", "revert-layer", "revert", "row-reverse", "row", "unset"]), PropTypes.arrayOf(PropTypes.oneOf(["-moz-initial", "column-reverse", "column", "inherit", "initial", "revert-layer", "revert", "row-reverse", "row", "unset", null])), PropTypes.object]),
|
|
545
|
+
"flexGrow": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert-layer", "revert", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert-layer", "revert", "unset", null]), PropTypes.shape({
|
|
546
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
547
|
+
"anchor": PropTypes.func.isRequired,
|
|
548
|
+
"at": PropTypes.func.isRequired,
|
|
549
|
+
"big": PropTypes.func.isRequired,
|
|
550
|
+
"blink": PropTypes.func.isRequired,
|
|
551
|
+
"bold": PropTypes.func.isRequired,
|
|
552
|
+
"charAt": PropTypes.func.isRequired,
|
|
553
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
554
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
555
|
+
"concat": PropTypes.func.isRequired,
|
|
556
|
+
"endsWith": PropTypes.func.isRequired,
|
|
557
|
+
"fixed": PropTypes.func.isRequired,
|
|
558
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
559
|
+
"fontsize": PropTypes.func.isRequired,
|
|
560
|
+
"includes": PropTypes.func.isRequired,
|
|
561
|
+
"indexOf": PropTypes.func.isRequired,
|
|
562
|
+
"italics": PropTypes.func.isRequired,
|
|
563
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
564
|
+
"length": PropTypes.number.isRequired,
|
|
565
|
+
"link": PropTypes.func.isRequired,
|
|
566
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
567
|
+
"match": PropTypes.func.isRequired,
|
|
568
|
+
"matchAll": PropTypes.func.isRequired,
|
|
569
|
+
"normalize": PropTypes.func.isRequired,
|
|
570
|
+
"padEnd": PropTypes.func.isRequired,
|
|
571
|
+
"padStart": PropTypes.func.isRequired,
|
|
572
|
+
"repeat": PropTypes.func.isRequired,
|
|
573
|
+
"replace": PropTypes.func.isRequired,
|
|
574
|
+
"search": PropTypes.func.isRequired,
|
|
575
|
+
"slice": PropTypes.func.isRequired,
|
|
576
|
+
"small": PropTypes.func.isRequired,
|
|
577
|
+
"split": PropTypes.func.isRequired,
|
|
578
|
+
"startsWith": PropTypes.func.isRequired,
|
|
579
|
+
"strike": PropTypes.func.isRequired,
|
|
580
|
+
"sub": PropTypes.func.isRequired,
|
|
581
|
+
"substr": PropTypes.func.isRequired,
|
|
582
|
+
"substring": PropTypes.func.isRequired,
|
|
583
|
+
"sup": PropTypes.func.isRequired,
|
|
584
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
585
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
586
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
550
587
|
"toString": PropTypes.func.isRequired,
|
|
588
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
589
|
+
"trim": PropTypes.func.isRequired,
|
|
590
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
591
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
592
|
+
"trimRight": PropTypes.func.isRequired,
|
|
593
|
+
"trimStart": PropTypes.func.isRequired,
|
|
551
594
|
"valueOf": PropTypes.func.isRequired
|
|
552
595
|
})])), PropTypes.object, PropTypes.shape({
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"
|
|
556
|
-
"
|
|
596
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
597
|
+
"anchor": PropTypes.func.isRequired,
|
|
598
|
+
"at": PropTypes.func.isRequired,
|
|
599
|
+
"big": PropTypes.func.isRequired,
|
|
600
|
+
"blink": PropTypes.func.isRequired,
|
|
601
|
+
"bold": PropTypes.func.isRequired,
|
|
602
|
+
"charAt": PropTypes.func.isRequired,
|
|
603
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
604
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
605
|
+
"concat": PropTypes.func.isRequired,
|
|
606
|
+
"endsWith": PropTypes.func.isRequired,
|
|
607
|
+
"fixed": PropTypes.func.isRequired,
|
|
608
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
609
|
+
"fontsize": PropTypes.func.isRequired,
|
|
610
|
+
"includes": PropTypes.func.isRequired,
|
|
611
|
+
"indexOf": PropTypes.func.isRequired,
|
|
612
|
+
"italics": PropTypes.func.isRequired,
|
|
613
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
614
|
+
"length": PropTypes.number.isRequired,
|
|
615
|
+
"link": PropTypes.func.isRequired,
|
|
616
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
617
|
+
"match": PropTypes.func.isRequired,
|
|
618
|
+
"matchAll": PropTypes.func.isRequired,
|
|
619
|
+
"normalize": PropTypes.func.isRequired,
|
|
620
|
+
"padEnd": PropTypes.func.isRequired,
|
|
621
|
+
"padStart": PropTypes.func.isRequired,
|
|
622
|
+
"repeat": PropTypes.func.isRequired,
|
|
623
|
+
"replace": PropTypes.func.isRequired,
|
|
624
|
+
"search": PropTypes.func.isRequired,
|
|
625
|
+
"slice": PropTypes.func.isRequired,
|
|
626
|
+
"small": PropTypes.func.isRequired,
|
|
627
|
+
"split": PropTypes.func.isRequired,
|
|
628
|
+
"startsWith": PropTypes.func.isRequired,
|
|
629
|
+
"strike": PropTypes.func.isRequired,
|
|
630
|
+
"sub": PropTypes.func.isRequired,
|
|
631
|
+
"substr": PropTypes.func.isRequired,
|
|
632
|
+
"substring": PropTypes.func.isRequired,
|
|
633
|
+
"sup": PropTypes.func.isRequired,
|
|
634
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
635
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
636
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
557
637
|
"toString": PropTypes.func.isRequired,
|
|
638
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
639
|
+
"trim": PropTypes.func.isRequired,
|
|
640
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
641
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
642
|
+
"trimRight": PropTypes.func.isRequired,
|
|
643
|
+
"trimStart": PropTypes.func.isRequired,
|
|
558
644
|
"valueOf": PropTypes.func.isRequired
|
|
559
645
|
})]),
|
|
560
|
-
"flexShrink": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert", "unset", null]), PropTypes.shape({
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"
|
|
564
|
-
"
|
|
646
|
+
"flexShrink": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert-layer", "revert", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert-layer", "revert", "unset", null]), PropTypes.shape({
|
|
647
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
648
|
+
"anchor": PropTypes.func.isRequired,
|
|
649
|
+
"at": PropTypes.func.isRequired,
|
|
650
|
+
"big": PropTypes.func.isRequired,
|
|
651
|
+
"blink": PropTypes.func.isRequired,
|
|
652
|
+
"bold": PropTypes.func.isRequired,
|
|
653
|
+
"charAt": PropTypes.func.isRequired,
|
|
654
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
655
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
656
|
+
"concat": PropTypes.func.isRequired,
|
|
657
|
+
"endsWith": PropTypes.func.isRequired,
|
|
658
|
+
"fixed": PropTypes.func.isRequired,
|
|
659
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
660
|
+
"fontsize": PropTypes.func.isRequired,
|
|
661
|
+
"includes": PropTypes.func.isRequired,
|
|
662
|
+
"indexOf": PropTypes.func.isRequired,
|
|
663
|
+
"italics": PropTypes.func.isRequired,
|
|
664
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
665
|
+
"length": PropTypes.number.isRequired,
|
|
666
|
+
"link": PropTypes.func.isRequired,
|
|
667
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
668
|
+
"match": PropTypes.func.isRequired,
|
|
669
|
+
"matchAll": PropTypes.func.isRequired,
|
|
670
|
+
"normalize": PropTypes.func.isRequired,
|
|
671
|
+
"padEnd": PropTypes.func.isRequired,
|
|
672
|
+
"padStart": PropTypes.func.isRequired,
|
|
673
|
+
"repeat": PropTypes.func.isRequired,
|
|
674
|
+
"replace": PropTypes.func.isRequired,
|
|
675
|
+
"search": PropTypes.func.isRequired,
|
|
676
|
+
"slice": PropTypes.func.isRequired,
|
|
677
|
+
"small": PropTypes.func.isRequired,
|
|
678
|
+
"split": PropTypes.func.isRequired,
|
|
679
|
+
"startsWith": PropTypes.func.isRequired,
|
|
680
|
+
"strike": PropTypes.func.isRequired,
|
|
681
|
+
"sub": PropTypes.func.isRequired,
|
|
682
|
+
"substr": PropTypes.func.isRequired,
|
|
683
|
+
"substring": PropTypes.func.isRequired,
|
|
684
|
+
"sup": PropTypes.func.isRequired,
|
|
685
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
686
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
687
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
565
688
|
"toString": PropTypes.func.isRequired,
|
|
689
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
690
|
+
"trim": PropTypes.func.isRequired,
|
|
691
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
692
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
693
|
+
"trimRight": PropTypes.func.isRequired,
|
|
694
|
+
"trimStart": PropTypes.func.isRequired,
|
|
566
695
|
"valueOf": PropTypes.func.isRequired
|
|
567
696
|
})])), PropTypes.object, PropTypes.shape({
|
|
568
|
-
"
|
|
569
|
-
"
|
|
570
|
-
"
|
|
571
|
-
"
|
|
697
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
698
|
+
"anchor": PropTypes.func.isRequired,
|
|
699
|
+
"at": PropTypes.func.isRequired,
|
|
700
|
+
"big": PropTypes.func.isRequired,
|
|
701
|
+
"blink": PropTypes.func.isRequired,
|
|
702
|
+
"bold": PropTypes.func.isRequired,
|
|
703
|
+
"charAt": PropTypes.func.isRequired,
|
|
704
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
705
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
706
|
+
"concat": PropTypes.func.isRequired,
|
|
707
|
+
"endsWith": PropTypes.func.isRequired,
|
|
708
|
+
"fixed": PropTypes.func.isRequired,
|
|
709
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
710
|
+
"fontsize": PropTypes.func.isRequired,
|
|
711
|
+
"includes": PropTypes.func.isRequired,
|
|
712
|
+
"indexOf": PropTypes.func.isRequired,
|
|
713
|
+
"italics": PropTypes.func.isRequired,
|
|
714
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
715
|
+
"length": PropTypes.number.isRequired,
|
|
716
|
+
"link": PropTypes.func.isRequired,
|
|
717
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
718
|
+
"match": PropTypes.func.isRequired,
|
|
719
|
+
"matchAll": PropTypes.func.isRequired,
|
|
720
|
+
"normalize": PropTypes.func.isRequired,
|
|
721
|
+
"padEnd": PropTypes.func.isRequired,
|
|
722
|
+
"padStart": PropTypes.func.isRequired,
|
|
723
|
+
"repeat": PropTypes.func.isRequired,
|
|
724
|
+
"replace": PropTypes.func.isRequired,
|
|
725
|
+
"search": PropTypes.func.isRequired,
|
|
726
|
+
"slice": PropTypes.func.isRequired,
|
|
727
|
+
"small": PropTypes.func.isRequired,
|
|
728
|
+
"split": PropTypes.func.isRequired,
|
|
729
|
+
"startsWith": PropTypes.func.isRequired,
|
|
730
|
+
"strike": PropTypes.func.isRequired,
|
|
731
|
+
"sub": PropTypes.func.isRequired,
|
|
732
|
+
"substr": PropTypes.func.isRequired,
|
|
733
|
+
"substring": PropTypes.func.isRequired,
|
|
734
|
+
"sup": PropTypes.func.isRequired,
|
|
735
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
736
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
737
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
572
738
|
"toString": PropTypes.func.isRequired,
|
|
739
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
740
|
+
"trim": PropTypes.func.isRequired,
|
|
741
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
742
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
743
|
+
"trimRight": PropTypes.func.isRequired,
|
|
744
|
+
"trimStart": PropTypes.func.isRequired,
|
|
573
745
|
"valueOf": PropTypes.func.isRequired
|
|
574
746
|
})]),
|
|
575
|
-
"flexWrap": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "nowrap", "revert", "unset", "wrap-reverse", "wrap"]), PropTypes.arrayOf(PropTypes.oneOf(["-moz-initial", "inherit", "initial", "nowrap", "revert", "unset", "wrap-reverse", "wrap", null])), PropTypes.object]),
|
|
747
|
+
"flexWrap": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "nowrap", "revert-layer", "revert", "unset", "wrap-reverse", "wrap"]), PropTypes.arrayOf(PropTypes.oneOf(["-moz-initial", "inherit", "initial", "nowrap", "revert-layer", "revert", "unset", "wrap-reverse", "wrap", null])), PropTypes.object]),
|
|
576
748
|
"isGlobal": PropTypes.bool,
|
|
577
749
|
"isLoading": PropTypes.bool,
|
|
578
|
-
"justifyContent": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert", "right", "space-around", "space-between", "space-evenly", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert", "right", "space-around", "space-between", "space-evenly", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
750
|
+
"justifyContent": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert-layer", "revert", "right", "space-around", "space-between", "space-evenly", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert-layer", "revert", "right", "space-around", "space-between", "space-evenly", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
579
751
|
"__@iterator": PropTypes.func.isRequired,
|
|
580
752
|
"anchor": PropTypes.func.isRequired,
|
|
581
753
|
"at": PropTypes.func.isRequired,
|
|
@@ -676,7 +848,7 @@ NavigationBar.propTypes = {
|
|
|
676
848
|
"trimStart": PropTypes.func.isRequired,
|
|
677
849
|
"valueOf": PropTypes.func.isRequired
|
|
678
850
|
})]),
|
|
679
|
-
"justifyItems": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "legacy", "normal", "revert", "right", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "legacy", "normal", "revert", "right", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
851
|
+
"justifyItems": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "legacy", "normal", "revert-layer", "revert", "right", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "legacy", "normal", "revert-layer", "revert", "right", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
680
852
|
"__@iterator": PropTypes.func.isRequired,
|
|
681
853
|
"anchor": PropTypes.func.isRequired,
|
|
682
854
|
"at": PropTypes.func.isRequired,
|
|
@@ -777,7 +949,7 @@ NavigationBar.propTypes = {
|
|
|
777
949
|
"trimStart": PropTypes.func.isRequired,
|
|
778
950
|
"valueOf": PropTypes.func.isRequired
|
|
779
951
|
})]),
|
|
780
|
-
"justifySelf": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert", "right", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert", "right", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
952
|
+
"justifySelf": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert-layer", "revert", "right", "self-end", "self-start", "start", "stretch", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "auto", "baseline", "center", "end", "flex-end", "flex-start", "inherit", "initial", "left", "normal", "revert-layer", "revert", "right", "self-end", "self-start", "start", "stretch", "unset", null]), PropTypes.shape({
|
|
781
953
|
"__@iterator": PropTypes.func.isRequired,
|
|
782
954
|
"anchor": PropTypes.func.isRequired,
|
|
783
955
|
"at": PropTypes.func.isRequired,
|
|
@@ -880,19 +1052,105 @@ NavigationBar.propTypes = {
|
|
|
880
1052
|
})]),
|
|
881
1053
|
"navigationType": PropTypes.oneOf(["black", "dark", "light", "white"]),
|
|
882
1054
|
"offset": PropTypes.string,
|
|
883
|
-
"order": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert", "unset", null]), PropTypes.shape({
|
|
884
|
-
"
|
|
885
|
-
"
|
|
886
|
-
"
|
|
887
|
-
"
|
|
1055
|
+
"order": PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert-layer", "revert", "unset"]), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(["-moz-initial", "inherit", "initial", "revert-layer", "revert", "unset", null]), PropTypes.shape({
|
|
1056
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
1057
|
+
"anchor": PropTypes.func.isRequired,
|
|
1058
|
+
"at": PropTypes.func.isRequired,
|
|
1059
|
+
"big": PropTypes.func.isRequired,
|
|
1060
|
+
"blink": PropTypes.func.isRequired,
|
|
1061
|
+
"bold": PropTypes.func.isRequired,
|
|
1062
|
+
"charAt": PropTypes.func.isRequired,
|
|
1063
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
1064
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
1065
|
+
"concat": PropTypes.func.isRequired,
|
|
1066
|
+
"endsWith": PropTypes.func.isRequired,
|
|
1067
|
+
"fixed": PropTypes.func.isRequired,
|
|
1068
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
1069
|
+
"fontsize": PropTypes.func.isRequired,
|
|
1070
|
+
"includes": PropTypes.func.isRequired,
|
|
1071
|
+
"indexOf": PropTypes.func.isRequired,
|
|
1072
|
+
"italics": PropTypes.func.isRequired,
|
|
1073
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
1074
|
+
"length": PropTypes.number.isRequired,
|
|
1075
|
+
"link": PropTypes.func.isRequired,
|
|
1076
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
1077
|
+
"match": PropTypes.func.isRequired,
|
|
1078
|
+
"matchAll": PropTypes.func.isRequired,
|
|
1079
|
+
"normalize": PropTypes.func.isRequired,
|
|
1080
|
+
"padEnd": PropTypes.func.isRequired,
|
|
1081
|
+
"padStart": PropTypes.func.isRequired,
|
|
1082
|
+
"repeat": PropTypes.func.isRequired,
|
|
1083
|
+
"replace": PropTypes.func.isRequired,
|
|
1084
|
+
"search": PropTypes.func.isRequired,
|
|
1085
|
+
"slice": PropTypes.func.isRequired,
|
|
1086
|
+
"small": PropTypes.func.isRequired,
|
|
1087
|
+
"split": PropTypes.func.isRequired,
|
|
1088
|
+
"startsWith": PropTypes.func.isRequired,
|
|
1089
|
+
"strike": PropTypes.func.isRequired,
|
|
1090
|
+
"sub": PropTypes.func.isRequired,
|
|
1091
|
+
"substr": PropTypes.func.isRequired,
|
|
1092
|
+
"substring": PropTypes.func.isRequired,
|
|
1093
|
+
"sup": PropTypes.func.isRequired,
|
|
1094
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
1095
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
1096
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
888
1097
|
"toString": PropTypes.func.isRequired,
|
|
1098
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
1099
|
+
"trim": PropTypes.func.isRequired,
|
|
1100
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
1101
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
1102
|
+
"trimRight": PropTypes.func.isRequired,
|
|
1103
|
+
"trimStart": PropTypes.func.isRequired,
|
|
889
1104
|
"valueOf": PropTypes.func.isRequired
|
|
890
1105
|
})])), PropTypes.object, PropTypes.shape({
|
|
891
|
-
"
|
|
892
|
-
"
|
|
893
|
-
"
|
|
894
|
-
"
|
|
1106
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
1107
|
+
"anchor": PropTypes.func.isRequired,
|
|
1108
|
+
"at": PropTypes.func.isRequired,
|
|
1109
|
+
"big": PropTypes.func.isRequired,
|
|
1110
|
+
"blink": PropTypes.func.isRequired,
|
|
1111
|
+
"bold": PropTypes.func.isRequired,
|
|
1112
|
+
"charAt": PropTypes.func.isRequired,
|
|
1113
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
1114
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
1115
|
+
"concat": PropTypes.func.isRequired,
|
|
1116
|
+
"endsWith": PropTypes.func.isRequired,
|
|
1117
|
+
"fixed": PropTypes.func.isRequired,
|
|
1118
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
1119
|
+
"fontsize": PropTypes.func.isRequired,
|
|
1120
|
+
"includes": PropTypes.func.isRequired,
|
|
1121
|
+
"indexOf": PropTypes.func.isRequired,
|
|
1122
|
+
"italics": PropTypes.func.isRequired,
|
|
1123
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
1124
|
+
"length": PropTypes.number.isRequired,
|
|
1125
|
+
"link": PropTypes.func.isRequired,
|
|
1126
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
1127
|
+
"match": PropTypes.func.isRequired,
|
|
1128
|
+
"matchAll": PropTypes.func.isRequired,
|
|
1129
|
+
"normalize": PropTypes.func.isRequired,
|
|
1130
|
+
"padEnd": PropTypes.func.isRequired,
|
|
1131
|
+
"padStart": PropTypes.func.isRequired,
|
|
1132
|
+
"repeat": PropTypes.func.isRequired,
|
|
1133
|
+
"replace": PropTypes.func.isRequired,
|
|
1134
|
+
"search": PropTypes.func.isRequired,
|
|
1135
|
+
"slice": PropTypes.func.isRequired,
|
|
1136
|
+
"small": PropTypes.func.isRequired,
|
|
1137
|
+
"split": PropTypes.func.isRequired,
|
|
1138
|
+
"startsWith": PropTypes.func.isRequired,
|
|
1139
|
+
"strike": PropTypes.func.isRequired,
|
|
1140
|
+
"sub": PropTypes.func.isRequired,
|
|
1141
|
+
"substr": PropTypes.func.isRequired,
|
|
1142
|
+
"substring": PropTypes.func.isRequired,
|
|
1143
|
+
"sup": PropTypes.func.isRequired,
|
|
1144
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
1145
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
1146
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
895
1147
|
"toString": PropTypes.func.isRequired,
|
|
1148
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
1149
|
+
"trim": PropTypes.func.isRequired,
|
|
1150
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
1151
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
1152
|
+
"trimRight": PropTypes.func.isRequired,
|
|
1153
|
+
"trimStart": PropTypes.func.isRequired,
|
|
896
1154
|
"valueOf": PropTypes.func.isRequired
|
|
897
1155
|
})]),
|
|
898
1156
|
"orientation": PropTypes.oneOf(["bottom", "top"]),
|
|
@@ -121,7 +121,6 @@ Number.propTypes = {
|
|
|
121
121
|
"content": PropTypes.string,
|
|
122
122
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
123
123
|
"contextMenu": PropTypes.string,
|
|
124
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
125
124
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
126
125
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
127
126
|
}),
|
|
@@ -191,7 +191,6 @@ RadioButton.propTypes = {
|
|
|
191
191
|
"content": PropTypes.string,
|
|
192
192
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
193
193
|
"contextMenu": PropTypes.string,
|
|
194
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
195
194
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
196
195
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
197
196
|
}),
|
|
@@ -78,6 +78,7 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
78
78
|
label
|
|
79
79
|
});
|
|
80
80
|
const focusTimer = useRef(null);
|
|
81
|
+
const openOnFocusFlagBlock = useRef(false);
|
|
81
82
|
if (!deprecateInputRefWarnTriggered && inputRef) {
|
|
82
83
|
deprecateInputRefWarnTriggered = true;
|
|
83
84
|
Logger.deprecate("The `inputRef` prop in `Filterable Select` component is deprecated and will soon be removed. Please use `ref` instead.");
|
|
@@ -280,11 +281,13 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
280
281
|
triggerChange(newValue, selectionConfirmed);
|
|
281
282
|
setActiveDescendantId(selectedOptionId);
|
|
282
283
|
if (selectionType !== "navigationKey") {
|
|
284
|
+
openOnFocusFlagBlock.current = !!openOnFocus;
|
|
283
285
|
setOpen(false);
|
|
284
286
|
textboxRef?.focus();
|
|
285
287
|
textboxRef?.select();
|
|
288
|
+
openOnFocusFlagBlock.current = false;
|
|
286
289
|
}
|
|
287
|
-
}, [textboxRef, triggerChange]);
|
|
290
|
+
}, [textboxRef, triggerChange, openOnFocus]);
|
|
288
291
|
const onSelectListClose = useCallback(() => {
|
|
289
292
|
setOpen(false);
|
|
290
293
|
setMatchingText(selectedValue, true);
|
|
@@ -310,6 +313,9 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
310
313
|
if (focusTimer.current) {
|
|
311
314
|
clearTimeout(focusTimer.current);
|
|
312
315
|
}
|
|
316
|
+
if (openOnFocusFlagBlock.current) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
313
319
|
|
|
314
320
|
// we need to use a timeout here as there is a race condition when rendered in a modal
|
|
315
321
|
// whereby the select list isn't visible when the select is auto focused straight away
|
|
@@ -511,7 +517,6 @@ FilterableSelect.propTypes = {
|
|
|
511
517
|
"content": PropTypes.string,
|
|
512
518
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
513
519
|
"contextMenu": PropTypes.string,
|
|
514
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
515
520
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
516
521
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
517
522
|
}),
|
|
@@ -533,7 +533,6 @@ MultiSelect.propTypes = {
|
|
|
533
533
|
"content": PropTypes.string,
|
|
534
534
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
535
535
|
"contextMenu": PropTypes.string,
|
|
536
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
537
536
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
538
537
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
539
538
|
}),
|
|
@@ -113,7 +113,6 @@ Option.propTypes = {
|
|
|
113
113
|
"content": PropTypes.string,
|
|
114
114
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
115
115
|
"contextMenu": PropTypes.string,
|
|
116
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
117
116
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
118
117
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
119
118
|
}),
|
|
@@ -60,9 +60,6 @@ const SelectTextbox = /*#__PURE__*/React.forwardRef(({
|
|
|
60
60
|
});
|
|
61
61
|
const l = useLocale();
|
|
62
62
|
function handleTextboxClick(event) {
|
|
63
|
-
if (disabled || readOnly) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
63
|
onClick?.(event);
|
|
67
64
|
}
|
|
68
65
|
function handleTextboxFocus(event) {
|
|
@@ -115,7 +112,7 @@ const SelectTextbox = /*#__PURE__*/React.forwardRef(({
|
|
|
115
112
|
}), !hasTextCursor && /*#__PURE__*/React.createElement(SelectText, _extends({
|
|
116
113
|
transparent: transparent,
|
|
117
114
|
placeholder: placeholder || l.select.placeholder(),
|
|
118
|
-
onClick: handleTextboxClick,
|
|
115
|
+
onClick: disabled || readOnly ? undefined : handleTextboxClick,
|
|
119
116
|
disabled: disabled,
|
|
120
117
|
readOnly: readOnly,
|
|
121
118
|
size: size
|
|
@@ -195,7 +192,6 @@ SelectTextbox.propTypes = {
|
|
|
195
192
|
"content": PropTypes.string,
|
|
196
193
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
197
194
|
"contextMenu": PropTypes.string,
|
|
198
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
199
195
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
200
196
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
201
197
|
}),
|
|
@@ -435,7 +435,6 @@ SimpleSelect.propTypes = {
|
|
|
435
435
|
"content": PropTypes.string,
|
|
436
436
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
437
437
|
"contextMenu": PropTypes.string,
|
|
438
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
439
438
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
440
439
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
441
440
|
}),
|
|
@@ -240,7 +240,6 @@ Switch.propTypes = {
|
|
|
240
240
|
"content": PropTypes.string,
|
|
241
241
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
242
242
|
"contextMenu": PropTypes.string,
|
|
243
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
244
243
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
245
244
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
246
245
|
}),
|
|
@@ -300,7 +300,6 @@ Textarea.propTypes = {
|
|
|
300
300
|
"content": PropTypes.string,
|
|
301
301
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
302
302
|
"contextMenu": PropTypes.string,
|
|
303
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
304
303
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
305
304
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
306
305
|
}),
|
|
@@ -143,9 +143,9 @@ const Textbox = /*#__PURE__*/React.forwardRef(({
|
|
|
143
143
|
onBlur: onBlur,
|
|
144
144
|
onChange: onChange,
|
|
145
145
|
onChangeDeferred: onChangeDeferred,
|
|
146
|
-
onClick: onClick,
|
|
146
|
+
onClick: disabled || readOnly ? undefined : onClick,
|
|
147
147
|
onFocus: onFocus,
|
|
148
|
-
onMouseDown: onMouseDown,
|
|
148
|
+
onMouseDown: disabled || readOnly ? undefined : onMouseDown,
|
|
149
149
|
placeholder: disabled || readOnly ? "" : placeholder,
|
|
150
150
|
readOnly: readOnly,
|
|
151
151
|
value: typeof formattedValue === "string" ? formattedValue : value,
|
|
@@ -157,8 +157,8 @@ const Textbox = /*#__PURE__*/React.forwardRef(({
|
|
|
157
157
|
iconTabIndex: iconTabIndex,
|
|
158
158
|
info: info,
|
|
159
159
|
inputIcon: inputIcon,
|
|
160
|
-
onClick: iconOnClick || onClick,
|
|
161
|
-
onMouseDown: iconOnMouseDown || onMouseDown,
|
|
160
|
+
onClick: disabled || readOnly ? undefined : iconOnClick || onClick,
|
|
161
|
+
onMouseDown: disabled || readOnly ? undefined : iconOnMouseDown || onMouseDown,
|
|
162
162
|
readOnly: readOnly,
|
|
163
163
|
size: size,
|
|
164
164
|
useValidationIcon: !(validationRedesignOptIn || validationOnLabel),
|
|
@@ -277,7 +277,6 @@ Textbox.propTypes = {
|
|
|
277
277
|
"content": PropTypes.string,
|
|
278
278
|
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
279
279
|
"contextMenu": PropTypes.string,
|
|
280
|
-
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
281
280
|
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
282
281
|
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
283
282
|
}),
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { TransitionGroup, CSSTransition } from "react-transition-group";
|
|
5
5
|
import Icon from "../icon";
|
|
6
6
|
import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
7
|
-
import {
|
|
7
|
+
import { StyledToast, TypeIcon, StyledToastContent, ToastWrapper, StyledPortal } from "./toast.style";
|
|
8
8
|
import IconButton from "../icon-button";
|
|
9
9
|
import Events from "../../__internal__/utils/helpers/events";
|
|
10
10
|
import useLocale from "../../hooks/__internal__/useLocale";
|
|
@@ -108,7 +108,7 @@ const Toast = /*#__PURE__*/React.forwardRef(({
|
|
|
108
108
|
const toastIcon = iconToRender[variant] || "none";
|
|
109
109
|
function renderToastContent() {
|
|
110
110
|
if (!open) return null;
|
|
111
|
-
let toastVariant;
|
|
111
|
+
let toastVariant = "success";
|
|
112
112
|
if (!isNotice && !isNotification) {
|
|
113
113
|
toastVariant = variant;
|
|
114
114
|
}
|
|
@@ -121,7 +121,7 @@ const Toast = /*#__PURE__*/React.forwardRef(({
|
|
|
121
121
|
exit: 500
|
|
122
122
|
},
|
|
123
123
|
nodeRef: toastContentNodeRef
|
|
124
|
-
}, /*#__PURE__*/React.createElement(
|
|
124
|
+
}, /*#__PURE__*/React.createElement(StyledToast, _extends({
|
|
125
125
|
align: align,
|
|
126
126
|
alignY: alignY,
|
|
127
127
|
isNotice: isNotice,
|
|
@@ -140,7 +140,7 @@ const Toast = /*#__PURE__*/React.forwardRef(({
|
|
|
140
140
|
variant: isNotification ? "info" : variant
|
|
141
141
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
142
142
|
type: toastIcon
|
|
143
|
-
})), /*#__PURE__*/React.createElement(
|
|
143
|
+
})), /*#__PURE__*/React.createElement(StyledToastContent, {
|
|
144
144
|
isNotice: isNotice,
|
|
145
145
|
isDismiss: !!onDismiss
|
|
146
146
|
}, children), renderCloseIcon()));
|