@dpa-id-components/dpa-shared-components 20.0.6 → 20.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/dist/_plugin-vue_export-helper-BTgDAbhb.js +8 -0
- package/dist/{activities-BdgBJTuA.js → activities-BxyZQp7R.js} +5 -4
- package/dist/{ai-CRKea4DD.js → ai-CvQQ6hUw.js} +5 -4
- package/dist/{alert-73LhoiBH.js → alert-BeP6nqRf.js} +5 -4
- package/dist/{alert-fill-CtKKZrZO.js → alert-fill-BHn_Z4vo.js} +5 -4
- package/dist/{alert-octagon-BFcCcEQq.js → alert-octagon-Cd-_T4ON.js} +5 -4
- package/dist/{apps-BcyMOR4e.js → apps-CtY6nO4d.js} +5 -4
- package/dist/{archive-CMuBva_u.js → archive-DmV6cQ50.js} +5 -4
- package/dist/{arrow-down-WJdG351R.js → arrow-down-Cfib5c-0.js} +5 -4
- package/dist/{arrow-left-H5cUyllC.js → arrow-left-CFSY8V--.js} +5 -4
- package/dist/{arrow-nav-left-CvZfWsrk.js → arrow-nav-left-BRYPr4oj.js} +5 -4
- package/dist/{arrow-nav-right-CUN92-9v.js → arrow-nav-right-PqR7W08e.js} +5 -4
- package/dist/{arrow-right-Dai72xIp.js → arrow-right-ByFSLzJb.js} +5 -4
- package/dist/{arrow-up-D9lAqZA8.js → arrow-up-DfhQKYKi.js} +5 -4
- package/dist/{arrowhead-left-SJXGjhbq.js → arrowhead-left-BxBCmhZy.js} +5 -4
- package/dist/{arrowhead-right-BhZbSG2r.js → arrowhead-right-D6Hk6b6x.js} +5 -4
- package/dist/{arrowhead-top-BEqJzGKA.js → arrowhead-top-wkcSxZmc.js} +5 -4
- package/dist/{atmo-CZCUnUYN.js → atmo-CqanVC-e.js} +5 -4
- package/dist/{audio-CnSs3MVV.js → audio-DLQLFJ3x.js} +5 -4
- package/dist/{audio-circled-Cku32Yiu.js → audio-circled-amRbTaDb.js} +5 -4
- package/dist/{audio-filled-CVOOatbn.js → audio-filled-C7m_-PTb.js} +5 -4
- package/dist/{bag-Cx7iHwPQ.js → bag-Br7SrnRJ.js} +5 -4
- package/dist/{bell-fill-D-dFYpLV.js → bell-fill-DHRfa4cC.js} +5 -4
- package/dist/{bell-CwI9Vb62.js → bell-kOosto6B.js} +5 -4
- package/dist/{book-B0ailmur.js → book-D0Xsp8As.js} +5 -4
- package/dist/{bookmark-CLdYV4f9.js → bookmark-DNJYJq0J.js} +5 -4
- package/dist/{bookmark-fill-wdEWET5w.js → bookmark-fill-DbkrXmPt.js} +5 -4
- package/dist/{bookmark-outlined-Dd7PyuTU.js → bookmark-outlined-D41PleT8.js} +5 -4
- package/dist/{box-CfW1bBum.js → box-Bw_tD7Nd.js} +5 -4
- package/dist/{bulb-K8jFZmfR.js → bulb-tXJKei6j.js} +5 -4
- package/dist/{call-CquDMWn4.js → call-BdzulBfZ.js} +5 -4
- package/dist/{camera-CB6fKe82.js → camera-D8so0Wqg.js} +5 -4
- package/dist/{check-BBMwdc1e.js → check-CTBqwPMY.js} +5 -4
- package/dist/{checklist-Df5fhkTx.js → checklist-CVBb2iLT.js} +5 -4
- package/dist/{checkmark-Bk3th8aU.js → checkmark-BkBvk5FP.js} +5 -4
- package/dist/{checkmark-double-JBEWrsse.js → checkmark-double-9tbcPPxC.js} +5 -4
- package/dist/{chevron-down-Sq-Omasi.js → chevron-down-BcjUrqWQ.js} +5 -4
- package/dist/{chevron-left-ka3w4LWP.js → chevron-left-DdChgK6Q.js} +5 -4
- package/dist/{chevron-right-DmvJo-Nn.js → chevron-right-BR3OVahz.js} +5 -4
- package/dist/{chevron-up-DakU_cBn.js → chevron-up-R3uiTZDq.js} +5 -4
- package/dist/{clipboard-DyMMjIVc.js → clipboard-BFi2VbBj.js} +5 -4
- package/dist/{clock-CtkOHG1g.js → clock-C3D4TRfx.js} +5 -4
- package/dist/{close-DjFVZt2u.js → close-CbIMNMG_.js} +5 -4
- package/dist/{cloud-save-acm4FjOr.js → cloud-save-CQCTGXxN.js} +5 -4
- package/dist/{code-BJgY-9g3.js → code-ChJ2qMcZ.js} +5 -4
- package/dist/{collapse-CalQPYhZ.js → collapse-DISUbIVr.js} +5 -4
- package/dist/{color-palette-DRN9z5Vz.js → color-palette-B4pqFFIE.js} +5 -4
- package/dist/{comment-CWIccK83.js → comment-CzF3hkpf.js} +5 -4
- package/dist/{comment-fill-BVza8Jz-.js → comment-fill-Dc-swkQu.js} +5 -4
- package/dist/{copy-Bk8cFSbJ.js → copy-CywrUiK2.js} +5 -4
- package/dist/{copy-link-DOfXU7RD.js → copy-link-DqcNlpUK.js} +5 -4
- package/dist/{delete-DsugmFOu.js → delete-Bl6aSpBn.js} +5 -4
- package/dist/{download-BeWUwd0y.js → download-BdnIOaET.js} +5 -4
- package/dist/{dpa-id-Ly2f4-Kw.js → dpa-id-4HKRxUEF.js} +5 -4
- package/dist/dpa-shared-components.js +4230 -4194
- package/dist/{edit-D69xOR64.js → edit-KtC1G-_s.js} +5 -4
- package/dist/{edit-add-C5WDTIjN.js → edit-add-DjUq6zXq.js} +5 -4
- package/dist/{eil-Cb4014LI.js → eil-CPA4kVQM.js} +5 -4
- package/dist/{emoji-D72nL3d1.js → emoji-C2BmBFxC.js} +5 -4
- package/dist/{emoji-add-BrzLAJ3E.js → emoji-add-NHqne_6m.js} +5 -4
- package/dist/{envelope-kda2hV7_.js → envelope-BDSOA_J7.js} +5 -4
- package/dist/{event-8phFSDv9.js → event-Bo_sb247.js} +5 -4
- package/dist/{expand-BtinEH3A.js → expand-BK_uzKmx.js} +5 -4
- package/dist/{external-link-CNYm-GlZ.js → external-link-BPYyKPIa.js} +5 -4
- package/dist/{file-BOEeXxXs.js → file-B97T9C2M.js} +5 -4
- package/dist/{file-pdf-DJaalWDa.js → file-pdf-lFk-5brY.js} +5 -4
- package/dist/{filter-BjVZbhND.js → filter-BIJnBkRa.js} +5 -4
- package/dist/{filter-outline-BoEVSezK.js → filter-outline-ChWKUbSt.js} +5 -4
- package/dist/{flag-DgOeofob.js → flag-DNP4L-y-.js} +5 -4
- package/dist/{flag-fill-BVhHWhiP.js → flag-fill-C3XgapYW.js} +5 -4
- package/dist/{flag-filled-CTSdIBWY.js → flag-filled-CdVD_QxY.js} +5 -4
- package/dist/{flag-outline-BgYyW8nX.js → flag-outline-ChGgKT6P.js} +5 -4
- package/dist/{flags-CMwN4aB0.js → flags-G-Nbo5ST.js} +5 -4
- package/dist/{flash-BhAeSS1k.js → flash-9TBwsdOx.js} +5 -4
- package/dist/{folder-add-Ya2GcM-i.js → folder-add-B-l2wmwY.js} +5 -4
- package/dist/{folder-fill-Ca6bXRw-.js → folder-fill-CnEmPx6c.js} +5 -4
- package/dist/{folder-filled-BBR8bJQL.js → folder-filled-zwvSw3Sd.js} +5 -4
- package/dist/{folder-D79ZQ9RA.js → folder-s6NWFqjh.js} +5 -4
- package/dist/{gallery-CsCgah-Q.js → gallery-B8I5lJ51.js} +5 -4
- package/dist/{graphic-circled-BYvbiPFv.js → graphic-circled-BtuNYmPh.js} +5 -4
- package/dist/{graphic-CZ1VEgbk.js → graphic-d-_5qmyr.js} +5 -4
- package/dist/{graphic-filled-B640yZW1.js → graphic-filled-DXQvxz4s.js} +5 -4
- package/dist/{graphics-DOD41Q2b.js → graphics-eur3JZ_7.js} +5 -4
- package/dist/{grid-1-reX52mXX.js → grid-1-DOm2nS5Y.js} +5 -4
- package/dist/{grid-2-biGoKZET.js → grid-2-D9XOIyFO.js} +5 -4
- package/dist/{grid-3-B8ccFfrT.js → grid-3-CR1E0m9u.js} +5 -4
- package/dist/{grid-4-CqTE5F_g.js → grid-4-QKKeiUGc.js} +5 -4
- package/dist/{grid-6-DbKV_eBX.js → grid-6-C5bCbXur.js} +5 -4
- package/dist/{grid-9-CTSAZ4UT.js → grid-9-FNxsRYRg.js} +5 -4
- package/dist/{grid-masonry-9-CKioEJuZ.js → grid-masonry-9-CxLBpKCz.js} +5 -4
- package/dist/{grid-masonry-B593q1l6.js → grid-masonry-CuwXzdZ6.js} +5 -4
- package/dist/{help-DiKackos.js → help-DkjfD818.js} +5 -4
- package/dist/{home-Do4YF4Dd.js → home-njHAfgwc.js} +5 -4
- package/dist/{image focus point-C0vK6FzN.js → image focus point-D_hUlTWi.js } +5 -4
- package/dist/{image-BWGxTMMW.js → image-C2RlXeDP.js} +5 -4
- package/dist/{impact-high-DdaQcLOu.js → impact-high-C0SywXT1.js} +5 -4
- package/dist/{impact-low-zbvAdhZ1.js → impact-low-yDd0jU4k.js} +5 -4
- package/dist/{impact-medium-BhfzSQAK.js → impact-medium-Cc_nInN7.js} +5 -4
- package/dist/{impact-very-high-qcPfp2yw.js → impact-very-high-DiOgG_Ji.js} +5 -4
- package/dist/{impact-very-low-Dz86WvEI.js → impact-very-low-CYW4RgJO.js} +5 -4
- package/dist/{info-9llr8kqZ.js → info-NBFIJ3YI.js} +5 -4
- package/dist/{info-fill-DvyOjyX-.js → info-fill-DlgeXJbI.js} +5 -4
- package/dist/{info-filled-c2KLORVR.js → info-filled-Btao1rhT.js} +5 -4
- package/dist/{label-DRVpH3Zf.js → label-CTr8hHIv.js} +5 -4
- package/dist/{label-filled-CTReJE3_.js → label-filled-CnTpOqvX.js} +5 -4
- package/dist/{language-CaK3obhv.js → language-UqPESR_Z.js} +5 -4
- package/dist/{latest-Bh5w8w2R.js → latest-Cq12zjMs.js} +5 -4
- package/dist/{lightbulb-D55X29rD.js → lightbulb-BpK9qU_u.js} +5 -4
- package/dist/{list-Dm0wrpKz.js → list-DKcsNf15.js} +5 -4
- package/dist/{list-search-BWPAGqHW.js → list-search-BzZuYf_P.js} +5 -4
- package/dist/{lock-Bair96dL.js → lock-BFfHVSog.js} +5 -4
- package/dist/{lock-filled-BNZJ0waC.js → lock-filled-C5I60_d0.js} +5 -4
- package/dist/{mail-Mn2wq1aV.js → mail-pagEqHtM.js} +5 -4
- package/dist/{map-D1irc7wN.js → map-BMOQGCce.js} +5 -4
- package/dist/{map-outline-B00hms9f.js → map-outline-uvK8An7m.js} +5 -4
- package/dist/{menu-CVkyyeDW.js → menu-j4cvnLP8.js} +5 -4
- package/dist/{minus-B89-4r0W.js → minus-CGsJ-jkT.js} +5 -4
- package/dist/{more-horizontal-BOq3UKiU.js → more-horizontal-CDZjG5h8.js} +5 -4
- package/dist/{more-vertical-CJOSDU6R.js → more-vertical-YUehtvol.js} +5 -4
- package/dist/{move-B7GHCUbm.js → move-CiU3PwqY.js} +5 -4
- package/dist/{move-up-down-Ch8L5sZC.js → move-up-down-H-qHtTwO.js} +5 -4
- package/dist/{navigation-BTddw232.js → navigation-DmqoQINO.js} +5 -4
- package/dist/{note-BvnqgyHg.js → note-BZ3q-D4L.js} +5 -4
- package/dist/{offline-YOyb2Tfr.js → offline-CLl0pwpv.js} +5 -4
- package/dist/{package-Ckm27fjL.js → package-iJOVTpPH.js} +5 -4
- package/dist/{paper-plane-BttsgNjZ.js → paper-plane-DcYms0cj.js} +5 -4
- package/dist/{paperplane-BqxbaXXQ.js → paperplane-ed0y9oB6.js} +5 -4
- package/dist/{pause-Du648vV9.js → pause-COAxeJRm.js} +5 -4
- package/dist/{pause-circle-C0ua224p.js → pause-circle-ab18LhX3.js} +5 -4
- package/dist/{pdf-Ddg3TU0B.js → pdf-BweFqxRM.js} +5 -4
- package/dist/{pen-CQhBRQVg.js → pen-CmBOMgX_.js} +5 -4
- package/dist/{pen-check-BZme3WMH.js → pen-check-BApB0Zi2.js} +5 -4
- package/dist/{people-COXR5CoD.js → people-D07vIou7.js} +5 -4
- package/dist/{phone-BauDKm-k.js → phone-B9TyVbBj.js} +5 -4
- package/dist/{picture-C3UMrriC.js → picture-DJRwU5Gl.js} +5 -4
- package/dist/{picture-circled-DBlYCjnY.js → picture-circled-DYsNZNYH.js} +5 -4
- package/dist/{picture-filled-O2z4--dy.js → picture-filled-CQYRN3Fa.js} +5 -4
- package/dist/{picture-gallery-C9c2zcxU.js → picture-gallery-BgWYQrqC.js} +5 -4
- package/dist/{pin-BMODlehD.js → pin-BlBzA8ov.js} +5 -4
- package/dist/{planning-Dtx9YzGr.js → planning-BhE-A4FO.js} +5 -4
- package/dist/{play-C5cuKZV0.js → play-BXy8WcYq.js} +5 -4
- package/dist/{play-circle-CL5tEg9v.js → play-circle-B88YxOh-.js} +5 -4
- package/dist/{play-fill-DSV0DW-T.js → play-fill-nWPoHjD3.js} +5 -4
- package/dist/{plus-DCPlMZXW.js → plus-CmEv_iHA.js} +5 -4
- package/dist/{plus-circle-DjR4qFC0.js → plus-circle-DKWKVMiq.js} +5 -4
- package/dist/{print-DXBUPTFP.js → print-ChdLXKHj.js} +5 -4
- package/dist/{refresh-BcwO7Jw6.js → refresh-C7k19NtO.js} +5 -4
- package/dist/{reset-B1yR8nzO.js → reset-CpXqaOj5.js} +5 -4
- package/dist/{responsive-DGZkLyEW.js → responsive-CKNXzAo1.js} +5 -4
- package/dist/{rubix-thema-CCIj5kn3.js → rubix-thema-Cmk-5-bm.js} +5 -4
- package/dist/{save-DvQxrVk-.js → save-BX3-Z5qP.js} +5 -4
- package/dist/{saved-search-BDu5PZQb.js → saved-search-Be8D9tJ9.js} +5 -4
- package/dist/{saved-search-fill-BffgdGo8.js → saved-search-fill-CPoyaMRU.js} +5 -4
- package/dist/{search-CXfaMRZ9.js → search-BeIwOzJl.js} +5 -4
- package/dist/{settings-D7xABZln.js → settings-CLChu_zl.js} +5 -4
- package/dist/{share-alternative-C4HzRC3B.js → share-alternative-BD-WQYvk.js} +5 -4
- package/dist/{share-BQm_gGv6.js → share-j6ezShBH.js} +5 -4
- package/dist/{sidebar-CwFxeKOh.js → sidebar-CPe20Xae.js} +5 -4
- package/dist/{sidebar-fill-BcquZLLX.js → sidebar-fill-CBSJYVQQ.js} +5 -4
- package/dist/{slack-CIhJ-_vs.js → slack-BjvLF16S.js} +5 -4
- package/dist/{slider-config-5UwhkENY.js → slider-config-CTzwxojK.js} +5 -4
- package/dist/{spellcheck-ClGD2dI8.js → spellcheck-thqRUMx9.js} +5 -4
- package/dist/{spinner-Ds5nod21.js → spinner-dy09pOOm.js} +5 -4
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +123 -0
- package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +140 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.spec.ts +39 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.stories.ts +46 -0
- package/dist/src/components/UiBadge/UiBadge.spec.ts +32 -0
- package/dist/src/components/UiBadge/UiBadge.stories.ts +80 -0
- package/dist/src/components/UiButton/UiButton.spec.ts +136 -0
- package/dist/src/components/UiButton/UiButton.stories.ts +57 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +16 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +50 -0
- package/dist/src/components/UiCard/UiCard.spec.ts +16 -0
- package/dist/src/components/UiCard/UiCard.stories.ts +30 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +67 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +59 -0
- package/dist/src/components/UiCheckbox/UiCheckbox.spec.ts +173 -0
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +99 -0
- package/dist/src/components/UiChip/UiChip.spec.ts +75 -0
- package/dist/src/components/UiChip/UiChip.stories.ts +39 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +21 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +66 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +52 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +44 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +335 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +273 -0
- package/dist/src/components/UiDialog/UiDialog.spec.ts +160 -0
- package/dist/src/components/UiDialog/UiDialog.stories.ts +79 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +17 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +44 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.spec.ts +41 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.ts +55 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +79 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +88 -0
- package/dist/src/components/UiIcon/IconOverview.stories.vue +23 -0
- package/dist/src/components/UiIcon/UiIcon.spec.ts +56 -0
- package/dist/src/components/UiIcon/UiIcon.stories.ts +48 -0
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +78 -0
- package/dist/src/components/UiIconButton/UiIconButton.stories.ts +63 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +43 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.stories.ts +56 -0
- package/dist/src/components/UiInput/UiInput.spec.ts +239 -0
- package/dist/src/components/UiInput/UiInput.stories.ts +127 -0
- package/dist/src/components/UiList/UiList.spec.ts +22 -0
- package/dist/src/components/UiList/UiList.stories.ts +64 -0
- package/dist/src/components/UiListItem/UiListItem.spec.ts +99 -0
- package/dist/src/components/UiListItem/UiListItem.stories.ts +83 -0
- package/dist/src/components/UiMenu/UiMenu.spec.ts +319 -0
- package/dist/src/components/UiMenu/UiMenu.stories.ts +634 -0
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +16 -0
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +22 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +32 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +39 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +66 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.stories.ts +70 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +82 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +191 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +45 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.stories.ts +61 -0
- package/dist/src/components/UiSection/UiSection.spec.ts +49 -0
- package/dist/src/components/UiSection/UiSection.stories.ts +61 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +19 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +48 -0
- package/dist/src/components/UiSelect/UIiSelect.spec.ts +102 -0
- package/dist/src/components/UiSelect/UiSelect.stories.ts +94 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.spec.ts +58 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.stories.ts +53 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +15 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.stories.ts +33 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +63 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.stories.ts +65 -0
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +30 -0
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +48 -0
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +99 -0
- package/dist/src/components/UiTextButton/UiTextButton.stories.ts +60 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +89 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +102 -0
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +139 -0
- package/dist/src/components/UiTooltip/UiTooltip.stories.ts +107 -0
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.ts +23 -0
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.vue +12 -0
- package/dist/src/utils/index.spec.ts +12 -0
- package/dist/{standard-view-hRZ2UVqX.js → standard-view-dE52BPUm.js} +5 -4
- package/dist/{star-fill-B10bjB48.js → star-fill-DIXwg3gQ.js} +5 -4
- package/dist/{star-filled-BISydRRE.js → star-filled-BqrpxMqq.js} +5 -4
- package/dist/{star-DC_rTR6e.js → star-uv_o0S9H.js} +5 -4
- package/dist/{stop-D6NZK5EY.js → stop-CrmQCpqp.js} +5 -4
- package/dist/{story-B3kiPLs0.js → story-CUBTcSOv.js} +5 -4
- package/dist/{sync-B5v_sNSB.js → sync-CPmOdu5b.js} +5 -4
- package/dist/{tasks-COvP7FSq.js → tasks-TKH8SUBe.js} +5 -4
- package/dist/{text--clKJFHw.js → text-BMhu0paW.js} +5 -4
- package/dist/{text-circled-hElWfl5W.js → text-circled-Cykzn5-2.js} +5 -4
- package/dist/{text-filled-BpflMH5s.js → text-filled-BwOhn26K.js} +5 -4
- package/dist/{thumbs-down-BD3Dkcr3.js → thumbs-down-LH8SIeIF.js} +5 -4
- package/dist/{thumbs-up-A2jkWz64.js → thumbs-up-WZQzpqKr.js} +5 -4
- package/dist/{thumbs-up-double-Dm7agvTj.js → thumbs-up-double-SeGWEXZ_.js} +5 -4
- package/dist/{topic-CXey3AGT.js → topic-63EhQ_l1.js} +5 -4
- package/dist/{union-DZ2yepXw.js → union-DKjbjP-9.js} +5 -4
- package/dist/{upload-DPdFqQB3.js → upload-yjh9wxAA.js} +5 -4
- package/dist/{user-need-divert-me-DF4rOe6s.js → user-need-divert-me-B_cSVEIY.js} +5 -4
- package/dist/{user-need-educate-me-ClLznwAg.js → user-need-educate-me-DOgCmShA.js} +5 -4
- package/dist/{user-need-give-me-perspective-BfI5mb08.js → user-need-give-me-perspective-2wacZI2F.js} +5 -4
- package/dist/{user-need-help-me-D-lptTdN.js → user-need-help-me-D4VE0IcH.js} +5 -4
- package/dist/{user-need-touch-me-CikvxxHD.js → user-need-touch-me-u3n8c5IH.js} +5 -4
- package/dist/{user-need-update-me-Ua4YV9Bs.js → user-need-update-me-BcDyXzME.js} +5 -4
- package/dist/{video overlay-cYzYa_B7.js → video overlay-DfhF7VpE.js } +5 -4
- package/dist/{video-CydfS_mz.js → video-BViz7WnQ.js} +5 -4
- package/dist/{video-circled-DcD57AXc.js → video-circled-Bw9Miyyr.js} +5 -4
- package/dist/{video-filled-oePCRIdo.js → video-filled-B5Td1M5L.js} +5 -4
- package/dist/{video-rounded-DCwst-WS.js → video-rounded-ISWC3gUM.js} +5 -4
- package/dist/{view-CJdB2aJG.js → view-C9Xks5Gy.js} +5 -4
- package/dist/{view-off-gIw--Mbm.js → view-off-BuSbQwX0.js} +5 -4
- package/dist/{volume-up-BhnS1V_P.js → volume-up-BLQXZI5X.js} +5 -4
- package/package.json +5 -4
- package/dist/_plugin-vue_export-helper-CCTR5HVY.js +0 -2770
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { type ComponentMountingOptions, mount } from "@vue/test-utils";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
import UiCheckbox from "./UiCheckbox.vue";
|
|
5
|
+
|
|
6
|
+
function createWrapper(options?: ComponentMountingOptions<typeof UiCheckbox>) {
|
|
7
|
+
return mount(UiCheckbox, {
|
|
8
|
+
...options,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
describe("UiCheckbox", () => {
|
|
13
|
+
it("renders attributes on correct element", () => {
|
|
14
|
+
const wrapper = createWrapper({
|
|
15
|
+
props: {
|
|
16
|
+
id: "id",
|
|
17
|
+
class: "testClass",
|
|
18
|
+
"data-testid": "testId",
|
|
19
|
+
name: "name",
|
|
20
|
+
value: "value",
|
|
21
|
+
checked: true,
|
|
22
|
+
required: "required",
|
|
23
|
+
disabled: true,
|
|
24
|
+
"aria-invalid": "true",
|
|
25
|
+
"aria-errormessage": "message",
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const root = wrapper.find(":first-child");
|
|
30
|
+
expect(root.element.classList.contains("testClass")).toBe(true);
|
|
31
|
+
expect(root.element.getAttribute("data-testid")).toBe("testId");
|
|
32
|
+
|
|
33
|
+
const input = wrapper.find("input");
|
|
34
|
+
expect(input.element.classList.contains("testClass")).toBe(false);
|
|
35
|
+
expect(input.element.getAttribute("data-testid")).not.toBe("testId");
|
|
36
|
+
expect(input.element.getAttribute("id")).toBe("id");
|
|
37
|
+
expect(input.element.getAttribute("name")).toBe("name");
|
|
38
|
+
expect(input.element.getAttribute("value")).toBe("value");
|
|
39
|
+
expect(input.element.hasAttribute("checked")).toBe(true);
|
|
40
|
+
expect(input.element.hasAttribute("required")).toBe(true);
|
|
41
|
+
expect(input.element.hasAttribute("disabled")).toBe(true);
|
|
42
|
+
expect(input.element.getAttribute("aria-invalid")).toBe("true");
|
|
43
|
+
expect(input.element.getAttribute("aria-errormessage")).toBe("message");
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it("renders checkbox with default slot content", () => {
|
|
47
|
+
const wrapper = mount(UiCheckbox, {
|
|
48
|
+
slots: {
|
|
49
|
+
default: "Default Slot",
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
expect(wrapper.text()).toBe("Default Slot");
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("should click change value", async () => {
|
|
57
|
+
const wrapper = mount(UiCheckbox, {
|
|
58
|
+
props: {
|
|
59
|
+
checked: false,
|
|
60
|
+
disabled: false,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
const checkboxInput = wrapper.find("input");
|
|
64
|
+
|
|
65
|
+
await checkboxInput.trigger("click");
|
|
66
|
+
await checkboxInput.trigger("change");
|
|
67
|
+
expect(checkboxInput.element.checked).toBe(true);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("should be gray", async () => {
|
|
71
|
+
const wrapper = mount(UiCheckbox, {
|
|
72
|
+
props: {
|
|
73
|
+
color: "gray",
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
expect(wrapper.find("span").classes("before:border-gray-800")).toBe(true);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("should be blue", async () => {
|
|
80
|
+
const wrapper = mount(UiCheckbox, {
|
|
81
|
+
props: {
|
|
82
|
+
color: "blue",
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
expect(wrapper.find("span").classes("before:border-blue-default")).toBe(
|
|
87
|
+
true,
|
|
88
|
+
);
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it("should be text size medium", async () => {
|
|
92
|
+
const wrapper = mount(UiCheckbox, {
|
|
93
|
+
props: {
|
|
94
|
+
textSize: "medium",
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
expect(wrapper.find("span").classes("text-base")).toBe(true);
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it("should be text size small", async () => {
|
|
102
|
+
const wrapper = mount(UiCheckbox, {
|
|
103
|
+
props: {
|
|
104
|
+
textSize: "small",
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
expect(wrapper.find("span").classes("text-sm")).toBe(true);
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it("should be text size extra small", async () => {
|
|
112
|
+
const wrapper = mount(UiCheckbox, {
|
|
113
|
+
props: {
|
|
114
|
+
textSize: "extra-small",
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
expect(wrapper.find("span").classes("text-xs")).toBe(true);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it("should be size medium", async () => {
|
|
122
|
+
const wrapper = mount(UiCheckbox, {
|
|
123
|
+
props: {
|
|
124
|
+
size: "medium",
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
expect(wrapper.find("input").classes("medium")).toBe(true);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it("should be size small", async () => {
|
|
132
|
+
const wrapper = mount(UiCheckbox, {
|
|
133
|
+
props: {
|
|
134
|
+
size: "small",
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
expect(wrapper.find("input").classes("small")).toBe(true);
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
it("should not show an error message", async () => {
|
|
142
|
+
const wrapper = mount(UiCheckbox, {
|
|
143
|
+
props: {
|
|
144
|
+
showError: false,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
expect(wrapper.find('[data-testid="errorMessage"]').exists()).toBe(false);
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it("should show an error message", async () => {
|
|
152
|
+
const wrapper = mount(UiCheckbox, {
|
|
153
|
+
props: {
|
|
154
|
+
showError: true,
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
expect(wrapper.find('[data-testid="errorMessage"]').exists()).toBe(true);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it("should show the correct error message", async () => {
|
|
162
|
+
const wrapper = mount(UiCheckbox, {
|
|
163
|
+
props: {
|
|
164
|
+
showError: true,
|
|
165
|
+
errorMessage: "test error",
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
expect(wrapper.find('[data-testid="errorMessage"]').text()).toBe(
|
|
170
|
+
"test error",
|
|
171
|
+
);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
|
|
3
|
+
import UiCheckbox from "./UiCheckbox.vue";
|
|
4
|
+
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Ui/UiCheckbox",
|
|
7
|
+
component: UiCheckbox,
|
|
8
|
+
argTypes: {
|
|
9
|
+
disabled: { control: "boolean" },
|
|
10
|
+
color: {
|
|
11
|
+
control: "select",
|
|
12
|
+
options: ["blue", "gray"],
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
control: "select",
|
|
16
|
+
options: ["small", "medium"],
|
|
17
|
+
},
|
|
18
|
+
textSize: {
|
|
19
|
+
control: "select",
|
|
20
|
+
options: ["extra-small", "small", "medium"],
|
|
21
|
+
},
|
|
22
|
+
showError: { control: "boolean" },
|
|
23
|
+
errorMessage: { control: "text" },
|
|
24
|
+
checked: { control: "boolean" },
|
|
25
|
+
|
|
26
|
+
// Slots
|
|
27
|
+
default: { control: "text" },
|
|
28
|
+
errors: { control: "text" },
|
|
29
|
+
},
|
|
30
|
+
args: {
|
|
31
|
+
disabled: false,
|
|
32
|
+
color: "blue",
|
|
33
|
+
textSize: "medium",
|
|
34
|
+
size: "medium",
|
|
35
|
+
showError: false,
|
|
36
|
+
checked: false,
|
|
37
|
+
errorMessage: "",
|
|
38
|
+
|
|
39
|
+
// Slots
|
|
40
|
+
default: "Check",
|
|
41
|
+
errors: "",
|
|
42
|
+
},
|
|
43
|
+
} satisfies Meta<typeof UiCheckbox>;
|
|
44
|
+
|
|
45
|
+
export default meta;
|
|
46
|
+
type Story = StoryObj<typeof meta>;
|
|
47
|
+
|
|
48
|
+
export const Default: Story = {
|
|
49
|
+
render: (args) => ({
|
|
50
|
+
components: { UiCheckbox },
|
|
51
|
+
setup() {
|
|
52
|
+
return { args };
|
|
53
|
+
},
|
|
54
|
+
template: `
|
|
55
|
+
<UiCheckbox v-bind="args">
|
|
56
|
+
{{ args.default }}
|
|
57
|
+
<template v-if="args.errors" #errors>
|
|
58
|
+
{{ args.errors }}
|
|
59
|
+
</template>
|
|
60
|
+
</UiCheckbox>
|
|
61
|
+
`,
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const Errors: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
errors: "This field is required.",
|
|
68
|
+
},
|
|
69
|
+
render: (args) => ({
|
|
70
|
+
components: { UiCheckbox },
|
|
71
|
+
setup() {
|
|
72
|
+
return { args };
|
|
73
|
+
},
|
|
74
|
+
template: `
|
|
75
|
+
<UiCheckbox v-bind="args">
|
|
76
|
+
Check
|
|
77
|
+
<template #errors>
|
|
78
|
+
{{ args.errors }}
|
|
79
|
+
</template>
|
|
80
|
+
</UiCheckbox>
|
|
81
|
+
`,
|
|
82
|
+
}),
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const Group: Story = {
|
|
86
|
+
render: (args) => ({
|
|
87
|
+
components: { UiCheckbox },
|
|
88
|
+
setup() {
|
|
89
|
+
return { args };
|
|
90
|
+
},
|
|
91
|
+
template: `
|
|
92
|
+
<div class="space-y-2">
|
|
93
|
+
<UiCheckbox v-bind="args" name="languages" value="en" checked>English</UiCheckbox>
|
|
94
|
+
<UiCheckbox v-bind="args" name="languages" value="de" checked>German</UiCheckbox>
|
|
95
|
+
<UiCheckbox v-bind="args" name="languages" value="fr">French</UiCheckbox>
|
|
96
|
+
</div>
|
|
97
|
+
`,
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { mount } from "@vue/test-utils";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
import UiChip from "./UiChip.vue";
|
|
5
|
+
|
|
6
|
+
describe("UiChip", () => {
|
|
7
|
+
it("renders big size by default", () => {
|
|
8
|
+
const wrapper = mount(UiChip);
|
|
9
|
+
|
|
10
|
+
expect(wrapper.classes("h-8")).toBe(true);
|
|
11
|
+
expect(wrapper.classes("px-2")).toBe(true);
|
|
12
|
+
expect(wrapper.classes("text-sm")).toBe(true);
|
|
13
|
+
});
|
|
14
|
+
it("renders small size", () => {
|
|
15
|
+
const wrapper = mount(UiChip, {
|
|
16
|
+
props: {
|
|
17
|
+
size: "small",
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
expect(wrapper.classes("h-5")).toBe(true);
|
|
22
|
+
expect(wrapper.classes("px-1")).toBe(true);
|
|
23
|
+
expect(wrapper.classes("text-xs")).toBe(true);
|
|
24
|
+
});
|
|
25
|
+
it("renders medium size", () => {
|
|
26
|
+
const wrapper = mount(UiChip, {
|
|
27
|
+
props: {
|
|
28
|
+
size: "medium",
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
expect(wrapper.classes("h-6")).toBe(true);
|
|
33
|
+
expect(wrapper.classes("px-2")).toBe(true);
|
|
34
|
+
expect(wrapper.classes("text-sm")).toBe(true);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it("renders hidden", () => {
|
|
38
|
+
const wrapper = mount(UiChip, {
|
|
39
|
+
props: {
|
|
40
|
+
isVisible: false,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
expect(wrapper.classes("hidden")).toBe(true);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it("renders with pointer class", () => {
|
|
47
|
+
const wrapper = mount(UiChip, {
|
|
48
|
+
props: {
|
|
49
|
+
cursorStyle: "pointer",
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
expect(wrapper.classes("cursor-pointer")).toBe(true);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("renders with text class", () => {
|
|
57
|
+
const wrapper = mount(UiChip, {
|
|
58
|
+
props: {
|
|
59
|
+
cursorStyle: "text",
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
expect(wrapper.classes("cursor-text")).toBe(true);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it("renders with default class", () => {
|
|
67
|
+
const wrapper = mount(UiChip, {
|
|
68
|
+
props: {
|
|
69
|
+
cursorStyle: "default",
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
expect(wrapper.classes("cursor-default")).toBe(true);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
|
|
3
|
+
import UiChip from "./UiChip.vue";
|
|
4
|
+
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "UI/UiChip",
|
|
7
|
+
component: UiChip,
|
|
8
|
+
argTypes: {
|
|
9
|
+
isVisible: {
|
|
10
|
+
control: "boolean",
|
|
11
|
+
},
|
|
12
|
+
cursorStyle: {
|
|
13
|
+
control: "select",
|
|
14
|
+
options: ["default", "text", "pointer"],
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
control: "select",
|
|
18
|
+
options: ["small", "medium", "big"],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
args: {
|
|
22
|
+
isVisible: true,
|
|
23
|
+
cursorStyle: "text",
|
|
24
|
+
size: "big",
|
|
25
|
+
},
|
|
26
|
+
} satisfies Meta<typeof UiChip>;
|
|
27
|
+
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
|
|
31
|
+
export const Default: Story = {
|
|
32
|
+
render: (args) => ({
|
|
33
|
+
components: { UiChip },
|
|
34
|
+
setup() {
|
|
35
|
+
return { args };
|
|
36
|
+
},
|
|
37
|
+
template: '<UiChip v-bind="args">Chip</UiChip>',
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { shallowMount } from "@vue/test-utils";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
import UiCollapseNavigation from "./UiCollapseNavigation.vue";
|
|
5
|
+
|
|
6
|
+
describe("UiCollapseNavigation", () => {
|
|
7
|
+
it("should toggle the menu when the button is clicked", async () => {
|
|
8
|
+
const wrapper = shallowMount(UiCollapseNavigation);
|
|
9
|
+
const button = wrapper.findComponent({ name: "UiButton" });
|
|
10
|
+
|
|
11
|
+
expect(wrapper.vm.openMenu).toBe(true);
|
|
12
|
+
|
|
13
|
+
await button.trigger("click");
|
|
14
|
+
|
|
15
|
+
expect(wrapper.vm.openMenu).toBe(false);
|
|
16
|
+
|
|
17
|
+
await button.trigger("click");
|
|
18
|
+
|
|
19
|
+
expect(wrapper.vm.openMenu).toBe(true);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
|
|
3
|
+
import UiFilterBadgeButton from "../UiFilterBadgeButton/UiFilterBadgeButton.vue";
|
|
4
|
+
import UiCollapseNavigation from "./UiCollapseNavigation.vue";
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Ui/UiCollapseNavigation",
|
|
8
|
+
component: UiCollapseNavigation,
|
|
9
|
+
argTypes: {
|
|
10
|
+
headline: {
|
|
11
|
+
control: "text",
|
|
12
|
+
},
|
|
13
|
+
hasBorderTop: {
|
|
14
|
+
control: "boolean",
|
|
15
|
+
},
|
|
16
|
+
openAsDefault: {
|
|
17
|
+
control: "boolean",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
args: {
|
|
21
|
+
headline: "Gespeicherte Suchen",
|
|
22
|
+
hasBorderTop: true,
|
|
23
|
+
openAsDefault: true,
|
|
24
|
+
},
|
|
25
|
+
tags: ["deprecated"],
|
|
26
|
+
} satisfies Meta<typeof UiCollapseNavigation>;
|
|
27
|
+
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
|
|
31
|
+
export const Default: Story = {
|
|
32
|
+
render: (args) => ({
|
|
33
|
+
setup() {
|
|
34
|
+
return { args };
|
|
35
|
+
},
|
|
36
|
+
components: { UiCollapseNavigation, UiFilterBadgeButton },
|
|
37
|
+
template: `
|
|
38
|
+
<UiCollapseNavigation v-bind='args' >
|
|
39
|
+
<UiFilterBadgeButton label="test eins" />
|
|
40
|
+
<UiFilterBadgeButton label="test zwei" />
|
|
41
|
+
<UiFilterBadgeButton label="test drei" />
|
|
42
|
+
</UiCollapseNavigation>
|
|
43
|
+
`,
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const MultipleMenus: Story = {
|
|
48
|
+
render: (args) => ({
|
|
49
|
+
setup() {
|
|
50
|
+
return { args };
|
|
51
|
+
},
|
|
52
|
+
components: { UiCollapseNavigation, UiFilterBadgeButton },
|
|
53
|
+
template: `
|
|
54
|
+
<UiCollapseNavigation headline="Menu eins">
|
|
55
|
+
<UiFilterBadgeButton label="test eins" />
|
|
56
|
+
<UiFilterBadgeButton label="test zwei" />
|
|
57
|
+
<UiFilterBadgeButton label="test drei" />
|
|
58
|
+
</UiCollapseNavigation>
|
|
59
|
+
<UiCollapseNavigation headline="Menu zwei">
|
|
60
|
+
<UiFilterBadgeButton label="test vier" />
|
|
61
|
+
<UiFilterBadgeButton label="test fünf" />
|
|
62
|
+
<UiFilterBadgeButton label="test sechs" />
|
|
63
|
+
</UiCollapseNavigation>
|
|
64
|
+
`,
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { mount } from "@vue/test-utils";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
import { COLORS } from "./lib/colors.js";
|
|
5
|
+
import UiColorPicker from "./UiColorPicker.vue";
|
|
6
|
+
|
|
7
|
+
describe("UiColorPicker", () => {
|
|
8
|
+
it("should have a default color selected", () => {
|
|
9
|
+
const wrapper = mount(UiColorPicker, {
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: "",
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
const defaultColor = wrapper.find("#color-e53935");
|
|
15
|
+
expect(defaultColor.find("#cp-checkmark")).toBeTruthy();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("should have a custom color set from v-model", () => {
|
|
19
|
+
const wrapper = mount(UiColorPicker, {
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: "#00c58e",
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const colorInputContainer = wrapper.find(".UiColorPicker-inputWrapper");
|
|
25
|
+
expect(colorInputContainer.find("#cp-checkmark")).toBeTruthy();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("should switch selected color from available options", () => {
|
|
29
|
+
const wrapper = mount(UiColorPicker, {
|
|
30
|
+
props: {
|
|
31
|
+
modelValue: "",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const thirdOption = wrapper.find(`#color-${COLORS[2]}`);
|
|
35
|
+
thirdOption.trigger("click");
|
|
36
|
+
expect(thirdOption.find("#cp-checkmark")).toBeTruthy();
|
|
37
|
+
expect(wrapper.emitted()["update:modelValue"][1]).toEqual([
|
|
38
|
+
`#${COLORS[2]}`,
|
|
39
|
+
]);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("should switch selected color from native color input", () => {
|
|
43
|
+
const wrapper = mount(UiColorPicker, {
|
|
44
|
+
props: {
|
|
45
|
+
modelValue: "",
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
const colorInputContainer = wrapper.find(".UiColorPicker-input");
|
|
49
|
+
colorInputContainer.setValue("#00c58e");
|
|
50
|
+
expect(wrapper.emitted()["update:modelValue"][1]).toEqual(["#00c58e"]);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
|
|
3
|
+
import UiLabel from "../UiLabel/UiLabel.vue";
|
|
4
|
+
import UiColorPicker from "./UiColorPicker.vue";
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Ui/UiColorPicker",
|
|
8
|
+
component: UiColorPicker,
|
|
9
|
+
argTypes: {
|
|
10
|
+
modelValue: {
|
|
11
|
+
control: "select",
|
|
12
|
+
options: [
|
|
13
|
+
"#e53935",
|
|
14
|
+
"#f50057",
|
|
15
|
+
"#8e24aa",
|
|
16
|
+
"#2196f3",
|
|
17
|
+
"#00acc1",
|
|
18
|
+
"#00897b",
|
|
19
|
+
"#00e676",
|
|
20
|
+
"#ffff00",
|
|
21
|
+
"#ffb300",
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
args: {
|
|
26
|
+
modelValue: "#e53935",
|
|
27
|
+
},
|
|
28
|
+
} satisfies Meta<typeof UiColorPicker>;
|
|
29
|
+
|
|
30
|
+
export default meta;
|
|
31
|
+
type Story = StoryObj<typeof meta>;
|
|
32
|
+
|
|
33
|
+
export const Default: Story = {
|
|
34
|
+
render: (args) => ({
|
|
35
|
+
components: { UiColorPicker, UiLabel },
|
|
36
|
+
template: `
|
|
37
|
+
<UiLabel class="inline-block mb-2 text-xs text-gray-700">Farbe wählen</UiLabel>
|
|
38
|
+
<UiColorPicker v-model="args.modelValue" />
|
|
39
|
+
`,
|
|
40
|
+
setup() {
|
|
41
|
+
return { args };
|
|
42
|
+
},
|
|
43
|
+
}),
|
|
44
|
+
};
|