@pexip/components 19.1.3 → 19.2.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/CHANGELOG.md +17 -0
- package/api-docs/README.mdx +330 -0
- package/api-docs/enumerations/AvatarType.mdx +8 -0
- package/api-docs/enumerations/Color.mdx +65 -0
- package/api-docs/enumerations/FontVariant.mdx +20 -0
- package/api-docs/enumerations/LockStyle.mdx +7 -0
- package/api-docs/enumerations/ModalType.mdx +6 -0
- package/api-docs/enumerations/ProgressBarColor.mdx +8 -0
- package/api-docs/enumerations/RgbColor.mdx +64 -0
- package/api-docs/enumerations/StatCardVariant.mdx +7 -0
- package/api-docs/enumerations/TestId.mdx +45 -0
- package/api-docs/functions/announce.mdx +21 -0
- package/api-docs/functions/isBackgroundImageSrcEmpty.mdx +13 -0
- package/api-docs/functions/isImageSrcEmpty.mdx +13 -0
- package/api-docs/functions/isImageSrcString.mdx +13 -0
- package/api-docs/functions/isValidIconName.mdx +13 -0
- package/api-docs/functions/onEnter.mdx +32 -0
- package/api-docs/functions/sizeToPadding.mdx +22 -0
- package/api-docs/functions/useBelow360.mdx +7 -0
- package/api-docs/functions/useBreakpointChange.mdx +7 -0
- package/api-docs/functions/useFocusFrom.mdx +24 -0
- package/api-docs/functions/useFocusFromOpened.mdx +20 -0
- package/api-docs/functions/useGroupedPagesNav.mdx +16 -0
- package/api-docs/functions/useInput.mdx +13 -0
- package/api-docs/functions/useLandscape.mdx +7 -0
- package/api-docs/functions/useLg.mdx +7 -0
- package/api-docs/functions/useLgDown.mdx +7 -0
- package/api-docs/functions/useLgUp.mdx +7 -0
- package/api-docs/functions/useMd.mdx +7 -0
- package/api-docs/functions/useMdDown.mdx +7 -0
- package/api-docs/functions/useMdToXl.mdx +7 -0
- package/api-docs/functions/useMdUp.mdx +7 -0
- package/api-docs/functions/useMobileDevice.mdx +7 -0
- package/api-docs/functions/useMobileDeviceLandscape.mdx +7 -0
- package/api-docs/functions/useMobileDevicePortrait.mdx +7 -0
- package/api-docs/functions/useModal.mdx +18 -0
- package/api-docs/functions/useModalHandle.mdx +12 -0
- package/api-docs/functions/useMultistepIndicator.mdx +45 -0
- package/api-docs/functions/usePortrait.mdx +7 -0
- package/api-docs/functions/useScrollIntoView.mdx +22 -0
- package/api-docs/functions/useSm.mdx +7 -0
- package/api-docs/functions/useSmDown.mdx +7 -0
- package/api-docs/functions/useSmToLg.mdx +7 -0
- package/api-docs/functions/useSmToXl.mdx +7 -0
- package/api-docs/functions/useSmUp.mdx +7 -0
- package/api-docs/functions/useTabletDevice.mdx +7 -0
- package/api-docs/functions/useTabs.mdx +18 -0
- package/api-docs/functions/useTouchDevice.mdx +7 -0
- package/api-docs/functions/useXl.mdx +7 -0
- package/api-docs/functions/useXlDown.mdx +7 -0
- package/api-docs/functions/useXlUp.mdx +7 -0
- package/api-docs/functions/useXs.mdx +7 -0
- package/api-docs/functions/withColorScheme.mdx +32 -0
- package/api-docs/functions/withTabName.mdx +32 -0
- package/api-docs/functions/withTransition.mdx +36 -0
- package/api-docs/interfaces/EnhancerProps.mdx +10 -0
- package/api-docs/interfaces/FloatRootOverflow.mdx +9 -0
- package/api-docs/interfaces/FullSizeWindowCommonProps.mdx +8 -0
- package/api-docs/interfaces/IconCollection.mdx +145 -0
- package/api-docs/interfaces/IconSource.mdx +7 -0
- package/api-docs/interfaces/LoadingBoxProps.mdx +12 -0
- package/api-docs/interfaces/ModalHandle.mdx +5 -0
- package/api-docs/interfaces/MultistepItem.mdx +13 -0
- package/api-docs/interfaces/StatCardRowData.mdx +15 -0
- package/api-docs/interfaces/ToastProps.mdx +14 -0
- package/api-docs/interfaces/VideoHandle.mdx +6 -0
- package/api-docs/interfaces/WithTransitionProps.mdx +5 -0
- package/api-docs/type-aliases/ActivityCardAction.mdx +10 -0
- package/api-docs/type-aliases/AlignWithFloatRootTrigger.mdx +3 -0
- package/api-docs/type-aliases/AllSize.mdx +3 -0
- package/api-docs/type-aliases/AriaMenuItem.mdx +21 -0
- package/api-docs/type-aliases/AriaMenuProps.mdx +18 -0
- package/api-docs/type-aliases/BackgroundImageSrc.mdx +3 -0
- package/api-docs/type-aliases/BadgeCounterProps.mdx +3 -0
- package/api-docs/type-aliases/BadgeCounterVariant.mdx +3 -0
- package/api-docs/type-aliases/BaseSizeModifier.mdx +3 -0
- package/api-docs/type-aliases/BreadcrumbItem.mdx +11 -0
- package/api-docs/type-aliases/Breakpoint.mdx +3 -0
- package/api-docs/type-aliases/ButtonHTMLTag.mdx +3 -0
- package/api-docs/type-aliases/ButtonModifiersValues.mdx +3 -0
- package/api-docs/type-aliases/ButtonProps.mdx +3 -0
- package/api-docs/type-aliases/ButtonTextProps.mdx +3 -0
- package/api-docs/type-aliases/ButtonVariant.mdx +3 -0
- package/api-docs/type-aliases/ClickEventHandler.mdx +20 -0
- package/api-docs/type-aliases/ColorScheme.mdx +3 -0
- package/api-docs/type-aliases/DropContentPosition.mdx +3 -0
- package/api-docs/type-aliases/DropContentType.mdx +3 -0
- package/api-docs/type-aliases/ExtendedSizeModifier.mdx +3 -0
- package/api-docs/type-aliases/ExtendedTooltipPosition.mdx +13 -0
- package/api-docs/type-aliases/FullSizeWindowBackgroundVariant.mdx +3 -0
- package/api-docs/type-aliases/FullSizeWindowColorBackgroundProps.mdx +13 -0
- package/api-docs/type-aliases/FullSizeWindowImageBackgroundProps.mdx +13 -0
- package/api-docs/type-aliases/GroupProps.mdx +3 -0
- package/api-docs/type-aliases/HeadingElement.mdx +3 -0
- package/api-docs/type-aliases/HeadingFontVariant.mdx +3 -0
- package/api-docs/type-aliases/IScrollbars.mdx +3 -0
- package/api-docs/type-aliases/ImageSrc.mdx +3 -0
- package/api-docs/type-aliases/InlineElement.mdx +3 -0
- package/api-docs/type-aliases/InputVariant.mdx +3 -0
- package/api-docs/type-aliases/InteractiveElementHTMLTag.mdx +3 -0
- package/api-docs/type-aliases/InteractiveElementProps.mdx +3 -0
- package/api-docs/type-aliases/LabelModifier.mdx +3 -0
- package/api-docs/type-aliases/LinkTarget.mdx +3 -0
- package/api-docs/type-aliases/LogoSizeModifier.mdx +3 -0
- package/api-docs/type-aliases/MenuAction.mdx +17 -0
- package/api-docs/type-aliases/MenuContent.mdx +3 -0
- package/api-docs/type-aliases/MenuItem.mdx +24 -0
- package/api-docs/type-aliases/ModalProps.mdx +3 -0
- package/api-docs/type-aliases/ModalSizeModifier.mdx +3 -0
- package/api-docs/type-aliases/MultiselectOption.mdx +16 -0
- package/api-docs/type-aliases/MultistepIndicatorProps.mdx +3 -0
- package/api-docs/type-aliases/NotificationToastMessage.mdx +18 -0
- package/api-docs/type-aliases/NotificationToastSignal.mdx +3 -0
- package/api-docs/type-aliases/NotificationTooltipPosition.mdx +13 -0
- package/api-docs/type-aliases/Option.mdx +17 -0
- package/api-docs/type-aliases/OverlayOpacity.mdx +3 -0
- package/api-docs/type-aliases/PanelProps.mdx +3 -0
- package/api-docs/type-aliases/SelectProps.mdx +29 -0
- package/api-docs/type-aliases/ShadowModifier.mdx +3 -0
- package/api-docs/type-aliases/SimpleButtonProps.mdx +3 -0
- package/api-docs/type-aliases/SizeModifier.mdx +3 -0
- package/api-docs/type-aliases/StandardSizeModifier.mdx +3 -0
- package/api-docs/type-aliases/StatIndicatorVariant.mdx +3 -0
- package/api-docs/type-aliases/StatusItem.mdx +10 -0
- package/api-docs/type-aliases/TableResultsCountProps.mdx +12 -0
- package/api-docs/type-aliases/TagItem.mdx +17 -0
- package/api-docs/type-aliases/TextLinkProps.mdx +3 -0
- package/api-docs/type-aliases/TextProps.mdx +3 -0
- package/api-docs/type-aliases/TextVariant.mdx +3 -0
- package/api-docs/type-aliases/Theme.mdx +3 -0
- package/api-docs/type-aliases/ToastPosition.mdx +3 -0
- package/api-docs/type-aliases/TooltipPosition.mdx +3 -0
- package/api-docs/type-aliases/VideoWrapperSizeModifier.mdx +3 -0
- package/api-docs/type-aliases/VideoWrapperVariant.mdx +3 -0
- package/api-docs/variables/AboutModal.mdx +3 -0
- package/api-docs/variables/AboutText.mdx +3 -0
- package/api-docs/variables/Accordion.mdx +16 -0
- package/api-docs/variables/ActionsRow.mdx +3 -0
- package/api-docs/variables/ActivityCard.mdx +11 -0
- package/api-docs/variables/Announcer.mdx +12 -0
- package/api-docs/variables/AriaMenu.mdx +5 -0
- package/api-docs/variables/AspectRatio.mdx +6 -0
- package/api-docs/variables/Audio.mdx +3 -0
- package/api-docs/variables/Avatar.mdx +3 -0
- package/api-docs/variables/BadgeCounter.mdx +3 -0
- package/api-docs/variables/Bar.mdx +3 -0
- package/api-docs/variables/Box.mdx +3 -0
- package/api-docs/variables/BoxHeader.mdx +3 -0
- package/api-docs/variables/Breadcrumbs.mdx +9 -0
- package/api-docs/variables/Button.mdx +3 -0
- package/api-docs/variables/ButtonText.mdx +3 -0
- package/api-docs/variables/CakeTimer.mdx +3 -0
- package/api-docs/variables/CallToAction.mdx +3 -0
- package/api-docs/variables/Captions.mdx +3 -0
- package/api-docs/variables/CardLayout.mdx +10 -0
- package/api-docs/variables/Cell.mdx +3 -0
- package/api-docs/variables/CenterLayout.mdx +3 -0
- package/api-docs/variables/Checkbox.mdx +3 -0
- package/api-docs/variables/CircleCountDown.mdx +7 -0
- package/api-docs/variables/CollapsableContainer.mdx +15 -0
- package/api-docs/variables/ColorPickerPreviewButton.mdx +3 -0
- package/api-docs/variables/ColorPreviewButton.mdx +3 -0
- package/api-docs/variables/CondensedTabs.mdx +3 -0
- package/api-docs/variables/ConfirmableMultiselect.mdx +3 -0
- package/api-docs/variables/ConfirmationModal.mdx +3 -0
- package/api-docs/variables/ContextMenu.mdx +12 -0
- package/api-docs/variables/CoreHeader.mdx +3 -0
- package/api-docs/variables/CustomTooltip.mdx +3 -0
- package/api-docs/variables/Divider.mdx +3 -0
- package/api-docs/variables/DragAndDrop.mdx +10 -0
- package/api-docs/variables/DragAndUploadFiles.mdx +3 -0
- package/api-docs/variables/Draggable.mdx +3 -0
- package/api-docs/variables/DropContent.mdx +3 -0
- package/api-docs/variables/Enhancers.mdx +3 -0
- package/api-docs/variables/ExpanderCell.mdx +3 -0
- package/api-docs/variables/FileUpload.mdx +3 -0
- package/api-docs/variables/Form.mdx +3 -0
- package/api-docs/variables/FullSizeWindow.mdx +5 -0
- package/api-docs/variables/FullscreenLayout.mdx +3 -0
- package/api-docs/variables/FullscreenOverlay.mdx +3 -0
- package/api-docs/variables/FullscreenSpinner.mdx +3 -0
- package/api-docs/variables/Grid.mdx +3 -0
- package/api-docs/variables/Group.mdx +3 -0
- package/api-docs/variables/Heading.mdx +11 -0
- package/api-docs/variables/HotKey.mdx +6 -0
- package/api-docs/variables/HotkeysTooltip.mdx +3 -0
- package/api-docs/variables/Icon.mdx +3 -0
- package/api-docs/variables/IconTypes.mdx +3 -0
- package/api-docs/variables/ImagePreviewButton.mdx +3 -0
- package/api-docs/variables/InfoHeadCell.mdx +7 -0
- package/api-docs/variables/InfoMessage.mdx +6 -0
- package/api-docs/variables/Input.mdx +3 -0
- package/api-docs/variables/InputLabel.mdx +3 -0
- package/api-docs/variables/InteractiveElement.mdx +3 -0
- package/api-docs/variables/KebabMenuButton.mdx +3 -0
- package/api-docs/variables/LineHeading.mdx +5 -0
- package/api-docs/variables/List.mdx +3 -0
- package/api-docs/variables/ListBoxLink.mdx +3 -0
- package/api-docs/variables/ListLink.mdx +3 -0
- package/api-docs/variables/LoadingBox.mdx +3 -0
- package/api-docs/variables/Logo.mdx +3 -0
- package/api-docs/variables/Menu.mdx +13 -0
- package/api-docs/variables/MenuEntry.mdx +5 -0
- package/api-docs/variables/Modal.mdx +8 -0
- package/api-docs/variables/ModalCloseButton.mdx +9 -0
- package/api-docs/variables/ModalCloseButtonWithTooltip.mdx +3 -0
- package/api-docs/variables/Multiselect.mdx +3 -0
- package/api-docs/variables/MultistepIndicator.mdx +13 -0
- package/api-docs/variables/NotificationToast.mdx +13 -0
- package/api-docs/variables/NotificationTooltip.mdx +3 -0
- package/api-docs/variables/NumberStepInput.mdx +21 -0
- package/api-docs/variables/Panel.mdx +3 -0
- package/api-docs/variables/PasswordInput.mdx +6 -0
- package/api-docs/variables/PexipLogo.mdx +3 -0
- package/api-docs/variables/Pill.mdx +3 -0
- package/api-docs/variables/PopOutWindow.mdx +8 -0
- package/api-docs/variables/PreferenceInput.mdx +26 -0
- package/api-docs/variables/PreferenceMultiselect.mdx +21 -0
- package/api-docs/variables/PreferenceRow.mdx +12 -0
- package/api-docs/variables/PreferenceWrapper.mdx +3 -0
- package/api-docs/variables/ProgressBar.mdx +3 -0
- package/api-docs/variables/RadioButton.mdx +3 -0
- package/api-docs/variables/RangeSlider.mdx +11 -0
- package/api-docs/variables/RefButton.mdx +3 -0
- package/api-docs/variables/RefInteractiveElement.mdx +3 -0
- package/api-docs/variables/RefSimpleButton.mdx +3 -0
- package/api-docs/variables/Row.mdx +3 -0
- package/api-docs/variables/Scrim.mdx +3 -0
- package/api-docs/variables/Scrollbars.mdx +3 -0
- package/api-docs/variables/SearchInput.mdx +12 -0
- package/api-docs/variables/Section.mdx +3 -0
- package/api-docs/variables/SectionAccordion.mdx +15 -0
- package/api-docs/variables/Select.mdx +19 -0
- package/api-docs/variables/Sheet.mdx +3 -0
- package/api-docs/variables/SimpleButton.mdx +7 -0
- package/api-docs/variables/SortingIndicator.mdx +6 -0
- package/api-docs/variables/Spinner.mdx +3 -0
- package/api-docs/variables/StatCard.mdx +12 -0
- package/api-docs/variables/StatCardBox.mdx +3 -0
- package/api-docs/variables/StatCardRow.mdx +3 -0
- package/api-docs/variables/StatIndicator.mdx +3 -0
- package/api-docs/variables/StepNumber.mdx +3 -0
- package/api-docs/variables/SvgImage.mdx +3 -0
- package/api-docs/variables/Tab.mdx +3 -0
- package/api-docs/variables/Table.mdx +3 -0
- package/api-docs/variables/TableBody.mdx +3 -0
- package/api-docs/variables/TableCell.mdx +3 -0
- package/api-docs/variables/TableContent.mdx +3 -0
- package/api-docs/variables/TableHead.mdx +3 -0
- package/api-docs/variables/TableHeadCell.mdx +3 -0
- package/api-docs/variables/TablePagination.mdx +23 -0
- package/api-docs/variables/TableRow.mdx +3 -0
- package/api-docs/variables/TableRowWrapper.mdx +9 -0
- package/api-docs/variables/TableSection.mdx +3 -0
- package/api-docs/variables/Tabs.mdx +3 -0
- package/api-docs/variables/Tag.mdx +3 -0
- package/api-docs/variables/TagList.mdx +9 -0
- package/api-docs/variables/Text.mdx +3 -0
- package/api-docs/variables/TextArea.mdx +5 -0
- package/api-docs/variables/TextHeading.mdx +3 -0
- package/api-docs/variables/TextLink.mdx +3 -0
- package/api-docs/variables/ThemeConsumer.mdx +3 -0
- package/api-docs/variables/ThemeContext.mdx +3 -0
- package/api-docs/variables/ThemeProvider.mdx +3 -0
- package/api-docs/variables/ThreeColumnSelector.mdx +3 -0
- package/api-docs/variables/Toast.mdx +13 -0
- package/api-docs/variables/ToggleSwitch.mdx +3 -0
- package/api-docs/variables/Tooltip.mdx +13 -0
- package/api-docs/variables/TooltipPositionValue.mdx +3 -0
- package/api-docs/variables/URLToLink.mdx +5 -0
- package/api-docs/variables/User.mdx +14 -0
- package/api-docs/variables/UserMenuButton.mdx +11 -0
- package/api-docs/variables/UserMenuDropContent.mdx +3 -0
- package/api-docs/variables/Video.mdx +3 -0
- package/api-docs/variables/VideoWrapper.mdx +3 -0
- package/api-docs/variables/Wrapper.mdx +3 -0
- package/api-docs/variables/ariaMenuOpenStateSignal.mdx +3 -0
- package/api-docs/variables/breakpoints.mdx +13 -0
- package/api-docs/variables/notificationToastSignal.mdx +3 -0
- package/api-docs/variables/themeValues.mdx +3 -0
- package/api-docs/variables/variables.mdx +324 -0
- package/dist/components-no-global-styles.css +1 -0
- package/dist/components.cjs +2 -2
- package/dist/components.js +2445 -2390
- package/dist/types/src/components/elements/Checkbox/Checkbox.d.ts +3 -1
- package/dist/types/src/components/elements/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/ConfirmableMultiselect.d.ts +4 -1
- package/dist/types/src/components/modules/Multiselect/ConfirmableMultiselect.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts +9 -1
- package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/MultiselectCore.d.ts +1 -1
- package/dist/types/src/components/modules/Multiselect/MultiselectCore.d.ts.map +1 -1
- package/dist/types/src/exports.d.ts +181 -0
- package/dist/types/src/exports.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -180
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/types/elements.d.ts +1 -0
- package/dist/types/src/types/elements.d.ts.map +1 -1
- package/package.json +16 -9
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function isImageSrcString(imageSrc): imageSrc is string;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Parameters
|
|
6
|
+
|
|
7
|
+
| Parameter | Type |
|
|
8
|
+
| ------ | ------ |
|
|
9
|
+
| `imageSrc` | [`ImageSrc`](../type-aliases/ImageSrc.mdx) \| `undefined` |
|
|
10
|
+
|
|
11
|
+
## Returns
|
|
12
|
+
|
|
13
|
+
`imageSrc is string`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function onEnter<E, T>(callback): (e) => void;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Type Parameters
|
|
6
|
+
|
|
7
|
+
| Type Parameter |
|
|
8
|
+
| ------ |
|
|
9
|
+
| `E` *extends* `HTMLElement` |
|
|
10
|
+
| `T` *extends* (`e`) => `void` |
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Parameter | Type |
|
|
15
|
+
| ------ | ------ |
|
|
16
|
+
| `callback` | `T` |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
(e): void;
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Parameters
|
|
25
|
+
|
|
26
|
+
| Parameter | Type |
|
|
27
|
+
| ------ | ------ |
|
|
28
|
+
| `e` | `KeyboardEvent`\<`E`\> |
|
|
29
|
+
|
|
30
|
+
### Returns
|
|
31
|
+
|
|
32
|
+
`void`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function sizeToPadding(t):
|
|
3
|
+
| "compactPadding"
|
|
4
|
+
| "largePadding"
|
|
5
|
+
| "mediumPadding"
|
|
6
|
+
| "nonePadding"
|
|
7
|
+
| "smallPadding";
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| Parameter | Type |
|
|
13
|
+
| ------ | ------ |
|
|
14
|
+
| `t` | `"small"` \| `"medium"` \| `"compact"` \| `"large"` \| `"none"` |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
\| `"compactPadding"`
|
|
19
|
+
\| `"largePadding"`
|
|
20
|
+
\| `"mediumPadding"`
|
|
21
|
+
\| `"nonePadding"`
|
|
22
|
+
\| `"smallPadding"`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useFocusFrom(element): object;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
This hook gives the ability to set the focus on an element
|
|
6
|
+
which is then blurred right away, thereby effectively resetting
|
|
7
|
+
the focus order. The next focusable element that comes after this element
|
|
8
|
+
will be focused on the next tab.
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| Parameter | Type | Description |
|
|
13
|
+
| ------ | ------ | ------ |
|
|
14
|
+
| `element` | `HTMLElement` \| `null` | element which focus point should start from |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
`object`
|
|
19
|
+
|
|
20
|
+
focusFrom function, when called sets the focus point to the given element
|
|
21
|
+
|
|
22
|
+
| Name | Type |
|
|
23
|
+
| ------ | ------ |
|
|
24
|
+
| `focusFrom()` | () => `void` |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useFocusFromOpened(element, isOpen): void;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
Use this hook to set the focus point on an element when something
|
|
6
|
+
becomes opened, e.g. set focus on a panel container or menu container
|
|
7
|
+
when it becomes visible so that the next time the user hits on the
|
|
8
|
+
tab key the element that becomes focused on is potentially a tabbable
|
|
9
|
+
element inside the container element.
|
|
10
|
+
|
|
11
|
+
## Parameters
|
|
12
|
+
|
|
13
|
+
| Parameter | Type | Description |
|
|
14
|
+
| ------ | ------ | ------ |
|
|
15
|
+
| `element` | `HTMLElement` \| `null` | element which focus point should start from |
|
|
16
|
+
| `isOpen` | `boolean` | when isOpen is true the element will get the focus point |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
`void`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useGroupedPagesNav(__namedParameters): GroupedPageNav[];
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Parameters
|
|
6
|
+
|
|
7
|
+
| Parameter | Type |
|
|
8
|
+
| ------ | ------ |
|
|
9
|
+
| `__namedParameters` | \{ `groupChunkSize?`: `number`; `pageIndex`: `number`; `totalPagesCount`: `number`; \} |
|
|
10
|
+
| `__namedParameters.groupChunkSize?` | `number` |
|
|
11
|
+
| `__namedParameters.pageIndex` | `number` |
|
|
12
|
+
| `__namedParameters.totalPagesCount` | `number` |
|
|
13
|
+
|
|
14
|
+
## Returns
|
|
15
|
+
|
|
16
|
+
`GroupedPageNav`[]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useInput(props): [string, Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "disabled"> & object, "ref"> & RefAttributes<Pick<HTMLInputElement, "focus">>];
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Parameters
|
|
6
|
+
|
|
7
|
+
| Parameter | Type |
|
|
8
|
+
| ------ | ------ |
|
|
9
|
+
| `props` | `Omit`\<`Omit`\<`DetailedHTMLProps`\<`InputHTMLAttributes`\<`HTMLInputElement`\>, `HTMLInputElement`\>, `"disabled"`\> & `object`, `"ref"`\> & `RefAttributes`\<`Pick`\<`HTMLInputElement`, `"focus"`\>\> |
|
|
10
|
+
|
|
11
|
+
## Returns
|
|
12
|
+
|
|
13
|
+
\[`string`, `Omit`\<`Omit`\<`DetailedHTMLProps`\<`InputHTMLAttributes`\<`HTMLInputElement`\>, `HTMLInputElement`\>, `"disabled"`\> & `object`, `"ref"`\> & `RefAttributes`\<`Pick`\<`HTMLInputElement`, `"focus"`\>\>\]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useModal(isOpen): object;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Parameters
|
|
6
|
+
|
|
7
|
+
| Parameter | Type |
|
|
8
|
+
| ------ | ------ |
|
|
9
|
+
| `isOpen` | `boolean` |
|
|
10
|
+
|
|
11
|
+
## Returns
|
|
12
|
+
|
|
13
|
+
`object`
|
|
14
|
+
|
|
15
|
+
| Name | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `ref` | `RefObject`\<`HTMLDivElement` \| `null`\> |
|
|
18
|
+
| `modalProps` | `DOMAttributes`\<`FocusableElement`\> |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useMultistepIndicator(__namedParameters): readonly [{
|
|
3
|
+
allStepsCompleted: boolean;
|
|
4
|
+
currentStepIndex: number;
|
|
5
|
+
prevStepsCompleted: boolean;
|
|
6
|
+
steps: MultistepItem[];
|
|
7
|
+
}, {
|
|
8
|
+
moveToStep: (stepIndex, __namedParameters) => void;
|
|
9
|
+
resetAllSteps: () => void;
|
|
10
|
+
resetStep: (stepIndex) => void;
|
|
11
|
+
updateStepActive: (stepIndex, isActive) => void;
|
|
12
|
+
updateStepCompleted: (stepIndex, __namedParameters) => void;
|
|
13
|
+
updateStepFailed: (stepIndex, __namedParameters) => void;
|
|
14
|
+
updateStepDisabled: (stepIndex, isDisabled) => void;
|
|
15
|
+
updateStepLeave: (stepIndex, __namedParameters) => void;
|
|
16
|
+
}];
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Convenience hook for using steps in MultistepIndicator
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
| Parameter | Type |
|
|
24
|
+
| ------ | ------ |
|
|
25
|
+
| `__namedParameters` | \{ `initialSteps`: [`MultistepItem`](../interfaces/MultistepItem.mdx)[]; `currentStepIndex?`: `number`; \} |
|
|
26
|
+
| `__namedParameters.initialSteps` | [`MultistepItem`](../interfaces/MultistepItem.mdx)[] |
|
|
27
|
+
| `__namedParameters.currentStepIndex?` | `number` |
|
|
28
|
+
|
|
29
|
+
## Returns
|
|
30
|
+
|
|
31
|
+
readonly \[\{
|
|
32
|
+
`allStepsCompleted`: `boolean`;
|
|
33
|
+
`currentStepIndex`: `number`;
|
|
34
|
+
`prevStepsCompleted`: `boolean`;
|
|
35
|
+
`steps`: [`MultistepItem`](../interfaces/MultistepItem.mdx)[];
|
|
36
|
+
\}, \{
|
|
37
|
+
`moveToStep`: (`stepIndex`, `__namedParameters`) => `void`;
|
|
38
|
+
`resetAllSteps`: () => `void`;
|
|
39
|
+
`resetStep`: (`stepIndex`) => `void`;
|
|
40
|
+
`updateStepActive`: (`stepIndex`, `isActive`) => `void`;
|
|
41
|
+
`updateStepCompleted`: (`stepIndex`, `__namedParameters`) => `void`;
|
|
42
|
+
`updateStepFailed`: (`stepIndex`, `__namedParameters`) => `void`;
|
|
43
|
+
`updateStepDisabled`: (`stepIndex`, `isDisabled`) => `void`;
|
|
44
|
+
`updateStepLeave`: (`stepIndex`, `__namedParameters`) => `void`;
|
|
45
|
+
\}\]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useScrollIntoView(element, options): () => void;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Parameters
|
|
6
|
+
|
|
7
|
+
| Parameter | Type |
|
|
8
|
+
| ------ | ------ |
|
|
9
|
+
| `element` | `RefObject`\<`HTMLElement` \| `null`\> |
|
|
10
|
+
| `options` | \{ `delay?`: `number`; `scrollIntoViewOptions?`: `Partial`\<`ScrollIntoViewOptions`\>; \} |
|
|
11
|
+
| `options.delay?` | `number` |
|
|
12
|
+
| `options.scrollIntoViewOptions?` | `Partial`\<`ScrollIntoViewOptions`\> |
|
|
13
|
+
|
|
14
|
+
## Returns
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
(): void;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Returns
|
|
21
|
+
|
|
22
|
+
`void`
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function useTabs(activeTabIndex): object;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Parameters
|
|
6
|
+
|
|
7
|
+
| Parameter | Type |
|
|
8
|
+
| ------ | ------ |
|
|
9
|
+
| `activeTabIndex` | `number` |
|
|
10
|
+
|
|
11
|
+
## Returns
|
|
12
|
+
|
|
13
|
+
`object`
|
|
14
|
+
|
|
15
|
+
| Name | Type |
|
|
16
|
+
| ------ | ------ |
|
|
17
|
+
| `activeTab` | `number` |
|
|
18
|
+
| `setActiveTab` | `Dispatch`\<`SetStateAction`\<`number`\>\> |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function withColorScheme<P>(Component, colorScheme): (props) => Element;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Type Parameters
|
|
6
|
+
|
|
7
|
+
| Type Parameter |
|
|
8
|
+
| ------ |
|
|
9
|
+
| `P` *extends* `object` |
|
|
10
|
+
|
|
11
|
+
## Parameters
|
|
12
|
+
|
|
13
|
+
| Parameter | Type |
|
|
14
|
+
| ------ | ------ |
|
|
15
|
+
| `Component` | `ComponentType`\<`P`\> |
|
|
16
|
+
| `colorScheme` | `"dark"` \| `"light"` |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
(props): Element;
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Parameters
|
|
25
|
+
|
|
26
|
+
| Parameter | Type |
|
|
27
|
+
| ------ | ------ |
|
|
28
|
+
| `props` | `P` |
|
|
29
|
+
|
|
30
|
+
### Returns
|
|
31
|
+
|
|
32
|
+
`Element`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function withTabName<P>(Component, componentProps?): (props) => Element;
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
## Type Parameters
|
|
6
|
+
|
|
7
|
+
| Type Parameter |
|
|
8
|
+
| ------ |
|
|
9
|
+
| `P` |
|
|
10
|
+
|
|
11
|
+
## Parameters
|
|
12
|
+
|
|
13
|
+
| Parameter | Type |
|
|
14
|
+
| ------ | ------ |
|
|
15
|
+
| `Component` | `ComponentType`\<`P`\> |
|
|
16
|
+
| `componentProps?` | `P` |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
(props): Element;
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Parameters
|
|
25
|
+
|
|
26
|
+
| Parameter | Type |
|
|
27
|
+
| ------ | ------ |
|
|
28
|
+
| `props` | `P` & `ClassAttributes`\<`HTMLButtonElement`\> & `ButtonHTMLAttributes`\<`HTMLButtonElement`\> |
|
|
29
|
+
|
|
30
|
+
### Returns
|
|
31
|
+
|
|
32
|
+
`Element`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
```ts
|
|
2
|
+
function withTransition<P>(
|
|
3
|
+
Component,
|
|
4
|
+
timeout,
|
|
5
|
+
stateAfterTransition): (props) => Element | null;
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
## Type Parameters
|
|
9
|
+
|
|
10
|
+
| Type Parameter |
|
|
11
|
+
| ------ |
|
|
12
|
+
| `P` *extends* `object` |
|
|
13
|
+
|
|
14
|
+
## Parameters
|
|
15
|
+
|
|
16
|
+
| Parameter | Type | Default value |
|
|
17
|
+
| ------ | ------ | ------ |
|
|
18
|
+
| `Component` | `ComponentType`\<`P`\> | `undefined` |
|
|
19
|
+
| `timeout` | `number` | `undefined` |
|
|
20
|
+
| `stateAfterTransition` | `"hide"` \| `"unmount"` | `'unmount'` |
|
|
21
|
+
|
|
22
|
+
## Returns
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
(props): Element | null;
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
|
|
30
|
+
| Parameter | Type |
|
|
31
|
+
| ------ | ------ |
|
|
32
|
+
| `props` | `P` & [`WithTransitionProps`](../interfaces/WithTransitionProps.mdx) |
|
|
33
|
+
|
|
34
|
+
### Returns
|
|
35
|
+
|
|
36
|
+
`Element` \| `null`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## Properties
|
|
2
|
+
|
|
3
|
+
| Property | Type |
|
|
4
|
+
| ------ | ------ |
|
|
5
|
+
| <a id="classname"></a> `className?` | `string` |
|
|
6
|
+
| <a id="enhancerend"></a> `enhancerEnd?` | `ReactNode` |
|
|
7
|
+
| <a id="enhancerendclassname"></a> `enhancerEndClassName?` | `string` |
|
|
8
|
+
| <a id="enhancerstart"></a> `enhancerStart?` | `ReactNode` |
|
|
9
|
+
| <a id="enhancerstartclassname"></a> `enhancerStartClassName?` | `string` |
|
|
10
|
+
| <a id="noenhancerpadding"></a> `noEnhancerPadding?` | `boolean` |
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
## Properties
|
|
2
|
+
|
|
3
|
+
| Property | Type |
|
|
4
|
+
| ------ | ------ |
|
|
5
|
+
| <a id="overflow"></a> `overflow` | `boolean` |
|
|
6
|
+
| <a id="top"></a> `top?` | `boolean` |
|
|
7
|
+
| <a id="bottom"></a> `bottom?` | `boolean` |
|
|
8
|
+
| <a id="left"></a> `left?` | `boolean` |
|
|
9
|
+
| <a id="right"></a> `right?` | `boolean` |
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## Properties
|
|
2
|
+
|
|
3
|
+
| Property | Type |
|
|
4
|
+
| ------ | ------ |
|
|
5
|
+
| <a id="padding"></a> `padding?` | `"small"` \| `"none"` |
|
|
6
|
+
| <a id="flexdirection"></a> `flexDirection?` | `"column"` \| `"row"` \| `"rowReverse"` \| `"columnReverse"` |
|
|
7
|
+
| <a id="justifycontent"></a> `justifyContent?` | `"center"` \| `"flexStart"` |
|
|
8
|
+
| <a id="position"></a> `position?` | `"fixed"` \| `"absolute"` |
|