@spark-ui/components 10.0.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 (296) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +19 -0
  4. package/dist/DialogTrigger-5SI4dvpK.d.mts +142 -0
  5. package/dist/DialogTrigger-5SI4dvpK.d.ts +142 -0
  6. package/dist/Input-g0LpWuv0.d.mts +17 -0
  7. package/dist/Input-g0LpWuv0.d.ts +17 -0
  8. package/dist/InputGroup-aoaZxCLk.d.mts +28 -0
  9. package/dist/InputGroup-aoaZxCLk.d.ts +28 -0
  10. package/dist/InputTrailingIcon-BBp7sE6D.d.mts +20 -0
  11. package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +20 -0
  12. package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +19 -0
  13. package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +19 -0
  14. package/dist/accordion/index.d.mts +85 -0
  15. package/dist/accordion/index.d.ts +85 -0
  16. package/dist/accordion/index.js +461 -0
  17. package/dist/accordion/index.js.map +1 -0
  18. package/dist/accordion/index.mjs +249 -0
  19. package/dist/accordion/index.mjs.map +1 -0
  20. package/dist/alert-dialog/index.d.mts +119 -0
  21. package/dist/alert-dialog/index.d.ts +119 -0
  22. package/dist/alert-dialog/index.js +1451 -0
  23. package/dist/alert-dialog/index.js.map +1 -0
  24. package/dist/alert-dialog/index.mjs +177 -0
  25. package/dist/alert-dialog/index.mjs.map +1 -0
  26. package/dist/badge/index.d.mts +47 -0
  27. package/dist/badge/index.d.ts +47 -0
  28. package/dist/badge/index.js +122 -0
  29. package/dist/badge/index.js.map +1 -0
  30. package/dist/badge/index.mjs +95 -0
  31. package/dist/badge/index.mjs.map +1 -0
  32. package/dist/breadcrumb/index.d.mts +64 -0
  33. package/dist/breadcrumb/index.d.ts +64 -0
  34. package/dist/breadcrumb/index.js +326 -0
  35. package/dist/breadcrumb/index.js.map +1 -0
  36. package/dist/breadcrumb/index.mjs +149 -0
  37. package/dist/breadcrumb/index.mjs.map +1 -0
  38. package/dist/button/index.d.mts +40 -0
  39. package/dist/button/index.d.ts +40 -0
  40. package/dist/button/index.js +877 -0
  41. package/dist/button/index.js.map +1 -0
  42. package/dist/button/index.mjs +10 -0
  43. package/dist/button/index.mjs.map +1 -0
  44. package/dist/carousel/index.d.mts +253 -0
  45. package/dist/carousel/index.d.ts +253 -0
  46. package/dist/carousel/index.js +1678 -0
  47. package/dist/carousel/index.js.map +1 -0
  48. package/dist/carousel/index.mjs +716 -0
  49. package/dist/carousel/index.mjs.map +1 -0
  50. package/dist/checkbox/index.d.mts +120 -0
  51. package/dist/checkbox/index.d.ts +120 -0
  52. package/dist/checkbox/index.js +873 -0
  53. package/dist/checkbox/index.js.map +1 -0
  54. package/dist/checkbox/index.mjs +349 -0
  55. package/dist/checkbox/index.mjs.map +1 -0
  56. package/dist/chip/index.d.mts +97 -0
  57. package/dist/chip/index.d.ts +97 -0
  58. package/dist/chip/index.js +905 -0
  59. package/dist/chip/index.js.map +1 -0
  60. package/dist/chip/index.mjs +793 -0
  61. package/dist/chip/index.mjs.map +1 -0
  62. package/dist/chunk-2KPFQEAA.mjs +52 -0
  63. package/dist/chunk-2KPFQEAA.mjs.map +1 -0
  64. package/dist/chunk-4F5DOL57.mjs +26 -0
  65. package/dist/chunk-4F5DOL57.mjs.map +1 -0
  66. package/dist/chunk-6JOA37TZ.mjs +742 -0
  67. package/dist/chunk-6JOA37TZ.mjs.map +1 -0
  68. package/dist/chunk-7PMPYEHJ.mjs +379 -0
  69. package/dist/chunk-7PMPYEHJ.mjs.map +1 -0
  70. package/dist/chunk-AESXFMCC.mjs +68 -0
  71. package/dist/chunk-AESXFMCC.mjs.map +1 -0
  72. package/dist/chunk-B42LOFIZ.mjs +308 -0
  73. package/dist/chunk-B42LOFIZ.mjs.map +1 -0
  74. package/dist/chunk-FGOZHKBT.mjs +97 -0
  75. package/dist/chunk-FGOZHKBT.mjs.map +1 -0
  76. package/dist/chunk-HLXYG643.mjs +52 -0
  77. package/dist/chunk-HLXYG643.mjs.map +1 -0
  78. package/dist/chunk-JKNBJHD5.mjs +601 -0
  79. package/dist/chunk-JKNBJHD5.mjs.map +1 -0
  80. package/dist/chunk-K7VP7DH3.mjs +66 -0
  81. package/dist/chunk-K7VP7DH3.mjs.map +1 -0
  82. package/dist/chunk-MUNDKRAE.mjs +80 -0
  83. package/dist/chunk-MUNDKRAE.mjs.map +1 -0
  84. package/dist/chunk-NBZKMCHF.mjs +36 -0
  85. package/dist/chunk-NBZKMCHF.mjs.map +1 -0
  86. package/dist/chunk-PZWESKAR.mjs +314 -0
  87. package/dist/chunk-PZWESKAR.mjs.map +1 -0
  88. package/dist/collapsible/index.d.mts +60 -0
  89. package/dist/collapsible/index.d.ts +60 -0
  90. package/dist/collapsible/index.js +140 -0
  91. package/dist/collapsible/index.js.map +1 -0
  92. package/dist/collapsible/index.mjs +8 -0
  93. package/dist/collapsible/index.mjs.map +1 -0
  94. package/dist/combobox/index.d.mts +285 -0
  95. package/dist/combobox/index.d.ts +285 -0
  96. package/dist/combobox/index.js +2920 -0
  97. package/dist/combobox/index.js.map +1 -0
  98. package/dist/combobox/index.mjs +1267 -0
  99. package/dist/combobox/index.mjs.map +1 -0
  100. package/dist/dialog/index.d.mts +33 -0
  101. package/dist/dialog/index.d.ts +33 -0
  102. package/dist/dialog/index.js +1286 -0
  103. package/dist/dialog/index.js.map +1 -0
  104. package/dist/dialog/index.mjs +13 -0
  105. package/dist/dialog/index.mjs.map +1 -0
  106. package/dist/divider/index.d.mts +61 -0
  107. package/dist/divider/index.d.ts +61 -0
  108. package/dist/divider/index.js +223 -0
  109. package/dist/divider/index.js.map +1 -0
  110. package/dist/divider/index.mjs +196 -0
  111. package/dist/divider/index.mjs.map +1 -0
  112. package/dist/drawer/index.d.mts +148 -0
  113. package/dist/drawer/index.d.ts +148 -0
  114. package/dist/drawer/index.js +1266 -0
  115. package/dist/drawer/index.js.map +1 -0
  116. package/dist/drawer/index.mjs +299 -0
  117. package/dist/drawer/index.mjs.map +1 -0
  118. package/dist/dropdown/index.d.mts +233 -0
  119. package/dist/dropdown/index.d.ts +233 -0
  120. package/dist/dropdown/index.js +2402 -0
  121. package/dist/dropdown/index.js.map +1 -0
  122. package/dist/dropdown/index.mjs +741 -0
  123. package/dist/dropdown/index.mjs.map +1 -0
  124. package/dist/form-field/index.d.mts +176 -0
  125. package/dist/form-field/index.d.ts +176 -0
  126. package/dist/form-field/index.js +540 -0
  127. package/dist/form-field/index.js.map +1 -0
  128. package/dist/form-field/index.mjs +13 -0
  129. package/dist/form-field/index.mjs.map +1 -0
  130. package/dist/icon/index.d.mts +28 -0
  131. package/dist/icon/index.d.ts +28 -0
  132. package/dist/icon/index.js +127 -0
  133. package/dist/icon/index.js.map +1 -0
  134. package/dist/icon/index.mjs +9 -0
  135. package/dist/icon/index.mjs.map +1 -0
  136. package/dist/icon-button/index.d.mts +16 -0
  137. package/dist/icon-button/index.d.ts +16 -0
  138. package/dist/icon-button/index.js +921 -0
  139. package/dist/icon-button/index.js.map +1 -0
  140. package/dist/icon-button/index.mjs +11 -0
  141. package/dist/icon-button/index.mjs.map +1 -0
  142. package/dist/input/index.d.mts +78 -0
  143. package/dist/input/index.d.ts +78 -0
  144. package/dist/input/index.js +1119 -0
  145. package/dist/input/index.js.map +1 -0
  146. package/dist/input/index.mjs +16 -0
  147. package/dist/input/index.mjs.map +1 -0
  148. package/dist/kbd/index.d.mts +9 -0
  149. package/dist/kbd/index.d.ts +9 -0
  150. package/dist/kbd/index.js +46 -0
  151. package/dist/kbd/index.js.map +1 -0
  152. package/dist/kbd/index.mjs +19 -0
  153. package/dist/kbd/index.mjs.map +1 -0
  154. package/dist/label/index.d.mts +11 -0
  155. package/dist/label/index.d.ts +11 -0
  156. package/dist/label/index.js +78 -0
  157. package/dist/label/index.js.map +1 -0
  158. package/dist/label/index.mjs +7 -0
  159. package/dist/label/index.mjs.map +1 -0
  160. package/dist/link-box/index.d.mts +34 -0
  161. package/dist/link-box/index.d.ts +34 -0
  162. package/dist/link-box/index.js +92 -0
  163. package/dist/link-box/index.js.map +1 -0
  164. package/dist/link-box/index.mjs +58 -0
  165. package/dist/link-box/index.mjs.map +1 -0
  166. package/dist/pagination/index.d.mts +143 -0
  167. package/dist/pagination/index.d.ts +143 -0
  168. package/dist/pagination/index.js +1303 -0
  169. package/dist/pagination/index.js.map +1 -0
  170. package/dist/pagination/index.mjs +326 -0
  171. package/dist/pagination/index.mjs.map +1 -0
  172. package/dist/popover/index.d.mts +93 -0
  173. package/dist/popover/index.d.ts +93 -0
  174. package/dist/popover/index.js +1280 -0
  175. package/dist/popover/index.js.map +1 -0
  176. package/dist/popover/index.mjs +13 -0
  177. package/dist/popover/index.mjs.map +1 -0
  178. package/dist/portal/index.d.mts +13 -0
  179. package/dist/portal/index.d.ts +13 -0
  180. package/dist/portal/index.js +37 -0
  181. package/dist/portal/index.js.map +1 -0
  182. package/dist/portal/index.mjs +10 -0
  183. package/dist/portal/index.mjs.map +1 -0
  184. package/dist/progress/index.d.mts +48 -0
  185. package/dist/progress/index.d.ts +48 -0
  186. package/dist/progress/index.js +201 -0
  187. package/dist/progress/index.js.map +1 -0
  188. package/dist/progress/index.mjs +174 -0
  189. package/dist/progress/index.mjs.map +1 -0
  190. package/dist/progress-tracker/index.d.mts +81 -0
  191. package/dist/progress-tracker/index.d.ts +81 -0
  192. package/dist/progress-tracker/index.js +834 -0
  193. package/dist/progress-tracker/index.js.map +1 -0
  194. package/dist/progress-tracker/index.mjs +716 -0
  195. package/dist/progress-tracker/index.mjs.map +1 -0
  196. package/dist/radio-group/index.d.mts +100 -0
  197. package/dist/radio-group/index.d.ts +100 -0
  198. package/dist/radio-group/index.js +824 -0
  199. package/dist/radio-group/index.js.map +1 -0
  200. package/dist/radio-group/index.mjs +297 -0
  201. package/dist/radio-group/index.mjs.map +1 -0
  202. package/dist/rating/index.d.mts +78 -0
  203. package/dist/rating/index.d.ts +78 -0
  204. package/dist/rating/index.js +362 -0
  205. package/dist/rating/index.js.map +1 -0
  206. package/dist/rating/index.mjs +247 -0
  207. package/dist/rating/index.mjs.map +1 -0
  208. package/dist/scrolling-list/index.d.mts +105 -0
  209. package/dist/scrolling-list/index.d.ts +105 -0
  210. package/dist/scrolling-list/index.js +1367 -0
  211. package/dist/scrolling-list/index.js.map +1 -0
  212. package/dist/scrolling-list/index.mjs +407 -0
  213. package/dist/scrolling-list/index.mjs.map +1 -0
  214. package/dist/select/index.d.mts +167 -0
  215. package/dist/select/index.d.ts +167 -0
  216. package/dist/select/index.js +991 -0
  217. package/dist/select/index.js.map +1 -0
  218. package/dist/select/index.mjs +470 -0
  219. package/dist/select/index.mjs.map +1 -0
  220. package/dist/skeleton/index.d.mts +67 -0
  221. package/dist/skeleton/index.d.ts +67 -0
  222. package/dist/skeleton/index.js +206 -0
  223. package/dist/skeleton/index.js.map +1 -0
  224. package/dist/skeleton/index.mjs +147 -0
  225. package/dist/skeleton/index.mjs.map +1 -0
  226. package/dist/slider/index.d.mts +97 -0
  227. package/dist/slider/index.d.ts +97 -0
  228. package/dist/slider/index.js +209 -0
  229. package/dist/slider/index.js.map +1 -0
  230. package/dist/slider/index.mjs +182 -0
  231. package/dist/slider/index.mjs.map +1 -0
  232. package/dist/slot/index.d.mts +17 -0
  233. package/dist/slot/index.d.ts +17 -0
  234. package/dist/slot/index.js +51 -0
  235. package/dist/slot/index.js.map +1 -0
  236. package/dist/slot/index.mjs +11 -0
  237. package/dist/slot/index.mjs.map +1 -0
  238. package/dist/snackbar/index.d.mts +158 -0
  239. package/dist/snackbar/index.d.ts +158 -0
  240. package/dist/snackbar/index.js +1693 -0
  241. package/dist/snackbar/index.js.map +1 -0
  242. package/dist/snackbar/index.mjs +733 -0
  243. package/dist/snackbar/index.mjs.map +1 -0
  244. package/dist/spinner/index.d.mts +21 -0
  245. package/dist/spinner/index.d.ts +21 -0
  246. package/dist/spinner/index.js +139 -0
  247. package/dist/spinner/index.js.map +1 -0
  248. package/dist/spinner/index.mjs +9 -0
  249. package/dist/spinner/index.mjs.map +1 -0
  250. package/dist/stepper/index.d.mts +82 -0
  251. package/dist/stepper/index.d.ts +82 -0
  252. package/dist/stepper/index.js +2178 -0
  253. package/dist/stepper/index.js.map +1 -0
  254. package/dist/stepper/index.mjs +229 -0
  255. package/dist/stepper/index.mjs.map +1 -0
  256. package/dist/switch/index.d.mts +64 -0
  257. package/dist/switch/index.d.ts +64 -0
  258. package/dist/switch/index.js +768 -0
  259. package/dist/switch/index.js.map +1 -0
  260. package/dist/switch/index.mjs +245 -0
  261. package/dist/switch/index.mjs.map +1 -0
  262. package/dist/tabs/index.d.mts +103 -0
  263. package/dist/tabs/index.d.ts +103 -0
  264. package/dist/tabs/index.js +1315 -0
  265. package/dist/tabs/index.js.map +1 -0
  266. package/dist/tabs/index.mjs +391 -0
  267. package/dist/tabs/index.mjs.map +1 -0
  268. package/dist/tag/index.d.mts +27 -0
  269. package/dist/tag/index.d.ts +27 -0
  270. package/dist/tag/index.js +269 -0
  271. package/dist/tag/index.js.map +1 -0
  272. package/dist/tag/index.mjs +237 -0
  273. package/dist/tag/index.mjs.map +1 -0
  274. package/dist/text-link/index.d.mts +20 -0
  275. package/dist/text-link/index.d.ts +20 -0
  276. package/dist/text-link/index.js +99 -0
  277. package/dist/text-link/index.js.map +1 -0
  278. package/dist/text-link/index.mjs +8 -0
  279. package/dist/text-link/index.mjs.map +1 -0
  280. package/dist/textarea/index.d.mts +47 -0
  281. package/dist/textarea/index.d.ts +47 -0
  282. package/dist/textarea/index.js +1180 -0
  283. package/dist/textarea/index.js.map +1 -0
  284. package/dist/textarea/index.mjs +77 -0
  285. package/dist/textarea/index.mjs.map +1 -0
  286. package/dist/visually-hidden/index.d.mts +16 -0
  287. package/dist/visually-hidden/index.d.ts +16 -0
  288. package/dist/visually-hidden/index.js +67 -0
  289. package/dist/visually-hidden/index.js.map +1 -0
  290. package/dist/visually-hidden/index.mjs +8 -0
  291. package/dist/visually-hidden/index.mjs.map +1 -0
  292. package/global.d.ts +12 -0
  293. package/package.json +75 -0
  294. package/tsconfig.build.json +9 -0
  295. package/tsconfig.json +9 -0
  296. package/tsup.config.ts +11 -0
@@ -0,0 +1,196 @@
1
+ // src/divider/Divider.tsx
2
+ import { cx } from "class-variance-authority";
3
+ import { Separator } from "radix-ui";
4
+
5
+ // src/divider/Divider.styles.ts
6
+ import { tw as tw2 } from "@spark-ui/internal-utils";
7
+ import { cva } from "class-variance-authority";
8
+
9
+ // src/divider/variants/intents.tsx
10
+ import { tw } from "@spark-ui/internal-utils";
11
+ var intentVariants = [
12
+ // current
13
+ {
14
+ intent: "current",
15
+ isEmpty: true,
16
+ class: tw(["border-current"])
17
+ },
18
+ {
19
+ intent: "current",
20
+ isEmpty: false,
21
+ class: tw(["before:border-current after:border-current"])
22
+ },
23
+ // outline
24
+ {
25
+ intent: "outline",
26
+ isEmpty: true,
27
+ class: tw(["border-outline"])
28
+ },
29
+ {
30
+ intent: "outline",
31
+ isEmpty: false,
32
+ class: tw(["before:border-outline after:border-outline"])
33
+ }
34
+ ];
35
+
36
+ // src/divider/Divider.styles.ts
37
+ var dividerStyles = cva(["overflow-hidden group"], {
38
+ variants: {
39
+ isEmpty: {
40
+ true: ["border-solid"],
41
+ false: ["inline-flex items-center", "after:border-solid before:border-solid"]
42
+ },
43
+ orientation: {
44
+ vertical: ["w-fit inline-flex"],
45
+ horizontal: ["w-full"]
46
+ },
47
+ writingMode: {
48
+ "horizontal-tb": [],
49
+ "vertical-lr": []
50
+ },
51
+ alignment: {
52
+ start: [],
53
+ end: [],
54
+ center: []
55
+ },
56
+ intent: {
57
+ current: [],
58
+ outline: []
59
+ }
60
+ },
61
+ defaultVariants: {
62
+ orientation: "horizontal",
63
+ writingMode: "horizontal-tb",
64
+ alignment: "center",
65
+ intent: "outline"
66
+ },
67
+ compoundVariants: [
68
+ {
69
+ isEmpty: true,
70
+ orientation: "horizontal",
71
+ class: tw2(["my-lg border-t-sm"])
72
+ },
73
+ {
74
+ isEmpty: true,
75
+ orientation: "vertical",
76
+ class: tw2(["mx-lg min-h-sz-24 border-l-sm"])
77
+ },
78
+ {
79
+ isEmpty: false,
80
+ orientation: "horizontal",
81
+ writingMode: "horizontal-tb",
82
+ class: tw2(["flex-row my-sm grow-0", "before:border-t-sm", "after:border-t-sm", "*:px-lg"])
83
+ },
84
+ {
85
+ isEmpty: false,
86
+ orientation: "vertical",
87
+ writingMode: "horizontal-tb",
88
+ class: tw2(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "*:py-lg"])
89
+ },
90
+ {
91
+ isEmpty: false,
92
+ orientation: "vertical",
93
+ writingMode: "vertical-lr",
94
+ class: tw2(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "*:px-lg"])
95
+ },
96
+ {
97
+ isEmpty: false,
98
+ orientation: "horizontal",
99
+ alignment: "end",
100
+ class: tw2(["after:w-sz-40 before:grow after:grow-0"])
101
+ },
102
+ {
103
+ isEmpty: false,
104
+ orientation: "horizontal",
105
+ alignment: "start",
106
+ class: tw2(["before:w-sz-40 before:grow-0 after:grow"])
107
+ },
108
+ {
109
+ isEmpty: false,
110
+ orientation: "horizontal",
111
+ alignment: "center",
112
+ class: tw2(["justify-center before:grow after:grow"])
113
+ },
114
+ {
115
+ isEmpty: false,
116
+ orientation: "vertical",
117
+ alignment: "end",
118
+ class: tw2(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"])
119
+ },
120
+ {
121
+ isEmpty: false,
122
+ orientation: "vertical",
123
+ alignment: "start",
124
+ class: tw2(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"])
125
+ },
126
+ {
127
+ isEmpty: false,
128
+ orientation: "vertical",
129
+ alignment: "center",
130
+ class: tw2(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"])
131
+ },
132
+ ...intentVariants
133
+ ]
134
+ });
135
+
136
+ // src/divider/Divider.tsx
137
+ import { jsx } from "react/jsx-runtime";
138
+ var Divider = ({
139
+ asChild,
140
+ className,
141
+ isDecorative = false,
142
+ children,
143
+ orientation = "horizontal",
144
+ writingMode = "horizontal-tb",
145
+ alignment = "center",
146
+ intent = "outline",
147
+ ref,
148
+ ...props
149
+ }) => {
150
+ const isEmpty = asChild ? !children?.props?.children : !children;
151
+ return /* @__PURE__ */ jsx(
152
+ Separator.Root,
153
+ {
154
+ "data-spark-component": "divider",
155
+ asChild,
156
+ className: cx(
157
+ dividerStyles({ isEmpty, orientation, alignment, intent, writingMode }),
158
+ className
159
+ ),
160
+ orientation,
161
+ ref,
162
+ decorative: isDecorative,
163
+ ...props,
164
+ "data-writing-mode": writingMode,
165
+ children
166
+ }
167
+ );
168
+ };
169
+ Divider.displayName = "Divider";
170
+
171
+ // src/divider/DividerContent.tsx
172
+ import { cx as cx2 } from "class-variance-authority";
173
+ import { jsx as jsx2 } from "react/jsx-runtime";
174
+ var DividerContent = ({ children, ref, className, ...props }) => {
175
+ return children ? /* @__PURE__ */ jsx2(
176
+ "span",
177
+ {
178
+ ref,
179
+ ...props,
180
+ className: cx2("group-data-[writing-mode=vertical-lr]:[writing-mode:vertical-lr]", className),
181
+ children
182
+ }
183
+ ) : null;
184
+ };
185
+ DividerContent.displayName = "Divider.Content";
186
+
187
+ // src/divider/index.ts
188
+ var Divider2 = Object.assign(Divider, {
189
+ Content: DividerContent
190
+ });
191
+ Divider2.displayName = "Divider";
192
+ Divider2.Content.displayName = "Divider.Content";
193
+ export {
194
+ Divider2 as Divider
195
+ };
196
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/divider/Divider.tsx","../../src/divider/Divider.styles.ts","../../src/divider/variants/intents.tsx","../../src/divider/DividerContent.tsx","../../src/divider/index.ts"],"sourcesContent":["import { cx } from 'class-variance-authority'\nimport { Separator } from 'radix-ui'\nimport { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react'\n\nimport { dividerStyles, type DividerStylesProps } from './Divider.styles'\n\nexport interface DividerProps\n extends HTMLAttributes<HTMLDivElement>,\n Omit<DividerStylesProps, 'isEmpty'> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n */\n asChild?: boolean\n children?: ReactElement\n /**\n * The orientation of the inner content.\n */\n alignment?: 'start' | 'end' | 'center'\n /**\n * The orientation of the separator.\n */\n orientation?: 'vertical' | 'horizontal'\n /**\n * When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree.\n */\n isDecorative?: boolean\n /**\n * Color scheme of the divider.\n */\n intent?: 'outline' | 'current'\n ref?: Ref<HTMLDivElement>\n}\n\nexport const Divider = ({\n asChild,\n className,\n isDecorative = false,\n children,\n orientation = 'horizontal',\n writingMode = 'horizontal-tb',\n alignment = 'center',\n intent = 'outline',\n ref,\n ...props\n}: DividerProps) => {\n const isEmpty = asChild ? !(children?.props as { children: ReactNode })?.children : !children\n\n return (\n <Separator.Root\n data-spark-component=\"divider\"\n asChild={asChild}\n className={cx(\n dividerStyles({ isEmpty, orientation, alignment, intent, writingMode }),\n className\n )}\n orientation={orientation}\n ref={ref}\n decorative={isDecorative}\n {...props}\n data-writing-mode={writingMode}\n >\n {children}\n </Separator.Root>\n )\n}\n\nDivider.displayName = 'Divider'\n","import { tw } from '@spark-ui/internal-utils'\nimport { cva, VariantProps } from 'class-variance-authority'\n\nimport { intentVariants } from './variants/intents'\n\nexport const dividerStyles = cva(['overflow-hidden group'], {\n variants: {\n isEmpty: {\n true: ['border-solid'],\n false: ['inline-flex items-center', 'after:border-solid before:border-solid'],\n },\n orientation: {\n vertical: ['w-fit inline-flex'],\n horizontal: ['w-full'],\n },\n writingMode: {\n 'horizontal-tb': [],\n 'vertical-lr': [],\n },\n alignment: {\n start: [],\n end: [],\n center: [],\n },\n intent: {\n current: [],\n outline: [],\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n writingMode: 'horizontal-tb',\n alignment: 'center',\n intent: 'outline',\n },\n compoundVariants: [\n {\n isEmpty: true,\n orientation: 'horizontal',\n class: tw(['my-lg border-t-sm']),\n },\n {\n isEmpty: true,\n orientation: 'vertical',\n class: tw(['mx-lg min-h-sz-24 border-l-sm']),\n },\n {\n isEmpty: false,\n orientation: 'horizontal',\n writingMode: 'horizontal-tb',\n class: tw(['flex-row my-sm grow-0', 'before:border-t-sm', 'after:border-t-sm', '*:px-lg']),\n },\n {\n isEmpty: false,\n orientation: 'vertical',\n writingMode: 'horizontal-tb',\n class: tw(['flex-col mx-sm', 'before:border-l-sm', 'after:border-l-sm', '*:py-lg']),\n },\n {\n isEmpty: false,\n orientation: 'vertical',\n writingMode: 'vertical-lr',\n class: tw(['flex-col mx-sm', 'before:border-l-sm', 'after:border-l-sm', '*:px-lg']),\n },\n {\n isEmpty: false,\n orientation: 'horizontal',\n alignment: 'end',\n class: tw(['after:w-sz-40 before:grow after:grow-0']),\n },\n {\n isEmpty: false,\n orientation: 'horizontal',\n alignment: 'start',\n class: tw(['before:w-sz-40 before:grow-0 after:grow']),\n },\n {\n isEmpty: false,\n orientation: 'horizontal',\n alignment: 'center',\n class: tw(['justify-center before:grow after:grow']),\n },\n {\n isEmpty: false,\n orientation: 'vertical',\n alignment: 'end',\n class: tw(['after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40']),\n },\n {\n isEmpty: false,\n orientation: 'vertical',\n alignment: 'start',\n class: tw(['before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40']),\n },\n {\n isEmpty: false,\n orientation: 'vertical',\n alignment: 'center',\n class: tw(['justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40']),\n },\n ...intentVariants,\n ],\n})\n\nexport type DividerStylesProps = VariantProps<typeof dividerStyles>\n","import { tw } from '@spark-ui/internal-utils'\n\nexport const intentVariants = [\n // current\n {\n intent: 'current',\n isEmpty: true,\n class: tw(['border-current']),\n },\n {\n intent: 'current',\n isEmpty: false,\n class: tw(['before:border-current after:border-current']),\n },\n // outline\n {\n intent: 'outline',\n isEmpty: true,\n class: tw(['border-outline']),\n },\n {\n intent: 'outline',\n isEmpty: false,\n class: tw(['before:border-outline after:border-outline']),\n },\n] as const\n","import { cx } from 'class-variance-authority'\nimport { HTMLAttributes, ReactNode, Ref } from 'react'\n\nexport interface DividerContentProps extends HTMLAttributes<HTMLSpanElement> {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n */\n asChild?: boolean\n children?: ReactNode\n ref?: Ref<HTMLSpanElement>\n}\n\nexport const DividerContent = ({ children, ref, className, ...props }: DividerContentProps) => {\n return children ? (\n <span\n ref={ref}\n {...props}\n className={cx('group-data-[writing-mode=vertical-lr]:[writing-mode:vertical-lr]', className)}\n >\n {children}\n </span>\n ) : null\n}\n\nDividerContent.displayName = 'Divider.Content'\n","import { Divider as Root } from './Divider'\nimport { DividerContent } from './DividerContent'\n\nexport { type DividerContentProps } from './DividerContent'\n\nexport const Divider: typeof Root & {\n Content: typeof DividerContent\n} = Object.assign(Root, {\n Content: DividerContent,\n})\n\nDivider.displayName = 'Divider'\nDivider.Content.displayName = 'Divider.Content'\n"],"mappings":"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","names":["tw","tw","cx","jsx","Divider"]}
@@ -0,0 +1,148 @@
1
+ import { Dialog } from 'radix-ui';
2
+ import { ReactElement, ReactNode, Ref, ComponentPropsWithoutRef } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+ import { IconButtonProps } from '../icon-button/index.mjs';
7
+ import '../button/index.mjs';
8
+
9
+ interface DrawerProps {
10
+ /**
11
+ * Children of the component.
12
+ */
13
+ children?: Dialog.DialogProps['children'];
14
+ /**
15
+ * Specifies if the dialog is open or not.
16
+ */
17
+ open?: Dialog.DialogProps['open'];
18
+ /**
19
+ * Default open state.
20
+ */
21
+ defaultOpen?: Dialog.DialogProps['defaultOpen'];
22
+ /**
23
+ * Handler executed on every dialog open state change.
24
+ */
25
+ onOpenChange?: Dialog.DialogProps['onOpenChange'];
26
+ /**
27
+ * Specifies if the dialog is a modal.
28
+ */
29
+ modal?: Dialog.DialogProps['modal'];
30
+ }
31
+ declare const Drawer$1: {
32
+ ({ children, ...rest }: DrawerProps): ReactElement;
33
+ displayName: string;
34
+ };
35
+
36
+ declare const drawerBodyStyles: (props?: ({
37
+ inset?: boolean | null | undefined;
38
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
39
+ type DrawerBodyStylesProps = VariantProps<typeof drawerBodyStyles>;
40
+
41
+ interface DrawerBodyProps extends DrawerBodyStylesProps {
42
+ children: ReactNode;
43
+ className?: string;
44
+ ref?: Ref<HTMLDivElement>;
45
+ }
46
+ declare const DrawerBody: {
47
+ ({ children, inset, className, ref, ...rest }: DrawerBodyProps): react_jsx_runtime.JSX.Element;
48
+ displayName: string;
49
+ };
50
+
51
+ type DrawerCloseProps = Dialog.DialogCloseProps & {
52
+ ref?: Ref<HTMLButtonElement>;
53
+ };
54
+
55
+ type DrawerCloseButtonProps = DrawerCloseProps & Pick<IconButtonProps, 'size' | 'intent' | 'design' | 'aria-label'>;
56
+ declare const DrawerCloseButton: {
57
+ ({ "aria-label": ariaLabel, className, size, intent, design, children, ref, ...rest }: DrawerCloseButtonProps): react_jsx_runtime.JSX.Element;
58
+ displayName: string;
59
+ };
60
+
61
+ declare const drawerContentStyles: (props?: ({
62
+ size?: "sm" | "md" | "lg" | "fluid" | "fullscreen" | null | undefined;
63
+ side?: "right" | "left" | "top" | "bottom" | null | undefined;
64
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
65
+ type DrawerContentStylesProps = VariantProps<typeof drawerContentStyles>;
66
+
67
+ type DrawerContentProps = Dialog.DialogContentProps & DrawerContentStylesProps & {
68
+ ref?: Ref<HTMLDivElement>;
69
+ };
70
+ declare const DrawerContent: {
71
+ ({ className, size, side, onInteractOutside, ref, ...rest }: DrawerContentProps): react_jsx_runtime.JSX.Element;
72
+ displayName: string;
73
+ };
74
+
75
+ type DrawerDescriptionProps = Dialog.DialogDescriptionProps & {
76
+ ref?: Ref<HTMLParagraphElement>;
77
+ };
78
+ declare const DrawerDescription: {
79
+ (props: DrawerDescriptionProps): react_jsx_runtime.JSX.Element;
80
+ displayName: string;
81
+ };
82
+
83
+ type DrawerFooterProps = ComponentPropsWithoutRef<'footer'> & {
84
+ ref?: Ref<HTMLDivElement>;
85
+ };
86
+ declare const DrawerFooter: {
87
+ ({ className, ref, ...rest }: DrawerFooterProps): ReactElement;
88
+ displayName: string;
89
+ };
90
+
91
+ interface DrawerHeaderProps {
92
+ children: ReactNode;
93
+ className?: string;
94
+ ref?: Ref<HTMLDivElement>;
95
+ }
96
+ declare const DrawerHeader: {
97
+ ({ children, className, ref, ...rest }: DrawerHeaderProps): ReactElement;
98
+ displayName: string;
99
+ };
100
+
101
+ type DrawerOverlayProps = Dialog.DialogOverlayProps & {
102
+ ref?: Ref<HTMLDivElement>;
103
+ };
104
+ declare const DrawerOverlay: {
105
+ ({ className, ref, ...rest }: DrawerOverlayProps): ReactElement;
106
+ displayName: string;
107
+ };
108
+
109
+ type DrawerPortalProps = Dialog.DialogPortalProps;
110
+ declare const DrawerPortal: {
111
+ ({ children, ...rest }: DrawerPortalProps): ReactElement;
112
+ displayName: string;
113
+ };
114
+
115
+ type DrawerTitleProps = Dialog.DialogTitleProps & {
116
+ ref?: Ref<HTMLHeadingElement>;
117
+ };
118
+ declare const DrawerTitle: {
119
+ ({ className, ref, ...others }: DrawerTitleProps): react_jsx_runtime.JSX.Element;
120
+ displayName: string;
121
+ };
122
+
123
+ interface DrawerTriggerProps extends Dialog.DialogTriggerProps {
124
+ /**
125
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
126
+ */
127
+ asChild?: boolean;
128
+ ref?: Ref<HTMLButtonElement>;
129
+ }
130
+ declare const DrawerTrigger: {
131
+ (props: DrawerTriggerProps): ReactElement;
132
+ displayName: string;
133
+ };
134
+
135
+ declare const Drawer: typeof Drawer$1 & {
136
+ Trigger: typeof DrawerTrigger;
137
+ Portal: typeof DrawerPortal;
138
+ Overlay: typeof DrawerOverlay;
139
+ Content: typeof DrawerContent;
140
+ Header: typeof DrawerHeader;
141
+ Body: typeof DrawerBody;
142
+ Footer: typeof DrawerFooter;
143
+ CloseButton: typeof DrawerCloseButton;
144
+ Title: typeof DrawerTitle;
145
+ Description: typeof DrawerDescription;
146
+ };
147
+
148
+ export { Drawer, type DrawerBodyProps, type DrawerCloseButtonProps, type DrawerCloseProps, type DrawerContentProps, type DrawerDescriptionProps, type DrawerFooterProps, type DrawerHeaderProps, type DrawerOverlayProps, type DrawerPortalProps, type DrawerProps, type DrawerTitleProps, type DrawerTriggerProps };
@@ -0,0 +1,148 @@
1
+ import { Dialog } from 'radix-ui';
2
+ import { ReactElement, ReactNode, Ref, ComponentPropsWithoutRef } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+ import { IconButtonProps } from '../icon-button/index.js';
7
+ import '../button/index.js';
8
+
9
+ interface DrawerProps {
10
+ /**
11
+ * Children of the component.
12
+ */
13
+ children?: Dialog.DialogProps['children'];
14
+ /**
15
+ * Specifies if the dialog is open or not.
16
+ */
17
+ open?: Dialog.DialogProps['open'];
18
+ /**
19
+ * Default open state.
20
+ */
21
+ defaultOpen?: Dialog.DialogProps['defaultOpen'];
22
+ /**
23
+ * Handler executed on every dialog open state change.
24
+ */
25
+ onOpenChange?: Dialog.DialogProps['onOpenChange'];
26
+ /**
27
+ * Specifies if the dialog is a modal.
28
+ */
29
+ modal?: Dialog.DialogProps['modal'];
30
+ }
31
+ declare const Drawer$1: {
32
+ ({ children, ...rest }: DrawerProps): ReactElement;
33
+ displayName: string;
34
+ };
35
+
36
+ declare const drawerBodyStyles: (props?: ({
37
+ inset?: boolean | null | undefined;
38
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
39
+ type DrawerBodyStylesProps = VariantProps<typeof drawerBodyStyles>;
40
+
41
+ interface DrawerBodyProps extends DrawerBodyStylesProps {
42
+ children: ReactNode;
43
+ className?: string;
44
+ ref?: Ref<HTMLDivElement>;
45
+ }
46
+ declare const DrawerBody: {
47
+ ({ children, inset, className, ref, ...rest }: DrawerBodyProps): react_jsx_runtime.JSX.Element;
48
+ displayName: string;
49
+ };
50
+
51
+ type DrawerCloseProps = Dialog.DialogCloseProps & {
52
+ ref?: Ref<HTMLButtonElement>;
53
+ };
54
+
55
+ type DrawerCloseButtonProps = DrawerCloseProps & Pick<IconButtonProps, 'size' | 'intent' | 'design' | 'aria-label'>;
56
+ declare const DrawerCloseButton: {
57
+ ({ "aria-label": ariaLabel, className, size, intent, design, children, ref, ...rest }: DrawerCloseButtonProps): react_jsx_runtime.JSX.Element;
58
+ displayName: string;
59
+ };
60
+
61
+ declare const drawerContentStyles: (props?: ({
62
+ size?: "sm" | "md" | "lg" | "fluid" | "fullscreen" | null | undefined;
63
+ side?: "right" | "left" | "top" | "bottom" | null | undefined;
64
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
65
+ type DrawerContentStylesProps = VariantProps<typeof drawerContentStyles>;
66
+
67
+ type DrawerContentProps = Dialog.DialogContentProps & DrawerContentStylesProps & {
68
+ ref?: Ref<HTMLDivElement>;
69
+ };
70
+ declare const DrawerContent: {
71
+ ({ className, size, side, onInteractOutside, ref, ...rest }: DrawerContentProps): react_jsx_runtime.JSX.Element;
72
+ displayName: string;
73
+ };
74
+
75
+ type DrawerDescriptionProps = Dialog.DialogDescriptionProps & {
76
+ ref?: Ref<HTMLParagraphElement>;
77
+ };
78
+ declare const DrawerDescription: {
79
+ (props: DrawerDescriptionProps): react_jsx_runtime.JSX.Element;
80
+ displayName: string;
81
+ };
82
+
83
+ type DrawerFooterProps = ComponentPropsWithoutRef<'footer'> & {
84
+ ref?: Ref<HTMLDivElement>;
85
+ };
86
+ declare const DrawerFooter: {
87
+ ({ className, ref, ...rest }: DrawerFooterProps): ReactElement;
88
+ displayName: string;
89
+ };
90
+
91
+ interface DrawerHeaderProps {
92
+ children: ReactNode;
93
+ className?: string;
94
+ ref?: Ref<HTMLDivElement>;
95
+ }
96
+ declare const DrawerHeader: {
97
+ ({ children, className, ref, ...rest }: DrawerHeaderProps): ReactElement;
98
+ displayName: string;
99
+ };
100
+
101
+ type DrawerOverlayProps = Dialog.DialogOverlayProps & {
102
+ ref?: Ref<HTMLDivElement>;
103
+ };
104
+ declare const DrawerOverlay: {
105
+ ({ className, ref, ...rest }: DrawerOverlayProps): ReactElement;
106
+ displayName: string;
107
+ };
108
+
109
+ type DrawerPortalProps = Dialog.DialogPortalProps;
110
+ declare const DrawerPortal: {
111
+ ({ children, ...rest }: DrawerPortalProps): ReactElement;
112
+ displayName: string;
113
+ };
114
+
115
+ type DrawerTitleProps = Dialog.DialogTitleProps & {
116
+ ref?: Ref<HTMLHeadingElement>;
117
+ };
118
+ declare const DrawerTitle: {
119
+ ({ className, ref, ...others }: DrawerTitleProps): react_jsx_runtime.JSX.Element;
120
+ displayName: string;
121
+ };
122
+
123
+ interface DrawerTriggerProps extends Dialog.DialogTriggerProps {
124
+ /**
125
+ * Change the component to the HTML tag or custom component of the only child. This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
126
+ */
127
+ asChild?: boolean;
128
+ ref?: Ref<HTMLButtonElement>;
129
+ }
130
+ declare const DrawerTrigger: {
131
+ (props: DrawerTriggerProps): ReactElement;
132
+ displayName: string;
133
+ };
134
+
135
+ declare const Drawer: typeof Drawer$1 & {
136
+ Trigger: typeof DrawerTrigger;
137
+ Portal: typeof DrawerPortal;
138
+ Overlay: typeof DrawerOverlay;
139
+ Content: typeof DrawerContent;
140
+ Header: typeof DrawerHeader;
141
+ Body: typeof DrawerBody;
142
+ Footer: typeof DrawerFooter;
143
+ CloseButton: typeof DrawerCloseButton;
144
+ Title: typeof DrawerTitle;
145
+ Description: typeof DrawerDescription;
146
+ };
147
+
148
+ export { Drawer, type DrawerBodyProps, type DrawerCloseButtonProps, type DrawerCloseProps, type DrawerContentProps, type DrawerDescriptionProps, type DrawerFooterProps, type DrawerHeaderProps, type DrawerOverlayProps, type DrawerPortalProps, type DrawerProps, type DrawerTitleProps, type DrawerTriggerProps };