@mhmo91/schmancy 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{animated-text-DBk95qoX.cjs → animated-text-5NJFGbRC.cjs} +2 -2
- package/dist/{animated-text-DBk95qoX.cjs.map → animated-text-5NJFGbRC.cjs.map} +1 -1
- package/dist/{animated-text-BhACpxZL.js → animated-text-C63wwL5H.js} +3 -3
- package/dist/{animated-text-BhACpxZL.js.map → animated-text-C63wwL5H.js.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.component-B78lu4GT.cjs +8 -0
- package/dist/{area.component-CbT_WCUv.cjs.map → area.component-B78lu4GT.cjs.map} +1 -1
- package/dist/{area.component-DX2Y6cAp.js → area.component-mDv3w12S.js} +85 -90
- package/dist/{area.component-DX2Y6cAp.js.map → area.component-mDv3w12S.js.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/autocomplete-BLtChct9.js +315 -0
- package/dist/{autocomplete-Qr_SNWus.js.map → autocomplete-BLtChct9.js.map} +1 -1
- package/dist/autocomplete-JjaB0OPh.cjs +73 -0
- package/dist/{autocomplete-ByVC8MLH.cjs.map → autocomplete-JjaB0OPh.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar-BuCRVCII.cjs +211 -0
- package/dist/avatar-BuCRVCII.cjs.map +1 -0
- package/dist/{avatar-BFxYkrCv.js → avatar-WaHuf8DW.js} +205 -322
- package/dist/avatar-WaHuf8DW.js.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-ZKuOCC1g.js → boat-BTnwHy3K.js} +2 -2
- package/dist/{boat-ZKuOCC1g.js.map → boat-BTnwHy3K.js.map} +1 -1
- package/dist/{boat-RaIwtGNW.cjs → boat-RjFQ6YHH.cjs} +2 -2
- package/dist/{boat-RaIwtGNW.cjs.map → boat-RjFQ6YHH.cjs.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +7 -1
- package/dist/{checkbox-BZvRSKLj.cjs → checkbox-BdCbMFh6.cjs} +4 -4
- package/dist/{checkbox-BZvRSKLj.cjs.map → checkbox-BdCbMFh6.cjs.map} +1 -1
- package/dist/{checkbox-Cy3X3PGY.js → checkbox-C6B9Iii2.js} +34 -35
- package/dist/{checkbox-Cy3X3PGY.js.map → checkbox-C6B9Iii2.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-Y1qvw2Wa.js → chips-CLKkNCVv.js} +59 -61
- package/dist/{chips-Y1qvw2Wa.js.map → chips-CLKkNCVv.js.map} +1 -1
- package/dist/{chips-5IKm7m8x.cjs → chips-eAdPw08P.cjs} +25 -25
- package/dist/{chips-5IKm7m8x.cjs.map → chips-eAdPw08P.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-utG8iIPV.js → circular-progress-C246y_3U.js} +3 -3
- package/dist/{circular-progress-utG8iIPV.js.map → circular-progress-C246y_3U.js.map} +1 -1
- package/dist/{circular-progress-BZwI11v0.cjs → circular-progress-E9riM09J.cjs} +2 -2
- package/dist/{circular-progress-BZwI11v0.cjs.map → circular-progress-E9riM09J.cjs.map} +1 -1
- package/dist/circular-progress.cjs +1 -1
- package/dist/circular-progress.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-CN4mbrHE.cjs → code-preview-Cw3eINAz.cjs} +9 -9
- package/dist/{code-preview-CN4mbrHE.cjs.map → code-preview-Cw3eINAz.cjs.map} +1 -1
- package/dist/{code-preview-C_W44LD7.js → code-preview-CxDOJhpM.js} +166 -168
- package/dist/{code-preview-C_W44LD7.js.map → code-preview-CxDOJhpM.js.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{consume-B05Dd6qy.js → consume-5D1qfVWM.js} +2 -2
- package/dist/{consume-B05Dd6qy.js.map → consume-5D1qfVWM.js.map} +1 -1
- package/dist/{consume-uKrSupzs.cjs → consume-edta5ng5.cjs} +2 -2
- package/dist/{consume-uKrSupzs.cjs.map → consume-edta5ng5.cjs.map} +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{context-object-CISes2bD.js → context-object-CDDP4bTk.js} +6 -8
- package/dist/{context-object-CISes2bD.js.map → context-object-CDDP4bTk.js.map} +1 -1
- package/dist/context-object-K_1gDFu-.cjs +2 -0
- package/dist/{context-object-CP7HbDFQ.cjs.map → context-object-K_1gDFu-.cjs.map} +1 -1
- package/dist/date-range-CYMv_xG-.cjs +121 -0
- package/dist/date-range-CYMv_xG-.cjs.map +1 -0
- package/dist/date-range-DStUXYx-.js +596 -0
- package/dist/date-range-DStUXYx-.js.map +1 -0
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-Cd-N6nxZ.js → delay-1MUDagyy.js} +57 -70
- package/dist/{delay-Cd-N6nxZ.js.map → delay-1MUDagyy.js.map} +1 -1
- package/dist/delay-DkQ3ZZuE.cjs +10 -0
- package/dist/{delay-CLGKeX0n.cjs.map → delay-DkQ3ZZuE.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-C835zQHB.js → dialog-content-CXBx9Bmp.js} +9 -11
- package/dist/{dialog-content-C835zQHB.js.map → dialog-content-CXBx9Bmp.js.map} +1 -1
- package/dist/{dialog-content-DWITDRHy.cjs → dialog-content-CjgsxN8I.cjs} +4 -4
- package/dist/{dialog-content-DWITDRHy.cjs.map → dialog-content-CjgsxN8I.cjs.map} +1 -1
- package/dist/dialog-service-BgqAlT7T.cjs +2 -0
- package/dist/{dialog-service-Di9NiBao.cjs.map → dialog-service-BgqAlT7T.cjs.map} +1 -1
- package/dist/dialog-service-CnjZCTMj.js +127 -0
- package/dist/{dialog-service-noGCuxg1.js.map → dialog-service-CnjZCTMj.js.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +2 -2
- package/dist/{divider-D7pxxtTI.js → divider-GhXZhIur.js} +3 -3
- package/dist/{divider-D7pxxtTI.js.map → divider-GhXZhIur.js.map} +1 -1
- package/dist/{divider-C7UzzgIj.cjs → divider-OSlBVpO-.cjs} +2 -2
- package/dist/{divider-C7UzzgIj.cjs.map → divider-OSlBVpO-.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-DJFDnoKm.js → dropdown-content-BcGSsDWz.js} +16 -20
- package/dist/{dropdown-content-DJFDnoKm.js.map → dropdown-content-BcGSsDWz.js.map} +1 -1
- package/dist/{dropdown-content-RMyyjS7G.cjs → dropdown-content-Cd1O_kVO.cjs} +4 -4
- package/dist/{dropdown-content-RMyyjS7G.cjs.map → dropdown-content-Cd1O_kVO.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-Bu7OqH-d.js → flex-BftnODFE.js} +63 -64
- package/dist/{flex-Bu7OqH-d.js.map → flex-BftnODFE.js.map} +1 -1
- package/dist/{flex-Cg_UtAIG.cjs → flex-DyHrvDQU.cjs} +10 -10
- package/dist/{flex-Cg_UtAIG.cjs.map → flex-DyHrvDQU.cjs.map} +1 -1
- package/dist/flow-D0e7hGXO.cjs +2 -0
- package/dist/{flow-CnJl1T1A.cjs.map → flow-D0e7hGXO.cjs.map} +1 -1
- package/dist/{flow-B1wMqea2.js → flow-DXYqC9OA.js} +50 -52
- package/dist/{flow-B1wMqea2.js.map → flow-DXYqC9OA.js.map} +1 -1
- package/dist/{form-WeCrsPmp.js → form-2QZDF5pF.js} +19 -28
- package/dist/{form-WeCrsPmp.js.map → form-2QZDF5pF.js.map} +1 -1
- package/dist/form-B0stbhfQ.cjs +14 -0
- package/dist/{form-DzfdidJO.cjs.map → form-B0stbhfQ.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-Be8aUtz9.js → icon-DWdq9YQM.js} +8 -9
- package/dist/{icon-Be8aUtz9.js.map → icon-DWdq9YQM.js.map} +1 -1
- package/dist/{icon-4c4f-QXa.cjs → icon-JitLog9X.cjs} +4 -4
- package/dist/{icon-4c4f-QXa.cjs.map → icon-JitLog9X.cjs.map} +1 -1
- package/dist/{icon-button-Mfs7C_ol.js → icon-button-BMkYjAl1.js} +40 -41
- package/dist/{icon-button-Mfs7C_ol.js.map → icon-button-BMkYjAl1.js.map} +1 -1
- package/dist/icon-button-em1NSoxk.cjs +69 -0
- package/dist/{icon-button-DNvGlOPI.cjs.map → icon-button-em1NSoxk.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +167 -162
- package/dist/index.js.map +1 -1
- package/dist/{input-CpYu_aUV.js → input-6XNB7MZP.js} +86 -113
- package/dist/{input-CpYu_aUV.js.map → input-6XNB7MZP.js.map} +1 -1
- package/dist/input-BlpSg5js.cjs +111 -0
- package/dist/{input-CD59n3y-.cjs.map → input-BlpSg5js.cjs.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-DNZhjJ-s.js → list-BxLFi3dU.js} +20 -21
- package/dist/{list-DNZhjJ-s.js.map → list-BxLFi3dU.js.map} +1 -1
- package/dist/{list-kvjz9d5N.cjs → list-CmbK_JyT.cjs} +4 -4
- package/dist/{list-kvjz9d5N.cjs.map → list-CmbK_JyT.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-DMTxmbnz.js → litElement.mixin-BC40ZfGG.js} +2 -2
- package/dist/{litElement.mixin-DMTxmbnz.js.map → litElement.mixin-BC40ZfGG.js.map} +1 -1
- package/dist/{litElement.mixin-CrXwM_fu.cjs → litElement.mixin-BDMVhBpu.cjs} +2 -2
- package/dist/{litElement.mixin-CrXwM_fu.cjs.map → litElement.mixin-BDMVhBpu.cjs.map} +1 -1
- package/dist/media-DR_teeoc.js +185 -0
- package/dist/media-DR_teeoc.js.map +1 -0
- package/dist/media-DSVZ83aB.cjs +128 -0
- package/dist/media-DSVZ83aB.cjs.map +1 -0
- package/dist/{menu-CzoGF0Jg.js → menu-CwKx1goz.js} +3 -3
- package/dist/{menu-CzoGF0Jg.js.map → menu-CwKx1goz.js.map} +1 -1
- package/dist/{menu-DSJGu_Le.cjs → menu-DRwYeROH.cjs} +2 -2
- package/dist/{menu-DSJGu_Le.cjs.map → menu-DRwYeROH.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/{notification-service-dKoZweFH.cjs → notification-service-C6Bv3f71.cjs} +6 -6
- package/dist/{notification-service-dKoZweFH.cjs.map → notification-service-C6Bv3f71.cjs.map} +1 -1
- package/dist/{notification-service-BUZQ2nOZ.js → notification-service-ufUrNaq3.js} +4 -4
- package/dist/{notification-service-BUZQ2nOZ.js.map → notification-service-ufUrNaq3.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-dBiLTB_w.js → option-CayvURH3.js} +3 -4
- package/dist/{option-dBiLTB_w.js.map → option-CayvURH3.js.map} +1 -1
- package/dist/{option-BXU6HGLZ.cjs → option-Dt7pNR-a.cjs} +3 -3
- package/dist/{option-BXU6HGLZ.cjs.map → option-Dt7pNR-a.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-Bhy7PHzr.js → payment-card-form-DPf41TU3.js} +3 -3
- package/dist/{payment-card-form-Bhy7PHzr.js.map → payment-card-form-DPf41TU3.js.map} +1 -1
- package/dist/{payment-card-form-HSho3d5z.cjs → payment-card-form-xKlOCP9C.cjs} +2 -2
- package/dist/{payment-card-form-HSho3d5z.cjs.map → payment-card-form-xKlOCP9C.cjs.map} +1 -1
- package/dist/provide-BxZ2kn_p.cjs +2 -0
- package/dist/{provide-BGGp1Iks.cjs.map → provide-BxZ2kn_p.cjs.map} +1 -1
- package/dist/{provide-hwQSumt-.js → provide-tcktw8xB.js} +41 -42
- package/dist/{provide-hwQSumt-.js.map → provide-tcktw8xB.js.map} +1 -1
- package/dist/radio-button-BWJLsF3d.cjs +41 -0
- package/dist/{radio-button-dwmtJ2ef.cjs.map → radio-button-BWJLsF3d.cjs.map} +1 -1
- package/dist/radio-button-DouFDjcL.js +151 -0
- package/dist/{radio-button-DDbyvXw1.js.map → radio-button-DouFDjcL.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{redispatch-event-CF5ekzwZ.js → redispatch-event-BLom7yp4.js} +65 -68
- package/dist/{redispatch-event-CF5ekzwZ.js.map → redispatch-event-BLom7yp4.js.map} +1 -1
- package/dist/redispatch-event-DHcobAl6.cjs +4 -0
- package/dist/{redispatch-event-roczetCU.cjs.map → redispatch-event-DHcobAl6.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-COL9P7PV.cjs → schmancy-steps-container-3-Bd627o.cjs} +3 -3
- package/dist/{schmancy-steps-container-COL9P7PV.cjs.map → schmancy-steps-container-3-Bd627o.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-BrfKRYkI.js → schmancy-steps-container-CWBj3izf.js} +5 -6
- package/dist/{schmancy-steps-container-BrfKRYkI.js.map → schmancy-steps-container-CWBj3izf.js.map} +1 -1
- package/dist/{select-C6O6NRea.js → select-BjZUTKHm.js} +46 -56
- package/dist/{select-C6O6NRea.js.map → select-BjZUTKHm.js.map} +1 -1
- package/dist/select-Bv_TZZ-v.cjs +56 -0
- package/dist/{select-PrgXr6zf.cjs.map → select-Bv_TZZ-v.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{selector-hook-B6uqLA-J.js → selector-hook-BvXML7_4.js} +61 -64
- package/dist/{selector-hook-B6uqLA-J.js.map → selector-hook-BvXML7_4.js.map} +1 -1
- package/dist/selector-hook-CYMLsOvh.cjs +2 -0
- package/dist/{selector-hook-CyvD9WN9.cjs.map → selector-hook-CYMLsOvh.cjs.map} +1 -1
- package/dist/sheet-D8SmGguy.js +141 -0
- package/dist/{sheet-lcz-71nv.js.map → sheet-D8SmGguy.js.map} +1 -1
- package/dist/sheet-tx2jWxVd.cjs +47 -0
- package/dist/{sheet-CNvW8vrn.cjs.map → sheet-tx2jWxVd.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/{slider-BNXI3Yj7.cjs → slider-Bo-4a-Ss.cjs} +8 -8
- package/dist/{slider-BNXI3Yj7.cjs.map → slider-Bo-4a-Ss.cjs.map} +1 -1
- package/dist/{slider-i-AZp4UF.js → slider-ytiEVvLJ.js} +36 -40
- package/dist/{slider-i-AZp4UF.js.map → slider-ytiEVvLJ.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-Df6JHzWX.js → spinner-BuH3Wf-1.js} +3 -3
- package/dist/{spinner-Df6JHzWX.js.map → spinner-BuH3Wf-1.js.map} +1 -1
- package/dist/{spinner-DItpvohq.cjs → spinner-RIkASBZt.cjs} +2 -2
- package/dist/{spinner-DItpvohq.cjs.map → spinner-RIkASBZt.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.js +2 -2
- package/dist/{surface-BaatMeqX.js → surface-Bkj3lZLo.js} +3 -3
- package/dist/{surface-BaatMeqX.js.map → surface-Bkj3lZLo.js.map} +1 -1
- package/dist/{surface-DiP3y6CA.cjs → surface-D-2akvnF.cjs} +2 -2
- package/dist/{surface-DiP3y6CA.cjs.map → surface-D-2akvnF.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-BY56H-_F.js → table-BNUCQw-a.js} +58 -68
- package/dist/{table-BY56H-_F.js.map → table-BNUCQw-a.js.map} +1 -1
- package/dist/table-BpeeUiM1.cjs +65 -0
- package/dist/{table-BRQDbCA8.cjs.map → table-BpeeUiM1.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-pq--kZ3e.cjs → tabs-compatibility-CIQWnzk8.cjs} +5 -5
- package/dist/{tabs-compatibility-pq--kZ3e.cjs.map → tabs-compatibility-CIQWnzk8.cjs.map} +1 -1
- package/dist/{tabs-compatibility-qFYA1HDl.js → tabs-compatibility-c-iBrBOK.js} +20 -21
- package/dist/{tabs-compatibility-qFYA1HDl.js.map → tabs-compatibility-c-iBrBOK.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Ba46CZMW.js +43 -0
- package/dist/{tailwind.mixin-DbsxfE0U.js.map → tailwind.mixin-Ba46CZMW.js.map} +1 -1
- package/dist/tailwind.mixin-DJWjTKPc.cjs +2 -0
- package/dist/{tailwind.mixin-CPvz1Npj.cjs.map → tailwind.mixin-DJWjTKPc.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-DPD_F-N6.cjs → textarea-DL-qgeME.cjs} +12 -12
- package/dist/{textarea-DPD_F-N6.cjs.map → textarea-DL-qgeME.cjs.map} +1 -1
- package/dist/{textarea-D2m3usht.js → textarea-jbhUeEzu.js} +31 -45
- package/dist/{textarea-D2m3usht.js.map → textarea-jbhUeEzu.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-0dEQlWtO.cjs → theme-button-BcRuHUSa.cjs} +2 -2
- package/dist/{theme-button-0dEQlWtO.cjs.map → theme-button-BcRuHUSa.cjs.map} +1 -1
- package/dist/{theme-button-ucq2VrW0.js → theme-button-CBJXLV0Z.js} +2 -2
- package/dist/{theme-button-ucq2VrW0.js.map → theme-button-CBJXLV0Z.js.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-DOSuAou9.js → theme.component-DC3WGfcn.js} +24 -25
- package/dist/{theme.component-DOSuAou9.js.map → theme.component-DC3WGfcn.js.map} +1 -1
- package/dist/{theme.component-E4gA7t5r.cjs → theme.component-DFALHVCM.cjs} +2 -2
- package/dist/{theme.component-E4gA7t5r.cjs.map → theme.component-DFALHVCM.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-xOWMbSDV.js → timezone-CDz5qI2Z.js} +22 -28
- package/dist/{timezone-xOWMbSDV.js.map → timezone-CDz5qI2Z.js.map} +1 -1
- package/dist/{timezone-Bf4J_3By.cjs → timezone-IrGPq2tl.cjs} +6 -6
- package/dist/{timezone-Bf4J_3By.cjs.map → timezone-IrGPq2tl.cjs.map} +1 -1
- package/dist/{tooltip-zsp-xmPP.js → tooltip-BaX2Qoi8.js} +29 -31
- package/dist/{tooltip-zsp-xmPP.js.map → tooltip-BaX2Qoi8.js.map} +1 -1
- package/dist/tooltip-VUFi4Gjt.cjs +7 -0
- package/dist/{tooltip-6a1_bSeD.cjs.map → tooltip-VUFi4Gjt.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-DRa2127p.cjs → tree-Bz6GjWwf.cjs} +2 -2
- package/dist/{tree-DRa2127p.cjs.map → tree-Bz6GjWwf.cjs.map} +1 -1
- package/dist/{tree-D0FCXUWg.js → tree-DGUU6cQI.js} +2 -2
- package/dist/{tree-D0FCXUWg.js.map → tree-DGUU6cQI.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/typewriter-9XKXLbKA.cjs +21 -0
- package/dist/{typewriter-XTltzkLy.cjs.map → typewriter-9XKXLbKA.cjs.map} +1 -1
- package/dist/typewriter-BdQEQLOW.js +437 -0
- package/dist/{typewriter-BNTzu9jY.js.map → typewriter-BdQEQLOW.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-DCP0jC-m.js → typography-B1KbZvto.js} +2 -2
- package/dist/{typography-DCP0jC-m.js.map → typography-B1KbZvto.js.map} +1 -1
- package/dist/{typography-nVG55_Y6.cjs → typography-RGPsRMJw.cjs} +2 -2
- package/dist/{typography-nVG55_Y6.cjs.map → typography-RGPsRMJw.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +14 -17
- package/dist/area.component-CbT_WCUv.cjs +0 -8
- package/dist/autocomplete-ByVC8MLH.cjs +0 -73
- package/dist/autocomplete-Qr_SNWus.js +0 -324
- package/dist/avatar-BFxYkrCv.js.map +0 -1
- package/dist/avatar-Bqohpa1o.cjs +0 -281
- package/dist/avatar-Bqohpa1o.cjs.map +0 -1
- package/dist/context-object-CP7HbDFQ.cjs +0 -2
- package/dist/date-range-CIn-HKuL.js +0 -637
- package/dist/date-range-CIn-HKuL.js.map +0 -1
- package/dist/date-range-Dff7Y8Ph.cjs +0 -139
- package/dist/date-range-Dff7Y8Ph.cjs.map +0 -1
- package/dist/delay-CLGKeX0n.cjs +0 -10
- package/dist/dialog-service-Di9NiBao.cjs +0 -2
- package/dist/dialog-service-noGCuxg1.js +0 -127
- package/dist/flow-CnJl1T1A.cjs +0 -2
- package/dist/form-DzfdidJO.cjs +0 -14
- package/dist/icon-button-DNvGlOPI.cjs +0 -69
- package/dist/input-CD59n3y-.cjs +0 -111
- package/dist/provide-BGGp1Iks.cjs +0 -2
- package/dist/radio-button-DDbyvXw1.js +0 -157
- package/dist/radio-button-dwmtJ2ef.cjs +0 -41
- package/dist/redispatch-event-roczetCU.cjs +0 -4
- package/dist/select-PrgXr6zf.cjs +0 -56
- package/dist/selector-hook-CyvD9WN9.cjs +0 -2
- package/dist/sheet-CNvW8vrn.cjs +0 -47
- package/dist/sheet-lcz-71nv.js +0 -146
- package/dist/table-BRQDbCA8.cjs +0 -65
- package/dist/tailwind.mixin-CPvz1Npj.cjs +0 -2
- package/dist/tailwind.mixin-DbsxfE0U.js +0 -43
- package/dist/tooltip-6a1_bSeD.cjs +0 -7
- package/dist/typewriter-BNTzu9jY.js +0 -436
- package/dist/typewriter-XTltzkLy.cjs +0 -21
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { nothing as E, html as f, LitElement as k } from "lit";
|
|
2
2
|
import { property as i, query as R, state as v, customElement as V } from "lit/decorators.js";
|
|
3
|
-
import { ifDefined as
|
|
3
|
+
import { ifDefined as u } from "lit/directives/if-defined.js";
|
|
4
4
|
import { createRef as S, ref as C } from "lit/directives/ref.js";
|
|
5
5
|
import { when as $ } from "lit/directives/when.js";
|
|
6
|
-
import { fromEvent as
|
|
6
|
+
import { fromEvent as c, map as x, takeUntil as d, distinctUntilChanged as w, filter as g } from "rxjs";
|
|
7
7
|
import "lit/directives/class-map.js";
|
|
8
8
|
import "lit/directives/style-map.js";
|
|
9
|
-
import { T as z } from "./tailwind.mixin-
|
|
9
|
+
import { T as z } from "./tailwind.mixin-Ba46CZMW.js";
|
|
10
10
|
import { c as b } from "./ripple-BumgqsDT.js";
|
|
11
|
-
import { S as
|
|
11
|
+
import { S as p } from "./theme.interface-C5Kj6WjD.js";
|
|
12
12
|
const I = ":host{border:unset!important;line-height:unset!important;background:unset!important;padding:unset!important;font-size:unset!important;box-shadow:unset!important;width:-webkit-fill-available}:host:focus{box-shadow:unset!important}input:focus-visible{outline:none!important}input{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:inherit;text-indent:inherit;text-shadow:inherit;text-overflow:inherit;text-rendering:inherit;text-size-adjust:inherit;text-align-last:inherit}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}@keyframes onAutoFillStart{}input:-webkit-autofill{animation-name:onAutoFillStart}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px var(--schmancy-sys-color-surface-highest) inset!important;-webkit-text-fill-color:var(--schmancy-sys-color-surface-on)!important;transition:background-color 5000s ease-in-out 0s}@-moz-document url-prefix(){input:-moz-autofill,input:-moz-autofill:focus{background-color:var(--schmancy-sys-color-surface-highest)!important;color:var(--schmancy-sys-color-surface-on)!important}}input:autofill,input:autofill:hover,input:autofill:focus,input:autofill:active{background-color:var(--schmancy-sys-color-surface-highest)!important;color:var(--schmancy-sys-color-surface-on)!important}";
|
|
13
|
-
var O = Object.defineProperty, A = Object.getOwnPropertyDescriptor, a = (t, e,
|
|
14
|
-
for (var
|
|
15
|
-
return
|
|
13
|
+
var O = Object.defineProperty, A = Object.getOwnPropertyDescriptor, a = (t, e, n, h) => {
|
|
14
|
+
for (var m, l = h > 1 ? void 0 : h ? A(e, n) : e, y = t.length - 1; y >= 0; y--) (m = t[y]) && (l = (h ? m(e, n, l) : m(l)) || l);
|
|
15
|
+
return h && l && O(e, n, l), l;
|
|
16
16
|
};
|
|
17
17
|
let s = class extends z(I) {
|
|
18
18
|
constructor() {
|
|
@@ -26,20 +26,17 @@ let s = class extends z(I) {
|
|
|
26
26
|
this.id || (this.id = "sch-input-" + s._idCounter++), super.willUpdate(t);
|
|
27
27
|
}
|
|
28
28
|
get form() {
|
|
29
|
-
|
|
30
|
-
return ((t = this.internals) == null ? void 0 : t.form) ?? null;
|
|
29
|
+
return this.internals?.form ?? null;
|
|
31
30
|
}
|
|
32
31
|
updated(t) {
|
|
33
|
-
|
|
34
|
-
super.updated(t), t.has("value") && (this.value !== this.defaultValue && (this.dirty = !0), (e = this.internals) == null || e.setFormValue(this.value), this.validateInput()), t.has("error") && this.updateValidityState(), !this.hasUpdated && t.has("value") && (this.defaultValue = this.value);
|
|
32
|
+
super.updated(t), t.has("value") && (this.value !== this.defaultValue && (this.dirty = !0), this.internals?.setFormValue(this.value), this.validateInput()), t.has("error") && this.updateValidityState(), !this.hasUpdated && t.has("value") && (this.defaultValue = this.value);
|
|
35
33
|
}
|
|
36
34
|
connectedCallback() {
|
|
37
35
|
super.connectedCallback(), this.defaultValue = this.value, this.setupFormIntegration(), this.setupExternalLabelAssociation();
|
|
38
36
|
}
|
|
39
37
|
setupFormIntegration() {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
for (const r of e) r.type === "attributes" && r.attributeName === "reset" && this.resetToDefault();
|
|
38
|
+
this.internals?.form && (this.formResetObserver = new MutationObserver((t) => {
|
|
39
|
+
for (const e of t) e.type === "attributes" && e.attributeName === "reset" && this.resetToDefault();
|
|
43
40
|
}), this.formResetObserver.observe(this.internals.form, { attributes: !0, childList: !1, subtree: !1 }), this.internals.form.addEventListener("reset", () => {
|
|
44
41
|
this.resetToDefault();
|
|
45
42
|
}), this.internals.form.addEventListener("submit", () => {
|
|
@@ -83,24 +80,20 @@ let s = class extends z(I) {
|
|
|
83
80
|
}
|
|
84
81
|
}
|
|
85
82
|
updateValidityState() {
|
|
86
|
-
|
|
87
|
-
this.error ? this.validationMessage ? (t = this.internals) == null || t.setValidity({ customError: !0 }, this.validationMessage, this.inputElement) : (e = this.internals) == null || e.setValidity({ customError: !0 }, "Invalid input", this.inputElement) : (r = this.internals) == null || r.setValidity({});
|
|
83
|
+
this.error ? this.validationMessage ? this.internals?.setValidity({ customError: !0 }, this.validationMessage, this.inputElement) : this.internals?.setValidity({ customError: !0 }, "Invalid input", this.inputElement) : this.internals?.setValidity({});
|
|
88
84
|
}
|
|
89
85
|
validateInput(t = !1) {
|
|
90
|
-
var p, l;
|
|
91
86
|
if (this.disabled) return;
|
|
92
|
-
const e = this.shouldShowValidation(t),
|
|
93
|
-
e &&
|
|
87
|
+
const e = this.shouldShowValidation(t), n = this.inputElement?.validity ?? { customError: !1, valid: !0 }, h = !n.valid && !n.customError;
|
|
88
|
+
e && h ? (this.error = !0, this.validationMessage = this.inputElement?.validationMessage || "") : n.valid ? (this.error = !1, n.customError || (this.validationMessage = "")) : e || (this.error = !1), this.updateValidityState();
|
|
94
89
|
}
|
|
95
90
|
checkValidity() {
|
|
96
|
-
|
|
97
|
-
const t = ((e = this.inputRef.value) == null ? void 0 : e.checkValidity()) ?? !0;
|
|
91
|
+
const t = this.inputRef.value?.checkValidity() ?? !0;
|
|
98
92
|
return this.internals && !t ? (this.internals.checkValidity(), !1) : t;
|
|
99
93
|
}
|
|
100
94
|
reportValidity() {
|
|
101
|
-
var e;
|
|
102
95
|
this.touched = !0, this.submitted = !0;
|
|
103
|
-
const t =
|
|
96
|
+
const t = this.inputRef.value?.reportValidity() ?? !0;
|
|
104
97
|
return this.validateInput(!0), this.internals && !t ? (this.internals.reportValidity(), !1) : t;
|
|
105
98
|
}
|
|
106
99
|
setCustomValidity(t) {
|
|
@@ -112,85 +105,75 @@ let s = class extends z(I) {
|
|
|
112
105
|
}, 0), this.setupInputEvents(), this.setupFocusBlurEvents(), this.setupAutofillDetection(), this.setupEnterKeyEvents();
|
|
113
106
|
}
|
|
114
107
|
setupInputEvents() {
|
|
115
|
-
|
|
108
|
+
c(this.inputElement, "input").pipe(x((t) => {
|
|
116
109
|
const e = t;
|
|
117
110
|
return { value: t.target.value, inputType: e.inputType, data: e.data, isComposing: e.isComposing, originalEvent: t };
|
|
118
|
-
}),
|
|
111
|
+
}), d(this.disconnecting)).subscribe((t) => {
|
|
119
112
|
this.value = t.value, this.dirty = this.value !== this.defaultValue;
|
|
120
113
|
const e = new CustomEvent("input", { detail: { value: t.value }, bubbles: !0, composed: !0 });
|
|
121
114
|
Object.defineProperties(e, { inputType: { value: t.inputType }, data: { value: t.data }, isComposing: { value: t.isComposing } }), this.dispatchEvent(e), this.validateInput();
|
|
122
|
-
}),
|
|
115
|
+
}), c(this.inputElement, "change").pipe(x((t) => t.target.value), w(), d(this.disconnecting)).subscribe((t) => {
|
|
123
116
|
this.value = t, this.dirty = this.value !== this.defaultValue, this.dispatchEvent(new CustomEvent("change", { detail: { value: t }, bubbles: !0, composed: !0 })), this.validateInput();
|
|
124
117
|
});
|
|
125
118
|
}
|
|
126
119
|
setupFocusBlurEvents() {
|
|
127
|
-
|
|
120
|
+
c(this.inputElement, "focus").pipe(d(this.disconnecting)).subscribe((t) => {
|
|
128
121
|
const e = new CustomEvent("focus", { bubbles: t.bubbles, cancelable: t.cancelable, composed: t.composed });
|
|
129
122
|
Object.defineProperties(e, { relatedTarget: { value: t.relatedTarget } }), this.dispatchEvent(e);
|
|
130
|
-
}),
|
|
123
|
+
}), c(this.inputElement, "blur").pipe(d(this.disconnecting)).subscribe((t) => {
|
|
131
124
|
this.touched = !0, this.disabled || this.validateInput();
|
|
132
125
|
const e = new CustomEvent("blur", { bubbles: t.bubbles, cancelable: t.cancelable, composed: t.composed });
|
|
133
126
|
Object.defineProperties(e, { relatedTarget: { value: t.relatedTarget } }), this.dispatchEvent(e);
|
|
134
127
|
});
|
|
135
128
|
}
|
|
136
129
|
setupAutofillDetection() {
|
|
137
|
-
|
|
130
|
+
c(this.inputElement, "animationstart").pipe(g((t) => t.animationName === "onAutoFillStart"), d(this.disconnecting)).subscribe((t) => {
|
|
138
131
|
const { value: e } = t.target;
|
|
139
132
|
this.value = e, this.isAutofilled = !0, this.dirty = this.value !== this.defaultValue, this.dispatchEvent(new CustomEvent("autofill", { detail: { value: e }, bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent("change", { detail: { value: e }, bubbles: !0, composed: !0 }));
|
|
140
|
-
}),
|
|
133
|
+
}), c(this.inputElement, "animationstart").pipe(g((t) => t.animationName === "onAutoFillCancel"), d(this.disconnecting)).subscribe(() => {
|
|
141
134
|
this.isAutofilled = !1;
|
|
142
135
|
});
|
|
143
136
|
}
|
|
144
137
|
setupEnterKeyEvents() {
|
|
145
|
-
|
|
138
|
+
c(this.inputElement, "keyup").pipe(g((t) => t.key === "Enter"), d(this.disconnecting)).subscribe((t) => {
|
|
146
139
|
const { value: e } = t.target;
|
|
147
140
|
this.value = e, this.dirty = this.value !== this.defaultValue;
|
|
148
|
-
const
|
|
149
|
-
Object.defineProperties(
|
|
141
|
+
const n = new CustomEvent("enter", { detail: { value: e }, bubbles: !0, composed: !0 });
|
|
142
|
+
Object.defineProperties(n, { key: { value: "Enter" }, code: { value: "Enter" }, keyCode: { value: 13 }, which: { value: 13 } }), this.dispatchEvent(n);
|
|
150
143
|
});
|
|
151
144
|
}
|
|
152
145
|
select() {
|
|
153
|
-
|
|
154
|
-
return (t = this.inputRef.value) == null ? void 0 : t.select();
|
|
146
|
+
return this.inputRef.value?.select();
|
|
155
147
|
}
|
|
156
148
|
getValidity() {
|
|
157
|
-
|
|
158
|
-
return (t = this.inputRef.value) == null ? void 0 : t.validity;
|
|
149
|
+
return this.inputRef.value?.validity;
|
|
159
150
|
}
|
|
160
|
-
setSelectionRange(t, e,
|
|
161
|
-
|
|
162
|
-
(u = this.inputRef.value) == null || u.setSelectionRange(t, e, r);
|
|
151
|
+
setSelectionRange(t, e, n) {
|
|
152
|
+
this.inputRef.value?.setSelectionRange(t, e, n);
|
|
163
153
|
}
|
|
164
154
|
get selectionStart() {
|
|
165
|
-
|
|
166
|
-
return ((t = this.inputRef.value) == null ? void 0 : t.selectionStart) ?? null;
|
|
155
|
+
return this.inputRef.value?.selectionStart ?? null;
|
|
167
156
|
}
|
|
168
157
|
get selectionEnd() {
|
|
169
|
-
|
|
170
|
-
return ((t = this.inputRef.value) == null ? void 0 : t.selectionEnd) ?? null;
|
|
158
|
+
return this.inputRef.value?.selectionEnd ?? null;
|
|
171
159
|
}
|
|
172
160
|
get selectionDirection() {
|
|
173
|
-
|
|
174
|
-
return ((t = this.inputRef.value) == null ? void 0 : t.selectionDirection) ?? null;
|
|
161
|
+
return this.inputRef.value?.selectionDirection ?? null;
|
|
175
162
|
}
|
|
176
|
-
setRangeText(t, e,
|
|
177
|
-
|
|
178
|
-
e !== void 0 && r !== void 0 ? (p = this.inputRef.value) == null || p.setRangeText(t, e, r, u) : (l = this.inputRef.value) == null || l.setRangeText(t);
|
|
163
|
+
setRangeText(t, e, n, h) {
|
|
164
|
+
e !== void 0 && n !== void 0 ? this.inputRef.value?.setRangeText(t, e, n, h) : this.inputRef.value?.setRangeText(t);
|
|
179
165
|
}
|
|
180
166
|
focus(t) {
|
|
181
|
-
|
|
182
|
-
(e = this.inputRef.value) == null || e.focus(t), this.dispatchEvent(new Event("focus"));
|
|
167
|
+
this.inputRef.value?.focus(t), this.dispatchEvent(new Event("focus"));
|
|
183
168
|
}
|
|
184
169
|
click() {
|
|
185
|
-
|
|
186
|
-
(t = this.inputRef.value) == null || t.click(), this.dispatchEvent(new Event("click"));
|
|
170
|
+
this.inputRef.value?.click(), this.dispatchEvent(new Event("click"));
|
|
187
171
|
}
|
|
188
172
|
blur() {
|
|
189
|
-
|
|
190
|
-
(t = this.inputRef.value) == null || t.blur(), this.dispatchEvent(new Event("blur"));
|
|
173
|
+
this.inputRef.value?.blur(), this.dispatchEvent(new Event("blur"));
|
|
191
174
|
}
|
|
192
175
|
render() {
|
|
193
|
-
const { height: t, padding: e, fontSize:
|
|
176
|
+
const { height: t, padding: e, fontSize: n } = (() => {
|
|
194
177
|
switch (this.size) {
|
|
195
178
|
case "sm":
|
|
196
179
|
return { height: "40px", padding: "0 8px", fontSize: "0.875rem" };
|
|
@@ -199,14 +182,14 @@ let s = class extends z(I) {
|
|
|
199
182
|
default:
|
|
200
183
|
return { height: "50px", padding: "0 16px", fontSize: "1rem" };
|
|
201
184
|
}
|
|
202
|
-
})(),
|
|
185
|
+
})(), h = { "w-full flex-1 rounded-[8px] border-0 bg-surface-highest text-surface-on": !0, "outline-secondary-default focus:outline-1 ": !0, "outline-secondary-default focus:outline-1": !0, "disabled:opacity-40 disabled:cursor-not-allowed": !0, "placeholder:text-muted": !0, "ring-0 ring-inset focus:ring-1 focus:ring-inset": !0, "ring-secondary-default ring-outline focus:ring-secondary-default": !this.error, "ring-error-default focus:ring-error-default": this.error, "caret-transparent focus:outline-hidden cursor-pointer text-select-none": this.readonly, "cursor-pointer": this.clickable, "text-center": this.align === "center", "text-right": this.align === "right", autofilled: this.isAutofilled }, m = { "opacity-40": this.disabled, "block mb-[4px]": !0, "text-sm": this.size === "sm", "text-base": this.size === "md", "text-lg": this.size === "lg" }, l = { height: t, padding: e, fontSize: n };
|
|
203
186
|
return f`
|
|
204
187
|
${$(this.label, () => f`
|
|
205
188
|
<label
|
|
206
189
|
for=${this.id}
|
|
207
190
|
id="label-${this.id}"
|
|
208
|
-
class=${this.classMap(
|
|
209
|
-
${b({ color: this.error ?
|
|
191
|
+
class=${this.classMap(m)}
|
|
192
|
+
${b({ color: this.error ? p.sys.color.error.default : p.sys.color.primary.default })}
|
|
210
193
|
>
|
|
211
194
|
<schmancy-typography type="label" token=${this.size === "sm" ? "sm" : this.size === "lg" ? "lg" : "md"}>
|
|
212
195
|
${this.label}
|
|
@@ -215,25 +198,25 @@ let s = class extends z(I) {
|
|
|
215
198
|
`)}
|
|
216
199
|
|
|
217
200
|
<input
|
|
218
|
-
${b({ bgColor:
|
|
201
|
+
${b({ bgColor: p.sys.color.surface.highest, color: p.sys.color.surface.on })}
|
|
219
202
|
${C(this.inputRef)}
|
|
220
203
|
id=${this.id}
|
|
221
204
|
name=${this.name}
|
|
222
|
-
class=${this.classMap(
|
|
205
|
+
class=${this.classMap(h)}
|
|
223
206
|
style=${this.styleMap(l)}
|
|
224
207
|
.value=${this.value}
|
|
225
208
|
.type=${this.type}
|
|
226
209
|
.autocomplete=${this.autocomplete}
|
|
227
210
|
.spellcheck=${this.spellcheck}
|
|
228
211
|
placeholder=${this.placeholder}
|
|
229
|
-
inputmode=${
|
|
230
|
-
pattern=${
|
|
231
|
-
step=${
|
|
232
|
-
minlength=${
|
|
233
|
-
maxlength=${
|
|
234
|
-
min=${
|
|
235
|
-
max=${
|
|
236
|
-
list=${
|
|
212
|
+
inputmode=${u(this.inputmode)}
|
|
213
|
+
pattern=${u(this.pattern)}
|
|
214
|
+
step=${u(this.step)}
|
|
215
|
+
minlength=${u(this.minlength)}
|
|
216
|
+
maxlength=${u(this.maxlength)}
|
|
217
|
+
min=${u(this.min)}
|
|
218
|
+
max=${u(this.max)}
|
|
219
|
+
list=${u(this.list)}
|
|
237
220
|
?required=${this.required}
|
|
238
221
|
?disabled=${this.disabled}
|
|
239
222
|
?readonly=${this.readonly}
|
|
@@ -241,7 +224,7 @@ let s = class extends z(I) {
|
|
|
241
224
|
aria-required=${this.required ? "true" : "false"}
|
|
242
225
|
aria-labelledby=${this.label ? `label-${this.id}` : E}
|
|
243
226
|
aria-describedby=${this.hint ? `hint-${this.id}` : E}
|
|
244
|
-
aria-label=${
|
|
227
|
+
aria-label=${u(this.label ? void 0 : this.placeholder || "Input")}
|
|
245
228
|
aria-autocomplete=${this.list ? "list" : "none"}
|
|
246
229
|
/>
|
|
247
230
|
|
|
@@ -249,7 +232,7 @@ let s = class extends z(I) {
|
|
|
249
232
|
<div
|
|
250
233
|
id="hint-${this.id}"
|
|
251
234
|
class="${this.size === "sm" ? "pt-[1px] text-xs" : this.size === "lg" ? "pt-[3px] text-base" : "pt-[2px] text-sm"}"
|
|
252
|
-
${b({ color: this.error ?
|
|
235
|
+
${b({ color: this.error ? p.sys.color.error.default : p.sys.color.primary.default })}
|
|
253
236
|
>
|
|
254
237
|
<schmancy-typography
|
|
255
238
|
align="left"
|
|
@@ -264,11 +247,11 @@ let s = class extends z(I) {
|
|
|
264
247
|
}
|
|
265
248
|
};
|
|
266
249
|
s._idCounter = 0, s.formAssociated = !0, s.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, a([i({ reflect: !0 })], s.prototype, "id", 2), a([i({ type: String })], s.prototype, "label", 2), a([i({ reflect: !0 })], s.prototype, "type", 2), a([i()], s.prototype, "name", 2), a([i()], s.prototype, "placeholder", 2), a([i({ type: String, reflect: !0 })], s.prototype, "value", 2), a([i({ type: String, reflect: !0 })], s.prototype, "pattern", 2), a([i({ type: Boolean, reflect: !0 })], s.prototype, "required", 2), a([i({ type: Boolean, reflect: !0 })], s.prototype, "disabled", 2), a([i({ type: Boolean, reflect: !0 })], s.prototype, "readonly", 2), a([i({ type: Boolean, reflect: !0 })], s.prototype, "clickable", 2), a([i({ type: Boolean, reflect: !0 })], s.prototype, "spellcheck", 2), a([i({ type: String, reflect: !0 })], s.prototype, "align", 2), a([i()], s.prototype, "inputmode", 2), a([i({ type: Number, reflect: !0 })], s.prototype, "minlength", 2), a([i({ type: Number })], s.prototype, "maxlength", 2), a([i()], s.prototype, "min", 2), a([i()], s.prototype, "max", 2), a([i({ type: Number, reflect: !0 })], s.prototype, "step", 2), a([i({ type: Boolean })], s.prototype, "autofocus", 2), a([i({ type: String, reflect: !0 })], s.prototype, "autocomplete", 2), a([i({ type: Number, reflect: !0 })], s.prototype, "tabIndex", 2), a([i()], s.prototype, "hint", 2), a([i({ type: Boolean, reflect: !0 })], s.prototype, "error", 2), a([i({ type: String, reflect: !0 })], s.prototype, "size", 2), a([i({ type: String })], s.prototype, "validateOn", 2), a([i({ type: String })], s.prototype, "list", 2), a([i({ type: String })], s.prototype, "validationMessage", 2), a([R("input")], s.prototype, "inputElement", 2), a([v()], s.prototype, "isAutofilled", 2), a([v()], s.prototype, "touched", 2), a([v()], s.prototype, "dirty", 2), a([v()], s.prototype, "submitted", 2), a([v()], s.prototype, "defaultValue", 2), s = a([V("sch-input")], s);
|
|
267
|
-
var B = Object.defineProperty, M = Object.getOwnPropertyDescriptor,
|
|
268
|
-
for (var
|
|
269
|
-
return
|
|
250
|
+
var B = Object.defineProperty, M = Object.getOwnPropertyDescriptor, o = (t, e, n, h) => {
|
|
251
|
+
for (var m, l = h > 1 ? void 0 : h ? M(e, n) : e, y = t.length - 1; y >= 0; y--) (m = t[y]) && (l = (h ? m(e, n, l) : m(l)) || l);
|
|
252
|
+
return h && l && B(e, n, l), l;
|
|
270
253
|
};
|
|
271
|
-
let
|
|
254
|
+
let r = class extends z(I) {
|
|
272
255
|
constructor() {
|
|
273
256
|
if (super(), this.id = "", this.label = "", this.type = "text", this.name = `name_${Date.now()}`, this.placeholder = "", this.value = "", this.required = !1, this.disabled = !1, this.readonly = !1, this.clickable = !1, this.spellcheck = !1, this.align = "left", this.autofocus = !1, this.autocomplete = "on", this.tabIndex = 0, this.error = !1, this.inputRef = S(), "attachInternals" in this) try {
|
|
274
257
|
this.internals = this.attachInternals();
|
|
@@ -277,60 +260,50 @@ let o = class extends z(I) {
|
|
|
277
260
|
}
|
|
278
261
|
}
|
|
279
262
|
willUpdate(t) {
|
|
280
|
-
this.id || (this.id = "schmancy-input-" +
|
|
263
|
+
this.id || (this.id = "schmancy-input-" + r._idCounter++), super.willUpdate(t);
|
|
281
264
|
}
|
|
282
265
|
get form() {
|
|
283
|
-
|
|
284
|
-
return ((t = this.internals) == null ? void 0 : t.form) ?? null;
|
|
266
|
+
return this.internals?.form ?? null;
|
|
285
267
|
}
|
|
286
268
|
updated(t) {
|
|
287
|
-
|
|
288
|
-
super.updated(t), t.has("value") && ((e = this.internals) == null || e.setFormValue(this.value)), t.has("error") && (this.error ? (r = this.internals) == null || r.setValidity({ customError: !0 }, "Invalid input", this.inputElement) : (u = this.internals) == null || u.setValidity({}));
|
|
269
|
+
super.updated(t), t.has("value") && this.internals?.setFormValue(this.value), t.has("error") && (this.error ? this.internals?.setValidity({ customError: !0 }, "Invalid input", this.inputElement) : this.internals?.setValidity({}));
|
|
289
270
|
}
|
|
290
271
|
checkValidity() {
|
|
291
|
-
|
|
292
|
-
return ((t = this.inputRef.value) == null ? void 0 : t.checkValidity()) ?? !0;
|
|
272
|
+
return this.inputRef.value?.checkValidity() ?? !0;
|
|
293
273
|
}
|
|
294
274
|
reportValidity() {
|
|
295
|
-
|
|
296
|
-
return ((t = this.inputRef.value) == null ? void 0 : t.reportValidity()) ?? !0;
|
|
275
|
+
return this.inputRef.value?.reportValidity() ?? !0;
|
|
297
276
|
}
|
|
298
277
|
setCustomValidity(t) {
|
|
299
|
-
|
|
300
|
-
(e = this.inputRef.value) == null || e.setCustomValidity(t);
|
|
278
|
+
this.inputRef.value?.setCustomValidity(t);
|
|
301
279
|
}
|
|
302
280
|
firstUpdated() {
|
|
303
|
-
this.autofocus && this.focus(),
|
|
281
|
+
this.autofocus && this.focus(), c(this.inputElement, "input").pipe(x((t) => t.target.value), w(), d(this.disconnecting)).subscribe((t) => {
|
|
304
282
|
this.value = t, this.dispatchEvent(new CustomEvent("input", { detail: { value: t }, bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent("change", { detail: { value: t }, bubbles: !0, composed: !0 }));
|
|
305
|
-
}),
|
|
283
|
+
}), c(this.inputElement, "change").pipe(x((t) => t.target.value), w(), d(this.disconnecting)).subscribe((t) => {
|
|
306
284
|
this.value = t, this.dispatchEvent(new CustomEvent("change", { detail: { value: t }, bubbles: !0, composed: !0 }));
|
|
307
|
-
}),
|
|
285
|
+
}), c(this.inputElement, "keyup").pipe(g((t) => t.key === "Enter"), d(this.disconnecting)).subscribe((t) => {
|
|
308
286
|
const { value: e } = t.target;
|
|
309
287
|
this.value = e, this.dispatchEvent(new CustomEvent("enter", { detail: { value: e }, bubbles: !0, composed: !0 }));
|
|
310
|
-
}),
|
|
288
|
+
}), c(this.inputElement, "animationstart").pipe(g((t) => t.animationName === "onAutoFillStart"), d(this.disconnecting)).subscribe((t) => {
|
|
311
289
|
const { value: e } = t.target;
|
|
312
290
|
this.value = e, this.dispatchEvent(new CustomEvent("change", { detail: { value: e }, bubbles: !0, composed: !0 }));
|
|
313
291
|
});
|
|
314
292
|
}
|
|
315
293
|
select() {
|
|
316
|
-
|
|
317
|
-
return (t = this.inputRef.value) == null ? void 0 : t.select();
|
|
294
|
+
return this.inputRef.value?.select();
|
|
318
295
|
}
|
|
319
296
|
getValidity() {
|
|
320
|
-
|
|
321
|
-
return (t = this.inputRef.value) == null ? void 0 : t.validity;
|
|
297
|
+
return this.inputRef.value?.validity;
|
|
322
298
|
}
|
|
323
299
|
focus(t) {
|
|
324
|
-
|
|
325
|
-
(e = this.inputRef.value) == null || e.focus(t), this.dispatchEvent(new Event("focus"));
|
|
300
|
+
this.inputRef.value?.focus(t), this.dispatchEvent(new Event("focus"));
|
|
326
301
|
}
|
|
327
302
|
click() {
|
|
328
|
-
|
|
329
|
-
(t = this.inputRef.value) == null || t.click(), this.dispatchEvent(new Event("click"));
|
|
303
|
+
this.inputRef.value?.click(), this.dispatchEvent(new Event("click"));
|
|
330
304
|
}
|
|
331
305
|
blur() {
|
|
332
|
-
|
|
333
|
-
(t = this.inputRef.value) == null || t.blur(), this.dispatchEvent(new Event("blur"));
|
|
306
|
+
this.inputRef.value?.blur(), this.dispatchEvent(new Event("blur"));
|
|
334
307
|
}
|
|
335
308
|
render() {
|
|
336
309
|
const t = { "w-full flex-1 h-[50px] rounded-[8px] border-0 px-[8px] sm:px-[12px] md:px-[16px]": !0, "outline-secondary-default focus:outline-1 ": !0, "disabled:opacity-40 disabled:cursor-not-allowed": !0, "placeholder:text-muted": !0, "ring-0 ring-inset focus:ring-1 focus:ring-inset": !0, "ring-secondary-default ring-outline focus:ring-secondary-default": !this.error, "ring-error-default focus:ring-error-default": this.error, "caret-transparent focus:outline-hidden cursor-pointer text-select-none": this.readonly, "cursor-pointer": this.clickable, "text-center": this.align === "center", "text-right": this.align === "right" }, e = { "opacity-40": this.disabled, "block mb-[4px]": !0 };
|
|
@@ -340,14 +313,14 @@ let o = class extends z(I) {
|
|
|
340
313
|
for=${this.id}
|
|
341
314
|
id="label-${this.id}"
|
|
342
315
|
class=${this.classMap(e)}
|
|
343
|
-
${b({ color: this.error ?
|
|
316
|
+
${b({ color: this.error ? p.sys.color.error.default : p.sys.color.primary.default })}
|
|
344
317
|
>
|
|
345
318
|
<schmancy-typography type="label" token="lg">${this.label}</schmancy-typography>
|
|
346
319
|
</label>
|
|
347
320
|
`)}
|
|
348
321
|
|
|
349
322
|
<input
|
|
350
|
-
${b({ bgColor:
|
|
323
|
+
${b({ bgColor: p.sys.color.surface.highest, color: p.sys.color.surface.on })}
|
|
351
324
|
${C(this.inputRef)}
|
|
352
325
|
id=${this.id}
|
|
353
326
|
name=${this.name}
|
|
@@ -357,13 +330,13 @@ let o = class extends z(I) {
|
|
|
357
330
|
.autocomplete=${this.autocomplete}
|
|
358
331
|
.spellcheck=${this.spellcheck}
|
|
359
332
|
placeholder=${this.placeholder}
|
|
360
|
-
inputmode=${
|
|
361
|
-
pattern=${
|
|
362
|
-
step=${
|
|
363
|
-
minlength=${
|
|
364
|
-
maxlength=${
|
|
365
|
-
min=${
|
|
366
|
-
max=${
|
|
333
|
+
inputmode=${u(this.inputmode)}
|
|
334
|
+
pattern=${u(this.pattern)}
|
|
335
|
+
step=${u(this.step)}
|
|
336
|
+
minlength=${u(this.minlength)}
|
|
337
|
+
maxlength=${u(this.maxlength)}
|
|
338
|
+
min=${u(this.min)}
|
|
339
|
+
max=${u(this.max)}
|
|
367
340
|
?required=${this.required}
|
|
368
341
|
?disabled=${this.disabled}
|
|
369
342
|
?readonly=${this.readonly}
|
|
@@ -371,14 +344,14 @@ let o = class extends z(I) {
|
|
|
371
344
|
aria-required=${this.required ? "true" : "false"}
|
|
372
345
|
aria-labelledby=${this.label ? `label-${this.id}` : E}
|
|
373
346
|
aria-describedby=${this.hint ? `hint-${this.id}` : E}
|
|
374
|
-
aria-label=${
|
|
347
|
+
aria-label=${u(this.label ? void 0 : this.placeholder || "Input")}
|
|
375
348
|
/>
|
|
376
349
|
|
|
377
350
|
${$(this.hint, () => f`
|
|
378
351
|
<div
|
|
379
352
|
id="hint-${this.id}"
|
|
380
353
|
class="pt-[2px]"
|
|
381
|
-
${b({ color: this.error ?
|
|
354
|
+
${b({ color: this.error ? p.sys.color.error.default : p.sys.color.primary.default })}
|
|
382
355
|
>
|
|
383
356
|
<schmancy-typography align="left" type="label"> ${this.hint} </schmancy-typography>
|
|
384
357
|
</div>
|
|
@@ -386,5 +359,5 @@ let o = class extends z(I) {
|
|
|
386
359
|
`;
|
|
387
360
|
}
|
|
388
361
|
};
|
|
389
|
-
|
|
390
|
-
//# sourceMappingURL=input-
|
|
362
|
+
r._idCounter = 0, r.formAssociated = !0, r.shadowRootOptions = { ...k.shadowRootOptions, delegatesFocus: !0 }, o([i({ reflect: !0 })], r.prototype, "id", 2), o([i({ type: String })], r.prototype, "label", 2), o([i({ reflect: !0 })], r.prototype, "type", 2), o([i()], r.prototype, "name", 2), o([i()], r.prototype, "placeholder", 2), o([i({ type: String, reflect: !0 })], r.prototype, "value", 2), o([i({ type: String, reflect: !0 })], r.prototype, "pattern", 2), o([i({ type: Boolean, reflect: !0 })], r.prototype, "required", 2), o([i({ type: Boolean, reflect: !0 })], r.prototype, "disabled", 2), o([i({ type: Boolean, reflect: !0 })], r.prototype, "readonly", 2), o([i({ type: Boolean, reflect: !0 })], r.prototype, "clickable", 2), o([i({ type: Boolean, reflect: !0 })], r.prototype, "spellcheck", 2), o([i({ type: String, reflect: !0 })], r.prototype, "align", 2), o([i()], r.prototype, "inputmode", 2), o([i({ type: Number })], r.prototype, "minlength", 2), o([i({ type: Number })], r.prototype, "maxlength", 2), o([i()], r.prototype, "min", 2), o([i()], r.prototype, "max", 2), o([i({ type: Number, reflect: !0 })], r.prototype, "step", 2), o([i({ type: Boolean })], r.prototype, "autofocus", 2), o([i({ type: String, reflect: !0 })], r.prototype, "autocomplete", 2), o([i({ type: Number, reflect: !0 })], r.prototype, "tabIndex", 2), o([i()], r.prototype, "hint", 2), o([i({ type: Boolean, reflect: !0 })], r.prototype, "error", 2), o([R("input")], r.prototype, "inputElement", 2), r = o([V("schmancy-input")], r);
|
|
363
|
+
//# sourceMappingURL=input-6XNB7MZP.js.map
|