@k8ordo/ui 3.0.0 → 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 (264) hide show
  1. package/README.md +73 -182
  2. package/dist/{integrations/_shared → catalog}/icon-map.d.mts +4 -2
  3. package/dist/catalog/icon-map.mjs +212 -0
  4. package/dist/catalog/icon-names.d.mts +1 -0
  5. package/dist/{integrations/_shared → catalog}/icon-names.mjs +3 -1
  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 +120 -132
  13. package/dist/{integrations/_shared → catalog}/schemas.mjs +189 -131
  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 +1 -1
  27. package/dist/components/ai/_internal/collapsible.mjs +1 -1
  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 +9 -9
  35. package/dist/components/ai/prompt-input/prompt-input.mjs +4 -4
  36. package/dist/components/ai/source/index.d.mts +2 -2
  37. package/dist/components/ai/source/source.d.mts +2 -2
  38. package/dist/components/ai/source/source.mjs +1 -1
  39. package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
  40. package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
  41. package/dist/components/buttons/button/button.css +1 -1
  42. package/dist/components/buttons/button/button.d.mts +34 -37
  43. package/dist/components/buttons/button/button.mjs +37 -24
  44. package/dist/components/buttons/button/button.module.mjs +0 -1
  45. package/dist/components/buttons/button/index.d.mts +2 -2
  46. package/dist/components/buttons/copy-button/copy-button.mjs +4 -4
  47. package/dist/components/buttons/icon-button/icon-button.css +3 -3
  48. package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
  49. package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
  50. package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
  51. package/dist/components/buttons/icon-button/index.d.mts +2 -2
  52. package/dist/components/buttons/toolbar/toolbar.css +5 -1
  53. package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
  54. package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
  55. package/dist/components/data-display/accordion/accordion-button.mjs +4 -4
  56. package/dist/components/data-display/accordion/index.d.mts +3 -3
  57. package/dist/components/data-display/card/card-action.d.mts +6 -0
  58. package/dist/components/data-display/card/card-action.mjs +21 -0
  59. package/dist/components/data-display/card/card.css +24 -0
  60. package/dist/components/data-display/card/card.d.mts +26 -3
  61. package/dist/components/data-display/card/card.mjs +46 -6
  62. package/dist/components/data-display/card/card.module.mjs +4 -1
  63. package/dist/components/data-display/card/index.d.mts +2 -2
  64. package/dist/components/data-display/carousel/carousel.mjs +2 -2
  65. package/dist/components/data-display/code/code.css +4 -0
  66. package/dist/components/data-display/code-block/code-block.mjs +1 -1
  67. package/dist/components/data-display/data-table/data-table.css +0 -3
  68. package/dist/components/data-display/data-table/data-table.mjs +25 -26
  69. package/dist/components/data-display/tree/tree.d.mts +1 -1
  70. package/dist/components/data-display/tree/tree.mjs +6 -5
  71. package/dist/components/feedback/alert/alert.d.mts +2 -7
  72. package/dist/components/feedback/alert/alert.mjs +11 -11
  73. package/dist/components/feedback/alert/index.d.mts +2 -2
  74. package/dist/components/feedback/callout/callout.mjs +2 -2
  75. package/dist/components/feedback/progress/progress.mjs +1 -1
  76. package/dist/components/feedback/toast/context.d.mts +4 -5
  77. package/dist/components/feedback/toast/index.d.mts +2 -2
  78. package/dist/components/feedback/toast/provider.d.mts +7 -2
  79. package/dist/components/feedback/toast/provider.mjs +7 -2
  80. package/dist/components/feedback/toast/toast.d.mts +2 -3
  81. package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
  82. package/dist/components/form/autocomplete/autocomplete.mjs +12 -9
  83. package/dist/components/form/calendar/calendar.mjs +3 -5
  84. package/dist/components/form/checkbox/checkbox.d.mts +3 -1
  85. package/dist/components/form/checkbox/checkbox.mjs +44 -45
  86. package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
  87. package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
  88. package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
  89. package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
  90. package/dist/components/form/checkbox-group/index.d.mts +2 -34
  91. package/dist/components/form/checkbox-group/index.mjs +1 -8
  92. package/dist/components/form/color-picker/color-picker.css +3 -5
  93. package/dist/components/form/color-picker/color-picker.d.mts +0 -1
  94. package/dist/components/form/color-picker/color-picker.mjs +4 -4
  95. package/dist/components/form/combobox/combobox.d.mts +0 -1
  96. package/dist/components/form/combobox/combobox.mjs +9 -8
  97. package/dist/components/form/date-picker/date-picker.css +0 -5
  98. package/dist/components/form/date-picker/date-picker.mjs +21 -22
  99. package/dist/components/form/file-field/file-field.d.mts +6 -3
  100. package/dist/components/form/file-field/file-field.mjs +41 -18
  101. package/dist/components/form/file-field/index.d.mts +4 -1
  102. package/dist/components/form/form/form.mjs +0 -1
  103. package/dist/components/form/form-control/form-control.css +0 -15
  104. package/dist/components/form/form-control/form-control.d.mts +3 -4
  105. package/dist/components/form/form-control/form-control.mjs +44 -46
  106. package/dist/components/form/form-control/form-control.module.mjs +0 -3
  107. package/dist/components/form/number-field/number-field.d.mts +2 -2
  108. package/dist/components/form/number-field/number-field.mjs +13 -52
  109. package/dist/components/form/password-input/password-input.mjs +1 -1
  110. package/dist/components/form/radio/radio.mjs +4 -2
  111. package/dist/components/form/radio-card/radio-card.mjs +9 -2
  112. package/dist/components/form/range-slider/range-slider.d.mts +4 -2
  113. package/dist/components/form/range-slider/range-slider.mjs +2 -4
  114. package/dist/components/form/select/select.css +6 -4
  115. package/dist/components/form/select/select.d.mts +5 -0
  116. package/dist/components/form/select/select.mjs +10 -7
  117. package/dist/components/form/slider/slider.d.mts +2 -2
  118. package/dist/components/form/slider/slider.mjs +3 -6
  119. package/dist/components/form/switch/switch.d.mts +3 -0
  120. package/dist/components/form/switch/switch.mjs +43 -31
  121. package/dist/components/form/text-field/index.d.mts +2 -2
  122. package/dist/components/form/text-field/text-field.css +4 -0
  123. package/dist/components/form/text-field/text-field.d.mts +1 -1
  124. package/dist/components/form/textarea/textarea.d.mts +0 -1
  125. package/dist/components/form/textarea/textarea.mjs +1 -1
  126. package/dist/components/icons/base.d.mts +0 -1
  127. package/dist/components/icons/base.mjs +1 -2
  128. package/dist/components/icons/clipboard-check.d.mts +3 -0
  129. package/dist/components/icons/clipboard-check.mjs +18 -0
  130. package/dist/components/icons/git-pull-request.d.mts +3 -0
  131. package/dist/components/icons/git-pull-request.mjs +20 -0
  132. package/dist/components/icons/index.d.mts +9 -7
  133. package/dist/components/icons/index.mjs +30 -28
  134. package/dist/components/index.d.mts +58 -66
  135. package/dist/components/index.mjs +13 -19
  136. package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
  137. package/dist/components/navigation/anchor/anchor.css +3 -3
  138. package/dist/components/navigation/anchor/anchor.mjs +20 -7
  139. package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
  140. package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
  141. package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
  142. package/dist/components/navigation/pagination/pagination.d.mts +2 -2
  143. package/dist/components/navigation/pagination/pagination.mjs +2 -2
  144. package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
  145. package/dist/components/navigation/stepper/stepper.mjs +3 -3
  146. package/dist/components/navigation/tabs/index.d.mts +10 -5
  147. package/dist/components/navigation/tabs/tabs.d.mts +11 -6
  148. package/dist/components/navigation/tabs/tabs.mjs +24 -27
  149. package/dist/components/overlays/_internal/modal-header.css +38 -0
  150. package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
  151. package/dist/components/overlays/_internal/modal-header.mjs +32 -0
  152. package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
  153. package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
  154. package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
  155. package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
  156. package/dist/components/overlays/context-menu/index.d.mts +27 -2
  157. package/dist/components/overlays/dialog/dialog.css +3 -21
  158. package/dist/components/overlays/dialog/dialog.d.mts +20 -9
  159. package/dist/components/overlays/dialog/dialog.mjs +35 -73
  160. package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
  161. package/dist/components/overlays/dialog/index.d.mts +2 -15
  162. package/dist/components/overlays/dialog/index.mjs +1 -8
  163. package/dist/components/overlays/drawer/drawer.css +4 -26
  164. package/dist/components/overlays/drawer/drawer.d.mts +7 -2
  165. package/dist/components/overlays/drawer/drawer.mjs +24 -37
  166. package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
  167. package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
  168. package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +29 -11
  169. package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
  170. package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
  171. package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
  172. package/dist/components/overlays/dropdown-menu/shared.css +1 -0
  173. package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
  174. package/dist/components/overlays/list-box/hooks.mjs +2 -2
  175. package/dist/components/overlays/list-box/index.d.mts +2 -25
  176. package/dist/components/overlays/list-box/index.mjs +1 -9
  177. package/dist/components/overlays/list-box/list-box.d.mts +11 -16
  178. package/dist/components/overlays/list-box/list-box.mjs +23 -16
  179. package/dist/components/overlays/modal/modal.d.mts +8 -7
  180. package/dist/components/overlays/modal/modal.mjs +23 -32
  181. package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
  182. package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
  183. package/dist/components/overlays/popover/hooks.d.mts +0 -2
  184. package/dist/components/overlays/popover/hooks.mjs +0 -2
  185. package/dist/components/overlays/popover/index.d.mts +19 -2
  186. package/dist/components/overlays/popover/index.mjs +7 -2
  187. package/dist/components/overlays/popover/popover.css +6 -0
  188. package/dist/components/overlays/popover/popover.d.mts +15 -2
  189. package/dist/components/overlays/popover/popover.mjs +28 -13
  190. package/dist/components/overlays/popover/popover.module.mjs +2 -1
  191. package/dist/components/overlays/tooltip/bridge.css +1 -1
  192. package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
  193. package/dist/helpers/index.mjs +1 -1
  194. package/dist/i18n/en.mjs +1 -2
  195. package/dist/i18n/index.d.mts +3 -4
  196. package/dist/i18n/index.mjs +1 -2
  197. package/dist/i18n/ja.mjs +1 -2
  198. package/dist/i18n/messages.d.mts +2 -4
  199. package/dist/i18n/usage.d.mts +2 -1
  200. package/dist/i18n/usage.mjs +3 -3
  201. package/dist/index.d.mts +30 -36
  202. package/dist/index.mjs +4 -10
  203. package/dist/internal/iso-date.mjs +1 -1
  204. package/dist/styles/index.css +79 -225
  205. package/dist/styles/tailwind.css +1 -1
  206. package/dist/styles/tokens.css +281 -0
  207. package/dist/styles/tokens.d.mts +1 -1
  208. package/dist/styles/tokens.mjs +1 -1
  209. package/dist/types/index.d.mts +2 -2
  210. package/dist/types/variables.d.mts +4 -2
  211. package/docs/GUIDE.md +141 -66
  212. package/docs/llms.txt +38 -11
  213. package/docs/props.generated.json +752 -481
  214. package/docs/references/ai-chat.md +87 -39
  215. package/docs/references/color.md +15 -15
  216. package/docs/references/components.md +568 -499
  217. package/docs/references/generative-ui.md +373 -185
  218. package/docs/references/interaction-design.md +6 -5
  219. package/docs/references/spatial-design.md +8 -8
  220. package/docs/references/types.md +22 -25
  221. package/package.json +37 -70
  222. package/dist/components/form/date-field/date-field.css +0 -31
  223. package/dist/components/form/date-field/date-field.d.mts +0 -7
  224. package/dist/components/form/date-field/date-field.mjs +0 -19
  225. package/dist/components/form/date-field/date-field.module.mjs +0 -4
  226. package/dist/components/form/date-field/index.d.mts +0 -2
  227. package/dist/components/form/date-field/index.mjs +0 -1
  228. package/dist/components/observers/in-view/index.d.mts +0 -2
  229. package/dist/components/observers/in-view/index.mjs +0 -1
  230. package/dist/components/observers/resize/index.d.mts +0 -2
  231. package/dist/components/observers/resize/index.mjs +0 -1
  232. package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
  233. package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
  234. package/dist/components/providers/index.d.mts +0 -3
  235. package/dist/components/providers/index.mjs +0 -3
  236. package/dist/components/providers/portal-root.d.mts +0 -8
  237. package/dist/components/providers/portal-root.mjs +0 -11
  238. package/dist/components/providers/ui-provider.d.mts +0 -2
  239. package/dist/components/providers/ui-provider.mjs +0 -6
  240. package/dist/integrations/_shared/icon-map.mjs +0 -208
  241. package/dist/integrations/_shared/icon-names.d.mts +0 -1
  242. package/dist/integrations/_shared/openui-defs.d.mts +0 -15
  243. package/dist/integrations/_shared/openui-defs.mjs +0 -230
  244. package/dist/integrations/_shared/renderers.css +0 -50
  245. package/dist/integrations/_shared/renderers.d.mts +0 -88
  246. package/dist/integrations/_shared/renderers.mjs +0 -880
  247. package/dist/integrations/_shared/renderers.module.mjs +0 -13
  248. package/dist/integrations/ai-sdk/index.d.mts +0 -3
  249. package/dist/integrations/ai-sdk/index.mjs +0 -1
  250. package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
  251. package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
  252. package/dist/integrations/json-render/catalog.d.mts +0 -1359
  253. package/dist/integrations/json-render/catalog.mjs +0 -373
  254. package/dist/integrations/json-render/registry.d.mts +0 -26
  255. package/dist/integrations/json-render/registry.mjs +0 -192
  256. package/dist/integrations/openui/form-views.d.mts +0 -24
  257. package/dist/integrations/openui/form-views.mjs +0 -89
  258. package/dist/integrations/openui/library.d.mts +0 -202
  259. package/dist/integrations/openui/library.mjs +0 -83
  260. package/dist/integrations/openui/prompt.d.mts +0 -2
  261. package/dist/integrations/openui/prompt.mjs +0 -18
  262. /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
  263. /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
  264. /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
package/README.md CHANGED
@@ -1,11 +1,12 @@
1
1
  # @k8ordo/ui
2
2
 
3
3
  React components from [k8ordo](https://ordo.k8o.me) — semantic design
4
- tokens, built-in wording that follows `@k8ordo/i18n` (Japanese and English included), and adapters that let an LLM generate
5
- on-brand UIs.
4
+ tokens, built-in wording that follows `@k8ordo/i18n` (Japanese and English included), and a catalog of these components
5
+ that lets an LLM compose on-brand UIs through any generative-UI format.
6
6
 
7
7
  Like every k8ordo package it assumes React 19 and Server Components, uses only
8
- what has reached Baseline, and ships no polyfills or legacy fallbacks.
8
+ what has reached Baseline newly available, and ships no polyfills or legacy
9
+ fallbacks.
9
10
 
10
11
  - **Documentation**: https://ordo.k8o.me/ui
11
12
  - **Storybook**: https://main--687a213c85e2e4589d8db1bb.chromatic.com
@@ -33,30 +34,20 @@ it. Install one when you import the entry it belongs to.
33
34
 
34
35
  <!-- peers -->
35
36
 
36
- | Package | Version | Required | Needed for |
37
- | ----------------------- | --------------- | -------- | ------------------------------------------------- |
38
- | `react` | ≥19.3.0 | yes | the components and hooks |
39
- | `react-dom` | ≥19.3.0 | yes | portals and `useFormStatus` |
40
- | `@k8ordo/i18n` | ^3.0.0 | yes | the locale the components' own wording is read in |
41
- | `typescript` | ≥7.0.0 | optional | the shipped type declarations |
42
- | `@types/react` | ≥19.3.0 | optional | the shipped type declarations |
43
- | `@types/react-dom` | ≥19.3.0 | optional | the shipped type declarations |
44
- | `zod` | ^4.6.6 | optional | generative-UI schemas |
45
- | `@json-render/core` | ≥0.22.0 <0.23.0 | optional | `@k8ordo/ui/json-render` |
46
- | `@json-render/react` | ≥0.22.0 <0.23.0 | optional | `@k8ordo/ui/json-render` |
47
- | `@openuidev/lang-core` | ^1.0.0 | optional | `@k8ordo/ui/openui`, `@k8ordo/ui/openui/prompt` |
48
- | `@openuidev/react-lang` | ^1.0.0 | optional | `@k8ordo/ui/openui` |
49
- | `ai` | ≥7.0.51 | optional | `@k8ordo/ui/ai-sdk` |
50
- | `streamdown` | ≥2.5.0 | optional | `@k8ordo/ui/ai/response` |
37
+ | Package | Version | Required | Needed for |
38
+ | ------------------ | ------- | -------- | ------------------------------------------------- |
39
+ | `react` | ≥19.3.0 | yes | the components and hooks |
40
+ | `react-dom` | ≥19.3.0 | yes | portals and `useFormStatus` |
41
+ | `@k8ordo/i18n` | ^4.0.0 | yes | the locale the components' own wording is read in |
42
+ | `typescript` | ≥7.0.0 | optional | the shipped type declarations |
43
+ | `@types/react` | ≥19.3.0 | optional | the shipped type declarations |
44
+ | `@types/react-dom` | ≥19.3.0 | optional | the shipped type declarations |
45
+ | `zod` | ^4.6.6 | optional | generative-UI schemas |
46
+ | `streamdown` | ≥2.5.0 | optional | `@k8ordo/ui/ai/response` |
47
+ | `shiki` | ≥4.6.0 | optional | `@k8ordo/ui/code-block` |
51
48
 
52
49
  <!-- /peers -->
53
50
 
54
- The generative-UI peers are 0.x, where a minor bump is a breaking release, so
55
- the declared range stops at the next minor: `@k8ordo/ui` only claims the line it
56
- is tested against. Resolve exactly **one copy** of each — the adapters read the
57
- framework's own React context, so two copies let every schema check and the
58
- build pass while the form views throw at render time.
59
-
60
51
  The components need no CSS tooling of their own: they are written in CSS Modules
61
52
  and ship compiled CSS, which each component imports. The package does not
62
53
  depend on `tailwindcss`, not even for the optional `tailwind.css` entry, which
@@ -93,14 +84,14 @@ and `i`/`em` style unset, `body` typography defaults). Adding it to an existing
93
84
  app restyles more than the library components.
94
85
 
95
86
  ```tsx
96
- // In your app entry point
97
- import { UIProvider } from '@k8ordo/ui';
87
+ // In your app entry point, when the app opens toasts with useToast
88
+ import { ToastProvider } from '@k8ordo/ui';
98
89
 
99
90
  function App() {
100
91
  return (
101
- <UIProvider>
92
+ <ToastProvider>
102
93
  <YourApp />
103
- </UIProvider>
94
+ </ToastProvider>
104
95
  );
105
96
  }
106
97
  ```
@@ -215,7 +206,6 @@ entry in [docs/references/components.md](docs/references/components.md).
215
206
  - [CheckboxGroup](docs/references/components.md#checkboxgroup)
216
207
  - [ColorPicker](docs/references/components.md#colorpicker)
217
208
  - [Combobox](docs/references/components.md#combobox)
218
- - [DateField](docs/references/components.md#datefield)
219
209
  - [DatePicker](docs/references/components.md#datepicker)
220
210
  - [FileField](docs/references/components.md#filefield)
221
211
  - [Form](docs/references/components.md#form)
@@ -265,7 +255,6 @@ entry in [docs/references/components.md](docs/references/components.md).
265
255
  - [Drawer](docs/references/components.md#drawer)
266
256
  - [DropdownMenu](docs/references/components.md#dropdownmenu)
267
257
  - [ListBox](docs/references/components.md#listbox)
268
- - [Modal](docs/references/components.md#modal)
269
258
  - [Popover](docs/references/components.md#popover)
270
259
  - [Tooltip](docs/references/components.md#tooltip)
271
260
 
@@ -276,20 +265,10 @@ entry in [docs/references/components.md](docs/references/components.md).
276
265
  - [Separator](docs/references/components.md#separator)
277
266
  - [Stack](docs/references/components.md#stack)
278
267
 
279
- ### Observers
280
-
281
- - [InView](docs/references/components.md#inview)
282
- - [Resize](docs/references/components.md#resize)
283
-
284
268
  ### Icons
285
269
 
286
270
  - [Icons](docs/references/components.md#icons) — decorative icons from `@k8ordo/ui/icons` (`XIcon`, `ChevronIcon`, …)
287
271
 
288
- ### Providers
289
-
290
- - [PortalRootProvider](docs/references/components.md#portalrootprovider)
291
- - [UIProvider](docs/references/components.md#uiprovider)
292
-
293
272
  <!-- /generated:component-categories -->
294
273
 
295
274
  ## Usage Examples
@@ -343,8 +322,7 @@ import { Button } from '@k8ordo/ui';
343
322
  ### Dialog
344
323
 
345
324
  ```tsx
346
- import { Dialog } from '@k8ordo/ui';
347
- import { Button } from '@k8ordo/ui';
325
+ import { Button, Dialog } from '@k8ordo/ui';
348
326
  import { useState } from 'react';
349
327
 
350
328
  function MyComponent() {
@@ -353,18 +331,14 @@ function MyComponent() {
353
331
  return (
354
332
  <>
355
333
  <Button onClick={() => setIsOpen(true)}>Open Dialog</Button>
356
- {isOpen && (
357
- <Dialog.Root>
358
- <Dialog.Header
359
- title="Confirm Action"
360
- onClose={() => setIsOpen(false)}
361
- />
362
- <Dialog.Content>
363
- <p>Are you sure you want to continue?</p>
364
- <Button onClick={() => setIsOpen(false)}>Confirm</Button>
365
- </Dialog.Content>
366
- </Dialog.Root>
367
- )}
334
+ <Dialog
335
+ isOpen={isOpen}
336
+ onClose={() => setIsOpen(false)}
337
+ title="Confirm Action"
338
+ >
339
+ <p>Are you sure you want to continue?</p>
340
+ <Button onClick={() => setIsOpen(false)}>Confirm</Button>
341
+ </Dialog>
368
342
  </>
369
343
  );
370
344
  }
@@ -381,23 +355,21 @@ import { Button, Card, Stack } from '@k8ordo/ui';
381
355
 
382
356
  Optional features live behind dedicated subpath exports:
383
357
 
384
- | Subpath | Contents |
385
- | --------------------------------- | ----------------------------------------------------------------------------------------- |
386
- | `@k8ordo/ui` | Core UI components, their types, and provider hooks |
387
- | `@k8ordo/ui/icons` | Line icons, one module each, and `BaseIcon` for drawing your own |
388
- | `@k8ordo/ui/tokens` | Design tokens as a DTCG resolver document |
389
- | `@k8ordo/ui/props.json` | Every component's props as JSON, generated from the types |
390
- | `@k8ordo/ui/i18n` | `ja` / `en`, `registerMessages`, `getMessages`, `messageUsage`, and the `Messages` type |
391
- | `@k8ordo/ui/ai` | AI chat components |
392
- | `@k8ordo/ui/ai/response` | `Response` Markdown renderer (needs optional peer `streamdown`) |
393
- | `@k8ordo/ui/ai-sdk` | AI SDK adapter (needs optional peer `ai`) |
394
- | `@k8ordo/ui/code-block` | `CodeBlock`, highlighted on the server with shiki (Server Component) |
395
- | `@k8ordo/ui/json-render` | json-render catalog (server-safe) |
396
- | `@k8ordo/ui/json-render/registry` | json-render registry (`'use client'`) |
397
- | `@k8ordo/ui/openui` | OpenUI library (`'use client'`) |
398
- | `@k8ordo/ui/openui/prompt` | OpenUI prompt generation (server-safe) |
399
- | `@k8ordo/ui/styles.css` | Layer order, tokens, reset and base (required) |
400
- | `@k8ordo/ui/tailwind.css` | Tailwind CSS 4 bridge, imported after Tailwind: `styles.css` and utilities for the tokens |
358
+ | Subpath | Contents |
359
+ | --------------------------- | ------------------------------------------------------------------------------------------------- |
360
+ | `@k8ordo/ui` | Core UI components, their types, and provider hooks |
361
+ | `@k8ordo/ui/icons` | Line icons, one module each, and `BaseIcon` for drawing your own |
362
+ | `@k8ordo/ui/tokens` | Design tokens as a DTCG resolver document |
363
+ | `@k8ordo/ui/props.json` | Every component's props, and the components each wording key is drawn by, as JSON |
364
+ | `@k8ordo/ui/i18n` | `ja` / `en`, `registerMessages`, `getMessages`, and the `Messages` type |
365
+ | `@k8ordo/ui/ai` | AI chat components |
366
+ | `@k8ordo/ui/ai/response` | `Response` Markdown renderer (needs optional peer `streamdown`) |
367
+ | `@k8ordo/ui/code-block` | `CodeBlock`, highlighted on the server with shiki (Server Component; needs optional peer `shiki`) |
368
+ | `@k8ordo/ui/catalog` | The generative-UI catalog: each component described for a model (server-safe) |
369
+ | `@k8ordo/ui/catalog/render` | How each catalog component is drawn (`'use client'`) |
370
+ | `@k8ordo/ui/styles.css` | Layer order, tokens, reset and base (required) |
371
+ | `@k8ordo/ui/tokens.css` | The tokens and the `color-scheme` rules of `styles.css` alone, with no reset and no base |
372
+ | `@k8ordo/ui/tailwind.css` | Tailwind CSS 4 bridge, imported after Tailwind: `styles.css` and utilities for the tokens |
401
373
 
402
374
  ## AI Chat Components
403
375
 
@@ -413,13 +385,10 @@ Optional features live behind dedicated subpath exports:
413
385
  - **Source** (`List` / `Item`) - The sources a response cites, as links (http(s) only) or document titles
414
386
  - **Response** (from `@k8ordo/ui/ai/response`) - Streaming-safe Markdown renderer built on streamdown
415
387
 
416
- Two of these need optional peer dependencies:
388
+ `Response` needs an optional peer dependency:
417
389
 
418
390
  ```bash
419
- # Response (@k8ordo/ui/ai/response)
420
391
  pnpm add streamdown
421
- # AI SDK adapter (@k8ordo/ui/ai-sdk)
422
- pnpm add ai
423
392
  ```
424
393
 
425
394
  Minimal chat UI:
@@ -477,126 +446,49 @@ import { Response } from '@k8ordo/ui/ai/response';
477
446
  <Response linkSafety={{ enabled: true }}>{markdownText}</Response>
478
447
  ```
479
448
 
480
- With the [AI SDK](https://ai-sdk.dev), `mapMessageParts` from `@k8ordo/ui/ai-sdk` converts a `UIMessage` into a flat array of `{ kind: 'text' | 'reasoning' | 'tool' | 'file' | 'source' | 'data', ... }` parts that map onto `Response`, `Reasoning`, `ToolInvocation`, `Attachment`, and `Source`; `data` parts are yours to render. A tool part keeps its `approval`, so `onApprovalResponse={addToolApprovalResponse}` answers the SDK directly.
449
+ The types (`ChatStatus`, `ToolState`, `ToolApproval`, `ToolApprovalResponse`) take the [AI SDK](https://ai-sdk.dev)'s own shapes, so the SDK's values pass to the components as they are — `onApprovalResponse={addToolApprovalResponse}` answers the SDK directly — and the package does not depend on the SDK. To turn a `UIMessage`'s parts into rows of components, copy `mapMessageParts` from [`examples/ui-integrations`](https://github.com/k35o/k8ordo/tree/main/examples/ui-integrations/src/ai-sdk) into your application.
481
450
 
482
- ## Generative UI integrations
451
+ ## Generative UI
483
452
 
484
- k8ordo UI ships official adapters so an LLM can generate UIs using these components, via either [json-render](https://json-render.dev) or [OpenUI](https://www.openui.com). Each adapter constrains the model to k8ordo UI components with prop schemas locked to the design tokens, so generated UIs stay on-brand. Component-specific `renderItem` render props are bridged internally — the model only ever sees flat data (e.g. `href`).
453
+ `@k8ordo/ui/catalog` describes these components for an LLM, for no generative-UI format in particular: what each one is, the props a model may write (zod schemas locked to the design tokens, so a generated UI stays on-brand), whether it holds children, and which prop holds a field's value. `@k8ordo/ui/catalog/render` draws each of them. Component-specific `renderItem` render props are bridged internally — the model only ever sees flat data (e.g. `href`).
485
454
 
486
- These integrations are exposed as optional subpath exports. Install the framework you use (they are optional peer dependencies):
455
+ The package ties itself to no format and depends on none. Connecting [json-render](https://json-render.dev), [OpenUI](https://www.openui.com), [A2UI](https://a2ui.org), or a format of your own is a small piece of glue that maps over the catalog: register each component, bind each field's value to the format's state, and draw through `renderers`. [`examples/ui-integrations`](https://github.com/k35o/k8ordo/tree/main/examples/ui-integrations) keeps working glue for A2UI 1.0, json-render, and OpenUI, run in a real browser on every change — copy the one you use into your application.
487
456
 
488
457
  ```bash
489
- # json-render
490
- pnpm add @json-render/core @json-render/react zod
491
- # OpenUI (both entries import lang-core directly, so install both packages)
492
- pnpm add @openuidev/react-lang @openuidev/lang-core zod
458
+ pnpm add zod
493
459
  ```
494
460
 
495
- Supported components (both frameworks):
496
-
497
- - **Layout / containers**: `Stack`, `Grid`, `Card`, `Form`, `Carousel`
498
- - **Buttons / nav**: `Button`, `IconButton`, `CopyButton`, `Toolbar`, `Anchor`, `Breadcrumb`, `Pagination`, `Stepper`, `SideNav`
499
- - **Display**: `Badge`, `Heading`, `Avatar`, `Code`, `Kbd`, `EmptyState`, `Icon`, `ChevronIcon`, `StatusIcon`, `Alert`, `Callout`, `Spinner`, `Progress`, `Skeleton`, `Separator`, `Tabs`, `Accordion`, `Table`, `DataTable`, `Tree`
500
- - **Overlays (self-contained widgets)**: `Modal`, `Dialog`, `Drawer`, `Popover`, `Tooltip`, `DropdownMenu`, `Toast`
501
- - **Form**: `TextField`, `Textarea`, `PasswordInput`, `NumberField`, `Slider`, `RangeSlider`, `DateField`, `DatePicker`, `Calendar`, `ColorPicker`, `Combobox`, `Checkbox`, `Switch`, `Select`, `Radio`, `RadioCard`, `CheckboxCard`, `ListBox`, `CheckboxGroup`, `Autocomplete`, `FileField`, `FormControl`
502
-
503
- The rest of the exports — `CommandPalette`, `ContextMenu`, `ResizablePanels`, the
504
- observers, the providers, and the AI chat components — are left out on purpose;
505
- [docs/references/generative-ui.md](docs/references/generative-ui.md#what-the-catalog-leaves-out)
506
- says why.
507
-
508
- Overlays are exposed as **self-contained widgets**: a `Modal`/`Dialog`/`Drawer`/`Popover` declares its own trigger button via `triggerLabel`, manages open/close internally, and renders the supplied children inside the surface. This lets a model generate UIs that include overlays without modelling imperative open/close state. `Tooltip`/`DropdownMenu`/`Toast` follow the same self-contained pattern (trigger + content).
509
-
510
- ### json-render (RSC-ready)
511
-
512
- The catalog (schemas / prompt) and the registry (rendering) are split so the catalog is **server-safe** — generate the system prompt in a React Server Component, and render on the client.
513
-
514
- ```tsx
515
- // Server Component: prompt generation
516
- import { catalog, uiRules } from '@k8ordo/ui/json-render';
517
-
518
- // `customRules` injects cross-cutting constraints the model tends to break
519
- // (Table cell counts match columns, href format, text-only Tabs/Accordion content).
520
- const systemPrompt = catalog.prompt({ customRules: [...uiRules] });
521
- ```
522
-
523
- ```tsx
524
- // Client Component: rendering.
525
- // `JsonRenderUI` wires JSONUIProvider + Renderer and the registry for you —
526
- // just pass a spec. Pass `onStateChange` to collect form values.
527
- 'use client';
528
- import type { UISpec } from '@k8ordo/ui/json-render';
529
- import { JsonRenderUI } from '@k8ordo/ui/json-render/registry';
530
-
531
- export function GenUi({ spec }: { spec: UISpec }) {
532
- return <JsonRenderUI spec={spec} />;
533
- }
534
- ```
535
-
536
- Validate (and repair) LLM output before rendering. `validateGeneratedSpec` runs auto-fixes, structural checks, and per-component prop validation, returning a ready-to-resend repair prompt on failure:
537
-
538
- ```tsx
539
- import { validateGeneratedSpec } from '@k8ordo/ui/json-render';
540
-
541
- const result = validateGeneratedSpec(JSON.parse(llmOutput));
542
- if (result.ok) {
543
- return <JsonRenderUI spec={result.spec} />; // result.fixes lists auto-applied fixes
544
- }
545
- const retried = await llm(result.repairPrompt); // ask the model to fix, then retry
546
- ```
547
-
548
- Hand-written or LLM specs can be typed with `satisfies UISpec` so component names and props are checked at compile time (no `as unknown as Spec`):
461
+ ```ts
462
+ // Server-safe: build the format's system prompt from it
463
+ import { catalog, catalogPropIssues, catalogRules } from '@k8ordo/ui/catalog';
549
464
 
550
- ```tsx
551
- import type { UISpec } from '@k8ordo/ui/json-render';
552
-
553
- const spec = {
554
- root: 'root',
555
- elements: {
556
- root: { type: 'Stack', props: { direction: 'column' }, children: ['ok'] },
557
- ok: { type: 'Button', props: { label: 'OK' } }, // typo in `type`/props → compile error
558
- },
559
- } satisfies UISpec;
465
+ catalog.Button.description; // 'Action button. With href it renders as a link (<a>) and reports no press.'
466
+ catalog.TextField.value; // { prop: 'defaultValue', initial: (props) => … }
467
+ catalogPropIssues('Button', { label: 'OK', colour: 'primary' });
468
+ // ['Button: Unknown prop "colour". Allowed props: label, variant, …']
560
469
  ```
561
470
 
562
- For advanced setups (custom `navigate` / `handlers` / `validationFunctions`), pass the lower-level `registry` to `JSONUIProvider` and `Renderer` from `@json-render/react` directly.
563
-
564
- | Export | Side | Contents |
565
- | --------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------- |
566
- | `@k8ordo/ui/json-render` | server-safe | `catalog` (schemas + `prompt()`), `validateGeneratedSpec`, `uiRules`, types (`UISpec`, `ComponentName`, `ComponentProps`) |
567
- | `@k8ordo/ui/json-render/registry` | `'use client'` | `JsonRenderUI` (pre-wired), `registry` (low-level) |
568
-
569
- ### OpenUI
570
-
571
471
  ```tsx
472
+ // Client: draw what the format resolved
572
473
  'use client';
573
- import { library } from '@k8ordo/ui/openui';
574
- import { Renderer } from '@openuidev/react-lang';
575
-
576
- export function GenUi({ response }: { response: string }) {
577
- return <Renderer library={library} response={response} />;
578
- }
579
- ```
580
-
581
- Generate the system prompt on the **server** with the dedicated server-safe entry (symmetric with json-render's `catalog.prompt()`):
474
+ import { renderers } from '@k8ordo/ui/catalog/render';
582
475
 
583
- ```tsx
584
- import { prompt } from '@k8ordo/ui/openui/prompt';
585
-
586
- const systemPrompt = prompt(); // server-safe, no React — call it from an RSC or API route
476
+ renderers.Button({ props: { label: 'Save' } });
587
477
  ```
588
478
 
589
- To generate the prompt inside the client bundle instead, `library.prompt()` still works.
479
+ [docs/references/generative-ui.md](docs/references/generative-ui.md#what-the-catalog-covers)
480
+ lists the entries of the catalog. The exports it does not have —
481
+ `CommandPalette`, `ContextMenu`, `ResizablePanels`, and the AI chat components
482
+ among them — are left out on purpose, and
483
+ [the same page](docs/references/generative-ui.md#what-the-catalog-leaves-out)
484
+ says why.
590
485
 
591
- | Export | Side | Contents |
592
- | -------------------------- | -------------- | ------------------------------------- |
593
- | `@k8ordo/ui/openui` | `'use client'` | `library` (rendering) |
594
- | `@k8ordo/ui/openui/prompt` | server-safe | `prompt()` (system prompt generation) |
486
+ Overlays are **self-contained widgets**: a `Dialog`/`Drawer`/`Popover` declares its own trigger button via `triggerLabel`, manages open/close internally, and renders the supplied children inside the surface. This lets a model generate UIs that include overlays without modelling imperative open/close state. `Tooltip`/`DropdownMenu`/`Toast` follow the same pattern (trigger + content); `Toast` opens its toast through your application's `ToastProvider`.
595
487
 
596
488
  > **Notes**
597
489
  >
598
- > - Make sure `@k8ordo/ui/styles.css` (or `tailwind.css` in Tailwind CSS 4 projects) is loaded and the app is wrapped in `UIProvider`.
599
- > - Both OpenUI entries need `@openuidev/lang-core` — `openui/prompt` is the React-free one, and `openui` builds its component library with it. Install it alongside `@openuidev/react-lang`: pnpm will not resolve it for you just because `react-lang` depends on it.
490
+ > - Make sure `@k8ordo/ui/styles.css` (or `tailwind.css` in Tailwind CSS 4 projects) is loaded.
491
+ > - Draw the generated UI inside your application's `ToastProvider`. Outside one, a `Toast` fails with `useToast`'s own error.
600
492
  > - `Tabs` panels are text content (`tabs: [{ label, content }]`); rich-component panels are a future enhancement.
601
493
 
602
494
  ## Accessibility
@@ -616,8 +508,8 @@ Components are written in CSS Modules and placed in the `components` cascade
616
508
  layer. Customize them through:
617
509
 
618
510
  - CSS custom properties (semantic design tokens), overridden after `styles.css`
619
- - `renderItem` / `renderAnchor`, which hand you the component's `className`
620
- - Light / Dark mode via semantic color tokens (`.dark`)
511
+ - `renderAnchor`, which hands a link component of your own the component's `className`
512
+ - Light / Dark mode via semantic color tokens (`light-dark()`, switched by the `dark` class)
621
513
  - Tailwind utility classes on your own markup, through `tailwind.css`
622
514
 
623
515
  ## Development
@@ -646,10 +538,9 @@ pnpm check:write
646
538
 
647
539
  ## Browser Support
648
540
 
649
- - Chrome (latest)
650
- - Firefox (latest)
651
- - Safari (latest)
652
- - Edge (latest)
541
+ The browsers that ship what Baseline has newly available. The CSS is compiled
542
+ for them, and [docs/GUIDE.md](docs/GUIDE.md) lists the versions to give your
543
+ bundler as its CSS target.
653
544
 
654
545
  ## License
655
546
 
@@ -1,5 +1,5 @@
1
- import { BaseIconProps } from "../../components/icons/base.mjs";
2
- import "../../components/icons/index.mjs";
1
+ import { BaseIconProps } from "../components/icons/base.mjs";
2
+ import "../components/icons/index.mjs";
3
3
  export declare const iconMap: {
4
4
  'arrow-down': import("react").FC<Partial<BaseIconProps>>;
5
5
  'arrow-left': import("react").FC<Partial<BaseIconProps>>;
@@ -22,6 +22,7 @@ export declare const iconMap: {
22
22
  'circle-check': import("react").FC<Partial<BaseIconProps>>;
23
23
  'circle-help': import("react").FC<Partial<BaseIconProps>>;
24
24
  'circle-x': import("react").FC<Partial<BaseIconProps>>;
25
+ 'clipboard-check': import("react").FC<Partial<BaseIconProps>>;
25
26
  clock: import("react").FC<Partial<BaseIconProps>>;
26
27
  code: import("react").FC<Partial<BaseIconProps>>;
27
28
  'color-scale': import("react").FC<Partial<BaseIconProps>>;
@@ -40,6 +41,7 @@ export declare const iconMap: {
40
41
  folder: import("react").FC<Partial<BaseIconProps>>;
41
42
  'folder-open': import("react").FC<Partial<BaseIconProps>>;
42
43
  'git-fork': import("react").FC<Partial<BaseIconProps>>;
44
+ 'git-pull-request': import("react").FC<Partial<BaseIconProps>>;
43
45
  globe: import("react").FC<Partial<BaseIconProps>>;
44
46
  grid: import("react").FC<Partial<BaseIconProps>>;
45
47
  'grip-vertical': import("react").FC<Partial<BaseIconProps>>;
@@ -0,0 +1,212 @@
1
+ import { ArrowDownIcon } from "../components/icons/arrow-down.mjs";
2
+ import { ArrowLeftIcon } from "../components/icons/arrow-left.mjs";
3
+ import { ArrowRightIcon } from "../components/icons/arrow-right.mjs";
4
+ import { ArrowUpIcon } from "../components/icons/arrow-up.mjs";
5
+ import { BellIcon } from "../components/icons/bell.mjs";
6
+ import { BlendIcon } from "../components/icons/blend.mjs";
7
+ import { BookTextIcon } from "../components/icons/book-text.mjs";
8
+ import { BookmarkIcon } from "../components/icons/bookmark.mjs";
9
+ import { BotIcon } from "../components/icons/bot.mjs";
10
+ import { BotMessageIcon } from "../components/icons/bot-message.mjs";
11
+ import { CalendarIcon } from "../components/icons/calendar.mjs";
12
+ import { CheckIcon } from "../components/icons/check.mjs";
13
+ import { ChevronDownIcon } from "../components/icons/chevron-down.mjs";
14
+ import { ChevronLeftIcon } from "../components/icons/chevron-left.mjs";
15
+ import { ChevronRightIcon } from "../components/icons/chevron-right.mjs";
16
+ import { ChevronUpIcon } from "../components/icons/chevron-up.mjs";
17
+ import { ChevronsUpDownIcon } from "../components/icons/chevrons-up-down.mjs";
18
+ import { CircleAlertIcon } from "../components/icons/circle-alert.mjs";
19
+ import { CircleCheckIcon } from "../components/icons/circle-check.mjs";
20
+ import { CircleHelpIcon } from "../components/icons/circle-help.mjs";
21
+ import { CircleXIcon } from "../components/icons/circle-x.mjs";
22
+ import { ClipboardCheckIcon } from "../components/icons/clipboard-check.mjs";
23
+ import { ClockIcon } from "../components/icons/clock.mjs";
24
+ import { CodeIcon } from "../components/icons/code.mjs";
25
+ import { ColorScaleIcon } from "../components/icons/color-scale.mjs";
26
+ import { ContrastIcon } from "../components/icons/contrast.mjs";
27
+ import { CopyIcon } from "../components/icons/copy.mjs";
28
+ import { DownloadIcon } from "../components/icons/download.mjs";
29
+ import { EllipsisIcon } from "../components/icons/ellipsis.mjs";
30
+ import { EllipsisVerticalIcon } from "../components/icons/ellipsis-vertical.mjs";
31
+ import { ExternalLinkIcon } from "../components/icons/external-link.mjs";
32
+ import { EyeIcon } from "../components/icons/eye.mjs";
33
+ import { EyeClosedIcon } from "../components/icons/eye-closed.mjs";
34
+ import { FileIcon } from "../components/icons/file.mjs";
35
+ import { FileTextIcon } from "../components/icons/file-text.mjs";
36
+ import { FilterIcon } from "../components/icons/filter.mjs";
37
+ import { FlaskIcon } from "../components/icons/flask.mjs";
38
+ import { FolderIcon } from "../components/icons/folder.mjs";
39
+ import { FolderOpenIcon } from "../components/icons/folder-open.mjs";
40
+ import { GitForkIcon } from "../components/icons/git-fork.mjs";
41
+ import { GitPullRequestIcon } from "../components/icons/git-pull-request.mjs";
42
+ import { GlobeIcon } from "../components/icons/globe.mjs";
43
+ import { GridIcon } from "../components/icons/grid.mjs";
44
+ import { GripVerticalIcon } from "../components/icons/grip-vertical.mjs";
45
+ import { HeartIcon } from "../components/icons/heart.mjs";
46
+ import { HistoryIcon } from "../components/icons/history.mjs";
47
+ import { HomeIcon } from "../components/icons/home.mjs";
48
+ import { ImageIcon } from "../components/icons/image.mjs";
49
+ import { InfoIcon } from "../components/icons/info.mjs";
50
+ import { LightbulbIcon } from "../components/icons/lightbulb.mjs";
51
+ import { LinkIcon } from "../components/icons/link.mjs";
52
+ import { ListIcon } from "../components/icons/list.mjs";
53
+ import { LockIcon } from "../components/icons/lock.mjs";
54
+ import { LockOpenIcon } from "../components/icons/lock-open.mjs";
55
+ import { LogInIcon } from "../components/icons/log-in.mjs";
56
+ import { LogOutIcon } from "../components/icons/log-out.mjs";
57
+ import { MailIcon } from "../components/icons/mail.mjs";
58
+ import { MapPinIcon } from "../components/icons/map-pin.mjs";
59
+ import { MaximizeIcon } from "../components/icons/maximize.mjs";
60
+ import { MenuIcon } from "../components/icons/menu.mjs";
61
+ import { MessageCircleIcon } from "../components/icons/message-circle.mjs";
62
+ import { MinimizeIcon } from "../components/icons/minimize.mjs";
63
+ import { MinusIcon } from "../components/icons/minus.mjs";
64
+ import { MonitorIcon } from "../components/icons/monitor.mjs";
65
+ import { MoonIcon } from "../components/icons/moon.mjs";
66
+ import { PackageIcon } from "../components/icons/package.mjs";
67
+ import { PaintBucketIcon } from "../components/icons/paint-bucket.mjs";
68
+ import { PaletteIcon } from "../components/icons/palette.mjs";
69
+ import { PanelLeftIcon } from "../components/icons/panel-left.mjs";
70
+ import { PaperclipIcon } from "../components/icons/paperclip.mjs";
71
+ import { PauseIcon } from "../components/icons/pause.mjs";
72
+ import { PencilIcon } from "../components/icons/pencil.mjs";
73
+ import { PinIcon } from "../components/icons/pin.mjs";
74
+ import { PlayIcon } from "../components/icons/play.mjs";
75
+ import { PlusIcon } from "../components/icons/plus.mjs";
76
+ import { PresentationIcon } from "../components/icons/presentation.mjs";
77
+ import { RedoIcon } from "../components/icons/redo.mjs";
78
+ import { RefreshIcon } from "../components/icons/refresh.mjs";
79
+ import { RocketIcon } from "../components/icons/rocket.mjs";
80
+ import { RssIcon } from "../components/icons/rss.mjs";
81
+ import { SearchIcon } from "../components/icons/search.mjs";
82
+ import { SendIcon } from "../components/icons/send.mjs";
83
+ import { SettingsIcon } from "../components/icons/settings.mjs";
84
+ import { ShareIcon } from "../components/icons/share.mjs";
85
+ import { ShieldCheckIcon } from "../components/icons/shield-check.mjs";
86
+ import { SmileIcon } from "../components/icons/smile.mjs";
87
+ import { SparklesIcon } from "../components/icons/sparkles.mjs";
88
+ import { SquareIcon } from "../components/icons/square.mjs";
89
+ import { SquircleIcon } from "../components/icons/squircle.mjs";
90
+ import { StarIcon } from "../components/icons/star.mjs";
91
+ import { SunIcon } from "../components/icons/sun.mjs";
92
+ import { TableIcon } from "../components/icons/table.mjs";
93
+ import { TagIcon } from "../components/icons/tag.mjs";
94
+ import { TextHorizontalIcon } from "../components/icons/text-horizontal.mjs";
95
+ import { TextVerticalIcon } from "../components/icons/text-vertical.mjs";
96
+ import { ThumbsDownIcon } from "../components/icons/thumbs-down.mjs";
97
+ import { ThumbsUpIcon } from "../components/icons/thumbs-up.mjs";
98
+ import { TrashIcon } from "../components/icons/trash.mjs";
99
+ import { TriangleAlertIcon } from "../components/icons/triangle-alert.mjs";
100
+ import { UndoIcon } from "../components/icons/undo.mjs";
101
+ import { UploadIcon } from "../components/icons/upload.mjs";
102
+ import { UserIcon } from "../components/icons/user.mjs";
103
+ import { UsersIcon } from "../components/icons/users.mjs";
104
+ import { XIcon } from "../components/icons/x.mjs";
105
+ // src/catalog/icon-map.ts
106
+ const iconMap = {
107
+ "arrow-down": ArrowDownIcon,
108
+ "arrow-left": ArrowLeftIcon,
109
+ "arrow-right": ArrowRightIcon,
110
+ "arrow-up": ArrowUpIcon,
111
+ bell: BellIcon,
112
+ blend: BlendIcon,
113
+ "book-text": BookTextIcon,
114
+ bookmark: BookmarkIcon,
115
+ bot: BotIcon,
116
+ "bot-message": BotMessageIcon,
117
+ calendar: CalendarIcon,
118
+ check: CheckIcon,
119
+ "chevron-down": ChevronDownIcon,
120
+ "chevron-left": ChevronLeftIcon,
121
+ "chevron-right": ChevronRightIcon,
122
+ "chevron-up": ChevronUpIcon,
123
+ "chevrons-up-down": ChevronsUpDownIcon,
124
+ "circle-alert": CircleAlertIcon,
125
+ "circle-check": CircleCheckIcon,
126
+ "circle-help": CircleHelpIcon,
127
+ "circle-x": CircleXIcon,
128
+ "clipboard-check": ClipboardCheckIcon,
129
+ clock: ClockIcon,
130
+ code: CodeIcon,
131
+ "color-scale": ColorScaleIcon,
132
+ contrast: ContrastIcon,
133
+ copy: CopyIcon,
134
+ download: DownloadIcon,
135
+ ellipsis: EllipsisIcon,
136
+ "ellipsis-vertical": EllipsisVerticalIcon,
137
+ "external-link": ExternalLinkIcon,
138
+ eye: EyeIcon,
139
+ "eye-closed": EyeClosedIcon,
140
+ file: FileIcon,
141
+ "file-text": FileTextIcon,
142
+ filter: FilterIcon,
143
+ flask: FlaskIcon,
144
+ folder: FolderIcon,
145
+ "folder-open": FolderOpenIcon,
146
+ "git-fork": GitForkIcon,
147
+ "git-pull-request": GitPullRequestIcon,
148
+ globe: GlobeIcon,
149
+ grid: GridIcon,
150
+ "grip-vertical": GripVerticalIcon,
151
+ heart: HeartIcon,
152
+ history: HistoryIcon,
153
+ home: HomeIcon,
154
+ image: ImageIcon,
155
+ info: InfoIcon,
156
+ lightbulb: LightbulbIcon,
157
+ link: LinkIcon,
158
+ list: ListIcon,
159
+ lock: LockIcon,
160
+ "lock-open": LockOpenIcon,
161
+ "log-in": LogInIcon,
162
+ "log-out": LogOutIcon,
163
+ mail: MailIcon,
164
+ "map-pin": MapPinIcon,
165
+ maximize: MaximizeIcon,
166
+ menu: MenuIcon,
167
+ "message-circle": MessageCircleIcon,
168
+ minimize: MinimizeIcon,
169
+ minus: MinusIcon,
170
+ monitor: MonitorIcon,
171
+ moon: MoonIcon,
172
+ package: PackageIcon,
173
+ "paint-bucket": PaintBucketIcon,
174
+ palette: PaletteIcon,
175
+ "panel-left": PanelLeftIcon,
176
+ paperclip: PaperclipIcon,
177
+ pause: PauseIcon,
178
+ pencil: PencilIcon,
179
+ pin: PinIcon,
180
+ play: PlayIcon,
181
+ plus: PlusIcon,
182
+ presentation: PresentationIcon,
183
+ redo: RedoIcon,
184
+ refresh: RefreshIcon,
185
+ rocket: RocketIcon,
186
+ rss: RssIcon,
187
+ search: SearchIcon,
188
+ send: SendIcon,
189
+ settings: SettingsIcon,
190
+ share: ShareIcon,
191
+ "shield-check": ShieldCheckIcon,
192
+ smile: SmileIcon,
193
+ sparkles: SparklesIcon,
194
+ square: SquareIcon,
195
+ squircle: SquircleIcon,
196
+ star: StarIcon,
197
+ sun: SunIcon,
198
+ table: TableIcon,
199
+ tag: TagIcon,
200
+ "text-horizontal": TextHorizontalIcon,
201
+ "text-vertical": TextVerticalIcon,
202
+ "thumbs-down": ThumbsDownIcon,
203
+ "thumbs-up": ThumbsUpIcon,
204
+ trash: TrashIcon,
205
+ "triangle-alert": TriangleAlertIcon,
206
+ undo: UndoIcon,
207
+ upload: UploadIcon,
208
+ user: UserIcon,
209
+ users: UsersIcon,
210
+ x: XIcon
211
+ };
212
+ export { iconMap };
@@ -0,0 +1 @@
1
+ export declare const ICON_NAMES: readonly ['arrow-down', 'arrow-left', 'arrow-right', 'arrow-up', 'bell', 'blend', 'book-text', 'bookmark', 'bot', 'bot-message', 'calendar', 'check', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'chevrons-up-down', 'circle-alert', 'circle-check', 'circle-help', 'circle-x', 'clipboard-check', 'clock', 'code', 'color-scale', 'contrast', 'copy', 'download', 'ellipsis', 'ellipsis-vertical', 'external-link', 'eye', 'eye-closed', 'file', 'file-text', 'filter', 'flask', 'folder', 'folder-open', 'git-fork', 'git-pull-request', 'globe', 'grid', 'grip-vertical', 'heart', 'history', 'home', 'image', 'info', 'lightbulb', 'link', 'list', 'lock', 'lock-open', 'log-in', 'log-out', 'mail', 'map-pin', 'maximize', 'menu', 'message-circle', 'minimize', 'minus', 'monitor', 'moon', 'package', 'paint-bucket', 'palette', 'panel-left', 'paperclip', 'pause', 'pencil', 'pin', 'play', 'plus', 'presentation', 'redo', 'refresh', 'rocket', 'rss', 'search', 'send', 'settings', 'share', 'shield-check', 'smile', 'sparkles', 'square', 'squircle', 'star', 'sun', 'table', 'tag', 'text-horizontal', 'text-vertical', 'thumbs-down', 'thumbs-up', 'trash', 'triangle-alert', 'undo', 'upload', 'user', 'users', 'x'];