@luzmo/lucero 0.0.4 → 0.0.8
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/accordion-item.d.ts +24 -0
- package/components/accordion/accordion.d.ts +42 -0
- package/components/accordion/index.cjs +43 -0
- package/components/accordion/index.d.ts +10 -0
- package/{lib → components}/accordion/index.js +10 -11
- package/components/action-bar/action-bar.d.ts +42 -0
- package/components/action-bar/index.cjs +39 -0
- package/components/action-bar/index.d.ts +7 -0
- package/{lib → components}/action-bar/index.js +9 -10
- package/components/action-button/action-button.d.ts +81 -0
- package/components/action-button/index.cjs +24 -0
- package/components/action-button/index.d.ts +7 -0
- package/{lib → components}/action-button/index.js +6 -7
- package/components/action-group/action-group.d.ts +50 -0
- package/{lib → components}/action-group/index.cjs +1 -1
- package/components/action-group/index.d.ts +7 -0
- package/{lib → components}/action-group/index.js +1 -1
- package/components/action-group-Uimj-MJP.cjs +20 -0
- package/{lib/action-group-BoIH8s8R.js → components/action-group-enfc-YnW.js} +11 -12
- package/components/action-menu/action-menu.d.ts +40 -0
- package/{lib → components}/action-menu/index.cjs +5 -5
- package/components/action-menu/index.d.ts +7 -0
- package/{lib → components}/action-menu/index.js +10 -11
- package/{lib/async-directive-FGzMycjH.js → components/async-directive-DWRUSKKF.js} +1 -1
- package/{lib/async-directive-CV2MII86.cjs → components/async-directive-D_Ter1F8.cjs} +1 -1
- package/components/avatar/avatar.d.ts +31 -0
- package/components/avatar/index.cjs +24 -0
- package/components/avatar/index.d.ts +7 -0
- package/{lib → components}/avatar/index.js +13 -14
- package/components/base-B7Pfl2if.cjs +40 -0
- package/components/base-CawdqE7p.js +666 -0
- package/components/button/button-base.d.ts +44 -0
- package/components/button/button.d.ts +59 -0
- package/components/button/clear-button.d.ts +22 -0
- package/components/button/close-button.d.ts +24 -0
- package/components/button/index.cjs +20 -0
- package/components/button/index.d.ts +13 -0
- package/{lib → components}/button/index.js +11 -12
- package/{lib/button-base-DgtT6sU5.js → components/button-base-B7v4eeRh.js} +13 -12
- package/components/button-base-DmjYs2s9.cjs +25 -0
- package/components/button-group/button-group.d.ts +19 -0
- package/components/button-group/index.cjs +18 -0
- package/components/button-group/index.d.ts +7 -0
- package/{lib → components}/button-group/index.js +7 -8
- package/components/checkbox/checkbox-base.d.ts +9 -0
- package/components/checkbox/checkbox-mixin.d.ts +14 -0
- package/components/checkbox/checkbox.d.ts +54 -0
- package/components/checkbox/index.cjs +25 -0
- package/components/checkbox/index.d.ts +7 -0
- package/{lib → components}/checkbox/index.js +5 -6
- package/{lib/checkbox-mixin-DegQlk5C.js → components/checkbox-mixin-BFGTmw17.js} +15 -16
- package/{lib/checkbox-mixin-H0Hm-VLk.cjs → components/checkbox-mixin-DUhXwD46.cjs} +3 -3
- package/{lib/clear-button-Ap5H3UyH.js → components/clear-button-DgZmX5RX.js} +9 -10
- package/components/clear-button-KdrF2jaV.cjs +18 -0
- package/{lib/close-button-CGISEF33.js → components/close-button-CFHQnbsK.js} +7 -8
- package/components/close-button-DVGUppyd.cjs +18 -0
- package/components/color-area/color-area.d.ts +67 -0
- package/components/color-area/index.cjs +80 -0
- package/components/color-area/index.d.ts +7 -0
- package/{lib → components}/color-area/index.js +11 -11
- package/components/color-field/color-field.d.ts +20 -0
- package/components/color-field/index.cjs +23 -0
- package/components/color-field/index.d.ts +7 -0
- package/{lib → components}/color-field/index.js +2 -3
- package/components/color-handle/color-handle.d.ts +13 -0
- package/components/color-handle/index.cjs +24 -0
- package/components/color-handle/index.d.ts +7 -0
- package/{lib → components}/color-handle/index.js +2 -3
- package/components/color-loupe/color-loupe.d.ts +7 -0
- package/{lib → components}/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.d.ts +7 -0
- package/{lib → components}/color-loupe/index.js +1 -1
- package/{lib/color-loupe-DBEApMDT.js → components/color-loupe-DxcqXoJ6.js} +3 -4
- package/components/color-loupe-SskbNeMp.cjs +56 -0
- package/components/color-menu/color-menu.d.ts +54 -0
- package/components/color-menu/index.cjs +86 -0
- package/components/color-menu/index.d.ts +7 -0
- package/{lib → components}/color-menu/index.js +9 -10
- package/components/color-picker/color-picker.d.ts +39 -0
- package/components/color-picker/index.cjs +48 -0
- package/components/color-picker/index.d.ts +7 -0
- package/{lib → components}/color-picker/index.js +33 -34
- package/components/color-slider/color-slider.d.ts +57 -0
- package/components/color-slider/index.cjs +57 -0
- package/components/color-slider/index.d.ts +7 -0
- package/{lib → components}/color-slider/index.js +6 -6
- package/{lib/directive-helpers-C2vOfhFx.cjs → components/directive-helpers-TkFq2eZF.cjs} +1 -1
- package/{lib/directive-helpers-BLDZnGQv.js → components/directive-helpers-nlQRAaQt.js} +1 -1
- package/components/divider/divider.d.ts +24 -0
- package/components/divider/index.cjs +18 -0
- package/components/divider/index.d.ts +7 -0
- package/{lib → components}/divider/index.js +6 -7
- package/components/field-group/field-group.d.ts +24 -0
- package/{lib → components}/field-group/index.cjs +1 -1
- package/components/field-group/index.d.ts +7 -0
- package/{lib → components}/field-group/index.js +1 -1
- package/{lib/field-group-CBWafIUV.js → components/field-group-DAhrTCfl.js} +2 -3
- package/components/field-group-DSY2HUoj.cjs +23 -0
- package/components/field-label/field-label.d.ts +50 -0
- package/{lib → components}/field-label/index.cjs +1 -1
- package/components/field-label/index.d.ts +7 -0
- package/{lib → components}/field-label/index.js +2 -2
- package/{lib/field-label-BK_tk8vP.js → components/field-label-CAFfGxEL.js} +15 -16
- package/components/field-label-CjsQ3ujK.cjs +25 -0
- package/{lib/focusable-Dv_6CFaY.cjs → components/focusable-DGWL1v1p.cjs} +1 -1
- package/{lib/focusable-DbUg-3Vp.js → components/focusable-cj2QhwDT.js} +1 -1
- package/components/icon/icon-base.d.ts +11 -0
- package/components/icon/icon.d.ts +12 -0
- package/components/icon/index.cjs +18 -0
- package/components/icon/index.d.ts +7 -0
- package/{lib → components}/icon/index.js +4 -5
- package/{lib/if-defined-Cv6xanXh.cjs → components/if-defined-B56xGmAg.cjs} +2 -2
- package/{lib/if-defined-CYpcjGCb.js → components/if-defined-BSAr_4u4.js} +1 -1
- package/{lib/index-ovT-qVzf.js → components/index-CMvLpPKD.js} +8 -9
- package/{lib/index-yNcLzjhM.cjs → components/index-DnWavOZD.cjs} +15 -15
- package/components/index.cjs +18 -0
- package/{lib → components}/index.js +131 -90
- package/components/infield-button/index.cjs +22 -0
- package/components/infield-button/index.d.ts +7 -0
- package/{lib → components}/infield-button/index.js +3 -4
- package/components/infield-button/infield-button.d.ts +25 -0
- package/components/label/index.cjs +18 -0
- package/components/label/index.d.ts +7 -0
- package/{lib → components}/label/index.js +1 -2
- package/components/label/label.d.ts +7 -0
- package/components/language-resolution-8yZa5r_P.js +53 -0
- package/components/language-resolution-DJzmyzZq.cjs +18 -0
- package/{lib/like-anchor-K8W0QYwC.cjs → components/like-anchor-Bmabl9ra.cjs} +4 -4
- package/{lib/like-anchor-cDeGGeHh.js → components/like-anchor-QBlvwFfT.js} +8 -9
- package/{lib/manage-help-text-2mSEy-AD.js → components/manage-help-text-Cozl9Sgn.js} +8 -8
- package/{lib/manage-help-text-iOk-zmy8.cjs → components/manage-help-text-OHXDgxyj.cjs} +3 -3
- package/{lib → components}/menu/index.cjs +1 -1
- package/components/menu/index.d.ts +16 -0
- package/{lib → components}/menu/index.js +1 -1
- package/components/menu/menu-divider.d.ts +14 -0
- package/components/menu/menu-group.d.ts +17 -0
- package/components/menu/menu-item.d.ts +125 -0
- package/components/menu/menu.d.ts +119 -0
- package/components/multi-language-field/index.cjs +39 -0
- package/components/multi-language-field/index.d.ts +7 -0
- package/{lib → components}/multi-language-field/index.js +6 -7
- package/components/multi-language-field/multi-language-field.d.ts +41 -0
- package/components/number-field/index.cjs +57 -0
- package/components/number-field/index.d.ts +7 -0
- package/{lib → components}/number-field/index.js +24 -24
- package/components/number-field/number-field.d.ts +113 -0
- package/{lib/observe-slot-text-BmsCNJig.cjs → components/observe-slot-text-CrYB2Pj-.cjs} +1 -1
- package/{lib/observe-slot-text-BoFRF-VI.js → components/observe-slot-text-ggb4kKgY.js} +1 -1
- package/components/overlay/abstract-overlay.d.ts +72 -0
- package/components/overlay/click-controller.d.ts +14 -0
- package/components/overlay/events.d.ts +23 -0
- package/components/overlay/full-size-plugin.d.ts +12 -0
- package/components/overlay/hover-controller.d.ts +20 -0
- package/components/overlay/index.cjs +73 -0
- package/components/overlay/index.d.ts +22 -0
- package/{lib → components}/overlay/index.js +55 -38
- package/components/overlay/interaction-controller.d.ts +38 -0
- package/components/overlay/loader.d.ts +4 -0
- package/components/overlay/longpress-controller.d.ts +21 -0
- package/components/overlay/overlay-dialog.d.ts +4 -0
- package/components/overlay/overlay-events.d.ts +11 -0
- package/components/overlay/overlay-no-popover.d.ts +4 -0
- package/components/overlay/overlay-popover.d.ts +4 -0
- package/components/overlay/overlay-stack.d.ts +44 -0
- package/components/overlay/overlay-timer.d.ts +21 -0
- package/components/overlay/overlay-trigger-directive.d.ts +26 -0
- package/components/overlay/overlay-trigger.d.ts +53 -0
- package/components/overlay/overlay-types.d.ts +50 -0
- package/components/overlay/overlay.d.ts +464 -0
- package/components/overlay/placement-controller.d.ts +157 -0
- package/components/overlay/slottable-request-directive.d.ts +17 -0
- package/components/overlay/slottable-request-event.d.ts +12 -0
- package/components/overlay/strategies.d.ts +8 -0
- package/components/overlay/virtual-trigger.d.ts +7 -0
- package/{lib/overlay-C7QKFqRc.js → components/overlay-CJ9by37f.js} +94 -84
- package/components/overlay-Deh6Ki6I.cjs +47 -0
- package/{lib/pending-state-Dbc2HIM2.cjs → components/pending-state-Do522lTd.cjs} +2 -2
- package/{lib/pending-state-D5KTK4_1.js → components/pending-state-TJj1x9xn.js} +2 -2
- package/components/picker/desktop-controller.d.ts +7 -0
- package/{lib → components}/picker/index.cjs +1 -1
- package/components/picker/index.d.ts +7 -0
- package/{lib → components}/picker/index.js +2 -2
- package/components/picker/interaction-controller.d.ts +43 -0
- package/components/picker/mobile-controller.d.ts +9 -0
- package/components/picker/picker.d.ts +154 -0
- package/components/picker/strategies.d.ts +6 -0
- package/components/picker-833Apxe4.js +655 -0
- package/components/picker-DDx8ii73.cjs +127 -0
- package/{lib/platform-DQYMG7JI.js → components/platform-BM-uMWpX.js} +34 -19
- package/components/platform-BiXhwqk3.cjs +18 -0
- package/{lib → components}/popover/index.cjs +1 -1
- package/components/popover/index.d.ts +7 -0
- package/{lib → components}/popover/index.js +2 -2
- package/components/popover/popover.d.ts +29 -0
- package/components/popover-BGOgXaka.cjs +30 -0
- package/{lib/popover-ZRVxogyp.js → components/popover-DlkzrLpl.js} +8 -9
- package/{lib → components}/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.d.ts +7 -0
- package/{lib → components}/progress-circle/index.js +1 -1
- package/components/progress-circle/progress-circle.d.ts +35 -0
- package/{lib/progress-circle-DpXiqW6a.js → components/progress-circle-Be24kv6B.js} +5 -6
- package/components/progress-circle-NNbCMK2i.cjs +33 -0
- package/components/radio/index.cjs +22 -0
- package/components/radio/index.d.ts +10 -0
- package/{lib → components}/radio/index.js +10 -11
- package/components/radio/radio-group.d.ts +27 -0
- package/components/radio/radio.d.ts +39 -0
- package/components/search/index.cjs +45 -0
- package/components/search/index.d.ts +7 -0
- package/{lib → components}/search/index.js +3 -4
- package/components/search/search.d.ts +27 -0
- package/{lib/sized-mixin-Dl0KoEcV.js → components/sized-mixin-BxMraZLS.js} +1 -1
- package/{lib/sized-mixin-BSYHt8nT.cjs → components/sized-mixin-D9LkrMjb.cjs} +1 -1
- package/components/slider/index.cjs +18 -0
- package/components/slider/index.d.ts +7 -0
- package/{lib → components}/slider/index.js +5 -6
- package/components/slider/slider.d.ts +24 -0
- package/{lib/state-DReJ3hB6.cjs → components/state-C5I1gP3G.cjs} +1 -1
- package/{lib/state-BAO-13Bs.js → components/state-CYxk12SV.js} +1 -1
- package/{lib/streaming-listener-DLo0wkMc.js → components/streaming-listener-CCalHg57.js} +18 -52
- package/components/streaming-listener-KVex1WWB.cjs +18 -0
- package/{lib/style-map-BqvQDFJt.js → components/style-map-Ct2LiEds.js} +1 -1
- package/{lib/style-map-BjBGQ_u3.cjs → components/style-map-uMq-yDJ3.cjs} +2 -2
- package/components/swatch/index.cjs +49 -0
- package/components/swatch/index.d.ts +10 -0
- package/{lib → components}/swatch/index.js +9 -10
- package/components/swatch/swatch-group.d.ts +41 -0
- package/components/swatch/swatch.d.ts +40 -0
- package/components/switch/index.cjs +22 -0
- package/components/switch/index.d.ts +7 -0
- package/{lib → components}/switch/index.js +6 -7
- package/components/switch/switch.d.ts +27 -0
- package/components/tags/index.cjs +32 -0
- package/components/tags/index.d.ts +10 -0
- package/{lib → components}/tags/index.js +17 -18
- package/components/tags/tag.d.ts +29 -0
- package/components/tags/tags.d.ts +28 -0
- package/components/text-field/help-text-manager.d.ts +19 -0
- package/components/text-field/help-text.d.ts +20 -0
- package/components/text-field/index.cjs +21 -0
- package/components/text-field/index.d.ts +14 -0
- package/{lib → components}/text-field/index.js +9 -9
- package/components/text-field/manage-help-text.d.ts +13 -0
- package/components/text-field/text-field.d.ts +142 -0
- package/{lib/text-field-C6Aa7XOb.cjs → components/text-field-5_ev9way.cjs} +15 -15
- package/{lib/text-field-DPk332j9.js → components/text-field-CvKSS59x.js} +28 -30
- package/components/toast/index.cjs +51 -0
- package/components/toast/index.d.ts +7 -0
- package/{lib → components}/toast/index.js +2 -3
- package/components/toast/toast.d.ts +77 -0
- package/components/tooltip/index.cjs +45 -0
- package/components/tooltip/index.d.ts +8 -0
- package/{lib → components}/tooltip/index.js +13 -12
- package/components/tooltip/tooltip-directive.d.ts +5 -0
- package/components/tooltip/tooltip.d.ts +55 -0
- package/components/unit-input/index.cjs +43 -0
- package/components/unit-input/index.d.ts +7 -0
- package/{lib → components}/unit-input/index.js +5 -6
- package/components/unit-input/unit-input.d.ts +33 -0
- package/components/utils.cjs +18 -0
- package/components/utils.js +42 -0
- package/custom-elements.json +1 -0
- package/index.d.ts +40 -0
- package/package.json +141 -103
- package/utils/base.d.ts +16 -0
- package/utils/condition-attribute-with-id.d.ts +2 -0
- package/utils/first-focusable-in.d.ts +3 -0
- package/utils/focus-visible.d.ts +29 -0
- package/utils/focusable-selectors.d.ts +2 -0
- package/utils/focusable.d.ts +58 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/get-label-from-slot.d.ts +1 -0
- package/utils/index.d.ts +6 -0
- package/utils/like-anchor.d.ts +23 -0
- package/utils/observe-slot-presence.d.ts +12 -0
- package/utils/observe-slot-text.d.ts +11 -0
- package/utils/platform.d.ts +10 -0
- package/utils/random-id.d.ts +1 -0
- package/utils/reactive-controllers/color.d.ts +54 -0
- package/utils/reactive-controllers/dependency-manger.d.ts +26 -0
- package/utils/reactive-controllers/element-resolution.d.ts +23 -0
- package/utils/reactive-controllers/focus-group.d.ts +62 -0
- package/utils/reactive-controllers/language-resolution.d.ts +11 -0
- package/utils/reactive-controllers/match-media.d.ts +13 -0
- package/utils/reactive-controllers/pending-state.d.ts +41 -0
- package/utils/reactive-controllers/roving-tabindex.d.ts +19 -0
- package/utils/reparent-child.d.ts +4 -0
- package/utils/sized-mixin.d.ts +17 -0
- package/utils/streaming-listener.d.ts +48 -0
- package/lib/accordion/index.cjs +0 -43
- package/lib/action-bar/index.cjs +0 -39
- package/lib/action-button/index.cjs +0 -24
- package/lib/action-group-D4MxBrq8.cjs +0 -20
- package/lib/avatar/index.cjs +0 -24
- package/lib/base-BCmA9Wxv.cjs +0 -30
- package/lib/base-nYalvNMy.js +0 -390
- package/lib/button/index.cjs +0 -20
- package/lib/button-base-B0iB_JTv.cjs +0 -25
- package/lib/button-group/index.cjs +0 -18
- package/lib/checkbox/index.cjs +0 -25
- package/lib/clear-button-D0djuaLb.cjs +0 -18
- package/lib/close-button-BrfeZvjk.cjs +0 -18
- package/lib/color-area/index.cjs +0 -80
- package/lib/color-field/index.cjs +0 -23
- package/lib/color-handle/index.cjs +0 -24
- package/lib/color-loupe-BICpNqFs.cjs +0 -56
- package/lib/color-menu/index.cjs +0 -86
- package/lib/color-picker/index.cjs +0 -48
- package/lib/color-slider/index.cjs +0 -57
- package/lib/divider/index.cjs +0 -18
- package/lib/field-group-TUFvhJkk.cjs +0 -23
- package/lib/field-label-BrJaeORz.cjs +0 -25
- package/lib/icon/index.cjs +0 -18
- package/lib/index.cjs +0 -18
- package/lib/infield-button/index.cjs +0 -22
- package/lib/label/index.cjs +0 -18
- package/lib/legend-position/index.cjs +0 -27
- package/lib/legend-position/index.js +0 -85
- package/lib/lit-html-B3ugcwD9.js +0 -248
- package/lib/lit-html-p4Oxv2-5.cjs +0 -24
- package/lib/multi-language-field/index.cjs +0 -39
- package/lib/number-field/index.cjs +0 -57
- package/lib/overlay/index.cjs +0 -73
- package/lib/overlay-DScraBAi.cjs +0 -47
- package/lib/picker--2OCYWnV.js +0 -657
- package/lib/picker-B9W7Haf4.cjs +0 -127
- package/lib/platform-CQzYNWKq.cjs +0 -18
- package/lib/popover-CVbjhSnx.cjs +0 -30
- package/lib/progress-circle-CiJoS8J7.cjs +0 -33
- package/lib/radio/index.cjs +0 -22
- package/lib/search/index.cjs +0 -45
- package/lib/slider/index.cjs +0 -18
- package/lib/streaming-listener-Bw4jE33f.cjs +0 -18
- package/lib/swatch/index.cjs +0 -49
- package/lib/switch/index.cjs +0 -22
- package/lib/tags/index.cjs +0 -32
- package/lib/text-field/index.cjs +0 -21
- package/lib/toast/index.cjs +0 -51
- package/lib/tooltip/index.cjs +0 -45
- package/lib/unit-input/index.cjs +0 -43
- /package/{lib → components}/base-BjTwmyRF.cjs +0 -0
- /package/{lib → components}/base-D76d76ww.js +0 -0
- /package/{lib → components}/color-Bg3tYsAQ.js +0 -0
- /package/{lib → components}/color-DphK4hwx.cjs +0 -0
- /package/{lib → components}/condition-attribute-with-id-DrQYZzFS.cjs +0 -0
- /package/{lib → components}/condition-attribute-with-id-Dv4lSRbe.js +0 -0
- /package/{lib → components}/dependency-manger-C5HCkMMB.cjs +0 -0
- /package/{lib → components}/dependency-manger-CEXvGQUV.js +0 -0
- /package/{lib → components}/directive-C7oCP5Bh.cjs +0 -0
- /package/{lib → components}/directive-oAbCiebi.js +0 -0
- /package/{lib → components}/divider.module-CXMNveQc.cjs +0 -0
- /package/{lib → components}/divider.module-DwOuLGU3.js +0 -0
- /package/{lib → components}/element-resolution-BvRLGqIU.cjs +0 -0
- /package/{lib → components}/element-resolution-FCUT-wql.js +0 -0
- /package/{lib → components}/focus-group-DHeTq18L.js +0 -0
- /package/{lib → components}/focus-group-DnxZUBhQ.cjs +0 -0
- /package/{lib → components}/focus-visible-B0P9aY_G.cjs +0 -0
- /package/{lib → components}/focus-visible-DBlJGoEW.js +0 -0
- /package/{lib → components}/focusable-selectors-B4YgbghQ.js +0 -0
- /package/{lib → components}/focusable-selectors-BgFlyFcY.cjs +0 -0
- /package/{lib → components}/index-C1chwzNp.js +0 -0
- /package/{lib → components}/index-DCKCHDTt.cjs +0 -0
- /package/{lib → components}/mutation-controller-DH7YOCyj.js +0 -0
- /package/{lib → components}/mutation-controller-DkOMCW-c.cjs +0 -0
- /package/{lib → components}/query-BL-TJj7K.cjs +0 -0
- /package/{lib → components}/query-D_KR_GUc.js +0 -0
- /package/{lib → components}/query-assigned-elements-DjfhL1cl.js +0 -0
- /package/{lib → components}/query-assigned-elements-DsKsfk7G.cjs +0 -0
- /package/{lib → components}/query-assigned-nodes-BcKWmGzy.cjs +0 -0
- /package/{lib → components}/query-assigned-nodes-C76XVPWY.js +0 -0
- /package/{lib → components}/random-id-ByCz1xaq.js +0 -0
- /package/{lib → components}/random-id-CqvckpWe.cjs +0 -0
- /package/{lib → components}/roving-tabindex-By_fCy_e.cjs +0 -0
- /package/{lib → components}/roving-tabindex-DOg4z6ZU.js +0 -0
- /package/{lib → components}/slottable-request-event-BfUUt1Mh.cjs +0 -0
- /package/{lib → components}/slottable-request-event-DggLA4Rx.js +0 -0
- /package/{lib → components}/when-CDK1Tt5Y.js +0 -0
- /package/{lib → components}/when-CDZyJPvd.cjs +0 -0
package/package.json
CHANGED
|
@@ -1,179 +1,217 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/lucero",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"homepage": "https://luzmo.com",
|
|
5
5
|
"description": "Lucero - The design system for Luzmo",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"main": "./lib/index.js",
|
|
11
|
-
"module": "./lib/index.js",
|
|
12
|
-
"types": "./lib/index.d.ts",
|
|
7
|
+
"main": "./components/index.js",
|
|
8
|
+
"module": "./components/index.js",
|
|
9
|
+
"types": "./index.d.ts",
|
|
13
10
|
"exports": {
|
|
14
11
|
".": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
12
|
+
"types": "./index.d.ts",
|
|
13
|
+
"import": "./components/index.js",
|
|
14
|
+
"require": "./components/index.cjs"
|
|
17
15
|
},
|
|
18
16
|
"./accordion": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
17
|
+
"types": "./components/accordion/index.d.ts",
|
|
18
|
+
"import": "./components/accordion/index.js",
|
|
19
|
+
"require": "./components/accordion/index.cjs"
|
|
21
20
|
},
|
|
22
21
|
"./action-bar": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"types": "./components/action-bar/index.d.ts",
|
|
23
|
+
"import": "./components/action-bar/index.js",
|
|
24
|
+
"require": "./components/action-bar/index.cjs"
|
|
25
25
|
},
|
|
26
26
|
"./action-button": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"types": "./components/action-button/index.d.ts",
|
|
28
|
+
"import": "./components/action-button/index.js",
|
|
29
|
+
"require": "./components/action-button/index.cjs"
|
|
29
30
|
},
|
|
30
31
|
"./action-group": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
32
|
+
"types": "./components/action-group/index.d.ts",
|
|
33
|
+
"import": "./components/action-group/index.js",
|
|
34
|
+
"require": "./components/action-group/index.cjs"
|
|
33
35
|
},
|
|
34
36
|
"./action-menu": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
+
"types": "./components/action-menu/index.d.ts",
|
|
38
|
+
"import": "./components/action-menu/index.js",
|
|
39
|
+
"require": "./components/action-menu/index.cjs"
|
|
37
40
|
},
|
|
38
41
|
"./avatar": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
42
|
+
"types": "./components/avatar/index.d.ts",
|
|
43
|
+
"import": "./components/avatar/index.js",
|
|
44
|
+
"require": "./components/avatar/index.cjs"
|
|
41
45
|
},
|
|
42
46
|
"./button": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
47
|
+
"types": "./components/button/index.d.ts",
|
|
48
|
+
"import": "./components/button/index.js",
|
|
49
|
+
"require": "./components/button/index.cjs"
|
|
45
50
|
},
|
|
46
51
|
"./button-group": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
52
|
+
"types": "./components/button-group/index.d.ts",
|
|
53
|
+
"import": "./components/button-group/index.js",
|
|
54
|
+
"require": "./components/button-group/index.cjs"
|
|
49
55
|
},
|
|
50
56
|
"./checkbox": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
57
|
+
"types": "./components/checkbox/index.d.ts",
|
|
58
|
+
"import": "./components/checkbox/index.js",
|
|
59
|
+
"require": "./components/checkbox/index.cjs"
|
|
60
|
+
},
|
|
61
|
+
"./color-area": {
|
|
62
|
+
"types": "./components/color-area/index.d.ts",
|
|
63
|
+
"import": "./components/color-area/index.js",
|
|
64
|
+
"require": "./components/color-area/index.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./color-field": {
|
|
67
|
+
"types": "./components/color-field/index.d.ts",
|
|
68
|
+
"import": "./components/color-field/index.js",
|
|
69
|
+
"require": "./components/color-field/index.cjs"
|
|
70
|
+
},
|
|
71
|
+
"./color-handle": {
|
|
72
|
+
"types": "./components/color-handle/index.d.ts",
|
|
73
|
+
"import": "./components/color-handle/index.js",
|
|
74
|
+
"require": "./components/color-handle/index.cjs"
|
|
75
|
+
},
|
|
76
|
+
"./color-loupe": {
|
|
77
|
+
"types": "./components/color-loupe/index.d.ts",
|
|
78
|
+
"import": "./components/color-loupe/index.js",
|
|
79
|
+
"require": "./components/color-loupe/index.cjs"
|
|
80
|
+
},
|
|
81
|
+
"./color-menu": {
|
|
82
|
+
"types": "./components/color-menu/index.d.ts",
|
|
83
|
+
"import": "./components/color-menu/index.js",
|
|
84
|
+
"require": "./components/color-menu/index.cjs"
|
|
53
85
|
},
|
|
54
86
|
"./color-picker": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
87
|
+
"types": "./components/color-picker/index.d.ts",
|
|
88
|
+
"import": "./components/color-picker/index.js",
|
|
89
|
+
"require": "./components/color-picker/index.cjs"
|
|
90
|
+
},
|
|
91
|
+
"./color-slider": {
|
|
92
|
+
"types": "./components/color-slider/index.d.ts",
|
|
93
|
+
"import": "./components/color-slider/index.js",
|
|
94
|
+
"require": "./components/color-slider/index.cjs"
|
|
57
95
|
},
|
|
58
96
|
"./divider": {
|
|
59
|
-
"
|
|
60
|
-
"
|
|
97
|
+
"types": "./components/divider/index.d.ts",
|
|
98
|
+
"import": "./components/divider/index.js",
|
|
99
|
+
"require": "./components/divider/index.cjs"
|
|
61
100
|
},
|
|
62
101
|
"./field-group": {
|
|
63
|
-
"
|
|
64
|
-
"
|
|
102
|
+
"types": "./components/field-group/index.d.ts",
|
|
103
|
+
"import": "./components/field-group/index.js",
|
|
104
|
+
"require": "./components/field-group/index.cjs"
|
|
65
105
|
},
|
|
66
106
|
"./field-label": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
107
|
+
"types": "./components/field-label/index.d.ts",
|
|
108
|
+
"import": "./components/field-label/index.js",
|
|
109
|
+
"require": "./components/field-label/index.cjs"
|
|
69
110
|
},
|
|
70
111
|
"./icon": {
|
|
71
|
-
"
|
|
72
|
-
"
|
|
112
|
+
"types": "./components/icon/index.d.ts",
|
|
113
|
+
"import": "./components/icon/index.js",
|
|
114
|
+
"require": "./components/icon/index.cjs"
|
|
73
115
|
},
|
|
74
116
|
"./infield-button": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
117
|
+
"types": "./components/infield-button/index.d.ts",
|
|
118
|
+
"import": "./components/infield-button/index.js",
|
|
119
|
+
"require": "./components/infield-button/index.cjs"
|
|
77
120
|
},
|
|
78
121
|
"./label": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
"./legend-position": {
|
|
83
|
-
"import": "./lib/legend-position/index.js",
|
|
84
|
-
"require": "./lib/legend-position/index.cjs"
|
|
122
|
+
"types": "./components/label/index.d.ts",
|
|
123
|
+
"import": "./components/label/index.js",
|
|
124
|
+
"require": "./components/label/index.cjs"
|
|
85
125
|
},
|
|
86
126
|
"./menu": {
|
|
87
|
-
"
|
|
88
|
-
"
|
|
127
|
+
"types": "./components/menu/index.d.ts",
|
|
128
|
+
"import": "./components/menu/index.js",
|
|
129
|
+
"require": "./components/menu/index.cjs"
|
|
89
130
|
},
|
|
90
131
|
"./multi-language-field": {
|
|
91
|
-
"
|
|
92
|
-
"
|
|
132
|
+
"types": "./components/multi-language-field/index.d.ts",
|
|
133
|
+
"import": "./components/multi-language-field/index.js",
|
|
134
|
+
"require": "./components/multi-language-field/index.cjs"
|
|
93
135
|
},
|
|
94
136
|
"./number-field": {
|
|
95
|
-
"
|
|
96
|
-
"
|
|
137
|
+
"types": "./components/number-field/index.d.ts",
|
|
138
|
+
"import": "./components/number-field/index.js",
|
|
139
|
+
"require": "./components/number-field/index.cjs"
|
|
97
140
|
},
|
|
98
141
|
"./overlay": {
|
|
99
|
-
"
|
|
100
|
-
"
|
|
142
|
+
"types": "./components/overlay/index.d.ts",
|
|
143
|
+
"import": "./components/overlay/index.js",
|
|
144
|
+
"require": "./components/overlay/index.cjs"
|
|
101
145
|
},
|
|
102
146
|
"./picker": {
|
|
103
|
-
"
|
|
104
|
-
"
|
|
147
|
+
"types": "./components/picker/index.d.ts",
|
|
148
|
+
"import": "./components/picker/index.js",
|
|
149
|
+
"require": "./components/picker/index.cjs"
|
|
105
150
|
},
|
|
106
151
|
"./popover": {
|
|
107
|
-
"
|
|
108
|
-
"
|
|
152
|
+
"types": "./components/popover/index.d.ts",
|
|
153
|
+
"import": "./components/popover/index.js",
|
|
154
|
+
"require": "./components/popover/index.cjs"
|
|
109
155
|
},
|
|
110
156
|
"./progress-circle": {
|
|
111
|
-
"
|
|
112
|
-
"
|
|
157
|
+
"types": "./components/progress-circle/index.d.ts",
|
|
158
|
+
"import": "./components/progress-circle/index.js",
|
|
159
|
+
"require": "./components/progress-circle/index.cjs"
|
|
113
160
|
},
|
|
114
161
|
"./radio": {
|
|
115
|
-
"
|
|
116
|
-
"
|
|
162
|
+
"types": "./components/radio/index.d.ts",
|
|
163
|
+
"import": "./components/radio/index.js",
|
|
164
|
+
"require": "./components/radio/index.cjs"
|
|
117
165
|
},
|
|
118
166
|
"./search": {
|
|
119
|
-
"
|
|
120
|
-
"
|
|
167
|
+
"types": "./components/search/index.d.ts",
|
|
168
|
+
"import": "./components/search/index.js",
|
|
169
|
+
"require": "./components/search/index.cjs"
|
|
121
170
|
},
|
|
122
171
|
"./slider": {
|
|
123
|
-
"
|
|
124
|
-
"
|
|
172
|
+
"types": "./components/slider/index.d.ts",
|
|
173
|
+
"import": "./components/slider/index.js",
|
|
174
|
+
"require": "./components/slider/index.cjs"
|
|
125
175
|
},
|
|
126
176
|
"./swatch": {
|
|
127
|
-
"
|
|
128
|
-
"
|
|
177
|
+
"types": "./components/swatch/index.d.ts",
|
|
178
|
+
"import": "./components/swatch/index.js",
|
|
179
|
+
"require": "./components/swatch/index.cjs"
|
|
129
180
|
},
|
|
130
181
|
"./switch": {
|
|
131
|
-
"
|
|
132
|
-
"
|
|
182
|
+
"types": "./components/switch/index.d.ts",
|
|
183
|
+
"import": "./components/switch/index.js",
|
|
184
|
+
"require": "./components/switch/index.cjs"
|
|
133
185
|
},
|
|
134
186
|
"./tags": {
|
|
135
|
-
"
|
|
136
|
-
"
|
|
187
|
+
"types": "./components/tags/index.d.ts",
|
|
188
|
+
"import": "./components/tags/index.js",
|
|
189
|
+
"require": "./components/tags/index.cjs"
|
|
137
190
|
},
|
|
138
191
|
"./text-field": {
|
|
139
|
-
"
|
|
140
|
-
"
|
|
192
|
+
"types": "./components/text-field/index.d.ts",
|
|
193
|
+
"import": "./components/text-field/index.js",
|
|
194
|
+
"require": "./components/text-field/index.cjs"
|
|
141
195
|
},
|
|
142
196
|
"./toast": {
|
|
143
|
-
"
|
|
144
|
-
"
|
|
197
|
+
"types": "./components/toast/index.d.ts",
|
|
198
|
+
"import": "./components/toast/index.js",
|
|
199
|
+
"require": "./components/toast/index.cjs"
|
|
145
200
|
},
|
|
146
201
|
"./tooltip": {
|
|
147
|
-
"
|
|
148
|
-
"
|
|
202
|
+
"types": "./components/tooltip/index.d.ts",
|
|
203
|
+
"import": "./components/tooltip/index.js",
|
|
204
|
+
"require": "./components/tooltip/index.cjs"
|
|
149
205
|
},
|
|
150
206
|
"./unit-input": {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"import": "./lib/color-field/index.js",
|
|
160
|
-
"require": "./lib/color-field/index.cjs"
|
|
161
|
-
},
|
|
162
|
-
"./color-handle": {
|
|
163
|
-
"import": "./lib/color-handle/index.js",
|
|
164
|
-
"require": "./lib/color-handle/index.cjs"
|
|
165
|
-
},
|
|
166
|
-
"./color-loupe": {
|
|
167
|
-
"import": "./lib/color-loupe/index.js",
|
|
168
|
-
"require": "./lib/color-loupe/index.cjs"
|
|
169
|
-
},
|
|
170
|
-
"./color-menu": {
|
|
171
|
-
"import": "./lib/color-menu/index.js",
|
|
172
|
-
"require": "./lib/color-menu/index.cjs"
|
|
173
|
-
},
|
|
174
|
-
"./color-slider": {
|
|
175
|
-
"import": "./lib/color-slider/index.js",
|
|
176
|
-
"require": "./lib/color-slider/index.cjs"
|
|
207
|
+
"types": "./components/unit-input/index.d.ts",
|
|
208
|
+
"import": "./components/unit-input/index.js",
|
|
209
|
+
"require": "./components/unit-input/index.cjs"
|
|
210
|
+
},
|
|
211
|
+
"./utils": {
|
|
212
|
+
"types": "./utils/index.d.ts",
|
|
213
|
+
"import": "./utils/index.js",
|
|
214
|
+
"require": "./utils/index.cjs"
|
|
177
215
|
}
|
|
178
216
|
},
|
|
179
217
|
"keywords": [
|
package/utils/base.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement, ReactiveElement } from 'lit';
|
|
2
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
prototype: T;
|
|
5
|
+
};
|
|
6
|
+
export interface LuzmoInterface {
|
|
7
|
+
shadowRoot: ShadowRoot;
|
|
8
|
+
isLTR: boolean;
|
|
9
|
+
hasVisibleFocusInTree(): boolean;
|
|
10
|
+
dir: 'ltr' | 'rtl';
|
|
11
|
+
}
|
|
12
|
+
export declare function LuzmoMixin<T extends Constructor<ReactiveElement>>(constructor: T): T & Constructor<LuzmoInterface>;
|
|
13
|
+
declare const LuzmoElement_base: typeof LitElement & Constructor<LuzmoInterface>;
|
|
14
|
+
export declare class LuzmoElement extends LuzmoElement_base {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
applyFocusVisiblePolyfill?: (scope: Document | ShadowRoot) => void;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
7
|
+
new (...args: any[]): T;
|
|
8
|
+
prototype: T;
|
|
9
|
+
};
|
|
10
|
+
interface OptionalLifecycleCallbacks {
|
|
11
|
+
connectedCallback?(): void;
|
|
12
|
+
disconnectedCallback?(): void;
|
|
13
|
+
manageAutoFocus?(): void;
|
|
14
|
+
}
|
|
15
|
+
type MixableBaseClass = HTMLElement & OptionalLifecycleCallbacks;
|
|
16
|
+
/**
|
|
17
|
+
* This mixin function is designed to be applied to a class that inherits
|
|
18
|
+
* from HTMLElement. It makes it easy for a custom element to coordinate with
|
|
19
|
+
* the :focus-visible polyfill.
|
|
20
|
+
*
|
|
21
|
+
* NOTE(cdata): The code here was adapted from an example proposed with the
|
|
22
|
+
* introduction of ShadowDOM support in the :focus-visible polyfill.
|
|
23
|
+
*
|
|
24
|
+
* @see https://github.com/WICG/focus-visible/pull/196
|
|
25
|
+
* @param SuperClass The base class implementation to decorate with
|
|
26
|
+
* implementation that coordinates with the :focus-visible polyfill
|
|
27
|
+
*/
|
|
28
|
+
export declare const FocusVisiblePolyfillMixin: <T extends Constructor<MixableBaseClass>>(SuperClass: T) => T;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { LuzmoElement } from './base';
|
|
3
|
+
type DisableableElement = HTMLElement & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const Focusable_base: typeof LuzmoElement;
|
|
7
|
+
/**
|
|
8
|
+
* Focusable base class handles tabindex setting into shadowed elements automatically.
|
|
9
|
+
*
|
|
10
|
+
* This implementation is based heavily on the aybolit delegate-focus-mixin at
|
|
11
|
+
* https://github.com/web-padawan/aybolit/blob/master/packages/core/src/mixins/delegate-focus-mixin.js
|
|
12
|
+
*/
|
|
13
|
+
export declare class Focusable extends Focusable_base {
|
|
14
|
+
/**
|
|
15
|
+
* Disable this control. It will not receive focus or events
|
|
16
|
+
*/
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* When this control is rendered, focus it automatically
|
|
20
|
+
*
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
autofocus: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The tab index to apply to this control. See general documentation about
|
|
26
|
+
* the tabindex HTML property
|
|
27
|
+
*
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
30
|
+
get tabIndex(): number;
|
|
31
|
+
set tabIndex(tabIndex: number);
|
|
32
|
+
private _tabIndex;
|
|
33
|
+
private onPointerdownManagementOfTabIndex;
|
|
34
|
+
private manageFocusElementTabindex;
|
|
35
|
+
private manipulatingTabindex;
|
|
36
|
+
/**
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
get focusElement(): DisableableElement;
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @returns whether the component should manage its focusElement tab-index or not
|
|
43
|
+
* Needed for action-menu to be supported in action-group in an accessible way
|
|
44
|
+
*/
|
|
45
|
+
get selfManageFocusElement(): boolean;
|
|
46
|
+
focus(options?: FocusOptions): void;
|
|
47
|
+
blur(): void;
|
|
48
|
+
click(): void;
|
|
49
|
+
protected manageAutoFocus(): void;
|
|
50
|
+
protected firstUpdated(changes: PropertyValues): void;
|
|
51
|
+
protected update(changedProperties: PropertyValues): void;
|
|
52
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
53
|
+
private handleDisabledChanged;
|
|
54
|
+
protected getUpdateComplete(): Promise<boolean>;
|
|
55
|
+
private autofocusReady;
|
|
56
|
+
connectedCallback(): void;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCssVariableValue: (element: HTMLElement, variable: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLabelFromSlot: (label: string, slotEl: HTMLSlotElement) => string | null;
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactiveElement, TemplateResult } from 'lit';
|
|
2
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
prototype: T;
|
|
5
|
+
};
|
|
6
|
+
type RenderAnchorOptions = {
|
|
7
|
+
id: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
ariaHidden?: boolean;
|
|
10
|
+
anchorContent?: TemplateResult | TemplateResult[];
|
|
11
|
+
labelledby?: string;
|
|
12
|
+
tabindex?: -1 | 0;
|
|
13
|
+
};
|
|
14
|
+
export interface LikeAnchorInterface {
|
|
15
|
+
download?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
rel?: string;
|
|
19
|
+
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
20
|
+
renderAnchor(options: RenderAnchorOptions): TemplateResult;
|
|
21
|
+
}
|
|
22
|
+
export declare function LikeAnchor<T extends Constructor<ReactiveElement>>(constructor: T): T & Constructor<LikeAnchorInterface>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactiveElement } from 'lit';
|
|
2
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
prototype: T;
|
|
5
|
+
};
|
|
6
|
+
export interface SlotPresenceObservingInterface {
|
|
7
|
+
slotContentIsPresent: boolean;
|
|
8
|
+
getSlotContentPresence(selector: string): boolean;
|
|
9
|
+
managePresenceObservedSlot(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function ObserveSlotPresence<T extends Constructor<ReactiveElement>>(constructor: T, lightDomSelector: string | string[]): T & Constructor<SlotPresenceObservingInterface>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactiveElement } from 'lit';
|
|
2
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
prototype: T;
|
|
5
|
+
};
|
|
6
|
+
export interface SlotTextObservingInterface {
|
|
7
|
+
slotHasContent: boolean;
|
|
8
|
+
manageTextObservedSlot(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ObserveSlotText<T extends Constructor<ReactiveElement>>(constructor: T, slotName?: string, excludedSelectors?: string[]): T & Constructor<SlotTextObservingInterface>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function isMac(): boolean;
|
|
2
|
+
export declare function isIPhone(): boolean;
|
|
3
|
+
export declare function isIPad(): boolean;
|
|
4
|
+
export declare function isIOS(): boolean;
|
|
5
|
+
export declare function isAppleDevice(): boolean;
|
|
6
|
+
export declare function isChrome(): boolean;
|
|
7
|
+
export declare function isWebKit(): boolean;
|
|
8
|
+
export declare function isSeamonkey(): boolean;
|
|
9
|
+
export declare function isFirefox(): boolean;
|
|
10
|
+
export declare function isAndroid(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function randomID(): string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { HSL, HSLA, HSV, HSVA, RGB, RGBA, TinyColor } from '@ctrl/tinycolor';
|
|
2
|
+
import type { ReactiveElement } from 'lit';
|
|
3
|
+
export type ColorValue = string | number | TinyColor | HSVA | HSV | RGB | RGBA | HSL | HSLA;
|
|
4
|
+
export declare const extractHueAndSaturationRegExp: RegExp;
|
|
5
|
+
export declare const replaceHueAndSaturationRegExp: RegExp;
|
|
6
|
+
export declare const replaceHueRegExp: RegExp;
|
|
7
|
+
export declare class ColorController {
|
|
8
|
+
protected host: ReactiveElement;
|
|
9
|
+
protected applyColorToState: ({ h, s, v }: {
|
|
10
|
+
h: number;
|
|
11
|
+
s: number;
|
|
12
|
+
v: number;
|
|
13
|
+
a: number;
|
|
14
|
+
}) => void;
|
|
15
|
+
protected extractColorFromState: (controller: ColorController) => ColorValue;
|
|
16
|
+
protected setColorProcess(currentColor: TinyColor, nextColor: ColorValue, format: string, isString: boolean): void;
|
|
17
|
+
protected setColorMaintainHue(currentColor: TinyColor, nextColor: ColorValue, format: string, isString: boolean): void;
|
|
18
|
+
protected setColorMaintainSaturation(currentColor: TinyColor, nextColor: ColorValue, format: string, isString: boolean): void;
|
|
19
|
+
protected maintains: 'hue' | 'saturation';
|
|
20
|
+
private saturation;
|
|
21
|
+
constructor(host: ReactiveElement, { applyColorToState, extractColorFromState, maintains }: {
|
|
22
|
+
applyColorToState({ h, s, v, a }: {
|
|
23
|
+
h: number;
|
|
24
|
+
s: number;
|
|
25
|
+
v: number;
|
|
26
|
+
a: number;
|
|
27
|
+
}): void;
|
|
28
|
+
extractColorFromState(controller: ColorController): ColorValue;
|
|
29
|
+
maintains?: 'hue' | 'saturation';
|
|
30
|
+
});
|
|
31
|
+
applyColorFromState(): void;
|
|
32
|
+
get hue(): number;
|
|
33
|
+
set hue(value: number);
|
|
34
|
+
get opacity(): number;
|
|
35
|
+
set opacity(value: number);
|
|
36
|
+
private _hue;
|
|
37
|
+
private _opacity;
|
|
38
|
+
protected getColorProcesses: Record<string, (color: TinyColor, isString: boolean) => ColorValue>;
|
|
39
|
+
get value(): ColorValue;
|
|
40
|
+
get color(): ColorValue;
|
|
41
|
+
set color(color: ColorValue);
|
|
42
|
+
private _color;
|
|
43
|
+
getColor(format: string): ColorValue;
|
|
44
|
+
setColor(color: TinyColor): void;
|
|
45
|
+
getHslString(): string;
|
|
46
|
+
private _previousColor;
|
|
47
|
+
savePreviousColor(): void;
|
|
48
|
+
restorePreviousColor(): void;
|
|
49
|
+
_format: {
|
|
50
|
+
format: string;
|
|
51
|
+
isString: boolean;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export { type HSL, type HSLA, type HSV, type HSVA, type RGB, type RGBA, type TinyColor } from '@ctrl/tinycolor';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactiveElement } from 'lit';
|
|
2
|
+
export declare const dependencyManagerLoadedSymbol: unique symbol;
|
|
3
|
+
/**
|
|
4
|
+
* Manage the availability of custom element dependencies of a host element
|
|
5
|
+
* to gate render and functional behavior before and after their presence
|
|
6
|
+
*/
|
|
7
|
+
export declare class DependencyManagerController {
|
|
8
|
+
private dependencies;
|
|
9
|
+
private host;
|
|
10
|
+
/**
|
|
11
|
+
* Whether all of the provided dependencies have been registered.
|
|
12
|
+
* This will be `false` when no dependencies have been listed for management.
|
|
13
|
+
* Changes to this value will trigger `requestUpdate()` on the host.
|
|
14
|
+
*/
|
|
15
|
+
get loaded(): boolean;
|
|
16
|
+
private set loaded(value);
|
|
17
|
+
private _loaded;
|
|
18
|
+
constructor(host: ReactiveElement);
|
|
19
|
+
/**
|
|
20
|
+
* Submit a custom element tag name to be managed as a dependency.
|
|
21
|
+
*
|
|
22
|
+
* @param dependency {string} - the custom element tag to manage
|
|
23
|
+
* @param alreadyLoaded {boolean} - force the managemented custom element to be listed as loaded
|
|
24
|
+
*/
|
|
25
|
+
add(dependency: string, alreadyLoaded?: boolean): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
+
export declare const elementResolverUpdatedSymbol: unique symbol;
|
|
3
|
+
export declare class ElementResolutionController implements ReactiveController {
|
|
4
|
+
get element(): HTMLElement | null;
|
|
5
|
+
set element(element: HTMLElement | null);
|
|
6
|
+
private _element;
|
|
7
|
+
private host;
|
|
8
|
+
private observer;
|
|
9
|
+
get selector(): string;
|
|
10
|
+
set selector(selector: string);
|
|
11
|
+
private _selector;
|
|
12
|
+
get selectorAsId(): string;
|
|
13
|
+
get selectorIsId(): boolean;
|
|
14
|
+
constructor(host: ReactiveElement, { selector }?: {
|
|
15
|
+
selector: string;
|
|
16
|
+
});
|
|
17
|
+
protected mutationCallback: MutationCallback;
|
|
18
|
+
hostConnected(): void;
|
|
19
|
+
hostDisconnected(): void;
|
|
20
|
+
private resolveElement;
|
|
21
|
+
private releaseElement;
|
|
22
|
+
private elementIsSelected;
|
|
23
|
+
}
|