@dpa-id-components/dpa-shared-components 18.2.2 → 18.3.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/dist/{activities-ecsw6Xhc.js → activities-ZvHPXK6L.js} +1 -1
- package/dist/{ai-DQMocCYV.js → ai-BEPQb174.js} +1 -1
- package/dist/{alert-J4zpIIlX.js → alert-D6o8YdE5.js} +1 -1
- package/dist/{alert-fill-DAtLs1T2.js → alert-fill-Dq6LHFxu.js} +1 -1
- package/dist/{alert-octagon-CRfCWaMU.js → alert-octagon-MpSm3Jo4.js} +1 -1
- package/dist/{apps-atx9AnWT.js → apps-BqFSeS7d.js} +1 -1
- package/dist/{archive-C20MyRn6.js → archive-NQsopzrg.js} +1 -1
- package/dist/{arrow-down-BvOWXc52.js → arrow-down-C0hGeFmn.js} +1 -1
- package/dist/{arrow-left-CMjPySYn.js → arrow-left-DcFGgQ1E.js} +1 -1
- package/dist/{arrow-nav-left-DEYtngd4.js → arrow-nav-left-5yVBhVpK.js} +1 -1
- package/dist/{arrow-nav-right-kHPWZF1S.js → arrow-nav-right-km6UraEi.js} +1 -1
- package/dist/{arrow-right-C5ywR0QZ.js → arrow-right-CNdNftSo.js} +1 -1
- package/dist/{arrow-up-5Rp56Rqg.js → arrow-up-6GSSLZAo.js} +1 -1
- package/dist/{arrowhead-left-tAGokv1y.js → arrowhead-left-B1AYx865.js} +1 -1
- package/dist/{arrowhead-right-jyE2pKXr.js → arrowhead-right-CiXxUC9i.js} +1 -1
- package/dist/{arrowhead-top-7RDV_ieS.js → arrowhead-top-DUJ_j8dI.js} +1 -1
- package/dist/{atmo-DyLgEe5A.js → atmo-DtbG3y5s.js} +1 -1
- package/dist/{audio-CIvK9UwJ.js → audio-WfOKW00l.js} +1 -1
- package/dist/{audio-circled-DO4i8NS0.js → audio-circled-JZmA2bcD.js} +1 -1
- package/dist/{audio-filled-HeUaBtSl.js → audio-filled-C2bqh4dY.js} +1 -1
- package/dist/{bag-deNGdn39.js → bag-CZuABmlM.js} +1 -1
- package/dist/{bell-ChB2OLcy.js → bell-JaZKjCwu.js} +1 -1
- package/dist/{bell-fill-CO_1BnXy.js → bell-fill-NQueNoDy.js} +1 -1
- package/dist/{book-Doo7Trt-.js → book-BWMUgo6A.js} +1 -1
- package/dist/{bookmark-CBkAFZ2F.js → bookmark-DNcL5FLy.js} +1 -1
- package/dist/{bookmark-fill-DfecS76v.js → bookmark-fill-DURlrcpn.js} +1 -1
- package/dist/{bookmark-outlined-DBHla_z_.js → bookmark-outlined-C9QILVDN.js} +1 -1
- package/dist/{box-Chtrtdra.js → box-xKnK9Nxh.js} +1 -1
- package/dist/{bulb-C4IGTUHo.js → bulb-DRafi3Gb.js} +1 -1
- package/dist/{call-bV1tzEYF.js → call-2rJnLC3z.js} +1 -1
- package/dist/{camera-DNYO_A1r.js → camera-CbotxjYP.js} +1 -1
- package/dist/{check-D9FDZ_QV.js → check-CvdKK3Fr.js} +1 -1
- package/dist/{checklist-BMn7z4cj.js → checklist-HyJu5hUO.js} +1 -1
- package/dist/{checkmark-4Fw2yOWT.js → checkmark-YKVXpa6s.js} +1 -1
- package/dist/{checkmark-double-apJ4RqHS.js → checkmark-double-Kv_C3cCv.js} +1 -1
- package/dist/{chevron-down-C8BRiU0z.js → chevron-down-CFWbbMaD.js} +1 -1
- package/dist/{chevron-left-DXgyoREL.js → chevron-left-30YWrx-M.js} +1 -1
- package/dist/{chevron-right-XawJosc9.js → chevron-right-DylXKHTG.js} +1 -1
- package/dist/{chevron-up-g_HqpY55.js → chevron-up-CCvC118Z.js} +1 -1
- package/dist/{clipboard-Ca61v6bB.js → clipboard-BCy1Qwx1.js} +1 -1
- package/dist/{clock-CVzHafhh.js → clock-BnOs3zNk.js} +1 -1
- package/dist/{close-rADYzFuj.js → close-RrgjCmTJ.js} +1 -1
- package/dist/{cloud-save-Cca8-IjU.js → cloud-save-CPhHh8OT.js} +1 -1
- package/dist/{code-B6avp8zz.js → code-CwkJ_seA.js} +1 -1
- package/dist/{collapse-DrrtzuEx.js → collapse-BHAExcXu.js} +1 -1
- package/dist/{color-palette-Cs067lZQ.js → color-palette-B_Mzi1oR.js} +1 -1
- package/dist/{comment-qbh77k0U.js → comment-D4hrz4vw.js} +1 -1
- package/dist/{comment-fill-B2MZiZib.js → comment-fill-CUsXt2Id.js} +1 -1
- package/dist/{copy-DvP8o5GZ.js → copy-202LV9LI.js} +1 -1
- package/dist/{copy-link-DzDT1qeq.js → copy-link-SemfFlCk.js} +1 -1
- package/dist/{delete-D2SB310S.js → delete-D8ie5KuU.js} +1 -1
- package/dist/{download-BZbo4ALL.js → download-BG1wfZaX.js} +1 -1
- package/dist/{dpa-id-B183hxvQ.js → dpa-id-3D8dSF9i.js} +1 -1
- package/dist/dpa-shared-components.js +1 -1
- package/dist/{edit-add-QpkTWX17.js → edit-add-DBGInIwa.js} +1 -1
- package/dist/{edit-KnD8jstK.js → edit-kR-HKOsu.js} +1 -1
- package/dist/{eil-qqA3xpfI.js → eil-Cn4MpydT.js} +1 -1
- package/dist/{emoji-BFpBd6Wj.js → emoji-CRjwt8RT.js} +1 -1
- package/dist/{emoji-add-BMBiI1v9.js → emoji-add-BbuDvk-Z.js} +1 -1
- package/dist/{envelope-C7gO36Mt.js → envelope-C1j0awMM.js} +1 -1
- package/dist/{event-CVYFJubc.js → event-CQQ_JPGq.js} +1 -1
- package/dist/{expand-CyYKgi7O.js → expand-DhNFzHSx.js} +1 -1
- package/dist/{external-link-BaxWgqdI.js → external-link-DWV7wXP5.js} +1 -1
- package/dist/{file-LNNgT2vW.js → file-27sZs6tI.js} +1 -1
- package/dist/{file-pdf-D8ZwJ7Bm.js → file-pdf-CamDRruW.js} +1 -1
- package/dist/{filter-8JdkQZva.js → filter-BfgUP6x5.js} +1 -1
- package/dist/{filter-outline-BhbVJhxl.js → filter-outline-qONWOHks.js} +1 -1
- package/dist/{flag-aP8T8d6P.js → flag-EYbqtSxI.js} +1 -1
- package/dist/{flag-fill-LZH6TmEj.js → flag-fill-TbfjBAx1.js} +1 -1
- package/dist/{flag-filled-HhKN2nbt.js → flag-filled-DV1g5KVF.js} +1 -1
- package/dist/{flag-outline-ptdhYVAD.js → flag-outline-DRfSdV69.js} +1 -1
- package/dist/{flags-BRAAA68G.js → flags-OmCxq2vK.js} +1 -1
- package/dist/{flash-DUx5XVch.js → flash-B3g3_L0K.js} +1 -1
- package/dist/{folder-OrvwiPBJ.js → folder-BFiW7X7c.js} +1 -1
- package/dist/{folder-add-DncOCie6.js → folder-add-cXSQ5xfn.js} +1 -1
- package/dist/{folder-fill-BEJ7e5nb.js → folder-fill-Dlucr68c.js} +1 -1
- package/dist/{folder-filled-B0XWz_LY.js → folder-filled-D94Ti6x0.js} +1 -1
- package/dist/{gallery-Br1ZoJEs.js → gallery-C-qE80cq.js} +1 -1
- package/dist/{graphic-Q_QO2ZZP.js → graphic-CbRTtoCF.js} +1 -1
- package/dist/{graphic-circled-CMKgwCLr.js → graphic-circled-DLEcZNco.js} +1 -1
- package/dist/{graphic-filled-CIthaXij.js → graphic-filled-DZ_sQvIl.js} +1 -1
- package/dist/{graphics-yOtjd2fm.js → graphics-CN87x7B5.js} +1 -1
- package/dist/{grid-1-Bl1HzC9Q.js → grid-1-DYUncEqq.js} +1 -1
- package/dist/{grid-2-tCvGnij5.js → grid-2-Kf3hFXKK.js} +1 -1
- package/dist/{grid-3-Bc7jVTrG.js → grid-3-p_13jNUr.js} +1 -1
- package/dist/{grid-4-BURr1Bdp.js → grid-4-CEziSG33.js} +1 -1
- package/dist/{grid-6-kkbuxSdM.js → grid-6-DBBhkzE8.js} +1 -1
- package/dist/{grid-9-80Wsxx66.js → grid-9-BLIob_mV.js} +1 -1
- package/dist/{grid-masonry-9-C42ZBIc5.js → grid-masonry-9-BVz5lJEe.js} +1 -1
- package/dist/{grid-masonry-C2ncYUA_.js → grid-masonry-htTDPwlC.js} +1 -1
- package/dist/{help-hVb8Ek2Y.js → help-CUJdGcN4.js} +1 -1
- package/dist/{home-Bo9lGLOC.js → home-BAbxP7pz.js} +1 -1
- package/dist/{image focus point-CV2voBZ6.js → image focus point-Ci9Nnc_x.js } +1 -1
- package/dist/{image-8QsMmLiQ.js → image-DyFslBBf.js} +1 -1
- package/dist/{impact-high-DkrB2ZHA.js → impact-high-D37b-U5a.js} +1 -1
- package/dist/{impact-low-SSSjqOL_.js → impact-low-B33pprEc.js} +1 -1
- package/dist/{impact-medium-Dg3VlhAL.js → impact-medium-hs6N-6Nr.js} +1 -1
- package/dist/{impact-very-high-CSTe3ERO.js → impact-very-high-BcQSG9i_.js} +1 -1
- package/dist/{impact-very-low-BEGlmNBJ.js → impact-very-low-Dr2Wmkf0.js} +1 -1
- package/dist/{index-BeVakwhY.js → index-C-WtKR0_.js} +521 -471
- package/dist/{info-B7ttKHFC.js → info-DnNuc8Wc.js} +1 -1
- package/dist/{info-fill-D43eT3S6.js → info-fill-BhRalrAf.js} +1 -1
- package/dist/{info-filled-DlDLe_Dm.js → info-filled-BHkIN0TS.js} +1 -1
- package/dist/{label-BJvuw4us.js → label-CeKH4hwd.js} +1 -1
- package/dist/{label-filled-D0Pa-ahx.js → label-filled-BQljriZQ.js} +1 -1
- package/dist/{language-bhYkxTn1.js → language-CyT7_Gqz.js} +1 -1
- package/dist/{latest-DIpNoHHD.js → latest-UTKJJrA9.js} +1 -1
- package/dist/{lightbulb-BiYU56_8.js → lightbulb-Bp-P99z1.js} +1 -1
- package/dist/{list-DDI5rnYq.js → list-BhJvG6_U.js} +1 -1
- package/dist/{list-search-CZ8fvAEz.js → list-search-wESIF7_U.js} +1 -1
- package/dist/{lock-CBSrCmb6.js → lock-D3jZS-cc.js} +1 -1
- package/dist/{lock-filled-Dtrq74wH.js → lock-filled-9puwFBRd.js} +1 -1
- package/dist/{mail-Cp2ZwkTY.js → mail-C2AT-7V3.js} +1 -1
- package/dist/{map-nGV1Mijl.js → map-DCbwpvqO.js} +1 -1
- package/dist/{map-outline-Di7iWXoA.js → map-outline-D_eQVgjH.js} +1 -1
- package/dist/{menu-DVkaECqp.js → menu-PHJpIKXn.js} +1 -1
- package/dist/{minus-D1PwTMdf.js → minus-B6jwAu5Y.js} +1 -1
- package/dist/{more-horizontal-mjBdxmZy.js → more-horizontal-C-yOGzGH.js} +1 -1
- package/dist/{more-vertical-4fZ3iO0G.js → more-vertical-ChyVHAYk.js} +1 -1
- package/dist/{move-DeD1jhJ7.js → move-CRxUclmx.js} +1 -1
- package/dist/{move-up-down-BtGqk0bn.js → move-up-down-DS2U15Lu.js} +1 -1
- package/dist/{navigation-CTv5jG_l.js → navigation-MJ6Bu0wt.js} +1 -1
- package/dist/{note-YabMVOpy.js → note-K44H4xe7.js} +1 -1
- package/dist/{offline-DLY7SfHE.js → offline-D-364Y60.js} +1 -1
- package/dist/{package-DxQBj-eB.js → package-_oOZU5vW.js} +1 -1
- package/dist/{paper-plane-DgPGUSaJ.js → paper-plane-tH3Z8Iyx.js} +1 -1
- package/dist/{paperplane-oVHdNytf.js → paperplane-Bnhgi6T3.js} +1 -1
- package/dist/{pause-BjqGzTGR.js → pause-C4kZ97iQ.js} +1 -1
- package/dist/{pause-circle-aRqBgg9c.js → pause-circle-D4dTXtQS.js} +1 -1
- package/dist/{pdf-BlwMnntw.js → pdf-DTckK9wJ.js} +1 -1
- package/dist/{pen-Czn34Aao.js → pen-Bfu9zraf.js} +1 -1
- package/dist/{pen-check-fXE93sH5.js → pen-check-Bix_rzgk.js} +1 -1
- package/dist/{people-x7vd-As-.js → people-CRPmWoct.js} +1 -1
- package/dist/{phone-BLrc9Ibk.js → phone-t26vipgD.js} +1 -1
- package/dist/{picture-j87SifTw.js → picture-DuBqOIKo.js} +1 -1
- package/dist/{picture-circled-TdLb97WH.js → picture-circled-BPVUSHpq.js} +1 -1
- package/dist/{picture-filled-Cs8oA7b2.js → picture-filled-B-Xvabd2.js} +1 -1
- package/dist/{picture-gallery-D5ogsVAk.js → picture-gallery-CVHzMRgU.js} +1 -1
- package/dist/{pin-aahO5tlM.js → pin-D_JK1gW2.js} +1 -1
- package/dist/{planning-BEEGS4gm.js → planning-DNuiZGOj.js} +1 -1
- package/dist/{play-B5JcB6Cv.js → play-C-NW5exN.js} +1 -1
- package/dist/{play-circle-B_h2haJx.js → play-circle-B_ftZS2X.js} +1 -1
- package/dist/{play-fill-BGTaYLu9.js → play-fill-DSnZPlrd.js} +1 -1
- package/dist/{plus-DGu5wnkH.js → plus-B9FCF8Xt.js} +1 -1
- package/dist/{plus-circle-CsulDEyZ.js → plus-circle-5UvnDoMM.js} +1 -1
- package/dist/{print-CoBamEYd.js → print-CaOnRFKb.js} +1 -1
- package/dist/{refresh-CSCPrerS.js → refresh-DtmAjtfq.js} +1 -1
- package/dist/{reset-DRtpYbEA.js → reset-vdq7d1T1.js} +1 -1
- package/dist/{responsive-D5H1sMQs.js → responsive-CF3Y8G6v.js} +1 -1
- package/dist/{rubix-thema-B6srkakh.js → rubix-thema-CfCgq5g5.js} +1 -1
- package/dist/{save-D-ORyy-H.js → save-CFA5wyW2.js} +1 -1
- package/dist/{saved-search-CjpldI5l.js → saved-search-B0JEZ-Tb.js} +1 -1
- package/dist/{saved-search-fill-B0W2pzU3.js → saved-search-fill-CB7h2h0l.js} +1 -1
- package/dist/{search-WZIVSJ_A.js → search-CwGnEoZ7.js} +1 -1
- package/dist/{settings-CD95YVQ1.js → settings-D6WRC_xL.js} +1 -1
- package/dist/{share-aJRwAMcl.js → share-C_sasdKZ.js} +1 -1
- package/dist/{share-alternative-BLzIhNYN.js → share-alternative-DylUVXgZ.js} +1 -1
- package/dist/{sidebar-PmV82Em7.js → sidebar-D1vkCfn1.js} +1 -1
- package/dist/{sidebar-fill-D0YNsDDH.js → sidebar-fill-DiTcWLuU.js} +1 -1
- package/dist/{slack-CoWsE8H3.js → slack-DDYHpj_1.js} +1 -1
- package/dist/{slider-config-BiNL8zb8.js → slider-config-CqWj00YV.js} +1 -1
- package/dist/{spellcheck-HrBnkg8l.js → spellcheck-CSaZSZQt.js} +1 -1
- package/dist/{spinner-z-c-Bsf9.js → spinner-BbN36cRr.js} +1 -1
- package/dist/src/components/UiInput/UiInput.vue +21 -31
- package/dist/src/components/UiSelect/UiSelect.vue +98 -3
- package/dist/src/utils/cn.ts +1 -1
- package/dist/{standard-view-B0vzoS1d.js → standard-view-0m5h9nyz.js} +1 -1
- package/dist/{star-D9sUtEH9.js → star-D-OvOMyi.js} +1 -1
- package/dist/{star-fill-BIhFf_L2.js → star-fill-1X2GX22Z.js} +1 -1
- package/dist/{star-filled-B39Ntc_i.js → star-filled--sE8OxQy.js} +1 -1
- package/dist/{stop-DRRveEpi.js → stop-CR3gVKQe.js} +1 -1
- package/dist/{story-BtMtMaPA.js → story-57eDijkq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{sync-D2BfBDlS.js → sync-D4JLDpBh.js} +1 -1
- package/dist/{tasks-BZHXkzSC.js → tasks-6di-Z4II.js} +1 -1
- package/dist/{text-MK0_6xcc.js → text-CSu2qIhr.js} +1 -1
- package/dist/{text-circled-DNE8CAfv.js → text-circled-DQMBXiC2.js} +1 -1
- package/dist/{text-filled-B55ObNTO.js → text-filled-DUV5Hp6z.js} +1 -1
- package/dist/{thumbs-down-BxuiW5_S.js → thumbs-down-CcEFQQIf.js} +1 -1
- package/dist/{thumbs-up-DmlUnGb3.js → thumbs-up-D3lBIha-.js} +1 -1
- package/dist/{thumbs-up-double-D2rKes2N.js → thumbs-up-double-BfsK2YdS.js} +1 -1
- package/dist/{topic-CopdxKwe.js → topic-5VPTgxUI.js} +1 -1
- package/dist/{union-C_yelzO4.js → union-CMKwVw9y.js} +1 -1
- package/dist/{upload-YHcQAuzJ.js → upload-Dr21OIEu.js} +1 -1
- package/dist/{video overlay-CoxxD62M.js → video overlay-BXNJXShe.js } +1 -1
- package/dist/{video-Z-DHhY1e.js → video-B5yKAgkJ.js} +1 -1
- package/dist/{video-circled-C8m0vSyN.js → video-circled-FZqOh69x.js} +1 -1
- package/dist/{video-filled-DEqL8pI-.js → video-filled-CgVDa6Nm.js} +1 -1
- package/dist/{video-rounded-lOQ24BDW.js → video-rounded-MUHEYSM5.js} +1 -1
- package/dist/{view-GRTINHom.js → view-B1rbgMtN.js} +1 -1
- package/dist/{view-off-ByVrWa03.js → view-off-DfXLDJi0.js} +1 -1
- package/dist/{volume-up-DdGNFX2l.js → volume-up-COT8FFF5.js} +1 -1
- package/package.json +1 -1
- package/src/components/UiInput/UiInput.vue +21 -31
- package/src/components/UiSelect/UiSelect.vue +98 -3
- package/src/utils/cn.ts +1 -1
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
:aria-label="label ? label : undefined"
|
|
30
30
|
:readonly="readonly"
|
|
31
31
|
:disabled="disabled"
|
|
32
|
-
class="peer block h-24 w-full rounded-t-sm text-sm outline-hidden transition duration-150 placeholder:text-gray-400 disabled:bg-gray-100 disabled:opacity-70"
|
|
32
|
+
class="peer block h-24 w-full rounded-t-sm p-4 text-sm text-gray-900 outline-hidden transition duration-150 placeholder:text-gray-400 disabled:bg-gray-100 disabled:opacity-70"
|
|
33
33
|
:class="
|
|
34
34
|
cn(
|
|
35
35
|
componentClass,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
:aria-label="label ? label : undefined"
|
|
56
56
|
:readonly="readonly"
|
|
57
57
|
:disabled="disabled"
|
|
58
|
-
class="peer block h-14 w-full rounded-t-sm text-sm outline-hidden transition duration-150 placeholder:text-gray-400 disabled:bg-gray-50 disabled:opacity-70"
|
|
58
|
+
class="peer block h-14 w-full rounded-t-sm p-4 text-sm text-gray-900 outline-hidden transition duration-150 placeholder:text-gray-400 disabled:bg-gray-50 disabled:opacity-70"
|
|
59
59
|
:class="
|
|
60
60
|
cn(
|
|
61
61
|
componentClass,
|
|
@@ -221,28 +221,29 @@ const addonText = computed((): string => {
|
|
|
221
221
|
const labelColorClass = computed(() => {
|
|
222
222
|
return {
|
|
223
223
|
default: `
|
|
224
|
-
|
|
225
|
-
[*:has(+:
|
|
226
|
-
[*:has(+:
|
|
224
|
+
text-gray-500
|
|
225
|
+
[*:has(+:is(input,textarea):where(:enabled:hover))]:text-gray-700
|
|
226
|
+
[*:has(+:is(input,textarea):where(:focus))]:text-blue-default
|
|
227
227
|
`,
|
|
228
228
|
info: `
|
|
229
|
-
|
|
230
|
-
[*:has(+:
|
|
231
|
-
[*:has(+:
|
|
229
|
+
text-gray-500
|
|
230
|
+
[*:has(+:is(input,textarea):where(:enabled:hover))]:text-gray-700
|
|
231
|
+
[*:has(+:is(input,textarea):where(:focus))]:text-gray-700
|
|
232
232
|
`,
|
|
233
233
|
readonly: `
|
|
234
|
-
|
|
235
|
-
[*:has(+:
|
|
234
|
+
text-gray-500
|
|
235
|
+
[*:has(+:is(input,textarea):where(:enabled:hover))]:text-gray-700
|
|
236
|
+
[*:has(+:is(input,textarea):where(:focus))]:text-gray-700
|
|
236
237
|
`,
|
|
237
238
|
warning: `
|
|
238
|
-
|
|
239
|
-
[*:has(+:
|
|
240
|
-
[*:has(+:
|
|
239
|
+
text-orange-default
|
|
240
|
+
[*:has(+:is(input,textarea):where(:enabled:hover))]:text-orange-dark
|
|
241
|
+
[*:has(+:is(input,textarea):where(:focus))]:text-orange-dark
|
|
241
242
|
`,
|
|
242
243
|
error: `
|
|
243
|
-
|
|
244
|
-
[*:has(+:
|
|
245
|
-
[*:has(+:
|
|
244
|
+
text-alert-red-default
|
|
245
|
+
[*:has(+:is(input,textarea):where(:enabled:hover))]:text-alert-red-dark
|
|
246
|
+
[*:has(+:is(input,textarea):where(:focus))]:text-alert-red-dark
|
|
246
247
|
`,
|
|
247
248
|
}[status.value];
|
|
248
249
|
});
|
|
@@ -271,43 +272,32 @@ const componentClass = computed(() => {
|
|
|
271
272
|
rounded-b-sm
|
|
272
273
|
border
|
|
273
274
|
border-gray-300
|
|
274
|
-
p-4
|
|
275
|
-
text-gray-900
|
|
276
275
|
focus:border-2
|
|
277
|
-
focus:border-blue-default
|
|
278
276
|
focus:p-inputFocused
|
|
279
277
|
enabled:hover:border-gray-700
|
|
278
|
+
enabled:focus:border-blue-default
|
|
280
279
|
`,
|
|
281
280
|
readonly: `
|
|
282
281
|
rounded-b-sm
|
|
283
282
|
border
|
|
284
283
|
border-gray-300
|
|
285
|
-
p-4
|
|
286
|
-
text-gray-800
|
|
287
|
-
text-gray-900
|
|
288
284
|
`,
|
|
289
285
|
error: `
|
|
290
286
|
border-2
|
|
291
287
|
border-alert-red-default
|
|
292
|
-
|
|
293
|
-
text-gray-900
|
|
294
|
-
focus:border-alert-red-dark
|
|
288
|
+
enabled:focus:border-alert-red-dark
|
|
295
289
|
enabled:hover:border-alert-red-dark
|
|
296
290
|
`,
|
|
297
291
|
warning: `
|
|
298
292
|
border-2
|
|
299
293
|
border-orange-default
|
|
300
|
-
|
|
301
|
-
text-gray-900
|
|
302
|
-
focus:border-orange-dark
|
|
294
|
+
enabled:focus:border-orange-dark
|
|
303
295
|
enabled:hover:border-orange-dark
|
|
304
296
|
`,
|
|
305
297
|
info: `
|
|
306
298
|
border
|
|
307
299
|
border-gray-300
|
|
308
|
-
|
|
309
|
-
text-gray-900
|
|
310
|
-
focus:border-gray-700
|
|
300
|
+
enabled:focus:border-gray-700
|
|
311
301
|
enabled:hover:border-gray-700
|
|
312
302
|
`,
|
|
313
303
|
}[status.value];
|
|
@@ -5,7 +5,21 @@
|
|
|
5
5
|
:for="id"
|
|
6
6
|
:class="
|
|
7
7
|
cn(
|
|
8
|
-
|
|
8
|
+
`
|
|
9
|
+
absolute
|
|
10
|
+
left-3
|
|
11
|
+
z-1
|
|
12
|
+
origin-left
|
|
13
|
+
px-1
|
|
14
|
+
text-gray-500
|
|
15
|
+
transition-all
|
|
16
|
+
duration-150
|
|
17
|
+
[*:has(+select:where(:enabled:hover))]:text-gray-700
|
|
18
|
+
[*:has(+select:where(:focus))]:text-blue-default
|
|
19
|
+
[*:has(+select:where([aria-invalid=true]))]:text-alert-red-default
|
|
20
|
+
[*:has(+select:where([aria-invalid=true]:enabled:hover))]:text-alert-red-dark
|
|
21
|
+
[*:has(+select:where([aria-invalid=true]:focus))]:text-alert-red-dark
|
|
22
|
+
`,
|
|
9
23
|
model ? '-translate-y-1/2 bg-white text-xs' : 'translate-y-4',
|
|
10
24
|
)
|
|
11
25
|
"
|
|
@@ -18,7 +32,38 @@
|
|
|
18
32
|
v-model="model"
|
|
19
33
|
:aria-invalid="Boolean($slots.errors)"
|
|
20
34
|
:aria-errormessage="$slots.errors ? `${id}-errors` : undefined"
|
|
21
|
-
class="
|
|
35
|
+
:class="
|
|
36
|
+
cn(`
|
|
37
|
+
peer
|
|
38
|
+
h-14
|
|
39
|
+
w-full
|
|
40
|
+
appearance-none
|
|
41
|
+
rounded-t-sm
|
|
42
|
+
border
|
|
43
|
+
border-gray-300
|
|
44
|
+
p-4
|
|
45
|
+
pr-2
|
|
46
|
+
text-left
|
|
47
|
+
text-sm
|
|
48
|
+
text-gray-900
|
|
49
|
+
transition-all
|
|
50
|
+
duration-150
|
|
51
|
+
outline-none
|
|
52
|
+
disabled:text-color-gray-400
|
|
53
|
+
disabled:border-gray-500
|
|
54
|
+
disabled:opacity-70
|
|
55
|
+
not-aria-invalid:rounded-b-sm
|
|
56
|
+
placeholder:text-gray-500
|
|
57
|
+
focus:border-2
|
|
58
|
+
focus:border-blue-default
|
|
59
|
+
focus:p-inputFocused
|
|
60
|
+
enabled:not-focus:hover:border-gray-700
|
|
61
|
+
aria-invalid:border-2
|
|
62
|
+
aria-invalid:border-alert-red-default
|
|
63
|
+
aria-invalid:focus:border-alert-red-dark
|
|
64
|
+
enabled:aria-invalid:hover:border-alert-red-dark
|
|
65
|
+
`)
|
|
66
|
+
"
|
|
22
67
|
v-bind="{ ...$attrs, class: null }"
|
|
23
68
|
>
|
|
24
69
|
<slot name="options" />
|
|
@@ -32,7 +77,24 @@
|
|
|
32
77
|
<div
|
|
33
78
|
v-if="$slots.errors"
|
|
34
79
|
:id="`${id}-errors`"
|
|
35
|
-
class="
|
|
80
|
+
:class="
|
|
81
|
+
cn(`
|
|
82
|
+
rounded-b-sm
|
|
83
|
+
bg-alert-red-default
|
|
84
|
+
px-4
|
|
85
|
+
py-1
|
|
86
|
+
text-xs
|
|
87
|
+
leading-normal
|
|
88
|
+
font-medium
|
|
89
|
+
text-white
|
|
90
|
+
transition-all
|
|
91
|
+
duration-150
|
|
92
|
+
ease-in-out
|
|
93
|
+
peer-focus:bg-alert-red-dark
|
|
94
|
+
peer-enabled:peer-hover:bg-alert-red-dark
|
|
95
|
+
peer-disabled:opacity-70
|
|
96
|
+
`)
|
|
97
|
+
"
|
|
36
98
|
>
|
|
37
99
|
<slot name="errors" />
|
|
38
100
|
</div>
|
|
@@ -74,3 +136,36 @@ const { id = `id-${uuidv4()}` } = defineProps<{
|
|
|
74
136
|
|
|
75
137
|
const model = defineModel<string>();
|
|
76
138
|
</script>
|
|
139
|
+
|
|
140
|
+
<style scoped>
|
|
141
|
+
@reference "../../tailwindPreset.css";
|
|
142
|
+
|
|
143
|
+
select,
|
|
144
|
+
::picker(select) {
|
|
145
|
+
appearance: base-select;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
::picker(select) {
|
|
149
|
+
@apply shadow-md border border-gray-100;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
select::picker-icon {
|
|
153
|
+
@apply hidden;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
select > :deep(option) {
|
|
157
|
+
@apply flex justify-between items-center px-4 py-3;
|
|
158
|
+
|
|
159
|
+
&:enabled:hover {
|
|
160
|
+
@apply bg-gray-200;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&::checkmark {
|
|
164
|
+
@apply order-1 text-lg;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
& + option {
|
|
168
|
+
@apply border-t border-gray-100;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
</style>
|
package/dist/src/utils/cn.ts
CHANGED