carbon-react 152.2.0 → 153.0.0-beta.1
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__/fieldset/fieldset.component.js +2 -2
- package/esm/__internal__/fieldset/fieldset.style.d.ts +3 -3
- package/esm/__internal__/fieldset/fieldset.style.js +1 -0
- package/esm/__internal__/focus-trap/focus-trap-utils.d.ts +1 -1
- package/esm/__internal__/focus-trap/focus-trap.component.d.ts +1 -1
- package/esm/__internal__/form-field/form-field.component.js +2 -2
- package/esm/__internal__/form-field/form-field.style.js +1 -0
- package/esm/__internal__/input/input-presentation.component.d.ts +1 -1
- package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
- package/esm/__internal__/input/input.component.d.ts +1 -1
- package/esm/__internal__/popover/popover.component.d.ts +1 -1
- package/esm/__internal__/popover/popover.style.d.ts +1 -1
- package/esm/__internal__/validations/validation-icon.component.d.ts +1 -1
- package/esm/__internal__/validations/validation-icon.style.d.ts +1 -1
- package/esm/components/accordion/accordion-group/accordion-group.component.d.ts +1 -1
- package/esm/components/accordion/accordion.style.js +2 -2
- package/esm/components/action-popover/__internal__/action-popover-utils.d.ts +1 -1
- package/esm/components/action-popover/__internal__/action-popover.context.d.ts +2 -2
- package/esm/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover.component.d.ts +1 -1
- package/esm/components/action-popover/action-popover.style.d.ts +1 -1
- package/esm/components/badge/badge.style.d.ts +1 -1
- package/esm/components/batch-selection/__internal__/batch-selection.context.d.ts +1 -1
- package/esm/components/box/box.component.d.ts +6 -6
- package/esm/components/breadcrumbs/__internal__/breadcrumbs.context.d.ts +1 -1
- package/esm/components/button/button.component.d.ts +8 -8
- package/esm/components/button/button.component.js +1 -1
- package/esm/components/button/button.style.js +22 -8
- package/esm/components/button-minor/button-minor.style.d.ts +1 -1
- package/esm/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +1 -1
- package/esm/components/button-toggle/button-toggle-group/button-toggle-group.style.d.ts +1 -1
- package/esm/components/button-toggle/button-toggle.style.d.ts +1 -1
- package/esm/components/carbon-provider/__internal__/top-modal.context.d.ts +1 -1
- package/esm/components/card/card.component.d.ts +2 -2
- package/esm/components/card/card.config.d.ts +2 -2
- package/esm/components/card/card.style.d.ts +2 -2
- package/esm/components/checkbox/checkbox-group/checkbox-group.component.js +2 -7
- package/esm/components/checkbox/checkbox.component.js +2 -2
- package/esm/components/checkbox/checkbox.style.js +1 -0
- package/esm/components/content/content.style.d.ts +2 -2
- package/esm/components/date/__internal__/date-picker/date-picker.component.d.ts +1 -1
- package/esm/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/esm/components/date/date.component.js +2 -3
- package/esm/components/date/date.style.js +1 -0
- package/esm/components/date-range/__internal__/date-range.context.d.ts +4 -4
- package/esm/components/date-range/date-range.style.js +1 -0
- package/esm/components/definition-list/__internal__/dl.context.d.ts +1 -1
- package/esm/components/dialog/dialog.component.d.ts +2 -2
- package/esm/components/dialog/dialog.config.d.ts +1 -1
- package/esm/components/dialog/dialog.style.d.ts +1 -1
- package/esm/components/dialog-full-screen/content.style.d.ts +1 -1
- package/esm/components/dialog-full-screen/content.style.js +8 -7
- package/esm/components/duelling-picklist/__internal__/duelling-picklist.context.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-divider/picklist-divider.component.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.component.d.ts +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -1
- package/esm/components/fieldset/fieldset.component.js +3 -6
- package/esm/components/fieldset/fieldset.style.js +5 -0
- package/esm/components/file-input/__internal__/file-upload-status/file-upload-status.component.d.ts +1 -1
- package/esm/components/flat-table/index.d.ts +2 -2
- package/esm/components/form/__internal__/form-summary.style.d.ts +2 -2
- package/esm/components/form/form.component.js +3 -6
- package/esm/components/form/form.config.d.ts +1 -1
- package/esm/components/form/form.style.d.ts +1 -1
- package/esm/components/form/form.style.js +20 -11
- package/esm/components/grouped-character/grouped-character.component.d.ts +2 -2
- package/esm/components/heading/heading.component.d.ts +1 -1
- package/esm/components/heading/heading.style.d.ts +3 -3
- package/esm/components/icon/icon-type.d.ts +1 -1
- package/esm/components/icon/icon-unicodes.d.ts +248 -248
- package/esm/components/icon/icon.component.d.ts +1 -1
- package/esm/components/icon/icon.style.d.ts +3 -3
- package/esm/components/icon/icon.style.js +5 -11
- package/esm/components/image/image.style.d.ts +2 -2
- package/esm/components/inline-inputs/inline-inputs.component.js +3 -6
- package/esm/components/inline-inputs/inline-inputs.style.d.ts +1 -1
- package/esm/components/inline-inputs/inline-inputs.style.js +1 -0
- package/esm/components/link/link.style.d.ts +1 -1
- package/esm/components/loader-spinner/loader-spinner.config.d.ts +3 -3
- package/esm/components/loader-spinner/loader-spinner.style.js +1 -1
- package/esm/components/menu/__internal__/locators.d.ts +3 -3
- package/esm/components/menu/__internal__/menu.context.d.ts +1 -1
- package/esm/components/menu/menu-item/menu-item.component.d.ts +1 -1
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.d.ts +1 -1
- package/esm/components/message/__internal__/type-icon/type-icon.style.d.ts +1 -1
- package/esm/components/message/message.component.d.ts +1 -1
- package/esm/components/message/message.style.d.ts +1 -1
- package/esm/components/modal/__internal__/modal-manager.d.ts +2 -2
- package/esm/components/modal/modal.style.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.component.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.style.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.style.js +6 -5
- package/esm/components/navigation-bar/__internal__/fixed-navigation-bar.context.d.ts +1 -1
- package/esm/components/navigation-bar/navigation-bar.component.d.ts +3 -3
- package/esm/components/navigation-bar/navigation-bar.style.d.ts +1 -1
- package/esm/components/numeral-date/__internal__/numeral-date.context.d.ts +1 -1
- package/esm/components/numeral-date/numeral-date.component.d.ts +2 -2
- package/esm/components/numeral-date/numeral-date.component.js +2 -1
- package/esm/components/pager/pager.component.d.ts +1 -1
- package/esm/components/pod/pod.config.d.ts +3 -3
- package/esm/components/popover-container/popover-container.component.d.ts +1 -1
- package/esm/components/popover-container/popover-container.style.d.ts +3 -3
- package/esm/components/portrait/portrait.component.d.ts +2 -2
- package/esm/components/portrait/portrait.config.d.ts +1 -1
- package/esm/components/portrait/portrait.style.d.ts +1 -1
- package/esm/components/preview/preview.component.d.ts +1 -1
- package/esm/components/preview/preview.style.js +4 -4
- package/esm/components/profile/profile.config.d.ts +2 -2
- package/esm/components/progress-tracker/progress-tracker.style.js +1 -1
- package/esm/components/search/search.component.d.ts +1 -1
- package/esm/components/search/search.component.js +3 -3
- package/esm/components/search/search.style.js +1 -0
- package/esm/components/select/__internal__/select-list/select-list.component.d.ts +2 -2
- package/esm/components/select/__internal__/select-list/select-list.context.d.ts +1 -1
- package/esm/components/select/__internal__/select-textbox/select-textbox.context.d.ts +1 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +2 -3
- package/esm/components/select/multi-select/multi-select.component.js +2 -3
- package/esm/components/select/option/option.component.d.ts +1 -1
- package/esm/components/select/select.style.js +1 -0
- package/esm/components/select/simple-select/simple-select.component.js +2 -3
- package/esm/components/sidebar/sidebar.component.d.ts +1 -1
- package/esm/components/sidebar/sidebar.style.d.ts +1 -1
- package/esm/components/simple-color-picker/simple-color-picker.style.d.ts +1 -1
- package/esm/components/split-button/split-button-children.style.d.ts +1 -1
- package/esm/components/split-button/split-button-toggle.style.d.ts +1 -1
- package/esm/components/split-button/split-button.component.d.ts +1 -1
- package/esm/components/step-flow/__internal__/step-flow.context.d.ts +1 -1
- package/esm/components/step-flow/step-flow.component.d.ts +2 -2
- package/esm/components/switch/switch.component.js +2 -2
- package/esm/components/switch/switch.style.d.ts +6 -1
- package/esm/components/switch/switch.style.js +1 -0
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +3 -4
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +5 -5
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -2
- package/esm/components/tabs/tab/tab.style.d.ts +1 -1
- package/esm/components/text-editor/__internal__/plugins/Toolbar/toolbar.style.d.ts +1 -1
- package/esm/components/text-editor/text-editor.style.d.ts +1 -1
- package/esm/components/text-editor/text-editor.style.js +1 -0
- package/esm/components/textarea/textarea.component.js +4 -3
- package/esm/components/textarea/textarea.style.js +2 -1
- package/esm/components/textbox/textbox.component.js +1 -1
- package/esm/components/tile/tile.component.d.ts +2 -2
- package/esm/components/time/time.component.d.ts +3 -3
- package/esm/components/time/time.component.js +6 -3
- package/esm/components/toast/toast.component.d.ts +3 -3
- package/esm/components/toast/toast.style.d.ts +2 -2
- package/esm/components/tooltip/tooltip.component.d.ts +1 -1
- package/esm/components/tooltip/tooltip.config.d.ts +1 -1
- package/esm/components/typography/typography.component.d.ts +1 -1
- package/esm/components/typography/typography.component.js +16 -1
- package/esm/components/typography/typography.style.d.ts +1 -10
- package/esm/components/typography/typography.style.js +39 -63
- package/esm/components/vertical-divider/vertical-divider.component.d.ts +1 -1
- package/esm/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
- package/esm/global.d.ts +1 -1
- package/esm/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -1
- package/esm/hooks/__internal__/useDebounce/useDebounce.d.ts +1 -1
- package/esm/hooks/__internal__/useFloating/useFloating.d.ts +1 -1
- package/esm/hooks/__internal__/useModalManager/useModalManager.d.ts +1 -1
- package/esm/hooks/__internal__/useThrottle/useThrottle.d.ts +1 -1
- package/esm/style/palette/index.d.ts +1 -1
- package/esm/style/themes/base/base-theme.config.d.ts +1 -1
- package/esm/style/utils/box-gap.d.ts +2 -2
- package/lib/__internal__/fieldset/fieldset.component.js +2 -2
- package/lib/__internal__/fieldset/fieldset.style.d.ts +3 -3
- package/lib/__internal__/fieldset/fieldset.style.js +1 -0
- package/lib/__internal__/focus-trap/focus-trap-utils.d.ts +1 -1
- package/lib/__internal__/focus-trap/focus-trap.component.d.ts +1 -1
- package/lib/__internal__/form-field/form-field.component.js +2 -2
- package/lib/__internal__/form-field/form-field.style.js +1 -0
- package/lib/__internal__/input/input-presentation.component.d.ts +1 -1
- package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
- package/lib/__internal__/input/input.component.d.ts +1 -1
- package/lib/__internal__/popover/popover.component.d.ts +1 -1
- package/lib/__internal__/popover/popover.style.d.ts +1 -1
- package/lib/__internal__/validations/validation-icon.component.d.ts +1 -1
- package/lib/__internal__/validations/validation-icon.style.d.ts +1 -1
- package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +1 -1
- package/lib/components/accordion/accordion.style.js +2 -2
- package/lib/components/action-popover/__internal__/action-popover-utils.d.ts +1 -1
- package/lib/components/action-popover/__internal__/action-popover.context.d.ts +2 -2
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover.component.d.ts +1 -1
- package/lib/components/action-popover/action-popover.style.d.ts +1 -1
- package/lib/components/badge/badge.style.d.ts +1 -1
- package/lib/components/batch-selection/__internal__/batch-selection.context.d.ts +1 -1
- package/lib/components/box/box.component.d.ts +6 -6
- package/lib/components/breadcrumbs/__internal__/breadcrumbs.context.d.ts +1 -1
- package/lib/components/button/button.component.d.ts +8 -8
- package/lib/components/button/button.component.js +1 -1
- package/lib/components/button/button.style.js +22 -8
- package/lib/components/button-minor/button-minor.style.d.ts +1 -1
- package/lib/components/button-toggle/button-toggle-group/__internal__/button-toggle-group.context.d.ts +1 -1
- package/lib/components/button-toggle/button-toggle-group/button-toggle-group.style.d.ts +1 -1
- package/lib/components/button-toggle/button-toggle.style.d.ts +1 -1
- package/lib/components/carbon-provider/__internal__/top-modal.context.d.ts +1 -1
- package/lib/components/card/card.component.d.ts +2 -2
- package/lib/components/card/card.config.d.ts +2 -2
- package/lib/components/card/card.style.d.ts +2 -2
- package/lib/components/checkbox/checkbox-group/checkbox-group.component.js +2 -7
- package/lib/components/checkbox/checkbox.component.js +2 -2
- package/lib/components/checkbox/checkbox.style.js +1 -0
- package/lib/components/content/content.style.d.ts +2 -2
- package/lib/components/date/__internal__/date-picker/date-picker.component.d.ts +1 -1
- package/lib/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/lib/components/date/date.component.js +1 -2
- package/lib/components/date/date.style.js +1 -0
- package/lib/components/date-range/__internal__/date-range.context.d.ts +4 -4
- package/lib/components/date-range/date-range.style.js +1 -0
- package/lib/components/definition-list/__internal__/dl.context.d.ts +1 -1
- package/lib/components/dialog/dialog.component.d.ts +2 -2
- package/lib/components/dialog/dialog.config.d.ts +1 -1
- package/lib/components/dialog/dialog.style.d.ts +1 -1
- package/lib/components/dialog-full-screen/content.style.d.ts +1 -1
- package/lib/components/dialog-full-screen/content.style.js +8 -7
- package/lib/components/duelling-picklist/__internal__/duelling-picklist.context.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.d.ts +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +1 -1
- package/lib/components/fieldset/fieldset.component.js +3 -6
- package/lib/components/fieldset/fieldset.style.js +5 -0
- package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.component.d.ts +1 -1
- package/lib/components/flat-table/index.d.ts +2 -2
- package/lib/components/form/__internal__/form-summary.style.d.ts +2 -2
- package/lib/components/form/form.component.js +3 -6
- package/lib/components/form/form.config.d.ts +1 -1
- package/lib/components/form/form.style.d.ts +1 -1
- package/lib/components/form/form.style.js +20 -11
- package/lib/components/grouped-character/grouped-character.component.d.ts +2 -2
- package/lib/components/heading/heading.component.d.ts +1 -1
- package/lib/components/heading/heading.style.d.ts +3 -3
- package/lib/components/icon/icon-type.d.ts +1 -1
- package/lib/components/icon/icon-unicodes.d.ts +248 -248
- package/lib/components/icon/icon.component.d.ts +1 -1
- package/lib/components/icon/icon.style.d.ts +3 -3
- package/lib/components/icon/icon.style.js +5 -11
- package/lib/components/image/image.style.d.ts +2 -2
- package/lib/components/inline-inputs/inline-inputs.component.js +3 -6
- package/lib/components/inline-inputs/inline-inputs.style.d.ts +1 -1
- package/lib/components/inline-inputs/inline-inputs.style.js +1 -0
- package/lib/components/link/link.style.d.ts +1 -1
- package/lib/components/loader-spinner/loader-spinner.config.d.ts +3 -3
- package/lib/components/loader-spinner/loader-spinner.style.js +1 -1
- package/lib/components/menu/__internal__/locators.d.ts +3 -3
- package/lib/components/menu/__internal__/menu.context.d.ts +1 -1
- package/lib/components/menu/menu-item/menu-item.component.d.ts +1 -1
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.d.ts +1 -1
- package/lib/components/message/__internal__/type-icon/type-icon.style.d.ts +1 -1
- package/lib/components/message/message.component.d.ts +1 -1
- package/lib/components/message/message.style.d.ts +1 -1
- package/lib/components/modal/__internal__/modal-manager.d.ts +2 -2
- package/lib/components/modal/modal.style.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.component.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.js +6 -5
- package/lib/components/navigation-bar/__internal__/fixed-navigation-bar.context.d.ts +1 -1
- package/lib/components/navigation-bar/navigation-bar.component.d.ts +3 -3
- package/lib/components/navigation-bar/navigation-bar.style.d.ts +1 -1
- package/lib/components/numeral-date/__internal__/numeral-date.context.d.ts +1 -1
- package/lib/components/numeral-date/numeral-date.component.d.ts +2 -2
- package/lib/components/numeral-date/numeral-date.component.js +2 -1
- package/lib/components/pager/pager.component.d.ts +1 -1
- package/lib/components/pod/pod.config.d.ts +3 -3
- package/lib/components/popover-container/popover-container.component.d.ts +1 -1
- package/lib/components/popover-container/popover-container.style.d.ts +3 -3
- package/lib/components/portrait/portrait.component.d.ts +2 -2
- package/lib/components/portrait/portrait.config.d.ts +1 -1
- package/lib/components/portrait/portrait.style.d.ts +1 -1
- package/lib/components/preview/preview.component.d.ts +1 -1
- package/lib/components/preview/preview.style.js +4 -4
- package/lib/components/profile/profile.config.d.ts +2 -2
- package/lib/components/progress-tracker/progress-tracker.style.js +1 -1
- package/lib/components/search/search.component.d.ts +1 -1
- package/lib/components/search/search.component.js +3 -3
- package/lib/components/search/search.style.js +1 -0
- package/lib/components/select/__internal__/select-list/select-list.component.d.ts +2 -2
- package/lib/components/select/__internal__/select-list/select-list.context.d.ts +1 -1
- package/lib/components/select/__internal__/select-textbox/select-textbox.context.d.ts +1 -1
- package/lib/components/select/filterable-select/filterable-select.component.js +1 -2
- package/lib/components/select/multi-select/multi-select.component.js +1 -2
- package/lib/components/select/option/option.component.d.ts +1 -1
- package/lib/components/select/select.style.js +1 -0
- package/lib/components/select/simple-select/simple-select.component.js +1 -2
- package/lib/components/sidebar/sidebar.component.d.ts +1 -1
- package/lib/components/sidebar/sidebar.style.d.ts +1 -1
- package/lib/components/simple-color-picker/simple-color-picker.style.d.ts +1 -1
- package/lib/components/split-button/split-button-children.style.d.ts +1 -1
- package/lib/components/split-button/split-button-toggle.style.d.ts +1 -1
- package/lib/components/split-button/split-button.component.d.ts +1 -1
- package/lib/components/step-flow/__internal__/step-flow.context.d.ts +1 -1
- package/lib/components/step-flow/step-flow.component.d.ts +2 -2
- package/lib/components/switch/switch.component.js +2 -2
- package/lib/components/switch/switch.style.d.ts +6 -1
- package/lib/components/switch/switch.style.js +1 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +3 -4
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +5 -5
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -2
- package/lib/components/tabs/tab/tab.style.d.ts +1 -1
- package/lib/components/text-editor/__internal__/plugins/Toolbar/toolbar.style.d.ts +1 -1
- package/lib/components/text-editor/text-editor.style.d.ts +1 -1
- package/lib/components/text-editor/text-editor.style.js +1 -0
- package/lib/components/textarea/textarea.component.js +4 -3
- package/lib/components/textarea/textarea.style.js +2 -1
- package/lib/components/textbox/textbox.component.js +1 -1
- package/lib/components/tile/tile.component.d.ts +2 -2
- package/lib/components/time/time.component.d.ts +3 -3
- package/lib/components/time/time.component.js +6 -3
- package/lib/components/toast/toast.component.d.ts +3 -3
- package/lib/components/toast/toast.style.d.ts +2 -2
- package/lib/components/tooltip/tooltip.component.d.ts +1 -1
- package/lib/components/tooltip/tooltip.config.d.ts +1 -1
- package/lib/components/typography/typography.component.d.ts +1 -1
- package/lib/components/typography/typography.component.js +16 -1
- package/lib/components/typography/typography.style.d.ts +1 -10
- package/lib/components/typography/typography.style.js +39 -63
- package/lib/components/vertical-divider/vertical-divider.component.d.ts +1 -1
- package/lib/components/vertical-menu/vertical-menu-item/vertical-menu-item.component.d.ts +1 -1
- package/lib/global.d.ts +1 -1
- package/lib/hooks/__internal__/useChildButtons/useChildButtons.d.ts +1 -1
- package/lib/hooks/__internal__/useDebounce/useDebounce.d.ts +1 -1
- package/lib/hooks/__internal__/useFloating/useFloating.d.ts +1 -1
- package/lib/hooks/__internal__/useModalManager/useModalManager.d.ts +1 -1
- package/lib/hooks/__internal__/useThrottle/useThrottle.d.ts +1 -1
- package/lib/style/palette/index.d.ts +1 -1
- package/lib/style/themes/base/base-theme.config.d.ts +1 -1
- package/lib/style/utils/box-gap.d.ts +2 -2
- package/package.json +8 -8
- package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.d.ts +0 -7
- package/esm/__internal__/form-spacing-provider/form-spacing-provider.component.js +0 -11
- package/esm/__internal__/form-spacing-provider/form-spacing.context.d.ts +0 -5
- package/esm/__internal__/form-spacing-provider/form-spacing.context.js +0 -2
- package/esm/__internal__/form-spacing-provider/index.d.ts +0 -3
- package/esm/__internal__/form-spacing-provider/index.js +0 -2
- package/esm/hooks/__internal__/useFormSpacing/add-form-spacing/index.d.ts +0 -3
- package/esm/hooks/__internal__/useFormSpacing/add-form-spacing/index.js +0 -27
- package/esm/hooks/__internal__/useFormSpacing/index.d.ts +0 -3
- package/esm/hooks/__internal__/useFormSpacing/index.js +0 -11
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.d.ts +0 -7
- package/lib/__internal__/form-spacing-provider/form-spacing-provider.component.js +0 -18
- package/lib/__internal__/form-spacing-provider/form-spacing.context.d.ts +0 -5
- package/lib/__internal__/form-spacing-provider/form-spacing.context.js +0 -9
- package/lib/__internal__/form-spacing-provider/index.d.ts +0 -3
- package/lib/__internal__/form-spacing-provider/index.js +0 -20
- package/lib/__internal__/form-spacing-provider/package.json +0 -6
- package/lib/hooks/__internal__/useFormSpacing/add-form-spacing/index.d.ts +0 -3
- package/lib/hooks/__internal__/useFormSpacing/add-form-spacing/index.js +0 -34
- package/lib/hooks/__internal__/useFormSpacing/add-form-spacing/package.json +0 -6
- package/lib/hooks/__internal__/useFormSpacing/index.d.ts +0 -3
- package/lib/hooks/__internal__/useFormSpacing/index.js +0 -19
- package/lib/hooks/__internal__/useFormSpacing/package.json +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const LOADER_SPINNER_VARIANTS: readonly ["action", "neutral", "inverse", "gradient-grey", "gradient-white"];
|
|
2
|
-
|
|
2
|
+
type LoaderSpinnerVariants = (typeof LOADER_SPINNER_VARIANTS)[number];
|
|
3
3
|
declare const LOADER_SPINNER_SIZES: readonly ["extra-small", "small", "medium", "large", "extra-large"];
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type LoaderSpinnerSizes = (typeof LOADER_SPINNER_SIZES)[number];
|
|
5
|
+
type LoaderSpinnerSizeParams = Record<LoaderSpinnerSizes, {
|
|
6
6
|
wrapperDimensions: number;
|
|
7
7
|
strokeWidth: number;
|
|
8
8
|
labelMarginTop?: number;
|
|
@@ -51,7 +51,7 @@ export const StyledSpinnerCircleSvg = styled.svg`
|
|
|
51
51
|
fill: transparent;
|
|
52
52
|
stroke-width: ${LOADER_SPINNER_SIZE_PARAMS[size].strokeWidth}px;
|
|
53
53
|
stroke: ${calculateColors(false, variant)};
|
|
54
|
-
${variant === "inverse" && `stroke-opacity: 0.3
|
|
54
|
+
${variant === "inverse" && `stroke-opacity: 0.3;`}
|
|
55
55
|
cx: 12px;
|
|
56
56
|
cy: 12px;
|
|
57
57
|
r: 10px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const MENU_ITEM = "menu-item";
|
|
2
2
|
export declare const SCROLLABLE_BLOCK = "submenu-scrollable-block";
|
|
3
3
|
export declare const SCROLLABLE_BLOCK_PARENT = "scrollable-block-parent";
|
|
4
|
-
export declare const ALL_CHILDREN_SELECTOR
|
|
5
|
-
export declare const BLOCK_INDEX_SELECTOR
|
|
6
|
-
export declare const MENU_ITEM_CHILDREN_LOCATOR
|
|
4
|
+
export declare const ALL_CHILDREN_SELECTOR = "[data-component='menu-item'], [data-component='scrollable-block-parent']";
|
|
5
|
+
export declare const BLOCK_INDEX_SELECTOR = "[data-component='menu-item'], [data-component='submenu-scrollable-block']";
|
|
6
|
+
export declare const MENU_ITEM_CHILDREN_LOCATOR = "[data-component='menu-item']";
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { FlexboxProps, LayoutProps, MaxWidthProps, PaddingProps } from "styled-system";
|
|
3
3
|
import { IconType } from "../../icon";
|
|
4
4
|
import { TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
5
|
-
export
|
|
5
|
+
export type VariantType = "default" | "alternate";
|
|
6
6
|
interface MenuItemBaseProps extends TagProps, Pick<LayoutProps, "width" | "maxWidth" | "minWidth">, FlexboxProps, PaddingProps {
|
|
7
7
|
/** onClick handler */
|
|
8
8
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { VariantType } from "../menu-item";
|
|
3
3
|
import { TagProps } from "../../../__internal__/utils/helpers/tags";
|
|
4
4
|
declare const AS_VALUES: readonly ["h2", "h3", "h4", "h5", "h6"];
|
|
5
|
-
|
|
5
|
+
type AllowedAsValues = (typeof AS_VALUES)[number];
|
|
6
6
|
export interface MenuTitleProps extends TagProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
text: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
4
|
-
export
|
|
4
|
+
export type MessageVariant = "error" | "info" | "success" | "warning" | "neutral";
|
|
5
5
|
export interface MessageProps extends MarginProps, TagProps {
|
|
6
6
|
/** Set the component's content */
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
type SetTriggerRefocusFlag = (boolean: boolean) => void;
|
|
2
|
+
export type ModalList = {
|
|
3
3
|
modal: HTMLElement;
|
|
4
4
|
setTriggerRefocusFlag?: SetTriggerRefocusFlag;
|
|
5
5
|
topModalOverride?: boolean;
|
|
@@ -7,7 +7,7 @@ export interface MultiActionButtonProps extends WidthProps, Omit<SplitButtonProp
|
|
|
7
7
|
/** Second text child, renders under main text, only when size is "large" */
|
|
8
8
|
subtext?: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type MultiActionButtonHandle = {
|
|
11
11
|
/** Programmatically focus the main button */
|
|
12
12
|
focusMainButton: () => void;
|
|
13
13
|
} | null;
|
|
@@ -2,7 +2,7 @@ import { MultiActionButtonProps } from "./multi-action-button.component";
|
|
|
2
2
|
declare const StyledMultiActionButton: import("styled-components").StyledComponent<"div", any, Pick<MultiActionButtonProps, "width"> & {
|
|
3
3
|
displayed: boolean;
|
|
4
4
|
}, never>;
|
|
5
|
-
|
|
5
|
+
type StyledButtonChildrenContainerProps = {
|
|
6
6
|
align: "left" | "right";
|
|
7
7
|
minWidth: number;
|
|
8
8
|
};
|
|
@@ -14,14 +14,15 @@ const StyledMultiActionButton = styled.div`
|
|
|
14
14
|
${({
|
|
15
15
|
width
|
|
16
16
|
}) => width && css`
|
|
17
|
-
|
|
17
|
+
${computeSizing({
|
|
18
18
|
width
|
|
19
19
|
})}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
${StyledButton} {
|
|
22
|
+
width: 100%;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
}
|
|
25
|
+
`}
|
|
25
26
|
|
|
26
27
|
& > ${StyledButton} {
|
|
27
28
|
margin: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { NavigationBarProps } from "..";
|
|
3
|
-
|
|
3
|
+
type FixedNavigationBarContextProps = {
|
|
4
4
|
submenuMaxHeight?: string;
|
|
5
5
|
};
|
|
6
6
|
declare const FixedNavigationBarContext: React.Context<FixedNavigationBarContextProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PaddingProps, FlexboxProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type Position = "sticky" | "fixed";
|
|
5
|
+
export type Orientation = "top" | "bottom";
|
|
6
|
+
export type NavigationType = "light" | "dark" | "white" | "black";
|
|
7
7
|
export interface NavigationBarProps extends PaddingProps, FlexboxProps, TagProps {
|
|
8
8
|
/** Content of the component */
|
|
9
9
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaddingProps, FlexboxProps } from "styled-system";
|
|
2
2
|
import { Position, Orientation, NavigationType } from "./navigation-bar.component";
|
|
3
|
-
export
|
|
3
|
+
export type StyledNavigationBarProps = PaddingProps & FlexboxProps & {
|
|
4
4
|
/** Color scheme of navigation component */
|
|
5
5
|
navigationType?: NavigationType;
|
|
6
6
|
/** Defines whether the navigation bar should be positioned fixed or sticky */
|
|
@@ -83,8 +83,8 @@ export interface NumeralDateProps extends ValidationProps, MarginProps, TagProps
|
|
|
83
83
|
/** Flag to configure component as optional. */
|
|
84
84
|
isOptional?: boolean;
|
|
85
85
|
}
|
|
86
|
-
export
|
|
87
|
-
export
|
|
86
|
+
export type ValidDateFormat = (typeof ALLOWED_DATE_FORMATS)[number];
|
|
87
|
+
export type NumeralDateHandle = {
|
|
88
88
|
focus: () => void;
|
|
89
89
|
} | null;
|
|
90
90
|
export declare const NumeralDate: React.ForwardRefExoticComponent<NumeralDateProps & React.RefAttributes<NumeralDateHandle>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const POD_SIZES: readonly ["extra-small", "small", "medium", "large", "extra-large"];
|
|
2
2
|
export declare const POD_ALIGNMENTS: readonly ["left", "center", "right"];
|
|
3
3
|
export declare const POD_VARIANTS: readonly ["primary", "secondary", "tertiary", "tile", "transparent"];
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type PodSize = (typeof POD_SIZES)[number];
|
|
5
|
+
export type PodAlignment = (typeof POD_ALIGNMENTS)[number];
|
|
6
|
+
export type PodVariant = (typeof POD_VARIANTS)[number];
|
|
@@ -64,7 +64,7 @@ export interface PopoverContainerProps extends PaddingProps, TagProps {
|
|
|
64
64
|
/** Flag to enable fullWidth Button styles */
|
|
65
65
|
hasFullWidth?: boolean;
|
|
66
66
|
}
|
|
67
|
-
export
|
|
67
|
+
export type PopoverContainerHandle = {
|
|
68
68
|
focusButton: () => void;
|
|
69
69
|
} | null;
|
|
70
70
|
export declare const PopoverContainer: React.ForwardRefExoticComponent<PopoverContainerProps & React.RefAttributes<PopoverContainerHandle>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TransitionStatus } from "react-transition-group";
|
|
3
|
-
|
|
3
|
+
type PopoverContainerWrapperProps = {
|
|
4
4
|
hasFullWidth?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const PopoverContainerWrapperStyle: import("styled-components").StyledComponent<"div", any, PopoverContainerWrapperProps, never>;
|
|
7
7
|
declare const PopoverContainerHeaderStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
|
|
8
|
+
type PopoverContainerContentStyleProps = {
|
|
9
9
|
animationState?: TransitionStatus;
|
|
10
10
|
disableAnimation?: boolean;
|
|
11
11
|
};
|
|
12
12
|
declare const PopoverContainerContentStyle: import("styled-components").StyledComponent<"div", any, PopoverContainerContentStyleProps, never>;
|
|
13
|
-
|
|
13
|
+
type AdditionalIconButtonProps = {
|
|
14
14
|
tabIndex?: number;
|
|
15
15
|
id?: string;
|
|
16
16
|
};
|
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
import { IconType } from "../icon";
|
|
4
4
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type PortraitShapes = "circle" | "square";
|
|
6
|
+
export type PortraitSizes = "XS" | "S" | "M" | "ML" | "L" | "XL" | "XXL";
|
|
7
7
|
export interface PortraitProps extends MarginProps, TagProps {
|
|
8
8
|
/** A custom image URL. */
|
|
9
9
|
src?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PortraitShapes, PortraitSizes } from "./portrait.component";
|
|
2
2
|
export declare const PORTRAIT_SHAPES: PortraitShapes[];
|
|
3
3
|
export declare const PORTRAIT_SIZES: PortraitSizes[];
|
|
4
|
-
|
|
4
|
+
type PortraitSizeParams = Record<PortraitSizes, {
|
|
5
5
|
dimensions: number;
|
|
6
6
|
iconDimensions: number;
|
|
7
7
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
import { PortraitSizes, PortraitShapes } from "./portrait.component";
|
|
4
|
-
|
|
4
|
+
type StyledPortraitProps = {
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
foregroundColor?: string;
|
|
7
7
|
darkBackground?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
4
|
-
export
|
|
4
|
+
export type Shapes = "text" | "rectangle" | "rectangle-round" | "circle";
|
|
5
5
|
export interface PreviewProps extends MarginProps, TagProps {
|
|
6
6
|
/** Children content to render in the component. */
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -6,13 +6,13 @@ const StyledPreview = styled.div`
|
|
|
6
6
|
`;
|
|
7
7
|
const shimmer = keyframes`
|
|
8
8
|
0% {
|
|
9
|
-
opacity: 0.1
|
|
9
|
+
opacity: 0.1;
|
|
10
10
|
}
|
|
11
11
|
70% {
|
|
12
|
-
opacity: 1
|
|
12
|
+
opacity: 1;
|
|
13
13
|
}
|
|
14
14
|
100% {
|
|
15
|
-
opacity: 0.1
|
|
15
|
+
opacity: 0.1;
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
18
18
|
function getBorderRadius(shape) {
|
|
@@ -63,7 +63,7 @@ const StyledPreviewPlaceholder = styled.span`
|
|
|
63
63
|
animation: ${shimmer} 2s ease infinite;
|
|
64
64
|
|
|
65
65
|
${isLastLine && shape === "text" && css`
|
|
66
|
-
width: calc(${width || getWidth(shape)}*0.8);
|
|
66
|
+
width: calc(; ${width || getWidth(shape)}*0.8);
|
|
67
67
|
`}
|
|
68
68
|
|
|
69
69
|
${shape === "circle" && css`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const PROFILE_SIZES: readonly ["XS", "S", "M", "ML", "L", "XL", "XXL"];
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type AllProfileSizes = typeof PROFILE_SIZES;
|
|
3
|
+
export type ProfileSize = AllProfileSizes[number];
|
|
4
4
|
declare const _default: {
|
|
5
5
|
XS: {
|
|
6
6
|
initialSize: string;
|
|
@@ -62,7 +62,7 @@ export interface SearchProps extends ValidationProps, MarginProps, TagProps {
|
|
|
62
62
|
/** [Legacy] Overrides the default tooltip position */
|
|
63
63
|
tooltipPosition?: "top" | "bottom" | "left" | "right";
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type SearchHandle = {
|
|
66
66
|
/** Programmatically focus on root container of Dialog. */
|
|
67
67
|
focus: () => void;
|
|
68
68
|
} | null;
|
|
@@ -154,8 +154,7 @@ export const Search = /*#__PURE__*/React.forwardRef(({
|
|
|
154
154
|
maxWidth: maxWidth,
|
|
155
155
|
searchHasValue: searchHasValue,
|
|
156
156
|
showSearchButton: !!searchButton,
|
|
157
|
-
variant: variant
|
|
158
|
-
mb: 0
|
|
157
|
+
variant: variant
|
|
159
158
|
}, filterStyledSystemMarginProps(rest), {
|
|
160
159
|
id: id,
|
|
161
160
|
name: name
|
|
@@ -180,7 +179,8 @@ export const Search = /*#__PURE__*/React.forwardRef(({
|
|
|
180
179
|
type: "search",
|
|
181
180
|
ml: 1
|
|
182
181
|
}) : undefined,
|
|
183
|
-
tooltipPosition: tooltipPosition
|
|
182
|
+
tooltipPosition: tooltipPosition,
|
|
183
|
+
my: 0 // prevents any form spacing being applied
|
|
184
184
|
}), searchButton && /*#__PURE__*/React.createElement(StyledSearchButton, null, /*#__PURE__*/React.createElement(Button, _extends({
|
|
185
185
|
"aria-label": searchButtonAriaLabel || searchButtonText,
|
|
186
186
|
size: "medium",
|
|
@@ -19,6 +19,7 @@ const StyledSearch = styled.div`
|
|
|
19
19
|
const darkVariant = variant === "dark";
|
|
20
20
|
const variantColor = darkVariant ? "var(--colorsUtilityYang080)" : "var(--colorsUtilityMajor300)";
|
|
21
21
|
return css`
|
|
22
|
+
margin-bottom: var(--fieldSpacing);
|
|
22
23
|
${margin}
|
|
23
24
|
width: ${searchWidth ? `${searchWidth}` : "100%"};
|
|
24
25
|
max-width: ${maxWidth ? `${maxWidth}` : "100%"};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
type OnSelectData = {
|
|
3
3
|
id: string;
|
|
4
4
|
text: string;
|
|
5
5
|
value: string | Record<string, unknown>;
|
|
6
6
|
selectionType: "click" | "navigationKey" | "enterKey";
|
|
7
7
|
selectionConfirmed: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ListPlacement = "top" | "bottom" | "top-start" | "bottom-start" | "top-end" | "bottom-end";
|
|
10
10
|
export interface SelectListProps {
|
|
11
11
|
/** The ID for the parent <div> */
|
|
12
12
|
id?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useState, useEffect, useRef, useCallback } from "react";
|
|
3
3
|
import invariant from "invariant";
|
|
4
|
-
import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
|
|
4
|
+
import { filterOutStyledSystemSpacingProps, filterStyledSystemMarginProps } from "../../../style/utils";
|
|
5
5
|
import SelectTextbox from "../__internal__/select-textbox";
|
|
6
6
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
7
7
|
import withFilter from "../__internal__/utils/with-filter.hoc";
|
|
@@ -12,7 +12,6 @@ import areObjectsEqual from "../__internal__/utils/are-objects-equal";
|
|
|
12
12
|
import isNavigationKey from "../__internal__/utils/is-navigation-key";
|
|
13
13
|
import Logger from "../../../__internal__/utils/logger";
|
|
14
14
|
import useStableCallback from "../../../hooks/__internal__/useStableCallback";
|
|
15
|
-
import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
|
|
16
15
|
import useInputAccessibility from "../../../hooks/__internal__/useInputAccessibility/useInputAccessibility";
|
|
17
16
|
let deprecateUncontrolledWarnTriggered = false;
|
|
18
17
|
const FilterableSelectList = withFilter(SelectList);
|
|
@@ -457,7 +456,7 @@ export const FilterableSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
457
456
|
listWidth
|
|
458
457
|
};
|
|
459
458
|
const selectList = disableDefaultFiltering ? /*#__PURE__*/React.createElement(SelectList, selectListProps, children) : /*#__PURE__*/React.createElement(FilterableSelectList, selectListProps, children);
|
|
460
|
-
const marginProps =
|
|
459
|
+
const marginProps = filterStyledSystemMarginProps(textboxProps);
|
|
461
460
|
return /*#__PURE__*/React.createElement(StyledSelect, _extends({
|
|
462
461
|
hasTextCursor: true,
|
|
463
462
|
readOnly: readOnly,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useState, useEffect, useRef, useCallback, useMemo } from "react";
|
|
3
3
|
import invariant from "invariant";
|
|
4
|
-
import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
|
|
4
|
+
import { filterOutStyledSystemSpacingProps, filterStyledSystemMarginProps } from "../../../style/utils";
|
|
5
5
|
import SelectTextbox from "../__internal__/select-textbox";
|
|
6
6
|
import guid from "../../../__internal__/utils/helpers/guid";
|
|
7
7
|
import withFilter from "../__internal__/utils/with-filter.hoc";
|
|
@@ -13,7 +13,6 @@ import isExpectedValue from "../__internal__/utils/is-expected-value";
|
|
|
13
13
|
import isNavigationKey from "../__internal__/utils/is-navigation-key";
|
|
14
14
|
import Logger from "../../../__internal__/utils/logger";
|
|
15
15
|
import useStableCallback from "../../../hooks/__internal__/useStableCallback";
|
|
16
|
-
import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
|
|
17
16
|
import useInputAccessibility from "../../../hooks/__internal__/useInputAccessibility/useInputAccessibility";
|
|
18
17
|
let deprecateUncontrolledWarnTriggered = false;
|
|
19
18
|
const FilterableSelectList = withFilter(SelectList);
|
|
@@ -461,7 +460,7 @@ export const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
461
460
|
virtualScrollOverscan: virtualScrollOverscan,
|
|
462
461
|
listWidth: listWidth
|
|
463
462
|
}, children);
|
|
464
|
-
const marginProps =
|
|
463
|
+
const marginProps = filterStyledSystemMarginProps(textboxProps);
|
|
465
464
|
return /*#__PURE__*/React.createElement(StyledSelectMultiSelect, _extends({
|
|
466
465
|
disabled: disabled,
|
|
467
466
|
readOnly: readOnly,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useState, useEffect, useRef, useCallback, useMemo } from "react";
|
|
3
3
|
import invariant from "invariant";
|
|
4
|
-
import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
|
|
4
|
+
import { filterOutStyledSystemSpacingProps, filterStyledSystemMarginProps } from "../../../style/utils";
|
|
5
5
|
import StyledSelect from "../select.style";
|
|
6
6
|
import SelectTextbox from "../__internal__/select-textbox";
|
|
7
7
|
import SelectList from "../__internal__/select-list/select-list.component";
|
|
@@ -10,7 +10,6 @@ import getNextChildByText from "../__internal__/utils/get-next-child-by-text";
|
|
|
10
10
|
import isExpectedOption from "../__internal__/utils/is-expected-option";
|
|
11
11
|
import isNavigationKey from "../__internal__/utils/is-navigation-key";
|
|
12
12
|
import Logger from "../../../__internal__/utils/logger";
|
|
13
|
-
import useFormSpacing from "../../../hooks/__internal__/useFormSpacing";
|
|
14
13
|
import useInputAccessibility from "../../../hooks/__internal__/useInputAccessibility/useInputAccessibility";
|
|
15
14
|
let deprecateUncontrolledWarnTriggered = false;
|
|
16
15
|
export const SimpleSelect = /*#__PURE__*/React.forwardRef(({
|
|
@@ -326,7 +325,7 @@ export const SimpleSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
326
325
|
virtualScrollOverscan: virtualScrollOverscan,
|
|
327
326
|
listWidth: listWidth
|
|
328
327
|
}, children);
|
|
329
|
-
const marginProps =
|
|
328
|
+
const marginProps = filterStyledSystemMarginProps(props);
|
|
330
329
|
return /*#__PURE__*/React.createElement(StyledSelect, _extends({
|
|
331
330
|
transparent: transparent,
|
|
332
331
|
disabled: disabled,
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { PaddingProps, WidthProps } from "styled-system";
|
|
3
3
|
import { ModalProps } from "../modal";
|
|
4
4
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
5
|
-
|
|
5
|
+
type CustomRefObject<T> = {
|
|
6
6
|
current?: T | null;
|
|
7
7
|
};
|
|
8
8
|
export interface SidebarProps extends PaddingProps, TagProps, WidthProps, Pick<ModalProps, "topModalOverride" | "restoreFocusOnClose"> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaddingProps } from "styled-system";
|
|
2
2
|
import { SidebarProps } from "./sidebar.component";
|
|
3
|
-
|
|
3
|
+
type StyledSidebarProps = Pick<SidebarProps, "onCancel" | "position" | "size" | "width">;
|
|
4
4
|
declare const StyledSidebar: import("styled-components").StyledComponent<"div", any, StyledSidebarProps, never>;
|
|
5
5
|
declare const StyledSidebarContent: import("styled-components").StyledComponent<"div", any, PaddingProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>, never>;
|
|
6
6
|
export { StyledSidebar, StyledSidebarContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidationProps } from "../../__internal__/validations";
|
|
2
|
-
|
|
2
|
+
type Width = string | number;
|
|
3
3
|
declare const StyledContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
interface StyledColorOptionsProps extends ValidationProps {
|
|
5
5
|
maxWidth: Width;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeObject } from "../../style/themes/base";
|
|
2
2
|
export declare const borderRadiusStyling = "\n > {\n &:first-child:last-child > * {\n border-radius: var(--borderRadius100);\n }\n\n &:first-child:not(:last-child) > * {\n border-top-left-radius: var(--borderRadius100);\n border-top-right-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius000);\n }\n\n &:not(:first-child):not(:last-child) > * {\n border-radius: var(--borderRadius000);\n }\n\n &:last-child:not(:first-child) > * {\n border-top-right-radius: var(--borderRadius000);\n border-top-left-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius100);\n }\n }\n";
|
|
3
|
-
|
|
3
|
+
type StyledSplitButtonChildrenContainerProps = {
|
|
4
4
|
theme: ThemeObject;
|
|
5
5
|
align: "left" | "right";
|
|
6
6
|
minWidth: number;
|
|
@@ -26,7 +26,7 @@ export interface SplitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonE
|
|
|
26
26
|
/** Sets rendering position of menu */
|
|
27
27
|
position?: "left" | "right";
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type SplitButtonHandle = {
|
|
30
30
|
/** Programmatically focus the main button */
|
|
31
31
|
focusMainButton: () => void;
|
|
32
32
|
/** Programmatically focus the toggle button. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { MarginProps } from "styled-system";
|
|
3
3
|
import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
|
|
4
|
-
export
|
|
4
|
+
export type Steps = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
5
5
|
interface StepFlowAriaProps {
|
|
6
6
|
/** Prop to specify the aria-label of the component */
|
|
7
7
|
"aria-label"?: string;
|
|
@@ -35,7 +35,7 @@ export interface StepFlowProps extends StepFlowAriaProps, MarginProps, TagProps
|
|
|
35
35
|
/** function runs when user click dismiss button */
|
|
36
36
|
onDismiss?: (e: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type StepFlowHandle = {
|
|
39
39
|
/** Programmatically focus on root container of Dialog. */
|
|
40
40
|
focus: () => void;
|
|
41
41
|
} | null;
|