@nuee/ui 0.4.1 → 0.5.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 (189) hide show
  1. package/dist/Icon.js +2 -0
  2. package/dist/Icon.js.map +2 -2
  3. package/dist/accordion.d.ts +4 -4
  4. package/dist/accordion.js +105 -207
  5. package/dist/accordion.js.map +4 -4
  6. package/dist/alert-dialog.d.ts +6 -6
  7. package/dist/alert-dialog.js +83 -352
  8. package/dist/alert-dialog.js.map +4 -4
  9. package/dist/aspect-ratio.d.ts +1 -1
  10. package/dist/aspect-ratio.js +6 -42
  11. package/dist/aspect-ratio.js.map +2 -2
  12. package/dist/attachment.d.ts +8 -8
  13. package/dist/attachment.js +82 -314
  14. package/dist/attachment.js.map +4 -4
  15. package/dist/avatar.d.ts +7 -9
  16. package/dist/avatar.js +29 -71
  17. package/dist/avatar.js.map +2 -2
  18. package/dist/badge.d.ts +2 -4
  19. package/dist/badge.js +7 -44
  20. package/dist/badge.js.map +2 -2
  21. package/dist/banner.d.ts +4 -7
  22. package/dist/banner.js +35 -273
  23. package/dist/banner.js.map +2 -2
  24. package/dist/breadcrumb.d.ts +7 -7
  25. package/dist/breadcrumb.js +12 -92
  26. package/dist/breadcrumb.js.map +4 -4
  27. package/dist/bubble.d.ts +6 -4
  28. package/dist/bubble.js +17 -55
  29. package/dist/bubble.js.map +2 -2
  30. package/dist/button-group.d.ts +5 -5
  31. package/dist/button-group.js +113 -159
  32. package/dist/button-group.js.map +4 -4
  33. package/dist/button.d.ts +7 -5
  34. package/dist/button.js +141 -44
  35. package/dist/button.js.map +2 -2
  36. package/dist/calendar.d.ts +9 -0
  37. package/dist/calendar.js +234 -0
  38. package/dist/calendar.js.map +7 -0
  39. package/dist/card.d.ts +3 -3
  40. package/dist/card.js +31 -216
  41. package/dist/card.js.map +2 -2
  42. package/dist/carousel.d.ts +28 -0
  43. package/dist/carousel.js +427 -0
  44. package/dist/carousel.js.map +7 -0
  45. package/dist/checkbox.d.ts +3 -3
  46. package/dist/checkbox.js +45 -115
  47. package/dist/checkbox.js.map +4 -4
  48. package/dist/collapsible.d.ts +3 -3
  49. package/dist/collapsible.js +96 -184
  50. package/dist/collapsible.js.map +4 -4
  51. package/dist/combobox.d.ts +6 -6
  52. package/dist/combobox.js +182 -268
  53. package/dist/combobox.js.map +4 -4
  54. package/dist/content-row.d.ts +7 -7
  55. package/dist/content-row.js +97 -241
  56. package/dist/content-row.js.map +3 -3
  57. package/dist/context-menu.js +15 -738
  58. package/dist/context-menu.js.map +4 -4
  59. package/dist/control-layout.d.ts +9 -0
  60. package/dist/date-picker.d.ts +11 -0
  61. package/dist/date-picker.js +140 -0
  62. package/dist/date-picker.js.map +7 -0
  63. package/dist/dialog.d.ts +5 -5
  64. package/dist/dialog.js +44 -161
  65. package/dist/dialog.js.map +4 -4
  66. package/dist/drawer.d.ts +8 -8
  67. package/dist/drawer.js +80 -119
  68. package/dist/drawer.js.map +2 -2
  69. package/dist/dropdown-menu.d.ts +8 -8
  70. package/dist/dropdown-menu.js +244 -416
  71. package/dist/dropdown-menu.js.map +4 -4
  72. package/dist/empty.d.ts +6 -6
  73. package/dist/empty.js +31 -210
  74. package/dist/empty.js.map +2 -2
  75. package/dist/field.d.ts +9 -9
  76. package/dist/field.js +81 -31
  77. package/dist/field.js.map +3 -3
  78. package/dist/global.css +5 -0
  79. package/dist/heading.d.ts +6 -0
  80. package/dist/heading.js +92 -0
  81. package/dist/heading.js.map +7 -0
  82. package/dist/hover-card.d.ts +7 -4
  83. package/dist/hover-card.js +51 -3
  84. package/dist/hover-card.js.map +2 -2
  85. package/dist/index.d.ts +14 -8
  86. package/dist/index.js +295 -12210
  87. package/dist/index.js.map +4 -4
  88. package/dist/input-group.d.ts +5 -5
  89. package/dist/input-group.js +95 -485
  90. package/dist/input-group.js.map +4 -4
  91. package/dist/input-otp.d.ts +6 -6
  92. package/dist/input-otp.js +18 -43
  93. package/dist/input-otp.js.map +2 -2
  94. package/dist/input.d.ts +3 -3
  95. package/dist/input.js +7 -4
  96. package/dist/input.js.map +2 -2
  97. package/dist/kbd.d.ts +2 -7
  98. package/dist/kbd.js +4 -99
  99. package/dist/kbd.js.map +3 -3
  100. package/dist/label.d.ts +2 -5
  101. package/dist/label.js +64 -39
  102. package/dist/label.js.map +3 -3
  103. package/dist/link.d.ts +3 -5
  104. package/dist/link.js +22 -107
  105. package/dist/link.js.map +4 -4
  106. package/dist/marker.d.ts +3 -3
  107. package/dist/marker.js +17 -104
  108. package/dist/marker.js.map +2 -2
  109. package/dist/menubar.d.ts +2 -2
  110. package/dist/menubar.js +36 -772
  111. package/dist/menubar.js.map +4 -4
  112. package/dist/message.d.ts +9 -6
  113. package/dist/message.js +35 -155
  114. package/dist/message.js.map +2 -2
  115. package/dist/native-select.d.ts +5 -5
  116. package/dist/native-select.js +24 -102
  117. package/dist/native-select.js.map +4 -4
  118. package/dist/navigation-menu.d.ts +7 -7
  119. package/dist/navigation-menu.js +183 -307
  120. package/dist/navigation-menu.js.map +4 -4
  121. package/dist/pagination.d.ts +5 -5
  122. package/dist/pagination.js +13 -92
  123. package/dist/pagination.js.map +4 -4
  124. package/dist/popover.d.ts +4 -4
  125. package/dist/popover.js +44 -36
  126. package/dist/popover.js.map +3 -3
  127. package/dist/primitives.js +2 -0
  128. package/dist/primitives.js.map +2 -2
  129. package/dist/progress.d.ts +3 -3
  130. package/dist/progress.js +16 -30
  131. package/dist/progress.js.map +2 -2
  132. package/dist/radio-group.d.ts +5 -5
  133. package/dist/radio-group.js +43 -49
  134. package/dist/radio-group.js.map +3 -3
  135. package/dist/reset.css +0 -1
  136. package/dist/scroll-area.d.ts +2 -2
  137. package/dist/scroll-area.js +56 -80
  138. package/dist/scroll-area.js.map +2 -2
  139. package/dist/select.d.ts +5 -5
  140. package/dist/select.js +169 -255
  141. package/dist/select.js.map +4 -4
  142. package/dist/separator.d.ts +1 -1
  143. package/dist/separator.js +11 -10
  144. package/dist/separator.js.map +2 -2
  145. package/dist/skeleton.d.ts +1 -1
  146. package/dist/skeleton.js +6 -37
  147. package/dist/skeleton.js.map +2 -2
  148. package/dist/slider.d.ts +3 -3
  149. package/dist/slider.js +37 -46
  150. package/dist/slider.js.map +2 -2
  151. package/dist/spinner.d.ts +2 -4
  152. package/dist/spinner.js +5 -61
  153. package/dist/spinner.js.map +3 -3
  154. package/dist/stylex.css +463 -307
  155. package/dist/switch.d.ts +3 -3
  156. package/dist/switch.js +49 -35
  157. package/dist/switch.js.map +3 -3
  158. package/dist/table.d.ts +9 -10
  159. package/dist/table.js +33 -274
  160. package/dist/table.js.map +2 -2
  161. package/dist/tabs.d.ts +4 -4
  162. package/dist/tabs.js +84 -135
  163. package/dist/tabs.js.map +3 -3
  164. package/dist/textarea.d.ts +3 -3
  165. package/dist/textarea.js +11 -43
  166. package/dist/textarea.js.map +2 -2
  167. package/dist/timeline.d.ts +19 -0
  168. package/dist/timeline.js +104 -0
  169. package/dist/timeline.js.map +7 -0
  170. package/dist/toast.d.ts +4 -2
  171. package/dist/toast.js +261 -485
  172. package/dist/toast.js.map +4 -4
  173. package/dist/toast.stylex.d.ts +4 -2
  174. package/dist/toggle-group.d.ts +5 -5
  175. package/dist/toggle-group.js +52 -60
  176. package/dist/toggle-group.js.map +3 -3
  177. package/dist/toggle.d.ts +3 -3
  178. package/dist/toggle.js +28 -20
  179. package/dist/toggle.js.map +3 -3
  180. package/dist/tooltip.d.ts +1 -1
  181. package/dist/tooltip.js +52 -44
  182. package/dist/tooltip.js.map +3 -3
  183. package/dist/typography.d.ts +50 -294
  184. package/package.json +15 -7
  185. package/dist/message-scroller.d.ts +0 -10
  186. package/dist/message-scroller.js +0 -464
  187. package/dist/message-scroller.js.map +0 -7
  188. package/dist/typography.js +0 -85
  189. package/dist/typography.js.map +0 -7
package/dist/bubble.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import * as stylex from "@stylexjs/stylex";
2
2
  import type { ComponentProps } from "react";
3
- export type BubbleProps = ComponentProps<"div"> & {
4
- side?: "incoming" | "outgoing";
5
- variant?: "default" | "outline";
3
+ export type BubbleAlign = "start" | "end";
4
+ export type BubbleVariant = "default" | "primary" | "outline";
5
+ export type BubbleProps = Omit<ComponentProps<"div">, "className" | "style"> & {
6
+ align?: BubbleAlign;
7
+ variant?: BubbleVariant;
6
8
  xstyle?: stylex.StyleXStyles;
7
9
  };
8
- export declare function Bubble({ side, variant, xstyle, ...props }: BubbleProps): import("react").JSX.Element;
10
+ export declare function Bubble({ align, variant, xstyle, ...props }: BubbleProps): import("react").JSX.Element;
package/dist/bubble.js CHANGED
@@ -1,91 +1,53 @@
1
1
  // src/bubble.tsx
2
- import { c as _c } from "react/compiler-runtime";
3
2
  import * as stylex from "@stylexjs/stylex";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  var styles = {
6
5
  root: {
7
6
  kGuDYH: "x99mhxu",
8
7
  kLWn49: "xi1fz51",
9
- ks0D6T: "x1bht2vh",
8
+ ks0D6T: "x1ihlfi",
10
9
  k8WAf4: "x172mi11",
11
10
  kg3NbH: "x19pklni",
12
11
  khDVqt: "x126k92a",
13
12
  $$css: true
14
13
  },
15
- incoming: {
14
+ alignStart: {
16
15
  kSGwAc: "xqcrz7y",
17
16
  kqGeR4: "x4cpyzu",
18
17
  kaIpWk: "x7c24we",
19
18
  $$css: true
20
19
  },
21
- outgoing: {
20
+ alignEnd: {
22
21
  kSGwAc: "xpvyfi4",
23
22
  kYm2EN: "x62l8f0",
24
23
  kaIpWk: "x7c24we",
25
24
  $$css: true
26
25
  },
27
- variantDefault: {
26
+ default: {
28
27
  kWkggS: "x13hkpcx",
29
28
  kMwMTN: "x1alews2",
30
29
  $$css: true
31
30
  },
31
+ primary: {
32
+ kWkggS: "x1fu17qy",
33
+ kMwMTN: "xrbreni",
34
+ $$css: true
35
+ },
32
36
  outline: {
33
- kWkggS: "x8m6yc2",
34
37
  kVAM5u: "x13xm7is",
35
38
  ksu8eU: "x1y0btm7",
36
- kMzoRj: "xmkeg23",
39
+ kMzoRj: "xzgztj1",
37
40
  kMwMTN: "x1alews2",
38
41
  $$css: true
39
42
  }
40
43
  };
41
- function Bubble(t0) {
42
- const $ = _c(13);
43
- let props2;
44
- let t1;
45
- let t2;
46
- let xstyle;
47
- if ($[0] !== t0) {
48
- ({
49
- side: t1,
50
- variant: t2,
51
- xstyle,
52
- ...props2
53
- } = t0);
54
- $[0] = t0;
55
- $[1] = props2;
56
- $[2] = t1;
57
- $[3] = t2;
58
- $[4] = xstyle;
59
- } else {
60
- props2 = $[1];
61
- t1 = $[2];
62
- t2 = $[3];
63
- xstyle = $[4];
64
- }
65
- const side = t1 === void 0 ? "incoming" : t1;
66
- const variant = t2 === void 0 ? "default" : t2;
67
- let t3;
68
- if ($[5] !== side || $[6] !== variant || $[7] !== xstyle) {
69
- t3 = stylex.props(styles.root, styles[side], variant === "default" ? styles.variantDefault : styles[variant], xstyle);
70
- $[5] = side;
71
- $[6] = variant;
72
- $[7] = xstyle;
73
- $[8] = t3;
74
- } else {
75
- t3 = $[8];
76
- }
77
- const resolved = t3;
78
- let t4;
79
- if ($[9] !== props2 || $[10] !== resolved || $[11] !== side) {
80
- t4 = /* @__PURE__ */ jsx("div", { ...props2, ...resolved, "data-side": side });
81
- $[9] = props2;
82
- $[10] = resolved;
83
- $[11] = side;
84
- $[12] = t4;
85
- } else {
86
- t4 = $[12];
87
- }
88
- return t4;
44
+ function Bubble({
45
+ align = "start",
46
+ variant = "default",
47
+ xstyle,
48
+ ...props2
49
+ }) {
50
+ return /* @__PURE__ */ jsx("div", { ...props2, "data-align": align, "data-variant": variant, ...stylex.props(styles.root, align === "start" ? styles.alignStart : styles.alignEnd, styles[variant], xstyle) });
89
51
  }
90
52
  export {
91
53
  Bubble
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/bubble.tsx"],
4
- "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, radiusVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kGuDYH: \"x99mhxu\",\n kLWn49: \"xi1fz51\",\n ks0D6T: \"x1bht2vh\",\n k8WAf4: \"x172mi11\",\n kg3NbH: \"x19pklni\",\n khDVqt: \"x126k92a\",\n $$css: true\n },\n incoming: {\n kSGwAc: \"xqcrz7y\",\n kqGeR4: \"x4cpyzu\",\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n outgoing: {\n kSGwAc: \"xpvyfi4\",\n kYm2EN: \"x62l8f0\",\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n variantDefault: {\n kWkggS: \"x13hkpcx\",\n kMwMTN: \"x1alews2\",\n $$css: true\n },\n outline: {\n kWkggS: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xmkeg23\",\n kMwMTN: \"x1alews2\",\n $$css: true\n }\n};\nexport type BubbleProps = ComponentProps<\"div\"> & {\n side?: \"incoming\" | \"outgoing\";\n variant?: \"default\" | \"outline\";\n xstyle?: stylex.StyleXStyles;\n};\nexport function Bubble(t0) {\n const $ = _c(13);\n let props;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n side: t1,\n variant: t2,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = t2;\n $[4] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n t2 = $[3];\n xstyle = $[4];\n }\n const side = t1 === undefined ? \"incoming\" : t1;\n const variant = t2 === undefined ? \"default\" : t2;\n let t3;\n if ($[5] !== side || $[6] !== variant || $[7] !== xstyle) {\n t3 = stylex.props(styles.root, styles[side], variant === \"default\" ? styles.variantDefault : styles[variant], xstyle);\n $[5] = side;\n $[6] = variant;\n $[7] = xstyle;\n $[8] = t3;\n } else {\n t3 = $[8];\n }\n const resolved = t3;\n let t4;\n if ($[9] !== props || $[10] !== resolved || $[11] !== side) {\n t4 = <div {...props} {...resolved} data-side={side} />;\n $[9] = props;\n $[10] = resolved;\n $[11] = side;\n $[12] = t4;\n } else {\n t4 = $[12];\n }\n return t4;\n}"],
5
- "mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,YAAY,YAAY;AAmFf;AAhFT,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAMO,SAAS,OAAO,IAAI;AACzB,QAAM,IAAI,GAAG,EAAE;AACf,MAAIA;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC,MAAM;AAAA,MACN,SAAS;AAAA,MACT;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,IAAAA,SAAQ,EAAE,CAAC;AACX,SAAK,EAAE,CAAC;AACR,SAAK,EAAE,CAAC;AACR,aAAS,EAAE,CAAC;AAAA,EACd;AACA,QAAM,OAAO,OAAO,SAAY,aAAa;AAC7C,QAAM,UAAU,OAAO,SAAY,YAAY;AAC/C,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ,EAAE,CAAC,MAAM,WAAW,EAAE,CAAC,MAAM,QAAQ;AACxD,SAAY,aAAM,OAAO,MAAM,OAAO,IAAI,GAAG,YAAY,YAAY,OAAO,iBAAiB,OAAO,OAAO,GAAG,MAAM;AACpH,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,WAAW;AACjB,MAAI;AACJ,MAAI,EAAE,CAAC,MAAMA,UAAS,EAAE,EAAE,MAAM,YAAY,EAAE,EAAE,MAAM,MAAM;AAC1D,SAAK,oBAAC,SAAK,GAAGA,QAAQ,GAAG,UAAU,aAAW,MAAM;AACpD,MAAE,CAAC,IAAIA;AACP,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
4
+ "sourcesContent": ["import { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst styles = {\n root: {\n kGuDYH: \"x99mhxu\",\n kLWn49: \"xi1fz51\",\n ks0D6T: \"x1ihlfi\",\n k8WAf4: \"x172mi11\",\n kg3NbH: \"x19pklni\",\n khDVqt: \"x126k92a\",\n $$css: true\n },\n alignStart: {\n kSGwAc: \"xqcrz7y\",\n kqGeR4: \"x4cpyzu\",\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n alignEnd: {\n kSGwAc: \"xpvyfi4\",\n kYm2EN: \"x62l8f0\",\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n default: {\n kWkggS: \"x13hkpcx\",\n kMwMTN: \"x1alews2\",\n $$css: true\n },\n primary: {\n kWkggS: \"x1fu17qy\",\n kMwMTN: \"xrbreni\",\n $$css: true\n },\n outline: {\n kVAM5u: \"x13xm7is\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1alews2\",\n $$css: true\n }\n};\nexport type BubbleAlign = \"start\" | \"end\";\nexport type BubbleVariant = \"default\" | \"primary\" | \"outline\";\nexport type BubbleProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & {\n align?: BubbleAlign;\n variant?: BubbleVariant;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Bubble({\n align = \"start\",\n variant = \"default\",\n xstyle,\n ...props\n}: BubbleProps) {\n return <div {...props} data-align={align} data-variant={variant} {...stylex.props(styles.root, align === \"start\" ? styles.alignStart : styles.alignEnd, styles[variant], xstyle)} />;\n}"],
5
+ "mappings": ";AACA,YAAY,YAAY;AAuDf;AArDT,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,YAAY;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAQO,SAAS,OAAO;AAAA,EACrB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV;AAAA,EACA,GAAGA;AACL,GAAgB;AACd,SAAO,oBAAC,SAAK,GAAGA,QAAO,cAAY,OAAO,gBAAc,SAAU,GAAU,aAAM,OAAO,MAAM,UAAU,UAAU,OAAO,aAAa,OAAO,UAAU,OAAO,OAAO,GAAG,MAAM,GAAG;AACpL;",
6
6
  "names": ["props"]
7
7
  }
@@ -1,14 +1,14 @@
1
1
  import * as stylex from "@stylexjs/stylex";
2
- import { type ComponentProps, type CSSProperties } from "react";
2
+ import { type ComponentProps } from "react";
3
3
  import { Separator } from "./separator";
4
4
  type StyleProps = {
5
- style?: CSSProperties;
6
5
  xstyle?: stylex.StyleXStyles;
7
6
  };
8
- export type ButtonGroupProps = ComponentProps<"div"> & StyleProps & {
7
+ /** Direct children must be Nuee buttons or components that forward xstyle. Fragments and native elements are not styled as group items. */
8
+ export type ButtonGroupProps = Omit<ComponentProps<"div">, "className" | "style"> & StyleProps & {
9
9
  orientation?: "horizontal" | "vertical";
10
10
  };
11
11
  export declare function ButtonGroup({ children, orientation, role, xstyle, ...props }: ButtonGroupProps): import("react").JSX.Element;
12
- export declare function ButtonGroupText({ xstyle, ...props }: ComponentProps<"span"> & StyleProps): import("react").JSX.Element;
13
- export declare function ButtonGroupSeparator({ orientation, xstyle, ...props }: ComponentProps<typeof Separator> & StyleProps): import("react").JSX.Element;
12
+ export declare function ButtonGroupText({ xstyle, ...props }: Omit<ComponentProps<"span">, "className" | "style"> & StyleProps): import("react").JSX.Element;
13
+ export declare function ButtonGroupSeparator({ orientation, xstyle, ...props }: Omit<ComponentProps<typeof Separator>, "className" | "style"> & StyleProps): import("react").JSX.Element;
14
14
  export {};
@@ -1,88 +1,12 @@
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";
1
+ "use client";
5
2
 
6
- // src/separator.tsx
3
+ // src/button-group.tsx
7
4
  import { c as _c } from "react/compiler-runtime";
8
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
9
5
  import * as stylex from "@stylexjs/stylex";
6
+ import { Children, Fragment, cloneElement, isValidElement } from "react";
7
+ import { Separator } from "./separator.js";
10
8
  import { jsx } from "react/jsx-runtime";
11
9
  var styles = {
12
- root: {
13
- kWkggS: "xoec9bc",
14
- kmuXW: "x2lah0s",
15
- $$css: true
16
- },
17
- horizontal: {
18
- kZKoxP: "x1c2adg6",
19
- kzqmXN: "xh8yej3",
20
- $$css: true
21
- },
22
- vertical: {
23
- kSGwAc: "xkh2ocl",
24
- kAzted: "x43ag4r",
25
- kzqmXN: "x1l4o4rh",
26
- $$css: true
27
- }
28
- };
29
- function Separator(t0) {
30
- const $ = _c(14);
31
- let props3;
32
- let t1;
33
- let t2;
34
- let xstyle;
35
- if ($[0] !== t0) {
36
- ({
37
- decorative: t1,
38
- orientation: t2,
39
- xstyle,
40
- ...props3
41
- } = t0);
42
- $[0] = t0;
43
- $[1] = props3;
44
- $[2] = t1;
45
- $[3] = t2;
46
- $[4] = xstyle;
47
- } else {
48
- props3 = $[1];
49
- t1 = $[2];
50
- t2 = $[3];
51
- xstyle = $[4];
52
- }
53
- const decorative = t1 === void 0 ? true : t1;
54
- const orientation = t2 === void 0 ? "horizontal" : t2;
55
- let t3;
56
- if ($[5] !== orientation || $[6] !== xstyle) {
57
- t3 = stylex.props(styles.root, styles[orientation], xstyle);
58
- $[5] = orientation;
59
- $[6] = xstyle;
60
- $[7] = t3;
61
- } else {
62
- t3 = $[7];
63
- }
64
- const stylexProps = t3;
65
- const t4 = decorative || void 0;
66
- const t5 = decorative ? "presentation" : void 0;
67
- let t6;
68
- if ($[8] !== orientation || $[9] !== props3 || $[10] !== stylexProps || $[11] !== t4 || $[12] !== t5) {
69
- t6 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props3, "aria-hidden": t4, orientation, role: t5, ...stylexProps });
70
- $[8] = orientation;
71
- $[9] = props3;
72
- $[10] = stylexProps;
73
- $[11] = t4;
74
- $[12] = t5;
75
- $[13] = t6;
76
- } else {
77
- t6 = $[13];
78
- }
79
- return t6;
80
- }
81
-
82
- // src/button-group.tsx
83
- import { radiusVars } from "@nuee/tokens/semantic.stylex";
84
- import { jsx as jsx2 } from "react/jsx-runtime";
85
- var styles2 = {
86
10
  root: {
87
11
  kGNEyG: "x1qjc9v5",
88
12
  k1xSpc: "x3nfvp2",
@@ -112,7 +36,26 @@ var styles2 = {
112
36
  keTefX: "x1lziwak",
113
37
  $$css: true
114
38
  },
39
+ horizontalOnlyItem: {
40
+ kaIpWk: "x7c24we",
41
+ $$css: true
42
+ },
43
+ horizontalFirstItemRadius: {
44
+ kqGeR4: "x4cpyzu",
45
+ kYm2EN: "xjppbhk",
46
+ kIxVMA: "x1nema14",
47
+ ksF3WI: "x1a2w583",
48
+ $$css: true
49
+ },
50
+ horizontalMiddleItem: {
51
+ kaIpWk: "x2u8bby",
52
+ $$css: true
53
+ },
115
54
  horizontalLastItem: {
55
+ kqGeR4: "xfrllxf",
56
+ kYm2EN: "x62l8f0",
57
+ kIxVMA: "x1ia1hqs",
58
+ ksF3WI: "x1qb8ewl",
116
59
  $$css: true
117
60
  },
118
61
  verticalItem: {
@@ -123,7 +66,26 @@ var styles2 = {
123
66
  keoZOQ: "xdj266r",
124
67
  $$css: true
125
68
  },
69
+ verticalOnlyItem: {
70
+ kaIpWk: "x7c24we",
71
+ $$css: true
72
+ },
73
+ verticalFirstItemRadius: {
74
+ kqGeR4: "xfrllxf",
75
+ kYm2EN: "xjppbhk",
76
+ kIxVMA: "x1nema14",
77
+ ksF3WI: "x1qb8ewl",
78
+ $$css: true
79
+ },
80
+ verticalMiddleItem: {
81
+ kaIpWk: "x2u8bby",
82
+ $$css: true
83
+ },
126
84
  verticalLastItem: {
85
+ kqGeR4: "x4cpyzu",
86
+ kYm2EN: "x62l8f0",
87
+ kIxVMA: "x1ia1hqs",
88
+ ksF3WI: "x1a2w583",
127
89
  $$css: true
128
90
  },
129
91
  text: {
@@ -150,30 +112,24 @@ var styles2 = {
150
112
  }
151
113
  };
152
114
  function isGroupItem(child) {
153
- return isValidElement(child) && child.type !== ButtonGroupSeparator;
115
+ return isValidElement(child) && typeof child.type !== "string" && child.type !== Fragment && child.type !== ButtonGroupSeparator;
154
116
  }
155
- function getItemBorderRadius(orientation, position, length) {
156
- const isFirst = position === 0;
157
- const isLast = position === length - 1;
117
+ function getItemPositionStyle(orientation, isFirst, isLast) {
158
118
  if (orientation === "horizontal") {
159
- return {
160
- borderBottomLeftRadius: isFirst ? radiusVars.sm : 0,
161
- borderBottomRightRadius: isLast ? radiusVars.sm : 0,
162
- borderTopLeftRadius: isFirst ? radiusVars.sm : 0,
163
- borderTopRightRadius: isLast ? radiusVars.sm : 0
164
- };
119
+ if (isFirst && isLast) return styles.horizontalOnlyItem;
120
+ if (isFirst) return styles.horizontalFirstItemRadius;
121
+ if (isLast) return styles.horizontalLastItem;
122
+ return styles.horizontalMiddleItem;
165
123
  }
166
- return {
167
- borderBottomLeftRadius: isLast ? radiusVars.sm : 0,
168
- borderBottomRightRadius: isLast ? radiusVars.sm : 0,
169
- borderTopLeftRadius: isFirst ? radiusVars.sm : 0,
170
- borderTopRightRadius: isFirst ? radiusVars.sm : 0
171
- };
124
+ if (isFirst && isLast) return styles.verticalOnlyItem;
125
+ if (isFirst) return styles.verticalFirstItemRadius;
126
+ if (isLast) return styles.verticalLastItem;
127
+ return styles.verticalMiddleItem;
172
128
  }
173
129
  function ButtonGroup(t0) {
174
- const $ = _c2(18);
130
+ const $ = _c(18);
175
131
  let children;
176
- let props3;
132
+ let props2;
177
133
  let role;
178
134
  let t1;
179
135
  let xstyle;
@@ -183,103 +139,101 @@ function ButtonGroup(t0) {
183
139
  orientation: t1,
184
140
  role,
185
141
  xstyle,
186
- ...props3
142
+ ...props2
187
143
  } = t0);
188
144
  $[0] = t0;
189
145
  $[1] = children;
190
- $[2] = props3;
146
+ $[2] = props2;
191
147
  $[3] = role;
192
148
  $[4] = t1;
193
149
  $[5] = xstyle;
194
150
  } else {
195
151
  children = $[1];
196
- props3 = $[2];
152
+ props2 = $[2];
197
153
  role = $[3];
198
154
  t1 = $[4];
199
155
  xstyle = $[5];
200
156
  }
201
157
  const orientation = t1 === void 0 ? "horizontal" : t1;
202
- let t2;
203
- if ($[6] !== orientation || $[7] !== xstyle) {
204
- t2 = stylex2.props(styles2.root, styles2[orientation], xstyle);
205
- $[6] = orientation;
206
- $[7] = xstyle;
207
- $[8] = t2;
208
- } else {
209
- t2 = $[8];
210
- }
211
- const stylexProps = t2;
212
- let t3;
213
- if ($[9] !== children || $[10] !== orientation) {
158
+ let content;
159
+ if ($[6] !== children || $[7] !== orientation) {
214
160
  const childItems = Children.toArray(children);
215
161
  const groupItems = childItems.filter(isGroupItem);
216
- t3 = childItems.map((child, childIndex) => {
162
+ let position = -1;
163
+ content = [];
164
+ for (const child of childItems) {
217
165
  if (!isGroupItem(child)) {
218
- return child;
166
+ content.push(child);
167
+ continue;
219
168
  }
220
- const position = childItems.slice(0, childIndex).filter(isGroupItem).length;
221
- const groupItem = child;
222
- const itemStyles = [styles2.item, styles2[`${orientation}Item`], position === 0 && styles2[`${orientation}FirstItem`], position === groupItems.length - 1 && styles2[`${orientation}LastItem`]];
223
- return cloneElement(groupItem, {
224
- style: {
225
- ...groupItem.props.style,
226
- ...getItemBorderRadius(orientation, position, groupItems.length)
227
- },
228
- xstyle: [...itemStyles, groupItem.props.xstyle]
229
- });
230
- });
231
- $[9] = children;
232
- $[10] = orientation;
169
+ position = position + 1;
170
+ const isFirst = position === 0;
171
+ const isLast = position === groupItems.length - 1;
172
+ const positionStyle = getItemPositionStyle(orientation, isFirst, isLast);
173
+ const itemStyles = [styles.item, styles[`${orientation}Item`], isFirst && styles[`${orientation}FirstItem`], positionStyle];
174
+ content.push(cloneElement(child, {
175
+ xstyle: [...itemStyles, child.props.xstyle]
176
+ }));
177
+ }
178
+ $[6] = children;
179
+ $[7] = orientation;
180
+ $[8] = content;
181
+ } else {
182
+ content = $[8];
183
+ }
184
+ const t2 = role ?? "group";
185
+ let t3;
186
+ if ($[9] !== orientation || $[10] !== xstyle) {
187
+ t3 = stylex.props(styles.root, styles[orientation], xstyle);
188
+ $[9] = orientation;
189
+ $[10] = xstyle;
233
190
  $[11] = t3;
234
191
  } else {
235
192
  t3 = $[11];
236
193
  }
237
- const content = t3;
238
- const t4 = role ?? "group";
239
- let t5;
240
- if ($[12] !== content || $[13] !== orientation || $[14] !== props3 || $[15] !== stylexProps || $[16] !== t4) {
241
- t5 = /* @__PURE__ */ jsx2("div", { ...props3, "data-orientation": orientation, role: t4, ...stylexProps, children: content });
194
+ let t4;
195
+ if ($[12] !== content || $[13] !== orientation || $[14] !== props2 || $[15] !== t2 || $[16] !== t3) {
196
+ t4 = /* @__PURE__ */ jsx("div", { ...props2, "data-orientation": orientation, role: t2, ...t3, children: content });
242
197
  $[12] = content;
243
198
  $[13] = orientation;
244
- $[14] = props3;
245
- $[15] = stylexProps;
246
- $[16] = t4;
247
- $[17] = t5;
199
+ $[14] = props2;
200
+ $[15] = t2;
201
+ $[16] = t3;
202
+ $[17] = t4;
248
203
  } else {
249
- t5 = $[17];
204
+ t4 = $[17];
250
205
  }
251
- return t5;
206
+ return t4;
252
207
  }
253
208
  function ButtonGroupText(t0) {
254
- const $ = _c2(8);
255
- let props3;
209
+ const $ = _c(8);
210
+ let props2;
256
211
  let xstyle;
257
212
  if ($[0] !== t0) {
258
213
  ({
259
214
  xstyle,
260
- ...props3
215
+ ...props2
261
216
  } = t0);
262
217
  $[0] = t0;
263
- $[1] = props3;
218
+ $[1] = props2;
264
219
  $[2] = xstyle;
265
220
  } else {
266
- props3 = $[1];
221
+ props2 = $[1];
267
222
  xstyle = $[2];
268
223
  }
269
224
  let t1;
270
225
  if ($[3] !== xstyle) {
271
- t1 = stylex2.props(styles2.text, xstyle);
226
+ t1 = stylex.props(styles.text, xstyle);
272
227
  $[3] = xstyle;
273
228
  $[4] = t1;
274
229
  } else {
275
230
  t1 = $[4];
276
231
  }
277
- const stylexProps = t1;
278
232
  let t2;
279
- if ($[5] !== props3 || $[6] !== stylexProps) {
280
- t2 = /* @__PURE__ */ jsx2("span", { ...props3, ...stylexProps });
281
- $[5] = props3;
282
- $[6] = stylexProps;
233
+ if ($[5] !== props2 || $[6] !== t1) {
234
+ t2 = /* @__PURE__ */ jsx("span", { ...props2, ...t1 });
235
+ $[5] = props2;
236
+ $[6] = t1;
283
237
  $[7] = t2;
284
238
  } else {
285
239
  t2 = $[7];
@@ -287,39 +241,39 @@ function ButtonGroupText(t0) {
287
241
  return t2;
288
242
  }
289
243
  function ButtonGroupSeparator(t0) {
290
- const $ = _c2(10);
291
- let props3;
244
+ const $ = _c(10);
245
+ let props2;
292
246
  let t1;
293
247
  let xstyle;
294
248
  if ($[0] !== t0) {
295
249
  ({
296
250
  orientation: t1,
297
251
  xstyle,
298
- ...props3
252
+ ...props2
299
253
  } = t0);
300
254
  $[0] = t0;
301
- $[1] = props3;
255
+ $[1] = props2;
302
256
  $[2] = t1;
303
257
  $[3] = xstyle;
304
258
  } else {
305
- props3 = $[1];
259
+ props2 = $[1];
306
260
  t1 = $[2];
307
261
  xstyle = $[3];
308
262
  }
309
263
  const orientation = t1 === void 0 ? "vertical" : t1;
310
264
  let t2;
311
265
  if ($[4] !== xstyle) {
312
- t2 = [styles2.separator, xstyle];
266
+ t2 = [styles.separator, xstyle];
313
267
  $[4] = xstyle;
314
268
  $[5] = t2;
315
269
  } else {
316
270
  t2 = $[5];
317
271
  }
318
272
  let t3;
319
- if ($[6] !== orientation || $[7] !== props3 || $[8] !== t2) {
320
- t3 = /* @__PURE__ */ jsx2(Separator, { ...props3, orientation, xstyle: t2 });
273
+ if ($[6] !== orientation || $[7] !== props2 || $[8] !== t2) {
274
+ t3 = /* @__PURE__ */ jsx(Separator, { ...props2, orientation, xstyle: t2 });
321
275
  $[6] = orientation;
322
- $[7] = props3;
276
+ $[7] = props2;
323
277
  $[8] = t2;
324
278
  $[9] = t3;
325
279
  } else {
@@ -1,7 +1,7 @@
1
1
  {
2
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 \"@nuee/tokens/semantic.stylex\";\nimport { colorVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.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: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1ry1pnm\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x1ek7y2g\",\n kg3NbH: \"xdaxh69\",\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(18);\n let children;\n let props;\n let role;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n children,\n orientation: t1,\n role,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = props;\n $[3] = role;\n $[4] = t1;\n $[5] = xstyle;\n } else {\n children = $[1];\n props = $[2];\n role = $[3];\n t1 = $[4];\n xstyle = $[5];\n }\n const orientation = t1 === undefined ? \"horizontal\" : t1;\n let t2;\n if ($[6] !== orientation || $[7] !== xstyle) {\n t2 = stylex.props(styles.root, styles[orientation], xstyle);\n $[6] = orientation;\n $[7] = xstyle;\n $[8] = t2;\n } else {\n t2 = $[8];\n }\n const stylexProps = t2;\n let t3;\n if ($[9] !== children || $[10] !== 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 $[9] = children;\n $[10] = orientation;\n $[11] = t3;\n } else {\n t3 = $[11];\n }\n const content = t3;\n const t4 = role ?? \"group\";\n let t5;\n if ($[12] !== content || $[13] !== orientation || $[14] !== props || $[15] !== stylexProps || $[16] !== t4) {\n t5 = <div {...props} data-orientation={orientation} role={t4} {...stylexProps}>{content}</div>;\n $[12] = content;\n $[13] = orientation;\n $[14] = props;\n $[15] = stylexProps;\n $[16] = t4;\n $[17] = t5;\n } else {\n t5 = $[17];\n }\n return t5;\n}\nexport function ButtonGroupText(t0) {\n const $ = _c(8);\n let props;\n let xstyle;\n if ($[0] !== t0) {\n ({\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = xstyle;\n } else {\n props = $[1];\n xstyle = $[2];\n }\n let t1;\n if ($[3] !== xstyle) {\n t1 = stylex.props(styles.text, xstyle);\n $[3] = xstyle;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n const stylexProps = t1;\n let t2;\n if ($[5] !== props || $[6] !== stylexProps) {\n t2 = <span {...props} {...stylexProps} />;\n $[5] = props;\n $[6] = stylexProps;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n return t2;\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 \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kWkggS: \"xoec9bc\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n horizontal: {\n kZKoxP: \"x1c2adg6\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n vertical: {\n kSGwAc: \"xkh2ocl\",\n kAzted: \"x43ag4r\",\n kzqmXN: \"x1l4o4rh\",\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(14);\n let props;\n let t1;\n let t2;\n let xstyle;\n if ($[0] !== t0) {\n ({\n decorative: t1,\n orientation: t2,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = t2;\n $[4] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n t2 = $[3];\n xstyle = $[4];\n }\n const decorative = t1 === undefined ? true : t1;\n const orientation = t2 === undefined ? \"horizontal\" : t2;\n let t3;\n if ($[5] !== orientation || $[6] !== xstyle) {\n t3 = stylex.props(styles.root, styles[orientation], xstyle);\n $[5] = orientation;\n $[6] = xstyle;\n $[7] = t3;\n } else {\n t3 = $[7];\n }\n const stylexProps = t3;\n const t4 = decorative || undefined;\n const t5 = decorative ? \"presentation\" : undefined;\n let t6;\n if ($[8] !== orientation || $[9] !== props || $[10] !== stylexProps || $[11] !== t4 || $[12] !== t5) {\n t6 = <SeparatorPrimitive {...props} aria-hidden={t4} orientation={orientation} role={t5} {...stylexProps} />;\n $[8] = orientation;\n $[9] = props;\n $[10] = stylexProps;\n $[11] = t4;\n $[12] = t5;\n $[13] = t6;\n } else {\n t6 = $[13];\n }\n return t6;\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,YAAY;AAiEf;AA9DT,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,YAAY;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAKO,SAAS,UAAU,IAAI;AAC5B,QAAM,IAAI,GAAG,EAAE;AACf,MAAIC;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC,YAAY;AAAA,MACZ,aAAa;AAAA,MACb;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,I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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"]
3
+ "sources": ["../src/button-group.tsx"],
4
+ "sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { Children, Fragment, cloneElement, isValidElement, type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport { Separator } from \"./separator\";\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 horizontalOnlyItem: {\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n horizontalFirstItemRadius: {\n kqGeR4: \"x4cpyzu\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"x1nema14\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n },\n horizontalMiddleItem: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n },\n horizontalLastItem: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"x62l8f0\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1qb8ewl\",\n $$css: true\n },\n verticalItem: {\n keoZOQ: \"x1y332i5\",\n $$css: true\n },\n verticalFirstItem: {\n keoZOQ: \"xdj266r\",\n $$css: true\n },\n verticalOnlyItem: {\n kaIpWk: \"x7c24we\",\n $$css: true\n },\n verticalFirstItemRadius: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"x1nema14\",\n ksF3WI: \"x1qb8ewl\",\n $$css: true\n },\n verticalMiddleItem: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n },\n verticalLastItem: {\n kqGeR4: \"x4cpyzu\",\n kYm2EN: \"x62l8f0\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1ry1pnm\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x99mhxu\",\n k63SB2: \"x1v899x5\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x1ek7y2g\",\n kg3NbH: \"xdaxh69\",\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 xstyle?: stylex.StyleXStyles;\n};\ntype GroupItem = ReactElement<StyleProps>;\nfunction isGroupItem(child: ReactNode): child is GroupItem {\n return isValidElement(child) && typeof child.type !== \"string\" && child.type !== Fragment && child.type !== ButtonGroupSeparator;\n}\nfunction getItemPositionStyle(orientation: \"horizontal\" | \"vertical\", isFirst: boolean, isLast: boolean) {\n if (orientation === \"horizontal\") {\n if (isFirst && isLast) return styles.horizontalOnlyItem;\n if (isFirst) return styles.horizontalFirstItemRadius;\n if (isLast) return styles.horizontalLastItem;\n return styles.horizontalMiddleItem;\n }\n if (isFirst && isLast) return styles.verticalOnlyItem;\n if (isFirst) return styles.verticalFirstItemRadius;\n if (isLast) return styles.verticalLastItem;\n return styles.verticalMiddleItem;\n}\n\n/** Direct children must be Nuee buttons or components that forward xstyle. Fragments and native elements are not styled as group items. */\nexport type ButtonGroupProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & StyleProps & {\n orientation?: \"horizontal\" | \"vertical\";\n};\nexport function ButtonGroup(t0) {\n const $ = _c(18);\n let children;\n let props;\n let role;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n children,\n orientation: t1,\n role,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = props;\n $[3] = role;\n $[4] = t1;\n $[5] = xstyle;\n } else {\n children = $[1];\n props = $[2];\n role = $[3];\n t1 = $[4];\n xstyle = $[5];\n }\n const orientation = t1 === undefined ? \"horizontal\" : t1;\n let content;\n if ($[6] !== children || $[7] !== orientation) {\n const childItems = Children.toArray(children);\n const groupItems = childItems.filter(isGroupItem);\n let position = -1;\n content = [];\n for (const child of childItems) {\n if (!isGroupItem(child)) {\n content.push(child);\n continue;\n }\n position = position + 1;\n const isFirst = position === 0;\n const isLast = position === groupItems.length - 1;\n const positionStyle = getItemPositionStyle(orientation, isFirst, isLast);\n const itemStyles = [styles.item, styles[`${orientation}Item`], isFirst && styles[`${orientation}FirstItem`], positionStyle];\n content.push(cloneElement(child, {\n xstyle: [...itemStyles, child.props.xstyle]\n }));\n }\n $[6] = children;\n $[7] = orientation;\n $[8] = content;\n } else {\n content = $[8];\n }\n const t2 = role ?? \"group\";\n let t3;\n if ($[9] !== orientation || $[10] !== xstyle) {\n t3 = stylex.props(styles.root, styles[orientation], xstyle);\n $[9] = orientation;\n $[10] = xstyle;\n $[11] = t3;\n } else {\n t3 = $[11];\n }\n let t4;\n if ($[12] !== content || $[13] !== orientation || $[14] !== props || $[15] !== t2 || $[16] !== t3) {\n t4 = <div {...props} data-orientation={orientation} role={t2} {...t3}>{content}</div>;\n $[12] = content;\n $[13] = orientation;\n $[14] = props;\n $[15] = t2;\n $[16] = t3;\n $[17] = t4;\n } else {\n t4 = $[17];\n }\n return t4;\n}\nexport function ButtonGroupText(t0) {\n const $ = _c(8);\n let props;\n let xstyle;\n if ($[0] !== t0) {\n ({\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = xstyle;\n } else {\n props = $[1];\n xstyle = $[2];\n }\n let t1;\n if ($[3] !== xstyle) {\n t1 = stylex.props(styles.text, xstyle);\n $[3] = xstyle;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n let t2;\n if ($[5] !== props || $[6] !== t1) {\n t2 = <span {...props} {...t1} />;\n $[5] = props;\n $[6] = t1;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n return t2;\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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