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
|
@@ -32,26 +32,20 @@ const StyledColorSampleBox = _styledComponents.default.div`
|
|
|
32
32
|
justify-content: center;
|
|
33
33
|
border: 2px solid transparent;
|
|
34
34
|
|
|
35
|
-
${
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref;
|
|
39
|
-
return color !== "transparent" && (0, _styledComponents.css)`
|
|
35
|
+
${({
|
|
36
|
+
color
|
|
37
|
+
}) => color !== "transparent" && (0, _styledComponents.css)`
|
|
40
38
|
background-color: ${color};
|
|
41
|
-
|
|
42
|
-
}}
|
|
39
|
+
`}
|
|
43
40
|
|
|
44
|
-
${
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = _ref2;
|
|
48
|
-
return color === "transparent" && (0, _styledComponents.css)`
|
|
41
|
+
${({
|
|
42
|
+
color
|
|
43
|
+
}) => color === "transparent" && (0, _styledComponents.css)`
|
|
49
44
|
background-color: #eeeeee;
|
|
50
45
|
background-image: url(${_checkerBoard.default});
|
|
51
46
|
background-size: 14px 14px;
|
|
52
47
|
background-position: -2px -2px;
|
|
53
|
-
|
|
54
|
-
}}
|
|
48
|
+
`}
|
|
55
49
|
`;
|
|
56
50
|
exports.StyledColorSampleBox = StyledColorSampleBox;
|
|
57
51
|
const StyledSimpleColorInput = (0, _styledComponents.default)(_input.Input)`
|
|
@@ -95,12 +89,9 @@ const StyledTickIcon = (0, _styledComponents.default)(_icon.default)`
|
|
|
95
89
|
|
|
96
90
|
&::before {
|
|
97
91
|
font-size: 20px;
|
|
98
|
-
color: ${
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
} = _ref3;
|
|
102
|
-
return getIconColor(color);
|
|
103
|
-
}};
|
|
92
|
+
color: ${({
|
|
93
|
+
color
|
|
94
|
+
}) => getIconColor(color)};
|
|
104
95
|
}
|
|
105
96
|
`;
|
|
106
97
|
exports.StyledTickIcon = StyledTickIcon;
|
|
@@ -190,26 +190,23 @@ const SimpleColorPicker = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
|
|
|
190
190
|
role: "radiogroup",
|
|
191
191
|
legend: legend,
|
|
192
192
|
isRequired: required
|
|
193
|
-
}, validationOnLegend && validationProps, (0, _tags.default)("simple-color-picker", props), (0, _utils.filterStyledSystemMarginProps)(rest)), /*#__PURE__*/_react.default.createElement(_simpleColorPicker.StyledContent, null, /*#__PURE__*/_react.default.createElement(_inputBehaviour.InputGroupContext.Consumer, null,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
onBlur: handleOnBlur
|
|
211
|
-
}, navigationGrid));
|
|
212
|
-
}), !validationOnLegend && /*#__PURE__*/_react.default.createElement(_validationIcon.default, _extends({}, validationProps, {
|
|
193
|
+
}, validationOnLegend && validationProps, (0, _tags.default)("simple-color-picker", props), (0, _utils.filterStyledSystemMarginProps)(rest)), /*#__PURE__*/_react.default.createElement(_simpleColorPicker.StyledContent, null, /*#__PURE__*/_react.default.createElement(_inputBehaviour.InputGroupContext.Consumer, null, ({
|
|
194
|
+
onMouseEnter,
|
|
195
|
+
onMouseLeave
|
|
196
|
+
}) => /*#__PURE__*/_react.default.createElement(_simpleColorPicker.StyledColorOptions, _extends({
|
|
197
|
+
maxWidth: maxWidth,
|
|
198
|
+
childWidth: childWidth,
|
|
199
|
+
ref: internalRef,
|
|
200
|
+
onMouseEnter: onMouseEnter,
|
|
201
|
+
onMouseLeave: onMouseLeave
|
|
202
|
+
}, validationProps), /*#__PURE__*/_react.default.createElement(_radioButtonMapper.default, {
|
|
203
|
+
name: name,
|
|
204
|
+
value: value,
|
|
205
|
+
onChange: onChange,
|
|
206
|
+
onMouseDown: handleOnMouseDown,
|
|
207
|
+
onKeyDown: onKeyDownHandler,
|
|
208
|
+
onBlur: handleOnBlur
|
|
209
|
+
}, navigationGrid))), !validationOnLegend && /*#__PURE__*/_react.default.createElement(_validationIcon.default, _extends({}, validationProps, {
|
|
213
210
|
tooltipFlipOverrides: ["top", "bottom"]
|
|
214
211
|
}))));
|
|
215
212
|
});
|
|
@@ -21,13 +21,10 @@ const StyledContent = _styledComponents.default.div`
|
|
|
21
21
|
`;
|
|
22
22
|
exports.StyledContent = StyledContent;
|
|
23
23
|
const StyledColorOptions = _styledComponents.default.div`
|
|
24
|
-
max-width: ${
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
29
|
-
return getRoundedMaxWidth(maxWidth, childWidth);
|
|
30
|
-
}}px;
|
|
24
|
+
max-width: ${({
|
|
25
|
+
maxWidth,
|
|
26
|
+
childWidth
|
|
27
|
+
}) => getRoundedMaxWidth(maxWidth, childWidth)}px;
|
|
31
28
|
|
|
32
29
|
padding: 0;
|
|
33
30
|
display: flex;
|
|
@@ -35,12 +32,11 @@ const StyledColorOptions = _styledComponents.default.div`
|
|
|
35
32
|
border-left: ${BORDER_WIDTH}px solid transparent;
|
|
36
33
|
border-top: ${BORDER_WIDTH}px solid transparent;
|
|
37
34
|
|
|
38
|
-
${
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref2;
|
|
35
|
+
${({
|
|
36
|
+
error,
|
|
37
|
+
info,
|
|
38
|
+
warning
|
|
39
|
+
}) => {
|
|
44
40
|
if (error) return (0, _styledComponents.css)`
|
|
45
41
|
outline: var(--borderWidth200) solid var(--colorsSemanticNegative500);
|
|
46
42
|
`;
|
|
@@ -38,13 +38,11 @@ const borderRadiusStyling = `
|
|
|
38
38
|
exports.borderRadiusStyling = borderRadiusStyling;
|
|
39
39
|
const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
|
|
40
40
|
border-radius: var(--borderRadius100);
|
|
41
|
-
${
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} = _ref;
|
|
47
|
-
return (0, _styledComponents.css)`
|
|
41
|
+
${({
|
|
42
|
+
theme,
|
|
43
|
+
align,
|
|
44
|
+
minWidth
|
|
45
|
+
}) => (0, _styledComponents.css)`
|
|
48
46
|
background-color: var(--colorsActionMajorYang100);
|
|
49
47
|
min-width: ${minWidth}px;
|
|
50
48
|
white-space: nowrap;
|
|
@@ -65,8 +63,7 @@ const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
|
|
|
65
63
|
margin-top: 3px;
|
|
66
64
|
}
|
|
67
65
|
}
|
|
68
|
-
|
|
69
|
-
}}
|
|
66
|
+
`}
|
|
70
67
|
`;
|
|
71
68
|
StyledSplitButtonChildrenContainer.defaultProps = {
|
|
72
69
|
theme: _base.default
|
|
@@ -16,14 +16,12 @@ const horizontalPaddingSizes = {
|
|
|
16
16
|
large: 14
|
|
17
17
|
};
|
|
18
18
|
const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
|
|
19
|
-
${
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = _ref;
|
|
26
|
-
return (0, _styledComponents.css)`
|
|
19
|
+
${({
|
|
20
|
+
buttonType,
|
|
21
|
+
disabled,
|
|
22
|
+
displayed,
|
|
23
|
+
size
|
|
24
|
+
}) => (0, _styledComponents.css)`
|
|
27
25
|
border-top-left-radius: var(--borderRadius000);
|
|
28
26
|
border-bottom-left-radius: var(--borderRadius000);
|
|
29
27
|
|
|
@@ -78,8 +76,7 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
|
|
|
78
76
|
color: var(--colorsActionMajorYang100);
|
|
79
77
|
}
|
|
80
78
|
}
|
|
81
|
-
|
|
82
|
-
}}
|
|
79
|
+
`}
|
|
83
80
|
`;
|
|
84
81
|
var _default = StyledSplitButtonToggle;
|
|
85
82
|
exports.default = _default;
|
|
@@ -24,22 +24,21 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
24
24
|
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; }
|
|
25
25
|
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); }
|
|
26
26
|
const CONTENT_WIDTH_RATIO = 0.75;
|
|
27
|
-
const SplitButton =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} = _ref;
|
|
27
|
+
const SplitButton = ({
|
|
28
|
+
align = "left",
|
|
29
|
+
buttonType = "secondary",
|
|
30
|
+
children,
|
|
31
|
+
disabled = false,
|
|
32
|
+
iconPosition = "before",
|
|
33
|
+
iconType,
|
|
34
|
+
onClick,
|
|
35
|
+
size = "medium",
|
|
36
|
+
subtext,
|
|
37
|
+
text,
|
|
38
|
+
"data-element": dataElement,
|
|
39
|
+
"data-role": dataRole,
|
|
40
|
+
...rest
|
|
41
|
+
}) => {
|
|
43
42
|
const theme = (0, _react.useContext)(_styledComponents.ThemeContext) || _themes.baseTheme;
|
|
44
43
|
const buttonLabelId = (0, _react.useRef)((0, _guid.default)());
|
|
45
44
|
const toggleButton = (0, _react.useRef)(null);
|
|
@@ -13,17 +13,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
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); }
|
|
14
14
|
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; }
|
|
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 StepSequenceItem =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} = _ref;
|
|
16
|
+
const StepSequenceItem = ({
|
|
17
|
+
hideIndicator = false,
|
|
18
|
+
indicator,
|
|
19
|
+
status = "incomplete",
|
|
20
|
+
hiddenCompleteLabel,
|
|
21
|
+
hiddenCurrentLabel,
|
|
22
|
+
children,
|
|
23
|
+
ariaLabel,
|
|
24
|
+
...rest
|
|
25
|
+
}) => {
|
|
27
26
|
const {
|
|
28
27
|
orientation
|
|
29
28
|
} = (0, _react.useContext)(_stepSequence.StepSequenceContext);
|
|
@@ -17,11 +17,10 @@ const StyledStepSequenceItem = _styledComponents.default.li`
|
|
|
17
17
|
list-style-type: none;
|
|
18
18
|
color: var(--colorsUtilityYin055);
|
|
19
19
|
|
|
20
|
-
${
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
20
|
+
${({
|
|
21
|
+
orientation,
|
|
22
|
+
status
|
|
23
|
+
}) => {
|
|
25
24
|
const side = orientation === "vertical" ? "left" : "top";
|
|
26
25
|
return (0, _styledComponents.css)`
|
|
27
26
|
&::before {
|
|
@@ -13,12 +13,11 @@ const StepSequenceContext = /*#__PURE__*/_react.default.createContext({
|
|
|
13
13
|
orientation: "horizontal"
|
|
14
14
|
});
|
|
15
15
|
exports.StepSequenceContext = StepSequenceContext;
|
|
16
|
-
const StepSequence =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = _ref;
|
|
16
|
+
const StepSequence = ({
|
|
17
|
+
children,
|
|
18
|
+
orientation = "horizontal",
|
|
19
|
+
...props
|
|
20
|
+
}) => {
|
|
22
21
|
return /*#__PURE__*/_react.default.createElement(_stepSequence.default, _extends({
|
|
23
22
|
"data-component": "step-sequence",
|
|
24
23
|
orientation: orientation,
|
|
@@ -14,15 +14,12 @@ const StyledStepSequence = _styledComponents.default.ol`
|
|
|
14
14
|
margin: 0;
|
|
15
15
|
font-weight: bold;
|
|
16
16
|
|
|
17
|
-
${
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} = _ref;
|
|
21
|
-
return orientation === "vertical" && (0, _styledComponents.css)`
|
|
17
|
+
${({
|
|
18
|
+
orientation
|
|
19
|
+
}) => orientation === "vertical" && (0, _styledComponents.css)`
|
|
22
20
|
flex-direction: column;
|
|
23
21
|
height: 100%;
|
|
24
|
-
|
|
25
|
-
}}
|
|
22
|
+
`}
|
|
26
23
|
|
|
27
24
|
${_styledSystem.space}
|
|
28
25
|
`;
|
|
@@ -11,12 +11,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
13
|
const SwitchSliderPanel = _styledComponents.default.div`
|
|
14
|
-
${
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
19
|
-
return (0, _styledComponents.css)`
|
|
14
|
+
${({
|
|
15
|
+
isLoading,
|
|
16
|
+
size
|
|
17
|
+
}) => (0, _styledComponents.css)`
|
|
20
18
|
border: 0;
|
|
21
19
|
color: var(--colorsActionMinorYang100);
|
|
22
20
|
margin: auto;
|
|
@@ -67,8 +65,7 @@ const SwitchSliderPanel = _styledComponents.default.div`
|
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
`}
|
|
70
|
-
|
|
71
|
-
}}
|
|
68
|
+
`}
|
|
72
69
|
`;
|
|
73
70
|
var _default = SwitchSliderPanel;
|
|
74
71
|
exports.default = _default;
|
|
@@ -12,17 +12,16 @@ var _switchSliderPanel = _interopRequireDefault(require("./switch-slider-panel.s
|
|
|
12
12
|
var _validationIcon = _interopRequireDefault(require("../../../__internal__/validations/validation-icon.component"));
|
|
13
13
|
var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/useLocale"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
const SwitchSlider =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = _ref;
|
|
15
|
+
const SwitchSlider = ({
|
|
16
|
+
checked,
|
|
17
|
+
disabled,
|
|
18
|
+
loading,
|
|
19
|
+
size,
|
|
20
|
+
error,
|
|
21
|
+
warning,
|
|
22
|
+
info,
|
|
23
|
+
useValidationIcon
|
|
24
|
+
}) => {
|
|
26
25
|
const l = (0, _useLocale.default)();
|
|
27
26
|
const panelContent = checked ? l.switch.on() : l.switch.off();
|
|
28
27
|
const switchSliderStyleProps = {
|
|
@@ -12,17 +12,15 @@ 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
|
const StyledSwitchSlider = _styledComponents.default.span`
|
|
15
|
-
${
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
25
|
-
return (0, _styledComponents.css)`
|
|
15
|
+
${({
|
|
16
|
+
checked,
|
|
17
|
+
isLoading,
|
|
18
|
+
disabled,
|
|
19
|
+
size,
|
|
20
|
+
error,
|
|
21
|
+
warning,
|
|
22
|
+
theme
|
|
23
|
+
}) => (0, _styledComponents.css)`
|
|
26
24
|
display: flex;
|
|
27
25
|
font-size: 12px;
|
|
28
26
|
font-weight: bold;
|
|
@@ -119,8 +117,7 @@ const StyledSwitchSlider = _styledComponents.default.span`
|
|
|
119
117
|
right: -30px;
|
|
120
118
|
height: 100%;
|
|
121
119
|
}
|
|
122
|
-
|
|
123
|
-
}}
|
|
120
|
+
`}
|
|
124
121
|
`;
|
|
125
122
|
StyledSwitchSlider.defaultProps = {
|
|
126
123
|
theme: _base.default
|
|
@@ -22,39 +22,38 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
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; }
|
|
23
23
|
let deprecateInputRefWarnTriggered = false;
|
|
24
24
|
let deprecateUncontrolledWarnTriggered = false;
|
|
25
|
-
const Switch = /*#__PURE__*/_react.default.forwardRef((
|
|
26
|
-
|
|
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
|
-
|
|
57
|
-
} = _ref;
|
|
25
|
+
const Switch = /*#__PURE__*/_react.default.forwardRef(({
|
|
26
|
+
autoFocus,
|
|
27
|
+
id,
|
|
28
|
+
label,
|
|
29
|
+
onChange,
|
|
30
|
+
onBlur,
|
|
31
|
+
onFocus,
|
|
32
|
+
value,
|
|
33
|
+
checked,
|
|
34
|
+
defaultChecked,
|
|
35
|
+
disabled,
|
|
36
|
+
loading,
|
|
37
|
+
reverse = true,
|
|
38
|
+
validationOnLabel = false,
|
|
39
|
+
labelInline = false,
|
|
40
|
+
labelSpacing,
|
|
41
|
+
labelHelp,
|
|
42
|
+
fieldHelpInline,
|
|
43
|
+
size,
|
|
44
|
+
name,
|
|
45
|
+
adaptiveLabelBreakpoint,
|
|
46
|
+
tooltipPosition,
|
|
47
|
+
error,
|
|
48
|
+
warning,
|
|
49
|
+
info,
|
|
50
|
+
"data-component": dataComponent = "switch",
|
|
51
|
+
"data-element": dataElement,
|
|
52
|
+
"data-role": dataRole,
|
|
53
|
+
helpAriaLabel,
|
|
54
|
+
inputRef,
|
|
55
|
+
...rest
|
|
56
|
+
}, ref) => {
|
|
58
57
|
const isControlled = checked !== undefined;
|
|
59
58
|
const {
|
|
60
59
|
validationRedesignOptIn
|
|
@@ -18,11 +18,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
18
18
|
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); }
|
|
19
19
|
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; }
|
|
20
20
|
const ErrorBorder = _styledComponents.default.span`
|
|
21
|
-
${
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
25
|
-
return (0, _styledComponents.css)`
|
|
21
|
+
${({
|
|
22
|
+
warning
|
|
23
|
+
}) => (0, _styledComponents.css)`
|
|
26
24
|
position: absolute;
|
|
27
25
|
z-index: 6;
|
|
28
26
|
width: 2px;
|
|
@@ -30,8 +28,7 @@ const ErrorBorder = _styledComponents.default.span`
|
|
|
30
28
|
left: -12px;
|
|
31
29
|
bottom: -4px;
|
|
32
30
|
top: 2px;
|
|
33
|
-
|
|
34
|
-
}}
|
|
31
|
+
`}
|
|
35
32
|
`;
|
|
36
33
|
exports.ErrorBorder = ErrorBorder;
|
|
37
34
|
const StyledHintText = _styledComponents.default.div`
|
|
@@ -43,14 +40,12 @@ const StyledHintText = _styledComponents.default.div`
|
|
|
43
40
|
`;
|
|
44
41
|
exports.StyledHintText = StyledHintText;
|
|
45
42
|
const StyledSwitch = _styledComponents.default.div`
|
|
46
|
-
${
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} = _ref2;
|
|
53
|
-
return (0, _styledComponents.css)`
|
|
43
|
+
${({
|
|
44
|
+
fieldHelpInline,
|
|
45
|
+
labelInline,
|
|
46
|
+
reverse,
|
|
47
|
+
size
|
|
48
|
+
}) => (0, _styledComponents.css)`
|
|
54
49
|
${_styledSystem.margin}
|
|
55
50
|
${_formField.FieldLineStyle} {
|
|
56
51
|
display: flex;
|
|
@@ -185,8 +180,7 @@ const StyledSwitch = _styledComponents.default.div`
|
|
|
185
180
|
`}
|
|
186
181
|
`}
|
|
187
182
|
`}
|
|
188
|
-
|
|
189
|
-
}}
|
|
183
|
+
`}
|
|
190
184
|
`;
|
|
191
185
|
StyledSwitch.defaultProps = {
|
|
192
186
|
theme: _base.default
|
|
@@ -18,35 +18,34 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
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); }
|
|
19
19
|
const TabTitleContext = /*#__PURE__*/_react.default.createContext({});
|
|
20
20
|
exports.TabTitleContext = TabTitleContext;
|
|
21
|
-
const TabTitle = /*#__PURE__*/_react.default.forwardRef((
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} = _ref;
|
|
21
|
+
const TabTitle = /*#__PURE__*/_react.default.forwardRef(({
|
|
22
|
+
isTabSelected,
|
|
23
|
+
dataTabId,
|
|
24
|
+
"data-role": dataRole,
|
|
25
|
+
title,
|
|
26
|
+
position,
|
|
27
|
+
error,
|
|
28
|
+
warning,
|
|
29
|
+
info,
|
|
30
|
+
size = "default",
|
|
31
|
+
onClick,
|
|
32
|
+
titlePosition = "before",
|
|
33
|
+
siblings,
|
|
34
|
+
errorMessage = "",
|
|
35
|
+
warningMessage = "",
|
|
36
|
+
infoMessage = "",
|
|
37
|
+
borders,
|
|
38
|
+
alternateStyling = false,
|
|
39
|
+
noLeftBorder = false,
|
|
40
|
+
noRightBorder = false,
|
|
41
|
+
customLayout,
|
|
42
|
+
isInSidebar,
|
|
43
|
+
href,
|
|
44
|
+
onKeyDown,
|
|
45
|
+
align,
|
|
46
|
+
tabIndex,
|
|
47
|
+
...tabTitleProps
|
|
48
|
+
}, ref) => {
|
|
50
49
|
const isHref = !!href;
|
|
51
50
|
const hasAlternateStyling = alternateStyling || isInSidebar;
|
|
52
51
|
const hasFailedValidation = error || warning || info;
|