@uisatin/ui 0.2.0 → 0.4.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 (359) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +10 -1
  3. package/{chunk-P4O6TGDR.js → chunk-3VVO5MY5.js} +28 -26
  4. package/chunk-47DDBME3.js +87 -0
  5. package/{chunk-SHDFUXYV.js → chunk-5663JVE5.js} +16 -18
  6. package/chunk-67CBFB6Y.js +99 -0
  7. package/chunk-6DWLTGRQ.js +130 -0
  8. package/chunk-6GNMUJQ4.js +45 -0
  9. package/chunk-6JTSZAGO.js +177 -0
  10. package/chunk-6RLSRMB5.js +14 -0
  11. package/chunk-6Y6CY2DP.js +55 -0
  12. package/{chunk-O7F3CIDV.js → chunk-7NV53EL5.js} +10 -12
  13. package/{chunk-BNZVTLHV.js → chunk-7SVMERPH.js} +25 -21
  14. package/chunk-A52HUWVM.js +24 -0
  15. package/chunk-AKEZCWNW.js +29 -0
  16. package/{chunk-SH6NG6VN.js → chunk-APRVUOD6.js} +6 -8
  17. package/{chunk-QUF2IPOZ.js → chunk-C435UD7V.js} +14 -15
  18. package/{chunk-B2K45IUR.js → chunk-C6WRJ7DG.js} +5 -7
  19. package/{chunk-PF3YBUKT.js → chunk-CQFAMWZI.js} +16 -15
  20. package/chunk-DAKVTPYZ.js +86 -0
  21. package/{chunk-VAGIAREV.js → chunk-DMZW4LGU.js} +29 -26
  22. package/chunk-EBZHGRM5.js +46 -0
  23. package/chunk-EHEXE2UV.js +44 -0
  24. package/{chunk-72OCFAPT.js → chunk-EQAFDIPE.js} +26 -23
  25. package/{chunk-LLHTVIM3.js → chunk-EXKSKYG3.js} +7 -9
  26. package/chunk-FB6DG3LR.js +35 -0
  27. package/chunk-GH2DEOGO.js +67 -0
  28. package/{chunk-YG7JOOLJ.js → chunk-GKDMCY2S.js} +5 -7
  29. package/chunk-GTFUAA6H.js +42 -0
  30. package/{chunk-TX3H3QMA.js → chunk-HI6QIG55.js} +71 -70
  31. package/{chunk-6QMSWITQ.js → chunk-HZV7EXGU.js} +24 -26
  32. package/{chunk-A5XEM3GF.js → chunk-IKJIR6VL.js} +34 -36
  33. package/{chunk-DO3TBNSC.js → chunk-INJWE2LD.js} +15 -17
  34. package/chunk-J5UQPROI.js +56 -0
  35. package/{chunk-6YXUBP27.js → chunk-JCR5TWTF.js} +72 -67
  36. package/chunk-JKOBDLP3.js +25 -0
  37. package/chunk-JR3VVDV6.js +37 -0
  38. package/chunk-JYGCZWET.js +112 -0
  39. package/{chunk-UGRSWP6U.js → chunk-K5G5OEV5.js} +10 -12
  40. package/{chunk-B6V4VSGH.js → chunk-KDU7AT2T.js} +14 -15
  41. package/chunk-KITXKIYW.js +104 -0
  42. package/{chunk-NN6PKJWS.js → chunk-KQNA22D3.js} +7 -9
  43. package/{chunk-YPNKBE5X.js → chunk-L5PPN42A.js} +14 -9
  44. package/chunk-LAOE6Y57.js +95 -0
  45. package/chunk-LI5VYDLN.js +195 -0
  46. package/{chunk-7TXHCRAG.js → chunk-LKSFTNPF.js} +8 -10
  47. package/chunk-LLW3X4ZJ.js +39 -0
  48. package/{chunk-RTJ76X5U.js → chunk-LWRB4DED.js} +2 -4
  49. package/{chunk-NSRTTYQ4.js → chunk-M7RILZVW.js} +42 -35
  50. package/{chunk-LW3TRU5W.js → chunk-MOGWOUCN.js} +28 -16
  51. package/chunk-NCIRJ5V2.js +108 -0
  52. package/chunk-NQL6SIIB.js +168 -0
  53. package/chunk-NTSU44FY.js +81 -0
  54. package/{chunk-3DINAQLL.js → chunk-P36KBUYD.js} +33 -29
  55. package/chunk-P6RHT2VM.js +147 -0
  56. package/{chunk-CL2II6BX.js → chunk-PD2KD5OR.js} +11 -13
  57. package/{chunk-XL75JRUA.js → chunk-PP46SY7M.js} +42 -22
  58. package/{chunk-L6NCCSIP.js → chunk-PTK4QAOQ.js} +36 -29
  59. package/{chunk-HL42K2NH.js → chunk-Q7KVC5B4.js} +17 -17
  60. package/{chunk-H4NU7NPO.js → chunk-R3DTMBDT.js} +62 -61
  61. package/{chunk-KNUWZNFV.js → chunk-R4KPFBMK.js} +4 -6
  62. package/chunk-R5TQ3HNB.js +71 -0
  63. package/chunk-RFSPJECL.js +84 -0
  64. package/chunk-RPL6FRVX.js +88 -0
  65. package/{chunk-AN2RNJLR.js → chunk-STYOBAC7.js} +16 -16
  66. package/{chunk-X3PQANZO.js → chunk-SVUWR3HD.js} +47 -46
  67. package/chunk-T7P3OEBP.js +128 -0
  68. package/{chunk-QS4N4MNP.js → chunk-TB3ZRV3Y.js} +18 -20
  69. package/{chunk-MYEZXZZC.js → chunk-TOY6YPTG.js} +23 -25
  70. package/{chunk-XILQ7GXE.js → chunk-U6X6ODDJ.js} +11 -13
  71. package/{chunk-XZNHT6MO.js → chunk-UAJ6M34K.js} +115 -61
  72. package/chunk-W2EH6RY5.js +42 -0
  73. package/{chunk-FDKIX4DC.js → chunk-W2QQQWNE.js} +7 -9
  74. package/{chunk-LZMKSFCF.js → chunk-WALANB3V.js} +10 -12
  75. package/chunk-WCUR44O6.js +88 -0
  76. package/{chunk-BNTPPZCK.js → chunk-WJYJMX5S.js} +37 -39
  77. package/chunk-WZSLDYUU.js +131 -0
  78. package/{chunk-J3NSDRVH.js → chunk-XETMIETJ.js} +0 -2
  79. package/chunk-XU6JJDMZ.js +117 -0
  80. package/{chunk-BKZBWPUH.js → chunk-XWPH7C2W.js} +9 -11
  81. package/{chunk-GICKPMJU.js → chunk-YXWXSRXG.js} +31 -31
  82. package/{chunk-2HKBZFIK.js → chunk-YY236ZSJ.js} +31 -31
  83. package/{chunk-YX5VNRJX.js → chunk-YYFAZQ25.js} +0 -2
  84. package/{chunk-Y5AYU7PK.js → chunk-ZHFIWDGF.js} +0 -2
  85. package/components/accordion.js +2 -4
  86. package/components/action-button.d.ts +37 -0
  87. package/components/action-button.js +5 -0
  88. package/components/agent-loading.d.ts +2 -0
  89. package/components/agent-loading.js +2 -4
  90. package/components/agent-picker.js +5 -5
  91. package/components/agent-suggestion.js +5 -6
  92. package/components/alert.d.ts +37 -0
  93. package/components/alert.js +5 -0
  94. package/components/announcement-bar.js +7 -7
  95. package/components/attachment.js +5 -5
  96. package/components/avatar.js +4 -6
  97. package/components/badge.js +2 -4
  98. package/components/banner-mesh.js +1 -3
  99. package/components/banner.js +6 -6
  100. package/components/bar-chart.js +10 -11
  101. package/components/breadcrumb.js +5 -6
  102. package/components/button-group.d.ts +26 -0
  103. package/components/button-group.js +5 -0
  104. package/components/button.d.ts +13 -1
  105. package/components/button.js +4 -4
  106. package/components/card.js +5 -5
  107. package/components/channel-chart.js +10 -11
  108. package/components/chart.js +9 -10
  109. package/components/checkbox.js +2 -4
  110. package/components/chip.js +2 -4
  111. package/components/citations.d.ts +6 -4
  112. package/components/citations.js +4 -5
  113. package/components/code-block.js +5 -5
  114. package/components/combobox.d.ts +12 -3
  115. package/components/combobox.js +10 -10
  116. package/components/command-menu.d.ts +6 -2
  117. package/components/command-menu.js +5 -6
  118. package/components/context-menu.d.ts +12 -5
  119. package/components/context-menu.js +5 -6
  120. package/components/cookie-consent.js +5 -5
  121. package/components/date-picker.d.ts +26 -14
  122. package/components/date-picker.js +9 -9
  123. package/components/decision-card.js +7 -7
  124. package/components/dialog.d.ts +6 -8
  125. package/components/dialog.js +6 -5
  126. package/components/donut-chart.js +10 -11
  127. package/components/dot.js +2 -4
  128. package/components/dropdown.d.ts +6 -1
  129. package/components/dropdown.js +4 -5
  130. package/components/empty-state.js +2 -4
  131. package/components/field-group.d.ts +27 -0
  132. package/components/field-group.js +3 -0
  133. package/components/file-upload.js +7 -7
  134. package/components/floating.js +1 -3
  135. package/components/form-field.d.ts +38 -1
  136. package/components/form-field.js +2 -4
  137. package/components/form.d.ts +47 -0
  138. package/components/form.js +3 -0
  139. package/components/hover-card.d.ts +5 -2
  140. package/components/hover-card.js +2 -4
  141. package/components/input-group.d.ts +21 -0
  142. package/components/input-group.js +6 -0
  143. package/components/input-otp.d.ts +4 -2
  144. package/components/input-otp.js +7 -8
  145. package/components/input.d.ts +5 -1
  146. package/components/input.js +3 -5
  147. package/components/kbd.js +2 -4
  148. package/components/labels.d.ts +86 -0
  149. package/components/labels.js +1 -0
  150. package/components/line-chart.js +11 -12
  151. package/components/link.d.ts +20 -0
  152. package/components/link.js +3 -0
  153. package/components/list.d.ts +46 -0
  154. package/components/list.js +2 -0
  155. package/components/message-actions.js +5 -5
  156. package/components/message.js +8 -8
  157. package/components/number-input.d.ts +4 -2
  158. package/components/number-input.js +7 -8
  159. package/components/pagination.js +6 -6
  160. package/components/password-input.d.ts +16 -0
  161. package/components/password-input.js +7 -0
  162. package/components/popover.d.ts +11 -5
  163. package/components/popover.js +3 -4
  164. package/components/progress.js +2 -4
  165. package/components/prompt-bar.js +6 -6
  166. package/components/radio.js +2 -4
  167. package/components/search-bar.js +3 -5
  168. package/components/segmented-control.d.ts +4 -2
  169. package/components/segmented-control.js +3 -5
  170. package/components/select.d.ts +11 -2
  171. package/components/select.js +6 -7
  172. package/components/selectable-card.d.ts +37 -0
  173. package/components/selectable-card.js +2 -0
  174. package/components/selectable-checkbox.d.ts +14 -0
  175. package/components/selectable-checkbox.js +4 -0
  176. package/components/selectable-radio.d.ts +16 -0
  177. package/components/selectable-radio.js +3 -0
  178. package/components/separator.d.ts +18 -0
  179. package/components/separator.js +2 -0
  180. package/components/sheet.d.ts +4 -2
  181. package/components/sheet.js +7 -6
  182. package/components/sidebar.js +2 -4
  183. package/components/skeleton.js +2 -4
  184. package/components/slider.d.ts +6 -2
  185. package/components/slider.js +7 -8
  186. package/components/sliding-indicator.js +1 -3
  187. package/components/spinner.d.ts +18 -0
  188. package/components/spinner.js +3 -0
  189. package/components/split-button.d.ts +24 -0
  190. package/components/split-button.js +8 -0
  191. package/components/streaming-text.js +2 -4
  192. package/components/switch.js +2 -4
  193. package/components/table.d.ts +16 -5
  194. package/components/table.js +4 -5
  195. package/components/tabs.d.ts +4 -2
  196. package/components/tabs.js +3 -5
  197. package/components/textarea.js +3 -5
  198. package/components/thinking.js +3 -5
  199. package/components/toast.js +5 -5
  200. package/components/toggle.js +2 -4
  201. package/components/tooltip.d.ts +5 -2
  202. package/components/tooltip.js +3 -5
  203. package/index.d.ts +17 -2
  204. package/index.js +82 -231
  205. package/lib/utils.d.ts +8 -1
  206. package/lib/utils.js +1 -3
  207. package/package.json +11 -1
  208. package/styles.css +1 -1
  209. package/theme/create-theme.d.ts +6 -2
  210. package/theme/index.js +1 -0
  211. package/chunk-2HKBZFIK.js.map +0 -1
  212. package/chunk-3DINAQLL.js.map +0 -1
  213. package/chunk-3ERGAHKA.js +0 -179
  214. package/chunk-3ERGAHKA.js.map +0 -1
  215. package/chunk-6C7CGJX2.js +0 -86
  216. package/chunk-6C7CGJX2.js.map +0 -1
  217. package/chunk-6QMSWITQ.js.map +0 -1
  218. package/chunk-6YXUBP27.js.map +0 -1
  219. package/chunk-72OCFAPT.js.map +0 -1
  220. package/chunk-7TXHCRAG.js.map +0 -1
  221. package/chunk-A5XEM3GF.js.map +0 -1
  222. package/chunk-AN2RNJLR.js.map +0 -1
  223. package/chunk-B2K45IUR.js.map +0 -1
  224. package/chunk-B6V4VSGH.js.map +0 -1
  225. package/chunk-BKZBWPUH.js.map +0 -1
  226. package/chunk-BNTPPZCK.js.map +0 -1
  227. package/chunk-BNZVTLHV.js.map +0 -1
  228. package/chunk-CL2II6BX.js.map +0 -1
  229. package/chunk-D7RZNTFC.js +0 -95
  230. package/chunk-D7RZNTFC.js.map +0 -1
  231. package/chunk-DETGJAIC.js +0 -147
  232. package/chunk-DETGJAIC.js.map +0 -1
  233. package/chunk-DO3TBNSC.js.map +0 -1
  234. package/chunk-ESC5JCVQ.js +0 -90
  235. package/chunk-ESC5JCVQ.js.map +0 -1
  236. package/chunk-FDKIX4DC.js.map +0 -1
  237. package/chunk-GICKPMJU.js.map +0 -1
  238. package/chunk-GQA24FYG.js +0 -57
  239. package/chunk-GQA24FYG.js.map +0 -1
  240. package/chunk-H4NU7NPO.js.map +0 -1
  241. package/chunk-H63FYCMY.js +0 -11
  242. package/chunk-H63FYCMY.js.map +0 -1
  243. package/chunk-HL42K2NH.js.map +0 -1
  244. package/chunk-HNQUX43Z.js +0 -109
  245. package/chunk-HNQUX43Z.js.map +0 -1
  246. package/chunk-HRKPV66B.js +0 -32
  247. package/chunk-HRKPV66B.js.map +0 -1
  248. package/chunk-J3NSDRVH.js.map +0 -1
  249. package/chunk-JPNWHWAQ.js +0 -151
  250. package/chunk-JPNWHWAQ.js.map +0 -1
  251. package/chunk-KNUWZNFV.js.map +0 -1
  252. package/chunk-L6NCCSIP.js.map +0 -1
  253. package/chunk-LLHTVIM3.js.map +0 -1
  254. package/chunk-LW3TRU5W.js.map +0 -1
  255. package/chunk-LZMKSFCF.js.map +0 -1
  256. package/chunk-MR3JDI7E.js +0 -122
  257. package/chunk-MR3JDI7E.js.map +0 -1
  258. package/chunk-MYEZXZZC.js.map +0 -1
  259. package/chunk-NN6PKJWS.js.map +0 -1
  260. package/chunk-NSRTTYQ4.js.map +0 -1
  261. package/chunk-O7F3CIDV.js.map +0 -1
  262. package/chunk-P4O6TGDR.js.map +0 -1
  263. package/chunk-PF3YBUKT.js.map +0 -1
  264. package/chunk-PVOLDO4G.js +0 -47
  265. package/chunk-PVOLDO4G.js.map +0 -1
  266. package/chunk-QS4N4MNP.js.map +0 -1
  267. package/chunk-QUF2IPOZ.js.map +0 -1
  268. package/chunk-RTJ76X5U.js.map +0 -1
  269. package/chunk-SH6NG6VN.js.map +0 -1
  270. package/chunk-SHDFUXYV.js.map +0 -1
  271. package/chunk-TKO44NDI.js +0 -84
  272. package/chunk-TKO44NDI.js.map +0 -1
  273. package/chunk-TX3H3QMA.js.map +0 -1
  274. package/chunk-UBNHSZSE.js +0 -88
  275. package/chunk-UBNHSZSE.js.map +0 -1
  276. package/chunk-UC3ZJWOD.js +0 -73
  277. package/chunk-UC3ZJWOD.js.map +0 -1
  278. package/chunk-UGRSWP6U.js.map +0 -1
  279. package/chunk-VAGIAREV.js.map +0 -1
  280. package/chunk-WTMZT3IT.js +0 -105
  281. package/chunk-WTMZT3IT.js.map +0 -1
  282. package/chunk-WX6BP5ZP.js +0 -39
  283. package/chunk-WX6BP5ZP.js.map +0 -1
  284. package/chunk-X3PQANZO.js.map +0 -1
  285. package/chunk-XILQ7GXE.js.map +0 -1
  286. package/chunk-XL75JRUA.js.map +0 -1
  287. package/chunk-XZNHT6MO.js.map +0 -1
  288. package/chunk-Y5AYU7PK.js.map +0 -1
  289. package/chunk-YG7JOOLJ.js.map +0 -1
  290. package/chunk-YPJYW624.js +0 -195
  291. package/chunk-YPJYW624.js.map +0 -1
  292. package/chunk-YPNKBE5X.js.map +0 -1
  293. package/chunk-YX5VNRJX.js.map +0 -1
  294. package/components/accordion.js.map +0 -1
  295. package/components/agent-loading.js.map +0 -1
  296. package/components/agent-picker.js.map +0 -1
  297. package/components/agent-suggestion.js.map +0 -1
  298. package/components/announcement-bar.js.map +0 -1
  299. package/components/attachment.js.map +0 -1
  300. package/components/avatar.js.map +0 -1
  301. package/components/badge.js.map +0 -1
  302. package/components/banner-mesh.js.map +0 -1
  303. package/components/banner.js.map +0 -1
  304. package/components/bar-chart.js.map +0 -1
  305. package/components/breadcrumb.js.map +0 -1
  306. package/components/button.js.map +0 -1
  307. package/components/card.js.map +0 -1
  308. package/components/channel-chart.js.map +0 -1
  309. package/components/chart.js.map +0 -1
  310. package/components/checkbox.js.map +0 -1
  311. package/components/chip.js.map +0 -1
  312. package/components/citations.js.map +0 -1
  313. package/components/code-block.js.map +0 -1
  314. package/components/combobox.js.map +0 -1
  315. package/components/command-menu.js.map +0 -1
  316. package/components/context-menu.js.map +0 -1
  317. package/components/cookie-consent.js.map +0 -1
  318. package/components/date-picker.js.map +0 -1
  319. package/components/decision-card.js.map +0 -1
  320. package/components/dialog.js.map +0 -1
  321. package/components/donut-chart.js.map +0 -1
  322. package/components/dot.js.map +0 -1
  323. package/components/dropdown.js.map +0 -1
  324. package/components/empty-state.js.map +0 -1
  325. package/components/file-upload.js.map +0 -1
  326. package/components/floating.js.map +0 -1
  327. package/components/form-field.js.map +0 -1
  328. package/components/hover-card.js.map +0 -1
  329. package/components/input-otp.js.map +0 -1
  330. package/components/input.js.map +0 -1
  331. package/components/kbd.js.map +0 -1
  332. package/components/line-chart.js.map +0 -1
  333. package/components/message-actions.js.map +0 -1
  334. package/components/message.js.map +0 -1
  335. package/components/number-input.js.map +0 -1
  336. package/components/pagination.js.map +0 -1
  337. package/components/popover.js.map +0 -1
  338. package/components/progress.js.map +0 -1
  339. package/components/prompt-bar.js.map +0 -1
  340. package/components/radio.js.map +0 -1
  341. package/components/search-bar.js.map +0 -1
  342. package/components/segmented-control.js.map +0 -1
  343. package/components/select.js.map +0 -1
  344. package/components/sheet.js.map +0 -1
  345. package/components/sidebar.js.map +0 -1
  346. package/components/skeleton.js.map +0 -1
  347. package/components/slider.js.map +0 -1
  348. package/components/sliding-indicator.js.map +0 -1
  349. package/components/streaming-text.js.map +0 -1
  350. package/components/switch.js.map +0 -1
  351. package/components/table.js.map +0 -1
  352. package/components/tabs.js.map +0 -1
  353. package/components/textarea.js.map +0 -1
  354. package/components/thinking.js.map +0 -1
  355. package/components/toast.js.map +0 -1
  356. package/components/toggle.js.map +0 -1
  357. package/components/tooltip.js.map +0 -1
  358. package/index.js.map +0 -1
  359. package/lib/utils.js.map +0 -1
@@ -0,0 +1,45 @@
1
+ import { Thinking } from './chunk-WCUR44O6.js';
2
+ import { MessageActions } from './chunk-STYOBAC7.js';
3
+ import { cn } from './chunk-EHEXE2UV.js';
4
+ import 'react';
5
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
+
7
+ function Message({
8
+ role = "assistant",
9
+ thinking,
10
+ thinkingLabel = "Thought for a moment",
11
+ source,
12
+ actions = true,
13
+ timestamp,
14
+ onFeedback,
15
+ onCopy,
16
+ onShare,
17
+ className,
18
+ children,
19
+ ...props
20
+ }) {
21
+ if (role === "user") {
22
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "message", "data-role": "user", className: cn("sa:flex sa:flex-col sa:items-end sa:gap-2", className), ...props, children: [
23
+ source && /* @__PURE__ */ jsx(SourceCard, { source }),
24
+ /* @__PURE__ */ jsx("div", { className: "sa:max-w-full sa:rounded-xl sa:rounded-br-xs sa:bg-action-inverse-bg sa:px-3 sa:py-2", children: /* @__PURE__ */ jsx("div", { className: "sa:max-w-64 sa:text-body sa:break-words sa:text-text-on-inverse", children }) })
25
+ ] });
26
+ }
27
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "message", "data-role": "assistant", className: cn("sa:flex sa:flex-col sa:items-start sa:gap-3", className), ...props, children: [
28
+ thinking && thinking.length > 0 && /* @__PURE__ */ jsx(Thinking, { state: "collapsed", label: thinkingLabel, steps: thinking }),
29
+ /* @__PURE__ */ jsx("div", { className: "sa:w-full sa:text-body sa:break-words sa:text-text-default", children }),
30
+ actions && /* @__PURE__ */ jsx(MessageActions, { timestamp, onFeedback, onCopy, onShare })
31
+ ] });
32
+ }
33
+ function SourceCard({ source }) {
34
+ const body = /* @__PURE__ */ jsxs(Fragment, { children: [
35
+ source.icon && /* @__PURE__ */ jsx("span", { className: "sa:flex sa:size-4 sa:shrink-0 sa:items-center sa:justify-center sa:[&>*]:size-4", children: source.icon }),
36
+ /* @__PURE__ */ jsxs("span", { className: "sa:flex sa:min-w-0 sa:flex-col sa:overflow-clip sa:whitespace-nowrap", children: [
37
+ /* @__PURE__ */ jsx("span", { className: "sa:truncate sa:text-sm sa:leading-[18px] sa:font-medium sa:text-text-default", children: source.title }),
38
+ source.url != null && /* @__PURE__ */ jsx("span", { className: "sa:truncate sa:text-xs sa:leading-3 sa:tracking-normal sa:text-text-muted", children: source.url })
39
+ ] })
40
+ ] });
41
+ const cls = "sa:flex sa:max-w-full sa:items-center sa:gap-2.5 sa:overflow-clip sa:rounded-lg sa:border sa:border-border-subtle sa:bg-bg-canvas sa:py-2 sa:pr-3 sa:pl-2.5";
42
+ return source.href ? /* @__PURE__ */ jsx("a", { href: source.href, className: cls, children: body }) : /* @__PURE__ */ jsx("div", { className: cls, children: body });
43
+ }
44
+
45
+ export { Message };
@@ -0,0 +1,177 @@
1
+ import { cn } from './chunk-EHEXE2UV.js';
2
+ import 'react';
3
+ import { cva } from 'class-variance-authority';
4
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
5
+
6
+ var chipVariants = cva(
7
+ [
8
+ "sa:group/chip sa:relative sa:inline-flex sa:shrink-0 sa:items-center sa:rounded-pill sa:whitespace-nowrap sa:select-none",
9
+ "sa:text-sm sa:leading-(--sa-text-sm--line-height) sa:font-medium",
10
+ "sa:transition-[background-color,border-color,color,box-shadow] sa:duration-(--sa-duration-fast) sa:ease-(--sa-ease-out)",
11
+ "sa:focus-visible:outline-none",
12
+ "sa:data-[disabled]:pointer-events-none sa:data-[disabled]:opacity-50 sa:data-[disabled]:[box-shadow:none]"
13
+ ],
14
+ {
15
+ variants: {
16
+ variant: {
17
+ outline: "sa:border",
18
+ subtle: ""
19
+ },
20
+ size: {
21
+ md: "sa:h-control-height",
22
+ sm: "sa:h-control-height-xs"
23
+ },
24
+ neutral: { true: "sa:text-text-default", false: "sa:text-tone-fg" }
25
+ },
26
+ compoundVariants: [
27
+ {
28
+ variant: "sa:outline",
29
+ neutral: true,
30
+ className: [
31
+ "sa:border-border-default sa:bg-bg-popover sa:[box-shadow:0_1px_2px_0_var(--effect-shadow-xs)]",
32
+ "sa:satin-hover:border-border-strong sa:satin-hover:bg-bg-hover",
33
+ "sa:satin-focus:border-border-strong sa:satin-focus:bg-bg-popover sa:satin-focus:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
34
+ "sa:has-[button:focus-visible]:border-border-strong sa:has-[button:focus-visible]:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
35
+ "sa:satin-pressed:border-border-strong sa:satin-pressed:bg-border-input sa:satin-pressed:[box-shadow:none]",
36
+ "sa:data-[disabled]:border-border-strong"
37
+ ]
38
+ },
39
+ {
40
+ variant: "sa:outline",
41
+ neutral: false,
42
+ className: [
43
+ "sa:border-tone-border sa:bg-tone-bg sa:[box-shadow:0_1px_2px_0_var(--effect-shadow-xs)]",
44
+ "sa:satin-hover:bg-tone-border",
45
+ "sa:satin-focus:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
46
+ "sa:has-[button:focus-visible]:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
47
+ "sa:satin-pressed:bg-tone-border sa:satin-pressed:[box-shadow:none]"
48
+ ]
49
+ },
50
+ {
51
+ variant: "subtle",
52
+ neutral: true,
53
+ className: [
54
+ "sa:bg-action-secondary-bg",
55
+ "sa:satin-hover:bg-border-input",
56
+ "sa:satin-focus:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
57
+ "sa:has-[button:focus-visible]:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
58
+ "sa:satin-pressed:bg-border-input sa:satin-pressed:[box-shadow:inset_0_0_0_1px_var(--border-strong)]"
59
+ ]
60
+ },
61
+ {
62
+ variant: "subtle",
63
+ neutral: false,
64
+ className: [
65
+ "sa:bg-tone-bg",
66
+ "sa:satin-hover:bg-tone-border",
67
+ "sa:satin-focus:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
68
+ "sa:has-[button:focus-visible]:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
69
+ "sa:satin-pressed:bg-tone-border"
70
+ ]
71
+ }
72
+ ],
73
+ defaultVariants: { variant: "subtle", size: "md", neutral: true }
74
+ }
75
+ );
76
+ function CloseGlyph({ size }) {
77
+ return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx(
78
+ "path",
79
+ {
80
+ d: "M4.50551 11.4951L8.0006 8M8.0006 8L11.4957 4.50491M8.0006 8L4.50551 4.50491M8.0006 8L11.4957 11.4951",
81
+ stroke: "currentColor",
82
+ strokeWidth: "1.25",
83
+ strokeLinecap: "round",
84
+ strokeLinejoin: "round"
85
+ }
86
+ ) });
87
+ }
88
+ function Chip({
89
+ className,
90
+ variant = "subtle",
91
+ size = "md",
92
+ tone = "neutral",
93
+ dot = false,
94
+ avatar,
95
+ onRemove,
96
+ removeLabel,
97
+ disabled = false,
98
+ children,
99
+ type,
100
+ ...props
101
+ }) {
102
+ const neutral = tone === "neutral";
103
+ const iconSize = size === "sm" ? 14 : 16;
104
+ const classes = cn(chipVariants({ variant, size, neutral }), className);
105
+ const label = typeof children === "string" ? children : void 0;
106
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [
107
+ dot && // Dot slot: 4px in, a 16px box with an 8px status dot (status/green fg in Figma).
108
+ /* @__PURE__ */ jsx("span", { "data-slot": "chip-dot", className: "sa:-mr-1 sa:flex sa:shrink-0 sa:items-center sa:pl-1", "aria-hidden": true, children: /* @__PURE__ */ jsx("span", { className: "sa:grid sa:size-4 sa:place-items-center", children: /* @__PURE__ */ jsx("span", { className: "sa:size-2 sa:rounded-full sa:bg-status-green-fg" }) }) }),
109
+ avatar && /* @__PURE__ */ jsx(
110
+ "span",
111
+ {
112
+ "data-slot": "chip-avatar",
113
+ className: "sa:-mr-1 sa:flex sa:shrink-0 sa:items-center sa:pl-1 sa:[&>*]:size-4 sa:[&>*]:rounded-full",
114
+ children: avatar
115
+ }
116
+ ),
117
+ /* @__PURE__ */ jsx("span", { "data-slot": "chip-label", className: cn("sa:flex sa:shrink-0 sa:items-center sa:px-2", onRemove && "sa:-mr-1"), children }),
118
+ onRemove && /* @__PURE__ */ jsx("span", { className: "sa:flex sa:shrink-0 sa:items-center sa:pr-1", children: /* @__PURE__ */ jsx(
119
+ "button",
120
+ {
121
+ type: "button",
122
+ "data-slot": "chip-remove",
123
+ disabled,
124
+ "aria-label": removeLabel ?? (label ? `Remove ${label}` : "Remove"),
125
+ onClick: onRemove,
126
+ className: cn(
127
+ "sa:grid sa:shrink-0 sa:place-items-center sa:rounded-pill sa:focus-visible:outline-none",
128
+ neutral ? "sa:text-text-muted" : "sa:text-tone-fg"
129
+ ),
130
+ children: /* @__PURE__ */ jsx(CloseGlyph, { size: iconSize })
131
+ }
132
+ ) })
133
+ ] });
134
+ if (onRemove) {
135
+ const { "data-force": force } = props;
136
+ return /* @__PURE__ */ jsx(
137
+ "span",
138
+ {
139
+ "data-slot": "chip",
140
+ "data-tone": tone,
141
+ "data-force": force,
142
+ "data-disabled": disabled || void 0,
143
+ className: classes,
144
+ children: content
145
+ }
146
+ );
147
+ }
148
+ return /* @__PURE__ */ jsx(
149
+ "button",
150
+ {
151
+ "data-slot": "chip",
152
+ "data-tone": tone,
153
+ "data-disabled": disabled || void 0,
154
+ type: type ?? "button",
155
+ disabled,
156
+ className: classes,
157
+ ...props,
158
+ children: content
159
+ }
160
+ );
161
+ }
162
+ function ChipAvatar({ initials, tone, className }) {
163
+ return /* @__PURE__ */ jsx(
164
+ "span",
165
+ {
166
+ "data-tone": tone,
167
+ "aria-hidden": true,
168
+ className: cn(
169
+ "sa:grid sa:size-4 sa:shrink-0 sa:place-items-center sa:overflow-hidden sa:rounded-full sa:bg-tone-bg sa:text-[7px] sa:leading-2 sa:font-semibold sa:text-tone-fg",
170
+ className
171
+ ),
172
+ children: initials
173
+ }
174
+ );
175
+ }
176
+
177
+ export { Chip, ChipAvatar, chipVariants };
@@ -0,0 +1,14 @@
1
+ import { useSelectableIds, SelectableCardBody } from './chunk-EBZHGRM5.js';
2
+ import { Checkbox } from './chunk-W2QQQWNE.js';
3
+ import 'react';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ function SelectableCheckbox({ title, description, icon, size = "md", className, children, id, ...props }) {
7
+ const { controlId, ...aria } = useSelectableIds(id, description);
8
+ return /* @__PURE__ */ jsxs("label", { htmlFor: controlId, "data-slot": "selectable-card", "data-size": size, "data-kind": "checkbox", className, children: [
9
+ /* @__PURE__ */ jsx(SelectableCardBody, { id: controlId, title, description, icon, size, children }),
10
+ /* @__PURE__ */ jsx(Checkbox, { id: controlId, ...aria, ...props })
11
+ ] });
12
+ }
13
+
14
+ export { SelectableCheckbox };
@@ -0,0 +1,55 @@
1
+ import { cn } from './chunk-EHEXE2UV.js';
2
+ import 'react';
3
+ import { Accordion as Accordion$1 } from 'radix-ui';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ function Accordion({ className, ...props }) {
7
+ return /* @__PURE__ */ jsx(Accordion$1.Root, { "data-slot": "accordion", className: cn("sa:flex sa:w-full sa:flex-col", className), ...props });
8
+ }
9
+ function AccordionItem({ title, icon, children, className, "data-force": force, ...props }) {
10
+ return /* @__PURE__ */ jsxs(Accordion$1.Item, { "data-slot": "accordion-item", className: cn("sa:border-b sa:border-border-subtle sa:py-1", className), ...props, children: [
11
+ /* @__PURE__ */ jsx(Accordion$1.Header, { className: "sa:flex", children: /* @__PURE__ */ jsxs(
12
+ Accordion$1.Trigger,
13
+ {
14
+ "data-force": force,
15
+ className: cn(
16
+ "sa:group sa:flex sa:h-10 sa:w-full sa:cursor-pointer sa:items-center sa:gap-3 sa:rounded-lg sa:px-2 sa:text-left sa:outline-none",
17
+ "sa:transition-[background-color,box-shadow] sa:duration-(--sa-duration-fast) sa:ease-(--sa-ease-out)",
18
+ "sa:hover:bg-bg-hover sa:data-[force=hover]:bg-bg-hover",
19
+ "sa:focus-visible:bg-bg-hover sa:focus-visible:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
20
+ "sa:data-[force=focus]:bg-bg-hover sa:data-[force=focus]:[box-shadow:0_0_0_2px_var(--action-focus-ring)]",
21
+ "sa:disabled:cursor-not-allowed sa:disabled:opacity-50"
22
+ ),
23
+ children: [
24
+ icon && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "sa:grid sa:size-4 sa:shrink-0 sa:place-items-center sa:text-text-muted sa:[&_svg]:size-4 sa:[&_svg]:[stroke-width:1.875]", children: icon }),
25
+ /* @__PURE__ */ jsx("span", { className: "sa:min-w-0 sa:flex-1 sa:text-base sa:leading-[21px] sa:font-medium sa:text-text-default", children: title }),
26
+ /* @__PURE__ */ jsx(
27
+ "svg",
28
+ {
29
+ width: "16",
30
+ height: "16",
31
+ viewBox: "0 0 16 16",
32
+ fill: "none",
33
+ "aria-hidden": true,
34
+ className: "sa:shrink-0 sa:text-text-muted sa:transition-transform sa:duration-(--sa-duration-base) sa:ease-(--sa-ease-out) sa:group-data-[state=open]:rotate-180",
35
+ children: /* @__PURE__ */ jsx("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" })
36
+ }
37
+ )
38
+ ]
39
+ }
40
+ ) }),
41
+ /* @__PURE__ */ jsx(Accordion$1.Content, { "data-slot": "accordion-content", className: "satin-accordion-content", children: /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ className: cn(
45
+ "sa:pt-1 sa:pr-2 sa:pb-3 sa:text-base sa:leading-[21px] sa:text-text-muted",
46
+ // Lined up with the title: past the icon and its gap when there is one.
47
+ icon ? "sa:pl-9" : "sa:pl-2"
48
+ ),
49
+ children
50
+ }
51
+ ) })
52
+ ] });
53
+ }
54
+
55
+ export { Accordion, AccordionItem };
@@ -1,28 +1,28 @@
1
- import { cn } from './chunk-H63FYCMY.js';
1
+ import { cn } from './chunk-EHEXE2UV.js';
2
2
  import 'react';
3
3
  import { cva } from 'class-variance-authority';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  var badgeVariants = cva(
7
7
  [
8
- "inline-flex shrink-0 items-center gap-1 text-sm leading-4 font-medium tracking-normal whitespace-nowrap text-tone-fg",
9
- "[&_svg]:pointer-events-none [&_svg]:size-icon-size-sm [&_svg]:shrink-0 [&_svg]:[stroke-width:1.875]"
8
+ "sa:inline-flex sa:shrink-0 sa:items-center sa:gap-1 sa:text-sm sa:leading-4 sa:font-medium sa:tracking-normal sa:whitespace-nowrap sa:text-tone-fg",
9
+ "sa:[&_svg]:pointer-events-none sa:[&_svg]:size-icon-size-sm sa:[&_svg]:shrink-0 sa:[&_svg]:[stroke-width:1.875]"
10
10
  ],
11
11
  {
12
12
  variants: {
13
13
  size: {
14
- lg: "px-2 py-1",
15
- sm: "px-1.5 py-0.5"
14
+ lg: "sa:px-2 sa:py-1",
15
+ sm: "sa:px-1.5 sa:py-0.5"
16
16
  },
17
17
  variant: {
18
- soft: "bg-tone-bg",
19
- plain: "bg-transparent",
18
+ soft: "sa:bg-tone-bg",
19
+ plain: "sa:bg-transparent",
20
20
  // White (bg/card) inside a 1px border/default edge, drawn inset so the size stays put.
21
- outline: "bg-bg-card [box-shadow:inset_0_0_0_1px_var(--border-default)]"
21
+ outline: "sa:bg-bg-card sa:[box-shadow:inset_0_0_0_1px_var(--border-default)]"
22
22
  },
23
23
  shape: {
24
- default: "rounded-sm",
25
- rounded: "rounded-pill"
24
+ default: "sa:rounded-sm",
25
+ rounded: "sa:rounded-pill"
26
26
  }
27
27
  },
28
28
  defaultVariants: { size: "lg", variant: "soft", shape: "default" }
@@ -41,5 +41,3 @@ function Badge({ className, tone = "neutral", size, variant, shape, ...props })
41
41
  }
42
42
 
43
43
  export { Badge, badgeVariants };
44
- //# sourceMappingURL=chunk-O7F3CIDV.js.map
45
- //# sourceMappingURL=chunk-O7F3CIDV.js.map
@@ -1,17 +1,18 @@
1
- import { cn } from './chunk-H63FYCMY.js';
1
+ import { useSatinLabels } from './chunk-NTSU44FY.js';
2
+ import { cn } from './chunk-EHEXE2UV.js';
2
3
  import * as React from 'react';
3
4
  import { Popover as Popover$1 } from 'radix-ui';
4
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
6
 
6
7
  var panelClass = cn(
7
- "relative flex w-[320px] max-w-[calc(100vw-16px)] flex-col overflow-clip pb-2.5",
8
- "rounded-xl border border-border-default bg-bg-popover",
9
- "[box-shadow:0_4px_6px_-4px_var(--effect-shadow-sm),0_10px_15px_-3px_var(--effect-shadow-sm)]"
8
+ "sa:relative sa:flex sa:w-[320px] sa:max-w-[calc(100vw-16px)] sa:flex-col sa:overflow-clip sa:pb-2.5",
9
+ "sa:rounded-xl sa:border sa:border-border-default sa:bg-bg-popover",
10
+ "sa:[box-shadow:0_4px_6px_-4px_var(--effect-shadow-sm),0_10px_15px_-3px_var(--effect-shadow-sm)]"
10
11
  );
11
12
  var closeClass = cn(
12
- "absolute top-2.5 right-2.5 grid size-4 place-items-center rounded-sm text-text-subtle",
13
- "transition-colors duration-(--duration-fast) ease-(--ease-out)",
14
- "satin-hover:text-text-default focus-visible:outline-none satin-focus:[box-shadow:0_0_0_2px_var(--action-focus-ring)]"
13
+ "sa:absolute sa:top-2.5 sa:right-2.5 sa:grid sa:size-4 sa:place-items-center sa:rounded-sm sa:text-text-subtle",
14
+ "sa:transition-colors sa:duration-(--sa-duration-fast) sa:ease-(--sa-ease-out)",
15
+ "sa:satin-hover:text-text-default sa:focus-visible:outline-none sa:satin-focus:[box-shadow:0_0_0_2px_var(--action-focus-ring)]"
15
16
  );
16
17
  var closeIcon = /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx(
17
18
  "path",
@@ -25,11 +26,11 @@ var closeIcon = /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox:
25
26
  ) });
26
27
  function PanelBody({ titleId, title, description, body, closeButton }) {
27
28
  return /* @__PURE__ */ jsxs(Fragment, { children: [
28
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 px-2.5 pt-2.5 text-sm", children: [
29
- /* @__PURE__ */ jsx("p", { id: titleId, className: cn("leading-[18px] font-medium text-text-default", closeButton && "pr-6"), children: title }),
30
- description ? /* @__PURE__ */ jsx("p", { className: "text-text-muted", children: description }) : null
29
+ /* @__PURE__ */ jsxs("div", { className: "sa:flex sa:flex-col sa:gap-0.5 sa:px-2.5 sa:pt-2.5 sa:text-sm", children: [
30
+ /* @__PURE__ */ jsx("p", { id: titleId, className: cn("sa:leading-[18px] sa:font-medium sa:text-text-default", closeButton && "sa:pr-6"), children: title }),
31
+ description ? /* @__PURE__ */ jsx("p", { className: "sa:text-text-muted", children: description }) : null
31
32
  ] }),
32
- body ? /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 px-2.5 pt-4", children: body }) : null
33
+ body ? /* @__PURE__ */ jsx("div", { className: "sa:flex sa:flex-col sa:gap-4 sa:px-2.5 sa:pt-4", children: body }) : null
33
34
  ] });
34
35
  }
35
36
  function Popover({
@@ -47,31 +48,34 @@ function Popover({
47
48
  container,
48
49
  onOpenAutoFocus,
49
50
  onInteractOutside,
50
- className
51
+ className,
52
+ ...props
51
53
  }) {
54
+ const labels = useSatinLabels();
52
55
  const titleId = React.useId();
53
56
  return /* @__PURE__ */ jsxs(Popover$1.Root, { open, defaultOpen, onOpenChange, children: [
54
57
  children && /* @__PURE__ */ jsx(Popover$1.Trigger, { asChild: true, children }),
55
58
  /* @__PURE__ */ jsx(Popover$1.Portal, { container, children: /* @__PURE__ */ jsxs(
56
59
  Popover$1.Content,
57
60
  {
61
+ collisionPadding: 8,
62
+ ...props,
58
63
  "data-slot": "popover",
59
64
  "aria-labelledby": titleId,
60
65
  side,
61
66
  align,
62
67
  sideOffset,
63
- collisionPadding: 8,
64
68
  onOpenAutoFocus,
65
69
  onInteractOutside,
66
70
  className: cn(
67
71
  panelClass,
68
- "pointer-events-auto z-50 origin-(--radix-popover-content-transform-origin) focus-visible:outline-none",
69
- "data-[state=open]:animate-[satin-enter_var(--duration-base)_var(--ease-out)]",
72
+ "sa:pointer-events-auto sa:z-50 sa:origin-(--radix-popover-content-transform-origin) sa:focus-visible:outline-none",
73
+ "sa:data-[state=open]:animate-[satin-enter_var(--sa-duration-base)_var(--sa-ease-out)]",
70
74
  className
71
75
  ),
72
76
  children: [
73
77
  /* @__PURE__ */ jsx(PanelBody, { titleId, title, description, body, closeButton }),
74
- closeButton && /* @__PURE__ */ jsx(Popover$1.Close, { "aria-label": "Close", className: closeClass, children: closeIcon })
78
+ closeButton && /* @__PURE__ */ jsx(Popover$1.Close, { "aria-label": labels.close, className: closeClass, children: closeIcon })
75
79
  ]
76
80
  }
77
81
  ) })
@@ -83,16 +87,16 @@ function PopoverPanel({
83
87
  body,
84
88
  closeButton = true,
85
89
  onClose,
86
- className
90
+ className,
91
+ ...props
87
92
  }) {
93
+ const labels = useSatinLabels();
88
94
  const titleId = React.useId();
89
- return /* @__PURE__ */ jsxs("div", { role: "dialog", "aria-labelledby": titleId, "data-slot": "popover", className: cn(panelClass, className), children: [
95
+ return /* @__PURE__ */ jsxs("div", { ...props, role: "dialog", "aria-labelledby": titleId, "data-slot": "popover", className: cn(panelClass, className), children: [
90
96
  /* @__PURE__ */ jsx(PanelBody, { titleId, title, description, body, closeButton }),
91
- closeButton && /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Close", onClick: onClose, className: closeClass, children: closeIcon })
97
+ closeButton && /* @__PURE__ */ jsx("button", { type: "button", "aria-label": labels.close, onClick: onClose, className: closeClass, children: closeIcon })
92
98
  ] });
93
99
  }
94
100
  var PopoverClose = Popover$1.Close;
95
101
 
96
102
  export { Popover, PopoverClose, PopoverPanel };
97
- //# sourceMappingURL=chunk-BNZVTLHV.js.map
98
- //# sourceMappingURL=chunk-BNZVTLHV.js.map
@@ -0,0 +1,24 @@
1
+ import { useSelectableIds, SelectableCardBody } from './chunk-EBZHGRM5.js';
2
+ import { cn } from './chunk-EHEXE2UV.js';
3
+ import 'react';
4
+ import { RadioGroup } from 'radix-ui';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ function SelectableRadio({ title, description, icon, size = "md", className, children, id, ...props }) {
8
+ const { controlId, ...aria } = useSelectableIds(id, description);
9
+ return /* @__PURE__ */ jsx(
10
+ RadioGroup.Item,
11
+ {
12
+ id: controlId,
13
+ "data-slot": "selectable-card",
14
+ "data-size": size,
15
+ "data-kind": "radio",
16
+ ...aria,
17
+ ...props,
18
+ className: cn("sa:w-full sa:text-left", className),
19
+ children: /* @__PURE__ */ jsx(SelectableCardBody, { id: controlId, title, description, icon, size, children })
20
+ }
21
+ );
22
+ }
23
+
24
+ export { SelectableRadio };
@@ -0,0 +1,29 @@
1
+ import { useSatinLabels } from './chunk-NTSU44FY.js';
2
+ import { cn } from './chunk-EHEXE2UV.js';
3
+ import 'react';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ var px = { xs: 12, sm: 14, md: 16, lg: 20 };
7
+ function Spinner({ size = "md", label, className, ...props }) {
8
+ const labels = useSatinLabels();
9
+ const s = px[size];
10
+ const hidden = label === null;
11
+ return /* @__PURE__ */ jsx(
12
+ "span",
13
+ {
14
+ "data-slot": "spinner",
15
+ "data-size": size,
16
+ role: hidden ? void 0 : "status",
17
+ "aria-label": hidden ? void 0 : label ?? labels.loading,
18
+ "aria-hidden": hidden || void 0,
19
+ className: cn("sa:inline-grid sa:shrink-0 sa:place-items-center", className),
20
+ ...props,
21
+ children: /* @__PURE__ */ jsxs("svg", { width: s, height: s, viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: [
22
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6.25", stroke: "currentColor", strokeOpacity: "0.2", style: { strokeWidth: 1.5 } }),
23
+ /* @__PURE__ */ jsx("path", { d: "M8 1.75A6.25 6.25 0 0 1 14.25 8", stroke: "currentColor", strokeLinecap: "round", style: { strokeWidth: 1.5 } })
24
+ ] })
25
+ }
26
+ );
27
+ }
28
+
29
+ export { Spinner };
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-H63FYCMY.js';
1
+ import { cn } from './chunk-EHEXE2UV.js';
2
2
  import * as React from 'react';
3
3
  import { Switch as Switch$1 } from 'radix-ui';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -13,7 +13,7 @@ function Switch({ className, label, description, placement = "left", id, ...prop
13
13
  id: switchId,
14
14
  "data-slot": "switch",
15
15
  "aria-describedby": descriptionId,
16
- className: cn("peer satin-switch", className),
16
+ className: cn("sa:peer satin-switch", className),
17
17
  ...props,
18
18
  children: /* @__PURE__ */ jsx(Switch$1.Thumb, { className: "satin-switch-thumb" })
19
19
  }
@@ -23,12 +23,12 @@ function Switch({ className, label, description, placement = "left", id, ...prop
23
23
  "div",
24
24
  {
25
25
  "data-slot": "switch-field",
26
- className: cn("flex items-start gap-2.5", placement === "right" && "flex-row-reverse justify-between"),
26
+ className: cn("sa:flex sa:items-start sa:gap-2.5", placement === "right" && "sa:flex-row-reverse sa:justify-between"),
27
27
  children: [
28
28
  control,
29
- /* @__PURE__ */ jsxs("div", { className: "grid gap-0.5 text-sm leading-[19.5px] peer-disabled:opacity-50", children: [
30
- label && /* @__PURE__ */ jsx("label", { htmlFor: switchId, className: "font-medium text-text-default", children: label }),
31
- description && /* @__PURE__ */ jsx("p", { id: descriptionId, className: "text-text-muted", children: description })
29
+ /* @__PURE__ */ jsxs("div", { className: "sa:grid sa:gap-0.5 sa:text-sm sa:leading-[19.5px] sa:peer-disabled:opacity-50", children: [
30
+ label && /* @__PURE__ */ jsx("label", { htmlFor: switchId, className: "sa:font-medium sa:text-text-default", children: label }),
31
+ description && /* @__PURE__ */ jsx("p", { id: descriptionId, className: "sa:text-text-muted", children: description })
32
32
  ] })
33
33
  ]
34
34
  }
@@ -36,5 +36,3 @@ function Switch({ className, label, description, placement = "left", id, ...prop
36
36
  }
37
37
 
38
38
  export { Switch };
39
- //# sourceMappingURL=chunk-SH6NG6VN.js.map
40
- //# sourceMappingURL=chunk-SH6NG6VN.js.map
@@ -1,5 +1,5 @@
1
- import { useFormField } from './chunk-UBNHSZSE.js';
2
- import { cn } from './chunk-H63FYCMY.js';
1
+ import { useFormField } from './chunk-KITXKIYW.js';
2
+ import { cn } from './chunk-EHEXE2UV.js';
3
3
  import * as React from 'react';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
@@ -38,13 +38,13 @@ function Textarea({
38
38
  {
39
39
  "data-slot": "textarea-wrapper",
40
40
  "data-disabled": isDisabled || void 0,
41
- className: cn("satin-textarea-root grid w-full gap-2", wrapperClassName),
41
+ className: cn("satin-textarea-root sa:grid sa:w-full sa:gap-2", wrapperClassName),
42
42
  children: [
43
- label && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
44
- /* @__PURE__ */ jsx("label", { htmlFor: textareaId, className: "text-sm leading-[18px] font-medium text-text-default", children: label }),
45
- optional && /* @__PURE__ */ jsx("span", { className: "text-sm text-text-muted", children: "(Optional)" })
43
+ label && /* @__PURE__ */ jsxs("div", { className: "sa:flex sa:items-center sa:gap-1", children: [
44
+ /* @__PURE__ */ jsx("label", { htmlFor: textareaId, className: "sa:text-sm sa:leading-[18px] sa:font-medium sa:text-text-default", children: label }),
45
+ optional && /* @__PURE__ */ jsx("span", { className: "sa:text-sm sa:text-text-muted", children: "(Optional)" })
46
46
  ] }),
47
- /* @__PURE__ */ jsxs("div", { className: "relative flex", children: [
47
+ /* @__PURE__ */ jsxs("div", { className: "sa:relative sa:flex", children: [
48
48
  /* @__PURE__ */ jsx(
49
49
  "textarea",
50
50
  {
@@ -65,7 +65,8 @@ function Textarea({
65
65
  if (value == null) setUncontrolled(e.target.value);
66
66
  onChange?.(e.target.value);
67
67
  },
68
- ...props
68
+ ...props,
69
+ name: props.name ?? field?.name
69
70
  }
70
71
  ),
71
72
  /* @__PURE__ */ jsx("svg", { className: "satin-textarea-grip", viewBox: "0 0 7 7", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M6.5 0.5L0.5 6.5M6.5 4L4 6.5", stroke: "currentColor", strokeLinecap: "round" }) })
@@ -74,13 +75,13 @@ function Textarea({
74
75
  "div",
75
76
  {
76
77
  className: cn(
77
- "flex items-start gap-2 text-sm",
78
- hasMessage ? "text-action-destructive-bg" : "text-text-muted"
78
+ "sa:flex sa:items-start sa:gap-2 sa:text-sm",
79
+ hasMessage ? "sa:text-action-destructive-bg" : "sa:text-text-muted"
79
80
  ),
80
81
  children: [
81
- /* @__PURE__ */ jsx("p", { id: messageId, className: "min-w-0 flex-1", children: message }),
82
- maxLength != null && /* @__PURE__ */ jsxs("p", { id: counterId, className: cn("shrink-0 whitespace-nowrap", !hasMessage && "text-text-muted"), children: [
83
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Characters used: " }),
82
+ /* @__PURE__ */ jsx("p", { id: messageId, className: "sa:min-w-0 sa:flex-1", children: message }),
83
+ maxLength != null && /* @__PURE__ */ jsxs("p", { id: counterId, className: cn("sa:shrink-0 sa:whitespace-nowrap", !hasMessage && "sa:text-text-muted"), children: [
84
+ /* @__PURE__ */ jsx("span", { className: "sa:sr-only", children: "Characters used: " }),
84
85
  text.length,
85
86
  "/",
86
87
  maxLength
@@ -94,5 +95,3 @@ function Textarea({
94
95
  }
95
96
 
96
97
  export { Textarea };
97
- //# sourceMappingURL=chunk-QUF2IPOZ.js.map
98
- //# sourceMappingURL=chunk-QUF2IPOZ.js.map
@@ -1,15 +1,15 @@
1
- import { cn } from './chunk-H63FYCMY.js';
1
+ import { cn } from './chunk-EHEXE2UV.js';
2
2
  import 'react';
3
3
  import { cva } from 'class-variance-authority';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  var dotVariants = cva(
7
- "block size-2 rounded-full",
7
+ "sa:block sa:size-2 sa:rounded-full",
8
8
  {
9
9
  variants: {
10
10
  variant: {
11
- solid: "bg-tone-fg",
12
- outline: "border border-tone-fg"
11
+ solid: "sa:bg-tone-fg",
12
+ outline: "sa:border sa:border-tone-fg"
13
13
  }
14
14
  },
15
15
  defaultVariants: { variant: "solid" }
@@ -24,7 +24,7 @@ function Dot({ className, tone = "fuchsia", variant, label, ...props }) {
24
24
  role: label ? "img" : void 0,
25
25
  "aria-label": label,
26
26
  "aria-hidden": label ? void 0 : true,
27
- className: cn("inline-flex size-4 shrink-0 items-center justify-center", className),
27
+ className: cn("sa:inline-flex sa:size-4 sa:shrink-0 sa:items-center sa:justify-center", className),
28
28
  ...props,
29
29
  children: /* @__PURE__ */ jsx("span", { className: dotVariants({ variant }) })
30
30
  }
@@ -32,5 +32,3 @@ function Dot({ className, tone = "fuchsia", variant, label, ...props }) {
32
32
  }
33
33
 
34
34
  export { Dot, dotVariants };
35
- //# sourceMappingURL=chunk-B2K45IUR.js.map
36
- //# sourceMappingURL=chunk-B2K45IUR.js.map