@luzmo/lucero 0.0.3 → 0.0.4
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/lib/accordion/index.cjs +43 -0
- package/lib/accordion/index.js +182 -0
- package/lib/action-bar/index.cjs +39 -0
- package/lib/action-bar/index.js +108 -0
- package/lib/action-button/index.cjs +24 -0
- package/lib/action-button/index.js +162 -0
- package/lib/action-group/index.cjs +18 -0
- package/lib/action-group/index.js +29 -0
- package/lib/action-group-BoIH8s8R.js +259 -0
- package/lib/action-group-D4MxBrq8.cjs +20 -0
- package/lib/action-menu/index.cjs +56 -0
- package/lib/action-menu/index.js +127 -0
- package/lib/async-directive-CV2MII86.cjs +22 -0
- package/lib/async-directive-FGzMycjH.js +82 -0
- package/lib/avatar/index.cjs +24 -0
- package/lib/avatar/index.js +82 -0
- package/lib/base-BCmA9Wxv.cjs +30 -0
- package/lib/base-BjTwmyRF.cjs +22 -0
- package/lib/base-D76d76ww.js +26 -0
- package/lib/base-nYalvNMy.js +390 -0
- package/lib/button/index.cjs +20 -0
- package/lib/button/index.js +128 -0
- package/lib/button-base-B0iB_JTv.cjs +25 -0
- package/lib/button-base-DgtT6sU5.js +143 -0
- package/lib/button-group/index.cjs +18 -0
- package/lib/button-group/index.js +60 -0
- package/lib/checkbox/index.cjs +25 -0
- package/lib/checkbox/index.js +97 -0
- package/lib/checkbox-mixin-DegQlk5C.js +71 -0
- package/lib/checkbox-mixin-H0Hm-VLk.cjs +27 -0
- package/lib/clear-button-Ap5H3UyH.js +54 -0
- package/lib/clear-button-D0djuaLb.cjs +18 -0
- package/lib/close-button-BrfeZvjk.cjs +18 -0
- package/lib/close-button-CGISEF33.js +52 -0
- package/lib/color-Bg3tYsAQ.js +178 -0
- package/lib/color-DphK4hwx.cjs +18 -0
- package/lib/color-area/index.cjs +80 -0
- package/lib/color-area/index.js +373 -0
- package/lib/color-field/index.cjs +23 -0
- package/lib/color-field/index.js +81 -0
- package/lib/color-handle/index.cjs +24 -0
- package/lib/color-handle/index.js +74 -0
- package/lib/color-loupe/index.cjs +18 -0
- package/lib/color-loupe/index.js +29 -0
- package/lib/color-loupe-BICpNqFs.cjs +56 -0
- package/lib/color-loupe-DBEApMDT.js +82 -0
- package/lib/color-menu/index.cjs +86 -0
- package/lib/color-menu/index.js +204 -0
- package/lib/color-picker/index.cjs +48 -0
- package/lib/color-picker/index.js +142 -0
- package/lib/color-slider/index.cjs +57 -0
- package/lib/color-slider/index.js +318 -0
- package/lib/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
- package/lib/condition-attribute-with-id-Dv4lSRbe.js +31 -0
- package/lib/dependency-manger-C5HCkMMB.cjs +18 -0
- package/lib/dependency-manger-CEXvGQUV.js +54 -0
- package/lib/directive-C7oCP5Bh.cjs +22 -0
- package/lib/directive-helpers-BLDZnGQv.js +28 -0
- package/lib/directive-helpers-C2vOfhFx.cjs +22 -0
- package/lib/directive-oAbCiebi.js +44 -0
- package/lib/divider/index.cjs +18 -0
- package/lib/divider/index.js +62 -0
- package/lib/divider.module-CXMNveQc.cjs +18 -0
- package/lib/divider.module-DwOuLGU3.js +21 -0
- package/lib/element-resolution-BvRLGqIU.cjs +18 -0
- package/lib/element-resolution-FCUT-wql.js +91 -0
- package/lib/field-group/index.cjs +18 -0
- package/lib/field-group/index.js +29 -0
- package/lib/field-group-CBWafIUV.js +67 -0
- package/lib/field-group-TUFvhJkk.cjs +23 -0
- package/lib/field-label/index.cjs +18 -0
- package/lib/field-label/index.js +29 -0
- package/lib/field-label-BK_tk8vP.js +107 -0
- package/lib/field-label-BrJaeORz.cjs +25 -0
- package/lib/focus-group-DHeTq18L.js +218 -0
- package/lib/focus-group-DnxZUBhQ.cjs +18 -0
- package/lib/focus-visible-B0P9aY_G.cjs +18 -0
- package/lib/focus-visible-DBlJGoEW.js +74 -0
- package/lib/focusable-DbUg-3Vp.js +153 -0
- package/lib/focusable-Dv_6CFaY.cjs +18 -0
- package/lib/focusable-selectors-B4YgbghQ.js +31 -0
- package/lib/focusable-selectors-BgFlyFcY.cjs +18 -0
- package/lib/icon/index.cjs +18 -0
- package/lib/icon/index.js +89 -0
- package/lib/if-defined-CYpcjGCb.js +27 -0
- package/lib/if-defined-Cv6xanXh.cjs +22 -0
- package/lib/index-C1chwzNp.js +727 -0
- package/lib/index-DCKCHDTt.cjs +18 -0
- package/lib/index-ovT-qVzf.js +928 -0
- package/lib/index-yNcLzjhM.cjs +77 -0
- package/lib/index.cjs +18 -0
- package/lib/index.js +133 -0
- package/lib/infield-button/index.cjs +22 -0
- package/lib/infield-button/index.js +65 -0
- package/lib/label/index.cjs +18 -0
- package/lib/label/index.js +52 -0
- package/lib/legend-position/index.cjs +27 -0
- package/lib/legend-position/index.js +85 -0
- package/lib/like-anchor-K8W0QYwC.cjs +32 -0
- package/lib/like-anchor-cDeGGeHh.js +70 -0
- package/lib/lit-html-B3ugcwD9.js +248 -0
- package/lib/lit-html-p4Oxv2-5.cjs +24 -0
- package/lib/manage-help-text-2mSEy-AD.js +92 -0
- package/lib/manage-help-text-iOk-zmy8.cjs +30 -0
- package/lib/menu/index.cjs +18 -0
- package/lib/menu/index.js +32 -0
- package/lib/multi-language-field/index.cjs +39 -0
- package/lib/multi-language-field/index.js +149 -0
- package/lib/mutation-controller-DH7YOCyj.js +52 -0
- package/lib/mutation-controller-DkOMCW-c.cjs +22 -0
- package/lib/number-field/index.cjs +57 -0
- package/lib/number-field/index.js +736 -0
- package/lib/observe-slot-text-BmsCNJig.cjs +18 -0
- package/lib/observe-slot-text-BoFRF-VI.js +87 -0
- package/lib/overlay/index.cjs +73 -0
- package/lib/overlay/index.js +325 -0
- package/lib/overlay-C7QKFqRc.js +2702 -0
- package/lib/overlay-DScraBAi.cjs +47 -0
- package/lib/pending-state-D5KTK4_1.js +61 -0
- package/lib/pending-state-Dbc2HIM2.cjs +26 -0
- package/lib/picker/index.cjs +18 -0
- package/lib/picker/index.js +32 -0
- package/lib/picker--2OCYWnV.js +657 -0
- package/lib/picker-B9W7Haf4.cjs +127 -0
- package/lib/platform-CQzYNWKq.cjs +18 -0
- package/lib/platform-DQYMG7JI.js +54 -0
- package/lib/popover/index.cjs +18 -0
- package/lib/popover/index.js +29 -0
- package/lib/popover-CVbjhSnx.cjs +30 -0
- package/lib/popover-ZRVxogyp.js +68 -0
- package/lib/progress-circle/index.cjs +18 -0
- package/lib/progress-circle/index.js +29 -0
- package/lib/progress-circle-CiJoS8J7.cjs +33 -0
- package/lib/progress-circle-DpXiqW6a.js +98 -0
- package/lib/query-BL-TJj7K.cjs +22 -0
- package/lib/query-D_KR_GUc.js +51 -0
- package/lib/query-assigned-elements-DjfhL1cl.js +36 -0
- package/lib/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/lib/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/lib/query-assigned-nodes-C76XVPWY.js +36 -0
- package/lib/radio/index.cjs +22 -0
- package/lib/radio/index.js +192 -0
- package/lib/random-id-ByCz1xaq.js +26 -0
- package/lib/random-id-CqvckpWe.cjs +18 -0
- package/lib/roving-tabindex-By_fCy_e.cjs +18 -0
- package/lib/roving-tabindex-DOg4z6ZU.js +66 -0
- package/lib/search/index.cjs +45 -0
- package/lib/search/index.js +132 -0
- package/lib/sized-mixin-BSYHt8nT.cjs +18 -0
- package/lib/sized-mixin-Dl0KoEcV.js +63 -0
- package/lib/slider/index.cjs +18 -0
- package/lib/slider/index.js +1159 -0
- package/lib/slottable-request-event-BfUUt1Mh.cjs +18 -0
- package/lib/slottable-request-event-DggLA4Rx.js +31 -0
- package/lib/state-BAO-13Bs.js +29 -0
- package/lib/state-DReJ3hB6.cjs +22 -0
- package/lib/streaming-listener-Bw4jE33f.cjs +18 -0
- package/lib/streaming-listener-DLo0wkMc.js +125 -0
- package/lib/style-map-BjBGQ_u3.cjs +22 -0
- package/lib/style-map-BqvQDFJt.js +53 -0
- package/lib/swatch/index.cjs +49 -0
- package/lib/swatch/index.js +343 -0
- package/lib/switch/index.cjs +22 -0
- package/lib/switch/index.js +74 -0
- package/lib/tags/index.cjs +32 -0
- package/lib/tags/index.js +174 -0
- package/lib/text-field/index.cjs +21 -0
- package/lib/text-field/index.js +62 -0
- package/lib/text-field-C6Aa7XOb.cjs +85 -0
- package/lib/text-field-DPk332j9.js +315 -0
- package/lib/toast/index.cjs +51 -0
- package/lib/toast/index.js +154 -0
- package/lib/tooltip/index.cjs +45 -0
- package/lib/tooltip/index.js +221 -0
- package/lib/unit-input/index.cjs +43 -0
- package/lib/unit-input/index.js +184 -0
- package/lib/when-CDK1Tt5Y.js +28 -0
- package/lib/when-CDZyJPvd.cjs +22 -0
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../base-BCmA9Wxv.cjs"),n=require("lit"),p=":host{border:.0625rem solid var(--luzmo-border-color);width:5.625rem;padding:.125rem .1875rem .1875rem;border-radius:var(--luzmo-border-radius)}.segment{height:1.5rem;width:100%;padding:.125rem 0;position:relative}.segment .option-block{width:1.5rem;height:1.25rem;border:.0625rem solid var(--luzmo-border-color);border-radius:.1875rem;background:var(--luzmo-background-color-hover);transition:background-color .2s ease-in-out;cursor:pointer;position:absolute}.segment .option-block:hover{background:var(--luzmo-secondary)}.segment .option-block.active,.segment .option-block.active:hover{background:var(--luzmo-primary)}.segment .option-block.top-left,.segment .option-block.left,.segment .option-block.bottom-left{left:0}.segment .option-block.top-right,.segment .option-block.right,.segment .option-block.bottom-right{right:0}.segment .option-block.top,.segment .option-block.middle,.segment .option-block.bottom{left:50%;transform:translate(-50%)}";var c=Object.defineProperty,d=(m,o,t,r)=>{for(var i=void 0,l=m.length-1,b;l>=0;l--)(b=m[l])&&(i=b(o,t,i)||i);return i&&c(o,t,i),i};const a=class a extends s.LuzmoElement{constructor(){super(...arguments),this.value="topRight",this.disabled=!1,this.disabledPositions=["middle"],this.positions=[{topLeft:"top-left",top:"top",topRight:"top-right"},{left:"left",middle:"middle",right:"right"},{bottomLeft:"bottom-left",bottom:"bottom",bottomRight:"bottom-right"}]}setPosition(o){this.disabled||(this.value=o,this.requestUpdate(),this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0,composed:!0})))}render(){return this.positions.map(o=>n.html`
|
|
19
|
+
<div class="segment${this.disabled?" disabled":""}">
|
|
20
|
+
${Object.entries(o).filter(([t,r])=>!this.disabledPositions.includes(t)).map(([t,r])=>n.html`
|
|
21
|
+
<div
|
|
22
|
+
class="option-block ${r} ${this.value===t?"active":""}"
|
|
23
|
+
@click=${()=>this.setPosition(t)}
|
|
24
|
+
></div>
|
|
25
|
+
`)}
|
|
26
|
+
</div>
|
|
27
|
+
`)}};a.styles=n.unsafeCSS(p);let e=a;d([s.n({type:String,reflect:!0,attribute:"value"})],e.prototype,"value");d([s.n({type:Boolean,reflect:!0,attribute:"disabled"})],e.prototype,"disabled");d([s.n({type:Array,reflect:!0,attribute:"disabledPositions"})],e.prototype,"disabledPositions");customElements.get("luzmo-legend-position")||customElements.define("luzmo-legend-position",e);exports.LuzmoLegendPosition=e;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { L as b, n as u } from "../base-nYalvNMy.js";
|
|
19
|
+
import { unsafeCSS as z, html as d } from "lit";
|
|
20
|
+
const a = () => {
|
|
21
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
22
|
+
const e = document.createElement("style");
|
|
23
|
+
e.setAttribute("data-luzmo-vars", ""), e.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(e);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
a();
|
|
27
|
+
const g = ":host{border:.0625rem solid var(--luzmo-border-color);width:5.625rem;padding:.125rem .1875rem .1875rem;border-radius:var(--luzmo-border-radius)}.segment{height:1.5rem;width:100%;padding:.125rem 0;position:relative}.segment .option-block{width:1.5rem;height:1.25rem;border:.0625rem solid var(--luzmo-border-color);border-radius:.1875rem;background:var(--luzmo-background-color-hover);transition:background-color .2s ease-in-out;cursor:pointer;position:absolute}.segment .option-block:hover{background:var(--luzmo-secondary)}.segment .option-block.active,.segment .option-block.active:hover{background:var(--luzmo-primary)}.segment .option-block.top-left,.segment .option-block.left,.segment .option-block.bottom-left{left:0}.segment .option-block.top-right,.segment .option-block.right,.segment .option-block.bottom-right{right:0}.segment .option-block.top,.segment .option-block.middle,.segment .option-block.bottom{left:50%;transform:translate(-50%)}";
|
|
28
|
+
var p = Object.defineProperty, s = (e, l, o, i) => {
|
|
29
|
+
for (var r = void 0, m = e.length - 1, c; m >= 0; m--)
|
|
30
|
+
(c = e[m]) && (r = c(l, o, r) || r);
|
|
31
|
+
return r && p(l, o, r), r;
|
|
32
|
+
};
|
|
33
|
+
const n = class n extends b {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments), this.value = "topRight", this.disabled = !1, this.disabledPositions = ["middle"], this.positions = [
|
|
36
|
+
{ topLeft: "top-left", top: "top", topRight: "top-right" },
|
|
37
|
+
{ left: "left", middle: "middle", right: "right" },
|
|
38
|
+
{
|
|
39
|
+
bottomLeft: "bottom-left",
|
|
40
|
+
bottom: "bottom",
|
|
41
|
+
bottomRight: "bottom-right"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
setPosition(l) {
|
|
46
|
+
this.disabled || (this.value = l, this.requestUpdate(), this.dispatchEvent(
|
|
47
|
+
new CustomEvent("change", {
|
|
48
|
+
detail: this.value,
|
|
49
|
+
bubbles: !0,
|
|
50
|
+
composed: !0
|
|
51
|
+
})
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return this.positions.map(
|
|
56
|
+
(l) => d`
|
|
57
|
+
<div class="segment${this.disabled ? " disabled" : ""}">
|
|
58
|
+
${Object.entries(l).filter(([o, i]) => !this.disabledPositions.includes(o)).map(
|
|
59
|
+
([o, i]) => d`
|
|
60
|
+
<div
|
|
61
|
+
class="option-block ${i} ${this.value === o ? "active" : ""}"
|
|
62
|
+
@click=${() => this.setPosition(o)}
|
|
63
|
+
></div>
|
|
64
|
+
`
|
|
65
|
+
)}
|
|
66
|
+
</div>
|
|
67
|
+
`
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
n.styles = z(g);
|
|
72
|
+
let t = n;
|
|
73
|
+
s([
|
|
74
|
+
u({ type: String, reflect: !0, attribute: "value" })
|
|
75
|
+
], t.prototype, "value");
|
|
76
|
+
s([
|
|
77
|
+
u({ type: Boolean, reflect: !0, attribute: "disabled" })
|
|
78
|
+
], t.prototype, "disabled");
|
|
79
|
+
s([
|
|
80
|
+
u({ type: Array, reflect: !0, attribute: "disabledPositions" })
|
|
81
|
+
], t.prototype, "disabledPositions");
|
|
82
|
+
customElements.get("luzmo-legend-position") || customElements.define("luzmo-legend-position", t);
|
|
83
|
+
export {
|
|
84
|
+
t as LuzmoLegendPosition
|
|
85
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";const h=require("lit"),t=require("./base-BCmA9Wxv.cjs"),r=require("./if-defined-Cv6xanXh.cjs");var f=Object.defineProperty,i=(l,e,s,d)=>{for(var o=void 0,n=l.length-1,a;n>=0;n--)(a=l[n])&&(o=a(e,s,o)||o);return o&&f(e,s,o),o};function $(l){class e extends l{renderAnchor({id:d,className:o,ariaHidden:n,labelledby:a,tabindex:p,anchorContent:c=h.html`<slot></slot>`}){return h.html`
|
|
19
|
+
<a
|
|
20
|
+
id=${d}
|
|
21
|
+
class=${r.o(o)}
|
|
22
|
+
href=${r.o(this.href)}
|
|
23
|
+
download=${r.o(this.download)}
|
|
24
|
+
target=${r.o(this.target)}
|
|
25
|
+
aria-label=${r.o(this.label)}
|
|
26
|
+
aria-labelledby=${r.o(a)}
|
|
27
|
+
aria-hidden=${r.o(n?"true":void 0)}
|
|
28
|
+
tabindex=${r.o(p)}
|
|
29
|
+
referrerpolicy=${r.o(this.referrerpolicy)}
|
|
30
|
+
rel=${r.o(this.rel)}
|
|
31
|
+
>${c}</a>
|
|
32
|
+
`}}return i([t.n()],e.prototype,"download"),i([t.n()],e.prototype,"label"),i([t.n()],e.prototype,"href"),i([t.n()],e.prototype,"target"),i([t.n()],e.prototype,"referrerpolicy"),i([t.n()],e.prototype,"rel"),e}exports.LikeAnchor=$;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { html as s } from "lit";
|
|
19
|
+
import { n as o } from "./base-nYalvNMy.js";
|
|
20
|
+
import { o as e } from "./if-defined-CYpcjGCb.js";
|
|
21
|
+
var $ = Object.defineProperty, l = (i, r, n, d) => {
|
|
22
|
+
for (var t = void 0, a = i.length - 1, p; a >= 0; a--)
|
|
23
|
+
(p = i[a]) && (t = p(r, n, t) || t);
|
|
24
|
+
return t && $(r, n, t), t;
|
|
25
|
+
};
|
|
26
|
+
function b(i) {
|
|
27
|
+
class r extends i {
|
|
28
|
+
renderAnchor({
|
|
29
|
+
id: d,
|
|
30
|
+
className: t,
|
|
31
|
+
ariaHidden: a,
|
|
32
|
+
labelledby: p,
|
|
33
|
+
tabindex: f,
|
|
34
|
+
// prettier-ignore
|
|
35
|
+
anchorContent: h = s`<slot></slot>`
|
|
36
|
+
}) {
|
|
37
|
+
return s`
|
|
38
|
+
<a
|
|
39
|
+
id=${d}
|
|
40
|
+
class=${e(t)}
|
|
41
|
+
href=${e(this.href)}
|
|
42
|
+
download=${e(this.download)}
|
|
43
|
+
target=${e(this.target)}
|
|
44
|
+
aria-label=${e(this.label)}
|
|
45
|
+
aria-labelledby=${e(p)}
|
|
46
|
+
aria-hidden=${e(a ? "true" : void 0)}
|
|
47
|
+
tabindex=${e(f)}
|
|
48
|
+
referrerpolicy=${e(this.referrerpolicy)}
|
|
49
|
+
rel=${e(this.rel)}
|
|
50
|
+
>${h}</a>
|
|
51
|
+
`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return l([
|
|
55
|
+
o()
|
|
56
|
+
], r.prototype, "download"), l([
|
|
57
|
+
o()
|
|
58
|
+
], r.prototype, "label"), l([
|
|
59
|
+
o()
|
|
60
|
+
], r.prototype, "href"), l([
|
|
61
|
+
o()
|
|
62
|
+
], r.prototype, "target"), l([
|
|
63
|
+
o()
|
|
64
|
+
], r.prototype, "referrerpolicy"), l([
|
|
65
|
+
o()
|
|
66
|
+
], r.prototype, "rel"), r;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
b as L
|
|
70
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/
|
|
23
|
+
const y = globalThis, b = y.trustedTypes, U = b ? b.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, W = "$lit$", p = `lit$${Math.random().toFixed(9).slice(2)}$`, k = "?" + p, D = `<${k}>`, f = document, C = () => f.createComment(""), x = (r) => r === null || typeof r != "object" && typeof r != "function", I = Array.isArray, z = (r) => I(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", w = `[
|
|
24
|
+
\f\r]`, v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, O = /-->/g, R = />/g, u = RegExp(`>|${w}(?:([^\\s"'>=/]+)(${w}*=${w}*(?:[^
|
|
25
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), B = /'/g, L = /"/g, V = /^(?:script|style|textarea|title)$/i, H = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), P = /* @__PURE__ */ new WeakMap(), g = f.createTreeWalker(f, 129);
|
|
26
|
+
function j(r, t) {
|
|
27
|
+
if (!I(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
28
|
+
return U !== void 0 ? U.createHTML(t) : t;
|
|
29
|
+
}
|
|
30
|
+
const Z = (r, t) => {
|
|
31
|
+
const s = r.length - 1, i = [];
|
|
32
|
+
let e, h = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = v;
|
|
33
|
+
for (let a = 0; a < s; a++) {
|
|
34
|
+
const o = r[a];
|
|
35
|
+
let $, _, l = -1, c = 0;
|
|
36
|
+
for (; c < o.length && (n.lastIndex = c, _ = n.exec(o), _ !== null); ) c = n.lastIndex, n === v ? _[1] === "!--" ? n = O : _[1] !== void 0 ? n = R : _[2] !== void 0 ? (V.test(_[2]) && (e = RegExp("</" + _[2], "g")), n = u) : _[3] !== void 0 && (n = u) : n === u ? _[0] === ">" ? (n = e ?? v, l = -1) : _[1] === void 0 ? l = -2 : (l = n.lastIndex - _[2].length, $ = _[1], n = _[3] === void 0 ? u : _[3] === '"' ? L : B) : n === L || n === B ? n = u : n === O || n === R ? n = v : (n = u, e = void 0);
|
|
37
|
+
const d = n === u && r[a + 1].startsWith("/>") ? " " : "";
|
|
38
|
+
h += n === v ? o + D : l >= 0 ? (i.push($), o.slice(0, l) + W + o.slice(l) + p + d) : o + p + (l === -2 ? a : d);
|
|
39
|
+
}
|
|
40
|
+
return [j(r, h + (r[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
41
|
+
};
|
|
42
|
+
class N {
|
|
43
|
+
constructor({ strings: t, _$litType$: s }, i) {
|
|
44
|
+
let e;
|
|
45
|
+
this.parts = [];
|
|
46
|
+
let h = 0, n = 0;
|
|
47
|
+
const a = t.length - 1, o = this.parts, [$, _] = Z(t, s);
|
|
48
|
+
if (this.el = N.createElement($, i), g.currentNode = this.el.content, s === 2 || s === 3) {
|
|
49
|
+
const l = this.el.content.firstChild;
|
|
50
|
+
l.replaceWith(...l.childNodes);
|
|
51
|
+
}
|
|
52
|
+
for (; (e = g.nextNode()) !== null && o.length < a; ) {
|
|
53
|
+
if (e.nodeType === 1) {
|
|
54
|
+
if (e.hasAttributes()) for (const l of e.getAttributeNames()) if (l.endsWith(W)) {
|
|
55
|
+
const c = _[n++], d = e.getAttribute(l).split(p), T = /([.?@])?(.*)/.exec(c);
|
|
56
|
+
o.push({ type: 1, index: h, name: T[2], strings: d, ctor: T[1] === "." ? q : T[1] === "?" ? G : T[1] === "@" ? J : S }), e.removeAttribute(l);
|
|
57
|
+
} else l.startsWith(p) && (o.push({ type: 6, index: h }), e.removeAttribute(l));
|
|
58
|
+
if (V.test(e.tagName)) {
|
|
59
|
+
const l = e.textContent.split(p), c = l.length - 1;
|
|
60
|
+
if (c > 0) {
|
|
61
|
+
e.textContent = b ? b.emptyScript : "";
|
|
62
|
+
for (let d = 0; d < c; d++) e.append(l[d], C()), g.nextNode(), o.push({ type: 2, index: ++h });
|
|
63
|
+
e.append(l[c], C());
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
} else if (e.nodeType === 8) if (e.data === k) o.push({ type: 2, index: h });
|
|
67
|
+
else {
|
|
68
|
+
let l = -1;
|
|
69
|
+
for (; (l = e.data.indexOf(p, l + 1)) !== -1; ) o.push({ type: 7, index: h }), l += p.length - 1;
|
|
70
|
+
}
|
|
71
|
+
h++;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
static createElement(t, s) {
|
|
75
|
+
const i = f.createElement("template");
|
|
76
|
+
return i.innerHTML = t, i;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function m(r, t, s = r, i) {
|
|
80
|
+
var n, a;
|
|
81
|
+
if (t === H) return t;
|
|
82
|
+
let e = i !== void 0 ? (n = s._$Co) == null ? void 0 : n[i] : s._$Cl;
|
|
83
|
+
const h = x(t) ? void 0 : t._$litDirective$;
|
|
84
|
+
return (e == null ? void 0 : e.constructor) !== h && ((a = e == null ? void 0 : e._$AO) == null || a.call(e, !1), h === void 0 ? e = void 0 : (e = new h(r), e._$AT(r, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = e : s._$Cl = e), e !== void 0 && (t = m(r, e._$AS(r, t.values), e, i)), t;
|
|
85
|
+
}
|
|
86
|
+
class F {
|
|
87
|
+
constructor(t, s) {
|
|
88
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
|
|
89
|
+
}
|
|
90
|
+
get parentNode() {
|
|
91
|
+
return this._$AM.parentNode;
|
|
92
|
+
}
|
|
93
|
+
get _$AU() {
|
|
94
|
+
return this._$AM._$AU;
|
|
95
|
+
}
|
|
96
|
+
u(t) {
|
|
97
|
+
const { el: { content: s }, parts: i } = this._$AD, e = ((t == null ? void 0 : t.creationScope) ?? f).importNode(s, !0);
|
|
98
|
+
g.currentNode = e;
|
|
99
|
+
let h = g.nextNode(), n = 0, a = 0, o = i[0];
|
|
100
|
+
for (; o !== void 0; ) {
|
|
101
|
+
if (n === o.index) {
|
|
102
|
+
let $;
|
|
103
|
+
o.type === 2 ? $ = new M(h, h.nextSibling, this, t) : o.type === 1 ? $ = new o.ctor(h, o.name, o.strings, this, t) : o.type === 6 && ($ = new K(h, this, t)), this._$AV.push($), o = i[++a];
|
|
104
|
+
}
|
|
105
|
+
n !== (o == null ? void 0 : o.index) && (h = g.nextNode(), n++);
|
|
106
|
+
}
|
|
107
|
+
return g.currentNode = f, e;
|
|
108
|
+
}
|
|
109
|
+
p(t) {
|
|
110
|
+
let s = 0;
|
|
111
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
class M {
|
|
115
|
+
get _$AU() {
|
|
116
|
+
var t;
|
|
117
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
118
|
+
}
|
|
119
|
+
constructor(t, s, i, e) {
|
|
120
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = e, this._$Cv = (e == null ? void 0 : e.isConnected) ?? !0;
|
|
121
|
+
}
|
|
122
|
+
get parentNode() {
|
|
123
|
+
let t = this._$AA.parentNode;
|
|
124
|
+
const s = this._$AM;
|
|
125
|
+
return s !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = s.parentNode), t;
|
|
126
|
+
}
|
|
127
|
+
get startNode() {
|
|
128
|
+
return this._$AA;
|
|
129
|
+
}
|
|
130
|
+
get endNode() {
|
|
131
|
+
return this._$AB;
|
|
132
|
+
}
|
|
133
|
+
_$AI(t, s = this) {
|
|
134
|
+
t = m(this, t, s), x(t) ? t === A || t == null || t === "" ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : z(t) ? this.k(t) : this._(t);
|
|
135
|
+
}
|
|
136
|
+
O(t) {
|
|
137
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
138
|
+
}
|
|
139
|
+
T(t) {
|
|
140
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
141
|
+
}
|
|
142
|
+
_(t) {
|
|
143
|
+
this._$AH !== A && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(f.createTextNode(t)), this._$AH = t;
|
|
144
|
+
}
|
|
145
|
+
$(t) {
|
|
146
|
+
var h;
|
|
147
|
+
const { values: s, _$litType$: i } = t, e = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = N.createElement(j(i.h, i.h[0]), this.options)), i);
|
|
148
|
+
if (((h = this._$AH) == null ? void 0 : h._$AD) === e) this._$AH.p(s);
|
|
149
|
+
else {
|
|
150
|
+
const n = new F(e, this), a = n.u(this.options);
|
|
151
|
+
n.p(s), this.T(a), this._$AH = n;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
_$AC(t) {
|
|
155
|
+
let s = P.get(t.strings);
|
|
156
|
+
return s === void 0 && P.set(t.strings, s = new N(t)), s;
|
|
157
|
+
}
|
|
158
|
+
k(t) {
|
|
159
|
+
I(this._$AH) || (this._$AH = [], this._$AR());
|
|
160
|
+
const s = this._$AH;
|
|
161
|
+
let i, e = 0;
|
|
162
|
+
for (const h of t) e === s.length ? s.push(i = new M(this.O(C()), this.O(C()), this, this.options)) : i = s[e], i._$AI(h), e++;
|
|
163
|
+
e < s.length && (this._$AR(i && i._$AB.nextSibling, e), s.length = e);
|
|
164
|
+
}
|
|
165
|
+
_$AR(t = this._$AA.nextSibling, s) {
|
|
166
|
+
var i;
|
|
167
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, s); t && t !== this._$AB; ) {
|
|
168
|
+
const e = t.nextSibling;
|
|
169
|
+
t.remove(), t = e;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
setConnected(t) {
|
|
173
|
+
var s;
|
|
174
|
+
this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class S {
|
|
178
|
+
get tagName() {
|
|
179
|
+
return this.element.tagName;
|
|
180
|
+
}
|
|
181
|
+
get _$AU() {
|
|
182
|
+
return this._$AM._$AU;
|
|
183
|
+
}
|
|
184
|
+
constructor(t, s, i, e, h) {
|
|
185
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = s, this._$AM = e, this.options = h, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = A;
|
|
186
|
+
}
|
|
187
|
+
_$AI(t, s = this, i, e) {
|
|
188
|
+
const h = this.strings;
|
|
189
|
+
let n = !1;
|
|
190
|
+
if (h === void 0) t = m(this, t, s, 0), n = !x(t) || t !== this._$AH && t !== H, n && (this._$AH = t);
|
|
191
|
+
else {
|
|
192
|
+
const a = t;
|
|
193
|
+
let o, $;
|
|
194
|
+
for (t = h[0], o = 0; o < h.length - 1; o++) $ = m(this, a[i + o], s, o), $ === H && ($ = this._$AH[o]), n || (n = !x($) || $ !== this._$AH[o]), $ === A ? t = A : t !== A && (t += ($ ?? "") + h[o + 1]), this._$AH[o] = $;
|
|
195
|
+
}
|
|
196
|
+
n && !e && this.j(t);
|
|
197
|
+
}
|
|
198
|
+
j(t) {
|
|
199
|
+
t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
class q extends S {
|
|
203
|
+
constructor() {
|
|
204
|
+
super(...arguments), this.type = 3;
|
|
205
|
+
}
|
|
206
|
+
j(t) {
|
|
207
|
+
this.element[this.name] = t === A ? void 0 : t;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
class G extends S {
|
|
211
|
+
constructor() {
|
|
212
|
+
super(...arguments), this.type = 4;
|
|
213
|
+
}
|
|
214
|
+
j(t) {
|
|
215
|
+
this.element.toggleAttribute(this.name, !!t && t !== A);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
class J extends S {
|
|
219
|
+
constructor(t, s, i, e, h) {
|
|
220
|
+
super(t, s, i, e, h), this.type = 5;
|
|
221
|
+
}
|
|
222
|
+
_$AI(t, s = this) {
|
|
223
|
+
if ((t = m(this, t, s, 0) ?? A) === H) return;
|
|
224
|
+
const i = this._$AH, e = t === A && i !== A || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, h = t !== A && (i === A || e);
|
|
225
|
+
e && this.element.removeEventListener(this.name, this, i), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
226
|
+
}
|
|
227
|
+
handleEvent(t) {
|
|
228
|
+
var s;
|
|
229
|
+
typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
class K {
|
|
233
|
+
constructor(t, s, i) {
|
|
234
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
|
|
235
|
+
}
|
|
236
|
+
get _$AU() {
|
|
237
|
+
return this._$AM._$AU;
|
|
238
|
+
}
|
|
239
|
+
_$AI(t) {
|
|
240
|
+
m(this, t);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
const E = y.litHtmlPolyfillSupport;
|
|
244
|
+
E == null || E(N, M), (y.litHtmlVersions ?? (y.litHtmlVersions = [])).push("3.2.1");
|
|
245
|
+
export {
|
|
246
|
+
A as E,
|
|
247
|
+
H as T
|
|
248
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const H=globalThis,b=H.trustedTypes,U=b?b.createPolicy("lit-html",{createHTML:r=>r}):void 0,W="$lit$",p=`lit$${Math.random().toFixed(9).slice(2)}$`,k="?"+p,D=`<${k}>`,f=document,C=()=>f.createComment(""),x=r=>r===null||typeof r!="object"&&typeof r!="function",I=Array.isArray,z=r=>I(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",E=`[
|
|
23
|
+
\f\r]`,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,R=/>/g,u=RegExp(`>|${E}(?:([^\\s"'>=/]+)(${E}*=${E}*(?:[^
|
|
24
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,L=/"/g,V=/^(?:script|style|textarea|title)$/i,m=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),P=new WeakMap,g=f.createTreeWalker(f,129);function j(r,t){if(!I(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return U!==void 0?U.createHTML(t):t}const Z=(r,t)=>{const s=r.length-1,i=[];let e,h=t===2?"<svg>":t===3?"<math>":"",n=y;for(let a=0;a<s;a++){const o=r[a];let A,c,l=-1,_=0;for(;_<o.length&&(n.lastIndex=_,c=n.exec(o),c!==null);)_=n.lastIndex,n===y?c[1]==="!--"?n=O:c[1]!==void 0?n=R:c[2]!==void 0?(V.test(c[2])&&(e=RegExp("</"+c[2],"g")),n=u):c[3]!==void 0&&(n=u):n===u?c[0]===">"?(n=e??y,l=-1):c[1]===void 0?l=-2:(l=n.lastIndex-c[2].length,A=c[1],n=c[3]===void 0?u:c[3]==='"'?L:B):n===L||n===B?n=u:n===O||n===R?n=y:(n=u,e=void 0);const d=n===u&&r[a+1].startsWith("/>")?" ":"";h+=n===y?o+D:l>=0?(i.push(A),o.slice(0,l)+W+o.slice(l)+p+d):o+p+(l===-2?a:d)}return[j(r,h+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let h=0,n=0;const a=t.length-1,o=this.parts,[A,c]=Z(t,s);if(this.el=N.createElement(A,i),g.currentNode=this.el.content,s===2||s===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(e=g.nextNode())!==null&&o.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const l of e.getAttributeNames())if(l.endsWith(W)){const _=c[n++],d=e.getAttribute(l).split(p),T=/([.?@])?(.*)/.exec(_);o.push({type:1,index:h,name:T[2],strings:d,ctor:T[1]==="."?q:T[1]==="?"?G:T[1]==="@"?J:S}),e.removeAttribute(l)}else l.startsWith(p)&&(o.push({type:6,index:h}),e.removeAttribute(l));if(V.test(e.tagName)){const l=e.textContent.split(p),_=l.length-1;if(_>0){e.textContent=b?b.emptyScript:"";for(let d=0;d<_;d++)e.append(l[d],C()),g.nextNode(),o.push({type:2,index:++h});e.append(l[_],C())}}}else if(e.nodeType===8)if(e.data===k)o.push({type:2,index:h});else{let l=-1;for(;(l=e.data.indexOf(p,l+1))!==-1;)o.push({type:7,index:h}),l+=p.length-1}h++}}static createElement(t,s){const i=f.createElement("template");return i.innerHTML=t,i}}function v(r,t,s=r,i){var n,a;if(t===m)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const h=x(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==h&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),h===void 0?e=void 0:(e=new h(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=v(r,e._$AS(r,t.values),e,i)),t}class F{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??f).importNode(s,!0);g.currentNode=e;let h=g.nextNode(),n=0,a=0,o=i[0];for(;o!==void 0;){if(n===o.index){let A;o.type===2?A=new M(h,h.nextSibling,this,t):o.type===1?A=new o.ctor(h,o.name,o.strings,this,t):o.type===6&&(A=new K(h,this,t)),this._$AV.push(A),o=i[++a]}n!==(o==null?void 0:o.index)&&(h=g.nextNode(),n++)}return g.currentNode=f,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class M{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=v(this,t,s),x(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==m&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):z(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==$&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(f.createTextNode(t)),this._$AH=t}$(t){var h;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=N.createElement(j(i.h,i.h[0]),this.options)),i);if(((h=this._$AH)==null?void 0:h._$AD)===e)this._$AH.p(s);else{const n=new F(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=P.get(t.strings);return s===void 0&&P.set(t.strings,s=new N(t)),s}k(t){I(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const h of t)e===s.length?s.push(i=new M(this.O(C()),this.O(C()),this,this.options)):i=s[e],i._$AI(h),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class S{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,h){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,s=this,i,e){const h=this.strings;let n=!1;if(h===void 0)t=v(this,t,s,0),n=!x(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{const a=t;let o,A;for(t=h[0],o=0;o<h.length-1;o++)A=v(this,a[i+o],s,o),A===m&&(A=this._$AH[o]),n||(n=!x(A)||A!==this._$AH[o]),A===$?t=$:t!==$&&(t+=(A??"")+h[o+1]),this._$AH[o]=A}n&&!e&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class q extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class G extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class J extends S{constructor(t,s,i,e,h){super(t,s,i,e,h),this.type=5}_$AI(t,s=this){if((t=v(this,t,s,0)??$)===m)return;const i=this._$AH,e=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,h=t!==$&&(i===$||e);e&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}}const w=H.litHtmlPolyfillSupport;w==null||w(N,M),(H.litHtmlVersions??(H.litHtmlVersions=[])).push("3.2.1");exports.E=$;exports.T=m;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { c as r } from "./condition-attribute-with-id-Dv4lSRbe.js";
|
|
19
|
+
import { r as n } from "./random-id-ByCz1xaq.js";
|
|
20
|
+
import { html as d } from "lit";
|
|
21
|
+
import { o as l } from "./if-defined-CYpcjGCb.js";
|
|
22
|
+
class a {
|
|
23
|
+
constructor(e, { mode: i } = { mode: "internal" }) {
|
|
24
|
+
this.mode = "internal", this.handleSlotchange = ({
|
|
25
|
+
target: t
|
|
26
|
+
}) => {
|
|
27
|
+
this.handleHelpText(t), this.handleNegativeHelpText(t);
|
|
28
|
+
}, this.host = e, this.id = `luzmo-help-text-${n()}`, this.mode = i;
|
|
29
|
+
}
|
|
30
|
+
get isInternal() {
|
|
31
|
+
return this.mode === "internal";
|
|
32
|
+
}
|
|
33
|
+
render(e) {
|
|
34
|
+
return d`
|
|
35
|
+
<div
|
|
36
|
+
id=${l(this.isInternal ? this.id : void 0)}
|
|
37
|
+
aria-live="assertive"
|
|
38
|
+
>
|
|
39
|
+
<slot
|
|
40
|
+
name=${e ? "negative-help-text" : `pass-through-help-text-${n()}`}
|
|
41
|
+
@slotchange=${this.handleSlotchange}
|
|
42
|
+
>
|
|
43
|
+
<slot name="help-text"></slot>
|
|
44
|
+
</slot>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
addId() {
|
|
49
|
+
const e = this.helpTextElement ? this.helpTextElement.id : this.id;
|
|
50
|
+
this.conditionId = r(
|
|
51
|
+
this.host,
|
|
52
|
+
"aria-describedby",
|
|
53
|
+
e
|
|
54
|
+
), this.host.hasAttribute("tabindex") && (this.previousTabindex = Number.parseFloat(
|
|
55
|
+
this.host.getAttribute("tabindex")
|
|
56
|
+
)), this.host.tabIndex = 0;
|
|
57
|
+
}
|
|
58
|
+
removeId() {
|
|
59
|
+
this.conditionId && (this.conditionId(), delete this.conditionId), !this.helpTextElement && (this.previousTabindex ? this.host.tabIndex = this.previousTabindex : this.host.removeAttribute("tabindex"));
|
|
60
|
+
}
|
|
61
|
+
handleHelpText(e) {
|
|
62
|
+
if (this.isInternal)
|
|
63
|
+
return;
|
|
64
|
+
this.helpTextElement && this.helpTextElement.id === this.id && this.helpTextElement.removeAttribute("id"), this.removeId();
|
|
65
|
+
const t = e.assignedElements()[0];
|
|
66
|
+
this.helpTextElement = t, t && (t.id || (t.id = this.id), this.addId());
|
|
67
|
+
}
|
|
68
|
+
handleNegativeHelpText(e) {
|
|
69
|
+
if (e.name !== "negative-help-text")
|
|
70
|
+
return;
|
|
71
|
+
e.assignedElements().forEach(
|
|
72
|
+
(t) => t.variant = "negative"
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function u(s, { mode: e } = { mode: "internal" }) {
|
|
77
|
+
class i extends s {
|
|
78
|
+
constructor() {
|
|
79
|
+
super(...arguments), this.helpTextManager = new a(this, { mode: e });
|
|
80
|
+
}
|
|
81
|
+
get helpTextId() {
|
|
82
|
+
return this.helpTextManager.id;
|
|
83
|
+
}
|
|
84
|
+
renderHelpText(h) {
|
|
85
|
+
return this.helpTextManager.render(h);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return i;
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
u as M
|
|
92
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";const d=require("./condition-attribute-with-id-DrQYZzFS.cjs"),s=require("./random-id-CqvckpWe.cjs"),r=require("lit"),l=require("./if-defined-Cv6xanXh.cjs");class a{constructor(e,{mode:i}={mode:"internal"}){this.mode="internal",this.handleSlotchange=({target:t})=>{this.handleHelpText(t),this.handleNegativeHelpText(t)},this.host=e,this.id=`luzmo-help-text-${s.randomID()}`,this.mode=i}get isInternal(){return this.mode==="internal"}render(e){return r.html`
|
|
19
|
+
<div
|
|
20
|
+
id=${l.o(this.isInternal?this.id:void 0)}
|
|
21
|
+
aria-live="assertive"
|
|
22
|
+
>
|
|
23
|
+
<slot
|
|
24
|
+
name=${e?"negative-help-text":`pass-through-help-text-${s.randomID()}`}
|
|
25
|
+
@slotchange=${this.handleSlotchange}
|
|
26
|
+
>
|
|
27
|
+
<slot name="help-text"></slot>
|
|
28
|
+
</slot>
|
|
29
|
+
</div>
|
|
30
|
+
`}addId(){const e=this.helpTextElement?this.helpTextElement.id:this.id;this.conditionId=d.conditionAttributeWithId(this.host,"aria-describedby",e),this.host.hasAttribute("tabindex")&&(this.previousTabindex=Number.parseFloat(this.host.getAttribute("tabindex"))),this.host.tabIndex=0}removeId(){this.conditionId&&(this.conditionId(),delete this.conditionId),!this.helpTextElement&&(this.previousTabindex?this.host.tabIndex=this.previousTabindex:this.host.removeAttribute("tabindex"))}handleHelpText(e){if(this.isInternal)return;this.helpTextElement&&this.helpTextElement.id===this.id&&this.helpTextElement.removeAttribute("id"),this.removeId();const t=e.assignedElements()[0];this.helpTextElement=t,t&&(t.id||(t.id=this.id),this.addId())}handleNegativeHelpText(e){if(e.name!=="negative-help-text")return;e.assignedElements().forEach(t=>t.variant="negative")}}function o(n,{mode:e}={mode:"internal"}){class i extends n{constructor(){super(...arguments),this.helpTextManager=new a(this,{mode:e})}get helpTextId(){return this.helpTextManager.id}renderHelpText(h){return this.helpTextManager.render(h)}}return i}exports.ManageHelpText=o;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-yNcLzjhM.cjs");exports.LuzmoMenu=e.LuzmoMenu;exports.LuzmoMenuDivider=e.LuzmoMenuDivider;exports.LuzmoMenuGroup=e.LuzmoMenuGroup;exports.LuzmoMenuItem=e.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=e.MenuItemAddedOrUpdatedEvent;
|