@nuee/ui 0.4.0 → 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
@@ -1,7 +1,7 @@
1
1
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
2
2
  import * as stylex from "@stylexjs/stylex";
3
3
  import type { ComponentProps } from "react";
4
- export type SeparatorProps = ComponentProps<typeof SeparatorPrimitive> & {
4
+ export type SeparatorProps = Omit<ComponentProps<typeof SeparatorPrimitive>, "className" | "style"> & {
5
5
  decorative?: boolean;
6
6
  xstyle?: stylex.StyleXStyles;
7
7
  };
package/dist/separator.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // src/separator.tsx
2
4
  import { c as _c } from "react/compiler-runtime";
3
5
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
@@ -47,24 +49,23 @@ function Separator(t0) {
47
49
  }
48
50
  const decorative = t1 === void 0 ? true : t1;
49
51
  const orientation = t2 === void 0 ? "horizontal" : t2;
50
- let t3;
52
+ const t3 = decorative || void 0;
53
+ const t4 = decorative ? "presentation" : void 0;
54
+ let t5;
51
55
  if ($[5] !== orientation || $[6] !== xstyle) {
52
- t3 = stylex.props(styles.root, styles[orientation], xstyle);
56
+ t5 = stylex.props(styles.root, styles[orientation], xstyle);
53
57
  $[5] = orientation;
54
58
  $[6] = xstyle;
55
- $[7] = t3;
59
+ $[7] = t5;
56
60
  } else {
57
- t3 = $[7];
61
+ t5 = $[7];
58
62
  }
59
- const stylexProps = t3;
60
- const t4 = decorative || void 0;
61
- const t5 = decorative ? "presentation" : void 0;
62
63
  let t6;
63
- if ($[8] !== orientation || $[9] !== props2 || $[10] !== stylexProps || $[11] !== t4 || $[12] !== t5) {
64
- t6 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props2, "aria-hidden": t4, orientation, role: t5, ...stylexProps });
64
+ if ($[8] !== orientation || $[9] !== props2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t5) {
65
+ t6 = /* @__PURE__ */ jsx(SeparatorPrimitive, { ...props2, "aria-hidden": t3, orientation, role: t4, ...t5 });
65
66
  $[8] = orientation;
66
67
  $[9] = props2;
67
- $[10] = stylexProps;
68
+ $[10] = t3;
68
69
  $[11] = t4;
69
70
  $[12] = t5;
70
71
  $[13] = t6;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/separator.tsx"],
4
- "sourcesContent": ["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;\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,QAAM,cAAc;AACpB,QAAM,KAAK,cAAc;AACzB,QAAM,KAAK,aAAa,iBAAiB;AACzC,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,eAAe,EAAE,CAAC,MAAMA,UAAS,EAAE,EAAE,MAAM,eAAe,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,IAAI;AACnG,SAAK,oBAAC,sBAAoB,GAAGA,QAAO,eAAa,IAAI,aAA0B,MAAM,IAAK,GAAG,aAAa;AAC1G,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,EAAE,IAAI;AACR,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": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Separator as SeparatorPrimitive } from \"@base-ui/react/separator\";\nimport { colorVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\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 = Omit<ComponentProps<typeof SeparatorPrimitive>, \"className\" | \"style\"> & {\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 const t3 = decorative || undefined;\n const t4 = decorative ? \"presentation\" : undefined;\n let t5;\n if ($[5] !== orientation || $[6] !== xstyle) {\n t5 = stylex.props(styles.root, styles[orientation], xstyle);\n $[5] = orientation;\n $[6] = xstyle;\n $[7] = t5;\n } else {\n t5 = $[7];\n }\n let t6;\n if ($[8] !== orientation || $[9] !== props || $[10] !== t3 || $[11] !== t4 || $[12] !== t5) {\n t6 = <SeparatorPrimitive {...props} aria-hidden={t3} orientation={orientation} role={t4} {...t5} />;\n $[8] = orientation;\n $[9] = props;\n $[10] = t3;\n $[11] = t4;\n $[12] = t5;\n $[13] = t6;\n } else {\n t6 = $[13];\n }\n return t6;\n}"],
5
+ "mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,aAAa,0BAA0B;AAEhD,YAAY,YAAY;AA+Df;AA7DT,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,MAAIA;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,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,aAAa,OAAO,SAAY,OAAO;AAC7C,QAAM,cAAc,OAAO,SAAY,eAAe;AACtD,QAAM,KAAK,cAAc;AACzB,QAAM,KAAK,aAAa,iBAAiB;AACzC,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,eAAe,EAAE,CAAC,MAAM,QAAQ;AAC3C,SAAY,aAAM,OAAO,MAAM,OAAO,WAAW,GAAG,MAAM;AAC1D,MAAE,CAAC,IAAI;AACP,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,MAAMA,UAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,IAAI;AAC1F,SAAK,oBAAC,sBAAoB,GAAGA,QAAO,eAAa,IAAI,aAA0B,MAAM,IAAK,GAAG,IAAI;AACjG,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
6
6
  "names": ["props"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as stylex from "@stylexjs/stylex";
2
2
  import type { ComponentProps } from "react";
3
- export type SkeletonProps = ComponentProps<"div"> & {
3
+ export type SkeletonProps = Omit<ComponentProps<"div">, "className" | "style"> & {
4
4
  xstyle?: stylex.StyleXStyles;
5
5
  };
6
6
  export declare function Skeleton({ xstyle, ...props }: SkeletonProps): import("react").JSX.Element;
package/dist/skeleton.js CHANGED
@@ -1,5 +1,4 @@
1
1
  // src/skeleton.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 = {
@@ -8,47 +7,17 @@ var styles = {
8
7
  ko0y90: "xa4qsjk",
9
8
  kKVMdj: "xcx56e2",
10
9
  kyAemX: "x4hg4is",
11
- kWkggS: "x13hkpcx",
10
+ kWkggS: "xivdwog",
12
11
  kaIpWk: "x7c24we",
13
12
  kjO2d4: "x1aquc0h",
14
13
  $$css: true
15
14
  }
16
15
  };
17
- function Skeleton(t0) {
18
- const $ = _c(8);
19
- let props2;
20
- let xstyle;
21
- if ($[0] !== t0) {
22
- ({
23
- xstyle,
24
- ...props2
25
- } = t0);
26
- $[0] = t0;
27
- $[1] = props2;
28
- $[2] = xstyle;
29
- } else {
30
- props2 = $[1];
31
- xstyle = $[2];
32
- }
33
- let t1;
34
- if ($[3] !== xstyle) {
35
- t1 = stylex.props(styles.root, xstyle);
36
- $[3] = xstyle;
37
- $[4] = t1;
38
- } else {
39
- t1 = $[4];
40
- }
41
- const stylexProps = t1;
42
- let t2;
43
- if ($[5] !== props2 || $[6] !== stylexProps) {
44
- t2 = /* @__PURE__ */ jsx("div", { ...props2, "aria-hidden": "true", ...stylexProps });
45
- $[5] = props2;
46
- $[6] = stylexProps;
47
- $[7] = t2;
48
- } else {
49
- t2 = $[7];
50
- }
51
- return t2;
16
+ function Skeleton({
17
+ xstyle,
18
+ ...props2
19
+ }) {
20
+ return /* @__PURE__ */ jsx("div", { ...props2, "aria-hidden": "true", ...stylex.props(styles.root, xstyle) });
52
21
  }
53
22
  export {
54
23
  Skeleton
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/skeleton.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 } from \"@nuee/tokens/semantic.stylex\";\nconst pulse = \"x13kz0yu-B\";\nconst styles = {\n root: {\n k44tkh: \"xmg6eyc\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xcx56e2\",\n kyAemX: \"x4hg4is\",\n kWkggS: \"x13hkpcx\",\n kaIpWk: \"x7c24we\",\n kjO2d4: \"x1aquc0h\",\n $$css: true\n }\n};\nexport type SkeletonProps = ComponentProps<\"div\"> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Skeleton(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.root, 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 = <div {...props} aria-hidden=\"true\" {...stylexProps} />;\n $[5] = props;\n $[6] = stylexProps;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n return t2;\n}"],
5
- "mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,YAAY,YAAY;AA8Cf;AA1CT,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,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,SAAS,SAAS,IAAI;AAC3B,QAAM,IAAI,GAAG,CAAC;AACd,MAAIA;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,IAAAA,SAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ;AACnB,SAAY,aAAM,OAAO,MAAM,MAAM;AACrC,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,cAAc;AACpB,MAAI;AACJ,MAAI,EAAE,CAAC,MAAMA,UAAS,EAAE,CAAC,MAAM,aAAa;AAC1C,SAAK,oBAAC,SAAK,GAAGA,QAAO,eAAY,QAAQ,GAAG,aAAa;AACzD,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,SAAO;AACT;",
4
+ "sourcesContent": ["import { colorVars, radiusVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst pulse = \"x13kz0yu-B\";\nconst styles = {\n root: {\n k44tkh: \"xmg6eyc\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xcx56e2\",\n kyAemX: \"x4hg4is\",\n kWkggS: \"xivdwog\",\n kaIpWk: \"x7c24we\",\n kjO2d4: \"x1aquc0h\",\n $$css: true\n }\n};\nexport type SkeletonProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function Skeleton({\n xstyle,\n ...props\n}: SkeletonProps) {\n return <div {...props} aria-hidden=\"true\" {...stylex.props(styles.root, xstyle)} />;\n}"],
5
+ "mappings": ";AACA,YAAY,YAAY;AAsBf;AAnBT,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,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAIO,SAAS,SAAS;AAAA,EACvB;AAAA,EACA,GAAGA;AACL,GAAkB;AAChB,SAAO,oBAAC,SAAK,GAAGA,QAAO,eAAY,QAAQ,GAAU,aAAM,OAAO,MAAM,MAAM,GAAG;AACnF;",
6
6
  "names": ["props"]
7
7
  }
package/dist/slider.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Slider as SliderPrimitive } from "@base-ui/react/slider";
2
- import * as stylex from "@stylexjs/stylex";
3
2
  import type { ComponentProps } from "react";
4
- export type SliderProps = ComponentProps<typeof SliderPrimitive.Root> & {
3
+ import type { ControlLayoutStyles } from "./control-layout";
4
+ export type SliderProps = Omit<ComponentProps<typeof SliderPrimitive.Root>, "className" | "style"> & {
5
5
  /** Returns an accessible name for each thumb in a range slider. */
6
6
  getAriaLabel?: (index: number) => string;
7
- xstyle?: stylex.StyleXStyles;
7
+ xstyle?: ControlLayoutStyles;
8
8
  };
9
9
  export declare function Slider({ defaultValue, getAriaLabel, value, xstyle, ...props }: SliderProps): import("react").JSX.Element;
package/dist/slider.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // src/slider.tsx
2
4
  import { c as _c } from "react/compiler-runtime";
3
5
  import { Slider as SliderPrimitive } from "@base-ui/react/slider";
@@ -6,12 +8,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
8
  var styles = {
7
9
  root: {
8
10
  kSiTet: "x1hc1fzr xfz0snt",
11
+ kIyJzY: "xdshaxz",
12
+ k1ekBW: "x19991ni",
13
+ kAMwcw: "xscx6xn",
9
14
  kzqmXN: "xh8yej3",
10
15
  $$css: true
11
16
  }
12
17
  };
13
18
  function Slider(t0) {
14
- const $ = _c(27);
19
+ const $ = _c(23);
15
20
  let defaultValue;
16
21
  let getAriaLabel;
17
22
  let props2;
@@ -49,56 +54,42 @@ function Slider(t0) {
49
54
  t1 = $[7];
50
55
  }
51
56
  const stylexProps = t1;
52
- let t2;
53
- if ($[8] !== stylexProps.className) {
54
- t2 = () => stylexProps.className;
55
- $[8] = stylexProps.className;
56
- $[9] = t2;
57
- } else {
58
- t2 = $[9];
59
- }
60
- let t3;
61
- if ($[10] !== stylexProps.style) {
62
- t3 = () => stylexProps.style;
63
- $[10] = stylexProps.style;
64
- $[11] = t3;
65
- } else {
66
- t3 = $[11];
67
- }
57
+ const t2 = stylexProps.className;
58
+ const t3 = stylexProps.style;
68
59
  let t4;
69
- if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
60
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
70
61
  t4 = {
71
62
  className: "x6s0dn4 x78zum5 xqq8mc5 x1n2onr6 x5ve5x3 xh8yej3"
72
63
  };
73
- $[12] = t4;
64
+ $[8] = t4;
74
65
  } else {
75
- t4 = $[12];
66
+ t4 = $[8];
76
67
  }
77
68
  let t5;
78
- if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
69
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
79
70
  t5 = {
80
- className: "x13hkpcx x9gkxt8 x4j2xbe xb3r6kr xh8yej3"
71
+ className: "x13hkpcx x9gkxt8 x1w91hgg xb3r6kr xh8yej3"
81
72
  };
82
- $[13] = t5;
73
+ $[9] = t5;
83
74
  } else {
84
- t5 = $[13];
75
+ t5 = $[9];
85
76
  }
86
77
  let t6;
87
- if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
78
+ if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
88
79
  t6 = /* @__PURE__ */ jsx(SliderPrimitive.Track, { ...t5, children: /* @__PURE__ */ jsx(SliderPrimitive.Indicator, { className: "x92qhq x9gkxt8 x5yr21d" }) });
89
- $[14] = t6;
80
+ $[10] = t6;
90
81
  } else {
91
- t6 = $[14];
82
+ t6 = $[10];
92
83
  }
93
84
  let t7;
94
- if ($[15] !== getAriaLabel || $[16] !== thumbCount) {
85
+ if ($[11] !== getAriaLabel || $[12] !== thumbCount) {
95
86
  let t82;
96
- if ($[18] !== getAriaLabel) {
97
- t82 = (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { getAriaLabel, index, className: "x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1 xmll18r x1a2a7pz xwqq7k2 x7yqiub xzvmsi2 x9v5kkp x11ci167" }, index);
98
- $[18] = getAriaLabel;
99
- $[19] = t82;
87
+ if ($[14] !== getAriaLabel) {
88
+ t82 = (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { getAriaLabel, index, className: "x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1 xy4d3ni x1a2a7pz x1mu33zv x7yqiub xzvmsi2 x9v5kkp x11ci167" }, index);
89
+ $[14] = getAriaLabel;
90
+ $[15] = t82;
100
91
  } else {
101
- t82 = $[19];
92
+ t82 = $[15];
102
93
  }
103
94
  t7 = /* @__PURE__ */ jsxs(SliderPrimitive.Control, { ...t4, children: [
104
95
  t6,
@@ -106,24 +97,24 @@ function Slider(t0) {
106
97
  length: thumbCount
107
98
  }, t82)
108
99
  ] });
109
- $[15] = getAriaLabel;
110
- $[16] = thumbCount;
111
- $[17] = t7;
100
+ $[11] = getAriaLabel;
101
+ $[12] = thumbCount;
102
+ $[13] = t7;
112
103
  } else {
113
- t7 = $[17];
104
+ t7 = $[13];
114
105
  }
115
106
  let t8;
116
- if ($[20] !== defaultValue || $[21] !== props2 || $[22] !== t2 || $[23] !== t3 || $[24] !== t7 || $[25] !== value) {
107
+ if ($[16] !== defaultValue || $[17] !== props2 || $[18] !== stylexProps.className || $[19] !== stylexProps.style || $[20] !== t7 || $[21] !== value) {
117
108
  t8 = /* @__PURE__ */ jsx(SliderPrimitive.Root, { ...props2, defaultValue, value, className: t2, style: t3, children: t7 });
118
- $[20] = defaultValue;
119
- $[21] = props2;
120
- $[22] = t2;
121
- $[23] = t3;
122
- $[24] = t7;
123
- $[25] = value;
124
- $[26] = t8;
109
+ $[16] = defaultValue;
110
+ $[17] = props2;
111
+ $[18] = stylexProps.className;
112
+ $[19] = stylexProps.style;
113
+ $[20] = t7;
114
+ $[21] = value;
115
+ $[22] = t8;
125
116
  } else {
126
- t8 = $[26];
117
+ t8 = $[22];
127
118
  }
128
119
  return t8;
129
120
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/slider.tsx"],
4
- "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { Slider as SliderPrimitive } from \"@base-ui/react/slider\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { colorVars, opacityVars, radiusVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nconst styles = {\n root: {\n kSiTet: \"x1hc1fzr xfz0snt\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\nexport type SliderProps = ComponentProps<typeof SliderPrimitive.Root> & {\n /** Returns an accessible name for each thumb in a range slider. */\n getAriaLabel?: (index: number) => string;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Slider(t0) {\n const $ = _c(27);\n let defaultValue;\n let getAriaLabel;\n let props;\n let value;\n let xstyle;\n if ($[0] !== t0) {\n ({\n defaultValue,\n getAriaLabel,\n value,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = defaultValue;\n $[2] = getAriaLabel;\n $[3] = props;\n $[4] = value;\n $[5] = xstyle;\n } else {\n defaultValue = $[1];\n getAriaLabel = $[2];\n props = $[3];\n value = $[4];\n xstyle = $[5];\n }\n const currentValue = value ?? defaultValue;\n const thumbCount = Array.isArray(currentValue) ? currentValue.length : 1;\n let t1;\n if ($[6] !== xstyle) {\n t1 = stylex.props(styles.root, xstyle);\n $[6] = xstyle;\n $[7] = t1;\n } else {\n t1 = $[7];\n }\n const stylexProps = t1;\n let t2;\n if ($[8] !== stylexProps.className) {\n t2 = () => stylexProps.className;\n $[8] = stylexProps.className;\n $[9] = t2;\n } else {\n t2 = $[9];\n }\n let t3;\n if ($[10] !== stylexProps.style) {\n t3 = () => stylexProps.style;\n $[10] = stylexProps.style;\n $[11] = t3;\n } else {\n t3 = $[11];\n }\n let t4;\n if ($[12] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t4 = {\n className: \"x6s0dn4 x78zum5 xqq8mc5 x1n2onr6 x5ve5x3 xh8yej3\"\n };\n $[12] = t4;\n } else {\n t4 = $[12];\n }\n let t5;\n if ($[13] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t5 = {\n className: \"x13hkpcx x9gkxt8 x4j2xbe xb3r6kr xh8yej3\"\n };\n $[13] = t5;\n } else {\n t5 = $[13];\n }\n let t6;\n if ($[14] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t6 = <SliderPrimitive.Track {...t5}><SliderPrimitive.Indicator className=\"x92qhq x9gkxt8 x5yr21d\" /></SliderPrimitive.Track>;\n $[14] = t6;\n } else {\n t6 = $[14];\n }\n let t7;\n if ($[15] !== getAriaLabel || $[16] !== thumbCount) {\n let t8;\n if ($[18] !== getAriaLabel) {\n t8 = (_, index) => <SliderPrimitive.Thumb getAriaLabel={getAriaLabel} index={index} key={index} className=\"x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1 xmll18r x1a2a7pz xwqq7k2 x7yqiub xzvmsi2 x9v5kkp x11ci167\" />;\n $[18] = getAriaLabel;\n $[19] = t8;\n } else {\n t8 = $[19];\n }\n t7 = <SliderPrimitive.Control {...t4}>{t6}{Array.from({\n length: thumbCount\n }, t8)}</SliderPrimitive.Control>;\n $[15] = getAriaLabel;\n $[16] = thumbCount;\n $[17] = t7;\n } else {\n t7 = $[17];\n }\n let t8;\n if ($[20] !== defaultValue || $[21] !== props || $[22] !== t2 || $[23] !== t3 || $[24] !== t7 || $[25] !== value) {\n t8 = <SliderPrimitive.Root {...props} defaultValue={defaultValue} value={value} className={t2} style={t3}>{t7}</SliderPrimitive.Root>;\n $[20] = defaultValue;\n $[21] = props;\n $[22] = t2;\n $[23] = t3;\n $[24] = t7;\n $[25] = value;\n $[26] = t8;\n } else {\n t8 = $[26];\n }\n return t8;\n}"],
5
- "mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,SAAS,UAAU,uBAAuB;AAC1C,YAAY,YAAY;AA0FgB,cAe/B,YAf+B;AAvFxC,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAMO,SAAS,OAAO,IAAI;AACzB,QAAM,IAAI,GAAG,EAAE;AACf,MAAI;AACJ,MAAI;AACJ,MAAIA;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,mBAAe,EAAE,CAAC;AAClB,mBAAe,EAAE,CAAC;AAClB,IAAAA,SAAQ,EAAE,CAAC;AACX,YAAQ,EAAE,CAAC;AACX,aAAS,EAAE,CAAC;AAAA,EACd;AACA,QAAM,eAAe,SAAS;AAC9B,QAAM,aAAa,MAAM,QAAQ,YAAY,IAAI,aAAa,SAAS;AACvE,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ;AACnB,SAAY,aAAM,OAAO,MAAM,MAAM;AACrC,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,cAAc;AACpB,MAAI;AACJ,MAAI,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A,IACV,OAAO;AACL,MAAAA,MAAK,EAAE,EAAE;AAAA,IACX;AACA,SAAK,qBAAC,gBAAgB,SAAhB,EAAyB,GAAG,IAAK;AAAA;AAAA,MAAI,MAAM,KAAK;AAAA,QAClD,QAAQ;AAAA,MACV,GAAGA,GAAE;AAAA,OAAE;AACT,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,gBAAgB,EAAE,EAAE,MAAMD,UAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,OAAO;AAChH,SAAK,oBAAC,gBAAgB,MAAhB,EAAsB,GAAGA,QAAO,cAA4B,OAAc,WAAW,IAAI,OAAO,IAAK,cAAG;AAC9G,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAIA;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,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": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Slider as SliderPrimitive } from \"@base-ui/react/slider\";\nimport { colorVars, motionVars, opacityVars, radiusVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlLayoutStyles } from \"./control-layout\";\nconst styles = {\n root: {\n kSiTet: \"x1hc1fzr xfz0snt\",\n kIyJzY: \"xdshaxz\",\n k1ekBW: \"x19991ni\",\n kAMwcw: \"xscx6xn\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n }\n};\nexport type SliderProps = Omit<ComponentProps<typeof SliderPrimitive.Root>, \"className\" | \"style\"> & {\n /** Returns an accessible name for each thumb in a range slider. */\n getAriaLabel?: (index: number) => string;\n xstyle?: ControlLayoutStyles;\n};\nexport function Slider(t0) {\n const $ = _c(23);\n let defaultValue;\n let getAriaLabel;\n let props;\n let value;\n let xstyle;\n if ($[0] !== t0) {\n ({\n defaultValue,\n getAriaLabel,\n value,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = defaultValue;\n $[2] = getAriaLabel;\n $[3] = props;\n $[4] = value;\n $[5] = xstyle;\n } else {\n defaultValue = $[1];\n getAriaLabel = $[2];\n props = $[3];\n value = $[4];\n xstyle = $[5];\n }\n const currentValue = value ?? defaultValue;\n const thumbCount = Array.isArray(currentValue) ? currentValue.length : 1;\n let t1;\n if ($[6] !== xstyle) {\n t1 = stylex.props(styles.root, xstyle);\n $[6] = xstyle;\n $[7] = t1;\n } else {\n t1 = $[7];\n }\n const stylexProps = t1;\n const t2 = stylexProps.className;\n const t3 = stylexProps.style;\n let t4;\n if ($[8] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t4 = {\n className: \"x6s0dn4 x78zum5 xqq8mc5 x1n2onr6 x5ve5x3 xh8yej3\"\n };\n $[8] = t4;\n } else {\n t4 = $[8];\n }\n let t5;\n if ($[9] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t5 = {\n className: \"x13hkpcx x9gkxt8 x1w91hgg xb3r6kr xh8yej3\"\n };\n $[9] = t5;\n } else {\n t5 = $[9];\n }\n let t6;\n if ($[10] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t6 = <SliderPrimitive.Track {...t5}><SliderPrimitive.Indicator className=\"x92qhq x9gkxt8 x5yr21d\" /></SliderPrimitive.Track>;\n $[10] = t6;\n } else {\n t6 = $[10];\n }\n let t7;\n if ($[11] !== getAriaLabel || $[12] !== thumbCount) {\n let t8;\n if ($[14] !== getAriaLabel) {\n t8 = (_, index) => <SliderPrimitive.Thumb getAriaLabel={getAriaLabel} index={index} key={index} className=\"x8m6yc2 x1bpblyy x9gkxt8 x1y0btm7 xzgztj1 xy4d3ni x1a2a7pz x1mu33zv x7yqiub xzvmsi2 x9v5kkp x11ci167\" />;\n $[14] = getAriaLabel;\n $[15] = t8;\n } else {\n t8 = $[15];\n }\n t7 = <SliderPrimitive.Control {...t4}>{t6}{Array.from({\n length: thumbCount\n }, t8)}</SliderPrimitive.Control>;\n $[11] = getAriaLabel;\n $[12] = thumbCount;\n $[13] = t7;\n } else {\n t7 = $[13];\n }\n let t8;\n if ($[16] !== defaultValue || $[17] !== props || $[18] !== stylexProps.className || $[19] !== stylexProps.style || $[20] !== t7 || $[21] !== value) {\n t8 = <SliderPrimitive.Root {...props} defaultValue={defaultValue} value={value} className={t2} style={t3}>{t7}</SliderPrimitive.Root>;\n $[16] = defaultValue;\n $[17] = props;\n $[18] = stylexProps.className;\n $[19] = stylexProps.style;\n $[20] = t7;\n $[21] = value;\n $[22] = t8;\n } else {\n t8 = $[22];\n }\n return t8;\n}"],
5
+ "mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,UAAU,uBAAuB;AAE1C,YAAY,YAAY;AA+EgB,cAe/B,YAf+B;AA5ExC,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,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,MAAI;AACJ,MAAI;AACJ,MAAIA;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAGA;AAAA,IACL,IAAI;AACJ,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIA;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,QAAI,EAAE,EAAE,MAAM,cAAc;AAC1B,MAAAA,MAAK,CAAC,GAAG,UAAU,oBAAC,gBAAgB,OAAhB,EAAsB,cAA4B,OAA0B,WAAU,0GAAjB,KAAwH;AACjN,QAAE,EAAE,IAAI;AACR,QAAE,EAAE,IAAIA;AAAA,IACV,OAAO;AACL,MAAAA,MAAK,EAAE,EAAE;AAAA,IACX;AACA,SAAK,qBAAC,gBAAgB,SAAhB,EAAyB,GAAG,IAAK;AAAA;AAAA,MAAI,MAAM,KAAK;AAAA,QAClD,QAAQ;AAAA,MACV,GAAGA,GAAE;AAAA,OAAE;AACT,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,gBAAgB,EAAE,EAAE,MAAMD,UAAS,EAAE,EAAE,MAAM,YAAY,aAAa,EAAE,EAAE,MAAM,YAAY,SAAS,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,MAAM,OAAO;AAClJ,SAAK,oBAAC,gBAAgB,MAAhB,EAAsB,GAAGA,QAAO,cAA4B,OAAc,WAAW,IAAI,OAAO,IAAK,cAAG;AAC9G,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAIA;AACR,MAAE,EAAE,IAAI,YAAY;AACpB,MAAE,EAAE,IAAI,YAAY;AACpB,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
6
6
  "names": ["props", "t8"]
7
7
  }
package/dist/spinner.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import * as stylex from "@stylexjs/stylex";
2
1
  import type { ComponentProps } from "react";
3
- export type SpinnerProps = ComponentProps<"output"> & {
2
+ export type SpinnerProps = Omit<ComponentProps<"output">, "className" | "style"> & {
4
3
  label?: string;
5
- xstyle?: stylex.StyleXStyles;
6
4
  };
7
- export declare function Spinner({ label, xstyle, ...props }: SpinnerProps): import("react").JSX.Element;
5
+ export declare function Spinner({ label, ...props }: SpinnerProps): import("react").JSX.Element;
package/dist/spinner.js CHANGED
@@ -1,66 +1,10 @@
1
1
  // src/spinner.tsx
2
- import { c as _c } from "react/compiler-runtime";
3
- import * as stylex from "@stylexjs/stylex";
4
2
  import { jsx } from "react/jsx-runtime";
5
- var styles = {
6
- root: {
7
- k44tkh: "xof6966",
8
- ko0y90: "xa4qsjk",
9
- kKVMdj: "xpedhrg",
10
- kyAemX: "x1esw782",
11
- kVAM5u: "x13xm7is",
12
- kaIpWk: "x9gkxt8",
13
- k26BEO: "x18v6yaz",
14
- ksu8eU: "x1y0btm7",
15
- kMzoRj: "x1shk7dx",
16
- k1xSpc: "x1rg5ohu",
17
- kZKoxP: "xswfmaf",
18
- kzqmXN: "xmkpuva",
19
- kkDQuc: "xfs3gwd",
20
- $$css: true
21
- }
22
- };
23
- function Spinner(t0) {
24
- const $ = _c(10);
25
- let props2;
26
- let t1;
27
- let xstyle;
28
- if ($[0] !== t0) {
29
- ({
30
- label: t1,
31
- xstyle,
32
- ...props2
33
- } = t0);
34
- $[0] = t0;
35
- $[1] = props2;
36
- $[2] = t1;
37
- $[3] = xstyle;
38
- } else {
39
- props2 = $[1];
40
- t1 = $[2];
41
- xstyle = $[3];
42
- }
43
- const label = t1 === void 0 ? "Loading" : t1;
44
- let t2;
45
- if ($[4] !== xstyle) {
46
- t2 = stylex.props(styles.root, xstyle);
47
- $[4] = xstyle;
48
- $[5] = t2;
49
- } else {
50
- t2 = $[5];
51
- }
52
- const stylexProps = t2;
53
- let t3;
54
- if ($[6] !== label || $[7] !== props2 || $[8] !== stylexProps) {
55
- t3 = /* @__PURE__ */ jsx("output", { ...props2, "aria-label": label, ...stylexProps });
56
- $[6] = label;
57
- $[7] = props2;
58
- $[8] = stylexProps;
59
- $[9] = t3;
60
- } else {
61
- t3 = $[9];
62
- }
63
- return t3;
3
+ function Spinner({
4
+ label = "Loading",
5
+ ...props
6
+ }) {
7
+ return /* @__PURE__ */ jsx("output", { ...props, "aria-label": label, className: "xx1h35u xa4qsjk xpedhrg x1esw782 x13xm7is x9gkxt8 x18v6yaz x1y0btm7 x1shk7dx x1rg5ohu xswfmaf xmkpuva xs9k882" });
64
8
  }
65
9
  export {
66
10
  Spinner
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/spinner.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, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nconst spin = \"x1fy8ia8-B\";\nconst styles = {\n root: {\n k44tkh: \"xof6966\",\n ko0y90: \"xa4qsjk\",\n kKVMdj: \"xpedhrg\",\n kyAemX: \"x1esw782\",\n kVAM5u: \"x13xm7is\",\n kaIpWk: \"x9gkxt8\",\n k26BEO: \"x18v6yaz\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1shk7dx\",\n k1xSpc: \"x1rg5ohu\",\n kZKoxP: \"xswfmaf\",\n kzqmXN: \"xmkpuva\",\n kkDQuc: \"xfs3gwd\",\n $$css: true\n }\n};\nexport type SpinnerProps = ComponentProps<\"output\"> & {\n label?: string;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Spinner(t0) {\n const $ = _c(10);\n let props;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n label: 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 label = t1 === undefined ? \"Loading\" : t1;\n let t2;\n if ($[4] !== xstyle) {\n t2 = stylex.props(styles.root, xstyle);\n $[4] = xstyle;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n const stylexProps = t2;\n let t3;\n if ($[6] !== label || $[7] !== props || $[8] !== stylexProps) {\n t3 = <output {...props} aria-label={label} {...stylexProps} />;\n $[6] = label;\n $[7] = props;\n $[8] = stylexProps;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n return t3;\n}"],
5
- "mappings": ";AAAA,SAAS,KAAK,UAAU;AACxB,YAAY,YAAY;AA0Df;AAtDT,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,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAKO,SAAS,QAAQ,IAAI;AAC1B,QAAM,IAAI,GAAG,EAAE;AACf,MAAIA;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,IAAI;AACf,KAAC;AAAA,MACC,OAAO;AAAA,MACP;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,QAAQ,OAAO,SAAY,YAAY;AAC7C,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,QAAQ;AACnB,SAAY,aAAM,OAAO,MAAM,MAAM;AACrC,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AAAA,EACT,OAAO;AACL,SAAK,EAAE,CAAC;AAAA,EACV;AACA,QAAM,cAAc;AACpB,MAAI;AACJ,MAAI,EAAE,CAAC,MAAM,SAAS,EAAE,CAAC,MAAMA,UAAS,EAAE,CAAC,MAAM,aAAa;AAC5D,SAAK,oBAAC,YAAQ,GAAGA,QAAO,cAAY,OAAQ,GAAG,aAAa;AAC5D,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": ["props"]
4
+ "sourcesContent": ["import { colorVars, motionVars, radiusVars, sizeVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst spin = \"x1fy8ia8-B\";\nexport type SpinnerProps = Omit<ComponentProps<\"output\">, \"className\" | \"style\"> & {\n label?: string;\n};\nexport function Spinner({\n label = \"Loading\",\n ...props\n}: SpinnerProps) {\n return <output {...props} aria-label={label} className=\"xx1h35u xa4qsjk xpedhrg x1esw782 x13xm7is x9gkxt8 x18v6yaz x1y0btm7 x1shk7dx x1rg5ohu xswfmaf xmkpuva xs9k882\" />;\n}"],
5
+ "mappings": ";AAWS;AAJF,SAAS,QAAQ;AAAA,EACtB,QAAQ;AAAA,EACR,GAAG;AACL,GAAiB;AACf,SAAO,oBAAC,YAAQ,GAAG,OAAO,cAAY,OAAO,WAAU,iHAAgH;AACzK;",
6
+ "names": []
7
7
  }