@youversion/design-system-components 3.7.0 → 3.8.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/CHANGELOG.md +13 -0
- package/dist/index.es.js +49 -49
- package/dist/index.umd.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @youversion/design-system-components
|
|
2
2
|
|
|
3
|
+
## 3.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [0fae060]
|
|
8
|
+
- @youversion/design-system-icons@2.1.0
|
|
9
|
+
|
|
10
|
+
## 3.8.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 5058945: Fixed shape of the clear image button on the ImageUpload component.
|
|
15
|
+
|
|
3
16
|
## 3.7.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/index.es.js
CHANGED
|
@@ -501,13 +501,13 @@ function y1(l) {
|
|
|
501
501
|
function z2(l) {
|
|
502
502
|
return l.endsWith("%") && y1(l.slice(0, -1));
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function I1(l) {
|
|
505
505
|
return m0(l) || C1(l, "number", m0);
|
|
506
506
|
}
|
|
507
507
|
function X(l) {
|
|
508
508
|
return te.test(l);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function S1() {
|
|
511
511
|
return !0;
|
|
512
512
|
}
|
|
513
513
|
function b1(l) {
|
|
@@ -566,7 +566,7 @@ function x0() {
|
|
|
566
566
|
return {
|
|
567
567
|
cacheSize: 500,
|
|
568
568
|
theme: {
|
|
569
|
-
colors: [
|
|
569
|
+
colors: [S1],
|
|
570
570
|
spacing: [h1],
|
|
571
571
|
blur: ["none", "", b1, m1],
|
|
572
572
|
brightness: c1(),
|
|
@@ -806,7 +806,7 @@ function x0() {
|
|
|
806
806
|
* @see https://tailwindcss.com/docs/z-index
|
|
807
807
|
*/
|
|
808
808
|
z: [{
|
|
809
|
-
z: ["auto",
|
|
809
|
+
z: ["auto", I1]
|
|
810
810
|
}],
|
|
811
811
|
// Flexbox and Grid
|
|
812
812
|
/**
|
|
@@ -856,14 +856,14 @@ function x0() {
|
|
|
856
856
|
* @see https://tailwindcss.com/docs/order
|
|
857
857
|
*/
|
|
858
858
|
order: [{
|
|
859
|
-
order: ["first", "last", "none",
|
|
859
|
+
order: ["first", "last", "none", I1]
|
|
860
860
|
}],
|
|
861
861
|
/**
|
|
862
862
|
* Grid Template Columns
|
|
863
863
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
864
864
|
*/
|
|
865
865
|
"grid-cols": [{
|
|
866
|
-
"grid-cols": [
|
|
866
|
+
"grid-cols": [S1]
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Grid Column Start / End
|
|
@@ -871,7 +871,7 @@ function x0() {
|
|
|
871
871
|
*/
|
|
872
872
|
"col-start-end": [{
|
|
873
873
|
col: ["auto", {
|
|
874
|
-
span: [
|
|
874
|
+
span: [I1]
|
|
875
875
|
}, X]
|
|
876
876
|
}],
|
|
877
877
|
/**
|
|
@@ -893,7 +893,7 @@ function x0() {
|
|
|
893
893
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
894
894
|
*/
|
|
895
895
|
"grid-rows": [{
|
|
896
|
-
"grid-rows": [
|
|
896
|
+
"grid-rows": [S1]
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Grid Row Start / End
|
|
@@ -901,7 +901,7 @@ function x0() {
|
|
|
901
901
|
*/
|
|
902
902
|
"row-start-end": [{
|
|
903
903
|
row: ["auto", {
|
|
904
|
-
span: [
|
|
904
|
+
span: [I1]
|
|
905
905
|
}, X]
|
|
906
906
|
}],
|
|
907
907
|
/**
|
|
@@ -1249,7 +1249,7 @@ function x0() {
|
|
|
1249
1249
|
* @see https://tailwindcss.com/docs/font-family
|
|
1250
1250
|
*/
|
|
1251
1251
|
"font-family": [{
|
|
1252
|
-
font: [
|
|
1252
|
+
font: [S1]
|
|
1253
1253
|
}],
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Font Variant Numeric
|
|
@@ -1913,7 +1913,7 @@ function x0() {
|
|
|
1913
1913
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1914
1914
|
*/
|
|
1915
1915
|
"shadow-color": [{
|
|
1916
|
-
shadow: [
|
|
1916
|
+
shadow: [S1]
|
|
1917
1917
|
}],
|
|
1918
1918
|
/**
|
|
1919
1919
|
* Opacity
|
|
@@ -2192,7 +2192,7 @@ function x0() {
|
|
|
2192
2192
|
* @see https://tailwindcss.com/docs/rotate
|
|
2193
2193
|
*/
|
|
2194
2194
|
rotate: [{
|
|
2195
|
-
rotate: [
|
|
2195
|
+
rotate: [I1, X]
|
|
2196
2196
|
}],
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Translate X
|
|
@@ -2655,7 +2655,7 @@ const Q1 = (l) => {
|
|
|
2655
2655
|
});
|
|
2656
2656
|
}, E = o(E2);
|
|
2657
2657
|
E.displayName = "Box";
|
|
2658
|
-
const
|
|
2658
|
+
const B1 = ({ innerRef: l, forwardedRef: t }) => (v1(() => {
|
|
2659
2659
|
[l, t].forEach((e) => {
|
|
2660
2660
|
e && (typeof e == "function" ? e(l.current || null) : e.current = l.current || null);
|
|
2661
2661
|
});
|
|
@@ -2810,7 +2810,7 @@ const U2 = ({
|
|
|
2810
2810
|
value: x,
|
|
2811
2811
|
...R
|
|
2812
2812
|
}, M) => {
|
|
2813
|
-
const z = J(null), I =
|
|
2813
|
+
const z = J(null), I = B1({ forwardedRef: M, innerRef: z }), [B, P] = Y(!!x), [V, S] = Y(!1);
|
|
2814
2814
|
v1(() => {
|
|
2815
2815
|
var j;
|
|
2816
2816
|
P(!!((j = I == null ? void 0 : I.current) != null && j.value) || !!(x || w));
|
|
@@ -2964,7 +2964,7 @@ var _2 = Object.defineProperty, X2 = Object.defineProperties, K2 = Object.getOwn
|
|
|
2964
2964
|
var e = l, { title: r, titleId: a } = e, i = J2(e, ["title", "titleId"]);
|
|
2965
2965
|
return d("svg", Q2(Y2({ width: i.size || "24", height: i.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, i), { children: [r ? n("title", { id: a, children: r }) : null, n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z", fill: "currentColor", children: n("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: i.dur, repeatCount: "indefinite" }) })] }));
|
|
2966
2966
|
}, ll = o(el), se = ll;
|
|
2967
|
-
function
|
|
2967
|
+
function A1({
|
|
2968
2968
|
"aria-label": l = "Loading…",
|
|
2969
2969
|
duration: t = 0.9,
|
|
2970
2970
|
iconSize: e = "40px",
|
|
@@ -3023,7 +3023,7 @@ const tl = ({
|
|
|
3023
3023
|
return v1(() => (document.addEventListener("click", P, !0), () => {
|
|
3024
3024
|
document.removeEventListener("click", P, !0);
|
|
3025
3025
|
}), [P]), /* @__PURE__ */ d(E, { className: "relative", ref: C, children: [
|
|
3026
|
-
l ? /* @__PURE__ */ n(
|
|
3026
|
+
l ? /* @__PURE__ */ n(A1, { className: "absolute z-1" }) : null,
|
|
3027
3027
|
/* @__PURE__ */ n(
|
|
3028
3028
|
o0,
|
|
3029
3029
|
{
|
|
@@ -3649,7 +3649,7 @@ var il = Object.defineProperty, al = Object.defineProperties, nl = Object.getOwn
|
|
|
3649
3649
|
return d("svg", h(s({ width: i.size || "24", height: i.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, i), { children: [r ? n("title", { id: a, children: r }) : null, n("path", { d: "M8.51 20h-.08a10.87 10.87 0 0 1-4.65-1.09A1.38 1.38 0 0 1 3 17.47a1.41 1.41 0 0 1 1.16-1.18 6.63 6.63 0 0 0 2.54-.89 9.49 9.49 0 0 1-3.51-9.07 1.41 1.41 0 0 1 1-1.15 1.35 1.35 0 0 1 1.43.41 7.09 7.09 0 0 0 4.88 2.75 4.5 4.5 0 0 1 1.41-3.1 4.47 4.47 0 0 1 6.37.19.7.7 0 0 0 .78.1A1.39 1.39 0 0 1 21 7.13a6.661 6.661 0 0 1-1.28 2.6A10.79 10.79 0 0 1 8.51 20Zm0-2h.08a8.79 8.79 0 0 0 9.09-8.59 1.32 1.32 0 0 1 .37-.85 5.19 5.19 0 0 0 .62-1 2.56 2.56 0 0 1-1.91-.85A2.45 2.45 0 0 0 15 6a2.5 2.5 0 0 0-1.79.69 2.53 2.53 0 0 0-.72 2.42l.26 1.14-1.17.08a8.3 8.3 0 0 1-6.54-2.4 7.12 7.12 0 0 0 3.73 6.46l.95.54-.63.9a5.62 5.62 0 0 1-2.68 1.92A8.337 8.337 0 0 0 8.5 18h.01Z", fill: "currentColor" })] }));
|
|
3650
3650
|
}, I7 = o(R7), S7 = I7, N7 = (l, t) => {
|
|
3651
3651
|
var e = l, { title: r, titleId: a } = e, i = u(e, ["title", "titleId"]);
|
|
3652
|
-
return d("svg", h(s({ width: i.size || "24", height: i.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, i), { children: [r ? n("title", { id: a, children: r }) : null, n("path", { d: "M4 7.508V15a4 4 0 0 0 4 4h9.494c.28 0 .511.232.433.
|
|
3652
|
+
return d("svg", h(s({ width: i.size || "24", height: i.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, i), { children: [r ? n("title", { id: a, children: r }) : null, n("path", { d: "M4 7.508V15a4 4 0 0 0 4 4h9.494c.28 0 .511.232.433.5-.232.809-1.002 1.5-1.927 1.5H8a6 6 0 0 1-6-6V9c0-.832.692-1.664 1.5-1.92.268-.085.5.147.5.428Z", fill: "currentColor" }), n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 9c0-2.828 0-4.243.879-5.121C7.757 3 9.172 3 12 3h4c2.828 0 4.243 0 5.121.879C22 4.757 22 6.172 22 9v2c0 2.828 0 4.243-.879 5.121C20.243 17 18.828 17 16 17h-4c-2.828 0-4.243 0-5.121-.879C6 15.243 6 13.828 6 11V9Z", fill: "currentColor" }), n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.333 12.044c0 .266.371.425.648.277l3.832-2.044c.248-.132.248-.422 0-.554l-3.832-2.044c-.277-.148-.648.011-.648.277v4.088Z", fill: "#fff", className: "[fill:white] dark:[fill:black] group-data-[active=true]/menu-item:[fill:black]" })] }));
|
|
3653
3653
|
}, B7 = o(N7), A7 = B7, H7 = (l, t) => {
|
|
3654
3654
|
var e = l, { title: r, titleId: a } = e, i = u(e, ["title", "titleId"]);
|
|
3655
3655
|
return d("svg", h(s({ width: i.size || "24", height: i.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, i), { children: [r ? n("title", { id: a, children: r }) : null, d("g", { fill: "currentColor", children: [n("path", { d: "M12.981 12.321c-.277.148-.648-.01-.648-.277V7.956c0-.266.371-.425.648-.277l3.832 2.044c.248.132.248.422 0 .554z" }), n("path", { clipRule: "evenodd", d: "M6.879 3.879C6 4.757 6 6.172 6 9v2c0 2.828 0 4.243.879 5.121S9.172 17 12 17h4c2.828 0 4.243 0 5.121-.879S22 13.828 22 11V9c0-2.828 0-4.243-.879-5.121S18.828 3 16 3h-4c-2.828 0-4.243 0-5.121.879zm12.146 1.213C18.373 5.004 17.471 5 16 5h-4c-1.47 0-2.373.004-3.025.092-.574.077-.67.187-.681.2h-.001l-.001.002c-.013.011-.123.107-.2.68C8.004 6.628 8 7.53 8 9v2c0 1.47.004 2.373.092 3.025.077.574.187.67.2.681v.001l.002.001c.011.013.107.123.68.2.653.088 1.555.092 3.026.092h4c1.47 0 2.373-.004 3.025-.092.574-.077.67-.187.681-.2h.001l.001-.002c.013-.011.123-.107.2-.68.088-.653.092-1.555.092-3.026V9c0-1.47-.004-2.373-.092-3.025-.077-.574-.187-.67-.2-.681v-.001l-.002-.001c-.011-.013-.107-.123-.68-.2z", fillRule: "evenodd" }), n("path", { d: "M3.5 7.08c.268-.085.5.147.5.428V15a4 4 0 0 0 4 4h9.494c.28 0 .511.232.433.5-.233.809-1.002 1.5-1.927 1.5H8a6 6 0 0 1-6-6V9c0-.832.692-1.664 1.5-1.92z" })] })] }));
|
|
@@ -4095,7 +4095,7 @@ const zc = {
|
|
|
4095
4095
|
xs: "rounded-3 text-11 px-1.5 h-3"
|
|
4096
4096
|
};
|
|
4097
4097
|
}
|
|
4098
|
-
},
|
|
4098
|
+
}, N1 = {
|
|
4099
4099
|
lg: 24,
|
|
4100
4100
|
md: 24,
|
|
4101
4101
|
sm: 16,
|
|
@@ -4158,13 +4158,13 @@ const Tn = ({
|
|
|
4158
4158
|
c === "start" && a !== void 0 ? u1(a, {
|
|
4159
4159
|
className: p === "xs" ? "mie-0.25" : "mie-0.5",
|
|
4160
4160
|
onClick: i ?? void 0,
|
|
4161
|
-
size:
|
|
4161
|
+
size: N1[p]
|
|
4162
4162
|
}) : null,
|
|
4163
4163
|
/* @__PURE__ */ n("span", { className: f("w-full", e), children: t }),
|
|
4164
4164
|
c === "end" && a !== void 0 ? u1(a, {
|
|
4165
4165
|
className: p === "xs" ? "mis-0.25" : "mis-0.5",
|
|
4166
4166
|
onClick: i ?? void 0,
|
|
4167
|
-
size:
|
|
4167
|
+
size: N1[p]
|
|
4168
4168
|
}) : null,
|
|
4169
4169
|
/* @__PURE__ */ n(
|
|
4170
4170
|
"div",
|
|
@@ -4175,18 +4175,18 @@ const Tn = ({
|
|
|
4175
4175
|
C[p]
|
|
4176
4176
|
),
|
|
4177
4177
|
children: v ? /* @__PURE__ */ n(
|
|
4178
|
-
|
|
4178
|
+
A1,
|
|
4179
4179
|
{
|
|
4180
4180
|
"aria-label": g,
|
|
4181
4181
|
color: "text-gray-50 dark:text-gray-10",
|
|
4182
|
-
iconSize:
|
|
4182
|
+
iconSize: N1[p]
|
|
4183
4183
|
}
|
|
4184
4184
|
) : null
|
|
4185
4185
|
}
|
|
4186
4186
|
)
|
|
4187
4187
|
] });
|
|
4188
|
-
},
|
|
4189
|
-
|
|
4188
|
+
}, H1 = o(Tn);
|
|
4189
|
+
H1.displayName = "Button";
|
|
4190
4190
|
const Gn = ({ error: l, className: t, label: e, disabled: r, name: a, labelProps: i, ...c }, v) => {
|
|
4191
4191
|
const g = Ke(), p = l1(() => `checkbox-label-${g}`, [g]), { className: m, ...w } = i ?? {};
|
|
4192
4192
|
return /* @__PURE__ */ d(
|
|
@@ -4455,7 +4455,7 @@ const Id = ({
|
|
|
4455
4455
|
"bg-tertiary-light z-100 absolute inset-0 transition-opacity",
|
|
4456
4456
|
r ? "opacity-100" : "opacity-0"
|
|
4457
4457
|
),
|
|
4458
|
-
children: r ? /* @__PURE__ */ n(
|
|
4458
|
+
children: r ? /* @__PURE__ */ n(A1, { "aria-label": a, color: "text-[#777a7b]", iconSize: 30 }) : null
|
|
4459
4459
|
}
|
|
4460
4460
|
) : null
|
|
4461
4461
|
]
|
|
@@ -4870,7 +4870,7 @@ const Gd = 10, Wd = o(
|
|
|
4870
4870
|
break;
|
|
4871
4871
|
}
|
|
4872
4872
|
}
|
|
4873
|
-
const H = P == null ? void 0 : P.split(" ").map((k) => `hover:${k}`).join(" "), i1 = M != null && M.currentPage ? (Number(M.currentPage) - 1) * V : 0, g1 = "text-gray-30 dark:text-white text-base",
|
|
4873
|
+
const H = P == null ? void 0 : P.split(" ").map((k) => `hover:${k}`).join(" "), i1 = M != null && M.currentPage ? (Number(M.currentPage) - 1) * V : 0, g1 = "text-gray-30 dark:text-white text-base", R1 = f("bg-warm-neutral dark:bg-gray-40", A == null ? void 0 : A.columnClassName), L1 = {
|
|
4874
4874
|
asc: /* @__PURE__ */ n(md, { className: g1, size: "16" }),
|
|
4875
4875
|
desc: /* @__PURE__ */ n(ld, { className: g1, size: "16" }),
|
|
4876
4876
|
inactive: /* @__PURE__ */ n(sd, { className: g1, size: "16" })
|
|
@@ -4885,7 +4885,7 @@ const Gd = 10, Wd = o(
|
|
|
4885
4885
|
const { totalRowsCount: $ } = k, G = Math.ceil($ / V);
|
|
4886
4886
|
return Array.from({ length: G ?? 1 }, (T, p1) => (p1 + 1).toString());
|
|
4887
4887
|
}
|
|
4888
|
-
return i ? /* @__PURE__ */ n("div", { className: f("w-full p-0 shadow-none relative"), style: { height: w ?? "400px" }, children: /* @__PURE__ */ n(
|
|
4888
|
+
return i ? /* @__PURE__ */ n("div", { className: f("w-full p-0 shadow-none relative"), style: { height: w ?? "400px" }, children: /* @__PURE__ */ n(A1, {}) }) : /* @__PURE__ */ n(d1, { children: /* @__PURE__ */ d("div", { className: f("w-full p-0 flex flex-col justify-center relative", x), children: [
|
|
4889
4889
|
/* @__PURE__ */ n("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d(
|
|
4890
4890
|
"table",
|
|
4891
4891
|
{
|
|
@@ -4907,7 +4907,7 @@ const Gd = 10, Wd = o(
|
|
|
4907
4907
|
className: f(
|
|
4908
4908
|
L,
|
|
4909
4909
|
e ? "bg-surface-tertiary-light last:rounded-e-0 first:rounded-s-0 border-b-small border-t-small border-solid border-surface-quaternary-light dark:border-surface-quaternary-dark" : "",
|
|
4910
|
-
$ && k.isSortable ?
|
|
4910
|
+
$ && k.isSortable ? R1 : void 0
|
|
4911
4911
|
),
|
|
4912
4912
|
isSortable: k == null ? void 0 : k.isSortable,
|
|
4913
4913
|
onClick: k != null && k.isSortable && e ? () => e(k.dataIndex, (A == null ? void 0 : A.order) === "desc" ? "asc" : "desc") : () => {
|
|
@@ -5223,7 +5223,7 @@ const He = ({ autoFocus: l = !0, children: t, className: e }) => {
|
|
|
5223
5223
|
/* @__PURE__ */ n("div", { children: t }),
|
|
5224
5224
|
/* @__PURE__ */ n("div", { className: f("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label: R, ...M }, z) => (
|
|
5225
5225
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
5226
|
-
/* @__PURE__ */ n(
|
|
5226
|
+
/* @__PURE__ */ n(H1, { "aria-label": R, size: "sm", variant: "borderless", ...M, children: R }, `${R}${z}`)
|
|
5227
5227
|
)) })
|
|
5228
5228
|
]
|
|
5229
5229
|
}
|
|
@@ -5321,7 +5321,7 @@ const oo = ({
|
|
|
5321
5321
|
return v1(() => (document.addEventListener("click", A, !0), () => {
|
|
5322
5322
|
document.removeEventListener("click", A, !0);
|
|
5323
5323
|
}), [A]), /* @__PURE__ */ n(E, { children: /* @__PURE__ */ d(E, { className: "relative", ref: z, children: [
|
|
5324
|
-
t ? /* @__PURE__ */ n(
|
|
5324
|
+
t ? /* @__PURE__ */ n(A1, { className: "absolute z-1" }) : null,
|
|
5325
5325
|
/* @__PURE__ */ n(
|
|
5326
5326
|
o0,
|
|
5327
5327
|
{
|
|
@@ -5475,7 +5475,7 @@ const Rc = ({ children: l, className: t, ...e }) => /* @__PURE__ */ n(
|
|
|
5475
5475
|
),
|
|
5476
5476
|
children: l
|
|
5477
5477
|
}
|
|
5478
|
-
), Ic = ({ children: l, className: t, size: e = "md" }) => /* @__PURE__ */ n("div", { className: t, children: /* @__PURE__ */ n(
|
|
5478
|
+
), Ic = ({ children: l, className: t, size: e = "md" }) => /* @__PURE__ */ n("div", { className: t, children: /* @__PURE__ */ n(H1, { className: "bg-white text-gray-40 hover:text-white", size: e, children: l }) }), Sc = ({ children: l, className: t, ...e }) => /* @__PURE__ */ n("div", { ...e, className: f("flex flex-col items-center justify-between", t), children: l }), Nc = ({ alt: l, className: t, src: e }) => /* @__PURE__ */ n("div", { className: f(["flex items-center justify-between sm:mbe-5 md:mbe-0 md:mis-6", t]), children: /* @__PURE__ */ n("img", { alt: l ?? "Image", src: e }) }), Bc = ({ children: l, className: t, size: e = "md" }) => /* @__PURE__ */ n("div", { className: f(["flex items-center justify-between break-words", t]), children: /* @__PURE__ */ n(O, { className: "text-white font-regular mbe-2 text-center", size: e, variant: "label", children: l }) }), Zo = ({ title: l, titleId: t, ...e }, r) => /* @__PURE__ */ d(
|
|
5479
5479
|
"svg",
|
|
5480
5480
|
{
|
|
5481
5481
|
width: e.size || "24",
|
|
@@ -5570,8 +5570,8 @@ function Io({
|
|
|
5570
5570
|
[B]
|
|
5571
5571
|
), o1 = x1(
|
|
5572
5572
|
(F) => {
|
|
5573
|
-
const H = Object.values(F), i1 = L(H), g1 = t1(i1),
|
|
5574
|
-
P([...B, ...
|
|
5573
|
+
const H = Object.values(F), i1 = L(H), g1 = t1(i1), R1 = D(g1);
|
|
5574
|
+
P([...B, ...R1]);
|
|
5575
5575
|
},
|
|
5576
5576
|
[D, B, L, t1]
|
|
5577
5577
|
);
|
|
@@ -5647,7 +5647,7 @@ function Io({
|
|
|
5647
5647
|
children: [
|
|
5648
5648
|
/* @__PURE__ */ n(O, { className: "text-text-muted-light dark:text-gray-20 font-regular text-13", children: a }),
|
|
5649
5649
|
/* @__PURE__ */ n(
|
|
5650
|
-
|
|
5650
|
+
H1,
|
|
5651
5651
|
{
|
|
5652
5652
|
className: f(
|
|
5653
5653
|
"z-10 bg-transparent dark:bg-transparent text-gray-50 dark:text-white border-tertiary-light dark:border-gray-30 border-small hover:text-white",
|
|
@@ -5770,7 +5770,7 @@ const Wo = ({
|
|
|
5770
5770
|
shape: A = "circle",
|
|
5771
5771
|
validation: b
|
|
5772
5772
|
}, N) => {
|
|
5773
|
-
const j = J(null), _ =
|
|
5773
|
+
const j = J(null), _ = B1({ forwardedRef: N, innerRef: j }), [L, D] = Y({ error: g, status: z ? "resolved" : "idle" }), [t1, o1] = Y(null), f1 = () => j != null && j.current ? j.current.click() : void 0;
|
|
5774
5774
|
v1(() => {
|
|
5775
5775
|
if (z) {
|
|
5776
5776
|
let U = !0;
|
|
@@ -5858,13 +5858,13 @@ const Wo = ({
|
|
|
5858
5858
|
)
|
|
5859
5859
|
),
|
|
5860
5860
|
!i && !x ? /* @__PURE__ */ n(
|
|
5861
|
-
|
|
5861
|
+
"button",
|
|
5862
5862
|
{
|
|
5863
5863
|
"aria-label": v,
|
|
5864
5864
|
className: "absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1 z-10",
|
|
5865
5865
|
"data-testid": "remove image",
|
|
5866
5866
|
onClick: U,
|
|
5867
|
-
children: /* @__PURE__ */ n(je, {})
|
|
5867
|
+
children: /* @__PURE__ */ n(je, { className: "p-0" })
|
|
5868
5868
|
}
|
|
5869
5869
|
) : null
|
|
5870
5870
|
] });
|
|
@@ -5925,7 +5925,7 @@ const Wo = ({
|
|
|
5925
5925
|
if (q instanceof Error)
|
|
5926
5926
|
throw q;
|
|
5927
5927
|
}
|
|
5928
|
-
}, H = f([A === "circle" && !C ? "rounded-full aspect-square" : ""]), i1 = f([A === "square" && !C ? "aspect-square rounded-1" : ""]), g1 = f([t && !C ? "rounded-2" : ""]),
|
|
5928
|
+
}, H = f([A === "circle" && !C ? "rounded-full aspect-square" : ""]), i1 = f([A === "square" && !C ? "aspect-square rounded-1" : ""]), g1 = f([t && !C ? "rounded-2" : ""]), R1 = f([
|
|
5929
5929
|
A === "unset" && !C ? "rounded-1" : "",
|
|
5930
5930
|
A === "unset" && L.status !== "idle" && !C ? "aspect-auto" : "",
|
|
5931
5931
|
A === "unset" && L.status !== "resolved" && !C ? "aspect-square" : ""
|
|
@@ -5955,7 +5955,7 @@ const Wo = ({
|
|
|
5955
5955
|
H,
|
|
5956
5956
|
i1,
|
|
5957
5957
|
g1,
|
|
5958
|
-
|
|
5958
|
+
R1,
|
|
5959
5959
|
L1
|
|
5960
5960
|
]),
|
|
5961
5961
|
style: t ? { aspectRatio: String(t), width: `${M}px` } : void 0,
|
|
@@ -5963,7 +5963,7 @@ const Wo = ({
|
|
|
5963
5963
|
}
|
|
5964
5964
|
),
|
|
5965
5965
|
/* @__PURE__ */ n(
|
|
5966
|
-
|
|
5966
|
+
H1,
|
|
5967
5967
|
{
|
|
5968
5968
|
className: f([
|
|
5969
5969
|
"my-auto !border-gray-15 dark:!border-gray-30 !border-1 disabled:!bg-gray-15 disabled:!border-none",
|
|
@@ -6029,12 +6029,12 @@ const Uo = ({
|
|
|
6029
6029
|
), { children: [
|
|
6030
6030
|
a === "start" && r !== void 0 ? u1(r, {
|
|
6031
6031
|
className: f("flex-shrink-0", c === "xs" ? "mie-0.25" : "mie-0.5"),
|
|
6032
|
-
size:
|
|
6032
|
+
size: N1[c]
|
|
6033
6033
|
}) : null,
|
|
6034
6034
|
u1("span", { className: "" }, t),
|
|
6035
6035
|
a === "end" && r !== void 0 ? u1(r, {
|
|
6036
6036
|
className: f("flex-shrink-0", c === "xs" ? "mis-0.25" : "mis-0.5"),
|
|
6037
|
-
size:
|
|
6037
|
+
size: N1[c]
|
|
6038
6038
|
}) : null
|
|
6039
6039
|
] });
|
|
6040
6040
|
}, qo = o(Uo);
|
|
@@ -6325,7 +6325,7 @@ const v9 = ({ title: l, titleId: t, ...e }, r) => /* @__PURE__ */ d(
|
|
|
6325
6325
|
dismissButtonLabel: p,
|
|
6326
6326
|
...m
|
|
6327
6327
|
}, w) => {
|
|
6328
|
-
const y = J(null), Z =
|
|
6328
|
+
const y = J(null), Z = B1({ forwardedRef: w, innerRef: y }), C = (R) => {
|
|
6329
6329
|
c && c(R.target.value);
|
|
6330
6330
|
}, x = () => {
|
|
6331
6331
|
c && c("");
|
|
@@ -6546,7 +6546,7 @@ const M9 = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
6546
6546
|
...Z
|
|
6547
6547
|
}, C) => {
|
|
6548
6548
|
var A;
|
|
6549
|
-
const x = f(Z9, M9), R = J(null), M =
|
|
6549
|
+
const x = f(Z9, M9), R = J(null), M = B1({ forwardedRef: C, innerRef: R }), [z, I] = Y(!!(y || (A = M == null ? void 0 : M.current) != null && A.value));
|
|
6550
6550
|
v1(() => {
|
|
6551
6551
|
var b;
|
|
6552
6552
|
I(!!((b = M == null ? void 0 : M.current) != null && b.value || y));
|
|
@@ -6959,7 +6959,7 @@ const dc = {
|
|
|
6959
6959
|
value: w,
|
|
6960
6960
|
...y
|
|
6961
6961
|
}, Z) => {
|
|
6962
|
-
const C = J(null), x =
|
|
6962
|
+
const C = J(null), x = B1({ forwardedRef: Z, innerRef: C }), [R, M] = Y(!!(w || m)), [z, I] = Y(!1), B = (S) => {
|
|
6963
6963
|
M(!!(S.target.value || m)), p && p(S);
|
|
6964
6964
|
}, P = () => {
|
|
6965
6965
|
t || !x.current || (x.current.focus(), I(!0));
|
|
@@ -7177,7 +7177,7 @@ export {
|
|
|
7177
7177
|
E as Box,
|
|
7178
7178
|
Bn as Breadcrumb,
|
|
7179
7179
|
En as Breadcrumbs,
|
|
7180
|
-
|
|
7180
|
+
H1 as Button,
|
|
7181
7181
|
Tn as ButtonComponent,
|
|
7182
7182
|
Wn as Checkbox,
|
|
7183
7183
|
Un as ColorSelect,
|
|
@@ -7217,7 +7217,7 @@ export {
|
|
|
7217
7217
|
no as ListItemContent,
|
|
7218
7218
|
Ac as ListItemOrderMarker,
|
|
7219
7219
|
Hc as ListItemText,
|
|
7220
|
-
|
|
7220
|
+
A1 as LoadingSpinner,
|
|
7221
7221
|
Ko as Navs,
|
|
7222
7222
|
Fc as Option,
|
|
7223
7223
|
Vc as PageTitle,
|
|
@@ -7266,9 +7266,9 @@ export {
|
|
|
7266
7266
|
f as cn,
|
|
7267
7267
|
ye as defaultButtonClasses,
|
|
7268
7268
|
xe as determineSizeClasses,
|
|
7269
|
-
|
|
7269
|
+
N1 as iconSizes,
|
|
7270
7270
|
Wc as palettize,
|
|
7271
|
-
|
|
7271
|
+
B1 as useCombinedRefs,
|
|
7272
7272
|
T2 as useLockBodyScroll,
|
|
7273
7273
|
ae as useOnClickOutside,
|
|
7274
7274
|
e1 as variantClasses
|