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
|
@@ -41,7 +41,7 @@ const dispatchKeyPress = code => {
|
|
|
41
41
|
document.dispatchEvent(ev);
|
|
42
42
|
};
|
|
43
43
|
const keys = ["ArrowUp", "ArrowDown", "ArrowRight", "ArrowLeft", "Enter", "Tab", " ", "Escape", "End", "Home", "D", "E", "P", "Z", "1"];
|
|
44
|
-
const keyboard = keys.reduce((acc, key) => {
|
|
44
|
+
const keyboard = exports.keyboard = keys.reduce((acc, key) => {
|
|
45
45
|
const methodName = `press${key === " " ? "Space" : key}`;
|
|
46
46
|
acc[methodName] = () => dispatchKeyPress(key);
|
|
47
47
|
return acc;
|
|
@@ -50,7 +50,6 @@ const keyboard = keys.reduce((acc, key) => {
|
|
|
50
50
|
// Build an object of Enzyme simulate helpers
|
|
51
51
|
// e.g. simulate.keydown.pressTab(target, { shiftKey: true })
|
|
52
52
|
// e.g. simulate.keydown.pressEscape(target)
|
|
53
|
-
exports.keyboard = keyboard;
|
|
54
53
|
const keydown = keys.reduce((acc, key) => {
|
|
55
54
|
const methodName = `press${key === " " ? "Space" : key}`;
|
|
56
55
|
acc[methodName] = (target, {
|
|
@@ -66,10 +65,9 @@ const keydown = keys.reduce((acc, key) => {
|
|
|
66
65
|
return acc;
|
|
67
66
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
68
67
|
}, {});
|
|
69
|
-
const simulate = {
|
|
68
|
+
const simulate = exports.simulate = {
|
|
70
69
|
keydown
|
|
71
70
|
};
|
|
72
|
-
exports.simulate = simulate;
|
|
73
71
|
const listFrom = wrapper => wrapper.find("ul");
|
|
74
72
|
exports.listFrom = listFrom;
|
|
75
73
|
const childrenFrom = node => node.children();
|
|
@@ -79,8 +77,7 @@ const hoverList = wrapper => item => {
|
|
|
79
77
|
};
|
|
80
78
|
exports.hoverList = hoverList;
|
|
81
79
|
const simulateEvent = eventName => wrapper => wrapper.simulate(eventName);
|
|
82
|
-
const click = simulateEvent("click");
|
|
83
|
-
exports.click = click;
|
|
80
|
+
const click = exports.click = simulateEvent("click");
|
|
84
81
|
const selectedItemOf = wrapper => wrapper.state().selectedItem;
|
|
85
82
|
exports.selectedItemOf = selectedItemOf;
|
|
86
83
|
const isUnique = (val, index, self) => self.indexOf(val) === index;
|
|
@@ -100,12 +97,9 @@ const assertCorrectTraversal = method => expect => ({
|
|
|
100
97
|
const indexesThatWereSelected = array.reduce(selectedItemReducer(method)(wrapper), [selectedItem]).filter(isUnique);
|
|
101
98
|
expect(arraysEqual(validIndexes, indexesThatWereSelected)).toBeTruthy();
|
|
102
99
|
};
|
|
103
|
-
const assertKeyboardTraversal = assertCorrectTraversal(() => keyboard.pressArrowDown)(expect);
|
|
104
|
-
exports.
|
|
105
|
-
const
|
|
106
|
-
exports.assertHoverTraversal = assertHoverTraversal;
|
|
107
|
-
const carbonThemesJestTable = _themes.carbonThemeList.map(theme => [theme.name, theme]);
|
|
108
|
-
exports.carbonThemesJestTable = carbonThemesJestTable;
|
|
100
|
+
const assertKeyboardTraversal = exports.assertKeyboardTraversal = assertCorrectTraversal(() => keyboard.pressArrowDown)(expect);
|
|
101
|
+
const assertHoverTraversal = exports.assertHoverTraversal = assertCorrectTraversal(wrapper => hoverList(wrapper))(expect);
|
|
102
|
+
const carbonThemesJestTable = exports.carbonThemesJestTable = _themes.carbonThemeList.map(theme => [theme.name, theme]);
|
|
109
103
|
const marginProps = [["m", "margin"], ["ml", "marginLeft"], ["mr", "marginRight"], ["mt", "marginTop"], ["mb", "marginBottom"], ["mx", "marginLeft"], ["mx", "marginRight"], ["my", "marginTop"], ["my", "marginBottom"]];
|
|
110
104
|
const paddingProps = [["p", "padding"], ["pl", "paddingLeft"], ["pr", "paddingRight"], ["pt", "paddingTop"], ["pb", "paddingBottom"], ["px", "paddingLeft"], ["px", "paddingRight"], ["py", "paddingTop"], ["py", "paddingBottom"]];
|
|
111
105
|
const colorProps = [["color", "color", "#CCCCCC"], ["bg", "background-color", "#FFFFFF"], ["opacity", "opacity", "0.5"]];
|
|
@@ -11,8 +11,8 @@ var _events = _interopRequireDefault(require("../../../__internal__/utils/helper
|
|
|
11
11
|
var _accordion = _interopRequireDefault(require("../accordion.component"));
|
|
12
12
|
var _accordion2 = require("../accordion.style");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
// typescript-to-proptypes breaks on recursive type references so it has to be an interface
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
18
18
|
|
|
@@ -69,5 +69,4 @@ const AccordionGroup = ({
|
|
|
69
69
|
};
|
|
70
70
|
exports.AccordionGroup = AccordionGroup;
|
|
71
71
|
AccordionGroup.displayName = "AccordionGroup";
|
|
72
|
-
var _default = AccordionGroup;
|
|
73
|
-
exports.default = _default;
|
|
72
|
+
var _default = exports.default = AccordionGroup;
|
|
@@ -12,10 +12,10 @@ var _events = _interopRequireDefault(require("../../__internal__/utils/helpers/e
|
|
|
12
12
|
var _accordion = require("./accordion.style");
|
|
13
13
|
var _validations = _interopRequireDefault(require("../../__internal__/validations"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
-
const Accordion = /*#__PURE__*/_react.default.forwardRef(({
|
|
18
|
+
const Accordion = exports.Accordion = /*#__PURE__*/_react.default.forwardRef(({
|
|
19
19
|
borders = "default",
|
|
20
20
|
defaultExpanded,
|
|
21
21
|
expanded,
|
|
@@ -127,7 +127,6 @@ const Accordion = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
127
127
|
disableContentPadding: disableContentPadding
|
|
128
128
|
}, children)));
|
|
129
129
|
});
|
|
130
|
-
exports.Accordion = Accordion;
|
|
131
130
|
Accordion.propTypes = {
|
|
132
131
|
"borders": _propTypes.default.oneOf(["default", "full", "none"]),
|
|
133
132
|
"buttonHeading": _propTypes.default.bool,
|
|
@@ -771,5 +770,4 @@ Accordion.propTypes = {
|
|
|
771
770
|
"width": _propTypes.default.string
|
|
772
771
|
};
|
|
773
772
|
Accordion.displayName = "Accordion";
|
|
774
|
-
var _default = Accordion;
|
|
775
|
-
exports.default = _default;
|
|
773
|
+
var _default = exports.default = Accordion;
|
|
@@ -11,13 +11,12 @@ var _themes = require("../../style/themes");
|
|
|
11
11
|
var _validationIcon = _interopRequireDefault(require("../../__internal__/validations/validation-icon.style"));
|
|
12
12
|
var _addFocusStyling = _interopRequireDefault(require("../../style/utils/add-focus-styling"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
16
|
-
const StyledAccordionGroup = _styledComponents.default.div`
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
const StyledAccordionGroup = exports.StyledAccordionGroup = _styledComponents.default.div`
|
|
17
17
|
${_styledSystem.margin}
|
|
18
18
|
`;
|
|
19
|
-
exports.
|
|
20
|
-
const StyledAccordionContainer = _styledComponents.default.div`
|
|
19
|
+
const StyledAccordionContainer = exports.StyledAccordionContainer = _styledComponents.default.div`
|
|
21
20
|
${_styledSystem.space}
|
|
22
21
|
display: flex;
|
|
23
22
|
align-items: ${({
|
|
@@ -52,8 +51,7 @@ const StyledAccordionContainer = _styledComponents.default.div`
|
|
|
52
51
|
border-bottom: 1px solid var(--colorsUtilityMajor100);
|
|
53
52
|
}
|
|
54
53
|
`;
|
|
55
|
-
exports.
|
|
56
|
-
const StyledAccordionTitle = _styledComponents.default.h3`
|
|
54
|
+
const StyledAccordionTitle = exports.StyledAccordionTitle = _styledComponents.default.h3`
|
|
57
55
|
font-size: ${({
|
|
58
56
|
size
|
|
59
57
|
}) => size === "small" ? "14" : "20"}px;
|
|
@@ -64,12 +62,10 @@ const StyledAccordionTitle = _styledComponents.default.h3`
|
|
|
64
62
|
user-select: none;
|
|
65
63
|
margin: 0;
|
|
66
64
|
`;
|
|
67
|
-
exports.
|
|
68
|
-
const StyledAccordionSubTitle = _styledComponents.default.span`
|
|
65
|
+
const StyledAccordionSubTitle = exports.StyledAccordionSubTitle = _styledComponents.default.span`
|
|
69
66
|
margin-top: 8px;
|
|
70
67
|
`;
|
|
71
|
-
exports.
|
|
72
|
-
const StyledAccordionIcon = (0, _styledComponents.default)(_icon.default)`
|
|
68
|
+
const StyledAccordionIcon = exports.StyledAccordionIcon = (0, _styledComponents.default)(_icon.default)`
|
|
73
69
|
transition: transform 0.3s;
|
|
74
70
|
margin-right: ${({
|
|
75
71
|
iconAlign
|
|
@@ -82,8 +78,7 @@ const StyledAccordionIcon = (0, _styledComponents.default)(_icon.default)`
|
|
|
82
78
|
}};
|
|
83
79
|
color: var(--colorsActionMinor500);
|
|
84
80
|
`;
|
|
85
|
-
exports.
|
|
86
|
-
const StyledAccordionHeadingsContainer = _styledComponents.default.div`
|
|
81
|
+
const StyledAccordionHeadingsContainer = exports.StyledAccordionHeadingsContainer = _styledComponents.default.div`
|
|
87
82
|
${({
|
|
88
83
|
buttonHeading,
|
|
89
84
|
hasValidationIcon
|
|
@@ -108,11 +103,10 @@ const StyledAccordionHeadingsContainer = _styledComponents.default.div`
|
|
|
108
103
|
}
|
|
109
104
|
`}
|
|
110
105
|
`;
|
|
111
|
-
exports.StyledAccordionHeadingsContainer = StyledAccordionHeadingsContainer;
|
|
112
106
|
const oldFocusStyling = `
|
|
113
107
|
outline: solid 3px var(--colorsSemanticFocus500);
|
|
114
108
|
`;
|
|
115
|
-
const StyledAccordionTitleContainer = _styledComponents.default.div`
|
|
109
|
+
const StyledAccordionTitleContainer = exports.StyledAccordionTitleContainer = _styledComponents.default.div`
|
|
116
110
|
${({
|
|
117
111
|
buttonHeading,
|
|
118
112
|
buttonWidth,
|
|
@@ -181,8 +175,7 @@ const StyledAccordionTitleContainer = _styledComponents.default.div`
|
|
|
181
175
|
`}
|
|
182
176
|
`}
|
|
183
177
|
`;
|
|
184
|
-
exports.
|
|
185
|
-
const StyledAccordionContentContainer = _styledComponents.default.div`
|
|
178
|
+
const StyledAccordionContentContainer = exports.StyledAccordionContentContainer = _styledComponents.default.div`
|
|
186
179
|
flex-grow: 1;
|
|
187
180
|
box-sizing: border-box;
|
|
188
181
|
overflow: hidden;
|
|
@@ -199,8 +192,7 @@ const StyledAccordionContentContainer = _styledComponents.default.div`
|
|
|
199
192
|
`}
|
|
200
193
|
`}
|
|
201
194
|
`;
|
|
202
|
-
exports.
|
|
203
|
-
const StyledAccordionContent = _styledComponents.default.div`
|
|
195
|
+
const StyledAccordionContent = exports.StyledAccordionContent = _styledComponents.default.div`
|
|
204
196
|
padding: var(--spacing300);
|
|
205
197
|
padding-top: 0;
|
|
206
198
|
overflow: hidden;
|
|
@@ -211,7 +203,6 @@ const StyledAccordionContent = _styledComponents.default.div`
|
|
|
211
203
|
padding: 0;
|
|
212
204
|
`}
|
|
213
205
|
`;
|
|
214
|
-
exports.StyledAccordionContent = StyledAccordionContent;
|
|
215
206
|
StyledAccordionGroup.defaultProps = {
|
|
216
207
|
theme: _themes.baseTheme
|
|
217
208
|
};
|
|
@@ -7,5 +7,4 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const ActionPopoverContext = /*#__PURE__*/_react.default.createContext(null);
|
|
10
|
-
var _default = ActionPopoverContext;
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = ActionPopoverContext;
|
package/lib/components/action-popover/action-popover-divider/action-popover-divider.component.js
CHANGED
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _actionPopover = require("../action-popover.style");
|
|
8
8
|
_actionPopover.MenuItemDivider.displayName = "ActionPopoverDivider";
|
|
9
|
-
var _default = _actionPopover.MenuItemDivider;
|
|
10
|
-
exports.default = _default;
|
|
9
|
+
var _default = exports.default = _actionPopover.MenuItemDivider;
|
|
@@ -14,8 +14,8 @@ var _actionPopoverContext = _interopRequireDefault(require("../action-popover-co
|
|
|
14
14
|
var _useLocale = _interopRequireDefault(require("../../../hooks/__internal__/useLocale"));
|
|
15
15
|
var _actionPopoverMenu = _interopRequireDefault(require("../action-popover-menu/action-popover-menu.component"));
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
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); }
|
|
20
20
|
const INTERVAL = 150;
|
|
21
21
|
function checkRef(ref) {
|
|
@@ -292,5 +292,4 @@ const ActionPopoverItem = ({
|
|
|
292
292
|
};
|
|
293
293
|
exports.ActionPopoverItem = ActionPopoverItem;
|
|
294
294
|
ActionPopoverItem.displayName = "ActionPopoverItem";
|
|
295
|
-
var _default = ActionPopoverItem;
|
|
296
|
-
exports.default = _default;
|
|
295
|
+
var _default = exports.default = ActionPopoverItem;
|
|
@@ -13,8 +13,8 @@ var _actionPopoverItem = _interopRequireDefault(require("../action-popover-item/
|
|
|
13
13
|
var _actionPopoverDivider = _interopRequireDefault(require("../action-popover-divider/action-popover-divider.component"));
|
|
14
14
|
var _actionPopoverContext = _interopRequireDefault(require("../action-popover-context"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
const ActionPopoverMenu = /*#__PURE__*/_react.default.forwardRef(({
|
|
20
20
|
children,
|
|
@@ -197,5 +197,4 @@ ActionPopoverMenu.propTypes = {
|
|
|
197
197
|
})
|
|
198
198
|
};
|
|
199
199
|
ActionPopoverMenu.displayName = "ActionPopoverMenu";
|
|
200
|
-
var _default = ActionPopoverMenu;
|
|
201
|
-
exports.default = _default;
|
|
200
|
+
var _default = exports.default = ActionPopoverMenu;
|
|
@@ -25,5 +25,4 @@ const ActionPopoverMenuButton = ({
|
|
|
25
25
|
}, props), children));
|
|
26
26
|
exports.ActionPopoverMenuButton = ActionPopoverMenuButton;
|
|
27
27
|
ActionPopoverMenuButton.displayName = "ActionPopoverMenuButton";
|
|
28
|
-
var _default = ActionPopoverMenuButton;
|
|
29
|
-
exports.default = _default;
|
|
28
|
+
var _default = exports.default = ActionPopoverMenuButton;
|
|
@@ -18,8 +18,8 @@ var _actionPopoverDivider = _interopRequireDefault(require("./action-popover-div
|
|
|
18
18
|
var _actionPopoverContext = _interopRequireDefault(require("./action-popover-context"));
|
|
19
19
|
var _useModalManager = _interopRequireDefault(require("../../hooks/__internal__/useModalManager"));
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
function _getRequireWildcardCache(
|
|
22
|
-
function _interopRequireWildcard(
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
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); }
|
|
24
24
|
const onOpenDefault = () => {};
|
|
25
25
|
const onCloseDefault = () => {};
|
|
@@ -206,5 +206,4 @@ const ActionPopover = ({
|
|
|
206
206
|
}, menuProps), children))));
|
|
207
207
|
};
|
|
208
208
|
exports.ActionPopover = ActionPopover;
|
|
209
|
-
var _default = ActionPopover;
|
|
210
|
-
exports.default = _default;
|
|
209
|
+
var _default = exports.default = ActionPopover;
|
|
@@ -13,12 +13,12 @@ var _browserTypeCheck = require("../../__internal__/utils/helpers/browser-type-c
|
|
|
13
13
|
var _addFocusStyling = _interopRequireDefault(require("../../style/utils/add-focus-styling"));
|
|
14
14
|
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const oldFocusStyling = `
|
|
19
19
|
outline: solid 3px var(--colorsSemanticFocus500);
|
|
20
20
|
`;
|
|
21
|
-
const Menu = _styledComponents.default.div`
|
|
21
|
+
const Menu = exports.Menu = _styledComponents.default.div`
|
|
22
22
|
${({
|
|
23
23
|
isOpen
|
|
24
24
|
}) => isOpen ? "display: block;" : "visibility: hidden;"}
|
|
@@ -32,7 +32,6 @@ const Menu = _styledComponents.default.div`
|
|
|
32
32
|
theme
|
|
33
33
|
}) => `${theme.zIndex?.popover}`}; // TODO (tokens): implement elevation tokens - FE-4437
|
|
34
34
|
`;
|
|
35
|
-
exports.Menu = Menu;
|
|
36
35
|
function getPaddingValues(childHasSubmenu, childHasIcon, hasIcon, hasSubmenu) {
|
|
37
36
|
if (!childHasIcon && childHasSubmenu && !hasIcon && !hasSubmenu) {
|
|
38
37
|
return "var(--spacing400)";
|
|
@@ -61,7 +60,7 @@ function getIconPaddingValues(index, horizontalAlignment, submenuPosition, sibli
|
|
|
61
60
|
}
|
|
62
61
|
return "var(--spacing100)";
|
|
63
62
|
}
|
|
64
|
-
const StyledMenuItemInnerText = _styledComponents.default.div`
|
|
63
|
+
const StyledMenuItemInnerText = exports.StyledMenuItemInnerText = _styledComponents.default.div`
|
|
65
64
|
${({
|
|
66
65
|
childHasSubmenu,
|
|
67
66
|
childHasIcon,
|
|
@@ -83,12 +82,10 @@ const StyledMenuItemInnerText = _styledComponents.default.div`
|
|
|
83
82
|
`}
|
|
84
83
|
`}
|
|
85
84
|
`;
|
|
86
|
-
exports.
|
|
87
|
-
const StyledMenuItemOuterContainer = _styledComponents.default.div`
|
|
85
|
+
const StyledMenuItemOuterContainer = exports.StyledMenuItemOuterContainer = _styledComponents.default.div`
|
|
88
86
|
display: inherit;
|
|
89
87
|
`;
|
|
90
|
-
exports.
|
|
91
|
-
const StyledMenuItem = _styledComponents.default.button`
|
|
88
|
+
const StyledMenuItem = exports.StyledMenuItem = _styledComponents.default.button`
|
|
92
89
|
${({
|
|
93
90
|
horizontalAlignment,
|
|
94
91
|
submenuPosition,
|
|
@@ -165,23 +162,20 @@ const StyledMenuItem = _styledComponents.default.button`
|
|
|
165
162
|
}
|
|
166
163
|
`}
|
|
167
164
|
`;
|
|
168
|
-
exports.StyledMenuItem = StyledMenuItem;
|
|
169
165
|
StyledMenuItem.defaultProps = {
|
|
170
166
|
theme: _base.default
|
|
171
167
|
};
|
|
172
|
-
const StyledMenuItemWrapper = _styledComponents.default.div`
|
|
168
|
+
const StyledMenuItemWrapper = exports.StyledMenuItemWrapper = _styledComponents.default.div`
|
|
173
169
|
position: relative;
|
|
174
170
|
`;
|
|
175
|
-
exports.
|
|
176
|
-
const MenuItemDivider = _styledComponents.default.div.attrs({
|
|
171
|
+
const MenuItemDivider = exports.MenuItemDivider = _styledComponents.default.div.attrs({
|
|
177
172
|
"data-element": "action-popover-divider"
|
|
178
173
|
})`
|
|
179
174
|
background-color: var(--colorsUtilityMajor050);
|
|
180
175
|
height: var(--borderWidth100);
|
|
181
176
|
margin: var(--spacing100) var(--spacing150);
|
|
182
177
|
`;
|
|
183
|
-
exports.
|
|
184
|
-
const MenuButton = _styledComponents.default.div`
|
|
178
|
+
const MenuButton = exports.MenuButton = _styledComponents.default.div`
|
|
185
179
|
position: relative;
|
|
186
180
|
&& ${_icon2.default} {
|
|
187
181
|
cursor: pointer;
|
|
@@ -190,16 +184,14 @@ const MenuButton = _styledComponents.default.div`
|
|
|
190
184
|
margin: auto;
|
|
191
185
|
${_styledSystem.margin}
|
|
192
186
|
`;
|
|
193
|
-
exports.
|
|
194
|
-
const ButtonIcon = (0, _styledComponents.default)(_icon.default)`
|
|
187
|
+
const ButtonIcon = exports.ButtonIcon = (0, _styledComponents.default)(_icon.default)`
|
|
195
188
|
color: var(--colorsActionMinor500);
|
|
196
189
|
|
|
197
190
|
:hover {
|
|
198
191
|
color: var(--colorsActionMinor600);
|
|
199
192
|
}
|
|
200
193
|
`;
|
|
201
|
-
exports.
|
|
202
|
-
const StyledButtonIcon = _styledComponents.default.div`
|
|
194
|
+
const StyledButtonIcon = exports.StyledButtonIcon = _styledComponents.default.div`
|
|
203
195
|
${({
|
|
204
196
|
theme
|
|
205
197
|
}) => `
|
|
@@ -209,8 +201,7 @@ const StyledButtonIcon = _styledComponents.default.div`
|
|
|
209
201
|
`}
|
|
210
202
|
border-radius: var(--borderRadius050);
|
|
211
203
|
`;
|
|
212
|
-
exports.
|
|
213
|
-
const MenuItemIcon = (0, _styledComponents.default)(_icon.default)`
|
|
204
|
+
const MenuItemIcon = exports.MenuItemIcon = (0, _styledComponents.default)(_icon.default)`
|
|
214
205
|
${({
|
|
215
206
|
horizontalAlignment,
|
|
216
207
|
submenuPosition,
|
|
@@ -228,11 +219,10 @@ const MenuItemIcon = (0, _styledComponents.default)(_icon.default)`
|
|
|
228
219
|
color: var(--colorsUtilityYin065);
|
|
229
220
|
`}
|
|
230
221
|
`;
|
|
231
|
-
exports.MenuItemIcon = MenuItemIcon;
|
|
232
222
|
StyledButtonIcon.defaultProps = {
|
|
233
223
|
theme: _base.default
|
|
234
224
|
};
|
|
235
|
-
const SubMenuItemIcon = (0, _styledComponents.default)(ButtonIcon)`
|
|
225
|
+
const SubMenuItemIcon = exports.SubMenuItemIcon = (0, _styledComponents.default)(ButtonIcon)`
|
|
236
226
|
${({
|
|
237
227
|
type
|
|
238
228
|
}) => (0, _styledComponents.css)`
|
|
@@ -248,8 +238,7 @@ const SubMenuItemIcon = (0, _styledComponents.default)(ButtonIcon)`
|
|
|
248
238
|
`}
|
|
249
239
|
`}
|
|
250
240
|
`;
|
|
251
|
-
exports.
|
|
252
|
-
const MenuButtonOverrideWrapper = _styledComponents.default.div`
|
|
241
|
+
const MenuButtonOverrideWrapper = exports.MenuButtonOverrideWrapper = _styledComponents.default.div`
|
|
253
242
|
${_button.default} {
|
|
254
243
|
padding: 0px var(--sizing100);
|
|
255
244
|
width: 100%;
|
|
@@ -264,5 +253,4 @@ const MenuButtonOverrideWrapper = _styledComponents.default.div`
|
|
|
264
253
|
}
|
|
265
254
|
}
|
|
266
255
|
}
|
|
267
|
-
`;
|
|
268
|
-
exports.MenuButtonOverrideWrapper = MenuButtonOverrideWrapper;
|
|
256
|
+
`;
|
|
@@ -8,8 +8,8 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
8
8
|
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
9
9
|
var _addFocusStyling = _interopRequireDefault(require("../../style/utils/add-focus-styling"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _getRequireWildcardCache(
|
|
12
|
-
function _interopRequireWildcard(
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
const transparentSvg = "%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%" + "2Fsvg%22%20width%3D%22400%22%20height%3D%22400%22%20fill-opacity%3D%22." + "45%22%3E%3Crect%20x%3D%22200%22%20width%3D%22200%22%20height%3D%22200%22%20%2" + "F%3E%3Crect%20y%3D%22200%22%20width%3D%22200%22%20height%3D%22200%22%20%2F%3E%3C%2Fsvg%3E";
|
|
14
14
|
const oldFocusStyling = `
|
|
15
15
|
outline: solid 3px var(--colorsSemanticFocus500);
|
|
@@ -54,5 +54,4 @@ const StyledAdvancedColorPickerCell = _styledComponents.default.button.attrs({
|
|
|
54
54
|
StyledAdvancedColorPickerCell.defaultProps = {
|
|
55
55
|
theme: _base.default
|
|
56
56
|
};
|
|
57
|
-
var _default = StyledAdvancedColorPickerCell;
|
|
58
|
-
exports.default = _default;
|
|
57
|
+
var _default = exports.default = StyledAdvancedColorPickerCell;
|
|
@@ -15,8 +15,8 @@ var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLoc
|
|
|
15
15
|
var _definitionList = require("../definition-list");
|
|
16
16
|
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
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); }
|
|
21
21
|
let deprecateUncontrolledWarnTriggered = false;
|
|
22
22
|
const AdvancedColorPicker = ({
|
|
@@ -172,5 +172,4 @@ const AdvancedColorPicker = ({
|
|
|
172
172
|
})))));
|
|
173
173
|
};
|
|
174
174
|
exports.AdvancedColorPicker = AdvancedColorPicker;
|
|
175
|
-
var _default = AdvancedColorPicker;
|
|
176
|
-
exports.default = _default;
|
|
175
|
+
var _default = exports.default = AdvancedColorPicker;
|
|
@@ -24,23 +24,21 @@ var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
|
24
24
|
var _visuallyHidden = _interopRequireDefault(require("../../style/utils/visually-hidden"));
|
|
25
25
|
var _definitionList = require("../definition-list");
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
function _getRequireWildcardCache(
|
|
28
|
-
function _interopRequireWildcard(
|
|
29
|
-
const StyledAdvancedColorPickerWrapper = _styledComponents.default.div`
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
|
+
const StyledAdvancedColorPickerWrapper = exports.StyledAdvancedColorPickerWrapper = _styledComponents.default.div`
|
|
30
30
|
${_styledSystem.margin}
|
|
31
31
|
display: inline-block;
|
|
32
32
|
`;
|
|
33
33
|
|
|
34
34
|
/** To be replaced by accessibly hidden class added in FE-5503 */
|
|
35
|
-
exports.
|
|
36
|
-
const HiddenCurrentColorList = (0, _styledComponents.default)(_definitionList.Dl)`
|
|
35
|
+
const HiddenCurrentColorList = exports.HiddenCurrentColorList = (0, _styledComponents.default)(_definitionList.Dl)`
|
|
37
36
|
${_visuallyHidden.default}
|
|
38
37
|
`;
|
|
39
|
-
exports.HiddenCurrentColorList = HiddenCurrentColorList;
|
|
40
38
|
StyledAdvancedColorPickerWrapper.defaultProps = {
|
|
41
39
|
theme: _base.default
|
|
42
40
|
};
|
|
43
|
-
const StyledAdvancedColorPickerPreview = _styledComponents.default.div`
|
|
41
|
+
const StyledAdvancedColorPickerPreview = exports.StyledAdvancedColorPickerPreview = _styledComponents.default.div`
|
|
44
42
|
width: 25px;
|
|
45
43
|
height: 25px;
|
|
46
44
|
margin-bottom: 15px;
|
|
@@ -65,8 +63,7 @@ const StyledAdvancedColorPickerPreview = _styledComponents.default.div`
|
|
|
65
63
|
cursor: initial;
|
|
66
64
|
}
|
|
67
65
|
`;
|
|
68
|
-
exports.
|
|
69
|
-
const DialogStyle = (0, _styledComponents.default)(_dialog2.default)`
|
|
66
|
+
const DialogStyle = exports.DialogStyle = (0, _styledComponents.default)(_dialog2.default)`
|
|
70
67
|
${_dialog.StyledDialogContent} {
|
|
71
68
|
padding: var(--spacing200);
|
|
72
69
|
}
|
|
@@ -101,5 +98,4 @@ const DialogStyle = (0, _styledComponents.default)(_dialog2.default)`
|
|
|
101
98
|
[data-component="icon"] {
|
|
102
99
|
color: var(--colorsActionMinor500);
|
|
103
100
|
}
|
|
104
|
-
`;
|
|
105
|
-
exports.DialogStyle = DialogStyle;
|
|
101
|
+
`;
|
package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js
CHANGED
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _addFocusStyling = _interopRequireDefault(require("../../../style/utils/add-focus-styling"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
const oldFocusStyling = `
|
|
13
13
|
outline: solid 3px var(--colorsSemanticFocus500);
|
|
14
14
|
`;
|
|
@@ -50,5 +50,4 @@ const StyledNavigationItem = _styledComponents.default.li`
|
|
|
50
50
|
`}
|
|
51
51
|
}
|
|
52
52
|
`;
|
|
53
|
-
var _default = StyledNavigationItem;
|
|
54
|
-
exports.default = _default;
|
|
53
|
+
var _default = exports.default = StyledNavigationItem;
|