@dpa-id-components/dpa-shared-components 18.0.3 → 18.1.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 +19 -1
- package/dist/{activities-D8-N1-9U.js → activities-BhRhDOlb.js} +1 -1
- package/dist/{ai-RQ8kp8x-.js → ai-C7dKOX-f.js} +1 -1
- package/dist/{alert-vNfEACwx.js → alert-D2rNwxow.js} +1 -1
- package/dist/{alert-fill-rnf1WDZZ.js → alert-fill-BXmkV8eq.js} +1 -1
- package/dist/{alert-octagon-Bf9rhJ-t.js → alert-octagon-BPFgjTgR.js} +1 -1
- package/dist/{apps-BF11JWhM.js → apps-Cm2_R-aL.js} +1 -1
- package/dist/{archive-MqHKfmIJ.js → archive-D5JUYYJU.js} +1 -1
- package/dist/{arrow-down-DPT8wNZ7.js → arrow-down-D4LfUvya.js} +1 -1
- package/dist/{arrow-left-CVXdU5MB.js → arrow-left-Dp04ad2H.js} +1 -1
- package/dist/{arrow-nav-left-CPfHZMpd.js → arrow-nav-left-NF0lMqOL.js} +1 -1
- package/dist/{arrow-nav-right-D35fcvsI.js → arrow-nav-right-nCu8i5He.js} +1 -1
- package/dist/{arrow-right-DJBY3wj4.js → arrow-right-D66X1i1j.js} +1 -1
- package/dist/{arrow-up-BLSkG6x9.js → arrow-up-DYYm-SpK.js} +1 -1
- package/dist/{arrowhead-left-euGMBv4F.js → arrowhead-left-C_in-SkM.js} +1 -1
- package/dist/{arrowhead-right-lwOYqbB4.js → arrowhead-right-BVW4OzlW.js} +1 -1
- package/dist/{arrowhead-top-6FTexgFT.js → arrowhead-top-D4JznBoD.js} +1 -1
- package/dist/assets/icons/picture-gallery.vue.d.ts +2 -0
- package/dist/{atmo-DAU2uzDv.js → atmo-CoaQJ5Z1.js} +1 -1
- package/dist/{audio-DwP94SEK.js → audio-DHDsZE00.js} +1 -1
- package/dist/{audio-circled-7R-7sncX.js → audio-circled-BYW-lYJU.js} +1 -1
- package/dist/{audio-filled-D3dWp_uy.js → audio-filled-oiehd7FS.js} +1 -1
- package/dist/{bag-CMw3XdoZ.js → bag-CKRBwfSw.js} +1 -1
- package/dist/{bell-Cdp869n7.js → bell-XMnYjRes.js} +1 -1
- package/dist/{bell-fill-B4DML6Tk.js → bell-fill-Bla_Yjt0.js} +1 -1
- package/dist/{book-CveJMqSf.js → book-MyDStgWT.js} +1 -1
- package/dist/{bookmark-DWT0y5zx.js → bookmark-9hEvl45K.js} +1 -1
- package/dist/{bookmark-fill-zzz6mr5W.js → bookmark-fill-DjVGdf8c.js} +1 -1
- package/dist/{bookmark-outlined-DnublF2q.js → bookmark-outlined-xu1B0AKI.js} +1 -1
- package/dist/{box-Cz_MWCS1.js → box-ydpm1tk4.js} +1 -1
- package/dist/{bulb-DFGsawSw.js → bulb-BSo_piVr.js} +1 -1
- package/dist/{call-DUqC_rJG.js → call-D9OC-7W4.js} +1 -1
- package/dist/{camera-DdNTYE0h.js → camera-kXOWvOoC.js} +1 -1
- package/dist/{check-vXGHmcIW.js → check-NSQ5iBNs.js} +1 -1
- package/dist/{checklist-FZAjX_BR.js → checklist-CvvFBmGK.js} +1 -1
- package/dist/{checkmark-DK1r_ANi.js → checkmark-DbiyQ8XG.js} +1 -1
- package/dist/{checkmark-double-CsLZ6qUd.js → checkmark-double-DseEPieP.js} +1 -1
- package/dist/{chevron-down-DZ3hWDQE.js → chevron-down-DZNvyf86.js} +1 -1
- package/dist/{chevron-left-Bc3_cUip.js → chevron-left-BSPiU-Q-.js} +1 -1
- package/dist/{chevron-right-CKqYcLz9.js → chevron-right-CoFDL1Jp.js} +1 -1
- package/dist/{chevron-up-LxMAdsrI.js → chevron-up-BzjT5MVb.js} +1 -1
- package/dist/{clipboard-BHiq4tWW.js → clipboard-_RKV4XvZ.js} +1 -1
- package/dist/{clock-B9JO34oX.js → clock-D7pC-Az0.js} +1 -1
- package/dist/{close-CXEY4oGs.js → close-DcD1_swZ.js} +1 -1
- package/dist/{cloud-save-wTW8REhy.js → cloud-save-B4XnLwo5.js} +1 -1
- package/dist/{code-BFxwrUFX.js → code-DyeAnvJL.js} +1 -1
- package/dist/{collapse-C-EUuoRP.js → collapse-Ev8ER1sf.js} +1 -1
- package/dist/{color-palette-CDLnyqhg.js → color-palette-B8j83wVH.js} +1 -1
- package/dist/{comment-D1zaXBXs.js → comment-BU2TeSc5.js} +1 -1
- package/dist/{comment-fill-Skg3w0oH.js → comment-fill-DCwGsRk9.js} +1 -1
- package/dist/components/UiAutocomplete/UiAutocomplete.vue.d.ts +2 -0
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +12 -0
- package/dist/components/UiIcon/icons.d.ts +1 -0
- package/dist/components/UiInput/UiInput.vue.d.ts +14 -0
- package/dist/components/UiLabel/UiLabel.vue.d.ts +25 -0
- package/dist/components/UiMenu/UiMenu.vue.d.ts +1 -1
- package/dist/components/UiSearchInput/UiSearchInput.vue.d.ts +20 -2
- package/dist/components/UiSelect/UiSelect.vue.d.ts +54 -0
- package/dist/components/UiToggleButton/UiToggleButton.vue.d.ts +12 -2
- package/dist/components/index.d.ts +3 -1
- package/dist/{copy-CiiEgzyv.js → copy-ZmoChZPa.js} +1 -1
- package/dist/{copy-link-8AvIH4Kv.js → copy-link-B17EtN22.js} +1 -1
- package/dist/{delete-DK2Xv6_w.js → delete-kp4jY4VC.js} +1 -1
- package/dist/{download-CTcsTYDH.js → download-Cg3Mfd1F.js} +1 -1
- package/dist/{dpa-id-DR3Lsgsb.js → dpa-id-ClTNNulu.js} +1 -1
- package/dist/dpa-shared-components.js +32 -30
- package/dist/{edit-Cz6AgY_t.js → edit-Bki_XTEC.js} +1 -1
- package/dist/{edit-add-GKxsClJo.js → edit-add-B0coqr__.js} +1 -1
- package/dist/{eil-CDG5Jr-7.js → eil-DRG6fPII.js} +1 -1
- package/dist/{emoji-DvBX_j4t.js → emoji-Cf1T-KUQ.js} +1 -1
- package/dist/{emoji-add-BOTrfthG.js → emoji-add-DqGIC6hb.js} +1 -1
- package/dist/{envelope-CtqN8tx5.js → envelope-CSTV28Yv.js} +1 -1
- package/dist/{event-DMWWJwsx.js → event-BwEYFOuJ.js} +1 -1
- package/dist/{expand-CoW3UgwX.js → expand-DNHPrmK0.js} +1 -1
- package/dist/{external-link-COjgJXTi.js → external-link-BuR-VGNU.js} +1 -1
- package/dist/{file-D-LSRIUo.js → file-BjhFi2IL.js} +1 -1
- package/dist/{file-pdf-DCCQ_a9C.js → file-pdf-BHf-2EMk.js} +1 -1
- package/dist/{filter-D5OcBw41.js → filter-BT19RdxK.js} +1 -1
- package/dist/{filter-outline-3LfSX6Lo.js → filter-outline-F6nz5Bpv.js} +1 -1
- package/dist/{flag-BtpRIItL.js → flag-CgG9oBN_.js} +1 -1
- package/dist/{flag-fill-DdVhHzvR.js → flag-fill-BaJ2y1KO.js} +1 -1
- package/dist/{flag-filled-B8Z6O36x.js → flag-filled-VB61P7io.js} +1 -1
- package/dist/{flag-outline-BIaFD8MB.js → flag-outline-DxA60mar.js} +1 -1
- package/dist/{flags-CNOJmS43.js → flags-BoKaz6G3.js} +1 -1
- package/dist/{flash-BAdWmU_R.js → flash-Y4tcmzfR.js} +1 -1
- package/dist/{folder-By4NLjbd.js → folder-XvaWfgWv.js} +1 -1
- package/dist/{folder-add-CcQldCUB.js → folder-add-6CZrU-DR.js} +1 -1
- package/dist/{folder-fill-FJgJQHVG.js → folder-fill-KIXzynSA.js} +1 -1
- package/dist/{folder-filled-CTK9bk-B.js → folder-filled-B1KH5ftl.js} +1 -1
- package/dist/{gallery-iX0eBg-7.js → gallery-BkItUHtv.js} +1 -1
- package/dist/{graphic-b8tfGL-U.js → graphic-CtmVrWFt.js} +1 -1
- package/dist/{graphic-circled-CkNVp9_g.js → graphic-circled-g4_avs-O.js} +1 -1
- package/dist/{graphic-filled-CgNQ3iBp.js → graphic-filled-D7puYjZ3.js} +1 -1
- package/dist/{graphics-BLa_Nfuv.js → graphics-CFpLrSml.js} +1 -1
- package/dist/{grid-1-4n8PoHrT.js → grid-1-Cx0q8kBw.js} +1 -1
- package/dist/{grid-2-BYh4OW3v.js → grid-2-De-14OuV.js} +1 -1
- package/dist/{grid-3-ZSytMQOF.js → grid-3-D4xY7BZ0.js} +1 -1
- package/dist/{grid-4-DAFZj1xY.js → grid-4-DWZ7WVG_.js} +1 -1
- package/dist/{grid-6-BAbM1ng2.js → grid-6-Dy1Qqd9J.js} +1 -1
- package/dist/{grid-9-BF2ZxrJH.js → grid-9-C0JG04wt.js} +1 -1
- package/dist/{grid-masonry-9-DBJUSTYS.js → grid-masonry-9-ShvPSsDK.js} +1 -1
- package/dist/{grid-masonry-xBk_-mNZ.js → grid-masonry-BNXF8_7C.js} +1 -1
- package/dist/{help-Cv0GeVz6.js → help-yy-azDe4.js} +1 -1
- package/dist/{home-CIhA7CAP.js → home-CbjD3lFF.js} +1 -1
- package/dist/{image focus point-BT71lPQX.js → image focus point-Cv3Q7T8w.js } +1 -1
- package/dist/{image-DgVQtH95.js → image-D7edNk-C.js} +1 -1
- package/dist/{impact-high-C-3099r5.js → impact-high-Bnsk5YsA.js} +1 -1
- package/dist/{impact-low-B3suyIqr.js → impact-low-CK-fLvjS.js} +1 -1
- package/dist/{impact-medium-CKzJm3-k.js → impact-medium-CmGfiR0q.js} +1 -1
- package/dist/{impact-very-high-KGQvMGb4.js → impact-very-high-CUsJ_26t.js} +1 -1
- package/dist/{impact-very-low-DUPeyNgf.js → impact-very-low-rHoskEmi.js} +1 -1
- package/dist/{index-C1RfWXaF.js → index-DPTr_CW4.js} +3913 -3807
- package/dist/{info-CGpjEUvT.js → info-DyGrTLDs.js} +1 -1
- package/dist/{info-fill-0IVmY3H1.js → info-fill-DpBY1kXH.js} +1 -1
- package/dist/{info-filled-BFuUOGvZ.js → info-filled-CTwiqqLB.js} +1 -1
- package/dist/{label-Bg-gQjZM.js → label-DibCUknb.js} +1 -1
- package/dist/{label-filled-C94sEKcA.js → label-filled-RM4axxFO.js} +1 -1
- package/dist/{language-DcN0I_fl.js → language-C3oWb3pn.js} +1 -1
- package/dist/{latest-CyvY0aJh.js → latest-BI0ob85J.js} +1 -1
- package/dist/{lightbulb-CuP4wTmB.js → lightbulb-CnWbpapX.js} +1 -1
- package/dist/{list-BX38cM-1.js → list-1fajhqjy.js} +1 -1
- package/dist/{list-search-C3JqEuzT.js → list-search--F238TI5.js} +1 -1
- package/dist/{lock-filled-G56jgqlc.js → lock-filled-BLm0tRpx.js} +1 -1
- package/dist/{lock-Kj-VxTKJ.js → lock-qHiUVvb6.js} +1 -1
- package/dist/{mail-gKADNLru.js → mail-BwVLL_CQ.js} +1 -1
- package/dist/{map-CZu2knGx.js → map-SD_wDBoB.js} +1 -1
- package/dist/{map-outline-wfiFWF-W.js → map-outline-Blwf07ko.js} +1 -1
- package/dist/{menu-CrN_vLpX.js → menu-CJMzUGhg.js} +1 -1
- package/dist/{minus-i_VNaesL.js → minus-NMYYPN4G.js} +1 -1
- package/dist/{more-horizontal-C7u-NuOt.js → more-horizontal-CR7H4XJf.js} +1 -1
- package/dist/{more-vertical-B6ZXU_oV.js → more-vertical-DRi2KUBF.js} +1 -1
- package/dist/{move-CgyXIsuM.js → move-CnXcnaI-.js} +1 -1
- package/dist/{move-up-down-_RoFws_y.js → move-up-down-B-MGteUJ.js} +1 -1
- package/dist/{navigation-DBW-JMVr.js → navigation-C6_-fobC.js} +1 -1
- package/dist/{note-C5ghT6df.js → note-D_l95t3P.js} +1 -1
- package/dist/{offline-JCt_xV2i.js → offline-B-KVP0PH.js} +1 -1
- package/dist/{package-DlrWo255.js → package-CKKAsIyR.js} +1 -1
- package/dist/{paper-plane-lDiFdS9l.js → paper-plane-CXv4S955.js} +1 -1
- package/dist/{paperplane-Dh_HsMFm.js → paperplane-Dd72tRkT.js} +1 -1
- package/dist/{pause-hshL7m0v.js → pause-B-_Xr0gu.js} +1 -1
- package/dist/{pause-circle-CWJ7wvV-.js → pause-circle-qdguAsne.js} +1 -1
- package/dist/{pdf-ByMAr_pf.js → pdf-kF-z2ep4.js} +1 -1
- package/dist/{pen-DkpP8zBz.js → pen-D8Uh2zQl.js} +1 -1
- package/dist/{pen-check-CTtwOx0W.js → pen-check-Bps1eJIa.js} +1 -1
- package/dist/{people-DcHG120j.js → people-D0i7Dff8.js} +1 -1
- package/dist/{phone-DKntGYS-.js → phone-DfT09W5t.js} +1 -1
- package/dist/{picture-B24FpQ_g.js → picture-CGMbzcYY.js} +1 -1
- package/dist/{picture-circled-BdXYsf-z.js → picture-circled-C5xr6a5V.js} +1 -1
- package/dist/{picture-filled-Cqisawxc.js → picture-filled-bCFwoxTK.js} +1 -1
- package/dist/picture-gallery-Ny7XwbWp.js +18 -0
- package/dist/{pin-C9pHZbCB.js → pin-BRQSAE3B.js} +1 -1
- package/dist/{planning-DZyCVtNT.js → planning-muG3T-6d.js} +1 -1
- package/dist/{play-C5163t9v.js → play-BcFxtF5b.js} +1 -1
- package/dist/{play-circle-CJepR09X.js → play-circle-B2ahlsZk.js} +1 -1
- package/dist/{play-fill-Dg5agGC8.js → play-fill-D53-aAwU.js} +1 -1
- package/dist/{plus-o1LHvkzd.js → plus-B86SmZGh.js} +1 -1
- package/dist/{plus-circle-ptT6oAUL.js → plus-circle-CnUjJsnF.js} +1 -1
- package/dist/{print-CvXl_szh.js → print-qLntWNd7.js} +1 -1
- package/dist/{refresh-BJ4s37HF.js → refresh-B_CT3vb1.js} +1 -1
- package/dist/{reset-DXL5hBzR.js → reset-BID4RkcV.js} +1 -1
- package/dist/{responsive-BtCOsZ9L.js → responsive-ZL1NzTfX.js} +1 -1
- package/dist/{rubix-thema-CtCYpVHK.js → rubix-thema-BvZYzAwX.js} +1 -1
- package/dist/{save-Bsq9gKQd.js → save-BybCvQGY.js} +1 -1
- package/dist/{saved-search-C5QBII9Y.js → saved-search-DBVj7gkd.js} +1 -1
- package/dist/{saved-search-fill-BMEpQDa5.js → saved-search-fill-C8grEFO7.js} +1 -1
- package/dist/{search-FjEsPR8U.js → search-BBvIb5gY.js} +1 -1
- package/dist/{settings-Dew4TRkl.js → settings-C3pzFKav.js} +1 -1
- package/dist/{share-Cgr5Ae27.js → share-B9NEdX5h.js} +1 -1
- package/dist/{share-alternative-C1WPUOQS.js → share-alternative-D-owBQIX.js} +1 -1
- package/dist/{sidebar-DJfR5se4.js → sidebar-BceztyGh.js} +1 -1
- package/dist/{sidebar-fill-CmTx5oE3.js → sidebar-fill-meae4nW0.js} +1 -1
- package/dist/{slack-C6N9e9ts.js → slack-qT8c0TWt.js} +1 -1
- package/dist/{slider-config-D5ryC-9e.js → slider-config-DqpWW1vb.js} +1 -1
- package/dist/{spellcheck-CgPkv24l.js → spellcheck-s_Xcuq7Y.js} +1 -1
- package/dist/{spinner-CUmDNwOP.js → spinner-DJwVbRES.js} +1 -1
- package/dist/src/assets/icons/picture-gallery.vue +13 -0
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +34 -1
- package/dist/src/components/UiCheckbox/UiCheckbox.vue +22 -13
- package/dist/src/components/UiColorPicker/README.md +5 -5
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +3 -2
- package/dist/src/components/UiIcon/icons.ts +1 -0
- package/dist/src/components/UiInput/README.md +1 -0
- package/dist/src/components/UiInput/UiInput.spec.ts +1 -1
- package/dist/src/components/UiInput/UiInput.vue +28 -20
- package/dist/src/components/UiLabel/README.md +33 -0
- package/dist/src/components/UiLabel/UiLabel.vue +16 -0
- package/dist/src/components/UiMenu/UiMenu.stories.ts +108 -83
- package/dist/src/components/UiMenu/UiMenu.vue +33 -25
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +4 -3
- package/dist/src/components/UiSearchInput/README.md +28 -22
- package/dist/src/components/UiSearchInput/UiSearchInput.vue +31 -3
- package/dist/src/components/UiSelect/README.md +54 -0
- package/dist/src/components/UiSelect/UIiSelect.spec.ts +102 -0
- package/dist/src/components/UiSelect/UiSelect.stories.ts +94 -0
- package/dist/src/components/UiSelect/UiSelect.vue +76 -0
- package/dist/src/components/UiToggleButton/README.md +3 -3
- package/dist/src/components/UiToggleButton/UiToggleButton.vue +14 -3
- package/dist/src/components/index.ts +4 -0
- package/dist/{standard-view-CUMldHu5.js → standard-view-Dh6JMdWs.js} +1 -1
- package/dist/{star-B9W3Ky04.js → star-BSFTyui3.js} +1 -1
- package/dist/{star-fill-DhAaaqmP.js → star-fill-CVhN8bqR.js} +1 -1
- package/dist/{star-filled-quxk8B-9.js → star-filled-DacJoaAu.js} +1 -1
- package/dist/{stop-D3zmCHsm.js → stop-BwWBCobo.js} +1 -1
- package/dist/{story-YPCKA_qC.js → story-CBNTp-lp.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{sync-C1z4VZJT.js → sync-BaZtL0xx.js} +1 -1
- package/dist/{tasks-BB_9ezkW.js → tasks-DL9yIRdK.js} +1 -1
- package/dist/{text-nSm37hQd.js → text-R4vHS9Pd.js} +1 -1
- package/dist/{text-circled-Dc9Onu99.js → text-circled-CnnnL1id.js} +1 -1
- package/dist/{text-filled-B0ZOW6JM.js → text-filled-DthiiE_T.js} +1 -1
- package/dist/{thumbs-down-Cb2Y7NTu.js → thumbs-down-CSyRwO6Y.js} +1 -1
- package/dist/{thumbs-up-Cd6iU3NA.js → thumbs-up-8f-7gcq6.js} +1 -1
- package/dist/{thumbs-up-double-D3lhVUS_.js → thumbs-up-double-Dhf_0k-o.js} +1 -1
- package/dist/{topic-C_VTDMR7.js → topic-LED8OQq_.js} +1 -1
- package/dist/{union-CRw4YV1f.js → union-C3GueVUs.js} +1 -1
- package/dist/{upload-BCQ7aJwX.js → upload-A6JuSLcS.js} +1 -1
- package/dist/{video overlay-DjCh1eBe.js → video overlay-DIDpPww1.js } +1 -1
- package/dist/{video-circled-jkN2EnvK.js → video-circled-BVu5I_wj.js} +1 -1
- package/dist/{video-DnXRYTdX.js → video-eeoO9KOd.js} +1 -1
- package/dist/{video-filled-CSybA72O.js → video-filled-_eOJ2sb3.js} +1 -1
- package/dist/{video-rounded-63Bs_nLq.js → video-rounded-AiQniTjB.js} +1 -1
- package/dist/{view-DHm4Xfd8.js → view-CuvlyhMJ.js} +1 -1
- package/dist/{view-off-D4GKV9n1.js → view-off-Ccn9Z_zK.js} +1 -1
- package/dist/{volume-up-Bjizso9F.js → volume-up-3FMnPLw6.js} +1 -1
- package/package.json +28 -19
- package/src/assets/icons/picture-gallery.vue +13 -0
- package/src/components/UiCheckbox/UiCheckbox.vue +22 -13
- package/src/components/UiColorPicker/README.md +5 -5
- package/src/components/UiIcon/icons.ts +1 -0
- package/src/components/UiInput/README.md +1 -0
- package/src/components/UiInput/UiInput.vue +28 -20
- package/src/components/UiLabel/README.md +33 -0
- package/src/components/UiLabel/UiLabel.vue +16 -0
- package/src/components/UiMenu/UiMenu.vue +33 -25
- package/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +4 -3
- package/src/components/UiSearchInput/README.md +28 -22
- package/src/components/UiSearchInput/UiSearchInput.vue +31 -3
- package/src/components/UiSelect/README.md +54 -0
- package/src/components/UiSelect/UiSelect.vue +76 -0
- package/src/components/UiToggleButton/README.md +3 -3
- package/src/components/UiToggleButton/UiToggleButton.vue +14 -3
- package/src/components/index.ts +4 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cn('group relative', $attrs.class as string)">
|
|
3
|
+
<UiLabel
|
|
4
|
+
v-if="$slots.default"
|
|
5
|
+
:for="id"
|
|
6
|
+
:class="
|
|
7
|
+
cn(
|
|
8
|
+
'absolute left-3 z-10 origin-left px-1 text-gray-500 transition-all duration-150 group-hover:text-gray-700 [*:has(+select:focus)]:text-blue-default',
|
|
9
|
+
model ? '-translate-y-1/2 bg-white text-xs' : 'translate-y-4',
|
|
10
|
+
)
|
|
11
|
+
"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</UiLabel>
|
|
15
|
+
|
|
16
|
+
<select
|
|
17
|
+
:id
|
|
18
|
+
v-model="model"
|
|
19
|
+
:aria-invalid="Boolean($slots.errors)"
|
|
20
|
+
:aria-errormessage="$slots.errors ? `${id}-errors` : undefined"
|
|
21
|
+
class="disabled:text-color-gray-400 disabled:border-gray-500 readonly:text-gray-800 peer h-14 w-full appearance-none border border-gray-300 p-4 pr-2 text-left text-gray-900 transition-all duration-150 outline-none placeholder:text-gray-500 focus:border-2 focus:border-blue-default focus:p-inputFocused enabled:not-focus:hover:border-gray-700 aria-invalid:border-2 aria-invalid:border-alert-red-default aria-invalid:focus:border-alert-red-dark enabled:aria-invalid:hover:border-alert-red-dark"
|
|
22
|
+
v-bind="{ ...$attrs, class: null }"
|
|
23
|
+
>
|
|
24
|
+
<slot name="options" />
|
|
25
|
+
</select>
|
|
26
|
+
|
|
27
|
+
<UiIcon
|
|
28
|
+
class="pointer-events-none absolute top-4 right-3"
|
|
29
|
+
name="chevron-down"
|
|
30
|
+
/>
|
|
31
|
+
|
|
32
|
+
<div
|
|
33
|
+
v-if="$slots.errors"
|
|
34
|
+
:id="`${id}-errors`"
|
|
35
|
+
class="bg-alert-red-default px-4 py-1 text-xs leading-normal font-medium text-white transition-all duration-150 ease-in-out peer-focus:bg-alert-red-dark peer-enabled:peer-hover:bg-alert-red-dark peer-disabled:opacity-70"
|
|
36
|
+
>
|
|
37
|
+
<slot name="errors" />
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup lang="ts">
|
|
43
|
+
import { v4 as uuidv4 } from "uuid";
|
|
44
|
+
|
|
45
|
+
import { cn } from "../../utils/cn.js";
|
|
46
|
+
import UiIcon from "../UiIcon/UiIcon.vue";
|
|
47
|
+
import UiLabel from "../UiLabel/UiLabel.vue";
|
|
48
|
+
|
|
49
|
+
defineOptions({
|
|
50
|
+
inheritAttrs: false,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
defineSlots<{
|
|
54
|
+
/**
|
|
55
|
+
* Label content.
|
|
56
|
+
*/
|
|
57
|
+
default: () => any;
|
|
58
|
+
/**
|
|
59
|
+
* Error content.
|
|
60
|
+
*/
|
|
61
|
+
errors?: () => any;
|
|
62
|
+
/**
|
|
63
|
+
* Select options.
|
|
64
|
+
*/
|
|
65
|
+
options: () => any;
|
|
66
|
+
}>();
|
|
67
|
+
|
|
68
|
+
const { id = `id-${uuidv4()}` } = defineProps<{
|
|
69
|
+
/**
|
|
70
|
+
* ID of the `select` element. Used for the `label`'s `for` attribute if the `default` slot is provided.
|
|
71
|
+
*/
|
|
72
|
+
id?: string;
|
|
73
|
+
}>();
|
|
74
|
+
|
|
75
|
+
const model = defineModel<string>();
|
|
76
|
+
</script>
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
|
|
32
32
|
### Slots
|
|
33
33
|
|
|
34
|
-
| Name | Description
|
|
35
|
-
| --------- |
|
|
36
|
-
| `default` |
|
|
34
|
+
| Name | Description |
|
|
35
|
+
| --------- | ------------- |
|
|
36
|
+
| `default` | Label content |
|
|
37
37
|
|
|
38
38
|
### Events
|
|
39
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<
|
|
3
|
+
<UiLabel :for="toggleId" class="flex cursor-pointer text-base">
|
|
4
4
|
<div
|
|
5
5
|
v-if="$slots.default"
|
|
6
6
|
class="whitespace-nowrap"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
>
|
|
59
59
|
{{ labelText }}
|
|
60
60
|
</div>
|
|
61
|
-
</
|
|
61
|
+
</UiLabel>
|
|
62
62
|
</div>
|
|
63
63
|
</template>
|
|
64
64
|
|
|
@@ -66,14 +66,22 @@
|
|
|
66
66
|
import { v4 as uuidv4 } from "uuid";
|
|
67
67
|
import { computed, ref } from "vue";
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
import UiLabel from "../UiLabel/UiLabel.vue";
|
|
70
70
|
|
|
71
71
|
const emit = defineEmits<{
|
|
72
72
|
"update:modelValue": [boolean];
|
|
73
73
|
}>();
|
|
74
74
|
|
|
75
|
+
defineSlots<{
|
|
76
|
+
/**
|
|
77
|
+
* Label content.
|
|
78
|
+
*/
|
|
79
|
+
default?: () => any;
|
|
80
|
+
}>();
|
|
81
|
+
|
|
75
82
|
const props = withDefaults(
|
|
76
83
|
defineProps<{
|
|
84
|
+
id?: string;
|
|
77
85
|
modelValue?: boolean;
|
|
78
86
|
disabled?: boolean;
|
|
79
87
|
labelText?: string;
|
|
@@ -85,6 +93,7 @@ const props = withDefaults(
|
|
|
85
93
|
size?: "small" | "large";
|
|
86
94
|
}>(),
|
|
87
95
|
{
|
|
96
|
+
id: undefined,
|
|
88
97
|
modelValue: false,
|
|
89
98
|
disabled: false,
|
|
90
99
|
labelText: "",
|
|
@@ -97,6 +106,8 @@ const props = withDefaults(
|
|
|
97
106
|
},
|
|
98
107
|
);
|
|
99
108
|
|
|
109
|
+
const toggleId = ref(props.id ?? `toggle-id-${uuidv4()}`);
|
|
110
|
+
|
|
100
111
|
const labelSpaceClass = computed(() => {
|
|
101
112
|
return props.labelPosition === "left"
|
|
102
113
|
? props.labelSpace === "default"
|
package/src/components/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ export type { UiIconName } from "./UiIcon/UiIcon.vue";
|
|
|
18
18
|
import UiIconButton from "./UiIconButton/UiIconButton.vue";
|
|
19
19
|
import UiInfoContent from "./UiInfoContent/UiInfoContent.vue";
|
|
20
20
|
import UiInput from "./UiInput/UiInput.vue";
|
|
21
|
+
import UiLabel from "./UiLabel/UiLabel.vue";
|
|
21
22
|
import UiList from "./UiList/UiList.vue";
|
|
22
23
|
import UiListItem from "./UiListItem/UiListItem.vue";
|
|
23
24
|
import UiMenu from "./UiMenu/UiMenu.vue";
|
|
@@ -37,6 +38,7 @@ import UiSearchBar from "./UiSearchBar/UiSearchBar.vue";
|
|
|
37
38
|
import UiSearchInput from "./UiSearchInput/UiSearchInput.vue";
|
|
38
39
|
import UiSection from "./UiSection/UiSection.vue";
|
|
39
40
|
import UiSectionDivider from "./UiSectionDivider/UiSectionDivider.vue";
|
|
41
|
+
import UiSelect from "./UiSelect/UiSelect.vue";
|
|
40
42
|
import UiSimpleInput from "./UiSimpleInput/UiSimpleInput.vue";
|
|
41
43
|
import UiSkeletonBox from "./UiSkeletonBox/UiSkeletonBox.vue";
|
|
42
44
|
import UiSnackbar from "./UiSnackbar/UiSnackbar.vue";
|
|
@@ -66,6 +68,7 @@ export {
|
|
|
66
68
|
UiIconButton,
|
|
67
69
|
UiInfoContent,
|
|
68
70
|
UiInput,
|
|
71
|
+
UiLabel,
|
|
69
72
|
UiList,
|
|
70
73
|
UiListItem,
|
|
71
74
|
UiMenu,
|
|
@@ -78,6 +81,7 @@ export {
|
|
|
78
81
|
UiSearchInput,
|
|
79
82
|
UiSection,
|
|
80
83
|
UiSectionDivider,
|
|
84
|
+
UiSelect,
|
|
81
85
|
UiSimpleInput,
|
|
82
86
|
UiSkeletonBox,
|
|
83
87
|
UiSnackbar,
|