carbon-react 111.12.1 → 111.12.3
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__/DeprecationWarning.js +0 -2
- package/esm/__internal__/character-count/character-count.component.js +0 -2
- package/esm/__internal__/checkable-input/checkable-input.component.js +0 -5
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +0 -11
- package/esm/__internal__/field-help/field-help.component.js +0 -2
- package/esm/__internal__/fieldset/fieldset.component.js +0 -3
- package/esm/__internal__/focus-trap/focus-trap-utils.js +6 -25
- package/esm/__internal__/focus-trap/focus-trap.component.js +7 -17
- package/esm/__internal__/form-field/form-field.component.js +0 -5
- package/esm/__internal__/full-screen-heading/full-screen-heading.component.js +0 -1
- package/esm/__internal__/input/input-presentation.component.js +0 -5
- package/esm/__internal__/input/input-presentation.style.js +0 -5
- package/esm/__internal__/input/input.component.js +2 -25
- package/esm/__internal__/input-behaviour/input-behaviour.component.js +2 -3
- package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +0 -2
- package/esm/__internal__/input-behaviour/useInputBehaviour.js +2 -4
- package/esm/__internal__/input-icon-toggle/input-icon-toggle.component.js +0 -5
- package/esm/__internal__/input-icon-toggle/input-icon-toggle.style.js +0 -1
- package/esm/__internal__/label/label.component.js +0 -10
- package/esm/__internal__/popover/popover.component.js +0 -11
- package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +0 -10
- package/esm/__internal__/sticky-footer/sticky-footer.component.js +0 -5
- package/esm/__internal__/utils/helpers/browser-type-check/index.js +0 -1
- package/esm/__internal__/utils/helpers/events/composedPath.js +1 -4
- package/esm/__internal__/utils/helpers/events/events.js +1 -16
- package/esm/__internal__/utils/helpers/guid/index.js +0 -1
- package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -3
- package/esm/__internal__/utils/helpers/tags/tags.js +0 -4
- package/esm/__internal__/utils/logger/index.js +1 -1
- package/esm/__internal__/validation-message/validation-message.component.js +0 -2
- package/esm/__internal__/validations/validation-icon.component.js +0 -8
- package/esm/__spec_helper__/enzyme-snapshot-helper.js +0 -5
- package/esm/__spec_helper__/expect.js +2 -5
- package/esm/__spec_helper__/mock-match-media.js +0 -3
- package/esm/__spec_helper__/mock-resize-observer.js +0 -2
- package/esm/__spec_helper__/test-utils.js +27 -62
- package/esm/components/accordion/accordion-group/accordion-group.component.js +0 -9
- package/esm/components/accordion/accordion.component.js +0 -7
- package/esm/components/accordion/accordion.style.js +1 -1
- package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +2 -21
- package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -7
- package/esm/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +0 -3
- package/esm/components/action-popover/action-popover.component.js +4 -19
- package/esm/components/advanced-color-picker/advanced-color-picker.component.js +0 -19
- package/esm/components/alert/alert.component.js +0 -3
- package/esm/components/anchor-navigation/anchor-navigation.component.js +5 -14
- package/esm/components/badge/badge.component.js +0 -2
- package/esm/components/batch-selection/batch-selection.component.js +0 -6
- package/esm/components/box/box.config.js +0 -1
- package/esm/components/button/button-types.style.js +0 -2
- package/esm/components/button/button.component.js +0 -12
- package/esm/components/button/button.style.js +0 -8
- package/esm/components/button-bar/button-bar.component.js +2 -8
- package/esm/components/button-toggle/button-toggle-icon.component.js +0 -2
- package/esm/components/button-toggle/button-toggle-input.component.js +0 -6
- package/esm/components/button-toggle/button-toggle.component.js +0 -6
- package/esm/components/button-toggle-group/button-toggle-group.component.js +0 -3
- package/esm/components/carbon-provider/carbon-provider.component.js +0 -2
- package/esm/components/carbon-provider/top-modal-context.js +3 -7
- package/esm/components/card/card-column/card-column.component.js +0 -2
- package/esm/components/card/card-footer/card-footer.component.js +0 -3
- package/esm/components/card/card-row/card-row.component.js +0 -3
- package/esm/components/card/card.component.js +0 -8
- package/esm/components/carousel/carousel.component.js +0 -15
- package/esm/components/carousel/slide/slide.component.js +0 -3
- package/esm/components/carousel/slide/slide.style.js +2 -1
- package/esm/components/checkbox/checkbox-group.component.js +0 -3
- package/esm/components/checkbox/checkbox-svg.component.js +0 -2
- package/esm/components/checkbox/checkbox.component.js +0 -7
- package/esm/components/confirm/confirm.component.js +0 -38
- package/esm/components/content/content.component.js +0 -3
- package/esm/components/date/__internal__/date-formats/index.js +6 -19
- package/esm/components/date/__internal__/date-picker/date-picker.component.js +2 -15
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +2 -2
- package/esm/components/date/__internal__/navbar/navbar.component.js +0 -2
- package/esm/components/date/__internal__/utils.js +1 -31
- package/esm/components/date/__internal__/weekday/weekday.component.js +0 -3
- package/esm/components/date/date.component.js +10 -54
- package/esm/components/date-range/date-range.component.js +14 -46
- package/esm/components/decimal/decimal.component.js +4 -29
- package/esm/components/definition-list/dd.component.js +0 -3
- package/esm/components/definition-list/dl.component.js +0 -8
- package/esm/components/definition-list/dt.component.js +0 -3
- package/esm/components/detail/detail.component.js +2 -8
- package/esm/components/dialog/dialog.component.js +0 -14
- package/esm/components/dialog/dialog.style.js +0 -2
- package/esm/components/dialog-full-screen/dialog-full-screen.component.js +0 -25
- package/esm/components/dismissible-box/dismissible-box.component.js +0 -3
- package/esm/components/draggable/draggable-container.component.js +4 -16
- package/esm/components/draggable/draggable-item.component.js +2 -11
- package/esm/components/drawer/drawer.component.js +0 -16
- package/esm/components/drawer/drawer.style.js +0 -7
- package/esm/components/duelling-picklist/duelling-picklist.component.js +2 -14
- package/esm/components/duelling-picklist/picklist/picklist.component.js +0 -7
- package/esm/components/duelling-picklist/picklist-divider/picklist-divider.component.js +0 -3
- package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +0 -7
- package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +0 -14
- package/esm/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +0 -2
- package/esm/components/fieldset/fieldset.component.js +0 -4
- package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +0 -1
- package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +0 -13
- package/esm/components/flat-table/flat-table-cell/flat-table-cell.component.js +0 -18
- package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +0 -15
- package/esm/components/flat-table/flat-table-head/flat-table-head.component.js +4 -8
- package/esm/components/flat-table/flat-table-header/flat-table-header-utils.js +1 -4
- package/esm/components/flat-table/flat-table-header/flat-table-header.component.js +0 -13
- package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +0 -9
- package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +0 -35
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +2 -11
- package/esm/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +0 -15
- package/esm/components/flat-table/flat-table.component.js +2 -20
- package/esm/components/flat-table/flat-table.style.js +0 -3
- package/esm/components/flat-table/sort/sort.component.js +0 -7
- package/esm/components/form/__internal__/form-summary.component.js +0 -7
- package/esm/components/form/form.component.js +0 -3
- package/esm/components/form/form.style.js +2 -3
- package/esm/components/global-header/global-header.component.js +1 -6
- package/esm/components/grid/grid-container/grid-container.component.js +0 -6
- package/esm/components/grid/grid-item/grid-item.component.js +0 -6
- package/esm/components/grid/grid-item/grid-item.style.js +0 -14
- package/esm/components/grouped-character/grouped-character.component.js +3 -21
- package/esm/components/heading/heading.component.js +2 -9
- package/esm/components/help/help.component.js +0 -8
- package/esm/components/hr/hr.component.js +0 -5
- package/esm/components/i18n-provider/i18n-provider.component.js +0 -2
- package/esm/components/icon/icon-unicodes.js +2 -1
- package/esm/components/icon/icon.component.js +1 -12
- package/esm/components/icon/icon.style.js +0 -6
- package/esm/components/icon-button/icon-button.component.js +0 -4
- package/esm/components/image/image.component.js +0 -3
- package/esm/components/image/image.style.js +2 -1
- package/esm/components/inline-inputs/inline-inputs.component.js +0 -6
- package/esm/components/link/link.component.js +3 -12
- package/esm/components/link/link.style.js +0 -4
- package/esm/components/link-preview/__internal__/placeholder.component.js +0 -2
- package/esm/components/link-preview/link-preview.component.js +0 -7
- package/esm/components/loader/loader-square.style.js +0 -6
- package/esm/components/loader/loader.component.js +0 -3
- package/esm/components/loader-bar/loader-bar.component.js +0 -3
- package/esm/components/loader-bar/loader-bar.style.js +0 -4
- package/esm/components/menu/__internal__/keyboard-navigation/index.js +0 -9
- package/esm/components/menu/__internal__/spec-helper/index.js +0 -2
- package/esm/components/menu/__internal__/submenu/submenu.component.js +7 -59
- package/esm/components/menu/menu-full-screen/menu-full-screen.component.js +0 -8
- package/esm/components/menu/menu-item/menu-item.component.js +0 -35
- package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +0 -1
- package/esm/components/menu/menu.component.js +0 -8
- package/esm/components/menu/menu.context.js +1 -3
- package/esm/components/menu/scrollable-block/scrollable-block.component.js +0 -9
- package/esm/components/message/message-content/message-content.component.js +0 -2
- package/esm/components/message/message.component.js +0 -5
- package/esm/components/message/type-icon/type-icon.component.js +0 -2
- package/esm/components/modal/__internal__/modal-manager.js +0 -24
- package/esm/components/modal/modal.component.js +0 -6
- package/esm/components/multi-action-button/multi-action-button.component.js +3 -20
- package/esm/components/navigation-bar/navigation-bar.component.js +0 -3
- package/esm/components/note/note.component.js +1 -10
- package/esm/components/number/number.component.js +2 -9
- package/esm/components/numeral-date/numeral-date.component.js +9 -22
- package/esm/components/pager/__internal__/pager-navigation-link.component.js +0 -11
- package/esm/components/pager/__internal__/pager-navigation.component.js +0 -22
- package/esm/components/pager/pager.component.js +0 -29
- package/esm/components/pages/page/page.component.js +0 -3
- package/esm/components/pages/pages.component.js +4 -14
- package/esm/components/pill/pill.component.js +0 -3
- package/esm/components/pill/pill.style.js +0 -4
- package/esm/components/pod/pod.component.js +4 -40
- package/esm/components/pod/pod.style.js +6 -8
- package/esm/components/popover-container/popover-container.component.js +2 -14
- package/esm/components/popover-container/popover-container.style.js +0 -3
- package/esm/components/portal/portal.js +2 -14
- package/esm/components/portrait/portrait-gravatar.component.js +0 -4
- package/esm/components/portrait/portrait-initials.component.js +10 -12
- package/esm/components/portrait/portrait.component.js +0 -10
- package/esm/components/portrait/portrait.style.js +3 -10
- package/esm/components/preview/__internal__/preview-placeholder.component.js +0 -3
- package/esm/components/preview/preview.component.js +0 -7
- package/esm/components/preview/preview.style.js +2 -1
- package/esm/components/profile/profile.component.js +0 -8
- package/esm/components/progress-tracker/progress-tracker.component.js +2 -24
- package/esm/components/progress-tracker/progress-tracker.style.js +0 -5
- package/esm/components/radio-button/radio-button-group.component.js +2 -27
- package/esm/components/radio-button/radio-button-svg.component.js +0 -2
- package/esm/components/radio-button/radio-button.component.js +6 -32
- package/esm/components/search/search.component.js +2 -21
- package/esm/components/select/__internal__/select-text/select-text.component.js +0 -13
- package/esm/components/select/filterable-select/filterable-select.component.js +8 -73
- package/esm/components/select/list-action-button/list-action-button.component.js +0 -4
- package/esm/components/select/multi-select/multi-select.component.js +15 -81
- package/esm/components/select/option/option.component.js +0 -12
- package/esm/components/select/option-group-header/option-group-header.component.js +0 -3
- package/esm/components/select/option-row/option-row.component.js +0 -9
- package/esm/components/select/select-list/select-list.component.js +2 -45
- package/esm/components/select/select-list/select-list.style.js +2 -1
- package/esm/components/select/select-list/update-list-scroll.js +0 -3
- package/esm/components/select/select-textbox/select-textbox.component.js +2 -41
- package/esm/components/select/simple-select/simple-select.component.js +2 -60
- package/esm/components/select/utils/get-next-child-by-text.js +0 -8
- package/esm/components/select/utils/get-next-index-by-key.js +0 -13
- package/esm/components/select/utils/highlight-part-of-text.js +0 -7
- package/esm/components/select/utils/is-expected-option.js +0 -4
- package/esm/components/select/utils/is-expected-value.js +0 -1
- package/esm/components/select/utils/with-filter.hoc.js +3 -29
- package/esm/components/settings-row/settings-row.component.js +2 -10
- package/esm/components/show-edit-pod/show-edit-pod.component.js +6 -43
- package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +0 -2
- package/esm/components/sidebar/sidebar.component.js +3 -4
- package/esm/components/simple-color-picker/color-sample-box/color-sample-box.component.js +1 -5
- package/esm/components/simple-color-picker/simple-color/simple-color.component.js +0 -7
- package/esm/components/simple-color-picker/simple-color-picker.component.js +8 -41
- package/esm/components/simple-color-picker/simple-color-picker.style.js +0 -2
- package/esm/components/simple-color-picker/tick-icon/tick-icon.style.js +4 -6
- package/esm/components/split-button/split-button.component.js +1 -20
- package/esm/components/step-sequence/step-sequence-item/step-sequence-item.component.js +0 -9
- package/esm/components/step-sequence/step-sequence.component.js +0 -3
- package/esm/components/switch/__internal__/switch-slider-panel.style.d.ts +7 -0
- package/esm/components/switch/__internal__/switch-slider-panel.style.js +0 -5
- package/esm/components/switch/__internal__/switch-slider.component.d.ts +11 -0
- package/esm/components/switch/__internal__/switch-slider.component.js +8 -10
- package/esm/components/switch/__internal__/switch-slider.style.d.ts +6 -0
- package/esm/components/switch/__internal__/switch-slider.style.js +0 -9
- package/esm/components/switch/index.d.ts +2 -1
- package/esm/components/switch/switch.component.d.ts +31 -0
- package/esm/components/switch/switch.component.js +519 -128
- package/esm/components/switch/switch.style.d.ts +4 -0
- package/esm/components/switch/switch.style.js +0 -8
- package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +8 -19
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.component.js +0 -2
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +0 -3
- package/esm/components/tabs/tab/tab.component.js +8 -24
- package/esm/components/tabs/tabs.component.js +24 -54
- package/esm/components/text-editor/__internal__/decorators/link-decorator.js +10 -10
- package/esm/components/text-editor/__internal__/editor-counter/editor-counter.component.js +0 -6
- package/esm/components/text-editor/__internal__/editor-link/editor-link.component.js +2 -7
- package/esm/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +0 -3
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +0 -6
- package/esm/components/text-editor/__internal__/toolbar/toolbar.component.js +0 -10
- package/esm/components/text-editor/__internal__/utils/utils.js +9 -21
- package/esm/components/text-editor/text-editor.component.js +22 -53
- package/esm/components/textarea/textarea.component.js +6 -50
- package/esm/components/textbox/textbox.component.js +2 -9
- package/esm/components/tile/tile-footer/tile-footer.component.js +2 -5
- package/esm/components/tile/tile.component.js +0 -10
- package/esm/components/tile-select/__internal__/accordion/accordion.component.js +0 -2
- package/esm/components/tile-select/tile-select-group.component.js +2 -16
- package/esm/components/tile-select/tile-select.component.js +4 -33
- package/esm/components/toast/toast.component.js +0 -18
- package/esm/components/tooltip/tooltip-pointer.style.js +0 -2
- package/esm/components/tooltip/tooltip.component.js +0 -3
- package/esm/components/tooltip/tooltip.style.js +0 -6
- package/esm/components/typography/list.component.js +0 -7
- package/esm/components/typography/typography.component.js +0 -28
- package/esm/components/vertical-divider/vertical-divider.component.js +0 -3
- package/esm/hooks/__internal__/useCharacterCount/useCharacterCount.js +0 -4
- package/esm/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +3 -2
- package/esm/hooks/__internal__/useFloating/useFloating.js +0 -6
- package/esm/hooks/__internal__/useIsStickyFooterForm/useIsStickyFooterForm.js +0 -1
- package/esm/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.js +2 -16
- package/esm/hooks/__internal__/useModalManager/useModalManager.js +0 -4
- package/esm/hooks/__internal__/useResizeObserver/useResizeObserver.js +3 -8
- package/esm/hooks/__internal__/useScrollBlock/scroll-block-manager.js +6 -16
- package/esm/hooks/__internal__/useScrollBlock/useScrollBlock.js +11 -15
- package/esm/hooks/useMediaQuery/useMediaQuery.js +0 -2
- package/esm/locales/en-gb.js +1 -8
- package/esm/locales/pl-pl.js +1 -8
- package/esm/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +1 -0
- package/esm/style/design-tokens/debug-theme.util.js +5 -9
- package/esm/style/design-tokens/generate-css-variables.util.js +1 -0
- package/esm/style/palette/index.js +2 -6
- package/esm/style/themes/aegean/aegean-theme.config.js +0 -3
- package/esm/style/themes/base/base-theme.config.js +2 -4
- package/esm/style/themes/base/index.js +4 -2
- package/esm/style/themes/mint/mint-theme.config.js +0 -3
- package/esm/style/themes/sage/index.js +4 -2
- package/esm/style/themes/test-utils.js +4 -4
- package/esm/style/utils/add-hex-symbols.js +0 -1
- package/esm/style/utils/at-opacity.js +0 -1
- package/esm/style/utils/color.js +3 -8
- package/esm/style/utils/filter-out-styled-system-spacing-props.js +0 -2
- package/esm/style/utils/filter-styled-system-padding-props.js +2 -1
- package/esm/style/utils/form-style-utils.js +0 -12
- package/esm/style/utils/get-color-value.js +0 -1
- package/esm/style/utils/get-rgb-values.js +1 -1
- package/esm/style/utils/merge-deep.js +1 -6
- package/esm/style/utils/mix.js +1 -7
- package/esm/style/utils/width.js +1 -0
- package/lib/__internal__/DeprecationWarning.js +0 -5
- package/lib/__internal__/character-count/character-count.component.js +0 -6
- package/lib/__internal__/character-count/character-count.style.js +0 -6
- package/lib/__internal__/character-count/index.js +0 -2
- package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.js +0 -3
- package/lib/__internal__/checkable-input/checkable-input.component.js +0 -16
- package/lib/__internal__/checkable-input/checkable-input.style.js +0 -11
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +0 -20
- package/lib/__internal__/checkable-input/hidden-checkable-input.style.js +0 -3
- package/lib/__internal__/checkable-input/index.js +0 -2
- package/lib/__internal__/field-help/field-help.component.js +0 -6
- package/lib/__internal__/field-help/field-help.style.js +0 -4
- package/lib/__internal__/field-help/index.js +0 -2
- package/lib/__internal__/fieldset/fieldset.component.js +0 -9
- package/lib/__internal__/fieldset/fieldset.style.js +0 -7
- package/lib/__internal__/fieldset/index.js +0 -2
- package/lib/__internal__/filter-object-properties/filter-object-properties.js +0 -1
- package/lib/__internal__/filter-object-properties/index.js +0 -2
- package/lib/__internal__/focus-trap/focus-trap-utils.js +6 -26
- package/lib/__internal__/focus-trap/focus-trap.component.js +4 -26
- package/lib/__internal__/focus-trap/index.js +0 -2
- package/lib/__internal__/form-field/form-field.component.js +0 -18
- package/lib/__internal__/form-field/form-field.style.js +0 -6
- package/lib/__internal__/form-field/index.js +0 -2
- package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +0 -10
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.js +0 -5
- package/lib/__internal__/full-screen-heading/index.js +0 -2
- package/lib/__internal__/i18n-context/index.js +0 -5
- package/lib/__internal__/input/index.js +0 -4
- package/lib/__internal__/input/input-presentation.component.js +0 -13
- package/lib/__internal__/input/input-presentation.style.js +0 -12
- package/lib/__internal__/input/input.component.js +2 -33
- package/lib/__internal__/input/input.style.js +0 -4
- package/lib/__internal__/input-behaviour/index.js +0 -2
- package/lib/__internal__/input-behaviour/input-behaviour.component.js +2 -12
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +0 -8
- package/lib/__internal__/input-behaviour/useInputBehaviour.js +2 -5
- package/lib/__internal__/input-icon-toggle/index.js +0 -2
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.js +0 -11
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.js +0 -7
- package/lib/__internal__/label/icon-wrapper.style.js +0 -5
- package/lib/__internal__/label/index.js +0 -2
- package/lib/__internal__/label/label.component.js +0 -22
- package/lib/__internal__/label/label.style.js +0 -4
- package/lib/__internal__/popover/index.js +0 -2
- package/lib/__internal__/popover/popover.component.js +0 -24
- package/lib/__internal__/popover/popover.style.js +0 -4
- package/lib/__internal__/radio-button-mapper/index.js +0 -2
- package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +0 -15
- package/lib/__internal__/sticky-footer/index.js +0 -2
- package/lib/__internal__/sticky-footer/sticky-footer.component.js +0 -13
- package/lib/__internal__/sticky-footer/sticky-footer.style.js +0 -4
- package/lib/__internal__/tooltip-provider/index.js +0 -9
- package/lib/__internal__/utils/helpers/browser-type-check/index.js +0 -3
- package/lib/__internal__/utils/helpers/events/composedPath.js +0 -6
- package/lib/__internal__/utils/helpers/events/events.js +0 -18
- package/lib/__internal__/utils/helpers/events/index.js +0 -2
- package/lib/__internal__/utils/helpers/guid/index.js +0 -3
- package/lib/__internal__/utils/helpers/tags/index.js +0 -2
- package/lib/__internal__/utils/helpers/tags/tags-specs/index.js +0 -1
- package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -5
- package/lib/__internal__/utils/helpers/tags/tags.js +0 -5
- package/lib/__internal__/utils/helpers/useUniqueId/index.js +0 -5
- package/lib/__internal__/utils/logger/index.js +1 -2
- package/lib/__internal__/validation-message/index.js +0 -2
- package/lib/__internal__/validation-message/validation-message.component.js +0 -6
- package/lib/__internal__/validation-message/validation-message.style.js +0 -4
- package/lib/__internal__/validations/index.js +0 -2
- package/lib/__internal__/validations/validation-icon.component.js +0 -18
- package/lib/__internal__/validations/validation-icon.style.js +0 -8
- package/lib/__spec_helper__/enzyme-snapshot-helper.js +0 -6
- package/lib/__spec_helper__/expect.js +2 -8
- package/lib/__spec_helper__/index.js +0 -4
- package/lib/__spec_helper__/mock-match-media.js +0 -7
- package/lib/__spec_helper__/mock-resize-observer.js +0 -3
- package/lib/__spec_helper__/test-utils.js +28 -87
- package/lib/components/accordion/accordion-group/accordion-group.component.js +0 -20
- package/lib/components/accordion/accordion.component.js +0 -19
- package/lib/components/accordion/accordion.style.js +1 -10
- package/lib/components/accordion/index.js +0 -3
- package/lib/components/action-popover/action-popover-context.js +0 -4
- package/lib/components/action-popover/action-popover-divider/action-popover-divider.component.js +0 -2
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +2 -34
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -22
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.js +0 -8
- package/lib/components/action-popover/action-popover.component.js +4 -35
- package/lib/components/action-popover/action-popover.style.js +0 -10
- package/lib/components/action-popover/index.js +0 -6
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +0 -4
- package/lib/components/advanced-color-picker/advanced-color-picker.component.js +0 -30
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +0 -14
- package/lib/components/advanced-color-picker/index.js +0 -2
- package/lib/components/alert/alert.component.js +0 -7
- package/lib/components/alert/index.js +0 -2
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +0 -6
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +0 -4
- package/lib/components/anchor-navigation/anchor-navigation.component.js +5 -27
- package/lib/components/anchor-navigation/anchor-navigation.style.js +0 -3
- package/lib/components/anchor-navigation/anchor-section-divider.component.js +0 -3
- package/lib/components/anchor-navigation/index.js +0 -4
- package/lib/components/badge/badge.component.js +0 -6
- package/lib/components/badge/badge.style.js +0 -6
- package/lib/components/badge/index.js +0 -2
- package/lib/components/batch-selection/batch-selection.component.js +0 -11
- package/lib/components/batch-selection/batch-selection.style.js +0 -7
- package/lib/components/batch-selection/index.js +0 -2
- package/lib/components/box/box.component.js +0 -9
- package/lib/components/box/box.config.js +0 -3
- package/lib/components/box/index.js +0 -2
- package/lib/components/button/button-types.style.js +0 -6
- package/lib/components/button/button.component.js +0 -29
- package/lib/components/button/button.style.js +0 -16
- package/lib/components/button/index.js +0 -3
- package/lib/components/button-bar/button-bar.component.js +2 -18
- package/lib/components/button-bar/button-bar.style.js +0 -8
- package/lib/components/button-bar/index.js +0 -2
- package/lib/components/button-toggle/button-toggle-icon.component.js +0 -7
- package/lib/components/button-toggle/button-toggle-input.component.js +0 -15
- package/lib/components/button-toggle/button-toggle.component.js +0 -17
- package/lib/components/button-toggle/button-toggle.style.js +0 -6
- package/lib/components/button-toggle/index.js +0 -2
- package/lib/components/button-toggle-group/button-toggle-group.component.js +0 -18
- package/lib/components/button-toggle-group/button-toggle-group.style.js +0 -7
- package/lib/components/button-toggle-group/index.js +0 -2
- package/lib/components/carbon-provider/carbon-provider.component.js +0 -12
- package/lib/components/carbon-provider/index.js +0 -2
- package/lib/components/carbon-provider/top-modal-context.js +3 -13
- package/lib/components/card/card-column/card-column.component.js +0 -6
- package/lib/components/card/card-column/card-column.style.js +0 -3
- package/lib/components/card/card-column/index.js +0 -2
- package/lib/components/card/card-footer/card-footer.component.js +0 -8
- package/lib/components/card/card-footer/card-footer.style.js +0 -7
- package/lib/components/card/card-footer/index.js +0 -2
- package/lib/components/card/card-row/card-row.component.js +0 -8
- package/lib/components/card/card-row/card-row.style.js +0 -7
- package/lib/components/card/card-row/index.js +0 -2
- package/lib/components/card/card.component.js +0 -19
- package/lib/components/card/card.style.js +0 -7
- package/lib/components/card/index.js +0 -5
- package/lib/components/carousel/carousel.component.js +0 -24
- package/lib/components/carousel/carousel.style.js +0 -8
- package/lib/components/carousel/index.js +0 -3
- package/lib/components/carousel/slide/index.js +0 -2
- package/lib/components/carousel/slide/slide.component.js +0 -8
- package/lib/components/carousel/slide/slide.style.js +2 -5
- package/lib/components/carousel/slide.config.js +0 -2
- package/lib/components/checkbox/checkbox-group.component.js +0 -13
- package/lib/components/checkbox/checkbox-group.style.js +0 -10
- package/lib/components/checkbox/checkbox-svg.component.js +0 -6
- package/lib/components/checkbox/checkbox.component.js +0 -19
- package/lib/components/checkbox/checkbox.style.js +0 -13
- package/lib/components/checkbox/index.js +0 -3
- package/lib/components/confirm/confirm.component.js +0 -51
- package/lib/components/confirm/confirm.style.js +0 -8
- package/lib/components/confirm/index.js +0 -2
- package/lib/components/content/content.component.js +0 -7
- package/lib/components/content/content.style.js +0 -6
- package/lib/components/content/index.js +0 -2
- package/lib/components/date/__internal__/date-formats/index.js +6 -19
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +2 -31
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +0 -5
- package/lib/components/date/__internal__/date-picker/index.js +0 -2
- package/lib/components/date/__internal__/navbar/button.style.js +0 -3
- package/lib/components/date/__internal__/navbar/index.js +0 -2
- package/lib/components/date/__internal__/navbar/navbar.component.js +0 -8
- package/lib/components/date/__internal__/navbar/navbar.style.js +0 -3
- package/lib/components/date/__internal__/utils.js +1 -42
- package/lib/components/date/__internal__/weekday/abbr.style.js +0 -3
- package/lib/components/date/__internal__/weekday/index.js +0 -2
- package/lib/components/date/__internal__/weekday/weekday.component.js +0 -8
- package/lib/components/date/__internal__/weekday/weekday.style.js +0 -3
- package/lib/components/date/date.component.js +10 -71
- package/lib/components/date/date.style.js +0 -8
- package/lib/components/date/index.js +0 -2
- package/lib/components/date-range/date-range.component.js +14 -63
- package/lib/components/date-range/date-range.context.js +0 -4
- package/lib/components/date-range/date-range.style.js +0 -8
- package/lib/components/date-range/index.js +0 -2
- package/lib/components/decimal/decimal.component.js +4 -38
- package/lib/components/decimal/index.js +0 -2
- package/lib/components/definition-list/__internal__/dl.context.js +0 -4
- package/lib/components/definition-list/dd.component.js +0 -7
- package/lib/components/definition-list/definition-list.style.js +0 -8
- package/lib/components/definition-list/dl.component.js +0 -20
- package/lib/components/definition-list/dt.component.js +0 -10
- package/lib/components/definition-list/index.js +0 -4
- package/lib/components/detail/detail.component.js +2 -17
- package/lib/components/detail/detail.style.js +0 -8
- package/lib/components/detail/index.js +0 -2
- package/lib/components/dialog/dialog.component.js +0 -32
- package/lib/components/dialog/dialog.style.js +0 -14
- package/lib/components/dialog/index.js +0 -2
- package/lib/components/dialog-full-screen/content.style.js +0 -5
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +0 -42
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +0 -11
- package/lib/components/dialog-full-screen/index.js +0 -2
- package/lib/components/dismissible-box/dismissible-box.component.js +0 -9
- package/lib/components/dismissible-box/dismissible-box.style.js +0 -7
- package/lib/components/dismissible-box/index.js +0 -2
- package/lib/components/draggable/draggable-container.component.js +4 -30
- package/lib/components/draggable/draggable-item.component.js +2 -19
- package/lib/components/draggable/draggable-item.style.js +0 -6
- package/lib/components/draggable/index.js +0 -3
- package/lib/components/drawer/drawer.component.js +0 -29
- package/lib/components/drawer/drawer.style.js +0 -15
- package/lib/components/drawer/index.js +0 -3
- package/lib/components/duelling-picklist/duelling-picklist.component.js +2 -26
- package/lib/components/duelling-picklist/duelling-picklist.context.js +0 -4
- package/lib/components/duelling-picklist/duelling-picklist.style.js +0 -6
- package/lib/components/duelling-picklist/index.js +0 -7
- package/lib/components/duelling-picklist/picklist/picklist.component.js +0 -25
- package/lib/components/duelling-picklist/picklist/picklist.style.js +0 -4
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.js +0 -6
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.style.js +0 -3
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +0 -22
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.js +0 -7
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +0 -25
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +0 -8
- package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.js +0 -6
- package/lib/components/fieldset/fieldset.component.js +0 -11
- package/lib/components/fieldset/fieldset.style.js +0 -9
- package/lib/components/fieldset/index.js +0 -2
- package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +0 -6
- package/lib/components/flat-table/flat-table-body/index.js +0 -2
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +0 -23
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.style.js +0 -4
- package/lib/components/flat-table/flat-table-body-draggable/index.js +0 -2
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.js +0 -28
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.js +0 -8
- package/lib/components/flat-table/flat-table-cell/index.js +0 -2
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.js +0 -22
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +0 -6
- package/lib/components/flat-table/flat-table-checkbox/index.js +0 -2
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.js +4 -15
- package/lib/components/flat-table/flat-table-head/flat-table-head.style.js +0 -6
- package/lib/components/flat-table/flat-table-head/index.js +0 -2
- package/lib/components/flat-table/flat-table-header/flat-table-header-utils.js +1 -5
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.js +0 -23
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +0 -9
- package/lib/components/flat-table/flat-table-header/index.js +0 -2
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +0 -13
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +0 -50
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +2 -23
- package/lib/components/flat-table/flat-table-row/index.js +0 -2
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.js +0 -25
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.js +0 -8
- package/lib/components/flat-table/flat-table-row-header/index.js +0 -2
- package/lib/components/flat-table/flat-table.component.js +2 -29
- package/lib/components/flat-table/flat-table.style.js +0 -17
- package/lib/components/flat-table/index.js +0 -11
- package/lib/components/flat-table/sort/index.js +0 -2
- package/lib/components/flat-table/sort/sort.component.js +0 -16
- package/lib/components/flat-table/sort/sort.style.js +0 -4
- package/lib/components/form/__internal__/form-summary.component.js +0 -15
- package/lib/components/form/__internal__/form-summary.style.js +0 -7
- package/lib/components/form/form.component.js +0 -12
- package/lib/components/form/form.style.js +2 -17
- package/lib/components/form/index.js +0 -2
- package/lib/components/global-header/global-header.component.js +1 -16
- package/lib/components/global-header/index.js +0 -2
- package/lib/components/grid/grid-container/grid-container.component.js +0 -10
- package/lib/components/grid/grid-container/grid-container.style.js +0 -4
- package/lib/components/grid/grid-container/index.js +0 -2
- package/lib/components/grid/grid-item/grid-item.component.js +0 -10
- package/lib/components/grid/grid-item/grid-item.style.js +0 -19
- package/lib/components/grid/grid-item/index.js +0 -2
- package/lib/components/grid/index.js +0 -3
- package/lib/components/grouped-character/grouped-character.component.js +3 -28
- package/lib/components/grouped-character/grouped-character.utils.js +0 -4
- package/lib/components/grouped-character/index.js +0 -2
- package/lib/components/heading/heading.component.js +2 -16
- package/lib/components/heading/heading.style.js +0 -13
- package/lib/components/heading/index.js +0 -2
- package/lib/components/help/help.component.js +0 -20
- package/lib/components/help/help.style.js +0 -8
- package/lib/components/help/index.js +0 -2
- package/lib/components/hr/hr.component.js +0 -10
- package/lib/components/hr/hr.style.js +0 -5
- package/lib/components/hr/index.js +0 -2
- package/lib/components/i18n-provider/i18n-provider.component.js +0 -8
- package/lib/components/i18n-provider/index.js +0 -2
- package/lib/components/icon/icon-unicodes.js +2 -1
- package/lib/components/icon/icon.component.js +1 -27
- package/lib/components/icon/icon.style.js +0 -18
- package/lib/components/icon/index.js +0 -2
- package/lib/components/icon-button/icon-button.component.js +0 -15
- package/lib/components/icon-button/icon-button.style.js +0 -8
- package/lib/components/icon-button/index.js +0 -2
- package/lib/components/image/image.component.js +0 -8
- package/lib/components/image/image.style.js +2 -7
- package/lib/components/image/index.js +0 -2
- package/lib/components/inline-inputs/index.js +0 -3
- package/lib/components/inline-inputs/inline-inputs.component.js +0 -17
- package/lib/components/inline-inputs/inline-inputs.style.js +0 -8
- package/lib/components/link/index.js +0 -2
- package/lib/components/link/link.component.js +3 -24
- package/lib/components/link/link.style.js +0 -11
- package/lib/components/link-preview/__internal__/placeholder.component.js +0 -6
- package/lib/components/link-preview/index.js +0 -2
- package/lib/components/link-preview/link-preview.component.js +0 -17
- package/lib/components/link-preview/link-preview.style.js +0 -6
- package/lib/components/loader/index.js +0 -2
- package/lib/components/loader/loader-square.style.js +0 -10
- package/lib/components/loader/loader.component.js +0 -9
- package/lib/components/loader/loader.style.js +0 -5
- package/lib/components/loader-bar/index.js +0 -2
- package/lib/components/loader-bar/loader-bar.component.js +0 -10
- package/lib/components/loader-bar/loader-bar.style.js +0 -10
- package/lib/components/menu/__internal__/keyboard-navigation/index.js +0 -11
- package/lib/components/menu/__internal__/spec-helper/index.js +0 -7
- package/lib/components/menu/__internal__/submenu/submenu.component.js +7 -80
- package/lib/components/menu/__internal__/submenu/submenu.context.js +0 -4
- package/lib/components/menu/__internal__/submenu/submenu.style.js +0 -12
- package/lib/components/menu/index.js +0 -7
- package/lib/components/menu/menu-divider/menu-divider.component.js +0 -10
- package/lib/components/menu/menu-divider/menu-divider.style.js +0 -6
- package/lib/components/menu/menu-full-screen/index.js +0 -2
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +0 -23
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +0 -12
- package/lib/components/menu/menu-item/index.js +0 -2
- package/lib/components/menu/menu-item/menu-item.component.js +0 -52
- package/lib/components/menu/menu-item/menu-item.style.js +0 -8
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +0 -11
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +0 -6
- package/lib/components/menu/menu.component.js +0 -18
- package/lib/components/menu/menu.context.js +1 -7
- package/lib/components/menu/menu.style.js +0 -9
- package/lib/components/menu/scrollable-block/index.js +0 -2
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +0 -19
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +0 -7
- package/lib/components/message/index.js +0 -2
- package/lib/components/message/message-content/message-content.component.js +0 -7
- package/lib/components/message/message-content/message-content.style.js +0 -3
- package/lib/components/message/message.component.js +0 -16
- package/lib/components/message/message.style.js +0 -8
- package/lib/components/message/type-icon/type-icon.component.js +0 -7
- package/lib/components/message/type-icon/type-icon.style.js +0 -4
- package/lib/components/modal/__internal__/modal-manager.js +0 -25
- package/lib/components/modal/index.js +0 -3
- package/lib/components/modal/modal.component.js +0 -19
- package/lib/components/modal/modal.style.js +0 -6
- package/lib/components/multi-action-button/index.js +0 -2
- package/lib/components/multi-action-button/multi-action-button.component.js +3 -32
- package/lib/components/multi-action-button/multi-action-button.style.js +0 -9
- package/lib/components/navigation-bar/index.js +0 -2
- package/lib/components/navigation-bar/navigation-bar.component.js +0 -7
- package/lib/components/navigation-bar/navigation-bar.style.js +0 -6
- package/lib/components/note/__internal__/status-icon/index.js +0 -2
- package/lib/components/note/__internal__/status-icon/status-icon.component.js +0 -7
- package/lib/components/note/__internal__/status-icon/status-icon.style.js +0 -3
- package/lib/components/note/index.js +0 -2
- package/lib/components/note/note.component.js +1 -21
- package/lib/components/note/note.style.js +0 -8
- package/lib/components/number/index.js +0 -3
- package/lib/components/number/number.component.js +2 -14
- package/lib/components/numeral-date/index.js +0 -2
- package/lib/components/numeral-date/numeral-date-context.js +0 -4
- package/lib/components/numeral-date/numeral-date.component.js +9 -42
- package/lib/components/numeral-date/numeral-date.style.js +0 -9
- package/lib/components/pager/__internal__/pager-navigation-link.component.js +0 -18
- package/lib/components/pager/__internal__/pager-navigation.component.js +0 -34
- package/lib/components/pager/index.js +0 -2
- package/lib/components/pager/pager.component.js +0 -40
- package/lib/components/pager/pager.style.js +0 -10
- package/lib/components/pages/index.js +0 -3
- package/lib/components/pages/page/index.js +0 -2
- package/lib/components/pages/page/page.component.js +0 -14
- package/lib/components/pages/page/page.style.js +0 -5
- package/lib/components/pages/pages.component.js +4 -26
- package/lib/components/pages/pages.config.js +0 -2
- package/lib/components/pages/pages.style.js +0 -6
- package/lib/components/pill/index.js +0 -2
- package/lib/components/pill/pill.component.js +0 -10
- package/lib/components/pill/pill.style.config.js +0 -2
- package/lib/components/pill/pill.style.js +0 -15
- package/lib/components/pod/index.js +0 -2
- package/lib/components/pod/pod.component.js +4 -53
- package/lib/components/pod/pod.style.js +6 -19
- package/lib/components/popover-container/index.js +0 -2
- package/lib/components/popover-container/popover-container.component.js +2 -27
- package/lib/components/popover-container/popover-container.style.js +0 -10
- package/lib/components/portal/index.js +0 -2
- package/lib/components/portal/portal.js +2 -23
- package/lib/components/portrait/index.js +0 -2
- package/lib/components/portrait/portrait-gravatar.component.js +0 -10
- package/lib/components/portrait/portrait-initials.component.js +10 -20
- package/lib/components/portrait/portrait.component.js +0 -21
- package/lib/components/portrait/portrait.style.js +3 -19
- package/lib/components/preview/__internal__/preview-placeholder.component.js +0 -8
- package/lib/components/preview/__internal__/preview-placeholder.style.js +0 -4
- package/lib/components/preview/index.js +0 -2
- package/lib/components/preview/preview.component.js +0 -13
- package/lib/components/preview/preview.style.js +3 -6
- package/lib/components/profile/index.js +0 -2
- package/lib/components/profile/profile.component.js +0 -14
- package/lib/components/profile/profile.style.js +0 -7
- package/lib/components/progress-tracker/index.js +0 -2
- package/lib/components/progress-tracker/progress-tracker.component.js +2 -35
- package/lib/components/progress-tracker/progress-tracker.config.js +0 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +0 -14
- package/lib/components/radio-button/index.js +0 -6
- package/lib/components/radio-button/radio-button-group.component.js +2 -39
- package/lib/components/radio-button/radio-button-group.style.js +0 -4
- package/lib/components/radio-button/radio-button-svg.component.js +0 -6
- package/lib/components/radio-button/radio-button.component.js +6 -48
- package/lib/components/radio-button/radio-button.style.js +0 -14
- package/lib/components/search/index.js +0 -2
- package/lib/components/search/search-button.style.js +0 -6
- package/lib/components/search/search.component.js +2 -34
- package/lib/components/search/search.style.js +0 -12
- package/lib/components/select/__internal__/select-list-context.js +0 -4
- package/lib/components/select/__internal__/select-text/select-text.component.js +0 -17
- package/lib/components/select/__internal__/select-text/select-text.style.js +0 -6
- package/lib/components/select/filterable-select/filterable-select.component.js +8 -91
- package/lib/components/select/index.js +0 -7
- package/lib/components/select/list-action-button/list-action-button.component.js +0 -12
- package/lib/components/select/list-action-button/list-action-button.style.js +0 -4
- package/lib/components/select/multi-select/multi-select.component.js +15 -102
- package/lib/components/select/multi-select/multi-select.style.js +0 -10
- package/lib/components/select/option/option.component.js +0 -21
- package/lib/components/select/option/option.style.js +0 -6
- package/lib/components/select/option-group-header/option-group-header.component.js +0 -8
- package/lib/components/select/option-group-header/option-group-header.style.js +0 -4
- package/lib/components/select/option-row/option-row.component.js +0 -18
- package/lib/components/select/option-row/option-row.style.js +0 -4
- package/lib/components/select/select-list/select-list-container.style.js +0 -4
- package/lib/components/select/select-list/select-list.component.js +2 -67
- package/lib/components/select/select-list/select-list.style.js +2 -5
- package/lib/components/select/select-list/update-list-scroll.js +0 -4
- package/lib/components/select/select-textbox/select-textbox.component.js +2 -53
- package/lib/components/select/select.style.js +0 -10
- package/lib/components/select/simple-select/simple-select.component.js +2 -78
- package/lib/components/select/utils/get-next-child-by-text.js +0 -9
- package/lib/components/select/utils/get-next-index-by-key.js +0 -14
- package/lib/components/select/utils/highlight-part-of-text.js +0 -11
- package/lib/components/select/utils/is-expected-option.js +0 -9
- package/lib/components/select/utils/is-expected-value.js +0 -2
- package/lib/components/select/utils/is-navigation-key.js +0 -1
- package/lib/components/select/utils/matching-text.style.js +0 -3
- package/lib/components/select/utils/with-filter.hoc.js +3 -43
- package/lib/components/settings-row/index.js +0 -2
- package/lib/components/settings-row/settings-row.component.js +2 -19
- package/lib/components/settings-row/settings-row.style.js +0 -8
- package/lib/components/show-edit-pod/index.js +0 -2
- package/lib/components/show-edit-pod/show-edit-pod.component.js +6 -58
- package/lib/components/show-edit-pod/show-edit-pod.style.js +0 -6
- package/lib/components/sidebar/__internal__/sidebar-header/index.js +0 -2
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.js +0 -6
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +0 -3
- package/lib/components/sidebar/index.js +0 -3
- package/lib/components/sidebar/sidebar.component.js +0 -26
- package/lib/components/sidebar/sidebar.style.js +0 -11
- package/lib/components/simple-color-picker/color-sample-box/color-sample-box.component.js +1 -11
- package/lib/components/simple-color-picker/color-sample-box/color-sample-box.style.js +0 -7
- package/lib/components/simple-color-picker/color-sample-box/index.js +0 -2
- package/lib/components/simple-color-picker/index.js +0 -3
- package/lib/components/simple-color-picker/simple-color/index.js +0 -2
- package/lib/components/simple-color-picker/simple-color/simple-color.component.js +0 -16
- package/lib/components/simple-color-picker/simple-color/simple-color.style.js +0 -3
- package/lib/components/simple-color-picker/simple-color-input/simple-color-input.style.js +0 -5
- package/lib/components/simple-color-picker/simple-color-picker.component.js +8 -59
- package/lib/components/simple-color-picker/simple-color-picker.style.js +0 -8
- package/lib/components/simple-color-picker/tick-icon/tick-icon.style.js +4 -12
- package/lib/components/split-button/index.js +0 -2
- package/lib/components/split-button/split-button-children.style.js +0 -7
- package/lib/components/split-button/split-button-toggle.style.js +0 -7
- package/lib/components/split-button/split-button.component.js +1 -40
- package/lib/components/split-button/split-button.style.js +0 -6
- package/lib/components/step-sequence/index.js +0 -3
- package/lib/components/step-sequence/step-sequence-item/index.js +0 -2
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +0 -17
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +0 -6
- package/lib/components/step-sequence/step-sequence.component.js +0 -9
- package/lib/components/step-sequence/step-sequence.style.js +0 -6
- package/lib/components/switch/__internal__/switch-slider-panel.style.d.ts +7 -0
- package/lib/components/switch/__internal__/switch-slider-panel.style.js +0 -13
- package/lib/components/switch/__internal__/switch-slider.component.d.ts +11 -0
- package/lib/components/switch/__internal__/switch-slider.component.js +8 -20
- package/lib/components/switch/__internal__/switch-slider.style.d.ts +6 -0
- package/lib/components/switch/__internal__/switch-slider.style.js +0 -17
- package/lib/components/switch/index.d.ts +2 -1
- package/lib/components/switch/index.js +0 -2
- package/lib/components/switch/switch.component.d.ts +31 -0
- package/lib/components/switch/switch.component.js +520 -142
- package/lib/components/switch/switch.style.d.ts +4 -0
- package/lib/components/switch/switch.style.js +0 -23
- package/lib/components/tabs/__internal__/tab-title/index.js +0 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +8 -37
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +0 -8
- package/lib/components/tabs/__internal__/tabs-header/index.js +0 -2
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.js +0 -6
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +0 -8
- package/lib/components/tabs/index.js +0 -1
- package/lib/components/tabs/tab/index.js +0 -3
- package/lib/components/tabs/tab/tab.component.js +8 -35
- package/lib/components/tabs/tab/tab.style.js +0 -8
- package/lib/components/tabs/tabs.component.js +24 -75
- package/lib/components/tabs/tabs.style.js +0 -10
- package/lib/components/text-editor/__internal__/decorators/index.js +0 -5
- package/lib/components/text-editor/__internal__/decorators/link-decorator.js +10 -12
- package/lib/components/text-editor/__internal__/editor-counter/editor-counter.component.js +0 -11
- package/lib/components/text-editor/__internal__/editor-counter/editor-counter.style.js +0 -3
- package/lib/components/text-editor/__internal__/editor-counter/index.js +0 -2
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.js +2 -14
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.js +0 -4
- package/lib/components/text-editor/__internal__/editor-link/index.js +0 -2
- package/lib/components/text-editor/__internal__/label-wrapper/index.js +0 -2
- package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.js +0 -6
- package/lib/components/text-editor/__internal__/toolbar/index.js +0 -2
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/index.js +0 -2
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +0 -12
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +0 -6
- package/lib/components/text-editor/__internal__/toolbar/toolbar.component.js +0 -22
- package/lib/components/text-editor/__internal__/toolbar/toolbar.style.js +0 -4
- package/lib/components/text-editor/__internal__/utils/index.js +0 -1
- package/lib/components/text-editor/__internal__/utils/utils.js +9 -49
- package/lib/components/text-editor/index.js +0 -3
- package/lib/components/text-editor/text-editor.component.js +22 -76
- package/lib/components/text-editor/text-editor.style.js +0 -8
- package/lib/components/textarea/index.js +0 -2
- package/lib/components/textarea/textarea.component.js +6 -71
- package/lib/components/textarea/textarea.style.js +0 -10
- package/lib/components/textbox/__internal__/prefix.style.js +0 -3
- package/lib/components/textbox/index.js +0 -2
- package/lib/components/textbox/textbox.component.js +2 -28
- package/lib/components/textbox/textbox.style.js +0 -4
- package/lib/components/tile/index.js +0 -2
- package/lib/components/tile/tile-footer/index.js +0 -2
- package/lib/components/tile/tile-footer/tile-footer.component.js +2 -12
- package/lib/components/tile/tile-footer/tile-footer.style.js +0 -6
- package/lib/components/tile/tile.component.js +0 -16
- package/lib/components/tile/tile.style.js +0 -9
- package/lib/components/tile-select/__internal__/accordion/accordion.component.js +0 -9
- package/lib/components/tile-select/__internal__/accordion/accordion.style.js +0 -4
- package/lib/components/tile-select/__internal__/accordion/index.js +0 -2
- package/lib/components/tile-select/index.js +0 -3
- package/lib/components/tile-select/tile-select-group.component.js +2 -28
- package/lib/components/tile-select/tile-select.component.js +4 -48
- package/lib/components/tile-select/tile-select.style.js +0 -11
- package/lib/components/toast/index.js +0 -2
- package/lib/components/toast/toast.component.js +0 -34
- package/lib/components/toast/toast.style.js +0 -12
- package/lib/components/tooltip/index.js +0 -2
- package/lib/components/tooltip/tooltip-pointer.style.js +0 -8
- package/lib/components/tooltip/tooltip.component.js +0 -17
- package/lib/components/tooltip/tooltip.style.js +0 -13
- package/lib/components/typography/index.js +0 -3
- package/lib/components/typography/list.component.js +0 -11
- package/lib/components/typography/typography.component.js +0 -36
- package/lib/components/vertical-divider/index.js +0 -2
- package/lib/components/vertical-divider/vertical-divider.component.js +0 -10
- package/lib/components/vertical-divider/vertical-divider.style.js +0 -6
- package/lib/hooks/__internal__/useCharacterCount/index.js +0 -2
- package/lib/hooks/__internal__/useCharacterCount/useCharacterCount.js +0 -10
- package/lib/hooks/__internal__/useClickAwayListener/index.js +0 -2
- package/lib/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +0 -4
- package/lib/hooks/__internal__/useFloating/index.js +0 -2
- package/lib/hooks/__internal__/useFloating/useFloating.js +0 -8
- package/lib/hooks/__internal__/useInputAccessibility/index.js +0 -2
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.js +0 -1
- package/lib/hooks/__internal__/useIsAboveBreakpoint/index.js +0 -2
- package/lib/hooks/__internal__/useIsAboveBreakpoint/useIsAboveBreakpoint.js +0 -3
- package/lib/hooks/__internal__/useIsStickyFooterForm/index.js +0 -2
- package/lib/hooks/__internal__/useIsStickyFooterForm/useIsStickyFooterForm.js +0 -8
- package/lib/hooks/__internal__/useLocale/index.js +0 -2
- package/lib/hooks/__internal__/useLocale/useLocale.js +0 -4
- package/lib/hooks/__internal__/useMenuKeyboardNavigation/index.js +0 -2
- package/lib/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.js +2 -23
- package/lib/hooks/__internal__/useModalManager/index.js +0 -2
- package/lib/hooks/__internal__/useModalManager/useModalManager.js +0 -9
- package/lib/hooks/__internal__/usePrevious/index.js +0 -2
- package/lib/hooks/__internal__/useResizeObserver/index.js +0 -2
- package/lib/hooks/__internal__/useResizeObserver/useResizeObserver.js +3 -10
- package/lib/hooks/__internal__/useScrollBlock/index.js +0 -2
- package/lib/hooks/__internal__/useScrollBlock/scroll-block-manager.js +6 -17
- package/lib/hooks/__internal__/useScrollBlock/useScrollBlock.js +8 -18
- package/lib/hooks/useMediaQuery/index.js +0 -2
- package/lib/hooks/useMediaQuery/useMediaQuery.js +0 -8
- package/lib/locales/date-fns-locales/index.js +0 -2
- package/lib/locales/en-gb.js +1 -9
- package/lib/locales/index.js +0 -3
- package/lib/locales/pl-pl.js +1 -9
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.js +1 -5
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/index.js +0 -2
- package/lib/style/design-tokens/debug-theme.util.js +5 -12
- package/lib/style/design-tokens/generate-css-variables.util.js +0 -2
- package/lib/style/global-style.js +0 -2
- package/lib/style/palette/index.js +2 -9
- package/lib/style/themes/aegean/aegean-theme.config.js +0 -5
- package/lib/style/themes/aegean/index.js +0 -5
- package/lib/style/themes/base/base-theme.config.js +2 -9
- package/lib/style/themes/base/index.js +4 -12
- package/lib/style/themes/index.js +0 -7
- package/lib/style/themes/medium/index.js +0 -3
- package/lib/style/themes/mint/index.js +0 -5
- package/lib/style/themes/mint/mint-theme.config.js +0 -5
- package/lib/style/themes/none/index.js +0 -5
- package/lib/style/themes/none/none-theme.config.js +0 -2
- package/lib/style/themes/sage/index.js +4 -6
- package/lib/style/themes/small/index.js +0 -3
- package/lib/style/themes/test-utils.js +4 -6
- package/lib/style/utils/add-hex-symbols.js +0 -3
- package/lib/style/utils/at-opacity.js +0 -3
- package/lib/style/utils/color.js +3 -14
- package/lib/style/utils/filter-out-position-props.js +0 -4
- package/lib/style/utils/filter-out-styled-system-spacing-props.js +0 -4
- package/lib/style/utils/filter-styled-system-margin-props.js +0 -4
- package/lib/style/utils/filter-styled-system-padding-props.js +2 -5
- package/lib/style/utils/form-style-utils.js +0 -18
- package/lib/style/utils/get-color-value.js +0 -5
- package/lib/style/utils/get-rgb-values.js +1 -2
- package/lib/style/utils/index.js +0 -4
- package/lib/style/utils/merge-deep.js +1 -7
- package/lib/style/utils/mix.js +1 -9
- package/lib/style/utils/shade.js +0 -4
- package/lib/style/utils/tint.js +0 -4
- package/lib/style/utils/width.js +0 -4
- package/package.json +1 -1
- package/esm/components/switch/switch.d.ts +0 -37
- package/lib/components/switch/switch.d.ts +0 -37
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React, { useState, useCallback } from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import styledSystemPropTypes from "@styled-system/prop-types";
|
|
4
3
|
import SwitchStyle from "./switch.style";
|
|
5
4
|
import CheckableInput from "../../__internal__/checkable-input";
|
|
6
5
|
import SwitchSlider from "./__internal__/switch-slider.component";
|
|
7
6
|
import useIsAboveBreakpoint from "../../hooks/__internal__/useIsAboveBreakpoint";
|
|
8
7
|
import { TooltipProvider } from "../../__internal__/tooltip-provider";
|
|
9
8
|
import { filterStyledSystemMarginProps } from "../../style/utils";
|
|
10
|
-
const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
|
|
11
|
-
|
|
12
9
|
const Switch = ({
|
|
13
10
|
autoFocus,
|
|
14
11
|
id,
|
|
@@ -21,9 +18,9 @@ const Switch = ({
|
|
|
21
18
|
defaultChecked,
|
|
22
19
|
disabled,
|
|
23
20
|
loading,
|
|
24
|
-
reverse,
|
|
25
|
-
validationOnLabel,
|
|
26
|
-
labelInline,
|
|
21
|
+
reverse = true,
|
|
22
|
+
validationOnLabel = false,
|
|
23
|
+
labelInline = false,
|
|
27
24
|
labelSpacing,
|
|
28
25
|
labelHelp,
|
|
29
26
|
fieldHelpInline,
|
|
@@ -34,7 +31,7 @@ const Switch = ({
|
|
|
34
31
|
error,
|
|
35
32
|
warning,
|
|
36
33
|
info,
|
|
37
|
-
"data-component": dataComponent,
|
|
34
|
+
"data-component": dataComponent = "switch",
|
|
38
35
|
"data-element": dataElement,
|
|
39
36
|
"data-role": dataRole,
|
|
40
37
|
helpAriaLabel,
|
|
@@ -44,15 +41,13 @@ const Switch = ({
|
|
|
44
41
|
const [checkedInternal, setCheckedInternal] = useState(defaultChecked || false);
|
|
45
42
|
const onChangeInternal = useCallback(e => {
|
|
46
43
|
setCheckedInternal(e.target.checked);
|
|
47
|
-
onChange(e);
|
|
44
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
48
45
|
}, [setCheckedInternal, onChange]);
|
|
49
46
|
const largeScreen = useIsAboveBreakpoint(adaptiveLabelBreakpoint);
|
|
50
47
|
let shouldLabelBeInline = labelInline;
|
|
51
|
-
|
|
52
48
|
if (adaptiveLabelBreakpoint) {
|
|
53
49
|
shouldLabelBeInline = largeScreen;
|
|
54
50
|
}
|
|
55
|
-
|
|
56
51
|
const shouldValidationBeOnLabel = labelInline && !reverse ? true : validationOnLabel;
|
|
57
52
|
const switchStyleProps = {
|
|
58
53
|
"data-component": dataComponent,
|
|
@@ -107,127 +102,523 @@ const Switch = ({
|
|
|
107
102
|
tooltipPosition: tooltipPosition
|
|
108
103
|
}, /*#__PURE__*/React.createElement(SwitchStyle, switchStyleProps, /*#__PURE__*/React.createElement(CheckableInput, inputProps, /*#__PURE__*/React.createElement(SwitchSlider, switchSliderProps))));
|
|
109
104
|
};
|
|
110
|
-
|
|
111
105
|
Switch.propTypes = {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
"about": PropTypes.string,
|
|
107
|
+
"accept": PropTypes.string,
|
|
108
|
+
"accessKey": PropTypes.string,
|
|
109
|
+
"adaptiveLabelBreakpoint": PropTypes.number,
|
|
110
|
+
"alt": PropTypes.string,
|
|
111
|
+
"aria-activedescendant": PropTypes.string,
|
|
112
|
+
"aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
113
|
+
"aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
|
|
114
|
+
"aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
115
|
+
"aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
116
|
+
"aria-colcount": PropTypes.number,
|
|
117
|
+
"aria-colindex": PropTypes.number,
|
|
118
|
+
"aria-colspan": PropTypes.number,
|
|
119
|
+
"aria-controls": PropTypes.string,
|
|
120
|
+
"aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
|
|
121
|
+
"aria-describedby": PropTypes.string,
|
|
122
|
+
"aria-details": PropTypes.string,
|
|
123
|
+
"aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
124
|
+
"aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
|
|
125
|
+
"aria-errormessage": PropTypes.string,
|
|
126
|
+
"aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
127
|
+
"aria-flowto": PropTypes.string,
|
|
128
|
+
"aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
129
|
+
"aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
|
|
130
|
+
"aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
131
|
+
"aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
|
|
132
|
+
"aria-keyshortcuts": PropTypes.string,
|
|
133
|
+
"aria-label": PropTypes.string,
|
|
134
|
+
"aria-labelledby": PropTypes.string,
|
|
135
|
+
"aria-level": PropTypes.number,
|
|
136
|
+
"aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
|
|
137
|
+
"aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
138
|
+
"aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
139
|
+
"aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
140
|
+
"aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
|
|
141
|
+
"aria-owns": PropTypes.string,
|
|
142
|
+
"aria-placeholder": PropTypes.string,
|
|
143
|
+
"aria-posinset": PropTypes.number,
|
|
144
|
+
"aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
145
|
+
"aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
146
|
+
"aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
|
|
147
|
+
"aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
148
|
+
"aria-roledescription": PropTypes.string,
|
|
149
|
+
"aria-rowcount": PropTypes.number,
|
|
150
|
+
"aria-rowindex": PropTypes.number,
|
|
151
|
+
"aria-rowspan": PropTypes.number,
|
|
152
|
+
"aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
153
|
+
"aria-setsize": PropTypes.number,
|
|
154
|
+
"aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
|
|
155
|
+
"aria-valuemax": PropTypes.number,
|
|
156
|
+
"aria-valuemin": PropTypes.number,
|
|
157
|
+
"aria-valuenow": PropTypes.number,
|
|
158
|
+
"aria-valuetext": PropTypes.string,
|
|
159
|
+
"ariaLabelledBy": PropTypes.string,
|
|
160
|
+
"autoCapitalize": PropTypes.string,
|
|
161
|
+
"autoComplete": PropTypes.string,
|
|
162
|
+
"autoCorrect": PropTypes.string,
|
|
163
|
+
"autoFocus": PropTypes.bool,
|
|
164
|
+
"autoSave": PropTypes.string,
|
|
165
|
+
"capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
|
|
166
|
+
"checked": PropTypes.bool,
|
|
167
|
+
"children": PropTypes.node,
|
|
168
|
+
"className": PropTypes.string,
|
|
169
|
+
"color": PropTypes.string,
|
|
170
|
+
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
171
|
+
"contextMenu": PropTypes.string,
|
|
172
|
+
"crossOrigin": PropTypes.string,
|
|
173
|
+
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
174
|
+
"__html": PropTypes.string.isRequired
|
|
175
|
+
}),
|
|
116
176
|
"data-component": PropTypes.string,
|
|
117
|
-
|
|
118
|
-
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
119
177
|
"data-element": PropTypes.string,
|
|
120
|
-
|
|
121
|
-
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
122
178
|
"data-role": PropTypes.string,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
179
|
+
"datatype": PropTypes.string,
|
|
180
|
+
"defaultChecked": PropTypes.bool,
|
|
181
|
+
"defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
|
|
182
|
+
"dir": PropTypes.string,
|
|
183
|
+
"disabled": PropTypes.bool,
|
|
184
|
+
"draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
185
|
+
"enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
186
|
+
"error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
187
|
+
"fieldHelp": PropTypes.node,
|
|
188
|
+
"fieldHelpInline": PropTypes.bool,
|
|
189
|
+
"form": PropTypes.string,
|
|
190
|
+
"formAction": PropTypes.string,
|
|
191
|
+
"formEncType": PropTypes.string,
|
|
192
|
+
"formMethod": PropTypes.string,
|
|
193
|
+
"formNoValidate": PropTypes.bool,
|
|
194
|
+
"formTarget": PropTypes.string,
|
|
195
|
+
"height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
196
|
+
"helpAriaLabel": PropTypes.string,
|
|
197
|
+
"hidden": PropTypes.bool,
|
|
198
|
+
"id": PropTypes.string,
|
|
199
|
+
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
200
|
+
"inlist": PropTypes.any,
|
|
201
|
+
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
202
|
+
"inputRef": PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
203
|
+
"current": PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.object]).isRequired
|
|
204
|
+
})]),
|
|
205
|
+
"inputWidth": PropTypes.number,
|
|
206
|
+
"is": PropTypes.string,
|
|
207
|
+
"itemID": PropTypes.string,
|
|
208
|
+
"itemProp": PropTypes.string,
|
|
209
|
+
"itemRef": PropTypes.string,
|
|
210
|
+
"itemScope": PropTypes.bool,
|
|
211
|
+
"itemType": PropTypes.string,
|
|
212
|
+
"label": PropTypes.node,
|
|
213
|
+
"labelAlign": PropTypes.oneOf(["left", "right"]),
|
|
214
|
+
"labelHelp": PropTypes.node,
|
|
215
|
+
"labelInline": PropTypes.bool,
|
|
216
|
+
"labelSpacing": PropTypes.oneOf([1, 2]),
|
|
217
|
+
"labelWidth": PropTypes.number,
|
|
218
|
+
"lang": PropTypes.string,
|
|
219
|
+
"list": PropTypes.string,
|
|
220
|
+
"loading": PropTypes.bool,
|
|
221
|
+
"m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
222
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
223
|
+
"description": PropTypes.string,
|
|
224
|
+
"toString": PropTypes.func.isRequired,
|
|
225
|
+
"valueOf": PropTypes.func.isRequired
|
|
226
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
227
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
228
|
+
"description": PropTypes.string,
|
|
229
|
+
"toString": PropTypes.func.isRequired,
|
|
230
|
+
"valueOf": PropTypes.func.isRequired
|
|
231
|
+
}), PropTypes.string]),
|
|
232
|
+
"margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
233
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
234
|
+
"description": PropTypes.string,
|
|
235
|
+
"toString": PropTypes.func.isRequired,
|
|
236
|
+
"valueOf": PropTypes.func.isRequired
|
|
237
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
238
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
239
|
+
"description": PropTypes.string,
|
|
240
|
+
"toString": PropTypes.func.isRequired,
|
|
241
|
+
"valueOf": PropTypes.func.isRequired
|
|
242
|
+
}), PropTypes.string]),
|
|
243
|
+
"marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
244
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
245
|
+
"description": PropTypes.string,
|
|
246
|
+
"toString": PropTypes.func.isRequired,
|
|
247
|
+
"valueOf": PropTypes.func.isRequired
|
|
248
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
249
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
250
|
+
"description": PropTypes.string,
|
|
251
|
+
"toString": PropTypes.func.isRequired,
|
|
252
|
+
"valueOf": PropTypes.func.isRequired
|
|
253
|
+
}), PropTypes.string]),
|
|
254
|
+
"marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
255
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
256
|
+
"description": PropTypes.string,
|
|
257
|
+
"toString": PropTypes.func.isRequired,
|
|
258
|
+
"valueOf": PropTypes.func.isRequired
|
|
259
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
260
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
261
|
+
"description": PropTypes.string,
|
|
262
|
+
"toString": PropTypes.func.isRequired,
|
|
263
|
+
"valueOf": PropTypes.func.isRequired
|
|
264
|
+
}), PropTypes.string]),
|
|
265
|
+
"marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
266
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
267
|
+
"description": PropTypes.string,
|
|
268
|
+
"toString": PropTypes.func.isRequired,
|
|
269
|
+
"valueOf": PropTypes.func.isRequired
|
|
270
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
271
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
272
|
+
"description": PropTypes.string,
|
|
273
|
+
"toString": PropTypes.func.isRequired,
|
|
274
|
+
"valueOf": PropTypes.func.isRequired
|
|
275
|
+
}), PropTypes.string]),
|
|
276
|
+
"marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
277
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
278
|
+
"description": PropTypes.string,
|
|
279
|
+
"toString": PropTypes.func.isRequired,
|
|
280
|
+
"valueOf": PropTypes.func.isRequired
|
|
281
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
282
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
283
|
+
"description": PropTypes.string,
|
|
284
|
+
"toString": PropTypes.func.isRequired,
|
|
285
|
+
"valueOf": PropTypes.func.isRequired
|
|
286
|
+
}), PropTypes.string]),
|
|
287
|
+
"marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
288
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
289
|
+
"description": PropTypes.string,
|
|
290
|
+
"toString": PropTypes.func.isRequired,
|
|
291
|
+
"valueOf": PropTypes.func.isRequired
|
|
292
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
293
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
294
|
+
"description": PropTypes.string,
|
|
295
|
+
"toString": PropTypes.func.isRequired,
|
|
296
|
+
"valueOf": PropTypes.func.isRequired
|
|
297
|
+
}), PropTypes.string]),
|
|
298
|
+
"marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
299
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
300
|
+
"description": PropTypes.string,
|
|
301
|
+
"toString": PropTypes.func.isRequired,
|
|
302
|
+
"valueOf": PropTypes.func.isRequired
|
|
303
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
304
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
305
|
+
"description": PropTypes.string,
|
|
306
|
+
"toString": PropTypes.func.isRequired,
|
|
307
|
+
"valueOf": PropTypes.func.isRequired
|
|
308
|
+
}), PropTypes.string]),
|
|
309
|
+
"max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
310
|
+
"maxLength": PropTypes.number,
|
|
311
|
+
"mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
312
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
313
|
+
"description": PropTypes.string,
|
|
314
|
+
"toString": PropTypes.func.isRequired,
|
|
315
|
+
"valueOf": PropTypes.func.isRequired
|
|
316
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
317
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
318
|
+
"description": PropTypes.string,
|
|
319
|
+
"toString": PropTypes.func.isRequired,
|
|
320
|
+
"valueOf": PropTypes.func.isRequired
|
|
321
|
+
}), PropTypes.string]),
|
|
322
|
+
"min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
323
|
+
"minLength": PropTypes.number,
|
|
324
|
+
"ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
325
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
326
|
+
"description": PropTypes.string,
|
|
327
|
+
"toString": PropTypes.func.isRequired,
|
|
328
|
+
"valueOf": PropTypes.func.isRequired
|
|
329
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
330
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
331
|
+
"description": PropTypes.string,
|
|
332
|
+
"toString": PropTypes.func.isRequired,
|
|
333
|
+
"valueOf": PropTypes.func.isRequired
|
|
334
|
+
}), PropTypes.string]),
|
|
335
|
+
"mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
336
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
337
|
+
"description": PropTypes.string,
|
|
338
|
+
"toString": PropTypes.func.isRequired,
|
|
339
|
+
"valueOf": PropTypes.func.isRequired
|
|
340
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
341
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
342
|
+
"description": PropTypes.string,
|
|
343
|
+
"toString": PropTypes.func.isRequired,
|
|
344
|
+
"valueOf": PropTypes.func.isRequired
|
|
345
|
+
}), PropTypes.string]),
|
|
346
|
+
"mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
347
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
348
|
+
"description": PropTypes.string,
|
|
349
|
+
"toString": PropTypes.func.isRequired,
|
|
350
|
+
"valueOf": PropTypes.func.isRequired
|
|
351
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
352
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
353
|
+
"description": PropTypes.string,
|
|
354
|
+
"toString": PropTypes.func.isRequired,
|
|
355
|
+
"valueOf": PropTypes.func.isRequired
|
|
356
|
+
}), PropTypes.string]),
|
|
357
|
+
"multiple": PropTypes.bool,
|
|
358
|
+
"mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
359
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
360
|
+
"description": PropTypes.string,
|
|
361
|
+
"toString": PropTypes.func.isRequired,
|
|
362
|
+
"valueOf": PropTypes.func.isRequired
|
|
363
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
364
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
365
|
+
"description": PropTypes.string,
|
|
366
|
+
"toString": PropTypes.func.isRequired,
|
|
367
|
+
"valueOf": PropTypes.func.isRequired
|
|
368
|
+
}), PropTypes.string]),
|
|
369
|
+
"my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
370
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
371
|
+
"description": PropTypes.string,
|
|
372
|
+
"toString": PropTypes.func.isRequired,
|
|
373
|
+
"valueOf": PropTypes.func.isRequired
|
|
374
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
375
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
376
|
+
"description": PropTypes.string,
|
|
377
|
+
"toString": PropTypes.func.isRequired,
|
|
378
|
+
"valueOf": PropTypes.func.isRequired
|
|
379
|
+
}), PropTypes.string]),
|
|
380
|
+
"name": PropTypes.string,
|
|
381
|
+
"onAbort": PropTypes.func,
|
|
382
|
+
"onAbortCapture": PropTypes.func,
|
|
383
|
+
"onAnimationEnd": PropTypes.func,
|
|
384
|
+
"onAnimationEndCapture": PropTypes.func,
|
|
385
|
+
"onAnimationIteration": PropTypes.func,
|
|
386
|
+
"onAnimationIterationCapture": PropTypes.func,
|
|
387
|
+
"onAnimationStart": PropTypes.func,
|
|
388
|
+
"onAnimationStartCapture": PropTypes.func,
|
|
389
|
+
"onAuxClick": PropTypes.func,
|
|
390
|
+
"onAuxClickCapture": PropTypes.func,
|
|
391
|
+
"onBeforeInput": PropTypes.func,
|
|
392
|
+
"onBeforeInputCapture": PropTypes.func,
|
|
393
|
+
"onBlur": PropTypes.func,
|
|
394
|
+
"onBlurCapture": PropTypes.func,
|
|
395
|
+
"onCanPlay": PropTypes.func,
|
|
396
|
+
"onCanPlayCapture": PropTypes.func,
|
|
397
|
+
"onCanPlayThrough": PropTypes.func,
|
|
398
|
+
"onCanPlayThroughCapture": PropTypes.func,
|
|
399
|
+
"onChange": PropTypes.func,
|
|
400
|
+
"onChangeCapture": PropTypes.func,
|
|
401
|
+
"onClick": PropTypes.func,
|
|
402
|
+
"onClickCapture": PropTypes.func,
|
|
403
|
+
"onCompositionEnd": PropTypes.func,
|
|
404
|
+
"onCompositionEndCapture": PropTypes.func,
|
|
405
|
+
"onCompositionStart": PropTypes.func,
|
|
406
|
+
"onCompositionStartCapture": PropTypes.func,
|
|
407
|
+
"onCompositionUpdate": PropTypes.func,
|
|
408
|
+
"onCompositionUpdateCapture": PropTypes.func,
|
|
409
|
+
"onContextMenu": PropTypes.func,
|
|
410
|
+
"onContextMenuCapture": PropTypes.func,
|
|
411
|
+
"onCopy": PropTypes.func,
|
|
412
|
+
"onCopyCapture": PropTypes.func,
|
|
413
|
+
"onCut": PropTypes.func,
|
|
414
|
+
"onCutCapture": PropTypes.func,
|
|
415
|
+
"onDoubleClick": PropTypes.func,
|
|
416
|
+
"onDoubleClickCapture": PropTypes.func,
|
|
417
|
+
"onDrag": PropTypes.func,
|
|
418
|
+
"onDragCapture": PropTypes.func,
|
|
419
|
+
"onDragEnd": PropTypes.func,
|
|
420
|
+
"onDragEndCapture": PropTypes.func,
|
|
421
|
+
"onDragEnter": PropTypes.func,
|
|
422
|
+
"onDragEnterCapture": PropTypes.func,
|
|
423
|
+
"onDragExit": PropTypes.func,
|
|
424
|
+
"onDragExitCapture": PropTypes.func,
|
|
425
|
+
"onDragLeave": PropTypes.func,
|
|
426
|
+
"onDragLeaveCapture": PropTypes.func,
|
|
427
|
+
"onDragOver": PropTypes.func,
|
|
428
|
+
"onDragOverCapture": PropTypes.func,
|
|
429
|
+
"onDragStart": PropTypes.func,
|
|
430
|
+
"onDragStartCapture": PropTypes.func,
|
|
431
|
+
"onDrop": PropTypes.func,
|
|
432
|
+
"onDropCapture": PropTypes.func,
|
|
433
|
+
"onDurationChange": PropTypes.func,
|
|
434
|
+
"onDurationChangeCapture": PropTypes.func,
|
|
435
|
+
"onEmptied": PropTypes.func,
|
|
436
|
+
"onEmptiedCapture": PropTypes.func,
|
|
437
|
+
"onEncrypted": PropTypes.func,
|
|
438
|
+
"onEncryptedCapture": PropTypes.func,
|
|
439
|
+
"onEnded": PropTypes.func,
|
|
440
|
+
"onEndedCapture": PropTypes.func,
|
|
441
|
+
"onError": PropTypes.func,
|
|
442
|
+
"onErrorCapture": PropTypes.func,
|
|
443
|
+
"onFocus": PropTypes.func,
|
|
444
|
+
"onFocusCapture": PropTypes.func,
|
|
445
|
+
"onGotPointerCapture": PropTypes.func,
|
|
446
|
+
"onGotPointerCaptureCapture": PropTypes.func,
|
|
447
|
+
"onInput": PropTypes.func,
|
|
448
|
+
"onInputCapture": PropTypes.func,
|
|
449
|
+
"onInvalid": PropTypes.func,
|
|
450
|
+
"onInvalidCapture": PropTypes.func,
|
|
451
|
+
"onKeyDown": PropTypes.func,
|
|
452
|
+
"onKeyDownCapture": PropTypes.func,
|
|
453
|
+
"onKeyPress": PropTypes.func,
|
|
454
|
+
"onKeyPressCapture": PropTypes.func,
|
|
455
|
+
"onKeyUp": PropTypes.func,
|
|
456
|
+
"onKeyUpCapture": PropTypes.func,
|
|
457
|
+
"onLoad": PropTypes.func,
|
|
458
|
+
"onLoadCapture": PropTypes.func,
|
|
459
|
+
"onLoadedData": PropTypes.func,
|
|
460
|
+
"onLoadedDataCapture": PropTypes.func,
|
|
461
|
+
"onLoadedMetadata": PropTypes.func,
|
|
462
|
+
"onLoadedMetadataCapture": PropTypes.func,
|
|
463
|
+
"onLoadStart": PropTypes.func,
|
|
464
|
+
"onLoadStartCapture": PropTypes.func,
|
|
465
|
+
"onLostPointerCapture": PropTypes.func,
|
|
466
|
+
"onLostPointerCaptureCapture": PropTypes.func,
|
|
467
|
+
"onMouseDown": PropTypes.func,
|
|
468
|
+
"onMouseDownCapture": PropTypes.func,
|
|
469
|
+
"onMouseEnter": PropTypes.func,
|
|
470
|
+
"onMouseLeave": PropTypes.func,
|
|
471
|
+
"onMouseMove": PropTypes.func,
|
|
472
|
+
"onMouseMoveCapture": PropTypes.func,
|
|
473
|
+
"onMouseOut": PropTypes.func,
|
|
474
|
+
"onMouseOutCapture": PropTypes.func,
|
|
475
|
+
"onMouseOver": PropTypes.func,
|
|
476
|
+
"onMouseOverCapture": PropTypes.func,
|
|
477
|
+
"onMouseUp": PropTypes.func,
|
|
478
|
+
"onMouseUpCapture": PropTypes.func,
|
|
479
|
+
"onPaste": PropTypes.func,
|
|
480
|
+
"onPasteCapture": PropTypes.func,
|
|
481
|
+
"onPause": PropTypes.func,
|
|
482
|
+
"onPauseCapture": PropTypes.func,
|
|
483
|
+
"onPlay": PropTypes.func,
|
|
484
|
+
"onPlayCapture": PropTypes.func,
|
|
485
|
+
"onPlaying": PropTypes.func,
|
|
486
|
+
"onPlayingCapture": PropTypes.func,
|
|
487
|
+
"onPointerCancel": PropTypes.func,
|
|
488
|
+
"onPointerCancelCapture": PropTypes.func,
|
|
489
|
+
"onPointerDown": PropTypes.func,
|
|
490
|
+
"onPointerDownCapture": PropTypes.func,
|
|
491
|
+
"onPointerEnter": PropTypes.func,
|
|
492
|
+
"onPointerEnterCapture": PropTypes.func,
|
|
493
|
+
"onPointerLeave": PropTypes.func,
|
|
494
|
+
"onPointerLeaveCapture": PropTypes.func,
|
|
495
|
+
"onPointerMove": PropTypes.func,
|
|
496
|
+
"onPointerMoveCapture": PropTypes.func,
|
|
497
|
+
"onPointerOut": PropTypes.func,
|
|
498
|
+
"onPointerOutCapture": PropTypes.func,
|
|
499
|
+
"onPointerOver": PropTypes.func,
|
|
500
|
+
"onPointerOverCapture": PropTypes.func,
|
|
501
|
+
"onPointerUp": PropTypes.func,
|
|
502
|
+
"onPointerUpCapture": PropTypes.func,
|
|
503
|
+
"onProgress": PropTypes.func,
|
|
504
|
+
"onProgressCapture": PropTypes.func,
|
|
505
|
+
"onRateChange": PropTypes.func,
|
|
506
|
+
"onRateChangeCapture": PropTypes.func,
|
|
507
|
+
"onReset": PropTypes.func,
|
|
508
|
+
"onResetCapture": PropTypes.func,
|
|
509
|
+
"onScroll": PropTypes.func,
|
|
510
|
+
"onScrollCapture": PropTypes.func,
|
|
511
|
+
"onSeeked": PropTypes.func,
|
|
512
|
+
"onSeekedCapture": PropTypes.func,
|
|
513
|
+
"onSeeking": PropTypes.func,
|
|
514
|
+
"onSeekingCapture": PropTypes.func,
|
|
515
|
+
"onSelect": PropTypes.func,
|
|
516
|
+
"onSelectCapture": PropTypes.func,
|
|
517
|
+
"onStalled": PropTypes.func,
|
|
518
|
+
"onStalledCapture": PropTypes.func,
|
|
519
|
+
"onSubmit": PropTypes.func,
|
|
520
|
+
"onSubmitCapture": PropTypes.func,
|
|
521
|
+
"onSuspend": PropTypes.func,
|
|
522
|
+
"onSuspendCapture": PropTypes.func,
|
|
523
|
+
"onTimeUpdate": PropTypes.func,
|
|
524
|
+
"onTimeUpdateCapture": PropTypes.func,
|
|
525
|
+
"onTouchCancel": PropTypes.func,
|
|
526
|
+
"onTouchCancelCapture": PropTypes.func,
|
|
527
|
+
"onTouchEnd": PropTypes.func,
|
|
528
|
+
"onTouchEndCapture": PropTypes.func,
|
|
529
|
+
"onTouchMove": PropTypes.func,
|
|
530
|
+
"onTouchMoveCapture": PropTypes.func,
|
|
531
|
+
"onTouchStart": PropTypes.func,
|
|
532
|
+
"onTouchStartCapture": PropTypes.func,
|
|
533
|
+
"onTransitionEnd": PropTypes.func,
|
|
534
|
+
"onTransitionEndCapture": PropTypes.func,
|
|
535
|
+
"onVolumeChange": PropTypes.func,
|
|
536
|
+
"onVolumeChangeCapture": PropTypes.func,
|
|
537
|
+
"onWaiting": PropTypes.func,
|
|
538
|
+
"onWaitingCapture": PropTypes.func,
|
|
539
|
+
"onWheel": PropTypes.func,
|
|
540
|
+
"onWheelCapture": PropTypes.func,
|
|
541
|
+
"pattern": PropTypes.string,
|
|
542
|
+
"placeholder": PropTypes.string,
|
|
543
|
+
"prefix": PropTypes.string,
|
|
544
|
+
"property": PropTypes.string,
|
|
545
|
+
"radioGroup": PropTypes.string,
|
|
546
|
+
"readOnly": PropTypes.bool,
|
|
547
|
+
"required": PropTypes.bool,
|
|
548
|
+
"resource": PropTypes.string,
|
|
549
|
+
"results": PropTypes.number,
|
|
550
|
+
"reverse": PropTypes.bool,
|
|
551
|
+
"role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
|
|
552
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
553
|
+
"anchor": PropTypes.func.isRequired,
|
|
554
|
+
"at": PropTypes.func.isRequired,
|
|
555
|
+
"big": PropTypes.func.isRequired,
|
|
556
|
+
"blink": PropTypes.func.isRequired,
|
|
557
|
+
"bold": PropTypes.func.isRequired,
|
|
558
|
+
"charAt": PropTypes.func.isRequired,
|
|
559
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
560
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
561
|
+
"concat": PropTypes.func.isRequired,
|
|
562
|
+
"endsWith": PropTypes.func.isRequired,
|
|
563
|
+
"fixed": PropTypes.func.isRequired,
|
|
564
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
565
|
+
"fontsize": PropTypes.func.isRequired,
|
|
566
|
+
"includes": PropTypes.func.isRequired,
|
|
567
|
+
"indexOf": PropTypes.func.isRequired,
|
|
568
|
+
"italics": PropTypes.func.isRequired,
|
|
569
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
570
|
+
"length": PropTypes.number.isRequired,
|
|
571
|
+
"link": PropTypes.func.isRequired,
|
|
572
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
573
|
+
"match": PropTypes.func.isRequired,
|
|
574
|
+
"matchAll": PropTypes.func.isRequired,
|
|
575
|
+
"normalize": PropTypes.func.isRequired,
|
|
576
|
+
"padEnd": PropTypes.func.isRequired,
|
|
577
|
+
"padStart": PropTypes.func.isRequired,
|
|
578
|
+
"repeat": PropTypes.func.isRequired,
|
|
579
|
+
"replace": PropTypes.func.isRequired,
|
|
580
|
+
"search": PropTypes.func.isRequired,
|
|
581
|
+
"slice": PropTypes.func.isRequired,
|
|
582
|
+
"small": PropTypes.func.isRequired,
|
|
583
|
+
"split": PropTypes.func.isRequired,
|
|
584
|
+
"startsWith": PropTypes.func.isRequired,
|
|
585
|
+
"strike": PropTypes.func.isRequired,
|
|
586
|
+
"sub": PropTypes.func.isRequired,
|
|
587
|
+
"substr": PropTypes.func.isRequired,
|
|
588
|
+
"substring": PropTypes.func.isRequired,
|
|
589
|
+
"sup": PropTypes.func.isRequired,
|
|
590
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
591
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
592
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
593
|
+
"toString": PropTypes.func.isRequired,
|
|
594
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
595
|
+
"trim": PropTypes.func.isRequired,
|
|
596
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
597
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
598
|
+
"trimRight": PropTypes.func.isRequired,
|
|
599
|
+
"trimStart": PropTypes.func.isRequired,
|
|
600
|
+
"valueOf": PropTypes.func.isRequired
|
|
601
|
+
})]),
|
|
602
|
+
"security": PropTypes.string,
|
|
603
|
+
"size": PropTypes.oneOf(["large", "small"]),
|
|
604
|
+
"slot": PropTypes.string,
|
|
605
|
+
"spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
606
|
+
"src": PropTypes.string,
|
|
607
|
+
"step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
608
|
+
"style": PropTypes.object,
|
|
609
|
+
"suppressContentEditableWarning": PropTypes.bool,
|
|
610
|
+
"suppressHydrationWarning": PropTypes.bool,
|
|
611
|
+
"tabIndex": PropTypes.number,
|
|
612
|
+
"title": PropTypes.string,
|
|
613
|
+
"tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
|
|
614
|
+
"translate": PropTypes.oneOf(["no", "yes"]),
|
|
615
|
+
"typeof": PropTypes.string,
|
|
616
|
+
"unselectable": PropTypes.oneOf(["off", "on"]),
|
|
617
|
+
"validationOnLabel": PropTypes.bool,
|
|
618
|
+
"value": PropTypes.string,
|
|
619
|
+
"vocab": PropTypes.string,
|
|
620
|
+
"warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
621
|
+
"width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
225
622
|
};
|
|
226
|
-
Switch
|
|
227
|
-
labelInline: false,
|
|
228
|
-
reverse: true,
|
|
229
|
-
validationOnLabel: false,
|
|
230
|
-
"data-component": "switch"
|
|
231
|
-
};
|
|
232
|
-
export { Switch as BaseSwitch };
|
|
623
|
+
export { Switch };
|
|
233
624
|
export default Switch;
|