carbon-react 124.2.0 → 124.2.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__/checkable-input/checkable-input.component.js +0 -1
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +0 -1
- package/esm/__internal__/focus-trap/focus-trap-utils.js +0 -1
- package/esm/__internal__/input/input.component.js +0 -1
- package/esm/components/accordion/accordion-group/accordion-group.component.js +1 -0
- package/esm/components/box/box.component.js +303 -45
- package/esm/components/checkbox/checkbox.component.js +0 -1
- package/esm/components/date/__internal__/utils.js +0 -1
- package/esm/components/date/date.component.js +0 -7
- package/esm/components/decimal/decimal.component.js +0 -1
- package/esm/components/grouped-character/grouped-character.component.js +0 -1
- package/esm/components/message/message-content/message-content.style.js +0 -8
- package/esm/components/navigation-bar/navigation-bar.component.js +293 -35
- package/esm/components/number/number.component.js +0 -1
- package/esm/components/radio-button/radio-button.component.js +0 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +7 -2
- package/esm/components/select/multi-select/multi-select.component.js +0 -1
- package/esm/components/select/option/option.component.js +0 -1
- package/esm/components/select/select-textbox/select-textbox.component.js +1 -5
- package/esm/components/select/simple-select/simple-select.component.js +0 -1
- package/esm/components/switch/switch.component.js +0 -1
- package/esm/components/textarea/textarea.component.js +0 -1
- package/esm/components/textbox/textbox.component.js +4 -5
- package/esm/components/toast/toast.component.js +4 -4
- package/esm/components/toast/toast.style.d.ts +14 -13
- package/esm/components/toast/toast.style.js +42 -14
- package/lib/__internal__/character-count/character-count.component.js +1 -2
- package/lib/__internal__/character-count/character-count.style.js +6 -10
- package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.js +1 -2
- package/lib/__internal__/checkable-input/checkable-input.component.js +3 -5
- package/lib/__internal__/checkable-input/checkable-input.style.js +5 -7
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +3 -5
- package/lib/__internal__/checkable-input/hidden-checkable-input.style.js +1 -2
- package/lib/__internal__/field-help/field-help.component.js +1 -2
- package/lib/__internal__/field-help/field-help.style.js +3 -4
- package/lib/__internal__/fieldset/fieldset.component.js +3 -4
- package/lib/__internal__/fieldset/fieldset.style.js +6 -9
- package/lib/__internal__/focus-trap/focus-trap-utils.js +1 -3
- package/lib/__internal__/focus-trap/focus-trap.component.js +6 -8
- package/lib/__internal__/form-field/form-field.component.js +3 -4
- package/lib/__internal__/form-field/form-field.style.js +4 -6
- package/lib/__internal__/form-spacing-provider/form-spacing-context.js +1 -2
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +1 -2
- package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +3 -4
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +4 -6
- package/lib/__internal__/i18n-context/index.js +1 -2
- package/lib/__internal__/input/index.js +1 -2
- package/lib/__internal__/input/input-presentation.component.js +3 -4
- package/lib/__internal__/input/input-presentation.style.js +4 -6
- package/lib/__internal__/input/input-sizes.style.js +1 -2
- package/lib/__internal__/input/input.component.js +3 -5
- package/lib/__internal__/input/input.style.js +3 -4
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +1 -2
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +1 -2
- package/lib/__internal__/input-behaviour/useInputBehaviour.js +1 -2
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.js +1 -2
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +3 -4
- package/lib/__internal__/label/icon-wrapper.style.js +1 -2
- package/lib/__internal__/label/label.component.js +3 -4
- package/lib/__internal__/label/label.style.js +4 -6
- package/lib/__internal__/popover/popover.component.js +3 -4
- package/lib/__internal__/popover/popover.style.js +3 -5
- package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +3 -4
- package/lib/__internal__/sticky-footer/sticky-footer.component.js +3 -4
- package/lib/__internal__/sticky-footer/sticky-footer.style.js +3 -4
- package/lib/__internal__/tooltip-provider/index.js +3 -4
- package/lib/__internal__/utils/helpers/browser-type-check/index.js +1 -2
- package/lib/__internal__/utils/helpers/events/events.js +1 -2
- package/lib/__internal__/utils/helpers/tags/tags.js +1 -2
- package/lib/__internal__/utils/logger/index.js +1 -2
- package/lib/__internal__/validation-message/validation-message.component.js +1 -2
- package/lib/__internal__/validation-message/validation-message.style.js +3 -4
- package/lib/__internal__/validations/validation-icon.component.js +3 -4
- package/lib/__internal__/validations/validation-icon.style.js +3 -4
- package/lib/__spec_helper__/mock-resize-observer.js +1 -2
- package/lib/__spec_helper__/test-utils.js +6 -12
- package/lib/components/accordion/accordion-group/accordion-group.component.js +3 -4
- package/lib/components/accordion/accordion.component.js +4 -6
- package/lib/components/accordion/accordion.style.js +11 -20
- package/lib/components/action-popover/action-popover-context.js +1 -2
- package/lib/components/action-popover/action-popover-divider/action-popover-divider.component.js +1 -2
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +3 -4
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +3 -4
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +1 -2
- package/lib/components/action-popover/action-popover.component.js +3 -4
- package/lib/components/action-popover/action-popover.style.js +15 -27
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +3 -4
- package/lib/components/advanced-color-picker/advanced-color-picker.component.js +3 -4
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +7 -11
- package/lib/components/alert/alert.component.js +1 -2
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +1 -2
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +3 -4
- package/lib/components/anchor-navigation/anchor-navigation.component.js +3 -4
- package/lib/components/anchor-navigation/anchor-navigation.style.js +4 -7
- package/lib/components/anchor-navigation/anchor-section-divider.component.js +1 -2
- package/lib/components/badge/badge.component.js +1 -2
- package/lib/components/badge/badge.style.js +6 -10
- package/lib/components/batch-selection/batch-selection.component.js +1 -2
- package/lib/components/batch-selection/batch-selection.style.js +5 -7
- package/lib/components/box/box.component.js +305 -49
- package/lib/components/box/box.config.js +2 -3
- package/lib/components/box/box.style.js +3 -4
- package/lib/components/breadcrumbs/breadcrumbs.component.js +2 -4
- package/lib/components/breadcrumbs/breadcrumbs.style.js +1 -2
- package/lib/components/breadcrumbs/crumb/crumb.component.js +1 -2
- package/lib/components/breadcrumbs/crumb/crumb.style.js +6 -9
- package/lib/components/button/button.component.js +4 -6
- package/lib/components/button/button.config.js +3 -6
- package/lib/components/button/button.style.js +4 -6
- package/lib/components/button/index.js +2 -2
- package/lib/components/button-bar/button-bar.component.js +2 -4
- package/lib/components/button-bar/button-bar.config.js +2 -4
- package/lib/components/button-bar/button-bar.style.js +3 -4
- package/lib/components/button-minor/button-minor.component.js +3 -4
- package/lib/components/button-minor/button-minor.style.js +3 -4
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +4 -6
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.js +4 -6
- package/lib/components/button-toggle/button-toggle-icon.component.js +1 -2
- package/lib/components/button-toggle/button-toggle.component.js +3 -4
- package/lib/components/button-toggle/button-toggle.style.js +7 -11
- package/lib/components/carbon-provider/carbon-provider.component.js +4 -6
- package/lib/components/carbon-provider/top-modal-context.js +3 -4
- package/lib/components/card/__internal__/card-context/index.js +1 -2
- package/lib/components/card/card-column/card-column.component.js +1 -2
- package/lib/components/card/card-column/card-column.style.js +1 -2
- package/lib/components/card/card-footer/card-footer.component.js +3 -4
- package/lib/components/card/card-footer/card-footer.style.js +3 -4
- package/lib/components/card/card-row/card-row.component.js +1 -2
- package/lib/components/card/card-row/card-row.style.js +3 -4
- package/lib/components/card/card.component.js +3 -4
- package/lib/components/card/card.config.js +2 -4
- package/lib/components/card/card.style.js +3 -4
- package/lib/components/carousel/carousel.component.js +3 -4
- package/lib/components/carousel/carousel.style.js +16 -29
- package/lib/components/carousel/slide/slide.component.js +1 -2
- package/lib/components/carousel/slide/slide.style.js +4 -5
- package/lib/components/carousel/slide.config.js +3 -5
- package/lib/components/checkbox/checkbox-group.component.js +4 -6
- package/lib/components/checkbox/checkbox-group.style.js +4 -6
- package/lib/components/checkbox/checkbox-svg.component.js +1 -2
- package/lib/components/checkbox/checkbox.component.js +4 -7
- package/lib/components/checkbox/checkbox.style.js +3 -4
- package/lib/components/confirm/confirm.component.js +3 -4
- package/lib/components/confirm/confirm.config.js +1 -2
- package/lib/components/confirm/confirm.style.js +5 -7
- package/lib/components/content/content.component.js +1 -2
- package/lib/components/content/content.style.js +6 -9
- package/lib/components/date/__internal__/date-formats/index.js +1 -2
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +3 -4
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +3 -4
- package/lib/components/date/__internal__/navbar/button.style.js +1 -2
- package/lib/components/date/__internal__/navbar/navbar.component.js +1 -2
- package/lib/components/date/__internal__/navbar/navbar.style.js +1 -2
- package/lib/components/date/__internal__/utils.js +0 -1
- package/lib/components/date/__internal__/weekday/abbr.style.js +1 -2
- package/lib/components/date/__internal__/weekday/weekday.component.js +1 -2
- package/lib/components/date/__internal__/weekday/weekday.style.js +1 -2
- package/lib/components/date/date.component.js +4 -13
- package/lib/components/date/date.style.js +3 -4
- package/lib/components/date-range/date-range.component.js +3 -4
- package/lib/components/date-range/date-range.context.js +1 -2
- package/lib/components/date-range/date-range.style.js +1 -2
- package/lib/components/decimal/decimal.component.js +4 -7
- package/lib/components/definition-list/__internal__/dl.context.js +1 -2
- package/lib/components/definition-list/dd.component.js +3 -4
- package/lib/components/definition-list/definition-list.style.js +6 -9
- package/lib/components/definition-list/dl.component.js +1 -2
- package/lib/components/definition-list/dt.component.js +3 -4
- package/lib/components/detail/detail.component.js +1 -2
- package/lib/components/detail/detail.style.js +6 -10
- package/lib/components/dialog/dialog.component.js +4 -6
- package/lib/components/dialog/dialog.config.js +5 -10
- package/lib/components/dialog/dialog.style.js +6 -10
- package/lib/components/dialog-full-screen/content.style.js +3 -4
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +3 -4
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +3 -4
- package/lib/components/dismissible-box/dismissible-box.component.js +1 -2
- package/lib/components/dismissible-box/dismissible-box.style.js +4 -5
- package/lib/components/draggable/draggable-container.component.js +3 -4
- package/lib/components/draggable/draggable-item.component.js +1 -2
- package/lib/components/draggable/draggable-item.style.js +3 -6
- package/lib/components/draggable/internal/drop-target.component.js +1 -2
- package/lib/components/drawer/drawer.component.js +4 -6
- package/lib/components/drawer/drawer.style.js +10 -17
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/duelling-picklist/duelling-picklist.component.js +3 -4
- package/lib/components/duelling-picklist/duelling-picklist.context.js +1 -2
- package/lib/components/duelling-picklist/duelling-picklist.style.js +9 -16
- package/lib/components/duelling-picklist/picklist/picklist.component.js +3 -4
- package/lib/components/duelling-picklist/picklist/picklist.style.js +3 -5
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.js +1 -2
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.style.js +1 -2
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +4 -6
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +7 -11
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +4 -6
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +6 -9
- package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +1 -2
- package/lib/components/fieldset/fieldset.component.js +1 -2
- package/lib/components/fieldset/fieldset.style.js +4 -7
- package/lib/components/flat-table/cell-sizes.style.js +2 -3
- package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +2 -4
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +3 -4
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +3 -4
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +3 -4
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +4 -6
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +3 -4
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +3 -4
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +4 -6
- package/lib/components/flat-table/flat-table-head/flat-table-head.style.js +1 -2
- package/lib/components/flat-table/flat-table-header/flat-table-header-utils.js +1 -2
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +3 -4
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +3 -4
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-context.js +2 -3
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +1 -2
- package/lib/components/flat-table/flat-table-row/__internal__/sub-row-provider.js +4 -6
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +4 -6
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +3 -4
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +3 -4
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +5 -7
- package/lib/components/flat-table/flat-table.component.js +4 -6
- package/lib/components/flat-table/flat-table.config.js +2 -4
- package/lib/components/flat-table/flat-table.style.js +6 -10
- package/lib/components/flat-table/sort/sort.component.js +3 -4
- package/lib/components/flat-table/sort/sort.style.js +3 -5
- package/lib/components/form/__internal__/form-summary.component.js +3 -4
- package/lib/components/form/__internal__/form-summary.style.js +6 -9
- package/lib/components/form/form.component.js +3 -4
- package/lib/components/form/form.config.js +3 -5
- package/lib/components/form/form.style.js +8 -14
- package/lib/components/global-header/global-header.component.js +1 -2
- package/lib/components/grid/grid-container/grid-container.component.js +1 -2
- package/lib/components/grid/grid-container/grid-container.style.js +1 -2
- package/lib/components/grid/grid-item/grid-item.component.js +1 -2
- package/lib/components/grid/grid-item/grid-item.style.js +3 -4
- package/lib/components/grouped-character/grouped-character.component.js +4 -7
- package/lib/components/heading/heading.component.js +1 -2
- package/lib/components/heading/heading.style.js +14 -25
- package/lib/components/help/help.component.js +3 -4
- package/lib/components/help/help.config.js +1 -2
- package/lib/components/help/help.style.js +3 -4
- package/lib/components/hr/hr.component.js +1 -2
- package/lib/components/hr/hr.style.js +1 -2
- package/lib/components/i18n-provider/i18n-provider.component.js +1 -2
- package/lib/components/icon/icon-config.js +6 -12
- package/lib/components/icon/icon-unicodes.js +1 -2
- package/lib/components/icon/icon.component.js +3 -4
- package/lib/components/icon/icon.style.js +3 -4
- package/lib/components/icon-button/icon-button.component.js +3 -4
- package/lib/components/icon-button/icon-button.style.js +3 -4
- package/lib/components/image/image.component.js +1 -2
- package/lib/components/image/image.style.js +3 -4
- package/lib/components/inline-inputs/inline-inputs.component.js +3 -4
- package/lib/components/inline-inputs/inline-inputs.config.js +1 -2
- package/lib/components/inline-inputs/inline-inputs.style.js +5 -8
- package/lib/components/link/link.component.js +4 -6
- package/lib/components/link/link.config.js +3 -6
- package/lib/components/link/link.style.js +4 -6
- package/lib/components/link-preview/__internal__/placeholder.component.js +2 -4
- package/lib/components/link-preview/link-preview.component.js +1 -2
- package/lib/components/link-preview/link-preview.style.js +9 -15
- package/lib/components/loader/loader-square.style.js +3 -4
- package/lib/components/loader/loader.component.js +1 -2
- package/lib/components/loader/loader.config.js +1 -2
- package/lib/components/loader/loader.style.js +1 -2
- package/lib/components/loader-bar/loader-bar.component.js +3 -4
- package/lib/components/loader-bar/loader-bar.config.js +1 -2
- package/lib/components/loader-bar/loader-bar.style.js +5 -8
- package/lib/components/menu/__internal__/locators.js +6 -12
- package/lib/components/menu/__internal__/spec-helper/index.js +1 -2
- package/lib/components/menu/__internal__/submenu/submenu.component.js +3 -4
- package/lib/components/menu/__internal__/submenu/submenu.context.js +1 -2
- package/lib/components/menu/__internal__/submenu/submenu.style.js +4 -6
- package/lib/components/menu/menu-divider/menu-divider.component.js +3 -4
- package/lib/components/menu/menu-divider/menu-divider.style.js +3 -4
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +3 -4
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +4 -6
- package/lib/components/menu/menu-item/menu-item.component.js +3 -4
- package/lib/components/menu/menu-item/menu-item.style.js +3 -4
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +3 -4
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +5 -7
- package/lib/components/menu/menu.component.js +3 -4
- package/lib/components/menu/menu.config.js +2 -3
- package/lib/components/menu/menu.context.js +2 -3
- package/lib/components/menu/menu.style.js +4 -6
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +3 -4
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +3 -4
- package/lib/components/message/message-content/message-content.component.js +1 -2
- package/lib/components/message/message-content/message-content.style.js +1 -10
- package/lib/components/message/message.component.js +4 -6
- package/lib/components/message/message.style.js +3 -4
- package/lib/components/message/type-icon/type-icon.component.js +1 -2
- package/lib/components/message/type-icon/type-icon.style.js +3 -4
- package/lib/components/modal/__internal__/modal-manager.js +2 -4
- package/lib/components/modal/index.js +2 -2
- package/lib/components/modal/modal.component.js +4 -6
- package/lib/components/modal/modal.style.js +4 -6
- package/lib/components/multi-action-button/multi-action-button.component.js +3 -4
- package/lib/components/multi-action-button/multi-action-button.config.js +3 -6
- package/lib/components/multi-action-button/multi-action-button.style.js +4 -6
- package/lib/components/navigation-bar/fixed-navigation-bar.context.js +3 -4
- package/lib/components/navigation-bar/navigation-bar.component.js +296 -39
- package/lib/components/navigation-bar/navigation-bar.style.js +3 -4
- package/lib/components/note/__internal__/status-icon/status-icon.component.js +1 -2
- package/lib/components/note/__internal__/status-icon/status-icon.style.js +1 -2
- package/lib/components/note/note.component.js +1 -2
- package/lib/components/note/note.style.js +9 -16
- package/lib/components/number/number.component.js +4 -7
- package/lib/components/numeral-date/numeral-date-context.js +1 -2
- package/lib/components/numeral-date/numeral-date.component.js +4 -6
- package/lib/components/numeral-date/numeral-date.style.js +5 -7
- package/lib/components/pager/__internal__/pager-navigation-link.component.js +3 -4
- package/lib/components/pager/__internal__/pager-navigation.component.js +3 -4
- package/lib/components/pager/pager.component.js +3 -4
- package/lib/components/pager/pager.style.js +13 -23
- package/lib/components/pages/page/page.component.js +3 -4
- package/lib/components/pages/page/page.style.js +2 -4
- package/lib/components/pages/pages.component.js +3 -4
- package/lib/components/pages/pages.config.js +3 -5
- package/lib/components/pages/pages.style.js +2 -4
- package/lib/components/password/password.component.js +3 -4
- package/lib/components/password/password.style.js +3 -5
- package/lib/components/pill/pill.component.js +1 -2
- package/lib/components/pill/pill.style.js +3 -4
- package/lib/components/pod/pod.component.js +3 -4
- package/lib/components/pod/pod.config.js +3 -6
- package/lib/components/pod/pod.style.js +13 -24
- package/lib/components/popover-container/popover-container.component.js +3 -4
- package/lib/components/popover-container/popover-container.style.js +6 -12
- package/lib/components/portal/portal.js +4 -6
- package/lib/components/portrait/portrait.component.js +3 -4
- package/lib/components/portrait/portrait.config.js +4 -7
- package/lib/components/portrait/portrait.style.js +5 -10
- package/lib/components/preview/__internal__/preview-placeholder.component.js +1 -2
- package/lib/components/preview/__internal__/preview-placeholder.style.js +4 -5
- package/lib/components/preview/preview.component.js +1 -2
- package/lib/components/preview/preview.style.js +1 -2
- package/lib/components/profile/profile.component.js +1 -2
- package/lib/components/profile/profile.config.js +3 -5
- package/lib/components/profile/profile.style.js +6 -12
- package/lib/components/progress-tracker/progress-tracker.component.js +3 -4
- package/lib/components/progress-tracker/progress-tracker.config.js +1 -2
- package/lib/components/progress-tracker/progress-tracker.style.js +8 -14
- package/lib/components/radio-button/index.js +1 -2
- package/lib/components/radio-button/radio-button-group.component.js +3 -4
- package/lib/components/radio-button/radio-button-group.style.js +4 -6
- package/lib/components/radio-button/radio-button-svg.component.js +1 -2
- package/lib/components/radio-button/radio-button.component.js +4 -7
- package/lib/components/radio-button/radio-button.style.js +3 -4
- package/lib/components/search/search-button.style.js +2 -4
- package/lib/components/search/search.component.js +4 -6
- package/lib/components/search/search.style.js +3 -4
- package/lib/components/select/__internal__/select-list-context.js +1 -2
- package/lib/components/select/__internal__/select-text/select-text.component.js +1 -2
- package/lib/components/select/__internal__/select-text/select-text.style.js +3 -4
- package/lib/components/select/filterable-select/filterable-select.component.js +11 -8
- package/lib/components/select/list-action-button/list-action-button.component.js +1 -2
- package/lib/components/select/list-action-button/list-action-button.style.js +1 -2
- package/lib/components/select/multi-select/multi-select.component.js +4 -7
- package/lib/components/select/multi-select/multi-select.style.js +3 -6
- package/lib/components/select/option/option.component.js +3 -5
- package/lib/components/select/option/option.style.js +3 -4
- package/lib/components/select/option-group-header/option-group-header.component.js +1 -2
- package/lib/components/select/option-group-header/option-group-header.style.js +1 -2
- package/lib/components/select/option-row/option-row.component.js +3 -4
- package/lib/components/select/option-row/option-row.style.js +3 -4
- package/lib/components/select/select-list/select-list-container.style.js +1 -2
- package/lib/components/select/select-list/select-list.component.js +3 -4
- package/lib/components/select/select-list/select-list.style.js +8 -13
- package/lib/components/select/select-textbox/select-textbox.component.js +4 -9
- package/lib/components/select/select.style.js +3 -4
- package/lib/components/select/simple-select/simple-select.component.js +4 -7
- package/lib/components/select/utils/get-next-index-by-key.js +1 -2
- package/lib/components/select/utils/matching-text.style.js +1 -2
- package/lib/components/select/utils/with-filter.hoc.js +3 -4
- package/lib/components/settings-row/settings-row.component.js +1 -2
- package/lib/components/settings-row/settings-row.style.js +6 -9
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +1 -2
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +3 -4
- package/lib/components/sidebar/index.js +2 -2
- package/lib/components/sidebar/sidebar.component.js +5 -8
- package/lib/components/sidebar/sidebar.config.js +7 -14
- package/lib/components/sidebar/sidebar.style.js +3 -4
- package/lib/components/simple-color-picker/simple-color/simple-color.component.js +4 -6
- package/lib/components/simple-color-picker/simple-color/simple-color.style.js +7 -11
- package/lib/components/simple-color-picker/simple-color-picker.component.js +4 -6
- package/lib/components/simple-color-picker/simple-color-picker.style.js +5 -7
- package/lib/components/split-button/__internal__/split-button.context.js +2 -3
- package/lib/components/split-button/split-button-children.style.js +4 -6
- package/lib/components/split-button/split-button-toggle.style.js +3 -4
- package/lib/components/split-button/split-button.component.js +3 -4
- package/lib/components/split-button/split-button.config.js +4 -8
- package/lib/components/split-button/split-button.style.js +3 -4
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +3 -4
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +7 -11
- package/lib/components/step-sequence/step-sequence.component.js +2 -4
- package/lib/components/step-sequence/step-sequence.config.js +2 -4
- package/lib/components/step-sequence/step-sequence.style.js +3 -4
- package/lib/components/switch/__internal__/switch-slider-panel.style.js +3 -4
- package/lib/components/switch/__internal__/switch-slider.component.js +1 -2
- package/lib/components/switch/__internal__/switch-slider.style.js +3 -4
- package/lib/components/switch/switch.component.js +4 -7
- package/lib/components/switch/switch.style.js +5 -8
- package/lib/components/tabs/__internal__/tab-title/index.js +2 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +4 -6
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +8 -13
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +3 -4
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +9 -15
- package/lib/components/tabs/tab/index.js +2 -2
- package/lib/components/tabs/tab/tab.component.js +4 -6
- package/lib/components/tabs/tab/tab.style.js +3 -4
- package/lib/components/tabs/tabs.component.js +2 -2
- package/lib/components/tabs/tabs.style.js +3 -4
- package/lib/components/text-editor/__internal__/decorators/index.js +1 -2
- package/lib/components/text-editor/__internal__/decorators/link-decorator.js +2 -3
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +3 -4
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.js +1 -2
- package/lib/components/text-editor/__internal__/editor-validation-wrapper/editor-validation-wrapper.component.js +1 -2
- package/lib/components/text-editor/__internal__/editor-validation-wrapper/editor-validation-wrapper.style.js +1 -2
- package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +1 -2
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +2 -4
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -4
- package/lib/components/text-editor/__internal__/toolbar/toolbar.component.js +3 -4
- package/lib/components/text-editor/__internal__/toolbar/toolbar.style.js +4 -7
- package/lib/components/text-editor/index.js +2 -2
- package/lib/components/text-editor/text-editor.component.js +7 -12
- package/lib/components/text-editor/text-editor.style.js +6 -9
- package/lib/components/text-editor/types.js +4 -8
- package/lib/components/textarea/textarea.component.js +4 -7
- package/lib/components/textarea/textarea.style.js +4 -6
- package/lib/components/textbox/__internal__/prefix.style.js +1 -2
- package/lib/components/textbox/textbox.component.js +8 -11
- package/lib/components/textbox/textbox.style.js +5 -7
- package/lib/components/tile/__internal__/tile-context.js +2 -3
- package/lib/components/tile/tile-content/tile-content.component.js +3 -4
- package/lib/components/tile/tile-content/tile-content.style.js +3 -4
- package/lib/components/tile/tile-footer/tile-footer.component.js +1 -2
- package/lib/components/tile/tile-footer/tile-footer.style.js +3 -4
- package/lib/components/tile/tile.component.js +1 -2
- package/lib/components/tile/tile.config.js +2 -4
- package/lib/components/tile/tile.style.js +3 -4
- package/lib/components/tile-select/__internal__/accordion/accordion.component.js +3 -4
- package/lib/components/tile-select/__internal__/accordion/accordion.style.js +3 -5
- package/lib/components/tile-select/tile-select-group.component.js +1 -2
- package/lib/components/tile-select/tile-select.component.js +3 -4
- package/lib/components/tile-select/tile-select.style.js +16 -30
- package/lib/components/toast/toast.component.js +7 -9
- package/lib/components/toast/toast.config.js +1 -2
- package/lib/components/toast/toast.style.d.ts +14 -13
- package/lib/components/toast/toast.style.js +47 -23
- package/lib/components/tooltip/tooltip-pointer.style.js +3 -4
- package/lib/components/tooltip/tooltip.component.js +4 -6
- package/lib/components/tooltip/tooltip.config.js +1 -2
- package/lib/components/tooltip/tooltip.style.js +3 -4
- package/lib/components/typography/typography.component.js +1 -2
- package/lib/components/typography/typography.style.js +3 -4
- package/lib/components/vertical-divider/vertical-divider.component.js +3 -4
- package/lib/components/vertical-divider/vertical-divider.style.js +4 -6
- package/lib/components/vertical-menu/vertical-menu-full-screen.component.js +3 -4
- package/lib/components/vertical-menu/vertical-menu-full-screen.context.js +1 -2
- package/lib/components/vertical-menu/vertical-menu-item.component.js +3 -4
- package/lib/components/vertical-menu/vertical-menu-trigger.component.js +1 -2
- package/lib/components/vertical-menu/vertical-menu.component.js +1 -2
- package/lib/components/vertical-menu/vertical-menu.style.js +11 -19
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +3 -4
- package/lib/hooks/__internal__/useChildButtons/useChildButtons.js +1 -2
- package/lib/hooks/__internal__/useDebounce/useDebounce.js +1 -2
- package/lib/hooks/__internal__/useFloating/useFloating.js +1 -2
- package/lib/hooks/__internal__/useIsStickyFooterForm/useIsStickyFooterForm.js +2 -2
- package/lib/hooks/__internal__/useModalManager/useModalManager.js +1 -2
- package/lib/hooks/__internal__/useScrollBlock/scroll-block-manager.js +1 -2
- package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.js +1 -2
- package/lib/hooks/__internal__/useStableCallback/useStableCallback.js +1 -2
- package/lib/hooks/__internal__/useThrottle/useThrottle.js +1 -2
- package/lib/locales/en-gb.js +1 -2
- package/lib/locales/pl-pl.js +1 -2
- package/lib/style/color-config/index.js +1 -2
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +1 -2
- package/lib/style/design-tokens/debug-theme.util.js +2 -3
- package/lib/style/global-style.js +1 -2
- package/lib/style/palette/index.js +1 -2
- package/lib/style/themes/aegean/index.js +1 -2
- package/lib/style/themes/base/base-theme.config.js +1 -2
- package/lib/style/themes/base/index.js +1 -2
- package/lib/style/themes/index.js +1 -2
- package/lib/style/themes/medium/index.js +2 -3
- package/lib/style/themes/mint/index.js +1 -2
- package/lib/style/themes/none/index.js +1 -2
- package/lib/style/themes/sage/index.js +2 -3
- package/lib/style/themes/small/index.js +2 -3
- package/lib/style/utils/filter-out-position-props.js +1 -2
- package/lib/style/utils/filter-out-styled-system-spacing-props.js +1 -2
- package/lib/style/utils/filter-styled-system-flexbox-props.js +1 -2
- package/lib/style/utils/filter-styled-system-grid-props.js +1 -2
- package/lib/style/utils/filter-styled-system-layout-props.js +1 -2
- package/lib/style/utils/filter-styled-system-margin-props.js +1 -2
- package/lib/style/utils/filter-styled-system-padding-props.js +8 -16
- package/lib/style/utils/get-rgb-values.js +1 -2
- package/lib/style/utils/visually-hidden.js +2 -3
- package/package.json +53 -49
package/lib/locales/en-gb.js
CHANGED
package/lib/locales/pl-pl.js
CHANGED
|
@@ -28,5 +28,4 @@ const CarbonScopedTokensProvider = _styledComponents.default.div`
|
|
|
28
28
|
CarbonScopedTokensProvider.defaultProps = {
|
|
29
29
|
theme: _themes.baseTheme
|
|
30
30
|
};
|
|
31
|
-
var _default = CarbonScopedTokensProvider;
|
|
32
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = CarbonScopedTokensProvider;
|
|
@@ -35,11 +35,10 @@ const debugTheme = themeProperties => Object.fromEntries(Object.entries(themePro
|
|
|
35
35
|
}
|
|
36
36
|
return [key, ""];
|
|
37
37
|
}));
|
|
38
|
-
var _default = {
|
|
38
|
+
var _default = exports.default = {
|
|
39
39
|
...debugTheme(_mint.default),
|
|
40
40
|
compatibility: {
|
|
41
41
|
..._common.default
|
|
42
42
|
},
|
|
43
43
|
name: "sage-debug"
|
|
44
|
-
};
|
|
45
|
-
exports.default = _default;
|
|
44
|
+
};
|
|
@@ -7,5 +7,4 @@ exports.default = void 0;
|
|
|
7
7
|
var _aegeanTheme = _interopRequireDefault(require("./aegean-theme.config"));
|
|
8
8
|
var _base = require("../base");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = (0, _base.mergeWithBase)(_aegeanTheme.default);
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = (0, _base.mergeWithBase)(_aegeanTheme.default);
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.space = exports.default = void 0;
|
|
7
7
|
var _common = _interopRequireDefault(require("@sage/design-tokens/js/base/common"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
const space = ["var(--spacing000)", "var(--spacing100)", "var(--spacing200)", "var(--spacing300)", "var(--spacing400)", "var(--spacing500)", "var(--spacing600)", "var(--spacing700)", "var(--spacing800)", "var(--spacing900)", "var(--spacing1000)"];
|
|
10
|
-
exports.space = space;
|
|
9
|
+
const space = exports.space = ["var(--spacing000)", "var(--spacing100)", "var(--spacing200)", "var(--spacing300)", "var(--spacing400)", "var(--spacing500)", "var(--spacing600)", "var(--spacing700)", "var(--spacing800)", "var(--spacing900)", "var(--spacing1000)"];
|
|
11
10
|
var _default = palette => {
|
|
12
11
|
return {
|
|
13
12
|
name: "base",
|
|
@@ -22,8 +22,7 @@ const palette = {
|
|
|
22
22
|
whiteOpacity
|
|
23
23
|
};
|
|
24
24
|
const baseTheme = (0, _baseTheme.default)(palette);
|
|
25
|
-
var _default = baseTheme;
|
|
26
|
-
exports.default = _default;
|
|
25
|
+
var _default = exports.default = baseTheme;
|
|
27
26
|
const mergeWithBase = configureTheme => {
|
|
28
27
|
const themeToMergeWithBase = configureTheme(palette);
|
|
29
28
|
return {
|
|
@@ -40,5 +40,4 @@ var _aegean = _interopRequireDefault(require("./aegean"));
|
|
|
40
40
|
var _base = _interopRequireDefault(require("./base"));
|
|
41
41
|
var _none = _interopRequireDefault(require("./none"));
|
|
42
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
-
const carbonThemeList = [_mint.default, _aegean.default, _sage.default];
|
|
44
|
-
exports.carbonThemeList = carbonThemeList;
|
|
43
|
+
const carbonThemeList = exports.carbonThemeList = [_mint.default, _aegean.default, _sage.default];
|
|
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ = require("..");
|
|
8
8
|
/* eslint-disable no-console */
|
|
9
|
-
var _default = (() => {
|
|
9
|
+
var _default = exports.default = (() => {
|
|
10
10
|
console.warn(`"Medium Theme" has been renamed to "Aegean".
|
|
11
11
|
All references to that theme should be updated to:
|
|
12
12
|
import { aegeanTheme } from "carbon-react/lib/style/themes"`);
|
|
13
13
|
return _.aegeanTheme;
|
|
14
|
-
})();
|
|
15
|
-
exports.default = _default;
|
|
14
|
+
})();
|
|
@@ -7,5 +7,4 @@ exports.default = void 0;
|
|
|
7
7
|
var _mintTheme = _interopRequireDefault(require("./mint-theme.config"));
|
|
8
8
|
var _base = require("../base");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = (0, _base.mergeWithBase)(_mintTheme.default);
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = (0, _base.mergeWithBase)(_mintTheme.default);
|
|
@@ -7,5 +7,4 @@ exports.default = void 0;
|
|
|
7
7
|
var _noneTheme = _interopRequireDefault(require("./none-theme.config"));
|
|
8
8
|
var _base = require("../base");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = (0, _base.mergeWithBase)(_noneTheme.default);
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = (0, _base.mergeWithBase)(_noneTheme.default);
|
|
@@ -7,11 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
var _common = _interopRequireDefault(require("@sage/design-tokens/js/base/common"));
|
|
8
8
|
var _index = _interopRequireDefault(require("../mint/index"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = {
|
|
10
|
+
var _default = exports.default = {
|
|
11
11
|
..._index.default,
|
|
12
12
|
compatibility: {
|
|
13
13
|
..._common.default
|
|
14
14
|
},
|
|
15
15
|
name: "sage"
|
|
16
|
-
};
|
|
17
|
-
exports.default = _default;
|
|
16
|
+
};
|
|
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ = require("..");
|
|
8
8
|
/* eslint-disable no-console */
|
|
9
|
-
var _default = (() => {
|
|
9
|
+
var _default = exports.default = (() => {
|
|
10
10
|
console.warn(`"Small Theme" has been renamed to "Mint".
|
|
11
11
|
All references to that theme should be updated to:
|
|
12
12
|
import { mintTheme } from 'carbon-react/lib/style/themes'`);
|
|
13
13
|
return _.mintTheme;
|
|
14
|
-
})();
|
|
15
|
-
exports.default = _default;
|
|
14
|
+
})();
|
|
@@ -7,8 +7,7 @@ exports.default = filterStyledSystemPositionProps;
|
|
|
7
7
|
exports.positionPropertyNames = void 0;
|
|
8
8
|
var _filterObjectProperties = _interopRequireDefault(require("../../__internal__/filter-object-properties"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const positionPropertyNames = ["top", "right", "bottom", "left", "position"];
|
|
11
|
-
exports.positionPropertyNames = positionPropertyNames;
|
|
10
|
+
const positionPropertyNames = exports.positionPropertyNames = ["top", "right", "bottom", "left", "position"];
|
|
12
11
|
function filterStyledSystemPositionProps(originalObject) {
|
|
13
12
|
return (0, _filterObjectProperties.default)(originalObject, positionPropertyNames);
|
|
14
13
|
}
|
|
@@ -7,5 +7,4 @@ exports.default = void 0;
|
|
|
7
7
|
var _filterStyledSystemMarginProps = require("./filter-styled-system-margin-props");
|
|
8
8
|
var _filterStyledSystemPaddingProps = require("./filter-styled-system-padding-props");
|
|
9
9
|
const filterOutStyledSystemSpacingProps = props => Object.fromEntries(Object.entries(props).filter(([key]) => ![..._filterStyledSystemMarginProps.marginPropertyNames, ..._filterStyledSystemPaddingProps.paddingPropertyNames].includes(key)));
|
|
10
|
-
var _default = filterOutStyledSystemSpacingProps;
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = filterOutStyledSystemSpacingProps;
|
|
@@ -7,8 +7,7 @@ exports.default = filterStyledSystemFlexboxProps;
|
|
|
7
7
|
exports.flexboxPropertyNames = void 0;
|
|
8
8
|
var _filterObjectProperties = _interopRequireDefault(require("../../__internal__/filter-object-properties"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const flexboxPropertyNames = ["alignItems", "alignContent", "justifyItems", "justifyContent", "flexWrap", "flexDirection", "flex", "flexGrow", "flexShrink", "flexBasis", "justifySelf", "alignSelf", "order"];
|
|
11
|
-
exports.flexboxPropertyNames = flexboxPropertyNames;
|
|
10
|
+
const flexboxPropertyNames = exports.flexboxPropertyNames = ["alignItems", "alignContent", "justifyItems", "justifyContent", "flexWrap", "flexDirection", "flex", "flexGrow", "flexShrink", "flexBasis", "justifySelf", "alignSelf", "order"];
|
|
12
11
|
function filterStyledSystemFlexboxProps(originalObject) {
|
|
13
12
|
return (0, _filterObjectProperties.default)(originalObject, flexboxPropertyNames);
|
|
14
13
|
}
|
|
@@ -7,8 +7,7 @@ exports.default = filterStyledSystemGridProps;
|
|
|
7
7
|
exports.gridPropertyNames = void 0;
|
|
8
8
|
var _filterObjectProperties = _interopRequireDefault(require("../../__internal__/filter-object-properties"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const gridPropertyNames = ["gridColumn", "gridRow", "gridArea", "gridAutoFlow", "gridAutoRows", "gridAutoColumns", "gridTemplateRows", "gridTemplateColumns", "gridTemplateAreas"];
|
|
11
|
-
exports.gridPropertyNames = gridPropertyNames;
|
|
10
|
+
const gridPropertyNames = exports.gridPropertyNames = ["gridColumn", "gridRow", "gridArea", "gridAutoFlow", "gridAutoRows", "gridAutoColumns", "gridTemplateRows", "gridTemplateColumns", "gridTemplateAreas"];
|
|
12
11
|
function filterStyledSystemGridProps(originalObject) {
|
|
13
12
|
return (0, _filterObjectProperties.default)(originalObject, gridPropertyNames);
|
|
14
13
|
}
|
|
@@ -7,8 +7,7 @@ exports.default = filterStyledSystemLayoutProps;
|
|
|
7
7
|
exports.layoutPropertyNames = void 0;
|
|
8
8
|
var _filterObjectProperties = _interopRequireDefault(require("../../__internal__/filter-object-properties"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const layoutPropertyNames = ["width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "size", "display", "verticalAlign", "overflow", "overflowX", "overflowY", "position", "top", "right", "bottom", "left"];
|
|
11
|
-
exports.layoutPropertyNames = layoutPropertyNames;
|
|
10
|
+
const layoutPropertyNames = exports.layoutPropertyNames = ["width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "size", "display", "verticalAlign", "overflow", "overflowX", "overflowY", "position", "top", "right", "bottom", "left"];
|
|
12
11
|
function filterStyledSystemLayoutProps(originalObject) {
|
|
13
12
|
return (0, _filterObjectProperties.default)(originalObject, layoutPropertyNames);
|
|
14
13
|
}
|
|
@@ -7,8 +7,7 @@ exports.default = filterStyledSystemMarginProps;
|
|
|
7
7
|
exports.marginPropertyNames = void 0;
|
|
8
8
|
var _filterObjectProperties = _interopRequireDefault(require("../../__internal__/filter-object-properties"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const marginPropertyNames = ["margin", "m", "marginLeft", "ml", "marginRight", "mr", "marginTop", "mt", "marginBottom", "mb", "marginX", "mx", "marginY", "my"];
|
|
11
|
-
exports.marginPropertyNames = marginPropertyNames;
|
|
10
|
+
const marginPropertyNames = exports.marginPropertyNames = ["margin", "m", "marginLeft", "ml", "marginRight", "mr", "marginTop", "mt", "marginBottom", "mb", "marginX", "mx", "marginY", "my"];
|
|
12
11
|
function filterStyledSystemMarginProps(originalObject) {
|
|
13
12
|
return (0, _filterObjectProperties.default)(originalObject, marginPropertyNames);
|
|
14
13
|
}
|
|
@@ -7,24 +7,16 @@ exports.default = filterStyledSystemPaddingProps;
|
|
|
7
7
|
exports.paddingYPropertyNames = exports.paddingXPropertyNames = exports.paddingTopPropertyNames = exports.paddingRightPropertyNames = exports.paddingPropertyNames = exports.paddingNames = exports.paddingLeftPropertyNames = exports.paddingBottomPropertyNames = void 0;
|
|
8
8
|
var _filterObjectProperties = _interopRequireDefault(require("../../__internal__/filter-object-properties"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const paddingNames = ["p", "padding"];
|
|
11
|
-
exports.
|
|
12
|
-
const
|
|
13
|
-
exports.
|
|
14
|
-
const paddingRightPropertyNames = ["pr", "paddingRight"];
|
|
15
|
-
exports.paddingRightPropertyNames = paddingRightPropertyNames;
|
|
16
|
-
const paddingXPropertyNames = ["px", "paddingX"];
|
|
17
|
-
exports.paddingXPropertyNames = paddingXPropertyNames;
|
|
10
|
+
const paddingNames = exports.paddingNames = ["p", "padding"];
|
|
11
|
+
const paddingLeftPropertyNames = exports.paddingLeftPropertyNames = ["pl", "paddingLeft"];
|
|
12
|
+
const paddingRightPropertyNames = exports.paddingRightPropertyNames = ["pr", "paddingRight"];
|
|
13
|
+
const paddingXPropertyNames = exports.paddingXPropertyNames = ["px", "paddingX"];
|
|
18
14
|
const paddingHorizontalPropertyNames = [...paddingLeftPropertyNames, ...paddingRightPropertyNames, ...paddingXPropertyNames];
|
|
19
|
-
const paddingTopPropertyNames = ["pt", "paddingTop"];
|
|
20
|
-
exports.
|
|
21
|
-
const
|
|
22
|
-
exports.paddingBottomPropertyNames = paddingBottomPropertyNames;
|
|
23
|
-
const paddingYPropertyNames = ["py", "paddingY"];
|
|
24
|
-
exports.paddingYPropertyNames = paddingYPropertyNames;
|
|
15
|
+
const paddingTopPropertyNames = exports.paddingTopPropertyNames = ["pt", "paddingTop"];
|
|
16
|
+
const paddingBottomPropertyNames = exports.paddingBottomPropertyNames = ["pb", "paddingBottom"];
|
|
17
|
+
const paddingYPropertyNames = exports.paddingYPropertyNames = ["py", "paddingY"];
|
|
25
18
|
const paddingVerticalPropertyNames = [...paddingTopPropertyNames, ...paddingBottomPropertyNames, ...paddingYPropertyNames];
|
|
26
|
-
const paddingPropertyNames = [...paddingNames, ...paddingHorizontalPropertyNames, ...paddingVerticalPropertyNames];
|
|
27
|
-
exports.paddingPropertyNames = paddingPropertyNames;
|
|
19
|
+
const paddingPropertyNames = exports.paddingPropertyNames = [...paddingNames, ...paddingHorizontalPropertyNames, ...paddingVerticalPropertyNames];
|
|
28
20
|
function filterStyledSystemPaddingProps(props) {
|
|
29
21
|
return (0, _filterObjectProperties.default)(props, paddingPropertyNames);
|
|
30
22
|
}
|
|
@@ -9,5 +9,4 @@ exports.default = void 0;
|
|
|
9
9
|
const getRgbValues = baseColor => {
|
|
10
10
|
return [parseInt(baseColor.substring(1, 3), 16), parseInt(baseColor.substring(3, 5), 16), parseInt(baseColor.substring(5, 6), 16)];
|
|
11
11
|
};
|
|
12
|
-
var _default = getRgbValues;
|
|
13
|
-
exports.default = _default;
|
|
12
|
+
var _default = exports.default = getRgbValues;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
var _default = (0, _styledComponents.css)`
|
|
8
|
+
var _default = exports.default = (0, _styledComponents.css)`
|
|
9
9
|
border: 0;
|
|
10
10
|
height: 1px;
|
|
11
11
|
margin: -1px;
|
|
@@ -14,5 +14,4 @@ var _default = (0, _styledComponents.css)`
|
|
|
14
14
|
position: absolute;
|
|
15
15
|
width: 1px;
|
|
16
16
|
white-space: nowrap;
|
|
17
|
-
`;
|
|
18
|
-
exports.default = _default;
|
|
17
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "124.2.
|
|
3
|
+
"version": "124.2.2",
|
|
4
4
|
"description": "A library of reusable React components for easily building user interfaces.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts/check_rfcs/index.js"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"start": "node ./scripts/check_node_version.
|
|
12
|
+
"start": "node ./scripts/check_node_version.mjs && cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 9001 -c .storybook",
|
|
13
13
|
"start:debug-theme": "cross-env STORYBOOK_DEBUG_THEME=true npm run start",
|
|
14
14
|
"test": "jest --config=./jest.config.json",
|
|
15
15
|
"test-update": "jest --config=./jest.config.json --updateSnapshot",
|
|
@@ -59,21 +59,22 @@
|
|
|
59
59
|
"styled-components": "^4.4.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/cli": "^7.
|
|
63
|
-
"@babel/core": "^7.
|
|
64
|
-
"@babel/eslint-parser": "^7.
|
|
62
|
+
"@babel/cli": "^7.23.4",
|
|
63
|
+
"@babel/core": "^7.23.3",
|
|
64
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
65
65
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
66
|
-
"@babel/plugin-transform-classes": "^7.
|
|
67
|
-
"@babel/preset-env": "^7.
|
|
68
|
-
"@babel/preset-react": "^7.
|
|
69
|
-
"@babel/preset-typescript": "^7.
|
|
70
|
-
"@babel/template": "^7.
|
|
71
|
-
"@babel/types": "^7.
|
|
66
|
+
"@babel/plugin-transform-classes": "^7.23.3",
|
|
67
|
+
"@babel/preset-env": "^7.23.3",
|
|
68
|
+
"@babel/preset-react": "^7.23.3",
|
|
69
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
70
|
+
"@babel/template": "^7.22.15",
|
|
71
|
+
"@babel/types": "^7.23.4",
|
|
72
72
|
"@commitlint/cli": "^17.6.3",
|
|
73
73
|
"@commitlint/config-conventional": "^17.6.3",
|
|
74
74
|
"@dlgshi/cypress-plugin-designtokens": "^0.0.1-development",
|
|
75
|
-
"@playwright/experimental-ct-react17": "
|
|
76
|
-
"@
|
|
75
|
+
"@playwright/experimental-ct-react17": "~1.36.2",
|
|
76
|
+
"@playwright/test": "~1.36.2",
|
|
77
|
+
"@sage/design-tokens": "~4.17.0",
|
|
77
78
|
"@semantic-release/changelog": "^6.0.3",
|
|
78
79
|
"@semantic-release/exec": "^6.0.3",
|
|
79
80
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -92,43 +93,43 @@
|
|
|
92
93
|
"@testing-library/jest-dom": "^5.16.5",
|
|
93
94
|
"@testing-library/react": "^12.1.5",
|
|
94
95
|
"@testing-library/react-hooks": "^8.0.1",
|
|
95
|
-
"@testing-library/user-event": "^14.
|
|
96
|
-
"@types/crypto-js": "^4.
|
|
96
|
+
"@testing-library/user-event": "^14.5.1",
|
|
97
|
+
"@types/crypto-js": "^4.2.1",
|
|
97
98
|
"@types/draft-js": "^0.11.10",
|
|
98
99
|
"@types/enzyme": "3.10.8",
|
|
99
|
-
"@types/invariant": "^2.2.
|
|
100
|
+
"@types/invariant": "^2.2.37",
|
|
100
101
|
"@types/jest": "^27.5.0",
|
|
101
|
-
"@types/lodash": "^4.14.
|
|
102
|
-
"@types/node": "^
|
|
102
|
+
"@types/lodash": "^4.14.202",
|
|
103
|
+
"@types/node": "^20.9.0",
|
|
103
104
|
"@types/react": "^17.0.59",
|
|
104
105
|
"@types/react-dom": "^17.0.20",
|
|
105
106
|
"@types/react-is": "^17.0.4",
|
|
106
107
|
"@types/react-test-renderer": "^17.0.2",
|
|
107
|
-
"@types/react-transition-group": "^4.4.
|
|
108
|
-
"@types/sprintf-js": "^1.1.
|
|
109
|
-
"@types/styled-components": "
|
|
108
|
+
"@types/react-transition-group": "^4.4.9",
|
|
109
|
+
"@types/sprintf-js": "^1.1.4",
|
|
110
|
+
"@types/styled-components": "5.1.17",
|
|
110
111
|
"@types/uuid": "^8.3.4",
|
|
111
112
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
112
113
|
"@typescript-eslint/parser": "^5.59.5",
|
|
113
114
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
114
|
-
"axe-core": "^4.
|
|
115
|
+
"axe-core": "^4.8.2",
|
|
115
116
|
"babel-jest": "^26.6.3",
|
|
116
117
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
117
|
-
"browserslist": "^4.
|
|
118
|
+
"browserslist": "^4.22.1",
|
|
118
119
|
"chromatic": "^6.17.4",
|
|
119
120
|
"commitizen": "^4.3.0",
|
|
120
|
-
"concurrently": "^8.
|
|
121
|
+
"concurrently": "^8.2.2",
|
|
121
122
|
"conventional-changelog-conventionalcommits": "^4.6.3",
|
|
122
|
-
"core-js": "^3.
|
|
123
|
+
"core-js": "^3.33.3",
|
|
123
124
|
"cross-env": "^5.2.1",
|
|
124
125
|
"css-loader": "^4.3.0",
|
|
125
|
-
"cypress": "
|
|
126
|
-
"cypress-axe": "^1.
|
|
126
|
+
"cypress": "~12.13.0",
|
|
127
|
+
"cypress-axe": "^1.5.0",
|
|
127
128
|
"cypress-each": "^1.13.3",
|
|
128
|
-
"cypress-mochawesome-reporter": "^3.
|
|
129
|
+
"cypress-mochawesome-reporter": "^3.7.0",
|
|
129
130
|
"cypress-plugin-tab": "^1.0.5",
|
|
130
|
-
"cypress-real-events": "^1.
|
|
131
|
-
"cypress-split": "^1.
|
|
131
|
+
"cypress-real-events": "^1.11.0",
|
|
132
|
+
"cypress-split": "^1.17.1",
|
|
132
133
|
"cz-conventional-changelog": "^3.3.0",
|
|
133
134
|
"date-fns-tz": "^1.3.8",
|
|
134
135
|
"draft-js": "^0.11.7",
|
|
@@ -137,62 +138,62 @@
|
|
|
137
138
|
"eslint": "^7.32.0",
|
|
138
139
|
"eslint-config-airbnb": "^18.2.1",
|
|
139
140
|
"eslint-config-prettier": "^6.15.0",
|
|
140
|
-
"eslint-plugin-cypress": "^2.
|
|
141
|
-
"eslint-plugin-import": "^2.
|
|
141
|
+
"eslint-plugin-cypress": "^2.15.1",
|
|
142
|
+
"eslint-plugin-import": "^2.29.0",
|
|
142
143
|
"eslint-plugin-jest": "^24.7.0",
|
|
143
144
|
"eslint-plugin-jest-dom": "^3.9.4",
|
|
144
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
145
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
145
146
|
"eslint-plugin-no-unsanitized": "^3.2.0",
|
|
146
|
-
"eslint-plugin-react": "^7.
|
|
147
|
+
"eslint-plugin-react": "^7.33.2",
|
|
147
148
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
148
149
|
"events": "~1.1.1",
|
|
149
|
-
"fast-glob": "^3.2
|
|
150
|
+
"fast-glob": "^3.3.2",
|
|
150
151
|
"file-loader": "^6.2.0",
|
|
151
152
|
"fs-extra": "^10.1.0",
|
|
152
|
-
"husky": "^8.0.
|
|
153
|
+
"husky": "^8.0.3",
|
|
153
154
|
"jest": "^27.5.1",
|
|
154
|
-
"jest-canvas-mock": "^2.5.
|
|
155
|
+
"jest-canvas-mock": "^2.5.2",
|
|
155
156
|
"jest-environment-jsdom": "^27.5.1",
|
|
156
157
|
"jest-fetch-mock": "^3.0.3",
|
|
157
158
|
"jest-styled-components": "^6.3.4",
|
|
158
159
|
"lint-staged": "^11.2.6",
|
|
159
160
|
"mockdate": "^2.0.5",
|
|
160
|
-
"nock": "^13.3.
|
|
161
|
+
"nock": "^13.3.8",
|
|
161
162
|
"prettier": "~2.2.0",
|
|
162
163
|
"raf": "^3.4.1",
|
|
163
164
|
"react": "^17.0.2",
|
|
164
165
|
"react-dom": "^17.0.2",
|
|
165
|
-
"react-router-dom": "^6.
|
|
166
|
+
"react-router-dom": "^6.20.0",
|
|
166
167
|
"react-test-renderer": "^17.0.2",
|
|
167
168
|
"rimraf": "^3.0.2",
|
|
168
169
|
"semantic-release": "^19.0.5",
|
|
169
|
-
"semver": "^7.5.
|
|
170
|
-
"sprintf-js": "^1.1.
|
|
170
|
+
"semver": "^7.5.4",
|
|
171
|
+
"sprintf-js": "^1.1.3",
|
|
171
172
|
"styled-components": "^4.4.1",
|
|
172
173
|
"typescript": "~4.7.0",
|
|
173
174
|
"typescript-to-proptypes": "^2.2.1",
|
|
174
175
|
"url-loader": "^4.1.1",
|
|
175
176
|
"uuid": "^8.3.2",
|
|
176
|
-
"webpack-dev-server": "^4.15.
|
|
177
|
+
"webpack-dev-server": "^4.15.1"
|
|
177
178
|
},
|
|
178
179
|
"dependencies": {
|
|
179
|
-
"@axe-core/playwright": "
|
|
180
|
-
"@floating-ui/dom": "
|
|
181
|
-
"@floating-ui/react-dom": "
|
|
180
|
+
"@axe-core/playwright": "~4.7.3",
|
|
181
|
+
"@floating-ui/dom": "~1.2.9",
|
|
182
|
+
"@floating-ui/react-dom": "~1.3.0",
|
|
182
183
|
"@octokit/rest": "^18.12.0",
|
|
183
184
|
"@styled-system/prop-types": "^5.1.5",
|
|
184
|
-
"@tanstack/react-virtual": "
|
|
185
|
-
"@types/styled-system": "^5.1.
|
|
185
|
+
"@tanstack/react-virtual": "3.0.0-beta.54",
|
|
186
|
+
"@types/styled-system": "^5.1.22",
|
|
186
187
|
"chalk": "^4.1.2",
|
|
187
188
|
"ci-info": "^3.8.0",
|
|
188
189
|
"classnames": "~2.3.2",
|
|
189
|
-
"crypto-js": "^4.
|
|
190
|
+
"crypto-js": "^4.2.0",
|
|
190
191
|
"date-fns": "^2.30.0",
|
|
191
192
|
"dotenv": "^10.0.0",
|
|
192
193
|
"immutable": "~3.8.2",
|
|
193
194
|
"invariant": "^2.2.4",
|
|
194
195
|
"lodash": "^4.17.21",
|
|
195
|
-
"node-fetch": "^3.3.
|
|
196
|
+
"node-fetch": "^3.3.2",
|
|
196
197
|
"polished": "^4.2.2",
|
|
197
198
|
"prop-types": "^15.8.1",
|
|
198
199
|
"react-day-picker": "~7.4.10",
|
|
@@ -202,6 +203,9 @@
|
|
|
202
203
|
"react-transition-group": "^4.4.5",
|
|
203
204
|
"styled-system": "^5.1.5"
|
|
204
205
|
},
|
|
206
|
+
"overrides": {
|
|
207
|
+
"playwright-core": "$@playwright/experimental-ct-react17"
|
|
208
|
+
},
|
|
205
209
|
"config": {
|
|
206
210
|
"commitizen": {
|
|
207
211
|
"path": "cz-conventional-changelog"
|