@k8ordo/ui 2.3.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/README.md +75 -183
  2. package/dist/catalog/icon-map.d.mts +108 -0
  3. package/dist/catalog/icon-map.mjs +212 -0
  4. package/dist/catalog/icon-names.d.mts +1 -0
  5. package/dist/catalog/icon-names.mjs +108 -0
  6. package/dist/catalog/index.d.mts +1289 -0
  7. package/dist/catalog/index.mjs +419 -0
  8. package/dist/catalog/render.css +34 -0
  9. package/dist/catalog/render.d.mts +72 -0
  10. package/dist/catalog/render.mjs +631 -0
  11. package/dist/catalog/render.module.mjs +11 -0
  12. package/dist/{integrations/_shared → catalog}/schemas.d.mts +550 -307
  13. package/dist/{integrations/_shared → catalog}/schemas.mjs +191 -184
  14. package/dist/catalog/to-tree.d.mts +4 -0
  15. package/dist/catalog/to-tree.mjs +17 -0
  16. package/dist/components/_internal/checked-values.d.mts +1 -0
  17. package/dist/components/_internal/checked-values.mjs +5 -0
  18. package/dist/components/_internal/field-message.css +25 -0
  19. package/dist/components/_internal/field-message.d.mts +10 -0
  20. package/dist/components/_internal/field-message.mjs +22 -0
  21. package/dist/components/_internal/field-message.module.mjs +9 -0
  22. package/dist/components/_internal/focus-ring.css +1 -1
  23. package/dist/components/_internal/high-contrast.css +1 -0
  24. package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
  25. package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
  26. package/dist/components/ai/_internal/attachment-preview.mjs +3 -3
  27. package/dist/components/ai/_internal/collapsible.mjs +2 -2
  28. package/dist/components/ai/attachment/attachment.d.mts +1 -1
  29. package/dist/components/ai/attachment/index.d.mts +1 -1
  30. package/dist/components/ai/conversation/conversation.mjs +4 -4
  31. package/dist/components/ai/index.d.mts +2 -2
  32. package/dist/components/ai/message/index.d.mts +2 -2
  33. package/dist/components/ai/message/message.d.mts +2 -2
  34. package/dist/components/ai/message/message.mjs +14 -12
  35. package/dist/components/ai/prompt-input/prompt-input.mjs +5 -5
  36. package/dist/components/ai/reasoning/reasoning.mjs +1 -1
  37. package/dist/components/ai/source/index.d.mts +2 -2
  38. package/dist/components/ai/source/source.d.mts +2 -2
  39. package/dist/components/ai/source/source.mjs +2 -2
  40. package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
  41. package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
  42. package/dist/components/ai/tool-invocation/tool-invocation.mjs +2 -1
  43. package/dist/components/buttons/button/button.css +1 -1
  44. package/dist/components/buttons/button/button.d.mts +34 -37
  45. package/dist/components/buttons/button/button.mjs +37 -24
  46. package/dist/components/buttons/button/button.module.mjs +0 -1
  47. package/dist/components/buttons/button/index.d.mts +2 -2
  48. package/dist/components/buttons/copy-button/copy-button.mjs +6 -4
  49. package/dist/components/buttons/icon-button/icon-button.css +3 -3
  50. package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
  51. package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
  52. package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
  53. package/dist/components/buttons/icon-button/index.d.mts +2 -2
  54. package/dist/components/buttons/toolbar/toolbar.css +5 -1
  55. package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
  56. package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
  57. package/dist/components/data-display/accordion/accordion-button.mjs +5 -5
  58. package/dist/components/data-display/accordion/index.d.mts +3 -3
  59. package/dist/components/data-display/card/card-action.d.mts +6 -0
  60. package/dist/components/data-display/card/card-action.mjs +21 -0
  61. package/dist/components/data-display/card/card.css +24 -0
  62. package/dist/components/data-display/card/card.d.mts +26 -3
  63. package/dist/components/data-display/card/card.mjs +46 -6
  64. package/dist/components/data-display/card/card.module.mjs +4 -1
  65. package/dist/components/data-display/card/index.d.mts +2 -2
  66. package/dist/components/data-display/carousel/carousel.mjs +3 -3
  67. package/dist/components/data-display/code/code.css +4 -0
  68. package/dist/components/data-display/code-block/code-block.mjs +1 -1
  69. package/dist/components/data-display/data-table/data-table.css +0 -3
  70. package/dist/components/data-display/data-table/data-table.mjs +25 -26
  71. package/dist/components/data-display/tree/tree.d.mts +1 -1
  72. package/dist/components/data-display/tree/tree.mjs +7 -6
  73. package/dist/components/feedback/alert/alert.d.mts +2 -7
  74. package/dist/components/feedback/alert/alert.mjs +12 -11
  75. package/dist/components/feedback/alert/index.d.mts +2 -2
  76. package/dist/components/feedback/callout/callout.mjs +3 -3
  77. package/dist/components/feedback/progress/progress.mjs +1 -1
  78. package/dist/components/feedback/toast/context.d.mts +4 -5
  79. package/dist/components/feedback/toast/index.d.mts +2 -2
  80. package/dist/components/feedback/toast/provider.d.mts +7 -2
  81. package/dist/components/feedback/toast/provider.mjs +7 -2
  82. package/dist/components/feedback/toast/toast.d.mts +2 -3
  83. package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
  84. package/dist/components/form/autocomplete/autocomplete.mjs +15 -12
  85. package/dist/components/form/calendar/calendar.mjs +4 -6
  86. package/dist/components/form/checkbox/checkbox.d.mts +3 -1
  87. package/dist/components/form/checkbox/checkbox.mjs +45 -45
  88. package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
  89. package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
  90. package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
  91. package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
  92. package/dist/components/form/checkbox-group/index.d.mts +2 -34
  93. package/dist/components/form/checkbox-group/index.mjs +1 -8
  94. package/dist/components/form/color-picker/color-picker.css +3 -5
  95. package/dist/components/form/color-picker/color-picker.d.mts +0 -1
  96. package/dist/components/form/color-picker/color-picker.mjs +4 -4
  97. package/dist/components/form/combobox/combobox.d.mts +0 -1
  98. package/dist/components/form/combobox/combobox.mjs +9 -8
  99. package/dist/components/form/date-picker/date-picker.css +0 -5
  100. package/dist/components/form/date-picker/date-picker.mjs +22 -23
  101. package/dist/components/form/file-field/file-field.d.mts +6 -3
  102. package/dist/components/form/file-field/file-field.mjs +42 -19
  103. package/dist/components/form/file-field/index.d.mts +4 -1
  104. package/dist/components/form/form/form.mjs +0 -1
  105. package/dist/components/form/form-control/form-control.css +0 -15
  106. package/dist/components/form/form-control/form-control.d.mts +3 -4
  107. package/dist/components/form/form-control/form-control.mjs +44 -46
  108. package/dist/components/form/form-control/form-control.module.mjs +0 -3
  109. package/dist/components/form/number-field/number-field.d.mts +2 -2
  110. package/dist/components/form/number-field/number-field.mjs +13 -52
  111. package/dist/components/form/password-input/password-input.mjs +3 -2
  112. package/dist/components/form/radio/radio.mjs +4 -2
  113. package/dist/components/form/radio-card/radio-card.mjs +9 -2
  114. package/dist/components/form/range-slider/range-slider.d.mts +4 -2
  115. package/dist/components/form/range-slider/range-slider.mjs +2 -4
  116. package/dist/components/form/select/select.css +6 -4
  117. package/dist/components/form/select/select.d.mts +5 -0
  118. package/dist/components/form/select/select.mjs +10 -7
  119. package/dist/components/form/slider/slider.d.mts +2 -2
  120. package/dist/components/form/slider/slider.mjs +3 -6
  121. package/dist/components/form/switch/switch.d.mts +3 -0
  122. package/dist/components/form/switch/switch.mjs +43 -31
  123. package/dist/components/form/text-field/index.d.mts +2 -2
  124. package/dist/components/form/text-field/text-field.css +4 -0
  125. package/dist/components/form/text-field/text-field.d.mts +1 -1
  126. package/dist/components/form/textarea/textarea.d.mts +0 -1
  127. package/dist/components/form/textarea/textarea.mjs +1 -1
  128. package/dist/components/icons/alert.d.mts +6 -0
  129. package/dist/components/icons/alert.mjs +17 -0
  130. package/dist/components/icons/{vertical-writing.d.mts → arrow-down.d.mts} +1 -1
  131. package/dist/components/icons/arrow-down.mjs +8 -0
  132. package/dist/components/icons/arrow-left.d.mts +3 -0
  133. package/dist/components/icons/arrow-left.mjs +8 -0
  134. package/dist/components/icons/arrow-right.d.mts +3 -0
  135. package/dist/components/icons/arrow-right.mjs +8 -0
  136. package/dist/components/icons/{twitter.d.mts → arrow-up.d.mts} +1 -1
  137. package/dist/components/icons/arrow-up.mjs +8 -0
  138. package/dist/components/icons/base.d.mts +0 -1
  139. package/dist/components/icons/base.mjs +1 -2
  140. package/dist/components/icons/{qiita.d.mts → bell.d.mts} +1 -1
  141. package/dist/components/icons/bell.mjs +8 -0
  142. package/dist/components/icons/{github-mark.d.mts → blend.d.mts} +1 -1
  143. package/dist/components/icons/blend.mjs +16 -0
  144. package/dist/components/icons/book-text.d.mts +3 -0
  145. package/dist/components/icons/book-text.mjs +8 -0
  146. package/dist/components/icons/bookmark.d.mts +3 -0
  147. package/dist/components/icons/bookmark.mjs +8 -0
  148. package/dist/components/icons/bot-message.d.mts +3 -0
  149. package/dist/components/icons/bot-message.mjs +8 -0
  150. package/dist/components/icons/bot.d.mts +3 -0
  151. package/dist/components/icons/bot.mjs +14 -0
  152. package/dist/components/icons/calendar.d.mts +3 -0
  153. package/dist/components/icons/calendar.mjs +14 -0
  154. package/dist/components/icons/check.d.mts +3 -0
  155. package/dist/components/icons/check.mjs +8 -0
  156. package/dist/components/icons/chevron-down.d.mts +3 -0
  157. package/dist/components/icons/chevron-down.mjs +8 -0
  158. package/dist/components/icons/chevron-left.d.mts +3 -0
  159. package/dist/components/icons/chevron-left.mjs +8 -0
  160. package/dist/components/icons/chevron-right.d.mts +3 -0
  161. package/dist/components/icons/chevron-right.mjs +8 -0
  162. package/dist/components/icons/chevron-up.d.mts +3 -0
  163. package/dist/components/icons/chevron-up.mjs +8 -0
  164. package/dist/components/icons/chevron.d.mts +6 -0
  165. package/dist/components/icons/chevron.mjs +17 -0
  166. package/dist/components/icons/chevrons-up-down.d.mts +3 -0
  167. package/dist/components/icons/chevrons-up-down.mjs +8 -0
  168. package/dist/components/icons/circle-alert.d.mts +3 -0
  169. package/dist/components/icons/circle-alert.mjs +12 -0
  170. package/dist/components/icons/circle-check.d.mts +3 -0
  171. package/dist/components/icons/circle-check.mjs +12 -0
  172. package/dist/components/icons/circle-help.d.mts +3 -0
  173. package/dist/components/icons/circle-help.mjs +12 -0
  174. package/dist/components/icons/circle-x.d.mts +3 -0
  175. package/dist/components/icons/circle-x.mjs +12 -0
  176. package/dist/components/icons/clipboard-check.d.mts +3 -0
  177. package/dist/components/icons/clipboard-check.mjs +18 -0
  178. package/dist/components/icons/clock.d.mts +3 -0
  179. package/dist/components/icons/clock.mjs +12 -0
  180. package/dist/components/icons/code.d.mts +3 -0
  181. package/dist/components/icons/code.mjs +8 -0
  182. package/dist/components/icons/color-scale.mjs +18 -30
  183. package/dist/components/icons/contrast.d.mts +3 -0
  184. package/dist/components/icons/contrast.mjs +15 -0
  185. package/dist/components/icons/copy.d.mts +3 -0
  186. package/dist/components/icons/copy.mjs +14 -0
  187. package/dist/components/icons/download.d.mts +3 -0
  188. package/dist/components/icons/download.mjs +8 -0
  189. package/dist/components/icons/ellipsis-vertical.d.mts +3 -0
  190. package/dist/components/icons/ellipsis-vertical.mjs +27 -0
  191. package/dist/components/icons/ellipsis.d.mts +3 -0
  192. package/dist/components/icons/ellipsis.mjs +27 -0
  193. package/dist/components/icons/external-link.d.mts +3 -0
  194. package/dist/components/icons/external-link.mjs +8 -0
  195. package/dist/components/icons/eye-closed.d.mts +3 -0
  196. package/dist/components/icons/eye-closed.mjs +8 -0
  197. package/dist/components/icons/eye.d.mts +3 -0
  198. package/dist/components/icons/eye.mjs +12 -0
  199. package/dist/components/icons/file-text.d.mts +3 -0
  200. package/dist/components/icons/file-text.mjs +12 -0
  201. package/dist/components/icons/file.d.mts +3 -0
  202. package/dist/components/icons/file.mjs +8 -0
  203. package/dist/components/icons/filter.d.mts +3 -0
  204. package/dist/components/icons/filter.mjs +8 -0
  205. package/dist/components/icons/flask.d.mts +3 -0
  206. package/dist/components/icons/flask.mjs +8 -0
  207. package/dist/components/icons/folder-open.d.mts +3 -0
  208. package/dist/components/icons/folder-open.mjs +8 -0
  209. package/dist/components/icons/folder.d.mts +3 -0
  210. package/dist/components/icons/folder.mjs +8 -0
  211. package/dist/components/icons/git-fork.d.mts +3 -0
  212. package/dist/components/icons/git-fork.mjs +25 -0
  213. package/dist/components/icons/git-pull-request.d.mts +3 -0
  214. package/dist/components/icons/git-pull-request.mjs +20 -0
  215. package/dist/components/icons/globe.d.mts +3 -0
  216. package/dist/components/icons/globe.mjs +12 -0
  217. package/dist/components/icons/grid.d.mts +3 -0
  218. package/dist/components/icons/grid.mjs +37 -0
  219. package/dist/components/icons/grip-vertical.d.mts +3 -0
  220. package/dist/components/icons/grip-vertical.mjs +45 -0
  221. package/dist/components/icons/heart.d.mts +3 -0
  222. package/dist/components/icons/heart.mjs +8 -0
  223. package/dist/components/icons/history.d.mts +3 -0
  224. package/dist/components/icons/history.mjs +8 -0
  225. package/dist/components/icons/home.d.mts +3 -0
  226. package/dist/components/icons/home.mjs +8 -0
  227. package/dist/components/icons/image.d.mts +3 -0
  228. package/dist/components/icons/image.mjs +22 -0
  229. package/dist/components/icons/index.d.mts +107 -9
  230. package/dist/components/icons/index.mjs +107 -8
  231. package/dist/components/icons/info.d.mts +3 -0
  232. package/dist/components/icons/info.mjs +12 -0
  233. package/dist/components/icons/lightbulb.d.mts +3 -0
  234. package/dist/components/icons/lightbulb.mjs +8 -0
  235. package/dist/components/icons/line-icon.d.mts +3 -0
  236. package/dist/components/icons/line-icon.mjs +17 -0
  237. package/dist/components/icons/link.d.mts +3 -0
  238. package/dist/components/icons/link.mjs +11 -0
  239. package/dist/components/icons/list.d.mts +3 -0
  240. package/dist/components/icons/list.mjs +8 -0
  241. package/dist/components/icons/lock-open.d.mts +3 -0
  242. package/dist/components/icons/lock-open.mjs +14 -0
  243. package/dist/components/icons/lock.d.mts +3 -0
  244. package/dist/components/icons/lock.mjs +14 -0
  245. package/dist/components/icons/log-in.d.mts +3 -0
  246. package/dist/components/icons/log-in.mjs +8 -0
  247. package/dist/components/icons/log-out.d.mts +3 -0
  248. package/dist/components/icons/log-out.mjs +8 -0
  249. package/dist/components/icons/mail.d.mts +3 -0
  250. package/dist/components/icons/mail.mjs +14 -0
  251. package/dist/components/icons/map-pin.d.mts +3 -0
  252. package/dist/components/icons/map-pin.mjs +12 -0
  253. package/dist/components/icons/maximize.d.mts +3 -0
  254. package/dist/components/icons/maximize.mjs +8 -0
  255. package/dist/components/icons/menu.d.mts +3 -0
  256. package/dist/components/icons/menu.mjs +8 -0
  257. package/dist/components/icons/message-circle.d.mts +3 -0
  258. package/dist/components/icons/message-circle.mjs +8 -0
  259. package/dist/components/icons/minimize.d.mts +3 -0
  260. package/dist/components/icons/minimize.mjs +8 -0
  261. package/dist/components/icons/minus.d.mts +3 -0
  262. package/dist/components/icons/minus.mjs +8 -0
  263. package/dist/components/icons/monitor.d.mts +3 -0
  264. package/dist/components/icons/monitor.mjs +14 -0
  265. package/dist/components/icons/moon.d.mts +3 -0
  266. package/dist/components/icons/moon.mjs +8 -0
  267. package/dist/components/icons/package.d.mts +3 -0
  268. package/dist/components/icons/package.mjs +8 -0
  269. package/dist/components/icons/paint-bucket.d.mts +3 -0
  270. package/dist/components/icons/paint-bucket.mjs +8 -0
  271. package/dist/components/icons/palette.d.mts +3 -0
  272. package/dist/components/icons/palette.mjs +8 -0
  273. package/dist/components/icons/panel-left.d.mts +3 -0
  274. package/dist/components/icons/panel-left.mjs +14 -0
  275. package/dist/components/icons/paperclip.d.mts +3 -0
  276. package/dist/components/icons/paperclip.mjs +11 -0
  277. package/dist/components/icons/pause.d.mts +3 -0
  278. package/dist/components/icons/pause.mjs +20 -0
  279. package/dist/components/icons/pencil.d.mts +3 -0
  280. package/dist/components/icons/pencil.mjs +8 -0
  281. package/dist/components/icons/pin.d.mts +3 -0
  282. package/dist/components/icons/pin.mjs +11 -0
  283. package/dist/components/icons/play.d.mts +3 -0
  284. package/dist/components/icons/play.mjs +8 -0
  285. package/dist/components/icons/plus.d.mts +3 -0
  286. package/dist/components/icons/plus.mjs +8 -0
  287. package/dist/components/icons/presentation.d.mts +3 -0
  288. package/dist/components/icons/presentation.mjs +8 -0
  289. package/dist/components/icons/redo.d.mts +3 -0
  290. package/dist/components/icons/redo.mjs +8 -0
  291. package/dist/components/icons/refresh.d.mts +3 -0
  292. package/dist/components/icons/refresh.mjs +8 -0
  293. package/dist/components/icons/rocket.d.mts +3 -0
  294. package/dist/components/icons/rocket.mjs +19 -0
  295. package/dist/components/icons/rss.d.mts +3 -0
  296. package/dist/components/icons/rss.mjs +13 -0
  297. package/dist/components/icons/search.d.mts +3 -0
  298. package/dist/components/icons/search.mjs +12 -0
  299. package/dist/components/icons/send.d.mts +3 -0
  300. package/dist/components/icons/send.mjs +8 -0
  301. package/dist/components/icons/settings.d.mts +3 -0
  302. package/dist/components/icons/settings.mjs +12 -0
  303. package/dist/components/icons/share.d.mts +3 -0
  304. package/dist/components/icons/share.mjs +25 -0
  305. package/dist/components/icons/shield-check.d.mts +3 -0
  306. package/dist/components/icons/shield-check.mjs +8 -0
  307. package/dist/components/icons/smile.d.mts +3 -0
  308. package/dist/components/icons/smile.mjs +12 -0
  309. package/dist/components/icons/sparkles.d.mts +3 -0
  310. package/dist/components/icons/sparkles.mjs +8 -0
  311. package/dist/components/icons/square.d.mts +3 -0
  312. package/dist/components/icons/square.mjs +14 -0
  313. package/dist/components/icons/squircle.d.mts +3 -0
  314. package/dist/components/icons/squircle.mjs +8 -0
  315. package/dist/components/icons/star.d.mts +3 -0
  316. package/dist/components/icons/star.mjs +8 -0
  317. package/dist/components/icons/sun.d.mts +3 -0
  318. package/dist/components/icons/sun.mjs +12 -0
  319. package/dist/components/icons/table.d.mts +3 -0
  320. package/dist/components/icons/table.mjs +14 -0
  321. package/dist/components/icons/tag.d.mts +3 -0
  322. package/dist/components/icons/tag.mjs +8 -0
  323. package/dist/components/icons/text-horizontal.d.mts +3 -0
  324. package/dist/components/icons/text-horizontal.mjs +8 -0
  325. package/dist/components/icons/text-vertical.d.mts +3 -0
  326. package/dist/components/icons/text-vertical.mjs +8 -0
  327. package/dist/components/icons/thumbs-down.d.mts +3 -0
  328. package/dist/components/icons/thumbs-down.mjs +8 -0
  329. package/dist/components/icons/thumbs-up.d.mts +3 -0
  330. package/dist/components/icons/thumbs-up.mjs +8 -0
  331. package/dist/components/icons/trash.d.mts +3 -0
  332. package/dist/components/icons/trash.mjs +8 -0
  333. package/dist/components/icons/triangle-alert.d.mts +3 -0
  334. package/dist/components/icons/triangle-alert.mjs +8 -0
  335. package/dist/components/icons/undo.d.mts +3 -0
  336. package/dist/components/icons/undo.mjs +8 -0
  337. package/dist/components/icons/upload.d.mts +3 -0
  338. package/dist/components/icons/upload.mjs +8 -0
  339. package/dist/components/icons/user.d.mts +3 -0
  340. package/dist/components/icons/user.mjs +12 -0
  341. package/dist/components/icons/users.d.mts +3 -0
  342. package/dist/components/icons/users.mjs +12 -0
  343. package/dist/components/icons/x.d.mts +3 -0
  344. package/dist/components/icons/x.mjs +8 -0
  345. package/dist/components/index.d.mts +58 -76
  346. package/dist/components/index.mjs +13 -27
  347. package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
  348. package/dist/components/navigation/anchor/anchor.css +3 -3
  349. package/dist/components/navigation/anchor/anchor.mjs +20 -7
  350. package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
  351. package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
  352. package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
  353. package/dist/components/navigation/pagination/pagination.d.mts +2 -2
  354. package/dist/components/navigation/pagination/pagination.mjs +3 -3
  355. package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
  356. package/dist/components/navigation/stepper/stepper.mjs +3 -3
  357. package/dist/components/navigation/tabs/index.d.mts +10 -5
  358. package/dist/components/navigation/tabs/tabs.d.mts +11 -6
  359. package/dist/components/navigation/tabs/tabs.mjs +24 -27
  360. package/dist/components/overlays/_internal/modal-header.css +38 -0
  361. package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
  362. package/dist/components/overlays/_internal/modal-header.mjs +32 -0
  363. package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
  364. package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
  365. package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
  366. package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
  367. package/dist/components/overlays/context-menu/index.d.mts +27 -2
  368. package/dist/components/overlays/dialog/dialog.css +3 -21
  369. package/dist/components/overlays/dialog/dialog.d.mts +20 -9
  370. package/dist/components/overlays/dialog/dialog.mjs +35 -73
  371. package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
  372. package/dist/components/overlays/dialog/index.d.mts +2 -15
  373. package/dist/components/overlays/dialog/index.mjs +1 -8
  374. package/dist/components/overlays/drawer/drawer.css +4 -26
  375. package/dist/components/overlays/drawer/drawer.d.mts +7 -2
  376. package/dist/components/overlays/drawer/drawer.mjs +24 -37
  377. package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
  378. package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
  379. package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +30 -12
  380. package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
  381. package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
  382. package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
  383. package/dist/components/overlays/dropdown-menu/shared.css +1 -0
  384. package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
  385. package/dist/components/overlays/list-box/hooks.mjs +2 -2
  386. package/dist/components/overlays/list-box/index.d.mts +2 -25
  387. package/dist/components/overlays/list-box/index.mjs +1 -9
  388. package/dist/components/overlays/list-box/list-box.d.mts +11 -16
  389. package/dist/components/overlays/list-box/list-box.mjs +24 -16
  390. package/dist/components/overlays/modal/modal.d.mts +8 -7
  391. package/dist/components/overlays/modal/modal.mjs +23 -32
  392. package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
  393. package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
  394. package/dist/components/overlays/popover/hooks.d.mts +0 -2
  395. package/dist/components/overlays/popover/hooks.mjs +0 -2
  396. package/dist/components/overlays/popover/index.d.mts +19 -2
  397. package/dist/components/overlays/popover/index.mjs +7 -2
  398. package/dist/components/overlays/popover/popover.css +6 -0
  399. package/dist/components/overlays/popover/popover.d.mts +15 -2
  400. package/dist/components/overlays/popover/popover.mjs +28 -13
  401. package/dist/components/overlays/popover/popover.module.mjs +2 -1
  402. package/dist/components/overlays/tooltip/bridge.css +1 -1
  403. package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
  404. package/dist/helpers/index.mjs +1 -1
  405. package/dist/i18n/en.mjs +1 -2
  406. package/dist/i18n/index.d.mts +3 -4
  407. package/dist/i18n/index.mjs +1 -2
  408. package/dist/i18n/ja.mjs +1 -2
  409. package/dist/i18n/messages.d.mts +2 -4
  410. package/dist/i18n/usage.d.mts +2 -1
  411. package/dist/i18n/usage.mjs +3 -3
  412. package/dist/index.d.mts +30 -45
  413. package/dist/index.mjs +4 -18
  414. package/dist/internal/iso-date.mjs +1 -1
  415. package/dist/styles/index.css +79 -231
  416. package/dist/styles/tailwind.css +1 -4
  417. package/dist/styles/tokens.css +281 -0
  418. package/dist/styles/tokens.d.mts +1 -1
  419. package/dist/styles/tokens.mjs +1 -1
  420. package/dist/types/index.d.mts +2 -2
  421. package/dist/types/variables.d.mts +4 -2
  422. package/docs/GUIDE.md +145 -69
  423. package/docs/llms.txt +38 -11
  424. package/docs/props.generated.json +1414 -645
  425. package/docs/references/ai-chat.md +94 -44
  426. package/docs/references/color.md +15 -15
  427. package/docs/references/components.md +636 -504
  428. package/docs/references/generative-ui.md +378 -187
  429. package/docs/references/interaction-design.md +6 -5
  430. package/docs/references/spatial-design.md +8 -8
  431. package/docs/references/types.md +22 -25
  432. package/package.json +43 -73
  433. package/dist/components/ai/_internal/icons.d.mts +0 -6
  434. package/dist/components/ai/_internal/icons.mjs +0 -13
  435. package/dist/components/form/date-field/date-field.css +0 -31
  436. package/dist/components/form/date-field/date-field.d.mts +0 -7
  437. package/dist/components/form/date-field/date-field.mjs +0 -19
  438. package/dist/components/form/date-field/date-field.module.mjs +0 -4
  439. package/dist/components/form/date-field/index.d.mts +0 -2
  440. package/dist/components/form/date-field/index.mjs +0 -1
  441. package/dist/components/icons/browsers.d.mts +0 -6
  442. package/dist/components/icons/browsers.mjs +0 -890
  443. package/dist/components/icons/github-mark.mjs +0 -18
  444. package/dist/components/icons/logo.css +0 -17
  445. package/dist/components/icons/logo.d.mts +0 -4
  446. package/dist/components/icons/logo.mjs +0 -29
  447. package/dist/components/icons/logo.module.mjs +0 -8
  448. package/dist/components/icons/lucide-imports.d.mts +0 -67
  449. package/dist/components/icons/lucide-imports.mjs +0 -67
  450. package/dist/components/icons/lucide.d.mts +0 -67
  451. package/dist/components/icons/lucide.mjs +0 -255
  452. package/dist/components/icons/qiita.mjs +0 -27
  453. package/dist/components/icons/twitter.css +0 -9
  454. package/dist/components/icons/twitter.mjs +0 -20
  455. package/dist/components/icons/twitter.module.mjs +0 -4
  456. package/dist/components/icons/vertical-writing.mjs +0 -25
  457. package/dist/components/observers/in-view/index.d.mts +0 -2
  458. package/dist/components/observers/in-view/index.mjs +0 -1
  459. package/dist/components/observers/resize/index.d.mts +0 -2
  460. package/dist/components/observers/resize/index.mjs +0 -1
  461. package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
  462. package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
  463. package/dist/components/providers/index.d.mts +0 -3
  464. package/dist/components/providers/index.mjs +0 -3
  465. package/dist/components/providers/portal-root.d.mts +0 -8
  466. package/dist/components/providers/portal-root.mjs +0 -11
  467. package/dist/components/providers/ui-provider.d.mts +0 -2
  468. package/dist/components/providers/ui-provider.mjs +0 -6
  469. package/dist/integrations/_shared/openui-defs.d.mts +0 -15
  470. package/dist/integrations/_shared/openui-defs.mjs +0 -230
  471. package/dist/integrations/_shared/renderers.css +0 -50
  472. package/dist/integrations/_shared/renderers.d.mts +0 -88
  473. package/dist/integrations/_shared/renderers.mjs +0 -936
  474. package/dist/integrations/_shared/renderers.module.mjs +0 -13
  475. package/dist/integrations/ai-sdk/index.d.mts +0 -3
  476. package/dist/integrations/ai-sdk/index.mjs +0 -1
  477. package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
  478. package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
  479. package/dist/integrations/json-render/catalog.d.mts +0 -1155
  480. package/dist/integrations/json-render/catalog.mjs +0 -373
  481. package/dist/integrations/json-render/registry.d.mts +0 -26
  482. package/dist/integrations/json-render/registry.mjs +0 -192
  483. package/dist/integrations/openui/form-views.d.mts +0 -24
  484. package/dist/integrations/openui/form-views.mjs +0 -89
  485. package/dist/integrations/openui/library.d.mts +0 -202
  486. package/dist/integrations/openui/library.mjs +0 -83
  487. package/dist/integrations/openui/prompt.d.mts +0 -2
  488. package/dist/integrations/openui/prompt.mjs +0 -18
  489. /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
  490. /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
  491. /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
@@ -1,25 +0,0 @@
1
- import { BaseIcon } from "./base.mjs";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- // src/components/icons/vertical-writing.tsx
4
- const VerticalWriting = ({ className, ...rest }) => /* @__PURE__ */ jsxs("svg", {
5
- className,
6
- ...rest,
7
- fill: "none",
8
- stroke: "currentColor",
9
- strokeLinecap: "round",
10
- strokeLinejoin: "round",
11
- strokeWidth: "2",
12
- viewBox: "0 0 24 24",
13
- xmlns: "http://www.w3.org/2000/svg",
14
- children: [
15
- /* @__PURE__ */ jsx("path", { d: "M12 7v14" }),
16
- /* @__PURE__ */ jsx("path", { d: "M17 8v4" }),
17
- /* @__PURE__ */ jsx("path", { d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" }),
18
- /* @__PURE__ */ jsx("path", { d: "M7 8v4" })
19
- ]
20
- });
21
- const VerticalWritingIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(BaseIcon, {
22
- renderItem: (props) => /* @__PURE__ */ jsx(VerticalWriting, { ...props }),
23
- size
24
- });
25
- export { VerticalWritingIcon };
@@ -1,2 +0,0 @@
1
- import { InView } from "./in-view.mjs";
2
- export { InView };
@@ -1 +0,0 @@
1
- export { InView } from "./in-view.mjs";
@@ -1,2 +0,0 @@
1
- import { Resize } from "./resize.mjs";
2
- export { Resize };
@@ -1 +0,0 @@
1
- export { Resize } from "./resize.mjs";
@@ -1,11 +0,0 @@
1
- export type ModalDialogContextValue = {
2
- registerLabelledBy: (id: string | undefined) => void;
3
- registerDescribedBy: (id: string | undefined) => void;
4
- };
5
- export declare const ModalDialogProvider: import("react").Context<ModalDialogContextValue | null>;
6
- /**
7
- * Modal(ネイティブ `<dialog>`)配下かどうか。配下なら値が返り、単体利用では null。
8
- * createSafeContext を使わないのは、Popover 内・単体でも動く Dialog.Root から
9
- * 「Modal 配下ではない」を例外なしで判定するため。
10
- */
11
- export declare const useModalDialogContext: () => ModalDialogContextValue | null;
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { createContext, use } from "react";
3
- // src/components/overlays/_internal/modal-dialog-context.ts
4
- const ModalDialogContext = createContext(null);
5
- const ModalDialogProvider = ModalDialogContext;
6
- /**
7
- * Modal(ネイティブ `<dialog>`)配下かどうか。配下なら値が返り、単体利用では null。
8
- * createSafeContext を使わないのは、Popover 内・単体でも動く Dialog.Root から
9
- * 「Modal 配下ではない」を例外なしで判定するため。
10
- */
11
- const useModalDialogContext = () => use(ModalDialogContext);
12
- export { ModalDialogProvider, useModalDialogContext };
@@ -1,3 +0,0 @@
1
- import { UIProvider } from "./ui-provider.mjs";
2
- import { PortalRootProvider, usePortalRoot } from "./portal-root.mjs";
3
- export { PortalRootProvider, UIProvider, usePortalRoot };
@@ -1,3 +0,0 @@
1
- import { UIProvider } from "./ui-provider.mjs";
2
- import { PortalRootProvider, usePortalRoot } from "./portal-root.mjs";
3
- export { PortalRootProvider, UIProvider, usePortalRoot };
@@ -1,8 +0,0 @@
1
- import { RefObject } from "react";
2
- /**
3
- * Where floating UI portals to. The Context is the provider — React 19's
4
- * spelling, `<PortalRootProvider value={ref}>` — so there is no wrapper
5
- * component to keep in step with it.
6
- */
7
- export declare const PortalRootProvider: import("react").Context<RefObject<HTMLElement | null> | undefined>;
8
- export declare const usePortalRoot: () => RefObject<HTMLElement | null> | undefined;
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { createContext, use } from "react";
3
- // src/components/providers/portal-root.tsx
4
- /**
5
- * Where floating UI portals to. The Context is the provider — React 19's
6
- * spelling, `<PortalRootProvider value={ref}>` — so there is no wrapper
7
- * component to keep in step with it.
8
- */
9
- const PortalRootProvider = createContext(void 0);
10
- const usePortalRoot = () => use(PortalRootProvider);
11
- export { PortalRootProvider, usePortalRoot };
@@ -1,2 +0,0 @@
1
- import { FC, PropsWithChildren } from "react";
2
- export declare const UIProvider: FC<PropsWithChildren>;
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { ToastProvider } from "../feedback/toast/provider.mjs";
3
- import { jsx } from "react/jsx-runtime";
4
- // src/components/providers/ui-provider.tsx
5
- const UIProvider = ({ children }) => /* @__PURE__ */ jsx(ToastProvider, { children });
6
- export { UIProvider };
@@ -1,15 +0,0 @@
1
- import { Library } from "@openuidev/lang-core";
2
- /**
3
- * OpenUI ライブラリの「定義部分」(スキーマ・説明文・子要素の構成)を
4
- * React 非依存で組み立てる共有ファクトリ。
5
- *
6
- * 描画関数(`component`)だけを外から差し込むことで、
7
- * - クライアント(`openui/library.tsx`・'use client')= 実 React 描画関数を渡す
8
- * - サーバー安全(`openui/prompt.ts`)= 何も渡さず `prompt()` だけ使う
9
- * の 2 つを **スキーマを二重管理せずに** 生成できる。
10
- *
11
- * OpenUI は schema と描画関数を `defineComponent` で同居させる設計なので、
12
- * このファクトリ自体は描画関数を opaque な `C` として受け取り中身を見ない。
13
- */
14
- export type ComponentRenderers<C> = Partial<Record<string, C>>;
15
- export declare const buildComponentLibrary: <C>(render: ComponentRenderers<C>) => Library<C>;
@@ -1,230 +0,0 @@
1
- import { accordionProps, alertProps, anchorProps, autocompleteProps, avatarProps, badgeProps, breadcrumbProps, buttonProps, calendarProps, calloutProps, cardProps, carouselProps, checkboxCardProps, checkboxGroupProps, checkboxProps, chevronIconProps, codeProps, colorPickerProps, comboboxProps, copyButtonProps, dataTableProps, dateFieldProps, datePickerProps, dialogProps, drawerProps, dropdownMenuProps, emptyStateProps, fileFieldProps, formControlProps, formProps, gridProps, headingProps, iconButtonProps, iconProps, kbdProps, listBoxProps, modalProps, numberFieldProps, paginationProps, passwordInputProps, popoverProps, progressProps, radioCardProps, radioProps, rangeSliderProps, selectProps, separatorProps, sideNavProps, skeletonProps, sliderProps, spinnerProps, stackProps, statusIconProps, stepperProps, switchProps, tableProps, tabsProps, textFieldProps, textareaProps, toastProps, toolbarProps, tooltipProps, treeProps } from "./schemas.mjs";
2
- import { createLibrary, defineComponent } from "@openuidev/lang-core";
3
- import { z } from "zod";
4
- // src/integrations/_shared/openui-defs.ts
5
- const buildComponentLibrary = (render) => {
6
- const def = (name, description, props) => defineComponent({
7
- name,
8
- description,
9
- props,
10
- component: render[name]
11
- });
12
- const Button = def("Button", "Action button. With href it renders as a link (<a>).", buttonProps);
13
- const IconButton = def("IconButton", "Icon-only button (label is required).", iconButtonProps);
14
- const CopyButton = def("CopyButton", "Button that copies value to the clipboard and confirms it.", copyButtonProps);
15
- const Badge = def("Badge", "Badge for a status or a label.", badgeProps);
16
- const Heading = def("Heading", "Heading (h1 to h6).", headingProps);
17
- const Anchor = def("Anchor", "Text link.", anchorProps);
18
- const Avatar = def("Avatar", "Avatar (an image or initials).", avatarProps);
19
- const Code = def("Code", "Inline code or value.", codeProps);
20
- const Kbd = def("Kbd", "Keyboard shortcut. keys lists the keys pressed together, and each is drawn as its own key cap.", kbdProps);
21
- const EmptyState = def("EmptyState", "Placeholder for a list, table, or search with nothing to show: a title, an optional description, and an optional icon.", emptyStateProps);
22
- const Icon = def("Icon", "Icon, chosen by name.", iconProps);
23
- const ChevronIcon = def("ChevronIcon", "Arrow icon. direction sets which way it points.", chevronIconProps);
24
- const StatusIcon = def("StatusIcon", "Icon for a status (success/info/warning/error). It is decorative; to show a message, use Alert.", statusIconProps);
25
- const Alert = def("Alert", "Alert that reports a status. message is a string or an array of strings.", alertProps);
26
- const Callout = def("Callout", "Note inside the content (a tip, a caveat). Unlike Alert, it is not announced as a status. content is plain text; label is an optional bold line above it.", calloutProps);
27
- const Spinner = def("Spinner", "Loading spinner.", spinnerProps);
28
- const Progress = def("Progress", "Progress bar. Leave value out when progress is unknown; it then shows an animated bar.", progressProps);
29
- const Skeleton = def("Skeleton", "Loading placeholder.", skeletonProps);
30
- const Separator = def("Separator", "Divider line.", separatorProps);
31
- const Tabs = def("Tabs", "Tabs. Each tab has a label and text content; content must be a plain string.", tabsProps);
32
- const Accordion = def("Accordion", "Accordion of items that open and close. Each item has a title and text content; content must be a plain string.", accordionProps);
33
- const Stepper = def("Stepper", "Steps of a process in order, marking the ones done and the current one (display only).", stepperProps);
34
- const Breadcrumb = def("Breadcrumb", "Breadcrumb trail.", breadcrumbProps);
35
- const SideNav = def("SideNav", "Side navigation: groups of links, each group under a small title. Mark the page being shown with current: true.", sideNavProps);
36
- const Table = def("Table", "Table with columns and rows (the cell strings of each row). Every row must have exactly as many cells as there are columns.", tableProps);
37
- const DataTable = def("DataTable", "Table the reader can sort (by the columns marked sortable) and, with selectable, pick rows from. Every row must have exactly as many cells as there are columns.", dataTableProps);
38
- const Tree = def("Tree", "Tree of nodes that open and close, such as files and folders, navigable with the arrow keys. List every node flat; a child names its parent by parentId.", treeProps);
39
- const TextField = def("TextField", "Single-line text input, bound to form state by name.", textFieldProps);
40
- const Textarea = def("Textarea", "Multi-line text input, bound to form state by name.", textareaProps);
41
- const PasswordInput = def("PasswordInput", "Password input, bound to form state by name.", passwordInputProps);
42
- const NumberField = def("NumberField", "Number input, bound to form state by name.", numberFieldProps);
43
- const Slider = def("Slider", "Slider, bound to form state by name.", sliderProps);
44
- const RangeSlider = def("RangeSlider", "Slider with two thumbs for picking a range, bound to form state by name as [lower, upper].", rangeSliderProps);
45
- const ColorPicker = def("ColorPicker", "Color input with a visible label (#rrggbb), hue / saturation / lightness sliders, and optional preset swatches, bound to form state by name.", colorPickerProps);
46
- const DateField = def("DateField", "Date input with a visible label (YYYY-MM-DD), bound to form state by name.", dateFieldProps);
47
- const DatePicker = def("DatePicker", "Date input with a visible label and a calendar popover (YYYY-MM-DD), bound to form state by name.", datePickerProps);
48
- const Calendar = def("Calendar", "Month calendar shown inline for picking one day (YYYY-MM-DD), bound to state by name. It submits nothing; in a form, use DatePicker.", calendarProps);
49
- const Checkbox = def("Checkbox", "Checkbox, bound to form state by name.", checkboxProps);
50
- const Switch = def("Switch", "On/off switch, bound to form state by name.", switchProps);
51
- const Select = def("Select", "Dropdown select, bound to form state by name.", selectProps);
52
- const Radio = def("Radio", "Radio buttons for a single choice, bound to form state by name.", radioProps);
53
- const RadioCard = def("RadioCard", "Single choice presented as cards, bound to form state by name.", radioCardProps);
54
- const CheckboxCard = def("CheckboxCard", "Multiple choice presented as cards, bound to form state by name.", checkboxCardProps);
55
- const Pagination = def("Pagination", "Pagination, bound to form state by name.", paginationProps);
56
- const Tooltip = def("Tooltip", "Tooltip shown on hover or focus.", tooltipProps);
57
- const Toolbar = def("Toolbar", "Row (or column) of buttons that arrow keys move between, e.g. formatting actions. Give each item an icon to show only the icon.", toolbarProps);
58
- const DropdownMenu = def("DropdownMenu", "Dropdown menu.", dropdownMenuProps);
59
- const Toast = def("Toast", "Toast notification that a button labeled triggerLabel shows.", toastProps);
60
- const ListBox = def("ListBox", "Single-choice list in a popup.", listBoxProps);
61
- const CheckboxGroup = def("CheckboxGroup", "Group of checkboxes, bound to form state by name.", checkboxGroupProps);
62
- const Combobox = def("Combobox", "Text field with a visible label that filters options as you type, for picking one, bound to form state by name. Prefer it to ListBox when there are many options.", comboboxProps);
63
- const Autocomplete = def("Autocomplete", "Tag-style autocomplete for multiple choices.", autocompleteProps);
64
- const FileField = def("FileField", "File picker field (a self-contained widget). With dropzone, files can also be dropped onto it.", fileFieldProps);
65
- const FormControl = def("FormControl", "Field with a label and help or error text (text/textarea/password).", formControlProps);
66
- const childRefs = [
67
- Button.ref,
68
- IconButton.ref,
69
- CopyButton.ref,
70
- Badge.ref,
71
- Heading.ref,
72
- Anchor.ref,
73
- Avatar.ref,
74
- Code.ref,
75
- Kbd.ref,
76
- EmptyState.ref,
77
- Icon.ref,
78
- ChevronIcon.ref,
79
- StatusIcon.ref,
80
- Alert.ref,
81
- Callout.ref,
82
- Spinner.ref,
83
- Progress.ref,
84
- Skeleton.ref,
85
- Separator.ref,
86
- Tabs.ref,
87
- Accordion.ref,
88
- Breadcrumb.ref,
89
- Stepper.ref,
90
- SideNav.ref,
91
- Table.ref,
92
- DataTable.ref,
93
- Tree.ref,
94
- TextField.ref,
95
- Textarea.ref,
96
- PasswordInput.ref,
97
- NumberField.ref,
98
- Slider.ref,
99
- RangeSlider.ref,
100
- DateField.ref,
101
- DatePicker.ref,
102
- Calendar.ref,
103
- ColorPicker.ref,
104
- Checkbox.ref,
105
- Switch.ref,
106
- Select.ref,
107
- Radio.ref,
108
- RadioCard.ref,
109
- CheckboxCard.ref,
110
- Pagination.ref,
111
- Tooltip.ref,
112
- DropdownMenu.ref,
113
- Toolbar.ref,
114
- Toast.ref,
115
- ListBox.ref,
116
- CheckboxGroup.ref,
117
- Combobox.ref,
118
- Autocomplete.ref,
119
- FileField.ref,
120
- FormControl.ref
121
- ];
122
- const containerChildren = (description) => z.array(z.union([
123
- ...childRefs,
124
- Stack.ref,
125
- Grid.ref,
126
- Card.ref,
127
- Form.ref,
128
- Modal.ref,
129
- Dialog.ref,
130
- Drawer.ref,
131
- Popover.ref,
132
- Carousel.ref
133
- ])).describe(description);
134
- const Stack = def("Stack", "Layout container that places its children in a row or a column with even spacing.", stackProps.extend({ get children() {
135
- return containerChildren("Children to lay out");
136
- } }));
137
- const Grid = def("Grid", "Places its children in a grid. Set cols (1 to 6, auto-fill, or auto-fit) and gap; with auto-fill or auto-fit, minItemSize sets the smallest size of each cell.", gridProps.extend({ get children() {
138
- return containerChildren("Children of the grid");
139
- } }));
140
- const Card = def("Card", "Card that groups content (a container). interactive makes it scale up on hover.", cardProps.extend({ get children() {
141
- return containerChildren("Children of the card");
142
- } }));
143
- const Form = def("Form", "Wrapper for form elements (a vertical layout).", formProps.extend({ get children() {
144
- return containerChildren("Elements in the form");
145
- } }));
146
- const Modal = def("Modal", "Modal dialog that opens from a button labeled triggerLabel.", modalProps.extend({ get children() {
147
- return containerChildren("Elements in the modal");
148
- } }));
149
- const Dialog = def("Dialog", "Centered dialog that opens from a button labeled triggerLabel.", dialogProps.extend({ get children() {
150
- return containerChildren("Elements in the dialog");
151
- } }));
152
- const Drawer = def("Drawer", "Side drawer that opens from a button labeled triggerLabel.", drawerProps.extend({ get children() {
153
- return containerChildren("Elements in the drawer");
154
- } }));
155
- const Popover = def("Popover", "Popover that a button labeled triggerLabel opens and closes.", popoverProps.extend({ get children() {
156
- return containerChildren("Elements in the popover");
157
- } }));
158
- const Carousel = def("Carousel", "Horizontally scrolling carousel with previous and next buttons. Each child is one slide. slideSize sets how much of the track one slide takes (full, lg, md for two, sm for three).", carouselProps.extend({ get children() {
159
- return containerChildren("Slides, one child per slide");
160
- } }));
161
- return createLibrary({
162
- components: [
163
- Stack,
164
- Grid,
165
- Card,
166
- Form,
167
- Modal,
168
- Dialog,
169
- Drawer,
170
- Popover,
171
- Carousel,
172
- Tooltip,
173
- DropdownMenu,
174
- Toolbar,
175
- Toast,
176
- Button,
177
- IconButton,
178
- CopyButton,
179
- Badge,
180
- Heading,
181
- Anchor,
182
- Avatar,
183
- Code,
184
- Kbd,
185
- EmptyState,
186
- Icon,
187
- ChevronIcon,
188
- StatusIcon,
189
- Alert,
190
- Callout,
191
- Spinner,
192
- Progress,
193
- Skeleton,
194
- Separator,
195
- Tabs,
196
- Accordion,
197
- Breadcrumb,
198
- Stepper,
199
- SideNav,
200
- Table,
201
- DataTable,
202
- Tree,
203
- TextField,
204
- Textarea,
205
- PasswordInput,
206
- NumberField,
207
- Slider,
208
- RangeSlider,
209
- DateField,
210
- DatePicker,
211
- Calendar,
212
- ColorPicker,
213
- Checkbox,
214
- Switch,
215
- Select,
216
- Radio,
217
- RadioCard,
218
- CheckboxCard,
219
- Pagination,
220
- ListBox,
221
- CheckboxGroup,
222
- Combobox,
223
- Autocomplete,
224
- FileField,
225
- FormControl
226
- ],
227
- root: "Stack"
228
- });
229
- };
230
- export { buildComponentLibrary };
@@ -1,50 +0,0 @@
1
- @layer properties, theme, base;
2
-
3
- @layer components {
4
- ._6aBdoW_cardSm {
5
- padding: calc(var(--spacing) * 4);
6
- }
7
-
8
- ._6aBdoW_cardMd {
9
- padding: calc(var(--spacing) * 6);
10
- }
11
-
12
- ._6aBdoW_cardLg {
13
- padding: calc(var(--spacing) * 8);
14
- }
15
-
16
- ._6aBdoW_field {
17
- gap: calc(var(--spacing) * 1);
18
- flex-direction: column;
19
- display: flex;
20
- }
21
-
22
- ._6aBdoW_fieldLabel {
23
- color: var(--color-fg-base);
24
- font-size: var(--font-size-sm);
25
- font-weight: var(--font-weight-medium);
26
- line-height: var(--line-height-sm);
27
- }
28
-
29
- ._6aBdoW_keys {
30
- align-items: center;
31
- gap: calc(var(--spacing) * 1);
32
- display: inline-flex;
33
- }
34
-
35
- ._6aBdoW_popover {
36
- padding: calc(var(--spacing) * 4);
37
- border-radius: var(--radius-lg);
38
- background-color: var(--color-bg-raised);
39
- color: var(--color-fg-base);
40
- box-shadow: var(--shadow-md);
41
- }
42
-
43
- ._6aBdoW_dropHint {
44
- color: var(--color-fg-mute);
45
- font-size: var(--font-size-sm);
46
- line-height: var(--line-height-sm);
47
- }
48
- }
49
-
50
- @layer utilities;
@@ -1,88 +0,0 @@
1
- import { TreeItem } from "../../components/data-display/tree/tree.mjs";
2
- import "../../components/data-display/tree/index.mjs";
3
- import { AccordionProps, AlertProps, AnchorProps, AutocompleteProps, AvatarProps, BadgeProps, BreadcrumbProps, ButtonProps, CalendarProps, CalloutProps, CardProps, CarouselProps, CheckboxCardProps, CheckboxGroupProps, CheckboxProps, ChevronIconProps, CodeProps, ColorPickerProps, ComboboxProps, CopyButtonProps, DataTableProps, DateFieldProps, DatePickerProps, DialogProps, DrawerProps, DropdownMenuProps, EmptyStateProps, FileFieldProps, FormControlProps, FormProps, GridProps, HeadingProps, IconButtonProps, IconProps, KbdProps, ListBoxProps, ModalProps, NumberFieldProps, PaginationProps, PasswordInputProps, PopoverProps, ProgressProps, RadioCardProps, RadioProps, RangeSliderProps, SelectProps, SeparatorProps, SideNavProps, SkeletonProps, SliderProps, SpinnerProps, StackProps, StatusIconProps, StepperProps, SwitchProps, TableProps, TabsProps, TextFieldProps, TextareaProps, ToastProps, ToolbarProps, TooltipProps, TreeProps } from "./schemas.mjs";
4
- import { FC, ReactNode } from "react";
5
- export declare function renderButton(props: ButtonProps): ReactNode;
6
- export declare function renderBadge(props: BadgeProps): ReactNode;
7
- export declare function renderHeading(props: HeadingProps): ReactNode;
8
- export declare function renderAlert(props: AlertProps): ReactNode;
9
- export declare function renderCallout(props: CalloutProps): ReactNode;
10
- export declare function renderSpinner(props: SpinnerProps): ReactNode;
11
- export declare function renderSeparator(props: SeparatorProps): ReactNode;
12
- export declare function renderCard(props: CardProps, children: ReactNode): ReactNode;
13
- export declare const TabsView: FC<{
14
- props: TabsProps;
15
- }>;
16
- export declare function renderTabs(props: TabsProps): ReactNode;
17
- export declare function renderStack(props: StackProps, children: ReactNode): ReactNode;
18
- export declare function renderGrid(props: GridProps, children: ReactNode): ReactNode;
19
- export declare function renderTextField(props: TextFieldProps, value: string, onChange: (next: string) => void): ReactNode;
20
- export declare function renderCheckbox(props: CheckboxProps, checked: boolean, onChange: (next: boolean) => void): ReactNode;
21
- export declare function renderSwitch(props: SwitchProps, checked: boolean, onChange: (next: boolean) => void): ReactNode;
22
- export declare function renderSelect(props: SelectProps, value: string, onChange: (next: string) => void): ReactNode;
23
- export declare function renderTextarea(props: TextareaProps, value: string, onChange: (next: string) => void): ReactNode;
24
- export declare function renderPasswordInput(props: PasswordInputProps, value: string, onChange: (next: string) => void): ReactNode;
25
- export declare function renderNumberField(props: NumberFieldProps, value: number | null, onChange: (next: number | null) => void): ReactNode;
26
- export declare function renderSlider(props: SliderProps, value: number, onChange: (next: number) => void): ReactNode;
27
- export declare function renderRangeSlider(props: RangeSliderProps, value: readonly [number, number], onChange: (next: readonly [number, number]) => void): ReactNode;
28
- export declare function renderColorPicker(props: ColorPickerProps, value: string, onChange: (next: string) => void): ReactNode;
29
- export declare function renderDateField(props: DateFieldProps, value: string, onChange: (next: string) => void): ReactNode;
30
- export declare function renderDatePicker(props: DatePickerProps, value: string, onChange: (next: string) => void): ReactNode;
31
- export declare function renderCalendar(props: CalendarProps, value: string, onChange: (next: string) => void): ReactNode;
32
- export declare function renderRadio(props: RadioProps, value: string, onChange: (next: string) => void): ReactNode;
33
- export declare function renderRadioCard(props: RadioCardProps, value: string, onChange: (next: string) => void): ReactNode;
34
- export declare function renderCheckboxCard(props: CheckboxCardProps, value: string[], onChange: (next: string[]) => void): ReactNode;
35
- export declare function renderPagination(props: PaginationProps, currentPage: number, onChange: (next: number) => void): ReactNode;
36
- export declare function renderIcon(props: IconProps): ReactNode;
37
- export declare function renderChevronIcon(props: ChevronIconProps): ReactNode;
38
- export declare function renderStatusIcon(props: StatusIconProps): ReactNode;
39
- export declare function renderIconButton(props: IconButtonProps): ReactNode;
40
- export declare function renderCopyButton(props: CopyButtonProps): ReactNode;
41
- export declare function renderAnchor(props: AnchorProps): ReactNode;
42
- export declare function renderAvatar(props: AvatarProps): ReactNode;
43
- export declare function renderCode(props: CodeProps): ReactNode;
44
- export declare function renderKbd(props: KbdProps): ReactNode;
45
- export declare function renderEmptyState(props: EmptyStateProps): ReactNode;
46
- export declare function renderCarousel(props: CarouselProps, slides: readonly ReactNode[]): ReactNode;
47
- export declare function renderProgress(props: ProgressProps): ReactNode;
48
- export declare function renderSkeleton(props: SkeletonProps): ReactNode;
49
- export declare function renderAccordion(props: AccordionProps): ReactNode;
50
- export declare function renderBreadcrumb(props: BreadcrumbProps): ReactNode;
51
- export declare function renderStepper(props: StepperProps): ReactNode;
52
- export declare const toTree: (items: TreeProps['items']) => TreeItem[];
53
- export declare function renderTree(props: TreeProps): ReactNode;
54
- export declare function renderSideNav(props: SideNavProps): ReactNode;
55
- export declare function renderTable(props: TableProps): ReactNode;
56
- export declare function renderForm(props: FormProps, children: ReactNode): ReactNode;
57
- export declare const ModalWidget: FC<{
58
- props: ModalProps;
59
- children: ReactNode;
60
- }>;
61
- export declare const DialogWidget: FC<{
62
- props: DialogProps;
63
- children: ReactNode;
64
- }>;
65
- export declare const DrawerWidget: FC<{
66
- props: DrawerProps;
67
- children: ReactNode;
68
- }>;
69
- export declare function renderPopover(props: PopoverProps, children: ReactNode): ReactNode;
70
- export declare function renderTooltip(props: TooltipProps): ReactNode;
71
- export declare function renderToolbar(props: ToolbarProps): ReactNode;
72
- export declare function renderDropdownMenu(props: DropdownMenuProps): ReactNode;
73
- export declare const DataTableWidget: FC<{
74
- props: DataTableProps;
75
- }>;
76
- export declare const ToastWidget: FC<{
77
- props: ToastProps;
78
- }>;
79
- export declare function renderListBox(props: ListBoxProps, value: string, onChange: (next: string) => void): ReactNode;
80
- export declare function renderCheckboxGroup(props: CheckboxGroupProps, value: string[], onChange: (next: string[]) => void): ReactNode;
81
- export declare function renderAutocomplete(props: AutocompleteProps, value: string[], onChange: (next: string[]) => void): ReactNode;
82
- export declare function renderCombobox(props: ComboboxProps, value: string, onChange: (next: string) => void): ReactNode;
83
- export declare const FileFieldWidget: FC<{
84
- props: FileFieldProps;
85
- }>;
86
- export declare const FormControlWidget: FC<{
87
- props: FormControlProps;
88
- }>;