@dpa-id-components/dpa-shared-components 22.0.0-next.4 → 22.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activities-BxyZQp7R.js → activities-Bvo5Tcpi.js} +1 -1
- package/dist/{ai-CvQQ6hUw.js → ai-CAbOdJZ8.js} +1 -1
- package/dist/{alert-CFNc2ENq.js → alert-DBH5Lw4Q.js} +1 -1
- package/dist/{alert-BeP6nqRf.js → alert-WA0pKI_x.js} +1 -1
- package/dist/{alert-filled-COSmQYAa.js → alert-filled-FaMUUR6G.js} +1 -1
- package/dist/{alert-octagon-Cd-_T4ON.js → alert-octagon-BThdHdMx.js} +1 -1
- package/dist/{apps-CtY6nO4d.js → apps-BrHprahs.js} +1 -1
- package/dist/{archive-DmV6cQ50.js → archive-DBPHhVqZ.js} +1 -1
- package/dist/{arrow-down-Cfib5c-0.js → arrow-down-9mspAtJH.js} +1 -1
- package/dist/{arrow-left-CFSY8V--.js → arrow-left-hTN1YNGs.js} +1 -1
- package/dist/{arrow-nav-left-BRYPr4oj.js → arrow-nav-left-NM47R1BA.js} +1 -1
- package/dist/{arrow-nav-right-PqR7W08e.js → arrow-nav-right-DBI84Ukd.js} +1 -1
- package/dist/{arrow-right-ByFSLzJb.js → arrow-right-Dc7c9oto.js} +1 -1
- package/dist/{arrow-up-DfhQKYKi.js → arrow-up-CiiVaA-K.js} +1 -1
- package/dist/{arrowhead-left-BxBCmhZy.js → arrowhead-left-DAvzD9VP.js} +1 -1
- package/dist/{arrowhead-right-D6Hk6b6x.js → arrowhead-right-iQjcoNZb.js} +1 -1
- package/dist/{arrowhead-top-wkcSxZmc.js → arrowhead-top-DTp7fzfU.js} +1 -1
- package/dist/{atmo-CqanVC-e.js → atmo-BrG9pffw.js} +1 -1
- package/dist/{audio-BHaZEzct.js → audio-BnHB5z0H.js} +1 -1
- package/dist/{audio-DS8plcCU.js → audio-BqoT7-od.js} +1 -1
- package/dist/{bag-B28jMR7E.js → bag-eXRYZJ5d.js} +1 -1
- package/dist/{bell-k_sZgnpL.js → bell-BcqwMFZV.js} +1 -1
- package/dist/{bell-filled-7gfK8601.js → bell-filled-CCmYyi8Z.js} +1 -1
- package/dist/{book-CqUJ_JRz.js → book-DiER4Xal.js} +1 -1
- package/dist/{bookmark-D65iW--h.js → bookmark-CwFo741C.js} +1 -1
- package/dist/{bookmark-filled-5lCW1BfF.js → bookmark-filled-AlwB_za3.js} +1 -1
- package/dist/{box-BCDNtaq7.js → box-P6SzKKRE.js} +1 -1
- package/dist/{bulb-12wSYpgA.js → bulb-BZmG8P4A.js} +1 -1
- package/dist/{call-CW04DyHi.js → call-C4ZdCz85.js} +1 -1
- package/dist/{camera-CbeyxVU5.js → camera-DW62puKy.js} +1 -1
- package/dist/{check-BpPjjXqx.js → check-9wo51ATk.js} +1 -1
- package/dist/{checklist-CFCfO7IN.js → checklist-B9luxORW.js} +1 -1
- package/dist/{checkmark-DhUksPvT.js → checkmark-BP702pIx.js} +1 -1
- package/dist/{checkmark-double-BNGXAUiT.js → checkmark-double-C059sbOk.js} +1 -1
- package/dist/{chevron-down-BjZ6BFFp.js → chevron-down-BPdRPnuP.js} +1 -1
- package/dist/{chevron-left-Z-D_OY2t.js → chevron-left-DA6BCeyF.js} +1 -1
- package/dist/{chevron-right-D1GfZQB6.js → chevron-right-C1GSdP4O.js} +1 -1
- package/dist/{chevron-up-DWZ1F8w0.js → chevron-up-CQEWqhSb.js} +1 -1
- package/dist/{clipboard-CNCIToKK.js → clipboard-C_NHlsUb.js} +1 -1
- package/dist/{clock-CqWSNhFX.js → clock-neZro3_P.js} +1 -1
- package/dist/{close-oHIGT_JQ.js → close-C9n_rCkw.js} +1 -1
- package/dist/{cloud-save-CWTQ5IHS.js → cloud-save-JY1j-mAo.js} +1 -1
- package/dist/{code-BD5nOHqK.js → code-Zpa3O6Dn.js} +1 -1
- package/dist/{collapse-D6QeCZC7.js → collapse-DJWRlvmL.js} +1 -1
- package/dist/{color-palette-BpONORjj.js → color-palette-Cp5noKDc.js} +1 -1
- package/dist/{comment-D5RZxZWG.js → comment-C2qDfTCg.js} +1 -1
- package/dist/{comment-filled-Cl_qZ6Fz.js → comment-filled-BTJgoypE.js} +1 -1
- package/dist/components/UiBadge/UiBadge.vue.d.ts +1 -1
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +35 -32
- package/dist/components/UiDialog/UiDialog.vue.d.ts +1 -0
- package/dist/components/UiInput/UiInput.vue.d.ts +35 -32
- package/dist/components/UiListItem/UiListItem.vue.d.ts +0 -1
- package/dist/components/UiMenu/UiMenu.vue.d.ts +0 -2
- package/dist/{copy-BDnlScSS.js → copy-UeWQjnZS.js} +1 -1
- package/dist/{copy-link-BSfa58Tb.js → copy-link-DGyyBykG.js} +1 -1
- package/dist/{delete-dDyi0gau.js → delete-B4tAjAEP.js} +1 -1
- package/dist/{download-B-ZTsIBv.js → download-Cbbey3Xt.js} +1 -1
- package/dist/{dpa-id-DRnjTcHI.js → dpa-id-WofmYqQY.js} +1 -1
- package/dist/dpa-shared-components.js +2696 -2641
- package/dist/{edit-BbFkVyRd.js → edit-DjkrcJP-.js} +1 -1
- package/dist/{edit-add-CAPOsjts.js → edit-add-B_lAB6lo.js} +1 -1
- package/dist/{eil-CzEP-9Lo.js → eil-DkVC34Lp.js} +1 -1
- package/dist/{emoji-add-BB4fB4th.js → emoji-add-D_YEHkA_.js} +1 -1
- package/dist/{emoji-BjLqvypC.js → emoji-zfiF2uko.js} +1 -1
- package/dist/{envelope-DftzB5Ol.js → envelope-9IVXijl6.js} +1 -1
- package/dist/{event-FR1JMgj6.js → event-Cfxumw-I.js} +1 -1
- package/dist/{expand-DaVQ0gpz.js → expand-Br6A7VrH.js} +1 -1
- package/dist/{external-link-2Es0qWwd.js → external-link-Bp0c-YfO.js} +1 -1
- package/dist/{file-AHJ00f5M.js → file-ClbE8n4I.js} +1 -1
- package/dist/{file-pdf-CJDdjKS0.js → file-pdf-caXv18xm.js} +1 -1
- package/dist/{filter-CXjBFUUg.js → filter-Cq2XEw3l.js} +1 -1
- package/dist/{flag-CbX4PUMS.js → flag-T1AIv4IV.js} +1 -1
- package/dist/{flag-filled-VmJW-U0p.js → flag-filled-BZBPstZi.js} +1 -1
- package/dist/{flags-Buo1j-9g.js → flags-cjNp5ctY.js} +1 -1
- package/dist/{flash-Dlr5gL01.js → flash-MJdJ-tB9.js} +1 -1
- package/dist/{folder-DQwCjGZC.js → folder-L-kYlWI-.js} +1 -1
- package/dist/{folder-add-zPr2Gmtj.js → folder-add-BcUtPV2p.js} +1 -1
- package/dist/{folder-filled-D6pmcH0e.js → folder-filled-CL3WiS7M.js} +1 -1
- package/dist/{gallery-DwPWc5L2.js → gallery-01MqVCbs.js} +1 -1
- package/dist/{gallery-CfUbckcB.js → gallery-D63957fL.js} +1 -1
- package/dist/{graphic-DMZdoJT7.js → graphic-BET4N-Ym.js} +1 -1
- package/dist/{graphic-nXH5ifxc.js → graphic-BpeZpley.js} +1 -1
- package/dist/{graphics-Dp8pQzs-.js → graphics-CYTosMI0.js} +1 -1
- package/dist/{grid-1-DZUEMbtb.js → grid-1-Dd_GXV5I.js} +1 -1
- package/dist/{grid-2-BQ-9yylY.js → grid-2-O6hEMs7P.js} +1 -1
- package/dist/{grid-3-BGhZrrCJ.js → grid-3-Kk6KNP_U.js} +1 -1
- package/dist/{grid-4-DY9N435A.js → grid-4-DSJwHWUS.js} +1 -1
- package/dist/{grid-6-B0BR3wbB.js → grid-6-BE49yqiV.js} +1 -1
- package/dist/{grid-9-BWhM7qat.js → grid-9-CLSHbY93.js} +1 -1
- package/dist/{grid-masonry-9-DiiX1pQo.js → grid-masonry-9-KXh2ZVtt.js} +1 -1
- package/dist/{grid-masonry-1e9tYkSK.js → grid-masonry-jDkWqFPf.js} +1 -1
- package/dist/{help-CLfj4LQM.js → help-DOkv1RLw.js} +1 -1
- package/dist/{home-D6htLjOF.js → home-D0uqbu-I.js} +1 -1
- package/dist/{image-DnYnaoeu.js → image-DELKJAje.js} +1 -1
- package/dist/{image-focus-point-BJ7HhehR.js → image-focus-point-DBCuBJ6a.js} +1 -1
- package/dist/{impact-high-DuECIU0d.js → impact-high-C3BKUG7I.js} +1 -1
- package/dist/{impact-low-DMtzvmWi.js → impact-low-BgYzB929.js} +1 -1
- package/dist/{impact-medium-B5-WfnV2.js → impact-medium-IB_zZvAq.js} +1 -1
- package/dist/{impact-very-high-C1K1nCE9.js → impact-very-high-CSVkx_Lk.js} +1 -1
- package/dist/{impact-very-low-CXbiBK6E.js → impact-very-low-DVh9ZGv0.js} +1 -1
- package/dist/{info-Ca-64c_9.js → info-DY1LCTZM.js} +1 -1
- package/dist/{info-filled-PYbvwGmZ.js → info-filled-wA8TNuIY.js} +1 -1
- package/dist/{label-D8X5FrVe.js → label-CUYcUBlF.js} +1 -1
- package/dist/{label-filled-DjSc-Fk4.js → label-filled-CBEnYqwR.js} +1 -1
- package/dist/{language-OE6ZfER_.js → language-CWzbNjpP.js} +1 -1
- package/dist/{latest-D0dlub5f.js → latest-DVsUYHxS.js} +1 -1
- package/dist/{lightbulb-DKJrsADi.js → lightbulb-XwSQilIh.js} +1 -1
- package/dist/{list-BviTrZEl.js → list-DbykwfRA.js} +1 -1
- package/dist/{list-search-Ck6anukf.js → list-search-Dj4jZY3K.js} +1 -1
- package/dist/{lock-Dv7XHTQp.js → lock-DnV05zah.js} +1 -1
- package/dist/{lock-filled-Bi_mH2A-.js → lock-filled-cW6OXXef.js} +1 -1
- package/dist/{mail-BBU73oBg.js → mail-BcneuuIl.js} +1 -1
- package/dist/{map-ChyXZkb4.js → map-1yvffq9F.js} +1 -1
- package/dist/{map-filled-DG4BwVQo.js → map-filled-CQkoxsrX.js} +1 -1
- package/dist/{menu-Dx9cgqxe.js → menu-FljcRCEK.js} +1 -1
- package/dist/{minus-DkCYxSkQ.js → minus-BJWsuEud.js} +1 -1
- package/dist/{more-horizontal-c6TlnC21.js → more-horizontal-lC-445EF.js} +1 -1
- package/dist/{more-vertical-BUz_UWPT.js → more-vertical-DR-MEHQd.js} +1 -1
- package/dist/{move-C3IOZIl7.js → move-Bw6x5pez.js} +1 -1
- package/dist/{move-up-down-DMvukk4h.js → move-up-down-B9uIynkw.js} +1 -1
- package/dist/{navigation-BiEFOSmS.js → navigation-B2HbKa58.js} +1 -1
- package/dist/{note-SrqI5m8n.js → note-BOjEWWmP.js} +1 -1
- package/dist/{offline-UyYgVOeH.js → offline-CRUg9Kez.js} +1 -1
- package/dist/{package-CT6Qsufx.js → package-BpXfEOmv.js} +1 -1
- package/dist/{package-DlxyzZ6H.js → package-DhpGK_pI.js} +1 -1
- package/dist/{paper-plane-rpVAty7i.js → paper-plane-aEepIh1I.js} +1 -1
- package/dist/{pause-C6E6QfcV.js → pause-Ml9ITr8H.js} +1 -1
- package/dist/{pdf-B4gHF03O.js → pdf-Da1tJ5Hc.js} +1 -1
- package/dist/{pen-im8XsK0s.js → pen-BCtaAdok.js} +1 -1
- package/dist/{pen-check-CNrvx2ns.js → pen-check-ZZuT1W9y.js} +1 -1
- package/dist/{people-DzOP6pil.js → people-7gHfC0ry.js} +1 -1
- package/dist/{phone-B0pmRKLI.js → phone-BMPeOmqG.js} +1 -1
- package/dist/{picture-1NpQXh5F.js → picture-6XSKueje.js} +1 -1
- package/dist/{picture-CKfJP6Jt.js → picture-IdhoGdAy.js} +1 -1
- package/dist/{pin-BOW6sde5.js → pin-B3mHPTM4.js} +1 -1
- package/dist/{planning-DdILTFP4.js → planning-s97U_n6Z.js} +1 -1
- package/dist/{play-X3Ob-qza.js → play-Bk3fFmpa.js} +1 -1
- package/dist/{play-filled-DYyCOR9Y.js → play-filled-BR-RJd_N.js} +1 -1
- package/dist/{plus-Bh6PRV0l.js → plus-Dw3nTb_J.js} +1 -1
- package/dist/{print-BLPvvCA8.js → print-DPDfMQTz.js} +1 -1
- package/dist/{refresh-CU1dwwoY.js → refresh-1gzhEzRl.js} +1 -1
- package/dist/{reset-Dgbd_O_e.js → reset-Cqepci78.js} +1 -1
- package/dist/{responsive-BQ5xjhN4.js → responsive-HisoeUq7.js} +1 -1
- package/dist/{rubix-thema-OSZXu-Md.js → rubix-thema-D5jmA6bw.js} +1 -1
- package/dist/{save-CIg7q65b.js → save-DoP23FsL.js} +1 -1
- package/dist/{saved-search-CeLi3iw6.js → saved-search-BY5aeZXd.js} +1 -1
- package/dist/{saved-search-filled-BTrN8F4r.js → saved-search-filled-D6t8P4EP.js} +1 -1
- package/dist/{search-CQIKBYqi.js → search-Bb5cl_0r.js} +1 -1
- package/dist/{settings-BMFNH3LB.js → settings-CCxd6N9K.js} +1 -1
- package/dist/{share-DMoEV0Gq.js → share-Cpx2YjXm.js} +1 -1
- package/dist/{share-alternative-P6c3Vi7L.js → share-alternative-ZW-jTsIU.js} +1 -1
- package/dist/{sidebar-D2uDpQM0.js → sidebar-DY7SHRNO.js} +1 -1
- package/dist/{sidebar-filled-LiiR992T.js → sidebar-filled-gmJ2_ZY2.js} +1 -1
- package/dist/{slack-CP6YIaQf.js → slack-OnnXQ7Rc.js} +1 -1
- package/dist/{slider-config-B_eNooTe.js → slider-config-CPC1To1k.js} +1 -1
- package/dist/{spellcheck-B0Il_eZe.js → spellcheck-D3iOEOk5.js} +1 -1
- package/dist/{spinner-CRHdpyRR.js → spinner-DghFg6Uk.js} +1 -1
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +12 -12
- package/dist/src/components/UiBadge/UiBadge.spec.ts +3 -3
- package/dist/src/components/UiBadge/UiBadge.stories.ts +1 -1
- package/dist/src/components/UiBadge/UiBadge.vue +3 -8
- package/dist/src/components/UiButton/UiButton.spec.ts +3 -1
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +2 -2
- package/dist/src/components/UiCard/UiCard.spec.ts +2 -2
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +4 -4
- package/dist/src/components/UiCheckbox/README.md +9 -9
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +7 -3
- package/dist/src/components/UiCheckbox/UiCheckbox.vue +6 -2
- package/dist/src/components/UiChip/UiChip.spec.ts +3 -3
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +2 -2
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +5 -5
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +12 -12
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +48 -28
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +20 -20
- package/dist/src/components/UiDialog/UiDialog.spec.ts +5 -5
- package/dist/src/components/UiDialog/UiDialog.stories.ts +1 -0
- package/dist/src/components/UiDialog/UiDialog.vue +49 -1
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +6 -6
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +6 -6
- package/dist/src/components/UiIcon/UiIcon.spec.ts +4 -4
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +6 -6
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +6 -6
- package/dist/src/components/UiInput/README.md +28 -17
- package/dist/src/components/UiInput/UiInput.spec.ts +20 -0
- package/dist/src/components/UiInput/UiInput.stories.ts +19 -1
- package/dist/src/components/UiInput/UiInput.vue +7 -4
- package/dist/src/components/UiList/UiList.spec.ts +2 -2
- package/dist/src/components/UiListItem/README.md +0 -1
- package/dist/src/components/UiListItem/UiListItem.spec.ts +8 -8
- package/dist/src/components/UiListItem/UiListItem.vue +2 -5
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.vue +1 -1
- package/dist/src/components/UiMenu/README.md +0 -2
- package/dist/src/components/UiMenu/UiMenu.stories.ts +81 -144
- package/dist/src/components/UiMenu/UiMenu.vue +3 -8
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +2 -2
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +2 -2
- package/dist/src/components/UiPopover/UiPopover.stories.ts +1 -1
- package/dist/src/components/UiPopover/UiPopover.vue +1 -1
- package/dist/src/components/UiRadioButton/UiRadioButton.stories.ts +3 -3
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +4 -4
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +6 -6
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +4 -4
- package/dist/src/components/UiSection/UiSection.spec.ts +5 -5
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +3 -3
- package/dist/src/components/UiSelect/{UIiSelect.spec.ts → UiSelect.spec.ts} +16 -8
- package/dist/src/components/UiSelect/UiSelect.stories.ts +1 -1
- package/dist/src/components/UiSelect/UiSelect.vue +14 -2
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +2 -2
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +8 -8
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +4 -4
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +1 -1
- package/dist/src/components/UiSpinner/UiSpinner.vue +31 -32
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +11 -11
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +8 -8
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +9 -9
- package/dist/{standard-view-CmlAxXrM.js → standard-view-DfvAb3iJ.js} +1 -1
- package/dist/{star-x38wQI5a.js → star-BdzEpiC-.js} +1 -1
- package/dist/{star-filled-V0iRfD5M.js → star-filled-ZgHiwVZ0.js} +1 -1
- package/dist/{stop-BKrExcb1.js → stop-ugLlg2YL.js} +1 -1
- package/dist/{story-B2rvDIJr.js → story-D7qk5t65.js} +1 -1
- package/dist/{story-6skLDsue.js → story-k_tWc66v.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{sync-DXiTJomf.js → sync-BEDhyvOB.js} +1 -1
- package/dist/{tasks-bFDeHCo2.js → tasks-CBoErOsR.js} +1 -1
- package/dist/{text-bDVoEwpJ.js → text-BGlrNBVf.js} +1 -1
- package/dist/{text-ClHl0Uhs.js → text-CK3z1Tdh.js} +1 -1
- package/dist/{thumbs-down-BAjh-Ctz.js → thumbs-down-C41UiCJp.js} +1 -1
- package/dist/{thumbs-up-double-CIPSNbd7.js → thumbs-up-double-Ciw7ATVE.js} +1 -1
- package/dist/{thumbs-up-DCwzHniR.js → thumbs-up-k3-ZlCZB.js} +1 -1
- package/dist/{topic-Cv-whi27.js → topic-CRJfSH7S.js} +1 -1
- package/dist/{union-BYS3V2vp.js → union-hTKJU_qy.js} +1 -1
- package/dist/{upload-Dvuj2qmk.js → upload-BBn5ur6w.js} +1 -1
- package/dist/{user-need-divert-me-D33Y5bma.js → user-need-divert-me-ChmAj7y-.js} +1 -1
- package/dist/{user-need-educate-me-BC53AIXw.js → user-need-educate-me-DE4GpKkh.js} +1 -1
- package/dist/{user-need-give-me-perspective-D17ApF3n.js → user-need-give-me-perspective-cgRfVC26.js} +1 -1
- package/dist/{user-need-help-me-BWdR9Tv7.js → user-need-help-me-CeEG1a-I.js} +1 -1
- package/dist/{user-need-touch-me-q1HCbpQ7.js → user-need-touch-me-DiUacvEH.js} +1 -1
- package/dist/{user-need-update-me-BItjScS5.js → user-need-update-me-Tv7ZqZG9.js} +1 -1
- package/dist/{video-BFPO-328.js → video-BV3VKnO_.js} +1 -1
- package/dist/{video-BRSUY0SQ.js → video-C1tVlag5.js} +1 -1
- package/dist/{video-overlay-DnN10S5T.js → video-overlay-D2YqsNV3.js} +1 -1
- package/dist/{view-C4Sx7i27.js → view-5sSg9uRD.js} +1 -1
- package/dist/{view-off-BtkqBEfJ.js → view-off-CxEDQRkG.js} +1 -1
- package/dist/{volume-up-_3rO2YWj.js → volume-up-DmBpcesR.js} +1 -1
- package/package.json +33 -28
- package/src/components/UiBadge/UiBadge.vue +3 -8
- package/src/components/UiCheckbox/README.md +9 -9
- package/src/components/UiCheckbox/UiCheckbox.vue +6 -2
- package/src/components/UiDatePicker/UiDatePicker.vue +20 -20
- package/src/components/UiDialog/UiDialog.vue +49 -1
- package/src/components/UiInput/README.md +28 -17
- package/src/components/UiInput/UiInput.vue +7 -4
- package/src/components/UiListItem/README.md +0 -1
- package/src/components/UiListItem/UiListItem.vue +2 -5
- package/src/components/UiMediaTypeIcon/UiMediaTypeIcon.vue +1 -1
- package/src/components/UiMenu/README.md +0 -2
- package/src/components/UiMenu/UiMenu.vue +3 -8
- package/src/components/UiPopover/UiPopover.vue +1 -1
- package/src/components/UiSelect/UiSelect.vue +14 -2
- package/src/components/UiSpinner/UiSpinner.vue +31 -32
- /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpa-id-components/dpa-shared-components",
|
|
3
|
-
"version": "22.0.0-next.
|
|
3
|
+
"version": "22.0.0-next.6",
|
|
4
4
|
"description": "Shared Vue components library for dpa projects",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -40,52 +40,57 @@
|
|
|
40
40
|
"devEngines": {
|
|
41
41
|
"runtime": {
|
|
42
42
|
"name": "node",
|
|
43
|
-
"version": "
|
|
43
|
+
"version": "24.16.0"
|
|
44
|
+
},
|
|
45
|
+
"packageManager": {
|
|
46
|
+
"name": "pnpm",
|
|
47
|
+
"version": "11.4.0",
|
|
48
|
+
"onFail": "download"
|
|
44
49
|
}
|
|
45
50
|
},
|
|
46
51
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "7.29.
|
|
48
|
-
"@babel/preset-env": "7.29.
|
|
52
|
+
"@babel/core": "7.29.7",
|
|
53
|
+
"@babel/preset-env": "7.29.7",
|
|
49
54
|
"@eslint/js": "10.0.1",
|
|
50
|
-
"@storybook/addon-docs": "10.
|
|
51
|
-
"@storybook/addon-links": "10.
|
|
52
|
-
"@storybook/addon-themes": "10.
|
|
53
|
-
"@storybook/builder-vite": "10.
|
|
54
|
-
"@storybook/vue3-vite": "10.
|
|
55
|
+
"@storybook/addon-docs": "10.4.1",
|
|
56
|
+
"@storybook/addon-links": "10.4.1",
|
|
57
|
+
"@storybook/addon-themes": "10.4.1",
|
|
58
|
+
"@storybook/builder-vite": "10.4.1",
|
|
59
|
+
"@storybook/vue3-vite": "10.4.1",
|
|
55
60
|
"@tailwindcss/typography": "0.5.19",
|
|
56
|
-
"@tailwindcss/vite": "4.
|
|
61
|
+
"@tailwindcss/vite": "4.3.0",
|
|
57
62
|
"@tsconfig/node24": "24.0.4",
|
|
58
|
-
"@types/jsdom": "28.0.
|
|
59
|
-
"@types/node": "25.
|
|
60
|
-
"@vitejs/plugin-vue": "6.0.
|
|
63
|
+
"@types/jsdom": "28.0.3",
|
|
64
|
+
"@types/node": "25.9.1",
|
|
65
|
+
"@vitejs/plugin-vue": "6.0.7",
|
|
61
66
|
"@vue/test-utils": "2.4.10",
|
|
62
67
|
"@vue/tsconfig": "0.9.1",
|
|
63
68
|
"ajv": "8.20.0",
|
|
64
|
-
"commit-and-tag-version": "12.7.
|
|
65
|
-
"eslint": "10.
|
|
66
|
-
"eslint-plugin-storybook": "10.
|
|
69
|
+
"commit-and-tag-version": "12.7.3",
|
|
70
|
+
"eslint": "10.4.0",
|
|
71
|
+
"eslint-plugin-storybook": "10.4.1",
|
|
67
72
|
"husky": "9.1.7",
|
|
68
73
|
"jsdom": "29.1.1",
|
|
69
|
-
"npm-run-all2": "
|
|
74
|
+
"npm-run-all2": "9.0.1",
|
|
70
75
|
"prettier": "3.8.3",
|
|
71
76
|
"rimraf": "6.1.3",
|
|
72
77
|
"rollup-plugin-copy": "3.5.0",
|
|
73
|
-
"storybook": "10.
|
|
74
|
-
"tailwindcss": "4.
|
|
78
|
+
"storybook": "10.4.1",
|
|
79
|
+
"tailwindcss": "4.3.0",
|
|
75
80
|
"typescript": "6.0.3",
|
|
76
|
-
"unplugin-dts": "1.0.
|
|
77
|
-
"vite": "8.0.
|
|
78
|
-
"vitest": "4.1.
|
|
79
|
-
"vue": "3.5.
|
|
80
|
-
"vue-router": "5.0
|
|
81
|
-
"vue-tsc": "3.2
|
|
81
|
+
"unplugin-dts": "1.0.1",
|
|
82
|
+
"vite": "8.0.14",
|
|
83
|
+
"vitest": "4.1.7",
|
|
84
|
+
"vue": "3.5.35",
|
|
85
|
+
"vue-router": "5.1.0",
|
|
86
|
+
"vue-tsc": "3.3.2"
|
|
82
87
|
},
|
|
83
88
|
"dependencies": {
|
|
84
89
|
"@floating-ui/vue": "^1.1.11",
|
|
85
90
|
"@typescript-eslint/parser": "^8.58.2",
|
|
86
91
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
87
92
|
"@vue/eslint-config-typescript": "^14.7.0",
|
|
88
|
-
"@vuepic/vue-datepicker": "^
|
|
93
|
+
"@vuepic/vue-datepicker": "^13.0.0",
|
|
89
94
|
"@vueuse/core": "^14.2.1",
|
|
90
95
|
"clsx": "^2.1.1",
|
|
91
96
|
"color": "^5.0.3",
|
|
@@ -99,9 +104,9 @@
|
|
|
99
104
|
"vue-eslint-parser": "^10.4.0"
|
|
100
105
|
},
|
|
101
106
|
"peerDependencies": {
|
|
102
|
-
"@eslint/js": "^
|
|
107
|
+
"@eslint/js": "^10.0.1",
|
|
103
108
|
"@tailwindcss/typography": "^0.5.16",
|
|
104
|
-
"eslint": "^
|
|
109
|
+
"eslint": "^10.4.0",
|
|
105
110
|
"prettier": "^3.8.1",
|
|
106
111
|
"tailwindcss": "^4.1.11",
|
|
107
112
|
"vue": "^3.5.0",
|
|
@@ -16,31 +16,26 @@ import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
|
|
|
16
16
|
const { appearance = "accent-red", iconName = undefined } = defineProps<{
|
|
17
17
|
appearance?:
|
|
18
18
|
| "accent-red"
|
|
19
|
-
| "accent-red-dark"
|
|
20
19
|
| "accent-orange"
|
|
21
20
|
| "accent-purple"
|
|
22
21
|
| "accent-green"
|
|
23
22
|
| "primary"
|
|
24
23
|
| "neutral-primary"
|
|
25
|
-
| "neutral-emphasis"
|
|
26
24
|
| "neutral-medium"
|
|
27
25
|
| "neutral-faint";
|
|
28
26
|
iconName?: UiIconName;
|
|
29
27
|
}>();
|
|
30
28
|
|
|
31
29
|
const colorClass = computed(() => {
|
|
32
|
-
|
|
30
|
+
return {
|
|
33
31
|
"accent-red": "bg-accent-red text-neutral",
|
|
34
|
-
"accent-red-dark": "bg-accent-red-dark text-neutral",
|
|
35
32
|
"accent-orange": "bg-accent-orange text-neutral",
|
|
36
33
|
"accent-purple": "bg-accent-purple text-neutral",
|
|
37
34
|
"accent-green": "bg-accent-green text-neutral",
|
|
38
35
|
primary: "bg-primary text-neutral",
|
|
39
36
|
"neutral-primary": "bg-neutral-primary text-neutral",
|
|
40
|
-
"neutral-emphasis": "bg-neutral-emphasis text-neutral",
|
|
41
37
|
"neutral-medium": "bg-neutral-medium text-neutral",
|
|
42
|
-
"neutral-faint": "bg-neutral-faint text-neutral-
|
|
43
|
-
};
|
|
44
|
-
return colorClasses[appearance];
|
|
38
|
+
"neutral-faint": "bg-neutral-faint text-neutral-subtle",
|
|
39
|
+
}[appearance];
|
|
45
40
|
});
|
|
46
41
|
</script>
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
## Usage
|
|
4
4
|
|
|
5
5
|
```vue
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</UiCheckbox>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup lang="ts">
|
|
13
|
-
import { UiCheckbox } from "@dpa-id-components/dpa-shared-components";
|
|
14
|
-
</script>
|
|
6
|
+
<UiCheckbox required name="terms" appearance="secondary">
|
|
7
|
+
Accept terms and conditions
|
|
8
|
+
</UiCheckbox>
|
|
15
9
|
```
|
|
16
10
|
|
|
17
11
|
## API
|
|
18
12
|
|
|
13
|
+
### Models
|
|
14
|
+
|
|
15
|
+
| Name | Type | Default | Description |
|
|
16
|
+
|-----------|--------------------|-------------|----------------------|
|
|
17
|
+
| _default_ | `string[] \| string \| boolean` | `undefined` | Sets the input value |
|
|
18
|
+
|
|
19
19
|
### Props
|
|
20
20
|
|
|
21
21
|
**Note**: This component binds all non-prop attributes (apart from `class`) on its principal element (`input[type="checkbox"]`) instead of the root element. This allows you to add arbitrary HTML attributes (and event listeners) on the principal element without them being explicitly supported by the component.
|
|
@@ -41,7 +41,11 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
|
-
<script
|
|
44
|
+
<script
|
|
45
|
+
setup
|
|
46
|
+
lang="ts"
|
|
47
|
+
generic="ModelValue extends string[] | string | boolean"
|
|
48
|
+
>
|
|
45
49
|
import { computed, useId } from "vue";
|
|
46
50
|
|
|
47
51
|
import { cn } from "../../utils/cn.ts";
|
|
@@ -75,7 +79,7 @@ const {
|
|
|
75
79
|
size?: "sm" | "md";
|
|
76
80
|
}>();
|
|
77
81
|
|
|
78
|
-
const model = defineModel<
|
|
82
|
+
const model = defineModel<ModelValue>();
|
|
79
83
|
|
|
80
84
|
const defaultId = useId();
|
|
81
85
|
const uniqueId = computed(() => id ?? `id-${defaultId}`);
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
<UiIcon class="text-neutral-subtle" name="chevron-right" size="sm" />
|
|
131
131
|
</template>
|
|
132
132
|
<template #arrow>
|
|
133
|
-
<div ref="menuArrow" class="
|
|
133
|
+
<div ref="menuArrow" class="dp--arrow-top"></div>
|
|
134
134
|
</template>
|
|
135
135
|
</VueDatePicker>
|
|
136
136
|
</div>
|
|
@@ -306,17 +306,17 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
306
306
|
<style>
|
|
307
307
|
@reference "../../tailwindPreset.css";
|
|
308
308
|
|
|
309
|
-
.
|
|
309
|
+
.dp--arrow-top {
|
|
310
310
|
left: 10%;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
.
|
|
313
|
+
.dp--menu {
|
|
314
314
|
border-radius: var(--radius-2xl);
|
|
315
315
|
box-shadow: var(--shadow-lg);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.dp--year-select,
|
|
319
|
-
.
|
|
319
|
+
.dp--month-year-select {
|
|
320
320
|
border-radius: var(--radius-2xl);
|
|
321
321
|
}
|
|
322
322
|
|
|
@@ -325,45 +325,45 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
325
325
|
padding: 0.25rem;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
.
|
|
328
|
+
.dp--flex-display {
|
|
329
329
|
gap: 2rem;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
.
|
|
332
|
+
.dp--sidebar-left {
|
|
333
333
|
padding: 0;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.
|
|
336
|
+
.dp--cell-inner {
|
|
337
337
|
border-radius: calc(infinity * 1px);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
.
|
|
340
|
+
.dp--cell-inner:hover {
|
|
341
341
|
border-radius: calc(infinity * 1px);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
.
|
|
344
|
+
.dp--today {
|
|
345
345
|
border: 1px solid var(--color-neutral-primary);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.
|
|
349
|
-
.
|
|
350
|
-
.
|
|
348
|
+
.dp--cell-auto-range,
|
|
349
|
+
.dp--cell-auto-range-start,
|
|
350
|
+
.dp--cell-auto-range-end {
|
|
351
351
|
border: none;
|
|
352
352
|
color: var(--color-neutral-primary);
|
|
353
353
|
background-color: var(--color-neutral-faint);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.
|
|
356
|
+
.dp--month-year-select {
|
|
357
357
|
font-size: var(--text-base);
|
|
358
358
|
font-weight: var(--font-weight-semibold);
|
|
359
359
|
color: var(--color-neutral-primary);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
.
|
|
362
|
+
.dp--calendar-header-separator {
|
|
363
363
|
display: none;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
.
|
|
366
|
+
.dp--calendar-header {
|
|
367
367
|
gap: 0.25rem;
|
|
368
368
|
align-items: center;
|
|
369
369
|
font-size: var(--text-xs);
|
|
@@ -371,26 +371,26 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
371
371
|
font-weight: var(--font-weight-semibold);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
.
|
|
374
|
+
.dp--calendar-header-item {
|
|
375
375
|
display: flex;
|
|
376
376
|
align-items: center;
|
|
377
377
|
justify-content: center;
|
|
378
378
|
color: var(--color-neutral-subtle);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
.
|
|
381
|
+
.dp--calendar-row {
|
|
382
382
|
gap: 0.25rem;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
.
|
|
386
|
-
.
|
|
385
|
+
.dp--action-row,
|
|
386
|
+
.dp--action-extra {
|
|
387
387
|
justify-content: end;
|
|
388
388
|
gap: 1rem;
|
|
389
389
|
border-top: 1px solid var(--color-neutral-faint);
|
|
390
390
|
padding: 0.5rem 1rem;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
.
|
|
393
|
+
.dp--theme-light {
|
|
394
394
|
--dp-font-family: var(--font-sans);
|
|
395
395
|
--dp-month-year-row-height: 2rem; /*Height of the month-year select row*/
|
|
396
396
|
--dp-button-icon-height: 1.5rem; /*Icon sizing in buttons*/
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
cn(
|
|
6
6
|
'fixed inset-0 m-auto w-120 rounded-2xl bg-surface-level-1 text-current shadow-lg backdrop:bg-shadow-strong',
|
|
7
7
|
$attrs.class,
|
|
8
|
+
{ animate },
|
|
8
9
|
)
|
|
9
10
|
"
|
|
10
11
|
@click.self="dialog?.requestClose()"
|
|
@@ -64,9 +65,14 @@ defineSlots<{
|
|
|
64
65
|
}) => any;
|
|
65
66
|
}>();
|
|
66
67
|
|
|
67
|
-
const {
|
|
68
|
+
const {
|
|
69
|
+
hasCloseButton = true,
|
|
70
|
+
closeLabel = undefined,
|
|
71
|
+
animate = false,
|
|
72
|
+
} = defineProps<{
|
|
68
73
|
hasCloseButton?: boolean;
|
|
69
74
|
closeLabel?: string;
|
|
75
|
+
animate?: boolean;
|
|
70
76
|
}>();
|
|
71
77
|
|
|
72
78
|
function close() {
|
|
@@ -87,3 +93,45 @@ defineExpose({
|
|
|
87
93
|
requestClose,
|
|
88
94
|
});
|
|
89
95
|
</script>
|
|
96
|
+
|
|
97
|
+
<style scoped>
|
|
98
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
99
|
+
/* Backdrop */
|
|
100
|
+
.animate::backdrop {
|
|
101
|
+
background: rgb(0 0 0 / 0%);
|
|
102
|
+
transition:
|
|
103
|
+
background 0.3s ease,
|
|
104
|
+
display 0.2s ease allow-discrete,
|
|
105
|
+
overlay 0.2s ease allow-discrete;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.animate[open]::backdrop {
|
|
109
|
+
background: rgb(0 0 0 / 50%);
|
|
110
|
+
|
|
111
|
+
@starting-style {
|
|
112
|
+
background: rgb(0 0 0 / 0%);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Dialog box — fade + scale */
|
|
117
|
+
.animate {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
transform: scale(0.95);
|
|
120
|
+
transition:
|
|
121
|
+
opacity 0.2s ease,
|
|
122
|
+
transform 0.2s ease,
|
|
123
|
+
display 0.2s ease allow-discrete,
|
|
124
|
+
overlay 0.2s ease allow-discrete;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.animate[open] {
|
|
128
|
+
opacity: 1;
|
|
129
|
+
transform: scale(1);
|
|
130
|
+
|
|
131
|
+
@starting-style {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
transform: scale(0.95);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
</style>
|
|
@@ -3,29 +3,40 @@
|
|
|
3
3
|
## Usage
|
|
4
4
|
|
|
5
5
|
```vue
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
<UiInput
|
|
7
|
+
id="postal-code"
|
|
8
|
+
name="postal_code"
|
|
9
|
+
value="04277"
|
|
10
|
+
required
|
|
11
|
+
placeholder="12345"
|
|
12
|
+
>
|
|
13
|
+
Postal code
|
|
14
|
+
</UiInput>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Using `v-model`**:
|
|
18
|
+
|
|
19
|
+
```vue
|
|
20
|
+
<UiInput v-model="postalCode">
|
|
21
|
+
Postal code
|
|
22
|
+
</UiInput>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**With `number` value**:
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
<UiInput v-model="count" type="number">
|
|
29
|
+
Count
|
|
30
|
+
</UiInput>
|
|
20
31
|
```
|
|
21
32
|
|
|
22
33
|
## API
|
|
23
34
|
|
|
24
35
|
### Models
|
|
25
36
|
|
|
26
|
-
| Name | Type
|
|
27
|
-
|
|
28
|
-
| _default_ | `string` | `undefined` | Sets the input value |
|
|
37
|
+
| Name | Type | Default | Description |
|
|
38
|
+
|-----------|--------------------|-------------|----------------------|
|
|
39
|
+
| _default_ | `string \| number` | `undefined` | Sets the input value |
|
|
29
40
|
|
|
30
41
|
### Props
|
|
31
42
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
data-testid="input-value"
|
|
35
35
|
v-bind="{ ...$attrs, class: null }"
|
|
36
36
|
:data-is-label-raised="
|
|
37
|
-
$attrs.placeholder || isFocused ||
|
|
37
|
+
$attrs.placeholder || isFocused || hasInput ? '' : undefined
|
|
38
38
|
"
|
|
39
39
|
@focus="isFocused = true"
|
|
40
40
|
@blur="isFocused = false"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
data-testid="input-value"
|
|
56
56
|
v-bind="{ ...$attrs, class: null }"
|
|
57
57
|
:data-is-label-raised="
|
|
58
|
-
$attrs.placeholder || isFocused ||
|
|
58
|
+
$attrs.placeholder || isFocused || hasInput ? '' : undefined
|
|
59
59
|
"
|
|
60
60
|
@focus="isFocused = true"
|
|
61
61
|
@blur="isFocused = false"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</div>
|
|
83
83
|
</template>
|
|
84
84
|
|
|
85
|
-
<script setup lang="ts">
|
|
85
|
+
<script setup lang="ts" generic="ModelValue extends string | number">
|
|
86
86
|
import { computed, ref, useId } from "vue";
|
|
87
87
|
|
|
88
88
|
import { cn } from "../../utils/cn.ts";
|
|
@@ -130,8 +130,11 @@ const {
|
|
|
130
130
|
inputStatus?: "info" | "warning" | "error";
|
|
131
131
|
}>();
|
|
132
132
|
|
|
133
|
-
const model = defineModel<
|
|
133
|
+
const model = defineModel<ModelValue>();
|
|
134
134
|
|
|
135
|
+
const hasInput = computed(
|
|
136
|
+
() => model.value !== undefined && model.value !== "",
|
|
137
|
+
);
|
|
135
138
|
const isFocused = ref(false);
|
|
136
139
|
|
|
137
140
|
const defaultId = useId();
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
| `imageSrc` | `String` | `""` | Image to be displayed at the beginning of the list item. |
|
|
32
32
|
| `imageShape` | `"rounded" | "square"` | `"square"` | Shape pf the image to be displayed. |
|
|
33
33
|
| `checkboxColor` | `"blue" | "gray"` | `"blue"` | Checkbox color style. |
|
|
34
|
-
| `checkboxSize` | `"small" | "medium"` | `"medium"` | Checkbox size style. |
|
|
35
34
|
|
|
36
35
|
### Events
|
|
37
36
|
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
<li
|
|
3
3
|
:class="
|
|
4
4
|
cn(
|
|
5
|
-
'flex cursor-pointer list-none items-center gap-2 px-4 py-
|
|
5
|
+
'flex cursor-pointer list-none items-center gap-2 px-4 py-1.5 text-sm/normal text-neutral-emphasis select-none hover:text-primary focus:outline-hidden focus-visible:focus-outline focus-visible:-outline-offset-2',
|
|
6
6
|
{
|
|
7
7
|
'cursor-default text-neutral-medium': disabled,
|
|
8
8
|
'is-selected': selected,
|
|
9
|
-
'py-3': checkboxSize === 'md',
|
|
10
9
|
},
|
|
11
10
|
overrideClasses,
|
|
12
11
|
$attrs.class,
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
:appearance="checkboxAppearance"
|
|
21
20
|
:model-value="isChecked"
|
|
22
21
|
:disabled="disabled"
|
|
23
|
-
|
|
22
|
+
size="sm"
|
|
24
23
|
@click.stop="$emit('list-item-click', value)"
|
|
25
24
|
>
|
|
26
25
|
<span class="sr-only"><slot /></span>
|
|
@@ -65,7 +64,6 @@ const {
|
|
|
65
64
|
imageSrc = undefined,
|
|
66
65
|
imageShape = "rounded",
|
|
67
66
|
checkboxAppearance = "primary",
|
|
68
|
-
checkboxSize = "md",
|
|
69
67
|
isChecked = false,
|
|
70
68
|
disabled = false,
|
|
71
69
|
} = defineProps<{
|
|
@@ -79,7 +77,6 @@ const {
|
|
|
79
77
|
imageShape?: "rounded" | "square";
|
|
80
78
|
iconSize?: "sm" | "md" | "lg";
|
|
81
79
|
checkboxAppearance?: "primary" | "secondary";
|
|
82
|
-
checkboxSize?: "sm" | "md";
|
|
83
80
|
isChecked?: boolean;
|
|
84
81
|
disabled?: boolean;
|
|
85
82
|
}>();
|
|
@@ -89,7 +89,6 @@ const options = ref([
|
|
|
89
89
|
| `buttonAppearance` | `"primary"`, `"secondary"`, `"secondary-alt"`, or `"ghost"` | `"secondary-alt"` | |
|
|
90
90
|
| `listVariant` | `"checkbox" | "selectable" | "blank"` | `"blank"` | Menu style. |
|
|
91
91
|
| `checkboxColor` | `"blue" | "gray"` | `"blue"` | Checkbox color style. |
|
|
92
|
-
| `checkboxSize` | `"small" | "medium"` | `"medium"` | Checkbox size style. |
|
|
93
92
|
| `imageShape` | `"rounded" | "square"` | `"square"` | shape of image. |
|
|
94
93
|
| `hasResetOption` | `boolean` | `false` | Toggles option for a reset button |
|
|
95
94
|
| `resetLabel` | `string` | `""` | Sets text of reset button. |
|
|
@@ -142,7 +141,6 @@ Wraps the UiListItem and uses the same settings as in the original UiMenu, helps
|
|
|
142
141
|
| `listVariant?` | `"checkbox" | "selectable" | "blank"` | `blank` | Provide the list variant, same as in UiMenu.vue |
|
|
143
142
|
| `iconSize?` | `"small" | "medium" | "large"` | `small` | Provide the icon size, same as in UiMenu.vue |
|
|
144
143
|
| `imageShape?` | `"rounded" | "square"` | `square` | Provide the imageShape, same as in UiMenu.vue |
|
|
145
|
-
| `checkboxSize?` | `"small" | "medium"` | `medium` | Provide the checkboxSize, same as in UiMenu.vue |
|
|
146
144
|
| `checkboxColor?` | `"blue" | "gray"` | `blue` | Provide the checkboxColor, same as in UiMenu.vue |
|
|
147
145
|
|
|
148
146
|
#### Slots
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<div
|
|
29
|
-
class="block w-max max-w-full divide-y overflow-hidden rounded-
|
|
29
|
+
class="block w-max max-w-full divide-y overflow-hidden rounded-lg border border-neutral-faint bg-neutral text-base/6 shadow-md focus:outline-hidden sm:text-sm/5"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
32
|
v-if="hasSearch"
|
|
33
|
-
class="flex items-center gap-2 rounded-t-
|
|
33
|
+
class="flex items-center gap-2 rounded-t-lg px-4 py-1.5 text-neutral-primary [&:has(>input:focus-visible)]:focus-outline [&:has(>input:focus-visible)]:-outline-offset-2"
|
|
34
34
|
>
|
|
35
35
|
<UiIcon
|
|
36
36
|
class="shrink-0 text-neutral-emphasis"
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
<slot
|
|
52
52
|
v-bind="{
|
|
53
53
|
checkboxAppearance,
|
|
54
|
-
checkboxSize,
|
|
55
54
|
iconSize,
|
|
56
55
|
imageShape,
|
|
57
56
|
listVariant,
|
|
@@ -87,7 +86,6 @@
|
|
|
87
86
|
:image-shape="imageShape"
|
|
88
87
|
:image-src="option.imageSrc"
|
|
89
88
|
:icon-name="option.iconName"
|
|
90
|
-
:checkbox-size="checkboxSize"
|
|
91
89
|
:checkbox-appearance="checkboxAppearance"
|
|
92
90
|
class="hover:bg-neutral-whisper focus:bg-neutral-faint"
|
|
93
91
|
:class="{
|
|
@@ -102,7 +100,7 @@
|
|
|
102
100
|
</ul>
|
|
103
101
|
</slot>
|
|
104
102
|
|
|
105
|
-
<div v-if="hasResetOption" class="px-4 py-
|
|
103
|
+
<div v-if="hasResetOption" class="px-4 py-1.5 text-neutral-primary">
|
|
106
104
|
<UiButton
|
|
107
105
|
appearance="secondary"
|
|
108
106
|
:disabled="disabledReset"
|
|
@@ -154,7 +152,6 @@ export type UiMenuGroupedOption<Value = unknown> = {
|
|
|
154
152
|
defineSlots<{
|
|
155
153
|
default?: (props: {
|
|
156
154
|
checkboxAppearance: typeof checkboxAppearance;
|
|
157
|
-
checkboxSize: typeof checkboxSize;
|
|
158
155
|
iconSize: typeof iconSize;
|
|
159
156
|
imageShape: typeof imageShape;
|
|
160
157
|
listVariant: typeof listVariant;
|
|
@@ -192,7 +189,6 @@ const {
|
|
|
192
189
|
// Menu
|
|
193
190
|
iconSize = "sm",
|
|
194
191
|
imageShape = "square",
|
|
195
|
-
checkboxSize = "md",
|
|
196
192
|
checkboxAppearance = "primary",
|
|
197
193
|
listVariant = "blank",
|
|
198
194
|
} = defineProps<{
|
|
@@ -222,7 +218,6 @@ const {
|
|
|
222
218
|
// Menu
|
|
223
219
|
iconSize?: "sm" | "md" | "lg";
|
|
224
220
|
imageShape?: "rounded" | "square";
|
|
225
|
-
checkboxSize?: "sm" | "md";
|
|
226
221
|
checkboxAppearance?: "primary" | "secondary";
|
|
227
222
|
listVariant?: "checkbox" | "selectable" | "blank";
|
|
228
223
|
}>();
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
v-show="isOpen"
|
|
19
19
|
ref="floating"
|
|
20
20
|
:style="floatingStyles"
|
|
21
|
-
class="z-10 w-fit
|
|
21
|
+
class="z-10 w-fit [text-align:initial] [--transition-close-duration:100ms] [--transition-duration:200ms]"
|
|
22
22
|
:data-side="placement"
|
|
23
23
|
>
|
|
24
24
|
<slot v-bind="{ close }" />
|
|
@@ -89,7 +89,7 @@ select,
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
::picker(select) {
|
|
92
|
-
@apply
|
|
92
|
+
@apply mt-1 overscroll-none rounded-lg border border-neutral-faint shadow-md;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
select::picker-icon {
|
|
@@ -97,12 +97,24 @@ select::picker-icon {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
select > :deep(option) {
|
|
100
|
-
@apply flex justify-between
|
|
100
|
+
@apply flex items-center justify-between px-4 py-1.5 focus-visible:focus-outline;
|
|
101
|
+
|
|
102
|
+
&:first-child {
|
|
103
|
+
@apply rounded-t-lg;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:last-child {
|
|
107
|
+
@apply rounded-b-lg;
|
|
108
|
+
}
|
|
101
109
|
|
|
102
110
|
&:enabled:hover {
|
|
103
111
|
@apply bg-neutral-pale;
|
|
104
112
|
}
|
|
105
113
|
|
|
114
|
+
&:focus-visible {
|
|
115
|
+
@apply -outline-offset-2;
|
|
116
|
+
}
|
|
117
|
+
|
|
106
118
|
&::checkmark {
|
|
107
119
|
@apply order-1 text-lg;
|
|
108
120
|
}
|