@solibo/solibo-ui 2.2.20 → 2.3.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/assets/index.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index53.css +1 -1
- package/dist/assets/index54.css +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +36 -26
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +21 -20
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +39 -39
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +42 -42
- package/dist/components/label/index.cjs +1 -1
- package/dist/components/label/index.js +12 -12
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +80 -67
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +31 -31
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +21 -24
- package/dist/index.d.ts +33 -25
- package/dist/tokens.css +12 -12
- package/dist/tokens.json +24 -52
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { i as ot } from "../../icons-DtAsxlep.js";
|
|
|
7
7
|
import { f as ct, I as dt } from "../../index-DpkXKD1Z.js";
|
|
8
8
|
import { Label as ut } from "../label/index.js";
|
|
9
9
|
import { List as ft } from "../list/index.js";
|
|
10
|
-
import { Loading as
|
|
10
|
+
import { Loading as Ve } from "../loading/index.js";
|
|
11
11
|
import { S as pt, s as mt, r as ce } from "../../index-CWeknFzO.js";
|
|
12
12
|
import '../../assets/index41.css';function K(t) {
|
|
13
13
|
return typeof t == "string" || typeof t == "number" ? String(t) : Array.isArray(t) ? t.map(K).join(" ") : F(t) ? K(t.props.children) : "";
|
|
@@ -104,7 +104,7 @@ const It = "_combobox_7iy0q_3", Nt = "_dropdown_7iy0q_21", xt = "_empty_7iy0q_29
|
|
|
104
104
|
label: Gt,
|
|
105
105
|
"inline-field": "_inline-field_7iy0q_302"
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function $e(t, s) {
|
|
108
108
|
return {
|
|
109
109
|
"--icon-svg": ot(t, s)
|
|
110
110
|
};
|
|
@@ -118,25 +118,25 @@ const Yt = ({
|
|
|
118
118
|
invalid: w = !1,
|
|
119
119
|
searchable: W,
|
|
120
120
|
createOption: q,
|
|
121
|
-
emptyLabel:
|
|
121
|
+
emptyLabel: Be = "No matches found",
|
|
122
122
|
errorLabel: p,
|
|
123
123
|
onRetry: ue,
|
|
124
|
-
retryLabel:
|
|
124
|
+
retryLabel: ke = "Retry",
|
|
125
125
|
label: v,
|
|
126
|
-
filterOptions:
|
|
126
|
+
filterOptions: De = !0,
|
|
127
127
|
hasNextPage: y = !1,
|
|
128
128
|
loading: d = !1,
|
|
129
129
|
loadingLabel: fe = "Loading",
|
|
130
|
-
loadMoreLabel:
|
|
130
|
+
loadMoreLabel: je = "Load more",
|
|
131
131
|
onLoadMore: R,
|
|
132
132
|
onOpenChange: z,
|
|
133
133
|
onSearchChange: Q,
|
|
134
134
|
searchValue: L,
|
|
135
135
|
renderOption: O,
|
|
136
136
|
searchPlaceholder: T = "Filter",
|
|
137
|
-
selectedItems:
|
|
137
|
+
selectedItems: Fe,
|
|
138
138
|
variant: S = "default",
|
|
139
|
-
...
|
|
139
|
+
...pe
|
|
140
140
|
}) => {
|
|
141
141
|
const H = St(t), {
|
|
142
142
|
defaultValue: We,
|
|
@@ -146,14 +146,14 @@ const Yt = ({
|
|
|
146
146
|
} = H.props, o = mt(ze), {
|
|
147
147
|
className: Qe,
|
|
148
148
|
...Ge
|
|
149
|
-
} = o,
|
|
149
|
+
} = o, me = _(null), be = _(null), I = st(), U = w && n ? `${I}-error` : void 0, ye = a ? `${I}-description` : void 0, _e = [o["aria-describedby"], ye, U].filter(Boolean).join(" ") || void 0, ve = w ? !0 : o["aria-invalid"], he = _(null), N = _(null), X = _(null), ge = _(null), Y = _(!1), Z = _(!1), ee = _(R), we = !!R, x = de(H.children), V = P != null, te = qt(x, P, We), [ne, ie] = D(() => te), [c, Ae] = D(!1), [Me, qe] = D(!1), [Ke, Le] = D(null), [Oe, Te] = D(""), h = L ?? Oe, re = x.filter((e) => !e.hidden).length, He = Ke ?? (d || !!p || y || re > 8), E = W ?? (He || Me || h.length > 0), $ = oe((e) => {
|
|
150
150
|
L === void 0 && Te(e), Q == null || Q(e);
|
|
151
151
|
}, [Q, L]), m = oe((e) => {
|
|
152
152
|
Y.current === e || e && o.disabled || (Y.current = e, Ae(e), z == null || z(e), e || $(""));
|
|
153
|
-
}, [z, o.disabled, $]), G = V ? String(P) : ne,
|
|
153
|
+
}, [z, o.disabled, $]), G = V ? String(P) : ne, Se = {
|
|
154
154
|
default: ce("--colors-semantic-content-secondary"),
|
|
155
155
|
white: ce("--color-white", "white")
|
|
156
|
-
},
|
|
156
|
+
}, Ie = o.disabled ? ce("--colors-semantic-content-disabled") : S === "minimal" ? Se.white : Se.default, A = wt(x, G), Je = $e("CaretDown", Ie), Pe = $e("MagnifyingGlass", Ie), le = gt(x, De ? h : ""), C = h.trim(), M = !!(r && q && C && q.isValid(C)), Ue = v && S === "inline" ? ct(v) : v, Ne = (e) => e ? (O == null ? void 0 : O({
|
|
157
157
|
groupLabel: e.groupLabel,
|
|
158
158
|
isSelected: e.value === G,
|
|
159
159
|
label: e.label,
|
|
@@ -165,7 +165,7 @@ const Yt = ({
|
|
|
165
165
|
}, [c, h, d, p, y, re]), g(() => {
|
|
166
166
|
!V && !x.some((e) => e.value === ne) && ie(te);
|
|
167
167
|
}, [te, ne, V, x]), g(() => {
|
|
168
|
-
c ? E &&
|
|
168
|
+
c ? E && qe(!0) : qe(!1);
|
|
169
169
|
}, [c, E]), g(() => {
|
|
170
170
|
var e, u, f;
|
|
171
171
|
c && (r || E ? (e = N.current) == null || e.focus() : (f = (u = X.current) == null ? void 0 : u.querySelector("button:not(:disabled)")) == null || f.focus());
|
|
@@ -174,7 +174,7 @@ const Yt = ({
|
|
|
174
174
|
return;
|
|
175
175
|
const e = (u) => {
|
|
176
176
|
var f;
|
|
177
|
-
(f =
|
|
177
|
+
(f = be.current) != null && f.contains(u.target) || m(!1);
|
|
178
178
|
};
|
|
179
179
|
return document.addEventListener("mousedown", e), () => {
|
|
180
180
|
document.removeEventListener("mousedown", e);
|
|
@@ -188,8 +188,8 @@ const Yt = ({
|
|
|
188
188
|
!Y.current || o.disabled || d || p || !y || !ee.current || Z.current || (Z.current = !0, ee.current());
|
|
189
189
|
}, [p, y, d, o.disabled]);
|
|
190
190
|
g(() => {
|
|
191
|
-
if (Z.current = !1, !c || o.disabled || d || p || !y || !
|
|
192
|
-
const e =
|
|
191
|
+
if (Z.current = !1, !c || o.disabled || d || p || !y || !we) return;
|
|
192
|
+
const e = ge.current, u = X.current;
|
|
193
193
|
if (!e || !u || typeof IntersectionObserver > "u") return;
|
|
194
194
|
let f = !0;
|
|
195
195
|
const B = new IntersectionObserver((tt) => {
|
|
@@ -200,21 +200,21 @@ const Yt = ({
|
|
|
200
200
|
return B.observe(e), () => {
|
|
201
201
|
f = !1, B.disconnect();
|
|
202
202
|
};
|
|
203
|
-
}, [c, d, p, y,
|
|
203
|
+
}, [c, d, p, y, we, se, le.length, h, o.disabled]);
|
|
204
204
|
const Xe = (e) => {
|
|
205
205
|
V || ie(e.target.value), J == null || J(e);
|
|
206
206
|
}, ae = () => {
|
|
207
207
|
var e;
|
|
208
|
-
m(!1), r || (e =
|
|
209
|
-
},
|
|
208
|
+
m(!1), r || (e = me.current) == null || e.focus();
|
|
209
|
+
}, xe = () => {
|
|
210
210
|
var e;
|
|
211
211
|
$(""), m(!0), (e = N.current) == null || e.focus();
|
|
212
|
-
},
|
|
213
|
-
!q || !M || (q.onCreate(C),
|
|
212
|
+
}, Ee = () => {
|
|
213
|
+
!q || !M || (q.onCreate(C), xe());
|
|
214
214
|
}, Ye = (e) => {
|
|
215
215
|
var B;
|
|
216
216
|
V || ie(e);
|
|
217
|
-
const u =
|
|
217
|
+
const u = he.current;
|
|
218
218
|
if (!u) {
|
|
219
219
|
ae();
|
|
220
220
|
return;
|
|
@@ -222,48 +222,48 @@ const Yt = ({
|
|
|
222
222
|
const f = (B = Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype, "value")) == null ? void 0 : B.set;
|
|
223
223
|
f == null || f.call(u, e), u.dispatchEvent(new Event("change", {
|
|
224
224
|
bubbles: !0
|
|
225
|
-
})), r ?
|
|
225
|
+
})), r ? xe() : ae();
|
|
226
226
|
}, Ze = (e) => {
|
|
227
|
-
e.key === "Escape" && ae(), e.key === "Enter" && e.target === N.current && M && (e.preventDefault(),
|
|
228
|
-
},
|
|
229
|
-
/* @__PURE__ */ l("select", { ...Ge, "aria-hidden": "true", className: k(i.native, Qe), onChange: Xe, ref:
|
|
227
|
+
e.key === "Escape" && ae(), e.key === "Enter" && e.target === N.current && M && (e.preventDefault(), Ee());
|
|
228
|
+
}, Ce = /* @__PURE__ */ l("div", { "aria-hidden": !d, "aria-label": fe, className: i["loading-status"], role: "status", children: d && /* @__PURE__ */ l(Ve, { size: "small" }) }), Re = /* @__PURE__ */ b("div", { className: k(i.dropdown, S === "inline" && i.inline, S === "minimal" && i.minimal, s), onKeyDown: Ze, ref: be, ...pe, children: [
|
|
229
|
+
/* @__PURE__ */ l("select", { ...Ge, "aria-hidden": "true", className: k(i.native, Qe), onChange: Xe, ref: he, tabIndex: -1, value: G, children: H.children }),
|
|
230
230
|
r ? /* @__PURE__ */ b("div", { className: i.combobox, onClick: () => {
|
|
231
231
|
var e;
|
|
232
232
|
return (e = N.current) == null ? void 0 : e.focus();
|
|
233
233
|
}, children: [
|
|
234
|
-
|
|
235
|
-
/* @__PURE__ */ l("input", { "aria-describedby":
|
|
234
|
+
Fe,
|
|
235
|
+
/* @__PURE__ */ l("input", { "aria-describedby": _e, "aria-invalid": ve, "aria-autocomplete": "list", "aria-expanded": c, "aria-label": o["aria-label"] ?? v ?? T, className: i["combobox-input"], disabled: o.disabled, onChange: (e) => {
|
|
236
236
|
$(e.target.value), m(!0);
|
|
237
237
|
}, onClick: () => m(!0), onFocus: () => m(!0), placeholder: T || void 0, ref: N, role: "combobox", type: "text", value: h }),
|
|
238
|
-
|
|
239
|
-
] }) : /* @__PURE__ */ l(j, { "aria-describedby":
|
|
238
|
+
Ce
|
|
239
|
+
] }) : /* @__PURE__ */ l(j, { "aria-describedby": _e, "aria-invalid": ve, "aria-label": v ? void 0 : o["aria-label"], "aria-expanded": c, "aria-haspopup": "dialog", "aria-labelledby": v ? `${I} ${I}-value` : void 0, className: k(i.trigger, (A == null ? void 0 : A.isPlaceholder) && i.placeholder), "data-open": c ? "true" : void 0, disabled: o.disabled, onClick: () => m(!c), ref: me, style: Je, variant: "simple", children: /* @__PURE__ */ l("span", { className: i.text, id: `${I}-value`, children: Ne(A) }) }),
|
|
240
240
|
c && /* @__PURE__ */ b("div", { className: i.panel, children: [
|
|
241
241
|
!r && E && /* @__PURE__ */ b("div", { className: i["filter-controls"], children: [
|
|
242
242
|
/* @__PURE__ */ l(dt, { "aria-label": "Filter", className: i.filter, icon: "MagnifyingGlass", onChange: (e) => $(e.target.value), placeholder: T, ref: N, style: Pe, type: "search", value: h }),
|
|
243
|
-
|
|
243
|
+
Ce
|
|
244
244
|
] }),
|
|
245
245
|
/* @__PURE__ */ b(ft, { "aria-label": "Dropdown", "aria-busy": d || void 0, className: i.options, ref: X, children: [
|
|
246
246
|
le.map((e) => {
|
|
247
247
|
const u = e.value === G;
|
|
248
248
|
return /* @__PURE__ */ l("li", { "data-component": "dropdown", children: /* @__PURE__ */ b(j, { "aria-label": u ? `${e.text}, selected` : e.text, className: k(i.option, u && i.selected), disabled: e.disabled, onClick: () => Ye(e.value), variant: "tertiary", children: [
|
|
249
|
-
/* @__PURE__ */ l("span", { className: i.text, children:
|
|
249
|
+
/* @__PURE__ */ l("span", { className: i.text, children: Ne(e) }),
|
|
250
250
|
e.groupLabel && /* @__PURE__ */ l("small", { className: i.group, children: e.groupLabel })
|
|
251
251
|
] }) }, `${e.groupLabel ?? "root"}-${e.value}`);
|
|
252
252
|
}),
|
|
253
|
-
M && q && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(j, { "aria-label": K(q.render(C)) || C, className: i.option, onClick:
|
|
254
|
-
le.length === 0 && !M && !d && !p && !y && /* @__PURE__ */ l("li", { className: i.empty, children:
|
|
253
|
+
M && q && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(j, { "aria-label": K(q.render(C)) || C, className: i.option, onClick: Ee, variant: "tertiary", children: /* @__PURE__ */ l("span", { className: i.text, children: q.render(C) }) }) }),
|
|
254
|
+
le.length === 0 && !M && !d && !p && !y && /* @__PURE__ */ l("li", { className: i.empty, children: Be }),
|
|
255
255
|
p && /* @__PURE__ */ b("li", { className: i.empty, children: [
|
|
256
256
|
/* @__PURE__ */ l("span", { role: "alert", children: p }),
|
|
257
|
-
ue && /* @__PURE__ */ l(j, { disabled: d, onClick: ue, variant: "tertiary", children:
|
|
257
|
+
ue && /* @__PURE__ */ l(j, { disabled: d, onClick: ue, variant: "tertiary", children: ke })
|
|
258
258
|
] }),
|
|
259
|
-
d && !r && !E && /* @__PURE__ */ l("li", { "aria-label": fe, className: i.empty, role: "status", children: /* @__PURE__ */ l(
|
|
260
|
-
y && R && !p && /* @__PURE__ */ l("li", { ref:
|
|
259
|
+
d && !r && !E && /* @__PURE__ */ l("li", { "aria-label": fe, className: i.empty, role: "status", children: /* @__PURE__ */ l(Ve, { size: "small" }) }),
|
|
260
|
+
y && R && !p && /* @__PURE__ */ l("li", { ref: ge, children: /* @__PURE__ */ l(j, { className: i.option, disabled: d, onClick: se, variant: "tertiary", children: je }) })
|
|
261
261
|
] })
|
|
262
262
|
] })
|
|
263
263
|
] }), et = v || a ? /* @__PURE__ */ b("div", { className: k(i.label, S === "inline" && i["inline-field"]), children: [
|
|
264
|
-
/* @__PURE__ */ l(ut, { label: Ue, labelId: v ? I : void 0, description: a, descriptionId:
|
|
265
|
-
|
|
266
|
-
] }) :
|
|
264
|
+
/* @__PURE__ */ l(ut, { label: Ue, labelId: v ? I : void 0, description: a, descriptionId: ye, inline: S === "inline", required: pe.required }),
|
|
265
|
+
Re
|
|
266
|
+
] }) : Re;
|
|
267
267
|
return /* @__PURE__ */ b("div", { className: i.field, "data-component": "dropdown", children: [
|
|
268
268
|
et,
|
|
269
269
|
U && /* @__PURE__ */ l(at, { errorId: U, errorMessage: n })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const a=require("react/jsx-runtime"),o=require("classix"),p="_header_lg3ad_1",v="_controls_lg3ad_62",j="_cta_lg3ad_89",b="_sized_lg3ad_139",x="_details_lg3ad_143",f="_description_lg3ad_150",N="_warning_lg3ad_158",y="_value_lg3ad_163",w="_jumbo_lg3ad_168",z="_inset_lg3ad_178",q="_panel_lg3ad_182",e={header:p,controls:v,cta:j,"header-content":"_header-content_lg3ad_101",sized:b,details:x,description:f,warning:N,value:y,jumbo:w,inset:z,panel:q},H={default:e.default,jumbo:e.jumbo,panel:e.panel},S=({backButton:r,capitalize:i=!1,children:_,controls:t,details:n,cta:l,header:g,inset:h=!1,size:s,subHeader:u,variant:m="default"})=>{const d=a.jsxs("div",{className:e["header-content"],children:[r,g,u,n&&a.jsxs("div",{className:e.details,children:[a.jsx("div",{className:o(e.description,n.tone==="warning"&&e.warning),children:n.description}),n.value!=null&&a.jsx("strong",{className:e.value,children:n.value})]})]}),c=t?a.jsxs("div",{className:e.controls,children:[d,t]}):d;return a.jsxs("header",{className:o(e.header,H[m],i&&e.capitalize,h&&e.inset,s&&e.sized),style:s?{"--header-heading-size":`var(--typography-font-sizes-${s==="label"?"label-lg":s})`}:void 0,"data-component":"header",children:[l?a.jsxs("div",{className:e.cta,children:[c,l]}):c,_]})};exports.Header=S;
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import
|
|
3
|
-
import '../../assets/index21.css';const
|
|
4
|
-
header:
|
|
5
|
-
controls:
|
|
6
|
-
cta:
|
|
7
|
-
"header-content": "_header-
|
|
8
|
-
sized:
|
|
9
|
-
details:
|
|
10
|
-
description:
|
|
11
|
-
warning:
|
|
12
|
-
value:
|
|
13
|
-
jumbo:
|
|
14
|
-
inset:
|
|
15
|
-
panel:
|
|
16
|
-
},
|
|
1
|
+
import { jsxs as n, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import r from "classix";
|
|
3
|
+
import '../../assets/index21.css';const v = "_header_lg3ad_1", f = "_controls_lg3ad_62", b = "_cta_lg3ad_89", j = "_sized_lg3ad_139", N = "_details_lg3ad_143", w = "_description_lg3ad_150", x = "_warning_lg3ad_158", y = "_value_lg3ad_163", z = "_jumbo_lg3ad_168", C = "_inset_lg3ad_178", E = "_panel_lg3ad_182", e = {
|
|
4
|
+
header: v,
|
|
5
|
+
controls: f,
|
|
6
|
+
cta: b,
|
|
7
|
+
"header-content": "_header-content_lg3ad_101",
|
|
8
|
+
sized: j,
|
|
9
|
+
details: N,
|
|
10
|
+
description: w,
|
|
11
|
+
warning: x,
|
|
12
|
+
value: y,
|
|
13
|
+
jumbo: z,
|
|
14
|
+
inset: C,
|
|
15
|
+
panel: E
|
|
16
|
+
}, H = {
|
|
17
17
|
default: e.default,
|
|
18
18
|
jumbo: e.jumbo,
|
|
19
19
|
panel: e.panel
|
|
20
|
-
},
|
|
21
|
-
backButton:
|
|
20
|
+
}, k = ({
|
|
21
|
+
backButton: i,
|
|
22
22
|
capitalize: _ = !1,
|
|
23
23
|
children: h,
|
|
24
24
|
controls: s,
|
|
25
|
-
details:
|
|
26
|
-
cta:
|
|
27
|
-
header:
|
|
28
|
-
inset:
|
|
29
|
-
size:
|
|
30
|
-
subHeader:
|
|
31
|
-
variant:
|
|
25
|
+
details: a,
|
|
26
|
+
cta: t,
|
|
27
|
+
header: g,
|
|
28
|
+
inset: m = !1,
|
|
29
|
+
size: l,
|
|
30
|
+
subHeader: p,
|
|
31
|
+
variant: u = "default"
|
|
32
32
|
}) => {
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
33
|
+
const d = /* @__PURE__ */ n("div", { className: e["header-content"], children: [
|
|
34
|
+
i,
|
|
35
|
+
g,
|
|
36
|
+
p,
|
|
37
|
+
a && /* @__PURE__ */ n("div", { className: e.details, children: [
|
|
38
|
+
/* @__PURE__ */ c("div", { className: r(e.description, a.tone === "warning" && e.warning), children: a.description }),
|
|
39
|
+
a.value != null && /* @__PURE__ */ c("strong", { className: e.value, children: a.value })
|
|
40
40
|
] })
|
|
41
|
-
] }),
|
|
42
|
-
|
|
41
|
+
] }), o = s ? /* @__PURE__ */ n("div", { className: e.controls, children: [
|
|
42
|
+
d,
|
|
43
43
|
s
|
|
44
|
-
] }) :
|
|
45
|
-
return /* @__PURE__ */ n("header", { className:
|
|
46
|
-
"--header-heading-size": `var(--typography-font-sizes-${
|
|
44
|
+
] }) : d;
|
|
45
|
+
return /* @__PURE__ */ n("header", { className: r(e.header, H[u], _ && e.capitalize, m && e.inset, l && e.sized), style: l ? {
|
|
46
|
+
"--header-heading-size": `var(--typography-font-sizes-${l === "label" ? "label-lg" : l})`
|
|
47
47
|
} : void 0, "data-component": "header", children: [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
] }) :
|
|
48
|
+
t ? /* @__PURE__ */ n("div", { className: e.cta, children: [
|
|
49
|
+
o,
|
|
50
|
+
t
|
|
51
|
+
] }) : o,
|
|
52
52
|
h
|
|
53
53
|
] });
|
|
54
54
|
};
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
k as Header
|
|
57
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const e=require("react/jsx-runtime"),r=require("classix"),o="_label_w39pq_1",d="_description_w39pq_13",p="_inline_w39pq_21",n={label:o,description:d,inline:p},b=({description:i,descriptionId:l,inline:s,label:t,labelId:a,required:c})=>e.jsxs("div",{className:r(s&&n.inline,n.label),"data-component":"label",children:[e.jsx("span",{"data-required":c?!0:void 0,id:a,children:t}),i&&e.jsx("span",{className:n.description,id:l,children:i})]});exports.Label=b;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import '../../assets/index54.css';const d = "
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c from "classix";
|
|
3
|
+
import '../../assets/index54.css';const d = "_label_w39pq_1", p = "_description_w39pq_13", _ = "_inline_w39pq_21", e = {
|
|
4
4
|
label: d,
|
|
5
5
|
description: p,
|
|
6
6
|
inline: _
|
|
7
|
-
},
|
|
7
|
+
}, q = ({
|
|
8
8
|
description: i,
|
|
9
9
|
descriptionId: l,
|
|
10
|
-
inline:
|
|
11
|
-
label:
|
|
12
|
-
labelId:
|
|
13
|
-
required:
|
|
14
|
-
}) => /* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
i && /* @__PURE__ */
|
|
10
|
+
inline: s,
|
|
11
|
+
label: t,
|
|
12
|
+
labelId: a,
|
|
13
|
+
required: o
|
|
14
|
+
}) => /* @__PURE__ */ r("div", { className: c(s && e.inline, e.label), "data-component": "label", children: [
|
|
15
|
+
/* @__PURE__ */ n("span", { "data-required": o ? !0 : void 0, id: a, children: t }),
|
|
16
|
+
i && /* @__PURE__ */ n("span", { className: e.description, id: l, children: i })
|
|
17
17
|
] });
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
q as Label
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index56.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index56.css');const v=require("react/jsx-runtime"),j=require("classix"),s=require("react");function k(t){const[e,r]=s.useState(null),[d,o]=s.useState(),a=!!t&&d!=null,f=s.useCallback(n=>r(n),[]),l=s.useCallback(()=>{if(!e||!t){o(void 0);return}const n=Array.from(e.children).filter(m=>m instanceof HTMLElement&&getComputedStyle(m).display!=="none"),i=t?n[t-1]:void 0,u=t&&n.length>t&&i?i.getBoundingClientRect().bottom-e.getBoundingClientRect().top+e.scrollTop+(parseFloat(getComputedStyle(e).paddingBottom)||0):void 0;o(u)},[e,t]);return s.useLayoutEffect(l),s.useLayoutEffect(()=>{if(!e||!t)return;const n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(l),i=()=>{n==null||n.disconnect(),n==null||n.observe(e),Array.from(e.children).forEach(m=>n==null?void 0:n.observe(m)),l()},u=new MutationObserver(i);return u.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["class","style","hidden"]}),window.addEventListener("resize",l),i(),()=>{n==null||n.disconnect(),u.disconnect(),window.removeEventListener("resize",l)}},[e,t,l]),{ref:f,isOverflowing:a,visibleHeight:d}}function M(t){return s.isValidElement(t)&&t.type===s.Fragment}function F(t,e=[]){return s.Children.forEach(t,r=>{M(r)?F(r.props.children,e):e.push(r)}),e}function N(t,{wrapper:e="li"}={}){return F(t).filter(o=>o!==null).map((o,a)=>{if(s.isValidElement(o)&&o.type===e)return o;const f=s.isValidElement(o)&&o.key!=null?o.key:a;return s.createElement(e,{key:f,"data-component":"wrapchildren"},o)})}const S="_controls_uue68_1",B="_horizontal_uue68_9",z="_list_uue68_20",H="_columns_uue68_61",q="_masonry_uue68_71",T="_scrollable_uue68_81",V="_overflowing_uue68_88",A="_sized_uue68_111",I="_compact_uue68_123",c={controls:S,horizontal:B,list:z,columns:H,masonry:q,scrollable:T,overflowing:V,sized:A,compact:I},L=(t,e)=>{typeof t=="function"?t(e):t&&(t.current=e)};function D({children:t,className:e,columns:r=1,columnWidth:d,compact:o=!1,controls:a,horizontal:f,layout:l="grid",maxVisibleItems:n,ordered:i,ref:u,style:m,..._}){const y=Number.isFinite(r)?Math.max(1,Math.floor(r)):1,g=l==="grid"&&y===1&&!f&&n!=null&&Number.isFinite(n)&&n>=1?Math.floor(n):void 0,{ref:b,isOverflowing:h,visibleHeight:p}=k(g),w=s.useCallback(R=>{b(R),L(u,R)},[b,u]),E=j(e,c.list,l==="masonry"?c.masonry:y>1&&c.columns,!!g&&c.scrollable,h&&c.overflowing,f&&c.horizontal,o&&c.compact,d&&c.sized),x={...m,"--list-columns":y,"--list-column-width":d,"--list-max-height":g&&p!=null?`${p}px`:void 0},C=i?v.jsx("ol",{className:E,ref:w,style:x,..._,"data-layout":l==="masonry"?"masonry":y>1?"columns":void 0,tabIndex:_.tabIndex??(h?0:void 0),"data-component":"list",children:N(t)}):v.jsx("ul",{className:E,ref:w,style:x,..._,"data-layout":l==="masonry"?"masonry":y>1?"columns":void 0,tabIndex:_.tabIndex??(h?0:void 0),"data-component":"list",children:N(t)});return a==null?C:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:c.controls,"data-component":"list",children:a}),C]})}exports.List=D;
|
|
@@ -1,88 +1,101 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/index56.css';function
|
|
5
|
-
|
|
1
|
+
import { jsx as h, jsxs as z, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import S from "classix";
|
|
3
|
+
import m, { useState as F, useCallback as p, useLayoutEffect as B } from "react";
|
|
4
|
+
import '../../assets/index56.css';function V(t) {
|
|
5
|
+
const [n, l] = F(null), [u, o] = F(), c = !!t && u != null, d = p((e) => l(e), []), s = p(() => {
|
|
6
|
+
if (!n || !t) {
|
|
7
|
+
o(void 0);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const e = Array.from(n.children).filter((f) => f instanceof HTMLElement && getComputedStyle(f).display !== "none"), a = t ? e[t - 1] : void 0, i = t && e.length > t && a ? a.getBoundingClientRect().bottom - n.getBoundingClientRect().top + n.scrollTop + (parseFloat(getComputedStyle(n).paddingBottom) || 0) : void 0;
|
|
11
|
+
o(i);
|
|
12
|
+
}, [n, t]);
|
|
13
|
+
return B(s), B(() => {
|
|
14
|
+
if (!n || !t) return;
|
|
15
|
+
const e = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(s), a = () => {
|
|
16
|
+
e == null || e.disconnect(), e == null || e.observe(n), Array.from(n.children).forEach((f) => e == null ? void 0 : e.observe(f)), s();
|
|
17
|
+
}, i = new MutationObserver(a);
|
|
18
|
+
return i.observe(n, {
|
|
19
|
+
childList: !0,
|
|
20
|
+
subtree: !0,
|
|
21
|
+
characterData: !0,
|
|
22
|
+
attributes: !0,
|
|
23
|
+
attributeFilter: ["class", "style", "hidden"]
|
|
24
|
+
}), window.addEventListener("resize", s), a(), () => {
|
|
25
|
+
e == null || e.disconnect(), i.disconnect(), window.removeEventListener("resize", s);
|
|
26
|
+
};
|
|
27
|
+
}, [n, t, s]), {
|
|
28
|
+
ref: d,
|
|
29
|
+
isOverflowing: c,
|
|
30
|
+
visibleHeight: u
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function j(t) {
|
|
34
|
+
return m.isValidElement(t) && t.type === m.Fragment;
|
|
6
35
|
}
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
|
|
36
|
+
function k(t, n = []) {
|
|
37
|
+
return m.Children.forEach(t, (l) => {
|
|
38
|
+
j(l) ? k(l.props.children, n) : n.push(l);
|
|
10
39
|
}), n;
|
|
11
40
|
}
|
|
12
|
-
function
|
|
41
|
+
function M(t, {
|
|
13
42
|
wrapper: n = "li"
|
|
14
43
|
} = {}) {
|
|
15
|
-
return
|
|
16
|
-
if (
|
|
44
|
+
return k(t).filter((o) => o !== null).map((o, c) => {
|
|
45
|
+
if (m.isValidElement(o) && o.type === n)
|
|
17
46
|
return o;
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
key:
|
|
47
|
+
const d = m.isValidElement(o) && o.key != null ? o.key : c;
|
|
48
|
+
return m.createElement(n, {
|
|
49
|
+
key: d,
|
|
21
50
|
"data-component": "wrapchildren"
|
|
22
51
|
}, o);
|
|
23
52
|
});
|
|
24
53
|
}
|
|
25
|
-
const
|
|
26
|
-
controls:
|
|
27
|
-
horizontal:
|
|
28
|
-
list:
|
|
29
|
-
columns:
|
|
30
|
-
masonry:
|
|
31
|
-
scrollable:
|
|
32
|
-
overflowing:
|
|
33
|
-
sized:
|
|
34
|
-
compact:
|
|
35
|
-
},
|
|
54
|
+
const A = "_controls_uue68_1", I = "_horizontal_uue68_9", T = "_list_uue68_20", D = "_columns_uue68_61", $ = "_masonry_uue68_71", q = "_scrollable_uue68_81", G = "_overflowing_uue68_88", J = "_sized_uue68_111", K = "_compact_uue68_123", r = {
|
|
55
|
+
controls: A,
|
|
56
|
+
horizontal: I,
|
|
57
|
+
list: T,
|
|
58
|
+
columns: D,
|
|
59
|
+
masonry: $,
|
|
60
|
+
scrollable: q,
|
|
61
|
+
overflowing: G,
|
|
62
|
+
sized: J,
|
|
63
|
+
compact: K
|
|
64
|
+
}, L = (t, n) => {
|
|
36
65
|
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
37
66
|
};
|
|
38
|
-
function
|
|
67
|
+
function U({
|
|
39
68
|
children: t,
|
|
40
69
|
className: n,
|
|
41
|
-
columns:
|
|
42
|
-
columnWidth:
|
|
70
|
+
columns: l = 1,
|
|
71
|
+
columnWidth: u,
|
|
43
72
|
compact: o = !1,
|
|
44
73
|
controls: c,
|
|
45
|
-
horizontal:
|
|
46
|
-
layout:
|
|
47
|
-
maxVisibleItems:
|
|
48
|
-
ordered:
|
|
49
|
-
ref:
|
|
50
|
-
style:
|
|
51
|
-
...
|
|
74
|
+
horizontal: d,
|
|
75
|
+
layout: s = "grid",
|
|
76
|
+
maxVisibleItems: e,
|
|
77
|
+
ordered: a,
|
|
78
|
+
ref: i,
|
|
79
|
+
style: f,
|
|
80
|
+
...v
|
|
52
81
|
}) {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
v.disconnect(), R.disconnect();
|
|
69
|
-
};
|
|
70
|
-
}, [t, s, w]);
|
|
71
|
-
const z = I(n, l.list, f === "masonry" ? l.masonry : a > 1 && l.columns, !!s && l.scrollable, w && l.overflowing, m && l.horizontal, o && l.compact, g && l.sized), E = {
|
|
72
|
-
...H,
|
|
73
|
-
"--list-columns": a,
|
|
74
|
-
"--list-column-width": g,
|
|
75
|
-
"--list-max-height": s && u != null ? `${u}px` : void 0
|
|
76
|
-
}, x = k ? /* @__PURE__ */ b("ol", { className: z, ref: (e) => {
|
|
77
|
-
p.current = e, M(h, e);
|
|
78
|
-
}, style: E, ..._, "data-layout": f === "masonry" ? "masonry" : a > 1 ? "columns" : void 0, tabIndex: _.tabIndex ?? (s && u != null ? 0 : void 0), "data-component": "list", children: B(t) }) : /* @__PURE__ */ b("ul", { className: z, ref: (e) => {
|
|
79
|
-
p.current = e, M(h, e);
|
|
80
|
-
}, style: E, ..._, "data-layout": f === "masonry" ? "masonry" : a > 1 ? "columns" : void 0, tabIndex: _.tabIndex ?? (s && u != null ? 0 : void 0), "data-component": "list", children: B(t) });
|
|
81
|
-
return c == null ? x : /* @__PURE__ */ j(A, { children: [
|
|
82
|
-
/* @__PURE__ */ b("div", { className: l.controls, "data-component": "list", children: c }),
|
|
83
|
-
x
|
|
82
|
+
const _ = Number.isFinite(l) ? Math.max(1, Math.floor(l)) : 1, y = s === "grid" && _ === 1 && !d && e != null && Number.isFinite(e) && e >= 1 ? Math.floor(e) : void 0, {
|
|
83
|
+
ref: b,
|
|
84
|
+
isOverflowing: g,
|
|
85
|
+
visibleHeight: w
|
|
86
|
+
} = V(y), E = p((R) => {
|
|
87
|
+
b(R), L(i, R);
|
|
88
|
+
}, [b, i]), x = S(n, r.list, s === "masonry" ? r.masonry : _ > 1 && r.columns, !!y && r.scrollable, g && r.overflowing, d && r.horizontal, o && r.compact, u && r.sized), C = {
|
|
89
|
+
...f,
|
|
90
|
+
"--list-columns": _,
|
|
91
|
+
"--list-column-width": u,
|
|
92
|
+
"--list-max-height": y && w != null ? `${w}px` : void 0
|
|
93
|
+
}, N = a ? /* @__PURE__ */ h("ol", { className: x, ref: E, style: C, ...v, "data-layout": s === "masonry" ? "masonry" : _ > 1 ? "columns" : void 0, tabIndex: v.tabIndex ?? (g ? 0 : void 0), "data-component": "list", children: M(t) }) : /* @__PURE__ */ h("ul", { className: x, ref: E, style: C, ...v, "data-layout": s === "masonry" ? "masonry" : _ > 1 ? "columns" : void 0, tabIndex: v.tabIndex ?? (g ? 0 : void 0), "data-component": "list", children: M(t) });
|
|
94
|
+
return c == null ? N : /* @__PURE__ */ z(H, { children: [
|
|
95
|
+
/* @__PURE__ */ h("div", { className: r.controls, "data-component": "list", children: c }),
|
|
96
|
+
N
|
|
84
97
|
] });
|
|
85
98
|
}
|
|
86
99
|
export {
|
|
87
|
-
|
|
100
|
+
U as List
|
|
88
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const c=require("react/jsx-runtime"),r=require("classix"),u=require("react"),b=require("../../icons-BSfBrPs3.cjs"),m="_nav_txvc1_3",p="_label_txvc1_9",x="_item_txvc1_17",g="_actions_txvc1_36",f="_highlighted_txvc1_60",N="_horizontal_txvc1_64",w="_sidebar_txvc1_74",j="_stacked_txvc1_124",k="_tabs_txvc1_141",q="_pills_txvc1_161",t={nav:m,label:p,item:x,actions:g,highlighted:f,horizontal:N,sidebar:w,stacked:j,tabs:k,pills:q},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>c.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:o,highlighted:n=!1,layout:s="row",...l})=>c.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,o),"data-nav-item":!0,...l,"data-component":"navitem",children:[e,a&&c.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:o,horizontal:n=!1,variant:s="default",...l})=>{const[_,d]=u.useState(!1),v={"--icon-svg":b.iconSVG("CaretDown")};return c.jsx("nav",{className:r(o,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:i=>{if(s!=="pills"||window.innerWidth>960)return;const h=i.relatedTarget;i.currentTarget.contains(h)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(i=>!i)},style:v,...l,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
|