@tmorrow/cre8-wc 2.0.7 → 2.0.8
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/a2ui/catalog +5 -5
- package/a2ui/catalog-kg.json +156 -20
- package/a2ui/catalog.json +393 -34
- package/a2ui/catalog.svg +2445 -2445
- package/a2ui/examples/compound-families.json +298 -0
- package/a2ui/examples/llm-observability.json +678 -650
- package/a2ui/generate-catalog.mjs +116 -3
- package/a2ui/inert-props.json +32 -0
- package/a2ui/render-audit.mjs +294 -0
- package/a2ui/renderer.d.ts +2 -1
- package/a2ui/renderer.js +1 -1
- package/a2ui/renderer.ts +1 -1
- package/a2ui/smoke-test.mjs +3 -3
- package/a2ui/stream/diff-test.mjs +299 -0
- package/a2ui/stream/diff.d.ts +28 -0
- package/a2ui/stream/diff.js +130 -0
- package/a2ui/stream/diff.ts +145 -0
- package/a2ui/stream/index.d.ts +11 -0
- package/a2ui/stream/index.js +11 -0
- package/a2ui/stream/index.ts +43 -0
- package/a2ui/stream/model.d.ts +66 -0
- package/a2ui/stream/model.js +429 -0
- package/a2ui/stream/model.ts +472 -0
- package/a2ui/stream/pointer.d.ts +34 -0
- package/a2ui/stream/pointer.js +146 -0
- package/a2ui/stream/pointer.ts +147 -0
- package/a2ui/stream/renderer.d.ts +51 -0
- package/a2ui/stream/renderer.js +282 -0
- package/a2ui/stream/renderer.ts +291 -0
- package/a2ui/stream/stream-test.mjs +592 -0
- package/a2ui/stream/types.d.ts +173 -0
- package/a2ui/stream/types.js +17 -0
- package/a2ui/stream/types.ts +127 -0
- package/cdn/cre8-wc.esm.js +3527 -3226
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +289 -289
- package/cdn/cre8-wc.min.js.map +1 -1
- package/dist/assets/{Changelog-Documentation-BguNswiM.js → Changelog-Documentation-CeOetLxK.js} +1 -1
- package/dist/assets/{Code-Guidelines-BM3dZyzL.js → Code-Guidelines-BjdezAjj.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-C4AEGNk3.js → Color-6AOWCN3U-DPFGZitI.js} +1 -1
- package/dist/assets/{Contributing-Guidelines-DZURVehh.js → Contributing-Guidelines-B1M2V1hW.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-DeZmCI9u.js → DocsRenderer-JROSPFPF-BBy8KWNl.js} +1 -1
- package/dist/assets/{Tokens-Documentation-ZecGbtQg.js → Tokens-Documentation-CdTxFDLe.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-2Hfrkir-.js → WithTooltip-7X4HQR7L-DZzTNMQ7.js} +1 -1
- package/dist/assets/{accordion-item.stories-D-MjrX5G.js → accordion-item.stories-Bl26JlHp.js} +1 -9
- package/dist/assets/{accordion.stories-icgNa1dl.js → accordion.stories-DjoLApQw.js} +3 -11
- package/dist/assets/{alert.stories-BzDaXtj-.js → alert.stories-pO1y3YCQ.js} +15 -31
- package/dist/assets/{badge-C5wOWgyg.js → badge-BTxW3bN2.js} +3 -11
- package/dist/assets/{badge.stories-5GfB4jVI.js → badge.stories-vqh63RJ2.js} +1 -1
- package/dist/assets/{band.stories-DhXaP_kL.js → band.stories-CjKRppSb.js} +1 -9
- package/dist/assets/{blocks-DhUVut8Z.js → blocks-1be_-L6v.js} +5 -5
- package/dist/assets/{breadcrumbs.stories-CrPUBVk1.js → breadcrumbs.stories-Doyfy3V9.js} +2 -18
- package/dist/assets/{button-CJL8yzAT.js → button-CgaWukz0.js} +1 -9
- package/dist/assets/{button-group-BgwgtSFC.js → button-group-G7qN4MwM.js} +1 -9
- package/dist/assets/{button-group.stories-W-07gO63.js → button-group.stories-cL3Kay6M.js} +1 -1
- package/dist/assets/{button.stories-BPzJ-sCv.js → button.stories-C9HSpxWb.js} +6 -6
- package/dist/assets/{card.stories-mlFGY2Xn.js → card.stories-BbU8YymD.js} +3 -11
- package/dist/assets/{chart.stories-C8yuHHeK.js → chart.stories-BL4FxIA_.js} +1 -1
- package/dist/assets/{checkbox-field-item-iHcdmTNw.js → checkbox-field-item-DIMHcWM0.js} +1 -9
- package/dist/assets/{checkbox-field-item.stories-D1aVLDXn.js → checkbox-field-item.stories-XbB4x_lO.js} +1 -1
- package/dist/assets/{checkbox-field.stories-BoVB2jCx.js → checkbox-field.stories-YnqFUI4K.js} +2 -10
- package/dist/assets/{cre8-element-DfmMtHJO.js → cre8-element-B35i4Lyg.js} +1 -1
- package/dist/assets/{cre8-form-element-bQpK8UYN.js → cre8-form-element-Cfc5VeYV.js} +1 -1
- package/dist/assets/{danger-button.stories-Cb4ljnhQ.js → danger-button.stories-xh25hmfd.js} +1 -9
- package/dist/assets/{date-picker.stories-Cje3qk8D.js → date-picker.stories-DD_ctzEF.js} +1 -49
- package/dist/assets/{divider-B_PXBGWD.js → divider-xZ2KARHf.js} +2 -10
- package/dist/assets/{divider.stories-CtfeBqVV.js → divider.stories-Bk9oF-OV.js} +1 -1
- package/dist/assets/{dropdown-Cgwne34I.js → dropdown-BEP5x3CW.js} +6 -22
- package/dist/assets/{dropdown-item.stories-pXkDLRuv.js → dropdown-item.stories-Iaw_UrEP.js} +1 -1
- package/dist/assets/{dropdown.stories-DZnmHieY.js → dropdown.stories-B0OlKD7h.js} +1 -1
- package/dist/assets/{example-drug-card.stories-DTzLXTFx.js → example-drug-card.stories-Bp5JIeE_.js} +1 -1
- package/dist/assets/{f-po-C2WpbOFJ.js → f-po-BdPzDRD-.js} +1 -1
- package/dist/assets/{feature.stories-DffXdJch.js → feature.stories-DYE1Js70.js} +1 -9
- package/dist/assets/{field-DzYRqQb2.js → field-BpUYyRW1.js} +1 -9
- package/dist/assets/{field-note-DKXZiXLU.js → field-note-fccBckVl.js} +3 -11
- package/dist/assets/{field-note.stories-DS_0bQul.js → field-note.stories-BH9AZMbF.js} +1 -1
- package/dist/assets/{field.stories-BvXn0oG6.js → field.stories-BQPtmziK.js} +1 -1
- package/dist/assets/{footer.stories-C3ZibisU.js → footer.stories-DCWEciqD.js} +1 -9
- package/dist/assets/{form-example.stories-C-TuOeF2.js → form-example.stories-9IDC0AgX.js} +1 -1
- package/dist/assets/{formatter-L2YTDE3Q-CJVnxOUW.js → formatter-L2YTDE3Q-B9u1AOWn.js} +1 -1
- package/dist/assets/{global-nav-item-xQL7wVjY.js → global-nav-item-T4htN-yO.js} +6 -14
- package/dist/assets/{global-nav-item.stories-Dp9TE3aR.js → global-nav-item.stories-2dWRfCXv.js} +1 -1
- package/dist/assets/{global-nav.stories-B5Nk8JZ0.js → global-nav.stories-Fh1gScqg.js} +2 -10
- package/dist/assets/{grid-DYgnZBsd.js → grid-C5CKMXNe.js} +3 -19
- package/dist/assets/{grid.stories-BFiXTq2C.js → grid.stories-BLmCNdeA.js} +1 -1
- package/dist/assets/{header.stories-D1f7xhjV.js → header.stories-BkDrjJtj.js} +1 -9
- package/dist/assets/{heading-485Jz7JZ.js → heading-Dbka33DK.js} +2 -10
- package/dist/assets/{heading.stories-gPF_SmTc.js → heading.stories-Be40_bmG.js} +1 -1
- package/dist/assets/{hero.stories-BHlFNdvF.js → hero.stories-vRu7PZG9.js} +1 -9
- package/dist/assets/{icon-DeTLDzTS.js → icon-ChfRWXWy.js} +2 -10
- package/dist/assets/{icon-description-o-YaiEjK.js → icon-description-BBSwDykJ.js} +1 -1
- package/dist/assets/{icon-description.stories-BdPRvEwe.js → icon-description.stories-Cg6ekOme.js} +1 -1
- package/dist/assets/{icon.stories-BxWpqxT5.js → icon.stories-Cj4U7L5G.js} +1 -1
- package/dist/assets/if-defined-Bxnzk64Q.js +1 -0
- package/dist/assets/{iframe-dHvya7sk.js → iframe-BNJP6ovU.js} +35 -35
- package/dist/assets/{inline-alert.stories-FH0bQ0jh.js → inline-alert.stories-CygBYI02.js} +1 -9
- package/dist/assets/{layout-container.stories-D6Z6Kx78.js → layout-container.stories-TMyIJteJ.js} +2 -10
- package/dist/assets/{layout.stories-CNYuwC_r.js → layout.stories-ylRM-ANL.js} +7 -23
- package/dist/assets/{linelength-container.stories-pCRXZvxS.js → linelength-container.stories-Br2v8jXE.js} +1 -9
- package/dist/assets/{link-BpCiLxNW.js → link-CRE0Eqdo.js} +1 -9
- package/dist/assets/{link-list.stories-12vsAa1P.js → link-list.stories--y-urrVo.js} +7 -23
- package/dist/assets/{link.stories-DAoQtY4_.js → link.stories-C3WQOgkY.js} +2 -2
- package/dist/assets/{list.stories-D0N3yBIf.js → list.stories-Bd2bxkxn.js} +7 -23
- package/dist/assets/{loading-spinner-g6iJajXH.js → loading-spinner-C52KNq6y.js} +4 -12
- package/dist/assets/{loading-spinner.stories-B6_mgPxB.js → loading-spinner.stories-DPRGEeHT.js} +1 -1
- package/dist/assets/{logo.stories-BvMwN2qg.js → logo.stories-2LBqqraT.js} +1 -9
- package/dist/assets/{main.stories-pL4zefbs.js → main.stories-BQzD7iWD.js} +2 -10
- package/dist/assets/{medication-card.stories-DK1XGJic.js → medication-card.stories-Wc-hA0-s.js} +5 -5
- package/dist/assets/{medication-form.stories-Bj5dLp5S.js → medication-form.stories-DfFOCDaU.js} +1 -1
- package/dist/assets/{modal-CO0M4e_8.js → modal-CCfbY4fF.js} +1 -9
- package/dist/assets/{modal-BNu8xy08.js → modal-GglWRNJp.js} +1 -1
- package/dist/assets/{modal.stories-CHYBrq_E.js → modal.stories-CpybCs79.js} +1 -1
- package/dist/assets/{multi-select.stories-C9XXsWio.js → multi-select.stories-BhzEKRui.js} +1 -9
- package/dist/assets/{nav-container.stories-DU9fhvDu.js → nav-container.stories-Be1YlegP.js} +3 -11
- package/dist/assets/{page-header.stories-BrstKiEY.js → page-header.stories-BOVLQ0YF.js} +1 -9
- package/dist/assets/{pagination.stories-Bw2M2iOn.js → pagination.stories-D62sa_1K.js} +9 -25
- package/dist/assets/{percent-bar.stories-UQRXYUqd.js → percent-bar.stories-CYi4El7T.js} +1 -9
- package/dist/assets/{popover.stories-ZkwrRFpR.js → popover.stories-B9O8F4yv.js} +1 -9
- package/dist/assets/{primary-nav.stories-wqOKwgQn.js → primary-nav.stories-Bt-o7h45.js} +1 -17
- package/dist/assets/{progress-meter-TzASasu0.js → progress-meter-Dit59091.js} +1 -9
- package/dist/assets/{progress-meter.stories-qfJALZf8.js → progress-meter.stories-CYnOCmjo.js} +1 -1
- package/dist/assets/{progress-steps-item-KvW1d_7L.js → progress-steps-item-CWJsad0s.js} +1 -9
- package/dist/assets/{progress-steps-item.stories-uOn6tJ1W.js → progress-steps-item.stories-ePn_6bPn.js} +1 -1
- package/dist/assets/{progress-steps.stories-CKFPx8D0.js → progress-steps.stories-CblrEcXF.js} +1 -9
- package/dist/assets/{radio-field-item-CTaR50XR.js → radio-field-item-Bm-0RWPe.js} +5 -21
- package/dist/assets/{radio-field-item.stories-DQSLj8W1.js → radio-field-item.stories-y_TrTRIW.js} +1 -1
- package/dist/assets/{radio-field.stories-Btmc_Iep.js → radio-field.stories-CSWrbUrn.js} +1 -1
- package/dist/assets/{remove-tag-BSEZ7VT8.js → remove-tag-lCr57c5r.js} +1 -9
- package/dist/assets/{remove-tag.stories-diRKi7Ua.js → remove-tag.stories-CDfwCdvZ.js} +1 -1
- package/dist/assets/{request-prescription.stories-DQvra7ia.js → request-prescription.stories-O4zqokfb.js} +1 -1
- package/dist/assets/{sample-modal.stories-deE1EBfZ.js → sample-modal.stories-BZ4N2R2Z.js} +1 -1
- package/dist/assets/{section.stories-DF4mcy2O.js → section.stories-D_1InThX.js} +1 -9
- package/dist/assets/{select-tile-D-C8oSrm.js → select-tile-BqqB3ZtE.js} +2 -10
- package/dist/assets/{select-tile-list.stories-vsBQUIcl.js → select-tile-list.stories-Di4ILgV8.js} +1 -9
- package/dist/assets/{select-tile.stories-CqHzN5fc.js → select-tile.stories-D3h_6zlV.js} +6 -6
- package/dist/assets/{select.stories-8aOGxTtr.js → select.stories-BB2phP9A.js} +1 -9
- package/dist/assets/{skeleton-loader.stories-CwR2-aC5.js → skeleton-loader.stories-y4uml_kV.js} +5 -13
- package/dist/assets/{split-button.stories-CyfdrK4u.js → split-button.stories-C_82I4ME.js} +2 -10
- package/dist/assets/{spread-BPiNgQQF.js → spread-CnPic3C2.js} +1 -1
- package/dist/assets/state-DkQhleoO.js +1 -0
- package/dist/assets/{submenu.stories-CDhNzZzh.js → submenu.stories-UDtaREr1.js} +2 -18
- package/dist/assets/{syntaxhighlighter-T5IQBZDB-BzI6WxUR.js → syntaxhighlighter-T5IQBZDB-D-I_s_yD.js} +1 -1
- package/dist/assets/{table-header-CfcchoYz.js → table-header-2837i43H.js} +3 -51
- package/dist/assets/{table-object.stories-Bd5qdfMU.js → table-object.stories-D4KoI-wA.js} +1 -9
- package/dist/assets/{table.stories-DxuBe9dJ.js → table.stories-DUJDibEp.js} +1 -1
- package/dist/assets/{tabs.stories-Cpc3OHJx.js → tabs.stories-C06SngOF.js} +5 -29
- package/dist/assets/{tag-list.stories-BmyCmrTF.js → tag-list.stories-Du-IoYzu.js} +2 -10
- package/dist/assets/{tag-vQFuZneb.js → tag-oHGdclJl.js} +1 -9
- package/dist/assets/{tag.stories-DGzrNUbb.js → tag.stories-C5D5IbuK.js} +1 -1
- package/dist/assets/{tertiary-nav.stories-D4q5K-am.js → tertiary-nav.stories-B1GU8Zi4.js} +3 -19
- package/dist/assets/{text-link-4qLRIeJB.js → text-link-B3m3KEqY.js} +1 -9
- package/dist/assets/{text-link.stories-D6BRm2I5.js → text-link.stories-4O6qn82H.js} +1 -1
- package/dist/assets/{text-passage-DGaI5i2I.js → text-passage-xQVosjOr.js} +3 -19
- package/dist/assets/{text-passage.stories-DkmXVUhH.js → text-passage.stories-Da1nspwG.js} +1 -1
- package/dist/assets/{tooltip.stories-B7ADDq7o.js → tooltip.stories-DLKyyeKn.js} +6 -14
- package/dist/assets/{utility-nav.stories-ffXVvyLp.js → utility-nav.stories-B6xBFe7z.js} +5 -21
- package/dist/design-tokens/brands/cre8/css/tokens_brand.css +1 -1
- package/dist/design-tokens/core/scss/theming/component.css +1 -1
- package/dist/design-tokens/core/scss/theming/variables.css +1 -7
- package/dist/design-tokens/core/scss/theming/variables.scss +0 -11
- package/dist/icons/cre8-icons.svg +1 -1
- package/dist/iframe.html +1 -24
- package/dist/index.html +25 -77
- package/dist/project.json +1 -1
- package/lib/a2ui/renderer.d.ts +2 -1
- package/lib/a2ui/renderer.d.ts.map +1 -1
- package/lib/a2ui/renderer.js +1 -1
- package/lib/a2ui/renderer.js.map +1 -1
- package/lib/a2ui/stream/diff.d.ts +29 -0
- package/lib/a2ui/stream/diff.d.ts.map +1 -0
- package/lib/a2ui/stream/diff.js +131 -0
- package/lib/a2ui/stream/diff.js.map +1 -0
- package/lib/a2ui/stream/index.d.ts +12 -0
- package/lib/a2ui/stream/index.d.ts.map +1 -0
- package/lib/a2ui/stream/index.js +12 -0
- package/lib/a2ui/stream/index.js.map +1 -0
- package/lib/a2ui/stream/model.d.ts +67 -0
- package/lib/a2ui/stream/model.d.ts.map +1 -0
- package/lib/a2ui/stream/model.js +423 -0
- package/lib/a2ui/stream/model.js.map +1 -0
- package/lib/a2ui/stream/pointer.d.ts +35 -0
- package/lib/a2ui/stream/pointer.d.ts.map +1 -0
- package/lib/a2ui/stream/pointer.js +147 -0
- package/lib/a2ui/stream/pointer.js.map +1 -0
- package/lib/a2ui/stream/renderer.d.ts +52 -0
- package/lib/a2ui/stream/renderer.d.ts.map +1 -0
- package/lib/a2ui/stream/renderer.js +279 -0
- package/lib/a2ui/stream/renderer.js.map +1 -0
- package/lib/a2ui/stream/types.d.ts +174 -0
- package/lib/a2ui/stream/types.d.ts.map +1 -0
- package/lib/a2ui/stream/types.js +18 -0
- package/lib/a2ui/stream/types.js.map +1 -0
- package/lib/components/accordion/accordion.d.ts +15 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +23 -0
- package/lib/components/accordion/accordion.js.map +1 -1
- package/lib/components/badge/badge.d.ts +4 -17
- package/lib/components/badge/badge.d.ts.map +1 -1
- package/lib/components/badge/badge.js +0 -15
- package/lib/components/badge/badge.js.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.d.ts +14 -0
- package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +21 -0
- package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/lib/components/chart/chart.d.ts +3 -3
- package/lib/components/chart/chart.js +6 -6
- package/lib/components/chart/chart.js.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.d.ts +19 -0
- package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.js +28 -0
- package/lib/components/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/components/cre8-element.d.ts +19 -0
- package/lib/components/cre8-element.d.ts.map +1 -1
- package/lib/components/cre8-element.js +51 -2
- package/lib/components/cre8-element.js.map +1 -1
- package/lib/components/divider/divider.d.ts +1 -1
- package/lib/components/divider/divider.d.ts.map +1 -1
- package/lib/components/divider/divider.js.map +1 -1
- package/lib/components/dropdown/dropdown.d.ts +13 -0
- package/lib/components/dropdown/dropdown.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +19 -0
- package/lib/components/dropdown/dropdown.js.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.d.ts +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +2 -2
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -1
- package/lib/components/heading/heading.d.ts +3 -5
- package/lib/components/heading/heading.d.ts.map +1 -1
- package/lib/components/heading/heading.js +2 -4
- package/lib/components/heading/heading.js.map +1 -1
- package/lib/components/link-list/link-list.d.ts +19 -0
- package/lib/components/link-list/link-list.d.ts.map +1 -1
- package/lib/components/link-list/link-list.js +19 -0
- package/lib/components/link-list/link-list.js.map +1 -1
- package/lib/components/list/list.d.ts +13 -0
- package/lib/components/list/list.d.ts.map +1 -1
- package/lib/components/list/list.js +15 -0
- package/lib/components/list/list.js.map +1 -1
- package/lib/components/modal/modal.d.ts +2 -2
- package/lib/components/modal/modal.js +2 -2
- package/lib/components/modal/modal.js.map +1 -1
- package/lib/components/multi-select/multi-select.d.ts +2 -2
- package/lib/components/multi-select/multi-select.js +5 -5
- package/lib/components/multi-select/multi-select.js.map +1 -1
- package/lib/components/pagination/pagination.d.ts +1 -1
- package/lib/components/pagination/pagination.js +2 -2
- package/lib/components/pagination/pagination.js.map +1 -1
- package/lib/components/percent-bar/percent-bar.d.ts +2 -0
- package/lib/components/percent-bar/percent-bar.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +3 -1
- package/lib/components/percent-bar/percent-bar.js.map +1 -1
- package/lib/components/popover/popover.d.ts +6 -7
- package/lib/components/popover/popover.d.ts.map +1 -1
- package/lib/components/popover/popover.js +4 -4
- package/lib/components/popover/popover.js.map +1 -1
- package/lib/components/progress-meter/progress-meter.d.ts +0 -8
- package/lib/components/progress-meter/progress-meter.d.ts.map +1 -1
- package/lib/components/progress-meter/progress-meter.js +0 -7
- package/lib/components/progress-meter/progress-meter.js.map +1 -1
- package/lib/components/progress-steps/progress-steps.d.ts +16 -0
- package/lib/components/progress-steps/progress-steps.d.ts.map +1 -1
- package/lib/components/progress-steps/progress-steps.js +25 -0
- package/lib/components/progress-steps/progress-steps.js.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.d.ts +1 -3
- package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.js +0 -1
- package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -1
- package/lib/components/radio-field/radio-field.d.ts +33 -0
- package/lib/components/radio-field/radio-field.d.ts.map +1 -1
- package/lib/components/radio-field/radio-field.js +62 -0
- package/lib/components/radio-field/radio-field.js.map +1 -1
- package/lib/components/remove-tag/remove-tag.d.ts +1 -1
- package/lib/components/remove-tag/remove-tag.js +3 -3
- package/lib/components/remove-tag/remove-tag.js.map +1 -1
- package/lib/components/split-button/split-button.d.ts +3 -0
- package/lib/components/split-button/split-button.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js +5 -2
- package/lib/components/split-button/split-button.js.map +1 -1
- package/lib/components/tab/tab.d.ts +1 -1
- package/lib/components/tab/tab.js +3 -3
- package/lib/components/tab/tab.js.map +1 -1
- package/lib/components/table/table.d.ts +36 -0
- package/lib/components/table/table.d.ts.map +1 -1
- package/lib/components/table/table.js +55 -0
- package/lib/components/table/table.js.map +1 -1
- package/lib/components/tabs/tabs.d.ts +20 -3
- package/lib/components/tabs/tabs.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +33 -5
- package/lib/components/tabs/tabs.js.map +1 -1
- package/lib/components/tag-list/tag-list.d.ts +17 -0
- package/lib/components/tag-list/tag-list.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +25 -0
- package/lib/components/tag-list/tag-list.js.map +1 -1
- package/lib/components/tooltip/tooltip.d.ts +2 -2
- package/lib/components/tooltip/tooltip.js +4 -4
- package/lib/components/tooltip/tooltip.js.map +1 -1
- package/lib/components/utils/light-children.d.ts +40 -0
- package/lib/components/utils/light-children.d.ts.map +1 -0
- package/lib/components/utils/light-children.js +100 -0
- package/lib/components/utils/light-children.js.map +1 -0
- package/lib/directives/if-truthy.d.ts +1 -1
- package/lib/light-children-TlEXev5S.js +39 -0
- package/lib/scripts/generate-react-wrappers.d.ts +8 -1
- package/lib/scripts/generate-react-wrappers.d.ts.map +1 -1
- package/lib/scripts/generate-react-wrappers.js +45 -1
- package/lib/scripts/generate-react-wrappers.js.map +1 -1
- package/mcp-manifest.json +162 -52
- package/package.json +11 -4
- package/react-manifest.json +153 -47
- package/dist/assets/if-defined-HKKhGupN.js +0 -1
- package/dist/assets/iframe-CWwoGI65.css +0 -1
- package/dist/assets/state-CfuknrX8.js +0 -1
- package/dist/fonts/PlusJakartaSans-Bold.woff2 +0 -0
- package/dist/fonts/PlusJakartaSans-Medium.woff2 +0 -0
- package/dist/fonts/PlusJakartaSans-Regular.woff2 +0 -0
- package/dist/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
- package/dist/logo.svg +0 -1
- package/dist/sb-addons/storybook-4/manager-bundle.js +0 -8
- /package/dist/icons/{express-scripts copy.svg → pharmacy copy.svg} +0 -0
- /package/dist/icons/{express-scripts.svg → pharmacy.svg} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u,b as n,A as f}from"./iframe-
|
|
1
|
+
import{a as u,b as n,A as f}from"./iframe-BNJP6ovU.js";import{o as a}from"./if-defined-Bxnzk64Q.js";import{n as t}from"./cre8-element-B35i4Lyg.js";import{e as g}from"./query-BpjciUlk.js";import{n as l}from"./index.browser-BY9c7rfI.js";import"./icon-ChfRWXWy.js";import"./field-note-fccBckVl.js";import{C as b}from"./cre8-form-element-Cfc5VeYV.js";const x=u`@charset "UTF-8";
|
|
2
2
|
.cre8-u-content-knockout-brand {
|
|
3
3
|
color: var(----cre8-color-content-knockout-brand);
|
|
4
4
|
}
|
|
@@ -373,10 +373,6 @@ img {
|
|
|
373
373
|
|
|
374
374
|
:root {
|
|
375
375
|
--size-base-unit: 0.5rem;
|
|
376
|
-
--cre8-l-max-width: 82.5rem;
|
|
377
|
-
/* 1 */
|
|
378
|
-
--cre8-l-linelength-width: 42rem;
|
|
379
|
-
/* 1 */
|
|
380
376
|
}
|
|
381
377
|
|
|
382
378
|
/**
|
|
@@ -549,10 +545,6 @@ span.ripple {
|
|
|
549
545
|
}
|
|
550
546
|
:root {
|
|
551
547
|
--size-base-unit: 0.5rem;
|
|
552
|
-
--cre8-l-max-width: 82.5rem;
|
|
553
|
-
/* 1 */
|
|
554
|
-
--cre8-l-linelength-width: 42rem;
|
|
555
|
-
/* 1 */
|
|
556
548
|
}
|
|
557
549
|
|
|
558
550
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as p}from"./iframe-
|
|
1
|
+
import{g as p}from"./iframe-BNJP6ovU.js";import"./field-note-fccBckVl.js";import"./checkbox-field-item-DIMHcWM0.js";import"./preload-helper-PPVm8Dsz.js";import"./cre8-element-B35i4Lyg.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./icon-ChfRWXWy.js";import"./if-defined-Bxnzk64Q.js";import"./query-BpjciUlk.js";import"./base-DVmwUFg0.js";import"./index.browser-BY9c7rfI.js";import"./cre8-form-element-Cfc5VeYV.js";const{args:m,argTypes:u,template:b}=p("cre8-checkbox-field-item"),E={title:"cre8 Components/Checkbox Field Item",component:"cre8-checkbox-field-item",args:m,argTypes:u,parameters:{status:{type:"inProgress"},actions:{handles:["input","change","blur","click"]}},render:d=>b(d)},o={args:{label:"Label"}},t={args:{label:"Label",checked:!0}},e={args:{label:"Label (optional)"}},i={args:{label:"Label",isError:!0,required:!0}},r={args:{label:"Label",disabled:!0}},s={args:{label:"Label",fieldNote:"This is a field note.",ariaDescribedBy:"default-fieldnote-message"}},c={args:{label:"Label",isError:!0,errorNote:"Short, clear error message",validationAriaDescribedBy:"error-validation-message"}},n={args:{label:"Label",isSuccess:!0,successNote:"Short, clear success message",validationAriaDescribedBy:"success-valitation-message"}},l={args:{label:"This could mayhaps be the longest title that has ever been put on a checkbox field ever!"}},a={args:{label:"Rounded checkbox","--cre8-border-radius-checkbox":"0.5rem"}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Label'
|
|
4
4
|
}
|
package/dist/assets/{checkbox-field.stories-BoVB2jCx.js → checkbox-field.stories-YnqFUI4K.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u,b as p}from"./iframe-
|
|
1
|
+
import{a as u,b as p}from"./iframe-BNJP6ovU.js";import"./field-note-fccBckVl.js";import{o as c}from"./if-defined-Bxnzk64Q.js";import{C as b,n as t}from"./cre8-element-B35i4Lyg.js";import{n as x}from"./index.browser-BY9c7rfI.js";import"./checkbox-field-item-DIMHcWM0.js";import{s as y}from"./spread-CnPic3C2.js";import"./preload-helper-PPVm8Dsz.js";import"./icon-ChfRWXWy.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./query-BpjciUlk.js";import"./base-DVmwUFg0.js";import"./cre8-form-element-Cfc5VeYV.js";const k=u`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -624,7 +616,7 @@ span.ripple {
|
|
|
624
616
|
.cre8-c-checkbox-field__list {
|
|
625
617
|
display: flex;
|
|
626
618
|
flex-direction: column;
|
|
627
|
-
}`;var z=Object.defineProperty,i=(a,o,
|
|
619
|
+
}`;var z=Object.defineProperty,i=(a,o,f,w)=>{for(var r=void 0,m=a.length-1,h;m>=0;m--)(h=a[m])&&(r=h(o,f,r)||r);return r&&z(o,f,r),r};const g=class g extends b{connectedCallback(){super.connectedCallback(),this.fieldNote&&(this.ariaDescribedBy=this.ariaDescribedBy||x())}render(){const o=this.componentClassNames("cre8-c-checkbox-field",{});return p`
|
|
628
620
|
<fieldset class="${o}" aria-describedby="${c(this.ariaDescribedBy)}">
|
|
629
621
|
<legend class="cre8-c-checkbox-field__legend">${this.label}</legend>
|
|
630
622
|
<div class="cre8-c-checkbox-field__body">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as p,u as f,j as m,b as d}from"./iframe-
|
|
1
|
+
import{k as p,u as f,j as m,b as d}from"./iframe-BNJP6ovU.js";import{g as h}from"./_commonjsHelpers-DaWZu8wl.js";const y={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:p},v=(o=y,r,s)=>{const{kind:a,metadata:i}=s;let t=globalThis.litPropertyMetadata.get(i);if(t===void 0&&globalThis.litPropertyMetadata.set(i,t=new Map),a==="setter"&&((o=Object.create(o)).wrapped=!0),t.set(s.name,o),a==="accessor"){const{name:e}=s;return{set(n){const c=r.get.call(this);r.set.call(this,n),this.requestUpdate(e,c,o,!0,n)},init(n){return n!==void 0&&this.C(e,void 0,o,n),n}}}if(a==="setter"){const{name:e}=s;return function(n){const c=this[e];r.call(this,n),this.requestUpdate(e,c,o,!0,n)}}throw Error("Unsupported decorator location: "+a)};function g(o){return(r,s)=>typeof s=="object"?v(o,r,s):((a,i,t)=>{const e=i.hasOwnProperty(t);return i.constructor.createProperty(t,a),e?Object.getOwnPropertyDescriptor(i,t):void 0})(o,r,s)}var u={exports:{}},l;function b(){return l||(l=1,(function(o){(function(){var r={}.hasOwnProperty;function s(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=i(t,a(n)))}return t}function a(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return s.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=i(e,n));return e}function i(t,e){return e?t?t+" "+e:t+e:t}o.exports?(s.default=s,o.exports=s):window.classNames=s})()})(u)),u.exports}var E=b();const x=h(E);class j extends m{componentClassNames(r,s={}){return x(r,s)}slotEmpty(r){return!this.querySelector(`[slot="${r}"]`)}slotNotEmpty(r){return this.slotEmpty(r)?null:!this.slotEmpty(r)}dispatch({e:r,eventName:s,detailObj:a={},optionsObj:i={}}){const t={bubbles:!0,composed:!0,...i,detail:{...r&&{originalEvent:r},...a}},e=new CustomEvent(s,t);return this.dispatchEvent(e),e}render(){return d`<slot></slot>`}}export{j as C,x as c,g as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as f,n as h}from"./cre8-element-
|
|
1
|
+
import{C as f,n as h}from"./cre8-element-B35i4Lyg.js";let b=class extends Event{constructor(t,s,i,e){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s,this.callback=i,this.subscribe=e??!1}};class v{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,s=!1){const i=s||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[s,{disposer:i}]of this.subscriptions)s(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,s,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:s});const{disposer:e}=this.subscriptions.get(t);t(this.value,e)}clearCallbacks(){this.subscriptions.clear()}}let x=class extends Event{constructor(t,s){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s}};class d extends v{constructor(t,s,i){super(s.context!==void 0?s.initialValue:i),this.onContextRequest=e=>{if(e.context!==this.context)return;const a=e.contextTarget??e.composedPath()[0];a!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,a,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context||(e.contextTarget??e.composedPath()[0])===this.host)return;const a=new Set;for(const[r,{consumerHost:l}]of this.subscriptions)a.has(r)||(a.add(r),l.dispatchEvent(new b(this.context,l,r,!0)));e.stopPropagation()},this.host=t,s.context!==void 0?this.context=s.context:this.context=s,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new x(this.context,this.host))}}function p({context:n}){return(t,s)=>{const i=new WeakMap;if(typeof s=="object")return{get(){return t.get.call(this)},set(e){return i.get(this).setValue(e),t.set.call(this,e)},init(e){return i.set(this,new d(this,{context:n,initialValue:e})),e}};{t.constructor.addInitializer((r=>{i.set(r,new d(r,{context:n}))}));const e=Object.getOwnPropertyDescriptor(t,s);let a;if(e===void 0){const r=new WeakMap;a={get(){return r.get(this)},set(l){i.get(this).setValue(l),r.set(this,l)},configurable:!0,enumerable:!0}}else{const r=e.set;a={...e,set(l){i.get(this).setValue(l),r?.call(this,l)}}}return void Object.defineProperty(t,s,a)}}}const m=Symbol("cre8-form-internals"),y=Symbol("cre8-form-state");var V=Object.defineProperty,_=Object.getOwnPropertyDescriptor,u=(n,t,s,i)=>{for(var e=i>1?void 0:i?_(t,s):t,a=n.length-1,r;a>=0;a--)(r=n[a])&&(e=(i?r(t,s,e):r(e))||e);return i&&e&&V(t,s,e),e};const c=class c extends f{constructor(){super(),this.internalValue="",this.defaultValue="",this._formState={value:"",disabled:!1,required:!1,isError:!1,isSuccess:!1},this._internals=this.attachInternals()}get value(){return this.internalValue}set value(t){const s=this.value;this.internalValue=t,this.type!=="checkbox"&&this.type!=="radio"&&this._internals?.setFormValue(t),this.updateField(),this.updateFormState(),this.requestUpdate("value",s)}updateFormState(){this._formState={value:this.internalValue,disabled:this.disabled??!1,required:this.required??!1,isError:this.isError??!1,isSuccess:this.isSuccess??!1,name:this.name}}updateField(){this.field&&this.internalValue!==void 0&&(this.field.value=this.internalValue??"")}firstUpdated(){this.type!=="checkbox"&&this.type!=="radio"&&(this.defaultValue=this.value||this.getAttribute("value")||""),this.updateField(),this.updateFormState()}updated(t){super.updated(t),(t.has("disabled")||t.has("required")||t.has("isError")||t.has("isSuccess")||t.has("name"))&&this.updateFormState()}formResetCallback(){this.value=this.defaultValue,this.updateField()}formDisabledCallback(t){this.disabled=t}formStateRestoreCallback(t,s){typeof t=="string"&&(this.value=t)}get form(){return this._internals?.form??null}get validationMessage(){return this._internals?.validationMessage??""}get validity(){return this._internals?.validity}get willValidate(){return this._internals?.willValidate??!1}reportValidity(){return this._internals?.reportValidity()??!0}checkValidity(){return this._internals?.checkValidity()??!0}setCustomValidity(t){this._internals&&this.field&&(t?this._internals.setValidity({customError:!0},t,this.field):this._internals.setValidity({}))}};c.formAssociated=!0;let o=c;u([p({context:m})],o.prototype,"_internals",2);u([p({context:y})],o.prototype,"_formState",2);u([h()],o.prototype,"name",2);u([h({type:Boolean,reflect:!0})],o.prototype,"disabled",2);u([h({type:Boolean,reflect:!0})],o.prototype,"required",2);u([h({type:Boolean,reflect:!0})],o.prototype,"isError",2);u([h({type:Boolean,reflect:!0})],o.prototype,"isSuccess",2);u([h()],o.prototype,"value",1);export{o as C,m as f,b as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Z,A as c,b as n}from"./iframe-
|
|
1
|
+
import{a as Z,A as c,b as n}from"./iframe-BNJP6ovU.js";import{s as q}from"./spread-CnPic3C2.js";import{c as G,n as t}from"./cre8-element-B35i4Lyg.js";import{o as a}from"./if-defined-Bxnzk64Q.js";import"./icon-ChfRWXWy.js";import"./loading-spinner-C52KNq6y.js";import{e as N}from"./query-BpjciUlk.js";import{C as U}from"./cre8-form-element-Cfc5VeYV.js";import"./preload-helper-PPVm8Dsz.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./base-DVmwUFg0.js";const Y=Z`@charset "UTF-8";
|
|
2
2
|
.cre8-u-content-knockout-brand {
|
|
3
3
|
color: var(----cre8-color-content-knockout-brand);
|
|
4
4
|
}
|
|
@@ -373,10 +373,6 @@ img {
|
|
|
373
373
|
|
|
374
374
|
:root {
|
|
375
375
|
--size-base-unit: 0.5rem;
|
|
376
|
-
--cre8-l-max-width: 82.5rem;
|
|
377
|
-
/* 1 */
|
|
378
|
-
--cre8-l-linelength-width: 42rem;
|
|
379
|
-
/* 1 */
|
|
380
376
|
}
|
|
381
377
|
|
|
382
378
|
/**
|
|
@@ -549,10 +545,6 @@ span.ripple {
|
|
|
549
545
|
}
|
|
550
546
|
:root {
|
|
551
547
|
--size-base-unit: 0.5rem;
|
|
552
|
-
--cre8-l-max-width: 82.5rem;
|
|
553
|
-
/* 1 */
|
|
554
|
-
--cre8-l-linelength-width: 42rem;
|
|
555
|
-
/* 1 */
|
|
556
548
|
}
|
|
557
549
|
|
|
558
550
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x,b as s,A as f}from"./iframe-
|
|
1
|
+
import{a as x,b as s,A as f}from"./iframe-BNJP6ovU.js";import{s as X}from"./spread-CnPic3C2.js";import{w as E}from"./decorator-iVSD-Llo.js";import{o as u}from"./if-defined-Bxnzk64Q.js";import{C as I,n as p}from"./cre8-element-B35i4Lyg.js";import{r as c}from"./state-DkQhleoO.js";import{e as A}from"./query-BpjciUlk.js";import"./icon-ChfRWXWy.js";import"./button-CgaWukz0.js";import{s as B,f as P}from"./cre8-form-element-Cfc5VeYV.js";import{C as q}from"./field-BpUYyRW1.js";import"./preload-helper-PPVm8Dsz.js";import"./chunk-EUVGDK4H-rHCQfRxh.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./base-DVmwUFg0.js";import"./loading-spinner-C52KNq6y.js";import"./index.browser-BY9c7rfI.js";import"./field-note-fccBckVl.js";class S{constructor(e,t,a,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,n)),this.unsubscribe=n},this.host=e,t.context!==void 0){const i=t;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=t,this.callback=a,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new B(this.context,this.host,this.t,this.subscribe))}}function j({context:d,subscribe:e}){return(t,a)=>{typeof a=="object"?a.addInitializer((function(){new S(this,{context:d,callback:r=>{t.set.call(this,r)},subscribe:e})})):t.constructor.addInitializer((r=>{new S(r,{context:d,callback:i=>{r[a]=i},subscribe:e})}))}}const L=x`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -601,10 +593,6 @@ span.ripple {
|
|
|
601
593
|
|
|
602
594
|
:root {
|
|
603
595
|
--size-base-unit: 0.5rem;
|
|
604
|
-
--cre8-l-max-width: 82.5rem;
|
|
605
|
-
/* 1 */
|
|
606
|
-
--cre8-l-linelength-width: 42rem;
|
|
607
|
-
/* 1 */
|
|
608
596
|
}
|
|
609
597
|
|
|
610
598
|
/**
|
|
@@ -777,10 +765,6 @@ span.ripple {
|
|
|
777
765
|
}
|
|
778
766
|
:root {
|
|
779
767
|
--size-base-unit: 0.5rem;
|
|
780
|
-
--cre8-l-max-width: 82.5rem;
|
|
781
|
-
/* 1 */
|
|
782
|
-
--cre8-l-linelength-width: 42rem;
|
|
783
|
-
/* 1 */
|
|
784
768
|
}
|
|
785
769
|
|
|
786
770
|
/**
|
|
@@ -1342,10 +1326,6 @@ img {
|
|
|
1342
1326
|
|
|
1343
1327
|
:root {
|
|
1344
1328
|
--size-base-unit: 0.5rem;
|
|
1345
|
-
--cre8-l-max-width: 82.5rem;
|
|
1346
|
-
/* 1 */
|
|
1347
|
-
--cre8-l-linelength-width: 42rem;
|
|
1348
|
-
/* 1 */
|
|
1349
1329
|
}
|
|
1350
1330
|
|
|
1351
1331
|
/**
|
|
@@ -1518,10 +1498,6 @@ span.ripple {
|
|
|
1518
1498
|
}
|
|
1519
1499
|
:root {
|
|
1520
1500
|
--size-base-unit: 0.5rem;
|
|
1521
|
-
--cre8-l-max-width: 82.5rem;
|
|
1522
|
-
/* 1 */
|
|
1523
|
-
--cre8-l-linelength-width: 42rem;
|
|
1524
|
-
/* 1 */
|
|
1525
1501
|
}
|
|
1526
1502
|
|
|
1527
1503
|
/**
|
|
@@ -2035,10 +2011,6 @@ img {
|
|
|
2035
2011
|
|
|
2036
2012
|
:root {
|
|
2037
2013
|
--size-base-unit: 0.5rem;
|
|
2038
|
-
--cre8-l-max-width: 82.5rem;
|
|
2039
|
-
/* 1 */
|
|
2040
|
-
--cre8-l-linelength-width: 42rem;
|
|
2041
|
-
/* 1 */
|
|
2042
2014
|
}
|
|
2043
2015
|
|
|
2044
2016
|
/**
|
|
@@ -2211,10 +2183,6 @@ span.ripple {
|
|
|
2211
2183
|
}
|
|
2212
2184
|
:root {
|
|
2213
2185
|
--size-base-unit: 0.5rem;
|
|
2214
|
-
--cre8-l-max-width: 82.5rem;
|
|
2215
|
-
/* 1 */
|
|
2216
|
-
--cre8-l-linelength-width: 42rem;
|
|
2217
|
-
/* 1 */
|
|
2218
2186
|
}
|
|
2219
2187
|
|
|
2220
2188
|
/**
|
|
@@ -2656,10 +2624,6 @@ img {
|
|
|
2656
2624
|
|
|
2657
2625
|
:root {
|
|
2658
2626
|
--size-base-unit: 0.5rem;
|
|
2659
|
-
--cre8-l-max-width: 82.5rem;
|
|
2660
|
-
/* 1 */
|
|
2661
|
-
--cre8-l-linelength-width: 42rem;
|
|
2662
|
-
/* 1 */
|
|
2663
2627
|
}
|
|
2664
2628
|
|
|
2665
2629
|
/**
|
|
@@ -2832,10 +2796,6 @@ span.ripple {
|
|
|
2832
2796
|
}
|
|
2833
2797
|
:root {
|
|
2834
2798
|
--size-base-unit: 0.5rem;
|
|
2835
|
-
--cre8-l-max-width: 82.5rem;
|
|
2836
|
-
/* 1 */
|
|
2837
|
-
--cre8-l-linelength-width: 42rem;
|
|
2838
|
-
/* 1 */
|
|
2839
2799
|
}
|
|
2840
2800
|
|
|
2841
2801
|
/**
|
|
@@ -3308,10 +3268,6 @@ img {
|
|
|
3308
3268
|
|
|
3309
3269
|
:root {
|
|
3310
3270
|
--size-base-unit: 0.5rem;
|
|
3311
|
-
--cre8-l-max-width: 82.5rem;
|
|
3312
|
-
/* 1 */
|
|
3313
|
-
--cre8-l-linelength-width: 42rem;
|
|
3314
|
-
/* 1 */
|
|
3315
3271
|
}
|
|
3316
3272
|
|
|
3317
3273
|
/**
|
|
@@ -3484,10 +3440,6 @@ span.ripple {
|
|
|
3484
3440
|
}
|
|
3485
3441
|
:root {
|
|
3486
3442
|
--size-base-unit: 0.5rem;
|
|
3487
|
-
--cre8-l-max-width: 82.5rem;
|
|
3488
|
-
/* 1 */
|
|
3489
|
-
--cre8-l-linelength-width: 42rem;
|
|
3490
|
-
/* 1 */
|
|
3491
3443
|
}
|
|
3492
3444
|
|
|
3493
3445
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as p,b as l}from"./iframe-BNJP6ovU.js";import{C as g,n as m}from"./cre8-element-B35i4Lyg.js";const c=p`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -625,4 +617,4 @@ span.ripple {
|
|
|
625
617
|
|
|
626
618
|
.cre8-c-divider--knockout {
|
|
627
619
|
background-color: var(--cre8-color-border-knockout);
|
|
628
|
-
}`;var
|
|
620
|
+
}`;var u=Object.defineProperty,s=(n,e,o,h)=>{for(var t=void 0,r=n.length-1,d;r>=0;r--)(d=n[r])&&(t=d(e,o,t)||t);return t&&u(e,o,t),t};const a=class a extends g{constructor(){super(...arguments),this.variant="horizontal"}render(){const e=this.componentClassNames("cre8-c-divider",{"cre8-c-divider--horizontal":this.variant==="horizontal","cre8-c-divider--vertical":this.variant==="vertical","cre8-c-divider--brand":this.status==="brand","cre8-c-divider--knockout":this.status==="knockout"});return l` <div class="${e}"><wbr></div> `}};a.styles=[c];let i=a;s([m()],i.prototype,"variant");s([m()],i.prototype,"status");customElements.get("cre8-divider")===void 0&&customElements.define("cre8-divider",i);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as r}from"./iframe-
|
|
1
|
+
import{b as r}from"./iframe-BNJP6ovU.js";import{s as a}from"./spread-CnPic3C2.js";import"./divider-xZ2KARHf.js";import"./preload-helper-PPVm8Dsz.js";import"./cre8-element-B35i4Lyg.js";import"./_commonjsHelpers-DaWZu8wl.js";const b={title:"cre8 Components/Divider",component:"cre8-divider",parameters:{status:{type:"inProgress"}},argTypes:{status:{options:["default","brand","knockout"],control:{type:"select"}},variant:{options:["horizontal","vertical"],control:{type:"select"}}},args:{variant:"horizontal",status:"default"},render:e=>r`<cre8-divider variant=${e.variant} status=${e.status}></cre8-divider>`},i={args:{variant:"horizontal"}},t={args:{variant:"horizontal"},render:e=>r`<p>Lorem ipsum dolor sit amet</p><cre8-divider ${a(e)}></cre8-divider><p>Agam utroque scribentur eos id</p>`},o={args:{variant:"horizontal",status:"brand"},render:e=>r`<p>Lorem ipsum dolor sit amet</p><cre8-divider ${a(e)}></cre8-divider><p>Agam utroque scribentur eos id</p>`},s={args:{variant:"horizontal",status:"knockout"},render:e=>r`
|
|
2
2
|
<div style="padding: 20px; background: var(--cre8-color-bg-brand-strong); color: var(--cre8-color-content-knockout);">
|
|
3
3
|
<p>Lorem ipsum dolor sit amet</p><cre8-divider ${a(e)}></cre8-divider><p>Agam utroque scribentur eos id</p>
|
|
4
4
|
</div>`},n={args:{variant:"horizontal"},render:e=>r`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as h,b as n,A as g}from"./iframe-BNJP6ovU.js";import{C as f,n as m}from"./cre8-element-B35i4Lyg.js";import{r as x}from"./state-DkQhleoO.js";import{e as y}from"./query-BpjciUlk.js";const w=h`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -618,7 +610,7 @@ span.ripple {
|
|
|
618
610
|
outline: var(--cre8-border-width-none);
|
|
619
611
|
}`;var v=Object.defineProperty,z=(o,t,r,b)=>{for(var e=void 0,a=o.length-1,d;a>=0;a--)(d=o[a])&&(e=d(t,r,e)||e);return e&&v(t,r,e),e};const l=class l extends f{constructor(){super(...arguments),this.ariaLabel=""}_handleClick(t){this.dispatch({e:t,eventName:"dropdown-item-selected"})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","listitem")}render(){const t=this.componentClassNames("cre8-dropdown-item",{}),r=this.ariaLabel||`Link to ${this.textContent}`||"Drop down Item";return n`<li class="${t}" role="none">
|
|
620
612
|
<button aria-label="${r}" @click=${this._handleClick}><slot></slot></button>
|
|
621
|
-
</li>`}};l.styles=[
|
|
613
|
+
</li>`}};l.styles=[w];let p=l;z([m({type:String})],p.prototype,"ariaLabel");customElements.get("cre8-dropdown-item")===void 0&&customElements.define("cre8-dropdown-item",p);const k=h`.cre8-u-content-knockout-brand {
|
|
622
614
|
color: var(----cre8-color-content-knockout-brand);
|
|
623
615
|
}
|
|
624
616
|
|
|
@@ -992,10 +984,6 @@ img {
|
|
|
992
984
|
|
|
993
985
|
:root {
|
|
994
986
|
--size-base-unit: 0.5rem;
|
|
995
|
-
--cre8-l-max-width: 82.5rem;
|
|
996
|
-
/* 1 */
|
|
997
|
-
--cre8-l-linelength-width: 42rem;
|
|
998
|
-
/* 1 */
|
|
999
987
|
}
|
|
1000
988
|
|
|
1001
989
|
/**
|
|
@@ -1168,10 +1156,6 @@ span.ripple {
|
|
|
1168
1156
|
}
|
|
1169
1157
|
:root {
|
|
1170
1158
|
--size-base-unit: 0.5rem;
|
|
1171
|
-
--cre8-l-max-width: 82.5rem;
|
|
1172
|
-
/* 1 */
|
|
1173
|
-
--cre8-l-linelength-width: 42rem;
|
|
1174
|
-
/* 1 */
|
|
1175
1159
|
}
|
|
1176
1160
|
|
|
1177
1161
|
/**
|
|
@@ -1281,18 +1265,18 @@ ul {
|
|
|
1281
1265
|
list-style-type: none;
|
|
1282
1266
|
padding: var(--cre8-spacing-0);
|
|
1283
1267
|
margin: 0;
|
|
1284
|
-
}`;var C=Object.defineProperty,s=(o,t,r,b)=>{for(var e=void 0,a=o.length-1,d;a>=0;a--)(d=o[a])&&(e=d(t,r,e)||e);return e&&C(t,r,e),e};const
|
|
1268
|
+
}`;var C=Object.defineProperty,s=(o,t,r,b)=>{for(var e=void 0,a=o.length-1,d;a>=0;a--)(d=o[a])&&(e=d(t,r,e)||e);return e&&C(t,r,e),e};const u=`<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
1285
1269
|
<path d="M15.7867 4.87812L8.51454 12.1503C8.447 12.2179 8.36679 12.2716 8.27851 12.3082C8.19023 12.3448 8.0956 12.3636 8.00003 12.3636C7.90446 12.3636 7.80983 12.3448 7.72155 12.3082C7.63327 12.2716 7.55306 12.2179 7.48552 12.1503L0.213345 4.87812C0.111526 4.77642 0.0421733 4.64679 0.014066 4.50565C-0.0140413 4.36451 0.000361008 4.2182 0.0554496 4.08525C0.110538 3.95229 0.203836 3.83868 0.323531 3.75878C0.443227 3.67888 0.583938 3.63629 0.727852 3.6364L15.2722 3.6364C15.4161 3.63629 15.5568 3.67888 15.6765 3.75878C15.7962 3.83868 15.8895 3.95229 15.9446 4.08525C15.9997 4.2182 16.0141 4.36451 15.986 4.50565C15.9579 4.64679 15.8885 4.77642 15.7867 4.87812Z"/>
|
|
1286
1270
|
</svg>
|
|
1287
1271
|
`,c=class c extends f{constructor(){super(),this.open=!1,this.buttonText="",this.dropdownWithLink=!1,this._closeDropdown.bind(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._closeDropdown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._closeDropdown)}_toggleDropdown(t){t.preventDefault(),t.stopPropagation(),this.open=!this.open,this.open&&this._updateDropdownPosition()}_updateDropdownPosition(){this.dropdownContent&&this.open&&(this.maxHeight&&(this.dropdownContent.style.maxHeight=this.maxHeight,this.dropdownContent.style.overflowY="auto"),this.dropdownWithLink&&(this.dropdownContent.style.top="85%"))}_closeDropdown(){this.open=!1}render(){const t=this.componentClassNames("cre8-c-dropdown",{"cre8-c-dropdown--close":!this.open,"cre8-c-dropdown--open":this.open});return n`
|
|
1288
1272
|
<div class="cre8-c-dropdown-container">
|
|
1289
1273
|
${this.dropdownWithLink?n`<a href="#" aria-haspopup="true" class="cre8-c-dropdown--toggle cre8-c-dropdown--link" aria-expanded="${this.open?"true":"false"}" @click="${this._toggleDropdown}">${this.buttonText}
|
|
1290
|
-
${this.buttonText?n`<cre8-icon svg='${
|
|
1274
|
+
${this.buttonText?n`<cre8-icon svg='${u}' aria-hidden="true" class="cre8-c-dropdown--icon-link"></cre8-icon>`:g}
|
|
1291
1275
|
</a>`:n`<button aria-haspopup="true" class="cre8-c-dropdown--toggle cre8-c-dropdown--button" aria-expanded="${this.open?"true":"false"}" @click="${this._toggleDropdown}">${this.buttonText}
|
|
1292
|
-
${this.buttonText?n`<cre8-icon svg='${
|
|
1276
|
+
${this.buttonText?n`<cre8-icon svg='${u}' aria-hidden="true" class="cre8-c-dropdown--icon-button"></cre8-icon>`:g}
|
|
1293
1277
|
</button>`}
|
|
1294
1278
|
<ul role="list" class="${t}">
|
|
1295
1279
|
<slot></slot>
|
|
1296
1280
|
</ul>
|
|
1297
1281
|
</div>
|
|
1298
|
-
`}};c.styles=[k];let i=c;s([x()],i.prototype,"open");s([
|
|
1282
|
+
`}};c.styles=[k];let i=c;s([x()],i.prototype,"open");s([m({type:String})],i.prototype,"buttonText");s([m()],i.prototype,"maxHeight");s([y(".cre8-c-dropdown")],i.prototype,"dropdownContent");s([m()],i.prototype,"dropdownWithLink");customElements.get("cre8-dropdown")===void 0&&customElements.define("cre8-dropdown",i);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o}from"./iframe-
|
|
1
|
+
import{b as o}from"./iframe-BNJP6ovU.js";import"./dropdown-BEP5x3CW.js";import"./preload-helper-PPVm8Dsz.js";import"./cre8-element-B35i4Lyg.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./state-DkQhleoO.js";import"./query-BpjciUlk.js";import"./base-DVmwUFg0.js";const u={title:"In Development/Dropdown Item",component:"cre8-dropdown-item",parameters:{status:{type:"inProgress"},actions:{handles:["dropdown-item-selected"]},docs:{story:{height:"300px"}}}},p=({buttonText:e,dropdownContent:n,maxHeight:r,dropdownWithLink:d})=>o`
|
|
2
2
|
<cre8-dropdown
|
|
3
3
|
buttonText=${e}
|
|
4
4
|
maxHeight=${r}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o}from"./iframe-
|
|
1
|
+
import{b as o}from"./iframe-BNJP6ovU.js";import"./dropdown-BEP5x3CW.js";import"./preload-helper-PPVm8Dsz.js";import"./cre8-element-B35i4Lyg.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./state-DkQhleoO.js";import"./query-BpjciUlk.js";import"./base-DVmwUFg0.js";const k={title:"In Development/Dropdown",component:"cre8-dropdown",parameters:{status:{type:"inProgress"},actions:{handles:["dropdown-item-selected"]},docs:{story:{height:"300px"}}}},i=({buttonText:p,dropdownContent:m,maxHeight:c,dropdownWithLink:w})=>o`
|
|
2
2
|
<cre8-dropdown
|
|
3
3
|
buttonText=${p}
|
|
4
4
|
maxHeight=${c}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as f,j as a,r as c,b as m}from"./iframe-
|
|
1
|
+
import{a as f,j as a,r as c,b as m}from"./iframe-BNJP6ovU.js";import{o as y}from"./if-defined-Bxnzk64Q.js";import{n as p}from"./cre8-element-B35i4Lyg.js";const b=o=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)},u=f`
|
|
2
2
|
|
|
3
3
|
@import 'design-tokens/core/scss/theming/component';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as g,b as o}from"./iframe-
|
|
1
|
+
import{a as g,b as o}from"./iframe-BNJP6ovU.js";import{s as u}from"./spread-CnPic3C2.js";import"./heading-Dbka33DK.js";import"./text-passage-xQVosjOr.js";import{C as h,n as d}from"./cre8-element-B35i4Lyg.js";import"./preload-helper-PPVm8Dsz.js";import"./_commonjsHelpers-DaWZu8wl.js";const f=g`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u,b as d,A as g}from"./iframe-
|
|
1
|
+
import{a as u,b as d,A as g}from"./iframe-BNJP6ovU.js";import{o as i}from"./if-defined-Bxnzk64Q.js";import{n as r}from"./cre8-element-B35i4Lyg.js";import{e as f}from"./query-BpjciUlk.js";import{n as l}from"./index.browser-BY9c7rfI.js";import{C as h}from"./cre8-form-element-Cfc5VeYV.js";import"./field-note-fccBckVl.js";const b=u`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p,b as a}from"./iframe-
|
|
1
|
+
import{a as p,b as a}from"./iframe-BNJP6ovU.js";import{C as g,n}from"./cre8-element-B35i4Lyg.js";import"./icon-ChfRWXWy.js";const c=p`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -630,7 +622,7 @@ span.ripple {
|
|
|
630
622
|
*/
|
|
631
623
|
.cre8-c-field-note--inverted {
|
|
632
624
|
color: var(--cre8-color-content-knockout);
|
|
633
|
-
}`;var
|
|
625
|
+
}`;var u=Object.defineProperty,o=(s,i,m,x)=>{for(var e=void 0,r=s.length-1,l;r>=0;r--)(l=s[r])&&(e=l(i,m,e)||e);return e&&u(i,m,e),e};const h=`<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
634
626
|
<path d="M8 0C6.41775 0 4.87103 0.469192 3.55544 1.34824C2.23985 2.22729 1.21447 3.47672 0.608967 4.93853C0.00346628 6.40034 -0.15496 8.00887 0.153721 9.56072C0.462403 11.1126 1.22433 12.538 2.34315 13.6569C3.46197 14.7757 4.88743 15.5376 6.43928 15.8463C7.99113 16.155 9.59966 15.9965 11.0615 15.391C12.5233 14.7855 13.7727 13.7602 14.6518 12.4446C15.5308 11.129 16 9.58225 16 8C15.9978 5.87895 15.1542 3.84542 13.6544 2.34562C12.1546 0.845814 10.121 0.00223986 8 0ZM11.5123 6.58923L7.20462 10.8969C7.14746 10.9541 7.07959 10.9995 7.00489 11.0305C6.93018 11.0615 6.8501 11.0774 6.76923 11.0774C6.68836 11.0774 6.60828 11.0615 6.53358 11.0305C6.45887 10.9995 6.391 10.9541 6.33385 10.8969L4.48769 9.05077C4.37222 8.9353 4.30735 8.77868 4.30735 8.61538C4.30735 8.45208 4.37222 8.29547 4.48769 8.18C4.60317 8.06453 4.75978 7.99966 4.92308 7.99966C5.08638 7.99966 5.24299 8.06453 5.35846 8.18L6.76923 9.59154L10.6415 5.71846C10.6987 5.66128 10.7666 5.61593 10.8413 5.58499C10.916 5.55404 10.9961 5.53812 11.0769 5.53812C11.1578 5.53812 11.2378 5.55404 11.3126 5.58499C11.3873 5.61593 11.4551 5.66128 11.5123 5.71846C11.5695 5.77564 11.6148 5.84351 11.6458 5.91822C11.6767 5.99292 11.6927 6.07299 11.6927 6.15384C11.6927 6.2347 11.6767 6.31477 11.6458 6.38947C11.6148 6.46418 11.5695 6.53205 11.5123 6.58923Z"/>
|
|
635
627
|
</svg>
|
|
636
628
|
`,f=`<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -641,7 +633,7 @@ span.ripple {
|
|
|
641
633
|
aria-live="${this.fieldNoteAriaLive()??"off"}"
|
|
642
634
|
class="${i}">
|
|
643
635
|
${this.isError===!0?a`<cre8-icon class="cre8-field-note-icon" svg='${f}' aria-hidden="true" ></cre8-icon>`:""}
|
|
644
|
-
${this.isSuccess===!0?a`<cre8-icon class="cre8-field-note-icon" svg='${
|
|
636
|
+
${this.isSuccess===!0?a`<cre8-icon class="cre8-field-note-icon" svg='${h}' aria-hidden="true"></cre8-icon>`:""}
|
|
645
637
|
<div><slot></slot></div>
|
|
646
638
|
</div>
|
|
647
639
|
`}};d.styles=[c];let t=d;o([n({type:Boolean,reflect:!0})],t.prototype,"isError");o([n({type:Boolean,reflect:!0})],t.prototype,"isSuccess");o([n()],t.prototype,"iconName");customElements.get("cre8-field-note")===void 0&&customElements.define("cre8-field-note",t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as c,b as l}from"./iframe-
|
|
1
|
+
import{o as c,b as l}from"./iframe-BNJP6ovU.js";import{s as d}from"./spread-CnPic3C2.js";import{s as p}from"./story-helpers-BFn_kBYw.js";import"./field-note-fccBckVl.js";import"./text-link-B3m3KEqY.js";import"./preload-helper-PPVm8Dsz.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./cre8-element-B35i4Lyg.js";import"./icon-ChfRWXWy.js";import"./if-defined-Bxnzk64Q.js";const E={title:"cre8 Components/Field Note",render:({slot:i,...a})=>l`<cre8-field-note ${d(a)}>${c(p(i,"cre8-text-link"))}</cre8-field-note>`,component:"cre8-field-note",parameters:{status:{type:"inProgress"}},argTypes:{iconName:{control:"text"},isError:{control:"boolean"},isSuccess:{control:"boolean"}}},e={args:{slot:"This is a field note."}},r={args:{slot:'<cre8-text-link href="#">Helpful link</cre8-text-link> at the beginning of a field note'}},s={args:{slot:'This is a field note with a <cre8-text-link href="#">helpful link</cre8-text-link> in the middle of content'}},t={args:{slot:'This is a field note with an ending <cre8-text-link href="#">helpful link</cre8-text-link>'}},n={args:{isError:!0,slot:"This is a field note with an error state."}},o={args:{isSuccess:!0,slot:"This is a field note with a success state."}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
slot: 'This is a field note.'
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h}from"./iframe-
|
|
1
|
+
import{b as h}from"./iframe-BNJP6ovU.js";import{s as S}from"./spread-CnPic3C2.js";import"./field-BpUYyRW1.js";import"./preload-helper-PPVm8Dsz.js";import"./if-defined-Bxnzk64Q.js";import"./cre8-element-B35i4Lyg.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./query-BpjciUlk.js";import"./base-DVmwUFg0.js";import"./index.browser-BY9c7rfI.js";import"./cre8-form-element-Cfc5VeYV.js";import"./field-note-fccBckVl.js";import"./icon-ChfRWXWy.js";const U={title:"cre8 Components/Field",component:"cre8-field",render:F=>h`<cre8-field ${S(F)}></cre8-field>`,parameters:{status:{type:"inProgress"},actions:{handles:["input","change","blur"]}},argTypes:{ariaDescribedBy:{control:"text"},autocomplete:{control:"text"},type:{control:"select",options:["text","email","number","url","tel","password","date"]}},args:{label:"Label"}},e={},r={args:{label:"Email Field",type:"email"}},a={args:{label:"Number Field",type:"number"}},s={args:{label:"Url Field",type:"url"}},o={args:{label:"Telephone Field",type:"tel"}},t={args:{label:"Password Field",type:"password"}},l={args:{label:"Date Field",type:"date",value:"1969-06-28"}},n={args:{type:"date",label:"Max date should not be 2025-01-01",max:"2025-01-01",value:"2024-01-01"}},i={args:{label:"Required Field",required:"true"}},c={args:{label:"Required Field with Max Length",maxlength:"10",required:"true"}},d={args:{label:"Disabled Field",disabled:"true"}},u={args:{label:"Readonly Field",readonly:"true",value:"value"}},m={args:{label:"Field with a Field Note",fieldNote:"This is a field note."}},p={args:{label:"Field with Error Message and Field Note",errorNote:"Short, clear error message",isError:"true",fieldNote:"This is a field note."}},g={args:{label:"Field with Success Message",isSuccess:"true",fieldNote:"This is a field note.",successNote:"Short, clear success message"}},b={args:{label:"Field with Error Message",isError:"true",errorNote:"Short, clear error message"}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"{}",...e.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
label: 'Email Field',
|
|
4
4
|
type: 'email'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n,b as e}from"./iframe-
|
|
1
|
+
import{a as n,b as e}from"./iframe-BNJP6ovU.js";import"./f-po-BdPzDRD-.js";import{s as d}from"./spread-CnPic3C2.js";import{C as m}from"./cre8-element-B35i4Lyg.js";import"./preload-helper-PPVm8Dsz.js";import"./if-defined-Bxnzk64Q.js";import"./_commonjsHelpers-DaWZu8wl.js";const s=n`.cre8-u-content-knockout-brand {
|
|
2
2
|
color: var(----cre8-color-content-knockout-brand);
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -372,10 +372,6 @@ img {
|
|
|
372
372
|
|
|
373
373
|
:root {
|
|
374
374
|
--size-base-unit: 0.5rem;
|
|
375
|
-
--cre8-l-max-width: 82.5rem;
|
|
376
|
-
/* 1 */
|
|
377
|
-
--cre8-l-linelength-width: 42rem;
|
|
378
|
-
/* 1 */
|
|
379
375
|
}
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -548,10 +544,6 @@ span.ripple {
|
|
|
548
544
|
}
|
|
549
545
|
:root {
|
|
550
546
|
--size-base-unit: 0.5rem;
|
|
551
|
-
--cre8-l-max-width: 82.5rem;
|
|
552
|
-
/* 1 */
|
|
553
|
-
--cre8-l-linelength-width: 42rem;
|
|
554
|
-
/* 1 */
|
|
555
547
|
}
|
|
556
548
|
|
|
557
549
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c,b as l}from"./iframe-
|
|
1
|
+
import{a as c,b as l}from"./iframe-BNJP6ovU.js";import{w as r}from"./decorator-iVSD-Llo.js";import"./preload-helper-PPVm8Dsz.js";import"./chunk-EUVGDK4H-rHCQfRxh.js";c`
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|