@pexip/components 16.15.0 → 16.16.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 +39 -0
- package/design-tokens/mixins/_focus.scss +22 -31
- package/dist/components.js +1 -1
- package/dist/components.mjs +3974 -3816
- package/dist/style.css +1 -1
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +3 -0
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
- package/dist/types/src/components/elements/Icon/Icon.d.ts.map +1 -1
- package/dist/types/src/components/elements/Input/Input.d.ts +1 -3
- package/dist/types/src/components/elements/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/elements/SvgImage/SvgImage.d.ts.map +1 -1
- package/dist/types/src/components/elements/SvgImage/SvgUniqueId.d.ts +8 -0
- package/dist/types/src/components/elements/SvgImage/SvgUniqueId.d.ts.map +1 -0
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitch.d.ts +2 -2
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/types/src/components/modules/DropContent/DropContent.d.ts +1 -0
- package/dist/types/src/components/modules/DropContent/DropContent.d.ts.map +1 -1
- package/dist/types/src/components/modules/Focus/useFocusTrap.d.ts +6 -1
- package/dist/types/src/components/modules/Focus/useFocusTrap.d.ts.map +1 -1
- package/dist/types/src/components/modules/Modal/Modal.d.ts +37 -21
- package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
- package/dist/types/src/components/modules/StatCard/StatCard.d.ts +9 -2
- package/dist/types/src/components/modules/StatCard/StatCard.d.ts.map +1 -1
- package/dist/types/src/components/modules/UserMenuDropContent/UserMenuDropContent.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/VideoWrapper/VideoWrapper.d.ts.map +1 -1
- package/dist/types/src/constants/keyboard.d.ts +9 -0
- package/dist/types/src/constants/keyboard.d.ts.map +1 -0
- package/dist/types/src/hooks/useFocusFrom.d.ts +12 -0
- package/dist/types/src/hooks/useFocusFrom.d.ts.map +1 -0
- package/dist/types/src/hooks/useFocusFromOpened.d.ts +11 -0
- package/dist/types/src/hooks/useFocusFromOpened.d.ts.map +1 -0
- package/dist/types/src/hooks/useModalHandle.d.ts +7 -0
- package/dist/types/src/hooks/useModalHandle.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +5 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +19 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2db8d74: Add vite plugin and scripts to auto-generate scss declaration files
|
|
8
|
+
- d24cfe4: Export type StatCardRow
|
|
9
|
+
- b4aac5b: Bump react-dom version and update eslint rule against test files
|
|
10
|
+
- d24cfe4: Add `className` prop to `StatCard`
|
|
11
|
+
- d24cfe4: Add `warning` and `success` variant to `StatCard`. Use `variant`
|
|
12
|
+
property for this instead of `colorScheme`.
|
|
13
|
+
- 3967409: Runtime rewrite of the svgs to avoid duplicated ids when using
|
|
14
|
+
multiple instances of the same icon that has ids in the markup
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 9aa96ab: Do not pass ariaLabel prop to div element inside Modal, pass
|
|
19
|
+
aria-label instead
|
|
20
|
+
- 1f78677: Make components more keyboard accessible.
|
|
21
|
+
|
|
22
|
+
Draggable component can be opted into being moveable with arrow keys. Modals
|
|
23
|
+
and UserMenu (DropContent) can be closed with escape key. ToogleSwitch can be
|
|
24
|
+
toggled with enter key. MultistepIndicator items can now be tabbed over.
|
|
25
|
+
|
|
26
|
+
- 438e40e: Fix horizontal scrollbar for `Scrollbar` component
|
|
27
|
+
- Updated dependencies [fd8190c]
|
|
28
|
+
- Updated dependencies [1f78677]
|
|
29
|
+
- Updated dependencies [b4aac5b]
|
|
30
|
+
- @pexip/hooks@18.0.0
|
|
31
|
+
- @pexip/signal@16.7.0
|
|
32
|
+
- @pexip/utils@16.12.0
|
|
33
|
+
|
|
34
|
+
## 16.15.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [6cb27d9]
|
|
39
|
+
- @pexip/utils@16.12.0
|
|
40
|
+
- @pexip/hooks@17.1.2
|
|
41
|
+
|
|
3
42
|
## 16.15.0
|
|
4
43
|
|
|
5
44
|
### Minor Changes
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@import '../variables.scss';
|
|
3
3
|
|
|
4
|
+
@mixin box-shadow-focus-style($is-inset: true, $color-scheme: 'dark') {
|
|
5
|
+
@include create-token(
|
|
6
|
+
dark-box-shadow-focus,
|
|
7
|
+
rgba(color-hex('green-40'), 0.3)
|
|
8
|
+
);
|
|
9
|
+
@include create-token(dark-box-shadow-focus-border, color('green-100'));
|
|
10
|
+
|
|
11
|
+
@include create-token(light-box-shadow-focus, color('green-40'));
|
|
12
|
+
@include create-token(light-box-shadow-focus-border, color('green-100'));
|
|
13
|
+
|
|
14
|
+
@if $is-inset {
|
|
15
|
+
box-shadow:
|
|
16
|
+
0 0 0 1px inset get-token(#{$color-scheme}-box-shadow-focus-border),
|
|
17
|
+
0 0 0 3px get-token(#{$color-scheme}-box-shadow-focus) !important;
|
|
18
|
+
} @else {
|
|
19
|
+
box-shadow:
|
|
20
|
+
0 0 0 1px get-token(#{$color-scheme}-box-shadow-focus-border),
|
|
21
|
+
0 0 0 4px get-token(#{$color-scheme}-box-shadow-focus) !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
4
25
|
@mixin box-shadow-focus($paramMap: ()) {
|
|
5
26
|
$defaults: (
|
|
6
27
|
color-scheme: 'dark',
|
|
@@ -12,15 +33,6 @@
|
|
|
12
33
|
$is-inset: map.get($opts, 'is-inset');
|
|
13
34
|
$additional-selector: map.get($opts, 'additional-selector');
|
|
14
35
|
|
|
15
|
-
@include create-token(
|
|
16
|
-
dark-box-shadow-focus,
|
|
17
|
-
rgba(color-hex('green-40'), 0.3)
|
|
18
|
-
);
|
|
19
|
-
@include create-token(dark-box-shadow-focus-border, color('green-100'));
|
|
20
|
-
|
|
21
|
-
@include create-token(light-box-shadow-focus, color('green-40'));
|
|
22
|
-
@include create-token(light-box-shadow-focus-border, color('green-100'));
|
|
23
|
-
|
|
24
36
|
&,
|
|
25
37
|
&:focus {
|
|
26
38
|
transition: box-shadow 0.3s;
|
|
@@ -29,27 +41,6 @@
|
|
|
29
41
|
|
|
30
42
|
&[data-focus-visible-added],
|
|
31
43
|
#{$additional-selector} {
|
|
32
|
-
@
|
|
33
|
-
box-shadow:
|
|
34
|
-
0
|
|
35
|
-
0
|
|
36
|
-
0
|
|
37
|
-
1px
|
|
38
|
-
inset
|
|
39
|
-
get-token(#{$color-scheme}-box-shadow-focus-border),
|
|
40
|
-
0
|
|
41
|
-
0
|
|
42
|
-
0
|
|
43
|
-
3px
|
|
44
|
-
get-token(#{$color-scheme}-box-shadow-focus) !important;
|
|
45
|
-
} @else {
|
|
46
|
-
box-shadow:
|
|
47
|
-
0 0 0 1px get-token(#{$color-scheme}-box-shadow-focus-border),
|
|
48
|
-
0
|
|
49
|
-
0
|
|
50
|
-
0
|
|
51
|
-
4px
|
|
52
|
-
get-token(#{$color-scheme}-box-shadow-focus) !important;
|
|
53
|
-
}
|
|
44
|
+
@include box-shadow-focus-style($is-inset, $color-scheme);
|
|
54
45
|
}
|
|
55
46
|
}
|