@shibui-ui/ui 1.24.1 → 1.25.1
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/dist/components/atoms/index.d.ts +45 -16
- package/dist/components/atoms/index.d.ts.map +1 -1
- package/dist/components/molecules/index.d.ts +20 -1
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/components/organisms/index.d.ts +17 -1
- package/dist/components/organisms/index.d.ts.map +1 -1
- package/dist/index.d.ts +3 -82
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +79 -80
- package/dist/index.js.map +1 -1
- package/dist/index10.js +82 -18
- package/dist/index10.js.map +1 -1
- package/dist/index11.js +84 -69
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +40 -26
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +16 -39
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +29 -44
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +16 -117
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +48 -40
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +41 -25
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +76 -49
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +19 -39
- package/dist/index19.js.map +1 -1
- package/dist/index194.js +94 -24
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +2 -2
- package/dist/index197.js +2 -24
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +74 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +64 -35
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +21 -41
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +2 -2
- package/dist/index201.js +54 -13
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -2
- package/dist/index203.js +2 -2
- package/dist/index204.js +143 -157
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +43 -24
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +51 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -11
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +33 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -91
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +90 -26
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +6 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +2 -41
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +260 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +16 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -2
- package/dist/index215.js +2 -35
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +59 -42
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +32 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -85
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -2
- package/dist/index22.js +41 -48
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +73 -65
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +81 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -10
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +133 -2
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +2 -26
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +2 -2
- package/dist/index226.js +66 -12
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +97 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -2
- package/dist/index229.js +62 -24
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +50 -94
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -2
- package/dist/index231.js +2 -2
- package/dist/index232.js +12 -2
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +5 -16
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -2
- package/dist/index235.js +11 -9
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -2
- package/dist/index237.js +76 -34
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -2
- package/dist/index239.js +2 -27
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +37 -34
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +39 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -34
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +235 -12
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +82 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +94 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -5
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +268 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -36
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +21 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +51 -32
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -31
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +9 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -19
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +15 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +2 -2
- package/dist/index255.js +135 -69
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -2
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +2 -78
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +9 -2
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +31 -236
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +2 -32
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +2 -2
- package/dist/index262.js +92 -9
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +59 -2
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +2 -16
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +41 -2
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +2 -16
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +34 -9
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -54
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +2 -2
- package/dist/index27.js +27 -58
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +42 -7
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +2 -2
- package/dist/index272.js +2 -34
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -2
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +9 -2
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +6 -13
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +2 -2
- package/dist/index277.js +8 -15
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +2 -2
- package/dist/index279.js +55 -2
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +247 -24
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +2 -42
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +2 -100
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +20 -2
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +2 -97
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +33 -2
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +6 -27
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +2 -2
- package/dist/index287.js +9 -44
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +2 -2
- package/dist/index289.js +2 -33
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +249 -39
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +36 -2
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +2 -57
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +24 -2
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +2 -2
- package/dist/index294.js +26 -247
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +2 -2
- package/dist/index296.js +2 -72
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +42 -2
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +7 -56
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +2 -133
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +32 -19
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +30 -2
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +2 -12
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +34 -2
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +2 -162
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +26 -42
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +2 -81
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -2
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +2 -71
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +2 -2
- package/dist/index309.js +19 -2
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +96 -11
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +2 -81
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +2 -2
- package/dist/index312.js +42 -2
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +2 -74
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +25 -67
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +2 -2
- package/dist/index316.js +9 -17
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +2 -2
- package/dist/index318.js +84 -32
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +2 -2
- package/dist/index32.js +40 -48
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +68 -77
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +2 -2
- package/dist/index322.js +12 -148
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +1 -1
- package/dist/index324.js +28 -6
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +2 -2
- package/dist/index326.js +78 -87
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +2 -2
- package/dist/index328.js +78 -2
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +2 -237
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +20 -56
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +11 -6
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +2 -2
- package/dist/index332.js +18 -59
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +2 -2
- package/dist/index334.js +12 -5
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +2 -2
- package/dist/index336.js +2 -15
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +88 -2
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +24 -2
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +2 -92
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +59 -35
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +42 -14
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +2 -2
- package/dist/index342.js +22 -80
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +2 -2
- package/dist/index344.js +2 -18
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +16 -2
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +2 -268
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +176 -2
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +2 -2
- package/dist/index349.js +35 -39
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +101 -28
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +3 -3
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +2 -2
- package/dist/index352.js +19 -26
- package/dist/index352.js.map +1 -1
- package/dist/index357.js +26 -19
- package/dist/index357.js.map +1 -1
- package/dist/index36.js +115 -33
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +41 -115
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +34 -246
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +30 -137
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +26 -84
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +26 -400
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +28 -77
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +23 -26
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +36 -33
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +62 -16
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +138 -21
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +129 -22
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +41 -19
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +11 -82
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +56 -279
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +21 -34
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +280 -33
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +74 -94
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +66 -41
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +333 -62
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +96 -256
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +38 -130
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +251 -50
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +144 -115
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +93 -183
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +33 -339
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.js +102 -66
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +73 -179
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +117 -97
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +113 -263
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +258 -251
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +177 -79
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +261 -140
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +183 -100
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +28 -89
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +20 -161
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +394 -32
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +190 -53
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +204 -112
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -2
- package/dist/index73.js +89 -28
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +126 -63
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +122 -111
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +67 -64
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +112 -88
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +87 -16
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +151 -79
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +25 -127
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +104 -186
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +59 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +17 -129
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +88 -217
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +64 -112
- package/dist/index84.js.map +1 -1
- package/dist/index9.js +30 -45
- package/dist/index9.js.map +1 -1
- package/dist/src/components/atoms/index.d.ts +45 -16
- package/dist/src/components/atoms/index.d.ts.map +1 -1
- package/dist/src/components/molecules/index.d.ts +20 -1
- package/dist/src/components/molecules/index.d.ts.map +1 -1
- package/dist/src/components/organisms/index.d.ts +17 -1
- package/dist/src/components/organisms/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -82
- package/dist/src/index.d.ts.map +1 -1
- package/dist/tokens.css +353 -7
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index270.js
CHANGED
|
@@ -1,13 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
const defaultIconSvg = html`
|
|
3
|
+
<svg
|
|
4
|
+
class="avatar__icon"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
fill="none"
|
|
7
|
+
stroke="currentColor"
|
|
8
|
+
stroke-width="1.5"
|
|
9
|
+
stroke-linecap="round"
|
|
10
|
+
stroke-linejoin="round"
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
>
|
|
13
|
+
<circle cx="12" cy="8" r="4"/>
|
|
14
|
+
<path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/>
|
|
15
|
+
</svg>
|
|
16
|
+
`;
|
|
17
|
+
function avatarTemplate(props) {
|
|
3
18
|
return html`
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
<div
|
|
20
|
+
class="avatar__wrapper"
|
|
21
|
+
role="img"
|
|
22
|
+
aria-label="${props.name || "avatar"}"
|
|
23
|
+
>
|
|
24
|
+
<div class="avatar__face">
|
|
25
|
+
|
|
26
|
+
${props.showImage ? html`<img
|
|
27
|
+
class="avatar__img"
|
|
28
|
+
src="${props.src}"
|
|
29
|
+
alt="${props.name}"
|
|
30
|
+
@error=${props.onError}
|
|
31
|
+
/>` : nothing}
|
|
32
|
+
|
|
33
|
+
${!props.showImage && props.initials ? html`<span class="avatar__initials">${props.initials}</span>` : nothing}
|
|
34
|
+
|
|
35
|
+
${!props.showImage && !props.initials ? html`<slot>${defaultIconSvg}</slot>` : nothing}
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="avatar__status">
|
|
40
|
+
<slot name="status"></slot>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
8
43
|
`;
|
|
9
44
|
}
|
|
10
45
|
export {
|
|
11
|
-
|
|
46
|
+
avatarTemplate
|
|
12
47
|
};
|
|
13
48
|
//# sourceMappingURL=index270.js.map
|
package/dist/index270.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index270.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index270.js","sources":["../src/components/atoms/avatar/lib-avatar.html.ts"],"sourcesContent":["import { html, nothing, TemplateResult } from 'lit';\n\nexport type LibAvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\nexport type LibAvatarShape = 'circle' | 'squircle' | 'square';\nexport type LibAvatarColor = 'washi' | 'kaki' | 'celadon' | 'dark';\n\nexport interface AvatarTemplateProps {\n src: string;\n name: string;\n size: LibAvatarSize;\n shape: LibAvatarShape;\n color: LibAvatarColor;\n showImage: boolean;\n initials: string;\n onError: () => void;\n}\n\n/** SVG de usuario por defecto cuando no hay imagen ni iniciales */\nconst defaultIconSvg = html`\n <svg\n class=\"avatar__icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"8\" r=\"4\"/>\n <path d=\"M4 20c0-4 3.6-7 8-7s8 3 8 7\"/>\n </svg>\n`;\n\n/**\n * Plantilla para lib-avatar.\n *\n * Jerarquia de contenido:\n * 1. src + sin error -> imagen\n * 2. name -> iniciales\n * 3. slot default -> icono custom o SVG fallback\n *\n * avatar__status vive fuera del overflow:hidden para que\n * lib-status-dot no quede recortado.\n */\nexport function avatarTemplate(props: AvatarTemplateProps): TemplateResult {\n return html`\n <div\n class=\"avatar__wrapper\"\n role=\"img\"\n aria-label=\"${props.name || 'avatar'}\"\n >\n <div class=\"avatar__face\">\n\n ${props.showImage\n ? html`<img\n class=\"avatar__img\"\n src=\"${props.src}\"\n alt=\"${props.name}\"\n @error=${props.onError}\n />`\n : nothing}\n\n ${!props.showImage && props.initials\n ? html`<span class=\"avatar__initials\">${props.initials}</span>`\n : nothing}\n\n ${!props.showImage && !props.initials\n ? html`<slot>${defaultIconSvg}</slot>`\n : nothing}\n\n </div>\n\n <div class=\"avatar__status\">\n <slot name=\"status\"></slot>\n </div>\n </div>\n `;\n}"],"names":[],"mappings":";AAkBA,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BhB,SAAS,eAAe,OAA4C;AACzE,SAAO;AAAA;AAAA;AAAA;AAAA,oBAIW,MAAM,QAAQ,QAAQ;AAAA;AAAA;AAAA;AAAA,UAIhC,MAAM,YACJ;AAAA;AAAA,qBAES,MAAM,GAAG;AAAA,qBACT,MAAM,IAAI;AAAA,uBACR,MAAM,OAAO;AAAA,kBAExB,OAAO;AAAA;AAAA,UAET,CAAC,MAAM,aAAa,MAAM,WACxB,sCAAsC,MAAM,QAAQ,YACpD,OAAO;AAAA;AAAA,UAET,CAAC,MAAM,aAAa,CAAC,MAAM,WACzB,aAAa,cAAc,YAC3B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASnB;"}
|
package/dist/index271.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const avatarCss = '@layer tokens,reset,components;@layer reset{:host{display:inline-block;vertical-align:middle;flex-shrink:0}*,*:before,*:after{box-sizing:border-box}}@layer components{:host{--avatar-size: 40px;--avatar-initials-size: var(--text-xs);--avatar-icon-size: 18px}:host([size="xs"]){--avatar-size: 24px;--avatar-initials-size: 8px;--avatar-icon-size: 10px}:host([size="sm"]){--avatar-size: 32px;--avatar-initials-size: 10px;--avatar-icon-size: 14px}:host([size="md"]){--avatar-size: 40px;--avatar-initials-size: var(--text-xs);--avatar-icon-size: 18px}:host([size="lg"]){--avatar-size: 56px;--avatar-initials-size: var(--text-sm);--avatar-icon-size: 24px}:host([size="xl"]){--avatar-size: 72px;--avatar-initials-size: var(--text-base);--avatar-icon-size: 30px}:host([size="2xl"]){--avatar-size: 96px;--avatar-initials-size: var(--text-md);--avatar-icon-size: 40px}.avatar__wrapper{position:relative;display:inline-flex;width:var(--avatar-size);height:var(--avatar-size);flex-shrink:0}.avatar__face{width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--radius-full);border:1px solid var(--color-washi-300);background:var(--color-washi-200);-webkit-user-select:none;user-select:none}:host([shape="squircle"]) .avatar__face{border-radius:30%}:host([shape="square"]) .avatar__face{border-radius:var(--radius-md)}.avatar__img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}.avatar__initials{font-family:var(--lib-font-mono);font-size:var(--avatar-initials-size);font-weight:var(--weight-medium);letter-spacing:var(--tracking-wider);text-transform:uppercase;line-height:1;color:var(--color-washi-700)}.avatar__icon{width:var(--avatar-icon-size);height:var(--avatar-icon-size);display:block;flex-shrink:0;color:var(--color-washi-500)}.avatar__status{position:absolute;bottom:0;right:0;transform:translate(20%,20%);z-index:var(--z-raised);display:flex}:host([color="kaki"]) .avatar__face{background:var(--color-kaki-100);border-color:var(--color-kaki-200)}:host([color="kaki"]) .avatar__initials{color:var(--color-kaki-600)}:host([color="kaki"]) .avatar__icon{color:var(--color-kaki-500)}:host([color="celadon"]) .avatar__face{background:var(--color-celadon-100);border-color:var(--color-celadon-200)}:host([color="celadon"]) .avatar__initials{color:var(--color-celadon-600)}:host([color="celadon"]) .avatar__icon{color:var(--color-celadon-500)}:host([color="dark"]) .avatar__face{background:var(--color-washi-900);border-color:var(--color-washi-800)}:host([color="dark"]) .avatar__initials{color:var(--color-washi-300)}:host([color="dark"]) .avatar__icon{color:var(--color-washi-500)}}';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
avatarCss as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index271.js.map
|
package/dist/index272.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
import { nothing, html } from "lit";
|
|
2
|
-
function renderDisplayHeading(ctx) {
|
|
3
|
-
const headingContent = html`
|
|
4
|
-
<!-- Línea 1 -->
|
|
5
|
-
${ctx.line1}
|
|
6
|
-
<!-- Línea 2: prefix + acento itálico -->
|
|
7
|
-
${ctx.line2Prefix || ctx.accent ? html`
|
|
8
|
-
<br>
|
|
9
|
-
${ctx.line2Prefix ? html`${ctx.line2Prefix} ` : nothing}
|
|
10
|
-
${ctx.accent ? html`<em class="dh-accent">${ctx.accent}</em>` : nothing}
|
|
11
|
-
` : nothing}
|
|
12
|
-
`;
|
|
13
|
-
return html`
|
|
14
|
-
<div class="dh-wrapper" part="wrapper">
|
|
15
|
-
|
|
16
|
-
<!-- Slot eyebrow: permite pasar un <lib-eyebrow> desde fuera -->
|
|
17
|
-
<slot name="eyebrow"></slot>
|
|
18
|
-
|
|
19
|
-
<!-- Heading con tag dinámico -->
|
|
20
|
-
${ctx.tag === "h1" ? html`<h1 class="dh-heading" part="heading">${headingContent}</h1>` : nothing}
|
|
21
|
-
${ctx.tag === "h2" ? html`<h2 class="dh-heading" part="heading">${headingContent}</h2>` : nothing}
|
|
22
|
-
${ctx.tag === "h3" ? html`<h3 class="dh-heading" part="heading">${headingContent}</h3>` : nothing}
|
|
23
|
-
${ctx.tag === "h4" ? html`<h4 class="dh-heading" part="heading">${headingContent}</h4>` : nothing}
|
|
24
|
-
|
|
25
|
-
<!-- Descripción como prop -->
|
|
26
|
-
${ctx.description ? html`<p class="dh-desc" part="description">${ctx.description}</p>` : nothing}
|
|
27
|
-
|
|
28
|
-
<!-- Descripción como slot (rich content) -->
|
|
29
|
-
<slot name="description"></slot>
|
|
30
|
-
|
|
31
|
-
</div>
|
|
32
|
-
`;
|
|
33
|
-
}
|
|
1
|
+
const backgroundCss = `@layer tokens,reset,components;@layer reset{*,*:before,*:after{box-sizing:border-box}:host{display:block;position:relative;overflow:hidden}}@layer components{.bg-base{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0}.bg-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}.bg-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:0}.bg-content{position:relative;z-index:2;width:100%;height:100%}:host([paused]) .bg-base,:host([paused]) .bg-overlay{animation-play-state:paused!important}:host([variant="washi"]) .bg-base{background:var(--color-washi-50)}:host([variant="washi-grain"]) .bg-base{background:var(--color-washi-50)}:host([variant="washi-grain"]) .bg-overlay{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");background-repeat:repeat;mix-blend-mode:multiply}:host([variant="washi-weave"]) .bg-base{background-color:var(--color-washi-100);background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,rgb(180,160,140,.06) 3px,rgb(180,160,140,.06) 4px),repeating-linear-gradient(90deg,transparent,transparent 3px,rgb(180,160,140,.06) 3px,rgb(180,160,140,.06) 4px)}:host([variant="seigaiha"]) .bg-base{background-color:var(--color-washi-50);background-image:radial-gradient(ellipse 100% 90% at 50% 0%,transparent 60%,rgb(180,155,130,.18) 60%,rgb(180,155,130,.18) 64%,transparent 64%);background-size:36px 18px;background-position:0 0,18px 9px}:host([variant="tatami"]) .bg-base{background-color:var(--color-washi-100);background-image:linear-gradient(rgb(160,140,118,.12) 1px,transparent 1px),linear-gradient(90deg,rgb(160,140,118,.12) 1px,transparent 1px),linear-gradient(rgb(160,140,118,.06) 1px,transparent 1px),linear-gradient(90deg,rgb(160,140,118,.06) 1px,transparent 1px);background-size:60px 60px,60px 60px,20px 20px,20px 20px}:host([variant="asanoha"]) .bg-base{background-color:var(--color-washi-50);background-image:repeating-linear-gradient(60deg,rgb(160,140,118,.1) 0,rgb(160,140,118,.1) 1px,transparent 1px,transparent 18px),repeating-linear-gradient(-60deg,rgb(160,140,118,.1) 0,rgb(160,140,118,.1) 1px,transparent 1px,transparent 18px),repeating-linear-gradient(0deg,rgb(160,140,118,.08) 0,rgb(160,140,118,.08) 1px,transparent 1px,transparent 18px)}:host([variant="sashiko"]) .bg-base{background-color:#f0eae0;background-image:radial-gradient(circle,rgb(130,100,70,.18) 1.5px,transparent 1.5px);background-size:16px 16px}:host([variant="komon"]) .bg-base{background-color:var(--color-washi-50);background-image:radial-gradient(circle at 2px 2px,rgb(160,130,100,.15) 1px,transparent 0),radial-gradient(circle at 10px 10px,rgb(160,130,100,.08) 1px,transparent 0);background-size:12px 12px}:host([variant="kasuri"]) .bg-base{background-color:#f5efe6;background-image:repeating-linear-gradient(-45deg,transparent 0,transparent 8px,rgb(150,120,90,.05) 8px,rgb(150,120,90,.05) 10px),repeating-linear-gradient(45deg,transparent 0,transparent 8px,rgb(150,120,90,.04) 8px,rgb(150,120,90,.04) 10px)}:host([variant="nishiki"]) .bg-base{background:linear-gradient(135deg,var(--color-washi-50) 0%,#F5EEE4 35%,#EDE3D5 65%,var(--color-washi-100) 100%)}:host([variant="sumi"]) .bg-base{background:var(--color-washi-950)}:host([variant="sumi-grain"]) .bg-base{background:var(--color-washi-950)}:host([variant="sumi-grain"]) .bg-overlay{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.055'/%3E%3C/svg%3E");background-repeat:repeat;mix-blend-mode:screen}:host([variant="kintsugi"]) .bg-base{background:var(--color-washi-950);background-image:linear-gradient(125deg,transparent 30%,rgb(184,90,30,.07) 50%,transparent 70%),linear-gradient(45deg,transparent 20%,rgb(184,90,30,.04) 60%,transparent 80%)}:host([variant="ash-grid"]) .bg-base{background-color:var(--color-washi-950);background-image:linear-gradient(rgb(250,247,244,.04) 1px,transparent 1px),linear-gradient(90deg,rgb(250,247,244,.04) 1px,transparent 1px);background-size:40px 40px}:host([variant="ink-dot"]) .bg-base{background-color:var(--color-washi-950);background-image:radial-gradient(circle,rgb(250,247,244,.07) 1px,transparent 1px);background-size:20px 20px}:host([variant="mokume"]) .bg-base{background:#1a120a;background-image:repeating-linear-gradient(2deg,transparent 0,transparent 14px,rgb(255,240,220,.025) 14px,rgb(255,240,220,.025) 16px),repeating-linear-gradient(-1deg,transparent 0,transparent 22px,rgb(255,240,220,.015) 22px,rgb(255,240,220,.015) 24px)}:host([variant="kumo"]) .bg-base{background:#0e0a07;background-image:radial-gradient(ellipse 60% 40% at 20% 30%,rgb(184,90,30,.08) 0%,transparent 70%),radial-gradient(ellipse 50% 35% at 80% 70%,rgb(78,148,130,.06) 0%,transparent 70%),radial-gradient(ellipse 40% 30% at 60% 20%,rgb(184,90,30,.04) 0%,transparent 70%)}:host([variant="temari"]) .bg-base{background:#110d09;background-image:radial-gradient(circle at 50% 50%,transparent 38px,rgb(250,247,244,.04) 39px,transparent 40px),radial-gradient(circle at 50% 50%,transparent 58px,rgb(250,247,244,.03) 59px,transparent 60px),radial-gradient(circle at 50% 50%,transparent 78px,rgb(250,247,244,.025) 79px,transparent 80px),radial-gradient(circle at 50% 50%,transparent 98px,rgb(250,247,244,.02) 99px,transparent 100px),radial-gradient(circle at 50% 50%,transparent 118px,rgb(250,247,244,.015) 119px,transparent 120px)}:host([variant="dusk"]) .bg-base{background:linear-gradient(160deg,#1a1008,#2a1a0e,#1a1208 60%,#0e0a06)}:host([variant="embers"]) .bg-base{background:#0c0804;background-image:radial-gradient(ellipse 50% 40% at 50% 100%,rgb(184,90,30,.22) 0%,transparent 65%),radial-gradient(ellipse 30% 20% at 50% 90%,rgb(217,114,52,.3) 0%,transparent 50%),radial-gradient(ellipse 80% 60% at 50% 50%,transparent 40%,rgb(10,6,2,.9) 100%)}:host([variant="aurora-light"]) .bg-base{background:radial-gradient(ellipse 80% 60% at 10% 20%,rgb(217,114,52,.12) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 90% 80%,rgb(78,148,130,.1) 0%,transparent 60%),radial-gradient(ellipse 70% 70% at 50% 50%,rgb(250,247,244,.5) 0%,transparent 100%),var(--color-washi-50)}:host([variant="kaki-glow"]) .bg-base{background:radial-gradient(ellipse 70% 60% at 30% 40%,rgb(217,114,52,.18) 0%,transparent 65%),radial-gradient(ellipse 50% 40% at 80% 20%,rgb(184,90,30,.1) 0%,transparent 60%),var(--color-washi-100)}:host([variant="celadon-mist"]) .bg-base{background:radial-gradient(ellipse 80% 60% at 70% 30%,rgb(78,148,130,.14) 0%,transparent 65%),radial-gradient(ellipse 60% 50% at 20% 80%,rgb(78,148,130,.08) 0%,transparent 60%),var(--color-washi-50)}:host([variant="noctiluca"]) .bg-base{background:#0a0806;background-image:radial-gradient(ellipse 60% 50% at 20% 30%,rgb(217,114,52,.12) 0%,transparent 60%),radial-gradient(ellipse 50% 40% at 80% 70%,rgb(78,148,130,.09) 0%,transparent 60%),radial-gradient(ellipse 70% 60% at 50% 50%,rgb(26,20,14,.8) 0%,transparent 100%)}:host([variant="horizon"]) .bg-base{background:linear-gradient(180deg,var(--color-washi-50) 0%,#EDE3D5 40%,#D8C8B4 70%,var(--color-washi-200) 100%)}:host([variant="breathing"]) .bg-base{background:var(--color-washi-50)}:host([variant="breathing"]) .bg-overlay{top:-20%;right:-20%;bottom:-20%;left:-20%;background:radial-gradient(ellipse 60% 50% at 50% 50%,rgb(217,114,52,.1) 0%,transparent 70%);animation:bg-breathe 6s ease-in-out infinite}:host([variant="aurora-drift"]) .bg-base{background:#0c0906}:host([variant="aurora-drift"]) .bg-overlay{background:transparent;animation:none}:host([variant="aurora-drift"]) .bg-orb-a,:host([variant="aurora-drift"]) .bg-orb-b{position:absolute;border-radius:50%;filter:blur(60px);pointer-events:none;z-index:1}:host([variant="aurora-drift"]) .bg-orb-a{width:200px;height:160px;background:#b85a1e2e;top:10%;left:15%;animation:bg-aurora-float 12s ease-in-out infinite}:host([variant="aurora-drift"]) .bg-orb-b{width:180px;height:140px;background:#4e948224;bottom:15%;right:20%;animation:bg-aurora-float 12s ease-in-out infinite;animation-delay:-5s;animation-direction:reverse}:host([variant="scan"]) .bg-base{background:#0e0a07;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 3px,rgb(255,255,255,.018) 3px,rgb(255,255,255,.018) 4px)}:host([variant="scan"]) .bg-overlay{height:2px;inset:0 0 auto;top:0;left:0;right:0;background:linear-gradient(90deg,transparent,rgb(184,90,30,.35),transparent);animation:bg-scan-sweep 5s linear infinite}:host([variant="ink-drop"]) .bg-base{background:var(--color-washi-50)}:host([variant="ink-drop"]) .bg-overlay{width:80px;height:80px;inset:unset;top:50%;left:50%;margin:-40px 0 0 -40px;background:radial-gradient(circle,rgb(26,20,14,.08) 0%,rgb(26,20,14,.03) 50%,transparent 100%);border-radius:50%;animation:bg-ink-expand 4s ease-in-out infinite}:host([variant="shimmer"]) .bg-base{background:var(--color-washi-100)}:host([variant="shimmer"]) .bg-overlay{background:linear-gradient(105deg,transparent 30%,rgb(250,247,244,.5) 50%,transparent 70%);transform:translate(-100%);animation:bg-shimmer-pass 4s ease-in-out infinite;animation-delay:1s}:host([variant="particles"]){background:var(--color-washi-950)}:host([variant="rain"]){background:#0e0a07}:host([variant="wave-mesh"]){background:var(--color-washi-50)}:host([variant="constellation"]){background:#0a0806}:host([variant="kagome"]) .bg-base{background-color:var(--color-washi-50);background-image:linear-gradient(60deg,rgb(160,140,118,.11) 1px,transparent 1px),linear-gradient(120deg,rgb(160,140,118,.11) 1px,transparent 1px),linear-gradient(0deg,rgb(160,140,118,.07) 1px,transparent 1px);background-size:22px 38px}:host([variant="shoji"]) .bg-base{background-color:#fdfaf6;background-image:linear-gradient(rgb(160,140,118,.07) 1px,transparent 1px),linear-gradient(90deg,rgb(160,140,118,.07) 1px,transparent 1px),linear-gradient(rgb(160,140,118,.13) 1px,transparent 1px),linear-gradient(90deg,rgb(160,140,118,.13) 1px,transparent 1px);background-size:10px 10px,10px 10px,40px 40px,40px 40px}:host([variant="shibori"]) .bg-base{background-color:var(--color-washi-50);background-image:radial-gradient(circle at 0% 0%,transparent 28%,rgb(160,140,118,.1) 29%,transparent 30%),radial-gradient(circle at 100% 0%,transparent 28%,rgb(160,140,118,.1) 29%,transparent 30%),radial-gradient(circle at 0% 100%,transparent 28%,rgb(160,140,118,.1) 29%,transparent 30%),radial-gradient(circle at 100% 100%,transparent 28%,rgb(160,140,118,.1) 29%,transparent 30%),radial-gradient(circle at 50% 50%,transparent 28%,rgb(160,140,118,.07) 29%,transparent 30%),radial-gradient(circle at 0% 0%,transparent 14%,rgb(160,140,118,.06) 15%,transparent 16%),radial-gradient(circle at 100% 0%,transparent 14%,rgb(160,140,118,.06) 15%,transparent 16%),radial-gradient(circle at 0% 100%,transparent 14%,rgb(160,140,118,.06) 15%,transparent 16%),radial-gradient(circle at 100% 100%,transparent 14%,rgb(160,140,118,.06) 15%,transparent 16%);background-size:48px 48px}:host([variant="ori"]) .bg-base{background-color:var(--color-washi-100);background-image:repeating-linear-gradient(45deg,transparent 0,transparent 4px,rgb(150,130,108,.09) 4px,rgb(150,130,108,.09) 5px),repeating-linear-gradient(-45deg,transparent 0,transparent 4px,rgb(150,130,108,.07) 4px,rgb(150,130,108,.07) 5px)}:host([variant="chirimen"]) .bg-base{background-color:#faf6f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.3' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23c)' fill='rgb(160,140,118)' opacity='0.04'/%3E%3C/svg%3E");background-repeat:repeat}:host([variant="obsidian"]) .bg-base{background:#0a0808;background-image:linear-gradient(135deg,transparent 0%,rgb(220,215,210,.025) 25%,transparent 50%,rgb(220,215,210,.015) 75%,transparent 100%),radial-gradient(ellipse 60% 40% at 70% 30%,rgb(184,90,30,.06),transparent 60%)}:host([variant="forge"]) .bg-base{background:#080604;background-image:radial-gradient(ellipse 90% 40% at 50% 110%,rgb(217,114,52,.35) 0%,rgb(140,65,21,.2) 35%,transparent 65%),radial-gradient(ellipse 60% 25% at 50% 100%,rgb(250,180,80,.12) 0%,transparent 50%)}:host([variant="void"]) .bg-base{background:#06040302;background-image:radial-gradient(ellipse 70% 60% at 50% 50%,transparent 20%,rgb(0,0,0,.3) 55%,rgb(0,0,0,.75) 100%),radial-gradient(ellipse 30% 25% at 50% 50%,rgb(184,90,30,.04),transparent 70%);background-color:#0c0a08}:host([variant="yami"]) .bg-base{background:linear-gradient(160deg,#1a1208,#0e0b07 30%,#080604 55%,#04030200);background-color:#080604}:host([variant="midnight"]) .bg-base{background-color:#090806;background-image:radial-gradient(circle,rgb(250,247,244,.04) 1px,transparent 1px);background-size:12px 12px;background-position:0 0,6px 6px}:host([variant="midnight"]) .bg-overlay{background:linear-gradient(180deg,transparent 60%,rgb(184,90,30,.04) 100%)}:host([variant="sakura"]) .bg-base{background:radial-gradient(ellipse 70% 60% at 30% 30%,rgb(230,190,180,.22) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 80% 70%,rgb(217,114,52,.08) 0%,transparent 60%),radial-gradient(ellipse 80% 80% at 50% 50%,rgb(250,247,244,.6) 0%,transparent 100%),#faf4f2}:host([variant="twilight"]) .bg-base{background:linear-gradient(160deg,#2a1a0e,#1e1208 35%,#120c06 65%,#080604);background-image:radial-gradient(ellipse 80% 50% at 30% 20%,rgb(217,114,52,.14) 0%,transparent 60%),radial-gradient(ellipse 60% 40% at 80% 80%,rgb(184,90,30,.08) 0%,transparent 60%)}:host([variant="jade-deep"]) .bg-base{background:#080e0c;background-image:radial-gradient(ellipse 70% 60% at 20% 40%,rgb(78,148,130,.16) 0%,transparent 65%),radial-gradient(ellipse 50% 40% at 85% 65%,rgb(53,113,100,.1) 0%,transparent 60%),radial-gradient(ellipse 40% 30% at 60% 20%,rgb(78,148,130,.07) 0%,transparent 60%)}:host([variant="pulse"]) .bg-base{background:var(--color-washi-950)}:host([variant="pulse"]) .bg-overlay{background:transparent}:host([variant="pulse"]) .bg-overlay:before,:host([variant="pulse"]) .bg-overlay:after{content:"";position:absolute;top:50%;left:50%;border-radius:50%;border:1px solid rgb(184,90,30,.35);transform:translate(-50%,-50%) scale(0);width:160px;height:160px;animation:bg-pulse-ring 4s ease-out infinite}:host([variant="pulse"]) .bg-overlay:after{border-color:#f5d08a33;animation-delay:2s}@keyframes bg-pulse-ring{0%{transform:translate(-50%,-50%) scale(0);opacity:1}to{transform:translate(-50%,-50%) scale(5.5);opacity:0}}:host([variant="fog"]) .bg-base{background:var(--color-washi-950)}:host([variant="fog"]) .bg-overlay{background:radial-gradient(ellipse 500px 220px at 0% 50%,rgb(250,247,244,.045),transparent 70%),radial-gradient(ellipse 300px 140px at 0% 50%,rgb(250,247,244,.03),transparent 60%);animation:bg-fog-drift 10s linear infinite}:host([variant="fog"]) .bg-overlay:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse 400px 180px at 0% 65%,rgb(184,90,30,.025),transparent 70%);animation:bg-fog-drift 14s linear infinite;animation-delay:-5s}@keyframes bg-fog-drift{0%{transform:translate(-40%)}to{transform:translate(140%)}}:host([variant="static"]) .bg-base{background:#0a0806;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");background-repeat:repeat}:host([variant="static"]) .bg-overlay{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),repeating-linear-gradient(0deg,transparent,transparent 3px,rgb(255,255,255,.012) 3px,rgb(255,255,255,.012) 4px);animation:bg-static-noise .12s steps(1) infinite}@keyframes bg-static-noise{0%{background-position:0 0,0 0;opacity:1}20%{background-position:-3% 2%,0 0;opacity:.9}40%{background-position:4% -1%,0 -2px;opacity:1}60%{background-position:-1% 3%,0 0;opacity:.8}80%{background-position:2% -2%,0 1px;opacity:1}}:host([variant="fireflies"]){background:#080604}:host([variant="ink-wash"]){background:var(--color-washi-50)}@keyframes bg-breathe{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.15);opacity:1}}@keyframes bg-aurora-float{0%,to{transform:translate(0) scale(1)}33%{transform:translate(30px,-20px) scale(1.1)}66%{transform:translate(-20px,15px) scale(.95)}}@keyframes bg-scan-sweep{0%{top:0%;opacity:0}2%{opacity:1}98%{opacity:.4}to{top:100%;opacity:0}}@keyframes bg-ink-expand{0%,to{transform:scale(1);opacity:.5}50%{transform:scale(4);opacity:1}}@keyframes bg-shimmer-pass{0%{transform:translate(-100%)}to{transform:translate(200%)}}}`;
|
|
34
2
|
export {
|
|
35
|
-
|
|
3
|
+
backgroundCss as default
|
|
36
4
|
};
|
|
37
5
|
//# sourceMappingURL=index272.js.map
|
package/dist/index272.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index272.js","sources":[
|
|
1
|
+
{"version":3,"file":"index272.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index273.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
function backgroundTemplate(props) {
|
|
3
|
+
const { variant, isCanvas } = props;
|
|
4
|
+
const isAuroraDrift = variant === "aurora-drift";
|
|
5
|
+
return html`
|
|
6
|
+
${isCanvas ? html`<canvas class="bg-canvas"></canvas>` : html`
|
|
7
|
+
<div class="bg-base"></div>
|
|
8
|
+
<div class="bg-overlay"></div>
|
|
9
|
+
${isAuroraDrift ? html`<div class="bg-orb-a"></div><div class="bg-orb-b"></div>` : nothing}
|
|
10
|
+
`}
|
|
11
|
+
<div class="bg-content">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
2
16
|
export {
|
|
3
|
-
|
|
17
|
+
backgroundTemplate
|
|
4
18
|
};
|
|
5
19
|
//# sourceMappingURL=index273.js.map
|
package/dist/index273.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index273.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index273.js","sources":["../src/components/atoms/background/lib-background.html.ts"],"sourcesContent":["import { html, nothing, TemplateResult } from 'lit';\nimport type { BackgroundTemplateProps } from './lib-background.types';\n\n/**\n * Template principal de lib-background.\n *\n * Estructura de capas:\n * .bg-base → recibe background CSS (color/patrón/gradiente)\n * .bg-overlay → grain, shimmer, scan line, ink-drop...\n * .bg-orb-a/b → orbes animados (solo aurora-drift)\n * .bg-canvas → canvas 2D generativo (solo variantes canvas)\n * .bg-content → contenido sloteado — z-index 2\n */\nexport function backgroundTemplate(props: BackgroundTemplateProps): TemplateResult {\n const { variant, isCanvas } = props;\n const isAuroraDrift = variant === 'aurora-drift';\n\n return html`\n ${isCanvas\n ? html`<canvas class=\"bg-canvas\"></canvas>`\n : html`\n <div class=\"bg-base\"></div>\n <div class=\"bg-overlay\"></div>\n ${isAuroraDrift\n ? html`<div class=\"bg-orb-a\"></div><div class=\"bg-orb-b\"></div>`\n : nothing}\n `\n }\n <div class=\"bg-content\">\n <slot></slot>\n </div>\n `;\n}"],"names":[],"mappings":";AAaO,SAAS,mBAAmB,OAAgD;AACjF,QAAM,EAAE,SAAS,SAAA,IAAa;AAC9B,QAAM,gBAAgB,YAAY;AAElC,SAAO;AAAA,MACH,WACE,4CACA;AAAA;AAAA;AAAA,YAGI,gBACE,iEACA,OAAO;AAAA,SAEjB;AAAA;AAAA;AAAA;AAAA;AAKJ;"}
|
package/dist/index274.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const BG_CANVAS_VARIANTS = /* @__PURE__ */ new Set([
|
|
2
|
+
"particles",
|
|
3
|
+
"rain",
|
|
4
|
+
"wave-mesh",
|
|
5
|
+
"constellation",
|
|
6
|
+
"fireflies",
|
|
7
|
+
"ink-wash"
|
|
8
|
+
]);
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
BG_CANVAS_VARIANTS
|
|
4
11
|
};
|
|
5
12
|
//# sourceMappingURL=index274.js.map
|
package/dist/index274.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index274.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index274.js","sources":["../src/components/atoms/background/lib-background.types.ts"],"sourcesContent":["/* ============================================================\n LIB-BACKGROUND — Tipos e interfaces públicas\n 52 variantes: 15 light · 15 dark · 8 gradient · 8 animated · 6 canvas\n ============================================================ */\n\n/** 15 fondos light inspirados en papel y textil japonés */\nexport type LibBackgroundLight =\n | 'washi'\n | 'washi-grain'\n | 'washi-weave'\n | 'seigaiha'\n | 'tatami'\n | 'asanoha'\n | 'sashiko'\n | 'komon'\n | 'kasuri'\n | 'nishiki'\n /* ── Nuevos ── */\n | 'kagome' /* 籠目 hexagonal basket weave */\n | 'shoji' /* 障子 paper screen fine grid */\n | 'shibori' /* 絞り tie-dye concentric circles */\n | 'ori' /* 織 diagonal woven textile */\n | 'chirimen'; /* 縮緬 crepe silk fine crinkle */\n\n/** 15 fondos dark derivados de la tinta sumi */\nexport type LibBackgroundDark =\n | 'sumi'\n | 'sumi-grain'\n | 'kintsugi'\n | 'ash-grid'\n | 'ink-dot'\n | 'mokume'\n | 'kumo'\n | 'temari'\n | 'dusk'\n | 'embers'\n /* ── Nuevos ── */\n | 'obsidian' /* 黒曜石 mineral shimmer sobre negro profundo */\n | 'forge' /* 鍛冶 brasa naranja desde abajo */\n | 'void' /* 虚空 vignette radial, oscuridad pura */\n | 'yami' /* 闇 degradado de profundidad casi imperceptible */\n | 'midnight'; /* 深夜 matriz de puntos finos sobre near-black */\n\n/** 8 fondos de gradiente mesh */\nexport type LibBackgroundGradient =\n | 'aurora-light'\n | 'kaki-glow'\n | 'celadon-mist'\n | 'noctiluca'\n | 'horizon'\n /* ── Nuevos ── */\n | 'sakura' /* 桜 rosa-washi suave */\n | 'twilight' /* 黄昏 kaki cálido a oscuro */\n | 'jade-deep'; /* 翡翠 celadón profundo con humo */\n\n/** 8 fondos animados en CSS puro */\nexport type LibBackgroundAnimated =\n | 'breathing'\n | 'aurora-drift'\n | 'scan'\n | 'ink-drop'\n | 'shimmer'\n /* ── Nuevos ── */\n | 'pulse' /* anillos kintsugi expandiéndose desde el centro */\n | 'fog' /* niebla lenta cruzando de izquierda a derecha */\n | 'static'; /* ruido CRT — estética glitch */\n\n/** 6 fondos generativos en Canvas 2D */\nexport type LibBackgroundCanvas =\n | 'particles'\n | 'rain'\n | 'wave-mesh'\n | 'constellation'\n /* ── Nuevos ── */\n | 'fireflies' /* partículas luminosas con movimiento orgánico */\n | 'ink-wash'; /* manchas de tinta expandiéndose sobre papel */\n\n/** Unión completa de las 52 variantes */\nexport type LibBackgroundVariant =\n | LibBackgroundLight\n | LibBackgroundDark\n | LibBackgroundGradient\n | LibBackgroundAnimated\n | LibBackgroundCanvas;\n\n/** Props del template */\nexport interface BackgroundTemplateProps {\n variant: LibBackgroundVariant;\n isCanvas: boolean;\n}\n\n/** Set de variantes canvas (requieren inicialización JS) */\nexport const BG_CANVAS_VARIANTS = new Set<LibBackgroundVariant>([\n 'particles', 'rain', 'wave-mesh', 'constellation',\n 'fireflies', 'ink-wash',\n]);\n\n/** Set de variantes oscuras (para decidir color de demo content) */\nexport const BG_DARK_VARIANTS = new Set<LibBackgroundVariant>([\n 'sumi', 'sumi-grain', 'kintsugi', 'ash-grid', 'ink-dot',\n 'mokume', 'kumo', 'temari', 'dusk', 'embers',\n 'obsidian', 'forge', 'void', 'yami', 'midnight',\n 'noctiluca', 'aurora-drift', 'scan', 'particles', 'rain',\n 'constellation', 'twilight', 'jade-deep', 'pulse', 'fog',\n 'static', 'fireflies', 'ink-wash',\n]);"],"names":[],"mappings":"AA4FO,MAAM,yCAAyB,IAA0B;AAAA,EAC9D;AAAA,EAAa;AAAA,EAAQ;AAAA,EAAa;AAAA,EAClC;AAAA,EAAa;AACf,CAAC;"}
|
package/dist/index275.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { nothing, html } from "lit";
|
|
2
|
-
function
|
|
2
|
+
function badgeTemplate(props) {
|
|
3
3
|
return html`
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<div class="pillar-body" part="body">
|
|
9
|
-
${ctx.label ? html`<p class="pillar-label" part="label">${ctx.label}</p>` : nothing}
|
|
10
|
-
|
|
11
|
-
${ctx.description ? html`<p class="pillar-desc" part="description">${ctx.description}</p>` : html`<slot></slot>`}
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
</div>
|
|
4
|
+
<span class="badge">
|
|
5
|
+
${props.dot ? html`<span class="badge__dot" aria-hidden="true"></span>` : nothing}
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</span>
|
|
15
8
|
`;
|
|
16
9
|
}
|
|
17
10
|
export {
|
|
18
|
-
|
|
11
|
+
badgeTemplate
|
|
19
12
|
};
|
|
20
13
|
//# sourceMappingURL=index275.js.map
|
package/dist/index275.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index275.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index275.js","sources":["../src/components/atoms/badge/lib-badge.html.ts"],"sourcesContent":["import { html, nothing, TemplateResult } from 'lit';\n\n/**\n * Variantes visuales del badge.\n * TODO: mover a src/models/ui/ cuando se integre en el monorepo.\n */\nexport type LibBadgeVariant =\n | 'default'\n | 'accent'\n | 'celadon'\n | 'dark'\n | 'error'\n | 'success'\n | 'warning';\n\nexport type LibBadgeSize = 'sm' | 'md';\n\nexport interface BadgeTemplateProps {\n variant: LibBadgeVariant;\n size: LibBadgeSize;\n dot: boolean;\n pill: boolean;\n}\n\n/**\n * Plantilla para lib-badge.\n * El contenido se proyecta mediante <slot> para máxima flexibilidad.\n */\nexport function badgeTemplate(props: BadgeTemplateProps): TemplateResult {\n return html`\n <span class=\"badge\">\n ${props.dot ? html`<span class=\"badge__dot\" aria-hidden=\"true\"></span>` : nothing}\n <slot></slot>\n </span>\n `;\n}"],"names":[],"mappings":";AA4BO,SAAS,cAAc,OAA2C;AACvE,SAAO;AAAA;AAAA,QAED,MAAM,MAAM,4DAA4D,OAAO;AAAA;AAAA;AAAA;AAIvF;"}
|
package/dist/index276.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const badgeCss = '@layer tokens,reset,components;@layer reset{:host{display:inline-block;vertical-align:middle}*,*:before,*:after{box-sizing:border-box}}@layer components{.badge{display:inline-flex;align-items:center;gap:var(--lib-space-xs);font-family:var(--lib-font-mono);font-size:10px;font-weight:var(--weight-medium);letter-spacing:var(--tracking-wider);text-transform:uppercase;white-space:nowrap;line-height:1;padding:var(--lib-space-xs) var(--lib-space-sm);border:var(--lib-border-width) solid transparent;border-radius:var(--lib-radius-xs);-webkit-user-select:none;user-select:none}:host([size="md"]) .badge,.badge{padding:var(--lib-space-xs) var(--lib-space-sm);font-size:10px}:host([size="sm"]) .badge{padding:2px var(--lib-space-xs);font-size:9px;letter-spacing:var(--tracking-wide)}:host([pill]) .badge{border-radius:var(--radius-full);padding-inline:var(--lib-space-md)}.badge__dot{display:inline-block;width:5px;height:5px;border-radius:var(--radius-full);background:currentcolor;opacity:.75;flex-shrink:0}:host([variant="default"]) .badge,.badge{background:var(--color-washi-100);color:var(--text-secondary);border-color:var(--border-default)}:host([variant="accent"]) .badge{background:var(--color-kaki-50);color:var(--color-kaki-600);border-color:var(--color-kaki-200)}:host([variant="celadon"]) .badge{background:var(--color-celadon-50);color:var(--color-celadon-600);border-color:var(--color-celadon-200)}:host([variant="dark"]) .badge{background:var(--color-washi-900);color:var(--color-washi-300);border-color:var(--color-washi-700)}:host([variant="error"]) .badge{background:#fcf3f3;color:var(--color-error);border-color:#e7c4c5}:host([variant="success"]) .badge{background:#f1f7f2;color:var(--color-success);border-color:#bcd6c0}:host([variant="warning"]) .badge{background:#fcf4e6;color:var(--color-warning);border-color:#e6d1b0}}';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
badgeCss as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index276.js.map
|
package/dist/index277.js
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
function bentoItemTemplate(_ctx) {
|
|
3
3
|
return html`
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<!-- Línea 2: acento itálico -->
|
|
10
|
-
${ctx.accent ? html`<em class="quote-accent" part="accent">${ctx.accent}</em>` : nothing}
|
|
11
|
-
</p>
|
|
12
|
-
|
|
13
|
-
${ctx.cite ? html`<cite part="cite">${ctx.cite}</cite>` : nothing}
|
|
14
|
-
|
|
15
|
-
</blockquote>
|
|
4
|
+
<div class="bento-item" part="item">
|
|
5
|
+
<div class="content" part="content">
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
16
9
|
`;
|
|
17
10
|
}
|
|
18
11
|
export {
|
|
19
|
-
|
|
12
|
+
bentoItemTemplate
|
|
20
13
|
};
|
|
21
14
|
//# sourceMappingURL=index277.js.map
|
package/dist/index277.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index277.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index277.js","sources":["../src/components/atoms/bento-item/lib-bento-item.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\nimport type { LibBentoItem } from './lib-bento-item.component';\n\nexport function bentoItemTemplate(_ctx: LibBentoItem): TemplateResult {\n return html`\n <div class=\"bento-item\" part=\"item\">\n <div class=\"content\" part=\"content\">\n <slot></slot>\n </div>\n </div>\n `;\n}"],"names":[],"mappings":";AAGO,SAAS,kBAAkB,MAAoC;AACpE,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOT;"}
|
package/dist/index278.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const itemCss = "@layer tokens,reset,components;@layer reset{:host{display:block}*,*:before,*:after{box-sizing:border-box}}@layer components{.bento-item{height:100%;width:100%;display:flex;flex-direction:column;position:relative;background:var(--bg-elevated);border-radius:var(--lib-radius-lg);border:1px solid var(--border-subtle);overflow:hidden}:host([interactive]) .bento-item{cursor:pointer;transition:transform var(--duration-slow) var(--ease-default),border-color var(--duration-base) var(--ease-default),box-shadow var(--duration-slow) var(--ease-default)}:host([interactive]) .bento-item:hover{transform:translateY(-3px);border-color:var(--border-strong);box-shadow:var(--shadow-md)}:host([interactive]) .bento-item:active{transform:translateY(-1px)}.content{padding:var(--lib-space-md);height:100%;display:flex;flex-direction:column}:host([flush]) .content{padding:0}@media(prefers-reduced-motion:reduce){:host([interactive]) .bento-item{transition:border-color var(--duration-base)}:host([interactive]) .bento-item:hover{transform:none}}}";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
itemCss as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index278.js.map
|
package/dist/index279.js
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
const glitchGhost = html`
|
|
3
|
+
<div class="burger-ghost">
|
|
4
|
+
<svg class="ghost-a" width="52" height="52" viewBox="0 0 52 52" fill="none">
|
|
5
|
+
<line x1="12" y1="19" x2="40" y2="19" stroke="rgba(217,114,52,0.6)" stroke-width="1.5"/>
|
|
6
|
+
<line x1="12" y1="26" x2="40" y2="26" stroke="rgba(217,114,52,0.6)" stroke-width="1.5"/>
|
|
7
|
+
<line x1="12" y1="33" x2="40" y2="33" stroke="rgba(217,114,52,0.6)" stroke-width="1.5"/>
|
|
8
|
+
</svg>
|
|
9
|
+
<svg class="ghost-b" width="52" height="52" viewBox="0 0 52 52" fill="none">
|
|
10
|
+
<line x1="12" y1="19" x2="40" y2="19" stroke="rgba(78,148,130,0.4)" stroke-width="1"/>
|
|
11
|
+
<line x1="12" y1="26" x2="40" y2="26" stroke="rgba(78,148,130,0.4)" stroke-width="1"/>
|
|
12
|
+
<line x1="12" y1="33" x2="40" y2="33" stroke="rgba(78,148,130,0.4)" stroke-width="1"/>
|
|
13
|
+
</svg>
|
|
14
|
+
</div>`;
|
|
15
|
+
const lines = html`
|
|
16
|
+
<div class="burger-lines">
|
|
17
|
+
<span class="burger-line"></span>
|
|
18
|
+
<span class="burger-line"></span>
|
|
19
|
+
<span class="burger-line"></span>
|
|
20
|
+
</div>`;
|
|
21
|
+
function burgerBtn(ctx) {
|
|
22
|
+
return html`
|
|
23
|
+
<button
|
|
24
|
+
class="burger"
|
|
25
|
+
part="burger"
|
|
26
|
+
aria-label="${ctx.ariaLabel || "Menú"}"
|
|
27
|
+
aria-expanded="${ctx.open}"
|
|
28
|
+
@click="${() => ctx._handleClick()}"
|
|
29
|
+
>
|
|
30
|
+
${ctx.variant === "glitch" ? glitchGhost : nothing}
|
|
31
|
+
${lines}
|
|
32
|
+
</button>`;
|
|
33
|
+
}
|
|
34
|
+
function burgerTemplate(ctx) {
|
|
35
|
+
if (!ctx.label) return burgerBtn(ctx);
|
|
36
|
+
return html`
|
|
37
|
+
<div
|
|
38
|
+
class="burger-wrap"
|
|
39
|
+
part="wrap"
|
|
40
|
+
@click="${() => ctx._handleClick()}"
|
|
41
|
+
>
|
|
42
|
+
<button
|
|
43
|
+
class="burger"
|
|
44
|
+
part="burger"
|
|
45
|
+
aria-label="${ctx.ariaLabel || "Menú"}"
|
|
46
|
+
aria-expanded="${ctx.open}"
|
|
47
|
+
@click="${(e) => e.stopPropagation()}"
|
|
48
|
+
>
|
|
49
|
+
${ctx.variant === "glitch" ? glitchGhost : nothing}
|
|
50
|
+
${lines}
|
|
51
|
+
</button>
|
|
52
|
+
<span class="burger-label" part="label">${ctx._labelText}</span>
|
|
53
|
+
</div>`;
|
|
54
|
+
}
|
|
2
55
|
export {
|
|
3
|
-
|
|
56
|
+
burgerTemplate
|
|
4
57
|
};
|
|
5
58
|
//# sourceMappingURL=index279.js.map
|
package/dist/index279.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index279.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index279.js","sources":["../src/components/atoms/burger-button/lib-burger-button.html.ts"],"sourcesContent":["import { html, nothing, TemplateResult } from 'lit';\nimport type { LibBurger } from './lib-burger-button.component';\n\n/* SVG ghost lines para la variante glitch */\nconst glitchGhost: TemplateResult = html`\n <div class=\"burger-ghost\">\n <svg class=\"ghost-a\" width=\"52\" height=\"52\" viewBox=\"0 0 52 52\" fill=\"none\">\n <line x1=\"12\" y1=\"19\" x2=\"40\" y2=\"19\" stroke=\"rgba(217,114,52,0.6)\" stroke-width=\"1.5\"/>\n <line x1=\"12\" y1=\"26\" x2=\"40\" y2=\"26\" stroke=\"rgba(217,114,52,0.6)\" stroke-width=\"1.5\"/>\n <line x1=\"12\" y1=\"33\" x2=\"40\" y2=\"33\" stroke=\"rgba(217,114,52,0.6)\" stroke-width=\"1.5\"/>\n </svg>\n <svg class=\"ghost-b\" width=\"52\" height=\"52\" viewBox=\"0 0 52 52\" fill=\"none\">\n <line x1=\"12\" y1=\"19\" x2=\"40\" y2=\"19\" stroke=\"rgba(78,148,130,0.4)\" stroke-width=\"1\"/>\n <line x1=\"12\" y1=\"26\" x2=\"40\" y2=\"26\" stroke=\"rgba(78,148,130,0.4)\" stroke-width=\"1\"/>\n <line x1=\"12\" y1=\"33\" x2=\"40\" y2=\"33\" stroke=\"rgba(78,148,130,0.4)\" stroke-width=\"1\"/>\n </svg>\n </div>`;\n\n/* Las tres líneas internas */\nconst lines: TemplateResult = html`\n <div class=\"burger-lines\">\n <span class=\"burger-line\"></span>\n <span class=\"burger-line\"></span>\n <span class=\"burger-line\"></span>\n </div>`;\n\n/* Botón principal */\nfunction burgerBtn(ctx: LibBurger): TemplateResult {\n return html`\n <button\n class=\"burger\"\n part=\"burger\"\n aria-label=\"${ctx.ariaLabel || 'Menú'}\"\n aria-expanded=\"${ctx.open}\"\n @click=\"${(): void => ctx._handleClick()}\"\n >\n ${ctx.variant === 'glitch' ? glitchGhost : nothing}\n ${lines}\n </button>`;\n}\n\nexport function burgerTemplate(ctx: LibBurger): TemplateResult {\n /* Sin label — renderiza solo el botón */\n if (!ctx.label) return burgerBtn(ctx);\n\n /* Con label — wrapper flex */\n return html`\n <div\n class=\"burger-wrap\"\n part=\"wrap\"\n @click=\"${(): void => ctx._handleClick()}\"\n >\n <button\n class=\"burger\"\n part=\"burger\"\n aria-label=\"${ctx.ariaLabel || 'Menú'}\"\n aria-expanded=\"${ctx.open}\"\n @click=\"${(e: MouseEvent): void => e.stopPropagation()}\"\n >\n ${ctx.variant === 'glitch' ? glitchGhost : nothing}\n ${lines}\n </button>\n <span class=\"burger-label\" part=\"label\">${ctx._labelText}</span>\n </div>`;\n}"],"names":[],"mappings":";AAIA,MAAM,cAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAepC,MAAM,QAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ9B,SAAS,UAAU,KAAgC;AACjD,SAAO;AAAA;AAAA;AAAA;AAAA,oBAIW,IAAI,aAAa,MAAM;AAAA,uBACpB,IAAI,IAAI;AAAA,gBACf,MAAY,IAAI,cAAc;AAAA;AAAA,QAEtC,IAAI,YAAY,WAAW,cAAc,OAAO;AAAA,QAChD,KAAK;AAAA;AAEb;AAEO,SAAS,eAAe,KAAgC;AAE7D,MAAI,CAAC,IAAI,MAAO,QAAO,UAAU,GAAG;AAGpC,SAAO;AAAA;AAAA;AAAA;AAAA,gBAIO,MAAY,IAAI,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKxB,IAAI,aAAa,MAAM;AAAA,yBACpB,IAAI,IAAI;AAAA,kBACf,CAAC,MAAwB,EAAE,iBAAiB;AAAA;AAAA,UAEpD,IAAI,YAAY,WAAW,cAAc,OAAO;AAAA,UAChD,KAAK;AAAA;AAAA,gDAEiC,IAAI,UAAU;AAAA;AAE9D;"}
|