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
|
@@ -16,6 +16,8 @@ import useModalAria from "../../hooks/__internal__/useModalAria/useModalAria";
|
|
|
16
16
|
const PADDING_VALUES = [0, 1, 2, 3, 4, 5, 6, 7, 8];
|
|
17
17
|
const Dialog = /*#__PURE__*/forwardRef(({
|
|
18
18
|
className,
|
|
19
|
+
"data-element": dataElement = "dialog",
|
|
20
|
+
"data-role": dataRole,
|
|
19
21
|
children,
|
|
20
22
|
open,
|
|
21
23
|
height,
|
|
@@ -148,19 +150,14 @@ const Dialog = /*#__PURE__*/forwardRef(({
|
|
|
148
150
|
"aria-describedby": subtitle && typeof subtitle === "string" ? subtitleId : rest["aria-describedby"],
|
|
149
151
|
"aria-label": rest["aria-label"]
|
|
150
152
|
};
|
|
151
|
-
|
|
152
|
-
"data-component": rest["data-component"] || "dialog",
|
|
153
|
-
"data-element": rest["data-element"],
|
|
154
|
-
"data-role": rest["data-role"]
|
|
155
|
-
};
|
|
156
|
-
return /*#__PURE__*/React.createElement(Modal, _extends({
|
|
153
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
157
154
|
open: open,
|
|
158
155
|
onCancel: onCancel,
|
|
159
156
|
disableEscKey: disableEscKey,
|
|
160
157
|
disableClose: disableClose,
|
|
161
158
|
className: className ? `${className} carbon-dialog` : "carbon-dialog",
|
|
162
159
|
topModalOverride: topModalOverride
|
|
163
|
-
},
|
|
160
|
+
}, /*#__PURE__*/React.createElement(FocusTrap, {
|
|
164
161
|
autoFocus: !disableAutoFocus,
|
|
165
162
|
focusFirstElement: focusFirstElement,
|
|
166
163
|
bespokeTrap: bespokeFocusTrap,
|
|
@@ -169,18 +166,21 @@ const Dialog = /*#__PURE__*/forwardRef(({
|
|
|
169
166
|
isOpen: open,
|
|
170
167
|
additionalWrapperRefs: focusableContainers
|
|
171
168
|
}, /*#__PURE__*/React.createElement(StyledDialog, _extends({
|
|
169
|
+
"data-component": "dialog",
|
|
170
|
+
"data-element": dataElement,
|
|
171
|
+
"data-role": dataRole,
|
|
172
172
|
"aria-modal": isTopModal ? true : undefined,
|
|
173
173
|
ref: containerRef,
|
|
174
174
|
topMargin: TOP_MARGIN
|
|
175
175
|
}, dialogProps, {
|
|
176
|
-
"data-component": "dialog",
|
|
177
|
-
"data-element": "dialog",
|
|
178
|
-
"data-role": rest["data-role"],
|
|
179
176
|
role: role,
|
|
180
177
|
tabIndex: -1
|
|
181
178
|
}, contentPadding, {
|
|
182
179
|
backgroundColor: greyBackground ? "var(--colorsUtilityMajor025)" : "var(--colorsUtilityYang100)"
|
|
183
|
-
}), dialogTitle(), closeIcon(), /*#__PURE__*/React.createElement(StyledDialogContent,
|
|
180
|
+
}), dialogTitle(), closeIcon(), /*#__PURE__*/React.createElement(StyledDialogContent, _extends({}, contentPadding, {
|
|
181
|
+
"data-role": "dialog-content"
|
|
182
|
+
}), /*#__PURE__*/React.createElement(StyledDialogInnerContent, _extends({
|
|
183
|
+
"data-role": "dialog-inner-content",
|
|
184
184
|
ref: innerContentRef
|
|
185
185
|
}, contentPadding), children)))));
|
|
186
186
|
});
|
|
@@ -202,7 +202,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
202
202
|
"px": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8]),
|
|
203
203
|
"py": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8])
|
|
204
204
|
}),
|
|
205
|
-
"data-component": PropTypes.string,
|
|
206
205
|
"data-element": PropTypes.string,
|
|
207
206
|
"data-role": PropTypes.string,
|
|
208
207
|
"disableAutoFocus": PropTypes.bool,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface DrawerProps {
|
|
2
|
+
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
3
|
+
import DrawerSidebarContext from "./__internal__/drawer-sidebar.context";
|
|
4
|
+
export interface DrawerProps extends Omit<TagProps, "data-component"> {
|
|
6
5
|
/** Duration of a animation */
|
|
7
6
|
animationDuration?: string;
|
|
8
7
|
/** Specify an aria-label for the Drawer component */
|
|
@@ -31,7 +30,6 @@ export interface DrawerProps {
|
|
|
31
30
|
/** Makes the footer of the drawer sticky. Footer prop must also be set. */
|
|
32
31
|
stickyFooter?: boolean;
|
|
33
32
|
}
|
|
34
|
-
declare const
|
|
35
|
-
export declare const Drawer: ({ defaultExpanded, expanded, onChange, children, expandedWidth, sidebar, animationDuration, backgroundColor, title, footer, showControls, height, stickyHeader, stickyFooter, ...rest }: DrawerProps) => React.JSX.Element;
|
|
33
|
+
export declare const Drawer: ({ "aria-label": ariaLabel, "data-element": dataElement, "data-role": dataRole, defaultExpanded, expanded, onChange, children, expandedWidth, sidebar, animationDuration, backgroundColor, title, footer, showControls, height, stickyHeader, stickyFooter, }: DrawerProps) => React.JSX.Element;
|
|
36
34
|
export { DrawerSidebarContext };
|
|
37
35
|
export default Drawer;
|
|
@@ -1,4 +1,3 @@
|
|
|
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
1
|
import React, { useState, useCallback, useRef, useEffect } from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import invariant from "invariant";
|
|
@@ -7,8 +6,11 @@ import usePrevious from "../../hooks/__internal__/usePrevious";
|
|
|
7
6
|
import Icon from "../icon";
|
|
8
7
|
import { StyledSidebarHeader, StyledDrawerWrapper, StyledDrawerContent, StyledSidebarToggleButton, StyledDrawerChildren, StyledDrawerSidebar, StyledSidebarTitle } from "./drawer.style";
|
|
9
8
|
import StickyFooter from "../../__internal__/sticky-footer";
|
|
10
|
-
|
|
9
|
+
import DrawerSidebarContext from "./__internal__/drawer-sidebar.context";
|
|
11
10
|
export const Drawer = ({
|
|
11
|
+
"aria-label": ariaLabel,
|
|
12
|
+
"data-element": dataElement,
|
|
13
|
+
"data-role": dataRole = "drawer",
|
|
12
14
|
defaultExpanded = true,
|
|
13
15
|
expanded,
|
|
14
16
|
onChange,
|
|
@@ -22,8 +24,7 @@ export const Drawer = ({
|
|
|
22
24
|
showControls,
|
|
23
25
|
height = "100%",
|
|
24
26
|
stickyHeader,
|
|
25
|
-
stickyFooter
|
|
26
|
-
...rest
|
|
27
|
+
stickyFooter
|
|
27
28
|
}) => {
|
|
28
29
|
const drawerSidebarContentRef = useRef(null);
|
|
29
30
|
const scrollableContentRef = useRef(null);
|
|
@@ -114,17 +115,22 @@ export const Drawer = ({
|
|
|
114
115
|
type: "chevron_right"
|
|
115
116
|
}));
|
|
116
117
|
};
|
|
117
|
-
return /*#__PURE__*/React.createElement(StyledDrawerWrapper,
|
|
118
|
+
return /*#__PURE__*/React.createElement(StyledDrawerWrapper, {
|
|
119
|
+
"aria-label": ariaLabel,
|
|
118
120
|
"data-component": "drawer",
|
|
121
|
+
"data-element": dataElement,
|
|
122
|
+
"data-role": dataRole,
|
|
119
123
|
height: height
|
|
120
|
-
},
|
|
124
|
+
}, /*#__PURE__*/React.createElement(StyledDrawerContent, {
|
|
121
125
|
expandedWidth: expandedWidth,
|
|
122
126
|
animationDuration: animationDuration,
|
|
123
127
|
className: getClassNames(),
|
|
124
128
|
ref: drawerSidebarContentRef,
|
|
125
129
|
backgroundColor: backgroundColor,
|
|
126
|
-
"data-element": "drawer-content"
|
|
130
|
+
"data-element": "drawer-content",
|
|
131
|
+
"data-role": "drawer-content"
|
|
127
132
|
}, stickyHeader && /*#__PURE__*/React.createElement(StyledSidebarHeader, {
|
|
133
|
+
"data-role": "drawer-sidebar-header",
|
|
128
134
|
isExpanded: isExpanded
|
|
129
135
|
}, title && /*#__PURE__*/React.createElement(StyledSidebarTitle, null, title), getControls()), !stickyHeader && /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(StyledSidebarTitle, null, title), getControls()), /*#__PURE__*/React.createElement(StyledDrawerSidebar, {
|
|
130
136
|
hasControls: !!showControls,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
2
|
-
export type {
|
|
1
|
+
export { default } from "./drawer.component";
|
|
2
|
+
export type { DrawerProps } from "./drawer.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./drawer.component";
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
5
5
|
import { StyledDuellingPicklistOverlay, StyledDuellingPicklist, StyledLabelContainer, StyledLabel, StyledControlsContainer, StyledControl } from "./duelling-picklist.style";
|
|
6
6
|
import { Picklist } from "./picklist/picklist.component";
|
|
7
|
-
import FocusContext from "./duelling-picklist.context";
|
|
7
|
+
import FocusContext from "./__internal__/duelling-picklist.context";
|
|
8
8
|
export const DuellingPicklist = ({
|
|
9
9
|
children,
|
|
10
10
|
disabled,
|
|
@@ -2,7 +2,7 @@ import React, { useCallback, useContext, useEffect, useMemo } from "react";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { TransitionGroup } from "react-transition-group";
|
|
4
4
|
import { StyledPicklist, StyledEmptyContainer } from "./picklist.style";
|
|
5
|
-
import FocusContext from "../duelling-picklist.context";
|
|
5
|
+
import FocusContext from "../__internal__/duelling-picklist.context";
|
|
6
6
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
7
7
|
import PicklistGroup from "../picklist-group/picklist-group.component";
|
|
8
8
|
export const Picklist = ({
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useContext, useEffect, useMemo, useState } from "re
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { CSSTransition, TransitionGroup } from "react-transition-group";
|
|
5
5
|
import { StyledGroupWrapper, StyledPicklistGroupUl, StyledPicklistGroup, StyledGroupButton } from "./picklist-group.style";
|
|
6
|
-
import FocusContext from "../duelling-picklist.context";
|
|
6
|
+
import FocusContext from "../__internal__/duelling-picklist.context";
|
|
7
7
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
8
8
|
const PicklistGroup = /*#__PURE__*/React.forwardRef(({
|
|
9
9
|
title,
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useContext, useRef } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import { StyledPicklistItem, StyledButton, StyledLockIcon } from "./picklist-item.style";
|
|
6
|
-
import FocusContext from "../duelling-picklist.context";
|
|
6
|
+
import FocusContext from "../__internal__/duelling-picklist.context";
|
|
7
7
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
8
8
|
const PicklistItem = /*#__PURE__*/React.forwardRef(({
|
|
9
9
|
children,
|
|
@@ -3,7 +3,7 @@ import React, { useState, useEffect } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
5
5
|
import { FieldsetStyle, StyledLegend } from "./fieldset.style";
|
|
6
|
-
import
|
|
6
|
+
import NewValidationContext from "../carbon-provider/__internal__/new-validation.context";
|
|
7
7
|
import FormSpacingProvider from "../../__internal__/form-spacing-provider";
|
|
8
8
|
import useFormSpacing from "../../hooks/__internal__/useFormSpacing";
|
|
9
9
|
export const Fieldset = ({
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlatTableProps } from "../flat-table.component";
|
|
3
|
+
export interface FlatTableContextProps extends Pick<FlatTableProps, "colorTheme" | "size"> {
|
|
4
|
+
getTabStopElementId: () => string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.Context<FlatTableContextProps>;
|
|
7
|
+
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useContext, useEffect, useState } from "react";
|
|
2
|
-
import FlatTableRowContext from "../flat-table-row/__internal__/flat-table-row
|
|
3
|
-
import
|
|
2
|
+
import FlatTableRowContext from "../flat-table-row/__internal__/flat-table-row.context";
|
|
3
|
+
import FlatTableContext from "./flat-table.context";
|
|
4
4
|
export default (id => {
|
|
5
5
|
const {
|
|
6
6
|
getTabStopElementId
|
|
7
|
-
} = useContext(
|
|
7
|
+
} = useContext(FlatTableContext);
|
|
8
8
|
const [tabIndex, setTabIndex] = useState(-1);
|
|
9
9
|
const {
|
|
10
10
|
expandable,
|
|
@@ -6,7 +6,7 @@ import { Checkbox } from "../../checkbox";
|
|
|
6
6
|
import Events from "../../../__internal__/utils/helpers/events/events";
|
|
7
7
|
import tagComponent from "../../../__internal__/utils/helpers/tags";
|
|
8
8
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
9
|
-
import FlatTableRowContext from "../flat-table-row/__internal__/flat-table-row
|
|
9
|
+
import FlatTableRowContext from "../flat-table-row/__internal__/flat-table-row.context";
|
|
10
10
|
export const FlatTableCheckbox = ({
|
|
11
11
|
as = "td",
|
|
12
12
|
checked,
|
|
@@ -3,9 +3,5 @@ export interface FlatTableHeadProps {
|
|
|
3
3
|
/** Array of FlatTableRow. */
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
interface FlatTableHeadContextProps {
|
|
7
|
-
stickyOffsets: Record<string, number>;
|
|
8
|
-
}
|
|
9
|
-
export declare const FlatTableHeadContext: React.Context<FlatTableHeadContextProps>;
|
|
10
6
|
export declare const FlatTableHead: ({ children, ...rest }: FlatTableHeadProps) => React.JSX.Element;
|
|
11
7
|
export default FlatTableHead;
|
|
@@ -3,9 +3,7 @@ import React, { useEffect, useState, useRef } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import StyledFlatTableHead from "./flat-table-head.style";
|
|
5
5
|
import { buildPositionMap } from "../__internal__";
|
|
6
|
-
|
|
7
|
-
stickyOffsets: {}
|
|
8
|
-
});
|
|
6
|
+
import FlatTableHeadContext from "./__internal__/flat-table-head.context";
|
|
9
7
|
export const FlatTableHead = ({
|
|
10
8
|
children,
|
|
11
9
|
...rest
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FlatTableProps } from "..";
|
|
2
|
-
declare const getAlternativeBackgroundColor: (colorTheme: FlatTableProps["colorTheme"]) => "var(--
|
|
2
|
+
declare const getAlternativeBackgroundColor: (colorTheme: FlatTableProps["colorTheme"]) => "var(--colorsUtilityYang100)" | "var(--colorsActionMinor100)" | "var(--colorsUtilityMajor025)" | "var(--colorsActionMinor550)";
|
|
3
3
|
export default getAlternativeBackgroundColor;
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useRef, useContext } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import StyledFlatTableHeader from "./flat-table-header.style";
|
|
5
|
-
import
|
|
5
|
+
import FlatTableContext from "../__internal__/flat-table.context";
|
|
6
6
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
7
7
|
import useTableCell from "../__internal__/use-table-cell";
|
|
8
8
|
export const FlatTableHeader = ({
|
|
@@ -20,7 +20,7 @@ export const FlatTableHeader = ({
|
|
|
20
20
|
const internalId = useRef(id || guid());
|
|
21
21
|
const {
|
|
22
22
|
colorTheme
|
|
23
|
-
} = useContext(
|
|
23
|
+
} = useContext(FlatTableContext);
|
|
24
24
|
const {
|
|
25
25
|
leftPosition,
|
|
26
26
|
rightPosition,
|
|
@@ -4,15 +4,15 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import invariant from "invariant";
|
|
5
5
|
import Event from "../../../__internal__/utils/helpers/events";
|
|
6
6
|
import StyledFlatTableRow from "./flat-table-row.style";
|
|
7
|
-
import
|
|
7
|
+
import DrawerSidebarContext from "../../drawer/__internal__/drawer-sidebar.context";
|
|
8
8
|
import FlatTableRowHeader from "../flat-table-row-header";
|
|
9
9
|
import FlatTableRowDraggable from "./__internal__/flat-table-row-draggable.component";
|
|
10
|
-
import
|
|
10
|
+
import FlatTableContext from "../__internal__/flat-table.context";
|
|
11
11
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
12
|
-
import FlatTableRowContext from "./__internal__/flat-table-row
|
|
12
|
+
import FlatTableRowContext from "./__internal__/flat-table-row.context";
|
|
13
13
|
import SubRowProvider, { SubRowContext } from "./__internal__/sub-row-provider";
|
|
14
14
|
import { buildPositionMap } from "../__internal__";
|
|
15
|
-
import
|
|
15
|
+
import FlatTableHeadContext from "../flat-table-head/__internal__/flat-table-head.context";
|
|
16
16
|
const FlatTableRow = /*#__PURE__*/React.forwardRef(({
|
|
17
17
|
children,
|
|
18
18
|
onClick,
|
|
@@ -94,7 +94,7 @@ const FlatTableRow = /*#__PURE__*/React.forwardRef(({
|
|
|
94
94
|
colorTheme,
|
|
95
95
|
size,
|
|
96
96
|
getTabStopElementId
|
|
97
|
-
} = useContext(
|
|
97
|
+
} = useContext(FlatTableContext);
|
|
98
98
|
const {
|
|
99
99
|
isInSidebar
|
|
100
100
|
} = useContext(DrawerSidebarContext);
|
|
@@ -30,10 +30,6 @@ export interface FlatTableProps extends MarginProps {
|
|
|
30
30
|
/** Width of the table. Any valid CSS string */
|
|
31
31
|
width?: string;
|
|
32
32
|
}
|
|
33
|
-
export interface FlatTableThemeContextProps extends Pick<FlatTableProps, "colorTheme" | "size"> {
|
|
34
|
-
getTabStopElementId: () => string;
|
|
35
|
-
}
|
|
36
|
-
export declare const FlatTableThemeContext: React.Context<FlatTableThemeContextProps>;
|
|
37
33
|
export declare const FlatTable: {
|
|
38
34
|
({ caption, children, hasStickyHead, colorTheme, footer, hasStickyFooter, height, isZebra, size, hasMaxHeight, ariaDescribedby, minHeight, overflowX, width, ...rest }: FlatTableProps): React.JSX.Element;
|
|
39
35
|
displayName: string;
|
|
@@ -2,11 +2,9 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useLayoutEffect, useRef, useState, useContext } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { StyledFlatTableWrapper, StyledFlatTable, StyledFlatTableFooter, StyledTableContainer } from "./flat-table.style";
|
|
5
|
-
import
|
|
5
|
+
import DrawerSidebarContext from "../drawer/__internal__/drawer-sidebar.context";
|
|
6
6
|
import Events from "../../__internal__/utils/helpers/events/events";
|
|
7
|
-
|
|
8
|
-
getTabStopElementId: () => ""
|
|
9
|
-
});
|
|
7
|
+
import FlatTableContext from "./__internal__/flat-table.context";
|
|
10
8
|
const FOCUSABLE_ROW_AND_CELL_QUERY = "tbody tr[tabindex], tbody tr td[tabindex], tbody tr th[tabindex]";
|
|
11
9
|
export const FlatTable = ({
|
|
12
10
|
caption,
|
|
@@ -171,7 +169,7 @@ export const FlatTable = ({
|
|
|
171
169
|
}, /*#__PURE__*/React.createElement(StyledFlatTable, _extends({
|
|
172
170
|
ref: tableRef,
|
|
173
171
|
"data-component": "flat-table"
|
|
174
|
-
}, tableStylingProps), caption ? /*#__PURE__*/React.createElement("caption", null, caption) : null, /*#__PURE__*/React.createElement(
|
|
172
|
+
}, tableStylingProps), caption ? /*#__PURE__*/React.createElement("caption", null, caption) : null, /*#__PURE__*/React.createElement(FlatTableContext.Provider, {
|
|
175
173
|
value: {
|
|
176
174
|
colorTheme,
|
|
177
175
|
size,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FlatTableProps } from "./flat-table.component";
|
|
2
|
-
import { DrawerSidebarContextProps } from "../drawer";
|
|
2
|
+
import { DrawerSidebarContextProps } from "../drawer/__internal__/drawer-sidebar.context";
|
|
3
3
|
declare const StyledTableContainer: import("styled-components").StyledComponent<"div", any, Pick<FlatTableProps, "width" | "overflowX">, never>;
|
|
4
4
|
declare const StyledFlatTable: import("styled-components").StyledComponent<"table", any, Pick<FlatTableProps, "caption" | "isZebra"> & {
|
|
5
5
|
size: NonNullable<FlatTableProps["size"]>;
|
|
@@ -5,7 +5,7 @@ import Typography from "../../typography";
|
|
|
5
5
|
import { StyledSort, StyledSpaceHolder, StyledSortIcon } from "./sort.style";
|
|
6
6
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
7
7
|
import useLocale from "../../../hooks/__internal__/useLocale";
|
|
8
|
-
import
|
|
8
|
+
import FlatTableContext from "../__internal__/flat-table.context";
|
|
9
9
|
export const Sort = ({
|
|
10
10
|
children,
|
|
11
11
|
onClick,
|
|
@@ -23,7 +23,7 @@ export const Sort = ({
|
|
|
23
23
|
};
|
|
24
24
|
const {
|
|
25
25
|
colorTheme
|
|
26
|
-
} = useContext(
|
|
26
|
+
} = useContext(FlatTableContext);
|
|
27
27
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, {
|
|
28
28
|
screenReaderOnly: true,
|
|
29
29
|
id: id.current
|
|
@@ -1,8 +1,8 @@
|
|
|
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, { useRef, useContext } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import SidebarContext from "../sidebar/__internal__/sidebar.context";
|
|
5
|
+
import ModalContext from "../modal/__internal__/modal.context";
|
|
6
6
|
import FormSummary from "./__internal__/form-summary.component";
|
|
7
7
|
import { StyledForm, StyledFormContent, StyledFormFooter, StyledLeftButtons, StyledRightButtons, StyledFullWidthButtons } from "./form.style";
|
|
8
8
|
import { formSpacing } from "./form.config";
|
|
@@ -6,7 +6,7 @@ import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
|
6
6
|
import { TooltipContext } from "../../__internal__/tooltip-provider";
|
|
7
7
|
import StyledIcon from "./icon.style";
|
|
8
8
|
import { ICON_TOOLTIP_POSITIONS } from "./icon-config";
|
|
9
|
-
import
|
|
9
|
+
import TabTitleContext from "../tabs/__internal__/tab-title/tab-title.context";
|
|
10
10
|
import Logger from "../../__internal__/utils/logger";
|
|
11
11
|
let deprecatedExtraSmallBgSizeTriggered = false;
|
|
12
12
|
const Icon = /*#__PURE__*/React.forwardRef(({
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useContext, useMemo, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import Icon from "../icon";
|
|
5
|
-
import MenuContext from "../menu/menu.context";
|
|
5
|
+
import MenuContext from "../menu/__internal__/menu.context";
|
|
6
6
|
import { StyledLink, StyledContent } from "./link.style";
|
|
7
7
|
import tagComponent from "../../__internal__/utils/helpers/tags/tags";
|
|
8
8
|
import useLocale from "../../hooks/__internal__/useLocale";
|
|
@@ -4,14 +4,14 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import StyledMenuItemWrapper from "../../menu-item/menu-item.style";
|
|
5
5
|
import { StyledSubmenu, StyledSubmenuWrapper } from "./submenu.style";
|
|
6
6
|
import Events from "../../../../__internal__/utils/helpers/events";
|
|
7
|
-
import MenuContext from "
|
|
7
|
+
import MenuContext from "../menu.context";
|
|
8
8
|
import { characterNavigation } from "../keyboard-navigation";
|
|
9
9
|
import SubmenuContext from "./submenu.context";
|
|
10
10
|
import useClickAwayListener from "../../../../hooks/__internal__/useClickAwayListener";
|
|
11
11
|
import guid from "../../../../__internal__/utils/helpers/guid";
|
|
12
12
|
import { SCROLLABLE_BLOCK, SCROLLABLE_BLOCK_PARENT, BLOCK_INDEX_SELECTOR, ALL_CHILDREN_SELECTOR } from "../locators";
|
|
13
13
|
import useStableCallback from "../../../../hooks/__internal__/useStableCallback/useStableCallback";
|
|
14
|
-
import FixedNavigationBarContext from "../../../navigation-bar/fixed-navigation-bar.context";
|
|
14
|
+
import FixedNavigationBarContext from "../../../navigation-bar/__internal__/fixed-navigation-bar.context";
|
|
15
15
|
const Submenu = /*#__PURE__*/React.forwardRef(({
|
|
16
16
|
children,
|
|
17
17
|
className,
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import StyledDivider from "./menu-divider.style";
|
|
5
|
-
import MenuContext from "../menu.context";
|
|
5
|
+
import MenuContext from "../__internal__/menu.context";
|
|
6
6
|
import { StyledMenuItem } from "../menu.style";
|
|
7
7
|
import tagComponent from "../../../__internal__/utils/helpers/tags";
|
|
8
8
|
const MenuDivider = /*#__PURE__*/React.forwardRef(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuDividerProps } from "./menu-divider.component";
|
|
2
|
-
import { MenuType } from "../menu.context";
|
|
2
|
+
import { MenuType } from "../__internal__/menu.context";
|
|
3
3
|
declare const StyledDivider: import("styled-components").StyledComponent<"div", any, MenuDividerProps & {
|
|
4
4
|
menuType: MenuType;
|
|
5
5
|
}, never>;
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { CSSTransition } from "react-transition-group";
|
|
4
4
|
import { StyledMenuFullscreen, StyledMenuModal, StyledMenuFullscreenHeader } from "./menu-full-screen.style";
|
|
5
5
|
import { StyledMenuWrapper } from "../menu.style";
|
|
6
|
-
import MenuContext from "../menu.context";
|
|
6
|
+
import MenuContext from "../__internal__/menu.context";
|
|
7
7
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
8
8
|
import Box from "../../box";
|
|
9
9
|
import IconButton from "../../icon-button";
|
|
@@ -5,7 +5,7 @@ import invariant from "invariant";
|
|
|
5
5
|
import { filterStyledSystemPaddingProps } from "../../../style/utils";
|
|
6
6
|
import StyledMenuItemWrapper from "./menu-item.style";
|
|
7
7
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
8
|
-
import MenuContext from "../menu.context";
|
|
8
|
+
import MenuContext from "../__internal__/menu.context";
|
|
9
9
|
import Submenu from "../__internal__/submenu/submenu.component";
|
|
10
10
|
import SubmenuContext from "../__internal__/submenu/submenu.context";
|
|
11
11
|
import { StyledMenuItem } from "../menu.style";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PaddingProps } from "styled-system";
|
|
3
|
-
import { MenuType } from "../menu.context";
|
|
3
|
+
import { MenuType } from "../__internal__/menu.context";
|
|
4
4
|
import { MenuWithChildren } from "./menu-item.component";
|
|
5
5
|
interface StyledMenuItemWrapperProps extends Pick<MenuWithChildren, "href" | "variant" | "showDropdownArrow" | "overrideColor" | "clickToOpen" | "maxWidth">, PaddingProps {
|
|
6
6
|
menuType: MenuType;
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { StyledTitle, StyledSegmentChildren } from "./menu-segment-title.style";
|
|
5
|
-
import MenuContext from "../menu.context";
|
|
5
|
+
import MenuContext from "../__internal__/menu.context";
|
|
6
6
|
import { StyledMenuItem } from "../menu.style";
|
|
7
7
|
import tagComponent from "../../../__internal__/utils/helpers/tags";
|
|
8
8
|
const AS_VALUES = ["h2", "h3", "h4", "h5", "h6"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LayoutProps, FlexboxProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
4
|
-
import MenuContext, { MenuType } from "./menu.context";
|
|
4
|
+
import MenuContext, { MenuType } from "./__internal__/menu.context";
|
|
5
5
|
export interface MenuProps extends TagProps, LayoutProps, FlexboxProps {
|
|
6
6
|
/** Children elements */
|
|
7
7
|
children: React.ReactNode;
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useState, useRef } from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { StyledMenuWrapper } from "./menu.style";
|
|
5
5
|
import tagComponent from "../../__internal__/utils/helpers/tags";
|
|
6
|
-
import MenuContext from "./menu.context";
|
|
6
|
+
import MenuContext from "./__internal__/menu.context";
|
|
7
7
|
import { menuKeyboardNavigation } from "./__internal__/keyboard-navigation";
|
|
8
8
|
import { MENU_ITEM_CHILDREN_LOCATOR } from "./__internal__/locators";
|
|
9
9
|
export const Menu = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
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, { useContext } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import MenuContext from "../menu.context";
|
|
4
|
+
import MenuContext from "../__internal__/menu.context";
|
|
5
5
|
import MenuItem from "../menu-item";
|
|
6
6
|
import StyledScrollableBlock from "./scrollable-block.style";
|
|
7
7
|
import Box from "../../box";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
2
|
-
export type { ModalProps
|
|
1
|
+
export { default } from "./modal.component";
|
|
2
|
+
export type { ModalProps } from "./modal.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./modal.component";
|