@dpa-id-components/dpa-shared-components 17.0.1 → 17.0.3
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-DpcvJko6.js → activities-ZBarPK-M.js} +1 -1
- package/dist/{ai-DnA9QhZ6.js → ai-sPkHYeN5.js} +1 -1
- package/dist/{alert-DHAr5ZTL.js → alert-BMLEPRBl.js} +1 -1
- package/dist/{alert-fill-Be5Unh3h.js → alert-fill-C4UZ3Gox.js} +1 -1
- package/dist/{alert-octagon-GWQ_gkRo.js → alert-octagon-l-zhT_uE.js} +1 -1
- package/dist/{apps-Qb10gDaF.js → apps-B2qjfMUs.js} +1 -1
- package/dist/{archive-DEEKGv7z.js → archive-DOPY_AhK.js} +1 -1
- package/dist/{arrow-down-CQCyatZJ.js → arrow-down-D7sPyqq_.js} +1 -1
- package/dist/{arrow-left-WAYQJfV3.js → arrow-left-crinNYkW.js} +1 -1
- package/dist/{arrow-nav-left-C-HpPole.js → arrow-nav-left-D9rAhUTn.js} +1 -1
- package/dist/{arrow-nav-right-BlAY6Gcm.js → arrow-nav-right-x518ivmi.js} +1 -1
- package/dist/{arrow-right-D0lclnuT.js → arrow-right-DPQQCdRS.js} +1 -1
- package/dist/{arrow-up-BIGOOTOw.js → arrow-up-Cd_0JvVT.js} +1 -1
- package/dist/{arrowhead-left-wJh6ignH.js → arrowhead-left-vTfx_tCh.js} +1 -1
- package/dist/{arrowhead-right-Ckmx31iE.js → arrowhead-right-C7LsIG7y.js} +1 -1
- package/dist/{arrowhead-top-B5mMgnyI.js → arrowhead-top-s-kSZiH2.js} +1 -1
- package/dist/{atmo-DtEt5w7M.js → atmo-Bbpw9avY.js} +1 -1
- package/dist/{audio-COlGZTYZ.js → audio-CbEHp6Fs.js} +1 -1
- package/dist/{audio-circled-CXMAJvzi.js → audio-circled-Db4gu4yl.js} +1 -1
- package/dist/{audio-filled-By7S6nGk.js → audio-filled-BpUn_YM6.js} +1 -1
- package/dist/{bag-Cx75Wh2p.js → bag-Sol0P53o.js} +1 -1
- package/dist/{bell-BDW5AA5I.js → bell-1OckfES8.js} +1 -1
- package/dist/{bell-fill-CfA8tV4j.js → bell-fill-CVVKVUKd.js} +1 -1
- package/dist/{book-BbMjdjph.js → book-BAH3k7St.js} +1 -1
- package/dist/{bookmark-fill-Cv1s0dH9.js → bookmark-fill-ud0SmImk.js} +1 -1
- package/dist/{bookmark-outlined-xOel421o.js → bookmark-outlined-DK8WpiwE.js} +1 -1
- package/dist/{bookmark-DwcaiohW.js → bookmark-qOcRVC9O.js} +1 -1
- package/dist/{box-BTUrP2l1.js → box-DIeiaZwn.js} +1 -1
- package/dist/{bulb-DmQHgXRb.js → bulb-DCzCNNZQ.js} +1 -1
- package/dist/{call-RY-I2-S9.js → call-D5UdpkHx.js} +1 -1
- package/dist/{camera-Bwh0OnBe.js → camera-sh8xZsnY.js} +1 -1
- package/dist/{check-CGdOFQGV.js → check-CKi_1mu6.js} +1 -1
- package/dist/{checklist-BYiuQ1Jg.js → checklist-DULC_TG2.js} +1 -1
- package/dist/{checkmark-double-Bt0pyTub.js → checkmark-double-De4Azw7g.js} +1 -1
- package/dist/{checkmark-Bg-2YjiX.js → checkmark-zpZZZTWR.js} +1 -1
- package/dist/{chevron-down-BXBXV8jb.js → chevron-down-U0jOIsYe.js} +1 -1
- package/dist/{chevron-left-CIHBjA71.js → chevron-left-CngjJwCC.js} +1 -1
- package/dist/{chevron-right-Yb9mRCqY.js → chevron-right-BQZwER-w.js} +1 -1
- package/dist/{chevron-up-Jz7wNFal.js → chevron-up-CRLcGIL4.js} +1 -1
- package/dist/{clipboard-D8U0-Kt4.js → clipboard-BVghvPCd.js} +1 -1
- package/dist/{clock-s1F-XdD0.js → clock-DiaxtRm-.js} +1 -1
- package/dist/{close-Co_HDzoB.js → close-Cx8wtiiN.js} +1 -1
- package/dist/{cloud-save-CeiwrIM3.js → cloud-save-DXuUTwlf.js} +1 -1
- package/dist/{code-CJx_ait4.js → code-D1uVdVPZ.js} +1 -1
- package/dist/{collapse-L5ArCkLv.js → collapse-BQmsorUr.js} +1 -1
- package/dist/{color-palette-D2EciBaa.js → color-palette-CZKWlddm.js} +1 -1
- package/dist/{comment-C3dFuUKt.js → comment-OCSNW6dm.js} +1 -1
- package/dist/{comment-fill-B55_2syv.js → comment-fill-eFUJur8B.js} +1 -1
- package/dist/components/UiMenu/UiMenu.vue.d.ts +28 -16
- package/dist/components/UiMenu/UiMenuItem.vue.d.ts +6 -6
- package/dist/components/index.d.ts +2 -2
- package/dist/compositions/useBreakpoints/useBreakpoints.d.ts +1 -1
- package/dist/{copy-D7NMitci.js → copy-DBHeCOtE.js} +1 -1
- package/dist/{copy-link-B2yEkl1b.js → copy-link-ClIXLhaF.js} +1 -1
- package/dist/{delete-CGjffWKc.js → delete-d7JE8AGX.js} +1 -1
- package/dist/{download-bfgz5USw.js → download-Cju9BV4j.js} +1 -1
- package/dist/{dpa-id-C2EKx50q.js → dpa-id-bCfyWQIR.js} +1 -1
- package/dist/dpa-shared-components.js +1 -1
- package/dist/{edit-BHZQi3pq.js → edit-CLW20q-F.js} +1 -1
- package/dist/{edit-add-DyXfBjFv.js → edit-add-DXgJXzXu.js} +1 -1
- package/dist/{eil-BZVJjmqL.js → eil-BsPmgV2-.js} +1 -1
- package/dist/{emoji-KVxbbstq.js → emoji-CHVGGhXn.js} +1 -1
- package/dist/{emoji-add-wXO_MbBN.js → emoji-add-DylbNr1n.js} +1 -1
- package/dist/{envelope-Do6EvpiE.js → envelope-BJ9Y9ATu.js} +1 -1
- package/dist/{event-D-d-uKfX.js → event-BZ4zi48p.js} +1 -1
- package/dist/{expand-DKYnTVUy.js → expand-ZhiRiuk1.js} +1 -1
- package/dist/{external-link-pR-hj0uM.js → external-link-BUOhYT6F.js} +1 -1
- package/dist/{file-DVXvfjvW.js → file-2QSI9ghf.js} +1 -1
- package/dist/{file-pdf-3hoxOT0g.js → file-pdf-gmc8qMZd.js} +1 -1
- package/dist/{filter-CZDLhOhZ.js → filter-CMDrRPj0.js} +1 -1
- package/dist/{filter-outline-D3XSxtPi.js → filter-outline-Sr7E_17t.js} +1 -1
- package/dist/{flag-7Otsp-e0.js → flag-DKlwG65y.js} +1 -1
- package/dist/{flag-fill-B3iifo27.js → flag-fill-m8_GYHJJ.js} +1 -1
- package/dist/{flag-filled-I_O4CabA.js → flag-filled-C8qGaZxJ.js} +1 -1
- package/dist/{flag-outline-BP0dWutQ.js → flag-outline-DMDjie3a.js} +1 -1
- package/dist/{flags-BBMSpfOZ.js → flags-C5YyUKB5.js} +1 -1
- package/dist/{flash-B9OHMM_N.js → flash-Dzz24WUg.js} +1 -1
- package/dist/{folder-BAUiA9vX.js → folder-Dv4hio4S.js} +1 -1
- package/dist/{folder-add-CSSH3Dbt.js → folder-add-tvkHnkDa.js} +1 -1
- package/dist/{folder-fill-CERO5mWJ.js → folder-fill-CstfFkOU.js} +1 -1
- package/dist/{folder-filled-D21XOvfd.js → folder-filled-DtECyro7.js} +1 -1
- package/dist/{gallery-DhOzQclm.js → gallery-CLV5Zr7b.js} +1 -1
- package/dist/{graphic-LE33YQMT.js → graphic-C9jwXFGp.js} +1 -1
- package/dist/{graphic-circled-BQ_xihS5.js → graphic-circled-4b2SwXCd.js} +1 -1
- package/dist/{graphic-filled-BKiygOme.js → graphic-filled-CqAqeh8G.js} +1 -1
- package/dist/{graphics-wd2lbyl3.js → graphics-nqjPlKo6.js} +1 -1
- package/dist/{grid-1-jCczBcRm.js → grid-1-JwiiZYl5.js} +1 -1
- package/dist/{grid-2-hxKHNcop.js → grid-2-DBh8H1AV.js} +1 -1
- package/dist/{grid-3-CbmrFOr1.js → grid-3-Dgxh4xza.js} +1 -1
- package/dist/{grid-4-BD0Oc0gM.js → grid-4-D_6tY1Uv.js} +1 -1
- package/dist/{grid-6-uSfmaWj_.js → grid-6-CI8wCN53.js} +1 -1
- package/dist/{grid-9-C3iuLy52.js → grid-9-DWi5BDLu.js} +1 -1
- package/dist/{grid-masonry-9-BGi4LYFq.js → grid-masonry-9-By5duDdL.js} +1 -1
- package/dist/{grid-masonry-Cc3ikdbO.js → grid-masonry-DE32rX1Q.js} +1 -1
- package/dist/{help-B8acvxOk.js → help-D8cgbmc1.js} +1 -1
- package/dist/{home-9de44DM0.js → home-Dn9vJM_e.js} +1 -1
- package/dist/{image focus point-DpWCCApO.js → image focus point-CadPz5D4.js } +1 -1
- package/dist/{image-D5bJAfGZ.js → image-BiJZ9Nbc.js} +1 -1
- package/dist/{impact-high-BPdZZv3d.js → impact-high-DPAxOBVZ.js} +1 -1
- package/dist/{impact-low-DEb5MTNu.js → impact-low-C-2jlyRG.js} +1 -1
- package/dist/{impact-medium-PY53Fxc9.js → impact-medium-DZg4CbTc.js} +1 -1
- package/dist/{impact-very-high-DssNyiQu.js → impact-very-high-X_FLAEtl.js} +1 -1
- package/dist/{impact-very-low-2LD7UD3j.js → impact-very-low-CzxhTaD6.js} +1 -1
- package/dist/{index-XKGgygaS.js → index-Du3qH_Js.js} +4 -6
- package/dist/{info-VmSmLr0v.js → info-C2C1D_ol.js} +1 -1
- package/dist/{info-fill-D36TgQvN.js → info-fill-D_mE2PER.js} +1 -1
- package/dist/{info-filled-YKv_2KDt.js → info-filled-BaYMmGmW.js} +1 -1
- package/dist/{label-CnBMaLd5.js → label-DEd6u-Rh.js} +1 -1
- package/dist/{label-filled-BptUL_5C.js → label-filled-B6mwZS46.js} +1 -1
- package/dist/{language-BglNZNWK.js → language-B6AMmEue.js} +1 -1
- package/dist/{latest-au_x-Nd4.js → latest-BLYRoPYn.js} +1 -1
- package/dist/{lightbulb-D_m8bSzA.js → lightbulb-ChJyV_9S.js} +1 -1
- package/dist/{list-9u0FlmRG.js → list-azvF1DPy.js} +1 -1
- package/dist/{list-search-7lV9-vTI.js → list-search-0O1HvJPv.js} +1 -1
- package/dist/{lock-B5HnFuT4.js → lock-DNALCJ75.js} +1 -1
- package/dist/{lock-filled-Dm7oA50r.js → lock-filled-D0hRRD9O.js} +1 -1
- package/dist/{mail-E8Ep1i3g.js → mail-BdHYmvxk.js} +1 -1
- package/dist/{map-outline-WxvT9ABg.js → map-outline-BpkQMqf0.js} +1 -1
- package/dist/{map-CUhI3RTs.js → map-v6-k9Wxu.js} +1 -1
- package/dist/{menu-njI7x5sK.js → menu-UYUcrtya.js} +1 -1
- package/dist/{minus-CUuEDVQf.js → minus-B_tDE-LC.js} +1 -1
- package/dist/{more-horizontal-DhuFkgmd.js → more-horizontal-zdaY16sR.js} +1 -1
- package/dist/{more-vertical-B0Qz4coe.js → more-vertical-4VReD4gI.js} +1 -1
- package/dist/{move-DTMTWGff.js → move-6Q6DTtR9.js} +1 -1
- package/dist/{move-up-down-i852rbqB.js → move-up-down-CvlxCVno.js} +1 -1
- package/dist/{navigation-D5TBFdUh.js → navigation-DXAWGQzs.js} +1 -1
- package/dist/{note-B02tXFuc.js → note-BAzXw-Gs.js} +1 -1
- package/dist/{offline-DStERtAz.js → offline-Bo1Sp1GC.js} +1 -1
- package/dist/{package-BzQknq-0.js → package-SmFrS06c.js} +1 -1
- package/dist/{paper-plane-DMjvl2ZK.js → paper-plane-C0LRgmIY.js} +1 -1
- package/dist/{paperplane-DY7SwIbN.js → paperplane-BEh8Rd7Z.js} +1 -1
- package/dist/{pause-OlIP7H_E.js → pause-DsMg8Eds.js} +1 -1
- package/dist/{pause-circle-srsO0rgE.js → pause-circle-C-eORlM3.js} +1 -1
- package/dist/{pdf-B4UJAops.js → pdf-BHRaiSb6.js} +1 -1
- package/dist/{pen-AEyxNxmB.js → pen-CzKIHXNZ.js} +1 -1
- package/dist/{pen-check-BvA2Pz3P.js → pen-check-BR8z0hJJ.js} +1 -1
- package/dist/{people-DXiooAgV.js → people-YzBgb5lt.js} +1 -1
- package/dist/{phone-DqEMTWr5.js → phone-DYyHAjTB.js} +1 -1
- package/dist/{picture-GDk1nP5P.js → picture-D0jUgjro.js} +1 -1
- package/dist/{picture-circled-Dd3F9NW6.js → picture-circled-C6R-1X5Z.js} +1 -1
- package/dist/{picture-filled-DzVP9_K-.js → picture-filled-Duv6F1th.js} +1 -1
- package/dist/{pin-CJX1-jvg.js → pin-DErZms3n.js} +1 -1
- package/dist/{planning-C3i_iRaX.js → planning-BIgWOT7z.js} +1 -1
- package/dist/{play-C8_Tjg16.js → play-CUWeRt6y.js} +1 -1
- package/dist/{play-circle-DMMBx7_c.js → play-circle-IzYbnnYy.js} +1 -1
- package/dist/{play-fill-DwawLsam.js → play-fill-CaWuiKAU.js} +1 -1
- package/dist/{plus-DAAyrRrc.js → plus-DNeiZO1m.js} +1 -1
- package/dist/{plus-circle-nn7SkAil.js → plus-circle-BegsE69-.js} +1 -1
- package/dist/{print-lG7P0int.js → print-CcuPAGX2.js} +1 -1
- package/dist/{refresh-Cf1-Dc3H.js → refresh-BrenG5D3.js} +1 -1
- package/dist/{reset-Dxb7qQS0.js → reset-BEsuFqBL.js} +1 -1
- package/dist/{responsive-CSaav6TV.js → responsive-ClYVM-KC.js} +1 -1
- package/dist/{rubix-thema-BhgzL124.js → rubix-thema-B8PmIZNz.js} +1 -1
- package/dist/{save-C7hhGQ_5.js → save-C7qN6kpJ.js} +1 -1
- package/dist/{saved-search-uCNPD6t0.js → saved-search-BMTCAdAm.js} +1 -1
- package/dist/{saved-search-fill-DI9FGxxY.js → saved-search-fill-cmr6gOWq.js} +1 -1
- package/dist/{search-DREcLnTL.js → search-DFvsu_CH.js} +1 -1
- package/dist/{settings-B4K5tn_j.js → settings-CjnjHbMg.js} +1 -1
- package/dist/{share-DQmvuMHv.js → share-D8sNeO-I.js} +1 -1
- package/dist/{share-alternative-dz3t31dE.js → share-alternative-DRojf5-m.js} +1 -1
- package/dist/{sidebar-D-zf8TWU.js → sidebar-CrCMATbt.js} +1 -1
- package/dist/{sidebar-fill-DmiSOx__.js → sidebar-fill-C64-KgcW.js} +1 -1
- package/dist/{slack-OTtCa5MN.js → slack-Dd4v7ErY.js} +1 -1
- package/dist/{slider-config-Ci_JoJfW.js → slider-config-Dd0Y4ROw.js} +1 -1
- package/dist/{spellcheck-Byef2nMF.js → spellcheck-CwCsOS7T.js} +1 -1
- package/dist/{spinner-F_eo05Tg.js → spinner-Lc9TrR2e.js} +1 -1
- package/{src/components/UiCheckBox → dist/src/components/UiCheckbox}/README.md +2 -2
- package/dist/src/components/{UiCheckBox/UiCheckBox.spec.ts → UiCheckbox/UiCheckbox.spec.ts} +13 -13
- package/dist/src/components/{UiCheckBox/UiCheckBox.stories.ts → UiCheckbox/UiCheckbox.stories.ts} +10 -10
- package/dist/src/components/UiIconButton/README.md +0 -7
- package/dist/src/components/UiListItem/UiListItem.vue +2 -2
- package/dist/src/components/UiMenu/README.md +5 -5
- package/dist/src/components/UiMenu/UiMenu.spec.ts +1 -2
- package/dist/src/components/UiMenu/UiMenu.vue +27 -20
- package/dist/src/components/UiMenu/UiMenuItem.vue +6 -13
- package/dist/src/components/index.ts +2 -2
- package/dist/src/compositions/useBreakpoints/useBreakpoints.ts +14 -5
- package/dist/{standard-view-Bfoncxjp.js → standard-view-DtHLLXTW.js} +1 -1
- package/dist/{star-DeIoV7O-.js → star-CeXZZY6N.js} +1 -1
- package/dist/{star-fill-f-2wG4T9.js → star-fill-m6c7hvQu.js} +1 -1
- package/dist/{star-filled-DgrM56pD.js → star-filled-Rwpvjjak.js} +1 -1
- package/dist/{stop-iWNnAldV.js → stop-U760p5hh.js} +1 -1
- package/dist/{story-D095eAwe.js → story-DXYSzrRb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{sync-GKhr6R3c.js → sync-CjKXbPDC.js} +1 -1
- package/dist/{tasks-CYXeebUq.js → tasks-COPTrBUt.js} +1 -1
- package/dist/{text-DPbBsODn.js → text-CjS1qXlO.js} +1 -1
- package/dist/{text-circled-B7RvoCLx.js → text-circled-0AYFWhCN.js} +1 -1
- package/dist/{text-filled-BfxfjvDW.js → text-filled-DHdySu8E.js} +1 -1
- package/dist/{thumbs-down-11FD0yoF.js → thumbs-down-CVMbNjmb.js} +1 -1
- package/dist/{thumbs-up-B6DhPl3M.js → thumbs-up-DX91dI-Q.js} +1 -1
- package/dist/{thumbs-up-double-CjjCWfsm.js → thumbs-up-double-BorMJUP3.js} +1 -1
- package/dist/{topic-D0fvzdFd.js → topic-CXYj9B7b.js} +1 -1
- package/dist/{union-CKYRumVT.js → union-CF2feV_P.js} +1 -1
- package/dist/{upload-ChcuNPWh.js → upload-CBM9pCxy.js} +1 -1
- package/dist/{video overlay-Dsw-DZ-u.js → video overlay-BUexv_iN.js } +1 -1
- package/dist/{video-B-4XVtOK.js → video-DDCV7bON.js} +1 -1
- package/dist/{video-circled-BiGX6-PS.js → video-circled-BW1KyeyP.js} +1 -1
- package/dist/{video-filled-CzradZGP.js → video-filled-DXyjsv8q.js} +1 -1
- package/dist/{video-rounded-jJE1t6Pc.js → video-rounded-B6ypLlTl.js} +1 -1
- package/dist/{view-Dm2Pk0Sn.js → view-DgibDoaD.js} +1 -1
- package/dist/{view-off-Xsshy6wP.js → view-off-C9X9_pcX.js} +1 -1
- package/dist/{volume-up-BWmu2SKB.js → volume-up-DlKkHPJ_.js} +1 -1
- package/package.json +1 -1
- package/{dist/src/components/UiCheckBox → src/components/UiCheckbox}/README.md +2 -2
- package/src/components/UiIconButton/README.md +0 -7
- package/src/components/UiListItem/UiListItem.vue +2 -2
- package/src/components/UiMenu/README.md +5 -5
- package/src/components/UiMenu/UiMenu.vue +27 -20
- package/src/components/UiMenu/UiMenuItem.vue +6 -13
- package/src/components/index.ts +2 -2
- package/src/compositions/useBreakpoints/useBreakpoints.ts +14 -5
- package/dist/components/UiMenu/UiMenuTypes.d.ts +0 -18
- package/dist/src/components/UiMenu/UiMenuTypes.ts +0 -20
- package/src/components/UiMenu/UiMenuTypes.ts +0 -20
- /package/dist/components/{UiCheckBox/UiCheckBox.vue.d.ts → UiCheckbox/UiCheckbox.vue.d.ts} +0 -0
- /package/dist/src/components/{UiCheckBox/UiCheckBox.vue → UiCheckbox/UiCheckbox.vue} +0 -0
- /package/src/components/{UiCheckBox/UiCheckBox.vue → UiCheckbox/UiCheckbox.vue} +0 -0
package/package.json
CHANGED
|
@@ -17,13 +17,6 @@ Color is set by text color:
|
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
20
|
-
iconName: typeof iconNames[number];
|
|
21
|
-
title: string;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
backgroundColor: "blue" | "none";
|
|
24
|
-
iconColor: "blue" | "white" | "gray";
|
|
25
|
-
size: "small" | "medium" | "large" | "xl";
|
|
26
|
-
|
|
27
20
|
### Props
|
|
28
21
|
|
|
29
22
|
| Name | Type | Default | Description |
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
>
|
|
15
15
|
<span class="flex items-center" data-testid="innerText">
|
|
16
16
|
<span v-if="checkBoxMenu" class="inset-y-0 flex items-center pr-2">
|
|
17
|
-
<
|
|
17
|
+
<UiCheckbox
|
|
18
18
|
:color="checkBoxColor"
|
|
19
19
|
:checked="isChecked"
|
|
20
20
|
:disabled="disabled"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
<script setup lang="ts">
|
|
54
54
|
import { computed } from "vue";
|
|
55
|
-
import
|
|
55
|
+
import UiCheckbox from "../UiCheckbox/UiCheckbox.vue";
|
|
56
56
|
import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
|
|
57
57
|
import { cn } from "../../utils/cn.js";
|
|
58
58
|
|
|
@@ -82,11 +82,11 @@ Wraps the UiListItem and uses the same settings as in the original UiMenu, helps
|
|
|
82
82
|
|------------------|-----------------------|-------------|-----------------------------------------------------------|
|
|
83
83
|
| `class?` | `string` | `''` | Classes for the menu, get merged with original classes |
|
|
84
84
|
| `option?` | `UiMenuOptionType<T>` | `undefined` | Option like within the `options` array prop of UiMenu.vue |
|
|
85
|
-
| `listVariant?` | `
|
|
86
|
-
| `iconSize?` | `
|
|
87
|
-
| `imageShape?` | `
|
|
88
|
-
| `checkboxSize?` | `
|
|
89
|
-
| `checkboxColor?` | `
|
|
85
|
+
| `listVariant?` | `"checkbox" | "selectable" | "blank"` | `blank` | Provide the list variant, same as in UiMenu.vue |
|
|
86
|
+
| `iconSize?` | `"small" | "medium" | "large"` | `small` | Provide the icon size, same as in UiMenu.vue |
|
|
87
|
+
| `imageShape?` | `"rounded" | "square"` | `square` | Provide the imageShape, same as in UiMenu.vue |
|
|
88
|
+
| `checkboxSize?` | `"small" | "medium"` | `medium` | Provide the checkboxSize, same as in UiMenu.vue |
|
|
89
|
+
| `checkboxColor?` | `"blue" | "gray"` | `blue` | Provide the checkboxColor, same as in UiMenu.vue |
|
|
90
90
|
|
|
91
91
|
#### Slots
|
|
92
92
|
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
</Transition>
|
|
150
150
|
</div>
|
|
151
151
|
</template>
|
|
152
|
+
|
|
152
153
|
<script setup lang="ts" generic="Value">
|
|
153
154
|
import { computed, type HTMLAttributes, ref, watchPostEffect } from "vue";
|
|
154
155
|
import {
|
|
@@ -165,27 +166,33 @@ import UiListItem from "../UiListItem/UiListItem.vue";
|
|
|
165
166
|
import { vClickAway } from "../../directives/vClickAway.js";
|
|
166
167
|
import UiButton from "../UiButton/UiButton.vue";
|
|
167
168
|
import UiSimpleInput from "../UiSimpleInput/UiSimpleInput.vue";
|
|
168
|
-
import type {
|
|
169
|
-
UiMenuCheckboxColor,
|
|
170
|
-
UiMenuCheckboxSize,
|
|
171
|
-
UiMenuGroupedOption,
|
|
172
|
-
UiMenuIconSize,
|
|
173
|
-
UiMenuImageShape,
|
|
174
|
-
UiMenuListVariant,
|
|
175
|
-
UiMenuOptionType,
|
|
176
|
-
UiMenuSelectedOption,
|
|
177
|
-
} from "./UiMenuTypes";
|
|
178
169
|
import { cn } from "../../utils/cn.js";
|
|
179
170
|
import type { UiIconName } from "../UiIcon/UiIcon.vue";
|
|
180
171
|
|
|
172
|
+
export type UiMenuOptionType<Value = unknown> = {
|
|
173
|
+
label: string;
|
|
174
|
+
imageSrc?: string | undefined;
|
|
175
|
+
selected: boolean;
|
|
176
|
+
value: Value;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export type UiMenuSelectedOption<Value = unknown> = UiMenuOptionType<Value> & {
|
|
180
|
+
index: number;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export type UiMenuGroupedOption<Value = unknown> = {
|
|
184
|
+
groupLabel: string;
|
|
185
|
+
options: UiMenuOptionType<Value>[];
|
|
186
|
+
};
|
|
187
|
+
|
|
181
188
|
defineSlots<{
|
|
182
189
|
// Marking the slot as optional avoids inexplicable TypeScript errors in the storybook story (see https://github.com/vuejs/core/issues/10647).
|
|
183
190
|
default?(props: {
|
|
184
|
-
checkboxColor:
|
|
185
|
-
checkboxSize:
|
|
186
|
-
iconSize:
|
|
187
|
-
imageShape:
|
|
188
|
-
listVariant:
|
|
191
|
+
checkboxColor: "blue" | "gray";
|
|
192
|
+
checkboxSize: "small" | "medium";
|
|
193
|
+
iconSize: "small" | "medium" | "large";
|
|
194
|
+
imageShape: "rounded" | "square";
|
|
195
|
+
listVariant: "checkbox" | "selectable" | "blank";
|
|
189
196
|
options: UiMenuOptionType<Value>[];
|
|
190
197
|
groupedOptions: UiMenuGroupedOption<Value>[];
|
|
191
198
|
}): any;
|
|
@@ -204,17 +211,17 @@ const props = withDefaults(
|
|
|
204
211
|
noTitle?: boolean;
|
|
205
212
|
multiLabel?: string;
|
|
206
213
|
filterButtonSize?: "small" | "xs";
|
|
207
|
-
iconSize?:
|
|
214
|
+
iconSize?: "small" | "medium" | "large";
|
|
208
215
|
iconLeft?: UiIconName | null;
|
|
209
|
-
imageShape?:
|
|
210
|
-
checkboxSize?:
|
|
216
|
+
imageShape?: "rounded" | "square";
|
|
217
|
+
checkboxSize?: "small" | "medium";
|
|
211
218
|
buttonVariant?:
|
|
212
219
|
| "blue-rounded"
|
|
213
220
|
| "white-rounded"
|
|
214
221
|
| "transparent-rounded"
|
|
215
222
|
| "blank";
|
|
216
|
-
listVariant?:
|
|
217
|
-
checkboxColor?:
|
|
223
|
+
listVariant?: "checkbox" | "selectable" | "blank";
|
|
224
|
+
checkboxColor?: "blue" | "gray";
|
|
218
225
|
hasResetOption?: boolean;
|
|
219
226
|
disabledReset?: boolean;
|
|
220
227
|
resetLabel?: string;
|
|
@@ -23,14 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<script setup lang="ts" generic="Value">
|
|
25
25
|
import UiListItem from "../UiListItem/UiListItem.vue";
|
|
26
|
-
import type {
|
|
27
|
-
UiMenuCheckboxColor,
|
|
28
|
-
UiMenuCheckboxSize,
|
|
29
|
-
UiMenuIconSize,
|
|
30
|
-
UiMenuImageShape,
|
|
31
|
-
UiMenuListVariant,
|
|
32
|
-
UiMenuOptionType,
|
|
33
|
-
} from "./UiMenuTypes";
|
|
26
|
+
import type { UiMenuOptionType } from "./UiMenu.vue";
|
|
34
27
|
import type { HTMLAttributes } from "vue";
|
|
35
28
|
import { cn } from "../../utils/cn.js";
|
|
36
29
|
|
|
@@ -38,11 +31,11 @@ const props = withDefaults(
|
|
|
38
31
|
defineProps<{
|
|
39
32
|
class?: HTMLAttributes["class"];
|
|
40
33
|
option?: UiMenuOptionType<Value>;
|
|
41
|
-
listVariant?:
|
|
42
|
-
iconSize?:
|
|
43
|
-
imageShape?:
|
|
44
|
-
checkboxSize?:
|
|
45
|
-
checkboxColor?:
|
|
34
|
+
listVariant?: "checkbox" | "selectable" | "blank";
|
|
35
|
+
iconSize?: "small" | "medium" | "large";
|
|
36
|
+
imageShape?: "rounded" | "square";
|
|
37
|
+
checkboxSize?: "small" | "medium";
|
|
38
|
+
checkboxColor?: "blue" | "gray";
|
|
46
39
|
}>(),
|
|
47
40
|
{
|
|
48
41
|
class: undefined,
|
package/src/components/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import UiBadge from "./UiBadge/UiBadge.vue";
|
|
|
4
4
|
import UiButton from "./UiButton/UiButton.vue";
|
|
5
5
|
import UiButtonGroup from "./UiButtonGroup/UiButtonGroup.vue";
|
|
6
6
|
import UiCard from "./UiCard/UiCard.vue";
|
|
7
|
-
import UiCheckbox from "./
|
|
7
|
+
import UiCheckbox from "./UiCheckbox/UiCheckbox.vue";
|
|
8
8
|
import UiCheckBoxGroup from "./UiCheckBoxGroup/UiCheckBoxGroup.vue";
|
|
9
9
|
import UiChip from "./UiChip/UiChip.vue";
|
|
10
10
|
import UiCollapseNavigation from "./UiCollapseNavigation/UiCollapseNavigation.vue";
|
|
@@ -25,7 +25,7 @@ export type {
|
|
|
25
25
|
UiMenuOptionType,
|
|
26
26
|
UiMenuSelectedOption,
|
|
27
27
|
UiMenuGroupedOption,
|
|
28
|
-
} from "./UiMenu/
|
|
28
|
+
} from "./UiMenu/UiMenu.vue";
|
|
29
29
|
import UiMenuList from "./UiMenu/UiMenuList.vue";
|
|
30
30
|
import UiMenuItem from "./UiMenu/UiMenuItem.vue";
|
|
31
31
|
import UiOverlay from "./UiOverlay/UiOverlay.vue";
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
useBreakpoints as vueUseBreakpoints,
|
|
3
|
+
type Breakpoints,
|
|
4
|
+
} from "@vueuse/core";
|
|
2
5
|
import { computed } from "vue";
|
|
3
|
-
|
|
6
|
+
|
|
7
|
+
// Deliberately not using `breakpointsTailwind` as exported by `@vueuse/core` as it doesn't pick up custom values from the CSS configuration meaning if we customize the breakpoints at some point, these values wouldn't be correct.
|
|
8
|
+
const breakpointsTailwind: Breakpoints = {
|
|
9
|
+
sm: "640px",
|
|
10
|
+
md: "768px",
|
|
11
|
+
lg: "1024px",
|
|
12
|
+
xl: "1280px",
|
|
13
|
+
xxl: "1600px",
|
|
14
|
+
};
|
|
4
15
|
|
|
5
16
|
export function useBreakpoints() {
|
|
6
|
-
const breakpoints = vueUseBreakpoints(
|
|
7
|
-
...screens,
|
|
8
|
-
});
|
|
17
|
+
const breakpoints = vueUseBreakpoints(breakpointsTailwind);
|
|
9
18
|
|
|
10
19
|
const currentBreakpoint = breakpoints.current();
|
|
11
20
|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type UiMenuOptionType<Value = unknown> = {
|
|
2
|
-
label: string;
|
|
3
|
-
imageSrc?: string | undefined;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
value: Value;
|
|
6
|
-
};
|
|
7
|
-
export type UiMenuSelectedOption<Value = unknown> = UiMenuOptionType<Value> & {
|
|
8
|
-
index: number;
|
|
9
|
-
};
|
|
10
|
-
export type UiMenuGroupedOption<Value = unknown> = {
|
|
11
|
-
groupLabel: string;
|
|
12
|
-
options: UiMenuOptionType<Value>[];
|
|
13
|
-
};
|
|
14
|
-
export type UiMenuListVariant = "checkbox" | "selectable" | "blank";
|
|
15
|
-
export type UiMenuIconSize = "small" | "medium" | "large";
|
|
16
|
-
export type UiMenuImageShape = "rounded" | "square";
|
|
17
|
-
export type UiMenuCheckboxSize = "small" | "medium";
|
|
18
|
-
export type UiMenuCheckboxColor = "blue" | "gray";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type UiMenuOptionType<Value = unknown> = {
|
|
2
|
-
label: string;
|
|
3
|
-
imageSrc?: string | undefined;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
value: Value;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export type UiMenuSelectedOption<Value = unknown> = UiMenuOptionType<Value> & {
|
|
9
|
-
index: number;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type UiMenuGroupedOption<Value = unknown> = {
|
|
13
|
-
groupLabel: string;
|
|
14
|
-
options: UiMenuOptionType<Value>[];
|
|
15
|
-
};
|
|
16
|
-
export type UiMenuListVariant = "checkbox" | "selectable" | "blank";
|
|
17
|
-
export type UiMenuIconSize = "small" | "medium" | "large";
|
|
18
|
-
export type UiMenuImageShape = "rounded" | "square";
|
|
19
|
-
export type UiMenuCheckboxSize = "small" | "medium";
|
|
20
|
-
export type UiMenuCheckboxColor = "blue" | "gray";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type UiMenuOptionType<Value = unknown> = {
|
|
2
|
-
label: string;
|
|
3
|
-
imageSrc?: string | undefined;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
value: Value;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export type UiMenuSelectedOption<Value = unknown> = UiMenuOptionType<Value> & {
|
|
9
|
-
index: number;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type UiMenuGroupedOption<Value = unknown> = {
|
|
13
|
-
groupLabel: string;
|
|
14
|
-
options: UiMenuOptionType<Value>[];
|
|
15
|
-
};
|
|
16
|
-
export type UiMenuListVariant = "checkbox" | "selectable" | "blank";
|
|
17
|
-
export type UiMenuIconSize = "small" | "medium" | "large";
|
|
18
|
-
export type UiMenuImageShape = "rounded" | "square";
|
|
19
|
-
export type UiMenuCheckboxSize = "small" | "medium";
|
|
20
|
-
export type UiMenuCheckboxColor = "blue" | "gray";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|