@blockscout/ui-toolkit 2.1.0-alpha.0 → 2.1.0-alpha.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/dist/index.js +15 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3762,7 +3762,12 @@ const ta = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
3762
3762
|
}, N0 = (e) => {
|
|
3763
3763
|
const { asChild: t = !0, ...r } = e;
|
|
3764
3764
|
return /* @__PURE__ */ p(xe.Trigger, { asChild: t, ...r });
|
|
3765
|
-
}, D0 = xe.Footer, z0 = xe.Header, B0 = xe.Body, U0 = xe.Description, F0 = xe.Title, M0 = xe.ActionTrigger
|
|
3765
|
+
}, D0 = xe.Footer, z0 = xe.Header, B0 = xe.Body, U0 = xe.Description, F0 = xe.Title, M0 = xe.ActionTrigger;
|
|
3766
|
+
function ra(e) {
|
|
3767
|
+
if (typeof e != "string" && "displayName" in e)
|
|
3768
|
+
return e.displayName;
|
|
3769
|
+
}
|
|
3770
|
+
const Zc = "≈", Qc = "~", Jc = "…", na = " ", eu = " ", tu = " ", oa = " ", ru = "‑", nu = "—", ou = "–", iu = "«", au = "»", At = "·", lu = "●", su = "➤", cu = "°", uu = "×", du = "•", fu = "−", pu = "←", hu = "→", gu = "'", bu = "⇧", mu = "⌘", vu = "⎇", _u = "©", j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3766
3771
|
__proto__: null,
|
|
3767
3772
|
alt: vu,
|
|
3768
3773
|
apos: gu,
|
|
@@ -3781,21 +3786,16 @@ const ta = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24",
|
|
|
3781
3786
|
middot: At,
|
|
3782
3787
|
minus: fu,
|
|
3783
3788
|
nbdash: ru,
|
|
3784
|
-
nbsp:
|
|
3789
|
+
nbsp: na,
|
|
3785
3790
|
ndash: ou,
|
|
3786
3791
|
raquo: au,
|
|
3787
3792
|
rightLineArrow: hu,
|
|
3788
3793
|
shift: bu,
|
|
3789
|
-
space:
|
|
3794
|
+
space: oa,
|
|
3790
3795
|
thinsp: eu,
|
|
3791
3796
|
tilde: Qc,
|
|
3792
3797
|
times: uu
|
|
3793
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
3794
|
-
function oa(e) {
|
|
3795
|
-
if (typeof e != "string" && "displayName" in e)
|
|
3796
|
-
return e.displayName;
|
|
3797
|
-
}
|
|
3798
|
-
const ia = R.forwardRef(
|
|
3798
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = R.forwardRef(
|
|
3799
3799
|
function(t, r) {
|
|
3800
3800
|
const { label: n, children: o, helperText: i, errorText: c, optionalText: l, ...d } = t;
|
|
3801
3801
|
if (d.floating && n) {
|
|
@@ -3812,11 +3812,11 @@ const ia = R.forwardRef(
|
|
|
3812
3812
|
/* @__PURE__ */ p(Te.RequiredIndicator, { fallback: l }),
|
|
3813
3813
|
c && /* @__PURE__ */ q(Te.ErrorText, { ml: "2px", children: [
|
|
3814
3814
|
"-",
|
|
3815
|
-
|
|
3815
|
+
oa,
|
|
3816
3816
|
c
|
|
3817
3817
|
] })
|
|
3818
3818
|
] }), S = i && /* @__PURE__ */ p(Te.HelperText, { children: i }), P = R.Children.only(o);
|
|
3819
|
-
if (
|
|
3819
|
+
if (ra(P.type) === "InputGroup") {
|
|
3820
3820
|
const x = R.cloneElement(
|
|
3821
3821
|
R.Children.only(P.props.children),
|
|
3822
3822
|
T
|
|
@@ -3923,7 +3923,7 @@ const ia = R.forwardRef(
|
|
|
3923
3923
|
};
|
|
3924
3924
|
}, [P]), /* @__PURE__ */ q(vr, { ref: r, w: "100%", ...g, children: [
|
|
3925
3925
|
n && /* @__PURE__ */ p(Nr, { pointerEvents: "none", ref: v, px: 0, color: "gray.500", ...o, children: n }),
|
|
3926
|
-
R.Children.map(l, (w) =>
|
|
3926
|
+
R.Children.map(l, (w) => ra(w.type) !== "FieldInput" ? w : R.cloneElement(w, {
|
|
3927
3927
|
...n && { ps: d ?? (b != null && b.start ? `${b.start}px` : void 0) },
|
|
3928
3928
|
...i && { pe: h ?? (b != null && b.end ? `${b.end}px` : void 0) },
|
|
3929
3929
|
// hide input value and placeholder for the first render
|
|
@@ -5321,6 +5321,7 @@ const Mu = {
|
|
|
5321
5321
|
gap: 0,
|
|
5322
5322
|
fontWeight: 600,
|
|
5323
5323
|
overflow: "hidden",
|
|
5324
|
+
borderRadius: "base",
|
|
5324
5325
|
_disabled: {
|
|
5325
5326
|
opacity: "control.disabled"
|
|
5326
5327
|
}
|
|
@@ -8706,7 +8707,7 @@ const Bd = R.forwardRef(
|
|
|
8706
8707
|
} = t, S = c ? /* @__PURE__ */ q(We.span, { color: "text.secondary", children: [
|
|
8707
8708
|
c,
|
|
8708
8709
|
":",
|
|
8709
|
-
|
|
8710
|
+
na
|
|
8710
8711
|
] }) : null, P = g ? /* @__PURE__ */ p(Gi, { label: h, children: /* @__PURE__ */ q(Be.Label, { children: [
|
|
8711
8712
|
S,
|
|
8712
8713
|
h
|
|
@@ -10536,7 +10537,7 @@ export {
|
|
|
10536
10537
|
kp as consts,
|
|
10537
10538
|
h0 as domainValidator,
|
|
10538
10539
|
Mp as emailValidator,
|
|
10539
|
-
|
|
10540
|
+
ra as getComponentDisplayName,
|
|
10540
10541
|
Kt as getFormFieldErrorText,
|
|
10541
10542
|
Op as guards,
|
|
10542
10543
|
j0 as html,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockscout/ui-toolkit",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.2",
|
|
4
4
|
"description": "A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|