@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
package/components/tabs/index.js
CHANGED
|
@@ -15,622 +15,11 @@
|
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import { e as
|
|
25
|
-
|
|
26
|
-
import { S as T } from "../sized-mixin-D4ACoVUr.js";
|
|
27
|
-
import { F as U } from "../focusable-BxtpnzWp.js";
|
|
28
|
-
import { R as B } from "../roving-tabindex-DOg4z6ZU.js";
|
|
29
|
-
import { k as F, S as O } from "../luzmo-icons-4nDFv1Lq.js";
|
|
30
|
-
import { r as R } from "../state-Deh-vKYE.js";
|
|
31
|
-
import { o as D } from "../query-assigned-elements-DjfhL1cl.js";
|
|
32
|
-
import "../action-button/index.js";
|
|
33
|
-
import "../icon/index.js";
|
|
34
|
-
const E = () => {
|
|
35
|
-
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
36
|
-
const r = document.createElement("style");
|
|
37
|
-
r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
E();
|
|
41
|
-
const W = ':host{font-family:var(--luzmo-tab-font-family, var(--luzmo-font-family));box-sizing:border-box;block-size:calc(var(--luzmo-tabs-item-height, var(--tabs-item-height)) - var(--luzmo-tabs-divider-size, var(--tabs-divider-size)));z-index:1;white-space:nowrap;color:var(--highcontrast-tabs-color, var(--luzmo-tabs-color, var(--tabs-color)));transition:color var(--luzmo-tabs-animation-duration, var(--tabs-animation-duration)) ease-out;cursor:pointer;outline:none;-webkit-text-decoration:none;text-decoration:none;position:relative}::slotted([slot=icon]){block-size:var(--luzmo-tabs-icon-size, var(--tabs-icon-size));inline-size:var(--luzmo-tabs-icon-size, var(--tabs-icon-size));margin-block-start:var(--luzmo-tabs-top-to-icon, var(--tabs-top-to-icon))}[name=icon]+#item-label{margin-inline-start:var(--luzmo-tabs-icon-to-text, var(--tabs-icon-to-text))}:host:before{content:"";box-sizing:border-box;block-size:calc(100% - var(--luzmo-tabs-top-to-text, var(--tabs-top-to-text)));inline-size:calc(100% + var(--luzmo-tabs-focus-indicator-gap, var(--tabs-focus-indicator-gap)) * 2);border:var(--luzmo-tabs-focus-indicator-width, var(--tabs-focus-indicator-width)) solid transparent;border-radius:var(--luzmo-tabs-focus-indicator-border-radius, var(--tabs-focus-indicator-border-radius));pointer-events:none;position:absolute;inset-block-start:calc(var(--luzmo-tabs-top-to-text, var(--tabs-top-to-text)) / 2);inset-inline-start:calc(var(--luzmo-tabs-focus-indicator-gap, var(--tabs-focus-indicator-gap)) * -1);inset-inline-end:calc(var(--luzmo-tabs-focus-indicator-gap, var(--tabs-focus-indicator-gap)) * -1)}@media (hover: hover){:host(:hover){color:var(--highcontrast-tabs-color-hover, var(--luzmo-tabs-color-hover, var(--tabs-color-hover)))}}:host([selected]){color:var(--highcontrast-tabs-color-selected, var(--luzmo-tabs-color-selected, var(--tabs-color-selected)))}:host([disabled]){cursor:default;color:var(--highcontrast-tabs-color-disabled, var(--luzmo-tabs-color-disabled, var(--tabs-color-disabled)))}:host([disabled]) #item-label{cursor:default}:host(:focus-visible){color:var(--highcontrast-tabs-color-key-focus, var(--luzmo-tabs-color-key-focus, var(--tabs-color-key-focus)))}:host(:focus-visible):before{border-color:var(--highcontrast-tabs-focus-indicator-color, var(--luzmo-tabs-focus-indicator-color, var(--tabs-focus-indicator-color)))}#item-label{cursor:pointer;vertical-align:top;font-family:var(--luzmo-tabs-font-family, var(--tabs-font-family));font-style:var(--luzmo-tabs-font-style, var(--tabs-font-style));font-size:var(--luzmo-tabs-font-size, var(--tabs-font-size));font-weight:var(--luzmo-tabs-font-weight, var(--tabs-font-weight));line-height:var(--luzmo-tabs-line-height, var(--tabs-line-height));margin-block-start:var(--luzmo-tabs-top-to-text, var(--tabs-top-to-text));margin-block-end:var(--luzmo-tabs-bottom-to-text, var(--tabs-bottom-to-text));-webkit-text-decoration:none;text-decoration:none;display:inline-block}#item-label:empty{display:none}:host{scroll-margin-inline:var(--luzmo-tabs-item-horizontal-spacing, var(--tabs-item-horizontal-spacing))}:host([disabled]){pointer-events:none}#item-label[hidden]{display:none}@media (forced-colors: active){:host:before{background-color:ButtonFace}:host ::slotted([slot=icon]){z-index:1;position:relative;color:inherit}#item-label{position:relative;z-index:1}:host([selected]){color:HighlightText}:host([selected]) ::slotted([slot=icon]){color:HighlightText}:host([selected]) #item-label{color:HighlightText}}:host([vertical]){display:flex;flex-direction:column;justify-content:center;align-items:center;height:auto}:host([dir][vertical]) slot[name=icon]+#item-label{margin-inline-start:0;margin-block:calc(var(--luzmo-tabs-top-to-text, var(--tabs-top-to-text)) / 2) calc(var(--luzmo-tabs-bottom-to-text, var(--tabs-bottom-to-text)) / 2)}:host([vertical]) ::slotted([slot=icon]){margin-block-start:calc(var(--luzmo-tabs-top-to-icon, var(--tabs-top-to-icon)) / 2)}';
|
|
42
|
-
var H = Object.defineProperty, z = (r, t, o, i) => {
|
|
43
|
-
for (var e = void 0, a = r.length - 1, s; a >= 0; a--)
|
|
44
|
-
(s = r[a]) && (e = s(t, o, e) || e);
|
|
45
|
-
return e && H(t, o, e), e;
|
|
46
|
-
};
|
|
47
|
-
class h extends _(
|
|
48
|
-
q(P(g, '[slot="icon"]'), "")
|
|
49
|
-
) {
|
|
50
|
-
constructor() {
|
|
51
|
-
super(...arguments), this.disabled = !1, this.label = "", this.selected = !1, this.vertical = !1, this.value = "";
|
|
52
|
-
}
|
|
53
|
-
static get styles() {
|
|
54
|
-
return [b(W)];
|
|
55
|
-
}
|
|
56
|
-
get hasIcon() {
|
|
57
|
-
return this.slotContentIsPresent;
|
|
58
|
-
}
|
|
59
|
-
get hasLabel() {
|
|
60
|
-
return !!this.label || this.slotHasContent;
|
|
61
|
-
}
|
|
62
|
-
render() {
|
|
63
|
-
return v`
|
|
64
|
-
${this.hasIcon ? v` <slot name="icon"></slot> ` : S}
|
|
65
|
-
<label id="item-label" ?hidden=${!this.hasLabel}>
|
|
66
|
-
${this.slotHasContent ? S : this.label}
|
|
67
|
-
<slot>${this.label}</slot>
|
|
68
|
-
</label>
|
|
69
|
-
`;
|
|
70
|
-
}
|
|
71
|
-
firstUpdated(t) {
|
|
72
|
-
super.firstUpdated(t), this.setAttribute("role", "tab"), this.hasAttribute("id") || (this.id = `luzmo-tab-${C()}`);
|
|
73
|
-
}
|
|
74
|
-
updated(t) {
|
|
75
|
-
super.updated(t), t.has("selected") && (this.setAttribute("aria-selected", this.selected ? "true" : "false"), this.setAttribute("tabindex", this.selected ? "0" : "-1")), t.has("disabled") && (this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled"));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
z([
|
|
79
|
-
l({ type: Boolean, reflect: !0 })
|
|
80
|
-
], h.prototype, "disabled");
|
|
81
|
-
z([
|
|
82
|
-
l({ reflect: !0 })
|
|
83
|
-
], h.prototype, "label");
|
|
84
|
-
z([
|
|
85
|
-
l({ type: Boolean, reflect: !0 })
|
|
86
|
-
], h.prototype, "selected");
|
|
87
|
-
z([
|
|
88
|
-
l({ type: Boolean, reflect: !0 })
|
|
89
|
-
], h.prototype, "vertical");
|
|
90
|
-
z([
|
|
91
|
-
l({ type: String, reflect: !0 })
|
|
92
|
-
], h.prototype, "value");
|
|
93
|
-
const M = ":host{display:inline-flex;font-family:var(--luzmo-tab-panel-font-family, var(--luzmo-font-family))}:host(:not([selected])){display:none}:host(:focus-visible){outline:var(--luzmo-tab-panel-indicator-color, var(--luzmo-indicator-color)) solid var(--luzmo-tab-panel-indicator-width, var(--luzmo-indicator-width))}";
|
|
94
|
-
var j = Object.defineProperty, L = (r, t, o, i) => {
|
|
95
|
-
for (var e = void 0, a = r.length - 1, s; a >= 0; a--)
|
|
96
|
-
(s = r[a]) && (e = s(t, o, e) || e);
|
|
97
|
-
return e && j(t, o, e), e;
|
|
98
|
-
};
|
|
99
|
-
class w extends g {
|
|
100
|
-
constructor() {
|
|
101
|
-
super(...arguments), this.selected = !1, this.value = "";
|
|
102
|
-
}
|
|
103
|
-
static get styles() {
|
|
104
|
-
return [b(M)];
|
|
105
|
-
}
|
|
106
|
-
handleFocusin() {
|
|
107
|
-
this.removeAttribute("tabindex");
|
|
108
|
-
}
|
|
109
|
-
handleFocusout() {
|
|
110
|
-
this.tabIndex = this.selected ? 0 : -1;
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
return v`
|
|
114
|
-
<slot
|
|
115
|
-
@focusin=${this.handleFocusin}
|
|
116
|
-
@focusout=${this.handleFocusout}
|
|
117
|
-
></slot>
|
|
118
|
-
`;
|
|
119
|
-
}
|
|
120
|
-
firstUpdated() {
|
|
121
|
-
this.slot = "tab-panel", this.setAttribute("role", "tabpanel"), this.tabIndex = 0, this.hasAttribute("id") || (this.id = `luzmo-tab-panel-${C()}`);
|
|
122
|
-
}
|
|
123
|
-
updated(t) {
|
|
124
|
-
t.has("selected") && (this.selected ? (this.removeAttribute("aria-hidden"), this.tabIndex = 0) : (this.setAttribute("aria-hidden", "true"), this.tabIndex = -1));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
L([
|
|
128
|
-
l({ type: Boolean, reflect: !0 })
|
|
129
|
-
], w.prototype, "selected");
|
|
130
|
-
L([
|
|
131
|
-
l({ type: String, reflect: !0 })
|
|
132
|
-
], w.prototype, "value");
|
|
133
|
-
/**
|
|
134
|
-
* @license
|
|
135
|
-
* Copyright 2021 Google LLC
|
|
136
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
137
|
-
*/
|
|
138
|
-
class N {
|
|
139
|
-
constructor(t, { target: o, config: i, callback: e, skipInitial: a }) {
|
|
140
|
-
this.t = /* @__PURE__ */ new Set(), this.o = !1, this.i = !1, this.h = t, o !== null && this.t.add(o ?? t), this.o = a ?? this.o, this.callback = e, window.IntersectionObserver ? (this.u = new IntersectionObserver((s) => {
|
|
141
|
-
const f = this.i;
|
|
142
|
-
this.i = !1, this.o && f || (this.handleChanges(s), this.h.requestUpdate());
|
|
143
|
-
}, i), t.addController(this)) : console.warn("IntersectionController error: browser does not support IntersectionObserver.");
|
|
144
|
-
}
|
|
145
|
-
handleChanges(t) {
|
|
146
|
-
var o;
|
|
147
|
-
this.value = (o = this.callback) == null ? void 0 : o.call(this, t, this.u);
|
|
148
|
-
}
|
|
149
|
-
hostConnected() {
|
|
150
|
-
for (const t of this.t) this.observe(t);
|
|
151
|
-
}
|
|
152
|
-
hostDisconnected() {
|
|
153
|
-
this.disconnect();
|
|
154
|
-
}
|
|
155
|
-
async hostUpdated() {
|
|
156
|
-
const t = this.u.takeRecords();
|
|
157
|
-
t.length && this.handleChanges(t);
|
|
158
|
-
}
|
|
159
|
-
observe(t) {
|
|
160
|
-
this.t.add(t), this.u.observe(t), this.i = !0;
|
|
161
|
-
}
|
|
162
|
-
unobserve(t) {
|
|
163
|
-
this.t.delete(t), this.u.unobserve(t);
|
|
164
|
-
}
|
|
165
|
-
disconnect() {
|
|
166
|
-
this.u.disconnect();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* @license
|
|
171
|
-
* Copyright 2021 Google LLC
|
|
172
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
173
|
-
*/
|
|
174
|
-
class $ {
|
|
175
|
-
constructor(t, { target: o, config: i, callback: e, skipInitial: a }) {
|
|
176
|
-
this.t = /* @__PURE__ */ new Set(), this.o = !1, this.i = !1, this.h = t, o !== null && this.t.add(o ?? t), this.l = i, this.o = a ?? this.o, this.callback = e, window.ResizeObserver ? (this.u = new ResizeObserver((s) => {
|
|
177
|
-
this.handleChanges(s), this.h.requestUpdate();
|
|
178
|
-
}), t.addController(this)) : console.warn("ResizeController error: browser does not support ResizeObserver.");
|
|
179
|
-
}
|
|
180
|
-
handleChanges(t) {
|
|
181
|
-
var o;
|
|
182
|
-
this.value = (o = this.callback) == null ? void 0 : o.call(this, t, this.u);
|
|
183
|
-
}
|
|
184
|
-
hostConnected() {
|
|
185
|
-
for (const t of this.t) this.observe(t);
|
|
186
|
-
}
|
|
187
|
-
hostDisconnected() {
|
|
188
|
-
this.disconnect();
|
|
189
|
-
}
|
|
190
|
-
async hostUpdated() {
|
|
191
|
-
!this.o && this.i && this.handleChanges([]), this.i = !1;
|
|
192
|
-
}
|
|
193
|
-
observe(t) {
|
|
194
|
-
this.t.add(t), this.u.observe(t, this.l), this.i = !0, this.h.requestUpdate();
|
|
195
|
-
}
|
|
196
|
-
unobserve(t) {
|
|
197
|
-
this.t.delete(t), this.u.unobserve(t);
|
|
198
|
-
}
|
|
199
|
-
disconnect() {
|
|
200
|
-
this.u.disconnect();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
const I = "#list{--tabs-item-height: calc( var(--luzmo-component-height) + var(--luzmo-spacing-5) );--tabs-item-horizontal-spacing: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-3) );--tabs-item-vertical-spacing: var(--luzmo-spacing-2);--tabs-start-to-edge: var(--luzmo-spacing-4);--tabs-top-to-text: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--tabs-bottom-to-text: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--tabs-icon-size: var(--luzmo-icon-size-s);--tabs-icon-to-text: var(--luzmo-spacing-3);--tabs-top-to-icon: var(--luzmo-spacing-4);--tabs-focus-indicator-gap: var(--luzmo-spacing-3);--tabs-font-size: var(--luzmo-font-size)}:host([size=s]) #list{--tabs-item-height: calc( var(--luzmo-component-height-s) + var(--luzmo-spacing-4) );--tabs-item-horizontal-spacing: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--tabs-item-vertical-spacing: var(--luzmo-spacing-2);--tabs-start-to-edge: var(--luzmo-spacing-4);--tabs-top-to-text: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--tabs-bottom-to-text: var(--luzmo-spacing-4);--tabs-icon-size: var(--luzmo-icon-size-xs);--tabs-icon-to-text: var(--luzmo-spacing-3);--tabs-top-to-icon: var(--luzmo-spacing-4);--tabs-focus-indicator-gap: var(--luzmo-spacing-3);--tabs-font-size: var(--luzmo-font-size-s)}:host([size=l]) #list{--tabs-item-height: calc( var(--luzmo-component-height-l) + var(--luzmo-spacing-5) );--tabs-item-horizontal-spacing: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-4) );--tabs-item-vertical-spacing: var(--luzmo-spacing-2);--tabs-start-to-edge: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--tabs-top-to-text: calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--tabs-bottom-to-text: calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--tabs-icon-size: var(--luzmo-icon-size-m);--tabs-icon-to-text: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--tabs-top-to-icon: var(--luzmo-spacing-5);--tabs-focus-indicator-gap: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--tabs-font-size: var(--luzmo-font-size-l)}:host([size=xl]) #list{--tabs-item-height: calc( var(--luzmo-component-height-xl) + var(--luzmo-spacing-5) );--tabs-item-horizontal-spacing: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-4) );--tabs-item-vertical-spacing: var(--luzmo-spacing-2);--tabs-start-to-edge: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--tabs-top-to-text: calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--tabs-bottom-to-text: calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--tabs-icon-size: var(--luzmo-icon-size-l);--tabs-icon-to-text: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--tabs-top-to-icon: var(--luzmo-spacing-5);--tabs-focus-indicator-gap: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--tabs-font-size: var(--luzmo-font-size-xl)}:host([compact]) #list{--luzmo-tabs-item-height: var( --luzmo-tabs-item-height-compact, var(--luzmo-component-height) );--luzmo-tabs-top-to-text: var( --luzmo-tabs-top-to-text-compact, calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1)) );--luzmo-tabs-bottom-to-text: var( --luzmo-tabs-bottom-to-text-compact, calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1)) );--luzmo-tabs-top-to-icon: var( --luzmo-tabs-top-to-icon-compact, var(--luzmo-spacing-2) )}:host([size=s][compact]) #list{--luzmo-tabs-item-height: var( --luzmo-tabs-item-height-compact, var(--luzmo-component-height-s) );--luzmo-tabs-top-to-text: var( --luzmo-tabs-top-to-text-compact, var(--luzmo-spacing-2) );--luzmo-tabs-bottom-to-text: var( --luzmo-tabs-bottom-to-text-compact, var(--luzmo-spacing-2) );--luzmo-tabs-top-to-icon: var( --luzmo-tabs-top-to-icon-compact, var(--luzmo-spacing-1) )}:host([size=l][compact]) #list{--luzmo-tabs-item-height: var( --luzmo-tabs-item-height-compact, var(--luzmo-component-height-l) );--luzmo-tabs-top-to-text: var( --luzmo-tabs-top-to-text-compact, calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1)) );--luzmo-tabs-bottom-to-text: var( --luzmo-tabs-bottom-to-text-compact, calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1)) );--luzmo-tabs-top-to-icon: var( --luzmo-tabs-top-to-icon-compact, calc(var(--luzmo-spacing-3)) )}:host([size=xl][compact]) #list{--luzmo-tabs-item-height: var( --luzmo-tabs-item-height-compact, var(--luzmo-component-height-xl) );--luzmo-tabs-top-to-text: var( --luzmo-tabs-top-to-text-compact, var(--luzmo-spacing-4) );--luzmo-tabs-bottom-to-text: var( --luzmo-tabs-bottom-to-text-compact, var(--luzmo-spacing-4) );--luzmo-tabs-top-to-icon: var( --luzmo-tabs-top-to-icon-compact, calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1)) )}", X = "#list{--tabs-color: var(--luzmo-font-color);--tabs-color-selected: var(--luzmo-font-color-down);--tabs-color-hover: var(--luzmo-font-color-hover);--tabs-color-key-focus: var(--luzmo-font-color-focus);--tabs-color-disabled: var(--luzmo-disabled-color);--tabs-font-family: var(--luzmo-font-family);--tabs-font-style: var(--luzmo-font-style);--tabs-font-size: var(--luzmo-font-size);--tabs-line-height: var(--luzmo-line-height);--tabs-focus-indicator-width: var(--luzmo-indicator-width);--tabs-focus-indicator-border-radius: var(--luzmo-border-radius);--tabs-focus-indicator-color: var(--luzmo-indicator-color);--tabs-selection-indicator-color: var(--luzmo-font-color-down);--tabs-list-background-direction: top;--tabs-divider-size: 2px;--tabs-divider-border-radius: 1px;--tabs-animation-duration: var(--luzmo-animation-duration);--tabs-animation-ease: ease-in-out}:host([emphasized]) #list{--luzmo-tabs-color-selected: var( --luzmo-tabs-color-selected-emphasized, var(--luzmo-primary) );--luzmo-tabs-color-hover: var( --luzmo-tabs-color-hover-emphasized, var(--luzmo-primary-hover) );--luzmo-tabs-color-key-focus: var( --luzmo-tabs-color-key-focus-emphasized, var(--luzmo-primary-focus) );--luzmo-tabs-selection-indicator-color: var( --luzmo-tabs-selection-indicator-color-emphasized, var(--luzmo-primary-down) )}:host([direction^=vertical]) #list{--luzmo-tabs-list-background-direction: var( --luzmo-tabs-list-background-direction-vertical, right )}:host([direction^=vertical-right]) #list{--luzmo-tabs-list-background-direction: var( --luzmo-tabs-list-background-direction-vertical-right, left )}:host([direction^=vertical]) #list:dir(rtl),:host([dir=rtl][direction^=vertical]) #list{--luzmo-tabs-list-background-direction: var( --luzmo-tabs-list-background-direction-vertical, left )}:host([direction^=vertical-right]) #list:dir(rtl),:host([dir=rtl][direction^=vertical-right]) #list{--luzmo-tabs-list-background-direction: var( --luzmo-tabs-list-background-direction-vertical, right )}#list{z-index:0;vertical-align:top;background:linear-gradient(to var(--luzmo-tabs-list-background-direction, var(--tabs-list-background-direction)),var(--highcontrast-tabs-divider-background-color, var(--luzmo-tabs-divider-background-color, var(--tabs-divider-background-color))) 0 var(--luzmo-tabs-divider-size, var(--tabs-divider-size)),transparent var(--luzmo-tabs-divider-size, var(--tabs-divider-size)));margin:0;padding-block:0;display:flex;position:relative}::slotted([selected]:not([slot])){color:var(--highcontrast-tabs-color-selected, var(--luzmo-tabs-color-selected, var(--tabs-color-selected)))}::slotted([disabled]:not([slot])){cursor:default;color:var(--highcontrast-tabs-color-disabled, var(--luzmo-tabs-color-disabled, var(--tabs-color-disabled)))}#selection-indicator{background-color:var(--highcontrast-tabs-selection-indicator-color, var(--luzmo-tabs-selection-indicator-color, var(--tabs-selection-indicator-color)));z-index:0;transition:transform var(--luzmo-tabs-animation-duration, var(--tabs-animation-duration)) var(--luzmo-tabs-animation-ease, var(--tabs-animation-ease));transform-origin:0 0;border-radius:var(--luzmo-tabs-divider-border-radius, var(--tabs-divider-border-radius));position:absolute;inset-inline-start:0}:host([direction^=horizontal]) #list{align-items:center}:host([direction^=horizontal]) #list ::slotted(:not([slot])){vertical-align:top}:host([direction^=horizontal]) ::slotted(:not(:first-child)){margin-inline-start:var(--luzmo-tabs-item-horizontal-spacing, var(--tabs-item-horizontal-spacing))}:host([direction^=horizontal]) #list #selection-indicator{block-size:var(--luzmo-tabs-divider-size, var(--tabs-divider-size));position:absolute;inset-block-end:0}:host([direction^=horizontal][compact]) #list{box-sizing:initial;align-items:end}:host([quiet]) #list{background:none;border-color:transparent;display:inline-flex}:host([quiet]) #selection-indicator{padding-inline-start:var(--luzmo-tabs-start-to-item-quiet)}:host([direction^=vertical]) #list,:host([direction^=vertical-right]) #list{flex-direction:column;padding:0;display:inline-flex}:host([direction^=vertical-right][quiet]) #list,:host([direction^=vertical][quiet]) #list{border-color:transparent}:host([direction^=vertical]) #list ::slotted(:not([slot])),:host([direction^=vertical-right]) #list ::slotted(:not([slot])){block-size:var(--luzmo-tabs-item-height, var(--tabs-item-height));line-height:var(--luzmo-tabs-item-height, var(--tabs-item-height));margin-block-end:var(--luzmo-tabs-item-vertical-spacing, var(--tabs-item-vertical-spacing));margin-inline-start:var(--luzmo-tabs-start-to-edge, var(--tabs-start-to-edge));margin-inline-end:var(--luzmo-tabs-start-to-edge, var(--tabs-start-to-edge));padding-block:0}:host([direction^=vertical]) #list ::slotted(:not([slot])):before,:host([direction^=vertical-right]) #list ::slotted(:not([slot])):before{inset-inline-start:calc(var(--luzmo-tabs-focus-indicator-gap, var(--tabs-focus-indicator-gap)) * -1)}:host([direction^=vertical]) #list #selection-indicator,:host([direction^=vertical-right]) #list #selection-indicator{inline-size:var(--luzmo-tabs-divider-size, var(--tabs-divider-size));position:absolute;inset-block-start:0;inset-inline-start:0}:host([direction^=vertical-right]) #list #selection-indicator{inset-inline:auto 0}@media (forced-colors: active){#list{--highcontrast-tabs-divider-background-color: var(--luzmo-border-color);--highcontrast-tabs-selection-indicator-color: Highlight;--highcontrast-tabs-focus-indicator-color: CanvasText;--highcontrast-tabs-focus-indicator-background-color: Highlight;--highcontrast-tabs-color: ButtonText;--highcontrast-tabs-color-hover: ButtonText;--highcontrast-tabs-color-selected: HighlightText;--highcontrast-tabs-color-key-focus: ButtonText;--highcontrast-tabs-color-disabled: GrayText;forced-color-adjust:none}#list ::slotted([selected]:not([slot])):before{background-color:var(--highcontrast-tabs-focus-indicator-background-color)}:host([direction^=vertical][compact]) #list #list ::slotted(:not([slot])):before{block-size:100%;inset-block-start:0}:host([quiet]) #list{background:linear-gradient(to var(--luzmo-tabs-list-background-direction, var(--tabs-list-background-direction)),var(--highcontrast-tabs-divider-background-color, var(--luzmo-tabs-divider-background-color, var(--tabs-divider-background-color))) 0 var(--luzmo-tabs-divider-size, var(--tabs-divider-size)),transparent var(--luzmo-tabs-divider-size, var(--tabs-divider-size)))}}#list{--tabs-font-weight: var(--luzmo-font-weight);--tabs-divider-background-color: var(--luzmo-border-color)}:host{display:grid;grid-template-columns:100%;position:relative}:host(:not([direction^=vertical])){grid-template-rows:auto 1fr}:host([direction^=vertical]){grid-template-columns:auto 1fr}:host([dir=rtl]) #selection-indicator{left:0;right:auto}:host([direction=vertical-right]) #list #selection-indicator{inset-inline:auto 0}#list{justify-content:var(--luzmo-tabs-list-justify-content)}:host([disabled]) #list{pointer-events:none}:host([disabled]) #list #selection-indicator{background-color:var(--luzmo-tabs-color-disabled, var(--tabs-color-disabled))}:host([disabled]) ::slotted(sp-tab){color:var(--luzmo-tabs-color-disabled, var(--tabs-color-disabled))}:host([direction=vertical-right]) #list #selection-indicator,:host([direction=vertical]) #list #selection-indicator{inset-block-start:0}#selection-indicator.first-position{transition:none}:host([dir][direction=horizontal]) #list.scroll{scrollbar-width:none;overflow:auto hidden}:host([dir][direction=horizontal]) #list.scroll::-webkit-scrollbar{display:none}";
|
|
204
|
-
var Y = Object.defineProperty, c = (r, t, o, i) => {
|
|
205
|
-
for (var e = void 0, a = r.length - 1, s; a >= 0; a--)
|
|
206
|
-
(s = r[a]) && (e = s(t, o, e) || e);
|
|
207
|
-
return e && Y(t, o, e), e;
|
|
208
|
-
};
|
|
209
|
-
const m = {
|
|
210
|
-
baseSize: 100,
|
|
211
|
-
noSelectionStyle: "transform: translateX(0px) scaleX(0) scaleY(0)",
|
|
212
|
-
transformX(r, t) {
|
|
213
|
-
const o = t / this.baseSize;
|
|
214
|
-
return `transform: translateX(${r}px) scaleX(${o});`;
|
|
215
|
-
},
|
|
216
|
-
transformY(r, t) {
|
|
217
|
-
const o = t / this.baseSize;
|
|
218
|
-
return `transform: translateY(${r}px) scaleY(${o});`;
|
|
219
|
-
},
|
|
220
|
-
baseStyles() {
|
|
221
|
-
return A`
|
|
222
|
-
:host([direction='vertical-right']) #selection-indicator,
|
|
223
|
-
:host([direction='vertical']) #selection-indicator {
|
|
224
|
-
height: ${this.baseSize}px;
|
|
225
|
-
}
|
|
226
|
-
:host([dir][direction='horizontal']) #selection-indicator {
|
|
227
|
-
width: ${this.baseSize}px;
|
|
228
|
-
}
|
|
229
|
-
`;
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
function G(r, t, o, i) {
|
|
233
|
-
const e = r + (t === "rtl" ? -1 : 1), a = o[e], s = i.scrollLeft + i.offsetWidth;
|
|
234
|
-
return a ? a.offsetLeft - i.offsetWidth : s;
|
|
235
|
-
}
|
|
236
|
-
function K(r, t, o, i) {
|
|
237
|
-
const e = r + (t === "rtl" ? 1 : -1), a = o[e], s = t === "rtl" ? -i.offsetWidth : 0;
|
|
238
|
-
return a ? a.offsetLeft + a.offsetWidth : s;
|
|
239
|
-
}
|
|
240
|
-
class n extends T(U, { noDefaultSize: !0 }) {
|
|
241
|
-
constructor() {
|
|
242
|
-
super(), this.auto = !1, this.compact = !1, this.direction = "horizontal", this.emphasized = !1, this.label = "", this.enableTabsScroll = !1, this.quiet = !1, this.selectionIndicatorStyle = m.noSelectionStyle, this.shouldAnimate = !1, this.selected = "", this._tabs = [], this.resizeController = new $(this, {
|
|
243
|
-
callback: () => {
|
|
244
|
-
this.updateSelectionIndicator();
|
|
245
|
-
}
|
|
246
|
-
}), this.rovingTabindexController = new B(this, {
|
|
247
|
-
focusInIndex: (t) => {
|
|
248
|
-
let o = 0;
|
|
249
|
-
return t.find((e, a) => {
|
|
250
|
-
const s = this.selected ? e.value === this.selected : !e.disabled;
|
|
251
|
-
return o = a, s;
|
|
252
|
-
}) ? o : -1;
|
|
253
|
-
},
|
|
254
|
-
direction: () => "both",
|
|
255
|
-
elementEnterAction: (t) => {
|
|
256
|
-
this.auto && (this.shouldAnimate = !0, this.selectTarget(t));
|
|
257
|
-
},
|
|
258
|
-
elements: () => this.tabs,
|
|
259
|
-
isFocusableElement: (t) => !this.disabled && !t.disabled,
|
|
260
|
-
listenerScope: () => this.tabList
|
|
261
|
-
}), this.onTabsScroll = () => {
|
|
262
|
-
this.dispatchEvent(
|
|
263
|
-
new Event("luzmo-tabs-scroll", {
|
|
264
|
-
bubbles: !0,
|
|
265
|
-
composed: !0
|
|
266
|
-
})
|
|
267
|
-
);
|
|
268
|
-
}, this.onClick = (t) => {
|
|
269
|
-
if (this.disabled)
|
|
270
|
-
return;
|
|
271
|
-
const o = t.composedPath().find((i) => i.parentElement === this);
|
|
272
|
-
!o || o.disabled || (this.shouldAnimate = !0, this.selectTarget(o));
|
|
273
|
-
}, this.onKeyDown = (t) => {
|
|
274
|
-
if (t.code === "Enter" || t.code === "Space") {
|
|
275
|
-
t.preventDefault();
|
|
276
|
-
const o = t.target;
|
|
277
|
-
o && this.selectTarget(o);
|
|
278
|
-
}
|
|
279
|
-
}, this.updateCheckedState = () => {
|
|
280
|
-
if (this.tabs.forEach((t) => {
|
|
281
|
-
t.removeAttribute("selected");
|
|
282
|
-
}), this.selected) {
|
|
283
|
-
const t = this.tabs.find((o) => o.value === this.selected);
|
|
284
|
-
t ? t.selected = !0 : this.selected = "";
|
|
285
|
-
} else {
|
|
286
|
-
const t = this.tabs[0];
|
|
287
|
-
t && t.setAttribute("tabindex", "0");
|
|
288
|
-
}
|
|
289
|
-
this.updateSelectionIndicator();
|
|
290
|
-
}, this.updateSelectionIndicator = async () => {
|
|
291
|
-
const t = this.tabs.find((e) => e.selected);
|
|
292
|
-
if (!t) {
|
|
293
|
-
this.selectionIndicatorStyle = m.noSelectionStyle;
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
await Promise.all([
|
|
297
|
-
t.updateComplete,
|
|
298
|
-
document.fonts ? document.fonts.ready : Promise.resolve()
|
|
299
|
-
]);
|
|
300
|
-
const { width: o, height: i } = t.getBoundingClientRect();
|
|
301
|
-
this.selectionIndicatorStyle = this.direction === "horizontal" ? m.transformX(t.offsetLeft, o) : m.transformY(t.offsetTop, i);
|
|
302
|
-
}, new N(this, {
|
|
303
|
-
config: {
|
|
304
|
-
root: null,
|
|
305
|
-
rootMargin: "0px",
|
|
306
|
-
threshold: [0, 1]
|
|
307
|
-
},
|
|
308
|
-
callback: () => {
|
|
309
|
-
this.updateSelectionIndicator();
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
static get styles() {
|
|
314
|
-
return [
|
|
315
|
-
b(I),
|
|
316
|
-
b(X),
|
|
317
|
-
m.baseStyles()
|
|
318
|
-
];
|
|
319
|
-
}
|
|
320
|
-
set tabs(t) {
|
|
321
|
-
t !== this.tabs && (this._tabs.forEach((o) => {
|
|
322
|
-
this.resizeController.unobserve(o);
|
|
323
|
-
}), t.forEach((o) => {
|
|
324
|
-
this.resizeController.observe(o);
|
|
325
|
-
}), this._tabs = t, this.rovingTabindexController.clearElementCache());
|
|
326
|
-
}
|
|
327
|
-
get tabs() {
|
|
328
|
-
return this._tabs;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* @internal
|
|
332
|
-
*/
|
|
333
|
-
get focusElement() {
|
|
334
|
-
return this.rovingTabindexController.focusInElement || this;
|
|
335
|
-
}
|
|
336
|
-
limitDeltaToInterval(t, o) {
|
|
337
|
-
return (i) => i < t ? t : i > o ? o : i;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Scrolls through the tabs component, on the X-axis, by a given ammount of pixels/ delta. The given delta is limited to the scrollable area of the tabs component.
|
|
341
|
-
* @param delta - The ammount of pixels to scroll by. If the value is positive, the tabs will scroll to the right. If the value is negative, the tabs will scroll to the left.
|
|
342
|
-
* @param behavior - The scroll behavior to use. Defaults to 'smooth'.
|
|
343
|
-
*/
|
|
344
|
-
scrollTabs(t, o = "smooth") {
|
|
345
|
-
var y;
|
|
346
|
-
if (t === 0) return;
|
|
347
|
-
const { scrollLeft: i, clientWidth: e, scrollWidth: a } = this.tabList, s = a - e - Math.abs(i), f = this.dir === "ltr" ? this.limitDeltaToInterval(-i, s) : this.limitDeltaToInterval(-s, Math.abs(i));
|
|
348
|
-
(y = this.tabList) == null || y.scrollBy({
|
|
349
|
-
left: f(t),
|
|
350
|
-
top: 0,
|
|
351
|
-
behavior: o
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
get scrollState() {
|
|
355
|
-
if (this.tabList) {
|
|
356
|
-
const { scrollLeft: t, clientWidth: o, scrollWidth: i } = this.tabList, e = Math.abs(t) > 0, a = Math.ceil(Math.abs(t)) < i - o;
|
|
357
|
-
return {
|
|
358
|
-
canScrollLeft: this.dir === "ltr" ? e : a,
|
|
359
|
-
canScrollRight: this.dir === "ltr" ? a : e
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
return {};
|
|
363
|
-
}
|
|
364
|
-
async getUpdateComplete() {
|
|
365
|
-
const t = await super.getUpdateComplete(), i = [...this.children].map((e) => e.updateComplete !== void 0 ? e.updateComplete : Promise.resolve(!0));
|
|
366
|
-
return await Promise.all(i), t;
|
|
367
|
-
}
|
|
368
|
-
getNecessaryAutoScroll(t) {
|
|
369
|
-
const o = this.tabs[t], i = o.offsetLeft + o.offsetWidth, e = this.tabList.scrollLeft + this.tabList.offsetWidth, a = o.offsetLeft, s = this.tabList.scrollLeft;
|
|
370
|
-
return i > e ? G(
|
|
371
|
-
t,
|
|
372
|
-
this.dir,
|
|
373
|
-
this.tabs,
|
|
374
|
-
this.tabList
|
|
375
|
-
) : a < s ? K(
|
|
376
|
-
t,
|
|
377
|
-
this.dir,
|
|
378
|
-
this.tabs,
|
|
379
|
-
this.tabList
|
|
380
|
-
) : -1;
|
|
381
|
-
}
|
|
382
|
-
async scrollToSelection() {
|
|
383
|
-
if (!this.enableTabsScroll || !this.selected)
|
|
384
|
-
return;
|
|
385
|
-
await this.updateComplete;
|
|
386
|
-
const t = this.tabs.findIndex(
|
|
387
|
-
(o) => o.value === this.selected
|
|
388
|
-
);
|
|
389
|
-
if (t !== -1 && this.tabList) {
|
|
390
|
-
const o = this.getNecessaryAutoScroll(t);
|
|
391
|
-
o !== -1 && this.tabList.scrollTo({ left: o });
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
updated(t) {
|
|
395
|
-
super.updated(t), t.has("selected") && this.scrollToSelection();
|
|
396
|
-
}
|
|
397
|
-
managePanels({
|
|
398
|
-
target: t
|
|
399
|
-
}) {
|
|
400
|
-
t.assignedElements().map((i) => {
|
|
401
|
-
const { value: e, id: a } = i, s = this.querySelector(`[role="tab"][value="${e}"]`);
|
|
402
|
-
s && (s.setAttribute("aria-controls", a), i.setAttribute("aria-labelledby", s.id)), i.selected = e === this.selected;
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
render() {
|
|
406
|
-
return v`
|
|
407
|
-
<div
|
|
408
|
-
class=${p({ scroll: this.enableTabsScroll })}
|
|
409
|
-
aria-label=${k(this.label ?? void 0)}
|
|
410
|
-
@click=${this.onClick}
|
|
411
|
-
@keydown=${this.onKeyDown}
|
|
412
|
-
@scroll=${this.onTabsScroll}
|
|
413
|
-
id="list"
|
|
414
|
-
role="tablist"
|
|
415
|
-
part="tablist"
|
|
416
|
-
>
|
|
417
|
-
<slot @slotchange=${this.onSlotChange}></slot>
|
|
418
|
-
<div
|
|
419
|
-
id="selection-indicator"
|
|
420
|
-
class=${k(this.shouldAnimate ? void 0 : "first-position")}
|
|
421
|
-
style=${this.selectionIndicatorStyle}
|
|
422
|
-
role="presentation"
|
|
423
|
-
></div>
|
|
424
|
-
</div>
|
|
425
|
-
<slot name="tab-panel" @slotchange=${this.managePanels}></slot>
|
|
426
|
-
`;
|
|
427
|
-
}
|
|
428
|
-
willUpdate(t) {
|
|
429
|
-
if (!this.hasUpdated) {
|
|
430
|
-
const o = this.querySelector(
|
|
431
|
-
":scope > [selected]"
|
|
432
|
-
);
|
|
433
|
-
o && this.selectTarget(o);
|
|
434
|
-
}
|
|
435
|
-
if (super.willUpdate(t), t.has("selected")) {
|
|
436
|
-
if (this.tabs.length > 0 && this.updateCheckedState(), t.get("selected")) {
|
|
437
|
-
const i = this.querySelector(
|
|
438
|
-
`[role="tabpanel"][value="${t.get("selected")}"]`
|
|
439
|
-
);
|
|
440
|
-
i && (i.selected = !1);
|
|
441
|
-
}
|
|
442
|
-
const o = this.querySelector(
|
|
443
|
-
`[role="tabpanel"][value="${this.selected}"]`
|
|
444
|
-
);
|
|
445
|
-
o && (o.selected = !0);
|
|
446
|
-
}
|
|
447
|
-
t.has("direction") && (this.direction === "horizontal" ? this.removeAttribute("aria-orientation") : this.setAttribute("aria-orientation", "vertical")), t.has("dir") && this.updateSelectionIndicator(), t.has("disabled") && (this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled")), !this.shouldAnimate && t.get("shouldAnimate") !== void 0 && (this.shouldAnimate = !0);
|
|
448
|
-
}
|
|
449
|
-
selectTarget(t) {
|
|
450
|
-
const o = t.getAttribute("value");
|
|
451
|
-
if (o) {
|
|
452
|
-
const i = this.selected;
|
|
453
|
-
this.selected = o, this.dispatchEvent(
|
|
454
|
-
new Event("change", {
|
|
455
|
-
cancelable: !0
|
|
456
|
-
})
|
|
457
|
-
) || (this.selected = i);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
onSlotChange() {
|
|
461
|
-
this.tabs = this.slotEl.assignedElements().filter((t) => t.getAttribute("role") === "tab"), this.updateCheckedState();
|
|
462
|
-
}
|
|
463
|
-
connectedCallback() {
|
|
464
|
-
super.connectedCallback(), window.addEventListener("resize", this.updateSelectionIndicator), "fonts" in document && document.fonts.addEventListener("loadingdone", this.updateSelectionIndicator);
|
|
465
|
-
}
|
|
466
|
-
disconnectedCallback() {
|
|
467
|
-
window.removeEventListener("resize", this.updateSelectionIndicator), "fonts" in document && document.fonts.removeEventListener("loadingdone", this.updateSelectionIndicator), super.disconnectedCallback();
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
c([
|
|
471
|
-
l({ type: Boolean })
|
|
472
|
-
], n.prototype, "auto");
|
|
473
|
-
c([
|
|
474
|
-
l({ type: Boolean, reflect: !0 })
|
|
475
|
-
], n.prototype, "compact");
|
|
476
|
-
c([
|
|
477
|
-
l({ reflect: !0 })
|
|
478
|
-
], n.prototype, "dir");
|
|
479
|
-
c([
|
|
480
|
-
l({ reflect: !0 })
|
|
481
|
-
], n.prototype, "direction");
|
|
482
|
-
c([
|
|
483
|
-
l({ type: Boolean, reflect: !0 })
|
|
484
|
-
], n.prototype, "emphasized");
|
|
485
|
-
c([
|
|
486
|
-
l()
|
|
487
|
-
], n.prototype, "label");
|
|
488
|
-
c([
|
|
489
|
-
l({ type: Boolean })
|
|
490
|
-
], n.prototype, "enableTabsScroll");
|
|
491
|
-
c([
|
|
492
|
-
l({ type: Boolean, reflect: !0 })
|
|
493
|
-
], n.prototype, "quiet");
|
|
494
|
-
c([
|
|
495
|
-
l({ attribute: !1 })
|
|
496
|
-
], n.prototype, "selectionIndicatorStyle");
|
|
497
|
-
c([
|
|
498
|
-
l({ attribute: !1 })
|
|
499
|
-
], n.prototype, "shouldAnimate");
|
|
500
|
-
c([
|
|
501
|
-
x("slot")
|
|
502
|
-
], n.prototype, "slotEl");
|
|
503
|
-
c([
|
|
504
|
-
x("#list")
|
|
505
|
-
], n.prototype, "tabList");
|
|
506
|
-
c([
|
|
507
|
-
l({ reflect: !0 })
|
|
508
|
-
], n.prototype, "selected");
|
|
509
|
-
const V = ':host{top:0;right:0;bottom:0;left:0;width:100%;--tabs-divider-size: 2px;--tab-item-height-m: calc( var(--luzmo-component-height) + var(--luzmo-spacing-5) );--tabs-overflow-button-height: calc( var(--tab-item-height-m) - var( --luzmo-tabs-divider-size, var(--tabs-divider-size) ) );--tabs-overflow-button-size: var(--tab-item-height-m);--tabs-overflow-icon-color: var(--luzmo-font-color-focus);--tabs-overflow-shadow-color: var(--luzmo-background-color);--tabs-overflow-shadow-width: 50px;--luzmo-action-button-icon-size: var(--luzmo-font-size);--tabs-overflow-next-button-right: calc(-1 * var(--luzmo-spacing-4));--tabs-overflow-previous-button-left: calc(-1 * var(--luzmo-spacing-4))}:host([size=s]){--tab-item-height-s: calc( var(--luzmo-component-height-s) + var(--luzmo-spacing-4) );--tabs-overflow-button-height: calc( var(--tab-item-height-s) - var( --luzmo-tabs-divider-size, var(--tabs-divider-size) ) );--tabs-overflow-button-size: var(--tab-item-height-s);--luzmo-action-button-icon-size: var(--luzmo-font-size-s);--tabs-overflow-next-button-right: calc(-1 * var(--luzmo-spacing-3));--tabs-overflow-previous-button-left: calc(-1 * var(--luzmo-spacing-3))}:host([size=l]){--tab-item-height-l: calc( var(--luzmo-component-height-l) + var(--luzmo-spacing-5) );--tabs-overflow-button-height: calc( var(--tab-item-height-l) - var( --luzmo-tabs-divider-size, var(--tabs-divider-size) ) );--tabs-overflow-button-size: var(--tab-item-height-l);--luzmo-action-button-icon-size: var(--luzmo-font-size-l);--tabs-overflow-next-button-right: calc( -1 * calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1)) );--tabs-overflow-previous-button-left: calc( -1 * calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1)) )}:host([size=xl]){--tab-item-height-xl: calc( var(--luzmo-component-height-xl) + var(--luzmo-spacing-5) );--tabs-overflow-button-height: calc( var(--tab-item-height-xl) - var( --luzmo-tabs-divider-size, var(--tabs-divider-size) ) );--tabs-overflow-button-size: var(--tab-item-height-xl);--luzmo-action-button-icon-size: var(--luzmo-font-size-xl);--tabs-overflow-next-button-right: calc( -1 * calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-2)) );--tabs-overflow-previous-button-left: calc( -1 * calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-2)) )}:host([compact]){--tabs-overflow-button-height: calc( var(--tab-item-compact-height-m) - var( --luzmo-tabs-divider-size, var(--tabs-divider-size) ) );--luzmo-action-button-icon-size: var(--luzmo-font-size-s)}luzmo-action-button{width:var(--luzmo-tabs-overflow-button-size, var(--tabs-overflow-button-size));height:var(--luzmo-tabs-overflow-button-height, var(--tabs-overflow-button-height));position:absolute;z-index:2;border:none;text-align:center;box-shadow:none;background:transparent;color:var(--luzmo-tabs-overflow-icon-color, var(--tabs-overflow-icon-color))}luzmo-action-button.left-scroll{visibility:hidden;left:var(--luzmo-tabs-overflow-previous-button-left, var(--tabs-overflow-previous-button-left))}luzmo-action-button.right-scroll{visibility:hidden;right:var(--luzmo-tabs-overflow-next-button-right, var(--tabs-overflow-next-button-right))}luzmo-action-button.left-scroll.show,luzmo-action-button.right-scroll.show{visibility:visible}.tabs-overflow-container{position:relative}.tabs-overflow-container:before,.tabs-overflow-container:after{content:"";visibility:hidden;position:absolute;z-index:1;height:var(--luzmo-tabs-overflow-button-height, var(--tabs-overflow-button-height));width:var(--luzmo-tabs-overflow-shadow-width, var(--tabs-overflow-shadow-width));pointer-events:none;inset-block-start:0}.tabs-overflow-container:before{background:transparent linear-gradient(270deg,transparent,var(--luzmo-tabs-overflow-shadow-color, var(--tabs-overflow-shadow-color))) 0 0 no-repeat padding-box;left:0}.tabs-overflow-container:after{background:transparent linear-gradient(90deg,transparent,var(--luzmo-tabs-overflow-shadow-color, var(--tabs-overflow-shadow-color))) 0 0 no-repeat padding-box;right:0}.tabs-overflow-container.left-shadow:before,.tabs-overflow-container.right-shadow:after{visibility:visible}';
|
|
510
|
-
var J = Object.defineProperty, d = (r, t, o, i) => {
|
|
511
|
-
for (var e = void 0, a = r.length - 1, s; a >= 0; a--)
|
|
512
|
-
(s = r[a]) && (e = s(t, o, e) || e);
|
|
513
|
-
return e && J(t, o, e), e;
|
|
514
|
-
};
|
|
515
|
-
class u extends T(g) {
|
|
516
|
-
constructor() {
|
|
517
|
-
super(), this.compact = !1, this.labelPrevious = "Scroll to previous tabs", this.labelNext = "Scroll to next tabs", this.overflowState = {
|
|
518
|
-
canScrollLeft: !1,
|
|
519
|
-
canScrollRight: !1
|
|
520
|
-
}, this.scrollFactor = 0.5, this.resizeController = new $(this, {
|
|
521
|
-
target: this,
|
|
522
|
-
callback: () => {
|
|
523
|
-
this._updateScrollState();
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
static get styles() {
|
|
528
|
-
return [b(V), b(I)];
|
|
529
|
-
}
|
|
530
|
-
get scrollContent() {
|
|
531
|
-
return this.tabs;
|
|
532
|
-
}
|
|
533
|
-
firstUpdated(t) {
|
|
534
|
-
super.firstUpdated(t);
|
|
535
|
-
const [o] = this.scrollContent;
|
|
536
|
-
o && (o.enableTabsScroll = !0), this.resizeController.observe(this.overflowContainer);
|
|
537
|
-
}
|
|
538
|
-
async _handleSlotChange() {
|
|
539
|
-
const [t] = this.scrollContent;
|
|
540
|
-
await (t == null ? void 0 : t.updateComplete), this._updateScrollState();
|
|
541
|
-
}
|
|
542
|
-
_updateScrollState() {
|
|
543
|
-
const { scrollContent: t, overflowState: o } = this;
|
|
544
|
-
if (t) {
|
|
545
|
-
const [i] = this.scrollContent, { canScrollLeft: e, canScrollRight: a } = (i == null ? void 0 : i.scrollState) || {
|
|
546
|
-
canScrollLeft: !1,
|
|
547
|
-
canScrollRight: !1
|
|
548
|
-
};
|
|
549
|
-
this.overflowState = {
|
|
550
|
-
...o,
|
|
551
|
-
canScrollLeft: e,
|
|
552
|
-
canScrollRight: a
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
_handleScrollClick(t) {
|
|
557
|
-
const o = t.currentTarget, [i] = this.scrollContent, e = i.clientWidth * this.scrollFactor, a = o.classList.contains("left-scroll") ? -e : e;
|
|
558
|
-
i.scrollTabs(a, "smooth");
|
|
559
|
-
}
|
|
560
|
-
updated(t) {
|
|
561
|
-
super.updated(t), t.has("dir") && this._updateScrollState();
|
|
562
|
-
}
|
|
563
|
-
render() {
|
|
564
|
-
const { canScrollRight: t, canScrollLeft: o } = this.overflowState, i = this.labelPrevious, e = this.labelNext;
|
|
565
|
-
return v`
|
|
566
|
-
<div
|
|
567
|
-
class=${p({
|
|
568
|
-
"tabs-overflow-container": !0,
|
|
569
|
-
"left-shadow": o,
|
|
570
|
-
"right-shadow": t
|
|
571
|
-
})}
|
|
572
|
-
>
|
|
573
|
-
<luzmo-action-button
|
|
574
|
-
class=${p({
|
|
575
|
-
"left-scroll": !0,
|
|
576
|
-
show: o
|
|
577
|
-
})}
|
|
578
|
-
aria-label=${i}
|
|
579
|
-
quiet
|
|
580
|
-
dir="rtl"
|
|
581
|
-
tabindex="-1"
|
|
582
|
-
@click=${this._handleScrollClick}
|
|
583
|
-
>
|
|
584
|
-
<luzmo-icon slot="icon" .icon=${F}></luzmo-icon>
|
|
585
|
-
</luzmo-action-button>
|
|
586
|
-
<luzmo-action-button
|
|
587
|
-
class=${p({
|
|
588
|
-
"right-scroll": !0,
|
|
589
|
-
show: t
|
|
590
|
-
})}
|
|
591
|
-
aria-label=${e}
|
|
592
|
-
quiet
|
|
593
|
-
tabindex="-1"
|
|
594
|
-
@click=${this._handleScrollClick}
|
|
595
|
-
>
|
|
596
|
-
<luzmo-icon slot="icon" .icon=${O}></luzmo-icon>
|
|
597
|
-
</luzmo-action-button>
|
|
598
|
-
<slot
|
|
599
|
-
@slotchange=${this._handleSlotChange}
|
|
600
|
-
@luzmo-tabs-scroll=${this._updateScrollState}
|
|
601
|
-
></slot>
|
|
602
|
-
</div>
|
|
603
|
-
`;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
d([
|
|
607
|
-
l({ type: Boolean, reflect: !0 })
|
|
608
|
-
], u.prototype, "compact");
|
|
609
|
-
d([
|
|
610
|
-
l({ type: String, attribute: "label-previous" })
|
|
611
|
-
], u.prototype, "labelPrevious");
|
|
612
|
-
d([
|
|
613
|
-
l({ type: String, attribute: "label-next" })
|
|
614
|
-
], u.prototype, "labelNext");
|
|
615
|
-
d([
|
|
616
|
-
l({ reflect: !0 })
|
|
617
|
-
], u.prototype, "dir");
|
|
618
|
-
d([
|
|
619
|
-
R()
|
|
620
|
-
], u.prototype, "overflowState");
|
|
621
|
-
d([
|
|
622
|
-
D({ selector: "luzmo-tabs", flatten: !0 })
|
|
623
|
-
], u.prototype, "tabs");
|
|
624
|
-
d([
|
|
625
|
-
x(".tabs-overflow-container")
|
|
626
|
-
], u.prototype, "overflowContainer");
|
|
627
|
-
customElements.get("luzmo-tab") || customElements.define("luzmo-tab", h);
|
|
628
|
-
customElements.get("luzmo-tabs") || customElements.define("luzmo-tabs", n);
|
|
629
|
-
customElements.get("luzmo-tab-panel") || customElements.define("luzmo-tab-panel", w);
|
|
630
|
-
customElements.get("luzmo-tabs-overflow") || customElements.define("luzmo-tabs-overflow", u);
|
|
631
|
-
export {
|
|
632
|
-
h as LuzmoTab,
|
|
633
|
-
w as LuzmoTabPanel,
|
|
634
|
-
n as LuzmoTabs,
|
|
635
|
-
u as LuzmoTabsOverflow
|
|
636
|
-
};
|
|
18
|
+
(() => {
|
|
19
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
20
|
+
let e = document.createElement("style");
|
|
21
|
+
e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 25%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 45%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 25%);--luzmo-secondary: #d000d0;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 208, 0, 208;--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba( var(--luzmo-border-color-rgb), 0.4 );--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-width: thin;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-negative-inverse-color: #ffffff;--luzmo-positive-color: rgb(18, 133, 90);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 18, 133, 90;--luzmo-positive-inverse-color: #ffffff;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-informative-color: #1670dd;--luzmo-informative-color-rgb: 22, 112, 221;--luzmo-notice-color: rgb(229, 127, 0);--luzmo-seafoam-color: rgb(0, 140, 140);--luzmo-indigo-color: rgb(68, 52, 255);--luzmo-purple-color: rgb(112, 48, 210);--luzmo-fuchsia-color: rgb(205, 30, 170);--luzmo-magenta-color: rgb(203, 36, 98);--luzmo-yellow-color: rgb(228, 208, 0);--luzmo-gray-color: rgb(110, 110, 110);--luzmo-red-color: rgb(202, 34, 28);--luzmo-orange-color: rgb(218, 123, 17);--luzmo-chartreuse-color: rgb(85, 135, 0);--luzmo-celery-color: rgb(48, 134, 22);--luzmo-green-color: rgb(18, 133, 90);--luzmo-cyan-color: rgb(0, 134, 180);--luzmo-blue-color: rgb(22, 112, 221);--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 10px;--luzmo-icon-size-xs: 12px;--luzmo-icon-size-s: 14px;--luzmo-icon-size-m: 16px;--luzmo-icon-size-l: 18px;--luzmo-icon-size-xl: 20px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
|
|
22
|
+
}
|
|
23
|
+
})();
|
|
24
|
+
import { i as e, n as t, r as n, t as r } from "../tabs-BthdwrmW.js";
|
|
25
|
+
export { e as LuzmoTab, n as LuzmoTabPanel, t as LuzmoTabs, r as LuzmoTabsOverflow };
|