tfy-web-components 0.0.33 → 0.0.35

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 (226) hide show
  1. package/README.md +49 -58
  2. package/dist/Button-C77b7jpW.js +284 -0
  3. package/dist/Button-C77b7jpW.js.map +1 -0
  4. package/dist/CompositeItem-BGwD51jI.js +33 -0
  5. package/dist/CompositeItem-BGwD51jI.js.map +1 -0
  6. package/dist/CompositeList-D4xmSZ5V.js +291 -0
  7. package/dist/CompositeList-D4xmSZ5V.js.map +1 -0
  8. package/dist/CompositeRoot-BxrPc7F6.js +351 -0
  9. package/dist/CompositeRoot-BxrPc7F6.js.map +1 -0
  10. package/dist/DirectionContext-Pb9yafF5.js +11 -0
  11. package/dist/DirectionContext-Pb9yafF5.js.map +1 -0
  12. package/dist/FieldItemContext-DRVgx-D1.js +13 -0
  13. package/dist/FieldItemContext-DRVgx-D1.js.map +1 -0
  14. package/dist/{Input-BvwIpntS.js → Input-Dhmo6L2n.js} +100 -78
  15. package/dist/Input-Dhmo6L2n.js.map +1 -0
  16. package/dist/Modal-C4MUy9GD.js +696 -0
  17. package/dist/Modal-C4MUy9GD.js.map +1 -0
  18. package/dist/{MonacoEditorCore-xfpJ6z-E.js → MonacoEditorCore-n-df5f7I.js} +2 -2
  19. package/dist/{MonacoEditorCore-xfpJ6z-E.js.map → MonacoEditorCore-n-df5f7I.js.map} +1 -1
  20. package/dist/Popover-eC_vX5By.js +1074 -0
  21. package/dist/Popover-eC_vX5By.js.map +1 -0
  22. package/dist/ToolbarRootContext-B_HxjkNI.js +11 -0
  23. package/dist/ToolbarRootContext-B_HxjkNI.js.map +1 -0
  24. package/dist/Tooltip-BuGLP-PU.js +4096 -0
  25. package/dist/Tooltip-BuGLP-PU.js.map +1 -0
  26. package/dist/classNames-B1XpQHle.js +44 -0
  27. package/dist/classNames-B1XpQHle.js.map +1 -0
  28. package/dist/components/atoms/Accordion.d.ts +19 -37
  29. package/dist/components/atoms/Accordion.es.js +847 -78
  30. package/dist/components/atoms/Accordion.es.js.map +1 -1
  31. package/dist/components/atoms/AudioPlayer.es.js +9 -9
  32. package/dist/components/atoms/AudioPlayer.es.js.map +1 -1
  33. package/dist/components/atoms/Avatar.d.ts +42 -9
  34. package/dist/components/atoms/Avatar.es.js +491 -36
  35. package/dist/components/atoms/Avatar.es.js.map +1 -1
  36. package/dist/components/atoms/Badge.d.ts +40 -35
  37. package/dist/components/atoms/Badge.es.js +163 -53
  38. package/dist/components/atoms/Badge.es.js.map +1 -1
  39. package/dist/components/atoms/Button.d.ts +37 -16
  40. package/dist/components/atoms/Button.es.js +16 -221
  41. package/dist/components/atoms/Button.es.js.map +1 -1
  42. package/dist/components/atoms/ButtonGroup.d.ts +53 -0
  43. package/dist/components/atoms/ButtonGroup.es.js +349 -0
  44. package/dist/components/atoms/ButtonGroup.es.js.map +1 -0
  45. package/dist/components/atoms/IconButton.d.ts +23 -9
  46. package/dist/components/atoms/IconButton.es.js +82 -16
  47. package/dist/components/atoms/IconButton.es.js.map +1 -1
  48. package/dist/components/atoms/IconProvider.d.ts +1 -1
  49. package/dist/components/atoms/IconProvider.es.js +48 -7
  50. package/dist/components/atoms/IconProvider.es.js.map +1 -1
  51. package/dist/components/atoms/Modal.d.ts +27 -3
  52. package/dist/components/atoms/Modal.es.js +15 -16
  53. package/dist/components/atoms/Modal.es.js.map +1 -1
  54. package/dist/components/atoms/Notification.d.ts +1 -1
  55. package/dist/components/atoms/Notification.es.js +26 -3
  56. package/dist/components/atoms/Notification.es.js.map +1 -1
  57. package/dist/components/atoms/OutlinedRadio.d.ts +6 -2
  58. package/dist/components/atoms/OutlinedRadio.es.js +12 -25
  59. package/dist/components/atoms/OutlinedRadio.es.js.map +1 -1
  60. package/dist/components/atoms/Progress.d.ts +48 -0
  61. package/dist/components/atoms/Progress.es.js +279 -0
  62. package/dist/components/atoms/Progress.es.js.map +1 -0
  63. package/dist/components/atoms/Skeleton.d.ts +9 -3
  64. package/dist/components/atoms/Skeleton.es.js +33 -3
  65. package/dist/components/atoms/Skeleton.es.js.map +1 -1
  66. package/dist/components/atoms/Spinner.d.ts +15 -4
  67. package/dist/components/atoms/Spinner.es.js +86 -22
  68. package/dist/components/atoms/Spinner.es.js.map +1 -1
  69. package/dist/components/atoms/Switch.d.ts +19 -7
  70. package/dist/components/atoms/Switch.es.js +288 -50
  71. package/dist/components/atoms/Switch.es.js.map +1 -1
  72. package/dist/components/atoms/TabButton.d.ts +17 -3
  73. package/dist/components/atoms/TabButton.es.js +647 -25
  74. package/dist/components/atoms/TabButton.es.js.map +1 -1
  75. package/dist/components/atoms/TabPanel.es.js +1 -1
  76. package/dist/components/atoms/Tag.d.ts +43 -0
  77. package/dist/components/atoms/Tag.es.js +219 -0
  78. package/dist/components/atoms/Tag.es.js.map +1 -0
  79. package/dist/components/atoms/Tooltip.d.ts +36 -14
  80. package/dist/components/atoms/Tooltip.es.js +7 -114
  81. package/dist/components/atoms/Tooltip.es.js.map +1 -1
  82. package/dist/components/molecules/Alert.d.ts +1 -1
  83. package/dist/components/molecules/Alert.es.js +13 -9
  84. package/dist/components/molecules/Alert.es.js.map +1 -1
  85. package/dist/components/molecules/CopyField.d.ts +2 -2
  86. package/dist/components/molecules/CopyField.es.js +3 -4
  87. package/dist/components/molecules/CopyField.es.js.map +1 -1
  88. package/dist/components/molecules/CustomDrawer.d.ts +5 -4
  89. package/dist/components/molecules/CustomDrawer.es.js +141 -82
  90. package/dist/components/molecules/CustomDrawer.es.js.map +1 -1
  91. package/dist/components/molecules/Dialog.d.ts +16 -8
  92. package/dist/components/molecules/Dialog.es.js +33 -31
  93. package/dist/components/molecules/Dialog.es.js.map +1 -1
  94. package/dist/components/molecules/ImagesPreview.es.js +15 -11
  95. package/dist/components/molecules/ImagesPreview.es.js.map +1 -1
  96. package/dist/components/molecules/Input.d.ts +1 -1
  97. package/dist/components/molecules/Input.es.js +3 -5
  98. package/dist/components/molecules/Input.es.js.map +1 -1
  99. package/dist/components/molecules/Markdown/ExpandableMarkdown.d.ts +8 -8
  100. package/dist/components/molecules/Markdown/components.d.ts +12 -11
  101. package/dist/components/molecules/Markdown.es.js +26 -49
  102. package/dist/components/molecules/Markdown.es.js.map +1 -1
  103. package/dist/components/molecules/Notify.d.ts +30 -1
  104. package/dist/components/molecules/Notify.es.js +91 -36
  105. package/dist/components/molecules/Notify.es.js.map +1 -1
  106. package/dist/components/molecules/SimpleCodeEditor.es.js +32 -19
  107. package/dist/components/molecules/SimpleCodeEditor.es.js.map +1 -1
  108. package/dist/components/molecules/ToggleButton.d.ts +3 -2
  109. package/dist/components/molecules/ToggleButton.es.js +155 -57
  110. package/dist/components/molecules/ToggleButton.es.js.map +1 -1
  111. package/dist/components/molecules/agent-chat/AgentStepsCard.d.ts +2 -2
  112. package/dist/components/molecules/agent-chat/UserMessage.es.js +2 -2
  113. package/dist/components/molecules/agent-chat/UserMessage.es.js.map +1 -1
  114. package/dist/components/molecules/agent-chat/UserMessageEdit.es.js +5 -5
  115. package/dist/components/molecules/agent-chat/UserMessageEdit.es.js.map +1 -1
  116. package/dist/components/molecules/agent-chat/index.d.ts +0 -6
  117. package/dist/components/molecules/agent-chat.es.js +78 -410
  118. package/dist/components/molecules/agent-chat.es.js.map +1 -1
  119. package/dist/components/molecules/monacoEditorCore/MonacoEditorCore.d.ts +0 -1
  120. package/dist/components/theme/colors.d.ts +17 -53
  121. package/dist/components/theme/colors.es.js +384 -180
  122. package/dist/components/theme/colors.es.js.map +1 -1
  123. package/dist/components/theme/theme.d.ts +14 -11
  124. package/dist/components/theme/theme.es.js +3 -64
  125. package/dist/components/theme/theme.es.js.map +1 -1
  126. package/dist/components/theme/useTheme.es.js +1 -4
  127. package/dist/components/theme/useTheme.es.js.map +1 -1
  128. package/dist/composite-CrCQWAKA.js +108 -0
  129. package/dist/composite-CrCQWAKA.js.map +1 -0
  130. package/dist/composite-DCpXNxz9.js +66 -0
  131. package/dist/composite-DCpXNxz9.js.map +1 -0
  132. package/dist/conversions-CbWPvHRE.js +14 -0
  133. package/dist/conversions-CbWPvHRE.js.map +1 -0
  134. package/dist/error-FX4R42W-.js +6 -0
  135. package/dist/error-FX4R42W-.js.map +1 -0
  136. package/dist/fonts.css +7 -0
  137. package/dist/hooks/useContainerDimensions.d.ts +1 -1
  138. package/dist/index-B806bfA-.js +257 -0
  139. package/dist/index-B806bfA-.js.map +1 -0
  140. package/dist/index-DSVg79g-.js +45 -0
  141. package/dist/index-DSVg79g-.js.map +1 -0
  142. package/dist/index.d.ts +19 -4
  143. package/dist/index.es.js +56 -9
  144. package/dist/index.es.js.map +1 -1
  145. package/dist/inertValue-IJM5NA30.js +11 -0
  146. package/dist/inertValue-IJM5NA30.js.map +1 -0
  147. package/dist/lib/utils.d.ts +1 -0
  148. package/dist/markdown.css +13 -14
  149. package/dist/new-components/atoms/Checkbox.d.ts +6 -0
  150. package/dist/new-components/atoms/Checkbox.es.js +423 -0
  151. package/dist/new-components/atoms/Checkbox.es.js.map +1 -0
  152. package/dist/new-components/atoms/Chip.d.ts +38 -0
  153. package/dist/new-components/atoms/Chip.es.js +269 -0
  154. package/dist/new-components/atoms/Chip.es.js.map +1 -0
  155. package/dist/new-components/atoms/Popover.d.ts +87 -0
  156. package/dist/new-components/atoms/Popover.es.js +21 -0
  157. package/dist/new-components/atoms/Popover.es.js.map +1 -0
  158. package/dist/new-components/atoms/Radio.d.ts +14 -0
  159. package/dist/new-components/atoms/Radio.es.js +536 -0
  160. package/dist/new-components/atoms/Radio.es.js.map +1 -0
  161. package/dist/new-components/atoms/SegmentedControl.d.ts +28 -0
  162. package/dist/new-components/atoms/SegmentedControl.es.js +326 -0
  163. package/dist/new-components/atoms/SegmentedControl.es.js.map +1 -0
  164. package/dist/new-components/atoms/Slider.d.ts +8 -0
  165. package/dist/new-components/atoms/Slider.es.js +1415 -0
  166. package/dist/new-components/atoms/Slider.es.js.map +1 -0
  167. package/dist/new-components/atoms/Toggletip.d.ts +43 -0
  168. package/dist/new-components/atoms/Toggletip.es.js +216 -0
  169. package/dist/new-components/atoms/Toggletip.es.js.map +1 -0
  170. package/dist/new-components/atoms/stories/ThemeComparison.d.ts +8 -0
  171. package/dist/shadowDom-Bq4g0Qeu.js +52 -0
  172. package/dist/shadowDom-Bq4g0Qeu.js.map +1 -0
  173. package/dist/style.css +1 -1
  174. package/dist/theme.css +9 -154
  175. package/dist/tokens.css +1136 -0
  176. package/dist/useAnimationFrame-DwhymJoW.js +108 -0
  177. package/dist/useAnimationFrame-DwhymJoW.js.map +1 -0
  178. package/dist/useAriaLabelledBy-B6n92QBS.js +49 -0
  179. package/dist/useAriaLabelledBy-B6n92QBS.js.map +1 -0
  180. package/dist/useBaseUiId-Ch7ujXpo.js +281 -0
  181. package/dist/useBaseUiId-Ch7ujXpo.js.map +1 -0
  182. package/dist/useButton-PUBhT4Vo.js +235 -0
  183. package/dist/useButton-PUBhT4Vo.js.map +1 -0
  184. package/dist/useControlled-BSyYkg5C.js +65 -0
  185. package/dist/useControlled-BSyYkg5C.js.map +1 -0
  186. package/dist/useIsoLayoutEffect-e9VA-ICd.js +499 -0
  187. package/dist/useIsoLayoutEffect-e9VA-ICd.js.map +1 -0
  188. package/dist/useLabelableId-DCLzrdD-.js +241 -0
  189. package/dist/useLabelableId-DCLzrdD-.js.map +1 -0
  190. package/dist/useOpenInteractionType-DGWLoAqp.js +1086 -0
  191. package/dist/useOpenInteractionType-DGWLoAqp.js.map +1 -0
  192. package/dist/usePopupHandleStore-BdS-xYID.js +2372 -0
  193. package/dist/usePopupHandleStore-BdS-xYID.js.map +1 -0
  194. package/dist/useTimeout-BXf1hDIL.js +46 -0
  195. package/dist/useTimeout-BXf1hDIL.js.map +1 -0
  196. package/dist/useTransitionStatus-C9gg_XJ-.js +202 -0
  197. package/dist/useTransitionStatus-C9gg_XJ-.js.map +1 -0
  198. package/dist/useValueAsRef-BfFRcMg6.js +28 -0
  199. package/dist/useValueAsRef-BfFRcMg6.js.map +1 -0
  200. package/dist/utils/classNames.d.ts +3 -2
  201. package/dist/visuallyHidden-B6H2X3_Y.js +26 -0
  202. package/dist/visuallyHidden-B6H2X3_Y.js.map +1 -0
  203. package/dist/vite-env.d.ts +18 -0
  204. package/package.json +30 -22
  205. package/dist/Input-BvwIpntS.js.map +0 -1
  206. package/dist/Notification-BT4CZ69U.js +0 -39
  207. package/dist/Notification-BT4CZ69U.js.map +0 -1
  208. package/dist/RootFontSizeContext-7vgn7Y_k.js +0 -22
  209. package/dist/RootFontSizeContext-7vgn7Y_k.js.map +0 -1
  210. package/dist/classNames-Dy-RXSjS.js +0 -9
  211. package/dist/classNames-Dy-RXSjS.js.map +0 -1
  212. package/dist/components/molecules/DropdownMenu.d.ts +0 -18
  213. package/dist/components/molecules/DropdownMenu.es.js +0 -104
  214. package/dist/components/molecules/DropdownMenu.es.js.map +0 -1
  215. package/dist/components/molecules/ThumbsFeedback.d.ts +0 -13
  216. package/dist/components/molecules/ThumbsFeedback.es.js +0 -98
  217. package/dist/components/molecules/ThumbsFeedback.es.js.map +0 -1
  218. package/dist/components/molecules/agent-chat/SandboxToolCall.d.ts +0 -15
  219. package/dist/components/molecules/agent-chat/ToolCallCard.d.ts +0 -26
  220. package/dist/components/molecules/agent-chat/ToolCallContentBlock.d.ts +0 -17
  221. package/dist/components/theme/lightColorPlugin.d.ts +0 -1
  222. package/dist/components/theme/lightColorPlugin.es.js +0 -92
  223. package/dist/components/theme/lightColorPlugin.es.js.map +0 -1
  224. package/dist/tailwindPreset.d.ts +0 -144
  225. package/dist/tailwindPreset.es.js +0 -100
  226. package/dist/tailwindPreset.es.js.map +0 -1
@@ -0,0 +1,257 @@
1
+ import { j as isHTMLElement, p as isElement } from "./useBaseUiId-Ch7ujXpo.js";
2
+ import { c as contains, b as closest } from "./shadowDom-Bq4g0Qeu.js";
3
+ 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
+ }
101
+ var shim = { exports: {} };
102
+ var useSyncExternalStoreShim_production = {};
103
+ /**
104
+ * @license React
105
+ * use-sync-external-store-shim.production.js
106
+ *
107
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
108
+ *
109
+ * This source code is licensed under the MIT license found in the
110
+ * LICENSE file in the root directory of this source tree.
111
+ */
112
+ var hasRequiredUseSyncExternalStoreShim_production;
113
+ function requireUseSyncExternalStoreShim_production() {
114
+ if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
115
+ hasRequiredUseSyncExternalStoreShim_production = 1;
116
+ var React = React__default;
117
+ function is(x, y) {
118
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
119
+ }
120
+ var objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue;
121
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
122
+ var value = getSnapshot(), _useState = useState({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
123
+ useLayoutEffect(
124
+ function() {
125
+ inst.value = value;
126
+ inst.getSnapshot = getSnapshot;
127
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
128
+ },
129
+ [subscribe, value, getSnapshot]
130
+ );
131
+ useEffect(
132
+ function() {
133
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
134
+ return subscribe(function() {
135
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
136
+ });
137
+ },
138
+ [subscribe]
139
+ );
140
+ useDebugValue(value);
141
+ return value;
142
+ }
143
+ function checkIfSnapshotChanged(inst) {
144
+ var latestGetSnapshot = inst.getSnapshot;
145
+ inst = inst.value;
146
+ try {
147
+ var nextValue = latestGetSnapshot();
148
+ return !objectIs(inst, nextValue);
149
+ } catch (error) {
150
+ return true;
151
+ }
152
+ }
153
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
154
+ return getSnapshot();
155
+ }
156
+ var shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
157
+ useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
158
+ return useSyncExternalStoreShim_production;
159
+ }
160
+ var useSyncExternalStoreShim_development = {};
161
+ /**
162
+ * @license React
163
+ * use-sync-external-store-shim.development.js
164
+ *
165
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
166
+ *
167
+ * This source code is licensed under the MIT license found in the
168
+ * LICENSE file in the root directory of this source tree.
169
+ */
170
+ var hasRequiredUseSyncExternalStoreShim_development;
171
+ function requireUseSyncExternalStoreShim_development() {
172
+ if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
173
+ hasRequiredUseSyncExternalStoreShim_development = 1;
174
+ "production" !== process.env.NODE_ENV && function() {
175
+ function is(x, y) {
176
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
177
+ }
178
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
179
+ didWarnOld18Alpha || void 0 === React.startTransition || (didWarnOld18Alpha = true, console.error(
180
+ "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."
181
+ ));
182
+ var value = getSnapshot();
183
+ if (!didWarnUncachedGetSnapshot) {
184
+ var cachedValue = getSnapshot();
185
+ objectIs(value, cachedValue) || (console.error(
186
+ "The result of getSnapshot should be cached to avoid an infinite loop"
187
+ ), didWarnUncachedGetSnapshot = true);
188
+ }
189
+ cachedValue = useState({
190
+ inst: { value, getSnapshot }
191
+ });
192
+ var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
193
+ useLayoutEffect(
194
+ function() {
195
+ inst.value = value;
196
+ inst.getSnapshot = getSnapshot;
197
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
198
+ },
199
+ [subscribe, value, getSnapshot]
200
+ );
201
+ useEffect(
202
+ function() {
203
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
204
+ return subscribe(function() {
205
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
206
+ });
207
+ },
208
+ [subscribe]
209
+ );
210
+ useDebugValue(value);
211
+ return value;
212
+ }
213
+ function checkIfSnapshotChanged(inst) {
214
+ var latestGetSnapshot = inst.getSnapshot;
215
+ inst = inst.value;
216
+ try {
217
+ var nextValue = latestGetSnapshot();
218
+ return !objectIs(inst, nextValue);
219
+ } catch (error) {
220
+ return true;
221
+ }
222
+ }
223
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
224
+ return getSnapshot();
225
+ }
226
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
227
+ var React = React__default, objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
228
+ useSyncExternalStoreShim_development.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
229
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
230
+ }();
231
+ return useSyncExternalStoreShim_development;
232
+ }
233
+ if (process.env.NODE_ENV === "production") {
234
+ shim.exports = requireUseSyncExternalStoreShim_production();
235
+ } else {
236
+ shim.exports = requireUseSyncExternalStoreShim_development();
237
+ }
238
+ var shimExports = shim.exports;
239
+ 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,
247
+ getFloatingFocusElement as g,
248
+ isInteractiveElement as h,
249
+ isEventTargetWithin as i,
250
+ jsdom as j,
251
+ lowerUserAgent as l,
252
+ matchesFocusVisible as m,
253
+ ownerDocument as o,
254
+ shimExports as s,
255
+ triggerDisabled as t
256
+ };
257
+ //# sourceMappingURL=index-B806bfA-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B806bfA-.js","sources":["../node_modules/@base-ui/utils/owner.mjs","../node_modules/@base-ui/utils/platform/shared.mjs","../node_modules/@base-ui/utils/platform/env.mjs","../node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs","../node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs","../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs","../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"],"sourcesContent":["export { getWindow as ownerWindow } from '@floating-ui/utils/dom';\nexport function ownerDocument(node) {\n return node?.ownerDocument || document;\n}","/**\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);","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';","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}","/**\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"],"names":["TooltipTriggerDataAttributes.triggerDisabled","platform.env.jsdom","require$$0","shim","shimModule","require$$1"],"mappings":";;;AACO,SAAS,cAAc,MAAM;AAClC,UAAO,6BAAM,kBAAiB;AAChC;ACOA,SAAS,cAAc;AACrB,MAAI,OAAO,cAAc,aAAa;AACpC,WAAO;AAAA,MACL,WAAW;AAAA,MACX,UAAU;AA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O,UACvB,gBAAgB,OAAO,OAAO,YAC9B,gBAAgB,OAAO,OAAO,SAAS,gBACnC,yBACA;AACR,yCAAA,uBACE,WAAW,MAAM,uBAAuB,MAAM,uBAAuBA;AACvE,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,8BACxC,+BAA+B,2BAA2B,OAAO;AAAA,EACvE,EAAG;;;AC5FH,IAAI,QAAQ,IAAI,aAAa,cAAc;AACzCC,OAAA,UAAiBF,2CAAA;AACnB,OAAO;AACLE,OAAA,UAAiBC,4CAAA;AACnB;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
@@ -0,0 +1,45 @@
1
+ import { a as clsx } from "./classNames-B1XpQHle.js";
2
+ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
3
+ const cx = clsx;
4
+ const cva = (base, config) => (props) => {
5
+ var _config_compoundVariants;
6
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
7
+ const { variants, defaultVariants } = config;
8
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
9
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
10
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
11
+ if (variantProp === null) return null;
12
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
13
+ return variants[variant][variantKey];
14
+ });
15
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
16
+ let [key, value] = param;
17
+ if (value === void 0) {
18
+ return acc;
19
+ }
20
+ acc[key] = value;
21
+ return acc;
22
+ }, {});
23
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
24
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
25
+ return Object.entries(compoundVariantOptions).every((param2) => {
26
+ let [key, value] = param2;
27
+ return Array.isArray(value) ? value.includes({
28
+ ...defaultVariants,
29
+ ...propsWithoutUndefined
30
+ }[key]) : {
31
+ ...defaultVariants,
32
+ ...propsWithoutUndefined
33
+ }[key] === value;
34
+ }) ? [
35
+ ...acc,
36
+ cvClass,
37
+ cvClassName
38
+ ] : acc;
39
+ }, []);
40
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
41
+ };
42
+ export {
43
+ cva as c
44
+ };
45
+ //# sourceMappingURL=index-DSVg79g-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DSVg79g-.js","sources":["../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["param"],"mappings":";AAeA,MAAM,gBAAgB,CAAC,UAAQ,OAAO,UAAU,YAAY,GAAG,KAAK,KAAK,UAAU,IAAI,MAAM;AACtF,MAAM,KAAK;AACN,MAAC,MAAM,CAAC,MAAM,WAAS,CAAC,UAAQ;AACpC,MAAI;AACJ,OAAK,WAAW,QAAQ,WAAW,SAAS,SAAS,OAAO,aAAa,KAAM,QAAO,GAAG,MAAM,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,SAAS;AACvN,QAAM,EAAE,UAAU,gBAAe,IAAK;AACtC,QAAM,uBAAuB,OAAO,KAAK,QAAQ,EAAE,IAAI,CAAC,YAAU;AAC9D,UAAM,cAAc,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO;AAC/E,UAAM,qBAAqB,oBAAoB,QAAQ,oBAAoB,SAAS,SAAS,gBAAgB,OAAO;AACpH,QAAI,gBAAgB,KAAM,QAAO;AACjC,UAAM,aAAa,cAAc,WAAW,KAAK,cAAc,kBAAkB;AACjF,WAAO,SAAS,OAAO,EAAE,UAAU;AAAA,EACvC,CAAC;AACD,QAAM,wBAAwB,SAAS,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,KAAK,UAAQ;AAC9E,QAAI,CAAC,KAAK,KAAK,IAAI;AACnB,QAAI,UAAU,QAAW;AACrB,aAAO;AAAA,IACX;AACA,QAAI,GAAG,IAAI;AACX,WAAO;AAAA,EACX,GAAG,CAAA,CAAE;AACL,QAAM,+BAA+B,WAAW,QAAQ,WAAW,SAAS,UAAU,2BAA2B,OAAO,sBAAsB,QAAQ,6BAA6B,SAAS,SAAS,yBAAyB,OAAO,CAAC,KAAK,UAAQ;AAC/O,QAAI,EAAE,OAAO,SAAS,WAAW,aAAa,GAAG,uBAAsB,IAAK;AAC5E,WAAO,OAAO,QAAQ,sBAAsB,EAAE,MAAM,CAACA,WAAQ;AACzD,UAAI,CAAC,KAAK,KAAK,IAAIA;AACnB,aAAO,MAAM,QAAQ,KAAK,IAAI,MAAM,SAAS;AAAA,QACzC,GAAG;AAAA,QACH,GAAG;AAAA,MACvB,EAAkB,GAAG,CAAC,IAAK;AAAA,QACP,GAAG;AAAA,QACH,GAAG;AAAA,MACvB,EAAmB,GAAG,MAAM;AAAA,IAChB,CAAC,IAAI;AAAA,MACD,GAAG;AAAA,MACH;AAAA,MACA;AAAA,IAChB,IAAgB;AAAA,EACR,GAAG,CAAA,CAAE;AACL,SAAO,GAAG,MAAM,sBAAsB,8BAA8B,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,SAAS;AAChM;","x_google_ignoreList":[0]}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,21 @@
1
- export { default as Avatar } from './components/atoms/Avatar';
2
- export { AvatarFallback, AvatarImage } from './components/atoms/Avatar';
1
+ export { default as Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, } from './components/atoms/Avatar';
2
+ export type { BadgeIconPosition, BadgeProps, BadgeSize, BadgeStatus, BadgeStyle } from './components/atoms/Badge';
3
+ export { default as Badge } from './components/atoms/Badge';
3
4
  export { default as OutlinedRadio } from './components/atoms/OutlinedRadio';
4
- export { default as Spinner } from './components/atoms/Spinner';
5
+ export type { ProgressCircleProps, ProgressCircleSize, ProgressFieldProps, ProgressFieldState, ProgressProps, ProgressSize, ProgressStepsProps, ProgressTone, } from './components/atoms/Progress';
6
+ export { default as Progress, ProgressCircle, ProgressField, ProgressSteps } from './components/atoms/Progress';
7
+ export type { SpinnerProps, SpinnerSize, SpinnerTone } from './components/atoms/Spinner';
8
+ export { default as Spinner, SpinnerMark } from './components/atoms/Spinner';
5
9
  export { default as CustomDrawer } from './components/molecules/CustomDrawer';
6
- export { default as DropdownMenu } from './components/molecules/DropdownMenu';
10
+ export type { CheckboxProps } from './new-components/atoms/Checkbox';
11
+ export { default as Checkbox } from './new-components/atoms/Checkbox';
12
+ export type { ChipProps } from './new-components/atoms/Chip';
13
+ export { default as Chip } from './new-components/atoms/Chip';
14
+ export { Popover, PopoverArrow, PopoverBody, PopoverClose, PopoverContent, PopoverDescription, PopoverFooter, PopoverHeader, PopoverRoot, PopoverTitle, PopoverTrigger, } from './new-components/atoms/Popover';
15
+ export type { RadioGroupProps, RadioProps } from './new-components/atoms/Radio';
16
+ export { default as Radio, RadioGroup } from './new-components/atoms/Radio';
17
+ export type { SegmentedControlItemProps, SegmentedControlProps } from './new-components/atoms/SegmentedControl';
18
+ export { default as SegmentedControl, SegmentedControlItem } from './new-components/atoms/SegmentedControl';
19
+ export type { SliderProps } from './new-components/atoms/Slider';
20
+ export { default as Slider } from './new-components/atoms/Slider';
21
+ 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,62 @@
1
- import { Avatar, AvatarFallback, AvatarImage } from "./components/atoms/Avatar.es.js";
2
- import { default as default2 } from "./components/atoms/OutlinedRadio.es.js";
3
- import { default as default3 } from "./components/atoms/Spinner.es.js";
4
- import { default as default4 } from "./components/molecules/CustomDrawer.es.js";
5
- import { DropdownMenu } from "./components/molecules/DropdownMenu.es.js";
1
+ import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./components/atoms/Avatar.es.js";
2
+ import { default as default2 } from "./components/atoms/Badge.es.js";
3
+ import { default as default3 } from "./components/atoms/OutlinedRadio.es.js";
4
+ import { Progress, ProgressCircle, ProgressField, ProgressSteps } from "./components/atoms/Progress.es.js";
5
+ import { default as default4, SpinnerMark } from "./components/atoms/Spinner.es.js";
6
+ import { default as default5 } from "./components/molecules/CustomDrawer.es.js";
7
+ import { default as default6 } from "./new-components/atoms/Checkbox.es.js";
8
+ import { default as default7 } from "./new-components/atoms/Chip.es.js";
9
+ import { P, a, b, c, d, e, f, g, h, i, j } from "./Popover-eC_vX5By.js";
10
+ import { default as default8, RadioGroup } from "./new-components/atoms/Radio.es.js";
11
+ import { default as default9, SegmentedControlItem } from "./new-components/atoms/SegmentedControl.es.js";
12
+ import { default as default10 } from "./new-components/atoms/Slider.es.js";
13
+ import { Toggletip, ToggletipActions, ToggletipCode, ToggletipContent, ToggletipDescription, ToggletipHeader, ToggletipInlineCode, ToggletipLink, ToggletipRoot, ToggletipRow, ToggletipRows, ToggletipTitle, ToggletipTrigger } from "./new-components/atoms/Toggletip.es.js";
6
14
  export {
7
15
  Avatar,
16
+ AvatarBadge,
8
17
  AvatarFallback,
18
+ AvatarGroup,
19
+ AvatarGroupCount,
9
20
  AvatarImage,
10
- default4 as CustomDrawer,
11
- DropdownMenu,
12
- default2 as OutlinedRadio,
13
- default3 as Spinner
21
+ default2 as Badge,
22
+ default6 as Checkbox,
23
+ default7 as Chip,
24
+ default5 as CustomDrawer,
25
+ default3 as OutlinedRadio,
26
+ P as Popover,
27
+ a as PopoverArrow,
28
+ b as PopoverBody,
29
+ c as PopoverClose,
30
+ d as PopoverContent,
31
+ e as PopoverDescription,
32
+ f as PopoverFooter,
33
+ g as PopoverHeader,
34
+ h as PopoverRoot,
35
+ i as PopoverTitle,
36
+ j as PopoverTrigger,
37
+ Progress,
38
+ ProgressCircle,
39
+ ProgressField,
40
+ ProgressSteps,
41
+ default8 as Radio,
42
+ RadioGroup,
43
+ default9 as SegmentedControl,
44
+ SegmentedControlItem,
45
+ default10 as Slider,
46
+ default4 as Spinner,
47
+ SpinnerMark,
48
+ Toggletip,
49
+ ToggletipActions,
50
+ ToggletipCode,
51
+ ToggletipContent,
52
+ ToggletipDescription,
53
+ ToggletipHeader,
54
+ ToggletipInlineCode,
55
+ ToggletipLink,
56
+ ToggletipRoot,
57
+ ToggletipRow,
58
+ ToggletipRows,
59
+ ToggletipTitle,
60
+ ToggletipTrigger
14
61
  };
15
62
  //# 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":";;;;;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ import { i as isReactVersionAtLeast } from "./useIsoLayoutEffect-e9VA-ICd.js";
2
+ function inertValue(value) {
3
+ if (isReactVersionAtLeast(19)) {
4
+ return value;
5
+ }
6
+ return value ? "true" : void 0;
7
+ }
8
+ export {
9
+ inertValue as i
10
+ };
11
+ //# sourceMappingURL=inertValue-IJM5NA30.js.map
@@ -0,0 +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]}
@@ -0,0 +1 @@
1
+ export { default as cn } from '../utils/classNames';
package/dist/markdown.css CHANGED
@@ -4,8 +4,8 @@
4
4
  without requiring the consumer to run Tailwind on these rules. */
5
5
 
6
6
  .markdown-body {
7
- font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
8
- 'Segoe UI Symbol', 'Noto Color Emoji';
7
+ font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
8
+ 'Noto Color Emoji';
9
9
  font-size: inherit;
10
10
  background-color: inherit;
11
11
  color: inherit;
@@ -36,30 +36,30 @@
36
36
  }
37
37
 
38
38
  .markdown-body hr {
39
- border-bottom: 0.5px solid var(--color-gray-275);
39
+ border-bottom: 0.5px solid var(--border-default);
40
40
  }
41
41
 
42
42
  .markdown-body a.docs-link {
43
- color: var(--color-indigo-700);
43
+ color: var(--text-link);
44
44
  }
45
45
 
46
46
  .dark .markdown-body a.docs-link {
47
- color: var(--color-indigo-500);
47
+ color: var(--text-brand);
48
48
  }
49
49
 
50
50
  .dark .markdown-body pre {
51
- background-color: var(--color-gray-250) !important;
52
- color: var(--color-gray-850) !important;
51
+ background-color: var(--background-surface-sunken) !important;
52
+ color: var(--text-primary) !important;
53
53
  }
54
54
 
55
55
  .dark .markdown-body table tr,
56
56
  .dark .markdown-body table th {
57
- background-color: var(--color-gray-200) !important;
58
- border-color: var(--color-gray-275) !important;
57
+ background-color: var(--background-surface-sunken) !important;
58
+ border-color: var(--border-default) !important;
59
59
  }
60
60
 
61
61
  .dark .markdown-body table td {
62
- border-color: var(--color-gray-275) !important;
62
+ border-color: var(--border-default) !important;
63
63
  }
64
64
 
65
65
  .markdown-table .light-markdown table {
@@ -93,13 +93,13 @@
93
93
  }
94
94
 
95
95
  .markdown-table .light-markdown td .link {
96
- color: var(--color-indigo-700);
96
+ color: var(--text-link);
97
97
  }
98
98
 
99
99
  .markdown-openui-scope,
100
100
  .markdown-openui-scope * {
101
- font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
102
- 'Segoe UI Symbol', 'Noto Color Emoji' !important;
101
+ font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
102
+ 'Noto Color Emoji' !important;
103
103
  }
104
104
 
105
105
  .markdown-openui-scope .openui-card-card,
@@ -116,4 +116,3 @@
116
116
  .markdown-openui-scope .openui-table-container {
117
117
  border-radius: 0.5rem !important;
118
118
  }
119
-
@@ -0,0 +1,6 @@
1
+ import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
2
+ export type CheckboxProps = CheckboxPrimitive.Root.Props & {
3
+ invalid?: boolean;
4
+ };
5
+ declare function Checkbox({ className, invalid, ...props }: CheckboxProps): import("react").JSX.Element;
6
+ export default Checkbox;