@shibui-ui/ui 1.25.1 → 1.26.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/index.js +68 -68
- package/dist/index107.js +2 -2
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -2
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +2 -2
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.js +2 -2
- package/dist/index110.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +2 -2
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +2 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +2 -2
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +2 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +2 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -2
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +2 -2
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +2 -2
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +2 -2
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +2 -2
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +2 -2
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +2 -2
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +2 -2
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +2 -2
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +2 -2
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +2 -2
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -2
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +2 -2
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +2 -2
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +2 -2
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +2 -2
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +2 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +2 -2
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +2 -2
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +2 -2
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +2 -2
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +2 -2
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +2 -2
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +2 -2
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -2
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +2 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +2 -2
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +2 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +2 -2
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -2
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -2
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -2
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +2 -2
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +2 -2
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +2 -2
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +2 -2
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +2 -2
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +2 -2
- package/dist/index178.js.map +1 -1
- package/dist/index194.js +6 -97
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +2 -2
- package/dist/index197.js +18 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -74
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +74 -64
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +2 -2
- package/dist/index201.js +2 -57
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +39 -2
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -2
- package/dist/index204.js +219 -144
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +82 -43
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -51
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +94 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +2 -33
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +268 -2
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +21 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -260
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +8 -16
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -2
- package/dist/index215.js +15 -2
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -66
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +146 -24
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -2
- package/dist/index219.js +5 -2
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -81
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +6 -78
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -133
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +92 -2
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +59 -2
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +2 -72
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +97 -94
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -2
- package/dist/index229.js +2 -71
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +74 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +74 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +53 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -2
- package/dist/index235.js +2 -18
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +162 -2
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +43 -84
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +51 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -2
- package/dist/index240.js +33 -39
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index242.js +5 -236
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +2 -82
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +260 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +16 -93
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -2
- package/dist/index247.js +2 -268
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +66 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +24 -13
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +2 -2
- package/dist/index251.js +2 -9
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +81 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +78 -12
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +2 -2
- package/dist/index255.js +111 -132
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -2
- package/dist/index257.js +2 -5
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +72 -2
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +93 -5
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +2 -2
- package/dist/index261.js +71 -2
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +2 -92
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +2 -59
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +12 -2
- package/dist/index264.js.map +1 -1
- package/dist/index3.js +73 -73
- package/dist/index3.js.map +1 -1
- package/dist/index34.js +1 -1
- package/dist/index347.js +1 -1
- package/dist/index352.js +26 -19
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +24 -13
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +6 -20
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +18 -56
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +57 -55
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +64 -32
- package/dist/index357.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index47.js +1 -1
- package/dist/index49.js +2 -2
- package/dist/index50.js +2 -2
- package/dist/index51.js +2 -2
- package/dist/index52.js +2 -2
- package/dist/index53.js +3 -3
- package/dist/index54.js +2 -2
- package/dist/index55.js +2 -2
- package/dist/index56.js +3 -3
- package/dist/index57.js +2 -2
- package/dist/index58.js +2 -2
- package/dist/index59.js +2 -2
- package/dist/index60.js +2 -2
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index63.js +2 -2
- package/dist/index64.js +2 -2
- package/dist/index65.js +2 -2
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index68.js +2 -2
- package/dist/index69.js +2 -2
- package/dist/index70.js +2 -2
- package/dist/index71.js +2 -2
- package/dist/index72.js +2 -2
- package/dist/index73.js +2 -2
- package/dist/index74.js +2 -2
- package/dist/index75.js +2 -2
- package/dist/index76.js +2 -2
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/dist/index79.js +2 -2
- package/dist/index80.js +2 -2
- package/dist/index81.js +2 -2
- package/dist/index82.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index84.js +2 -2
- package/dist/shared/icons/icon-registry.d.ts +2 -2
- package/dist/shared/icons/icon-registry.d.ts.map +1 -1
- package/dist/src/shared/icons/icon-registry.d.ts +2 -2
- package/dist/src/shared/icons/icon-registry.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index174.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index174.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/
|
|
1
|
+
{"version":3,"file":"index174.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/sun.svg?raw"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 256 256\\\" fill=\\\"currentColor\\\"><path d=\\\"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z\\\"/></svg>\""],"names":[],"mappings":"AAAA,MAAA,MAAe;","x_google_ignoreList":[0]}
|
package/dist/index175.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const thermometer = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/></svg>';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
thermometer as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index175.js.map
|
package/dist/index175.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index175.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/
|
|
1
|
+
{"version":3,"file":"index175.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/thermometer.svg?raw"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 256 256\\\" fill=\\\"currentColor\\\"><path d=\\\"M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z\\\"/></svg>\""],"names":[],"mappings":"AAAA,MAAA,cAAe;","x_google_ignoreList":[0]}
|
package/dist/index176.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const clock = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/></svg>';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
clock as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index176.js.map
|
package/dist/index176.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index176.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/
|
|
1
|
+
{"version":3,"file":"index176.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/clock.svg?raw"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 256 256\\\" fill=\\\"currentColor\\\"><path d=\\\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z\\\"/></svg>\""],"names":[],"mappings":"AAAA,MAAA,QAAe;","x_google_ignoreList":[0]}
|
package/dist/index177.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const timer = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"/></svg>';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
timer as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index177.js.map
|
package/dist/index177.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index177.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/
|
|
1
|
+
{"version":3,"file":"index177.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/timer.svg?raw"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 256 256\\\" fill=\\\"currentColor\\\"><path d=\\\"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z\\\"/></svg>\""],"names":[],"mappings":"AAAA,MAAA,QAAe;","x_google_ignoreList":[0]}
|
package/dist/index178.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const trash = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"/></svg>';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
trash as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index178.js.map
|
package/dist/index178.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index178.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/
|
|
1
|
+
{"version":3,"file":"index178.js","sources":["../../../node_modules/.pnpm/@phosphor-icons+core@2.1.1/node_modules/@phosphor-icons/core/assets/regular/trash.svg?raw"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 256 256\\\" fill=\\\"currentColor\\\"><path d=\\\"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z\\\"/></svg>\""],"names":[],"mappings":"AAAA,MAAA,QAAe;","x_google_ignoreList":[0]}
|
package/dist/index194.js
CHANGED
|
@@ -1,103 +1,12 @@
|
|
|
1
|
-
import { html
|
|
2
|
-
|
|
3
|
-
function renderSep(separator) {
|
|
4
|
-
if (separator === "chevron") {
|
|
5
|
-
return html`
|
|
6
|
-
<span class="bc-sep" aria-hidden="true">
|
|
7
|
-
<lib-icon name="caret-right" size="xs"></lib-icon>
|
|
8
|
-
</span>
|
|
9
|
-
`;
|
|
10
|
-
}
|
|
11
|
-
return html`<span class="bc-sep" aria-hidden="true"></span>`;
|
|
12
|
-
}
|
|
13
|
-
function renderIcon(icon) {
|
|
14
|
-
if (!icon) return nothing;
|
|
15
|
-
return html`<span class="bc-icon"><lib-icon name="${icon}" size="xs"></lib-icon></span>`;
|
|
16
|
-
}
|
|
17
|
-
function renderLink(item, index, separator, onNavigate) {
|
|
18
|
-
return html`
|
|
19
|
-
<li class="bc-item">
|
|
20
|
-
<a
|
|
21
|
-
class="bc-link"
|
|
22
|
-
href="${item.href ?? "#"}"
|
|
23
|
-
@click="${(e2) => {
|
|
24
|
-
e2.preventDefault();
|
|
25
|
-
onNavigate(item, index);
|
|
26
|
-
}}"
|
|
27
|
-
>
|
|
28
|
-
${renderIcon(item.icon)}
|
|
29
|
-
${item.label ? html`${item.label}` : nothing}
|
|
30
|
-
</a>
|
|
31
|
-
${renderSep(separator)}
|
|
32
|
-
</li>
|
|
33
|
-
`;
|
|
34
|
-
}
|
|
35
|
-
function renderCurrent(item) {
|
|
36
|
-
return html`
|
|
37
|
-
<li class="bc-item">
|
|
38
|
-
<span class="bc-current" aria-current="page">
|
|
39
|
-
${renderIcon(item.icon)}
|
|
40
|
-
${item.label ? html`${item.label}` : nothing}
|
|
41
|
-
</span>
|
|
42
|
-
</li>
|
|
43
|
-
`;
|
|
44
|
-
}
|
|
45
|
-
function renderEllipsis(separator, onExpand) {
|
|
46
|
-
return html`
|
|
47
|
-
<li class="bc-item">
|
|
48
|
-
<button
|
|
49
|
-
class="bc-ellipsis"
|
|
50
|
-
aria-label="Mostrar ruta completa"
|
|
51
|
-
@click="${onExpand}"
|
|
52
|
-
>…</button>
|
|
53
|
-
${renderSep(separator)}
|
|
54
|
-
</li>
|
|
55
|
-
`;
|
|
56
|
-
}
|
|
57
|
-
function renderItems(p) {
|
|
58
|
-
const { items, separator, maxVisible, expanded, onExpand, onNavigate } = p;
|
|
59
|
-
const shouldCollapse = maxVisible > 0 && items.length > maxVisible && !expanded;
|
|
60
|
-
if (shouldCollapse) {
|
|
61
|
-
const first = items[0];
|
|
62
|
-
const last = items[items.length - 1];
|
|
63
|
-
if (!first || !last) return [];
|
|
64
|
-
return [
|
|
65
|
-
renderLink(first, 0, separator, onNavigate),
|
|
66
|
-
renderEllipsis(separator, onExpand),
|
|
67
|
-
last.href ? renderLink(last, items.length - 1, separator, onNavigate) : renderCurrent(last)
|
|
68
|
-
];
|
|
69
|
-
}
|
|
70
|
-
return items.map((item, i) => {
|
|
71
|
-
const isLast = i === items.length - 1;
|
|
72
|
-
if (isLast || !item.href) return renderCurrent(item);
|
|
73
|
-
return renderLink(item, i, separator, onNavigate);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function breadcrumbTemplate(p) {
|
|
77
|
-
const bcClasses = {
|
|
78
|
-
"bc": true,
|
|
79
|
-
"bc-slash": p.separator === "slash",
|
|
80
|
-
"bc-chevron": p.separator === "chevron",
|
|
81
|
-
"bc-dot": p.separator === "dot",
|
|
82
|
-
"bc-line": p.separator === "line",
|
|
83
|
-
"bc-sm": p.size === "sm",
|
|
84
|
-
"bc-lg": p.size === "lg",
|
|
85
|
-
"bc-filled": p.surface === "filled",
|
|
86
|
-
"bc-pill": p.surface === "pill",
|
|
87
|
-
"bc-kaki": p.accent === "kaki",
|
|
88
|
-
"bc-celadon": p.accent === "celadon",
|
|
89
|
-
"bc-bold": p.accent === "bold",
|
|
90
|
-
"bc-dark": p.dark
|
|
91
|
-
};
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
function accordionTemplate(props) {
|
|
92
3
|
return html`
|
|
93
|
-
<
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
</ol>
|
|
97
|
-
</nav>
|
|
4
|
+
<div class="accordion__root" @accordion-toggle=${props.onToggle}>
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</div>
|
|
98
7
|
`;
|
|
99
8
|
}
|
|
100
9
|
export {
|
|
101
|
-
|
|
10
|
+
accordionTemplate
|
|
102
11
|
};
|
|
103
12
|
//# sourceMappingURL=index194.js.map
|
package/dist/index194.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index194.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index194.js","sources":["../src/components/organisms/accordion/lib-accordion.component.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\n\nexport interface AccordionTemplateProps {\n onToggle: (e: Event) => void;\n}\n\n/**\n * Plantilla para lib-accordion.\n *\n * El organismo es un contenedor de slot: no renderiza items propios,\n * solo orquesta el comportamiento exclusive y aplica variantes via CSS.\n */\nexport function accordionTemplate(props: AccordionTemplateProps): TemplateResult {\n return html`\n <div class=\"accordion__root\" @accordion-toggle=${props.onToggle}>\n <slot></slot>\n </div>\n `;\n}"],"names":[],"mappings":";AAYO,SAAS,kBAAkB,OAA+C;AAC/E,SAAO;AAAA,qDAC4C,MAAM,QAAQ;AAAA;AAAA;AAAA;AAInE;"}
|
package/dist/index195.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const accordionCss = '@layer tokens,reset,components;@layer reset{:host{display:block}*,*:before,*:after{box-sizing:border-box}}@layer components{:host{border:1px solid var(--border-subtle);background:var(--bg-elevated);display:block}.accordion__root{display:flex;flex-direction:column}::slotted(lib-accordion-item:last-of-type){border-bottom:none!important}:host([variant="flush"]){border:none;background:transparent;box-shadow:none}:host([variant="flush"]) ::slotted(lib-accordion-item){--accordion-item-trigger-px: 0px;--accordion-item-content-px: 0px;--accordion-item-trigger-hover-bg: transparent;--accordion-item-trigger-bg: transparent;--accordion-item-body-bg: transparent}:host([variant="separated"]){border:none;background:transparent;box-shadow:none}:host([variant="separated"]) .accordion__root{gap:var(--lib-space-sm)}:host([variant="separated"]) ::slotted(lib-accordion-item){border:1px solid var(--border-subtle)!important;transition:box-shadow var(--duration-slow) var(--ease-out),border-color var(--duration-slow) var(--ease-out)}:host([variant="separated"]) ::slotted(lib-accordion-item[open]){box-shadow:var(--shadow-md);border-color:var(--border-default)!important}:host([variant="accent"]){border:1px solid var(--border-subtle);background:var(--bg-elevated)}:host([variant="accent"]) ::slotted(lib-accordion-item[open]){--accordion-item-accent-border: 2px solid var(--color-kaki-400);--accordion-item-trigger-bg: var(--color-kaki-50);--accordion-item-trigger-hover-bg: var(--color-kaki-100);--accordion-item-body-bg: var(--color-kaki-50);--accordion-item-label-color: var(--color-kaki-600);--accordion-item-icon-color: var(--color-kaki-400);--accordion-item-content-border: var(--color-kaki-200);--accordion-item-content-color: var(--color-kaki-600)}@media(prefers-reduced-motion:reduce){::slotted(lib-accordion-item){transition:none}}}';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
accordionCss as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index195.js.map
|
package/dist/index197.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
function bentoGridTemplate(ctx) {
|
|
3
|
+
return html`
|
|
4
|
+
<div
|
|
5
|
+
class="bento-grid"
|
|
6
|
+
part="grid"
|
|
7
|
+
role="presentation"
|
|
8
|
+
style="
|
|
9
|
+
--_columns: ${ctx.columns};
|
|
10
|
+
--_gap: var(--lib-space-${ctx.gap});
|
|
11
|
+
--_row-height: ${ctx.rowHeight};
|
|
12
|
+
"
|
|
13
|
+
>
|
|
14
|
+
<slot></slot>
|
|
15
|
+
</div>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
2
18
|
export {
|
|
3
|
-
|
|
19
|
+
bentoGridTemplate
|
|
4
20
|
};
|
|
5
21
|
//# sourceMappingURL=index197.js.map
|
package/dist/index197.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index197.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index197.js","sources":["../src/components/organisms/bento-grid/lib-bento-grid.html.ts"],"sourcesContent":["import { html, TemplateResult } from 'lit';\nimport type { LibBentoGrid } from './lib-bento-grid.component';\n\nexport function bentoGridTemplate(ctx: LibBentoGrid): TemplateResult {\n return html`\n <div\n class=\"bento-grid\"\n part=\"grid\"\n role=\"presentation\"\n style=\"\n --_columns: ${ctx.columns};\n --_gap: var(--lib-space-${ctx.gap});\n --_row-height: ${ctx.rowHeight};\n \"\n >\n <slot></slot>\n </div>\n `;\n}"],"names":[],"mappings":";AAGO,SAAS,kBAAkB,KAAmC;AACnE,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMa,IAAI,OAAO;AAAA,kCACC,IAAI,GAAG;AAAA,yBAChB,IAAI,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAMtC;"}
|
package/dist/index198.js
CHANGED
|
@@ -1,77 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const CARET = svg`
|
|
3
|
-
<svg width="9" height="9" viewBox="0 0 10 10" fill="none"
|
|
4
|
-
stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
|
|
5
|
-
<polyline points="2,3 5,7 8,3"/>
|
|
6
|
-
</svg>`;
|
|
7
|
-
function buttonGroupTemplate() {
|
|
8
|
-
return html`
|
|
9
|
-
<div class="bg-wrap" part="group">
|
|
10
|
-
<slot></slot>
|
|
11
|
-
</div>
|
|
12
|
-
`;
|
|
13
|
-
}
|
|
14
|
-
function buttonSplitTemplate(p) {
|
|
15
|
-
const { label, variant, size, dark, disabled, menuOpen, items } = p;
|
|
16
|
-
const arrowKintsugi = variant === "accent" || variant === "primary";
|
|
17
|
-
const menuItems = items.length > 0 ? html`${items.map((item) => html`
|
|
18
|
-
<button
|
|
19
|
-
class="split-menu-item"
|
|
20
|
-
?disabled="${item.disabled ?? false}"
|
|
21
|
-
data-value="${item.value}"
|
|
22
|
-
>${item.label}</button>
|
|
23
|
-
`)}` : html`<slot name="menu"></slot>`;
|
|
24
|
-
return html`
|
|
25
|
-
<div class="split-wrap" part="split">
|
|
26
|
-
|
|
27
|
-
<!-- Acción principal: lib-button posición "first" -->
|
|
28
|
-
<lib-button
|
|
29
|
-
part="main"
|
|
30
|
-
variant="${variant}"
|
|
31
|
-
size="${size}"
|
|
32
|
-
?dark="${dark}"
|
|
33
|
-
?disabled="${disabled}"
|
|
34
|
-
group-pos="first"
|
|
35
|
-
group-shape="rounded"
|
|
36
|
-
@click="${p.onMainClick}"
|
|
37
|
-
>
|
|
38
|
-
<slot slot="prefix" name="prefix"></slot>
|
|
39
|
-
${label}
|
|
40
|
-
<slot slot="suffix" name="suffix"></slot>
|
|
41
|
-
</lib-button>
|
|
42
|
-
|
|
43
|
-
<!-- Flecha: lib-button posición "last", icon-only -->
|
|
44
|
-
<lib-button
|
|
45
|
-
part="arrow"
|
|
46
|
-
variant="${variant}"
|
|
47
|
-
size="${size}"
|
|
48
|
-
?dark="${dark}"
|
|
49
|
-
?disabled="${disabled}"
|
|
50
|
-
group-pos="last"
|
|
51
|
-
group-shape="rounded"
|
|
52
|
-
icon-only
|
|
53
|
-
?kintsugi="${arrowKintsugi}"
|
|
54
|
-
aria-label="Más opciones"
|
|
55
|
-
aria-haspopup="true"
|
|
56
|
-
aria-expanded="${menuOpen ? "true" : "false"}"
|
|
57
|
-
@click="${p.onArrowClick}"
|
|
58
|
-
>${CARET}</lib-button>
|
|
59
|
-
|
|
60
|
-
<!-- Menú desplegable -->
|
|
61
|
-
<div
|
|
62
|
-
class="split-menu ${menuOpen ? "is-open" : ""}"
|
|
63
|
-
part="menu"
|
|
64
|
-
style="${menuOpen ? "display:block" : "display:none"}"
|
|
65
|
-
role="menu"
|
|
66
|
-
>
|
|
67
|
-
${menuItems}
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
</div>
|
|
71
|
-
`;
|
|
72
|
-
}
|
|
1
|
+
const gridCss = "@layer tokens,reset,components;@layer reset{:host{display:block}*,*:before,*:after{box-sizing:border-box}}@layer components{.bento-item{height:100%;width:100%;display:flex;flex-direction:column;position:relative;background:var(--bg-elevated);border-radius:var(--lib-radius-lg);border:1px solid var(--border-subtle);overflow:hidden}:host([interactive]) .bento-item{cursor:pointer;transition:transform var(--duration-slow) var(--ease-default),border-color var(--duration-base) var(--ease-default),box-shadow var(--duration-slow) var(--ease-default)}:host([interactive]) .bento-item:hover{transform:translateY(-3px);border-color:var(--border-strong);box-shadow:var(--shadow-md)}:host([interactive]) .bento-item:active{transform:translateY(-1px)}.content{padding:var(--lib-space-md);height:100%;display:flex;flex-direction:column}:host([flush]) .content{padding:0}@media(prefers-reduced-motion:reduce){:host([interactive]) .bento-item{transition:border-color var(--duration-base)}:host([interactive]) .bento-item:hover{transform:none}}}";
|
|
73
2
|
export {
|
|
74
|
-
|
|
75
|
-
buttonSplitTemplate
|
|
3
|
+
gridCss as default
|
|
76
4
|
};
|
|
77
5
|
//# sourceMappingURL=index198.js.map
|
package/dist/index198.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index198.js","sources":[
|
|
1
|
+
{"version":3,"file":"index198.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index199.js
CHANGED
|
@@ -1,77 +1,87 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
const
|
|
3
|
-
<svg viewBox="0 0
|
|
4
|
-
|
|
1
|
+
import { svg, html, nothing } from "lit";
|
|
2
|
+
const iconPrev = svg`
|
|
3
|
+
<svg viewBox="0 0 16 16" fill="none"
|
|
4
|
+
stroke="currentColor" stroke-width="1.5"
|
|
5
|
+
stroke-linecap="round" stroke-linejoin="round">
|
|
6
|
+
<polyline points="10,3 5,8 10,13"/>
|
|
5
7
|
</svg>`;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const iconNext = svg`
|
|
9
|
+
<svg viewBox="0 0 16 16" fill="none"
|
|
10
|
+
stroke="currentColor" stroke-width="1.5"
|
|
11
|
+
stroke-linecap="round" stroke-linejoin="round">
|
|
12
|
+
<polyline points="6,3 11,8 6,13"/>
|
|
13
|
+
</svg>`;
|
|
14
|
+
function carouselTemplate(props) {
|
|
15
|
+
const {
|
|
16
|
+
mode,
|
|
17
|
+
current,
|
|
18
|
+
total,
|
|
19
|
+
peek,
|
|
20
|
+
arrows,
|
|
21
|
+
dots,
|
|
22
|
+
counter,
|
|
23
|
+
loop,
|
|
24
|
+
handlePrev,
|
|
25
|
+
handleNext,
|
|
26
|
+
handleDot,
|
|
27
|
+
handleSlot,
|
|
28
|
+
handleThumb,
|
|
29
|
+
handleKey
|
|
30
|
+
} = props;
|
|
31
|
+
const prevDisabled = !loop && current === 0;
|
|
32
|
+
const nextDisabled = !loop && current === total - 1;
|
|
33
|
+
const counterHtml = peek > 1 ? html`<span>${current + 1}</span> – <span>${Math.min(current + peek, total)}</span> / ${total}` : html`<span>${current + 1}</span> / ${total}`;
|
|
11
34
|
return html`
|
|
12
|
-
<
|
|
13
|
-
class="
|
|
14
|
-
|
|
15
|
-
|
|
35
|
+
<div
|
|
36
|
+
class="cr"
|
|
37
|
+
tabindex="0"
|
|
38
|
+
role="region"
|
|
39
|
+
aria-label="Carousel"
|
|
40
|
+
@keydown=${handleKey}
|
|
16
41
|
>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
part="input"
|
|
21
|
-
.type="${ctx.inputType}"
|
|
22
|
-
.name="${ctx.name}"
|
|
23
|
-
.value="${ctx.value}"
|
|
24
|
-
.checked="${ctx.checked}"
|
|
25
|
-
?disabled="${ctx.disabled}"
|
|
26
|
-
@change="${(e) => ctx._handleChange(e)}"
|
|
27
|
-
/>
|
|
28
|
-
|
|
29
|
-
<div class="cc-body" part="body">
|
|
30
|
-
|
|
31
|
-
<!-- Checkmark -->
|
|
32
|
-
<div class="${checkClass}" part="check">${checkSvg}</div>
|
|
33
|
-
|
|
34
|
-
<!-- Slot: icono -->
|
|
35
|
-
<slot name="icon">
|
|
36
|
-
${ctx._hasSlot("icon") ? "" : ""}
|
|
37
|
-
</slot>
|
|
38
|
-
|
|
39
|
-
<!-- Slot: badge -->
|
|
40
|
-
<slot name="badge"></slot>
|
|
41
|
-
|
|
42
|
-
<!-- Slot: título -->
|
|
43
|
-
<slot name="title">
|
|
44
|
-
${ctx.cardTitle ? html`<div class="cc-title" part="title">${ctx.cardTitle}</div>` : ""}
|
|
45
|
-
</slot>
|
|
46
|
-
|
|
47
|
-
<!-- Slot: descripción -->
|
|
48
|
-
<slot name="desc">
|
|
49
|
-
${ctx.desc ? html`<div class="cc-desc" part="desc">${ctx.desc}</div>` : ""}
|
|
50
|
-
</slot>
|
|
51
|
-
|
|
52
|
-
<!-- Slot: precio -->
|
|
53
|
-
<slot name="price"></slot>
|
|
54
|
-
|
|
55
|
-
<!-- Slot: divider -->
|
|
56
|
-
<slot name="divider"></slot>
|
|
42
|
+
<div class="cr-track" part="track">
|
|
43
|
+
<slot @slotchange=${handleSlot}></slot>
|
|
44
|
+
</div>
|
|
57
45
|
|
|
58
|
-
|
|
59
|
-
<
|
|
46
|
+
${arrows && mode === "slide" ? html`
|
|
47
|
+
<button
|
|
48
|
+
class="cr-arrow cr-arrow-prev ${prevDisabled ? "is-disabled" : ""}"
|
|
49
|
+
?disabled=${prevDisabled}
|
|
50
|
+
aria-label="Anterior"
|
|
51
|
+
@click=${handlePrev}
|
|
52
|
+
>${iconPrev}</button>
|
|
60
53
|
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
<button
|
|
55
|
+
class="cr-arrow cr-arrow-next ${nextDisabled ? "is-disabled" : ""}"
|
|
56
|
+
?disabled=${nextDisabled}
|
|
57
|
+
aria-label="Siguiente"
|
|
58
|
+
@click=${handleNext}
|
|
59
|
+
>${iconNext}</button>
|
|
60
|
+
` : nothing}
|
|
61
|
+
</div>
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
${dots && total > 1 ? html`
|
|
64
|
+
<div class="cr-dots" role="tablist" aria-label="Navegación por slides">
|
|
65
|
+
${Array.from({ length: total }, (_, i) => html`
|
|
66
|
+
<button
|
|
67
|
+
class="cr-dot ${i === current ? "is-active" : ""}"
|
|
68
|
+
role="tab"
|
|
69
|
+
aria-selected=${i === current ? "true" : "false"}
|
|
70
|
+
aria-label="Ir a slide ${i + 1}"
|
|
71
|
+
@click=${() => handleDot(i)}
|
|
72
|
+
></button>
|
|
73
|
+
`)}
|
|
74
|
+
</div>
|
|
75
|
+
` : nothing}
|
|
66
76
|
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
${counter && total > 1 ? html`
|
|
78
|
+
<p class="cr-counter">${counterHtml}</p>
|
|
79
|
+
` : nothing}
|
|
69
80
|
|
|
70
|
-
|
|
71
|
-
</label>
|
|
81
|
+
<slot name="thumbnail" @slotchange=${handleThumb}></slot>
|
|
72
82
|
`;
|
|
73
83
|
}
|
|
74
84
|
export {
|
|
75
|
-
|
|
85
|
+
carouselTemplate
|
|
76
86
|
};
|
|
77
87
|
//# sourceMappingURL=index199.js.map
|
package/dist/index199.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index199.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index199.js","sources":["../src/components/organisms/carousel/lib-carousel.html.ts"],"sourcesContent":["import { html, nothing, svg, TemplateResult } from 'lit';\n\nexport type LibCarouselMode = 'slide' | 'fade';\n\nexport interface CarouselTemplateProps {\n mode: LibCarouselMode;\n current: number;\n total: number;\n peek: number;\n arrows: boolean;\n dots: boolean;\n counter: boolean;\n loop: boolean;\n handlePrev: () => void;\n handleNext: () => void;\n handleDot: (i: number) => void;\n handleSlot: (e: Event) => void;\n handleThumb: (e: Event) => void;\n handleKey: (e: KeyboardEvent) => void;\n}\n\n/** SVG chevron left */\nconst iconPrev = svg`\n <svg viewBox=\"0 0 16 16\" fill=\"none\"\n stroke=\"currentColor\" stroke-width=\"1.5\"\n stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <polyline points=\"10,3 5,8 10,13\"/>\n </svg>`;\n\n/** SVG chevron right */\nconst iconNext = svg`\n <svg viewBox=\"0 0 16 16\" fill=\"none\"\n stroke=\"currentColor\" stroke-width=\"1.5\"\n stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <polyline points=\"6,3 11,8 6,13\"/>\n </svg>`;\n\n/**\n * Template para lib-carousel.\n *\n * Estructura:\n * div.cr ← raíz, maneja keydown\n * div.cr-track ← contenedor deslizante\n * slot ← slides del consumer\n * button.cr-arrow-prev ← (condicional)\n * button.cr-arrow-next ← (condicional)\n * div.cr-dots ← (condicional)\n * p.cr-counter ← (condicional)\n * slot[name=\"thumbnail\"] ← tira de miniaturas (condicional)\n */\nexport function carouselTemplate(props: CarouselTemplateProps): TemplateResult {\n const {\n mode, current, total, peek, arrows, dots, counter, loop,\n handlePrev, handleNext, handleDot, handleSlot, handleThumb, handleKey,\n } = props;\n\n const prevDisabled = !loop && current === 0;\n const nextDisabled = !loop && current === total - 1;\n\n // Counter text: \"2 / 6\" para peek=1, \"1 – 3 / 6\" para peek>1\n const counterHtml = peek > 1\n ? html`<span>${current + 1}</span> – <span>${Math.min(current + peek, total)}</span> / ${total}`\n : html`<span>${current + 1}</span> / ${total}`;\n\n return html`\n <div\n class=\"cr\"\n tabindex=\"0\"\n role=\"region\"\n aria-label=\"Carousel\"\n @keydown=${handleKey}\n >\n <div class=\"cr-track\" part=\"track\">\n <slot @slotchange=${handleSlot}></slot>\n </div>\n\n ${arrows && mode === 'slide' ? html`\n <button\n class=\"cr-arrow cr-arrow-prev ${prevDisabled ? 'is-disabled' : ''}\"\n ?disabled=${prevDisabled}\n aria-label=\"Anterior\"\n @click=${handlePrev}\n >${iconPrev}</button>\n\n <button\n class=\"cr-arrow cr-arrow-next ${nextDisabled ? 'is-disabled' : ''}\"\n ?disabled=${nextDisabled}\n aria-label=\"Siguiente\"\n @click=${handleNext}\n >${iconNext}</button>\n ` : nothing}\n </div>\n\n ${dots && total > 1 ? html`\n <div class=\"cr-dots\" role=\"tablist\" aria-label=\"Navegación por slides\">\n ${Array.from({ length: total }, (_, i) => html`\n <button\n class=\"cr-dot ${i === current ? 'is-active' : ''}\"\n role=\"tab\"\n aria-selected=${i === current ? 'true' : 'false'}\n aria-label=\"Ir a slide ${i + 1}\"\n @click=${():void => handleDot(i)}\n ></button>\n `)}\n </div>\n ` : nothing}\n\n ${counter && total > 1 ? html`\n <p class=\"cr-counter\">${counterHtml}</p>\n ` : nothing}\n\n <slot name=\"thumbnail\" @slotchange=${handleThumb}></slot>\n `;\n}"],"names":[],"mappings":";AAsBA,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAQjB,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBV,SAAS,iBAAiB,OAA8C;AAC7E,QAAM;AAAA,IACJ;AAAA,IAAM;AAAA,IAAS;AAAA,IAAO;AAAA,IAAM;AAAA,IAAQ;AAAA,IAAM;AAAA,IAAS;AAAA,IACnD;AAAA,IAAY;AAAA,IAAY;AAAA,IAAW;AAAA,IAAY;AAAA,IAAa;AAAA,EAAA,IAC1D;AAEJ,QAAM,eAAe,CAAC,QAAQ,YAAY;AAC1C,QAAM,eAAe,CAAC,QAAQ,YAAY,QAAQ;AAGlD,QAAM,cAAc,OAAO,IACvB,aAAa,UAAU,CAAC,iCAAiC,KAAK,IAAI,UAAU,MAAM,KAAK,CAAC,aAAa,KAAK,KAC1G,aAAa,UAAU,CAAC,aAAa,KAAK;AAE9C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAMQ,SAAS;AAAA;AAAA;AAAA,4BAGE,UAAU;AAAA;AAAA;AAAA,QAG9B,UAAU,SAAS,UAAU;AAAA;AAAA,0CAEK,eAAe,gBAAgB,EAAE;AAAA,sBACrD,YAAY;AAAA;AAAA,mBAEf,UAAU;AAAA,WAClB,QAAQ;AAAA;AAAA;AAAA,0CAGuB,eAAe,gBAAgB,EAAE;AAAA,sBACrD,YAAY;AAAA;AAAA,mBAEf,UAAU;AAAA,WAClB,QAAQ;AAAA,UACT,OAAO;AAAA;AAAA;AAAA,MAGX,QAAQ,QAAQ,IAAI;AAAA;AAAA,UAEhB,MAAM,KAAK,EAAE,QAAQ,SAAS,CAAC,GAAG,MAAM;AAAA;AAAA,4BAEtB,MAAM,UAAU,cAAc,EAAE;AAAA;AAAA,4BAEhC,MAAM,UAAU,SAAS,OAAO;AAAA,qCACvB,IAAI,CAAC;AAAA,qBACrB,MAAW,UAAU,CAAC,CAAC;AAAA;AAAA,SAEnC,CAAC;AAAA;AAAA,QAEF,OAAO;AAAA;AAAA,MAET,WAAW,QAAQ,IAAI;AAAA,8BACC,WAAW;AAAA,QACjC,OAAO;AAAA;AAAA,yCAE0B,WAAW;AAAA;AAEpD;"}
|