@mojawork/ui-docs 2.8.1 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/typewriter.md +4 -3
  3. package/catalog/guide.json +3 -3
  4. package/catalog/manifest.json +3 -3
  5. package/catalog/version.json +2 -2
  6. package/package.json +1 -1
  7. package/storybook/1183.fafda52d.iframe.bundle.js +1 -0
  8. package/storybook/2033.986e1406.iframe.bundle.js +1 -0
  9. package/storybook/2089.d5a3e21e.iframe.bundle.js +1 -0
  10. package/storybook/2127.d7de271b.iframe.bundle.js +2 -0
  11. package/storybook/2228.7013a637.iframe.bundle.js +2 -0
  12. package/storybook/2639.7f497882.iframe.bundle.js +1 -0
  13. package/storybook/2971.036e7a14.iframe.bundle.js +1 -0
  14. package/storybook/3968.3c931220.iframe.bundle.js +1 -0
  15. package/storybook/{4425.368129b3.iframe.bundle.js → 4425.7f753a38.iframe.bundle.js} +2 -2
  16. package/storybook/4476.1b913b82.iframe.bundle.js +1 -0
  17. package/storybook/{4555.e26d162c.iframe.bundle.js → 4555.c83b35c3.iframe.bundle.js} +1 -1
  18. package/storybook/4755.0561bac5.iframe.bundle.js +23 -0
  19. package/storybook/{4755.e4656207.iframe.bundle.js.map → 4755.0561bac5.iframe.bundle.js.map} +1 -1
  20. package/storybook/4935.f88465d9.iframe.bundle.js +1 -0
  21. package/storybook/5568.be85a9aa.iframe.bundle.js +1 -0
  22. package/storybook/6824.4b8f7b0a.iframe.bundle.js +1 -0
  23. package/storybook/8051.dbaf9937.iframe.bundle.js +1 -0
  24. package/storybook/871.5a781df6.iframe.bundle.js +1 -0
  25. package/storybook/8819.8e56201f.iframe.bundle.js +1 -0
  26. package/storybook/9850.5a17be74.iframe.bundle.js +1 -0
  27. package/storybook/9946.6fea16dc.iframe.bundle.js +1 -0
  28. package/storybook/_external-mwork-banner-docs-mdx.f33bbf56.iframe.bundle.js +1 -0
  29. package/storybook/_external-mwork-basic-interpreter-docs-mdx.81168b4c.iframe.bundle.js +1 -0
  30. package/storybook/_external-mwork-music-player-docs-mdx.46f4887e.iframe.bundle.js +1 -0
  31. package/storybook/assets/ui/sounds/type.mp3 +0 -0
  32. package/storybook/atoms-_electrons-form-error-message-docs-mdx.9382b0cb.iframe.bundle.js +1 -0
  33. package/storybook/atoms-_electrons-loader-docs-mdx.e8bb9642.iframe.bundle.js +1 -0
  34. package/storybook/atoms-background-docs-mdx.0e861f2c.iframe.bundle.js +1 -0
  35. package/storybook/atoms-barcode-docs-mdx.78b610dc.iframe.bundle.js +1 -0
  36. package/storybook/atoms-buzzer-docs-mdx.f9daf952.iframe.bundle.js +1 -0
  37. package/storybook/atoms-card-docs-mdx.f8b63920.iframe.bundle.js +1 -0
  38. package/storybook/atoms-chart-docs-mdx.29f10b89.iframe.bundle.js +1 -0
  39. package/storybook/atoms-clock-docs-mdx.6864626c.iframe.bundle.js +1 -0
  40. package/storybook/atoms-copy-value-docs-mdx.fbe168e2.iframe.bundle.js +1 -0
  41. package/storybook/atoms-image-grid-docs-mdx.9df158a9.iframe.bundle.js +1 -0
  42. package/storybook/atoms-image-slider-docs-mdx.4ae341f5.iframe.bundle.js +1 -0
  43. package/storybook/atoms-inline-spinner-docs-mdx.8b942147.iframe.bundle.js +1 -0
  44. package/storybook/atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js +2 -0
  45. package/storybook/atoms-mosaic-docs-mdx.738f012c.iframe.bundle.js +1 -0
  46. package/storybook/atoms-placeholder-docs-mdx.7d376291.iframe.bundle.js +1 -0
  47. package/storybook/atoms-qr-code-docs-mdx.c47f67c9.iframe.bundle.js +1 -0
  48. package/storybook/atoms-rating-docs-mdx.d7df9a29.iframe.bundle.js +1 -0
  49. package/storybook/atoms-reader-doc-docs-mdx.f5375a37.iframe.bundle.js +1 -0
  50. package/storybook/atoms-text-animate-docs-mdx.152fc1bd.iframe.bundle.js +1 -0
  51. package/storybook/atoms-thumb-docs-mdx.525fc046.iframe.bundle.js +1 -0
  52. package/storybook/atoms-timer-docs-mdx.686f0392.iframe.bundle.js +1 -0
  53. package/storybook/atoms-typewriter-docs-mdx.a6c3f6b0.iframe.bundle.js +1 -0
  54. package/storybook/atoms-typewriter-typewriter-component-stories.3a4f5356.iframe.bundle.js +1 -0
  55. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.0aa5b787.iframe.bundle.js +1 -0
  56. package/storybook/cdk-components-table-docs-mdx.74bd247c.iframe.bundle.js +1 -0
  57. package/storybook/examples-docs-mdx.1a9d8db0.iframe.bundle.js +1 -0
  58. package/storybook/examples-image-grid-slider-docs-mdx.e56160ef.iframe.bundle.js +1 -0
  59. package/storybook/examples-layout-docs-mdx.d7d6f90b.iframe.bundle.js +1 -0
  60. package/storybook/examples-table-edit-focus-docs-mdx.55960e55.iframe.bundle.js +1 -0
  61. package/storybook/examples-transloco-docs-mdx.46447d84.iframe.bundle.js +2 -0
  62. package/storybook/forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js +2 -0
  63. package/storybook/forms-autofocus-docs-mdx.ce239261.iframe.bundle.js +1 -0
  64. package/storybook/forms-checkbox-checkbox-component-stories.df3196e5.iframe.bundle.js +1 -0
  65. package/storybook/forms-checkbox-docs-mdx.890972f3.iframe.bundle.js +1 -0
  66. package/storybook/forms-chip-docs-mdx.89a48075.iframe.bundle.js +1 -0
  67. package/storybook/forms-input-docs-mdx.56627297.iframe.bundle.js +1 -0
  68. package/storybook/forms-input-input-component-stories.b68ea104.iframe.bundle.js +1 -0
  69. package/storybook/forms-slider-docs-mdx.68b9e21c.iframe.bundle.js +1 -0
  70. package/storybook/forms-switch-docs-mdx.832228cb.iframe.bundle.js +1 -0
  71. package/storybook/forms-validators-docs-mdx.e11fe615.iframe.bundle.js +1 -0
  72. package/storybook/home-guide-mdx.2f32ffc1.iframe.bundle.js +1 -0
  73. package/storybook/{home-overview-mdx.0e32f57f.iframe.bundle.js → home-overview-mdx.00ee5070.iframe.bundle.js} +1 -1
  74. package/storybook/home-tips-mdx.24dc3e35.iframe.bundle.js +1 -0
  75. package/storybook/iframe.html +2 -2
  76. package/storybook/layout-main-docs-mdx.445bce2a.iframe.bundle.js +1 -0
  77. package/storybook/layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js +2 -0
  78. package/storybook/layout-nav-docs-mdx.92eac076.iframe.bundle.js +1 -0
  79. package/storybook/layout-overlay-docs-mdx.a680859b.iframe.bundle.js +1 -0
  80. package/storybook/layout-overlay-header-docs-mdx.6eb6e326.iframe.bundle.js +1 -0
  81. package/storybook/layout-spinner-docs-mdx.a792dea6.iframe.bundle.js +1 -0
  82. package/storybook/layout-splitter-docs-mdx.6b0e4fd2.iframe.bundle.js +1 -0
  83. package/storybook/layout-tabs-docs-mdx.aad59db3.iframe.bundle.js +1 -0
  84. package/storybook/layout-top-scroll-bottom-docs-mdx.42c18a0d.iframe.bundle.js +1 -0
  85. package/storybook/molecules-image-editor-docs-mdx.dba18ee6.iframe.bundle.js +1 -0
  86. package/storybook/project.json +1 -1
  87. package/storybook/{runtime~main.786a8152.iframe.bundle.js → runtime~main.ec39977b.iframe.bundle.js} +1 -1
  88. package/storybook/styling-colors-docs-mdx.3f513a8d.iframe.bundle.js +1 -0
  89. package/storybook/styling-css-variables-docs-mdx.5a090407.iframe.bundle.js +1 -0
  90. package/storybook/styling-forms-docs-mdx.649ae948.iframe.bundle.js +1 -0
  91. package/storybook/styling-icons-docs-mdx.e3ed5ebd.iframe.bundle.js +1 -0
  92. package/storybook/styling-layers-docs-mdx.d810a2c8.iframe.bundle.js +1 -0
  93. package/storybook/styling-tags-docs-mdx.ce4814c9.iframe.bundle.js +1 -0
  94. package/storybook/styling-ui-tags-docs-mdx.d94258ab.iframe.bundle.js +1 -0
  95. package/storybook/version.json +2 -2
  96. package/version.json +2 -2
  97. package/storybook/1183.da25800b.iframe.bundle.js +0 -1
  98. package/storybook/2033.c705a7ce.iframe.bundle.js +0 -1
  99. package/storybook/2089.32694489.iframe.bundle.js +0 -1
  100. package/storybook/2127.29f153d2.iframe.bundle.js +0 -2
  101. package/storybook/2228.77650ef1.iframe.bundle.js +0 -2
  102. package/storybook/2639.29baa8af.iframe.bundle.js +0 -1
  103. package/storybook/2971.edb202b4.iframe.bundle.js +0 -1
  104. package/storybook/3968.69b812e4.iframe.bundle.js +0 -1
  105. package/storybook/4476.f8e4115f.iframe.bundle.js +0 -1
  106. package/storybook/4755.e4656207.iframe.bundle.js +0 -23
  107. package/storybook/4935.8959522b.iframe.bundle.js +0 -1
  108. package/storybook/5568.c6172f92.iframe.bundle.js +0 -1
  109. package/storybook/6824.f5eb8bb7.iframe.bundle.js +0 -1
  110. package/storybook/8051.719eb790.iframe.bundle.js +0 -1
  111. package/storybook/871.428deceb.iframe.bundle.js +0 -1
  112. package/storybook/8819.220ca21d.iframe.bundle.js +0 -1
  113. package/storybook/9850.28367747.iframe.bundle.js +0 -1
  114. package/storybook/9946.36014b4e.iframe.bundle.js +0 -1
  115. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +0 -1
  116. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +0 -1
  117. package/storybook/_external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js +0 -1
  118. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +0 -1
  119. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +0 -1
  120. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +0 -1
  121. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +0 -1
  122. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +0 -1
  123. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +0 -1
  124. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +0 -1
  125. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +0 -1
  126. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +0 -1
  127. package/storybook/atoms-image-grid-docs-mdx.8161de39.iframe.bundle.js +0 -1
  128. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +0 -1
  129. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +0 -1
  130. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +0 -2
  131. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +0 -1
  132. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +0 -1
  133. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +0 -1
  134. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +0 -1
  135. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +0 -1
  136. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +0 -1
  137. package/storybook/atoms-thumb-docs-mdx.7286b617.iframe.bundle.js +0 -1
  138. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +0 -1
  139. package/storybook/atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js +0 -1
  140. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +0 -1
  141. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +0 -1
  142. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +0 -1
  143. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +0 -1
  144. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +0 -1
  145. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +0 -1
  146. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +0 -1
  147. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +0 -2
  148. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +0 -2
  149. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +0 -1
  150. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +0 -1
  151. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +0 -1
  152. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +0 -1
  153. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +0 -1
  154. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +0 -1
  155. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +0 -1
  156. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +0 -1
  157. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +0 -1
  158. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +0 -1
  159. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +0 -1
  160. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +0 -1
  161. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +0 -2
  162. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +0 -1
  163. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +0 -1
  164. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +0 -1
  165. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +0 -1
  166. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +0 -1
  167. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +0 -1
  168. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +0 -1
  169. package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +0 -1
  170. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +0 -1
  171. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +0 -1
  172. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +0 -1
  173. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +0 -1
  174. package/storybook/styling-layers-docs-mdx.a563260e.iframe.bundle.js +0 -1
  175. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +0 -1
  176. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +0 -1
  177. /package/storybook/{2127.29f153d2.iframe.bundle.js.LICENSE.txt → 2127.d7de271b.iframe.bundle.js.LICENSE.txt} +0 -0
  178. /package/storybook/{2228.77650ef1.iframe.bundle.js.LICENSE.txt → 2228.7013a637.iframe.bundle.js.LICENSE.txt} +0 -0
  179. /package/storybook/{4425.368129b3.iframe.bundle.js.LICENSE.txt → 4425.7f753a38.iframe.bundle.js.LICENSE.txt} +0 -0
  180. /package/storybook/{4755.e4656207.iframe.bundle.js.LICENSE.txt → 4755.0561bac5.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /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
  182. /package/storybook/{examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt → examples-transloco-docs-mdx.46447d84.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook/{forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt → forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /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
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[947],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__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_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_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/layout/splitter/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__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_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"),_splitter_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_splitter_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-splitter.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_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:_splitter_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-splitter",children:"Layout: Splitter"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A versatile layout component that divides the view into a header and two side-by-side panels (left and right)."}),"\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:["Divides a view into a header and two side-by-side panels (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[splitter-header]"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[splitter-left]"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[splitter-right]"}),"), with buttons to change the direction,\nzoom and go fullscreen; given an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"}),", it remembers that layout per instance\nand restores it without animation. It arranges the three slots and nothing\nelse — no resizing by drag, no collapsing of a panel, no content of its own.\nDrag and drop between two lists is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-cdk-drag-drop-splitter"}),", a different\nthing with a similar name."]}),"\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-layout-splitter",entry:_guide_ui_layout_splitter_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:"UiLayoutSplitterComponent"})," is designed for complex interfaces requiring a header and dual-pane content. Theme toggling is delegated to the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutService"}),". When an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"})," is provided, the splitter persists its ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"direction, zoom and fullscreen"})," per instance via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@ngx-pwa/local-storage"})," and restores them on init — so several splitters each remember their own last layout independently (zoom/fullscreen are re-applied through the shared layout service)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The restored layout is applied ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"without animation"})," so it appears instantly on load; the direction transition only plays in response to a user clicking one of the layout buttons."]}),"\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:"example-splitter",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-splitter--splitter",children:"Example: Splitter"})}),"\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:"arguments-props",children:"Arguments (Props)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"inputs",children:"Inputs"}),"\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:"@Input"}),(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__.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:"id"})}),(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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"undefined"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Unique key used to persist and restore this splitter's direction. Without it the direction is not saved."})]}),(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:"defaultDirection"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'left' | 'center' | 'right' | 'split'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'center'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Initial direction used before any persisted value is restored."})]}),(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:"defaultPanelOrder"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'left-first' | 'right-first'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'left-first'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Which panel comes first before the user says otherwise, and before a persisted order is restored."})]}),(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:"layoutAction"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Show/hide layout management buttons (zoom, fullscreen)."})]}),(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:"themeAction"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Show/hide the theme toggle button."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"outputs",children:"Outputs"}),"\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:"@Output"}),(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:"animating"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})," when a direction change starts animating,\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})," once it has settled (a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"transitionend"})," on\nthe panel row, with a timeout as a fallback for changes that animate\nnothing). Use it to lighten heavy panel content for the duration."]})})]}),(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:"directionChange"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiLayoutSplitterDirectionsType"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The active split direction: emitted once after initialisation (the\ndefault or the restored persisted state) and again on every direction\nchange. Lets a consumer adapt its layout to the state — e.g. relocate\na panel while the splitter is stacked (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"split"}),") — without\nreaching into the component."]})})]})]})]}),"\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:"swapping-the-panels",children:"Swapping the panels"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Swap panels"})," button turns the two panels around. Side by side they trade\nsides; stacked — below ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ms5"}),", or in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"split"})," at any width — they trade top and\nbottom. It is one action with one meaning, and the button lights up while the\nright panel is the one in front."]}),"\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 panels are moved, not painted elsewhere."})," The two ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<section>"})," elements\nchange places in the document, so the reading order, the screen-reader order\nand the tab order are the same order in both layouts. Shifting them with CSS\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"order"})," would have been a line of stylesheet and a lie: it moves pixels and\nleaves the focus where it was."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Moving has a price, and it is worth knowing before a heavy panel goes in. In\nthe DOM a move is a removal followed by an insertion, so anything the browser\nattached to those nodes starts over: an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<iframe>"})," reloads, a playing ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<video>"}),"\nresets, a scrolled panel is back at the top. Angular rebuilds nothing —\ncomponent state and typed-in values survive. The focus is put back where it\nwas. The price is paid on a deliberate press, not on every resize."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Like the direction, the order is remembered per ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"})," and ignored while the\ncontrols are locked; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"swapPanels()"})," stays callable either way. Where a page\nknows its own better starting point, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"defaultPanelOrder"})," sets it — a mask whose\nform matters more than its list can open with the form in front, on the phone\nas well as on the desk."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"published-panel-widths-css-variables",children:"Published panel widths (CSS variables)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The grid sizes both panels in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fr"})," units, so their pixel widths exist only at\nruntime. Since a variable set on the host would reach descendants only, the\ncomponent publishes the measured widths on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<body>"})," — that way content\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"outside"})," the splitter (an overlay that lines up with a panel, a ruler, an\ninspector) can use them too. A ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ResizeObserver"})," keeps them in sync with\ndirection changes, zoom, fullscreen and window resizing."]}),"\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:"Variable"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Value"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"When"})]})}),(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:"--ui-splitter-left-width"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Width of the left panel in px"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Always"})]}),(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:"--ui-splitter-right-width"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Width of the right panel in px"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Always"})]}),(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:"--ui-splitter-<id>-left-width"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Same value, scoped to this instance"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Only with an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"id"})]})]}),(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:"--ui-splitter-<id>-right-width"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Same value, scoped to this instance"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Only with an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"id"})]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The unscoped names always carry the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"last measured"})," splitter. With more than\none instance on a page, give each an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"})," and read the scoped names."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["While a direction change is animating, measuring pauses and a single reading is\ntaken at the end (a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transitionend"})," on the panel row, with a timeout as a\nfallback). Publishing a new value on every frame would invalidate the styles of\nthe whole page each time and make the change stutter — and nobody needs the\nintermediate widths."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The same state is announced through the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animating"})," output: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"})," when the\nchange starts, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"})," when it has settled. What else should happen meanwhile is\nthe consumer's decision — a panel holding a long table may want to drop its\ncontent for the duration (laying it out on every frame is the expensive part of\nthe change), a light panel can ignore the event entirely. The component itself\nonly pauses its own measuring; it never touches projected content."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["They are written to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<body>"})," rather than ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":root"})," on purpose: the config wrapper\nregenerates the entire ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":root"})," style attribute and would wipe them."]}),"\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:"control-buttons--tooltips",children:"Control buttons & tooltips"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The button bar exposes the layout controls. Each button carries a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"}),"\ntooltip resolved through Transloco (namespace ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"splitter.*"}),"), so the labels are\ntranslatable and stay in sync across languages."]}),"\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:"Icon"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Action"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Transloco key"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Tooltip (EN)"})]})}),(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:"border_left"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Direction ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"left"})," (left panel wide)"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.direction.left"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Enlarge left panel"})]}),(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:"border_vertical"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Direction ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"center"})," (equal panels)"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.direction.center"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Split evenly"})]}),(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:"border_right"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Direction ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"right"})," (right panel wide)"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.direction.right"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Enlarge right panel"})]}),(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:"border_horizontal"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Direction ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"split"})," (panels stacked)"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.direction.split"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Stack panels"})]}),(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:"swap_horiz"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Swap the two panels (lit while the right one is in front)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.swap"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Swap panels"})]}),(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:"zoom_out_map"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Toggle fullscreen (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"layoutAction"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.fullscreen"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Toggle fullscreen"})]}),(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:"center_focus_strong"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Toggle zoom (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"layoutAction"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.zoom"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Toggle zoom"})]}),(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:"invert_colors"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Toggle theme (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"themeAction"}),")"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"splitter.theme"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Switch theme"})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The library ships these keys in its own i18n assets\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"static/assets/ui/i18n/ui/*.json"}),") — a consuming app only has to load the ui\ntranslation files into its Transloco setup. Where they are not loaded, the raw\nkey is shown as the tooltip."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"active-state",children:"Active state"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The buttons reflect the current layout state: the button of the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"active\ndirection"})," is always highlighted, and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"fullscreen"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"zoom"})," buttons\nare highlighted while their mode is switched on. Highlighted buttons carry the\nclass ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," and are colored with the theme-aware token ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-focus)"}),'.\nThe theme button has no active state — light and dark are equal peers, neither\ncounts as "on". The highlighting is driven by signals (the zoom/fullscreen\nstate of the layout service is mirrored into the component), so it also stays\nin sync when the public methods ',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"setDirection()"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fullscreen()"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"zoom()"}),"\nare called programmatically."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"locking-the-controls",children:"Locking the controls"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The public signal ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"locked"})," (default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"}),") mutes the button bar: while\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"locked()"})," is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),", clicks on the control buttons do nothing. Only the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"buttons"})," are locked — the public methods (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"setDirection()"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fullscreen()"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"zoom()"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"theme()"}),") stay callable, so a programmatic driver (e.g. an intro\nchoreography) can steer the splitter while the visitor cannot. The buttons\nkeep their normal look and their active highlighting; deliberately no\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"disabled"})," attribute is used, because a disabled button swallows all pointer\nevents and would hide the interaction from listeners further up the 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:"content-slots-ng-content",children:"Content Slots (ng-content)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The component uses named slots for organization:"}),"\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:"[splitter-header]"}),": Content for the header area of the splitter."]}),"\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:"[splitter-left]"}),": Content for the left panel."]}),"\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:"[splitter-right]"}),": Content for the right panel."]}),"\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:"example-integration",children:"Example Integration"}),"\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-layout-main>\n <div main-header>Application Header</div>\n\n <ui-layout-splitter main-content [layoutAction]="false">\n <div splitter-header>\n <button class="ui-icon">star</button>\n <span>Header - Component Actions</span>\n </div>\n <div splitter-left>Left Side Content</div>\n <div splitter-right>Right Side Content</div>\n </ui-layout-splitter>\n\n <div main-footer>Application Footer</div>\n</ui-layout-main>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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)}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[6892,8753],{"./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/src/lib/layout/tabs/tabs.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>UiLayoutTabsComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var tabs_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.css?ngResource"),tabs_componentngResource_default=__webpack_require__.n(tabs_componentngResource),_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"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs");let UiLayoutTabsComponent=class UiLayoutTabsComponent{el=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);tabNames=(0,core.input)([]);activeTab=(0,core.input)(0);activeTabChange=(0,core.output)();activeTabValue=0;tabNamesValue=[];ngOnInit(){this.activeTabValue=this.activeTab(),this.tabNamesValue=[...this.tabNames()],this.activeContent(this.activeTabValue)}ngOnChanges(){this.activeTabValue=this.activeTab(),this.tabNamesValue=[...this.tabNames()],this.activeContent(this.activeTabValue)}active(index){this.activeTabValue=index,this.activeContent(index),this.activeTabChange.emit(index)}defaultLabels(count){0===this.tabNamesValue.length&&(this.tabNamesValue=[...Array.from({length:count}).keys()].map(key=>`0${(key+1).toString()}`))}activeContent(index){const contents=this.el.nativeElement.querySelectorAll("._bottom")[0].childNodes;this.defaultLabels(contents.length),contents.forEach((content,contentIndex)=>{const element=content;element.classList.remove("_-active"),contentIndex===index&&element.classList.add("_-active")})}static propDecorators={tabNames:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tabNames",required:!1,transform:void 0}]}],activeTab:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"activeTab",required:!1,transform:void 0}]}],activeTabChange:[{type:_debug_node_chunk.k7i,args:["activeTabChange"]}]}};UiLayoutTabsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-tabs",template:'\x3c!-- Real buttons, not clickable divs: Tab reaches them, Enter and Space\n switch natively — no synthetic key handling. `role="tab"` and\n `aria-selected` say which one is open. Tracked by index, not by name:\n two tabs may carry the same label. --\x3e\n<header role="tablist">\n @for (name of tabNamesValue; track $index; let i = $index) {\n <button\n type="button"\n role="tab"\n class="_tab-selector"\n [class._-active]="i === activeTabValue"\n [attr.aria-selected]="i === activeTabValue"\n (click)="active(i)"\n >\n {{ name }}\n </button>\n }\n</header>\n<div class="_bottom">\n <ng-content></ng-content>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[tabs_componentngResource_default()]})],UiLayoutTabsComponent)},"./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_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_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/layout/tabs/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_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"),_tabs_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_tabs_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-tabs.json");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_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:_tabs_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layout-tabs",children:"Layout: Tabs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Flexible tabbed navigation for organizing content into discrete sections."}),"\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:["Switches between projected ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<section>"})," blocks, one per name in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tabNames"}),",\nwith real buttons in a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tablist"})," the keyboard reaches. Labels are generated\nwhen none are given; the active tab can be set and is reported. It keeps the\nsections in the DOM and switches what is visible; it does not route, lazy-load\nor remember the active tab across a reload."]}),"\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-layout-tabs",entry:_guide_ui_layout_tabs_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:"UiLayoutTabsComponent"})," provides a clean interface for switching between different views or content blocks. It automatically generates tab labels if none are provided, and supports custom labels and active tab management."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The tab selectors are real buttons in a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'role="tablist"'})," — Tab reaches them,\nEnter and Space switch natively, and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-selected"})," says which panel is\nopen."]}),"\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:"inputs",children:"Inputs"}),"\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:"@Input"}),(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__.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:"tabNames"})}),(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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"[]"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Custom labels for each tab. If empty, numeric labels (01, 02, ...) are generated based on content count."})]}),(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:"activeTab"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Index of the currently active tab."})]})]})]}),"\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",{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:"@Output"}),(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:"activeTabChange"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Emits the index of the newly selected tab."})]})})]}),"\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:"content-projection",children:"Content Projection"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Place your content sections directly inside the component. Each direct child will be treated as a separate tab panel."}),"\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-layout-tabs [tabNames]=\"['first', 'second', 'third']\">\n <section>panel of first</section>\n <section>panel of second</section>\n <section>panel of third</section>\n</ui-layout-tabs>\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:"demo",children:"Demo"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_tabs_component_stories__WEBPACK_IMPORTED_MODULE_4__.TabsDefault}),"\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-labels",children:"Custom labels"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-tabs--tabs-custom-labels",children:"Open story: Custom labels"})}),"\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:"two-way-active-tab",children:"Two-way active tab"}),"\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:"[(activeTab)]"})," keeps the caller's index in sync while the user switches:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-tabs--tabs-active-tab-change",children:"Open story: Active tab change"})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/layout/tabs/tabs.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TabsActiveTabChange:()=>TabsActiveTabChange,TabsCustomLabels:()=>TabsCustomLabels,TabsDefault:()=>TabsDefault,TabsThemes:()=>TabsThemes,__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"),_tabs_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Layout/Tabs",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({providers:[],imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__.b,_angular_forms__WEBPACK_IMPORTED_MODULE_0__.YN,_tabs_component__WEBPACK_IMPORTED_MODULE_3__.q]})],argTypes:{activeTab:{control:{type:"range",min:0,max:5,step:1}},tabNames:{control:"object"}}},TabsDefault={args:{activeTab:0,tabNames:[]},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-layout-tabs [activeTab]="activeTab" [tabNames]="tabNames">\n <section>01</section>\n <section>02</section>\n <section>03</section>\n <section>04</section>\n <section>05</section>\n <section>06</section>\n <section>07</section>\n <section>08</section>\n <section>09</section>\n </ui-layout-tabs>\n </section>\n '})},TabsCustomLabels={args:{activeTab:2,tabNames:["first","second","third","fourth"]},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-layout-tabs [activeTab]="activeTab" [tabNames]="tabNames">\n <section>panel of first</section>\n <section>panel of second</section>\n <section>panel of third</section>\n <section>panel of fourth</section>\n </ui-layout-tabs>\n </section>\n '})},TabsActiveTabChange={args:{activeTab:1},render:args=>({props:{...args},template:"\n <ui-intern-header theme=\"theme-light\"></ui-intern-header>\n <section class=\"relative flex flex-col\">\n <h3>&#64;Output activeTabChange: {{activeTab}}</h3>\n <ui-layout-tabs [(activeTab)]=\"activeTab\" [tabNames]=\"['first','second','third','fourth']\">\n <section>panel of first</section>\n <section>panel of second</section>\n <section>panel of third</section>\n <section>panel of fourth</section>\n </ui-layout-tabs>\n </section>\n "})},TabsThemes={args:{activeTab:1,display:!0},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-dark" [onTop]="true" [display]="display"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-layout-tabs [activeTab]="activeTab">\n <section>01</section>\n <section>02</section>\n <section>03</section>\n </ui-layout-tabs>\n </section>\n '})},__namedExportsOrder=["TabsDefault","TabsCustomLabels","TabsActiveTabChange","TabsThemes"];TabsDefault.parameters={...TabsDefault.parameters,docs:{...TabsDefault.parameters?.docs,source:{originalSource:'{\n args: {\n activeTab: 0,\n tabNames: []\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 <ui-layout-tabs [activeTab]="activeTab" [tabNames]="tabNames">\n <section>01</section>\n <section>02</section>\n <section>03</section>\n <section>04</section>\n <section>05</section>\n <section>06</section>\n <section>07</section>\n <section>08</section>\n <section>09</section>\n </ui-layout-tabs>\n </section>\n `\n };\n }\n}',...TabsDefault.parameters?.docs?.source}}},TabsCustomLabels.parameters={...TabsCustomLabels.parameters,docs:{...TabsCustomLabels.parameters?.docs,source:{originalSource:"{\n args: {\n activeTab: 2,\n tabNames: ['first', 'second', 'third', 'fourth']\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 <ui-layout-tabs [activeTab]=\"activeTab\" [tabNames]=\"tabNames\">\n <section>panel of first</section>\n <section>panel of second</section>\n <section>panel of third</section>\n <section>panel of fourth</section>\n </ui-layout-tabs>\n </section>\n `\n };\n }\n}",...TabsCustomLabels.parameters?.docs?.source}}},TabsActiveTabChange.parameters={...TabsActiveTabChange.parameters,docs:{...TabsActiveTabChange.parameters?.docs,source:{originalSource:"{\n args: {\n activeTab: 1\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 <h3>&#64;Output activeTabChange: {{activeTab}}</h3>\n <ui-layout-tabs [(activeTab)]=\"activeTab\" [tabNames]=\"['first','second','third','fourth']\">\n <section>panel of first</section>\n <section>panel of second</section>\n <section>panel of third</section>\n <section>panel of fourth</section>\n </ui-layout-tabs>\n </section>\n `\n };\n }\n}",...TabsActiveTabChange.parameters?.docs?.source}}},TabsThemes.parameters={...TabsThemes.parameters,docs:{...TabsThemes.parameters?.docs,source:{originalSource:'{\n args: {\n activeTab: 1,\n display: true\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-dark" [onTop]="true" [display]="display"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-layout-tabs [activeTab]="activeTab">\n <section>01</section>\n <section>02</section>\n <section>03</section>\n </ui-layout-tabs>\n </section>\n `\n };\n }\n}',...TabsThemes.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/layout/tabs/tabs.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-layout-tabs {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n display: flex;\n flex-flow: column;\n\n header {\n display: flex;\n padding: calc(var(--ui-spacer) * 0.25);\n padding-bottom: 0;\n /* background-color: var(--ui-cb-secondary); */\n\n ._tab-selector {\n display: flex;\n /* A button now (it always acted like one) — strip the native face so\n the class keeps the exact look the div had. */\n appearance: none;\n border: 0;\n font: inherit;\n color: inherit;\n cursor: pointer;\n background-color: var(--ui-c-fourthly);\n padding: calc(var(--ui-spacer) * 0.2);\n border-radius: var(--ui-border-radius) var(--ui-border-radius) 0 0;\n margin: calc(var(--ui-spacer) * 0.08);\n margin-bottom: 0;\n line-height: 0.8;\n\n &:first-of-type {\n margin-left: 0;\n }\n\n &:last-of-type {\n margin-right: 0;\n }\n\n &._-active {\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-bottom: 0;\n transform: translateY(var(--ui-border-width));\n }\n\n /* The house focus ring — the underscore class is outside the global\n button rules, so the ring is declared here. */\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n }\n }\n\n ._bottom {\n display: flex;\n flex-flow: column;\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n height: 100%;\n\n > * {\n display: none;\n }\n\n > *._-active {\n display: flex;\n }\n }\n}\n\n/* --- breakpoint 01 - 03 --- */\n@media (max-width: 768px) {\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3073,9779],{"./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_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_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/layout/top-scroll-bottom/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_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"),_top_scroll_bottom_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_layout_top_scroll_bottom_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-layout-top-scroll-bottom.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_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:_top_scroll_bottom_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.hE,{children:"Layout: TopScrollBottom"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Pd,{children:"A specialized layout component providing a fixed header, a scrollable content area, and a fixed footer."}),"\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 fixed header, a scrolling middle and a fixed footer, sized to the content\nheight ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutService"})," reports and scrolling inside its own box — the page\nbehind it is never touched. It is used once per view, inside the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"main-content"}),"\nslot of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-main"}),", and nowhere else. A header or footer slot that\nreceives nothing collapses instead of leaving an empty bar."]}),"\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-layout-top-scroll-bottom",entry:_guide_ui_layout_top_scroll_bottom_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:"UiLayoutTopScrollBottomComponent"})," is designed to be used within ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-main"}),". It sizes itself to the content height reported by the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutService"})," and scrolls ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"inside its own content area"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow: auto"}),") — the page behind it is never touched."]}),"\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:"example-top-scroll-bottom",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/layout-top-scroll-bottom--top-scroll-bottom",children:"Example: Top Scroll Bottom"})}),"\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:"usage-constraints",children:"Usage Constraints"}),"\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:"Single Instance:"})," This component should only be used once per view/route."]}),"\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:"Parent Requirement:"})," Must be placed inside the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"main-content"})," slot of a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-main"})," component."]}),"\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:"Scroll Handling:"})," Scrolling happens inside the component's own content area (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow: auto"}),"); the component sets its own height from the layout service and never touches the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"body"}),"."]}),"\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:"content-slots-ng-content",children:"Content Slots (ng-content)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The component uses multiple named slots to organize content:"}),"\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:"[header]"})," (optional): Content to be displayed at the top of the scrollable area (sticky/fixed)."]}),"\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:"[content]"}),": The main scrollable content area."]}),"\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:"[footer]"})," (optional): Content to be displayed at the bottom of the scrollable area (sticky/fixed)."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A slot renders only while its section is enabled ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"and"})," actually received\nprojected content — an empty header or footer collapses instead of leaving an\nempty colored bar."]}),"\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:"inputs",children:"Inputs"}),"\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:"@Input"}),(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__.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:"header"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Whether the header slot is rendered at all."})]}),(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:"footer"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Whether the footer slot is rendered at all."})]})]})]}),"\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:"example-integration",children:"Example Integration"}),"\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-layout-main>\n <div main-header>Application Header</div>\n\n <ui-layout-top-scroll-bottom main-content>\n <div header>Fixed Header Content</div>\n <div content>\n \x3c!-- Long scrollable content goes here --\x3e\n </div>\n <div footer>Fixed Footer Content</div>\n </ui-layout-top-scroll-bottom>\n\n <div main-footer>Application Footer</div>\n</ui-layout-main>\n"})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TopScrollBottom:()=>TopScrollBottom,__namedExportsOrder:()=>__namedExportsOrder,default:()=>top_scroll_bottom_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),main_component=__webpack_require__("./libs/ui/src/lib/layout/main/main.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var top_scroll_bottom_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.css?ngResource"),top_scroll_bottom_componentngResource_default=__webpack_require__.n(top_scroll_bottom_componentngResource),_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"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),ngx_pwa_local_storage=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),Subscription=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subscription.js"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiLayoutTopScrollBottomComponent=class UiLayoutTopScrollBottomComponent{element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);storage=(0,_effect_chunk2.WQX)(ngx_pwa_local_storage.AX);layoutService=(0,_effect_chunk2.WQX)(layout_service.u);header=(0,core.input)(!0);footer=(0,core.input)(!0);subscription=new Subscription.yU;contentSize=null;headerValue=(0,_effect_chunk2.vPA)(!0);footerValue=(0,_effect_chunk2.vPA)(!0);headerElement=(0,core.viewChild)("headerElement");footerElement=(0,core.viewChild)("footerElement");constructor(){(0,_debug_node_chunk.mal)(()=>{this.headerValue.set(this.header()&&0!==(this.headerElement()?.nativeElement.children.length??0)),this.footerValue.set(this.footer()&&0!==(this.footerElement()?.nativeElement.children.length??0))})}ngOnInit(){this.headerValue.set(this.header()),this.footerValue.set(this.footer()),this.subscription.add(this.storage.watch(ui_config_types.y.storeName).subscribe(()=>{this.contentSize=this.layoutService.getLayoutSize()?.content??null,this.contentSize&&this.element.nativeElement.setAttribute("style",`height:${this.contentSize.height}px`)}))}ngOnDestroy(){this.subscription.unsubscribe()}static ctorParameters=()=>[];static propDecorators={header:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"header",required:!1,transform:void 0}]}],footer:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"footer",required:!1,transform:void 0}]}],headerElement:[{type:core.ViewChild,args:["headerElement",{isSignal:!0}]}],footerElement:[{type:core.ViewChild,args:["footerElement",{isSignal:!0}]}]}};UiLayoutTopScrollBottomComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-top-scroll-bottom, ui-top-scroll-bottom",template:'<div class="_wrapper">\n @if (headerValue()) {\n <header #headerElement>\n <ng-content select="[header]"></ng-content>\n </header>\n }\n\n <div class="_content">\n <ng-content select="[content]"></ng-content>\n </div>\n\n @if (footerValue()) {\n <footer #footerElement>\n <ng-content select="[footer]"></ng-content>\n </footer>\n }\n</div>\n',encapsulation:_debug_node_chunk.gXe.Emulated,styles:[top_scroll_bottom_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiLayoutTopScrollBottomComponent);const meta={title:"Layout/Top Scroll Bottom",decorators:[(0,dist.Iz)({providers:[],declarations:[],imports:[main_component.z,UiLayoutTopScrollBottomComponent]})],argTypes:{header:{control:"boolean"},footer:{control:"boolean"}}},loop=times=>{let output="";for(let i=0;i<times;i++)output=`${output} - content - ${i}<br>`;return output},top_scroll_bottom_component_stories=meta,TopScrollBottom={args:{header:!0,footer:!0},render:args=>({props:{...args,prefix:ui_config_types.Q},template:`\n <ui-layout-main [cssPrefix]="prefix">\n <strong main-header class="flex p-4 bg-[var(--ui-c-secondary)]">layout header</strong>\n <ui-layout-top-scroll-bottom main-content [header]="header" [footer]="footer">\n <span class="flex p-4" header>component header</span>\n <span class="flex p-4" content>${loop(100)}</span>\n <span class="flex p-4" footer>component footer</span>\n </ui-layout-top-scroll-bottom>\n <strong main-footer class="flex p-4 bg-[var(--ui-c-secondary)]">layout footer</strong>\n </ui-layout-main>\n `})},__namedExportsOrder=["TopScrollBottom"];TopScrollBottom.parameters={...TopScrollBottom.parameters,docs:{...TopScrollBottom.parameters?.docs,source:{originalSource:'{\n args: {\n header: true,\n footer: true\n },\n render: args => {\n return {\n props: {\n ...args,\n prefix: uiConfigStorybookCssPrefix\n },\n template: `\n <ui-layout-main [cssPrefix]="prefix">\n <strong main-header class="flex p-4 bg-[var(--ui-c-secondary)]">layout header</strong>\n <ui-layout-top-scroll-bottom main-content [header]="header" [footer]="footer">\n <span class="flex p-4" header>component header</span>\n <span class="flex p-4" content>${loop(100)}</span>\n <span class="flex p-4" footer>component footer</span>\n </ui-layout-top-scroll-bottom>\n <strong main-footer class="flex p-4 bg-[var(--ui-c-secondary)]">layout footer</strong>\n </ui-layout-main>\n `\n };\n }\n}',...TopScrollBottom.parameters?.docs?.source}}}},"./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.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 position: relative;\n display: flex;\n width: 100%;\n max-height: 100%;\n ._wrapper,\n header,\n ._content,\n footer {\n display: flex;\n flex-flow: column;\n width: 100%;\n }\n\n header {\n background-color: var(--ui-c-primary);\n flex: 0 0;\n }\n\n ._content {\n flex: 1 1;\n background-color: var(--ui-c-background);\n overflow: auto;\n }\n\n footer {\n flex: 0 0;\n background-color: var(--ui-c-primary);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3190],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__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_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_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/molecules/image-editor/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__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_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"),_image_editor_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_image_editor_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-image-editor.json");function _createMdxContent(props){const _components={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_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:_image_editor_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"image-editor",children:"Image Editor"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["An editor for a single image. The user can delete the current image or\nupload a new one (PNG, GIF or JPEG), crop it (freely or locked to an aspect\nratio) and the result is converted to a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"JPEG entirely in the browser"})," via a\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<canvas>"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"toBlob('image/jpeg', quality)"}),"). The finished blob is emitted through\nthe ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"save"})," output — the component itself never talks to a backend, so it is\nreusable across apps."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Client-side conversion means the server only has to store a small, finished\nJPEG: no server-side image library is required."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{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:["Edits one image in the browser: upload (PNG, GIF, JPEG), crop freely or to an\naspect ratio, delete, and emit the result as a JPEG blob through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"save"}),". It\nnever talks to a backend and keeps no image beyond the one it is shown. It comes\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"embedded"})," in the flow or as an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overlay"})," — the same editor, not two. It is the\nlibrary's only molecule: it composes the overlay, the overlay header, the crop\nbox and the slider."]}),"\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-image-editor",entry:_guide_ui_image_editor_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.h2,{id:"variants",children:"Variants"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The same content comes in two presentations, selected by the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"variant"})," input:"]}),"\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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"embedded"})})," (default): the editor stands in the document flow like any\nother element — no frame, no backdrop, no focus trap, no Escape semantics.\nIt fills the width it is given; the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"maximum width is set by the consumer"}),"\nvia styles on the host or a wrapping element, the minimum emerges from the\nfooter button row (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"flex-wrap"})," as a safety net for very narrow screens).\nDelete and Save return the editor to a clean view mode instead of closing\nanything, and leaving the crop stage is the Crop button's own second press —\nthe consumer provides whatever closes the editor itself; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"})," are not used."]}),"\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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overlay"})}),": wraps the editor in the ui overlay as before — backdrop,\nfocus trap, Escape and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"})," pair."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--with-image",children:"Open story"})}),"\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-image-editor\n [imageUrl]="currentCover()"\n [aspectRatio]="2 / 3"\n (save)="onCoverSaved($event)"\n (deleteImage)="onCoverDeleted()"\n></ui-image-editor>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"usage-overlay",children:"Usage (overlay)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-1",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--overlay",children:"Open story"})}),"\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-image-editor\n variant="overlay"\n [active]="editorActive()"\n [imageUrl]="currentCover()"\n [aspectRatio]="2 / 3"\n (save)="onCoverSaved($event)"\n (deleteImage)="onCoverDeleted()"\n (activeOutput)="editorActive.set($event)"\n></ui-image-editor>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"with-an-existing-image",children:"With an existing image"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-2",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--with-image",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Opening with an image shows it in view mode. The footer offers ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Delete"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Upload"})," (pick a new file), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop"})," (edit the current image without\nre-uploading) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Save"}),". Both ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Upload"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop"})," switch to the crop\nstage; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Save"})," is enabled there. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop"})," switches back out again — it is a\ntoggle, not a one-way door."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The crop box works by pointer and by keyboard alike: it is a tab stop, the\narrow keys pan it, Shift with an arrow resizes it from the south-east corner\n— a locked ratio holds exactly as it does for a pointer on that corner. This\npage is the only place that says so: the hint that used to sit under the box\nnamed the arrow keys but not the corner, which sent readers to pull at the\nwrong edge."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"locked-aspect-ratio",children:"Locked aspect ratio"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--poster-ratio",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Passing ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aspectRatio"})," (e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2 / 3"})," for a poster) constrains the crop box while\nresizing; the height follows the width automatically. Only the corner handles\nare shown in this mode."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"empty-state",children:"Empty state"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-4",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--empty",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"imageUrl"})," the editor shows an empty placeholder and only the upload\naction."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"footer-buttons",children:"Footer buttons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Four icon buttons on one row (grey surface, tinted icons where it helps). Each\ncarries a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-label"})," tooltip. Muted buttons keep the same grey\nbackground — only their icon is dimmed, in its normal colour, so it stays\nreadable against that surface. The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--empty",children:"empty state"}),"\nshows this: with no image, Crop, Delete and Save are all muted."]}),"\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:"Crop is muted, never disabled"}),", and that is a keyboard decision rather than\na visual one. Pressing it used to switch it off — entering the crop stage made\nits own condition false — and a disabled element is not focusable, so the\nfocus was dropped by the very press that moved the editor forward, in a\ncomponent whose crop box is meant to be operated by keyboard. It therefore\ncarries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'aria-disabled="true"'})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-pressed"}),", stays reachable in every\nstate, and does nothing when there is nothing to crop (see the house rule in\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"usage.md"}),', "Disabled controls and the keyboard").']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Delete and Save still use the attribute, and that is an open end rather than a\ndistinction: pressing Delete removes the image, which is the condition Delete\nreads, and pressing Save leaves the crop stage, which is the condition Save\nreads — so both switch themselves off under the focus that pressed them, for\nthe same reason Crop did. Crop was fixed first because it is the one you press\ntwice. The other two are named here so the gap is on the page instead of in\nsomeone's memory."}),"\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:"Button"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Icon"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Enabled when"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Action"})]})}),(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:"Upload"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"add_a_photo"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"always"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Opens the file picker; a chosen PNG/GIF/JPEG enters the crop stage."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Crop (toggle)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"crop"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["always reachable; muted (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"aria-disabled"}),") without an image"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Loads the current image into the crop stage — and a second press discards the crop and returns to view. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"aria-pressed"})," says which state it is in."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Delete (red icon)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"delete"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"an image exists"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"deleteImage"})," and closes the overlay (embedded: resets to view)."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Save (green icon when active)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"save"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"crop stage and not converting"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Converts the crop to a JPEG, emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"save"}),", closes the overlay (embedded: resets to view)."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Rejecting a file (wrong type or over the size limit) shows an inline error and\nstays in the current stage."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"inputs",children:"Inputs"}),"\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:"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__.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:"variant"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'embedded' | 'overlay'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'embedded'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"In-flow presentation or the ui overlay."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"active"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Opens/closes the overlay (overlay variant only)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"imageUrl"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"string | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The current image shown when the editor opens."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"aspectRatio"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Locks the crop to this width/height ratio; null allows free cropping."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"maxWidth"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"1200"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Maximum output width in pixels; height follows the crop ratio."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"quality"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"0.75"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"JPEG quality (0..1) of the converted output."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"maxFileSizeMb"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"10"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Rejects source files larger than this (megabytes)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"headline"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"string | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Optional overlay title; falls back to the imageEditor.title key."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"overlayDirection"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'center' | 'top' | 'bottom' | 'left' | 'right' | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Side the overlay slides in from (overlay variant only); null keeps the\noverlay's own centre default. Use 'left'/'right' to make the editor a\ndrawer that matches an app's navigation panel."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"overlayFitContent"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Sizes the overlay to its content instead of the available height\n(overlay variant only) — see the overlay's own fitContent. Keeps a sheet\nholding a small image from standing there as a tall, empty column."})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The overlay variant always runs with the overlay's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"viewportHeight"}),": a sheet\nbelongs to the browser window, not to the document. Without it the percentage\nheights resolve against a transformed ancestor's box, and inside a long page\nthat stretches the sheet to the full document height — header and footer end up\nfar outside the visible area."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"outputs",children:"Outputs"}),"\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:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Payload"}),(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:"save"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Blob"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The converted JPEG when the user saves."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"deleteImage"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"void"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Emitted when the user deletes the current image."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"activeOutput"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Forwards the overlay close event (emits false; overlay variant only)."})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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)}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1838,5995],{"./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/atoms/copy-value/copy-value.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>UiCopyValueComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var copy_value_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/copy-value/copy-value.component.css?ngResource"),copy_value_componentngResource_default=__webpack_require__.n(copy_value_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.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");let UiCopyValueComponent=class UiCopyValueComponent{get roleAttr(){return this.value()?"button":null}get tabIndexAttr(){return this.value()?"0":null}get ariaLabelAttr(){return this.value()?this.ariaLabel():null}value=(0,core.input)("");copiedLabel=(0,core.input)(null);copiedIcon=(0,core.input)(null);ariaLabel=(0,core.input)(null);copied=(0,_effect_chunk2.vPA)(!1);onClick(){this.copy()}onKeydown(event){"Enter"!==event.key&&" "!==event.key||(event.preventDefault(),this.copy())}copy(){const value=this.value();value&&navigator.clipboard.writeText(value).then(()=>{this.copied.set(!0),setTimeout(()=>this.copied.set(!1),2e3)})}static propDecorators={roleAttr:[{type:_debug_node_chunk.g$6,args:["attr.role"]}],tabIndexAttr:[{type:_debug_node_chunk.g$6,args:["attr.tabindex"]}],ariaLabelAttr:[{type:_debug_node_chunk.g$6,args:["attr.aria-label"]}],value:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"value",required:!1,transform:void 0}]}],copiedLabel:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"copiedLabel",required:!1,transform:void 0}]}],copiedIcon:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"copiedIcon",required:!1,transform:void 0}]}],ariaLabel:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"ariaLabel",required:!1,transform:void 0}]}],onClick:[{type:_debug_node_chunk.Z$l,args:["click"]}],onKeydown:[{type:_debug_node_chunk.Z$l,args:["keydown",["$event"]]}]}};UiCopyValueComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-copy-value",template:'<ng-content></ng-content>\n\n@if (copied()) {\n <div class="_copied">\n @if (copiedIcon(); as icon) {\n <span class="ui-icon">{{ icon }}</span>\n } @else {\n <strong>{{ copiedLabel() ?? (\'actions.copied\' | transloco) }}</strong>\n }\n </div>\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[copy_value_componentngResource_default()]})],UiCopyValueComponent)},"./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/demos/styling/colors/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_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"),_colors_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_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:_colors_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-colors",children:"Styling Colors"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This section showcases the application's color palette. We use a set of CSS variables that are integrated into Tailwind CSS for utility class usage."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-colors--colors",children:"Colors story"})," displays the available\ncolors and their variants (including different opacities) in both themes."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The variables themselves (naming convention, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"-value"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"-tw"})," companions, all\ntokens) are documented centrally in\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/styling-css-variables--docs",children:"Styling/CSS Variables"}),"."]}),"\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:"tailwind-utilities",children:"Tailwind Utilities"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The UI library provides standard Tailwind-style classes for text and background colors."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Use the prefix ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"text-c-"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"bg-c-"})," followed by the color name."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-tailwind-colors",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-colors--colors",children:"Open Tailwind Colors"})}),"\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:'<p class="text-c-success">Successful text</p>\n<span class="text-c-error">Error message</span>\n\n<div class="bg-c-primary">Main background container</div>\n<button class="bg-c-focus text-c-static-invert">Action Button</button>\n\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:"opacity-tailwind-modifiers",children:"Opacity Tailwind Modifiers"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Thanks to Tailwind integration, you can also use opacity modifiers with the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"/"})," syntax."]}),"\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:'<div class="bg-c-default/20">Light overlay (20% opacity)</div>\n<div class="bg-c-primary/60">Semi-transparent background</div>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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/.storybook/demos/styling/colors/colors.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Colors:()=>Colors,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_src_lib_atoms_card_card_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.ts"),_src_lib_atoms_copy_value_copy_value_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/lib/atoms/copy-value/copy-value.component.ts"),_header_header_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Styling/Colors",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_header_header_component__WEBPACK_IMPORTED_MODULE_3__.b,_src_lib_atoms_card_card_component__WEBPACK_IMPORTED_MODULE_1__.O,_src_lib_atoms_copy_value_copy_value_component__WEBPACK_IMPORTED_MODULE_2__.y]})],argTypes:{},args:{}},Colors={render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true" ></ui-intern-header>\n <section class="relative flex flex-col pb-24">\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6">\n <ui-copy-value class="flex!" [value]="\'bg-c-default/20\'"><ui-card [headline]="\'bg-c-default/20\'" class="flex! grow bg-c-default/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default/40\'"><ui-card [headline]="\'bg-c-default/40\'" class="flex! grow bg-c-default/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default/60\'"><ui-card [headline]="\'bg-c-default/60\'" class="flex! grow bg-c-default/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default/80\'"><ui-card [headline]="\'bg-c-default/80\'" class="flex! grow bg-c-default/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default\'"><ui-card [headline]="\'bg-c-default\'" class="flex! grow bg-c-default"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6">\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/20\'"><ui-card [headline]="\'bg-c-default-invert/20\'" class="flex! grow bg-c-default-invert/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/40\'"><ui-card [headline]="\'bg-c-default-invert/40\'" class="flex! grow bg-c-default-invert/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/60\'"><ui-card [headline]="\'bg-c-default-invert/60\'" class="flex! grow bg-c-default-invert/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/80\'"><ui-card [headline]="\'bg-c-default-invert/80\'" class="flex! grow bg-c-default-invert/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert\'"><ui-card [headline]="\'bg-c-default-invert\'" class="flex! grow bg-c-default-invert"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/20\'"><ui-card [headline]="\'bg-c-primary/20\'" class="flex! grow bg-c-primary/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/40\'"><ui-card [headline]="\'bg-c-primary/40\'" class="flex! grow bg-c-primary/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/60\'"><ui-card [headline]="\'bg-c-primary/60\'" class="flex! grow bg-c-primary/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/80\'"><ui-card [headline]="\'bg-c-primary/80\'" class="flex! grow bg-c-primary/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary\'"><ui-card [headline]="\'bg-c-primary\'" class="flex! grow bg-c-primary"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/20\'"><ui-card [headline]="\'bg-c-primary-invert/20\'" class="flex! grow bg-c-primary-invert/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/40\'"><ui-card [headline]="\'bg-c-primary-invert/40\'" class="flex! grow bg-c-primary-invert/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/60\'"><ui-card [headline]="\'bg-c-primary-invert/60\'" class="flex! grow bg-c-primary-invert/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/80\'"><ui-card [headline]="\'bg-c-primary-invert/80\'" class="flex! grow bg-c-primary-invert/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert\'"><ui-card [headline]="\'bg-c-primary-invert\'" class="flex! grow bg-c-primary-invert"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/20\'"><ui-card [headline]="\'bg-c-secondary/20\'" class="flex! grow bg-c-secondary/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/40\'"><ui-card [headline]="\'bg-c-secondary/40\'" class="flex! grow bg-c-secondary/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/60\'"><ui-card [headline]="\'bg-c-secondary/60\'" class="flex! grow bg-c-secondary/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/80\'"><ui-card [headline]="\'bg-c-secondary/80\'" class="flex! grow bg-c-secondary/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary\'"><ui-card [headline]="\'bg-c-secondary\'" class="flex! grow bg-c-secondary"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/20\'"><ui-card [headline]="\'bg-c-thirdly/20\'" class="flex! grow bg-c-thirdly/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/40\'"><ui-card [headline]="\'bg-c-thirdly/40\'" class="flex! grow bg-c-thirdly/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/60\'"><ui-card [headline]="\'bg-c-thirdly/60\'" class="flex! grow bg-c-thirdly/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/80\'"><ui-card [headline]="\'bg-c-thirdly/80\'" class="flex! grow bg-c-thirdly/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly\'"><ui-card [headline]="\'bg-c-thirdly\'" class="flex! grow bg-c-thirdly"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/20\'"><ui-card [headline]="\'bg-c-fourthly/20\'" class="flex! grow bg-c-fourthly/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/40\'"><ui-card [headline]="\'bg-c-fourthly/40\'" class="flex! grow bg-c-fourthly/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/60\'"><ui-card [headline]="\'bg-c-fourthly/60\'" class="flex! grow bg-c-fourthly/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/80\'"><ui-card [headline]="\'bg-c-fourthly/80\'" class="flex! grow bg-c-fourthly/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly\'"><ui-card [headline]="\'bg-c-fourthly\'" class="flex! grow bg-c-fourthly"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-background/20\'"><ui-card [headline]="\'bg-c-background/20\'" class="flex! grow bg-c-background/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background/40\'"><ui-card [headline]="\'bg-c-background/40\'" class="flex! grow bg-c-background/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background/60\'"><ui-card [headline]="\'bg-c-background/60\'" class="flex! grow bg-c-background/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background/80\'"><ui-card [headline]="\'bg-c-background/80\'" class="flex! grow bg-c-background/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background\'"><ui-card [headline]="\'bg-c-background\'" class="flex! grow bg-c-background"></ui-card></ui-copy-value>\n </div>\n\n <hr class="ui-dotted" />\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-success/20\'"><ui-card [headline]="\'bg-c-success/20\'" class="flex! grow bg-c-success/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success/40\'"><ui-card [headline]="\'bg-c-success/40\'" class="flex! grow bg-c-success/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success/60\'"><ui-card [headline]="\'bg-c-success/60\'" class="flex! grow bg-c-success/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success/80\'"><ui-card [headline]="\'bg-c-success/80\'" class="flex! grow bg-c-success/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success\'"><ui-card [headline]="\'bg-c-success\'" class="flex! grow bg-c-success"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/20\'"><ui-card [headline]="\'bg-c-warn/20\'" class="flex! grow bg-c-warn/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/40\'"><ui-card [headline]="\'bg-c-warn/40\'" class="flex! grow bg-c-warn/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/60\'"><ui-card [headline]="\'bg-c-warn/60\'" class="flex! grow bg-c-warn/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/80\'"><ui-card [headline]="\'bg-c-warn/80\'" class="flex! grow bg-c-warn/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn\'"><ui-card [headline]="\'bg-c-warn\'" class="flex! grow bg-c-warn"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-error/20\'"><ui-card [headline]="\'bg-c-error/20\'" class="flex! grow bg-c-error/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error/40\'"><ui-card [headline]="\'bg-c-error/40\'" class="flex! grow bg-c-error/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error/60\'"><ui-card [headline]="\'bg-c-error/60\'" class="flex! grow bg-c-error/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error/80\'"><ui-card [headline]="\'bg-c-error/80\'" class="flex! grow bg-c-error/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error\'"><ui-card [headline]="\'bg-c-error\'" class="flex! grow bg-c-error"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/20\'"><ui-card [headline]="\'bg-c-focus/20\'" class="flex! grow bg-c-focus/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/40\'"><ui-card [headline]="\'bg-c-focus/40\'" class="flex! grow bg-c-focus/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/60\'"><ui-card [headline]="\'bg-c-focus/60\'" class="flex! grow bg-c-focus/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/80\'"><ui-card [headline]="\'bg-c-focus/80\'" class="flex! grow bg-c-focus/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus\'"><ui-card [headline]="\'bg-c-focus\'" class="flex! grow bg-c-focus"></ui-card></ui-copy-value>\n </div>\n\n</section>\n\n\n '}),parameters:{controls:{disabled:!0}}},__namedExportsOrder=["Colors"];Colors.parameters={...Colors.parameters,docs:{...Colors.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true" ></ui-intern-header>\n <section class="relative flex flex-col pb-24">\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6">\n <ui-copy-value class="flex!" [value]="\'bg-c-default/20\'"><ui-card [headline]="\'bg-c-default/20\'" class="flex! grow bg-c-default/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default/40\'"><ui-card [headline]="\'bg-c-default/40\'" class="flex! grow bg-c-default/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default/60\'"><ui-card [headline]="\'bg-c-default/60\'" class="flex! grow bg-c-default/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default/80\'"><ui-card [headline]="\'bg-c-default/80\'" class="flex! grow bg-c-default/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default\'"><ui-card [headline]="\'bg-c-default\'" class="flex! grow bg-c-default"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6">\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/20\'"><ui-card [headline]="\'bg-c-default-invert/20\'" class="flex! grow bg-c-default-invert/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/40\'"><ui-card [headline]="\'bg-c-default-invert/40\'" class="flex! grow bg-c-default-invert/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/60\'"><ui-card [headline]="\'bg-c-default-invert/60\'" class="flex! grow bg-c-default-invert/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert/80\'"><ui-card [headline]="\'bg-c-default-invert/80\'" class="flex! grow bg-c-default-invert/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-default-invert\'"><ui-card [headline]="\'bg-c-default-invert\'" class="flex! grow bg-c-default-invert"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/20\'"><ui-card [headline]="\'bg-c-primary/20\'" class="flex! grow bg-c-primary/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/40\'"><ui-card [headline]="\'bg-c-primary/40\'" class="flex! grow bg-c-primary/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/60\'"><ui-card [headline]="\'bg-c-primary/60\'" class="flex! grow bg-c-primary/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary/80\'"><ui-card [headline]="\'bg-c-primary/80\'" class="flex! grow bg-c-primary/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary\'"><ui-card [headline]="\'bg-c-primary\'" class="flex! grow bg-c-primary"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/20\'"><ui-card [headline]="\'bg-c-primary-invert/20\'" class="flex! grow bg-c-primary-invert/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/40\'"><ui-card [headline]="\'bg-c-primary-invert/40\'" class="flex! grow bg-c-primary-invert/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/60\'"><ui-card [headline]="\'bg-c-primary-invert/60\'" class="flex! grow bg-c-primary-invert/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert/80\'"><ui-card [headline]="\'bg-c-primary-invert/80\'" class="flex! grow bg-c-primary-invert/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-primary-invert\'"><ui-card [headline]="\'bg-c-primary-invert\'" class="flex! grow bg-c-primary-invert"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/20\'"><ui-card [headline]="\'bg-c-secondary/20\'" class="flex! grow bg-c-secondary/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/40\'"><ui-card [headline]="\'bg-c-secondary/40\'" class="flex! grow bg-c-secondary/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/60\'"><ui-card [headline]="\'bg-c-secondary/60\'" class="flex! grow bg-c-secondary/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary/80\'"><ui-card [headline]="\'bg-c-secondary/80\'" class="flex! grow bg-c-secondary/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-secondary\'"><ui-card [headline]="\'bg-c-secondary\'" class="flex! grow bg-c-secondary"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/20\'"><ui-card [headline]="\'bg-c-thirdly/20\'" class="flex! grow bg-c-thirdly/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/40\'"><ui-card [headline]="\'bg-c-thirdly/40\'" class="flex! grow bg-c-thirdly/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/60\'"><ui-card [headline]="\'bg-c-thirdly/60\'" class="flex! grow bg-c-thirdly/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly/80\'"><ui-card [headline]="\'bg-c-thirdly/80\'" class="flex! grow bg-c-thirdly/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-thirdly\'"><ui-card [headline]="\'bg-c-thirdly\'" class="flex! grow bg-c-thirdly"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/20\'"><ui-card [headline]="\'bg-c-fourthly/20\'" class="flex! grow bg-c-fourthly/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/40\'"><ui-card [headline]="\'bg-c-fourthly/40\'" class="flex! grow bg-c-fourthly/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/60\'"><ui-card [headline]="\'bg-c-fourthly/60\'" class="flex! grow bg-c-fourthly/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly/80\'"><ui-card [headline]="\'bg-c-fourthly/80\'" class="flex! grow bg-c-fourthly/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-fourthly\'"><ui-card [headline]="\'bg-c-fourthly\'" class="flex! grow bg-c-fourthly"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-background/20\'"><ui-card [headline]="\'bg-c-background/20\'" class="flex! grow bg-c-background/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background/40\'"><ui-card [headline]="\'bg-c-background/40\'" class="flex! grow bg-c-background/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background/60\'"><ui-card [headline]="\'bg-c-background/60\'" class="flex! grow bg-c-background/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background/80\'"><ui-card [headline]="\'bg-c-background/80\'" class="flex! grow bg-c-background/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-background\'"><ui-card [headline]="\'bg-c-background\'" class="flex! grow bg-c-background"></ui-card></ui-copy-value>\n </div>\n\n <hr class="ui-dotted" />\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-success/20\'"><ui-card [headline]="\'bg-c-success/20\'" class="flex! grow bg-c-success/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success/40\'"><ui-card [headline]="\'bg-c-success/40\'" class="flex! grow bg-c-success/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success/60\'"><ui-card [headline]="\'bg-c-success/60\'" class="flex! grow bg-c-success/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success/80\'"><ui-card [headline]="\'bg-c-success/80\'" class="flex! grow bg-c-success/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-success\'"><ui-card [headline]="\'bg-c-success\'" class="flex! grow bg-c-success"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/20\'"><ui-card [headline]="\'bg-c-warn/20\'" class="flex! grow bg-c-warn/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/40\'"><ui-card [headline]="\'bg-c-warn/40\'" class="flex! grow bg-c-warn/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/60\'"><ui-card [headline]="\'bg-c-warn/60\'" class="flex! grow bg-c-warn/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn/80\'"><ui-card [headline]="\'bg-c-warn/80\'" class="flex! grow bg-c-warn/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-warn\'"><ui-card [headline]="\'bg-c-warn\'" class="flex! grow bg-c-warn"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-error/20\'"><ui-card [headline]="\'bg-c-error/20\'" class="flex! grow bg-c-error/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error/40\'"><ui-card [headline]="\'bg-c-error/40\'" class="flex! grow bg-c-error/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error/60\'"><ui-card [headline]="\'bg-c-error/60\'" class="flex! grow bg-c-error/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error/80\'"><ui-card [headline]="\'bg-c-error/80\'" class="flex! grow bg-c-error/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-error\'"><ui-card [headline]="\'bg-c-error\'" class="flex! grow bg-c-error"></ui-card></ui-copy-value>\n </div>\n\n <div class="grid grid-cols-5 gap-2 p-2 mb-6 ">\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/20\'"><ui-card [headline]="\'bg-c-focus/20\'" class="flex! grow bg-c-focus/20"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/40\'"><ui-card [headline]="\'bg-c-focus/40\'" class="flex! grow bg-c-focus/40"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/60\'"><ui-card [headline]="\'bg-c-focus/60\'" class="flex! grow bg-c-focus/60"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus/80\'"><ui-card [headline]="\'bg-c-focus/80\'" class="flex! grow bg-c-focus/80"></ui-card></ui-copy-value>\n <ui-copy-value class="flex!" [value]="\'bg-c-focus\'"><ui-card [headline]="\'bg-c-focus\'" class="flex! grow bg-c-focus"></ui-card></ui-copy-value>\n </div>\n\n</section>\n\n\n `\n };\n },\n parameters: {\n controls: {\n disabled: true\n }\n }\n}',...Colors.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()},"./libs/ui/src/lib/atoms/copy-value/copy-value.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. */\nui-copy-value {\n /* `contents` would be the tempting choice (the wrapper adds no box of its\n own), but the confirmation has to be positioned against something, and a\n host with `display: contents` generates no box to position against. So it\n stays a box — and an inline-block one, so wrapping something does not\n silently turn it into a full-width block. */\n position: relative;\n display: inline-block;\n\n /* Only a wrapper that actually has something to copy looks clickable — the\n role attribute is the single source of that truth (see the host binding). */\n &[role='button'] {\n cursor: pointer;\n }\n\n &:focus-visible {\n outline: var(--ui-border-width) solid var(--ui-c-focus);\n outline-offset: calc(var(--ui-border-width) * 2);\n }\n\n /* Lies OVER the content instead of taking space: nothing may move while the\n confirmation shows, or a list of copyable things twitches on every click. */\n ._copied {\n position: absolute;\n inset: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(var(--ui-c-background-value), 0.9);\n /* The confirmation cannot know how its content is rounded, so it stops\n guessing: it takes the radius from the HOST, which is the caller's to\n set alongside whatever is wrapped. It used to impose 4px on content\n rounded at 2.5px, and the four corners of that content stuck out past\n the overlay — visible as dark specks at 4x zoom.\n\n The border is the same colour as the fill and covers the content's own\n border, which would otherwise show through the 90% background as a grey\n line all the way round. */\n border: var(--ui-border-width) solid\n rgba(var(--ui-c-background-value), 0.9);\n border-radius: inherit;\n animation: uiCopyValueIn calc(var(--ui-time) * 0.25) ease-in-out;\n /* The confirmation is a message, not a target — a click meant for the\n content must not land on it. */\n pointer-events: none;\n }\n}\n\n/* No leading underscore in the keyframes name — Angular would detach it. */\n@keyframes uiCopyValueIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[7893],{"./libs/ui/.storybook/demos/styling/css-variables/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Swatch:()=>Swatch,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_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");const Swatch=({token})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{role:"button",tabIndex:0,title:`Copy var(${token})`,"aria-label":`Copy var(${token})`,onClick:event=>{navigator.clipboard.writeText(`var(${token})`);const box=event.currentTarget,previous=box.style.boxShadow;box.style.boxShadow="0 0 0 2px var(--ui-c-success)",setTimeout(()=>{box.style.boxShadow=previous},1e3)},onKeyDown:event=>{"Enter"!==event.key&&" "!==event.key||(event.preventDefault(),event.currentTarget.click())},style:{backgroundColor:`var(${token})`,margin:"0.5rem",height:"2rem",cursor:"pointer"}});function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_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,{title:"Styling/CSS Variables"}),"\n","\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:"All design tokens of the UI library are plain CSS custom properties — the\nsingle source of truth since the Sass removal. Two files define them:"}),"\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:"Scalars"}),": ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"libs/ui/src/styles/declaration/globals.css"})," (on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":root"}),")"]}),"\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:"Colors"}),": ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"libs/ui/src/styles/config/colors.css"})," (theme scoped)"]}),"\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:"scalar-tokens",children:"Scalar tokens"}),"\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:"Variable"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Used for"})]})}),(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:"--ui-spacer"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"4rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Base spacing unit — paddings/gaps are derived from it (e.g. form element padding is 0.125×, selects 0.2×)."})]}),(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:"--ui-border-width"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1px"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Border width of inputs, selects, textareas and buttons."})]}),(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:"--ui-border-radius"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0.4rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Corner radius of form elements, buttons, cards (checkbox uses 0.6×, radio is round)."})]}),(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:"--ui-icon-size"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"2.4rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Size of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-icon"})," Material icons."]})]}),(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:"--ui-button-shadow"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0.2rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Shadow size for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," buttons and focus/error glows. Not used by ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-flat"})," (flat never has shadows)."]})]}),(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:"--ui-default-shadow"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1rem"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Default shadow size for larger surfaces (overlays, cards)."})]}),(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:"--ui-time"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1s"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Base duration for animations."})]}),(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:"--ui-content-height"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"76vh"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Height of the main content area in the layout."})]}),(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:"--ui-transition"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"transform 250ms cubic-bezier(0, 0, 0.2, 1)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Shared transition for transform-based movement."})]}),(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:"--ui-box-shadow"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 1rem 0.25rem var(--ui-c-secondary)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Composed default box shadow."})]})]})]}),"\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:"color-tokens",children:"Color tokens"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["All library colors are prefixed with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-"}),". They are defined once for the\nlight theme (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"body"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".theme-light"}),") and once for the dark theme\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".theme-dark"}),") — switching the theme class on an ancestor re-themes\neverything automatically."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Each color ships with two companions:"}),"\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:"-value"})," suffix (e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-primary-value"}),"): the raw RGB triple\n(e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"255, 255, 255"}),") for custom opacity via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"rgba(var(--ui-c-primary-value), 0.5)"}),"."]}),"\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:"-tw"})," suffix: the runtime hook that maps the color into Tailwind utilities\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"text-c-primary"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"bg-c-primary"}),", incl. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"/opacity"})," modifiers)."]}),"\n"]}),"\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:"Variable"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"8rem"},children:"Light"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"1rem"}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"8rem"},children:"Dark"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Used for"})]})}),(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:"--ui-c-default"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-default"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-default"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Standard text and icon color."})]}),(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:"--ui-c-default-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-default-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-default-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Inverted text color (e.g. check/radio glyphs)."})]}),(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:"--ui-c-background"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-background"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-background"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Page and input background (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-flat"})," inputs are transparent at rest)."]})]}),(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:"--ui-c-primary"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-primary"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-primary"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Main surface color; background of disabled buttons."})]}),(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:"--ui-c-primary-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-primary-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-primary-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Inverted main surface color."})]}),(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:"--ui-c-secondary"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-secondary"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-secondary"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Secondary surfaces; checked state of checkbox/radio."})]}),(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:"--ui-c-thirdly"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-thirdly"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-thirdly"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Tertiary accents; shadow color of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," buttons."]})]}),(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:"--ui-c-fourthly"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-fourthly"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-fourthly"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Resting border of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," inputs; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," button surface."]})]}),(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:"--ui-c-focus"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-focus"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-focus"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Focus color: border + glow for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"}),"; 8% surface (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"color-mix"}),") for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-flat"}),"."]})]}),(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:"--ui-c-error"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-error"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-error"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Validation errors: border + glow for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"}),"; 8% surface for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-flat"}),". Also ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-danger"})," buttons."]})]}),(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:"--ui-c-success"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-success"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-success"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Success state; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-success"})," buttons."]})]}),(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:"--ui-c-warn"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-warn"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-warn"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Warning state; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-warn"})," buttons."]})]}),(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:"--ui-c-static"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-static"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-static"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Theme-independent dark text (used on colored surfaces, e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-warn"}),")."]})]}),(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:"--ui-c-static-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-light",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-static-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{class:"theme-dark",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Swatch,{token:"--ui-c-static-invert"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Theme-independent light text (used on colored surfaces, e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-success"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-danger"}),")."]})]})]})]}),"\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:"See also:"}),"\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.a,{href:"?path=/docs/styling-colors--docs",children:"Styling/Colors"})," — the palette with opacity\nexamples and the Tailwind utilities (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"text-c-*"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"bg-c-*"}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/styling-forms--docs",children:"Styling/Forms"})," — how the tokens style the\nform elements (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-flat"}),")."]}),"\n"]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_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)}}}]);