@luzmo/lucero 2.5.0 → 2.5.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/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -2
- package/components/{accordion-ciplqKwM.js → accordion-BJLsCC-2.js} +7 -8
- package/components/{accordion-BK0LfhmL.cjs → accordion-OQ0RoC_7.cjs} +1 -1
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +1 -2
- package/components/{action-bar-BZBIeGo7.js → action-bar-B-Y-gJ8B.js} +9 -17
- package/components/{action-bar-DAqG_7VG.cjs → action-bar-Dyt2tyjr.cjs} +1 -1
- package/components/action-button/action-button.d.ts +3 -2
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -2
- package/components/action-button-BB3ZZFNN.js +136 -0
- package/components/action-button-CL4ZlryE.cjs +22 -0
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -2
- package/components/{action-group-oo7YV0EW.cjs → action-group-Doll-3Bf.cjs} +1 -1
- package/components/{action-group-DSiruuF0.js → action-group-HECoPCas.js} +7 -9
- package/components/action-menu/action-menu.d.ts +16 -1
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.d.ts +1 -0
- package/components/action-menu/index.js +1 -2
- package/components/action-menu-BW-XpCVO.cjs +58 -0
- package/components/{action-menu-D1hTsg9A.js → action-menu-LnXQ7reF.js} +47 -31
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +1 -2
- package/components/{avatar-CwSyYAKV.js → avatar-CVRQDsx6.js} +7 -9
- package/components/{avatar-DHS5UGTJ.cjs → avatar-DFzJbtId.cjs} +1 -1
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -2
- package/components/badge-BSfzmBRf.js +94 -0
- package/components/badge-DzElGOcl.cjs +23 -0
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +2 -2
- package/components/button-BGEWdRbY.cjs +20 -0
- package/components/button-CpaltgRZ.js +125 -0
- package/components/{button-base-DiPzVpp4.js → button-base-BzakIKd0.js} +12 -35
- package/components/{button-base-DiNxrttk.cjs → button-base-CpK2ktvQ.cjs} +3 -3
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +1 -2
- package/components/{button-group-Du7R4SxZ.cjs → button-group-C23OtGC0.cjs} +1 -1
- package/components/{button-group-Duf-Igst.js → button-group-DMsT6N0P.js} +4 -6
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -2
- package/components/{calendar-pQxEWdYC.cjs → calendar-BqyGW8gU.cjs} +3 -3
- package/components/{calendar-D1UtHvpY.js → calendar-D4x5gp_0.js} +14 -33
- package/components/chat-message/index.cjs +1 -1
- package/components/chat-message/index.js +1 -2
- package/components/{chat-message-D6U-sprD.js → chat-message-5gP_qbiz.js} +665 -654
- package/components/chat-message-Dn5GKsSD.cjs +148 -0
- package/components/chat-message-group/index.cjs +1 -1
- package/components/chat-message-group/index.js +1 -2
- package/components/{chat-message-group-k9lo-ZqD.js → chat-message-group-Bp4mshBY.js} +18 -18
- package/components/{chat-message-group-CvxdX3jt.cjs → chat-message-group-CJddlS85.cjs} +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +1 -2
- package/components/checkbox-CVi4GMoo.cjs +25 -0
- package/components/{checkbox-CydI9yXG.js → checkbox-CvRvgRzh.js} +7 -13
- package/components/{checkbox-mixin-jqmrh48O.js → checkbox-mixin-BIuvxtEt.js} +2 -3
- package/components/{checkbox-mixin-rFRXqyrK.cjs → checkbox-mixin-DAdnTm-F.cjs} +1 -1
- package/components/{close-button-Dlvtf9lB.js → close-button-7zS6PUzh.js} +5 -6
- package/components/{close-button-BAELImQY.cjs → close-button-B06i2hJn.cjs} +1 -1
- package/components/color-area/index.cjs +1 -1
- package/components/color-area/index.js +1 -2
- package/components/{color-area-CmKlQG1i.cjs → color-area-D1fRozE0.cjs} +1 -1
- package/components/{color-area-lbg8wwZG.js → color-area-qlEAp8ZN.js} +10 -20
- package/components/color-controller-BpdydwTO.cjs +18 -0
- package/components/{color-controller-Rg_Zl0sT.js → color-controller-CauSxC_r.js} +1 -2
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +1 -2
- package/components/{color-field-BH9x46k_.cjs → color-field-CN8shDl_.cjs} +1 -1
- package/components/{color-field-C9S-Fv46.js → color-field-CVyDNZ4b.js} +5 -7
- package/components/color-handle/index.cjs +1 -1
- package/components/color-handle/index.js +1 -2
- package/components/{color-handle-2iFLp9FN.cjs → color-handle-BE0Z1gTU.cjs} +1 -1
- package/components/{color-handle-BEDQ1RcS.js → color-handle-Dc0uLgkf.js} +4 -6
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -2
- package/components/{color-loupe-6NcLbFco.cjs → color-loupe-2X1bCYU9.cjs} +1 -1
- package/components/{color-loupe-CqHyyvjQ.js → color-loupe-Bu37Uwk6.js} +3 -5
- package/components/color-menu/index.cjs +1 -1
- package/components/color-menu/index.js +1 -2
- package/components/{color-menu-qJK_clDq.js → color-menu-BxFQnH79.js} +12 -14
- package/components/{color-menu-BYTgxLQG.cjs → color-menu-Cus3S-Re.cjs} +1 -1
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +1 -2
- package/components/{color-palette-x6W09EBL.cjs → color-palette-D5NZDz5I.cjs} +1 -1
- package/components/{color-palette-CqiO5ohz.js → color-palette-UU7Feiwh.js} +7 -8
- package/components/color-palette-group/index.cjs +1 -1
- package/components/color-palette-group/index.js +1 -2
- package/components/{color-palette-group-zByrO_qb.js → color-palette-group-CwmC9iR1.js} +5 -7
- package/components/{color-palette-group-D4k_7pW6.cjs → color-palette-group-DhGh0Db8.cjs} +1 -1
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.js +1 -2
- package/components/{color-picker-BAikpqUT.cjs → color-picker-BTT1O-76.cjs} +1 -1
- package/components/{color-picker-CSuAPo5X.js → color-picker-orFSIqoZ.js} +9 -11
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +1 -2
- package/components/{color-slider-CMW8gJ0Z.cjs → color-slider-9Ck28Qdk.cjs} +1 -1
- package/components/{color-slider-0JzdSRTy.js → color-slider-X1EArAnx.js} +8 -14
- package/components/{condition-attribute-with-id-BdnTdWKz.js → condition-attribute-with-id-v1wjKZc3.js} +1 -2
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -2
- package/components/{date-range-picker-DKVmGpUC.js → date-range-picker-CoCz3uDz.js} +28 -29
- package/components/{date-range-picker-D149LIGC.cjs → date-range-picker-DyJdcFiA.cjs} +3 -3
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -2
- package/components/{date-time-picker-CRpvRk9T.cjs → date-time-picker-CEEeMXGn.cjs} +3 -3
- package/components/{date-time-picker-6c19YzwF.js → date-time-picker-CsgO17tA.js} +23 -36
- package/components/{decorate-CkCg3wfh.js → decorate-CpKsOs9z.js} +18 -19
- package/components/{decorate-Dq34MBGe.cjs → decorate-SO02l0A6.cjs} +1 -1
- package/components/{dependency-manger-wHEXoU92.js → dependency-manger-BneVBZQi.js} +1 -2
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +1 -2
- package/components/{divider-Cz5nyvP9.js → divider-Bt0NIqfu.js} +5 -7
- package/components/{divider-BcE8D-pH.cjs → divider-fWGUxO6A.cjs} +1 -1
- package/components/{divider.module-CPEKsaqR.js → divider.module-B_GRUJ4d.js} +1 -2
- package/components/{element-resolution-gap51AVo.js → element-resolution-BYvcpZwK.js} +1 -2
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +2 -3
- package/components/{field-group-Dd5xYczm.cjs → field-group-B8mhEhNJ.cjs} +1 -1
- package/components/{field-group-C_kRq7pJ.js → field-group-CdDcdMO1.js} +3 -4
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -2
- package/components/{field-label-C0vfY1b6.cjs → field-label-B3IsGUTv.cjs} +2 -2
- package/components/{field-label-C28wWqC5.js → field-label-DOUnHwwh.js} +9 -15
- package/components/focus-group-C0ncbmUD.cjs +18 -0
- package/components/{focus-group-DVPa1zxz.js → focus-group-lQqPbdDl.js} +5 -7
- package/components/{focus-visible-DNHNlrty.cjs → focus-visible-BQAhwoxi.cjs} +1 -1
- package/components/{focus-visible-Bt2uDmuM.js → focus-visible-D6TRtUd7.js} +2 -3
- package/components/focusable-BIHTrJd6.cjs +18 -0
- package/components/{focusable-selectors-BWpiuXz5.js → focusable-selectors-BDNeWxbe.js} +1 -2
- package/components/{focusable-DuP0-Kuy.js → focusable-xjv79E40.js} +9 -17
- package/components/{get-label-from-slot-Bo9mqYCZ.js → get-label-from-slot-Bw5crGFw.js} +1 -2
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +1 -2
- package/components/{icon-zOPAWCdx.cjs → icon-BlbMP3mJ.cjs} +1 -1
- package/components/{icon-CsJZMhIm.js → icon-DADJww_a.js} +4 -7
- package/components/index.cjs +1 -1
- package/components/index.js +72 -71
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +1 -2
- package/components/{infield-button-DiE8R6ol.js → infield-button-CeE_JxR6.js} +5 -7
- package/components/{infield-button-kilVRjwB.cjs → infield-button-uD1GqTLW.cjs} +1 -1
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -2
- package/components/{label-e6Y13vrS.js → label-D1v4e6mN.js} +3 -5
- package/components/{label-B3zs6OX0.cjs → label-uuwIy_Ge.cjs} +1 -1
- package/components/{language-resolution-BaKYDD1a.js → language-resolution-7rc0khIK.js} +3 -4
- package/components/{language-resolution-CSjktYg5.cjs → language-resolution-B7D3hQ6_.cjs} +1 -1
- package/components/{like-anchor-DXCaEv7O.js → like-anchor-DcFv8rEo.js} +2 -3
- package/components/{like-anchor-BX4PSB3d.cjs → like-anchor-De9STeWr.cjs} +1 -1
- package/components/{manage-help-text-ByLb0QYX.js → manage-help-text-CFUaqINN.js} +4 -6
- package/components/{match-media-C5X2OZiD.js → match-media-UNh23w4s.js} +1 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -2
- package/components/menu-BKwt6rnv.cjs +108 -0
- package/components/{menu-fdJseu1y.js → menu-L5qYivn6.js} +43 -67
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +1 -2
- package/components/{multi-language-field-vJMK-osi.js → multi-language-field-NY2XwK2M.js} +6 -8
- package/components/{multi-language-field-BndVikur.cjs → multi-language-field-djoM4Okc.cjs} +1 -1
- package/components/notice/index.cjs +1 -1
- package/components/notice/index.js +1 -2
- package/components/{notice-N0-lxEf_.js → notice-CrLVNmqL.js} +6 -8
- package/components/{notice-CsWaqcq3.cjs → notice-f0p0TiGw.cjs} +1 -1
- package/components/number-field/index.cjs +1 -1
- package/components/number-field/index.js +1 -2
- package/components/{number-field-xxXgR70l.cjs → number-field-Ceeli_mh.cjs} +2 -2
- package/components/{number-field-DAOy_AvQ.js → number-field-D9UqpqpW.js} +12 -20
- package/components/{observe-slot-presence-BKY6n06-.js → observe-slot-presence-t2N_C6Ud.js} +1 -2
- package/components/{observe-slot-text-CvL-2ey3.cjs → observe-slot-text-BqwCIv2a.cjs} +1 -1
- package/components/{observe-slot-text-Db8Kx3P-.js → observe-slot-text-Dzkb_VqN.js} +2 -3
- package/components/options/index.cjs +1 -1
- package/components/options/index.js +1 -2
- package/components/{options-D_ifU0DH.js → options-BHDesKbF.js} +20 -31
- package/components/{options-CP9V2CSJ.cjs → options-Dk1uFeUT.cjs} +5 -5
- package/components/overlay/index.cjs +1 -1
- package/components/overlay/index.js +2 -2
- package/components/overlay-DAOyrYJL.cjs +102 -0
- package/components/{overlay-DpHIYJtd.js → overlay-D_Xfq92b.js} +62 -118
- package/components/{pending-state-CGHvTtKR.cjs → pending-state-A6NrvaQj.cjs} +1 -1
- package/components/{pending-state-D_b45qvi.js → pending-state-BuYmUP6G.js} +2 -3
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -3
- package/components/{picker-uKcRswTQ.js → picker-C5eX5WBl.js} +25 -41
- package/components/picker-CQCAt4Mx.cjs +124 -0
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +1 -2
- package/components/{picker-button-B8Jbf9jK.cjs → picker-button-BWDfzx38.cjs} +2 -2
- package/components/{picker-button-CJQJshbo.js → picker-button-BhfY9gyk.js} +11 -12
- package/components/{platform-Ce9pNsR9.js → platform-CDW-WdXN.js} +1 -2
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -2
- package/components/{popover-BsdqkvKI.cjs → popover-CFzz83f8.cjs} +1 -1
- package/components/{popover-DC8tkee-.js → popover-CWrRLzOL.js} +4 -6
- package/components/progress-bar/index.cjs +1 -1
- package/components/progress-bar/index.js +1 -2
- package/components/{progress-bar-CrodWzcc.cjs → progress-bar-9Qg0PYAq.cjs} +2 -2
- package/components/{progress-bar-D4iFHkp7.js → progress-bar-D6wIZV5l.js} +16 -22
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -2
- package/components/{progress-circle-bO_VAX3N.cjs → progress-circle-C_9UZs2Y.cjs} +1 -1
- package/components/{progress-circle-By6qUQYe.js → progress-circle-DcGKwBTC.js} +5 -7
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -2
- package/components/progress-steps/progress-steps-model.d.ts +5 -0
- package/components/progress-steps/progress-steps.d.ts +4 -8
- package/components/progress-steps-5MhpnGKv.cjs +98 -0
- package/components/{progress-steps-BvCzsq9Z.js → progress-steps-Byem5ieS.js} +43 -54
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -2
- package/components/{prompt-box-Cz_m2wso.js → prompt-box-CrtFGmjm.js} +80 -112
- package/components/{prompt-box-sp9_-Hnx.cjs → prompt-box-D7owyhfG.cjs} +15 -15
- package/components/question-box/index.cjs +1 -1
- package/components/question-box/index.js +1 -2
- package/components/{question-box-Bcm-P-UV.js → question-box-BJYYLghb.js} +40 -86
- package/components/{question-box-DZnuGMBB.cjs → question-box-ym1eakXA.cjs} +3 -3
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +1 -2
- package/components/{radio-B6hX9Klr.js → radio-CyxICbLM.js} +9 -15
- package/components/{radio-CRTfoEX_.cjs → radio-Dd-GgUMm.cjs} +2 -2
- package/components/{random-id-CiMDyX7v.js → random-id-CO3s9i3n.js} +1 -2
- package/components/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/components/{roving-tabindex-pomAn3z-.js → roving-tabindex-BKMkfzY0.js} +2 -3
- package/components/{roving-tabindex-BoPao4td.cjs → roving-tabindex-BUFR8hPH.cjs} +1 -1
- package/components/{scaled-indicator-C-TupV4L.js → scaled-indicator-CsfzvTDr.js} +1 -2
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -2
- package/components/{search-DEjLSJ96.js → search-C5uFmm6S.js} +7 -9
- package/components/{search-PxJEuwHt.cjs → search-DiCwSHFf.cjs} +1 -1
- package/components/segments-factory-BFgL5o9K.cjs +18 -0
- package/components/{segments-factory-BCRi1NKb.js → segments-factory-B_IBjpdp.js} +5 -12
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -2
- package/components/{select-CKMCEJf7.cjs → select-2Fvb7tpj.cjs} +6 -6
- package/components/{select-B86uAHme.js → select-HqF3tcHz.js} +31 -56
- package/components/{sized-mixin-DzQTebN-.js → sized-mixin-BmxIAuoH.js} +2 -3
- package/components/{sized-mixin-BT7cv-fT.cjs → sized-mixin-CSajkMro.cjs} +1 -1
- package/components/skeleton-loader/index.cjs +1 -1
- package/components/skeleton-loader/index.js +1 -2
- package/components/{skeleton-loader-CNcwCh4V.cjs → skeleton-loader-CEca0cqz.cjs} +1 -1
- package/components/{skeleton-loader-BeCsYADg.js → skeleton-loader-tin9y3xc.js} +3 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -2
- package/components/{slider-C_8pSK4N.cjs → slider-C1AdDTfB.cjs} +2 -2
- package/components/{slider-Bsl8Xrme.js → slider-Ch7OgTdj.js} +13 -26
- package/components/{slottable-request-event-MRSZbgTu.js → slottable-request-event-24jJOhbh.js} +1 -2
- package/components/split-view/index.cjs +1 -1
- package/components/split-view/index.js +1 -2
- package/components/{split-view-CDwHDmII.js → split-view-DDwpoN2O.js} +8 -11
- package/components/{split-view-BwCFYey6.cjs → split-view-DNVlr5VD.cjs} +1 -1
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -2
- package/components/status-light-Do6z53mM.cjs +21 -0
- package/components/{status-light-DwUnjE3t.js → status-light-DqHhhZed.js} +6 -8
- package/components/strategies-C6hzAW86.cjs +18 -0
- package/components/{strategies-COS7mShJ.js → strategies-DgPG-vNk.js} +6 -13
- package/components/{streaming-listener-CtcMpYfS.js → streaming-listener-B6mDl4pZ.js} +1 -2
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +1 -2
- package/components/{swatch-Bj2FARl1.js → swatch-BBVsuSAV.js} +25 -44
- package/components/{swatch-CQ0inIHK.cjs → swatch-DiNMN-SZ.cjs} +3 -3
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +1 -2
- package/components/{switch-CpG-hSWY.js → switch-BBtewLDD.js} +6 -8
- package/components/{switch-qwpYXVnO.cjs → switch-DMhCYTgq.cjs} +1 -1
- package/components/table/index.cjs +1 -1
- package/components/table/index.js +1 -2
- package/components/table-CLMLGloR.cjs +180 -0
- package/components/{table-B75GjBhD.js → table-DlOWqm5C.js} +217 -264
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -2
- package/components/{tabs-DxOD4QNt.cjs → tabs-B0WHKMuF.cjs} +2 -2
- package/components/{tabs-BD_ATrBg.js → tabs-Dkt0B_-A.js} +17 -22
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -2
- package/components/tags-Be4yrNPw.js +206 -0
- package/components/tags-CHDNXpxh.cjs +47 -0
- package/components/template-property-Bks4Db5C.js +46 -0
- package/components/template-property-yhcAmPXk.cjs +18 -0
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +2 -2
- package/components/{text-field-3fDtTQkR.cjs → text-field-BVl-HWzb.cjs} +1 -1
- package/components/{text-field-CmyqQxq0.js → text-field-D49lAD7L.js} +4 -5
- package/components/{text-field-CbN4nydd.cjs → text-field-DCcOZSvY.cjs} +1 -1
- package/components/{text-field-CmSym2QK.js → text-field-DpvP_tCP.js} +7 -10
- package/components/{text-field.module-BHhBReKL.js → text-field.module-hEHhPVFf.js} +1 -2
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -2
- package/components/{toast-DRrGgznK.cjs → toast-B6yesIcI.cjs} +1 -1
- package/components/{toast-KwHx-agn.js → toast-CXZUVaYz.js} +5 -7
- package/components/tokens.js +1 -2
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.js +1 -2
- package/components/{tooltip-DjOW52n2.cjs → tooltip-BE01O3Sg.cjs} +1 -1
- package/components/{tooltip-xTa9Q5JW.js → tooltip-g2jd5Wsv.js} +19 -24
- package/components/top-nav/index.cjs +1 -1
- package/components/top-nav/index.js +1 -2
- package/components/{top-nav-81IKEGjR.cjs → top-nav-B0E1K_zf.cjs} +1 -1
- package/components/{top-nav-CXjnpdFR.js → top-nav-DiUCsUpZ.js} +9 -11
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -8
- package/components/{voice-recorder-CTg3kRxx.js → voice-recorder-BXY_l_78.js} +1 -2
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/standalone/accordion.js +6 -2
- package/standalone/action-bar.js +1 -1
- package/standalone/action-button.js +1 -1
- package/standalone/action-group.js +1 -1
- package/standalone/action-menu.js +5 -3
- package/standalone/avatar.js +1 -1
- package/standalone/badge.js +1 -1
- package/standalone/button-group.js +1 -1
- package/standalone/button.js +1 -1
- package/standalone/calendar.js +1 -1
- package/standalone/chat-message-group.js +1 -1
- package/standalone/chat-message.js +31 -31
- package/standalone/checkbox.js +1 -1
- package/standalone/chunks/NumberFormatter-COykocAS.js +2 -0
- package/standalone/chunks/NumberParser--1Rm0Yk7.js +2 -0
- package/standalone/chunks/action-button-0d4u0dWv.js +6 -0
- package/standalone/chunks/{action-group-DTxf-0tP.js → action-group-DlClwXLO.js} +5 -1
- package/standalone/chunks/async-directive-ByLzVnWY.js +2 -0
- package/standalone/chunks/async-directive-DNgXlN7F.js +2 -0
- package/standalone/chunks/badge-DPFbBRCY.js +7 -0
- package/standalone/chunks/{button-Q1n9DH9a.js → button-Bgc3zdEa.js} +1 -1
- package/standalone/chunks/button-BhSe7abg.js +4 -0
- package/standalone/chunks/button-base-DLYrzCSm.js +9 -0
- package/standalone/chunks/calendar-BxARYymw.js +122 -0
- package/standalone/chunks/checkbox-Cl6YBcGA.js +9 -0
- package/standalone/chunks/{checkbox-mixin-BAQWmwps.js → checkbox-mixin-HnfmivU3.js} +1 -1
- package/standalone/chunks/class-map-E9JVium5.js +2 -0
- package/standalone/chunks/{clear-button-3zpCVxG5.js → clear-button-B4r_oxfc.js} +1 -1
- package/standalone/chunks/{close-button-C96dazyi.js → close-button-DVCeu3_f.js} +1 -1
- package/standalone/chunks/{color-area-Cj8oPsIF.js → color-area-BCI2oMGd.js} +3 -1
- package/standalone/chunks/color-controller-BlFueK6Y.js +2 -0
- package/standalone/chunks/{color-field-BFvUGE4L.js → color-field-BaVvupq0.js} +1 -1
- package/standalone/chunks/{color-handle-BHrAxEG2.js → color-handle-BLQiuRSS.js} +1 -1
- package/standalone/chunks/{color-loupe-C34cms5t.js → color-loupe-_dC69K1Z.js} +1 -1
- package/standalone/chunks/{color-menu-BIKuitbH.js → color-menu-BDZh85nX.js} +1 -1
- package/standalone/chunks/color-slider-Bipcekrc.js +49 -0
- package/standalone/chunks/{directive-helpers-Bu8icI7Y.js → directive-helpers-DM8VtBpR.js} +1 -1
- package/standalone/chunks/{divider-Bf9Drp2z.js → divider-vAjIOfo1.js} +1 -1
- package/standalone/chunks/{field-group-D8EjgC6F.js → field-group-C1oDgW9m.js} +1 -1
- package/standalone/chunks/{field-label-VWHDlW9_.js → field-label-Djcst_hn.js} +2 -2
- package/standalone/chunks/flow-CL5kBpdV.js +2 -0
- package/standalone/chunks/focus-group-xdTxdfaB.js +4 -0
- package/standalone/chunks/{icon-BypO7M7G.js → icon-6P1RsbD1.js} +1 -1
- package/standalone/chunks/{infield-button-D03MpU_s.js → infield-button-B8EkjwP9.js} +1 -1
- package/standalone/chunks/keyed-DYJaQjip.js +2 -0
- package/standalone/chunks/{language-resolution-BWHk9A73.js → language-resolution-BwIkGyuH.js} +1 -1
- package/standalone/chunks/lit-DWANyjiY.js +3 -0
- package/standalone/chunks/lucero-runtime-DMlHjBe_.js +18 -0
- package/standalone/chunks/{luzmo-icons-B-pCv-xg.js → luzmo-icons-vtQE0BSI.js} +1 -1
- package/standalone/chunks/{manage-help-text-Cl9OJ2xf.js → manage-help-text-DO3PkWgh.js} +1 -1
- package/standalone/chunks/menu-CefrRBIS.js +100 -0
- package/standalone/chunks/{number-field-B6BDXkL7.js → number-field-Dc4nBa6l.js} +2 -2
- package/standalone/chunks/observe-slot-presence-BxmG6A0m.js +2 -0
- package/standalone/chunks/options-rb_zaAJ6.js +89 -0
- package/standalone/chunks/overlay-CgQMEmrM.js +122 -0
- package/standalone/chunks/{pending-state-DxeRqe6Q.js → pending-state-DnTXKvtm.js} +1 -1
- package/standalone/chunks/picker-HoERLlkx.js +108 -0
- package/standalone/chunks/{picker-button-BZWqDoNQ.js → picker-button-DbamPU-T.js} +2 -2
- package/standalone/chunks/platform-wNs7qaiE.js +10 -0
- package/standalone/chunks/{popover-BsB3dmQe.js → popover-Ca-FBqiU.js} +1 -1
- package/standalone/chunks/{progress-circle-CEx1b5Sv.js → progress-circle-CFtVq9Ou.js} +1 -1
- package/standalone/chunks/property-BsDbx7Z2.js +2 -0
- package/standalone/chunks/{radio-2vHhfmHw.js → radio-BJ3RhyUD.js} +2 -2
- package/standalone/chunks/random-id-0GBXy8EY.js +2 -0
- package/standalone/chunks/repeat-CtNle5_O.js +2 -0
- package/standalone/chunks/{roving-tabindex-CB4xC55P.js → roving-tabindex-CivopiNn.js} +1 -1
- package/standalone/chunks/scaled-indicator-Do5uhz24.js +10 -0
- package/standalone/chunks/segments-factory-B6oGyosS.js +2 -0
- package/standalone/chunks/{skeleton-loader-BxYcRRJr.js → skeleton-loader-CymPdQl3.js} +1 -1
- package/standalone/chunks/strategies-yujlVHBS.js +4 -0
- package/standalone/chunks/streaming-listener-DbMoHlSj.js +8 -0
- package/standalone/chunks/style-map-DmBaq1-c.js +2 -0
- package/standalone/chunks/{swatch-CGR_GWqO.js → swatch-DivHeYOK.js} +4 -4
- package/standalone/chunks/template-property-CyrkVY0Q.js +2 -0
- package/standalone/chunks/{text-field-4OKvLOXG.js → text-field-D5ncaa2n.js} +1 -1
- package/standalone/chunks/{text-field-C2oROxum.js → text-field-DXzpM1Qn.js} +1 -1
- package/standalone/chunks/{tooltip-DB6jRVyB.js → tooltip-B-j8PrNl.js} +13 -1
- package/standalone/chunks/{unsafe-html-BPQaWy0v.js → unsafe-html-BeDipvu3.js} +1 -1
- package/standalone/clear-button.js +1 -1
- package/standalone/close-button.js +1 -1
- package/standalone/color-area.js +1 -1
- package/standalone/color-field.js +1 -1
- package/standalone/color-handle.js +1 -1
- package/standalone/color-loupe.js +1 -1
- package/standalone/color-menu.js +1 -1
- package/standalone/color-palette-group.js +1 -1
- package/standalone/color-palette.js +1 -1
- package/standalone/color-picker.js +1 -1
- package/standalone/color-slider.js +1 -1
- package/standalone/date-range-picker.js +3 -3
- package/standalone/date-time-picker.js +3 -3
- package/standalone/divider.js +1 -1
- package/standalone/field-group.js +1 -1
- package/standalone/field-label.js +1 -1
- package/standalone/icon.js +1 -1
- package/standalone/infield-button.js +1 -1
- package/standalone/label.js +1 -1
- package/standalone/lit.js +1 -1
- package/standalone/manifest.json +65 -65
- package/standalone/menu.js +1 -1
- package/standalone/multi-language-field.js +1 -1
- package/standalone/notice.js +1 -1
- package/standalone/number-field.js +1 -1
- package/standalone/options.js +1 -1
- package/standalone/overlay.js +1 -1
- package/standalone/picker-button.js +1 -1
- package/standalone/picker.js +1 -1
- package/standalone/popover.js +1 -1
- package/standalone/progress-bar.js +2 -2
- package/standalone/progress-circle.js +1 -1
- package/standalone/progress-steps.js +10 -10
- package/standalone/prompt-box.js +17 -17
- package/standalone/question-box.js +3 -3
- package/standalone/radio.js +1 -1
- package/standalone/search.js +1 -1
- package/standalone/select.js +6 -6
- package/standalone/skeleton-loader.js +1 -1
- package/standalone/slider.js +2 -2
- package/standalone/split-view.js +1 -1
- package/standalone/status-light.js +1 -1
- package/standalone/swatch.js +1 -1
- package/standalone/switch.js +1 -1
- package/standalone/table.js +32 -32
- package/standalone/tabs.js +2 -2
- package/standalone/tags.js +1 -1
- package/standalone/text-field.js +1 -1
- package/standalone/toast.js +1 -1
- package/standalone/tooltip.js +1 -1
- package/standalone/top-nav.js +1 -1
- package/standalone/utils.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/template-property.d.ts +13 -0
- package/components/action-button-BRijXjEz.js +0 -138
- package/components/action-button-CX1uYbQp.cjs +0 -22
- package/components/action-menu-BNZWjeDd.cjs +0 -56
- package/components/badge-D2Hjf-Ww.js +0 -96
- package/components/badge-D8pIDEoq.cjs +0 -23
- package/components/button-Bvnidb4x.cjs +0 -20
- package/components/button-DIV_j_U3.js +0 -126
- package/components/chat-message-BDfomRm-.cjs +0 -148
- package/components/checkbox-JCvBro0K.cjs +0 -25
- package/components/color-controller-DbyPc33Y.cjs +0 -18
- package/components/focus-group-C8lOjbi9.cjs +0 -18
- package/components/focusable-B6h03pAe.cjs +0 -18
- package/components/menu-CrhA2iPZ.cjs +0 -108
- package/components/overlay-Dn7EbA_W.cjs +0 -102
- package/components/picker-COeWCv60.cjs +0 -124
- package/components/progress-steps-CvdQQwHc.cjs +0 -98
- package/components/segments-factory-DtPyN5sh.cjs +0 -18
- package/components/status-light-D3hdx8Pd.cjs +0 -21
- package/components/strategies-Bb7zEjrU.cjs +0 -18
- package/components/table-CHrAaVU1.cjs +0 -180
- package/components/tags-BIpFgOYy.js +0 -208
- package/components/tags-fLCGajv_.cjs +0 -47
- package/standalone/chunks/NumberFormatter-DMCfW685.js +0 -2
- package/standalone/chunks/NumberParser-r_jv94LA.js +0 -2
- package/standalone/chunks/action-button-FSsfXYe9.js +0 -6
- package/standalone/chunks/async-directive-BA2_dM-5.js +0 -2
- package/standalone/chunks/async-directive-CPdA0BOw.js +0 -2
- package/standalone/chunks/badge-DD-tMgzi.js +0 -7
- package/standalone/chunks/button-Bv3v7VbN.js +0 -4
- package/standalone/chunks/button-base-C7jeeyLp.js +0 -9
- package/standalone/chunks/calendar-DcFjY2tw.js +0 -122
- package/standalone/chunks/checkbox-DQ4wPgG_.js +0 -9
- package/standalone/chunks/class-map-CxQ0PcQP.js +0 -2
- package/standalone/chunks/color-controller-fJNWRHVI.js +0 -2
- package/standalone/chunks/color-slider-CAqvxsgS.js +0 -41
- package/standalone/chunks/flow-aCcJ5kgi.js +0 -2
- package/standalone/chunks/focus-group-Cl6MLy-C.js +0 -2
- package/standalone/chunks/keyed-CNWmQd2J.js +0 -2
- package/standalone/chunks/lit-BN_lRQbJ.js +0 -3
- package/standalone/chunks/lucero-runtime-DGJ9-isg.js +0 -16
- package/standalone/chunks/menu-DSMoQt1w.js +0 -92
- package/standalone/chunks/observe-slot-presence-DWPtw22K.js +0 -2
- package/standalone/chunks/options-CkmITqgV.js +0 -89
- package/standalone/chunks/overlay-C4ir0iyC.js +0 -31
- package/standalone/chunks/overlay-C_XW8yry.js +0 -57
- package/standalone/chunks/picker-FCQK0vdE.js +0 -108
- package/standalone/chunks/platform-BfrBbd97.js +0 -2
- package/standalone/chunks/property-CLXrnTGx.js +0 -2
- package/standalone/chunks/random-id-CeLe5NEk.js +0 -2
- package/standalone/chunks/repeat-CZdNcszA.js +0 -2
- package/standalone/chunks/scaled-indicator-k-1JmS0b.js +0 -10
- package/standalone/chunks/segments-factory-eS38mJRz.js +0 -2
- package/standalone/chunks/strategies-C-vW4MlK.js +0 -2
- package/standalone/chunks/streaming-listener-DFczLm8I.js +0 -2
- package/standalone/chunks/style-map-D4QeV3m0.js +0 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 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("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./sized-mixin-CSajkMro.cjs"),n=require("./button-base-CpK2ktvQ.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@luzmo/icons");var o=`:host{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--luzmo-button-font-family,var(--luzmo-sans-font-family-stack,var(--luzmo-font-family)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--luzmo-button-line-height,var(--luzmo-line-height-100,var(--line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--luzmo-button-animation-duration,var(--luzmo-animation-duration-100,var(--animation-duration-100))) ease-out, border-color var(--luzmo-button-animation-duration,var(--luzmo-animation-duration-100,var(--animation-duration-100))) ease-out, color var(--luzmo-button-animation-duration,var(--luzmo-animation-duration-100,var(--animation-duration-100))) ease-out, box-shadow var(--luzmo-button-animation-duration,var(--luzmo-animation-duration-100,var(--animation-duration-100))) ease-out;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible;border-style:solid!important}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){flex-shrink:0;justify-content:center;align-items:center;max-block-size:100%;display:flex}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-action-button-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-action-button-background-color-default:Highlight;--highcontrast-action-button-background-color-hover:Highlight;--highcontrast-action-button-background-color-focus:Highlight;--highcontrast-action-button-background-color-down:Highlight;--highcontrast-action-button-background-color-disabled:ButtonFace;--highcontrast-action-button-border-color-default:HighlightText;--highcontrast-action-button-border-color-hover:HighlightText;--highcontrast-action-button-border-color-focus:HighlightText;--highcontrast-action-button-border-color-down:HighlightText;--highcontrast-action-button-border-color-disabled:GrayText;--highcontrast-action-button-content-color-default:HighlightText;--highcontrast-action-button-content-color-hover:HighlightText;--highcontrast-action-button-content-color-focus:HighlightText;--highcontrast-action-button-content-color-down:HighlightText;--highcontrast-action-button-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--action-button-focus-indicator-border-radius:calc(var(--action-button-border-radius) + var(--action-button-focus-indicator-gap));--action-button-edge-to-visual:calc(var(--action-button-edge-to-visual-size) - var(--action-button-border-width));--action-button-edge-to-text:calc(var(--action-button-edge-to-text-size) - var(--action-button-border-width));--action-button-edge-to-visual-only:calc(var(--action-button-edge-to-visual-only-size) - var(--action-button-border-width));min-inline-size:var(--luzmo-action-button-min-width,var(--action-button-min-width));block-size:var(--luzmo-action-button-height,var(--action-button-height));border-radius:var(--luzmo-action-button-border-radius,var(--action-button-border-radius));gap:calc(var(--luzmo-action-button-text-to-visual,var(--action-button-text-to-visual)) + var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only,var(--action-button-edge-to-visual-only)));padding-inline:var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text));background-color:var(--highcontrast-action-button-background-color-default,var(--luzmo-action-button-background-color-default,var(--action-button-background-color-default)));color:var(--highcontrast-action-button-content-color-default,var(--luzmo-action-button-content-color-default,var(--action-button-content-color-default)));position:relative;border-width:var(--luzmo-action-button-border-width,var(--action-button-border-width))!important;border-color:var(--highcontrast-action-button-border-color-default,var(--luzmo-action-button-border-color-default,var(--action-button-border-color-default)))!important}:is(:host:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([dir=rtl])){--logical-rotation:matrix(-1, 0, 0, 1, 0, 0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-action-button-background-color-hover,var(--luzmo-action-button-background-color-hover,var(--action-button-background-color-hover)));color:var(--highcontrast-action-button-content-color-hover,var(--luzmo-action-button-content-color-hover,var(--action-button-content-color-hover)));border-color:var(--highcontrast-action-button-border-color-hover,var(--luzmo-action-button-border-color-hover,var(--action-button-border-color-hover)))!important}}:host(:focus-visible){background-color:var(--highcontrast-action-button-background-color-focus,var(--luzmo-action-button-background-color-focus,var(--action-button-background-color-focus)));color:var(--highcontrast-action-button-content-color-focus,var(--luzmo-action-button-content-color-focus,var(--action-button-content-color-focus)));border-color:var(--highcontrast-action-button-border-color-focus,var(--luzmo-action-button-border-color-focus,var(--action-button-border-color-focus)))!important}:host(:is(:active,[active])){background-color:var(--highcontrast-action-button-background-color-down,var(--luzmo-action-button-background-color-down,var(--action-button-background-color-down)));color:var(--highcontrast-action-button-content-color-down,var(--luzmo-action-button-content-color-down,var(--action-button-content-color-down)));border-color:var(--highcontrast-action-button-border-color-down,var(--luzmo-action-button-border-color-down,var(--action-button-border-color-down)))!important}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-action-button-background-color-disabled,var(--luzmo-action-button-background-color-disabled,var(--action-button-background-color-disabled)));color:var(--highcontrast-action-button-content-color-disabled,var(--luzmo-action-button-content-color-disabled,var(--action-button-content-color-disabled)));border-color:var(--highcontrast-action-button-border-color-disabled,var(--luzmo-action-button-border-color-disabled,var(--action-button-border-color-disabled)))!important}:host([selected]){--luzmo-action-button-background-color-default:var(--luzmo-action-button-background-color-default-selected);--luzmo-action-button-background-color-hover:var(--luzmo-action-button-background-color-hover-selected);--luzmo-action-button-background-color-down:var(--luzmo-action-button-background-color-down-selected);--luzmo-action-button-background-color-focus:var(--luzmo-action-button-background-color-focus-selected);--luzmo-action-button-content-color-default:var(--luzmo-action-button-content-color-default-selected);--luzmo-action-button-content-color-hover:var(--luzmo-action-button-content-color-hover-selected);--luzmo-action-button-content-color-down:var(--luzmo-action-button-content-color-down-selected);--luzmo-action-button-content-color-focus:var(--luzmo-action-button-content-color-focus-selected)}:host([selected][emphasized]){--luzmo-action-button-background-color-default:var(--luzmo-action-button-background-color-default-selected-emphasized);--luzmo-action-button-background-color-hover:var(--luzmo-action-button-background-color-hover-selected-emphasized);--luzmo-action-button-background-color-down:var(--luzmo-action-button-background-color-down-selected-emphasized);--luzmo-action-button-background-color-focus:var(--luzmo-action-button-background-color-focus-selected-emphasized);--luzmo-action-button-content-color-default:var(--luzmo-action-button-content-color-default-selected-emphasized);--luzmo-action-button-content-color-hover:var(--luzmo-action-button-content-color-hover-selected-emphasized);--luzmo-action-button-content-color-down:var(--luzmo-action-button-content-color-down-selected-emphasized);--luzmo-action-button-content-color-focus:var(--luzmo-action-button-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--luzmo-action-button-content-color-default:var(--luzmo-action-button-static-content-color);--luzmo-action-button-content-color-hover:var(--luzmo-action-button-static-content-color);--luzmo-action-button-content-color-down:var(--luzmo-action-button-static-content-color);--luzmo-action-button-content-color-focus:var(--luzmo-action-button-static-content-color)}::slotted([slot=icon]){min-inline-size:var(--luzmo-action-button-icon-size,var(--action-button-icon-size));color:inherit;margin-inline-start:calc(var(--luzmo-action-button-edge-to-visual,var(--action-button-edge-to-visual)) - var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)));margin-inline-end:calc(var(--luzmo-action-button-edge-to-visual,var(--action-button-edge-to-visual)) - var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)))}.hold-affordance+::slotted([slot=icon]){margin-inline-start:calc(var(--luzmo-action-button-edge-to-visual,var(--action-button-edge-to-visual)) - var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)));margin-inline-end:calc(var(--luzmo-action-button-edge-to-visual-only,var(--action-button-edge-to-visual-only)) - var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)))}.hold-affordance+[icon-only]::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){text-align:center;margin-inline-start:calc(var(--luzmo-action-button-edge-to-visual-only,var(--action-button-edge-to-visual-only)) - var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)));margin-inline-end:calc(var(--luzmo-action-button-edge-to-visual-only,var(--action-button-edge-to-visual-only)) - var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)))}#label{pointer-events:none;font-size:var(--luzmo-action-button-font-size,var(--action-button-font-size));white-space:nowrap;color:var(--luzmo-action-button-label-color,inherit);text-overflow:ellipsis;overflow:hidden}:host([data-luzmo-language-script=Latn]) #label{text-box:trim-both cap alphabetic;margin-block:-.35em;padding-block:.35em}:host([data-luzmo-language-script=Latn]) #label slot::slotted(*){margin-block:-.35em;padding-block:.35em}.hold-affordance{color:inherit;transform:var(--logical-rotation);font-size:var(--action-button-corner-triangle-size);position:absolute;inset-block-end:calc(var(--luzmo-action-button-edge-to-hold-icon,var(--action-button-edge-to-hold-icon)) - var(--luzmo-action-button-border-width,var(--action-button-border-width)));inset-inline-end:calc(var(--luzmo-action-button-edge-to-hold-icon,var(--action-button-edge-to-hold-icon)) - var(--luzmo-action-button-border-width,var(--action-button-border-width)))}:host{transition:border-color var(--luzmo-action-button-animation-duration,var(--action-button-animation-duration)) ease-in-out}:host:after{margin:calc((var(--luzmo-action-button-focus-indicator-gap,var(--action-button-focus-indicator-gap)) + var(--luzmo-action-button-border-width,var(--action-button-border-width))) * -1);border-radius:var(--luzmo-action-button-focus-indicator-border-radius,var(--action-button-focus-indicator-border-radius));transition:box-shadow var(--luzmo-action-button-animation-duration,var(--action-button-animation-duration)) ease-in-out;pointer-events:none;content:"";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--luzmo-action-button-focus-indicator-width,var(--action-button-focus-indicator-width)) var(--highcontrast-action-button-focus-indicator-color,var(--luzmo-action-button-focus-indicator-color,var(--action-button-focus-indicator-color)))}:host{--action-button-animation-duration:var(--luzmo-animation-duration);--action-button-border-radius:var(--luzmo-border-radius);--action-button-border-width:var(--luzmo-border-width);--action-button-content-color-default:var(--luzmo-font-color);--action-button-content-color-hover:var(--luzmo-font-color-hover);--action-button-content-color-down:var(--luzmo-font-color-down);--action-button-content-color-focus:var(--luzmo-font-color-focus);--action-button-focus-indicator-gap:var(--luzmo-indicator-gap);--action-button-focus-indicator-width:var(--luzmo-indicator-width);--action-button-focus-indicator-color:var(--luzmo-indicator-color);--action-button-background-color-default:var(--luzmo-background-color);--action-button-background-color-hover:var(--luzmo-background-color-hover);--action-button-background-color-down:var(--luzmo-background-color-down);--action-button-background-color-focus:var(--luzmo-background-color-focus);--action-button-border-color-default:var(--luzmo-border-color);--action-button-border-color-hover:var(--luzmo-border-color-hover);--action-button-border-color-down:var(--luzmo-border-color-down);--action-button-border-color-focus:var(--luzmo-border-color-focus);--action-button-background-color-disabled:var(--luzmo-background-color);--action-button-border-color-disabled:var(--luzmo-border-color-disabled);--action-button-content-color-disabled:var(--luzmo-font-color-disabled)}:host([treatment=fill]:not([quiet],[selected],[static-color]):is([variant=neutral],:not([variant]))){--action-button-background-color-default:var(--luzmo-background-color-highlight);--action-button-background-color-hover:var(--luzmo-background-color-highlight-hover);--action-button-background-color-down:var(--luzmo-background-color-highlight-down);--action-button-background-color-focus:var(--luzmo-background-color-highlight-focus);--action-button-border-color-hover:var(--luzmo-border-color);--action-button-background-color-disabled:var(--luzmo-background-color-disabled)}:host([quiet]){--action-button-background-color-default:transparent;--action-button-background-color-hover:var(--luzmo-background-color-hover);--action-button-background-color-down:var(--luzmo-background-color-down);--action-button-background-color-focus:var(--luzmo-background-color-focus);--action-button-background-color-disabled:transparent;--action-button-border-color-default:transparent;--action-button-border-color-hover:transparent;--action-button-border-color-down:transparent;--action-button-border-color-focus:transparent;--action-button-border-color-disabled:transparent}:host([selected]){--action-button-background-color-default:var(--luzmo-font-color);--action-button-background-color-hover:var(--luzmo-font-color-hover);--action-button-background-color-down:var(--luzmo-font-color-down);--action-button-background-color-focus:var(--luzmo-font-color-focus);--action-button-content-color-default:var(--luzmo-background-color);--action-button-content-color-hover:var(--luzmo-background-color);--action-button-content-color-down:var(--luzmo-background-color);--action-button-content-color-focus:var(--luzmo-background-color);--action-button-border-color-default:transparent;--action-button-border-color-hover:transparent;--action-button-border-color-down:transparent;--action-button-border-color-focus:transparent;--action-button-border-color-disabled:transparent;--action-button-background-color-disabled:var(--luzmo-background-color-disabled)}:host([selected][emphasized]){--action-button-background-color-default:var(--luzmo-primary);--action-button-background-color-hover:var(--luzmo-primary-hover);--action-button-background-color-down:var(--luzmo-primary-down);--action-button-background-color-focus:var(--luzmo-primary-focus);--action-button-content-color-default:var(--luzmo-primary-inverse-color);--action-button-content-color-hover:var(--luzmo-primary-inverse-color);--action-button-content-color-down:var(--luzmo-primary-inverse-color);--action-button-content-color-focus:var(--luzmo-primary-inverse-color)}:host([variant=primary]:not([quiet],[selected],[static-color])){--action-button-background-color-default:transparent;--action-button-background-color-hover:var(--luzmo-background-color-hover);--action-button-background-color-down:var(--luzmo-background-color-down);--action-button-background-color-focus:var(--luzmo-background-color-focus);--action-button-border-color-default:var(--luzmo-primary);--action-button-border-color-hover:var(--luzmo-primary-hover);--action-button-border-color-down:var(--luzmo-primary-down);--action-button-border-color-focus:var(--luzmo-primary-focus);--action-button-content-color-default:var(--luzmo-primary);--action-button-content-color-hover:var(--luzmo-primary-down);--action-button-content-color-down:var(--luzmo-primary-down);--action-button-content-color-focus:var(--luzmo-primary-focus);--action-button-background-color-disabled:transparent;--action-button-border-color-disabled:var(--luzmo-border-color-disabled);--action-button-content-color-disabled:var(--luzmo-font-color-disabled)}:host([variant=primary][treatment=fill]:not([quiet],[selected],[static-color])){--action-button-background-color-default:var(--luzmo-primary);--action-button-background-color-hover:var(--luzmo-primary-hover);--action-button-background-color-down:var(--luzmo-primary-down);--action-button-background-color-focus:var(--luzmo-primary-focus);--action-button-background-color-disabled:var(--luzmo-background-color-disabled);--action-button-content-color-default:var(--luzmo-primary-inverse-color);--action-button-content-color-hover:var(--luzmo-primary-inverse-color);--action-button-content-color-down:var(--luzmo-primary-inverse-color);--action-button-content-color-focus:var(--luzmo-primary-inverse-color);--action-button-content-color-disabled:var(--luzmo-disabled-color);--action-button-border-color-default:transparent;--action-button-border-color-hover:transparent;--action-button-border-color-down:transparent;--action-button-border-color-focus:transparent;--action-button-border-color-disabled:transparent}:host([variant=negative]:not([static-color])){--action-button-background-color-hover:rgba(var(--luzmo-negative-color-rgb), .1);--action-button-background-color-down:rgba(var(--luzmo-negative-color-rgb), .16);--action-button-background-color-focus:rgba(var(--luzmo-negative-color-rgb), .1);--action-button-content-color-default:var(--luzmo-negative-color);--action-button-content-color-hover:var(--luzmo-negative-color-hover);--action-button-content-color-down:var(--luzmo-negative-color-down);--action-button-content-color-focus:var(--luzmo-negative-color-focus)}:host([variant=negative]:not([quiet],[selected],[static-color])){--action-button-border-color-default:var(--luzmo-negative-color);--action-button-border-color-hover:var(--luzmo-negative-color-hover);--action-button-border-color-down:var(--luzmo-negative-color-down);--action-button-border-color-focus:var(--luzmo-negative-color-focus)}:host([variant=negative][selected]:not([static-color])){--action-button-background-color-default:var(--luzmo-negative-color);--action-button-background-color-hover:var(--luzmo-negative-color-hover);--action-button-background-color-down:var(--luzmo-negative-color-down);--action-button-background-color-focus:var(--luzmo-negative-color-focus);--action-button-content-color-default:var(--luzmo-negative-inverse-color);--action-button-content-color-hover:var(--luzmo-negative-inverse-color);--action-button-content-color-down:var(--luzmo-negative-inverse-color);--action-button-content-color-focus:var(--luzmo-negative-inverse-color)}:host([static-color=black][quiet]),:host([static-color=white][quiet]){--action-button-border-color-default:transparent;--action-button-border-color-hover:transparent;--action-button-border-color-down:transparent;--action-button-border-color-focus:transparent;--action-button-border-color-disabled:transparent}:host([static-color=black]){--action-button-background-color-default:transparent;--action-button-background-color-hover:#00000040;--action-button-background-color-down:#0006;--action-button-background-color-focus:#00000040;--action-button-background-color-disabled:transparent;--action-button-border-color-default:#0006;--action-button-border-color-hover:#0000008c;--action-button-border-color-down:#000000b3;--action-button-border-color-focus:#00000040;--action-button-border-color-disabled:transparent;--action-button-content-color-default:#000;--action-button-content-color-hover:#000;--action-button-content-color-down:#000;--action-button-content-color-focus:#000;--action-button-content-color-disabled:#0000008c;--action-button-focus-indicator-color:#000}:host([static-color=black][selected]){--action-button-background-color-default:#000000e6;--action-button-background-color-hover:#000;--action-button-background-color-down:#000;--action-button-background-color-focus:#000;--action-button-background-color-disabled:#0000001a;--action-button-border-color-disabled:transparent;--action-button-content-color-default:#fff;--action-button-content-color-hover:#fff;--action-button-content-color-down:#fff;--action-button-content-color-focus:#fff}:host([static-color=black][selected][emphasized]){--action-button-background-color-default:#000000e6;--action-button-background-color-hover:#000;--action-button-background-color-down:#000;--action-button-background-color-focus:#000;--action-button-content-color-default:#fff;--action-button-content-color-hover:#fff;--action-button-content-color-down:#fff;--action-button-content-color-focus:#fff}:host([static-color=white]){--action-button-background-color-default:transparent;--action-button-background-color-hover:#ffffff40;--action-button-background-color-down:#fff6;--action-button-background-color-focus:#ffffff40;--action-button-background-color-disabled:transparent;--action-button-border-color-default:#fff6;--action-button-border-color-hover:#ffffff8c;--action-button-border-color-down:#ffffffb3;--action-button-border-color-focus:#ffffff8c;--action-button-border-color-disabled:#ffffff40;--action-button-content-color-default:#fff;--action-button-content-color-hover:#fff;--action-button-content-color-down:#fff;--action-button-content-color-focus:#fff;--action-button-content-color-disabled:#ffffff8c;--action-button-focus-indicator-color:#fff}:host([static-color=white][selected]){--action-button-background-color-default:#ffffffe6;--action-button-background-color-hover:#fff;--action-button-background-color-down:#fff;--action-button-background-color-focus:#fff;--action-button-background-color-disabled:#ffffff1a;--action-button-border-color-disabled:transparent;--action-button-content-color-default:#000;--action-button-content-color-hover:#000;--action-button-content-color-down:#000;--action-button-content-color-focus:#000}:host([static-color=white][selected][emphasized]){--action-button-background-color-default:#ffffffe6;--action-button-background-color-hover:#fff;--action-button-background-color-down:#fff;--action-button-background-color-focus:#fff;--action-button-content-color-default:#000}:host([variant=pill]),:host([variant=accent]),:host([variant=pill][size]),:host([variant=accent][size]){--action-button-min-width:auto}:host([variant=accent]){--action-button-background-color-default:color-mix(in oklch, var(--luzmo-primary), white 88%);--action-button-background-color-hover:color-mix(in oklch, var(--luzmo-primary), white 75%);--action-button-background-color-down:var(--action-button-background-color-hover);--action-button-background-color-focus:var(--action-button-background-color-hover);--action-button-border-color-default:color-mix(in oklch, var(--luzmo-primary), white 70%);--action-button-border-color-hover:color-mix(in oklch, var(--luzmo-primary), white 50%);--action-button-border-color-down:var(--action-button-border-color-hover);--action-button-border-color-focus:var(--action-button-border-color-hover);--action-button-content-color-default:color-mix(in oklch, var(--luzmo-primary), black 25%);--action-button-content-color-hover:var(--action-button-content-color-default);--action-button-content-color-down:var(--action-button-content-color-default);--action-button-content-color-focus:var(--action-button-content-color-default);--action-button-background-color-disabled:color-mix(in oklch, var(--luzmo-primary), white 92%);--action-button-border-color-disabled:color-mix(in oklch, var(--luzmo-primary), white 85%);--action-button-content-color-disabled:color-mix(in oklch, var(--luzmo-primary), white 40%)}:host{--action-button-min-width:var(--luzmo-component-height);--action-button-height:var(--luzmo-component-height);--action-button-icon-size:var(--luzmo-font-size-l);--action-button-font-size:var(--luzmo-font-size);--action-button-text-to-visual:var(--luzmo-spacing-2);--action-button-edge-to-hold-icon:var(--luzmo-spacing-2);--action-button-edge-to-visual-size:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--action-button-edge-to-visual-only-size:var(--luzmo-spacing-3);--action-button-edge-to-text-size:12px;--action-button-corner-triangle-size:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1))}:host([size=xs]){--action-button-min-width:var(--luzmo-component-height-xs);--action-button-height:var(--luzmo-component-height-xs);--action-button-icon-size:var(--luzmo-font-size-s);--action-button-font-size:var(--luzmo-font-size-xs);--action-button-text-to-visual:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--action-button-edge-to-hold-icon:var(--luzmo-spacing-2);--action-button-edge-to-visual-size:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--action-button-edge-to-visual-only-size:var(--luzmo-spacing-2);--action-button-edge-to-text-size:var(--luzmo-spacing-2);--action-button-corner-triangle-size:var(--luzmo-spacing-2)}:host([size=s]){--action-button-min-width:var(--luzmo-component-height-s);--action-button-height:var(--luzmo-component-height-s);--action-button-icon-size:var(--luzmo-font-size);--action-button-font-size:var(--luzmo-font-size-s);--action-button-text-to-visual:var(--luzmo-spacing-3);--action-button-edge-to-hold-icon:var(--luzmo-spacing-2);--action-button-edge-to-visual-size:var(--luzmo-spacing-3);--action-button-edge-to-visual-only-size:var(--luzmo-spacing-2);--action-button-edge-to-text-size:var(--luzmo-spacing-3);--action-button-corner-triangle-size:var(--luzmo-spacing-2)}:host([size=l]){--action-button-min-width:var(--luzmo-component-height-l);--action-button-height:var(--luzmo-component-height-l);--action-button-icon-size:var(--luzmo-font-size-xl);--action-button-font-size:var(--luzmo-font-size-l);--action-button-text-to-visual:var(--luzmo-spacing-3);--action-button-edge-to-hold-icon:var(--luzmo-spacing-2);--action-button-edge-to-visual-size:var(--luzmo-spacing-4);--action-button-edge-to-visual-only-size:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--action-button-edge-to-text-size:var(--luzmo-spacing-5);--action-button-corner-triangle-size:var(--luzmo-spacing-3)}:host([size=xl]){--action-button-min-width:var(--luzmo-component-height-xl);--action-button-height:var(--luzmo-component-height-xl);--action-button-icon-size:var(--luzmo-font-size-xxl);--action-button-font-size:var(--luzmo-font-size-xl);--action-button-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--action-button-edge-to-hold-icon:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--action-button-edge-to-visual-size:var(--luzmo-spacing-5);--action-button-edge-to-visual-only-size:var(--luzmo-spacing-4);--action-button-edge-to-text-size:var(--luzmo-spacing-5);--action-button-corner-triangle-size:var(--luzmo-spacing-3)}::slotted([slot=icon]){flex-shrink:0}#label{flex-grow:var(--action-button-label-flex-grow);text-align:var(--action-button-label-text-align);pointer-events:none!important}:host([size=xs]){min-width:var(--action-button-height,0);--action-button-edge-to-visual-only:calc(var(--luzmo-spacing-2) - var(--action-button-border-width))}:host([size=s]){--action-button-edge-to-visual-only:calc(var(--luzmo-spacing-2) - var(--action-button-border-width))}:host([size=m]){--action-button-edge-to-visual-only:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1) - var(--action-button-border-width))}:host([size=l]){--action-button-edge-to-visual-only:calc(var(--luzmo-spacing-3) - var(--action-button-border-width))}:host([size=xl]){--action-button-edge-to-visual-only:calc(var(--luzmo-spacing-4) - var(--action-button-border-width))}@media (forced-colors:active){:host{--highcontrast-action-button-border-color-disabled:GrayText;--highcontrast-action-button-content-color-disabled:GrayText}}`,s,c=[`neutral`,`primary`,`negative`,`pill`,`accent`],l=class extends t.n(n.t,{validSizes:[`xs`,`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[...super.styles,(0,r.unsafeCSS)(o)]}get variant(){return this._variant}set variant(e){let t=c.includes(e)?e:`neutral`;if(t===this._variant){this.getAttribute(`variant`)!==t&&this.setAttribute(`variant`,t);return}let n=this._variant;this._variant=t,this.requestUpdate(`variant`,n),this.setAttribute(`variant`,t)}get value(){return this._value||this.itemText}set value(e){e!==this._value&&(this._value=e||``,this._value?this.setAttribute(`value`,this._value):this.removeAttribute(`value`))}get itemText(){return(this.textContent||``).trim()}constructor(){super(),this.emphasized=!1,this.holdAffordance=!1,this.quiet=!1,this.treatment=`outline`,this.role=`button`,this.selected=!1,this.toggles=!1,this._variant=`neutral`,this._value=``,this.onClick=()=>{this.toggles&&(this.selected=!this.selected,this.dispatchEvent(new Event(`change`,{cancelable:!0,bubbles:!0,composed:!0}))||(this.selected=!this.selected))},this.addEventListener(`click`,this.onClick)}handlePointerdownHoldAffordance(e){e.button===0&&(this.addEventListener(`pointerup`,this.handlePointerupHoldAffordance),this.addEventListener(`pointercancel`,this.handlePointerupHoldAffordance),s=setTimeout(()=>{this.dispatchEvent(new CustomEvent(`longpress`,{bubbles:!0,composed:!0,detail:{source:`pointer`}}))},300))}handlePointerupHoldAffordance(){clearTimeout(s),this.removeEventListener(`pointerup`,this.handlePointerupHoldAffordance),this.removeEventListener(`pointercancel`,this.handlePointerupHoldAffordance)}handleKeydown(e){if(!this.holdAffordance)return super.handleKeydown(e);let{code:t,altKey:n}=e;(t===`Space`||n&&t===`ArrowDown`)&&(e.preventDefault(),t===`ArrowDown`&&(e.stopPropagation(),e.stopImmediatePropagation()),this.addEventListener(`keyup`,this.handleKeyup),this.active=!0)}handleKeyup(e){if(!this.holdAffordance)return super.handleKeyup(e);let{code:t,altKey:n}=e;(t===`Space`||n&&t===`ArrowDown`)&&(e.stopPropagation(),this.dispatchEvent(new CustomEvent(`longpress`,{bubbles:!0,composed:!0,detail:{source:`keyboard`}})),this.active=!1)}get buttonContent(){let e=super.buttonContent;return this.holdAffordance&&e.unshift(r.html`
|
|
19
|
+
<div class="hold-affordance corner-triangle-${this.size}">
|
|
20
|
+
${(0,a.luzmoIcon)(a.luzmoCornerTriangle)}
|
|
21
|
+
</div>
|
|
22
|
+
`),e}updated(e){super.updated(e);let t=this.role===`button`,n=t&&(this.selected||this.toggles)&&!(this.hasAttribute(`aria-haspopup`)&&this.hasAttribute(`aria-expanded`));(e.has(`selected`)||e.has(`role`))&&(n?this.setAttribute(`aria-pressed`,this.selected?`true`:`false`):(this.removeAttribute(`aria-pressed`),t&&this.toggles&&this.hasAttribute(`aria-expanded`)&&this.setAttribute(`aria-expanded`,this.selected?`true`:`false`))),e.has(`holdAffordance`)&&(this.holdAffordance?this.addEventListener(`pointerdown`,this.handlePointerdownHoldAffordance):(this.removeEventListener(`pointerdown`,this.handlePointerdownHoldAffordance),this.handlePointerupHoldAffordance()))}};e.t([(0,i.property)({type:Boolean,reflect:!0})],l.prototype,`emphasized`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0,attribute:`hold-affordance`})],l.prototype,`holdAffordance`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],l.prototype,`quiet`,void 0),e.t([(0,i.property)({reflect:!0})],l.prototype,`treatment`,void 0),e.t([(0,i.property)({reflect:!0})],l.prototype,`role`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],l.prototype,`selected`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],l.prototype,`toggles`,void 0),e.t([(0,i.property)({reflect:!0,attribute:`static-color`})],l.prototype,`staticColor`,void 0),e.t([(0,i.property)()],l.prototype,`variant`,null),e.t([(0,i.property)({type:String})],l.prototype,`value`,null),customElements.get(`luzmo-action-button`)||customElements.define(`luzmo-action-button`,l),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -15,4 +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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../action-group-
|
|
18
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../action-group-Doll-3Bf.cjs");exports.LuzmoActionGroup=e.t;
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
require("./tokens.cjs");const e=require("./decorate-Dq34MBGe.cjs"),t=require("./sized-mixin-BT7cv-fT.cjs"),n=require("./roving-tabindex-BoPao4td.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@lit-labs/observers/mutation-controller.js");var o=`:host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular,var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact,var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px 0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius:0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius:0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover:hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact,var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius:0px 0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact:0px;--action-group-horizontal-spacing-compact:-1px;--action-group-vertical-spacing-compact:-1px;--action-group-button-spacing-reset:0px;--action-group-border-radius-reset:0px;--action-group-border-radius:var(--luzmo-border-radius);--action-group-horizontal-spacing-regular:var(--luzmo-spacing-3);--action-group-vertical-spacing-regular:var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular:var(--luzmo-spacing-2);--action-group-vertical-spacing-regular:var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular:var(--luzmo-spacing-3);--action-group-vertical-spacing-regular:var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-left:0;margin-right:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){flex-direction:column;align-items:stretch;display:flex}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius:0;--luzmo-action-button-border-radius:var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius:0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child),:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius:0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius:0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child),:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}`,s=[],c=class extends t.n(e.n,{validSizes:[`xs`,`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[(0,r.unsafeCSS)(o)]}set buttons(e){e!==this.buttons&&(this._buttons=e,this.rovingTabindexController.clearElementCache())}get buttons(){return this._buttons}constructor(){super(),this._buttons=[],this._buttonSelector=`luzmo-action-button, luzmo-action-menu`,this.rovingTabindexController=new n.t(this,{focusInIndex:e=>{let t=-1,n=e.findIndex((n,r)=>(!e[t]&&!n.disabled&&(t=r),n.selected&&!n.disabled));return e[n]?n:t},elements:()=>this.buttons,isFocusableElement:e=>!e.disabled}),this.compact=!1,this.emphasized=!1,this.justified=!1,this.label=``,this.quiet=!1,this.vertical=!1,this._selected=s,this.hasManaged=!1,this.manageButtons=()=>{if(!this.slotElement)return;let e=this.slotElement.assignedElements({flatten:!0}).reduce((e,t)=>{if(t.matches(this._buttonSelector))e.push(t);else{let n=[...t.querySelectorAll(`:scope > ${this._buttonSelector}`)];e.push(...n)}return e},[]);if(this.buttons=e,this.selects||!this.hasManaged){let e=[];this.buttons.forEach(t=>{t.selected&&e.push(t.value)}),this.setSelected([...this.selected,...e])}this.manageChildren(),this.manageSelects(),this.hasManaged=!0},new a.MutationController(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageButtons()},skipInitial:!0})}set selected(e){this.requestUpdate(`selected`,this._selected),this._selected=e,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}get selected(){return this._selected}dispatchChange(e){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(e),this.buttons.map(e=>{e.selected=this.selected.includes(e.value)}))}setSelected(e,t){if(e===this.selected)return;let n=this.selected;this.requestUpdate(`selected`,n),this._selected=e,t&&this.dispatchChange(n)}focus(e){this.rovingTabindexController.focus(e)}deselectSelectedButtons(){this.buttons.forEach(e=>{e.selected&&(e.selected=!1,e.tabIndex=-1,e.setAttribute(this.selects?`aria-checked`:`aria-pressed`,`false`))})}handleActionButtonChange(e){e.stopPropagation(),e.preventDefault()}handleClick(e){let t=e.target;if(t.value!==void 0)switch(this.selects){case`single`:this.deselectSelectedButtons(),t.selected=!0,t.tabIndex=0,t.setAttribute(`aria-checked`,`true`),this.setSelected([t.value],!0);break;case`multiple`:{let e=[...this.selected];t.selected=!t.selected,t.setAttribute(`aria-checked`,t.selected?`true`:`false`),t.selected?e.push(t.value):e.splice(this.selected.indexOf(t.value),1),this.setSelected(e,!0),this.buttons.forEach(e=>{e.tabIndex=-1}),t.tabIndex=0;break}default:break}}async applySelects(){await this.manageSelects(!0)}async manageSelects(e){if(this.buttons.length===0)return;let t=this.buttons;switch(this.selects){case`single`:{this.setAttribute(`role`,`radiogroup`);let n=[],r=t.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`radio`),e.setAttribute(`aria-checked`,e.selected?`true`:`false`),e.selected&&n.push(e)});if(e)break;await Promise.all(r);let i=n.map(e=>e.value);this.setSelected(i||s);break}case`multiple`:{this.getAttribute(`role`)===`radiogroup`&&this.removeAttribute(`role`);let n=[],r=[],i=t.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`checkbox`),e.setAttribute(`aria-checked`,e.selected?`true`:`false`),e.selected&&(n.push(e.value),r.push(e))});if(e)break;await Promise.all(i);let a=n.length>0?n:s;this.setSelected(a);break}default:if(this.selected.length>0){let n=[],r=t.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`button`),e.selected?(e.setAttribute(`aria-pressed`,`true`),n.push(e)):e.removeAttribute(`aria-pressed`)});if(e)break;await Promise.all(r),this.setSelected(n.map(e=>e.value))}else{this.buttons.forEach(e=>{e.setAttribute(`role`,`button`)});break}}this.hasAttribute(`role`)||this.setAttribute(`role`,`toolbar`)}render(){return r.html`
|
|
18
|
+
require("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./sized-mixin-CSajkMro.cjs"),n=require("./roving-tabindex-BUFR8hPH.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@lit-labs/observers/mutation-controller.js");var o=`:host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular,var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact,var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px 0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius:0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius:0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover:hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact,var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius:0px 0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact:0px;--action-group-horizontal-spacing-compact:-1px;--action-group-vertical-spacing-compact:-1px;--action-group-button-spacing-reset:0px;--action-group-border-radius-reset:0px;--action-group-border-radius:var(--luzmo-border-radius);--action-group-horizontal-spacing-regular:var(--luzmo-spacing-3);--action-group-vertical-spacing-regular:var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular:var(--luzmo-spacing-2);--action-group-vertical-spacing-regular:var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular:var(--luzmo-spacing-3);--action-group-vertical-spacing-regular:var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-left:0;margin-right:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){flex-direction:column;align-items:stretch;display:flex}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius:0;--luzmo-action-button-border-radius:var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius:0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child),:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius:0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius:0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child),:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}`,s=[],c=class extends t.n(e.n,{validSizes:[`xs`,`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[(0,r.unsafeCSS)(o)]}set buttons(e){e!==this.buttons&&(this._buttons=e,this.rovingTabindexController.clearElementCache())}get buttons(){return this._buttons}constructor(){super(),this._buttons=[],this._buttonSelector=`luzmo-action-button, luzmo-action-menu`,this.rovingTabindexController=new n.t(this,{focusInIndex:e=>{let t=-1,n=e.findIndex((n,r)=>(!e[t]&&!n.disabled&&(t=r),n.selected&&!n.disabled));return e[n]?n:t},elements:()=>this.buttons,isFocusableElement:e=>!e.disabled}),this.compact=!1,this.emphasized=!1,this.justified=!1,this.label=``,this.quiet=!1,this.vertical=!1,this._selected=s,this.hasManaged=!1,this.manageButtons=()=>{if(!this.slotElement)return;let e=this.slotElement.assignedElements({flatten:!0}).reduce((e,t)=>{if(t.matches(this._buttonSelector))e.push(t);else{let n=[...t.querySelectorAll(`:scope > ${this._buttonSelector}`)];e.push(...n)}return e},[]);if(this.buttons=e,this.selects||!this.hasManaged){let e=[];this.buttons.forEach(t=>{t.selected&&e.push(t.value)}),this.setSelected([...this.selected,...e])}this.manageChildren(),this.manageSelects(),this.hasManaged=!0},new a.MutationController(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageButtons()},skipInitial:!0})}set selected(e){this.requestUpdate(`selected`,this._selected),this._selected=e,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}get selected(){return this._selected}dispatchChange(e){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(e),this.buttons.map(e=>{e.selected=this.selected.includes(e.value)}))}setSelected(e,t){if(e===this.selected)return;let n=this.selected;this.requestUpdate(`selected`,n),this._selected=e,t&&this.dispatchChange(n)}focus(e){this.rovingTabindexController.focus(e)}deselectSelectedButtons(){this.buttons.forEach(e=>{e.selected&&(e.selected=!1,e.tabIndex=-1,e.setAttribute(this.selects?`aria-checked`:`aria-pressed`,`false`))})}handleActionButtonChange(e){e.stopPropagation(),e.preventDefault()}handleClick(e){let t=e.target;if(t.value!==void 0)switch(this.selects){case`single`:this.deselectSelectedButtons(),t.selected=!0,t.tabIndex=0,t.setAttribute(`aria-checked`,`true`),this.setSelected([t.value],!0);break;case`multiple`:{let e=[...this.selected];t.selected=!t.selected,t.setAttribute(`aria-checked`,t.selected?`true`:`false`),t.selected?e.push(t.value):e.splice(this.selected.indexOf(t.value),1),this.setSelected(e,!0),this.buttons.forEach(e=>{e.tabIndex=-1}),t.tabIndex=0;break}}}async applySelects(){await this.manageSelects(!0)}async manageSelects(e){if(this.buttons.length===0)return;let t=this.buttons;switch(this.selects){case`single`:{this.setAttribute(`role`,`radiogroup`);let n=[],r=t.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`radio`),e.setAttribute(`aria-checked`,e.selected?`true`:`false`),e.selected&&n.push(e)});if(e)break;await Promise.all(r);let i=n.map(e=>e.value);this.setSelected(i||s);break}case`multiple`:{this.getAttribute(`role`)===`radiogroup`&&this.removeAttribute(`role`);let n=[],r=[],i=t.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`checkbox`),e.setAttribute(`aria-checked`,e.selected?`true`:`false`),e.selected&&(n.push(e.value),r.push(e))});if(e)break;await Promise.all(i);let a=n.length>0?n:s;this.setSelected(a);break}default:if(this.selected.length>0){let n=[],r=t.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`button`),e.selected?(e.setAttribute(`aria-pressed`,`true`),n.push(e)):e.removeAttribute(`aria-pressed`)});if(e)break;await Promise.all(r),this.setSelected(n.map(e=>e.value))}else{this.buttons.forEach(e=>{e.setAttribute(`role`,`button`)});break}}this.hasAttribute(`role`)||this.setAttribute(`role`,`toolbar`)}render(){return r.html`
|
|
19
19
|
<slot role="presentation" @slotchange=${this.manageButtons}></slot>
|
|
20
20
|
`}firstUpdated(e){super.firstUpdated(e),this.addEventListener(`click`,this.handleClick)}updated(e){super.updated(e),e.has(`selects`)&&(this.manageSelects(),this.manageChildren(),this.selects?this.renderRoot.addEventListener(`change`,this.handleActionButtonChange):this.renderRoot.removeEventListener(`change`,this.handleActionButtonChange)),(e.has(`quiet`)||e.has(`emphasized`)||e.has(`size`)||e.has(`staticColor`))&&this.manageChildren(e),e.has(`label`)&&(this.label||e.get(`label`)!==void 0)&&(this.label.length>0?this.setAttribute(`aria-label`,this.label):this.removeAttribute(`aria-label`))}manageChildren(e){this.buttons.forEach(t=>{(this.quiet||e?.get(`quiet`))&&(t.quiet=this.quiet),(this.emphasized||e?.get(`emphasized`))&&(t.emphasized=this.emphasized),(this.staticColor||e?.get(`staticColor`))&&(t.staticColor=this.staticColor),(this.selects||!this.hasManaged)&&(t.selected=this.selected.includes(t.value)),this.size&&(this.size!==`m`||e?.get(`size`)!==void 0)&&(t.size=this.size)})}};e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`compact`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`emphasized`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`justified`,void 0),e.t([(0,i.property)({type:String})],c.prototype,`label`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`quiet`,void 0),e.t([(0,i.property)({type:String})],c.prototype,`selects`,void 0),e.t([(0,i.property)({reflect:!0,attribute:`static-color`})],c.prototype,`staticColor`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`vertical`,void 0),e.t([(0,i.property)({type:Array})],c.prototype,`selected`,null),e.t([(0,i.query)(`slot`)],c.prototype,`slotElement`,void 0),typeof customElements<`u`&&!customElements.get(`luzmo-action-group`)&&customElements.define(`luzmo-action-group`,c),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import "./tokens.js";
|
|
19
|
-
import { n as e, t } from "./decorate-
|
|
20
|
-
import { n } from "./sized-mixin-
|
|
21
|
-
import { t as r } from "./roving-tabindex-
|
|
19
|
+
import { n as e, t } from "./decorate-CpKsOs9z.js";
|
|
20
|
+
import { n } from "./sized-mixin-BmxIAuoH.js";
|
|
21
|
+
import { t as r } from "./roving-tabindex-BKMkfzY0.js";
|
|
22
22
|
import { html as i, unsafeCSS as a } from "lit";
|
|
23
23
|
import { property as o, query as s } from "lit/decorators.js";
|
|
24
24
|
import { MutationController as c } from "@lit-labs/observers/mutation-controller.js";
|
|
25
|
-
|
|
25
|
+
// src/components/action-group/action-group.module.scss?inline
|
|
26
26
|
var l = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular,var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact,var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px 0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius:0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius:0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact,var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover:hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact,var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset,var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius:0px 0px var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact,var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset,var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact:0px;--action-group-horizontal-spacing-compact:-1px;--action-group-vertical-spacing-compact:-1px;--action-group-button-spacing-reset:0px;--action-group-border-radius-reset:0px;--action-group-border-radius:var(--luzmo-border-radius);--action-group-horizontal-spacing-regular:var(--luzmo-spacing-3);--action-group-vertical-spacing-regular:var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular:var(--luzmo-spacing-2);--action-group-vertical-spacing-regular:var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular:var(--luzmo-spacing-3);--action-group-vertical-spacing-regular:var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-left:0;margin-right:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){flex-direction:column;align-items:stretch;display:flex}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius:0;--luzmo-action-button-border-radius:var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius:0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child),:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius:0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius:var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius:0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child),:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) var(--luzmo-action-group-border-radius,var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius:var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius,var(--action-group-border-radius))}", u = [], d = class extends n(e, {
|
|
27
27
|
validSizes: [
|
|
28
28
|
"xs",
|
|
@@ -37,6 +37,7 @@ var l = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--act
|
|
|
37
37
|
return [a(l)];
|
|
38
38
|
}
|
|
39
39
|
set buttons(e) {
|
|
40
|
+
/* c8 ignore next 1 */
|
|
40
41
|
e !== this.buttons && (this._buttons = e, this.rovingTabindexController.clearElementCache());
|
|
41
42
|
}
|
|
42
43
|
get buttons() {
|
|
@@ -106,7 +107,7 @@ var l = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--act
|
|
|
106
107
|
}
|
|
107
108
|
deselectSelectedButtons() {
|
|
108
109
|
this.buttons.forEach((e) => {
|
|
109
|
-
e.selected && (e.selected = !1, e.tabIndex = -1, e.setAttribute(this.selects ? "aria-checked" :
|
|
110
|
+
e.selected && (e.selected = !1, e.tabIndex = -1, e.setAttribute(this.selects ? "aria-checked" : /* c8 ignore */ "aria-pressed", "false"));
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
handleActionButtonChange(e) {
|
|
@@ -125,7 +126,6 @@ var l = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--act
|
|
|
125
126
|
}), t.tabIndex = 0;
|
|
126
127
|
break;
|
|
127
128
|
}
|
|
128
|
-
default: break;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
async applySelects() {
|
|
@@ -189,8 +189,7 @@ var l = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular,var(--act
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
|
|
193
|
-
//#region src/components/action-group/index.ts
|
|
192
|
+
// src/components/action-group/index.ts
|
|
194
193
|
t([o({
|
|
195
194
|
type: Boolean,
|
|
196
195
|
reflect: !0
|
|
@@ -210,5 +209,4 @@ t([o({
|
|
|
210
209
|
type: Boolean,
|
|
211
210
|
reflect: !0
|
|
212
211
|
})], d.prototype, "vertical", void 0), t([o({ type: Array })], d.prototype, "selected", null), t([s("slot")], d.prototype, "slotElement", void 0), typeof customElements < "u" && !customElements.get("luzmo-action-group") && customElements.define("luzmo-action-group", d);
|
|
213
|
-
//#endregion
|
|
214
212
|
export { d as t };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import { SlottableRequestEvent } from '../overlay/slottable-request-event';
|
|
3
3
|
import { LuzmoPickerBase } from '../picker/picker';
|
|
4
|
+
import type { ActionButtonTreatments, ActionButtonVariants } from '../action-button';
|
|
5
|
+
export type { ActionButtonTreatments, ActionButtonVariants } from '../action-button';
|
|
4
6
|
import './../action-button';
|
|
5
7
|
import './../icon';
|
|
6
8
|
import './../overlay';
|
|
@@ -20,6 +22,8 @@ declare const LuzmoActionMenu_base: typeof LuzmoPickerBase & {
|
|
|
20
22
|
* @slot label - The label to use for the Action Menu
|
|
21
23
|
* @slot label-only - The label to use for the Action Menu (no icon space reserved)
|
|
22
24
|
* @slot tooltip - Tooltip to be applied to the Action Button
|
|
25
|
+
* @attr button-variant - Appearance preset for the trigger button.
|
|
26
|
+
* @attr button-treatment - Surface treatment for the trigger button.
|
|
23
27
|
* @attr selects - By default `luzmo-action-menu` does not manage a selection. If
|
|
24
28
|
* you'd like for a selection to be held by the `luzmo-menu` that it presents in
|
|
25
29
|
* its overlay, use `selects="single" to activate this functionality.
|
|
@@ -28,6 +32,18 @@ export declare class LuzmoActionMenu extends LuzmoActionMenu_base {
|
|
|
28
32
|
static get styles(): CSSResultArray;
|
|
29
33
|
selects: undefined | 'single';
|
|
30
34
|
staticColor?: 'white' | 'black';
|
|
35
|
+
/**
|
|
36
|
+
* The appearance preset for the trigger, independent of the menu variant.
|
|
37
|
+
* When omitted, the trigger uses its neutral variant.
|
|
38
|
+
*/
|
|
39
|
+
get buttonVariant(): ActionButtonVariants | undefined;
|
|
40
|
+
set buttonVariant(value: ActionButtonVariants | undefined);
|
|
41
|
+
private _buttonVariant?;
|
|
42
|
+
/**
|
|
43
|
+
* The surface treatment for the trigger, including primary filled actions.
|
|
44
|
+
* When omitted, the trigger uses its outline treatment.
|
|
45
|
+
*/
|
|
46
|
+
buttonTreatment?: ActionButtonTreatments;
|
|
31
47
|
protected listRole: 'listbox' | 'menu';
|
|
32
48
|
protected itemRole: string;
|
|
33
49
|
private get hasLabel();
|
|
@@ -37,4 +53,3 @@ export declare class LuzmoActionMenu extends LuzmoActionMenu_base {
|
|
|
37
53
|
protected render(): TemplateResult;
|
|
38
54
|
protected update(changedProperties: PropertyValues<this>): void;
|
|
39
55
|
}
|
|
40
|
-
export {};
|
|
@@ -15,4 +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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../action-menu-
|
|
18
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../action-menu-BW-XpCVO.cjs");exports.LuzmoActionMenu=e.t;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 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("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs");require("./icon-BlbMP3mJ.cjs");const t=require("./observe-slot-text-BqwCIv2a.cjs");require("./popover-CFzz83f8.cjs");const n=require("./action-button-CL4ZlryE.cjs"),r=require("./observe-slot-presence-CS8pMePk.cjs"),i=require("./slottable-request-event-C6eb7Ch3.cjs");require("./overlay-DAOyrYJL.cjs");const a=require("./picker-CQCAt4Mx.cjs");let o=require("lit"),s=require("lit/decorators.js"),c=require("@luzmo/icons"),l=require("lit/directives/if-defined.js");var u=`:host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{display:none}::slotted([slot=icon]),.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only,var(--action-button-edge-to-visual-only))) * -1)}luzmo-overlay:not(:defined){display:none}`,d=class extends r.t(t.t(a.r,`label`),`[slot="label-only"]`){constructor(...e){super(...e),this.selects=void 0,this.listRole=`menu`,this.itemRole=`menuitem`,this.handleSlottableRequest=e=>{this.dispatchEvent(new i.t(e.name,e.data))}}static get styles(){return[(0,o.unsafeCSS)(u)]}get buttonVariant(){return this._buttonVariant}set buttonVariant(e){let t=e==null?void 0:n.n.includes(e)?e:`neutral`,r=this._buttonVariant;this._buttonVariant=t,t!==r&&this.requestUpdate(`buttonVariant`,r),t===void 0?this.hasAttribute(`button-variant`)&&this.removeAttribute(`button-variant`):this.getAttribute(`button-variant`)!==t&&this.setAttribute(`button-variant`,t)}get hasLabel(){return this.slotHasContent}get labelOnly(){return this.slotContentIsPresent}get buttonContent(){return[o.html`
|
|
19
|
+
${this.labelOnly?o.html``:o.html`
|
|
20
|
+
<slot
|
|
21
|
+
name="icon"
|
|
22
|
+
slot="icon"
|
|
23
|
+
?icon-only=${!this.hasLabel}
|
|
24
|
+
?hidden=${this.labelOnly}
|
|
25
|
+
>
|
|
26
|
+
<luzmo-icon
|
|
27
|
+
class="icon"
|
|
28
|
+
.icon=${c.luzmoEllipsisHorizontal}
|
|
29
|
+
size=${this.size}
|
|
30
|
+
></luzmo-icon>
|
|
31
|
+
</slot>
|
|
32
|
+
`}
|
|
33
|
+
<slot name="label" ?hidden=${!this.hasLabel}></slot>
|
|
34
|
+
<slot name="label-only"></slot>
|
|
35
|
+
<slot name="tooltip" @slotchange=${this.handleTooltipSlotchange}></slot>
|
|
36
|
+
`]}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),o.html`
|
|
37
|
+
<luzmo-action-button
|
|
38
|
+
aria-describedby=${a.t}
|
|
39
|
+
variant=${(0,l.ifDefined)(this.buttonVariant)}
|
|
40
|
+
treatment=${this.buttonTreatment??`outline`}
|
|
41
|
+
?quiet=${this.quiet}
|
|
42
|
+
static-color=${(0,l.ifDefined)(this.staticColor)}
|
|
43
|
+
aria-haspopup="true"
|
|
44
|
+
aria-controls=${(0,l.ifDefined)(this.open?`menu`:void 0)}
|
|
45
|
+
aria-expanded=${this.open?`true`:`false`}
|
|
46
|
+
aria-label=${(0,l.ifDefined)(this.label||void 0)}
|
|
47
|
+
id="button"
|
|
48
|
+
class="button"
|
|
49
|
+
size=${this.size}
|
|
50
|
+
@blur=${this.handleButtonBlur}
|
|
51
|
+
@focus=${this.handleButtonFocus}
|
|
52
|
+
@keydown=${{handleEvent:this.handleEnterKeydown,capture:!0}}
|
|
53
|
+
?disabled=${this.disabled}
|
|
54
|
+
>
|
|
55
|
+
${this.buttonContent}
|
|
56
|
+
</luzmo-action-button>
|
|
57
|
+
${this.renderMenu} ${this.renderDescriptionSlot}
|
|
58
|
+
`}update(e){e.has(`invalid`)&&(this.invalid=!1),super.update(e)}};e.t([(0,s.property)({type:String})],d.prototype,`selects`,void 0),e.t([(0,s.property)({reflect:!0,attribute:`static-color`})],d.prototype,`staticColor`,void 0),e.t([(0,s.property)({type:String,reflect:!0,attribute:`button-variant`,noAccessor:!0})],d.prototype,`buttonVariant`,null),e.t([(0,s.property)({type:String,reflect:!0,attribute:`button-treatment`})],d.prototype,`buttonTreatment`,void 0),e.t([(0,s.state)()],d.prototype,`labelOnly`,null),customElements.get(`luzmo-action-menu`)||customElements.define(`luzmo-action-menu`,d),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
|
@@ -16,28 +16,35 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import "./tokens.js";
|
|
19
|
-
import { t as e } from "./decorate-
|
|
20
|
-
import "./icon-
|
|
21
|
-
import { t } from "./observe-slot-text-
|
|
22
|
-
import "./popover-
|
|
23
|
-
import "./action-button-
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import "./overlay-
|
|
27
|
-
import { r as
|
|
28
|
-
import { html as
|
|
29
|
-
import { property as
|
|
30
|
-
import { luzmoEllipsisHorizontal as
|
|
31
|
-
import { ifDefined as
|
|
32
|
-
|
|
33
|
-
var
|
|
19
|
+
import { t as e } from "./decorate-CpKsOs9z.js";
|
|
20
|
+
import "./icon-DADJww_a.js";
|
|
21
|
+
import { t } from "./observe-slot-text-Dzkb_VqN.js";
|
|
22
|
+
import "./popover-CWrRLzOL.js";
|
|
23
|
+
import { n } from "./action-button-BB3ZZFNN.js";
|
|
24
|
+
import { t as r } from "./observe-slot-presence-t2N_C6Ud.js";
|
|
25
|
+
import { t as i } from "./slottable-request-event-24jJOhbh.js";
|
|
26
|
+
import "./overlay-D_Xfq92b.js";
|
|
27
|
+
import { r as a, t as o } from "./picker-C5eX5WBl.js";
|
|
28
|
+
import { html as s, unsafeCSS as c } from "lit";
|
|
29
|
+
import { property as l, state as u } from "lit/decorators.js";
|
|
30
|
+
import { luzmoEllipsisHorizontal as d } from "@luzmo/icons";
|
|
31
|
+
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
32
|
+
// src/components/action-menu/action-menu.module.scss?inline
|
|
33
|
+
var p = ":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{display:none}::slotted([slot=icon]),.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--luzmo-action-button-edge-to-text,var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only,var(--action-button-edge-to-visual-only))) * -1)}luzmo-overlay:not(:defined){display:none}", m = class extends r(t(a, "label"), "[slot=\"label-only\"]") {
|
|
34
34
|
constructor(...e) {
|
|
35
35
|
super(...e), this.selects = void 0, this.listRole = "menu", this.itemRole = "menuitem", this.handleSlottableRequest = (e) => {
|
|
36
|
-
this.dispatchEvent(new
|
|
36
|
+
this.dispatchEvent(new i(e.name, e.data));
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
static get styles() {
|
|
40
|
-
return [
|
|
40
|
+
return [c(p)];
|
|
41
|
+
}
|
|
42
|
+
get buttonVariant() {
|
|
43
|
+
return this._buttonVariant;
|
|
44
|
+
}
|
|
45
|
+
set buttonVariant(e) {
|
|
46
|
+
let t = e == null ? void 0 : n.includes(e) ? e : "neutral", r = this._buttonVariant;
|
|
47
|
+
this._buttonVariant = t, t !== r && this.requestUpdate("buttonVariant", r), t === void 0 ? this.hasAttribute("button-variant") && this.removeAttribute("button-variant") : this.getAttribute("button-variant") !== t && this.setAttribute("button-variant", t);
|
|
41
48
|
}
|
|
42
49
|
get hasLabel() {
|
|
43
50
|
return this.slotHasContent;
|
|
@@ -46,8 +53,8 @@ var f = ":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{d
|
|
|
46
53
|
return this.slotContentIsPresent;
|
|
47
54
|
}
|
|
48
55
|
get buttonContent() {
|
|
49
|
-
return [
|
|
50
|
-
${this.labelOnly ?
|
|
56
|
+
return [s`
|
|
57
|
+
${this.labelOnly ? s`` : s`
|
|
51
58
|
<slot
|
|
52
59
|
name="icon"
|
|
53
60
|
slot="icon"
|
|
@@ -56,7 +63,7 @@ var f = ":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{d
|
|
|
56
63
|
>
|
|
57
64
|
<luzmo-icon
|
|
58
65
|
class="icon"
|
|
59
|
-
.icon=${
|
|
66
|
+
.icon=${d}
|
|
60
67
|
size=${this.size}
|
|
61
68
|
></luzmo-icon>
|
|
62
69
|
</slot>
|
|
@@ -67,15 +74,17 @@ var f = ":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{d
|
|
|
67
74
|
`];
|
|
68
75
|
}
|
|
69
76
|
render() {
|
|
70
|
-
return this.tooltipEl && (this.tooltipEl.disabled = this.open),
|
|
77
|
+
return this.tooltipEl && (this.tooltipEl.disabled = this.open), s`
|
|
71
78
|
<luzmo-action-button
|
|
72
|
-
aria-describedby=${
|
|
79
|
+
aria-describedby=${o}
|
|
80
|
+
variant=${f(this.buttonVariant)}
|
|
81
|
+
treatment=${this.buttonTreatment ?? "outline"}
|
|
73
82
|
?quiet=${this.quiet}
|
|
74
|
-
static-color=${
|
|
83
|
+
static-color=${f(this.staticColor)}
|
|
75
84
|
aria-haspopup="true"
|
|
76
|
-
aria-controls=${
|
|
85
|
+
aria-controls=${f(this.open ? "menu" : void 0)}
|
|
77
86
|
aria-expanded=${this.open ? "true" : "false"}
|
|
78
|
-
aria-label=${
|
|
87
|
+
aria-label=${f(this.label || void 0)}
|
|
79
88
|
id="button"
|
|
80
89
|
class="button"
|
|
81
90
|
size=${this.size}
|
|
@@ -96,11 +105,18 @@ var f = ":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{d
|
|
|
96
105
|
e.has("invalid") && (this.invalid = !1), super.update(e);
|
|
97
106
|
}
|
|
98
107
|
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
e([c({ type: String })], p.prototype, "selects", void 0), e([c({
|
|
108
|
+
// src/components/action-menu/index.ts
|
|
109
|
+
e([l({ type: String })], m.prototype, "selects", void 0), e([l({
|
|
102
110
|
reflect: !0,
|
|
103
111
|
attribute: "static-color"
|
|
104
|
-
})],
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
})], m.prototype, "staticColor", void 0), e([l({
|
|
113
|
+
type: String,
|
|
114
|
+
reflect: !0,
|
|
115
|
+
attribute: "button-variant",
|
|
116
|
+
noAccessor: !0
|
|
117
|
+
})], m.prototype, "buttonVariant", null), e([l({
|
|
118
|
+
type: String,
|
|
119
|
+
reflect: !0,
|
|
120
|
+
attribute: "button-treatment"
|
|
121
|
+
})], m.prototype, "buttonTreatment", void 0), e([u()], m.prototype, "labelOnly", null), customElements.get("luzmo-action-menu") || customElements.define("luzmo-action-menu", m);
|
|
122
|
+
export { m as t };
|
|
@@ -15,4 +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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../avatar-
|
|
18
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../avatar-DFzJbtId.cjs");exports.LuzmoAvatar=e.t;
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import "./tokens.js";
|
|
19
|
-
import { t as e } from "./decorate-
|
|
20
|
-
import { n as t, t as n } from "./sized-mixin-
|
|
21
|
-
import { t as r } from "./focusable-
|
|
22
|
-
import { t as i } from "./like-anchor-
|
|
19
|
+
import { t as e } from "./decorate-CpKsOs9z.js";
|
|
20
|
+
import { n as t, t as n } from "./sized-mixin-BmxIAuoH.js";
|
|
21
|
+
import { t as r } from "./focusable-xjv79E40.js";
|
|
22
|
+
import { t as i } from "./like-anchor-DcFv8rEo.js";
|
|
23
23
|
import { html as a, unsafeCSS as o } from "lit";
|
|
24
24
|
import { property as s, query as c, state as l } from "lit/decorators.js";
|
|
25
25
|
import { luzmoIcon as u, luzmoUser as d } from "@luzmo/icons";
|
|
26
26
|
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
27
|
-
|
|
27
|
+
// src/components/avatar/avatar.module.scss?inline
|
|
28
28
|
var p = "@media (forced-colors:active){:host{--highcontrast-avatar-focus-indicator-color:CanvasText}}:host{--avatar-border-radius:var(--luzmo-avatar-border-radius,var(--luzmo-avatar-size,var(--avatar-size)));inline-size:var(--luzmo-avatar-size,var(--avatar-size));block-size:var(--luzmo-avatar-size,var(--avatar-size));border-radius:var(--avatar-border-radius);-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--luzmo-avatar-color-opacity,var(--avatar-color-opacity));border-width:0;outline:none;display:inline-block;position:relative;overflow:visible}:host([disabled]){opacity:var(--highcontrast-avatar-color-opacity-disabled,var(--luzmo-avatar-color-opacity-disabled,var(--avatar-color-opacity-disabled)))}:host(:not([disabled])) .is-focused:after,:host(:not([disabled])) .link:focus-visible:after{pointer-events:none;content:\"\";inline-size:calc(var(--luzmo-avatar-custom-size,var(--luzmo-avatar-size,var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap,var(--avatar-focus-indicator-gap)) * 2);block-size:calc(var(--luzmo-avatar-custom-size,var(--luzmo-avatar-size,var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap,var(--avatar-focus-indicator-gap)) * 2);border-style:solid;border-width:var(--luzmo-avatar-focus-indicator-width,var(--avatar-focus-indicator-width));border-color:var(--highcontrast-avatar-focus-indicator-color,var(--luzmo-avatar-focus-indicator-color,var(--avatar-focus-indicator-color)));border-radius:var(--avatar-border-radius);position:absolute;inset-block-start:calc((var(--luzmo-avatar-focus-indicator-gap,var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-width,var(--avatar-focus-indicator-width))) * -1);inset-inline-start:calc((var(--luzmo-avatar-focus-indicator-gap,var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-width,var(--avatar-focus-indicator-width))) * -1)}.link{outline:0}.image{inline-size:var(--luzmo-avatar-size,var(--avatar-size));block-size:var(--luzmo-avatar-size,var(--avatar-size));border-radius:var(--avatar-border-radius)}.fallback{inline-size:var(--luzmo-avatar-size,var(--avatar-size));block-size:var(--luzmo-avatar-size,var(--avatar-size));border-radius:var(--avatar-border-radius);box-sizing:border-box;background-color:var(--luzmo-avatar-fallback-background-color,var(--avatar-fallback-background-color));color:var(--luzmo-avatar-fallback-color,var(--avatar-fallback-color));font-family:var(--luzmo-font-family);font-size:var(--luzmo-avatar-letter-font-size,var(--avatar-letter-font-size));font-weight:var(--luzmo-avatar-letter-font-weight,var(--avatar-letter-font-weight));text-transform:uppercase;justify-content:center;align-items:center;line-height:1;display:flex;overflow:hidden}.fallback svg{font-size:var(--luzmo-avatar-icon-size,var(--avatar-icon-size))}:host([rounding=none]),:host([rounding=none]) img,:host([rounding=none]) .fallback{border-radius:0}:host([rounding=full]),:host([rounding=full]) img,:host([rounding=full]) .fallback{border-radius:100%}:host([border=light]){border:var(--luzmo-avatar-border-width,var(--avatar-border-width)) solid var(--luzmo-avatar-border-color,var(--avatar-border-color))}:host([border=none]){border:0}:host{--avatar-color-opacity:1;--avatar-border-width:var(--luzmo-border-width);--avatar-border-color:var(--luzmo-border-color);--avatar-size:32px;--avatar-focus-indicator-width:var(--luzmo-indicator-width);--avatar-focus-indicator-gap:var(--luzmo-indicator-gap);--avatar-focus-indicator-color:var(--luzmo-indicator-color);--avatar-color-opacity-disabled:.3;--avatar-fallback-background-color:var(--luzmo-background-color-highlight);--avatar-fallback-color:var(--luzmo-font-color);--avatar-letter-font-weight:var(--luzmo-font-weight)}:host([size=xxs]){--avatar-size:var(--luzmo-component-height-xxs);--avatar-letter-font-size:var(--luzmo-font-size-xs);--avatar-icon-size:var(--luzmo-icon-size-xxs)}:host([size=xs]){--avatar-size:var(--luzmo-component-height-xs);--avatar-letter-font-size:var(--luzmo-font-size-xs);--avatar-icon-size:var(--luzmo-icon-size-xs)}:host([size=s]){--avatar-size:var(--luzmo-component-height-s);--avatar-letter-font-size:var(--luzmo-font-size-s);--avatar-icon-size:var(--luzmo-icon-size-s)}:host{--avatar-size:var(--luzmo-component-height);--avatar-letter-font-size:var(--luzmo-font-size);--avatar-icon-size:var(--luzmo-icon-size-m)}:host([size=l]){--avatar-size:var(--luzmo-component-height-l);--avatar-letter-font-size:var(--luzmo-font-size-l);--avatar-icon-size:var(--luzmo-icon-size-l)}:host([size=xl]){--avatar-size:var(--luzmo-component-height-xl);--avatar-letter-font-size:var(--luzmo-font-size-xl);--avatar-icon-size:var(--luzmo-icon-size-xl)}:host([size=xxl]){--avatar-size:var(--luzmo-component-height-xxl);--avatar-letter-font-size:var(--luzmo-font-size-xxl);--avatar-icon-size:var(--luzmo-icon-size-xxl)}:host([color-from-letter][data-color=\"0\"]){--avatar-fallback-background-color:var(--luzmo-seafoam-color);--avatar-fallback-color:black}:host([color-from-letter][data-color=\"1\"]){--avatar-fallback-background-color:var(--luzmo-indigo-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"2\"]){--avatar-fallback-background-color:var(--luzmo-purple-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"3\"]){--avatar-fallback-background-color:var(--luzmo-fuchsia-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"4\"]){--avatar-fallback-background-color:var(--luzmo-magenta-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"5\"]){--avatar-fallback-background-color:var(--luzmo-yellow-color);--avatar-fallback-color:black}:host([color-from-letter][data-color=\"6\"]){--avatar-fallback-background-color:var(--luzmo-red-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"7\"]){--avatar-fallback-background-color:var(--luzmo-orange-color);--avatar-fallback-color:black}:host([color-from-letter][data-color=\"8\"]){--avatar-fallback-background-color:var(--luzmo-chartreuse-color);--avatar-fallback-color:black}:host([color-from-letter][data-color=\"9\"]){--avatar-fallback-background-color:var(--luzmo-celery-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"10\"]){--avatar-fallback-background-color:var(--luzmo-green-color);--avatar-fallback-color:white}:host([color-from-letter][data-color=\"11\"]){--avatar-fallback-background-color:var(--luzmo-cyan-color);--avatar-fallback-color:black}:host([color-from-letter][data-color=\"12\"]){--avatar-fallback-background-color:var(--luzmo-blue-color);--avatar-fallback-color:white}img{vertical-align:top}", m = 13, h = class extends i(t(r, { validSizes: Object.values(n) })) {
|
|
29
29
|
constructor(...e) {
|
|
30
30
|
super(...e), this.src = "", this.letter = "", this.colorFromLetter = !1, this.isDecorative = !1, this._imageFailed = !1;
|
|
@@ -39,7 +39,7 @@ var p = "@media (forced-colors:active){:host{--highcontrast-avatar-focus-indicat
|
|
|
39
39
|
return this.letter?.trim().slice(0, 1).toUpperCase() ?? "";
|
|
40
40
|
}
|
|
41
41
|
get colorIndex() {
|
|
42
|
-
if (
|
|
42
|
+
if (this.colorFromLetter && this.displayLetter) return this.displayLetter.charCodeAt(0) % m;
|
|
43
43
|
}
|
|
44
44
|
willUpdate(e) {
|
|
45
45
|
super.willUpdate(e), e.has("src") && (this._imageFailed = !1);
|
|
@@ -78,8 +78,7 @@ var p = "@media (forced-colors:active){:host{--highcontrast-avatar-focus-indicat
|
|
|
78
78
|
}) : t;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
//#region src/components/avatar/index.ts
|
|
81
|
+
// src/components/avatar/index.ts
|
|
83
82
|
e([s({
|
|
84
83
|
type: String,
|
|
85
84
|
reflect: !0
|
|
@@ -95,5 +94,4 @@ e([s({
|
|
|
95
94
|
reflect: !0,
|
|
96
95
|
attribute: "is-decorative"
|
|
97
96
|
})], h.prototype, "isDecorative", void 0), e([l()], h.prototype, "_imageFailed", void 0), customElements.get("luzmo-avatar") || customElements.define("luzmo-avatar", h);
|
|
98
|
-
//#endregion
|
|
99
97
|
export { h as t };
|