@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,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentMountingOptions, mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSelect from "./UiSelect.vue";
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ function createWrapper(
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
describe("UiSelect", () => {
|
|
13
|
-
|
|
13
|
+
test("renders attributes on correct element", () => {
|
|
14
14
|
const wrapper = createWrapper({
|
|
15
15
|
props: {
|
|
16
16
|
id: "id",
|
|
@@ -38,12 +38,16 @@ describe("UiSelect", () => {
|
|
|
38
38
|
expect(select.element.getAttribute("aria-errormessage")).toBe("message");
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
test("implements working v-model interface", async () => {
|
|
42
42
|
const wrapper = createWrapper({
|
|
43
43
|
slots: {
|
|
44
|
-
default: {
|
|
44
|
+
default: {
|
|
45
|
+
template: /*html*/ `
|
|
46
|
+
Options
|
|
47
|
+
`,
|
|
48
|
+
},
|
|
45
49
|
options: {
|
|
46
|
-
template: `
|
|
50
|
+
template: /*html*/ `
|
|
47
51
|
<option value="primary">Primary</option>
|
|
48
52
|
<option value="secondary">Secondary</option>
|
|
49
53
|
<option value="tertiary">Tertiary</option>
|
|
@@ -71,12 +75,16 @@ describe("UiSelect", () => {
|
|
|
71
75
|
expect(lastEvent).toEqual(["tertiary"]);
|
|
72
76
|
});
|
|
73
77
|
|
|
74
|
-
|
|
78
|
+
test("works without v-model", async () => {
|
|
75
79
|
const wrapper = createWrapper({
|
|
76
80
|
slots: {
|
|
77
|
-
default: {
|
|
81
|
+
default: {
|
|
82
|
+
template: /*html*/ `
|
|
83
|
+
Options
|
|
84
|
+
`,
|
|
85
|
+
},
|
|
78
86
|
options: {
|
|
79
|
-
template: `
|
|
87
|
+
template: /*html*/ `
|
|
80
88
|
<option value="">None</option>
|
|
81
89
|
<option value="primary">Primary</option>
|
|
82
90
|
<option value="secondary">Secondary</option>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
ComponentPropsAndSlots,
|
|
3
|
+
Meta,
|
|
4
|
+
StoryObj,
|
|
5
|
+
} from "@storybook/vue3-vite";
|
|
2
6
|
|
|
3
7
|
import UiSelect from "./UiSelect.vue";
|
|
4
8
|
|
|
@@ -12,12 +16,16 @@ const options: string[] = [
|
|
|
12
16
|
"done",
|
|
13
17
|
];
|
|
14
18
|
|
|
19
|
+
type PropsAndCustomArgs = ComponentPropsAndSlots<typeof UiSelect> & {
|
|
20
|
+
name?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
15
24
|
const meta = {
|
|
16
25
|
title: "forms/UiSelect",
|
|
17
26
|
component: UiSelect,
|
|
18
27
|
args: {
|
|
19
28
|
// Attributes
|
|
20
|
-
// @ts-ignore Storybook doesn't know that **any** component can receive arbitrary attributes and enforces this on the type level.
|
|
21
29
|
name: "status",
|
|
22
30
|
disabled: false,
|
|
23
31
|
|
|
@@ -30,17 +38,16 @@ const meta = {
|
|
|
30
38
|
},
|
|
31
39
|
argTypes: {
|
|
32
40
|
// Attributes
|
|
33
|
-
// @ts-ignore Storybook doesn't know that **any** component can receive arbitrary attributes and enforces this on the type level.
|
|
34
41
|
name: { control: "text" },
|
|
35
42
|
disabled: { control: "boolean" },
|
|
36
43
|
|
|
37
44
|
// Props
|
|
38
45
|
modelValue: { control: "select", options },
|
|
39
46
|
},
|
|
40
|
-
} satisfies Meta<
|
|
47
|
+
} satisfies Meta<PropsAndCustomArgs>;
|
|
41
48
|
|
|
42
49
|
export default meta;
|
|
43
|
-
type Story = StoryObj<
|
|
50
|
+
type Story = StoryObj<PropsAndCustomArgs>;
|
|
44
51
|
|
|
45
52
|
export const Default: Story = {
|
|
46
53
|
render: (args) => ({
|
|
@@ -48,7 +55,7 @@ export const Default: Story = {
|
|
|
48
55
|
return { args };
|
|
49
56
|
},
|
|
50
57
|
components: { UiSelect },
|
|
51
|
-
template: `
|
|
58
|
+
template: /*html*/ `
|
|
52
59
|
<UiSelect
|
|
53
60
|
v-model="args.modelValue"
|
|
54
61
|
v-bind="args"
|
|
@@ -89,7 +89,7 @@ select,
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
::picker(select) {
|
|
92
|
-
@apply
|
|
92
|
+
@apply my-1 overscroll-none rounded-lg border border-neutral-faint shadow-md;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
select::picker-icon {
|
|
@@ -97,12 +97,24 @@ select::picker-icon {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
select > :deep(option) {
|
|
100
|
-
@apply flex justify-between
|
|
100
|
+
@apply flex items-center justify-between px-4 py-1.5 focus-visible:focus-outline;
|
|
101
|
+
|
|
102
|
+
&:first-child {
|
|
103
|
+
@apply rounded-t-lg;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:last-child {
|
|
107
|
+
@apply rounded-b-lg;
|
|
108
|
+
}
|
|
101
109
|
|
|
102
110
|
&:enabled:hover {
|
|
103
111
|
@apply bg-neutral-pale;
|
|
104
112
|
}
|
|
105
113
|
|
|
114
|
+
&:focus-visible {
|
|
115
|
+
@apply -outline-offset-2;
|
|
116
|
+
}
|
|
117
|
+
|
|
106
118
|
&::checkmark {
|
|
107
119
|
@apply order-1 text-lg;
|
|
108
120
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiSkeletonBox from "./UiSkeletonBox.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiSkeletonBox", () => {
|
|
7
7
|
const wrapper = mount(UiSkeletonBox);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
test("renders default", () => {
|
|
10
10
|
expect(wrapper.classes("inline-block")).toBe(true);
|
|
11
11
|
expect(wrapper.classes("animate-pulse")).toBe(true);
|
|
12
12
|
expect(wrapper.classes("rounded-sm")).toBe(true);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiIcon from "../UiIcon/UiIcon.vue";
|
|
5
5
|
|
|
6
6
|
import UiSnackbar from "./UiSnackbar.vue";
|
|
7
7
|
|
|
8
8
|
describe("UiSnackbar", () => {
|
|
9
|
-
|
|
9
|
+
test("displays a text message via the default slot", () => {
|
|
10
10
|
const wrapper = mount(UiSnackbar, {
|
|
11
11
|
slots: {
|
|
12
12
|
default: "Hello, from snackbar",
|
|
@@ -19,7 +19,7 @@ describe("UiSnackbar", () => {
|
|
|
19
19
|
expect(wrapper.text()).toBe("Hello, from snackbar");
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
test("Is not visible when props don't say so", () => {
|
|
23
23
|
const wrapper = mount(UiSnackbar, {
|
|
24
24
|
slots: {
|
|
25
25
|
default: "Hello, from snackbar",
|
|
@@ -32,7 +32,7 @@ describe("UiSnackbar", () => {
|
|
|
32
32
|
expect(wrapper.find("div").exists()).toBe(false);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
test("displays an SVG icon via the icon slot", () => {
|
|
36
36
|
const wrapper = mount(UiSnackbar, {
|
|
37
37
|
slots: {
|
|
38
38
|
default: "Hello, from snackbar",
|
|
@@ -46,7 +46,7 @@ describe("UiSnackbar", () => {
|
|
|
46
46
|
expect(wrapper.findComponent(UiIcon)).toBeTruthy();
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
test("has an action button via the action slot", () => {
|
|
50
50
|
const wrapper = mount(UiSnackbar, {
|
|
51
51
|
slots: {
|
|
52
52
|
default: "Hello, from snackbar",
|
|
@@ -62,7 +62,7 @@ describe("UiSnackbar", () => {
|
|
|
62
62
|
expect(wrapper.emitted()["action-click"]).toBeTruthy();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
test("snackbar type success has green background", () => {
|
|
66
66
|
const wrapper = mount(UiSnackbar, {
|
|
67
67
|
slots: {
|
|
68
68
|
default: "Hello, from success snackbar",
|
|
@@ -77,7 +77,7 @@ describe("UiSnackbar", () => {
|
|
|
77
77
|
expect(coloredDiv.classes("bg-accent-green")).toBe(true);
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
test("snackbar type error has red background", () => {
|
|
81
81
|
const wrapper = mount(UiSnackbar, {
|
|
82
82
|
slots: {
|
|
83
83
|
default: "Hello, from error snackbar",
|
|
@@ -92,7 +92,7 @@ describe("UiSnackbar", () => {
|
|
|
92
92
|
expect(coloredDiv.classes("bg-accent-red")).toBe(true);
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
test("snackbar type info has gray-900 background", () => {
|
|
96
96
|
const wrapper = mount(UiSnackbar, {
|
|
97
97
|
slots: {
|
|
98
98
|
default: "Hello, from info snackbar",
|
|
@@ -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 UiSpinner from "./UiSpinner.vue";
|
|
5
5
|
|
|
6
6
|
describe("Spinner", () => {
|
|
7
|
-
|
|
7
|
+
test("renders with default props", () => {
|
|
8
8
|
const wrapper = mount(UiSpinner);
|
|
9
9
|
|
|
10
10
|
// Wrapper div should have size-6 class (lg size)
|
|
11
|
-
const wrapperDiv = wrapper.find("
|
|
11
|
+
const wrapperDiv = wrapper.find("svg");
|
|
12
12
|
expect(wrapperDiv.classes()).toContain("size-6");
|
|
13
13
|
|
|
14
14
|
// SVG should exist and animate
|
|
@@ -29,7 +29,7 @@ describe("Spinner", () => {
|
|
|
29
29
|
expect(arcCircle.classes()).toContain("text-primary");
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
test("renders neutral with opacity color class when appearance is neutral", () => {
|
|
33
33
|
const wrapper = mount(UiSpinner, {
|
|
34
34
|
props: {
|
|
35
35
|
appearance: "neutral",
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<svg
|
|
3
|
+
class="inline-flex animate-spin"
|
|
4
|
+
:class="sizeClass"
|
|
5
|
+
width="24"
|
|
6
|
+
height="24"
|
|
7
|
+
viewBox="0 0 32 32"
|
|
8
|
+
fill="none"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<circle
|
|
12
|
+
cx="16"
|
|
13
|
+
cy="16"
|
|
14
|
+
r="14.5"
|
|
15
|
+
data-testid="background-circle"
|
|
16
|
+
stroke="currentColor"
|
|
17
|
+
:class="backgroundClass"
|
|
18
|
+
stroke-width="3"
|
|
8
19
|
fill="none"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
cy="16"
|
|
24
|
-
r="14.5"
|
|
25
|
-
data-testid="arc-circle"
|
|
26
|
-
stroke="currentColor"
|
|
27
|
-
:class="arcClass"
|
|
28
|
-
stroke-width="3"
|
|
29
|
-
fill="none"
|
|
30
|
-
stroke-dasharray="22.78 68.33"
|
|
31
|
-
stroke-linecap="square"
|
|
32
|
-
/>
|
|
33
|
-
</svg>
|
|
34
|
-
</div>
|
|
20
|
+
/>
|
|
21
|
+
<circle
|
|
22
|
+
cx="16"
|
|
23
|
+
cy="16"
|
|
24
|
+
r="14.5"
|
|
25
|
+
data-testid="arc-circle"
|
|
26
|
+
stroke="currentColor"
|
|
27
|
+
:class="arcClass"
|
|
28
|
+
stroke-width="3"
|
|
29
|
+
fill="none"
|
|
30
|
+
stroke-dasharray="22.78 68.33"
|
|
31
|
+
stroke-linecap="square"
|
|
32
|
+
/>
|
|
33
|
+
</svg>
|
|
35
34
|
</template>
|
|
36
35
|
|
|
37
36
|
<script setup lang="ts">
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiTextButton from "./UiTextButton.vue";
|
|
5
5
|
|
|
6
6
|
describe("UiTextButton", () => {
|
|
7
|
-
|
|
7
|
+
test("should render defaults", () => {
|
|
8
8
|
const wrapper = mount(UiTextButton);
|
|
9
9
|
expect(wrapper.classes("font-normal")).toBe(true);
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
test("should render semibold font-weight", () => {
|
|
13
13
|
const wrapper = mount(UiTextButton, {
|
|
14
14
|
props: {
|
|
15
15
|
weight: "semibold",
|
|
@@ -18,7 +18,7 @@ describe("UiTextButton", () => {
|
|
|
18
18
|
expect(wrapper.classes("font-semibold")).toBe(true);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
test("should render xsmall font-size", () => {
|
|
22
22
|
const wrapper = mount(UiTextButton, {
|
|
23
23
|
props: {
|
|
24
24
|
size: "xsmall",
|
|
@@ -27,7 +27,7 @@ describe("UiTextButton", () => {
|
|
|
27
27
|
expect(wrapper.classes("text-xs")).toBe(true);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
test("should render small font-size", () => {
|
|
31
31
|
const wrapper = mount(UiTextButton, {
|
|
32
32
|
props: {
|
|
33
33
|
size: "small",
|
|
@@ -36,7 +36,7 @@ describe("UiTextButton", () => {
|
|
|
36
36
|
expect(wrapper.classes("text-sm")).toBe(true);
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
test("should render medium font-size", () => {
|
|
40
40
|
const wrapper = mount(UiTextButton, {
|
|
41
41
|
props: {
|
|
42
42
|
size: "medium",
|
|
@@ -45,7 +45,7 @@ describe("UiTextButton", () => {
|
|
|
45
45
|
expect(wrapper.classes("text-base")).toBe(true);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
test("should render blue text color", () => {
|
|
49
49
|
const wrapper = mount(UiTextButton, {
|
|
50
50
|
props: {
|
|
51
51
|
color: "blue",
|
|
@@ -54,7 +54,7 @@ describe("UiTextButton", () => {
|
|
|
54
54
|
expect(wrapper.classes("text-primary")).toBe(true);
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
test("should render gray text color", () => {
|
|
58
58
|
const wrapper = mount(UiTextButton, {
|
|
59
59
|
props: {
|
|
60
60
|
color: "gray",
|
|
@@ -63,7 +63,7 @@ describe("UiTextButton", () => {
|
|
|
63
63
|
expect(wrapper.classes("text-neutral-subtle")).toBe(true);
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
test("should render iconLeft", () => {
|
|
67
67
|
const iconLeft = "alert";
|
|
68
68
|
const wrapper = mount(UiTextButton, {
|
|
69
69
|
props: {
|
|
@@ -75,7 +75,7 @@ describe("UiTextButton", () => {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
test("should render iconRight", () => {
|
|
79
79
|
const iconRight = "alert";
|
|
80
80
|
const wrapper = mount(UiTextButton, {
|
|
81
81
|
props: {
|
|
@@ -87,7 +87,7 @@ describe("UiTextButton", () => {
|
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
test("should change gray text color when placement is oncanvas", () => {
|
|
91
91
|
const wrapper = mount(UiTextButton, {
|
|
92
92
|
props: {
|
|
93
93
|
color: "gray",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiToggleButton from "./UiToggleButton.vue";
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ function mountToggle(props = {}, slotContent = "Label") {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
describe("UiToggleButton", () => {
|
|
14
|
-
|
|
14
|
+
test("renders with correct defaults when no props are provided", () => {
|
|
15
15
|
const wrapper = mountToggle();
|
|
16
16
|
|
|
17
17
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -22,13 +22,13 @@ describe("UiToggleButton", () => {
|
|
|
22
22
|
expect(input.attributes("id")).toBeTruthy();
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
test("renders slot content", () => {
|
|
26
26
|
const wrapper = mountToggle({}, "Slot Label");
|
|
27
27
|
|
|
28
28
|
expect(wrapper.text()).toContain("Slot Label");
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
test("emits update:modelValue when clicked", async () => {
|
|
32
32
|
const wrapper = mountToggle({ modelValue: false });
|
|
33
33
|
|
|
34
34
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -38,7 +38,7 @@ describe("UiToggleButton", () => {
|
|
|
38
38
|
expect(wrapper.emitted("update:modelValue")?.[0]).toEqual([true]);
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
test("emits update:modelValue false when toggled from true", async () => {
|
|
42
42
|
const wrapper = mountToggle({ modelValue: true });
|
|
43
43
|
|
|
44
44
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -48,7 +48,7 @@ describe("UiToggleButton", () => {
|
|
|
48
48
|
expect(wrapper.emitted("update:modelValue")?.[0]).toEqual([false]);
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
test("disables the input when disabled prop is set", () => {
|
|
52
52
|
const wrapper = mountToggle({ disabled: true });
|
|
53
53
|
|
|
54
54
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -56,7 +56,7 @@ describe("UiToggleButton", () => {
|
|
|
56
56
|
expect((input.element as HTMLInputElement).disabled).toBe(true);
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
test("does not emit update:modelValue when disabled", async () => {
|
|
60
60
|
const wrapper = mountToggle({ disabled: true, modelValue: false });
|
|
61
61
|
|
|
62
62
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -65,7 +65,7 @@ describe("UiToggleButton", () => {
|
|
|
65
65
|
expect(wrapper.emitted("update:modelValue")).toBeFalsy();
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
test("uses provided id on the input", () => {
|
|
69
69
|
const wrapper = mountToggle({ id: "custom-id" });
|
|
70
70
|
|
|
71
71
|
const input = wrapper.find("[data-testid='toggleButton']");
|
|
@@ -9,35 +9,23 @@
|
|
|
9
9
|
"
|
|
10
10
|
>
|
|
11
11
|
<slot v-if="labelPosition === 'left'" />
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}"
|
|
30
|
-
/>
|
|
31
|
-
<div
|
|
32
|
-
:class="{
|
|
33
|
-
'translate-x-full bg-secondary': modelValue,
|
|
34
|
-
'bg-neutral-muted': !modelValue,
|
|
35
|
-
'-top-0.5 size-4': size === 'sm',
|
|
36
|
-
'-top-1 size-6': size === 'lg',
|
|
37
|
-
}"
|
|
38
|
-
class="dot absolute -left-1 rounded-full shadow-sm transition-transform duration-200 ease-in-out"
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
12
|
+
|
|
13
|
+
<input
|
|
14
|
+
:id="toggleId"
|
|
15
|
+
v-model="model"
|
|
16
|
+
class="relative appearance-none rounded-full shadow-inner transition-opacity duration-200 ease-in-out after:absolute after:-left-1 after:block after:rounded-full after:shadow-sm after:transition-transform after:duration-200 after:ease-in-out after:content-[''] enabled:cursor-pointer"
|
|
17
|
+
:class="{
|
|
18
|
+
'bg-secondary-emphasis after:translate-x-full after:bg-secondary':
|
|
19
|
+
model,
|
|
20
|
+
'bg-neutral-faint after:bg-neutral-muted': !model,
|
|
21
|
+
'h-3 w-6 after:-top-0.5 after:size-4': size === 'sm',
|
|
22
|
+
'h-4 w-10 after:-top-1 after:size-6': size === 'lg',
|
|
23
|
+
}"
|
|
24
|
+
type="checkbox"
|
|
25
|
+
role="switch"
|
|
26
|
+
data-testid="toggleButton"
|
|
27
|
+
v-bind="{ ...$attrs, class: null }"
|
|
28
|
+
/>
|
|
41
29
|
|
|
42
30
|
<slot v-if="labelPosition === 'right'" />
|
|
43
31
|
</UiLabel>
|
|
@@ -51,13 +39,13 @@ import UiLabel from "../UiLabel/UiLabel.vue";
|
|
|
51
39
|
|
|
52
40
|
defineOptions({ inheritAttrs: false });
|
|
53
41
|
|
|
54
|
-
const
|
|
42
|
+
const model = defineModel<boolean>({ default: false });
|
|
55
43
|
|
|
56
44
|
defineSlots<{
|
|
57
45
|
/**
|
|
58
46
|
* Label content.
|
|
59
47
|
*/
|
|
60
|
-
default
|
|
48
|
+
default: () => any;
|
|
61
49
|
}>();
|
|
62
50
|
|
|
63
51
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "@vue/test-utils";
|
|
2
|
-
import { describe, expect,
|
|
2
|
+
import { describe, expect, test } from "vitest";
|
|
3
3
|
|
|
4
4
|
import UiTooltip from "./UiTooltip.vue";
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ document.body.innerHTML = `
|
|
|
8
8
|
`;
|
|
9
9
|
|
|
10
10
|
describe("UiTooltip", () => {
|
|
11
|
-
|
|
11
|
+
test("shows correct content", () => {
|
|
12
12
|
const wrapper = mount(UiTooltip, {
|
|
13
13
|
props: {
|
|
14
14
|
fixed: false,
|
|
@@ -20,7 +20,7 @@ describe("UiTooltip", () => {
|
|
|
20
20
|
expect(wrapper.text()).toBe("tooltip content");
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
test("is not rendered without mouseover", () => {
|
|
24
24
|
const wrapper = mount(UiTooltip, {
|
|
25
25
|
props: {
|
|
26
26
|
fixed: false,
|
|
@@ -35,7 +35,7 @@ describe("UiTooltip", () => {
|
|
|
35
35
|
).toBeFalsy();
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
test("is rendered upon mouseover", async () => {
|
|
39
39
|
const wrapper = mount(UiTooltip, {
|
|
40
40
|
props: {
|
|
41
41
|
fixed: false,
|
|
@@ -57,7 +57,7 @@ describe("UiTooltip", () => {
|
|
|
57
57
|
);
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
test("is rendered in the correct position", async () => {
|
|
61
61
|
const wrapper = mount(UiTooltip, {
|
|
62
62
|
props: {
|
|
63
63
|
fixed: false,
|
|
@@ -75,7 +75,7 @@ describe("UiTooltip", () => {
|
|
|
75
75
|
).toBe("right");
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
test("is in a fixed position", () => {
|
|
79
79
|
const wrapper = mount(UiTooltip, {
|
|
80
80
|
props: {
|
|
81
81
|
fixed: true,
|
|
@@ -94,7 +94,7 @@ describe("UiTooltip", () => {
|
|
|
94
94
|
wrapper.unmount();
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
test("shows no tooltip content when hidden", async () => {
|
|
98
98
|
const wrapper = mount(UiTooltip, {
|
|
99
99
|
props: {
|
|
100
100
|
hidden: true,
|
|
@@ -114,7 +114,7 @@ describe("UiTooltip", () => {
|
|
|
114
114
|
expect(wrapper.find('[data-testid="tooltipElement"]').exists()).toBe(false);
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
test("applies no transition classes when animate is false", () => {
|
|
118
118
|
const wrapper = mount(UiTooltip, {
|
|
119
119
|
props: {
|
|
120
120
|
fixed: false,
|
|
@@ -132,7 +132,7 @@ describe("UiTooltip", () => {
|
|
|
132
132
|
expect(transition.props("leaveToClass")).toBeUndefined();
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
test("applies transition classes when animate is true", () => {
|
|
136
136
|
const wrapper = mount(UiTooltip, {
|
|
137
137
|
props: {
|
|
138
138
|
fixed: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/standard-view.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -10,6 +10,6 @@ var i = {}, a = {
|
|
|
10
10
|
function o(e, i) {
|
|
11
11
|
return r(), t("svg", a, [...i[0] ||= [n("path", { d: "M2 16V12H16L16.001 16H2ZM16 10H2C0.897 10 0 10.897 0 12V16C0 17.103 0.897 18 2 18H16C17.103 18 18 17.103 18 16V12C18 10.897 17.103 10 16 10ZM2 6V2H16L16.001 6H2ZM16 0H2C0.897 0 0 0.897 0 2V6C0 7.103 0.897 8 2 8H16C17.103 8 18 7.103 18 6V2C18 0.897 17.103 0 16 0Z" }, null, -1)]]);
|
|
12
12
|
}
|
|
13
|
-
var s =
|
|
13
|
+
var s = /*#__PURE__*/ e(i, [["render", o]]);
|
|
14
14
|
//#endregion
|
|
15
15
|
export { s as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
|
|
3
3
|
//#region src/assets/icons/star-filled.vue
|
|
4
4
|
var i = {}, a = {
|
|
@@ -10,6 +10,6 @@ var i = {}, a = {
|
|
|
10
10
|
function o(e, i) {
|
|
11
11
|
return r(), t("svg", a, [...i[0] ||= [n("path", { d: "M17.5614 20.955C17.4034 20.955 17.2444 20.918 17.0984 20.842L11.9994 18.178L6.90138 20.842C6.56338 21.017 6.15538 20.987 5.84938 20.763C5.54138 20.539 5.38838 20.16 5.45338 19.785L6.42438 14.157L2.30438 10.172C2.03038 9.907 1.93138 9.509 2.04838 9.145C2.16538 8.783 2.47838 8.518 2.85638 8.464L8.55638 7.636L11.1044 2.51C11.4424 1.83 12.5574 1.83 12.8954 2.51L15.4434 7.636L21.1434 8.464C21.5214 8.518 21.8344 8.783 21.9514 9.145C22.0684 9.509 21.9694 9.907 21.6954 10.172L17.5754 14.157L18.5464 19.785C18.6114 20.16 18.4574 20.539 18.1504 20.763C17.9764 20.891 17.7694 20.955 17.5614 20.955Z" }, null, -1)]]);
|
|
12
12
|
}
|
|
13
|
-
var s =
|
|
13
|
+
var s = /*#__PURE__*/ e(i, [["render", o]]);
|
|
14
14
|
//#endregion
|
|
15
15
|
export { s as default };
|