@mojawork/ui-docs 2.8.1 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/typewriter.md +4 -3
  3. package/catalog/guide.json +6 -6
  4. package/catalog/layout/spinner.md +11 -2
  5. package/catalog/manifest.json +4 -4
  6. package/catalog/version.json +2 -2
  7. package/package.json +1 -1
  8. package/storybook/1183.fafda52d.iframe.bundle.js +1 -0
  9. package/storybook/2033.986e1406.iframe.bundle.js +1 -0
  10. package/storybook/2089.d5a3e21e.iframe.bundle.js +1 -0
  11. package/storybook/2127.d7de271b.iframe.bundle.js +2 -0
  12. package/storybook/2228.7013a637.iframe.bundle.js +2 -0
  13. package/storybook/2639.7f497882.iframe.bundle.js +1 -0
  14. package/storybook/2971.036e7a14.iframe.bundle.js +1 -0
  15. package/storybook/3968.3c931220.iframe.bundle.js +1 -0
  16. package/storybook/{4425.368129b3.iframe.bundle.js → 4425.7f753a38.iframe.bundle.js} +2 -2
  17. package/storybook/4476.1b913b82.iframe.bundle.js +1 -0
  18. package/storybook/{4555.e26d162c.iframe.bundle.js → 4555.574c843f.iframe.bundle.js} +1 -1
  19. package/storybook/4755.0561bac5.iframe.bundle.js +23 -0
  20. package/storybook/{4755.e4656207.iframe.bundle.js.map → 4755.0561bac5.iframe.bundle.js.map} +1 -1
  21. package/storybook/4935.f88465d9.iframe.bundle.js +1 -0
  22. package/storybook/5568.be85a9aa.iframe.bundle.js +1 -0
  23. package/storybook/6824.4b8f7b0a.iframe.bundle.js +1 -0
  24. package/storybook/8051.dbaf9937.iframe.bundle.js +1 -0
  25. package/storybook/871.5a781df6.iframe.bundle.js +1 -0
  26. package/storybook/8819.8e56201f.iframe.bundle.js +1 -0
  27. package/storybook/9850.5a17be74.iframe.bundle.js +1 -0
  28. package/storybook/9946.6fea16dc.iframe.bundle.js +1 -0
  29. package/storybook/_external-mwork-banner-docs-mdx.f33bbf56.iframe.bundle.js +1 -0
  30. package/storybook/_external-mwork-basic-interpreter-docs-mdx.81168b4c.iframe.bundle.js +1 -0
  31. package/storybook/_external-mwork-music-player-docs-mdx.46f4887e.iframe.bundle.js +1 -0
  32. package/storybook/assets/ui/sounds/type.mp3 +0 -0
  33. package/storybook/atoms-_electrons-form-error-message-docs-mdx.9382b0cb.iframe.bundle.js +1 -0
  34. package/storybook/atoms-_electrons-loader-docs-mdx.e8bb9642.iframe.bundle.js +1 -0
  35. package/storybook/atoms-background-docs-mdx.0e861f2c.iframe.bundle.js +1 -0
  36. package/storybook/atoms-barcode-docs-mdx.78b610dc.iframe.bundle.js +1 -0
  37. package/storybook/atoms-buzzer-docs-mdx.f9daf952.iframe.bundle.js +1 -0
  38. package/storybook/atoms-card-docs-mdx.f8b63920.iframe.bundle.js +1 -0
  39. package/storybook/atoms-chart-docs-mdx.29f10b89.iframe.bundle.js +1 -0
  40. package/storybook/atoms-clock-docs-mdx.6864626c.iframe.bundle.js +1 -0
  41. package/storybook/atoms-copy-value-docs-mdx.fbe168e2.iframe.bundle.js +1 -0
  42. package/storybook/atoms-image-grid-docs-mdx.9df158a9.iframe.bundle.js +1 -0
  43. package/storybook/atoms-image-slider-docs-mdx.4ae341f5.iframe.bundle.js +1 -0
  44. package/storybook/atoms-inline-spinner-docs-mdx.8b942147.iframe.bundle.js +1 -0
  45. package/storybook/atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js +2 -0
  46. package/storybook/atoms-mosaic-docs-mdx.738f012c.iframe.bundle.js +1 -0
  47. package/storybook/atoms-placeholder-docs-mdx.7d376291.iframe.bundle.js +1 -0
  48. package/storybook/atoms-qr-code-docs-mdx.c47f67c9.iframe.bundle.js +1 -0
  49. package/storybook/atoms-rating-docs-mdx.d7df9a29.iframe.bundle.js +1 -0
  50. package/storybook/atoms-reader-doc-docs-mdx.f5375a37.iframe.bundle.js +1 -0
  51. package/storybook/atoms-text-animate-docs-mdx.152fc1bd.iframe.bundle.js +1 -0
  52. package/storybook/atoms-thumb-docs-mdx.525fc046.iframe.bundle.js +1 -0
  53. package/storybook/atoms-timer-docs-mdx.686f0392.iframe.bundle.js +1 -0
  54. package/storybook/atoms-typewriter-docs-mdx.a6c3f6b0.iframe.bundle.js +1 -0
  55. package/storybook/atoms-typewriter-typewriter-component-stories.3a4f5356.iframe.bundle.js +1 -0
  56. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.0aa5b787.iframe.bundle.js +1 -0
  57. package/storybook/cdk-components-table-docs-mdx.74bd247c.iframe.bundle.js +1 -0
  58. package/storybook/examples-docs-mdx.1a9d8db0.iframe.bundle.js +1 -0
  59. package/storybook/examples-image-grid-slider-docs-mdx.e56160ef.iframe.bundle.js +1 -0
  60. package/storybook/examples-layout-docs-mdx.d7d6f90b.iframe.bundle.js +1 -0
  61. package/storybook/examples-table-edit-focus-docs-mdx.55960e55.iframe.bundle.js +1 -0
  62. package/storybook/examples-transloco-docs-mdx.46447d84.iframe.bundle.js +2 -0
  63. package/storybook/forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js +2 -0
  64. package/storybook/forms-autofocus-docs-mdx.ce239261.iframe.bundle.js +1 -0
  65. package/storybook/forms-checkbox-checkbox-component-stories.df3196e5.iframe.bundle.js +1 -0
  66. package/storybook/forms-checkbox-docs-mdx.890972f3.iframe.bundle.js +1 -0
  67. package/storybook/forms-chip-docs-mdx.89a48075.iframe.bundle.js +1 -0
  68. package/storybook/forms-input-docs-mdx.56627297.iframe.bundle.js +1 -0
  69. package/storybook/forms-input-input-component-stories.b68ea104.iframe.bundle.js +1 -0
  70. package/storybook/forms-slider-docs-mdx.68b9e21c.iframe.bundle.js +1 -0
  71. package/storybook/forms-switch-docs-mdx.832228cb.iframe.bundle.js +1 -0
  72. package/storybook/forms-validators-docs-mdx.e11fe615.iframe.bundle.js +1 -0
  73. package/storybook/home-guide-mdx.2f32ffc1.iframe.bundle.js +1 -0
  74. package/storybook/{home-overview-mdx.0e32f57f.iframe.bundle.js → home-overview-mdx.9b160561.iframe.bundle.js} +1 -1
  75. package/storybook/home-tips-mdx.24dc3e35.iframe.bundle.js +1 -0
  76. package/storybook/iframe.html +2 -2
  77. package/storybook/layout-main-docs-mdx.445bce2a.iframe.bundle.js +1 -0
  78. package/storybook/layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js +2 -0
  79. package/storybook/layout-nav-docs-mdx.92eac076.iframe.bundle.js +1 -0
  80. package/storybook/layout-overlay-docs-mdx.a680859b.iframe.bundle.js +1 -0
  81. package/storybook/layout-overlay-header-docs-mdx.6eb6e326.iframe.bundle.js +1 -0
  82. package/storybook/layout-spinner-docs-mdx.d4e5afec.iframe.bundle.js +1 -0
  83. package/storybook/layout-spinner-spinner-component-stories.6b27a0bf.iframe.bundle.js +1 -0
  84. package/storybook/layout-splitter-docs-mdx.6b0e4fd2.iframe.bundle.js +1 -0
  85. package/storybook/layout-tabs-docs-mdx.aad59db3.iframe.bundle.js +1 -0
  86. package/storybook/layout-top-scroll-bottom-docs-mdx.42c18a0d.iframe.bundle.js +1 -0
  87. package/storybook/molecules-image-editor-docs-mdx.dba18ee6.iframe.bundle.js +1 -0
  88. package/storybook/project.json +1 -1
  89. package/storybook/{runtime~main.786a8152.iframe.bundle.js → runtime~main.805054f3.iframe.bundle.js} +1 -1
  90. package/storybook/styling-colors-docs-mdx.3f513a8d.iframe.bundle.js +1 -0
  91. package/storybook/styling-css-variables-docs-mdx.5a090407.iframe.bundle.js +1 -0
  92. package/storybook/styling-forms-docs-mdx.649ae948.iframe.bundle.js +1 -0
  93. package/storybook/styling-icons-docs-mdx.e3ed5ebd.iframe.bundle.js +1 -0
  94. package/storybook/styling-layers-docs-mdx.d810a2c8.iframe.bundle.js +1 -0
  95. package/storybook/styling-tags-docs-mdx.ce4814c9.iframe.bundle.js +1 -0
  96. package/storybook/styling-ui-tags-docs-mdx.d94258ab.iframe.bundle.js +1 -0
  97. package/storybook/version.json +2 -2
  98. package/version.json +2 -2
  99. package/storybook/1183.da25800b.iframe.bundle.js +0 -1
  100. package/storybook/2033.c705a7ce.iframe.bundle.js +0 -1
  101. package/storybook/2089.32694489.iframe.bundle.js +0 -1
  102. package/storybook/2127.29f153d2.iframe.bundle.js +0 -2
  103. package/storybook/2228.77650ef1.iframe.bundle.js +0 -2
  104. package/storybook/2639.29baa8af.iframe.bundle.js +0 -1
  105. package/storybook/2971.edb202b4.iframe.bundle.js +0 -1
  106. package/storybook/3968.69b812e4.iframe.bundle.js +0 -1
  107. package/storybook/4476.f8e4115f.iframe.bundle.js +0 -1
  108. package/storybook/4755.e4656207.iframe.bundle.js +0 -23
  109. package/storybook/4935.8959522b.iframe.bundle.js +0 -1
  110. package/storybook/5568.c6172f92.iframe.bundle.js +0 -1
  111. package/storybook/6824.f5eb8bb7.iframe.bundle.js +0 -1
  112. package/storybook/8051.719eb790.iframe.bundle.js +0 -1
  113. package/storybook/871.428deceb.iframe.bundle.js +0 -1
  114. package/storybook/8819.220ca21d.iframe.bundle.js +0 -1
  115. package/storybook/9850.28367747.iframe.bundle.js +0 -1
  116. package/storybook/9946.36014b4e.iframe.bundle.js +0 -1
  117. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +0 -1
  118. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +0 -1
  119. package/storybook/_external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js +0 -1
  120. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +0 -1
  121. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +0 -1
  122. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +0 -1
  123. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +0 -1
  124. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +0 -1
  125. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +0 -1
  126. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +0 -1
  127. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +0 -1
  128. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +0 -1
  129. package/storybook/atoms-image-grid-docs-mdx.8161de39.iframe.bundle.js +0 -1
  130. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +0 -1
  131. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +0 -1
  132. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +0 -2
  133. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +0 -1
  134. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +0 -1
  135. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +0 -1
  136. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +0 -1
  137. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +0 -1
  138. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +0 -1
  139. package/storybook/atoms-thumb-docs-mdx.7286b617.iframe.bundle.js +0 -1
  140. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +0 -1
  141. package/storybook/atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js +0 -1
  142. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +0 -1
  143. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +0 -1
  144. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +0 -1
  145. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +0 -1
  146. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +0 -1
  147. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +0 -1
  148. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +0 -1
  149. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +0 -2
  150. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +0 -2
  151. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +0 -1
  152. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +0 -1
  153. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +0 -1
  154. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +0 -1
  155. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +0 -1
  156. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +0 -1
  157. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +0 -1
  158. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +0 -1
  159. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +0 -1
  160. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +0 -1
  161. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +0 -1
  162. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +0 -1
  163. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +0 -2
  164. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +0 -1
  165. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +0 -1
  166. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +0 -1
  167. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +0 -1
  168. package/storybook/layout-spinner-spinner-component-stories.69ae1389.iframe.bundle.js +0 -1
  169. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +0 -1
  170. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +0 -1
  171. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +0 -1
  172. package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +0 -1
  173. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +0 -1
  174. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +0 -1
  175. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +0 -1
  176. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +0 -1
  177. package/storybook/styling-layers-docs-mdx.a563260e.iframe.bundle.js +0 -1
  178. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +0 -1
  179. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +0 -1
  180. /package/storybook/{2127.29f153d2.iframe.bundle.js.LICENSE.txt → 2127.d7de271b.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook/{2228.77650ef1.iframe.bundle.js.LICENSE.txt → 2228.7013a637.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook/{4425.368129b3.iframe.bundle.js.LICENSE.txt → 4425.7f753a38.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook/{4755.e4656207.iframe.bundle.js.LICENSE.txt → 4755.0561bac5.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /package/storybook/{atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt → atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js.LICENSE.txt} +0 -0
  185. /package/storybook/{examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt → examples-transloco-docs-mdx.46447d84.iframe.bundle.js.LICENSE.txt} +0 -0
  186. /package/storybook/{forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt → forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js.LICENSE.txt} +0 -0
  187. /package/storybook/{layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt → layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -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)}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1977,3857],{"./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/.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/.storybook/demos/styling/forms/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"),_forms_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts"),_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_form_basics_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/form-basics.json");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:_forms_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-forms",children:"Styling Forms"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Shows the visual output of the standard form elements with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"})," css classes."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"form-basics",entry:_guide_form_basics_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:"form-elements-input-select-textarea",children:"Form Elements (Input, Select, Textarea)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["To apply the base styling, use the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class on the element."]}),"\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:'<input class="ui" type="text" />\n<select class="ui">...</select>\n<textarea class="ui"></textarea>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"flat-variant-ui-flat",children:["Flat variant (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-flat"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A second, standalone look — used ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"instead of"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"}),", not combined with it:"]}),"\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:"Class"}),(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:".ui"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Default look: visible border, filled background."})]}),(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-flat"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Flat look: invisible at rest (transparent border and background),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"no hover effect"}),". Focus and error states show\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"no border"})," — the corresponding color (focus/error)\nbecomes a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"8% surface"})," instead. Flat controls\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"never use shadows"}),"."]})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Scope: text-like inputs, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"select"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"textarea"})," and buttons.\nCheckbox and radio keep the default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," look."]}),"\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:'<input class="ui-flat" type="text" />\n<select class="ui-flat">...</select>\n<textarea class="ui-flat"></textarea>\n<button class="ui-flat">button</button>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Both variants are theme aware (light/dark) — they only use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-*"})," tokens."]}),"\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:"buttons",children:"Buttons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Buttons also use the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class for base styling. Additional classes are available for status coloring."]}),"\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:"Class"}),(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:".ui"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Default style (light/dark theme aware)"})]}),(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-none"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Removes all styling (transparent)"})]}),(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-success"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Success state (green)"})]}),(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-focus"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Focus/Primary state (blue)"})]}),(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-danger"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Danger/Error state (red)"})]}),(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-warn"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Warning state (yellow)"})]}),(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"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Used for buttons containing only an icon"})]})]})]}),"\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:'<button class="ui">Pets<span class="ui-icon">pets</span></button>\n<button class="ui-icon">pets</button>\n'})}),"\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 ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-*"})," tokens used by the form styling 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.p,{children:"The story linked below shows the current implementation of form elements in\nboth themes."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-forms",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-forms--forms",children:"Open Forms"})})]})}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/forms/forms.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Forms:()=>Forms,__namedExportsOrder:()=>__namedExportsOrder,default:()=>forms_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var forms_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/styling/forms/forms.component.css?ngResource"),forms_componentngResource_default=__webpack_require__.n(forms_componentngResource),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),copy_value_component=__webpack_require__("./libs/ui/src/lib/atoms/copy-value/copy-value.component.ts"),input_component=__webpack_require__("./libs/ui/src/lib/forms/input/input.component.ts");let UiExampleStylingFormsComponent=class UiExampleStylingFormsComponent{};UiExampleStylingFormsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-forms",template:'<section class="relative flex flex-col">\n <table class="ui" style="margin-top: 4rem">\n <thead>\n <tr>\n <th style="width: 12rem">Element</th>\n <th style="width: 12rem">Type</th>\n <th style="width: 24rem">Example <code>ui</code></th>\n <th style="width: 6rem">copy</th>\n <th style="width: 24rem">Example <code>ui-flat</code></th>\n <th style="width: 6rem">copy</th>\n <th >Note</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>Input</td>\n <td>text</td>\n <td><input class="ui" type="text" value="" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'text\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'text\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><input class="ui-flat" type="text" value="" /></td>\n <td title="copy html tag: <input class=\'ui-flat\' type=\'text\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui-flat\\\' type=\\\'text\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>text disabled</td>\n <td><input class="ui" type="text" disabled value="disabled" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'text\' disabled value=\'disabled\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'text\\\' disabled value=\\\'disabled\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><input class="ui-flat" type="text" disabled value="disabled" /></td>\n <td title="copy html tag: <input class=\'ui-flat\' type=\'text\' disabled value=\'disabled\' />"><ui-copy-value [value]="\'<input class=\\\'ui-flat\\\' type=\\\'text\\\' disabled value=\\\'disabled\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>text error</td>\n <td>\n <ui-input>\n <input ui-tag class="ui ng-invalid ng-touched" type="text" value="" />\n </ui-input>\n </td>\n <td title="copy html tag: <ui-input><input ui-tag class=\'ui\' type=\'text\' required [(ngModel)]=\'value\' /></ui-input>"><ui-copy-value [value]="\'<ui-input><input ui-tag class=\\\'ui\\\' type=\\\'text\\\' required [(ngModel)]=\\\'value\\\' /></ui-input>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>\n <ui-input>\n <input ui-tag class="ui-flat ng-invalid ng-touched" type="text" value="" />\n </ui-input>\n </td>\n <td title="copy html tag: <ui-input><input ui-tag class=\'ui-flat\' type=\'text\' required [(ngModel)]=\'value\' /></ui-input>"><ui-copy-value [value]="\'<ui-input><input ui-tag class=\\\'ui-flat\\\' type=\\\'text\\\' required [(ngModel)]=\\\'value\\\' /></ui-input>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><em>error state via ui-input validation (flat: 8% error surface, no border, no shadow)</em></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>file</td>\n <td><input class="ui" type="file" value="" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'file\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'file\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>—</td>\n <td></td>\n <td><em>Text cannot be changed using attributes</em></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>number</td>\n <td><input class="ui" type="number" value="" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'number\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'number\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><input class="ui-flat" type="number" value="" /></td>\n <td title="copy html tag: <input class=\'ui-flat\' type=\'number\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui-flat\\\' type=\\\'number\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>date</td>\n <td><input class="ui" type="date" value="2015-10-21" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'date\' value=\'2015-10-21\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'date\\\' value=\\\'2015-10-21\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><input class="ui-flat" type="date" value="2015-10-21" /></td>\n <td title="copy html tag: <input class=\'ui-flat\' type=\'date\' value=\'2015-10-21\' />"><ui-copy-value [value]="\'<input class=\\\'ui-flat\\\' type=\\\'date\\\' value=\\\'2015-10-21\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><em>value: 2015-10-21</em></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>time</td>\n <td><input class="ui" type="time" value="11:11" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'time\' value=\'11:11\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'time\\\' value=\\\'11:11\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><input class="ui-flat" type="time" value="11:11" /></td>\n <td title="copy html tag: <input class=\'ui-flat\' type=\'time\' value=\'11:11\' />"><ui-copy-value [value]="\'<input class=\\\'ui-flat\\\' type=\\\'time\\\' value=\\\'11:11\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><em>value: 11:11</em></td>\n </tr>\n\n <tr>\n <td>Input</td>\n <td>email</td>\n <td><input class="ui" type="email" value="" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'email\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'email\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><input class="ui-flat" type="email" value="" /></td>\n <td title="copy html tag: <input class=\'ui-flat\' type=\'email\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui-flat\\\' type=\\\'email\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>checkbox</td>\n <td><input class="ui" type="checkbox" value="" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'checkbox\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'checkbox\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>—</td>\n <td></td>\n <td></td>\n </tr>\n\n <tr>\n <td>Input</td>\n <td>checkbox disabled</td>\n <td><input disabled class="ui" type="checkbox" value="" /></td>\n <td title="copy html tag: <input disabled class=\'ui\' type=\'checkbox\' value=\'\' />"><ui-copy-value [value]="\'<input disabled class=\\\'ui\\\' type=\\\'checkbox\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>—</td>\n <td></td>\n <td></td>\n </tr>\n\n <tr>\n <td>Input</td>\n <td>radio</td>\n <td>\n <span style="display: flex; gap:1rem;align-content: center">\n <input class="ui" type="radio" name="done" value="" />\n <input class="ui" type="radio" name="done" value="" />\n </span>\n </td>\n <td title="copy html tag: <input class=\'ui\' type=\'radio\' name=\'done\' value=\'\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'radio\\\' name=\\\'done\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>—</td>\n <td></td>\n <td></td>\n </tr>\n <tr>\n <td>Input</td>\n <td>radio disabled</td>\n <td>\n <span style="display: flex; gap:1rem;align-content: center">\n <input disabled class="ui" type="radio" name="done" value="" />\n <input disabled class="ui" type="radio" name="done" value="" />\n </span>\n </td>\n <td title="copy html tag: <input disabled class=\'ui\' type=\'radio\' name=\'done\' value=\'\' />"><ui-copy-value [value]="\'<input disabled class=\\\'ui\\\' type=\\\'radio\\\' name=\\\'done\\\' value=\\\'\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>—</td>\n <td></td>\n <td></td>\n </tr>\n <tr>\n <td>Select</td>\n <td>select</td>\n <td>\n <select class="ui">\n <option value="01">Age of Empires</option>\n <option value="02">Frogger</option>\n <option value="03">Doom</option>\n <option value="04" selected>Wipeout</option>\n </select>\n </td>\n <td title="copy html tag: <select class=\'ui\'>...</select>"><ui-copy-value [value]="\'<select class=\\\'ui\\\'><option value=\\\'01\\\'>Age of Empires</option><option value=\\\'02\\\'>Frogger</option><option value=\\\'03\\\'>Doom</option><option value=\\\'04\\\' selected>Wipeout</option></select>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>\n <select class="ui-flat">\n <option value="01">Age of Empires</option>\n <option value="02">Frogger</option>\n <option value="03">Doom</option>\n <option value="04" selected>Wipeout</option>\n </select>\n </td>\n <td title="copy html tag: <select class=\'ui-flat\'>...</select>"><ui-copy-value [value]="\'<select class=\\\'ui-flat\\\'><option value=\\\'01\\\'>Age of Empires</option><option value=\\\'02\\\'>Frogger</option><option value=\\\'03\\\'>Doom</option><option value=\\\'04\\\' selected>Wipeout</option></select>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n <tr>\n <td>Select</td>\n <td>select disabled</td>\n <td>\n <select disabled class="ui">\n <option value="01">Age of Empires</option>\n <option value="02">Frogger</option>\n <option value="03">Doom</option>\n <option value="04" selected>Wipeout</option>\n </select>\n </td>\n <td title="copy html tag: <select disabled class=\'ui\'>...</select>"><ui-copy-value [value]="\'<select disabled class=\\\'ui\\\'><option value=\\\'01\\\'>Age of Empires</option><option value=\\\'02\\\'>Frogger</option><option value=\\\'03\\\'>Doom</option><option value=\\\'04\\\' selected>Wipeout</option></select>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>\n <select disabled class="ui-flat">\n <option value="01">Age of Empires</option>\n <option value="02">Frogger</option>\n <option value="03">Doom</option>\n <option value="04" selected>Wipeout</option>\n </select>\n </td>\n <td title="copy html tag: <select disabled class=\'ui-flat\'>...</select>"><ui-copy-value [value]="\'<select disabled class=\\\'ui-flat\\\'><option value=\\\'01\\\'>Age of Empires</option><option value=\\\'02\\\'>Frogger</option><option value=\\\'03\\\'>Doom</option><option value=\\\'04\\\' selected>Wipeout</option></select>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n\n <tr>\n <td>Input</td>\n <td>color</td>\n <td><input class="ui" type="color" /></td>\n <td title="copy html tag: <input class=\'ui\' type=\'color\' />"><ui-copy-value [value]="\'<input class=\\\'ui\\\' type=\\\'color\\\' />\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td>—</td>\n <td></td>\n <td></td>\n </tr>\n\n <tr>\n <td>textarea</td>\n <td>textarea</td>\n <td><textarea class="ui"></textarea></td>\n <td title="copy html tag: <textarea class=\'ui\'></textarea>"><ui-copy-value [value]="\'<textarea class=\\\'ui\\\'></textarea>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><textarea class="ui-flat"></textarea></td>\n <td title="copy html tag: <textarea class=\'ui-flat\'></textarea>"><ui-copy-value [value]="\'<textarea class=\\\'ui-flat\\\'></textarea>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n\n <tr>\n <td>Textarea</td>\n <td>textarea disabled</td>\n <td><textarea disabled class="ui"></textarea></td>\n <td title="copy html tag: <textarea disabled class=\'ui\'></textarea>"><ui-copy-value [value]="\'<textarea disabled class=\\\'ui\\\'></textarea>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td><textarea disabled class="ui-flat"></textarea></td>\n <td title="copy html tag: <textarea disabled class=\'ui-flat\'></textarea>"><ui-copy-value [value]="\'<textarea disabled class=\\\'ui-flat\\\'></textarea>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n <td></td>\n </tr>\n\n </tbody>\n </table>\n</section>\n\n<section class="relative flex flex-col">\n <table class="ui" style="margin-top: 4rem">\n <thead>\n <tr>\n <th style="width: 20rem">Element</th>\n <th style="width: 20rem">Type</th>\n <th style="width: 40rem">Example</th>\n <th >Note</th>\n <th style="width: 20rem">copy</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>button - default</td>\n <td><code>.ui</code></td>\n <td>\n <button class="ui">button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - ui-flat</td>\n <td><code>.ui-flat</code></td>\n <td>\n <button class="ui-flat">button</button>\n </td>\n <td><em>flat: never a shadow, hover reveals the surface</em></td>\n <td title="copy html tag: <button class=\'ui-flat\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui-flat\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - ui-none</td>\n <td><code>.ui-none</code></td>\n <td>\n <button class="ui-none">button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui-none\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui-none\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - ui-success</td>\n <td><code>.ui-success</code></td>\n <td>\n <button class="ui-success">button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui-success\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui-success\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - ui-focus</td>\n <td><code>.ui-focus</code></td>\n <td>\n <button class="ui-focus">button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui-focus\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui-focus\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - ui-danger</td>\n <td><code>.ui-danger</code></td>\n <td>\n <button class="ui-danger">button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui-danger\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui-danger\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - ui-warn</td>\n <td><code>.ui-warn</code></td>\n <td>\n <button class="ui-warn">button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui-warn\'>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui-warn\\\'>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - disabled</td>\n <td><code>.ui</code> + <code>disabled</code></td>\n <td>\n <button class="ui" disabled>button</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui\' disabled>button</button>"><ui-copy-value [value]="\'<button class=\\\'ui\\\' disabled>button</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - icon text example</td>\n <td><code>.ui</code> + <code>.ui-icon</code></td>\n <td>\n <button class="ui">Pets<span class="ui-icon">pets</span></button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui\'>Pets<span class=\'ui-icon\'>pets</span></button>"><ui-copy-value [value]="\'<button class=\\\'ui\\\'>Pets<span class=\\\'ui-icon\\\'>pets</span></button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n <tr>\n <td>button - icon example</td>\n <td><code>.ui-icon</code></td>\n <td>\n <button class="ui-icon">pets</button>\n </td>\n <td></td>\n <td title="copy html tag: <button class=\'ui-icon\'>pets</button>"><ui-copy-value [value]="\'<button class=\\\'ui-icon\\\'>pets</button>\'" [copiedIcon]="\'done\'"><span class="ui-icon cursor-pointer">content_copy</span></ui-copy-value></td>\n </tr>\n </tbody>\n </table>\n</section>\n',standalone:!0,imports:[copy_value_component.y,input_component.K],styles:[forms_componentngResource_default()]})],UiExampleStylingFormsComponent);const forms_component_stories={title:"Styling/Forms",component:UiExampleStylingFormsComponent,decorators:[(0,dist.Iz)({imports:[header_component.b]})],argTypes:{},args:{},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}}},Forms={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true" ></ui-intern-header>\n <ui-examples-forms></ui-examples-forms>\n '})},__namedExportsOrder=["Forms"];Forms.parameters={...Forms.parameters,docs:{...Forms.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: \'none\'\n },\n viewMode: \'canvas\'\n },\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 <ui-examples-forms></ui-examples-forms>\n `\n };\n }\n}',...Forms.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/styling/forms/forms.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,"div {\n display: flex;\n align-items: center;\n\n label {\n min-width: 24rem;\n }\n\n :nth-child(2) {\n /*min-width: 24rem;*/\n }\n\n > * {\n margin-right: var(--ui-spacer);\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([[8092],{"./libs/ui/.storybook/demos/styling/icons/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"),_icons_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts");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:_icons_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-icons",children:"Styling Icons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This documentation describes the use of icons within the UI library. We use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://fonts.google.com/icons",rel:"nofollow",children:"Google Material Icons"}),"."]}),"\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:["To display an icon, apply the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," class to a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<span>"})," or similar inline element. The icon name is passed as text content."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This stays a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"class"}),", not a component, on purpose. A class combines with\nwhatever else is needed — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="ui-icon cursor-pointer"'}),", a colour utility, a\ncomponent-local class of your own — and it works in markup that Angular never\nrenders. A component would have to grow an input for each of those, and would\nsay no to the one it does not have yet."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The price is that two things are yours to get right, because no component can\ndo them for you:"}),"\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 icon name is text."})," A screen reader reads ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"lock_open"})," out loud unless\nyou tell it not to. A purely decorative icon takes ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'aria-hidden="true"'}),"; an\nicon that carries meaning on its own takes a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"})," or an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-label"})," saying\nwhat it means — not what it is called."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'\x3c!-- decorative: the label next to it already says everything --\x3e\n<span class="ui-icon" aria-hidden="true">home</span>\n\n\x3c!-- carries the meaning by itself --\x3e\n<span class="ui-icon" role="img" aria-label="Unlock">lock_open</span>\n'})}),"\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:"A name that does not exist renders as the word."})," Material Icons draw\nunknown ligatures as plain text, so a typo shows up as a 96px ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"hme"})," rather\nthan as an error."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Here you can see the icons in different sizes in both themes:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_icons_component_stories__WEBPACK_IMPORTED_MODULE_4__.Icons}),"\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:"all-available-icons",children:"All Available Icons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Here is a preview of the most common icons available in our Material Design Font."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-icons",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-icons--all-icons",children:"Open Story Icons"})}),"\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:'<span class="ui-icon">home</span>\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:"size-modifiers",children:"Size Modifiers"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Icons can be resized using additional classes."}),"\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:"Class"}),(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:".ui-icon"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Default size (1em)"})]}),(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.x2"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Double size (2rem / 20px)"})]}),(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.x3"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Triple size (3rem / 30px)"})]}),(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.x4"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Quadruple size (4rem / 40px)"})]})]})]}),"\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:'<span class="ui-icon">home</span>\n<span class="ui-icon x2">home</span>\n<span class="ui-icon x3">home</span>\n<span class="ui-icon x4">home</span>\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:"bringing-your-own-icons",children:"Bringing your own icons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two ways, and the second one costs nothing."}),"\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:"Keep the system, change the drawing."})," Declare your own ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@font-face"})," and\npoint the variable at it:"]}),"\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-css",children:"@font-face { font-family: 'My Icons'; src: url('…') format('woff2'); }\n:root {\n --ui-icon-font: 'My Icons';\n --ui-icon-font-outline: 'My Icons Outlined';\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Both slots are variables, so a swap is not half done — before this, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".outline"}),"\nwould have pulled Material back in wherever it was used."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The catch is the ligature names. The icon name lives as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"text content"})," in the\nelement, and the font turns it into a glyph. A replacement that does not know\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"home"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"lock_open"})," and the rest renders the word instead. Material Symbols\nqualifies; Font Awesome and Phosphor do not, because they address glyphs by\ncodepoint rather than by ligature. So this swaps the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"drawing"})," of the same\nicons, not the icon set."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Two more things the replacement has to bring: ligature support switched on\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"font-feature-settings: 'liga'"}),", which ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," sets), and metrics that fit\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-icon-size"})," — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," pins width and height and carries\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow: hidden"}),", so a differently proportioned font gets clipped."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Or do not use ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-icon"})," at all."]})," Bring your own markup — an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<svg>"}),", another\nicon set's class — and the library will not be in your way. And it costs\nnothing: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@font-face"})," only downloads a font when a rule actually uses it.\nMeasured on a page that uses only the outlined variant:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"Material Icons [unloaded]\nMaterial Icons Outlined [loaded]\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The bundled fonts sit in the npm package on disk; in the browser an unused one\nis never fetched."})]})}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
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[7600],{"./libs/ui/.storybook/demos/styling/layers/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");function _createMdxContent(props){const _components={a:"a",code:"code",em:"em",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,{title:"Styling/Layers"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"layers--why-your-class-wins",children:"Layers — why your class wins"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Everything the library ships as CSS sits in one cascade layer, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),", with two\nsublayers:"]}),"\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:"Layer"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What is in it"})]})}),(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.base"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The global stylesheets — tokens, fonts, tags, forms, icons, the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui"})," classes. Everything ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"styles/index.css"})," brings."]})]}),(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.components"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Every component's own stylesheet, shipped inside the component."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The point of a layer is its place in the order, and the order is this:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"theme < base < cdk-resets < ui < components < utilities < (your unlayered CSS)\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Read from the right: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"whatever you write without a layer beats everything\nthe library ships"}),", however specific the library's rule is. A Tailwind\nutility on a ui tag beats the component's default. Inside the library, a\ncomponent beats the globals. Nothing in this order depends on specificity\nacross the boundary — only inside a layer does specificity decide."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["So a default is a default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-barcode"})," brings ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"width: 14rem"}),", and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="w-64"'})," on it renders 160px — measured in the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/atoms-barcode--sizes",children:"Barcode sizes"})," story, which used to need\na ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!"})," on every width."]}),"\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-asks-of-a-consumer",children:"What it asks of a consumer"}),"\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:"With Tailwind:"})," declare the order once, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"before"})," the Tailwind import, in\nthe stylesheet that pulls Tailwind in:"]}),"\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-css",children:"@layer theme, base, cdk-resets, ui, components, utilities;\n\n@import 'tailwindcss';\n@import '@mojawork/ui/styles/theme.css';\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without that first line Tailwind declares its four layers first and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),"\nlands after ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"utilities"})," — which means above it, and the utilities lose\nagain. The line is the whole migration for a Tailwind app."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The theme import beneath it is the second half of the same entry file: it\nmaps the utilities onto the library's tokens and carries no layer statement\nof its own, because an import cannot declare something that has to stand\nbefore it."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Without Tailwind:"})," nothing. Your stylesheets are unlayered and already\nwin; the library's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"preflight.css"})," declares the order for its own sake."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["Why ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-resets"})," is in that line."]})," It is the Angular CDK's own layer: it\nstrips background, border and padding off a drag preview so a consumer can\ngive it a look of its own. A layer nobody names is appended ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"behind"})," every\nnamed one — so an unnamed ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-resets"})," beat the entire library, and every\ndrag preview lost its surface. Naming it puts it where a reset belongs:\nbelow."]}),"\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-means-for-a-rule-you-write",children:"What it means for a rule you write"}),"\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:["A utility on a ui tag now does what it says. Remove any ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"!"})," you added to\nget through; the barcode story did."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["Your own CSS that previously lost to a component rule on specificity now\nwins. That is what you wanted in almost every case — but a low-specificity\nelement rule in your app (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"button { … }"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h1 { … }"}),") that a component used\nto override by being more specific now reaches inside the component. If\nsomething changed shape after the update, that is where to look."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["Inside a component stylesheet, nothing changed: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui.components"})," is one\nlayer, and specificity decides within it as before."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["A component-local class must not share a name with a utility. The overlay's\nsize classes were called ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ms-1"}),"…",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ms-5"})," — also Tailwind's\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"margin-inline-start"})," scale — and once utilities stood above the library,\nthe utility's margin beat the component's centering: every centered overlay\nsat hard left. They carry the underscore prefix now (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"._ms-1"}),"), which the\nhouse rule for component-local classes demanded all along."]}),"\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([[1165,1927],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/demos/styling/tags/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"),_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/tags/tags.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:_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-tags",children:"Styling Tags"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This section demonstrates the base styling of standard HTML tags within the UI library. Most tags receive default styling, while some require a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class for enhanced presentation."]}),"\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:"The story linked below shows the visual output of these tags with the\nlibrary's styles applied in both themes."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-tags",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-tags--tags",children:"Open Tags"})}),"\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:"headlines--text",children:"Headlines & Text"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Headlines (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h1"})," - ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"h6"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"strong"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"em"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"small"}),", and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"p"})," are automatically styled when used within the application's CSS scope."]}),"\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:"<h1>Main Headline</h1>\n<h2>Sub Headline</h2>\n<p>Standard paragraph text.</p>\n<strong>Bold text</strong>\n<em>Emphasized text</em>\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:"lists",children:"Lists"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Ordered (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ol"}),") and unordered (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ul"}),") lists are styled with standard indentation and spacing."]}),"\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:"<ul>\n <li>First item</li>\n <li>Second item</li>\n</ul>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"special-elements-ui-class",children:["Special Elements ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:["(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class)"]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Some complex elements like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"table"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fieldset"})," require the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui"})," class to enable the library's specific design."]}),"\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 Tables:"})}),"\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:'<table class="ui">\n <tr>\n <th>Header</th>\n </tr>\n <tr>\n <td>Data</td>\n </tr>\n</table>\n'})}),"\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 Fieldsets:"})}),"\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:'<fieldset class="ui">\n <legend>Legend Title</legend>\n Content inside the fieldset.\n</fieldset>\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/tags/tags.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Tags:()=>Tags,__namedExportsOrder:()=>__namedExportsOrder,default:()=>tags_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var _debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiExampleStylingTagsComponent=class UiExampleStylingTagsComponent{};UiExampleStylingTagsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-tags",template:'<section class="relative flex flex-col">\n <h1>H1 - Donkey Kong</h1>\n <h2>H2 - Turrican</h2>\n <h3>H3 - Asteroid</h3>\n <h4>H4 - Snake</h4>\n <h5>H5 - Tetris</h5>\n <h6>H6 - Frogger</h6>\n <strong> Strong - Lemmings </strong>\n <hr />\n</section>\n\n<section class="relative flex flex-col">\n <strong>Group content and semantic tags for text</strong>\n <hr class="ui-dotted" />\n <p>paragraph: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>\n <p>paragraph: a b c d e f g h i j k l m n o p q r s t u v w x y z</p>\n <p>paragraph: 1 2 3 4 5 6 7 8 9 0</p>\n <address>address</address>\n <blockquote>blockquote</blockquote>\n <em> em </em>\n <small> small </small>\n <cite> cite </cite>\n <var>var = 123456789 </var>\n <a>a - link</a>\n <hr class="ui-dotted" />\n <ul>\n <li>\n ul - Disordered list\n <ul>\n <li>li - Donkey Kong</li>\n <li>li - Turrican</li>\n <li>li - Asteroid</li>\n </ul>\n </li>\n </ul>\n <hr class="ui-dotted" />\n <ol>\n <li>\n ol - Ordered list\n <ol>\n <li>li - Donkey Kong</li>\n <li>li - Turrican</li>\n <li>li - Asteroid</li>\n </ol>\n </li>\n </ol>\n <hr />\n</section>\n\n<section class="relative flex flex-col">\n <strong>Tables (class="ui")</strong>\n <hr class="ui-dotted" />\n <table class="ui">\n <thead>\n <tr>\n <th style="width: 33.33%">cell 01</th>\n <th style="width: 33.33%">cell 03</th>\n <th style="width: 33.33%">cell 03</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>cell 04</td>\n <td>cell 05</td>\n <td>cell 06</td>\n </tr>\n <tr>\n <td>cell 07</td>\n <td>cell 08</td>\n <td>cell 09</td>\n </tr>\n </tbody>\n <tfoot></tfoot>\n </table>\n <hr>\n</section>\n\n<section class="relative flex flex-col">\n <strong>Fieldset (class="ui")</strong>\n <hr class="ui-dotted" />\n <fieldset class="ui">\n <legend>Description</legend>\n Arcade game has been a name for video games since the 1970s <br />\n Popular arcade classics are e.g. Space Invaders, Pac-Man, Donkey Kong and\n many more\n </fieldset>\n <hr>\n</section>\n\n<section class="relative flex flex-col">\n <strong>figure</strong>\n <hr class="ui-dotted" />\n <figure style="width: 28rem">\n <figcaption>figcaption</figcaption>\n <img src="assets/ui/images/unknown.gif" />\n </figure>\n <hr />\n</section>\n\n<section class="relative flex flex-col">\n <strong>code</strong>\n <hr class="ui-dotted" />\n <code> code </code>\n <hr />\n</section>\n',standalone:!0})],UiExampleStylingTagsComponent);const tags_component_stories={title:"Styling/Tags",component:UiExampleStylingTagsComponent,decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleStylingTagsComponent]})],argTypes:{},args:{},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}}},Tags={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-tags></ui-examples-tags>\n '})},__namedExportsOrder=["Tags"];Tags.parameters={...Tags.parameters,docs:{...Tags.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-tags></ui-examples-tags>\n `\n };\n }\n}",...Tags.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()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3338,5233],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/demos/styling/ui-tags/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"),_ui_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.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:_ui_tags_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"styling-ui-tags",children:"Styling Ui-Tags"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This documentation shows the use of special CSS classes for HTML tags within the UI library."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"centered-images-ui-center-image",children:["Centered Images (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-center-image"}),")"]}),"\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:".ui-center-image"})," class on a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<figure>"})," element centers the contained image and provides space for a caption (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<figcaption>"}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-centered-images",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-ui-tags--ui-tags-center-image",children:"Open Centered Images"})}),"\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:'<figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" alt="Example image" />\n</figure>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"flex-lists-with-spacers-ui-list-flex-spacer",children:["Flex Lists with Spacers (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:".ui-list-flex-spacer"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This class is applied to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ol>"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ul>"})," to style list elements with a flex structure and appropriate spacing. It is ideal for news lists or similar listings."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-flex-lists-with-spacers",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-ui-tags--ui-tags-list-flex-spacer",children:"Open Flex Lists with Spacers"})}),"\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:'<ol class="ui-list-flex-spacer">\n <li>\n <a href="#" target="_blank">\n <strong>Headline</strong>\n <small>[Date]</small>\n </a>\n <p>Here is a short description of the content.</p>\n </li>\n</ol>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"ordered-list-types-ol-type",children:["Ordered List Types (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'<ol type="…">'}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Ordered lists render with decimal markers by default. The standard HTML ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"type"})," attribute is honoured for alternative numbering: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"I"})," (upper roman) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"A"})," (upper alpha). Lowercase variants are not supported because CSS matches the attribute value case-insensitively in HTML."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-ordered-list-types",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/styling-ui-tags--ui-tags-ordered-list-types",children:"Open Ordered List Types"})}),"\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:'<ol type="I">\n <li>First section</li>\n <li>Second section</li>\n</ol>\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/ui-tags/ui-tags.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{UiTagsCenterImage:()=>UiTagsCenterImage,UiTagsListFlexSpacer:()=>UiTagsListFlexSpacer,UiTagsOrderedListTypes:()=>UiTagsOrderedListTypes,__namedExportsOrder:()=>__namedExportsOrder,default:()=>ui_tags_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var _debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiExampleStylingUiCenterImageComponent=class UiExampleStylingUiCenterImageComponent{};UiExampleStylingUiCenterImageComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-ui-tags-center-image",template:'<section class="relative flex flex-col">\n <h1>figure ui-center-image</h1>\n <p>add to figure tag: class="ui-center-image w-[26rem] h-[26rem]"</p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>600px * 600px</figcaption>\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="ui-center-image w-[26rem] h-[26rem]">\n <figcaption>600px * 800px</figcaption>\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n <hr class="ui" />\n</section>\n\n<section class="relative flex flex-col">\n <h1>figure ui-center-image</h1>\n <p>\n add to figure tag: class="ui-center-image rounded-full w-[8rem] h-[8rem]"\n </p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="ui-center-image rounded-full w-[8rem] h-[8rem]">\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="ui-center-image rounded-full w-[8rem] h-[8rem]">\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="ui-center-image rounded-full w-[8rem] h-[8rem]">\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n <hr class="ui" />\n</section>\n\n<section class="relative flex flex-col">\n <h1>figure ui</h1>\n <p>add to figure tag: class="ui w-1/4""</p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="ui w-1/4">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="ui w-1/4">\n <figcaption>600px * 600px</figcaption>\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="ui w-1/4">\n <figcaption>600px * 800px</figcaption>\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n <hr class="ui" />\n</section>\n\n<section class="relative flex flex-col">\n <h1>figure</h1>\n <p>add to figure tag: [default] class="w-1/4""</p>\n <hr class="ui-dotted" />\n <div class="flex gap-12 grid-rows-3">\n <figure class="w-1/4">\n <figcaption>800px * 600px</figcaption>\n <img src="assets/ui/images/800x600.png" />\n </figure>\n <figure class="w-1/4">\n <figcaption>600px * 600px</figcaption>\n <img src="assets/ui/images/600x600.png" />\n </figure>\n <figure class="w-1/4">\n <figcaption>600px * 800px</figcaption>\n <img src="assets/ui/images/600x800.png" />\n </figure>\n </div>\n</section>\n',standalone:!0})],UiExampleStylingUiCenterImageComponent);let UiExampleStylingUiListFlexSpacerComponent=class UiExampleStylingUiListFlexSpacerComponent{};UiExampleStylingUiListFlexSpacerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-ui-tags-list-flex-spacer",template:'<section class="relative flex flex-col">\n <h1>ui-list-flex-spacer</h1>\n <p>add to ol or ul tag: class="ui-list-flex-spacer"</p>\n\n <hr class="ui-dotted" />\n\n <ol class="ui-list-flex-spacer">\n <li value="6">\n <a href="https://moja.work/change-me?e=true" target="_news">\n <strong>mojawork: Change Me</strong>\n <small>[Release - 22.12.23]</small>\n </a>\n <p>A virtual greeting card configurator that generates an individual link that can be copied and forwarded.\n No data is saved in the process.</p>\n </li>\n <li value="5">\n <a href="https://moja.work/storybook" target="_news">\n <strong>mojawork: Storybook</strong>\n <small>[Release - 15.12.23]</small>\n </a>\n </li>\n <li value="4">\n <a\n href="https://www.behance.net/gallery/185861795/Print-and-Paint"\n target="_news"\n >\n <strong>Behance: Print and Paint</strong>\n <small>[Release.02.10.23]</small>\n </a>\n </li>\n <li value="2">\n <a href="https://www.behance.net/gallery/176419419/Keeper" target="_news">\n <strong>Behance: Keeper</strong>\n <small>[Release - 28.07.23]</small>\n </a>\n </li>\n </ol>\n\n</section>\n',standalone:!0})],UiExampleStylingUiListFlexSpacerComponent);let UiExampleStylingUiOrderedListTypesComponent=class UiExampleStylingUiOrderedListTypesComponent{};UiExampleStylingUiOrderedListTypesComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-ui-tags-ordered-list-types",template:'<section class="relative flex flex-col">\n <h1>ordered list types</h1>\n <p>add to ol tag: type="I" (upper roman) or type="A" (upper alpha)</p>\n\n <hr class="ui-dotted" />\n\n <ol type="I">\n <li>First section</li>\n <li>Second section</li>\n <li>Third section</li>\n </ol>\n\n <hr class="ui-dotted" />\n\n <ol type="A">\n <li>First variant</li>\n <li>Second variant</li>\n </ol>\n</section>\n',standalone:!0})],UiExampleStylingUiOrderedListTypesComponent);const ui_tags_component_stories={title:"Styling/Ui-Tags",decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleStylingUiListFlexSpacerComponent,UiExampleStylingUiCenterImageComponent,UiExampleStylingUiOrderedListTypesComponent]})],argTypes:{},args:{},parameters:{docs:{canvas:{sourceState:"none"},source:{code:null}}}},UiTagsListFlexSpacer={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-ui-tags-list-flex-spacer></ui-examples-ui-tags-list-flex-spacer>\n '})},UiTagsOrderedListTypes={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-ui-tags-ordered-list-types></ui-examples-ui-tags-ordered-list-types>\n '})},UiTagsCenterImage={parameters:{docs:{source:{code:null}},controls:{disable:!1},canvas:{sourceState:"none"},viewMode:"canvas"},render:args=>({props:{...args},template:'\n <ui-intern-header [display]="true" [onTop]="true" [theme]="\'theme-light\'" ></ui-intern-header>\n <ui-examples-ui-tags-center-image></ui-examples-ui-tags-center-image>\n\n '})},__namedExportsOrder=["UiTagsListFlexSpacer","UiTagsOrderedListTypes","UiTagsCenterImage"];UiTagsListFlexSpacer.parameters={...UiTagsListFlexSpacer.parameters,docs:{...UiTagsListFlexSpacer.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-ui-tags-list-flex-spacer></ui-examples-ui-tags-list-flex-spacer>\n `\n };\n }\n}",...UiTagsListFlexSpacer.parameters?.docs?.source}}},UiTagsOrderedListTypes.parameters={...UiTagsOrderedListTypes.parameters,docs:{...UiTagsOrderedListTypes.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-ui-tags-ordered-list-types></ui-examples-ui-tags-ordered-list-types>\n `\n };\n }\n}",...UiTagsOrderedListTypes.parameters?.docs?.source}}},UiTagsCenterImage.parameters={...UiTagsCenterImage.parameters,docs:{...UiTagsCenterImage.parameters?.docs,source:{originalSource:"{\n parameters: {\n docs: {\n source: {\n code: null\n }\n },\n controls: {\n disable: false\n },\n canvas: {\n sourceState: 'none'\n },\n viewMode: 'canvas'\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header [display]=\"true\" [onTop]=\"true\" [theme]=\"'theme-light'\" ></ui-intern-header>\n <ui-examples-ui-tags-center-image></ui-examples-ui-tags-center-image>\n\n `\n };\n }\n}",...UiTagsCenterImage.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()}}]);