@luzmo/lucero 1.0.1-alpha.9 → 1.0.2
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 +74 -9
- package/components/accordion/index.cjs +1 -26
- package/components/accordion/index.js +8 -164
- package/components/accordion-BHBIfsLU.cjs +43 -0
- package/components/accordion-DC7cjb1c.js +152 -0
- package/components/action-bar/index.cjs +1 -22
- package/components/action-bar/index.js +8 -90
- package/components/action-bar-BMHZ4e_p.cjs +39 -0
- package/components/action-bar-CmLjsljR.js +92 -0
- package/components/action-button/index.cjs +1 -7
- package/components/action-button/index.js +8 -144
- package/components/action-button-B4_UEJle.js +121 -0
- package/components/action-button-G0PWSrZo.cjs +24 -0
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +11 -12
- package/components/action-group-CH8FTW0i.cjs +20 -0
- package/components/action-group-DYKpp-mz.js +211 -0
- package/components/action-menu/index.cjs +1 -39
- package/components/action-menu/index.js +8 -109
- package/components/action-menu-CJyB0mmO.cjs +56 -0
- package/components/action-menu-FiS1vhW7.js +105 -0
- package/components/avatar/avatar.d.ts +5 -0
- package/components/avatar/index.cjs +1 -7
- package/components/avatar/index.js +8 -64
- package/components/avatar-CyY_ZSD0.js +65 -0
- package/components/avatar-PulwjkMI.cjs +24 -0
- package/components/badge/badge.d.ts +35 -0
- package/components/{random-id-CqvckpWe.cjs → badge/index.cjs} +1 -1
- package/components/badge/index.d.ts +8 -0
- package/components/badge/index.js +25 -0
- package/components/badge-D1Ry32wi.cjs +23 -0
- package/components/badge-D6p2hPj8.js +94 -0
- package/components/button/button-base.d.ts +16 -0
- package/components/button/button.d.ts +38 -2
- package/components/button/index.cjs +1 -3
- package/components/button/index.js +9 -110
- package/components/button-CRNRP8P0.js +115 -0
- package/components/button-D3ZTogni.cjs +20 -0
- package/components/button-base-BYV3Lp3P.cjs +25 -0
- package/components/button-base-SHgEJgk2.js +123 -0
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +8 -42
- package/components/button-group-CJVpgiLq.js +46 -0
- package/components/button-group-rEK_YaF3.cjs +18 -0
- package/components/calendar/calendar.d.ts +67 -0
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.d.ts +1 -0
- package/components/calendar/index.js +8 -11
- package/components/calendar-CKr5T_zV.js +619 -0
- package/components/calendar-WRhzTEyZ.cjs +142 -0
- package/components/chat-message/chat-message.d.ts +139 -0
- package/components/{random-id-ByCz1xaq.js → chat-message/index.cjs} +1 -9
- package/components/chat-message/index.d.ts +8 -0
- package/components/chat-message/index.js +25 -0
- package/components/chat-message-CNE-mGuP.cjs +149 -0
- package/components/chat-message-DJgocVNj.js +2295 -0
- package/components/chat-message-group/chat-message-group.d.ts +50 -0
- package/components/{when-CDZyJPvd.cjs → chat-message-group/index.cjs} +1 -5
- package/components/chat-message-group/index.d.ts +7 -0
- package/components/chat-message-group/index.js +25 -0
- package/components/chat-message-group-B4U2MzHx.js +100 -0
- package/components/chat-message-group-COmhCN-R.cjs +24 -0
- package/components/checkbox/checkbox.d.ts +7 -0
- package/components/checkbox/index.cjs +1 -8
- package/components/checkbox/index.js +8 -79
- package/components/checkbox-CPS-tR_i.js +89 -0
- package/components/checkbox-DFwDrIdY.cjs +25 -0
- package/components/checkbox-mixin-C5sLMo5L.js +67 -0
- package/components/{checkbox-mixin-BDN0dBtS.cjs → checkbox-mixin-D4HeLrMj.cjs} +3 -3
- package/components/chunk-D-qHiVGv.cjs +18 -0
- package/components/close-button-BeXYep8K.js +42 -0
- package/components/close-button-BzapEpcF.cjs +18 -0
- package/components/color-area/index.cjs +1 -63
- package/components/color-area/index.js +8 -364
- package/components/color-area-DA3ps2-c.cjs +80 -0
- package/components/color-area-DViRjuKo.js +300 -0
- package/components/color-controller-DueaXfnX.cjs +18 -0
- package/components/color-controller-G2_v2xSl.js +247 -0
- package/components/color-field/color-field.d.ts +1 -0
- package/components/color-field/index.cjs +1 -6
- package/components/color-field/index.js +8 -68
- package/components/color-field-CxdIoSq6.js +75 -0
- package/components/color-field-D7_7z2A2.cjs +23 -0
- package/components/color-handle/index.cjs +1 -7
- package/components/color-handle/index.js +8 -56
- package/components/color-handle-BOusOFFx.js +62 -0
- package/components/color-handle-Cka48yPY.cjs +24 -0
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +11 -12
- package/components/color-loupe-DMk8uWZW.cjs +56 -0
- package/components/color-loupe-bEzi2P0y.js +76 -0
- package/components/color-menu/index.cjs +1 -69
- package/components/color-menu/index.js +8 -189
- package/components/color-menu-DwbTxeqv.cjs +89 -0
- package/components/color-menu-Lxc9PTzl.js +183 -0
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +8 -71
- package/components/color-palette-349EkPMg.cjs +18 -0
- package/components/color-palette-BAdaNySC.js +80 -0
- package/components/color-palette-group/index.cjs +1 -11
- package/components/color-palette-group/index.js +8 -188
- package/components/color-palette-group-BvP09zmT.cjs +28 -0
- package/components/color-palette-group-D8Mavsd2.js +163 -0
- package/components/color-picker/color-picker.d.ts +3 -3
- package/components/color-picker/index.cjs +1 -31
- package/components/color-picker/index.js +8 -128
- package/components/color-picker-CSWiU-X5.cjs +48 -0
- package/components/color-picker-DqjfTvYf.js +126 -0
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +8 -11
- package/components/color-slider-DxjJ72ue.cjs +57 -0
- package/components/color-slider-ihAIFt5p.js +421 -0
- package/components/{condition-attribute-with-id-Dv4lSRbe.js → condition-attribute-with-id-DauPaLSS.cjs} +1 -14
- package/components/{query-assigned-nodes-C76XVPWY.js → condition-attribute-with-id-Duo51HZ7.js} +10 -18
- package/components/date-range-picker/date-range-picker.d.ts +184 -0
- package/components/{if-defined-C9YGdo33.cjs → date-range-picker/index.cjs} +1 -5
- package/components/date-range-picker/index.d.ts +8 -0
- package/components/date-range-picker/index.js +25 -0
- package/components/date-range-picker/types.d.ts +16 -0
- package/components/date-range-picker-BdRQep--.js +626 -0
- package/components/date-range-picker-CgitOe0i.cjs +187 -0
- package/components/date-time-picker/date-time-picker.d.ts +3 -3
- package/components/date-time-picker/index.cjs +1 -88
- package/components/date-time-picker/index.d.ts +1 -0
- package/components/date-time-picker/index.js +8 -1109
- package/components/date-time-picker/{types.d.ts → shared/types.d.ts} +1 -1
- package/components/date-time-picker-Bz8XwSOR.cjs +105 -0
- package/components/date-time-picker-Ct_ln8Ot.js +470 -0
- package/components/decorate-B2wePfNm.cjs +18 -0
- package/components/decorate-aGxJUVxg.js +91 -0
- package/components/{condition-attribute-with-id-DrQYZzFS.cjs → dependency-manger-CHy9t__e.cjs} +1 -1
- package/components/dependency-manger-DMrulWcJ.js +40 -0
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +8 -44
- package/components/divider-Dn8XqbB6.cjs +18 -0
- package/components/divider-cU0lVwOp.js +59 -0
- package/components/divider.module-C65RfSUa.js +21 -0
- package/components/divider.module-CL60P_z8.cjs +18 -0
- package/components/element-resolution-Bs1x89vU.js +80 -0
- package/components/element-resolution-C0aiOB0Y.cjs +18 -0
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +11 -12
- package/components/field-group-C7ROsWq3.js +57 -0
- package/components/field-group-OcI5Lgu7.cjs +23 -0
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +11 -12
- package/components/field-label-BCl6R1uO.cjs +25 -0
- package/components/field-label-CtGCEmdp.js +87 -0
- package/components/focus-group-BshI1RpM.js +164 -0
- package/components/focus-group-SF8Kj7iB.cjs +18 -0
- package/components/focus-visible-B0NNezGc.cjs +18 -0
- package/components/focus-visible-CrooVCUu.js +58 -0
- package/components/focusable-BmS8IzhH.js +117 -0
- package/components/focusable-CupEoHmn.cjs +18 -0
- package/components/{base-BjTwmyRF.cjs → focusable-selectors-5n5liBn0.cjs} +1 -5
- package/components/{focusable-selectors-BgFlyFcY.cjs → focusable-selectors-Bg60_Kra.js} +13 -1
- package/components/{state-Deh-vKYE.js → get-label-from-slot-5vVnfSgN.js} +7 -11
- package/components/get-label-from-slot-LO_DZP60.cjs +18 -0
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +8 -71
- package/components/icon-B7hKwn_q.cjs +18 -0
- package/components/icon-CwBAE1eU.js +59 -0
- package/components/index.cjs +1 -1
- package/components/index.js +78 -176
- package/components/infield-button/index.cjs +1 -5
- package/components/infield-button/index.js +8 -47
- package/components/infield-button-B2z0dLzq.js +54 -0
- package/components/infield-button-BVKotWqr.cjs +22 -0
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +8 -34
- package/components/label-ClJE2esm.js +41 -0
- package/components/label-CqolZbJo.cjs +18 -0
- package/components/language-resolution-BYemISJC.cjs +18 -0
- package/components/language-resolution-BpfGTC29.js +43 -0
- package/components/like-anchor-BZJXts_H.cjs +32 -0
- package/components/like-anchor-DeOXX-MX.js +46 -0
- package/components/manage-help-text-CF0xBh0F.js +81 -0
- package/components/manage-help-text-D9VbYRf_.cjs +30 -0
- package/components/menu/index.cjs +1 -66
- package/components/menu/index.js +8 -879
- package/components/menu/menu-item.d.ts +8 -1
- package/components/menu/menu.d.ts +1 -0
- package/components/menu--ukVtSq7.js +749 -0
- package/components/menu-DAA51y45.cjs +108 -0
- package/components/multi-language-field/index.cjs +1 -22
- package/components/multi-language-field/index.js +8 -131
- package/components/multi-language-field/multi-language-field.d.ts +1 -0
- package/components/multi-language-field-BzY75rOY.js +122 -0
- package/components/multi-language-field-DmoMyCBH.cjs +40 -0
- package/components/number-field/index.cjs +1 -40
- package/components/number-field/index.js +8 -453
- package/components/number-field/number-field.d.ts +145 -0
- package/components/number-field-B4RSFeTR.cjs +57 -0
- package/components/number-field-C66dTUMM.js +402 -0
- package/components/observe-slot-presence-BCqd3VSd.js +55 -0
- package/components/observe-slot-presence-Dx8hzNzK.cjs +18 -0
- package/components/observe-slot-text-BhTcGuHY.cjs +18 -0
- package/components/observe-slot-text-Ddf1OC6F.js +71 -0
- package/components/options/index.cjs +1 -84
- package/components/options/index.js +8 -1160
- package/components/options/option.d.ts +16 -0
- package/components/options/options.d.ts +44 -4
- package/components/options-BPNAm4MW.cjs +101 -0
- package/components/options-Dz-ejkxF.js +484 -0
- package/components/overlay/index.cjs +1 -56
- package/components/overlay/index.js +10 -329
- package/components/overlay/overlay.d.ts +12 -1
- package/components/overlay/virtual-trigger.d.ts +3 -2
- package/components/overlay-8tN0KPbR.js +1115 -0
- package/components/overlay-CMd2Dnpv.cjs +73 -0
- package/components/overlay-CwR_36OV.js +227 -0
- package/components/overlay-DdrfkOry.cjs +47 -0
- package/components/pending-state-DFcNf5rd.js +50 -0
- package/components/{pending-state-CaH1si5b.cjs → pending-state-DIeF18qg.cjs} +4 -3
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +11 -15
- package/components/picker/picker.d.ts +1 -0
- package/components/picker-C4RVOxLq.cjs +123 -0
- package/components/picker-agQW7YNo.js +394 -0
- package/components/picker-button/index.cjs +1 -20
- package/components/picker-button/index.js +8 -70
- package/components/picker-button-BLbeT3Yu.js +72 -0
- package/components/picker-button-D34YXyXp.cjs +37 -0
- package/components/platform-B7Sk7Qon.cjs +18 -0
- package/components/{platform-BM-uMWpX.js → platform-D4V_cOJF.js} +29 -38
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +11 -12
- package/components/popover-DyC9xGhX.js +58 -0
- package/components/popover-dgL04x6P.cjs +30 -0
- package/components/progress-bar/index.cjs +18 -0
- package/components/progress-bar/index.d.ts +7 -0
- package/components/progress-bar/index.js +25 -0
- package/components/progress-bar/progress-bar.d.ts +34 -0
- package/components/progress-bar-BR28tISC.cjs +31 -0
- package/components/progress-bar-DHgFRml1.js +119 -0
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +11 -12
- package/components/progress-circle-Cg_ua9Ff.js +78 -0
- package/components/progress-circle-DuzwUiGN.cjs +33 -0
- package/components/progress-steps/index.cjs +18 -0
- package/components/progress-steps/index.d.ts +8 -0
- package/components/progress-steps/index.js +25 -0
- package/components/progress-steps/progress-steps.d.ts +148 -0
- package/components/progress-steps/types.d.ts +32 -0
- package/components/progress-steps-Da8aZWx3.js +262 -0
- package/components/progress-steps-WriXaZpE.cjs +96 -0
- package/components/prompt-box/controllers/attachments-controller.d.ts +35 -0
- package/components/prompt-box/controllers/recording-controller.d.ts +23 -0
- package/components/prompt-box/controllers/rich-input-controller.d.ts +89 -0
- package/components/prompt-box/controllers/trigger-menu-controller.d.ts +107 -0
- package/components/prompt-box/index.cjs +18 -0
- package/components/prompt-box/index.d.ts +9 -0
- package/components/prompt-box/index.js +25 -0
- package/components/prompt-box/keyboard-focus-tracker.d.ts +3 -0
- package/components/prompt-box/prompt-box-templates.d.ts +10 -0
- package/components/prompt-box/prompt-box.d.ts +194 -0
- package/components/prompt-box/range-from-point.d.ts +21 -0
- package/components/prompt-box/selection-utils.d.ts +39 -0
- package/components/prompt-box/slot-state-sync.d.ts +10 -0
- package/components/prompt-box/types.d.ts +112 -0
- package/components/prompt-box-BEloQP-R.js +1506 -0
- package/components/prompt-box-DV8Smf3Q.cjs +282 -0
- package/components/radio/index.cjs +1 -5
- package/components/radio/index.js +8 -174
- package/components/radio-BzEPGUmQ.js +141 -0
- package/components/radio-d-2GUbYE.cjs +22 -0
- package/components/{if-defined-DOaE2coe.js → random-id-B51lUxUB.cjs} +1 -10
- package/components/{when-CDK1Tt5Y.js → random-id-Dd4boCPV.js} +5 -10
- package/components/{focusable-selectors-B4YgbghQ.js → rolldown-runtime-CAFD8bLK.js} +10 -13
- package/components/roving-tabindex-B7x5ePUB.cjs +18 -0
- package/components/roving-tabindex-BP6mQbXf.js +62 -0
- package/components/{directive-oAbCiebi.js → scaled-indicator-BcO2BOsf.js} +24 -26
- package/components/scaled-indicator-p8-3k2cJ.cjs +26 -0
- package/components/search/index.cjs +1 -28
- package/components/search/index.js +8 -114
- package/components/search-CmLfd2dF.js +94 -0
- package/components/search-DRTD4xsE.cjs +45 -0
- package/components/segments-factory-CHo9oQw7.cjs +18 -0
- package/components/segments-factory-D0IveW-q.js +417 -0
- package/components/select/index.cjs +1 -140
- package/components/select/index.js +8 -602
- package/components/select/select.d.ts +26 -17
- package/components/select--vrG59GQ.cjs +158 -0
- package/components/select-DPeI0jP9.js +518 -0
- package/components/{language-resolution-8yZa5r_P.js → sized-mixin-DaBoZkVS.js} +38 -35
- package/components/sized-mixin-StFA4y0J.cjs +18 -0
- package/components/skeleton-loader/index.cjs +18 -0
- package/components/skeleton-loader/index.d.ts +7 -0
- package/components/skeleton-loader/index.js +25 -0
- package/components/skeleton-loader/skeleton-loader.d.ts +22 -0
- package/components/skeleton-loader-B8NgELvX.cjs +18 -0
- package/components/skeleton-loader-C1XG3m_u.js +46 -0
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +8 -1141
- package/components/slider/slider.d.ts +2 -0
- package/components/slider-3QBnq0S8.js +96 -0
- package/components/slider-uXRKcOz5.cjs +18 -0
- package/components/slottable-request-event-DZ2Z_BLk.js +29 -0
- package/components/{base-D76d76ww.js → slottable-request-event-gAcEQan2.cjs} +1 -9
- package/components/status-light/index.cjs +18 -0
- package/components/status-light/index.d.ts +8 -0
- package/components/status-light/index.js +25 -0
- package/components/status-light/status-light.d.ts +26 -0
- package/components/status-light-Bf8jGu4G.js +85 -0
- package/components/status-light-CBaAFRUc.cjs +21 -0
- package/components/strategies-DhxJGIZT.js +137 -0
- package/components/strategies-kuvLVIKO.cjs +18 -0
- package/components/streaming-listener-2NcP7ys7.js +77 -0
- package/components/streaming-listener-BnDW38lt.cjs +18 -0
- package/components/suggestion/index.cjs +18 -0
- package/components/suggestion/index.d.ts +8 -0
- package/components/suggestion/index.js +25 -0
- package/components/suggestion/suggestion.d.ts +45 -0
- package/components/suggestion-CEJiW_7y.cjs +23 -0
- package/components/suggestion-DK5gxxDI.js +76 -0
- package/components/swatch/index.cjs +1 -32
- package/components/swatch/index.js +8 -325
- package/components/swatch-BLuV-hlF.js +271 -0
- package/components/swatch-G70JUe6I.cjs +49 -0
- package/components/switch/index.cjs +1 -5
- package/components/switch/index.js +8 -56
- package/components/switch-BdE-hI69.js +60 -0
- package/components/switch-KzkrF-ob.cjs +22 -0
- package/components/tabs/index.cjs +1 -76
- package/components/tabs/index.js +8 -619
- package/components/tabs/tabs.d.ts +3 -9
- package/components/tabs-BfTgzdid.cjs +76 -0
- package/components/tabs-BthdwrmW.js +434 -0
- package/components/tags/index.cjs +1 -15
- package/components/tags/index.d.ts +1 -0
- package/components/tags/index.js +8 -156
- package/components/tags/tag.d.ts +28 -0
- package/components/tags/tags.d.ts +3 -1
- package/components/tags-B89eYzsB.js +203 -0
- package/components/tags-OBPAvjdV.cjs +47 -0
- package/components/text-field/index.cjs +1 -4
- package/components/text-field/index.js +9 -45
- package/components/text-field/text-field.d.ts +27 -0
- package/components/text-field-A4Obzs4l.cjs +21 -0
- package/components/text-field-BoGAvXvh.js +44 -0
- package/components/text-field-Cs8HYRYL.js +256 -0
- package/components/text-field-FJr8ZUhI.cjs +81 -0
- package/components/text-field.module-Btsve-VN.js +21 -0
- package/components/text-field.module-D5oDP7MB.cjs +18 -0
- package/components/toast/index.cjs +1 -34
- package/components/toast/index.js +8 -136
- package/components/toast-CJSQUzoW.cjs +51 -0
- package/components/toast-DKwphMrp.js +133 -0
- package/components/tooltip/index.cjs +1 -28
- package/components/tooltip/index.js +8 -205
- package/components/tooltip/tooltip.d.ts +12 -1
- package/components/tooltip-C3O4AQ1l.js +192 -0
- package/components/tooltip-DY1trLtg.cjs +45 -0
- package/components/top-nav/index.cjs +18 -0
- package/components/top-nav/index.d.ts +10 -0
- package/components/top-nav/index.js +25 -0
- package/components/top-nav/top-nav-item.d.ts +26 -0
- package/components/top-nav/top-nav.d.ts +45 -0
- package/components/top-nav-DVQ5ASMa.js +203 -0
- package/components/top-nav-DlTojz8S.cjs +45 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +8 -25
- package/components/voice-recorder-477xPHRU.js +134 -0
- package/components/voice-recorder-BUtmSvPO.cjs +18 -0
- package/custom-elements.json +1 -1
- package/index.d.ts +11 -1
- package/package.json +134 -5
- package/utils/button-interaction-controllers/interaction-controller.d.ts +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/scaled-indicator.d.ts +8 -0
- package/utils/voice-recorder.d.ts +121 -0
- package/components/NumberFormatter-DewVDY5w.cjs +0 -18
- package/components/NumberFormatter-DgOUVrge.js +0 -136
- package/components/NumberParser-Dik4a0h-.cjs +0 -18
- package/components/NumberParser-ci9J5EKv.js +0 -173
- package/components/action-group-DBImibFn.js +0 -258
- package/components/action-group-DJGMcRHb.cjs +0 -20
- package/components/async-directive-BX1T1e1_.cjs +0 -22
- package/components/async-directive-BfcqVjDp.js +0 -82
- package/components/base-CBCg3yyw.cjs +0 -40
- package/components/base-WsynuqaS.js +0 -677
- package/components/button-base-DbkDzb71.js +0 -144
- package/components/button-base-XgPLmwP-.cjs +0 -25
- package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
- package/components/class-map-Di1D_rCm.cjs +0 -22
- package/components/class-map-NbVXqBU0.js +0 -51
- package/components/clear-button-DQcRdcUa.js +0 -53
- package/components/clear-button-OFUFFe7G.cjs +0 -18
- package/components/close-button-Cbnb7XXj.cjs +0 -18
- package/components/close-button-CqHYZhum.js +0 -51
- package/components/color-controller-DTp1juRz.js +0 -3198
- package/components/color-controller-_ZwyhvaU.cjs +0 -18
- package/components/color-loupe-CaA_Lfkk.cjs +0 -56
- package/components/color-loupe-CmMsXbjT.js +0 -81
- package/components/dependency-manger-C5HCkMMB.cjs +0 -18
- package/components/dependency-manger-CEXvGQUV.js +0 -54
- package/components/directive-C7oCP5Bh.cjs +0 -22
- package/components/directive-helpers-Cm6gitnu.js +0 -62
- package/components/directive-helpers-DyIRTWwA.cjs +0 -22
- package/components/divider.module-DDvBo9zo.cjs +0 -18
- package/components/divider.module-DoQWQEIJ.js +0 -21
- package/components/element-resolution-BvRLGqIU.cjs +0 -18
- package/components/element-resolution-FCUT-wql.js +0 -91
- package/components/field-group-DXfBWrkO.js +0 -66
- package/components/field-group-DkGst3r5.cjs +0 -23
- package/components/field-label-CZ2zzChK.js +0 -106
- package/components/field-label-mO1AkUgR.cjs +0 -25
- package/components/flow-D-0MTYCm.js +0 -527
- package/components/flow-DM3dNAKs.cjs +0 -30
- package/components/focus-group-DHeTq18L.js +0 -218
- package/components/focus-group-DnxZUBhQ.cjs +0 -18
- package/components/focus-visible-B0P9aY_G.cjs +0 -18
- package/components/focus-visible-DBlJGoEW.js +0 -74
- package/components/focusable-BxtpnzWp.js +0 -153
- package/components/focusable-EbipgXRh.cjs +0 -18
- package/components/index-BwxgAdzi.cjs +0 -57
- package/components/index-Cl54m8Yh.js +0 -1490
- package/components/index-HjQa8tew.js +0 -1174
- package/components/index-Wq3qZJGh.cjs +0 -113
- package/components/language-resolution-DJzmyzZq.cjs +0 -18
- package/components/like-anchor-Bvn_vLQ8.js +0 -69
- package/components/like-anchor-sod1C1fR.cjs +0 -32
- package/components/luzmo-icons-4nDFv1Lq.js +0 -229
- package/components/luzmo-icons-D4IvHgVd.cjs +0 -29
- package/components/manage-help-text-DhgARkZX.cjs +0 -30
- package/components/manage-help-text-syYnjKGL.js +0 -92
- package/components/mutation-controller-DH7YOCyj.js +0 -52
- package/components/mutation-controller-DkOMCW-c.cjs +0 -22
- package/components/observe-slot-presence-CmVi0zTc.js +0 -68
- package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
- package/components/observe-slot-text-BPfIQQtz.js +0 -87
- package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
- package/components/overlay-Cig9r6uU.js +0 -2747
- package/components/overlay-KSKMzzkh.cjs +0 -47
- package/components/pending-state-DTX7ggyF.js +0 -61
- package/components/picker-BfBP7XJN.js +0 -461
- package/components/picker-xIphqE6d.cjs +0 -123
- package/components/platform-BiXhwqk3.cjs +0 -18
- package/components/popover-DjX0aAnY.js +0 -67
- package/components/popover-KFfO0IYL.cjs +0 -30
- package/components/progress-circle-BvRJNuNo.cjs +0 -33
- package/components/progress-circle-DXH9z8-6.js +0 -97
- package/components/query-BL-TJj7K.cjs +0 -22
- package/components/query-D_KR_GUc.js +0 -51
- package/components/query-assigned-elements-DjfhL1cl.js +0 -36
- package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
- package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
- package/components/roving-tabindex-By_fCy_e.cjs +0 -18
- package/components/roving-tabindex-DOg4z6ZU.js +0 -66
- package/components/sized-mixin-CPxE5C96.cjs +0 -18
- package/components/sized-mixin-D4ACoVUr.js +0 -63
- package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
- package/components/slottable-request-event-DggLA4Rx.js +0 -31
- package/components/state-D8JEtYqe.cjs +0 -22
- package/components/strategies-9indNIEb.js +0 -195
- package/components/strategies-BACP6MhR.cjs +0 -18
- package/components/streaming-listener-B00MvALi.cjs +0 -18
- package/components/streaming-listener-CP-JE6Fa.js +0 -91
- package/components/style-map-CeilmSgs.cjs +0 -22
- package/components/style-map-IgqIKvlE.js +0 -53
- package/components/text-field-BTkr42k4.cjs +0 -85
- package/components/text-field-ol9Ed5lQ.js +0 -314
- package/components/text-field.module-ColtFhf_.js +0 -21
- package/components/text-field.module-p_VF2tC_.cjs +0 -18
- package/components/unit-input/index.cjs +0 -43
- package/components/unit-input/index.d.ts +0 -7
- package/components/unit-input/index.js +0 -183
- package/components/unit-input/unit-input.d.ts +0 -33
- /package/components/date-time-picker/{helpers.d.ts → shared/helpers.d.ts} +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/date/day-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/date/month-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/date/year-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/date-time-segments.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/editable-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/literal-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/modifiers/clear-modifier.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/modifiers/decrement-modifier.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/modifiers/increment-modifier.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/modifiers/input-modifier.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/modifiers/segments-modifier.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/segments-factory.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/segments-formatter.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/time/day-period-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/time/hour-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/time/millisecond-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/time/minute-segment.d.ts +0 -0
- /package/components/date-time-picker/{segments → shared/segments}/time/second-segment.d.ts +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { n as e, t } from "./decorate-aGxJUVxg.js";
|
|
19
|
+
import { n } from "./sized-mixin-DaBoZkVS.js";
|
|
20
|
+
import { t as r } from "./text-field-Cs8HYRYL.js";
|
|
21
|
+
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
22
|
+
import { property as s } from "lit/decorators.js";
|
|
23
|
+
import { luzmoClose14 as c, luzmoIcon as l } from "@luzmo/icons";
|
|
24
|
+
//#region src/components/text-field/help-text.module.scss?inline
|
|
25
|
+
var u = "@media (forced-colors:active){:host{--highcontrast-helptext-content-color-default:CanvasText;--highcontrast-helptext-icon-color-default:CanvasText}:host,.text,.icon{forced-color-adjust:none}}:host{--helptext-bottom-to-workflow-icon:3px;color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--helptext-content-color-default)));font-family:var(--luzmo-helptext-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-helptext-font-weight,var(--luzmo-font-weight));font-size:var(--luzmo-helptext-font-size,var(--helptext-font-size,var(--luzmo-font-size-s)));min-block-size:var(--luzmo-helptext-min-height,var(--helptext-min-height,24px));display:flex}.icon{block-size:var(--luzmo-helptext-icon-size,var(--helptext-icon-size,18px));inline-size:var(--luzmo-helptext-icon-size,var(--helptext-icon-size,18px));flex-shrink:0;margin-inline-end:var(--luzmo-helptext-text-to-visual,var(--helptext-text-to-visual,7px));padding-block-start:var(--luzmo-helptext-top-to-workflow-icon,var(--helptext-top-to-workflow-icon,3px));padding-block-end:var(--luzmo-helptext-bottom-to-workflow-icon,var(--helptext-bottom-to-workflow-icon,3px))}.text{line-height:var(--luzmo-helptext-line-height,var(--helptext-line-height,1.3));padding-block-start:var(--luzmo-helptext-top-to-text,var(--helptext-top-to-text,4px));padding-block-end:var(--luzmo-helptext-bottom-to-text,var(--helptext-bottom-to-text,5px))}:host(:lang(ja)) .text,:host(:lang(ko)) .text,:host(:lang(zh)) .text{line-height:var(--luzmo-helptext-line-height-cjk,var(--helptext-line-height-cjk,1.4))}:host([variant=neutral]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--helptext-content-color-default)))}:host([variant=neutral]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host([variant=negative]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--luzmo-negative-color-down)))}:host([variant=negative]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host([disabled]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--luzmo-font-color)))}:host([disabled]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host{--helptext-line-height:1.3;--helptext-content-color-default:var(--luzmo-font-color);--helptext-icon-color-default:var(--luzmo-font-color);--helptext-disabled-content-color:var(--luzmo-font-color-disabled)}:host([variant=neutral]){--helptext-content-color-default:var(--luzmo-font-color);--helptext-icon-color-default:var(--luzmo-font-color)}:host([variant=negative]){--helptext-content-color-default:var(--luzmo-negative-color);--helptext-icon-color-default:var(--luzmo-negative-color)}:host([disabled]){--helptext-content-color-default:var(--luzmo-font-color-disabled);--helptext-icon-color-default:var(--luzmo-font-color-disabled)}:host(:lang(ja)),:host(:lang(zh)),:host(:lang(ko)){--helptext-line-height-cjk:1.4}:host([size=s]){--helptext-min-height:24px;--helptext-icon-size:16px;--helptext-font-size:12px;--helptext-text-to-visual:7px;--helptext-top-to-workflow-icon:4px;--helptext-top-to-text:4px;--helptext-bottom-to-text:5px}:host{--helptext-min-height:24px;--helptext-icon-size:18px;--helptext-font-size:12px;--helptext-text-to-visual:7px;--helptext-top-to-workflow-icon:3px;--helptext-top-to-text:4px;--helptext-bottom-to-text:5px}:host([size=l]){--helptext-min-height:32px;--helptext-icon-size:20px;--helptext-font-size:14px;--helptext-text-to-visual:8px;--helptext-top-to-workflow-icon:6px;--helptext-top-to-text:6px;--helptext-bottom-to-text:5px}:host([size=xl]){--helptext-min-height:40px;--helptext-icon-size:22px;--helptext-font-size:16px;--helptext-text-to-visual:9px;--helptext-top-to-workflow-icon:9px;--helptext-top-to-text:9px;--helptext-bottom-to-text:12px}", d = class extends n(e, { noDefaultSize: !0 }) {
|
|
26
|
+
constructor(...e) {
|
|
27
|
+
super(...e), this.icon = !1, this.variant = "neutral";
|
|
28
|
+
}
|
|
29
|
+
static get styles() {
|
|
30
|
+
return [o(u)];
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return i`
|
|
34
|
+
${this.variant === "negative" && this.icon ? i` ${l(c)} ` : a}
|
|
35
|
+
<div class="text"><slot></slot></div>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
t([s({
|
|
40
|
+
type: Boolean,
|
|
41
|
+
reflect: !0
|
|
42
|
+
})], d.prototype, "icon", void 0), t([s({ reflect: !0 })], d.prototype, "variant", void 0), customElements.get("luzmo-text-field") || customElements.define("luzmo-text-field", r), customElements.get("luzmo-help-text") || customElements.define("luzmo-help-text", d);
|
|
43
|
+
//#endregion
|
|
44
|
+
export { d as t };
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { t as e } from "./decorate-aGxJUVxg.js";
|
|
19
|
+
import { n as t } from "./sized-mixin-DaBoZkVS.js";
|
|
20
|
+
import { t as n } from "./focusable-BmS8IzhH.js";
|
|
21
|
+
import { t as r } from "./manage-help-text-CF0xBh0F.js";
|
|
22
|
+
import { t as i } from "./text-field.module-Btsve-VN.js";
|
|
23
|
+
import { html as a, nothing as o, unsafeCSS as s } from "lit";
|
|
24
|
+
import { property as c, query as l, state as u } from "lit/decorators.js";
|
|
25
|
+
import { luzmoAlert as d, luzmoCheck as f, luzmoIcon as p } from "@luzmo/icons";
|
|
26
|
+
import { ifDefined as m } from "lit/directives/if-defined.js";
|
|
27
|
+
import { live as h } from "lit/directives/live.js";
|
|
28
|
+
//#region src/components/text-field/text-field.ts
|
|
29
|
+
var g = [
|
|
30
|
+
"text",
|
|
31
|
+
"url",
|
|
32
|
+
"tel",
|
|
33
|
+
"email",
|
|
34
|
+
"password"
|
|
35
|
+
], _ = class extends r(t(n, { noDefaultSize: !0 })) {
|
|
36
|
+
constructor(...e) {
|
|
37
|
+
super(...e), this.allowedKeys = "", this.focused = !1, this.invalid = !1, this.label = "", this.placeholder = "", this._type = "text", this.grows = !1, this.maxlength = -1, this.minlength = -1, this.multiline = !1, this.readonly = !1, this.rows = -1, this.maxRows = -1, this.valid = !1, this.hideValidationIcons = !1, this._value = "", this.quiet = !1, this.required = !1;
|
|
38
|
+
}
|
|
39
|
+
static get styles() {
|
|
40
|
+
return [s(i)];
|
|
41
|
+
}
|
|
42
|
+
applyFocusElementLabel(e) {
|
|
43
|
+
this.appliedLabel = e;
|
|
44
|
+
}
|
|
45
|
+
set type(e) {
|
|
46
|
+
let t = this._type;
|
|
47
|
+
this._type = e, this.requestUpdate("type", t);
|
|
48
|
+
}
|
|
49
|
+
get type() {
|
|
50
|
+
return g.find((e) => e === this._type) ?? "text";
|
|
51
|
+
}
|
|
52
|
+
set value(e) {
|
|
53
|
+
if (e === this.value) return;
|
|
54
|
+
let t = this._value;
|
|
55
|
+
this._value = e, this.requestUpdate("value", t);
|
|
56
|
+
}
|
|
57
|
+
get value() {
|
|
58
|
+
return this._value;
|
|
59
|
+
}
|
|
60
|
+
get focusElement() {
|
|
61
|
+
return this.inputElement;
|
|
62
|
+
}
|
|
63
|
+
setSelectionRange(e, t, n = "none") {
|
|
64
|
+
this.inputElement.setSelectionRange(e, t, n);
|
|
65
|
+
}
|
|
66
|
+
select() {
|
|
67
|
+
this.inputElement.select();
|
|
68
|
+
}
|
|
69
|
+
handleInput(e) {
|
|
70
|
+
if (this.allowedKeys && this.inputElement.value && !RegExp(`^[${this.allowedKeys}]*$`, "u").test(this.inputElement.value)) {
|
|
71
|
+
let e = this.inputElement.selectionStart - 1;
|
|
72
|
+
this.inputElement.value = this.value.toString(), this.inputElement.setSelectionRange(e, e);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.value = this.inputElement.value;
|
|
76
|
+
}
|
|
77
|
+
handleChange() {
|
|
78
|
+
this.dispatchEvent(new Event("change", {
|
|
79
|
+
bubbles: !0,
|
|
80
|
+
composed: !0
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
onFocus() {
|
|
84
|
+
this.focused = !this.readonly && !0;
|
|
85
|
+
}
|
|
86
|
+
onBlur(e) {
|
|
87
|
+
this.focused = !this.readonly && !1;
|
|
88
|
+
}
|
|
89
|
+
handleInputElementPointerdown() {}
|
|
90
|
+
renderStateIcons() {
|
|
91
|
+
return this.hideValidationIcons ? o : this.invalid ? a`
|
|
92
|
+
<div id="invalid" class="icon">${p(d)}</div>
|
|
93
|
+
` : this.valid ? a`
|
|
94
|
+
<div id="valid" class="icon">${p(f)}</div>
|
|
95
|
+
` : o;
|
|
96
|
+
}
|
|
97
|
+
get displayValue() {
|
|
98
|
+
return this.value.toString();
|
|
99
|
+
}
|
|
100
|
+
calculateMaxHeight() {
|
|
101
|
+
if (this.maxRows < 1 || !this.multiline || !this.grows || !this.inputElement) return;
|
|
102
|
+
let e = window.getComputedStyle(this.inputElement), t = Number.parseFloat(e.lineHeight), n = Number.parseFloat(e.paddingTop), r = Number.parseFloat(e.paddingBottom), i = Number.parseFloat(e.borderTopWidth), a = Number.parseFloat(e.borderBottomWidth), o = Number.parseFloat(e.fontSize), s = Number.isNaN(t) || t === 0 ? o * 1.2 : t;
|
|
103
|
+
return this.maxRows * s + n + r + i + a;
|
|
104
|
+
}
|
|
105
|
+
get renderMultiline() {
|
|
106
|
+
let e = "";
|
|
107
|
+
return this.calculatedMaxHeight !== void 0 && (e = `max-height: ${this.calculatedMaxHeight}px;`), a`
|
|
108
|
+
${this.multiline && this.grows ? a`
|
|
109
|
+
<div id="sizer" class="input" aria-hidden="true" style=${e}>${this.value}​
|
|
110
|
+
</div>
|
|
111
|
+
` : o}
|
|
112
|
+
<!-- @ts-ignore -->
|
|
113
|
+
<textarea
|
|
114
|
+
name=${m(this.name || void 0)}
|
|
115
|
+
aria-describedby=${this.helpTextId}
|
|
116
|
+
aria-label=${this.label || this.appliedLabel || this.placeholder}
|
|
117
|
+
aria-invalid=${m(this.invalid || void 0)}
|
|
118
|
+
class="input"
|
|
119
|
+
maxlength=${m(this.maxlength > -1 ? this.maxlength : void 0)}
|
|
120
|
+
minlength=${m(this.minlength > -1 ? this.minlength : void 0)}
|
|
121
|
+
title=${this.invalid ? "" : o}
|
|
122
|
+
pattern=${m(this.pattern)}
|
|
123
|
+
placeholder=${this.placeholder}
|
|
124
|
+
.value=${this.displayValue}
|
|
125
|
+
@change=${this.handleChange}
|
|
126
|
+
@input=${this.handleInput}
|
|
127
|
+
@focus=${this.onFocus}
|
|
128
|
+
@blur=${this.onBlur}
|
|
129
|
+
?disabled=${this.disabled}
|
|
130
|
+
?required=${this.required}
|
|
131
|
+
?readonly=${this.readonly}
|
|
132
|
+
rows=${m(this.rows > -1 ? this.rows : void 0)}
|
|
133
|
+
autocomplete=${m(this.autocomplete)}
|
|
134
|
+
></textarea>
|
|
135
|
+
`;
|
|
136
|
+
}
|
|
137
|
+
get renderInput() {
|
|
138
|
+
return a`
|
|
139
|
+
<!-- @ts-ignore -->
|
|
140
|
+
<input
|
|
141
|
+
name=${m(this.name || void 0)}
|
|
142
|
+
type=${this.type}
|
|
143
|
+
aria-describedby=${this.helpTextId}
|
|
144
|
+
aria-label=${this.label || this.appliedLabel || this.placeholder}
|
|
145
|
+
aria-invalid=${m(this.invalid || void 0)}
|
|
146
|
+
class="input"
|
|
147
|
+
title=${this.invalid ? "" : o}
|
|
148
|
+
maxlength=${m(this.maxlength > -1 ? this.maxlength : void 0)}
|
|
149
|
+
minlength=${m(this.minlength > -1 ? this.minlength : void 0)}
|
|
150
|
+
pattern=${m(this.pattern)}
|
|
151
|
+
placeholder=${this.placeholder}
|
|
152
|
+
.value=${h(this.displayValue)}
|
|
153
|
+
@change=${this.handleChange}
|
|
154
|
+
@input=${this.handleInput}
|
|
155
|
+
@pointerdown=${this.handleInputElementPointerdown}
|
|
156
|
+
@focus=${this.onFocus}
|
|
157
|
+
@blur=${this.onBlur}
|
|
158
|
+
?disabled=${this.disabled}
|
|
159
|
+
?required=${this.required}
|
|
160
|
+
?readonly=${this.readonly}
|
|
161
|
+
autocomplete=${m(this.autocomplete)}
|
|
162
|
+
/>
|
|
163
|
+
`;
|
|
164
|
+
}
|
|
165
|
+
renderField() {
|
|
166
|
+
return a`
|
|
167
|
+
${this.renderStateIcons()}
|
|
168
|
+
${this.multiline ? this.renderMultiline : this.renderInput}
|
|
169
|
+
`;
|
|
170
|
+
}
|
|
171
|
+
render() {
|
|
172
|
+
return a`
|
|
173
|
+
<div id="text-field">${this.renderField()}</div>
|
|
174
|
+
${this.renderHelpText(this.invalid)}
|
|
175
|
+
`;
|
|
176
|
+
}
|
|
177
|
+
update(e) {
|
|
178
|
+
(e.has("value") || e.has("required") && this.required) && this.updateComplete.then(() => {
|
|
179
|
+
this.checkValidity();
|
|
180
|
+
}), e.has("maxRows") && (this.maxRows >= 1 ? this.setAttribute("max-rows", String(this.maxRows)) : this.removeAttribute("max-rows")), (e.has("maxRows") || e.has("multiline") || e.has("grows") || e.has("size") || e.has("value") && this.multiline && this.grows && this.maxRows >= 1) && requestAnimationFrame(() => {
|
|
181
|
+
this.recalculateMaxHeight();
|
|
182
|
+
}), super.update(e);
|
|
183
|
+
}
|
|
184
|
+
firstUpdated(e) {
|
|
185
|
+
super.firstUpdated(e), this.updateComplete.then(() => {
|
|
186
|
+
requestAnimationFrame(() => {
|
|
187
|
+
this.recalculateMaxHeight();
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
recalculateMaxHeight() {
|
|
192
|
+
let e = this.calculateMaxHeight();
|
|
193
|
+
this.calculatedMaxHeight !== e && (this.calculatedMaxHeight = e);
|
|
194
|
+
}
|
|
195
|
+
checkValidity() {
|
|
196
|
+
let e = this.inputElement.checkValidity();
|
|
197
|
+
return (this.required || this.value && this.pattern) && (this.disabled || this.multiline) && this.pattern && (e = RegExp(`^${this.pattern}$`, "u").test(this.value.toString())), this.minlength > -1 && this.value.toString().length > 0 && (e &&= this.value.toString().length >= this.minlength), (this.required || this.pattern || this.minlength > -1) && (!this.required && this.value.toString().length === 0 ? (this.valid = !1, this.invalid = !1) : (this.valid = e, this.invalid = !e)), e;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
e([u()], _.prototype, "appliedLabel", void 0), e([u()], _.prototype, "calculatedMaxHeight", void 0), e([c({ attribute: "allowed-keys" })], _.prototype, "allowedKeys", void 0), e([c({
|
|
201
|
+
type: Boolean,
|
|
202
|
+
reflect: !0
|
|
203
|
+
})], _.prototype, "focused", void 0), e([l(".input:not(#sizer)")], _.prototype, "inputElement", void 0), e([l("#sizer")], _.prototype, "sizerElement", void 0), e([c({
|
|
204
|
+
type: Boolean,
|
|
205
|
+
reflect: !0
|
|
206
|
+
})], _.prototype, "invalid", void 0), e([c()], _.prototype, "label", void 0), e([c({
|
|
207
|
+
type: String,
|
|
208
|
+
reflect: !0
|
|
209
|
+
})], _.prototype, "name", void 0), e([c()], _.prototype, "placeholder", void 0), e([u()], _.prototype, "type", null), e([c({
|
|
210
|
+
attribute: "type",
|
|
211
|
+
reflect: !0
|
|
212
|
+
})], _.prototype, "_type", void 0), e([c()], _.prototype, "pattern", void 0), e([c({
|
|
213
|
+
type: Boolean,
|
|
214
|
+
reflect: !0
|
|
215
|
+
})], _.prototype, "grows", void 0), e([c({ type: Number })], _.prototype, "maxlength", void 0), e([c({ type: Number })], _.prototype, "minlength", void 0), e([c({
|
|
216
|
+
type: Boolean,
|
|
217
|
+
reflect: !0
|
|
218
|
+
})], _.prototype, "multiline", void 0), e([c({
|
|
219
|
+
type: Boolean,
|
|
220
|
+
reflect: !0
|
|
221
|
+
})], _.prototype, "readonly", void 0), e([c({ type: Number })], _.prototype, "rows", void 0), e([c({
|
|
222
|
+
type: Number,
|
|
223
|
+
attribute: "max-rows"
|
|
224
|
+
})], _.prototype, "maxRows", void 0), e([c({
|
|
225
|
+
type: Boolean,
|
|
226
|
+
reflect: !0
|
|
227
|
+
})], _.prototype, "valid", void 0), e([c({
|
|
228
|
+
type: Boolean,
|
|
229
|
+
reflect: !0,
|
|
230
|
+
attribute: "hide-validation-icons"
|
|
231
|
+
})], _.prototype, "hideValidationIcons", void 0), e([c({ type: String })], _.prototype, "value", null), e([c({
|
|
232
|
+
type: Boolean,
|
|
233
|
+
reflect: !0
|
|
234
|
+
})], _.prototype, "quiet", void 0), e([c({
|
|
235
|
+
type: Boolean,
|
|
236
|
+
reflect: !0
|
|
237
|
+
})], _.prototype, "required", void 0), e([c({
|
|
238
|
+
type: String,
|
|
239
|
+
reflect: !0
|
|
240
|
+
})], _.prototype, "autocomplete", void 0);
|
|
241
|
+
var v = class extends _ {
|
|
242
|
+
constructor(...e) {
|
|
243
|
+
super(...e), this._value = "";
|
|
244
|
+
}
|
|
245
|
+
set value(e) {
|
|
246
|
+
if (e === this.value) return;
|
|
247
|
+
let t = this._value;
|
|
248
|
+
this._value = e, this.requestUpdate("value", t);
|
|
249
|
+
}
|
|
250
|
+
get value() {
|
|
251
|
+
return this._value;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
e([c({ type: String })], v.prototype, "value", null);
|
|
255
|
+
//#endregion
|
|
256
|
+
export { _ as n, v as t };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./decorate-B2wePfNm.cjs`),t=require(`./sized-mixin-StFA4y0J.cjs`),n=require(`./focusable-CupEoHmn.cjs`),r=require(`./manage-help-text-D9VbYRf_.cjs`),i=require(`./text-field.module-D5oDP7MB.cjs`);let a=require(`lit`),o=require(`lit/decorators.js`),s=require(`@luzmo/icons`),c=require(`lit/directives/if-defined.js`),l=require(`lit/directives/live.js`);var u=[`text`,`url`,`tel`,`email`,`password`],d=class extends r.t(t.n(n.t,{noDefaultSize:!0})){constructor(...e){super(...e),this.allowedKeys=``,this.focused=!1,this.invalid=!1,this.label=``,this.placeholder=``,this._type=`text`,this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.readonly=!1,this.rows=-1,this.maxRows=-1,this.valid=!1,this.hideValidationIcons=!1,this._value=``,this.quiet=!1,this.required=!1}static get styles(){return[(0,a.unsafeCSS)(i.t)]}applyFocusElementLabel(e){this.appliedLabel=e}set type(e){let t=this._type;this._type=e,this.requestUpdate(`type`,t)}get type(){return u.find(e=>e===this._type)??`text`}set value(e){if(e===this.value)return;let t=this._value;this._value=e,this.requestUpdate(`value`,t)}get value(){return this._value}get focusElement(){return this.inputElement}setSelectionRange(e,t,n=`none`){this.inputElement.setSelectionRange(e,t,n)}select(){this.inputElement.select()}handleInput(e){if(this.allowedKeys&&this.inputElement.value&&!RegExp(`^[${this.allowedKeys}]*$`,`u`).test(this.inputElement.value)){let e=this.inputElement.selectionStart-1;this.inputElement.value=this.value.toString(),this.inputElement.setSelectionRange(e,e);return}this.value=this.inputElement.value}handleChange(){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}onFocus(){this.focused=!this.readonly&&!0}onBlur(e){this.focused=!this.readonly&&!1}handleInputElementPointerdown(){}renderStateIcons(){return this.hideValidationIcons?a.nothing:this.invalid?a.html`
|
|
19
|
+
<div id="invalid" class="icon">${(0,s.luzmoIcon)(s.luzmoAlert)}</div>
|
|
20
|
+
`:this.valid?a.html`
|
|
21
|
+
<div id="valid" class="icon">${(0,s.luzmoIcon)(s.luzmoCheck)}</div>
|
|
22
|
+
`:a.nothing}get displayValue(){return this.value.toString()}calculateMaxHeight(){if(this.maxRows<1||!this.multiline||!this.grows||!this.inputElement)return;let e=window.getComputedStyle(this.inputElement),t=Number.parseFloat(e.lineHeight),n=Number.parseFloat(e.paddingTop),r=Number.parseFloat(e.paddingBottom),i=Number.parseFloat(e.borderTopWidth),a=Number.parseFloat(e.borderBottomWidth),o=Number.parseFloat(e.fontSize),s=Number.isNaN(t)||t===0?o*1.2:t;return this.maxRows*s+n+r+i+a}get renderMultiline(){let e=``;return this.calculatedMaxHeight!==void 0&&(e=`max-height: ${this.calculatedMaxHeight}px;`),a.html`
|
|
23
|
+
${this.multiline&&this.grows?a.html`
|
|
24
|
+
<div id="sizer" class="input" aria-hidden="true" style=${e}>${this.value}​
|
|
25
|
+
</div>
|
|
26
|
+
`:a.nothing}
|
|
27
|
+
<!-- @ts-ignore -->
|
|
28
|
+
<textarea
|
|
29
|
+
name=${(0,c.ifDefined)(this.name||void 0)}
|
|
30
|
+
aria-describedby=${this.helpTextId}
|
|
31
|
+
aria-label=${this.label||this.appliedLabel||this.placeholder}
|
|
32
|
+
aria-invalid=${(0,c.ifDefined)(this.invalid||void 0)}
|
|
33
|
+
class="input"
|
|
34
|
+
maxlength=${(0,c.ifDefined)(this.maxlength>-1?this.maxlength:void 0)}
|
|
35
|
+
minlength=${(0,c.ifDefined)(this.minlength>-1?this.minlength:void 0)}
|
|
36
|
+
title=${this.invalid?``:a.nothing}
|
|
37
|
+
pattern=${(0,c.ifDefined)(this.pattern)}
|
|
38
|
+
placeholder=${this.placeholder}
|
|
39
|
+
.value=${this.displayValue}
|
|
40
|
+
@change=${this.handleChange}
|
|
41
|
+
@input=${this.handleInput}
|
|
42
|
+
@focus=${this.onFocus}
|
|
43
|
+
@blur=${this.onBlur}
|
|
44
|
+
?disabled=${this.disabled}
|
|
45
|
+
?required=${this.required}
|
|
46
|
+
?readonly=${this.readonly}
|
|
47
|
+
rows=${(0,c.ifDefined)(this.rows>-1?this.rows:void 0)}
|
|
48
|
+
autocomplete=${(0,c.ifDefined)(this.autocomplete)}
|
|
49
|
+
></textarea>
|
|
50
|
+
`}get renderInput(){return a.html`
|
|
51
|
+
<!-- @ts-ignore -->
|
|
52
|
+
<input
|
|
53
|
+
name=${(0,c.ifDefined)(this.name||void 0)}
|
|
54
|
+
type=${this.type}
|
|
55
|
+
aria-describedby=${this.helpTextId}
|
|
56
|
+
aria-label=${this.label||this.appliedLabel||this.placeholder}
|
|
57
|
+
aria-invalid=${(0,c.ifDefined)(this.invalid||void 0)}
|
|
58
|
+
class="input"
|
|
59
|
+
title=${this.invalid?``:a.nothing}
|
|
60
|
+
maxlength=${(0,c.ifDefined)(this.maxlength>-1?this.maxlength:void 0)}
|
|
61
|
+
minlength=${(0,c.ifDefined)(this.minlength>-1?this.minlength:void 0)}
|
|
62
|
+
pattern=${(0,c.ifDefined)(this.pattern)}
|
|
63
|
+
placeholder=${this.placeholder}
|
|
64
|
+
.value=${(0,l.live)(this.displayValue)}
|
|
65
|
+
@change=${this.handleChange}
|
|
66
|
+
@input=${this.handleInput}
|
|
67
|
+
@pointerdown=${this.handleInputElementPointerdown}
|
|
68
|
+
@focus=${this.onFocus}
|
|
69
|
+
@blur=${this.onBlur}
|
|
70
|
+
?disabled=${this.disabled}
|
|
71
|
+
?required=${this.required}
|
|
72
|
+
?readonly=${this.readonly}
|
|
73
|
+
autocomplete=${(0,c.ifDefined)(this.autocomplete)}
|
|
74
|
+
/>
|
|
75
|
+
`}renderField(){return a.html`
|
|
76
|
+
${this.renderStateIcons()}
|
|
77
|
+
${this.multiline?this.renderMultiline:this.renderInput}
|
|
78
|
+
`}render(){return a.html`
|
|
79
|
+
<div id="text-field">${this.renderField()}</div>
|
|
80
|
+
${this.renderHelpText(this.invalid)}
|
|
81
|
+
`}update(e){(e.has(`value`)||e.has(`required`)&&this.required)&&this.updateComplete.then(()=>{this.checkValidity()}),e.has(`maxRows`)&&(this.maxRows>=1?this.setAttribute(`max-rows`,String(this.maxRows)):this.removeAttribute(`max-rows`)),(e.has(`maxRows`)||e.has(`multiline`)||e.has(`grows`)||e.has(`size`)||e.has(`value`)&&this.multiline&&this.grows&&this.maxRows>=1)&&requestAnimationFrame(()=>{this.recalculateMaxHeight()}),super.update(e)}firstUpdated(e){super.firstUpdated(e),this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.recalculateMaxHeight()})})}recalculateMaxHeight(){let e=this.calculateMaxHeight();this.calculatedMaxHeight!==e&&(this.calculatedMaxHeight=e)}checkValidity(){let e=this.inputElement.checkValidity();return(this.required||this.value&&this.pattern)&&(this.disabled||this.multiline)&&this.pattern&&(e=RegExp(`^${this.pattern}$`,`u`).test(this.value.toString())),this.minlength>-1&&this.value.toString().length>0&&(e&&=this.value.toString().length>=this.minlength),(this.required||this.pattern||this.minlength>-1)&&(!this.required&&this.value.toString().length===0?(this.valid=!1,this.invalid=!1):(this.valid=e,this.invalid=!e)),e}};e.t([(0,o.state)()],d.prototype,`appliedLabel`,void 0),e.t([(0,o.state)()],d.prototype,`calculatedMaxHeight`,void 0),e.t([(0,o.property)({attribute:`allowed-keys`})],d.prototype,`allowedKeys`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`focused`,void 0),e.t([(0,o.query)(`.input:not(#sizer)`)],d.prototype,`inputElement`,void 0),e.t([(0,o.query)(`#sizer`)],d.prototype,`sizerElement`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`invalid`,void 0),e.t([(0,o.property)()],d.prototype,`label`,void 0),e.t([(0,o.property)({type:String,reflect:!0})],d.prototype,`name`,void 0),e.t([(0,o.property)()],d.prototype,`placeholder`,void 0),e.t([(0,o.state)()],d.prototype,`type`,null),e.t([(0,o.property)({attribute:`type`,reflect:!0})],d.prototype,`_type`,void 0),e.t([(0,o.property)()],d.prototype,`pattern`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`grows`,void 0),e.t([(0,o.property)({type:Number})],d.prototype,`maxlength`,void 0),e.t([(0,o.property)({type:Number})],d.prototype,`minlength`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`multiline`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`readonly`,void 0),e.t([(0,o.property)({type:Number})],d.prototype,`rows`,void 0),e.t([(0,o.property)({type:Number,attribute:`max-rows`})],d.prototype,`maxRows`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`valid`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0,attribute:`hide-validation-icons`})],d.prototype,`hideValidationIcons`,void 0),e.t([(0,o.property)({type:String})],d.prototype,`value`,null),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`quiet`,void 0),e.t([(0,o.property)({type:Boolean,reflect:!0})],d.prototype,`required`,void 0),e.t([(0,o.property)({type:String,reflect:!0})],d.prototype,`autocomplete`,void 0);var f=class extends d{constructor(...e){super(...e),this._value=``}set value(e){if(e===this.value)return;let t=this._value;this._value=e,this.requestUpdate(`value`,t)}get value(){return this._value}};e.t([(0,o.property)({type:String})],f.prototype,`value`,null),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
//#region src/components/text-field/text-field.module.scss?inline
|
|
19
|
+
var e = "#text-field{--luzmo-text-field-input-line-height:var(--luzmo-text-field-height,var(--text-field-height));text-overflow:ellipsis;inline-size:var(--luzmo-text-field-width,var(--text-field-width));grid-template-rows:auto auto auto;grid-template-columns:auto auto;margin:0;display:inline-grid;position:relative;overflow:visible}:host([quiet]) #text-field:after{content:\"\";pointer-events:none;inline-size:100%;block-size:var(--luzmo-text-field-focus-indicator-width,2px);position:absolute;inset-block-end:calc((var(--luzmo-text-field-focus-indicator-gap,2px) + var(--luzmo-text-field-focus-indicator-width,2px)) * -1);inset-inline-start:0}:host([quiet][focused]) #text-field:after{background-color:var(--highcontrast-text-field-focus-indicator-color,var(--luzmo-text-field-focus-indicator-color,var(--luzmo-informative-color)))}:host([quiet][invalid]) #text-field .input{padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-invalid,var(--text-field-icon-spacing-inline-start-invalid)) + var(--luzmo-text-field-icon-size-invalid,var(--text-field-icon-size-invalid)))}:host([quiet][valid]) #text-field .input{padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-valid,var(--text-field-icon-spacing-inline-start-valid)) + var(--luzmo-text-field-icon-size-valid,var(--text-field-icon-size-valid)))}:host([invalid]) #text-field .icon,:host([valid]) #text-field .icon{pointer-events:all;grid-area:2/2;justify-content:center;align-items:center;margin-inline-start:auto;display:flex;position:absolute;inset-block-start:0}#text-field.luzmo-text-field--sideLabel .icon{grid-area:1/2/span 1/span 1}:host([valid]) #text-field .icon{font-size:var(--luzmo-text-field-icon-size-valid,var(--text-field-icon-size-valid));color:var(--highcontrast-text-field-icon-color-valid,var(--luzmo-text-field-icon-color-valid,var(--luzmo-positive-color)));inset-block-start:var(--luzmo-text-field-icon-spacing-block-valid,var(--text-field-icon-spacing-block-valid));inset-block-end:var(--luzmo-text-field-icon-spacing-block-valid,var(--text-field-icon-spacing-block-valid));inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-valid,var(--text-field-icon-spacing-inline-end-valid))}:host([invalid]) #text-field .icon{font-size:var(--luzmo-text-field-icon-size-invalid,var(--text-field-icon-size-invalid));color:var(--highcontrast-text-field-icon-color-invalid,var(--luzmo-text-field-icon-color-invalid,var(--luzmo-negative-color)));inset-block-start:var(--luzmo-text-field-icon-spacing-block-invalid,var(--text-field-icon-spacing-block-invalid));inset-block-end:var(--luzmo-text-field-icon-spacing-block-invalid,var(--text-field-icon-spacing-block-invalid));inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-invalid,var(--text-field-icon-spacing-inline-end-invalid))}:host([disabled]) #text-field .icon,:host([readonly]) #text-field .icon{color:#0000}:host([quiet]) .icon{padding-inline-end:0}:host([quiet][valid]) .icon{inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-quiet-valid,0px)}:host([quiet][invalid]) .icon{inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-quiet-invalid,0px)}#text-field .luzmo-field-label{grid-area:1/1/auto/span 1;margin-block-end:var(--luzmo-text-field-label-spacing-block,0px)}:host([quiet]) .luzmo-field-label{margin-block-end:var(--luzmo-text-field-label-spacing-block-quiet,var(--text-field-label-spacing-block-quiet))}:host([disabled]) .luzmo-field-label{color:var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled))}#text-field .luzmo-help-text{grid-area:3/1/auto/span 2;margin-block-start:var(--luzmo-text-field-helptext-spacing-block,0px)}.luzmo-text-field-characterCount{inline-size:auto;font-size:var(--luzmo-text-field-character-count-font-size,var(--text-field-character-count-font-size));font-family:var(--luzmo-text-field-character-count-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-text-field-character-count-font-weight,var(--luzmo-font-weight));grid-area:1/2/auto/span 1;justify-content:flex-end;align-items:flex-end;margin-block-end:var(--luzmo-text-field-character-count-spacing-block,var(--text-field-character-count-spacing-block));margin-inline-start:var(--luzmo-text-field-character-count-spacing-inline,12px);margin-inline-end:0;padding-inline-end:calc(var(--luzmo-text-field-border-radius,var(--luzmo-border-radius)) / 2);display:inline-flex}:host([quiet]) .luzmo-text-field-characterCount{margin-block-end:var(--luzmo-text-field-character-count-spacing-block-quiet,var(--text-field-character-count-spacing-block-quiet))}.input{text-align:var(--luzmo-text-field-text-align,start);line-height:var(--luzmo-text-field-input-line-height);box-sizing:border-box;inline-size:100%;min-inline-size:var(--luzmo-text-field-min-width,1.5);block-size:var(--luzmo-text-field-height,var(--text-field-height));padding-block-start:calc(var(--luzmo-text-field-spacing-block-start,var(--luzmo-spacing-3)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)));padding-block-end:calc(var(--luzmo-text-field-spacing-block-end,var(--luzmo-spacing-3)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)));padding-inline:calc(var(--luzmo-text-field-spacing-inline,var(--text-field-spacing-inline)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)));vertical-align:top;background-color:var(--luzmo-text-field-background-color,var(--luzmo-background-color));border-color:var(--highcontrast-text-field-border-color,var(--luzmo-text-field-border-color,var(--luzmo-border-color)));border-style:solid;border-width:var(--luzmo-text-field-border-width,var(--luzmo-border-width));border-radius:var(--luzmo-text-field-border-radius,var(--luzmo-border-radius));transition:border-color var(--luzmo-text-field-animation-duration,var(--luzmo-animation-duration)) ease-in-out;font-size:var(--luzmo-text-field-placeholder-font-size,var(--text-field-placeholder-font-size));font-family:var(--luzmo-text-field-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-text-field-font-weight,var(--luzmo-font-weight));color:var(--highcontrast-text-field-text-color-default,var(--luzmo-text-field-text-color-default,var(--luzmo-font-color)));text-overflow:ellipsis;appearance:none;outline:none;grid-area:2/1/auto/span 2;margin:0}:host([type=number]) .input{-moz-appearance:text-field}:host([type=number]) .input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}:host([type=number]) .input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input:-moz-ui-invalid{box-shadow:none}.input::placeholder{opacity:1;font-size:var(--luzmo-text-field-placeholder-font-size,var(--text-field-placeholder-font-size));font-family:var(--luzmo-text-field-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-text-field-font-weight,var(--luzmo-font-weight));color:var(--highcontrast-text-field-text-color-default,var(--luzmo-text-field-placeholder-text-color-default,var(--luzmo-font-color-disabled)));transition:color var(--luzmo-text-field-animation-duration,var(--luzmo-animation-duration)) ease-in-out}.input:lang(ja)::placeholder,.input:lang(ko)::placeholder,.input:lang(zh)::placeholder{font-style:normal}:host([focused]) .input,.input:focus{border-color:var(--highcontrast-text-field-border-color-focus,var(--luzmo-text-field-border-color-focus,var(--luzmo-primary)));color:var(--highcontrast-text-field-text-color-focus,var(--luzmo-text-field-text-color-focus,var(--luzmo-font-color-focus)))}:host([focused]) .input::placeholder,.input:focus::placeholder{color:var(--highcontrast-text-field-text-color-focus,var(--luzmo-text-field-placeholder-text-color-focus,var(--luzmo-disabled-color)))}:host([focused]) .input{border-color:var(--highcontrast-text-field-border-color-keyboard-focus,var(--luzmo-text-field-border-color-keyboard-focus,var(--luzmo-primary)));outline:var(--luzmo-text-field-focus-indicator-width,0) solid;outline-color:var(--highcontrast-text-field-focus-indicator-color,var(--luzmo-text-field-focus-indicator-color,var(--luzmo-informative-color)));outline-offset:var(--luzmo-text-field-focus-indicator-gap,2px);color:var(--highcontrast-text-field-text-color-keyboard-focus,var(--luzmo-text-field-text-color-keyboard-focus,var(--luzmo-font-color-focus)))}:host([focused]) .input::placeholder{color:var(--highcontrast-text-field-text-color-keyboard-focus,var(--luzmo-text-field-placeholder-text-color-keyboard-focus,var(--luzmo-disabled-color)))}:host([valid]) .input{color:var(--highcontrast-text-field-text-color-valid,var(--luzmo-text-field-text-color-valid,var(--luzmo-font-color)));padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-valid,var(--text-field-icon-spacing-inline-start-valid)) + var(--luzmo-text-field-icon-size-valid,var(--text-field-icon-size-valid)) + var(--luzmo-text-field-icon-spacing-inline-end-valid,var(--text-field-icon-spacing-inline-end-valid)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)))}:host([invalid]) .input{color:var(--highcontrast-text-field-text-color-invalid,var(--luzmo-text-field-text-color-invalid,var(--luzmo-font-color)));border-color:var(--highcontrast-text-field-border-color-invalid-default,var(--luzmo-text-field-border-color-invalid-default,var(--luzmo-negative-color)));padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-invalid,var(--text-field-icon-spacing-inline-start-invalid)) + var(--luzmo-text-field-icon-size-invalid,var(--text-field-icon-size-invalid)) + var(--luzmo-text-field-icon-spacing-inline-end-invalid,var(--text-field-icon-spacing-inline-end-invalid)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)))}:host([invalid]) .input:focus,:host([invalid][focused]) .input,:host([invalid]:focus) .input{border-color:var(--highcontrast-text-field-border-color-invalid-focus,var(--luzmo-text-field-border-color-invalid-focus,var(--luzmo-negative-color)))}:host([invalid]) .input:focus-visible,:host([invalid][focused]) .input{border-color:var(--highcontrast-text-field-border-color-invalid-keyboard-focus,var(--luzmo-text-field-border-color-invalid-keyboard-focus,var(--luzmo-negative-color)))}.input:disabled,:host([disabled]) #text-field .input{background-color:var(--luzmo-text-field-background-color-disabled,var(--luzmo-background-color-disabled));resize:none;opacity:1;border-color:#0000}.input:disabled,.input:disabled::placeholder,:host([disabled]) #text-field .input,:host([disabled]) #text-field .input::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([border=none]) .input{border-width:0;outline:none}:host([quiet]) .input{padding-block-start:var(--luzmo-text-field-spacing-block-start,var(--luzmo-spacing-2));padding-inline:var(--luzmo-text-field-spacing-inline-quiet,0px);background-color:initial;resize:none;border-block-start-width:0;border-inline-width:0;border-radius:0;outline:none;margin-block-end:var(--luzmo-text-field-spacing-block-quiet,0px);overflow-y:hidden}:host([quiet][disabled]) .input,.input:disabled{background-color:initial;border-color:var(--luzmo-text-field-border-color-disabled,var(--luzmo-border-color-disabled))}:host([quiet][disabled]) .input,:host([quiet][disabled]) .input::placeholder,.input:disabled,.input:disabled::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-disabled-color)))}.input:read-only,:host([readonly]) #text-field .input{background-color:initial;color:var(--highcontrast-text-field-text-color-readonly,var(--luzmo-text-field-text-color-readonly,var(--luzmo-font-color)));border-color:#0000;outline:none}.input:read-only::placeholder,:host([readonly]) #text-field .input::placeholder{color:var(--highcontrast-text-field-text-color-readonly,var(--luzmo-text-field-text-color-readonly,var(--luzmo-disabled-color)));background-color:initial}@media (hover:hover){.input:hover,#text-field:hover .input{border-color:var(--highcontrast-text-field-border-color-hover,var(--luzmo-text-field-border-color-hover,rgba(var(--luzmo-primary-rgb), .3)));color:var(--highcontrast-text-field-text-color-hover,var(--luzmo-text-field-text-color-hover,var(--luzmo-font-color-hover)))}.input:hover::placeholder,#text-field:hover .input::placeholder{color:var(--highcontrast-text-field-text-color-hover,var(--luzmo-text-field-placeholder-text-color-hover,var(--luzmo-disabled-color)))}:host([focused]) .input:hover,:host([focused]) #text-field:hover .input,.input:focus:hover{border-color:var(--highcontrast-text-field-border-color-focus-hover,var(--luzmo-text-field-border-color-focus-hover,var(--luzmo-primary)))}:host([focused]) .input:hover,.input:focus:hover{color:var(--highcontrast-text-field-text-color-focus-hover,var(--luzmo-text-field-text-color-focus-hover,var(--luzmo-font-color-hover)))}:host([focused]) .input:hover::placeholder,.input:focus:hover::placeholder{color:var(--highcontrast-text-field-text-color-focus-hover,var(--luzmo-text-field-placeholder-text-color-focus-hover,var(--luzmo-disabled-color)))}:host([invalid]) .input:hover:not(.is-disabled),:host([invalid]:hover):not(.is-disabled) .input{border-color:var(--highcontrast-text-field-border-color-invalid-hover,var(--luzmo-text-field-border-color-invalid-hover,var(--luzmo-negative-color)))}:host([invalid]) .input:focus:hover,:host([invalid][focused]) .input:hover,:host([invalid]:focus) .input:hover{border-color:var(--highcontrast-text-field-border-color-invalid-focus-hover,var(--luzmo-text-field-border-color-invalid-focus-hover,var(--luzmo-negative-color)))}:host([disabled]) #text-field:hover .input{background-color:var(--luzmo-text-field-background-color-disabled,var(--luzmo-background-color-disabled));resize:none;opacity:1;border-color:#0000}:host([quiet][disabled]:hover) .input,:host([disabled]) #text-field:hover .input,:host([disabled]) #text-field:hover .input::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([quiet][disabled]:hover) .input{background-color:initial;border-color:var(--luzmo-text-field-border-color-disabled,var(--luzmo-border-color-disabled))}:host([quiet][disabled]:hover) .input::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([readonly]) #text-field:hover .input{border-color:#0000;outline:none}:host([readonly]) #text-field:hover .input,:host([readonly]) #text-field:hover .input::placeholder{background-color:initial;color:var(--highcontrast-text-field-text-color-readonly,var(--luzmo-text-field-text-color-readonly,var(--luzmo-font-color)))}}.luzmo-text-field--sideLabel{grid-template-rows:auto auto;grid-template-columns:auto auto auto}.luzmo-text-field--sideLabel:after{grid-area:1/2/span 1/span 1}.luzmo-text-field--sideLabel .luzmo-field-label{grid-area:1/1/span 2/span 1;margin-inline-end:var(--luzmo-text-field-label-spacing-inline-side-label,var(--text-field-label-spacing-inline-side-label))}.luzmo-text-field--sideLabel .luzmo-text-field-characterCount{grid-area:1/3/auto/span 1;align-items:flex-start;margin-block-start:var(--luzmo-text-field-character-count-spacing-block-side,var(--text-field-character-count-spacing-block-side));margin-inline-start:var(--luzmo-text-field-character-count-spacing-inline-side,12px)}.luzmo-text-field--sideLabel .luzmo-help-text{grid-area:2/2/auto/span 1}.luzmo-text-field--sideLabel .input,.luzmo-text-field--sideLabel .icon{grid-area:1/2/span 1/span 1}:host([multiline]){--luzmo-text-field-input-line-height:normal}:host([multiline]) .input{min-inline-size:var(--luzmo-text-area-min-inline-size,112px);min-block-size:var(--luzmo-text-area-min-block-size,56px);resize:inherit}:host([multiline][grows]) .input{grid-row:2}:host([multiline][grows]) .luzmo-text-field--sideLabel .input{grid-row:1}:host([multiline][quiet]) .input{min-block-size:var(--luzmo-text-area-min-block-size-quiet,var(--text-area-min-block-size-quiet));resize:none;overflow-y:hidden}@media (forced-colors:active){:host{--highcontrast-text-field-border-color-hover:Highlight;--highcontrast-text-field-border-color-focus:Highlight;--highcontrast-text-field-border-color-keyboard-focus:CanvasText;--highcontrast-text-field-focus-indicator-color:Highlight;--highcontrast-text-field-border-color-invalid-default:Highlight;--highcontrast-text-field-border-color-invalid-hover:Highlight;--highcontrast-text-field-border-color-invalid-focus:Highlight;--highcontrast-text-field-border-color-invalid-keyboard-focus:Highlight;--highcontrast-text-field-text-color-valid:CanvasText;--highcontrast-text-field-text-color-invalid:CanvasText}#text-field .input{--highcontrast-text-field-text-color-default:CanvasText;--highcontrast-text-field-text-color-hover:CanvasText;--highcontrast-text-field-text-color-keyboard-focus:CanvasText;--highcontrast-text-field-text-color-disabled:GrayText;--highcontrast-text-field-text-color-readonly:CanvasText}#text-field .input::placeholder{--highcontrast-text-field-text-color-default:GrayText;--highcontrast-text-field-text-color-hover:GrayText;--highcontrast-text-field-text-color-keyboard-focus:GrayText;--highcontrast-text-field-text-color-disabled:GrayText;--highcontrast-text-field-text-color-readonly:CanvasText}}:host{inline-size:var(--luzmo-text-field-width,var(--text-field-width));flex-direction:column;display:inline-flex}:host([multiline]){resize:both}:host([multiline][readonly]){resize:none}:host([disabled]:focus-visible){outline:none}#text-field{inline-size:100%}#text-field,textarea{resize:inherit}.input{min-inline-size:var(--luzmo-text-field-min-width,1.5)}:host([focused]) .input{caret-color:var(--swc-test-caret-color);forced-color-adjust:var(--swc-test-forced-color-adjust)}#sizer{word-break:break-word;white-space:pre-line;block-size:auto;opacity:0!important}.icon,.icon-workflow{pointer-events:none}:host([multiline]) #text-field{--luzmo-text-field-input-line-height:normal;display:inline-grid}:host([multiline]) textarea{transition:box-shadow var(--luzmo-animation-duration) ease-in-out, border-color var(--luzmo-animation-duration) ease-in-out}:host([multiline]:not([quiet])) #text-field:after{box-shadow:none}:host([multiline][rows]) .input{resize:none;block-size:auto}:host([multiline][rows=\"1\"]) .input{min-block-size:auto}:host([disabled][quiet]) #text-field .input,:host([disabled][quiet]) #text-field:hover .input,:host([quiet]) .input :disabled{border-color:var(--luzmo-text-field-border-color-disabled,var(--luzmo-border-color-disabled));color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)));background-color:#0000}:host([disabled]) #text-field .icon.icon-search,:host([readonly]) #text-field .icon.icon-search{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([multiline][grows]:not([quiet])) #text-field:after{grid-area:unset;min-block-size:calc(var(--luzmo-text-area-min-block-size,var(--luzmo-text-area-min-block-size)) + var(--luzmo-text-field-focus-indicator-gap,2px) * 2)}:host([multiline][grows]) .input:not(#sizer){resize:none;height:100%;position:absolute;top:0;left:0;overflow:hidden}:host([multiline][grows][max-rows]) .input:not(#sizer){overflow-y:auto}:host{--text-field-height:var(--luzmo-component-height);--text-field-width:240px;--text-field-label-spacing-block-quiet:-8px;--text-field-label-spacing-inline-side-label:12px;--text-field-placeholder-font-size:14px;--text-field-spacing-inline:12px;--text-field-icon-size-invalid:18px;--text-field-icon-size-valid:10px;--text-field-icon-spacing-inline-end-invalid:12px;--text-field-icon-spacing-inline-end-valid:15px;--text-field-icon-spacing-block-invalid:7px;--text-field-icon-spacing-block-valid:4px;--text-field-icon-spacing-inline-start-invalid:var(--luzmo-spacing-4);--text-field-icon-spacing-inline-start-valid:var(--luzmo-spacing-4);--text-field-character-count-font-size:var(--luzmo-font-size-s);--text-field-character-count-spacing-block:5px;--text-field-character-count-spacing-block-quiet:-3px;--text-field-character-count-spacing-block-side:8px;--text-area-min-block-size-quiet:var(--luzmo-component-height)}:host([size=s]){--text-field-height:var(--luzmo-component-height-s);--text-field-width:220px;--text-field-label-spacing-block-quiet:-8px;--text-field-label-spacing-inline-side-label:8px;--text-field-placeholder-font-size:12px;--text-field-spacing-inline:9px;--text-field-icon-size-invalid:16px;--text-field-icon-size-valid:10px;--text-field-icon-spacing-inline-end-invalid:9px;--text-field-icon-spacing-inline-end-valid:11px;--text-field-icon-spacing-block-invalid:2px;--text-field-icon-spacing-block-valid:-1px;--text-field-icon-spacing-inline-start-invalid:var(--luzmo-spacing-3);--text-field-icon-spacing-inline-start-valid:var(--luzmo-spacing-3);--text-field-character-count-font-size:var(--luzmo-font-size-xs);--text-field-character-count-spacing-block:5px;--text-field-character-count-spacing-block-quiet:-3px;--text-field-character-count-spacing-block-side:4px;--text-area-min-block-size-quiet:var(--luzmo-component-height-s)}:host([size=l]){--text-field-height:var(--luzmo-component-height-l);--text-field-width:280px;--text-field-label-spacing-block-quiet:-12px;--text-field-label-spacing-inline-side-label:12px;--text-field-placeholder-font-size:16px;--text-field-spacing-inline:15px;--text-field-icon-size-invalid:20px;--text-field-icon-size-valid:12px;--text-field-icon-spacing-inline-end-invalid:15px;--text-field-icon-spacing-inline-end-valid:17px;--text-field-icon-spacing-block-invalid:10px;--text-field-icon-spacing-block-valid:8px;--text-field-icon-spacing-inline-start-invalid:15px;--text-field-icon-spacing-inline-start-valid:15px;--text-field-character-count-font-size:var(--luzmo-font-size);--text-field-character-count-spacing-block:9px;--text-field-character-count-spacing-block-quiet:-3px;--text-field-character-count-spacing-block-side:11px;--text-area-min-block-size-quiet:var(--luzmo-component-height-l)}:host([size=xl]){--text-field-height:var(--luzmo-component-height-xl);--text-field-width:320px;--text-field-label-spacing-block-quiet:-15px;--text-field-label-spacing-inline-side-label:12px;--text-field-placeholder-font-size:18px;--text-field-spacing-inline:15px;--text-field-icon-size-invalid:22px;--text-field-icon-size-valid:14px;--text-field-icon-spacing-inline-end-invalid:18px;--text-field-icon-spacing-inline-end-valid:20px;--text-field-icon-spacing-block-invalid:12px;--text-field-icon-spacing-block-valid:13px;--text-field-icon-spacing-inline-start-invalid:18px;--text-field-icon-spacing-inline-start-valid:18px;--text-field-character-count-font-size:var(--luzmo-font-size-l);--text-field-character-count-spacing-block:11px;--text-field-character-count-spacing-block-quiet:-4px;--text-field-character-count-spacing-block-side:14px;--text-area-min-block-size-quiet:var(--luzmo-component-height-xl)}";
|
|
20
|
+
//#endregion
|
|
21
|
+
export { e as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
var e=`#text-field{--luzmo-text-field-input-line-height:var(--luzmo-text-field-height,var(--text-field-height));text-overflow:ellipsis;inline-size:var(--luzmo-text-field-width,var(--text-field-width));grid-template-rows:auto auto auto;grid-template-columns:auto auto;margin:0;display:inline-grid;position:relative;overflow:visible}:host([quiet]) #text-field:after{content:"";pointer-events:none;inline-size:100%;block-size:var(--luzmo-text-field-focus-indicator-width,2px);position:absolute;inset-block-end:calc((var(--luzmo-text-field-focus-indicator-gap,2px) + var(--luzmo-text-field-focus-indicator-width,2px)) * -1);inset-inline-start:0}:host([quiet][focused]) #text-field:after{background-color:var(--highcontrast-text-field-focus-indicator-color,var(--luzmo-text-field-focus-indicator-color,var(--luzmo-informative-color)))}:host([quiet][invalid]) #text-field .input{padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-invalid,var(--text-field-icon-spacing-inline-start-invalid)) + var(--luzmo-text-field-icon-size-invalid,var(--text-field-icon-size-invalid)))}:host([quiet][valid]) #text-field .input{padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-valid,var(--text-field-icon-spacing-inline-start-valid)) + var(--luzmo-text-field-icon-size-valid,var(--text-field-icon-size-valid)))}:host([invalid]) #text-field .icon,:host([valid]) #text-field .icon{pointer-events:all;grid-area:2/2;justify-content:center;align-items:center;margin-inline-start:auto;display:flex;position:absolute;inset-block-start:0}#text-field.luzmo-text-field--sideLabel .icon{grid-area:1/2/span 1/span 1}:host([valid]) #text-field .icon{font-size:var(--luzmo-text-field-icon-size-valid,var(--text-field-icon-size-valid));color:var(--highcontrast-text-field-icon-color-valid,var(--luzmo-text-field-icon-color-valid,var(--luzmo-positive-color)));inset-block-start:var(--luzmo-text-field-icon-spacing-block-valid,var(--text-field-icon-spacing-block-valid));inset-block-end:var(--luzmo-text-field-icon-spacing-block-valid,var(--text-field-icon-spacing-block-valid));inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-valid,var(--text-field-icon-spacing-inline-end-valid))}:host([invalid]) #text-field .icon{font-size:var(--luzmo-text-field-icon-size-invalid,var(--text-field-icon-size-invalid));color:var(--highcontrast-text-field-icon-color-invalid,var(--luzmo-text-field-icon-color-invalid,var(--luzmo-negative-color)));inset-block-start:var(--luzmo-text-field-icon-spacing-block-invalid,var(--text-field-icon-spacing-block-invalid));inset-block-end:var(--luzmo-text-field-icon-spacing-block-invalid,var(--text-field-icon-spacing-block-invalid));inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-invalid,var(--text-field-icon-spacing-inline-end-invalid))}:host([disabled]) #text-field .icon,:host([readonly]) #text-field .icon{color:#0000}:host([quiet]) .icon{padding-inline-end:0}:host([quiet][valid]) .icon{inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-quiet-valid,0px)}:host([quiet][invalid]) .icon{inset-inline-end:var(--luzmo-text-field-icon-spacing-inline-end-quiet-invalid,0px)}#text-field .luzmo-field-label{grid-area:1/1/auto/span 1;margin-block-end:var(--luzmo-text-field-label-spacing-block,0px)}:host([quiet]) .luzmo-field-label{margin-block-end:var(--luzmo-text-field-label-spacing-block-quiet,var(--text-field-label-spacing-block-quiet))}:host([disabled]) .luzmo-field-label{color:var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled))}#text-field .luzmo-help-text{grid-area:3/1/auto/span 2;margin-block-start:var(--luzmo-text-field-helptext-spacing-block,0px)}.luzmo-text-field-characterCount{inline-size:auto;font-size:var(--luzmo-text-field-character-count-font-size,var(--text-field-character-count-font-size));font-family:var(--luzmo-text-field-character-count-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-text-field-character-count-font-weight,var(--luzmo-font-weight));grid-area:1/2/auto/span 1;justify-content:flex-end;align-items:flex-end;margin-block-end:var(--luzmo-text-field-character-count-spacing-block,var(--text-field-character-count-spacing-block));margin-inline-start:var(--luzmo-text-field-character-count-spacing-inline,12px);margin-inline-end:0;padding-inline-end:calc(var(--luzmo-text-field-border-radius,var(--luzmo-border-radius)) / 2);display:inline-flex}:host([quiet]) .luzmo-text-field-characterCount{margin-block-end:var(--luzmo-text-field-character-count-spacing-block-quiet,var(--text-field-character-count-spacing-block-quiet))}.input{text-align:var(--luzmo-text-field-text-align,start);line-height:var(--luzmo-text-field-input-line-height);box-sizing:border-box;inline-size:100%;min-inline-size:var(--luzmo-text-field-min-width,1.5);block-size:var(--luzmo-text-field-height,var(--text-field-height));padding-block-start:calc(var(--luzmo-text-field-spacing-block-start,var(--luzmo-spacing-3)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)));padding-block-end:calc(var(--luzmo-text-field-spacing-block-end,var(--luzmo-spacing-3)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)));padding-inline:calc(var(--luzmo-text-field-spacing-inline,var(--text-field-spacing-inline)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)));vertical-align:top;background-color:var(--luzmo-text-field-background-color,var(--luzmo-background-color));border-color:var(--highcontrast-text-field-border-color,var(--luzmo-text-field-border-color,var(--luzmo-border-color)));border-style:solid;border-width:var(--luzmo-text-field-border-width,var(--luzmo-border-width));border-radius:var(--luzmo-text-field-border-radius,var(--luzmo-border-radius));transition:border-color var(--luzmo-text-field-animation-duration,var(--luzmo-animation-duration)) ease-in-out;font-size:var(--luzmo-text-field-placeholder-font-size,var(--text-field-placeholder-font-size));font-family:var(--luzmo-text-field-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-text-field-font-weight,var(--luzmo-font-weight));color:var(--highcontrast-text-field-text-color-default,var(--luzmo-text-field-text-color-default,var(--luzmo-font-color)));text-overflow:ellipsis;appearance:none;outline:none;grid-area:2/1/auto/span 2;margin:0}:host([type=number]) .input{-moz-appearance:text-field}:host([type=number]) .input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}:host([type=number]) .input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input:-moz-ui-invalid{box-shadow:none}.input::placeholder{opacity:1;font-size:var(--luzmo-text-field-placeholder-font-size,var(--text-field-placeholder-font-size));font-family:var(--luzmo-text-field-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-text-field-font-weight,var(--luzmo-font-weight));color:var(--highcontrast-text-field-text-color-default,var(--luzmo-text-field-placeholder-text-color-default,var(--luzmo-font-color-disabled)));transition:color var(--luzmo-text-field-animation-duration,var(--luzmo-animation-duration)) ease-in-out}.input:lang(ja)::placeholder,.input:lang(ko)::placeholder,.input:lang(zh)::placeholder{font-style:normal}:host([focused]) .input,.input:focus{border-color:var(--highcontrast-text-field-border-color-focus,var(--luzmo-text-field-border-color-focus,var(--luzmo-primary)));color:var(--highcontrast-text-field-text-color-focus,var(--luzmo-text-field-text-color-focus,var(--luzmo-font-color-focus)))}:host([focused]) .input::placeholder,.input:focus::placeholder{color:var(--highcontrast-text-field-text-color-focus,var(--luzmo-text-field-placeholder-text-color-focus,var(--luzmo-disabled-color)))}:host([focused]) .input{border-color:var(--highcontrast-text-field-border-color-keyboard-focus,var(--luzmo-text-field-border-color-keyboard-focus,var(--luzmo-primary)));outline:var(--luzmo-text-field-focus-indicator-width,0) solid;outline-color:var(--highcontrast-text-field-focus-indicator-color,var(--luzmo-text-field-focus-indicator-color,var(--luzmo-informative-color)));outline-offset:var(--luzmo-text-field-focus-indicator-gap,2px);color:var(--highcontrast-text-field-text-color-keyboard-focus,var(--luzmo-text-field-text-color-keyboard-focus,var(--luzmo-font-color-focus)))}:host([focused]) .input::placeholder{color:var(--highcontrast-text-field-text-color-keyboard-focus,var(--luzmo-text-field-placeholder-text-color-keyboard-focus,var(--luzmo-disabled-color)))}:host([valid]) .input{color:var(--highcontrast-text-field-text-color-valid,var(--luzmo-text-field-text-color-valid,var(--luzmo-font-color)));padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-valid,var(--text-field-icon-spacing-inline-start-valid)) + var(--luzmo-text-field-icon-size-valid,var(--text-field-icon-size-valid)) + var(--luzmo-text-field-icon-spacing-inline-end-valid,var(--text-field-icon-spacing-inline-end-valid)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)))}:host([invalid]) .input{color:var(--highcontrast-text-field-text-color-invalid,var(--luzmo-text-field-text-color-invalid,var(--luzmo-font-color)));border-color:var(--highcontrast-text-field-border-color-invalid-default,var(--luzmo-text-field-border-color-invalid-default,var(--luzmo-negative-color)));padding-inline-end:calc(var(--luzmo-text-field-icon-spacing-inline-start-invalid,var(--text-field-icon-spacing-inline-start-invalid)) + var(--luzmo-text-field-icon-size-invalid,var(--text-field-icon-size-invalid)) + var(--luzmo-text-field-icon-spacing-inline-end-invalid,var(--text-field-icon-spacing-inline-end-invalid)) - var(--luzmo-text-field-border-width,var(--luzmo-border-width)))}:host([invalid]) .input:focus,:host([invalid][focused]) .input,:host([invalid]:focus) .input{border-color:var(--highcontrast-text-field-border-color-invalid-focus,var(--luzmo-text-field-border-color-invalid-focus,var(--luzmo-negative-color)))}:host([invalid]) .input:focus-visible,:host([invalid][focused]) .input{border-color:var(--highcontrast-text-field-border-color-invalid-keyboard-focus,var(--luzmo-text-field-border-color-invalid-keyboard-focus,var(--luzmo-negative-color)))}.input:disabled,:host([disabled]) #text-field .input{background-color:var(--luzmo-text-field-background-color-disabled,var(--luzmo-background-color-disabled));resize:none;opacity:1;border-color:#0000}.input:disabled,.input:disabled::placeholder,:host([disabled]) #text-field .input,:host([disabled]) #text-field .input::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([border=none]) .input{border-width:0;outline:none}:host([quiet]) .input{padding-block-start:var(--luzmo-text-field-spacing-block-start,var(--luzmo-spacing-2));padding-inline:var(--luzmo-text-field-spacing-inline-quiet,0px);background-color:initial;resize:none;border-block-start-width:0;border-inline-width:0;border-radius:0;outline:none;margin-block-end:var(--luzmo-text-field-spacing-block-quiet,0px);overflow-y:hidden}:host([quiet][disabled]) .input,.input:disabled{background-color:initial;border-color:var(--luzmo-text-field-border-color-disabled,var(--luzmo-border-color-disabled))}:host([quiet][disabled]) .input,:host([quiet][disabled]) .input::placeholder,.input:disabled,.input:disabled::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-disabled-color)))}.input:read-only,:host([readonly]) #text-field .input{background-color:initial;color:var(--highcontrast-text-field-text-color-readonly,var(--luzmo-text-field-text-color-readonly,var(--luzmo-font-color)));border-color:#0000;outline:none}.input:read-only::placeholder,:host([readonly]) #text-field .input::placeholder{color:var(--highcontrast-text-field-text-color-readonly,var(--luzmo-text-field-text-color-readonly,var(--luzmo-disabled-color)));background-color:initial}@media (hover:hover){.input:hover,#text-field:hover .input{border-color:var(--highcontrast-text-field-border-color-hover,var(--luzmo-text-field-border-color-hover,rgba(var(--luzmo-primary-rgb), .3)));color:var(--highcontrast-text-field-text-color-hover,var(--luzmo-text-field-text-color-hover,var(--luzmo-font-color-hover)))}.input:hover::placeholder,#text-field:hover .input::placeholder{color:var(--highcontrast-text-field-text-color-hover,var(--luzmo-text-field-placeholder-text-color-hover,var(--luzmo-disabled-color)))}:host([focused]) .input:hover,:host([focused]) #text-field:hover .input,.input:focus:hover{border-color:var(--highcontrast-text-field-border-color-focus-hover,var(--luzmo-text-field-border-color-focus-hover,var(--luzmo-primary)))}:host([focused]) .input:hover,.input:focus:hover{color:var(--highcontrast-text-field-text-color-focus-hover,var(--luzmo-text-field-text-color-focus-hover,var(--luzmo-font-color-hover)))}:host([focused]) .input:hover::placeholder,.input:focus:hover::placeholder{color:var(--highcontrast-text-field-text-color-focus-hover,var(--luzmo-text-field-placeholder-text-color-focus-hover,var(--luzmo-disabled-color)))}:host([invalid]) .input:hover:not(.is-disabled),:host([invalid]:hover):not(.is-disabled) .input{border-color:var(--highcontrast-text-field-border-color-invalid-hover,var(--luzmo-text-field-border-color-invalid-hover,var(--luzmo-negative-color)))}:host([invalid]) .input:focus:hover,:host([invalid][focused]) .input:hover,:host([invalid]:focus) .input:hover{border-color:var(--highcontrast-text-field-border-color-invalid-focus-hover,var(--luzmo-text-field-border-color-invalid-focus-hover,var(--luzmo-negative-color)))}:host([disabled]) #text-field:hover .input{background-color:var(--luzmo-text-field-background-color-disabled,var(--luzmo-background-color-disabled));resize:none;opacity:1;border-color:#0000}:host([quiet][disabled]:hover) .input,:host([disabled]) #text-field:hover .input,:host([disabled]) #text-field:hover .input::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([quiet][disabled]:hover) .input{background-color:initial;border-color:var(--luzmo-text-field-border-color-disabled,var(--luzmo-border-color-disabled))}:host([quiet][disabled]:hover) .input::placeholder{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([readonly]) #text-field:hover .input{border-color:#0000;outline:none}:host([readonly]) #text-field:hover .input,:host([readonly]) #text-field:hover .input::placeholder{background-color:initial;color:var(--highcontrast-text-field-text-color-readonly,var(--luzmo-text-field-text-color-readonly,var(--luzmo-font-color)))}}.luzmo-text-field--sideLabel{grid-template-rows:auto auto;grid-template-columns:auto auto auto}.luzmo-text-field--sideLabel:after{grid-area:1/2/span 1/span 1}.luzmo-text-field--sideLabel .luzmo-field-label{grid-area:1/1/span 2/span 1;margin-inline-end:var(--luzmo-text-field-label-spacing-inline-side-label,var(--text-field-label-spacing-inline-side-label))}.luzmo-text-field--sideLabel .luzmo-text-field-characterCount{grid-area:1/3/auto/span 1;align-items:flex-start;margin-block-start:var(--luzmo-text-field-character-count-spacing-block-side,var(--text-field-character-count-spacing-block-side));margin-inline-start:var(--luzmo-text-field-character-count-spacing-inline-side,12px)}.luzmo-text-field--sideLabel .luzmo-help-text{grid-area:2/2/auto/span 1}.luzmo-text-field--sideLabel .input,.luzmo-text-field--sideLabel .icon{grid-area:1/2/span 1/span 1}:host([multiline]){--luzmo-text-field-input-line-height:normal}:host([multiline]) .input{min-inline-size:var(--luzmo-text-area-min-inline-size,112px);min-block-size:var(--luzmo-text-area-min-block-size,56px);resize:inherit}:host([multiline][grows]) .input{grid-row:2}:host([multiline][grows]) .luzmo-text-field--sideLabel .input{grid-row:1}:host([multiline][quiet]) .input{min-block-size:var(--luzmo-text-area-min-block-size-quiet,var(--text-area-min-block-size-quiet));resize:none;overflow-y:hidden}@media (forced-colors:active){:host{--highcontrast-text-field-border-color-hover:Highlight;--highcontrast-text-field-border-color-focus:Highlight;--highcontrast-text-field-border-color-keyboard-focus:CanvasText;--highcontrast-text-field-focus-indicator-color:Highlight;--highcontrast-text-field-border-color-invalid-default:Highlight;--highcontrast-text-field-border-color-invalid-hover:Highlight;--highcontrast-text-field-border-color-invalid-focus:Highlight;--highcontrast-text-field-border-color-invalid-keyboard-focus:Highlight;--highcontrast-text-field-text-color-valid:CanvasText;--highcontrast-text-field-text-color-invalid:CanvasText}#text-field .input{--highcontrast-text-field-text-color-default:CanvasText;--highcontrast-text-field-text-color-hover:CanvasText;--highcontrast-text-field-text-color-keyboard-focus:CanvasText;--highcontrast-text-field-text-color-disabled:GrayText;--highcontrast-text-field-text-color-readonly:CanvasText}#text-field .input::placeholder{--highcontrast-text-field-text-color-default:GrayText;--highcontrast-text-field-text-color-hover:GrayText;--highcontrast-text-field-text-color-keyboard-focus:GrayText;--highcontrast-text-field-text-color-disabled:GrayText;--highcontrast-text-field-text-color-readonly:CanvasText}}:host{inline-size:var(--luzmo-text-field-width,var(--text-field-width));flex-direction:column;display:inline-flex}:host([multiline]){resize:both}:host([multiline][readonly]){resize:none}:host([disabled]:focus-visible){outline:none}#text-field{inline-size:100%}#text-field,textarea{resize:inherit}.input{min-inline-size:var(--luzmo-text-field-min-width,1.5)}:host([focused]) .input{caret-color:var(--swc-test-caret-color);forced-color-adjust:var(--swc-test-forced-color-adjust)}#sizer{word-break:break-word;white-space:pre-line;block-size:auto;opacity:0!important}.icon,.icon-workflow{pointer-events:none}:host([multiline]) #text-field{--luzmo-text-field-input-line-height:normal;display:inline-grid}:host([multiline]) textarea{transition:box-shadow var(--luzmo-animation-duration) ease-in-out, border-color var(--luzmo-animation-duration) ease-in-out}:host([multiline]:not([quiet])) #text-field:after{box-shadow:none}:host([multiline][rows]) .input{resize:none;block-size:auto}:host([multiline][rows="1"]) .input{min-block-size:auto}:host([disabled][quiet]) #text-field .input,:host([disabled][quiet]) #text-field:hover .input,:host([quiet]) .input :disabled{border-color:var(--luzmo-text-field-border-color-disabled,var(--luzmo-border-color-disabled));color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)));background-color:#0000}:host([disabled]) #text-field .icon.icon-search,:host([readonly]) #text-field .icon.icon-search{color:var(--highcontrast-text-field-text-color-disabled,var(--luzmo-text-field-text-color-disabled,var(--luzmo-font-color-disabled)))}:host([multiline][grows]:not([quiet])) #text-field:after{grid-area:unset;min-block-size:calc(var(--luzmo-text-area-min-block-size,var(--luzmo-text-area-min-block-size)) + var(--luzmo-text-field-focus-indicator-gap,2px) * 2)}:host([multiline][grows]) .input:not(#sizer){resize:none;height:100%;position:absolute;top:0;left:0;overflow:hidden}:host([multiline][grows][max-rows]) .input:not(#sizer){overflow-y:auto}:host{--text-field-height:var(--luzmo-component-height);--text-field-width:240px;--text-field-label-spacing-block-quiet:-8px;--text-field-label-spacing-inline-side-label:12px;--text-field-placeholder-font-size:14px;--text-field-spacing-inline:12px;--text-field-icon-size-invalid:18px;--text-field-icon-size-valid:10px;--text-field-icon-spacing-inline-end-invalid:12px;--text-field-icon-spacing-inline-end-valid:15px;--text-field-icon-spacing-block-invalid:7px;--text-field-icon-spacing-block-valid:4px;--text-field-icon-spacing-inline-start-invalid:var(--luzmo-spacing-4);--text-field-icon-spacing-inline-start-valid:var(--luzmo-spacing-4);--text-field-character-count-font-size:var(--luzmo-font-size-s);--text-field-character-count-spacing-block:5px;--text-field-character-count-spacing-block-quiet:-3px;--text-field-character-count-spacing-block-side:8px;--text-area-min-block-size-quiet:var(--luzmo-component-height)}:host([size=s]){--text-field-height:var(--luzmo-component-height-s);--text-field-width:220px;--text-field-label-spacing-block-quiet:-8px;--text-field-label-spacing-inline-side-label:8px;--text-field-placeholder-font-size:12px;--text-field-spacing-inline:9px;--text-field-icon-size-invalid:16px;--text-field-icon-size-valid:10px;--text-field-icon-spacing-inline-end-invalid:9px;--text-field-icon-spacing-inline-end-valid:11px;--text-field-icon-spacing-block-invalid:2px;--text-field-icon-spacing-block-valid:-1px;--text-field-icon-spacing-inline-start-invalid:var(--luzmo-spacing-3);--text-field-icon-spacing-inline-start-valid:var(--luzmo-spacing-3);--text-field-character-count-font-size:var(--luzmo-font-size-xs);--text-field-character-count-spacing-block:5px;--text-field-character-count-spacing-block-quiet:-3px;--text-field-character-count-spacing-block-side:4px;--text-area-min-block-size-quiet:var(--luzmo-component-height-s)}:host([size=l]){--text-field-height:var(--luzmo-component-height-l);--text-field-width:280px;--text-field-label-spacing-block-quiet:-12px;--text-field-label-spacing-inline-side-label:12px;--text-field-placeholder-font-size:16px;--text-field-spacing-inline:15px;--text-field-icon-size-invalid:20px;--text-field-icon-size-valid:12px;--text-field-icon-spacing-inline-end-invalid:15px;--text-field-icon-spacing-inline-end-valid:17px;--text-field-icon-spacing-block-invalid:10px;--text-field-icon-spacing-block-valid:8px;--text-field-icon-spacing-inline-start-invalid:15px;--text-field-icon-spacing-inline-start-valid:15px;--text-field-character-count-font-size:var(--luzmo-font-size);--text-field-character-count-spacing-block:9px;--text-field-character-count-spacing-block-quiet:-3px;--text-field-character-count-spacing-block-side:11px;--text-area-min-block-size-quiet:var(--luzmo-component-height-l)}:host([size=xl]){--text-field-height:var(--luzmo-component-height-xl);--text-field-width:320px;--text-field-label-spacing-block-quiet:-15px;--text-field-label-spacing-inline-side-label:12px;--text-field-placeholder-font-size:18px;--text-field-spacing-inline:15px;--text-field-icon-size-invalid:22px;--text-field-icon-size-valid:14px;--text-field-icon-spacing-inline-end-invalid:18px;--text-field-icon-spacing-inline-end-valid:20px;--text-field-icon-spacing-block-invalid:12px;--text-field-icon-spacing-block-valid:13px;--text-field-icon-spacing-inline-start-invalid:18px;--text-field-icon-spacing-inline-start-valid:18px;--text-field-character-count-font-size:var(--luzmo-font-size-l);--text-field-character-count-spacing-block:11px;--text-field-character-count-spacing-block-quiet:-4px;--text-field-character-count-spacing-block-side:14px;--text-area-min-block-size-quiet:var(--luzmo-component-height-xl)}`;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -15,37 +15,4 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
|
|
19
|
-
<luzmo-icon
|
|
20
|
-
.icon=${u.p1}
|
|
21
|
-
label=${a||"Information"}
|
|
22
|
-
class="type"
|
|
23
|
-
></luzmo-icon>
|
|
24
|
-
`;case"negative":return o.x`
|
|
25
|
-
<luzmo-icon
|
|
26
|
-
.icon=${u.I}
|
|
27
|
-
label=${a||"Error"}
|
|
28
|
-
class="type"
|
|
29
|
-
></luzmo-icon>
|
|
30
|
-
`;case"positive":return o.x`
|
|
31
|
-
<luzmo-icon
|
|
32
|
-
.icon=${u.C0}
|
|
33
|
-
label=${a||"Success"}
|
|
34
|
-
class="type"
|
|
35
|
-
></luzmo-icon>
|
|
36
|
-
`;default:return o.x``}}startCountdown(){this.countdown(),this.addEventListener("focusin",this.holdCountdown)}stopCountdown(){cancelAnimationFrame(this.nextCount),this.countdownStart=0}shouldClose(){this.dispatchEvent(new CustomEvent("close",{composed:!0,bubbles:!0,cancelable:!0}))&&this.close()}close(){this.open=!1}render(){return o.x`
|
|
37
|
-
${this.renderIcon(this.variant,this.iconLabel)}
|
|
38
|
-
<div class="body" role="alert">
|
|
39
|
-
<div class="content">
|
|
40
|
-
<slot></slot>
|
|
41
|
-
</div>
|
|
42
|
-
<slot name="action"></slot>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="buttons">
|
|
45
|
-
<luzmo-close-button
|
|
46
|
-
@click=${this.shouldClose}
|
|
47
|
-
label="Close"
|
|
48
|
-
static-color="white"
|
|
49
|
-
></luzmo-close-button>
|
|
50
|
-
</div>
|
|
51
|
-
`}updated(t){super.updated(t),t.has("open")&&(this.open?this.timeout&&this.startCountdown():this.timeout&&this.stopCountdown()),t.has("timeout")&&(this.timeout!==null&&this.open?this.startCountdown():this.stopCountdown())}}s([o.n({type:Boolean,reflect:!0})],e.prototype,"open",2);s([o.n({type:Number})],e.prototype,"timeout",1);s([o.n({type:String})],e.prototype,"variant",1);s([o.n({type:String,attribute:"icon-label"})],e.prototype,"iconLabel",2);customElements.get("luzmo-toast")||customElements.define("luzmo-toast",e);exports.LuzmoToast=e;
|
|
18
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../toast-CJSQUzoW.cjs`);exports.LuzmoToast=e.t;
|