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
|
@@ -7,12 +7,11 @@ import invariant from "invariant";
|
|
|
7
7
|
import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
8
8
|
import DraggableItem from "./draggable-item.component";
|
|
9
9
|
import DropTarget from "./internal/drop-target.component";
|
|
10
|
-
const DraggableContainer =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
10
|
+
const DraggableContainer = ({
|
|
11
|
+
children,
|
|
12
|
+
getOrder,
|
|
13
|
+
...rest
|
|
14
|
+
}) => {
|
|
16
15
|
const [draggableItems, setDraggableItems] = useState(React.Children.toArray(children));
|
|
17
16
|
const hasProperChildren = useMemo(() => React.Children.toArray(children).every(child => /*#__PURE__*/React.isValidElement(child) && child.type.displayName === DraggableItem.displayName), [children]);
|
|
18
17
|
|
|
@@ -4,15 +4,14 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { useDrop, useDrag } from "react-dnd";
|
|
5
5
|
import { filterStyledSystemPaddingProps } from "../../style/utils";
|
|
6
6
|
import { StyledDraggableItem, StyledIcon } from "./draggable-item.style";
|
|
7
|
-
const DraggableItem =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
7
|
+
const DraggableItem = ({
|
|
8
|
+
id,
|
|
9
|
+
findItem,
|
|
10
|
+
moveItem,
|
|
11
|
+
children,
|
|
12
|
+
py = 1,
|
|
13
|
+
...rest
|
|
14
|
+
}) => {
|
|
16
15
|
let originalIndex;
|
|
17
16
|
// istanbul ignore else
|
|
18
17
|
if (findItem) {
|
|
@@ -12,12 +12,9 @@ const StyledDraggableItem = styled.div`
|
|
|
12
12
|
${padding}
|
|
13
13
|
cursor: move;
|
|
14
14
|
|
|
15
|
-
opacity: ${
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
19
|
-
return isDragging ? "0" : "1";
|
|
20
|
-
}};
|
|
15
|
+
opacity: ${({
|
|
16
|
+
isDragging
|
|
17
|
+
}) => isDragging ? "0" : "1"};
|
|
21
18
|
`;
|
|
22
19
|
const StyledIcon = styled(Icon)`
|
|
23
20
|
margin-left: auto;
|
|
@@ -3,12 +3,11 @@ import React from "react";
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { useDrop } from "react-dnd";
|
|
5
5
|
import { StyledDraggableContainer } from "../draggable-item.style";
|
|
6
|
-
const DropTarget =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} = _ref;
|
|
6
|
+
const DropTarget = ({
|
|
7
|
+
children,
|
|
8
|
+
getOrder,
|
|
9
|
+
...rest
|
|
10
|
+
}) => {
|
|
12
11
|
const [, drop] = useDrop({
|
|
13
12
|
accept: "draggableItem",
|
|
14
13
|
drop(item) {
|
|
@@ -8,24 +8,23 @@ import Icon from "../icon";
|
|
|
8
8
|
import { StyledSidebarHeader, StyledDrawerWrapper, StyledDrawerContent, StyledSidebarToggleButton, StyledDrawerChildren, StyledDrawerSidebar, StyledSidebarTitle } from "./drawer.style";
|
|
9
9
|
import StickyFooter from "../../__internal__/sticky-footer";
|
|
10
10
|
const DrawerSidebarContext = /*#__PURE__*/React.createContext({});
|
|
11
|
-
export const Drawer =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
11
|
+
export const Drawer = ({
|
|
12
|
+
defaultExpanded = true,
|
|
13
|
+
expanded,
|
|
14
|
+
onChange,
|
|
15
|
+
children,
|
|
16
|
+
expandedWidth = "40%",
|
|
17
|
+
sidebar,
|
|
18
|
+
animationDuration = "400ms",
|
|
19
|
+
backgroundColor,
|
|
20
|
+
title,
|
|
21
|
+
footer,
|
|
22
|
+
showControls,
|
|
23
|
+
height = "100%",
|
|
24
|
+
stickyHeader,
|
|
25
|
+
stickyFooter,
|
|
26
|
+
...rest
|
|
27
|
+
}) => {
|
|
29
28
|
const drawerSidebarContentRef = useRef(null);
|
|
30
29
|
const scrollableContentRef = useRef(null);
|
|
31
30
|
const isControlled = useRef(expanded !== undefined);
|
|
@@ -4,19 +4,16 @@ import Box from "../box";
|
|
|
4
4
|
import StyledStickyFooter from "../../__internal__/sticky-footer/sticky-footer.style";
|
|
5
5
|
const defaultExpandedWidth = "var(--sizing500)";
|
|
6
6
|
const StyledSidebarHeader = styled.div`
|
|
7
|
-
${
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} = _ref;
|
|
11
|
-
return css`
|
|
7
|
+
${({
|
|
8
|
+
isExpanded
|
|
9
|
+
}) => css`
|
|
12
10
|
position: sticky;
|
|
13
11
|
top: 0;
|
|
14
12
|
|
|
15
13
|
${isExpanded && css`
|
|
16
14
|
border-bottom: var(--sizing010) solid #ccd6db;
|
|
17
15
|
`}
|
|
18
|
-
|
|
19
|
-
}}
|
|
16
|
+
`}
|
|
20
17
|
`;
|
|
21
18
|
const StyledSidebarTitle = styled.div`
|
|
22
19
|
white-space: nowrap;
|
|
@@ -28,12 +25,10 @@ const StyledDrawerChildren = styled.div`
|
|
|
28
25
|
overflow: auto;
|
|
29
26
|
`;
|
|
30
27
|
const StyledDrawerSidebar = styled(Box)`
|
|
31
|
-
${
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} = _ref2;
|
|
36
|
-
return css`
|
|
28
|
+
${({
|
|
29
|
+
hasControls,
|
|
30
|
+
isExpanded
|
|
31
|
+
}) => css`
|
|
37
32
|
${!isExpanded && css`
|
|
38
33
|
display: none;
|
|
39
34
|
opacity: 0;
|
|
@@ -53,8 +48,7 @@ const StyledDrawerSidebar = styled(Box)`
|
|
|
53
48
|
`}
|
|
54
49
|
}
|
|
55
50
|
`}
|
|
56
|
-
|
|
57
|
-
}}
|
|
51
|
+
`}
|
|
58
52
|
|
|
59
53
|
&::-webkit-scrollbar {
|
|
60
54
|
width: 12px;
|
|
@@ -103,24 +97,18 @@ const StyledDrawerContent = styled.div`
|
|
|
103
97
|
position: relative;
|
|
104
98
|
overflow: auto;
|
|
105
99
|
|
|
106
|
-
${
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
} = _ref3;
|
|
110
|
-
return css`
|
|
100
|
+
${({
|
|
101
|
+
backgroundColor
|
|
102
|
+
}) => css`
|
|
111
103
|
background-color: ${backgroundColor || "var(--colorsUtilityMajor040)"};
|
|
112
104
|
border-right: 1px solid ${backgroundColor || "var(--colorsUtilityMajor075)"};
|
|
113
|
-
|
|
114
|
-
}};
|
|
105
|
+
`};
|
|
115
106
|
|
|
116
107
|
&.open {
|
|
117
108
|
min-width: 52px;
|
|
118
|
-
width: ${
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
} = _ref4;
|
|
122
|
-
return expandedWidth;
|
|
123
|
-
}};
|
|
109
|
+
width: ${({
|
|
110
|
+
expandedWidth
|
|
111
|
+
}) => expandedWidth};
|
|
124
112
|
|
|
125
113
|
${StyledDrawerSidebar}, ${StyledSidebarTitle} {
|
|
126
114
|
display: block;
|
|
@@ -129,25 +117,19 @@ const StyledDrawerContent = styled.div`
|
|
|
129
117
|
}
|
|
130
118
|
|
|
131
119
|
&.opening {
|
|
132
|
-
animation: ${
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} = _ref5;
|
|
137
|
-
return css`
|
|
120
|
+
animation: ${({
|
|
121
|
+
animationDuration,
|
|
122
|
+
expandedWidth
|
|
123
|
+
}) => css`
|
|
138
124
|
${drawerOpen(expandedWidth)} ${animationDuration}
|
|
139
|
-
|
|
140
|
-
}}
|
|
125
|
+
`}
|
|
141
126
|
ease-in-out;
|
|
142
127
|
|
|
143
128
|
${StyledDrawerSidebar}, ${StyledSidebarTitle} {
|
|
144
129
|
animation: ${sidebarVisible}
|
|
145
|
-
${
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
} = _ref6;
|
|
149
|
-
return animationDuration;
|
|
150
|
-
}} ease-in-out;
|
|
130
|
+
${({
|
|
131
|
+
animationDuration
|
|
132
|
+
}) => animationDuration} ease-in-out;
|
|
151
133
|
}
|
|
152
134
|
}
|
|
153
135
|
|
|
@@ -160,37 +142,29 @@ const StyledDrawerContent = styled.div`
|
|
|
160
142
|
}
|
|
161
143
|
|
|
162
144
|
&.closing {
|
|
163
|
-
animation: ${
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
} = _ref7;
|
|
168
|
-
return css`
|
|
145
|
+
animation: ${({
|
|
146
|
+
animationDuration,
|
|
147
|
+
expandedWidth
|
|
148
|
+
}) => css`
|
|
169
149
|
${drawerClose(expandedWidth)} ${animationDuration}
|
|
170
|
-
|
|
171
|
-
}}
|
|
150
|
+
`}
|
|
172
151
|
ease-in-out;
|
|
173
152
|
|
|
174
153
|
${StyledDrawerSidebar}, ${StyledSidebarTitle}, ${StyledStickyFooter} {
|
|
175
154
|
animation: ${sidebarHidden}
|
|
176
|
-
${
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
} = _ref8;
|
|
180
|
-
return animationDuration;
|
|
181
|
-
}} ease-in-out;
|
|
155
|
+
${({
|
|
156
|
+
animationDuration
|
|
157
|
+
}) => animationDuration} ease-in-out;
|
|
182
158
|
}
|
|
183
159
|
}
|
|
184
160
|
`;
|
|
185
161
|
const StyledSidebarToggleButton = styled.button.attrs({
|
|
186
162
|
type: "button"
|
|
187
163
|
})`
|
|
188
|
-
${
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
} = _ref9;
|
|
193
|
-
return css`
|
|
164
|
+
${({
|
|
165
|
+
animationDuration,
|
|
166
|
+
isExpanded
|
|
167
|
+
}) => css`
|
|
194
168
|
position: absolute;
|
|
195
169
|
top: var(--spacing300);
|
|
196
170
|
right: 8px;
|
|
@@ -219,16 +193,12 @@ const StyledSidebarToggleButton = styled.button.attrs({
|
|
|
219
193
|
transform: scaleX(-1);
|
|
220
194
|
animation: ${buttonOpen} ${animationDuration} ease-in-out;
|
|
221
195
|
`}
|
|
222
|
-
|
|
223
|
-
}}
|
|
196
|
+
`}
|
|
224
197
|
`;
|
|
225
198
|
const StyledDrawerWrapper = styled.div`
|
|
226
199
|
display: flex;
|
|
227
|
-
height: ${
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
} = _ref10;
|
|
231
|
-
return height;
|
|
232
|
-
}};
|
|
200
|
+
height: ${({
|
|
201
|
+
height
|
|
202
|
+
}) => height};
|
|
233
203
|
`;
|
|
234
204
|
export { StyledSidebarHeader, StyledDrawerWrapper, StyledDrawerContent, StyledDrawerChildren, StyledDrawerSidebar, StyledSidebarTitle, StyledSidebarToggleButton };
|
|
@@ -5,16 +5,15 @@ import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
|
5
5
|
import { StyledDuellingPicklistOverlay, StyledDuellingPicklist, StyledLabelContainer, StyledLabel, StyledControlsContainer, StyledControl } from "./duelling-picklist.style";
|
|
6
6
|
import { Picklist } from "./picklist/picklist.component";
|
|
7
7
|
import FocusContext from "./duelling-picklist.context";
|
|
8
|
-
export const DuellingPicklist =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
8
|
+
export const DuellingPicklist = ({
|
|
9
|
+
children,
|
|
10
|
+
disabled,
|
|
11
|
+
leftControls,
|
|
12
|
+
rightControls,
|
|
13
|
+
leftLabel,
|
|
14
|
+
rightLabel,
|
|
15
|
+
...rest
|
|
16
|
+
}) => {
|
|
18
17
|
const shouldDisplayLabels = leftLabel || rightLabel;
|
|
19
18
|
const shouldDisplayControls = leftControls || rightControls;
|
|
20
19
|
const [elementToFocus, setElementToFocus] = useState({});
|
|
@@ -6,16 +6,13 @@ const StyledDuellingPicklistOverlay = styled.div`
|
|
|
6
6
|
|
|
7
7
|
transition: opacity 0.3s;
|
|
8
8
|
|
|
9
|
-
${
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} = _ref;
|
|
13
|
-
return disabled && css`
|
|
9
|
+
${({
|
|
10
|
+
disabled
|
|
11
|
+
}) => disabled && css`
|
|
14
12
|
opacity: 0.2;
|
|
15
13
|
pointer-events: none;
|
|
16
14
|
user-select: none;
|
|
17
|
-
|
|
18
|
-
}}
|
|
15
|
+
`}
|
|
19
16
|
`;
|
|
20
17
|
const StyledDuellingPicklist = styled.div`
|
|
21
18
|
display: flex;
|
|
@@ -5,13 +5,12 @@ import { StyledPicklist, StyledEmptyContainer } from "./picklist.style";
|
|
|
5
5
|
import FocusContext from "../duelling-picklist.context";
|
|
6
6
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
7
7
|
import PicklistGroup from "../picklist-group/picklist-group.component";
|
|
8
|
-
export const Picklist =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = _ref;
|
|
8
|
+
export const Picklist = ({
|
|
9
|
+
disabled,
|
|
10
|
+
children,
|
|
11
|
+
placeholder,
|
|
12
|
+
index
|
|
13
|
+
}) => {
|
|
15
14
|
const {
|
|
16
15
|
elementToFocus,
|
|
17
16
|
setElementToFocus
|
|
@@ -5,17 +5,16 @@ import { CSSTransition, TransitionGroup } from "react-transition-group";
|
|
|
5
5
|
import { StyledGroupWrapper, StyledPicklistGroupUl, StyledPicklistGroup, StyledGroupButton } from "./picklist-group.style";
|
|
6
6
|
import FocusContext from "../duelling-picklist.context";
|
|
7
7
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
8
|
-
const PicklistGroup = /*#__PURE__*/React.forwardRef((
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
8
|
+
const PicklistGroup = /*#__PURE__*/React.forwardRef(({
|
|
9
|
+
title,
|
|
10
|
+
children,
|
|
11
|
+
type,
|
|
12
|
+
onChange,
|
|
13
|
+
index,
|
|
14
|
+
listIndex,
|
|
15
|
+
isLastGroup,
|
|
16
|
+
...transitionGroupProps
|
|
17
|
+
}, ref) => {
|
|
19
18
|
const {
|
|
20
19
|
setElementToFocus,
|
|
21
20
|
elementToFocus
|
|
@@ -2,12 +2,10 @@ import styled, { css } from "styled-components";
|
|
|
2
2
|
import Button from "../../button";
|
|
3
3
|
import { StyledButton } from "../picklist-item/picklist-item.style";
|
|
4
4
|
const StyledGroupWrapper = styled.li`
|
|
5
|
-
${
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} = _ref;
|
|
10
|
-
return css`
|
|
5
|
+
${({
|
|
6
|
+
highlighted,
|
|
7
|
+
type
|
|
8
|
+
}) => css`
|
|
11
9
|
&:not(:first-of-type) {
|
|
12
10
|
margin-top: 16px;
|
|
13
11
|
}
|
|
@@ -16,8 +14,7 @@ const StyledGroupWrapper = styled.li`
|
|
|
16
14
|
${StyledButton} {
|
|
17
15
|
background: ${type === "add" ? "var(--colorsActionMajor600)" : "var(--colorsSemanticNegative600)"}
|
|
18
16
|
`}
|
|
19
|
-
|
|
20
|
-
}}
|
|
17
|
+
`}
|
|
21
18
|
`;
|
|
22
19
|
const StyledPicklistGroupUl = styled.ul`
|
|
23
20
|
padding: 0;
|
|
@@ -29,11 +26,9 @@ const StyledPicklistGroup = styled.li`
|
|
|
29
26
|
margin-bottom: 4px;
|
|
30
27
|
`;
|
|
31
28
|
const StyledGroupButton = styled(Button)`
|
|
32
|
-
${
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} = _ref2;
|
|
36
|
-
return css`
|
|
29
|
+
${({
|
|
30
|
+
iconType
|
|
31
|
+
}) => css`
|
|
37
32
|
padding: 0;
|
|
38
33
|
margin-right: 0;
|
|
39
34
|
margin-left: auto;
|
|
@@ -46,7 +41,6 @@ const StyledGroupButton = styled(Button)`
|
|
|
46
41
|
color: var(--colorsActionMajorYang100);
|
|
47
42
|
}
|
|
48
43
|
background: ${iconType === "add" ? "var(--colorsActionMajor600)" : "var(--colorsSemanticNegative600)"}
|
|
49
|
-
|
|
50
|
-
}}
|
|
44
|
+
`}
|
|
51
45
|
`;
|
|
52
46
|
export { StyledGroupWrapper, StyledPicklistGroupUl, StyledPicklistGroup, StyledGroupButton };
|
|
@@ -5,21 +5,20 @@ import { CSSTransition } from "react-transition-group";
|
|
|
5
5
|
import { StyledPicklistItem, StyledButton, StyledLockIcon } from "./picklist-item.style";
|
|
6
6
|
import FocusContext from "../duelling-picklist.context";
|
|
7
7
|
import Events from "../../../__internal__/utils/helpers/events";
|
|
8
|
-
const PicklistItem = /*#__PURE__*/React.forwardRef((
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} = _ref;
|
|
8
|
+
const PicklistItem = /*#__PURE__*/React.forwardRef(({
|
|
9
|
+
children,
|
|
10
|
+
type,
|
|
11
|
+
onChange,
|
|
12
|
+
item,
|
|
13
|
+
locked,
|
|
14
|
+
tooltipMessage = "This item is locked and can not be moved",
|
|
15
|
+
index,
|
|
16
|
+
listIndex,
|
|
17
|
+
groupIndex,
|
|
18
|
+
isLastGroup,
|
|
19
|
+
isLastItem,
|
|
20
|
+
...transitionGroupProps
|
|
21
|
+
}, ref) => {
|
|
23
22
|
const {
|
|
24
23
|
setElementToFocus
|
|
25
24
|
} = useContext(FocusContext);
|
|
@@ -4,11 +4,9 @@ import Icon from "../../icon";
|
|
|
4
4
|
import StyledIcon from "../../icon/icon.style";
|
|
5
5
|
const StyledPicklistItem = styled.li`
|
|
6
6
|
border-radius: var(--borderRadius100);
|
|
7
|
-
${
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} = _ref;
|
|
11
|
-
return css`
|
|
7
|
+
${({
|
|
8
|
+
locked
|
|
9
|
+
}) => css`
|
|
12
10
|
display: flex;
|
|
13
11
|
align-items: center;
|
|
14
12
|
width: 100%;
|
|
@@ -31,8 +29,7 @@ const StyledPicklistItem = styled.li`
|
|
|
31
29
|
& + & {
|
|
32
30
|
margin-top: 8px;
|
|
33
31
|
}
|
|
34
|
-
|
|
35
|
-
}}
|
|
32
|
+
`}
|
|
36
33
|
`;
|
|
37
34
|
const StyledButton = styled(Button)`
|
|
38
35
|
border-bottom-right-radius: var(--borderRadius100);
|
|
@@ -54,11 +51,9 @@ const StyledButton = styled(Button)`
|
|
|
54
51
|
border-top-left-radius: var(--borderRadius000);
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
${
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} = _ref2;
|
|
61
|
-
return css`
|
|
54
|
+
${({
|
|
55
|
+
iconType
|
|
56
|
+
}) => css`
|
|
62
57
|
padding: 0;
|
|
63
58
|
margin-right: 0;
|
|
64
59
|
margin-left: auto;
|
|
@@ -67,8 +62,7 @@ const StyledButton = styled(Button)`
|
|
|
67
62
|
|
|
68
63
|
&:focus {
|
|
69
64
|
background: ${iconType === "add" ? "var(--colorsActionMajor600)" : "var(--colorsSemanticNegative600)"};
|
|
70
|
-
|
|
71
|
-
}}
|
|
65
|
+
`}
|
|
72
66
|
`;
|
|
73
67
|
const StyledLockIcon = styled(Icon)`
|
|
74
68
|
margin-right: 0;
|
package/esm/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { StyledPicklistPlaceholder } from "../duelling-picklist.style";
|
|
4
|
-
export const PicklistPlaceholder =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"data-element": "picklist-placeholder"
|
|
10
|
-
}, text);
|
|
11
|
-
};
|
|
4
|
+
export const PicklistPlaceholder = ({
|
|
5
|
+
text
|
|
6
|
+
}) => /*#__PURE__*/React.createElement(StyledPicklistPlaceholder, {
|
|
7
|
+
"data-element": "picklist-placeholder"
|
|
8
|
+
}, text);
|
|
12
9
|
export default PicklistPlaceholder;
|
|
@@ -6,13 +6,12 @@ import { FieldsetStyle, LegendContainerStyle, FieldsetContentStyle } from "./fie
|
|
|
6
6
|
import { NewValidationContext } from "../carbon-provider/carbon-provider.component";
|
|
7
7
|
import FormSpacingProvider from "../../__internal__/form-spacing-provider";
|
|
8
8
|
import useFormSpacing from "../../hooks/__internal__/useFormSpacing";
|
|
9
|
-
export const Fieldset =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
9
|
+
export const Fieldset = ({
|
|
10
|
+
children,
|
|
11
|
+
inline = false,
|
|
12
|
+
legend,
|
|
13
|
+
...rest
|
|
14
|
+
}) => {
|
|
16
15
|
const getLegend = () => {
|
|
17
16
|
if (!legend) return null;
|
|
18
17
|
return /*#__PURE__*/React.createElement(LegendContainerStyle, {
|
|
@@ -25,15 +25,12 @@ FieldsetStyle.defaultProps = {
|
|
|
25
25
|
theme: baseTheme
|
|
26
26
|
};
|
|
27
27
|
const LegendContainerStyle = styled.div`
|
|
28
|
-
${
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} = _ref;
|
|
32
|
-
return inline && `
|
|
28
|
+
${({
|
|
29
|
+
inline
|
|
30
|
+
}) => inline && `
|
|
33
31
|
margin-right: 32px;
|
|
34
32
|
height: 34px !important;
|
|
35
|
-
|
|
36
|
-
}}
|
|
33
|
+
`}
|
|
37
34
|
display: flex;
|
|
38
35
|
align-items: center;
|
|
39
36
|
margin-bottom: 32px;
|
|
@@ -50,11 +47,8 @@ const LegendContainerStyle = styled.div`
|
|
|
50
47
|
}
|
|
51
48
|
`;
|
|
52
49
|
const FieldsetContentStyle = styled.div`
|
|
53
|
-
${
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} = _ref2;
|
|
57
|
-
return inline && "display: flex;";
|
|
58
|
-
}}
|
|
50
|
+
${({
|
|
51
|
+
inline
|
|
52
|
+
}) => inline && "display: flex;"}
|
|
59
53
|
`;
|
|
60
54
|
export { FieldsetStyle, LegendContainerStyle, FieldsetContentStyle };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
const FlatTableBody = /*#__PURE__*/React.forwardRef((
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} = _ref;
|
|
4
|
+
const FlatTableBody = /*#__PURE__*/React.forwardRef(({
|
|
5
|
+
children,
|
|
6
|
+
...rest
|
|
7
|
+
}, ref) => {
|
|
9
8
|
return /*#__PURE__*/React.createElement("tbody", _extends({
|
|
10
9
|
ref: ref
|
|
11
10
|
}, rest), children);
|
package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js
CHANGED
|
@@ -6,12 +6,11 @@ import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
6
6
|
import StyledIcon from "../../icon/icon.style";
|
|
7
7
|
import StyledFlatTableBodyDraggable from "./flat-table-body-draggable.style";
|
|
8
8
|
import FlatTableCell from "../flat-table-cell/flat-table-cell.component";
|
|
9
|
-
const DropTarget =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = _ref;
|
|
9
|
+
const DropTarget = ({
|
|
10
|
+
children,
|
|
11
|
+
getOrder,
|
|
12
|
+
...rest
|
|
13
|
+
}) => {
|
|
15
14
|
const [isDragging, setIsDragging] = useState(false);
|
|
16
15
|
const [, drop] = useDrop({
|
|
17
16
|
accept: "flatTableRow",
|
|
@@ -29,12 +28,11 @@ const DropTarget = _ref => {
|
|
|
29
28
|
isDragging: isDragging
|
|
30
29
|
}, rest), children);
|
|
31
30
|
};
|
|
32
|
-
export const FlatTableBodyDraggable =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} = _ref2;
|
|
31
|
+
export const FlatTableBodyDraggable = ({
|
|
32
|
+
children,
|
|
33
|
+
getOrder,
|
|
34
|
+
...rest
|
|
35
|
+
}) => {
|
|
38
36
|
const [draggableItems, setDraggableItems] = useState(React.Children.toArray(children));
|
|
39
37
|
const isFirstRender = useRef(true);
|
|
40
38
|
useEffect(() => {
|