themelia-react-ui 1.0.0 → 1.0.2

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 (507) hide show
  1. package/CHANGELOG.md +190 -1
  2. package/README.md +92 -13
  3. package/dist/{accordion-BRWh3BM1.js → accordion-BRTcsp8J.js} +8 -8
  4. package/dist/accordion-BRTcsp8J.js.map +1 -0
  5. package/dist/{action-menu-Cx3SdfbN.js → action-menu-Drxw_vJk.js} +36 -36
  6. package/dist/action-menu-Drxw_vJk.js.map +1 -0
  7. package/dist/affordance-geometry.generated-CL84ZN9A.js +63 -0
  8. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +1 -0
  9. package/dist/{ai-artifact-DkOArd3-.js → ai-artifact-DLVdK0Py.js} +151 -155
  10. package/dist/ai-artifact-DLVdK0Py.js.map +1 -0
  11. package/dist/{app-shell-BH_bGcE2.js → app-shell-C_fKpljx.js} +11 -10
  12. package/dist/app-shell-C_fKpljx.js.map +1 -0
  13. package/dist/{attachment-DsLgNHXt.js → attachment-DbjUWsP0.js} +12 -12
  14. package/dist/{attachment-DsLgNHXt.js.map → attachment-DbjUWsP0.js.map} +1 -1
  15. package/dist/auth-CAQcasMV.js +723 -0
  16. package/dist/auth-CAQcasMV.js.map +1 -0
  17. package/dist/{avatar-CsnWaYmt.js → avatar-Bu2HhitA.js} +76 -71
  18. package/dist/avatar-Bu2HhitA.js.map +1 -0
  19. package/dist/{badge-BZXZT9wd.js → badge-CzId1Wlm.js} +4 -4
  20. package/dist/{badge-BZXZT9wd.js.map → badge-CzId1Wlm.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/buttons.js +3 -2
  27. package/dist/base/cards.js +3 -3
  28. package/dist/base/carousel.js +25 -27
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +150 -148
  31. package/dist/base/cascader.js.map +1 -1
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +3 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +1 -1
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +3 -3
  39. package/dist/base/display.js +7 -7
  40. package/dist/base/feedback.js +4 -3
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +233 -0
  44. package/dist/base/inline-edit.js.map +1 -0
  45. package/dist/base/item.js +1 -1
  46. package/dist/base/media-gallery.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +1 -1
  51. package/dist/base/repeaters.js +33 -33
  52. package/dist/base/repeaters.js.map +1 -1
  53. package/dist/base/sheet.js +1 -1
  54. package/dist/base/sidebar.js +1 -1
  55. package/dist/base/signature-pad.js +83 -81
  56. package/dist/base/signature-pad.js.map +1 -1
  57. package/dist/base/skeleton.js +1 -1
  58. package/dist/base/spinner.js +1 -1
  59. package/dist/base/structure.js +1 -1
  60. package/dist/base/table.js +1 -1
  61. package/dist/base/text-inputs.js +2 -2
  62. package/dist/base/toaster.js +6 -6
  63. package/dist/base/toaster.js.map +1 -1
  64. package/dist/base/tree.js +1 -1
  65. package/dist/base/upload-queue.js +1 -1
  66. package/dist/base/upload.js +3 -3
  67. package/dist/base/value-inputs.js +1 -1
  68. package/dist/blocks/admin.js +134 -134
  69. package/dist/blocks/admin.js.map +1 -1
  70. package/dist/blocks/ai.js +120 -117
  71. package/dist/blocks/ai.js.map +1 -1
  72. package/dist/blocks/analytics/usage-card.js +3 -0
  73. package/dist/blocks/analytics.js +530 -491
  74. package/dist/blocks/analytics.js.map +1 -1
  75. package/dist/blocks/collaboration.js +2 -2
  76. package/dist/blocks/commerce/receipt.js +1 -1
  77. package/dist/blocks/commerce.js +395 -383
  78. package/dist/blocks/commerce.js.map +1 -1
  79. package/dist/blocks/data-display.js +1 -1
  80. package/dist/blocks/onboarding.js +6 -6
  81. package/dist/blocks/onboarding.js.map +1 -1
  82. package/dist/blocks/planning.js +311 -0
  83. package/dist/blocks/planning.js.map +1 -0
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BuYz5SDU.js} +9 -8
  86. package/dist/breadcrumbs-BuYz5SDU.js.map +1 -0
  87. package/dist/button-BZDasD04.js +651 -0
  88. package/dist/button-BZDasD04.js.map +1 -0
  89. package/dist/{button-BS6l5JUw.js → button-BZyfTvwm.js} +3 -3
  90. package/dist/button-BZyfTvwm.js.map +1 -0
  91. package/dist/buttons-D_6KJvEE.js +99 -0
  92. package/dist/buttons-D_6KJvEE.js.map +1 -0
  93. package/dist/{cards-BMB0laLG.js → cards-qGSErLw_.js} +12 -12
  94. package/dist/{cards-BMB0laLG.js.map → cards-qGSErLw_.js.map} +1 -1
  95. package/dist/chart-Bsc5BICK.js +150 -0
  96. package/dist/chart-Bsc5BICK.js.map +1 -0
  97. package/dist/checkbox-BQNDjUCh.js +34 -0
  98. package/dist/checkbox-BQNDjUCh.js.map +1 -0
  99. package/dist/choice-inputs-Mk3iWbhr.js +725 -0
  100. package/dist/choice-inputs-Mk3iWbhr.js.map +1 -0
  101. package/dist/{code-block-DIlqzoiD.js → code-block-DzHKRybS.js} +23 -23
  102. package/dist/code-block-DzHKRybS.js.map +1 -0
  103. package/dist/{collapsible-DsnktFNv.js → collapsible-ClvC7Bj3.js} +3 -3
  104. package/dist/{collapsible-DsnktFNv.js.map → collapsible-ClvC7Bj3.js.map} +1 -1
  105. package/dist/{collection-content-C4fthJV_.js → collection-content-D6S8cv_n.js} +3 -3
  106. package/dist/{collection-content-C4fthJV_.js.map → collection-content-D6S8cv_n.js.map} +1 -1
  107. package/dist/{combobox-HDftpzxt.js → combobox-BFnbJJp3.js} +18 -18
  108. package/dist/combobox-BFnbJJp3.js.map +1 -0
  109. package/dist/{combobox-CHD750do.js → combobox-hozNwUcc.js} +313 -316
  110. package/dist/combobox-hozNwUcc.js.map +1 -0
  111. package/dist/{command-D0kWBZfd.js → command-BnmSchli.js} +9 -9
  112. package/dist/command-BnmSchli.js.map +1 -0
  113. package/dist/comments-u5L0OGip.js +1156 -0
  114. package/dist/comments-u5L0OGip.js.map +1 -0
  115. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  116. package/dist/components/base/buttons/button.recipes.d.ts +10 -19
  117. package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
  118. package/dist/components/base/cards/card.recipes.d.ts +13 -5
  119. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
  120. package/dist/components/base/cards/smart-card.types.d.ts +3 -1
  121. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
  122. package/dist/components/base/date-pickers/datepicker.types.d.ts +3 -0
  123. package/dist/components/base/forms/form-field.d.ts +1 -0
  124. package/dist/components/base/forms/form-sizing.d.ts +3 -3
  125. package/dist/components/base/inline-edit/index.d.ts +2 -0
  126. package/dist/components/base/inline-edit/inline-edit.d.ts +81 -0
  127. package/dist/components/base/inline-edit/inline-edit.recipes.d.ts +6 -0
  128. package/dist/components/base/navigation/tabs.d.ts +3 -5
  129. package/dist/components/base/popover/popover.recipes.d.ts +3 -3
  130. package/dist/components/base/structure/structure.recipes.d.ts +6 -0
  131. package/dist/components/base/table/index.d.ts +1 -1
  132. package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
  133. package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
  134. package/dist/components/blocks/analytics/index.d.ts +1 -0
  135. package/dist/components/blocks/analytics/types.d.ts +1 -1
  136. package/dist/components/blocks/analytics/usage-card/index.d.ts +3 -0
  137. package/dist/components/blocks/analytics/usage-card/types.d.ts +52 -0
  138. package/dist/components/blocks/analytics/usage-card/usage-card.d.ts +6 -0
  139. package/dist/components/blocks/analytics/usage-card/usage-card.data.d.ts +19 -0
  140. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +22 -0
  141. package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
  142. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
  143. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
  144. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
  145. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
  146. package/dist/components/blocks/planning/index.d.ts +3 -0
  147. package/dist/components/blocks/planning/task-card.d.ts +3 -0
  148. package/dist/components/blocks/planning/task-card.strings.d.ts +15 -0
  149. package/dist/components/blocks/planning/task-card.types.d.ts +66 -0
  150. package/dist/components/features/combobox/components/error-message.d.ts +1 -1
  151. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
  152. package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
  153. package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
  154. package/dist/components/features/media-library/media-library.d.ts +1 -1
  155. package/dist/components/features/media-library/media-library.types.d.ts +9 -1
  156. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  157. package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
  158. package/dist/components/features/overlays/overlays.types.d.ts +5 -4
  159. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
  160. package/dist/components/features/table/data-table.d.ts +1 -1
  161. package/dist/components/features/table/table.types.d.ts +1 -1
  162. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
  163. package/dist/components/layout/auth/auth.types.d.ts +1 -0
  164. package/dist/components/layout/page/page.d.ts +0 -1
  165. package/dist/components/layout/page/page.types.d.ts +9 -3
  166. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
  167. package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
  168. package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
  169. package/dist/components/typography/heading.d.ts +5 -2
  170. package/dist/components/typography/index.d.ts +1 -1
  171. package/dist/components/typography/text.styles.d.ts +10 -0
  172. package/dist/components/ui/popover.d.ts +1 -1
  173. package/dist/components/ui/sidebar.d.ts +1 -1
  174. package/dist/components/ui/table.d.ts +2 -1
  175. package/dist/container.recipes-D9t8MHR3.js +27 -0
  176. package/dist/container.recipes-D9t8MHR3.js.map +1 -0
  177. package/dist/{containers-CPNyNo1_.js → containers-DqB-bSYE.js} +34 -56
  178. package/dist/containers-DqB-bSYE.js.map +1 -0
  179. package/dist/control-group-recipes-DBXmfh2E.js +21 -0
  180. package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
  181. package/dist/{copyable-B7SBXJMr.js → copyable-BTSByfmq.js} +6 -6
  182. package/dist/{copyable-B7SBXJMr.js.map → copyable-BTSByfmq.js.map} +1 -1
  183. package/dist/{data-display-b3d1TfL4.js → data-display-Bihs9Ven.js} +542 -329
  184. package/dist/data-display-Bihs9Ven.js.map +1 -0
  185. package/dist/{date-BFNMnrS5.js → date-DOKhJPu7.js} +4 -4
  186. package/dist/{date-BFNMnrS5.js.map → date-DOKhJPu7.js.map} +1 -1
  187. package/dist/{date-picker-DI6kPNof.js → date-picker-DzP5HQq7.js} +492 -472
  188. package/dist/date-picker-DzP5HQq7.js.map +1 -0
  189. package/dist/date-pickers-BpgGz7S-.js +196 -0
  190. package/dist/date-pickers-BpgGz7S-.js.map +1 -0
  191. package/dist/{display-ByI5tkqy.js → display-CS6Hbk18.js} +8 -8
  192. package/dist/{display-ByI5tkqy.js.map → display-CS6Hbk18.js.map} +1 -1
  193. package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-D-boNgGO.js} +7 -7
  194. package/dist/{dropdown-menu-BlnyHr-9.js.map → dropdown-menu-D-boNgGO.js.map} +1 -1
  195. package/dist/features/activities.js +152 -141
  196. package/dist/features/activities.js.map +1 -1
  197. package/dist/features/ai-chat.js +182 -179
  198. package/dist/features/ai-chat.js.map +1 -1
  199. package/dist/features/async-preview.js +9 -9
  200. package/dist/features/async-preview.js.map +1 -1
  201. package/dist/features/combobox.js +1 -1
  202. package/dist/features/comments.js +1 -1
  203. package/dist/features/data-view.js +25 -23
  204. package/dist/features/data-view.js.map +1 -1
  205. package/dist/features/email-composer/engine.js +1 -1
  206. package/dist/features/email-composer.js +103 -104
  207. package/dist/features/email-composer.js.map +1 -1
  208. package/dist/features/event-calendar.js +375 -373
  209. package/dist/features/event-calendar.js.map +1 -1
  210. package/dist/features/filters.js +1 -1
  211. package/dist/features/global-search.js +222 -224
  212. package/dist/features/global-search.js.map +1 -1
  213. package/dist/features/kanban.js +29 -29
  214. package/dist/features/kanban.js.map +1 -1
  215. package/dist/features/map.js +59 -58
  216. package/dist/features/map.js.map +1 -1
  217. package/dist/features/media-library.js +856 -855
  218. package/dist/features/media-library.js.map +1 -1
  219. package/dist/features/mentions.js +1 -1
  220. package/dist/features/overlays.js +1 -1
  221. package/dist/features/products.js +1210 -1209
  222. package/dist/features/products.js.map +1 -1
  223. package/dist/features/questionnaire.js +133 -132
  224. package/dist/features/questionnaire.js.map +1 -1
  225. package/dist/features/resource-assignment.js +29 -31
  226. package/dist/features/resource-assignment.js.map +1 -1
  227. package/dist/features/resource.js +13 -13
  228. package/dist/features/resource.js.map +1 -1
  229. package/dist/features/rich-text-editor.js +2 -2
  230. package/dist/features/schema-form.js +82 -82
  231. package/dist/features/schema-form.js.map +1 -1
  232. package/dist/features/suggestions.js +3 -3
  233. package/dist/features/sync.js +4 -4
  234. package/dist/features/sync.js.map +1 -1
  235. package/dist/features/table.js +1 -1
  236. package/dist/features/theme-tweaker.js +456 -450
  237. package/dist/features/theme-tweaker.js.map +1 -1
  238. package/dist/feedback-CJkUAapr.js +233 -0
  239. package/dist/feedback-CJkUAapr.js.map +1 -0
  240. package/dist/field-affordance-recipes-uKY4MsZ_.js +25 -0
  241. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +1 -0
  242. package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-DQQpiLWC.js} +3 -3
  243. package/dist/field-state-recipes-DQQpiLWC.js.map +1 -0
  244. package/dist/{filters-qtrcv1hf.js → filters-D6FF8L6s.js} +715 -720
  245. package/dist/filters-D6FF8L6s.js.map +1 -0
  246. package/dist/{form-field-C6W-y2hR.js → form-field-CZwrkP7m.js} +17 -9
  247. package/dist/form-field-CZwrkP7m.js.map +1 -0
  248. package/dist/{form-sizing-39NohSqn.js → form-sizing-QP8aIRaW.js} +10 -6
  249. package/dist/form-sizing-QP8aIRaW.js.map +1 -0
  250. package/dist/{forms-BF-HSbff.js → forms-B5NCbkSC.js} +35 -35
  251. package/dist/{forms-BF-HSbff.js.map → forms-B5NCbkSC.js.map} +1 -1
  252. package/dist/forms-numeric-Crrm80Lm.js +867 -0
  253. package/dist/forms-numeric-Crrm80Lm.js.map +1 -0
  254. package/dist/{header-B8ex54cY.js → header-kxruN3RM.js} +53 -49
  255. package/dist/header-kxruN3RM.js.map +1 -0
  256. package/dist/{hooks-D6UBVzf2.js → hooks-BrlnCwQd.js} +2 -2
  257. package/dist/{hooks-D6UBVzf2.js.map → hooks-BrlnCwQd.js.map} +1 -1
  258. package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
  259. package/dist/http-CdEIHyQf.js.map +1 -0
  260. package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-Btc6pQrp.js} +4 -4
  261. package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-Btc6pQrp.js.map} +1 -1
  262. package/dist/index.js +2 -2
  263. package/dist/input-SX9V0AL3.js +255 -0
  264. package/dist/input-SX9V0AL3.js.map +1 -0
  265. package/dist/input-vxcaNCYC.js +20 -0
  266. package/dist/input-vxcaNCYC.js.map +1 -0
  267. package/dist/{item-pJ0GsOiJ.js → item-DE4YnuJx.js} +18 -17
  268. package/dist/item-DE4YnuJx.js.map +1 -0
  269. package/dist/layout/app-shell.js +1 -1
  270. package/dist/layout/auth.js +1 -1
  271. package/dist/layout/containers.js +1 -1
  272. package/dist/layout/header.js +1 -1
  273. package/dist/layout/hooks.js +1 -1
  274. package/dist/layout/navigation.js +1 -1
  275. package/dist/layout/page.js +1 -1
  276. package/dist/layout/settings.js +1 -1
  277. package/dist/layout/sidebar.js +2 -2
  278. package/dist/layout/workspace.js +1 -1
  279. package/dist/layout.js +10 -10
  280. package/dist/lib/affordance-geometry.generated.d.ts +44 -4
  281. package/dist/lib/control-group-recipes.d.ts +22 -0
  282. package/dist/lib/field-affordance-recipes.d.ts +35 -2
  283. package/dist/lib/field-state-recipes.d.ts +2 -2
  284. package/dist/lib/navigation-row-recipes.d.ts +3 -2
  285. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
  286. package/dist/lib/surface-recipes.d.ts +5 -2
  287. package/dist/lib/token-merge.generated.d.ts +144 -2
  288. package/dist/lib/ui-provider/types.d.ts +4 -2
  289. package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
  290. package/dist/lib/utils.js +1 -1
  291. package/dist/{media-gallery-Ca4YmvBi.js → media-gallery-DLp3HAz0.js} +75 -74
  292. package/dist/media-gallery-DLp3HAz0.js.map +1 -0
  293. package/dist/{mentions-CRio8mTm.js → mentions-Cl0Kt_Pd.js} +52 -50
  294. package/dist/{mentions-CRio8mTm.js.map → mentions-Cl0Kt_Pd.js.map} +1 -1
  295. package/dist/message-SZUNB1eX.js +127 -0
  296. package/dist/message-SZUNB1eX.js.map +1 -0
  297. package/dist/{navigation-BTrEb5u4.js → navigation-DnQSNMT0.js} +64 -55
  298. package/dist/navigation-DnQSNMT0.js.map +1 -0
  299. package/dist/{navigation-DqEITuD2.js → navigation-DyytsLRB.js} +37 -37
  300. package/dist/navigation-DyytsLRB.js.map +1 -0
  301. package/dist/{navigation-row-recipes-BFpvGPGE.js → navigation-row-recipes-DQEXQcqY.js} +3 -3
  302. package/dist/navigation-row-recipes-DQEXQcqY.js.map +1 -0
  303. package/dist/{number-BNT_BIzJ.js → number-DasMFWEG.js} +4 -4
  304. package/dist/{number-BNT_BIzJ.js.map → number-DasMFWEG.js.map} +1 -1
  305. package/dist/overlays-DUbs1KEi.js +1011 -0
  306. package/dist/overlays-DUbs1KEi.js.map +1 -0
  307. package/dist/{page-BMBGjJY8.js → page-hGmT4nWK.js} +75 -64
  308. package/dist/page-hGmT4nWK.js.map +1 -0
  309. package/dist/{page-header-BH41wCyY.js → page-header-D8nERkn5.js} +9 -9
  310. package/dist/page-header-D8nERkn5.js.map +1 -0
  311. package/dist/{pagination-C29vvt3I.js → pagination-NLGqRirf.js} +20 -20
  312. package/dist/pagination-NLGqRirf.js.map +1 -0
  313. package/dist/{popover-TInGXsjg.js → popover-CghIYdQf.js} +23 -22
  314. package/dist/popover-CghIYdQf.js.map +1 -0
  315. package/dist/{popover-menu-BzqXqE72.js → popover-menu-B4PoWhRl.js} +6 -6
  316. package/dist/{popover-menu-BzqXqE72.js.map → popover-menu-B4PoWhRl.js.map} +1 -1
  317. package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-QlD4JenO.js} +5 -5
  318. package/dist/popover.recipes-QlD4JenO.js.map +1 -0
  319. package/dist/{primitives-DKPOGVpj.js → primitives-C7ff0QaI.js} +120 -113
  320. package/dist/primitives-C7ff0QaI.js.map +1 -0
  321. package/dist/primitives.js +3 -3
  322. package/dist/progress-BroqrAyV.js +169 -0
  323. package/dist/progress-BroqrAyV.js.map +1 -0
  324. package/dist/{receipt-DYWTQGEc.js → receipt-BuJynLgf.js} +8 -8
  325. package/dist/{receipt-DYWTQGEc.js.map → receipt-BuJynLgf.js.map} +1 -1
  326. package/dist/{rich-text-B7sBAdDG.js → rich-text-DlxDOtf4.js} +4 -4
  327. package/dist/{rich-text-B7sBAdDG.js.map → rich-text-DlxDOtf4.js.map} +1 -1
  328. package/dist/rich-text-editor-BKyG7rWz.js +574 -0
  329. package/dist/rich-text-editor-BKyG7rWz.js.map +1 -0
  330. package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-B72Nfuze.js} +35 -26
  331. package/dist/rich-text-editor.recipes-B72Nfuze.js.map +1 -0
  332. package/dist/{scroll-area-BheMQ270.js → scroll-area-D-pIhEKl.js} +3 -3
  333. package/dist/scroll-area-D-pIhEKl.js.map +1 -0
  334. package/dist/{separator-Gk_WXH-l.js → separator-BNIgG3au.js} +3 -3
  335. package/dist/{separator-Gk_WXH-l.js.map → separator-BNIgG3au.js.map} +1 -1
  336. package/dist/{separator-DO0EbCEm.js → separator-BhtFyo4x.js} +2 -2
  337. package/dist/{separator-DO0EbCEm.js.map → separator-BhtFyo4x.js.map} +1 -1
  338. package/dist/services/actions.js +1 -1
  339. package/dist/{settings-D9f_wdIC.js → settings-DOTOzeZ2.js} +10 -9
  340. package/dist/{settings-D9f_wdIC.js.map → settings-DOTOzeZ2.js.map} +1 -1
  341. package/dist/{sheet-vOUloJ4O.js → sheet-BFhrNehm.js} +11 -11
  342. package/dist/sheet-BFhrNehm.js.map +1 -0
  343. package/dist/{sidebar-CNBKFDRW.js → sidebar-CyR4XKwR.js} +219 -200
  344. package/dist/sidebar-CyR4XKwR.js.map +1 -0
  345. package/dist/{sidebar-C3UKkbC5.js → sidebar-SvGJ0Zwi.js} +63 -58
  346. package/dist/sidebar-SvGJ0Zwi.js.map +1 -0
  347. package/dist/{skeleton-BvRhK8y-.js → skeleton-3F0uhYn3.js} +4 -4
  348. package/dist/{skeleton-BvRhK8y-.js.map → skeleton-3F0uhYn3.js.map} +1 -1
  349. package/dist/{smart-card-B5FcKODh.js → smart-card-DjGVV2xr.js} +206 -199
  350. package/dist/smart-card-DjGVV2xr.js.map +1 -0
  351. package/dist/{spinner-JtlFJ7Nc.js → spinner-Cpf7oRkF.js} +5 -5
  352. package/dist/{spinner-JtlFJ7Nc.js.map → spinner-Cpf7oRkF.js.map} +1 -1
  353. package/dist/{structure-BvW4vG4H.js → structure-CRdqVawd.js} +14 -14
  354. package/dist/{structure-BvW4vG4H.js.map → structure-CRdqVawd.js.map} +1 -1
  355. package/dist/{structure.recipes-DjqnBpwz.js → structure.recipes-Bqhf9oIh.js} +2 -2
  356. package/dist/structure.recipes-Bqhf9oIh.js.map +1 -0
  357. package/dist/style.css +1 -1
  358. package/dist/{surface-recipes-CQfRr-VL.js → surface-recipes-Dd__PD-w.js} +4 -3
  359. package/dist/surface-recipes-Dd__PD-w.js.map +1 -0
  360. package/dist/{table-DnlAJ-xR.js → table-CLtJTxoR.js} +17 -16
  361. package/dist/table-CLtJTxoR.js.map +1 -0
  362. package/dist/table-CcRDZiLP.js +1444 -0
  363. package/dist/table-CcRDZiLP.js.map +1 -0
  364. package/dist/tabs-BNgu7g0u.js +188 -0
  365. package/dist/tabs-BNgu7g0u.js.map +1 -0
  366. package/dist/text-inputs-DsR56TR-.js +330 -0
  367. package/dist/text-inputs-DsR56TR-.js.map +1 -0
  368. package/dist/{text.styles-BwB7vAF2.js → text.styles-Q4sGAIgA.js} +18 -10
  369. package/dist/text.styles-Q4sGAIgA.js.map +1 -0
  370. package/dist/theme.css +77 -115
  371. package/dist/{timelines-CnZ2S_Gr.js → timelines-D1pkt3se.js} +84 -78
  372. package/dist/timelines-D1pkt3se.js.map +1 -0
  373. package/dist/{tree-COD9BGdU.js → tree-BtmYyMZV.js} +8 -8
  374. package/dist/{tree-COD9BGdU.js.map → tree-BtmYyMZV.js.map} +1 -1
  375. package/dist/typography/rich-text.js +1 -1
  376. package/dist/typography-BxQgiZyw.js +96 -0
  377. package/dist/typography-BxQgiZyw.js.map +1 -0
  378. package/dist/typography.js +1 -1
  379. package/dist/{ui-provider-CftIB6TY.js → ui-provider-DRPn3qNl.js} +3 -2
  380. package/dist/ui-provider-DRPn3qNl.js.map +1 -0
  381. package/dist/ui-provider.js +1 -1
  382. package/dist/{upload-DIzw1dx1.js → upload-CDbYw1WN.js} +326 -323
  383. package/dist/upload-CDbYw1WN.js.map +1 -0
  384. package/dist/{upload-queue-xRJ3qDmd.js → upload-queue-CNd_hH_a.js} +25 -25
  385. package/dist/upload-queue-CNd_hH_a.js.map +1 -0
  386. package/dist/usage-card-VyJLUwRr.js +457 -0
  387. package/dist/usage-card-VyJLUwRr.js.map +1 -0
  388. package/dist/utils-BvH9PSmq.js +4275 -0
  389. package/dist/utils-BvH9PSmq.js.map +1 -0
  390. package/dist/value-inputs-D0KCrfVC.js +840 -0
  391. package/dist/value-inputs-D0KCrfVC.js.map +1 -0
  392. package/dist/{workspace-Cbqz4FzN.js → workspace-CcR8r-Nt.js} +115 -122
  393. package/dist/workspace-CcR8r-Nt.js.map +1 -0
  394. package/docs/consumer-skill/SKILL.md +112 -18
  395. package/docs/consumer-skill/examples/analytics.tsx +34 -0
  396. package/docs/consumer-skill/examples/app-layout.tsx +42 -12
  397. package/docs/consumer-skill/examples/detail.tsx +24 -9
  398. package/docs/consumer-skill/examples/manifest.json +27 -1
  399. package/docs/consumer-skill/examples/planning-usage-edit.tsx +29 -0
  400. package/docs/consumer-skill/examples/scoped-directory.tsx +77 -0
  401. package/docs/consumer-skill/examples/website.tsx +56 -0
  402. package/docs/consumer-skill/references/analytics.md +70 -0
  403. package/docs/consumer-skill/references/composition.md +219 -2
  404. package/docs/consumer-skill/references/design-contract.md +37 -10
  405. package/docs/consumer-skill/references/discovery.md +93 -5
  406. package/docs/consumer-skill/references/installation.md +20 -3
  407. package/docs/consumer-skill/references/integration.md +26 -0
  408. package/docs/consumer-skill/references/public-api.json +2416 -388
  409. package/docs/consumer-skill/references/review.md +126 -0
  410. package/docs/consumer-skill/references/theming.md +52 -7
  411. package/docs/consumer-skill/references/tokens.json +177 -9
  412. package/docs/consumer-skill/references/workflows.md +129 -1
  413. package/docs/consumer-skill/scripts/check-composition.mjs +31 -0
  414. package/docs/consumer-skill/scripts/composition-policy.mjs +317 -0
  415. package/docs/consumer-skill/scripts/discovery.mjs +65 -8
  416. package/docs/consumer-skill/scripts/surface-policy.mjs +66 -0
  417. package/package.json +30 -6
  418. package/dist/accordion-BRWh3BM1.js.map +0 -1
  419. package/dist/action-menu-Cx3SdfbN.js.map +0 -1
  420. package/dist/affordance-geometry.generated-DXl-Zb3Z.js +0 -23
  421. package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +0 -1
  422. package/dist/ai-artifact-DkOArd3-.js.map +0 -1
  423. package/dist/app-shell-BH_bGcE2.js.map +0 -1
  424. package/dist/auth-BDB1V_2q.js +0 -704
  425. package/dist/auth-BDB1V_2q.js.map +0 -1
  426. package/dist/avatar-CsnWaYmt.js.map +0 -1
  427. package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
  428. package/dist/button-BS6l5JUw.js.map +0 -1
  429. package/dist/buttons-Co6GavvM.js +0 -674
  430. package/dist/buttons-Co6GavvM.js.map +0 -1
  431. package/dist/chart-DVfcwQu6.js +0 -149
  432. package/dist/chart-DVfcwQu6.js.map +0 -1
  433. package/dist/choice-inputs-CavA-SGV.js +0 -644
  434. package/dist/choice-inputs-CavA-SGV.js.map +0 -1
  435. package/dist/code-block-DIlqzoiD.js.map +0 -1
  436. package/dist/combobox-CHD750do.js.map +0 -1
  437. package/dist/combobox-HDftpzxt.js.map +0 -1
  438. package/dist/command-D0kWBZfd.js.map +0 -1
  439. package/dist/comments-CvYeglMS.js +0 -1132
  440. package/dist/comments-CvYeglMS.js.map +0 -1
  441. package/dist/containers-CPNyNo1_.js.map +0 -1
  442. package/dist/data-display-b3d1TfL4.js.map +0 -1
  443. package/dist/date-picker-DI6kPNof.js.map +0 -1
  444. package/dist/date-pickers-ByP6Cv2z.js +0 -224
  445. package/dist/date-pickers-ByP6Cv2z.js.map +0 -1
  446. package/dist/feedback-a9j9J-9A.js +0 -391
  447. package/dist/feedback-a9j9J-9A.js.map +0 -1
  448. package/dist/field-affordance-recipes-CHdUtn2Z.js +0 -17
  449. package/dist/field-affordance-recipes-CHdUtn2Z.js.map +0 -1
  450. package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
  451. package/dist/filters-qtrcv1hf.js.map +0 -1
  452. package/dist/form-field-C6W-y2hR.js.map +0 -1
  453. package/dist/form-sizing-39NohSqn.js.map +0 -1
  454. package/dist/forms-numeric-Y15Bg5Nr.js +0 -867
  455. package/dist/forms-numeric-Y15Bg5Nr.js.map +0 -1
  456. package/dist/header-B8ex54cY.js.map +0 -1
  457. package/dist/http-CLTVJc5I.js.map +0 -1
  458. package/dist/input-DMorJiTI.js +0 -202
  459. package/dist/input-DMorJiTI.js.map +0 -1
  460. package/dist/input-ci9fIgFH.js +0 -20
  461. package/dist/input-ci9fIgFH.js.map +0 -1
  462. package/dist/item-pJ0GsOiJ.js.map +0 -1
  463. package/dist/media-gallery-Ca4YmvBi.js.map +0 -1
  464. package/dist/message-B5-6LeYl.js +0 -108
  465. package/dist/message-B5-6LeYl.js.map +0 -1
  466. package/dist/navigation-BTrEb5u4.js.map +0 -1
  467. package/dist/navigation-DqEITuD2.js.map +0 -1
  468. package/dist/navigation-row-recipes-BFpvGPGE.js.map +0 -1
  469. package/dist/overlays-DBqV0J_V.js +0 -982
  470. package/dist/overlays-DBqV0J_V.js.map +0 -1
  471. package/dist/page-BMBGjJY8.js.map +0 -1
  472. package/dist/page-header-BH41wCyY.js.map +0 -1
  473. package/dist/pagination-C29vvt3I.js.map +0 -1
  474. package/dist/popover-TInGXsjg.js.map +0 -1
  475. package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
  476. package/dist/primitives-DKPOGVpj.js.map +0 -1
  477. package/dist/rich-text-editor-BZSJchAF.js +0 -575
  478. package/dist/rich-text-editor-BZSJchAF.js.map +0 -1
  479. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
  480. package/dist/scroll-area-BheMQ270.js.map +0 -1
  481. package/dist/select-B2mb-qN2.js +0 -108
  482. package/dist/select-B2mb-qN2.js.map +0 -1
  483. package/dist/sheet-vOUloJ4O.js.map +0 -1
  484. package/dist/sidebar-C3UKkbC5.js.map +0 -1
  485. package/dist/sidebar-CNBKFDRW.js.map +0 -1
  486. package/dist/smart-card-B5FcKODh.js.map +0 -1
  487. package/dist/structure.recipes-DjqnBpwz.js.map +0 -1
  488. package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
  489. package/dist/table-DnlAJ-xR.js.map +0 -1
  490. package/dist/table-ghtAQ-JJ.js +0 -1424
  491. package/dist/table-ghtAQ-JJ.js.map +0 -1
  492. package/dist/tabs-DY09eoZg.js +0 -187
  493. package/dist/tabs-DY09eoZg.js.map +0 -1
  494. package/dist/text-inputs-BhOcedTo.js +0 -331
  495. package/dist/text-inputs-BhOcedTo.js.map +0 -1
  496. package/dist/text.styles-BwB7vAF2.js.map +0 -1
  497. package/dist/timelines-CnZ2S_Gr.js.map +0 -1
  498. package/dist/typography-Cv8MT-82.js +0 -96
  499. package/dist/typography-Cv8MT-82.js.map +0 -1
  500. package/dist/ui-provider-CftIB6TY.js.map +0 -1
  501. package/dist/upload-DIzw1dx1.js.map +0 -1
  502. package/dist/upload-queue-xRJ3qDmd.js.map +0 -1
  503. package/dist/utils-C2EKeIw3.js +0 -72
  504. package/dist/utils-C2EKeIw3.js.map +0 -1
  505. package/dist/value-inputs-Co1fu-xv.js +0 -824
  506. package/dist/value-inputs-Co1fu-xv.js.map +0 -1
  507. package/dist/workspace-Cbqz4FzN.js.map +0 -1
@@ -1,674 +0,0 @@
1
- "use client";
2
- import { _ as e, r as t, s as n } from "./ui-provider-CftIB6TY.js";
3
- import { r } from "./theme-scope-kStaAer0.js";
4
- import { useStrings as i } from "./lib/strings.js";
5
- import { t as a } from "./utils-C2EKeIw3.js";
6
- import { t as o } from "./separator-DO0EbCEm.js";
7
- import { a as s } from "./typography-Cv8MT-82.js";
8
- import { t as c } from "./anchored-positioning-DPnKTvNs.js";
9
- import { t as l } from "./motion-recipes-B6jKXEcN.js";
10
- import { t as u } from "./slot-CLF9kLrS.js";
11
- import { t as d } from "./button-BS6l5JUw.js";
12
- import * as f from "react";
13
- import { createContext as p, forwardRef as m, useContext as h, useEffect as g, useId as _, useLayoutEffect as v, useState as y } from "react";
14
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
15
- import { Loader2 as ee } from "lucide-react";
16
- import { mergeProps as C } from "@base-ui/react/merge-props";
17
- import { useRender as te } from "@base-ui/react/use-render";
18
- import { cva as ne } from "class-variance-authority";
19
- import { Tooltip as w } from "@base-ui/react/tooltip";
20
- //#region src/components/ui/button-group.tsx
21
- var re = ({ orientation: e = "horizontal" } = {}) => e === "vertical" ? "button-group-vertical" : "button-group-horizontal";
22
- function ie({ className: e, orientation: t = "horizontal", ...n }) {
23
- return /* @__PURE__ */ x("div", {
24
- role: "group",
25
- "data-slot": "button-group",
26
- "data-orientation": t,
27
- className: a("button-group--primitive", e),
28
- ...n
29
- });
30
- }
31
- function ae({ className: e, render: t, ...n }) {
32
- return te({
33
- defaultTagName: "div",
34
- props: C({ className: a("button-group-text--primitive", e) }, n),
35
- render: t,
36
- state: { slot: "button-group-text" }
37
- });
38
- }
39
- function oe({ className: e, orientation: t = "vertical", ...n }) {
40
- return /* @__PURE__ */ x(o, {
41
- "data-slot": "button-group-separator",
42
- orientation: t,
43
- className: a("button-group-separator--primitive", e),
44
- ...n
45
- });
46
- }
47
- //#endregion
48
- //#region src/components/base/buttons/button-group.recipes.ts
49
- var T = {
50
- root: "inline-flex items-stretch rounded-radius box-border data-[orientation=vertical]:flex-col [&[data-orientation=horizontal]>:not(:last-child)]:rounded-e-none [&[data-orientation=horizontal]>:not(:first-child)]:rounded-s-none [&[data-orientation=horizontal]>:not(:first-child)]:-ms-px [&[data-orientation=vertical]>:not(:last-child)]:rounded-b-none [&[data-orientation=vertical]>:not(:first-child)]:rounded-t-none [&[data-orientation=vertical]>:not(:first-child)]:-mt-px",
51
- text: "inline-flex items-center px-control-sm py-0 bg-muted border border-border text-sm text-muted-foreground",
52
- separator: "bg-border w-px self-stretch"
53
- };
54
- //#endregion
55
- //#region src/components/base/buttons/button-group.tsx
56
- function se({ className: e, ...t }) {
57
- return /* @__PURE__ */ x(ie, {
58
- className: a("button-group--component", T.root, e),
59
- ...t
60
- });
61
- }
62
- function E(e) {
63
- return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
64
- }
65
- function D({ children: e, className: t, ...n }) {
66
- return /* @__PURE__ */ x(ae, {
67
- className: a("button-group-text--component", T.text, t),
68
- ...n,
69
- children: E(e) ? /* @__PURE__ */ x(s, {
70
- tag: "span",
71
- size: "inherit",
72
- weight: "medium",
73
- lineHeight: "tight",
74
- className: "text-inherit",
75
- children: e
76
- }) : e
77
- });
78
- }
79
- function O({ className: e, ...t }) {
80
- return /* @__PURE__ */ x(oe, {
81
- className: a("button-group-separator--component", T.separator, e),
82
- ...t
83
- });
84
- }
85
- //#endregion
86
- //#region src/components/ui/tooltip.tsx
87
- function k({ delay: e = 0, delayDuration: t, ...n }) {
88
- return /* @__PURE__ */ x(w.Provider, {
89
- "data-slot": "tooltip-provider",
90
- delay: t ?? e,
91
- ...n
92
- });
93
- }
94
- function A({ ...e }) {
95
- return /* @__PURE__ */ x(k, { children: /* @__PURE__ */ x(w.Root, {
96
- "data-slot": "tooltip",
97
- ...e
98
- }) });
99
- }
100
- function j({ asChild: e = !1, render: t, children: n, ...r }) {
101
- let i = e ? /* @__PURE__ */ x(u, {}) : void 0, a = typeof t == "function" ? ((e, n) => {
102
- let { nativeButton: r, ...i } = e;
103
- return t(i, n);
104
- }) : t;
105
- return /* @__PURE__ */ x(w.Trigger, {
106
- "data-slot": "tooltip-trigger",
107
- render: i ?? a,
108
- ...r,
109
- children: n
110
- });
111
- }
112
- function M({ className: e, container: t, side: n = "top", sideOffset: i = 4, align: o = "center", alignOffset: s = 0, positionMethod: u = c, children: d, ...f }) {
113
- let p = r(t);
114
- return /* @__PURE__ */ x(w.Portal, {
115
- container: p,
116
- children: /* @__PURE__ */ x(w.Positioner, {
117
- positionMethod: u,
118
- align: o,
119
- alignOffset: s,
120
- side: n,
121
- sideOffset: i,
122
- className: "isolate z-50",
123
- children: /* @__PURE__ */ S(w.Popup, {
124
- "data-slot": "tooltip-content",
125
- className: a(l.popup, "rounded-md px-3 py-1.5 text-xs bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)", e),
126
- ...f,
127
- children: [d, /* @__PURE__ */ x(w.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })]
128
- })
129
- })
130
- });
131
- }
132
- //#endregion
133
- //#region src/components/base/display/tooltip.tsx
134
- var N = p(void 0), P = p(!1);
135
- function F(e) {
136
- let t = h(P), n = _(), [r, i] = y(n), a = /* @__PURE__ */ x(N.Provider, {
137
- value: {
138
- id: r,
139
- setId: i
140
- },
141
- children: /* @__PURE__ */ x(w.Root, {
142
- "data-slot": "tooltip",
143
- ...e
144
- })
145
- });
146
- return t ? a : /* @__PURE__ */ x(k, { children: a });
147
- }
148
- function I(e) {
149
- return /* @__PURE__ */ x(P.Provider, {
150
- value: !0,
151
- children: /* @__PURE__ */ x(k, { ...e })
152
- });
153
- }
154
- function L({ className: e, ...t }) {
155
- let n = h(N)?.id;
156
- return /* @__PURE__ */ x(j, {
157
- className: a("tooltip-trigger--component active:translate-y-0!", e),
158
- ...t,
159
- "aria-describedby": [t["aria-describedby"], n].filter(Boolean).join(" ") || void 0
160
- });
161
- }
162
- function R({ children: e, className: t, ...n }) {
163
- let r = h(N), i = n.id ?? r?.id;
164
- v(() => {
165
- i && r?.setId(i);
166
- }, [i, r?.setId]);
167
- let o = typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ x(s, {
168
- tag: "span",
169
- size: "inherit",
170
- lineHeight: "snug",
171
- className: "tooltip-content--text text-inherit",
172
- children: e
173
- }) : e;
174
- return /* @__PURE__ */ x(M, {
175
- id: i,
176
- role: "tooltip",
177
- className: a("tooltip-content--component max-w-xs rounded-radius px-space-sm py-space-xs text-xs leading-snug", t),
178
- ...n,
179
- children: o
180
- });
181
- }
182
- F.displayName = "Tooltip", I.displayName = "TooltipProvider", L.displayName = "TooltipTrigger", R.displayName = "TooltipContent";
183
- //#endregion
184
- //#region src/components/base/buttons/button.variants.ts
185
- var z = ne("box-border inline-flex shrink-0 items-center justify-center gap-space-sm [&_svg:not([class*=size-])]:size-icon [&_svg]:shrink-0 whitespace-nowrap rounded-radius border font-sans font-medium no-underline outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50", {
186
- variants: {
187
- tone: {
188
- primary: "",
189
- neutral: "",
190
- secondary: "",
191
- destructive: "",
192
- success: "",
193
- warning: "",
194
- info: ""
195
- },
196
- buttonStyle: {
197
- solid: "border-transparent",
198
- outline: "border-input bg-background [&:not([aria-disabled=true]):not(:disabled)]:hover:bg-accent",
199
- ghost: "border-transparent bg-transparent [&:not([aria-disabled=true]):not(:disabled)]:hover:bg-accent"
200
- },
201
- size: {
202
- sm: "h-action-sm px-control-sm text-sm leading-none",
203
- md: "h-action px-control text-sm leading-none",
204
- lg: "h-action-lg px-control text-sm leading-none"
205
- },
206
- iconOnly: {
207
- true: "px-0",
208
- false: ""
209
- },
210
- fullWidth: {
211
- true: "w-full",
212
- false: ""
213
- }
214
- },
215
- compoundVariants: [
216
- {
217
- tone: "primary",
218
- buttonStyle: "solid",
219
- class: "bg-primary text-primary-foreground"
220
- },
221
- {
222
- tone: "primary",
223
- buttonStyle: "outline",
224
- class: "border-primary/60 text-primary-accent"
225
- },
226
- {
227
- tone: "primary",
228
- buttonStyle: "ghost",
229
- class: "text-primary-accent"
230
- },
231
- {
232
- tone: "neutral",
233
- buttonStyle: "solid",
234
- class: "bg-foreground text-background"
235
- },
236
- {
237
- tone: "neutral",
238
- buttonStyle: "outline",
239
- class: "border-foreground/15 text-foreground"
240
- },
241
- {
242
- tone: "neutral",
243
- buttonStyle: "ghost",
244
- class: "text-foreground"
245
- },
246
- {
247
- tone: "secondary",
248
- buttonStyle: "solid",
249
- class: "bg-secondary text-secondary-foreground"
250
- },
251
- {
252
- tone: "secondary",
253
- buttonStyle: "outline",
254
- class: "border-border/60 text-secondary-foreground"
255
- },
256
- {
257
- tone: "secondary",
258
- buttonStyle: "ghost",
259
- class: "text-secondary-foreground [&:not([aria-disabled=true]):not(:disabled)]:hover:text-accent-foreground"
260
- },
261
- {
262
- tone: "destructive",
263
- buttonStyle: "solid",
264
- class: "bg-destructive text-destructive-foreground"
265
- },
266
- {
267
- tone: "destructive",
268
- buttonStyle: "outline",
269
- class: "border-destructive/60 text-destructive"
270
- },
271
- {
272
- tone: "destructive",
273
- buttonStyle: "ghost",
274
- class: "text-destructive"
275
- },
276
- {
277
- tone: "success",
278
- buttonStyle: "solid",
279
- class: "bg-success text-success-foreground"
280
- },
281
- {
282
- tone: "success",
283
- buttonStyle: "outline",
284
- class: "border-success/60 text-success"
285
- },
286
- {
287
- tone: "success",
288
- buttonStyle: "ghost",
289
- class: "text-success"
290
- },
291
- {
292
- tone: "warning",
293
- buttonStyle: "solid",
294
- class: "bg-warning text-warning-foreground"
295
- },
296
- {
297
- tone: "warning",
298
- buttonStyle: "outline",
299
- class: "border-warning/60 text-warning-accent"
300
- },
301
- {
302
- tone: "warning",
303
- buttonStyle: "ghost",
304
- class: "text-warning-accent"
305
- },
306
- {
307
- tone: "info",
308
- buttonStyle: "solid",
309
- class: "bg-info text-info-foreground"
310
- },
311
- {
312
- tone: "info",
313
- buttonStyle: "outline",
314
- class: "border-info/60 text-info"
315
- },
316
- {
317
- tone: "info",
318
- buttonStyle: "ghost",
319
- class: "text-info"
320
- },
321
- {
322
- size: "sm",
323
- iconOnly: !0,
324
- class: "size-action-sm"
325
- },
326
- {
327
- size: "md",
328
- iconOnly: !0,
329
- class: "size-action"
330
- },
331
- {
332
- size: "lg",
333
- iconOnly: !0,
334
- class: "size-action-lg"
335
- }
336
- ],
337
- defaultVariants: {
338
- tone: "primary",
339
- buttonStyle: "solid",
340
- size: "md",
341
- iconOnly: !1,
342
- fullWidth: !1
343
- }
344
- });
345
- //#endregion
346
- //#region src/components/base/buttons/base-button.tsx
347
- function B({ tone: r, buttonStyle: i, size: a, iconOnly: o = !1, fullWidth: s = !1 }) {
348
- let c = t(), { defaultScale: l } = n(), u = {
349
- tone: r ?? c.defaultTone,
350
- buttonStyle: i ?? c.defaultButtonStyle,
351
- size: e(a, l),
352
- iconOnly: o,
353
- fullWidth: s
354
- };
355
- return {
356
- ...u,
357
- classes: z(u),
358
- attributes: {
359
- "data-slot": "button",
360
- "data-tone": u.tone,
361
- "data-style": u.buttonStyle,
362
- "data-size": u.size,
363
- "data-icon-only": o || void 0,
364
- "data-full-width": s || void 0
365
- }
366
- };
367
- }
368
- function V({ icon: e, iconPosition: t = "left", children: n }) {
369
- let r = e && /* @__PURE__ */ x(e, {
370
- className: "size-icon shrink-0",
371
- "aria-hidden": "true"
372
- });
373
- return /* @__PURE__ */ S(b, { children: [
374
- t === "left" && r,
375
- n,
376
- t === "right" && r
377
- ] });
378
- }
379
- var H = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i, icon: o, iconPosition: s, className: c, children: l, ...u }, f) {
380
- let p = B({
381
- tone: e,
382
- buttonStyle: t,
383
- size: n,
384
- iconOnly: r,
385
- fullWidth: i,
386
- children: l
387
- });
388
- return /* @__PURE__ */ x(d, {
389
- ...u,
390
- ...p.attributes,
391
- ref: f,
392
- className: (e) => a("base-button--component", p.classes, typeof c == "function" ? c(e) : c),
393
- children: /* @__PURE__ */ x(V, {
394
- icon: o,
395
- iconPosition: s,
396
- children: l
397
- })
398
- });
399
- }), U = m(function({ tone: e, buttonStyle: t, size: n, iconOnly: r, fullWidth: i, icon: o, iconPosition: s, className: c, children: l, disabled: u = !1, tabIndex: d, onClick: f, rel: p, target: m, ...h }, g) {
400
- let _ = B({
401
- tone: e,
402
- buttonStyle: t,
403
- size: n,
404
- iconOnly: r,
405
- fullWidth: i,
406
- children: l
407
- }), v = new Set(p?.split(/\s+/).filter(Boolean));
408
- return m?.toLowerCase() === "_blank" && (v.size || v.add("noreferrer"), v.add("noopener")), /* @__PURE__ */ x("a", {
409
- ...h,
410
- ..._.attributes,
411
- ref: g,
412
- target: m,
413
- rel: v.size ? [...v].join(" ") : void 0,
414
- "aria-disabled": u || h["aria-disabled"] || void 0,
415
- tabIndex: u ? -1 : d,
416
- className: a("base-button--component", _.classes, c),
417
- onClick: (e) => {
418
- if (u) {
419
- e.preventDefault(), e.stopPropagation();
420
- return;
421
- }
422
- f?.(e);
423
- },
424
- children: /* @__PURE__ */ x(V, {
425
- icon: o,
426
- iconPosition: s,
427
- children: l
428
- })
429
- });
430
- }), W = {
431
- root: "inline-flex items-center justify-center font-[inherit] font-medium leading-tight whitespace-nowrap no-underline select-none border border-transparent rounded-radius box-border align-middle outline-none cursor-pointer transition-[background-color,color,border-color,box-shadow] duration-150 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:pointer-events-none",
432
- isDisabled: "opacity-50 cursor-not-allowed pointer-events-none",
433
- sizeSm: "h-action-sm min-h-0 px-control-sm gap-space-sm text-sm [&_.base-button-icon]:size-icon-sm",
434
- sizeMd: "h-action min-h-0 px-control gap-space-md text-sm [&_.base-button-icon]:size-icon",
435
- sizeLg: "h-action-lg min-h-0 px-control gap-space-lg text-sm [&_.base-button-icon]:size-icon-lg",
436
- isIconOnly: "w-auto aspect-square p-0",
437
- isFullWidth: "w-full",
438
- isLoading: "cursor-wait",
439
- styleSolid: "",
440
- styleOutline: "",
441
- styleGhost: "",
442
- icon: "base-button-icon pointer-events-none shrink-0",
443
- spinner: "animate-spin me-space-md",
444
- toneNeutral: "data-[style=solid]:bg-foreground data-[style=solid]:text-background data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-border data-[style=outline]:text-foreground data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-muted data-[style=ghost]:bg-transparent data-[style=ghost]:text-foreground data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-muted",
445
- tonePrimary: "data-[style=solid]:bg-primary data-[style=solid]:text-primary-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-primary data-[style=outline]:text-primary-accent data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-primary/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-primary-accent data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-primary/10",
446
- toneSecondary: "data-[style=solid]:bg-secondary data-[style=solid]:text-secondary-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-border data-[style=outline]:text-foreground data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-secondary data-[style=ghost]:bg-transparent data-[style=ghost]:text-foreground data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-secondary",
447
- toneDestructive: "data-[style=solid]:bg-destructive data-[style=solid]:text-destructive-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-destructive data-[style=outline]:text-destructive data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-destructive/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-destructive data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-destructive/10",
448
- toneSuccess: "data-[style=solid]:bg-success data-[style=solid]:text-success-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-success data-[style=outline]:text-success data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-success/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-success data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-success/10",
449
- toneWarning: "data-[style=solid]:bg-warning data-[style=solid]:text-warning-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-warning data-[style=outline]:text-warning-accent data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-warning/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-warning-accent data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-warning/10",
450
- toneInfo: "data-[style=solid]:bg-info data-[style=solid]:text-info-foreground data-[style=solid]:[&:hover:not(:disabled):not([aria-disabled=true])]:brightness-95 data-[style=outline]:bg-transparent data-[style=outline]:border-info data-[style=outline]:text-info data-[style=outline]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-info/10 data-[style=ghost]:bg-transparent data-[style=ghost]:text-info data-[style=ghost]:[&:hover:not(:disabled):not([aria-disabled=true])]:bg-info/10"
451
- }, ce = {
452
- loading: "Loading...",
453
- completed: "Completed"
454
- };
455
- function G({ loading: e = !1, handlesLoading: t, strings: n }) {
456
- let r = i(ce, n), [a, o] = y(e), [, s] = y(!1);
457
- return g(() => {
458
- e && o(!0);
459
- }, [e]), g(() => {
460
- t && e && o(!0);
461
- }, [e, t]), g(() => {
462
- let t;
463
- return !e && a && (s(!0), t = setTimeout(() => {
464
- o(!1), s(!1);
465
- }, 300)), () => {
466
- t && clearTimeout(t);
467
- };
468
- }, [e, a]), {
469
- isLoading: a,
470
- strings: r
471
- };
472
- }
473
- function K({ isLoading: e, loadingText: t, icon: n, iconPosition: r = "left", size: i, children: o }) {
474
- let c = e ? t : o, l = typeof c == "string" || typeof c == "number" || typeof c == "bigint";
475
- return /* @__PURE__ */ S(b, { children: [
476
- !!e && /* @__PURE__ */ x(ee, {
477
- className: a(W.icon, W.spinner),
478
- "aria-hidden": "true"
479
- }),
480
- !!n && r === "left" && !e && /* @__PURE__ */ x(n, {
481
- className: W.icon,
482
- "aria-hidden": "true"
483
- }),
484
- l ? /* @__PURE__ */ x(s, {
485
- tag: "span",
486
- size: "inherit",
487
- weight: "medium",
488
- lineHeight: "none",
489
- className: "text-inherit",
490
- children: c
491
- }) : c,
492
- !!n && r === "right" && !e && /* @__PURE__ */ x(n, {
493
- className: W.icon,
494
- "aria-hidden": "true"
495
- })
496
- ] });
497
- }
498
- var q = f.forwardRef(({ loading: e = !1, handlesLoading: t, strings: n, icon: r, iconPosition: i = "left", children: o, disabled: s, className: c, ...l }, u) => {
499
- let { isLoading: d, strings: f } = G({
500
- loading: e,
501
- handlesLoading: t,
502
- strings: n
503
- });
504
- return /* @__PURE__ */ x(H, {
505
- ...l,
506
- ref: u,
507
- disabled: s || d,
508
- "aria-busy": d || void 0,
509
- className: a("loader-button--component", d && W.isLoading, c),
510
- children: /* @__PURE__ */ x(K, {
511
- isLoading: d,
512
- loadingText: f.loading,
513
- icon: r,
514
- iconPosition: i,
515
- size: l.size,
516
- children: o
517
- })
518
- });
519
- });
520
- q.displayName = "LoaderButton";
521
- //#endregion
522
- //#region src/components/base/buttons/tooltip-button.tsx
523
- var J = f.forwardRef(({ withTooltip: e, children: t, ...n }, r) => /* @__PURE__ */ S(F, { children: [/* @__PURE__ */ x(L, { render: (i) => {
524
- let o = C(n, i);
525
- return /* @__PURE__ */ x(H, {
526
- ...o,
527
- "aria-label": n["aria-label"] ?? e,
528
- ref: r,
529
- className: a("tooltip-button--component", o.className),
530
- children: t
531
- });
532
- } }), /* @__PURE__ */ x(R, {
533
- className: "px-2 py-1 text-pxs",
534
- children: /* @__PURE__ */ x(s, {
535
- tag: "span",
536
- size: "inherit",
537
- className: "text-inherit",
538
- children: e
539
- })
540
- })] }));
541
- J.displayName = "TooltipButton";
542
- //#endregion
543
- //#region src/components/base/buttons/button.tsx
544
- function Y({ loading: e, handlesLoading: t, strings: n }) {
545
- return e === !0 || !!t || n !== void 0;
546
- }
547
- var X = f.forwardRef(({ loading: e, handlesLoading: t, strings: n, icon: r, iconPosition: i = "left", children: o, disabled: s, size: c, className: l, ...u }, d) => {
548
- let f = G({
549
- loading: e,
550
- handlesLoading: t,
551
- strings: n
552
- });
553
- return /* @__PURE__ */ x(U, {
554
- ...u,
555
- ref: d,
556
- size: c,
557
- disabled: s || f.isLoading,
558
- "aria-busy": f.isLoading || void 0,
559
- className: a("loader-button--component", l),
560
- children: /* @__PURE__ */ x(K, {
561
- isLoading: f.isLoading,
562
- loadingText: f.strings.loading,
563
- icon: r,
564
- iconPosition: i,
565
- size: c,
566
- children: o
567
- })
568
- });
569
- });
570
- X.displayName = "LoadingButtonLink";
571
- var Z = f.forwardRef(({ withTooltip: e, ...t }, n) => {
572
- if (Y(t)) return /* @__PURE__ */ x(X, {
573
- ref: n,
574
- ...t
575
- });
576
- let { loading: r, handlesLoading: i, strings: a, ...o } = t;
577
- return /* @__PURE__ */ x(U, {
578
- ref: n,
579
- ...o
580
- });
581
- });
582
- Z.displayName = "ButtonLink";
583
- function le(e) {
584
- let { type: t, form: n, formAction: r, formEncType: i, formMethod: a, formNoValidate: o, formTarget: s, name: c, value: l, nativeButton: u, focusableWhenDisabled: d, render: f, ...p } = e;
585
- return p;
586
- }
587
- var Q = f.forwardRef(({ href: e, withTooltip: t, loading: n, handlesLoading: r, strings: i, ...o }, c) => {
588
- if (e !== void 0) {
589
- let l = le(o), u = /* @__PURE__ */ x(Z, {
590
- ...l,
591
- ref: c,
592
- href: e,
593
- loading: n,
594
- handlesLoading: r,
595
- strings: i,
596
- "aria-label": o["aria-label"] ?? t,
597
- className: a("button--component", l.className)
598
- });
599
- return t ? /* @__PURE__ */ S(F, { children: [/* @__PURE__ */ x(L, { render: u }), /* @__PURE__ */ x(R, {
600
- className: "px-2 py-1 text-pxs",
601
- children: /* @__PURE__ */ x(s, {
602
- tag: "span",
603
- size: "inherit",
604
- className: "text-inherit",
605
- children: t
606
- })
607
- })] }) : u;
608
- }
609
- let { download: l, hrefLang: u, media: d, ping: f, referrerPolicy: p, rel: m, target: h, ...g } = o, _ = {
610
- ...g,
611
- className: a("button--component", g.className)
612
- };
613
- return Y({
614
- loading: n,
615
- handlesLoading: r,
616
- strings: i
617
- }) ? t ? /* @__PURE__ */ S(F, { children: [/* @__PURE__ */ x(L, { render: (e) => /* @__PURE__ */ x(q, {
618
- ..._,
619
- ...e,
620
- ref: c,
621
- loading: n,
622
- handlesLoading: r,
623
- strings: i,
624
- "aria-label": g["aria-label"] ?? t,
625
- className: a(e.className, _.className),
626
- children: g.children
627
- }) }), /* @__PURE__ */ x(R, {
628
- className: "px-2 py-1 text-pxs",
629
- children: /* @__PURE__ */ x(s, {
630
- tag: "span",
631
- size: "inherit",
632
- className: "text-inherit",
633
- children: t
634
- })
635
- })] }) : /* @__PURE__ */ x(q, {
636
- ..._,
637
- ref: c,
638
- loading: n,
639
- handlesLoading: r,
640
- strings: i
641
- }) : t ? /* @__PURE__ */ x(J, {
642
- ..._,
643
- ref: c,
644
- withTooltip: t
645
- }) : /* @__PURE__ */ x(H, {
646
- ..._,
647
- ref: c
648
- });
649
- });
650
- Q.displayName = "Button";
651
- //#endregion
652
- //#region src/components/base/buttons/text-button.tsx
653
- var ue = {
654
- sm: "text-pxs leading-none h-auto px-0",
655
- md: "text-pxs leading-none h-auto px-0",
656
- lg: "text-sm leading-none h-auto px-0"
657
- }, $ = f.forwardRef(({ className: t, type: r = "button", size: i, disabled: o, ...s }, c) => {
658
- let { defaultScale: l } = n(), u = e(i, l);
659
- return /* @__PURE__ */ x(H, {
660
- ref: c,
661
- type: r,
662
- tone: "primary",
663
- buttonStyle: "ghost",
664
- size: u,
665
- disabled: o,
666
- className: a("text-button--component", "hover:bg-transparent dark:hover:bg-transparent", "inline-flex items-center justify-center underline decoration-border underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current", "text-primary-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", ue[u], t),
667
- ...s
668
- });
669
- });
670
- $.displayName = "TextButton";
671
- //#endregion
672
- export { z as a, I as c, M as d, j as f, re as g, D as h, U as i, L as l, O as m, Q as n, F as o, se as p, H as r, R as s, $ as t, A as u };
673
-
674
- //# sourceMappingURL=buttons-Co6GavvM.js.map