@pexip/components 20.0.0 → 20.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 +204 -0
- package/api-docs/README.mdx +11 -2
- package/api-docs/enumerations/TestId.mdx +1 -0
- package/api-docs/functions/announce.mdx +1 -1
- package/api-docs/functions/onEnter.mdx +3 -3
- package/api-docs/functions/sizeToPadding.mdx +16 -6
- package/api-docs/functions/useBoundingRect.mdx +42 -0
- package/api-docs/functions/useBreakpointChange.mdx +1 -1
- package/api-docs/functions/useFocusFrom.mdx +2 -2
- package/api-docs/functions/useFocusFromOpened.mdx +1 -1
- package/api-docs/functions/useGroupedPagesNav.mdx +2 -2
- package/api-docs/functions/useInput.mdx +4 -2
- package/api-docs/functions/useModal.mdx +2 -2
- package/api-docs/functions/useModalHandle.mdx +1 -1
- package/api-docs/functions/useModalWithoutPreventScroll.mdx +2 -2
- package/api-docs/functions/useMultistepIndicator.mdx +24 -8
- package/api-docs/functions/useOutOfViewNavigation.mdx +4 -4
- package/api-docs/functions/useScrollIntoView.mdx +3 -3
- package/api-docs/functions/useTabs.mdx +1 -1
- package/api-docs/functions/withColorScheme.mdx +3 -3
- package/api-docs/functions/withTabName.mdx +2 -2
- package/api-docs/functions/withTransition.mdx +6 -4
- package/api-docs/interfaces/FullSizeWindowCommonProps.mdx +4 -4
- package/api-docs/interfaces/IconCollection.mdx +7 -0
- package/api-docs/interfaces/IconSource.mdx +3 -3
- package/api-docs/interfaces/LoadingBoxProps.mdx +5 -3
- package/api-docs/interfaces/ModalHandle.mdx +1 -1
- package/api-docs/interfaces/MultistepItem.mdx +1 -1
- package/api-docs/interfaces/StatCardRowData.mdx +5 -5
- package/api-docs/interfaces/ToastProps.mdx +3 -3
- package/api-docs/interfaces/VideoHandle.mdx +2 -2
- package/api-docs/interfaces/WithTransitionProps.mdx +1 -0
- package/api-docs/type-aliases/ActivityCardAction.mdx +1 -1
- package/api-docs/type-aliases/AriaMenuItem.mdx +9 -1
- package/api-docs/type-aliases/AriaMenuProps.mdx +5 -1
- package/api-docs/type-aliases/AriaSubMenu.mdx +27 -0
- package/api-docs/type-aliases/AriaSubMenuContentHelpers.mdx +13 -0
- package/api-docs/type-aliases/BreadcrumbItem.mdx +1 -1
- package/api-docs/type-aliases/ClickEventHandler.mdx +1 -1
- package/api-docs/type-aliases/MenuAction.mdx +1 -1
- package/api-docs/type-aliases/MenuItem.mdx +5 -4
- package/api-docs/type-aliases/MultiselectCoreProps.mdx +3 -0
- package/api-docs/type-aliases/MultiselectOption.mdx +1 -1
- package/api-docs/type-aliases/NotificationToastMessage.mdx +1 -1
- package/api-docs/type-aliases/NotificationTooltipPosition.mdx +3 -1
- package/api-docs/type-aliases/NotificationTooltipProps.mdx +3 -0
- package/api-docs/type-aliases/Option.mdx +1 -1
- package/api-docs/type-aliases/SelectProps.mdx +3 -3
- package/api-docs/type-aliases/TagItem.mdx +2 -2
- package/api-docs/variables/AriaMenu.mdx +3 -1
- package/api-docs/variables/Draggable.mdx +51 -0
- package/api-docs/variables/KEYBOARD_EVENT_KEY.mdx +16 -0
- package/api-docs/variables/MultiselectCore.mdx +27 -0
- package/api-docs/variables/MultistepIndicator.mdx +1 -0
- package/api-docs/variables/PreferenceInput.mdx +1 -0
- package/api-docs/variables/Select.mdx +2 -2
- package/api-docs/variables/Sheet.mdx +9 -1
- package/api-docs/variables/Toast.mdx +3 -1
- package/api-docs/variables/ToggleSwitchDisplay.mdx +16 -0
- package/api-docs/variables/buttonVariantsValues.mdx +3 -0
- package/design-tokens/mixins/_focus.scss +54 -10
- package/design-tokens/mixins/media-queries.scss +12 -0
- package/design-tokens/variables.legacy.scss +8 -0
- package/dist/components-no-global-styles.css +1 -1
- package/dist/components.cjs +2 -2
- package/dist/components.css +1 -1
- package/dist/components.js +6253 -8056
- package/dist/types/design-tokens/generated/Icons.d.ts +7 -0
- package/dist/types/design-tokens/generated/Icons.d.ts.map +1 -1
- package/dist/types/src/components/elements/ActionsRow/ActionsRow.d.ts +1 -0
- package/dist/types/src/components/elements/ActionsRow/ActionsRow.d.ts.map +1 -1
- package/dist/types/src/components/elements/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +43 -0
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
- package/dist/types/src/components/elements/Input/Input.d.ts +1 -0
- package/dist/types/src/components/elements/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/elements/ListBoxLink/ListBoxLink.d.ts +2 -2
- package/dist/types/src/components/elements/ListBoxLink/ListBoxLink.d.ts.map +1 -1
- package/dist/types/src/components/elements/ListLink/ListLink.d.ts +8 -5
- package/dist/types/src/components/elements/ListLink/ListLink.d.ts.map +1 -1
- package/dist/types/src/components/elements/Panel/Panel.d.ts +1 -0
- package/dist/types/src/components/elements/Panel/Panel.d.ts.map +1 -1
- package/dist/types/src/components/elements/Scrollbars/Scrollbars.d.ts +0 -1
- package/dist/types/src/components/elements/Scrollbars/Scrollbars.d.ts.map +1 -1
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitchDisplay.d.ts +28 -0
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitchDisplay.d.ts.map +1 -0
- package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts +1 -2
- package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts.map +1 -1
- package/dist/types/src/components/elements/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.d.ts +3 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.types.d.ts +121 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.types.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts +32 -4
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuButton.d.ts +3 -6
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuButton.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuItem.d.ts +3 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuItem.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts +22 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts.map +1 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuPopover.d.ts.map +1 -1
- package/dist/types/src/components/modules/Avatar/Avatar.utils.d.ts +2 -2
- package/dist/types/src/components/modules/Avatar/Avatar.utils.d.ts.map +1 -1
- package/dist/types/src/components/modules/Captions/Captions.view.d.ts +1 -0
- package/dist/types/src/components/modules/Captions/Captions.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts +1 -0
- package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/ConfirmationModal/ConfirmationModal.d.ts +2 -0
- package/dist/types/src/components/modules/ConfirmationModal/ConfirmationModal.d.ts.map +1 -1
- package/dist/types/src/components/modules/DropContent/DropContent.d.ts.map +1 -1
- package/dist/types/src/components/modules/Menu/Menu.d.ts +3 -1
- package/dist/types/src/components/modules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/src/components/modules/Menu/types.d.ts +4 -2
- package/dist/types/src/components/modules/Menu/types.d.ts.map +1 -1
- package/dist/types/src/components/modules/Modal/Modal.d.ts +2 -0
- package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/ConfirmableMultiselect.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts +8 -0
- package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/MultiselectCore.d.ts.map +1 -1
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.d.ts +1 -0
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.d.ts.map +1 -1
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.utils.d.ts +1 -2
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.utils.d.ts.map +1 -1
- package/dist/types/src/components/modules/MultistepIndicator/OrdinalText.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/PopOutWindow/PopOutWindow.d.ts.map +1 -1
- package/dist/types/src/components/modules/PopOutWindow/copyStyles.d.ts +23 -0
- package/dist/types/src/components/modules/PopOutWindow/copyStyles.d.ts.map +1 -0
- package/dist/types/src/components/modules/PreferenceInput/PreferenceInput.d.ts +2 -0
- package/dist/types/src/components/modules/PreferenceInput/PreferenceInput.d.ts.map +1 -1
- package/dist/types/src/components/modules/Sheet/Sheet.d.ts +12 -1
- package/dist/types/src/components/modules/Sheet/Sheet.d.ts.map +1 -1
- package/dist/types/src/components/modules/TransitionContainer/withTransition.d.ts +1 -0
- package/dist/types/src/components/modules/TransitionContainer/withTransition.d.ts.map +1 -1
- package/dist/types/src/constants/keyboard.d.ts +2 -0
- package/dist/types/src/constants/keyboard.d.ts.map +1 -1
- package/dist/types/src/exports.d.ts +8 -1
- package/dist/types/src/exports.d.ts.map +1 -1
- package/dist/types/src/hooks/useAriaTooltip.d.ts +9 -3
- package/dist/types/src/hooks/useAriaTooltip.d.ts.map +1 -1
- package/dist/types/src/hooks/useBoundingRect.d.ts +27 -0
- package/dist/types/src/hooks/useBoundingRect.d.ts.map +1 -0
- package/dist/types/src/types/sizes.d.ts +1 -1
- package/dist/types/src/types/sizes.d.ts.map +1 -1
- package/dist/types/src/utils/imageSrc.d.ts +1 -1
- package/dist/types/src/utils/testIds.d.ts +1 -0
- package/dist/types/src/utils/testIds.d.ts.map +1 -1
- package/package.json +15 -26
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@import '../variables.scss';
|
|
3
|
+
@import './media-queries.scss';
|
|
3
4
|
|
|
4
5
|
.light,
|
|
5
6
|
:global(.light) {
|
|
@@ -25,28 +26,60 @@
|
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
@mixin box-shadow-focus-style(
|
|
29
|
+
@mixin box-shadow-focus-style(
|
|
30
|
+
$is-inset: true,
|
|
31
|
+
$color-scheme: 'dark',
|
|
32
|
+
$border-width: 1px,
|
|
33
|
+
$shadow-width-inset: 3px,
|
|
34
|
+
$shadow-width: 4px
|
|
35
|
+
) {
|
|
29
36
|
@if $is-inset {
|
|
30
37
|
box-shadow:
|
|
31
|
-
0
|
|
32
|
-
|
|
38
|
+
0
|
|
39
|
+
0
|
|
40
|
+
0
|
|
41
|
+
$border-width
|
|
42
|
+
inset
|
|
43
|
+
get-token(#{$color-scheme}-box-shadow-focus-border),
|
|
44
|
+
0
|
|
45
|
+
0
|
|
46
|
+
0
|
|
47
|
+
$shadow-width-inset
|
|
48
|
+
get-token(#{$color-scheme}-box-shadow-focus) !important;
|
|
33
49
|
} @else {
|
|
34
50
|
box-shadow:
|
|
35
|
-
0
|
|
36
|
-
|
|
51
|
+
0
|
|
52
|
+
0
|
|
53
|
+
0
|
|
54
|
+
$border-width
|
|
55
|
+
get-token(#{$color-scheme}-box-shadow-focus-border),
|
|
56
|
+
0
|
|
57
|
+
0
|
|
58
|
+
0
|
|
59
|
+
$shadow-width
|
|
60
|
+
get-token(#{$color-scheme}-box-shadow-focus) !important;
|
|
37
61
|
}
|
|
38
62
|
}
|
|
39
63
|
|
|
40
64
|
@mixin box-shadow-focus($paramMap: ()) {
|
|
41
65
|
$defaults: (
|
|
42
|
-
color-scheme: 'dark',
|
|
43
|
-
is-inset: true,
|
|
44
|
-
|
|
66
|
+
'color-scheme': 'dark',
|
|
67
|
+
'is-inset': true,
|
|
68
|
+
'border-width': 1px,
|
|
69
|
+
'shadow-width-inset': 3px,
|
|
70
|
+
'shadow-width': 4px,
|
|
71
|
+
'additional-selector': null,
|
|
72
|
+
'suppress-on-hover': false,
|
|
45
73
|
);
|
|
46
74
|
$opts: map-merge($defaults, $paramMap);
|
|
47
75
|
$color-scheme: map.get($opts, 'color-scheme');
|
|
48
76
|
$is-inset: map.get($opts, 'is-inset');
|
|
77
|
+
$border-width: map.get($opts, 'border-width');
|
|
78
|
+
$shadow-width-inset: map.get($opts, 'shadow-width-inset');
|
|
79
|
+
$shadow-width: map.get($opts, 'shadow-width');
|
|
49
80
|
$additional-selector: map.get($opts, 'additional-selector');
|
|
81
|
+
$suppress-on-hover: map.get($opts, 'suppress-on-hover');
|
|
82
|
+
$hover-guard: if($suppress-on-hover, ':not(:hover)', '');
|
|
50
83
|
|
|
51
84
|
&,
|
|
52
85
|
&:focus {
|
|
@@ -54,8 +87,19 @@
|
|
|
54
87
|
outline: transparent;
|
|
55
88
|
}
|
|
56
89
|
|
|
57
|
-
&[data-focus-visible-added],
|
|
90
|
+
&[data-focus-visible-added]#{$hover-guard},
|
|
58
91
|
#{$additional-selector} {
|
|
59
|
-
@include box-shadow-focus-style(
|
|
92
|
+
@include box-shadow-focus-style(
|
|
93
|
+
$is-inset,
|
|
94
|
+
$color-scheme,
|
|
95
|
+
$border-width,
|
|
96
|
+
$shadow-width-inset,
|
|
97
|
+
$shadow-width
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
@include forced-colors {
|
|
101
|
+
outline: 2px solid Highlight;
|
|
102
|
+
outline-offset: 2px;
|
|
103
|
+
}
|
|
60
104
|
}
|
|
61
105
|
}
|
|
@@ -210,6 +210,18 @@
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Used to detect forced colors mode, e.g. Windows Contrast Themes.
|
|
215
|
+
* In this mode the user agent strips author backgrounds, box-shadows and
|
|
216
|
+
* colors, so borders/outlines have to be restored with system color keywords
|
|
217
|
+
* (Canvas, CanvasText, ButtonText, Highlight, GrayText).
|
|
218
|
+
**/
|
|
219
|
+
@mixin forced-colors() {
|
|
220
|
+
@media (forced-colors: active) {
|
|
221
|
+
@content;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
213
225
|
@mixin mobile-portrait() {
|
|
214
226
|
@include portrait {
|
|
215
227
|
@include lg-down {
|
|
@@ -201,6 +201,14 @@
|
|
|
201
201
|
@include create-token(icon-color-disabled, color('deep-blue-30'));
|
|
202
202
|
@include create-token(button-color-active, color('deep-blue-40'));
|
|
203
203
|
|
|
204
|
+
/* DIVIDER */
|
|
205
|
+
@include create-token(divider-color-light, color('deep-blue-20'));
|
|
206
|
+
@include create-token(
|
|
207
|
+
divider-color-dark,
|
|
208
|
+
rgba(color-hex('white'), $alpha-10)
|
|
209
|
+
);
|
|
210
|
+
@include create-token(table-border-color, get-token(divider-color-light));
|
|
211
|
+
|
|
204
212
|
/* FOCUS */
|
|
205
213
|
.light {
|
|
206
214
|
@include create-token(light-box-shadow-focus, color('green-40'));
|