@bloomreach/react-banana-ui 1.15.0 → 1.16.0
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/bloomreach-react-banana-ui.es.js +150 -113
- package/dist/bloomreach-react-banana-ui.es.js.map +1 -1
- package/dist/bloomreach-react-banana-ui.umd.js +14 -14
- package/dist/bloomreach-react-banana-ui.umd.js.map +1 -1
- package/dist/components/data-display/index.d.ts +1 -0
- package/dist/components/data-display/typography/index.d.ts +2 -0
- package/dist/components/data-display/typography/typography.d.ts +4 -0
- package/dist/components/data-display/typography/typography.qa.stories.d.ts +7 -0
- package/dist/components/data-display/typography/typography.stories.d.ts +8 -0
- package/dist/components/data-display/typography/typography.types.d.ts +46 -0
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types/index.d.ts +2 -0
- package/dist/utils/types/polymorphic-prop.types.d.ts +13 -0
- package/dist/utils/types/simplify.d.ts +3 -0
- package/package.json +1 -1
|
@@ -7789,15 +7789,51 @@ const Fn = s((e, t) => {
|
|
|
7789
7789
|
return /* @__PURE__ */ a("div", { ...l, className: z("rbui-tag-group", r), ref: t, children: o });
|
|
7790
7790
|
});
|
|
7791
7791
|
Fn.displayName = "TagGroup";
|
|
7792
|
-
|
|
7792
|
+
const D9 = {
|
|
7793
|
+
"heading-xl": "h1",
|
|
7794
|
+
"heading-1": "h1",
|
|
7795
|
+
"heading-2": "h2",
|
|
7796
|
+
"heading-3": "h3",
|
|
7797
|
+
"heading-4": "h4",
|
|
7798
|
+
"heading-5": "h5",
|
|
7799
|
+
link: "a",
|
|
7800
|
+
"link-small": "a",
|
|
7801
|
+
text: "p",
|
|
7802
|
+
"text-bold": "p",
|
|
7803
|
+
"text-small": "p",
|
|
7804
|
+
"text-small-bold": "p",
|
|
7805
|
+
"text-mono": "code",
|
|
7806
|
+
"text-mono-small": "code",
|
|
7807
|
+
default: "p"
|
|
7808
|
+
}, U9 = s(
|
|
7809
|
+
(e, t) => {
|
|
7810
|
+
const {
|
|
7811
|
+
className: r,
|
|
7812
|
+
children: o,
|
|
7813
|
+
as: l,
|
|
7814
|
+
variant: c,
|
|
7815
|
+
color: i,
|
|
7816
|
+
...u
|
|
7817
|
+
// Capture any other properties to pass them to the root element, like `aria-*`, `data-*`, etc.
|
|
7818
|
+
} = e, h = l || D9[c || "default"], d = z(
|
|
7819
|
+
"rbui-typography",
|
|
7820
|
+
c && `rbui-typography--${c}`,
|
|
7821
|
+
i && `rbui-typography--color-${i}`,
|
|
7822
|
+
r
|
|
7823
|
+
);
|
|
7824
|
+
return /* @__PURE__ */ a(h, { ...u, className: d, ref: t, children: o });
|
|
7825
|
+
}
|
|
7826
|
+
);
|
|
7827
|
+
U9.displayName = "Typography";
|
|
7828
|
+
function W9(e) {
|
|
7793
7829
|
const { open: t, onOpenChange: r, children: o } = e, { contextValue: l } = Kr({
|
|
7794
7830
|
open: t,
|
|
7795
7831
|
onOpenChange: r
|
|
7796
7832
|
});
|
|
7797
7833
|
return /* @__PURE__ */ a(P0.Provider, { value: l, children: o });
|
|
7798
7834
|
}
|
|
7799
|
-
|
|
7800
|
-
const
|
|
7835
|
+
W9.displayName = "Menu";
|
|
7836
|
+
const j9 = s((e, t) => {
|
|
7801
7837
|
const { children: r, disabled: o = !1, type: l, htmlType: c, ...i } = e, { getRootProps: u } = sa({
|
|
7802
7838
|
disabled: o,
|
|
7803
7839
|
focusableWhenDisabled: !1,
|
|
@@ -7814,8 +7850,8 @@ const U9 = s((e, t) => {
|
|
|
7814
7850
|
});
|
|
7815
7851
|
return /* @__PURE__ */ a(He, { ...f, htmlType: c, type: l, children: r });
|
|
7816
7852
|
});
|
|
7817
|
-
|
|
7818
|
-
const
|
|
7853
|
+
j9.displayName = "MenuButton";
|
|
7854
|
+
const q9 = s(
|
|
7819
7855
|
(e, t) => {
|
|
7820
7856
|
const { children: r, className: o, placement: l = "bottom-end" } = e, { contextValue: c, getListboxProps: i, open: u, listboxRef: h, triggerElement: d } = Co({
|
|
7821
7857
|
disabledItemsFocusable: !1,
|
|
@@ -7834,18 +7870,18 @@ const W9 = s(
|
|
|
7834
7870
|
) });
|
|
7835
7871
|
}
|
|
7836
7872
|
);
|
|
7837
|
-
|
|
7838
|
-
function
|
|
7873
|
+
q9.displayName = "MenuContent";
|
|
7874
|
+
function K9(e) {
|
|
7839
7875
|
const { children: t, className: r, ...o } = e, l = z("rbui-menu-group", r);
|
|
7840
7876
|
return /* @__PURE__ */ a("li", { className: "rbui-menu-group__container", children: /* @__PURE__ */ a("ul", { role: "group", className: l, ...o, children: t }) });
|
|
7841
7877
|
}
|
|
7842
|
-
|
|
7843
|
-
function
|
|
7878
|
+
K9.displayName = "MenuGroup";
|
|
7879
|
+
function z9(e) {
|
|
7844
7880
|
const { children: t, className: r, ...o } = e, l = z("rbui-menu-group__label", r);
|
|
7845
7881
|
return /* @__PURE__ */ a("li", { role: "presentation", className: l, ...o, children: t });
|
|
7846
7882
|
}
|
|
7847
|
-
|
|
7848
|
-
const
|
|
7883
|
+
z9.displayName = "MenuGroupLabel";
|
|
7884
|
+
const G9 = s(
|
|
7849
7885
|
(e, t) => {
|
|
7850
7886
|
const { children: r, disabled: o = !1, startIcon: l, className: c, ...i } = e, { getRootProps: u, disabled: h, highlighted: d } = da({
|
|
7851
7887
|
disabled: o,
|
|
@@ -7867,18 +7903,18 @@ const K9 = s(
|
|
|
7867
7903
|
] });
|
|
7868
7904
|
}
|
|
7869
7905
|
);
|
|
7870
|
-
|
|
7871
|
-
function
|
|
7906
|
+
G9.displayName = "MenuItem";
|
|
7907
|
+
function Y9() {
|
|
7872
7908
|
return /* @__PURE__ */ a("li", { role: "separator", "aria-orientation": "horizontal", "aria-hidden": !0, className: "rbui-menu-separator" });
|
|
7873
7909
|
}
|
|
7874
|
-
|
|
7875
|
-
const
|
|
7910
|
+
Y9.displayName = "MenuSeparator";
|
|
7911
|
+
const X9 = {
|
|
7876
7912
|
error: (e) => /* @__PURE__ */ a(sn, { ...e }),
|
|
7877
7913
|
info: (e) => /* @__PURE__ */ a(un, { ...e }),
|
|
7878
7914
|
success: (e) => /* @__PURE__ */ a(rn, { ...e }),
|
|
7879
7915
|
warning: (e) => /* @__PURE__ */ a(fn, { ...e })
|
|
7880
7916
|
};
|
|
7881
|
-
function
|
|
7917
|
+
function $m(e) {
|
|
7882
7918
|
const {
|
|
7883
7919
|
actions: t,
|
|
7884
7920
|
children: r,
|
|
@@ -7897,7 +7933,7 @@ function Om(e) {
|
|
|
7897
7933
|
role: i,
|
|
7898
7934
|
...h,
|
|
7899
7935
|
children: [
|
|
7900
|
-
l !== !1 ? /* @__PURE__ */ a("div", { className: `rbui-alert__icon rbui-alert__icon--${u}`, children: l ||
|
|
7936
|
+
l !== !1 ? /* @__PURE__ */ a("div", { className: `rbui-alert__icon rbui-alert__icon--${u}`, children: l || X9[u]() }) : null,
|
|
7901
7937
|
/* @__PURE__ */ ue("div", { className: "rbui-alert__content", children: [
|
|
7902
7938
|
r,
|
|
7903
7939
|
t ? /* @__PURE__ */ a("div", { className: "rbui-alert__actions", children: t }) : null
|
|
@@ -7916,21 +7952,21 @@ function Om(e) {
|
|
|
7916
7952
|
}
|
|
7917
7953
|
);
|
|
7918
7954
|
}
|
|
7919
|
-
function
|
|
7955
|
+
function Bm(e) {
|
|
7920
7956
|
const { children: t, className: r } = e;
|
|
7921
7957
|
return /* @__PURE__ */ a("div", { className: z("rbui-alert-title", r), children: t });
|
|
7922
7958
|
}
|
|
7923
|
-
function
|
|
7959
|
+
function J9(e, t) {
|
|
7924
7960
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
7925
7961
|
}
|
|
7926
|
-
function
|
|
7962
|
+
function Q9(...e) {
|
|
7927
7963
|
return We(() => e.every((t) => t == null) ? null : (t) => {
|
|
7928
7964
|
e.forEach((r) => {
|
|
7929
|
-
|
|
7965
|
+
J9(r, t);
|
|
7930
7966
|
});
|
|
7931
7967
|
}, e);
|
|
7932
7968
|
}
|
|
7933
|
-
const
|
|
7969
|
+
const em = (e, t) => /* @__PURE__ */ a("input", { ...e, ref: t }), O0 = s((e, t) => {
|
|
7934
7970
|
const {
|
|
7935
7971
|
className: r,
|
|
7936
7972
|
clearable: o,
|
|
@@ -7951,11 +7987,11 @@ const J9 = (e, t) => /* @__PURE__ */ a("input", { ...e, ref: t }), O0 = s((e, t)
|
|
|
7951
7987
|
placeholder: R,
|
|
7952
7988
|
readOnly: x,
|
|
7953
7989
|
required: I,
|
|
7954
|
-
renderInput: C =
|
|
7990
|
+
renderInput: C = em,
|
|
7955
7991
|
rightElement: P,
|
|
7956
7992
|
value: F,
|
|
7957
7993
|
...T
|
|
7958
|
-
} = e, L = F == null, $ = Qe(null), K =
|
|
7994
|
+
} = e, L = F == null, $ = Qe(null), K = Q9($, d), [H, j] = Oe(L ? l : ""), U = L ? H : F;
|
|
7959
7995
|
M0(() => {
|
|
7960
7996
|
y == null || y((U == null ? void 0 : U.length) ?? 0);
|
|
7961
7997
|
}, [U, y]);
|
|
@@ -8032,7 +8068,7 @@ const Vn = N0(null);
|
|
|
8032
8068
|
function Hn() {
|
|
8033
8069
|
return f0(Vn);
|
|
8034
8070
|
}
|
|
8035
|
-
const
|
|
8071
|
+
const tm = s((e, t) => {
|
|
8036
8072
|
const { open: r, className: o, ...l } = e;
|
|
8037
8073
|
return /* @__PURE__ */ a(
|
|
8038
8074
|
"div",
|
|
@@ -8042,7 +8078,7 @@ const Q9 = s((e, t) => {
|
|
|
8042
8078
|
...l
|
|
8043
8079
|
}
|
|
8044
8080
|
);
|
|
8045
|
-
}),
|
|
8081
|
+
}), nm = s((e, t) => {
|
|
8046
8082
|
const {
|
|
8047
8083
|
open: r,
|
|
8048
8084
|
children: o,
|
|
@@ -8063,13 +8099,13 @@ const Q9 = s((e, t) => {
|
|
|
8063
8099
|
className: z("rbui-modal", i),
|
|
8064
8100
|
open: r,
|
|
8065
8101
|
onClose: d,
|
|
8066
|
-
slots: { backdrop: _r(
|
|
8102
|
+
slots: { backdrop: _r(tm) },
|
|
8067
8103
|
...h,
|
|
8068
8104
|
children: /* @__PURE__ */ a("div", { className: z("rbui-modal__wrapper", `rbui-modal__wrapper--${l}`), children: o })
|
|
8069
8105
|
}
|
|
8070
8106
|
) });
|
|
8071
8107
|
});
|
|
8072
|
-
|
|
8108
|
+
nm.displayName = "Modal";
|
|
8073
8109
|
function Ln(e) {
|
|
8074
8110
|
const {
|
|
8075
8111
|
className: t,
|
|
@@ -8084,7 +8120,7 @@ function Ln(e) {
|
|
|
8084
8120
|
}, className: t, children: r });
|
|
8085
8121
|
}
|
|
8086
8122
|
Ln.displayName = "ModalCloseButton";
|
|
8087
|
-
const
|
|
8123
|
+
const rm = s((e, t) => {
|
|
8088
8124
|
const {
|
|
8089
8125
|
children: r,
|
|
8090
8126
|
className: o,
|
|
@@ -8098,8 +8134,8 @@ const tm = s((e, t) => {
|
|
|
8098
8134
|
i && /* @__PURE__ */ a(Ln, { className: "rbui-modal__header-close", startIcon: /* @__PURE__ */ a(L0, {}) })
|
|
8099
8135
|
] });
|
|
8100
8136
|
});
|
|
8101
|
-
|
|
8102
|
-
const
|
|
8137
|
+
rm.displayName = "ModalHeader";
|
|
8138
|
+
const om = s((e, t) => {
|
|
8103
8139
|
const {
|
|
8104
8140
|
className: r,
|
|
8105
8141
|
children: o,
|
|
@@ -8107,8 +8143,8 @@ const nm = s((e, t) => {
|
|
|
8107
8143
|
} = e;
|
|
8108
8144
|
return /* @__PURE__ */ a("div", { ...l, ref: t, className: z("rbui-modal__header-title", r), children: o });
|
|
8109
8145
|
});
|
|
8110
|
-
|
|
8111
|
-
const
|
|
8146
|
+
om.displayName = "ModalHeaderTitle";
|
|
8147
|
+
const am = s((e, t) => {
|
|
8112
8148
|
const {
|
|
8113
8149
|
children: r,
|
|
8114
8150
|
padding: o = "narrow",
|
|
@@ -8117,8 +8153,8 @@ const rm = s((e, t) => {
|
|
|
8117
8153
|
} = e;
|
|
8118
8154
|
return /* @__PURE__ */ a("div", { ...c, ref: t, className: z("rbui-modal__body", `rbui-modal__body--${o}`, l), children: r });
|
|
8119
8155
|
});
|
|
8120
|
-
|
|
8121
|
-
const
|
|
8156
|
+
am.displayName = "ModalBody";
|
|
8157
|
+
const lm = s((e, t) => {
|
|
8122
8158
|
const {
|
|
8123
8159
|
children: r,
|
|
8124
8160
|
className: o,
|
|
@@ -8126,8 +8162,8 @@ const om = s((e, t) => {
|
|
|
8126
8162
|
} = e;
|
|
8127
8163
|
return /* @__PURE__ */ a("div", { ...l, ref: t, className: z("rbui-modal__footer", o), children: r });
|
|
8128
8164
|
});
|
|
8129
|
-
|
|
8130
|
-
const
|
|
8165
|
+
lm.displayName = "ModalFooter";
|
|
8166
|
+
const cm = s((e, t) => {
|
|
8131
8167
|
const {
|
|
8132
8168
|
className: r,
|
|
8133
8169
|
children: o,
|
|
@@ -8135,7 +8171,7 @@ const am = s((e, t) => {
|
|
|
8135
8171
|
} = e;
|
|
8136
8172
|
return /* @__PURE__ */ a("div", { ...l, ref: t, className: z("rbui-modal__footer--actions", r), children: o });
|
|
8137
8173
|
});
|
|
8138
|
-
|
|
8174
|
+
cm.displayName = "ModalFooterActions";
|
|
8139
8175
|
const xt = () => /* @__PURE__ */ a("span", { children: " " }), t0 = s((e, t) => {
|
|
8140
8176
|
const {
|
|
8141
8177
|
className: r,
|
|
@@ -8365,7 +8401,7 @@ const On = s((e, t) => {
|
|
|
8365
8401
|
);
|
|
8366
8402
|
});
|
|
8367
8403
|
On.displayName = "Toggle";
|
|
8368
|
-
const
|
|
8404
|
+
const sm = (e, t) => /* @__PURE__ */ n.createElement("svg", { width: 12, height: 8, viewBox: "0 0 12 8", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ref: t, ...e }, /* @__PURE__ */ n.createElement("path", { d: "M2.35331 3.43965C1.95179 3.06044 1.31889 3.07853 0.939676 3.48004C0.560465 3.88156 0.578548 4.51447 0.980066 4.89368L3.98006 7.72701C4.38158 8.10622 5.01449 8.08814 5.3937 7.68662L11.0604 1.68663C11.4396 1.28511 11.4215 0.652201 11.02 0.272989C10.6185 -0.106222 9.98555 -0.0881392 9.60634 0.313379L4.6263 5.58636L2.35331 3.43965Z" })), im = s(sm), um = (e, t) => /* @__PURE__ */ n.createElement("svg", { width: 8, height: 2, viewBox: "0 0 8 2", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ref: t, ...e }, /* @__PURE__ */ n.createElement("rect", { width: 8, height: 2, rx: 1 })), dm = s(um);
|
|
8369
8405
|
const kn = s((e, t) => {
|
|
8370
8406
|
const {
|
|
8371
8407
|
className: r,
|
|
@@ -8383,7 +8419,7 @@ const kn = s((e, t) => {
|
|
|
8383
8419
|
return;
|
|
8384
8420
|
const F = P.target.checked;
|
|
8385
8421
|
v || p(F), i == null || i(P);
|
|
8386
|
-
}, x = b || d, I = d ? /* @__PURE__ */ a(
|
|
8422
|
+
}, x = b || d, I = d ? /* @__PURE__ */ a(dm, {}) : /* @__PURE__ */ a(im, {}), C = z("rbui-checkbox", r, {
|
|
8387
8423
|
"rbui-checkbox--checked": x,
|
|
8388
8424
|
"rbui-checkbox--disabled": c,
|
|
8389
8425
|
"rbui-checkbox--readonly": u,
|
|
@@ -8458,10 +8494,10 @@ const E0 = s((e, t) => {
|
|
|
8458
8494
|
);
|
|
8459
8495
|
});
|
|
8460
8496
|
E0.displayName = "ListboxItem";
|
|
8461
|
-
const
|
|
8497
|
+
const hm = (e) => e, fm = ({ key: e, group: t, children: r }) => /* @__PURE__ */ ue(Bn, { children: [
|
|
8462
8498
|
/* @__PURE__ */ a($n, { children: t }),
|
|
8463
8499
|
r
|
|
8464
|
-
] }, e),
|
|
8500
|
+
] }, e), mm = (e) => {
|
|
8465
8501
|
const [t, r] = Oe(void 0);
|
|
8466
8502
|
return M0(() => {
|
|
8467
8503
|
const o = new ResizeObserver((l) => {
|
|
@@ -8471,7 +8507,7 @@ const um = (e) => e, dm = ({ key: e, group: t, children: r }) => /* @__PURE__ */
|
|
|
8471
8507
|
o.disconnect();
|
|
8472
8508
|
};
|
|
8473
8509
|
}, [e]), t;
|
|
8474
|
-
},
|
|
8510
|
+
}, pm = s((e, t) => {
|
|
8475
8511
|
const {
|
|
8476
8512
|
className: r,
|
|
8477
8513
|
clearable: o = !1,
|
|
@@ -8479,7 +8515,7 @@ const um = (e) => e, dm = ({ key: e, group: t, children: r }) => /* @__PURE__ */
|
|
|
8479
8515
|
defaultValue: c,
|
|
8480
8516
|
disabled: i = !1,
|
|
8481
8517
|
getOptionDisabled: u,
|
|
8482
|
-
getOptionLabel: h =
|
|
8518
|
+
getOptionLabel: h = hm,
|
|
8483
8519
|
groupBy: d,
|
|
8484
8520
|
hideSelectedOptions: f = !1,
|
|
8485
8521
|
loading: m = !1,
|
|
@@ -8569,7 +8605,7 @@ const um = (e) => e, dm = ({ key: e, group: t, children: r }) => /* @__PURE__ */
|
|
|
8569
8605
|
...ge
|
|
8570
8606
|
}
|
|
8571
8607
|
);
|
|
8572
|
-
}, ce = M ? g1 : p1, { ref: ee, ...ne } = $(), re = h0([t, B]), J = U(), _ =
|
|
8608
|
+
}, ce = M ? g1 : p1, { ref: ee, ...ne } = $(), re = h0([t, B]), J = U(), _ = mm(T);
|
|
8573
8609
|
return /* @__PURE__ */ ue(x0, { children: [
|
|
8574
8610
|
/* @__PURE__ */ a(
|
|
8575
8611
|
O0,
|
|
@@ -8620,7 +8656,7 @@ const um = (e) => e, dm = ({ key: e, group: t, children: r }) => /* @__PURE__ */
|
|
|
8620
8656
|
Z.map((G, Q) => {
|
|
8621
8657
|
if (d) {
|
|
8622
8658
|
const ie = G;
|
|
8623
|
-
return
|
|
8659
|
+
return fm({
|
|
8624
8660
|
...ie,
|
|
8625
8661
|
children: ie.options.map((k, ge) => O(k, ge + ie.index))
|
|
8626
8662
|
});
|
|
@@ -8636,9 +8672,9 @@ const um = (e) => e, dm = ({ key: e, group: t, children: r }) => /* @__PURE__ */
|
|
|
8636
8672
|
)
|
|
8637
8673
|
] });
|
|
8638
8674
|
});
|
|
8639
|
-
|
|
8675
|
+
pm.displayName = "Autocomplete";
|
|
8640
8676
|
const n0 = (e) => `${e}-${Math.round(Math.random() * 1e3)}`;
|
|
8641
|
-
const
|
|
8677
|
+
const gm = s((e, t) => {
|
|
8642
8678
|
const {
|
|
8643
8679
|
checked: r,
|
|
8644
8680
|
className: o,
|
|
@@ -8678,8 +8714,8 @@ const mm = s((e, t) => {
|
|
|
8678
8714
|
}
|
|
8679
8715
|
);
|
|
8680
8716
|
});
|
|
8681
|
-
|
|
8682
|
-
const
|
|
8717
|
+
gm.displayName = "CheckboxField";
|
|
8718
|
+
const vm = s((e, t) => {
|
|
8683
8719
|
const {
|
|
8684
8720
|
className: r,
|
|
8685
8721
|
clearable: o,
|
|
@@ -8739,8 +8775,8 @@ const pm = s((e, t) => {
|
|
|
8739
8775
|
}
|
|
8740
8776
|
);
|
|
8741
8777
|
});
|
|
8742
|
-
|
|
8743
|
-
const _n = d5.createContext(void 0),
|
|
8778
|
+
vm.displayName = "InputField";
|
|
8779
|
+
const _n = d5.createContext(void 0), wm = (e, t) => /* @__PURE__ */ n.createElement("svg", { width: 8, height: 8, viewBox: "0 0 8 8", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ref: t, ...e }, /* @__PURE__ */ n.createElement("circle", { cx: 4, cy: 4, r: 4 })), bm = s(wm);
|
|
8744
8780
|
const Dn = s((e, t) => {
|
|
8745
8781
|
const {
|
|
8746
8782
|
checked: r,
|
|
@@ -8799,7 +8835,7 @@ const Dn = s((e, t) => {
|
|
|
8799
8835
|
...g,
|
|
8800
8836
|
...L,
|
|
8801
8837
|
children: [
|
|
8802
|
-
/* @__PURE__ */ a("div", { className: "rbui-radio__inner", "aria-hidden": !0, children: E && /* @__PURE__ */ a(
|
|
8838
|
+
/* @__PURE__ */ a("div", { className: "rbui-radio__inner", "aria-hidden": !0, children: E && /* @__PURE__ */ a(bm, {}) }),
|
|
8803
8839
|
/* @__PURE__ */ a(
|
|
8804
8840
|
"input",
|
|
8805
8841
|
{
|
|
@@ -8815,7 +8851,7 @@ const Dn = s((e, t) => {
|
|
|
8815
8851
|
);
|
|
8816
8852
|
});
|
|
8817
8853
|
Dn.displayName = "Radio";
|
|
8818
|
-
const
|
|
8854
|
+
const ym = s(
|
|
8819
8855
|
(e, t) => {
|
|
8820
8856
|
const {
|
|
8821
8857
|
checked: r,
|
|
@@ -8859,8 +8895,8 @@ const wm = s(
|
|
|
8859
8895
|
);
|
|
8860
8896
|
}
|
|
8861
8897
|
);
|
|
8862
|
-
|
|
8863
|
-
const
|
|
8898
|
+
ym.displayName = "RadioField";
|
|
8899
|
+
const Em = s(
|
|
8864
8900
|
(e, t) => {
|
|
8865
8901
|
const {
|
|
8866
8902
|
children: r,
|
|
@@ -8922,8 +8958,8 @@ const bm = s(
|
|
|
8922
8958
|
) });
|
|
8923
8959
|
}
|
|
8924
8960
|
);
|
|
8925
|
-
|
|
8926
|
-
const
|
|
8961
|
+
Em.displayName = "RadioGroup";
|
|
8962
|
+
const xm = s((e, t) => {
|
|
8927
8963
|
const {
|
|
8928
8964
|
children: r,
|
|
8929
8965
|
className: o,
|
|
@@ -8969,7 +9005,7 @@ const ym = s((e, t) => {
|
|
|
8969
9005
|
}
|
|
8970
9006
|
);
|
|
8971
9007
|
});
|
|
8972
|
-
|
|
9008
|
+
xm.displayName = "SelectField";
|
|
8973
9009
|
const Un = s((e, t) => {
|
|
8974
9010
|
var y, E;
|
|
8975
9011
|
const { children: r, value: o, className: l, label: c, disabled: i = !1, ...u } = e, h = Qe(null), d = h0([h, t]), f = c ?? (typeof r == "string" ? r : (E = (y = h.current) == null ? void 0 : y.textContent) == null ? void 0 : E.trim()), { getRootProps: m, highlighted: g, selected: p, rootRef: v } = Ra({
|
|
@@ -8993,7 +9029,7 @@ const Un = s((e, t) => {
|
|
|
8993
9029
|
);
|
|
8994
9030
|
});
|
|
8995
9031
|
Un.displayName = "SelectOption";
|
|
8996
|
-
const
|
|
9032
|
+
const Cm = s((e, t) => {
|
|
8997
9033
|
const {
|
|
8998
9034
|
autoSize: r,
|
|
8999
9035
|
className: o,
|
|
@@ -9063,8 +9099,8 @@ const Em = s((e, t) => {
|
|
|
9063
9099
|
}
|
|
9064
9100
|
);
|
|
9065
9101
|
});
|
|
9066
|
-
|
|
9067
|
-
const
|
|
9102
|
+
Cm.displayName = "TextField";
|
|
9103
|
+
const Rm = s((e, t) => {
|
|
9068
9104
|
const {
|
|
9069
9105
|
className: r,
|
|
9070
9106
|
inputProps: o,
|
|
@@ -9104,17 +9140,17 @@ const xm = s((e, t) => {
|
|
|
9104
9140
|
}
|
|
9105
9141
|
);
|
|
9106
9142
|
});
|
|
9107
|
-
|
|
9143
|
+
Rm.displayName = "ToggleField";
|
|
9108
9144
|
const Wn = N0(null);
|
|
9109
9145
|
function Ct() {
|
|
9110
9146
|
return f0(Wn);
|
|
9111
9147
|
}
|
|
9112
|
-
const
|
|
9113
|
-
function
|
|
9148
|
+
const Im = [10, 20, 50], Ge = 9, ke = 2;
|
|
9149
|
+
function Zm() {
|
|
9114
9150
|
const e = Ct();
|
|
9115
9151
|
if (!e)
|
|
9116
9152
|
throw new Error("PaginationItemsPerPageSelector must be used within a PaginationContext.Provider");
|
|
9117
|
-
const { itemsPerPage: t, itemsPerPageOptions: r, onItemsPerPageChange: o } = e, l = (r ||
|
|
9153
|
+
const { itemsPerPage: t, itemsPerPageOptions: r, onItemsPerPageChange: o } = e, l = (r || Im).map((c) => typeof c == "number" ? {
|
|
9118
9154
|
label: c.toString(),
|
|
9119
9155
|
value: c
|
|
9120
9156
|
} : c);
|
|
@@ -9133,7 +9169,7 @@ const Jt = "...";
|
|
|
9133
9169
|
function K0(e, t) {
|
|
9134
9170
|
return Array(t).fill(0).map((r, o) => o + e);
|
|
9135
9171
|
}
|
|
9136
|
-
function
|
|
9172
|
+
function Sm(e, t) {
|
|
9137
9173
|
const r = [], o = t - 1;
|
|
9138
9174
|
return t <= Ge ? K0(0, t).map((l) => r.push(l)) : (r.push(0), e <= Ge - ke * 2 ? K0(
|
|
9139
9175
|
1,
|
|
@@ -9146,7 +9182,7 @@ function Im(e, t) {
|
|
|
9146
9182
|
Ge - ke - 1
|
|
9147
9183
|
).map((l) => r.push(l)) : r.push(Jt), r.push(o)), r;
|
|
9148
9184
|
}
|
|
9149
|
-
function
|
|
9185
|
+
function Mm({ value: e }) {
|
|
9150
9186
|
const t = Ct();
|
|
9151
9187
|
if (!t)
|
|
9152
9188
|
throw new Error("PaginationNavigationItem must be used within a PaginationContext.Provider");
|
|
@@ -9169,7 +9205,7 @@ function Zm({ value: e }) {
|
|
|
9169
9205
|
}
|
|
9170
9206
|
);
|
|
9171
9207
|
}
|
|
9172
|
-
function
|
|
9208
|
+
function Nm() {
|
|
9173
9209
|
const e = Ct();
|
|
9174
9210
|
if (!e)
|
|
9175
9211
|
throw new Error("PaginationNavigation must be used within a PaginationContext.Provider");
|
|
@@ -9180,7 +9216,7 @@ function Sm() {
|
|
|
9180
9216
|
l == null || l(r + 1);
|
|
9181
9217
|
}, i = () => {
|
|
9182
9218
|
l == null || l(r - 1);
|
|
9183
|
-
}, u =
|
|
9219
|
+
}, u = Sm(r, Math.ceil(t / o));
|
|
9184
9220
|
return /* @__PURE__ */ a("nav", { role: "navigation", "aria-label": "Pagination Navigation", className: "rbui-pagination__navigation", children: /* @__PURE__ */ ue("ul", { children: [
|
|
9185
9221
|
/* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
|
|
9186
9222
|
He,
|
|
@@ -9192,7 +9228,7 @@ function Sm() {
|
|
|
9192
9228
|
children: /* @__PURE__ */ a(an, {})
|
|
9193
9229
|
}
|
|
9194
9230
|
) }),
|
|
9195
|
-
u.map((h, d) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
|
|
9231
|
+
u.map((h, d) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(Mm, { value: h }) }, `rbui-pagination-${h}-${d}`)),
|
|
9196
9232
|
/* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
|
|
9197
9233
|
He,
|
|
9198
9234
|
{
|
|
@@ -9205,7 +9241,7 @@ function Sm() {
|
|
|
9205
9241
|
) })
|
|
9206
9242
|
] }) });
|
|
9207
9243
|
}
|
|
9208
|
-
function
|
|
9244
|
+
function Am() {
|
|
9209
9245
|
const e = Ct();
|
|
9210
9246
|
if (!e)
|
|
9211
9247
|
throw new Error("PaginationSummary must be used within a PaginationContext.Provider");
|
|
@@ -9226,7 +9262,7 @@ function Mm() {
|
|
|
9226
9262
|
t.toLocaleString()
|
|
9227
9263
|
] });
|
|
9228
9264
|
}
|
|
9229
|
-
const
|
|
9265
|
+
const Pm = s((e, t) => {
|
|
9230
9266
|
const {
|
|
9231
9267
|
count: r,
|
|
9232
9268
|
className: o,
|
|
@@ -9239,14 +9275,14 @@ const Nm = s((e, t) => {
|
|
|
9239
9275
|
} = e;
|
|
9240
9276
|
return r < 1 ? null : /* @__PURE__ */ a(Wn.Provider, { value: e, children: /* @__PURE__ */ ue("div", { ...d, className: z("rbui-pagination", o), ref: t, children: [
|
|
9241
9277
|
/* @__PURE__ */ ue("div", { className: "rbui-pagination__left", children: [
|
|
9242
|
-
/* @__PURE__ */ a(
|
|
9243
|
-
/* @__PURE__ */ a(
|
|
9278
|
+
/* @__PURE__ */ a(Zm, {}),
|
|
9279
|
+
/* @__PURE__ */ a(Am, {})
|
|
9244
9280
|
] }),
|
|
9245
|
-
/* @__PURE__ */ a(
|
|
9281
|
+
/* @__PURE__ */ a(Nm, {})
|
|
9246
9282
|
] }) });
|
|
9247
9283
|
});
|
|
9248
|
-
|
|
9249
|
-
const
|
|
9284
|
+
Pm.displayName = "Pagination";
|
|
9285
|
+
const Tm = s((e, t) => {
|
|
9250
9286
|
const {
|
|
9251
9287
|
className: r,
|
|
9252
9288
|
children: o,
|
|
@@ -9279,8 +9315,8 @@ const Am = s((e, t) => {
|
|
|
9279
9315
|
o
|
|
9280
9316
|
] });
|
|
9281
9317
|
});
|
|
9282
|
-
|
|
9283
|
-
const
|
|
9318
|
+
Tm.displayName = "Tab";
|
|
9319
|
+
const Fm = s((e, t) => {
|
|
9284
9320
|
const {
|
|
9285
9321
|
className: r,
|
|
9286
9322
|
children: o,
|
|
@@ -9298,8 +9334,8 @@ const Pm = s((e, t) => {
|
|
|
9298
9334
|
);
|
|
9299
9335
|
return /* @__PURE__ */ a(La, { value: u, children: /* @__PURE__ */ a("div", { ...h, className: d, children: o }) });
|
|
9300
9336
|
});
|
|
9301
|
-
|
|
9302
|
-
const
|
|
9337
|
+
Fm.displayName = "TabList";
|
|
9338
|
+
const Vm = s((e, t) => {
|
|
9303
9339
|
const {
|
|
9304
9340
|
className: r,
|
|
9305
9341
|
children: o,
|
|
@@ -9315,8 +9351,8 @@ const Tm = s((e, t) => {
|
|
|
9315
9351
|
});
|
|
9316
9352
|
return /* @__PURE__ */ a("div", { ...f, className: m, ref: d, children: (l || !h) && o });
|
|
9317
9353
|
});
|
|
9318
|
-
|
|
9319
|
-
const
|
|
9354
|
+
Vm.displayName = "TabPanel";
|
|
9355
|
+
const Hm = s((e, t) => {
|
|
9320
9356
|
const {
|
|
9321
9357
|
className: r,
|
|
9322
9358
|
children: o,
|
|
@@ -9336,12 +9372,12 @@ const Fm = s((e, t) => {
|
|
|
9336
9372
|
});
|
|
9337
9373
|
return /* @__PURE__ */ a(Pa, { value: d, children: /* @__PURE__ */ a("div", { ...h, className: z("rbui-tabs", r), ref: t, children: o }) });
|
|
9338
9374
|
});
|
|
9339
|
-
|
|
9375
|
+
Hm.displayName = "Tabs";
|
|
9340
9376
|
export {
|
|
9341
9377
|
Ga as AbTestIcon,
|
|
9342
9378
|
Ja as AggregateIcon,
|
|
9343
|
-
|
|
9344
|
-
|
|
9379
|
+
$m as Alert,
|
|
9380
|
+
Bm as AlertTitle,
|
|
9345
9381
|
t2 as AnalyticsIcon,
|
|
9346
9382
|
o2 as AndroidIcon,
|
|
9347
9383
|
c2 as AnonymizeIcon,
|
|
@@ -9359,7 +9395,7 @@ export {
|
|
|
9359
9395
|
nn as ArrowUpIcon,
|
|
9360
9396
|
N9 as AssetTag,
|
|
9361
9397
|
W2 as AttributeSlotIcon,
|
|
9362
|
-
|
|
9398
|
+
pm as Autocomplete,
|
|
9363
9399
|
K2 as AxisIcon,
|
|
9364
9400
|
Y2 as AxisLimtIcon,
|
|
9365
9401
|
Q2 as BarChartIcon,
|
|
@@ -9383,7 +9419,7 @@ export {
|
|
|
9383
9419
|
q7 as CheckIcon,
|
|
9384
9420
|
on as CheckSmallIcon,
|
|
9385
9421
|
kn as Checkbox,
|
|
9386
|
-
|
|
9422
|
+
gm as CheckboxField,
|
|
9387
9423
|
X7 as ChevronDownFillIcon,
|
|
9388
9424
|
p1 as ChevronDownIcon,
|
|
9389
9425
|
nl as ChevronLeftFillIcon,
|
|
@@ -9473,7 +9509,7 @@ export {
|
|
|
9473
9509
|
dn as InfoFilledIcon,
|
|
9474
9510
|
S3 as InfoIcon,
|
|
9475
9511
|
A3 as InfoSmallIcon,
|
|
9476
|
-
|
|
9512
|
+
vm as InputField,
|
|
9477
9513
|
Nn as InputTag,
|
|
9478
9514
|
F3 as InternetIcon,
|
|
9479
9515
|
L3 as KeyIcon,
|
|
@@ -9485,13 +9521,13 @@ export {
|
|
|
9485
9521
|
hn as LoaderIcon,
|
|
9486
9522
|
nu as LockIcon,
|
|
9487
9523
|
au as MapIcon,
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9524
|
+
W9 as Menu,
|
|
9525
|
+
j9 as MenuButton,
|
|
9526
|
+
q9 as MenuContent,
|
|
9527
|
+
K9 as MenuGroup,
|
|
9528
|
+
z9 as MenuGroupLabel,
|
|
9529
|
+
G9 as MenuItem,
|
|
9530
|
+
Y9 as MenuSeparator,
|
|
9495
9531
|
su as MetricAltIcon,
|
|
9496
9532
|
du as MinusIcon,
|
|
9497
9533
|
mu as MobileAppInboxIcon,
|
|
@@ -9501,13 +9537,13 @@ export {
|
|
|
9501
9537
|
Zu as MobilePushIcon,
|
|
9502
9538
|
Nu as MobileSmsIcon,
|
|
9503
9539
|
Tu as MobileTextMessageIcon,
|
|
9504
|
-
|
|
9505
|
-
|
|
9540
|
+
nm as Modal,
|
|
9541
|
+
am as ModalBody,
|
|
9506
9542
|
Ln as ModalCloseButton,
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9543
|
+
lm as ModalFooter,
|
|
9544
|
+
cm as ModalFooterActions,
|
|
9545
|
+
rm as ModalHeader,
|
|
9546
|
+
om as ModalHeaderTitle,
|
|
9511
9547
|
Hu as MoveIcon,
|
|
9512
9548
|
ku as MultiParentRejectedIcon,
|
|
9513
9549
|
_u as MultiParentSelectedIcon,
|
|
@@ -9520,7 +9556,7 @@ export {
|
|
|
9520
9556
|
a6 as OfflineIcon,
|
|
9521
9557
|
s6 as OutOfStockIcon,
|
|
9522
9558
|
d6 as PagesIcon,
|
|
9523
|
-
|
|
9559
|
+
Pm as Pagination,
|
|
9524
9560
|
m6 as PaintIcon,
|
|
9525
9561
|
v6 as ParagraphCenterAlignIcon,
|
|
9526
9562
|
y6 as ParagraphLeftAlignIcon,
|
|
@@ -9542,8 +9578,8 @@ export {
|
|
|
9542
9578
|
m4 as PoverButtonIcon,
|
|
9543
9579
|
v4 as ProductSlotsIcon,
|
|
9544
9580
|
Dn as Radio,
|
|
9545
|
-
|
|
9546
|
-
|
|
9581
|
+
ym as RadioField,
|
|
9582
|
+
Em as RadioGroup,
|
|
9547
9583
|
y4 as ReceiveIcon,
|
|
9548
9584
|
C4 as RefreshIcon,
|
|
9549
9585
|
Z4 as ReleaseNotesIcon,
|
|
@@ -9563,7 +9599,7 @@ export {
|
|
|
9563
9599
|
m8 as ScenarioIcon,
|
|
9564
9600
|
v8 as SearchIcon,
|
|
9565
9601
|
y8 as SecurityShieldIcon,
|
|
9566
|
-
|
|
9602
|
+
xm as SelectField,
|
|
9567
9603
|
Un as SelectOption,
|
|
9568
9604
|
C8 as SendIcon,
|
|
9569
9605
|
Z8 as SettingsAltIcon,
|
|
@@ -9589,9 +9625,9 @@ export {
|
|
|
9589
9625
|
Cd as SuggestionIcon,
|
|
9590
9626
|
Zd as SurveyIcon,
|
|
9591
9627
|
Nd as SwapIcon,
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9628
|
+
Tm as Tab,
|
|
9629
|
+
Fm as TabList,
|
|
9630
|
+
Vm as TabPanel,
|
|
9595
9631
|
_9 as Table,
|
|
9596
9632
|
T9 as TableBody,
|
|
9597
9633
|
H9 as TableCell,
|
|
@@ -9602,23 +9638,24 @@ export {
|
|
|
9602
9638
|
B9 as TableSortLabel,
|
|
9603
9639
|
Td as TabletLangscapeIcon,
|
|
9604
9640
|
Hd as TabletPortraitIcon,
|
|
9605
|
-
|
|
9641
|
+
Hm as Tabs,
|
|
9606
9642
|
kd as TagAltIcon,
|
|
9607
9643
|
Fn as TagGroup,
|
|
9608
9644
|
_d as TagIcon,
|
|
9609
9645
|
Wd as TemplateIcon,
|
|
9610
9646
|
Kd as TextBoldIcon,
|
|
9611
|
-
|
|
9647
|
+
Cm as TextField,
|
|
9612
9648
|
Yd as TextItalicIcon,
|
|
9613
9649
|
Qd as TextStyleIcon,
|
|
9614
9650
|
m9 as ToggleButton,
|
|
9615
9651
|
g9 as ToggleButtonGroup,
|
|
9616
|
-
|
|
9652
|
+
Rm as ToggleField,
|
|
9617
9653
|
w1 as Tooltip,
|
|
9618
9654
|
nh as TragetIcon,
|
|
9619
9655
|
ah as TransferIcon,
|
|
9620
9656
|
sh as TrashIcon,
|
|
9621
9657
|
dh as TrendIcon,
|
|
9658
|
+
U9 as Typography,
|
|
9622
9659
|
mh as UnExposeIcon,
|
|
9623
9660
|
vh as UnarchiveAltIcon,
|
|
9624
9661
|
yh as UndoIcon,
|