@qualtrics/ui-react 2.85.2 → 2.85.5

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 (122) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/__node_modules/@radix-ui/primitive/dist/index.js +14 -3
  3. package/dist/__node_modules/@radix-ui/primitive/dist/internal/is-development.false.js +4 -0
  4. package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +9 -6
  5. package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +263 -153
  6. package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +8 -1
  7. package/dist/__node_modules/@radix-ui/react-context/dist/index.js +35 -12
  8. package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +16 -6
  9. package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +172 -43
  10. package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +76 -95
  11. package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -6
  12. package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +111 -30
  13. package/dist/__node_modules/@radix-ui/react-id/dist/index.js +6 -0
  14. package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +232 -197
  15. package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +104 -49
  16. package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +10 -8
  17. package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +72 -14
  18. package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +8 -2
  19. package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +52 -18
  20. package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +106 -54
  21. package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +17 -4
  22. package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +14 -4
  23. package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +6 -1
  24. package/dist/__node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +37 -0
  25. package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
  26. package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +28 -15
  27. package/dist/__shared/cjs/{index-e03dac36.js → index-bd03241f.js} +213 -208
  28. package/dist/__shared/cjs/{index-507024ee.js → index-ccb5282a.js} +12 -3
  29. package/dist/components/Accordion/Accordion2.js +3 -3
  30. package/dist/components/Button/Button.js +52 -6
  31. package/dist/components/Button/Button2.js +6 -52
  32. package/dist/components/Button/index.js +1 -1
  33. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  34. package/dist/components/Checkbox/Checkbox2.js +3 -3
  35. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  36. package/dist/components/ColorPicker/ColorPickerFlyout.js +1 -1
  37. package/dist/components/Combobox/Combobox2.js +3 -3
  38. package/dist/components/ConfigPane/ConfigPane.js +6 -2
  39. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  40. package/dist/components/Divider/Divider2.js +3 -3
  41. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
  42. package/dist/components/Dropdown/Dropdown2.js +3 -3
  43. package/dist/components/FilePicker/FilePicker.js +1 -1
  44. package/dist/components/FilePicker/FilePicker2.js +3 -3
  45. package/dist/components/FormField/Caption.js +3 -3
  46. package/dist/components/FormField/FormField2.js +3 -3
  47. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  48. package/dist/components/Icon/IconTypes.js +1 -0
  49. package/dist/components/IconButton/IconButton2.js +3 -3
  50. package/dist/components/InlineInput/InlineInput2.js +3 -3
  51. package/dist/components/Input/Input2.js +3 -3
  52. package/dist/components/InputGroup/InputGroup2.js +3 -3
  53. package/dist/components/Label/Label2.js +3 -3
  54. package/dist/components/Link/Link2.js +3 -3
  55. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  56. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  57. package/dist/components/Modal/Modal2.js +3 -3
  58. package/dist/components/NewMenu/NewMenu.js +3 -3
  59. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  60. package/dist/components/PageLayout/PageLayout.js +3 -3
  61. package/dist/components/Pagination/Pagination2.js +3 -3
  62. package/dist/components/Pagination/PaginationNextButton.js +1 -1
  63. package/dist/components/Pagination/PaginationPreviousButton.js +1 -1
  64. package/dist/components/Popover/Popover2.js +3 -3
  65. package/dist/components/QuickSearch/QuickSearch.js +1 -1
  66. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  67. package/dist/components/Radio/Radio2.js +3 -3
  68. package/dist/components/SearchInput/SearchInput2.js +3 -3
  69. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  70. package/dist/components/Slider/Slider2.js +3 -3
  71. package/dist/components/Switch/Switch2.js +3 -3
  72. package/dist/components/Table/Table2.js +3 -3
  73. package/dist/components/Tabs/Tabs2.js +3 -3
  74. package/dist/components/Tooltip/Tooltip2.js +3 -3
  75. package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
  76. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  77. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  78. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  79. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  80. package/dist/design-tokens/less/typography.js +3 -3
  81. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  82. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  83. package/dist/icons/Icon.js +3 -3
  84. package/dist/icons/components/PulseIcon.js +11 -0
  85. package/dist/icons/index.d.ts +2 -0
  86. package/dist/icons/index.es.js +1 -0
  87. package/dist/icons/index.js +2 -1
  88. package/dist/index.d.ts +72 -71
  89. package/dist/index.es.js +2 -2
  90. package/dist/index.js +3 -3
  91. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  92. package/dist/next/Chat/Loader.js +1 -1
  93. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  94. package/dist/next/Combobox/Combobox2.js +3 -3
  95. package/dist/next/Drawer/Drawer2.js +3 -3
  96. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  97. package/dist/next/Form/FormFields/InputField.js +3 -3
  98. package/dist/next/Indicator/Indicator2.js +3 -3
  99. package/dist/next/Input/Input2.js +3 -3
  100. package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
  101. package/dist/next/Menu/Hooks/useFlyoutNode.js +48 -0
  102. package/dist/next/Menu/Menu.js +2 -2
  103. package/dist/next/Menu/Menu2.js +3 -3
  104. package/dist/next/Menu/MenuButton.js +6 -5
  105. package/dist/next/Menu/MenuItem.js +5 -4
  106. package/dist/next/Menu/MenuPane.js +20 -19
  107. package/dist/next/Menu/PaneChildren.js +15 -10
  108. package/dist/next/Menu/SubMenu.js +22 -21
  109. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  110. package/dist/next/Select/Select2.js +3 -3
  111. package/dist/next/SplitButton/SplitButton.js +1 -1
  112. package/dist/next/SplitButton/SplitButton2.js +3 -3
  113. package/dist/next/TimePicker/TimePicker2.js +3 -3
  114. package/dist/next/ToggleButton/ToggleButton.js +1 -1
  115. package/dist/next/ToggleButton/styles.js +3 -3
  116. package/dist/next/index.js +1581 -850
  117. package/dist/translations-en.js +71 -71
  118. package/dist/utils/Flyout/Flyout2.js +3 -3
  119. package/icons/package.json +4 -4
  120. package/next/package.json +5 -5
  121. package/package.json +16 -16
  122. package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -23
@@ -1,24 +1,30 @@
1
1
  import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
2
2
  import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
3
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
3
4
  import * as React from 'react';
4
5
  import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
5
6
  import { Primitive } from '../../react-primitive/dist/index.js';
6
7
  import { useCallbackRef } from '../../react-use-callback-ref/dist/index.js';
7
8
 
8
9
  "use client";
9
- const _excluded = ["loop", "trapped", "onMountAutoFocus", "onUnmountAutoFocus"];
10
+ const _excluded = ["loop", "trapped", "branches", "onMountAutoFocus", "onUnmountAutoFocus"];
11
+ var __defProp = Object.defineProperty;
12
+ var __name = (target, value) => __defProp(target, "name", {
13
+ value,
14
+ configurable: true
15
+ });
10
16
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
11
17
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
12
18
  var EVENT_OPTIONS = {
13
19
  bubbles: false,
14
20
  cancelable: true
15
21
  };
16
- var FOCUS_SCOPE_NAME = "FocusScope";
17
- var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
22
+ var FocusScope = /* @__PURE__ */React.forwardRef(/* @__PURE__ */__name(function FocusScope2(props, forwardedRef) {
18
23
  const _props$loop = props.loop,
19
24
  loop = _props$loop === void 0 ? false : _props$loop,
20
25
  _props$trapped = props.trapped,
21
26
  trapped = _props$trapped === void 0 ? false : _props$trapped,
27
+ branches = props.branches,
22
28
  onMountAutoFocusProp = props.onMountAutoFocus,
23
29
  onUnmountAutoFocusProp = props.onUnmountAutoFocus,
24
30
  scopeProps = _objectWithoutProperties(props, _excluded);
@@ -29,7 +35,17 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
29
35
  const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
30
36
  const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
31
37
  const lastFocusedElementRef = React.useRef(null);
32
- const composedRefs = useComposedRefs(forwardedRef, node => setContainer(node));
38
+ const composedRefs = useComposedRefs(forwardedRef, setContainer);
39
+ const branchesRef = React.useRef(branches);
40
+ React.useEffect(() => {
41
+ branchesRef.current = branches;
42
+ });
43
+ const isTargetInScope = React.useCallback(target => {
44
+ var _branchesRef$current;
45
+ if (!target) return false;
46
+ if (container !== null && container !== void 0 && container.contains(target)) return true;
47
+ return Boolean((_branchesRef$current = branchesRef.current) === null || _branchesRef$current === void 0 ? void 0 : _branchesRef$current.some(branch => branch.contains(target)));
48
+ }, [container]);
33
49
  const focusScope = React.useRef({
34
50
  paused: false,
35
51
  pause() {
@@ -44,7 +60,7 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
44
60
  let handleFocusIn2 = function (event) {
45
61
  if (focusScope.paused || !container) return;
46
62
  const target = event.target;
47
- if (container.contains(target)) {
63
+ if (isTargetInScope(target)) {
48
64
  lastFocusedElementRef.current = target;
49
65
  } else {
50
66
  focus(lastFocusedElementRef.current, {
@@ -56,7 +72,7 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
56
72
  if (focusScope.paused || !container) return;
57
73
  const relatedTarget = event.relatedTarget;
58
74
  if (relatedTarget === null) return;
59
- if (!container.contains(relatedTarget)) {
75
+ if (!isTargetInScope(relatedTarget)) {
60
76
  focus(lastFocusedElementRef.current, {
61
77
  select: true
62
78
  });
@@ -72,6 +88,9 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
72
88
  var handleFocusIn = handleFocusIn2,
73
89
  handleFocusOut = handleFocusOut2,
74
90
  handleMutations = handleMutations2;
91
+ __name(handleFocusIn2, "handleFocusIn");
92
+ __name(handleFocusOut2, "handleFocusOut");
93
+ __name(handleMutations2, "handleMutations");
75
94
  document.addEventListener("focusin", handleFocusIn2);
76
95
  document.addEventListener("focusout", handleFocusOut2);
77
96
  const mutationObserver = new MutationObserver(handleMutations2);
@@ -85,7 +104,7 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
85
104
  mutationObserver.disconnect();
86
105
  };
87
106
  }
88
- }, [trapped, container, focusScope.paused]);
107
+ }, [trapped, container, focusScope.paused, isTargetInScope]);
89
108
  React.useEffect(() => {
90
109
  if (container) {
91
110
  focusScopesStack.add(focusScope);
@@ -106,12 +125,14 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
106
125
  }
107
126
  return () => {
108
127
  container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
128
+ const ownerDocument = container.ownerDocument;
129
+ const UnmountEvent = CustomEvent;
109
130
  setTimeout(() => {
110
- const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
131
+ const unmountEvent = new UnmountEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
111
132
  container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
112
133
  container.dispatchEvent(unmountEvent);
113
134
  if (!unmountEvent.defaultPrevented) {
114
- focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
135
+ focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : ownerDocument.body, {
115
136
  select: true
116
137
  });
117
138
  }
@@ -156,12 +177,48 @@ var FocusScope = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
156
177
  ref: composedRefs,
157
178
  onKeyDown: handleKeyDown
158
179
  });
159
- });
160
- FocusScope.displayName = FOCUS_SCOPE_NAME;
180
+ }, "FocusScope"));
181
+ var FocusScopeBranchContext = /*#__PURE__*/React.createContext(null);
182
+ function FocusScopeBranchProvider(_ref) {
183
+ let registry = _ref.registry,
184
+ children = _ref.children;
185
+ if (!registry) {
186
+ return children;
187
+ }
188
+ return /* @__PURE__ */React.createElement(FocusScopeBranchContext.Provider, {
189
+ value: registry,
190
+ children
191
+ });
192
+ }
193
+ __name(FocusScopeBranchProvider, "FocusScopeBranchProvider");
194
+ function useFocusScopeBranchRegistry() {
195
+ const _React$useState3 = React.useState([]),
196
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
197
+ nodes = _React$useState4[0],
198
+ setNodes = _React$useState4[1];
199
+ const registry = React.useMemo(() => ({
200
+ add: /* @__PURE__ */__name(node => setNodes(prev => _includesInstanceProperty(prev).call(prev, node) ? prev : [...prev, node]), "add"),
201
+ remove: /* @__PURE__ */__name(node => setNodes(prev => prev.filter(current => current !== node)), "remove")
202
+ }), []);
203
+ return {
204
+ nodes,
205
+ registry
206
+ };
207
+ }
208
+ __name(useFocusScopeBranchRegistry, "useFocusScopeBranchRegistry");
209
+ function useFocusScopeBranch(node) {
210
+ const registry = React.useContext(FocusScopeBranchContext);
211
+ React.useEffect(() => {
212
+ if (!node || !registry) return;
213
+ registry.add(node);
214
+ return () => registry.remove(node);
215
+ }, [node, registry]);
216
+ }
217
+ __name(useFocusScopeBranch, "useFocusScopeBranch");
161
218
  function focusFirst(candidates) {
162
- let _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
163
- _ref$select = _ref.select,
164
- select = _ref$select === void 0 ? false : _ref$select;
219
+ let _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
220
+ _ref2$select = _ref2.select,
221
+ select = _ref2$select === void 0 ? false : _ref2$select;
165
222
  const previouslyFocusedElement = document.activeElement;
166
223
  for (const candidate of candidates) {
167
224
  focus(candidate, {
@@ -170,33 +227,50 @@ function focusFirst(candidates) {
170
227
  if (document.activeElement !== previouslyFocusedElement) return;
171
228
  }
172
229
  }
230
+ __name(focusFirst, "focusFirst");
173
231
  function getTabbableEdges(container) {
174
232
  const candidates = getTabbableCandidates(container);
175
233
  const first = findVisible(candidates, container);
176
234
  const last = findVisible(candidates.reverse(), container);
177
235
  return [first, last];
178
236
  }
237
+ __name(getTabbableEdges, "getTabbableEdges");
179
238
  function getTabbableCandidates(container) {
180
239
  const nodes = [];
181
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
182
- acceptNode: node => {
240
+ const document2 = container.ownerDocument;
241
+ const walker = document2.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
242
+ acceptNode: /* @__PURE__ */__name(node => {
183
243
  const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
184
- if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
244
+ if (node.disabled || node.hidden || isHiddenInput) {
245
+ return NodeFilter.FILTER_SKIP;
246
+ }
185
247
  return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
186
- }
248
+ }, "acceptNode")
187
249
  });
188
- while (walker.nextNode()) nodes.push(walker.currentNode);
250
+ while (walker.nextNode()) {
251
+ nodes.push(walker.currentNode);
252
+ }
189
253
  return nodes;
190
254
  }
255
+ __name(getTabbableCandidates, "getTabbableCandidates");
191
256
  function findVisible(elements, container) {
257
+ const canUseCheckVisibility = typeof container.checkVisibility === "function" && container.checkVisibility({
258
+ checkVisibilityCSS: true
259
+ });
192
260
  for (const element of elements) {
193
- if (!isHidden(element, {
261
+ const hidden = canUseCheckVisibility ? !element.checkVisibility({
262
+ checkVisibilityCSS: true
263
+ }) : isHidden(element, {
194
264
  upTo: container
195
- })) return element;
265
+ });
266
+ if (!hidden) {
267
+ return element;
268
+ }
196
269
  }
197
270
  }
198
- function isHidden(node, _ref2) {
199
- let upTo = _ref2.upTo;
271
+ __name(findVisible, "findVisible");
272
+ function isHidden(node, _ref3) {
273
+ let upTo = _ref3.upTo;
200
274
  if (getComputedStyle(node).visibility === "hidden") return true;
201
275
  while (node) {
202
276
  if (upTo !== void 0 && node === upTo) return false;
@@ -205,21 +279,26 @@ function isHidden(node, _ref2) {
205
279
  }
206
280
  return false;
207
281
  }
282
+ __name(isHidden, "isHidden");
208
283
  function isSelectableInput(element) {
209
- return element instanceof HTMLInputElement && "select" in element;
284
+ return element.tagName === "INPUT" && typeof element.select === "function";
210
285
  }
286
+ __name(isSelectableInput, "isSelectableInput");
211
287
  function focus(element) {
212
- let _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
213
- _ref3$select = _ref3.select,
214
- select = _ref3$select === void 0 ? false : _ref3$select;
288
+ let _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
289
+ _ref4$select = _ref4.select,
290
+ select = _ref4$select === void 0 ? false : _ref4$select;
215
291
  if (element && element.focus) {
216
- const previouslyFocusedElement = document.activeElement;
292
+ var _element$ownerDocumen;
293
+ const ownerDocument = (_element$ownerDocumen = element.ownerDocument) !== null && _element$ownerDocumen !== void 0 ? _element$ownerDocumen : document;
294
+ const previouslyFocusedElement = ownerDocument.activeElement;
217
295
  element.focus({
218
296
  preventScroll: true
219
297
  });
220
298
  if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
221
299
  }
222
300
  }
301
+ __name(focus, "focus");
223
302
  var focusScopesStack = createFocusScopesStack();
224
303
  function createFocusScopesStack() {
225
304
  let stack = [];
@@ -239,6 +318,7 @@ function createFocusScopesStack() {
239
318
  }
240
319
  };
241
320
  }
321
+ __name(createFocusScopesStack, "createFocusScopesStack");
242
322
  function arrayRemove(array, item) {
243
323
  const updatedArray = [...array];
244
324
  const index = updatedArray.indexOf(item);
@@ -247,9 +327,10 @@ function arrayRemove(array, item) {
247
327
  }
248
328
  return updatedArray;
249
329
  }
330
+ __name(arrayRemove, "arrayRemove");
250
331
  function removeLinks(items) {
251
332
  return items.filter(item => item.tagName !== "A");
252
333
  }
253
- var Root = FocusScope;
334
+ __name(removeLinks, "removeLinks");
254
335
 
255
- export { FocusScope, Root };
336
+ export { FocusScope, FocusScopeBranchProvider, FocusScope as Root, useFocusScopeBranch, useFocusScopeBranchRegistry };
@@ -2,6 +2,11 @@ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
2
2
  import * as React from 'react';
3
3
  import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
4
4
 
5
+ var __defProp = Object.defineProperty;
6
+ var __name = (target, value) => __defProp(target, "name", {
7
+ value,
8
+ configurable: true
9
+ });
5
10
  var useReactId = React[" useId ".trim().toString()] || (() => void 0);
6
11
  var count = 0;
7
12
  function useId(deterministicId) {
@@ -14,5 +19,6 @@ function useId(deterministicId) {
14
19
  }, [deterministicId]);
15
20
  return deterministicId || (id ? "radix-".concat(id) : "");
16
21
  }
22
+ __name(useId, "useId");
17
23
 
18
24
  export { useId };