@mojawork/ui-docs 2.3.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 (263) hide show
  1. package/README.md +22 -0
  2. package/bin/serve.mjs +73 -0
  3. package/catalog/atoms/background.md +130 -0
  4. package/catalog/atoms/barcode.md +285 -0
  5. package/catalog/atoms/buzzer.md +210 -0
  6. package/catalog/atoms/card.md +174 -0
  7. package/catalog/atoms/chart.md +236 -0
  8. package/catalog/atoms/clock.md +252 -0
  9. package/catalog/atoms/copy-value.md +203 -0
  10. package/catalog/atoms/image-grid.md +208 -0
  11. package/catalog/atoms/image-slider.md +216 -0
  12. package/catalog/atoms/lang-selector.md +237 -0
  13. package/catalog/atoms/mosaic.md +366 -0
  14. package/catalog/atoms/placeholder.md +157 -0
  15. package/catalog/atoms/qr-code.md +334 -0
  16. package/catalog/atoms/rating.md +176 -0
  17. package/catalog/atoms/reader-doc.md +404 -0
  18. package/catalog/atoms/text-animate.md +122 -0
  19. package/catalog/atoms/thumb.md +153 -0
  20. package/catalog/atoms/timer.md +111 -0
  21. package/catalog/atoms/typewriter.md +132 -0
  22. package/catalog/cdk/splitter.md +63 -0
  23. package/catalog/cdk/table.md +188 -0
  24. package/catalog/forms/autocomplete.md +304 -0
  25. package/catalog/forms/checkbox.md +218 -0
  26. package/catalog/forms/input.md +193 -0
  27. package/catalog/forms/slider.md +142 -0
  28. package/catalog/forms/switch.md +188 -0
  29. package/catalog/guide.json +1209 -0
  30. package/catalog/layout/header.md +167 -0
  31. package/catalog/layout/main.md +158 -0
  32. package/catalog/layout/media-screen.md +163 -0
  33. package/catalog/layout/nav.md +181 -0
  34. package/catalog/layout/overlay.md +256 -0
  35. package/catalog/layout/spinner.md +94 -0
  36. package/catalog/layout/splitter.md +331 -0
  37. package/catalog/layout/tabs.md +144 -0
  38. package/catalog/layout/top-scroll-bottom.md +98 -0
  39. package/catalog/manifest.json +482 -0
  40. package/catalog/mcp.json +44 -0
  41. package/catalog/molecules/image-editor.md +285 -0
  42. package/catalog/usage.md +137 -0
  43. package/catalog/version.json +4 -0
  44. package/package.json +10 -0
  45. package/storybook/1183.da25800b.iframe.bundle.js +1 -0
  46. package/storybook/1255.2abec879.iframe.bundle.js +2 -0
  47. package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
  48. package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
  49. package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
  50. package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
  51. package/storybook/2089.32694489.iframe.bundle.js +1 -0
  52. package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
  53. package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
  54. package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
  55. package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
  56. package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
  57. package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
  58. package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
  59. package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
  60. package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
  61. package/storybook/3899.55560628.iframe.bundle.js +2 -0
  62. package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
  63. package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
  64. package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
  65. package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
  66. package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
  67. package/storybook/4425.368129b3.iframe.bundle.js +2 -0
  68. package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
  69. package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
  70. package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
  71. package/storybook/4555.066c242d.iframe.bundle.js +1 -0
  72. package/storybook/4755.e4656207.iframe.bundle.js +23 -0
  73. package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
  74. package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
  75. package/storybook/4935.8959522b.iframe.bundle.js +1 -0
  76. package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
  77. package/storybook/5944.810cb147.iframe.bundle.js +1 -0
  78. package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
  79. package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
  80. package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
  81. package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
  82. package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
  83. package/storybook/660.18f0458e.iframe.bundle.js +1 -0
  84. package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
  85. package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
  86. package/storybook/7749.2a853795.iframe.bundle.js +1 -0
  87. package/storybook/8051.719eb790.iframe.bundle.js +1 -0
  88. package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
  89. package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
  90. package/storybook/871.428deceb.iframe.bundle.js +1 -0
  91. package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
  92. package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
  93. package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
  94. package/storybook/9560.668052f3.iframe.bundle.js +7 -0
  95. package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
  96. package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
  97. package/storybook/9850.28367747.iframe.bundle.js +1 -0
  98. package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
  99. package/storybook/MaterialIcons-Regular.woff2 +0 -0
  100. package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
  101. package/storybook/PetMe64.ttf +0 -0
  102. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
  103. package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
  104. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
  105. package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
  106. package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
  107. package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
  108. package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
  109. package/storybook/assets/fonts/PetMe64.ttf +0 -0
  110. package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
  111. package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
  112. package/storybook/assets/ui/documents/demo.pdf +42 -0
  113. package/storybook/assets/ui/i18n/de-DE.json +1 -0
  114. package/storybook/assets/ui/i18n/en-EN.json +2 -0
  115. package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
  116. package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
  117. package/storybook/assets/ui/images/600x600.png +0 -0
  118. package/storybook/assets/ui/images/600x800.png +0 -0
  119. package/storybook/assets/ui/images/800x600.png +0 -0
  120. package/storybook/assets/ui/images/unknown.gif +0 -0
  121. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
  122. package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
  123. package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
  124. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
  125. package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
  126. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
  127. package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
  128. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
  129. package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
  130. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
  131. package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
  132. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
  133. package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
  134. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
  135. package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
  136. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
  137. package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
  138. package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
  139. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
  140. package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
  141. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
  142. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
  143. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
  144. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
  145. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
  146. package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
  147. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
  148. package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
  149. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
  150. package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
  151. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
  152. package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
  153. package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
  154. package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
  155. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
  156. package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
  157. package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
  158. package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
  159. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
  160. package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
  161. package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
  162. package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
  163. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
  164. package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
  165. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
  166. package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
  167. package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
  168. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
  169. package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
  170. package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
  171. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
  172. package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
  173. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
  174. package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
  175. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
  176. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
  177. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
  178. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
  179. package/storybook/favicon-wrapper.svg +46 -0
  180. package/storybook/favicon.svg +1 -0
  181. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
  182. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
  183. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
  184. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
  185. package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
  186. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
  187. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
  188. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
  189. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
  190. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
  191. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
  192. package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
  193. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
  194. package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
  195. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
  196. package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
  197. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
  198. package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
  199. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
  200. package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
  201. package/storybook/iframe.html +558 -0
  202. package/storybook/index.html +155 -0
  203. package/storybook/index.json +1 -0
  204. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
  205. package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
  206. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
  207. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
  208. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
  209. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
  210. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
  211. package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
  212. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
  213. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
  214. package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
  215. package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
  216. package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
  217. package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
  218. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
  219. package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
  220. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
  221. package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
  222. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
  223. package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
  224. package/storybook/main.2d116a57.iframe.bundle.js +1 -0
  225. package/storybook/main.a402659c6a0734088d14.css +2101 -0
  226. package/storybook/mocker-runtime-injected.js +1 -0
  227. package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
  228. package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
  229. package/storybook/nunito-sans-bold-italic.woff2 +0 -0
  230. package/storybook/nunito-sans-bold.woff2 +0 -0
  231. package/storybook/nunito-sans-italic.woff2 +0 -0
  232. package/storybook/nunito-sans-regular.woff2 +0 -0
  233. package/storybook/project.json +1 -0
  234. package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
  235. package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
  236. package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
  237. package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
  238. package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  239. package/storybook/sb-common-assets/favicon.svg +1 -0
  240. package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  241. package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  242. package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  243. package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  244. package/storybook/sb-manager/globals-runtime.js +76714 -0
  245. package/storybook/sb-manager/globals.js +24 -0
  246. package/storybook/sb-manager/manager-stores.js +23 -0
  247. package/storybook/sb-manager/runtime.js +27451 -0
  248. package/storybook/sb-preview/globals.js +20 -0
  249. package/storybook/sb-preview/runtime.js +35491 -0
  250. package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
  251. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
  252. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
  253. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
  254. package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
  255. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
  256. package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
  257. package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
  258. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
  259. package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
  260. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
  261. package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
  262. package/storybook/version.json +4 -0
  263. package/version.json +4 -0
@@ -0,0 +1,304 @@
1
+ ### Autocomplete
2
+
3
+ An input with a suggestion panel — a massively reduced take on the classic
4
+ autocomplete: single select, fixed two-line row layout, no templates, no
5
+ chips, no dropdown button.
6
+
7
+ ---
8
+
9
+ ### What it does, and what it does not
10
+
11
+ An input with a suggestion panel: it watches the typed text and, past
12
+ `minChars` and after `delay` milliseconds of quiet, asks for options through
13
+ `(complete)`; the host answers by setting `options`, and a pick emits
14
+ `(picked)`. It never fetches and never interprets the data — any source will
15
+ do. There is no waiting state, no empty message, no multi-select, no chips and
16
+ no dropdown button: the panel is there with content or not at all.
17
+
18
+ ---
19
+
20
+ > **Guide:** recommendations for `ui-autocomplete` — use for, not for, instead, shown in — are served by `get_guide` (name: `ui-autocomplete`). The section above is the truth; the guide is the offer.
21
+
22
+ ---
23
+
24
+ ### Overview
25
+
26
+ `UiAutocompleteComponent` wraps a regular projected input (the usual
27
+ `ui-tag` pattern) and never interprets the data. It watches the typed text
28
+ and, once it reaches `minChars` and has been quiet for `delay` milliseconds,
29
+ emits `(complete)` — the request throttle. The app answers by setting
30
+ `options`; the panel only opens when that answer is non-empty. There is no
31
+ waiting state and no empty message: the panel appears with content or not at
32
+ all. A tap or Enter on a row emits `(picked)` and closes the panel.
33
+
34
+ Because the component only asks for data and never fetches, the same element
35
+ serves any source: an in-memory list, computed signals, or a real backend
36
+ call — `minChars` and `delay` keep request counts civil.
37
+
38
+ ---
39
+
40
+ ### Properties
41
+
42
+ <table class="ui">
43
+ <thead>
44
+ <tr>
45
+ <th>Name</th>
46
+ <th>Type</th>
47
+ <th>Default</th>
48
+ <th>Description</th>
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+ <tr>
53
+ <td><code>label</code></td>
54
+ <td><code>string | null</code></td>
55
+ <td><code>null</code></td>
56
+ <td>Text label rendered above the wrapped input.</td>
57
+ </tr>
58
+ <tr>
59
+ <td><code>options</code></td>
60
+ <td><code>Array&lt;UiAutocompleteOption&gt;</code></td>
61
+ <td><code>[]</code></td>
62
+ <td>
63
+ Suggestion rows, provided by the app in response to
64
+ <code>(complete)</code>. Shape: <code>id</code> (returned on pick,
65
+ never interpreted), <code>label</code> (main line),
66
+ <code>sublabel</code> (optional second line), <code>muted</code>
67
+ (optional; dims the row — it stays focusable and pickable, so the
68
+ app can answer a pick with its own feedback) and
69
+ <code>disabled</code> (optional; the row is inert — dimmed harder,
70
+ skipped by Tab, never pickable).
71
+ </td>
72
+ </tr>
73
+ <tr>
74
+ <td><code>minChars</code></td>
75
+ <td><code>number</code></td>
76
+ <td><code>3</code></td>
77
+ <td>Minimum input length before any <code>(complete)</code> fires.</td>
78
+ </tr>
79
+ <tr>
80
+ <td><code>delay</code></td>
81
+ <td><code>number</code></td>
82
+ <td><code>250</code></td>
83
+ <td>
84
+ Quiet time in milliseconds after typing before
85
+ <code>(complete)</code> fires; an unchanged settled text does not
86
+ re-fire.
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <td><code>loading</code></td>
91
+ <td><code>boolean</code></td>
92
+ <td><code>false</code></td>
93
+ <td>
94
+ Shows a spinning affix icon at the right edge of the field while
95
+ true — app-controlled (switch it on when firing a request, off when
96
+ the answer lands).
97
+ </td>
98
+ </tr>
99
+ </tbody>
100
+ </table>
101
+
102
+ ### Events
103
+
104
+ <table class="ui">
105
+ <thead>
106
+ <tr>
107
+ <th>Name</th>
108
+ <th>Payload</th>
109
+ <th>Description</th>
110
+ </tr>
111
+ </thead>
112
+ <tbody>
113
+ <tr>
114
+ <td><code>(complete)</code></td>
115
+ <td><code>string</code></td>
116
+ <td>The trimmed text, fired after threshold and quiet time.</td>
117
+ </tr>
118
+ <tr>
119
+ <td><code>(picked)</code></td>
120
+ <td><code>UiAutocompleteOption</code></td>
121
+ <td>
122
+ The chosen row. The component writes the option's label into the
123
+ field (a silent write — it never counts as typing, so no new
124
+ <code>(complete)</code> fires), closes the panel and returns the
125
+ focus to the field.
126
+ </td>
127
+ </tr>
128
+ </tbody>
129
+ </table>
130
+
131
+ ---
132
+
133
+ ### Behaviour
134
+
135
+ - The panel is a derived truth, not a state: it is open exactly while a
136
+ non-empty answer is there, the text still carries the threshold, and the
137
+ focus lives inside the component.
138
+ - Escape and clicking outside close it; the next edit revives it.
139
+ - Picking writes the label back into the field without triggering a new
140
+ request round — only a real edit wakes the suggestions again.
141
+ - Field and panel form one flush body: same width, shared edges, the field
142
+ hands its bottom radii to the panel while open.
143
+ - **The label is tied to the field.** The projected input keeps its own
144
+ `id` if it has one; otherwise the component hands it one and points the
145
+ label at it — a click on the label focuses the field, a screen reader
146
+ names it.
147
+ - **Keyboard**: the rows are real buttons — Tab walks field → rows,
148
+ Enter/Space picks, no synthetic key handling. Enter inside the field
149
+ itself does nothing (picking always targets a focused row), which also
150
+ keeps barcode-scanner input from ever selecting anything. As sugar on
151
+ top, ↑/↓ walk the focus through the open panel's rows: ↓ from the field
152
+ enters the first row, ↑ on the first row returns to the field, the ends
153
+ do not wrap and disabled rows are skipped (as with Tab).
154
+
155
+ ---
156
+
157
+ ### Example
158
+
159
+ Type `pac` or `don` — or a maker like `atari`, `namco`, `kon` for a
160
+ scrolling panel. Picking writes the label back into the field.
161
+
162
+ #### Story: Autocomplete
163
+
164
+ ```ts
165
+ export const Autocomplete: Story = {
166
+ render: (args) => {
167
+ // Signals on purpose: the (complete) emission comes from the debounce
168
+ // timer — zoneless change detection only notices signal writes here.
169
+ const query = signal('');
170
+ const options = signal<Array<UiAutocompleteOption>>([]);
171
+ return {
172
+ props: {
173
+ ...args,
174
+ query,
175
+ options,
176
+ complete: (text: string) => options.set(answer(text)),
177
+ },
178
+ template: `
179
+ <ui-intern-header theme="theme-light"></ui-intern-header>
180
+ <section class="relative flex flex-col w-96">
181
+ <ui-autocomplete
182
+ [label]="label"
183
+ [options]="options()"
184
+ [minChars]="minChars"
185
+ [delay]="delay"
186
+ [loading]="loading"
187
+ (complete)="complete($event)"
188
+ >
189
+ <input
190
+ ui-tag
191
+ class="ui"
192
+ type="text"
193
+ autocomplete="off"
194
+ placeholder="pac, atari, namco…"
195
+ [ngModel]="query()"
196
+ (ngModelChange)="query.set($event)"
197
+ />
198
+ </ui-autocomplete>
199
+ </section>
200
+ `,
201
+ };
202
+ },
203
+ };
204
+
205
+ /**
206
+ * Flat variant: the projected input carries `ui-flat` instead of `ui` — no
207
+ * borders, no shadows; the open state reads as one soft 8%-focus surface.
208
+ */
209
+ ```
210
+
211
+ **Usage:**
212
+
213
+ ```html
214
+ <ui-autocomplete
215
+ [label]="'Search'"
216
+ [options]="suggestions()"
217
+ [minChars]="3"
218
+ [delay]="250"
219
+ [loading]="isLoading()"
220
+ (complete)="loadSuggestions($event)"
221
+ (picked)="onPick($event)"
222
+ >
223
+ <input ui-tag class="ui" type="text" autocomplete="off" [(ngModel)]="query" />
224
+ </ui-autocomplete>
225
+ ```
226
+
227
+ ---
228
+
229
+ ### Flat Example
230
+
231
+ The projected input carries `ui-flat` instead of `ui`: no borders, no
232
+ shadows — the open state reads as one soft 8%-focus surface (the house
233
+ flat language).
234
+
235
+ #### Story: Flat
236
+
237
+ ```ts
238
+ export const Flat: Story = {
239
+ render: (args) => {
240
+ const query = signal('');
241
+ const options = signal<Array<UiAutocompleteOption>>([]);
242
+ return {
243
+ props: {
244
+ ...args,
245
+ query,
246
+ options,
247
+ complete: (text: string) => options.set(answer(text)),
248
+ },
249
+ template: `
250
+ <ui-intern-header theme="theme-light"></ui-intern-header>
251
+ <section class="relative flex flex-col w-96">
252
+ <ui-autocomplete
253
+ [label]="label"
254
+ [options]="options()"
255
+ [minChars]="minChars"
256
+ [delay]="delay"
257
+ [loading]="loading"
258
+ (complete)="complete($event)"
259
+ >
260
+ <input
261
+ ui-tag
262
+ class="ui-flat"
263
+ type="text"
264
+ autocomplete="off"
265
+ placeholder="pac, atari, namco…"
266
+ [ngModel]="query()"
267
+ (ngModelChange)="query.set($event)"
268
+ />
269
+ </ui-autocomplete>
270
+ </section>
271
+ `,
272
+ };
273
+ },
274
+ };
275
+
276
+ /** The affix spinner: shown while `loading` is true (app-controlled). */
277
+ ```
278
+
279
+ ---
280
+
281
+ ### Loading Example
282
+
283
+ #### Story: Loading
284
+
285
+ ```ts
286
+ export const Loading: Story = {
287
+ args: {
288
+ loading: true,
289
+ },
290
+ render: (args) => {
291
+ return {
292
+ props: { ...args },
293
+ template: `
294
+ <ui-intern-header theme="theme-light"></ui-intern-header>
295
+ <section class="relative flex flex-col w-96">
296
+ <ui-autocomplete [label]="label" [loading]="loading">
297
+ <input ui-tag class="ui" type="text" autocomplete="off" [ngModel]="''" />
298
+ </ui-autocomplete>
299
+ </section>
300
+ `,
301
+ };
302
+ },
303
+ };
304
+ ```
@@ -0,0 +1,218 @@
1
+ ### Checkbox
2
+
3
+ A reusable and customizable checkbox component for Angular.
4
+
5
+ ---
6
+
7
+ ### What it does, and what it does not
8
+
9
+ A styled wrapper around a projected native checkbox (`ui-tag`): the label, an
10
+ optional self-painted icon variant, and the validation display through
11
+ `uiError`. Semantics, keyboard handling and form integration are the native
12
+ input's; the component adds the look and the error reporting. It is the control
13
+ for a choice that can be required or invalid — a toggle that is always valid
14
+ is `ui-switch`.
15
+
16
+ ---
17
+
18
+ > **Guide:** recommendations for `ui-checkbox` — use for, not for, instead, shown in — are served by `get_guide` (name: `ui-checkbox`). The section above is the truth; the guide is the offer.
19
+
20
+ ---
21
+
22
+ ### Overview
23
+
24
+ The `UiCheckboxComponent` provides a styled wrapper for standard checkbox inputs. It supports labels, different display types (like icons), and integration with Angular's validation system.
25
+
26
+ ---
27
+
28
+ ### Properties
29
+
30
+ The following properties can be used to configure the checkbox:
31
+
32
+ - `label`: (Input) The text label next to the box. It is tied to the box: a
33
+ projected input keeps its own `id` if it has one, otherwise the component
34
+ hands it one and points the label at it — a click on the label ticks the
35
+ box, a screen reader names it.
36
+ - `display`: (Input) The visual style of the checkbox ('none' | 'check-icon').
37
+ - `uiError`: (Input) Whether validation errors are shown (boolean, default `true`). It is on by default, so a checkbox reports an invalid state without being asked; set it to `false` where the surrounding form does the reporting itself.
38
+ - `errorLabel`: (Input) Accessible label for the error button that opens the
39
+ overlay; override for localisation (default: `'Errors'`).
40
+
41
+ ---
42
+
43
+ ### Basic Example
44
+
45
+ In this example, you can interactively change the checkbox properties.
46
+
47
+ > **Note:** This variant renders the native checkbox, and Safari is unreliable
48
+ > with author-styled native controls — the focus state stays invisible, and a
49
+ > checked box can even vanish under a transformed ancestor. Prefer the
50
+ > self-painted [Icon Example](#icon-example) below; it renders identically in
51
+ > every browser.
52
+
53
+ #### Story: Checkbox
54
+
55
+ ```ts
56
+ export const Checkbox: Story = {
57
+ render: (args) => {
58
+ return {
59
+ props: {
60
+ ...args,
61
+ },
62
+ template: `
63
+ <ui-intern-header theme="theme-light"></ui-intern-header>
64
+ <section class="relative flex flex-col">
65
+ <ui-checkbox [label]="label">
66
+ <input
67
+ class="ui"
68
+ ui-tag
69
+ [(ngModel)]="accepted"
70
+ type="checkbox"
71
+ [required]="required"
72
+ />
73
+ </ui-checkbox>
74
+ </section>
75
+ `,
76
+ };
77
+ },
78
+ };
79
+ ```
80
+
81
+ **Usage:**
82
+
83
+ ```html
84
+ <ui-checkbox [label]="'Checkbox Label'">
85
+ <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />
86
+ </ui-checkbox>
87
+ ```
88
+
89
+ ---
90
+
91
+ ### Icon Example
92
+
93
+ [Open story: Icon](?path=/story/forms-checkbox--checkbox-icon)
94
+
95
+ **Usage:**
96
+
97
+ ```html
98
+ <ui-checkbox [label]="'Checkbox Icon'" display="check-icon">
99
+ <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />
100
+ </ui-checkbox>
101
+ ```
102
+
103
+ The glyph is sized to the box (no scaling hack) and thickened with a text
104
+ stroke, because Material Icons ship a single weight.
105
+
106
+ ---
107
+
108
+ ### Flat Icon Example
109
+
110
+ The projected input carries `ui-flat` instead of `ui`: the box drops its own
111
+ surface and every shadow, and focus answers with an 8% surface instead of a
112
+ ring — the same language the flat fields speak. The frame stays, because
113
+ without one a checkbox stops reading as a control. The error state keeps its
114
+ red frame and shadow.
115
+
116
+ That is the whole variant. Anything richer — a tinted tile behind the box, a
117
+ colored frame, a different check color for a specific surface — is styling an
118
+ app puts on top; the library stays plain here on purpose, so it fits into any
119
+ of them.
120
+
121
+ ---
122
+
123
+ ### Custom properties
124
+
125
+ The colors of the check-icon box are hooks, so an app can fit it to whatever
126
+ surface it ends up on without out-specifying the library's own rules. Set them
127
+ on the element or anywhere above it — they inherit.
128
+
129
+ <table class="ui">
130
+ <thead>
131
+ <tr>
132
+ <th>Name</th>
133
+ <th>Default</th>
134
+ <th>Description</th>
135
+ </tr>
136
+ </thead>
137
+ <tbody>
138
+ <tr>
139
+ <td><code>--ui-checkbox-border-color</code></td>
140
+ <td><code>var(--ui-c-secondary)</code></td>
141
+ <td>Frame at rest.</td>
142
+ </tr>
143
+ <tr>
144
+ <td><code>--ui-checkbox-border-color-checked</code></td>
145
+ <td><code>var(--ui-c-fourthly)</code></td>
146
+ <td>
147
+ Frame while checked — the default lets it blend into the filled
148
+ surface, so the check carries the state on its own.
149
+ </td>
150
+ </tr>
151
+ <tr>
152
+ <td><code>--ui-checkbox-border-color-focus</code></td>
153
+ <td><code>var(--ui-c-focus)</code></td>
154
+ <td>Frame while the box has focus.</td>
155
+ </tr>
156
+ <tr>
157
+ <td><code>--ui-checkbox-check-color</code></td>
158
+ <td><code>var(--ui-c-focus)</code></td>
159
+ <td>The check glyph.</td>
160
+ </tr>
161
+ </tbody>
162
+ </table>
163
+
164
+ ```css
165
+ /* e.g. an inline table editor: ink on every surface the row can take */
166
+ ._my-cell {
167
+ --ui-checkbox-border-color: var(--ui-c-default);
168
+ --ui-checkbox-border-color-checked: var(--ui-c-default);
169
+ --ui-checkbox-border-color-focus: var(--ui-c-default);
170
+ --ui-checkbox-check-color: var(--ui-c-default);
171
+ }
172
+ ```
173
+
174
+ [Open story: Flat Icon](?path=/story/forms-checkbox--checkbox-icon-flat)
175
+
176
+ **Usage:**
177
+
178
+ ```html
179
+ <ui-checkbox [label]="'Checkbox Icon'" display="check-icon">
180
+ <input class="ui-flat" ui-tag type="checkbox" [(ngModel)]="accepted" />
181
+ </ui-checkbox>
182
+ ```
183
+
184
+ ---
185
+
186
+ ### Validation Example
187
+
188
+ The `UiCheckboxComponent` supports Angular's validation system. As long as `uiError` stays at its default `true`, the component visually indicates invalid states (e.g., when a required field is not checked) by showing a red error icon and border — once the box has been touched or changed, or the form around it submitted; the same rule as `ui-input`.
189
+
190
+ The error icon is a **button** above the box — a keyboard user reaches it
191
+ with Tab and opens the overlay with Enter; it carries `aria-expanded`.
192
+ Clicking it opens a floating error overlay with the validation messages;
193
+ the icon switches to a close icon while the overlay is open. Only
194
+ one error overlay is open at a time across all form fields — opening one
195
+ closes any other open overlay (coordinated by the shared
196
+ `UiFormErrorOverlayService`).
197
+
198
+ The checkbox uses the `floating` variant of the error message: a
199
+ self-contained box that only fits its text, carries a full border and hovers
200
+ with a small gap below the checkbox (unlike the full-width, field-attached
201
+ look of text inputs).
202
+
203
+ [Open story: Validation](?path=/story/forms-checkbox--checkbox-validation)
204
+
205
+ **Usage:**
206
+
207
+ ```html
208
+ <ui-checkbox [label]="'Required Checkbox'" [uiError]="true">
209
+ <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" required />
210
+ </ui-checkbox>
211
+ ```
212
+
213
+ ---
214
+
215
+ ### Types: UiCheckboxType
216
+
217
+ Available display types:
218
+ `'none' | 'check-icon'`