@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.
Files changed (37) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/api-docs/variables/CircleCountDown.mdx +1 -0
  3. package/api-docs/variables/Draggable.mdx +2 -1
  4. package/api-docs/variables/InteractiveElement.mdx +1 -1
  5. package/api-docs/variables/RefButton.mdx +1 -1
  6. package/api-docs/variables/RefInteractiveElement.mdx +1 -1
  7. package/api-docs/variables/RefSimpleButton.mdx +1 -1
  8. package/design-tokens/tokens/zIndex.tokens.scss +2 -1
  9. package/dist/components-no-global-styles.css +1 -1
  10. package/dist/components.cjs +2 -2
  11. package/dist/components.css +1 -1
  12. package/dist/components.js +3769 -3582
  13. package/dist/types/src/components/elements/Button/Button.d.ts +1 -0
  14. package/dist/types/src/components/elements/Button/Button.d.ts.map +1 -1
  15. package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +3 -1
  16. package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
  17. package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts +6 -8
  18. package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts.map +1 -1
  19. package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts +1 -0
  20. package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts.map +1 -1
  21. package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts +2 -0
  22. package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts.map +1 -1
  23. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts +4 -0
  24. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts.map +1 -1
  25. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts.map +1 -1
  26. package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts +1 -0
  27. package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts.map +1 -1
  28. package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts.map +1 -1
  29. package/dist/types/src/components/modules/DropContent/DropContent.d.ts +1 -0
  30. package/dist/types/src/components/modules/DropContent/DropContent.d.ts.map +1 -1
  31. package/dist/types/src/components/modules/Modal/Modal.d.ts +1 -0
  32. package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
  33. package/dist/types/src/hooks/useAriaTooltip.d.ts +12 -2
  34. package/dist/types/src/hooks/useAriaTooltip.d.ts.map +1 -1
  35. package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts +34 -0
  36. package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts.map +1 -0
  37. 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
@@ -1,5 +1,6 @@
1
1
  ```ts
2
2
  const CircleCountDown: React.FC<{
3
+ currentCount?: number;
3
4
  startCountFrom?: number;
4
5
  msInterval?: number;
5
6
  shouldStartCountDown?: boolean;
@@ -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 InteractiveElement: React.FC<React.ComponentPropsWithoutRef<InteractiveElementHTMLTag> & object>;
2
+ const InteractiveElement: React.FC<InteractiveElementBaseProps>;
3
3
  ```
@@ -1,3 +1,3 @@
1
1
  ```ts
2
- const RefButton: ForwardRefExoticComponent<((((Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | Omit<...> | Omit<...> | Omit<...>) & { ...; }) & { ...; }) & EnhancerProps) & LoadingBoxProps & Pick<...> & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
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<(Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | Omit<DetailedHTMLProps<HTMLAttributes<...>, HTMLElement>, "ref"> | Omit<...> | Omit<...>) & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
2
+ const RefInteractiveElement: ForwardRefExoticComponent<InteractiveElementBaseProps & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
3
3
  ```
@@ -1,3 +1,3 @@
1
1
  ```ts
2
- const RefSimpleButton: ForwardRefExoticComponent<((Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | Omit<DetailedHTMLProps<...>, "ref"> | Omit<...> | Omit<...>) & { ...; }) & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
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
- @include create-token(components-z-index-tooltip, 1);
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);