carbon-react 162.10.0 → 162.12.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__/character-count/character-count.style.js +1 -1
- package/esm/__internal__/checkable-input/checkable-input.style.js +1 -1
- package/esm/__internal__/checkable-input/hidden-checkable-input.style.js +1 -1
- package/esm/__internal__/error-border/error-border.style.js +1 -1
- package/esm/__internal__/field-help/field-help.style.js +1 -1
- package/esm/__internal__/fieldset/__next__/fieldset.style.js +1 -1
- package/esm/__internal__/fieldset/fieldset.style.js +1 -1
- package/esm/__internal__/form-field/form-field.style.js +1 -1
- package/esm/__internal__/full-screen-heading/full-screen-heading.style.js +1 -1
- package/esm/__internal__/hint-text/hint-text.style.js +1 -1
- package/esm/__internal__/input/input-style-overrides.style.d.ts +0 -1
- package/esm/__internal__/input/input-style-overrides.style.js +1 -1
- package/esm/__internal__/input/input.style.js +1 -1
- package/esm/__internal__/input-icon-toggle/input-icon-toggle.style.js +1 -1
- package/esm/__internal__/label/label.style.js +1 -1
- package/esm/__internal__/legacy-error-border/error-border.style.js +1 -1
- package/esm/__internal__/legacy-hint-text/hint-text.style.js +1 -1
- package/esm/__internal__/legacy-input/input-presentation.style.js +1 -1
- package/esm/__internal__/legacy-input/input.style.js +1 -1
- package/esm/__internal__/legacy-label/icon-wrapper.style.js +1 -1
- package/esm/__internal__/legacy-label/label.style.js +1 -1
- package/esm/__internal__/modal/modal.style.js +1 -1
- package/esm/__internal__/popover/popover.style.js +1 -1
- package/esm/__internal__/popover-menu/menu-item/menu-item-content/menu-item-label.component.js +1 -1
- package/esm/__internal__/popover-menu/menu-item/menu-item-content/menu-item-leading.component.js +1 -1
- package/esm/__internal__/popover-menu/menu-item/menu-item-content/menu-item-subtext.component.js +1 -1
- package/esm/__internal__/popover-menu/menu-item/menu-item-divider/menu-item-divider.component.js +1 -1
- package/esm/__internal__/popover-menu/menu-item/menu-item-heading/menu-item-heading.component.js +1 -1
- package/esm/__internal__/popover-menu/menu-item/menu-item.component.js +1 -1
- package/esm/__internal__/popover-menu/popover-menu.component.js +1 -1
- package/esm/__internal__/validation-message/__next__/validation-message.style.js +1 -1
- package/esm/__internal__/validation-message/validation-message.style.js +1 -1
- package/esm/__internal__/validations/validation-icon.style.js +1 -1
- package/esm/components/accordion/accordion.style.js +1 -1
- package/esm/components/action-popover/action-popover.style.js +1 -1
- package/esm/components/adaptive-sidebar/adaptive-sidebar.style.js +1 -1
- package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -1
- package/esm/components/advanced-color-picker/advanced-color-picker.style.d.ts +1 -1
- package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -1
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/esm/components/anchor-navigation/anchor-navigation.style.js +1 -1
- package/esm/components/anchor-navigation/anchor-section-divider.component.js +1 -1
- package/esm/components/badge/badge.style.js +1 -1
- package/esm/components/batch-selection/batch-selection.style.js +1 -1
- package/esm/components/box/box.style.js +1 -1
- package/esm/components/breadcrumbs/breadcrumbs.style.js +1 -1
- package/esm/components/breadcrumbs/crumb/crumb.style.js +1 -1
- package/esm/components/button/__next__/button.style.js +1 -1
- package/esm/components/button/button.style.js +1 -1
- package/esm/components/button-bar/button-bar.style.js +1 -1
- package/esm/components/button-minor/button-minor.style.js +1 -1
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.style.js +1 -1
- package/esm/components/button-toggle/button-toggle.style.js +1 -1
- package/esm/components/card/card-column/card-column.style.js +1 -1
- package/esm/components/card/card-footer/card-footer.style.js +1 -1
- package/esm/components/card/card-row/card-row.style.js +1 -1
- package/esm/components/card/card.style.js +1 -1
- package/esm/components/checkbox/checkbox-group/checkbox-group.style.js +1 -1
- package/esm/components/checkbox/checkbox.style.js +1 -1
- package/esm/components/confirm/confirm.style.js +1 -1
- package/esm/components/content/content.style.js +1 -1
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/esm/components/date/__internal__/navbar/button.style.js +1 -1
- package/esm/components/date/__internal__/navbar/navbar.style.js +1 -1
- package/esm/components/date/__internal__/weekday/abbr.style.js +1 -1
- package/esm/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/esm/components/date/date.style.js +1 -1
- package/esm/components/date-range/date-range.style.js +1 -1
- package/esm/components/decimal/__internal__/decimal-popover-button.style.js +1 -1
- package/esm/components/decimal/decimal.style.js +1 -1
- package/esm/components/definition-list/__internal__/dl.context.d.ts +1 -1
- package/esm/components/definition-list/__internal__/dl.context.js +1 -1
- package/esm/components/definition-list/__internal__/utils.d.ts +4 -0
- package/esm/components/definition-list/__internal__/utils.js +1 -0
- package/esm/components/definition-list/dd/dd.component.d.ts +3 -1
- package/esm/components/definition-list/dd/dd.component.js +1 -1
- package/esm/components/definition-list/definition-list.style.d.ts +9 -3
- package/esm/components/definition-list/definition-list.style.js +1 -1
- package/esm/components/definition-list/dl.component.d.ts +7 -5
- package/esm/components/definition-list/dl.component.js +1 -1
- package/esm/components/definition-list/dt/dt.component.d.ts +1 -1
- package/esm/components/definition-list/dt/dt.component.js +1 -1
- package/esm/components/detail/detail.style.js +1 -1
- package/esm/components/dialog/__internal__/__next__/dialog.style.js +1 -1
- package/esm/components/dismissible-box/dismissible-box.style.js +1 -1
- package/esm/components/divider/divider.component.d.ts +4 -1
- package/esm/components/divider/divider.component.js +1 -1
- package/esm/components/divider/divider.style.js +1 -1
- package/esm/components/draggable/draggable-item/draggable-item.style.js +1 -1
- package/esm/components/drawer/drawer.style.js +1 -1
- package/esm/components/duelling-picklist/duelling-picklist.style.js +1 -1
- package/esm/components/duelling-picklist/picklist/picklist.style.js +1 -1
- package/esm/components/duelling-picklist/picklist-divider/picklist-divider.style.js +1 -1
- package/esm/components/duelling-picklist/picklist-group/picklist-group.style.js +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +1 -1
- package/esm/components/fieldset/fieldset.style.js +1 -1
- package/esm/components/file-input/__internal__/file-upload-status/file-upload-status.style.js +1 -1
- package/esm/components/file-input/file-input.style.js +1 -1
- package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +1 -1
- package/esm/components/flat-table/flat-table-cell/flat-table-cell.style.js +1 -1
- package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +1 -1
- package/esm/components/flat-table/flat-table-head/flat-table-head.style.js +1 -1
- package/esm/components/flat-table/flat-table-header/flat-table-header.style.js +1 -1
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +1 -1
- package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +1 -1
- package/esm/components/flat-table/flat-table.style.js +1 -1
- package/esm/components/flat-table/sort/sort.style.js +1 -1
- package/esm/components/form/__internal__/form-summary.style.js +1 -1
- package/esm/components/form/form.style.js +1 -1
- package/esm/components/form/required-fields-indicator/required-fields-indicator.component.js +1 -1
- package/esm/components/global-header/global-header.component.js +1 -1
- package/esm/components/grid/grid-container/grid-container.style.js +1 -1
- package/esm/components/grid/grid-item/grid-item.style.js +1 -1
- package/esm/components/heading/heading.style.js +1 -1
- package/esm/components/help/help.style.js +1 -1
- package/esm/components/hr/hr.style.js +1 -1
- package/esm/components/icon/icon.style.js +1 -1
- package/esm/components/icon-button/icon-button.style.js +1 -1
- package/esm/components/image/image.style.js +1 -1
- package/esm/components/inline-inputs/inline-inputs.style.js +1 -1
- package/esm/components/link/link.component.d.ts +0 -2
- package/esm/components/link/link.component.js +1 -1
- package/esm/components/link/link.style.d.ts +0 -1
- package/esm/components/link/link.style.js +1 -1
- package/esm/components/link-preview/__internal__/placeholder.component.js +1 -1
- package/esm/components/link-preview/link-preview.style.js +1 -1
- package/esm/components/loader/__next__/internal/star.style.js +1 -1
- package/esm/components/loader/__next__/loader.style.js +1 -1
- package/esm/components/loader/loader-square.style.js +1 -1
- package/esm/components/loader/loader.style.js +1 -1
- package/esm/components/loader-bar/loader-bar.style.js +1 -1
- package/esm/components/loader-spinner/loader-spinner.style.js +1 -1
- package/esm/components/loader-star/internal/star.style.js +1 -1
- package/esm/components/loader-star/loader-star.style.js +1 -1
- package/esm/components/menu/__internal__/menu-item-variant.context.d.ts +6 -0
- package/esm/components/menu/__internal__/menu-item-variant.context.js +1 -0
- package/esm/components/menu/__internal__/strict-menu.context.d.ts +2 -2
- package/esm/components/menu/__internal__/strict-menu.context.js +1 -1
- package/esm/components/menu/__internal__/submenu/submenu.component.d.ts +3 -11
- package/esm/components/menu/__internal__/submenu/submenu.component.js +1 -1
- package/esm/components/menu/__internal__/submenu/submenu.context.d.ts +1 -1
- package/esm/components/menu/__internal__/submenu/submenu.style.d.ts +15 -18
- package/esm/components/menu/__internal__/submenu/submenu.style.js +1 -1
- package/esm/components/menu/index.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 +6 -4
- package/esm/components/menu/menu-divider/menu-divider.style.js +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 +14 -14
- package/esm/components/menu/menu-full-screen/menu-full-screen.style.js +1 -1
- package/esm/components/menu/menu-item/menu-item.component.d.ts +10 -10
- package/esm/components/menu/menu-item/menu-item.component.js +1 -1
- package/esm/components/menu/menu-item/menu-item.style.d.ts +30 -21
- package/esm/components/menu/menu-item/menu-item.style.js +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.d.ts +4 -3
- 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 +6 -8
- package/esm/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/esm/components/menu/menu.component.d.ts +16 -2
- package/esm/components/menu/menu.component.js +1 -1
- package/esm/components/menu/menu.config.d.ts +10 -50
- package/esm/components/menu/menu.config.js +1 -1
- package/esm/components/menu/menu.style.d.ts +4 -13
- package/esm/components/menu/menu.style.js +1 -1
- package/esm/components/menu/scrollable-block/scrollable-block.component.d.ts +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 +5 -7
- package/esm/components/menu/scrollable-block/scrollable-block.style.js +1 -1
- package/esm/components/message/message.style.js +1 -1
- package/esm/components/multi-action-button/multi-action-button.style.js +1 -1
- package/esm/components/navigation-bar/navigation-bar.style.js +1 -1
- package/esm/components/note/note.style.js +1 -1
- package/esm/components/numeral-date/numeral-date.style.js +1 -1
- package/esm/components/option-tile/option-tile.style.js +1 -1
- package/esm/components/pager/__internal__/pagination-navigation.style.js +1 -1
- package/esm/components/pager/pager.style.js +1 -1
- package/esm/components/pages/page/page.style.js +1 -1
- package/esm/components/pages/pages.style.js +1 -1
- package/esm/components/password/password.style.js +1 -1
- package/esm/components/pill/pill.style.js +1 -1
- package/esm/components/pod/pod.style.js +1 -1
- package/esm/components/popover-container/popover-container.component.js +1 -1
- package/esm/components/popover-container/popover-container.style.js +1 -1
- package/esm/components/portal/portal.js +1 -1
- package/esm/components/portal/portal.style.js +1 -1
- package/esm/components/portrait/portrait.style.js +1 -1
- package/esm/components/preview/preview.style.js +1 -1
- package/esm/components/profile/profile.style.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.style.js +1 -1
- package/esm/components/radio-button/radio-button-group/radio-button-group.style.js +1 -1
- package/esm/components/radio-button/radio-button.style.js +1 -1
- package/esm/components/search/__internal__/results-announcement.component.js +1 -1
- package/esm/components/search/search.component.d.ts +1 -0
- package/esm/components/search/search.component.js +1 -1
- package/esm/components/select/__internal__/list-action-button/list-action-button.style.js +1 -1
- package/esm/components/select/__internal__/select-list/select-list.style.js +1 -1
- package/esm/components/select/__internal__/select-textbox/select-textbox.style.js +1 -1
- package/esm/components/select/__internal__/utils/matching-text.style.js +1 -1
- package/esm/components/select/multi-select/multi-select.style.js +1 -1
- package/esm/components/select/option/option.style.js +1 -1
- package/esm/components/select/option-group-header/option-group-header.style.js +1 -1
- package/esm/components/select/option-row/option-row.style.js +1 -1
- package/esm/components/select/select.style.js +1 -1
- package/esm/components/settings-row/settings-row.style.js +1 -1
- package/esm/components/sidebar/__internal__/sidebar-content/sidebar-content.style.js +1 -1
- package/esm/components/sidebar/__internal__/sidebar-footer/sidebar-footer.style.js +1 -1
- package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +1 -1
- package/esm/components/sidebar/sidebar.style.js +1 -1
- package/esm/components/simple-color-picker/simple-color/simple-color.style.js +1 -1
- package/esm/components/simple-color-picker/simple-color-picker.style.js +1 -1
- package/esm/components/split-button/split-button-toggle.style.js +1 -1
- package/esm/components/split-button/split-button.style.js +1 -1
- package/esm/components/step-flow/step-flow.style.js +1 -1
- package/esm/components/step-sequence/step-sequence-item/step-sequence-item.style.js +1 -1
- package/esm/components/step-sequence/step-sequence.style.js +1 -1
- package/esm/components/switch/switch.style.js +1 -1
- package/esm/components/tabs/__next__/tabs.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/CharacterCounter/character-counter.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/ContentEditor/content-editor.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/Mentions/mentions.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/Placeholder/placeholder.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/Toolbar/button-group/button-group.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/Toolbar/buttons/typography-dropdown/dropdown.style.js +1 -1
- package/esm/components/text-editor/__internal__/__ui__/Toolbar/toolbar.style.js +1 -1
- package/esm/components/text-editor/text-editor.style.js +1 -1
- package/esm/components/textarea/textarea.style.js +1 -1
- package/esm/components/textbox/__internal__/__next__/text-input.style.js +1 -1
- package/esm/components/tile/tile-footer/tile-footer.style.js +1 -1
- package/esm/components/tile/tile.style.js +1 -1
- package/esm/components/tile-select/__internal__/accordion/accordion.style.js +1 -1
- package/esm/components/tile-select/tile-select.style.js +1 -1
- package/esm/components/time/time.style.js +1 -1
- package/esm/components/toast/toast.style.js +1 -1
- package/esm/components/tokens-wrapper/tokens-wrapper.component.js +1 -1
- package/esm/components/tooltip/tooltip-pointer.style.js +1 -1
- package/esm/components/tooltip/tooltip.style.js +1 -1
- package/esm/components/typography/__internal__/__next__/typography.style.js +1 -1
- package/esm/components/typography/typography.style.js +1 -1
- package/esm/components/vertical-divider/vertical-divider.style.js +1 -1
- package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-divider/responsive-vertical-menu-divider.style.js +1 -1
- package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.style.js +1 -1
- package/esm/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.js +1 -1
- package/esm/components/vertical-menu/vertical-menu.style.js +1 -1
- package/esm/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +1 -1
- package/lib/__internal__/character-count/character-count.style.js +1 -1
- package/lib/__internal__/checkable-input/checkable-input.style.js +1 -1
- package/lib/__internal__/checkable-input/hidden-checkable-input.style.js +1 -1
- package/lib/__internal__/error-border/error-border.style.js +1 -1
- package/lib/__internal__/field-help/field-help.style.js +1 -1
- package/lib/__internal__/fieldset/__next__/fieldset.style.js +1 -1
- package/lib/__internal__/fieldset/fieldset.style.js +1 -1
- package/lib/__internal__/form-field/form-field.style.js +1 -1
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +1 -1
- package/lib/__internal__/hint-text/hint-text.style.js +1 -1
- package/lib/__internal__/input/input-style-overrides.style.d.ts +0 -1
- package/lib/__internal__/input/input-style-overrides.style.js +1 -1
- package/lib/__internal__/input/input.style.js +1 -1
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +1 -1
- package/lib/__internal__/label/label.style.js +1 -1
- package/lib/__internal__/legacy-error-border/error-border.style.js +1 -1
- package/lib/__internal__/legacy-hint-text/hint-text.style.js +1 -1
- package/lib/__internal__/legacy-input/input-presentation.style.js +1 -1
- package/lib/__internal__/legacy-input/input.style.js +1 -1
- package/lib/__internal__/legacy-label/icon-wrapper.style.js +1 -1
- package/lib/__internal__/legacy-label/label.style.js +1 -1
- package/lib/__internal__/modal/modal.style.js +1 -1
- package/lib/__internal__/popover/popover.style.js +1 -1
- package/lib/__internal__/popover-menu/menu-item/menu-item-content/menu-item-label.component.js +1 -1
- package/lib/__internal__/popover-menu/menu-item/menu-item-content/menu-item-leading.component.js +1 -1
- package/lib/__internal__/popover-menu/menu-item/menu-item-content/menu-item-subtext.component.js +1 -1
- package/lib/__internal__/popover-menu/menu-item/menu-item-divider/menu-item-divider.component.js +1 -1
- package/lib/__internal__/popover-menu/menu-item/menu-item-heading/menu-item-heading.component.js +1 -1
- package/lib/__internal__/popover-menu/menu-item/menu-item.component.js +1 -1
- package/lib/__internal__/popover-menu/popover-menu.component.js +1 -1
- package/lib/__internal__/validation-message/__next__/validation-message.style.js +1 -1
- package/lib/__internal__/validation-message/validation-message.style.js +1 -1
- package/lib/__internal__/validations/validation-icon.style.js +1 -1
- package/lib/components/accordion/accordion.style.js +1 -1
- package/lib/components/action-popover/action-popover.style.js +1 -1
- package/lib/components/adaptive-sidebar/adaptive-sidebar.style.js +1 -1
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -1
- package/lib/components/advanced-color-picker/advanced-color-picker.style.d.ts +1 -1
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -1
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/lib/components/anchor-navigation/anchor-navigation.style.js +1 -1
- package/lib/components/anchor-navigation/anchor-section-divider.component.js +1 -1
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/batch-selection/batch-selection.style.js +1 -1
- package/lib/components/box/box.style.js +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.style.js +1 -1
- package/lib/components/breadcrumbs/crumb/crumb.style.js +1 -1
- package/lib/components/button/__next__/button.style.js +1 -1
- package/lib/components/button/button.style.js +1 -1
- package/lib/components/button-bar/button-bar.style.js +1 -1
- package/lib/components/button-minor/button-minor.style.js +1 -1
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.js +1 -1
- package/lib/components/button-toggle/button-toggle.style.js +1 -1
- package/lib/components/card/card-column/card-column.style.js +1 -1
- package/lib/components/card/card-footer/card-footer.style.js +1 -1
- package/lib/components/card/card-row/card-row.style.js +1 -1
- package/lib/components/card/card.style.js +1 -1
- package/lib/components/checkbox/checkbox-group/checkbox-group.style.js +1 -1
- package/lib/components/checkbox/checkbox.style.js +1 -1
- package/lib/components/confirm/confirm.style.js +1 -1
- package/lib/components/content/content.style.js +1 -1
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/lib/components/date/__internal__/navbar/button.style.js +1 -1
- package/lib/components/date/__internal__/navbar/navbar.style.js +1 -1
- package/lib/components/date/__internal__/weekday/abbr.style.js +1 -1
- package/lib/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/lib/components/date/date.style.js +1 -1
- package/lib/components/date-range/date-range.style.js +1 -1
- package/lib/components/decimal/__internal__/decimal-popover-button.style.js +1 -1
- package/lib/components/decimal/decimal.style.js +1 -1
- package/lib/components/definition-list/__internal__/dl.context.d.ts +1 -1
- package/lib/components/definition-list/__internal__/dl.context.js +1 -1
- package/lib/components/definition-list/__internal__/utils.d.ts +4 -0
- package/lib/components/definition-list/__internal__/utils.js +1 -0
- package/lib/components/definition-list/dd/dd.component.d.ts +3 -1
- package/lib/components/definition-list/dd/dd.component.js +1 -1
- package/lib/components/definition-list/definition-list.style.d.ts +9 -3
- package/lib/components/definition-list/definition-list.style.js +1 -1
- package/lib/components/definition-list/dl.component.d.ts +7 -5
- package/lib/components/definition-list/dl.component.js +1 -1
- package/lib/components/definition-list/dt/dt.component.d.ts +1 -1
- package/lib/components/definition-list/dt/dt.component.js +1 -1
- package/lib/components/detail/detail.style.js +1 -1
- package/lib/components/dialog/__internal__/__next__/dialog.style.js +1 -1
- package/lib/components/dismissible-box/dismissible-box.style.js +1 -1
- package/lib/components/divider/divider.component.d.ts +4 -1
- package/lib/components/divider/divider.component.js +1 -1
- package/lib/components/divider/divider.style.js +1 -1
- package/lib/components/draggable/draggable-item/draggable-item.style.js +1 -1
- package/lib/components/drawer/drawer.style.js +1 -1
- package/lib/components/duelling-picklist/duelling-picklist.style.js +1 -1
- package/lib/components/duelling-picklist/picklist/picklist.style.js +1 -1
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.style.js +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +1 -1
- package/lib/components/fieldset/fieldset.style.js +1 -1
- package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.style.js +1 -1
- package/lib/components/file-input/file-input.style.js +1 -1
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +1 -1
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +1 -1
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +1 -1
- package/lib/components/flat-table/flat-table-head/flat-table-head.style.js +1 -1
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +1 -1
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +1 -1
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +1 -1
- package/lib/components/flat-table/flat-table.style.js +1 -1
- package/lib/components/flat-table/sort/sort.style.js +1 -1
- package/lib/components/form/__internal__/form-summary.style.js +1 -1
- package/lib/components/form/form.style.js +1 -1
- package/lib/components/form/required-fields-indicator/required-fields-indicator.component.js +1 -1
- package/lib/components/global-header/global-header.component.js +1 -1
- package/lib/components/grid/grid-container/grid-container.style.js +1 -1
- package/lib/components/grid/grid-item/grid-item.style.js +1 -1
- package/lib/components/heading/heading.style.js +1 -1
- package/lib/components/help/help.style.js +1 -1
- package/lib/components/hr/hr.style.js +1 -1
- package/lib/components/icon/icon.style.js +1 -1
- package/lib/components/icon-button/icon-button.style.js +1 -1
- package/lib/components/image/image.style.js +1 -1
- package/lib/components/inline-inputs/inline-inputs.style.js +1 -1
- package/lib/components/link/link.component.d.ts +0 -2
- package/lib/components/link/link.component.js +1 -1
- package/lib/components/link/link.style.d.ts +0 -1
- package/lib/components/link/link.style.js +1 -1
- package/lib/components/link-preview/__internal__/placeholder.component.js +1 -1
- package/lib/components/link-preview/link-preview.style.js +1 -1
- package/lib/components/loader/__next__/internal/star.style.js +1 -1
- package/lib/components/loader/__next__/loader.style.js +1 -1
- package/lib/components/loader/loader-square.style.js +1 -1
- package/lib/components/loader/loader.style.js +1 -1
- package/lib/components/loader-bar/loader-bar.style.js +1 -1
- package/lib/components/loader-spinner/loader-spinner.style.js +1 -1
- package/lib/components/loader-star/internal/star.style.js +1 -1
- package/lib/components/loader-star/loader-star.style.js +1 -1
- package/lib/components/menu/__internal__/menu-item-variant.context.d.ts +6 -0
- package/lib/components/menu/__internal__/menu-item-variant.context.js +1 -0
- package/lib/components/menu/__internal__/strict-menu.context.d.ts +2 -2
- package/lib/components/menu/__internal__/strict-menu.context.js +1 -1
- package/lib/components/menu/__internal__/submenu/submenu.component.d.ts +3 -11
- package/lib/components/menu/__internal__/submenu/submenu.component.js +1 -1
- package/lib/components/menu/__internal__/submenu/submenu.context.d.ts +1 -1
- package/lib/components/menu/__internal__/submenu/submenu.style.d.ts +15 -18
- package/lib/components/menu/__internal__/submenu/submenu.style.js +1 -1
- package/lib/components/menu/index.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 +6 -4
- package/lib/components/menu/menu-divider/menu-divider.style.js +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 +14 -14
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +1 -1
- package/lib/components/menu/menu-item/menu-item.component.d.ts +10 -10
- package/lib/components/menu/menu-item/menu-item.component.js +1 -1
- package/lib/components/menu/menu-item/menu-item.style.d.ts +30 -21
- package/lib/components/menu/menu-item/menu-item.style.js +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.d.ts +4 -3
- 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 +6 -8
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/lib/components/menu/menu.component.d.ts +16 -2
- package/lib/components/menu/menu.component.js +1 -1
- package/lib/components/menu/menu.config.d.ts +10 -50
- package/lib/components/menu/menu.config.js +1 -1
- package/lib/components/menu/menu.style.d.ts +4 -13
- package/lib/components/menu/menu.style.js +1 -1
- package/lib/components/menu/scrollable-block/scrollable-block.component.d.ts +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 +5 -7
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +1 -1
- package/lib/components/message/message.style.js +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.js +1 -1
- package/lib/components/navigation-bar/navigation-bar.style.js +1 -1
- package/lib/components/note/note.style.js +1 -1
- package/lib/components/numeral-date/numeral-date.style.js +1 -1
- package/lib/components/option-tile/option-tile.style.js +1 -1
- package/lib/components/pager/__internal__/pagination-navigation.style.js +1 -1
- package/lib/components/pager/pager.style.js +1 -1
- package/lib/components/pages/page/page.style.js +1 -1
- package/lib/components/pages/pages.style.js +1 -1
- package/lib/components/password/password.style.js +1 -1
- package/lib/components/pill/pill.style.js +1 -1
- package/lib/components/pod/pod.style.js +1 -1
- package/lib/components/popover-container/popover-container.component.js +1 -1
- package/lib/components/popover-container/popover-container.style.js +1 -1
- package/lib/components/portal/portal.js +1 -1
- package/lib/components/portal/portal.style.js +1 -1
- package/lib/components/portrait/portrait.style.js +1 -1
- package/lib/components/preview/preview.style.js +1 -1
- package/lib/components/profile/profile.style.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +1 -1
- package/lib/components/radio-button/radio-button-group/radio-button-group.style.js +1 -1
- package/lib/components/radio-button/radio-button.style.js +1 -1
- package/lib/components/search/__internal__/results-announcement.component.js +1 -1
- package/lib/components/search/search.component.d.ts +1 -0
- package/lib/components/search/search.component.js +1 -1
- package/lib/components/select/__internal__/list-action-button/list-action-button.style.js +1 -1
- package/lib/components/select/__internal__/select-list/select-list.style.js +1 -1
- package/lib/components/select/__internal__/select-textbox/select-textbox.style.js +1 -1
- package/lib/components/select/__internal__/utils/matching-text.style.js +1 -1
- package/lib/components/select/multi-select/multi-select.style.js +1 -1
- package/lib/components/select/option/option.style.js +1 -1
- package/lib/components/select/option-group-header/option-group-header.style.js +1 -1
- package/lib/components/select/option-row/option-row.style.js +1 -1
- package/lib/components/select/select.style.js +1 -1
- package/lib/components/settings-row/settings-row.style.js +1 -1
- package/lib/components/sidebar/__internal__/sidebar-content/sidebar-content.style.js +1 -1
- package/lib/components/sidebar/__internal__/sidebar-footer/sidebar-footer.style.js +1 -1
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +1 -1
- package/lib/components/sidebar/sidebar.style.js +1 -1
- package/lib/components/simple-color-picker/simple-color/simple-color.style.js +1 -1
- package/lib/components/simple-color-picker/simple-color-picker.style.js +1 -1
- package/lib/components/split-button/split-button-toggle.style.js +1 -1
- package/lib/components/split-button/split-button.style.js +1 -1
- package/lib/components/step-flow/step-flow.style.js +1 -1
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +1 -1
- package/lib/components/step-sequence/step-sequence.style.js +1 -1
- package/lib/components/switch/switch.style.js +1 -1
- package/lib/components/tabs/__next__/tabs.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/CharacterCounter/character-counter.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/ContentEditor/content-editor.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/Mentions/mentions.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/Placeholder/placeholder.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/Toolbar/button-group/button-group.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/Toolbar/buttons/typography-dropdown/dropdown.style.js +1 -1
- package/lib/components/text-editor/__internal__/__ui__/Toolbar/toolbar.style.js +1 -1
- package/lib/components/text-editor/text-editor.style.js +1 -1
- package/lib/components/textarea/textarea.style.js +1 -1
- package/lib/components/textbox/__internal__/__next__/text-input.style.js +1 -1
- package/lib/components/tile/tile-footer/tile-footer.style.js +1 -1
- package/lib/components/tile/tile.style.js +1 -1
- package/lib/components/tile-select/__internal__/accordion/accordion.style.js +1 -1
- package/lib/components/tile-select/tile-select.style.js +1 -1
- package/lib/components/time/time.style.js +1 -1
- package/lib/components/toast/toast.style.js +1 -1
- package/lib/components/tokens-wrapper/tokens-wrapper.component.js +1 -1
- package/lib/components/tooltip/tooltip-pointer.style.js +1 -1
- package/lib/components/tooltip/tooltip.style.js +1 -1
- package/lib/components/typography/__internal__/__next__/typography.style.js +1 -1
- package/lib/components/typography/typography.style.js +1 -1
- package/lib/components/vertical-divider/vertical-divider.style.js +1 -1
- package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-divider/responsive-vertical-menu-divider.style.js +1 -1
- package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu-item/responsive-vertical-menu-item.style.js +1 -1
- package/lib/components/vertical-menu/responsive-vertical-menu/responsive-vertical-menu.style.js +1 -1
- package/lib/components/vertical-menu/vertical-menu.style.js +1 -1
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +1 -1
- package/package.json +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.context.d.ts +0 -7
- package/esm/components/menu/menu-segment-title/menu-segment-title.context.js +0 -1
- package/esm/components/menu/menu.types.d.ts +0 -9
- package/esm/components/search/__internal__/legacy/search-button.style.d.ts +0 -5
- package/esm/components/search/__internal__/legacy/search-button.style.js +0 -1
- package/esm/components/search/__internal__/legacy/search.component.d.ts +0 -71
- package/esm/components/search/__internal__/legacy/search.component.js +0 -1
- package/esm/components/search/__internal__/legacy/search.style.d.ts +0 -13
- package/esm/components/search/__internal__/legacy/search.style.js +0 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.context.d.ts +0 -7
- package/lib/components/menu/menu-segment-title/menu-segment-title.context.js +0 -1
- package/lib/components/menu/menu.types.d.ts +0 -9
- package/lib/components/search/__internal__/legacy/search-button.style.d.ts +0 -5
- package/lib/components/search/__internal__/legacy/search-button.style.js +0 -1
- package/lib/components/search/__internal__/legacy/search.component.d.ts +0 -71
- package/lib/components/search/__internal__/legacy/search.component.js +0 -1
- package/lib/components/search/__internal__/legacy/search.style.d.ts +0 -13
- package/lib/components/search/__internal__/legacy/search.style.js +0 -1
|
@@ -21,7 +21,7 @@ interface MenuItemBaseProps extends TagProps, Pick<LayoutProps, "width" | "maxWi
|
|
|
21
21
|
target?: string;
|
|
22
22
|
/** The rel attribute to be used for the underlying <a> tag */
|
|
23
23
|
rel?: string;
|
|
24
|
-
/**
|
|
24
|
+
/** Set the variant of the MenuItem */
|
|
25
25
|
variant?: VariantType;
|
|
26
26
|
/** Flag to display the dropdown arrow when an item has a submenu */
|
|
27
27
|
showDropdownArrow?: boolean;
|
|
@@ -33,12 +33,6 @@ interface MenuItemBaseProps extends TagProps, Pick<LayoutProps, "width" | "maxWi
|
|
|
33
33
|
onSubmenuOpen?: () => void;
|
|
34
34
|
/** Callback triggered when submenu closes. Only valid with submenu prop */
|
|
35
35
|
onSubmenuClose?: () => void;
|
|
36
|
-
/**
|
|
37
|
-
@ignore @private
|
|
38
|
-
private prop, used inside ScrollableBlock to ensure the MenuItem's color variant overrides the CSS
|
|
39
|
-
for other MenuItems inside the block
|
|
40
|
-
*/
|
|
41
|
-
overrideColor?: boolean;
|
|
42
36
|
/** When set the submenu opens by click instead of hover */
|
|
43
37
|
clickToOpen?: boolean;
|
|
44
38
|
/**
|
|
@@ -47,7 +41,7 @@ interface MenuItemBaseProps extends TagProps, Pick<LayoutProps, "width" | "maxWi
|
|
|
47
41
|
* */
|
|
48
42
|
maxWidth?: MaxWidthProps["maxWidth"];
|
|
49
43
|
/**
|
|
50
|
-
* @private @ignore
|
|
44
|
+
* @private @ignore @internal
|
|
51
45
|
* Renders MenuItem as a div element
|
|
52
46
|
* */
|
|
53
47
|
as?: "div";
|
|
@@ -67,11 +61,17 @@ interface MenuItemBaseProps extends TagProps, Pick<LayoutProps, "width" | "maxWi
|
|
|
67
61
|
}
|
|
68
62
|
export interface MenuWithChildren extends MenuItemBaseProps {
|
|
69
63
|
children?: React.ReactNode;
|
|
70
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Please pass any desired icons as children instead.
|
|
66
|
+
* Either prop `icon` must be defined or this node must have children.
|
|
67
|
+
*/
|
|
71
68
|
icon?: IconType;
|
|
72
69
|
}
|
|
73
70
|
export interface MenuWithIcon extends MenuItemBaseProps {
|
|
74
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Please pass any desired icons as children instead.
|
|
73
|
+
* Either prop `icon` must be defined or this node must have children.
|
|
74
|
+
*/
|
|
75
75
|
icon: IconType;
|
|
76
76
|
children?: React.ReactNode;
|
|
77
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import r,{forwardRef as i,useRef as o,useContext as u,useState as a,useLayoutEffect as l,useEffect as s,useImperativeHandle as c}from"react";import m from"invariant";import{defaultFocusableSelectors as d}from"../../../__internal__/focus-trap/focus-trap-utils.js";import p from"../../../style/utils/filter-styled-system-padding-props.js";import{StyledMenuItem as b,StyledMenuItemWrapper as f,StyledMenuItemContent as h}from"./menu-item.style.js";import y from"../../../__internal__/utils/helpers/events/events.js";import{useStrictMenuContext as O}from"../__internal__/strict-menu.context.js";import v from"../__internal__/submenu/submenu.component.js";import g from"../__internal__/submenu/submenu.context.js";import j from"../../../__internal__/utils/helpers/guid/index.js";import w from"../../icon/icon.component.js";import"../../icon/icon.style.js";import _ from"../__internal__/menu-item-variant.context.js";function x(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){x(e,n,t[n])}))}return e}function P(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const W=i(((i,x)=>{var{submenu:W,submenuMaxWidth:$,submenuMinWidth:D,children:I,href:k,onClick:M,target:F,submenuDirection:V="right",icon:C,selected:E,onKeyDown:K,variant:L="default",showDropdownArrow:T=!0,ariaLabel:q,ariaCurrent:A,clickToOpen:N,maxWidth:Y,onSubmenuOpen:z,onSubmenuClose:B,rel:G,as:H,"data-element":J,"data-role":Q}=i,R=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(i,["submenu","submenuMaxWidth","submenuMinWidth","children","href","onClick","target","submenuDirection","icon","selected","onKeyDown","variant","showDropdownArrow","ariaLabel","ariaCurrent","clickToOpen","maxWidth","onSubmenuOpen","onSubmenuClose","rel","as","data-element","data-role"]);m(C||I,"Either prop `icon` must be defined or this node must have `children`."),m(I||q||W||"string"==typeof W&&W.length,"If no text or node is provided via the `submenu` prop, an `ariaLabel` should be given to facilitate accessibility."),m("boolean"==typeof W||void 0===W||r.isValidElement(W)||I&&"string"==typeof W&&W.length,"You should not pass `children` when `submenu` is an empty string");const U=o(j()),{inFullscreenView:X,registerItem:Z,unregisterItem:ee,focusId:ne,updateFocusId:te,menuVariant:re}=O(),ie=u(g),oe=Object.keys(ie).length>0,{submenuFocusId:ue,updateFocusId:ae,handleKeyDown:le,submenuMaxWidth:se,closeSubmenu:ce}=ie,{menuItemVariant:me}=u(_),de=ne===U.current,pe=ue?ue===U.current:void 0,[be,fe]=a(null),[he,ye]=a(null);l((()=>{var e;const n=null!==(e=null==be?void 0:be.querySelector(d))&&void 0!==e?e:null;n!==he&&ye(n)}),[he,be]),s((()=>{const e=U.current;return Z&&Z(e),()=>{ee&&ee(e)}}),[Z,ee]),s((()=>{if(de&&!pe||pe){if(he)return void he.focus();null==be||be.focus()}}),[he,de,pe,be]),c(x,(()=>({focus(){null==be||be.focus()}})),[be]);const Oe=e=>{oe?(e.stopPropagation(),null==ae||ae(U.current)):null==te||te(U.current)},ve={className:k||M?"carbon-menu-item--has-link":"",href:he?void 0:k,onClick:he||!k&&!M?void 0:e=>{null==M||M(e),null==ce||ce()},target:F,rel:G,onKeyDown:X?void 0:e=>{null==K||K(e),y.isEscKey(e)&&(null==be||be.focus()),null==le||le(e)},ref:fe},ge=e=>Y&&"string"==typeof e?e:void 0,je=X?void 0:Y,we=!(M||k||he);if(W){const r=n(t,{children:[n(h,{$hasMaxWidth:!!je,children:[C&&e(w,{type:C}),W]}),T&&!X&&e(w,{ml:"4px",type:"dropdown"})]});return e(b,P(S({"data-component":"menu-item","data-element":J,"data-role":Q,title:ge(W),$maxWidth:je},R),{$inFullscreenView:X,id:U.current,as:H,onFocus:Oe,children:e(v,P(S(P(S({title:r,submenuDirection:V,clickToOpen:N,maxWidth:Y,asPassiveItem:we,"aria-label":q,onSubmenuOpen:z,onSubmenuClose:B,submenuMaxWidth:$,submenuMinWidth:D,selected:E},ve),{variant:L}),R),{children:I}))}))}const _e=p(R),xe=!!(null==be?void 0:be.querySelector("[data-element='input']"));return e(b,P(S({"data-component":"menu-item","data-element":J,"data-role":Q,$inSubmenu:oe,title:ge(I),$maxWidth:je},R),{$inFullscreenView:X,id:U.current,as:H,onFocus:Oe,children:e(f,P(S(P(S({as:M&&!k?"button":"a",$menuVariant:re,"data-element":"menu-item-wrapper","data-role":"menu-item-wrapper"},ve),{$menuItemVariant:me||L,"aria-label":q,"aria-current":A,$maxWidth:je,$submenuMaxWidth:se,$inFullscreenView:X,$asPassiveItem:we}),_e),{$asDiv:xe||"div"===H,$inSubmenu:oe,$selected:E,children:n(h,{$hasMaxWidth:!!je,children:[C&&e(w,{type:C}),I]})}))}))}));export{W as MenuItem,W as default};
|
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
inFullscreenView?: boolean;
|
|
10
|
-
asPassiveItem?: boolean;
|
|
11
|
-
icon?: string;
|
|
12
|
-
ariaLabel?: string;
|
|
13
|
-
asDiv?: boolean;
|
|
14
|
-
hasFocusableChild?: boolean;
|
|
15
|
-
hasInput?: boolean;
|
|
16
|
-
menuItemVariant?: Pick<MenuWithChildren, "variant">["variant"];
|
|
17
|
-
inSubmenu?: boolean;
|
|
1
|
+
import { MaxWidthProps } from "styled-system";
|
|
2
|
+
import { MenuVariantType } from "../menu.component";
|
|
3
|
+
import { VariantType } from "./menu-item.component";
|
|
4
|
+
export interface StyledMenuItemProps {
|
|
5
|
+
$maxWidth?: MaxWidthProps["maxWidth"];
|
|
6
|
+
$inFullscreenView?: boolean;
|
|
7
|
+
$inSubmenu?: boolean;
|
|
8
|
+
$removeHeight?: boolean;
|
|
18
9
|
}
|
|
19
|
-
declare const
|
|
10
|
+
export declare const StyledMenuItem: import("styled-components").StyledComponent<"li", any, {
|
|
20
11
|
theme: object;
|
|
21
|
-
} &
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
} & StyledMenuItemProps, "theme">;
|
|
13
|
+
export interface StyledMenuItemWrapperProps {
|
|
14
|
+
$menuVariant: MenuVariantType;
|
|
15
|
+
$selected?: boolean;
|
|
16
|
+
$hasSubmenu?: boolean;
|
|
17
|
+
$isOpen?: boolean;
|
|
18
|
+
$inFullscreenView?: boolean;
|
|
19
|
+
$asPassiveItem?: boolean;
|
|
20
|
+
$asDiv?: boolean;
|
|
21
|
+
$menuItemVariant?: VariantType;
|
|
22
|
+
$inSubmenu?: boolean;
|
|
23
|
+
$submenuMaxWidth?: string;
|
|
24
|
+
$maxWidth?: MaxWidthProps["maxWidth"];
|
|
25
|
+
}
|
|
26
|
+
export declare const StyledMenuItemWrapper: import("styled-components").StyledComponent<"a", any, {
|
|
27
|
+
theme: object;
|
|
28
|
+
} & StyledMenuItemWrapperProps, "theme">;
|
|
29
|
+
interface StyledMenuItemContentProps {
|
|
30
|
+
$hasMaxWidth?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare const StyledMenuItemContent: import("styled-components").StyledComponent<"span", any, StyledMenuItemContentProps, never>;
|
|
24
33
|
export default StyledMenuItemWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{css as
|
|
1
|
+
import o,{css as e}from"styled-components";import{layout as t,flexbox as a,padding as r}from"styled-system";import i from"../menu.config.js";import n from"../../../style/themes/apply-base-theme.js";import l from"../../../style/utils/add-focus-styling.js";const s=o.li.attrs(n).withConfig({displayName:"menu-item.style__StyledMenuItem",componentId:"carbon_v162_11_0__sc-338885db-0"})(["display:flex;list-style:none;align-items:stretch;min-height:var(--global-size-m);"," "," ",""],t,a,(({$inSubmenu:o,$removeHeight:t,$inFullscreenView:a,$maxWidth:r})=>e([""," "," ",""],o&&e(["display:list-item;",""],a&&e(["width:100%;"])),t&&e(["min-height:0;"]),r&&e(["max-width:",";"],r)))),c=e(['padding:0;.popover-open-component{[data-component="button"]{background-color:inherit;color:inherit;border-radius:inherit;border:none;padding:var(--global-space-comp-xs) var(--global-space-comp-l);&:focus{','}}[data-popover-container-button="true"]{background-color:var(--colorsActionMajor500);&:focus{background-color:var(--colorsActionMajor500);}}}'],l(!0)),d=o.a.attrs(n).withConfig({displayName:"menu-item.style__StyledMenuItemWrapper",componentId:"carbon_v162_11_0__sc-338885db-1"})(["",""],(({$menuVariant:o,$selected:t,$hasSubmenu:a,$isOpen:n,$menuItemVariant:s,$maxWidth:d,$inFullscreenView:m,$asPassiveItem:p,$asDiv:b,$inSubmenu:u,$submenuMaxWidth:g,theme:h})=>e(["position:relative;display:flex;align-items:center;box-sizing:border-box;min-height:var(--global-size-m);text-decoration:none;text-align:left;font:var(--global-font-static-comp-medium-m);padding:var(--global-space-comp-xs) var(--global-space-comp-l);background-color:",";color:",";border:none;"," "," "," "," "," "," &:has([data-component='popover-container']){","}"],i[o].background,i[o].color,r,d&&e(["max-width:",";"],d),m&&e(["width:100%;font:var(--global-font-static-comp-medium-l);",""],a&&e(["color:",";"],i[o].title)),!p&&!b&&e(["&:hover{cursor:pointer;background-color:",";color:",";}&:focus{","}&:active{background-color:",";color:",";}"],i[o].backgroundHover,i[o].colorHover,l(!0),i[o].backgroundActive,i[o].colorActive),t&&e(['&::before{content:"";position:absolute;width:var(--global-size-xs);height:var(--global-size-6-xs);background-color:var(--nav-primary-bg-selected);'," ","}"],!m&&e(["bottom:0px;left:50%;transform:translate(-50%,0%);width:var(--global-size-xs);height:var(--global-size-6-xs);"]),m&&e(["left:0px;top:50%;transform:translate(0%,-50%);height:var(--global-size-xs);width:var(--global-size-6-xs);"])),!m&&e([""," ",""],a&&n&&e(["z-index:calc("," + 1);background-color:",";",""],h.zIndex.popover,i[o].submenuOpenedBackground,"white"===o&&e(["box-shadow:inset 1px 0 0 var(--nav-tertiary-border-default),inset -1px 0 0 var(--nav-tertiary-border-default);"])),u&&e(["width:100%;background-color:",";"," ",""],i[o].submenuItemBackground,"alternate"===s&&e(["background-color:",";"],i[o].alternate),g&&e(["max-width:",";"],g))),c))),m=o.span.withConfig({displayName:"menu-item.style__StyledMenuItemContent",componentId:"carbon_v162_11_0__sc-338885db-2"})(["",""],(({$hasMaxWidth:o})=>e(["display:flex;align-items:center;gap:var(--global-space-comp-s);width:100%;"," .search{width:100%;}"],o&&e(["display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle;"]))));export{s as StyledMenuItem,m as StyledMenuItemContent,d as StyledMenuItemWrapper,d as default};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VariantType } from "../menu-item";
|
|
3
3
|
import { TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
|
-
|
|
5
|
-
type AllowedAsValues = (typeof AS_VALUES)[number];
|
|
4
|
+
type AllowedAsValues = "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6
5
|
export interface MenuTitleProps extends TagProps {
|
|
6
|
+
/** MenuItem children to be rendered within the segment */
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
+
/** The text content for the segment title */
|
|
8
9
|
text: string;
|
|
9
|
-
/** Set the
|
|
10
|
+
/** Set the variant of the MenuSegmentTitle */
|
|
10
11
|
variant?: VariantType;
|
|
11
12
|
/** Set the heading level for the segment title */
|
|
12
13
|
as?: AllowedAsValues;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import r,{useContext as n
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import r,{useContext as n}from"react";import{StyledTitle as o,StyledSegmentChildren as i}from"./menu-segment-title.style.js";import{useStrictMenuContext as u}from"../__internal__/strict-menu.context.js";import a from"../__internal__/menu-item-variant.context.js";import{StyledMenuItem as l}from"../menu-item/menu-item.style.js";import c from"../../../__internal__/utils/helpers/tags/tags.js";import m from"../__internal__/submenu/submenu.context.js";function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){s(e,t,r[t])}))}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const b=r.forwardRef(((r,s)=>{var{children:b,variant:O="default",text:y,as:j="h2",segmentWrapperProps:g}=r,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,["children","variant","text","as","segmentWrapperProps"]);const{menuVariant:h,inFullscreenView:v}=u(),{submenuMaxWidth:P}=n(m);return e(l,{$inSubmenu:!0,$removeHeight:!0,children:[t(o,f(p({as:j},c("menu-segment-title",d)),{$menuVariant:h,ref:s,$variant:v?void 0:O,$shouldWrap:!!P,$isInFullscreen:v,children:y})),b&&t(i,f(p({},c("menu-segment-title",p({"data-role":"menu-segment-children"},g))),{children:t(a.Provider,{value:{menuItemVariant:O},children:b})}))]})}));b.displayName="MenuSegmentTitle";export{b as default};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { MenuVariantType } from "../menu.component";
|
|
1
2
|
import { VariantType } from "../menu-item";
|
|
2
|
-
import type { MenuType } from "../menu.types";
|
|
3
3
|
interface StyledTitleProps {
|
|
4
|
-
variant?: VariantType;
|
|
5
|
-
|
|
6
|
-
shouldWrap?: boolean;
|
|
4
|
+
$variant?: VariantType;
|
|
5
|
+
$menuVariant: MenuVariantType;
|
|
6
|
+
$shouldWrap?: boolean;
|
|
7
|
+
$isInFullscreen?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const StyledTitle: import("styled-components").StyledComponent<"h2", any, StyledTitleProps, never>;
|
|
9
|
-
declare const StyledSegmentChildren: import("styled-components").StyledComponent<"ul", any, {
|
|
10
|
-
variant?: VariantType;
|
|
11
|
-
menuType: MenuType;
|
|
12
|
-
}, never>;
|
|
10
|
+
declare const StyledSegmentChildren: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
13
11
|
export { StyledTitle, StyledSegmentChildren };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e,{css as o}from"styled-components";import a from"../menu.config.js";const n=e.h2.withConfig({displayName:"menu-segment-title.style__StyledTitle",componentId:"carbon_v162_11_0__sc-6f99340f-0"})(["",""],(({$menuVariant:e,$variant:n,$shouldWrap:t,$isInFullscreen:l})=>o(["margin:var(--global-space-none);padding:var(--global-space-comp-s) var(--global-space-comp-l) var(--global-space-none);text-transform:uppercase;cursor:default;white-space:",";font-size:12px;font-weight:500;line-height:150%;color:",";background-color:",";"," ",""],t?"normal":"nowrap",a[e].title,a[e].submenuItemBackground,"alternate"===n&&o(["background-color:",";"],a[e].alternate),l&&o(["background-color:",";padding:var(--global-space-comp-s) var(--global-space-comp-l);"],a[e].background)))),t=e.ul.withConfig({displayName:"menu-segment-title.style__StyledSegmentChildren",componentId:"carbon_v162_11_0__sc-6f99340f-1"})(["padding:0;"]);export{t as StyledSegmentChildren,n as StyledTitle};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import { FlexboxProps, LayoutProps } from "styled-system";
|
|
3
|
+
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
4
|
+
/** @deprecated */
|
|
5
|
+
export type MenuType = "light" | "dark" | "white" | "black";
|
|
6
|
+
export type MenuVariantType = "white" | "black";
|
|
7
|
+
export interface MenuProps extends TagProps, Pick<LayoutProps, "width" | "minWidth" | "maxWidth" | "overflow" | "overflowX" | "verticalAlign">, FlexboxProps {
|
|
8
|
+
/** Children elements */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Please use the `variant` prop instead.
|
|
12
|
+
*/
|
|
13
|
+
menuType?: MenuType;
|
|
14
|
+
/** Set the color variant of the component */
|
|
15
|
+
variant?: MenuVariantType;
|
|
16
|
+
}
|
|
17
|
+
export declare const Menu: ({ menuType, variant, children, ...rest }: MenuProps) => React.JSX.Element;
|
|
4
18
|
export default Menu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useState as r,useRef as t,useCallback as n}from"react";import o from"../../__internal__/utils/helpers/tags/tags.js";import{StyledMenuWrapper as i}from"./menu.style.js";import{StrictMenuProvider as c}from"./__internal__/strict-menu.context.js";import l from"./__internal__/menu.context.js";import{menuKeyboardNavigation as u}from"./__internal__/keyboard-navigation/index.js";import{MENU_ITEM_CHILDREN_LOCATOR as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useState as r,useRef as t,useCallback as n}from"react";import o from"../../__internal__/utils/helpers/tags/tags.js";import{StyledMenuWrapper as i}from"./menu.style.js";import{StrictMenuProvider as c}from"./__internal__/strict-menu.context.js";import l from"./__internal__/menu.context.js";import{menuKeyboardNavigation as u}from"./__internal__/keyboard-navigation/index.js";import{MENU_ITEM_CHILDREN_LOCATOR as a}from"./__internal__/locators.js";function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const f=f=>{var{menuType:p,variant:m="white",children:b}=f,y=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(f,["menuType","variant","children"]);const[O,j]=r(null),d=t(null),[g,_]=r(void 0),[v,h]=r([]);let w=m;"light"===p||"white"===p?w="white":"dark"!==p&&"black"!==p||(w="black");const P=n((e=>{h((r=>[...r,e]))}),[]),S=n((e=>{h((r=>r.filter((r=>r!==e))))}),[]);return e(i,(k=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){s(e,r,t[r])}))}return e}({},y,o("menu",y)),x=null!=(x={ref:d,role:"list",onKeyDown:e=>{if(d.current){const r=d.current.querySelectorAll(a);if(r){const t=u(e,Array.from(r));void 0!==t&&_(v[t])}}},children:e(c,{value:{menuVariant:w,openSubmenuId:O,setOpenSubmenuId:j,focusId:g,updateFocusId:_,registerItem:P,unregisterItem:S},children:e(l.Provider,{value:{inMenu:!0},children:b})})})?x:{},Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(x)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r}(Object(x)).forEach((function(e){Object.defineProperty(k,e,Object.getOwnPropertyDescriptor(x,e))})),k));var k,x};export{f as Menu,f as default};
|
|
@@ -1,71 +1,31 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
light: {
|
|
3
|
-
background: string;
|
|
4
|
-
color: string;
|
|
5
|
-
selected: string;
|
|
6
|
-
submenuOpenedBackground: string;
|
|
7
|
-
submenuBackground: string;
|
|
8
|
-
submenuSelected: string;
|
|
9
|
-
submenuItemBackground: string;
|
|
10
|
-
submenuItemBackgroundHover: string;
|
|
11
|
-
title: string;
|
|
12
|
-
alternate: string;
|
|
13
|
-
alternateHover: string;
|
|
14
|
-
divider: string;
|
|
15
|
-
scrollbarThumb: string;
|
|
16
|
-
scrollbarTrack: string;
|
|
17
|
-
scrollbarColor: string;
|
|
18
|
-
};
|
|
19
|
-
dark: {
|
|
20
|
-
background: string;
|
|
21
|
-
color: string;
|
|
22
|
-
selected: string;
|
|
23
|
-
submenuOpenedBackground: string;
|
|
24
|
-
submenuBackground: string;
|
|
25
|
-
submenuSelected: string;
|
|
26
|
-
submenuItemBackground: string;
|
|
27
|
-
submenuItemBackgroundHover: string;
|
|
28
|
-
title: string;
|
|
29
|
-
alternate: string;
|
|
30
|
-
alternateHover: string;
|
|
31
|
-
divider: string;
|
|
32
|
-
scrollbarThumb: string;
|
|
33
|
-
scrollbarTrack: string;
|
|
34
|
-
scrollbarColor: string;
|
|
35
|
-
};
|
|
36
2
|
black: {
|
|
37
3
|
background: string;
|
|
38
4
|
color: string;
|
|
39
|
-
|
|
5
|
+
backgroundHover: string;
|
|
6
|
+
colorHover: string;
|
|
7
|
+
backgroundActive: string;
|
|
8
|
+
colorActive: string;
|
|
40
9
|
submenuOpenedBackground: string;
|
|
41
|
-
submenuBackground: string;
|
|
42
|
-
submenuSelected: string;
|
|
43
10
|
submenuItemBackground: string;
|
|
44
|
-
submenuItemBackgroundHover: string;
|
|
45
11
|
title: string;
|
|
46
12
|
alternate: string;
|
|
47
|
-
alternateHover: string;
|
|
48
13
|
divider: string;
|
|
49
|
-
|
|
50
|
-
scrollbarTrack: string;
|
|
51
|
-
scrollbarColor: string;
|
|
14
|
+
fullScreenHeader: string;
|
|
52
15
|
};
|
|
53
16
|
white: {
|
|
54
17
|
background: string;
|
|
55
18
|
color: string;
|
|
56
|
-
|
|
19
|
+
backgroundHover: string;
|
|
20
|
+
colorHover: string;
|
|
21
|
+
backgroundActive: string;
|
|
22
|
+
colorActive: string;
|
|
57
23
|
submenuOpenedBackground: string;
|
|
58
|
-
submenuBackground: string;
|
|
59
|
-
submenuSelected: string;
|
|
60
24
|
submenuItemBackground: string;
|
|
61
|
-
submenuItemBackgroundHover: string;
|
|
62
25
|
title: string;
|
|
63
26
|
alternate: string;
|
|
64
|
-
alternateHover: string;
|
|
65
27
|
divider: string;
|
|
66
|
-
|
|
67
|
-
scrollbarTrack: string;
|
|
68
|
-
scrollbarColor: string;
|
|
28
|
+
fullScreenHeader: string;
|
|
69
29
|
};
|
|
70
30
|
};
|
|
71
31
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a={black:{background:"var(--nav-primary-bg-default)",color:"var(--nav-primary-label-default)",backgroundHover:"var(--nav-primary-bg-hover)",colorHover:"var(--nav-primary-label-hover)",backgroundActive:"var(--nav-primary-bg-active)",colorActive:"var(--nav-primary-label-active)",submenuOpenedBackground:"var(--nav-primary-bg-child)",submenuItemBackground:"var(--nav-primary-bg-child)",title:"var(--container-standard-inverse-txt-alt)",alternate:"var(--nav-primary-bg-child-alt)",divider:"var(--nav-primary-divider)",fullScreenHeader:"var(--nav-primary-bg-child)"},white:{background:"var(--nav-tertiary-bg-default)",color:"var(--nav-tertiary-label-default)",backgroundHover:"var(--nav-tertiary-bg-hover)",colorHover:"var(--nav-tertiary-label-hover)",backgroundActive:"var(--nav-tertiary-bg-active)",colorActive:"var(--nav-tertiary-label-active)",submenuOpenedBackground:"var(--nav-tertiary-bg-child)",submenuItemBackground:"var(--nav-tertiary-bg-child)",title:"var(--container-standard-txt-alt)",alternate:"var(--nav-tertiary-bg-child-alt)",divider:"var(--nav-tertiary-divider)",fullScreenHeader:"var(--nav-tertiary-bg-child-alt)"}};export{a as default};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface StyledMenuProps extends Pick<MenuProps, "menuType">, FlexboxProps, LayoutProps {
|
|
4
|
-
inFullscreenView?: boolean;
|
|
1
|
+
interface StyledMenuProps {
|
|
2
|
+
$inFullscreenView?: boolean;
|
|
5
3
|
}
|
|
6
|
-
declare const StyledMenuWrapper: import("styled-components").StyledComponent<"ul", any, StyledMenuProps, never>;
|
|
7
|
-
|
|
8
|
-
inFullscreenView?: boolean;
|
|
9
|
-
inSubmenu?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const StyledMenuItem: import("styled-components").StyledComponent<"li", any, {
|
|
12
|
-
theme: object;
|
|
13
|
-
} & StyledMenuItemProps, "theme">;
|
|
14
|
-
export { StyledMenuWrapper, StyledMenuItem };
|
|
4
|
+
export declare const StyledMenuWrapper: import("styled-components").StyledComponent<"ul", any, StyledMenuProps, never>;
|
|
5
|
+
export default StyledMenuWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e,{css as n}from"styled-components";import{layout as t,flexbox as i}from"styled-system";const l=e.ul.withConfig({displayName:"menu.style__StyledMenuWrapper",componentId:"carbon_v162_11_0__sc-5b0dbbae-0"})(["list-style:none;margin:0;padding:0;outline:none;display:flex;align-items:stretch;min-height:var(--global-size-m);"," "," ",""],t,i,(({$inFullscreenView:e})=>e&&n(["flex-direction:column;"])));export{l as StyledMenuWrapper,l as default};
|
|
@@ -8,7 +8,7 @@ export interface ScrollableBlockProps extends TagProps {
|
|
|
8
8
|
height?: string | number;
|
|
9
9
|
/** A custom max height to be applied to the component. */
|
|
10
10
|
maxHeight?: string | number;
|
|
11
|
-
/**
|
|
11
|
+
/** Set the variant of the ScrollableBlock */
|
|
12
12
|
variant?: VariantType;
|
|
13
13
|
/** the element, if any, displayed at the top of the block to be its semantic "parent",
|
|
14
14
|
* but not part of the scrollable section
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import"react";import
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import"react";import r from"../__internal__/menu-item-variant.context.js";import{MenuItem as n}from"../menu-item/menu-item.component.js";import{StyledScrollableBlock as o,ScrollableContainer as i}from"./scrollable-block.style.js";import a from"../../../__internal__/utils/helpers/tags/tags.js";function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=c=>{var p,u,{children:b,height:m,maxHeight:s,variant:f="default",parent:O,parentVariant:y}=c,j=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(c,["children","height","maxHeight","variant","parent","parentVariant"]);return e(o,(p=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){l(e,t,r[t])}))}return e}({},j,a("submenu-scrollable-block",j)),u=null!=(u={children:[O&&t(n,{"data-component":"scrollable-block-parent",variant:y,as:"div","data-role":"scrollable-block-parent-menu-item",children:O}),t(i,{role:"list",$height:m,$maxHeight:s,children:t(r.Provider,{value:{menuItemVariant:f},children:b})})]})?u:{},Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(u)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(u)).forEach((function(e){Object.defineProperty(p,e,Object.getOwnPropertyDescriptor(u,e))})),p))};export{c as ScrollableBlock,c as default};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
variant: VariantType;
|
|
6
|
-
$inFullscreenView?: boolean;
|
|
1
|
+
export declare const StyledScrollableBlock: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
2
|
+
interface ScrollableContainerProps {
|
|
3
|
+
$height?: string | number;
|
|
4
|
+
$maxHeight?: string | number;
|
|
7
5
|
}
|
|
8
|
-
declare const
|
|
6
|
+
export declare const ScrollableContainer: import("styled-components").StyledComponent<"ul", any, ScrollableContainerProps, never>;
|
|
9
7
|
export default StyledScrollableBlock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e,{css as o}from"styled-components";const l=e.li.withConfig({displayName:"scrollable-block.style__StyledScrollableBlock",componentId:"carbon_v162_11_0__sc-50e9ce29-0"})(['[data-last-menu-item="true"]{border-bottom-right-radius:var(--global-radius-none);}']),t=e.ul.withConfig({displayName:"scrollable-block.style__ScrollableContainer",componentId:"carbon_v162_11_0__sc-50e9ce29-1"})(["",""],(({$height:e,$maxHeight:l})=>o(["list-style:none;margin:0;padding:0;overflow-y:scroll;overscroll-behavior-y:none;"," ",""],e&&o(["height:",";"],"number"==typeof e?`${e}px`:e),l&&o(["max-height:",";"],"number"==typeof l?`${l}px`:l))));export{t as ScrollableContainer,l as StyledScrollableBlock,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{css as a}from"styled-components";import{margin as s}from"styled-system";import o from"../../style/themes/apply-base-theme.js";import{variantPrimaryColorBorder as t,variantSubtleColor as r,sizeMap as n,variantPrimaryColor as i,variantSubtleIconColor as l}from"./message.config.js";const d=e.div.attrs(o).withConfig({displayName:"message.style__MessageStyle",componentId:"
|
|
1
|
+
import e,{css as a}from"styled-components";import{margin as s}from"styled-system";import o from"../../style/themes/apply-base-theme.js";import{variantPrimaryColorBorder as t,variantSubtleColor as r,sizeMap as n,variantPrimaryColor as i,variantSubtleIconColor as l}from"./message.config.js";const d=e.div.attrs(o).withConfig({displayName:"message.style__MessageStyle",componentId:"carbon_v162_11_0__sc-8540121a-0"})(["position:relative;display:flex;box-sizing:border-box;border-radius:var(--global-radius-container-m);overflow:hidden;border:var(--global-borderwidth-xs) solid ",";background-color:var(--message-contextual-bg);max-width:720px;:focus{outline:none;}"," "," "," ",""],(({variant:e})=>t[e]),(({isSubtle:e,variant:s})=>e&&a(["border:",";background-color:",";"],(e=>{switch(e){case"info":return"var(--global-borderwidth-xs) solid var(--message-contextual-info-border-alt)";case"success":return"var(--global-borderwidth-xs) solid var(--message-contextual-success-border-alt)";case"warning":return"var(--global-borderwidth-xs) solid var(--message-contextual-warning-border-alt)";case"ai":return"var(--global-borderwidth-xs) solid var(--message-contextual-ai-border-alt)";default:return"none"}})(s),r[s])),(({transparent:e})=>e&&a(["border:none;background:transparent;"])),(({width:e})=>e&&`width: ${e};`),s),c=e.div.withConfig({displayName:"message.style__MessageWrapper",componentId:"carbon_v162_11_0__sc-8540121a-1"})(["display:flex;align-items:flex-start;flex:1 0 0;"]),g=e.div.withConfig({displayName:"message.style__MessageContent",componentId:"carbon_v162_11_0__sc-8540121a-2"})(["display:flex;flex:1 0 0;",""],(({size:e,isSubtle:s})=>a(["padding:",";",""],n[e].padding,s&&a(["gap:",";"],n[e].subtleGap)))),p=e.div.withConfig({displayName:"message.style__MessageContentWrapper",componentId:"carbon_v162_11_0__sc-8540121a-3"})(["display:flex;flex-direction:column;justify-content:center;color:var(--message-contextual-txt);",""],(({size:e})=>a(["gap:",";font:",";"],n[e].contentGap,n[e].contentFont))),_=e.p.withConfig({displayName:"message.style__MessageTitle",componentId:"carbon_v162_11_0__sc-8540121a-4"})(["",""],(({size:e})=>a(["margin:0;font:",";"],n[e].titleFont))),m=e.div.withConfig({displayName:"message.style__CloseButtonWrapper",componentId:"carbon_v162_11_0__sc-8540121a-5"})(["",""],(({size:e})=>a(["padding:",";"],n[e].closeButtonPadding))),b=e.div.withConfig({displayName:"message.style__TypeIconStyle",componentId:"carbon_v162_11_0__sc-8540121a-6"})(["",""],(({transparent:e,isSubtle:s,variant:o})=>a(["display:flex;span{width:var(--global-size-2-xs);height:var(--global-size-2-xs);}"," ",""],!s&&a(["background-color:",";justify-content:center;align-items:center;width:var(--global-size-s);span{&:before{color:var(--message-contextual-icon);}}"],i[o]),(s||e)&&a(["background-color:transparent;span{&:before{color:",";}}"],l[o]))));export{m as CloseButtonWrapper,g as MessageContent,p as MessageContentWrapper,d as MessageStyle,_ as MessageTitle,c as MessageWrapper,b as TypeIconStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{css as r}from"styled-components";import{margin as t}from"styled-system";import i from"../button/button.style.js";import n from"../../style/themes/apply-base-theme.js";import a from"../icon/icon.style.js";import e from"../../style/utils/element-sizing.js";const d=o.div.attrs(n).withConfig({displayName:"multi-action-button.style__StyledMultiActionButton",componentId:"
|
|
1
|
+
import o,{css as r}from"styled-components";import{margin as t}from"styled-system";import i from"../button/button.style.js";import n from"../../style/themes/apply-base-theme.js";import a from"../icon/icon.style.js";import e from"../../style/utils/element-sizing.js";const d=o.div.attrs(n).withConfig({displayName:"multi-action-button.style__StyledMultiActionButton",componentId:"carbon_v162_11_0__sc-8c926c18-0"})([""," display:inline-block;position:relative;"," & > ","{margin:0;","{margin-left:0;left:8px;}&:focus{background-color:var(--colorsActionMajor700);border:3px solid var(--colorsActionMajor700);outline:none;margin:0 -1px;&,",'{color:var(--colorsActionMajorYang100);}}&:active{background-color:var(--colorsActionMajor700);border-color:var(--colorsActionMajor700);&&&{color:var(--colorsActionMajorYang100);}&&& [data-component="icon"]:not([data-color]){color:var(--colorsActionMajorYang100);}}',"}"],t,(({width:o})=>o&&r([""," ","{width:100%;justify-content:space-between;}& > ",'{> span{flex:1;min-width:0;}[data-element="main-text"]{width:100%;justify-content:space-between;}}'],e({width:o}),i,i)),i,a,a,(({displayed:o})=>o&&r(["background-color:var(--colorsActionMajor700);border-color:var(--colorsActionMajor700);&,","{color:var(--colorsActionMajorYang100);}&:focus{margin:0 -1px;}"],a))),s=o.ul.attrs(n).withConfig({displayName:"multi-action-button.style__StyledButtonChildrenContainer",componentId:"carbon_v162_11_0__sc-8c926c18-1"})(["",""],(({theme:o,align:t,minWidth:n})=>r(["background-color:var(--colorsActionMajorYang100);min-width:","px;white-space:nowrap;z-index:",";box-shadow:var(--boxShadow100);border-radius:var(--borderRadius100);list-style:none;padding:0;margin:0;"," ","{border:1px solid var(--colorsActionMajorTransparent);display:flex;justify-content:",";margin-left:0;min-width:100%;text-align:",";& + &{margin-top:3px;}&:focus{position:relative;z-index:1;}}"],n,o.zIndex.popover,"\n > {\n &:first-child:last-child > * {\n border-radius: var(--borderRadius100);\n }\n\n &:first-child:not(:last-child) > * {\n border-top-left-radius: var(--borderRadius100);\n border-top-right-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius000);\n }\n\n &:not(:first-child):not(:last-child) > * {\n border-radius: var(--borderRadius000);\n }\n\n &:last-child:not(:first-child) > * {\n border-top-right-radius: var(--borderRadius000);\n border-top-left-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius100);\n }\n }\n",i,t,t)));export{s as StyledButtonChildrenContainer,d as StyledMultiActionButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{css as e}from"styled-components";import{padding as n,flexbox as o}from"styled-system";import i from"../../style/themes/apply-base-theme.js";const t=a.nav.attrs(i).withConfig({displayName:"navigation-bar.style__StyledNavigationBar",componentId:"
|
|
1
|
+
import a,{css as e}from"styled-components";import{padding as n,flexbox as o}from"styled-system";import i from"../../style/themes/apply-base-theme.js";const t=a.nav.attrs(i).withConfig({displayName:"navigation-bar.style__StyledNavigationBar",componentId:"carbon_v162_11_0__sc-3a53c00b-0"})(["display:flex;align-items:center;padding:0 40px;min-height:40px;& > *{box-sizing:border-box;vertical-align:middle;}@media only screen and (max-width:1259px){padding:0 32px;}@media only screen and (max-width:959px){padding:0 24px;}@media only screen and (max-width:599px){padding:0 16px;}&&{","}"," .carbon-logo{margin-right:10px;}"," ",""],n,o,(({$position:a,$orientation:n,$offset:o})=>a&&n&&e(["position:",";",":",";",""],a,n,o,"fixed"===a&&e(["box-sizing:border-box;width:100%;"]))),(({$variant:a})=>e(['&[data-component="global-header"]{z-index:var(--carbon-zindex-global-nav);}&:not([data-component="global-header"]){z-index:var(--carbon-zindex-nav);}'," ",""],"black"===a&&e(["background-color:var(--nav-primary-bg-default);color:var(--nav-primary-label-default);"]),"white"===a&&e(["background-color:var(--nav-tertiary-bg-default);color:var(--nav-tertiary-label-default);"]))));export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{css as o}from"styled-components";import{margin as e}from"styled-system";import l from"../../style/themes/apply-base-theme.js";import{VARIANT_TYPES as t}from"../typography/typography.component.js";const n=a.div.withConfig({displayName:"note.style__StyledNoteContent",componentId:"
|
|
1
|
+
import a,{css as o}from"styled-components";import{margin as e}from"styled-system";import l from"../../style/themes/apply-base-theme.js";import{VARIANT_TYPES as t}from"../typography/typography.component.js";const n=a.div.withConfig({displayName:"note.style__StyledNoteContent",componentId:"carbon_v162_11_0__sc-5ea7ec6f-0"})(["position:relative;"," "," "," ",";"],(({$isBody:a})=>a&&o(["display:flex;flex-direction:column;flex:1;gap:var(--global-space-comp-l);min-width:0;padding:var(--global-space-comp-xl);> div[readonly]{padding:var(--global-space-none);}"])),(({$hasPreviews:a})=>a&&o(["margin-top:var(--global-space-comp-l);"])),(({$hasTitlelessControl:a})=>a&&o(['[role="article"]{padding-inline-end:calc( var(--global-size-m) + var(--global-space-comp-l) );}'])),(({$isPreviews:a})=>o([""," ",""],!a&&o(["a{color:var(--link-typical-label-default);&:hover{cursor:pointer;color:var(--link-typical-label-hover);}&:focus{outline:none;text-decoration:none;color:var(--focus-label);background-color:var(--focus-bg);border-radius:var(--global-radius-action-xs);box-shadow:0 var(--global-size-5-xs) 0 0 var(--focus-borderalt);}}"]),a&&o(["display:flex;flex-direction:column;gap:var(--global-space-comp-s);"])))),i=a.div.withConfig({displayName:"note.style__StyledNoteMain",componentId:"carbon_v162_11_0__sc-5ea7ec6f-1"})(['[role="article"]{color:var(--container-standard-txt-default);font:var(--global-font-static-body-regular-m);> :last-child{margin-bottom:var(--global-space-none);}}']),r=a.h3.withConfig({displayName:"note.style__StyledNoteTitle",componentId:"carbon_v162_11_0__sc-5ea7ec6f-2"})(["color:var(--container-standard-txt-default);font:var(--global-font-static-heading-m);margin:var(--global-space-none);"]),d=a.div.withConfig({displayName:"note.style__StyledInlineControl",componentId:"carbon_v162_11_0__sc-5ea7ec6f-3"})(["display:inline-flex;flex:0 0 var(--global-size-m);height:var(--global-size-m);min-width:fit-content;width:var(--global-size-m);",""],(({$isTitleless:a})=>a&&o(["inset-inline-end:var(--global-space-comp-xl);position:absolute;top:var(--global-space-comp-xl);"]))),s=a.div.withConfig({displayName:"note.style__StyledTitleRow",componentId:"carbon_v162_11_0__sc-5ea7ec6f-4"})(["align-items:flex-start;display:flex;gap:var(--global-space-comp-l);justify-content:flex-end;min-width:0;width:100%;> :not(","){flex:1;min-width:0;padding-top:var(--global-space-comp-xs);}"],d),c=a.div.withConfig({displayName:"note.style__StyledTitleWrapper",componentId:"carbon_v162_11_0__sc-5ea7ec6f-5"})(["",""],t.map((a=>`\n ${a}{\n font: var(--global-font-static-heading-m);\n }\n `))),p=a.div.withConfig({displayName:"note.style__StyledFooterContent",componentId:"carbon_v162_11_0__sc-5ea7ec6f-6"})(["display:flex;flex-direction:column;gap:var(--global-space-comp-xs);> span{color:var(--container-standard-txt-default);font:var(--global-font-static-comp-medium-m);}"," time{color:var(--container-standard-txt-alt);font:var(--global-font-static-comp-regular-xs);}"],(({$isName:a})=>a&&o(["color:var(--container-standard-txt-default);font:var(--global-font-static-section-heading-s);"]))),m=a.div.withConfig({displayName:"note.style__StyledFooter",componentId:"carbon_v162_11_0__sc-5ea7ec6f-7"})(["display:flex;flex-direction:column;gap:var(--global-space-comp-s);padding:var(--global-space-comp-l) var(--global-space-none) var(--global-space-comp-xl);"]),g=a.div.withConfig({displayName:"note.style__StyledTimestamps",componentId:"carbon_v162_11_0__sc-5ea7ec6f-8"})(["display:flex;flex-direction:column;gap:var(--global-space-comp-xl);"]),b=a.div.attrs(l).withConfig({displayName:"note.style__StyledNote",componentId:"carbon_v162_11_0__sc-5ea7ec6f-9"})(["",' > [data-role="note-metadata"]{border-radius:var(--global-radius-action-xs) var(--global-radius-action-xs) var(--global-radius-none) var(--global-radius-none);border-top-color:var(--container-standard-border-default);border-top-style:solid;border-top-width:var(--global-borderwidth-xs);margin-left:var(--global-space-comp-xl);margin-right:var(--global-space-comp-xl);}> [data-role="note-previews"]{padding:var(--global-space-none) var(--global-space-comp-xl) var(--global-space-comp-xl);}.textBold{font-weight:bold !important;}.textItalic{font-style:italic;}.textUnderline{text-decoration:underline;}.mention{cursor:default !important;}',""],(({width:a})=>o(["background-color:var(--container-standard-bg-default);border:var(--global-borderwidth-xs) solid var(--container-standard-border-default);border-radius:var(--global-radius-action-m);display:flex;flex-direction:column;min-width:288px;padding:var(--global-space-none);position:relative;width:","%;box-sizing:border-box;","{box-sizing:border-box;width:auto;}"],a,n)),e);export{m as StyledFooter,p as StyledFooterContent,d as StyledInlineControl,b as StyledNote,n as StyledNoteContent,i as StyledNoteMain,r as StyledNoteTitle,g as StyledTimestamps,s as StyledTitleRow,c as StyledTitleWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{css as l}from"styled-components";const o={small:{font:"var(--global-font-static-comp-regular-s)",gap:"var(--global-space-comp-m)"},medium:{font:"var(--global-font-static-comp-regular-m)",gap:"var(--global-space-comp-l)"},large:{font:"var(--global-font-static-comp-regular-l)",gap:"var(--global-space-comp-xl)"}},e=a.div.withConfig({displayName:"numeral-date.style__StyledNumeralDate",componentId:"
|
|
1
|
+
import a,{css as l}from"styled-components";const o={small:{font:"var(--global-font-static-comp-regular-s)",gap:"var(--global-space-comp-m)"},medium:{font:"var(--global-font-static-comp-regular-m)",gap:"var(--global-space-comp-l)"},large:{font:"var(--global-font-static-comp-regular-l)",gap:"var(--global-space-comp-xl)"}},e=a.div.withConfig({displayName:"numeral-date.style__StyledNumeralDate",componentId:"carbon_v162_11_0__sc-cb8089db-0"})(["display:inline-flex;",""],(({$size:a})=>l(["gap:",";.numeral-date-wrapper label{font:",";}"],o[a].gap,o[a].font)));export{e as default};
|