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
|
@@ -30,31 +30,30 @@ const ButtonToggleGroupContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
30
30
|
isInGroup: false
|
|
31
31
|
});
|
|
32
32
|
exports.ButtonToggleGroupContext = ButtonToggleGroupContext;
|
|
33
|
-
const ButtonToggleGroup =
|
|
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;
|
|
33
|
+
const ButtonToggleGroup = ({
|
|
34
|
+
children,
|
|
35
|
+
fieldHelp,
|
|
36
|
+
fieldHelpInline,
|
|
37
|
+
"aria-label": ariaLabel,
|
|
38
|
+
label,
|
|
39
|
+
labelHelp,
|
|
40
|
+
labelSpacing,
|
|
41
|
+
inputWidth,
|
|
42
|
+
fullWidth,
|
|
43
|
+
labelInline,
|
|
44
|
+
labelWidth,
|
|
45
|
+
labelAlign,
|
|
46
|
+
name,
|
|
47
|
+
onChange,
|
|
48
|
+
value,
|
|
49
|
+
"data-component": dataComponent = "button-toggle-group",
|
|
50
|
+
"data-element": dataElement,
|
|
51
|
+
"data-role": dataRole,
|
|
52
|
+
helpAriaLabel,
|
|
53
|
+
id,
|
|
54
|
+
allowDeselect,
|
|
55
|
+
...props
|
|
56
|
+
}) => {
|
|
58
57
|
const hasCorrectItemStructure = (0, _react.useMemo)(() => {
|
|
59
58
|
const incorrectChild = _react.default.Children.toArray(children).find(child => {
|
|
60
59
|
return ! /*#__PURE__*/_react.default.isValidElement(child) || child.type.displayName !== _.ButtonToggle.displayName;
|
|
@@ -11,14 +11,11 @@ var _buttonToggle = require("../button-toggle.style");
|
|
|
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 StyledButtonToggleGroupWrapper = _styledComponents.default.div`
|
|
14
|
-
${
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
18
|
-
return labelInline && (0, _styledComponents.css)`
|
|
14
|
+
${({
|
|
15
|
+
labelInline
|
|
16
|
+
}) => labelInline && (0, _styledComponents.css)`
|
|
19
17
|
display: flex;
|
|
20
|
-
|
|
21
|
-
}}
|
|
18
|
+
`}
|
|
22
19
|
`;
|
|
23
20
|
exports.StyledButtonToggleGroupWrapper = StyledButtonToggleGroupWrapper;
|
|
24
21
|
const StyledButtonToggleGroup = _styledComponents.default.div`
|
|
@@ -44,28 +41,22 @@ const StyledButtonToggleGroup = _styledComponents.default.div`
|
|
|
44
41
|
border-bottom-right-radius: var(--borderRadius400);
|
|
45
42
|
}
|
|
46
43
|
|
|
47
|
-
${
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} = _ref2;
|
|
51
|
-
return fullWidth && (0, _styledComponents.css)`
|
|
44
|
+
${({
|
|
45
|
+
fullWidth
|
|
46
|
+
}) => fullWidth && (0, _styledComponents.css)`
|
|
52
47
|
${_buttonToggle.StyledButtonToggle} {
|
|
53
48
|
width: 100%;
|
|
54
49
|
}
|
|
55
50
|
${_buttonToggle.StyledButtonToggleWrapper} {
|
|
56
51
|
flex: auto;
|
|
57
52
|
}
|
|
58
|
-
|
|
59
|
-
}}
|
|
53
|
+
`}
|
|
60
54
|
|
|
61
|
-
${
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} = _ref3;
|
|
65
|
-
return inputWidth && (0, _styledComponents.css)`
|
|
55
|
+
${({
|
|
56
|
+
inputWidth
|
|
57
|
+
}) => inputWidth && (0, _styledComponents.css)`
|
|
66
58
|
width: ${`${inputWidth}%`};
|
|
67
|
-
|
|
68
|
-
}}
|
|
59
|
+
`}
|
|
69
60
|
`;
|
|
70
61
|
StyledButtonToggleGroup.defaultProps = {
|
|
71
62
|
theme: _themes.baseTheme
|
|
@@ -9,23 +9,20 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _buttonToggle = require("./button-toggle.style");
|
|
10
10
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
const ButtonToggleIcon =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
disabled: disabled
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
12
|
+
const ButtonToggleIcon = ({
|
|
13
|
+
buttonIcon,
|
|
14
|
+
buttonIconSize,
|
|
15
|
+
disabled,
|
|
16
|
+
hasContent
|
|
17
|
+
}) => /*#__PURE__*/_react.default.createElement(_buttonToggle.StyledButtonToggleIcon, {
|
|
18
|
+
buttonIconSize: buttonIconSize,
|
|
19
|
+
hasContent: hasContent
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
21
|
+
"aria-hidden": true,
|
|
22
|
+
type: buttonIcon,
|
|
23
|
+
fontSize: buttonIconSize,
|
|
24
|
+
bgSize: "extra-small",
|
|
25
|
+
disabled: disabled
|
|
26
|
+
}));
|
|
30
27
|
var _default = ButtonToggleIcon;
|
|
31
28
|
exports.default = _default;
|
|
@@ -20,27 +20,26 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
20
20
|
let deprecateCheckedWarnTriggered = false;
|
|
21
21
|
let deprecateNameWarnTriggered = false;
|
|
22
22
|
let deprecateUncontrolledWarnTriggered = false;
|
|
23
|
-
const ButtonToggle =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
23
|
+
const ButtonToggle = ({
|
|
24
|
+
"aria-label": ariaLabel,
|
|
25
|
+
"aria-labelledby": ariaLabelledBy,
|
|
26
|
+
buttonIcon,
|
|
27
|
+
buttonIconSize = "small",
|
|
28
|
+
checked,
|
|
29
|
+
children,
|
|
30
|
+
"data-component": dataComponent,
|
|
31
|
+
"data-element": dataElement,
|
|
32
|
+
"data-role": dataRole,
|
|
33
|
+
disabled,
|
|
34
|
+
grouped,
|
|
35
|
+
name,
|
|
36
|
+
onBlur,
|
|
37
|
+
onFocus,
|
|
38
|
+
onClick,
|
|
39
|
+
pressed,
|
|
40
|
+
size = "medium",
|
|
41
|
+
value
|
|
42
|
+
}) => {
|
|
44
43
|
!!!(children || buttonIcon) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "Either prop `buttonIcon` must be defined, or this node must have children") : (0, _invariant.default)(false) : void 0;
|
|
45
44
|
if (checked !== undefined && !deprecateCheckedWarnTriggered) {
|
|
46
45
|
deprecateCheckedWarnTriggered = true;
|
|
@@ -51,16 +51,13 @@ const StyledButtonToggle = _styledComponents.default.button`
|
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
max-width: 100%;
|
|
53
53
|
|
|
54
|
-
${
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} = _ref;
|
|
58
|
-
return (0, _styledComponents.css)`
|
|
54
|
+
${({
|
|
55
|
+
size
|
|
56
|
+
}) => (0, _styledComponents.css)`
|
|
59
57
|
height: ${heightConfig[size]}px;
|
|
60
58
|
padding: 0 ${paddingConfig[size]}px;
|
|
61
59
|
font-size: ${fontSizeConfig[size]}px;
|
|
62
|
-
|
|
63
|
-
}}
|
|
60
|
+
`}
|
|
64
61
|
font-weight: 700;
|
|
65
62
|
background-color: transparent;
|
|
66
63
|
cursor: pointer;
|
|
@@ -77,14 +74,11 @@ const StyledButtonToggle = _styledComponents.default.button`
|
|
|
77
74
|
&[aria-pressed="true"] {
|
|
78
75
|
background-color: var(--colorsActionMinor300);
|
|
79
76
|
color: var(--colorsActionMinor600);
|
|
80
|
-
${
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
} = _ref2;
|
|
84
|
-
return !allowDeselect && (0, _styledComponents.css)`
|
|
77
|
+
${({
|
|
78
|
+
allowDeselect
|
|
79
|
+
}) => !allowDeselect && (0, _styledComponents.css)`
|
|
85
80
|
cursor: auto;
|
|
86
|
-
|
|
87
|
-
}}
|
|
81
|
+
`}
|
|
88
82
|
}
|
|
89
83
|
|
|
90
84
|
:not([aria-pressed="true"]):not(:disabled):hover {
|
|
@@ -100,23 +94,18 @@ const StyledButtonToggle = _styledComponents.default.button`
|
|
|
100
94
|
color: var(--colorsActionMinor500);
|
|
101
95
|
}
|
|
102
96
|
|
|
103
|
-
${
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
} = _ref3;
|
|
109
|
-
return buttonIcon && buttonIconSize === "large" && (0, _styledComponents.css)`
|
|
97
|
+
${({
|
|
98
|
+
buttonIcon,
|
|
99
|
+
buttonIconSize,
|
|
100
|
+
size
|
|
101
|
+
}) => buttonIcon && buttonIconSize === "large" && (0, _styledComponents.css)`
|
|
110
102
|
height: ${heightLargeIconConfig[size]}px;
|
|
111
103
|
padding: 0 ${paddingLargeIconConfig[size]}px;
|
|
112
104
|
flex-direction: column;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
disabled
|
|
118
|
-
} = _ref4;
|
|
119
|
-
return disabled && (0, _styledComponents.css)`
|
|
105
|
+
`}
|
|
106
|
+
${({
|
|
107
|
+
disabled
|
|
108
|
+
}) => disabled && (0, _styledComponents.css)`
|
|
120
109
|
& {
|
|
121
110
|
border-color: var(--colorsActionDisabled500);
|
|
122
111
|
color: var(--colorsActionMinorYin030);
|
|
@@ -125,8 +114,7 @@ const StyledButtonToggle = _styledComponents.default.button`
|
|
|
125
114
|
}
|
|
126
115
|
}
|
|
127
116
|
cursor: not-allowed;
|
|
128
|
-
|
|
129
|
-
}};
|
|
117
|
+
`};
|
|
130
118
|
`;
|
|
131
119
|
exports.StyledButtonToggle = StyledButtonToggle;
|
|
132
120
|
const iconFontSizes = {
|
|
@@ -134,17 +122,12 @@ const iconFontSizes = {
|
|
|
134
122
|
largeIcon: 32
|
|
135
123
|
};
|
|
136
124
|
const StyledButtonToggleIcon = _styledComponents.default.div`
|
|
137
|
-
${
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
${_ref6 => {
|
|
144
|
-
let {
|
|
145
|
-
buttonIconSize
|
|
146
|
-
} = _ref6;
|
|
147
|
-
return buttonIconSize === "large" && (0, _styledComponents.css)`
|
|
125
|
+
${({
|
|
126
|
+
hasContent
|
|
127
|
+
}) => hasContent && `margin-right: 8px;`}
|
|
128
|
+
${({
|
|
129
|
+
buttonIconSize
|
|
130
|
+
}) => buttonIconSize === "large" && (0, _styledComponents.css)`
|
|
148
131
|
margin-right: 0;
|
|
149
132
|
${_icon.default} {
|
|
150
133
|
margin-right: 0;
|
|
@@ -159,19 +142,16 @@ const StyledButtonToggleIcon = _styledComponents.default.div`
|
|
|
159
142
|
.carbon-icon__svg--credit-card-slash {
|
|
160
143
|
margin-left: 6px;
|
|
161
144
|
}
|
|
162
|
-
|
|
163
|
-
}}
|
|
145
|
+
`}
|
|
164
146
|
`;
|
|
165
147
|
exports.StyledButtonToggleIcon = StyledButtonToggleIcon;
|
|
166
148
|
const StyledButtonToggleWrapper = _styledComponents.default.div`
|
|
167
149
|
display: inline-block;
|
|
168
150
|
vertical-align: middle;
|
|
169
151
|
|
|
170
|
-
${
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
} = _ref7;
|
|
174
|
-
return (0, _styledComponents.css)`
|
|
152
|
+
${({
|
|
153
|
+
grouped
|
|
154
|
+
}) => (0, _styledComponents.css)`
|
|
175
155
|
${!grouped && (0, _styledComponents.css)`
|
|
176
156
|
&&&& {
|
|
177
157
|
${StyledButtonToggle} {
|
|
@@ -197,22 +177,18 @@ const StyledButtonToggleWrapper = _styledComponents.default.div`
|
|
|
197
177
|
}
|
|
198
178
|
}
|
|
199
179
|
`}
|
|
200
|
-
|
|
201
|
-
}}
|
|
180
|
+
`}
|
|
202
181
|
|
|
203
182
|
&:not(:first-of-type) {
|
|
204
183
|
margin-left: 8px;
|
|
205
184
|
}
|
|
206
185
|
|
|
207
|
-
${
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
} = _ref8;
|
|
211
|
-
return grouped && (0, _styledComponents.css)`
|
|
186
|
+
${({
|
|
187
|
+
grouped
|
|
188
|
+
}) => grouped && (0, _styledComponents.css)`
|
|
212
189
|
&:not(:first-of-type) {
|
|
213
190
|
margin-left: -1px;
|
|
214
191
|
}
|
|
215
|
-
|
|
216
|
-
}};
|
|
192
|
+
`};
|
|
217
193
|
`;
|
|
218
194
|
exports.StyledButtonToggleWrapper = StyledButtonToggleWrapper;
|
|
@@ -15,13 +15,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
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; }
|
|
16
16
|
const NewValidationContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
17
17
|
exports.NewValidationContext = NewValidationContext;
|
|
18
|
-
const CarbonProvider =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
18
|
+
const CarbonProvider = ({
|
|
19
|
+
children,
|
|
20
|
+
theme = _themes.mintTheme,
|
|
21
|
+
validationRedesignOptIn = false,
|
|
22
|
+
roundedCornersOptOut = false
|
|
23
|
+
}) => {
|
|
25
24
|
const {
|
|
26
25
|
roundedCornersOptOut: existingRoundedCornersOptOut
|
|
27
26
|
} = (0, _react.useContext)(NewValidationContext);
|
|
@@ -10,10 +10,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
10
10
|
const TopModalContext = /*#__PURE__*/(0, _react.createContext)({
|
|
11
11
|
topModal: null
|
|
12
12
|
});
|
|
13
|
-
const TopModalContextProvider =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = _ref;
|
|
13
|
+
const TopModalContextProvider = ({
|
|
14
|
+
children
|
|
15
|
+
}) => {
|
|
17
16
|
const [topModal, setTopModal] = (0, _react.useState)(null);
|
|
18
17
|
|
|
19
18
|
// can't add the setter to the global list inside useEffect because that doesn't run until
|
|
@@ -8,16 +8,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _cardColumn = _interopRequireDefault(require("./card-column.style"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
const CardColumn =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"data-element": "card-column"
|
|
19
|
-
}, children);
|
|
20
|
-
};
|
|
11
|
+
const CardColumn = ({
|
|
12
|
+
align = "center",
|
|
13
|
+
children
|
|
14
|
+
}) => /*#__PURE__*/_react.default.createElement(_cardColumn.default, {
|
|
15
|
+
align: align,
|
|
16
|
+
"data-element": "card-column"
|
|
17
|
+
}, children);
|
|
21
18
|
CardColumn.displayName = "CardColumn";
|
|
22
19
|
var _default = CardColumn;
|
|
23
20
|
exports.default = _default;
|
|
@@ -8,12 +8,9 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const StyledCardColumn = _styledComponents.default.div`
|
|
10
10
|
flex-grow: 1;
|
|
11
|
-
text-align: ${
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = _ref;
|
|
15
|
-
return align;
|
|
16
|
-
}};
|
|
11
|
+
text-align: ${({
|
|
12
|
+
align
|
|
13
|
+
}) => align};
|
|
17
14
|
`;
|
|
18
15
|
var _default = StyledCardColumn;
|
|
19
16
|
exports.default = _default;
|
|
@@ -13,13 +13,12 @@ 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 CardFooter =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} = _ref;
|
|
16
|
+
const CardFooter = ({
|
|
17
|
+
spacing = "medium",
|
|
18
|
+
children,
|
|
19
|
+
variant = "default",
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
23
22
|
const {
|
|
24
23
|
roundness
|
|
25
24
|
} = (0, _react.useContext)(_cardContext.default);
|
|
@@ -23,13 +23,11 @@ const paddingSizes = {
|
|
|
23
23
|
const StyledCardFooter = _styledComponents.default.div`
|
|
24
24
|
${_styledSystem.space}
|
|
25
25
|
|
|
26
|
-
${
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} = _ref;
|
|
32
|
-
return (0, _styledComponents.css)`
|
|
26
|
+
${({
|
|
27
|
+
spacing,
|
|
28
|
+
variant,
|
|
29
|
+
roundness = "default"
|
|
30
|
+
}) => (0, _styledComponents.css)`
|
|
33
31
|
background-color: ${variant === "transparent" ? "transparent" : "var(--colorsUtilityMajor025)"};
|
|
34
32
|
border-top: var(--colorsUtilityMajor100);
|
|
35
33
|
border-top-width: 1px;
|
|
@@ -51,8 +49,7 @@ const StyledCardFooter = _styledComponents.default.div`
|
|
|
51
49
|
margin: 0;
|
|
52
50
|
padding: ${paddingSizes[spacing]};
|
|
53
51
|
}
|
|
54
|
-
|
|
55
|
-
}}
|
|
52
|
+
`}
|
|
56
53
|
`;
|
|
57
54
|
var _default = StyledCardFooter;
|
|
58
55
|
exports.default = _default;
|
|
@@ -10,12 +10,11 @@ var _utils = require("../../../style/utils");
|
|
|
10
10
|
var _cardRow = _interopRequireDefault(require("./card-row.style"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
|
-
const CardRow =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
13
|
+
const CardRow = ({
|
|
14
|
+
children,
|
|
15
|
+
spacing = "medium",
|
|
16
|
+
...rest
|
|
17
|
+
}) => {
|
|
19
18
|
return /*#__PURE__*/_react.default.createElement(_cardRow.default, _extends({
|
|
20
19
|
"data-element": "card-row",
|
|
21
20
|
spacing: spacing
|
|
@@ -17,15 +17,12 @@ const paddingSizes = {
|
|
|
17
17
|
};
|
|
18
18
|
const StyledCardRow = _styledComponents.default.div`
|
|
19
19
|
display: flex;
|
|
20
|
-
${
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = _ref;
|
|
24
|
-
return (0, _styledComponents.css)`
|
|
20
|
+
${({
|
|
21
|
+
spacing
|
|
22
|
+
}) => (0, _styledComponents.css)`
|
|
25
23
|
padding-top: ${paddingSizes[spacing]};
|
|
26
24
|
padding-bottom: ${paddingSizes[spacing]};
|
|
27
|
-
|
|
28
|
-
}}
|
|
25
|
+
`}
|
|
29
26
|
|
|
30
27
|
${_styledSystem.padding}
|
|
31
28
|
`;
|
|
@@ -20,23 +20,22 @@ function hasDisplayName(child, displayName) {
|
|
|
20
20
|
return child.type.displayName === displayName;
|
|
21
21
|
}
|
|
22
22
|
let isDeprecationWarningTriggered = false;
|
|
23
|
-
const Card =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} = _ref;
|
|
23
|
+
const Card = ({
|
|
24
|
+
"data-element": dataElement,
|
|
25
|
+
"data-role": dataRole,
|
|
26
|
+
dataRole: oldDataRole,
|
|
27
|
+
action,
|
|
28
|
+
children,
|
|
29
|
+
cardWidth = "500px",
|
|
30
|
+
draggable,
|
|
31
|
+
height,
|
|
32
|
+
interactive,
|
|
33
|
+
spacing = "medium",
|
|
34
|
+
boxShadow,
|
|
35
|
+
hoverBoxShadow,
|
|
36
|
+
roundness = "default",
|
|
37
|
+
...rest
|
|
38
|
+
}) => {
|
|
40
39
|
if (!isDeprecationWarningTriggered && oldDataRole) {
|
|
41
40
|
isDeprecationWarningTriggered = true;
|
|
42
41
|
_logger.default.deprecate("The `dataRole` prop of `Card` is now deprecated. Please use the kebab-case version `data-role` instead.");
|
|
@@ -16,18 +16,16 @@ const paddingSizes = {
|
|
|
16
16
|
large: "0 48px"
|
|
17
17
|
};
|
|
18
18
|
const StyledCard = _styledComponents.default.div`
|
|
19
|
-
${
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
30
|
-
return (0, _styledComponents.css)`
|
|
19
|
+
${({
|
|
20
|
+
cardWidth,
|
|
21
|
+
interactive,
|
|
22
|
+
draggable,
|
|
23
|
+
height,
|
|
24
|
+
spacing,
|
|
25
|
+
boxShadow = "boxShadow050",
|
|
26
|
+
hoverBoxShadow = "boxShadow100",
|
|
27
|
+
roundness
|
|
28
|
+
}) => (0, _styledComponents.css)`
|
|
31
29
|
background-color: var(--colorsUtilityYang100);
|
|
32
30
|
border: none;
|
|
33
31
|
border-radius: ${roundness === "default" ? "var(--borderRadius100)" : "var(--borderRadius200)"};
|
|
@@ -61,8 +59,7 @@ const StyledCard = _styledComponents.default.div`
|
|
|
61
59
|
::-moz-focus-inner {
|
|
62
60
|
border: 0;
|
|
63
61
|
}
|
|
64
|
-
|
|
65
|
-
}}
|
|
62
|
+
`}
|
|
66
63
|
`;
|
|
67
64
|
StyledCard.defaultProps = {
|
|
68
65
|
theme: _base.default
|
|
@@ -15,18 +15,17 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
16
|
const NEXT = "next";
|
|
17
17
|
const PREVIOUS = "previous";
|
|
18
|
-
const Carousel =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
18
|
+
const Carousel = ({
|
|
19
|
+
children,
|
|
20
|
+
className,
|
|
21
|
+
enableSlideSelector = true,
|
|
22
|
+
enablePreviousButton = true,
|
|
23
|
+
enableNextButton = true,
|
|
24
|
+
initialSlideIndex = 0,
|
|
25
|
+
onSlideChange,
|
|
26
|
+
slideIndex,
|
|
27
|
+
...props
|
|
28
|
+
}) => {
|
|
30
29
|
const [selectedSlideIndex, setSelectedSlideIndex] = (0, _react.useState)(Number(slideIndex) || Number(initialSlideIndex));
|
|
31
30
|
const transitionDirection = (0, _react.useRef)(NEXT);
|
|
32
31
|
const lastSlideIndexProp = (0, _react.useRef)(slideIndex);
|