carbon-react 132.2.0 → 133.0.0
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/README.md +1 -1
- package/esm/__internal__/focus-trap/focus-trap.component.js +1 -1
- package/esm/__internal__/input/input.component.d.ts +0 -2
- package/esm/__internal__/input/input.component.js +0 -8
- package/esm/components/button/button-types.style.d.ts +0 -1
- package/esm/components/button/button-types.style.js +0 -21
- package/esm/components/button/button.component.d.ts +1 -5
- package/esm/components/button/button.component.js +5 -377
- package/esm/components/button/button.config.js +1 -1
- package/esm/components/button/index.d.ts +1 -1
- package/esm/components/button/index.js +1 -1
- package/esm/components/checkbox/checkbox.component.d.ts +0 -2
- package/esm/components/checkbox/checkbox.component.js +1 -10
- package/esm/components/confirm/confirm.component.d.ts +4 -4
- package/esm/components/date/date.component.js +0 -9
- package/esm/components/decimal/decimal.component.js +1 -9
- package/esm/components/grouped-character/grouped-character.component.js +0 -8
- package/esm/components/icon/icon.component.d.ts +2 -1
- package/esm/components/icon/icon.component.js +7 -3
- package/esm/components/menu/__internal__/submenu/submenu.component.js +45 -12
- package/esm/components/menu/__internal__/submenu/submenu.style.d.ts +1 -0
- package/esm/components/menu/__internal__/submenu/submenu.style.js +31 -1
- package/esm/components/modal/__internal__/modal-manager.js +2 -3
- package/esm/components/number/number.component.js +0 -8
- package/esm/components/radio-button/radio-button.component.d.ts +0 -2
- package/esm/components/radio-button/radio-button.component.js +1 -11
- package/esm/components/select/filterable-select/filterable-select.component.js +2 -10
- package/esm/components/select/list-action-button/list-action-button.component.js +1 -1
- package/esm/components/select/multi-select/multi-select.component.js +2 -10
- package/esm/components/select/select-textbox/select-textbox.component.js +0 -1
- package/esm/components/select/simple-select/simple-select.component.js +2 -10
- package/esm/components/switch/switch.component.d.ts +0 -2
- package/esm/components/switch/switch.component.js +2 -11
- package/esm/components/textarea/textarea.component.js +0 -8
- package/esm/components/textbox/textbox.component.js +0 -8
- package/esm/hooks/__internal__/useScrollBlock/scroll-block-manager.js +2 -3
- package/lib/__internal__/character-count/character-count.style.js +1 -1
- package/lib/__internal__/checkable-input/checkable-input.component.js +1 -1
- package/lib/__internal__/checkable-input/checkable-input.style.js +1 -1
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +1 -1
- package/lib/__internal__/field-help/field-help.style.js +1 -1
- package/lib/__internal__/fieldset/fieldset.component.js +1 -1
- package/lib/__internal__/fieldset/fieldset.style.js +1 -1
- package/lib/__internal__/focus-trap/focus-trap.component.js +2 -2
- package/lib/__internal__/form-field/form-field.component.js +1 -1
- package/lib/__internal__/form-field/form-field.style.js +1 -1
- package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +1 -1
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +1 -1
- package/lib/__internal__/input/input-presentation.component.js +1 -1
- package/lib/__internal__/input/input-presentation.style.js +1 -1
- package/lib/__internal__/input/input.component.d.ts +0 -2
- package/lib/__internal__/input/input.component.js +1 -9
- package/lib/__internal__/input/input.style.js +1 -1
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +1 -1
- package/lib/__internal__/label/label.component.js +1 -1
- package/lib/__internal__/label/label.style.js +1 -1
- package/lib/__internal__/popover/popover.component.js +1 -1
- package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -1
- package/lib/__internal__/sticky-footer/sticky-footer.component.js +1 -1
- package/lib/__internal__/sticky-footer/sticky-footer.style.js +1 -1
- package/lib/__internal__/tooltip-provider/index.js +1 -1
- package/lib/__internal__/validation-message/validation-message.style.js +1 -1
- package/lib/__internal__/validations/validation-icon.component.js +1 -1
- package/lib/__internal__/validations/validation-icon.style.js +1 -1
- package/lib/components/accordion/accordion-group/accordion-group.component.js +1 -1
- package/lib/components/accordion/accordion.component.js +1 -1
- package/lib/components/accordion/accordion.style.js +1 -1
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +1 -1
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +1 -1
- package/lib/components/action-popover/action-popover.component.js +1 -1
- package/lib/components/action-popover/action-popover.style.js +1 -1
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -1
- package/lib/components/advanced-color-picker/advanced-color-picker.component.js +1 -1
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -1
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/lib/components/anchor-navigation/anchor-navigation.component.js +1 -1
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/batch-selection/batch-selection.style.js +1 -1
- package/lib/components/box/box.style.js +1 -1
- package/lib/components/breadcrumbs/crumb/crumb.style.js +1 -1
- package/lib/components/button/button-types.style.d.ts +0 -1
- package/lib/components/button/button-types.style.js +0 -21
- package/lib/components/button/button.component.d.ts +1 -5
- package/lib/components/button/button.component.js +7 -378
- package/lib/components/button/button.config.js +1 -1
- package/lib/components/button/button.style.js +1 -1
- package/lib/components/button/index.d.ts +1 -1
- package/lib/components/button/index.js +2 -9
- package/lib/components/button-bar/button-bar.style.js +1 -1
- package/lib/components/button-minor/button-minor.component.js +1 -1
- package/lib/components/button-minor/button-minor.style.js +1 -1
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.component.js +1 -1
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.js +1 -1
- package/lib/components/button-toggle/button-toggle.component.js +1 -1
- package/lib/components/button-toggle/button-toggle.style.js +1 -1
- package/lib/components/carbon-provider/carbon-provider.component.js +1 -1
- package/lib/components/carbon-provider/top-modal-context.js +1 -1
- package/lib/components/card/card-footer/card-footer.component.js +1 -1
- package/lib/components/card/card-footer/card-footer.style.js +1 -1
- package/lib/components/card/card-row/card-row.component.js +1 -1
- package/lib/components/card/card-row/card-row.style.js +1 -1
- package/lib/components/card/card.component.js +1 -1
- package/lib/components/card/card.style.js +1 -1
- package/lib/components/carousel/carousel.component.js +1 -1
- package/lib/components/carousel/carousel.style.js +1 -1
- package/lib/components/carousel/slide/slide.style.js +1 -1
- package/lib/components/checkbox/checkbox-group/checkbox-group.component.js +1 -1
- package/lib/components/checkbox/checkbox-group/checkbox-group.style.js +1 -1
- package/lib/components/checkbox/checkbox.component.d.ts +0 -2
- package/lib/components/checkbox/checkbox.component.js +2 -11
- package/lib/components/checkbox/checkbox.style.js +1 -1
- package/lib/components/confirm/confirm.component.d.ts +4 -4
- package/lib/components/confirm/confirm.component.js +1 -1
- package/lib/components/confirm/confirm.style.js +1 -1
- package/lib/components/content/content.style.js +1 -1
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +1 -1
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/lib/components/date/date.component.js +1 -10
- package/lib/components/date/date.style.js +1 -1
- package/lib/components/date-range/date-range.component.js +1 -1
- package/lib/components/decimal/decimal.component.js +2 -10
- package/lib/components/definition-list/dd/dd.component.js +1 -1
- package/lib/components/definition-list/definition-list.style.js +1 -1
- package/lib/components/definition-list/dt/dt.component.js +1 -1
- package/lib/components/detail/detail.style.js +1 -1
- package/lib/components/dialog/dialog.component.js +1 -1
- package/lib/components/dialog/dialog.style.js +1 -1
- package/lib/components/dialog-full-screen/content.style.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +1 -1
- package/lib/components/dismissible-box/dismissible-box.style.js +1 -1
- package/lib/components/draggable/draggable-container.component.js +1 -1
- package/lib/components/drawer/drawer.component.js +1 -1
- package/lib/components/drawer/drawer.style.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/duelling-picklist/duelling-picklist.component.js +1 -1
- package/lib/components/duelling-picklist/duelling-picklist.style.js +1 -1
- package/lib/components/duelling-picklist/picklist/picklist.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +1 -1
- package/lib/components/fieldset/fieldset.component.js +1 -1
- package/lib/components/fieldset/fieldset.style.js +1 -1
- package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.style.js +1 -1
- package/lib/components/file-input/file-input.component.js +1 -1
- package/lib/components/file-input/file-input.style.js +1 -1
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +1 -1
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +1 -1
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +1 -1
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +1 -1
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +1 -1
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +1 -1
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +1 -1
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +1 -1
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +1 -1
- package/lib/components/flat-table/flat-table-row/__internal__/sub-row-provider.js +1 -1
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +1 -1
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +1 -1
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +1 -1
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +1 -1
- package/lib/components/flat-table/flat-table.component.js +1 -1
- package/lib/components/flat-table/flat-table.style.js +1 -1
- package/lib/components/flat-table/sort/sort.component.js +1 -1
- package/lib/components/form/__internal__/form-summary.component.js +1 -1
- package/lib/components/form/__internal__/form-summary.style.js +1 -1
- package/lib/components/form/form.component.js +1 -1
- package/lib/components/form/form.style.js +1 -1
- package/lib/components/grid/grid-item/grid-item.style.js +1 -1
- package/lib/components/grouped-character/grouped-character.component.js +1 -9
- package/lib/components/heading/heading.style.js +1 -1
- package/lib/components/help/help.component.js +1 -1
- package/lib/components/help/help.style.js +1 -1
- package/lib/components/icon/icon.component.d.ts +2 -1
- package/lib/components/icon/icon.component.js +8 -4
- package/lib/components/icon/icon.style.js +1 -1
- package/lib/components/icon-button/icon-button.component.js +1 -1
- package/lib/components/icon-button/icon-button.style.js +1 -1
- package/lib/components/image/image.style.js +1 -1
- package/lib/components/inline-inputs/inline-inputs.component.js +1 -1
- package/lib/components/inline-inputs/inline-inputs.style.js +1 -1
- package/lib/components/link/link.component.js +1 -1
- package/lib/components/link/link.style.js +1 -1
- package/lib/components/link-preview/link-preview.style.js +1 -1
- package/lib/components/loader/loader-square.style.js +1 -1
- package/lib/components/loader-bar/loader-bar.component.js +1 -1
- package/lib/components/loader-bar/loader-bar.style.js +1 -1
- package/lib/components/loader-spinner/loader-spinner.style.js +1 -1
- package/lib/components/menu/__internal__/submenu/submenu.component.js +46 -13
- package/lib/components/menu/__internal__/submenu/submenu.style.d.ts +1 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.js +32 -2
- package/lib/components/menu/menu-divider/menu-divider.component.js +1 -1
- package/lib/components/menu/menu-divider/menu-divider.style.js +1 -1
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +1 -1
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +1 -1
- package/lib/components/menu/menu-item/menu-item.component.js +1 -1
- package/lib/components/menu/menu-item/menu-item.style.js +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/lib/components/menu/menu.component.js +1 -1
- package/lib/components/menu/menu.style.js +1 -1
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +1 -1
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +1 -1
- package/lib/components/message/message.component.js +1 -1
- package/lib/components/message/message.style.js +1 -1
- package/lib/components/message/type-icon/type-icon.style.js +1 -1
- package/lib/components/modal/__internal__/modal-manager.js +2 -3
- package/lib/components/modal/index.js +1 -1
- package/lib/components/modal/modal.component.js +1 -1
- package/lib/components/modal/modal.style.js +1 -1
- package/lib/components/multi-action-button/multi-action-button.component.js +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.js +1 -1
- package/lib/components/navigation-bar/fixed-navigation-bar.context.js +1 -1
- package/lib/components/navigation-bar/navigation-bar.component.js +1 -1
- package/lib/components/navigation-bar/navigation-bar.style.js +1 -1
- package/lib/components/note/note.style.js +1 -1
- package/lib/components/number/number.component.js +1 -9
- package/lib/components/numeral-date/numeral-date.component.js +1 -1
- package/lib/components/numeral-date/numeral-date.style.js +1 -1
- package/lib/components/pager/__internal__/pager-navigation-link.component.js +1 -1
- package/lib/components/pager/__internal__/pager-navigation.component.js +1 -1
- package/lib/components/pager/pager.component.js +1 -1
- package/lib/components/pager/pager.style.js +1 -1
- package/lib/components/pages/page/page.component.js +1 -1
- package/lib/components/pages/pages.component.js +1 -1
- package/lib/components/password/password.component.js +1 -1
- package/lib/components/pill/pill.style.js +1 -1
- package/lib/components/pod/pod.component.js +1 -1
- package/lib/components/pod/pod.style.js +1 -1
- package/lib/components/popover-container/popover-container.component.js +1 -1
- package/lib/components/portal/portal.js +1 -1
- package/lib/components/portrait/portrait.component.js +1 -1
- package/lib/components/preview/__internal__/preview-placeholder.style.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.component.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +1 -1
- package/lib/components/radio-button/radio-button-group/radio-button-group.component.js +1 -1
- package/lib/components/radio-button/radio-button-group/radio-button-group.style.js +1 -1
- package/lib/components/radio-button/radio-button.component.d.ts +0 -2
- package/lib/components/radio-button/radio-button.component.js +2 -12
- package/lib/components/radio-button/radio-button.style.js +1 -1
- package/lib/components/search/search.component.js +1 -1
- package/lib/components/search/search.style.js +1 -1
- package/lib/components/select/__internal__/select-text/select-text.style.js +1 -1
- package/lib/components/select/filterable-select/filterable-select.component.js +3 -11
- package/lib/components/select/list-action-button/list-action-button.component.js +1 -1
- package/lib/components/select/multi-select/multi-select.component.js +3 -11
- package/lib/components/select/option/option.component.js +1 -1
- package/lib/components/select/option/option.style.js +1 -1
- package/lib/components/select/option-group-header/option-group-header.component.js +1 -1
- package/lib/components/select/option-row/option-row.component.js +1 -1
- package/lib/components/select/option-row/option-row.style.js +1 -1
- package/lib/components/select/select-list/select-list.component.js +1 -1
- package/lib/components/select/select-list/select-list.style.js +1 -1
- package/lib/components/select/select-textbox/select-textbox.component.js +1 -2
- package/lib/components/select/select.style.js +1 -1
- package/lib/components/select/simple-select/simple-select.component.js +3 -11
- package/lib/components/select/utils/with-filter.hoc.js +1 -1
- package/lib/components/settings-row/settings-row.style.js +1 -1
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +1 -1
- package/lib/components/sidebar/index.js +1 -1
- package/lib/components/sidebar/sidebar.component.js +1 -1
- package/lib/components/sidebar/sidebar.style.js +1 -1
- package/lib/components/simple-color-picker/simple-color/simple-color.component.js +1 -1
- package/lib/components/simple-color-picker/simple-color/simple-color.style.js +1 -1
- package/lib/components/simple-color-picker/simple-color-picker.component.js +1 -1
- package/lib/components/simple-color-picker/simple-color-picker.style.js +1 -1
- package/lib/components/split-button/split-button-children.style.js +1 -1
- package/lib/components/split-button/split-button-toggle.style.js +1 -1
- package/lib/components/split-button/split-button.component.js +1 -1
- package/lib/components/split-button/split-button.style.js +1 -1
- package/lib/components/step-flow/step-flow.component.js +1 -1
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +1 -1
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +1 -1
- package/lib/components/step-sequence/step-sequence.style.js +1 -1
- package/lib/components/switch/__internal__/switch-slider-panel.style.js +1 -1
- package/lib/components/switch/__internal__/switch-slider.style.js +1 -1
- package/lib/components/switch/switch.component.d.ts +0 -2
- package/lib/components/switch/switch.component.js +3 -12
- package/lib/components/switch/switch.style.js +1 -1
- package/lib/components/tabs/__internal__/tab-title/index.js +1 -1
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +1 -1
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +1 -1
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +1 -1
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +1 -1
- package/lib/components/tabs/tab/index.js +1 -1
- package/lib/components/tabs/tab/tab.component.js +1 -1
- package/lib/components/tabs/tab/tab.style.js +1 -1
- package/lib/components/tabs/tabs.component.js +1 -1
- package/lib/components/tabs/tabs.style.js +1 -1
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +1 -1
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +1 -1
- package/lib/components/text-editor/__internal__/toolbar/toolbar.component.js +1 -1
- package/lib/components/text-editor/index.js +1 -1
- package/lib/components/text-editor/text-editor.component.js +1 -1
- package/lib/components/text-editor/text-editor.style.js +1 -1
- package/lib/components/textarea/textarea.component.js +1 -9
- package/lib/components/textarea/textarea.style.js +1 -1
- package/lib/components/textbox/textbox.component.js +1 -9
- package/lib/components/textbox/textbox.style.js +1 -1
- package/lib/components/tile/tile-content/tile-content.component.js +1 -1
- package/lib/components/tile/tile-content/tile-content.style.js +1 -1
- package/lib/components/tile/tile-footer/tile-footer.style.js +1 -1
- package/lib/components/tile/tile-header/tile-header.style.js +1 -1
- package/lib/components/tile/tile.style.js +1 -1
- package/lib/components/tile-select/__internal__/accordion/accordion.component.js +1 -1
- package/lib/components/tile-select/tile-select.component.js +1 -1
- package/lib/components/tile-select/tile-select.style.js +1 -1
- package/lib/components/time/__internal__/time-toggle/time-toggle.component.js +1 -1
- package/lib/components/time/time.component.js +1 -1
- package/lib/components/toast/toast.component.js +1 -1
- package/lib/components/toast/toast.style.js +1 -1
- package/lib/components/tooltip/tooltip-pointer.style.js +1 -1
- package/lib/components/tooltip/tooltip.component.js +1 -1
- package/lib/components/tooltip/tooltip.style.js +1 -1
- package/lib/components/typography/typography.style.js +1 -1
- package/lib/components/vertical-divider/vertical-divider.component.js +1 -1
- package/lib/components/vertical-divider/vertical-divider.style.js +1 -1
- package/lib/components/vertical-menu/vertical-menu-full-screen/vertical-menu-full-screen.component.js +1 -1
- package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.js +1 -1
- package/lib/components/vertical-menu/vertical-menu.style.js +1 -1
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +1 -1
- package/lib/hooks/__internal__/useIsStickyFooterForm/useIsStickyFooterForm.js +1 -1
- package/lib/hooks/__internal__/useScrollBlock/scroll-block-manager.js +2 -3
- package/package.json +6 -14
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _invariant = _interopRequireDefault(require("invariant"));
|
|
@@ -11,12 +11,11 @@ var _icon = _interopRequireDefault(require("../icon"));
|
|
|
11
11
|
var _button = _interopRequireWildcard(require("./button.style"));
|
|
12
12
|
var _tags = _interopRequireDefault(require("../../__internal__/utils/helpers/tags/tags"));
|
|
13
13
|
var _tooltipProvider = require("../../__internal__/tooltip-provider");
|
|
14
|
-
var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"));
|
|
15
14
|
var _buttonBar = require("../button-bar/button-bar.component");
|
|
16
15
|
var _splitButton = _interopRequireDefault(require("../split-button/__internal__/split-button.context"));
|
|
17
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
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); }
|
|
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 &&
|
|
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 && {}.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
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); }
|
|
21
20
|
function renderChildren({
|
|
22
21
|
/* eslint-disable react/prop-types */
|
|
@@ -66,8 +65,6 @@ function renderChildren({
|
|
|
66
65
|
type: iconType
|
|
67
66
|
}, iconProps)));
|
|
68
67
|
}
|
|
69
|
-
let deprecatedForwardRefWarnTriggered = false;
|
|
70
|
-
let deprecatedDashedButtonWarnTriggered = false;
|
|
71
68
|
const Button = /*#__PURE__*/_react.default.forwardRef(({
|
|
72
69
|
"aria-describedby": ariaDescribedBy,
|
|
73
70
|
"aria-label": ariaLabel,
|
|
@@ -76,7 +73,6 @@ const Button = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
76
73
|
children,
|
|
77
74
|
destructive = false,
|
|
78
75
|
disabled = false,
|
|
79
|
-
forwardRef,
|
|
80
76
|
fullWidth: fullWidthProp = false,
|
|
81
77
|
href,
|
|
82
78
|
iconPosition: iconPositionProp = "before",
|
|
@@ -107,14 +103,6 @@ const Button = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
107
103
|
if (subtext) {
|
|
108
104
|
!(size === "large") ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "subtext prop has no effect unless the button is large.") : (0, _invariant.default)(false) : void 0;
|
|
109
105
|
}
|
|
110
|
-
if (!deprecatedForwardRefWarnTriggered && forwardRef) {
|
|
111
|
-
deprecatedForwardRefWarnTriggered = true;
|
|
112
|
-
_logger.default.deprecate("The `forwardRef` prop in `Button` component is deprecated and will soon be removed. Please use `ref` instead.");
|
|
113
|
-
}
|
|
114
|
-
if (!deprecatedDashedButtonWarnTriggered && buttonType === "dashed") {
|
|
115
|
-
deprecatedDashedButtonWarnTriggered = true;
|
|
116
|
-
_logger.default.deprecate("The `dashed` variant of the `buttonType` prop for `Button` component is deprecated and will soon be removed.");
|
|
117
|
-
}
|
|
118
106
|
const [internalRef, setInternalRef] = (0, _react.useState)();
|
|
119
107
|
const {
|
|
120
108
|
inSplitButton,
|
|
@@ -140,11 +128,10 @@ const Button = /*#__PURE__*/_react.default.forwardRef(({
|
|
|
140
128
|
}
|
|
141
129
|
const setRefs = (0, _react.useCallback)(reference => {
|
|
142
130
|
setInternalRef(reference);
|
|
143
|
-
|
|
144
|
-
if (
|
|
145
|
-
if (typeof
|
|
146
|
-
|
|
147
|
-
}, [ref, forwardRef]);
|
|
131
|
+
if (!ref) return;
|
|
132
|
+
if (typeof ref === "object") ref.current = reference;
|
|
133
|
+
if (typeof ref === "function") ref(reference);
|
|
134
|
+
}, [ref]);
|
|
148
135
|
const isValidChildren = children !== undefined && children !== false;
|
|
149
136
|
return /*#__PURE__*/_react.default.createElement(_button.default, _extends({
|
|
150
137
|
"aria-label": !isValidChildren && iconType ? ariaLabel || iconType : ariaLabel,
|
|
@@ -190,370 +177,13 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
190
177
|
"aria-describedby": _propTypes.default.string,
|
|
191
178
|
"aria-label": _propTypes.default.string,
|
|
192
179
|
"aria-labelledby": _propTypes.default.string,
|
|
193
|
-
"buttonType": _propTypes.default.oneOf(["darkBackground", "
|
|
194
|
-
"children": _propTypes.default.node,
|
|
195
|
-
"data-component": _propTypes.default.string,
|
|
196
|
-
"data-element": _propTypes.default.string,
|
|
197
|
-
"data-role": _propTypes.default.string,
|
|
198
|
-
"destructive": _propTypes.default.bool,
|
|
199
|
-
"disabled": _propTypes.default.bool,
|
|
200
|
-
"forwardRef": _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
201
|
-
"current": _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.object]).isRequired
|
|
202
|
-
})]),
|
|
203
|
-
"fullWidth": _propTypes.default.bool,
|
|
204
|
-
"href": _propTypes.default.string,
|
|
205
|
-
"iconPosition": _propTypes.default.oneOf(["after", "before"]),
|
|
206
|
-
"iconTooltipMessage": _propTypes.default.string,
|
|
207
|
-
"iconTooltipPosition": _propTypes.default.oneOf(["bottom", "left", "right", "top"]),
|
|
208
|
-
"iconType": _propTypes.default.oneOf(["accessibility_web", "add", "admin", "alert_on", "alert", "analysis", "app_facebook", "app_instagram", "app_tiktok", "app_twitter", "app_youtube", "apps", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bill_paid", "bill_unpaid", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "box_arrow_right", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_pay_date", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "card_wallet", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "check_all", "check_none", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "cloud_co2", "coins", "collaborate", "computer_clock", "connect_off", "connect", "construction", "contact_card", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "heart_pulse", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "intranet", "italic", "job_seeked", "key", "laptop", "leaf", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "like_no", "like", "link_cloud", "link_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "microphone", "minimise", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "pin", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "protect", "question_hollow", "question_mark", "question", "recruiting", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "send", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "support_online", "sync", "tag", "talk", "target_man", "target", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "volunteering", "warning", "website", "welfare"]),
|
|
209
|
-
"id": _propTypes.default.string,
|
|
210
|
-
"m": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
211
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
212
|
-
"description": _propTypes.default.string,
|
|
213
|
-
"toString": _propTypes.default.func.isRequired,
|
|
214
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
215
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
216
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
217
|
-
"description": _propTypes.default.string,
|
|
218
|
-
"toString": _propTypes.default.func.isRequired,
|
|
219
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
220
|
-
}), _propTypes.default.string]),
|
|
221
|
-
"margin": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
222
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
223
|
-
"description": _propTypes.default.string,
|
|
224
|
-
"toString": _propTypes.default.func.isRequired,
|
|
225
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
226
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
227
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
228
|
-
"description": _propTypes.default.string,
|
|
229
|
-
"toString": _propTypes.default.func.isRequired,
|
|
230
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
231
|
-
}), _propTypes.default.string]),
|
|
232
|
-
"marginBottom": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
233
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
234
|
-
"description": _propTypes.default.string,
|
|
235
|
-
"toString": _propTypes.default.func.isRequired,
|
|
236
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
237
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
238
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
239
|
-
"description": _propTypes.default.string,
|
|
240
|
-
"toString": _propTypes.default.func.isRequired,
|
|
241
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
242
|
-
}), _propTypes.default.string]),
|
|
243
|
-
"marginLeft": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
244
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
245
|
-
"description": _propTypes.default.string,
|
|
246
|
-
"toString": _propTypes.default.func.isRequired,
|
|
247
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
248
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
249
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
250
|
-
"description": _propTypes.default.string,
|
|
251
|
-
"toString": _propTypes.default.func.isRequired,
|
|
252
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
253
|
-
}), _propTypes.default.string]),
|
|
254
|
-
"marginRight": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
255
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
256
|
-
"description": _propTypes.default.string,
|
|
257
|
-
"toString": _propTypes.default.func.isRequired,
|
|
258
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
259
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
260
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
261
|
-
"description": _propTypes.default.string,
|
|
262
|
-
"toString": _propTypes.default.func.isRequired,
|
|
263
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
264
|
-
}), _propTypes.default.string]),
|
|
265
|
-
"marginTop": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
266
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
267
|
-
"description": _propTypes.default.string,
|
|
268
|
-
"toString": _propTypes.default.func.isRequired,
|
|
269
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
270
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
271
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
272
|
-
"description": _propTypes.default.string,
|
|
273
|
-
"toString": _propTypes.default.func.isRequired,
|
|
274
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
275
|
-
}), _propTypes.default.string]),
|
|
276
|
-
"marginX": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
277
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
278
|
-
"description": _propTypes.default.string,
|
|
279
|
-
"toString": _propTypes.default.func.isRequired,
|
|
280
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
281
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
282
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
283
|
-
"description": _propTypes.default.string,
|
|
284
|
-
"toString": _propTypes.default.func.isRequired,
|
|
285
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
286
|
-
}), _propTypes.default.string]),
|
|
287
|
-
"marginY": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
288
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
289
|
-
"description": _propTypes.default.string,
|
|
290
|
-
"toString": _propTypes.default.func.isRequired,
|
|
291
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
292
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
293
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
294
|
-
"description": _propTypes.default.string,
|
|
295
|
-
"toString": _propTypes.default.func.isRequired,
|
|
296
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
297
|
-
}), _propTypes.default.string]),
|
|
298
|
-
"mb": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
299
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
300
|
-
"description": _propTypes.default.string,
|
|
301
|
-
"toString": _propTypes.default.func.isRequired,
|
|
302
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
303
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
304
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
305
|
-
"description": _propTypes.default.string,
|
|
306
|
-
"toString": _propTypes.default.func.isRequired,
|
|
307
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
308
|
-
}), _propTypes.default.string]),
|
|
309
|
-
"ml": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
310
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
311
|
-
"description": _propTypes.default.string,
|
|
312
|
-
"toString": _propTypes.default.func.isRequired,
|
|
313
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
314
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
315
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
316
|
-
"description": _propTypes.default.string,
|
|
317
|
-
"toString": _propTypes.default.func.isRequired,
|
|
318
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
319
|
-
}), _propTypes.default.string]),
|
|
320
|
-
"mr": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
321
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
322
|
-
"description": _propTypes.default.string,
|
|
323
|
-
"toString": _propTypes.default.func.isRequired,
|
|
324
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
325
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
326
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
327
|
-
"description": _propTypes.default.string,
|
|
328
|
-
"toString": _propTypes.default.func.isRequired,
|
|
329
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
330
|
-
}), _propTypes.default.string]),
|
|
331
|
-
"mt": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
332
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
333
|
-
"description": _propTypes.default.string,
|
|
334
|
-
"toString": _propTypes.default.func.isRequired,
|
|
335
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
336
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
337
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
338
|
-
"description": _propTypes.default.string,
|
|
339
|
-
"toString": _propTypes.default.func.isRequired,
|
|
340
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
341
|
-
}), _propTypes.default.string]),
|
|
342
|
-
"mx": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
343
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
344
|
-
"description": _propTypes.default.string,
|
|
345
|
-
"toString": _propTypes.default.func.isRequired,
|
|
346
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
347
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
348
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
349
|
-
"description": _propTypes.default.string,
|
|
350
|
-
"toString": _propTypes.default.func.isRequired,
|
|
351
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
352
|
-
}), _propTypes.default.string]),
|
|
353
|
-
"my": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
354
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
355
|
-
"description": _propTypes.default.string,
|
|
356
|
-
"toString": _propTypes.default.func.isRequired,
|
|
357
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
358
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
359
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
360
|
-
"description": _propTypes.default.string,
|
|
361
|
-
"toString": _propTypes.default.func.isRequired,
|
|
362
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
363
|
-
}), _propTypes.default.string]),
|
|
364
|
-
"name": _propTypes.default.string,
|
|
365
|
-
"noWrap": _propTypes.default.bool,
|
|
366
|
-
"onBlur": _propTypes.default.func,
|
|
367
|
-
"onChange": _propTypes.default.func,
|
|
368
|
-
"onClick": _propTypes.default.func,
|
|
369
|
-
"onFocus": _propTypes.default.func,
|
|
370
|
-
"onKeyDown": _propTypes.default.func,
|
|
371
|
-
"p": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
372
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
373
|
-
"description": _propTypes.default.string,
|
|
374
|
-
"toString": _propTypes.default.func.isRequired,
|
|
375
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
376
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
377
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
378
|
-
"description": _propTypes.default.string,
|
|
379
|
-
"toString": _propTypes.default.func.isRequired,
|
|
380
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
381
|
-
}), _propTypes.default.string]),
|
|
382
|
-
"padding": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
383
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
384
|
-
"description": _propTypes.default.string,
|
|
385
|
-
"toString": _propTypes.default.func.isRequired,
|
|
386
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
387
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
388
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
389
|
-
"description": _propTypes.default.string,
|
|
390
|
-
"toString": _propTypes.default.func.isRequired,
|
|
391
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
392
|
-
}), _propTypes.default.string]),
|
|
393
|
-
"paddingBottom": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
394
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
395
|
-
"description": _propTypes.default.string,
|
|
396
|
-
"toString": _propTypes.default.func.isRequired,
|
|
397
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
398
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
399
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
400
|
-
"description": _propTypes.default.string,
|
|
401
|
-
"toString": _propTypes.default.func.isRequired,
|
|
402
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
403
|
-
}), _propTypes.default.string]),
|
|
404
|
-
"paddingLeft": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
405
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
406
|
-
"description": _propTypes.default.string,
|
|
407
|
-
"toString": _propTypes.default.func.isRequired,
|
|
408
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
409
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
410
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
411
|
-
"description": _propTypes.default.string,
|
|
412
|
-
"toString": _propTypes.default.func.isRequired,
|
|
413
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
414
|
-
}), _propTypes.default.string]),
|
|
415
|
-
"paddingRight": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
416
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
417
|
-
"description": _propTypes.default.string,
|
|
418
|
-
"toString": _propTypes.default.func.isRequired,
|
|
419
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
420
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
421
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
422
|
-
"description": _propTypes.default.string,
|
|
423
|
-
"toString": _propTypes.default.func.isRequired,
|
|
424
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
425
|
-
}), _propTypes.default.string]),
|
|
426
|
-
"paddingTop": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
427
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
428
|
-
"description": _propTypes.default.string,
|
|
429
|
-
"toString": _propTypes.default.func.isRequired,
|
|
430
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
431
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
432
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
433
|
-
"description": _propTypes.default.string,
|
|
434
|
-
"toString": _propTypes.default.func.isRequired,
|
|
435
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
436
|
-
}), _propTypes.default.string]),
|
|
437
|
-
"paddingX": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
438
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
439
|
-
"description": _propTypes.default.string,
|
|
440
|
-
"toString": _propTypes.default.func.isRequired,
|
|
441
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
442
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
443
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
444
|
-
"description": _propTypes.default.string,
|
|
445
|
-
"toString": _propTypes.default.func.isRequired,
|
|
446
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
447
|
-
}), _propTypes.default.string]),
|
|
448
|
-
"paddingY": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
449
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
450
|
-
"description": _propTypes.default.string,
|
|
451
|
-
"toString": _propTypes.default.func.isRequired,
|
|
452
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
453
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
454
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
455
|
-
"description": _propTypes.default.string,
|
|
456
|
-
"toString": _propTypes.default.func.isRequired,
|
|
457
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
458
|
-
}), _propTypes.default.string]),
|
|
459
|
-
"pb": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
460
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
461
|
-
"description": _propTypes.default.string,
|
|
462
|
-
"toString": _propTypes.default.func.isRequired,
|
|
463
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
464
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
465
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
466
|
-
"description": _propTypes.default.string,
|
|
467
|
-
"toString": _propTypes.default.func.isRequired,
|
|
468
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
469
|
-
}), _propTypes.default.string]),
|
|
470
|
-
"pl": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
471
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
472
|
-
"description": _propTypes.default.string,
|
|
473
|
-
"toString": _propTypes.default.func.isRequired,
|
|
474
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
475
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
476
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
477
|
-
"description": _propTypes.default.string,
|
|
478
|
-
"toString": _propTypes.default.func.isRequired,
|
|
479
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
480
|
-
}), _propTypes.default.string]),
|
|
481
|
-
"pr": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
482
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
483
|
-
"description": _propTypes.default.string,
|
|
484
|
-
"toString": _propTypes.default.func.isRequired,
|
|
485
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
486
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
487
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
488
|
-
"description": _propTypes.default.string,
|
|
489
|
-
"toString": _propTypes.default.func.isRequired,
|
|
490
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
491
|
-
}), _propTypes.default.string]),
|
|
492
|
-
"pt": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
493
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
494
|
-
"description": _propTypes.default.string,
|
|
495
|
-
"toString": _propTypes.default.func.isRequired,
|
|
496
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
497
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
498
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
499
|
-
"description": _propTypes.default.string,
|
|
500
|
-
"toString": _propTypes.default.func.isRequired,
|
|
501
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
502
|
-
}), _propTypes.default.string]),
|
|
503
|
-
"px": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
504
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
505
|
-
"description": _propTypes.default.string,
|
|
506
|
-
"toString": _propTypes.default.func.isRequired,
|
|
507
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
508
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
509
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
510
|
-
"description": _propTypes.default.string,
|
|
511
|
-
"toString": _propTypes.default.func.isRequired,
|
|
512
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
513
|
-
}), _propTypes.default.string]),
|
|
514
|
-
"py": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
515
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
516
|
-
"description": _propTypes.default.string,
|
|
517
|
-
"toString": _propTypes.default.func.isRequired,
|
|
518
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
519
|
-
}), _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
520
|
-
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
521
|
-
"description": _propTypes.default.string,
|
|
522
|
-
"toString": _propTypes.default.func.isRequired,
|
|
523
|
-
"valueOf": _propTypes.default.func.isRequired
|
|
524
|
-
}), _propTypes.default.string]),
|
|
525
|
-
"rel": _propTypes.default.string,
|
|
526
|
-
"size": _propTypes.default.oneOf(["large", "medium", "small"]),
|
|
527
|
-
"subtext": _propTypes.default.string,
|
|
528
|
-
"target": _propTypes.default.string,
|
|
529
|
-
"type": _propTypes.default.string
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
let deprecatedButtonForwardRefWarnTriggered = false;
|
|
533
|
-
const ButtonWithForwardRef = exports.ButtonWithForwardRef = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
534
|
-
if (!deprecatedButtonForwardRefWarnTriggered) {
|
|
535
|
-
deprecatedButtonForwardRefWarnTriggered = true;
|
|
536
|
-
_logger.default.deprecate("The `ButtonWithForwardRef` component is deprecated and will soon be removed. Please use a basic `Button` component with `ref` instead.");
|
|
537
|
-
}
|
|
538
|
-
return /*#__PURE__*/_react.default.createElement(Button, _extends({
|
|
539
|
-
ref: ref
|
|
540
|
-
}, props));
|
|
541
|
-
});
|
|
542
|
-
if (process.env.NODE_ENV !== "production") {
|
|
543
|
-
ButtonWithForwardRef.propTypes = {
|
|
544
|
-
"aria-describedby": _propTypes.default.string,
|
|
545
|
-
"aria-label": _propTypes.default.string,
|
|
546
|
-
"aria-labelledby": _propTypes.default.string,
|
|
547
|
-
"buttonType": _propTypes.default.oneOf(["darkBackground", "dashed", "gradient-grey", "gradient-white", "primary", "secondary", "tertiary"]),
|
|
180
|
+
"buttonType": _propTypes.default.oneOf(["darkBackground", "gradient-grey", "gradient-white", "primary", "secondary", "tertiary"]),
|
|
548
181
|
"children": _propTypes.default.node,
|
|
549
182
|
"data-component": _propTypes.default.string,
|
|
550
183
|
"data-element": _propTypes.default.string,
|
|
551
184
|
"data-role": _propTypes.default.string,
|
|
552
185
|
"destructive": _propTypes.default.bool,
|
|
553
186
|
"disabled": _propTypes.default.bool,
|
|
554
|
-
"forwardRef": _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
555
|
-
"current": _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.object]).isRequired
|
|
556
|
-
})]),
|
|
557
187
|
"fullWidth": _propTypes.default.bool,
|
|
558
188
|
"href": _propTypes.default.string,
|
|
559
189
|
"iconPosition": _propTypes.default.oneOf(["after", "before"]),
|
|
@@ -883,6 +513,5 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
883
513
|
"type": _propTypes.default.string
|
|
884
514
|
};
|
|
885
515
|
}
|
|
886
|
-
ButtonWithForwardRef.displayName = "Button";
|
|
887
516
|
Button.displayName = "Button";
|
|
888
517
|
var _default = exports.default = Button;
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BUTTON_VARIANTS = exports.BUTTON_SIZES = exports.BUTTON_ICON_POSITIONS = void 0;
|
|
7
|
-
const BUTTON_VARIANTS = exports.BUTTON_VARIANTS = ["primary", "secondary", "tertiary", "
|
|
7
|
+
const BUTTON_VARIANTS = exports.BUTTON_VARIANTS = ["primary", "secondary", "tertiary", "darkBackground", "gradient-white", "gradient-grey"];
|
|
8
8
|
const BUTTON_SIZES = exports.BUTTON_SIZES = ["small", "medium", "large"];
|
|
9
9
|
const BUTTON_ICON_POSITIONS = exports.BUTTON_ICON_POSITIONS = ["before", "after"];
|
|
@@ -12,7 +12,7 @@ var _icon = _interopRequireDefault(require("../icon/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
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 &&
|
|
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 && {}.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
|
function additionalIconStyle(iconType) {
|
|
17
17
|
if (iconType === "services") return "6px";
|
|
18
18
|
return "20px";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default
|
|
1
|
+
export { default } from "./button.component";
|
|
2
2
|
export type { ButtonProps } from "./button.component";
|
|
@@ -3,18 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "ButtonWithForwardRef", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _button.ButtonWithForwardRef;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "default", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function () {
|
|
15
9
|
return _button.default;
|
|
16
10
|
}
|
|
17
11
|
});
|
|
18
|
-
var _button =
|
|
19
|
-
function
|
|
20
|
-
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
|
+
var _button = _interopRequireDefault(require("./button.component"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -12,7 +12,7 @@ var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
|
12
12
|
var _iconButton = _interopRequireDefault(require("../icon-button/icon-button.style"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
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 &&
|
|
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 && {}.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
|
const commonHoverStyles = `
|
|
17
17
|
background-color: var(--colorsActionMajor600);
|
|
18
18
|
border-color: var(--colorsActionMajor600);
|
|
@@ -10,7 +10,7 @@ var _buttonMinor = _interopRequireDefault(require("./button-minor.style"));
|
|
|
10
10
|
var _buttonBar = require("../button-bar/button-bar.component");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
|
-
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 &&
|
|
13
|
+
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 && {}.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; }
|
|
14
14
|
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); }
|
|
15
15
|
const ButtonMinor = ({
|
|
16
16
|
buttonType: buttonTypeProp = "secondary",
|
|
@@ -10,7 +10,7 @@ var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
|
10
10
|
var _loaderSquare = _interopRequireDefault(require("../loader/loader-square.style"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
|
-
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 &&
|
|
13
|
+
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 && {}.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; }
|
|
14
14
|
function makeColors(color) {
|
|
15
15
|
return `
|
|
16
16
|
color: ${color};
|
|
@@ -19,7 +19,7 @@ var _events = _interopRequireDefault(require("../../../__internal__/utils/helper
|
|
|
19
19
|
var _carbonProvider = require("../../carbon-provider/carbon-provider.component");
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
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 &&
|
|
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 && {}.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
|
let deprecateNameWarnTriggered = false;
|
|
25
25
|
const BUTTON_TOGGLE_SELECTOR = '[data-element="button-toggle-button"]';
|
|
@@ -9,7 +9,7 @@ var _styledSystem = require("styled-system");
|
|
|
9
9
|
var _themes = require("../../../style/themes");
|
|
10
10
|
var _buttonToggle = require("../button-toggle.style");
|
|
11
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 &&
|
|
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 && {}.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 StyledButtonToggleGroup = _styledComponents.default.div`
|
|
14
14
|
${_styledSystem.margin}
|
|
15
15
|
|
|
@@ -15,7 +15,7 @@ var _logger = _interopRequireDefault(require("../../__internal__/utils/logger"))
|
|
|
15
15
|
var _inputBehaviour = require("../../__internal__/input-behaviour");
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
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 &&
|
|
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 && {}.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
|
let deprecateCheckedWarnTriggered = false;
|
|
21
21
|
let deprecateNameWarnTriggered = false;
|
|
@@ -10,7 +10,7 @@ var _addFocusStyling = _interopRequireDefault(require("../../style/utils/add-foc
|
|
|
10
10
|
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
|
-
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 &&
|
|
13
|
+
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 && {}.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; }
|
|
14
14
|
const heightConfig = exports.heightConfig = {
|
|
15
15
|
small: 24,
|
|
16
16
|
medium: 32,
|
|
@@ -12,7 +12,7 @@ var _themes = require("../../style/themes");
|
|
|
12
12
|
var _topModalContext = require("./top-modal-context");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
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 &&
|
|
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 && {}.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
|
const NewValidationContext = exports.NewValidationContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
17
17
|
const CarbonProvider = ({
|
|
18
18
|
children,
|