lyco 1.0.0 → 1.0.2
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/README.md +0 -4
- package/dist/index.cjs.js +93 -93
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +107 -107
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/AcrylicBar.d.ts +2 -2
- package/dist/types/components/AspectRatio.d.ts +2 -2
- package/dist/types/components/AvatarStack.d.ts +3 -2
- package/dist/types/components/Card.d.ts +2 -2
- package/dist/types/components/Column.d.ts +2 -2
- package/dist/types/components/Container.d.ts +2 -2
- package/dist/types/components/Grid.d.ts +2 -2
- package/dist/types/components/GridBreakpoint.d.ts +1 -0
- package/dist/types/components/HeroSection.d.ts +2 -2
- package/dist/types/components/Hidden.d.ts +1 -0
- package/dist/types/components/ListGroup.d.ts +1 -0
- package/dist/types/components/Overlay.d.ts +2 -2
- package/dist/types/components/Row.d.ts +2 -2
- package/dist/types/components/ScrollBar.d.ts +1 -0
- package/dist/types/components/SideBarContainer.d.ts +2 -2
- package/dist/types/components/SkeletonLoader.d.ts +1 -0
- package/dist/types/components/Swiper.d.ts +1 -0
- package/dist/types/components/Table.d.ts +1 -0
- package/dist/types/components/Wrap.d.ts +2 -2
- package/dist/types/components/ZStack.d.ts +2 -2
- package/dist/types/components/core.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.cjs.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=s(require(`lit`));function l(e){return e?typeof e==`function`?e():e:c.html``}function u(e,t){let n=e?.fadeBg??`rgba(0,0,0,0.7)`,r=e?.zIndex??2e3;return c.html`
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=s(require(`lit`));function l(e){return e?typeof e==`function`?e():e:c.html``}function u(e,t){let n=t??(e=>e);if(e===void 0)return c.html``;if(Array.isArray(e))return e.map((e,t)=>n(l(e),t));if(typeof e!=`function`)return n(e);let r=e();return Array.isArray(r)?r.map((e,t)=>n(l(e),t)):n(l(r))}function d(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function f(e,t){let n=e?.fadeBg??`rgba(0,0,0,0.7)`,r=e?.zIndex??2e3;return c.html`
|
2
2
|
<div
|
3
3
|
style="
|
4
4
|
position: fixed;
|
@@ -12,7 +12,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
12
12
|
>
|
13
13
|
${l(t)}
|
14
14
|
</div>
|
15
|
-
`}function
|
15
|
+
`}function p(e,t){return c.html`
|
16
16
|
<div
|
17
17
|
style="
|
18
18
|
display: flex;
|
@@ -20,9 +20,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
20
20
|
${e?.space?`gap: ${e.space};`:``}
|
21
21
|
"
|
22
22
|
>
|
23
|
-
${
|
23
|
+
${u(t)}
|
24
24
|
</div>
|
25
|
-
`}function
|
25
|
+
`}function m(e,t){let n=e?.direction??`row`;return c.html`
|
26
26
|
<div
|
27
27
|
style="
|
28
28
|
display: flex;
|
@@ -34,11 +34,11 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
34
34
|
>
|
35
35
|
${l(t)}
|
36
36
|
</div>
|
37
|
-
`}function
|
37
|
+
`}function h(e,t){return c.html`
|
38
38
|
<div style="break-inside: avoid; margin-bottom: 16px;">
|
39
39
|
${l(t)}
|
40
40
|
</div>
|
41
|
-
`}function
|
41
|
+
`}function g(e,t){let n=e?.columns??1;return c.html`
|
42
42
|
<div
|
43
43
|
style="
|
44
44
|
display: grid;
|
@@ -46,9 +46,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
46
46
|
${e?.gap?`gap: ${e.gap};`:``}
|
47
47
|
"
|
48
48
|
>
|
49
|
-
${
|
49
|
+
${u(t)}
|
50
50
|
</div>
|
51
|
-
`}function
|
51
|
+
`}function _(e,t){return c.html`
|
52
52
|
<div
|
53
53
|
style="
|
54
54
|
display: grid;
|
@@ -58,11 +58,11 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
58
58
|
>
|
59
59
|
${l(t)}
|
60
60
|
</div>
|
61
|
-
`}function
|
61
|
+
`}function v(e,t){return c.html`
|
62
62
|
<div style="${e?.span?`grid-column: span ${e.span};`:``}">
|
63
63
|
${l(t)}
|
64
64
|
</div>
|
65
|
-
`}function
|
65
|
+
`}function y(e,t){return c.html`
|
66
66
|
<div
|
67
67
|
style="
|
68
68
|
display: grid;
|
@@ -72,7 +72,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
72
72
|
>
|
73
73
|
${l(t)}
|
74
74
|
</div>
|
75
|
-
`}function
|
75
|
+
`}function b(e,t){return c.html`
|
76
76
|
<div
|
77
77
|
style="
|
78
78
|
display: flex;
|
@@ -80,9 +80,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
80
80
|
${e?.space?`gap: ${e.space};`:``}
|
81
81
|
"
|
82
82
|
>
|
83
|
-
${
|
83
|
+
${u(t)}
|
84
84
|
</div>
|
85
|
-
`}function
|
85
|
+
`}function x(e,t){let n=e?.columnCount??3,r=e?.gap??`16px`;return c.html`
|
86
86
|
<div
|
87
87
|
style="
|
88
88
|
column-count: ${n};
|
@@ -91,7 +91,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
91
91
|
>
|
92
92
|
${l(t)}
|
93
93
|
</div>
|
94
|
-
`}function
|
94
|
+
`}function S(e,t){let n=e?.gap??`0px`,r=e?.firstHeight??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=l(t);return c.html`
|
95
95
|
<div
|
96
96
|
style="
|
97
97
|
display: flex;
|
@@ -104,7 +104,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
104
104
|
<div style="flex: 0 0 ${r}; overflow: auto;">${i}</div>
|
105
105
|
<div style="flex: 1 1 auto; overflow: auto;">${a}</div>
|
106
106
|
</div>
|
107
|
-
`}function
|
107
|
+
`}function C(e,t){let n=e?.gap??`0px`,r=e?.firstWidth??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=l(t);return c.html`
|
108
108
|
<div
|
109
109
|
style="
|
110
110
|
display: flex;
|
@@ -117,28 +117,28 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
117
117
|
<div style="flex: 0 0 ${r}; overflow: auto;">${i}</div>
|
118
118
|
<div style="flex: 1 1 auto; overflow: auto;">${a}</div>
|
119
119
|
</div>
|
120
|
-
`}function
|
120
|
+
`}function w(e,t){let n=e?.direction??`vertical`,r=e?.height??`100%`,i=e?.width??`100%`,a=e?.customCss??``,o=e?.className??d(`scrollbar-container`),s=n===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`;return c.html`
|
121
121
|
<style>
|
122
|
-
|
123
|
-
${
|
122
|
+
.${o} {
|
123
|
+
${s};
|
124
124
|
width: ${i};
|
125
125
|
height: ${r};
|
126
126
|
}
|
127
|
-
|
127
|
+
.${o}::-webkit-scrollbar {
|
128
128
|
width: 8px;
|
129
129
|
height: 8px;
|
130
130
|
}
|
131
|
-
|
131
|
+
.${o}::-webkit-scrollbar-thumb {
|
132
132
|
background-color: rgba(0, 0, 0, 0.2);
|
133
133
|
border-radius: 4px;
|
134
134
|
}
|
135
|
-
|
135
|
+
.${o}::-webkit-scrollbar-track {
|
136
136
|
background: rgba(0, 0, 0, 0.05);
|
137
137
|
}
|
138
138
|
${a}
|
139
139
|
</style>
|
140
|
-
<div class="
|
141
|
-
`}function
|
140
|
+
<div class="${o}">${l(t)}</div>
|
141
|
+
`}function T(e,t){let n=e?.sidebarWidth??`240px`,r=e?.sidebarPosition??`left`,i=e?.gap??`0px`,a=c.html``,o=c.html``;if(typeof t==`function`){var s;let e=(s=t.call)?.call(t,null)??[];a=e[0]??c.html``,o=e[1]??c.html``}else o=u(t);return c.html`
|
142
142
|
<div
|
143
143
|
style="
|
144
144
|
display: flex;
|
@@ -151,9 +151,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
151
151
|
<div style="flex: 0 0 ${n}; overflow: auto;">${a}</div>
|
152
152
|
<div style="flex: 1 1 auto; overflow: auto;">${o}</div>
|
153
153
|
</div>
|
154
|
-
`}function
|
154
|
+
`}function E(e,t){var n;let r=e?.gap??`8px`,i=e?.snapType??`mandatory`,a=e?.height??`auto`,o=e?.width??`100%`,s=e?.className??d(`swiper`),l=s+`-container`,u=s+`-slide`,f=[];return typeof t==`function`?f=(n=t.call)?.call(t,null)??[]:t&&(f=[t]),c.html`
|
155
155
|
<style>
|
156
|
-
|
156
|
+
.${l} {
|
157
157
|
width: ${o};
|
158
158
|
height: ${a};
|
159
159
|
overflow-x: auto;
|
@@ -163,15 +163,15 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
163
163
|
-webkit-overflow-scrolling: touch;
|
164
164
|
gap: ${(0,c.unsafeCSS)(r)};
|
165
165
|
}
|
166
|
-
|
166
|
+
.${u} {
|
167
167
|
scroll-snap-align: start;
|
168
168
|
flex-shrink: 0;
|
169
169
|
}
|
170
170
|
</style>
|
171
|
-
<div class="
|
172
|
-
${
|
171
|
+
<div class="${l}">
|
172
|
+
${f.map(e=>c.html` <div class="${u}">${e}</div> `)}
|
173
173
|
</div>
|
174
|
-
`}function
|
174
|
+
`}function D(e,t){let n=e?.top?`top: ${e.top};`:``,r=e?.right?`right: ${e.right};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,a=e?.left?`left: ${e.left};`:``,o=e?.width?`width: ${e.width};`:``,s=e?.height?`height: ${e.height};`:``,u=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``;return c.html`
|
175
175
|
<div
|
176
176
|
style="
|
177
177
|
position: absolute;
|
@@ -182,7 +182,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
182
182
|
>
|
183
183
|
${l(t)}
|
184
184
|
</div>
|
185
|
-
`}function
|
185
|
+
`}function O(e,t){let n=e?.width??`300px`,r=e?.height??`auto`,i=e?.top??`20%`,a=e?.bottom??`auto`,o=e?.left??`50%`,s=e?.right??`auto`,l=o===`auto`?``:`transform: translateX(-50%);`,d=e?.background??`rgba(255, 255, 255, 0.3)`,f=e?.blur??`10px`,p=e?.borderRadius??`12px`,m=e?.padding??`16px`,h=e?.zIndex??1e3;return c.html`
|
186
186
|
<div
|
187
187
|
style="
|
188
188
|
position: fixed;
|
@@ -190,7 +190,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
190
190
|
bottom: ${a};
|
191
191
|
left: ${o};
|
192
192
|
right: ${s};
|
193
|
-
${
|
193
|
+
${l}
|
194
194
|
width: ${n};
|
195
195
|
height: ${r};
|
196
196
|
background: ${d};
|
@@ -204,9 +204,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
204
204
|
flex-direction: column;
|
205
205
|
"
|
206
206
|
>
|
207
|
-
${
|
207
|
+
${u(t)}
|
208
208
|
</div>
|
209
|
-
`}function
|
209
|
+
`}function k(e,t){let n=`${100/e.ratio}%`,r=e.maxWidth?`max-width: ${e.maxWidth};`:``,i=e.background?`background: ${e.background};`:``,a=e.overflow??`hidden`;return c.html`
|
210
210
|
<div
|
211
211
|
style="
|
212
212
|
position: relative;
|
@@ -226,10 +226,10 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
226
226
|
height: 100%;
|
227
227
|
"
|
228
228
|
>
|
229
|
-
${
|
229
|
+
${u(t)}
|
230
230
|
</div>
|
231
231
|
</div>
|
232
|
-
`}function
|
232
|
+
`}function A(e,t){let n=e?.gap??`16px`;return c.html`
|
233
233
|
<div
|
234
234
|
style="
|
235
235
|
display: grid;
|
@@ -239,11 +239,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
239
239
|
>
|
240
240
|
${l(t)}
|
241
241
|
</div>
|
242
|
-
`}function
|
243
|
-
<div
|
244
|
-
|
245
|
-
<div
|
246
|
-
style="
|
242
|
+
`}function j(e,t){let n=e?.size??`32px`,r=e?.overlap??`-8px`,i=(e,t)=>c.html`
|
243
|
+
<div
|
244
|
+
style="
|
247
245
|
width: ${n};
|
248
246
|
height: ${n};
|
249
247
|
border-radius: 50%;
|
@@ -252,12 +250,14 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
252
250
|
margin-left: ${t===0?`0`:r};
|
253
251
|
box-sizing: content-box;
|
254
252
|
"
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
253
|
+
>
|
254
|
+
${e}
|
255
|
+
</div>
|
256
|
+
`;return c.html`
|
257
|
+
<div style="display: flex; align-items: center;">
|
258
|
+
${u(t,i)}
|
259
259
|
</div>
|
260
|
-
`}function
|
260
|
+
`}function M(e,t){let n=e?.position??`top-right`,r=e?.size??`16px`,i=e?.background??`red`,a=e?.color??`#fff`,[o,s,u,d]=[n.includes(`top`)?`0`:`auto`,n.includes(`right`)?`0`:`auto`,n.includes(`bottom`)?`0`:`auto`,n.includes(`left`)?`0`:`auto`];return c.html`
|
261
261
|
<div style="position: relative; display: inline-block;">
|
262
262
|
${l(t)}
|
263
263
|
<div
|
@@ -282,7 +282,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
282
282
|
${e?.content??``}
|
283
283
|
</div>
|
284
284
|
</div>
|
285
|
-
`}function
|
285
|
+
`}function N(e,t){let n=e?.padding??`16px`,r=e?.borderRadius??`8px`,i=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,a=e?.background??`#fff`;return c.html`
|
286
286
|
<div
|
287
287
|
style="
|
288
288
|
background: ${a};
|
@@ -292,9 +292,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
292
292
|
box-sizing: border-box;
|
293
293
|
"
|
294
294
|
>
|
295
|
-
${
|
295
|
+
${u(t)}
|
296
296
|
</div>
|
297
|
-
`}function
|
297
|
+
`}function P(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``;return c.html`
|
298
298
|
<div
|
299
299
|
style="
|
300
300
|
display: flex;
|
@@ -305,7 +305,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
305
305
|
>
|
306
306
|
${l(t)}
|
307
307
|
</div>
|
308
|
-
`}function
|
308
|
+
`}function F(e,t){let n=e?.maxWidth??`1024px`,r=e?.padding??`0 16px`,i=e?.background?`background: ${e.background};`:``,a=e?.fullHeight?`height: 100%;`:``;return c.html`
|
309
309
|
<div
|
310
310
|
style="
|
311
311
|
width: 100%;
|
@@ -318,9 +318,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
318
318
|
box-sizing: border-box;
|
319
319
|
"
|
320
320
|
>
|
321
|
-
${
|
321
|
+
${u(t)}
|
322
322
|
</div>
|
323
|
-
`}function
|
323
|
+
`}function I(e){let t=e?.orientation??`horizontal`,n=e?.thickness??`1px`,r=e?.color??`#e0e0e0`,i=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),a=t===`horizontal`?`width: 100%; height: ${n}; background: ${r}; margin: ${i};`:`width: ${n}; height: 100%; background: ${r}; margin: ${i};`;return c.html`<div style="${a}"></div>`}function L(e,t){let n=e?.columns??4,r=e?.gap??`24px`,i=e?.background??`#f8f8f8`,a=e?.padding??`40px 16px`;return c.html`
|
324
324
|
<div
|
325
325
|
style="
|
326
326
|
width: 100%;
|
@@ -342,22 +342,22 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
342
342
|
© ${new Date().getFullYear()} Your Company. All rights reserved.
|
343
343
|
</div>
|
344
344
|
</div>
|
345
|
-
`}function
|
345
|
+
`}function R(e,t){let n=e.defaultColumns??1,r=e.gap??`16px`,i=e.className??d(`grid-breakpoint`),a=Object.entries(e.breakpoints).map(([e,t])=>`
|
346
346
|
@media ${e} {
|
347
|
-
|
347
|
+
.${i} { grid-template-columns: repeat(${t}, 1fr); }
|
348
348
|
}
|
349
349
|
`).join(`
|
350
350
|
`);return c.html`
|
351
351
|
<style>
|
352
|
-
|
352
|
+
.${i} {
|
353
353
|
display: grid;
|
354
354
|
grid-template-columns: repeat(${n}, 1fr);
|
355
355
|
gap: ${r};
|
356
356
|
}
|
357
|
-
${
|
357
|
+
${a}
|
358
358
|
</style>
|
359
|
-
<div class="
|
360
|
-
`}function
|
359
|
+
<div class="${i}">${l(t)}</div>
|
360
|
+
`}function z(e,t){let n=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,r=e?.height??`400px`,i=e?.overlayColor??`rgba(0, 0, 0, 0.3)`;return c.html`
|
361
361
|
<div
|
362
362
|
style="
|
363
363
|
position: relative;
|
@@ -391,40 +391,40 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
391
391
|
box-sizing: border-box;
|
392
392
|
"
|
393
393
|
>
|
394
|
-
${
|
394
|
+
${u(t)}
|
395
395
|
</div>
|
396
396
|
</div>
|
397
|
-
`}function
|
398
|
-
@media not ${n} {
|
397
|
+
`}function B(e,t){let n=e?.breakpoint??`(max-width: 600px)`,r=e?.mode??`hide`,i=e?.className??d(`hidden-container`),a=r===`hide`?`@media ${n} { .${i} { display: none !important; } }`:`@media ${n} { .${i} { display: block !important; } }
|
398
|
+
@media not ${n} { .${i} { display: none !important; } }`;return c.html`
|
399
399
|
<style>
|
400
|
-
|
400
|
+
.${i} {
|
401
401
|
display: block;
|
402
402
|
}
|
403
|
-
${
|
403
|
+
${a}
|
404
404
|
</style>
|
405
|
-
<div class="
|
406
|
-
`}function
|
405
|
+
<div class="${i}">${l(t)}</div>
|
406
|
+
`}function V(e,t){let n=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,r=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,i=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,a=e?.className??d(`list-group`);return c.html`
|
407
407
|
<style>
|
408
|
-
ul
|
408
|
+
ul.${a} {
|
409
409
|
list-style: none;
|
410
410
|
margin: 0;
|
411
411
|
padding: 0;
|
412
412
|
${n};
|
413
413
|
}
|
414
|
-
ul
|
414
|
+
ul.${a} li {
|
415
415
|
padding: 12px 16px;
|
416
416
|
${e?.bordered?`border-bottom: 1px solid #ddd`:``};
|
417
417
|
}
|
418
|
-
ul
|
418
|
+
ul.${a} li:last-child {
|
419
419
|
${e?.bordered?`border-bottom: none`:``};
|
420
420
|
}
|
421
421
|
${r}
|
422
422
|
${i}
|
423
423
|
</style>
|
424
|
-
<ul class="
|
424
|
+
<ul class="${a}">
|
425
425
|
${l(t)}
|
426
426
|
</ul>
|
427
|
-
`}function
|
427
|
+
`}function H(e,t){let n=e?.background??`rgba(0, 0, 0, 0.5)`,r=e?.zIndex??1e3,i=e?.fullScreen!==!1;return c.html`
|
428
428
|
<div
|
429
429
|
style="
|
430
430
|
position: ${i?`fixed`:`absolute`};
|
@@ -436,9 +436,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
436
436
|
align-items: center;
|
437
437
|
"
|
438
438
|
>
|
439
|
-
${
|
439
|
+
${u(t)}
|
440
440
|
</div>
|
441
|
-
`}function
|
441
|
+
`}function U(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``;return c.html`
|
442
442
|
<div
|
443
443
|
style="
|
444
444
|
position: relative;
|
@@ -448,23 +448,23 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
448
448
|
>
|
449
449
|
${l(t)}
|
450
450
|
</div>
|
451
|
-
`}function
|
451
|
+
`}function W(e){let t=e?.width?`width: ${e.width};`:``,n=e?.height?`height: ${e.height};`:``;return c.html` <div style="${t} ${n}"></div> `}function G(e){let t=e?.type??`rect`,n=e?.width??`100%`,r=e?.height??`16px`,i=e?.borderRadius??`4px`,a=e?.animation!==!1,o=e?.className??d(`skeleton-shimmer`),s=t===`circle`?`border-radius: 50%; width: ${n}; height: ${n}`:`border-radius: ${i}; width: ${n}; height: ${r}`;return c.html`
|
452
452
|
<style>
|
453
453
|
${`
|
454
|
-
@keyframes
|
454
|
+
@keyframes ${o+`-shimmer`} {
|
455
455
|
0% { background-color: #eee; }
|
456
456
|
50% { background-color: #ddd; }
|
457
457
|
100% { background-color: #eee; }
|
458
458
|
}
|
459
459
|
`}
|
460
|
-
|
461
|
-
${
|
460
|
+
.${o} {
|
461
|
+
${s};
|
462
462
|
background-color: #eee;
|
463
|
-
${a?`animation:
|
463
|
+
${a?`animation: ${o+`-shimmer`} 1.2s infinite ease-in-out`:``};
|
464
464
|
}
|
465
465
|
</style>
|
466
|
-
<div class="
|
467
|
-
`}function
|
466
|
+
<div class="${o}"></div>
|
467
|
+
`}function K(){return c.html`<div style="flex: 1 1 auto;"></div>`}function q(e,t){let n=e?.top?`top: ${e.top};`:``,r=e?.bottom?`bottom: ${e.bottom};`:``,i=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``;return c.html`
|
468
468
|
<div
|
469
469
|
style="
|
470
470
|
position: sticky;
|
@@ -474,30 +474,30 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
474
474
|
>
|
475
475
|
${l(t)}
|
476
476
|
</div>
|
477
|
-
`}function
|
478
|
-
tr:nth-child(even) { background: #f9f9f9; }
|
479
|
-
`:``,
|
480
|
-
tr:hover { background: #f1f1f1; }
|
481
|
-
`:``,
|
482
|
-
table, th, td { border: 1px solid #ddd; }
|
477
|
+
`}function J(e,t){let n=e?.className??d(`table`),r=e?.striped?`
|
478
|
+
.${n} tr:nth-child(even) { background: #f9f9f9; }
|
479
|
+
`:``,i=e?.hover?`
|
480
|
+
.${n} tr:hover { background: #f1f1f1; }
|
481
|
+
`:``,a=e?.bordered?`
|
482
|
+
.${n} table, .${n} th, .${n} td { border: 1px solid #ddd; }
|
483
483
|
`:``;return c.html`
|
484
484
|
<style>
|
485
|
-
table {
|
485
|
+
.${n} table {
|
486
486
|
width: 100%;
|
487
487
|
border-collapse: collapse;
|
488
488
|
}
|
489
|
-
th, td {
|
489
|
+
.${n} th, .${n} td {
|
490
490
|
padding: 8px 12px;
|
491
491
|
text-align: left;
|
492
492
|
}
|
493
|
-
${n}
|
494
493
|
${r}
|
495
494
|
${i}
|
495
|
+
${a}
|
496
496
|
</style>
|
497
|
-
<table>
|
497
|
+
<table class="table">
|
498
498
|
${l(t)}
|
499
499
|
</table>
|
500
|
-
`}function
|
500
|
+
`}function Y(e,t){let n=e?.direction??`row`;return c.html`
|
501
501
|
<div
|
502
502
|
style="
|
503
503
|
display: flex;
|
@@ -508,9 +508,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
508
508
|
${e?.justify?`justify-content: ${e.justify};`:``}
|
509
509
|
"
|
510
510
|
>
|
511
|
-
${
|
511
|
+
${u(t)}
|
512
512
|
</div>
|
513
|
-
`}function
|
513
|
+
`}function X(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=`flex-start`,o=`flex-start`;switch(e?.align){case`top-right`:a=`flex-end`,o=`flex-start`;break;case`center`:a=`center`,o=`center`;break;case`bottom-left`:a=`flex-start`,o=`flex-end`;break;case`bottom-right`:a=`flex-end`,o=`flex-end`;break;default:a=`flex-start`,o=`flex-start`}return c.html`
|
514
514
|
<div
|
515
515
|
style="
|
516
516
|
position: relative;
|
@@ -520,7 +520,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
520
520
|
${n} ${r} ${i}
|
521
521
|
"
|
522
522
|
>
|
523
|
-
${
|
523
|
+
${u(t)}
|
524
524
|
</div>
|
525
|
-
`}exports.AbsoluteBox=
|
525
|
+
`}exports.AbsoluteBox=D,exports.AcrylicBar=O,exports.AspectRatio=k,exports.AutoFitGrid=A,exports.AvatarStack=j,exports.Badge=M,exports.Card=N,exports.Center=P,exports.Column=p,exports.ColumnSplit=S,exports.Container=F,exports.Divider=I,exports.Flex=m,exports.FlowItem=h,exports.FooterLayout=L,exports.Grid=g,exports.GridBreakpoint=R,exports.GridCol=_,exports.GridItem=v,exports.GridRow=y,exports.HeroSection=z,exports.Hidden=B,exports.LightboxContainer=f,exports.ListGroup=V,exports.Overlay=H,exports.PositionContainer=U,exports.Row=b,exports.RowSplit=C,exports.ScrollBar=w,exports.SideBarContainer=T,exports.SizedBox=W,exports.SkeletonLoader=G,exports.Spacer=K,exports.Sticky=q,exports.Swiper=E,exports.Table=J,exports.WaterFlow=x,exports.Wrap=Y,exports.ZStack=X;
|
526
526
|
//# sourceMappingURL=index.cjs.js.map
|