carbon-react 138.2.2 → 140.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__internal__/fieldset/fieldset.component.js +1 -1
- package/esm/__internal__/focus-trap/focus-trap.component.js +2 -2
- package/esm/__internal__/form-field/form-field.component.js +1 -1
- package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.d.ts +1 -1
- package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.js +1 -1
- package/esm/__internal__/form-spacing-provider/index.d.ts +2 -2
- package/esm/__internal__/form-spacing-provider/index.js +1 -1
- package/esm/__internal__/input/input-presentation.component.js +1 -1
- package/esm/__internal__/input/input.component.js +1 -1
- package/esm/__internal__/popover/popover.component.js +1 -1
- package/esm/__internal__/utils/helpers/events/events.d.ts +1 -1
- package/esm/components/action-popover/action-popover-item/action-popover-item.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +1 -1
- package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +1 -1
- package/esm/components/action-popover/action-popover.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover.component.js +1 -1
- package/esm/components/button/button.component.js +1 -1
- package/esm/components/button-bar/__internal__/button-bar.context.d.ts +13 -0
- package/esm/components/button-bar/button-bar.component.d.ts +1 -11
- package/esm/components/button-bar/button-bar.component.js +1 -1
- package/esm/components/button-minor/button-minor.component.js +1 -1
- package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +16 -0
- package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.js +9 -0
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.d.ts +0 -14
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.js +3 -10
- package/esm/components/button-toggle/button-toggle.component.js +1 -1
- package/esm/components/carbon-provider/__internal__/new-validation.context.d.ts +14 -0
- package/esm/components/carbon-provider/__internal__/top-modal-provider.component.d.ts +5 -0
- package/esm/components/carbon-provider/{top-modal-context.js → __internal__/top-modal-provider.component.js} +5 -6
- package/esm/components/carbon-provider/__internal__/top-modal.context.d.ts +6 -0
- package/esm/components/carbon-provider/__internal__/top-modal.context.js +4 -0
- package/esm/components/carbon-provider/carbon-provider.component.d.ts +2 -9
- package/esm/components/carbon-provider/carbon-provider.component.js +4 -4
- package/esm/components/card/__internal__/{card-context/index.d.ts → card.context.d.ts} +1 -1
- package/esm/components/card/card-footer/card-footer.component.d.ts +1 -1
- package/esm/components/card/card-footer/card-footer.component.js +1 -1
- package/esm/components/card/card-footer/card-footer.style.d.ts +1 -1
- package/esm/components/card/card-row/card-row.component.js +1 -1
- package/esm/components/card/card.component.d.ts +1 -1
- package/esm/components/card/card.component.js +1 -1
- package/esm/components/card/card.style.d.ts +1 -1
- package/esm/components/checkbox/checkbox-group/__internal__/checkbox-group.context.d.ts +4 -0
- package/esm/components/checkbox/checkbox-group/__internal__/checkbox-group.context.js +2 -0
- package/esm/components/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -1
- package/esm/components/checkbox/checkbox-group/checkbox-group.component.js +2 -2
- package/esm/components/checkbox/checkbox.component.js +2 -2
- package/esm/components/date/date.component.d.ts +1 -1
- package/esm/components/date/date.component.js +1 -1
- package/esm/components/date-range/__internal__/date-range.context.js +2 -0
- package/esm/components/date-range/date-range.component.js +1 -1
- package/esm/components/date-range/index.d.ts +1 -1
- package/esm/components/dialog/dialog.component.d.ts +1 -1
- package/esm/components/dialog/dialog.component.js +11 -12
- package/esm/components/drawer/__internal__/drawer-sidebar.context.d.ts +6 -0
- package/esm/components/drawer/__internal__/drawer-sidebar.context.js +4 -0
- package/esm/components/drawer/drawer.component.d.ts +4 -6
- package/esm/components/drawer/drawer.component.js +13 -7
- package/esm/components/drawer/index.d.ts +2 -2
- package/esm/components/drawer/index.js +1 -1
- package/esm/components/duelling-picklist/duelling-picklist.component.js +1 -1
- package/esm/components/duelling-picklist/picklist/picklist.component.js +1 -1
- package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +1 -1
- package/esm/components/fieldset/fieldset.component.js +1 -1
- package/esm/components/flat-table/__internal__/flat-table.context.d.ts +7 -0
- package/esm/components/flat-table/__internal__/flat-table.context.js +4 -0
- package/esm/components/flat-table/__internal__/use-table-cell.js +3 -3
- package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +1 -1
- package/esm/components/flat-table/flat-table-head/__internal__/flat-table-head.context.d.ts +6 -0
- package/esm/components/flat-table/flat-table-head/__internal__/flat-table-head.context.js +4 -0
- package/esm/components/flat-table/flat-table-head/flat-table-head.component.d.ts +0 -4
- package/esm/components/flat-table/flat-table-head/flat-table-head.component.js +1 -3
- package/esm/components/flat-table/flat-table-header/flat-table-header-utils.d.ts +1 -1
- package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +2 -2
- package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +5 -5
- package/esm/components/flat-table/flat-table.component.d.ts +0 -4
- package/esm/components/flat-table/flat-table.component.js +3 -5
- package/esm/components/flat-table/flat-table.style.d.ts +1 -1
- package/esm/components/flat-table/sort/sort.component.js +2 -2
- package/esm/components/form/form.component.js +2 -2
- package/esm/components/icon/icon.component.js +1 -1
- package/esm/components/link/link.component.js +1 -1
- package/esm/components/menu/__internal__/submenu/submenu.component.js +2 -2
- package/esm/components/menu/__internal__/submenu/submenu.style.d.ts +1 -1
- package/esm/components/menu/menu-divider/menu-divider.component.js +1 -1
- package/esm/components/menu/menu-divider/menu-divider.style.d.ts +1 -1
- package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +1 -1
- package/esm/components/menu/menu-full-screen/menu-full-screen.style.d.ts +1 -1
- package/esm/components/menu/menu-item/menu-item.component.js +1 -1
- package/esm/components/menu/menu-item/menu-item.style.d.ts +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.style.d.ts +1 -1
- package/esm/components/menu/menu.component.d.ts +1 -1
- package/esm/components/menu/menu.component.js +1 -1
- package/esm/components/menu/scrollable-block/scrollable-block.component.js +1 -1
- package/esm/components/menu/scrollable-block/scrollable-block.style.d.ts +1 -1
- package/esm/components/modal/__internal__/modal.context.d.ts +8 -0
- package/esm/components/modal/__internal__/modal.context.js +2 -0
- package/esm/components/modal/index.d.ts +2 -2
- package/esm/components/modal/index.js +1 -1
- package/esm/components/modal/modal.component.d.ts +2 -8
- package/esm/components/modal/modal.component.js +6 -1
- package/{lib/components/navigation-bar → esm/components/navigation-bar/__internal__}/fixed-navigation-bar.context.d.ts +1 -1
- package/esm/components/navigation-bar/{fixed-navigation-bar.context.js → __internal__/fixed-navigation-bar.context.js} +1 -1
- package/esm/components/navigation-bar/navigation-bar.component.js +1 -1
- package/esm/components/note/note.component.js +1 -1
- package/esm/components/numeral-date/__internal__/numeral-date.context.js +2 -0
- package/esm/components/numeral-date/numeral-date.component.js +2 -2
- package/esm/components/pill/pill.style.js +7 -6
- package/esm/components/popover-container/popover-container.component.js +1 -1
- package/esm/components/portal/__internal__/portal.context.d.ts +6 -0
- package/esm/components/portal/__internal__/portal.context.js +2 -0
- package/esm/components/portal/portal.d.ts +0 -4
- package/esm/components/portal/portal.js +1 -1
- package/esm/components/portrait/portrait.component.js +1 -1
- package/esm/components/radio-button/radio-button-group/radio-button-group.component.js +1 -1
- package/esm/components/radio-button/radio-button.component.js +1 -1
- package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.js +2 -2
- package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.js +1 -1
- package/esm/components/select/{select-list → __internal__/select-list}/select-list.component.js +8 -8
- package/esm/components/select/{select-list → __internal__/select-list}/select-list.style.js +1 -1
- package/esm/components/select/__internal__/select-text/select-text.component.d.ts +0 -8
- package/{lib/components/select → esm/components/select/__internal__}/select-textbox/select-textbox.component.d.ts +3 -3
- package/esm/components/select/{select-textbox → __internal__/select-textbox}/select-textbox.component.js +5 -5
- package/esm/components/select/{utils → __internal__/utils}/is-expected-option.js +2 -2
- package/esm/components/select/{utils → __internal__/utils}/with-filter.hoc.js +5 -5
- package/esm/components/select/filterable-select/filterable-select.component.d.ts +1 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +5 -5
- package/esm/components/select/multi-select/multi-select.component.d.ts +1 -1
- package/esm/components/select/multi-select/multi-select.component.js +6 -6
- package/esm/components/select/option/option.component.js +1 -1
- package/esm/components/select/option-row/option-row.component.js +1 -1
- package/esm/components/select/simple-select/simple-select.component.d.ts +1 -1
- package/esm/components/select/simple-select/simple-select.component.js +5 -5
- package/esm/components/sidebar/__internal__/sidebar.context.d.ts +6 -0
- package/esm/components/sidebar/__internal__/sidebar.context.js +2 -0
- package/esm/components/sidebar/index.d.ts +1 -1
- package/esm/components/sidebar/index.js +1 -1
- package/esm/components/sidebar/sidebar.component.d.ts +0 -4
- package/esm/components/sidebar/sidebar.component.js +1 -1
- package/esm/components/switch/switch.component.js +1 -1
- package/esm/components/tabs/__internal__/tab-title/index.d.ts +1 -1
- package/esm/components/tabs/__internal__/tab-title/index.js +1 -1
- package/esm/components/tabs/__internal__/tab-title/tab-title.component.d.ts +0 -4
- package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -1
- package/esm/components/tabs/__internal__/tab-title/tab-title.context.d.ts +6 -0
- package/esm/components/tabs/__internal__/tab-title/tab-title.context.js +2 -0
- package/esm/components/tabs/tab/__internal__/tab.context.d.ts +8 -0
- package/esm/components/tabs/tab/__internal__/tab.context.js +2 -0
- package/esm/components/tabs/tab/index.d.ts +2 -2
- package/esm/components/tabs/tab/index.js +1 -1
- package/esm/components/tabs/tab/tab.component.d.ts +0 -7
- package/esm/components/tabs/tab/tab.component.js +1 -2
- package/esm/components/tabs/tabs.component.js +1 -1
- package/esm/components/text-editor/__internal__/editor-link/editor-link.component.js +1 -1
- package/esm/components/text-editor/__internal__/editor.context.d.ts +6 -0
- package/esm/components/text-editor/__internal__/editor.context.js +2 -0
- package/esm/components/text-editor/text-editor.component.d.ts +0 -4
- package/esm/components/text-editor/text-editor.component.js +2 -2
- package/esm/components/textarea/textarea.component.js +1 -1
- package/esm/components/textbox/textbox.component.js +2 -2
- package/esm/components/tile/tile-content/tile-content.component.js +1 -1
- package/esm/components/tile/tile.component.js +1 -1
- package/esm/components/vertical-divider/vertical-divider.component.js +2 -0
- package/esm/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -1
- package/esm/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.d.ts +5 -0
- package/esm/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.js +4 -0
- package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +2 -4
- package/esm/hooks/__internal__/useModalAria/useModalAria.js +1 -1
- package/lib/__internal__/fieldset/fieldset.component.js +2 -2
- package/lib/__internal__/focus-trap/focus-trap.component.js +4 -4
- package/lib/__internal__/form-field/form-field.component.js +2 -2
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.d.ts +1 -1
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +2 -2
- package/lib/__internal__/form-spacing-provider/index.d.ts +2 -2
- package/lib/__internal__/form-spacing-provider/index.js +2 -2
- package/lib/__internal__/input/input-presentation.component.js +2 -2
- package/lib/__internal__/input/input.component.js +2 -2
- package/lib/__internal__/popover/popover.component.js +2 -2
- package/lib/__internal__/utils/helpers/events/events.d.ts +1 -1
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +2 -2
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -2
- package/lib/components/action-popover/action-popover.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover.component.js +2 -2
- package/lib/components/button/button.component.js +2 -2
- package/lib/components/button-bar/__internal__/button-bar.context.d.ts +13 -0
- package/lib/components/button-bar/button-bar.component.d.ts +1 -11
- package/lib/components/button-bar/button-bar.component.js +3 -3
- package/lib/components/button-minor/button-minor.component.js +2 -2
- package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +16 -0
- package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.js +16 -0
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.d.ts +0 -14
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +5 -12
- package/lib/components/button-toggle/button-toggle.component.js +2 -2
- package/lib/components/carbon-provider/__internal__/new-validation.context.d.ts +14 -0
- package/lib/components/carbon-provider/__internal__/top-modal-provider.component.d.ts +5 -0
- package/lib/components/carbon-provider/{top-modal-context.js → __internal__/top-modal-provider.component.js} +8 -8
- package/lib/components/carbon-provider/__internal__/top-modal.context.d.ts +6 -0
- package/lib/components/carbon-provider/__internal__/top-modal.context.js +11 -0
- package/lib/components/carbon-provider/carbon-provider.component.d.ts +2 -9
- package/lib/components/carbon-provider/carbon-provider.component.js +6 -6
- package/lib/components/card/__internal__/{card-context/index.d.ts → card.context.d.ts} +1 -1
- package/lib/components/card/card-footer/card-footer.component.d.ts +1 -1
- package/lib/components/card/card-footer/card-footer.component.js +2 -2
- package/lib/components/card/card-footer/card-footer.style.d.ts +1 -1
- package/lib/components/card/card-row/card-row.component.js +2 -2
- package/lib/components/card/card.component.d.ts +1 -1
- package/lib/components/card/card.component.js +5 -5
- package/lib/components/card/card.style.d.ts +1 -1
- package/lib/components/checkbox/checkbox-group/__internal__/checkbox-group.context.d.ts +4 -0
- package/lib/components/checkbox/checkbox-group/__internal__/checkbox-group.context.js +9 -0
- package/lib/components/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -1
- package/lib/components/checkbox/checkbox-group/checkbox-group.component.js +6 -6
- package/lib/components/checkbox/checkbox.component.js +4 -4
- package/lib/components/date/date.component.d.ts +1 -1
- package/lib/components/date/date.component.js +1 -1
- package/lib/components/date-range/__internal__/date-range.context.js +9 -0
- package/lib/components/date-range/date-range.component.js +1 -1
- package/lib/components/date-range/index.d.ts +1 -1
- package/lib/components/dialog/dialog.component.d.ts +1 -1
- package/lib/components/dialog/dialog.component.js +11 -12
- package/lib/components/drawer/__internal__/drawer-sidebar.context.d.ts +6 -0
- package/lib/components/drawer/__internal__/drawer-sidebar.context.js +11 -0
- package/lib/components/drawer/drawer.component.d.ts +4 -6
- package/lib/components/drawer/drawer.component.js +22 -9
- package/lib/components/drawer/index.d.ts +2 -2
- package/lib/components/drawer/index.js +2 -9
- package/lib/components/duelling-picklist/duelling-picklist.component.js +1 -1
- package/lib/components/duelling-picklist/picklist/picklist.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +1 -1
- package/lib/components/fieldset/fieldset.component.js +2 -2
- package/lib/components/flat-table/__internal__/flat-table.context.d.ts +7 -0
- package/lib/components/flat-table/__internal__/flat-table.context.js +11 -0
- package/lib/components/flat-table/__internal__/use-table-cell.js +4 -4
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +2 -2
- package/lib/components/flat-table/flat-table-head/__internal__/flat-table-head.context.d.ts +6 -0
- package/lib/components/flat-table/flat-table-head/__internal__/flat-table-head.context.js +11 -0
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.d.ts +0 -4
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +3 -5
- package/lib/components/flat-table/flat-table-header/flat-table-header-utils.d.ts +1 -1
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +2 -2
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +8 -8
- package/lib/components/flat-table/flat-table.component.d.ts +0 -4
- package/lib/components/flat-table/flat-table.component.js +5 -7
- package/lib/components/flat-table/flat-table.style.d.ts +1 -1
- package/lib/components/flat-table/sort/sort.component.js +2 -2
- package/lib/components/form/form.component.js +4 -4
- package/lib/components/icon/icon.component.js +2 -2
- package/lib/components/link/link.component.js +1 -1
- package/lib/components/menu/__internal__/submenu/submenu.component.js +2 -2
- package/lib/components/menu/__internal__/submenu/submenu.style.d.ts +1 -1
- package/lib/components/menu/menu-divider/menu-divider.component.js +1 -1
- package/lib/components/menu/menu-divider/menu-divider.style.d.ts +1 -1
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +1 -1
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.d.ts +1 -1
- package/lib/components/menu/menu-item/menu-item.component.js +1 -1
- package/lib/components/menu/menu-item/menu-item.style.d.ts +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.d.ts +1 -1
- package/lib/components/menu/menu.component.d.ts +1 -1
- package/lib/components/menu/menu.component.js +1 -1
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +1 -1
- package/lib/components/menu/scrollable-block/scrollable-block.style.d.ts +1 -1
- package/lib/components/modal/__internal__/modal.context.d.ts +8 -0
- package/lib/components/modal/__internal__/modal.context.js +9 -0
- package/lib/components/modal/index.d.ts +2 -2
- package/lib/components/modal/index.js +2 -9
- package/lib/components/modal/modal.component.d.ts +2 -8
- package/lib/components/modal/modal.component.js +8 -3
- package/{esm/components/navigation-bar → lib/components/navigation-bar/__internal__}/fixed-navigation-bar.context.d.ts +1 -1
- package/lib/components/navigation-bar/{fixed-navigation-bar.context.js → __internal__/fixed-navigation-bar.context.js} +1 -1
- package/lib/components/navigation-bar/navigation-bar.component.js +1 -1
- package/lib/components/note/note.component.js +2 -2
- package/lib/components/numeral-date/__internal__/numeral-date.context.js +9 -0
- package/lib/components/numeral-date/numeral-date.component.js +4 -4
- package/lib/components/pill/pill.style.js +7 -6
- package/lib/components/popover-container/popover-container.component.js +2 -2
- package/lib/components/portal/__internal__/portal.context.d.ts +6 -0
- package/lib/components/portal/__internal__/portal.context.js +9 -0
- package/lib/components/portal/portal.d.ts +0 -4
- package/lib/components/portal/portal.js +3 -3
- package/lib/components/portrait/portrait.component.js +2 -2
- package/lib/components/radio-button/radio-button-group/radio-button-group.component.js +2 -2
- package/lib/components/radio-button/radio-button.component.js +2 -2
- package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.js +2 -2
- package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.js +1 -1
- package/lib/components/select/__internal__/list-action-button/package.json +6 -0
- package/lib/components/select/__internal__/select-list/package.json +6 -0
- package/lib/components/select/{select-list → __internal__/select-list}/select-list.component.js +9 -9
- package/lib/components/select/{select-list → __internal__/select-list}/select-list.style.js +1 -1
- package/lib/components/select/__internal__/select-text/select-text.component.d.ts +0 -8
- package/lib/components/select/__internal__/select-textbox/package.json +6 -0
- package/{esm/components/select → lib/components/select/__internal__}/select-textbox/select-textbox.component.d.ts +3 -3
- package/lib/components/select/{select-textbox → __internal__/select-textbox}/select-textbox.component.js +6 -6
- package/lib/components/select/{utils → __internal__/utils}/is-expected-option.js +2 -2
- package/lib/components/select/{utils → __internal__/utils}/with-filter.hoc.js +5 -5
- package/lib/components/select/filterable-select/filterable-select.component.d.ts +1 -1
- package/lib/components/select/filterable-select/filterable-select.component.js +5 -5
- package/lib/components/select/multi-select/multi-select.component.d.ts +1 -1
- package/lib/components/select/multi-select/multi-select.component.js +6 -6
- package/lib/components/select/option/option.component.js +2 -2
- package/lib/components/select/option-row/option-row.component.js +2 -2
- package/lib/components/select/simple-select/simple-select.component.d.ts +1 -1
- package/lib/components/select/simple-select/simple-select.component.js +5 -5
- package/lib/components/sidebar/__internal__/sidebar.context.d.ts +6 -0
- package/lib/components/sidebar/__internal__/sidebar.context.js +9 -0
- package/lib/components/sidebar/index.d.ts +1 -1
- package/lib/components/sidebar/index.js +2 -9
- package/lib/components/sidebar/sidebar.component.d.ts +0 -4
- package/lib/components/sidebar/sidebar.component.js +3 -3
- package/lib/components/switch/switch.component.js +2 -2
- package/lib/components/tabs/__internal__/tab-title/index.d.ts +1 -1
- package/lib/components/tabs/__internal__/tab-title/index.js +2 -9
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.d.ts +0 -4
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +3 -3
- package/lib/components/tabs/__internal__/tab-title/tab-title.context.d.ts +6 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.context.js +9 -0
- package/lib/components/tabs/tab/__internal__/tab.context.d.ts +8 -0
- package/lib/components/tabs/tab/__internal__/tab.context.js +9 -0
- package/lib/components/tabs/tab/index.d.ts +2 -2
- package/lib/components/tabs/tab/index.js +2 -9
- package/lib/components/tabs/tab/tab.component.d.ts +0 -7
- package/lib/components/tabs/tab/tab.component.js +3 -3
- package/lib/components/tabs/tabs.component.js +2 -2
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +2 -2
- package/lib/components/text-editor/__internal__/editor.context.d.ts +6 -0
- package/lib/components/text-editor/__internal__/editor.context.js +9 -0
- package/lib/components/text-editor/text-editor.component.d.ts +0 -4
- package/lib/components/text-editor/text-editor.component.js +5 -5
- package/lib/components/textarea/textarea.component.js +2 -2
- package/lib/components/textbox/textbox.component.js +4 -4
- package/lib/components/tile/tile-content/tile-content.component.js +2 -2
- package/lib/components/tile/tile.component.js +2 -2
- package/lib/components/vertical-divider/vertical-divider.component.js +2 -0
- package/lib/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -1
- package/lib/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.d.ts +5 -0
- package/lib/components/vertical-menu/vertical-menu-item/__internal__/menu-item.context.js +11 -0
- package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +4 -6
- package/lib/hooks/__internal__/useModalAria/useModalAria.js +2 -2
- package/package.json +1 -1
- package/esm/__spec_helper__/enzyme-snapshot-helper.js +0 -22
- package/esm/__spec_helper__/expect.d.ts +0 -8
- package/esm/__spec_helper__/expect.js +0 -28
- package/esm/__spec_helper__/index.d.ts +0 -1
- package/esm/__spec_helper__/index.js +0 -12
- package/esm/__spec_helper__/select-test-utils.d.ts +0 -3
- package/esm/__spec_helper__/select-test-utils.js +0 -39
- package/esm/__spec_helper__/test-utils.d.ts +0 -51
- package/esm/__spec_helper__/test-utils.js +0 -358
- package/esm/components/carbon-provider/top-modal-context.d.ts +0 -9
- package/lib/__spec_helper__/enzyme-snapshot-helper.js +0 -29
- package/lib/__spec_helper__/expect.d.ts +0 -8
- package/lib/__spec_helper__/expect.js +0 -30
- package/lib/__spec_helper__/index.d.ts +0 -1
- package/lib/__spec_helper__/index.js +0 -15
- package/lib/__spec_helper__/package.json +0 -6
- package/lib/__spec_helper__/select-test-utils.d.ts +0 -3
- package/lib/__spec_helper__/select-test-utils.js +0 -46
- package/lib/__spec_helper__/test-utils.d.ts +0 -51
- package/lib/__spec_helper__/test-utils.js +0 -391
- package/lib/components/carbon-provider/top-modal-context.d.ts +0 -9
- package/lib/components/card/__internal__/card-context/package.json +0 -6
- package/lib/components/select/list-action-button/package.json +0 -6
- package/lib/components/select/select-list/package.json +0 -6
- package/lib/components/select/select-textbox/package.json +0 -6
- /package/esm/__internal__/form-spacing-provider/{form-spacing-context.d.ts → form-spacing.context.d.ts} +0 -0
- /package/esm/__internal__/form-spacing-provider/{form-spacing-context.js → form-spacing.context.js} +0 -0
- /package/esm/components/action-popover/{action-popover-context.d.ts → __internal__/action-popover.context.d.ts} +0 -0
- /package/esm/components/action-popover/{action-popover-context.js → __internal__/action-popover.context.js} +0 -0
- /package/esm/components/{date-range/date-range.context.js → button-bar/__internal__/button-bar.context.js} +0 -0
- /package/esm/components/{numeral-date/numeral-date-context.js → carbon-provider/__internal__/new-validation.context.js} +0 -0
- /package/esm/components/card/__internal__/{card-context/index.js → card.context.js} +0 -0
- /package/esm/components/date-range/{date-range.context.d.ts → __internal__/date-range.context.d.ts} +0 -0
- /package/esm/components/duelling-picklist/{duelling-picklist.context.d.ts → __internal__/duelling-picklist.context.d.ts} +0 -0
- /package/esm/components/duelling-picklist/{duelling-picklist.context.js → __internal__/duelling-picklist.context.js} +0 -0
- /package/esm/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.d.ts → flat-table-row.context.d.ts} +0 -0
- /package/esm/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.js → flat-table-row.context.js} +0 -0
- /package/esm/components/menu/{menu.context.d.ts → __internal__/menu.context.d.ts} +0 -0
- /package/esm/components/menu/{menu.context.js → __internal__/menu.context.js} +0 -0
- /package/esm/components/numeral-date/{numeral-date-context.d.ts → __internal__/numeral-date.context.d.ts} +0 -0
- /package/esm/components/select/{list-action-button → __internal__/list-action-button}/index.d.ts +0 -0
- /package/esm/components/select/{list-action-button → __internal__/list-action-button}/index.js +0 -0
- /package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.d.ts +0 -0
- /package/esm/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.d.ts +0 -0
- /package/esm/components/select/{select-list → __internal__/select-list}/index.d.ts +0 -0
- /package/esm/components/select/{select-list → __internal__/select-list}/index.js +0 -0
- /package/esm/components/select/{select-list → __internal__/select-list}/select-list.component.d.ts +0 -0
- /package/esm/components/select/__internal__/{select-list-context.d.ts → select-list/select-list.context.d.ts} +0 -0
- /package/esm/components/select/__internal__/{select-list-context.js → select-list/select-list.context.js} +0 -0
- /package/esm/components/select/{select-list → __internal__/select-list}/select-list.style.d.ts +0 -0
- /package/esm/components/select/{select-textbox → __internal__/select-textbox}/index.d.ts +0 -0
- /package/esm/components/select/{select-textbox → __internal__/select-textbox}/index.js +0 -0
- /package/esm/components/select/{select-textbox/select-textbox-context.d.ts → __internal__/select-textbox/select-textbox.context.d.ts} +0 -0
- /package/esm/components/select/{select-textbox/select-textbox-context.js → __internal__/select-textbox/select-textbox.context.js} +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/get-next-child-by-text.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/get-next-child-by-text.js +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/get-next-index-by-key.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/get-next-index-by-key.js +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/highlight-part-of-text.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/highlight-part-of-text.js +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/is-expected-option.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/is-expected-value.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/is-expected-value.js +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/is-navigation-key.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/is-navigation-key.js +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/matching-text.style.d.ts +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/matching-text.style.js +0 -0
- /package/esm/components/select/{utils → __internal__/utils}/with-filter.hoc.d.ts +0 -0
- /package/esm/components/tile/__internal__/{tile-context.d.ts → tile.context.d.ts} +0 -0
- /package/esm/components/tile/__internal__/{tile-context.js → tile.context.js} +0 -0
- /package/esm/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.d.ts → __internal__/vertical-menu-full-screen.context.d.ts} +0 -0
- /package/esm/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.js → __internal__/vertical-menu-full-screen.context.js} +0 -0
- /package/lib/__internal__/form-spacing-provider/{form-spacing-context.d.ts → form-spacing.context.d.ts} +0 -0
- /package/lib/__internal__/form-spacing-provider/{form-spacing-context.js → form-spacing.context.js} +0 -0
- /package/lib/components/action-popover/{action-popover-context.d.ts → __internal__/action-popover.context.d.ts} +0 -0
- /package/lib/components/action-popover/{action-popover-context.js → __internal__/action-popover.context.js} +0 -0
- /package/lib/components/{date-range/date-range.context.js → button-bar/__internal__/button-bar.context.js} +0 -0
- /package/lib/components/{numeral-date/numeral-date-context.js → carbon-provider/__internal__/new-validation.context.js} +0 -0
- /package/lib/components/card/__internal__/{card-context/index.js → card.context.js} +0 -0
- /package/lib/components/date-range/{date-range.context.d.ts → __internal__/date-range.context.d.ts} +0 -0
- /package/lib/components/duelling-picklist/{duelling-picklist.context.d.ts → __internal__/duelling-picklist.context.d.ts} +0 -0
- /package/lib/components/duelling-picklist/{duelling-picklist.context.js → __internal__/duelling-picklist.context.js} +0 -0
- /package/lib/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.d.ts → flat-table-row.context.d.ts} +0 -0
- /package/lib/components/flat-table/flat-table-row/__internal__/{flat-table-row-context.js → flat-table-row.context.js} +0 -0
- /package/lib/components/menu/{menu.context.d.ts → __internal__/menu.context.d.ts} +0 -0
- /package/lib/components/menu/{menu.context.js → __internal__/menu.context.js} +0 -0
- /package/lib/components/numeral-date/{numeral-date-context.d.ts → __internal__/numeral-date.context.d.ts} +0 -0
- /package/lib/components/select/{list-action-button → __internal__/list-action-button}/index.d.ts +0 -0
- /package/lib/components/select/{list-action-button → __internal__/list-action-button}/index.js +0 -0
- /package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.component.d.ts +0 -0
- /package/lib/components/select/{list-action-button → __internal__/list-action-button}/list-action-button.style.d.ts +0 -0
- /package/lib/components/select/{select-list → __internal__/select-list}/index.d.ts +0 -0
- /package/lib/components/select/{select-list → __internal__/select-list}/index.js +0 -0
- /package/lib/components/select/{select-list → __internal__/select-list}/select-list.component.d.ts +0 -0
- /package/lib/components/select/__internal__/{select-list-context.d.ts → select-list/select-list.context.d.ts} +0 -0
- /package/lib/components/select/__internal__/{select-list-context.js → select-list/select-list.context.js} +0 -0
- /package/lib/components/select/{select-list → __internal__/select-list}/select-list.style.d.ts +0 -0
- /package/lib/components/select/{select-textbox → __internal__/select-textbox}/index.d.ts +0 -0
- /package/lib/components/select/{select-textbox → __internal__/select-textbox}/index.js +0 -0
- /package/lib/components/select/{select-textbox/select-textbox-context.d.ts → __internal__/select-textbox/select-textbox.context.d.ts} +0 -0
- /package/lib/components/select/{select-textbox/select-textbox-context.js → __internal__/select-textbox/select-textbox.context.js} +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/get-next-child-by-text.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/get-next-child-by-text.js +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/get-next-index-by-key.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/get-next-index-by-key.js +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/highlight-part-of-text.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/highlight-part-of-text.js +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/is-expected-option.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/is-expected-value.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/is-expected-value.js +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/is-navigation-key.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/is-navigation-key.js +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/matching-text.style.d.ts +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/matching-text.style.js +0 -0
- /package/lib/components/select/{utils → __internal__/utils}/with-filter.hoc.d.ts +0 -0
- /package/lib/components/tile/__internal__/{tile-context.d.ts → tile.context.d.ts} +0 -0
- /package/lib/components/tile/__internal__/{tile-context.js → tile.context.js} +0 -0
- /package/lib/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.d.ts → __internal__/vertical-menu-full-screen.context.d.ts} +0 -0
- /package/lib/components/vertical-menu/vertical-menu-full-screen/{vertical-menu-full-screen.context.js → __internal__/vertical-menu-full-screen.context.js} +0 -0
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
3
|
-
export interface
|
|
4
|
-
isInModal?: boolean;
|
|
5
|
-
isAnimationComplete?: boolean;
|
|
6
|
-
triggerRefocusFlag?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const ModalContext: React.Context<ModalContextProps>;
|
|
9
|
-
export interface ModalProps extends TagProps {
|
|
3
|
+
export interface ModalProps extends Omit<TagProps, "data-component"> {
|
|
10
4
|
/** Custom class name */
|
|
11
5
|
className?: string;
|
|
12
6
|
/** Modal content */
|
|
@@ -28,5 +22,5 @@ export interface ModalProps extends TagProps {
|
|
|
28
22
|
/** Manually override the internal modal stacking order to set this as top */
|
|
29
23
|
topModalOverride?: boolean;
|
|
30
24
|
}
|
|
31
|
-
declare const Modal: ({ children, open, onCancel, disableEscKey, disableClose, enableBackgroundUI, timeout, topModalOverride, ...rest }: ModalProps) => React.JSX.Element;
|
|
25
|
+
declare const Modal: ({ children, "data-element": dataElement, "data-role": dataRole, open, onCancel, disableEscKey, disableClose, enableBackgroundUI, timeout, topModalOverride, ...rest }: ModalProps) => React.JSX.Element;
|
|
32
26
|
export default Modal;
|
|
@@ -7,9 +7,11 @@ import Portal from "../portal";
|
|
|
7
7
|
import Events from "../../__internal__/utils/helpers/events";
|
|
8
8
|
import useModalManager from "../../hooks/__internal__/useModalManager";
|
|
9
9
|
import { StyledModal, StyledModalBackground } from "./modal.style";
|
|
10
|
-
|
|
10
|
+
import ModalContext from "./__internal__/modal.context";
|
|
11
11
|
const Modal = ({
|
|
12
12
|
children,
|
|
13
|
+
"data-element": dataElement,
|
|
14
|
+
"data-role": dataRole = "modal",
|
|
13
15
|
open,
|
|
14
16
|
onCancel,
|
|
15
17
|
disableEscKey = false,
|
|
@@ -70,6 +72,9 @@ const Modal = ({
|
|
|
70
72
|
content = children;
|
|
71
73
|
}
|
|
72
74
|
return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(StyledModal, _extends({
|
|
75
|
+
"data-component": "modal",
|
|
76
|
+
"data-element": dataElement,
|
|
77
|
+
"data-role": dataRole,
|
|
73
78
|
"data-state": open ? "open" : "closed",
|
|
74
79
|
transitionName: "modal",
|
|
75
80
|
transitionTime: timeout,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { createContext, useState, useCallback, useEffect } from "react";
|
|
2
|
-
import useResizeObserver from "
|
|
2
|
+
import useResizeObserver from "../../../hooks/__internal__/useResizeObserver/useResizeObserver";
|
|
3
3
|
const FixedNavigationBarContext = /*#__PURE__*/createContext({});
|
|
4
4
|
export const FixedNavigationBarContextProvider = ({
|
|
5
5
|
position,
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useRef } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import StyledNavigationBar from "./navigation-bar.style";
|
|
5
|
-
import { FixedNavigationBarContextProvider } from "./fixed-navigation-bar.context";
|
|
5
|
+
import { FixedNavigationBarContextProvider } from "./__internal__/fixed-navigation-bar.context";
|
|
6
6
|
const NavigationBar = ({
|
|
7
7
|
navigationType = "light",
|
|
8
8
|
isLoading = false,
|
|
@@ -7,7 +7,7 @@ import { StyledNote, StyledNoteContent, StyledNoteMain, StyledInlineControl, Sty
|
|
|
7
7
|
import StatusIcon from "./__internal__/status-icon";
|
|
8
8
|
import { ActionPopover } from "../action-popover";
|
|
9
9
|
import { getDecoratedValue } from "../text-editor/__internal__/utils";
|
|
10
|
-
import
|
|
10
|
+
import EditorContext from "../text-editor/__internal__/editor.context";
|
|
11
11
|
import LinkPreview from "../link-preview";
|
|
12
12
|
function hasExpectedDisplayName(child, displayName) {
|
|
13
13
|
return child.type.displayName === displayName;
|
|
@@ -15,8 +15,8 @@ import useLocale from "../../hooks/__internal__/useLocale";
|
|
|
15
15
|
import FormField from "../../__internal__/form-field";
|
|
16
16
|
import { InputGroupBehaviour } from "../../__internal__/input-behaviour";
|
|
17
17
|
import { TooltipProvider } from "../../__internal__/tooltip-provider";
|
|
18
|
-
import
|
|
19
|
-
import NumeralDateContext from "./numeral-date
|
|
18
|
+
import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
|
|
19
|
+
import NumeralDateContext from "./__internal__/numeral-date.context";
|
|
20
20
|
import FormSpacingProvider from "../../__internal__/form-spacing-provider";
|
|
21
21
|
import Logger from "../../__internal__/utils/logger";
|
|
22
22
|
let deprecateUncontrolledWarnTriggered = false;
|
|
@@ -4,6 +4,7 @@ import { margin } from "styled-system";
|
|
|
4
4
|
import styleConfig from "./pill.style.config";
|
|
5
5
|
import { baseTheme } from "../../style/themes";
|
|
6
6
|
import StyledIcon from "../icon/icon.style";
|
|
7
|
+
import StyledIconButton from "../icon-button/icon-button.style";
|
|
7
8
|
import { toColor } from "../../style/utils/color";
|
|
8
9
|
import getColorValue from "../../style/utils/get-color-value";
|
|
9
10
|
const StyledPill = styled.span`
|
|
@@ -45,7 +46,7 @@ const StyledPill = styled.span`
|
|
|
45
46
|
}
|
|
46
47
|
} catch (e) {
|
|
47
48
|
// eslint-disable-next-line no-console
|
|
48
|
-
console.error(
|
|
49
|
+
console.error(`Error: [Pill] - Could not parse the string '${borderColor}', please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.`);
|
|
49
50
|
}
|
|
50
51
|
return css`
|
|
51
52
|
font-size: 12px;
|
|
@@ -126,7 +127,7 @@ const StyledPill = styled.span`
|
|
|
126
127
|
`}
|
|
127
128
|
|
|
128
129
|
${isDeletable && css`
|
|
129
|
-
|
|
130
|
+
${StyledIconButton} {
|
|
130
131
|
-webkit-appearance: none;
|
|
131
132
|
${!theme.roundedCornersOptOut && css`
|
|
132
133
|
border-radius: var(--borderRadius000);
|
|
@@ -187,7 +188,7 @@ const StyledPill = styled.span`
|
|
|
187
188
|
${size === "S" && css`
|
|
188
189
|
padding: 0 22px 0 8px;
|
|
189
190
|
|
|
190
|
-
|
|
191
|
+
${StyledIconButton} {
|
|
191
192
|
padding: 0;
|
|
192
193
|
line-height: 16px;
|
|
193
194
|
|
|
@@ -207,7 +208,7 @@ const StyledPill = styled.span`
|
|
|
207
208
|
${size === "M" && css`
|
|
208
209
|
padding: 0 28px 0 8px;
|
|
209
210
|
|
|
210
|
-
|
|
211
|
+
${StyledIconButton} {
|
|
211
212
|
width: 24px;
|
|
212
213
|
padding: 0;
|
|
213
214
|
line-height: 15px;
|
|
@@ -221,7 +222,7 @@ const StyledPill = styled.span`
|
|
|
221
222
|
${size === "L" && css`
|
|
222
223
|
padding: 0 32px 0 8px;
|
|
223
224
|
|
|
224
|
-
|
|
225
|
+
${StyledIconButton} {
|
|
225
226
|
width: 28px;
|
|
226
227
|
padding: 0;
|
|
227
228
|
line-height: 16px;
|
|
@@ -235,7 +236,7 @@ const StyledPill = styled.span`
|
|
|
235
236
|
${size === "XL" && css`
|
|
236
237
|
padding: 0 36px 0 12px;
|
|
237
238
|
|
|
238
|
-
|
|
239
|
+
${StyledIconButton} {
|
|
239
240
|
width: 32px;
|
|
240
241
|
padding: 0;
|
|
241
242
|
line-height: 18px;
|
|
@@ -12,7 +12,7 @@ import { filterStyledSystemPaddingProps } from "../../style/utils";
|
|
|
12
12
|
import useClickAwayListener from "../../hooks/__internal__/useClickAwayListener";
|
|
13
13
|
import Events from "../../__internal__/utils/helpers/events";
|
|
14
14
|
import FocusTrap from "../../__internal__/focus-trap";
|
|
15
|
-
import
|
|
15
|
+
import ModalContext from "../modal/__internal__/modal.context";
|
|
16
16
|
import useFocusPortalContent from "../../hooks/__internal__/useFocusPortalContent";
|
|
17
17
|
import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
18
18
|
export const renderOpen = ({
|
|
@@ -4,7 +4,7 @@ import styled, { css } from "styled-components";
|
|
|
4
4
|
import guid from "../../__internal__/utils/helpers/guid";
|
|
5
5
|
import CarbonScopedTokensProvider from "../../style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component";
|
|
6
6
|
import StyledPortalEntrance from "./portal.style";
|
|
7
|
-
|
|
7
|
+
import PortalContext from "./__internal__/portal.context";
|
|
8
8
|
const Container = styled.div`
|
|
9
9
|
${({
|
|
10
10
|
theme
|
|
@@ -8,7 +8,7 @@ import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
|
8
8
|
import { PORTRAIT_SIZE_PARAMS } from "./portrait.config";
|
|
9
9
|
import { StyledCustomImg, StyledIcon, StyledPortraitContainer, StyledPortraitInitials, StyledPortraitGravatar } from "./portrait.style";
|
|
10
10
|
import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
11
|
-
import
|
|
11
|
+
import RoundedCornersOptOutContext from "../carbon-provider/__internal__/new-validation.context";
|
|
12
12
|
const Portrait = ({
|
|
13
13
|
alt,
|
|
14
14
|
name,
|
|
@@ -9,7 +9,7 @@ import useIsAboveBreakpoint from "../../../hooks/__internal__/useIsAboveBreakpoi
|
|
|
9
9
|
import { filterStyledSystemMarginProps } from "../../../style/utils";
|
|
10
10
|
import { TooltipProvider } from "../../../__internal__/tooltip-provider";
|
|
11
11
|
import Logger from "../../../__internal__/utils/logger";
|
|
12
|
-
import
|
|
12
|
+
import NewValidationContext from "../../carbon-provider/__internal__/new-validation.context";
|
|
13
13
|
import ValidationMessage from "../../../__internal__/validation-message/validation-message.component";
|
|
14
14
|
import Box from "../../box";
|
|
15
15
|
import { ErrorBorder } from "../../textbox/textbox.style";
|
|
@@ -7,7 +7,7 @@ import CheckableInput from "../../__internal__/checkable-input/checkable-input.c
|
|
|
7
7
|
import RadioButtonSvg from "./radio-button-svg.component";
|
|
8
8
|
import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
9
9
|
import { TooltipProvider } from "../../__internal__/tooltip-provider";
|
|
10
|
-
import
|
|
10
|
+
import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
|
|
11
11
|
const RadioButton = /*#__PURE__*/React.forwardRef(({
|
|
12
12
|
autoFocus,
|
|
13
13
|
checked,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import StyledListActionButtonWrapper from "./list-action-button.style";
|
|
4
|
-
import useLocale from "
|
|
5
|
-
import Button from "
|
|
4
|
+
import useLocale from "../../../../hooks/__internal__/useLocale";
|
|
5
|
+
import Button from "../../../button";
|
|
6
6
|
const ListActionButton = /*#__PURE__*/React.forwardRef(({
|
|
7
7
|
listActionButton,
|
|
8
8
|
onListAction
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import StyledButton from "
|
|
2
|
+
import StyledButton from "../../../button/button.style";
|
|
3
3
|
const StyledListActionButtonWrapper = styled.div`
|
|
4
4
|
padding-top: var(--spacing100);
|
|
5
5
|
padding-bottom: var(--spacing100);
|
package/esm/components/select/{select-list → __internal__/select-list}/select-list.component.js
RENAMED
|
@@ -4,19 +4,19 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { flip, offset, size } from "@floating-ui/dom";
|
|
5
5
|
import { useVirtualizer, defaultRangeExtractor } from "@tanstack/react-virtual";
|
|
6
6
|
import findLastIndex from "lodash/findLastIndex";
|
|
7
|
-
import usePrevious from "
|
|
8
|
-
import useScrollBlock from "
|
|
9
|
-
import useModalManager from "
|
|
7
|
+
import usePrevious from "../../../../hooks/__internal__/usePrevious";
|
|
8
|
+
import useScrollBlock from "../../../../hooks/__internal__/useScrollBlock";
|
|
9
|
+
import useModalManager from "../../../../hooks/__internal__/useModalManager";
|
|
10
10
|
import { StyledSelectList, StyledSelectLoaderContainer, StyledSelectListTable, StyledSelectListTableHeader, StyledSelectListTableBody, StyledSelectListContainer, StyledScrollableContainer } from "./select-list.style";
|
|
11
|
-
import Popover from "
|
|
12
|
-
import OptionRow from "
|
|
11
|
+
import Popover from "../../../../__internal__/popover";
|
|
12
|
+
import OptionRow from "../../option-row/option-row.component";
|
|
13
13
|
import getNextChildByText from "../utils/get-next-child-by-text";
|
|
14
14
|
import getNextIndexByKey from "../utils/get-next-index-by-key";
|
|
15
15
|
import isNavigationKey from "../utils/is-navigation-key";
|
|
16
16
|
import ListActionButton from "../list-action-button";
|
|
17
|
-
import Loader from "
|
|
18
|
-
import Option from "
|
|
19
|
-
import SelectListContext from "
|
|
17
|
+
import Loader from "../../../loader";
|
|
18
|
+
import Option from "../../option";
|
|
19
|
+
import SelectListContext from "./select-list.context";
|
|
20
20
|
const TABLE_HEADER_HEIGHT = 48;
|
|
21
21
|
const SCROLL_OPTIONS = {
|
|
22
22
|
behavior: "auto",
|
|
@@ -4,16 +4,8 @@ export interface SelectTextProps {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
/** Value to be displayed */
|
|
6
6
|
formattedValue?: string;
|
|
7
|
-
/** Label id passed from Select component */
|
|
8
|
-
labelId?: string;
|
|
9
|
-
/** If true, the list is displayed */
|
|
10
|
-
isOpen?: boolean;
|
|
11
|
-
/** Callback function for when the Select Textbox loses it's focus. */
|
|
12
|
-
onBlur?: (ev: React.FocusEvent<HTMLElement>) => void;
|
|
13
7
|
/** Callback function for when the component is clicked. */
|
|
14
8
|
onClick?: (ev: React.MouseEvent<HTMLElement>) => void;
|
|
15
|
-
/** Callback function for when the Select Textbox is focused. */
|
|
16
|
-
onFocus?: (ev: React.FocusEvent<HTMLElement>) => void;
|
|
17
9
|
/** Callback function for when the key is pressed when focused on Select Text. */
|
|
18
10
|
/** Callback function for when the left mouse key is pressed when focused on Select Text. */
|
|
19
11
|
onMouseDown?: (ev: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CommonTextboxProps } from "
|
|
3
|
-
import { ValidationProps } from "
|
|
4
|
-
import { CustomSelectChangeEvent } from "
|
|
2
|
+
import { CommonTextboxProps } from "../../../textbox";
|
|
3
|
+
import { ValidationProps } from "../../../../__internal__/validations";
|
|
4
|
+
import { CustomSelectChangeEvent } from "../../simple-select/simple-select.component";
|
|
5
5
|
export interface FormInputPropTypes extends ValidationProps, Omit<CommonTextboxProps, "onClick" | "onChange"> {
|
|
6
6
|
/** Breakpoint for adaptive label (inline labels change to top aligned). Enables the adaptive behaviour when set */
|
|
7
7
|
adaptiveLabelBreakpoint?: number;
|
|
@@ -2,11 +2,11 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useMemo } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { offset, size as sizeMiddleware } from "@floating-ui/dom";
|
|
5
|
-
import useFloating from "
|
|
6
|
-
import Textbox from "
|
|
7
|
-
import SelectText from "../
|
|
8
|
-
import useLocale from "
|
|
9
|
-
import { SelectTextboxContext } from "./select-textbox
|
|
5
|
+
import useFloating from "../../../../hooks/__internal__/useFloating";
|
|
6
|
+
import Textbox from "../../../textbox";
|
|
7
|
+
import SelectText from "../select-text";
|
|
8
|
+
import useLocale from "../../../../hooks/__internal__/useLocale";
|
|
9
|
+
import { SelectTextboxContext } from "./select-textbox.context";
|
|
10
10
|
const floatingMiddleware = [offset(({
|
|
11
11
|
rects
|
|
12
12
|
}) => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Option from "
|
|
2
|
-
import OptionRow from "
|
|
1
|
+
import Option from "../../option";
|
|
2
|
+
import OptionRow from "../../option-row/option-row.component";
|
|
3
3
|
import isExpectedValue from "./is-expected-value";
|
|
4
4
|
export default function isExpectedOption(element, expectedValue) {
|
|
5
5
|
if (element.type !== Option && element.type !== OptionRow) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
import React, { useCallback } from "react";
|
|
3
|
-
import useLocale from "
|
|
4
|
-
import StyledOptionRow from "
|
|
5
|
-
import StyledOption from "
|
|
6
|
-
import Option from "
|
|
7
|
-
import OptionRow from "
|
|
3
|
+
import useLocale from "../../../../hooks/__internal__/useLocale";
|
|
4
|
+
import StyledOptionRow from "../../option-row/option-row.style";
|
|
5
|
+
import StyledOption from "../../option/option.style";
|
|
6
|
+
import Option from "../../option";
|
|
7
|
+
import OptionRow from "../../option-row/option-row.component";
|
|
8
8
|
import highlightPartOfText from "./highlight-part-of-text";
|
|
9
9
|
const filterOptions = (option, filterText) => {
|
|
10
10
|
const processedText = option.props.text?.toLowerCase();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Side } from "@floating-ui/dom";
|
|
3
3
|
import { ButtonProps } from "../../button";
|
|
4
|
-
import { FormInputPropTypes } from "../select-textbox";
|
|
4
|
+
import { FormInputPropTypes } from "../__internal__/select-textbox";
|
|
5
5
|
export interface FilterableSelectProps extends Omit<FormInputPropTypes, "defaultValue" | "value"> {
|
|
6
6
|
/** Prop to specify the aria-label attribute of the component input */
|
|
7
7
|
"aria-label"?: string;
|
|
@@ -3,13 +3,13 @@ import React, { useState, useEffect, useRef, useCallback } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import invariant from "invariant";
|
|
5
5
|
import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
|
|
6
|
-
import SelectTextbox from "../select-textbox";
|
|
6
|
+
import SelectTextbox from "../__internal__/select-textbox";
|
|
7
7
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
8
|
-
import withFilter from "../utils/with-filter.hoc";
|
|
8
|
+
import withFilter from "../__internal__/utils/with-filter.hoc";
|
|
9
9
|
import StyledSelect from "../select.style";
|
|
10
|
-
import SelectList from "../select-list/select-list.component";
|
|
11
|
-
import isExpectedOption from "../utils/is-expected-option";
|
|
12
|
-
import isNavigationKey from "../utils/is-navigation-key";
|
|
10
|
+
import SelectList from "../__internal__/select-list/select-list.component";
|
|
11
|
+
import isExpectedOption from "../__internal__/utils/is-expected-option";
|
|
12
|
+
import isNavigationKey from "../__internal__/utils/is-navigation-key";
|
|
13
13
|
import Logger from "../../../__internal__/utils/logger";
|
|
14
14
|
import useStableCallback from "../../../hooks/__internal__/useStableCallback";
|
|
15
15
|
import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Side } from "@floating-ui/dom";
|
|
3
|
-
import { FormInputPropTypes } from "../select-textbox";
|
|
3
|
+
import { FormInputPropTypes } from "../__internal__/select-textbox";
|
|
4
4
|
export interface MultiSelectProps extends Omit<FormInputPropTypes, "defaultValue" | "value"> {
|
|
5
5
|
/** Prop to specify the aria-label attribute of the component input */
|
|
6
6
|
"aria-label"?: string;
|
|
@@ -3,15 +3,15 @@ import React, { useState, useEffect, useRef, useCallback, useMemo } from "react"
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import invariant from "invariant";
|
|
5
5
|
import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
|
|
6
|
-
import SelectTextbox from "../select-textbox";
|
|
6
|
+
import SelectTextbox from "../__internal__/select-textbox";
|
|
7
7
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
8
|
-
import withFilter from "../utils/with-filter.hoc";
|
|
9
|
-
import SelectList from "../select-list/select-list.component";
|
|
8
|
+
import withFilter from "../__internal__/utils/with-filter.hoc";
|
|
9
|
+
import SelectList from "../__internal__/select-list/select-list.component";
|
|
10
10
|
import { StyledSelectPillContainer, StyledSelectMultiSelect, StyledAccessibilityLabelContainer } from "./multi-select.style";
|
|
11
11
|
import Pill from "../../pill";
|
|
12
|
-
import isExpectedOption from "../utils/is-expected-option";
|
|
13
|
-
import isExpectedValue from "../utils/is-expected-value";
|
|
14
|
-
import isNavigationKey from "../utils/is-navigation-key";
|
|
12
|
+
import isExpectedOption from "../__internal__/utils/is-expected-option";
|
|
13
|
+
import isExpectedValue from "../__internal__/utils/is-expected-value";
|
|
14
|
+
import isNavigationKey from "../__internal__/utils/is-navigation-key";
|
|
15
15
|
import Logger from "../../../__internal__/utils/logger";
|
|
16
16
|
import useStableCallback from "../../../hooks/__internal__/useStableCallback";
|
|
17
17
|
import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
|
|
@@ -3,7 +3,7 @@ import React, { useContext, useRef } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
5
5
|
import StyledOption from "./option.style";
|
|
6
|
-
import SelectListContext from "../__internal__/select-list-context";
|
|
6
|
+
import SelectListContext from "../__internal__/select-list/select-list.context";
|
|
7
7
|
const Option = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
text,
|
|
9
9
|
children,
|
|
@@ -3,7 +3,7 @@ import React, { useContext, useRef } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
5
5
|
import StyledOptionRow from "./option-row.style";
|
|
6
|
-
import SelectListContext from "../__internal__/select-list-context";
|
|
6
|
+
import SelectListContext from "../__internal__/select-list/select-list.context";
|
|
7
7
|
const OptionRow = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
id,
|
|
9
9
|
text,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Side } from "@floating-ui/dom";
|
|
3
|
-
import { FormInputPropTypes } from "../select-textbox";
|
|
3
|
+
import { FormInputPropTypes } from "../__internal__/select-textbox";
|
|
4
4
|
export interface OptionData {
|
|
5
5
|
text?: string;
|
|
6
6
|
value?: string | Record<string, unknown>;
|
|
@@ -4,12 +4,12 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import invariant from "invariant";
|
|
5
5
|
import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
|
|
6
6
|
import StyledSelect from "../select.style";
|
|
7
|
-
import SelectTextbox from "../select-textbox";
|
|
8
|
-
import SelectList from "../select-list/select-list.component";
|
|
7
|
+
import SelectTextbox from "../__internal__/select-textbox";
|
|
8
|
+
import SelectList from "../__internal__/select-list/select-list.component";
|
|
9
9
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
10
|
-
import getNextChildByText from "../utils/get-next-child-by-text";
|
|
11
|
-
import isExpectedOption from "../utils/is-expected-option";
|
|
12
|
-
import isNavigationKey from "../utils/is-navigation-key";
|
|
10
|
+
import getNextChildByText from "../__internal__/utils/get-next-child-by-text";
|
|
11
|
+
import isExpectedOption from "../__internal__/utils/is-expected-option";
|
|
12
|
+
import isNavigationKey from "../__internal__/utils/is-navigation-key";
|
|
13
13
|
import Logger from "../../../__internal__/utils/logger";
|
|
14
14
|
import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
|
|
15
15
|
import useInputAccessibility from "../../../hooks/__internal__/useInputAccessibility/useInputAccessibility";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./sidebar.component";
|
|
2
2
|
export type { SidebarProps } from "./sidebar.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./sidebar.component";
|
|
@@ -5,10 +5,6 @@ import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
|
5
5
|
declare type CustomRefObject<T> = {
|
|
6
6
|
current?: T | null;
|
|
7
7
|
};
|
|
8
|
-
export interface SidebarContextProps {
|
|
9
|
-
isInSidebar?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const SidebarContext: React.Context<SidebarContextProps>;
|
|
12
8
|
export interface SidebarProps extends PaddingProps, TagProps, WidthProps, Pick<ModalProps, "topModalOverride"> {
|
|
13
9
|
/** Prop to specify the aria-describedby property of the component */
|
|
14
10
|
"aria-describedby"?: string;
|
|
@@ -12,10 +12,10 @@ import createGuid from "../../__internal__/utils/helpers/guid";
|
|
|
12
12
|
import useLocale from "../../hooks/__internal__/useLocale";
|
|
13
13
|
import { filterStyledSystemPaddingProps } from "../../style/utils";
|
|
14
14
|
import useModalAria from "../../hooks/__internal__/useModalAria/useModalAria";
|
|
15
|
+
import SidebarContext from "./__internal__/sidebar.context";
|
|
15
16
|
|
|
16
17
|
// TODO FE-5408 will investigate why React.RefObject<T> produces a failed prop type when current = null
|
|
17
18
|
|
|
18
|
-
export const SidebarContext = /*#__PURE__*/React.createContext({});
|
|
19
19
|
const Sidebar = /*#__PURE__*/React.forwardRef(({
|
|
20
20
|
"aria-describedby": ariaDescribedBy,
|
|
21
21
|
"aria-label": ariaLabel,
|
|
@@ -7,7 +7,7 @@ import useIsAboveBreakpoint from "../../hooks/__internal__/useIsAboveBreakpoint"
|
|
|
7
7
|
import { TooltipProvider } from "../../__internal__/tooltip-provider";
|
|
8
8
|
import Logger from "../../__internal__/utils/logger";
|
|
9
9
|
import useFormSpacing from "../../hooks/__internal__/useFormSpacing";
|
|
10
|
-
import
|
|
10
|
+
import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
|
|
11
11
|
import ValidationMessage from "../../__internal__/validation-message/validation-message.component";
|
|
12
12
|
import Box from "../box";
|
|
13
13
|
import Label from "../../__internal__/label";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./tab-title.component";
|
|
2
2
|
export type { TabTitleProps } from "./tab-title.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./tab-title.component";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface TabTitleContextProps {
|
|
3
|
-
isInTab?: boolean;
|
|
4
|
-
}
|
|
5
2
|
export interface TabTitleProps {
|
|
6
3
|
/** Identifier used for testing purposes */
|
|
7
4
|
"data-role"?: string;
|
|
@@ -33,6 +30,5 @@ export interface TabTitleProps {
|
|
|
33
30
|
onClick: (ev: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
34
31
|
onKeyDown: (ev: React.KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
35
32
|
}
|
|
36
|
-
export declare const TabTitleContext: React.Context<TabTitleContextProps>;
|
|
37
33
|
declare const TabTitle: React.ForwardRefExoticComponent<TabTitleProps & React.RefAttributes<HTMLElement>>;
|
|
38
34
|
export default TabTitle;
|
|
@@ -7,7 +7,7 @@ import ValidationIcon from "../../../../__internal__/validations/validation-icon
|
|
|
7
7
|
import Icon from "../../../icon";
|
|
8
8
|
import Events from "../../../../__internal__/utils/helpers/events";
|
|
9
9
|
import { TooltipProvider } from "../../../../__internal__/tooltip-provider";
|
|
10
|
-
|
|
10
|
+
import TabTitleContext from "./tab-title.context";
|
|
11
11
|
const TabTitle = /*#__PURE__*/React.forwardRef(({
|
|
12
12
|
isTabSelected,
|
|
13
13
|
dataTabId,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TabContextProps {
|
|
3
|
+
setError?: (childId: string, error?: boolean | string) => void;
|
|
4
|
+
setWarning?: (childId: string, warning?: boolean | string) => void;
|
|
5
|
+
setInfo?: (childId: string, info?: boolean | string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.Context<TabContextProps>;
|
|
8
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
2
|
-
export type { TabProps
|
|
1
|
+
export { default } from "./tab.component";
|
|
2
|
+
export type { TabProps } from "./tab.component";
|