@post-pioneer/ui-kit 0.1.35 → 0.1.36
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.
|
@@ -48,7 +48,7 @@ const C1 = f(
|
|
|
48
48
|
)
|
|
49
49
|
);
|
|
50
50
|
C1.displayName = "ArrowChevronLeftIcon";
|
|
51
|
-
const
|
|
51
|
+
const v1 = f(
|
|
52
52
|
({ width: e = "6", height: a = "10", color: t = "currentColor", ...n }, r) => /* @__PURE__ */ o(
|
|
53
53
|
"svg",
|
|
54
54
|
{
|
|
@@ -70,8 +70,8 @@ const h1 = f(
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
);
|
|
73
|
-
|
|
74
|
-
const
|
|
73
|
+
v1.displayName = "ArrowChevronRightIcon";
|
|
74
|
+
const h1 = f(
|
|
75
75
|
({ width: e = "13", height: a = "13", color: t = "currentColor", ...n }, r) => /* @__PURE__ */ o(
|
|
76
76
|
"svg",
|
|
77
77
|
{
|
|
@@ -87,7 +87,7 @@ const v1 = f(
|
|
|
87
87
|
}
|
|
88
88
|
)
|
|
89
89
|
);
|
|
90
|
-
|
|
90
|
+
h1.displayName = "FacebookIcon";
|
|
91
91
|
const m1 = f(
|
|
92
92
|
({ width: e = "24", height: a = "24", color: t = "currentColor", ...n }, r) => /* @__PURE__ */ o(
|
|
93
93
|
"svg",
|
|
@@ -460,8 +460,8 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
460
460
|
onError: l
|
|
461
461
|
}) => {
|
|
462
462
|
const c = (w) => {
|
|
463
|
-
const
|
|
464
|
-
return
|
|
463
|
+
const h = w.trim().split(" ");
|
|
464
|
+
return h.length === 1 ? h[0].charAt(0).toUpperCase() : `${h[0].charAt(0)}${h[h.length - 1].charAt(0)}`.toUpperCase();
|
|
465
465
|
}, i = () => {
|
|
466
466
|
if (s) return s;
|
|
467
467
|
if (a) {
|
|
@@ -482,8 +482,8 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
482
482
|
"var(--color-yellow-600)",
|
|
483
483
|
"var(--color-rose-600)",
|
|
484
484
|
"var(--color-pink-600)"
|
|
485
|
-
],
|
|
486
|
-
return w[
|
|
485
|
+
], h = a.split("").reduce((x, m) => x + m.charCodeAt(0), 0);
|
|
486
|
+
return w[h % w.length];
|
|
487
487
|
}
|
|
488
488
|
return "var(--color-blue-gray-300)";
|
|
489
489
|
}, u = {
|
|
@@ -496,7 +496,7 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
496
496
|
B[`avatar--${t}`],
|
|
497
497
|
r ? B["avatar--bordered"] : "",
|
|
498
498
|
_
|
|
499
|
-
].filter(Boolean).join(" "),
|
|
499
|
+
].filter(Boolean).join(" "), v = () => {
|
|
500
500
|
if (e)
|
|
501
501
|
return /* @__PURE__ */ o(
|
|
502
502
|
"img",
|
|
@@ -535,7 +535,7 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
535
535
|
) });
|
|
536
536
|
};
|
|
537
537
|
return /* @__PURE__ */ b("div", { className: p, children: [
|
|
538
|
-
/* @__PURE__ */ o("div", { className: B.avatar__content, children:
|
|
538
|
+
/* @__PURE__ */ o("div", { className: B.avatar__content, children: v() }),
|
|
539
539
|
n && /* @__PURE__ */ o(
|
|
540
540
|
"div",
|
|
541
541
|
{
|
|
@@ -688,7 +688,7 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
688
688
|
})() }),
|
|
689
689
|
n && /* @__PURE__ */ o("span", { className: A.spinner__label, "aria-hidden": "true", children: n })
|
|
690
690
|
] });
|
|
691
|
-
}, a2 = "_focus_kuvvd_549", r2 = "_swap_kuvvd_631", n2 = "_swap__content_kuvvd_687", o2 = "_button_kuvvd_779", s2 = "_sizeL_kuvvd_804", _2 = "_sizeM_kuvvd_808", l2 = "_sizeS_kuvvd_812", i2 = "_iconOnly_kuvvd_816", c2 = "_primary_kuvvd_828", u2 = "_disabled_kuvvd_833", d2 = "_count_kuvvd_847", p2 = "_secondary_kuvvd_851", w2 = "_ghost_kuvvd_874", g2 = "_link_kuvvd_897", f2 = "_dangerPrimary_kuvvd_926", C2 = "_dangerSecondary_kuvvd_952",
|
|
691
|
+
}, a2 = "_focus_kuvvd_549", r2 = "_swap_kuvvd_631", n2 = "_swap__content_kuvvd_687", o2 = "_button_kuvvd_779", s2 = "_sizeL_kuvvd_804", _2 = "_sizeM_kuvvd_808", l2 = "_sizeS_kuvvd_812", i2 = "_iconOnly_kuvvd_816", c2 = "_primary_kuvvd_828", u2 = "_disabled_kuvvd_833", d2 = "_count_kuvvd_847", p2 = "_secondary_kuvvd_851", w2 = "_ghost_kuvvd_874", g2 = "_link_kuvvd_897", f2 = "_dangerPrimary_kuvvd_926", C2 = "_dangerSecondary_kuvvd_952", v2 = "_dangerGhost_kuvvd_978", h2 = "_dangerLink_kuvvd_1004", m2 = "_open_kuvvd_1031", b2 = "_content_kuvvd_1043", x2 = "_loader_kuvvd_1048", y2 = "_text_kuvvd_1054", j2 = "_icon_kuvvd_816", k2 = "_chevron_kuvvd_1081", L2 = "_loading_kuvvd_1109", j = {
|
|
692
692
|
focus: a2,
|
|
693
693
|
"focus--default": "_focus--default_kuvvd_566",
|
|
694
694
|
"focus--danger": "_focus--danger_kuvvd_570",
|
|
@@ -726,8 +726,8 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
726
726
|
link: g2,
|
|
727
727
|
dangerPrimary: f2,
|
|
728
728
|
dangerSecondary: C2,
|
|
729
|
-
dangerGhost:
|
|
730
|
-
dangerLink:
|
|
729
|
+
dangerGhost: v2,
|
|
730
|
+
dangerLink: h2,
|
|
731
731
|
open: m2,
|
|
732
732
|
content: b2,
|
|
733
733
|
loader: x2,
|
|
@@ -759,12 +759,12 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
759
759
|
children: i,
|
|
760
760
|
icon: u,
|
|
761
761
|
iconPosition: p = "left",
|
|
762
|
-
tooltip:
|
|
762
|
+
tooltip: v,
|
|
763
763
|
count: w,
|
|
764
|
-
withChevron:
|
|
764
|
+
withChevron: h = !1,
|
|
765
765
|
href: x,
|
|
766
766
|
...m
|
|
767
|
-
} = e, $ = p === "only" || !i && u, H =
|
|
767
|
+
} = e, $ = p === "only" || !i && u, H = h && !$, g = [
|
|
768
768
|
j.button,
|
|
769
769
|
j[`size${t.toUpperCase()}`],
|
|
770
770
|
j[n],
|
|
@@ -805,7 +805,7 @@ const $1 = "_card_4ki5l_779", S1 = "_header_4ki5l_799", H1 = "_title_4ki5l_809",
|
|
|
805
805
|
type: L,
|
|
806
806
|
className: g,
|
|
807
807
|
disabled: r || s,
|
|
808
|
-
"aria-label": $ &&
|
|
808
|
+
"aria-label": $ && v ? v : void 0,
|
|
809
809
|
...V,
|
|
810
810
|
children: y()
|
|
811
811
|
}
|
|
@@ -1089,16 +1089,16 @@ function i1(e, a, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
1089
1089
|
function X2(e) {
|
|
1090
1090
|
const a = X(), { control: t = a.control, name: n, defaultValue: r, disabled: s, exact: _, compute: l } = e || {}, c = d.useRef(r), i = d.useRef(l), u = d.useRef(void 0);
|
|
1091
1091
|
i.current = l;
|
|
1092
|
-
const p = d.useMemo(() => t._getWatch(n, c.current), [t, n]), [
|
|
1092
|
+
const p = d.useMemo(() => t._getWatch(n, c.current), [t, n]), [v, w] = d.useState(i.current ? i.current(p) : p);
|
|
1093
1093
|
return l1(() => t._subscribe({
|
|
1094
1094
|
name: n,
|
|
1095
1095
|
formState: {
|
|
1096
1096
|
values: !0
|
|
1097
1097
|
},
|
|
1098
1098
|
exact: _,
|
|
1099
|
-
callback: (
|
|
1099
|
+
callback: (h) => {
|
|
1100
1100
|
if (!s) {
|
|
1101
|
-
const x = K2(n, t._names,
|
|
1101
|
+
const x = K2(n, t._names, h.values || t._formValues, !1, c.current);
|
|
1102
1102
|
if (i.current) {
|
|
1103
1103
|
const m = i.current(x);
|
|
1104
1104
|
i1(m, u.current) || (w(m), u.current = m);
|
|
@@ -1106,7 +1106,7 @@ function X2(e) {
|
|
|
1106
1106
|
w(x);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
}), [t, s, n, _]), d.useEffect(() => t._removeUnmounted()),
|
|
1109
|
+
}), [t, s, n, _]), d.useEffect(() => t._removeUnmounted()), v;
|
|
1110
1110
|
}
|
|
1111
1111
|
function c1(e) {
|
|
1112
1112
|
const a = X(), { name: t, disabled: n, control: r = a.control, shouldUnregister: s, defaultValue: _ } = e, l = O2(r._names.array, t), c = d.useMemo(() => k(r._formValues, t, k(r._defaultValues, t, _)), [r, t, _]), i = X2({
|
|
@@ -1118,13 +1118,13 @@ function c1(e) {
|
|
|
1118
1118
|
control: r,
|
|
1119
1119
|
name: t,
|
|
1120
1120
|
exact: !0
|
|
1121
|
-
}), p = d.useRef(e),
|
|
1121
|
+
}), p = d.useRef(e), v = d.useRef(void 0), w = d.useRef(r.register(t, {
|
|
1122
1122
|
...e.rules,
|
|
1123
1123
|
value: i,
|
|
1124
1124
|
...W(e.disabled) ? { disabled: e.disabled } : {}
|
|
1125
1125
|
}));
|
|
1126
1126
|
p.current = e;
|
|
1127
|
-
const
|
|
1127
|
+
const h = d.useMemo(() => Object.defineProperties({}, {
|
|
1128
1128
|
invalid: {
|
|
1129
1129
|
enumerable: !0,
|
|
1130
1130
|
get: () => !!k(u.errors, t)
|
|
@@ -1174,7 +1174,7 @@ function c1(e) {
|
|
|
1174
1174
|
ref: $
|
|
1175
1175
|
}), [t, n, u.disabled, x, m, $, i]);
|
|
1176
1176
|
return d.useEffect(() => {
|
|
1177
|
-
const g = r._options.shouldUnregister || s, y =
|
|
1177
|
+
const g = r._options.shouldUnregister || s, y = v.current;
|
|
1178
1178
|
y && y !== t && !l && r.unregister(y), r.register(t, {
|
|
1179
1179
|
...p.current.rules,
|
|
1180
1180
|
...W(p.current.disabled) ? { disabled: p.current.disabled } : {}
|
|
@@ -1187,7 +1187,7 @@ function c1(e) {
|
|
|
1187
1187
|
const V = n1(k(r._options.defaultValues, t, p.current.defaultValue));
|
|
1188
1188
|
J(r._defaultValues, t, V), q(k(r._formValues, t)) && J(r._formValues, t, V);
|
|
1189
1189
|
}
|
|
1190
|
-
return !l && r.register(t),
|
|
1190
|
+
return !l && r.register(t), v.current = t, () => {
|
|
1191
1191
|
(l ? g && !r._state.action : g) ? r.unregister(t) : L(t, !1);
|
|
1192
1192
|
};
|
|
1193
1193
|
}, [t, r, l, s]), d.useEffect(() => {
|
|
@@ -1198,34 +1198,34 @@ function c1(e) {
|
|
|
1198
1198
|
}, [n, t, r]), d.useMemo(() => ({
|
|
1199
1199
|
field: H,
|
|
1200
1200
|
formState: u,
|
|
1201
|
-
fieldState:
|
|
1202
|
-
}), [H, u,
|
|
1201
|
+
fieldState: h
|
|
1202
|
+
}), [H, u, h]);
|
|
1203
1203
|
}
|
|
1204
|
-
const J2 = "
|
|
1204
|
+
const J2 = "_focus_1ey64_549", Q2 = "_swap_1ey64_631", Y2 = "_swap__content_1ey64_687", ee = "_root_1ey64_779", te = "_wrapper_1ey64_787", ae = "_single_1ey64_804", re = "_first_1ey64_807", ne = "_middle_1ey64_810", oe = "_last_1ey64_813", se = "_small_1ey64_819", _e = "_input_1ey64_822", le = "_label_1ey64_826", ie = "_medium_1ey64_831", ce = "_outline_1ey64_845", ue = "_fill_1ey64_855", de = "_error_1ey64_870", pe = "_disabled_1ey64_883", we = "_clearButton_1ey64_895", ge = "_withPrefix_1ey64_901", fe = "_withSuffix_1ey64_904", Ce = "_requiredIcon_1ey64_942", ve = "_filled_1ey64_953", he = "_innerHint_1ey64_1002", me = "_affix_1ey64_1042", be = "_prefix_1ey64_1053", xe = "_suffix_1ey64_1058", ye = "_errorText_1ey64_1064", C = {
|
|
1205
1205
|
focus: J2,
|
|
1206
|
-
"focus--default": "_focus--
|
|
1207
|
-
"focus--danger": "_focus--
|
|
1208
|
-
"focus--visible": "_focus--
|
|
1209
|
-
"focus-danger": "_focus-
|
|
1210
|
-
"focus-within--default": "_focus-within--
|
|
1211
|
-
"focus-within--danger": "_focus-within--
|
|
1212
|
-
"focus--input": "_focus--
|
|
1213
|
-
"focus--button": "_focus--
|
|
1214
|
-
"focus--card": "_focus--
|
|
1206
|
+
"focus--default": "_focus--default_1ey64_566",
|
|
1207
|
+
"focus--danger": "_focus--danger_1ey64_570",
|
|
1208
|
+
"focus--visible": "_focus--visible_1ey64_576",
|
|
1209
|
+
"focus-danger": "_focus-danger_1ey64_591",
|
|
1210
|
+
"focus-within--default": "_focus-within--default_1ey64_597",
|
|
1211
|
+
"focus-within--danger": "_focus-within--danger_1ey64_601",
|
|
1212
|
+
"focus--input": "_focus--input_1ey64_606",
|
|
1213
|
+
"focus--button": "_focus--button_1ey64_611",
|
|
1214
|
+
"focus--card": "_focus--card_1ey64_616",
|
|
1215
1215
|
swap: Q2,
|
|
1216
|
-
"swap--text": "_swap--
|
|
1217
|
-
"swap--icon": "_swap--
|
|
1218
|
-
"swap--icon-xs": "_swap--icon-
|
|
1219
|
-
"swap--icon-s": "_swap--icon-
|
|
1220
|
-
"swap--icon-m": "_swap--icon-
|
|
1221
|
-
"swap--icon-l": "_swap--icon-
|
|
1222
|
-
"swap--icon-xl": "_swap--icon-
|
|
1216
|
+
"swap--text": "_swap--text_1ey64_640",
|
|
1217
|
+
"swap--icon": "_swap--icon_1ey64_651",
|
|
1218
|
+
"swap--icon-xs": "_swap--icon-xs_1ey64_661",
|
|
1219
|
+
"swap--icon-s": "_swap--icon-s_1ey64_666",
|
|
1220
|
+
"swap--icon-m": "_swap--icon-m_1ey64_671",
|
|
1221
|
+
"swap--icon-l": "_swap--icon-l_1ey64_676",
|
|
1222
|
+
"swap--icon-xl": "_swap--icon-xl_1ey64_681",
|
|
1223
1223
|
swap__content: Y2,
|
|
1224
|
-
"swap--group-horizontal": "_swap--group-
|
|
1225
|
-
"swap--group-vertical": "_swap--group-
|
|
1226
|
-
"swap--with-background": "_swap--with-
|
|
1227
|
-
"swap--with-border": "_swap--with-
|
|
1228
|
-
"swap--interactive": "_swap--
|
|
1224
|
+
"swap--group-horizontal": "_swap--group-horizontal_1ey64_696",
|
|
1225
|
+
"swap--group-vertical": "_swap--group-vertical_1ey64_703",
|
|
1226
|
+
"swap--with-background": "_swap--with-background_1ey64_711",
|
|
1227
|
+
"swap--with-border": "_swap--with-border_1ey64_717",
|
|
1228
|
+
"swap--interactive": "_swap--interactive_1ey64_725",
|
|
1229
1229
|
root: ee,
|
|
1230
1230
|
wrapper: te,
|
|
1231
1231
|
single: ae,
|
|
@@ -1244,8 +1244,8 @@ const J2 = "_focus_1chw9_549", Q2 = "_swap_1chw9_631", Y2 = "_swap__content_1chw
|
|
|
1244
1244
|
withPrefix: ge,
|
|
1245
1245
|
withSuffix: fe,
|
|
1246
1246
|
requiredIcon: Ce,
|
|
1247
|
-
filled:
|
|
1248
|
-
innerHint:
|
|
1247
|
+
filled: ve,
|
|
1248
|
+
innerHint: he,
|
|
1249
1249
|
affix: me,
|
|
1250
1250
|
prefix: be,
|
|
1251
1251
|
suffix: xe,
|
|
@@ -1264,15 +1264,15 @@ const J2 = "_focus_1chw9_549", Q2 = "_swap_1chw9_631", Y2 = "_swap__content_1chw
|
|
|
1264
1264
|
size: i = "small",
|
|
1265
1265
|
variantGroupItems: u = "single",
|
|
1266
1266
|
prefix: p,
|
|
1267
|
-
suffix:
|
|
1267
|
+
suffix: v,
|
|
1268
1268
|
value: w,
|
|
1269
|
-
defaultValue:
|
|
1269
|
+
defaultValue: h,
|
|
1270
1270
|
onChange: x,
|
|
1271
1271
|
type: m = "text",
|
|
1272
1272
|
fullWidth: $ = !0,
|
|
1273
1273
|
...H
|
|
1274
1274
|
}, g) => {
|
|
1275
|
-
const y = w !== void 0, [L, V] = t1(
|
|
1275
|
+
const y = w !== void 0, [L, V] = t1(h?.toString() ?? ""), S = y ? w : L, N = !!S && S.toString().length > 0, p1 = (E) => {
|
|
1276
1276
|
y || V(E.target.value), x?.(E);
|
|
1277
1277
|
}, w1 = () => {
|
|
1278
1278
|
if (a) return;
|
|
@@ -1295,7 +1295,7 @@ const J2 = "_focus_1chw9_549", Q2 = "_swap_1chw9_631", Y2 = "_swap__content_1chw
|
|
|
1295
1295
|
[C.error]: !!t,
|
|
1296
1296
|
[C.filled]: N,
|
|
1297
1297
|
[C.withPrefix]: !!p,
|
|
1298
|
-
[C.withSuffix]: !!
|
|
1298
|
+
[C.withSuffix]: !!v
|
|
1299
1299
|
}
|
|
1300
1300
|
),
|
|
1301
1301
|
children: [
|
|
@@ -1329,7 +1329,7 @@ const J2 = "_focus_1chw9_549", Q2 = "_swap_1chw9_631", Y2 = "_swap__content_1chw
|
|
|
1329
1329
|
children: /* @__PURE__ */ o(D, {})
|
|
1330
1330
|
}
|
|
1331
1331
|
),
|
|
1332
|
-
|
|
1332
|
+
v && /* @__PURE__ */ o("div", { className: M(C.affix, C.suffix), children: v })
|
|
1333
1333
|
]
|
|
1334
1334
|
}
|
|
1335
1335
|
),
|
|
@@ -1511,11 +1511,11 @@ const u0 = ({
|
|
|
1511
1511
|
rows: i = 4,
|
|
1512
1512
|
clearable: u = !1,
|
|
1513
1513
|
type: p = "outline",
|
|
1514
|
-
value:
|
|
1514
|
+
value: v,
|
|
1515
1515
|
defaultValue: w,
|
|
1516
|
-
...
|
|
1516
|
+
...h
|
|
1517
1517
|
}, x) => {
|
|
1518
|
-
const m =
|
|
1518
|
+
const m = v !== void 0, [$, H] = t1(w?.toString() ?? ""), g = m ? v : $, L = (g?.toString() ?? "").length > 0, V = (N) => {
|
|
1519
1519
|
m || H(N.target.value), c?.(N);
|
|
1520
1520
|
}, S = () => {
|
|
1521
1521
|
a || (m || H(""), c?.({
|
|
@@ -1544,7 +1544,7 @@ const u0 = ({
|
|
|
1544
1544
|
className: z.textarea,
|
|
1545
1545
|
value: g,
|
|
1546
1546
|
onChange: V,
|
|
1547
|
-
...
|
|
1547
|
+
...h
|
|
1548
1548
|
}
|
|
1549
1549
|
),
|
|
1550
1550
|
s && /* @__PURE__ */ b("label", { htmlFor: _, className: z.label, children: [
|
|
@@ -1692,9 +1692,9 @@ const Ke = "_focus_u8g3r_549", Xe = "_swap_u8g3r_631", Je = "_swap__content_u8g3
|
|
|
1692
1692
|
noWrap: i = !1,
|
|
1693
1693
|
breakWord: u = !1,
|
|
1694
1694
|
...p
|
|
1695
|
-
} = e,
|
|
1695
|
+
} = e, v = e0[_], w = M(
|
|
1696
1696
|
Z.typography,
|
|
1697
|
-
Z[
|
|
1697
|
+
Z[v],
|
|
1698
1698
|
Z[`align-${s}`],
|
|
1699
1699
|
{
|
|
1700
1700
|
[Z.truncate]: l,
|
|
@@ -1718,7 +1718,7 @@ t0.displayName = "Typography";
|
|
|
1718
1718
|
export {
|
|
1719
1719
|
f1 as AlertsBellIcon,
|
|
1720
1720
|
C1 as ArrowChevronLeftIcon,
|
|
1721
|
-
|
|
1721
|
+
v1 as ArrowChevronRightIcon,
|
|
1722
1722
|
o0 as AuthCard,
|
|
1723
1723
|
q1 as Avatar,
|
|
1724
1724
|
s0 as AvatarGroup,
|
|
@@ -1730,7 +1730,7 @@ export {
|
|
|
1730
1730
|
i0 as Divider,
|
|
1731
1731
|
m1 as EyeIcon,
|
|
1732
1732
|
b1 as EyeSlashIcon,
|
|
1733
|
-
|
|
1733
|
+
h1 as FacebookIcon,
|
|
1734
1734
|
x1 as ImagePhotoIcon,
|
|
1735
1735
|
y1 as ImagePhotoOutline,
|
|
1736
1736
|
u1 as Input,
|