@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/index263.js
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
|
-
|
|
1
|
+
import { noChange as E } from "./index358.js";
|
|
2
|
+
import { directive as e, Directive as i, PartType as t } from "./index359.js";
|
|
3
|
+
import { getCommittedValue as M, setChildPartValue as u$1, insertPart as v, removePart as h, setCommittedValue as p } from "./index360.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2017 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const u = (e2, s, t2) => {
|
|
10
|
+
const r = /* @__PURE__ */ new Map();
|
|
11
|
+
for (let l = s; l <= t2; l++) r.set(e2[l], l);
|
|
12
|
+
return r;
|
|
13
|
+
}, c = e(class extends i {
|
|
14
|
+
constructor(e2) {
|
|
15
|
+
if (super(e2), e2.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
16
|
+
}
|
|
17
|
+
dt(e2, s, t2) {
|
|
18
|
+
let r;
|
|
19
|
+
void 0 === t2 ? t2 = s : void 0 !== s && (r = s);
|
|
20
|
+
const l = [], o = [];
|
|
21
|
+
let i2 = 0;
|
|
22
|
+
for (const s2 of e2) l[i2] = r ? r(s2, i2) : i2, o[i2] = t2(s2, i2), i2++;
|
|
23
|
+
return { values: o, keys: l };
|
|
24
|
+
}
|
|
25
|
+
render(e2, s, t2) {
|
|
26
|
+
return this.dt(e2, s, t2).values;
|
|
27
|
+
}
|
|
28
|
+
update(s, [t2, r, c2]) {
|
|
29
|
+
const d = M(s), { values: p$1, keys: a } = this.dt(t2, r, c2);
|
|
30
|
+
if (!Array.isArray(d)) return this.ut = a, p$1;
|
|
31
|
+
const h$1 = this.ut ?? (this.ut = []), v$1 = [];
|
|
32
|
+
let m, y, x = 0, j = d.length - 1, k = 0, w = p$1.length - 1;
|
|
33
|
+
for (; x <= j && k <= w; ) if (null === d[x]) x++;
|
|
34
|
+
else if (null === d[j]) j--;
|
|
35
|
+
else if (h$1[x] === a[k]) v$1[k] = u$1(d[x], p$1[k]), x++, k++;
|
|
36
|
+
else if (h$1[j] === a[w]) v$1[w] = u$1(d[j], p$1[w]), j--, w--;
|
|
37
|
+
else if (h$1[x] === a[w]) v$1[w] = u$1(d[x], p$1[w]), v(s, v$1[w + 1], d[x]), x++, w--;
|
|
38
|
+
else if (h$1[j] === a[k]) v$1[k] = u$1(d[j], p$1[k]), v(s, d[x], d[j]), j--, k++;
|
|
39
|
+
else if (void 0 === m && (m = u(a, k, w), y = u(h$1, x, j)), m.has(h$1[x])) if (m.has(h$1[j])) {
|
|
40
|
+
const e2 = y.get(a[k]), t3 = void 0 !== e2 ? d[e2] : null;
|
|
41
|
+
if (null === t3) {
|
|
42
|
+
const e3 = v(s, d[x]);
|
|
43
|
+
u$1(e3, p$1[k]), v$1[k] = e3;
|
|
44
|
+
} else v$1[k] = u$1(t3, p$1[k]), v(s, d[x], t3), d[e2] = null;
|
|
45
|
+
k++;
|
|
46
|
+
} else h(d[j]), j--;
|
|
47
|
+
else h(d[x]), x++;
|
|
48
|
+
for (; k <= w; ) {
|
|
49
|
+
const e2 = v(s, v$1[w + 1]);
|
|
50
|
+
u$1(e2, p$1[k]), v$1[k++] = e2;
|
|
51
|
+
}
|
|
52
|
+
for (; x <= j; ) {
|
|
53
|
+
const e2 = d[x++];
|
|
54
|
+
null !== e2 && h(e2);
|
|
55
|
+
}
|
|
56
|
+
return this.ut = a, p(s, v$1), E;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
2
59
|
export {
|
|
3
|
-
|
|
60
|
+
c as repeat
|
|
4
61
|
};
|
|
5
62
|
//# sourceMappingURL=index263.js.map
|
package/dist/index263.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index263.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index263.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/repeat.js"],"sourcesContent":["import{noChange as e}from\"../lit-html.js\";import{directive as s,Directive as t,PartType as r}from\"../directive.js\";import{getCommittedValue as l,setChildPartValue as o,insertPart as i,removePart as n,setCommittedValue as f}from\"../directive-helpers.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error(\"repeat() can only be used in text expressions\")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){const d=l(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v=[];let m,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v[k]=o(d[x],p[k]),x++,k++;else if(h[j]===a[w])v[w]=o(d[j],p[w]),j--,w--;else if(h[x]===a[w])v[w]=o(d[x],p[w]),i(s,v[w+1],d[x]),x++,w--;else if(h[j]===a[k])v[k]=o(d[j],p[k]),i(s,d[x],d[j]),j--,k++;else if(void 0===m&&(m=u(a,k,w),y=u(h,x,j)),m.has(h[x]))if(m.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=i(s,d[x]);o(e,p[k]),v[k]=e}else v[k]=o(t,p[k]),i(s,d[x],t),d[e]=null;k++}else n(d[j]),j--;else n(d[x]),x++;for(;k<=w;){const e=i(s,v[w+1]);o(e,p[k]),v[k++]=e}for(;x<=j;){const e=d[x++];null!==e&&n(e)}return this.ut=a,f(s,v),e}});export{c as repeat};\n//# sourceMappingURL=repeat.js.map\n"],"names":["e","t","s","r","i","c","l","p","h","v","o","n","f"],"mappings":";;;AACA;AAAA;AAAA;AAAA;AAAA;AAKK,MAAC,IAAE,CAACA,IAAE,GAAEC,OAAI;AAAC,QAAM,IAAE,oBAAI;AAAI,WAAQ,IAAE,GAAE,KAAGA,IAAE,IAAI,GAAE,IAAID,GAAE,CAAC,GAAE,CAAC;AAAE,SAAO;AAAC,GAAE,IAAEE,EAAE,cAAcD,EAAC;AAAA,EAAC,YAAYD,IAAE;AAAC,QAAG,MAAMA,EAAC,GAAEA,GAAE,SAAOG,EAAE,MAAM,OAAM,MAAM,+CAA+C;AAAA,EAAC;AAAA,EAAC,GAAGH,IAAE,GAAEC,IAAE;AAAC,QAAI;AAAE,eAASA,KAAEA,KAAE,IAAE,WAAS,MAAI,IAAE;AAAG,UAAM,IAAE,IAAG,IAAE,CAAA;AAAG,QAAIG,KAAE;AAAE,eAAUF,MAAKF,GAAE,GAAEI,EAAC,IAAE,IAAE,EAAEF,IAAEE,EAAC,IAAEA,IAAE,EAAEA,EAAC,IAAEH,GAAEC,IAAEE,EAAC,GAAEA;AAAI,WAAM,EAAC,QAAO,GAAE,MAAK,EAAC;AAAA,EAAC;AAAA,EAAC,OAAOJ,IAAE,GAAEC,IAAE;AAAC,WAAO,KAAK,GAAGD,IAAE,GAAEC,EAAC,EAAE;AAAA,EAAM;AAAA,EAAC,OAAO,GAAE,CAACA,IAAE,GAAEI,EAAC,GAAE;AAAC,UAAM,IAAEC,EAAE,CAAC,GAAE,EAAC,QAAOC,KAAE,MAAK,EAAC,IAAE,KAAK,GAAGN,IAAE,GAAEI,EAAC;AAAE,QAAG,CAAC,MAAM,QAAQ,CAAC,EAAE,QAAO,KAAK,KAAG,GAAEE;AAAE,UAAMC,MAAE,KAAK,OAAL,KAAK,KAAK,KAAGC,MAAE,CAAA;AAAG,QAAI,GAAE,GAAE,IAAE,GAAE,IAAE,EAAE,SAAO,GAAE,IAAE,GAAE,IAAEF,IAAE,SAAO;AAAE,WAAK,KAAG,KAAG,KAAG,IAAG,KAAG,SAAO,EAAE,CAAC,EAAE;AAAA,aAAY,SAAO,EAAE,CAAC,EAAE;AAAA,aAAYC,IAAE,CAAC,MAAI,EAAE,CAAC,EAAEC,KAAE,CAAC,IAAEC,IAAE,EAAE,CAAC,GAAEH,IAAE,CAAC,CAAC,GAAE,KAAI;AAAA,aAAYC,IAAE,CAAC,MAAI,EAAE,CAAC,EAAEC,KAAE,CAAC,IAAEC,IAAE,EAAE,CAAC,GAAEH,IAAE,CAAC,CAAC,GAAE,KAAI;AAAA,aAAYC,IAAE,CAAC,MAAI,EAAE,CAAC,EAAEC,KAAE,CAAC,IAAEC,IAAE,EAAE,CAAC,GAAEH,IAAE,CAAC,CAAC,GAAEH,EAAE,GAAEK,IAAE,IAAE,CAAC,GAAE,EAAE,CAAC,CAAC,GAAE,KAAI;AAAA,aAAYD,IAAE,CAAC,MAAI,EAAE,CAAC,EAAEC,KAAE,CAAC,IAAEC,IAAE,EAAE,CAAC,GAAEH,IAAE,CAAC,CAAC,GAAEH,EAAE,GAAE,EAAE,CAAC,GAAE,EAAE,CAAC,CAAC,GAAE,KAAI;AAAA,aAAY,WAAS,MAAI,IAAE,EAAE,GAAE,GAAE,CAAC,GAAE,IAAE,EAAEI,KAAE,GAAE,CAAC,IAAG,EAAE,IAAIA,IAAE,CAAC,CAAC,EAAE,KAAG,EAAE,IAAIA,IAAE,CAAC,CAAC,GAAE;AAAC,YAAMR,KAAE,EAAE,IAAI,EAAE,CAAC,CAAC,GAAEC,KAAE,WAASD,KAAE,EAAEA,EAAC,IAAE;AAAK,UAAG,SAAOC,IAAE;AAAC,cAAMD,KAAEI,EAAE,GAAE,EAAE,CAAC,CAAC;AAAEM,YAAEV,IAAEO,IAAE,CAAC,CAAC,GAAEE,IAAE,CAAC,IAAET;AAAA,MAAC,MAAMS,KAAE,CAAC,IAAEC,IAAET,IAAEM,IAAE,CAAC,CAAC,GAAEH,EAAE,GAAE,EAAE,CAAC,GAAEH,EAAC,GAAE,EAAED,EAAC,IAAE;AAAK;AAAA,IAAG,MAAMW,GAAE,EAAE,CAAC,CAAC,GAAE;AAAA,QAASA,GAAE,EAAE,CAAC,CAAC,GAAE;AAAI,WAAK,KAAG,KAAG;AAAC,YAAMX,KAAEI,EAAE,GAAEK,IAAE,IAAE,CAAC,CAAC;AAAEC,UAAEV,IAAEO,IAAE,CAAC,CAAC,GAAEE,IAAE,GAAG,IAAET;AAAA,IAAC;AAAC,WAAK,KAAG,KAAG;AAAC,YAAMA,KAAE,EAAE,GAAG;AAAE,eAAOA,MAAGW,EAAEX,EAAC;AAAA,IAAC;AAAC,WAAO,KAAK,KAAG,GAAEY,EAAE,GAAEH,GAAC,GAAET;AAAAA,EAAC;AAAC,CAAC;","x_google_ignoreList":[0]}
|
package/dist/index264.js
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function textGlitchTemplate(props) {
|
|
3
|
-
if (props.variant === "decode") {
|
|
4
|
-
return html`
|
|
5
|
-
<span class="tg-inner" data-text="${props.text}">
|
|
6
|
-
${[...props.text].map(
|
|
7
|
-
(ch) => html`<span class="char" data-original="${ch}">${ch}</span>`
|
|
8
|
-
)}
|
|
9
|
-
</span>
|
|
10
|
-
`;
|
|
11
|
-
}
|
|
12
|
-
return html`
|
|
13
|
-
<span class="tg-inner" data-text="${props.text}">${props.text}</span>
|
|
14
|
-
`;
|
|
15
|
-
}
|
|
1
|
+
const toastManagerCss = "@layer tokens,reset,components;@layer reset{*,*:before,*:after{box-sizing:border-box}}@layer components{:host{position:fixed;top:var(--lib-space-lg);right:var(--lib-space-lg);z-index:var(--z-toast);display:flex;flex-direction:column;gap:var(--lib-space-sm);width:340px;pointer-events:none}::slotted(lib-alert),lib-alert{pointer-events:auto;animation:tm-in var(--duration-slow) var(--ease-out) forwards}@keyframes tm-in{0%{transform:translate(calc(100% + var(--lib-space-lg)));opacity:0}to{transform:translate(0);opacity:1}}lib-alert.is-leaving{animation:tm-out var(--duration-base) var(--ease-default) forwards;pointer-events:none}@keyframes tm-out{0%{transform:translate(0);opacity:1;max-height:200px;margin-bottom:0}to{transform:translate(calc(100% + var(--lib-space-lg)));opacity:0;max-height:0;margin-bottom:calc(-1 * var(--lib-space-sm))}}}";
|
|
16
2
|
export {
|
|
17
|
-
|
|
3
|
+
toastManagerCss as default
|
|
18
4
|
};
|
|
19
5
|
//# sourceMappingURL=index264.js.map
|
package/dist/index264.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index264.js","sources":[
|
|
1
|
+
{"version":3,"file":"index264.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index265.js
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
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%)}}}`;
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
const chevronSvg = html`
|
|
3
|
+
<svg
|
|
4
|
+
class="accordion-item__icon"
|
|
5
|
+
viewBox="0 0 16 16"
|
|
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
|
+
<polyline points="3,5 8,11 13,5"/>
|
|
14
|
+
</svg>
|
|
15
|
+
`;
|
|
16
|
+
function accordionItemTemplate(props) {
|
|
17
|
+
return html`
|
|
18
|
+
<div class="accordion-item__root">
|
|
19
|
+
|
|
20
|
+
<button
|
|
21
|
+
class="accordion-item__trigger"
|
|
22
|
+
type="button"
|
|
23
|
+
aria-expanded="${props.open ? "true" : "false"}"
|
|
24
|
+
@click=${props.onToggle}
|
|
25
|
+
>
|
|
26
|
+
<span class="accordion-item__label">${props.label}</span>
|
|
27
|
+
${chevronSvg}
|
|
28
|
+
</button>
|
|
29
|
+
|
|
30
|
+
<div class="accordion-item__body">
|
|
31
|
+
<div class="accordion-item__body-inner">
|
|
32
|
+
<div class="accordion-item__content">
|
|
33
|
+
<slot></slot>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
2
41
|
export {
|
|
3
|
-
|
|
42
|
+
accordionItemTemplate
|
|
4
43
|
};
|
|
5
44
|
//# sourceMappingURL=index265.js.map
|
package/dist/index265.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index265.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index265.js","sources":["../src/components/atoms/accordion-item/lib-accordion-item.component.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\n\nexport interface AccordionItemTemplateProps {\n label: string;\n open: boolean;\n onToggle: () => void;\n}\n\n/** Chevron SVG — rota 180deg via CSS cuando open */\nconst chevronSvg = html`\n <svg\n class=\"accordion-item__icon\"\n viewBox=\"0 0 16 16\"\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 <polyline points=\"3,5 8,11 13,5\"/>\n </svg>\n`;\n\n/**\n * Plantilla para lib-accordion-item.\n *\n * La animacion de apertura usa grid-template-rows: 0fr -> 1fr\n * para evitar calcular alturas dinamicas.\n *\n * El slot default recibe el contenido colapsable.\n */\nexport function accordionItemTemplate(props: AccordionItemTemplateProps): TemplateResult {\n return html`\n <div class=\"accordion-item__root\">\n\n <button\n class=\"accordion-item__trigger\"\n type=\"button\"\n aria-expanded=\"${props.open ? 'true' : 'false'}\"\n @click=${props.onToggle}\n >\n <span class=\"accordion-item__label\">${props.label}</span>\n ${chevronSvg}\n </button>\n\n <div class=\"accordion-item__body\">\n <div class=\"accordion-item__body-inner\">\n <div class=\"accordion-item__content\">\n <slot></slot>\n </div>\n </div>\n </div>\n\n </div>\n `;\n}"],"names":[],"mappings":";AASA,MAAM,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBZ,SAAS,sBAAsB,OAAmD;AACvF,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAMgB,MAAM,OAAO,SAAS,OAAO;AAAA,iBACrC,MAAM,QAAQ;AAAA;AAAA,8CAEe,MAAM,KAAK;AAAA,UAC/C,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAapB;"}
|
package/dist/index266.js
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
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
|
-
}
|
|
1
|
+
const accordionItemCss = "@layer tokens,reset,components;@layer reset{:host{display:block}*,*:before,*:after{box-sizing:border-box}}@layer components{:host{--accordion-item-trigger-px: var(--lib-space-md);--accordion-item-content-px: var(--lib-space-md);--accordion-item-trigger-hover-bg: var(--bg-surface);--accordion-item-body-bg: var(--bg-elevated);--accordion-item-trigger-bg: var(--bg-elevated);--accordion-item-accent-border: 2px solid transparent;--accordion-item-label-color: var(--text-primary);--accordion-item-icon-color: var(--text-muted);--accordion-item-content-border: var(--border-subtle);--accordion-item-content-color: var(--text-secondary)}.accordion-item__root{border-bottom:1px solid var(--border-subtle);border-left:var(--accordion-item-accent-border);transition:border-color var(--duration-slow) var(--ease-out),background var(--duration-base) var(--ease-default)}.accordion-item__trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--lib-space-md);padding:var(--lib-space-sm) var(--accordion-item-trigger-px);padding-block:var(--space-5, 1.25rem);background:var(--accordion-item-trigger-bg);border:none;cursor:pointer;text-align:left;transition:background var(--duration-base) var(--ease-default)}.accordion-item__trigger:hover{background:var(--accordion-item-trigger-hover-bg)}.accordion-item__label{font-family:var(--lib-font-body);font-size:var(--text-base);font-weight:var(--weight-regular);color:var(--accordion-item-label-color);line-height:var(--leading-snug)}.accordion-item__icon{flex-shrink:0;width:16px;height:16px;color:var(--accordion-item-icon-color);transition:transform var(--duration-slow) var(--ease-out)}:host([open]) .accordion-item__icon{transform:rotate(180deg)}.accordion-item__body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out);background:var(--accordion-item-body-bg)}:host([open]) .accordion-item__body{grid-template-rows:1fr}.accordion-item__body-inner{overflow:hidden}.accordion-item__content{padding-inline:var(--accordion-item-content-px);padding-bottom:var(--lib-space-md);font-size:var(--text-sm);color:var(--accordion-item-content-color);line-height:var(--leading-relaxed);border-top:1px solid var(--accordion-item-content-border)}.accordion-item__content ::slotted(*){margin:0;padding-top:var(--lib-space-md)}@media(prefers-reduced-motion:reduce){.accordion-item__body,.accordion-item__icon,.accordion-item__trigger{transition:none}}}";
|
|
16
2
|
export {
|
|
17
|
-
|
|
3
|
+
accordionItemCss as default
|
|
18
4
|
};
|
|
19
5
|
//# sourceMappingURL=index266.js.map
|
package/dist/index266.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index266.js","sources":[
|
|
1
|
+
{"version":3,"file":"index266.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index267.js
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { noChange as E } from "./index358.js";
|
|
2
|
+
import { directive as e, Directive as i$1, PartType as t } from "./index359.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2018 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const n = "important", i = " !" + n, o = e(class extends i$1 {
|
|
9
|
+
constructor(t$1) {
|
|
10
|
+
var _a;
|
|
11
|
+
if (super(t$1), t$1.type !== t.ATTRIBUTE || "style" !== t$1.name || ((_a = t$1.strings) == null ? void 0 : _a.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
12
|
+
}
|
|
13
|
+
render(t2) {
|
|
14
|
+
return Object.keys(t2).reduce((e2, r) => {
|
|
15
|
+
const s = t2[r];
|
|
16
|
+
return null == s ? e2 : e2 + `${r = r.includes("-") ? r : r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s};`;
|
|
17
|
+
}, "");
|
|
18
|
+
}
|
|
19
|
+
update(e2, [r]) {
|
|
20
|
+
const { style: s } = e2.element;
|
|
21
|
+
if (void 0 === this.ft) return this.ft = new Set(Object.keys(r)), this.render(r);
|
|
22
|
+
for (const t2 of this.ft) null == r[t2] && (this.ft.delete(t2), t2.includes("-") ? s.removeProperty(t2) : s[t2] = null);
|
|
23
|
+
for (const t2 in r) {
|
|
24
|
+
const e3 = r[t2];
|
|
25
|
+
if (null != e3) {
|
|
26
|
+
this.ft.add(t2);
|
|
27
|
+
const r2 = "string" == typeof e3 && e3.endsWith(i);
|
|
28
|
+
t2.includes("-") || r2 ? s.setProperty(t2, r2 ? e3.slice(0, -11) : e3, r2 ? n : "") : s[t2] = e3;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return E;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
9
34
|
export {
|
|
10
|
-
|
|
35
|
+
o as styleMap
|
|
11
36
|
};
|
|
12
37
|
//# sourceMappingURL=index267.js.map
|
package/dist/index267.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index267.js","sources":["
|
|
1
|
+
{"version":3,"file":"index267.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const n=\"important\",i=\" !\"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||t.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`},\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r=\"string\"==typeof e&&e.endsWith(i);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["r","t","s","e"],"mappings":";;AACA;AAAA;AAAA;AAAA;AAAA;AAIQ,MAAC,IAAE,aAAY,IAAE,OAAK,GAAE,IAAE,EAAE,cAAcA,IAAC;AAAA,EAAC,YAAYC,KAAE;;AAAC,QAAG,MAAMA,GAAC,GAAEA,IAAE,SAAOC,EAAE,aAAW,YAAUD,IAAE,UAAMA,SAAE,YAAFA,mBAAW,UAAO,EAAE,OAAM,MAAM,4GAA4G;AAAA,EAAC;AAAA,EAAC,OAAOA,IAAE;AAAC,WAAO,OAAO,KAAKA,EAAC,EAAE,OAAO,CAACE,IAAE,MAAI;AAAC,YAAM,IAAEF,GAAE,CAAC;AAAE,aAAO,QAAM,IAAEE,KAAEA,KAAE,GAAG,IAAE,EAAE,SAAS,GAAG,IAAE,IAAE,EAAE,QAAQ,qCAAoC,KAAK,EAAE,YAAW,CAAE,IAAI,CAAC;AAAA,IAAG,GAAE,EAAE;AAAA,EAAC;AAAA,EAAC,OAAOA,IAAE,CAAC,CAAC,GAAE;AAAC,UAAK,EAAC,OAAM,EAAC,IAAEA,GAAE;AAAQ,QAAG,WAAS,KAAK,GAAG,QAAO,KAAK,KAAG,IAAI,IAAI,OAAO,KAAK,CAAC,CAAC,GAAE,KAAK,OAAO,CAAC;AAAE,eAAUF,MAAK,KAAK,GAAG,SAAM,EAAEA,EAAC,MAAI,KAAK,GAAG,OAAOA,EAAC,GAAEA,GAAE,SAAS,GAAG,IAAE,EAAE,eAAeA,EAAC,IAAE,EAAEA,EAAC,IAAE;AAAM,eAAUA,MAAK,GAAE;AAAC,YAAME,KAAE,EAAEF,EAAC;AAAE,UAAG,QAAME,IAAE;AAAC,aAAK,GAAG,IAAIF,EAAC;AAAE,cAAMD,KAAE,YAAU,OAAOG,MAAGA,GAAE,SAAS,CAAC;AAAE,QAAAF,GAAE,SAAS,GAAG,KAAGD,KAAE,EAAE,YAAYC,IAAED,KAAEG,GAAE,MAAM,GAAE,GAAG,IAAEA,IAAEH,KAAE,IAAE,EAAE,IAAE,EAAEC,EAAC,IAAEE;AAAA,MAAC;AAAA,IAAC;AAAC,WAAOF;AAAAA,EAAC;AAAC,CAAC;","x_google_ignoreList":[0]}
|
package/dist/index268.js
CHANGED
|
@@ -1,58 +1,12 @@
|
|
|
1
|
-
import { html
|
|
2
|
-
const
|
|
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) {
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
const aspectRatioTemplate = () => {
|
|
22
3
|
return html`
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
}
|
|
4
|
+
<div class="aspect-ratio-container">
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</div>
|
|
7
|
+
`;
|
|
8
|
+
};
|
|
55
9
|
export {
|
|
56
|
-
|
|
10
|
+
aspectRatioTemplate
|
|
57
11
|
};
|
|
58
12
|
//# sourceMappingURL=index268.js.map
|
package/dist/index268.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index268.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index268.js","sources":["../src/components/atoms/aspect-ratio/lib-aspect-ratio.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\n\nexport const aspectRatioTemplate = (): TemplateResult => {\n return html`\n <div class=\"aspect-ratio-container\">\n <slot></slot>\n </div>\n `;\n};"],"names":[],"mappings":";AAEO,MAAM,sBAAsB,MAAsB;AACvD,SAAO;AAAA;AAAA;AAAA;AAAA;AAKT;"}
|
package/dist/index269.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const burgerCss = '@layer tokens,reset,components;@layer reset{:host{display:inline-flex;align-items:center}*,*:before,*:after{box-sizing:border-box}button{font:inherit;background:none;border:none;padding:0;margin:0;cursor:pointer}}@layer components{.burger{position:relative;display:inline-flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent;outline:none}.burger:focus-visible{box-shadow:0 0 0 2px var(--color-washi-50),0 0 0 4px var(--color-washi-600)}.burger-lines{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.burger-line{display:block;border-radius:var(--lib-radius-sm);background:currentcolor;transform-origin:center;will-change:transform,opacity,width}.burger-wrap{display:inline-flex;align-items:center;gap:var(--lib-space-sm);cursor:pointer}.burger-label{font-family:var(--lib-font-mono);font-size:var(--text-xs);letter-spacing:var(--tracking-widest);text-transform:uppercase;color:var(--text-muted);transition:color var(--duration-base),opacity var(--duration-base);-webkit-user-select:none;user-select:none}.burger-wrap:hover .burger-label{color:var(--text-primary)}:host([size="sm"]) .burger-lines{width:18px;height:12px}:host([size="sm"]) .burger-line{height:1px}:host([size="sm"]) .burger-line:nth-child(1){margin-bottom:5px}:host([size="sm"]) .burger-line:nth-child(2){margin-bottom:5px}:host([size="lg"]) .burger-lines{width:36px;height:24px}:host([size="lg"]) .burger-line{height:2px}:host([size="lg"]) .burger-line:nth-child(1){margin-bottom:10px}:host([size="lg"]) .burger-line:nth-child(2){margin-bottom:10px}:host([variant="ink"]) .burger{width:44px;height:44px;color:var(--text-primary);transition:color var(--duration-base)}:host([variant="ink"]) .burger:hover{color:var(--color-kaki-500)}:host([variant="ink"]) .burger:active{transform:scale(.94)}:host([variant="ink"]) .burger-lines{width:28px;height:18px}:host([variant="ink"]) .burger-line{height:1.5px;transition:transform var(--duration-slow) var(--ease-bounce),opacity var(--duration-base) var(--ease-out),width var(--duration-slow) var(--ease-bounce)}:host([variant="ink"]) .burger-line:nth-child(1){width:20px;margin-bottom:7px}:host([variant="ink"]) .burger-line:nth-child(2){width:28px;margin-bottom:7px}:host([variant="ink"]) .burger-line:nth-child(3){width:14px}:host([variant="ink"][open]) .burger-line:nth-child(1){transform:translateY(8.5px) rotate(45deg);width:26px;transition-delay:0ms,0ms,80ms}:host([variant="ink"][open]) .burger-line:nth-child(2){opacity:0;transform:scaleX(0);transition-delay:0ms}:host([variant="ink"][open]) .burger-line:nth-child(3){transform:translateY(-8.5px) rotate(-45deg);width:26px;transition-delay:0ms,0ms,80ms}:host([variant="kanji"]) .burger{width:48px;height:48px;color:var(--text-primary);position:relative;transition:color var(--duration-base)}:host([variant="kanji"]) .burger:hover{color:var(--color-kaki-500)}:host([variant="kanji"]) .burger:active{transform:scale(.93)}:host([variant="kanji"]) .burger:after{content:"三";position:absolute;bottom:0;left:50%;transform:translate(-50%);font-family:var(--lib-font-mono);font-size:8px;letter-spacing:0;color:var(--text-muted);transition:opacity var(--duration-base)}:host([variant="kanji"][open]) .burger:after{content:"×"}:host([variant="kanji"]) .burger-lines{width:26px;height:16px;margin-bottom:6px}:host([variant="kanji"]) .burger-line{height:1px;transition:transform var(--duration-slow) var(--ease-bounce),opacity var(--duration-base) var(--ease-out),width var(--duration-slow) var(--ease-bounce)}:host([variant="kanji"]) .burger-line:nth-child(1){width:26px;margin-bottom:7px}:host([variant="kanji"]) .burger-line:nth-child(2){width:18px;margin-bottom:7px}:host([variant="kanji"]) .burger-line:nth-child(3){width:26px}:host([variant="kanji"][open]) .burger-line:nth-child(1){transform:translateY(7.5px) rotate(45deg);width:24px}:host([variant="kanji"][open]) .burger-line:nth-child(2){opacity:0;width:0}:host([variant="kanji"][open]) .burger-line:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);width:24px}:host([variant="washi"]) .burger{width:48px;height:48px;color:var(--text-primary);transition:color var(--duration-base)}:host([variant="washi"]) .burger:hover{color:var(--color-kaki-500)}:host([variant="washi"]) .burger:active{transform:scale(.93)}:host([variant="washi"]) .burger-lines{width:28px;height:18px}:host([variant="washi"]) .burger-line{width:28px;height:1px;transition:transform var(--duration-slow) var(--ease-bounce),width var(--duration-slow) var(--ease-bounce),opacity var(--duration-base) var(--ease-out)}:host([variant="washi"]) .burger-line:nth-child(1){margin-bottom:8px}:host([variant="washi"]) .burger-line:nth-child(2){margin-bottom:8px}:host([variant="washi"][open]) .burger-line:nth-child(1){transform:translateY(9px) rotate(45deg);transition-delay:60ms,0ms,0ms}:host([variant="washi"][open]) .burger-line:nth-child(2){opacity:0;width:0}:host([variant="washi"][open]) .burger-line:nth-child(3){transform:translateY(-9px) rotate(-45deg);transition-delay:60ms,0ms,0ms}:host([variant="framed"]) .burger{width:44px;height:44px;color:var(--text-primary);border:1px solid var(--border-default);transition:border-color var(--duration-base),color var(--duration-base),transform var(--duration-slow) var(--ease-bounce)}:host([variant="framed"]) .burger:hover{border-color:var(--border-strong);color:var(--color-kaki-500)}:host([variant="framed"][open]) .burger{transform:rotate(45deg);border-color:var(--color-kaki-500);color:var(--color-kaki-500)}:host([variant="framed"]) .burger-lines{width:20px;height:13px;transition:transform var(--duration-slow) var(--ease-bounce)}:host([variant="framed"][open]) .burger-lines{transform:rotate(-45deg)}:host([variant="framed"]) .burger-line{width:20px;height:1.5px;transition:transform var(--duration-slow) var(--ease-bounce),opacity var(--duration-base) var(--ease-out),width var(--duration-base) var(--ease-out)}:host([variant="framed"]) .burger-line:nth-child(1){margin-bottom:5px}:host([variant="framed"]) .burger-line:nth-child(2){margin-bottom:5px}:host([variant="framed"][open]) .burger-line:nth-child(1){transform:translateY(6.75px) rotate(90deg);width:14px}:host([variant="framed"][open]) .burger-line:nth-child(2){opacity:0}:host([variant="framed"][open]) .burger-line:nth-child(3){transform:translateY(-6.75px);width:14px}:host([variant="kintsugi"]) .burger{width:48px;height:48px;color:#faf7f480;position:relative;overflow:hidden;transition:color var(--duration-base)}:host([variant="kintsugi"]) .burger:hover{color:#faf7f4cc}:host([variant="kintsugi"]) .burger:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,rgb(217,114,52,.18) 0%,transparent 70%);opacity:0;transition:opacity var(--duration-slow)}:host([variant="kintsugi"][open]) .burger:before{opacity:1}:host([variant="kintsugi"][open]) .burger{color:var(--color-kaki-400)}:host([variant="kintsugi"]) .burger-lines{width:24px;height:16px}:host([variant="kintsugi"]) .burger-line{height:1px;transition:transform var(--duration-slow) var(--ease-bounce),opacity var(--duration-base) var(--ease-out),width var(--duration-slow) var(--ease-bounce),background var(--duration-base)}:host([variant="kintsugi"]) .burger-line:nth-child(1){width:24px;margin-bottom:7px}:host([variant="kintsugi"]) .burger-line:nth-child(2){width:16px;margin-bottom:7px}:host([variant="kintsugi"]) .burger-line:nth-child(3){width:24px}:host([variant="kintsugi"][open]) .burger-line:nth-child(1){transform:translateY(7.5px) rotate(45deg);width:22px}:host([variant="kintsugi"][open]) .burger-line:nth-child(2){opacity:0;width:0}:host([variant="kintsugi"][open]) .burger-line:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);width:22px}:host([variant="glitch"]) .burger{width:52px;height:52px;color:var(--text-primary);position:relative;transition:color var(--duration-base)}:host([variant="glitch"]) .burger:hover{color:var(--color-kaki-500)}.burger-ghost{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;align-items:center;justify-content:center;z-index:0}.burger-ghost svg{position:absolute;opacity:0}:host([variant="glitch"]) .burger:hover .ghost-a{opacity:1;animation:burger-glitch-a .32s steps(1) infinite}:host([variant="glitch"]) .burger:hover .ghost-b{opacity:1;animation:burger-glitch-b .32s steps(1) infinite;animation-delay:50ms}@keyframes burger-glitch-a{0%{clip-path:inset(0 0 70% 0);transform:translate(-3px)}25%{clip-path:inset(40% 0 40% 0);transform:translate(2px)}50%{clip-path:inset(70% 0 0 0);transform:translate(-2px)}75%{clip-path:inset(20% 0 60% 0);transform:translate(3px)}to{clip-path:inset(55% 0 20% 0);transform:translate(-3px)}}@keyframes burger-glitch-b{0%{clip-path:inset(60% 0 0 0);transform:translate(3px)}25%{clip-path:inset(0 0 60% 0);transform:translate(-2px)}50%{clip-path:inset(30% 0 50% 0);transform:translate(3px)}75%{clip-path:inset(70% 0 10% 0);transform:translate(-3px)}to{clip-path:inset(10% 0 70% 0);transform:translate(2px)}}:host([variant="glitch"]) .burger-lines{width:28px;height:18px;position:relative;z-index:1}:host([variant="glitch"]) .burger-line{width:28px;height:1.5px;position:relative;transition:transform var(--duration-slow) var(--ease-bounce),opacity var(--duration-base) var(--ease-out)}:host([variant="glitch"]) .burger-line:nth-child(1){margin-bottom:7px}:host([variant="glitch"]) .burger-line:nth-child(2){margin-bottom:7px}:host([variant="glitch"][open]) .burger-line:nth-child(1){transform:translateY(8.5px) rotate(45deg)}:host([variant="glitch"][open]) .burger-line:nth-child(2){opacity:0}:host([variant="glitch"][open]) .burger-line:nth-child(3){transform:translateY(-8.5px) rotate(-45deg)}:host([variant="glitch"]) .burger.is-scrambling .burger-line{animation:burger-scramble 80ms steps(1) 4}@keyframes burger-scramble{0%{transform:translate(-2px,1px);opacity:.7}25%{transform:translate(3px,-1px);opacity:.5}50%{transform:translate(-1px,2px);opacity:.8}75%{transform:translate(2px,-2px);opacity:.6}to{transform:translate(0);opacity:1}}}';
|
|
1
|
+
const styles = "@layer components{:host{display:block;width:100%}.aspect-ratio-container{position:relative;width:100%;aspect-ratio:var(--lib-aspect-ratio, 1 / 1)}::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}}";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
styles as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index269.js.map
|
package/dist/index27.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { unsafeCSS, css, LitElement } from "lit";
|
|
2
|
-
import { property,
|
|
3
|
-
import { dividerTemplate } from "./index239.js";
|
|
4
|
-
import dividerCss from "./index240.js";
|
|
1
|
+
import { unsafeCSS, css, LitElement, html } from "lit";
|
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
|
5
3
|
import sharedTokens from "./index196.js";
|
|
4
|
+
import labelStyles from "./index311.js";
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
7
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
7
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -13,69 +12,39 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
12
|
if (kind && result) __defProp(target, key, result);
|
|
14
13
|
return result;
|
|
15
14
|
};
|
|
16
|
-
let
|
|
15
|
+
let LibLabel = class extends LitElement {
|
|
17
16
|
constructor() {
|
|
18
17
|
super(...arguments);
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.color = "default";
|
|
22
|
-
this.align = "center";
|
|
23
|
-
this.ornament = "none";
|
|
24
|
-
this.labelStyle = "mono";
|
|
25
|
-
this._hasSlotContent = false;
|
|
26
|
-
}
|
|
27
|
-
_handleSlotChange(e) {
|
|
28
|
-
const slot = e.target;
|
|
29
|
-
const nodes = slot.assignedNodes({ flatten: true });
|
|
30
|
-
this._hasSlotContent = nodes.some(
|
|
31
|
-
(n) => {
|
|
32
|
-
var _a;
|
|
33
|
-
return n.nodeType === Node.ELEMENT_NODE || n.nodeType === Node.TEXT_NODE && ((_a = n.textContent) == null ? void 0 : _a.trim()) !== "";
|
|
34
|
-
}
|
|
35
|
-
);
|
|
18
|
+
this.htmlFor = "";
|
|
19
|
+
this.required = false;
|
|
36
20
|
}
|
|
37
21
|
render() {
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
labelStyle: this.labelStyle,
|
|
45
|
-
hasSlotContent: this._hasSlotContent,
|
|
46
|
-
onSlotChange: this._handleSlotChange.bind(this)
|
|
47
|
-
});
|
|
22
|
+
return html`
|
|
23
|
+
<label for="${this.htmlFor}">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
${this.required ? html`<span class="required-indicator" aria-hidden="true">*</span>` : ""}
|
|
26
|
+
</label>
|
|
27
|
+
`;
|
|
48
28
|
}
|
|
49
29
|
};
|
|
50
|
-
|
|
51
|
-
css
|
|
52
|
-
|
|
30
|
+
LibLabel.styles = [
|
|
31
|
+
css`
|
|
32
|
+
${unsafeCSS(sharedTokens)}
|
|
33
|
+
`,
|
|
34
|
+
css`
|
|
35
|
+
${unsafeCSS(labelStyles)}
|
|
36
|
+
`
|
|
53
37
|
];
|
|
54
38
|
__decorateClass([
|
|
55
|
-
property({ type: String
|
|
56
|
-
],
|
|
57
|
-
__decorateClass([
|
|
58
|
-
property({ type: String, reflect: true, attribute: "style-variant" })
|
|
59
|
-
], LibDivider.prototype, "styleVariant", 2);
|
|
60
|
-
__decorateClass([
|
|
61
|
-
property({ type: String, reflect: true })
|
|
62
|
-
], LibDivider.prototype, "color", 2);
|
|
63
|
-
__decorateClass([
|
|
64
|
-
property({ type: String, reflect: true })
|
|
65
|
-
], LibDivider.prototype, "align", 2);
|
|
66
|
-
__decorateClass([
|
|
67
|
-
property({ type: String, reflect: true })
|
|
68
|
-
], LibDivider.prototype, "ornament", 2);
|
|
69
|
-
__decorateClass([
|
|
70
|
-
property({ type: String, reflect: true, attribute: "label-style" })
|
|
71
|
-
], LibDivider.prototype, "labelStyle", 2);
|
|
39
|
+
property({ type: String })
|
|
40
|
+
], LibLabel.prototype, "htmlFor", 2);
|
|
72
41
|
__decorateClass([
|
|
73
|
-
|
|
74
|
-
],
|
|
75
|
-
|
|
76
|
-
customElement("lib-
|
|
77
|
-
],
|
|
42
|
+
property({ type: Boolean })
|
|
43
|
+
], LibLabel.prototype, "required", 2);
|
|
44
|
+
LibLabel = __decorateClass([
|
|
45
|
+
customElement("lib-label")
|
|
46
|
+
], LibLabel);
|
|
78
47
|
export {
|
|
79
|
-
|
|
48
|
+
LibLabel
|
|
80
49
|
};
|
|
81
50
|
//# sourceMappingURL=index27.js.map
|
package/dist/index27.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index27.js","sources":["../src/components/atoms/label/lib-label.component.ts"],"sourcesContent":["import { LitElement, html, css, unsafeCSS, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport sharedTokens from '../../../styles/shared/tokens.css?inline';\nimport labelStyles from './lib-label.css?inline';\n\n@customElement('lib-label')\nexport class LibLabel extends LitElement {\n static override styles = [\n css`\n ${unsafeCSS(sharedTokens)}\n `,\n css`\n ${unsafeCSS(labelStyles)}\n `,\n ];\n\n /** ID del input al que va asociado (para accesibilidad) */\n @property({ type: String }) htmlFor: string = '';\n\n /** Muestra un indicador visual de campo obligatorio */\n @property({ type: Boolean }) required: boolean = false;\n\n protected override render(): TemplateResult {\n return html`\n <label for=\"${this.htmlFor}\">\n <slot></slot>\n ${this.required ? html`<span class=\"required-indicator\" aria-hidden=\"true\">*</span>` : ''}\n </label>\n `;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAMO,IAAM,WAAN,cAAuB,WAAW;AAAA,EAAlC,cAAA;AAAA,UAAA,GAAA,SAAA;AAWuB,SAAA,UAAkB;AAGjB,SAAA,WAAoB;AAAA,EAAA;AAAA,EAE9B,SAAyB;AAC1C,WAAO;AAAA,oBACS,KAAK,OAAO;AAAA;AAAA,UAEtB,KAAK,WAAW,qEAAqE,EAAE;AAAA;AAAA;AAAA,EAG/F;AACF;AAxBa,SACK,SAAS;AAAA,EACvB;AAAA,QACI,UAAU,YAAY,CAAC;AAAA;AAAA,EAE3B;AAAA,QACI,UAAU,WAAW,CAAC;AAAA;AAE5B;AAG4B,gBAAA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAXf,SAWiB,WAAA,WAAA,CAAA;AAGC,gBAAA;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAA,CAAS;AAAA,GAdhB,SAckB,WAAA,YAAA,CAAA;AAdlB,WAAN,gBAAA;AAAA,EADN,cAAc,WAAW;AAAA,GACb,QAAA;"}
|