@deskpro/deskpro-ui 8.4.1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/AttachmentTag/AttachmentTag.js +8 -4
- package/dist/cjs/components/AttachmentTag/AttachmentTag.js.map +1 -1
- package/dist/cjs/components/AttachmentTag/LoadingAttachment.js +2 -2
- package/dist/cjs/components/AttachmentTag/LoadingAttachment.js.map +1 -1
- package/dist/cjs/components/Avatar/Avatar.js +13 -3
- package/dist/cjs/components/Avatar/Avatar.js.map +1 -1
- package/dist/cjs/components/Badge/Badge.js +22 -4
- package/dist/cjs/components/Badge/Badge.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +4 -4
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Button/styles.js +4 -4
- package/dist/cjs/components/Button/styles.js.map +1 -1
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js +9 -1
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/cjs/components/CCUserTag/CCUserTag.js +4 -4
- package/dist/cjs/components/CCUserTag/CCUserTag.js.map +1 -1
- package/dist/cjs/components/Card/AppCard.js +4 -4
- package/dist/cjs/components/Card/AppCard.js.map +1 -1
- package/dist/cjs/components/Card/CardKanban.js +1 -2
- package/dist/cjs/components/Card/CardKanban.js.map +1 -1
- package/dist/cjs/components/Card/CardList.js +1 -2
- package/dist/cjs/components/Card/CardList.js.map +1 -1
- package/dist/cjs/components/Card/RowCard.js +1 -2
- package/dist/cjs/components/Card/RowCard.js.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.js +28 -6
- package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.js +5 -5
- package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/Divider/Divider.js +8 -1
- package/dist/cjs/components/Divider/Divider.js.map +1 -1
- package/dist/cjs/components/Drilldown/CreateNewOption.js +1 -1
- package/dist/cjs/components/Drilldown/CreateNewOption.js.map +1 -1
- package/dist/cjs/components/Drilldown/Drilldown.js +40 -9
- package/dist/cjs/components/Drilldown/Drilldown.js.map +1 -1
- package/dist/cjs/components/Drilldown/DrilldownItem.js +8 -5
- package/dist/cjs/components/Drilldown/DrilldownItem.js.map +1 -1
- package/dist/cjs/components/Drilldown/DrilldownList.js +19 -11
- package/dist/cjs/components/Drilldown/DrilldownList.js.map +1 -1
- package/dist/cjs/components/Drilldown/getItemId.js +15 -0
- package/dist/cjs/components/Drilldown/getItemId.js.map +1 -0
- package/dist/cjs/components/Drilldown/hooks/useFilteredItems.js +1 -2
- package/dist/cjs/components/Drilldown/hooks/useFilteredItems.js.map +1 -1
- package/dist/cjs/components/Drilldown/hooks/useTreeify.js +6 -7
- package/dist/cjs/components/Drilldown/hooks/useTreeify.js.map +1 -1
- package/dist/cjs/components/Drilldown/hooks/useUpdateItems.js +2 -3
- package/dist/cjs/components/Drilldown/hooks/useUpdateItems.js.map +1 -1
- package/dist/cjs/components/Drilldown/styles.js +5 -1
- package/dist/cjs/components/Drilldown/styles.js.map +1 -1
- package/dist/cjs/components/Drilldown/testUtils/AllVariantsDrilldown.js +2 -2
- package/dist/cjs/components/Drilldown/testUtils/AllVariantsDrilldown.js.map +1 -1
- package/dist/cjs/components/Drilldown/types.js +10 -11
- package/dist/cjs/components/Drilldown/types.js.map +1 -1
- package/dist/cjs/components/Drilldown/utility.js +12 -13
- package/dist/cjs/components/Drilldown/utility.js.map +1 -1
- package/dist/cjs/components/Dropdown/Dropdown.js +48 -19
- package/dist/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/cjs/components/Dropdown/testUtils/AllVariantsSelect.js +2 -2
- package/dist/cjs/components/Dropdown/testUtils/AllVariantsSelect.js.map +1 -1
- package/dist/cjs/components/Dropdown/utility.js +1 -2
- package/dist/cjs/components/Dropdown/utility.js.map +1 -1
- package/dist/cjs/components/Formik/FormikFastField.js +1 -2
- package/dist/cjs/components/Formik/FormikFastField.js.map +1 -1
- package/dist/cjs/components/Formik/FormikField.js +1 -2
- package/dist/cjs/components/Formik/FormikField.js.map +1 -1
- package/dist/cjs/components/Formik/useFastField.js +1 -2
- package/dist/cjs/components/Formik/useFastField.js.map +1 -1
- package/dist/cjs/components/Icon/Icon.js +5 -5
- package/dist/cjs/components/Icon/Icon.js.map +1 -1
- package/dist/cjs/components/IconV2/process.js.map +1 -1
- package/dist/cjs/components/Infinite/Infinite.js +8 -8
- package/dist/cjs/components/Infinite/Infinite.js.map +1 -1
- package/dist/cjs/components/Infinite/InfiniteTopBottom.js +11 -10
- package/dist/cjs/components/Infinite/InfiniteTopBottom.js.map +1 -1
- package/dist/cjs/components/Infinite/ObservedDiv.js +1 -2
- package/dist/cjs/components/Infinite/ObservedDiv.js.map +1 -1
- package/dist/cjs/components/Input/Input.js +22 -6
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/Label/Label.js +3 -1
- package/dist/cjs/components/Label/Label.js.map +1 -1
- package/dist/cjs/components/LabelTag/Tag.js +5 -4
- package/dist/cjs/components/LabelTag/Tag.js.map +1 -1
- package/dist/cjs/components/LabelTag/TagCircle.js.map +1 -1
- package/dist/cjs/components/Link/Link.js +24 -1
- package/dist/cjs/components/Link/Link.js.map +1 -1
- package/dist/cjs/components/Link/index.js +2 -1
- package/dist/cjs/components/Link/index.js.map +1 -1
- package/dist/cjs/components/LoadingState/LoadingBlock.js +9 -1
- package/dist/cjs/components/LoadingState/LoadingBlock.js.map +1 -1
- package/dist/cjs/components/LoadingState/LoadingState.js +22 -0
- package/dist/cjs/components/LoadingState/LoadingState.js.map +1 -0
- package/dist/cjs/components/LoadingState/index.js +3 -1
- package/dist/cjs/components/LoadingState/index.js.map +1 -1
- package/dist/cjs/components/Menu/Menu.js +104 -16
- package/dist/cjs/components/Menu/Menu.js.map +1 -1
- package/dist/cjs/components/Modal/Modal.js +14 -9
- package/dist/cjs/components/Modal/Modal.js.map +1 -1
- package/dist/cjs/components/NonIdealState/NonIdealState.js +16 -4
- package/dist/cjs/components/NonIdealState/NonIdealState.js.map +1 -1
- package/dist/cjs/components/OptionTag/OptionTag.js +6 -3
- package/dist/cjs/components/OptionTag/OptionTag.js.map +1 -1
- package/dist/cjs/components/Overlay/Overlay.js +15 -72
- package/dist/cjs/components/Overlay/Overlay.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +19 -19
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/Pill/Pill.js +19 -3
- package/dist/cjs/components/Pill/Pill.js.map +1 -1
- package/dist/cjs/components/Pill/UrgencyCircle.js +2 -2
- package/dist/cjs/components/Pill/UrgencyCircle.js.map +1 -1
- package/dist/cjs/components/Pill/UrgencyPill.js +1 -2
- package/dist/cjs/components/Pill/UrgencyPill.js.map +1 -1
- package/dist/cjs/components/Popover/Popover.js +12 -4
- package/dist/cjs/components/Popover/Popover.js.map +1 -1
- package/dist/cjs/components/Portal/Portal.js +1 -2
- package/dist/cjs/components/Portal/Portal.js.map +1 -1
- package/dist/cjs/components/Radio/Radio.js +22 -9
- package/dist/cjs/components/Radio/Radio.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +9 -5
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.js +15 -4
- package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/cjs/components/TabBar/TabBar.js +57 -5
- package/dist/cjs/components/TabBar/TabBar.js.map +1 -1
- package/dist/cjs/components/TabbedSection/Tabs.js +60 -8
- package/dist/cjs/components/TabbedSection/Tabs.js.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.js +51 -7
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/TextArea/TextArea.js +19 -4
- package/dist/cjs/components/TextArea/TextArea.js.map +1 -1
- package/dist/cjs/components/TimeInput/TimeInput.js +15 -9
- package/dist/cjs/components/TimeInput/TimeInput.js.map +1 -1
- package/dist/cjs/components/TippyTooltip/TippyTooltip.js +2 -2
- package/dist/cjs/components/TippyTooltip/TippyTooltip.js.map +1 -1
- package/dist/cjs/components/TippyTooltip/mergePlugins.js.map +1 -1
- package/dist/cjs/components/TippyTooltip/plugIns/escPlugin.js.map +1 -1
- package/dist/cjs/components/Toggle/Toggle.js +24 -8
- package/dist/cjs/components/Toggle/Toggle.js.map +1 -1
- package/dist/cjs/components/Tooltip/SafePolygon.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +20 -4
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/Tooltip/TooltipCommonIcon.js +1 -2
- package/dist/cjs/components/Tooltip/TooltipCommonIcon.js.map +1 -1
- package/dist/cjs/components/Tooltip/styles.js.map +1 -1
- package/dist/cjs/components/Tooltip/usePosition.js.map +1 -1
- package/dist/cjs/components/Tooltip/useTooltip.js.map +1 -1
- package/dist/cjs/components/Tooltip/utils.js +2 -2
- package/dist/cjs/components/Tooltip/utils.js.map +1 -1
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.js +48 -0
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/cjs/components/VisuallyHidden/index.js +7 -0
- package/dist/cjs/components/VisuallyHidden/index.js.map +1 -0
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/hooks/index.js +3 -1
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/useId.js +35 -0
- package/dist/cjs/hooks/useId.js.map +1 -0
- package/dist/cjs/hooks/useOnClickOutside.js +1 -2
- package/dist/cjs/hooks/useOnClickOutside.js.map +1 -1
- package/dist/cjs/hooks/usePrevious.js +1 -2
- package/dist/cjs/hooks/usePrevious.js.map +1 -1
- package/dist/cjs/layout/ResponsiveLayout/responsiveLayout.js.map +1 -1
- package/dist/cjs/layout/Stack.js.map +1 -1
- package/dist/cjs/structure/AppSidebar/AppSidebar.js +6 -5
- package/dist/cjs/structure/AppSidebar/AppSidebar.js.map +1 -1
- package/dist/cjs/style/globalStyles/SPA.js +1 -2
- package/dist/cjs/style/globalStyles/SPA.js.map +1 -1
- package/dist/cjs/style/theme/helpers.js.map +1 -1
- package/dist/cjs/utils/dpName.js.map +1 -1
- package/dist/cjs/utils/getInitials.js +1 -2
- package/dist/cjs/utils/getInitials.js.map +1 -1
- package/dist/cjs/utils/getRandomColor.js.map +1 -1
- package/dist/cjs/utils/mergeRefs.js.map +1 -1
- package/dist/cjs/utils/notEmpty.js +1 -2
- package/dist/cjs/utils/notEmpty.js.map +1 -1
- package/dist/cjs/utils/throttle.js.map +1 -1
- package/dist/deskpro-ui.d.ts +387 -104
- package/dist/esm/components/AttachmentTag/AttachmentTag.js +8 -4
- package/dist/esm/components/AttachmentTag/AttachmentTag.js.map +1 -1
- package/dist/esm/components/AttachmentTag/LoadingAttachment.js +2 -2
- package/dist/esm/components/AttachmentTag/LoadingAttachment.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.js +13 -3
- package/dist/esm/components/Avatar/Avatar.js.map +1 -1
- package/dist/esm/components/Badge/Badge.js +21 -2
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/Button/Button.js +4 -4
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Button/styles.js.map +1 -1
- package/dist/esm/components/ButtonGroup/ButtonGroup.js +9 -1
- package/dist/esm/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/esm/components/CCUserTag/CCUserTag.js +3 -2
- package/dist/esm/components/CCUserTag/CCUserTag.js.map +1 -1
- package/dist/esm/components/Card/AppCard.js +1 -1
- package/dist/esm/components/Card/AppCard.js.map +1 -1
- package/dist/esm/components/Card/CardKanban.js.map +1 -1
- package/dist/esm/components/Card/CardList.js.map +1 -1
- package/dist/esm/components/Card/RowCard.js.map +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +28 -6
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js +2 -2
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Divider/Divider.js +8 -1
- package/dist/esm/components/Divider/Divider.js.map +1 -1
- package/dist/esm/components/Drilldown/CreateNewOption.js +1 -1
- package/dist/esm/components/Drilldown/CreateNewOption.js.map +1 -1
- package/dist/esm/components/Drilldown/Drilldown.js +39 -7
- package/dist/esm/components/Drilldown/Drilldown.js.map +1 -1
- package/dist/esm/components/Drilldown/DrilldownItem.js +7 -3
- package/dist/esm/components/Drilldown/DrilldownItem.js.map +1 -1
- package/dist/esm/components/Drilldown/DrilldownList.js +16 -7
- package/dist/esm/components/Drilldown/DrilldownList.js.map +1 -1
- package/dist/esm/components/Drilldown/getItemId.js +11 -0
- package/dist/esm/components/Drilldown/getItemId.js.map +1 -0
- package/dist/esm/components/Drilldown/hooks/useFilteredItems.js.map +1 -1
- package/dist/esm/components/Drilldown/hooks/useTreeify.js.map +1 -1
- package/dist/esm/components/Drilldown/hooks/useUpdateItems.js.map +1 -1
- package/dist/esm/components/Drilldown/styles.js +5 -1
- package/dist/esm/components/Drilldown/styles.js.map +1 -1
- package/dist/esm/components/Drilldown/testUtils/AllVariantsDrilldown.js.map +1 -1
- package/dist/esm/components/Drilldown/types.js.map +1 -1
- package/dist/esm/components/Drilldown/utility.js.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js +45 -16
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/Dropdown/testUtils/AllVariantsSelect.js.map +1 -1
- package/dist/esm/components/Dropdown/utility.js.map +1 -1
- package/dist/esm/components/Formik/useFastField.js.map +1 -1
- package/dist/esm/components/Icon/Icon.js.map +1 -1
- package/dist/esm/components/IconV2/process.js.map +1 -1
- package/dist/esm/components/Infinite/Infinite.js +7 -6
- package/dist/esm/components/Infinite/Infinite.js.map +1 -1
- package/dist/esm/components/Infinite/InfiniteTopBottom.js +10 -8
- package/dist/esm/components/Infinite/InfiniteTopBottom.js.map +1 -1
- package/dist/esm/components/Infinite/ObservedDiv.js.map +1 -1
- package/dist/esm/components/Input/Input.js +22 -6
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/Label/Label.js +3 -1
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/LabelTag/Tag.js +5 -4
- package/dist/esm/components/LabelTag/Tag.js.map +1 -1
- package/dist/esm/components/LabelTag/TagCircle.js.map +1 -1
- package/dist/esm/components/Link/Link.js +23 -0
- package/dist/esm/components/Link/Link.js.map +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Link/index.js.map +1 -1
- package/dist/esm/components/LoadingState/LoadingBlock.js +9 -1
- package/dist/esm/components/LoadingState/LoadingBlock.js.map +1 -1
- package/dist/esm/components/LoadingState/LoadingState.js +19 -0
- package/dist/esm/components/LoadingState/LoadingState.js.map +1 -0
- package/dist/esm/components/LoadingState/index.js +1 -0
- package/dist/esm/components/LoadingState/index.js.map +1 -1
- package/dist/esm/components/Menu/Menu.js +102 -14
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Modal/Modal.js +12 -6
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/NonIdealState/NonIdealState.js +15 -2
- package/dist/esm/components/NonIdealState/NonIdealState.js.map +1 -1
- package/dist/esm/components/OptionTag/OptionTag.js +6 -3
- package/dist/esm/components/OptionTag/OptionTag.js.map +1 -1
- package/dist/esm/components/Overlay/Overlay.js +14 -70
- package/dist/esm/components/Overlay/Overlay.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +18 -17
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/Pill/Pill.js +18 -1
- package/dist/esm/components/Pill/Pill.js.map +1 -1
- package/dist/esm/components/Pill/UrgencyCircle.js.map +1 -1
- package/dist/esm/components/Pill/UrgencyPill.js.map +1 -1
- package/dist/esm/components/Popover/Popover.js +11 -2
- package/dist/esm/components/Popover/Popover.js.map +1 -1
- package/dist/esm/components/Portal/Portal.js.map +1 -1
- package/dist/esm/components/Radio/Radio.js +21 -7
- package/dist/esm/components/Radio/Radio.js.map +1 -1
- package/dist/esm/components/Select/Select.js +8 -3
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js +14 -2
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/TabBar/TabBar.js +57 -5
- package/dist/esm/components/TabBar/TabBar.js.map +1 -1
- package/dist/esm/components/TabbedSection/Tabs.js +59 -6
- package/dist/esm/components/TabbedSection/Tabs.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +50 -6
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/TextArea/TextArea.js +19 -4
- package/dist/esm/components/TextArea/TextArea.js.map +1 -1
- package/dist/esm/components/TimeInput/TimeInput.js +13 -7
- package/dist/esm/components/TimeInput/TimeInput.js.map +1 -1
- package/dist/esm/components/TippyTooltip/mergePlugins.js.map +1 -1
- package/dist/esm/components/TippyTooltip/plugIns/escPlugin.js.map +1 -1
- package/dist/esm/components/Toggle/Toggle.js +23 -6
- package/dist/esm/components/Toggle/Toggle.js.map +1 -1
- package/dist/esm/components/Tooltip/SafePolygon.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +20 -4
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/Tooltip/styles.js.map +1 -1
- package/dist/esm/components/Tooltip/usePosition.js.map +1 -1
- package/dist/esm/components/Tooltip/useTooltip.js.map +1 -1
- package/dist/esm/components/Tooltip/utils.js.map +1 -1
- package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +45 -0
- package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/esm/components/VisuallyHidden/index.js +2 -0
- package/dist/esm/components/VisuallyHidden/index.js.map +1 -0
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/hooks/index.js +1 -0
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/useId.js +32 -0
- package/dist/esm/hooks/useId.js.map +1 -0
- package/dist/esm/hooks/useOnClickOutside.js.map +1 -1
- package/dist/esm/layout/ResponsiveLayout/responsiveLayout.js.map +1 -1
- package/dist/esm/layout/Stack.js.map +1 -1
- package/dist/esm/structure/AppSidebar/AppSidebar.js +6 -5
- package/dist/esm/structure/AppSidebar/AppSidebar.js.map +1 -1
- package/dist/esm/style/theme/helpers.js.map +1 -1
- package/dist/esm/utils/dpName.js.map +1 -1
- package/dist/esm/utils/getInitials.js.map +1 -1
- package/dist/esm/utils/getRandomColor.js.map +1 -1
- package/dist/esm/utils/mergeRefs.js.map +1 -1
- package/dist/esm/utils/throttle.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +6 -1
package/dist/deskpro-ui.d.ts
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/// <reference types="@typescript/lib-dom" />
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
6
|
import type { AnchorHTMLAttributes } from 'react';
|
|
7
|
+
import type { AriaAttributes } from 'react';
|
|
10
8
|
import type { ButtonHTMLAttributes } from 'react';
|
|
11
9
|
import type { ChangeEvent } from 'react';
|
|
12
10
|
import type { ComponentProps } from 'react';
|
|
@@ -16,13 +14,14 @@ import { CSSProperties } from 'react';
|
|
|
16
14
|
import type { CSSProperties as CSSProperties_2 } from 'styled-components';
|
|
17
15
|
import { DefaultTheme } from 'styled-components';
|
|
18
16
|
import { Dispatch } from 'react';
|
|
17
|
+
import type { ElementType } from 'react';
|
|
19
18
|
import type { ErrorMessageProps } from 'formik';
|
|
20
19
|
import type { FieldHelperProps } from 'formik';
|
|
21
20
|
import type { FieldHookConfig } from 'formik';
|
|
22
21
|
import type { FieldInputProps } from 'formik';
|
|
23
22
|
import type { FieldMetaProps } from 'formik';
|
|
24
23
|
import { FlattenInterpolation } from 'styled-components';
|
|
25
|
-
import
|
|
24
|
+
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
26
25
|
import { ForwardRefComponent } from 'framer-motion';
|
|
27
26
|
import { ForwardRefExoticComponent } from 'react';
|
|
28
27
|
import { GlobalStyleComponent } from 'styled-components';
|
|
@@ -32,6 +31,7 @@ import { HTMLMotionProps } from 'framer-motion';
|
|
|
32
31
|
import type { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
33
32
|
import type { InputHTMLAttributes } from 'react';
|
|
34
33
|
import { JSX as JSX_2 } from 'react';
|
|
34
|
+
import type { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
35
35
|
import type { LabelHTMLAttributes } from 'react';
|
|
36
36
|
import type { MotionStyle } from 'framer-motion';
|
|
37
37
|
import type { MouseEvent as MouseEvent_2 } from 'react';
|
|
@@ -78,7 +78,7 @@ export declare type AllButtonIntents = "primary" | "secondary" | "tertiary" | "m
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
export declare const AnchorButton: StyledComponent<React_2.ForwardRefExoticComponent<HTMLAnchorButtonProps & CommonButtonProps & {
|
|
81
|
-
disabled?: boolean
|
|
81
|
+
disabled?: boolean;
|
|
82
82
|
} & React_2.RefAttributes<HTMLAnchorElement>>, DefaultTheme, {}, never>;
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -164,21 +164,21 @@ export declare interface AppCardSimpleProps {
|
|
|
164
164
|
* @public
|
|
165
165
|
*/
|
|
166
166
|
export declare const AppSidebar: {
|
|
167
|
-
Container: ForwardRefExoticComponent<AppSidebarContainerProps & RefAttributes<
|
|
168
|
-
Header: ({ title, titleControls, controls, containerStyles, }: AppSidebarHeaderProps) => JSX_2.Element;
|
|
167
|
+
Container: ForwardRefExoticComponent<AppSidebarContainerProps & RefAttributes<HTMLElement>>;
|
|
168
|
+
Header: ({ title, titleControls, controls, containerStyles, titleLevel, }: AppSidebarHeaderProps) => JSX_2.Element;
|
|
169
169
|
SubHeader: ({ title, controls, }: {
|
|
170
|
-
title: ReactNode;
|
|
170
|
+
title: string | ReactNode;
|
|
171
171
|
controls?: ReactNode;
|
|
172
172
|
}) => JSX_2.Element;
|
|
173
173
|
InputWrapper: ({ noBorder, children }: AppSidebarInputWrapperProps) => JSX_2.Element;
|
|
174
174
|
Body: ({ children, borderRight, isScrollEnabled, }: {
|
|
175
175
|
children?: ReactNode;
|
|
176
|
-
borderRight?: boolean
|
|
177
|
-
isScrollEnabled?: boolean
|
|
176
|
+
borderRight?: boolean;
|
|
177
|
+
isScrollEnabled?: boolean;
|
|
178
178
|
}) => JSX_2.Element;
|
|
179
179
|
Footer: ({ children, padding }: {
|
|
180
180
|
children?: ReactNode;
|
|
181
|
-
padding?: string
|
|
181
|
+
padding?: string;
|
|
182
182
|
}) => JSX_2.Element;
|
|
183
183
|
};
|
|
184
184
|
|
|
@@ -188,6 +188,8 @@ export declare const AppSidebar: {
|
|
|
188
188
|
export declare interface AppSidebarContainerProps {
|
|
189
189
|
children: ReactNode;
|
|
190
190
|
styles?: CSSProperties;
|
|
191
|
+
/** Accessible label for the navigation landmark. Defaults to "Sidebar". */
|
|
192
|
+
navigationLabel?: string;
|
|
191
193
|
}
|
|
192
194
|
|
|
193
195
|
/**
|
|
@@ -198,6 +200,8 @@ export declare interface AppSidebarHeaderProps {
|
|
|
198
200
|
titleControls?: ReactNode;
|
|
199
201
|
controls?: ReactNode;
|
|
200
202
|
containerStyles?: CSSProperties;
|
|
203
|
+
/** HTML heading level for the title. Defaults to "h2". */
|
|
204
|
+
titleLevel?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
201
205
|
}
|
|
202
206
|
|
|
203
207
|
/**
|
|
@@ -225,6 +229,12 @@ export declare interface AttachmentTagProps extends AnchorHTMLAttributes<HTMLAnc
|
|
|
225
229
|
maxWidth?: string;
|
|
226
230
|
variant?: "default" | "light";
|
|
227
231
|
isLoading?: boolean;
|
|
232
|
+
/** Accessible label for the remove button. Defaults to `Remove {filename}`. */
|
|
233
|
+
removeLabel?: string;
|
|
234
|
+
/** Accessible label for the upload spinner. Defaults to "Uploading attachment". */
|
|
235
|
+
uploadingLabel?: string;
|
|
236
|
+
/** Visually-hidden hint that the link opens in a new tab. Defaults to "(opens in new tab)". */
|
|
237
|
+
newTabLabel?: string;
|
|
228
238
|
}
|
|
229
239
|
|
|
230
240
|
/**
|
|
@@ -301,7 +311,7 @@ export declare type AvatarSize = 14 | 15 | 18 | 20 | 22 | 24 | 26 | 28 | 32 | 34
|
|
|
301
311
|
/**
|
|
302
312
|
* @public
|
|
303
313
|
*/
|
|
304
|
-
export declare function Badge({ children, count, showZero, color, max, textColor, className, }: BadgeProps): React_2.JSX.Element;
|
|
314
|
+
export declare function Badge({ children, count, showZero, color, max, textColor, className, badgeLabel, }: BadgeProps): React_2.JSX.Element;
|
|
305
315
|
|
|
306
316
|
/**
|
|
307
317
|
* @public
|
|
@@ -314,6 +324,18 @@ export declare interface BadgeProps {
|
|
|
314
324
|
showZero?: boolean;
|
|
315
325
|
textColor?: ThemeColorKey;
|
|
316
326
|
className?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Accessible label for the count badge. When provided, the badge is exposed
|
|
329
|
+
* as a meaningful element with this string as its accessible name.
|
|
330
|
+
*
|
|
331
|
+
* When omitted, the badge defaults to a label of the form
|
|
332
|
+
* `"{count} notifications"` (or `"{max}+ notifications"` when the count
|
|
333
|
+
* exceeds `max`).
|
|
334
|
+
*
|
|
335
|
+
* Pass `null` to suppress the label entirely (aria-hidden). Use this only
|
|
336
|
+
* when the count is already announced via adjacent text.
|
|
337
|
+
*/
|
|
338
|
+
badgeLabel?: string | null;
|
|
317
339
|
}
|
|
318
340
|
|
|
319
341
|
/**
|
|
@@ -361,13 +383,7 @@ export declare const Button: StyledComponent<React_2.ForwardRefExoticComponent<A
|
|
|
361
383
|
/**
|
|
362
384
|
* @public
|
|
363
385
|
*/
|
|
364
|
-
export declare const ButtonGroup: StyledComponent<"div", DefaultTheme,
|
|
365
|
-
"data-dp-name": string;
|
|
366
|
-
"data-dp-ident"?: string | undefined;
|
|
367
|
-
} & ButtonGroupProps, keyof {
|
|
368
|
-
"data-dp-name": string;
|
|
369
|
-
"data-dp-ident"?: string | undefined;
|
|
370
|
-
}>;
|
|
386
|
+
export declare const ButtonGroup: StyledComponent<"div", DefaultTheme, ButtonGroupProps, never>;
|
|
371
387
|
|
|
372
388
|
/**
|
|
373
389
|
* @public
|
|
@@ -419,7 +435,7 @@ export declare type CardSizes = "small" | "medium" | "large";
|
|
|
419
435
|
*
|
|
420
436
|
* @public
|
|
421
437
|
*/
|
|
422
|
-
export declare function CCUserTag({ displayName, avatar, email, onClose, closeIcon, avatarBackupIcon, }: CCUserTagProps): React_2.JSX.Element;
|
|
438
|
+
export declare function CCUserTag({ displayName, avatar, email, onClose, closeIcon, avatarBackupIcon, removeLabel, }: CCUserTagProps): React_2.JSX.Element;
|
|
423
439
|
|
|
424
440
|
/**
|
|
425
441
|
*
|
|
@@ -432,6 +448,9 @@ export declare interface CCUserTagProps {
|
|
|
432
448
|
onClose?: () => void;
|
|
433
449
|
closeIcon: AnyIcon;
|
|
434
450
|
avatarBackupIcon: AnyIcon;
|
|
451
|
+
/** Accessible label for the remove button. Provide a translated string for
|
|
452
|
+
* i18n. Defaults to `Remove {displayName | email | "user"}`. */
|
|
453
|
+
removeLabel?: string;
|
|
435
454
|
}
|
|
436
455
|
|
|
437
456
|
/**
|
|
@@ -561,8 +580,8 @@ declare type CssColor = Exclude<React.CSSProperties["color"], undefined>;
|
|
|
561
580
|
* @public
|
|
562
581
|
*/
|
|
563
582
|
export declare const DatePickerInputWithDisplay: StyledComponent<React_2.ForwardRefExoticComponent<DatePickerInputWithDisplayProps & React_2.RefAttributes<HTMLInputElement>>, DefaultTheme, {
|
|
564
|
-
isVisibleRightIcon?: boolean
|
|
565
|
-
error?: boolean
|
|
583
|
+
isVisibleRightIcon?: boolean;
|
|
584
|
+
error?: boolean;
|
|
566
585
|
}, never>;
|
|
567
586
|
|
|
568
587
|
/**
|
|
@@ -810,7 +829,7 @@ export declare interface DeskproTheme {
|
|
|
810
829
|
* </Dialog>
|
|
811
830
|
* ```
|
|
812
831
|
*/
|
|
813
|
-
export declare function Dialog({ isOpen, canClickOutsideClose, canEscClose, children, hasBackdrop, onRequestClose, autofocus, size, zIndex, }: DialogProps): JSX.Element;
|
|
832
|
+
export declare function Dialog({ isOpen, canClickOutsideClose, canEscClose, children, hasBackdrop, onRequestClose, autofocus, size, zIndex, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: DialogProps): JSX.Element;
|
|
814
833
|
|
|
815
834
|
/**
|
|
816
835
|
* @public
|
|
@@ -840,6 +859,13 @@ export declare interface DialogHeaderProps {
|
|
|
840
859
|
*/
|
|
841
860
|
export declare interface DialogProps extends Omit<OverlayProps, "scrollable"> {
|
|
842
861
|
size?: DialogSize;
|
|
862
|
+
/** Accessible name for the dialog. Provide this (or `aria-labelledby`) so
|
|
863
|
+
* screen readers announce what the dialog is. */
|
|
864
|
+
"aria-label"?: string;
|
|
865
|
+
/** Id of the element (e.g. the dialog title) that labels the dialog. */
|
|
866
|
+
"aria-labelledby"?: string;
|
|
867
|
+
/** Id of the element that describes the dialog. */
|
|
868
|
+
"aria-describedby"?: string;
|
|
843
869
|
}
|
|
844
870
|
|
|
845
871
|
export declare type DialogSize = "small" | "medium" | "large" | "xLarge" | "xxLarge" | "fullPage" | "overlay";
|
|
@@ -898,13 +924,7 @@ export declare interface DivAsInputWithDisplayProps extends HTMLAttributes<HTMLD
|
|
|
898
924
|
/**
|
|
899
925
|
* @public
|
|
900
926
|
*/
|
|
901
|
-
export declare const Divider: StyledComponent<"div", DefaultTheme,
|
|
902
|
-
"data-dp-name": string;
|
|
903
|
-
"data-dp-ident"?: string | undefined;
|
|
904
|
-
} & DividerProps, keyof {
|
|
905
|
-
"data-dp-name": string;
|
|
906
|
-
"data-dp-ident"?: string | undefined;
|
|
907
|
-
}>;
|
|
927
|
+
export declare const Divider: StyledComponent<"div", DefaultTheme, DividerProps, never>;
|
|
908
928
|
|
|
909
929
|
/**
|
|
910
930
|
* @public
|
|
@@ -943,7 +963,7 @@ export declare type DpCustomIconsId = "active-call" | "admin" | "advanced-filter
|
|
|
943
963
|
* </Drilldown>
|
|
944
964
|
* ```
|
|
945
965
|
*/
|
|
946
|
-
export declare function Drilldown<T, TargetRef extends HTMLElement>({ type, children, options, inputValue, searchPlaceholder, placement, showInternalSearch, isLoading, usePortal, closeOnSelect, isOpen: isOpenProp, renderCreateNewOption, onCreateNewOption, hideIcons, hidePaths, iconColumnWidth, containerWidth, containerHeight, onSelectOption, onInputChange, onFetchMore, onClear, onClose, onOpen, onInputReturn, tabProps, disabled, fetchMoreText, autoscrollText, emptySearchResultsText, externalLinkIcon, selectedIcon, layer, animationDuration, onDrilldown, onDrilldownAnimationEnd, onDrillupAnimationEnd, backText, filterPredicate, includeParentsInSearch, }: DrilldownProps<T, TargetRef>): JSX.Element;
|
|
966
|
+
export declare function Drilldown<T, TargetRef extends HTMLElement>({ type, children, options, inputValue, searchPlaceholder, placement, showInternalSearch, isLoading, usePortal, closeOnSelect, isOpen: isOpenProp, renderCreateNewOption, onCreateNewOption, hideIcons, hidePaths, iconColumnWidth, containerWidth, containerHeight, onSelectOption, onInputChange, onFetchMore, onClear, onClose, onOpen, onInputReturn, tabProps, disabled, fetchMoreText, autoscrollText, emptySearchResultsText, externalLinkIcon, selectedIcon, layer, animationDuration, onDrilldown, onDrilldownAnimationEnd, onDrillupAnimationEnd, backText, backLabel, clearLabel, expandLabel, filterPredicate, includeParentsInSearch, }: DrilldownProps<T, TargetRef>): JSX.Element;
|
|
947
967
|
|
|
948
968
|
export declare interface DrilldownBaseProps<T, TargetRef extends HTMLElement> {
|
|
949
969
|
/** Event handler for when an option is selected */
|
|
@@ -1017,6 +1037,15 @@ export declare interface DrilldownBaseProps<T, TargetRef extends HTMLElement> {
|
|
|
1017
1037
|
onDrillupAnimationEnd?: (pathToSelectedItem: PathToSelectedItem) => Promise<void>;
|
|
1018
1038
|
/** The text to show for the back button */
|
|
1019
1039
|
backText: ReactNode;
|
|
1040
|
+
/** Accessible label for the back button. Defaults to `backText` (when it is a
|
|
1041
|
+
* string), then "Go back". Provide a translated string for i18n. */
|
|
1042
|
+
backLabel?: string;
|
|
1043
|
+
/** Accessible label for the search "clear" button. Provide a translated
|
|
1044
|
+
* string for i18n. Defaults to "Clear". */
|
|
1045
|
+
clearLabel?: string;
|
|
1046
|
+
/** Accessible label for an item's "expand subitems" button. Provide a
|
|
1047
|
+
* translated string for i18n. Defaults to "Expand". */
|
|
1048
|
+
expandLabel?: string;
|
|
1020
1049
|
includeParentsInSearch?: boolean;
|
|
1021
1050
|
}
|
|
1022
1051
|
|
|
@@ -1025,14 +1054,14 @@ export declare interface DrilldownBaseProps<T, TargetRef extends HTMLElement> {
|
|
|
1025
1054
|
*/
|
|
1026
1055
|
export declare const DrilldownContainer: StyledComponent<ForwardRefComponent<HTMLDivElement, HTMLMotionProps<"div">>, DefaultTheme, {
|
|
1027
1056
|
"data-dp-name": string;
|
|
1028
|
-
"data-dp-ident"?: string
|
|
1057
|
+
"data-dp-ident"?: string;
|
|
1029
1058
|
} & {
|
|
1030
|
-
containerWidth?: number
|
|
1031
|
-
containerHeight?: number
|
|
1059
|
+
containerWidth?: number;
|
|
1060
|
+
containerHeight?: number;
|
|
1032
1061
|
layer: keyof Layers;
|
|
1033
1062
|
}, keyof {
|
|
1034
1063
|
"data-dp-name": string;
|
|
1035
|
-
"data-dp-ident"?: string
|
|
1064
|
+
"data-dp-ident"?: string;
|
|
1036
1065
|
}>;
|
|
1037
1066
|
|
|
1038
1067
|
/**
|
|
@@ -1145,7 +1174,7 @@ export declare interface DrilldownHeaderType {
|
|
|
1145
1174
|
* @public
|
|
1146
1175
|
*/
|
|
1147
1176
|
export declare const DrilldownIcon: StyledComponent<"div", DefaultTheme, {
|
|
1148
|
-
iconColumnWidth?: number
|
|
1177
|
+
iconColumnWidth?: number;
|
|
1149
1178
|
}, never>;
|
|
1150
1179
|
|
|
1151
1180
|
/**
|
|
@@ -1156,7 +1185,7 @@ export declare const DrilldownInternalSearchInputContainer: StyledComponent<"div
|
|
|
1156
1185
|
/**
|
|
1157
1186
|
* @public
|
|
1158
1187
|
*/
|
|
1159
|
-
export declare function DrilldownItem<T = unknown>({ value, active, onSelect, onSelectIcon, onClickSubItem, hideIcons, iconColumnWidth, selectedIcon, externalLinkIcon, handleDrilldown, dataKey, subItems, isSearchResult, inputValue, flatItemTree, hidePaths, hasSelectedItems, hasExpandableItems, hasItemsWithIcons, setActiveItem, }: DrilldownItemProps<T>): JSX.Element;
|
|
1188
|
+
export declare function DrilldownItem<T = unknown>({ value, active, onSelect, onSelectIcon, onClickSubItem, hideIcons, iconColumnWidth, selectedIcon, externalLinkIcon, handleDrilldown, dataKey, subItems, isSearchResult, inputValue, flatItemTree, hidePaths, hasSelectedItems, hasExpandableItems, hasItemsWithIcons, setActiveItem, expandLabel, }: DrilldownItemProps<T>): JSX.Element;
|
|
1160
1189
|
|
|
1161
1190
|
/**
|
|
1162
1191
|
* @public
|
|
@@ -1210,6 +1239,8 @@ export declare interface DrilldownItemProps<T = unknown> {
|
|
|
1210
1239
|
hasExpandableItems: boolean;
|
|
1211
1240
|
hasItemsWithIcons: boolean;
|
|
1212
1241
|
setActiveItem?: (item: ActiveItem<T>) => void;
|
|
1242
|
+
/** Accessible label for the "expand subitems" button. Defaults to "Expand". */
|
|
1243
|
+
expandLabel?: string;
|
|
1213
1244
|
}
|
|
1214
1245
|
|
|
1215
1246
|
/**
|
|
@@ -1226,7 +1257,7 @@ export declare type DrilldownItemType<T = unknown> = DrilldownItemTreeType<T> |
|
|
|
1226
1257
|
* @public
|
|
1227
1258
|
*/
|
|
1228
1259
|
export declare const DrilldownLabel: StyledComponent<"div", DefaultTheme, {
|
|
1229
|
-
selected?: boolean
|
|
1260
|
+
selected?: boolean;
|
|
1230
1261
|
}, never>;
|
|
1231
1262
|
|
|
1232
1263
|
/**
|
|
@@ -1255,7 +1286,7 @@ export declare type DrilldownProps<T, TargetRef extends HTMLElement> = Drilldown
|
|
|
1255
1286
|
/**
|
|
1256
1287
|
* @public
|
|
1257
1288
|
*/
|
|
1258
|
-
export declare function drilldownRenderOptions<T = string>({ options, handleSelectOption, handleDrilldown, activeItem, selectedIcon, externalLinkIcon, hideIcons, iconColumnWidth, hasSelectedItems, hasExpandableItems, hasItemsWithIcons, setActiveItem, }: DrilldownRenderOptionsProps<T>): (value: DrilldownItemType<T>, index: number, array: DrilldownItemType<T>[]) => ReactNode;
|
|
1289
|
+
export declare function drilldownRenderOptions<T = string>({ options, handleSelectOption, handleDrilldown, activeItem, selectedIcon, externalLinkIcon, hideIcons, iconColumnWidth, hasSelectedItems, hasExpandableItems, hasItemsWithIcons, setActiveItem, expandLabel, }: DrilldownRenderOptionsProps<T>): (value: DrilldownItemType<T>, index: number, array: DrilldownItemType<T>[]) => ReactNode;
|
|
1259
1290
|
|
|
1260
1291
|
/**
|
|
1261
1292
|
* @public
|
|
@@ -1273,6 +1304,8 @@ export declare type DrilldownRenderOptionsProps<T> = {
|
|
|
1273
1304
|
hasExpandableItems: boolean;
|
|
1274
1305
|
hasItemsWithIcons: boolean;
|
|
1275
1306
|
setActiveItem?: (item: ActiveItem<T>) => void;
|
|
1307
|
+
/** Accessible label for each item's "expand subitems" button. */
|
|
1308
|
+
expandLabel?: string;
|
|
1276
1309
|
};
|
|
1277
1310
|
|
|
1278
1311
|
/**
|
|
@@ -1479,22 +1512,22 @@ export declare type DrilldownValueType<OriginalValue> = DrilldownValueTreeType<O
|
|
|
1479
1512
|
* </Dropdown>
|
|
1480
1513
|
* ```
|
|
1481
1514
|
*/
|
|
1482
|
-
export declare function Dropdown<T, TargetRef extends HTMLElement = any>({ children, options, stickyHeaderOptions, stickyFooterOptions, inputValue, searchPlaceholder, placement, showInternalSearch, isLoading, usePortal, closeOnSelect, isOpen: isOpenProp, renderCreateNewOption, onCreateNewOption, hideIcons, iconColumnWidth, containerWidth, containerHeight, containerRef, onSelectOption, onInputChange, onFetchMore, onClear, onClose, onOpen, optionsRenderer, onInputReturn, tabProps, disabled, fetchMoreText, autoscrollText, externalLinkIcon, selectedIcon, layer, containerMaxHeight, openChildrenOnMouseOver, isSubItemDropdown, openSubmenuOnButtonHover, }: DropdownProps<T, TargetRef>): JSX.Element;
|
|
1515
|
+
export declare function Dropdown<T, TargetRef extends HTMLElement = any>({ children, options, stickyHeaderOptions, stickyFooterOptions, inputValue, searchPlaceholder, clearLabel, expandLabel, placement, showInternalSearch, isLoading, usePortal, closeOnSelect, isOpen: isOpenProp, renderCreateNewOption, onCreateNewOption, hideIcons, iconColumnWidth, containerWidth, containerHeight, containerRef, onSelectOption, onInputChange, onFetchMore, onClear, onClose, onOpen, optionsRenderer, onInputReturn, tabProps, disabled, fetchMoreText, autoscrollText, externalLinkIcon, selectedIcon, layer, containerMaxHeight, openChildrenOnMouseOver, isSubItemDropdown, openSubmenuOnButtonHover, }: DropdownProps<T, TargetRef>): JSX.Element;
|
|
1483
1516
|
|
|
1484
1517
|
/**
|
|
1485
1518
|
* @public
|
|
1486
1519
|
*/
|
|
1487
1520
|
export declare const DropdownContainer: StyledComponent<ForwardRefComponent<HTMLDivElement, HTMLMotionProps<"div">>, DefaultTheme, {
|
|
1488
1521
|
"data-dp-name": string;
|
|
1489
|
-
"data-dp-ident"?: string
|
|
1522
|
+
"data-dp-ident"?: string;
|
|
1490
1523
|
} & {
|
|
1491
|
-
containerWidth?: number
|
|
1492
|
-
containerHeight?: number
|
|
1524
|
+
containerWidth?: number;
|
|
1525
|
+
containerHeight?: number;
|
|
1493
1526
|
layer: keyof Layers;
|
|
1494
|
-
containerMaxHeight?: string | number
|
|
1527
|
+
containerMaxHeight?: string | number;
|
|
1495
1528
|
}, keyof {
|
|
1496
1529
|
"data-dp-name": string;
|
|
1497
|
-
"data-dp-ident"?: string
|
|
1530
|
+
"data-dp-ident"?: string;
|
|
1498
1531
|
}>;
|
|
1499
1532
|
|
|
1500
1533
|
/**
|
|
@@ -1566,6 +1599,10 @@ export declare interface DropdownItemProps<T = unknown> {
|
|
|
1566
1599
|
setActiveValueIndex: (value: number | "createNew") => void;
|
|
1567
1600
|
valueOptions: DropdownValueType<T>[];
|
|
1568
1601
|
openSubmenuOnButtonHover?: boolean;
|
|
1602
|
+
/** Stable id for the option element, used for aria-activedescendant */
|
|
1603
|
+
optionId?: string;
|
|
1604
|
+
/** Accessible label for the "expand subitems" button. */
|
|
1605
|
+
expandLabel?: string;
|
|
1569
1606
|
}
|
|
1570
1607
|
|
|
1571
1608
|
/**
|
|
@@ -1607,6 +1644,12 @@ export declare interface DropdownProps<T, TargetRef extends HTMLElement> {
|
|
|
1607
1644
|
expandingDrillDown?: boolean;
|
|
1608
1645
|
/** Placeholder for search input box */
|
|
1609
1646
|
searchPlaceholder?: string;
|
|
1647
|
+
/** Accessible label for the search "clear" button. Provide a translated
|
|
1648
|
+
* string for i18n. Defaults to "Clear". */
|
|
1649
|
+
clearLabel?: string;
|
|
1650
|
+
/** Accessible label for an item's "expand subitems" button. Provide a
|
|
1651
|
+
* translated string for i18n. Defaults to "Expand". */
|
|
1652
|
+
expandLabel?: string;
|
|
1610
1653
|
/** Whether the dropdown should close on selections. default true */
|
|
1611
1654
|
closeOnSelect?: boolean;
|
|
1612
1655
|
/** Whether to hide item's icon for the whole list */
|
|
@@ -1684,7 +1727,7 @@ export declare interface DropdownProps<T, TargetRef extends HTMLElement> {
|
|
|
1684
1727
|
/**
|
|
1685
1728
|
* @public
|
|
1686
1729
|
*/
|
|
1687
|
-
export declare function dropdownRenderOptions<T = string>({ handleSelectOption, activeItem, activeSubItem, setActiveSubItem, fetchMoreText, autoscrollText, selectedIcon, externalLinkIcon, hasSelectedItems, hasExpandableItems, hideIcons, iconColumnWidth, openChildrenOnMouseOver, layer, setActiveValueIndex, valueOptions, openSubmenuOnButtonHover, }: DropdownRenderOptionsProps<T>): (value: DropdownItemType<T>, index: number, array: DropdownItemType<T>[]) => JSX.Element | null;
|
|
1730
|
+
export declare function dropdownRenderOptions<T = string>({ handleSelectOption, activeItem, activeSubItem, setActiveSubItem, fetchMoreText, autoscrollText, selectedIcon, externalLinkIcon, hasSelectedItems, hasExpandableItems, hideIcons, iconColumnWidth, openChildrenOnMouseOver, layer, setActiveValueIndex, valueOptions, openSubmenuOnButtonHover, listboxId, optionIndexOffset, expandLabel, }: DropdownRenderOptionsProps<T>): (value: DropdownItemType<T>, index: number, array: DropdownItemType<T>[]) => JSX.Element | null;
|
|
1688
1731
|
|
|
1689
1732
|
/**
|
|
1690
1733
|
* @public
|
|
@@ -1707,6 +1750,12 @@ export declare type DropdownRenderOptionsProps<T = string> = {
|
|
|
1707
1750
|
setActiveValueIndex: (value: number | "createNew") => void;
|
|
1708
1751
|
valueOptions: DropdownValueType<T>[];
|
|
1709
1752
|
openSubmenuOnButtonHover?: boolean;
|
|
1753
|
+
/** Listbox element id, used to derive stable option ids */
|
|
1754
|
+
listboxId?: string;
|
|
1755
|
+
/** Index offset within allValueOptions for the first value item in this batch */
|
|
1756
|
+
optionIndexOffset?: number;
|
|
1757
|
+
/** Accessible label for an item's "expand subitems" button. */
|
|
1758
|
+
expandLabel?: string;
|
|
1710
1759
|
};
|
|
1711
1760
|
|
|
1712
1761
|
/**
|
|
@@ -1878,7 +1927,7 @@ export declare const getTextareaNumberOfLines: (element: HTMLTextAreaElement | H
|
|
|
1878
1927
|
export declare const GlobalStyles: GlobalStyleComponent< {}, DefaultTheme>;
|
|
1879
1928
|
|
|
1880
1929
|
export declare const GroupByButton: React_2.ForwardRefExoticComponent<HTMLButtonProps & Omit<CommonButtonProps, "intent"> & {
|
|
1881
|
-
intent?: ButtonIntent
|
|
1930
|
+
intent?: ButtonIntent;
|
|
1882
1931
|
} & GroupByProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1883
1932
|
|
|
1884
1933
|
/**
|
|
@@ -2234,7 +2283,7 @@ export declare type InaccessibleIconButton = {
|
|
|
2234
2283
|
* the container has scrolled to the top or bottom.
|
|
2235
2284
|
* @public
|
|
2236
2285
|
*/
|
|
2237
|
-
export declare function Infinite({ children, reverse, anchor, onFetchMore, onFetchMoreStart, status, startStatus, maxHeight, scrollSideEffect, width, fetchMoreText, autoscrollText, scrollRef: _scrollRef, justify, onResize, onJumpToStart, spinnerSize, }: InfiniteProps): React_2.JSX.Element;
|
|
2286
|
+
export declare function Infinite({ children, reverse, anchor, onFetchMore, onFetchMoreStart, status, startStatus, maxHeight, scrollSideEffect, width, fetchMoreText, autoscrollText, scrollRef: _scrollRef, justify, onResize, onJumpToStart, spinnerSize, loadingLabel, }: InfiniteProps): React_2.JSX.Element;
|
|
2238
2287
|
|
|
2239
2288
|
/**
|
|
2240
2289
|
* @public
|
|
@@ -2263,6 +2312,9 @@ export declare interface InfiniteProps {
|
|
|
2263
2312
|
onResize?: () => void;
|
|
2264
2313
|
onJumpToStart?: () => void;
|
|
2265
2314
|
spinnerSize?: SpinnerSize;
|
|
2315
|
+
/** Accessible label for the "loading more items" live region. Provide a
|
|
2316
|
+
* translated string for i18n. Defaults to "Loading more". */
|
|
2317
|
+
loadingLabel?: string;
|
|
2266
2318
|
}
|
|
2267
2319
|
|
|
2268
2320
|
/**
|
|
@@ -2275,7 +2327,7 @@ export declare type InfiniteScrollStatus = "loading" | "hasNextPage" | "end" | "
|
|
|
2275
2327
|
* the container has scrolled to the top or bottom.
|
|
2276
2328
|
* @public
|
|
2277
2329
|
*/
|
|
2278
|
-
export declare function InfiniteTopBottom({ children, reverse, anchor, onFetchMoreTop, onFetchMoreBottom, topStatus, bottomStatus, maxHeight, scrollSideEffect, onReAttach, newElements, newElementsText, autoscrollText, width, }: InfiniteTopBottomProps): React_2.JSX.Element;
|
|
2330
|
+
export declare function InfiniteTopBottom({ children, reverse, anchor, onFetchMoreTop, onFetchMoreBottom, topStatus, bottomStatus, maxHeight, scrollSideEffect, onReAttach, newElements, newElementsText, autoscrollText, width, loadingLabel, }: InfiniteTopBottomProps): React_2.JSX.Element;
|
|
2279
2331
|
|
|
2280
2332
|
/**
|
|
2281
2333
|
* @public
|
|
@@ -2298,6 +2350,9 @@ export declare interface InfiniteTopBottomProps {
|
|
|
2298
2350
|
autoscrollText: ReactNode;
|
|
2299
2351
|
scrollSideEffect?: () => void;
|
|
2300
2352
|
width?: string;
|
|
2353
|
+
/** Accessible label for the "loading more items" live regions. Provide a
|
|
2354
|
+
* translated string for i18n. Defaults to "Loading more". */
|
|
2355
|
+
loadingLabel?: string;
|
|
2301
2356
|
}
|
|
2302
2357
|
|
|
2303
2358
|
/**
|
|
@@ -2377,7 +2432,7 @@ export declare function isIconProps(props: unknown): props is IconProps;
|
|
|
2377
2432
|
/**
|
|
2378
2433
|
* @public
|
|
2379
2434
|
*/
|
|
2380
|
-
export declare const isV2Icon: (icon: unknown) => icon is
|
|
2435
|
+
export declare const isV2Icon: (icon: unknown) => icon is IconType;
|
|
2381
2436
|
|
|
2382
2437
|
/**
|
|
2383
2438
|
* @public
|
|
@@ -2417,7 +2472,7 @@ type: string;
|
|
|
2417
2472
|
* @public
|
|
2418
2473
|
*/
|
|
2419
2474
|
export declare const LabelButton: StyledComponent<React_2.ForwardRefExoticComponent<HTMLLabelButtonProps & CommonButtonProps & {
|
|
2420
|
-
disabled?: boolean
|
|
2475
|
+
disabled?: boolean;
|
|
2421
2476
|
} & React_2.RefAttributes<HTMLLabelElement>>, DefaultTheme, {}, never>;
|
|
2422
2477
|
|
|
2423
2478
|
/**
|
|
@@ -2517,6 +2572,30 @@ export declare type Layers = {
|
|
|
2517
2572
|
*/
|
|
2518
2573
|
export declare const lightTheme: DeskproTheme;
|
|
2519
2574
|
|
|
2575
|
+
/**
|
|
2576
|
+
* An accessible anchor wrapper around StyledA/UnstyledA that automatically:
|
|
2577
|
+
* - ensures `rel` includes "noopener noreferrer" when `target="_blank"`
|
|
2578
|
+
* - appends a visually-hidden "(opens in new tab)" hint for screen readers
|
|
2579
|
+
*
|
|
2580
|
+
* @public
|
|
2581
|
+
*/
|
|
2582
|
+
export declare const Link: React_2.ForwardRefExoticComponent<LinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* Props for the accessible Link component.
|
|
2586
|
+
* @public
|
|
2587
|
+
*/
|
|
2588
|
+
export declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
2589
|
+
/** When true the link text style is underlined. */
|
|
2590
|
+
underline?: boolean;
|
|
2591
|
+
/** Use "unstyled" to render without the cyan colour treatment. */
|
|
2592
|
+
variant?: "default" | "unstyled";
|
|
2593
|
+
/** Visually-hidden hint appended for `target="_blank"` links so screen readers
|
|
2594
|
+
* announce that the link opens in a new tab. Provide a translated string for
|
|
2595
|
+
* i18n. Defaults to "(opens in new tab)". */
|
|
2596
|
+
newTabLabel?: string;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2520
2599
|
/**
|
|
2521
2600
|
* @public
|
|
2522
2601
|
*/
|
|
@@ -2560,25 +2639,52 @@ export declare interface LoadingAttachmentProps {
|
|
|
2560
2639
|
}
|
|
2561
2640
|
|
|
2562
2641
|
/**
|
|
2642
|
+
* A skeleton placeholder block. Decorative — hidden from assistive technology.
|
|
2643
|
+
* Wrap one or more LoadingBlocks in {@link LoadingState} to announce loading to screen readers.
|
|
2563
2644
|
* @public
|
|
2564
2645
|
*/
|
|
2565
2646
|
export declare const LoadingBlock: StyledComponent<"div", DefaultTheme, {
|
|
2647
|
+
"aria-hidden": boolean | "true";
|
|
2566
2648
|
"data-dp-name": string;
|
|
2567
|
-
"data-dp-ident"?: string
|
|
2649
|
+
"data-dp-ident"?: string;
|
|
2568
2650
|
} & {
|
|
2569
|
-
height?: number
|
|
2570
|
-
width?:
|
|
2571
|
-
round?: boolean
|
|
2572
|
-
animate?: boolean
|
|
2573
|
-
},
|
|
2574
|
-
"data-dp-name": string;
|
|
2575
|
-
"data-dp-ident"?: string | undefined;
|
|
2576
|
-
}>;
|
|
2651
|
+
height?: number;
|
|
2652
|
+
width?: number | string | "stretch";
|
|
2653
|
+
round?: boolean;
|
|
2654
|
+
animate?: boolean;
|
|
2655
|
+
}, "aria-hidden" | "data-dp-ident" | "data-dp-name">;
|
|
2577
2656
|
|
|
2578
2657
|
/**
|
|
2658
|
+
* A live region that wraps skeleton {@link LoadingBlock} placeholders and
|
|
2659
|
+
* announces a loading state to assistive technology exactly once — instead of
|
|
2660
|
+
* reading every individual skeleton shape.
|
|
2661
|
+
*
|
|
2662
|
+
* ```tsx
|
|
2663
|
+
* <LoadingState>
|
|
2664
|
+
* <LoadingBlock width="stretch" />
|
|
2665
|
+
* <LoadingBlock width={200} />
|
|
2666
|
+
* </LoadingState>
|
|
2667
|
+
* ```
|
|
2668
|
+
*
|
|
2579
2669
|
* @public
|
|
2580
2670
|
*/
|
|
2581
|
-
export declare function
|
|
2671
|
+
export declare function LoadingState({ children, label }: LoadingStateProps): React_2.JSX.Element;
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* @public
|
|
2675
|
+
*/
|
|
2676
|
+
export declare interface LoadingStateProps {
|
|
2677
|
+
children: ReactNode;
|
|
2678
|
+
/** Accessible label announced to screen readers. Defaults to "Loading". */
|
|
2679
|
+
label?: string;
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
* Menu container implementing the WAI-ARIA menu pattern.
|
|
2684
|
+
* Handles roving tabindex keyboard navigation (ArrowUp/Down/Home/End).
|
|
2685
|
+
* @public
|
|
2686
|
+
*/
|
|
2687
|
+
export declare function Menu({ fill, hasElevation, children, type, onKeyDown, ...props }: MenuProps): React_2.JSX.Element;
|
|
2582
2688
|
|
|
2583
2689
|
/**
|
|
2584
2690
|
* @public
|
|
@@ -2594,6 +2700,8 @@ export declare type MenuDividerProps = HTMLAttributes<HTMLLIElement> & {
|
|
|
2594
2700
|
};
|
|
2595
2701
|
|
|
2596
2702
|
/**
|
|
2703
|
+
* Menu item implementing the WAI-ARIA menuitem role with keyboard support.
|
|
2704
|
+
* When `children` are provided the item acts as a submenu trigger.
|
|
2597
2705
|
* @public
|
|
2598
2706
|
*/
|
|
2599
2707
|
export declare const MenuItem: React_2.ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -2649,12 +2757,12 @@ export declare type MessageCardType = "pending" | "agent" | "user";
|
|
|
2649
2757
|
/**
|
|
2650
2758
|
* @public
|
|
2651
2759
|
*/
|
|
2652
|
-
export declare function Modal({ isOpen, canClickOutsideClose, canEscClose, children, hasBackdrop, onRequestClose, closeIcon, autofocus, height, width, hideClose, top, bottom, left, right, zIndex, size, header, content, footer, }: ModalProps): React_2.JSX.Element;
|
|
2760
|
+
export declare function Modal({ isOpen, canClickOutsideClose, canEscClose, children, hasBackdrop, onRequestClose, closeIcon, closeLabel, autofocus, height, width, hideClose, top, bottom, left, right, zIndex, size, header, content, footer, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: ModalProps): React_2.JSX.Element;
|
|
2653
2761
|
|
|
2654
2762
|
/**
|
|
2655
2763
|
* @public
|
|
2656
2764
|
*/
|
|
2657
|
-
export declare function ModalHeader({ title, backgroundColor, color, children, size }: ModalHeaderProps): React_2.JSX.Element;
|
|
2765
|
+
export declare function ModalHeader({ title, backgroundColor, color, children, size, titleId, }: ModalHeaderProps): React_2.JSX.Element;
|
|
2658
2766
|
|
|
2659
2767
|
/**
|
|
2660
2768
|
* @public
|
|
@@ -2665,6 +2773,8 @@ export declare interface ModalHeaderProps {
|
|
|
2665
2773
|
color?: ThemeColorKey;
|
|
2666
2774
|
children?: ReactNode;
|
|
2667
2775
|
size?: HeaderSize;
|
|
2776
|
+
/** Id applied to the title, so a Modal can reference it via aria-labelledby. */
|
|
2777
|
+
titleId?: string;
|
|
2668
2778
|
}
|
|
2669
2779
|
|
|
2670
2780
|
/**
|
|
@@ -2685,6 +2795,16 @@ export declare interface ModalProps extends Omit<OverlayProps, "scrollable"> {
|
|
|
2685
2795
|
header?: React_2.ReactNode;
|
|
2686
2796
|
content?: React_2.ReactNode;
|
|
2687
2797
|
footer?: React_2.ReactNode;
|
|
2798
|
+
/** Accessible label for the close button. Provide a translated string for
|
|
2799
|
+
* i18n. Defaults to "Close". */
|
|
2800
|
+
closeLabel?: string;
|
|
2801
|
+
/** Accessible name for the modal. Provide this (or `aria-labelledby`) when no
|
|
2802
|
+
* `header` is rendered, so screen readers announce what the modal is. */
|
|
2803
|
+
"aria-label"?: string;
|
|
2804
|
+
/** Id of the element that labels the modal. Defaults to the rendered header. */
|
|
2805
|
+
"aria-labelledby"?: string;
|
|
2806
|
+
/** Id of the element that describes the modal. */
|
|
2807
|
+
"aria-describedby"?: string;
|
|
2688
2808
|
}
|
|
2689
2809
|
|
|
2690
2810
|
/**
|
|
@@ -2721,10 +2841,10 @@ type: string;
|
|
|
2721
2841
|
/**
|
|
2722
2842
|
* @public
|
|
2723
2843
|
*/
|
|
2724
|
-
export declare const NavButton: StyledComponent<React_2.ForwardRefExoticComponent<HTMLButtonProps & Omit<CommonButtonProps, "
|
|
2725
|
-
icon: AnyIcon | IconProps | null;
|
|
2726
|
-
size?: "small" | "normal"
|
|
2727
|
-
reverse?: boolean
|
|
2844
|
+
export declare const NavButton: StyledComponent<React_2.ForwardRefExoticComponent<HTMLButtonProps & Omit<CommonButtonProps, "fill" | "loading" | "size" | "icon" | "danger" | "rightIcon" | "minimal"> & {
|
|
2845
|
+
icon: AnyIcon | IconProps | JSX.Element | null;
|
|
2846
|
+
size?: "small" | "normal";
|
|
2847
|
+
reverse?: boolean;
|
|
2728
2848
|
} & React_2.RefAttributes<HTMLButtonElement>>, DefaultTheme, {}, never>;
|
|
2729
2849
|
|
|
2730
2850
|
/**
|
|
@@ -2749,7 +2869,7 @@ export declare const NonIdealContainerTop: StyledComponent<"div", DefaultTheme,
|
|
|
2749
2869
|
/**
|
|
2750
2870
|
* @public
|
|
2751
2871
|
*/
|
|
2752
|
-
export declare function NonIdealState({ title, description, icon, action, vertical, children, }: NonIdealStateProps): React_2.JSX.Element;
|
|
2872
|
+
export declare function NonIdealState({ title, description, icon, action, vertical, children, titleAs, }: NonIdealStateProps): React_2.JSX.Element;
|
|
2753
2873
|
|
|
2754
2874
|
/**
|
|
2755
2875
|
* @public
|
|
@@ -2761,21 +2881,30 @@ export declare interface NonIdealStateProps {
|
|
|
2761
2881
|
action?: ReactNode;
|
|
2762
2882
|
children?: ReactNode;
|
|
2763
2883
|
vertical?: boolean;
|
|
2884
|
+
/**
|
|
2885
|
+
* HTML element to render the title as. Defaults to "h1" (matching the
|
|
2886
|
+
* existing `type="h0"` behaviour). Pass "h2", "h3", etc. when this
|
|
2887
|
+
* component is not at the top of the document outline.
|
|
2888
|
+
*/
|
|
2889
|
+
titleAs?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span";
|
|
2764
2890
|
}
|
|
2765
2891
|
|
|
2766
2892
|
/**
|
|
2767
2893
|
* @public
|
|
2768
2894
|
*/
|
|
2769
|
-
export declare const OptionTag: ({ icon, displayName, withClose, onClose, ...rest }: OptionTagProps) => React_2.JSX.Element;
|
|
2895
|
+
export declare const OptionTag: ({ icon, displayName, withClose, onClose, removeLabel, ...rest }: OptionTagProps) => React_2.JSX.Element;
|
|
2770
2896
|
|
|
2771
2897
|
/**
|
|
2772
2898
|
* @public
|
|
2773
2899
|
*/
|
|
2774
|
-
export declare interface OptionTagProps extends
|
|
2900
|
+
export declare interface OptionTagProps extends HTMLAttributes<HTMLDivElement> {
|
|
2775
2901
|
icon?: AnyIcon;
|
|
2776
2902
|
displayName: string;
|
|
2777
2903
|
withClose?: boolean;
|
|
2778
2904
|
onClose?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
2905
|
+
/** Accessible label for the remove button. Provide a translated string for
|
|
2906
|
+
* i18n. Defaults to `Remove {displayName}`. */
|
|
2907
|
+
removeLabel?: string;
|
|
2779
2908
|
}
|
|
2780
2909
|
|
|
2781
2910
|
/**
|
|
@@ -2789,12 +2918,12 @@ export declare function Overlay({ isOpen, onRequestClose, hasBackdrop, canClickO
|
|
|
2789
2918
|
* OverlayButton requires `position: relative` wrapper to overlay unless position set to relative
|
|
2790
2919
|
* @public
|
|
2791
2920
|
*/
|
|
2792
|
-
export declare const OverlayButton: StyledComponent<React_2.ForwardRefExoticComponent<HTMLButtonProps & Omit<CommonButtonProps, "
|
|
2793
|
-
icon?: AnyIcon | IconProps |
|
|
2794
|
-
placement?:
|
|
2795
|
-
rightIcon?: AnyIcon | IconProps |
|
|
2921
|
+
export declare const OverlayButton: StyledComponent<React_2.ForwardRefExoticComponent<HTMLButtonProps & Omit<CommonButtonProps, "fill" | "size" | "icon" | "rightIcon" | "minimal"> & {
|
|
2922
|
+
icon?: AnyIcon | IconProps | JSX.Element | null;
|
|
2923
|
+
placement?: OverlayButtonPlacement;
|
|
2924
|
+
rightIcon?: AnyIcon | IconProps | JSX.Element | null;
|
|
2796
2925
|
} & React_2.RefAttributes<HTMLButtonElement>>, DefaultTheme, {
|
|
2797
|
-
position?: "
|
|
2926
|
+
position?: "relative" | "absolute";
|
|
2798
2927
|
}, never>;
|
|
2799
2928
|
|
|
2800
2929
|
/**
|
|
@@ -2958,7 +3087,7 @@ type: string;
|
|
|
2958
3087
|
/**
|
|
2959
3088
|
* @public
|
|
2960
3089
|
*/
|
|
2961
|
-
export declare function Pagination({ perPage, currentPage, totalItems, uniqueItems, onPageChange, onPerPageChange, displayItems, itemsPerPageText, ofTotalText, uniqueItemsText, }: PaginationProps): JSX.Element;
|
|
3090
|
+
export declare function Pagination({ perPage, currentPage, totalItems, uniqueItems, onPageChange, onPerPageChange, displayItems, itemsPerPageText, ofTotalText, uniqueItemsText, navigationLabel, previousPageLabel, nextPageLabel, itemsPerPageLabel, pageLabel, }: PaginationProps): JSX.Element;
|
|
2962
3091
|
|
|
2963
3092
|
/**
|
|
2964
3093
|
* @public
|
|
@@ -2976,6 +3105,13 @@ export declare interface PaginationProps {
|
|
|
2976
3105
|
ofTotalText: string;
|
|
2977
3106
|
/** A string which includes \{unique\}, which internally will be replaced by a number e.g. \"(\{unique\} Unique items)\" */
|
|
2978
3107
|
uniqueItemsText: string;
|
|
3108
|
+
/** Accessible labels for the pagination controls. Provide translated strings
|
|
3109
|
+
* for i18n; each defaults to its English equivalent. */
|
|
3110
|
+
navigationLabel?: string;
|
|
3111
|
+
previousPageLabel?: string;
|
|
3112
|
+
nextPageLabel?: string;
|
|
3113
|
+
itemsPerPageLabel?: string;
|
|
3114
|
+
pageLabel?: string;
|
|
2979
3115
|
}
|
|
2980
3116
|
|
|
2981
3117
|
/**
|
|
@@ -3066,6 +3202,7 @@ export { Placement }
|
|
|
3066
3202
|
export declare function Popover(props: PopoverProps): JSX.Element;
|
|
3067
3203
|
|
|
3068
3204
|
/**
|
|
3205
|
+
* Props passed to the render-prop children of Popover.
|
|
3069
3206
|
* @public
|
|
3070
3207
|
*/
|
|
3071
3208
|
export declare interface PopoverChildrenProps {
|
|
@@ -3077,6 +3214,30 @@ export declare interface PopoverChildrenProps {
|
|
|
3077
3214
|
onMouseLeave?: MouseEventHandler;
|
|
3078
3215
|
/** Ref to the target element */
|
|
3079
3216
|
ref: Ref<any>;
|
|
3217
|
+
/**
|
|
3218
|
+
* The id applied to the popover content container.
|
|
3219
|
+
* Spread `triggerProps` onto your trigger element to wire ARIA automatically,
|
|
3220
|
+
* or use this id directly with your own `aria-controls`.
|
|
3221
|
+
*/
|
|
3222
|
+
contentId: string;
|
|
3223
|
+
/**
|
|
3224
|
+
* Ready-made ARIA props for the trigger element.
|
|
3225
|
+
* Contains `aria-controls`, `aria-expanded`, and optionally `aria-haspopup`
|
|
3226
|
+
* (when you pass `contentRole` to Popover). Spread onto the trigger:
|
|
3227
|
+
*
|
|
3228
|
+
* ```tsx
|
|
3229
|
+
* <Popover contentRole="menu" ...>
|
|
3230
|
+
* {({ ref, triggerProps, ...handlers }) => (
|
|
3231
|
+
* <button ref={ref} {...triggerProps} {...handlers}>Open</button>
|
|
3232
|
+
* )}
|
|
3233
|
+
* </Popover>
|
|
3234
|
+
* ```
|
|
3235
|
+
*/
|
|
3236
|
+
triggerProps: {
|
|
3237
|
+
"aria-controls": string;
|
|
3238
|
+
"aria-expanded": boolean;
|
|
3239
|
+
"aria-haspopup"?: AriaAttributes["aria-haspopup"];
|
|
3240
|
+
};
|
|
3080
3241
|
}
|
|
3081
3242
|
|
|
3082
3243
|
/**
|
|
@@ -3111,6 +3272,18 @@ export declare interface PopoverProps {
|
|
|
3111
3272
|
modifiers?: StrictModifiers[] | undefined;
|
|
3112
3273
|
onOpenStateChange?: (isOpen: boolean) => void;
|
|
3113
3274
|
style?: MotionStyle;
|
|
3275
|
+
/**
|
|
3276
|
+
* When set, populates `aria-haspopup` on the trigger via `triggerProps`.
|
|
3277
|
+
* Typically `"menu"` when the popover contains a Menu. Opt-in only — omit
|
|
3278
|
+
* to leave `aria-haspopup` off the trigger (preserving existing behaviour
|
|
3279
|
+
* for plain popovers / tooltips).
|
|
3280
|
+
*/
|
|
3281
|
+
contentRole?: AriaAttributes["aria-haspopup"];
|
|
3282
|
+
/**
|
|
3283
|
+
* An explicit id to apply to the popover content container.
|
|
3284
|
+
* A stable generated id is used when omitted.
|
|
3285
|
+
*/
|
|
3286
|
+
contentId?: string;
|
|
3114
3287
|
}
|
|
3115
3288
|
|
|
3116
3289
|
/**
|
|
@@ -3338,7 +3511,7 @@ export declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputEl
|
|
|
3338
3511
|
/**
|
|
3339
3512
|
* @public
|
|
3340
3513
|
*/
|
|
3341
|
-
export declare const RoundedLabelTag: ({ label, withClose, onCloseClick, onLabelClick, closeIcon, capitalize, className, addMargin, icon, size, backgroundColor, borderColor, textColor, }: RoundedLabelTagProps) => React_2.JSX.Element;
|
|
3514
|
+
export declare const RoundedLabelTag: ({ label, withClose, onCloseClick, onLabelClick, closeIcon, capitalize, className, addMargin, icon, size, backgroundColor, borderColor, textColor, removeLabel, }: RoundedLabelTagProps) => React_2.JSX.Element;
|
|
3342
3515
|
|
|
3343
3516
|
/**
|
|
3344
3517
|
* @public
|
|
@@ -3357,6 +3530,9 @@ export declare interface RoundedLabelTagProps {
|
|
|
3357
3530
|
addMargin?: boolean;
|
|
3358
3531
|
icon?: AnyIcon;
|
|
3359
3532
|
size?: "small" | "medium" | "large";
|
|
3533
|
+
/** Accessible label for the remove button. Provide a translated string for
|
|
3534
|
+
* i18n. Defaults to `Remove {label}`. */
|
|
3535
|
+
removeLabel?: string;
|
|
3360
3536
|
}
|
|
3361
3537
|
|
|
3362
3538
|
/**
|
|
@@ -3387,9 +3563,9 @@ export declare const SafePolygon: ({ onMouseEnterTooltip, onMouseLeaveTooltip, p
|
|
|
3387
3563
|
placement: TooltipPlacement;
|
|
3388
3564
|
tooltipRef: RefObject<HTMLDivElement>;
|
|
3389
3565
|
tooltipPosition: Position;
|
|
3390
|
-
tooltipTriggerMousePosition?: Position
|
|
3566
|
+
tooltipTriggerMousePosition?: Position;
|
|
3391
3567
|
triggerRef: RefObject<HTMLDivElement>;
|
|
3392
|
-
debug?: string
|
|
3568
|
+
debug?: string;
|
|
3393
3569
|
} & React_2.HTMLAttributes<HTMLDivElement>) => React_2.JSX.Element | null;
|
|
3394
3570
|
|
|
3395
3571
|
/**
|
|
@@ -3461,7 +3637,7 @@ export declare type SpacerProps = {
|
|
|
3461
3637
|
/**
|
|
3462
3638
|
* @public
|
|
3463
3639
|
*/
|
|
3464
|
-
export declare function Spinner({ size, color }: SpinnerProps): React_2.JSX.Element;
|
|
3640
|
+
export declare function Spinner({ size, color, "aria-label": ariaLabel, "aria-hidden": ariaHidden, }: SpinnerProps): React_2.JSX.Element;
|
|
3465
3641
|
|
|
3466
3642
|
/**
|
|
3467
3643
|
* @public
|
|
@@ -3469,6 +3645,13 @@ export declare function Spinner({ size, color }: SpinnerProps): React_2.JSX.Elem
|
|
|
3469
3645
|
export declare interface SpinnerProps {
|
|
3470
3646
|
size?: SpinnerSize;
|
|
3471
3647
|
color?: ThemeColorKey;
|
|
3648
|
+
/** Accessible label announced to screen readers. Defaults to "Loading". */
|
|
3649
|
+
"aria-label"?: string;
|
|
3650
|
+
/**
|
|
3651
|
+
* Set to "true" when the spinner is nested inside a parent live region that
|
|
3652
|
+
* already announces the loading state, so it is not read out twice.
|
|
3653
|
+
*/
|
|
3654
|
+
"aria-hidden"?: React_2.AriaAttributes["aria-hidden"];
|
|
3472
3655
|
}
|
|
3473
3656
|
|
|
3474
3657
|
/**
|
|
@@ -3617,7 +3800,7 @@ export declare interface StandardLabelColors {
|
|
|
3617
3800
|
* @public
|
|
3618
3801
|
*/
|
|
3619
3802
|
export declare const StyledA: StyledComponent<"a", DefaultTheme, {
|
|
3620
|
-
underline?: boolean
|
|
3803
|
+
underline?: boolean;
|
|
3621
3804
|
}, never>;
|
|
3622
3805
|
|
|
3623
3806
|
export declare type SVGRIconType = (props: ComponentProps<"svg">) => JSX.Element;
|
|
@@ -3630,7 +3813,7 @@ export declare const Tab: React_2.ForwardRefExoticComponent<TabProps & React_2.R
|
|
|
3630
3813
|
/**
|
|
3631
3814
|
* @public
|
|
3632
3815
|
*/
|
|
3633
|
-
export declare const TabBar: ({ tabs, activeIndex, onClickTab, type, isTicketHistory, tooltipStyle, tooltipPlacement, containerStyles, className, ...rest }: TabBarProps) => React_2.JSX.Element;
|
|
3816
|
+
export declare const TabBar: ({ tabs, activeIndex, onClickTab, type, isTicketHistory, tooltipStyle, tooltipPlacement, containerStyles, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id: providedId, ...rest }: TabBarProps) => React_2.JSX.Element;
|
|
3634
3817
|
|
|
3635
3818
|
/**
|
|
3636
3819
|
* @public
|
|
@@ -3655,6 +3838,11 @@ export declare interface TabBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
3655
3838
|
tooltipPlacement?: TooltipPlacement;
|
|
3656
3839
|
containerStyles?: CSSProperties_2;
|
|
3657
3840
|
className?: string;
|
|
3841
|
+
/** Accessible label for the tablist */
|
|
3842
|
+
"aria-label"?: string;
|
|
3843
|
+
/** Id of the element that labels this tablist */
|
|
3844
|
+
"aria-labelledby"?: string;
|
|
3845
|
+
id?: string;
|
|
3658
3846
|
}
|
|
3659
3847
|
|
|
3660
3848
|
/**
|
|
@@ -3665,6 +3853,7 @@ export declare interface TabBarTabProps {
|
|
|
3665
3853
|
label: ReactNode;
|
|
3666
3854
|
active: boolean;
|
|
3667
3855
|
onClick: () => void;
|
|
3856
|
+
onKeyDown?: (event: KeyboardEvent_2<HTMLDivElement>) => void;
|
|
3668
3857
|
type: TabType;
|
|
3669
3858
|
disabled?: boolean;
|
|
3670
3859
|
isTicketHistory?: boolean;
|
|
@@ -3698,12 +3887,18 @@ export declare interface TabbedSectionProps<TabId> {
|
|
|
3698
3887
|
isTicketHistory?: boolean;
|
|
3699
3888
|
tabType?: "button" | "tab";
|
|
3700
3889
|
className?: string;
|
|
3890
|
+
/** Explicit id for the tablist element */
|
|
3891
|
+
id?: string;
|
|
3892
|
+
/** Accessible label for the tablist */
|
|
3893
|
+
"aria-label"?: string;
|
|
3894
|
+
/** Id of the element that labels this tablist */
|
|
3895
|
+
"aria-labelledby"?: string;
|
|
3701
3896
|
}
|
|
3702
3897
|
|
|
3703
3898
|
/**
|
|
3704
3899
|
* @public
|
|
3705
3900
|
*/
|
|
3706
|
-
export declare function TabbedSectionTabs<TabId = string>({ tabs, activeTab, onTabChange, children, tabsWrapperStyles, rightElement, tabType, className, }: TabbedSectionProps<TabId>): React_2.JSX.Element;
|
|
3901
|
+
export declare function TabbedSectionTabs<TabId = string>({ tabs, activeTab, onTabChange, children, tabsWrapperStyles, rightElement, tabType, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id: providedId, }: TabbedSectionProps<TabId>): React_2.JSX.Element;
|
|
3707
3902
|
|
|
3708
3903
|
/**
|
|
3709
3904
|
* @public
|
|
@@ -3728,14 +3923,31 @@ export declare interface TabProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
|
3728
3923
|
active?: boolean;
|
|
3729
3924
|
fill?: boolean;
|
|
3730
3925
|
hasOptions?: boolean;
|
|
3926
|
+
/** Provide a stable id for aria-controls / aria-labelledby wiring */
|
|
3927
|
+
id?: string;
|
|
3928
|
+
/** Id of the tabpanel this tab controls */
|
|
3929
|
+
"aria-controls"?: string;
|
|
3731
3930
|
}
|
|
3732
3931
|
|
|
3733
3932
|
/**
|
|
3734
3933
|
* @public
|
|
3735
3934
|
*/
|
|
3736
|
-
export declare function Tabs({ children }:
|
|
3935
|
+
export declare function Tabs({ children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-orientation": ariaOrientation, id: providedId, }: TabsProps): React_2.JSX.Element;
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* Props for the Tabs container (tablist).
|
|
3939
|
+
* @public
|
|
3940
|
+
*/
|
|
3941
|
+
export declare interface TabsProps {
|
|
3737
3942
|
children: ReactNode;
|
|
3738
|
-
|
|
3943
|
+
/** Accessible label for the tablist — provide when the context does not supply a visible heading */
|
|
3944
|
+
"aria-label"?: string;
|
|
3945
|
+
/** Id of the element that labels this tablist */
|
|
3946
|
+
"aria-labelledby"?: string;
|
|
3947
|
+
/** Set to "vertical" when the tablist is laid out vertically */
|
|
3948
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
|
3949
|
+
id?: string;
|
|
3950
|
+
}
|
|
3739
3951
|
|
|
3740
3952
|
export declare type TabStyleDef = {
|
|
3741
3953
|
container?: () => FlattenInterpolation<ThemeProps<DefaultTheme>>;
|
|
@@ -3767,7 +3979,7 @@ export declare type TabType = keyof TabStyles;
|
|
|
3767
3979
|
/**
|
|
3768
3980
|
* @public
|
|
3769
3981
|
*/
|
|
3770
|
-
export declare const Tag: ({ color, label, withClose, onCloseClick, onLabelClick, closeIcon, capitalize, className, addMargin, icon, size, maxWidth, }: TagProps) => React_2.JSX.Element;
|
|
3982
|
+
export declare const Tag: ({ color, label, withClose, onCloseClick, onLabelClick, closeIcon, capitalize, className, addMargin, icon, size, maxWidth, removeLabel, }: TagProps) => React_2.JSX.Element;
|
|
3771
3983
|
|
|
3772
3984
|
/**
|
|
3773
3985
|
* @public
|
|
@@ -3849,6 +4061,9 @@ export declare interface TagProps {
|
|
|
3849
4061
|
icon?: AnyIcon;
|
|
3850
4062
|
size?: "small" | "large";
|
|
3851
4063
|
maxWidth?: number;
|
|
4064
|
+
/** Accessible label for the remove button. Provide a translated string for
|
|
4065
|
+
* i18n. Defaults to `Remove {label}`. */
|
|
4066
|
+
removeLabel?: string;
|
|
3852
4067
|
}
|
|
3853
4068
|
|
|
3854
4069
|
/**
|
|
@@ -4181,11 +4396,11 @@ export declare const Tooltip: ({ styleType, width, maxWidth, offsetTop, offsetLe
|
|
|
4181
4396
|
* @public
|
|
4182
4397
|
*/
|
|
4183
4398
|
export declare const TooltipBox: StyledComponent<"div", DefaultTheme, {
|
|
4184
|
-
padding?: string
|
|
4185
|
-
styleType?: ModalStyleTypes
|
|
4186
|
-
borderRadius?: number
|
|
4399
|
+
padding?: string;
|
|
4400
|
+
styleType?: ModalStyleTypes;
|
|
4401
|
+
borderRadius?: number;
|
|
4187
4402
|
offset: [number, number];
|
|
4188
|
-
duration?: number
|
|
4403
|
+
duration?: number;
|
|
4189
4404
|
}, never>;
|
|
4190
4405
|
|
|
4191
4406
|
/**
|
|
@@ -4256,7 +4471,7 @@ export declare interface TooltipProps {
|
|
|
4256
4471
|
/**
|
|
4257
4472
|
* @public
|
|
4258
4473
|
*/
|
|
4259
|
-
export declare const TooltipTrigger: ({ triggerRef, isOpen, interactive, visible, handleClose, handleOpen, openDelay, closeDelay, delayOpenRef, delayCloseRef, setTooltipTriggerMousePosition, safePolygon, dpName, children, }: TooltipTriggerProps) => React_2.JSX.Element;
|
|
4474
|
+
export declare const TooltipTrigger: ({ triggerRef, isOpen, tooltipId, interactive, visible, handleClose, handleOpen, openDelay, closeDelay, delayOpenRef, delayCloseRef, setTooltipTriggerMousePosition, safePolygon, dpName, children, }: TooltipTriggerProps) => React_2.JSX.Element;
|
|
4260
4475
|
|
|
4261
4476
|
/**
|
|
4262
4477
|
* @public
|
|
@@ -4264,6 +4479,8 @@ export declare const TooltipTrigger: ({ triggerRef, isOpen, interactive, visible
|
|
|
4264
4479
|
export declare type TooltipTriggerProps = {
|
|
4265
4480
|
triggerRef: Ref<HTMLDivElement>;
|
|
4266
4481
|
isOpen: boolean;
|
|
4482
|
+
/** Id of the tooltip content, linked via aria-describedby while open. */
|
|
4483
|
+
tooltipId?: string;
|
|
4267
4484
|
interactive?: boolean;
|
|
4268
4485
|
visible?: boolean;
|
|
4269
4486
|
openDelay?: number;
|
|
@@ -4316,7 +4533,7 @@ export declare type TypesV2 = keyof typeof v2Styles;
|
|
|
4316
4533
|
* @public
|
|
4317
4534
|
*/
|
|
4318
4535
|
export declare const UnstyledA: StyledComponent<"a", DefaultTheme, {
|
|
4319
|
-
underline?: boolean
|
|
4536
|
+
underline?: boolean;
|
|
4320
4537
|
}, never>;
|
|
4321
4538
|
|
|
4322
4539
|
/**
|
|
@@ -4392,27 +4609,48 @@ export declare const UrgencyStatus: StyledComponent<typeof UrgencyCircle, Defaul
|
|
|
4392
4609
|
*/
|
|
4393
4610
|
export declare function useFastField<Val = any>(propsOrFieldName: string | FieldHookConfig<Val>): [FieldInputProps<Val>, FieldMetaProps<Val>, FieldHelperProps<Val>];
|
|
4394
4611
|
|
|
4612
|
+
/**
|
|
4613
|
+
* Returns a stable, unique id suitable for wiring ARIA relationships
|
|
4614
|
+
* (`aria-labelledby`, `aria-describedby`, `aria-controls`, `htmlFor`, the
|
|
4615
|
+
* `tab` ↔ `tabpanel` pairing, etc).
|
|
4616
|
+
*
|
|
4617
|
+
* Wraps React 18's `useId` and lets a caller-supplied id take precedence, so a
|
|
4618
|
+
* component can accept an explicit `id` prop while falling back to a generated
|
|
4619
|
+
* one. An optional prefix makes ids more readable in the DOM/tests.
|
|
4620
|
+
*
|
|
4621
|
+
* ```tsx
|
|
4622
|
+
* const errorId = useId(props.id ? `${props.id}-error` : undefined, "dp-error");
|
|
4623
|
+
* <input aria-describedby={hasError ? errorId : undefined} />
|
|
4624
|
+
* {hasError && <span id={errorId}>{errorMessage}</span>}
|
|
4625
|
+
* ```
|
|
4626
|
+
*
|
|
4627
|
+
* @param providedId An explicit id to use instead of a generated one.
|
|
4628
|
+
* @param prefix Optional human-readable prefix for the generated id.
|
|
4629
|
+
* @public
|
|
4630
|
+
*/
|
|
4631
|
+
export declare function useId(providedId?: string, prefix?: string): string;
|
|
4632
|
+
|
|
4395
4633
|
export declare const useOnLocationChange: (callback?: () => void) => void;
|
|
4396
4634
|
|
|
4397
4635
|
/**
|
|
4398
4636
|
* @public
|
|
4399
4637
|
*/
|
|
4400
4638
|
export declare const usePosition: ({ offset, offsetLeft, offsetTop, placement, isOpen, disabled, enableOnTouchDevices, triggerRef, tooltipRef, preventOverflow, allowReposition, arrow, flip, }: {
|
|
4401
|
-
offset?: [number, number]
|
|
4402
|
-
offsetLeft?: number
|
|
4403
|
-
offsetTop?: number
|
|
4639
|
+
offset?: [number, number];
|
|
4640
|
+
offsetLeft?: number;
|
|
4641
|
+
offsetTop?: number;
|
|
4404
4642
|
placement: TooltipPlacement;
|
|
4405
4643
|
isOpen: boolean;
|
|
4406
|
-
disabled?: boolean
|
|
4407
|
-
enableOnTouchDevices?: boolean
|
|
4644
|
+
disabled?: boolean;
|
|
4645
|
+
enableOnTouchDevices?: boolean;
|
|
4408
4646
|
triggerRef: RefObject<HTMLDivElement>;
|
|
4409
4647
|
tooltipRef: RefObject<HTMLDivElement>;
|
|
4410
|
-
preventOverflow?: boolean
|
|
4648
|
+
preventOverflow?: boolean;
|
|
4411
4649
|
/** @see `getNoOverflowPosition` */
|
|
4412
4650
|
allowReposition: boolean;
|
|
4413
|
-
arrow?: boolean
|
|
4414
|
-
flip?: boolean
|
|
4415
|
-
debug?: string
|
|
4651
|
+
arrow?: boolean;
|
|
4652
|
+
flip?: boolean;
|
|
4653
|
+
debug?: string;
|
|
4416
4654
|
}) => {
|
|
4417
4655
|
position: {
|
|
4418
4656
|
x: number;
|
|
@@ -4445,9 +4683,9 @@ export declare const useTheme: () => DeskproTheme;
|
|
|
4445
4683
|
export declare const useTooltip: ({ delayOpenRef, delayCloseRef, closeDelay, interactive, visible, handleOpen, handleClose, }: {
|
|
4446
4684
|
delayOpenRef: React.MutableRefObject<number | undefined>;
|
|
4447
4685
|
delayCloseRef: React.MutableRefObject<number | undefined>;
|
|
4448
|
-
closeDelay?: number
|
|
4449
|
-
interactive?: boolean
|
|
4450
|
-
visible?: boolean
|
|
4686
|
+
closeDelay?: number;
|
|
4687
|
+
interactive?: boolean;
|
|
4688
|
+
visible?: boolean;
|
|
4451
4689
|
handleOpen: () => void;
|
|
4452
4690
|
handleClose: () => void;
|
|
4453
4691
|
}) => {
|
|
@@ -4543,6 +4781,51 @@ export declare const v2Styles: {
|
|
|
4543
4781
|
h_h6_kerning: FlattenInterpolation<ThemeProps<DefaultTheme>>;
|
|
4544
4782
|
};
|
|
4545
4783
|
|
|
4784
|
+
/**
|
|
4785
|
+
* Renders content that is available to screen readers but hidden visually.
|
|
4786
|
+
*
|
|
4787
|
+
* ```tsx
|
|
4788
|
+
* <button>
|
|
4789
|
+
* <Icon icon={faTrash} aria-hidden />
|
|
4790
|
+
* <VisuallyHidden>Delete item</VisuallyHidden>
|
|
4791
|
+
* </button>
|
|
4792
|
+
* ```
|
|
4793
|
+
*
|
|
4794
|
+
* @public
|
|
4795
|
+
*/
|
|
4796
|
+
export declare const VisuallyHidden: StyledComponent<"span", DefaultTheme, {
|
|
4797
|
+
"data-dp-name": string;
|
|
4798
|
+
"data-dp-ident"?: string;
|
|
4799
|
+
} & VisuallyHiddenProps, keyof {
|
|
4800
|
+
"data-dp-name": string;
|
|
4801
|
+
"data-dp-ident"?: string;
|
|
4802
|
+
}>;
|
|
4803
|
+
|
|
4804
|
+
/**
|
|
4805
|
+
* The canonical "visually hidden" CSS recipe. Removes an element from the
|
|
4806
|
+
* visual layout while keeping it in the accessibility tree **and** the tab
|
|
4807
|
+
* order — unlike `display: none` or `visibility: hidden`, which remove the
|
|
4808
|
+
* element from both.
|
|
4809
|
+
*
|
|
4810
|
+
* Use this for:
|
|
4811
|
+
* - Real form controls that are visually replaced by a custom-styled element
|
|
4812
|
+
* (e.g. the `<input>` behind a styled Checkbox/Radio/Toggle), so screen
|
|
4813
|
+
* readers and keyboard users can still reach the real control.
|
|
4814
|
+
* - Text that should be announced to assistive technology but not shown
|
|
4815
|
+
* (via the {@link VisuallyHidden} component below).
|
|
4816
|
+
*
|
|
4817
|
+
* @public
|
|
4818
|
+
*/
|
|
4819
|
+
export declare const visuallyHidden: FlattenSimpleInterpolation;
|
|
4820
|
+
|
|
4821
|
+
/**
|
|
4822
|
+
* @public
|
|
4823
|
+
*/
|
|
4824
|
+
export declare interface VisuallyHiddenProps {
|
|
4825
|
+
/** The element to render. Defaults to `span`. */
|
|
4826
|
+
as?: ElementType;
|
|
4827
|
+
}
|
|
4828
|
+
|
|
4546
4829
|
/**
|
|
4547
4830
|
* @public
|
|
4548
4831
|
*/
|