@shibui-ui/ui 1.19.8 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1004 -1
- package/dist/index281.js +1 -1
- package/dist/index307.js +1 -1
- package/dist/index316.js +4 -4
- package/dist/index332.js +1 -1
- package/dist/index352.js +14 -32
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +27 -24
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +58 -6
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +60 -24
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +24 -65
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +32 -64
- package/dist/index357.js.map +1 -1
- package/dist/index360.js +143 -32
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +115 -131
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +34 -129
- package/dist/index362.js.map +1 -1
- package/package.json +1 -1
package/dist/index362.js
CHANGED
|
@@ -1,133 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
aria-label="${ctx._mobileOpen ? "Cerrar menú" : "Abrir menú"}"
|
|
9
|
-
aria-expanded="${ctx._mobileOpen}"
|
|
10
|
-
aria-controls="hdr-mobile-drawer"
|
|
11
|
-
@click="${() => ctx._toggleMobile()}"
|
|
12
|
-
>
|
|
13
|
-
<svg width="20" height="14" viewBox="0 0 20 14" fill="none"
|
|
14
|
-
stroke="${color}" stroke-width="1.6" stroke-linecap="round">
|
|
15
|
-
<line class="hdr-burger-top" x1="0" y1="1" x2="20" y2="1"/>
|
|
16
|
-
<line class="hdr-burger-mid" x1="0" y1="7" x2="20" y2="7"/>
|
|
17
|
-
<line class="hdr-burger-bot" x1="0" y1="13" x2="20" y2="13"/>
|
|
18
|
-
</svg>
|
|
19
|
-
</button>`;
|
|
20
|
-
}
|
|
21
|
-
function renderMobileDrawer(ctx) {
|
|
1
|
+
import { _$LH as j } from "./index358.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
const { I: t } = j, i = (o) => o, s = () => document.createComment(""), v = (o, n, e) => {
|
|
22
8
|
var _a;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class="hdr-mobile-link"
|
|
46
|
-
@click="${(e) => {
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
ctx._onLinkClick(link.id);
|
|
49
|
-
}}"
|
|
50
|
-
>
|
|
51
|
-
${link.label}
|
|
52
|
-
${((_a2 = link.dropdown) == null ? void 0 : _a2.length) ? html`
|
|
53
|
-
<svg width="8" height="5" viewBox="0 0 10 6" fill="none"
|
|
54
|
-
stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
|
|
55
|
-
<polyline points="1,1 5,5 9,1"/>
|
|
56
|
-
</svg>` : nothing}
|
|
57
|
-
</a>
|
|
58
|
-
|
|
59
|
-
<!-- Sub-items — siempre visibles en móvil -->
|
|
60
|
-
${((_b = link.dropdown) == null ? void 0 : _b.length) ? html`
|
|
61
|
-
<div class="hdr-mobile-sub">
|
|
62
|
-
${link.dropdown.map((item) => html`
|
|
63
|
-
<a href="${item.href ?? "#"}" class="hdr-mobile-sub-link">
|
|
64
|
-
› ${item.label}
|
|
65
|
-
</a>
|
|
66
|
-
`)}
|
|
67
|
-
</div>
|
|
68
|
-
` : nothing}
|
|
69
|
-
`;
|
|
70
|
-
})}
|
|
71
|
-
|
|
72
|
-
<!-- Mega columns — accordion plano en móvil -->
|
|
73
|
-
${((_a = ctx.megaColumns) == null ? void 0 : _a.length) ? html`
|
|
74
|
-
<div class="hdr-mobile-sub" style="margin-top:0;">
|
|
75
|
-
${ctx.megaColumns.map((col) => html`
|
|
76
|
-
<p class="hdr-mobile-col-title">${col.title}</p>
|
|
77
|
-
${col.items.map((item) => html`
|
|
78
|
-
<a href="${item.href ?? "#"}" class="hdr-mobile-sub-link">
|
|
79
|
-
› ${item.label}
|
|
80
|
-
</a>
|
|
81
|
-
`)}
|
|
82
|
-
`)}
|
|
83
|
-
</div>
|
|
84
|
-
` : nothing}
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
<!-- Divider -->
|
|
88
|
-
<div class="hdr-mobile-divider"></div>
|
|
89
|
-
|
|
90
|
-
<!-- Actions / CTAs -->
|
|
91
|
-
<div class="hdr-mobile-actions">
|
|
92
|
-
${ctx.loginLabel ? html`
|
|
93
|
-
<a href="${ctx.loginHref ?? "#"}" class="hdr-mobile-login">
|
|
94
|
-
${ctx.loginLabel}
|
|
95
|
-
</a>
|
|
96
|
-
` : nothing}
|
|
97
|
-
|
|
98
|
-
${(ctx.actions ?? []).map((action) => html`
|
|
99
|
-
<a
|
|
100
|
-
href="${action.href ?? "#"}"
|
|
101
|
-
class="hdr-mobile-cta"
|
|
102
|
-
@click="${(e) => {
|
|
103
|
-
e.preventDefault();
|
|
104
|
-
ctx._onActionClick(action);
|
|
105
|
-
}}"
|
|
106
|
-
>
|
|
107
|
-
${action.label}
|
|
108
|
-
</a>
|
|
109
|
-
`)}
|
|
110
|
-
|
|
111
|
-
${ctx.contactLabel ? html`
|
|
112
|
-
<a href="${ctx.contactHref ?? "#"}" class="hdr-mobile-login">
|
|
113
|
-
${ctx.contactLabel} →
|
|
114
|
-
</a>
|
|
115
|
-
` : nothing}
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
<!-- Footer del drawer -->
|
|
119
|
-
<div class="hdr-mobile-footer">
|
|
120
|
-
<span>${ctx.brandName}</span>
|
|
121
|
-
<button
|
|
122
|
-
class="hdr-mobile-close"
|
|
123
|
-
aria-label="Cerrar menú"
|
|
124
|
-
@click="${() => ctx._closeMobile()}"
|
|
125
|
-
>✕</button>
|
|
126
|
-
</div>
|
|
127
|
-
</nav>`;
|
|
128
|
-
}
|
|
9
|
+
const l = o._$AA.parentNode, d = void 0 === n ? o._$AB : n._$AA;
|
|
10
|
+
if (void 0 === e) {
|
|
11
|
+
const i2 = l.insertBefore(s(), d), n2 = l.insertBefore(s(), d);
|
|
12
|
+
e = new t(i2, n2, o, o.options);
|
|
13
|
+
} else {
|
|
14
|
+
const t2 = e._$AB.nextSibling, n2 = e._$AM, c = n2 !== o;
|
|
15
|
+
if (c) {
|
|
16
|
+
let t3;
|
|
17
|
+
(_a = e._$AQ) == null ? void 0 : _a.call(e, o), e._$AM = o, void 0 !== e._$AP && (t3 = o._$AU) !== n2._$AU && e._$AP(t3);
|
|
18
|
+
}
|
|
19
|
+
if (t2 !== d || c) {
|
|
20
|
+
let o2 = e._$AA;
|
|
21
|
+
for (; o2 !== t2; ) {
|
|
22
|
+
const t3 = i(o2).nextSibling;
|
|
23
|
+
i(l).insertBefore(o2, d), o2 = t3;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return e;
|
|
28
|
+
}, u = (o, t2, i2 = o) => (o._$AI(t2, i2), o), m = {}, p = (o, t2 = m) => o._$AH = t2, M = (o) => o._$AH, h = (o) => {
|
|
29
|
+
o._$AR(), o._$AA.remove();
|
|
30
|
+
};
|
|
129
31
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
32
|
+
M as getCommittedValue,
|
|
33
|
+
v as insertPart,
|
|
34
|
+
h as removePart,
|
|
35
|
+
u as setChildPartValue,
|
|
36
|
+
p as setCommittedValue
|
|
132
37
|
};
|
|
133
38
|
//# sourceMappingURL=index362.js.map
|
package/dist/index362.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index362.js","sources":["
|
|
1
|
+
{"version":3,"file":"index362.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directive-helpers.js"],"sourcesContent":["import{_$LH as o}from\"./lit-html.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{I:t}=o,i=o=>o,n=o=>null===o||\"object\"!=typeof o&&\"function\"!=typeof o,e={HTML:1,SVG:2,MATHML:3},l=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,d=o=>null!=o?._$litType$?.h,c=o=>void 0!==o?._$litDirective$,f=o=>o?._$litDirective$,r=o=>void 0===o.strings,s=()=>document.createComment(\"\"),v=(o,n,e)=>{const l=o._$AA.parentNode,d=void 0===n?o._$AB:n._$AA;if(void 0===e){const i=l.insertBefore(s(),d),n=l.insertBefore(s(),d);e=new t(i,n,o,o.options)}else{const t=e._$AB.nextSibling,n=e._$AM,c=n!==o;if(c){let t;e._$AQ?.(o),e._$AM=o,void 0!==e._$AP&&(t=o._$AU)!==n._$AU&&e._$AP(t)}if(t!==d||c){let o=e._$AA;for(;o!==t;){const t=i(o).nextSibling;i(l).insertBefore(o,d),o=t}}}return e},u=(o,t,i=o)=>(o._$AI(t,i),o),m={},p=(o,t=m)=>o._$AH=t,M=o=>o._$AH,h=o=>{o._$AR(),o._$AA.remove()},j=o=>{o._$AR()};export{e as TemplateResultType,j as clearPart,M as getCommittedValue,f as getDirectiveClass,v as insertPart,d as isCompiledTemplateResult,c as isDirectiveResult,n as isPrimitive,r as isSingleExpression,l as isTemplateResult,h as removePart,u as setChildPartValue,p as setCommittedValue};\n//# sourceMappingURL=directive-helpers.js.map\n"],"names":["o","i","n","t"],"mappings":";AACA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAC,EAAC,GAAE,EAAC,IAAEA,GAAE,IAAE,OAAG,GAA8P,IAAE,MAAI,SAAS,cAAc,EAAE,GAAE,IAAE,CAAC,GAAE,GAAE,MAAI;;AAAC,QAAM,IAAE,EAAE,KAAK,YAAW,IAAE,WAAS,IAAE,EAAE,OAAK,EAAE;AAAK,MAAG,WAAS,GAAE;AAAC,UAAMC,KAAE,EAAE,aAAa,EAAC,GAAG,CAAC,GAAEC,KAAE,EAAE,aAAa,EAAC,GAAG,CAAC;AAAE,QAAE,IAAI,EAAED,IAAEC,IAAE,GAAE,EAAE,OAAO;AAAA,EAAC,OAAK;AAAC,UAAMC,KAAE,EAAE,KAAK,aAAYD,KAAE,EAAE,MAAK,IAAEA,OAAI;AAAE,QAAG,GAAE;AAAC,UAAIC;AAAE,cAAE,SAAF,2BAAS,IAAG,EAAE,OAAK,GAAE,WAAS,EAAE,SAAOA,KAAE,EAAE,UAAQD,GAAE,QAAM,EAAE,KAAKC,EAAC;AAAA,IAAC;AAAC,QAAGA,OAAI,KAAG,GAAE;AAAC,UAAIH,KAAE,EAAE;AAAK,aAAKA,OAAIG,MAAG;AAAC,cAAMA,KAAE,EAAEH,EAAC,EAAE;AAAY,UAAE,CAAC,EAAE,aAAaA,IAAE,CAAC,GAAEA,KAAEG;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;AAAC,SAAO;AAAC,GAAE,IAAE,CAAC,GAAEA,IAAEF,KAAE,OAAK,EAAE,KAAKE,IAAEF,EAAC,GAAE,IAAG,IAAE,CAAA,GAAG,IAAE,CAAC,GAAEE,KAAE,MAAI,EAAE,OAAKA,IAAE,IAAE,OAAG,EAAE,MAAK,IAAE,OAAG;AAAC,IAAE,KAAI,GAAG,EAAE,KAAK;AAAQ;","x_google_ignoreList":[0]}
|