@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/index332.js
CHANGED
|
@@ -1,62 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
});
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
function selectOptionTemplate(props) {
|
|
3
|
+
return html`
|
|
4
|
+
<div
|
|
5
|
+
class="option"
|
|
6
|
+
role="option"
|
|
7
|
+
aria-selected="${props.selected}"
|
|
8
|
+
aria-disabled="${props.disabled}"
|
|
9
|
+
@click="${props.handleClick}"
|
|
10
|
+
>
|
|
11
|
+
<span class="option-label">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</span>
|
|
14
|
+
<span class="option-check" aria-hidden="true"></span>
|
|
15
|
+
</div>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
59
18
|
export {
|
|
60
|
-
|
|
19
|
+
selectOptionTemplate
|
|
61
20
|
};
|
|
62
21
|
//# sourceMappingURL=index332.js.map
|
package/dist/index332.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index332.js","sources":["
|
|
1
|
+
{"version":3,"file":"index332.js","sources":["../src/components/atoms/select-option/lib-select-option.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\nimport type { SelectOptionTemplateProps } from './lib-select-option.types';\n\nexport function selectOptionTemplate(props: SelectOptionTemplateProps): TemplateResult {\n return html`\n <div\n class=\"option\"\n role=\"option\"\n aria-selected=\"${props.selected}\"\n aria-disabled=\"${props.disabled}\"\n @click=\"${props.handleClick}\"\n >\n <span class=\"option-label\">\n <slot></slot>\n </span>\n <span class=\"option-check\" aria-hidden=\"true\"></span>\n </div>\n `;\n}"],"names":[],"mappings":";AAGO,SAAS,qBAAqB,OAAkD;AACrF,SAAO;AAAA;AAAA;AAAA;AAAA,uBAIc,MAAM,QAAQ;AAAA,uBACd,MAAM,QAAQ;AAAA,gBACrB,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQjC;"}
|
package/dist/index333.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const optionCss = `@layer tokens,reset,components;@layer reset{:host{display:block}:host:is([search-hidden]){display:none}*,*:before,*:after{box-sizing:border-box}}@layer components{.option{display:flex;align-items:center;gap:var(--lib-space-sm);padding:var(--lib-space-sm) var(--lib-space-md);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}:host(:not([disabled],[selected]):hover) .option{background:var(--bg-surface)}:host([selected]) .option{background:var(--color-washi-100)}:host([disabled]) .option{opacity:.38;cursor:not-allowed;pointer-events:none}.option-label{flex:1;min-width:0;font-family:var(--lib-font-body);font-size:var(--text-sm);color:var(--text-secondary);line-height:var(--leading-snug);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}:host(:hover) .option-label{color:var(--text-primary)}:host([selected]) .option-label{color:var(--text-primary)}:host([disabled]) .option-label{color:var(--text-muted)}.option-check{flex-shrink:0;width:14px;height:14px;opacity:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%23221C16' d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;transition:opacity var(--duration-fast) var(--ease-default)}:host([selected]) .option-check{opacity:1}}`;
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
optionCss as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index333.js.map
|
package/dist/index334.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
|
|
2
|
+
import { styleMap as o } from "./index267.js";
|
|
3
|
+
function skeletonTemplate(props) {
|
|
4
|
+
const inlineStyles = {};
|
|
5
|
+
if (props.width) inlineStyles["width"] = props.width;
|
|
6
|
+
if (props.height) inlineStyles["height"] = props.height;
|
|
3
7
|
return html`
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
<div
|
|
9
|
+
class="sk"
|
|
10
|
+
style=${o(inlineStyles)}
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
role="presentation"
|
|
13
|
+
></div>
|
|
7
14
|
`;
|
|
8
15
|
}
|
|
9
16
|
export {
|
|
10
|
-
|
|
17
|
+
skeletonTemplate
|
|
11
18
|
};
|
|
12
19
|
//# sourceMappingURL=index334.js.map
|
package/dist/index334.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index334.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index334.js","sources":["../src/components/atoms/skeleton/lib-skeleton.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\n\nexport type LibSkeletonShape = \n | 'line' // 13px — texto corrido\n | 'title' // 22px — encabezado secundario\n | 'h1' // 36px — encabezado principal\n | 'avatar' // border-radius full — imagen circular\n | 'icon' // border-radius sm — icono cuadrado\n | 'btn' // 36px — botón / input\n | 'badge' // 20px, radius sm — etiqueta\n | 'pill' // 22px, radius full — chip\n | 'img' // 160px — imagen rectangular\n | 'rect'; // sin altura propia — bloque libre\n\nexport type LibSkeletonAnimation = 'shimmer' | 'wave' | 'pulse';\nexport type LibSkeletonSurface = 'light' | 'dark' | 'kaki';\n\nexport interface SkeletonTemplateProps {\n shape: LibSkeletonShape;\n animation: LibSkeletonAnimation;\n surface: LibSkeletonSurface;\n width: string;\n height: string;\n}\n\n/**\n * Renderiza un único bloque skeleton.\n * La forma, animación y superficie se controlan vía clases CSS\n * que mapean a :host([shape]) / :host([animation]) / :host([surface]).\n * Width y height opcionales se aplican como inline style.\n */\nexport function skeletonTemplate(props: SkeletonTemplateProps): TemplateResult {\n const inlineStyles: Record<string, string> = {};\n if (props.width) inlineStyles['width'] = props.width;\n if (props.height) inlineStyles['height'] = props.height;\n\n return html`\n <div\n class=\"sk\"\n style=${styleMap(inlineStyles)}\n aria-hidden=\"true\"\n role=\"presentation\"\n ></div>\n `;\n}"],"names":["styleMap"],"mappings":";;AAgCO,SAAS,iBAAiB,OAA8C;AAC7E,QAAM,eAAuC,CAAA;AAC7C,MAAI,MAAM,MAAQ,cAAa,OAAO,IAAK,MAAM;AACjD,MAAI,MAAM,OAAQ,cAAa,QAAQ,IAAI,MAAM;AAEjD,SAAO;AAAA;AAAA;AAAA,cAGKA,EAAS,YAAY,CAAC;AAAA;AAAA;AAAA;AAAA;AAKpC;"}
|
package/dist/index335.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const skeletonCss = '@layer tokens,reset,components;@layer reset{:host{display:block}*,*:before,*:after{box-sizing:border-box}}@layer components{.sk{display:block;width:100%;border-radius:var(--radius-sm);background:linear-gradient(90deg,var(--color-washi-200) 25%,var(--color-washi-100) 50%,var(--color-washi-200) 75%);background-size:300% 100%;animation:sk-shimmer 1.8s ease-in-out infinite}@keyframes sk-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes sk-pulse{0%,to{opacity:1}50%{opacity:.4}}:host([animation="wave"]) .sk{animation-duration:2.4s;animation-timing-function:cubic-bezier(.4,0,.6,1)}:host([animation="pulse"]) .sk{background:var(--color-washi-200);animation:sk-pulse 1.8s ease-in-out infinite}:host([surface="dark"]) .sk{background:linear-gradient(90deg,var(--color-washi-800) 25%,var(--color-washi-700) 50%,var(--color-washi-800) 75%);background-size:300% 100%;animation:sk-shimmer 1.8s ease-in-out infinite}:host([surface="dark"][animation="wave"]) .sk{animation-duration:2.4s;animation-timing-function:cubic-bezier(.4,0,.6,1)}:host([surface="dark"][animation="pulse"]) .sk{background:var(--color-washi-700);animation:sk-pulse 1.8s ease-in-out infinite}:host([surface="kaki"]) .sk{background:linear-gradient(90deg,var(--color-kaki-200) 25%,var(--color-kaki-100) 50%,var(--color-kaki-200) 75%);background-size:300% 100%;animation:sk-shimmer 1.8s ease-in-out infinite}:host([surface="kaki"][animation="wave"]) .sk{animation-duration:2.4s;animation-timing-function:cubic-bezier(.4,0,.6,1)}:host([surface="kaki"][animation="pulse"]) .sk{background:var(--color-kaki-200);animation:sk-pulse 1.8s ease-in-out infinite}:host([shape="line"]) .sk{height:13px}:host([shape="title"]) .sk{height:22px}:host([shape="h1"]) .sk{height:36px}:host([shape="avatar"]) .sk{border-radius:var(--radius-full)}:host([shape="icon"]) .sk{border-radius:var(--radius-sm)}:host([shape="btn"]) .sk{height:36px}:host([shape="badge"]) .sk{height:20px;border-radius:var(--radius-sm)}:host([shape="pill"]) .sk{height:22px;border-radius:var(--radius-full)}:host([shape="img"]) .sk{height:160px}:host([shape="rect"]) .sk{border-radius:var(--radius-sm)}@media(prefers-reduced-motion:reduce){.sk{animation:none;background:var(--color-washi-200);background-size:unset}:host([surface="dark"]) .sk{background:var(--color-washi-700)}:host([surface="kaki"]) .sk{background:var(--color-kaki-200)}}}';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
skeletonCss as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index335.js.map
|
package/dist/index336.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function parallaxTextStackTemplate(ctx) {
|
|
3
|
-
return html`
|
|
4
|
-
<div class="pts-container" part="container">
|
|
5
|
-
${ctx.lines.map((line, i) => html`
|
|
6
|
-
<span
|
|
7
|
-
class="pts-layer ${i % 2 === 0 ? "pts-layer--outline" : "pts-layer--italic"}"
|
|
8
|
-
part="layer layer-${i % 2 === 0 ? "outline" : "italic"}"
|
|
9
|
-
aria-hidden="${i > 0}"
|
|
10
|
-
>${line}</span>
|
|
11
|
-
`)}
|
|
12
|
-
</div>
|
|
13
|
-
`;
|
|
14
|
-
}
|
|
1
|
+
const spinnerCss = '@layer tokens,reset,components;@layer reset{*,*:before,*:after{box-sizing:border-box}}@layer components{:host{display:inline-flex;align-items:center;justify-content:center}@keyframes sp-rotate{to{transform:rotate(360deg)}}@keyframes sp-rotate-reverse{to{transform:rotate(-360deg)}}:host([variant="enso"]) svg,:host(:not([variant])) svg{display:block;animation:sp-rotate 2.2s cubic-bezier(.5,.1,.5,.9) infinite}:host([variant="enso"][size="sm"]) svg,:host(:not([variant])[size="sm"]) svg{width:24px;height:24px}:host([variant="enso"][size="md"]) svg,:host(:not([variant])[size="md"]) svg,:host([variant="enso"]:not([size])) svg,:host(:not([variant],[size])) svg{width:48px;height:48px}:host([variant="enso"][size="lg"]) svg,:host(:not([variant])[size="lg"]) svg{width:72px;height:72px}.sp-sumi-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}.sp-sumi{border-radius:50%;filter:blur(.6px);animation:sp-rotate 1.6s linear infinite;background:conic-gradient(from 0deg,#2a1f1a00,#2a1f1a14 8.33%,#2a1f1a40 25%,#2a1f1aa6,#2a1f1aeb 75%,#2a1f1a 86.11%,#2a1f1a33 95.83%,#2a1f1a00);mask:radial-gradient(circle at center,transparent 56%,black 57%)}:host([variant="sumi"][tone="celadon"]) .sp-sumi{background:conic-gradient(from 0deg,#487d7300,#487d7314 8.33%,#487d734d 27.78%,#487d73b3,#487d73 83.33%,#487d7326 97.22%,#487d7300);mask:radial-gradient(circle at center,transparent 56%,black 57%)}:host([variant="sumi"][dark]) .sp-sumi{background:conic-gradient(from 0deg,#fef7f200,#fef7f214 8.33%,#fef7f240 25%,#fef7f2a6,#fef7f2eb 75%,#fef7f2 86.11%,#fef7f233 95.83%,#fef7f200);mask:radial-gradient(circle at center,transparent 56%,black 57%)}:host([variant="sumi"][dark][tone="kaki"]) .sp-sumi{background:conic-gradient(from 0deg,#c47c3b00,#c47c3b1a 8.33%,#c47c3b4d 27.78%,#c47c3bbf,#c47c3b 83.33%,#c47c3b26 97.22%,#c47c3b00);filter:blur(.5px) drop-shadow(0 0 4px oklch(65% .12 60deg / .4));mask:radial-gradient(circle at center,transparent 56%,black 57%)}:host([variant="sumi"][size="sm"]) .sp-sumi{width:24px;height:24px;mask:radial-gradient(circle at center,transparent 52%,black 53%)}:host([variant="sumi"]:not([size])) .sp-sumi,:host([variant="sumi"][size="md"]) .sp-sumi{width:48px;height:48px}:host([variant="sumi"][size="lg"]) .sp-sumi{width:72px;height:72px;mask:radial-gradient(circle at center,transparent 58%,black 59%)}.sp-kintsugi{border-radius:50%;background:conic-gradient(from 0deg,#6d4d3e00,#7f594426 11.11%,#a36b4480,#c47c3b 61.11%,#d28425,#ad704099 88.89%,#6d4d3e00);mask:radial-gradient(circle at center,transparent 56%,black 57%);filter:blur(.4px) drop-shadow(0 0 4px oklch(65% .12 60deg / .5));animation:sp-rotate 2s cubic-bezier(.4,0,.6,1) infinite}:host([variant="kintsugi"][dark]) .sp-kintsugi{background:conic-gradient(from 0deg,#6d4d3e00,#97634633 8.33%,#c57b3db3 41.67%,#d98529d9 54.17%,#e1891cec,#e78c08 66.67%,#ea8e00,#ec9100 73.61%,#f19600 80.56%,#ea9100d9,#e18907b3,#ce802b8c,#ae6f4266 94.44%,#6d4d3e00);background:conic-gradient(from 0deg,#6d4d3e00,#97634633 8.33%,#c57b3db3 41.67%,#d98529d9 54.17%,#e1891cec,#e78c08 66.67%,color(xyz 0.438 0.369 0.044),color(xyz 0.452 0.381 0.039) 73.61%,color(xyz 0.481 0.404 0.028) 80.56%,color(xyz 0.447 0.377 0.036 / 0.85),#e18907b3,#ce802b8c,#ae6f4266 94.44%,#6d4d3e00);filter:blur(.3px) drop-shadow(0 0 6px oklch(70% .14 62deg / .6))}:host([variant="kintsugi"][size="sm"]) .sp-kintsugi{width:24px;height:24px;mask:radial-gradient(circle at center,transparent 52%,black 53%)}:host([variant="kintsugi"]:not([size])) .sp-kintsugi,:host([variant="kintsugi"][size="md"]) .sp-kintsugi{width:48px;height:48px}:host([variant="kintsugi"][size="lg"]) .sp-kintsugi{width:72px;height:72px;mask:radial-gradient(circle at center,transparent 58%,black 59%)}.sp-shizuku{position:relative;border-radius:50%;animation:sp-rotate 1.8s linear infinite}.sp-shizuku span{position:absolute;border-radius:50%;background:#2a1f1a;top:50%;left:50%;transform-origin:0 0}:host([variant="shizuku"][tone="kaki"]) .sp-shizuku span,:host([variant="shizuku"][dark]) .sp-shizuku span{background:#c47c3b}.sp-shizuku.sp-shizuku--md{width:48px;height:48px}.sp-shizuku.sp-shizuku--md span{margin:-3px}.sp-shizuku.sp-shizuku--md span:nth-child(1){width:7px;height:7px;transform:rotate(0) translate(18px) translateY(-50%);opacity:1}.sp-shizuku.sp-shizuku--md span:nth-child(2){width:5.5px;height:5.5px;transform:rotate(60deg) translate(18px) translateY(-50%);opacity:.72}.sp-shizuku.sp-shizuku--md span:nth-child(3){width:4px;height:4px;transform:rotate(115deg) translate(18px) translateY(-50%);opacity:.48}.sp-shizuku.sp-shizuku--md span:nth-child(4){width:3px;height:3px;transform:rotate(160deg) translate(18px) translateY(-50%);opacity:.28}.sp-shizuku.sp-shizuku--md span:nth-child(5){width:2px;height:2px;transform:rotate(200deg) translate(18px) translateY(-50%);opacity:.13}.sp-shizuku.sp-shizuku--md span:nth-child(6){width:1.5px;height:1.5px;transform:rotate(235deg) translate(18px) translateY(-50%);opacity:.06}.sp-shizuku.sp-shizuku--sm{width:24px;height:24px}.sp-shizuku.sp-shizuku--sm span{margin:-1.5px}.sp-shizuku.sp-shizuku--sm span:nth-child(1){width:4px;height:4px;transform:rotate(0) translate(9px) translateY(-50%);opacity:1}.sp-shizuku.sp-shizuku--sm span:nth-child(2){width:3px;height:3px;transform:rotate(60deg) translate(9px) translateY(-50%);opacity:.72}.sp-shizuku.sp-shizuku--sm span:nth-child(3){width:2px;height:2px;transform:rotate(115deg) translate(9px) translateY(-50%);opacity:.45}.sp-shizuku.sp-shizuku--sm span:nth-child(4){width:1.5px;height:1.5px;transform:rotate(160deg) translate(9px) translateY(-50%);opacity:.25}.sp-shizuku.sp-shizuku--sm span:nth-child(5){width:1px;height:1px;transform:rotate(200deg) translate(9px) translateY(-50%);opacity:.1}.sp-shizuku.sp-shizuku--sm span:nth-child(6){width:1px;height:1px;transform:rotate(235deg) translate(9px) translateY(-50%);opacity:.05}.sp-shizuku.sp-shizuku--lg{width:72px;height:72px}.sp-shizuku.sp-shizuku--lg span{margin:-4.5px}.sp-shizuku.sp-shizuku--lg span:nth-child(1){width:10px;height:10px;transform:rotate(0) translate(27px) translateY(-50%);opacity:1}.sp-shizuku.sp-shizuku--lg span:nth-child(2){width:8px;height:8px;transform:rotate(55deg) translate(27px) translateY(-50%);opacity:.72}.sp-shizuku.sp-shizuku--lg span:nth-child(3){width:6px;height:6px;transform:rotate(105deg) translate(27px) translateY(-50%);opacity:.5}.sp-shizuku.sp-shizuku--lg span:nth-child(4){width:4.5px;height:4.5px;transform:rotate(148deg) translate(27px) translateY(-50%);opacity:.3}.sp-shizuku.sp-shizuku--lg span:nth-child(5){width:3px;height:3px;transform:rotate(185deg) translate(27px) translateY(-50%);opacity:.15}.sp-shizuku.sp-shizuku--lg span:nth-child(6){width:2px;height:2px;transform:rotate(218deg) translate(27px) translateY(-50%);opacity:.06}@media(prefers-reduced-motion:reduce){:host([variant="enso"]) svg,:host(:not([variant])) svg,.sp-sumi,.sp-kintsugi,.sp-shizuku{animation:none}}}';
|
|
15
2
|
export {
|
|
16
|
-
|
|
3
|
+
spinnerCss as default
|
|
17
4
|
};
|
|
18
5
|
//# sourceMappingURL=index336.js.map
|
package/dist/index336.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index336.js","sources":[
|
|
1
|
+
{"version":3,"file":"index336.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index337.js
CHANGED
|
@@ -1,5 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
import { html, svg } from "lit";
|
|
2
|
+
function ensoStroke(tone, dark) {
|
|
3
|
+
if (dark) {
|
|
4
|
+
if (tone === "kaki") {
|
|
5
|
+
return { blur: "oklch(70% 0.14 60)", main: "oklch(68% 0.13 60)", bopacity: 0.3 };
|
|
6
|
+
}
|
|
7
|
+
return { blur: "oklch(88% 0.01 60)", main: "oklch(88% 0.01 60)", bopacity: 0.2 };
|
|
8
|
+
}
|
|
9
|
+
if (tone === "kaki") return { blur: "oklch(55% 0.08 45)", main: "oklch(50% 0.07 45)", bopacity: 0.25 };
|
|
10
|
+
if (tone === "celadon") return { blur: "oklch(50% 0.06 180)", main: "oklch(48% 0.06 180)", bopacity: 0.25 };
|
|
11
|
+
return { blur: "oklch(25% 0.02 45)", main: "oklch(25% 0.02 45)", bopacity: 0.25 };
|
|
12
|
+
}
|
|
13
|
+
function ensoWidths(size) {
|
|
14
|
+
if (size === "sm") return { blur: 2.5, main: 2, feStd: 1.5 };
|
|
15
|
+
if (size === "lg") return { blur: 3.5, main: 3, feStd: 2 };
|
|
16
|
+
return { blur: 3, main: 2.5, feStd: 1.5 };
|
|
17
|
+
}
|
|
18
|
+
function ensoTemplate(props) {
|
|
19
|
+
const stroke = ensoStroke(props.tone, props.dark);
|
|
20
|
+
const w = ensoWidths(props.size);
|
|
21
|
+
const fid = "sp-enso-blur";
|
|
22
|
+
return html`
|
|
23
|
+
${svg`
|
|
24
|
+
<svg viewBox="0 0 48 48" fill="none" aria-hidden="true" focusable="false">
|
|
25
|
+
<defs>
|
|
26
|
+
<filter id="${fid}">
|
|
27
|
+
<feGaussianBlur stdDeviation="${w.feStd}" result="blur"/>
|
|
28
|
+
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
|
|
29
|
+
</filter>
|
|
30
|
+
</defs>
|
|
31
|
+
<!-- blur halo layer -->
|
|
32
|
+
<circle
|
|
33
|
+
cx="24" cy="24" r="18"
|
|
34
|
+
stroke="${stroke.blur}"
|
|
35
|
+
stroke-width="${w.blur}"
|
|
36
|
+
stroke-linecap="round"
|
|
37
|
+
stroke-dasharray="95 18"
|
|
38
|
+
fill="none"
|
|
39
|
+
opacity="${stroke.bopacity}"
|
|
40
|
+
filter="url(#${fid})"
|
|
41
|
+
/>
|
|
42
|
+
<!-- crisp layer -->
|
|
43
|
+
<circle
|
|
44
|
+
cx="24" cy="24" r="18"
|
|
45
|
+
stroke="${stroke.main}"
|
|
46
|
+
stroke-width="${w.main}"
|
|
47
|
+
stroke-linecap="round"
|
|
48
|
+
stroke-dasharray="95 18"
|
|
49
|
+
fill="none"
|
|
50
|
+
/>
|
|
51
|
+
</svg>
|
|
52
|
+
`}
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
function sumiTemplate() {
|
|
56
|
+
return html`
|
|
57
|
+
<div class="sp-sumi-wrap">
|
|
58
|
+
<div class="sp-sumi"></div>
|
|
59
|
+
</div>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
function kintsugiTemplate() {
|
|
63
|
+
return html`<div class="sp-kintsugi"></div>`;
|
|
64
|
+
}
|
|
65
|
+
function shizukuTemplate(size) {
|
|
66
|
+
const cls = `sp-shizuku sp-shizuku--${size}`;
|
|
67
|
+
return html`
|
|
68
|
+
<div class="${cls}">
|
|
69
|
+
<span></span><span></span><span></span>
|
|
70
|
+
<span></span><span></span><span></span>
|
|
71
|
+
</div>
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
function spinnerTemplate(props) {
|
|
75
|
+
const inner = props.variant === "sumi" ? sumiTemplate() : props.variant === "kintsugi" ? kintsugiTemplate() : props.variant === "shizuku" ? shizukuTemplate(props.size) : ensoTemplate(props);
|
|
76
|
+
return html`
|
|
77
|
+
<div
|
|
78
|
+
role="status"
|
|
79
|
+
aria-label="${props.label}"
|
|
80
|
+
aria-live="polite"
|
|
81
|
+
>
|
|
82
|
+
${inner}
|
|
83
|
+
<!-- Visually hidden label for screen readers -->
|
|
84
|
+
<span style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;">${props.label}</span>
|
|
85
|
+
</div>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
2
88
|
export {
|
|
3
|
-
|
|
89
|
+
spinnerTemplate
|
|
4
90
|
};
|
|
5
91
|
//# sourceMappingURL=index337.js.map
|
package/dist/index337.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index337.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index337.js","sources":["../src/components/atoms/spinner/lib-spinner.html.ts"],"sourcesContent":["import { html, svg, TemplateResult } from 'lit';\nimport type { SpinnerVariant, SpinnerSize, SpinnerTone } from './lib-spinner.component';\n\nexport interface SpinnerTemplateProps {\n variant: SpinnerVariant;\n size: SpinnerSize;\n tone: SpinnerTone;\n dark: boolean;\n label: string;\n}\n\n/* ── Stroke configs per tone+dark ──────────────────────────── */\ntype StrokeConfig = {\n blur: string; /* blur circle stroke color */\n main: string; /* main circle stroke color */\n bopacity: number; /* blur circle opacity */\n};\n\nfunction ensoStroke(tone: SpinnerTone, dark: boolean): StrokeConfig {\n if (dark) {\n if (tone === 'kaki') {\n return { blur: 'oklch(70% 0.14 60)', main: 'oklch(68% 0.13 60)', bopacity: 0.30 };\n }\n /* ink / celadon → paper on dark */\n return { blur: 'oklch(88% 0.01 60)', main: 'oklch(88% 0.01 60)', bopacity: 0.20 };\n }\n if (tone === 'kaki') return { blur: 'oklch(55% 0.08 45)', main: 'oklch(50% 0.07 45)', bopacity: 0.25 };\n if (tone === 'celadon') return { blur: 'oklch(50% 0.06 180)', main: 'oklch(48% 0.06 180)', bopacity: 0.25 };\n /* default: ink */\n return { blur: 'oklch(25% 0.02 45)', main: 'oklch(25% 0.02 45)', bopacity: 0.25 };\n}\n\ntype StrokeWidth = { blur: number; main: number; feStd: number; };\nfunction ensoWidths(size: SpinnerSize): StrokeWidth {\n if (size === 'sm') return { blur: 2.5, main: 2, feStd: 1.5 };\n if (size === 'lg') return { blur: 3.5, main: 3, feStd: 2.0 };\n return { blur: 3, main: 2.5, feStd: 1.5 }; /* md */\n}\n\n/* ── Enso ───────────────────────────────────────────────────── */\nfunction ensoTemplate(props: SpinnerTemplateProps): TemplateResult {\n const stroke = ensoStroke(props.tone, props.dark);\n const w = ensoWidths(props.size);\n /* Each shadow DOM is isolated → filter IDs are collision-free */\n const fid = 'sp-enso-blur';\n\n return html`\n ${svg`\n <svg viewBox=\"0 0 48 48\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <defs>\n <filter id=\"${fid}\">\n <feGaussianBlur stdDeviation=\"${w.feStd}\" result=\"blur\"/>\n <feMerge><feMergeNode in=\"blur\"/><feMergeNode in=\"SourceGraphic\"/></feMerge>\n </filter>\n </defs>\n <!-- blur halo layer -->\n <circle\n cx=\"24\" cy=\"24\" r=\"18\"\n stroke=\"${stroke.blur}\"\n stroke-width=\"${w.blur}\"\n stroke-linecap=\"round\"\n stroke-dasharray=\"95 18\"\n fill=\"none\"\n opacity=\"${stroke.bopacity}\"\n filter=\"url(#${fid})\"\n />\n <!-- crisp layer -->\n <circle\n cx=\"24\" cy=\"24\" r=\"18\"\n stroke=\"${stroke.main}\"\n stroke-width=\"${w.main}\"\n stroke-linecap=\"round\"\n stroke-dasharray=\"95 18\"\n fill=\"none\"\n />\n </svg>\n `}\n `;\n}\n\n/* ── Sumi ───────────────────────────────────────────────────── */\nfunction sumiTemplate(): TemplateResult {\n return html`\n <div class=\"sp-sumi-wrap\">\n <div class=\"sp-sumi\"></div>\n </div>\n `;\n}\n\n/* ── Kintsugi ───────────────────────────────────────────────── */\nfunction kintsugiTemplate(): TemplateResult {\n return html`<div class=\"sp-kintsugi\"></div>`;\n}\n\n/* ── Shizuku ────────────────────────────────────────────────── */\nfunction shizukuTemplate(size: SpinnerSize): TemplateResult {\n const cls = `sp-shizuku sp-shizuku--${size}`;\n return html`\n <div class=\"${cls}\">\n <span></span><span></span><span></span>\n <span></span><span></span><span></span>\n </div>\n `;\n}\n\n/* ── Root ───────────────────────────────────────────────────── */\nexport function spinnerTemplate(props: SpinnerTemplateProps): TemplateResult {\n const inner: TemplateResult =\n props.variant === 'sumi' ? sumiTemplate() :\n props.variant === 'kintsugi' ? kintsugiTemplate() :\n props.variant === 'shizuku' ? shizukuTemplate(props.size) :\n ensoTemplate(props);\n\n return html`\n <div\n role=\"status\"\n aria-label=\"${props.label}\"\n aria-live=\"polite\"\n >\n ${inner}\n <!-- Visually hidden label for screen readers -->\n <span style=\"position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;\">${props.label}</span>\n </div>\n `;\n}"],"names":[],"mappings":";AAkBA,SAAS,WAAW,MAAmB,MAA6B;AAClE,MAAI,MAAM;AACR,QAAI,SAAS,QAAQ;AACnB,aAAO,EAAE,MAAM,sBAAsB,MAAM,sBAAsB,UAAU,IAAA;AAAA,IAC7E;AAEA,WAAO,EAAE,MAAM,sBAAsB,MAAM,sBAAsB,UAAU,IAAA;AAAA,EAC7E;AACA,MAAI,SAAS,OAAW,QAAO,EAAE,MAAM,sBAAsB,MAAM,sBAAsB,UAAU,KAAA;AACnG,MAAI,SAAS,UAAW,QAAO,EAAE,MAAM,uBAAuB,MAAM,uBAAuB,UAAU,KAAA;AAErG,SAAO,EAAE,MAAM,sBAAsB,MAAM,sBAAsB,UAAU,KAAA;AAC7E;AAGA,SAAS,WAAW,MAAgC;AAClD,MAAI,SAAS,KAAM,QAAO,EAAE,MAAM,KAAK,MAAM,GAAK,OAAO,IAAA;AACzD,MAAI,SAAS,KAAM,QAAO,EAAE,MAAM,KAAK,MAAM,GAAK,OAAO,EAAA;AACzD,SAAoB,EAAE,MAAM,GAAK,MAAM,KAAK,OAAO,IAAA;AACrD;AAGA,SAAS,aAAa,OAA6C;AACjE,QAAM,SAAS,WAAW,MAAM,MAAM,MAAM,IAAI;AAChD,QAAM,IAAS,WAAW,MAAM,IAAI;AAEpC,QAAM,MAAS;AAEf,SAAO;AAAA,MACH;AAAA;AAAA;AAAA,wBAGkB,GAAG;AAAA,4CACiB,EAAE,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAO/B,OAAO,IAAI;AAAA,0BACL,EAAE,IAAI;AAAA;AAAA;AAAA;AAAA,qBAIX,OAAO,QAAQ;AAAA,yBACX,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,oBAKR,OAAO,IAAI;AAAA,0BACL,EAAE,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAM3B;AAAA;AAEL;AAGA,SAAS,eAA+B;AACtC,SAAO;AAAA;AAAA;AAAA;AAAA;AAKT;AAGA,SAAS,mBAAmC;AAC1C,SAAO;AACT;AAGA,SAAS,gBAAgB,MAAmC;AAC1D,QAAM,MAAM,0BAA0B,IAAI;AAC1C,SAAO;AAAA,kBACS,GAAG;AAAA;AAAA;AAAA;AAAA;AAKrB;AAGO,SAAS,gBAAgB,OAA6C;AAC3E,QAAM,QACJ,MAAM,YAAY,SAAa,iBAC/B,MAAM,YAAY,aAAa,qBAC/B,MAAM,YAAY,YAAa,gBAAgB,MAAM,IAAI,IACzD,aAAa,KAAK;AAEpB,SAAO;AAAA;AAAA;AAAA,oBAGW,MAAM,KAAK;AAAA;AAAA;AAAA,QAGvB,KAAK;AAAA;AAAA,oHAEuG,MAAM,KAAK;AAAA;AAAA;AAG/H;"}
|
package/dist/index338.js
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import { nothing, html } from "lit";
|
|
2
|
+
const LABEL_TEXT = {
|
|
3
|
+
online: "Online",
|
|
4
|
+
away: "Away",
|
|
5
|
+
busy: "Busy",
|
|
6
|
+
offline: "Offline"
|
|
7
|
+
};
|
|
8
|
+
function statusDotTemplate(props) {
|
|
9
|
+
return html`
|
|
10
|
+
<span class="sd-root">
|
|
11
|
+
<span
|
|
12
|
+
class="sd-wrap"
|
|
13
|
+
role="img"
|
|
14
|
+
aria-label=${LABEL_TEXT[props.status]}
|
|
15
|
+
>
|
|
16
|
+
<span class="sd ${props.bordered ? "sd--bordered" : ""}"></span>
|
|
17
|
+
</span>
|
|
18
|
+
${props.label ? html`
|
|
19
|
+
<span class="sd-label">${LABEL_TEXT[props.status]}</span>
|
|
20
|
+
` : nothing}
|
|
21
|
+
</span>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
2
24
|
export {
|
|
3
|
-
|
|
25
|
+
statusDotTemplate
|
|
4
26
|
};
|
|
5
27
|
//# sourceMappingURL=index338.js.map
|
package/dist/index338.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index338.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index338.js","sources":["../src/components/atoms/status-dot/lib-status-dot.html.ts"],"sourcesContent":["import { html, nothing, TemplateResult } from 'lit';\n\nexport type LibStatusDotStatus = 'online' | 'away' | 'busy' | 'offline';\nexport type LibStatusDotSize = 'sm' | 'md' | 'lg';\n\nconst LABEL_TEXT: Record<LibStatusDotStatus, string> = {\n online: 'Online',\n away: 'Away',\n busy: 'Busy',\n offline: 'Offline',\n};\n\nexport interface StatusDotTemplateProps {\n status: LibStatusDotStatus;\n size: LibStatusDotSize;\n bordered: boolean;\n label: boolean;\n}\n\n/**\n * Renderiza el wrapper con el punto central y, opcionalmente, el label inline.\n *\n * Estructura:\n * .sd-wrap — posiciona los anillos (::before / ::after) para online·mizu\n * .sd — el punto coloreado y animado\n * .sd-label — (opcional) texto inline con color del estado\n */\nexport function statusDotTemplate(props: StatusDotTemplateProps): TemplateResult {\n return html`\n <span class=\"sd-root\">\n <span\n class=\"sd-wrap\"\n role=\"img\"\n aria-label=${LABEL_TEXT[props.status]}\n >\n <span class=\"sd ${props.bordered ? 'sd--bordered' : ''}\"></span>\n </span>\n ${props.label ? html`\n <span class=\"sd-label\">${LABEL_TEXT[props.status]}</span>\n ` : nothing}\n </span>\n `;\n}"],"names":[],"mappings":";AAKA,MAAM,aAAiD;AAAA,EACrD,QAAS;AAAA,EACT,MAAS;AAAA,EACT,MAAS;AAAA,EACT,SAAS;AACX;AAiBO,SAAS,kBAAkB,OAA+C;AAC/E,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA,qBAKY,WAAW,MAAM,MAAM,CAAC;AAAA;AAAA,0BAEnB,MAAM,WAAW,iBAAiB,EAAE;AAAA;AAAA,QAEtD,MAAM,QAAQ;AAAA,iCACW,WAAW,MAAM,MAAM,CAAC;AAAA,UAC/C,OAAO;AAAA;AAAA;AAGjB;"}
|
package/dist/index339.js
CHANGED
|
@@ -1,95 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { styleMap as o } from "./index241.js";
|
|
3
|
-
function timelineItemTemplate(props) {
|
|
4
|
-
const {
|
|
5
|
-
nodeType,
|
|
6
|
-
nodeColor,
|
|
7
|
-
icon,
|
|
8
|
-
avatar,
|
|
9
|
-
status,
|
|
10
|
-
lineVariant,
|
|
11
|
-
lineProgress,
|
|
12
|
-
hideLine,
|
|
13
|
-
timestamp,
|
|
14
|
-
title,
|
|
15
|
-
body,
|
|
16
|
-
card,
|
|
17
|
-
collapsed,
|
|
18
|
-
collapsible,
|
|
19
|
-
onToggleCollapse
|
|
20
|
-
} = props;
|
|
21
|
-
const itemCls = [
|
|
22
|
-
"tl-item",
|
|
23
|
-
status !== "default" ? `is-${status}` : "",
|
|
24
|
-
collapsed ? "is-collapsed" : ""
|
|
25
|
-
].filter(Boolean).join(" ");
|
|
26
|
-
const nodeTypeCls = `tl-node-${nodeType}`;
|
|
27
|
-
const nodeColorCls = nodeColor !== "default" ? `nd-${nodeColor}` : "";
|
|
28
|
-
const nodeCls = `tl-node ${nodeTypeCls} ${nodeColorCls}`.trim();
|
|
29
|
-
const nodeInner = nodeType === "icon" ? html`<lib-icon name="${icon}" size="xs"></lib-icon>` : nodeType === "avatar" ? html`${avatar}` : nothing;
|
|
30
|
-
const lineCls = [
|
|
31
|
-
"tl-line",
|
|
32
|
-
lineVariant === "dashed" ? "dashed" : "",
|
|
33
|
-
lineVariant === "progress" ? "progress" : ""
|
|
34
|
-
].filter(Boolean).join(" ");
|
|
35
|
-
const lineStyles = lineVariant === "progress" ? o({ "--tl-progress": `${lineProgress}%` }) : nothing;
|
|
36
|
-
const contentInner = card ? html`
|
|
37
|
-
<div class="tl-card">
|
|
38
|
-
${title ? html`<p class="tl-title">${title}</p>` : nothing}
|
|
39
|
-
<div class="tl-card-body">
|
|
40
|
-
${body ? html`<div class="tl-body">${body}</div>` : nothing}
|
|
41
|
-
<!-- slot por defecto para contenido libre dentro de la card -->
|
|
42
|
-
<slot></slot>
|
|
43
|
-
<!-- slot meta: badges, avatares, etc. -->
|
|
44
|
-
<div class="tl-meta">
|
|
45
|
-
<slot name="meta"></slot>
|
|
46
|
-
</div>
|
|
47
|
-
<!-- slot media: imágenes adjuntas -->
|
|
48
|
-
<slot name="media"></slot>
|
|
49
|
-
</div>
|
|
50
|
-
</div>` : html`
|
|
51
|
-
${title ? html`<p class="tl-title">${title}</p>` : nothing}
|
|
52
|
-
${body ? html`<div class="tl-body">${body}</div>` : html`<div class="tl-body"><slot></slot></div>`}
|
|
53
|
-
<div class="tl-meta">
|
|
54
|
-
<slot name="meta"></slot>
|
|
55
|
-
</div>`;
|
|
56
|
-
return html`
|
|
57
|
-
<div class="${itemCls}" role="listitem">
|
|
58
|
-
|
|
59
|
-
<!-- ── Spine: nodo + línea ── -->
|
|
60
|
-
<div class="tl-spine">
|
|
61
|
-
<div class="${nodeCls}">${nodeInner}</div>
|
|
62
|
-
${hideLine ? nothing : html`<div class="${lineCls}" style="${lineStyles}"></div>`}
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<!-- ── Content ── -->
|
|
66
|
-
<div class="tl-content">
|
|
67
|
-
${timestamp ? html`
|
|
68
|
-
<div class="tl-timestamp">
|
|
69
|
-
<span class="tl-timestamp-dot"></span>
|
|
70
|
-
${timestamp}
|
|
71
|
-
</div>` : nothing}
|
|
72
|
-
|
|
73
|
-
${contentInner}
|
|
74
|
-
|
|
75
|
-
${collapsible ? html`
|
|
76
|
-
<button
|
|
77
|
-
class="tl-expand-btn"
|
|
78
|
-
aria-expanded="${!collapsed}"
|
|
79
|
-
@click="${onToggleCollapse}"
|
|
80
|
-
>
|
|
81
|
-
<lib-icon
|
|
82
|
-
name="${collapsed ? "caret-down" : "caret-up"}"
|
|
83
|
-
size="xs"
|
|
84
|
-
></lib-icon>
|
|
85
|
-
${collapsed ? "Mostrar más" : "Mostrar menos"}
|
|
86
|
-
</button>` : nothing}
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
</div>
|
|
90
|
-
`;
|
|
91
|
-
}
|
|
1
|
+
const statusDotCss = '@layer tokens,reset,components;@layer reset{:host{display:inline-flex;align-items:center;vertical-align:middle;flex-shrink:0}*,*:before,*:after{box-sizing:border-box}}@layer components{.sd-root{display:inline-flex;align-items:center;gap:var(--lib-space-sm)}.sd-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.sd-wrap:before,.sd-wrap:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--radius-full);opacity:0;pointer-events:none}.sd{width:10px;height:10px;border-radius:var(--radius-full);background:var(--color-washi-400);position:relative;z-index:1;flex-shrink:0}:host([size="sm"]) .sd{width:6px;height:6px}:host([size="md"]) .sd{width:10px;height:10px}:host([size="lg"]) .sd{width:14px;height:14px}.sd--bordered{box-shadow:0 0 0 2px var(--bg-elevated)}.sd-label{font-family:var(--lib-font-mono);font-size:var(--text-xs);letter-spacing:var(--tracking-wider);text-transform:uppercase;color:var(--text-secondary);line-height:1}@keyframes mizu-ring-a{0%{transform:scale(1);opacity:.5}to{transform:scale(2.8);opacity:0}}@keyframes mizu-ring-b{0%{transform:scale(1);opacity:.35}to{transform:scale(2.2);opacity:0}}@keyframes iki{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.18);opacity:.75}}@keyframes hayai{0%,to{opacity:1}40%{opacity:.3}60%{opacity:.3}}:host([status="online"]) .sd{background:var(--color-celadon-500)}:host([status="online"]) .sd-wrap:before{background:var(--color-celadon-400);animation:mizu-ring-a 2.6s cubic-bezier(0,.55,.45,1) infinite}:host([status="online"]) .sd-wrap:after{background:var(--color-celadon-400);animation:mizu-ring-b 2.6s cubic-bezier(0,.55,.45,1) .9s infinite}:host([status="online"]) .sd-label{color:var(--color-celadon-600)}:host([status="away"]) .sd{background:var(--color-kaki-500);animation:iki 3s ease-in-out infinite}:host([status="away"]) .sd-label{color:var(--color-kaki-500)}:host([status="busy"]) .sd{background:var(--color-error);animation:hayai 1.1s ease-in-out infinite}:host([status="busy"]) .sd-label{color:var(--color-error)}:host([status="offline"]) .sd{background:var(--color-washi-400)}:host([status="offline"]) .sd-label{color:var(--text-muted)}@media(prefers-reduced-motion:reduce){.sd-wrap:before,.sd-wrap:after{animation:none;opacity:0}.sd{animation:none}}}';
|
|
92
2
|
export {
|
|
93
|
-
|
|
3
|
+
statusDotCss as default
|
|
94
4
|
};
|
|
95
5
|
//# sourceMappingURL=index339.js.map
|
package/dist/index339.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index339.js","sources":[
|
|
1
|
+
{"version":3,"file":"index339.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index34.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { unsafeCSS, css, LitElement } from "lit";
|
|
2
|
-
import { property,
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
|
3
|
+
import { generateUniqueId } from "./index210.js";
|
|
4
|
+
import { radioTemplate } from "./index324.js";
|
|
5
|
+
import radioCss from "./index325.js";
|
|
5
6
|
import sharedTokens from "./index196.js";
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -13,54 +14,77 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
14
|
if (kind && result) __defProp(target, key, result);
|
|
14
15
|
return result;
|
|
15
16
|
};
|
|
16
|
-
let
|
|
17
|
+
let LibRadio = class extends LitElement {
|
|
17
18
|
constructor() {
|
|
18
|
-
super(
|
|
19
|
+
super();
|
|
20
|
+
this.checked = false;
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.name = "";
|
|
23
|
+
this.value = "";
|
|
24
|
+
this.label = "";
|
|
25
|
+
this.sublabel = "";
|
|
19
26
|
this.size = "md";
|
|
20
27
|
this.variant = "default";
|
|
21
|
-
this.
|
|
22
|
-
|
|
28
|
+
this._radioId = generateUniqueId("lib-radio-");
|
|
29
|
+
}
|
|
30
|
+
_handleChange(e) {
|
|
31
|
+
const input = e.target;
|
|
32
|
+
this.checked = input.checked;
|
|
33
|
+
this.dispatchEvent(
|
|
34
|
+
new CustomEvent("change", {
|
|
35
|
+
detail: { checked: this.checked, value: this.value },
|
|
36
|
+
bubbles: true,
|
|
37
|
+
composed: true
|
|
38
|
+
})
|
|
39
|
+
);
|
|
23
40
|
}
|
|
24
41
|
render() {
|
|
25
|
-
return
|
|
42
|
+
return radioTemplate({
|
|
43
|
+
radioId: this._radioId,
|
|
44
|
+
name: this.name,
|
|
45
|
+
value: this.value,
|
|
46
|
+
checked: this.checked,
|
|
47
|
+
disabled: this.disabled,
|
|
48
|
+
label: this.label,
|
|
49
|
+
sublabel: this.sublabel,
|
|
26
50
|
size: this.size,
|
|
27
51
|
variant: this.variant,
|
|
28
|
-
|
|
29
|
-
onDown: this._onPointerDown.bind(this),
|
|
30
|
-
onUp: this._onPointerUp.bind(this),
|
|
31
|
-
onLeave: this._onPointerLeave.bind(this)
|
|
52
|
+
onChange: this._handleChange.bind(this)
|
|
32
53
|
});
|
|
33
54
|
}
|
|
34
|
-
_onPointerDown() {
|
|
35
|
-
this._pointerPressed = true;
|
|
36
|
-
}
|
|
37
|
-
_onPointerUp() {
|
|
38
|
-
this._pointerPressed = false;
|
|
39
|
-
}
|
|
40
|
-
_onPointerLeave() {
|
|
41
|
-
this._pointerPressed = false;
|
|
42
|
-
}
|
|
43
55
|
};
|
|
44
|
-
|
|
56
|
+
LibRadio.styles = [
|
|
45
57
|
css`${unsafeCSS(sharedTokens)}`,
|
|
46
|
-
css`${unsafeCSS(
|
|
58
|
+
css`${unsafeCSS(radioCss)}`
|
|
47
59
|
];
|
|
48
60
|
__decorateClass([
|
|
49
|
-
property({ type:
|
|
50
|
-
],
|
|
51
|
-
__decorateClass([
|
|
52
|
-
property({ type: String, reflect: true })
|
|
53
|
-
], LibKbd.prototype, "variant", 2);
|
|
61
|
+
property({ type: Boolean, reflect: true })
|
|
62
|
+
], LibRadio.prototype, "checked", 2);
|
|
54
63
|
__decorateClass([
|
|
55
64
|
property({ type: Boolean, reflect: true })
|
|
56
|
-
],
|
|
65
|
+
], LibRadio.prototype, "disabled", 2);
|
|
57
66
|
__decorateClass([
|
|
58
|
-
|
|
59
|
-
],
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
],
|
|
67
|
+
property({ type: String })
|
|
68
|
+
], LibRadio.prototype, "name", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
property({ type: String })
|
|
71
|
+
], LibRadio.prototype, "value", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
property({ type: String })
|
|
74
|
+
], LibRadio.prototype, "label", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
property({ type: String })
|
|
77
|
+
], LibRadio.prototype, "sublabel", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
property({ type: String, reflect: true })
|
|
80
|
+
], LibRadio.prototype, "size", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
property({ type: String, reflect: true })
|
|
83
|
+
], LibRadio.prototype, "variant", 2);
|
|
84
|
+
LibRadio = __decorateClass([
|
|
85
|
+
customElement("lib-radio")
|
|
86
|
+
], LibRadio);
|
|
63
87
|
export {
|
|
64
|
-
|
|
88
|
+
LibRadio
|
|
65
89
|
};
|
|
66
90
|
//# sourceMappingURL=index34.js.map
|