carbon-react 102.10.1 → 102.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__internal__/DeprecationWarning.d.ts +10 -0
- package/lib/__internal__/character-count/character-count.component.d.ts +26 -0
- package/lib/__internal__/character-count/character-count.style.d.ts +2 -0
- package/lib/__internal__/character-count/index.d.ts +1 -0
- package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.d.ts +2 -0
- package/lib/__internal__/checkable-input/checkable-input.component.d.ts +75 -0
- package/lib/__internal__/checkable-input/checkable-input.style.d.ts +2 -0
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.d.ts +41 -0
- package/lib/__internal__/checkable-input/hidden-checkable-input.style.d.ts +2 -0
- package/lib/__internal__/date/index.d.ts +1 -0
- package/lib/__internal__/field-help/field-help.component.d.ts +15 -0
- package/lib/__internal__/field-help/field-help.style.d.ts +2 -0
- package/lib/__internal__/fieldset/fieldset.component.d.ts +35 -0
- package/lib/__internal__/fieldset/fieldset.style.d.ts +3 -0
- package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -0
- package/lib/__internal__/filter-object-properties/index.d.ts +1 -0
- package/lib/__internal__/focus-trap/focus-trap-utils.d.ts +4 -0
- package/lib/__internal__/focus-trap/focus-trap.component.d.ts +22 -0
- package/lib/__internal__/focus-trap/index.d.ts +1 -0
- package/lib/__internal__/form-field/form-field.component.d.ts +63 -0
- package/lib/__internal__/form-field/form-field.style.d.ts +3 -0
- package/lib/__internal__/full-screen-heading/full-screen-heading.component.d.ts +3 -0
- package/lib/__internal__/full-screen-heading/full-screen-heading.style.d.ts +3 -0
- package/lib/__internal__/full-screen-heading/index.d.ts +1 -0
- package/lib/__internal__/i18n-context/index.d.ts +2 -0
- package/lib/__internal__/input/extract-props/extract-props.d.ts +1 -0
- package/lib/__internal__/input/extract-props/index.d.ts +1 -0
- package/lib/__internal__/input/input-presentation.component.d.ts +28 -0
- package/lib/__internal__/input/input-presentation.style.d.ts +9 -0
- package/lib/__internal__/input/input-sizes.style.d.ts +34 -0
- package/lib/__internal__/input/input.component.d.ts +3 -0
- package/lib/__internal__/input/input.style.d.ts +2 -0
- package/lib/__internal__/input-behaviour/index.d.ts +2 -0
- package/lib/__internal__/input-behaviour/input-behaviour.component.d.ts +11 -0
- package/lib/__internal__/input-behaviour/input-group-behaviour.component.d.ts +13 -0
- package/lib/__internal__/input-behaviour/useInputBehaviour.d.ts +11 -0
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.component.d.ts +38 -0
- package/lib/__internal__/input-icon-toggle/input-icon-toggle.style.d.ts +5 -0
- package/lib/__internal__/label/icon-wrapper.style.d.ts +2 -0
- package/lib/__internal__/label/label.component.d.ts +66 -0
- package/lib/__internal__/label/label.style.d.ts +3 -0
- package/lib/__internal__/popover/index.d.ts +1 -0
- package/lib/__internal__/popover/popover.component.d.ts +22 -0
- package/lib/__internal__/sticky-footer/index.d.ts +1 -0
- package/lib/__internal__/sticky-footer/sticky-footer.component.d.ts +15 -0
- package/lib/__internal__/sticky-footer/sticky-footer.style.d.ts +2 -0
- package/lib/__internal__/utils/ether/ether.d.ts +19 -0
- package/lib/__internal__/utils/ether/index.d.ts +1 -0
- package/lib/__internal__/utils/helpers/browser/browser.d.ts +17 -0
- package/lib/__internal__/utils/helpers/browser/index.d.ts +1 -0
- package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +7 -0
- package/lib/__internal__/utils/helpers/browser-type-check/index.d.ts +1 -0
- package/lib/__internal__/utils/helpers/events/composedPath.d.ts +2 -0
- package/lib/__internal__/utils/helpers/events/events.d.ts +32 -0
- package/lib/__internal__/utils/helpers/events/index.d.ts +1 -0
- package/lib/__internal__/utils/helpers/guid/__spec__.d.ts +1 -0
- package/lib/__internal__/utils/helpers/guid/guid.d.ts +2 -0
- package/lib/__internal__/utils/helpers/immutable/__spec__.d.ts +1 -0
- package/lib/__internal__/utils/helpers/immutable/immutable.d.ts +4 -0
- package/lib/__internal__/utils/helpers/tags/index.d.ts +1 -0
- package/lib/__internal__/utils/helpers/tags/tags-specs/index.d.ts +1 -0
- package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +2 -0
- package/lib/__internal__/utils/helpers/tags/tags.d.ts +9 -0
- package/lib/__internal__/utils/helpers/with-unique-id-props/index.d.ts +1 -0
- package/lib/__internal__/utils/logger/index.d.ts +1 -0
- package/lib/__internal__/utils/logger/logger.d.ts +9 -0
- package/lib/__internal__/validations/validation-icon.component.d.ts +41 -0
- package/lib/__internal__/validations/validation-icon.style.d.ts +2 -0
- package/lib/__spec_helper__/enzyme-snapshot-helper.d.ts +2 -0
- package/lib/__spec_helper__/expect.d.ts +1 -0
- package/lib/__spec_helper__/index.d.ts +1 -0
- package/lib/__spec_helper__/mock-date-helper.d.ts +1 -0
- package/lib/__spec_helper__/mock-resize-observer.d.ts +2 -0
- package/lib/__spec_helper__/test-utils.d.ts +33 -0
- package/lib/components/accordion/accordion-group/accordion-group.component.d.ts +10 -0
- package/lib/components/accordion/accordion.component.d.ts +3 -0
- package/lib/components/accordion/accordion.style.d.ts +10 -0
- package/lib/components/action-popover/action-popover-context.d.ts +3 -0
- package/lib/components/action-popover/action-popover-divider/action-popover-divider.component.d.ts +2 -0
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.d.ts +42 -0
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +3 -0
- package/lib/components/action-popover/action-popover-menu-button/action-popover-menu-button.component.d.ts +19 -0
- package/lib/components/action-popover/action-popover.component.d.ts +38 -0
- package/lib/components/action-popover/action-popover.style.d.ts +31 -0
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.d.ts +4 -0
- package/lib/components/advanced-color-picker/advanced-color-picker.component.d.ts +55 -0
- package/lib/components/advanced-color-picker/advanced-color-picker.style.d.ts +53 -0
- package/lib/components/alert/alert.component.d.ts +50 -0
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.d.ts +3 -0
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.d.ts +2 -0
- package/lib/components/anchor-navigation/anchor-navigation.component.d.ts +12 -0
- package/lib/components/anchor-navigation/anchor-navigation.style.d.ts +3 -0
- package/lib/components/anchor-navigation/anchor-section-divider/anchor-section-divider.style.d.ts +4 -0
- package/lib/components/app-wrapper/app-wrapper.component.d.ts +21 -0
- package/lib/components/app-wrapper/app-wrapper.style.d.ts +2 -0
- package/lib/components/badge/badge.component.d.ts +14 -0
- package/lib/components/badge/badge.style.d.ts +6 -0
- package/lib/components/batch-selection/batch-selection.component.d.ts +22 -0
- package/lib/components/batch-selection/batch-selection.style.d.ts +2 -0
- package/lib/components/box/box.component.d.ts +7 -0
- package/lib/components/button/button-types.style.d.ts +9 -0
- package/lib/components/button/button.component.d.ts +17 -0
- package/lib/components/button/button.config.d.ts +3 -0
- package/lib/components/button/button.style.d.ts +9 -0
- package/lib/components/button-bar/button-bar.component.d.ts +16 -0
- package/lib/components/button-bar/button-bar.config.d.ts +2 -0
- package/lib/components/button-bar/button-bar.style.d.ts +5 -0
- package/lib/components/button-toggle/button-toggle-icon.component.d.ts +9 -0
- package/lib/components/button-toggle/button-toggle-input.component.d.ts +3 -0
- package/lib/components/button-toggle/button-toggle.component.d.ts +48 -0
- package/lib/components/button-toggle/button-toggle.style.d.ts +5 -0
- package/lib/components/button-toggle-group/__definition__.d.ts +2 -0
- package/lib/components/button-toggle-group/__definition__.js +50 -0
- package/lib/components/button-toggle-group/button-toggle-group.component.d.ts +86 -0
- package/lib/components/button-toggle-group/button-toggle-group.style.d.ts +2 -0
- package/lib/components/button-toggle-group/documentation/index.d.ts +1 -0
- package/lib/components/carbon-provider/carbon-provider.component.d.ts +12 -0
- package/lib/components/card/card-column/card-column.component.d.ts +17 -0
- package/lib/components/card/card-column/card-column.style.d.ts +2 -0
- package/lib/components/card/card-footer/card-footer.component.d.ts +9 -0
- package/lib/components/card/card-footer/card-footer.style.d.ts +2 -0
- package/lib/components/card/card-row/card-row.component.d.ts +13 -0
- package/lib/components/card/card-row/card-row.style.d.ts +2 -0
- package/lib/components/card/card.component.d.ts +27 -0
- package/lib/components/card/card.config.d.ts +2 -0
- package/lib/components/card/card.style.d.ts +2 -0
- package/lib/components/carousel/carousel.component.d.ts +36 -0
- package/lib/components/carousel/carousel.style.d.ts +16 -0
- package/lib/components/carousel/slide/slide.component.d.ts +8 -0
- package/lib/components/carousel/slide/slide.style.d.ts +1 -0
- package/lib/components/carousel/slide.config.d.ts +2 -0
- package/lib/components/checkbox/checkbox-group.component.d.ts +20 -0
- package/lib/components/checkbox/checkbox-svg.component.d.ts +2 -0
- package/lib/components/checkbox/checkbox.component.d.ts +109 -0
- package/lib/components/checkbox/checkbox.style.d.ts +3 -0
- package/lib/components/checkbox/checkbox.style.js +5 -1
- package/lib/components/confirm/confirm.component.d.ts +117 -0
- package/lib/components/confirm/confirm.config.d.ts +1 -0
- package/lib/components/confirm/confirm.style.d.ts +2 -0
- package/lib/components/content/content.component.d.ts +23 -0
- package/lib/components/content/content.style.d.ts +3 -0
- package/lib/components/date/date-picker.component.d.ts +22 -0
- package/lib/components/date/date.component.d.ts +57 -0
- package/lib/components/date/date.style.d.ts +2 -0
- package/lib/components/date/day-picker.style.d.ts +2 -0
- package/lib/components/date/navbar/button.style.d.ts +4 -0
- package/lib/components/date/navbar/index.d.ts +1 -0
- package/lib/components/date/navbar/navbar.component.d.ts +13 -0
- package/lib/components/date/navbar/navbar.style.d.ts +2 -0
- package/lib/components/date/weekday/abbr.style.d.ts +2 -0
- package/lib/components/date/weekday/index.d.ts +1 -0
- package/lib/components/date/weekday/weekday.component.d.ts +15 -0
- package/lib/components/date/weekday/weekday.style.d.ts +2 -0
- package/lib/components/date-range/date-range.component.d.ts +39 -0
- package/lib/components/date-range/date-range.style.d.ts +2 -0
- package/lib/components/decimal/decimal.component.d.ts +81 -0
- package/lib/components/definition-list/__internal__/dl.context.d.ts +3 -0
- package/lib/components/definition-list/dd.component.d.ts +8 -0
- package/lib/components/definition-list/definition-list.style.d.ts +5 -0
- package/lib/components/definition-list/dl.component.d.ts +12 -0
- package/lib/components/definition-list/dt.component.d.ts +8 -0
- package/lib/components/detail/detail.component.d.ts +17 -0
- package/lib/components/detail/detail.style.d.ts +5 -0
- package/lib/components/dialog/dialog.component.d.ts +81 -0
- package/lib/components/dialog/dialog.config.d.ts +2 -0
- package/lib/components/dialog/dialog.style.d.ts +4 -0
- package/lib/components/dialog-full-screen/content.style.d.ts +2 -0
- package/lib/components/dialog-full-screen/dialog-full-screen.component.d.ts +78 -0
- package/lib/components/dialog-full-screen/dialog-full-screen.style.d.ts +2 -0
- package/lib/components/dismissible-box/dismissible-box.component.d.ts +11 -0
- package/lib/components/dismissible-box/dismissible-box.style.d.ts +3 -0
- package/lib/components/draggable/draggable-container.component.d.ts +13 -0
- package/lib/components/draggable/draggable-item.component.d.ts +19 -0
- package/lib/components/draggable/draggable-item.style.d.ts +4 -0
- package/lib/components/drawer/drawer.component.d.ts +39 -0
- package/lib/components/drawer/drawer.style.d.ts +10 -0
- package/lib/components/duelling-picklist/duelling-picklist.component.d.ts +21 -0
- package/lib/components/duelling-picklist/duelling-picklist.context.d.ts +3 -0
- package/lib/components/duelling-picklist/duelling-picklist.style.d.ts +7 -0
- package/lib/components/duelling-picklist/picklist/picklist.component.d.ts +18 -0
- package/lib/components/duelling-picklist/picklist/picklist.style.d.ts +5 -0
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.component.d.ts +2 -0
- package/lib/components/duelling-picklist/picklist-divider/picklist-divider.style.d.ts +2 -0
- package/lib/components/duelling-picklist/picklist-group/picklist-group.component.d.ts +3 -0
- package/lib/components/duelling-picklist/picklist-group/picklist-group.style.d.ts +5 -0
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.d.ts +3 -0
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.d.ts +5 -0
- package/lib/components/duelling-picklist/picklist-placeholder/picklist-placeholder.component.d.ts +10 -0
- package/lib/components/fieldset/fieldset.component.d.ts +14 -0
- package/lib/components/fieldset/fieldset.style.d.ts +3 -0
- package/lib/components/flat-table/cell-sizes.style.d.ts +40 -0
- package/lib/components/flat-table/flat-table-body/flat-table-body.component.d.ts +3 -0
- package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.d.ts +12 -0
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.component.d.ts +38 -0
- package/lib/components/flat-table/flat-table-cell/flat-table-cell.style.d.ts +2 -0
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.component.d.ts +26 -0
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.d.ts +2 -0
- package/lib/components/flat-table/flat-table-head/flat-table-head.component.d.ts +10 -0
- package/lib/components/flat-table/flat-table-head/flat-table-head.style.d.ts +2 -0
- package/lib/components/flat-table/flat-table-header/flat-table-header.component.d.ts +33 -0
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.d.ts +2 -0
- package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.d.ts +22 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.component.d.ts +3 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.d.ts +2 -0
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.component.d.ts +30 -0
- package/lib/components/flat-table/flat-table-row-header/flat-table-row-header.style.d.ts +2 -0
- package/lib/components/flat-table/flat-table.component.d.ts +43 -0
- package/lib/components/flat-table/flat-table.config.d.ts +2 -0
- package/lib/components/flat-table/flat-table.style.d.ts +4 -0
- package/lib/components/flat-table/sort/sort.component.d.ts +14 -0
- package/lib/components/flat-table/sort/sort.style.d.ts +2 -0
- package/lib/components/form/__internal__/form-summary.component.d.ts +10 -0
- package/lib/components/form/__internal__/form-summary.style.d.ts +3 -0
- package/lib/components/form/form.component.d.ts +20 -0
- package/lib/components/form/form.config.d.ts +1 -0
- package/lib/components/form/form.style.d.ts +5 -0
- package/lib/components/grid/grid-container/grid-container.component.d.ts +5 -0
- package/lib/components/grid/grid-container/grid-container.style.d.ts +2 -0
- package/lib/components/grid/grid-item/grid-item.component.d.ts +25 -0
- package/lib/components/grid/grid-item/grid-item.style.d.ts +2 -0
- package/lib/components/grouped-character/grouped-character.component.d.ts +23 -0
- package/lib/components/grouped-character/grouped-character.utils.d.ts +2 -0
- package/lib/components/heading/heading.component.d.ts +71 -0
- package/lib/components/heading/heading.style.d.ts +16 -0
- package/lib/components/help/help.component.d.ts +45 -0
- package/lib/components/help/help.config.d.ts +1 -0
- package/lib/components/help/help.style.d.ts +2 -0
- package/lib/components/hr/hr.component.d.ts +13 -0
- package/lib/components/hr/hr.style.d.ts +2 -0
- package/lib/components/i18n-provider/i18n-provider.component.d.ts +102 -0
- package/lib/components/icon/icon-config.d.ts +26 -0
- package/lib/components/icon/icon-unicodes.d.ts +247 -0
- package/lib/components/icon/icon.component.d.ts +3 -0
- package/lib/components/icon/icon.style.d.ts +2 -0
- package/lib/components/icon-button/icon-button.component.d.ts +3 -0
- package/lib/components/icon-button/icon-button.style.d.ts +4 -0
- package/lib/components/image/image.component.d.ts +2 -0
- package/lib/components/inline-inputs/inline-inputs.component.d.ts +22 -0
- package/lib/components/inline-inputs/inline-inputs.config.d.ts +1 -0
- package/lib/components/inline-inputs/inline-inputs.style.d.ts +4 -0
- package/lib/components/link/link.component.d.ts +3 -0
- package/lib/components/link/link.config.d.ts +2 -0
- package/lib/components/link/link.style.d.ts +2 -0
- package/lib/components/link-preview/__internal__/placeholder.component.d.ts +2 -0
- package/lib/components/link-preview/link-preview.component.d.ts +29 -0
- package/lib/components/link-preview/link-preview.style.d.ts +6 -0
- package/lib/components/loader/loader-square.style.d.ts +2 -0
- package/lib/components/loader/loader.component.d.ts +23 -0
- package/lib/components/loader/loader.config.d.ts +1 -0
- package/lib/components/loader/loader.style.d.ts +2 -0
- package/lib/components/loader-bar/loader-bar.component.d.ts +11 -0
- package/lib/components/loader-bar/loader-bar.config.d.ts +1 -0
- package/lib/components/loader-bar/loader-bar.style.d.ts +4 -0
- package/lib/components/menu/__internal__/keyboard-navigation/index.d.ts +2 -0
- package/lib/components/menu/__internal__/spec-helper/index.d.ts +2 -0
- package/lib/components/menu/__internal__/submenu/submenu.component.d.ts +3 -0
- package/lib/components/menu/__internal__/submenu/submenu.context.d.ts +3 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.d.ts +2 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.js +8 -40
- package/lib/components/menu/menu-divider/menu-divider.component.d.ts +3 -0
- package/lib/components/menu/menu-divider/menu-divider.style.d.ts +2 -0
- package/lib/components/menu/menu-divider/menu-divider.style.js +1 -1
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.d.ts +17 -0
- package/lib/components/menu/menu-full-screen/menu-full-screen.component.js +14 -2
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.d.ts +2 -0
- package/lib/components/menu/menu-full-screen/menu-full-screen.style.js +2 -10
- package/lib/components/menu/menu-item/menu-item.component.d.ts +24 -0
- package/lib/components/menu/menu-item/menu-item.style.d.ts +2 -0
- package/lib/components/menu/menu-item/menu-item.style.js +26 -92
- package/lib/components/menu/menu-segment-title/menu-segment-title.component.d.ts +3 -0
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.d.ts +2 -0
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +2 -10
- package/lib/components/menu/menu.component.d.ts +11 -0
- package/lib/components/menu/menu.component.js +1 -1
- package/lib/components/menu/menu.context.d.ts +5 -0
- package/lib/components/menu/menu.context.js +3 -1
- package/lib/components/menu/menu.d.ts +3 -2
- package/lib/components/menu/menu.style.d.ts +2 -0
- package/lib/components/menu/menu.style.js +1 -2
- package/lib/components/menu/scrollable-block/scrollable-block.component.d.ts +15 -0
- package/lib/components/menu/scrollable-block/scrollable-block.component.js +7 -1
- package/lib/components/menu/scrollable-block/scrollable-block.style.d.ts +2 -0
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +1 -7
- package/lib/components/menu/submenu-block/submenu-block.component.d.ts +12 -0
- package/lib/components/menu/submenu-block/submenu-block.style.d.ts +2 -0
- package/lib/components/menu/submenu-block/submenu-block.style.js +4 -6
- package/lib/components/message/message-content/message-content.component.d.ts +22 -0
- package/lib/components/message/message-content/message-content.style.d.ts +2 -0
- package/lib/components/message/message.component.d.ts +29 -0
- package/lib/components/message/message.style.d.ts +2 -0
- package/lib/components/message/type-icon/type-icon.component.d.ts +18 -0
- package/lib/components/message/type-icon/type-icon.style.d.ts +2 -0
- package/lib/components/modal/__internal__/modal-manager.d.ts +9 -0
- package/lib/components/modal/modal.component.d.ts +35 -0
- package/lib/components/modal/modal.style.d.ts +2 -0
- package/lib/components/mount-in-app/__spec__.d.ts +1 -0
- package/lib/components/multi-action-button/multi-action-button.component.d.ts +37 -0
- package/lib/components/multi-action-button/multi-action-button.config.d.ts +3 -0
- package/lib/components/multi-action-button/multi-action-button.style.d.ts +2 -0
- package/lib/components/multi-step-wizard/__spec__.d.ts +1 -0
- package/lib/components/multi-step-wizard/multi-step-wizard.d.ts +87 -0
- package/lib/components/multi-step-wizard/multi-step-wizard.style.d.ts +2 -0
- package/lib/components/multi-step-wizard/step/__spec__.d.ts +1 -0
- package/lib/components/multi-step-wizard/step/step.d.ts +160 -0
- package/lib/components/multi-step-wizard/step/step.style.d.ts +11 -0
- package/lib/components/navigation-bar/navigation-bar.component.d.ts +13 -0
- package/lib/components/navigation-bar/navigation-bar.component.js +1 -1
- package/lib/components/navigation-bar/navigation-bar.d.ts +1 -1
- package/lib/components/navigation-bar/navigation-bar.style.d.ts +2 -0
- package/lib/components/navigation-bar/navigation-bar.style.js +15 -2
- package/lib/components/note/__internal__/status-with-tooltip/index.d.ts +1 -0
- package/lib/components/note/__internal__/status-with-tooltip/status.component.d.ts +3 -0
- package/lib/components/note/__internal__/status-with-tooltip/status.style.d.ts +2 -0
- package/lib/components/note/note.component.d.ts +30 -0
- package/lib/components/note/note.style.d.ts +6 -0
- package/lib/components/number/number.component.d.ts +10 -0
- package/lib/components/numeral-date/numeral-date.component.d.ts +111 -0
- package/lib/components/numeral-date/numeral-date.style.d.ts +2 -0
- package/lib/components/pager/__internal__/pager-navigation-link.component.d.ts +20 -0
- package/lib/components/pager/__internal__/pager-navigation.component.d.ts +32 -0
- package/lib/components/pager/pager.component.d.ts +49 -0
- package/lib/components/pager/pager.style.d.ts +11 -0
- package/lib/components/pages/page/page.component.d.ts +13 -0
- package/lib/components/pages/page/page.style.d.ts +2 -0
- package/lib/components/pages/pages.component.d.ts +20 -0
- package/lib/components/pages/pages.config.d.ts +2 -0
- package/lib/components/pages/pages.style.d.ts +2 -0
- package/lib/components/pill/pill.component.d.ts +39 -0
- package/lib/components/pill/pill.style.config.d.ts +27 -0
- package/lib/components/pill/pill.style.d.ts +2 -0
- package/lib/components/pod/pod.component.d.ts +3 -0
- package/lib/components/pod/pod.config.d.ts +3 -0
- package/lib/components/pod/pod.style.d.ts +13 -0
- package/lib/components/popover-container/popover-container.component.d.ts +57 -0
- package/lib/components/popover-container/popover-container.style.d.ts +8 -0
- package/lib/components/portal/portal.style.d.ts +3 -0
- package/lib/components/portrait/portrait-gravatar.component.d.ts +24 -0
- package/lib/components/portrait/portrait-initials.component.d.ts +8 -0
- package/lib/components/portrait/portrait.component.d.ts +55 -0
- package/lib/components/portrait/portrait.config.d.ts +44 -0
- package/lib/components/portrait/portrait.style.d.ts +10 -0
- package/lib/components/preview/preview.component.d.ts +16 -0
- package/lib/components/preview/preview.style.d.ts +3 -0
- package/lib/components/profile/profile.component.d.ts +21 -0
- package/lib/components/profile/profile.config.d.ts +95 -0
- package/lib/components/profile/profile.style.d.ts +6 -0
- package/lib/components/progress-tracker/progress-tracker.component.d.ts +27 -0
- package/lib/components/progress-tracker/progress-tracker.config.d.ts +3 -0
- package/lib/components/progress-tracker/progress-tracker.style.d.ts +5 -0
- package/lib/components/radio-button/radio-button-group.component.d.ts +26 -0
- package/lib/components/radio-button/radio-button-group.style.d.ts +2 -0
- package/lib/components/radio-button/radio-button-mapper.component.d.ts +22 -0
- package/lib/components/radio-button/radio-button-svg.component.d.ts +3 -0
- package/lib/components/radio-button/radio-button.component.d.ts +5 -0
- package/lib/components/radio-button/radio-button.style.d.ts +2 -0
- package/lib/components/row/column/column.component.d.ts +30 -0
- package/lib/components/row/column/column.style.d.ts +2 -0
- package/lib/components/row/row.component.d.ts +24 -0
- package/lib/components/row/row.config.d.ts +11 -0
- package/lib/components/row/row.style.d.ts +2 -0
- package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.d.ts +2 -0
- package/lib/components/scrollable-list/index.d.ts +4 -0
- package/lib/components/scrollable-list/scrollable-list-item.component.d.ts +2 -0
- package/lib/components/scrollable-list/scrollable-list.component.d.ts +44 -0
- package/lib/components/scrollable-list/scrollable-list.context.d.ts +3 -0
- package/lib/components/scrollable-list/scrollable-list.style.d.ts +2 -0
- package/lib/components/scrollable-list/test-utils.d.ts +2 -0
- package/lib/components/search/search.component.d.ts +68 -0
- package/lib/components/search/search.style.d.ts +4 -0
- package/lib/components/select/filterable-select/filterable-select.component.d.ts +3 -0
- package/lib/components/select/list-action-button/list-action-button.component.d.ts +3 -0
- package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
- package/lib/components/select/multi-select/multi-select.component.d.ts +3 -0
- package/lib/components/select/multi-select/multi-select.style.d.ts +2 -0
- package/lib/components/select/option/option.component.d.ts +3 -0
- package/lib/components/select/option/option.style.d.ts +2 -0
- package/lib/components/select/option-group-header/option-group-header.component.d.ts +12 -0
- package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
- package/lib/components/select/option-row/option-row.component.d.ts +3 -0
- package/lib/components/select/option-row/option-row.style.d.ts +2 -0
- package/lib/components/select/select-list/select-list-container.style.d.ts +2 -0
- package/lib/components/select/select-list/select-list.component.d.ts +3 -0
- package/lib/components/select/select-list/select-list.style.d.ts +6 -0
- package/lib/components/select/select-list/update-list-scroll.d.ts +1 -0
- package/lib/components/select/select-textbox/select-textbox.component.d.ts +43 -0
- package/lib/components/select/select.style.d.ts +2 -0
- package/lib/components/select/simple-select/simple-select.component.d.ts +3 -0
- package/lib/components/select/utils/get-next-child-by-text.d.ts +4 -0
- package/lib/components/select/utils/get-next-index-by-key.d.ts +1 -0
- package/lib/components/select/utils/highlight-part-of-text.d.ts +1 -0
- package/lib/components/select/utils/is-expected-option.d.ts +1 -0
- package/lib/components/select/utils/is-expected-value.d.ts +1 -0
- package/lib/components/select/utils/matching-text.style.d.ts +2 -0
- package/lib/components/select/utils/with-filter.hoc.d.ts +4 -0
- package/lib/components/settings-row/settings-row.component.d.ts +19 -0
- package/lib/components/settings-row/settings-row.style.d.ts +3 -0
- package/lib/components/show-edit-pod/delete-button.style.d.ts +3 -0
- package/lib/components/show-edit-pod/show-edit-pod.component.d.ts +52 -0
- package/lib/components/show-edit-pod/show-edit-pod.config.d.ts +2 -0
- package/lib/components/show-edit-pod/show-edit-pod.style.d.ts +3 -0
- package/lib/components/sidebar/__internal__/sidebar-header/__definition__.d.ts +2 -0
- package/lib/components/sidebar/__internal__/sidebar-header/__definition__.js +25 -0
- package/lib/components/sidebar/__internal__/sidebar-header/index.d.ts +1 -0
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.component.d.ts +13 -0
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.d.ts +2 -0
- package/lib/components/sidebar/sidebar.component.d.ts +4 -0
- package/lib/components/sidebar/sidebar.config.d.ts +11 -0
- package/lib/components/sidebar/sidebar.style.d.ts +2 -0
- package/lib/components/simple-color-picker/color-sample-box/color-sample-box.component.d.ts +13 -0
- package/lib/components/simple-color-picker/color-sample-box/color-sample-box.style.d.ts +2 -0
- package/lib/components/simple-color-picker/color-sample-box/index.d.ts +1 -0
- package/lib/components/simple-color-picker/simple-color/index.d.ts +1 -0
- package/lib/components/simple-color-picker/simple-color/simple-color.component.d.ts +3 -0
- package/lib/components/simple-color-picker/simple-color/simple-color.style.d.ts +2 -0
- package/lib/components/simple-color-picker/simple-color-input/simple-color-input.style.d.ts +2 -0
- package/lib/components/simple-color-picker/simple-color-picker.component.d.ts +22 -0
- package/lib/components/simple-color-picker/simple-color-picker.style.d.ts +2 -0
- package/lib/components/simple-color-picker/tick-icon/tick-icon.style.d.ts +3 -0
- package/lib/components/split-button/split-button-children.style.d.ts +2 -0
- package/lib/components/split-button/split-button-toggle.style.d.ts +8 -0
- package/lib/components/split-button/split-button.component.d.ts +41 -0
- package/lib/components/split-button/split-button.config.d.ts +4 -0
- package/lib/components/split-button/split-button.style.d.ts +2 -0
- package/lib/components/step-sequence/step-sequence-item/index.d.ts +1 -0
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item-content.style.d.ts +2 -0
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item-hidden-label.style.d.ts +2 -0
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item-indicator.style.d.ts +2 -0
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.d.ts +17 -0
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.d.ts +2 -0
- package/lib/components/step-sequence/step-sequence.component.d.ts +13 -0
- package/lib/components/step-sequence/step-sequence.config.d.ts +2 -0
- package/lib/components/step-sequence/step-sequence.style.d.ts +2 -0
- package/lib/components/switch/__internal__/switch-slider-panel.style.d.ts +2 -0
- package/lib/components/switch/__internal__/switch-slider.component.d.ts +24 -0
- package/lib/components/switch/__internal__/switch-slider.style.d.ts +2 -0
- package/lib/components/switch/switch.component.d.ts +123 -0
- package/lib/components/switch/switch.style.d.ts +2 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.component.d.ts +3 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.d.ts +4 -0
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +3 -5
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.component.d.ts +24 -0
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +6 -0
- package/lib/components/tabs/tab/tab.component.d.ts +40 -0
- package/lib/components/tabs/tab/tab.style.d.ts +2 -0
- package/lib/components/tabs/tabs.component.d.ts +42 -0
- package/lib/components/tabs/tabs.component.js +1 -10
- package/lib/components/tabs/tabs.style.d.ts +2 -0
- package/lib/components/text-editor/__internal__/decorators/index.d.ts +2 -0
- package/lib/components/text-editor/__internal__/decorators/link-decorator.d.ts +7 -0
- package/lib/components/text-editor/__internal__/editor-counter/editor-counter.component.d.ts +18 -0
- package/lib/components/text-editor/__internal__/editor-counter/editor-counter.style.d.ts +2 -0
- package/lib/components/text-editor/__internal__/editor-link/editor-link.component.d.ts +15 -0
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +3 -0
- package/lib/components/text-editor/__internal__/label-wrapper/label-wrapper.component.d.ts +17 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.d.ts +3 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.d.ts +4 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar.component.d.ts +18 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar.style.d.ts +3 -0
- package/lib/components/text-editor/__internal__/utils/index.d.ts +1 -0
- package/lib/components/text-editor/__internal__/utils/utils.d.ts +27 -0
- package/lib/components/text-editor/text-editor.component.d.ts +6 -0
- package/lib/components/text-editor/text-editor.style.d.ts +3 -0
- package/lib/components/textarea/textarea.component.d.ts +129 -0
- package/lib/components/textarea/textarea.style.d.ts +2 -0
- package/lib/components/textbox/__internal__/prefix.style.d.ts +2 -0
- package/lib/components/textbox/textbox.component.d.ts +193 -0
- package/lib/components/tile/tile-footer/tile-footer.component.d.ts +13 -0
- package/lib/components/tile/tile-footer/tile-footer.style.d.ts +2 -0
- package/lib/components/tile/tile-footer/tile-footer.style.js +3 -4
- package/lib/components/tile/tile.component.d.ts +12 -0
- package/lib/components/tile/tile.config.d.ts +2 -0
- package/lib/components/tile/tile.style.d.ts +2 -0
- package/lib/components/tile/tile.style.js +6 -6
- package/lib/components/tile-select/__internal__/accordion/accordion.component.d.ts +16 -0
- package/lib/components/tile-select/__internal__/accordion/accordion.style.d.ts +2 -0
- package/lib/components/tile-select/__internal__/accordion/index.d.ts +1 -0
- package/lib/components/tile-select/tile-select-group.component.d.ts +19 -0
- package/lib/components/tile-select/tile-select.component.d.ts +60 -0
- package/lib/components/tile-select/tile-select.style.d.ts +15 -0
- package/lib/components/toast/toast.component.d.ts +44 -0
- package/lib/components/toast/toast.config.d.ts +1 -0
- package/lib/components/toast/toast.style.d.ts +7 -0
- package/lib/components/tooltip/tooltip-pointer.style.d.ts +2 -0
- package/lib/components/tooltip/tooltip.component.d.ts +3 -0
- package/lib/components/tooltip/tooltip.config.d.ts +1 -0
- package/lib/components/tooltip/tooltip.style.d.ts +2 -0
- package/lib/components/typography/list.component.d.ts +25 -0
- package/lib/components/typography/typography.component.d.ts +15 -0
- package/lib/components/vertical-divider/vertical-divider.component.d.ts +10 -0
- package/lib/components/vertical-divider/vertical-divider.style.d.ts +2 -0
- package/lib/hooks/__internal__/useCharacterCount/index.d.ts +2 -0
- package/lib/hooks/__internal__/useInputAccessibility/useInputAccessibility.d.ts +15 -0
- package/lib/hooks/__internal__/useLocale/index.d.ts +1 -0
- package/lib/style/__spec__.d.ts +1 -0
- package/lib/style/color-config/index.js +2 -1
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/carbon-scoped-tokens-provider.component.d.ts +6 -0
- package/lib/style/design-tokens/carbon-scoped-tokens-provider/index.d.ts +1 -0
- package/lib/style/design-tokens/debug-theme.util.d.ts +2 -0
- package/lib/style/design-tokens/generate-css-variables.util.d.ts +2 -0
- package/lib/style/themes/aegean/aegean-theme.config.d.ts +23 -0
- package/lib/style/themes/base/base-theme.config.d.ts +657 -0
- package/lib/style/themes/base/base-theme.config.js +37 -1
- package/lib/style/themes/base/index.d.ts +2 -2
- package/lib/style/themes/medium/index.d.ts +2 -0
- package/lib/style/themes/mint/mint-theme.config.d.ts +22 -0
- package/lib/style/themes/none/none-theme.config.d.ts +4 -0
- package/lib/style/themes/sage/index.d.ts +572 -0
- package/lib/style/themes/small/index.d.ts +2 -0
- package/lib/style/themes/test-utils.d.ts +1 -0
- package/lib/style/utils/add-hex-symbols.d.ts +2 -0
- package/lib/style/utils/at-opacity.d.ts +2 -0
- package/lib/style/utils/color.d.ts +8 -0
- package/lib/style/utils/filter-out-styled-system-spacing-props.d.ts +4 -0
- package/lib/style/utils/filter-styled-system-margin-props.d.ts +1 -0
- package/lib/style/utils/filter-styled-system-padding-props.d.ts +1 -0
- package/lib/style/utils/get-rgb-values.d.ts +3 -0
- package/lib/style/utils/index.d.ts +4 -0
- package/lib/style/utils/merge-deep.d.ts +12 -0
- package/lib/style/utils/mix.d.ts +2 -0
- package/lib/style/utils/shade.d.ts +2 -0
- package/lib/style/utils/tint.d.ts +2 -0
- package/lib/style/utils/width.d.ts +4 -0
- package/package.json +19 -8
|
@@ -41,7 +41,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
|
|
|
41
41
|
height: 40px;
|
|
42
42
|
position: relative;
|
|
43
43
|
cursor: pointer;
|
|
44
|
-
background-color: ${theme.menu.
|
|
44
|
+
background-color: ${theme.menu[menuType].background};
|
|
45
45
|
|
|
46
46
|
${!inFullscreenView && (0, _styledComponents.css)`
|
|
47
47
|
max-width: inherit;
|
|
@@ -96,7 +96,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
|
|
|
96
96
|
${_link.StyledLink} [data-component="icon"] {
|
|
97
97
|
font-weight: 700;
|
|
98
98
|
text-decoration: none;
|
|
99
|
-
color: ${theme.
|
|
99
|
+
color: ${theme.menu[menuType].text};
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
a:hover,
|
|
@@ -134,77 +134,19 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
|
|
|
134
134
|
|
|
135
135
|
${variant === "alternate" && (0, _styledComponents.css)`
|
|
136
136
|
&&& {
|
|
137
|
-
background-color: ${theme.menu.
|
|
137
|
+
background-color: ${theme.menu[menuType].alternate};
|
|
138
138
|
}
|
|
139
139
|
`}
|
|
140
140
|
|
|
141
141
|
${selected && (0, _styledComponents.css)`
|
|
142
|
-
background-color: ${theme.menu.
|
|
142
|
+
background-color: ${theme.menu[menuType].selected};
|
|
143
143
|
`}
|
|
144
144
|
|
|
145
|
-
${
|
|
146
|
-
background-color: ${theme.
|
|
145
|
+
${isOpen && (0, _styledComponents.css)`
|
|
146
|
+
background-color: ${theme.menu[menuType].submenuBackground};
|
|
147
147
|
color: ${theme.colors.white};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
a:hover,
|
|
151
|
-
a:focus,
|
|
152
|
-
button,
|
|
153
|
-
button:hover,
|
|
154
|
-
[data-component="icon"],
|
|
155
|
-
${_link.StyledLink} [data-component="icon"] {
|
|
156
|
-
font-weight: 700;
|
|
157
|
-
text-decoration: none;
|
|
158
|
-
color: ${theme.colors.white};
|
|
159
|
-
background-color: transparent;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
${selected && (0, _styledComponents.css)`
|
|
163
|
-
background-color: ${theme.menu.dark.selected};
|
|
164
|
-
`}
|
|
165
|
-
|
|
166
|
-
[data-component='icon'] {
|
|
167
|
-
color: ${theme.colors.white};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
${hasSubmenu && (0, _styledComponents.css)`
|
|
171
|
-
${!href && (0, _styledComponents.css)`
|
|
172
|
-
&& a:hover,
|
|
173
|
-
&& button:hover {
|
|
174
|
-
background-color: ${theme.menu.dark.submenuBackground};
|
|
175
|
-
color: ${theme.colors.white};
|
|
176
|
-
|
|
177
|
-
[data-component="icon"] {
|
|
178
|
-
color: ${theme.colors.white};
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&& a:focus,
|
|
183
|
-
&& button:focus {
|
|
184
|
-
background-color: ${theme.menu.dark.submenuBackground};
|
|
185
|
-
color: ${theme.colors.white};
|
|
186
|
-
|
|
187
|
-
a,
|
|
188
|
-
button,
|
|
189
|
-
[data-component="icon"] {
|
|
190
|
-
color: ${theme.colors.white};
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
`}
|
|
194
|
-
|
|
195
|
-
${isOpen && (0, _styledComponents.css)`
|
|
196
|
-
background-color: ${theme.menu.dark.submenuBackground};
|
|
197
|
-
color: ${theme.colors.white};
|
|
198
|
-
`}
|
|
199
|
-
`}
|
|
200
|
-
|
|
201
|
-
${variant === "alternate" && (0, _styledComponents.css)`
|
|
202
|
-
&&& {
|
|
203
|
-
background-color: ${theme.colors.slate};
|
|
204
|
-
}
|
|
205
|
-
`}
|
|
206
|
-
`}
|
|
207
|
-
|
|
148
|
+
`}
|
|
149
|
+
|
|
208
150
|
${hasSubmenu && (0, _styledComponents.css)`
|
|
209
151
|
a:hover,
|
|
210
152
|
button:hover {
|
|
@@ -213,35 +155,28 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
|
|
|
213
155
|
`}
|
|
214
156
|
}
|
|
215
157
|
|
|
216
|
-
${
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
color: ${theme.colors.black};
|
|
158
|
+
${!href && (0, _styledComponents.css)`
|
|
159
|
+
&& a:hover,
|
|
160
|
+
&& button:hover {
|
|
161
|
+
background-color: ${theme.menu[menuType].submenuBackground};
|
|
162
|
+
color: ${theme.menu[menuType].text};
|
|
222
163
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
164
|
+
[data-component="icon"] {
|
|
165
|
+
color: ${theme.menu[menuType].text};
|
|
226
166
|
}
|
|
167
|
+
}
|
|
227
168
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
169
|
+
&& a:focus,
|
|
170
|
+
&& button:focus {
|
|
171
|
+
background-color: ${theme.menu[menuType].submenuBackground};
|
|
172
|
+
color: ${theme.menu[menuType].text};
|
|
232
173
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
174
|
+
a,
|
|
175
|
+
button,
|
|
176
|
+
[data-component="icon"] {
|
|
177
|
+
color: ${theme.menu[menuType].text};
|
|
238
178
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
${isOpen && (0, _styledComponents.css)`
|
|
242
|
-
background-color: ${theme.colors.white};
|
|
243
|
-
color: ${theme.colors.black};
|
|
244
|
-
`}
|
|
179
|
+
}
|
|
245
180
|
`}
|
|
246
181
|
|
|
247
182
|
${showDropdownArrow && (0, _styledComponents.css)`
|
|
@@ -269,8 +204,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a`
|
|
|
269
204
|
content: "";
|
|
270
205
|
width: 0;
|
|
271
206
|
height: 0;
|
|
272
|
-
border-top: 5px solid
|
|
273
|
-
${menuType !== "dark" ? theme.colors.slate : theme.colors.white};
|
|
207
|
+
border-top: 5px solid ${theme.menu[menuType].text};
|
|
274
208
|
border-right: 4px solid transparent;
|
|
275
209
|
border-bottom: 4px solid transparent;
|
|
276
210
|
border-left: 4px solid transparent;
|
|
@@ -25,16 +25,8 @@ const StyledTitle = _styledComponents.default.div`
|
|
|
25
25
|
text-transform: uppercase;
|
|
26
26
|
line-height: 12px;
|
|
27
27
|
cursor: default;
|
|
28
|
-
|
|
29
|
-
${
|
|
30
|
-
${variant === "alternate" ? `background: ${theme.menu.light.background};` : ""}
|
|
31
|
-
color: ${theme.menu.light.title};
|
|
32
|
-
`}
|
|
33
|
-
|
|
34
|
-
${menuType === "dark" && (0, _styledComponents.css)`
|
|
35
|
-
${variant === "alternate" ? `background: ${theme.colors.slate};` : ""}
|
|
36
|
-
color: ${theme.menu.dark.title};
|
|
37
|
-
`}
|
|
28
|
+
color: ${theme.menu[menuType].title};
|
|
29
|
+
${variant === "alternate" ? `background: ${theme.menu[menuType].alternate};` : ""};
|
|
38
30
|
`}
|
|
39
31
|
`;
|
|
40
32
|
StyledTitle.defaultProps = {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { MenuContext };
|
|
2
|
+
export default Menu;
|
|
3
|
+
import MenuContext from "./menu.context";
|
|
4
|
+
declare function Menu({ menuType, children, ...rest }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
menuType?: string | undefined;
|
|
7
|
+
children: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
declare namespace Menu {
|
|
10
|
+
const propTypes: any;
|
|
11
|
+
}
|
|
@@ -82,7 +82,7 @@ Menu.propTypes = {
|
|
|
82
82
|
..._propTypes2.default.layout,
|
|
83
83
|
|
|
84
84
|
/** Defines the color scheme of the component */
|
|
85
|
-
menuType: _propTypes.default.oneOf(["light", "dark"]),
|
|
85
|
+
menuType: _propTypes.default.oneOf(["light", "dark", "white", "black"]),
|
|
86
86
|
|
|
87
87
|
/** Children elements */
|
|
88
88
|
children: _propTypes.default.node.isRequired
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
var _default = /*#__PURE__*/_react.default.createContext({
|
|
12
|
+
var _default = /*#__PURE__*/_react.default.createContext({
|
|
13
|
+
menuType: "light"
|
|
14
|
+
});
|
|
13
15
|
|
|
14
16
|
exports.default = _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { LayoutProps, FlexBoxProps } from "../../utils/helpers/options-helper";
|
|
3
3
|
|
|
4
|
+
type menuType = "light" | "dark" | "white" | "black";
|
|
4
5
|
interface MenuContextProps {
|
|
5
|
-
menuType:
|
|
6
|
+
menuType: menuType;
|
|
6
7
|
isFirstElement: boolean;
|
|
7
8
|
handleKeyDown: (ev, submenuOpen) => void;
|
|
8
9
|
isFocused: boolean;
|
|
@@ -13,7 +14,7 @@ export interface MenuProps extends LayoutProps, FlexBoxProps {
|
|
|
13
14
|
/** Children elements */
|
|
14
15
|
children: React.ReactNode;
|
|
15
16
|
/** Defines the color scheme of the component */
|
|
16
|
-
menuType?:
|
|
17
|
+
menuType?: menuType;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
declare const MenuContext: React.Context<MenuContextProps>;
|
|
@@ -32,12 +32,11 @@ const StyledMenuWrapper = _styledComponents.default.ul`
|
|
|
32
32
|
menuType,
|
|
33
33
|
theme
|
|
34
34
|
}) => (0, _styledComponents.css)`
|
|
35
|
-
background-color: ${theme.menu.light.background};
|
|
36
35
|
display: inline-block;
|
|
37
36
|
vertical-align: bottom;
|
|
37
|
+
background-color: ${theme.menu[menuType].background};
|
|
38
38
|
|
|
39
39
|
${menuType === "dark" && (0, _styledComponents.css)`
|
|
40
|
-
background-color: ${theme.colors.slate};
|
|
41
40
|
color: ${theme.colors.white};
|
|
42
41
|
`}
|
|
43
42
|
`}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default ScrollableBlock;
|
|
2
|
+
declare function ScrollableBlock({ children, height, variant, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
height: any;
|
|
6
|
+
variant?: string | undefined;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace ScrollableBlock {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
11
|
+
const height: PropTypes.Requireable<string | number>;
|
|
12
|
+
const variant: PropTypes.Requireable<string>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from "prop-types";
|
|
@@ -38,13 +38,19 @@ const ScrollableBlock = ({
|
|
|
38
38
|
focusIndex,
|
|
39
39
|
handleKeyDown
|
|
40
40
|
} = submenuContext;
|
|
41
|
+
const scrollVariants = {
|
|
42
|
+
light: "light",
|
|
43
|
+
dark: "dark",
|
|
44
|
+
white: "light",
|
|
45
|
+
black: "dark"
|
|
46
|
+
};
|
|
41
47
|
return /*#__PURE__*/_react.default.createElement(_scrollableBlock.default, _extends({
|
|
42
48
|
"data-component": "submenu-scrollable-block",
|
|
43
49
|
menuType: menuContext.menuType,
|
|
44
50
|
variant: variant
|
|
45
51
|
}, rest), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
46
52
|
overflowY: "scroll",
|
|
47
|
-
scrollVariant: menuContext.menuType,
|
|
53
|
+
scrollVariant: scrollVariants[menuContext.menuType],
|
|
48
54
|
height: height,
|
|
49
55
|
p: 0
|
|
50
56
|
}, _react.default.Children.map(children, (child, index) => {
|
|
@@ -24,14 +24,8 @@ const StyledScrollableBlock = _styledComponents.default.div`
|
|
|
24
24
|
theme
|
|
25
25
|
}) => (0, _styledComponents.css)`
|
|
26
26
|
&& ${_menuItem.default} {
|
|
27
|
-
background-color: ${variant === "default" ? theme.
|
|
27
|
+
background-color: ${variant === "default" ? theme.menu[menuType].submenuBackground : theme.menu[menuType].background};
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
${menuType === "dark" && (0, _styledComponents.css)`
|
|
31
|
-
&& ${_menuItem.default} {
|
|
32
|
-
background-color: ${variant === "default" ? theme.menu.dark.submenuBackground : theme.colors.slate};
|
|
33
|
-
}
|
|
34
|
-
`}
|
|
35
29
|
`}
|
|
36
30
|
`;
|
|
37
31
|
StyledScrollableBlock.defaultProps = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default SubmenuBlock;
|
|
2
|
+
declare function SubmenuBlock({ children, variant }: {
|
|
3
|
+
children: any;
|
|
4
|
+
variant?: string | undefined;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
declare namespace SubmenuBlock {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
9
|
+
const variant: PropTypes.Requireable<string>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import PropTypes from "prop-types";
|
|
@@ -23,13 +23,11 @@ const StyledSubmenuBlock = _styledComponents.default.div`
|
|
|
23
23
|
theme,
|
|
24
24
|
variant
|
|
25
25
|
}) => (0, _styledComponents.css)`
|
|
26
|
-
${menuType
|
|
27
|
-
background-color: ${theme.menu.dark.submenuBackground};
|
|
26
|
+
background-color: ${theme.menu[menuType].submenuBackground};
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
`}
|
|
28
|
+
${_menuItem.default} {
|
|
29
|
+
background-color: ${variant === "default" ? "transparent" : theme.menu[menuType].alternate};
|
|
30
|
+
}
|
|
33
31
|
`}
|
|
34
32
|
`;
|
|
35
33
|
StyledSubmenuBlock.defaultProps = {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default MessageContent;
|
|
2
|
+
declare function MessageContent({ variant, title, transparent, children }: {
|
|
3
|
+
variant: any;
|
|
4
|
+
title: any;
|
|
5
|
+
transparent: any;
|
|
6
|
+
children: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace MessageContent {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
const variant: string;
|
|
11
|
+
const transparent: boolean;
|
|
12
|
+
}
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
const variant_1: PropTypes.Requireable<string>;
|
|
15
|
+
export { variant_1 as variant };
|
|
16
|
+
export const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
const transparent_1: PropTypes.Requireable<boolean>;
|
|
18
|
+
export { transparent_1 as transparent };
|
|
19
|
+
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default Message;
|
|
2
|
+
declare function Message({ open, transparent, title, variant, children, onDismiss, id, className, closeButtonAriaLabel, showCloseIcon, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
open?: boolean | undefined;
|
|
5
|
+
transparent?: boolean | undefined;
|
|
6
|
+
title: any;
|
|
7
|
+
variant?: string | undefined;
|
|
8
|
+
children: any;
|
|
9
|
+
onDismiss: any;
|
|
10
|
+
id: any;
|
|
11
|
+
className: any;
|
|
12
|
+
closeButtonAriaLabel: any;
|
|
13
|
+
showCloseIcon?: boolean | undefined;
|
|
14
|
+
}): false | JSX.Element;
|
|
15
|
+
declare namespace Message {
|
|
16
|
+
namespace propTypes {
|
|
17
|
+
const variant: PropTypes.Requireable<string>;
|
|
18
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
+
const className: PropTypes.Requireable<string>;
|
|
20
|
+
const id: PropTypes.Requireable<string>;
|
|
21
|
+
const open: PropTypes.Requireable<boolean>;
|
|
22
|
+
const onDismiss: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
const title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
24
|
+
const transparent: PropTypes.Requireable<boolean>;
|
|
25
|
+
const showCloseIcon: PropTypes.Requireable<boolean>;
|
|
26
|
+
const closeButtonAriaLabel: PropTypes.Requireable<string>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default TypeIcon;
|
|
2
|
+
declare function TypeIcon({ variant, transparent }: {
|
|
3
|
+
variant: any;
|
|
4
|
+
transparent: any;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
declare namespace TypeIcon {
|
|
7
|
+
namespace defaultProps {
|
|
8
|
+
const variant: string;
|
|
9
|
+
const transparent: boolean;
|
|
10
|
+
}
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
const variant_1: PropTypes.Requireable<string>;
|
|
13
|
+
export { variant_1 as variant };
|
|
14
|
+
const transparent_1: PropTypes.Requireable<boolean>;
|
|
15
|
+
export { transparent_1 as transparent };
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default ModalManager;
|
|
2
|
+
declare const ModalManager: ModalManagerInstance;
|
|
3
|
+
declare class ModalManagerInstance {
|
|
4
|
+
addModal: (modal: any, setTriggerRefocusFlag: any) => void;
|
|
5
|
+
isTopmost(modal: any): boolean;
|
|
6
|
+
removeModal(modal: any): void;
|
|
7
|
+
clearList(): void;
|
|
8
|
+
#private;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const ModalContext: React.Context<{}>;
|
|
2
|
+
export default Modal;
|
|
3
|
+
import React from "react";
|
|
4
|
+
declare function Modal({ children, open, onCancel, disableEscKey, disableClose, enableBackgroundUI, timeout, ...rest }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
children: any;
|
|
7
|
+
open: any;
|
|
8
|
+
onCancel: any;
|
|
9
|
+
disableEscKey: any;
|
|
10
|
+
disableClose: any;
|
|
11
|
+
enableBackgroundUI: any;
|
|
12
|
+
timeout: any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
declare namespace Modal {
|
|
15
|
+
namespace propTypes {
|
|
16
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
+
const open: PropTypes.Validator<boolean>;
|
|
19
|
+
const enableBackgroundUI: PropTypes.Requireable<boolean>;
|
|
20
|
+
const disableEscKey: PropTypes.Requireable<boolean>;
|
|
21
|
+
const disableClose: PropTypes.Requireable<boolean>;
|
|
22
|
+
const timeout: PropTypes.Requireable<number>;
|
|
23
|
+
}
|
|
24
|
+
namespace defaultProps {
|
|
25
|
+
const onCancel_1: null;
|
|
26
|
+
export { onCancel_1 as onCancel };
|
|
27
|
+
const enableBackgroundUI_1: boolean;
|
|
28
|
+
export { enableBackgroundUI_1 as enableBackgroundUI };
|
|
29
|
+
const disableEscKey_1: boolean;
|
|
30
|
+
export { disableEscKey_1 as disableEscKey };
|
|
31
|
+
const timeout_1: number;
|
|
32
|
+
export { timeout_1 as timeout };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default MultiActionButton;
|
|
2
|
+
declare function MultiActionButton({ align, disabled, as, buttonType, size, children, text, subtext, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
align?: string | undefined;
|
|
5
|
+
disabled: any;
|
|
6
|
+
as: any;
|
|
7
|
+
buttonType: any;
|
|
8
|
+
size: any;
|
|
9
|
+
children: any;
|
|
10
|
+
text: any;
|
|
11
|
+
subtext: any;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
declare namespace MultiActionButton {
|
|
14
|
+
const propTypes: {
|
|
15
|
+
/** Button type: "primary" | "secondary" | "tertiary" */
|
|
16
|
+
buttonType: PropTypes.Requireable<string>;
|
|
17
|
+
/** The additional button to display. */
|
|
18
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
19
|
+
/** Second text child, renders under main text, only when size is "large". */
|
|
20
|
+
subtext: PropTypes.Requireable<string>;
|
|
21
|
+
/** Customizes the appearance, can be set to 'primary', 'secondary' or 'transparent'. */
|
|
22
|
+
as: PropTypes.Requireable<string>;
|
|
23
|
+
/** The text to be displayed in the SplitButton. */
|
|
24
|
+
text: PropTypes.Validator<string>;
|
|
25
|
+
/** Gives the button a disabled state. */
|
|
26
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
27
|
+
/** The size of the MultiActionButton. */
|
|
28
|
+
size: PropTypes.Requireable<string>;
|
|
29
|
+
/** A custom value for the data-element attribute. */
|
|
30
|
+
"data-element": PropTypes.Requireable<string>;
|
|
31
|
+
/** A custom value for the data-element attribute. */
|
|
32
|
+
"data-role": PropTypes.Requireable<string>;
|
|
33
|
+
/** Aligns the button's options */
|
|
34
|
+
align: PropTypes.Requireable<string>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export default MultiStepWizard;
|
|
2
|
+
declare class MultiStepWizard extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
/**
|
|
5
|
+
* Returns wizard object to child components.
|
|
6
|
+
*
|
|
7
|
+
* @method getChildContext
|
|
8
|
+
* @return {void}
|
|
9
|
+
*/
|
|
10
|
+
getChildContext(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Validate step props
|
|
13
|
+
*
|
|
14
|
+
* @method validateStepProps
|
|
15
|
+
* @return {Object}
|
|
16
|
+
*/
|
|
17
|
+
validateStepProps: (stepProps: any) => Object;
|
|
18
|
+
/**
|
|
19
|
+
* Get total number of steps
|
|
20
|
+
*
|
|
21
|
+
* @method totalSteps
|
|
22
|
+
* @return {Number}
|
|
23
|
+
*/
|
|
24
|
+
get totalSteps(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Moves to the next step.
|
|
27
|
+
*
|
|
28
|
+
* @method next
|
|
29
|
+
* @return {void}
|
|
30
|
+
*/
|
|
31
|
+
next: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Back to the previous step.
|
|
34
|
+
*
|
|
35
|
+
* @method back
|
|
36
|
+
* @return {void}
|
|
37
|
+
*/
|
|
38
|
+
back: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Completes the wizard.
|
|
41
|
+
*
|
|
42
|
+
* @method complete
|
|
43
|
+
* @return {void}
|
|
44
|
+
*/
|
|
45
|
+
complete: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the computed HTML for the wizard's steps.
|
|
48
|
+
*
|
|
49
|
+
* @method wizardStepsHTML
|
|
50
|
+
* @return {Object} JSX
|
|
51
|
+
*/
|
|
52
|
+
get wizardStepsHTML(): Object;
|
|
53
|
+
}
|
|
54
|
+
declare namespace MultiStepWizard {
|
|
55
|
+
namespace propTypes {
|
|
56
|
+
const steps: any[];
|
|
57
|
+
const beforeSubmitValidation: Function;
|
|
58
|
+
const className: string;
|
|
59
|
+
const onSubmit: Function;
|
|
60
|
+
const currentStep: number;
|
|
61
|
+
const enableInactiveSteps: boolean;
|
|
62
|
+
const onNext: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
+
const onBack: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
|
+
const completed: boolean;
|
|
65
|
+
}
|
|
66
|
+
namespace defaultProps {
|
|
67
|
+
const beforeSubmitValidation_1: null;
|
|
68
|
+
export { beforeSubmitValidation_1 as beforeSubmitValidation };
|
|
69
|
+
const className_1: string;
|
|
70
|
+
export { className_1 as className };
|
|
71
|
+
const completed_1: boolean;
|
|
72
|
+
export { completed_1 as completed };
|
|
73
|
+
const currentStep_1: number;
|
|
74
|
+
export { currentStep_1 as currentStep };
|
|
75
|
+
const enableInactiveSteps_1: boolean;
|
|
76
|
+
export { enableInactiveSteps_1 as enableInactiveSteps };
|
|
77
|
+
const onNext_1: null;
|
|
78
|
+
export { onNext_1 as onNext };
|
|
79
|
+
const onBack_1: null;
|
|
80
|
+
export { onBack_1 as onBack };
|
|
81
|
+
}
|
|
82
|
+
namespace childContextTypes {
|
|
83
|
+
const wizard: Object;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
import React from "react";
|
|
87
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|