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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default SwitchSlider;
|
|
2
|
+
declare function SwitchSlider({ checked, disabled, loading, size, error, warning, info, useValidationIcon, }: {
|
|
3
|
+
checked: any;
|
|
4
|
+
disabled: any;
|
|
5
|
+
loading: any;
|
|
6
|
+
size: any;
|
|
7
|
+
error: any;
|
|
8
|
+
warning: any;
|
|
9
|
+
info: any;
|
|
10
|
+
useValidationIcon: any;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
declare namespace SwitchSlider {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
const checked: PropTypes.Requireable<boolean>;
|
|
15
|
+
const disabled: PropTypes.Requireable<boolean>;
|
|
16
|
+
const loading: PropTypes.Requireable<boolean>;
|
|
17
|
+
const size: PropTypes.Requireable<string>;
|
|
18
|
+
const error: PropTypes.Requireable<string | boolean>;
|
|
19
|
+
const warning: PropTypes.Requireable<string | boolean>;
|
|
20
|
+
const info: PropTypes.Requireable<string | boolean>;
|
|
21
|
+
const useValidationIcon: PropTypes.Requireable<boolean>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export { Switch as BaseSwitch };
|
|
2
|
+
export default Switch;
|
|
3
|
+
declare function Switch({ autoFocus, id, label, onChange, onBlur, onFocus, value, checked, defaultChecked, disabled, loading, reverse, validationOnLabel, labelInline, labelSpacing, labelHelp, fieldHelpInline, size, name, adaptiveLabelBreakpoint, tooltipPosition, error, warning, info, "data-component": dataComponent, "data-element": dataElement, "data-role": dataRole, helpAriaLabel, ...rest }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
autoFocus: any;
|
|
6
|
+
id: any;
|
|
7
|
+
label: any;
|
|
8
|
+
onChange: any;
|
|
9
|
+
onBlur: any;
|
|
10
|
+
onFocus: any;
|
|
11
|
+
value: any;
|
|
12
|
+
checked: any;
|
|
13
|
+
defaultChecked: any;
|
|
14
|
+
disabled: any;
|
|
15
|
+
loading: any;
|
|
16
|
+
reverse: any;
|
|
17
|
+
validationOnLabel: any;
|
|
18
|
+
labelInline: any;
|
|
19
|
+
labelSpacing: any;
|
|
20
|
+
labelHelp: any;
|
|
21
|
+
fieldHelpInline: any;
|
|
22
|
+
size: any;
|
|
23
|
+
name: any;
|
|
24
|
+
adaptiveLabelBreakpoint: any;
|
|
25
|
+
tooltipPosition: any;
|
|
26
|
+
error: any;
|
|
27
|
+
warning: any;
|
|
28
|
+
info: any;
|
|
29
|
+
"data-component": any;
|
|
30
|
+
"data-element": any;
|
|
31
|
+
"data-role": any;
|
|
32
|
+
helpAriaLabel: any;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
declare namespace Switch {
|
|
35
|
+
const propTypes: {
|
|
36
|
+
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
37
|
+
"data-component": PropTypes.Requireable<string>;
|
|
38
|
+
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
39
|
+
"data-element": PropTypes.Requireable<string>;
|
|
40
|
+
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
41
|
+
"data-role": PropTypes.Requireable<string>;
|
|
42
|
+
/** If true the Component will be focused when page load */
|
|
43
|
+
autoFocus: PropTypes.Requireable<boolean>;
|
|
44
|
+
/** Set the value of the Switch if component is meant to be used as controlled */
|
|
45
|
+
checked: PropTypes.Requireable<boolean>;
|
|
46
|
+
/** Set the default value of the Switch if component is meant to be used as uncontrolled */
|
|
47
|
+
defaultChecked: PropTypes.Requireable<boolean>;
|
|
48
|
+
/** Toggles disabling of input */
|
|
49
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
50
|
+
/** Displays additional information below the input to provide help to the user. */
|
|
51
|
+
fieldHelp: PropTypes.Requireable<string>;
|
|
52
|
+
/** Displays fieldHelp inline with the checkbox */
|
|
53
|
+
fieldHelpInline: PropTypes.Requireable<boolean>;
|
|
54
|
+
/** Unique Identifier for the input. Will use a randomly generated GUID if none is provided */
|
|
55
|
+
id: PropTypes.Requireable<string>;
|
|
56
|
+
/** Sets percentage-based input width */
|
|
57
|
+
inputWidth: PropTypes.Requireable<string | number>;
|
|
58
|
+
/** The content of the label for the input */
|
|
59
|
+
label: PropTypes.Requireable<string>;
|
|
60
|
+
/** Sets label alignment - accepted values: 'left' (default), 'right' */
|
|
61
|
+
labelAlign: PropTypes.Requireable<string>;
|
|
62
|
+
/** The content for the help tooltip, to appear next to the Label */
|
|
63
|
+
labelHelp: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
64
|
+
/** Displays label inline with the Switch */
|
|
65
|
+
labelInline: PropTypes.Requireable<boolean>;
|
|
66
|
+
/** Spacing between label and a field for inline label, given number will be multiplied by base spacing unit (8) */
|
|
67
|
+
labelSpacing: PropTypes.Requireable<number>;
|
|
68
|
+
/** Sets percentage-based label width */
|
|
69
|
+
labelWidth: PropTypes.Requireable<string | number>;
|
|
70
|
+
/** The name of the the Switch input */
|
|
71
|
+
name: PropTypes.Requireable<string>;
|
|
72
|
+
/** Indicate that error has occurred
|
|
73
|
+
Pass string to display icon, tooltip and red border
|
|
74
|
+
Pass true boolean to only display red border */
|
|
75
|
+
error: PropTypes.Requireable<string | boolean>;
|
|
76
|
+
/** Indicate that warning has occurred
|
|
77
|
+
Pass string to display icon, tooltip and orange border
|
|
78
|
+
Pass true boolean to only display orange border */
|
|
79
|
+
warning: PropTypes.Requireable<string | boolean>;
|
|
80
|
+
/** Indicate additional information
|
|
81
|
+
Pass string to display icon, tooltip and blue border
|
|
82
|
+
Pass true boolean to only display blue border */
|
|
83
|
+
info: PropTypes.Requireable<string | boolean>;
|
|
84
|
+
/** When true, validation icon will be placed on label instead of being placed by the input */
|
|
85
|
+
validationOnLabel: PropTypes.Requireable<boolean>;
|
|
86
|
+
/** Override tab index on the validation and help icon */
|
|
87
|
+
helpTabIndex: PropTypes.Requireable<string | number>;
|
|
88
|
+
/** Triggers loading animation */
|
|
89
|
+
loading: PropTypes.Requireable<boolean>;
|
|
90
|
+
/** Accepts a callback function which can be used to update parent state on change */
|
|
91
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
92
|
+
/** Accepts a callback function which is triggered on blur event */
|
|
93
|
+
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
94
|
+
/** Accepts a callback function which is triggered on focus event */
|
|
95
|
+
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
96
|
+
/** Accepts a callback function which is triggered on click event */
|
|
97
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
|
+
/** Reverses label and Switch display */
|
|
99
|
+
reverse: PropTypes.Requireable<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Set the size of the Switch to 'small' (16x16 - default) or 'large' (24x24).
|
|
102
|
+
* No effect when using Classic theme.
|
|
103
|
+
*/
|
|
104
|
+
size: PropTypes.Requireable<string>;
|
|
105
|
+
/** the value of the checkbox, passed on form submit */
|
|
106
|
+
value: PropTypes.Requireable<string>;
|
|
107
|
+
/** Breakpoint for adaptive label (inline labels change to top aligned). Enables the adaptive behaviour when set */
|
|
108
|
+
adaptiveLabelBreakpoint: PropTypes.Requireable<number>;
|
|
109
|
+
/** Flag to configure component as mandatory */
|
|
110
|
+
required: PropTypes.Requireable<boolean>;
|
|
111
|
+
/** Overrides the default tooltip position */
|
|
112
|
+
tooltipPosition: PropTypes.Requireable<string>;
|
|
113
|
+
/** Aria label for rendered help component */
|
|
114
|
+
helpAriaLabel: PropTypes.Requireable<string>;
|
|
115
|
+
};
|
|
116
|
+
const defaultProps: {
|
|
117
|
+
labelInline: boolean;
|
|
118
|
+
reverse: boolean;
|
|
119
|
+
validationOnLabel: boolean;
|
|
120
|
+
"data-component": string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const StyledTabTitle: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
2
|
+
export const StyledTitleContent: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
|
+
export const StyledLayoutWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export const StyledSelectedIndicator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -325,10 +325,8 @@ const StyledTabTitle = _styledComponents.default.button`
|
|
|
325
325
|
alternateStyling,
|
|
326
326
|
error,
|
|
327
327
|
warning,
|
|
328
|
-
info
|
|
329
|
-
isInSidebar
|
|
328
|
+
info
|
|
330
329
|
}) => isTabSelected && (0, _styledComponents.css)`
|
|
331
|
-
${!isInSidebar && "z-index: 1;"}
|
|
332
330
|
color: ${theme.text.color};
|
|
333
331
|
background-color: ${theme.colors.white};
|
|
334
332
|
|
|
@@ -350,7 +348,7 @@ const StyledTabTitle = _styledComponents.default.button`
|
|
|
350
348
|
}) => `
|
|
351
349
|
&:focus {
|
|
352
350
|
outline: ${isInSidebar ? "none;" : `2px solid ${theme.colors.focus};`}
|
|
353
|
-
z-index:
|
|
351
|
+
z-index: 2;
|
|
354
352
|
}
|
|
355
353
|
`}
|
|
356
354
|
|
|
@@ -494,7 +492,7 @@ const StyledLayoutWrapper = _styledComponents.default.div`
|
|
|
494
492
|
exports.StyledLayoutWrapper = StyledLayoutWrapper;
|
|
495
493
|
const StyledSelectedIndicator = _styledComponents.default.div`
|
|
496
494
|
position: absolute;
|
|
497
|
-
z-index:
|
|
495
|
+
z-index: 1;
|
|
498
496
|
|
|
499
497
|
${({
|
|
500
498
|
position,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default TabsHeader;
|
|
2
|
+
declare function TabsHeader({ align, children, position, role, extendedLine, alternateStyling, noRightBorder, isInSidebar, }: {
|
|
3
|
+
align?: string | undefined;
|
|
4
|
+
children: any;
|
|
5
|
+
position?: string | undefined;
|
|
6
|
+
role: any;
|
|
7
|
+
extendedLine: any;
|
|
8
|
+
alternateStyling: any;
|
|
9
|
+
noRightBorder?: boolean | undefined;
|
|
10
|
+
isInSidebar?: boolean | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
declare namespace TabsHeader {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
const align: PropTypes.Requireable<string>;
|
|
15
|
+
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
16
|
+
const position: PropTypes.Requireable<string>;
|
|
17
|
+
const role: PropTypes.Requireable<string>;
|
|
18
|
+
const extendedLine: PropTypes.Requireable<boolean>;
|
|
19
|
+
const alternateStyling: PropTypes.Requireable<boolean>;
|
|
20
|
+
const noRightBorder: PropTypes.Requireable<boolean>;
|
|
21
|
+
const isInSidebar: PropTypes.Requireable<boolean>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const StyledTabsHeaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export const StyledTabsHeaderList: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
alternateStyling: any;
|
|
4
|
+
isInSidebar: any;
|
|
5
|
+
position: any;
|
|
6
|
+
}, never>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default Tab;
|
|
2
|
+
export const TabContext: React.Context<{}>;
|
|
3
|
+
declare function Tab({ ariaLabelledby, className, children, isTabSelected, position, role, tabId, updateErrors, updateWarnings, updateInfos, href, ...rest }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
ariaLabelledby: any;
|
|
6
|
+
className: any;
|
|
7
|
+
children: any;
|
|
8
|
+
isTabSelected: any;
|
|
9
|
+
position?: string | undefined;
|
|
10
|
+
role?: string | undefined;
|
|
11
|
+
tabId: any;
|
|
12
|
+
updateErrors: any;
|
|
13
|
+
updateWarnings: any;
|
|
14
|
+
updateInfos: any;
|
|
15
|
+
href: any;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
declare namespace Tab {
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const title: PropTypes.Requireable<string>;
|
|
20
|
+
const tabId: PropTypes.Validator<string>;
|
|
21
|
+
const className: PropTypes.Requireable<string>;
|
|
22
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
23
|
+
const customLayout: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
24
|
+
const isTabSelected: PropTypes.Requireable<boolean>;
|
|
25
|
+
const position: PropTypes.Requireable<string>;
|
|
26
|
+
const role: PropTypes.Requireable<string>;
|
|
27
|
+
const ariaLabelledby: PropTypes.Requireable<string>;
|
|
28
|
+
const updateErrors: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
const updateWarnings: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
const updateInfos: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
const errorMessage: PropTypes.Requireable<string>;
|
|
32
|
+
const warningMessage: PropTypes.Requireable<string>;
|
|
33
|
+
const infoMessage: PropTypes.Requireable<string>;
|
|
34
|
+
const siblings: PropTypes.Requireable<PropTypes.ReactNodeLike[]>;
|
|
35
|
+
const titlePosition: PropTypes.Requireable<string>;
|
|
36
|
+
const href: PropTypes.Requireable<string>;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
import React from "react";
|
|
40
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export function Tabs({ align, className, children, onTabChange, selectedTabId, renderHiddenTabs, position, extendedLine, size, borders, variant, validationStatusOverride, headerWidth, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
align?: string | undefined;
|
|
4
|
+
className: any;
|
|
5
|
+
children: any;
|
|
6
|
+
onTabChange: any;
|
|
7
|
+
selectedTabId: any;
|
|
8
|
+
renderHiddenTabs?: boolean | undefined;
|
|
9
|
+
position?: string | undefined;
|
|
10
|
+
extendedLine?: boolean | undefined;
|
|
11
|
+
size: any;
|
|
12
|
+
borders?: string | undefined;
|
|
13
|
+
variant?: string | undefined;
|
|
14
|
+
validationStatusOverride: any;
|
|
15
|
+
headerWidth: any;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export namespace Tabs {
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const className: PropTypes.Requireable<string>;
|
|
20
|
+
const renderHiddenTabs: PropTypes.Requireable<boolean>;
|
|
21
|
+
const selectedTabId: PropTypes.Requireable<string>;
|
|
22
|
+
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
23
|
+
const align: PropTypes.Requireable<string>;
|
|
24
|
+
const onTabChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
+
const position: PropTypes.Requireable<string>;
|
|
26
|
+
const size: PropTypes.Requireable<string>;
|
|
27
|
+
const extendedLine: PropTypes.Requireable<boolean>;
|
|
28
|
+
const borders: PropTypes.Requireable<string>;
|
|
29
|
+
function headerWidth(props: any, propName: any, componentName: any): Error | null;
|
|
30
|
+
const variant: PropTypes.Requireable<string>;
|
|
31
|
+
const validationStatusOverride: PropTypes.Requireable<PropTypes.InferProps<{
|
|
32
|
+
id: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
|
+
error: PropTypes.Requireable<boolean>;
|
|
34
|
+
warning: PropTypes.Requireable<boolean>;
|
|
35
|
+
info: PropTypes.Requireable<boolean>;
|
|
36
|
+
}>>;
|
|
37
|
+
}>>;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
import Tab from "./tab";
|
|
41
|
+
import PropTypes from "prop-types";
|
|
42
|
+
export { Tab };
|
|
@@ -249,16 +249,7 @@ const Tabs = ({
|
|
|
249
249
|
noRightBorder: ["no right side", "no sides"].includes(borders),
|
|
250
250
|
customLayout: customLayout,
|
|
251
251
|
isInSidebar: isInSidebar,
|
|
252
|
-
align: align
|
|
253
|
-
onFocus: () => {
|
|
254
|
-
if (!hasTabStop(tabId)) {
|
|
255
|
-
setTabStopId(tabId);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (!isTabSelected(tabId)) {
|
|
259
|
-
updateVisibleTab(tabId);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
252
|
+
align: align
|
|
262
253
|
});
|
|
263
254
|
|
|
264
255
|
return tabTitle;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default Counter;
|
|
2
|
+
declare function Counter({ count, limit, error, warning, info }: {
|
|
3
|
+
count?: number | undefined;
|
|
4
|
+
limit?: number | undefined;
|
|
5
|
+
error: any;
|
|
6
|
+
warning: any;
|
|
7
|
+
info: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
declare namespace Counter {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const count: PropTypes.Requireable<number>;
|
|
12
|
+
const limit: PropTypes.Requireable<number>;
|
|
13
|
+
const error: PropTypes.Requireable<string>;
|
|
14
|
+
const warning: PropTypes.Requireable<string>;
|
|
15
|
+
const info: PropTypes.Requireable<string>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default EditorLink;
|
|
2
|
+
declare function EditorLink({ children, contentState, entityKey, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
contentState: any;
|
|
6
|
+
entityKey: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace EditorLink {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
11
|
+
const contentState: PropTypes.Requireable<object>;
|
|
12
|
+
const entityKey: PropTypes.Requireable<string>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default LabelWrapper;
|
|
2
|
+
/**
|
|
3
|
+
* TextEditor component is composed with divs and spans.
|
|
4
|
+
* We have to manually trigger focus on TextEditor by clicking on label component.
|
|
5
|
+
* This wrapper allows us to trigger focus on TextEditor
|
|
6
|
+
*/
|
|
7
|
+
declare function LabelWrapper({ onClick, children }: {
|
|
8
|
+
onClick: any;
|
|
9
|
+
children: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
declare namespace LabelWrapper {
|
|
12
|
+
namespace propTypes {
|
|
13
|
+
const onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
14
|
+
const children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default Toolbar;
|
|
2
|
+
declare function Toolbar({ activeControls, canFocus, toolbarElements, setBlockStyle, setInlineStyle, }: {
|
|
3
|
+
activeControls: any;
|
|
4
|
+
canFocus: any;
|
|
5
|
+
toolbarElements: any;
|
|
6
|
+
setBlockStyle: any;
|
|
7
|
+
setInlineStyle: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
declare namespace Toolbar {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const activeControls: PropTypes.Validator<object>;
|
|
12
|
+
const canFocus: PropTypes.Requireable<boolean>;
|
|
13
|
+
const setInlineStyle: PropTypes.Validator<(...args: any[]) => any>;
|
|
14
|
+
const setBlockStyle: PropTypes.Validator<(...args: any[]) => any>;
|
|
15
|
+
const toolbarElements: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const StyledToolbar: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export const StyledEditorActionControls: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export const StyledEditorStyleControls: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { computeBlockType, getContent, getContentInfo, getDecoratedValue, getSelection, getSelectionInfo, getSelectedLength, moveSelectionToEnd, resetBlockType, isASCIIChar, replaceText, hasBlockStyle, hasInlineStyle, blockStyleFn } from "./utils";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function blockStyleFn(block: any): "" | "text-editor-block-unordered" | "text-editor-block-ordered";
|
|
2
|
+
export function hasBlockStyle(value: any, type: any): boolean;
|
|
3
|
+
export function hasInlineStyle(value: any, style: any): any;
|
|
4
|
+
export function isASCIIChar(str: any): boolean;
|
|
5
|
+
export function replaceText(editorState: any, text: any, inlineStyle: any, forceSelection: any): any;
|
|
6
|
+
export function computeBlockType(char: any, type: any): "ordered-list-item" | "unordered-list-item" | "unstyled";
|
|
7
|
+
export function resetBlockType(value: any, newType?: string): any;
|
|
8
|
+
export function getDecoratedValue(value: any): any;
|
|
9
|
+
export function getContent(value: any): any;
|
|
10
|
+
export function getSelection(value: any): any;
|
|
11
|
+
export function getContentInfo(value: any): {
|
|
12
|
+
content: any;
|
|
13
|
+
currentBlock: any;
|
|
14
|
+
blockType: any;
|
|
15
|
+
blockLength: any;
|
|
16
|
+
blockText: any;
|
|
17
|
+
blockMap: any;
|
|
18
|
+
};
|
|
19
|
+
export function getSelectionInfo(value: any): {
|
|
20
|
+
selection: any;
|
|
21
|
+
startKey: any;
|
|
22
|
+
endKey: any;
|
|
23
|
+
startOffset: any;
|
|
24
|
+
endOffset: any;
|
|
25
|
+
};
|
|
26
|
+
export function moveSelectionToEnd(value: any): any;
|
|
27
|
+
export function getSelectedLength(value: any): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const EditorContext: React.Context<{}>;
|
|
2
|
+
export const TextEditorState: any;
|
|
3
|
+
export const TextEditorContentState: any;
|
|
4
|
+
export default TextEditor;
|
|
5
|
+
import React from "react";
|
|
6
|
+
declare const TextEditor: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const StyledEditorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export const StyledEditorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export const StyledEditorOutline: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export { Textarea as OriginalTextarea };
|
|
2
|
+
export default Textarea;
|
|
3
|
+
declare function Textarea({ autoFocus, fieldHelp, label, size, children, characterLimit, enforceCharacterLimit, warnOverLimit, onChange, disabled, labelInline, labelAlign, labelHelp, labelSpacing, inputIcon, id: idProp, error, warning, info, name, readOnly, placeholder, expandable, rows, cols, validationOnLabel, adaptiveLabelBreakpoint, inputWidth, labelWidth, tooltipPosition, value, "data-component": dataComponent, "data-element": dataElement, "data-role": dataRole, helpAriaLabel, ...props }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
autoFocus: any;
|
|
6
|
+
fieldHelp: any;
|
|
7
|
+
label: any;
|
|
8
|
+
size: any;
|
|
9
|
+
children: any;
|
|
10
|
+
characterLimit: any;
|
|
11
|
+
enforceCharacterLimit?: boolean | undefined;
|
|
12
|
+
warnOverLimit?: boolean | undefined;
|
|
13
|
+
onChange: any;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
labelInline: any;
|
|
16
|
+
labelAlign: any;
|
|
17
|
+
labelHelp: any;
|
|
18
|
+
labelSpacing: any;
|
|
19
|
+
inputIcon: any;
|
|
20
|
+
id: any;
|
|
21
|
+
error: any;
|
|
22
|
+
warning: any;
|
|
23
|
+
info: any;
|
|
24
|
+
name: any;
|
|
25
|
+
readOnly?: boolean | undefined;
|
|
26
|
+
placeholder: any;
|
|
27
|
+
expandable?: boolean | undefined;
|
|
28
|
+
rows: any;
|
|
29
|
+
cols: any;
|
|
30
|
+
validationOnLabel?: boolean | undefined;
|
|
31
|
+
adaptiveLabelBreakpoint: any;
|
|
32
|
+
inputWidth: any;
|
|
33
|
+
labelWidth?: number | undefined;
|
|
34
|
+
tooltipPosition: any;
|
|
35
|
+
value: any;
|
|
36
|
+
"data-component": any;
|
|
37
|
+
"data-element": any;
|
|
38
|
+
"data-role": any;
|
|
39
|
+
helpAriaLabel: any;
|
|
40
|
+
}): JSX.Element;
|
|
41
|
+
declare namespace Textarea {
|
|
42
|
+
const propTypes: {
|
|
43
|
+
/** Automatically focus the input on component mount */
|
|
44
|
+
autoFocus: PropTypes.Requireable<boolean>;
|
|
45
|
+
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
46
|
+
"data-component": PropTypes.Requireable<string>;
|
|
47
|
+
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
48
|
+
"data-element": PropTypes.Requireable<string>;
|
|
49
|
+
/** Identifier used for testing purposes, applied to the root element of the component. */
|
|
50
|
+
"data-role": PropTypes.Requireable<string>;
|
|
51
|
+
/** id of the input */
|
|
52
|
+
id: PropTypes.Requireable<string>;
|
|
53
|
+
/** Character limit of the textarea */
|
|
54
|
+
characterLimit: PropTypes.Requireable<string>;
|
|
55
|
+
/** Type of the icon that will be rendered next to the input */
|
|
56
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
57
|
+
/** The visible width of the text control, in average character widths */
|
|
58
|
+
cols: PropTypes.Requireable<number>;
|
|
59
|
+
/** Adds disabled property */
|
|
60
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
61
|
+
/** Stop the user typing over the characterLimit */
|
|
62
|
+
enforceCharacterLimit: PropTypes.Requireable<boolean>;
|
|
63
|
+
/** Allows the Textareas Height to change based on user input */
|
|
64
|
+
expandable: PropTypes.Requireable<boolean>;
|
|
65
|
+
/** Help content to be displayed under an input */
|
|
66
|
+
fieldHelp: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
67
|
+
/** The content of the label for the input */
|
|
68
|
+
label: PropTypes.Requireable<string>;
|
|
69
|
+
/** Text applied to label help tooltip */
|
|
70
|
+
labelHelp: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
71
|
+
/** Inline label alignment */
|
|
72
|
+
labelAlign: PropTypes.Requireable<string>;
|
|
73
|
+
/** When true, label is placed in line with an input */
|
|
74
|
+
labelInline: PropTypes.Requireable<boolean>;
|
|
75
|
+
/** Spacing between label and a field for inline label, given number will be multiplied by base spacing unit (8) */
|
|
76
|
+
labelSpacing: PropTypes.Requireable<number>;
|
|
77
|
+
/** Width of a label in percentage. Works only when labelInline is true */
|
|
78
|
+
labelWidth: PropTypes.Requireable<number>;
|
|
79
|
+
/** Width of an input in percentage. Works only when labelInline is true */
|
|
80
|
+
inputWidth: PropTypes.Requireable<number>;
|
|
81
|
+
/** Name of the input */
|
|
82
|
+
name: PropTypes.Requireable<string>;
|
|
83
|
+
/** Callback fired when the user types in the Textarea */
|
|
84
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
85
|
+
/** Placeholder text for the component */
|
|
86
|
+
placeholder: PropTypes.Requireable<string>;
|
|
87
|
+
/** Adds readOnly property */
|
|
88
|
+
readOnly: PropTypes.Requireable<boolean>;
|
|
89
|
+
/** The number of visible text lines for the control */
|
|
90
|
+
rows: PropTypes.Requireable<number>;
|
|
91
|
+
/** One of type of size to apply to the textarea */
|
|
92
|
+
size: PropTypes.Requireable<string>;
|
|
93
|
+
/** The value of the Textarea */
|
|
94
|
+
value: PropTypes.Requireable<string>;
|
|
95
|
+
/** Whether to display the character count message in red */
|
|
96
|
+
warnOverLimit: PropTypes.Requireable<boolean>;
|
|
97
|
+
/** Indicate that error has occurred
|
|
98
|
+
Pass string to display icon, tooltip and red border
|
|
99
|
+
Pass true boolean to only display red border */
|
|
100
|
+
error: PropTypes.Requireable<string | boolean>;
|
|
101
|
+
/** Indicate that warning has occurred
|
|
102
|
+
Pass string to display icon, tooltip and orange border
|
|
103
|
+
Pass true boolean to only display orange border */
|
|
104
|
+
warning: PropTypes.Requireable<string | boolean>;
|
|
105
|
+
/** Indicate additional information
|
|
106
|
+
Pass string to display icon, tooltip and blue border
|
|
107
|
+
Pass true boolean to only display blue border */
|
|
108
|
+
info: PropTypes.Requireable<string | boolean>;
|
|
109
|
+
/** When true, validation icon will be placed on label instead of being placed on the input */
|
|
110
|
+
validationOnLabel: PropTypes.Requireable<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* <a href="https://brand.sage.com/d/NdbrveWvNheA/foundations#/icons/icons" target="_blank">List of supported icons</a>
|
|
113
|
+
*
|
|
114
|
+
* Icon to display inside of the Textarea
|
|
115
|
+
*/
|
|
116
|
+
inputIcon: PropTypes.Requireable<string>;
|
|
117
|
+
/** Message to be displayed in a Tooltip when the user hovers over the help icon */
|
|
118
|
+
tooltipMessage: PropTypes.Requireable<string>;
|
|
119
|
+
/** Breakpoint for adaptive label (inline labels change to top aligned). Enables the adaptive behaviour when set */
|
|
120
|
+
adaptiveLabelBreakpoint: PropTypes.Requireable<number>;
|
|
121
|
+
/** Flag to configure component as mandatory */
|
|
122
|
+
required: PropTypes.Requireable<boolean>;
|
|
123
|
+
/** Overrides the default tooltip position */
|
|
124
|
+
tooltipPosition: PropTypes.Requireable<string>;
|
|
125
|
+
/** Aria label for rendered help component */
|
|
126
|
+
helpAriaLabel: PropTypes.Requireable<string>;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
import PropTypes from "prop-types";
|