carbon-react 119.10.0 → 119.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__internal__/character-count/character-count.component.js +6 -7
- package/esm/__internal__/character-count/character-count.style.js +7 -13
- package/esm/__internal__/checkable-input/checkable-input.component.js +31 -32
- package/esm/__internal__/checkable-input/checkable-input.style.js +9 -12
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +13 -14
- package/esm/__internal__/field-help/field-help.component.js +11 -14
- package/esm/__internal__/field-help/field-help.style.js +5 -8
- package/esm/__internal__/fieldset/fieldset.component.js +32 -36
- package/esm/__internal__/fieldset/fieldset.style.js +11 -17
- package/esm/__internal__/focus-trap/focus-trap.component.js +10 -11
- package/esm/__internal__/form-field/form-field.component.js +31 -32
- package/esm/__internal__/form-field/form-field.style.js +4 -7
- package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.js +8 -11
- package/esm/__internal__/full-screen-heading/full-screen-heading.style.js +4 -7
- package/esm/__internal__/input/input-presentation.component.js +15 -16
- package/esm/__internal__/input/input-presentation.style.js +36 -58
- package/esm/__internal__/input/input.component.js +22 -23
- package/esm/__internal__/input/input.style.js +12 -21
- package/esm/__internal__/input-behaviour/input-behaviour.component.js +3 -4
- package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +4 -5
- package/esm/__internal__/input-icon-toggle/input-icon-toggle.component.js +22 -24
- package/esm/__internal__/input-icon-toggle/input-icon-toggle.style.js +14 -20
- package/esm/__internal__/label/label.component.js +34 -37
- package/esm/__internal__/label/label.style.js +20 -32
- package/esm/__internal__/popover/popover.component.js +10 -11
- package/esm/__internal__/popover/popover.style.js +6 -12
- package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +9 -10
- package/esm/__internal__/sticky-footer/sticky-footer.component.js +6 -7
- package/esm/__internal__/sticky-footer/sticky-footer.style.js +4 -7
- package/esm/__internal__/tooltip-provider/index.js +9 -10
- package/esm/__internal__/validation-message/validation-message.component.js +5 -6
- package/esm/__internal__/validation-message/validation-message.style.js +4 -7
- package/esm/__internal__/validations/validation-icon.component.js +21 -23
- package/esm/__internal__/validations/validation-icon.style.js +7 -13
- package/esm/__spec_helper__/test-utils.js +17 -26
- package/esm/components/accordion/accordion-group/accordion-group.component.js +4 -5
- package/esm/components/accordion/accordion.component.js +26 -27
- package/esm/components/accordion/accordion.style.js +52 -89
- package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +20 -21
- package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +13 -14
- package/esm/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +13 -16
- package/esm/components/action-popover/action-popover.component.js +15 -17
- package/esm/components/action-popover/action-popover.style.js +45 -69
- package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +8 -14
- package/esm/components/advanced-color-picker/advanced-color-picker.component.js +30 -35
- package/esm/components/advanced-color-picker/advanced-color-picker.style.js +8 -14
- package/esm/components/alert/alert.component.js +9 -12
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +17 -20
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +8 -14
- package/esm/components/anchor-navigation/anchor-navigation.component.js +7 -11
- package/esm/components/badge/badge.component.js +6 -7
- package/esm/components/badge/badge.style.js +9 -15
- package/esm/components/batch-selection/batch-selection.component.js +7 -8
- package/esm/components/batch-selection/batch-selection.style.js +6 -9
- package/esm/components/box/box.component.js +39 -60
- package/esm/components/breadcrumbs/breadcrumbs.component.js +4 -5
- package/esm/components/breadcrumbs/crumb/crumb.component.js +14 -17
- package/esm/components/breadcrumbs/crumb/crumb.style.js +4 -7
- package/esm/components/button/button.component.js +36 -38
- package/esm/components/button/button.style.js +22 -32
- package/esm/components/button-bar/button-bar.component.js +17 -20
- package/esm/components/button-bar/button-bar.style.js +5 -8
- package/esm/components/button-minor/button-minor.component.js +7 -8
- package/esm/components/button-minor/button-minor.style.js +19 -31
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.component.js +24 -25
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.style.js +12 -21
- package/esm/components/button-toggle/button-toggle-icon.component.js +15 -18
- package/esm/components/button-toggle/button-toggle.component.js +20 -21
- package/esm/components/button-toggle/button-toggle.style.js +33 -57
- package/esm/components/carbon-provider/carbon-provider.component.js +6 -7
- package/esm/components/carbon-provider/top-modal-context.js +3 -4
- package/esm/components/card/card-column/card-column.component.js +7 -10
- package/esm/components/card/card-column/card-column.style.js +3 -6
- package/esm/components/card/card-footer/card-footer.component.js +6 -7
- package/esm/components/card/card-footer/card-footer.style.js +6 -9
- package/esm/components/card/card-row/card-row.component.js +5 -6
- package/esm/components/card/card-row/card-row.style.js +4 -7
- package/esm/components/card/card.component.js +16 -17
- package/esm/components/card/card.style.js +11 -14
- package/esm/components/carousel/carousel.component.js +11 -12
- package/esm/components/carousel/carousel.style.js +8 -14
- package/esm/components/carousel/slide/slide.style.js +4 -7
- package/esm/components/checkbox/checkbox-group.style.js +8 -14
- package/esm/components/checkbox/checkbox.component.js +35 -36
- package/esm/components/checkbox/checkbox.style.js +14 -17
- package/esm/components/confirm/confirm.component.js +28 -29
- package/esm/components/confirm/confirm.style.js +8 -14
- package/esm/components/content/content.component.js +10 -11
- package/esm/components/content/content.style.js +17 -22
- package/esm/components/date/__internal__/date-formats/index.js +7 -9
- package/esm/components/date/__internal__/date-picker/date-picker.component.js +11 -12
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +3 -6
- package/esm/components/date/__internal__/navbar/navbar.component.js +15 -18
- package/esm/components/date/__internal__/utils.js +1 -3
- package/esm/components/date/__internal__/weekday/weekday.component.js +11 -14
- package/esm/components/date/date.component.js +30 -31
- package/esm/components/date/date.style.js +12 -18
- package/esm/components/date-range/date-range.component.js +15 -16
- package/esm/components/date-range/date-range.style.js +3 -6
- package/esm/components/decimal/decimal.component.js +18 -19
- package/esm/components/definition-list/dd.component.js +4 -5
- package/esm/components/definition-list/definition-list.style.js +13 -22
- package/esm/components/definition-list/dl.component.js +8 -9
- package/esm/components/definition-list/dt.component.js +4 -5
- package/esm/components/detail/detail.component.js +18 -21
- package/esm/components/detail/detail.style.js +8 -14
- package/esm/components/dialog/dialog.component.js +22 -23
- package/esm/components/dialog/dialog.style.js +28 -52
- package/esm/components/dialog-full-screen/content.style.js +12 -21
- package/esm/components/dialog-full-screen/dialog-full-screen.component.js +24 -25
- package/esm/components/dialog-full-screen/dialog-full-screen.style.js +7 -13
- package/esm/components/dismissible-box/dismissible-box.component.js +19 -22
- package/esm/components/dismissible-box/dismissible-box.style.js +5 -8
- package/esm/components/draggable/draggable-container.component.js +5 -6
- package/esm/components/draggable/draggable-item.component.js +8 -9
- package/esm/components/draggable/draggable-item.style.js +3 -6
- package/esm/components/draggable/internal/drop-target.component.js +5 -6
- package/esm/components/drawer/drawer.component.js +17 -18
- package/esm/components/drawer/drawer.style.js +40 -70
- package/esm/components/duelling-picklist/duelling-picklist.component.js +9 -10
- package/esm/components/duelling-picklist/duelling-picklist.style.js +4 -7
- package/esm/components/duelling-picklist/picklist/picklist.component.js +6 -7
- package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +10 -11
- package/esm/components/duelling-picklist/picklist-group/picklist-group.style.js +9 -15
- package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +14 -15
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +8 -14
- package/esm/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +5 -8
- package/esm/components/fieldset/fieldset.component.js +6 -7
- package/esm/components/fieldset/fieldset.style.js +7 -13
- package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +4 -5
- package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +10 -12
- package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +4 -7
- package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.js +18 -19
- package/esm/components/flat-table/flat-table-cell/flat-table-cell.style.js +18 -24
- package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +13 -14
- package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +7 -10
- package/esm/components/flat-table/flat-table-head/flat-table-head.component.js +4 -5
- package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +14 -15
- package/esm/components/flat-table/flat-table-header/flat-table-header.style.js +13 -16
- package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +6 -7
- package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +22 -23
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +25 -26
- package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +18 -19
- package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +17 -23
- package/esm/components/flat-table/flat-table.component.js +17 -18
- package/esm/components/flat-table/flat-table.style.js +67 -111
- package/esm/components/flat-table/sort/sort.component.js +5 -6
- package/esm/components/form/__internal__/form-summary.component.js +9 -11
- package/esm/components/form/__internal__/form-summary.style.js +24 -42
- package/esm/components/form/form.component.js +17 -18
- package/esm/components/form/form.style.js +37 -64
- package/esm/components/global-header/global-header.component.js +5 -6
- package/esm/components/grid/grid-item/grid-item.style.js +16 -19
- package/esm/components/grouped-character/grouped-character.component.js +13 -15
- package/esm/components/heading/heading.component.js +16 -17
- package/esm/components/heading/heading.style.js +18 -30
- package/esm/components/help/help.component.js +17 -18
- package/esm/components/help/help.style.js +4 -7
- package/esm/components/hr/hr.component.js +6 -7
- package/esm/components/i18n-provider/i18n-provider.component.js +6 -9
- package/esm/components/icon/icon.component.js +26 -27
- package/esm/components/icon/icon.style.js +12 -13
- package/esm/components/icon-button/icon-button.component.js +8 -9
- package/esm/components/icon-button/icon-button.style.js +4 -7
- package/esm/components/image/image.component.js +7 -8
- package/esm/components/image/image.style.js +16 -22
- package/esm/components/inline-inputs/inline-inputs.component.js +14 -15
- package/esm/components/inline-inputs/inline-inputs.style.js +20 -38
- package/esm/components/link/link.component.js +22 -24
- package/esm/components/link/link.style.js +10 -11
- package/esm/components/link-preview/__internal__/placeholder.component.js +9 -18
- package/esm/components/link-preview/link-preview.component.js +10 -11
- package/esm/components/link-preview/link-preview.style.js +8 -14
- package/esm/components/loader/loader-square.style.js +7 -10
- package/esm/components/loader/loader.component.js +7 -8
- package/esm/components/loader/loader.config.d.ts +1 -1
- package/esm/components/loader-bar/loader-bar.component.js +4 -5
- package/esm/components/loader-bar/loader-bar.style.js +8 -14
- package/esm/components/menu/__internal__/spec-helper/index.js +1 -2
- package/esm/components/menu/__internal__/submenu/submenu.component.js +18 -19
- package/esm/components/menu/__internal__/submenu/submenu.style.js +20 -29
- package/esm/components/menu/menu-divider/menu-divider.component.js +4 -5
- package/esm/components/menu/menu-divider/menu-divider.style.js +5 -8
- package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +7 -8
- package/esm/components/menu/menu-full-screen/menu-full-screen.style.js +11 -17
- package/esm/components/menu/menu-item/menu-item.component.js +22 -23
- package/esm/components/menu/menu-item/menu-item.style.js +17 -20
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +5 -6
- package/esm/components/menu/menu-segment-title/menu-segment-title.style.js +5 -8
- package/esm/components/menu/menu.component.js +5 -6
- package/esm/components/menu/menu.style.js +12 -21
- package/esm/components/menu/scrollable-block/scrollable-block.component.js +8 -9
- package/esm/components/menu/scrollable-block/scrollable-block.style.js +5 -8
- package/esm/components/message/message-content/message-content.component.js +5 -6
- package/esm/components/message/message-content/message-content.style.js +3 -6
- package/esm/components/message/message.component.js +13 -14
- package/esm/components/message/message.style.js +7 -13
- package/esm/components/message/type-icon/type-icon.component.js +4 -5
- package/esm/components/message/type-icon/type-icon.style.js +8 -14
- package/esm/components/modal/__internal__/modal-manager.js +4 -8
- package/esm/components/modal/modal.component.js +10 -11
- package/esm/components/modal/modal.style.js +13 -22
- package/esm/components/multi-action-button/multi-action-button.component.js +14 -15
- package/esm/components/multi-action-button/multi-action-button.style.js +16 -25
- package/esm/components/navigation-bar/fixed-navigation-bar.context.js +7 -8
- package/esm/components/navigation-bar/navigation-bar.component.js +11 -12
- package/esm/components/navigation-bar/navigation-bar.style.js +12 -18
- package/esm/components/note/__internal__/status-icon/status-icon.component.js +4 -5
- package/esm/components/note/note.component.js +12 -13
- package/esm/components/note/note.style.js +19 -34
- package/esm/components/number/number.component.js +7 -8
- package/esm/components/numeral-date/numeral-date.component.js +36 -37
- package/esm/components/numeral-date/numeral-date.style.js +7 -8
- package/esm/components/pager/__internal__/pager-navigation-link.component.js +9 -10
- package/esm/components/pager/__internal__/pager-navigation.component.js +16 -17
- package/esm/components/pager/pager.component.js +41 -39
- package/esm/components/pager/pager.style.js +8 -14
- package/esm/components/pages/page/page.component.js +6 -7
- package/esm/components/pages/pages.component.js +7 -8
- package/esm/components/password/password.component.js +6 -7
- package/esm/components/pill/pill.component.js +31 -34
- package/esm/components/pill/pill.style.js +11 -12
- package/esm/components/pod/pod.component.js +23 -24
- package/esm/components/pod/pod.style.js +65 -95
- package/esm/components/popover-container/popover-container.component.js +57 -67
- package/esm/components/popover-container/popover-container.style.js +6 -10
- package/esm/components/portal/portal.js +6 -7
- package/esm/components/portrait/portrait-gravatar.component.js +7 -8
- package/esm/components/portrait/portrait-initials.component.js +7 -8
- package/esm/components/portrait/portrait.component.js +20 -21
- package/esm/components/portrait/portrait.style.js +17 -26
- package/esm/components/preview/__internal__/preview-placeholder.component.js +7 -8
- package/esm/components/preview/__internal__/preview-placeholder.style.js +6 -12
- package/esm/components/preview/preview.component.js +6 -7
- package/esm/components/profile/profile.component.js +9 -10
- package/esm/components/profile/profile.style.js +19 -37
- package/esm/components/progress-tracker/progress-tracker.component.js +19 -20
- package/esm/components/progress-tracker/progress-tracker.style.js +42 -62
- package/esm/components/radio-button/radio-button-group.style.js +5 -8
- package/esm/components/radio-button/radio-button.component.js +33 -34
- package/esm/components/radio-button/radio-button.style.js +8 -11
- package/esm/components/search/search-button.style.js +3 -6
- package/esm/components/search/search.component.js +26 -27
- package/esm/components/search/search.style.js +10 -11
- package/esm/components/select/__internal__/select-text/select-text.component.d.ts +1 -4
- package/esm/components/select/__internal__/select-text/select-text.component.js +10 -17
- package/esm/components/select/__internal__/select-text/select-text.style.js +8 -11
- package/esm/components/select/filterable-select/filterable-select.component.js +40 -42
- package/esm/components/select/list-action-button/list-action-button.component.js +4 -5
- package/esm/components/select/multi-select/multi-select.component.js +39 -40
- package/esm/components/select/multi-select/multi-select.style.js +6 -12
- package/esm/components/select/option/option.component.d.ts +2 -2
- package/esm/components/select/option/option.component.js +12 -13
- package/esm/components/select/option/option.style.js +7 -13
- package/esm/components/select/option-group-header/option-group-header.component.js +6 -7
- package/esm/components/select/option-row/option-row.component.js +11 -12
- package/esm/components/select/option-row/option-row.style.js +7 -13
- package/esm/components/select/select-list/select-list-container.style.js +9 -18
- package/esm/components/select/select-list/select-list.component.js +30 -32
- package/esm/components/select/select-list/select-list.style.js +10 -19
- package/esm/components/select/select-textbox/select-textbox.component.js +66 -98
- package/esm/components/select/select.style.js +9 -12
- package/esm/components/select/simple-select/simple-select.component.js +36 -37
- package/esm/components/select/utils/get-next-child-by-text.js +1 -2
- package/esm/components/select/utils/with-filter.hoc.js +9 -10
- package/esm/components/settings-row/settings-row.component.js +9 -10
- package/esm/components/settings-row/settings-row.style.js +4 -7
- package/esm/components/show-edit-pod/show-edit-pod.component.js +24 -25
- package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +11 -14
- package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +4 -7
- package/esm/components/sidebar/sidebar.component.js +22 -23
- package/esm/components/sidebar/sidebar.style.js +10 -13
- package/esm/components/simple-color-picker/simple-color/simple-color.style.js +11 -20
- package/esm/components/simple-color-picker/simple-color-picker.component.js +17 -20
- package/esm/components/simple-color-picker/simple-color-picker.style.js +9 -13
- package/esm/components/split-button/split-button-children.style.js +6 -9
- package/esm/components/split-button/split-button-toggle.style.js +7 -10
- package/esm/components/split-button/split-button.component.js +15 -16
- package/esm/components/step-sequence/step-sequence-item/step-sequence-item.component.js +10 -11
- package/esm/components/step-sequence/step-sequence-item/step-sequence-item.style.js +4 -5
- package/esm/components/step-sequence/step-sequence.component.js +5 -6
- package/esm/components/step-sequence/step-sequence.style.js +4 -7
- package/esm/components/switch/__internal__/switch-slider-panel.style.js +5 -8
- package/esm/components/switch/__internal__/switch-slider.component.js +10 -11
- package/esm/components/switch/__internal__/switch-slider.style.js +10 -13
- package/esm/components/switch/switch.component.js +32 -33
- package/esm/components/switch/switch.style.js +11 -17
- package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +28 -29
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +50 -68
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.component.js +14 -18
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +31 -52
- package/esm/components/tabs/tab/tab.component.js +20 -21
- package/esm/components/tabs/tab/tab.style.js +5 -8
- package/esm/components/tabs/tabs.component.js +18 -20
- package/esm/components/tabs/tabs.style.js +6 -9
- package/esm/components/text-editor/__internal__/decorators/link-decorator.js +1 -6
- package/esm/components/text-editor/__internal__/editor-counter/editor-counter.component.js +17 -20
- package/esm/components/text-editor/__internal__/editor-counter/editor-counter.style.js +3 -6
- package/esm/components/text-editor/__internal__/editor-link/editor-link.component.js +6 -7
- package/esm/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +4 -5
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +12 -13
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +4 -7
- package/esm/components/text-editor/__internal__/toolbar/toolbar.component.js +7 -8
- package/esm/components/text-editor/__internal__/utils/utils.js +2 -4
- package/esm/components/text-editor/text-editor.component.js +15 -16
- package/esm/components/text-editor/text-editor.style.js +11 -17
- package/esm/components/textarea/textarea.component.js +41 -42
- package/esm/components/textarea/textarea.style.js +7 -13
- package/esm/components/textbox/__internal__/prefix.style.js +3 -6
- package/esm/components/textbox/textbox.component.js +55 -56
- package/esm/components/textbox/textbox.style.js +5 -8
- package/esm/components/tile/tile-footer/tile-footer.component.js +5 -6
- package/esm/components/tile/tile-footer/tile-footer.style.js +4 -7
- package/esm/components/tile/tile.component.js +9 -10
- package/esm/components/tile/tile.style.js +19 -25
- package/esm/components/tile-select/__internal__/accordion/accordion.component.js +6 -7
- package/esm/components/tile-select/tile-select-group.component.js +11 -12
- package/esm/components/tile-select/tile-select.component.js +25 -26
- package/esm/components/tile-select/tile-select.style.js +36 -63
- package/esm/components/toast/toast.component.js +14 -15
- package/esm/components/toast/toast.style.js +37 -61
- package/esm/components/tooltip/tooltip-pointer.style.js +6 -9
- package/esm/components/tooltip/tooltip.component.js +28 -37
- package/esm/components/tooltip/tooltip.style.js +8 -11
- package/esm/components/typography/list.component.js +17 -23
- package/esm/components/typography/typography.component.js +36 -43
- package/esm/components/vertical-divider/vertical-divider.component.js +7 -8
- package/esm/components/vertical-divider/vertical-divider.style.js +11 -20
- package/esm/components/vertical-menu/vertical-menu-full-screen.component.js +8 -9
- package/esm/components/vertical-menu/vertical-menu-item.component.js +12 -13
- package/esm/components/vertical-menu/vertical-menu-trigger.component.js +7 -8
- package/esm/components/vertical-menu/vertical-menu.component.js +8 -9
- package/esm/components/vertical-menu/vertical-menu.style.js +10 -19
- package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.js +1 -4
- package/esm/hooks/__internal__/useChildButtons/useChildButtons.js +1 -2
- package/esm/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +1 -2
- package/esm/hooks/__internal__/useFloating/useFloating.js +14 -16
- package/esm/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +9 -10
- package/esm/hooks/__internal__/useModalAria/useModalAria.js +5 -6
- package/esm/hooks/__internal__/useModalManager/useModalManager.js +7 -8
- package/esm/hooks/__internal__/useScrollBlock/useScrollBlock.js +17 -23
- package/esm/hooks/__internal__/useStableCallback/useStableCallback.js +1 -6
- package/esm/locales/en-gb.js +1 -2
- package/esm/locales/pl-pl.js +1 -2
- package/esm/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +3 -6
- package/esm/style/design-tokens/debug-theme.util.js +1 -2
- package/esm/style/design-tokens/generate-css-variables.util.js +1 -2
- package/esm/style/palette/index.js +7 -10
- package/esm/style/utils/color.js +6 -7
- package/esm/style/utils/filter-out-styled-system-spacing-props.js +1 -4
- package/esm/style/utils/form-style-utils.js +1 -2
- package/esm/style/utils/merge-deep.js +2 -8
- package/esm/style/utils/mix.js +2 -6
- package/esm/style/utils/width.js +5 -8
- package/lib/__internal__/character-count/character-count.component.js +6 -7
- package/lib/__internal__/character-count/character-count.style.js +7 -13
- package/lib/__internal__/checkable-input/checkable-input.component.js +31 -32
- package/lib/__internal__/checkable-input/checkable-input.style.js +9 -12
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +13 -14
- package/lib/__internal__/field-help/field-help.component.js +11 -14
- package/lib/__internal__/field-help/field-help.style.js +5 -8
- package/lib/__internal__/fieldset/fieldset.component.js +32 -36
- package/lib/__internal__/fieldset/fieldset.style.js +11 -17
- package/lib/__internal__/focus-trap/focus-trap.component.js +10 -11
- package/lib/__internal__/form-field/form-field.component.js +31 -32
- package/lib/__internal__/form-field/form-field.style.js +4 -7
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +8 -11
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +4 -7
- package/lib/__internal__/input/input-presentation.component.js +15 -16
- package/lib/__internal__/input/input-presentation.style.js +36 -58
- package/lib/__internal__/input/input.component.js +22 -23
- package/lib/__internal__/input/input.style.js +12 -21
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +3 -4
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +4 -5
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.js +22 -24
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +14 -20
- package/lib/__internal__/label/label.component.js +34 -37
- package/lib/__internal__/label/label.style.js +20 -32
- package/lib/__internal__/popover/popover.component.js +10 -11
- package/lib/__internal__/popover/popover.style.js +6 -12
- package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +9 -10
- package/lib/__internal__/sticky-footer/sticky-footer.component.js +6 -7
- package/lib/__internal__/sticky-footer/sticky-footer.style.js +4 -7
- package/lib/__internal__/tooltip-provider/index.js +9 -10
- package/lib/__internal__/validation-message/validation-message.component.js +5 -6
- package/lib/__internal__/validation-message/validation-message.style.js +4 -7
- package/lib/__internal__/validations/validation-icon.component.js +21 -23
- package/lib/__internal__/validations/validation-icon.style.js +7 -13
- package/lib/__spec_helper__/test-utils.js +17 -26
- package/lib/components/accordion/accordion-group/accordion-group.component.js +4 -5
- package/lib/components/accordion/accordion.component.js +26 -27
- package/lib/components/accordion/accordion.style.js +52 -89
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +20 -21
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +13 -14
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +13 -16
- package/lib/components/action-popover/action-popover.component.js +15 -17
- package/lib/components/action-popover/action-popover.style.js +45 -69
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +8 -14
- package/lib/components/advanced-color-picker/advanced-color-picker.component.js +30 -35
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +8 -14
- package/lib/components/alert/alert.component.js +9 -12
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +17 -20
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +8 -14
- package/lib/components/anchor-navigation/anchor-navigation.component.js +7 -11
- package/lib/components/badge/badge.component.js +6 -7
- package/lib/components/badge/badge.style.js +9 -15
- package/lib/components/batch-selection/batch-selection.component.js +7 -8
- package/lib/components/batch-selection/batch-selection.style.js +6 -9
- package/lib/components/box/box.component.js +39 -60
- package/lib/components/breadcrumbs/breadcrumbs.component.js +4 -5
- package/lib/components/breadcrumbs/crumb/crumb.component.js +14 -17
- package/lib/components/breadcrumbs/crumb/crumb.style.js +4 -7
- package/lib/components/button/button.component.js +36 -38
- package/lib/components/button/button.style.js +22 -32
- package/lib/components/button-bar/button-bar.component.js +17 -20
- package/lib/components/button-bar/button-bar.style.js +5 -8
- package/lib/components/button-minor/button-minor.component.js +7 -8
- package/lib/components/button-minor/button-minor.style.js +19 -31
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +24 -25
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.js +12 -21
- package/lib/components/button-toggle/button-toggle-icon.component.js +15 -18
- package/lib/components/button-toggle/button-toggle.component.js +20 -21
- package/lib/components/button-toggle/button-toggle.style.js +33 -57
- package/lib/components/carbon-provider/carbon-provider.component.js +6 -7
- package/lib/components/carbon-provider/top-modal-context.js +3 -4
- package/lib/components/card/card-column/card-column.component.js +7 -10
- package/lib/components/card/card-column/card-column.style.js +3 -6
- package/lib/components/card/card-footer/card-footer.component.js +6 -7
- package/lib/components/card/card-footer/card-footer.style.js +6 -9
- package/lib/components/card/card-row/card-row.component.js +5 -6
- package/lib/components/card/card-row/card-row.style.js +4 -7
- package/lib/components/card/card.component.js +16 -17
- package/lib/components/card/card.style.js +11 -14
- package/lib/components/carousel/carousel.component.js +11 -12
- package/lib/components/carousel/carousel.style.js +8 -14
- package/lib/components/carousel/slide/slide.style.js +4 -7
- package/lib/components/checkbox/checkbox-group.style.js +8 -14
- package/lib/components/checkbox/checkbox.component.js +35 -36
- package/lib/components/checkbox/checkbox.style.js +14 -17
- package/lib/components/confirm/confirm.component.js +28 -29
- package/lib/components/confirm/confirm.style.js +8 -14
- package/lib/components/content/content.component.js +10 -11
- package/lib/components/content/content.style.js +17 -22
- package/lib/components/date/__internal__/date-formats/index.js +7 -9
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +11 -12
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +3 -6
- package/lib/components/date/__internal__/navbar/navbar.component.js +15 -18
- package/lib/components/date/__internal__/utils.js +1 -3
- package/lib/components/date/__internal__/weekday/weekday.component.js +11 -14
- package/lib/components/date/date.component.js +30 -31
- package/lib/components/date/date.style.js +12 -18
- package/lib/components/date-range/date-range.component.js +15 -16
- package/lib/components/date-range/date-range.style.js +3 -6
- package/lib/components/decimal/decimal.component.js +18 -19
- package/lib/components/definition-list/dd.component.js +4 -5
- package/lib/components/definition-list/definition-list.style.js +13 -22
- package/lib/components/definition-list/dl.component.js +8 -9
- package/lib/components/definition-list/dt.component.js +4 -5
- package/lib/components/detail/detail.component.js +18 -21
- package/lib/components/detail/detail.style.js +8 -14
- package/lib/components/dialog/dialog.component.js +22 -23
- package/lib/components/dialog/dialog.style.js +28 -52
- package/lib/components/dialog-full-screen/content.style.js +12 -21
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +24 -25
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +7 -13
- package/lib/components/dismissible-box/dismissible-box.component.js +19 -22
- package/lib/components/dismissible-box/dismissible-box.style.js +5 -8
- package/lib/components/draggable/draggable-container.component.js +5 -6
- package/lib/components/draggable/draggable-item.component.js +8 -9
- package/lib/components/draggable/draggable-item.style.js +3 -6
- package/lib/components/draggable/internal/drop-target.component.js +5 -6
- package/lib/components/drawer/drawer.component.js +17 -18
- package/lib/components/drawer/drawer.style.js +40 -70
- package/lib/components/duelling-picklist/duelling-picklist.component.js +9 -10
- package/lib/components/duelling-picklist/duelling-picklist.style.js +4 -7
- package/lib/components/duelling-picklist/picklist/picklist.component.js +6 -7
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +10 -11
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +9 -15
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +14 -15
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +8 -14
- package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +5 -8
- package/lib/components/fieldset/fieldset.component.js +6 -7
- package/lib/components/fieldset/fieldset.style.js +7 -13
- package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +4 -5
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +10 -12
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +4 -7
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +18 -19
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +18 -24
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +13 -14
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +7 -10
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +4 -5
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +14 -15
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +13 -16
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +6 -7
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +22 -23
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +25 -26
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +18 -19
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +17 -23
- package/lib/components/flat-table/flat-table.component.js +17 -18
- package/lib/components/flat-table/flat-table.style.js +67 -111
- package/lib/components/flat-table/sort/sort.component.js +5 -6
- package/lib/components/form/__internal__/form-summary.component.js +9 -11
- package/lib/components/form/__internal__/form-summary.style.js +24 -42
- package/lib/components/form/form.component.js +17 -18
- package/lib/components/form/form.style.js +37 -64
- package/lib/components/global-header/global-header.component.js +5 -6
- package/lib/components/grid/grid-item/grid-item.style.js +16 -19
- package/lib/components/grouped-character/grouped-character.component.js +13 -15
- package/lib/components/heading/heading.component.js +16 -17
- package/lib/components/heading/heading.style.js +18 -30
- package/lib/components/help/help.component.js +17 -18
- package/lib/components/help/help.style.js +4 -7
- package/lib/components/hr/hr.component.js +6 -7
- package/lib/components/i18n-provider/i18n-provider.component.js +6 -9
- package/lib/components/icon/icon.component.js +26 -27
- package/lib/components/icon/icon.style.js +12 -13
- package/lib/components/icon-button/icon-button.component.js +8 -9
- package/lib/components/icon-button/icon-button.style.js +4 -7
- package/lib/components/image/image.component.js +7 -8
- package/lib/components/image/image.style.js +16 -22
- package/lib/components/inline-inputs/inline-inputs.component.js +14 -15
- package/lib/components/inline-inputs/inline-inputs.style.js +20 -38
- package/lib/components/link/link.component.js +22 -24
- package/lib/components/link/link.style.js +10 -11
- package/lib/components/link-preview/__internal__/placeholder.component.js +9 -18
- package/lib/components/link-preview/link-preview.component.js +10 -11
- package/lib/components/link-preview/link-preview.style.js +8 -14
- package/lib/components/loader/loader-square.style.js +7 -10
- package/lib/components/loader/loader.component.js +7 -8
- package/lib/components/loader/loader.config.d.ts +1 -1
- package/lib/components/loader-bar/loader-bar.component.js +4 -5
- package/lib/components/loader-bar/loader-bar.style.js +8 -14
- package/lib/components/menu/__internal__/spec-helper/index.js +1 -2
- package/lib/components/menu/__internal__/submenu/submenu.component.js +18 -19
- package/lib/components/menu/__internal__/submenu/submenu.style.js +20 -29
- package/lib/components/menu/menu-divider/menu-divider.component.js +4 -5
- package/lib/components/menu/menu-divider/menu-divider.style.js +5 -8
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +7 -8
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +11 -17
- package/lib/components/menu/menu-item/menu-item.component.js +22 -23
- package/lib/components/menu/menu-item/menu-item.style.js +17 -20
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +5 -6
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +5 -8
- package/lib/components/menu/menu.component.js +5 -6
- package/lib/components/menu/menu.style.js +12 -21
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +8 -9
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +5 -8
- package/lib/components/message/message-content/message-content.component.js +5 -6
- package/lib/components/message/message-content/message-content.style.js +3 -6
- package/lib/components/message/message.component.js +13 -14
- package/lib/components/message/message.style.js +7 -13
- package/lib/components/message/type-icon/type-icon.component.js +4 -5
- package/lib/components/message/type-icon/type-icon.style.js +8 -14
- package/lib/components/modal/__internal__/modal-manager.js +4 -8
- package/lib/components/modal/modal.component.js +10 -11
- package/lib/components/modal/modal.style.js +13 -22
- package/lib/components/multi-action-button/multi-action-button.component.js +14 -15
- package/lib/components/multi-action-button/multi-action-button.style.js +16 -25
- package/lib/components/navigation-bar/fixed-navigation-bar.context.js +7 -8
- package/lib/components/navigation-bar/navigation-bar.component.js +11 -12
- package/lib/components/navigation-bar/navigation-bar.style.js +12 -18
- package/lib/components/note/__internal__/status-icon/status-icon.component.js +4 -5
- package/lib/components/note/note.component.js +12 -13
- package/lib/components/note/note.style.js +19 -34
- package/lib/components/number/number.component.js +7 -8
- package/lib/components/numeral-date/numeral-date.component.js +36 -37
- package/lib/components/numeral-date/numeral-date.style.js +7 -8
- package/lib/components/pager/__internal__/pager-navigation-link.component.js +9 -10
- package/lib/components/pager/__internal__/pager-navigation.component.js +16 -17
- package/lib/components/pager/pager.component.js +41 -39
- package/lib/components/pager/pager.style.js +8 -14
- package/lib/components/pages/page/page.component.js +6 -7
- package/lib/components/pages/pages.component.js +7 -8
- package/lib/components/password/password.component.js +6 -7
- package/lib/components/pill/pill.component.js +31 -34
- package/lib/components/pill/pill.style.js +11 -12
- package/lib/components/pod/pod.component.js +23 -24
- package/lib/components/pod/pod.style.js +65 -95
- package/lib/components/popover-container/popover-container.component.js +57 -67
- package/lib/components/popover-container/popover-container.style.js +6 -10
- package/lib/components/portal/portal.js +6 -7
- package/lib/components/portrait/portrait-gravatar.component.js +7 -8
- package/lib/components/portrait/portrait-initials.component.js +7 -8
- package/lib/components/portrait/portrait.component.js +20 -21
- package/lib/components/portrait/portrait.style.js +17 -26
- package/lib/components/preview/__internal__/preview-placeholder.component.js +7 -8
- package/lib/components/preview/__internal__/preview-placeholder.style.js +6 -12
- package/lib/components/preview/preview.component.js +6 -7
- package/lib/components/profile/profile.component.js +9 -10
- package/lib/components/profile/profile.style.js +19 -37
- package/lib/components/progress-tracker/progress-tracker.component.js +19 -20
- package/lib/components/progress-tracker/progress-tracker.style.js +42 -62
- package/lib/components/radio-button/radio-button-group.style.js +5 -8
- package/lib/components/radio-button/radio-button.component.js +33 -34
- package/lib/components/radio-button/radio-button.style.js +8 -11
- package/lib/components/search/search-button.style.js +3 -6
- package/lib/components/search/search.component.js +26 -27
- package/lib/components/search/search.style.js +10 -11
- package/lib/components/select/__internal__/select-text/select-text.component.d.ts +1 -4
- package/lib/components/select/__internal__/select-text/select-text.component.js +10 -17
- package/lib/components/select/__internal__/select-text/select-text.style.js +8 -11
- package/lib/components/select/filterable-select/filterable-select.component.js +40 -42
- package/lib/components/select/list-action-button/list-action-button.component.js +4 -5
- package/lib/components/select/multi-select/multi-select.component.js +39 -40
- package/lib/components/select/multi-select/multi-select.style.js +6 -12
- package/lib/components/select/option/option.component.d.ts +2 -2
- package/lib/components/select/option/option.component.js +12 -13
- package/lib/components/select/option/option.style.js +7 -13
- package/lib/components/select/option-group-header/option-group-header.component.js +6 -7
- package/lib/components/select/option-row/option-row.component.js +11 -12
- package/lib/components/select/option-row/option-row.style.js +7 -13
- package/lib/components/select/select-list/select-list-container.style.js +9 -18
- package/lib/components/select/select-list/select-list.component.js +30 -32
- package/lib/components/select/select-list/select-list.style.js +10 -19
- package/lib/components/select/select-textbox/select-textbox.component.js +65 -97
- package/lib/components/select/select.style.js +9 -12
- package/lib/components/select/simple-select/simple-select.component.js +36 -37
- package/lib/components/select/utils/get-next-child-by-text.js +1 -2
- package/lib/components/select/utils/with-filter.hoc.js +9 -10
- package/lib/components/settings-row/settings-row.component.js +9 -10
- package/lib/components/settings-row/settings-row.style.js +4 -7
- package/lib/components/show-edit-pod/show-edit-pod.component.js +24 -25
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +11 -14
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +4 -7
- package/lib/components/sidebar/sidebar.component.js +22 -23
- package/lib/components/sidebar/sidebar.style.js +10 -13
- package/lib/components/simple-color-picker/simple-color/simple-color.style.js +11 -20
- package/lib/components/simple-color-picker/simple-color-picker.component.js +17 -20
- package/lib/components/simple-color-picker/simple-color-picker.style.js +9 -13
- package/lib/components/split-button/split-button-children.style.js +6 -9
- package/lib/components/split-button/split-button-toggle.style.js +7 -10
- package/lib/components/split-button/split-button.component.js +15 -16
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +10 -11
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +4 -5
- package/lib/components/step-sequence/step-sequence.component.js +5 -6
- package/lib/components/step-sequence/step-sequence.style.js +4 -7
- package/lib/components/switch/__internal__/switch-slider-panel.style.js +5 -8
- package/lib/components/switch/__internal__/switch-slider.component.js +10 -11
- package/lib/components/switch/__internal__/switch-slider.style.js +10 -13
- package/lib/components/switch/switch.component.js +32 -33
- package/lib/components/switch/switch.style.js +11 -17
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +28 -29
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +50 -68
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +14 -18
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +31 -52
- package/lib/components/tabs/tab/tab.component.js +20 -21
- package/lib/components/tabs/tab/tab.style.js +5 -8
- package/lib/components/tabs/tabs.component.js +18 -20
- package/lib/components/tabs/tabs.style.js +6 -9
- package/lib/components/text-editor/__internal__/decorators/link-decorator.js +1 -6
- package/lib/components/text-editor/__internal__/editor-counter/editor-counter.component.js +17 -20
- package/lib/components/text-editor/__internal__/editor-counter/editor-counter.style.js +3 -6
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +6 -7
- package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +4 -5
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +12 -13
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +4 -7
- package/lib/components/text-editor/__internal__/toolbar/toolbar.component.js +7 -8
- package/lib/components/text-editor/__internal__/utils/utils.js +2 -4
- package/lib/components/text-editor/text-editor.component.js +15 -16
- package/lib/components/text-editor/text-editor.style.js +11 -17
- package/lib/components/textarea/textarea.component.js +41 -42
- package/lib/components/textarea/textarea.style.js +7 -13
- package/lib/components/textbox/__internal__/prefix.style.js +3 -6
- package/lib/components/textbox/textbox.component.js +55 -56
- package/lib/components/textbox/textbox.style.js +5 -8
- package/lib/components/tile/tile-footer/tile-footer.component.js +5 -6
- package/lib/components/tile/tile-footer/tile-footer.style.js +4 -7
- package/lib/components/tile/tile.component.js +9 -10
- package/lib/components/tile/tile.style.js +19 -25
- package/lib/components/tile-select/__internal__/accordion/accordion.component.js +6 -7
- package/lib/components/tile-select/tile-select-group.component.js +11 -12
- package/lib/components/tile-select/tile-select.component.js +25 -26
- package/lib/components/tile-select/tile-select.style.js +36 -63
- package/lib/components/toast/toast.component.js +14 -15
- package/lib/components/toast/toast.style.js +37 -61
- package/lib/components/tooltip/tooltip-pointer.style.js +6 -9
- package/lib/components/tooltip/tooltip.component.js +28 -37
- package/lib/components/tooltip/tooltip.style.js +8 -11
- package/lib/components/typography/list.component.js +17 -23
- package/lib/components/typography/typography.component.js +36 -43
- package/lib/components/vertical-divider/vertical-divider.component.js +7 -8
- package/lib/components/vertical-divider/vertical-divider.style.js +11 -20
- package/lib/components/vertical-menu/vertical-menu-full-screen.component.js +8 -9
- package/lib/components/vertical-menu/vertical-menu-item.component.js +12 -13
- package/lib/components/vertical-menu/vertical-menu-trigger.component.js +7 -8
- package/lib/components/vertical-menu/vertical-menu.component.js +8 -9
- package/lib/components/vertical-menu/vertical-menu.style.js +10 -19
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +1 -4
- package/lib/hooks/__internal__/useChildButtons/useChildButtons.js +1 -2
- package/lib/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +1 -2
- package/lib/hooks/__internal__/useFloating/useFloating.js +14 -16
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +9 -10
- package/lib/hooks/__internal__/useModalAria/useModalAria.js +5 -6
- package/lib/hooks/__internal__/useModalManager/useModalManager.js +7 -8
- package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.js +17 -23
- package/lib/hooks/__internal__/useStableCallback/useStableCallback.js +1 -6
- package/lib/locales/en-gb.js +1 -2
- package/lib/locales/pl-pl.js +1 -2
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +3 -6
- package/lib/style/design-tokens/debug-theme.util.js +1 -2
- package/lib/style/design-tokens/generate-css-variables.util.js +1 -2
- package/lib/style/palette/index.js +7 -10
- package/lib/style/utils/color.js +6 -7
- package/lib/style/utils/filter-out-styled-system-spacing-props.js +1 -4
- package/lib/style/utils/form-style-utils.js +1 -2
- package/lib/style/utils/merge-deep.js +2 -8
- package/lib/style/utils/mix.js +2 -6
- package/lib/style/utils/width.js +5 -8
- package/package.json +18 -9
|
@@ -23,37 +23,36 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
24
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
let deprecateInputRefWarnTriggered = false;
|
|
26
|
-
const DateInput = /*#__PURE__*/_react.default.forwardRef((
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} = _ref;
|
|
26
|
+
const DateInput = /*#__PURE__*/_react.default.forwardRef(({
|
|
27
|
+
adaptiveLabelBreakpoint,
|
|
28
|
+
allowEmptyValue,
|
|
29
|
+
autoFocus,
|
|
30
|
+
"data-component": dataComponent,
|
|
31
|
+
"data-element": dataElement,
|
|
32
|
+
"data-role": dataRole,
|
|
33
|
+
disabled,
|
|
34
|
+
disablePortal = false,
|
|
35
|
+
helpAriaLabel,
|
|
36
|
+
labelInline,
|
|
37
|
+
minDate,
|
|
38
|
+
maxDate,
|
|
39
|
+
onBlur,
|
|
40
|
+
onChange,
|
|
41
|
+
onClick,
|
|
42
|
+
onFocus,
|
|
43
|
+
onKeyDown,
|
|
44
|
+
pickerProps = {},
|
|
45
|
+
readOnly,
|
|
46
|
+
size = "medium",
|
|
47
|
+
tooltipPosition,
|
|
48
|
+
value,
|
|
49
|
+
inputRef,
|
|
50
|
+
inputWidth,
|
|
51
|
+
labelWidth,
|
|
52
|
+
maxWidth,
|
|
53
|
+
inputName,
|
|
54
|
+
...rest
|
|
55
|
+
}, ref) => {
|
|
57
56
|
const wrapperRef = (0, _react.useRef)(null);
|
|
58
57
|
const parentRef = (0, _react.useRef)(null);
|
|
59
58
|
const internalInputRef = (0, _react.useRef)(null);
|
|
@@ -25,28 +25,23 @@ const StyledDateInput = _styledComponents.default.div`
|
|
|
25
25
|
|
|
26
26
|
& ${_inputPresentation.default} {
|
|
27
27
|
flex: none;
|
|
28
|
-
width: ${
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} = _ref;
|
|
34
|
-
return maxWidth || inputWidth ? "" : datePickerWidth[size];
|
|
35
|
-
}};
|
|
28
|
+
width: ${({
|
|
29
|
+
inputWidth,
|
|
30
|
+
maxWidth,
|
|
31
|
+
size = "medium"
|
|
32
|
+
}) => maxWidth || inputWidth ? "" : datePickerWidth[size]};
|
|
36
33
|
|
|
37
34
|
${_input.default} {
|
|
38
35
|
margin-right: -8px;
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
${
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} = _ref2;
|
|
49
|
-
return applyDateRangeStyling && !labelInline && (0, _styledComponents.css)`
|
|
39
|
+
${({
|
|
40
|
+
applyDateRangeStyling,
|
|
41
|
+
maxWidth,
|
|
42
|
+
size = "medium",
|
|
43
|
+
labelInline
|
|
44
|
+
}) => applyDateRangeStyling && !labelInline && (0, _styledComponents.css)`
|
|
50
45
|
${_formField.FieldLineStyle} {
|
|
51
46
|
max-width: ${maxWidth || datePickerWidth[size]}};
|
|
52
47
|
}
|
|
@@ -54,8 +49,7 @@ const StyledDateInput = _styledComponents.default.div`
|
|
|
54
49
|
${_validationMessage.default}, ${_label.default} {
|
|
55
50
|
overflow-wrap: anywhere;
|
|
56
51
|
}
|
|
57
|
-
|
|
58
|
-
}}
|
|
52
|
+
`}
|
|
59
53
|
`;
|
|
60
54
|
StyledDateInput.defaultProps = {
|
|
61
55
|
theme: _base.default
|
|
@@ -20,22 +20,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
-
const DateRange =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref;
|
|
23
|
+
const DateRange = ({
|
|
24
|
+
endDateProps = {},
|
|
25
|
+
id,
|
|
26
|
+
labelsInline,
|
|
27
|
+
name,
|
|
28
|
+
onBlur,
|
|
29
|
+
onChange,
|
|
30
|
+
startDateProps = {},
|
|
31
|
+
tooltipPosition,
|
|
32
|
+
validationOnLabel,
|
|
33
|
+
value,
|
|
34
|
+
startRef,
|
|
35
|
+
endRef,
|
|
36
|
+
...rest
|
|
37
|
+
}) => {
|
|
39
38
|
const l = (0, _useLocale.default)();
|
|
40
39
|
const {
|
|
41
40
|
dateFnsLocale
|
|
@@ -17,12 +17,9 @@ const StyledDateRange = _styledComponents.default.div`
|
|
|
17
17
|
& ${_date.default} {
|
|
18
18
|
width: auto;
|
|
19
19
|
display: inline-block;
|
|
20
|
-
vertical-align: ${
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = _ref;
|
|
24
|
-
return labelsInline ? "top" : "bottom";
|
|
25
|
-
}};
|
|
20
|
+
vertical-align: ${({
|
|
21
|
+
labelsInline
|
|
22
|
+
}) => labelsInline ? "top" : "bottom"};
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
& ${_date.default}:first-of-type {
|
|
@@ -17,25 +17,24 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
17
17
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
18
|
let deprecateInputRefWarnTriggered = false;
|
|
19
19
|
let deprecateUncontrolledWarnTriggered = false;
|
|
20
|
-
const Decimal = /*#__PURE__*/_react.default.forwardRef((
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref;
|
|
20
|
+
const Decimal = /*#__PURE__*/_react.default.forwardRef(({
|
|
21
|
+
align = "right",
|
|
22
|
+
defaultValue,
|
|
23
|
+
precision = 2,
|
|
24
|
+
inputWidth,
|
|
25
|
+
readOnly,
|
|
26
|
+
onChange,
|
|
27
|
+
onBlur,
|
|
28
|
+
onKeyPress,
|
|
29
|
+
id,
|
|
30
|
+
name,
|
|
31
|
+
allowEmptyValue = false,
|
|
32
|
+
required,
|
|
33
|
+
locale,
|
|
34
|
+
value,
|
|
35
|
+
inputRef,
|
|
36
|
+
...rest
|
|
37
|
+
}, ref) => {
|
|
39
38
|
const l = (0, _react.useContext)(_i18nContext.default);
|
|
40
39
|
if (!deprecateInputRefWarnTriggered && inputRef) {
|
|
41
40
|
deprecateInputRefWarnTriggered = true;
|
|
@@ -9,11 +9,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _definitionList = require("./definition-list.style");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12
|
-
const Dd =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = _ref;
|
|
12
|
+
const Dd = ({
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
17
16
|
const {
|
|
18
17
|
mb
|
|
19
18
|
} = rest;
|
|
@@ -14,12 +14,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
14
14
|
const StyledDl = _styledComponents.default.dl`
|
|
15
15
|
${_styledSystem.space}
|
|
16
16
|
|
|
17
|
-
${
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = _ref;
|
|
22
|
-
return (0, _styledComponents.css)`
|
|
17
|
+
${({
|
|
18
|
+
asSingleColumn,
|
|
19
|
+
w
|
|
20
|
+
}) => (0, _styledComponents.css)`
|
|
23
21
|
${!asSingleColumn && (0, _styledComponents.css)`
|
|
24
22
|
display: grid;
|
|
25
23
|
grid-template-rows: auto;
|
|
@@ -28,8 +26,7 @@ const StyledDl = _styledComponents.default.dl`
|
|
|
28
26
|
${asSingleColumn && (0, _styledComponents.css)`
|
|
29
27
|
line-height: 21px;
|
|
30
28
|
`}
|
|
31
|
-
|
|
32
|
-
}}
|
|
29
|
+
`}
|
|
33
30
|
|
|
34
31
|
width: 100%;
|
|
35
32
|
height: auto;
|
|
@@ -41,28 +38,22 @@ StyledDl.defaultProps = {
|
|
|
41
38
|
};
|
|
42
39
|
const StyledDtDiv = _styledComponents.default.div`
|
|
43
40
|
${_styledSystem.space}
|
|
44
|
-
${
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = _ref2;
|
|
48
|
-
return (0, _styledComponents.css)`
|
|
41
|
+
${({
|
|
42
|
+
dtTextAlign
|
|
43
|
+
}) => (0, _styledComponents.css)`
|
|
49
44
|
text-align: ${dtTextAlign};
|
|
50
|
-
|
|
51
|
-
}}
|
|
45
|
+
`}
|
|
52
46
|
`;
|
|
53
47
|
exports.StyledDtDiv = StyledDtDiv;
|
|
54
48
|
StyledDtDiv.defaultProps = {
|
|
55
49
|
theme: _themes.baseTheme
|
|
56
50
|
};
|
|
57
51
|
const StyledDdDiv = _styledComponents.default.div`
|
|
58
|
-
${
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
} = _ref3;
|
|
62
|
-
return (0, _styledComponents.css)`
|
|
52
|
+
${({
|
|
53
|
+
ddTextAlign
|
|
54
|
+
}) => (0, _styledComponents.css)`
|
|
63
55
|
text-align: ${ddTextAlign};
|
|
64
|
-
|
|
65
|
-
}}
|
|
56
|
+
`}
|
|
66
57
|
`;
|
|
67
58
|
exports.StyledDdDiv = StyledDdDiv;
|
|
68
59
|
const StyledDt = _styledComponents.default.dt`
|
|
@@ -13,15 +13,14 @@ var _dd = _interopRequireDefault(require("./dd.component"));
|
|
|
13
13
|
var _dl = _interopRequireDefault(require("./__internal__/dl.context"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
-
const Dl =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
16
|
+
const Dl = ({
|
|
17
|
+
children,
|
|
18
|
+
w = 50,
|
|
19
|
+
dtTextAlign = "right",
|
|
20
|
+
ddTextAlign = "left",
|
|
21
|
+
asSingleColumn = false,
|
|
22
|
+
...rest
|
|
23
|
+
}) => {
|
|
25
24
|
const dlComponent = [];
|
|
26
25
|
const listChildren = _react.default.Children.toArray(children);
|
|
27
26
|
let key = "";
|
|
@@ -12,11 +12,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
-
const Dt =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} = _ref;
|
|
15
|
+
const Dt = ({
|
|
16
|
+
children,
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
20
19
|
const {
|
|
21
20
|
asSingleColumn
|
|
22
21
|
} = (0, _react.useContext)(_dl.default);
|
|
@@ -11,27 +11,24 @@ var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tag
|
|
|
11
11
|
var _detail = require("./detail.style");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
const Detail =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
hasIcon: !!icon
|
|
33
|
-
}, footnote));
|
|
34
|
-
};
|
|
14
|
+
const Detail = ({
|
|
15
|
+
className,
|
|
16
|
+
icon,
|
|
17
|
+
footnote,
|
|
18
|
+
children,
|
|
19
|
+
...rest
|
|
20
|
+
}) => /*#__PURE__*/_react.default.createElement(_detail.StyledDetail, _extends({
|
|
21
|
+
className: `carbon-detail ${className}`
|
|
22
|
+
}, (0, _tags.default)("detail", rest), (0, _utils.filterStyledSystemMarginProps)(rest)), icon && /*#__PURE__*/_react.default.createElement(_detail.StyledDetailIcon, {
|
|
23
|
+
type: icon,
|
|
24
|
+
"data-element": "icon"
|
|
25
|
+
}), /*#__PURE__*/_react.default.createElement(_detail.StyledDetailContent, {
|
|
26
|
+
"data-element": "detail-content",
|
|
27
|
+
hasIcon: !!icon
|
|
28
|
+
}, children), footnote && /*#__PURE__*/_react.default.createElement(_detail.StyledDetailFootnote, {
|
|
29
|
+
"data-element": "footnote",
|
|
30
|
+
hasIcon: !!icon
|
|
31
|
+
}, footnote));
|
|
35
32
|
exports.Detail = Detail;
|
|
36
33
|
Detail.displayName = "Detail";
|
|
37
34
|
var _default = Detail;
|
|
@@ -22,11 +22,9 @@ const StyledDetail = _styledComponents.default.div`
|
|
|
22
22
|
`;
|
|
23
23
|
exports.StyledDetail = StyledDetail;
|
|
24
24
|
const StyledDetailContent = _styledComponents.default.div`
|
|
25
|
-
${
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
29
|
-
return (0, _styledComponents.css)`
|
|
25
|
+
${({
|
|
26
|
+
hasIcon
|
|
27
|
+
}) => (0, _styledComponents.css)`
|
|
30
28
|
display: inline-block;
|
|
31
29
|
line-height: 18px;
|
|
32
30
|
white-space: pre-wrap;
|
|
@@ -36,8 +34,7 @@ const StyledDetailContent = _styledComponents.default.div`
|
|
|
36
34
|
${hasIcon && (0, _styledComponents.css)`
|
|
37
35
|
margin-left: 26px;
|
|
38
36
|
`}
|
|
39
|
-
|
|
40
|
-
}}
|
|
37
|
+
`}
|
|
41
38
|
`;
|
|
42
39
|
exports.StyledDetailContent = StyledDetailContent;
|
|
43
40
|
const StyledDetailIcon = (0, _styledComponents.default)(_icon.default)`
|
|
@@ -57,11 +54,9 @@ const StyledDetailIcon = (0, _styledComponents.default)(_icon.default)`
|
|
|
57
54
|
`;
|
|
58
55
|
exports.StyledDetailIcon = StyledDetailIcon;
|
|
59
56
|
const StyledDetailFootnote = _styledComponents.default.div`
|
|
60
|
-
${
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} = _ref2;
|
|
64
|
-
return (0, _styledComponents.css)`
|
|
57
|
+
${({
|
|
58
|
+
hasIcon
|
|
59
|
+
}) => (0, _styledComponents.css)`
|
|
65
60
|
color: var(--colorsUtilityYin055);
|
|
66
61
|
font-size: 13px;
|
|
67
62
|
position: relative;
|
|
@@ -70,8 +65,7 @@ const StyledDetailFootnote = _styledComponents.default.div`
|
|
|
70
65
|
${hasIcon && (0, _styledComponents.css)`
|
|
71
66
|
margin-left: 26px;
|
|
72
67
|
`}
|
|
73
|
-
|
|
74
|
-
}}
|
|
68
|
+
`}
|
|
75
69
|
`;
|
|
76
70
|
exports.StyledDetailFootnote = StyledDetailFootnote;
|
|
77
71
|
StyledDetail.defaultProps = {
|
|
@@ -23,29 +23,28 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
24
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
const PADDING_VALUES = [0, 1, 2, 3, 4, 5, 6, 7, 8];
|
|
26
|
-
const Dialog =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} = _ref;
|
|
26
|
+
const Dialog = ({
|
|
27
|
+
className,
|
|
28
|
+
children,
|
|
29
|
+
open,
|
|
30
|
+
height,
|
|
31
|
+
size = "medium",
|
|
32
|
+
title,
|
|
33
|
+
disableEscKey,
|
|
34
|
+
subtitle,
|
|
35
|
+
disableAutoFocus = false,
|
|
36
|
+
focusFirstElement,
|
|
37
|
+
focusableSelectors,
|
|
38
|
+
onCancel,
|
|
39
|
+
showCloseIcon = true,
|
|
40
|
+
bespokeFocusTrap,
|
|
41
|
+
disableClose,
|
|
42
|
+
help,
|
|
43
|
+
role = "dialog",
|
|
44
|
+
contentPadding = {},
|
|
45
|
+
focusableContainers,
|
|
46
|
+
...rest
|
|
47
|
+
}) => {
|
|
49
48
|
const locale = (0, _useLocale.default)();
|
|
50
49
|
const dialogRef = (0, _react.useRef)(null);
|
|
51
50
|
const innerContentRef = (0, _react.useRef)(null);
|
|
@@ -25,13 +25,10 @@ const dialogSizes = {
|
|
|
25
25
|
large: "960px",
|
|
26
26
|
"extra-large": "1080px"
|
|
27
27
|
};
|
|
28
|
-
const calculatePaddingTopInnerContent =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} = _ref;
|
|
33
|
-
return [py, p].some(padding => padding !== undefined) ? 0 : `${_dialog.CONTENT_TOP_PADDING}px`;
|
|
34
|
-
};
|
|
28
|
+
const calculatePaddingTopInnerContent = ({
|
|
29
|
+
py,
|
|
30
|
+
p
|
|
31
|
+
}) => [py, p].some(padding => padding !== undefined) ? 0 : `${_dialog.CONTENT_TOP_PADDING}px`;
|
|
35
32
|
const StyledDialog = _styledComponents.default.div`
|
|
36
33
|
background-color: var(--colorsUtilityMajor025);
|
|
37
34
|
box-shadow: var(--boxShadow300);
|
|
@@ -40,40 +37,28 @@ const StyledDialog = _styledComponents.default.div`
|
|
|
40
37
|
border-radius: var(--borderRadius200);
|
|
41
38
|
position: fixed;
|
|
42
39
|
top: 50%;
|
|
43
|
-
z-index: ${
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}};
|
|
49
|
-
max-height: ${_ref3 => {
|
|
50
|
-
let {
|
|
51
|
-
topMargin
|
|
52
|
-
} = _ref3;
|
|
53
|
-
return `calc(100vh - ${topMargin}px)`;
|
|
54
|
-
}};
|
|
40
|
+
z-index: ${({
|
|
41
|
+
theme
|
|
42
|
+
}) => theme.zIndex.modal};
|
|
43
|
+
max-height: ${({
|
|
44
|
+
topMargin
|
|
45
|
+
}) => `calc(100vh - ${topMargin}px)`};
|
|
55
46
|
|
|
56
47
|
&:focus {
|
|
57
48
|
outline: none;
|
|
58
49
|
}
|
|
59
50
|
|
|
60
|
-
${
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} = _ref4;
|
|
64
|
-
return size && (0, _styledComponents.css)`
|
|
51
|
+
${({
|
|
52
|
+
size
|
|
53
|
+
}) => size && (0, _styledComponents.css)`
|
|
65
54
|
width: ${dialogSizes[size]};
|
|
66
|
-
|
|
67
|
-
}}
|
|
55
|
+
`}
|
|
68
56
|
|
|
69
|
-
${
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
} = _ref5;
|
|
73
|
-
return dialogHeight && (0, _styledComponents.css)`
|
|
57
|
+
${({
|
|
58
|
+
dialogHeight
|
|
59
|
+
}) => dialogHeight && (0, _styledComponents.css)`
|
|
74
60
|
height: ${dialogHeight}px;
|
|
75
|
-
|
|
76
|
-
}}
|
|
61
|
+
`}
|
|
77
62
|
|
|
78
63
|
${_form.StyledForm} {
|
|
79
64
|
padding-bottom: 0px;
|
|
@@ -110,12 +95,9 @@ const StyledDialogTitle = _styledComponents.default.div`
|
|
|
110
95
|
border-bottom: 1px solid #ccd6db;
|
|
111
96
|
border-top-right-radius: var(--borderRadius200);
|
|
112
97
|
border-top-left-radius: var(--borderRadius200);
|
|
113
|
-
${
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
} = _ref6;
|
|
117
|
-
return showCloseIcon && "padding-right: 85px";
|
|
118
|
-
}};
|
|
98
|
+
${({
|
|
99
|
+
showCloseIcon
|
|
100
|
+
}) => showCloseIcon && "padding-right: 85px"};
|
|
119
101
|
|
|
120
102
|
${_heading.StyledHeaderContent} {
|
|
121
103
|
align-items: baseline;
|
|
@@ -129,12 +111,9 @@ const StyledDialogTitle = _styledComponents.default.div`
|
|
|
129
111
|
display: block;
|
|
130
112
|
overflow: hidden;
|
|
131
113
|
text-overflow: ellipsis;
|
|
132
|
-
padding: ${
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
} = _ref7;
|
|
136
|
-
return !hasSubtitle && "4px 0px";
|
|
137
|
-
}};
|
|
114
|
+
padding: ${({
|
|
115
|
+
hasSubtitle
|
|
116
|
+
}) => !hasSubtitle && "4px 0px"};
|
|
138
117
|
}
|
|
139
118
|
}
|
|
140
119
|
`;
|
|
@@ -143,14 +122,11 @@ const StyledDialogContent = _styledComponents.default.div`
|
|
|
143
122
|
box-sizing: border-box;
|
|
144
123
|
display: flex;
|
|
145
124
|
flex-direction: column;
|
|
146
|
-
${
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
} = _ref8;
|
|
150
|
-
return !hasStickyFooter && (0, _styledComponents.css)`
|
|
125
|
+
${({
|
|
126
|
+
hasStickyFooter
|
|
127
|
+
}) => !hasStickyFooter && (0, _styledComponents.css)`
|
|
151
128
|
overflow-y: auto;
|
|
152
|
-
|
|
153
|
-
}}
|
|
129
|
+
`}
|
|
154
130
|
width: 100%;
|
|
155
131
|
flex: 1;
|
|
156
132
|
padding: 0px ${_dialog.HORIZONTAL_PADDING}px ${_dialog.CONTENT_BOTTOM_PADDING}px;
|