@mojawork/ui-docs 2.5.0 → 2.6.1
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.
- package/README.md +2 -2
- package/catalog/atoms/background.md +2 -0
- package/catalog/atoms/barcode.md +6 -0
- package/catalog/atoms/buzzer.md +4 -0
- package/catalog/atoms/card.md +2 -0
- package/catalog/atoms/chart.md +6 -0
- package/catalog/atoms/clock.md +14 -0
- package/catalog/atoms/copy-value.md +6 -0
- package/catalog/atoms/lang-selector.md +6 -0
- package/catalog/atoms/mosaic.md +4 -0
- package/catalog/atoms/placeholder.md +6 -0
- package/catalog/atoms/qr-code.md +12 -0
- package/catalog/atoms/rating.md +4 -0
- package/catalog/atoms/reader-doc.md +18 -0
- package/catalog/atoms/text-animate.md +2 -0
- package/catalog/atoms/thumb.md +4 -0
- package/catalog/atoms/timer.md +4 -0
- package/catalog/atoms/typewriter.md +2 -0
- package/catalog/forms/autocomplete.md +6 -0
- package/catalog/forms/checkbox.md +2 -0
- package/catalog/forms/input.md +2 -0
- package/catalog/forms/slider.md +2 -0
- package/catalog/forms/switch.md +2 -0
- package/catalog/guide.json +11 -11
- package/catalog/layout/header.md +4 -0
- package/catalog/layout/media-screen.md +2 -0
- package/catalog/layout/tabs.md +2 -0
- package/catalog/manifest.json +382 -75
- package/catalog/mcp.json +2 -2
- package/catalog/molecules/image-editor.md +34 -19
- package/catalog/usage.md +28 -8
- package/catalog/version.json +2 -2
- package/package.json +1 -1
- package/storybook/4555.251b232c.iframe.bundle.js +1 -0
- package/storybook/assets/ui/i18n/ui/de-DE.json +0 -1
- package/storybook/assets/ui/i18n/ui/en-EN.json +0 -1
- package/storybook/{home-overview-mdx.af727f5b.iframe.bundle.js → home-overview-mdx.0d4ede52.iframe.bundle.js} +1 -1
- package/storybook/home-usage-mdx.fc05feec.iframe.bundle.js +1 -0
- package/storybook/iframe.html +3 -3
- package/storybook/index.json +1 -1
- package/storybook/{main.2d116a57.iframe.bundle.js → main.1f12809e.iframe.bundle.js} +1 -1
- package/storybook/{main.a402659c6a0734088d14.css → main.e33bfc7e33aad318b1d2.css} +4 -0
- package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +1 -0
- package/storybook/molecules-image-editor-image-editor-component-stories.fbfeff1b.iframe.bundle.js +1 -0
- package/storybook/project.json +1 -1
- package/storybook/{runtime~main.be00d4a7.iframe.bundle.js → runtime~main.52ba2f02.iframe.bundle.js} +1 -1
- package/storybook/{styling-layers-docs-mdx.5039dc45.iframe.bundle.js → styling-layers-docs-mdx.a563260e.iframe.bundle.js} +1 -1
- package/storybook/version.json +2 -2
- package/version.json +2 -2
- package/storybook/4555.066c242d.iframe.bundle.js +0 -1
- package/storybook/home-usage-mdx.b908934f.iframe.bundle.js +0 -1
- package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +0 -1
- package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[8792],{"./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$"(module,__unused_webpack_exports,__webpack_require__){var map={"./examples/image-grid-slider/docs.mdx":["./libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx",[2096,4255,4555,9045,7316,943]],"./examples/layout/docs.mdx":["./libs/ui/.storybook/demos/examples/layout/docs.mdx",[2096,4255,4425,4555,2249,1255,1481]],"./examples/table-edit-focus/docs.mdx":["./libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx",[2096,4255,6169,660,973,4555,7749,5493]],"./examples/transloco/docs.mdx":["./libs/ui/.storybook/demos/examples/transloco/docs.mdx",[2096,4255,4555,6768]],"./styling/colors/docs.mdx":["./libs/ui/.storybook/demos/styling/colors/docs.mdx",[2096,4255,1838]],"./styling/css-variables/docs.mdx":["./libs/ui/.storybook/demos/styling/css-variables/docs.mdx",[4255,7893]],"./styling/forms/docs.mdx":["./libs/ui/.storybook/demos/styling/forms/docs.mdx",[2096,4255,6169,4555,1516,3857]],"./styling/icons/docs.mdx":["./libs/ui/.storybook/demos/styling/icons/docs.mdx",[2096,4255,6169,1516,7653,8092]],"./styling/layers/docs.mdx":["./libs/ui/.storybook/demos/styling/layers/docs.mdx",[4255,7600]],"./styling/tags/docs.mdx":["./libs/ui/.storybook/demos/styling/tags/docs.mdx",[2096,4255,1927]],"./styling/ui-tags/docs.mdx":["./libs/ui/.storybook/demos/styling/ui-tags/docs.mdx",[2096,4255,3338]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"(module,__unused_webpack_exports,__webpack_require__){var map={"./examples/image-grid-slider/image-grid-slider.stories":["./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts",[2096,9045,7316,8938]],"./examples/image-grid-slider/image-grid-slider.stories.ts":["./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts",[2096,9045,7316,8938]],"./examples/layout/layout.stories":["./libs/ui/.storybook/demos/examples/layout/layout.stories.ts",[2096,4425,2249,1255,5684]],"./examples/layout/layout.stories.ts":["./libs/ui/.storybook/demos/examples/layout/layout.stories.ts",[2096,4425,2249,1255,5684]],"./examples/table-edit-focus/table-edit-focus.stories":["./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts",[2096,6169,660,973,7749,9836]],"./examples/table-edit-focus/table-edit-focus.stories.ts":["./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts",[2096,6169,660,973,7749,9836]],"./examples/transloco/transloco.component.stories":["./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts",[2096,9044]],"./examples/transloco/transloco.component.stories.ts":["./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts",[2096,9044]],"./styling/colors/colors.component.stories":["./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts",[2096,5995]],"./styling/colors/colors.component.stories.ts":["./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts",[2096,5995]],"./styling/forms/forms.component.stories":["./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts",[2096,6169,1516,1977]],"./styling/forms/forms.component.stories.ts":["./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts",[2096,6169,1516,1977]],"./styling/icons/icons.component.stories":["./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts",[2096,6169,1516,7653]],"./styling/icons/icons.component.stories.ts":["./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts",[2096,6169,1516,7653]],"./styling/tags/tags.component.stories":["./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts",[2096,1165]],"./styling/tags/tags.component.stories.ts":["./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts",[2096,1165]],"./styling/ui-tags/ui-tags.component.stories":["./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts",[2096,5233]],"./styling/ui-tags/ui-tags.component.stories.ts":["./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts",[2096,5233]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$"(module,__unused_webpack_exports,__webpack_require__){var map={"./_external/mwork-banner/docs.mdx":["./libs/ui/src/lib/_external/mwork-banner/docs.mdx",[4255,2228,6501]],"./_external/mwork-basic-interpreter/docs.mdx":["./libs/ui/src/lib/_external/mwork-basic-interpreter/docs.mdx",[4255,2228,3752]],"./_external/mwork-music-player/docs.mdx":["./libs/ui/src/lib/_external/mwork-music-player/docs.mdx",[4255,2228,3260]],"./atoms/_electrons/form-error-message/docs.mdx":["./libs/ui/src/lib/atoms/_electrons/form-error-message/docs.mdx",[2096,4255,2074]],"./atoms/background/docs.mdx":["./libs/ui/src/lib/atoms/background/docs.mdx",[2096,4255,4555,2006]],"./atoms/barcode/docs.mdx":["./libs/ui/src/lib/atoms/barcode/docs.mdx",[4255,4555,9918]],"./atoms/buzzer/docs.mdx":["./libs/ui/src/lib/atoms/buzzer/docs.mdx",[2096,4255,4555,4320]],"./atoms/card/docs.mdx":["./libs/ui/src/lib/atoms/card/docs.mdx",[2096,4255,6169,4555,8852]],"./atoms/chart/docs.mdx":["./libs/ui/src/lib/atoms/chart/docs.mdx",[2096,4255,4555,6978]],"./atoms/clock/docs.mdx":["./libs/ui/src/lib/atoms/clock/docs.mdx",[4255,4555,5084]],"./atoms/copy-value/docs.mdx":["./libs/ui/src/lib/atoms/copy-value/docs.mdx",[4255,4555,3007]],"./atoms/image-grid/docs.mdx":["./libs/ui/src/lib/atoms/image-grid/docs.mdx",[2096,4255,6169,4555,9045,8039,3146]],"./atoms/image-slider/docs.mdx":["./libs/ui/src/lib/atoms/image-slider/docs.mdx",[2096,4255,4555,9045,7316,7947]],"./atoms/lang-selector/docs.mdx":["./libs/ui/src/lib/atoms/lang-selector/docs.mdx",[2096,4255,4555,2960]],"./atoms/mosaic/docs.mdx":["./libs/ui/src/lib/atoms/mosaic/docs.mdx",[2096,4255,4555,2831,1954]],"./atoms/placeholder/docs.mdx":["./libs/ui/src/lib/atoms/placeholder/docs.mdx",[4255,4555,6203]],"./atoms/qr-code/docs.mdx":["./libs/ui/src/lib/atoms/qr-code/docs.mdx",[4255,4555,2193]],"./atoms/rating/docs.mdx":["./libs/ui/src/lib/atoms/rating/docs.mdx",[4255,4555,7819]],"./atoms/reader-doc/docs.mdx":["./libs/ui/src/lib/atoms/reader-doc/docs.mdx",[4255,1183,4555,3999,3550]],"./atoms/text-animate/docs.mdx":["./libs/ui/src/lib/atoms/text-animate/docs.mdx",[2096,4255,6169,4555,4067]],"./atoms/thumb/docs.mdx":["./libs/ui/src/lib/atoms/thumb/docs.mdx",[2096,4255,4425,4555,5370]],"./atoms/timer/docs.mdx":["./libs/ui/src/lib/atoms/timer/docs.mdx",[4255,4555,4447]],"./atoms/typewriter/docs.mdx":["./libs/ui/src/lib/atoms/typewriter/docs.mdx",[4255,4555,4806]],"./cdk/components/drag-and-drop-splitter/docs.mdx":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx",[2096,4255,660,2844,4555,1327]],"./cdk/components/table/docs.mdx":["./libs/ui/src/lib/cdk/components/table/docs.mdx",[2096,4255,6169,660,2844,973,4555,7749,6569]],"./examples/docs.mdx":["./libs/ui/src/lib/examples/docs.mdx",[4255,4555,813,1296]],"./forms/autocomplete/docs.mdx":["./libs/ui/src/lib/forms/autocomplete/docs.mdx",[2096,4255,6169,4555,7837]],"./forms/autofocus/docs.mdx":["./libs/ui/src/lib/forms/autofocus/docs.mdx",[2096,4255,6169,1516,166]],"./forms/checkbox/docs.mdx":["./libs/ui/src/lib/forms/checkbox/docs.mdx",[2096,4255,6169,4555,8108]],"./forms/input/docs.mdx":["./libs/ui/src/lib/forms/input/docs.mdx",[2096,4255,6169,4555,1516,4939]],"./forms/slider/docs.mdx":["./libs/ui/src/lib/forms/slider/docs.mdx",[2096,4255,6169,4555,6202,6252]],"./forms/switch/docs.mdx":["./libs/ui/src/lib/forms/switch/docs.mdx",[2096,4255,6169,4555,977]],"./forms/validators/docs.mdx":["./libs/ui/src/lib/forms/validators/docs.mdx",[2096,4255,6169,1516,7586]],"./home/guide.mdx":["./libs/ui/src/lib/home/guide.mdx",[4255,4555,3767]],"./home/overview.mdx":["./libs/ui/src/lib/home/overview.mdx",[4255,128]],"./home/tips.mdx":["./libs/ui/src/lib/home/tips.mdx",[4255,3143]],"./home/usage.mdx":["./libs/ui/src/lib/home/usage.mdx",[4255,3842]],"./layout/main/docs.mdx":["./libs/ui/src/lib/layout/main/docs.mdx",[2096,4255,4555,2249,3837]],"./layout/media-screen/docs.mdx":["./libs/ui/src/lib/layout/media-screen/docs.mdx",[4255,4555,3151]],"./layout/nav/docs.mdx":["./libs/ui/src/lib/layout/nav/docs.mdx",[2096,4255,4425,4555,1255,9653]],"./layout/overlay/docs.mdx":["./libs/ui/src/lib/layout/overlay/docs.mdx",[2096,4255,6169,4555,813,6659,2168]],"./layout/overlay/header/docs.mdx":["./libs/ui/src/lib/layout/overlay/header/docs.mdx",[4255,4555,813,9042]],"./layout/spinner/docs.mdx":["./libs/ui/src/lib/layout/spinner/docs.mdx",[2096,4255,6169,4555,365]],"./layout/splitter/docs.mdx":["./libs/ui/src/lib/layout/splitter/docs.mdx",[2096,4255,6169,4555,2249,6331,947]],"./layout/tabs/docs.mdx":["./libs/ui/src/lib/layout/tabs/docs.mdx",[2096,4255,6169,4555,6892]],"./layout/top-scroll-bottom/docs.mdx":["./libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx",[2096,4255,4555,2249,3073]],"./molecules/image-editor/docs.mdx":["./libs/ui/src/lib/molecules/image-editor/docs.mdx",[2096,4255,6169,4555,813,6202,8180,3190]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"(module,__unused_webpack_exports,__webpack_require__){var map={"./_external/mwork-banner/mwork-banner.stories":["./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts",[2228,7867]],"./_external/mwork-banner/mwork-banner.stories.ts":["./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts",[2228,7867]],"./_external/mwork-basic-interpreter/mwork-basic-interpreter.stories":["./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts",[2228,2379]],"./_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts":["./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts",[2228,2379]],"./_external/mwork-music-player/mwork-music-player.stories":["./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts",[2228,1365]],"./_external/mwork-music-player/mwork-music-player.stories.ts":["./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts",[2228,1365]],"./atoms/_electrons/form-error-message/form-error-message.component.stories":["./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts",[2096,1322]],"./atoms/_electrons/form-error-message/form-error-message.component.stories.ts":["./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts",[2096,1322]],"./atoms/background/background.component.stories":["./libs/ui/src/lib/atoms/background/background.component.stories.ts",[2096,4855]],"./atoms/background/background.component.stories.ts":["./libs/ui/src/lib/atoms/background/background.component.stories.ts",[2096,4855]],"./atoms/barcode/barcode.component.stories":["./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts",[9217]],"./atoms/barcode/barcode.component.stories.ts":["./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts",[9217]],"./atoms/buzzer/buzzer.component.stories":["./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts",[2096,7419]],"./atoms/buzzer/buzzer.component.stories.ts":["./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts",[2096,7419]],"./atoms/card/card.component.stories":["./libs/ui/src/lib/atoms/card/card.component.stories.ts",[2096,6169,4947]],"./atoms/card/card.component.stories.ts":["./libs/ui/src/lib/atoms/card/card.component.stories.ts",[2096,6169,4947]],"./atoms/chart/chart.component.stories":["./libs/ui/src/lib/atoms/chart/chart.component.stories.ts",[2096,2425]],"./atoms/chart/chart.component.stories.ts":["./libs/ui/src/lib/atoms/chart/chart.component.stories.ts",[2096,2425]],"./atoms/clock/clock.component.stories":["./libs/ui/src/lib/atoms/clock/clock.component.stories.ts",[1809]],"./atoms/clock/clock.component.stories.ts":["./libs/ui/src/lib/atoms/clock/clock.component.stories.ts",[1809]],"./atoms/copy-value/copy-value.component.stories":["./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts",[3853]],"./atoms/copy-value/copy-value.component.stories.ts":["./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts",[3853]],"./atoms/image-grid/image-grid.component.stories":["./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts",[2096,6169,9045,8039]],"./atoms/image-grid/image-grid.component.stories.ts":["./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts",[2096,6169,9045,8039]],"./atoms/image-slider/image-slider.component.stories":["./libs/ui/src/lib/atoms/image-slider/image-slider.component.stories.ts",[2096,9045,7316,1461]],"./atoms/image-slider/image-slider.component.stories.ts":["./libs/ui/src/lib/atoms/image-slider/image-slider.component.stories.ts",[2096,9045,7316,1461]],"./atoms/lang-selector/lang-selector.component.stories":["./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.stories.ts",[2096,3277]],"./atoms/lang-selector/lang-selector.component.stories.ts":["./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.stories.ts",[2096,3277]],"./atoms/mosaic/mosaic.component.stories":["./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts",[2096,2831]],"./atoms/mosaic/mosaic.component.stories.ts":["./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts",[2096,2831]],"./atoms/placeholder/placeholder.component.stories":["./libs/ui/src/lib/atoms/placeholder/placeholder.component.stories.ts",[3045]],"./atoms/placeholder/placeholder.component.stories.ts":["./libs/ui/src/lib/atoms/placeholder/placeholder.component.stories.ts",[3045]],"./atoms/qr-code/qr-code.component.stories":["./libs/ui/src/lib/atoms/qr-code/qr-code.component.stories.ts",[4365]],"./atoms/qr-code/qr-code.component.stories.ts":["./libs/ui/src/lib/atoms/qr-code/qr-code.component.stories.ts",[4365]],"./atoms/rating/rating.component.stories":["./libs/ui/src/lib/atoms/rating/rating.component.stories.ts",[3685]],"./atoms/rating/rating.component.stories.ts":["./libs/ui/src/lib/atoms/rating/rating.component.stories.ts",[3685]],"./atoms/reader-doc/reader-doc.component.stories":["./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts",[1183,3999]],"./atoms/reader-doc/reader-doc.component.stories.ts":["./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts",[1183,3999]],"./atoms/text-animate/text-animate.component.stories":["./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts",[2096,6169,7877]],"./atoms/text-animate/text-animate.component.stories.ts":["./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts",[2096,6169,7877]],"./atoms/thumb/thumb.component.stories":["./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts",[2096,4425,3925]],"./atoms/thumb/thumb.component.stories.ts":["./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts",[2096,4425,3925]],"./atoms/timer/timer.component.stories":["./libs/ui/src/lib/atoms/timer/timer.component.stories.ts",[6189]],"./atoms/timer/timer.component.stories.ts":["./libs/ui/src/lib/atoms/timer/timer.component.stories.ts",[6189]],"./atoms/typewriter/typewriter.component.stories":["./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts",[4713]],"./atoms/typewriter/typewriter.component.stories.ts":["./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts",[4713]],"./cdk/components/drag-and-drop-splitter/splitter.component.stories":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts",[2096,660,2844,4271]],"./cdk/components/drag-and-drop-splitter/splitter.component.stories.ts":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts",[2096,660,2844,4271]],"./cdk/components/table/table.component.stories":["./libs/ui/src/lib/cdk/components/table/table.component.stories.ts",[2096,6169,660,2844,973,7749,6212]],"./cdk/components/table/table.component.stories.ts":["./libs/ui/src/lib/cdk/components/table/table.component.stories.ts",[2096,6169,660,2844,973,7749,6212]],"./examples/burger-menu.stories":["./libs/ui/src/lib/examples/burger-menu.stories.ts",[813,9652]],"./examples/burger-menu.stories.ts":["./libs/ui/src/lib/examples/burger-menu.stories.ts",[813,9652]],"./forms/autocomplete/autocomplete.component.stories":["./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts",[2096,6169,1860]],"./forms/autocomplete/autocomplete.component.stories.ts":["./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts",[2096,6169,1860]],"./forms/autofocus/autofocus.stories":["./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts",[2096,6169,1516,9236]],"./forms/autofocus/autofocus.stories.ts":["./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts",[2096,6169,1516,9236]],"./forms/checkbox/checkbox.component.stories":["./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts",[2096,6169,3678]],"./forms/checkbox/checkbox.component.stories.ts":["./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts",[2096,6169,3678]],"./forms/input/input.component.stories":["./libs/ui/src/lib/forms/input/input.component.stories.ts",[2096,6169,1516,1686]],"./forms/input/input.component.stories.ts":["./libs/ui/src/lib/forms/input/input.component.stories.ts",[2096,6169,1516,1686]],"./forms/slider/slider.component.stories":["./libs/ui/src/lib/forms/slider/slider.component.stories.ts",[2096,6169,6202,6922]],"./forms/slider/slider.component.stories.ts":["./libs/ui/src/lib/forms/slider/slider.component.stories.ts",[2096,6169,6202,6922]],"./forms/switch/switch.component.stories":["./libs/ui/src/lib/forms/switch/switch.component.stories.ts",[2096,6169,3048]],"./forms/switch/switch.component.stories.ts":["./libs/ui/src/lib/forms/switch/switch.component.stories.ts",[2096,6169,3048]],"./forms/validators/validators.component.stories":["./libs/ui/src/lib/forms/validators/validators.component.stories.ts",[2096,6169,1516,6354]],"./forms/validators/validators.component.stories.ts":["./libs/ui/src/lib/forms/validators/validators.component.stories.ts",[2096,6169,1516,6354]],"./layout/main/main.component.stories":["./libs/ui/src/lib/layout/main/main.component.stories.ts",[2096,2249,7683]],"./layout/main/main.component.stories.ts":["./libs/ui/src/lib/layout/main/main.component.stories.ts",[2096,2249,7683]],"./layout/media-screen/media-screen.component.stories":["./libs/ui/src/lib/layout/media-screen/media-screen.component.stories.ts",[3651]],"./layout/media-screen/media-screen.component.stories.ts":["./libs/ui/src/lib/layout/media-screen/media-screen.component.stories.ts",[3651]],"./layout/nav/nav.component.stories":["./libs/ui/src/lib/layout/nav/nav.component.stories.ts",[2096,4425,1255,9475]],"./layout/nav/nav.component.stories.ts":["./libs/ui/src/lib/layout/nav/nav.component.stories.ts",[2096,4425,1255,9475]],"./layout/overlay/header/header.component.stories":["./libs/ui/src/lib/layout/overlay/header/header.component.stories.ts",[813,9240]],"./layout/overlay/header/header.component.stories.ts":["./libs/ui/src/lib/layout/overlay/header/header.component.stories.ts",[813,9240]],"./layout/overlay/overlay.component.stories":["./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts",[2096,6169,813,6659]],"./layout/overlay/overlay.component.stories.ts":["./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts",[2096,6169,813,6659]],"./layout/spinner/spinner.component.stories":["./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts",[2096,6169,1043]],"./layout/spinner/spinner.component.stories.ts":["./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts",[2096,6169,1043]],"./layout/splitter/splitter.component.stories":["./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts",[2096,6169,2249,6331]],"./layout/splitter/splitter.component.stories.ts":["./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts",[2096,6169,2249,6331]],"./layout/tabs/tabs.component.stories":["./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts",[2096,6169,8753]],"./layout/tabs/tabs.component.stories.ts":["./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts",[2096,6169,8753]],"./layout/top-scroll-bottom/top-scroll-bottom.component.stories":["./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts",[2096,2249,9779]],"./layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts":["./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts",[2096,2249,9779]],"./molecules/image-editor/image-editor.component.stories":["./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts",[2096,6169,813,6202,8180]],"./molecules/image-editor/image-editor.component.stories.ts":["./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts",[2096,6169,813,6202,8180]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>TranslocoStorybookModule});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_common_http__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/common/fesm2022/_module-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ngneat/transloco-locale/fesm2022/ngneat-transloco-locale.mjs"),_ngneat_transloco_messageformat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ngneat/transloco-messageformat/fesm2022/ngneat-transloco-messageformat.mjs");let TranslocoHttpLoader=class TranslocoHttpLoader{http=(0,_angular_core__WEBPACK_IMPORTED_MODULE_4__.WQX)(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.Qq);getTranslation(lang){return this.http.get(`assets/ui/i18n/ui/${lang}.json`)}};TranslocoHttpLoader=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__._qm)({providedIn:"root"})],TranslocoHttpLoader);let TranslocoStorybookModule=class TranslocoStorybookModule{};TranslocoStorybookModule=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.UQu)({exports:[_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.Q8,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.C],imports:[_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.Q8,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.C],providers:[(0,_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.$o)({config:{availableLangs:[{id:"en-EN",label:"EN"},{id:"de-DE",label:"DE"}],defaultLang:"de-DE",reRenderOnLangChange:!0,prodMode:!(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.isDevMode)(),missingHandler:{logMissingKey:!0}},loader:TranslocoHttpLoader}),(0,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.Ne)({localeConfig:{global:{date:{dateStyle:"medium",timeStyle:"medium"}}}}),(0,_ngneat_transloco_messageformat__WEBPACK_IMPORTED_MODULE_7__.vj)()]})],TranslocoStorybookModule)},"./libs/ui/.storybook/preview.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,preview:()=>preview});var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/common/fesm2022/_module-chunk.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"),_ngneat_transloco__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/firstValueFrom.js"),storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("storybook/internal/core-events"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("storybook/preview-api"),_src_lib_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts");const channel=storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_7__.addons.getChannel(),cleanupHandler=()=>{["#uiNavMain","#uiNavHome"].forEach(id=>{const el=document.querySelector(id);el&&el.remove()})};channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__.STORY_CHANGED,cleanupHandler),channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__.DOCS_RENDERED,cleanupHandler);const preview={parameters:{actions:{disable:!0},interactions:{disable:!0},options:{storySort:{order:["Home",["Introduction","Guide","Tips & Tricks"],"Layout","Molecules","CDK","Forms",["Input","*","Electrons"],"Atoms","Styling",["CSS Variables","Colors","*"],"Examples","External"]}}},decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_4__.L4)({providers:[(0,_angular_common_http__WEBPACK_IMPORTED_MODULE_0__.$R)(),(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.oKB)(_src_lib_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_8__.o),(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.phd)(()=>{const transloco=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngneat_transloco__WEBPACK_IMPORTED_MODULE_3__.JO);return transloco.setActiveLang("en-EN"),(0,rxjs__WEBPACK_IMPORTED_MODULE_5__._)(transloco.load("en-EN"))})]})]},__WEBPACK_DEFAULT_EXPORT__=preview},"./storybook-config-entry.js"(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),csf=(__webpack_require__("storybook/internal/core-events"),__webpack_require__("./node_modules/storybook/dist/csf/index.js")),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api"),asyncToGenerator=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");const pipeline=x=>x(),importers=[function(){var _ref=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/src\/lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(18);return __webpack_require__("./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)});return function(_x){return _ref.apply(this,arguments)}}(),function(){var _ref2=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/src\/lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(18);return __webpack_require__("./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)});return function(_x2){return _ref2.apply(this,arguments)}}(),function(){var _ref3=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/\.storybook\/demos(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(27);return __webpack_require__("./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)});return function(_x3){return _ref3.apply(this,arguments)}}(),function(){var _ref4=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/\.storybook\/demos(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(27);return __webpack_require__("./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)});return function(_x4){return _ref4.apply(this,arguments)}}()];function _importFn(){return(_importFn=(0,asyncToGenerator.A)(function*(path){for(let i=0;i<importers.length;i++){const moduleExports=yield pipeline(()=>importers[i](path));if(moduleExports)return moduleExports}})).apply(this,arguments)}const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb(function importFn(_x5){return _importFn.apply(this,arguments)},()=>{const previewAnnotations=[__webpack_require__("./node_modules/@storybook/angular/dist/client/preview-prod.js"),__webpack_require__("./node_modules/@storybook/angular/dist/client/config.js"),__webpack_require__("./node_modules/@storybook/angular/dist/client/docs/config.js"),__webpack_require__("./node_modules/@storybook/addon-docs/preview.js"),__webpack_require__("./libs/ui/.storybook/preview.ts")],userPreview=previewAnnotations[previewAnnotations.length-1]?.default;return(0,csf.bU)(userPreview)?userPreview.composed:(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)(previewAnnotations)});window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./libs/ui/src/styles/storybook.css?ngGlobalStyle"(){},"./libs/ui/src/styles/tailwind.css?ngGlobalStyle"(){},"./node_modules/storybook/dist/_browser-chunks sync recursive"(module){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/storybook/dist/_browser-chunks sync recursive",module.exports=webpackEmptyContext},"storybook/actions"(module){"use strict";module.exports=__STORYBOOK_MODULE_ACTIONS__},"storybook/internal/channels"(module){"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger"(module){"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors"(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events"(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global"(module){"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/preview-api"(module){"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"storybook/test"(module){"use strict";module.exports=__STORYBOOK_MODULE_TEST__},"storybook/internal/types"(module){"use strict";module.exports=__STORYBOOK_MODULE_TYPES__}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[4755],()=>(__webpack_exec__("./node_modules/@angular/compiler/fesm2022/compiler.mjs"),__webpack_exec__("./storybook-config-entry.js"),__webpack_exec__("./libs/ui/src/styles/tailwind.css?ngGlobalStyle"),__webpack_exec__("./libs/ui/src/styles/storybook.css?ngGlobalStyle")));__webpack_require__.O()}]);
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[8792],{"./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$"(module,__unused_webpack_exports,__webpack_require__){var map={"./examples/image-grid-slider/docs.mdx":["./libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx",[2096,4255,4555,9045,7316,943]],"./examples/layout/docs.mdx":["./libs/ui/.storybook/demos/examples/layout/docs.mdx",[2096,4255,4425,4555,2249,1255,1481]],"./examples/table-edit-focus/docs.mdx":["./libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx",[2096,4255,6169,660,973,4555,7749,5493]],"./examples/transloco/docs.mdx":["./libs/ui/.storybook/demos/examples/transloco/docs.mdx",[2096,4255,4555,6768]],"./styling/colors/docs.mdx":["./libs/ui/.storybook/demos/styling/colors/docs.mdx",[2096,4255,1838]],"./styling/css-variables/docs.mdx":["./libs/ui/.storybook/demos/styling/css-variables/docs.mdx",[4255,7893]],"./styling/forms/docs.mdx":["./libs/ui/.storybook/demos/styling/forms/docs.mdx",[2096,4255,6169,4555,1516,3857]],"./styling/icons/docs.mdx":["./libs/ui/.storybook/demos/styling/icons/docs.mdx",[2096,4255,6169,1516,7653,8092]],"./styling/layers/docs.mdx":["./libs/ui/.storybook/demos/styling/layers/docs.mdx",[4255,7600]],"./styling/tags/docs.mdx":["./libs/ui/.storybook/demos/styling/tags/docs.mdx",[2096,4255,1927]],"./styling/ui-tags/docs.mdx":["./libs/ui/.storybook/demos/styling/ui-tags/docs.mdx",[2096,4255,3338]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"(module,__unused_webpack_exports,__webpack_require__){var map={"./examples/image-grid-slider/image-grid-slider.stories":["./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts",[2096,9045,7316,8938]],"./examples/image-grid-slider/image-grid-slider.stories.ts":["./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts",[2096,9045,7316,8938]],"./examples/layout/layout.stories":["./libs/ui/.storybook/demos/examples/layout/layout.stories.ts",[2096,4425,2249,1255,5684]],"./examples/layout/layout.stories.ts":["./libs/ui/.storybook/demos/examples/layout/layout.stories.ts",[2096,4425,2249,1255,5684]],"./examples/table-edit-focus/table-edit-focus.stories":["./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts",[2096,6169,660,973,7749,9836]],"./examples/table-edit-focus/table-edit-focus.stories.ts":["./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts",[2096,6169,660,973,7749,9836]],"./examples/transloco/transloco.component.stories":["./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts",[2096,9044]],"./examples/transloco/transloco.component.stories.ts":["./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts",[2096,9044]],"./styling/colors/colors.component.stories":["./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts",[2096,5995]],"./styling/colors/colors.component.stories.ts":["./libs/ui/.storybook/demos/styling/colors/colors.component.stories.ts",[2096,5995]],"./styling/forms/forms.component.stories":["./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts",[2096,6169,1516,1977]],"./styling/forms/forms.component.stories.ts":["./libs/ui/.storybook/demos/styling/forms/forms.component.stories.ts",[2096,6169,1516,1977]],"./styling/icons/icons.component.stories":["./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts",[2096,6169,1516,7653]],"./styling/icons/icons.component.stories.ts":["./libs/ui/.storybook/demos/styling/icons/icons.component.stories.ts",[2096,6169,1516,7653]],"./styling/tags/tags.component.stories":["./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts",[2096,1165]],"./styling/tags/tags.component.stories.ts":["./libs/ui/.storybook/demos/styling/tags/tags.component.stories.ts",[2096,1165]],"./styling/ui-tags/ui-tags.component.stories":["./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts",[2096,5233]],"./styling/ui-tags/ui-tags.component.stories.ts":["./libs/ui/.storybook/demos/styling/ui-tags/ui-tags.component.stories.ts",[2096,5233]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$"(module,__unused_webpack_exports,__webpack_require__){var map={"./_external/mwork-banner/docs.mdx":["./libs/ui/src/lib/_external/mwork-banner/docs.mdx",[4255,2228,6501]],"./_external/mwork-basic-interpreter/docs.mdx":["./libs/ui/src/lib/_external/mwork-basic-interpreter/docs.mdx",[4255,2228,3752]],"./_external/mwork-music-player/docs.mdx":["./libs/ui/src/lib/_external/mwork-music-player/docs.mdx",[4255,2228,3260]],"./atoms/_electrons/form-error-message/docs.mdx":["./libs/ui/src/lib/atoms/_electrons/form-error-message/docs.mdx",[2096,4255,2074]],"./atoms/background/docs.mdx":["./libs/ui/src/lib/atoms/background/docs.mdx",[2096,4255,4555,2006]],"./atoms/barcode/docs.mdx":["./libs/ui/src/lib/atoms/barcode/docs.mdx",[4255,4555,9918]],"./atoms/buzzer/docs.mdx":["./libs/ui/src/lib/atoms/buzzer/docs.mdx",[2096,4255,4555,4320]],"./atoms/card/docs.mdx":["./libs/ui/src/lib/atoms/card/docs.mdx",[2096,4255,6169,4555,8852]],"./atoms/chart/docs.mdx":["./libs/ui/src/lib/atoms/chart/docs.mdx",[2096,4255,4555,6978]],"./atoms/clock/docs.mdx":["./libs/ui/src/lib/atoms/clock/docs.mdx",[4255,4555,5084]],"./atoms/copy-value/docs.mdx":["./libs/ui/src/lib/atoms/copy-value/docs.mdx",[4255,4555,3007]],"./atoms/image-grid/docs.mdx":["./libs/ui/src/lib/atoms/image-grid/docs.mdx",[2096,4255,6169,4555,9045,8039,3146]],"./atoms/image-slider/docs.mdx":["./libs/ui/src/lib/atoms/image-slider/docs.mdx",[2096,4255,4555,9045,7316,7947]],"./atoms/lang-selector/docs.mdx":["./libs/ui/src/lib/atoms/lang-selector/docs.mdx",[2096,4255,4555,2960]],"./atoms/mosaic/docs.mdx":["./libs/ui/src/lib/atoms/mosaic/docs.mdx",[2096,4255,4555,2831,1954]],"./atoms/placeholder/docs.mdx":["./libs/ui/src/lib/atoms/placeholder/docs.mdx",[4255,4555,6203]],"./atoms/qr-code/docs.mdx":["./libs/ui/src/lib/atoms/qr-code/docs.mdx",[4255,4555,2193]],"./atoms/rating/docs.mdx":["./libs/ui/src/lib/atoms/rating/docs.mdx",[4255,4555,7819]],"./atoms/reader-doc/docs.mdx":["./libs/ui/src/lib/atoms/reader-doc/docs.mdx",[4255,1183,4555,3999,3550]],"./atoms/text-animate/docs.mdx":["./libs/ui/src/lib/atoms/text-animate/docs.mdx",[2096,4255,6169,4555,4067]],"./atoms/thumb/docs.mdx":["./libs/ui/src/lib/atoms/thumb/docs.mdx",[2096,4255,4425,4555,5370]],"./atoms/timer/docs.mdx":["./libs/ui/src/lib/atoms/timer/docs.mdx",[4255,4555,4447]],"./atoms/typewriter/docs.mdx":["./libs/ui/src/lib/atoms/typewriter/docs.mdx",[4255,4555,4806]],"./cdk/components/drag-and-drop-splitter/docs.mdx":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx",[2096,4255,660,2844,4555,1327]],"./cdk/components/table/docs.mdx":["./libs/ui/src/lib/cdk/components/table/docs.mdx",[2096,4255,6169,660,2844,973,4555,7749,6569]],"./examples/docs.mdx":["./libs/ui/src/lib/examples/docs.mdx",[4255,4555,813,1296]],"./forms/autocomplete/docs.mdx":["./libs/ui/src/lib/forms/autocomplete/docs.mdx",[2096,4255,6169,4555,7837]],"./forms/autofocus/docs.mdx":["./libs/ui/src/lib/forms/autofocus/docs.mdx",[2096,4255,6169,1516,166]],"./forms/checkbox/docs.mdx":["./libs/ui/src/lib/forms/checkbox/docs.mdx",[2096,4255,6169,4555,8108]],"./forms/input/docs.mdx":["./libs/ui/src/lib/forms/input/docs.mdx",[2096,4255,6169,4555,1516,4939]],"./forms/slider/docs.mdx":["./libs/ui/src/lib/forms/slider/docs.mdx",[2096,4255,6169,4555,6202,6252]],"./forms/switch/docs.mdx":["./libs/ui/src/lib/forms/switch/docs.mdx",[2096,4255,6169,4555,977]],"./forms/validators/docs.mdx":["./libs/ui/src/lib/forms/validators/docs.mdx",[2096,4255,6169,1516,7586]],"./home/guide.mdx":["./libs/ui/src/lib/home/guide.mdx",[4255,4555,3767]],"./home/overview.mdx":["./libs/ui/src/lib/home/overview.mdx",[4255,128]],"./home/tips.mdx":["./libs/ui/src/lib/home/tips.mdx",[4255,3143]],"./home/usage.mdx":["./libs/ui/src/lib/home/usage.mdx",[4255,3842]],"./layout/main/docs.mdx":["./libs/ui/src/lib/layout/main/docs.mdx",[2096,4255,4555,2249,3837]],"./layout/media-screen/docs.mdx":["./libs/ui/src/lib/layout/media-screen/docs.mdx",[4255,4555,3151]],"./layout/nav/docs.mdx":["./libs/ui/src/lib/layout/nav/docs.mdx",[2096,4255,4425,4555,1255,9653]],"./layout/overlay/docs.mdx":["./libs/ui/src/lib/layout/overlay/docs.mdx",[2096,4255,6169,4555,813,6659,2168]],"./layout/overlay/header/docs.mdx":["./libs/ui/src/lib/layout/overlay/header/docs.mdx",[4255,4555,813,9042]],"./layout/spinner/docs.mdx":["./libs/ui/src/lib/layout/spinner/docs.mdx",[2096,4255,6169,4555,365]],"./layout/splitter/docs.mdx":["./libs/ui/src/lib/layout/splitter/docs.mdx",[2096,4255,6169,4555,2249,6331,947]],"./layout/tabs/docs.mdx":["./libs/ui/src/lib/layout/tabs/docs.mdx",[2096,4255,6169,4555,6892]],"./layout/top-scroll-bottom/docs.mdx":["./libs/ui/src/lib/layout/top-scroll-bottom/docs.mdx",[2096,4255,4555,2249,3073]],"./molecules/image-editor/docs.mdx":["./libs/ui/src/lib/molecules/image-editor/docs.mdx",[2096,4255,6169,4555,813,6202,8180,3190]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"(module,__unused_webpack_exports,__webpack_require__){var map={"./_external/mwork-banner/mwork-banner.stories":["./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts",[2228,7867]],"./_external/mwork-banner/mwork-banner.stories.ts":["./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts",[2228,7867]],"./_external/mwork-basic-interpreter/mwork-basic-interpreter.stories":["./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts",[2228,2379]],"./_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts":["./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts",[2228,2379]],"./_external/mwork-music-player/mwork-music-player.stories":["./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts",[2228,1365]],"./_external/mwork-music-player/mwork-music-player.stories.ts":["./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts",[2228,1365]],"./atoms/_electrons/form-error-message/form-error-message.component.stories":["./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts",[2096,1322]],"./atoms/_electrons/form-error-message/form-error-message.component.stories.ts":["./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts",[2096,1322]],"./atoms/background/background.component.stories":["./libs/ui/src/lib/atoms/background/background.component.stories.ts",[2096,4855]],"./atoms/background/background.component.stories.ts":["./libs/ui/src/lib/atoms/background/background.component.stories.ts",[2096,4855]],"./atoms/barcode/barcode.component.stories":["./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts",[9217]],"./atoms/barcode/barcode.component.stories.ts":["./libs/ui/src/lib/atoms/barcode/barcode.component.stories.ts",[9217]],"./atoms/buzzer/buzzer.component.stories":["./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts",[2096,7419]],"./atoms/buzzer/buzzer.component.stories.ts":["./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts",[2096,7419]],"./atoms/card/card.component.stories":["./libs/ui/src/lib/atoms/card/card.component.stories.ts",[2096,6169,4947]],"./atoms/card/card.component.stories.ts":["./libs/ui/src/lib/atoms/card/card.component.stories.ts",[2096,6169,4947]],"./atoms/chart/chart.component.stories":["./libs/ui/src/lib/atoms/chart/chart.component.stories.ts",[2096,2425]],"./atoms/chart/chart.component.stories.ts":["./libs/ui/src/lib/atoms/chart/chart.component.stories.ts",[2096,2425]],"./atoms/clock/clock.component.stories":["./libs/ui/src/lib/atoms/clock/clock.component.stories.ts",[1809]],"./atoms/clock/clock.component.stories.ts":["./libs/ui/src/lib/atoms/clock/clock.component.stories.ts",[1809]],"./atoms/copy-value/copy-value.component.stories":["./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts",[3853]],"./atoms/copy-value/copy-value.component.stories.ts":["./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts",[3853]],"./atoms/image-grid/image-grid.component.stories":["./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts",[2096,6169,9045,8039]],"./atoms/image-grid/image-grid.component.stories.ts":["./libs/ui/src/lib/atoms/image-grid/image-grid.component.stories.ts",[2096,6169,9045,8039]],"./atoms/image-slider/image-slider.component.stories":["./libs/ui/src/lib/atoms/image-slider/image-slider.component.stories.ts",[2096,9045,7316,1461]],"./atoms/image-slider/image-slider.component.stories.ts":["./libs/ui/src/lib/atoms/image-slider/image-slider.component.stories.ts",[2096,9045,7316,1461]],"./atoms/lang-selector/lang-selector.component.stories":["./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.stories.ts",[2096,3277]],"./atoms/lang-selector/lang-selector.component.stories.ts":["./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.stories.ts",[2096,3277]],"./atoms/mosaic/mosaic.component.stories":["./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts",[2096,2831]],"./atoms/mosaic/mosaic.component.stories.ts":["./libs/ui/src/lib/atoms/mosaic/mosaic.component.stories.ts",[2096,2831]],"./atoms/placeholder/placeholder.component.stories":["./libs/ui/src/lib/atoms/placeholder/placeholder.component.stories.ts",[3045]],"./atoms/placeholder/placeholder.component.stories.ts":["./libs/ui/src/lib/atoms/placeholder/placeholder.component.stories.ts",[3045]],"./atoms/qr-code/qr-code.component.stories":["./libs/ui/src/lib/atoms/qr-code/qr-code.component.stories.ts",[4365]],"./atoms/qr-code/qr-code.component.stories.ts":["./libs/ui/src/lib/atoms/qr-code/qr-code.component.stories.ts",[4365]],"./atoms/rating/rating.component.stories":["./libs/ui/src/lib/atoms/rating/rating.component.stories.ts",[3685]],"./atoms/rating/rating.component.stories.ts":["./libs/ui/src/lib/atoms/rating/rating.component.stories.ts",[3685]],"./atoms/reader-doc/reader-doc.component.stories":["./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts",[1183,3999]],"./atoms/reader-doc/reader-doc.component.stories.ts":["./libs/ui/src/lib/atoms/reader-doc/reader-doc.component.stories.ts",[1183,3999]],"./atoms/text-animate/text-animate.component.stories":["./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts",[2096,6169,7877]],"./atoms/text-animate/text-animate.component.stories.ts":["./libs/ui/src/lib/atoms/text-animate/text-animate.component.stories.ts",[2096,6169,7877]],"./atoms/thumb/thumb.component.stories":["./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts",[2096,4425,3925]],"./atoms/thumb/thumb.component.stories.ts":["./libs/ui/src/lib/atoms/thumb/thumb.component.stories.ts",[2096,4425,3925]],"./atoms/timer/timer.component.stories":["./libs/ui/src/lib/atoms/timer/timer.component.stories.ts",[6189]],"./atoms/timer/timer.component.stories.ts":["./libs/ui/src/lib/atoms/timer/timer.component.stories.ts",[6189]],"./atoms/typewriter/typewriter.component.stories":["./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts",[4713]],"./atoms/typewriter/typewriter.component.stories.ts":["./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts",[4713]],"./cdk/components/drag-and-drop-splitter/splitter.component.stories":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts",[2096,660,2844,4271]],"./cdk/components/drag-and-drop-splitter/splitter.component.stories.ts":["./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts",[2096,660,2844,4271]],"./cdk/components/table/table.component.stories":["./libs/ui/src/lib/cdk/components/table/table.component.stories.ts",[2096,6169,660,2844,973,7749,6212]],"./cdk/components/table/table.component.stories.ts":["./libs/ui/src/lib/cdk/components/table/table.component.stories.ts",[2096,6169,660,2844,973,7749,6212]],"./examples/burger-menu.stories":["./libs/ui/src/lib/examples/burger-menu.stories.ts",[813,9652]],"./examples/burger-menu.stories.ts":["./libs/ui/src/lib/examples/burger-menu.stories.ts",[813,9652]],"./forms/autocomplete/autocomplete.component.stories":["./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts",[2096,6169,1860]],"./forms/autocomplete/autocomplete.component.stories.ts":["./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts",[2096,6169,1860]],"./forms/autofocus/autofocus.stories":["./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts",[2096,6169,1516,9236]],"./forms/autofocus/autofocus.stories.ts":["./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts",[2096,6169,1516,9236]],"./forms/checkbox/checkbox.component.stories":["./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts",[2096,6169,3678]],"./forms/checkbox/checkbox.component.stories.ts":["./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts",[2096,6169,3678]],"./forms/input/input.component.stories":["./libs/ui/src/lib/forms/input/input.component.stories.ts",[2096,6169,1516,1686]],"./forms/input/input.component.stories.ts":["./libs/ui/src/lib/forms/input/input.component.stories.ts",[2096,6169,1516,1686]],"./forms/slider/slider.component.stories":["./libs/ui/src/lib/forms/slider/slider.component.stories.ts",[2096,6169,6202,6922]],"./forms/slider/slider.component.stories.ts":["./libs/ui/src/lib/forms/slider/slider.component.stories.ts",[2096,6169,6202,6922]],"./forms/switch/switch.component.stories":["./libs/ui/src/lib/forms/switch/switch.component.stories.ts",[2096,6169,3048]],"./forms/switch/switch.component.stories.ts":["./libs/ui/src/lib/forms/switch/switch.component.stories.ts",[2096,6169,3048]],"./forms/validators/validators.component.stories":["./libs/ui/src/lib/forms/validators/validators.component.stories.ts",[2096,6169,1516,6354]],"./forms/validators/validators.component.stories.ts":["./libs/ui/src/lib/forms/validators/validators.component.stories.ts",[2096,6169,1516,6354]],"./layout/main/main.component.stories":["./libs/ui/src/lib/layout/main/main.component.stories.ts",[2096,2249,7683]],"./layout/main/main.component.stories.ts":["./libs/ui/src/lib/layout/main/main.component.stories.ts",[2096,2249,7683]],"./layout/media-screen/media-screen.component.stories":["./libs/ui/src/lib/layout/media-screen/media-screen.component.stories.ts",[3651]],"./layout/media-screen/media-screen.component.stories.ts":["./libs/ui/src/lib/layout/media-screen/media-screen.component.stories.ts",[3651]],"./layout/nav/nav.component.stories":["./libs/ui/src/lib/layout/nav/nav.component.stories.ts",[2096,4425,1255,9475]],"./layout/nav/nav.component.stories.ts":["./libs/ui/src/lib/layout/nav/nav.component.stories.ts",[2096,4425,1255,9475]],"./layout/overlay/header/header.component.stories":["./libs/ui/src/lib/layout/overlay/header/header.component.stories.ts",[813,9240]],"./layout/overlay/header/header.component.stories.ts":["./libs/ui/src/lib/layout/overlay/header/header.component.stories.ts",[813,9240]],"./layout/overlay/overlay.component.stories":["./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts",[2096,6169,813,6659]],"./layout/overlay/overlay.component.stories.ts":["./libs/ui/src/lib/layout/overlay/overlay.component.stories.ts",[2096,6169,813,6659]],"./layout/spinner/spinner.component.stories":["./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts",[2096,6169,1043]],"./layout/spinner/spinner.component.stories.ts":["./libs/ui/src/lib/layout/spinner/spinner.component.stories.ts",[2096,6169,1043]],"./layout/splitter/splitter.component.stories":["./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts",[2096,6169,2249,6331]],"./layout/splitter/splitter.component.stories.ts":["./libs/ui/src/lib/layout/splitter/splitter.component.stories.ts",[2096,6169,2249,6331]],"./layout/tabs/tabs.component.stories":["./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts",[2096,6169,8753]],"./layout/tabs/tabs.component.stories.ts":["./libs/ui/src/lib/layout/tabs/tabs.component.stories.ts",[2096,6169,8753]],"./layout/top-scroll-bottom/top-scroll-bottom.component.stories":["./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts",[2096,2249,9779]],"./layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts":["./libs/ui/src/lib/layout/top-scroll-bottom/top-scroll-bottom.component.stories.ts",[2096,2249,9779]],"./molecules/image-editor/image-editor.component.stories":["./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts",[2096,6169,813,6202,8180]],"./molecules/image-editor/image-editor.component.stories.ts":["./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts",[2096,6169,813,6202,8180]]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e});var ids=map[req],id=ids[0];return Promise.all(ids[1].map(__webpack_require__.e)).then(()=>__webpack_require__(id))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>TranslocoStorybookModule});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_common_http__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/common/fesm2022/_module-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@ngneat/transloco-locale/fesm2022/ngneat-transloco-locale.mjs"),_ngneat_transloco_messageformat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@ngneat/transloco-messageformat/fesm2022/ngneat-transloco-messageformat.mjs");let TranslocoHttpLoader=class TranslocoHttpLoader{http=(0,_angular_core__WEBPACK_IMPORTED_MODULE_4__.WQX)(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.Qq);getTranslation(lang){return this.http.get(`assets/ui/i18n/ui/${lang}.json`)}};TranslocoHttpLoader=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__._qm)({providedIn:"root"})],TranslocoHttpLoader);let TranslocoStorybookModule=class TranslocoStorybookModule{};TranslocoStorybookModule=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.UQu)({exports:[_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.Q8,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.C],imports:[_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.Q8,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.C],providers:[(0,_ngneat_transloco__WEBPACK_IMPORTED_MODULE_5__.$o)({config:{availableLangs:[{id:"en-EN",label:"EN"},{id:"de-DE",label:"DE"}],defaultLang:"de-DE",reRenderOnLangChange:!0,prodMode:!(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.isDevMode)(),missingHandler:{logMissingKey:!0}},loader:TranslocoHttpLoader}),(0,_ngneat_transloco_locale__WEBPACK_IMPORTED_MODULE_6__.Ne)({localeConfig:{global:{date:{dateStyle:"medium",timeStyle:"medium"}}}}),(0,_ngneat_transloco_messageformat__WEBPACK_IMPORTED_MODULE_7__.vj)()]})],TranslocoStorybookModule)},"./libs/ui/.storybook/preview.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,preview:()=>preview});var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/common/fesm2022/_module-chunk.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"),_ngneat_transloco__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/firstValueFrom.js"),storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("storybook/internal/core-events"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("storybook/preview-api"),_src_lib_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts");const channel=storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_7__.addons.getChannel(),cleanupHandler=()=>{["#uiNavMain","#uiNavHome"].forEach(id=>{const el=document.querySelector(id);el&&el.remove()})};channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__.STORY_CHANGED,cleanupHandler),channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_6__.DOCS_RENDERED,cleanupHandler);const preview={parameters:{actions:{disable:!0},interactions:{disable:!0},options:{storySort:{order:["Home",["Introduction","Usage","Guide","Tips & Tricks"],"Layout","Molecules","CDK","Forms",["Input","*","Electrons"],"Atoms","Styling",["CSS Variables","Colors","*"],"Examples","External"]}}},decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_4__.L4)({providers:[(0,_angular_common_http__WEBPACK_IMPORTED_MODULE_0__.$R)(),(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.oKB)(_src_lib_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_8__.o),(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.phd)(()=>{const transloco=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngneat_transloco__WEBPACK_IMPORTED_MODULE_3__.JO);return transloco.setActiveLang("en-EN"),(0,rxjs__WEBPACK_IMPORTED_MODULE_5__._)(transloco.load("en-EN"))})]})]},__WEBPACK_DEFAULT_EXPORT__=preview},"./storybook-config-entry.js"(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),csf=(__webpack_require__("storybook/internal/core-events"),__webpack_require__("./node_modules/storybook/dist/csf/index.js")),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api"),asyncToGenerator=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");const pipeline=x=>x(),importers=[function(){var _ref=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/src\/lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(18);return __webpack_require__("./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)});return function(_x){return _ref.apply(this,arguments)}}(),function(){var _ref2=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/src\/lib(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(18);return __webpack_require__("./libs/ui/src/lib lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/src\\/lib(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)});return function(_x2){return _ref2.apply(this,arguments)}}(),function(){var _ref3=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/\.storybook\/demos(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(27);return __webpack_require__("./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)});return function(_x3){return _ref3.apply(this,arguments)}}(),function(){var _ref4=(0,asyncToGenerator.A)(function*(path){if(!/^\.[\\/](?:libs\/ui\/\.storybook\/demos(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(27);return __webpack_require__("./libs/ui/.storybook/demos lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/libs\\/ui\\/\\.storybook\\/demos(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)});return function(_x4){return _ref4.apply(this,arguments)}}()];function _importFn(){return(_importFn=(0,asyncToGenerator.A)(function*(path){for(let i=0;i<importers.length;i++){const moduleExports=yield pipeline(()=>importers[i](path));if(moduleExports)return moduleExports}})).apply(this,arguments)}const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb(function importFn(_x5){return _importFn.apply(this,arguments)},()=>{const previewAnnotations=[__webpack_require__("./node_modules/@storybook/angular/dist/client/preview-prod.js"),__webpack_require__("./node_modules/@storybook/angular/dist/client/config.js"),__webpack_require__("./node_modules/@storybook/angular/dist/client/docs/config.js"),__webpack_require__("./node_modules/@storybook/addon-docs/preview.js"),__webpack_require__("./libs/ui/.storybook/preview.ts")],userPreview=previewAnnotations[previewAnnotations.length-1]?.default;return(0,csf.bU)(userPreview)?userPreview.composed:(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)(previewAnnotations)});window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./libs/ui/src/styles/storybook.css?ngGlobalStyle"(){},"./libs/ui/src/styles/tailwind.css?ngGlobalStyle"(){},"./node_modules/storybook/dist/_browser-chunks sync recursive"(module){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/storybook/dist/_browser-chunks sync recursive",module.exports=webpackEmptyContext},"storybook/actions"(module){"use strict";module.exports=__STORYBOOK_MODULE_ACTIONS__},"storybook/internal/channels"(module){"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger"(module){"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors"(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events"(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global"(module){"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/preview-api"(module){"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"storybook/test"(module){"use strict";module.exports=__STORYBOOK_MODULE_TEST__},"storybook/internal/types"(module){"use strict";module.exports=__STORYBOOK_MODULE_TYPES__}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[4755],()=>(__webpack_exec__("./node_modules/@angular/compiler/fesm2022/compiler.mjs"),__webpack_exec__("./storybook-config-entry.js"),__webpack_exec__("./libs/ui/src/styles/tailwind.css?ngGlobalStyle"),__webpack_exec__("./libs/ui/src/styles/storybook.css?ngGlobalStyle")));__webpack_require__.O()}]);
|
|
@@ -958,6 +958,10 @@
|
|
|
958
958
|
background-color: color-mix(in oklab, rgb(var(--ui-c-warn-tw)) 80%, transparent);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
+
.bg-loading {
|
|
962
|
+
background-image: linear-gradient( 90deg, transparent 20%, var(--ui-c-primary) 100% );
|
|
963
|
+
background-size: 200%;
|
|
964
|
+
}
|
|
961
965
|
.object-cover {
|
|
962
966
|
object-fit: cover;
|
|
963
967
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3190],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/molecules/image-editor/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_image_editor_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_image_editor_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-image-editor.json");function _createMdxContent(props){const _components={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_image_editor_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"image-editor",children:"Image Editor"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["An editor for a single image. The user can delete the current image or\nupload a new one (PNG, GIF or JPEG), crop it (freely or locked to an aspect\nratio) and the result is converted to a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"JPEG entirely in the browser"})," via a\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<canvas>"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"toBlob('image/jpeg', quality)"}),"). The finished blob is emitted through\nthe ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"save"})," output — the component itself never talks to a backend, so it is\nreusable across apps."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Client-side conversion means the server only has to store a small, finished\nJPEG: no server-side image library is required."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Edits one image in the browser: upload (PNG, GIF, JPEG), crop freely or to an\naspect ratio, delete, and emit the result as a JPEG blob through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"save"}),". It\nnever talks to a backend and keeps no image beyond the one it is shown. It comes\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"embedded"})," in the flow or as an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overlay"})," — the same editor, not two. It is the\nlibrary's only molecule: it composes the overlay, the overlay header, the crop\nbox and the slider."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-image-editor",entry:_guide_ui_image_editor_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"variants",children:"Variants"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The same content comes in two presentations, selected by the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"variant"})," input:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"embedded"})})," (default): the editor stands in the document flow like any\nother element — no frame, no backdrop, no focus trap, no Escape semantics.\nIt fills the width it is given; the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"maximum width is set by the consumer"}),"\nvia styles on the host or a wrapping element, the minimum emerges from the\nfooter button row (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"flex-wrap"})," as a safety net for very narrow screens).\nDelete and Save return the editor to a clean view mode instead of closing\nanything, and leaving the crop stage is the Crop button's own second press —\nthe consumer provides whatever closes the editor itself; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"})," are not used."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overlay"})}),": wraps the editor in the ui overlay as before — backdrop,\nfocus trap, Escape and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"active"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"activeOutput"})," pair."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--with-image",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-image-editor\n [imageUrl]="currentCover()"\n [aspectRatio]="2 / 3"\n (save)="onCoverSaved($event)"\n (deleteImage)="onCoverDeleted()"\n></ui-image-editor>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"usage-overlay",children:"Usage (overlay)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-1",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--overlay",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-image-editor\n variant="overlay"\n [active]="editorActive()"\n [imageUrl]="currentCover()"\n [aspectRatio]="2 / 3"\n (save)="onCoverSaved($event)"\n (deleteImage)="onCoverDeleted()"\n (activeOutput)="editorActive.set($event)"\n></ui-image-editor>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"with-an-existing-image",children:"With an existing image"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-2",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--with-image",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Opening with an image shows it in view mode. The footer offers ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Delete"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Upload"})," (pick a new file), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop"})," (edit the current image without\nre-uploading) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Save"}),". Both ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Upload"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop"})," switch to the crop\nstage; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Save"})," is enabled there. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop"})," switches back out again — it is a\ntoggle, not a one-way door."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The crop box works by pointer and by keyboard alike: it is a tab stop, the\narrow keys pan it, Shift with an arrow resizes it from the south-east corner\n— a locked ratio holds exactly as it does for a pointer on that corner. This\npage is the only place that says so: the hint that used to sit under the box\nnamed the arrow keys but not the corner, which sent readers to pull at the\nwrong edge."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"locked-aspect-ratio",children:"Locked aspect ratio"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--poster-ratio",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Passing ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aspectRatio"})," (e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2 / 3"})," for a poster) constrains the crop box while\nresizing; the height follows the width automatically. Only the corner handles\nare shown in this mode."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"empty-state",children:"Empty state"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-story-4",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--empty",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"imageUrl"})," the editor shows an empty placeholder and only the upload\naction."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"footer-buttons",children:"Footer buttons"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Four icon buttons on one row (grey surface, tinted icons where it helps). Each\ncarries a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"title"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-label"})," tooltip. Muted buttons keep the same grey\nbackground — only their icon is dimmed, in its normal colour, so it stays\nreadable against that surface. The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/molecules-image-editor--empty",children:"empty state"}),"\nshows this: with no image, Crop, Delete and Save are all muted."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Crop is muted, never disabled"}),", and that is a keyboard decision rather than\na visual one. Pressing it used to switch it off — entering the crop stage made\nits own condition false — and a disabled element is not focusable, so the\nfocus was dropped by the very press that moved the editor forward, in a\ncomponent whose crop box is meant to be operated by keyboard. It therefore\ncarries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'aria-disabled="true"'})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-pressed"}),", stays reachable in every\nstate, and does nothing when there is nothing to crop (see the house rule in\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"usage.md"}),', "Disabled controls and the keyboard").']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Delete and Save still use the attribute, and that is an open end rather than a\ndistinction: pressing Delete removes the image, which is the condition Delete\nreads, and pressing Save leaves the crop stage, which is the condition Save\nreads — so both switch themselves off under the focus that pressed them, for\nthe same reason Crop did. Crop was fixed first because it is the one you press\ntwice. The other two are named here so the gap is on the page instead of in\nsomeone's memory."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Button"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Icon"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Enabled when"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Action"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Upload"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"add_a_photo"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"always"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Opens the file picker; a chosen PNG/GIF/JPEG enters the crop stage."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Crop (toggle)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"crop"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["always reachable; muted (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"aria-disabled"}),") without an image"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Loads the current image into the crop stage — and a second press discards the crop and returns to view. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"aria-pressed"})," says which state it is in."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Delete (red icon)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"delete"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"an image exists"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"deleteImage"})," and closes the overlay (embedded: resets to view)."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Save (green icon when active)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"save"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"crop stage and not converting"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Converts the crop to a JPEG, emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"save"}),", closes the overlay (embedded: resets to view)."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Rejecting a file (wrong type or over the size limit) shows an inline error and\nstays in the current stage."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"inputs",children:"Inputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"variant"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'embedded' | 'overlay'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'embedded'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"In-flow presentation or the ui overlay."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"active"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Opens/closes the overlay (overlay variant only)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"imageUrl"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"string | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The current image shown when the editor opens."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"aspectRatio"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Locks the crop to this width/height ratio; null allows free cropping."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"maxWidth"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"1200"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Maximum output width in pixels; height follows the crop ratio."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"quality"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"0.75"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"JPEG quality (0..1) of the converted output."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"maxFileSizeMb"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"10"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Rejects source files larger than this (megabytes)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"headline"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"string | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Optional overlay title; falls back to the imageEditor.title key."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"overlayDirection"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'center' | 'top' | 'bottom' | 'left' | 'right' | null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"null"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Side the overlay slides in from (overlay variant only); null keeps the\noverlay's own centre default. Use 'left'/'right' to make the editor a\ndrawer that matches an app's navigation panel."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"overlayFitContent"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"false"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Sizes the overlay to its content instead of the available height\n(overlay variant only) — see the overlay's own fitContent. Keeps a sheet\nholding a small image from standing there as a tall, empty column."})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The overlay variant always runs with the overlay's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"viewportHeight"}),": a sheet\nbelongs to the browser window, not to the document. Without it the percentage\nheights resolve against a transformed ancestor's box, and inside a long page\nthat stretches the sheet to the full document height — header and footer end up\nfar outside the visible area."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"outputs",children:"Outputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Payload"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"save"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Blob"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The converted JPEG when the user saves."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"deleteImage"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"void"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Emitted when the user deletes the current image."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"activeOutput"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"boolean"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Forwards the overlay close event (emits false; overlay variant only)."})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
|
package/storybook/molecules-image-editor-image-editor-component-stories.fbfeff1b.iframe.bundle.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[8180],{"./libs/ui/src/lib/molecules/image-editor/image-editor.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Empty:()=>Empty,Overlay:()=>Overlay,PosterRatio:()=>PosterRatio,WithImage:()=>WithImage,__namedExportsOrder:()=>__namedExportsOrder,default:()=>image_editor_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"),asyncToGenerator=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var image_editor_componentngResource=__webpack_require__("./libs/ui/src/lib/molecules/image-editor/image-editor.component.css?ngResource"),image_editor_componentngResource_default=__webpack_require__.n(image_editor_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),slider_component=__webpack_require__("./libs/ui/src/lib/forms/slider/slider.component.ts"),header_header_component=__webpack_require__("./libs/ui/src/lib/layout/overlay/header/header.component.ts"),overlay_component=__webpack_require__("./libs/ui/src/lib/layout/overlay/overlay.component.ts");var crop_box_componentngResource=__webpack_require__("./libs/ui/src/lib/molecules/image-editor/crop-box/crop-box.component.css?ngResource"),crop_box_componentngResource_default=__webpack_require__.n(crop_box_componentngResource);let UiImageEditorCropBoxComponent=class UiImageEditorCropBoxComponent{src=(0,core.input)("");aspectRatio=(0,core.input)(null);zoom=(0,core.input)(100);cropChange=(0,core.output)();preview=(0,core.viewChild)("preview");cropEl=(0,core.viewChild)("crop");frameEl=(0,core.viewChild)("frame");naturalWidth=(0,_effect_chunk2.vPA)(0);naturalHeight=(0,_effect_chunk2.vPA)(0);cornerHandles=[{h:"nw",cls:"_nw"},{h:"ne",cls:"_ne"},{h:"sw",cls:"_sw"},{h:"se",cls:"_se"}];edgeHandles=[{h:"n",cls:"_n"},{h:"s",cls:"_s"},{h:"w",cls:"_w"},{h:"e",cls:"_e"},{h:"move",cls:"_center"}];handles=(0,_resource_chunk.EW)(()=>this.aspectRatio()?this.cornerHandles:[...this.cornerHandles,...this.edgeHandles]);cropX=(0,_effect_chunk2.vPA)(0);cropY=(0,_effect_chunk2.vPA)(0);cropWidth=(0,_effect_chunk2.vPA)(0);cropHeight=(0,_effect_chunk2.vPA)(0);drag=null;constructor(){(0,_effect_chunk2.QZP)(()=>{this.src(),this.aspectRatio(),(0,_resource_chunk.O8)(()=>{this.naturalWidth()>0&&this.resetCrop()})}),(0,_effect_chunk2.QZP)(()=>this.paint()),(0,_effect_chunk2.QZP)(()=>{const el=this.frameEl()?.nativeElement;el&&(el.style.transform=`scale(${this.zoom()/100})`)})}paint(){const el=this.cropEl()?.nativeElement;el&&(el.style.left=`${this.leftPercent()}%`,el.style.top=`${this.topPercent()}%`,el.style.width=`${this.widthPercent()}%`,el.style.height=`${this.heightPercent()}%`)}onImageLoad(){const img=this.preview()?.nativeElement;img&&(this.naturalWidth.set(img.naturalWidth),this.naturalHeight.set(img.naturalHeight),this.resetCrop())}resetCrop(){const natW=this.naturalWidth(),natH=this.naturalHeight();if(0===natW||0===natH)return;const ratio=this.aspectRatio();let w=natW,h=natH;ratio&&ratio>0&&(natW/natH>ratio?(h=natH,w=h*ratio):(w=natW,h=w/ratio)),this.cropWidth.set(Math.round(w)),this.cropHeight.set(Math.round(h)),this.cropX.set(Math.round((natW-w)/2)),this.cropY.set(Math.round((natH-h)/2)),this.emit()}leftPercent=(0,_resource_chunk.EW)(()=>this.naturalWidth()?this.cropX()/this.naturalWidth()*100:0);topPercent=(0,_resource_chunk.EW)(()=>this.naturalHeight()?this.cropY()/this.naturalHeight()*100:0);widthPercent=(0,_resource_chunk.EW)(()=>this.naturalWidth()?this.cropWidth()/this.naturalWidth()*100:100);heightPercent=(0,_resource_chunk.EW)(()=>this.naturalHeight()?this.cropHeight()/this.naturalHeight()*100:100);onPointerDown(event,handle){event.preventDefault(),event.stopPropagation(),event.target.setPointerCapture(event.pointerId),this.drag={handle,startClientX:event.clientX,startClientY:event.clientY,startX:this.cropX(),startY:this.cropY(),startWidth:this.cropWidth(),startHeight:this.cropHeight()}}onPointerMove(event){if(!this.drag)return;const img=this.preview()?.nativeElement;if(!img)return;const shownWidth=img.getBoundingClientRect().width;if(0===shownWidth)return;const scale=this.naturalWidth()/shownWidth,dx=(event.clientX-this.drag.startClientX)*scale,dy=(event.clientY-this.drag.startClientY)*scale;"move"===this.drag.handle?this.moveBy(dx,dy):this.resizeBy(this.drag.handle,dx,dy),this.paint(),this.emit()}onPointerUp(event){this.drag&&(event.target.releasePointerCapture?.(event.pointerId),this.drag=null,this.emit())}onKeydown(event){const step=Math.max(8,Math.round(.02*this.naturalWidth())),dx="ArrowLeft"===event.key?-step:"ArrowRight"===event.key?step:0,dy="ArrowUp"===event.key?-step:"ArrowDown"===event.key?step:0;0===dx&&0===dy||(event.preventDefault(),this.drag={handle:event.shiftKey?"se":"move",startClientX:0,startClientY:0,startX:this.cropX(),startY:this.cropY(),startWidth:this.cropWidth(),startHeight:this.cropHeight()},event.shiftKey?this.resizeBy("se",dx,dy):this.moveBy(dx,dy),this.drag=null,this.paint(),this.emit())}moveBy(dx,dy){if(!this.drag)return;const natW=this.naturalWidth(),natH=this.naturalHeight(),w=this.drag.startWidth,h=this.drag.startHeight;this.cropX.set(this.clamp(this.drag.startX+dx,0,natW-w)),this.cropY.set(this.clamp(this.drag.startY+dy,0,natH-h))}resizeBy(handle,dx,dy){if(!this.drag)return;const natW=this.naturalWidth(),natH=this.naturalHeight(),ratio=this.aspectRatio(),left0=this.drag.startX,top0=this.drag.startY,right0=left0+this.drag.startWidth,bottom0=top0+this.drag.startHeight,mL="nw"===handle||"sw"===handle||"w"===handle,mR="ne"===handle||"se"===handle||"e"===handle,mT="nw"===handle||"ne"===handle||"n"===handle,mB="sw"===handle||"se"===handle||"s"===handle;let left=mL?this.clamp(left0+dx,0,right0-24):left0,right=mR?this.clamp(right0+dx,left0+24,natW):right0,top=mT?this.clamp(top0+dy,0,bottom0-24):top0,bottom=mB?this.clamp(bottom0+dy,top0+24,natH):bottom0;if(ratio&&ratio>0){const horizontal=mL||mR,vertical=mT||mB;if(horizontal&&!vertical){if(bottom=top+(right-left)/ratio,bottom>natH){bottom=natH;const w=(bottom-top)*ratio;mL?left=right-w:right=left+w}}else if(vertical&&!horizontal){if(right=left+(bottom-top)*ratio,right>natW){right=natW;const h=(right-left)/ratio;mT?top=bottom-h:bottom=top+h}}else{let h=(right-left)/ratio;if(mT){if(top=bottom-h,top<0){top=0,h=bottom;const w=h*ratio;mL?left=right-w:right=left+w}}else if(bottom=top+h,bottom>natH){bottom=natH,h=bottom-top;const w=h*ratio;mL?left=right-w:right=left+w}}}this.cropX.set(Math.round(left)),this.cropY.set(Math.round(top)),this.cropWidth.set(Math.round(right-left)),this.cropHeight.set(Math.round(bottom-top))}emit(){const natW=this.naturalWidth(),natH=this.naturalHeight();0!==natW&&0!==natH&&this.cropChange.emit({x:this.cropX()/natW,y:this.cropY()/natH,width:this.cropWidth()/natW,height:this.cropHeight()/natH})}clamp(value,min,max){return Math.min(Math.max(value,min),max)}static ctorParameters=()=>[];static propDecorators={src:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"src",required:!1,transform:void 0}]}],aspectRatio:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"aspectRatio",required:!1,transform:void 0}]}],zoom:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"zoom",required:!1,transform:void 0}]}],cropChange:[{type:_debug_node_chunk.k7i,args:["cropChange"]}],preview:[{type:core.ViewChild,args:["preview",{isSignal:!0}]}],cropEl:[{type:core.ViewChild,args:["crop",{isSignal:!0}]}],frameEl:[{type:core.ViewChild,args:["frame",{isSignal:!0}]}]}};UiImageEditorCropBoxComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-image-editor-crop-box",template:'<div class="_stage">\n <div #frame class="_frame">\n <img\n #preview\n class="_image"\n [src]="src()"\n alt=""\n draggable="false"\n (load)="onImageLoad()"\n />\n\n @if (naturalWidth() > 0) {\n \x3c!-- Focusable: the crop is operable by keyboard — arrows pan,\n Shift+arrows resize — so it needs a tab stop and a name. --\x3e\n <div\n #crop\n class="_crop"\n tabindex="0"\n role="group"\n [attr.aria-label]="\'imageEditor.cropLabel\' | transloco"\n (keydown)="onKeydown($event)"\n (pointerdown)="onPointerDown($event, \'move\')"\n (pointermove)="onPointerMove($event)"\n (pointerup)="onPointerUp($event)"\n >\n @for (hnd of handles(); track hnd.cls) {\n <span\n class="_handle {{ hnd.cls }}"\n (pointerdown)="onPointerDown($event, hnd.h)"\n (pointermove)="onPointerMove($event)"\n (pointerup)="onPointerUp($event)"\n ></span>\n }\n </div>\n }\n </div>\n</div>\n',encapsulation:_debug_node_chunk.gXe.Emulated,imports:[ngneat_transloco.Kj],styles:[crop_box_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiImageEditorCropBoxComponent);const UI_IMAGE_EDITOR_ACCEPTED_TYPES=["image/png","image/gif","image/jpeg"];let UiImageEditorComponent=class UiImageEditorComponent{variant=(0,core.input)("embedded");active=(0,core.input)(!1);imageUrl=(0,core.input)(null);aspectRatio=(0,core.input)(null);maxWidth=(0,core.input)(1200);quality=(0,core.input)(.75);maxFileSizeMb=(0,core.input)(10);headline=(0,core.input)(null);overlayDirection=(0,core.input)(null);overlayFitContent=(0,core.input)(!1);save=(0,core.output)();deleteImage=(0,core.output)();activeOutput=(0,core.output)();fileInput=(0,core.viewChild)("fileInput");sourceUrl=(0,_effect_chunk2.vPA)(null);crop=(0,_effect_chunk2.vPA)(null);busy=(0,_effect_chunk2.vPA)(!1);errorKey=(0,_effect_chunk2.vPA)(null);zoom=(0,_effect_chunk2.vPA)(100);working=null;stage=(0,_resource_chunk.EW)(()=>this.sourceUrl()?"crop":"view");hasImage=(0,_resource_chunk.EW)(()=>Boolean(this.imageUrl()));canDelete=(0,_resource_chunk.EW)(()=>this.hasImage());canEdit=(0,_resource_chunk.EW)(()=>this.hasImage()||"crop"===this.stage());canSave=(0,_resource_chunk.EW)(()=>"crop"===this.stage()&&!this.busy());acceptAttr=UI_IMAGE_EDITOR_ACCEPTED_TYPES.join(",");constructor(){(0,_effect_chunk2.QZP)(()=>{"overlay"!==this.variant()||this.active()||this.reset()})}openPicker(){this.errorKey.set(null),this.fileInput()?.nativeElement.click()}onFileSelected(event){var _this=this;return(0,asyncToGenerator.A)(function*(){const el=event.target,file=el.files?.[0];if(el.value="",!file)return;if(!UI_IMAGE_EDITOR_ACCEPTED_TYPES.includes(file.type))return void _this.errorKey.set("wrongType");if(file.size>1024*_this.maxFileSizeMb()*1024)return void _this.errorKey.set("tooBig");_this.errorKey.set(null),_this.revokeSource();const url=URL.createObjectURL(file),img=new Image;img.decoding="async",img.src=url;try{yield img.decode()}catch{return URL.revokeObjectURL(url),void _this.errorKey.set("wrongType")}_this.working=img,_this.crop.set(null),_this.sourceUrl.set(url)})()}openEdit(){var _this2=this;return(0,asyncToGenerator.A)(function*(){const url=_this2.imageUrl();if(!url)return;_this2.errorKey.set(null);const img=new Image;img.crossOrigin="anonymous",img.decoding="async",img.src=url;try{yield img.decode()}catch{}_this2.working=img,_this2.crop.set(null),_this2.sourceUrl.set(url)})()}onCropChange(rect){this.crop.set(rect)}toggleCrop(){"crop"!==this.stage()?this.hasImage()&&this.openEdit():this.leaveCrop()}leaveCrop(){this.revokeSource(),this.working=null,this.sourceUrl.set(null),this.crop.set(null)}onDelete(){this.deleteImage.emit(),this.requestClose()}runSave(){if(this.busy()||!this.working)return;this.busy.set(!0);const img=this.working,rect=this.crop()??{x:0,y:0,width:1,height:1},sx=rect.x*img.naturalWidth,sy=rect.y*img.naturalHeight,sw=Math.max(1,rect.width*img.naturalWidth),sh=Math.max(1,rect.height*img.naturalHeight),targetW=Math.round(Math.min(sw,this.maxWidth())),targetH=Math.round(sh*(targetW/sw)),canvas=document.createElement("canvas");canvas.width=targetW,canvas.height=targetH;const ctx=canvas.getContext("2d");ctx?(ctx.imageSmoothingQuality="high",ctx.fillStyle="#ffffff",ctx.fillRect(0,0,targetW,targetH),ctx.drawImage(img,sx,sy,sw,sh,0,0,targetW,targetH),canvas.toBlob(blob=>{this.busy.set(!1),blob&&(this.save.emit(blob),this.requestClose())},"image/jpeg",this.quality())):this.busy.set(!1)}onOverlayClose(){this.activeOutput.emit(!1)}requestClose(){"overlay"===this.variant()?this.activeOutput.emit(!1):this.reset()}reset(){this.revokeSource(),this.working=null,this.sourceUrl.set(null),this.crop.set(null),this.busy.set(!1),this.errorKey.set(null),this.zoom.set(100)}revokeSource(){const url=this.sourceUrl();url&&URL.revokeObjectURL(url)}static ctorParameters=()=>[];static propDecorators={variant:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"variant",required:!1,transform:void 0}]}],active:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"active",required:!1,transform:void 0}]}],imageUrl:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"imageUrl",required:!1,transform:void 0}]}],aspectRatio:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"aspectRatio",required:!1,transform:void 0}]}],maxWidth:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"maxWidth",required:!1,transform:void 0}]}],quality:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"quality",required:!1,transform:void 0}]}],maxFileSizeMb:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"maxFileSizeMb",required:!1,transform:void 0}]}],headline:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"headline",required:!1,transform:void 0}]}],overlayDirection:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"overlayDirection",required:!1,transform:void 0}]}],overlayFitContent:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"overlayFitContent",required:!1,transform:void 0}]}],save:[{type:_debug_node_chunk.k7i,args:["save"]}],deleteImage:[{type:_debug_node_chunk.k7i,args:["deleteImage"]}],activeOutput:[{type:_debug_node_chunk.k7i,args:["activeOutput"]}],fileInput:[{type:core.ViewChild,args:["fileInput",{isSignal:!0}]}]}};UiImageEditorComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-image-editor",template:'\x3c!-- Body and footer are defined once and projected into either presentation. --\x3e\n<ng-template #bodyTpl>\n @if (errorKey()) {\n <p class="_error">{{ \'imageEditor.errors.\' + errorKey() | transloco }}</p>\n }\n\n @if (stage() === \'crop\') {\n <ui-image-editor-crop-box\n [src]="sourceUrl() ?? \'\'"\n [aspectRatio]="aspectRatio()"\n [zoom]="zoom()"\n (cropChange)="onCropChange($event)"\n ></ui-image-editor-crop-box>\n <ui-slider class="_zoom" [label]="\'imageEditor.zoom\' | transloco">\n <input\n ui-tag\n type="range"\n class="ui"\n [min]="20"\n [max]="100"\n [step]="1"\n [ngModel]="zoom()"\n (ngModelChange)="zoom.set(+$event)"\n />\n </ui-slider>\n } @else {\n <div class="_view">\n @if (hasImage()) {\n <img class="_current" [src]="imageUrl()" alt="" />\n } @else {\n <div class="_empty">\n <span class="ui-icon x3">image</span>\n <p>{{ \'imageEditor.empty\' | transloco }}</p>\n </div>\n }\n </div>\n }\n\n <input\n #fileInput\n type="file"\n [accept]="acceptAttr"\n hidden\n (change)="onFileSelected($event)"\n />\n</ng-template>\n\n<ng-template #footerTpl>\n <button\n class="ui _upload"\n type="button"\n [title]="\'imageEditor.replace\' | transloco"\n [attr.aria-label]="\'imageEditor.replace\' | transloco"\n (click)="openPicker()"\n >\n <span class="ui-icon">add_a_photo</span>\n </button>\n \x3c!-- The crop stage is entered AND left here (tickets#284), and this button\n is never `disabled`: pressing it used to switch it off under the very\n focus that pressed it, and a disabled element is not focusable — the\n keyboard lost its place in an editor whose crop box is operated by\n keyboard. So it stays reachable and says its state instead\n (usage.md, "Disabled controls and the keyboard"). --\x3e\n <button\n class="ui _crop"\n type="button"\n [title]="\'imageEditor.edit\' | transloco"\n [attr.aria-label]="\'imageEditor.edit\' | transloco"\n [attr.aria-pressed]="stage() === \'crop\'"\n [attr.aria-disabled]="canEdit() ? null : \'true\'"\n (click)="toggleCrop()"\n >\n <span class="ui-icon">crop</span>\n </button>\n <button\n class="ui _delete"\n type="button"\n [title]="\'actions.delete\' | transloco"\n [attr.aria-label]="\'actions.delete\' | transloco"\n [disabled]="!canDelete()"\n (click)="onDelete()"\n >\n <span class="ui-icon">delete</span>\n </button>\n <button\n class="ui _save"\n type="button"\n [title]="\'actions.save\' | transloco"\n [attr.aria-label]="\'actions.save\' | transloco"\n [disabled]="!canSave()"\n (click)="runSave()"\n >\n <span class="ui-icon">save</span>\n </button>\n</ng-template>\n\n@if (variant() === \'overlay\') {\n \x3c!-- viewportHeight: a sheet belongs to the browser window, not to the\n document. Without it the percentage heights are resolved against a\n transformed ancestor\'s box — inside a long page that stretches the sheet\n to the full document height and pushes header and footer out of sight. --\x3e\n <ui-layout-overlay\n [active]="active()"\n [maxWidth]="\'ms-5\'"\n [viewportHeight]="true"\n [fitContent]="overlayFitContent()"\n [direction]="overlayDirection()"\n (activeOutput)="onOverlayClose()"\n >\n <ui-layout-overlay-header\n overlay-header\n [headline]="headline() ?? (\'imageEditor.title\' | transloco)"\n (activeOutput)="onOverlayClose()"\n ></ui-layout-overlay-header>\n\n <div overlay-content class="_body">\n <ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>\n </div>\n\n <div overlay-footer class="_footer">\n <ng-container [ngTemplateOutlet]="footerTpl"></ng-container>\n </div>\n </ui-layout-overlay>\n} @else {\n <div class="_body">\n <ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>\n </div>\n <div class="_footer">\n <ng-container [ngTemplateOutlet]="footerTpl"></ng-container>\n </div>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,host:{"[class.embedded]":"variant() === 'embedded'"},imports:[fesm2022_forms.YN,_common_module_chunk.T3,ngneat_transloco.Kj,overlay_component.o,header_header_component.t,UiImageEditorCropBoxComponent,slider_component.H],styles:[image_editor_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiImageEditorComponent);const image_editor_component_stories={title:"Molecules/Image Editor",component:UiImageEditorComponent,decorators:[(0,dist.L4)({providers:[]}),(0,dist.Iz)({imports:[header_component.b,UiImageEditorComponent]})],argTypes:{aspectRatio:{control:{type:"range",min:.5,max:3,step:.05}},maxWidth:{control:"number"},quality:{control:{type:"range",min:.1,max:1,step:.05}},maxFileSizeMb:{control:"number"}},parameters:{docs:{canvas:{sourceState:"none"}}}},embeddedTemplate='\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="flex max-w-2xl flex-col gap-4 p-4">\n <ui-image-editor\n [imageUrl]="imageUrl"\n [aspectRatio]="aspectRatio"\n (save)="onSave($event)"\n (deleteImage)="onDelete()"\n ></ui-image-editor>\n @if (resultUrl) {\n <img class="w-[12rem] rounded" [src]="resultUrl" alt="" />\n }\n </section>\n',props=imageUrl=>({active:!1,imageUrl,resultUrl:null,onSave(blob){this.resultUrl=URL.createObjectURL(blob)},onDelete(){this.imageUrl=null}}),WithImage={render:args=>({props:{...props("assets/ui/images/800x600.png"),...args},template:embeddedTemplate})},PosterRatio={args:{aspectRatio:2/3},render:args=>({props:{...props("assets/ui/images/800x600.png"),...args},template:embeddedTemplate})},Empty={render:args=>({props:{...props(null),...args},template:embeddedTemplate})},Overlay={render:args=>({props:{...props("assets/ui/images/800x600.png"),...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="flex w-fit flex-col gap-4 p-4">\n <button class="ui" (click)="active = true">\n <span class="ui-icon">edit</span>\n </button>\n @if (resultUrl) {\n <img class="w-[12rem] rounded" [src]="resultUrl" alt="" />\n }\n </section>\n <ui-image-editor\n variant="overlay"\n [active]="active"\n [imageUrl]="imageUrl"\n [aspectRatio]="aspectRatio"\n (save)="onSave($event)"\n (deleteImage)="onDelete()"\n (activeOutput)="active = $event"\n ></ui-image-editor>\n'})},__namedExportsOrder=["WithImage","PosterRatio","Empty","Overlay"];WithImage.parameters={...WithImage.parameters,docs:{...WithImage.parameters?.docs,source:{originalSource:"{\n render: args => ({\n props: {\n ...props(uiMoleculeImageEditorMock),\n ...args\n },\n template: embeddedTemplate\n })\n}",...WithImage.parameters?.docs?.source}}},PosterRatio.parameters={...PosterRatio.parameters,docs:{...PosterRatio.parameters?.docs,source:{originalSource:"{\n args: {\n aspectRatio: 2 / 3\n },\n render: args => ({\n props: {\n ...props(uiMoleculeImageEditorMock),\n ...args\n },\n template: embeddedTemplate\n })\n}",...PosterRatio.parameters?.docs?.source}}},Empty.parameters={...Empty.parameters,docs:{...Empty.parameters?.docs,source:{originalSource:"{\n render: args => ({\n props: {\n ...props(null),\n ...args\n },\n template: embeddedTemplate\n })\n}",...Empty.parameters?.docs?.source}}},Overlay.parameters={...Overlay.parameters,docs:{...Overlay.parameters?.docs,source:{originalSource:"{\n render: args => ({\n props: {\n ...props(uiMoleculeImageEditorMock),\n ...args\n },\n template: overlayTemplate\n })\n}",...Overlay.parameters?.docs?.source}}}},"./libs/ui/src/lib/molecules/image-editor/crop-box/crop-box.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n display: block;\n width: 100%;\n}\n\n/* Centers the frame; clips the zoomed image to the stage. The padding leaves\n room for the edge handles (which straddle the image border) so they render\n fully square instead of being cut off at 100% zoom. */\n._stage {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n /* The image caps the height (max-height below); the stage adds padding on top\n so it must NOT also cap at 60vh, or the padding gets clipped and the edge\n handles are cut off. */\n padding: calc(var(--ui-spacer) * 0.375);\n overflow: hidden;\n -webkit-user-select: none;\n user-select: none;\n touch-action: none;\n}\n\n/* Wraps the image and crop box so both scale together on zoom. Sizes to the\n image, and is the positioning context for the absolutely-placed crop box. */\n._frame {\n position: relative;\n display: inline-block;\n line-height: 0;\n transform-origin: center;\n}\n\n._image {\n display: block;\n max-width: 100%;\n max-height: 60vh;\n object-fit: contain;\n /* Honor EXIF orientation of camera photos. */\n image-orientation: from-image;\n -webkit-user-drag: none;\n}\n\n/* The crop rectangle. The huge spread box-shadow dims everything outside it. */\n._crop {\n position: absolute;\n box-sizing: border-box;\n border: var(--ui-border-width) solid var(--ui-c-static);\n box-shadow: 0 0 0 100vmax rgba(var(--ui-c-background-value), 0.6);\n cursor: move;\n touch-action: none;\n\n /* The crop is a tab stop (arrows pan, Shift+arrows resize). The ring is\n the house focus colour ON TOP of the backdrop shadow — the shadow list\n keeps the dimmed surround, the outline says where the keys will land. */\n &:focus-visible {\n outline: calc(var(--ui-border-width) * 2) solid var(--ui-c-focus);\n outline-offset: calc(var(--ui-border-width) * -1);\n }\n}\n\n/* Rule-of-thirds guides (decorative, non-interactive). */\n._crop::before,\n._crop::after {\n content: '';\n position: absolute;\n pointer-events: none;\n opacity: 0.4;\n}\n._crop::before {\n top: 0;\n bottom: 0;\n left: 33.333%;\n right: 33.333%;\n border-left: 1px solid var(--ui-c-static);\n border-right: 1px solid var(--ui-c-static);\n}\n._crop::after {\n left: 0;\n right: 0;\n top: 33.333%;\n bottom: 33.333%;\n border-top: 1px solid var(--ui-c-static);\n border-bottom: 1px solid var(--ui-c-static);\n}\n\n._handle {\n position: absolute;\n width: calc(var(--ui-spacer) * 0.5);\n height: calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-static);\n border: 1px solid rgba(var(--ui-c-background-value), 0.8);\n touch-action: none;\n}\n\n._handle._nw {\n top: calc(var(--ui-spacer) * -0.25);\n left: calc(var(--ui-spacer) * -0.25);\n cursor: nwse-resize;\n}\n._handle._ne {\n top: calc(var(--ui-spacer) * -0.25);\n right: calc(var(--ui-spacer) * -0.25);\n cursor: nesw-resize;\n}\n._handle._sw {\n bottom: calc(var(--ui-spacer) * -0.25);\n left: calc(var(--ui-spacer) * -0.25);\n cursor: nesw-resize;\n}\n._handle._se {\n bottom: calc(var(--ui-spacer) * -0.25);\n right: calc(var(--ui-spacer) * -0.25);\n cursor: nwse-resize;\n}\n\n/* Edge midpoint handles. */\n._handle._n {\n top: calc(var(--ui-spacer) * -0.25);\n left: 50%;\n transform: translateX(-50%);\n cursor: ns-resize;\n}\n._handle._s {\n bottom: calc(var(--ui-spacer) * -0.25);\n left: 50%;\n transform: translateX(-50%);\n cursor: ns-resize;\n}\n._handle._w {\n left: calc(var(--ui-spacer) * -0.25);\n top: 50%;\n transform: translateY(-50%);\n cursor: ew-resize;\n}\n._handle._e {\n right: calc(var(--ui-spacer) * -0.25);\n top: 50%;\n transform: translateY(-50%);\n cursor: ew-resize;\n}\n\n/* Centre grip: pans the whole box; rounded to read as a move target. */\n._handle._center {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 50%;\n cursor: move;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/molecules/image-editor/image-editor.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n display: contents;\n}\n\n/* Embedded variant: a normal block in the document flow. It fills the width it\n is given — the maximum width is set by the consumer from outside; the\n minimum emerges from the footer button row (flex-wrap as safety net). */\n:host(.embedded) {\n display: flex;\n flex-direction: column;\n gap: calc(var(--ui-spacer) * 0.5);\n width: 100%;\n}\n\n/* Embedded: no overlay edge to align to — the buttons sit centered. */\n:host(.embedded) ._footer {\n justify-content: center;\n}\n\n._body {\n display: flex;\n flex-direction: column;\n gap: calc(var(--ui-spacer) * 0.5);\n width: 100%;\n}\n\n/* Rejection notice (wrong type / too big) — filled warn box like the app errors. */\n._error {\n margin: 0;\n padding: calc(var(--ui-spacer) * 0.25) calc(var(--ui-spacer) * 0.5);\n background-color: var(--ui-c-warn);\n color: var(--ui-c-static);\n border-radius: var(--ui-border-radius);\n}\n\n/* View mode: current cover or an empty placeholder. */\n._view {\n display: flex;\n justify-content: center;\n}\n\n._current {\n display: block;\n max-width: 100%;\n max-height: 60vh;\n object-fit: contain;\n border-radius: var(--ui-border-radius);\n image-orientation: from-image;\n}\n\n._empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n /* Centred in a placeholder area that keeps some surface: without a minimum\n the editor collapses to a flat strip when there is no image yet, which\n looks broken next to the same editor holding a picture. Consumers can\n give it a concrete shape (e.g. an aspect-ratio) on top of this. */\n justify-content: center;\n min-height: 16rem;\n gap: calc(var(--ui-spacer) * 0.25);\n padding: calc(var(--ui-spacer) * 2);\n color: var(--ui-c-default);\n opacity: 0.6;\n}\n\n._empty p {\n margin: 0;\n}\n\n/* Footer button row, right-aligned like the overlay Save example. */\n._footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: calc(var(--ui-spacer) * 0.5);\n width: 100%;\n}\n\n._footer button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Keep the grey surface identical when disabled (the base :disabled style swaps\n it for the page background); the disabled state is signalled by dimming just\n the icon, in its normal colour.\n The base :disabled rule pairs that surface swap with `color: --ui-c-fourthly`\n for the text. Restoring only the background — to the same --ui-c-fourthly the\n grey surface uses — would leave the icon tinted the exact colour it sits on,\n so it disappears (tickets#247). Restore the icon's normal colour as well; the\n per-action tints below (delete red, save green while active) still override\n it, and `opacity` alone carries the \"disabled\" signal. */\n/* A control that may not act right now is muted, not switched off — the\n crop toggle carries `aria-disabled` instead of `disabled` so the keyboard\n keeps its place on it (tickets#284). Both spellings look the same, or the\n rule would cost the reader a cue. */\n._footer button:disabled,\n._footer button[aria-disabled='true'] {\n background-color: var(--ui-c-fourthly);\n color: var(--ui-c-default);\n}\n._footer button:disabled .ui-icon,\n._footer button[aria-disabled='true'] .ui-icon {\n opacity: 0.4;\n}\n\n/* Grey buttons (the base `.ui` surface); only delete and save are tinted per\n action using the shared design tokens — upload, crop and cancel stay neutral. */\n._footer ._delete .ui-icon {\n color: var(--ui-c-error);\n}\n/* Green only while the save action is available; disabled falls back to the\n neutral (dimmed) icon colour. */\n._footer ._save:not(:disabled) .ui-icon {\n color: var(--ui-c-success);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|
package/storybook/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1787695640950,"userSince":1772191366759,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"knownPackages":{"testPackages":{"@ngneat/spectator":"22.1.0","@playwright/test":"1.61.1","@vitest/coverage-v8":"4.1.10","vitest":"4.1.10"},"stylingPackages":{"tailwindcss":"^4.3.2"}},"hasRouterPackage":true,"monorepo":"Nx","packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/angular","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/angular","portableStoriesFileCount":0,"applicationFileCount":6,"storybookVersion":"10.4.6","storybookVersionSpecifier":"^10.4.6","language":"typescript","storybookPackages":{"@nx/storybook":{"version":"23.0.1"},"@storybook/angular":{"version":"10.4.6"},"eslint-plugin-storybook":{"version":"10.4.6"},"storybook":{}},"addons":{"@storybook/addon-docs":{"version":"10.4.6"}},"packageJsonType":"unknown"}
|
package/storybook/{runtime~main.be00d4a7.iframe.bundle.js → runtime~main.52ba2f02.iframe.bundle.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises),[])),__webpack_require__.u=chunkId=>(({128:"home-overview-mdx",166:"forms-autofocus-docs-mdx",365:"layout-spinner-docs-mdx",943:"examples-image-grid-slider-docs-mdx",947:"layout-splitter-docs-mdx",977:"forms-switch-docs-mdx",1043:"layout-spinner-spinner-component-stories",1165:"styling-tags-tags-component-stories",1296:"examples-docs-mdx",1322:"atoms-_electrons-form-error-message-form-error-message-component-stories",1327:"cdk-components-drag-and-drop-splitter-docs-mdx",1365:"_external-mwork-music-player-mwork-music-player-stories",1461:"atoms-image-slider-image-slider-component-stories",1481:"examples-layout-docs-mdx",1686:"forms-input-input-component-stories",1809:"atoms-clock-clock-component-stories",1838:"styling-colors-docs-mdx",1860:"forms-autocomplete-autocomplete-component-stories",1927:"styling-tags-docs-mdx",1954:"atoms-mosaic-docs-mdx",1977:"styling-forms-forms-component-stories",2006:"atoms-background-docs-mdx",2074:"atoms-_electrons-form-error-message-docs-mdx",2168:"layout-overlay-docs-mdx",2193:"atoms-qr-code-docs-mdx",2379:"_external-mwork-basic-interpreter-mwork-basic-interpreter-stories",2425:"atoms-chart-chart-component-stories",2831:"atoms-mosaic-mosaic-component-stories",2960:"atoms-lang-selector-docs-mdx",3007:"atoms-copy-value-docs-mdx",3045:"atoms-placeholder-placeholder-component-stories",3048:"forms-switch-switch-component-stories",3073:"layout-top-scroll-bottom-docs-mdx",3143:"home-tips-mdx",3146:"atoms-image-grid-docs-mdx",3151:"layout-media-screen-docs-mdx",3190:"molecules-image-editor-docs-mdx",3260:"_external-mwork-music-player-docs-mdx",3277:"atoms-lang-selector-lang-selector-component-stories",3338:"styling-ui-tags-docs-mdx",3550:"atoms-reader-doc-docs-mdx",3651:"layout-media-screen-media-screen-component-stories",3678:"forms-checkbox-checkbox-component-stories",3685:"atoms-rating-rating-component-stories",3752:"_external-mwork-basic-interpreter-docs-mdx",3767:"home-guide-mdx",3837:"layout-main-docs-mdx",3842:"home-usage-mdx",3853:"atoms-copy-value-copy-value-component-stories",3857:"styling-forms-docs-mdx",3925:"atoms-thumb-thumb-component-stories",3999:"atoms-reader-doc-reader-doc-component-stories",4067:"atoms-text-animate-docs-mdx",4271:"cdk-components-drag-and-drop-splitter-splitter-component-stories",4320:"atoms-buzzer-docs-mdx",4365:"atoms-qr-code-qr-code-component-stories",4447:"atoms-timer-docs-mdx",4713:"atoms-typewriter-typewriter-component-stories",4806:"atoms-typewriter-docs-mdx",4855:"atoms-background-background-component-stories",4939:"forms-input-docs-mdx",4947:"atoms-card-card-component-stories",5084:"atoms-clock-docs-mdx",5233:"styling-ui-tags-ui-tags-component-stories",5370:"atoms-thumb-docs-mdx",5493:"examples-table-edit-focus-docs-mdx",5684:"examples-layout-layout-stories",5995:"styling-colors-colors-component-stories",6189:"atoms-timer-timer-component-stories",6203:"atoms-placeholder-docs-mdx",6212:"cdk-components-table-table-component-stories",6252:"forms-slider-docs-mdx",6331:"layout-splitter-splitter-component-stories",6354:"forms-validators-validators-component-stories",6501:"_external-mwork-banner-docs-mdx",6569:"cdk-components-table-docs-mdx",6659:"layout-overlay-overlay-component-stories",6768:"examples-transloco-docs-mdx",6892:"layout-tabs-docs-mdx",6922:"forms-slider-slider-component-stories",6978:"atoms-chart-docs-mdx",7419:"atoms-buzzer-buzzer-component-stories",7586:"forms-validators-docs-mdx",7600:"styling-layers-docs-mdx",7653:"styling-icons-icons-component-stories",7683:"layout-main-main-component-stories",7819:"atoms-rating-docs-mdx",7837:"forms-autocomplete-docs-mdx",7867:"_external-mwork-banner-mwork-banner-stories",7877:"atoms-text-animate-text-animate-component-stories",7893:"styling-css-variables-docs-mdx",7947:"atoms-image-slider-docs-mdx",8039:"atoms-image-grid-image-grid-component-stories",8092:"styling-icons-docs-mdx",8108:"forms-checkbox-docs-mdx",8180:"molecules-image-editor-image-editor-component-stories",8753:"layout-tabs-tabs-component-stories",8852:"atoms-card-docs-mdx",8938:"examples-image-grid-slider-image-grid-slider-stories",9042:"layout-overlay-header-docs-mdx",9044:"examples-transloco-transloco-component-stories",9217:"atoms-barcode-barcode-component-stories",9236:"forms-autofocus-autofocus-stories",9240:"layout-overlay-header-header-component-stories",9475:"layout-nav-nav-component-stories",9652:"examples-burger-menu-stories",9653:"layout-nav-docs-mdx",9779:"layout-top-scroll-bottom-top-scroll-bottom-component-stories",9836:"examples-table-edit-focus-table-edit-focus-stories",9918:"atoms-barcode-docs-mdx"}[chunkId]||chunkId)+"."+{128:"af727f5b",166:"39611362",365:"4be572c0",660:"18f0458e",813:"805c1e5f",871:"428deceb",943:"9e38157e",947:"bf161b39",973:"67f44bb0",977:"9d58a341",1043:"ab8245c6",1165:"7a64bd20",1183:"da25800b",1255:"2abec879",1296:"3111f2c6",1322:"7f749acc",1327:"f12088fd",1365:"08fbf651",1461:"484b9c41",1481:"bbacdfd2",1516:"52d2dae7",1686:"609db3f0",1809:"d1464731",1838:"95c504e4",1860:"443544e0",1927:"23ab2316",1954:"1aebfbdf",1977:"8af76278",2006:"4f102c17",2033:"c705a7ce",2074:"5b9e78fe",2089:"32694489",2096:"431fc8f5",2127:"29f153d2",2168:"823351e0",2193:"4202568d",2228:"77650ef1",2249:"6e6782ab",2379:"3252a9b8",2425:"5247b7cb",2639:"29baa8af",2831:"0a6bc043",2844:"c9f47654",2960:"a327a27f",2971:"edb202b4",3007:"f404dcd2",3045:"bc221534",3048:"bf67d7c9",3073:"ddc061f8",3143:"26df81d8",3146:"18b4df2a",3151:"b0ca9a06",3190:"119ea12a",3260:"6f943768",3277:"41d7efd1",3338:"8f75631d",3550:"0688c3b9",3651:"7941c064",3678:"d45b4f0d",3685:"982db47d",3752:"03c6205c",3767:"1a176b15",3837:"4c9208c5",3842:"b908934f",3853:"58d3956a",3857:"943e72f2",3899:"55560628",3925:"06f51d03",3968:"69b812e4",3999:"a6fec57d",4067:"05e1baf4",4255:"eeeaf087",4271:"286b5171",4320:"23eb1913",4365:"5018e2b0",4425:"368129b3",4447:"6f724cc8",4476:"f8e4115f",4495:"d1c8cc8d",4555:"066c242d",4713:"4fefc019",4806:"3b1088c0",4855:"b6b50c0c",4935:"8959522b",4939:"72d0e99a",4947:"065b34e9",5084:"501e6780",5233:"2ec3109b",5370:"2143ad01",5493:"3c0d1611",5568:"c6172f92",5684:"05cd891f",5944:"810cb147",5995:"58031f40",6115:"7f1470ef",6169:"eaeed989",6189:"9bee1037",6202:"b8ca0e90",6203:"cd2f3976",6212:"db9212fd",6252:"120cefc6",6331:"46b8b112",6354:"9525f97b",6501:"0d5549a0",6569:"cc2c11e7",6659:"01f6cd84",6768:"97df7022",6824:"f5eb8bb7",6892:"89d83606",6922:"058fb9b1",6978:"204609d4",7316:"5b024e94",7419:"13ee130d",7586:"ebb47a43",7600:"5039dc45",7653:"2dd8c6f8",7683:"788c0c54",7749:"2a853795",7819:"32fa4104",7837:"09beba1b",7867:"d44f6917",7877:"8041c0f1",7893:"48afb4f3",7947:"c616bb37",8039:"a0a92d9e",8051:"719eb790",8092:"e1001dfd",8108:"74036eb7",8180:"56467f17",8448:"1baeb046",8753:"8602cefa",8819:"220ca21d",8852:"7d276114",8938:"028c8c2b",9042:"394033ca",9044:"5baea2e2",9045:"a50616e9",9217:"dc462559",9236:"2e94d887",9240:"5eaef192",9475:"766738fc",9560:"668052f3",9652:"0a083a75",9653:"cc919f94",9779:"9ee7055f",9836:"c79e214a",9850:"28367747",9918:"b74c501b",9946:"36014b4e"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="moja-work:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","moja-work:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach(fn=>fn(event)),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}},"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkmoja_work=self.webpackChunkmoja_work||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
|
|
1
|
+
(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(!1&priority||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();void 0!==r&&(result=r)}}return result}priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises),[])),__webpack_require__.u=chunkId=>(({128:"home-overview-mdx",166:"forms-autofocus-docs-mdx",365:"layout-spinner-docs-mdx",943:"examples-image-grid-slider-docs-mdx",947:"layout-splitter-docs-mdx",977:"forms-switch-docs-mdx",1043:"layout-spinner-spinner-component-stories",1165:"styling-tags-tags-component-stories",1296:"examples-docs-mdx",1322:"atoms-_electrons-form-error-message-form-error-message-component-stories",1327:"cdk-components-drag-and-drop-splitter-docs-mdx",1365:"_external-mwork-music-player-mwork-music-player-stories",1461:"atoms-image-slider-image-slider-component-stories",1481:"examples-layout-docs-mdx",1686:"forms-input-input-component-stories",1809:"atoms-clock-clock-component-stories",1838:"styling-colors-docs-mdx",1860:"forms-autocomplete-autocomplete-component-stories",1927:"styling-tags-docs-mdx",1954:"atoms-mosaic-docs-mdx",1977:"styling-forms-forms-component-stories",2006:"atoms-background-docs-mdx",2074:"atoms-_electrons-form-error-message-docs-mdx",2168:"layout-overlay-docs-mdx",2193:"atoms-qr-code-docs-mdx",2379:"_external-mwork-basic-interpreter-mwork-basic-interpreter-stories",2425:"atoms-chart-chart-component-stories",2831:"atoms-mosaic-mosaic-component-stories",2960:"atoms-lang-selector-docs-mdx",3007:"atoms-copy-value-docs-mdx",3045:"atoms-placeholder-placeholder-component-stories",3048:"forms-switch-switch-component-stories",3073:"layout-top-scroll-bottom-docs-mdx",3143:"home-tips-mdx",3146:"atoms-image-grid-docs-mdx",3151:"layout-media-screen-docs-mdx",3190:"molecules-image-editor-docs-mdx",3260:"_external-mwork-music-player-docs-mdx",3277:"atoms-lang-selector-lang-selector-component-stories",3338:"styling-ui-tags-docs-mdx",3550:"atoms-reader-doc-docs-mdx",3651:"layout-media-screen-media-screen-component-stories",3678:"forms-checkbox-checkbox-component-stories",3685:"atoms-rating-rating-component-stories",3752:"_external-mwork-basic-interpreter-docs-mdx",3767:"home-guide-mdx",3837:"layout-main-docs-mdx",3842:"home-usage-mdx",3853:"atoms-copy-value-copy-value-component-stories",3857:"styling-forms-docs-mdx",3925:"atoms-thumb-thumb-component-stories",3999:"atoms-reader-doc-reader-doc-component-stories",4067:"atoms-text-animate-docs-mdx",4271:"cdk-components-drag-and-drop-splitter-splitter-component-stories",4320:"atoms-buzzer-docs-mdx",4365:"atoms-qr-code-qr-code-component-stories",4447:"atoms-timer-docs-mdx",4713:"atoms-typewriter-typewriter-component-stories",4806:"atoms-typewriter-docs-mdx",4855:"atoms-background-background-component-stories",4939:"forms-input-docs-mdx",4947:"atoms-card-card-component-stories",5084:"atoms-clock-docs-mdx",5233:"styling-ui-tags-ui-tags-component-stories",5370:"atoms-thumb-docs-mdx",5493:"examples-table-edit-focus-docs-mdx",5684:"examples-layout-layout-stories",5995:"styling-colors-colors-component-stories",6189:"atoms-timer-timer-component-stories",6203:"atoms-placeholder-docs-mdx",6212:"cdk-components-table-table-component-stories",6252:"forms-slider-docs-mdx",6331:"layout-splitter-splitter-component-stories",6354:"forms-validators-validators-component-stories",6501:"_external-mwork-banner-docs-mdx",6569:"cdk-components-table-docs-mdx",6659:"layout-overlay-overlay-component-stories",6768:"examples-transloco-docs-mdx",6892:"layout-tabs-docs-mdx",6922:"forms-slider-slider-component-stories",6978:"atoms-chart-docs-mdx",7419:"atoms-buzzer-buzzer-component-stories",7586:"forms-validators-docs-mdx",7600:"styling-layers-docs-mdx",7653:"styling-icons-icons-component-stories",7683:"layout-main-main-component-stories",7819:"atoms-rating-docs-mdx",7837:"forms-autocomplete-docs-mdx",7867:"_external-mwork-banner-mwork-banner-stories",7877:"atoms-text-animate-text-animate-component-stories",7893:"styling-css-variables-docs-mdx",7947:"atoms-image-slider-docs-mdx",8039:"atoms-image-grid-image-grid-component-stories",8092:"styling-icons-docs-mdx",8108:"forms-checkbox-docs-mdx",8180:"molecules-image-editor-image-editor-component-stories",8753:"layout-tabs-tabs-component-stories",8852:"atoms-card-docs-mdx",8938:"examples-image-grid-slider-image-grid-slider-stories",9042:"layout-overlay-header-docs-mdx",9044:"examples-transloco-transloco-component-stories",9217:"atoms-barcode-barcode-component-stories",9236:"forms-autofocus-autofocus-stories",9240:"layout-overlay-header-header-component-stories",9475:"layout-nav-nav-component-stories",9652:"examples-burger-menu-stories",9653:"layout-nav-docs-mdx",9779:"layout-top-scroll-bottom-top-scroll-bottom-component-stories",9836:"examples-table-edit-focus-table-edit-focus-stories",9918:"atoms-barcode-docs-mdx"}[chunkId]||chunkId)+"."+{128:"0d4ede52",166:"39611362",365:"4be572c0",660:"18f0458e",813:"805c1e5f",871:"428deceb",943:"9e38157e",947:"bf161b39",973:"67f44bb0",977:"9d58a341",1043:"ab8245c6",1165:"7a64bd20",1183:"da25800b",1255:"2abec879",1296:"3111f2c6",1322:"7f749acc",1327:"f12088fd",1365:"08fbf651",1461:"484b9c41",1481:"bbacdfd2",1516:"52d2dae7",1686:"609db3f0",1809:"d1464731",1838:"95c504e4",1860:"443544e0",1927:"23ab2316",1954:"1aebfbdf",1977:"8af76278",2006:"4f102c17",2033:"c705a7ce",2074:"5b9e78fe",2089:"32694489",2096:"431fc8f5",2127:"29f153d2",2168:"823351e0",2193:"4202568d",2228:"77650ef1",2249:"6e6782ab",2379:"3252a9b8",2425:"5247b7cb",2639:"29baa8af",2831:"0a6bc043",2844:"c9f47654",2960:"a327a27f",2971:"edb202b4",3007:"f404dcd2",3045:"bc221534",3048:"bf67d7c9",3073:"ddc061f8",3143:"26df81d8",3146:"18b4df2a",3151:"b0ca9a06",3190:"805dcd5a",3260:"6f943768",3277:"41d7efd1",3338:"8f75631d",3550:"0688c3b9",3651:"7941c064",3678:"d45b4f0d",3685:"982db47d",3752:"03c6205c",3767:"1a176b15",3837:"4c9208c5",3842:"fc05feec",3853:"58d3956a",3857:"943e72f2",3899:"55560628",3925:"06f51d03",3968:"69b812e4",3999:"a6fec57d",4067:"05e1baf4",4255:"eeeaf087",4271:"286b5171",4320:"23eb1913",4365:"5018e2b0",4425:"368129b3",4447:"6f724cc8",4476:"f8e4115f",4495:"d1c8cc8d",4555:"251b232c",4713:"4fefc019",4806:"3b1088c0",4855:"b6b50c0c",4935:"8959522b",4939:"72d0e99a",4947:"065b34e9",5084:"501e6780",5233:"2ec3109b",5370:"2143ad01",5493:"3c0d1611",5568:"c6172f92",5684:"05cd891f",5944:"810cb147",5995:"58031f40",6115:"7f1470ef",6169:"eaeed989",6189:"9bee1037",6202:"b8ca0e90",6203:"cd2f3976",6212:"db9212fd",6252:"120cefc6",6331:"46b8b112",6354:"9525f97b",6501:"0d5549a0",6569:"cc2c11e7",6659:"01f6cd84",6768:"97df7022",6824:"f5eb8bb7",6892:"89d83606",6922:"058fb9b1",6978:"204609d4",7316:"5b024e94",7419:"13ee130d",7586:"ebb47a43",7600:"a563260e",7653:"2dd8c6f8",7683:"788c0c54",7749:"2a853795",7819:"32fa4104",7837:"09beba1b",7867:"d44f6917",7877:"8041c0f1",7893:"48afb4f3",7947:"c616bb37",8039:"a0a92d9e",8051:"719eb790",8092:"e1001dfd",8108:"74036eb7",8180:"fbfeff1b",8448:"1baeb046",8753:"8602cefa",8819:"220ca21d",8852:"7d276114",8938:"028c8c2b",9042:"394033ca",9044:"5baea2e2",9045:"a50616e9",9217:"dc462559",9236:"2e94d887",9240:"5eaef192",9475:"766738fc",9560:"668052f3",9652:"0a083a75",9653:"cc919f94",9779:"9ee7055f",9836:"c79e214a",9850:"28367747",9918:"b74c501b",9946:"36014b4e"}[chunkId]+".iframe.bundle.js"),__webpack_require__.miniCssF=chunkId=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")=="moja-work:"+key){script=s;break}}script||(needAttach=!0,(script=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&script.setAttribute("nonce",__webpack_require__.nc),script.setAttribute("data-webpack","moja-work:"+key),script.src=url),inProgress[url]=[done];var onScriptComplete=(prev,event)=>{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach(fn=>fn(event)),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}},"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunkmoja_work=self.webpackChunkmoja_work||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.nc=void 0})();
|
|
@@ -1 +1 @@
|
|
|
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"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without that line Tailwind declares its four layers first and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"})," lands\nafter ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"utilities"})," — which means above it, and the utilities lose again. The\nline is the whole migration for a Tailwind app."]}),"\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
|
+
"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)}}}]);
|
package/storybook/version.json
CHANGED
package/version.json
CHANGED