@cntrl-site/components 1.0.118 → 1.0.119
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/{ChroniclesComponent-DkG1aICD.js → ChroniclesComponent-Bp8Zmj26.js} +1 -1
- package/dist/{ChroniclesComponent-kkKhL_qt.mjs → ChroniclesComponent-D_YAkpJZ.mjs} +3 -3
- package/dist/Components/SimpleButton/SimpleButtonComponent.d.ts +2 -0
- package/dist/SimpleButton-BrIUFz_a.js +289 -0
- package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-GXckV2Tj.mjs} +198 -141
- package/dist/{components-BLyOKMdK.mjs → components-6CfbAMrX.mjs} +1 -1
- package/dist/{components-CVetdKi7.js → components-DcHbdTvp.js} +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +1 -1
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +76 -11
- package/dist/sources.mjs +76 -11
- package/package.json +1 -1
- package/dist/SimpleButton-nGEcO2gB.js +0 -243
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { S as
|
|
1
|
+
import { jsx as c, jsxs as w, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as wo } from "react";
|
|
3
|
+
import { S as xo } from "./SvgImage-B5mR9y6q.mjs";
|
|
4
4
|
import { s as t } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
|
-
import { b as
|
|
6
|
-
import { u as
|
|
7
|
-
import { o as
|
|
8
|
-
const
|
|
5
|
+
import { b as yo } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
|
+
import { u as ko } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
|
+
import { o as Co, t as So } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
+
const No = {
|
|
9
9
|
backgroundColor: "background-color",
|
|
10
10
|
textColor: "text-color",
|
|
11
11
|
borderColor: "border-color",
|
|
12
12
|
iconColor: "icon-color",
|
|
13
13
|
boxShadowColor: "box-shadow-color",
|
|
14
14
|
innerBoxShadowColor: "inner-box-shadow-color"
|
|
15
|
-
},
|
|
15
|
+
}, To = ["hover", "active"], Ao = (o) => !!o && o.includes("gradient("), I = {
|
|
16
16
|
left: "flex-start",
|
|
17
17
|
center: "center",
|
|
18
18
|
right: "flex-end"
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
const n = o.currentTarget, a = n.getBoundingClientRect(),
|
|
22
|
-
n.classList.toggle(`${e}-reveal-from-bottom`,
|
|
20
|
+
function Bo(o, e) {
|
|
21
|
+
const n = o.currentTarget, a = n.getBoundingClientRect(), i = o.clientY - a.top > a.height / 2;
|
|
22
|
+
n.classList.toggle(`${e}-reveal-from-bottom`, i);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const n = o.currentTarget, a = n.getBoundingClientRect(),
|
|
26
|
-
n.classList.toggle(`${e}-reveal-from-bottom`,
|
|
24
|
+
function Ro(o, e) {
|
|
25
|
+
const n = o.currentTarget, a = n.getBoundingClientRect(), i = o.clientY < a.top + a.height / 2;
|
|
26
|
+
n.classList.toggle(`${e}-reveal-from-bottom`, i);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const e = `var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-box-shadow-color, transparent)`, n = `inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-inner-box-shadow-color, transparent)`, a = `${e}, ${n}`,
|
|
28
|
+
function Io(o) {
|
|
29
|
+
const e = `var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-box-shadow-color, transparent)`, n = `inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-inner-box-shadow-color, transparent)`, a = `${e}, ${n}`, i = `var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-hover-box-shadow-color, var(--${o}-box-shadow-color, transparent))`, r = `inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-hover-inner-box-shadow-color, var(--${o}-inner-box-shadow-color, transparent))`, $ = `${i}, ${r}`, s = `var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-active-box-shadow-color, var(--${o}-box-shadow-color, transparent))`, b = `inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-active-inner-box-shadow-color, var(--${o}-inner-box-shadow-color, transparent))`, m = `${s}, ${b}`, x = `0 4px 12px rgba(0, 0, 0, 0.15), ${n}`, N = `.${o}-button:focus-visible, a:focus-visible .${o}-button`, T = `.${o}-button:hover, ${N}`, d = (h) => `.${o}-hover-effect-${h}:hover, .${o}-hover-effect-${h}:focus-visible, a:focus-visible .${o}-hover-effect-${h}`;
|
|
30
30
|
return `
|
|
31
31
|
.${o}-root {
|
|
32
32
|
line-height: 0;
|
|
@@ -42,7 +42,7 @@ function No(o) {
|
|
|
42
42
|
box-sizing: border-box;
|
|
43
43
|
border-style: solid;
|
|
44
44
|
border-color: var(--${o}-border-color);
|
|
45
|
-
background
|
|
45
|
+
background: var(--${o}-background-color);
|
|
46
46
|
color: var(--${o}-text-color);
|
|
47
47
|
-webkit-backdrop-filter: var(--${o}-backdrop-blur, none);
|
|
48
48
|
backdrop-filter: var(--${o}-backdrop-blur, none);
|
|
@@ -59,14 +59,14 @@ function No(o) {
|
|
|
59
59
|
.${o}-wrapper.${o}-editing .${o}-button {
|
|
60
60
|
transition: color 250ms, background-color 250ms, border-color 250ms, transform 250ms;
|
|
61
61
|
}
|
|
62
|
-
${
|
|
62
|
+
${d("scale-up")},
|
|
63
63
|
.${o}-wrapper.${o}-state-hover .${o}-hover-effect-scale-up {
|
|
64
64
|
transform: scale(1.05);
|
|
65
65
|
}
|
|
66
|
-
${
|
|
66
|
+
${d("lift")},
|
|
67
67
|
.${o}-wrapper.${o}-state-hover .${o}-hover-effect-lift {
|
|
68
68
|
transform: translateY(-2px);
|
|
69
|
-
box-shadow: ${
|
|
69
|
+
box-shadow: ${x};
|
|
70
70
|
}
|
|
71
71
|
.${o}-hover-effect-reveal,
|
|
72
72
|
.${o}-hover-effect-swipe {
|
|
@@ -86,7 +86,7 @@ ${v("lift")},
|
|
|
86
86
|
content: '';
|
|
87
87
|
position: absolute;
|
|
88
88
|
inset: 0;
|
|
89
|
-
background
|
|
89
|
+
background: var(--${o}-hover-background-color, var(--${o}-background-color));
|
|
90
90
|
pointer-events: none;
|
|
91
91
|
z-index: 0;
|
|
92
92
|
transform: scaleY(0);
|
|
@@ -113,7 +113,7 @@ a:focus-visible .${o}-hover-effect-reveal.${o}-reveal-from-bottom::before,
|
|
|
113
113
|
content: '';
|
|
114
114
|
position: absolute;
|
|
115
115
|
inset: 0;
|
|
116
|
-
background
|
|
116
|
+
background: var(--${o}-hover-background-color, var(--${o}-background-color));
|
|
117
117
|
pointer-events: none;
|
|
118
118
|
z-index: 0;
|
|
119
119
|
transform: translateX(-100%);
|
|
@@ -125,11 +125,11 @@ a:focus-visible .${o}-hover-effect-swipe::before,
|
|
|
125
125
|
.${o}-wrapper.${o}-state-hover .${o}-hover-effect-swipe::before {
|
|
126
126
|
transform: translateX(0);
|
|
127
127
|
}
|
|
128
|
-
${
|
|
128
|
+
${d("reveal")},
|
|
129
129
|
.${o}-wrapper.${o}-state-hover .${o}-hover-effect-reveal,
|
|
130
|
-
${
|
|
130
|
+
${d("swipe")},
|
|
131
131
|
.${o}-wrapper.${o}-state-hover .${o}-hover-effect-swipe {
|
|
132
|
-
background
|
|
132
|
+
background: var(--${o}-background-color);
|
|
133
133
|
}
|
|
134
134
|
.${o}-hover-effect-content-roll {
|
|
135
135
|
position: relative;
|
|
@@ -191,15 +191,17 @@ a:focus-visible .${o}-hover-effect-content-roll .${o}-content-roll-layer-hover,
|
|
|
191
191
|
opacity: 1;
|
|
192
192
|
}
|
|
193
193
|
${T} {
|
|
194
|
-
background
|
|
194
|
+
background: var(--${o}-hover-background-color, var(--${o}-background-color));
|
|
195
195
|
color: var(--${o}-hover-text-color, var(--${o}-text-color));
|
|
196
196
|
border-color: var(--${o}-hover-border-color, var(--${o}-border-color));
|
|
197
|
+
--${o}-border-fill: var(--${o}-hover-border-color, var(--${o}-border-color));
|
|
197
198
|
box-shadow: ${$};
|
|
198
199
|
}
|
|
199
200
|
.${o}-wrapper.${o}-state-hover .${o}-button {
|
|
200
|
-
background
|
|
201
|
+
background: var(--${o}-hover-background-color, var(--${o}-background-color));
|
|
201
202
|
color: var(--${o}-hover-text-color, var(--${o}-text-color));
|
|
202
203
|
border-color: var(--${o}-hover-border-color, var(--${o}-border-color));
|
|
204
|
+
--${o}-border-fill: var(--${o}-hover-border-color, var(--${o}-border-color));
|
|
203
205
|
box-shadow: ${$};
|
|
204
206
|
}
|
|
205
207
|
.${o}-button:focus,
|
|
@@ -210,16 +212,60 @@ a:focus-visible:has(.${o}-button) {
|
|
|
210
212
|
}
|
|
211
213
|
.${o}-button:active,
|
|
212
214
|
a:active .${o}-button {
|
|
213
|
-
background
|
|
215
|
+
background: var(--${o}-active-background-color, var(--${o}-background-color));
|
|
214
216
|
color: var(--${o}-active-text-color, var(--${o}-text-color));
|
|
215
217
|
border-color: var(--${o}-active-border-color, var(--${o}-border-color));
|
|
216
|
-
|
|
218
|
+
--${o}-border-fill: var(--${o}-active-border-color, var(--${o}-border-color));
|
|
219
|
+
box-shadow: ${m};
|
|
217
220
|
}
|
|
218
221
|
.${o}-wrapper.${o}-state-active .${o}-button {
|
|
219
|
-
background
|
|
222
|
+
background: var(--${o}-active-background-color, var(--${o}-background-color));
|
|
220
223
|
color: var(--${o}-active-text-color, var(--${o}-text-color));
|
|
221
224
|
border-color: var(--${o}-active-border-color, var(--${o}-border-color));
|
|
222
|
-
|
|
225
|
+
--${o}-border-fill: var(--${o}-active-border-color, var(--${o}-border-color));
|
|
226
|
+
box-shadow: ${m};
|
|
227
|
+
}
|
|
228
|
+
/* Gradient border: CSS borders can't take gradients with radius, so the transparent border is covered by a masked ring. */
|
|
229
|
+
.${o}-border-gradient {
|
|
230
|
+
position: relative;
|
|
231
|
+
}
|
|
232
|
+
.${o}-border-gradient::after {
|
|
233
|
+
content: '';
|
|
234
|
+
position: absolute;
|
|
235
|
+
inset: calc(var(--${o}-stroke) * -1);
|
|
236
|
+
padding: var(--${o}-stroke);
|
|
237
|
+
border-radius: inherit;
|
|
238
|
+
background: var(--${o}-border-fill, var(--${o}-border-color));
|
|
239
|
+
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
240
|
+
-webkit-mask-composite: xor;
|
|
241
|
+
mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
|
|
242
|
+
pointer-events: none;
|
|
243
|
+
z-index: 2;
|
|
244
|
+
}
|
|
245
|
+
/* overflow would clip the ring, so these effects clip their moving parts instead */
|
|
246
|
+
.${o}-border-gradient.${o}-hover-effect-reveal,
|
|
247
|
+
.${o}-border-gradient.${o}-hover-effect-swipe,
|
|
248
|
+
.${o}-border-gradient.${o}-hover-effect-content-roll {
|
|
249
|
+
overflow: visible;
|
|
250
|
+
}
|
|
251
|
+
.${o}-border-gradient.${o}-hover-effect-reveal::before,
|
|
252
|
+
.${o}-border-gradient.${o}-hover-effect-swipe::before {
|
|
253
|
+
border-radius: max(0px, calc(var(--${o}-radius) - var(--${o}-stroke)));
|
|
254
|
+
}
|
|
255
|
+
.${o}-border-gradient.${o}-hover-effect-swipe::before {
|
|
256
|
+
transform: none;
|
|
257
|
+
clip-path: inset(0 100% 0 0);
|
|
258
|
+
transition: clip-path 250ms;
|
|
259
|
+
}
|
|
260
|
+
.${o}-border-gradient.${o}-hover-effect-swipe:hover::before,
|
|
261
|
+
.${o}-border-gradient.${o}-hover-effect-swipe:focus-visible::before,
|
|
262
|
+
a:focus-visible .${o}-border-gradient.${o}-hover-effect-swipe::before,
|
|
263
|
+
.${o}-wrapper.${o}-state-hover .${o}-border-gradient.${o}-hover-effect-swipe::before {
|
|
264
|
+
clip-path: inset(0);
|
|
265
|
+
}
|
|
266
|
+
/* clip the roll at the padding edge, where the button itself would have clipped it */
|
|
267
|
+
.${o}-border-gradient .${o}-content-roll-viewport {
|
|
268
|
+
clip-path: var(--${o}-roll-clip);
|
|
223
269
|
}
|
|
224
270
|
.${o}-text {
|
|
225
271
|
display: block;
|
|
@@ -271,20 +317,20 @@ a:active .${o}-button .${o}-icon-image,
|
|
|
271
317
|
}
|
|
272
318
|
`;
|
|
273
319
|
}
|
|
274
|
-
function
|
|
320
|
+
function L(o, e, n = "", a, i) {
|
|
275
321
|
const r = e();
|
|
276
|
-
return /* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */ c("span", { className: `${o}-content-roll-spacer`, "aria-hidden": "true", style:
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */ c("span", { className: `${o}-content-roll-layer`, style:
|
|
280
|
-
/* @__PURE__ */ c("span", { className: `${o}-content-roll-layer ${o}-content-roll-layer-hover`, "aria-hidden": "true", style:
|
|
322
|
+
return /* @__PURE__ */ w("span", { className: `${o}-content-roll-wrap ${n}`.trim(), style: a, children: [
|
|
323
|
+
/* @__PURE__ */ c("span", { className: `${o}-content-roll-spacer`, "aria-hidden": "true", style: i, children: r }),
|
|
324
|
+
/* @__PURE__ */ w("span", { className: `${o}-content-roll-viewport`, children: [
|
|
325
|
+
/* @__PURE__ */ c("span", { className: `${o}-content-roll-layer`, style: i, children: e() }),
|
|
326
|
+
/* @__PURE__ */ c("span", { className: `${o}-content-roll-layer ${o}-content-roll-layer-hover`, "aria-hidden": "true", style: i, children: e() })
|
|
281
327
|
] })
|
|
282
328
|
] });
|
|
283
329
|
}
|
|
284
|
-
function
|
|
330
|
+
function X(o, e, n = "fill", a = 100, i = 0, r) {
|
|
285
331
|
if (!e) return null;
|
|
286
332
|
const $ = /* @__PURE__ */ c(
|
|
287
|
-
|
|
333
|
+
xo,
|
|
288
334
|
{
|
|
289
335
|
url: e,
|
|
290
336
|
fill: `var(--${o}-icon-color)`,
|
|
@@ -302,70 +348,70 @@ function H(o, e, n = "fill", a = 100, l = 0, r) {
|
|
|
302
348
|
children: $
|
|
303
349
|
}
|
|
304
350
|
);
|
|
305
|
-
if (n === "fixed" &&
|
|
306
|
-
const
|
|
307
|
-
return /* @__PURE__ */ c("span", { className: `${o}-icon`, style: { width:
|
|
351
|
+
if (n === "fixed" && i > 0) {
|
|
352
|
+
const s = t(i, r);
|
|
353
|
+
return /* @__PURE__ */ c("span", { className: `${o}-icon`, style: { width: s, height: s }, "aria-hidden": "true", children: $ });
|
|
308
354
|
}
|
|
309
355
|
return /* @__PURE__ */ c("span", { className: `${o}-icon ${o}-icon-fill`, "aria-hidden": "true", children: $ });
|
|
310
356
|
}
|
|
311
|
-
function
|
|
312
|
-
const { prefix: r } =
|
|
313
|
-
type:
|
|
314
|
-
label:
|
|
315
|
-
icon:
|
|
316
|
-
alignment:
|
|
357
|
+
function Wo({ settings: o, isEditor: e, isPreviewMode: n, activeEvent: a, hasLink: i }) {
|
|
358
|
+
const { prefix: r } = ko(), $ = wo(() => Io(r), [r]), {
|
|
359
|
+
type: s = "a",
|
|
360
|
+
label: b = "Button",
|
|
361
|
+
icon: m,
|
|
362
|
+
alignment: x = "center",
|
|
317
363
|
alignA: N,
|
|
318
364
|
order: T = "text-icon",
|
|
319
|
-
gap:
|
|
320
|
-
iconSize:
|
|
321
|
-
iconWidthC:
|
|
322
|
-
dimensions:
|
|
323
|
-
padding:
|
|
324
|
-
cornerRadius:
|
|
365
|
+
gap: d = 0,
|
|
366
|
+
iconSize: h = 0,
|
|
367
|
+
iconWidthC: O = 0,
|
|
368
|
+
dimensions: K = !1,
|
|
369
|
+
padding: v = { top: 0, right: 0, bottom: 0, left: 0 },
|
|
370
|
+
cornerRadius: Y = 0,
|
|
325
371
|
boxShadow: y = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
326
|
-
boxShadowColor:
|
|
372
|
+
boxShadowColor: q = "rgba(0, 0, 0, 0)",
|
|
327
373
|
innerBoxShadow: k = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
328
|
-
innerBoxShadowColor:
|
|
329
|
-
stroke:
|
|
330
|
-
blur:
|
|
331
|
-
backgroundColor:
|
|
332
|
-
textColor:
|
|
333
|
-
borderColor:
|
|
334
|
-
iconColor:
|
|
335
|
-
hoverEffect:
|
|
336
|
-
fontFamily:
|
|
337
|
-
fontSettings:
|
|
338
|
-
fontSize:
|
|
339
|
-
lineHeight:
|
|
340
|
-
letterSpacing:
|
|
341
|
-
wordSpacing:
|
|
342
|
-
textAppearance:
|
|
343
|
-
stateOverrides:
|
|
344
|
-
minWidth:
|
|
345
|
-
minHeight:
|
|
346
|
-
width:
|
|
347
|
-
height:
|
|
348
|
-
} = o,
|
|
349
|
-
backgroundColor:
|
|
350
|
-
textColor:
|
|
351
|
-
borderColor:
|
|
352
|
-
iconColor:
|
|
353
|
-
boxShadowColor:
|
|
354
|
-
innerBoxShadowColor:
|
|
355
|
-
},
|
|
374
|
+
innerBoxShadowColor: J = "rgba(0, 0, 0, 0)",
|
|
375
|
+
stroke: F = 0,
|
|
376
|
+
blur: z = 0,
|
|
377
|
+
backgroundColor: Q = "#000000",
|
|
378
|
+
textColor: M = "#ffffff",
|
|
379
|
+
borderColor: H = "#ffffff",
|
|
380
|
+
iconColor: U = "#ffffff",
|
|
381
|
+
hoverEffect: f = "none",
|
|
382
|
+
fontFamily: Z,
|
|
383
|
+
fontSettings: p,
|
|
384
|
+
fontSize: E,
|
|
385
|
+
lineHeight: P,
|
|
386
|
+
letterSpacing: oo = 0,
|
|
387
|
+
wordSpacing: eo = 0,
|
|
388
|
+
textAppearance: ro,
|
|
389
|
+
stateOverrides: j,
|
|
390
|
+
minWidth: to = 0,
|
|
391
|
+
minHeight: no = 0,
|
|
392
|
+
width: ao = 0,
|
|
393
|
+
height: lo = 0
|
|
394
|
+
} = o, io = yo(r, {
|
|
395
|
+
backgroundColor: Q,
|
|
396
|
+
textColor: M,
|
|
397
|
+
borderColor: H,
|
|
398
|
+
iconColor: U,
|
|
399
|
+
boxShadowColor: q,
|
|
400
|
+
innerBoxShadowColor: J
|
|
401
|
+
}, No, To, j), co = a && a !== "default" ? `${r}-state-${a}` : "", so = e && !n ? `${r}-editing` : "", $o = f !== "none" && (!e || n || a === "hover") ? `${r}-hover-effect-${f}` : "", vo = f === "reveal" || f === "swipe", C = f === "content-roll", V = f === "reveal" && (!e || n), A = F > 0 && [H, ...Object.values(j ?? {}).map((l) => l == null ? void 0 : l.borderColor)].some(Ao), bo = A ? `${r}-border-gradient` : "", W = t(F, e), _ = `max(1px, round(down, ${W}, 1px))`, ho = K === !0, u = s === "a" ? N ?? x : x, g = s === "c", fo = s !== "b", po = {
|
|
356
402
|
fontSettings: {
|
|
357
|
-
fontFamily:
|
|
358
|
-
fontWeight: (
|
|
359
|
-
fontStyle: (
|
|
403
|
+
fontFamily: Z,
|
|
404
|
+
fontWeight: (p == null ? void 0 : p.fontWeight) ?? 400,
|
|
405
|
+
fontStyle: (p == null ? void 0 : p.fontStyle) ?? "normal"
|
|
360
406
|
},
|
|
361
|
-
fontSize:
|
|
362
|
-
lineHeight:
|
|
363
|
-
letterSpacing:
|
|
364
|
-
wordSpacing:
|
|
365
|
-
textAppearance:
|
|
366
|
-
color:
|
|
367
|
-
},
|
|
368
|
-
|
|
407
|
+
fontSize: E ?? 0.01,
|
|
408
|
+
lineHeight: P,
|
|
409
|
+
letterSpacing: oo,
|
|
410
|
+
wordSpacing: eo,
|
|
411
|
+
textAppearance: ro,
|
|
412
|
+
color: M
|
|
413
|
+
}, uo = {
|
|
414
|
+
...fo ? Co(So(po, e)) : {},
|
|
369
415
|
[`--${r}-box-shadow-x`]: t(y.left, e),
|
|
370
416
|
[`--${r}-box-shadow-y`]: t(y.top, e),
|
|
371
417
|
[`--${r}-box-shadow-blur`]: t(y.right, e),
|
|
@@ -374,78 +420,89 @@ function Oo({ settings: o, isEditor: e, isPreviewMode: n, activeEvent: a, hasLin
|
|
|
374
420
|
[`--${r}-inner-box-shadow-y`]: t(k.top, e),
|
|
375
421
|
[`--${r}-inner-box-shadow-blur`]: t(k.right, e),
|
|
376
422
|
[`--${r}-inner-box-shadow-spread`]: t(k.bottom, e),
|
|
377
|
-
[`--${r}-backdrop-blur`]:
|
|
378
|
-
paddingTop: t(
|
|
379
|
-
paddingRight: t(
|
|
380
|
-
paddingBottom: t(
|
|
381
|
-
paddingLeft: t(
|
|
382
|
-
borderRadius: t(
|
|
383
|
-
borderWidth:
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
423
|
+
[`--${r}-backdrop-blur`]: z > 0 ? `blur(${t(z, e)})` : void 0,
|
|
424
|
+
paddingTop: t(v.top, e),
|
|
425
|
+
paddingRight: t(v.right, e),
|
|
426
|
+
paddingBottom: t(v.bottom, e),
|
|
427
|
+
paddingLeft: t(v.left, e),
|
|
428
|
+
borderRadius: t(Y, e),
|
|
429
|
+
borderWidth: A ? _ : W,
|
|
430
|
+
// Like a CSS border: the background stops at it, and the ring paints over it
|
|
431
|
+
...A ? {
|
|
432
|
+
[`--${r}-stroke`]: _,
|
|
433
|
+
[`--${r}-radius`]: t(Y, e),
|
|
434
|
+
[`--${r}-roll-clip`]: `inset(${[v.top, v.right, v.bottom, v.left].map((l) => `calc(${t(l, e)} * -1)`).join(" ")})`,
|
|
435
|
+
borderColor: "transparent",
|
|
436
|
+
backgroundClip: "padding-box"
|
|
437
|
+
} : {
|
|
438
|
+
// A gradient background spans the border box, so it doesn't repeat under a see-through border
|
|
439
|
+
backgroundOrigin: "border-box"
|
|
440
|
+
},
|
|
441
|
+
...g ? {} : {
|
|
442
|
+
justifyContent: I[u],
|
|
443
|
+
textAlign: u
|
|
387
444
|
},
|
|
388
|
-
...
|
|
389
|
-
...
|
|
390
|
-
width: t(
|
|
391
|
-
height: t(
|
|
445
|
+
...g && !C ? { gap: t(d, e) } : {},
|
|
446
|
+
...ho ? {
|
|
447
|
+
width: t(ao, e),
|
|
448
|
+
height: t(lo, e)
|
|
392
449
|
} : {
|
|
393
|
-
minWidth: t(
|
|
394
|
-
minHeight: t(
|
|
395
|
-
...
|
|
450
|
+
minWidth: t(to, e),
|
|
451
|
+
minHeight: t(no, e),
|
|
452
|
+
...g ? { width: "100%" } : {}
|
|
396
453
|
}
|
|
397
454
|
};
|
|
398
455
|
let S;
|
|
399
|
-
const
|
|
456
|
+
const B = {
|
|
400
457
|
display: "inline-flex",
|
|
401
458
|
alignItems: "center",
|
|
402
|
-
justifyContent:
|
|
403
|
-
gap:
|
|
459
|
+
justifyContent: g ? I[u] : I[s === "a" ? u : "center"],
|
|
460
|
+
gap: g ? t(d, e) : void 0,
|
|
404
461
|
width: "100%",
|
|
405
462
|
height: "100%",
|
|
406
|
-
...
|
|
463
|
+
...s === "a" ? { textAlign: u } : {}
|
|
407
464
|
};
|
|
408
|
-
if (
|
|
409
|
-
const
|
|
410
|
-
S = C ?
|
|
411
|
-
} else if (
|
|
412
|
-
const
|
|
413
|
-
const
|
|
465
|
+
if (s === "b") {
|
|
466
|
+
const l = () => X(r, m, h > 0 ? "fixed" : "fill", 100, h, e);
|
|
467
|
+
S = C ? L(r, l, `${r}-icon-roll`, void 0, B) : l();
|
|
468
|
+
} else if (s === "c") {
|
|
469
|
+
const l = () => {
|
|
470
|
+
const G = /* @__PURE__ */ c(
|
|
414
471
|
"span",
|
|
415
472
|
{
|
|
416
473
|
className: `${r}-text`,
|
|
417
|
-
style: { textAlign:
|
|
418
|
-
children:
|
|
474
|
+
style: { textAlign: u },
|
|
475
|
+
children: b
|
|
419
476
|
}
|
|
420
|
-
),
|
|
421
|
-
return T === "icon-text" ? /* @__PURE__ */
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
] }) : /* @__PURE__ */
|
|
425
|
-
|
|
426
|
-
|
|
477
|
+
), D = X(r, m, O > 0 ? "fixed" : "fill", 100, O, e);
|
|
478
|
+
return T === "icon-text" ? /* @__PURE__ */ w(R, { children: [
|
|
479
|
+
D,
|
|
480
|
+
G
|
|
481
|
+
] }) : /* @__PURE__ */ w(R, { children: [
|
|
482
|
+
G,
|
|
483
|
+
D
|
|
427
484
|
] });
|
|
428
485
|
};
|
|
429
|
-
S = C ?
|
|
486
|
+
S = C ? L(r, l, `${r}-icon-text-roll`, void 0, B) : l();
|
|
430
487
|
} else
|
|
431
|
-
S = C ?
|
|
432
|
-
const
|
|
433
|
-
return /* @__PURE__ */
|
|
488
|
+
S = C ? L(r, () => b, `${r}-label-roll`, void 0, B) : vo ? /* @__PURE__ */ c("span", { className: `${r}-button-inner`, children: b }) : b;
|
|
489
|
+
const mo = V ? (l) => Bo(l, r) : void 0, go = V ? (l) => Ro(l, r) : void 0;
|
|
490
|
+
return /* @__PURE__ */ w(R, { children: [
|
|
434
491
|
/* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: $ } }),
|
|
435
|
-
/* @__PURE__ */ c("div", { className: `${r}-root`, style:
|
|
492
|
+
/* @__PURE__ */ c("div", { className: `${r}-root`, style: io, children: /* @__PURE__ */ c("div", { className: `${r}-wrapper ${co} ${so}`.trim(), children: /* @__PURE__ */ c(
|
|
436
493
|
"div",
|
|
437
494
|
{
|
|
438
|
-
className: `${r}-button ${
|
|
439
|
-
style:
|
|
440
|
-
onMouseEnter:
|
|
441
|
-
onMouseLeave:
|
|
495
|
+
className: `${r}-button ${$o} ${bo}`.trim(),
|
|
496
|
+
style: uo,
|
|
497
|
+
onMouseEnter: mo,
|
|
498
|
+
onMouseLeave: go,
|
|
442
499
|
role: "button",
|
|
443
|
-
tabIndex:
|
|
500
|
+
tabIndex: i || e && !n ? void 0 : 0,
|
|
444
501
|
children: S
|
|
445
502
|
}
|
|
446
503
|
) }) })
|
|
447
504
|
] });
|
|
448
505
|
}
|
|
449
506
|
export {
|
|
450
|
-
|
|
507
|
+
Wo as SimpleButton
|
|
451
508
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ControlSlider as e } from "./ControlSlider-DqKfaKMG.mjs";
|
|
2
2
|
import { ImageRevealSlider as t } from "./ImageRevealSlider-DifEXySR.mjs";
|
|
3
3
|
import { LightboxGallery as i } from "./Lightbox-BY99NS14.mjs";
|
|
4
|
-
import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as h, f, g as v, h as C, i as x, B as S, P as k, j as I } from "./ChroniclesComponent-
|
|
4
|
+
import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as h, f, g as v, h as C, i as x, B as S, P as k, j as I } from "./ChroniclesComponent-D_YAkpJZ.mjs";
|
|
5
5
|
const j = {
|
|
6
6
|
element: e,
|
|
7
7
|
id: "control-slider",
|