tfy-web-components 0.0.43 → 0.0.45

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 (190) hide show
  1. package/dist/{Button-CPJYHldw.js → Button-HHEfL8b9.js} +5 -4
  2. package/dist/{Button-CPJYHldw.js.map → Button-HHEfL8b9.js.map} +1 -1
  3. package/dist/CSPContext-Cldo9QDp.js +13 -0
  4. package/dist/CSPContext-Cldo9QDp.js.map +1 -0
  5. package/dist/{CompositeItem-DJWNsIwE.js → CompositeItem-GNejxLcK.js} +3 -3
  6. package/dist/{CompositeItem-DJWNsIwE.js.map → CompositeItem-GNejxLcK.js.map} +1 -1
  7. package/dist/{CompositeRoot-BlljDWkR.js → CompositeRoot-7_u1HqDT.js} +9 -47
  8. package/dist/CompositeRoot-7_u1HqDT.js.map +1 -0
  9. package/dist/DropdownMenu-Crlf-J4E.js +3304 -0
  10. package/dist/DropdownMenu-Crlf-J4E.js.map +1 -0
  11. package/dist/{Input-Dcxu6SVO.js → Input-BS9fWUAf.js} +3 -3
  12. package/dist/{Input-Dcxu6SVO.js.map → Input-BS9fWUAf.js.map} +1 -1
  13. package/dist/{Modal-BUWlwJcN.js → Modal-DaHG8mjy.js} +10 -10
  14. package/dist/{Modal-BUWlwJcN.js.map → Modal-DaHG8mjy.js.map} +1 -1
  15. package/dist/Popover-A8IyEt2w.js +400 -0
  16. package/dist/Popover-A8IyEt2w.js.map +1 -0
  17. package/dist/{Popover-BqqXJnK1.js → PopoverPopup-teGm7D5T.js} +25 -498
  18. package/dist/PopoverPopup-teGm7D5T.js.map +1 -0
  19. package/dist/PrehydrationScript-B3u_PP2W.js +49 -0
  20. package/dist/PrehydrationScript-B3u_PP2W.js.map +1 -0
  21. package/dist/Select-BtX40h2K.js +2187 -0
  22. package/dist/Select-BtX40h2K.js.map +1 -0
  23. package/dist/{useValueAsRef-BfFRcMg6.js → addEventListener-D-i9O6BG.js} +8 -8
  24. package/dist/addEventListener-D-i9O6BG.js.map +1 -0
  25. package/dist/clamp-D7_nsB8C.js +30 -0
  26. package/dist/clamp-D7_nsB8C.js.map +1 -0
  27. package/dist/components/atoms/Accordion.es.js +9 -9
  28. package/dist/components/atoms/Avatar.es.js +9 -9
  29. package/dist/components/atoms/Avatar.es.js.map +1 -1
  30. package/dist/components/atoms/Badge.d.ts +5 -6
  31. package/dist/components/atoms/Badge.es.js +80 -43
  32. package/dist/components/atoms/Badge.es.js.map +1 -1
  33. package/dist/components/atoms/Button.d.ts +1 -1
  34. package/dist/components/atoms/Button.es.js +2 -2
  35. package/dist/components/atoms/ButtonGroup.es.js +1 -1
  36. package/dist/components/atoms/Combobox.d.ts +34 -0
  37. package/dist/components/atoms/Combobox.es.js +3252 -0
  38. package/dist/components/atoms/Combobox.es.js.map +1 -0
  39. package/dist/components/atoms/ContextMenu.d.ts +12 -0
  40. package/dist/components/atoms/ContextMenu.es.js +259 -0
  41. package/dist/components/atoms/ContextMenu.es.js.map +1 -0
  42. package/dist/components/atoms/DropdownMenu.d.ts +51 -0
  43. package/dist/components/atoms/DropdownMenu.es.js +31 -0
  44. package/dist/components/atoms/DropdownMenu.es.js.map +1 -0
  45. package/dist/components/atoms/IconButton.d.ts +1 -1
  46. package/dist/components/atoms/IconButton.es.js +3 -3
  47. package/dist/components/atoms/IconButton.es.js.map +1 -1
  48. package/dist/components/atoms/IconProvider.es.js +4 -1
  49. package/dist/components/atoms/IconProvider.es.js.map +1 -1
  50. package/dist/components/atoms/Modal.es.js +1 -1
  51. package/dist/components/atoms/OverflowButton.es.js +2 -2
  52. package/dist/components/atoms/PaginationDot.d.ts +14 -0
  53. package/dist/components/atoms/PaginationDot.es.js +58 -0
  54. package/dist/components/atoms/PaginationDot.es.js.map +1 -0
  55. package/dist/components/atoms/PaginationItem.d.ts +15 -0
  56. package/dist/components/atoms/PaginationItem.es.js +87 -0
  57. package/dist/components/atoms/PaginationItem.es.js.map +1 -0
  58. package/dist/components/atoms/Popover.d.ts +10 -0
  59. package/dist/components/atoms/Popover.es.js +50 -0
  60. package/dist/components/atoms/Popover.es.js.map +1 -0
  61. package/dist/components/atoms/Select.d.ts +63 -0
  62. package/dist/components/atoms/Select.es.js +23 -0
  63. package/dist/components/atoms/Select.es.js.map +1 -0
  64. package/dist/components/atoms/Switch.es.js +7 -6
  65. package/dist/components/atoms/Switch.es.js.map +1 -1
  66. package/dist/components/atoms/TabButton.d.ts +31 -6
  67. package/dist/components/atoms/TabButton.es.js +425 -55
  68. package/dist/components/atoms/TabButton.es.js.map +1 -1
  69. package/dist/components/atoms/Tag.d.ts +2 -2
  70. package/dist/components/atoms/Tag.es.js +66 -33
  71. package/dist/components/atoms/Tag.es.js.map +1 -1
  72. package/dist/components/atoms/Tooltip.es.js +1153 -19
  73. package/dist/components/atoms/Tooltip.es.js.map +1 -1
  74. package/dist/components/atoms/stories/OverlayThemePanels.d.ts +8 -0
  75. package/dist/components/molecules/Alert.es.js +3 -3
  76. package/dist/components/molecules/CopyField.es.js +2 -2
  77. package/dist/components/molecules/CustomDrawer.es.js +1 -1
  78. package/dist/components/molecules/Dialog.es.js +1 -1
  79. package/dist/components/molecules/ImagesPreview.es.js +2 -2
  80. package/dist/components/molecules/Input.es.js +2 -2
  81. package/dist/components/molecules/Markdown.es.js +1 -1
  82. package/dist/components/molecules/Pagination.d.ts +58 -0
  83. package/dist/components/molecules/Pagination.es.js +272 -0
  84. package/dist/components/molecules/Pagination.es.js.map +1 -0
  85. package/dist/components/molecules/SimpleCodeEditor.es.js +3 -3
  86. package/dist/components/molecules/SimpleCodeEditor.es.js.map +1 -1
  87. package/dist/components/molecules/TagGroup.d.ts +11 -0
  88. package/dist/components/molecules/TagGroup.es.js +59 -0
  89. package/dist/components/molecules/TagGroup.es.js.map +1 -0
  90. package/dist/components/molecules/ToggleButton.es.js +2 -2
  91. package/dist/components/molecules/TopBar.d.ts +47 -0
  92. package/dist/components/molecules/TopBar.es.js +164 -0
  93. package/dist/components/molecules/TopBar.es.js.map +1 -0
  94. package/dist/components/molecules/agent-chat/AssistantMessage.d.ts +3 -1
  95. package/dist/components/molecules/agent-chat.es.js +4 -3
  96. package/dist/components/molecules/agent-chat.es.js.map +1 -1
  97. package/dist/components/theme/colors.es.js +1 -0
  98. package/dist/components/theme/colors.es.js.map +1 -1
  99. package/dist/composite-DnShFmi7.js +551 -0
  100. package/dist/composite-DnShFmi7.js.map +1 -0
  101. package/dist/{composite-C22yiNy1.js → composite-IA--dSel.js} +2 -2
  102. package/dist/{composite-C22yiNy1.js.map → composite-IA--dSel.js.map} +1 -1
  103. package/dist/constants-BaUKmVF_.js +103 -0
  104. package/dist/constants-BaUKmVF_.js.map +1 -0
  105. package/dist/{index-C-2yrwZl.js → element-B1vbc-LG.js} +69 -111
  106. package/dist/element-B1vbc-LG.js.map +1 -0
  107. package/dist/error-nCTLdGUr.js +6 -0
  108. package/dist/{error-FX4R42W-.js.map → error-nCTLdGUr.js.map} +1 -1
  109. package/dist/index.d.ts +12 -2
  110. package/dist/index.es.js +65 -12
  111. package/dist/index.es.js.map +1 -1
  112. package/dist/{inertValue-IJM5NA30.js → inertValue-C1Ml1s55.js} +2 -2
  113. package/dist/{inertValue-IJM5NA30.js.map → inertValue-C1Ml1s55.js.map} +1 -1
  114. package/dist/isElementDisabled-lq1fKien.js +47 -0
  115. package/dist/isElementDisabled-lq1fKien.js.map +1 -0
  116. package/dist/new-components/atoms/Alert.d.ts +9 -1
  117. package/dist/new-components/atoms/Alert.es.js +38 -13
  118. package/dist/new-components/atoms/Alert.es.js.map +1 -1
  119. package/dist/new-components/atoms/Checkbox.es.js +8 -7
  120. package/dist/new-components/atoms/Checkbox.es.js.map +1 -1
  121. package/dist/new-components/atoms/EmptyState.d.ts +3 -0
  122. package/dist/new-components/atoms/EmptyState.es.js +9 -4
  123. package/dist/new-components/atoms/EmptyState.es.js.map +1 -1
  124. package/dist/new-components/atoms/Popover.es.js +3 -2
  125. package/dist/new-components/atoms/Popover.es.js.map +1 -1
  126. package/dist/new-components/atoms/Radio.es.js +13 -24
  127. package/dist/new-components/atoms/Radio.es.js.map +1 -1
  128. package/dist/new-components/atoms/SegmentedControl.es.js +7 -7
  129. package/dist/new-components/atoms/Slider.es.js +14 -88
  130. package/dist/new-components/atoms/Slider.es.js.map +1 -1
  131. package/dist/new-components/atoms/Toast.d.ts +8 -12
  132. package/dist/new-components/atoms/Toast.es.js +202 -145
  133. package/dist/new-components/atoms/Toast.es.js.map +1 -1
  134. package/dist/new-components/atoms/Toggletip.d.ts +1 -1
  135. package/dist/new-components/atoms/Toggletip.es.js +3 -2
  136. package/dist/new-components/atoms/Toggletip.es.js.map +1 -1
  137. package/dist/new-components/atoms/stories/ThemeComparison.d.ts +2 -1
  138. package/dist/serializeValue-BLvnTy3o.js +17 -0
  139. package/dist/serializeValue-BLvnTy3o.js.map +1 -0
  140. package/dist/stringifyLocale-DOx30wH1.js +13 -0
  141. package/dist/stringifyLocale-DOx30wH1.js.map +1 -0
  142. package/dist/style.css +1 -1
  143. package/dist/tokens.css +24 -6
  144. package/dist/{useAnimationFrame-DwhymJoW.js → useAnimationFrame-DqvuRtgK.js} +2 -2
  145. package/dist/{useAnimationFrame-DwhymJoW.js.map → useAnimationFrame-DqvuRtgK.js.map} +1 -1
  146. package/dist/{useAriaLabelledBy-Lyj6n_TU.js → useAriaLabelledBy-CP4wKTYs.js} +3 -3
  147. package/dist/{useAriaLabelledBy-Lyj6n_TU.js.map → useAriaLabelledBy-CP4wKTYs.js.map} +1 -1
  148. package/dist/{useBaseUiId-CmLtG9DS.js → useBaseUiId-CYT1vFMG.js} +64 -44
  149. package/dist/{useBaseUiId-CmLtG9DS.js.map → useBaseUiId-CYT1vFMG.js.map} +1 -1
  150. package/dist/{useButton-D2BMuSfC.js → useButton-BlHadUfM.js} +4 -4
  151. package/dist/{useButton-D2BMuSfC.js.map → useButton-BlHadUfM.js.map} +1 -1
  152. package/dist/{CompositeList-D4xmSZ5V.js → useCompositeListItem-DlAKWsHE.js} +59 -59
  153. package/dist/useCompositeListItem-DlAKWsHE.js.map +1 -0
  154. package/dist/{useControlled-BSyYkg5C.js → useControlled-DMDWXIzj.js} +2 -2
  155. package/dist/{useControlled-BSyYkg5C.js.map → useControlled-DMDWXIzj.js.map} +1 -1
  156. package/dist/useFocus-C__7iwl1.js +137 -0
  157. package/dist/useFocus-C__7iwl1.js.map +1 -0
  158. package/dist/{useIsoLayoutEffect-e9VA-ICd.js → useIsoLayoutEffect-D2lpsB9D.js} +8 -4
  159. package/dist/{useIsoLayoutEffect-e9VA-ICd.js.map → useIsoLayoutEffect-D2lpsB9D.js.map} +1 -1
  160. package/dist/{usePopupHandleStore-CkW2IoED.js → usePopupHandleStore-C_Vw7xcw.js} +1966 -2002
  161. package/dist/usePopupHandleStore-C_Vw7xcw.js.map +1 -0
  162. package/dist/{Tooltip-uQIVdskf.js → usePositioner-BmYVsMO_.js} +17 -1402
  163. package/dist/usePositioner-BmYVsMO_.js.map +1 -0
  164. package/dist/{useOpenInteractionType-CDFYOw2d.js → useScrollLock-By-42HSc.js} +74 -58
  165. package/dist/useScrollLock-By-42HSc.js.map +1 -0
  166. package/dist/{useLabelableId-CcIE3RU0.js → useSetFieldFocused-CcdG6FNp.js} +27 -35
  167. package/dist/useSetFieldFocused-CcdG6FNp.js.map +1 -0
  168. package/dist/{useTimeout-BXf1hDIL.js → useTimeout-D1vYJgq4.js} +3 -3
  169. package/dist/{useTimeout-BXf1hDIL.js.map → useTimeout-D1vYJgq4.js.map} +1 -1
  170. package/dist/{useTransitionStatus-C9gg_XJ-.js → useTransitionStatus-CHrs3i5F.js} +3 -3
  171. package/dist/{useTransitionStatus-C9gg_XJ-.js.map → useTransitionStatus-CHrs3i5F.js.map} +1 -1
  172. package/dist/useTriggerFocusGuards-CXAhW8P6.js +100 -0
  173. package/dist/useTriggerFocusGuards-CXAhW8P6.js.map +1 -0
  174. package/dist/useValueChanged-BnlOop8k.js +16 -0
  175. package/dist/useValueChanged-BnlOop8k.js.map +1 -0
  176. package/package.json +1 -1
  177. package/dist/CompositeList-D4xmSZ5V.js.map +0 -1
  178. package/dist/CompositeRoot-BlljDWkR.js.map +0 -1
  179. package/dist/Popover-BqqXJnK1.js.map +0 -1
  180. package/dist/Tooltip-uQIVdskf.js.map +0 -1
  181. package/dist/composite-BL4bbAWg.js +0 -66
  182. package/dist/composite-BL4bbAWg.js.map +0 -1
  183. package/dist/error-FX4R42W-.js +0 -6
  184. package/dist/index-C-2yrwZl.js.map +0 -1
  185. package/dist/shadowDom-BfewIqRj.js +0 -52
  186. package/dist/shadowDom-BfewIqRj.js.map +0 -1
  187. package/dist/useLabelableId-CcIE3RU0.js.map +0 -1
  188. package/dist/useOpenInteractionType-CDFYOw2d.js.map +0 -1
  189. package/dist/usePopupHandleStore-CkW2IoED.js.map +0 -1
  190. package/dist/useValueAsRef-BfFRcMg6.js.map +0 -1
@@ -0,0 +1,103 @@
1
+ import { A as isElement, N as isShadowRoot } from "./useBaseUiId-CYT1vFMG.js";
2
+ function readRawData() {
3
+ if (typeof navigator === "undefined") {
4
+ return {
5
+ userAgent: "",
6
+ platform: "",
7
+ maxTouchPoints: 0
8
+ };
9
+ }
10
+ if (process.env.NODE_ENV !== "production") {
11
+ const uaData = navigator.userAgentData;
12
+ if (uaData && Array.isArray(uaData.brands)) {
13
+ return {
14
+ userAgent: uaData.brands.map(({
15
+ brand,
16
+ version
17
+ }) => `${brand}/${version}`).join(" "),
18
+ platform: uaData.platform ?? navigator.platform ?? "",
19
+ maxTouchPoints: navigator.maxTouchPoints ?? 0
20
+ };
21
+ }
22
+ }
23
+ return {
24
+ userAgent: navigator.userAgent,
25
+ platform: navigator.platform ?? "",
26
+ maxTouchPoints: navigator.maxTouchPoints ?? 0
27
+ };
28
+ }
29
+ const {
30
+ userAgent,
31
+ platform,
32
+ maxTouchPoints
33
+ } = readRawData();
34
+ const lowerUserAgent = userAgent.toLowerCase();
35
+ const lowerPlatform = platform.toLowerCase();
36
+ const jsdom = /jsdom|happydom/.test(lowerUserAgent);
37
+ function activeElement(doc) {
38
+ var _a;
39
+ let element = doc.activeElement;
40
+ while (((_a = element == null ? void 0 : element.shadowRoot) == null ? void 0 : _a.activeElement) != null) {
41
+ element = element.shadowRoot.activeElement;
42
+ }
43
+ return element;
44
+ }
45
+ function contains(parent, child) {
46
+ var _a;
47
+ if (!parent || !child) {
48
+ return false;
49
+ }
50
+ const rootNode = (_a = child.getRootNode) == null ? void 0 : _a.call(child);
51
+ if (parent.contains(child)) {
52
+ return true;
53
+ }
54
+ if (rootNode && isShadowRoot(rootNode)) {
55
+ let next = child;
56
+ while (next) {
57
+ if (parent === next) {
58
+ return true;
59
+ }
60
+ next = next.parentNode || next.host;
61
+ }
62
+ }
63
+ return false;
64
+ }
65
+ function closest(node, selector) {
66
+ let current = node;
67
+ while (current) {
68
+ if (isElement(current) && current.matches(selector)) {
69
+ return current;
70
+ }
71
+ current = current.assignedSlot ?? current.parentNode ?? (isShadowRoot(current) ? current.host : null);
72
+ }
73
+ return null;
74
+ }
75
+ function getTarget(event) {
76
+ if ("composedPath" in event) {
77
+ return event.composedPath()[0] ?? event.target;
78
+ }
79
+ return event.target;
80
+ }
81
+ const FOCUSABLE_ATTRIBUTE = "data-base-ui-focusable";
82
+ const TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
83
+ const ARROW_LEFT = "ArrowLeft";
84
+ const ARROW_RIGHT = "ArrowRight";
85
+ const ARROW_UP = "ArrowUp";
86
+ const ARROW_DOWN = "ArrowDown";
87
+ export {
88
+ ARROW_LEFT as A,
89
+ FOCUSABLE_ATTRIBUTE as F,
90
+ TYPEABLE_SELECTOR as T,
91
+ activeElement as a,
92
+ closest as b,
93
+ contains as c,
94
+ ARROW_RIGHT as d,
95
+ ARROW_UP as e,
96
+ ARROW_DOWN as f,
97
+ getTarget as g,
98
+ lowerUserAgent as h,
99
+ jsdom as j,
100
+ lowerPlatform as l,
101
+ maxTouchPoints as m
102
+ };
103
+ //# sourceMappingURL=constants-BaUKmVF_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-BaUKmVF_.js","sources":["../node_modules/@base-ui/utils/platform/shared.mjs","../node_modules/@base-ui/utils/platform/env.mjs","../node_modules/@base-ui/utils/shadowDom.mjs","../node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs"],"sourcesContent":["/**\n * Reads `navigator.userAgent` / `navigator.platform` (legacy but universally\n * supported) into a normalized shape. In development, prefers the modern\n * `navigator.userAgentData` API on Chromium to avoid DevTools warnings about\n * the deprecated reads; that branch is dead-code-eliminated in production\n * builds to keep the bundle small.\n *\n * Returns empty/zero values when `navigator` is undefined (SSR), so every\n * derived flag safely evaluates to `false`.\n */\nfunction readRawData() {\n if (typeof navigator === 'undefined') {\n return {\n userAgent: '',\n platform: '',\n maxTouchPoints: 0\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return {\n userAgent: uaData.brands.map(({\n brand,\n version\n }) => `${brand}/${version}`).join(' '),\n platform: uaData.platform ?? navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? 0\n };\n }\n }\n return {\n userAgent: navigator.userAgent,\n platform: navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? 0\n };\n}\nconst {\n userAgent,\n platform,\n maxTouchPoints\n} = readRawData();\nexport const lowerUserAgent = userAgent.toLowerCase();\nexport const lowerPlatform = platform.toLowerCase();\nexport { maxTouchPoints };","import { lowerUserAgent } from \"./shared.mjs\";\n\n/** Running in jsdom or HappyDOM (used by unit tests). */\nexport const jsdom = /jsdom|happydom/.test(lowerUserAgent);","import { isElement, isShadowRoot } from '@floating-ui/utils/dom';\nexport function activeElement(doc) {\n let element = doc.activeElement;\n while (element?.shadowRoot?.activeElement != null) {\n element = element.shadowRoot.activeElement;\n }\n return element;\n}\nexport function contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode?.();\n\n // First, attempt with the faster native method.\n if (parent.contains(child)) {\n return true;\n }\n\n // Then fall back to traversing out of shadow roots when needed.\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\n\n/**\n * Finds the closest matching element in the composed tree, crossing slots and shadow roots.\n * `:scope` is not supported.\n */\n\nexport function closest(node, selector) {\n let current = node;\n while (current) {\n if (isElement(current) && current.matches(selector)) {\n return current;\n }\n current = current.assignedSlot ?? current.parentNode ?? (isShadowRoot(current) ? current.host : null);\n }\n return null;\n}\nexport function getTarget(event) {\n if ('composedPath' in event) {\n // The composed path is empty once the event is no longer being dispatched,\n // so fall back to `target` for handlers running after dispatch completes.\n return event.composedPath()[0] ?? event.target;\n }\n\n // TS assumes `composedPath()` always exists, but older browsers without\n // shadow DOM support still fall back to `target`.\n return event.target;\n}","export const FOCUSABLE_ATTRIBUTE = 'data-base-ui-focusable';\nexport const ACTIVE_KEY = 'active';\nexport const SELECTED_KEY = 'selected';\nexport const TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';"],"names":[],"mappings":";AAUA,SAAS,cAAc;AACrB,MAAI,OAAO,cAAc,aAAa;AACpC,WAAO;AAAA,MACL,WAAW;AAAA,MACX,UAAU;AAAA,MACV,gBAAgB;AAAA,IACtB;AAAA,EACE;AACA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAM,SAAS,UAAU;AACzB,QAAI,UAAU,MAAM,QAAQ,OAAO,MAAM,GAAG;AAC1C,aAAO;AAAA,QACL,WAAW,OAAO,OAAO,IAAI,CAAC;AAAA,UAC5B;AAAA,UACA;AAAA,QACV,MAAc,GAAG,KAAK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BAAkB,OAAO;AAG3B,WAAO,MAAM,aAAY,EAAG,CAAC,KAAK,MAAM;AAAA,EAC1C;AAIA,SAAO,MAAM;AACf;ACzDY,MAAC,sBAAsB;AAGvB,MAAC,oBAAoB;AACrB,MAAC,aAAa;AACd,MAAC,cAAc;AACf,MAAC,WAAW;AACZ,MAAC,aAAa;","x_google_ignoreList":[0,1,2,3]}
@@ -1,103 +1,6 @@
1
- import { j as isHTMLElement, p as isElement } from "./useBaseUiId-CmLtG9DS.js";
2
- import { c as contains, b as closest } from "./shadowDom-BfewIqRj.js";
3
1
  import React__default from "react";
4
- function ownerDocument(node) {
5
- return (node == null ? void 0 : node.ownerDocument) || document;
6
- }
7
- function readRawData() {
8
- if (typeof navigator === "undefined") {
9
- return {
10
- userAgent: "",
11
- platform: "",
12
- maxTouchPoints: 0
13
- };
14
- }
15
- if (process.env.NODE_ENV !== "production") {
16
- const uaData = navigator.userAgentData;
17
- if (uaData && Array.isArray(uaData.brands)) {
18
- return {
19
- userAgent: uaData.brands.map(({
20
- brand,
21
- version
22
- }) => `${brand}/${version}`).join(" "),
23
- platform: uaData.platform ?? navigator.platform ?? "",
24
- maxTouchPoints: navigator.maxTouchPoints ?? 0
25
- };
26
- }
27
- }
28
- return {
29
- userAgent: navigator.userAgent,
30
- platform: navigator.platform ?? "",
31
- maxTouchPoints: navigator.maxTouchPoints ?? 0
32
- };
33
- }
34
- const {
35
- userAgent,
36
- platform,
37
- maxTouchPoints
38
- } = readRawData();
39
- const lowerUserAgent = userAgent.toLowerCase();
40
- const lowerPlatform = platform.toLowerCase();
41
- const jsdom = /jsdom|happydom/.test(lowerUserAgent);
42
- const FOCUSABLE_ATTRIBUTE = "data-base-ui-focusable";
43
- const TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
44
- const triggerDisabled = "data-trigger-disabled";
45
- function isTargetInsideEnabledTrigger(target, triggerElements) {
46
- if (!isElement(target)) {
47
- return false;
48
- }
49
- const targetElement = target;
50
- if (triggerElements.hasElement(targetElement)) {
51
- return !targetElement.hasAttribute(triggerDisabled);
52
- }
53
- for (const [, trigger] of triggerElements.entries()) {
54
- if (contains(trigger, targetElement)) {
55
- return !trigger.hasAttribute(triggerDisabled);
56
- }
57
- }
58
- return false;
59
- }
60
- function isEventTargetWithin(event, node) {
61
- if (node == null) {
62
- return false;
63
- }
64
- if ("composedPath" in event) {
65
- return event.composedPath().includes(node);
66
- }
67
- const eventAgain = event;
68
- return eventAgain.target != null && node.contains(eventAgain.target);
69
- }
70
- function isRootElement(element) {
71
- return element.matches("html,body");
72
- }
73
- function isTypeableElement(element) {
74
- return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);
75
- }
76
- function isInteractiveElement(element) {
77
- return closest(element, `button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${TYPEABLE_SELECTOR}`) != null;
78
- }
79
- function isTypeableCombobox(element) {
80
- if (!element) {
81
- return false;
82
- }
83
- return element.getAttribute("role") === "combobox" && isTypeableElement(element);
84
- }
85
- function matchesFocusVisible(element) {
86
- if (!element || jsdom) {
87
- return true;
88
- }
89
- try {
90
- return element.matches(":focus-visible");
91
- } catch (_e) {
92
- return true;
93
- }
94
- }
95
- function getFloatingFocusElement(floatingElement) {
96
- if (!floatingElement) {
97
- return null;
98
- }
99
- return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;
100
- }
2
+ import { i as isHTMLElement, A as isElement } from "./useBaseUiId-CYT1vFMG.js";
3
+ import { F as FOCUSABLE_ATTRIBUTE, j as jsdom, T as TYPEABLE_SELECTOR, c as contains, b as closest } from "./constants-BaUKmVF_.js";
101
4
  var shim = { exports: {} };
102
5
  var useSyncExternalStoreShim_production = {};
103
6
  /**
@@ -236,22 +139,77 @@ if (process.env.NODE_ENV === "production") {
236
139
  shim.exports = requireUseSyncExternalStoreShim_development();
237
140
  }
238
141
  var shimExports = shim.exports;
142
+ function ownerDocument(node) {
143
+ return (node == null ? void 0 : node.ownerDocument) || document;
144
+ }
145
+ const triggerDisabled = "data-trigger-disabled";
146
+ function isTargetInsideEnabledTrigger(target, triggerElements) {
147
+ if (!isElement(target)) {
148
+ return false;
149
+ }
150
+ const targetElement = target;
151
+ if (triggerElements.hasElement(targetElement)) {
152
+ return !targetElement.hasAttribute(triggerDisabled);
153
+ }
154
+ for (const [, trigger] of triggerElements.entries()) {
155
+ if (contains(trigger, targetElement)) {
156
+ return !trigger.hasAttribute(triggerDisabled);
157
+ }
158
+ }
159
+ return false;
160
+ }
161
+ function isEventTargetWithin(event, node) {
162
+ if (node == null) {
163
+ return false;
164
+ }
165
+ if ("composedPath" in event) {
166
+ return event.composedPath().includes(node);
167
+ }
168
+ const eventAgain = event;
169
+ return eventAgain.target != null && node.contains(eventAgain.target);
170
+ }
171
+ function isRootElement(element) {
172
+ return element.matches("html,body");
173
+ }
174
+ function isTypeableElement(element) {
175
+ return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);
176
+ }
177
+ function isInteractiveElement(element) {
178
+ return closest(element, `button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${TYPEABLE_SELECTOR}`) != null;
179
+ }
180
+ function isTypeableCombobox(element) {
181
+ if (!element) {
182
+ return false;
183
+ }
184
+ return element.getAttribute("role") === "combobox" && isTypeableElement(element);
185
+ }
186
+ function matchesFocusVisible(element) {
187
+ if (!element || jsdom) {
188
+ return true;
189
+ }
190
+ try {
191
+ return element.matches(":focus-visible");
192
+ } catch (_e) {
193
+ return true;
194
+ }
195
+ }
196
+ function getFloatingFocusElement(floatingElement) {
197
+ if (!floatingElement) {
198
+ return null;
199
+ }
200
+ return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;
201
+ }
239
202
  export {
240
- FOCUSABLE_ATTRIBUTE as F,
241
- lowerPlatform as a,
242
- maxTouchPoints as b,
243
- isRootElement as c,
244
- isTypeableCombobox as d,
245
- isTypeableElement as e,
246
- isTargetInsideEnabledTrigger as f,
203
+ isTypeableCombobox as a,
204
+ isTypeableElement as b,
205
+ isEventTargetWithin as c,
206
+ isRootElement as d,
207
+ isTargetInsideEnabledTrigger as e,
247
208
  getFloatingFocusElement as g,
248
- isInteractiveElement as h,
249
- isEventTargetWithin as i,
250
- jsdom as j,
251
- lowerUserAgent as l,
209
+ isInteractiveElement as i,
252
210
  matchesFocusVisible as m,
253
211
  ownerDocument as o,
254
212
  shimExports as s,
255
213
  triggerDisabled as t
256
214
  };
257
- //# sourceMappingURL=index-C-2yrwZl.js.map
215
+ //# sourceMappingURL=element-B1vbc-LG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-B1vbc-LG.js","sources":["../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/use-sync-external-store/shim/index.js","../node_modules/@base-ui/utils/owner.mjs","../node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs","../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","export { getWindow as ownerWindow } from '@floating-ui/utils/dom';\nexport function ownerDocument(node) {\n return node?.ownerDocument || document;\n}","import { CommonTriggerDataAttributes } from \"../../utils/popupStateMapping.mjs\";\n\n/**\n * Present when the corresponding tooltip is open.\n */\nexport const popupOpen = CommonTriggerDataAttributes.popupOpen;\n/**\n * Present when the trigger is disabled, either by the `disabled` prop or by a parent `<Tooltip.Root>` component.\n */\nexport const triggerDisabled = 'data-trigger-disabled';","import { isElement, isHTMLElement } from '@floating-ui/utils/dom';\nimport { platform } from '@base-ui/utils/platform';\nimport { activeElement, closest, contains, getTarget } from '@base-ui/utils/shadowDom';\nimport { FOCUSABLE_ATTRIBUTE, TYPEABLE_SELECTOR } from \"./constants.mjs\";\nimport * as TooltipTriggerDataAttributes from \"../../tooltip/trigger/TooltipTriggerDataAttributes.mjs\";\nexport { activeElement, closest, contains, getTarget };\nexport function isTargetInsideEnabledTrigger(target, triggerElements) {\n if (!isElement(target)) {\n return false;\n }\n const targetElement = target;\n if (triggerElements.hasElement(targetElement)) {\n return !targetElement.hasAttribute(TooltipTriggerDataAttributes.triggerDisabled);\n }\n for (const [, trigger] of triggerElements.entries()) {\n if (contains(trigger, targetElement)) {\n return !trigger.hasAttribute(TooltipTriggerDataAttributes.triggerDisabled);\n }\n }\n return false;\n}\nexport function isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const eventAgain = event;\n return eventAgain.target != null && node.contains(eventAgain.target);\n}\nexport function isRootElement(element) {\n return element.matches('html,body');\n}\nexport function isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nexport function isInteractiveElement(element) {\n return closest(element, `button,a[href],[role=\"button\"],select,[tabindex]:not([tabindex=\"-1\"]),${TYPEABLE_SELECTOR}`) != null;\n}\nexport function isTypeableCombobox(element) {\n if (!element) {\n return false;\n }\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\nexport function matchesFocusVisible(element) {\n // We don't want to block focus from working with `visibleOnly`\n // (JSDOM doesn't match `:focus-visible` when the element has `:focus`)\n if (!element || platform.env.jsdom) {\n return true;\n }\n try {\n return element.matches(':focus-visible');\n } catch (_e) {\n return true;\n }\n}\nexport function getFloatingFocusElement(floatingElement) {\n if (!floatingElement) {\n return null;\n }\n // Try to find the element that has `{...getFloatingProps()}` spread on it.\n // This indicates the floating element is acting as a positioning wrapper, and\n // so focus should be managed on the child element with the event handlers and\n // aria props.\n return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;\n}"],"names":["require$$0","shim","shimModule","require$$1","TooltipTriggerDataAttributes.triggerDisabled","platform.env.jsdom"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,MAAI,QAAQA;AACZ,WAAS,GAAG,GAAG,GAAG;AAChB,WAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,EACxE;AACA,MAAI,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IAC3D,WAAW,MAAM,UACjB,YAAY,MAAM,WAClB,kBAAkB,MAAM,iBACxB,gBAAgB,MAAM;AACxB,WAAS,uBAAuB,WAAW,aAAa;AACtD,QAAI,QAAQ,YAAW,GACrB,YAAY,SAAS,EAAE,MAAM,EAAE,OAAc,YAAwB,GAAI,GACzE,OAAO,UAAU,CAAC,EAAE,MACpB,cAAc,UAAU,CAAC;AAC3B;AAAA,MACE,WAAY;AACV,aAAK,QAAQ;AACb,aAAK,cAAc;AACnB,+BAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAAA,MAChE;AAAA,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CAAC,WAAWC,OAAoB;AAClC,WAAO;AAAA,EACT;AACA,MAAI;AACF,WAAO,QAAQ,QAAQ,gBAAgB;AAAA,EACzC,SAAS,IAAI;AACX,WAAO;AAAA,EACT;AACF;AACO,SAAS,wBAAwB,iBAAiB;AACvD,MAAI,CAAC,iBAAiB;AACpB,WAAO;AAAA,EACT;AAKA,SAAO,gBAAgB,aAAa,mBAAmB,IAAI,kBAAkB,gBAAgB,cAAc,IAAI,mBAAmB,GAAG,KAAK;AAC5I;","x_google_ignoreList":[0,1,2,3,4,5]}
@@ -0,0 +1,6 @@
1
+ import { j as createLogOnce } from "./useIsoLayoutEffect-D2lpsB9D.js";
2
+ const error = createLogOnce("error", "Base UI");
3
+ export {
4
+ error as e
5
+ };
6
+ //# sourceMappingURL=error-nCTLdGUr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-FX4R42W-.js","sources":["../node_modules/@base-ui/utils/error.mjs"],"sourcesContent":["import { createLogOnce } from \"./createLogOnce.mjs\";\nexport const error = createLogOnce('error', 'Base UI');\nexport { reset } from \"./createLogOnce.mjs\";"],"names":[],"mappings":";AACY,MAAC,QAAQ,cAAc,SAAS,SAAS;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"error-nCTLdGUr.js","sources":["../node_modules/@base-ui/utils/error.mjs"],"sourcesContent":["import { createLogOnce } from \"./createLogOnce.mjs\";\nexport const error = createLogOnce('error', 'Base UI');\nexport { reset } from \"./createLogOnce.mjs\";"],"names":[],"mappings":";AACY,MAAC,QAAQ,cAAc,SAAS,SAAS;","x_google_ignoreList":[0]}
package/dist/index.d.ts CHANGED
@@ -1,15 +1,25 @@
1
1
  export { default as Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, } from './components/atoms/Avatar';
2
2
  export type { BadgeIconPosition, BadgeProps, BadgeSize, BadgeStatus, BadgeStyle } from './components/atoms/Badge';
3
3
  export { default as Badge } from './components/atoms/Badge';
4
+ export type { ComboboxChipProps, ComboboxContentProps, ComboboxEmptyProps, ComboboxInputProps, ComboboxItemProps, ComboboxLabelProps, ComboboxListProps, } from './components/atoms/Combobox';
5
+ export { Combobox, ComboboxChip, ComboboxChips, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, } from './components/atoms/Combobox';
6
+ export type { ContextMenuContentProps, ContextMenuPlacement } from './components/atoms/ContextMenu';
7
+ export { ContextMenu, ContextMenuContent, ContextMenuTrigger } from './components/atoms/ContextMenu';
8
+ export type { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuItemTextProps, DropdownMenuLabelProps, DropdownMenuListProps, DropdownMenuRadioItemProps, DropdownMenuShortcutProps, DropdownMenuSubTriggerProps, } from './components/atoms/DropdownMenu';
9
+ export { dropdownItemVariants, dropdownLabelVariants, dropdownListVariants, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemText, DropdownMenuLabel, DropdownMenuList, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuTrigger, dropdownPanelVariants, dropdownSeparatorVariants, } from './components/atoms/DropdownMenu';
4
10
  export type { LogoColor, LogoSize } from './components/atoms/Logo';
5
11
  export { default as Logo } from './components/atoms/Logo';
6
12
  export { default as OutlinedRadio } from './components/atoms/OutlinedRadio';
7
13
  export type { ProgressCircleProps, ProgressCircleSize, ProgressFieldProps, ProgressFieldState, ProgressProps, ProgressSize, ProgressStepsProps, ProgressTone, } from './components/atoms/Progress';
8
14
  export { default as Progress, ProgressCircle, ProgressField, ProgressSteps } from './components/atoms/Progress';
15
+ export type { SelectContentProps, SelectItemProps, SelectLabelProps, SelectTriggerProps, SelectValueDisplay, SelectValueProps, } from './components/atoms/Select';
16
+ export { Select, selectChipVariants, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, selectTriggerVariants, SelectValue, } from './components/atoms/Select';
9
17
  export type { SpinnerProps, SpinnerSize, SpinnerTone } from './components/atoms/Spinner';
10
18
  export { default as Spinner, SpinnerMark } from './components/atoms/Spinner';
11
19
  export { default as CustomDrawer } from './components/molecules/CustomDrawer';
12
- export type { AlertAction, AlertProps } from './new-components/atoms/Alert';
20
+ export type { TopBarProps } from './components/molecules/TopBar';
21
+ export { default as TopBar, titleVariants as topBarTitleVariants } from './components/molecules/TopBar';
22
+ export type { AlertAction, AlertProps, AlertReadMore } from './new-components/atoms/Alert';
13
23
  export { default as Alert, alertVariants } from './new-components/atoms/Alert';
14
24
  export type { CheckboxProps } from './new-components/atoms/Checkbox';
15
25
  export { default as Checkbox } from './new-components/atoms/Checkbox';
@@ -24,6 +34,6 @@ export type { SegmentedControlItemProps, SegmentedControlProps } from './new-com
24
34
  export { default as SegmentedControl, SegmentedControlItem } from './new-components/atoms/SegmentedControl';
25
35
  export type { SliderProps } from './new-components/atoms/Slider';
26
36
  export { default as Slider } from './new-components/atoms/Slider';
27
- export type { ToastAppearance, ToastLayout, ToastPager, ToastProps, ToastRawError, ToastStackProps, ToastTimerProps, ToastTone, } from './new-components/atoms/Toast';
37
+ export type { ToastAppearance, ToastLayout, ToastProps, ToastRawError, ToastStackProps, ToastTimerProps, ToastTone, } from './new-components/atoms/Toast';
28
38
  export { default as Toast, ToastStack, ToastTimer, toastVariants } from './new-components/atoms/Toast';
29
39
  export { Toggletip, ToggletipActions, ToggletipCode, ToggletipContent, ToggletipDescription, ToggletipHeader, ToggletipInlineCode, ToggletipLink, ToggletipRoot, ToggletipRow, ToggletipRows, ToggletipTitle, ToggletipTrigger, } from './new-components/atoms/Toggletip';
package/dist/index.es.js CHANGED
@@ -1,15 +1,20 @@
1
1
  import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./components/atoms/Avatar.es.js";
2
2
  import { default as default2 } from "./components/atoms/Badge.es.js";
3
+ import { Combobox, ComboboxChip, ComboboxChips, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator } from "./components/atoms/Combobox.es.js";
4
+ import { ContextMenu, ContextMenuContent, ContextMenuTrigger } from "./components/atoms/ContextMenu.es.js";
5
+ import { D, c, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, d, a, b, t, u } from "./DropdownMenu-Crlf-J4E.js";
3
6
  import { default as default3 } from "./components/atoms/Logo.es.js";
4
7
  import { default as default4 } from "./components/atoms/OutlinedRadio.es.js";
5
8
  import { Progress, ProgressCircle, ProgressField, ProgressSteps } from "./components/atoms/Progress.es.js";
9
+ import { S, a as a2, b as b2, c as c2, d as d2, e as e2, f as f2, h as h2, s as s2, g as g2 } from "./Select-BtX40h2K.js";
6
10
  import { default as default5, SpinnerMark } from "./components/atoms/Spinner.es.js";
7
11
  import { default as default6 } from "./components/molecules/CustomDrawer.es.js";
12
+ import { TopBar, titleVariants } from "./components/molecules/TopBar.es.js";
8
13
  import { default as default7, alertVariants } from "./new-components/atoms/Alert.es.js";
9
14
  import { default as default8 } from "./new-components/atoms/Checkbox.es.js";
10
15
  import { default as default9 } from "./new-components/atoms/Chip.es.js";
11
16
  import { default as default10, emptyStateVariants } from "./new-components/atoms/EmptyState.es.js";
12
- import { P, a, b, c, d, e, f, g, h, i, j } from "./Popover-BqqXJnK1.js";
17
+ import { P, a as a3, b as b3, c as c3, d as d3, e as e3, f as f3, g as g3, h as h3, i as i2, j as j2 } from "./Popover-A8IyEt2w.js";
13
18
  import { default as default11, RadioGroup } from "./new-components/atoms/Radio.es.js";
14
19
  import { default as default12, SegmentedControlItem } from "./new-components/atoms/SegmentedControl.es.js";
15
20
  import { default as default13 } from "./new-components/atoms/Slider.es.js";
@@ -26,21 +31,52 @@ export {
26
31
  default2 as Badge,
27
32
  default8 as Checkbox,
28
33
  default9 as Chip,
34
+ Combobox,
35
+ ComboboxChip,
36
+ ComboboxChips,
37
+ ComboboxContent,
38
+ ComboboxEmpty,
39
+ ComboboxGroup,
40
+ ComboboxInput,
41
+ ComboboxItem,
42
+ ComboboxLabel,
43
+ ComboboxList,
44
+ ComboboxSeparator,
45
+ ContextMenu,
46
+ ContextMenuContent,
47
+ ContextMenuTrigger,
29
48
  default6 as CustomDrawer,
49
+ D as DropdownMenu,
50
+ c as DropdownMenuCheckboxItem,
51
+ e as DropdownMenuContent,
52
+ f as DropdownMenuFooter,
53
+ g as DropdownMenuGroup,
54
+ h as DropdownMenuHeader,
55
+ i as DropdownMenuItem,
56
+ j as DropdownMenuItemText,
57
+ k as DropdownMenuLabel,
58
+ l as DropdownMenuList,
59
+ m as DropdownMenuRadioGroup,
60
+ n as DropdownMenuRadioItem,
61
+ o as DropdownMenuSeparator,
62
+ p as DropdownMenuShortcut,
63
+ q as DropdownMenuSub,
64
+ r as DropdownMenuSubTrigger,
65
+ s as DropdownMenuTrigger,
30
66
  default10 as EmptyState,
31
67
  default3 as Logo,
32
68
  default4 as OutlinedRadio,
33
69
  P as Popover,
34
- a as PopoverArrow,
35
- b as PopoverBody,
36
- c as PopoverClose,
37
- d as PopoverContent,
38
- e as PopoverDescription,
39
- f as PopoverFooter,
40
- g as PopoverHeader,
41
- h as PopoverRoot,
42
- i as PopoverTitle,
43
- j as PopoverTrigger,
70
+ a3 as PopoverArrow,
71
+ b3 as PopoverBody,
72
+ c3 as PopoverClose,
73
+ d3 as PopoverContent,
74
+ e3 as PopoverDescription,
75
+ f3 as PopoverFooter,
76
+ g3 as PopoverHeader,
77
+ h3 as PopoverRoot,
78
+ i2 as PopoverTitle,
79
+ j2 as PopoverTrigger,
44
80
  Progress,
45
81
  ProgressCircle,
46
82
  ProgressField,
@@ -49,6 +85,14 @@ export {
49
85
  RadioGroup,
50
86
  default12 as SegmentedControl,
51
87
  SegmentedControlItem,
88
+ S as Select,
89
+ a2 as SelectContent,
90
+ b2 as SelectGroup,
91
+ c2 as SelectItem,
92
+ d2 as SelectLabel,
93
+ e2 as SelectSeparator,
94
+ f2 as SelectTrigger,
95
+ h2 as SelectValue,
52
96
  default13 as Slider,
53
97
  default5 as Spinner,
54
98
  SpinnerMark,
@@ -68,8 +112,17 @@ export {
68
112
  ToggletipRows,
69
113
  ToggletipTitle,
70
114
  ToggletipTrigger,
115
+ TopBar,
71
116
  alertVariants,
117
+ d as dropdownItemVariants,
118
+ a as dropdownLabelVariants,
119
+ b as dropdownListVariants,
120
+ t as dropdownPanelVariants,
121
+ u as dropdownSeparatorVariants,
72
122
  emptyStateVariants,
73
- toastVariants
123
+ s2 as selectChipVariants,
124
+ g2 as selectTriggerVariants,
125
+ toastVariants,
126
+ titleVariants as topBarTitleVariants
74
127
  };
75
128
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { i as isReactVersionAtLeast } from "./useIsoLayoutEffect-e9VA-ICd.js";
1
+ import { i as isReactVersionAtLeast } from "./useIsoLayoutEffect-D2lpsB9D.js";
2
2
  function inertValue(value) {
3
3
  if (isReactVersionAtLeast(19)) {
4
4
  return value;
@@ -8,4 +8,4 @@ function inertValue(value) {
8
8
  export {
9
9
  inertValue as i
10
10
  };
11
- //# sourceMappingURL=inertValue-IJM5NA30.js.map
11
+ //# sourceMappingURL=inertValue-C1Ml1s55.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inertValue-IJM5NA30.js","sources":["../node_modules/@base-ui/utils/inertValue.mjs"],"sourcesContent":["import { isReactVersionAtLeast } from \"./reactVersion.mjs\";\nexport function inertValue(value) {\n if (isReactVersionAtLeast(19)) {\n return value;\n }\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}"],"names":[],"mappings":";AACO,SAAS,WAAW,OAAO;AAChC,MAAI,sBAAsB,EAAE,GAAG;AAC7B,WAAO;AAAA,EACT;AAEA,SAAO,QAAQ,SAAS;AAC1B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"inertValue-C1Ml1s55.js","sources":["../node_modules/@base-ui/utils/inertValue.mjs"],"sourcesContent":["import { isReactVersionAtLeast } from \"./reactVersion.mjs\";\nexport function inertValue(value) {\n if (isReactVersionAtLeast(19)) {\n return value;\n }\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}"],"names":[],"mappings":";AACO,SAAS,WAAW,OAAO;AAChC,MAAI,sBAAsB,EAAE,GAAG;AAC7B,WAAO;AAAA,EACT;AAEA,SAAO,QAAQ,SAAS;AAC1B;","x_google_ignoreList":[0]}
@@ -0,0 +1,47 @@
1
+ import * as React from "react";
2
+ import { c as useMergedRefs } from "./useIsoLayoutEffect-D2lpsB9D.js";
3
+ import { u as useCompositeRootContext } from "./useButton-BlHadUfM.js";
4
+ import { u as useCompositeListItem } from "./useCompositeListItem-DlAKWsHE.js";
5
+ function useCompositeItem(params = {}) {
6
+ const {
7
+ highlightItemOnHover,
8
+ highlightedIndex,
9
+ onHighlightedIndexChange
10
+ } = useCompositeRootContext();
11
+ const {
12
+ ref,
13
+ index
14
+ } = useCompositeListItem(params);
15
+ const isHighlighted = highlightedIndex === index;
16
+ const itemRef = React.useRef(null);
17
+ const mergedRef = useMergedRefs(ref, itemRef);
18
+ const compositeProps = {
19
+ tabIndex: isHighlighted ? 0 : -1,
20
+ onFocus() {
21
+ onHighlightedIndexChange(index);
22
+ },
23
+ onMouseMove() {
24
+ const item = itemRef.current;
25
+ if (!highlightItemOnHover || !item) {
26
+ return;
27
+ }
28
+ const disabled = item.hasAttribute("disabled") || item.ariaDisabled === "true";
29
+ if (!isHighlighted && !disabled) {
30
+ item.focus();
31
+ }
32
+ }
33
+ };
34
+ return {
35
+ compositeProps,
36
+ compositeRef: mergedRef,
37
+ index
38
+ };
39
+ }
40
+ function isElementDisabled(element) {
41
+ return element == null || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true";
42
+ }
43
+ export {
44
+ isElementDisabled as i,
45
+ useCompositeItem as u
46
+ };
47
+ //# sourceMappingURL=isElementDisabled-lq1fKien.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isElementDisabled-lq1fKien.js","sources":["../node_modules/@base-ui/react/internals/composite/item/useCompositeItem.mjs","../node_modules/@base-ui/utils/isElementDisabled.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useCompositeRootContext } from \"../root/CompositeRootContext.mjs\";\nimport { useCompositeListItem } from \"../list/useCompositeListItem.mjs\";\nexport function useCompositeItem(params = {}) {\n const {\n highlightItemOnHover,\n highlightedIndex,\n onHighlightedIndexChange\n } = useCompositeRootContext();\n const {\n ref,\n index\n } = useCompositeListItem(params);\n const isHighlighted = highlightedIndex === index;\n const itemRef = React.useRef(null);\n const mergedRef = useMergedRefs(ref, itemRef);\n const compositeProps = {\n tabIndex: isHighlighted ? 0 : -1,\n onFocus() {\n onHighlightedIndexChange(index);\n },\n onMouseMove() {\n const item = itemRef.current;\n if (!highlightItemOnHover || !item) {\n return;\n }\n const disabled = item.hasAttribute('disabled') || item.ariaDisabled === 'true';\n if (!isHighlighted && !disabled) {\n item.focus();\n }\n }\n };\n return {\n compositeProps,\n compositeRef: mergedRef,\n index\n };\n}","export function isElementDisabled(element) {\n return element == null || element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true';\n}"],"names":[],"mappings":";;;;AAMO,SAAS,iBAAiB,SAAS,IAAI;AAC5C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,EACJ,IAAM,wBAAuB;AAC3B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,EACJ,IAAM,qBAAqB,MAAM;AAC/B,QAAM,gBAAgB,qBAAqB;AAC3C,QAAM,UAAU,MAAM,OAAO,IAAI;AACjC,QAAM,YAAY,cAAc,KAAK,OAAO;AAC5C,QAAM,iBAAiB;AAAA,IACrB,UAAU,gBAAgB,IAAI;AAAA,IAC9B,UAAU;AACR,+BAAyB,KAAK;AAAA,IAChC;AAAA,IACA,cAAc;AACZ,YAAM,OAAO,QAAQ;AACrB,UAAI,CAAC,wBAAwB,CAAC,MAAM;AAClC;AAAA,MACF;AACA,YAAM,WAAW,KAAK,aAAa,UAAU,KAAK,KAAK,iBAAiB;AACxE,UAAI,CAAC,iBAAiB,CAAC,UAAU;AAC/B,aAAK,MAAK;AAAA,MACZ;AAAA,IACF;AAAA,EACJ;AACE,SAAO;AAAA,IACL;AAAA,IACA,cAAc;AAAA,IACd;AAAA,EACJ;AACA;ACxCO,SAAS,kBAAkB,SAAS;AACzC,SAAO,WAAW,QAAQ,QAAQ,aAAa,UAAU,KAAK,QAAQ,aAAa,eAAe,MAAM;AAC1G;","x_google_ignoreList":[0,1]}
@@ -13,6 +13,11 @@ export type AlertAction = {
13
13
  disabled?: boolean;
14
14
  loading?: boolean;
15
15
  };
16
+ export type AlertReadMore = {
17
+ label?: React.ReactNode;
18
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
19
+ href?: string;
20
+ };
16
21
  export type AlertProps = Omit<React.ComponentProps<'div'>, 'title'> & {
17
22
  tone?: AlertTone;
18
23
  appearance?: AlertAppearance;
@@ -20,12 +25,15 @@ export type AlertProps = Omit<React.ComponentProps<'div'>, 'title'> & {
20
25
  title?: React.ReactNode;
21
26
  description?: React.ReactNode;
22
27
  icon?: IconProp | false;
28
+ readMore?: AlertReadMore;
23
29
  action?: AlertAction;
24
30
  secondaryAction?: AlertAction;
31
+ customActions?: React.ReactNode;
25
32
  onDismiss?: () => void;
26
33
  dismissLabel?: string;
27
34
  live?: boolean;
35
+ dataTestPrefix?: string;
28
36
  };
29
- declare function Alert({ ref, tone, appearance, iconSize, title, description, icon, action, secondaryAction, onDismiss, dismissLabel, live, children, role, className, ...props }: AlertProps): React.JSX.Element;
37
+ declare function Alert({ ref, tone, appearance, iconSize, title, description, icon, readMore, action, secondaryAction, customActions, onDismiss, dismissLabel, live, children, role, className, dataTestPrefix, ...props }: AlertProps): React.JSX.Element;
30
38
  export { alertVariants };
31
39
  export default Alert;