@dpa-id-components/dpa-shared-components 16.0.1 → 17.0.0
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/README.md +57 -115
- package/dist/activities-DpcvJko6.js +20 -0
- package/dist/ai-DnA9QhZ6.js +20 -0
- package/dist/alert-DHAr5ZTL.js +20 -0
- package/dist/alert-fill-Be5Unh3h.js +20 -0
- package/dist/alert-octagon-GWQ_gkRo.js +31 -0
- package/dist/apps-Qb10gDaF.js +20 -0
- package/dist/archive-DEEKGv7z.js +20 -0
- package/dist/arrow-down-CQCyatZJ.js +20 -0
- package/dist/arrow-left-WAYQJfV3.js +20 -0
- package/dist/arrow-nav-left-C-HpPole.js +20 -0
- package/dist/arrow-nav-right-BlAY6Gcm.js +20 -0
- package/dist/arrow-right-D0lclnuT.js +20 -0
- package/dist/arrow-up-BIGOOTOw.js +20 -0
- package/dist/arrowhead-left-wJh6ignH.js +20 -0
- package/dist/arrowhead-right-Ckmx31iE.js +20 -0
- package/dist/arrowhead-top-B5mMgnyI.js +20 -0
- package/dist/atmo-DtEt5w7M.js +20 -0
- package/dist/audio-COlGZTYZ.js +20 -0
- package/dist/audio-circled-CXMAJvzi.js +17 -0
- package/dist/audio-filled-By7S6nGk.js +17 -0
- package/dist/bag-Cx75Wh2p.js +17 -0
- package/dist/bell-BDW5AA5I.js +20 -0
- package/dist/bell-fill-CfA8tV4j.js +20 -0
- package/dist/book-BbMjdjph.js +20 -0
- package/dist/bookmark-DwcaiohW.js +22 -0
- package/dist/bookmark-fill-Cv1s0dH9.js +22 -0
- package/dist/bookmark-outlined-xOel421o.js +17 -0
- package/dist/box-BTUrP2l1.js +20 -0
- package/dist/bulb-DmQHgXRb.js +20 -0
- package/dist/call-RY-I2-S9.js +20 -0
- package/dist/camera-Bwh0OnBe.js +20 -0
- package/dist/check-CGdOFQGV.js +20 -0
- package/dist/checklist-BYiuQ1Jg.js +20 -0
- package/dist/checkmark-Bg-2YjiX.js +20 -0
- package/dist/checkmark-double-Bt0pyTub.js +20 -0
- package/dist/chevron-down-BXBXV8jb.js +20 -0
- package/dist/chevron-left-CIHBjA71.js +20 -0
- package/dist/chevron-right-Yb9mRCqY.js +20 -0
- package/dist/chevron-up-Jz7wNFal.js +20 -0
- package/dist/clipboard-D8U0-Kt4.js +20 -0
- package/dist/clock-s1F-XdD0.js +20 -0
- package/dist/close-Co_HDzoB.js +20 -0
- package/dist/cloud-save-CeiwrIM3.js +20 -0
- package/dist/code-CJx_ait4.js +20 -0
- package/dist/collapse-L5ArCkLv.js +20 -0
- package/dist/color-palette-D2EciBaa.js +15 -0
- package/dist/comment-C3dFuUKt.js +20 -0
- package/dist/comment-fill-B55_2syv.js +20 -0
- package/dist/components/UiAutocomplete/UiAutocomplete.vue.d.ts +10 -10
- package/dist/components/UiBadge/UiBadge.vue.d.ts +1 -1
- package/dist/components/UiDatePicker/UiDatePicker.vue.d.ts +256 -256
- package/dist/components/UiDialog/UiDialog.vue.d.ts +2 -2
- package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +1 -1
- package/dist/components/UiIcon/UiIcon.vue.d.ts +1 -1
- package/dist/components/UiIcon/UiIconLoading.vue.d.ts +2 -0
- package/dist/components/UiIconButton/UiIconButton.vue.d.ts +2 -2
- package/dist/components/UiInput/UiInput.vue.d.ts +2 -2
- package/dist/components/UiMenu/UiMenu.vue.d.ts +11 -17
- package/dist/components/UiMenu/UiMenuItem.vue.d.ts +3 -10
- package/dist/components/UiMenu/UiMenuTypes.d.ts +8 -5
- package/dist/components/UiSearchBar/UiSearchBar.vue.d.ts +5 -5
- package/dist/components/UiTooltip/UiTooltip.vue.d.ts +1 -1
- package/dist/components/index.d.ts +5 -4
- package/dist/compositions/index.d.ts +1 -2
- package/dist/compositions/useBreakpoints/useBreakpoints.d.ts +2 -3
- package/dist/copy-D7NMitci.js +21 -0
- package/dist/copy-link-B2yEkl1b.js +20 -0
- package/dist/delete-CGjffWKc.js +20 -0
- package/dist/directives/index.d.ts +1 -2
- package/dist/directives/vClickAway.d.ts +5 -0
- package/dist/download-bfgz5USw.js +20 -0
- package/dist/dpa-id-C2EKx50q.js +20 -0
- package/dist/dpa-shared-components.js +43 -20785
- package/dist/edit-BHZQi3pq.js +20 -0
- package/dist/edit-add-DyXfBjFv.js +20 -0
- package/dist/eil-BZVJjmqL.js +20 -0
- package/dist/emoji-KVxbbstq.js +20 -0
- package/dist/emoji-add-wXO_MbBN.js +20 -0
- package/dist/envelope-Do6EvpiE.js +18 -0
- package/dist/event-D-d-uKfX.js +15 -0
- package/dist/expand-DKYnTVUy.js +20 -0
- package/dist/external-link-pR-hj0uM.js +20 -0
- package/dist/file-DVXvfjvW.js +20 -0
- package/dist/file-pdf-3hoxOT0g.js +20 -0
- package/dist/filter-CZDLhOhZ.js +20 -0
- package/dist/filter-outline-D3XSxtPi.js +18 -0
- package/dist/flag-7Otsp-e0.js +20 -0
- package/dist/flag-fill-B3iifo27.js +20 -0
- package/dist/flag-filled-I_O4CabA.js +20 -0
- package/dist/flag-outline-BP0dWutQ.js +20 -0
- package/dist/flags-BBMSpfOZ.js +21 -0
- package/dist/flash-B9OHMM_N.js +20 -0
- package/dist/folder-BAUiA9vX.js +20 -0
- package/dist/folder-add-CSSH3Dbt.js +20 -0
- package/dist/folder-fill-CERO5mWJ.js +20 -0
- package/dist/folder-filled-D21XOvfd.js +20 -0
- package/dist/gallery-DhOzQclm.js +24 -0
- package/dist/graphic-LE33YQMT.js +20 -0
- package/dist/graphic-circled-BQ_xihS5.js +17 -0
- package/dist/graphic-filled-BKiygOme.js +17 -0
- package/dist/graphics-wd2lbyl3.js +24 -0
- package/dist/grid-1-jCczBcRm.js +20 -0
- package/dist/grid-2-hxKHNcop.js +20 -0
- package/dist/grid-3-CbmrFOr1.js +20 -0
- package/dist/grid-4-BD0Oc0gM.js +20 -0
- package/dist/grid-6-uSfmaWj_.js +20 -0
- package/dist/grid-9-C3iuLy52.js +20 -0
- package/dist/grid-masonry-9-BGi4LYFq.js +21 -0
- package/dist/grid-masonry-Cc3ikdbO.js +20 -0
- package/dist/help-B8acvxOk.js +20 -0
- package/dist/home-9de44DM0.js +20 -0
- package/dist/image focus point-DpWCCApO.js +20 -0
- package/dist/image-D5bJAfGZ.js +20 -0
- package/dist/impact-high-BPdZZv3d.js +20 -0
- package/dist/impact-low-DEb5MTNu.js +20 -0
- package/dist/impact-medium-PY53Fxc9.js +20 -0
- package/dist/impact-very-high-DssNyiQu.js +20 -0
- package/dist/impact-very-low-2LD7UD3j.js +20 -0
- package/dist/index-XKGgygaS.js +15920 -0
- package/dist/index.d.ts +4 -4
- package/dist/info-VmSmLr0v.js +20 -0
- package/dist/info-fill-D36TgQvN.js +20 -0
- package/dist/info-filled-YKv_2KDt.js +20 -0
- package/dist/label-CnBMaLd5.js +20 -0
- package/dist/label-filled-BptUL_5C.js +20 -0
- package/dist/language-BglNZNWK.js +20 -0
- package/dist/latest-au_x-Nd4.js +20 -0
- package/dist/lightbulb-D_m8bSzA.js +18 -0
- package/dist/list-9u0FlmRG.js +20 -0
- package/dist/list-search-7lV9-vTI.js +24 -0
- package/dist/lock-B5HnFuT4.js +20 -0
- package/dist/lock-filled-Dm7oA50r.js +20 -0
- package/dist/mail-E8Ep1i3g.js +20 -0
- package/dist/map-CUhI3RTs.js +20 -0
- package/dist/map-outline-WxvT9ABg.js +20 -0
- package/dist/menu-njI7x5sK.js +20 -0
- package/dist/minus-CUuEDVQf.js +20 -0
- package/dist/more-horizontal-DhuFkgmd.js +20 -0
- package/dist/more-vertical-B0Qz4coe.js +20 -0
- package/dist/move-DTMTWGff.js +20 -0
- package/dist/move-up-down-i852rbqB.js +20 -0
- package/dist/navigation-D5TBFdUh.js +20 -0
- package/dist/note-B02tXFuc.js +20 -0
- package/dist/offline-DStERtAz.js +20 -0
- package/dist/package-BzQknq-0.js +20 -0
- package/dist/paper-plane-DMjvl2ZK.js +20 -0
- package/dist/paperplane-DY7SwIbN.js +20 -0
- package/dist/pause-OlIP7H_E.js +20 -0
- package/dist/pause-circle-srsO0rgE.js +21 -0
- package/dist/pdf-B4UJAops.js +20 -0
- package/dist/pen-AEyxNxmB.js +17 -0
- package/dist/pen-check-BvA2Pz3P.js +17 -0
- package/dist/people-DXiooAgV.js +20 -0
- package/dist/phone-DqEMTWr5.js +20 -0
- package/dist/picture-GDk1nP5P.js +20 -0
- package/dist/picture-circled-Dd3F9NW6.js +17 -0
- package/dist/picture-filled-DzVP9_K-.js +17 -0
- package/dist/pin-CJX1-jvg.js +20 -0
- package/dist/planning-C3i_iRaX.js +20 -0
- package/dist/play-C8_Tjg16.js +20 -0
- package/dist/play-circle-DMMBx7_c.js +20 -0
- package/dist/play-fill-DwawLsam.js +20 -0
- package/dist/plus-DAAyrRrc.js +20 -0
- package/dist/plus-circle-nn7SkAil.js +20 -0
- package/dist/print-lG7P0int.js +20 -0
- package/dist/refresh-Cf1-Dc3H.js +20 -0
- package/dist/renovate.json +6 -0
- package/dist/reset-Dxb7qQS0.js +20 -0
- package/dist/responsive-CSaav6TV.js +21 -0
- package/dist/rubix-thema-BhgzL124.js +20 -0
- package/dist/save-C7hhGQ_5.js +20 -0
- package/dist/saved-search-fill-DI9FGxxY.js +23 -0
- package/dist/saved-search-uCNPD6t0.js +21 -0
- package/dist/search-DREcLnTL.js +20 -0
- package/dist/settings-B4K5tn_j.js +20 -0
- package/dist/share-DQmvuMHv.js +20 -0
- package/dist/share-alternative-dz3t31dE.js +20 -0
- package/dist/sidebar-D-zf8TWU.js +17 -0
- package/dist/sidebar-fill-DmiSOx__.js +21 -0
- package/dist/slack-OTtCa5MN.js +20 -0
- package/dist/slider-config-Ci_JoJfW.js +20 -0
- package/dist/spellcheck-Byef2nMF.js +20 -0
- package/dist/spinner-F_eo05Tg.js +15 -0
- package/dist/src/assets/icons/activities.vue +13 -0
- package/dist/src/assets/icons/ai.vue +13 -0
- package/dist/src/assets/icons/alert-fill.vue +13 -0
- package/dist/src/assets/icons/alert-octagon.vue +24 -0
- package/dist/src/assets/icons/alert.vue +13 -0
- package/dist/src/assets/icons/apps.vue +13 -0
- package/dist/src/assets/icons/archive.vue +13 -0
- package/dist/src/assets/icons/arrow-down.vue +13 -0
- package/dist/src/assets/icons/arrow-left.vue +13 -0
- package/dist/src/assets/icons/arrow-nav-left.vue +13 -0
- package/dist/src/assets/icons/arrow-nav-right.vue +13 -0
- package/dist/src/assets/icons/arrow-right.vue +13 -0
- package/dist/src/assets/icons/arrow-up.vue +13 -0
- package/dist/src/assets/icons/arrowhead-left.vue +13 -0
- package/dist/src/assets/icons/arrowhead-right.vue +13 -0
- package/dist/src/assets/icons/arrowhead-top.vue +13 -0
- package/dist/src/assets/icons/atmo.vue +13 -0
- package/dist/src/assets/icons/audio-circled.vue +12 -0
- package/dist/src/assets/icons/audio-filled.vue +12 -0
- package/dist/src/assets/icons/audio.vue +13 -0
- package/dist/src/assets/icons/bag.vue +12 -0
- package/dist/src/assets/icons/bell-fill.vue +13 -0
- package/dist/src/assets/icons/bell.vue +13 -0
- package/dist/src/assets/icons/book.vue +13 -0
- package/dist/src/assets/icons/bookmark-fill.vue +15 -0
- package/dist/src/assets/icons/bookmark-outlined.vue +12 -0
- package/dist/src/assets/icons/bookmark.vue +15 -0
- package/dist/src/assets/icons/box.vue +13 -0
- package/dist/src/assets/icons/bulb.vue +13 -0
- package/dist/src/assets/icons/call.vue +13 -0
- package/dist/src/assets/icons/camera.vue +13 -0
- package/dist/src/assets/icons/check.vue +13 -0
- package/dist/src/assets/icons/checklist.vue +13 -0
- package/dist/src/assets/icons/checkmark-double.vue +13 -0
- package/dist/src/assets/icons/checkmark.vue +13 -0
- package/dist/src/assets/icons/chevron-down.vue +13 -0
- package/dist/src/assets/icons/chevron-left.vue +13 -0
- package/dist/src/assets/icons/chevron-right.vue +13 -0
- package/dist/src/assets/icons/chevron-up.vue +13 -0
- package/dist/src/assets/icons/clipboard.vue +13 -0
- package/dist/src/assets/icons/clock.vue +13 -0
- package/dist/src/assets/icons/close.vue +13 -0
- package/dist/src/assets/icons/cloud-save.vue +13 -0
- package/dist/src/assets/icons/code.vue +13 -0
- package/dist/src/assets/icons/collapse.vue +13 -0
- package/dist/src/assets/icons/color-palette.vue +19 -0
- package/dist/src/assets/icons/comment-fill.vue +13 -0
- package/dist/src/assets/icons/comment.vue +13 -0
- package/dist/src/assets/icons/copy-link.vue +13 -0
- package/dist/src/assets/icons/copy.vue +14 -0
- package/dist/src/assets/icons/delete.vue +13 -0
- package/dist/src/assets/icons/download.vue +13 -0
- package/dist/src/assets/icons/dpa-id.vue +13 -0
- package/dist/src/assets/icons/edit-add.vue +13 -0
- package/dist/src/assets/icons/edit.vue +13 -0
- package/dist/src/assets/icons/eil.vue +13 -0
- package/dist/src/assets/icons/emoji-add.vue +13 -0
- package/dist/src/assets/icons/emoji.vue +13 -0
- package/dist/src/assets/icons/envelope.vue +13 -0
- package/dist/src/assets/icons/event.vue +7 -0
- package/dist/src/assets/icons/expand.vue +13 -0
- package/dist/src/assets/icons/external-link.vue +13 -0
- package/dist/src/assets/icons/file-pdf.vue +13 -0
- package/dist/src/assets/icons/file.vue +13 -0
- package/dist/src/assets/icons/filter-outline.vue +8 -0
- package/dist/src/assets/icons/filter.vue +13 -0
- package/dist/src/assets/icons/flag-fill.vue +13 -0
- package/dist/src/assets/icons/flag-filled.vue +13 -0
- package/dist/src/assets/icons/flag-outline.vue +13 -0
- package/dist/src/assets/icons/flag.vue +13 -0
- package/dist/src/assets/icons/flags.vue +14 -0
- package/dist/src/assets/icons/flash.vue +13 -0
- package/dist/src/assets/icons/folder-add.vue +13 -0
- package/dist/src/assets/icons/folder-fill.vue +13 -0
- package/dist/src/assets/icons/folder-filled.vue +13 -0
- package/dist/src/assets/icons/folder.vue +13 -0
- package/dist/src/assets/icons/gallery.vue +17 -0
- package/dist/src/assets/icons/graphic-circled.vue +12 -0
- package/dist/src/assets/icons/graphic-filled.vue +12 -0
- package/dist/src/assets/icons/graphic.vue +13 -0
- package/dist/src/assets/icons/graphics.vue +17 -0
- package/dist/src/assets/icons/grid-1.vue +13 -0
- package/dist/src/assets/icons/grid-2.vue +13 -0
- package/dist/src/assets/icons/grid-3.vue +13 -0
- package/dist/src/assets/icons/grid-4.vue +13 -0
- package/dist/src/assets/icons/grid-6.vue +13 -0
- package/dist/src/assets/icons/grid-9.vue +13 -0
- package/dist/src/assets/icons/grid-masonry-9.vue +14 -0
- package/dist/src/assets/icons/grid-masonry.vue +13 -0
- package/dist/src/assets/icons/help.vue +13 -0
- package/dist/src/assets/icons/home.vue +13 -0
- package/dist/src/assets/icons/image focus point.vue +13 -0
- package/dist/src/assets/icons/image.vue +13 -0
- package/dist/src/assets/icons/impact-high.vue +13 -0
- package/dist/src/assets/icons/impact-low.vue +13 -0
- package/dist/src/assets/icons/impact-medium.vue +13 -0
- package/dist/src/assets/icons/impact-very-high.vue +13 -0
- package/dist/src/assets/icons/impact-very-low.vue +13 -0
- package/dist/src/assets/icons/info-fill.vue +13 -0
- package/dist/src/assets/icons/info-filled.vue +13 -0
- package/dist/src/assets/icons/info.vue +13 -0
- package/dist/src/assets/icons/label-filled.vue +13 -0
- package/dist/src/assets/icons/label.vue +13 -0
- package/dist/src/assets/icons/language.vue +13 -0
- package/dist/src/assets/icons/latest.vue +13 -0
- package/dist/src/assets/icons/lightbulb.vue +28 -0
- package/dist/src/assets/icons/list-search.vue +17 -0
- package/dist/src/assets/icons/list.vue +13 -0
- package/dist/src/assets/icons/lock-filled.vue +13 -0
- package/dist/src/assets/icons/lock.vue +13 -0
- package/dist/src/assets/icons/mail.vue +13 -0
- package/dist/src/assets/icons/map-outline.vue +13 -0
- package/dist/src/assets/icons/map.vue +13 -0
- package/dist/src/assets/icons/menu.vue +13 -0
- package/dist/src/assets/icons/minus.vue +13 -0
- package/dist/src/assets/icons/more-horizontal.vue +13 -0
- package/dist/src/assets/icons/more-vertical.vue +13 -0
- package/dist/src/assets/icons/move-up-down.vue +13 -0
- package/dist/src/assets/icons/move.vue +13 -0
- package/dist/src/assets/icons/navigation.vue +13 -0
- package/dist/src/assets/icons/note.vue +13 -0
- package/dist/src/assets/icons/offline.vue +13 -0
- package/dist/src/assets/icons/package.vue +13 -0
- package/dist/src/assets/icons/paper-plane.vue +13 -0
- package/dist/src/assets/icons/paperplane.vue +13 -0
- package/dist/src/assets/icons/pause-circle.vue +14 -0
- package/dist/src/assets/icons/pause.vue +13 -0
- package/dist/src/assets/icons/pdf.vue +13 -0
- package/dist/src/assets/icons/pen-check.vue +12 -0
- package/dist/src/assets/icons/pen.vue +12 -0
- package/dist/src/assets/icons/people.vue +13 -0
- package/dist/src/assets/icons/phone.vue +13 -0
- package/dist/src/assets/icons/picture-circled.vue +12 -0
- package/dist/src/assets/icons/picture-filled.vue +12 -0
- package/dist/src/assets/icons/picture.vue +13 -0
- package/dist/src/assets/icons/pin.vue +13 -0
- package/dist/src/assets/icons/planning.vue +13 -0
- package/dist/src/assets/icons/play-circle.vue +13 -0
- package/dist/src/assets/icons/play-fill.vue +13 -0
- package/dist/src/assets/icons/play.vue +13 -0
- package/dist/src/assets/icons/plus-circle.vue +13 -0
- package/dist/src/assets/icons/plus.vue +13 -0
- package/dist/src/assets/icons/print.vue +13 -0
- package/dist/src/assets/icons/refresh.vue +13 -0
- package/dist/src/assets/icons/reset.vue +13 -0
- package/dist/src/assets/icons/responsive.vue +14 -0
- package/dist/src/assets/icons/rubix-thema.vue +13 -0
- package/dist/src/assets/icons/save.vue +13 -0
- package/dist/src/assets/icons/saved-search-fill.vue +16 -0
- package/dist/src/assets/icons/saved-search.vue +14 -0
- package/dist/src/assets/icons/search.vue +13 -0
- package/dist/src/assets/icons/settings.vue +13 -0
- package/dist/src/assets/icons/share-alternative.vue +13 -0
- package/dist/src/assets/icons/share.vue +13 -0
- package/dist/src/assets/icons/sidebar-fill.vue +14 -0
- package/dist/src/assets/icons/sidebar.vue +30 -0
- package/dist/src/assets/icons/slack.vue +13 -0
- package/dist/src/assets/icons/slider-config.vue +13 -0
- package/dist/src/assets/icons/spellcheck.vue +13 -0
- package/dist/src/assets/icons/spinner.vue +7 -0
- package/dist/src/assets/icons/standard-view.vue +12 -0
- package/dist/src/assets/icons/star-fill.vue +13 -0
- package/dist/src/assets/icons/star-filled.vue +12 -0
- package/dist/src/assets/icons/star.vue +13 -0
- package/dist/src/assets/icons/stop.vue +13 -0
- package/dist/src/assets/icons/story.vue +13 -0
- package/dist/src/assets/icons/sync.vue +13 -0
- package/dist/src/assets/icons/tasks.vue +13 -0
- package/dist/src/assets/icons/text-circled.vue +12 -0
- package/dist/src/assets/icons/text-filled.vue +12 -0
- package/dist/src/assets/icons/text.vue +13 -0
- package/dist/src/assets/icons/thumbs-down.vue +14 -0
- package/dist/src/assets/icons/thumbs-up-double.vue +14 -0
- package/dist/src/assets/icons/thumbs-up.vue +14 -0
- package/dist/src/assets/icons/topic.vue +13 -0
- package/dist/src/assets/icons/union.vue +7 -0
- package/dist/src/assets/icons/upload.vue +13 -0
- package/dist/src/assets/icons/video overlay.vue +14 -0
- package/dist/src/assets/icons/video-circled.vue +12 -0
- package/dist/src/assets/icons/video-filled.vue +12 -0
- package/dist/src/assets/icons/video-rounded.vue +13 -0
- package/dist/src/assets/icons/video.vue +13 -0
- package/dist/src/assets/icons/view-off.vue +13 -0
- package/dist/src/assets/icons/view.vue +13 -0
- package/dist/src/assets/icons/volume-up.vue +13 -0
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +122 -0
- package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +138 -0
- package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +128 -0
- package/dist/src/components/DpaMediaItem/README.md +40 -0
- package/dist/src/components/UiAutocomplete/README.md +44 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.spec.ts +38 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.stories.ts +45 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.vue +157 -0
- package/dist/src/components/UiBadge/README.md +34 -0
- package/dist/src/components/UiBadge/UiBadge.spec.ts +31 -0
- package/dist/src/components/UiBadge/UiBadge.stories.ts +79 -0
- package/dist/src/components/UiBadge/UiBadge.vue +93 -0
- package/dist/src/components/UiButton/README.md +53 -0
- package/dist/src/components/UiButton/UiButton.spec.ts +131 -0
- package/dist/src/components/UiButton/UiButton.stories.ts +58 -0
- package/dist/src/components/UiButton/UiButton.vue +139 -0
- package/dist/src/components/UiButtonGroup/README.md +29 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +15 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +43 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +7 -0
- package/dist/src/components/UiCard/README.md +30 -0
- package/dist/src/components/UiCard/UiCard.spec.ts +15 -0
- package/dist/src/components/UiCard/UiCard.stories.ts +28 -0
- package/dist/src/components/UiCard/UiCard.vue +7 -0
- package/dist/src/components/UiCheckBox/README.md +44 -0
- package/dist/src/components/UiCheckBox/UiCheckBox.spec.ts +142 -0
- package/dist/src/components/UiCheckBox/UiCheckBox.stories.ts +60 -0
- package/dist/src/components/UiCheckBox/UiCheckBox.vue +104 -0
- package/dist/src/components/UiCheckBoxGroup/README.md +33 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +66 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +57 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +89 -0
- package/dist/src/components/UiChip/README.md +30 -0
- package/dist/src/components/UiChip/UiChip.spec.ts +74 -0
- package/dist/src/components/UiChip/UiChip.stories.ts +38 -0
- package/dist/src/components/UiChip/UiChip.vue +45 -0
- package/dist/src/components/UiCollapseNavigation/README.md +35 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +20 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +64 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +59 -0
- package/dist/src/components/UiColorPicker/README.md +31 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +51 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +42 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.vue +107 -0
- package/dist/src/components/UiColorPicker/lib/colors.ts +11 -0
- package/dist/src/components/UiDatePicker/README.md +67 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +301 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +267 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +558 -0
- package/dist/src/components/UiDialog/README.md +50 -0
- package/dist/src/components/UiDialog/UiDialog.spec.ts +159 -0
- package/dist/src/components/UiDialog/UiDialog.stories.ts +78 -0
- package/dist/src/components/UiDialog/UiDialog.vue +116 -0
- package/dist/src/components/UiFilterBadge/README.md +31 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +16 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +43 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.vue +39 -0
- package/dist/src/components/UiFilterBadgeButton/README.md +38 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.spec.ts +40 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.ts +54 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.vue +50 -0
- package/dist/src/components/UiFilterButton/README.md +35 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +79 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +82 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.vue +158 -0
- package/dist/src/components/UiIcon/IconOverview.stories.vue +23 -0
- package/dist/src/components/UiIcon/README.md +32 -0
- package/dist/src/components/UiIcon/UiIcon.spec.ts +58 -0
- package/dist/src/components/UiIcon/UiIcon.stories.ts +47 -0
- package/dist/src/components/UiIcon/UiIcon.vue +60 -0
- package/dist/src/components/UiIcon/UiIconLoading.vue +1 -0
- package/dist/src/components/UiIcon/iconNames.ts +187 -0
- package/dist/src/components/UiIconButton/README.md +38 -0
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +65 -0
- package/dist/src/components/UiIconButton/UiIconButton.stories.ts +58 -0
- package/dist/src/components/UiIconButton/UiIconButton.vue +94 -0
- package/dist/src/components/UiInfoContent/README.md +43 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +42 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.stories.ts +55 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.vue +68 -0
- package/dist/src/components/UiInput/README.md +66 -0
- package/dist/src/components/UiInput/UiInput.spec.ts +238 -0
- package/dist/src/components/UiInput/UiInput.stories.ts +123 -0
- package/dist/src/components/UiInput/UiInput.vue +289 -0
- package/dist/src/components/UiList/README.md +31 -0
- package/dist/src/components/UiList/UiList.spec.ts +23 -0
- package/dist/src/components/UiList/UiList.stories.ts +63 -0
- package/dist/src/components/UiList/UiList.vue +7 -0
- package/dist/src/components/UiListItem/README.md +46 -0
- package/dist/src/components/UiListItem/UiListItem.spec.ts +99 -0
- package/dist/src/components/UiListItem/UiListItem.stories.ts +82 -0
- package/dist/src/components/UiListItem/UiListItem.vue +107 -0
- package/dist/src/components/UiMenu/README.md +95 -0
- package/dist/src/components/UiMenu/UiMenu.spec.ts +320 -0
- package/dist/src/components/UiMenu/UiMenu.stories.ts +507 -0
- package/dist/src/components/UiMenu/UiMenu.vue +444 -0
- package/dist/src/components/UiMenu/UiMenuItem.vue +57 -0
- package/dist/src/components/UiMenu/UiMenuList.vue +18 -0
- package/dist/src/components/UiMenu/UiMenuTypes.ts +20 -0
- package/dist/src/components/UiOverlay/README.md +36 -0
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +15 -0
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +20 -0
- package/dist/src/components/UiOverlay/UiOverlay.vue +17 -0
- package/dist/src/components/UiOverlayMenu/README.md +38 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +31 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +37 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +31 -0
- package/dist/src/components/UiRadioInputGroup/README.md +49 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +65 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.stories.ts +67 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +82 -0
- package/dist/src/components/UiSearchBar/README.md +53 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +82 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +192 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.vue +233 -0
- package/dist/src/components/UiSearchInput/README.md +52 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +44 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.stories.ts +60 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.vue +144 -0
- package/dist/src/components/UiSection/README.md +31 -0
- package/dist/src/components/UiSection/UiSection.spec.ts +48 -0
- package/dist/src/components/UiSection/UiSection.stories.ts +59 -0
- package/dist/src/components/UiSection/UiSection.vue +45 -0
- package/dist/src/components/UiSectionDivider/README.md +27 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +18 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +46 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +27 -0
- package/dist/src/components/UiSimpleInput/README.md +38 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.spec.ts +58 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.stories.ts +52 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.vue +97 -0
- package/dist/src/components/UiSkeletonBox/README.md +28 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +14 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.stories.ts +32 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.vue +38 -0
- package/dist/src/components/UiSnackbar/README.md +55 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +62 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.stories.ts +64 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.vue +86 -0
- package/dist/src/components/UiSpinner/README.md +26 -0
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +29 -0
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +47 -0
- package/dist/src/components/UiSpinner/UiSpinner.vue +103 -0
- package/dist/src/components/UiTextButton/README.md +41 -0
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +98 -0
- package/dist/src/components/UiTextButton/UiTextButton.stories.ts +59 -0
- package/dist/src/components/UiTextButton/UiTextButton.vue +153 -0
- package/dist/src/components/UiToggleButton/README.md +42 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +88 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +101 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.vue +139 -0
- package/dist/src/components/UiTooltip/README.md +61 -0
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +113 -0
- package/dist/src/components/UiTooltip/UiTooltip.stories.ts +102 -0
- package/dist/src/components/UiTooltip/UiTooltip.vue +170 -0
- package/dist/src/components/index.ts +88 -0
- package/dist/src/compositions/index.ts +1 -0
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.ts +22 -0
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.vue +12 -0
- package/dist/src/compositions/useBreakpoints/useBreakpoints.ts +19 -0
- package/dist/src/directives/index.ts +1 -0
- package/dist/src/directives/vClickAway.ts +38 -0
- package/dist/src/index.ts +6 -0
- package/dist/src/tailwind/imports.css +3 -0
- package/dist/src/tailwind/screens.js +7 -0
- package/dist/src/tailwind/tailwind.config.js +203 -0
- package/dist/src/utils/cn.ts +7 -0
- package/dist/src/utils/index.spec.ts +12 -0
- package/dist/src/utils/index.ts +1 -0
- package/dist/standard-view-Bfoncxjp.js +17 -0
- package/dist/star-DeIoV7O-.js +20 -0
- package/dist/star-fill-f-2wG4T9.js +20 -0
- package/dist/star-filled-DgrM56pD.js +17 -0
- package/dist/stop-iWNnAldV.js +20 -0
- package/dist/story-D095eAwe.js +20 -0
- package/dist/style.css +1 -1
- package/dist/sync-GKhr6R3c.js +20 -0
- package/dist/tasks-CYXeebUq.js +20 -0
- package/dist/text-DPbBsODn.js +20 -0
- package/dist/text-circled-B7RvoCLx.js +17 -0
- package/dist/text-filled-BfxfjvDW.js +17 -0
- package/dist/thumbs-down-11FD0yoF.js +21 -0
- package/dist/thumbs-up-B6DhPl3M.js +21 -0
- package/dist/thumbs-up-double-CjjCWfsm.js +21 -0
- package/dist/topic-D0fvzdFd.js +20 -0
- package/dist/union-CKYRumVT.js +15 -0
- package/dist/upload-ChcuNPWh.js +20 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/video overlay-Dsw-DZ-u.js +21 -0
- package/dist/video-B-4XVtOK.js +20 -0
- package/dist/video-circled-BiGX6-PS.js +17 -0
- package/dist/video-filled-CzradZGP.js +17 -0
- package/dist/video-rounded-jJE1t6Pc.js +20 -0
- package/dist/view-Dm2Pk0Sn.js +20 -0
- package/dist/view-off-Xsshy6wP.js +20 -0
- package/dist/volume-up-BWmu2SKB.js +20 -0
- package/package.json +63 -60
- package/src/assets/icons/activities.vue +13 -0
- package/src/assets/icons/ai.vue +13 -0
- package/src/assets/icons/alert-fill.vue +13 -0
- package/src/assets/icons/alert-octagon.vue +24 -0
- package/src/assets/icons/alert.vue +13 -0
- package/src/assets/icons/apps.vue +13 -0
- package/src/assets/icons/archive.vue +13 -0
- package/src/assets/icons/arrow-down.vue +13 -0
- package/src/assets/icons/arrow-left.vue +13 -0
- package/src/assets/icons/arrow-nav-left.vue +13 -0
- package/src/assets/icons/arrow-nav-right.vue +13 -0
- package/src/assets/icons/arrow-right.vue +13 -0
- package/src/assets/icons/arrow-up.vue +13 -0
- package/src/assets/icons/arrowhead-left.vue +13 -0
- package/src/assets/icons/arrowhead-right.vue +13 -0
- package/src/assets/icons/arrowhead-top.vue +13 -0
- package/src/assets/icons/atmo.vue +13 -0
- package/src/assets/icons/audio-circled.vue +12 -0
- package/src/assets/icons/audio-filled.vue +12 -0
- package/src/assets/icons/audio.vue +13 -0
- package/src/assets/icons/bag.vue +12 -0
- package/src/assets/icons/bell-fill.vue +13 -0
- package/src/assets/icons/bell.vue +13 -0
- package/src/assets/icons/book.vue +13 -0
- package/src/assets/icons/bookmark-fill.vue +15 -0
- package/src/assets/icons/bookmark-outlined.vue +12 -0
- package/src/assets/icons/bookmark.vue +15 -0
- package/src/assets/icons/box.vue +13 -0
- package/src/assets/icons/bulb.vue +13 -0
- package/src/assets/icons/call.vue +13 -0
- package/src/assets/icons/camera.vue +13 -0
- package/src/assets/icons/check.vue +13 -0
- package/src/assets/icons/checklist.vue +13 -0
- package/src/assets/icons/checkmark-double.vue +13 -0
- package/src/assets/icons/checkmark.vue +13 -0
- package/src/assets/icons/chevron-down.vue +13 -0
- package/src/assets/icons/chevron-left.vue +13 -0
- package/src/assets/icons/chevron-right.vue +13 -0
- package/src/assets/icons/chevron-up.vue +13 -0
- package/src/assets/icons/clipboard.vue +13 -0
- package/src/assets/icons/clock.vue +13 -0
- package/src/assets/icons/close.vue +13 -0
- package/src/assets/icons/cloud-save.vue +13 -0
- package/src/assets/icons/code.vue +13 -0
- package/src/assets/icons/collapse.vue +13 -0
- package/src/assets/icons/color-palette.vue +19 -0
- package/src/assets/icons/comment-fill.vue +13 -0
- package/src/assets/icons/comment.vue +13 -0
- package/src/assets/icons/copy-link.vue +13 -0
- package/src/assets/icons/copy.vue +14 -0
- package/src/assets/icons/delete.vue +13 -0
- package/src/assets/icons/download.vue +13 -0
- package/src/assets/icons/dpa-id.vue +13 -0
- package/src/assets/icons/edit-add.vue +13 -0
- package/src/assets/icons/edit.vue +13 -0
- package/src/assets/icons/eil.vue +13 -0
- package/src/assets/icons/emoji-add.vue +13 -0
- package/src/assets/icons/emoji.vue +13 -0
- package/src/assets/icons/envelope.vue +13 -0
- package/src/assets/icons/event.vue +7 -0
- package/src/assets/icons/expand.vue +13 -0
- package/src/assets/icons/external-link.vue +13 -0
- package/src/assets/icons/file-pdf.vue +13 -0
- package/src/assets/icons/file.vue +13 -0
- package/src/assets/icons/filter-outline.vue +8 -0
- package/src/assets/icons/filter.vue +13 -0
- package/src/assets/icons/flag-fill.vue +13 -0
- package/src/assets/icons/flag-filled.vue +13 -0
- package/src/assets/icons/flag-outline.vue +13 -0
- package/src/assets/icons/flag.vue +13 -0
- package/src/assets/icons/flags.vue +14 -0
- package/src/assets/icons/flash.vue +13 -0
- package/src/assets/icons/folder-add.vue +13 -0
- package/src/assets/icons/folder-fill.vue +13 -0
- package/src/assets/icons/folder-filled.vue +13 -0
- package/src/assets/icons/folder.vue +13 -0
- package/src/assets/icons/gallery.vue +17 -0
- package/src/assets/icons/graphic-circled.vue +12 -0
- package/src/assets/icons/graphic-filled.vue +12 -0
- package/src/assets/icons/graphic.vue +13 -0
- package/src/assets/icons/graphics.vue +17 -0
- package/src/assets/icons/grid-1.vue +13 -0
- package/src/assets/icons/grid-2.vue +13 -0
- package/src/assets/icons/grid-3.vue +13 -0
- package/src/assets/icons/grid-4.vue +13 -0
- package/src/assets/icons/grid-6.vue +13 -0
- package/src/assets/icons/grid-9.vue +13 -0
- package/src/assets/icons/grid-masonry-9.vue +14 -0
- package/src/assets/icons/grid-masonry.vue +13 -0
- package/src/assets/icons/help.vue +13 -0
- package/src/assets/icons/home.vue +13 -0
- package/src/assets/icons/image focus point.vue +13 -0
- package/src/assets/icons/image.vue +13 -0
- package/src/assets/icons/impact-high.vue +13 -0
- package/src/assets/icons/impact-low.vue +13 -0
- package/src/assets/icons/impact-medium.vue +13 -0
- package/src/assets/icons/impact-very-high.vue +13 -0
- package/src/assets/icons/impact-very-low.vue +13 -0
- package/src/assets/icons/info-fill.vue +13 -0
- package/src/assets/icons/info-filled.vue +13 -0
- package/src/assets/icons/info.vue +13 -0
- package/src/assets/icons/label-filled.vue +13 -0
- package/src/assets/icons/label.vue +13 -0
- package/src/assets/icons/language.vue +13 -0
- package/src/assets/icons/latest.vue +13 -0
- package/src/assets/icons/lightbulb.vue +28 -0
- package/src/assets/icons/list-search.vue +17 -0
- package/src/assets/icons/list.vue +13 -0
- package/src/assets/icons/lock-filled.vue +13 -0
- package/src/assets/icons/lock.vue +13 -0
- package/src/assets/icons/mail.vue +13 -0
- package/src/assets/icons/map-outline.vue +13 -0
- package/src/assets/icons/map.vue +13 -0
- package/src/assets/icons/menu.vue +13 -0
- package/src/assets/icons/minus.vue +13 -0
- package/src/assets/icons/more-horizontal.vue +13 -0
- package/src/assets/icons/more-vertical.vue +13 -0
- package/src/assets/icons/move-up-down.vue +13 -0
- package/src/assets/icons/move.vue +13 -0
- package/src/assets/icons/navigation.vue +13 -0
- package/src/assets/icons/note.vue +13 -0
- package/src/assets/icons/offline.vue +13 -0
- package/src/assets/icons/package.vue +13 -0
- package/src/assets/icons/paper-plane.vue +13 -0
- package/src/assets/icons/paperplane.vue +13 -0
- package/src/assets/icons/pause-circle.vue +14 -0
- package/src/assets/icons/pause.vue +13 -0
- package/src/assets/icons/pdf.vue +13 -0
- package/src/assets/icons/pen-check.vue +12 -0
- package/src/assets/icons/pen.vue +12 -0
- package/src/assets/icons/people.vue +13 -0
- package/src/assets/icons/phone.vue +13 -0
- package/src/assets/icons/picture-circled.vue +12 -0
- package/src/assets/icons/picture-filled.vue +12 -0
- package/src/assets/icons/picture.vue +13 -0
- package/src/assets/icons/pin.vue +13 -0
- package/src/assets/icons/planning.vue +13 -0
- package/src/assets/icons/play-circle.vue +13 -0
- package/src/assets/icons/play-fill.vue +13 -0
- package/src/assets/icons/play.vue +13 -0
- package/src/assets/icons/plus-circle.vue +13 -0
- package/src/assets/icons/plus.vue +13 -0
- package/src/assets/icons/print.vue +13 -0
- package/src/assets/icons/refresh.vue +13 -0
- package/src/assets/icons/reset.vue +13 -0
- package/src/assets/icons/responsive.vue +14 -0
- package/src/assets/icons/rubix-thema.vue +13 -0
- package/src/assets/icons/save.vue +13 -0
- package/src/assets/icons/saved-search-fill.vue +16 -0
- package/src/assets/icons/saved-search.vue +14 -0
- package/src/assets/icons/search.vue +13 -0
- package/src/assets/icons/settings.vue +13 -0
- package/src/assets/icons/share-alternative.vue +13 -0
- package/src/assets/icons/share.vue +13 -0
- package/src/assets/icons/sidebar-fill.vue +14 -0
- package/src/assets/icons/sidebar.vue +30 -0
- package/src/assets/icons/slack.vue +13 -0
- package/src/assets/icons/slider-config.vue +13 -0
- package/src/assets/icons/spellcheck.vue +13 -0
- package/src/assets/icons/spinner.vue +7 -0
- package/src/assets/icons/standard-view.vue +12 -0
- package/src/assets/icons/star-fill.vue +13 -0
- package/src/assets/icons/star-filled.vue +12 -0
- package/src/assets/icons/star.vue +13 -0
- package/src/assets/icons/stop.vue +13 -0
- package/src/assets/icons/story.vue +13 -0
- package/src/assets/icons/sync.vue +13 -0
- package/src/assets/icons/tasks.vue +13 -0
- package/src/assets/icons/text-circled.vue +12 -0
- package/src/assets/icons/text-filled.vue +12 -0
- package/src/assets/icons/text.vue +13 -0
- package/src/assets/icons/thumbs-down.vue +14 -0
- package/src/assets/icons/thumbs-up-double.vue +14 -0
- package/src/assets/icons/thumbs-up.vue +14 -0
- package/src/assets/icons/topic.vue +13 -0
- package/src/assets/icons/union.vue +7 -0
- package/src/assets/icons/upload.vue +13 -0
- package/src/assets/icons/video overlay.vue +14 -0
- package/src/assets/icons/video-circled.vue +12 -0
- package/src/assets/icons/video-filled.vue +12 -0
- package/src/assets/icons/video-rounded.vue +13 -0
- package/src/assets/icons/video.vue +13 -0
- package/src/assets/icons/view-off.vue +13 -0
- package/src/assets/icons/view.vue +13 -0
- package/src/assets/icons/volume-up.vue +13 -0
- package/src/components/DpaMediaItem/DpaMediaItem.vue +128 -0
- package/src/components/DpaMediaItem/README.md +40 -0
- package/src/components/UiAutocomplete/README.md +44 -0
- package/src/components/UiAutocomplete/UiAutocomplete.vue +157 -0
- package/src/components/UiBadge/README.md +34 -0
- package/src/components/UiBadge/UiBadge.vue +93 -0
- package/src/components/UiButton/README.md +53 -0
- package/src/components/UiButton/UiButton.vue +139 -0
- package/src/components/UiButtonGroup/README.md +29 -0
- package/src/components/UiButtonGroup/UiButtonGroup.vue +7 -0
- package/src/components/UiCard/README.md +30 -0
- package/src/components/UiCard/UiCard.vue +7 -0
- package/src/components/UiCheckBox/README.md +44 -0
- package/src/components/UiCheckBox/UiCheckBox.vue +104 -0
- package/src/components/UiCheckBoxGroup/README.md +33 -0
- package/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +89 -0
- package/src/components/UiChip/README.md +30 -0
- package/src/components/UiChip/UiChip.vue +45 -0
- package/src/components/UiCollapseNavigation/README.md +35 -0
- package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +59 -0
- package/src/components/UiColorPicker/README.md +31 -0
- package/src/components/UiColorPicker/UiColorPicker.vue +107 -0
- package/src/components/UiColorPicker/lib/colors.ts +11 -0
- package/src/components/UiDatePicker/README.md +67 -0
- package/src/components/UiDatePicker/UiDatePicker.vue +558 -0
- package/src/components/UiDialog/README.md +50 -0
- package/src/components/UiDialog/UiDialog.vue +116 -0
- package/src/components/UiFilterBadge/README.md +31 -0
- package/src/components/UiFilterBadge/UiFilterBadge.vue +39 -0
- package/src/components/UiFilterBadgeButton/README.md +38 -0
- package/src/components/UiFilterBadgeButton/UiFilterBadgeButton.vue +50 -0
- package/src/components/UiFilterButton/README.md +35 -0
- package/src/components/UiFilterButton/UiFilterButton.vue +158 -0
- package/src/components/UiIcon/README.md +32 -0
- package/src/components/UiIcon/UiIcon.vue +60 -0
- package/src/components/UiIcon/UiIconLoading.vue +1 -0
- package/src/components/UiIcon/iconNames.ts +187 -0
- package/src/components/UiIconButton/README.md +38 -0
- package/src/components/UiIconButton/UiIconButton.vue +94 -0
- package/src/components/UiInfoContent/README.md +43 -0
- package/src/components/UiInfoContent/UiInfoContent.vue +68 -0
- package/src/components/UiInput/README.md +66 -0
- package/src/components/UiInput/UiInput.vue +289 -0
- package/src/components/UiList/README.md +31 -0
- package/src/components/UiList/UiList.vue +7 -0
- package/src/components/UiListItem/README.md +46 -0
- package/src/components/UiListItem/UiListItem.vue +107 -0
- package/src/components/UiMenu/README.md +95 -0
- package/src/components/UiMenu/UiMenu.vue +444 -0
- package/src/components/UiMenu/UiMenuItem.vue +57 -0
- package/src/components/UiMenu/UiMenuList.vue +18 -0
- package/src/components/UiMenu/UiMenuTypes.ts +20 -0
- package/src/components/UiOverlay/README.md +36 -0
- package/src/components/UiOverlay/UiOverlay.vue +17 -0
- package/src/components/UiOverlayMenu/README.md +38 -0
- package/src/components/UiOverlayMenu/UiOverlayMenu.vue +31 -0
- package/src/components/UiRadioInputGroup/README.md +49 -0
- package/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +82 -0
- package/src/components/UiSearchBar/README.md +53 -0
- package/src/components/UiSearchBar/UiSearchBar.vue +233 -0
- package/src/components/UiSearchInput/README.md +52 -0
- package/src/components/UiSearchInput/UiSearchInput.vue +144 -0
- package/src/components/UiSection/README.md +31 -0
- package/src/components/UiSection/UiSection.vue +45 -0
- package/src/components/UiSectionDivider/README.md +27 -0
- package/src/components/UiSectionDivider/UiSectionDivider.vue +27 -0
- package/src/components/UiSimpleInput/README.md +38 -0
- package/src/components/UiSimpleInput/UiSimpleInput.vue +97 -0
- package/src/components/UiSkeletonBox/README.md +28 -0
- package/src/components/UiSkeletonBox/UiSkeletonBox.vue +38 -0
- package/src/components/UiSnackbar/README.md +55 -0
- package/src/components/UiSnackbar/UiSnackbar.vue +86 -0
- package/src/components/UiSpinner/README.md +26 -0
- package/src/components/UiSpinner/UiSpinner.vue +103 -0
- package/src/components/UiTextButton/README.md +41 -0
- package/src/components/UiTextButton/UiTextButton.vue +153 -0
- package/src/components/UiToggleButton/README.md +42 -0
- package/src/components/UiToggleButton/UiToggleButton.vue +139 -0
- package/src/components/UiTooltip/README.md +61 -0
- package/src/components/UiTooltip/UiTooltip.vue +170 -0
- package/src/components/index.ts +88 -0
- package/src/compositions/index.ts +1 -0
- package/src/compositions/useBreakpoints/useBreakpoints.ts +19 -0
- package/src/directives/index.ts +1 -0
- package/src/directives/vClickAway.ts +38 -0
- package/src/index.ts +6 -0
- package/src/tailwind/imports.css +3 -0
- package/src/tailwind/screens.js +7 -0
- package/src/tailwind/tailwind.config.js +203 -0
- package/src/utils/cn.ts +7 -0
- package/src/utils/index.ts +1 -0
- package/dist/activities-DVw-YPpO.js +0 -15
- package/dist/ai-VuCGPNLN.js +0 -15
- package/dist/alert-8Akg5zik.js +0 -15
- package/dist/alert-fill-BKlmD-Ox.js +0 -15
- package/dist/alert-octagon-CTINOGwp.js +0 -29
- package/dist/apps-BPa2CDg6.js +0 -15
- package/dist/archive-BiQtIyD3.js +0 -15
- package/dist/arrow-down-D8c20gOq.js +0 -15
- package/dist/arrow-left-U3ChWYTE.js +0 -15
- package/dist/arrow-nav-left-CPJd0CxY.js +0 -15
- package/dist/arrow-nav-right-BpCpYfq1.js +0 -15
- package/dist/arrow-right-Ciwao0RW.js +0 -15
- package/dist/arrow-up-D_wkwl0M.js +0 -15
- package/dist/arrowhead-left-BhMPEQDH.js +0 -19
- package/dist/arrowhead-right-DaGGQ1Yw.js +0 -19
- package/dist/arrowhead-top-BJHJNWs1.js +0 -19
- package/dist/atmo-CHCgB7_L.js +0 -15
- package/dist/audio-Ben-AXL-.js +0 -19
- package/dist/audio-circled-DAMLJtP0.js +0 -15
- package/dist/audio-filled-CcnV_fAb.js +0 -19
- package/dist/bag-Bal9Hkoz.js +0 -19
- package/dist/bell-CIVm-ZI8.js +0 -15
- package/dist/bell-fill-CPucbfzE.js +0 -15
- package/dist/book-HM1tijWO.js +0 -15
- package/dist/bookmark-DY8C9lKP.js +0 -20
- package/dist/bookmark-fill-240z9Et6.js +0 -20
- package/dist/bookmark-outlined-jLf0sXW1.js +0 -19
- package/dist/box-DyRmQ7L_.js +0 -19
- package/dist/bulb-BUswBK1_.js +0 -15
- package/dist/call-BSid5Y-6.js +0 -15
- package/dist/camera-B8HHab20.js +0 -19
- package/dist/check-BzCsFVqs.js +0 -19
- package/dist/checklist-CaqihCFj.js +0 -19
- package/dist/checkmark-Bq3iMDOm.js +0 -19
- package/dist/checkmark-double-Bb1elViH.js +0 -15
- package/dist/chevron-down-BmNeEhB5.js +0 -15
- package/dist/chevron-left-B5Qz0PUm.js +0 -15
- package/dist/chevron-right-CEZ20J26.js +0 -15
- package/dist/chevron-up-BYP7XG1q.js +0 -15
- package/dist/clipboard-BFuPtrop.js +0 -15
- package/dist/clock-DjLH8KWK.js +0 -19
- package/dist/close-5JgI97fh.js +0 -15
- package/dist/cloud-save-HuDOnN6Q.js +0 -15
- package/dist/code-HjxcXMhS.js +0 -15
- package/dist/collapse-BYbrgj2q.js +0 -15
- package/dist/color-palette-uVIeZzVM.js +0 -15
- package/dist/comment-BKJMxf2O.js +0 -15
- package/dist/comment-fill-DcK1ricK.js +0 -15
- package/dist/components/DpaMediaItem/DpaMediaItem.spec.d.ts +0 -1
- package/dist/components/DpaMediaItem/DpaMediaItem.stories.d.ts +0 -101
- package/dist/components/UiAutocomplete/UiAutocomplete.spec.d.ts +0 -1
- package/dist/components/UiAutocomplete/UiAutocomplete.stories.d.ts +0 -228
- package/dist/components/UiBadge/UiBadge.spec.d.ts +0 -1
- package/dist/components/UiBadge/UiBadge.stories.d.ts +0 -108
- package/dist/components/UiButton/UiButton.spec.d.ts +0 -1
- package/dist/components/UiButton/UiButton.stories.d.ts +0 -118
- package/dist/components/UiButtonGroup/UiButtonGroup.spec.d.ts +0 -1
- package/dist/components/UiButtonGroup/UiButtonGroup.stories.d.ts +0 -36
- package/dist/components/UiCard/UiCard.spec.d.ts +0 -1
- package/dist/components/UiCard/UiCard.stories.d.ts +0 -24
- package/dist/components/UiCheckBox/UiCheckBox.spec.d.ts +0 -1
- package/dist/components/UiCheckBox/UiCheckBox.stories.d.ts +0 -117
- package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.d.ts +0 -1
- package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.d.ts +0 -40
- package/dist/components/UiChip/UiChip.spec.d.ts +0 -1
- package/dist/components/UiChip/UiChip.stories.d.ts +0 -66
- package/dist/components/UiCollapseNavigation/UiCollapseNavigation.spec.d.ts +0 -1
- package/dist/components/UiCollapseNavigation/UiCollapseNavigation.stories.d.ts +0 -71
- package/dist/components/UiColorPicker/UiColorPicker.spec.d.ts +0 -1
- package/dist/components/UiColorPicker/UiColorPicker.stories.d.ts +0 -27
- package/dist/components/UiDatePicker/UiDatePicker.spec.d.ts +0 -1
- package/dist/components/UiDatePicker/UiDatePicker.stories.d.ts +0 -5468
- package/dist/components/UiDialog/UiDialog.spec.d.ts +0 -1
- package/dist/components/UiDialog/UiDialog.stories.d.ts +0 -496
- package/dist/components/UiFilterBadge/UiFilterBadge.spec.d.ts +0 -1
- package/dist/components/UiFilterBadge/UiFilterBadge.stories.d.ts +0 -248
- package/dist/components/UiFilterBadgeButton/UiFilterBadgeButton.spec.d.ts +0 -1
- package/dist/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.d.ts +0 -310
- package/dist/components/UiFilterButton/UiFilterButton.spec.d.ts +0 -1
- package/dist/components/UiFilterButton/UiFilterButton.stories.d.ts +0 -245
- package/dist/components/UiIcon/IconOverview.vue.d.ts +0 -5
- package/dist/components/UiIcon/UiIcon.spec.d.ts +0 -1
- package/dist/components/UiIcon/UiIcon.stories.d.ts +0 -34
- package/dist/components/UiIconButton/UiIconButton.spec.d.ts +0 -1
- package/dist/components/UiIconButton/UiIconButton.stories.d.ts +0 -141
- package/dist/components/UiInfoContent/UiInfoContent.spec.d.ts +0 -1
- package/dist/components/UiInfoContent/UiInfoContent.stories.d.ts +0 -308
- package/dist/components/UiInput/UiInput.spec.d.ts +0 -1
- package/dist/components/UiInput/UiInput.stories.d.ts +0 -756
- package/dist/components/UiList/UiList.spec.d.ts +0 -1
- package/dist/components/UiList/UiList.stories.d.ts +0 -146
- package/dist/components/UiListItem/UiListItem.spec.d.ts +0 -1
- package/dist/components/UiListItem/UiListItem.stories.d.ts +0 -519
- package/dist/components/UiMenu/UiMenu.spec.d.ts +0 -1
- package/dist/components/UiMenu/UiMenu.stories.d.ts +0 -205
- package/dist/components/UiOverlay/UiOverlay.spec.d.ts +0 -1
- package/dist/components/UiOverlay/UiOverlay.stories.d.ts +0 -121
- package/dist/components/UiOverlayMenu/UiOverlayMenu.spec.d.ts +0 -1
- package/dist/components/UiOverlayMenu/UiOverlayMenu.stories.d.ts +0 -439
- package/dist/components/UiRadioInputGroup/UiRadioInputGroup.spec.d.ts +0 -1
- package/dist/components/UiRadioInputGroup/UiRadioInputGroup.stories.d.ts +0 -150
- package/dist/components/UiSearchBar/UiSearchBar.spec.d.ts +0 -1
- package/dist/components/UiSearchBar/UiSearchBar.stories.d.ts +0 -191
- package/dist/components/UiSearchInput/UiSearchInput.spec.d.ts +0 -1
- package/dist/components/UiSearchInput/UiSearchInput.stories.d.ts +0 -378
- package/dist/components/UiSection/UiSection.spec.d.ts +0 -1
- package/dist/components/UiSection/UiSection.stories.d.ts +0 -82
- package/dist/components/UiSectionDivider/UiSectionDivider.spec.d.ts +0 -1
- package/dist/components/UiSectionDivider/UiSectionDivider.stories.d.ts +0 -76
- package/dist/components/UiSimpleInput/UiSimpleInput.spec.d.ts +0 -1
- package/dist/components/UiSimpleInput/UiSimpleInput.stories.d.ts +0 -141
- package/dist/components/UiSkeletonBox/UiSkeletonBox.spec.d.ts +0 -1
- package/dist/components/UiSkeletonBox/UiSkeletonBox.stories.d.ts +0 -86
- package/dist/components/UiSnackbar/UiSnackbar.spec.d.ts +0 -1
- package/dist/components/UiSnackbar/UiSnackbar.stories.d.ts +0 -331
- package/dist/components/UiSpinner/UiSpinner.spec.d.ts +0 -1
- package/dist/components/UiSpinner/UiSpinner.stories.d.ts +0 -73
- package/dist/components/UiTextButton/UiTextButton.spec.d.ts +0 -1
- package/dist/components/UiTextButton/UiTextButton.stories.d.ts +0 -120
- package/dist/components/UiToggleButton/UiToggleButton.spec.d.ts +0 -1
- package/dist/components/UiToggleButton/UiToggleButton.stories.d.ts +0 -140
- package/dist/components/UiTooltip/UiTooltip.spec.d.ts +0 -1
- package/dist/components/UiTooltip/UiTooltip.stories.d.ts +0 -498
- package/dist/compositions/useBreakpoints/UseBreakpoints.stories.d.ts +0 -10
- package/dist/compositions/useBreakpoints/UseBreakpoints.vue.d.ts +0 -2
- package/dist/copy-fB3PGMdb.js +0 -19
- package/dist/copy-link-Z-VzLZHQ.js +0 -29
- package/dist/delete-CV5D8fhk.js +0 -15
- package/dist/directives/clickAway/clickAway.d.ts +0 -6
- package/dist/download-Bdg5UWcF.js +0 -15
- package/dist/dpa-id-CleGZhbJ.js +0 -19
- package/dist/edit-Cj1iRHjN.js +0 -15
- package/dist/edit-add-BeEmxgcL.js +0 -15
- package/dist/eil-C1xRUE6D.js +0 -19
- package/dist/emoji-BNwwtPND.js +0 -29
- package/dist/emoji-add-CE_9Vj_u.js +0 -29
- package/dist/envelope-H3vYxvVh.js +0 -15
- package/dist/event-BTwuXN9I.js +0 -15
- package/dist/expand-Bi12lU5A.js +0 -15
- package/dist/external-link-CK9k2Y-O.js +0 -15
- package/dist/file-dHozirU0.js +0 -15
- package/dist/file-pdf-DQrATE2q.js +0 -19
- package/dist/filter-DiCvyxz0.js +0 -15
- package/dist/filter-outline-5UEsJuxf.js +0 -29
- package/dist/flag-ZaGlQvHe.js +0 -15
- package/dist/flag-fill-KogPQ2ng.js +0 -15
- package/dist/flag-filled-CEPZJRJr.js +0 -15
- package/dist/flag-outline-Dbq0gcUa.js +0 -15
- package/dist/flags-D1I6OA6U.js +0 -19
- package/dist/flash-suw9pQF_.js +0 -15
- package/dist/folder-BJdTCJHg.js +0 -15
- package/dist/folder-add-wH_L405P.js +0 -15
- package/dist/folder-fill-C-0Jk8Mg.js +0 -15
- package/dist/folder-filled-DhuhtRUT.js +0 -15
- package/dist/gallery-CZ3mt5ui.js +0 -20
- package/dist/graphic-BKiss2aF.js +0 -15
- package/dist/graphic-circled-B-oOF_T6.js +0 -15
- package/dist/graphic-filled-Q-gkg6tF.js +0 -19
- package/dist/graphics-NIAwX4dF.js +0 -15
- package/dist/grid-1-D6MIQ6XV.js +0 -15
- package/dist/grid-2-D-4m0EPZ.js +0 -15
- package/dist/grid-3-Cpuf8PZK.js +0 -15
- package/dist/grid-4-DLW6XdYm.js +0 -15
- package/dist/grid-6-DVk4j2Lr.js +0 -15
- package/dist/grid-9-DKuhgsca.js +0 -15
- package/dist/grid-masonry-9-BEW3HIhr.js +0 -19
- package/dist/grid-masonry-D4qeT8_q.js +0 -15
- package/dist/help-NQS-iFa2.js +0 -19
- package/dist/home-Cytp08Lz.js +0 -15
- package/dist/image focus point-Rtt4u140.js +0 -19
- package/dist/image-CfSJ8jjS.js +0 -19
- package/dist/impact-high-DD8VqNAY.js +0 -29
- package/dist/impact-low-sN5vx6ca.js +0 -29
- package/dist/impact-medium-3vU0zzS8.js +0 -29
- package/dist/impact-very-high-d2QAcPcf.js +0 -29
- package/dist/impact-very-low-CkAtdvb6.js +0 -29
- package/dist/info-Bt3XfDDd.js +0 -15
- package/dist/info-fill-DE0GW7nu.js +0 -15
- package/dist/info-filled-QmqSh3a2.js +0 -15
- package/dist/label-ZzjOPjln.js +0 -19
- package/dist/label-filled-j_-BCTAD.js +0 -19
- package/dist/language-Db7FDNWA.js +0 -15
- package/dist/latest-COGMKFHF.js +0 -15
- package/dist/lightbulb-BlpIVkbd.js +0 -15
- package/dist/list-CPHFH_nl.js +0 -15
- package/dist/list-search-8mB4oGGn.js +0 -21
- package/dist/lock-Dcj4HaSk.js +0 -19
- package/dist/lock-filled-BnsIWWZt.js +0 -19
- package/dist/mail-DyLMUo4A.js +0 -15
- package/dist/map-BSkcSC9_.js +0 -19
- package/dist/map-outline-CtQ5Xeu1.js +0 -19
- package/dist/menu-DnI1XC7n.js +0 -15
- package/dist/minus-CmtL9u29.js +0 -15
- package/dist/more-horizontal-w8VrmTQK.js +0 -15
- package/dist/more-vertical-C01abtJp.js +0 -15
- package/dist/move-Dwr1IUqp.js +0 -15
- package/dist/move-up-down-CEjgMPm0.js +0 -15
- package/dist/navigation-B2tj3yaK.js +0 -15
- package/dist/note-CSgXIx_b.js +0 -19
- package/dist/offline-ClkLK9xU.js +0 -15
- package/dist/package-BF3Gq-ZY.js +0 -15
- package/dist/paper-plane-C0N7ByKz.js +0 -15
- package/dist/paperplane-8HSfGeyw.js +0 -15
- package/dist/pause-Cr5tX-Qv.js +0 -29
- package/dist/pause-circle-BUk-hLi5.js +0 -29
- package/dist/pdf-BY8vfjXp.js +0 -22
- package/dist/pen-CtnxOLGw.js +0 -15
- package/dist/pen-check-DTfXSboV.js +0 -19
- package/dist/people-BR25OVNz.js +0 -19
- package/dist/phone-BZcyIb8n.js +0 -19
- package/dist/picture-C_ddF04C.js +0 -19
- package/dist/picture-circled-DuAgejYO.js +0 -15
- package/dist/picture-filled-COn-IAWs.js +0 -19
- package/dist/pin-RZnvVDrr.js +0 -19
- package/dist/planning-Dln9PiF4.js +0 -15
- package/dist/play-DcP1gS8Z.js +0 -29
- package/dist/play-circle-D95onwfe.js +0 -19
- package/dist/play-fill-CCQpVi4h.js +0 -29
- package/dist/plus-CFTk5TJS.js +0 -15
- package/dist/plus-circle-BkU5XOPj.js +0 -15
- package/dist/print-DW4odow3.js +0 -15
- package/dist/refresh-uqtc8Aki.js +0 -15
- package/dist/reset-BtRVoCGg.js +0 -15
- package/dist/responsive-_IrTKB4D.js +0 -19
- package/dist/rubix-thema-sVC4G5iu.js +0 -19
- package/dist/save-BaYX-8wh.js +0 -15
- package/dist/saved-search-CzDFN9Qs.js +0 -29
- package/dist/saved-search-fill-BT4lMkNT.js +0 -30
- package/dist/search-CdtjM1hw.js +0 -15
- package/dist/settings-2aCocdUM.js +0 -19
- package/dist/share-BgiHeOjz.js +0 -15
- package/dist/share-alternative-C0OEZ2zo.js +0 -15
- package/dist/sidebar-BiC8edWC.js +0 -15
- package/dist/sidebar-fill-DY3-S_y1.js +0 -19
- package/dist/slack-CoEfiPj5.js +0 -15
- package/dist/slider-config-7zc6XVMU.js +0 -19
- package/dist/spellcheck-C0_i11ec.js +0 -19
- package/dist/spinner-Dq8UJY0K.js +0 -15
- package/dist/standard-view-CcggvvEn.js +0 -15
- package/dist/star-BemQOyeI.js +0 -15
- package/dist/star-fill-DPYFY706.js +0 -15
- package/dist/star-filled-DPYFY706.js +0 -15
- package/dist/stop-CLtAP4Q7.js +0 -19
- package/dist/stories/Typography/TypoClasses.d.ts +0 -2
- package/dist/stories/Typography/Typography.stories.d.ts +0 -21
- package/dist/stories/Typography/TypographyOverview.vue.d.ts +0 -5
- package/dist/story-NVS6w60J.js +0 -15
- package/dist/sync-BqlSLQVE.js +0 -15
- package/dist/tasks-D5lApXLs.js +0 -15
- package/dist/text-R1U99X0r.js +0 -15
- package/dist/text-circled-9QX0VhLB.js +0 -15
- package/dist/text-filled-DszLyCjZ.js +0 -19
- package/dist/thumbs-down-CdwHyt1J.js +0 -19
- package/dist/thumbs-up-BTpkDxMZ.js +0 -22
- package/dist/thumbs-up-double-Cddorc6q.js +0 -22
- package/dist/topic-BulFKttB.js +0 -19
- package/dist/union-BsqZS5Xl.js +0 -19
- package/dist/upload-FqT5gCGS.js +0 -15
- package/dist/video overlay-t3aungPx.js +0 -19
- package/dist/video-Dty4YCc5.js +0 -25
- package/dist/video-circled-n1rEV6q0.js +0 -15
- package/dist/video-filled-DnsnQ4Jr.js +0 -19
- package/dist/video-rounded-BF3e23iS.js +0 -19
- package/dist/view-C-6vs1rZ.js +0 -29
- package/dist/view-off-DeL0zT9Z.js +0 -19
- package/dist/volume-up-BtqBUF0O.js +0 -29
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="tagName"
|
|
4
|
+
:href="href"
|
|
5
|
+
:class="classNames"
|
|
6
|
+
class="inline-flex items-center"
|
|
7
|
+
:target="target"
|
|
8
|
+
>
|
|
9
|
+
<UiIcon
|
|
10
|
+
v-if="iconLeft"
|
|
11
|
+
:class="iconLeftMarginClass"
|
|
12
|
+
:name="iconLeft"
|
|
13
|
+
:size="iconSize"
|
|
14
|
+
/>
|
|
15
|
+
<slot />
|
|
16
|
+
<UiIcon
|
|
17
|
+
v-if="iconRight"
|
|
18
|
+
:class="iconRightMarginClass"
|
|
19
|
+
:name="iconRight"
|
|
20
|
+
:size="iconSize"
|
|
21
|
+
/>
|
|
22
|
+
</component>
|
|
23
|
+
</template>
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import { computed } from "vue";
|
|
26
|
+
import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
|
|
27
|
+
|
|
28
|
+
const props = withDefaults(
|
|
29
|
+
defineProps<{
|
|
30
|
+
color?: "blue" | "gray";
|
|
31
|
+
href?: string;
|
|
32
|
+
iconLeft?: UiIconName;
|
|
33
|
+
iconRight?: UiIconName;
|
|
34
|
+
placement?: "onsurface" | "oncanvas";
|
|
35
|
+
size?: "xsmall" | "small" | "medium";
|
|
36
|
+
weight?: "regular" | "semibold";
|
|
37
|
+
linkTarget?: string;
|
|
38
|
+
}>(),
|
|
39
|
+
{
|
|
40
|
+
color: "blue",
|
|
41
|
+
href: undefined,
|
|
42
|
+
iconLeft: undefined,
|
|
43
|
+
iconRight: undefined,
|
|
44
|
+
placement: "onsurface",
|
|
45
|
+
size: "medium",
|
|
46
|
+
weight: "regular",
|
|
47
|
+
linkTarget: "_self",
|
|
48
|
+
},
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
const tagName = computed((): string => {
|
|
52
|
+
if (props.href?.length) {
|
|
53
|
+
return "a";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return "button";
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const target = computed((): string => {
|
|
60
|
+
if (props.href?.length) {
|
|
61
|
+
return props.linkTarget;
|
|
62
|
+
}
|
|
63
|
+
return "";
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const weightClassName = computed((): string => {
|
|
67
|
+
let fontClass, hoverClass;
|
|
68
|
+
|
|
69
|
+
if (props.weight === "regular") {
|
|
70
|
+
fontClass = "font-normal";
|
|
71
|
+
hoverClass = "hover:underline";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (props.weight === "semibold") {
|
|
75
|
+
fontClass = "font-semibold rounded-lg";
|
|
76
|
+
|
|
77
|
+
if (props.placement === "onsurface") {
|
|
78
|
+
hoverClass = "hover:bg-gray-100";
|
|
79
|
+
} else if (props.placement === "oncanvas") {
|
|
80
|
+
hoverClass = "hover:bg-gray-200";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return `${fontClass} ${hoverClass}`;
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
const paddingClass = computed((): string => {
|
|
88
|
+
if (props.weight === "semibold") {
|
|
89
|
+
if (props.size === "medium") {
|
|
90
|
+
return "px-2 -mx-2";
|
|
91
|
+
} else if (props.size === "small" || props.size === "xsmall") {
|
|
92
|
+
return "px-1 -mx-1";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return "";
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
const textClassName = computed((): string => {
|
|
99
|
+
if (props.size === "xsmall") {
|
|
100
|
+
return "text-xs";
|
|
101
|
+
} else if (props.size === "small") {
|
|
102
|
+
return "text-sm";
|
|
103
|
+
} else {
|
|
104
|
+
return "text-base";
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
const colorClass = computed((): string => {
|
|
109
|
+
if (props.color === "blue") {
|
|
110
|
+
return "text-blue-default";
|
|
111
|
+
} else if (props.color === "gray") {
|
|
112
|
+
if (props.placement === "onsurface") {
|
|
113
|
+
return "text-gray-700";
|
|
114
|
+
} else if (props.placement === "oncanvas") {
|
|
115
|
+
return "text-gray-800";
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return "";
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const iconSize = computed((): "small" | "medium" => {
|
|
122
|
+
if (props.size === "xsmall") {
|
|
123
|
+
return "small";
|
|
124
|
+
} else {
|
|
125
|
+
return "medium";
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
const iconLeftMarginClass = computed((): string => {
|
|
130
|
+
if (props.size === "xsmall") {
|
|
131
|
+
return "mr-1";
|
|
132
|
+
} else {
|
|
133
|
+
return "mr-2";
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const iconRightMarginClass = computed((): string => {
|
|
138
|
+
if (props.size === "xsmall") {
|
|
139
|
+
return "ml-1";
|
|
140
|
+
} else {
|
|
141
|
+
return "ml-2";
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const classNames = computed((): string[] => {
|
|
146
|
+
return [
|
|
147
|
+
paddingClass.value,
|
|
148
|
+
textClassName.value,
|
|
149
|
+
weightClassName.value,
|
|
150
|
+
colorClass.value,
|
|
151
|
+
];
|
|
152
|
+
});
|
|
153
|
+
</script>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @dpa-shared-components/UiToggleButton
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<!-- SomeComponent.vue using UiToggleButton -->
|
|
7
|
+
<template>
|
|
8
|
+
<UiToggleButton labelText="Toggle me" v-model="value" />
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import { UiToggleButton } from "@dpa-id-components/dpa-shared-components";
|
|
13
|
+
</script>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## API
|
|
17
|
+
|
|
18
|
+
### Props
|
|
19
|
+
|
|
20
|
+
| Name | Type | Default | Description |
|
|
21
|
+
| --------------- | --------- |-----------|----------------------------------------------------------|
|
|
22
|
+
| `labelText` | `String` | `` | Sets label for the Toggle |
|
|
23
|
+
| `labelSpace` | `String` | `default` | For more space between label and toggle set this to "xl" |
|
|
24
|
+
| `labelPosition` | `String` | `left` | To place the label to the right side set this to "right" |
|
|
25
|
+
| `labelTextSize` | `String` | `xs` | Adjust the label-font-size to your needs |
|
|
26
|
+
| `labelVisible` | `boolean` | `true` | Whether the label visible or not. Set to `false` to visually hide the label while keeping it accessible. |
|
|
27
|
+
| `modelValue` | `Boolean` | `false` | The `checked` state of the checkbox |
|
|
28
|
+
| `disabled` | `Boolean` | `false` | Wether the `button` is disabled |
|
|
29
|
+
| `color` | `String` | `blue` | Sets the `color` of the toggle while it is active |
|
|
30
|
+
| `size` | `String` | `small` | Sets the element's `size` to either "small" or "large" |
|
|
31
|
+
|
|
32
|
+
### Slots
|
|
33
|
+
|
|
34
|
+
| Name | Description |
|
|
35
|
+
| --------- | -------------------------------------------- |
|
|
36
|
+
| `default` | slot for custom content and styling of label |
|
|
37
|
+
|
|
38
|
+
### Events
|
|
39
|
+
|
|
40
|
+
| Name | Type | Description |
|
|
41
|
+
| -------------------- | --------- | -------------------------------------- |
|
|
42
|
+
| `update:model-value` | `boolean` | |
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import UiToggleButton from "./UiToggleButton.vue";
|
|
2
|
+
import { mount } from "@vue/test-utils";
|
|
3
|
+
import { expect, describe, it } from "vitest";
|
|
4
|
+
|
|
5
|
+
describe("UiToggleButton", () => {
|
|
6
|
+
const labelText = "Foo";
|
|
7
|
+
const wrapper = mount(UiToggleButton, {
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: false,
|
|
10
|
+
disabled: false,
|
|
11
|
+
labelText: labelText,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it("shows correct label text ", () => {
|
|
16
|
+
expect(wrapper.text()).toContain(labelText);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("emits correct event when clicked", async () => {
|
|
20
|
+
const input = wrapper.find("[data-testid='toggleButton']");
|
|
21
|
+
|
|
22
|
+
await input.trigger("click");
|
|
23
|
+
await wrapper.vm.$nextTick();
|
|
24
|
+
expect(wrapper.emitted()["update:modelValue"]).toBeTruthy();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("should render correct colors when checked", async () => {
|
|
28
|
+
await wrapper.setProps({
|
|
29
|
+
modelValue: true,
|
|
30
|
+
color: "green",
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const dot = wrapper.find(".dot");
|
|
34
|
+
const line = wrapper.find(".line");
|
|
35
|
+
expect((dot.element as HTMLInputElement).className).toContain(
|
|
36
|
+
"translate-x-full bg-green-primary",
|
|
37
|
+
);
|
|
38
|
+
expect((line.element as HTMLInputElement).className).toContain(
|
|
39
|
+
"opacity-50",
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it("should render correct size when size=small", async () => {
|
|
44
|
+
await wrapper.setProps({
|
|
45
|
+
modelValue: true,
|
|
46
|
+
size: "small",
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const dot = wrapper.find(".dot");
|
|
50
|
+
const line = wrapper.find(".line");
|
|
51
|
+
expect((dot.element as HTMLInputElement).className).toContain("h-4 w-4");
|
|
52
|
+
expect((line.element as HTMLInputElement).className).toContain("h-3 w-6");
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("should render correct size when size=large", async () => {
|
|
56
|
+
await wrapper.setProps({
|
|
57
|
+
modelValue: true,
|
|
58
|
+
size: "large",
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const dot = wrapper.find(".dot");
|
|
62
|
+
const line = wrapper.find(".line");
|
|
63
|
+
expect((dot.element as HTMLInputElement).className).toContain("h-6 w-6");
|
|
64
|
+
expect((line.element as HTMLInputElement).className).toContain("h-4 w-10");
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("should show correct disabled value when props are set", async () => {
|
|
68
|
+
await wrapper.setProps({
|
|
69
|
+
disabled: true,
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
const input = wrapper.find("[data-testid='toggleButton']");
|
|
73
|
+
expect((input.element as HTMLInputElement).disabled).toBeTruthy();
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it("should render slot content", () => {
|
|
77
|
+
const wrapperWithSlotContent = mount(UiToggleButton, {
|
|
78
|
+
props: {
|
|
79
|
+
modelValue: false,
|
|
80
|
+
disabled: false,
|
|
81
|
+
},
|
|
82
|
+
slots: {
|
|
83
|
+
default: "Slot Label",
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
expect(wrapperWithSlotContent.text()).toContain("Slot Label");
|
|
87
|
+
});
|
|
88
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import UiToggleButton from "./UiToggleButton.vue";
|
|
2
|
+
import UiIcon from "../UiIcon/UiIcon.vue";
|
|
3
|
+
import { ref } from "vue";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Ui/UiToggleButton",
|
|
8
|
+
component: UiToggleButton,
|
|
9
|
+
argTypes: {
|
|
10
|
+
color: {
|
|
11
|
+
control: { type: "select" },
|
|
12
|
+
options: ["blue", "green"],
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
control: { type: "select" },
|
|
16
|
+
options: ["small", "large"],
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
control: "boolean",
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
control: "boolean",
|
|
23
|
+
},
|
|
24
|
+
labelText: {
|
|
25
|
+
control: "text",
|
|
26
|
+
},
|
|
27
|
+
labelSpace: {
|
|
28
|
+
control: "select",
|
|
29
|
+
options: ["default", "xl"],
|
|
30
|
+
},
|
|
31
|
+
labelPosition: {
|
|
32
|
+
control: "select",
|
|
33
|
+
options: ["left", "right"],
|
|
34
|
+
},
|
|
35
|
+
labelTextSize: {
|
|
36
|
+
control: "select",
|
|
37
|
+
options: ["xs", "sm", "md", "lg"],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
args: {
|
|
41
|
+
color: "blue",
|
|
42
|
+
size: "small",
|
|
43
|
+
modelValue: false,
|
|
44
|
+
disabled: false,
|
|
45
|
+
labelSpace: "default",
|
|
46
|
+
labelTextSize: "xs",
|
|
47
|
+
labelPosition: "left",
|
|
48
|
+
},
|
|
49
|
+
} satisfies Meta<typeof UiToggleButton>;
|
|
50
|
+
|
|
51
|
+
export default meta;
|
|
52
|
+
type Story = StoryObj<typeof meta>;
|
|
53
|
+
|
|
54
|
+
export const Default: Story = {
|
|
55
|
+
render: (args) => ({
|
|
56
|
+
setup() {
|
|
57
|
+
const isChecked = ref(args.modelValue);
|
|
58
|
+
return { args, isChecked };
|
|
59
|
+
},
|
|
60
|
+
components: { UiToggleButton },
|
|
61
|
+
template: `
|
|
62
|
+
<UiToggleButton v-bind='args' v-model='isChecked'>
|
|
63
|
+
Label
|
|
64
|
+
</UiToggleButton>
|
|
65
|
+
`,
|
|
66
|
+
}),
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const MultipleToggles: Story = {
|
|
70
|
+
render: (args) => ({
|
|
71
|
+
setup() {
|
|
72
|
+
const isChecked = ref(args.modelValue);
|
|
73
|
+
const secondToggle = ref(true);
|
|
74
|
+
return { args, isChecked, secondToggle };
|
|
75
|
+
},
|
|
76
|
+
components: { UiToggleButton },
|
|
77
|
+
template: `
|
|
78
|
+
<UiToggleButton label-text="first" v-bind='args' v-model='isChecked' />
|
|
79
|
+
<UiToggleButton label-text="second" color="green" v-model='secondToggle' />
|
|
80
|
+
`,
|
|
81
|
+
}),
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const WithSlot: Story = {
|
|
85
|
+
args: {
|
|
86
|
+
color: "green",
|
|
87
|
+
},
|
|
88
|
+
render: (args) => ({
|
|
89
|
+
setup() {
|
|
90
|
+
const isChecked = ref(args.modelValue);
|
|
91
|
+
return { args, isChecked };
|
|
92
|
+
},
|
|
93
|
+
components: { UiToggleButton, UiIcon },
|
|
94
|
+
template: `
|
|
95
|
+
<UiToggleButton v-bind="args" v-model="isChecked">
|
|
96
|
+
<div class="flex items-center text-gray-800">
|
|
97
|
+
<UiIcon size="small" name="flag-filled" />
|
|
98
|
+
<span class="pl-1.5">Label</span></div>
|
|
99
|
+
</UiToggleButton>`,
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<label :for="toggleId" class="flex cursor-pointer items-center">
|
|
4
|
+
<div
|
|
5
|
+
v-if="$slots.default"
|
|
6
|
+
class="whitespace-nowrap"
|
|
7
|
+
:class="{
|
|
8
|
+
[labelSpaceClass]: true,
|
|
9
|
+
'order-2': !isLabelPositionLeft,
|
|
10
|
+
'sr-only': !labelVisible,
|
|
11
|
+
}"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</div>
|
|
15
|
+
<div
|
|
16
|
+
v-if="isLabelPositionLeft && !$slots.default"
|
|
17
|
+
class="whitespace-nowrap font-normal leading-4 text-gray-800"
|
|
18
|
+
:class="[labelSpaceClass, labelTextSizeClass]"
|
|
19
|
+
>
|
|
20
|
+
{{ labelText }}
|
|
21
|
+
</div>
|
|
22
|
+
<div class="relative">
|
|
23
|
+
<input
|
|
24
|
+
:id="toggleId"
|
|
25
|
+
type="checkbox"
|
|
26
|
+
data-testid="toggleButton"
|
|
27
|
+
role="checkbox"
|
|
28
|
+
:aria-checked="modelValue"
|
|
29
|
+
tabindex="0"
|
|
30
|
+
class="sr-only"
|
|
31
|
+
:disabled="disabled"
|
|
32
|
+
:aria-label="labelText"
|
|
33
|
+
@click="emit('update:modelValue', !modelValue)"
|
|
34
|
+
/>
|
|
35
|
+
<div
|
|
36
|
+
class="line rounded-full shadow-inner transition-opacity duration-200 ease-in-out"
|
|
37
|
+
:class="{
|
|
38
|
+
'opacity-50': modelValue,
|
|
39
|
+
[colorClass]: modelValue,
|
|
40
|
+
'bg-gray-300': !modelValue,
|
|
41
|
+
[lineSize]: true,
|
|
42
|
+
}"
|
|
43
|
+
/>
|
|
44
|
+
<div
|
|
45
|
+
:class="{
|
|
46
|
+
'translate-x-full': modelValue,
|
|
47
|
+
[colorClass]: modelValue,
|
|
48
|
+
'bg-gray-500': !modelValue,
|
|
49
|
+
[dotSize]: true,
|
|
50
|
+
}"
|
|
51
|
+
class="dot absolute -left-1 rounded-full shadow transition-transform duration-200 ease-in-out"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
<div
|
|
55
|
+
v-if="!isLabelPositionLeft && !$slots.default"
|
|
56
|
+
class="whitespace-nowrap font-normal leading-4 text-gray-800"
|
|
57
|
+
:class="[labelSpaceClass, labelTextSizeClass]"
|
|
58
|
+
>
|
|
59
|
+
{{ labelText }}
|
|
60
|
+
</div>
|
|
61
|
+
</label>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script setup lang="ts">
|
|
66
|
+
import { computed, ref } from "vue";
|
|
67
|
+
import { v4 as uuidv4 } from "uuid";
|
|
68
|
+
|
|
69
|
+
const toggleId = ref(`toggle-id-${uuidv4()}`);
|
|
70
|
+
|
|
71
|
+
const emit = defineEmits<{
|
|
72
|
+
"update:modelValue": [boolean];
|
|
73
|
+
}>();
|
|
74
|
+
|
|
75
|
+
const props = withDefaults(
|
|
76
|
+
defineProps<{
|
|
77
|
+
modelValue?: boolean;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
labelText?: string;
|
|
80
|
+
labelSpace?: "default" | "xl";
|
|
81
|
+
labelTextSize?: "xs" | "sm" | "md" | "lg";
|
|
82
|
+
labelPosition?: "left" | "right";
|
|
83
|
+
labelVisible?: boolean;
|
|
84
|
+
color?: "blue" | "green";
|
|
85
|
+
size?: "small" | "large";
|
|
86
|
+
}>(),
|
|
87
|
+
{
|
|
88
|
+
modelValue: false,
|
|
89
|
+
disabled: false,
|
|
90
|
+
labelText: "",
|
|
91
|
+
labelTextSize: "xs",
|
|
92
|
+
labelSpace: "default",
|
|
93
|
+
labelPosition: "left",
|
|
94
|
+
labelVisible: true,
|
|
95
|
+
color: "blue",
|
|
96
|
+
size: "small",
|
|
97
|
+
},
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const labelSpaceClass = computed(() => {
|
|
101
|
+
return props.labelPosition === "left"
|
|
102
|
+
? props.labelSpace === "default"
|
|
103
|
+
? "mr-3"
|
|
104
|
+
: "mr-12"
|
|
105
|
+
: props.labelSpace === "default"
|
|
106
|
+
? "ml-3"
|
|
107
|
+
: "ml-12";
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const labelTextSizeClass = computed(() => {
|
|
111
|
+
switch (props.labelTextSize) {
|
|
112
|
+
case "xs":
|
|
113
|
+
return "text-xs";
|
|
114
|
+
case "sm":
|
|
115
|
+
return "text-sm";
|
|
116
|
+
case "md":
|
|
117
|
+
return "text-md";
|
|
118
|
+
case "lg":
|
|
119
|
+
return "text-lg";
|
|
120
|
+
default:
|
|
121
|
+
return "text-xs";
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
const isLabelPositionLeft = computed(() => {
|
|
126
|
+
return props.labelPosition === "left";
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
const colorClass = computed(() => {
|
|
130
|
+
return props.color === "blue" ? "bg-blue-default" : "bg-green-primary";
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
const lineSize = computed(() => {
|
|
134
|
+
return props.size === "small" ? "h-3 w-6" : "h-4 w-10";
|
|
135
|
+
});
|
|
136
|
+
const dotSize = computed(() => {
|
|
137
|
+
return props.size === "small" ? "h-4 w-4 top-[-2px]" : "h-6 w-6 top-[-4px]";
|
|
138
|
+
});
|
|
139
|
+
</script>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @dpa-shared-components/UiTooltip
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<!-- SomeComponent.vue using UiTooltip -->
|
|
7
|
+
<template>
|
|
8
|
+
<div style="margin: 50px; max-width: max-content;">
|
|
9
|
+
<ui-tooltip>
|
|
10
|
+
<template v-slot:activator>
|
|
11
|
+
<button>Target</button>
|
|
12
|
+
</template>
|
|
13
|
+
Tooltip Content
|
|
14
|
+
</ui-tooltip>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
import UiTooltip from "@dpa-id-components/dpa-shared-components";
|
|
20
|
+
</script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### Props
|
|
26
|
+
|
|
27
|
+
| Name | Type | Default | Description |
|
|
28
|
+
|----------------------|-----------------------------|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
29
|
+
| `position` | `String` | `bottom-center` | Position of the tooltip relative to the activator slot |
|
|
30
|
+
| `structuredLayout` | `Boolean` | `false` | Whether the structured layout should be used |
|
|
31
|
+
| `structuredInfo` | `Array` | `[]` | Contains structured data for structured tooltips |
|
|
32
|
+
| `fixed` | `Boolean` | `false` | Whether the tooltip positioning is fixed instead of absolute |
|
|
33
|
+
| `multilines` | `Boolean` | `false` | Whether the tooltip text has max-width (ideal for long tooltip-text) |
|
|
34
|
+
| `tooltipClasses` | `String` | `''` | Classes added to the tooltip Element |
|
|
35
|
+
| `floatingUiOptions` | `UseFloatingOptions` | `null` | Options for [Floating Ui](https://floating-ui.com/) [Interface](https://github.com/floating-ui/floating-ui/blob/afca34cc59321569ccfca9b41934859809c47a3d/packages/vue/src/types.ts#L60) |
|
|
36
|
+
| `animate` | `Boolean` | `false` | Wether the tooltip should be animated |
|
|
37
|
+
| `transitionClasses` | `Record<Placement, string>` | `false` | Transition classes used based on position, the defaults are noted below |
|
|
38
|
+
| `enterActiveClasses` | `string` | `transition duration-300 delay-500` | Classes that can be used to define the duration, delay and easing curve for the entering transition. |
|
|
39
|
+
| `leaveActiveClasses` | `string` | `transition` | Classes that can be used to define the duration, delay and easing curve for the leaving transition |
|
|
40
|
+
|
|
41
|
+
##### Default transition Classes
|
|
42
|
+
```js
|
|
43
|
+
{
|
|
44
|
+
"top-start": "scale-95 opacity-0 -translate-y-2 ",
|
|
45
|
+
top: "scale-95 opacity-0 -translate-y-2 ",
|
|
46
|
+
"top-end": "scale-95 opacity-0 -translate-y-2",
|
|
47
|
+
right: "scale-95 opacity-0 translate-x-2",
|
|
48
|
+
"bottom-end": "scale-95 opacity-0 translate-y-2 ",
|
|
49
|
+
bottom: "scale-95 opacity-0 translate-y-2",
|
|
50
|
+
"bottom-start": "scale-95 opacity-0 translate-y-2",
|
|
51
|
+
left: "scale-95 opacity-0 -translate-x-2",
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Slots
|
|
57
|
+
|
|
58
|
+
| Name | Description |
|
|
59
|
+
|-------------|----------------------------------------------|
|
|
60
|
+
| `default` | Default slot for text/content of the tooltip |
|
|
61
|
+
| `activator` | Slot for tooltip activator |
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import UiTooltip from "./UiTooltip.vue";
|
|
2
|
+
import { mount } from "@vue/test-utils";
|
|
3
|
+
import { expect, describe, it } from "vitest";
|
|
4
|
+
|
|
5
|
+
document.body.innerHTML = `
|
|
6
|
+
<div id="app"></div>
|
|
7
|
+
`;
|
|
8
|
+
|
|
9
|
+
describe("UiTooltip", () => {
|
|
10
|
+
it("shows correct content", () => {
|
|
11
|
+
const wrapper = mount(UiTooltip, {
|
|
12
|
+
props: {
|
|
13
|
+
fixed: false,
|
|
14
|
+
},
|
|
15
|
+
slots: {
|
|
16
|
+
default: "tooltip content",
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
expect(wrapper.text()).toBe("tooltip content");
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it("uses the structured tooltip", () => {
|
|
23
|
+
const wrapper = mount(UiTooltip, {
|
|
24
|
+
props: {
|
|
25
|
+
fixed: false,
|
|
26
|
+
structuredLayout: true,
|
|
27
|
+
structuredInfo: [
|
|
28
|
+
{
|
|
29
|
+
title: "Typ",
|
|
30
|
+
description: "Termine",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: "Ressort",
|
|
34
|
+
description: "Wirtschaft",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
const firstEl = wrapper.findAll("li")[0];
|
|
40
|
+
const secondEl = wrapper.findAll("li")[1];
|
|
41
|
+
expect(firstEl.text()).toBe("TypTermine");
|
|
42
|
+
expect(secondEl.text()).toBe("RessortWirtschaft");
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("is not rendered without mouseover", async () => {
|
|
46
|
+
const wrapper = mount(UiTooltip, {
|
|
47
|
+
props: {
|
|
48
|
+
fixed: false,
|
|
49
|
+
},
|
|
50
|
+
slots: {
|
|
51
|
+
activator: "<button>activate</button>",
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
expect(
|
|
56
|
+
wrapper.find('[data-testid="tooltipElement"]').isVisible(),
|
|
57
|
+
).toBeFalsy();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("is rendered upon mouseover", async () => {
|
|
61
|
+
const wrapper = mount(UiTooltip, {
|
|
62
|
+
props: {
|
|
63
|
+
fixed: false,
|
|
64
|
+
},
|
|
65
|
+
slots: {
|
|
66
|
+
activator: "<button>Hover me</button>",
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
const activator = wrapper.find('[data-testid="activator"]');
|
|
70
|
+
await activator.trigger("mouseenter");
|
|
71
|
+
|
|
72
|
+
expect(wrapper.find('[data-testid="tooltip"]').classes("hidden")).toBe(
|
|
73
|
+
false,
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it("is rendered in the correct position", async () => {
|
|
78
|
+
const wrapper = mount(UiTooltip, {
|
|
79
|
+
props: {
|
|
80
|
+
fixed: false,
|
|
81
|
+
position: "right",
|
|
82
|
+
},
|
|
83
|
+
slots: {
|
|
84
|
+
activator: "<button>Hover me</button>",
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
const activator = wrapper.find('[data-testid="activator"]');
|
|
88
|
+
await activator.trigger("mouseenter");
|
|
89
|
+
|
|
90
|
+
expect(
|
|
91
|
+
wrapper.find('[data-testid="tooltip"]').attributes("data-placement"),
|
|
92
|
+
).toBe("right");
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it("is in a fixed position", () => {
|
|
96
|
+
const wrapper = mount(UiTooltip, {
|
|
97
|
+
props: {
|
|
98
|
+
fixed: true,
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Find Tooltip that is teleported to the body
|
|
103
|
+
const tooltip = document.querySelector(
|
|
104
|
+
'[data-testid="tooltip"]',
|
|
105
|
+
) as HTMLElement;
|
|
106
|
+
|
|
107
|
+
expect(tooltip).not.toBeNull();
|
|
108
|
+
expect(tooltip?.style.position).toBe("fixed");
|
|
109
|
+
|
|
110
|
+
// Cleanup after the test
|
|
111
|
+
wrapper.unmount();
|
|
112
|
+
});
|
|
113
|
+
});
|