@nooeh/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/LICENSE +201 -0
  2. package/dist/Icon.d.ts +43 -0
  3. package/dist/Icon.js +85 -0
  4. package/dist/Icon.js.map +7 -0
  5. package/dist/accordion.d.ts +6 -0
  6. package/dist/accordion.js +419 -0
  7. package/dist/accordion.js.map +7 -0
  8. package/dist/alert-dialog.d.ts +22 -0
  9. package/dist/alert-dialog.js +699 -0
  10. package/dist/alert-dialog.js.map +7 -0
  11. package/dist/aspect-ratio.d.ts +7 -0
  12. package/dist/aspect-ratio.js +95 -0
  13. package/dist/aspect-ratio.js.map +7 -0
  14. package/dist/attachment.d.ts +24 -0
  15. package/dist/attachment.js +790 -0
  16. package/dist/attachment.js.map +7 -0
  17. package/dist/avatar.d.ts +14 -0
  18. package/dist/avatar.js +451 -0
  19. package/dist/avatar.js.map +7 -0
  20. package/dist/badge.d.ts +9 -0
  21. package/dist/badge.js +130 -0
  22. package/dist/badge.js.map +7 -0
  23. package/dist/banner.d.ts +19 -0
  24. package/dist/banner.js +415 -0
  25. package/dist/banner.js.map +7 -0
  26. package/dist/breadcrumb.d.ts +10 -0
  27. package/dist/breadcrumb.js +419 -0
  28. package/dist/breadcrumb.js.map +7 -0
  29. package/dist/bubble.d.ts +8 -0
  30. package/dist/bubble.js +124 -0
  31. package/dist/bubble.js.map +7 -0
  32. package/dist/button-group.d.ts +14 -0
  33. package/dist/button-group.js +428 -0
  34. package/dist/button-group.js.map +7 -0
  35. package/dist/button.d.ts +13 -0
  36. package/dist/button.js +228 -0
  37. package/dist/button.js.map +7 -0
  38. package/dist/card.d.ts +15 -0
  39. package/dist/card.js +469 -0
  40. package/dist/card.js.map +7 -0
  41. package/dist/checkbox.d.ts +7 -0
  42. package/dist/checkbox.js +204 -0
  43. package/dist/checkbox.js.map +7 -0
  44. package/dist/cli.js +6 -0
  45. package/dist/cli.js.map +7 -0
  46. package/dist/collapsible.d.ts +5 -0
  47. package/dist/collapsible.js +345 -0
  48. package/dist/collapsible.js.map +7 -0
  49. package/dist/combobox.d.ts +15 -0
  50. package/dist/combobox.js +553 -0
  51. package/dist/combobox.js.map +7 -0
  52. package/dist/content-row.d.ts +19 -0
  53. package/dist/content-row.js +446 -0
  54. package/dist/content-row.js.map +7 -0
  55. package/dist/context-menu.d.ts +4 -0
  56. package/dist/context-menu.js +892 -0
  57. package/dist/context-menu.js.map +7 -0
  58. package/dist/dialog.d.ts +23 -0
  59. package/dist/dialog.js +492 -0
  60. package/dist/dialog.js.map +7 -0
  61. package/dist/dropdown-menu.d.ts +28 -0
  62. package/dist/dropdown-menu.js +885 -0
  63. package/dist/dropdown-menu.js.map +7 -0
  64. package/dist/empty.d.ts +12 -0
  65. package/dist/empty.js +361 -0
  66. package/dist/empty.js.map +7 -0
  67. package/dist/field.d.ts +20 -0
  68. package/dist/field.js +636 -0
  69. package/dist/field.js.map +7 -0
  70. package/dist/global.css +23 -0
  71. package/dist/hover-card.d.ts +12 -0
  72. package/dist/hover-card.js +159 -0
  73. package/dist/hover-card.js.map +7 -0
  74. package/dist/index.d.ts +87 -0
  75. package/dist/index.js +14694 -0
  76. package/dist/index.js.map +7 -0
  77. package/dist/input-group.d.ts +21 -0
  78. package/dist/input-group.js +927 -0
  79. package/dist/input-group.js.map +7 -0
  80. package/dist/input-otp.d.ts +10 -0
  81. package/dist/input-otp.js +246 -0
  82. package/dist/input-otp.js.map +7 -0
  83. package/dist/input.d.ts +7 -0
  84. package/dist/input.js +121 -0
  85. package/dist/input.js.map +7 -0
  86. package/dist/kbd.d.ts +8 -0
  87. package/dist/kbd.js +170 -0
  88. package/dist/kbd.js.map +7 -0
  89. package/dist/label.d.ts +6 -0
  90. package/dist/label.js +89 -0
  91. package/dist/label.js.map +7 -0
  92. package/dist/link.d.ts +14 -0
  93. package/dist/link.js +244 -0
  94. package/dist/link.js.map +7 -0
  95. package/dist/marker.d.ts +9 -0
  96. package/dist/marker.js +206 -0
  97. package/dist/marker.js.map +7 -0
  98. package/dist/menubar.d.ts +19 -0
  99. package/dist/menubar.js +1011 -0
  100. package/dist/menubar.js.map +7 -0
  101. package/dist/message-scroller.d.ts +10 -0
  102. package/dist/message-scroller.js +487 -0
  103. package/dist/message-scroller.js.map +7 -0
  104. package/dist/message.d.ts +10 -0
  105. package/dist/message.js +237 -0
  106. package/dist/message.js.map +7 -0
  107. package/dist/native-select.d.ts +9 -0
  108. package/dist/native-select.js +274 -0
  109. package/dist/native-select.js.map +7 -0
  110. package/dist/navigation-menu.d.ts +11 -0
  111. package/dist/navigation-menu.js +590 -0
  112. package/dist/navigation-menu.js.map +7 -0
  113. package/dist/pagination.d.ts +12 -0
  114. package/dist/pagination.js +481 -0
  115. package/dist/pagination.js.map +7 -0
  116. package/dist/popover.d.ts +14 -0
  117. package/dist/popover.js +293 -0
  118. package/dist/popover.js.map +7 -0
  119. package/dist/primitives.d.ts +1 -0
  120. package/dist/primitives.js +3 -0
  121. package/dist/primitives.js.map +7 -0
  122. package/dist/progress.d.ts +7 -0
  123. package/dist/progress.js +95 -0
  124. package/dist/progress.js.map +7 -0
  125. package/dist/radio-group.d.ts +12 -0
  126. package/dist/radio-group.js +184 -0
  127. package/dist/radio-group.js.map +7 -0
  128. package/dist/scroll-area.d.ts +10 -0
  129. package/dist/scroll-area.js +266 -0
  130. package/dist/scroll-area.js.map +7 -0
  131. package/dist/select.d.ts +14 -0
  132. package/dist/select.js +505 -0
  133. package/dist/select.js.map +7 -0
  134. package/dist/separator.d.ts +8 -0
  135. package/dist/separator.js +110 -0
  136. package/dist/separator.js.map +7 -0
  137. package/dist/skeleton.d.ts +6 -0
  138. package/dist/skeleton.js +87 -0
  139. package/dist/skeleton.js.map +7 -0
  140. package/dist/slider.d.ts +9 -0
  141. package/dist/slider.js +149 -0
  142. package/dist/slider.js.map +7 -0
  143. package/dist/spinner.d.ts +7 -0
  144. package/dist/spinner.js +99 -0
  145. package/dist/spinner.js.map +7 -0
  146. package/dist/stylex-props.d.ts +3 -0
  147. package/dist/stylex.css +1976 -0
  148. package/dist/switch.d.ts +8 -0
  149. package/dist/switch.js +159 -0
  150. package/dist/switch.js.map +7 -0
  151. package/dist/table.d.ts +14 -0
  152. package/dist/table.js +406 -0
  153. package/dist/table.js.map +7 -0
  154. package/dist/tabs.d.ts +10 -0
  155. package/dist/tabs.js +455 -0
  156. package/dist/tabs.js.map +7 -0
  157. package/dist/textarea.d.ts +6 -0
  158. package/dist/textarea.js +121 -0
  159. package/dist/textarea.js.map +7 -0
  160. package/dist/toast.d.ts +9 -0
  161. package/dist/toast.js +668 -0
  162. package/dist/toast.js.map +7 -0
  163. package/dist/toggle-group.d.ts +18 -0
  164. package/dist/toggle-group.js +302 -0
  165. package/dist/toggle-group.js.map +7 -0
  166. package/dist/toggle.d.ts +11 -0
  167. package/dist/toggle.js +153 -0
  168. package/dist/toggle.js.map +7 -0
  169. package/dist/tooltip.d.ts +11 -0
  170. package/dist/tooltip.js +154 -0
  171. package/dist/tooltip.js.map +7 -0
  172. package/dist/typography.d.ts +292 -0
  173. package/dist/typography.js +92 -0
  174. package/dist/typography.js.map +7 -0
  175. package/package.json +103 -0
@@ -0,0 +1,428 @@
1
+ // src/button-group.tsx
2
+ import { c as _c2 } from "react/compiler-runtime";
3
+ import * as stylex2 from "@stylexjs/stylex";
4
+ import { Children, cloneElement, isValidElement } from "react";
5
+
6
+ // src/separator.tsx
7
+ import { c as _c } from "react/compiler-runtime";
8
+ import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
9
+ import * as stylex from "@stylexjs/stylex";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var styles = {
12
+ root: {
13
+ kWkggS: "x19is5ri",
14
+ kmuXW: "x2lah0s",
15
+ $$css: true
16
+ },
17
+ horizontal: {
18
+ kZKoxP: "xywv30c",
19
+ kzqmXN: "xh8yej3",
20
+ $$css: true
21
+ },
22
+ vertical: {
23
+ kSGwAc: "xkh2ocl",
24
+ kAzted: "xssxnvu",
25
+ kzqmXN: "x5v7ak9",
26
+ $$css: true
27
+ }
28
+ };
29
+ function Separator(t0) {
30
+ const $ = _c(23);
31
+ let className;
32
+ let props3;
33
+ let style;
34
+ let t1;
35
+ let t2;
36
+ let xstyle;
37
+ if ($[0] !== t0) {
38
+ ({
39
+ className,
40
+ decorative: t1,
41
+ orientation: t2,
42
+ style,
43
+ xstyle,
44
+ ...props3
45
+ } = t0);
46
+ $[0] = t0;
47
+ $[1] = className;
48
+ $[2] = props3;
49
+ $[3] = style;
50
+ $[4] = t1;
51
+ $[5] = t2;
52
+ $[6] = xstyle;
53
+ } else {
54
+ className = $[1];
55
+ props3 = $[2];
56
+ style = $[3];
57
+ t1 = $[4];
58
+ t2 = $[5];
59
+ xstyle = $[6];
60
+ }
61
+ const decorative = t1 === void 0 ? true : t1;
62
+ const orientation = t2 === void 0 ? "horizontal" : t2;
63
+ let t3;
64
+ if ($[7] !== orientation || $[8] !== xstyle) {
65
+ t3 = stylex.props(styles.root, styles[orientation], xstyle);
66
+ $[7] = orientation;
67
+ $[8] = xstyle;
68
+ $[9] = t3;
69
+ } else {
70
+ t3 = $[9];
71
+ }
72
+ const stylexProps = t3;
73
+ const t4 = decorative || void 0;
74
+ const t5 = decorative ? "presentation" : void 0;
75
+ let t6;
76
+ if ($[10] !== className || $[11] !== stylexProps.className) {
77
+ t6 = [stylexProps.className, className].filter(Boolean);
78
+ $[10] = className;
79
+ $[11] = stylexProps.className;
80
+ $[12] = t6;
81
+ } else {
82
+ t6 = $[12];
83
+ }
84
+ const t7 = t6.join(" ");
85
+ let t8;
86
+ if ($[13] !== style || $[14] !== stylexProps.style) {
87
+ t8 = {
88
+ ...stylexProps.style,
89
+ ...style
90
+ };
91
+ $[13] = style;
92
+ $[14] = stylexProps.style;
93
+ $[15] = t8;
94
+ } else {
95
+ t8 = $[15];
96
+ }
97
+ let t9;
98
+ if ($[16] !== orientation || $[17] !== props3 || $[18] !== t4 || $[19] !== t5 || $[20] !== t7 || $[21] !== t8) {
99
+ t9 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props3, "aria-hidden": t4, orientation, role: t5, className: t7, style: t8 });
100
+ $[16] = orientation;
101
+ $[17] = props3;
102
+ $[18] = t4;
103
+ $[19] = t5;
104
+ $[20] = t7;
105
+ $[21] = t8;
106
+ $[22] = t9;
107
+ } else {
108
+ t9 = $[22];
109
+ }
110
+ return t9;
111
+ }
112
+
113
+ // src/button-group.tsx
114
+ import { radiusVars } from "@nooeh/tokens/tokens.stylex";
115
+ import { jsx as jsx2 } from "react/jsx-runtime";
116
+ var styles2 = {
117
+ root: {
118
+ kGNEyG: "x1qjc9v5",
119
+ k1xSpc: "x3nfvp2",
120
+ kOIVth: "xxhr3t",
121
+ kzqmXN: "xeq5yr9",
122
+ $$css: true
123
+ },
124
+ horizontal: {
125
+ kXwgrk: "x1q0g3np",
126
+ $$css: true
127
+ },
128
+ vertical: {
129
+ kXwgrk: "xdt5ytf",
130
+ $$css: true
131
+ },
132
+ item: {
133
+ k7Eaqz: "xeuugli",
134
+ kVAEAm: "x1n2onr6",
135
+ k9RWNo: "x135w3n3",
136
+ $$css: true
137
+ },
138
+ horizontalItem: {
139
+ keTefX: "x1hb08if",
140
+ $$css: true
141
+ },
142
+ horizontalFirstItem: {
143
+ keTefX: "x1lziwak",
144
+ $$css: true
145
+ },
146
+ horizontalLastItem: {
147
+ $$css: true
148
+ },
149
+ verticalItem: {
150
+ keoZOQ: "x1y332i5",
151
+ $$css: true
152
+ },
153
+ verticalFirstItem: {
154
+ keoZOQ: "xdj266r",
155
+ $$css: true
156
+ },
157
+ verticalLastItem: {
158
+ $$css: true
159
+ },
160
+ text: {
161
+ kGNEyG: "x6s0dn4",
162
+ kWkggS: "x11m93s7",
163
+ kVAM5u: "x1bl4cbq",
164
+ ksu8eU: "x1y0btm7",
165
+ kMzoRj: "xzcyats",
166
+ kMwMTN: "x1f8jq9g",
167
+ k1xSpc: "x3nfvp2",
168
+ kGuDYH: "xkrk5hw",
169
+ k63SB2: "x12lpnxt",
170
+ kjj79g: "xl56j7k",
171
+ kAzted: "x9pjwej",
172
+ kg3NbH: "xk1318k",
173
+ $$css: true
174
+ },
175
+ separator: {
176
+ kSGwAc: "xkh2ocl",
177
+ kZKoxP: "xt7dq6l",
178
+ kUOVxO: "xz95peq",
179
+ kAzted: "x65nank",
180
+ $$css: true
181
+ }
182
+ };
183
+ function isGroupItem(child) {
184
+ return isValidElement(child) && child.type !== ButtonGroupSeparator;
185
+ }
186
+ function getItemBorderRadius(orientation, position, length) {
187
+ const isFirst = position === 0;
188
+ const isLast = position === length - 1;
189
+ if (orientation === "horizontal") {
190
+ return {
191
+ borderBottomLeftRadius: isFirst ? radiusVars.sm : 0,
192
+ borderBottomRightRadius: isLast ? radiusVars.sm : 0,
193
+ borderTopLeftRadius: isFirst ? radiusVars.sm : 0,
194
+ borderTopRightRadius: isLast ? radiusVars.sm : 0
195
+ };
196
+ }
197
+ return {
198
+ borderBottomLeftRadius: isLast ? radiusVars.sm : 0,
199
+ borderBottomRightRadius: isLast ? radiusVars.sm : 0,
200
+ borderTopLeftRadius: isFirst ? radiusVars.sm : 0,
201
+ borderTopRightRadius: isFirst ? radiusVars.sm : 0
202
+ };
203
+ }
204
+ function ButtonGroup(t0) {
205
+ const $ = _c2(27);
206
+ let children;
207
+ let className;
208
+ let props3;
209
+ let role;
210
+ let style;
211
+ let t1;
212
+ let xstyle;
213
+ if ($[0] !== t0) {
214
+ ({
215
+ className,
216
+ children,
217
+ orientation: t1,
218
+ role,
219
+ style,
220
+ xstyle,
221
+ ...props3
222
+ } = t0);
223
+ $[0] = t0;
224
+ $[1] = children;
225
+ $[2] = className;
226
+ $[3] = props3;
227
+ $[4] = role;
228
+ $[5] = style;
229
+ $[6] = t1;
230
+ $[7] = xstyle;
231
+ } else {
232
+ children = $[1];
233
+ className = $[2];
234
+ props3 = $[3];
235
+ role = $[4];
236
+ style = $[5];
237
+ t1 = $[6];
238
+ xstyle = $[7];
239
+ }
240
+ const orientation = t1 === void 0 ? "horizontal" : t1;
241
+ let t2;
242
+ if ($[8] !== orientation || $[9] !== xstyle) {
243
+ t2 = stylex2.props(styles2.root, styles2[orientation], xstyle);
244
+ $[8] = orientation;
245
+ $[9] = xstyle;
246
+ $[10] = t2;
247
+ } else {
248
+ t2 = $[10];
249
+ }
250
+ const stylexProps = t2;
251
+ let t3;
252
+ if ($[11] !== children || $[12] !== orientation) {
253
+ const childItems = Children.toArray(children);
254
+ const groupItems = childItems.filter(isGroupItem);
255
+ t3 = childItems.map((child, childIndex) => {
256
+ if (!isGroupItem(child)) {
257
+ return child;
258
+ }
259
+ const position = childItems.slice(0, childIndex).filter(isGroupItem).length;
260
+ const groupItem = child;
261
+ const itemStyles = [styles2.item, styles2[`${orientation}Item`], position === 0 && styles2[`${orientation}FirstItem`], position === groupItems.length - 1 && styles2[`${orientation}LastItem`]];
262
+ return cloneElement(groupItem, {
263
+ style: {
264
+ ...groupItem.props.style,
265
+ ...getItemBorderRadius(orientation, position, groupItems.length)
266
+ },
267
+ xstyle: [...itemStyles, groupItem.props.xstyle]
268
+ });
269
+ });
270
+ $[11] = children;
271
+ $[12] = orientation;
272
+ $[13] = t3;
273
+ } else {
274
+ t3 = $[13];
275
+ }
276
+ const content = t3;
277
+ const t4 = role ?? "group";
278
+ let t5;
279
+ if ($[14] !== className || $[15] !== stylexProps.className) {
280
+ t5 = [stylexProps.className, className].filter(Boolean);
281
+ $[14] = className;
282
+ $[15] = stylexProps.className;
283
+ $[16] = t5;
284
+ } else {
285
+ t5 = $[16];
286
+ }
287
+ const t6 = t5.join(" ");
288
+ let t7;
289
+ if ($[17] !== style || $[18] !== stylexProps.style) {
290
+ t7 = {
291
+ ...stylexProps.style,
292
+ ...style
293
+ };
294
+ $[17] = style;
295
+ $[18] = stylexProps.style;
296
+ $[19] = t7;
297
+ } else {
298
+ t7 = $[19];
299
+ }
300
+ let t8;
301
+ if ($[20] !== content || $[21] !== orientation || $[22] !== props3 || $[23] !== t4 || $[24] !== t6 || $[25] !== t7) {
302
+ t8 = /* @__PURE__ */ jsx2("div", { ...props3, "data-orientation": orientation, role: t4, className: t6, style: t7, children: content });
303
+ $[20] = content;
304
+ $[21] = orientation;
305
+ $[22] = props3;
306
+ $[23] = t4;
307
+ $[24] = t6;
308
+ $[25] = t7;
309
+ $[26] = t8;
310
+ } else {
311
+ t8 = $[26];
312
+ }
313
+ return t8;
314
+ }
315
+ function ButtonGroupText(t0) {
316
+ const $ = _c2(17);
317
+ let className;
318
+ let props3;
319
+ let style;
320
+ let xstyle;
321
+ if ($[0] !== t0) {
322
+ ({
323
+ className,
324
+ style,
325
+ xstyle,
326
+ ...props3
327
+ } = t0);
328
+ $[0] = t0;
329
+ $[1] = className;
330
+ $[2] = props3;
331
+ $[3] = style;
332
+ $[4] = xstyle;
333
+ } else {
334
+ className = $[1];
335
+ props3 = $[2];
336
+ style = $[3];
337
+ xstyle = $[4];
338
+ }
339
+ let t1;
340
+ if ($[5] !== xstyle) {
341
+ t1 = stylex2.props(styles2.text, xstyle);
342
+ $[5] = xstyle;
343
+ $[6] = t1;
344
+ } else {
345
+ t1 = $[6];
346
+ }
347
+ const stylexProps = t1;
348
+ let t2;
349
+ if ($[7] !== className || $[8] !== stylexProps.className) {
350
+ t2 = [stylexProps.className, className].filter(Boolean);
351
+ $[7] = className;
352
+ $[8] = stylexProps.className;
353
+ $[9] = t2;
354
+ } else {
355
+ t2 = $[9];
356
+ }
357
+ const t3 = t2.join(" ");
358
+ let t4;
359
+ if ($[10] !== style || $[11] !== stylexProps.style) {
360
+ t4 = {
361
+ ...stylexProps.style,
362
+ ...style
363
+ };
364
+ $[10] = style;
365
+ $[11] = stylexProps.style;
366
+ $[12] = t4;
367
+ } else {
368
+ t4 = $[12];
369
+ }
370
+ let t5;
371
+ if ($[13] !== props3 || $[14] !== t3 || $[15] !== t4) {
372
+ t5 = /* @__PURE__ */ jsx2("span", { ...props3, className: t3, style: t4 });
373
+ $[13] = props3;
374
+ $[14] = t3;
375
+ $[15] = t4;
376
+ $[16] = t5;
377
+ } else {
378
+ t5 = $[16];
379
+ }
380
+ return t5;
381
+ }
382
+ function ButtonGroupSeparator(t0) {
383
+ const $ = _c2(10);
384
+ let props3;
385
+ let t1;
386
+ let xstyle;
387
+ if ($[0] !== t0) {
388
+ ({
389
+ orientation: t1,
390
+ xstyle,
391
+ ...props3
392
+ } = t0);
393
+ $[0] = t0;
394
+ $[1] = props3;
395
+ $[2] = t1;
396
+ $[3] = xstyle;
397
+ } else {
398
+ props3 = $[1];
399
+ t1 = $[2];
400
+ xstyle = $[3];
401
+ }
402
+ const orientation = t1 === void 0 ? "vertical" : t1;
403
+ let t2;
404
+ if ($[4] !== xstyle) {
405
+ t2 = [styles2.separator, xstyle];
406
+ $[4] = xstyle;
407
+ $[5] = t2;
408
+ } else {
409
+ t2 = $[5];
410
+ }
411
+ let t3;
412
+ if ($[6] !== orientation || $[7] !== props3 || $[8] !== t2) {
413
+ t3 = /* @__PURE__ */ jsx2(Separator, { ...props3, orientation, xstyle: t2 });
414
+ $[6] = orientation;
415
+ $[7] = props3;
416
+ $[8] = t2;
417
+ $[9] = t3;
418
+ } else {
419
+ t3 = $[9];
420
+ }
421
+ return t3;
422
+ }
423
+ export {
424
+ ButtonGroup,
425
+ ButtonGroupSeparator,
426
+ ButtonGroupText
427
+ };
428
+ //# sourceMappingURL=button-group.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/button-group.tsx", "../src/separator.tsx"],
4
+ "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { Children, cloneElement, isValidElement, type ComponentProps, type CSSProperties, type ReactElement, type ReactNode } from \"react\";\nimport { Separator } from \"./separator\";\nimport { radiusVars } from \"@nooeh/tokens/tokens.stylex\";\nimport { colorVars, sizeVars, spacingVars, typographyVars } from \"@nooeh/tokens/tokens.stylex\";\nconst styles = {\n root: {\n kGNEyG: \"x1qjc9v5\",\n k1xSpc: \"x3nfvp2\",\n kOIVth: \"xxhr3t\",\n kzqmXN: \"xeq5yr9\",\n $$css: true\n },\n horizontal: {\n kXwgrk: \"x1q0g3np\",\n $$css: true\n },\n vertical: {\n kXwgrk: \"xdt5ytf\",\n $$css: true\n },\n item: {\n k7Eaqz: \"xeuugli\",\n kVAEAm: \"x1n2onr6\",\n k9RWNo: \"x135w3n3\",\n $$css: true\n },\n horizontalItem: {\n keTefX: \"x1hb08if\",\n $$css: true\n },\n horizontalFirstItem: {\n keTefX: \"x1lziwak\",\n $$css: true\n },\n horizontalLastItem: {\n $$css: true\n },\n verticalItem: {\n keoZOQ: \"x1y332i5\",\n $$css: true\n },\n verticalFirstItem: {\n keoZOQ: \"xdj266r\",\n $$css: true\n },\n verticalLastItem: {\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x11m93s7\",\n kVAM5u: \"x1bl4cbq\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzcyats\",\n kMwMTN: \"x1f8jq9g\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"xkrk5hw\",\n k63SB2: \"x12lpnxt\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x9pjwej\",\n kg3NbH: \"xk1318k\",\n $$css: true\n },\n separator: {\n kSGwAc: \"xkh2ocl\",\n kZKoxP: \"xt7dq6l\",\n kUOVxO: \"xz95peq\",\n kAzted: \"x65nank\",\n $$css: true\n }\n};\ntype StyleProps = {\n style?: CSSProperties;\n xstyle?: stylex.StyleXStyles;\n};\ntype GroupItem = ReactElement<StyleProps>;\nfunction isGroupItem(child: ReactNode): child is GroupItem {\n return isValidElement(child) && child.type !== ButtonGroupSeparator;\n}\nfunction getItemBorderRadius(orientation: \"horizontal\" | \"vertical\", position: number, length: number): CSSProperties {\n const isFirst = position === 0;\n const isLast = position === length - 1;\n if (orientation === \"horizontal\") {\n return {\n borderBottomLeftRadius: isFirst ? radiusVars.sm : 0,\n borderBottomRightRadius: isLast ? radiusVars.sm : 0,\n borderTopLeftRadius: isFirst ? radiusVars.sm : 0,\n borderTopRightRadius: isLast ? radiusVars.sm : 0\n };\n }\n return {\n borderBottomLeftRadius: isLast ? radiusVars.sm : 0,\n borderBottomRightRadius: isLast ? radiusVars.sm : 0,\n borderTopLeftRadius: isFirst ? radiusVars.sm : 0,\n borderTopRightRadius: isFirst ? radiusVars.sm : 0\n };\n}\nexport type ButtonGroupProps = ComponentProps<\"div\"> & StyleProps & {\n orientation?: \"horizontal\" | \"vertical\";\n};\nexport function ButtonGroup(t0) {\n const $ = _c(27);\n let children;\n let className;\n let props;\n let role;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n children,\n orientation: t1,\n role,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = props;\n $[4] = role;\n $[5] = style;\n $[6] = t1;\n $[7] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n props = $[3];\n role = $[4];\n style = $[5];\n t1 = $[6];\n xstyle = $[7];\n }\n const orientation = t1 === undefined ? \"horizontal\" : t1;\n let t2;\n if ($[8] !== orientation || $[9] !== xstyle) {\n t2 = stylex.props(styles.root, styles[orientation], xstyle);\n $[8] = orientation;\n $[9] = xstyle;\n $[10] = t2;\n } else {\n t2 = $[10];\n }\n const stylexProps = t2;\n let t3;\n if ($[11] !== children || $[12] !== orientation) {\n const childItems = Children.toArray(children);\n const groupItems = childItems.filter(isGroupItem);\n t3 = childItems.map((child, childIndex) => {\n if (!isGroupItem(child)) {\n return child;\n }\n const position = childItems.slice(0, childIndex).filter(isGroupItem).length;\n const groupItem = child;\n const itemStyles = [styles.item, styles[`${orientation}Item`], position === 0 && styles[`${orientation}FirstItem`], position === groupItems.length - 1 && styles[`${orientation}LastItem`]];\n return cloneElement(groupItem, {\n style: {\n ...groupItem.props.style,\n ...getItemBorderRadius(orientation, position, groupItems.length)\n },\n xstyle: [...itemStyles, groupItem.props.xstyle]\n });\n });\n $[11] = children;\n $[12] = orientation;\n $[13] = t3;\n } else {\n t3 = $[13];\n }\n const content = t3;\n const t4 = role ?? \"group\";\n let t5;\n if ($[14] !== className || $[15] !== stylexProps.className) {\n t5 = [stylexProps.className, className].filter(Boolean);\n $[14] = className;\n $[15] = stylexProps.className;\n $[16] = t5;\n } else {\n t5 = $[16];\n }\n const t6 = t5.join(\" \");\n let t7;\n if ($[17] !== style || $[18] !== stylexProps.style) {\n t7 = {\n ...stylexProps.style,\n ...style\n };\n $[17] = style;\n $[18] = stylexProps.style;\n $[19] = t7;\n } else {\n t7 = $[19];\n }\n let t8;\n if ($[20] !== content || $[21] !== orientation || $[22] !== props || $[23] !== t4 || $[24] !== t6 || $[25] !== t7) {\n t8 = <div {...props} data-orientation={orientation} role={t4} className={t6} style={t7}>{content}</div>;\n $[20] = content;\n $[21] = orientation;\n $[22] = props;\n $[23] = t4;\n $[24] = t6;\n $[25] = t7;\n $[26] = t8;\n } else {\n t8 = $[26];\n }\n return t8;\n}\nexport function ButtonGroupText(t0) {\n const $ = _c(17);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== xstyle) {\n t1 = stylex.props(styles.text, xstyle);\n $[5] = xstyle;\n $[6] = t1;\n } else {\n t1 = $[6];\n }\n const stylexProps = t1;\n let t2;\n if ($[7] !== className || $[8] !== stylexProps.className) {\n t2 = [stylexProps.className, className].filter(Boolean);\n $[7] = className;\n $[8] = stylexProps.className;\n $[9] = t2;\n } else {\n t2 = $[9];\n }\n const t3 = t2.join(\" \");\n let t4;\n if ($[10] !== style || $[11] !== stylexProps.style) {\n t4 = {\n ...stylexProps.style,\n ...style\n };\n $[10] = style;\n $[11] = stylexProps.style;\n $[12] = t4;\n } else {\n t4 = $[12];\n }\n let t5;\n if ($[13] !== props || $[14] !== t3 || $[15] !== t4) {\n t5 = <span {...props} className={t3} style={t4} />;\n $[13] = props;\n $[14] = t3;\n $[15] = t4;\n $[16] = t5;\n } else {\n t5 = $[16];\n }\n return t5;\n}\nexport function ButtonGroupSeparator(t0) {\n const $ = _c(10);\n let props;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n orientation: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n xstyle = $[3];\n }\n const orientation = t1 === undefined ? \"vertical\" : t1;\n let t2;\n if ($[4] !== xstyle) {\n t2 = [styles.separator, xstyle];\n $[4] = xstyle;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n let t3;\n if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {\n t3 = <Separator {...props} orientation={orientation} xstyle={t2} />;\n $[6] = orientation;\n $[7] = props;\n $[8] = t2;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n return t3;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { Separator as SeparatorPrimitive } from \"@base-ui/react/separator\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, sizeVars } from \"@nooeh/tokens/tokens.stylex\";\nconst styles = {\n root: {\n kWkggS: \"x19is5ri\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n horizontal: {\n kZKoxP: \"xywv30c\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n vertical: {\n kSGwAc: \"xkh2ocl\",\n kAzted: \"xssxnvu\",\n kzqmXN: \"x5v7ak9\",\n $$css: true\n }\n};\nexport type SeparatorProps = ComponentProps<typeof SeparatorPrimitive> & {\n decorative?: boolean;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Separator(t0) {\n const $ = _c(23);\n let className;\n let props;\n let style;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n decorative: t1,\n orientation: t2,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = t1;\n $[5] = t2;\n $[6] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n t1 = $[4];\n t2 = $[5];\n xstyle = $[6];\n }\n const decorative = t1 === undefined ? true : t1;\n const orientation = t2 === undefined ? \"horizontal\" : t2;\n let t3;\n if ($[7] !== orientation || $[8] !== xstyle) {\n t3 = stylex.props(styles.root, styles[orientation], xstyle);\n $[7] = orientation;\n $[8] = xstyle;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n const stylexProps = t3;\n const t4 = decorative || undefined;\n const t5 = decorative ? \"presentation\" : undefined;\n let t6;\n if ($[10] !== className || $[11] !== stylexProps.className) {\n t6 = [stylexProps.className, className].filter(Boolean);\n $[10] = className;\n $[11] = stylexProps.className;\n $[12] = t6;\n } else {\n t6 = $[12];\n }\n const t7 = t6.join(\" \");\n let t8;\n if ($[13] !== style || $[14] !== stylexProps.style) {\n t8 = {\n ...stylexProps.style,\n ...style\n };\n $[13] = style;\n $[14] = stylexProps.style;\n $[15] = t8;\n } else {\n t8 = $[15];\n }\n let t9;\n if ($[16] !== orientation || $[17] !== props || $[18] !== t4 || $[19] !== t5 || $[20] !== t7 || $[21] !== t8) {\n t9 = <SeparatorPrimitive {...props} aria-hidden={t4} orientation={orientation} role={t5} className={t7} style={t8} />;\n $[16] = orientation;\n $[17] = props;\n $[18] = t4;\n $[19] = t5;\n $[20] = t7;\n $[21] = t8;\n $[22] = t9;\n } else {\n t9 = $[22];\n }\n return t9;\n}"],
5
+ "mappings": ";AAAA,SAAS,KAAKA,WAAU;AACxB,YAAYC,aAAY;AACxB,SAAS,UAAU,cAAc,sBAAkG;;;ACFnI,SAAS,KAAK,UAAU;AACxB,SAAS,aAAa,0BAA0B;AAChD,YAAY,YAA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AAIC;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC,aAAa;AAAA,MACb;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,IAAAA,SAAQ,EAAE,CAAC;AACX,SAAK,EAAE,CAAC;AACR,aAAS,EAAE,CAAC;AAAA,EACd;AACA,QAAM,cAAc,OAAO,SAAY,aAAa;AACpD,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ;AACnB,SAAK,CAACF,QAAO,WAAW,MAAM;AAC9B,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,eAAe,EAAE,CAAC,MAAME,UAAS,EAAE,CAAC,MAAM,IAAI;AACzD,SAAK,gBAAAH,KAAC,aAAW,GAAGG,QAAO,aAA0B,QAAQ,IAAI;AACjE,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,SAAO;AACT;",
6
+ "names": ["_c", "stylex", "props", "jsx", "styles", "_c", "props"]
7
+ }
@@ -0,0 +1,13 @@
1
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
2
+ import * as stylex from "@stylexjs/stylex";
3
+ import type { ComponentProps, ReactNode } from "react";
4
+ type ButtonVariant = "primary" | "secondary" | "ghost" | "destructive";
5
+ type ButtonSize = "sm" | "md" | "lg";
6
+ export type ButtonProps = ComponentProps<typeof ButtonPrimitive> & {
7
+ children: ReactNode;
8
+ size?: ButtonSize;
9
+ variant?: ButtonVariant;
10
+ xstyle?: stylex.StyleXStyles;
11
+ };
12
+ export declare function Button({ children, className, disabled, size, style, variant, xstyle, ...props }: ButtonProps): import("react").JSX.Element;
13
+ export {};