@pexip/components 20.2.0 → 20.3.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 +19 -0
- package/api-docs/variables/CircleCountDown.mdx +1 -0
- package/api-docs/variables/Draggable.mdx +2 -1
- package/api-docs/variables/InteractiveElement.mdx +1 -1
- package/api-docs/variables/RefButton.mdx +1 -1
- package/api-docs/variables/RefInteractiveElement.mdx +1 -1
- package/api-docs/variables/RefSimpleButton.mdx +1 -1
- package/design-tokens/tokens/zIndex.tokens.scss +2 -1
- 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 +3769 -3582
- package/dist/types/src/components/elements/Button/Button.d.ts +1 -0
- package/dist/types/src/components/elements/Button/Button.d.ts.map +1 -1
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +3 -1
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
- package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts +6 -8
- package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts.map +1 -1
- package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts +1 -0
- package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts.map +1 -1
- package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts +2 -0
- package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts +4 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts.map +1 -1
- package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts +1 -0
- package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.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/Modal/Modal.d.ts +1 -0
- package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
- package/dist/types/src/hooks/useAriaTooltip.d.ts +12 -2
- package/dist/types/src/hooks/useAriaTooltip.d.ts.map +1 -1
- package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts +34 -0
- package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 20.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f0569ae: Adds support for custom focus styles to `InteractiveElement`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 3f7ea58: Describe the microphone test before it starts, and announce
|
|
12
|
+
countdowns, recording completion, and sound-test label changes without
|
|
13
|
+
competing modal refocus.
|
|
14
|
+
- 8d38605: Fix keyboard focus order across interactive components:
|
|
15
|
+
|
|
16
|
+
- Place `NotificationTooltip` actions after their trigger and restore focus
|
|
17
|
+
when dismissed
|
|
18
|
+
- Close `AriaMenu` when Tab is pressed on a menu item
|
|
19
|
+
- Allow focused drag handles to move `Draggable` elements with arrow keys
|
|
20
|
+
- Remove single-item `CondensedTabs` from the tab order
|
|
21
|
+
|
|
3
22
|
## 20.2.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -20,7 +20,8 @@ whole element should be draggable.
|
|
|
20
20
|
- data-drag-handle: Marks a descendant that *can* initiate a drag even
|
|
21
21
|
```
|
|
22
22
|
when it sits inside a `data-no-drag` region. Use it to expose a dedicated
|
|
23
|
-
grab handle within an otherwise non-draggable area.
|
|
23
|
+
grab handle within an otherwise non-draggable area. A focusable handle can also
|
|
24
|
+
move the Draggable with arrow keys when `isMoveableWithArrowKeys` is set.
|
|
24
25
|
|
|
25
26
|
Both attributes are resolved with `Element.closest`, so they apply to the
|
|
26
27
|
tagged element and everything nested within it.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
```ts
|
|
2
|
-
const RefButton: ForwardRefExoticComponent<((
|
|
2
|
+
const RefButton: ForwardRefExoticComponent<((InteractiveElementBaseProps & { colorScheme?: "dark" | "light" | undefined; isActive?: boolean | undefined; isDisabled?: boolean | undefined; ... 5 more ...; backgroundTransparency?: number | undefined; }) & EnhancerProps) & LoadingBoxProps & Pick<...> & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
|
|
3
3
|
```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
```ts
|
|
2
|
-
const RefInteractiveElement: ForwardRefExoticComponent<
|
|
2
|
+
const RefInteractiveElement: ForwardRefExoticComponent<InteractiveElementBaseProps & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
|
|
3
3
|
```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
```ts
|
|
2
|
-
const RefSimpleButton: ForwardRefExoticComponent<
|
|
2
|
+
const RefSimpleButton: ForwardRefExoticComponent<InteractiveElementBaseProps & { colorScheme?: "dark" | "light" | undefined; isActive?: boolean | undefined; isDisabled?: boolean | undefined; modifier?: "fullWidth" | ... 3 more ... | undefined; noBorderRadius?: boolean | undefined; noHover?: boolean | undefined; size?: "small" | ... 4 more ... | undefined; variant?... & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
|
|
3
3
|
```
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
@include create-token(components-z-index-drop-content, 99);
|
|
18
18
|
@include create-token(components-z-index-table-sticky-pagination, 98);
|
|
19
19
|
@include create-token(components-z-index-checkbox-input, 1);
|
|
20
|
-
|
|
20
|
+
// Tooltips portal to react-aria's top layer; keep the default there.
|
|
21
|
+
@include create-token(components-z-index-tooltip, 100000);
|
|
21
22
|
@include create-token(components-z-index-line-heading-text, 1);
|
|
22
23
|
@include create-token(components-z-index-line-heading-visual-line, 0);
|
|
23
24
|
@include create-token(components-z-index-file-upload-input, -1);
|