carbon-react 164.2.1 → 164.3.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.component.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.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-action-item.component.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/menu-item/menu-option-item.component.js +1 -1
- package/esm/__internal__/popover-menu/popover-menu.component.js +1 -1
- package/esm/__internal__/results-announcement/results-announcement.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.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__/calendar/calendar-close-button.style.js +1 -1
- package/esm/components/date/__internal__/calendar/calendar-navigation.style.js +1 -1
- package/esm/components/date/__internal__/calendar/calendar-select/calendar-select.style.js +1 -1
- package/esm/components/date/__internal__/calendar/calendar-weekday.style.js +1 -1
- package/esm/components/date/__internal__/date-picker/date-picker.style.js +1 -1
- package/esm/components/date/__internal__/date-picker-trigger/date-picker-trigger.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/definition-list.style.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.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-input-validation/file-input-validation.component.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.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__/submenu/submenu.style.js +1 -1
- package/esm/components/menu/menu-divider/menu-divider.style.js +1 -1
- package/esm/components/menu/menu-full-screen/menu-full-screen.style.js +1 -1
- package/esm/components/menu/menu-item/menu-item.style.js +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/esm/components/menu/menu.style.js +1 -1
- 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.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/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/__next__/select-list.component.js +1 -1
- package/esm/components/select/__internal__/select-list/select-list.style.js +1 -1
- package/esm/components/select/__internal__/utils/matching-text.style.js +1 -1
- package/esm/components/select/action-option/action-option.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/skeleton/skeleton.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/table/table-body/table-body.component.js +1 -1
- package/esm/components/table/table-cell/table-cell.style.js +1 -1
- package/esm/components/table/table-foot/table-foot.component.js +1 -1
- package/esm/components/table/table-head/table-head.component.js +1 -1
- package/esm/components/table/table-header/__internal__/sort/sort.style.js +1 -1
- package/esm/components/table/table-header/table-header.style.js +1 -1
- package/esm/components/table/table-row/table-row.style.js +1 -1
- package/esm/components/table/table.style.js +1 -1
- package/esm/components/tabs/__next__/{tab.context.d.ts → __internal__/contexts/tab.context.d.ts} +3 -1
- package/esm/components/tabs/__next__/__internal__/contexts/tab.context.js +1 -0
- package/esm/components/tabs/__next__/__internal__/contexts/tabs.context.d.ts +29 -0
- package/esm/components/tabs/__next__/__internal__/contexts/tabs.context.js +1 -0
- package/esm/components/tabs/__next__/index.d.ts +7 -2
- package/esm/components/tabs/__next__/index.js +1 -1
- package/esm/components/tabs/__next__/tab/index.d.ts +2 -0
- package/esm/components/tabs/__next__/tab/index.js +1 -0
- package/esm/components/tabs/__next__/tab/tab.component.d.ts +38 -0
- package/esm/components/tabs/__next__/tab/tab.component.js +1 -0
- package/esm/components/tabs/__next__/tab/tab.style.d.ts +35 -0
- package/esm/components/tabs/__next__/tab/tab.style.js +1 -0
- package/esm/components/tabs/__next__/tab-list/index.d.ts +2 -0
- package/esm/components/tabs/__next__/tab-list/index.js +1 -0
- package/esm/components/tabs/__next__/tab-list/tab-list.component.d.ts +23 -0
- package/esm/components/tabs/__next__/tab-list/tab-list.component.js +1 -0
- package/esm/components/tabs/__next__/tab-list/tab-list.style.d.ts +15 -0
- package/esm/components/tabs/__next__/tab-list/tab-list.style.js +1 -0
- package/esm/components/tabs/__next__/tab-panel/index.d.ts +2 -0
- package/esm/components/tabs/__next__/tab-panel/index.js +1 -0
- package/esm/components/tabs/__next__/tab-panel/tab-panel.component.d.ts +12 -0
- package/esm/components/tabs/__next__/tab-panel/tab-panel.component.js +1 -0
- package/esm/components/tabs/__next__/tabs.component.d.ts +13 -4
- package/esm/components/tabs/__next__/tabs.component.js +1 -1
- package/esm/components/tabs/__next__/tabs.style.d.ts +1 -30
- package/esm/components/tabs/__next__/tabs.style.js +1 -1
- package/esm/components/tabs/tab/tab.component.d.ts +6 -0
- package/esm/components/tabs/tab/tab.component.js +1 -1
- package/esm/components/tabs/tabs.component.d.ts +6 -0
- package/esm/components/tabs/tabs.component.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/hooks/__internal__/useRegisterValidationToTabs/useRegisterValidationToTabs.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.component.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.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-action-item.component.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/menu-item/menu-option-item.component.js +1 -1
- package/lib/__internal__/popover-menu/popover-menu.component.js +1 -1
- package/lib/__internal__/results-announcement/results-announcement.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.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__/calendar/calendar-close-button.style.js +1 -1
- package/lib/components/date/__internal__/calendar/calendar-navigation.style.js +1 -1
- package/lib/components/date/__internal__/calendar/calendar-select/calendar-select.style.js +1 -1
- package/lib/components/date/__internal__/calendar/calendar-weekday.style.js +1 -1
- package/lib/components/date/__internal__/date-picker/date-picker.style.js +1 -1
- package/lib/components/date/__internal__/date-picker-trigger/date-picker-trigger.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/definition-list.style.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.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-input-validation/file-input-validation.component.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.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__/submenu/submenu.style.js +1 -1
- package/lib/components/menu/menu-divider/menu-divider.style.js +1 -1
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +1 -1
- package/lib/components/menu/menu-item/menu-item.style.js +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/lib/components/menu/menu.style.js +1 -1
- 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.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/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/__next__/select-list.component.js +1 -1
- package/lib/components/select/__internal__/select-list/select-list.style.js +1 -1
- package/lib/components/select/__internal__/utils/matching-text.style.js +1 -1
- package/lib/components/select/action-option/action-option.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/skeleton/skeleton.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/table/table-body/table-body.component.js +1 -1
- package/lib/components/table/table-cell/table-cell.style.js +1 -1
- package/lib/components/table/table-foot/table-foot.component.js +1 -1
- package/lib/components/table/table-head/table-head.component.js +1 -1
- package/lib/components/table/table-header/__internal__/sort/sort.style.js +1 -1
- package/lib/components/table/table-header/table-header.style.js +1 -1
- package/lib/components/table/table-row/table-row.style.js +1 -1
- package/lib/components/table/table.style.js +1 -1
- package/lib/components/tabs/__next__/{tab.context.d.ts → __internal__/contexts/tab.context.d.ts} +3 -1
- package/lib/components/tabs/__next__/__internal__/contexts/tab.context.js +1 -0
- package/lib/components/tabs/__next__/__internal__/contexts/tabs.context.d.ts +29 -0
- package/lib/components/tabs/__next__/__internal__/contexts/tabs.context.js +1 -0
- package/lib/components/tabs/__next__/index.d.ts +7 -2
- package/lib/components/tabs/__next__/index.js +1 -1
- package/lib/components/tabs/__next__/tab/index.d.ts +2 -0
- package/lib/components/tabs/__next__/tab/index.js +1 -0
- package/lib/components/tabs/__next__/tab/package.json +5 -0
- package/lib/components/tabs/__next__/tab/tab.component.d.ts +38 -0
- package/lib/components/tabs/__next__/tab/tab.component.js +1 -0
- package/lib/components/tabs/__next__/tab/tab.style.d.ts +35 -0
- package/lib/components/tabs/__next__/tab/tab.style.js +1 -0
- package/lib/components/tabs/__next__/tab-list/index.d.ts +2 -0
- package/lib/components/tabs/__next__/tab-list/index.js +1 -0
- package/lib/components/tabs/__next__/tab-list/package.json +5 -0
- package/lib/components/tabs/__next__/tab-list/tab-list.component.d.ts +23 -0
- package/lib/components/tabs/__next__/tab-list/tab-list.component.js +1 -0
- package/lib/components/tabs/__next__/tab-list/tab-list.style.d.ts +15 -0
- package/lib/components/tabs/__next__/tab-list/tab-list.style.js +1 -0
- package/lib/components/tabs/__next__/tab-panel/index.d.ts +2 -0
- package/lib/components/tabs/__next__/tab-panel/index.js +1 -0
- package/lib/components/tabs/__next__/tab-panel/package.json +5 -0
- package/lib/components/tabs/__next__/tab-panel/tab-panel.component.d.ts +12 -0
- package/lib/components/tabs/__next__/tab-panel/tab-panel.component.js +1 -0
- package/lib/components/tabs/__next__/tabs.component.d.ts +13 -4
- package/lib/components/tabs/__next__/tabs.component.js +1 -1
- package/lib/components/tabs/__next__/tabs.style.d.ts +1 -30
- package/lib/components/tabs/__next__/tabs.style.js +1 -1
- package/lib/components/tabs/tab/tab.component.d.ts +6 -0
- package/lib/components/tabs/tab/tab.component.js +1 -1
- package/lib/components/tabs/tabs.component.d.ts +6 -0
- package/lib/components/tabs/tabs.component.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/hooks/__internal__/useRegisterValidationToTabs/useRegisterValidationToTabs.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/tabs/__next__/tab.context.js +0 -1
- package/esm/components/tabs/__next__/tabs.context.d.ts +0 -14
- package/esm/components/tabs/__next__/tabs.context.js +0 -1
- package/esm/components/tabs/__next__/tabs.types.d.ts +0 -94
- package/lib/components/tabs/__next__/tab.context.js +0 -1
- package/lib/components/tabs/__next__/tabs.context.d.ts +0 -14
- package/lib/components/tabs/__next__/tabs.context.js +0 -1
- package/lib/components/tabs/__next__/tabs.types.d.ts +0 -94
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{css as r}from"styled-components";import o from"./__internal__/config/index.js";import e from"../../style/utils/add-focus-styling.js";const a=t.div.withConfig({displayName:"table.style__StyledTableWrapper",componentId:"
|
|
1
|
+
import t,{css as r}from"styled-components";import o from"./__internal__/config/index.js";import e from"../../style/utils/add-focus-styling.js";const a=t.div.withConfig({displayName:"table.style__StyledTableWrapper",componentId:"carbon_v164_2_1__sc-87e8c9cc-0"})(["display:flex;flex-direction:column;width:100%;min-width:0;max-width:100%;height:auto;",""],(({$maxWidth:t})=>t&&r(["max-width:",";"],t))),l=t.div.withConfig({displayName:"table.style__StyledInnerWrapper",componentId:"carbon_v164_2_1__sc-87e8c9cc-1"})(['> div[data-element="table-scroll-container"]{display:flex;flex-direction:column;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;}border-radius:var(--global-radius-container-m);overflow:clip;isolation:isolate;width:auto;min-width:0;max-width:100%;height:auto;position:relative;&:has(> div[data-element="table-scroll-container"]:focus-visible){',"}"," "," "," ",""],e(),(({$maxHeight:t,$maxWidth:o,$isVerticallyScrollable:e})=>(t||o)&&r(["",' > div[data-element="table-scroll-container"]{'," "," -webkit-overflow-scrolling:touch;}"],o&&r(["max-width:",";"],o),o&&r(["max-width:",";overscroll-behavior-x:none;"],o),t&&r(["max-height:",";",""],t,e&&r(["overflow-y:auto;overscroll-behavior-y:none;"])))),(({$showOuterBorder:t,$variant:o})=>t&&"prominent"===o&&r(["border:var(--global-borderwidth-xs) solid var(--table-row-border-default);"])),(({$showOuterBorder:t,$variant:o})=>t&&"prominent"!==o&&r(['&:not(:has(> div > table > :is(thead,tfoot))){border:var(--global-borderwidth-xs) solid var(--table-row-border-default);}&:has(> div > table > :is(thead,tfoot)) > div{> table > :is(tbody,tfoot) > tr > td:first-child,> table > :is(tbody,tfoot) > tr > th:first-child{border-inline-start:var(--global-borderwidth-xs) solid var(--table-row-border-default);}> table > :is(tbody,tfoot) > tr > td:last-child,> table > :is(tbody,tfoot) > tr > th:last-child{border-inline-end:var(--global-borderwidth-xs) solid var(--table-row-border-default);}> table > :is(thead) > tr > td:last-child,> table > :is(thead) > tr > th:last-child{border-inline-end:var(--global-borderwidth-xs) solid transparent;}&::after{content:"";position:absolute;inset-inline:0;inset-block-end:0;height:calc( var(--global-radius-container-m) + var(--global-borderwidth-xs) + 8px );box-sizing:border-box;z-index:20;pointer-events:none;border-inline:var(--global-borderwidth-xs) solid var(--table-row-border-default);border-block-end:var(--global-borderwidth-xs) solid var(--table-row-border-default);border-end-start-radius:var(--global-radius-container-m);border-end-end-radius:var(--global-radius-container-m);}}'])),(({$hasPagination:t})=>t&&r(["margin-bottom:var(--global-space-comp-m);"]))),i=t.table.withConfig({displayName:"table.style__StyledTable",componentId:"carbon_v164_2_1__sc-87e8c9cc-2"})(["--table-sticky-header-height:0px;--table-sticky-footer-height:0px;--table-cell-border-horizontal-width:",";--table-cell-border-vertical-width:",";--table-header-border-color:",';border-spacing:0;border-collapse:separate;&[data-has-first-column="true"]{&&{th:first-child,td:first-child{position:sticky;left:0;z-index:1;&::after{content:"";position:absolute;top:0px;bottom:0px;right:0px;width:4px;z-index:2;pointer-events:none;box-shadow:var(--global-depth-sticky-l);}}thead > tr:first-child:has(> th:first-child[rowspan]:not([rowspan="1"])) ~ tr > th:first-child{position:relative;left:auto;z-index:auto;&::after{content:none;}}thead th:first-child[rowspan]:not([rowspan="1"]){border-right:var(--table-cell-border-vertical-width) solid var(--table-header-border-color);}tr:has(> th:first-child[rowspan]:not([rowspan="1"])) + tr > th:first-child{position:relative;box-shadow:none;z-index:unset;}}}&[data-has-last-column="true"]{th:nth-last-child(2),td:nth-last-child(2){border-right:none;}&&{th:last-child,td:last-child{position:sticky;right:0;z-index:1;border-left:var(--table-cell-border-vertical-width) solid var(--table-row-border-default);&::after{content:"";position:absolute;top:0px;bottom:0px;left:0px;width:4px;z-index:2;pointer-events:none;box-shadow:var(--global-depth-sticky-r);}}tr:has(> th:last-child[rowspan]:not([rowspan="1"])) + tr > th:last-child{position:relative;box-shadow:none;z-index:unset;border-right:none;}thead > tr:first-child:has(> th:last-child[rowspan]:not([rowspan="1"])) ~ tr > th:last-child{position:relative;right:auto;z-index:auto;border-left:none;&::after{content:none;}}}}&& tbody tr[data-is-dragging="true"] > th:first-child,&& tbody tr[data-is-dragging="true"] > td:first-child,&& tbody tr[data-is-dragging="true"] > th:last-child,&& tbody tr[data-is-dragging="true"] > td:last-child{content:none;}tbody{> tr{> td:not(:last-child),> th:not(:last-child){border-right:var(--table-cell-border-vertical-width) solid var(--table-row-border-default);}}> tr:not([aria-hidden="true"]):has(~ tr:not([aria-hidden="true"])){> td,> th{border-bottom:none;box-shadow:inset 0 calc(0px - var(--table-cell-border-horizontal-width)) 0 0 var(--table-row-border-default);}}}& thead{tr:last-child > th,tr:not(:last-child) > th[rowspan]:not([rowspan="1"]){border-bottom:var(--global-borderwidth-xs) solid var(--table-header-border-color);}}& tfoot{td,th{background-color:var(--table-footer-bg-default);&:not(:last-child){border-right:var(--table-cell-border-vertical-width) solid var(--table-row-border-default);}}tr:first-child td,tr:first-child th{border-top:var(--global-borderwidth-xs) solid var(--table-row-border-default);}}& thead{tr{th{&:not(:last-child){border-right:var(--table-cell-border-vertical-width) solid var(--table-header-border-color);}}}tr:has(> th:last-child[rowspan]:not([rowspan="1"])) + tr > th:last-child{border-right:var(--table-cell-border-vertical-width) solid var(--table-header-border-color);}','}&[data-has-sticky-header="true"]{thead{position:sticky;top:0;z-index:10;}tbody :focus{scroll-margin-block-start:calc( var(--table-sticky-header-height) + var(--global-space-comp-xs) );}}&[data-has-sticky-footer="true"]{tfoot{position:sticky;bottom:0;z-index:10;}tbody :focus{scroll-margin-block-end:calc( var(--table-sticky-footer-height) + var(--global-space-comp-xs) );}}& tbody{tr[data-is-selected="false"]{td,th{background-color:var(--table-row-bg-default);}}tr[data-component="table-sub-row"]{td,th{background-color:var(--table-row-bg-alt2);}}',"}"],(({$horizontalBorderThickness:t})=>o[t]),(({$verticalBorderThickness:t})=>o[t]),(({$variant:t})=>"prominent"===t?"var(--table-header-harsh-border-default)":"var(--table-header-subtle-border-default)"),(({$variant:t})=>r(["",""],"prominent"!==t&&r(['tr > th:first-child[rowspan]:not([rowspan="1"]){border-right-color:transparent;}tr > th:first-child[rowspan]:not([rowspan="1"]) + th,tr:has(> th:first-child[rowspan]:not([rowspan="1"])) + tr > th:first-child{position:relative;border-left-color:transparent;}tr > th:first-child[rowspan]:not([rowspan="1"]) + th::before,tr:has(> th:first-child[rowspan]:not([rowspan="1"])) + tr > th:first-child::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:var(--table-cell-border-vertical-width);background-color:var(--table-header-border-color);pointer-events:none;left:-1px;top:0px;bottom:-1px;}']))),(({$isZebraStriped:t})=>t&&r(['tr:nth-child(even of :not([data-component*="sub-row"])):not( [data-is-selected="true"] ){td,th{background-color:var(--table-row-bg-alt);}}'])));export{l as StyledInnerWrapper,i as StyledTable,a as StyledTableWrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{createContext as e}from"react";import{StyledTabProvider as t}from"../../tabs.style.js";const i=e({tabId:""}),o=({children:e,tabId:o,visible:a})=>r(i.Provider,{value:{tabId:o},children:r(t,{$visible:a,role:"presentation",children:e})});export{i as TabContext,o as TabProvider};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
export type TabValidationRecord = Record<string, string | boolean>;
|
|
3
|
+
export type ValidationRecord = Record<string, TabValidationRecord>;
|
|
4
|
+
export interface TabsContextProps {
|
|
5
|
+
activeTab: string;
|
|
6
|
+
focusIndex: string;
|
|
7
|
+
isInTab?: boolean;
|
|
8
|
+
labelledBy?: string;
|
|
9
|
+
orientation: "horizontal" | "vertical";
|
|
10
|
+
setActiveTab: Dispatch<SetStateAction<string>>;
|
|
11
|
+
setFocusIndex: Dispatch<SetStateAction<string>>;
|
|
12
|
+
setErrors: (childId: string, tabId: string, error: string | boolean) => void;
|
|
13
|
+
setWarnings: (childId: string, tabId: string, warning: string | boolean) => void;
|
|
14
|
+
errors: ValidationRecord;
|
|
15
|
+
warnings: ValidationRecord;
|
|
16
|
+
size: "medium" | "large";
|
|
17
|
+
}
|
|
18
|
+
export declare const TabsContext: React.Context<TabsContextProps>;
|
|
19
|
+
export declare const useTabs: () => TabsContextProps;
|
|
20
|
+
interface TabsProviderProps {
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
isInTab?: boolean;
|
|
23
|
+
labelledBy?: string;
|
|
24
|
+
orientation: "horizontal" | "vertical";
|
|
25
|
+
selectedTabId?: string;
|
|
26
|
+
size: "medium" | "large";
|
|
27
|
+
}
|
|
28
|
+
export declare const TabsProvider: ({ children, isInTab, labelledBy, orientation, selectedTabId, size, }: TabsProviderProps) => React.JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createContext as r,useState as t,useCallback as n,useEffect as o,useContext as i}from"react";import s from"../../../../../hooks/__internal__/usePrevious/index.js";function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(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){a(e,r,t[r])}))}return e}const l=r({activeTab:"",focusIndex:"",isInTab:!1,labelledBy:"",orientation:"horizontal",setActiveTab:()=>{},setFocusIndex:()=>{},setErrors:()=>{},setWarnings:()=>{},size:"medium",errors:{},warnings:{}}),u=()=>i(l),b=({children:r,isInTab:i=!0,labelledBy:a,orientation:u,selectedTabId:b="",size:f})=>{const[d,m]=t(b),[y,p]=t(""),[v,g]=t({}),[I,O]=t({}),T=n(((e,r,t)=>{const n={[r]:{[e]:t}};g((o=>(o[r]||(o[r]={}),o[r][e]!==t?c({},o,n):o)))}),[]),j=n(((e,r,t)=>{const n={[r]:{[e]:t}};O((o=>(o[r]||(o[r]={}),o[r][e]!==t?c({},o,n):o)))}),[]),x=s(b);return o((()=>{b&&b!==x&&m(b)}),[b,x]),e(l.Provider,{value:{activeTab:d,focusIndex:y,isInTab:i,labelledBy:a,orientation:u,setActiveTab:m,setFocusIndex:p,setErrors:T,setWarnings:j,size:f,errors:v,warnings:I},children:r})};export{l as TabsContext,b as TabsProvider,u as useTabs};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { TabsProps
|
|
1
|
+
export { default as Tabs } from "./tabs.component";
|
|
2
|
+
export type { TabsProps } from "./tabs.component";
|
|
3
|
+
export { default as TabList } from "./tab-list";
|
|
4
|
+
export type { TabsHandle } from "./tab-list";
|
|
5
|
+
export { default as Tab } from "./tab";
|
|
6
|
+
export type { TabProps } from "./tab";
|
|
7
|
+
export { default as TabPanel } from "./tab-panel";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Tabs}from"./tabs.component.js";export{TabList}from"./tab-list/tab-list.component.js";export{Tab}from"./tab/tab.component.js";export{TabPanel}from"./tab-panel/tab-panel.component.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Tab as default}from"./tab.component.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TagProps } from "../../../../__internal__/utils/helpers/tags";
|
|
3
|
+
export interface TabProps extends TagProps {
|
|
4
|
+
/** The tab panel that this tab controls */
|
|
5
|
+
controls: string;
|
|
6
|
+
/** The ID of the tab */
|
|
7
|
+
id: string;
|
|
8
|
+
/** The error state of the tab */
|
|
9
|
+
error?: boolean | string;
|
|
10
|
+
/**
|
|
11
|
+
* The label content.
|
|
12
|
+
* If rendered as a node, `leftSlot`, `rightSlot` and `subtext` will be ignored.
|
|
13
|
+
*/
|
|
14
|
+
label: React.ReactNode;
|
|
15
|
+
/** The subtext shown on the tab */
|
|
16
|
+
subtext?: string;
|
|
17
|
+
/** The item shown to the left of the label */
|
|
18
|
+
leftSlot?: React.ReactNode;
|
|
19
|
+
/** The item shown to the right of the label */
|
|
20
|
+
rightSlot?: React.ReactNode;
|
|
21
|
+
/** The warning state of the tab */
|
|
22
|
+
warning?: boolean | string;
|
|
23
|
+
/**
|
|
24
|
+
* The info state of the tab
|
|
25
|
+
* @deprecated the info validation is no longer supported.
|
|
26
|
+
* */
|
|
27
|
+
info?: boolean | string;
|
|
28
|
+
/**
|
|
29
|
+
* @internal @private @ignore
|
|
30
|
+
*/
|
|
31
|
+
hasCustomLayout?: boolean;
|
|
32
|
+
/** @private @ignore @internal */
|
|
33
|
+
headerWidth?: string;
|
|
34
|
+
/** @private @ignore @internal */
|
|
35
|
+
href?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const Tab: ({ controls, error, id, label, subtext, leftSlot, rightSlot, warning, info, hasCustomLayout, headerWidth, href, ...rest }: TabProps) => React.JSX.Element;
|
|
38
|
+
export default Tab;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as e,Fragment as r}from"react/jsx-runtime";import{useState as o,useEffect as n}from"react";import i from"../../../../__internal__/utils/helpers/tags/tags.js";import a from"../../../../__internal__/utils/logger/index.js";import l from"../../../../hooks/__internal__/useLocale/useLocale.js";import s from"../../../../__internal__/utils/helpers/extract-text/index.js";import c from"../../../icon/icon.component.js";import"../../../icon/icon.style.js";import{useTabs as u}from"../__internal__/contexts/tabs.context.js";import{TabProvider as b}from"../__internal__/contexts/tab.context.js";import{StyledTab as f,StyledTabContent as p,StyledTabLabelWrapper as d,StyledTabSubtext as m}from"./tab.style.js";function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){y(t,e,r[e])}))}return t}function h(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e}(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t}let O=!1;const j=y=>{var{controls:j,error:_=!1,id:w,label:x,subtext:v,leftSlot:S,rightSlot:P,warning:$=!1,info:k,hasCustomLayout:I,headerWidth:L,href:C}=y,D=function(t,e){if(null==t)return{};var r,o,n=function(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||(n[r]=t[r]);return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}(y,["controls","error","id","label","subtext","leftSlot","rightSlot","warning","info","hasCustomLayout","headerWidth","href"]);const z=l(),[E,W]=o(_),[N,T]=o($),{activeTab:A,focusIndex:B,orientation:F,setActiveTab:G,setFocusIndex:R,size:U,errors:V,warnings:q}=u(),H=A===w;return!S&&!P||"string"==typeof x||O||(a.warn("[WARNING] Using `leftSlot` and/or `rightSlot` is not supported when `label` is not a string. Please use `leftSlot` and/or `rightSlot` alongside a string `label`, or use the `label` prop exclusively."),O=!0),n((()=>{if(B===w){const t=document.getElementById(w);null==t||t.focus(),null==t||t.scrollIntoView({block:"nearest",inline:"center"})}}),[B,w]),n((()=>{const t=t=>!!t&&Object.values(t).some((t=>!1!==t));W(_||t(V[w])),T($||t(q[w]))}),[_,w,V,q,$]),t(b,{tabId:w,visible:!0,children:e(f,h(g(h(g({$activeTab:A===w,className:A===w?"active-tab":"","aria-controls":j,"aria-selected":H?"true":"false",$error:E,$warning:N,id:w,onClick:()=>{G(w),R(w)},$orientation:F,role:"tab",$size:U,type:C?void 0:"button",tabIndex:A===w?0:-1,$hasCustomLayout:I,$headerWidth:L},i("tab",D)),{"data-tabid":w,as:C?"a":void 0}),C&&{href:C,target:"_blank",style:{textDecoration:"none",display:"block",boxSizing:"border-box"}}),{children:[t(p,{$hasCustomLayout:I,$orientation:F,children:"string"==typeof x?e(r,{children:[S,e(d,{children:[x,t(m,{$size:U,children:v})]}),P]}):t(r,{children:x})}),(()=>{const e=s(x);return E?t(c,{"data-role":"icon-error",type:"error",ariaLabel:z.tabs.error(e),color:"negative"}):N?t(c,{"data-role":"icon-warning",type:"warning",ariaLabel:z.tabs.warning(e),color:"caution"}):null})()]}))})};export{j as Tab,j as default};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const sizes: {
|
|
2
|
+
medium: {
|
|
3
|
+
labelFont: string;
|
|
4
|
+
subtextFont: string;
|
|
5
|
+
minHeight: string;
|
|
6
|
+
paddingX: string;
|
|
7
|
+
paddingY: string;
|
|
8
|
+
};
|
|
9
|
+
large: {
|
|
10
|
+
labelFont: string;
|
|
11
|
+
subtextFont: string;
|
|
12
|
+
minHeight: string;
|
|
13
|
+
paddingX: string;
|
|
14
|
+
paddingY: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const StyledTabContent: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
+
$hasCustomLayout?: boolean;
|
|
19
|
+
$orientation: "horizontal" | "vertical";
|
|
20
|
+
}, never>;
|
|
21
|
+
export declare const StyledTabLabelWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
22
|
+
export declare const StyledTabSubtext: import("styled-components").StyledComponent<"span", any, {
|
|
23
|
+
$size: "medium" | "large";
|
|
24
|
+
}, never>;
|
|
25
|
+
interface StyledTabProps {
|
|
26
|
+
$activeTab: boolean;
|
|
27
|
+
$error?: string | boolean;
|
|
28
|
+
$warning?: string | boolean;
|
|
29
|
+
$orientation: "horizontal" | "vertical";
|
|
30
|
+
$size: "medium" | "large";
|
|
31
|
+
$hasCustomLayout?: boolean;
|
|
32
|
+
$headerWidth?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const StyledTab: import("styled-components").StyledComponent<"button", any, StyledTabProps, never>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a,{css as o}from"styled-components";import r from"../../../../style/utils/add-focus-styling.js";const t={medium:{labelFont:"var(--global-font-static-comp-medium-m)",subtextFont:"var(--global-font-static-comp-regular-xs)",minHeight:"var(--global-size-m)",paddingX:"var(--global-space-comp-l)",paddingY:"var(--global-space-comp-s)"},large:{labelFont:"var(--global-font-static-comp-medium-l)",subtextFont:"var(--global-font-static-comp-regular-s)",minHeight:"var(--global-size-l)",paddingX:"var(--global-space-comp-xl)",paddingY:"var(--global-space-comp-m)"}},e=(a,o)=>a?"var(--tab-validation-border-error)":o?"var(--tab-validation-border-warning)":"var(--tab-border-active)",l=a.div.withConfig({displayName:"tab.style__StyledTabContent",componentId:"carbon_v164_2_1__sc-a22c704b-0"})(["",""],(({$hasCustomLayout:a,$orientation:r})=>o(["display:flex;flex:1 0 0;gap:var(--global-space-comp-s);align-items:center;text-align:left;"," ",""],"horizontal"===r&&o(["white-space:nowrap;"]),a&&o(["> *{flex-grow:1;}"])))),i=a.div.withConfig({displayName:"tab.style__StyledTabLabelWrapper",componentId:"carbon_v164_2_1__sc-a22c704b-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;"]),n=a.span.withConfig({displayName:"tab.style__StyledTabSubtext",componentId:"carbon_v164_2_1__sc-a22c704b-2"})(["",""],(({$size:a})=>o(["font:",";"],t[a].subtextFont))),d=a.button.withConfig({displayName:"tab.style__StyledTab",componentId:"carbon_v164_2_1__sc-a22c704b-3"})(["",""],(({$activeTab:a,$orientation:l,$size:i,$error:n,$warning:d,$hasCustomLayout:b,$headerWidth:s})=>o(["cursor:pointer;display:flex;align-items:center;box-sizing:border-box;gap:var(--global-space-comp-s);background-color:transparent;border:none;color:var(--tab-label-default);position:relative;font:",";min-height:",";padding:var(--global-space-comp-s) ",';border-radius:var(--global-radius-action-m) var(--global-radius-action-m) var(--global-radius-none) var(--global-radius-none);::before{content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;}'," "," "," "," :focus{"," z-index:1;::before,::after{display:none;}}"],t[i].labelFont,t[i].minHeight,t[i].paddingX,a&&o(["background-color:var(--tab-bg-active);z-index:1;",""],"horizontal"===l&&o(['::before{border:var(--global-borderwidth-s) solid var(--tab-border-active-alt);border-bottom:none;}::after{content:"";pointer-events:none;position:absolute;bottom:0;left:calc('," + var(--global-borderwidth-s));right:calc("," + var(--global-borderwidth-s));width:stretch;height:var(--global-size-5-xs);background-color:",";border-radius:var(--global-radius-action-xs);box-shadow:calc(-1 * var(--global-borderwidth-xl)) 0 0 0 var(--tab-border-active-outline),var(--global-borderwidth-xl) 0 0 0 var(--tab-border-active-outline);}"],t[i].paddingX,t[i].paddingX,e(n,d))),"vertical"===l&&o(["border-radius:var(--global-radius-action-m) var(--global-radius-none) var(--global-radius-none) var(--global-radius-action-m);max-width:",";width:",";padding:"," ",";",""],null!=s?s:"200px",null!=s?s:"200px",t[i].paddingY,t[i].paddingX,a&&o(['::before{border:var(--global-borderwidth-s) solid var(--tab-border-active-alt);border-right:none;}::after{content:"";pointer-events:none;position:absolute;right:0;top:calc('," + var(--global-borderwidth-s));bottom:calc("," + var(--global-borderwidth-s));height:stretch;width:var(--global-size-5-xs);background-color:",";border-radius:var(--global-radius-action-xs);box-shadow:0 calc(-1 * var(--global-borderwidth-xl)) 0 0 var(--tab-border-active-outline),0 var(--global-borderwidth-xl) 0 0 var(--tab-border-active-outline);}"],t[i].paddingY,t[i].paddingY,e(n,d))),b&&o(["padding:0;"]),!a&&o([":hover{background-color:var(--tab-bg-hover);}"]),r(!0))));export{d as StyledTab,l as StyledTabContent,i as StyledTabLabelWrapper,n as StyledTabSubtext,t as sizes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{TabList as default}from"./tab-list.component.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TagProps } from "../../../../__internal__/utils/helpers/tags";
|
|
3
|
+
export type TabsHandle = {
|
|
4
|
+
/**
|
|
5
|
+
* Programmatically focus on a specific tab.
|
|
6
|
+
* @param id - The ID of the tab to focus. Must match the `id` prop of the target `Tab` component.
|
|
7
|
+
*/
|
|
8
|
+
focusTab: (id: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export interface TabListProps extends TagProps {
|
|
11
|
+
/** The label read out when the tab list gains focus */
|
|
12
|
+
ariaLabel: string;
|
|
13
|
+
/** The tabs to be shown in the tab list */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/** A callback for when the active tab is changed */
|
|
16
|
+
onTabChange?: (tabId: string) => void;
|
|
17
|
+
/**
|
|
18
|
+
* @private @ignore @internal
|
|
19
|
+
*/
|
|
20
|
+
headerWidth?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<TabsHandle>>;
|
|
23
|
+
export default TabList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{forwardRef as n,useRef as o,useImperativeHandle as i,useCallback as l,useEffect as a,useState as c}from"react";import s from"../../../../__internal__/utils/helpers/tags/tags.js";import u from"../../../../__internal__/utils/helpers/guid/index.js";import b from"../../../../hooks/__internal__/useResizeObserver/useResizeObserver.js";import f from"../../../../hooks/__internal__/useLocale/useLocale.js";import d from"../../../../hooks/__internal__/usePrevious/index.js";import p from"../../../icon/icon.component.js";import"../../../icon/icon.style.js";import{useTabs as h}from"../__internal__/contexts/tabs.context.js";import{StyledTabListWrapper as y,StyledTabList as g,StyledScrollButton as m,StyledScrollButtonPlaceholder as v}from"./tab-list.style.js";function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(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){O(e,t,r[t])}))}return e}const _=n(((n,O)=>{var{ariaLabel:_,children:w,onTabChange:x,headerWidth:k}=n,P=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}(n,["ariaLabel","children","onTabChange","headerWidth"]);const L=o(null),{activeTab:$,focusIndex:A,orientation:S,setFocusIndex:z,setActiveTab:T,size:D}=h(),I=o(u()),E=o(u()),W=o(u()),C=f();i(O,(()=>({focusTab:e=>{const t=L.current,r=Array.from(t.querySelectorAll("[role='tab']")).find((t=>t.id===e));r&&(r.focus(),z(e),T(e))}})));const R=l((()=>{const e=L.current;return Array.from(e.querySelectorAll("[role='tab']")).map((e=>e.id)).filter((e=>e))}),[]);a((()=>{if(!$){const e=R()[0];T(e)}}),[$,R,T]);const q=d($);a((()=>{q&&q!==$&&(null==x||x($))}),[$,x,q]);const F=l((e=>{const t=R(),r=t.indexOf(A||$),n=t.length-1;if(-1===r)return;let o=r;switch(e.key){case"Home":o=0;break;case"End":o=n;break;case"ArrowRight":o=(r+1)%t.length;break;case"ArrowLeft":o=(r-1+t.length)%t.length;break;case"ArrowUp":"vertical"===S&&(o=(r-1+t.length)%t.length);break;case"ArrowDown":"vertical"===S&&(o=(r+1)%t.length);break;case"Enter":case" ":return void T($);case"Tab":return void z($);default:return}z(t[o])}),[$,A,R,S,T,z]),[H,K]=c(!1),[U,B]=c(!1),[G,J]=c(!1),M=l((()=>{const e=L.current,t=e.scrollWidth-e.clientWidth-20;K(t>0),B(e.scrollLeft>=20),J(e.scrollLeft<=t)}),[]);b(L,(()=>{M()})),a((()=>{M()}),[M]);const N=e=>{const t=L.current;"left"===e?t.scrollLeft-=200:t.scrollLeft+=200,M()};return e(t,{children:r(y,{$headerWidth:k,$orientation:S,"data-role":"tab-list-wrapper",children:["vertical"!==S&&H?U?e(m,{"data-role":"tab-navigation-button-left",id:`tab-navigation-button-left-${I.current}`,onClick:()=>N("left"),$size:D,tabIndex:-1,title:null===(X=(Y=C.tabs).scrollLeftText)||void 0===X?void 0:X.call(Y),type:"button",children:e(p,{"aria-hidden":!0,type:"chevron_left"})}):e(v,{$size:D}):null,e(g,(Q=j({"aria-label":_,id:`tablist-${W.current}`,onKeyDown:F,onScroll:M,$orientation:S,ref:L,role:"tablist","aria-orientation":"vertical"===S?"vertical":"horizontal",tabIndex:-1},s("tab-list",P)),V={children:w},V=null!=V?V:{},Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(V)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(V)).forEach((function(e){Object.defineProperty(Q,e,Object.getOwnPropertyDescriptor(V,e))})),Q)),(()=>{var t,r;return"vertical"!==S&&H?G?e(m,{"data-role":"tab-navigation-button-right",id:`tab-navigation-button-right-${E.current}`,onClick:()=>N("right"),$size:D,tabIndex:-1,title:null===(t=(r=C.tabs).scrollRightText)||void 0===t?void 0:t.call(r),type:"button",children:e(p,{"aria-hidden":!0,type:"chevron_right"})}):e(v,{$size:D}):null})()]})});var Q,V,X,Y}));export{_ as TabList,_ as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface StyledTabListProps {
|
|
2
|
+
$orientation?: "horizontal" | "vertical";
|
|
3
|
+
}
|
|
4
|
+
export declare const StyledTabList: import("styled-components").StyledComponent<"div", any, StyledTabListProps, never>;
|
|
5
|
+
interface StyledTabListWrapperProps {
|
|
6
|
+
$orientation?: "horizontal" | "vertical";
|
|
7
|
+
$headerWidth?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const StyledTabListWrapper: import("styled-components").StyledComponent<"div", any, StyledTabListWrapperProps, never>;
|
|
10
|
+
interface StyledScrollButtonProps {
|
|
11
|
+
$size: "medium" | "large";
|
|
12
|
+
}
|
|
13
|
+
export declare const StyledScrollButton: import("styled-components").StyledComponent<"button", any, StyledScrollButtonProps, never>;
|
|
14
|
+
export declare const StyledScrollButtonPlaceholder: import("styled-components").StyledComponent<"div", any, StyledScrollButtonProps, never>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{css as e}from"styled-components";import{sizes as o}from"../tab/tab.style.js";const i=t.div.withConfig({displayName:"tab-list.style__StyledTabList",componentId:"carbon_v164_2_1__sc-2a5460bb-0"})(["",""],(({$orientation:t})=>e(["display:flex;width:100%;overflow-x:hidden;align-items:",";",""],"vertical"===t?"stretch":"end","vertical"===t&&e(["flex-direction:column;flex-wrap:wrap;"])))),r=t.div.withConfig({displayName:"tab-list.style__StyledTabListWrapper",componentId:"carbon_v164_2_1__sc-2a5460bb-1"})(["display:flex;z-index:6;position:relative;",";"],(({$headerWidth:t,$orientation:o})=>e(["",' ::after{content:"";pointer-events:none;position:absolute;inset:0;border-bottom:var(--global-borderwidth-s) solid var(--tab-border-default);}',""],t&&`width: ${t};`,"vertical"===o&&e(["::after{border-right:var(--global-borderwidth-s) solid var(--tab-border-default);border-bottom:none;}"])))),a=t.button.withConfig({displayName:"tab-list.style__StyledScrollButton",componentId:"carbon_v164_2_1__sc-2a5460bb-2"})(["",""],(({$size:t})=>e(["cursor:pointer;min-height:",";min-width:",';background:var(--tab-nav-bg-default);border-radius:var(--global-radius-action-m) var(--global-radius-action-m) var(--global-radius-none) var(--global-radius-none);border:none;position:relative;z-index:2;::before{content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;border-bottom:var(--global-borderwidth-s) solid var(--tab-border-default);}'],o[t].minHeight,o[t].minHeight))),n=t.div.withConfig({displayName:"tab-list.style__StyledScrollButtonPlaceholder",componentId:"carbon_v164_2_1__sc-2a5460bb-3"})(["",""],(({$size:t})=>e(["min-height:",";min-width:",';position:relative;::before{content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;border-bottom:var(--global-borderwidth-s) solid var(--tab-border-default);}'],o[t].minHeight,o[t].minHeight)));export{a as StyledScrollButton,n as StyledScrollButtonPlaceholder,i as StyledTabList,r as StyledTabListWrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{TabPanel as default}from"./tab-panel.component.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TagProps } from "../../../../__internal__/utils/helpers/tags";
|
|
3
|
+
export interface TabPanelProps extends TagProps {
|
|
4
|
+
/** The content to be shown in the tab panel */
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The ID of the tab panel */
|
|
7
|
+
id: string;
|
|
8
|
+
/** The ID of the controlling tab */
|
|
9
|
+
tabId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TabPanel: ({ children, id, tabId, ...rest }: TabPanelProps) => React.JSX.Element;
|
|
12
|
+
export default TabPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import"react";import t from"../../../../__internal__/utils/helpers/tags/tags.js";import{useTabs as r}from"../__internal__/contexts/tabs.context.js";import{TabProvider as n}from"../__internal__/contexts/tab.context.js";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(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){o(e,t,r[t])}))}return e}const i=o=>{var{children:i,id:l,tabId:a}=o,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(o,["children","id","tabId"]);const{activeTab:p}=r();return e(n,{tabId:a,visible:a===p,children:e("div",(s=c({id:l,role:"tabpanel","aria-labelledby":a},t("tab-panel",b)),f={children:i},f=null!=f?f:{},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(f)).forEach((function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(f,e))})),s))});var s,f};export{i as TabPanel,i as default};
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
3
|
+
export interface TabsProps extends TagProps {
|
|
4
|
+
/** The tab list to be rendered within this set of tabs */
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** The label associated with this set of tabs, for assistive technologies */
|
|
7
|
+
labelledBy?: string;
|
|
8
|
+
/** The orientation of the tabs */
|
|
9
|
+
orientation?: "horizontal" | "vertical";
|
|
10
|
+
/** The pre-selected tab to show e.g when restoring from URL */
|
|
11
|
+
selectedTabId?: string;
|
|
12
|
+
/** The size of the tabs to use */
|
|
13
|
+
size?: "medium" | "large";
|
|
14
|
+
}
|
|
6
15
|
export declare const Tabs: ({ children, labelledBy, orientation, selectedTabId, size, ...rest }: TabsProps) => React.JSX.Element;
|
|
7
16
|
export default Tabs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useRef as t}from"react";import r from"../../../__internal__/utils/helpers/tags/tags.js";import n from"../../../__internal__/utils/helpers/guid/index.js";import{TabsProvider as o}from"./__internal__/contexts/tabs.context.js";import{StyledTabs as i}from"./tabs.style.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}function c(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}const a=l=>{var{children:a,labelledBy:s="",orientation:b="horizontal",selectedTabId:u,size:p="medium"}=l,f=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}(l,["children","labelledBy","orientation","selectedTabId","size"]);const O=t(n());return e(o,{labelledBy:s,orientation:b,selectedTabId:u,size:p,children:e(i,(y=c({id:`tabs-container-${O.current}`,$orientation:b},r("tabs",f)),m={children:a},m=null!=m?m:{},Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(m)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(m)).forEach((function(e){Object.defineProperty(y,e,Object.getOwnPropertyDescriptor(m,e))})),y))});var y,m};export{a as Tabs,a as default};
|
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
import { TabProps } from "./tabs.types";
|
|
2
|
-
export declare const TAB_LIST_FOCUS_PADDING = 6;
|
|
3
|
-
interface StyledTabListProps {
|
|
4
|
-
$orientation: "horizontal" | "vertical";
|
|
5
|
-
$scrollRequired: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const StyledTabPanel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const StyledTabList: import("styled-components").StyledComponent<"div", any, StyledTabListProps, never>;
|
|
9
|
-
export declare const StyledTabListWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
-
$headerWidth?: string;
|
|
11
|
-
}, never>;
|
|
12
|
-
export declare const Spacer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const StyledScrollButton: import("styled-components").StyledComponent<"button", any, {
|
|
14
|
-
$size: "medium" | "large";
|
|
15
|
-
}, never>;
|
|
16
|
-
export declare const StyledScrollButtonPlaceholder: import("styled-components").StyledComponent<"div", any, {
|
|
17
|
-
$size: "medium" | "large";
|
|
18
|
-
}, never>;
|
|
19
|
-
interface StyledTabProps extends Omit<TabProps, "controls" | "index" | "label"> {
|
|
20
|
-
activeTab: boolean;
|
|
21
|
-
error?: string | boolean;
|
|
22
|
-
warning?: string | boolean;
|
|
23
|
-
$orientation: "horizontal" | "vertical";
|
|
24
|
-
$size: "medium" | "large";
|
|
25
|
-
$hasCustomLayout?: boolean;
|
|
26
|
-
$headerWidth?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const StyledTab: import("styled-components").StyledComponent<"button", any, StyledTabProps, never>;
|
|
29
1
|
export declare const StyledTabs: import("styled-components").StyledComponent<"div", any, {
|
|
30
2
|
$orientation?: "horizontal" | "vertical";
|
|
31
3
|
}, never>;
|
|
32
4
|
export declare const StyledTabProvider: import("styled-components").StyledComponent<"div", any, {
|
|
33
|
-
visible: boolean;
|
|
5
|
+
$visible: boolean;
|
|
34
6
|
}, never>;
|
|
35
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o,{css as e}from"styled-components";const i=o.div.withConfig({displayName:"tabs.style__StyledTabs",componentId:"carbon_v164_2_1__sc-3aeb12b6-0"})(["display:flex;",""],(({$orientation:o})=>e(["flex-direction:",";"],"horizontal"===o?"column":"row"))),t=o.div.withConfig({displayName:"tabs.style__StyledTabProvider",componentId:"carbon_v164_2_1__sc-3aeb12b6-1"})(["",""],(({$visible:o})=>e(["display:",";"],o?"block":"none")));export{t as StyledTabProvider,i as StyledTabs};
|
|
@@ -8,6 +8,9 @@ export type TabsHandle = {
|
|
|
8
8
|
*/
|
|
9
9
|
focusTab: (tabId: string) => void;
|
|
10
10
|
} | null;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated This version of `Tab` is intended to help migration to the `next` version and will be removed in a future release.
|
|
13
|
+
*/
|
|
11
14
|
export interface TabProps extends PaddingProps, TagProps, Partial<NextTabProps> {
|
|
12
15
|
/**
|
|
13
16
|
* The title of the Tab.
|
|
@@ -86,6 +89,9 @@ export interface TabProps extends PaddingProps, TagProps, Partial<NextTabProps>
|
|
|
86
89
|
/** @private @ignore @internal */
|
|
87
90
|
headerWidth?: string;
|
|
88
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated This version of `Tab` is intended to help migration to the `next` version and will be removed in a future release.
|
|
94
|
+
*/
|
|
89
95
|
export declare const Tab: {
|
|
90
96
|
({ tabId, title, customLayout, siblings, titlePosition, validationStatusOverride, errorMessage, warningMessage, infoMessage, titleProps, controls, id, label, error, warning, info, ...rest }: TabProps): React.JSX.Element | null;
|
|
91
97
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import"react";import"../__next__/tabs.style.js";import"../../../__internal__/i18n-context/index.js";import"../../icon/icon.component.js";import"../../icon/icon.style.js";import"../__next__/tab-list/tab-list.style.js";import{Tab as n}from"../__next__/tab/tab.component.js";import o from"../../../__internal__/utils/logger/index.js";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let a=!1;const l=l=>{var{tabId:s,title:c,customLayout:u,siblings:f,titlePosition:b,validationStatusOverride:p,errorMessage:m,warningMessage:g,infoMessage:d,titleProps:y,controls:_,id:O,label:j,error:v,warning:w,info:h}=l,x=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}(l,["tabId","title","customLayout","siblings","titlePosition","validationStatusOverride","errorMessage","warningMessage","infoMessage","titleProps","controls","id","label","error","warning","info"]);a||(o.warn("Warning: This version of the `Tab` component is intended to help migration to the `next` version and will be removed in a future release."),a=!0);let P="";if(j)P=j;else if(u)P=u;else if(P=c,f){const n=e("span",{children:j||c});P=t(r,"after"===b?{children:[f,n]}:{children:[n,f]})}const{error:M,warning:S,info:T}=p||{},I=O||s;return I?e(n,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){i(e,t,r[t])}))}return e}({id:I,controls:_||`${I}-panel`,label:P,error:v||M,warning:w||S,info:h||T,hasCustomLayout:!!u,"data-role":null==y?void 0:y["data-role"]},x)):null};l.displayName="Tab";export{l as Tab,l as default};
|
|
@@ -7,6 +7,9 @@ export type TabsHandle = {
|
|
|
7
7
|
*/
|
|
8
8
|
focusTab: (tabId: string) => void;
|
|
9
9
|
} | null;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated This version of `Tabs` is intended to help migration to the `next` version and will be removed in a future release.
|
|
12
|
+
*/
|
|
10
13
|
export interface TabsProps extends MarginProps, TagProps {
|
|
11
14
|
/**
|
|
12
15
|
* Prevent rendering of hidden tabs, by default this is set to true and therefore all tabs will be rendered
|
|
@@ -69,5 +72,8 @@ export interface TabsProps extends MarginProps, TagProps {
|
|
|
69
72
|
*/
|
|
70
73
|
showValidationsSummary?: boolean;
|
|
71
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated This version of `Tabs` is intended to help migration to the `next` version and will be removed in a future release.
|
|
77
|
+
*/
|
|
72
78
|
export declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<TabsHandle>>;
|
|
73
79
|
export default Tabs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import r,{forwardRef as n,useMemo as o,useState as i,useEffect as a,createElement as s}from"react";import{Tabs as l}from"./__next__/tabs.component.js";import{TabList as p}from"./__next__/tab-list/tab-list.component.js";import c from"../../__internal__/utils/logger/index.js";import"../../__internal__/i18n-context/index.js";import"../icon/icon.component.js";import"../icon/icon.style.js";import d from"../../hooks/__internal__/usePrevious/index.js";import"./__next__/tabs.style.js";import"./__next__/tab/tab.style.js";import{TabPanel as b}from"./__next__/tab-panel/tab-panel.component.js";import{Tab as u}from"./tab/tab.component.js";import m from"../drawer/__internal__/drawer-sidebar.context.js";function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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){f(e,t,r[t])}))}return e}function h(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}let O=!1;const j=n(((n,f)=>{var j,y,{children:g,selectedTabId:v,onTabChange:w,position:T="top",size:x="default",validationStatusOverride:P,align:I,headerWidth:S,renderHiddenTabs:W=!0}=n,E=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}(n,["children","selectedTabId","onTabChange","position","size","validationStatusOverride","align","headerWidth","renderHiddenTabs"]);O||(c.warn("Warning: This version of the `Tabs` component is intended to help migration to the `next` version and will be removed in a future release."),O=!0);const k=o((()=>{const e=[];return r.Children.forEach(g,(t=>{r.isValidElement(t)&&e.push({props:t.props})})),e}),[g]),[C,z]=i(v||(null===(j=k[0])||void 0===j?void 0:j.props.id)||(null===(y=k[0])||void 0===y?void 0:y.props.tabId)),D="default"===x?"medium":"large",{isInSidebar:H}=r.useContext(m),$=H||"left"===T?"vertical":"horizontal",q=W?k:k.filter((({props:e})=>e.isTabSelected||e.tabId===C)),L=d(v);return a((()=>{v!==L&&v!==C&&z(v)}),[v,L,C]),e(l,h(_({orientation:$,selectedTabId:C,size:D},E),{children:[t(p,{ref:f,ariaLabel:"Tabs",onTabChange:e=>{z(e),null==w||w(e)},headerWidth:H?"100%":void 0,children:k.map((({props:e})=>{const t=e.id||e.tabId;return t?s(u,h(_({headerWidth:H?"100%":S},e),{key:t})):(c.warn("Warning: Tab component is missing a unique identifier. Please provide an `id` prop to ensure proper functionality."),null)}))}),!H&&q.map((({props:e})=>{const r=e.id||e.tabId;return r?t(b,{id:`${r}-panel`,tabId:r,children:e.children},`${r}-panel`):(c.warn("Warning: Each `Tab` component must have an `id` or `tabId` prop to associate it with a TabPanel."),null)}))]}))}));j.displayName="Tabs";export{j as Tabs,j as default};
|
package/esm/components/text-editor/__internal__/__ui__/CharacterCounter/character-counter.style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{css as a}from"styled-components";import o from"../../../../../style/utils/visually-hidden.js";const r={small:"var(--global-font-static-comp-regular-s)",medium:"var(--global-font-static-comp-regular-m)",large:"var(--global-font-static-comp-regular-l)"},e=t.div.withConfig({displayName:"character-counter.style__StyledCharacterCounter",componentId:"
|
|
1
|
+
import t,{css as a}from"styled-components";import o from"../../../../../style/utils/visually-hidden.js";const r={small:"var(--global-font-static-comp-regular-s)",medium:"var(--global-font-static-comp-regular-m)",large:"var(--global-font-static-comp-regular-l)"},e=t.div.withConfig({displayName:"character-counter.style__StyledCharacterCounter",componentId:"carbon_v164_2_1__sc-12917643-0"})(["",""],(({size:t})=>a(["font:",";color:var(--input-typical-txt-alt);"],r[t]))),l=t.div.withConfig({displayName:"character-counter.style__VisuallyHiddenCharacterCounter",componentId:"carbon_v164_2_1__sc-12917643-1"})(['::after{content:" ";}',""],o);export{e as StyledCharacterCounter,l as VisuallyHiddenCharacterCounter,e as default};
|
package/esm/components/text-editor/__internal__/__ui__/ContentEditor/content-editor.style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{css as o}from"styled-components";import e from"../../../../../style/utils/add-focus-styling.js";const r={small:{font:"var(--global-font-static-comp-regular-s)",padding:"var(--global-space-comp-s)",previewGap:"var(--global-space-comp-xs)"},medium:{font:"var(--global-font-static-comp-regular-m)",padding:"var(--global-space-comp-m)",previewGap:"var(--global-space-comp-s)"},large:{font:"var(--global-font-static-comp-regular-l)",padding:"var(--global-space-comp-l)",previewGap:"var(--global-space-comp-m)"}},i=a.div.withConfig({displayName:"content-editor.style__StyledContentEditable",componentId:"
|
|
1
|
+
import a,{css as o}from"styled-components";import e from"../../../../../style/utils/add-focus-styling.js";const r={small:{font:"var(--global-font-static-comp-regular-s)",padding:"var(--global-space-comp-s)",previewGap:"var(--global-space-comp-xs)"},medium:{font:"var(--global-font-static-comp-regular-m)",padding:"var(--global-space-comp-m)",previewGap:"var(--global-space-comp-s)"},large:{font:"var(--global-font-static-comp-regular-l)",padding:"var(--global-space-comp-l)",previewGap:"var(--global-space-comp-m)"}},i=a.div.withConfig({displayName:"content-editor.style__StyledContentEditable",componentId:"carbon_v164_2_1__sc-a3aee21d-0"})(["",""],(({error:a,namespace:i,rows:t,readOnly:l,size:d,hasFooter:n})=>o([""," .","-editable{min-height:","px;"," padding:",";"," "," &:focus{","}& > p:first-of-type{margin:0;}& > p{line-height:150%;}}"],l&&o(["font:",";padding:",";p:first-of-type{margin:0;}"],r[d].font,r[d].padding),i,t&&t>2?21*t:210,l&&o(["border-radius:var(--global-radius-container-m);"]),r[d].padding,!n&&o(["border-bottom-right-radius:var(--global-radius-container-m);border-bottom-left-radius:var(--global-radius-container-m);"]),a&&o(["border:var(--global-borderwidth-s) solid var(--input-validation-border-error);"]),e()))),t=a.div.withConfig({displayName:"content-editor.style__StyledPreviewContainer",componentId:"carbon_v164_2_1__sc-a3aee21d-1"})(["",";"],(({$size:a})=>o(["display:flex;flex-direction:column;gap:",";padding:",";"],r[a].previewGap,r[a].padding)));export{t as StyledPreviewContainer,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{css as a}from"styled-components";const e=o.div.withConfig({displayName:"mentions.style__TypeaheadPopover",componentId:"
|
|
1
|
+
import o,{css as a}from"styled-components";const e=o.div.withConfig({displayName:"mentions.style__TypeaheadPopover",componentId:"carbon_v164_2_1__sc-742f32ff-0"})(["background:var(--popover-bg-default);box-shadow:var(--global-depth-lvl1);border-radius:var(--global-radius-action-m);position:relative;top:","px;left:","px;width:250px;"],(({parentOffsetTop:o})=>-o),(({parentOffsetLeft:o})=>-o)),l={small:{listPadding:"var(--global-space-comp-xs) 0",listItemFont:"var(--global-font-static-comp-regular-s)",listItemPadding:"var(--global-space-comp-xs) var(--global-space-comp-m) var(--global-space-comp-xs) var(--global-size-2-xs)",listItemMinHeight:"var(--global-size-s)",textMarginLeft:"var(--global-space-comp-2-xs)"},medium:{listPadding:"var(--global-space-comp-s) 0",listItemFont:"var(--global-font-static-comp-regular-m)",listItemPadding:"var(--global-space-comp-s) var(--global-space-comp-m) var(--global-space-comp-s) var(--global-space-comp-xl)",listItemMinHeight:"var(--global-size-m)",textMarginLeft:"var(--global-space-comp-xs)"},large:{listPadding:"var(--global-space-comp-m) 0",listItemFont:"var(--global-font-static-comp-regular-l)",listItemPadding:"var(--global-space-comp-m) var(--global-space-comp-m) var(--global-space-comp-m) var(--global-space-comp-xl)",listItemMinHeight:"var(--global-size-l)",textMarginLeft:"var(--global-space-comp-xs)"}},t=o.ul.withConfig({displayName:"mentions.style__MentionsList",componentId:"carbon_v164_2_1__sc-742f32ff-1"})(["padding:",";list-style:none;margin:0;border-radius:var(--global-radius-container-m);max-height:200px;overflow-y:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],(({$size:o})=>l[o].listPadding)),i=o.li.withConfig({displayName:"mentions.style__MentionsListItem",componentId:"carbon_v164_2_1__sc-742f32ff-2"})(["",";"],(({$size:o})=>a(["box-sizing:border-box;padding:",";min-height:",";color:var(--input-dropdown-label-default);cursor:pointer;font:",";display:flex;align-items:center;flex-direction:row;background-color:var(--popover-bg-default);&:hover{color:var(--popover-label-hover);}&.selected{background:var(--popover-bg-hover);color:var(--popover-label-hover);}.text{display:flex;flex-grow:1;min-width:150px;margin-left:",';align-items:center;white-space:pre;}div[data-component="portrait"]{color:var(--input-dropdown-label-default);font:var(--profile-font-initials-xs);min-width:var(--profile-size-outside-xs);height:var(--profile-size-outside-xs);overflow:hidden;border-radius:var(--global-radius-container-circle);border:none;box-shadow:inset 0 0 0 var(--global-borderwidth-xs) var(--profile-border-default);display:inline-block;[data-element="initials"],[data-component="icon"]{color:var(--input-dropdown-label-default);}}'],l[o].listItemPadding,l[o].listItemMinHeight,l[o].listItemFont,l[o].textMarginLeft)));export{t as MentionsList,i as MentionsListItem,e as TypeaheadPopover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"styled-components";const t=e.div.withConfig({displayName:"placeholder.style__StyledPlaceholder",componentId:"
|
|
1
|
+
import e from"styled-components";const t=e.div.withConfig({displayName:"placeholder.style__StyledPlaceholder",componentId:"carbon_v164_2_1__sc-ebc3eff5-0"})(["pointer-events:none;position:absolute;top:12px;color:var(--input-typical-txt-alt);left:14px;user-select:none;"]);export{t as default};
|
package/esm/components/text-editor/__internal__/__ui__/Toolbar/button-group/button-group.style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"styled-components";const e=o.div.withConfig({displayName:"button-group.style__StyledButtonGroup",componentId:"
|
|
1
|
+
import o from"styled-components";const e=o.div.withConfig({displayName:"button-group.style__StyledButtonGroup",componentId:"carbon_v164_2_1__sc-9b30eeea-0"})(["display:flex;flex-direction:row;gap:var(--global-space-comp-s);align-items:center;.button-group-divider{width:1px;background-color:var(--container-standard-border-default);min-height:var(--global-size-s);}"]);export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{css as t}from"styled-components";import e from"../../../../../../../style/utils/add-focus-styling.js";const a={small:{buttonFont:"var(--global-font-static-comp-medium-s)",buttonHeight:"var(--global-size-s)",dropdownTop:"36px",dropdownPadding:"var(--global-space-comp-xs)",itemHeight:"var(--global-size-s)",itemFont:"var(--global-font-static-comp-regular-s)"},medium:{buttonFont:"var(--global-font-static-comp-medium-m)",buttonHeight:"var(--global-size-m)",dropdownTop:"44px",dropdownPadding:"var(--global-space-comp-s)",itemHeight:"var(--global-size-m)",itemFont:"var(--global-font-static-comp-regular-m)"},large:{buttonFont:"var(--global-font-static-comp-medium-l)",buttonHeight:"var(--global-size-l)",dropdownTop:"52px",dropdownPadding:"var(--global-space-comp-m)",itemHeight:"var(--global-size-l)",itemFont:"var(--global-font-static-comp-regular-l)"}},n=o.button.withConfig({displayName:"dropdown.style__StyledButton",componentId:"
|
|
1
|
+
import o,{css as t}from"styled-components";import e from"../../../../../../../style/utils/add-focus-styling.js";const a={small:{buttonFont:"var(--global-font-static-comp-medium-s)",buttonHeight:"var(--global-size-s)",dropdownTop:"36px",dropdownPadding:"var(--global-space-comp-xs)",itemHeight:"var(--global-size-s)",itemFont:"var(--global-font-static-comp-regular-s)"},medium:{buttonFont:"var(--global-font-static-comp-medium-m)",buttonHeight:"var(--global-size-m)",dropdownTop:"44px",dropdownPadding:"var(--global-space-comp-s)",itemHeight:"var(--global-size-m)",itemFont:"var(--global-font-static-comp-regular-m)"},large:{buttonFont:"var(--global-font-static-comp-medium-l)",buttonHeight:"var(--global-size-l)",dropdownTop:"52px",dropdownPadding:"var(--global-space-comp-m)",itemHeight:"var(--global-size-l)",itemFont:"var(--global-font-static-comp-regular-l)"}},n=o.button.withConfig({displayName:"dropdown.style__StyledButton",componentId:"carbon_v164_2_1__sc-96f98e55-0"})(["",""],(({size:o,menuOpen:n})=>t(["width:100%;height:",";display:flex;justify-content:space-between;align-items:center;border:none;background:transparent;border-radius:var(--global-radius-action-m);cursor:pointer;padding:0 var(--global-space-comp-xs);color:var(--button-typical-toggle-label-default);font:",";"," &:focus{","}"],a[o].buttonHeight,a[o].buttonFont,n&&t(["",""],e()),e()))),l=o.ul.withConfig({displayName:"dropdown.style__StyledMenu",componentId:"carbon_v164_2_1__sc-96f98e55-1"})(["",""],(({size:o})=>t(["position:absolute;top:",";left:0;z-index:1;background:var(--popover-bg-default);border-radius:var(--global-radius-container-m);box-shadow:var(--global-depth-lvl1);list-style:none;margin:0;padding:"," 0;width:100%;overflow-y:auto;"],a[o].dropdownTop,a[o].dropdownPadding))),r=o.li.withConfig({displayName:"dropdown.style__StyledMenuItem",componentId:"carbon_v164_2_1__sc-96f98e55-2"})(["",""],(({size:o})=>t(["display:flex;align-items:center;box-sizing:border-box;min-height:",";padding:"," var(--global-space-comp-xl);cursor:pointer;user-select:none;color:var(--input-dropdown-label-default);font:",";&:hover{background-color:var(--input-dropdown-bg-hover);color:var(--input-dropdown-label-hover);}&:focus-visible{box-shadow:inset 0px 0px 0px var(--global-borderwidth-s) var(--focus-borderalt);outline:none;}"],a[o].itemHeight,a[o].dropdownPadding,a[o].itemFont)));export{n as StyledButton,l as StyledMenu,r as StyledMenuItem};
|