@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.
Files changed (150) hide show
  1. package/CHANGELOG.md +204 -0
  2. package/api-docs/README.mdx +11 -2
  3. package/api-docs/enumerations/TestId.mdx +1 -0
  4. package/api-docs/functions/announce.mdx +1 -1
  5. package/api-docs/functions/onEnter.mdx +3 -3
  6. package/api-docs/functions/sizeToPadding.mdx +16 -6
  7. package/api-docs/functions/useBoundingRect.mdx +42 -0
  8. package/api-docs/functions/useBreakpointChange.mdx +1 -1
  9. package/api-docs/functions/useFocusFrom.mdx +2 -2
  10. package/api-docs/functions/useFocusFromOpened.mdx +1 -1
  11. package/api-docs/functions/useGroupedPagesNav.mdx +2 -2
  12. package/api-docs/functions/useInput.mdx +4 -2
  13. package/api-docs/functions/useModal.mdx +2 -2
  14. package/api-docs/functions/useModalHandle.mdx +1 -1
  15. package/api-docs/functions/useModalWithoutPreventScroll.mdx +2 -2
  16. package/api-docs/functions/useMultistepIndicator.mdx +24 -8
  17. package/api-docs/functions/useOutOfViewNavigation.mdx +4 -4
  18. package/api-docs/functions/useScrollIntoView.mdx +3 -3
  19. package/api-docs/functions/useTabs.mdx +1 -1
  20. package/api-docs/functions/withColorScheme.mdx +3 -3
  21. package/api-docs/functions/withTabName.mdx +2 -2
  22. package/api-docs/functions/withTransition.mdx +6 -4
  23. package/api-docs/interfaces/FullSizeWindowCommonProps.mdx +4 -4
  24. package/api-docs/interfaces/IconCollection.mdx +7 -0
  25. package/api-docs/interfaces/IconSource.mdx +3 -3
  26. package/api-docs/interfaces/LoadingBoxProps.mdx +5 -3
  27. package/api-docs/interfaces/ModalHandle.mdx +1 -1
  28. package/api-docs/interfaces/MultistepItem.mdx +1 -1
  29. package/api-docs/interfaces/StatCardRowData.mdx +5 -5
  30. package/api-docs/interfaces/ToastProps.mdx +3 -3
  31. package/api-docs/interfaces/VideoHandle.mdx +2 -2
  32. package/api-docs/interfaces/WithTransitionProps.mdx +1 -0
  33. package/api-docs/type-aliases/ActivityCardAction.mdx +1 -1
  34. package/api-docs/type-aliases/AriaMenuItem.mdx +9 -1
  35. package/api-docs/type-aliases/AriaMenuProps.mdx +5 -1
  36. package/api-docs/type-aliases/AriaSubMenu.mdx +27 -0
  37. package/api-docs/type-aliases/AriaSubMenuContentHelpers.mdx +13 -0
  38. package/api-docs/type-aliases/BreadcrumbItem.mdx +1 -1
  39. package/api-docs/type-aliases/ClickEventHandler.mdx +1 -1
  40. package/api-docs/type-aliases/MenuAction.mdx +1 -1
  41. package/api-docs/type-aliases/MenuItem.mdx +5 -4
  42. package/api-docs/type-aliases/MultiselectCoreProps.mdx +3 -0
  43. package/api-docs/type-aliases/MultiselectOption.mdx +1 -1
  44. package/api-docs/type-aliases/NotificationToastMessage.mdx +1 -1
  45. package/api-docs/type-aliases/NotificationTooltipPosition.mdx +3 -1
  46. package/api-docs/type-aliases/NotificationTooltipProps.mdx +3 -0
  47. package/api-docs/type-aliases/Option.mdx +1 -1
  48. package/api-docs/type-aliases/SelectProps.mdx +3 -3
  49. package/api-docs/type-aliases/TagItem.mdx +2 -2
  50. package/api-docs/variables/AriaMenu.mdx +3 -1
  51. package/api-docs/variables/Draggable.mdx +51 -0
  52. package/api-docs/variables/KEYBOARD_EVENT_KEY.mdx +16 -0
  53. package/api-docs/variables/MultiselectCore.mdx +27 -0
  54. package/api-docs/variables/MultistepIndicator.mdx +1 -0
  55. package/api-docs/variables/PreferenceInput.mdx +1 -0
  56. package/api-docs/variables/Select.mdx +2 -2
  57. package/api-docs/variables/Sheet.mdx +9 -1
  58. package/api-docs/variables/Toast.mdx +3 -1
  59. package/api-docs/variables/ToggleSwitchDisplay.mdx +16 -0
  60. package/api-docs/variables/buttonVariantsValues.mdx +3 -0
  61. package/design-tokens/mixins/_focus.scss +54 -10
  62. package/design-tokens/mixins/media-queries.scss +12 -0
  63. package/design-tokens/variables.legacy.scss +8 -0
  64. package/dist/components-no-global-styles.css +1 -1
  65. package/dist/components.cjs +2 -2
  66. package/dist/components.css +1 -1
  67. package/dist/components.js +6253 -8056
  68. package/dist/types/design-tokens/generated/Icons.d.ts +7 -0
  69. package/dist/types/design-tokens/generated/Icons.d.ts.map +1 -1
  70. package/dist/types/src/components/elements/ActionsRow/ActionsRow.d.ts +1 -0
  71. package/dist/types/src/components/elements/ActionsRow/ActionsRow.d.ts.map +1 -1
  72. package/dist/types/src/components/elements/Checkbox/Checkbox.d.ts.map +1 -1
  73. package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +43 -0
  74. package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
  75. package/dist/types/src/components/elements/Input/Input.d.ts +1 -0
  76. package/dist/types/src/components/elements/Input/Input.d.ts.map +1 -1
  77. package/dist/types/src/components/elements/ListBoxLink/ListBoxLink.d.ts +2 -2
  78. package/dist/types/src/components/elements/ListBoxLink/ListBoxLink.d.ts.map +1 -1
  79. package/dist/types/src/components/elements/ListLink/ListLink.d.ts +8 -5
  80. package/dist/types/src/components/elements/ListLink/ListLink.d.ts.map +1 -1
  81. package/dist/types/src/components/elements/Panel/Panel.d.ts +1 -0
  82. package/dist/types/src/components/elements/Panel/Panel.d.ts.map +1 -1
  83. package/dist/types/src/components/elements/Scrollbars/Scrollbars.d.ts +0 -1
  84. package/dist/types/src/components/elements/Scrollbars/Scrollbars.d.ts.map +1 -1
  85. package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  86. package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitchDisplay.d.ts +28 -0
  87. package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitchDisplay.d.ts.map +1 -0
  88. package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts +1 -2
  89. package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts.map +1 -1
  90. package/dist/types/src/components/elements/Tooltip/Tooltip.d.ts.map +1 -1
  91. package/dist/types/src/components/modules/AriaMenu/AriaMenu.d.ts +3 -1
  92. package/dist/types/src/components/modules/AriaMenu/AriaMenu.d.ts.map +1 -1
  93. package/dist/types/src/components/modules/AriaMenu/AriaMenu.types.d.ts +121 -1
  94. package/dist/types/src/components/modules/AriaMenu/AriaMenu.types.d.ts.map +1 -1
  95. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts +32 -4
  96. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts.map +1 -1
  97. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuButton.d.ts +3 -6
  98. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuButton.d.ts.map +1 -1
  99. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuItem.d.ts +3 -0
  100. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuItem.d.ts.map +1 -1
  101. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts +22 -0
  102. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts.map +1 -0
  103. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuPopover.d.ts.map +1 -1
  104. package/dist/types/src/components/modules/Avatar/Avatar.utils.d.ts +2 -2
  105. package/dist/types/src/components/modules/Avatar/Avatar.utils.d.ts.map +1 -1
  106. package/dist/types/src/components/modules/Captions/Captions.view.d.ts +1 -0
  107. package/dist/types/src/components/modules/Captions/Captions.view.d.ts.map +1 -1
  108. package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts +1 -0
  109. package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts.map +1 -1
  110. package/dist/types/src/components/modules/ConfirmationModal/ConfirmationModal.d.ts +2 -0
  111. package/dist/types/src/components/modules/ConfirmationModal/ConfirmationModal.d.ts.map +1 -1
  112. package/dist/types/src/components/modules/DropContent/DropContent.d.ts.map +1 -1
  113. package/dist/types/src/components/modules/Menu/Menu.d.ts +3 -1
  114. package/dist/types/src/components/modules/Menu/Menu.d.ts.map +1 -1
  115. package/dist/types/src/components/modules/Menu/types.d.ts +4 -2
  116. package/dist/types/src/components/modules/Menu/types.d.ts.map +1 -1
  117. package/dist/types/src/components/modules/Modal/Modal.d.ts +2 -0
  118. package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
  119. package/dist/types/src/components/modules/Multiselect/ConfirmableMultiselect.d.ts.map +1 -1
  120. package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts +8 -0
  121. package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts.map +1 -1
  122. package/dist/types/src/components/modules/Multiselect/MultiselectCore.d.ts.map +1 -1
  123. package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.d.ts +1 -0
  124. package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.d.ts.map +1 -1
  125. package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.utils.d.ts +1 -2
  126. package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.utils.d.ts.map +1 -1
  127. package/dist/types/src/components/modules/MultistepIndicator/OrdinalText.view.d.ts.map +1 -1
  128. package/dist/types/src/components/modules/PopOutWindow/PopOutWindow.d.ts.map +1 -1
  129. package/dist/types/src/components/modules/PopOutWindow/copyStyles.d.ts +23 -0
  130. package/dist/types/src/components/modules/PopOutWindow/copyStyles.d.ts.map +1 -0
  131. package/dist/types/src/components/modules/PreferenceInput/PreferenceInput.d.ts +2 -0
  132. package/dist/types/src/components/modules/PreferenceInput/PreferenceInput.d.ts.map +1 -1
  133. package/dist/types/src/components/modules/Sheet/Sheet.d.ts +12 -1
  134. package/dist/types/src/components/modules/Sheet/Sheet.d.ts.map +1 -1
  135. package/dist/types/src/components/modules/TransitionContainer/withTransition.d.ts +1 -0
  136. package/dist/types/src/components/modules/TransitionContainer/withTransition.d.ts.map +1 -1
  137. package/dist/types/src/constants/keyboard.d.ts +2 -0
  138. package/dist/types/src/constants/keyboard.d.ts.map +1 -1
  139. package/dist/types/src/exports.d.ts +8 -1
  140. package/dist/types/src/exports.d.ts.map +1 -1
  141. package/dist/types/src/hooks/useAriaTooltip.d.ts +9 -3
  142. package/dist/types/src/hooks/useAriaTooltip.d.ts.map +1 -1
  143. package/dist/types/src/hooks/useBoundingRect.d.ts +27 -0
  144. package/dist/types/src/hooks/useBoundingRect.d.ts.map +1 -0
  145. package/dist/types/src/types/sizes.d.ts +1 -1
  146. package/dist/types/src/types/sizes.d.ts.map +1 -1
  147. package/dist/types/src/utils/imageSrc.d.ts +1 -1
  148. package/dist/types/src/utils/testIds.d.ts +1 -0
  149. package/dist/types/src/utils/testIds.d.ts.map +1 -1
  150. package/package.json +15 -26
@@ -1 +1 @@
1
- {"version":3,"file":"testIds.d.ts","sourceRoot":"","sources":["../../../../src/utils/testIds.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IACd,kBAAkB,yBAAyB;IAC3C,gBAAgB,uBAAuB;IACvC,yBAAyB,iCAAiC;IAC1D,gCAAgC,wCAAwC;IACxE,aAAa,mBAAmB;IAChC,6BAA6B,oCAAoC;IACjE,UAAU,gBAAgB;IAC1B,mBAAmB,0BAA0B;IAC7C,iBAAiB,wBAAwB;IACzC,QAAQ,cAAc;IACtB,gBAAgB,uBAAuB;IACvC,SAAS,eAAe;IACxB,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,kBAAkB,wBAAwB;IAC1C,wBAAwB,+BAA+B;IACvD,wBAAwB,+BAA+B;IACvD,wBAAwB,+BAA+B;IACvD,yBAAyB,gCAAgC;IACzD,uBAAuB,8BAA8B;IACrD,sBAAsB,6BAA6B;IACnD,iBAAiB,sBAAsB;IACvC,uBAAuB,8BAA8B;IACrD,uBAAuB,8BAA8B;IACrD,UAAU,gBAAgB;IAC1B,aAAa,mBAAmB;IAChC,UAAU,gBAAgB;IAC1B,UAAU,gBAAgB;IAC1B,gBAAgB,uBAAuB;IACvC,mBAAmB,0BAA0B;IAC7C,GAAG,QAAQ;IACX,YAAY,kBAAkB;IAC9B,QAAQ,cAAc;IAGtB,iBAAiB,wBAAwB;IACzC,kBAAkB,0BAA0B;IAC5C,OAAO,YAAY;IAGnB,mBAAmB,0BAA0B;IAC7C,mBAAmB,0BAA0B;IAC7C,eAAe,sBAAsB;IACrC,iBAAiB,sBAAsB;IACvC,mBAAmB,0BAA0B;CAChD"}
1
+ {"version":3,"file":"testIds.d.ts","sourceRoot":"","sources":["../../../../src/utils/testIds.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IACd,kBAAkB,yBAAyB;IAC3C,gBAAgB,uBAAuB;IACvC,yBAAyB,iCAAiC;IAC1D,gCAAgC,wCAAwC;IACxE,aAAa,mBAAmB;IAChC,sBAAsB,6BAA6B;IACnD,6BAA6B,oCAAoC;IACjE,UAAU,gBAAgB;IAC1B,mBAAmB,0BAA0B;IAC7C,iBAAiB,wBAAwB;IACzC,QAAQ,cAAc;IACtB,gBAAgB,uBAAuB;IACvC,SAAS,eAAe;IACxB,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,kBAAkB,wBAAwB;IAC1C,wBAAwB,+BAA+B;IACvD,wBAAwB,+BAA+B;IACvD,wBAAwB,+BAA+B;IACvD,yBAAyB,gCAAgC;IACzD,uBAAuB,8BAA8B;IACrD,sBAAsB,6BAA6B;IACnD,iBAAiB,sBAAsB;IACvC,uBAAuB,8BAA8B;IACrD,uBAAuB,8BAA8B;IACrD,UAAU,gBAAgB;IAC1B,aAAa,mBAAmB;IAChC,UAAU,gBAAgB;IAC1B,UAAU,gBAAgB;IAC1B,gBAAgB,uBAAuB;IACvC,mBAAmB,0BAA0B;IAC7C,GAAG,QAAQ;IACX,YAAY,kBAAkB;IAC9B,QAAQ,cAAc;IAGtB,iBAAiB,wBAAwB;IACzC,kBAAkB,0BAA0B;IAC5C,OAAO,YAAY;IAGnB,mBAAmB,0BAA0B;IAC7C,mBAAmB,0BAA0B;IAC7C,eAAe,sBAAsB;IACrC,iBAAiB,sBAAsB;IACvC,mBAAmB,0BAA0B;CAChD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pexip/components",
3
- "version": "20.0.0",
3
+ "version": "20.2.0",
4
4
  "homepage": "https://developer.pexip.com",
5
5
  "bugs": "https://gitlab.com/pexip/zoo/issues",
6
6
  "repository": {
@@ -62,16 +62,16 @@
62
62
  "lint": "yarn run -T biome lint",
63
63
  "prepack": "yarn clean && yarn build && yarn docs",
64
64
  "prettier": "prettier --ignore-path ../../.gitignore \"**/*.+(js|json|ts|tsx)\"",
65
- "test": "jest",
65
+ "test": "pexip-bundler test",
66
66
  "tsc": "tsc --noEmit",
67
67
  "typecheck": "yarn tsc --noEmit -p .",
68
68
  "typescript-declarations": "tsc --project tsconfig.declarations.json",
69
69
  "docs": "typedoc"
70
70
  },
71
71
  "dependencies": {
72
- "@pexip/hooks": "21.0.7",
73
- "@pexip/signal": "16.9.5",
74
- "@pexip/utils": "17.3.0",
72
+ "@pexip/hooks": "21.0.9",
73
+ "@pexip/signal": "16.9.6",
74
+ "@pexip/utils": "17.4.1",
75
75
  "@react-aria/button": "^3.14.1",
76
76
  "@react-aria/interactions": "^3.25.5",
77
77
  "@react-aria/menu": "^3.19.1",
@@ -91,43 +91,32 @@
91
91
  "simplebar-react": "^3.2.3",
92
92
  "tabbable": "^6.0.0",
93
93
  "tslib": "^2.3.0",
94
- "uuid": "^11.0.0"
94
+ "uuid": "^14.0.0"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@mdx-js/react": "^1.6.22",
98
- "@pexip/bundler": "18.2.1",
98
+ "@pexip/bundler": "18.3.0",
99
99
  "@react-types/button": "^3.9.2",
100
100
  "@react-types/menu": "^3.9.7",
101
101
  "@react-types/shared": "^3.22.1",
102
- "@storybook/addon-actions": "^8.6.18",
103
- "@storybook/addon-docs": "^8.6.18",
104
- "@storybook/blocks": "^8.6.18",
105
- "@storybook/react": "^8.6.18",
106
- "@swc/core": "^1.10.12",
107
- "@swc/jest": "^0.2.39",
108
- "@testing-library/dom": "^10.4.0",
109
- "@testing-library/jest-dom": "^6.4.5",
110
- "@testing-library/react": "^16.3.0",
111
- "@testing-library/user-event": "^14.5.2",
102
+ "@storybook/addon-docs": "^10.5.0",
103
+ "@storybook/react": "^10.5.0",
104
+ "@swc/core": "^1.15.33",
105
+ "@testing-library/dom": "^10.4.1",
106
+ "@testing-library/jest-dom": "^7.0.1",
107
+ "@testing-library/react": "^16.3.2",
108
+ "@testing-library/user-event": "^14.6.1",
112
109
  "@types/classnames": "^2.2.10",
113
110
  "@types/csso": "^5.0.0",
114
- "@types/jest-axe": "^3.5.9",
115
- "@types/prettier": "^2.0.2",
116
111
  "@types/react": "19.2.5",
117
112
  "@types/react-dom": "^19.2.3",
118
- "@types/testing-library__jest-dom": "^5.14.9",
119
- "@types/testing-library__react-hooks": "^4.0.0",
120
- "@types/testing-library__user-event": "^4.2.0",
121
113
  "@types/uuid": "^8.3.0",
122
114
  "builtin-modules": "^3.1.0",
123
115
  "identity-obj-proxy": "^3.0.0",
124
- "jest": "^29.5.12",
125
- "jest-axe": "^8.0.0",
126
- "jest-junit": "^16.0.0",
127
116
  "prettier": "^3.2.5",
128
117
  "react": "19.2.3",
129
118
  "react-dom": "19.2.3",
130
- "storybook": "^8.6.18",
119
+ "storybook": "^10.5.0",
131
120
  "svgo": "^3.2.0",
132
121
  "typedoc": "^0.28.18",
133
122
  "typedoc-plugin-markdown": "^4.11.0",