@dpa-id-components/dpa-shared-components 22.0.0-next.1 → 22.0.0-next.11
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/{activities-BxyZQp7R.js → activities-CNONG76g.js} +2 -2
- package/dist/{ai-CvQQ6hUw.js → ai-BORdA1tP.js} +2 -2
- package/dist/{alert-BeP6nqRf.js → alert-CEh7TpHk.js} +2 -2
- package/dist/{alert-filled-COSmQYAa.js → alert-filled-GUQ1sv5T.js} +2 -2
- package/dist/{alert-CdAp0ksh.js → alert-k4dRvZkA.js} +2 -2
- package/dist/{alert-octagon-Cd-_T4ON.js → alert-octagon-D6ymVrlL.js} +2 -2
- package/dist/{apps-CtY6nO4d.js → apps-31DLZEqJ.js} +2 -2
- package/dist/{archive-DmV6cQ50.js → archive-DxH0AmUn.js} +2 -2
- package/dist/{arrow-down-Cfib5c-0.js → arrow-down-B9xmpEKh.js} +2 -2
- package/dist/{arrow-left-CFSY8V--.js → arrow-left-w89ZP810.js} +2 -2
- package/dist/{arrow-nav-left-BRYPr4oj.js → arrow-nav-left-CsT11yHm.js} +2 -2
- package/dist/{arrow-nav-right-PqR7W08e.js → arrow-nav-right-CauLQRaf.js} +2 -2
- package/dist/{arrow-right-ByFSLzJb.js → arrow-right-Dj7Me-mB.js} +2 -2
- package/dist/{arrow-up-DfhQKYKi.js → arrow-up-C7yQWUg5.js} +2 -2
- package/dist/{arrowhead-left-BxBCmhZy.js → arrowhead-left-D3prb6lT.js} +2 -2
- package/dist/{arrowhead-right-D6Hk6b6x.js → arrowhead-right-DYkeDm5p.js} +2 -2
- package/dist/{arrowhead-top-wkcSxZmc.js → arrowhead-top-D6Yiw4OG.js} +2 -2
- package/dist/assets/icons/lock-filled.vue.d.ts +3 -0
- package/dist/assets/icons/play-filled.vue.d.ts +3 -0
- package/dist/{atmo-CqanVC-e.js → atmo-BYdaOrhT.js} +2 -2
- package/dist/{audio-DS8plcCU.js → audio-BLhGEnZc.js} +2 -2
- package/dist/{audio-Cgg6MUeM.js → audio-CaUo0DpR.js} +2 -2
- package/dist/{bag-B28jMR7E.js → bag-DfUnEdIG.js} +2 -2
- package/dist/{bell-k_sZgnpL.js → bell-BUoHDgUa.js} +2 -2
- package/dist/{bell-filled-7gfK8601.js → bell-filled-9k1Rm3vh.js} +2 -2
- package/dist/{book-CqUJ_JRz.js → book-DJ-BeeEm.js} +2 -2
- package/dist/{bookmark-D65iW--h.js → bookmark-C6STJXUN.js} +2 -2
- package/dist/{bookmark-filled-5lCW1BfF.js → bookmark-filled-CxwMfIfF.js} +2 -2
- package/dist/{box-BCDNtaq7.js → box-DFDPFTQ7.js} +2 -2
- package/dist/{bulb-12wSYpgA.js → bulb-qwe4TWu7.js} +2 -2
- package/dist/{call-CW04DyHi.js → call-CfOzRaYz.js} +2 -2
- package/dist/{camera-CbeyxVU5.js → camera-BCW_KVfC.js} +2 -2
- package/dist/{check-BpPjjXqx.js → check-CiZxunah.js} +2 -2
- package/dist/{checklist-CFCfO7IN.js → checklist-CKV_EHso.js} +2 -2
- package/dist/{checkmark-DhUksPvT.js → checkmark-BE0OoZGa.js} +2 -2
- package/dist/{checkmark-double-BNGXAUiT.js → checkmark-double-BJAvABOC.js} +2 -2
- package/dist/{chevron-down-BjZ6BFFp.js → chevron-down-B5PIbEio.js} +2 -2
- package/dist/{chevron-left-Z-D_OY2t.js → chevron-left-BPryaWHJ.js} +2 -2
- package/dist/{chevron-right-D1GfZQB6.js → chevron-right-CB2iqaCO.js} +2 -2
- package/dist/{chevron-up-DWZ1F8w0.js → chevron-up-NvAEC--2.js} +2 -2
- package/dist/{clipboard-CNCIToKK.js → clipboard-BsskWPLx.js} +2 -2
- package/dist/{clock-CqWSNhFX.js → clock-D3iR841r.js} +2 -2
- package/dist/{close-oHIGT_JQ.js → close-BwgoeQAp.js} +2 -2
- package/dist/{cloud-save-CWTQ5IHS.js → cloud-save-C1k851Z_.js} +2 -2
- package/dist/{code-BD5nOHqK.js → code-CbwDeiVM.js} +2 -2
- package/dist/{collapse-D6QeCZC7.js → collapse-BIUDbTyr.js} +2 -2
- package/dist/{color-palette-BpONORjj.js → color-palette-DUY9An-f.js} +2 -2
- package/dist/{comment-D5RZxZWG.js → comment-DUUDjk_v.js} +2 -2
- package/dist/{comment-filled-Cl_qZ6Fz.js → comment-filled-rvm3HWly.js} +2 -2
- package/dist/components/UiBadge/UiBadge.vue.d.ts +1 -1
- package/dist/components/UiButton/UiButton.vue.d.ts +1 -1
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +35 -32
- package/dist/components/UiDialog/UiDialog.vue.d.ts +1 -0
- package/dist/components/UiIcon/icons.d.ts +2 -0
- package/dist/components/UiInput/UiInput.vue.d.ts +35 -32
- package/dist/components/UiListItem/UiListItem.vue.d.ts +2 -3
- package/dist/components/UiMenu/UiMenu.vue.d.ts +1 -3
- package/dist/components/UiPopover/UiPopover.vue.d.ts +5 -1
- package/dist/components/UiToggleButton/UiToggleButton.vue.d.ts +1 -1
- package/dist/{copy-BDnlScSS.js → copy-DIcAlkg5.js} +2 -2
- package/dist/{copy-link-BSfa58Tb.js → copy-link-Dy9otjUI.js} +2 -2
- package/dist/{delete-dDyi0gau.js → delete-BI38E8vg.js} +2 -2
- package/dist/{download-B-ZTsIBv.js → download-COkMFqqt.js} +2 -2
- package/dist/{dpa-id-DRnjTcHI.js → dpa-id-lBIeVHgX.js} +2 -2
- package/dist/dpa-shared-components.d.ts +1 -1
- package/dist/dpa-shared-components.js +4339 -4120
- package/dist/{edit-BbFkVyRd.js → edit-DFZucLKb.js} +2 -2
- package/dist/{edit-add-CAPOsjts.js → edit-add-Cx7x5gfl.js} +2 -2
- package/dist/{eil-CzEP-9Lo.js → eil-BjfC8db7.js} +2 -2
- package/dist/{emoji-BjLqvypC.js → emoji-CZAa65rh.js} +2 -2
- package/dist/{emoji-add-BB4fB4th.js → emoji-add-Bdw-xZuW.js} +2 -2
- package/dist/{envelope-DftzB5Ol.js → envelope-BL-sHuqE.js} +2 -2
- package/dist/eslint.base.config.js +1 -4
- package/dist/{event-FR1JMgj6.js → event-C6fYIB3A.js} +2 -2
- package/dist/{expand-DaVQ0gpz.js → expand-CbaTiURl.js} +2 -2
- package/dist/{external-link-2Es0qWwd.js → external-link-DKF31dpS.js} +2 -2
- package/dist/{file-AHJ00f5M.js → file-DWQzWW7U.js} +2 -2
- package/dist/{file-pdf-CJDdjKS0.js → file-pdf-C4WTAvL4.js} +2 -2
- package/dist/{filter-CXjBFUUg.js → filter-kGJtnOhb.js} +2 -2
- package/dist/{flag-CbX4PUMS.js → flag-L7yd4mwV.js} +2 -2
- package/dist/{flag-filled-VmJW-U0p.js → flag-filled-CTDa2efs.js} +2 -2
- package/dist/{flags-Buo1j-9g.js → flags-Dl7zJKmO.js} +2 -2
- package/dist/{flash-Dlr5gL01.js → flash-DZhODZa2.js} +2 -2
- package/dist/{folder-DQwCjGZC.js → folder-9Uwlobw5.js} +2 -2
- package/dist/{folder-add-zPr2Gmtj.js → folder-add-BTNpiyeV.js} +2 -2
- package/dist/{folder-filled-D6pmcH0e.js → folder-filled-VCsVbqgw.js} +2 -2
- package/dist/{gallery-DPl8qZQu.js → gallery-CaJoU7iC.js} +2 -2
- package/dist/{gallery-CfUbckcB.js → gallery-D-A6Lk4l.js} +2 -2
- package/dist/{graphic-BbhCuiiE.js → graphic-BHfsGi2Y.js} +2 -2
- package/dist/{graphic-nXH5ifxc.js → graphic-BtBeBP53.js} +2 -2
- package/dist/{graphics-Dp8pQzs-.js → graphics-BQsurkrS.js} +2 -2
- package/dist/{grid-1-DZUEMbtb.js → grid-1-CYbZv-UT.js} +2 -2
- package/dist/{grid-2-BQ-9yylY.js → grid-2-BTFSXvzD.js} +2 -2
- package/dist/{grid-3-BGhZrrCJ.js → grid-3-BjlnBMzz.js} +2 -2
- package/dist/{grid-4-DY9N435A.js → grid-4-BQUX0ES8.js} +2 -2
- package/dist/{grid-6-B0BR3wbB.js → grid-6-CBmGEiqx.js} +2 -2
- package/dist/{grid-9-BWhM7qat.js → grid-9-B4NrxHyA.js} +2 -2
- package/dist/{grid-masonry-9-DiiX1pQo.js → grid-masonry-9-5-pMpPJP.js} +2 -2
- package/dist/{grid-masonry-1e9tYkSK.js → grid-masonry-CQKadmp9.js} +2 -2
- package/dist/{help-CLfj4LQM.js → help-DRp9OUcp.js} +2 -2
- package/dist/{home-D6htLjOF.js → home-BXPuwKXk.js} +2 -2
- package/dist/{image-DnYnaoeu.js → image-BuaeqPub.js} +2 -2
- package/dist/{image-focus-point-BJ7HhehR.js → image-focus-point-TJFo_N1n.js} +2 -2
- package/dist/{impact-high-DuECIU0d.js → impact-high-DVgcn-Ae.js} +2 -2
- package/dist/{impact-low-DMtzvmWi.js → impact-low-CsvuPmk_.js} +2 -2
- package/dist/{impact-medium-B5-WfnV2.js → impact-medium-GY_OHSc1.js} +2 -2
- package/dist/{impact-very-high-C1K1nCE9.js → impact-very-high-B3en_oYR.js} +2 -2
- package/dist/{impact-very-low-CXbiBK6E.js → impact-very-low-Bb-zEAGB.js} +2 -2
- package/dist/{info-Ca-64c_9.js → info-CaNyekC4.js} +2 -2
- package/dist/{info-filled-PYbvwGmZ.js → info-filled-BMA19BzN.js} +2 -2
- package/dist/{label-D8X5FrVe.js → label-Bw1zj9W1.js} +2 -2
- package/dist/{label-filled-DjSc-Fk4.js → label-filled-DrguwEbm.js} +2 -2
- package/dist/{language-OE6ZfER_.js → language-rz5Z2ZmC.js} +2 -2
- package/dist/{latest-D0dlub5f.js → latest-ChE2cmSz.js} +2 -2
- package/dist/{lightbulb-DKJrsADi.js → lightbulb-DNR4PX3F.js} +2 -2
- package/dist/{list-BviTrZEl.js → list-Cz72rNRB.js} +2 -2
- package/dist/{list-search-Ck6anukf.js → list-search-BFpET5qV.js} +2 -2
- package/dist/{lock-C5vUwbkA.js → lock-DJTDJhgw.js} +2 -2
- package/dist/lock-filled-DRjvJBj3.js +18 -0
- package/dist/{mail-CtA-d2d0.js → mail-Bkf5whgc.js} +2 -2
- package/dist/{map-filled-Y8JaYK4Y.js → map-filled-DOurRYP3.js} +2 -2
- package/dist/{map-FF2zfEGP.js → map-xA3002JW.js} +2 -2
- package/dist/{menu-DFzmvE6J.js → menu-2v2TRGv7.js} +2 -2
- package/dist/{minus-COmVHb9S.js → minus-BHrEG9BZ.js} +2 -2
- package/dist/{more-horizontal-DzHbd3yn.js → more-horizontal-BiLFHNjR.js} +2 -2
- package/dist/{more-vertical-CiJm6ZaV.js → more-vertical-MHbB9_He.js} +2 -2
- package/dist/{move-CUyDTrlz.js → move-C2Mel2Fs.js} +2 -2
- package/dist/{move-up-down-3AiMDXGu.js → move-up-down-CX9AFsb5.js} +2 -2
- package/dist/{navigation-BryXzz7G.js → navigation-BxUEjd2D.js} +2 -2
- package/dist/{note-CXIfkCb0.js → note-JDaeQ7KP.js} +2 -2
- package/dist/{offline-BlqqTvjx.js → offline-DTVkLzxG.js} +2 -2
- package/dist/{package-BEkSqrZt.js → package-Cqki3iBp.js} +2 -2
- package/dist/{package-pKbuF39E.js → package-a6wVeuDo.js} +2 -2
- package/dist/{paper-plane-CwVjTgAB.js → paper-plane-DAhJxCyF.js} +2 -2
- package/dist/{pause-D-nbILiS.js → pause-D9YWbY88.js} +2 -2
- package/dist/{pdf-C7o5LP5D.js → pdf-DYHgIGl5.js} +2 -2
- package/dist/{pen-5O6IZM5k.js → pen-DpSe4QTA.js} +2 -2
- package/dist/{pen-check-GQoVyZ_V.js → pen-check-B6w-qyKk.js} +2 -2
- package/dist/{people-CFA1u84D.js → people-L-RBpthJ.js} +2 -2
- package/dist/{phone-BmL2p-7F.js → phone-D9f_M1qn.js} +2 -2
- package/dist/{picture-jf1PkZfY.js → picture-CN4X8eKB.js} +2 -2
- package/dist/{picture-BBiWVmta.js → picture-CmfKLBKL.js} +2 -2
- package/dist/{pin-CTaBntUQ.js → pin-BxwEBnT3.js} +2 -2
- package/dist/{planning-s3sRV6ix.js → planning-f_b-yvy0.js} +2 -2
- package/dist/play-B3HQvb0Y.js +18 -0
- package/dist/play-filled-D5vhGrVt.js +18 -0
- package/dist/{plus-Dm-ZxxHJ.js → plus-C8VUl4nl.js} +2 -2
- package/dist/{print-B5fjHJZL.js → print-l0oxfj0P.js} +2 -2
- package/dist/{refresh-gU5ZZuG6.js → refresh-NFCjjw_E.js} +2 -2
- package/dist/{reset-CwU1iGF5.js → reset-ejMu30sL.js} +2 -2
- package/dist/{responsive-BHNmDmM6.js → responsive-DxkuLBT-.js} +2 -2
- package/dist/{rubix-thema-BZvVEFud.js → rubix-thema-C_AFU2TJ.js} +2 -2
- package/dist/{save-mTHDeUnL.js → save-CXjuYnpN.js} +2 -2
- package/dist/{saved-search-DJO4_yPH.js → saved-search-CFvfKYcT.js} +2 -2
- package/dist/{saved-search-filled-CNz5iwu_.js → saved-search-filled-CzEFnSAz.js} +2 -2
- package/dist/{search-B5yHBLf_.js → search-DCYa9f-a.js} +2 -2
- package/dist/{settings-Hb_Y7Y53.js → settings-D744QSWD.js} +2 -2
- package/dist/{share-OpdW8ZmZ.js → share-D4fImRnp.js} +2 -2
- package/dist/{share-alternative-C3pSVTYb.js → share-alternative-jYDTaOhB.js} +2 -2
- package/dist/{sidebar-DtAUGBof.js → sidebar-CymSOARn.js} +2 -2
- package/dist/{sidebar-filled-BnnqCUYl.js → sidebar-filled-gWTXdyC3.js} +2 -2
- package/dist/{slack-mCoCq7b9.js → slack-CxvOlRRy.js} +2 -2
- package/dist/{slider-config-yjKG-9r9.js → slider-config-D65lpbtz.js} +2 -2
- package/dist/{spellcheck-bP4DPCKJ.js → spellcheck-CAd06Iwp.js} +2 -2
- package/dist/{spinner-CrCQ6H6L.js → spinner-C2v5HebP.js} +2 -2
- package/dist/src/assets/icons/lock-filled.vue +13 -0
- package/dist/src/assets/icons/play-filled.vue +13 -0
- package/dist/src/assets/icons/play.vue +1 -1
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +12 -12
- package/dist/src/components/UiBadge/UiBadge.spec.ts +3 -3
- package/dist/src/components/UiBadge/UiBadge.stories.ts +1 -1
- package/dist/src/components/UiBadge/UiBadge.vue +3 -8
- package/dist/src/components/UiButton/README.md +8 -8
- package/dist/src/components/UiButton/UiButton.spec.ts +3 -1
- package/dist/src/components/UiButton/UiButton.stories.ts +18 -1
- package/dist/src/components/UiButton/UiButton.vue +12 -7
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +2 -2
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +9 -8
- package/dist/src/components/UiCard/UiCard.spec.ts +2 -2
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +4 -4
- package/dist/src/components/UiCheckbox/README.md +9 -9
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +21 -8
- package/dist/src/components/UiCheckbox/UiCheckbox.vue +6 -2
- package/dist/src/components/UiChip/UiChip.spec.ts +4 -4
- package/dist/src/components/UiChip/UiChip.vue +2 -2
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +2 -2
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +1 -1
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +5 -5
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +12 -12
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +48 -28
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +21 -21
- package/dist/src/components/UiDialog/UiDialog.spec.ts +5 -5
- package/dist/src/components/UiDialog/UiDialog.stories.ts +1 -0
- package/dist/src/components/UiDialog/UiDialog.vue +49 -1
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +6 -6
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +6 -6
- package/dist/src/components/UiIcon/UiIcon.spec.ts +4 -4
- package/dist/src/components/UiIcon/UiIcon.stories.ts +8 -4
- package/dist/src/components/UiIcon/UiIconLoading.vue +8 -1
- package/dist/src/components/UiIcon/icons.ts +2 -0
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +6 -6
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +6 -6
- package/dist/src/components/UiInput/README.md +28 -17
- package/dist/src/components/UiInput/UiInput.spec.ts +20 -0
- package/dist/src/components/UiInput/UiInput.stories.ts +34 -7
- package/dist/src/components/UiInput/UiInput.vue +7 -4
- package/dist/src/components/UiList/UiList.spec.ts +2 -2
- package/dist/src/components/UiListItem/README.md +0 -1
- package/dist/src/components/UiListItem/UiListItem.spec.ts +8 -8
- package/dist/src/components/UiListItem/UiListItem.vue +5 -8
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.stories.ts +8 -4
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.vue +1 -1
- package/dist/src/components/UiMenu/README.md +0 -2
- package/dist/src/components/UiMenu/UiMenu.spec.ts +5 -5
- package/dist/src/components/UiMenu/UiMenu.stories.ts +83 -146
- package/dist/src/components/UiMenu/UiMenu.vue +98 -102
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +2 -2
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +2 -2
- package/dist/src/components/UiPopover/UiPopover.stories.ts +1 -1
- package/dist/src/components/UiPopover/UiPopover.vue +30 -7
- package/dist/src/components/UiRadioButton/UiRadioButton.stories.ts +17 -8
- package/dist/src/components/UiRadioButton/UiRadioButton.vue +1 -1
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +4 -4
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +6 -6
- package/dist/src/components/UiSearchBar/UiSearchBar.vue +1 -1
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +4 -4
- package/dist/src/components/UiSection/UiSection.spec.ts +5 -5
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +3 -3
- package/dist/src/components/UiSelect/{UIiSelect.spec.ts → UiSelect.spec.ts} +16 -8
- package/dist/src/components/UiSelect/UiSelect.stories.ts +13 -6
- package/dist/src/components/UiSelect/UiSelect.vue +14 -2
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +2 -2
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +8 -8
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +4 -4
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +1 -1
- package/dist/src/components/UiSpinner/UiSpinner.vue +31 -32
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +11 -11
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +8 -8
- package/dist/src/components/UiToggleButton/UiToggleButton.vue +19 -31
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +9 -9
- package/dist/{standard-view-CN0ixRE4.js → standard-view-BoYytoMT.js} +2 -2
- package/dist/{star-filled-CdXMXBn7.js → star-filled-CpCXunl1.js} +2 -2
- package/dist/{star-BKWqck4u.js → star-h8P_5_mG.js} +2 -2
- package/dist/{stop-B8l9lmwT.js → stop-CUitimZI.js} +2 -2
- package/dist/{story-DOxZDwJp.js → story-DHD4LNQr.js} +2 -2
- package/dist/{story-Cxy8EkgB.js → story-DRn-XI6F.js} +2 -2
- package/dist/style.css +2 -2
- package/dist/{sync-BW_fAqt6.js → sync-Y2eA3WT_.js} +2 -2
- package/dist/{tasks-DLNuebMi.js → tasks-C2MvrwpO.js} +2 -2
- package/dist/{text-Bsl2QZz3.js → text-C4wZ-s0Z.js} +2 -2
- package/dist/{text-CPSps-qh.js → text-C7Bt0-5h.js} +2 -2
- package/dist/{thumbs-down-pSf_ND98.js → thumbs-down-DRz1ad6Z.js} +2 -2
- package/dist/{thumbs-up-Braz70N6.js → thumbs-up-Tt4RC_93.js} +2 -2
- package/dist/{thumbs-up-double-C6foUkOq.js → thumbs-up-double-BiN5UiKl.js} +2 -2
- package/dist/{topic-BamlhBNV.js → topic-D6_NwX-F.js} +2 -2
- package/dist/{union-CYw04THu.js → union-s1aVCIT5.js} +2 -2
- package/dist/{upload-BL_iLqTa.js → upload-Csz6PEGc.js} +2 -2
- package/dist/{user-need-divert-me-2RaqdMMH.js → user-need-divert-me-NGIF6wBc.js} +2 -2
- package/dist/{user-need-educate-me-CRi42bIc.js → user-need-educate-me-B5uX-I2R.js} +2 -2
- package/dist/{user-need-give-me-perspective-BIF7v9vF.js → user-need-give-me-perspective-D1ivktbZ.js} +2 -2
- package/dist/{user-need-help-me-O0XSLzP-.js → user-need-help-me-Re-fEjwm.js} +2 -2
- package/dist/{user-need-touch-me-BueJ3SSh.js → user-need-touch-me-D025Uac5.js} +2 -2
- package/dist/{user-need-update-me-DP574fsn.js → user-need-update-me-DU3SfxYI.js} +2 -2
- package/dist/{video-DhS7zpNF.js → video-07EjnCpD.js} +2 -2
- package/dist/{video-CWHoNlON.js → video-B0IVRe8t.js} +2 -2
- package/dist/{video-overlay-D6e61Eo7.js → video-overlay-blAbosdl.js} +2 -2
- package/dist/{view-Bc5W8beK.js → view-BrJ61_ek.js} +2 -2
- package/dist/{view-off-DquC2i3E.js → view-off-Chs7NQif.js} +2 -2
- package/dist/{volume-up-DEzoW7Bq.js → volume-up-BDZJhktI.js} +2 -2
- package/package.json +33 -33
- package/src/assets/icons/lock-filled.vue +13 -0
- package/src/assets/icons/play-filled.vue +13 -0
- package/src/assets/icons/play.vue +1 -1
- package/src/components/UiBadge/UiBadge.vue +3 -8
- package/src/components/UiButton/README.md +8 -8
- package/src/components/UiButton/UiButton.vue +12 -7
- package/src/components/UiCheckbox/README.md +9 -9
- package/src/components/UiCheckbox/UiCheckbox.vue +6 -2
- package/src/components/UiChip/UiChip.vue +2 -2
- package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +1 -1
- package/src/components/UiDatePicker/UiDatePicker.vue +21 -21
- package/src/components/UiDialog/UiDialog.vue +49 -1
- package/src/components/UiIcon/UiIconLoading.vue +8 -1
- package/src/components/UiIcon/icons.ts +2 -0
- package/src/components/UiInput/README.md +28 -17
- package/src/components/UiInput/UiInput.vue +7 -4
- package/src/components/UiListItem/README.md +0 -1
- package/src/components/UiListItem/UiListItem.vue +5 -8
- package/src/components/UiMediaTypeIcon/UiMediaTypeIcon.vue +1 -1
- package/src/components/UiMenu/README.md +0 -2
- package/src/components/UiMenu/UiMenu.vue +98 -102
- package/src/components/UiPopover/UiPopover.vue +30 -7
- package/src/components/UiRadioButton/UiRadioButton.vue +1 -1
- package/src/components/UiSearchBar/UiSearchBar.vue +1 -1
- package/src/components/UiSelect/UiSelect.vue +14 -2
- package/src/components/UiSpinner/UiSpinner.vue +31 -32
- package/src/components/UiToggleButton/UiToggleButton.vue +19 -31
- package/dist/play-CArB2O7k.js +0 -18
- /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { randomInt } from "node:crypto";
|
|
2
2
|
|
|
3
3
|
import { mount } from "@vue/test-utils";
|
|
4
|
-
import { describe, expect,
|
|
4
|
+
import { describe, expect, test } from "vitest";
|
|
5
5
|
|
|
6
6
|
import UiCheckBoxGroup, { type CheckboxItem } from "./UiCheckBoxGroup.vue";
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ const entries = [
|
|
|
25
25
|
] as CheckboxItem[];
|
|
26
26
|
|
|
27
27
|
describe("UiCheckBoxGroup", () => {
|
|
28
|
-
|
|
28
|
+
test("renders menu with prop values", async () => {
|
|
29
29
|
const wrapper = mount(UiCheckBoxGroup, {
|
|
30
30
|
props: {
|
|
31
31
|
item: entries,
|
|
@@ -41,7 +41,7 @@ describe("UiCheckBoxGroup", () => {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
test("emits checked-all when first item is clicked", async () => {
|
|
45
45
|
const wrapper = mount(UiCheckBoxGroup, {
|
|
46
46
|
props: {
|
|
47
47
|
item: entries,
|
|
@@ -55,7 +55,7 @@ describe("UiCheckBoxGroup", () => {
|
|
|
55
55
|
expect(wrapper.emitted()).toHaveProperty("checked-all");
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
test("emits item-checked when one item is clicked", async () => {
|
|
59
59
|
const wrapper = mount(UiCheckBoxGroup, {
|
|
60
60
|
props: {
|
|
61
61
|
item: entries,
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
## Usage
|
|
4
4
|
|
|
5
5
|
```vue
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</UiCheckbox>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup lang="ts">
|
|
13
|
-
import { UiCheckbox } from "@dpa-id-components/dpa-shared-components";
|
|
14
|
-
</script>
|
|
6
|
+
<UiCheckbox required name="terms" appearance="secondary">
|
|
7
|
+
Accept terms and conditions
|
|
8
|
+
</UiCheckbox>
|
|
15
9
|
```
|
|
16
10
|
|
|
17
11
|
## API
|
|
18
12
|
|
|
13
|
+
### Models
|
|
14
|
+
|
|
15
|
+
| Name | Type | Default | Description |
|
|
16
|
+
|-----------|--------------------|-------------|----------------------|
|
|
17
|
+
| _default_ | `string[] \| string \| boolean` | `undefined` | Sets the input value |
|
|
18
|
+
|
|
19
19
|
### Props
|
|
20
20
|
|
|
21
21
|
**Note**: This component binds all non-prop attributes (apart from `class`) on its principal element (`input[type="checkbox"]`) instead of the root element. This allows you to add arbitrary HTML attributes (and event listeners) on the principal element without them being explicitly supported by the component.
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
ComponentPropsAndSlots,
|
|
3
|
+
Meta,
|
|
4
|
+
StoryObj,
|
|
5
|
+
} from "@storybook/vue3-vite";
|
|
2
6
|
import { ref } from "vue";
|
|
3
7
|
|
|
4
8
|
import UiCheckbox from "./UiCheckbox.vue";
|
|
5
9
|
|
|
10
|
+
type PropsAndCustomArgs = ComponentPropsAndSlots<typeof UiCheckbox> & {
|
|
11
|
+
name?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
6
15
|
const meta = {
|
|
7
16
|
title: "forms/UiCheckbox",
|
|
17
|
+
// @ts-expect-error generic components seem to cause type issues here that aren't easy to solve
|
|
8
18
|
component: UiCheckbox,
|
|
9
19
|
argTypes: {
|
|
10
20
|
// Attributes
|
|
11
|
-
|
|
21
|
+
name: { control: "text" },
|
|
12
22
|
disabled: { control: "boolean" },
|
|
13
23
|
},
|
|
14
24
|
args: {
|
|
15
25
|
// Attributes
|
|
16
|
-
|
|
26
|
+
name: "name",
|
|
17
27
|
disabled: false,
|
|
18
28
|
|
|
19
29
|
// Props
|
|
@@ -24,18 +34,19 @@ const meta = {
|
|
|
24
34
|
default: "Checkbox",
|
|
25
35
|
errors: "",
|
|
26
36
|
},
|
|
27
|
-
} satisfies Meta<
|
|
37
|
+
} satisfies Meta<PropsAndCustomArgs>;
|
|
28
38
|
|
|
29
39
|
export default meta;
|
|
30
|
-
type Story = StoryObj<
|
|
40
|
+
type Story = StoryObj<PropsAndCustomArgs>;
|
|
31
41
|
|
|
32
42
|
export const Default: Story = {
|
|
43
|
+
// @ts-expect-error generic components seem to cause type issues here that aren't easy to solve
|
|
33
44
|
render: (args) => ({
|
|
34
45
|
components: { UiCheckbox },
|
|
35
46
|
setup() {
|
|
36
47
|
return { args };
|
|
37
48
|
},
|
|
38
|
-
template: `
|
|
49
|
+
template: /*html*/ `
|
|
39
50
|
<UiCheckbox v-bind="args">
|
|
40
51
|
{{ args.default }}
|
|
41
52
|
<template v-if="args.errors" #errors>
|
|
@@ -50,12 +61,13 @@ export const Errors: Story = {
|
|
|
50
61
|
args: {
|
|
51
62
|
errors: "This field is required.",
|
|
52
63
|
},
|
|
64
|
+
// @ts-expect-error generic components seem to cause type issues here that aren't easy to solve
|
|
53
65
|
render: (args) => ({
|
|
54
66
|
components: { UiCheckbox },
|
|
55
67
|
setup() {
|
|
56
68
|
return { args };
|
|
57
69
|
},
|
|
58
|
-
template: `
|
|
70
|
+
template: /*html*/ `
|
|
59
71
|
<UiCheckbox v-bind="args">
|
|
60
72
|
{{ args.default }}
|
|
61
73
|
<template #errors>
|
|
@@ -67,6 +79,7 @@ export const Errors: Story = {
|
|
|
67
79
|
};
|
|
68
80
|
|
|
69
81
|
export const Group: Story = {
|
|
82
|
+
// @ts-expect-error generic components seem to cause type issues here that aren't easy to solve
|
|
70
83
|
render: (args) => ({
|
|
71
84
|
components: { UiCheckbox },
|
|
72
85
|
setup() {
|
|
@@ -74,7 +87,7 @@ export const Group: Story = {
|
|
|
74
87
|
|
|
75
88
|
return { args, languages };
|
|
76
89
|
},
|
|
77
|
-
template: `
|
|
90
|
+
template: /*html*/ `
|
|
78
91
|
<div class="space-y-2">
|
|
79
92
|
<UiCheckbox v-model="languages" v-bind="args" value="en">English</UiCheckbox>
|
|
80
93
|
<UiCheckbox v-model="languages" v-bind="args" value="de">German</UiCheckbox>
|
|
@@ -41,7 +41,11 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
|
-
<script
|
|
44
|
+
<script
|
|
45
|
+
setup
|
|
46
|
+
lang="ts"
|
|
47
|
+
generic="ModelValue extends string[] | string | boolean"
|
|
48
|
+
>
|
|
45
49
|
import { computed, useId } from "vue";
|
|
46
50
|
|
|
47
51
|
import { cn } from "../../utils/cn.ts";
|
|
@@ -75,7 +79,7 @@ const {
|
|
|
75
79
|
size?: "sm" | "md";
|
|
76
80
|
}>();
|
|
77
81
|
|
|
78
|
-
const model = defineModel<
|
|
82
|
+
const model = defineModel<ModelValue>();
|
|
79
83
|
|
|
80
84
|
const defaultId = useId();
|
|
81
85
|
const uniqueId = computed(() => id ?? `id-${defaultId}`);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiChip from "./UiChip.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiChip", () => {
|
|
7
|
-
|
|
7
|
+
test("renders sm size by default", () => {
|
|
8
8
|
const wrapper = mount(UiChip);
|
|
9
|
-
expect(wrapper.classes("text-sm/
|
|
9
|
+
expect(wrapper.classes("text-sm/6")).toBe(true);
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
test("renders md size", () => {
|
|
12
12
|
const wrapper = mount(UiChip, {
|
|
13
13
|
props: {
|
|
14
14
|
size: "md",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { shallowMount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiCollapseNavigation from "./UiCollapseNavigation.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiCollapseNavigation", () => {
|
|
7
|
-
|
|
7
|
+
test("should toggle the menu when the button is clicked", async () => {
|
|
8
8
|
const wrapper = shallowMount(UiCollapseNavigation);
|
|
9
9
|
const button = wrapper.findComponent({ name: "UiButton" });
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import { COLORS } from "./lib/colors.ts";
|
|
5
5
|
import UiColorPicker from "./UiColorPicker.vue";
|
|
6
6
|
|
|
7
7
|
describe("UiColorPicker", () => {
|
|
8
|
-
|
|
8
|
+
test("should have a default color selected", () => {
|
|
9
9
|
const wrapper = mount(UiColorPicker);
|
|
10
10
|
const defaultColor = wrapper.find(
|
|
11
11
|
`[data-testid='color-btn-${COLORS[0].substring(1)}']`,
|
|
@@ -13,7 +13,7 @@ describe("UiColorPicker", () => {
|
|
|
13
13
|
expect(defaultColor.find("#cp-checkmark")).toBeTruthy();
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
test("should have a custom color set from v-model", () => {
|
|
17
17
|
const wrapper = mount(UiColorPicker, {
|
|
18
18
|
props: {
|
|
19
19
|
modelValue: "#00c58e",
|
|
@@ -23,7 +23,7 @@ describe("UiColorPicker", () => {
|
|
|
23
23
|
expect(colorInputContainer.find("#cp-checkmark")).toBeTruthy();
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
test("should switch selected color from available options", async () => {
|
|
27
27
|
const wrapper = mount(UiColorPicker);
|
|
28
28
|
const thirdOption = wrapper.findAll("button").at(2);
|
|
29
29
|
await thirdOption?.trigger("click");
|
|
@@ -31,7 +31,7 @@ describe("UiColorPicker", () => {
|
|
|
31
31
|
expect(wrapper.emitted()["update:modelValue"][0]).toEqual([COLORS[2]]);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
test("should switch selected color from native color input", () => {
|
|
35
35
|
const wrapper = mount(UiColorPicker);
|
|
36
36
|
const colorInputContainer = wrapper.find(".UiColorPicker-input");
|
|
37
37
|
colorInputContainer.setValue("#00c58e");
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
subMonths,
|
|
10
10
|
subYears,
|
|
11
11
|
} from "date-fns";
|
|
12
|
-
import { describe, expect,
|
|
12
|
+
import { describe, expect, test } from "vitest";
|
|
13
13
|
|
|
14
14
|
import UiDatePicker, { type PresetRange } from "./UiDatePicker.vue";
|
|
15
15
|
|
|
@@ -41,21 +41,21 @@ function createWrapper(
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
describe("UiDatePicker", () => {
|
|
44
|
-
|
|
44
|
+
test("renders Datepicker", () => {
|
|
45
45
|
const wrapper = createWrapper();
|
|
46
46
|
expect(wrapper.find('[data-testid="datepicker-trigger"]').exists()).toBe(
|
|
47
47
|
true,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
test("should emit an open event", async () => {
|
|
52
52
|
const wrapper = createWrapper();
|
|
53
53
|
const trigger = wrapper.find('[data-testid="datepicker-trigger"]');
|
|
54
54
|
await trigger.trigger("click");
|
|
55
55
|
expect(wrapper.emitted("open")).toBeTruthy();
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
test("should emit a closed event", async () => {
|
|
59
59
|
const wrapper = createWrapper();
|
|
60
60
|
const trigger = wrapper.find('[data-testid="datepicker-trigger"]');
|
|
61
61
|
await trigger.trigger("click");
|
|
@@ -63,7 +63,7 @@ describe("UiDatePicker", () => {
|
|
|
63
63
|
expect(wrapper.emitted().closed[0]).toBeTruthy();
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
test("should show QuickFilters when leftSidebar is true", async () => {
|
|
67
67
|
const wrapper = createWrapper({
|
|
68
68
|
leftSidebar: true,
|
|
69
69
|
quickFilterHeadline: "Schnellfilter",
|
|
@@ -71,7 +71,7 @@ describe("UiDatePicker", () => {
|
|
|
71
71
|
inline: true,
|
|
72
72
|
});
|
|
73
73
|
await flushPromises();
|
|
74
|
-
expect(wrapper.find(".
|
|
74
|
+
expect(wrapper.find(".dp--sidebar-left").exists()).toBe(true);
|
|
75
75
|
expect(wrapper.html()).toContain("Schnellfilter");
|
|
76
76
|
for (const range of quickFilterRanges) {
|
|
77
77
|
expect(wrapper.find(`[data-testid="${range.label}"]`).exists()).toBe(
|
|
@@ -80,7 +80,7 @@ describe("UiDatePicker", () => {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
test("should emit range for Heute Quickfilter", async () => {
|
|
84
84
|
const wrapper = createWrapper({
|
|
85
85
|
leftSidebar: true,
|
|
86
86
|
quickFilterRanges,
|
|
@@ -93,7 +93,7 @@ describe("UiDatePicker", () => {
|
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
test("should emit range for Dieser Monat Quickfilter", async () => {
|
|
97
97
|
const wrapper = createWrapper({
|
|
98
98
|
leftSidebar: true,
|
|
99
99
|
quickFilterRanges,
|
|
@@ -107,7 +107,7 @@ describe("UiDatePicker", () => {
|
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
describe("action-extra slot", () => {
|
|
110
|
-
|
|
110
|
+
test("should show string when prop is set and no slot", async () => {
|
|
111
111
|
const wrapper = createWrapper({
|
|
112
112
|
actionExtraContent: "Extra info text",
|
|
113
113
|
inline: true,
|
|
@@ -116,7 +116,7 @@ describe("UiDatePicker", () => {
|
|
|
116
116
|
expect(wrapper.text()).toContain("Extra info text");
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
test("should override text when slot action-extra is used and prop is set", async () => {
|
|
120
120
|
const wrapper = createWrapper(
|
|
121
121
|
{
|
|
122
122
|
actionExtraContent: "Prop text",
|
|
@@ -131,10 +131,10 @@ describe("UiDatePicker", () => {
|
|
|
131
131
|
expect(wrapper.text()).not.toContain("Prop text");
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
test("should be empty when neither prop nor slot is set", async () => {
|
|
135
135
|
const wrapper = createWrapper({ inline: true });
|
|
136
136
|
|
|
137
|
-
const actionExtra = wrapper.find(".
|
|
137
|
+
const actionExtra = wrapper.find(".dp--action-extra");
|
|
138
138
|
if (actionExtra.exists()) {
|
|
139
139
|
expect(actionExtra.text().trim()).toBe("");
|
|
140
140
|
}
|
|
@@ -119,7 +119,9 @@ export const Default: Story = {
|
|
|
119
119
|
setup() {
|
|
120
120
|
return { args };
|
|
121
121
|
},
|
|
122
|
-
template:
|
|
122
|
+
template: /*html*/ `
|
|
123
|
+
<UiDatePicker v-bind="args" />
|
|
124
|
+
`,
|
|
123
125
|
}),
|
|
124
126
|
};
|
|
125
127
|
|
|
@@ -138,8 +140,12 @@ export const Inline: Story = {
|
|
|
138
140
|
});
|
|
139
141
|
return { args, date, formattedDate };
|
|
140
142
|
},
|
|
141
|
-
template:
|
|
142
|
-
<
|
|
143
|
+
template: /*html*/ `
|
|
144
|
+
<div class="space-y-8">
|
|
145
|
+
<UiDatePicker v-bind="args" v-model="date" />
|
|
146
|
+
<div>Selected Date: {{ formattedDate }}</div>
|
|
147
|
+
</div>
|
|
148
|
+
`,
|
|
143
149
|
}),
|
|
144
150
|
};
|
|
145
151
|
|
|
@@ -150,16 +156,18 @@ export const WithResetButton: Story = {
|
|
|
150
156
|
const date = ref([new Date(), new Date()]);
|
|
151
157
|
return { args, date };
|
|
152
158
|
},
|
|
153
|
-
template:
|
|
154
|
-
<
|
|
155
|
-
<
|
|
156
|
-
<
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
template: /*html*/ `
|
|
160
|
+
<UiDatePicker v-bind="args" v-model="date">
|
|
161
|
+
<template #action-extra="{ reset }">
|
|
162
|
+
<div class="text-left">
|
|
163
|
+
<UiButton appearance="secondary" size="xs" @click="reset">
|
|
164
|
+
<UiIcon name="reset" />
|
|
165
|
+
<span>Zurücksetzen</span>
|
|
166
|
+
</UiButton>
|
|
167
|
+
</div>
|
|
168
|
+
</template>
|
|
169
|
+
</UiDatePicker>
|
|
170
|
+
`,
|
|
163
171
|
}),
|
|
164
172
|
};
|
|
165
173
|
|
|
@@ -173,16 +181,18 @@ export const WithActionRow: Story = {
|
|
|
173
181
|
const date = ref();
|
|
174
182
|
return { args, date };
|
|
175
183
|
},
|
|
176
|
-
template:
|
|
177
|
-
<
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
template: /*html*/ `
|
|
185
|
+
<UiDatePicker v-bind="args" v-model="date">
|
|
186
|
+
<template #action-row="{ selectDate, closePicker }">
|
|
187
|
+
<UiButton appearance="secondary" size="xs" @click="closePicker">
|
|
188
|
+
Abbrechen
|
|
189
|
+
</UiButton>
|
|
190
|
+
<UiButton size="xs" @click="selectDate">
|
|
191
|
+
Anwenden
|
|
192
|
+
</UiButton>
|
|
193
|
+
</template>
|
|
194
|
+
</UiDatePicker>
|
|
195
|
+
`,
|
|
186
196
|
}),
|
|
187
197
|
};
|
|
188
198
|
|
|
@@ -204,7 +214,9 @@ export const MonthPicker: Story = {
|
|
|
204
214
|
setup() {
|
|
205
215
|
return { args };
|
|
206
216
|
},
|
|
207
|
-
template:
|
|
217
|
+
template: /*html*/ `
|
|
218
|
+
<UiDatePicker v-bind="args" />
|
|
219
|
+
`,
|
|
208
220
|
}),
|
|
209
221
|
};
|
|
210
222
|
|
|
@@ -222,7 +234,9 @@ export const WithQuickfilters: Story = {
|
|
|
222
234
|
setup() {
|
|
223
235
|
return { args };
|
|
224
236
|
},
|
|
225
|
-
template:
|
|
237
|
+
template: /*html*/ `
|
|
238
|
+
<UiDatePicker v-bind="args" />
|
|
239
|
+
`,
|
|
226
240
|
}),
|
|
227
241
|
};
|
|
228
242
|
|
|
@@ -238,7 +252,9 @@ export const WithMultiCalendars: Story = {
|
|
|
238
252
|
setup() {
|
|
239
253
|
return { args };
|
|
240
254
|
},
|
|
241
|
-
template:
|
|
255
|
+
template: /*html*/ `
|
|
256
|
+
<UiDatePicker v-bind="args" />
|
|
257
|
+
`,
|
|
242
258
|
}),
|
|
243
259
|
};
|
|
244
260
|
|
|
@@ -255,7 +271,9 @@ export const WithCustomFormatter: Story = {
|
|
|
255
271
|
const date = ref([new Date(), new Date()]);
|
|
256
272
|
return { args, date };
|
|
257
273
|
},
|
|
258
|
-
template:
|
|
274
|
+
template: /*html*/ `
|
|
275
|
+
<UiDatePicker v-bind="args" v-model="date" />
|
|
276
|
+
`,
|
|
259
277
|
}),
|
|
260
278
|
};
|
|
261
279
|
|
|
@@ -283,6 +301,8 @@ export const WithAllSettings: Story = {
|
|
|
283
301
|
setup() {
|
|
284
302
|
return { args };
|
|
285
303
|
},
|
|
286
|
-
template:
|
|
304
|
+
template: /*html*/ `
|
|
305
|
+
<UiDatePicker v-bind="args" />
|
|
306
|
+
`,
|
|
287
307
|
}),
|
|
288
308
|
};
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
'w-full min-w-0': triggerWidth === 'full',
|
|
71
71
|
'flex-none': triggerWidth === 'fit',
|
|
72
72
|
}"
|
|
73
|
-
:appearance="value ? '
|
|
73
|
+
:appearance="value ? 'fill-emphasis' : 'outline-subtle'"
|
|
74
74
|
:disabled
|
|
75
75
|
size="sm"
|
|
76
76
|
data-testid="datepicker-trigger"
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
<UiIcon class="text-neutral-subtle" name="chevron-right" size="sm" />
|
|
131
131
|
</template>
|
|
132
132
|
<template #arrow>
|
|
133
|
-
<div ref="menuArrow" class="
|
|
133
|
+
<div ref="menuArrow" class="dp--arrow-top"></div>
|
|
134
134
|
</template>
|
|
135
135
|
</VueDatePicker>
|
|
136
136
|
</div>
|
|
@@ -306,17 +306,17 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
306
306
|
<style>
|
|
307
307
|
@reference "../../tailwindPreset.css";
|
|
308
308
|
|
|
309
|
-
.
|
|
309
|
+
.dp--arrow-top {
|
|
310
310
|
left: 10%;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
.
|
|
313
|
+
.dp--menu {
|
|
314
314
|
border-radius: var(--radius-2xl);
|
|
315
315
|
box-shadow: var(--shadow-lg);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.dp--year-select,
|
|
319
|
-
.
|
|
319
|
+
.dp--month-year-select {
|
|
320
320
|
border-radius: var(--radius-2xl);
|
|
321
321
|
}
|
|
322
322
|
|
|
@@ -325,45 +325,45 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
325
325
|
padding: 0.25rem;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
.
|
|
328
|
+
.dp--flex-display {
|
|
329
329
|
gap: 2rem;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
.
|
|
332
|
+
.dp--sidebar-left {
|
|
333
333
|
padding: 0;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.
|
|
336
|
+
.dp--cell-inner {
|
|
337
337
|
border-radius: calc(infinity * 1px);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
.
|
|
340
|
+
.dp--cell-inner:hover {
|
|
341
341
|
border-radius: calc(infinity * 1px);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
.
|
|
344
|
+
.dp--today {
|
|
345
345
|
border: 1px solid var(--color-neutral-primary);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.
|
|
349
|
-
.
|
|
350
|
-
.
|
|
348
|
+
.dp--cell-auto-range,
|
|
349
|
+
.dp--cell-auto-range-start,
|
|
350
|
+
.dp--cell-auto-range-end {
|
|
351
351
|
border: none;
|
|
352
352
|
color: var(--color-neutral-primary);
|
|
353
353
|
background-color: var(--color-neutral-faint);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.
|
|
356
|
+
.dp--month-year-select {
|
|
357
357
|
font-size: var(--text-base);
|
|
358
358
|
font-weight: var(--font-weight-semibold);
|
|
359
359
|
color: var(--color-neutral-primary);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
.
|
|
362
|
+
.dp--calendar-header-separator {
|
|
363
363
|
display: none;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
.
|
|
366
|
+
.dp--calendar-header {
|
|
367
367
|
gap: 0.25rem;
|
|
368
368
|
align-items: center;
|
|
369
369
|
font-size: var(--text-xs);
|
|
@@ -371,26 +371,26 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
371
371
|
font-weight: var(--font-weight-semibold);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
.
|
|
374
|
+
.dp--calendar-header-item {
|
|
375
375
|
display: flex;
|
|
376
376
|
align-items: center;
|
|
377
377
|
justify-content: center;
|
|
378
378
|
color: var(--color-neutral-subtle);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
.
|
|
381
|
+
.dp--calendar-row {
|
|
382
382
|
gap: 0.25rem;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
.
|
|
386
|
-
.
|
|
385
|
+
.dp--action-row,
|
|
386
|
+
.dp--action-extra {
|
|
387
387
|
justify-content: end;
|
|
388
388
|
gap: 1rem;
|
|
389
389
|
border-top: 1px solid var(--color-neutral-faint);
|
|
390
390
|
padding: 0.5rem 1rem;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
.
|
|
393
|
+
.dp--theme-light {
|
|
394
394
|
--dp-font-family: var(--font-sans);
|
|
395
395
|
--dp-month-year-row-height: 2rem; /*Height of the month-year select row*/
|
|
396
396
|
--dp-button-icon-height: 1.5rem; /*Icon sizing in buttons*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiDialog from "./UiDialog.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiDialog", () => {
|
|
7
|
-
|
|
7
|
+
test("renders dialog with default slot content", () => {
|
|
8
8
|
const wrapper = mount(UiDialog, {
|
|
9
9
|
slots: {
|
|
10
10
|
header: "Header Slot",
|
|
@@ -14,7 +14,7 @@ describe("UiDialog", () => {
|
|
|
14
14
|
expect(wrapper.text()).toContain("Default Slot");
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
test("renders dialog with header slot content", () => {
|
|
18
18
|
const wrapper = mount(UiDialog, {
|
|
19
19
|
slots: {
|
|
20
20
|
header: "Header Slot",
|
|
@@ -25,7 +25,7 @@ describe("UiDialog", () => {
|
|
|
25
25
|
expect(wrapper.find("header").text()).toBe("Header Slot");
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
test("renders dialog with close button if by prop provided", () => {
|
|
29
29
|
const wrapper = mount(UiDialog, {
|
|
30
30
|
slots: {
|
|
31
31
|
header: "Header Slot",
|
|
@@ -39,7 +39,7 @@ describe("UiDialog", () => {
|
|
|
39
39
|
expect(wrapper.find("button")).toBeTruthy();
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
test("renders dialog with footer slot content", () => {
|
|
43
43
|
const wrapper = mount(UiDialog, {
|
|
44
44
|
slots: {
|
|
45
45
|
header: "Header Slot",
|