@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/index349.js
CHANGED
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
ringMix: "normal",
|
|
36
|
-
lerpFactor: 0.1
|
|
37
|
-
}
|
|
38
|
-
};
|
|
1
|
+
import { nothing, html } from "lit";
|
|
2
|
+
function wrapperClass(props) {
|
|
3
|
+
const parts = ["tip-wrap"];
|
|
4
|
+
if (props.size !== "md") parts.push(`tip-${props.size}`);
|
|
5
|
+
if (props.variant !== "dark") parts.push(`tip-${props.variant}`);
|
|
6
|
+
if (props.instant) parts.push("tip-instant");
|
|
7
|
+
if (props.open) parts.push("is-open");
|
|
8
|
+
return parts.join(" ");
|
|
9
|
+
}
|
|
10
|
+
function tooltipTemplate(props) {
|
|
11
|
+
return html`
|
|
12
|
+
<div
|
|
13
|
+
class="${wrapperClass(props)}"
|
|
14
|
+
data-pos="${props.position}"
|
|
15
|
+
part="wrapper"
|
|
16
|
+
>
|
|
17
|
+
<!-- Trigger — el consumidor pone aquí su elemento -->
|
|
18
|
+
<slot aria-describedby="${props.tipId}"></slot>
|
|
19
|
+
|
|
20
|
+
<!-- Burbuja flotante -->
|
|
21
|
+
<span
|
|
22
|
+
id="${props.tipId}"
|
|
23
|
+
class="tip-bubble"
|
|
24
|
+
role="tooltip"
|
|
25
|
+
part="bubble"
|
|
26
|
+
>
|
|
27
|
+
<!-- Texto simple via prop -->
|
|
28
|
+
${props.content ? props.content : nothing}
|
|
29
|
+
<!-- Contenido rico via slot nombrado -->
|
|
30
|
+
<slot name="content"></slot>
|
|
31
|
+
</span>
|
|
32
|
+
</div>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
39
35
|
export {
|
|
40
|
-
|
|
36
|
+
tooltipTemplate
|
|
41
37
|
};
|
|
42
38
|
//# sourceMappingURL=index349.js.map
|
package/dist/index349.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index349.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index349.js","sources":["../src/components/atoms/tooltip/lib-tooltip.html.ts"],"sourcesContent":["import { html, nothing, TemplateResult } from 'lit';\nimport type { TooltipPosition, TooltipVariant, TooltipSize } from './lib-tooltip.component';\n\nexport interface TooltipTemplateProps {\n position: TooltipPosition;\n variant: TooltipVariant;\n size: TooltipSize;\n instant: boolean;\n open: boolean;\n content: string;\n tipId: string;\n}\n\n/** Calcula las clases del wrapper a partir de las props. */\nfunction wrapperClass(props: TooltipTemplateProps): string {\n const parts = ['tip-wrap'];\n if (props.size !== 'md') parts.push(`tip-${props.size}`);\n if (props.variant !== 'dark') parts.push(`tip-${props.variant}`);\n if (props.instant) parts.push('tip-instant');\n if (props.open) parts.push('is-open');\n return parts.join(' ');\n}\n\nexport function tooltipTemplate(props: TooltipTemplateProps): TemplateResult {\n return html`\n <div\n class=\"${wrapperClass(props)}\"\n data-pos=\"${props.position}\"\n part=\"wrapper\"\n >\n <!-- Trigger — el consumidor pone aquí su elemento -->\n <slot aria-describedby=\"${props.tipId}\"></slot>\n\n <!-- Burbuja flotante -->\n <span\n id=\"${props.tipId}\"\n class=\"tip-bubble\"\n role=\"tooltip\"\n part=\"bubble\"\n >\n <!-- Texto simple via prop -->\n ${props.content ? props.content : nothing}\n <!-- Contenido rico via slot nombrado -->\n <slot name=\"content\"></slot>\n </span>\n </div>\n `;\n}"],"names":[],"mappings":";AAcA,SAAS,aAAa,OAAqC;AACzD,QAAM,QAAQ,CAAC,UAAU;AACzB,MAAI,MAAM,SAAY,KAAQ,OAAM,KAAK,OAAO,MAAM,IAAI,EAAE;AAC5D,MAAI,MAAM,YAAY,OAAQ,OAAM,KAAK,OAAO,MAAM,OAAO,EAAE;AAC/D,MAAI,MAAM,QAAoB,OAAM,KAAK,aAAa;AACtD,MAAI,MAAM,KAAoB,OAAM,KAAK,SAAS;AAClD,SAAO,MAAM,KAAK,GAAG;AACvB;AAEO,SAAS,gBAAgB,OAA6C;AAC3E,SAAO;AAAA;AAAA,eAEM,aAAa,KAAK,CAAC;AAAA,kBAChB,MAAM,QAAQ;AAAA;AAAA;AAAA;AAAA,gCAIA,MAAM,KAAK;AAAA;AAAA;AAAA;AAAA,cAI7B,MAAM,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAMf,MAAM,UAAU,MAAM,UAAU,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAMjD;"}
|
package/dist/index35.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { unsafeCSS, css, LitElement } from "lit";
|
|
2
|
-
import { property, customElement } from "lit/decorators.js";
|
|
2
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
3
|
+
import { ratingTemplate } from "./index326.js";
|
|
4
|
+
import ratingCss from "./index327.js";
|
|
3
5
|
import sharedTokens from "./index196.js";
|
|
4
|
-
import spinnerCss from "./index254.js";
|
|
5
|
-
import { spinnerTemplate } from "./index255.js";
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
8
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -13,48 +13,121 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
13
|
if (kind && result) __defProp(target, key, result);
|
|
14
14
|
return result;
|
|
15
15
|
};
|
|
16
|
-
let
|
|
16
|
+
let LibRating = class extends LitElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
this.
|
|
19
|
+
this.value = 0;
|
|
20
|
+
this.max = 5;
|
|
20
21
|
this.size = "md";
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.color = "gold";
|
|
23
|
+
this.icon = "star";
|
|
24
|
+
this.readonly = false;
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.showCount = false;
|
|
27
|
+
this.count = null;
|
|
28
|
+
this._hoverValue = 0;
|
|
29
|
+
this._popTimer = null;
|
|
24
30
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
/* ════════════════════════════════════════
|
|
32
|
+
Manejadores de eventos (llamados desde html.ts)
|
|
33
|
+
════════════════════════════════════════ */
|
|
34
|
+
_onEnter(pos) {
|
|
35
|
+
if (this.readonly || this.disabled) return;
|
|
36
|
+
this._hoverValue = pos;
|
|
37
|
+
}
|
|
38
|
+
_onLeave() {
|
|
39
|
+
this._hoverValue = 0;
|
|
40
|
+
}
|
|
41
|
+
_onClick(pos) {
|
|
42
|
+
if (this.readonly || this.disabled) return;
|
|
43
|
+
const prev = this.value;
|
|
44
|
+
this.value = this.value === pos ? 0 : pos;
|
|
45
|
+
this._triggerPop(pos);
|
|
46
|
+
this.dispatchEvent(new CustomEvent("ui-lib-rating-change", {
|
|
47
|
+
detail: { value: this.value, prev },
|
|
48
|
+
bubbles: true,
|
|
49
|
+
composed: true
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
_onKeyItem(e, pos) {
|
|
53
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
this._onClick(pos);
|
|
56
|
+
}
|
|
57
|
+
if (e.key === "ArrowRight" || e.key === "ArrowUp") {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
this._focusItem(pos + 1);
|
|
60
|
+
}
|
|
61
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
|
|
62
|
+
e.preventDefault();
|
|
63
|
+
this._focusItem(pos - 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/* ── Focus al item por posición ── */
|
|
67
|
+
_focusItem(pos) {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
const clamped = Math.min(Math.max(1, pos), this.max);
|
|
70
|
+
const items = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll(".rt-item:not(.rt-item-half)");
|
|
71
|
+
(_b = items == null ? void 0 : items[clamped - 1]) == null ? void 0 : _b.focus();
|
|
72
|
+
}
|
|
73
|
+
/* ── Añade clase is-pop y la quita tras la animación ── */
|
|
74
|
+
_triggerPop(pos) {
|
|
75
|
+
var _a;
|
|
76
|
+
if (this._popTimer) clearTimeout(this._popTimer);
|
|
77
|
+
const items = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll(".rt-item");
|
|
78
|
+
items == null ? void 0 : items.forEach((el, idx) => {
|
|
79
|
+
if (idx + 1 <= pos) el.classList.add("is-pop");
|
|
32
80
|
});
|
|
81
|
+
this._popTimer = setTimeout(() => {
|
|
82
|
+
items == null ? void 0 : items.forEach((el) => el.classList.remove("is-pop"));
|
|
83
|
+
}, 350);
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
super.disconnectedCallback();
|
|
87
|
+
if (this._popTimer) clearTimeout(this._popTimer);
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return ratingTemplate(this);
|
|
33
91
|
}
|
|
34
92
|
};
|
|
35
|
-
|
|
93
|
+
LibRating.styles = [
|
|
36
94
|
css`${unsafeCSS(sharedTokens)}`,
|
|
37
|
-
css`${unsafeCSS(
|
|
95
|
+
css`${unsafeCSS(ratingCss)}`
|
|
38
96
|
];
|
|
39
97
|
__decorateClass([
|
|
40
|
-
property({ type:
|
|
41
|
-
],
|
|
98
|
+
property({ type: Number, reflect: true })
|
|
99
|
+
], LibRating.prototype, "value", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
property({ type: Number })
|
|
102
|
+
], LibRating.prototype, "max", 2);
|
|
42
103
|
__decorateClass([
|
|
43
104
|
property({ type: String, reflect: true })
|
|
44
|
-
],
|
|
105
|
+
], LibRating.prototype, "size", 2);
|
|
45
106
|
__decorateClass([
|
|
46
107
|
property({ type: String, reflect: true })
|
|
47
|
-
],
|
|
108
|
+
], LibRating.prototype, "color", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
property({ type: String })
|
|
111
|
+
], LibRating.prototype, "icon", 2);
|
|
48
112
|
__decorateClass([
|
|
49
113
|
property({ type: Boolean, reflect: true })
|
|
50
|
-
],
|
|
114
|
+
], LibRating.prototype, "readonly", 2);
|
|
51
115
|
__decorateClass([
|
|
52
|
-
property({ type:
|
|
53
|
-
],
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
],
|
|
116
|
+
property({ type: Boolean, reflect: true })
|
|
117
|
+
], LibRating.prototype, "disabled", 2);
|
|
118
|
+
__decorateClass([
|
|
119
|
+
property({ type: Boolean, attribute: "show-count" })
|
|
120
|
+
], LibRating.prototype, "showCount", 2);
|
|
121
|
+
__decorateClass([
|
|
122
|
+
property({ type: Number })
|
|
123
|
+
], LibRating.prototype, "count", 2);
|
|
124
|
+
__decorateClass([
|
|
125
|
+
state()
|
|
126
|
+
], LibRating.prototype, "_hoverValue", 2);
|
|
127
|
+
LibRating = __decorateClass([
|
|
128
|
+
customElement("lib-rating")
|
|
129
|
+
], LibRating);
|
|
57
130
|
export {
|
|
58
|
-
|
|
131
|
+
LibRating
|
|
59
132
|
};
|
|
60
133
|
//# sourceMappingURL=index35.js.map
|
package/dist/index35.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index35.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index35.js","sources":["../src/components/atoms/rating/lib-rating.component.ts"],"sourcesContent":["import { LitElement, css, unsafeCSS, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { ratingTemplate } from './lib-rating.html';\nimport ratingCss from './lib-rating.css?inline';\nimport sharedTokens from '../../../styles/shared/tokens.css?inline';\nimport type { RatingSize, RatingColor, RatingIcon } from './lib-rating.types';\n\n/**\n * lib-rating — Shibui UI · SG-19\n *\n * @prop value — Valor actual (0–max). Soporta decimales en readonly para half-star.\n * @prop max — Máximo de items (default 5)\n * @prop size — 'xs' | 'sm' | 'md'(default) | 'lg' | 'xl'\n * @prop color — 'gold'(default) | 'kaki' | 'washi' | 'celadon'\n * @prop icon — 'star'(default) | 'heart' | 'diamond'\n * @prop readonly — Solo display, sin interacción\n * @prop disabled — Opacity 0.4, sin interacción\n * @prop show-count — Muestra el valor numérico junto a las estrellas\n * @prop count — Número de reseñas a mostrar junto al valor numérico\n *\n * @fires ui-lib-rating-change — { detail: { value: number, prev: number } }\n */\n@customElement('lib-rating')\nexport class LibRating extends LitElement {\n static override styles = [\n css`${unsafeCSS(sharedTokens)}`,\n css`${unsafeCSS(ratingCss)}`,\n ];\n\n @property({ type: Number, reflect: true })\n value = 0;\n\n @property({ type: Number })\n max = 5;\n\n @property({ type: String, reflect: true })\n size: RatingSize = 'md';\n\n @property({ type: String, reflect: true })\n color: RatingColor = 'gold';\n\n @property({ type: String })\n icon: RatingIcon = 'star';\n\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n @property({ type: Boolean, attribute: 'show-count' })\n showCount = false;\n\n @property({ type: Number })\n count: number | null = null;\n\n /* ── Estado interno de hover ── */\n @state() _hoverValue = 0;\n\n /* ── ID del timeout de pop animation ── */\n private _popTimer: ReturnType<typeof setTimeout> | null = null;\n\n /* ════════════════════════════════════════\n Manejadores de eventos (llamados desde html.ts)\n ════════════════════════════════════════ */\n\n _onEnter(pos: number): void {\n if (this.readonly || this.disabled) return;\n this._hoverValue = pos;\n }\n\n _onLeave(): void {\n this._hoverValue = 0;\n }\n\n _onClick(pos: number): void {\n if (this.readonly || this.disabled) return;\n\n /* Toggle: clic en la estrella activa → reset a 0 */\n const prev = this.value;\n this.value = this.value === pos ? 0 : pos;\n\n /* Animación pop */\n this._triggerPop(pos);\n\n this.dispatchEvent(new CustomEvent('ui-lib-rating-change', {\n detail: { value: this.value, prev },\n bubbles: true,\n composed: true,\n }));\n }\n\n _onKeyItem(e: KeyboardEvent, pos: number): void {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n this._onClick(pos);\n }\n if (e.key === 'ArrowRight' || e.key === 'ArrowUp') {\n e.preventDefault();\n this._focusItem(pos + 1);\n }\n if (e.key === 'ArrowLeft' || e.key === 'ArrowDown') {\n e.preventDefault();\n this._focusItem(pos - 1);\n }\n }\n\n /* ── Focus al item por posición ── */\n private _focusItem(pos: number): void {\n const clamped = Math.min(Math.max(1, pos), this.max);\n const items = this.shadowRoot?.querySelectorAll<HTMLElement>('.rt-item:not(.rt-item-half)');\n items?.[clamped - 1]?.focus();\n }\n\n /* ── Añade clase is-pop y la quita tras la animación ── */\n private _triggerPop(pos: number): void {\n if (this._popTimer) clearTimeout(this._popTimer);\n\n const items = this.shadowRoot?.querySelectorAll<HTMLElement>('.rt-item');\n items?.forEach((el, idx) => {\n if (idx + 1 <= pos) el.classList.add('is-pop');\n });\n\n this._popTimer = setTimeout(() => {\n items?.forEach(el => el.classList.remove('is-pop'));\n }, 350);\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n if (this._popTimer) clearTimeout(this._popTimer);\n }\n\n protected override render(): TemplateResult {\n return ratingTemplate(this);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'lib-rating': LibRating;\n }\n}"],"names":[],"mappings":"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"}
|
package/dist/index350.js
CHANGED
package/dist/index350.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index350.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index350.js","sources":["../src/components/atoms/visually-hidden/lib-visually-hidden.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\n\nexport const visuallyHiddenTemplate = (): TemplateResult => {\n return html`<slot></slot>`;\n};"],"names":[],"mappings":";AAEO,MAAM,yBAAyB,MAAsB;AAC1D,SAAO;AACT;"}
|
package/dist/index351.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const styles = "@layer components{:host{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}}";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
styles as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index351.js.map
|
package/dist/index352.js
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
import { noChange as E } from "./index358.js";
|
|
2
|
-
import {
|
|
1
|
+
import { nothing as A, noChange as E } from "./index358.js";
|
|
2
|
+
import { Directive as i, PartType as t, directive as e$1 } from "./index359.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
constructor(
|
|
10
|
-
|
|
11
|
-
if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || ((_a = t$1.strings) == null ? void 0 : _a.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
8
|
+
class e extends i {
|
|
9
|
+
constructor(i2) {
|
|
10
|
+
if (super(i2), this.it = A, i2.type !== t.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
12
11
|
}
|
|
13
|
-
render(
|
|
14
|
-
|
|
12
|
+
render(r) {
|
|
13
|
+
if (r === A || null == r) return this._t = void 0, this.it = r;
|
|
14
|
+
if (r === E) return r;
|
|
15
|
+
if ("string" != typeof r) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
16
|
+
if (r === this.it) return this._t;
|
|
17
|
+
this.it = r;
|
|
18
|
+
const s = [r];
|
|
19
|
+
return s.raw = s, this._t = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.st = /* @__PURE__ */ new Set(), void 0 !== s.strings && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
|
|
20
|
-
for (const t2 in i2) i2[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
|
|
21
|
-
return this.render(i2);
|
|
22
|
-
}
|
|
23
|
-
const r = s.element.classList;
|
|
24
|
-
for (const t2 of this.st) t2 in i2 || (r.remove(t2), this.st.delete(t2));
|
|
25
|
-
for (const t2 in i2) {
|
|
26
|
-
const s2 = !!i2[t2];
|
|
27
|
-
s2 === this.st.has(t2) || ((_b = this.nt) == null ? void 0 : _b.has(t2)) || (s2 ? (r.add(t2), this.st.add(t2)) : (r.remove(t2), this.st.delete(t2)));
|
|
28
|
-
}
|
|
29
|
-
return E;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
21
|
+
}
|
|
22
|
+
e.directiveName = "unsafeHTML", e.resultType = 1;
|
|
23
|
+
const o = e$1(e);
|
|
32
24
|
export {
|
|
33
|
-
e as
|
|
25
|
+
e as UnsafeHTMLDirective,
|
|
26
|
+
o as unsafeHTML
|
|
34
27
|
};
|
|
35
28
|
//# sourceMappingURL=index352.js.map
|
package/dist/index352.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index352.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/
|
|
1
|
+
{"version":3,"file":"index352.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/unsafe-html.js"],"sourcesContent":["import{nothing as t,noChange as i}from\"../lit-html.js\";import{directive as r,Directive as s,PartType as n}from\"../directive.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class e extends s{constructor(i){if(super(i),this.it=t,i.type!==n.CHILD)throw Error(this.constructor.directiveName+\"() can only be used in child bindings\")}render(r){if(r===t||null==r)return this._t=void 0,this.it=r;if(r===i)return r;if(\"string\"!=typeof r)throw Error(this.constructor.directiveName+\"() called with a non-string value\");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName=\"unsafeHTML\",e.resultType=1;const o=r(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};\n//# sourceMappingURL=unsafe-html.js.map\n"],"names":["s","i","t","n","r"],"mappings":";;AACA;AAAA;AAAA;AAAA;AAAA;AAIG,MAAM,UAAUA,EAAC;AAAA,EAAC,YAAYC,IAAE;AAAC,QAAG,MAAMA,EAAC,GAAE,KAAK,KAAGC,GAAED,GAAE,SAAOE,EAAE,MAAM,OAAM,MAAM,KAAK,YAAY,gBAAc,uCAAuC;AAAA,EAAC;AAAA,EAAC,OAAO,GAAE;AAAC,QAAG,MAAID,KAAG,QAAM,EAAE,QAAO,KAAK,KAAG,QAAO,KAAK,KAAG;AAAE,QAAG,MAAID,EAAE,QAAO;AAAE,QAAG,YAAU,OAAO,EAAE,OAAM,MAAM,KAAK,YAAY,gBAAc,mCAAmC;AAAE,QAAG,MAAI,KAAK,GAAG,QAAO,KAAK;AAAG,SAAK,KAAG;AAAE,UAAM,IAAE,CAAC,CAAC;AAAE,WAAO,EAAE,MAAI,GAAE,KAAK,KAAG,EAAC,YAAW,KAAK,YAAY,YAAW,SAAQ,GAAE,QAAO,CAAA,EAAE;AAAA,EAAC;AAAC;AAAC,EAAE,gBAAc,cAAa,EAAE,aAAW;AAAO,MAAC,IAAEG,IAAE,CAAC;","x_google_ignoreList":[0]}
|
package/dist/index357.js
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { noChange as E } from "./index358.js";
|
|
2
|
+
import { directive as e$1, Directive as i, PartType as t } from "./index359.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright
|
|
5
|
+
* Copyright 2018 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
constructor(
|
|
10
|
-
|
|
8
|
+
const e = e$1(class extends i {
|
|
9
|
+
constructor(t$1) {
|
|
10
|
+
var _a;
|
|
11
|
+
if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || ((_a = t$1.strings) == null ? void 0 : _a.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
11
12
|
}
|
|
12
|
-
render(
|
|
13
|
-
|
|
14
|
-
if (r === E) return r;
|
|
15
|
-
if ("string" != typeof r) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
16
|
-
if (r === this.it) return this._t;
|
|
17
|
-
this.it = r;
|
|
18
|
-
const s = [r];
|
|
19
|
-
return s.raw = s, this._t = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
|
13
|
+
render(t2) {
|
|
14
|
+
return " " + Object.keys(t2).filter((s) => t2[s]).join(" ") + " ";
|
|
20
15
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
update(s, [i2]) {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
if (void 0 === this.st) {
|
|
19
|
+
this.st = /* @__PURE__ */ new Set(), void 0 !== s.strings && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
|
|
20
|
+
for (const t2 in i2) i2[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
|
|
21
|
+
return this.render(i2);
|
|
22
|
+
}
|
|
23
|
+
const r = s.element.classList;
|
|
24
|
+
for (const t2 of this.st) t2 in i2 || (r.remove(t2), this.st.delete(t2));
|
|
25
|
+
for (const t2 in i2) {
|
|
26
|
+
const s2 = !!i2[t2];
|
|
27
|
+
s2 === this.st.has(t2) || ((_b = this.nt) == null ? void 0 : _b.has(t2)) || (s2 ? (r.add(t2), this.st.add(t2)) : (r.remove(t2), this.st.delete(t2)));
|
|
28
|
+
}
|
|
29
|
+
return E;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
24
32
|
export {
|
|
25
|
-
e as
|
|
26
|
-
o as unsafeHTML
|
|
33
|
+
e as classMap
|
|
27
34
|
};
|
|
28
35
|
//# sourceMappingURL=index357.js.map
|
package/dist/index357.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index357.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/
|
|
1
|
+
{"version":3,"file":"index357.js","sources":["../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/class-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter(s=>t[s]).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter(t=>\"\"!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n"],"names":["s","t","r","i"],"mappings":";;AACA;AAAA;AAAA;AAAA;AAAA;AAIQ,MAAC,IAAEA,IAAE,cAAc,EAAC;AAAA,EAAC,YAAYC,KAAE;;AAAC,QAAG,MAAMA,GAAC,GAAEA,IAAE,SAAOC,EAAE,aAAW,YAAUD,IAAE,UAAMA,SAAE,YAAFA,mBAAW,UAAO,EAAE,OAAM,MAAM,oGAAoG;AAAA,EAAC;AAAA,EAAC,OAAOA,IAAE;AAAC,WAAM,MAAI,OAAO,KAAKA,EAAC,EAAE,OAAO,OAAGA,GAAE,CAAC,CAAC,EAAE,KAAK,GAAG,IAAE;AAAA,EAAG;AAAA,EAAC,OAAO,GAAE,CAACE,EAAC,GAAE;;AAAC,QAAG,WAAS,KAAK,IAAG;AAAC,WAAK,KAAG,oBAAI,OAAI,WAAS,EAAE,YAAU,KAAK,KAAG,IAAI,IAAI,EAAE,QAAQ,KAAK,GAAG,EAAE,MAAM,IAAI,EAAE,OAAO,CAAAF,OAAG,OAAKA,EAAC,CAAC;AAAG,iBAAUA,MAAKE,GAAE,CAAAA,GAAEF,EAAC,KAAG,GAAC,UAAK,OAAL,mBAAS,IAAIA,QAAI,KAAK,GAAG,IAAIA,EAAC;AAAE,aAAO,KAAK,OAAOE,EAAC;AAAA,IAAC;AAAC,UAAM,IAAE,EAAE,QAAQ;AAAU,eAAUF,MAAK,KAAK,GAAG,CAAAA,MAAKE,OAAI,EAAE,OAAOF,EAAC,GAAE,KAAK,GAAG,OAAOA,EAAC;AAAG,eAAUA,MAAKE,IAAE;AAAC,YAAMH,KAAE,CAAC,CAACG,GAAEF,EAAC;AAAE,MAAAD,OAAI,KAAK,GAAG,IAAIC,EAAC,OAAG,UAAK,OAAL,mBAAS,IAAIA,SAAKD,MAAG,EAAE,IAAIC,EAAC,GAAE,KAAK,GAAG,IAAIA,EAAC,MAAI,EAAE,OAAOA,EAAC,GAAE,KAAK,GAAG,OAAOA,EAAC;AAAA,IAAG;AAAC,WAAOA;AAAAA,EAAC;AAAC,CAAC;","x_google_ignoreList":[0]}
|