@mojawork/ui-docs 2.8.1 → 2.8.3

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 (187) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/typewriter.md +4 -3
  3. package/catalog/guide.json +6 -6
  4. package/catalog/layout/spinner.md +11 -2
  5. package/catalog/manifest.json +4 -4
  6. package/catalog/version.json +2 -2
  7. package/package.json +1 -1
  8. package/storybook/1183.fafda52d.iframe.bundle.js +1 -0
  9. package/storybook/2033.986e1406.iframe.bundle.js +1 -0
  10. package/storybook/2089.d5a3e21e.iframe.bundle.js +1 -0
  11. package/storybook/2127.d7de271b.iframe.bundle.js +2 -0
  12. package/storybook/2228.7013a637.iframe.bundle.js +2 -0
  13. package/storybook/2639.7f497882.iframe.bundle.js +1 -0
  14. package/storybook/2971.036e7a14.iframe.bundle.js +1 -0
  15. package/storybook/3968.3c931220.iframe.bundle.js +1 -0
  16. package/storybook/{4425.368129b3.iframe.bundle.js → 4425.7f753a38.iframe.bundle.js} +2 -2
  17. package/storybook/4476.1b913b82.iframe.bundle.js +1 -0
  18. package/storybook/{4555.e26d162c.iframe.bundle.js → 4555.574c843f.iframe.bundle.js} +1 -1
  19. package/storybook/4755.0561bac5.iframe.bundle.js +23 -0
  20. package/storybook/{4755.e4656207.iframe.bundle.js.map → 4755.0561bac5.iframe.bundle.js.map} +1 -1
  21. package/storybook/4935.f88465d9.iframe.bundle.js +1 -0
  22. package/storybook/5568.be85a9aa.iframe.bundle.js +1 -0
  23. package/storybook/6824.4b8f7b0a.iframe.bundle.js +1 -0
  24. package/storybook/8051.dbaf9937.iframe.bundle.js +1 -0
  25. package/storybook/871.5a781df6.iframe.bundle.js +1 -0
  26. package/storybook/8819.8e56201f.iframe.bundle.js +1 -0
  27. package/storybook/9850.5a17be74.iframe.bundle.js +1 -0
  28. package/storybook/9946.6fea16dc.iframe.bundle.js +1 -0
  29. package/storybook/_external-mwork-banner-docs-mdx.f33bbf56.iframe.bundle.js +1 -0
  30. package/storybook/_external-mwork-basic-interpreter-docs-mdx.81168b4c.iframe.bundle.js +1 -0
  31. package/storybook/_external-mwork-music-player-docs-mdx.46f4887e.iframe.bundle.js +1 -0
  32. package/storybook/assets/ui/sounds/type.mp3 +0 -0
  33. package/storybook/atoms-_electrons-form-error-message-docs-mdx.9382b0cb.iframe.bundle.js +1 -0
  34. package/storybook/atoms-_electrons-loader-docs-mdx.e8bb9642.iframe.bundle.js +1 -0
  35. package/storybook/atoms-background-docs-mdx.0e861f2c.iframe.bundle.js +1 -0
  36. package/storybook/atoms-barcode-docs-mdx.78b610dc.iframe.bundle.js +1 -0
  37. package/storybook/atoms-buzzer-docs-mdx.f9daf952.iframe.bundle.js +1 -0
  38. package/storybook/atoms-card-docs-mdx.f8b63920.iframe.bundle.js +1 -0
  39. package/storybook/atoms-chart-docs-mdx.29f10b89.iframe.bundle.js +1 -0
  40. package/storybook/atoms-clock-docs-mdx.6864626c.iframe.bundle.js +1 -0
  41. package/storybook/atoms-copy-value-docs-mdx.fbe168e2.iframe.bundle.js +1 -0
  42. package/storybook/atoms-image-grid-docs-mdx.9df158a9.iframe.bundle.js +1 -0
  43. package/storybook/atoms-image-slider-docs-mdx.4ae341f5.iframe.bundle.js +1 -0
  44. package/storybook/atoms-inline-spinner-docs-mdx.8b942147.iframe.bundle.js +1 -0
  45. package/storybook/atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js +2 -0
  46. package/storybook/atoms-mosaic-docs-mdx.738f012c.iframe.bundle.js +1 -0
  47. package/storybook/atoms-placeholder-docs-mdx.7d376291.iframe.bundle.js +1 -0
  48. package/storybook/atoms-qr-code-docs-mdx.c47f67c9.iframe.bundle.js +1 -0
  49. package/storybook/atoms-rating-docs-mdx.d7df9a29.iframe.bundle.js +1 -0
  50. package/storybook/atoms-reader-doc-docs-mdx.f5375a37.iframe.bundle.js +1 -0
  51. package/storybook/atoms-text-animate-docs-mdx.152fc1bd.iframe.bundle.js +1 -0
  52. package/storybook/atoms-thumb-docs-mdx.525fc046.iframe.bundle.js +1 -0
  53. package/storybook/atoms-timer-docs-mdx.686f0392.iframe.bundle.js +1 -0
  54. package/storybook/atoms-typewriter-docs-mdx.a6c3f6b0.iframe.bundle.js +1 -0
  55. package/storybook/atoms-typewriter-typewriter-component-stories.3a4f5356.iframe.bundle.js +1 -0
  56. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.0aa5b787.iframe.bundle.js +1 -0
  57. package/storybook/cdk-components-table-docs-mdx.74bd247c.iframe.bundle.js +1 -0
  58. package/storybook/examples-docs-mdx.1a9d8db0.iframe.bundle.js +1 -0
  59. package/storybook/examples-image-grid-slider-docs-mdx.e56160ef.iframe.bundle.js +1 -0
  60. package/storybook/examples-layout-docs-mdx.d7d6f90b.iframe.bundle.js +1 -0
  61. package/storybook/examples-table-edit-focus-docs-mdx.55960e55.iframe.bundle.js +1 -0
  62. package/storybook/examples-transloco-docs-mdx.46447d84.iframe.bundle.js +2 -0
  63. package/storybook/forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js +2 -0
  64. package/storybook/forms-autofocus-docs-mdx.ce239261.iframe.bundle.js +1 -0
  65. package/storybook/forms-checkbox-checkbox-component-stories.df3196e5.iframe.bundle.js +1 -0
  66. package/storybook/forms-checkbox-docs-mdx.890972f3.iframe.bundle.js +1 -0
  67. package/storybook/forms-chip-docs-mdx.89a48075.iframe.bundle.js +1 -0
  68. package/storybook/forms-input-docs-mdx.56627297.iframe.bundle.js +1 -0
  69. package/storybook/forms-input-input-component-stories.b68ea104.iframe.bundle.js +1 -0
  70. package/storybook/forms-slider-docs-mdx.68b9e21c.iframe.bundle.js +1 -0
  71. package/storybook/forms-switch-docs-mdx.832228cb.iframe.bundle.js +1 -0
  72. package/storybook/forms-validators-docs-mdx.e11fe615.iframe.bundle.js +1 -0
  73. package/storybook/home-guide-mdx.2f32ffc1.iframe.bundle.js +1 -0
  74. package/storybook/{home-overview-mdx.0e32f57f.iframe.bundle.js → home-overview-mdx.9b160561.iframe.bundle.js} +1 -1
  75. package/storybook/home-tips-mdx.24dc3e35.iframe.bundle.js +1 -0
  76. package/storybook/iframe.html +2 -2
  77. package/storybook/layout-main-docs-mdx.445bce2a.iframe.bundle.js +1 -0
  78. package/storybook/layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js +2 -0
  79. package/storybook/layout-nav-docs-mdx.92eac076.iframe.bundle.js +1 -0
  80. package/storybook/layout-overlay-docs-mdx.a680859b.iframe.bundle.js +1 -0
  81. package/storybook/layout-overlay-header-docs-mdx.6eb6e326.iframe.bundle.js +1 -0
  82. package/storybook/layout-spinner-docs-mdx.d4e5afec.iframe.bundle.js +1 -0
  83. package/storybook/layout-spinner-spinner-component-stories.6b27a0bf.iframe.bundle.js +1 -0
  84. package/storybook/layout-splitter-docs-mdx.6b0e4fd2.iframe.bundle.js +1 -0
  85. package/storybook/layout-tabs-docs-mdx.aad59db3.iframe.bundle.js +1 -0
  86. package/storybook/layout-top-scroll-bottom-docs-mdx.42c18a0d.iframe.bundle.js +1 -0
  87. package/storybook/molecules-image-editor-docs-mdx.dba18ee6.iframe.bundle.js +1 -0
  88. package/storybook/project.json +1 -1
  89. package/storybook/{runtime~main.786a8152.iframe.bundle.js → runtime~main.805054f3.iframe.bundle.js} +1 -1
  90. package/storybook/styling-colors-docs-mdx.3f513a8d.iframe.bundle.js +1 -0
  91. package/storybook/styling-css-variables-docs-mdx.5a090407.iframe.bundle.js +1 -0
  92. package/storybook/styling-forms-docs-mdx.649ae948.iframe.bundle.js +1 -0
  93. package/storybook/styling-icons-docs-mdx.e3ed5ebd.iframe.bundle.js +1 -0
  94. package/storybook/styling-layers-docs-mdx.d810a2c8.iframe.bundle.js +1 -0
  95. package/storybook/styling-tags-docs-mdx.ce4814c9.iframe.bundle.js +1 -0
  96. package/storybook/styling-ui-tags-docs-mdx.d94258ab.iframe.bundle.js +1 -0
  97. package/storybook/version.json +2 -2
  98. package/version.json +2 -2
  99. package/storybook/1183.da25800b.iframe.bundle.js +0 -1
  100. package/storybook/2033.c705a7ce.iframe.bundle.js +0 -1
  101. package/storybook/2089.32694489.iframe.bundle.js +0 -1
  102. package/storybook/2127.29f153d2.iframe.bundle.js +0 -2
  103. package/storybook/2228.77650ef1.iframe.bundle.js +0 -2
  104. package/storybook/2639.29baa8af.iframe.bundle.js +0 -1
  105. package/storybook/2971.edb202b4.iframe.bundle.js +0 -1
  106. package/storybook/3968.69b812e4.iframe.bundle.js +0 -1
  107. package/storybook/4476.f8e4115f.iframe.bundle.js +0 -1
  108. package/storybook/4755.e4656207.iframe.bundle.js +0 -23
  109. package/storybook/4935.8959522b.iframe.bundle.js +0 -1
  110. package/storybook/5568.c6172f92.iframe.bundle.js +0 -1
  111. package/storybook/6824.f5eb8bb7.iframe.bundle.js +0 -1
  112. package/storybook/8051.719eb790.iframe.bundle.js +0 -1
  113. package/storybook/871.428deceb.iframe.bundle.js +0 -1
  114. package/storybook/8819.220ca21d.iframe.bundle.js +0 -1
  115. package/storybook/9850.28367747.iframe.bundle.js +0 -1
  116. package/storybook/9946.36014b4e.iframe.bundle.js +0 -1
  117. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +0 -1
  118. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +0 -1
  119. package/storybook/_external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js +0 -1
  120. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +0 -1
  121. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +0 -1
  122. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +0 -1
  123. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +0 -1
  124. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +0 -1
  125. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +0 -1
  126. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +0 -1
  127. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +0 -1
  128. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +0 -1
  129. package/storybook/atoms-image-grid-docs-mdx.8161de39.iframe.bundle.js +0 -1
  130. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +0 -1
  131. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +0 -1
  132. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +0 -2
  133. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +0 -1
  134. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +0 -1
  135. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +0 -1
  136. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +0 -1
  137. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +0 -1
  138. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +0 -1
  139. package/storybook/atoms-thumb-docs-mdx.7286b617.iframe.bundle.js +0 -1
  140. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +0 -1
  141. package/storybook/atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js +0 -1
  142. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +0 -1
  143. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +0 -1
  144. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +0 -1
  145. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +0 -1
  146. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +0 -1
  147. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +0 -1
  148. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +0 -1
  149. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +0 -2
  150. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +0 -2
  151. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +0 -1
  152. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +0 -1
  153. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +0 -1
  154. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +0 -1
  155. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +0 -1
  156. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +0 -1
  157. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +0 -1
  158. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +0 -1
  159. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +0 -1
  160. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +0 -1
  161. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +0 -1
  162. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +0 -1
  163. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +0 -2
  164. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +0 -1
  165. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +0 -1
  166. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +0 -1
  167. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +0 -1
  168. package/storybook/layout-spinner-spinner-component-stories.69ae1389.iframe.bundle.js +0 -1
  169. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +0 -1
  170. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +0 -1
  171. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +0 -1
  172. package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +0 -1
  173. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +0 -1
  174. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +0 -1
  175. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +0 -1
  176. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +0 -1
  177. package/storybook/styling-layers-docs-mdx.a563260e.iframe.bundle.js +0 -1
  178. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +0 -1
  179. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +0 -1
  180. /package/storybook/{2127.29f153d2.iframe.bundle.js.LICENSE.txt → 2127.d7de271b.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook/{2228.77650ef1.iframe.bundle.js.LICENSE.txt → 2228.7013a637.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook/{4425.368129b3.iframe.bundle.js.LICENSE.txt → 4425.7f753a38.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook/{4755.e4656207.iframe.bundle.js.LICENSE.txt → 4755.0561bac5.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /package/storybook/{atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt → atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js.LICENSE.txt} +0 -0
  185. /package/storybook/{examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt → examples-transloco-docs-mdx.46447d84.iframe.bundle.js.LICENSE.txt} +0 -0
  186. /package/storybook/{forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt → forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js.LICENSE.txt} +0 -0
  187. /package/storybook/{layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt → layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9217,9918],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/barcode/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_barcode_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-barcode.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"barcode",children:"Barcode"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Draws an EAN-13 as an inline SVG — bars and the human-readable digits\nunderneath."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"It draws. Where the code comes from, whether it gets printed, what happens on a\nclick: none of that is a barcode's business. A component that also printed\nwould force anyone wanting a bar somewhere else to take the printing along."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The same line runs through the encoding itself, one step further in.\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ean13Modules"})," answers what a code draws, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ean13FromNumber"})," does the arithmetic\nthat turns a number into one — but ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"which"})," number, and under which prefix, is\nthe application's decision and stays there. An ISBN, a database id, a box on a\nshelf: the norm has no opinion about any of it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-barcode",entry:_guide_ui_barcode_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"size",children:"Size"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Size comes from the outside, and the SVG fills the width it is given. The\ncomponent brings a default width so it is visible without any styling at all."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A barcode too small to scan is a layout decision; the component cannot prevent\nit and does not try."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__.Sizes}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"a-tailwind-width-reaches-it",children:"A Tailwind width reaches it"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The default is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"width: 14rem"})," in the component's own stylesheet, and a\nconsumer's utility beats it: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="w-64"'})," renders 160px, measured in the\nstory above. That is not the barcode's doing but the library's cascade\nlayers — every component style sits in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui.components"}),", below Tailwind's\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"utilities"}),", so a default stays a default. The rule and what it asks of a\nconsumer are on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/styling-layers--docs",children:"Styling page"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"always-black-on-white",children:"Always black on white"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The label keeps its colours in both themes, on purpose. It is meant to be\nSCANNED, and a scanner has no opinion about dark mode — a barcode that politely\ninverts itself is a barcode that stops working."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_barcode_component_stories__WEBPACK_IMPORTED_MODULE_4__.OnDarkSurface}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"a-code-it-cannot-use-is-not-drawn",children:"A code it cannot use is not drawn"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two things make a code unusable, and the component checks both: the shape —\nthirteen digits, nothing else — and the check digit, which has to agree with the\nother twelve."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The second one is the reason the first is not enough. A well-formed code with a\nwrong check digit looks perfectly ordinary and no scanner will take it, which is\nthe harder failure to spot: it only shows at the till, after the label has been\nprinted and stuck on."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Both mean the same thing to whoever holds the label, so they share one state and\none sentence. The bars are not drawn — a picture that cannot be scanned is worse\nthan a line of text, because it looks like it works."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"code"})," control of the first story carries the second, harder case as\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"4006381333930 (invalid)"})," — the story's own default with its final digit\nchanged, one character away from a code that works."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"an-empty-code-is-not-a-failure",children:"An empty code is not a failure"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Nothing given means nothing was asked. The component says so quietly and reports\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),", so a form does not accuse a field nobody has filled in\nyet."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The text is a statement, not a request: only whoever supplies the code knows what\nis missing, and whether there is a field to type it into at all."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Pick ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(empty)"})," in the first story's control to see it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("tbody",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"code"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"— (required)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The thirteen digits to draw. Anything else is refused. The first digit\nis never drawn as bars of its own; it only decides the parity pattern of\nthe left half."})})]})})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"outputs",children:"Outputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("tbody",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"invalidCode"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Whether a code that was given cannot be used — wrong shape or wrong\ncheck digit, the two are not told apart. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})," means nothing\nwas asked of the component: an empty value is not a failure, it is\nsimply nothing to draw."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Not plain ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"invalid"}),": that is a native DOM event, and an\noutput may not borrow one."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["It reports a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"state"}),", not an event, and therefore fires\nonce on init and again on every change — including the one that puts\nthings right. A form bound to a changing code is told when the trouble is\nover as well as when it starts."]})]})]})})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"exported-functions",children:"Exported functions"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Signature"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ean13CheckDigit"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(first12: string) => number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The check digit for the first twelve digits — modulo 10, weights 1 and\n3. Useful for building a code, and for asking whether one is sound."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"isValidEan13"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(code: string) => boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Shape and check digit in one question, and the one the component asks\nbefore it draws anything."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ean13FromNumber"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(value: number, prefix: string) => string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Mints a valid code from a plain number: padded out to the digits the\nprefix leaves free, check digit appended. Throws when the number no\nlonger fits — a number that has outgrown its range is a data problem,\nand it belongs where the number is issued rather than in a quietly wrong\nlabel. See below for the prefix."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ean13Modules"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(code: string) => string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The 95-module pattern as a string of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"}),",\nwhere ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"})," is a bar: guard, six digits, centre, six digits,\nguard. Throws when the input is not thirteen digits. The check digit is\nnot verified here — that is what ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"isValidEan13"})," is for."]})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"turning-a-number-into-a-code",children:"Turning a number into a code"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A shelf, a box, a book without an ISBN: anything that only exists on the\npremises needs a code before it can have a barcode. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ean13FromNumber"})," does the\narithmetic; the prefix stays the caller's decision, because only the caller\nknows what its numbers mean."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"[code]=\"ean13FromNumber(12, '201')\" // → 2010000000120\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["GS1 reserves the range ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"20"}),"–",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"29"})," for exactly this: codes that never pass a\nforeign till. Padding with zeros instead would produce a code beginning with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"0"}),", and a scanner reads that as a UPC-A — it works, but it claims an origin\nthat is not true."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The digits a prefix leaves are what limits the numbers: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"201"})," leaves nine, so\n999 999 999 boxes. Different prefixes for different things (boxes, books, …)\nmeans a scan says what was scanned."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,OnDarkSurface:()=>OnDarkSurface,Sizes:()=>Sizes,__namedExportsOrder:()=>__namedExportsOrder,default:()=>barcode_component_stories});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var barcode_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/barcode/barcode.component.css?ngResource"),barcode_componentngResource_default=__webpack_require__.n(barcode_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");function ean13CheckDigit(first12){return(10-[...first12].reduce((acc,digit,i)=>acc+Number(digit)*(i%2==0?1:3),0)%10)%10}const L_CODES=["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G_CODES=["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R_CODES=["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],PARITY=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];let UiBarcodeComponent=class UiBarcodeComponent{code=core.input.required();invalidCode=(0,core.output)();state=(0,_resource_chunk.EW)(()=>{const code=this.code();return 0===code.length?null:!function isValidEan13(code){return!!/^\d{13}$/.test(code)&&ean13CheckDigit(code.slice(0,12))===Number(code[12])}(code)});bars=(0,_resource_chunk.EW)(()=>{if(!1!==this.state())return[];const modules=function ean13Modules(code){if(!/^\d{13}$/.test(code))throw new Error(`ean13Modules: not a 13-digit code: ${code}`);const digits=[...code].map(Number),parity=PARITY[digits[0]];let modules="101";for(let i=1;i<=6;i++)modules+=("L"===parity[i-1]?L_CODES:G_CODES)[digits[i]];modules+="01010";for(let i=7;i<=12;i++)modules+=R_CODES[digits[i]];return`${modules}101`}(this.code()),bars=[];for(let i=0;i<modules.length;i++){if("1"!==modules[i])continue;const start=i;for(;i+1<modules.length&&"1"===modules[i+1];)i++;bars.push({x:start,width:i-start+1})}return bars});constructor(){(0,_effect_chunk2.QZP)(()=>this.invalidCode.emit(this.state()))}static ctorParameters=()=>[];static propDecorators={code:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"code",required:!0,transform:void 0}]}],invalidCode:[{type:_debug_node_chunk.k7i,args:["invalidCode"]}]}};UiBarcodeComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-barcode",template:'@if (bars().length) {\n \x3c!-- 95 modules wide, 2 user units per module plus an 8-unit quiet zone on\n each side. The viewBox carries the whole geometry, so the rendered size\n is entirely a matter of CSS. --\x3e\n <svg\n [attr.viewBox]="\'0 0 \' + (95 * 2 + 16) + \' 80\'"\n role="img"\n [attr.aria-label]="code()"\n >\n <rect x="0" y="0" [attr.width]="95 * 2 + 16" height="80" fill="#fff" />\n @for (bar of bars(); track bar.x) {\n <rect\n [attr.x]="8 + bar.x * 2"\n y="4"\n [attr.width]="bar.width * 2"\n height="56"\n fill="#000"\n />\n }\n <text\n x="50%"\n y="74"\n text-anchor="middle"\n font-size="12"\n font-family="monospace"\n fill="#000"\n >\n {{ code() }}\n </text>\n </svg>\n} @else if (state()) {\n <p class="_message">{{ \'barcode.invalid\' | transloco }}</p>\n} @else {\n \x3c!-- Nothing was given. A statement, not a request: only whoever supplies the\n code knows what is missing. --\x3e\n <p class="_hint">{{ \'barcode.empty\' | transloco }}</p>\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[barcode_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiBarcodeComponent);const barcode_component_stories={title:"Atoms/Barcode",component:UiBarcodeComponent,argTypes:{code:{control:{type:"select",labels:{4006381333930:"4006381333930 (invalid)","":"(empty)"}},options:["4006381333931","9783462033748","5012345678900","4260000000004","4006381333930",""]}}},Default={args:{code:"4006381333931"},render:args=>({props:{...args},template:'<ui-barcode [code]="code"></ui-barcode>'})},Sizes={args:{code:"4006381333931"},render:args=>({props:{...args},template:'\n <section class="flex flex-col items-start gap-4">\n <ui-barcode class="w-40" [code]="code"></ui-barcode>\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n <ui-barcode class="w-96" [code]="code"></ui-barcode>\n </section>\n '})},OnDarkSurface={args:{code:"4006381333931"},render:args=>({props:{...args},template:'\n <section class="flex gap-4 bg-black p-8">\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n </section>\n '})},__namedExportsOrder=["Default","Sizes","OnDarkSurface"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n code: '4006381333931'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `<ui-barcode [code]=\"code\"></ui-barcode>`\n })\n}",...Default.parameters?.docs?.source},description:{story:"The default: a valid EAN-13 with its digits underneath. Pick another code\nfrom the control to see the pattern change — the first digit is not drawn\nat all, it only decides the parity of the left half.\n\nThe last entry in the list is the one to try: `4006381333930` differs from\nthe first by a single digit and is refused, because the check digit no\nlonger agrees with the other twelve.",...Default.parameters?.docs?.description}}},Sizes.parameters={...Sizes.parameters,docs:{...Sizes.parameters?.docs,source:{originalSource:'{\n args: {\n code: \'4006381333931\'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `\n <section class="flex flex-col items-start gap-4">\n <ui-barcode class="w-40" [code]="code"></ui-barcode>\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n <ui-barcode class="w-96" [code]="code"></ui-barcode>\n </section>\n `\n })\n}',...Sizes.parameters?.docs?.source},description:{story:"Size comes from the outside. The SVG fills the width it is given, and the\nbars stay proportional — a barcode that is too small to scan is a layout\ndecision, not something the component can prevent.\n\nThree plain utilities, no `!`: the component's `width: 14rem` lives in the\n`ui.components` layer below Tailwind's `utilities`, so `w-40`, `w-64` and\n`w-96` render at 100, 160 and 240px (tickets#241). They used to need a `!`\neach, and without it all three stood at 140px — a story that looked fine\nuntil someone measured it.",...Sizes.parameters?.docs?.description}}},OnDarkSurface.parameters={...OnDarkSurface.parameters,docs:{...OnDarkSurface.parameters?.docs,source:{originalSource:'{\n args: {\n code: \'4006381333931\'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `\n <section class="flex gap-4 bg-black p-8">\n <ui-barcode class="w-64" [code]="code"></ui-barcode>\n </section>\n `\n })\n}',...OnDarkSurface.parameters?.docs?.source},description:{story:"Black on white in both themes, on purpose. The label is meant to be\nscanned, and a scanner has no opinion about dark mode — a barcode that\ninverts itself politely is a barcode that stops working.",...OnDarkSurface.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/barcode/barcode.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-barcode {\n display: block;\n /* A sensible default; override from the outside for anything else. */\n width: 14rem;\n\n svg {\n display: block;\n width: 100%;\n height: auto;\n border-radius: calc(var(--ui-border-radius) / 2);\n }\n\n /* The two states that carry a sentence instead of a picture. They borrow the\n image editor's pair, so a refusal reads the same wherever it appears: what\n went wrong is loud, what is simply absent is quiet. */\n ._message {\n margin: 0;\n padding: calc(var(--ui-spacer) * 0.25) calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-warn);\n color: var(--ui-c-static);\n border-radius: var(--ui-border-radius);\n }\n\n ._hint {\n margin: 0;\n text-align: center;\n color: var(--ui-c-default);\n opacity: 0.75;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4320,7419],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/buzzer/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_buzzer_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-buzzer.json");function _createMdxContent(props){const _components={code:"code",em:"em",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"buzzer",children:"Buzzer"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable buzzer component for Angular."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A big round button that answers a press with shadow, not outlines — optionally\npulsing or rotating, and able to fill its parent. It is a button and nothing\nmore: it shows what is projected into it, its tint comes from\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"})," rather than an input, and what a press means is decided\nwhere it is used. It carries no label, icon or state of its own."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-buzzer",entry:_guide_ui_buzzer_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiBuzzerComponent"})," is an interactive buzzer button with an optional looping animation and the ability to fill its parent; its tint is set through the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"})," CSS variable. Its focus halo is a keyboard mark (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible"}),"): a pointer press leaves no lasting focus styling, while a keyboard focus keeps its position and its halo."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the buzzer:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animate"}),": (Input) The type of animation to apply. Available options: 'pulse', 'rotate', or null."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"}),": (Input) When true, the buzzer takes the size of its parent instead of its own 12rem minimum. The parent needs a size of its own."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-three-states",children:"The three states"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The buzzer answers in shadow, not in outlines — the same halo throughout, only\nits colour and its size change. Measured:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"State"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"box-shadow"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Reads as"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"resting"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 1rem rgba(0,0,0,0.1)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Sitting above the surface."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"focused (keyboard)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Same shape, tinted — keyboard-focused without losing its depth."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"pressed"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 0.25rem rgba(0,0,0,0.4)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Halo pulled in and darkened: pushed down."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The focus rule carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":not(:active)"}),", and that is not decoration. It sits\nafter the pressed rule at equal specificity, so without it a focused buzzer\nwould keep the focus halo while being pressed and stop reacting to the press\naltogether — which is exactly what happened once."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The halo is the only focus mark there is: the library's global button rule\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"forms.css"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible:is([class^='ui'])"}),") removes the outline, and the\nclass ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-buzzer"})," starts with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),", so it is caught by that rule too. Both rules\nanswer ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible"}),", so the halo shows for a keyboard focus and a pointer\npress leaves nothing behind — the buzzer no longer blurs itself to wipe a ring."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The tint is a CSS variable, not an input — set it from the outside:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"}),": the fill behind the translucent sheen. Any CSS color or\ntoken (e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"#ff0000"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-primary)"}),"). Defaults to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The story below sets it per buzzer (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'[style.--ui-buzzer-color]="…"'}),"), so the\ncolour you see is the example."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In this example the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animate"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"})," controls drive all five buzzers. The\ncolors are fixed — they are the point of this example, and each buzzer sets its\nown through the CSS variable."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Note what ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"}),' needs to work: a parent with a size of its own. Each buzzer\nhere sits in a cell of a fixed width and height, because "fill the parent" is a\nquestion a parent sized by its own content cannot answer.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__.Buzzer}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-buzzer style="--ui-buzzer-color: #ffcdff" [animate]="\'pulse\'">0</ui-buzzer>\n\n\x3c!-- fillParent needs a parent that has a size --\x3e\n<div style="width: 18rem; height: 18rem">\n <ui-buzzer [fillParent]="true">0</ui-buzzer>\n</div>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"animation-overview",children:"Animation Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This overview shows available buzzer animations."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__.BuzzerAnimate}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-buzzer"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.Emulated"})," (default)"]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"type-uibuzzeranimatetypes",children:"Type: UiBuzzerAnimateTypes"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available animations:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'pulse' | 'rotate' | null"})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Buzzer:()=>Buzzer,BuzzerAnimate:()=>BuzzerAnimate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>buzzer_component_stories});var _common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var buzzer_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.css?ngResource"),buzzer_componentngResource_default=__webpack_require__.n(buzzer_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiBuzzerComponent=class UiBuzzerComponent{animate=(0,core.input)(null);fillParent=(0,core.input)(!1);static propDecorators={animate:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animate",required:!1,transform:void 0}]}],fillParent:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fillParent",required:!1,transform:void 0}]}]}};UiBuzzerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-buzzer",template:'<button\n class="ui-buzzer"\n [class]="animate() ?? \'\'"\n [class._-fill-parent]="fillParent()"\n>\n <ng-content></ng-content>\n</button>\n',styles:[buzzer_componentngResource_default()]})],UiBuzzerComponent);const buzzer_component_stories={title:"Atoms/Buzzer",component:UiBuzzerComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiBuzzerComponent]})],argTypes:{animate:{control:"select",options:["pulse","rotate",null]},fillParent:{control:"boolean"},colors:{table:{disable:!0},control:!1},cssVars:{table:{disable:!0},control:!1},cssVarsGlobal:{table:{disable:!0},control:!1}},args:{animate:null,fillParent:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},data={colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"],cssVars:["var(--ui-c-default)","var(--ui-c-default-invert)","var(--ui-c-primary)","var(--ui-c-primary-invert)","var(--ui-c-secondary)","var(--ui-c-thirdly)","var(--ui-c-fourthly)","var(--ui-c-background)"],cssVarsGlobal:["var(--ui-c-success)","var(--ui-c-error)","var(--ui-c-warn)","var(--ui-c-focus)","var(--ui-c-static)","var(--ui-c-static-invert)"]},Buzzer={render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the `fillParent` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n `fillParent` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n '})},BuzzerAnimate={parameters:{controls:{disable:!0}},render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n '})},__namedExportsOrder=["Buzzer","BuzzerAnimate"];Buzzer.parameters={...Buzzer.parameters,docs:{...Buzzer.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the \\`fillParent\\` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n \\`fillParent\\` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...Buzzer.parameters?.docs?.source}}},BuzzerAnimate.parameters={...BuzzerAnimate.parameters,docs:{...BuzzerAnimate.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n `\n };\n }\n}',...BuzzerAnimate.parameters?.docs?.source},description:{story:"Both looping animations side by side. They are named in the template, not\ntaken from the args, so the Controls panel is removed here rather than left\nstanding with settings that move nothing — the interactive one is the story\nabove.",...BuzzerAnimate.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/buzzer/buzzer.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes pulse {\n 0% {\n transform: scale(1);\n }\n\n 10% {\n transform: scale(0.9);\n }\n\n 20% {\n transform: scale(1);\n }\n\n 30% {\n transform: scale(0.9);\n }\n\n 40% {\n transform: scale(1);\n }\n}\n\n@keyframes rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.ui-buzzer {\n display: flex;\n border-radius: 50%;\n min-width: 12rem;\n min-height: 12rem;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n font-size: 2.4rem;\n transition: 0.05s;\n -webkit-appearance: none;\n -moz-appearance: none;\n box-shadow: 0 0 0.25rem 1rem rgba(0, 0, 0, 0.1);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.4) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n /* The tint sits BEHIND the translucent sheen. A CSS variable, not an input:\n it repeats in :active/:focus because their `background:` shorthand resets\n the color, and the tint must survive both states (tickets#183). */\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 0 rgba(255, 255, 255, 0.1);\n &._-fill-parent {\n min-width: 100%;\n min-height: 100%;\n }\n &.pulse,\n &.rotate {\n animation-duration: 2s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n }\n &.pulse {\n animation-name: pulse;\n }\n &.rotate {\n animation-name: rotate;\n }\n}\n\n.ui-buzzer:active {\n box-shadow: 0 0 0.25rem 0.25rem rgba(0, 0, 0, 0.4);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n\n/* `:not(:active)` is load-bearing: the pressed state below sets a tight, dark\n shadow — that is the push-down effect — and a focus rule of equal weight\n sitting later in the file would win over it, so a focused buzzer would stop\n reacting to being pressed. While it IS pressed, the press wins.\n\n `:focus-visible`, not `:focus`: the halo is a keyboard mark. A pointer press\n leaves no lasting focus ring — the buzzer used to blur itself after every\n click to wipe one (tickets#248) — so the keyboard keeps its position and the\n halo appears only for a keyboard focus. */\n.ui-buzzer:focus-visible:not(:active) {\n /* The resting halo STAYS and only changes colour. Two things fight over it:\n the global button rule in forms.css matches `:focus-visible:is([class^='ui'])` —\n and `ui-buzzer` starts with `ui` — replacing the shadow with a hard ring\n at spread 0, which makes the buzzer look flat exactly when it is active.\n A blue halo of the same shape says \"focused\" without taking the depth\n away, and it is the only focus mark left: the global rule also kills the\n outline. */\n border-color: transparent;\n box-shadow: 0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4947,8852],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/card/card.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>UiCardComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var card_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.css?ngResource"),card_componentngResource_default=__webpack_require__.n(card_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiCardComponent=class UiCardComponent{headline=(0,core.input)(null);icon=(0,core.input)(null);iconSize=(0,core.input)(null);static propDecorators={headline:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"headline",required:!1,transform:void 0}]}],icon:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"icon",required:!1,transform:void 0}]}],iconSize:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"iconSize",required:!1,transform:void 0}]}]}};UiCardComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-card",template:'<div>\n <div class="_wrapper">\n @if (icon()) {\n \x3c!-- The ligature name is text content, so a screen reader would read out\n "lock_open" or "shopping_cart". The card offers a `headline` right\n next to it, which is where the meaning belongs — the icon here is\n decoration and says so. --\x3e\n <div\n class="ui-icon"\n aria-hidden="true"\n [class.x1]="iconSize() === \'x1\'"\n [class.x2]="iconSize() === \'x2\'"\n [class.x3]="iconSize() === \'x3\'"\n [class.x4]="iconSize() === \'x4\' || !iconSize()"\n >\n {{ icon() }}\n </div>\n }\n @if (headline()) {\n <div class="ui-h4">\n <strong>{{ headline() }}</strong>\n </div>\n }\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[card_componentngResource_default()]})],UiCardComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/card/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_card_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_card_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-card.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_card_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"card",children:"Card"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable card component for Angular."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A presentational container: an optional headline and icon above projected\ncontent, coloured through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-text"}),". It is an atom\nand composes nothing — it does not copy, link, expand or collapse. A card that\nshould copy a value on click is wrapped in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-copy-value"}),"; a card that should\nbe a link is placed inside one."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-card",entry:_guide_ui_card_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiCardComponent"})," provides a container for content with support for headlines and icons; its background and text colours come from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-text"})," CSS variables. It is designed to be a flexible building block for any UI layout."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The card is presentational: headline, icon and projected content, nothing\nelse. Colour and icon variant are CSS variables rather than inputs. It no longer copies. Click-to-copy used to be a second\njob baked in here — which meant anyone who wanted it around something that was\nnot a card had to reach for a card anyway. That behaviour lives in\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-copy-value"})," alone now. For a copyable card, wrap one:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'<ui-copy-value [value]="…"><ui-card …></ui-card></ui-copy-value>'}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the card:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"headline"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Input"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"An optional headline string to display at the top of the card."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"icon"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Input"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"An optional icon name string to display next to the headline."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"iconSize"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiCardIconSize | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The icon size: 'x1', 'x2', 'x3', or 'x4'. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"}),", which renders as 'x4'."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Colours are CSS variables, not inputs — set them from the outside; both\ndefault to their ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-*"})," token:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"}),": the card background. Any CSS color or token. Default\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-text"}),": the icon and headline colour. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-default)"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-icon-font"}),": the icon's ligature font — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'Material Icons'"})," (default) or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'Material Icons Outlined'"}),"."]}),"\n"]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The story below binds them per card, so the colours you see are the example."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This used to be an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"outline"})," input, and that name was wrong twice: it never\noutlined the CARD, it only swapped the icon's font, and which icon font to use\nis a property of icons rather than of cards. As a variable it also ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"inherits"}),"\n— set it once on a container and every icon inside follows, instead of\nrepeating a boolean on each card."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Worth knowing before reaching for it: the two fonts differ only where an icon\nhas a fill to leave out. Line-drawn glyphs — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"search"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"star"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"check"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"close"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"arrow_back"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"menu"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"add"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"refresh"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"favorite"})," — are\npixel-identical in both, so the variable appears to do nothing on them. The\ncontrol in the story therefore offers icons that do change: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"home"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"lock"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"visibility"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"mail"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delete"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"sizing",children:"Sizing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The tag itself has no box. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-card"})," is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"display: contents"}),", so the element the\ngrid places is the inner surface, not the tag — and a size set on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-card"}),"\nfrom outside changes the computed value while moving no layout at all\n(measured: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"getBoundingClientRect()"})," on the tag is 0x0, whatever you set)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Size the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"cell"})," the card sits in, not the card:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<div class="h-64 w-64">\n <ui-card [icon]="\'home\'"></ui-card>\n</div>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["For the same reason the card cannot clip: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow"})," on a tag with no box does\nnothing. Content that must not spill is the caller's job — the headline is the\none exception, it is cut with an ellipsis by the card itself."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In this example you can change headline, icon, icon size, text colour and the\nicon font. The background colours are fixed — they are the point of this\nexample, and each card sets its own through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_card_component_stories__WEBPACK_IMPORTED_MODULE_4__.Card}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:"<ui-card\n style=\"--ui-card-bg: #ffcdff; --ui-card-text: #000000; --ui-icon-font: 'Material Icons Outlined'\"\n [headline]=\"'Card Title'\"\n [icon]=\"'home'\"\n [iconSize]=\"'x4'\">\n <span>Card content goes here.</span>\n</ui-card>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-card"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"})]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component uses ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"}),", which means its styles are applied globally and can affect elements outside the component's scope if not properly scoped."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/card/card.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Card:()=>Card,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_forms__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_card_component__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Card",component:_card_component__WEBPACK_IMPORTED_MODULE_4__.O,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({providers:[],imports:[_angular_forms__WEBPACK_IMPORTED_MODULE_0__.YN,_card_component__WEBPACK_IMPORTED_MODULE_4__.O,_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__.b,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_3__.o]})],argTypes:{headline:{control:"text"},icon:{control:"select",options:["home","lock","visibility","mail","delete"]},iconFont:{control:"select",options:["Material Icons","Material Icons Outlined"]},textColor:{control:"color"},iconSize:{control:"select",options:["x1","x2","x3","x4"]}},args:{headline:"Card Headline",icon:"home",iconFont:"Material Icons",textColor:"var(--ui-c-default)",iconSize:"x4"},parameters:{docs:{canvas:{sourceState:"none"}}}},Card={render:args=>({props:{...args,colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"]},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr_1fr]">\n @for (item of colors; track item; let i = $index) {\n <ui-card\n [style.--ui-card-bg]="item"\n [style.--ui-card-text]="textColor"\n [style.--ui-icon-font]="iconFont"\n [headline]="headline"\n [icon]="icon"\n [iconSize]="iconSize">\n <span>Content {{i}}</span>\n </ui-card>\n }\n </div>\n </section>\n '})},__namedExportsOrder=["Card"];Card.parameters={...Card.parameters,docs:{...Card.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: [\'#ffcdff\', \'#cfcfff\', \'#cfffcf\', \'#ffcfcf\', \'#cfcfcf\']\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr_1fr]">\n @for (item of colors; track item; let i = $index) {\n <ui-card\n [style.--ui-card-bg]="item"\n [style.--ui-card-text]="textColor"\n [style.--ui-icon-font]="iconFont"\n [headline]="headline"\n [icon]="icon"\n [iconSize]="iconSize">\n <span>Content {{i}}</span>\n </ui-card>\n }\n </div>\n </section>\n `\n };\n }\n}',...Card.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/card/card.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\nui-card {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* `display: contents` is deliberate: the inner div below is what joins the\n consumer's grid, not this tag. The consequence is that the tag generates\n NO BOX — measured 0x0 — so it can neither be positioned, nor clip, nor be\n sized from outside; a width set on `ui-card` changes the computed value\n and moves no layout. It used to carry `position: relative` and\n `overflow: hidden`, and both were inert for exactly that reason. They are\n gone rather than moved onto the inner div: moving them would START\n clipping content that is not clipped today, and apps arrange cards across\n a seam (see the note on selector weight below). Size the card through the\n cell you place it in. */\n display: contents;\n\n /* The card surface. ui-card is display:contents, so this div is the box the\n app's grid places directly, and it takes the full cell. */\n > div {\n display: flex;\n width: 100%;\n height: 100%;\n padding: calc(var(--ui-spacer) * 0.5);\n justify-content: center;\n align-items: center;\n border-radius: var(--ui-border-radius);\n filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07))\n drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));\n /* Colours are CSS variables, not inline styles: no `[style]` binding from\n the component means the consumer's cascade wins (tickets#183). */\n background-color: var(--ui-card-bg, transparent);\n color: var(--ui-card-text, var(--ui-c-default));\n }\n\n /* Deliberately NOT nested inside the block above. Nesting would raise the\n selector weight beyond the layouts apps place on the grid from outside\n (media's start page arranges icon and label side by side and mirrors them\n across a seam), so a library detail would silently overrule a consumer.\n Kept flat at `ui-card ._wrapper`, lighter than anything an app writes to\n address the same element. */\n ._wrapper {\n position: relative;\n display: grid;\n width: 100%;\n height: 100%;\n /* The single column must be allowed to fall below its content width,\n or the ellipsis on the headline never gets a chance to trigger. */\n grid-template-columns: minmax(0, 1fr);\n grid-gap: calc(var(--ui-spacer) * 0.25);\n justify-content: center;\n text-align: center;\n > * {\n display: flex;\n align-self: center;\n justify-self: center;\n text-align: center;\n outline-style: none;\n }\n\n /* Text color for icon and headline; the `--ui-card-text` variable overrides\n it, the token is the default. */\n > .ui-icon,\n > .ui-h4 {\n color: var(--ui-card-text, var(--ui-c-default));\n }\n\n /* A headline longer than the card is cut, not spilled. The host carries\n `display: contents`, so its `overflow: hidden` never applies — it\n produces no box to clip against. And `justify-self: center` above\n sizes this cell to its text, so a long word simply grew past the card\n and overlapped its neighbours (icon names are the honest test case).\n\n Stretching the cell hands it the column width, `min-width: 0` lets it\n shrink below the intrinsic width of its content — without it a grid\n item refuses to go narrower than its longest word — and the ellipsis\n does the rest. */\n > .ui-h4 {\n justify-self: stretch;\n justify-content: center;\n min-width: 0;\n\n strong {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2425,6978],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/chart/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/chart/chart.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_chart_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-chart.json");function _createMdxContent(props){const _components={code:"code",em:"em",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"chart",children:"Chart"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A flexible and customizable chart component for Angular."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Draws one value set as a pie, a donut or a linear bar from up to three segment\nboundaries and their colours — CSS gradients, no chart library, no axes, no\nlegend, no tooltips. It draws what it is handed: the values are boundaries in\npercent, the number of colours decides the number of rings, and it neither sums,\nsorts nor labels anything. A series with more than three parts, or one that\nneeds a scale, is not its job."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-chart",entry:_guide_ui_chart_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiChartComponent"})," provides various chart types like pie, donut, and linear charts. It allows for detailed configuration of values, colors, and sizing to visualize data effectively."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the chart:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"type"}),": (Input) The type of chart to display ('pie', 'donut', 'linear-vertical', 'linear-horizontal')."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"size"}),": (Input) The size of the chart in rem units."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueFirst"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueSecond"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueThird"}),": (Input) The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"end"}),' of each segment in percent (0-100), not its width — see "One ring, two, or three" below.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorFirst"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorSecond"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorThird"}),": (Input) Colors for the respective segments. Left unset, every segment after the first is transparent."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorBackground"}),": (Input) Colour of the remainder after the third segment. Unset, it stays transparent and the circle is left open."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, you can interactively change the chart type and its data values."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__.Chart}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"one-ring-two-or-three",children:"One ring, two, or three"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Leaving a colour out is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"feature"}),", not an omission: every segment after the\nfirst falls back to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),", so the number of colours you hand over is\nthe number of rings you get. The same component draws a single arc, a two-part\nring or a full circle — nothing needs to be switched on for it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__.Rings}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["All four above use the same values (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"25 / 50 / 75"}),"); only the number of colours\ndiffers. The last one hands over ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorBackground"})," as well and therefore closes\nthe circle."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two things are worth knowing before relying on it:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"The values are boundaries, not sizes."})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueFirst"})," is where the first\nsegment ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"ends"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueSecond"})," where the second ends, and so on — so ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"25/50/75"}),"\ngives four equal quarters, while ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"25/25/25"})," gives one quarter and nothing else."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:'Do not pass an empty string where you mean "no colour" — pass nothing.'})," The\ncomponent leaves an unset colour out of the style it writes, and that is what\nmakes the fallback work. Writing the property with an empty value would make\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var()"})," substitute ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"emptiness"})," into the gradient, which invalidates the whole\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"background"})," declaration: the chart then draws nothing at all, not even the\nsegments that do have a colour."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'\x3c!-- three rings --\x3e\n<ui-chart\n [type]="\'donut\'"\n [size]="10"\n [valueFirst]="20"\n [valueSecond]="50"\n [valueThird]="80"\n [colorFirst]="\'#ff0000\'">\n</ui-chart>\n\n\x3c!-- one ring: give one colour, leave the rest alone --\x3e\n<ui-chart [type]="\'donut\'" [valueFirst]="35" [colorFirst]="\'#00c853\'"></ui-chart>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"type-overview",children:"Type Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This overview shows all available chart types with the current configuration."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__.ChartOverview}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-chart"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.Emulated"})," (default)"]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"types",children:"Types"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"uicharttype",children:"UiChartType"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available chart types:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'pie' | 'donut' | 'linear-vertical' | 'linear-horizontal'"})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/chart/chart.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Chart:()=>Chart,ChartOverview:()=>ChartOverview,Rings:()=>Rings,__namedExportsOrder:()=>__namedExportsOrder,default:()=>chart_component_stories});var _common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var chart_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/chart/chart.component.css?ngResource"),chart_componentngResource_default=__webpack_require__.n(chart_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiChartComponent=class UiChartComponent{type=(0,core.input)("pie");size=(0,core.input)(10);valueFirst=(0,core.input)(0);valueSecond=(0,core.input)(0);valueThird=(0,core.input)(0);colorFirst=(0,core.input)("");colorSecond=(0,core.input)("");colorThird=(0,core.input)("");colorBackground=(0,core.input)("");generateStyleValue(){const given=[["first",this.colorFirst()],["second",this.colorSecond()],["third",this.colorThird()],["background",this.colorBackground()]].filter(([,value])=>value).map(([name,value])=>`--value-color-${name}:${value};`).join("");return`--value-first:${this.valueFirst()}%;--value-second:${this.valueSecond()}%;--value-third:${this.valueThird()}%;--value-size:${this.size()}rem;${given}`}styleValue=(0,_resource_chunk.EW)(()=>this.generateStyleValue());classValue=(0,_resource_chunk.EW)(()=>`_${this.type()}`);static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],size:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"size",required:!1,transform:void 0}]}],valueFirst:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"valueFirst",required:!1,transform:void 0}]}],valueSecond:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"valueSecond",required:!1,transform:void 0}]}],valueThird:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"valueThird",required:!1,transform:void 0}]}],colorFirst:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorFirst",required:!1,transform:void 0}]}],colorSecond:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorSecond",required:!1,transform:void 0}]}],colorThird:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorThird",required:!1,transform:void 0}]}],colorBackground:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorBackground",required:!1,transform:void 0}]}]}};UiChartComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-chart",template:"\x3c!-- Deliberately empty: the whole chart is drawn on the HOST element by the\n stylesheet, from the custom properties the component writes. There is\n nothing to project and nothing to render. --\x3e\n",standalone:!0,host:{"[style]":"styleValue()","[class]":"classValue()"},styles:[chart_componentngResource_default()]})],UiChartComponent);const chart_component_stories={title:"Atoms/Chart",component:UiChartComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiChartComponent]})],argTypes:{type:{control:"select",options:["pie","donut","linear-vertical","linear-horizontal"]},size:{control:{type:"range",min:1,max:50,step:1}},valueFirst:{control:{type:"range",min:0,max:100}},valueSecond:{control:{type:"range",min:0,max:100}},valueThird:{control:{type:"range",min:0,max:100}},colorFirst:{control:"color"},colorSecond:{control:"color"},colorThird:{control:"color"},colorBackground:{control:"color"},types:{table:{disable:!0},control:!1}},args:{type:"donut",size:10,valueFirst:10,valueSecond:40,valueThird:80,colorFirst:"var(--ui-c-primary)",colorSecond:"var(--ui-c-secondary)",colorThird:"var(--ui-c-thirdly)",colorBackground:"var(--ui-c-background)",types:["pie","donut","linear-vertical","linear-horizontal"]},parameters:{docs:{canvas:{sourceState:"none"}}}},Chart={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-chart\n [type]="type"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </section>\n '})},ChartOverview={argTypes:{type:{table:{disable:!0}}},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr]">\n @for (value of types; track value) {\n <div class="flex flex-col items-center">\n <h3>{{value}}</h3>\n <ui-chart\n [type]="value"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </div>\n }\n </div>\n </section>\n '})},Rings={parameters:{controls:{disable:!0}},render:()=>({props:{rings:[{first:"#00c853",second:"",third:"",background:""},{first:"#00c853",second:"#ffe000",third:"",background:""},{first:"#00c853",second:"#ffe000",third:"#ff3d00",background:""},{first:"#00c853",second:"#ffe000",third:"#ff3d00",background:"#cfcfcf"}]},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-row flex-wrap gap-16 p-4">\n @for (ring of rings; track ring.first + ring.second + ring.third + ring.background) {\n <ui-chart\n [type]="\'donut\'"\n [size]="10"\n [valueFirst]="25"\n [valueSecond]="50"\n [valueThird]="75"\n [colorFirst]="ring.first"\n [colorSecond]="ring.second"\n [colorThird]="ring.third"\n [colorBackground]="ring.background"\n ></ui-chart>\n }\n </section>\n '})},__namedExportsOrder=["Chart","ChartOverview","Rings"];Chart.parameters={...Chart.parameters,docs:{...Chart.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-chart\n [type]="type"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </section>\n `\n };\n }\n}',...Chart.parameters?.docs?.source}}},ChartOverview.parameters={...ChartOverview.parameters,docs:{...ChartOverview.parameters?.docs,source:{originalSource:'{\n argTypes: {\n type: {\n table: {\n disable: true\n }\n }\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr]">\n @for (value of types; track value) {\n <div class="flex flex-col items-center">\n <h3>{{value}}</h3>\n <ui-chart\n [type]="value"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...ChartOverview.parameters?.docs?.source},description:{story:"All four variants side by side. Every one of them takes its `type` from the\nlist, so that control is removed from the panel entirely — the others still\ndrive all four charts at once.",...ChartOverview.parameters?.docs?.description}}},Rings.parameters={...Rings.parameters,docs:{...Rings.parameters?.docs,source:{originalSource:"{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n props: {\n rings: [{\n first: '#00c853',\n second: '',\n third: '',\n background: ''\n }, {\n first: '#00c853',\n second: '#ffe000',\n third: '',\n background: ''\n }, {\n first: '#00c853',\n second: '#ffe000',\n third: '#ff3d00',\n background: ''\n }, {\n first: '#00c853',\n second: '#ffe000',\n third: '#ff3d00',\n background: '#cfcfcf'\n }]\n },\n template: `\n <ui-intern-header theme=\"theme-light\"></ui-intern-header>\n <section class=\"relative flex flex-row flex-wrap gap-16 p-4\">\n @for (ring of rings; track ring.first + ring.second + ring.third + ring.background) {\n <ui-chart\n [type]=\"'donut'\"\n [size]=\"10\"\n [valueFirst]=\"25\"\n [valueSecond]=\"50\"\n [valueThird]=\"75\"\n [colorFirst]=\"ring.first\"\n [colorSecond]=\"ring.second\"\n [colorThird]=\"ring.third\"\n [colorBackground]=\"ring.background\"\n ></ui-chart>\n }\n </section>\n `\n })\n}",...Rings.parameters?.docs?.source},description:{story:"One ring, two, or three — decided by how many colours you hand over.\n\nEvery segment after the first falls back to `transparent`, so a colour you\ndo not give is a ring that is not there. The values still mark the same\nboundaries; only the paint stops earlier. The rightmost chart hands over all\nfour and closes the circle with a background colour.\n\nThe colours are the example here, so concrete values are allowed.",...Rings.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/chart/chart.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n --value-size: 10rem;\n\n /* Every segment after the first falls back to `transparent`, not to a token.\n A colour the caller did not give means \"this ring is not there\", so the\n same component draws one, two or three rings depending on how many colours\n it was handed. The first keeps its token, so a chart with no colours at\n all still shows something. The component omits colours it was not given\n rather than writing them empty — see generateStyleValue(). */\n\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px solid var(--ui-c-primary);\n\n &._pie,\n &._donut {\n height: var(--value-size);\n width: var(--value-size);\n border-radius: 50%;\n background: conic-gradient(\n var(--value-color-first, var(--ui-c-primary)) 0% var(--value-first),\n var(--value-color-second, transparent) var(--value-first)\n var(--value-second),\n var(--value-color-third, transparent) var(--value-second)\n var(--value-third),\n var(--value-color-background, transparent) var(--value-third)\n 100%\n );\n }\n\n &._linear-vertical {\n height: calc(var(--value-size) * 2);\n width: calc(var(--value-size) * 0.2);\n background: linear-gradient(\n 0deg,\n var(--value-color-first, var(--ui-c-primary)) 0% var(--value-first),\n var(--value-color-second, transparent) var(--value-first)\n var(--value-second),\n var(--value-color-third, transparent) var(--value-second)\n var(--value-third),\n var(--value-color-background, transparent) var(--value-third)\n 100%\n );\n }\n &._linear-horizontal {\n height: calc(var(--value-size) * 0.2);\n width: calc(var(--value-size) * 2);\n background: linear-gradient(\n 90deg,\n var(--value-color-first, var(--ui-c-primary)) 0% var(--value-first),\n var(--value-color-second, transparent) var(--value-first)\n var(--value-second),\n var(--value-color-third, transparent) var(--value-second)\n var(--value-third),\n var(--value-color-background, transparent) var(--value-third)\n 100%\n );\n }\n\n &._donut::after {\n content: '';\n position: absolute;\n border: 2px solid var(--ui-c-primary);\n height: calc(var(--value-size) * 0.62);\n width: calc(var(--value-size) * 0.62);\n border-radius: 50%;\n background-color: var(--ui-c-background);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1809,5084],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/clock/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/clock/clock.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_clock_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-clock.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"clock",children:"Clock"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A digital seven-segment clock with faintly glowing ghost segments, a blinking\ncolon and a solid, borderless casing."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A seven-segment digital clock drawn in CSS: the current system time, or a fixed\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"time"})," handed in, with ghost segments, a blinking colon and a visually hidden\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<time>"})," for assistive technology. It shows time and does nothing with it — no\nalarms, no time zones, no formats beyond 12/24 hours and the optional seconds.\nIts size is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale"})," transform, so the layout box keeps the base size."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-clock",entry:_guide_ui_clock_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiClockComponent"})," renders the current system time (or a fixed time passed\nvia ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"time"}),") as CSS-drawn seven-segment digits. Every segment is always\nrendered: unlit segments shine faintly (the classic ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"88:88"})," LCD ghost look),\nlit segments are drawn in full color on top."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The clock has a fixed base size; the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale"})," input scales the whole component\nvia CSS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transform"}),". Note that a transform does not affect layout — the\nreserved layout box keeps the base size. Colors fall back to theme-aware ui\ntokens when no inputs are set, so the component works in light and dark themes\nout of the box."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["For accessibility the time is additionally rendered as a visually hidden\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<time>"})," element with a machine-readable 24h ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"datetime"})," attribute; the segment\ndisplay itself is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-hidden"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"time"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<Date | null>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Fixed time to display; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})," (default) shows the live system time, ticking every second."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"showSeconds"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<boolean>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Display seconds (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"HH:MM:SS"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"HH:MM"}),", default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"}),")."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"format"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<12 | 24>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Hour format of the display (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"24"}),"). The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"datetime"})," attribute always stays 24h."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"blink"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<boolean>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Blink the colon separators once per second (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),")."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"scale"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<number>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Scale factor applied to the whole component via CSS transform (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2"}),")."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"live-clock",children:"Live Clock"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The default story shows the live system time with the blinking colon."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"fixed-time",children:"Fixed Time"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A fixed ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"time"})," stops the live interval — useful for deterministic displays and\ntests."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.FixedTime}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"seconds",children:"Seconds"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.Seconds}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"twelve-hour-format",children:"Twelve Hour Format"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The display shows ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"01:37"}),", while the hidden ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"datetime"})," attribute keeps the\nmachine-readable 24h value ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"13:37"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.TwelveHour}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Colours are CSS variables, not inputs — set them from the outside, each\ndefaulting to its ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-*"})," token:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-bg"}),": the solid casing. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-secondary)"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-color"}),": the lit segments. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-default)"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-off"}),": the unlit ghost segments. Unset, they are the lit colour at\n10% (via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"color-mix"}),"); set it to any colour for full-strength segments."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"custom-colors",children:"Custom Colors"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-bg"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-color"})," accept any CSS colour value; the ghost\nsegments derive from ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-color"})," automatically. The story sets them, so\nthe colours are the example."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.CustomColors}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"custom-off-color",children:"Custom Off Color"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Setting ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-off"})," replaces the derived ghost colour with a full-strength\none."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.CustomOffColor}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"sizing",children:"Sizing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The clock has a fixed base size; the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale"})," input scales the whole component\nvia CSS transform."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.Sizing}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-clock></ui-clock>\n\n<ui-clock\n style="--ui-clock-bg: #101010; --ui-clock-color: #7dffb3"\n [time]="someDate"\n [showSeconds]="true"\n [format]="12"\n [blink]="false"\n [scale]="0.5"\n></ui-clock>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-clock"})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"})," (styles scoped via a nested ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-clock"})," block)"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"State:"})," Angular Signals; the live interval is cleared on destroy"]}),"\n"]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_moja_code_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/clock/clock.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColors:()=>CustomColors,CustomOffColor:()=>CustomOffColor,Default:()=>Default,FixedTime:()=>FixedTime,Seconds:()=>Seconds,Sizing:()=>Sizing,TwelveHour:()=>TwelveHour,__namedExportsOrder:()=>__namedExportsOrder,default:()=>clock_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var clock_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/clock/clock.component.css?ngResource"),clock_componentngResource_default=__webpack_require__.n(clock_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");const SEGMENT_MAP=[["a","b","c","d","e","f"],["b","c"],["a","b","g","e","d"],["a","b","g","c","d"],["f","g","b","c"],["a","f","g","c","d"],["a","f","g","e","d","c"],["a","b","c"],["a","b","c","d","e","f","g"],["a","b","c","d","f","g"]];let UiClockComponent=class UiClockComponent{time=(0,core.input)(null);showSeconds=(0,core.input)(!1);format=(0,core.input)(24);blink=(0,core.input)(!0);scale=(0,core.input)(2);displayTime=(0,_effect_chunk2.vPA)(new Date);timer=null;segments=["a","b","c","d","e","f","g"];hourDigits=(0,_resource_chunk.EW)(()=>{let hours=this.displayTime().getHours();return 12===this.format()&&(hours=hours%12||12),this.toDigits(hours)});minuteDigits=(0,_resource_chunk.EW)(()=>this.toDigits(this.displayTime().getMinutes()));secondDigits=(0,_resource_chunk.EW)(()=>this.toDigits(this.displayTime().getSeconds()));isoTime=(0,_resource_chunk.EW)(()=>{const date=this.displayTime(),pad=value=>value.toString().padStart(2,"0"),base=`${pad(date.getHours())}:${pad(date.getMinutes())}`;return this.showSeconds()?`${base}:${pad(date.getSeconds())}`:base});constructor(){(0,_effect_chunk2.QZP)(()=>{const override=this.time();override?(this.stopTimer(),this.displayTime.set(override)):(this.displayTime.set(new Date),this.startTimer())})}isOn(digit,segment){return SEGMENT_MAP[digit].includes(segment)}toDigits(value){return[Math.floor(value/10),value%10]}startTimer(){this.stopTimer(),this.timer=setInterval(()=>this.displayTime.set(new Date),1e3)}stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}ngOnDestroy(){this.stopTimer()}static ctorParameters=()=>[];static propDecorators={time:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"time",required:!1,transform:void 0}]}],showSeconds:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"showSeconds",required:!1,transform:void 0}]}],format:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"format",required:!1,transform:void 0}]}],blink:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"blink",required:!1,transform:void 0}]}],scale:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"scale",required:!1,transform:void 0}]}]}};UiClockComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-clock",template:'<ng-template #digitTpl let-digit>\n <span class="_digit">\n @for (seg of segments; track seg) {\n <i class="_seg _seg-{{ seg }}" [class.on]="isOn(digit, seg)"></i>\n }\n </span>\n</ng-template>\n\n<div class="ui-clock">\n <time class="_time" [attr.datetime]="isoTime()">{{ isoTime() }}</time>\n <span class="_display" aria-hidden="true">\n @for (digit of hourDigits(); track $index) {\n <ng-container\n *ngTemplateOutlet="digitTpl; context: { $implicit: digit }"\n ></ng-container>\n }\n <span class="_colon" [class._blink]="blink()"><i></i><i></i></span>\n @for (digit of minuteDigits(); track $index) {\n <ng-container\n *ngTemplateOutlet="digitTpl; context: { $implicit: digit }"\n ></ng-container>\n }\n @if (showSeconds()) {\n <span class="_colon" [class._blink]="blink()"><i></i><i></i></span>\n @for (digit of secondDigits(); track $index) {\n <ng-container\n *ngTemplateOutlet="digitTpl; context: { $implicit: digit }"\n ></ng-container>\n }\n }\n </span>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,imports:[_common_module_chunk.T3],host:{"[style.--_clock-scale]":"scale()"},styles:[clock_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiClockComponent);const clock_component_stories={title:"Atoms/Clock",component:UiClockComponent,decorators:[(0,dist.Iz)({imports:[UiClockComponent]})],argTypes:{scale:{control:{type:"range",min:.5,max:6,step:.1},description:"Scale factor applied to the whole component via transform"},time:{control:"date",description:"Fixed time to display; empty shows the live system time"},background:{control:"color",description:"Background color of the solid casing"},color:{control:"color",description:"Color of the lit segments"},offColor:{control:"color",description:"Color of the unlit ghost segments"},showSeconds:{control:"boolean",description:"Display seconds (HH:MM:SS)"},format:{control:"radio",options:[24,12],description:"Hour format of the display"},blink:{control:"boolean",description:"Blink the colon separators once per second"}},args:{time:null,showSeconds:!1,format:24,blink:!0,scale:2},render:args=>({props:{...args,time:args.time?new Date(args.time):null},template:'\n <div class="p-4">\n <ui-clock\n class="origin-top-left"\n [time]="time"\n [style.--ui-clock-bg]="background"\n [style.--ui-clock-color]="color"\n [style.--ui-clock-off]="offColor"\n [showSeconds]="showSeconds"\n [format]="format"\n [blink]="blink"\n [scale]="scale"\n ></ui-clock>\n </div>\n '})},withoutColors={background:{table:{disable:!0}},color:{table:{disable:!0}},offColor:{table:{disable:!0}}},Default={},FixedTime={argTypes:withoutColors,args:{time:new Date(2026,6,21,13,37),blink:!1}},Seconds={argTypes:withoutColors,args:{showSeconds:!0}},TwelveHour={argTypes:withoutColors,args:{time:new Date(2026,6,21,13,37),format:12}},CustomColors={args:{background:"#101010",color:"#7dffb3"}},CustomOffColor={args:{time:new Date(2026,6,21,8,8),background:"#1c1c1c",color:"#ff5533",offColor:"#3a2a26"}},Sizing={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex flex-col items-start gap-4 p-4">\n <ui-clock class="origin-top-left" [scale]="0.5"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="1"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="2"></ui-clock>\n </div>\n '})},__namedExportsOrder=["Default","FixedTime","Seconds","TwelveHour","CustomColors","CustomOffColor","Sizing"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},FixedTime.parameters={...FixedTime.parameters,docs:{...FixedTime.parameters?.docs,source:{originalSource:"{\n argTypes: withoutColors,\n args: {\n time: new Date(2026, 6, 21, 13, 37),\n blink: false\n }\n}",...FixedTime.parameters?.docs?.source}}},Seconds.parameters={...Seconds.parameters,docs:{...Seconds.parameters?.docs,source:{originalSource:"{\n argTypes: withoutColors,\n args: {\n showSeconds: true\n }\n}",...Seconds.parameters?.docs?.source}}},TwelveHour.parameters={...TwelveHour.parameters,docs:{...TwelveHour.parameters?.docs,source:{originalSource:"{\n argTypes: withoutColors,\n args: {\n time: new Date(2026, 6, 21, 13, 37),\n format: 12\n }\n}",...TwelveHour.parameters?.docs?.source}}},CustomColors.parameters={...CustomColors.parameters,docs:{...CustomColors.parameters?.docs,source:{originalSource:"{\n args: {\n background: '#101010',\n color: '#7dffb3'\n }\n}",...CustomColors.parameters?.docs?.source},description:{story:"The colours are the subject here, so their controls are switched back on for\nthis story alone. They are CSS variables on the outside — `--ui-clock-bg`\nand `--ui-clock-color` — not component inputs.",...CustomColors.parameters?.docs?.description}}},CustomOffColor.parameters={...CustomOffColor.parameters,docs:{...CustomOffColor.parameters?.docs,source:{originalSource:"{\n args: {\n time: new Date(2026, 6, 21, 8, 8),\n background: '#1c1c1c',\n color: '#ff5533',\n offColor: '#3a2a26'\n }\n}",...CustomOffColor.parameters?.docs?.source},description:{story:"Same again, with the unlit ghost segments given a colour of their own.",...CustomOffColor.parameters?.docs?.description}}},Sizing.parameters={...Sizing.parameters,docs:{...Sizing.parameters?.docs,source:{originalSource:'{\n // The three clocks carry their scale in the template, so the panel would\n // only mislead here.\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex flex-col items-start gap-4 p-4">\n <ui-clock class="origin-top-left" [scale]="0.5"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="1"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="2"></ui-clock>\n </div>\n `\n })\n}',...Sizing.parameters?.docs?.source}}}},"./libs/ui/src/lib/atoms/clock/clock.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes ui-clock-blink {\n 0%,\n 49.9% {\n opacity: 1;\n }\n\n 50%,\n 100% {\n opacity: 0.1;\n }\n}\n\n/*\n * Scope anchor: everything nested inside the element selector so the styles\n * stay scoped despite ViewEncapsulation.None. All geometry is em-based on a\n * fixed base size, multiplied by the `scale` input. Colors resolve input\n * custom properties first and fall back to theme-aware ui tokens.\n */\nui-clock {\n display: inline-block;\n transform: scale(var(--_clock-scale, 1));\n\n .ui-clock {\n position: relative;\n display: inline-flex;\n align-items: center;\n font-size: 2rem;\n padding: 0.22em 0.3em;\n border: none;\n border-radius: 0.12em;\n background: var(--ui-clock-bg, var(--ui-c-secondary));\n -webkit-user-select: none;\n user-select: none;\n\n /* Visually hidden but readable time for screen readers. */\n ._time {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n ._display {\n display: inline-flex;\n align-items: center;\n gap: 0.12em;\n }\n\n ._digit {\n position: relative;\n width: 0.62em;\n height: 1em;\n }\n\n /* Ghost look: every segment is always rendered; unlit segments shine\n faintly in the off color (derived from the on color by default). */\n ._seg {\n position: absolute;\n /* Ghost by default (10% of the lit colour), solid when the consumer sets\n --ui-clock-off. The alpha lives in the colour now, so no opacity toggle\n is needed — set the variable to any colour for full-strength segments\n (tickets#183). */\n background: var(\n --ui-clock-off,\n color-mix(in srgb, var(--ui-clock-color, var(--ui-c-default)) 10%, transparent)\n );\n\n &.on {\n background: var(--ui-clock-color, var(--ui-c-default));\n opacity: 1;\n }\n }\n\n ._seg-a,\n ._seg-g,\n ._seg-d {\n left: 0.05em;\n right: 0.05em;\n height: 0.12em;\n clip-path: polygon(\n 0 50%,\n 12% 0,\n 88% 0,\n 100% 50%,\n 88% 100%,\n 12% 100%\n );\n }\n\n ._seg-a {\n top: 0;\n }\n\n ._seg-g {\n top: 50%;\n transform: translateY(-50%);\n }\n\n ._seg-d {\n bottom: 0;\n }\n\n ._seg-b,\n ._seg-c,\n ._seg-e,\n ._seg-f {\n width: 0.12em;\n height: calc(50% - 0.08em);\n clip-path: polygon(\n 50% 0,\n 100% 12%,\n 100% 88%,\n 50% 100%,\n 0 88%,\n 0 12%\n );\n }\n\n ._seg-f {\n left: 0;\n top: 0.04em;\n }\n\n ._seg-b {\n right: 0;\n top: 0.04em;\n }\n\n ._seg-e {\n left: 0;\n bottom: 0.04em;\n }\n\n ._seg-c {\n right: 0;\n bottom: 0.04em;\n }\n\n ._colon {\n position: relative;\n width: 0.18em;\n height: 1em;\n\n i {\n position: absolute;\n left: 50%;\n width: 0.12em;\n height: 0.12em;\n transform: translateX(-50%);\n border-radius: 0.02em;\n background: var(--ui-clock-color, var(--ui-c-default));\n\n &:first-child {\n top: 0.24em;\n }\n\n &:last-child {\n bottom: 0.24em;\n }\n }\n\n &._blink i {\n animation: ui-clock-blink 1s linear infinite;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);