@crisp-ui-kit/crisp 0.31.6 → 0.32.1

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 (389) hide show
  1. package/NOTICE +88 -0
  2. package/README.md +22 -0
  3. package/dist/accordion.css +13 -13
  4. package/dist/accordion.layered.css +23 -0
  5. package/dist/appshell.css +11 -11
  6. package/dist/appshell.layered.css +25 -0
  7. package/dist/authshell.css +23 -23
  8. package/dist/authshell.layered.css +59 -0
  9. package/dist/avatar.css +23 -23
  10. package/dist/avatar.layered.css +41 -0
  11. package/dist/avatargroup.css +2 -2
  12. package/dist/avatargroup.layered.css +7 -0
  13. package/dist/badge.css +31 -31
  14. package/dist/badge.layered.css +51 -0
  15. package/dist/barchart.css +15 -15
  16. package/dist/barchart.layered.css +25 -0
  17. package/dist/base.css +4 -4
  18. package/dist/board.css +20 -20
  19. package/dist/board.layered.css +34 -0
  20. package/dist/breadcrumb.css +8 -8
  21. package/dist/breadcrumb.layered.css +13 -0
  22. package/dist/bulkbar.css +13 -13
  23. package/dist/bulkbar.layered.css +23 -0
  24. package/dist/button.css +21 -21
  25. package/dist/button.layered.css +46 -0
  26. package/dist/callout.css +15 -15
  27. package/dist/callout.layered.css +18 -0
  28. package/dist/card.css +14 -14
  29. package/dist/card.layered.css +30 -0
  30. package/dist/checkbox.css +9 -9
  31. package/dist/checkbox.layered.css +21 -0
  32. package/dist/cjs/components/accordion/accordion.js +1 -1
  33. package/dist/cjs/components/accordion/accordion.recipe.js +10 -10
  34. package/dist/cjs/components/badge/badge.js +1 -1
  35. package/dist/cjs/components/badge/badge.recipe.js +1 -1
  36. package/dist/cjs/components/barchart/barchart.js +3 -3
  37. package/dist/cjs/components/barchart/barchart.recipe.js +14 -14
  38. package/dist/cjs/components/breadcrumb/breadcrumb.js +1 -1
  39. package/dist/cjs/components/breadcrumb/breadcrumb.recipe.js +6 -6
  40. package/dist/cjs/components/bulkbar/bulkbar.js +2 -2
  41. package/dist/cjs/components/bulkbar/bulkbar.recipe.js +10 -10
  42. package/dist/cjs/components/callout/callout.js +1 -1
  43. package/dist/cjs/components/callout/callout.recipe.js +9 -9
  44. package/dist/cjs/components/card/card.js +3 -3
  45. package/dist/cjs/components/card/card.recipe.js +5 -5
  46. package/dist/cjs/components/columncalc/columncalc.js +1 -1
  47. package/dist/cjs/components/columncalc/columncalc.recipe.js +16 -9
  48. package/dist/cjs/components/contextmenu/contextmenu.js +4 -4
  49. package/dist/cjs/components/contextmenu/contextmenu.recipe.js +9 -9
  50. package/dist/cjs/components/datatable/datatable.js +32 -22
  51. package/dist/cjs/components/datatable/datatable.recipe.js +57 -57
  52. package/dist/cjs/components/datepicker/datepicker.js +12 -12
  53. package/dist/cjs/components/datepicker/datepicker.recipe.js +45 -45
  54. package/dist/cjs/components/datepickerfield/datepickerfield.js +2 -2
  55. package/dist/cjs/components/datepickerfield/datepickerfield.recipe.js +9 -9
  56. package/dist/cjs/components/dialog/dialog.js +5 -5
  57. package/dist/cjs/components/dialog/dialog.recipe.js +16 -16
  58. package/dist/cjs/components/donutchart/donutchart.js +1 -1
  59. package/dist/cjs/components/donutchart/donutchart.recipe.js +12 -12
  60. package/dist/cjs/components/drawer/drawer.js +3 -3
  61. package/dist/cjs/components/drawer/drawer.recipe.js +14 -14
  62. package/dist/cjs/components/emptystate/emptystate.js +1 -1
  63. package/dist/cjs/components/emptystate/emptystate.recipe.js +9 -9
  64. package/dist/cjs/components/fileupload/fileupload.js +3 -3
  65. package/dist/cjs/components/fileupload/fileupload.recipe.js +23 -23
  66. package/dist/cjs/components/formfield/formfield.js +1 -1
  67. package/dist/cjs/components/formfield/formfield.recipe.js +5 -5
  68. package/dist/cjs/components/input/input.js +1 -1
  69. package/dist/cjs/components/input/input.recipe.js +6 -6
  70. package/dist/cjs/components/linechart/linechart.js +4 -4
  71. package/dist/cjs/components/linechart/linechart.recipe.js +14 -14
  72. package/dist/cjs/components/menu/menu.js +6 -6
  73. package/dist/cjs/components/menu/menu.recipe.js +19 -19
  74. package/dist/cjs/components/multiselect/multiselect.js +5 -5
  75. package/dist/cjs/components/multiselect/multiselect.recipe.js +29 -29
  76. package/dist/cjs/components/popover/popover.js +1 -1
  77. package/dist/cjs/components/popover/popover.recipe.js +3 -3
  78. package/dist/cjs/components/progress/progress.js +2 -2
  79. package/dist/cjs/components/progress/progress.recipe.js +3 -3
  80. package/dist/cjs/components/quantitypicker/quantitypicker.js +2 -2
  81. package/dist/cjs/components/quantitypicker/quantitypicker.recipe.js +16 -16
  82. package/dist/cjs/components/radiogroup/radiogroup.js +1 -1
  83. package/dist/cjs/components/radiogroup/radiogroup.recipe.js +14 -14
  84. package/dist/cjs/components/resizablepanel/resizablepanel.js +3 -3
  85. package/dist/cjs/components/resizablepanel/resizablepanel.recipe.js +24 -24
  86. package/dist/cjs/components/segmented/segmented.js +4 -4
  87. package/dist/cjs/components/segmented/segmented.recipe.js +7 -7
  88. package/dist/cjs/components/select/select.js +3 -3
  89. package/dist/cjs/components/select/select.recipe.js +25 -25
  90. package/dist/cjs/components/slider/slider.js +2 -2
  91. package/dist/cjs/components/slider/slider.recipe.js +15 -15
  92. package/dist/cjs/components/stagebar/stagebar.js +1 -1
  93. package/dist/cjs/components/stagebar/stagebar.recipe.js +1 -1
  94. package/dist/cjs/components/statcard/statcard.js +1 -1
  95. package/dist/cjs/components/statcard/statcard.recipe.js +9 -9
  96. package/dist/cjs/components/switch/switch.js +1 -1
  97. package/dist/cjs/components/switch/switch.recipe.js +2 -2
  98. package/dist/cjs/components/table/table.js +1 -1
  99. package/dist/cjs/components/table/table.recipe.js +1 -1
  100. package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +65 -64
  101. package/dist/cjs/components/tabletoolbar/tabletoolbar.js +13 -13
  102. package/dist/cjs/components/tabs/tabs.js +4 -4
  103. package/dist/cjs/components/tabs/tabs.recipe.js +12 -12
  104. package/dist/cjs/components/textarea/textarea.js +2 -2
  105. package/dist/cjs/components/textarea/textarea.recipe.js +11 -11
  106. package/dist/cjs/components/toast/toast.js +4 -4
  107. package/dist/cjs/components/toast/toast.recipe.js +14 -14
  108. package/dist/cjs/components/wheelpicker/wheelpicker.js +2 -2
  109. package/dist/cjs/components/wheelpicker/wheelpicker.recipe.js +19 -19
  110. package/dist/cjs/core/namespace.js +17 -0
  111. package/dist/cjs/core/resolve.js +5 -3
  112. package/dist/cjs/product/appshell/appshell.js +2 -2
  113. package/dist/cjs/product/appshell/appshell.recipe.js +8 -8
  114. package/dist/cjs/product/authshell/authshell.js +1 -1
  115. package/dist/cjs/product/authshell/authshell.recipe.js +20 -20
  116. package/dist/cjs/product/board/board.js +3 -3
  117. package/dist/cjs/product/board/board.recipe.js +17 -17
  118. package/dist/cjs/product/command/command.js +3 -3
  119. package/dist/cjs/product/command/command.recipe.js +25 -25
  120. package/dist/cjs/product/entitycard/entitycard.js +1 -1
  121. package/dist/cjs/product/entitycard/entitycard.recipe.js +7 -7
  122. package/dist/cjs/product/flowcanvas/flowcanvas.js +5 -5
  123. package/dist/cjs/product/flowcanvas/flowcanvas.recipe.js +11 -11
  124. package/dist/cjs/product/inbox/inbox.js +1 -1
  125. package/dist/cjs/product/inbox/inbox.recipe.js +22 -22
  126. package/dist/cjs/product/listpage/listpage.js +3 -3
  127. package/dist/cjs/product/listpage/listpage.recipe.js +18 -18
  128. package/dist/cjs/product/navitem/navitem.js +1 -1
  129. package/dist/cjs/product/navitem/navitem.recipe.js +2 -2
  130. package/dist/cjs/product/onboarding/onboarding.js +1 -1
  131. package/dist/cjs/product/onboarding/onboarding.recipe.js +19 -19
  132. package/dist/cjs/product/recordpage/recordpage.js +24 -24
  133. package/dist/cjs/product/recordpage/recordpage.recipe.js +117 -117
  134. package/dist/cjs/product/recordpanel/recordpanel.js +4 -4
  135. package/dist/cjs/product/recordpanel/recordpanel.recipe.js +15 -15
  136. package/dist/cjs/product/recordstable/recordstable.js +48 -48
  137. package/dist/cjs/product/recordstable/recordstable.recipe.js +87 -87
  138. package/dist/cjs/product/recordstable/recordstable.tag.js +8 -8
  139. package/dist/cjs/product/richtext/richtext.js +4 -4
  140. package/dist/cjs/product/richtext/richtext.recipe.js +21 -21
  141. package/dist/cjs/product/settingssection/settingssection.js +1 -1
  142. package/dist/cjs/product/settingssection/settingssection.recipe.js +6 -6
  143. package/dist/cjs/product/settingsshell/settingsshell.js +1 -1
  144. package/dist/cjs/product/settingsshell/settingsshell.recipe.js +20 -20
  145. package/dist/cjs/product/sidebar/sidebar.js +2 -2
  146. package/dist/cjs/product/sidebar/sidebar.recipe.js +21 -21
  147. package/dist/cjs/product/tasklist/tasklist.js +2 -2
  148. package/dist/cjs/product/tasklist/tasklist.recipe.js +14 -14
  149. package/dist/cjs/product/trialbanner/trialbanner.js +1 -1
  150. package/dist/cjs/product/trialbanner/trialbanner.recipe.js +6 -6
  151. package/dist/cjs/product/viewtoggle/viewtoggle.js +1 -1
  152. package/dist/cjs/product/viewtoggle/viewtoggle.recipe.js +4 -4
  153. package/dist/cjs/tokens/contract.js +3 -2
  154. package/dist/columncalc.css +19 -12
  155. package/dist/columncalc.layered.css +35 -0
  156. package/dist/command.css +28 -28
  157. package/dist/command.layered.css +44 -0
  158. package/dist/contextmenu.css +12 -12
  159. package/dist/contextmenu.layered.css +22 -0
  160. package/dist/datatable.css +66 -66
  161. package/dist/datatable.layered.css +108 -0
  162. package/dist/datepicker.css +86 -86
  163. package/dist/datepicker.layered.css +179 -0
  164. package/dist/datepickerfield.css +19 -19
  165. package/dist/datepickerfield.layered.css +29 -0
  166. package/dist/dialog.css +19 -19
  167. package/dist/dialog.layered.css +29 -0
  168. package/dist/divider.css +2 -2
  169. package/dist/divider.layered.css +7 -0
  170. package/dist/donutchart.css +15 -15
  171. package/dist/donutchart.layered.css +26 -0
  172. package/dist/drawer.css +17 -17
  173. package/dist/drawer.layered.css +27 -0
  174. package/dist/emptystate.css +15 -15
  175. package/dist/emptystate.layered.css +22 -0
  176. package/dist/entitycard.css +14 -14
  177. package/dist/entitycard.layered.css +28 -0
  178. package/dist/esm/components/accordion/accordion.js +1 -1
  179. package/dist/esm/components/accordion/accordion.recipe.js +10 -10
  180. package/dist/esm/components/badge/badge.js +1 -1
  181. package/dist/esm/components/badge/badge.recipe.js +1 -1
  182. package/dist/esm/components/barchart/barchart.js +3 -3
  183. package/dist/esm/components/barchart/barchart.recipe.js +14 -14
  184. package/dist/esm/components/breadcrumb/breadcrumb.js +1 -1
  185. package/dist/esm/components/breadcrumb/breadcrumb.recipe.js +6 -6
  186. package/dist/esm/components/bulkbar/bulkbar.js +2 -2
  187. package/dist/esm/components/bulkbar/bulkbar.recipe.js +10 -10
  188. package/dist/esm/components/callout/callout.js +1 -1
  189. package/dist/esm/components/callout/callout.recipe.js +9 -9
  190. package/dist/esm/components/card/card.js +3 -3
  191. package/dist/esm/components/card/card.recipe.js +5 -5
  192. package/dist/esm/components/columncalc/columncalc.js +1 -1
  193. package/dist/esm/components/columncalc/columncalc.recipe.js +16 -9
  194. package/dist/esm/components/contextmenu/contextmenu.js +4 -4
  195. package/dist/esm/components/contextmenu/contextmenu.recipe.js +9 -9
  196. package/dist/esm/components/datatable/datatable.js +32 -22
  197. package/dist/esm/components/datatable/datatable.recipe.js +57 -57
  198. package/dist/esm/components/datepicker/datepicker.js +12 -12
  199. package/dist/esm/components/datepicker/datepicker.recipe.js +45 -45
  200. package/dist/esm/components/datepickerfield/datepickerfield.js +2 -2
  201. package/dist/esm/components/datepickerfield/datepickerfield.recipe.js +9 -9
  202. package/dist/esm/components/dialog/dialog.js +5 -5
  203. package/dist/esm/components/dialog/dialog.recipe.js +16 -16
  204. package/dist/esm/components/donutchart/donutchart.js +1 -1
  205. package/dist/esm/components/donutchart/donutchart.recipe.js +12 -12
  206. package/dist/esm/components/drawer/drawer.js +3 -3
  207. package/dist/esm/components/drawer/drawer.recipe.js +14 -14
  208. package/dist/esm/components/emptystate/emptystate.js +1 -1
  209. package/dist/esm/components/emptystate/emptystate.recipe.js +9 -9
  210. package/dist/esm/components/fileupload/fileupload.js +3 -3
  211. package/dist/esm/components/fileupload/fileupload.recipe.js +23 -23
  212. package/dist/esm/components/formfield/formfield.js +1 -1
  213. package/dist/esm/components/formfield/formfield.recipe.js +5 -5
  214. package/dist/esm/components/input/input.js +1 -1
  215. package/dist/esm/components/input/input.recipe.js +6 -6
  216. package/dist/esm/components/linechart/linechart.js +4 -4
  217. package/dist/esm/components/linechart/linechart.recipe.js +14 -14
  218. package/dist/esm/components/menu/menu.js +6 -6
  219. package/dist/esm/components/menu/menu.recipe.js +19 -19
  220. package/dist/esm/components/multiselect/multiselect.js +5 -5
  221. package/dist/esm/components/multiselect/multiselect.recipe.js +29 -29
  222. package/dist/esm/components/popover/popover.js +1 -1
  223. package/dist/esm/components/popover/popover.recipe.js +3 -3
  224. package/dist/esm/components/progress/progress.js +2 -2
  225. package/dist/esm/components/progress/progress.recipe.js +3 -3
  226. package/dist/esm/components/quantitypicker/quantitypicker.js +2 -2
  227. package/dist/esm/components/quantitypicker/quantitypicker.recipe.js +16 -16
  228. package/dist/esm/components/radiogroup/radiogroup.js +1 -1
  229. package/dist/esm/components/radiogroup/radiogroup.recipe.js +14 -14
  230. package/dist/esm/components/resizablepanel/resizablepanel.js +3 -3
  231. package/dist/esm/components/resizablepanel/resizablepanel.recipe.js +24 -24
  232. package/dist/esm/components/segmented/segmented.js +4 -4
  233. package/dist/esm/components/segmented/segmented.recipe.js +7 -7
  234. package/dist/esm/components/select/select.js +3 -3
  235. package/dist/esm/components/select/select.recipe.js +25 -25
  236. package/dist/esm/components/slider/slider.js +2 -2
  237. package/dist/esm/components/slider/slider.recipe.js +15 -15
  238. package/dist/esm/components/stagebar/stagebar.js +1 -1
  239. package/dist/esm/components/stagebar/stagebar.recipe.js +1 -1
  240. package/dist/esm/components/statcard/statcard.js +1 -1
  241. package/dist/esm/components/statcard/statcard.recipe.js +9 -9
  242. package/dist/esm/components/switch/switch.js +1 -1
  243. package/dist/esm/components/switch/switch.recipe.js +2 -2
  244. package/dist/esm/components/table/table.js +1 -1
  245. package/dist/esm/components/table/table.recipe.js +1 -1
  246. package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +65 -64
  247. package/dist/esm/components/tabletoolbar/tabletoolbar.js +13 -13
  248. package/dist/esm/components/tabs/tabs.js +4 -4
  249. package/dist/esm/components/tabs/tabs.recipe.js +12 -12
  250. package/dist/esm/components/textarea/textarea.js +2 -2
  251. package/dist/esm/components/textarea/textarea.recipe.js +11 -11
  252. package/dist/esm/components/toast/toast.js +4 -4
  253. package/dist/esm/components/toast/toast.recipe.js +14 -14
  254. package/dist/esm/components/wheelpicker/wheelpicker.js +2 -2
  255. package/dist/esm/components/wheelpicker/wheelpicker.recipe.js +19 -19
  256. package/dist/esm/core/namespace.js +14 -0
  257. package/dist/esm/core/resolve.js +5 -3
  258. package/dist/esm/product/appshell/appshell.js +2 -2
  259. package/dist/esm/product/appshell/appshell.recipe.js +8 -8
  260. package/dist/esm/product/authshell/authshell.js +1 -1
  261. package/dist/esm/product/authshell/authshell.recipe.js +20 -20
  262. package/dist/esm/product/board/board.js +3 -3
  263. package/dist/esm/product/board/board.recipe.js +17 -17
  264. package/dist/esm/product/command/command.js +3 -3
  265. package/dist/esm/product/command/command.recipe.js +25 -25
  266. package/dist/esm/product/entitycard/entitycard.js +1 -1
  267. package/dist/esm/product/entitycard/entitycard.recipe.js +7 -7
  268. package/dist/esm/product/flowcanvas/flowcanvas.js +5 -5
  269. package/dist/esm/product/flowcanvas/flowcanvas.recipe.js +11 -11
  270. package/dist/esm/product/inbox/inbox.js +1 -1
  271. package/dist/esm/product/inbox/inbox.recipe.js +22 -22
  272. package/dist/esm/product/listpage/listpage.js +3 -3
  273. package/dist/esm/product/listpage/listpage.recipe.js +18 -18
  274. package/dist/esm/product/navitem/navitem.js +1 -1
  275. package/dist/esm/product/navitem/navitem.recipe.js +2 -2
  276. package/dist/esm/product/onboarding/onboarding.js +1 -1
  277. package/dist/esm/product/onboarding/onboarding.recipe.js +19 -19
  278. package/dist/esm/product/recordpage/recordpage.js +24 -24
  279. package/dist/esm/product/recordpage/recordpage.recipe.js +117 -117
  280. package/dist/esm/product/recordpanel/recordpanel.js +4 -4
  281. package/dist/esm/product/recordpanel/recordpanel.recipe.js +15 -15
  282. package/dist/esm/product/recordstable/recordstable.js +48 -48
  283. package/dist/esm/product/recordstable/recordstable.recipe.js +87 -87
  284. package/dist/esm/product/recordstable/recordstable.tag.js +8 -8
  285. package/dist/esm/product/richtext/richtext.js +4 -4
  286. package/dist/esm/product/richtext/richtext.recipe.js +21 -21
  287. package/dist/esm/product/settingssection/settingssection.js +1 -1
  288. package/dist/esm/product/settingssection/settingssection.recipe.js +6 -6
  289. package/dist/esm/product/settingsshell/settingsshell.js +1 -1
  290. package/dist/esm/product/settingsshell/settingsshell.recipe.js +20 -20
  291. package/dist/esm/product/sidebar/sidebar.js +2 -2
  292. package/dist/esm/product/sidebar/sidebar.recipe.js +21 -21
  293. package/dist/esm/product/tasklist/tasklist.js +2 -2
  294. package/dist/esm/product/tasklist/tasklist.recipe.js +14 -14
  295. package/dist/esm/product/trialbanner/trialbanner.js +1 -1
  296. package/dist/esm/product/trialbanner/trialbanner.recipe.js +6 -6
  297. package/dist/esm/product/viewtoggle/viewtoggle.js +1 -1
  298. package/dist/esm/product/viewtoggle/viewtoggle.recipe.js +4 -4
  299. package/dist/esm/tokens/contract.js +3 -2
  300. package/dist/fileupload.css +46 -46
  301. package/dist/fileupload.layered.css +91 -0
  302. package/dist/flowcanvas.css +13 -13
  303. package/dist/flowcanvas.layered.css +17 -0
  304. package/dist/formfield.css +7 -7
  305. package/dist/formfield.layered.css +10 -0
  306. package/dist/inbox.css +26 -26
  307. package/dist/inbox.layered.css +41 -0
  308. package/dist/input.css +17 -17
  309. package/dist/input.layered.css +45 -0
  310. package/dist/kbd.css +2 -2
  311. package/dist/kbd.layered.css +5 -0
  312. package/dist/linechart.css +14 -14
  313. package/dist/linechart.layered.css +17 -0
  314. package/dist/listpage.css +22 -22
  315. package/dist/listpage.layered.css +41 -0
  316. package/dist/menu.css +29 -29
  317. package/dist/menu.layered.css +48 -0
  318. package/dist/multiselect.css +42 -42
  319. package/dist/multiselect.layered.css +63 -0
  320. package/dist/navitem.css +14 -14
  321. package/dist/navitem.layered.css +25 -0
  322. package/dist/onboarding.css +24 -24
  323. package/dist/onboarding.layered.css +39 -0
  324. package/dist/popover.css +6 -6
  325. package/dist/popover.layered.css +16 -0
  326. package/dist/progress.css +7 -7
  327. package/dist/progress.layered.css +17 -0
  328. package/dist/quantitypicker.css +34 -34
  329. package/dist/quantitypicker.layered.css +80 -0
  330. package/dist/radiogroup.css +18 -18
  331. package/dist/radiogroup.layered.css +33 -0
  332. package/dist/recordpage.css +122 -122
  333. package/dist/recordpage.layered.css +153 -0
  334. package/dist/recordpanel.css +31 -31
  335. package/dist/recordpanel.layered.css +50 -0
  336. package/dist/recordstable.css +162 -162
  337. package/dist/recordstable.layered.css +222 -0
  338. package/dist/resizablepanel.css +26 -26
  339. package/dist/resizablepanel.layered.css +55 -0
  340. package/dist/richtext.css +24 -24
  341. package/dist/richtext.layered.css +38 -0
  342. package/dist/segmented.css +10 -10
  343. package/dist/segmented.layered.css +20 -0
  344. package/dist/select.css +43 -43
  345. package/dist/select.layered.css +72 -0
  346. package/dist/settingssection.css +8 -8
  347. package/dist/settingssection.layered.css +11 -0
  348. package/dist/settingsshell.css +23 -23
  349. package/dist/settingsshell.layered.css +44 -0
  350. package/dist/sidebar.css +27 -27
  351. package/dist/sidebar.layered.css +40 -0
  352. package/dist/skeleton.css +4 -4
  353. package/dist/skeleton.layered.css +15 -0
  354. package/dist/slider.css +23 -23
  355. package/dist/slider.layered.css +58 -0
  356. package/dist/spinner.css +3 -3
  357. package/dist/spinner.layered.css +14 -0
  358. package/dist/stagebar.css +4 -4
  359. package/dist/stagebar.layered.css +14 -0
  360. package/dist/statcard.css +14 -14
  361. package/dist/statcard.layered.css +21 -0
  362. package/dist/styles.css +1816 -1725
  363. package/dist/styles.layered.css +2932 -0
  364. package/dist/switch.css +7 -7
  365. package/dist/switch.layered.css +22 -0
  366. package/dist/table.css +16 -16
  367. package/dist/table.layered.css +36 -0
  368. package/dist/tabletoolbar.css +67 -67
  369. package/dist/tabletoolbar.layered.css +80 -0
  370. package/dist/tabs.css +15 -15
  371. package/dist/tabs.layered.css +29 -0
  372. package/dist/tasklist.css +17 -17
  373. package/dist/tasklist.layered.css +34 -0
  374. package/dist/textarea.css +18 -18
  375. package/dist/textarea.layered.css +42 -0
  376. package/dist/toast.css +17 -17
  377. package/dist/toast.layered.css +27 -0
  378. package/dist/tokens.css +199 -115
  379. package/dist/tooltip.css +3 -3
  380. package/dist/tooltip.layered.css +13 -0
  381. package/dist/trialbanner.css +13 -13
  382. package/dist/trialbanner.layered.css +28 -0
  383. package/dist/types/core/namespace.d.ts +2 -0
  384. package/dist/viewtoggle.css +10 -10
  385. package/dist/viewtoggle.layered.css +23 -0
  386. package/dist/wheelpicker.css +29 -29
  387. package/dist/wheelpicker.layered.css +70 -0
  388. package/licenses/Apache-2.0.txt +201 -0
  389. package/package.json +5 -2
@@ -21,11 +21,11 @@ const config = defineRecipe({
21
21
  position: relative; box-sizing: border-box; width: 100%; min-width: 0;
22
22
  font-family: ${c.font.sans}; color: ${c.fgPrimary}; background: ${c.bgSurface};
23
23
 
24
- & .datepicker-header {
24
+ & .crisp-datepicker-header {
25
25
  display: flex; align-items: center; justify-content: space-between;
26
26
  height: ${c.size.menuRow};
27
27
  }
28
- & .datepicker-header-label {
28
+ & .crisp-datepicker-header-label {
29
29
  display: inline-flex; align-items: center; gap: ${c.space["1"]};
30
30
  height: 100%; min-width: 0; border: 0; padding: 0 ${c.space["1"]};
31
31
  border-radius: ${c.radius.md}; background: transparent; cursor: pointer;
@@ -35,12 +35,12 @@ const config = defineRecipe({
35
35
  outline: 2px solid transparent; outline-offset: -2px;
36
36
  transition: outline-color .2s ease;
37
37
  }
38
- & .datepicker-header-label:focus-visible { outline-color: ${c.strokeFocusRing}; }
39
- & .datepicker-header-chevron { display: inline-flex; transition: transform .2s ease; }
40
- & .datepicker-header-chevron[data-open] { transform: rotate(180deg); }
38
+ & .crisp-datepicker-header-label:focus-visible { outline-color: ${c.strokeFocusRing}; }
39
+ & .crisp-datepicker-header-chevron { display: inline-flex; transition: transform .2s ease; }
40
+ & .crisp-datepicker-header-chevron[data-open] { transform: rotate(180deg); }
41
41
 
42
- & .datepicker-nav { display: flex; align-items: center; }
43
- & .datepicker-nav-button {
42
+ & .crisp-datepicker-nav { display: flex; align-items: center; }
43
+ & .crisp-datepicker-nav-button {
44
44
  display: inline-flex; align-items: center; justify-content: center;
45
45
  width: ${c.size.menuRow}; height: ${c.size.menuRow}; padding: 0;
46
46
  border: none; border-radius: ${c.radius.md}; background: none;
@@ -48,37 +48,37 @@ const config = defineRecipe({
48
48
  outline: 2px solid transparent; outline-offset: -2px;
49
49
  transition: background-color .12s, outline-color .2s ease;
50
50
  }
51
- & .datepicker-nav-button:hover { background: ${c.bgRaised}; }
52
- & .datepicker-nav-button:focus-visible { outline-color: ${c.strokeFocusRing}; }
53
- & .datepicker-nav-button:disabled { opacity: .4; cursor: not-allowed; }
51
+ & .crisp-datepicker-nav-button:hover { background: ${c.bgRaised}; }
52
+ & .crisp-datepicker-nav-button:focus-visible { outline-color: ${c.strokeFocusRing}; }
53
+ & .crisp-datepicker-nav-button:disabled { opacity: .4; cursor: not-allowed; }
54
54
 
55
- & .datepicker-weekday-row {
55
+ & .crisp-datepicker-weekday-row {
56
56
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
57
57
  position: relative; z-index: 2; background: ${c.bgSurface};
58
58
  }
59
- & .datepicker-weekday {
59
+ & .crisp-datepicker-weekday {
60
60
  display: flex; align-items: center; justify-content: center;
61
61
  height: ${c.size.calendarCell}; color: ${c.fgNeutralSubtle};
62
62
  font-size: ${c.text.sm}; line-height: 16px; font-weight: ${c.weight.medium};
63
63
  }
64
64
 
65
- & .datepicker-months { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-width: 0; }
66
- & .datepicker-months[data-wheel-open] { visibility: hidden; }
67
- & .datepicker-month { min-width: 0; }
68
- & .datepicker-month-label {
65
+ & .crisp-datepicker-months { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-width: 0; }
66
+ & .crisp-datepicker-months[data-wheel-open] { visibility: hidden; }
67
+ & .crisp-datepicker-month { min-width: 0; }
68
+ & .crisp-datepicker-month-label {
69
69
  display: flex; align-items: center; height: 24px;
70
70
  color: ${c.fgPrimary}; font-size: ${c.text.lg}; line-height: 20px;
71
71
  font-weight: ${c.weight.medium};
72
72
  }
73
73
 
74
- & .datepicker-grid { display: grid; min-width: 0; }
75
- & .datepicker-week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
74
+ & .crisp-datepicker-grid { display: grid; min-width: 0; }
75
+ & .crisp-datepicker-week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
76
76
 
77
- & .datepicker-cell {
77
+ & .crisp-datepicker-cell {
78
78
  position: relative; min-width: 0; min-height: ${c.size.calendarCell};
79
79
  isolation: isolate;
80
80
  }
81
- & .datepicker-empty-cell { min-height: ${c.size.calendarCell}; }
81
+ & .crisp-datepicker-empty-cell { min-height: ${c.size.calendarCell}; }
82
82
 
83
83
  /* The bridge joining days inside a completed range.
84
84
  The endpoints do NOT carry data-in-range -- only the interior days do --
@@ -87,22 +87,22 @@ const config = defineRecipe({
87
87
  element on an endpoint, which leaves a half-cell of white between the
88
88
  endpoint's pill and the run of grey beside it. Each rule declares its
89
89
  own content. */
90
- & .datepicker-cell[data-range-complete][data-in-range]::before {
90
+ & .crisp-datepicker-cell[data-range-complete][data-in-range]::before {
91
91
  content: ""; position: absolute; z-index: -1; inset-inline: 0;
92
92
  top: ${pillInset}; height: ${c.size.calendarPill}; background: ${c.bgNeutralWeak};
93
93
  }
94
- & .datepicker-cell[data-range-complete][data-range-start]:not([data-range-end])::before {
94
+ & .crisp-datepicker-cell[data-range-complete][data-range-start]:not([data-range-end])::before {
95
95
  content: ""; position: absolute; z-index: -1;
96
96
  inset-inline-start: 50%; inset-inline-end: 0;
97
97
  top: ${pillInset}; height: ${c.size.calendarPill}; background: ${c.bgNeutralWeak};
98
98
  }
99
- & .datepicker-cell[data-range-complete][data-range-end]:not([data-range-start])::before {
99
+ & .crisp-datepicker-cell[data-range-complete][data-range-end]:not([data-range-start])::before {
100
100
  content: ""; position: absolute; z-index: -1;
101
101
  inset-inline-start: 0; inset-inline-end: 50%;
102
102
  top: ${pillInset}; height: ${c.size.calendarPill}; background: ${c.bgNeutralWeak};
103
103
  }
104
104
 
105
- & .datepicker-date {
105
+ & .crisp-datepicker-date {
106
106
  position: relative; display: flex; width: 100%; height: 100%;
107
107
  min-height: ${c.size.calendarCell}; min-width: 0;
108
108
  align-items: flex-start; justify-content: center;
@@ -111,27 +111,27 @@ const config = defineRecipe({
111
111
  isolation: isolate;
112
112
  }
113
113
  /* the round day highlight, behind the numeral */
114
- & .datepicker-date::before {
114
+ & .crisp-datepicker-date::before {
115
115
  content: ""; position: absolute; z-index: -1; top: ${pillInset}; left: 50%;
116
116
  width: ${c.size.calendarPill}; height: ${c.size.calendarPill};
117
117
  border-radius: ${c.radius.md};
118
118
  background: transparent; transform: translateX(-50%);
119
119
  }
120
- & .datepicker-date[data-today]::before { background: ${c.bgNeutralWeak}; }
121
- & .datepicker-date[data-selected]::before { background: ${c.bgBrandSolid}; }
122
- & .datepicker-date[data-selected] { color: ${c.fgOnBrand}; }
123
- & .datepicker-date[data-in-range] { color: ${c.fgPrimary}; }
124
- & .datepicker-date[data-in-range]::before { background: transparent; }
125
- & .datepicker-date[data-unavailable] { color: ${c.fgDisabled}; }
126
- & .datepicker-date:disabled { color: ${c.fgDisabled}; cursor: not-allowed; }
127
- & .datepicker-date:focus-visible::after {
120
+ & .crisp-datepicker-date[data-today]::before { background: ${c.bgNeutralWeak}; }
121
+ & .crisp-datepicker-date[data-selected]::before { background: ${c.bgBrandSolid}; }
122
+ & .crisp-datepicker-date[data-selected] { color: ${c.fgOnBrand}; }
123
+ & .crisp-datepicker-date[data-in-range] { color: ${c.fgPrimary}; }
124
+ & .crisp-datepicker-date[data-in-range]::before { background: transparent; }
125
+ & .crisp-datepicker-date[data-unavailable] { color: ${c.fgDisabled}; }
126
+ & .crisp-datepicker-date:disabled { color: ${c.fgDisabled}; cursor: not-allowed; }
127
+ & .crisp-datepicker-date:focus-visible::after {
128
128
  content: ""; position: absolute; top: ${pillInset}; left: 50%;
129
129
  width: ${c.size.calendarPill}; height: ${c.size.calendarPill};
130
130
  transform: translateX(-50%); border-radius: ${c.radius.md};
131
131
  outline: 2px solid ${c.strokeFocusRing}; outline-offset: -2px;
132
132
  }
133
133
 
134
- & .datepicker-date-content {
134
+ & .crisp-datepicker-date-content {
135
135
  position: relative; z-index: 1; display: flex; width: 100%;
136
136
  min-height: ${c.size.calendarCell}; min-width: 0; box-sizing: border-box;
137
137
  flex-direction: column; align-items: center; gap: 3px;
@@ -143,29 +143,29 @@ const config = defineRecipe({
143
143
  Without this the content column top-aligns the glyph and the pill reads
144
144
  as offset — the cell is 48px, the pill 42px inset 3px, and only a
145
145
  42px-tall numeral box shares the pill's centre line. */
146
- & .datepicker-date-content > [data-date-picker-day] {
146
+ & .crisp-datepicker-date-content > [data-date-picker-day] {
147
147
  display: flex; min-height: ${c.size.calendarPill}; flex-shrink: 0;
148
148
  align-items: center; justify-content: center;
149
149
  }
150
150
 
151
151
  /* the year/month wheel, laid over the grid it replaces */
152
- & .datepicker-wheel-container {
152
+ & .crisp-datepicker-wheel-container {
153
153
  position: absolute; z-index: 1; inset-inline: 0;
154
154
  top: ${c.size.menuRow}; bottom: 0;
155
155
  display: flex; align-items: center; overflow: hidden;
156
156
  background: ${c.bgSurface};
157
157
  }
158
- & .datepicker-wheel { width: 100%; }
158
+ & .crisp-datepicker-wheel { width: 100%; }
159
159
 
160
- & .datepicker-continuous-scroll {
160
+ & .crisp-datepicker-continuous-scroll {
161
161
  height: 100%; min-height: 0; overflow-y: auto;
162
162
  overscroll-behavior: contain; scrollbar-width: none;
163
163
  }
164
- & .datepicker-continuous-scroll::-webkit-scrollbar { display: none; }
165
- & .datepicker-continuous-content { display: flex; flex-direction: column; }
164
+ & .crisp-datepicker-continuous-scroll::-webkit-scrollbar { display: none; }
165
+ & .crisp-datepicker-continuous-content { display: flex; flex-direction: column; }
166
166
 
167
167
  /* announced, never drawn */
168
- & .datepicker-live-region {
168
+ & .crisp-datepicker-live-region {
169
169
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
170
170
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
171
171
  }
@@ -173,11 +173,11 @@ const config = defineRecipe({
173
173
  variants: {
174
174
  visibleRange: {
175
175
  month: ``,
176
- twoMonths: `& .datepicker-months { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: ${c.space["6"]}; }
177
- & .datepicker-two-month-header { display: flex; align-items: center; justify-content: space-between; height: ${c.size.menuRow}; }
178
- & .datepicker-two-month-label { color: ${c.fgPrimary}; font-size: ${c.text.lg}; line-height: 20px; font-weight: ${c.weight.medium}; }`,
176
+ twoMonths: `& .crisp-datepicker-months { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: ${c.space["6"]}; }
177
+ & .crisp-datepicker-two-month-header { display: flex; align-items: center; justify-content: space-between; height: ${c.size.menuRow}; }
178
+ & .crisp-datepicker-two-month-label { color: ${c.fgPrimary}; font-size: ${c.text.lg}; line-height: 20px; font-weight: ${c.weight.medium}; }`,
179
179
  week: ``,
180
- continuous: `& .datepicker-weekday-row { position: sticky; top: 0; }`,
180
+ continuous: `& .crisp-datepicker-weekday-row { position: sticky; top: 0; }`,
181
181
  },
182
182
  },
183
183
  defaultVariants: { visibleRange: "month" },
@@ -33,7 +33,7 @@ export function DatePickerField({ value, defaultValue, onValueChange, onChange,
33
33
  onChange?.(d);
34
34
  setOpen(false);
35
35
  };
36
- return (_jsx("div", { className: datepickerfieldRecipe({ className }), ...rest, children: _jsx(Popover, { open: open, onOpenChange: setOpen, "aria-label": ariaLabel, trigger: _jsxs("button", { type: "button", className: "datepickerfield-trigger", "data-ghost": variant === "ghost" ? "" : undefined, "data-placeholder": selected ? undefined : "", "aria-label": ariaLabel, children: [_jsx(CalendarDays, { size: 15, strokeWidth: 1.75, "aria-hidden": "true" }), selected ? format(selected) : placeholder] }), children: _jsxs("div", { className: "datepickerfield-panel", children: [_jsx(DatePicker
36
+ return (_jsx("div", { className: datepickerfieldRecipe({ className }), ...rest, children: _jsx(Popover, { open: open, onOpenChange: setOpen, "aria-label": ariaLabel, trigger: _jsxs("button", { type: "button", className: "crisp-datepickerfield-trigger", "data-ghost": variant === "ghost" ? "" : undefined, "data-placeholder": selected ? undefined : "", "aria-label": ariaLabel, children: [_jsx(CalendarDays, { size: 15, strokeWidth: 1.75, "aria-hidden": "true" }), selected ? format(selected) : placeholder] }), children: _jsxs("div", { className: "crisp-datepickerfield-panel", children: [_jsx(DatePicker
37
37
  // DatePickerProps is a union over selectionMode, and TypeScript
38
38
  // cannot narrow it through a spread: it tries every branch and
39
39
  // reports the range one as missing props. The field is always
@@ -46,6 +46,6 @@ export function DatePickerField({ value, defaultValue, onValueChange, onChange,
46
46
  if (next)
47
47
  pick(toDate(next));
48
48
  },
49
- } }), presets && presets.length > 0 && (_jsx("div", { className: "datepickerfield-presets", children: presets.map((p, i) => (_jsx("button", { type: "button", className: "datepickerfield-preset", onClick: () => pick(p.date()), children: p.label }, typeof p.label === "string" ? p.label : i))) }))] }) }) }));
49
+ } }), presets && presets.length > 0 && (_jsx("div", { className: "crisp-datepickerfield-presets", children: presets.map((p, i) => (_jsx("button", { type: "button", className: "crisp-datepickerfield-preset", onClick: () => pick(p.date()), children: p.label }, typeof p.label === "string" ? p.label : i))) }))] }) }) }));
50
50
  }
51
51
  DatePickerField.displayName = "DatePickerField";
@@ -9,7 +9,7 @@ const config = defineRecipe({
9
9
  base: `
10
10
  display: inline-flex; font-family: ${c.font.sans};
11
11
 
12
- & .datepickerfield-trigger {
12
+ & .crisp-datepickerfield-trigger {
13
13
  display: inline-flex; align-items: center; gap: ${c.space["2"]};
14
14
  box-sizing: border-box; height: 32px; padding: 0 ${c.space["2.5"]}; margin: 0;
15
15
  border: none; border-radius: ${c.radius.md}; background: transparent;
@@ -17,19 +17,19 @@ const config = defineRecipe({
17
17
  color: ${c.fgPrimary}; font-family: inherit; font-size: ${c.text.lg};
18
18
  white-space: nowrap; cursor: pointer;
19
19
  }
20
- & .datepickerfield-trigger[data-ghost] { background: transparent; box-shadow: none; }
21
- & .datepickerfield-trigger[data-ghost]:hover { background: color-mix(in srgb, ${c.fgPrimary} 4%, transparent); }
22
- & .datepickerfield-trigger[data-placeholder] { color: ${c.fgMuted}; }
23
- & .datepickerfield-trigger svg { flex-shrink: 0; color: ${c.fgMuted}; }
20
+ & .crisp-datepickerfield-trigger[data-ghost] { background: transparent; box-shadow: none; }
21
+ & .crisp-datepickerfield-trigger[data-ghost]:hover { background: color-mix(in srgb, ${c.fgPrimary} 4%, transparent); }
22
+ & .crisp-datepickerfield-trigger[data-placeholder] { color: ${c.fgMuted}; }
23
+ & .crisp-datepickerfield-trigger svg { flex-shrink: 0; color: ${c.fgMuted}; }
24
24
 
25
- & .datepickerfield-panel { padding: ${c.space["2"]}; width: 300px; }
26
- & .datepickerfield-presets { display: flex; flex-wrap: wrap; gap: ${c.space["1"]}; margin-top: ${c.space["2"]}; }
27
- & .datepickerfield-preset {
25
+ & .crisp-datepickerfield-panel { padding: ${c.space["2"]}; width: 300px; }
26
+ & .crisp-datepickerfield-presets { display: flex; flex-wrap: wrap; gap: ${c.space["1"]}; margin-top: ${c.space["2"]}; }
27
+ & .crisp-datepickerfield-preset {
28
28
  height: ${c.size.chip}; padding: 0 ${c.space["2"]}; border: none;
29
29
  border-radius: ${c.radius.chip}; background: ${c.bgRaised}; color: ${c.fgPrimary};
30
30
  font-family: inherit; font-size: ${c.text.sm}; cursor: pointer;
31
31
  }
32
- & .datepickerfield-preset:hover { background: color-mix(in srgb, ${c.fgPrimary} 8%, transparent); }
32
+ & .crisp-datepickerfield-preset:hover { background: color-mix(in srgb, ${c.fgPrimary} 8%, transparent); }
33
33
  `,
34
34
  variants: {},
35
35
  defaultVariants: {},
@@ -32,21 +32,21 @@ export function Dialog({ open, onOpenChange, title, icon, width = 640, "aria-lab
32
32
  },
33
33
  // Focus the first form field on open (like the command palette focuses its
34
34
  // search), rather than the close button; fall back to the machine default.
35
- initialFocusEl: () => document.querySelector(`[data-crisp-dialog="${id}"] .dialog-body :where(input, textarea, select, [contenteditable]):not([disabled])`),
35
+ initialFocusEl: () => document.querySelector(`[data-crisp-dialog="${id}"] .crisp-dialog-body :where(input, textarea, select, [contenteditable]):not([disabled])`),
36
36
  "aria-label": typeof title === "string" ? title : ariaLabel,
37
37
  });
38
38
  const api = dialog.connect(service, normalizeProps);
39
39
  if (!api.open)
40
40
  return null;
41
- return (_jsx(Portal, { children: _jsxs("div", { className: dialogRecipe(), children: [_jsx("div", { ...api.getBackdropProps(), className: "dialog-backdrop" }), _jsx("div", { ...api.getPositionerProps(), className: "dialog-positioner", children: _jsx("div", { ...rest, ...withDescribedBy(api.getContentProps(), describedBy), className: cx("dialog-content", className), "data-crisp-dialog": id,
41
+ return (_jsx(Portal, { children: _jsxs("div", { className: dialogRecipe(), children: [_jsx("div", { ...api.getBackdropProps(), className: "crisp-dialog-backdrop" }), _jsx("div", { ...api.getPositionerProps(), className: "crisp-dialog-positioner", children: _jsx("div", { ...rest, ...withDescribedBy(api.getContentProps(), describedBy), className: cx("crisp-dialog-content", className), "data-crisp-dialog": id,
42
42
  // `width` is the component's own knob, so it wins over a passed
43
43
  // maxWidth; everything else a consumer sets survives
44
- style: { ...style, maxWidth: `min(${width}px, 90vw)` }, children: _jsxs("div", { className: "dialog-card", children: [title != null && (_jsxs("div", { className: "dialog-header", children: [icon, _jsx("span", { ...api.getTitleProps(), className: "dialog-title", children: title }), _jsx("button", { type: "button", ...api.getCloseTriggerProps(), className: "dialog-close", "aria-label": closeLabel, children: _jsx(X, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })] })), children] }) }) })] }) }));
44
+ style: { ...style, maxWidth: `min(${width}px, 90vw)` }, children: _jsxs("div", { className: "crisp-dialog-card", children: [title != null && (_jsxs("div", { className: "crisp-dialog-header", children: [icon, _jsx("span", { ...api.getTitleProps(), className: "crisp-dialog-title", children: title }), _jsx("button", { type: "button", ...api.getCloseTriggerProps(), className: "crisp-dialog-close", "aria-label": closeLabel, children: _jsx(X, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })] })), children] }) }) })] }) }));
45
45
  }
46
46
  Dialog.displayName = "Dialog";
47
47
  export function DialogBody({ children, className, }) {
48
- return (_jsx("div", { className: className ? `dialog-body ${className}` : "dialog-body", children: children }));
48
+ return (_jsx("div", { className: className ? `crisp-dialog-body ${className}` : "crisp-dialog-body", children: children }));
49
49
  }
50
50
  export function DialogFooter({ children }) {
51
- return _jsx("div", { className: "dialog-footer", children: children });
51
+ return _jsx("div", { className: "crisp-dialog-footer", children: children });
52
52
  }
@@ -8,22 +8,22 @@ import { contract as c, elevation as e } from "../../tokens/index.js";
8
8
  const config = defineRecipe({
9
9
  name: "dialog",
10
10
  base: `display: contents; font-family: ${c.font.sans};
11
- & .dialog-backdrop { position: fixed; inset: 0; z-index: 60; background: transparent; }
12
- & .dialog-positioner { position: fixed; inset: 0; z-index: 61; display: flex; align-items: flex-start; justify-content: center; padding: 15vh ${c.space["4"]} ${c.space["4"]}; }
13
- & .dialog-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-height: 74vh; padding: ${c.space["1"]}; border-radius: ${c.radius["2xl"]}; background: color-mix(in srgb, ${c.bgOverlayFrost} 60%, transparent); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: ${e.modal}; opacity: 1; transform: scale(1); transition: opacity 0.2s ease, transform 0.2s ease; @starting-style { opacity: 0; transform: scale(0.97); } }
14
- & .dialog-card { display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; border-radius: ${c.radius.xl}; background: ${c.bgSurface}; box-shadow: 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 8%, transparent); overflow: hidden; }
15
- & .dialog-header { display: flex; align-items: center; gap: ${c.space["2"]}; flex-shrink: 0; height: 52px; padding: 0 ${c.space["2"]} 0 ${c.space["4"]}; border-bottom: 1px solid ${c.borderSubtle}; }
16
- & .dialog-header svg { flex-shrink: 0; color: ${c.fgMuted}; }
17
- & .dialog-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }
18
- & .dialog-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; margin: 0; padding: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted}; font-family: inherit; cursor: pointer; }
19
- & .dialog-close:hover { background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); color: ${c.fgPrimary}; }
20
- & .dialog-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: ${c.space["4"]}; padding: ${c.space["5"]} ${c.space["4"]}; }
21
- & .dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: ${c.space["3"]}; flex-shrink: 0; min-height: 56px; padding: 0 ${c.space["4"]}; border-top: 1px solid ${c.borderSubtle}; }
22
- & .dialog-field { display: flex; flex-direction: column; gap: ${c.space["1.5"]}; }
23
- & .dialog-field-label { font-size: ${c.text.sm}; font-weight: ${c.weight.medium}; color: color-mix(in srgb, ${c.fgPrimary} 50%, transparent); }
24
- & .dialog-more { display: inline-flex; align-items: center; gap: ${c.space["2"]}; margin-inline-end: auto; border: none; background: none; padding: 0; font-family: inherit; font-size: ${c.text.md}; color: ${c.fgMuted}; cursor: pointer; }
25
- & .dialog-submit { display: inline-flex; align-items: center; gap: ${c.space["2"]}; height: 28px; padding: 0 ${c.space["1"]} 0 ${c.space["2.5"]}; border: none; border-radius: ${c.radius.md}; background: ${c.bgBrandSolid}; color: ${c.fgOnBrand}; font-family: inherit; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; cursor: pointer; }
26
- & .dialog-submit-key { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.sm}; background: rgba(255,255,255,0.22); font-size: ${c.text.xs}; }`,
11
+ & .crisp-dialog-backdrop { position: fixed; inset: 0; z-index: 60; background: transparent; }
12
+ & .crisp-dialog-positioner { position: fixed; inset: 0; z-index: 61; display: flex; align-items: flex-start; justify-content: center; padding: 15vh ${c.space["4"]} ${c.space["4"]}; }
13
+ & .crisp-dialog-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-height: 74vh; padding: ${c.space["1"]}; border-radius: ${c.radius["2xl"]}; background: color-mix(in srgb, ${c.bgOverlayFrost} 60%, transparent); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: ${e.modal}; opacity: 1; transform: scale(1); transition: opacity 0.2s ease, transform 0.2s ease; @starting-style { opacity: 0; transform: scale(0.97); } }
14
+ & .crisp-dialog-card { display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; border-radius: ${c.radius.xl}; background: ${c.bgSurface}; box-shadow: 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 8%, transparent); overflow: hidden; }
15
+ & .crisp-dialog-header { display: flex; align-items: center; gap: ${c.space["2"]}; flex-shrink: 0; height: 52px; padding: 0 ${c.space["2"]} 0 ${c.space["4"]}; border-bottom: 1px solid ${c.borderSubtle}; }
16
+ & .crisp-dialog-header svg { flex-shrink: 0; color: ${c.fgMuted}; }
17
+ & .crisp-dialog-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }
18
+ & .crisp-dialog-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; margin: 0; padding: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted}; font-family: inherit; cursor: pointer; }
19
+ & .crisp-dialog-close:hover { background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); color: ${c.fgPrimary}; }
20
+ & .crisp-dialog-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: ${c.space["4"]}; padding: ${c.space["5"]} ${c.space["4"]}; }
21
+ & .crisp-dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: ${c.space["3"]}; flex-shrink: 0; min-height: 56px; padding: 0 ${c.space["4"]}; border-top: 1px solid ${c.borderSubtle}; }
22
+ & .crisp-dialog-field { display: flex; flex-direction: column; gap: ${c.space["1.5"]}; }
23
+ & .crisp-dialog-field-label { font-size: ${c.text.sm}; font-weight: ${c.weight.medium}; color: color-mix(in srgb, ${c.fgPrimary} 50%, transparent); }
24
+ & .crisp-dialog-more { display: inline-flex; align-items: center; gap: ${c.space["2"]}; margin-inline-end: auto; border: none; background: none; padding: 0; font-family: inherit; font-size: ${c.text.md}; color: ${c.fgMuted}; cursor: pointer; }
25
+ & .crisp-dialog-submit { display: inline-flex; align-items: center; gap: ${c.space["2"]}; height: 28px; padding: 0 ${c.space["1"]} 0 ${c.space["2.5"]}; border: none; border-radius: ${c.radius.md}; background: ${c.bgBrandSolid}; color: ${c.fgOnBrand}; font-family: inherit; font-size: ${c.text.md}; font-weight: ${c.weight.medium}; cursor: pointer; }
26
+ & .crisp-dialog-submit-key { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding: 0 ${c.space["1"]}; border-radius: ${c.radius.sm}; background: rgba(255,255,255,0.22); font-size: ${c.text.xs}; }`,
27
27
  variants: {},
28
28
  defaultVariants: {},
29
29
  compoundVariants: [],
@@ -33,6 +33,6 @@ export function DonutChart({ data, size = 120, thickness = 14, centerValue, cent
33
33
  });
34
34
  const summary = ariaLabel ??
35
35
  `Donut chart: ${data.map((d) => `${d.label} ${format(d.value)}`).join(", ")}`;
36
- return (_jsxs("div", { className: donutchartRecipe({ className }), ...rest, role: "img", "aria-label": summary, children: [_jsxs("div", { className: "donutchart-ring", style: { width: size, height: size }, children: [_jsxs("svg", { className: "donutchart-svg", width: size, height: size, viewBox: "0 0 42 42", "aria-hidden": "true", children: [_jsx("circle", { className: "donutchart-track", cx: 21, cy: 21, r: R, strokeWidth: (thickness / size) * 42 }), slices.map((s) => (_jsx("circle", { className: "donutchart-seg", cx: 21, cy: 21, r: R, stroke: s.color, strokeWidth: (thickness / size) * 42, strokeDasharray: `${s.pct} ${100 - s.pct}`, strokeDashoffset: s.offset, children: _jsx("title", { children: `${s.label}: ${format(s.value)}` }) }, s.label)))] }), _jsxs("div", { className: "donutchart-center", children: [_jsx("span", { className: "donutchart-total", children: centerValue ?? format(total) }), centerCaption != null && (_jsx("span", { className: "donutchart-caption", children: centerCaption }))] })] }), legend && (_jsx("div", { className: "donutchart-legend", children: slices.map((s) => (_jsxs("span", { className: "donutchart-item", children: [_jsx("span", { className: "donutchart-swatch", style: { background: s.color } }), _jsx("span", { className: "donutchart-name", children: s.label }), _jsx("span", { className: "donutchart-val", children: format(s.value) })] }, s.label))) }))] }));
36
+ return (_jsxs("div", { className: donutchartRecipe({ className }), ...rest, role: "img", "aria-label": summary, children: [_jsxs("div", { className: "crisp-donutchart-ring", style: { width: size, height: size }, children: [_jsxs("svg", { className: "crisp-donutchart-svg", width: size, height: size, viewBox: "0 0 42 42", "aria-hidden": "true", children: [_jsx("circle", { className: "crisp-donutchart-track", cx: 21, cy: 21, r: R, strokeWidth: (thickness / size) * 42 }), slices.map((s) => (_jsx("circle", { className: "crisp-donutchart-seg", cx: 21, cy: 21, r: R, stroke: s.color, strokeWidth: (thickness / size) * 42, strokeDasharray: `${s.pct} ${100 - s.pct}`, strokeDashoffset: s.offset, children: _jsx("title", { children: `${s.label}: ${format(s.value)}` }) }, s.label)))] }), _jsxs("div", { className: "crisp-donutchart-center", children: [_jsx("span", { className: "crisp-donutchart-total", children: centerValue ?? format(total) }), centerCaption != null && (_jsx("span", { className: "crisp-donutchart-caption", children: centerCaption }))] })] }), legend && (_jsx("div", { className: "crisp-donutchart-legend", children: slices.map((s) => (_jsxs("span", { className: "crisp-donutchart-item", children: [_jsx("span", { className: "crisp-donutchart-swatch", style: { background: s.color } }), _jsx("span", { className: "crisp-donutchart-name", children: s.label }), _jsx("span", { className: "crisp-donutchart-val", children: format(s.value) })] }, s.label))) }))] }));
37
37
  }
38
38
  DonutChart.displayName = "DonutChart";
@@ -7,18 +7,18 @@ const config = defineRecipe({
7
7
  name: "donutchart",
8
8
  base: `display: inline-flex; align-items: center; gap: ${c.space["4"]}; box-sizing: border-box; font-family: ${c.font.sans};
9
9
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
10
- & .donutchart-ring { position: relative; flex-shrink: 0; }
11
- & .donutchart-svg { display: block; }
12
- & .donutchart-seg { fill: none; transition: stroke-dasharray 0.3s ease; }
13
- & .donutchart-track { fill: none; stroke: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); }
14
- & .donutchart-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
15
- & .donutchart-total { font-size: ${c.text.xl}; font-weight: ${c.weight.semibold}; letter-spacing: -0.3px; color: ${c.fgPrimary}; }
16
- & .donutchart-caption { font-size: ${c.text.xs}; color: ${c.fgMuted}; }
17
- & .donutchart-legend { display: flex; flex-direction: column; gap: ${c.space["1.5"]}; min-width: 0; }
18
- & .donutchart-item { display: inline-flex; align-items: center; gap: ${c.space["2"]}; font-size: ${c.text.md}; color: ${c.fgPrimary}; }
19
- & .donutchart-swatch { width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; }
20
- & .donutchart-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: ${c.fgMuted}; }
21
- & .donutchart-val { flex-shrink: 0; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }`,
10
+ & .crisp-donutchart-ring { position: relative; flex-shrink: 0; }
11
+ & .crisp-donutchart-svg { display: block; }
12
+ & .crisp-donutchart-seg { fill: none; transition: stroke-dasharray 0.3s ease; }
13
+ & .crisp-donutchart-track { fill: none; stroke: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); }
14
+ & .crisp-donutchart-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
15
+ & .crisp-donutchart-total { font-size: ${c.text.xl}; font-weight: ${c.weight.semibold}; letter-spacing: -0.3px; color: ${c.fgPrimary}; }
16
+ & .crisp-donutchart-caption { font-size: ${c.text.xs}; color: ${c.fgMuted}; }
17
+ & .crisp-donutchart-legend { display: flex; flex-direction: column; gap: ${c.space["1.5"]}; min-width: 0; }
18
+ & .crisp-donutchart-item { display: inline-flex; align-items: center; gap: ${c.space["2"]}; font-size: ${c.text.md}; color: ${c.fgPrimary}; }
19
+ & .crisp-donutchart-swatch { width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; }
20
+ & .crisp-donutchart-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: ${c.fgMuted}; }
21
+ & .crisp-donutchart-val { flex-shrink: 0; font-weight: ${c.weight.medium}; color: ${c.fgPrimary}; }`,
22
22
  variants: {},
23
23
  defaultVariants: {},
24
24
  compoundVariants: [],
@@ -32,12 +32,12 @@ export function Drawer({ open, onOpenChange, side = "right", title, icon, "aria-
32
32
  const api = dialog.connect(service, normalizeProps);
33
33
  if (!api.open)
34
34
  return null;
35
- return (_jsx(Portal, { children: _jsxs("div", { className: drawerRecipe(), children: [_jsx("div", { ...api.getBackdropProps(), className: "drawer-backdrop" }), _jsx("div", { ...api.getPositionerProps(), className: "drawer-positioner", "data-side": side, children: _jsxs("div", { ...rest, ...withDescribedBy(api.getContentProps(), describedBy), className: cx("drawer-content", className), children: [title != null && (_jsxs("div", { className: "drawer-header", children: [icon, _jsx("span", { ...api.getTitleProps(), className: "drawer-title", children: title }), _jsx("button", { type: "button", ...api.getCloseTriggerProps(), className: "drawer-close", "aria-label": closeLabel, children: _jsx(X, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })] })), children] }) })] }) }));
35
+ return (_jsx(Portal, { children: _jsxs("div", { className: drawerRecipe(), children: [_jsx("div", { ...api.getBackdropProps(), className: "crisp-drawer-backdrop" }), _jsx("div", { ...api.getPositionerProps(), className: "crisp-drawer-positioner", "data-side": side, children: _jsxs("div", { ...rest, ...withDescribedBy(api.getContentProps(), describedBy), className: cx("crisp-drawer-content", className), children: [title != null && (_jsxs("div", { className: "crisp-drawer-header", children: [icon, _jsx("span", { ...api.getTitleProps(), className: "crisp-drawer-title", children: title }), _jsx("button", { type: "button", ...api.getCloseTriggerProps(), className: "crisp-drawer-close", "aria-label": closeLabel, children: _jsx(X, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })] })), children] }) })] }) }));
36
36
  }
37
37
  Drawer.displayName = "Drawer";
38
38
  export function DrawerBody({ children }) {
39
- return _jsx("div", { className: "drawer-body", children: children });
39
+ return _jsx("div", { className: "crisp-drawer-body", children: children });
40
40
  }
41
41
  export function DrawerFooter({ children }) {
42
- return _jsx("div", { className: "drawer-footer", children: children });
42
+ return _jsx("div", { className: "crisp-drawer-footer", children: children });
43
43
  }
@@ -5,20 +5,20 @@ import { contract as c, elevation as e } from "../../tokens/index.js";
5
5
  const config = defineRecipe({
6
6
  name: "drawer",
7
7
  base: `display: contents; font-family: ${c.font.sans};
8
- & .drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, ${c.fgPrimary} 18%, transparent); opacity: 1; transition: opacity 0.2s ease; @starting-style { opacity: 0; } }
9
- & .drawer-positioner { position: fixed; inset: 0; z-index: 61; display: flex; box-sizing: border-box; padding: ${c.space["2"]}; }
10
- & .drawer-positioner[data-side="right"] { justify-content: flex-end; }
11
- & .drawer-positioner[data-side="left"] { justify-content: flex-start; }
12
- & .drawer-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; width: 420px; max-width: 100%; height: 100%; background: ${c.bgSurface}; border-radius: ${c.radius.xl}; box-shadow: ${e.floating}; transform: none; transition: transform 0.24s cubic-bezier(.32,.72,0,1); }
13
- & .drawer-positioner[data-side="right"] .drawer-content { @starting-style { transform: translateX(calc(100% + ${c.space["2"]})); } }
14
- & .drawer-positioner[data-side="left"] .drawer-content { @starting-style { transform: translateX(calc(-100% - ${c.space["2"]})); } }
15
- & .drawer-header { display: flex; align-items: center; gap: ${c.space["2"]}; flex-shrink: 0; height: 52px; padding: 0 ${c.space["2"]} 0 ${c.space["4"]}; border-bottom: 1px solid ${c.borderSubtle}; }
16
- & .drawer-header svg { flex-shrink: 0; color: ${c.fgMuted}; }
17
- & .drawer-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.semibold}; color: ${c.fgPrimary}; }
18
- & .drawer-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; margin: 0; padding: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted}; font-family: inherit; cursor: pointer; }
19
- & .drawer-close:hover { background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); color: ${c.fgPrimary}; }
20
- & .drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: ${c.space["4"]}; }
21
- & .drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: ${c.space["3"]}; flex-shrink: 0; min-height: 56px; padding: 0 ${c.space["4"]}; border-top: 1px solid ${c.borderSubtle}; }`,
8
+ & .crisp-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, ${c.fgPrimary} 18%, transparent); opacity: 1; transition: opacity 0.2s ease; @starting-style { opacity: 0; } }
9
+ & .crisp-drawer-positioner { position: fixed; inset: 0; z-index: 61; display: flex; box-sizing: border-box; padding: ${c.space["2"]}; }
10
+ & .crisp-drawer-positioner[data-side="right"] { justify-content: flex-end; }
11
+ & .crisp-drawer-positioner[data-side="left"] { justify-content: flex-start; }
12
+ & .crisp-drawer-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; width: 420px; max-width: 100%; height: 100%; background: ${c.bgSurface}; border-radius: ${c.radius.xl}; box-shadow: ${e.floating}; transform: none; transition: transform 0.24s cubic-bezier(.32,.72,0,1); }
13
+ & .crisp-drawer-positioner[data-side="right"] .crisp-drawer-content { @starting-style { transform: translateX(calc(100% + ${c.space["2"]})); } }
14
+ & .crisp-drawer-positioner[data-side="left"] .crisp-drawer-content { @starting-style { transform: translateX(calc(-100% - ${c.space["2"]})); } }
15
+ & .crisp-drawer-header { display: flex; align-items: center; gap: ${c.space["2"]}; flex-shrink: 0; height: 52px; padding: 0 ${c.space["2"]} 0 ${c.space["4"]}; border-bottom: 1px solid ${c.borderSubtle}; }
16
+ & .crisp-drawer-header svg { flex-shrink: 0; color: ${c.fgMuted}; }
17
+ & .crisp-drawer-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${c.text.lg}; font-weight: ${c.weight.semibold}; color: ${c.fgPrimary}; }
18
+ & .crisp-drawer-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; margin: 0; padding: 0; border: none; border-radius: ${c.radius.md}; background: none; color: ${c.fgMuted}; font-family: inherit; cursor: pointer; }
19
+ & .crisp-drawer-close:hover { background: color-mix(in srgb, ${c.fgPrimary} 6%, transparent); color: ${c.fgPrimary}; }
20
+ & .crisp-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: ${c.space["4"]}; }
21
+ & .crisp-drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: ${c.space["3"]}; flex-shrink: 0; min-height: 56px; padding: 0 ${c.space["4"]}; border-top: 1px solid ${c.borderSubtle}; }`,
22
22
  variants: {},
23
23
  defaultVariants: {},
24
24
  compoundVariants: [],
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { emptystateRecipe } from "./emptystate.recipe.js";
3
3
  /** A centred empty-state panel — icon, title, description, optional action. */
4
4
  export function EmptyState({ icon, title, description, action, variant, className, ...rest }) {
5
- return (_jsxs("div", { className: emptystateRecipe({ variant, className }), ...rest, children: [icon && _jsx("span", { className: "emptystate-icon", children: icon }), _jsx("div", { className: "emptystate-title", children: title }), description != null && (_jsx("div", { className: "emptystate-desc", children: description })), action && _jsx("div", { className: "emptystate-action", children: action })] }));
5
+ return (_jsxs("div", { className: emptystateRecipe({ variant, className }), ...rest, children: [icon && _jsx("span", { className: "crisp-emptystate-icon", children: icon }), _jsx("div", { className: "crisp-emptystate-title", children: title }), description != null && (_jsx("div", { className: "crisp-emptystate-desc", children: description })), action && _jsx("div", { className: "crisp-emptystate-action", children: action })] }));
6
6
  }
7
7
  EmptyState.displayName = "EmptyState";
@@ -4,24 +4,24 @@ import { contract as c } from "../../tokens/index.js";
4
4
  const config = defineRecipe({
5
5
  name: "emptystate",
6
6
  base: `display: flex; flex-direction: column; align-items: center; justify-content: center; gap: ${c.space["1.5"]}; box-sizing: border-box; padding: ${c.space["8"]} ${c.space["4"]}; text-align: center; font-family: ${c.font.sans};
7
- & .emptystate-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: ${c.space["1"]}; border-radius: ${c.radius.xl}; background: color-mix(in srgb, ${c.fgPrimary} 5%, transparent); color: ${c.fgMuted}; }
8
- & .emptystate-title { font-size: ${c.text.lg}; font-weight: ${c.weight.semibold}; color: ${c.fgPrimary}; }
9
- & .emptystate-desc { max-width: 320px; font-size: ${c.text.md}; color: ${c.fgMuted}; }
10
- & .emptystate-action { margin-top: ${c.space["2"]}; }`,
7
+ & .crisp-emptystate-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: ${c.space["1"]}; border-radius: ${c.radius.xl}; background: color-mix(in srgb, ${c.fgPrimary} 5%, transparent); color: ${c.fgMuted}; }
8
+ & .crisp-emptystate-title { font-size: ${c.text.lg}; font-weight: ${c.weight.semibold}; color: ${c.fgPrimary}; }
9
+ & .crisp-emptystate-desc { max-width: 320px; font-size: ${c.text.md}; color: ${c.fgMuted}; }
10
+ & .crisp-emptystate-action { margin-top: ${c.space["2"]}; }`,
11
11
  variants: {
12
12
  variant: {
13
13
  // compact icon tile (default)
14
14
  default: ``,
15
15
  // a large icon on a dotted-grid backdrop — a Developers/Reports empty state
16
- illustrated: `& .emptystate-icon { width: 132px; height: 96px; margin-bottom: ${c.space["2"]}; border-radius: 0; color: color-mix(in srgb, ${c.fgPrimary} 22%, transparent); background: radial-gradient(circle, color-mix(in srgb, ${c.fgPrimary} 12%, transparent) 1.2px, transparent 1.2px) 0 0 / 16px 16px; }`,
16
+ illustrated: `& .crisp-emptystate-icon { width: 132px; height: 96px; margin-bottom: ${c.space["2"]}; border-radius: 0; color: color-mix(in srgb, ${c.fgPrimary} 22%, transparent); background: radial-gradient(circle, color-mix(in srgb, ${c.fgPrimary} 12%, transparent) 1.2px, transparent 1.2px) 0 0 / 16px 16px; }`,
17
17
  // A full-view empty state (measured from a filtered-to-zero records table):
18
18
  // a 45px ringed circle icon, a 20/24 semibold heading, a 14/20 medium muted body,
19
19
  // then a primary action. Gaps are 16 / 8 / 16 (icon→title→desc→action).
20
20
  page: `gap: ${c.space["2"]};
21
- & .emptystate-icon { width: 45px; height: 45px; margin-bottom: ${c.space["2"]}; border-radius: ${c.radius.full}; border: 1px solid ${c.borderSubtle}; background: none; color: ${c.fgMuted}; }
22
- & .emptystate-title { font-size: 20px; line-height: 24px; }
23
- & .emptystate-desc { max-width: 266px; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; line-height: 20px; }
24
- & .emptystate-action { margin-top: ${c.space["2"]}; }`,
21
+ & .crisp-emptystate-icon { width: 45px; height: 45px; margin-bottom: ${c.space["2"]}; border-radius: ${c.radius.full}; border: 1px solid ${c.borderSubtle}; background: none; color: ${c.fgMuted}; }
22
+ & .crisp-emptystate-title { font-size: 20px; line-height: 24px; }
23
+ & .crisp-emptystate-desc { max-width: 266px; font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; line-height: 20px; }
24
+ & .crisp-emptystate-action { margin-top: ${c.space["2"]}; }`,
25
25
  },
26
26
  },
27
27
  defaultVariants: { variant: "default" },
@@ -86,9 +86,9 @@ export function FileUpload({ className, labels, "aria-label": ariaLabel, accept,
86
86
  // file goes, and a container that disappears with the item cannot say where
87
87
  // focus should land next.
88
88
  const rootRef = React.useRef(null);
89
- const focusAfterRemoval = useFocusAfterRemoval(rootRef, ".fileupload-remove", dropzoneRef);
90
- return (_jsxs("div", { ref: rootRef, ...rest, className: fileuploadRecipe({ className }), children: [_jsxs("button", { ...dropzoneProps, ref: dropzoneRef, type: "button", className: "fileupload-zone", tabIndex: disabled ? -1 : 0, "aria-label": ariaLabel ?? t.hint, disabled: disabled, "data-dragging": dragging ? "" : undefined, "data-disabled": disabled ? "" : undefined, "data-invalid": invalid ? "" : undefined, onClick: () => openFilePicker(), children: [_jsx("span", { className: "fileupload-title", children: t.title }), _jsx("span", { className: "fileupload-hint", children: t.hint })] }), _jsx("input", { ...hiddenInputProps, ref: inputRef, className: "fileupload-input" }), acceptedFileEntries.length > 0 && (_jsx("ul", { className: "fileupload-list", children: acceptedFileEntries.map((entry, i) => (_jsxs("li", { className: "fileupload-item", "data-status": entry.status, children: [_jsx("span", { className: "fileupload-item-name", children: entry.file.name }), entry.status === "uploading" && entry.progress != null && (_jsx("span", { className: "fileupload-progress", role: "progressbar", "aria-valuenow": Math.round(entry.progress), "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": entry.file.name, children: _jsx("span", { className: "fileupload-progress-fill", style: { width: `${entry.progress}%` } }) })), _jsx("span", { className: "fileupload-item-size", children: formatSize(entry.file.size) }), _jsx("button", { type: "button", className: "fileupload-remove", "aria-label": `${t.remove}: ${entry.file.name}`, onClick: () => {
89
+ const focusAfterRemoval = useFocusAfterRemoval(rootRef, ".crisp-fileupload-remove", dropzoneRef);
90
+ return (_jsxs("div", { ref: rootRef, ...rest, className: fileuploadRecipe({ className }), children: [_jsxs("button", { ...dropzoneProps, ref: dropzoneRef, type: "button", className: "crisp-fileupload-zone", tabIndex: disabled ? -1 : 0, "aria-label": ariaLabel ?? t.hint, disabled: disabled, "data-dragging": dragging ? "" : undefined, "data-disabled": disabled ? "" : undefined, "data-invalid": invalid ? "" : undefined, onClick: () => openFilePicker(), children: [_jsx("span", { className: "crisp-fileupload-title", children: t.title }), _jsx("span", { className: "crisp-fileupload-hint", children: t.hint })] }), _jsx("input", { ...hiddenInputProps, ref: inputRef, className: "crisp-fileupload-input" }), acceptedFileEntries.length > 0 && (_jsx("ul", { className: "crisp-fileupload-list", children: acceptedFileEntries.map((entry, i) => (_jsxs("li", { className: "crisp-fileupload-item", "data-status": entry.status, children: [_jsx("span", { className: "crisp-fileupload-item-name", children: entry.file.name }), entry.status === "uploading" && entry.progress != null && (_jsx("span", { className: "crisp-fileupload-progress", role: "progressbar", "aria-valuenow": Math.round(entry.progress), "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": entry.file.name, children: _jsx("span", { className: "crisp-fileupload-progress-fill", style: { width: `${entry.progress}%` } }) })), _jsx("span", { className: "crisp-fileupload-item-size", children: formatSize(entry.file.size) }), _jsx("button", { type: "button", className: "crisp-fileupload-remove", "aria-label": `${t.remove}: ${entry.file.name}`, onClick: () => {
91
91
  focusAfterRemoval(i);
92
92
  removeFileEntry(entry.id);
93
- }, children: _jsx(X, { size: 13, strokeWidth: 2 }) })] }, entry.id))) })), _jsx("ul", { className: "fileupload-errors", "aria-live": "polite", children: rejections.map((r) => (_jsx("li", { className: "fileupload-error", children: `${r.file.name}: ${r.errors.map((e) => t.errors[e] ?? e).join(" ")}` }, r.file.name))) })] }));
93
+ }, children: _jsx(X, { size: 13, strokeWidth: 2 }) })] }, entry.id))) })), _jsx("ul", { className: "crisp-fileupload-errors", "aria-live": "polite", children: rejections.map((r) => (_jsx("li", { className: "crisp-fileupload-error", children: `${r.file.name}: ${r.errors.map((e) => t.errors[e] ?? e).join(" ")}` }, r.file.name))) })] }));
94
94
  }