@takecasper/acuity-design-system 1.27.9 → 1.27.10
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.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +271 -251
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5118,7 +5118,25 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5118
5118
|
return;
|
|
5119
5119
|
}
|
|
5120
5120
|
n(e);
|
|
5121
|
-
}, Po =
|
|
5121
|
+
}, Po = (e, r, n) => {
|
|
5122
|
+
if (r) {
|
|
5123
|
+
e.preventDefault();
|
|
5124
|
+
return;
|
|
5125
|
+
}
|
|
5126
|
+
n(e);
|
|
5127
|
+
}, Fo = (e, r, n) => {
|
|
5128
|
+
if (r && e.key !== "Tab") {
|
|
5129
|
+
e.preventDefault();
|
|
5130
|
+
return;
|
|
5131
|
+
}
|
|
5132
|
+
n(e);
|
|
5133
|
+
}, Oo = (e, r, n) => {
|
|
5134
|
+
if (r) {
|
|
5135
|
+
e.preventDefault();
|
|
5136
|
+
return;
|
|
5137
|
+
}
|
|
5138
|
+
n(e);
|
|
5139
|
+
}, Wo = A(
|
|
5122
5140
|
[
|
|
5123
5141
|
"preflight",
|
|
5124
5142
|
"!ds-font-sans",
|
|
@@ -5179,7 +5197,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5179
5197
|
}
|
|
5180
5198
|
]
|
|
5181
5199
|
}
|
|
5182
|
-
),
|
|
5200
|
+
), _o = ({
|
|
5183
5201
|
variant: e = "default",
|
|
5184
5202
|
label: r = "",
|
|
5185
5203
|
disabled: n = !1,
|
|
@@ -5204,7 +5222,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5204
5222
|
"aria-pressed": p,
|
|
5205
5223
|
"aria-live": p ? "assertive" : "off",
|
|
5206
5224
|
className: dr(
|
|
5207
|
-
|
|
5225
|
+
Wo({ variant: e, isTransparent: f, disabled: g }),
|
|
5208
5226
|
t
|
|
5209
5227
|
),
|
|
5210
5228
|
...m,
|
|
@@ -5230,7 +5248,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5230
5248
|
]
|
|
5231
5249
|
}
|
|
5232
5250
|
);
|
|
5233
|
-
}, tt =
|
|
5251
|
+
}, tt = _o, Vo = A(
|
|
5234
5252
|
[
|
|
5235
5253
|
"preflight",
|
|
5236
5254
|
"ds-flex",
|
|
@@ -5254,7 +5272,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5254
5272
|
}
|
|
5255
5273
|
}
|
|
5256
5274
|
}
|
|
5257
|
-
),
|
|
5275
|
+
), Io = (e) => D(Vo(e)), Do = A("", {
|
|
5258
5276
|
variants: {
|
|
5259
5277
|
variant: {
|
|
5260
5278
|
success: "ds-text-success-green-dark",
|
|
@@ -5263,7 +5281,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5263
5281
|
error: "ds-text-danger-red-dark"
|
|
5264
5282
|
}
|
|
5265
5283
|
}
|
|
5266
|
-
}), Rt = (e) => D(
|
|
5284
|
+
}), Rt = (e) => D(Do(e)), Bo = A("", {
|
|
5267
5285
|
variants: {
|
|
5268
5286
|
variant: {
|
|
5269
5287
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -5272,7 +5290,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5272
5290
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
5273
5291
|
}
|
|
5274
5292
|
}
|
|
5275
|
-
}), ze = (e) => D(
|
|
5293
|
+
}), ze = (e) => D(Bo(e)), Ho = ({
|
|
5276
5294
|
variant: e = "info",
|
|
5277
5295
|
isDismissible: r = !0,
|
|
5278
5296
|
showIcon: n = !0,
|
|
@@ -5292,7 +5310,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5292
5310
|
warning: /* @__PURE__ */ i.jsx(Qr, { className: ze({ variant: e }) }),
|
|
5293
5311
|
error: /* @__PURE__ */ i.jsx(et, { className: ze({ variant: e }) })
|
|
5294
5312
|
}, g = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""), v = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
|
|
5295
|
-
return /* @__PURE__ */ i.jsxs("div", { id: c, className: D(
|
|
5313
|
+
return /* @__PURE__ */ i.jsxs("div", { id: c, className: D(Io({ variant: e }), u), ...p, children: [
|
|
5296
5314
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
5297
5315
|
n && /* @__PURE__ */ i.jsx(
|
|
5298
5316
|
"div",
|
|
@@ -5356,7 +5374,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5356
5374
|
}
|
|
5357
5375
|
) })
|
|
5358
5376
|
] });
|
|
5359
|
-
},
|
|
5377
|
+
}, zo = Ho, Jt = [
|
|
5360
5378
|
"preflight",
|
|
5361
5379
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5362
5380
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5373,7 +5391,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5373
5391
|
"focus-visible:ds-ring-2",
|
|
5374
5392
|
"focus-visible:ds-outline-none",
|
|
5375
5393
|
"focus-visible:ds-ring-offset-2"
|
|
5376
|
-
],
|
|
5394
|
+
], Uo = [
|
|
5377
5395
|
"!ds-bg-neutrals-lighter",
|
|
5378
5396
|
"!ds-text-neutrals-dark",
|
|
5379
5397
|
"!ds-border-neutrals-light",
|
|
@@ -5383,7 +5401,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5383
5401
|
"!hover:ds-text-neutrals-dark",
|
|
5384
5402
|
"!focus-visible:ds-ring-neutrals-black",
|
|
5385
5403
|
"!focus-visible:ds-border-neutrals-light"
|
|
5386
|
-
],
|
|
5404
|
+
], Go = [
|
|
5387
5405
|
...Jt,
|
|
5388
5406
|
"ds-p-1",
|
|
5389
5407
|
"!ds-bg-neutrals-lighter",
|
|
@@ -5394,7 +5412,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5394
5412
|
"focus-visible:ds-ring-neutrals-black",
|
|
5395
5413
|
"!focus-visible:ds-border-neutrals-light",
|
|
5396
5414
|
"active:ds-border-neutrals-lighter"
|
|
5397
|
-
],
|
|
5415
|
+
], Zo = A(Jt, {
|
|
5398
5416
|
variants: {
|
|
5399
5417
|
variant: {
|
|
5400
5418
|
primary: [
|
|
@@ -5460,7 +5478,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5460
5478
|
]
|
|
5461
5479
|
},
|
|
5462
5480
|
disabled: {
|
|
5463
|
-
true:
|
|
5481
|
+
true: Uo,
|
|
5464
5482
|
false: []
|
|
5465
5483
|
}
|
|
5466
5484
|
},
|
|
@@ -5481,7 +5499,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5481
5499
|
class: "focus-visible:ds-ring-neutrals-black"
|
|
5482
5500
|
}
|
|
5483
5501
|
]
|
|
5484
|
-
}),
|
|
5502
|
+
}), Yo = (e, r, n) => e === "inline" && r === !0 ? dr(Go) : dr(Zo({ variant: e, disabled: r }), n), qo = ({
|
|
5485
5503
|
variant: e = "primary",
|
|
5486
5504
|
text: r,
|
|
5487
5505
|
label: n = "",
|
|
@@ -5502,7 +5520,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5502
5520
|
"aria-disabled": m,
|
|
5503
5521
|
"aria-pressed": u,
|
|
5504
5522
|
onClick: (g) => Er(g, m, o),
|
|
5505
|
-
className:
|
|
5523
|
+
className: Yo(e, m, s),
|
|
5506
5524
|
"aria-label": n,
|
|
5507
5525
|
"aria-live": u ? "assertive" : "off",
|
|
5508
5526
|
...p,
|
|
@@ -5549,7 +5567,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5549
5567
|
] })
|
|
5550
5568
|
}
|
|
5551
5569
|
) });
|
|
5552
|
-
},
|
|
5570
|
+
}, Ko = qo, Jo = ({
|
|
5553
5571
|
content: e = void 0,
|
|
5554
5572
|
iconName: r = void 0,
|
|
5555
5573
|
title: n = "",
|
|
@@ -5582,7 +5600,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5582
5600
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
5583
5601
|
]
|
|
5584
5602
|
}
|
|
5585
|
-
),
|
|
5603
|
+
), Vl = Jo, Xo = A(
|
|
5586
5604
|
[
|
|
5587
5605
|
"preflight",
|
|
5588
5606
|
"ds-h-4",
|
|
@@ -5610,7 +5628,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5610
5628
|
}
|
|
5611
5629
|
}
|
|
5612
5630
|
}
|
|
5613
|
-
), Xt = (e) => D(
|
|
5631
|
+
), Xt = (e) => D(Xo(e)), Qo = A(
|
|
5614
5632
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5615
5633
|
{
|
|
5616
5634
|
variants: {
|
|
@@ -5620,7 +5638,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5620
5638
|
}
|
|
5621
5639
|
}
|
|
5622
5640
|
}
|
|
5623
|
-
), Qt = (e) => D(
|
|
5641
|
+
), Qt = (e) => D(Qo(e)), nt = {
|
|
5624
5642
|
variants: {
|
|
5625
5643
|
state: {
|
|
5626
5644
|
default: [
|
|
@@ -5659,7 +5677,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5659
5677
|
]
|
|
5660
5678
|
}
|
|
5661
5679
|
}
|
|
5662
|
-
},
|
|
5680
|
+
}, ea = ({
|
|
5663
5681
|
id: e,
|
|
5664
5682
|
label: r = "",
|
|
5665
5683
|
name: n = "",
|
|
@@ -5692,7 +5710,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5692
5710
|
),
|
|
5693
5711
|
r && /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Qt({ disabled: s }), children: r })
|
|
5694
5712
|
] });
|
|
5695
|
-
},
|
|
5713
|
+
}, Il = ea, ra = (e) => [
|
|
5696
5714
|
"Zero",
|
|
5697
5715
|
"One",
|
|
5698
5716
|
"Two",
|
|
@@ -5703,7 +5721,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5703
5721
|
"Seven",
|
|
5704
5722
|
"Eight",
|
|
5705
5723
|
"Nine"
|
|
5706
|
-
][e] || e.toString(),
|
|
5724
|
+
][e] || e.toString(), ta = ({
|
|
5707
5725
|
children: e,
|
|
5708
5726
|
className: r = "",
|
|
5709
5727
|
onClick: n,
|
|
@@ -5729,7 +5747,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5729
5747
|
}
|
|
5730
5748
|
}, te = (k) => {
|
|
5731
5749
|
o ? j(o) : k == 1 ? j("An error was found in the information you submitted") : j(
|
|
5732
|
-
`${
|
|
5750
|
+
`${ra(k)} errors were found in the information you submitted`
|
|
5733
5751
|
);
|
|
5734
5752
|
};
|
|
5735
5753
|
return oe(() => {
|
|
@@ -5744,7 +5762,7 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5744
5762
|
}
|
|
5745
5763
|
}, [f, p]), /* @__PURE__ */ i.jsxs("div", { className: `prelight ${r}`, id: c, ...l, children: [
|
|
5746
5764
|
!C && /* @__PURE__ */ i.jsx("div", { className: "preflight ds-mb-6 ds-rounded", children: /* @__PURE__ */ i.jsx(
|
|
5747
|
-
|
|
5765
|
+
zo,
|
|
5748
5766
|
{
|
|
5749
5767
|
description: g,
|
|
5750
5768
|
isDismissible: q == "success",
|
|
@@ -5757,18 +5775,18 @@ const dr = (...e) => D(To(...e)), So = A(
|
|
|
5757
5775
|
}
|
|
5758
5776
|
) }),
|
|
5759
5777
|
J,
|
|
5760
|
-
/* @__PURE__ */ i.jsx(
|
|
5778
|
+
/* @__PURE__ */ i.jsx(Ko, { text: a, onClick: K })
|
|
5761
5779
|
] });
|
|
5762
|
-
},
|
|
5763
|
-
function
|
|
5780
|
+
}, Dl = ta, De = "large", Ze = "medium", Ye = "small", qe = "extra-large", At = "h1", na = "h2", sa = "h3", oa = "div";
|
|
5781
|
+
function aa(e) {
|
|
5764
5782
|
return {
|
|
5765
5783
|
[De]: At,
|
|
5766
|
-
[Ze]:
|
|
5767
|
-
[Ye]:
|
|
5768
|
-
[qe]:
|
|
5784
|
+
[Ze]: na,
|
|
5785
|
+
[Ye]: sa,
|
|
5786
|
+
[qe]: oa
|
|
5769
5787
|
}[e] || At;
|
|
5770
5788
|
}
|
|
5771
|
-
const
|
|
5789
|
+
const ia = A("preflight !ds-font-sans", {
|
|
5772
5790
|
variants: {
|
|
5773
5791
|
size: {
|
|
5774
5792
|
[Ye]: "ds-mb-3",
|
|
@@ -5786,7 +5804,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5786
5804
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
5787
5805
|
}
|
|
5788
5806
|
}
|
|
5789
|
-
}),
|
|
5807
|
+
}), la = A("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5790
5808
|
variants: {
|
|
5791
5809
|
size: {
|
|
5792
5810
|
[Ye]: "ds-mb-1 ds-text-sm",
|
|
@@ -5795,7 +5813,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5795
5813
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5796
5814
|
}
|
|
5797
5815
|
}
|
|
5798
|
-
}),
|
|
5816
|
+
}), da = A("ds-mb-0 ds-text-neutrals-dark", {
|
|
5799
5817
|
variants: {
|
|
5800
5818
|
size: {
|
|
5801
5819
|
[Ye]: "ds-mt-1 ds-text-base",
|
|
@@ -5804,7 +5822,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5804
5822
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5805
5823
|
}
|
|
5806
5824
|
}
|
|
5807
|
-
}),
|
|
5825
|
+
}), ca = A("ds-text-neutrals-light", {
|
|
5808
5826
|
variants: {
|
|
5809
5827
|
size: {
|
|
5810
5828
|
[Ye]: "ds-mt-2",
|
|
@@ -5813,7 +5831,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5813
5831
|
[qe]: "ds-mt-3"
|
|
5814
5832
|
}
|
|
5815
5833
|
}
|
|
5816
|
-
}),
|
|
5834
|
+
}), ua = ({
|
|
5817
5835
|
size: e = De,
|
|
5818
5836
|
className: r = "",
|
|
5819
5837
|
text: n = "",
|
|
@@ -5824,7 +5842,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5824
5842
|
headingTag: l,
|
|
5825
5843
|
...c
|
|
5826
5844
|
}) => {
|
|
5827
|
-
const f = t ? /* @__PURE__ */ i.jsx("p", { className:
|
|
5845
|
+
const f = t ? /* @__PURE__ */ i.jsx("p", { className: la({ size: e }), children: t }) : null, u = s ? /* @__PURE__ */ i.jsx("p", { className: da({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: ca({ size: e }) }) : null, m = a ? ia({ size: e }) : "preflight", g = {
|
|
5828
5846
|
div: /* @__PURE__ */ i.jsx("div", { className: xr({ size: e }), children: n }),
|
|
5829
5847
|
h3: /* @__PURE__ */ i.jsx("h3", { className: xr({ size: e }), children: n }),
|
|
5830
5848
|
h2: /* @__PURE__ */ i.jsx("h2", { className: xr({ size: e }), children: n }),
|
|
@@ -5832,11 +5850,11 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5832
5850
|
};
|
|
5833
5851
|
return /* @__PURE__ */ i.jsxs("div", { className: D(m, r), ...c, children: [
|
|
5834
5852
|
f,
|
|
5835
|
-
g[l ||
|
|
5853
|
+
g[l || aa(e)],
|
|
5836
5854
|
u,
|
|
5837
5855
|
p
|
|
5838
5856
|
] });
|
|
5839
|
-
}, en =
|
|
5857
|
+
}, en = ua, fa = ({
|
|
5840
5858
|
label: e = "",
|
|
5841
5859
|
name: r,
|
|
5842
5860
|
id: n,
|
|
@@ -5861,7 +5879,7 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5861
5879
|
}
|
|
5862
5880
|
),
|
|
5863
5881
|
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: Qt({ disabled: t }), children: e })
|
|
5864
|
-
] }),
|
|
5882
|
+
] }), Bl = fa, pa = A(
|
|
5865
5883
|
[
|
|
5866
5884
|
"preflight",
|
|
5867
5885
|
"!ds-font-sans",
|
|
@@ -5894,18 +5912,18 @@ const sa = A("preflight !ds-font-sans", {
|
|
|
5894
5912
|
}
|
|
5895
5913
|
}
|
|
5896
5914
|
}
|
|
5897
|
-
),
|
|
5915
|
+
), ha = ({
|
|
5898
5916
|
text: e,
|
|
5899
5917
|
href: r,
|
|
5900
5918
|
type: n = "default",
|
|
5901
5919
|
iconName: t,
|
|
5902
5920
|
...s
|
|
5903
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: D(
|
|
5921
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: D(pa({ type: n })), ...s, children: [
|
|
5904
5922
|
e,
|
|
5905
5923
|
t && /* @__PURE__ */ i.jsx(Te, { altText: e, name: t, size: "small" })
|
|
5906
|
-
] }),
|
|
5907
|
-
var
|
|
5908
|
-
let
|
|
5924
|
+
] }), Hl = ha;
|
|
5925
|
+
var ma = Object.defineProperty, ga = (e, r, n) => r in e ? ma(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Or = (e, r, n) => (ga(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5926
|
+
let ba = class {
|
|
5909
5927
|
constructor() {
|
|
5910
5928
|
Or(this, "current", this.detect()), Or(this, "handoffState", "pending"), Or(this, "currentId", 0);
|
|
5911
5929
|
}
|
|
@@ -5933,7 +5951,7 @@ let ha = class {
|
|
|
5933
5951
|
get isHandoffComplete() {
|
|
5934
5952
|
return this.handoffState === "complete";
|
|
5935
5953
|
}
|
|
5936
|
-
}, Ie = new
|
|
5954
|
+
}, Ie = new ba();
|
|
5937
5955
|
function st(e) {
|
|
5938
5956
|
return Ie.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
5939
5957
|
}
|
|
@@ -5997,9 +6015,9 @@ function we(e) {
|
|
|
5997
6015
|
let O = function(e) {
|
|
5998
6016
|
let r = we(e);
|
|
5999
6017
|
return y.useCallback((...n) => r.current(...n), [r]);
|
|
6000
|
-
},
|
|
6001
|
-
function
|
|
6002
|
-
return ae(
|
|
6018
|
+
}, va = fe(void 0);
|
|
6019
|
+
function xa() {
|
|
6020
|
+
return ae(va);
|
|
6003
6021
|
}
|
|
6004
6022
|
function ar(...e) {
|
|
6005
6023
|
return Array.from(new Set(e.flatMap((r) => typeof r == "string" ? r.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -6014,7 +6032,7 @@ function Y(e, r, ...n) {
|
|
|
6014
6032
|
}
|
|
6015
6033
|
var kr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(kr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
|
|
6016
6034
|
function ve({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
|
|
6017
|
-
l = l != null ? l :
|
|
6035
|
+
l = l != null ? l : Ca;
|
|
6018
6036
|
let c = rn(r, e);
|
|
6019
6037
|
if (o)
|
|
6020
6038
|
return Cr(c, n, t, a, l);
|
|
@@ -6063,7 +6081,7 @@ function Cr(e, r = {}, n, t, s) {
|
|
|
6063
6081
|
}
|
|
6064
6082
|
return Yn(o, Object.assign({}, Wr(c, ["ref"]), o !== ue && f, o !== ue && p), u);
|
|
6065
6083
|
}
|
|
6066
|
-
function
|
|
6084
|
+
function Ca(...e) {
|
|
6067
6085
|
return e.every((r) => r == null) ? void 0 : (r) => {
|
|
6068
6086
|
for (let n of e)
|
|
6069
6087
|
n != null && (typeof n == "function" ? n(r) : n.current = r);
|
|
@@ -6111,23 +6129,23 @@ function Wr(e, r = []) {
|
|
|
6111
6129
|
t in n && delete n[t];
|
|
6112
6130
|
return n;
|
|
6113
6131
|
}
|
|
6114
|
-
let
|
|
6132
|
+
let wa = "div";
|
|
6115
6133
|
var yr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(yr || {});
|
|
6116
|
-
function
|
|
6134
|
+
function ka(e, r) {
|
|
6117
6135
|
var n;
|
|
6118
6136
|
let { features: t = 1, ...s } = e, o = { ref: r, "aria-hidden": (t & 2) === 2 ? !0 : (n = s["aria-hidden"]) != null ? n : void 0, hidden: (t & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(t & 4) === 4 && (t & 2) !== 2 && { display: "none" } } };
|
|
6119
|
-
return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag:
|
|
6137
|
+
return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag: wa, name: "Hidden" });
|
|
6120
6138
|
}
|
|
6121
|
-
let Hr = pe(
|
|
6122
|
-
function
|
|
6123
|
-
let r = ae(
|
|
6139
|
+
let Hr = pe(ka), ya = fe(null);
|
|
6140
|
+
function ja({ children: e }) {
|
|
6141
|
+
let r = ae(ya);
|
|
6124
6142
|
if (!r)
|
|
6125
6143
|
return y.createElement(y.Fragment, null, e);
|
|
6126
6144
|
let { target: n } = r;
|
|
6127
6145
|
return n ? _t(y.createElement(y.Fragment, null, e), n) : null;
|
|
6128
6146
|
}
|
|
6129
6147
|
let tn = Symbol();
|
|
6130
|
-
function
|
|
6148
|
+
function La(e, r = !0) {
|
|
6131
6149
|
return Object.assign(e, { [tn]: r });
|
|
6132
6150
|
}
|
|
6133
6151
|
function ke(...e) {
|
|
@@ -6151,7 +6169,7 @@ function nn() {
|
|
|
6151
6169
|
}
|
|
6152
6170
|
return e;
|
|
6153
6171
|
}
|
|
6154
|
-
function
|
|
6172
|
+
function Ea() {
|
|
6155
6173
|
let [e, r] = Z([]);
|
|
6156
6174
|
return [e.length > 0 ? e.join(" ") : void 0, de(() => function(n) {
|
|
6157
6175
|
let t = O((o) => (r((a) => [...a, o]), () => r((a) => {
|
|
@@ -6161,19 +6179,19 @@ function ya() {
|
|
|
6161
6179
|
return y.createElement(at.Provider, { value: s }, n.children);
|
|
6162
6180
|
}, [r])];
|
|
6163
6181
|
}
|
|
6164
|
-
let
|
|
6165
|
-
function
|
|
6166
|
-
let n = Lr(), t =
|
|
6182
|
+
let $a = "p";
|
|
6183
|
+
function Ma(e, r) {
|
|
6184
|
+
let n = Lr(), t = xa(), { id: s = `headlessui-description-${n}`, ...o } = e, a = nn(), l = ke(r);
|
|
6167
6185
|
re(() => a.register(s), [s, a.register]);
|
|
6168
6186
|
let c = t || !1, f = de(() => ({ ...a.slot, disabled: c }), [a.slot, c]), u = { ref: l, ...a.props, id: s };
|
|
6169
|
-
return ve({ ourProps: u, theirProps: o, slot: f, defaultTag:
|
|
6187
|
+
return ve({ ourProps: u, theirProps: o, slot: f, defaultTag: $a, name: a.name || "Description" });
|
|
6170
6188
|
}
|
|
6171
|
-
let
|
|
6189
|
+
let Na = pe(Ma), Ta = Object.assign(Na, {});
|
|
6172
6190
|
var sn = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(sn || {});
|
|
6173
|
-
let
|
|
6191
|
+
let Sa = fe(() => {
|
|
6174
6192
|
});
|
|
6175
|
-
function
|
|
6176
|
-
return y.createElement(
|
|
6193
|
+
function Ra({ value: e, children: r }) {
|
|
6194
|
+
return y.createElement(Sa.Provider, { value: e }, r);
|
|
6177
6195
|
}
|
|
6178
6196
|
let zr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
|
|
6179
6197
|
function Pt(e) {
|
|
@@ -6189,7 +6207,7 @@ function Ft(e) {
|
|
|
6189
6207
|
let t = zr.get(e);
|
|
6190
6208
|
t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, zr.delete(e));
|
|
6191
6209
|
}
|
|
6192
|
-
function
|
|
6210
|
+
function Aa({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
6193
6211
|
re(() => {
|
|
6194
6212
|
var t, s;
|
|
6195
6213
|
if (!n)
|
|
@@ -6237,16 +6255,16 @@ function on(e, r, n = !0) {
|
|
|
6237
6255
|
return () => o.dispose();
|
|
6238
6256
|
}, [e, t, n]);
|
|
6239
6257
|
}
|
|
6240
|
-
let Ur = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","),
|
|
6241
|
-
var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Me || {}), Gr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Gr || {}),
|
|
6242
|
-
function
|
|
6258
|
+
let Ur = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), Pa = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
6259
|
+
var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Me || {}), Gr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Gr || {}), Fa = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Fa || {});
|
|
6260
|
+
function Oa(e = document.body) {
|
|
6243
6261
|
return e == null ? [] : Array.from(e.querySelectorAll(Ur)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
6244
6262
|
}
|
|
6245
|
-
function
|
|
6246
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
6263
|
+
function Wa(e = document.body) {
|
|
6264
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Pa)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
6247
6265
|
}
|
|
6248
6266
|
var an = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(an || {});
|
|
6249
|
-
function
|
|
6267
|
+
function _a(e, r = 0) {
|
|
6250
6268
|
var n;
|
|
6251
6269
|
return e === ((n = st(e)) == null ? void 0 : n.body) ? !1 : Y(r, { 0() {
|
|
6252
6270
|
return e.matches(Ur);
|
|
@@ -6260,7 +6278,7 @@ function Fa(e, r = 0) {
|
|
|
6260
6278
|
return !1;
|
|
6261
6279
|
} });
|
|
6262
6280
|
}
|
|
6263
|
-
var
|
|
6281
|
+
var Va = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Va || {});
|
|
6264
6282
|
typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("keydown", (e) => {
|
|
6265
6283
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
6266
6284
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -6269,12 +6287,12 @@ typeof window != "undefined" && typeof document != "undefined" && (document.addE
|
|
|
6269
6287
|
function Ne(e) {
|
|
6270
6288
|
e == null || e.focus({ preventScroll: !0 });
|
|
6271
6289
|
}
|
|
6272
|
-
let
|
|
6273
|
-
function
|
|
6290
|
+
let Ia = ["textarea", "input"].join(",");
|
|
6291
|
+
function Da(e) {
|
|
6274
6292
|
var r, n;
|
|
6275
|
-
return (n = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e,
|
|
6293
|
+
return (n = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e, Ia)) != null ? n : !1;
|
|
6276
6294
|
}
|
|
6277
|
-
function
|
|
6295
|
+
function Ba(e, r = (n) => n) {
|
|
6278
6296
|
return e.slice().sort((n, t) => {
|
|
6279
6297
|
let s = r(n), o = r(t);
|
|
6280
6298
|
if (s === null || o === null)
|
|
@@ -6284,7 +6302,7 @@ function Va(e, r = (n) => n) {
|
|
|
6284
6302
|
});
|
|
6285
6303
|
}
|
|
6286
6304
|
function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] } = {}) {
|
|
6287
|
-
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ?
|
|
6305
|
+
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? Ba(e) : e : r & 64 ? Wa(e) : Oa(e);
|
|
6288
6306
|
s.length > 0 && a.length > 1 && (a = a.filter((g) => !s.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === g : v === g))), t = t != null ? t : o.activeElement;
|
|
6289
6307
|
let l = (() => {
|
|
6290
6308
|
if (r & 5)
|
|
@@ -6317,16 +6335,16 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
|
|
|
6317
6335
|
}
|
|
6318
6336
|
m = a[g], m == null || m.focus(f), u += l;
|
|
6319
6337
|
} while (m !== o.activeElement);
|
|
6320
|
-
return r & 6 &&
|
|
6338
|
+
return r & 6 && Da(m) && m.select(), 2;
|
|
6321
6339
|
}
|
|
6322
6340
|
function ln() {
|
|
6323
6341
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
6324
6342
|
}
|
|
6325
|
-
function
|
|
6343
|
+
function Ha() {
|
|
6326
6344
|
return /Android/gi.test(window.navigator.userAgent);
|
|
6327
6345
|
}
|
|
6328
|
-
function
|
|
6329
|
-
return ln() ||
|
|
6346
|
+
function za() {
|
|
6347
|
+
return ln() || Ha();
|
|
6330
6348
|
}
|
|
6331
6349
|
function wr(e, r, n) {
|
|
6332
6350
|
let t = we(r);
|
|
@@ -6346,7 +6364,7 @@ function dn(e, r, n) {
|
|
|
6346
6364
|
return window.addEventListener(e, s, n), () => window.removeEventListener(e, s, n);
|
|
6347
6365
|
}, [e, n]);
|
|
6348
6366
|
}
|
|
6349
|
-
function
|
|
6367
|
+
function Ua(e, r, n = !0) {
|
|
6350
6368
|
let t = P(!1);
|
|
6351
6369
|
oe(() => {
|
|
6352
6370
|
requestAnimationFrame(() => {
|
|
@@ -6369,7 +6387,7 @@ function Ba(e, r, n = !0) {
|
|
|
6369
6387
|
if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
|
|
6370
6388
|
return;
|
|
6371
6389
|
}
|
|
6372
|
-
return !
|
|
6390
|
+
return !_a(c, an.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
|
|
6373
6391
|
}
|
|
6374
6392
|
let o = P(null);
|
|
6375
6393
|
wr("pointerdown", (a) => {
|
|
@@ -6379,7 +6397,7 @@ function Ba(e, r, n = !0) {
|
|
|
6379
6397
|
var l, c;
|
|
6380
6398
|
t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
6381
6399
|
}, !0), wr("click", (a) => {
|
|
6382
|
-
|
|
6400
|
+
za() || o.current && (s(a, () => o.current), o.current = null);
|
|
6383
6401
|
}, !0), wr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), dn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
6384
6402
|
}
|
|
6385
6403
|
function ur(...e) {
|
|
@@ -6395,10 +6413,10 @@ function cn(e, r, n, t) {
|
|
|
6395
6413
|
return e.addEventListener(r, o, t), () => e.removeEventListener(r, o, t);
|
|
6396
6414
|
}, [e, r, t]);
|
|
6397
6415
|
}
|
|
6398
|
-
function
|
|
6416
|
+
function Ga(e) {
|
|
6399
6417
|
return qn(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
6400
6418
|
}
|
|
6401
|
-
function
|
|
6419
|
+
function Za(e, r) {
|
|
6402
6420
|
let n = e(), t = /* @__PURE__ */ new Set();
|
|
6403
6421
|
return { getSnapshot() {
|
|
6404
6422
|
return n;
|
|
@@ -6409,7 +6427,7 @@ function za(e, r) {
|
|
|
6409
6427
|
a && (n = a, t.forEach((l) => l()));
|
|
6410
6428
|
} };
|
|
6411
6429
|
}
|
|
6412
|
-
function
|
|
6430
|
+
function Ya() {
|
|
6413
6431
|
let e;
|
|
6414
6432
|
return { before({ doc: r }) {
|
|
6415
6433
|
var n;
|
|
@@ -6420,7 +6438,7 @@ function Ua() {
|
|
|
6420
6438
|
n.style(t, "paddingRight", `${o}px`);
|
|
6421
6439
|
} };
|
|
6422
6440
|
}
|
|
6423
|
-
function
|
|
6441
|
+
function qa() {
|
|
6424
6442
|
return ln() ? { before({ doc: e, d: r, meta: n }) {
|
|
6425
6443
|
function t(s) {
|
|
6426
6444
|
return n.containers.flatMap((o) => o()).some((o) => o.contains(s));
|
|
@@ -6471,18 +6489,18 @@ function Ga() {
|
|
|
6471
6489
|
});
|
|
6472
6490
|
} } : {};
|
|
6473
6491
|
}
|
|
6474
|
-
function
|
|
6492
|
+
function Ka() {
|
|
6475
6493
|
return { before({ doc: e, d: r }) {
|
|
6476
6494
|
r.style(e.documentElement, "overflow", "hidden");
|
|
6477
6495
|
} };
|
|
6478
6496
|
}
|
|
6479
|
-
function
|
|
6497
|
+
function Ja(e) {
|
|
6480
6498
|
let r = {};
|
|
6481
6499
|
for (let n of e)
|
|
6482
6500
|
Object.assign(r, n(r));
|
|
6483
6501
|
return r;
|
|
6484
6502
|
}
|
|
6485
|
-
let Ve =
|
|
6503
|
+
let Ve = Za(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
6486
6504
|
var n;
|
|
6487
6505
|
let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: We(), meta: /* @__PURE__ */ new Set() };
|
|
6488
6506
|
return t.count++, t.meta.add(r), this.set(e, t), this;
|
|
@@ -6490,7 +6508,7 @@ let Ve = za(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
|
6490
6508
|
let n = this.get(e);
|
|
6491
6509
|
return n && (n.count--, n.meta.delete(r)), this;
|
|
6492
6510
|
}, SCROLL_PREVENT({ doc: e, d: r, meta: n }) {
|
|
6493
|
-
let t = { doc: e, d: r, meta:
|
|
6511
|
+
let t = { doc: e, d: r, meta: Ja(n) }, s = [qa(), Ya(), Ka()];
|
|
6494
6512
|
s.forEach(({ before: o }) => o == null ? void 0 : o(t)), s.forEach(({ after: o }) => o == null ? void 0 : o(t));
|
|
6495
6513
|
}, SCROLL_ALLOW({ d: e }) {
|
|
6496
6514
|
e.dispose();
|
|
@@ -6506,15 +6524,15 @@ Ve.subscribe(() => {
|
|
|
6506
6524
|
(s && !t || !s && t) && Ve.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Ve.dispatch("TEARDOWN", n);
|
|
6507
6525
|
}
|
|
6508
6526
|
});
|
|
6509
|
-
function
|
|
6510
|
-
let t =
|
|
6527
|
+
function Xa(e, r, n = () => ({ containers: [] })) {
|
|
6528
|
+
let t = Ga(Ve), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
|
|
6511
6529
|
return re(() => {
|
|
6512
6530
|
if (!(!e || !r))
|
|
6513
6531
|
return Ve.dispatch("PUSH", e, n), () => Ve.dispatch("POP", e, n);
|
|
6514
6532
|
}, [r, e]), o;
|
|
6515
6533
|
}
|
|
6516
|
-
function
|
|
6517
|
-
|
|
6534
|
+
function Qa(e, r, n = () => [document.body]) {
|
|
6535
|
+
Xa(e, r, (t) => {
|
|
6518
6536
|
var s;
|
|
6519
6537
|
return { containers: [...(s = t.containers) != null ? s : [], n] };
|
|
6520
6538
|
});
|
|
@@ -6536,17 +6554,17 @@ var le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closin
|
|
|
6536
6554
|
function dt() {
|
|
6537
6555
|
return ae(lt);
|
|
6538
6556
|
}
|
|
6539
|
-
function
|
|
6557
|
+
function ei({ value: e, children: r }) {
|
|
6540
6558
|
return y.createElement(lt.Provider, { value: e }, r);
|
|
6541
6559
|
}
|
|
6542
|
-
function
|
|
6560
|
+
function ri(e) {
|
|
6543
6561
|
function r() {
|
|
6544
6562
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", r));
|
|
6545
6563
|
}
|
|
6546
6564
|
typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("DOMContentLoaded", r), r());
|
|
6547
6565
|
}
|
|
6548
6566
|
let Fe = [];
|
|
6549
|
-
|
|
6567
|
+
ri(() => {
|
|
6550
6568
|
function e(r) {
|
|
6551
6569
|
r.target instanceof HTMLElement && r.target !== document.body && Fe[0] !== r.target && (Fe.unshift(r.target), Fe = Fe.filter((n) => n != null && n.isConnected), Fe.splice(10));
|
|
6552
6570
|
}
|
|
@@ -6560,26 +6578,26 @@ function un(e) {
|
|
|
6560
6578
|
});
|
|
6561
6579
|
}), [r]);
|
|
6562
6580
|
}
|
|
6563
|
-
function
|
|
6581
|
+
function ti() {
|
|
6564
6582
|
let e = typeof document == "undefined";
|
|
6565
6583
|
return "useSyncExternalStore" in or ? ((r) => r.useSyncExternalStore)(or)(() => () => {
|
|
6566
6584
|
}, () => !1, () => !e) : !1;
|
|
6567
6585
|
}
|
|
6568
6586
|
function fr() {
|
|
6569
|
-
let e =
|
|
6587
|
+
let e = ti(), [r, n] = or.useState(Ie.isHandoffComplete);
|
|
6570
6588
|
return r && Ie.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
|
|
6571
6589
|
r !== !0 && n(!0);
|
|
6572
6590
|
}, [r]), or.useEffect(() => Ie.handoff(), []), e ? !1 : r;
|
|
6573
6591
|
}
|
|
6574
6592
|
let fn = fe(!1);
|
|
6575
|
-
function
|
|
6593
|
+
function ni() {
|
|
6576
6594
|
return ae(fn);
|
|
6577
6595
|
}
|
|
6578
6596
|
function Ot(e) {
|
|
6579
6597
|
return y.createElement(fn.Provider, { value: e.force }, e.children);
|
|
6580
6598
|
}
|
|
6581
|
-
function
|
|
6582
|
-
let r =
|
|
6599
|
+
function si(e) {
|
|
6600
|
+
let r = ni(), n = ae(hn), t = ur(e), [s, o] = Z(() => {
|
|
6583
6601
|
var a;
|
|
6584
6602
|
if (!r && n !== null)
|
|
6585
6603
|
return (a = n.current) != null ? a : null;
|
|
@@ -6599,10 +6617,10 @@ function ri(e) {
|
|
|
6599
6617
|
r || n !== null && o(n.current);
|
|
6600
6618
|
}, [n, o, r]), s;
|
|
6601
6619
|
}
|
|
6602
|
-
let pn = ue,
|
|
6603
|
-
let n = e, t = P(null), s = ke(
|
|
6620
|
+
let pn = ue, oi = pe(function(e, r) {
|
|
6621
|
+
let n = e, t = P(null), s = ke(La((u) => {
|
|
6604
6622
|
t.current = u;
|
|
6605
|
-
}), r), o = ur(t), a =
|
|
6623
|
+
}), r), o = ur(t), a = si(t), [l] = Z(() => {
|
|
6606
6624
|
var u;
|
|
6607
6625
|
return Ie.isServer ? null : (u = o == null ? void 0 : o.createElement("div")) != null ? u : null;
|
|
6608
6626
|
}), c = ae(Zr), f = fr();
|
|
@@ -6616,17 +6634,17 @@ let pn = ue, ti = pe(function(e, r) {
|
|
|
6616
6634
|
!a || !l || (l instanceof Node && a.contains(l) && a.removeChild(l), a.childNodes.length <= 0 && ((u = a.parentElement) == null || u.removeChild(a)));
|
|
6617
6635
|
}), f ? !a || !l ? null : _t(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: pn, name: "Portal" }), l) : null;
|
|
6618
6636
|
});
|
|
6619
|
-
function
|
|
6637
|
+
function ai(e, r) {
|
|
6620
6638
|
let n = ke(r), { enabled: t = !0, ...s } = e;
|
|
6621
|
-
return t ? y.createElement(
|
|
6639
|
+
return t ? y.createElement(oi, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: pn, name: "Portal" });
|
|
6622
6640
|
}
|
|
6623
|
-
let
|
|
6624
|
-
function
|
|
6641
|
+
let ii = ue, hn = fe(null);
|
|
6642
|
+
function li(e, r) {
|
|
6625
6643
|
let { target: n, ...t } = e, s = { ref: ke(r) };
|
|
6626
|
-
return y.createElement(hn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag:
|
|
6644
|
+
return y.createElement(hn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: ii, name: "Popover.Group" }));
|
|
6627
6645
|
}
|
|
6628
6646
|
let Zr = fe(null);
|
|
6629
|
-
function
|
|
6647
|
+
function di() {
|
|
6630
6648
|
let e = ae(Zr), r = P([]), n = O((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = O((o) => {
|
|
6631
6649
|
let a = r.current.indexOf(o);
|
|
6632
6650
|
a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
|
|
@@ -6635,8 +6653,8 @@ function ai() {
|
|
|
6635
6653
|
return y.createElement(Zr.Provider, { value: s }, o);
|
|
6636
6654
|
}, [s])];
|
|
6637
6655
|
}
|
|
6638
|
-
let
|
|
6639
|
-
function
|
|
6656
|
+
let ci = pe(ai), ui = pe(li), Wt = Object.assign(ci, { Group: ui });
|
|
6657
|
+
function fi() {
|
|
6640
6658
|
var e;
|
|
6641
6659
|
let [r] = Z(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, t] = Z((e = r == null ? void 0 : r.matches) != null ? e : !1);
|
|
6642
6660
|
return re(() => {
|
|
@@ -6648,7 +6666,7 @@ function di() {
|
|
|
6648
6666
|
return r.addEventListener("change", s), () => r.removeEventListener("change", s);
|
|
6649
6667
|
}, [r]), n;
|
|
6650
6668
|
}
|
|
6651
|
-
function
|
|
6669
|
+
function pi({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
|
|
6652
6670
|
var t;
|
|
6653
6671
|
let s = P((t = n == null ? void 0 : n.current) != null ? t : null), o = ur(s), a = O(() => {
|
|
6654
6672
|
var l, c, f;
|
|
@@ -6670,11 +6688,11 @@ let ct = fe(() => {
|
|
|
6670
6688
|
});
|
|
6671
6689
|
ct.displayName = "StackContext";
|
|
6672
6690
|
var Yr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Yr || {});
|
|
6673
|
-
function
|
|
6691
|
+
function hi() {
|
|
6674
6692
|
return ae(ct);
|
|
6675
6693
|
}
|
|
6676
|
-
function
|
|
6677
|
-
let o =
|
|
6694
|
+
function mi({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
6695
|
+
let o = hi(), a = O((...l) => {
|
|
6678
6696
|
r == null || r(...l), o(...l);
|
|
6679
6697
|
});
|
|
6680
6698
|
return re(() => {
|
|
@@ -6691,7 +6709,7 @@ function pr() {
|
|
|
6691
6709
|
}), []), e;
|
|
6692
6710
|
}
|
|
6693
6711
|
var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
|
|
6694
|
-
function
|
|
6712
|
+
function gi() {
|
|
6695
6713
|
let e = P(0);
|
|
6696
6714
|
return dn("keydown", (r) => {
|
|
6697
6715
|
r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
|
|
@@ -6707,16 +6725,16 @@ function mn(e) {
|
|
|
6707
6725
|
n.current instanceof HTMLElement && r.add(n.current);
|
|
6708
6726
|
return r;
|
|
6709
6727
|
}
|
|
6710
|
-
let
|
|
6728
|
+
let bi = "div";
|
|
6711
6729
|
var $e = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.AutoFocus = 32] = "AutoFocus", e[e.All = 30] = "All", e))($e || {});
|
|
6712
|
-
function
|
|
6730
|
+
function vi(e, r) {
|
|
6713
6731
|
let n = P(null), t = ke(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: l = 30, ...c } = e;
|
|
6714
6732
|
fr() || (l = 1);
|
|
6715
6733
|
let f = ur(n);
|
|
6716
|
-
|
|
6717
|
-
let u =
|
|
6718
|
-
|
|
6719
|
-
let p =
|
|
6734
|
+
ki({ ownerDocument: f }, !!(l & 16));
|
|
6735
|
+
let u = yi({ ownerDocument: f, container: n, initialFocus: s, initialFocusFallback: o }, l);
|
|
6736
|
+
ji({ ownerDocument: f, container: n, containers: a, previousActiveElement: u }, !!(l & 8));
|
|
6737
|
+
let p = gi(), m = O((x) => {
|
|
6720
6738
|
let w = n.current;
|
|
6721
6739
|
w && ((j) => j())(() => {
|
|
6722
6740
|
Y(p.current, { [sr.Forwards]: () => {
|
|
@@ -6737,10 +6755,10 @@ function mi(e, r) {
|
|
|
6737
6755
|
let j = x.relatedTarget;
|
|
6738
6756
|
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (gn(w, j) || (v.current ? lr(n.current, Y(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: x.target }) : x.target instanceof HTMLElement && Ne(x.target)));
|
|
6739
6757
|
} };
|
|
6740
|
-
return y.createElement(y.Fragment, null, !!(l & 4) && y.createElement(Hr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: yr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag:
|
|
6758
|
+
return y.createElement(y.Fragment, null, !!(l & 4) && y.createElement(Hr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: yr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: bi, name: "FocusTrap" }), !!(l & 4) && y.createElement(Hr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: yr.Focusable }));
|
|
6741
6759
|
}
|
|
6742
|
-
let
|
|
6743
|
-
function
|
|
6760
|
+
let xi = pe(vi), Ci = Object.assign(xi, { features: $e });
|
|
6761
|
+
function wi(e = !0) {
|
|
6744
6762
|
let r = P(Fe.slice());
|
|
6745
6763
|
return it(([n], [t]) => {
|
|
6746
6764
|
t === !0 && n === !1 && $r(() => {
|
|
@@ -6751,15 +6769,15 @@ function vi(e = !0) {
|
|
|
6751
6769
|
return (n = r.current.find((t) => t != null && t.isConnected)) != null ? n : null;
|
|
6752
6770
|
});
|
|
6753
6771
|
}
|
|
6754
|
-
function
|
|
6755
|
-
let n =
|
|
6772
|
+
function ki({ ownerDocument: e }, r) {
|
|
6773
|
+
let n = wi(r);
|
|
6756
6774
|
it(() => {
|
|
6757
6775
|
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ne(n());
|
|
6758
6776
|
}, [r]), un(() => {
|
|
6759
6777
|
r && Ne(n());
|
|
6760
6778
|
});
|
|
6761
6779
|
}
|
|
6762
|
-
function
|
|
6780
|
+
function yi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
|
|
6763
6781
|
let o = !!(s & 2), a = P(null), l = pr();
|
|
6764
6782
|
return it(() => {
|
|
6765
6783
|
if (!o) {
|
|
@@ -6796,7 +6814,7 @@ function Ci({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6796
6814
|
});
|
|
6797
6815
|
}, [t, o, s]), a;
|
|
6798
6816
|
}
|
|
6799
|
-
function
|
|
6817
|
+
function ji({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
|
|
6800
6818
|
let o = pr();
|
|
6801
6819
|
cn(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6802
6820
|
if (!s || !o.current)
|
|
@@ -6816,8 +6834,8 @@ function gn(e, r) {
|
|
|
6816
6834
|
return !0;
|
|
6817
6835
|
return !1;
|
|
6818
6836
|
}
|
|
6819
|
-
var
|
|
6820
|
-
let
|
|
6837
|
+
var Li = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Li || {}), Ei = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Ei || {});
|
|
6838
|
+
let $i = { 0(e, r) {
|
|
6821
6839
|
return e.titleId === r.id ? e : { ...e, titleId: r.id };
|
|
6822
6840
|
} }, jr = fe(null);
|
|
6823
6841
|
jr.displayName = "DialogContext";
|
|
@@ -6829,11 +6847,11 @@ function ut(e) {
|
|
|
6829
6847
|
}
|
|
6830
6848
|
return r;
|
|
6831
6849
|
}
|
|
6832
|
-
function Li(e, r) {
|
|
6833
|
-
return Y(r.type, ji, e, r);
|
|
6834
|
-
}
|
|
6835
|
-
let Ei = "div", $i = kr.RenderStrategy | kr.Static;
|
|
6836
6850
|
function Mi(e, r) {
|
|
6851
|
+
return Y(r.type, $i, e, r);
|
|
6852
|
+
}
|
|
6853
|
+
let Ni = "div", Ti = kr.RenderStrategy | kr.Static;
|
|
6854
|
+
function Si(e, r) {
|
|
6837
6855
|
let n = Lr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: l = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, m] = Z(0), g = P(!1);
|
|
6838
6856
|
l = function() {
|
|
6839
6857
|
return l === "dialog" || l === "alertdialog" ? l : (g.current || (g.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
@@ -6851,44 +6869,44 @@ function Mi(e, r) {
|
|
|
6851
6869
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
|
|
6852
6870
|
if (typeof o != "function")
|
|
6853
6871
|
throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
|
|
6854
|
-
let S = s ? 0 : 1, [z, he] = Kn(
|
|
6872
|
+
let S = s ? 0 : 1, [z, he] = Kn(Mi, { titleId: null, descriptionId: null, panelRef: Jn() }), K = O(() => o(!1)), U = O((_) => he({ type: 0, id: _ })), J = fr() ? S === 0 : !1, X = p > 1, te = ae(jr) !== null, [k, M] = di(), W = { get current() {
|
|
6855
6873
|
var _;
|
|
6856
6874
|
return (_ = z.panelRef.current) != null ? _ : C.current;
|
|
6857
|
-
} }, { resolveContainers: Q, mainTreeNodeRef: me, MainTreeNode: xe } =
|
|
6858
|
-
|
|
6875
|
+
} }, { resolveContainers: Q, mainTreeNodeRef: me, MainTreeNode: xe } = pi({ portals: k, defaultContainers: [W] }), ge = X ? "parent" : "leaf", G = v !== null ? (v & le.Closing) === le.Closing : !1, ye = X || G ? !1 : J;
|
|
6876
|
+
Aa({ allowed: O(() => {
|
|
6859
6877
|
var _, Ce;
|
|
6860
6878
|
return [(Ce = (_ = C.current) == null ? void 0 : _.closest("[data-headlessui-portal]")) != null ? Ce : null];
|
|
6861
6879
|
}), disallowed: O(() => {
|
|
6862
6880
|
var _, Ce;
|
|
6863
6881
|
return [(Ce = (_ = me.current) == null ? void 0 : _.closest("body > *:not(#headlessui-portal-root)")) != null ? Ce : null];
|
|
6864
|
-
}) }, f ? !1 : ye),
|
|
6882
|
+
}) }, f ? !1 : ye), Ua(Q, (_) => {
|
|
6865
6883
|
_.preventDefault(), K();
|
|
6866
6884
|
}, !(!J || X));
|
|
6867
6885
|
let ne = !(X || S !== 0);
|
|
6868
6886
|
cn(w == null ? void 0 : w.defaultView, "keydown", (_) => {
|
|
6869
6887
|
ne && (_.defaultPrevented || _.key === sn.Escape && (_.preventDefault(), _.stopPropagation(), K()));
|
|
6870
|
-
}),
|
|
6871
|
-
let [ie, Ke] =
|
|
6872
|
-
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), y.createElement(
|
|
6888
|
+
}), Qa(w, f ? !1 : !(G || S !== 0 || te), Q), on(C, K, S === 0);
|
|
6889
|
+
let [ie, Ke] = Ea(), se = de(() => [{ dialogState: S, close: K, setTitleId: U }, z], [S, z, K, U]), B = de(() => ({ open: S === 0 }), [S]), H = { ref: x, id: t, role: l, tabIndex: -1, "aria-modal": S === 0 ? !0 : void 0, "aria-labelledby": z.titleId, "aria-describedby": ie }, Je = !fi(), je = J ? Y(ge, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6890
|
+
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), y.createElement(mi, { type: "Dialog", enabled: S === 0, element: C, onUpdate: O((_, Ce) => {
|
|
6873
6891
|
Ce === "Dialog" && Y(_, { [Yr.Add]: () => m((Xe) => Xe + 1), [Yr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6874
|
-
}) }, y.createElement(Ot, { force: !0 }, y.createElement(Wt, null, y.createElement(jr.Provider, { value: se }, y.createElement(Wt.Group, { target: C }, y.createElement(Ot, { force: !1 }, y.createElement(Ke, { slot: B, name: "Dialog.Description" }, y.createElement(M, null, y.createElement(
|
|
6892
|
+
}) }, y.createElement(Ot, { force: !0 }, y.createElement(Wt, null, y.createElement(jr.Provider, { value: se }, y.createElement(Wt.Group, { target: C }, y.createElement(Ot, { force: !1 }, y.createElement(Ke, { slot: B, name: "Dialog.Description" }, y.createElement(M, null, y.createElement(Ci, { initialFocus: a, initialFocusFallback: C, containers: Q, features: je }, y.createElement(Ra, { value: K }, ve({ ourProps: H, theirProps: u, slot: B, defaultTag: Ni, features: Ti, visible: S === 0, name: "Dialog" })))))))))), y.createElement(ja, null, y.createElement(xe, null)));
|
|
6875
6893
|
}
|
|
6876
|
-
let
|
|
6877
|
-
function
|
|
6894
|
+
let Ri = "div";
|
|
6895
|
+
function Ai(e, r) {
|
|
6878
6896
|
let n = Lr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ut("Dialog.Panel"), l = ke(r, a.panelRef), c = de(() => ({ open: o === 0 }), [o]), f = O((u) => {
|
|
6879
6897
|
u.stopPropagation();
|
|
6880
6898
|
});
|
|
6881
|
-
return ve({ ourProps: { ref: l, id: t, onClick: f }, theirProps: s, slot: c, defaultTag:
|
|
6899
|
+
return ve({ ourProps: { ref: l, id: t, onClick: f }, theirProps: s, slot: c, defaultTag: Ri, name: "Dialog.Panel" });
|
|
6882
6900
|
}
|
|
6883
|
-
let
|
|
6884
|
-
function
|
|
6901
|
+
let Pi = "h2";
|
|
6902
|
+
function Fi(e, r) {
|
|
6885
6903
|
let n = Lr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ut("Dialog.Title"), l = ke(r);
|
|
6886
6904
|
oe(() => (a(t), () => a(null)), [t, a]);
|
|
6887
6905
|
let c = de(() => ({ open: o === 0 }), [o]);
|
|
6888
|
-
return ve({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag:
|
|
6906
|
+
return ve({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag: Pi, name: "Dialog.Title" });
|
|
6889
6907
|
}
|
|
6890
|
-
let
|
|
6891
|
-
function
|
|
6908
|
+
let Oi = pe(Si), bn = pe(Ai), Wi = pe(Fi), _i = Object.assign(Oi, { Panel: bn, Title: Wi, Description: Ta });
|
|
6909
|
+
function Vi(e = 0) {
|
|
6892
6910
|
let [r, n] = Z(e), t = pr(), s = br((c) => {
|
|
6893
6911
|
t.current && n((f) => f | c);
|
|
6894
6912
|
}, [r, t]), o = br((c) => !!(r & c), [r]), a = br((c) => {
|
|
@@ -6911,7 +6929,7 @@ function _r(e, ...r) {
|
|
|
6911
6929
|
function Vr(e, ...r) {
|
|
6912
6930
|
e && r.length > 0 && e.classList.remove(...r);
|
|
6913
6931
|
}
|
|
6914
|
-
function
|
|
6932
|
+
function Ii(e, r) {
|
|
6915
6933
|
let n = vn(r), t = We();
|
|
6916
6934
|
if (!e)
|
|
6917
6935
|
return t.dispose;
|
|
@@ -6937,18 +6955,18 @@ function Wi(e, r) {
|
|
|
6937
6955
|
n();
|
|
6938
6956
|
return t.dispose;
|
|
6939
6957
|
}
|
|
6940
|
-
function
|
|
6958
|
+
function Di(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
6941
6959
|
let o = We(), a = n !== void 0 ? vn(n) : () => {
|
|
6942
6960
|
};
|
|
6943
6961
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6944
6962
|
let l = Y(r, { enter: () => t.enter, leave: () => t.leave }), c = Y(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), f = Y(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
6945
|
-
return
|
|
6963
|
+
return Bi(e, { prepare() {
|
|
6946
6964
|
Vr(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), _r(e, ...t.base, ...l, ...f);
|
|
6947
6965
|
}, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
|
|
6948
|
-
o.add(
|
|
6966
|
+
o.add(Ii(e, () => (Vr(e, ...t.base, ...l), _r(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), Vr(e, ...t.base, ...l, ...f), _r(e, ...t.base, ...l, ...c);
|
|
6949
6967
|
}), o.dispose;
|
|
6950
6968
|
}
|
|
6951
|
-
function
|
|
6969
|
+
function Bi(e, { inFlight: r, prepare: n }) {
|
|
6952
6970
|
if (r != null && r.current) {
|
|
6953
6971
|
n();
|
|
6954
6972
|
return;
|
|
@@ -6956,14 +6974,14 @@ function Vi(e, { inFlight: r, prepare: n }) {
|
|
|
6956
6974
|
let t = e.style.transition;
|
|
6957
6975
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6958
6976
|
}
|
|
6959
|
-
function
|
|
6977
|
+
function Hi({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
6960
6978
|
let o = pr(), a = ot(), l = P(!1);
|
|
6961
6979
|
re(() => {
|
|
6962
6980
|
if (r === "idle" || !o.current)
|
|
6963
6981
|
return;
|
|
6964
6982
|
t.current(r);
|
|
6965
6983
|
let c = e.current;
|
|
6966
|
-
return c ? a.add(
|
|
6984
|
+
return c ? a.add(Di(c, { direction: r, classes: n.current, inFlight: l, done() {
|
|
6967
6985
|
s.current(r);
|
|
6968
6986
|
} })) : s.current(r), a.dispose;
|
|
6969
6987
|
}, [r]);
|
|
@@ -6977,14 +6995,14 @@ function xn(e) {
|
|
|
6977
6995
|
}
|
|
6978
6996
|
let Mr = fe(null);
|
|
6979
6997
|
Mr.displayName = "TransitionContext";
|
|
6980
|
-
var
|
|
6981
|
-
function
|
|
6998
|
+
var zi = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(zi || {});
|
|
6999
|
+
function Ui() {
|
|
6982
7000
|
let e = ae(Mr);
|
|
6983
7001
|
if (e === null)
|
|
6984
7002
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6985
7003
|
return e;
|
|
6986
7004
|
}
|
|
6987
|
-
function
|
|
7005
|
+
function Gi() {
|
|
6988
7006
|
let e = ae(Nr);
|
|
6989
7007
|
if (e === null)
|
|
6990
7008
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
@@ -7024,9 +7042,9 @@ function Cn(e, r) {
|
|
|
7024
7042
|
return de(() => ({ children: t, register: l, unregister: a, onStart: p, onStop: m, wait: f, chains: u }), [l, a, t, p, m, u, f]);
|
|
7025
7043
|
}
|
|
7026
7044
|
let wn = ue, kn = kr.RenderStrategy;
|
|
7027
|
-
function
|
|
7045
|
+
function Zi(e, r) {
|
|
7028
7046
|
var n, t, s;
|
|
7029
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: g, leaveFrom: v, leaveTo: C, ...x } = e, w = P(null), j = xn(e), q = ke(...j ? [w, r] : r === null ? [] : [r]), S = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: z, appear: he, initial: K } =
|
|
7047
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: g, leaveFrom: v, leaveTo: C, ...x } = e, w = P(null), j = xn(e), q = ke(...j ? [w, r] : r === null ? [] : [r]), S = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: z, appear: he, initial: K } = Ui(), [U, J] = Z(z ? "visible" : "hidden"), X = Gi(), { register: te, unregister: k } = X;
|
|
7030
7048
|
re(() => te(w), [te, w]), re(() => {
|
|
7031
7049
|
if (S === Oe.Hidden && w.current) {
|
|
7032
7050
|
if (z && U !== "visible") {
|
|
@@ -7041,7 +7059,7 @@ function zi(e, r) {
|
|
|
7041
7059
|
if (j && Q && U === "visible" && w.current === null)
|
|
7042
7060
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
7043
7061
|
}, [w, U, Q, j]);
|
|
7044
|
-
let me = K && !he, xe = he && z && K, ge = xe ? "enter" : !Q || me ? "idle" : z ? "enter" : "leave", G =
|
|
7062
|
+
let me = K && !he, xe = he && z && K, ge = xe ? "enter" : !Q || me ? "idle" : z ? "enter" : "leave", G = Vi(0), ye = O((se) => Y(se, { enter: () => {
|
|
7045
7063
|
var B, H;
|
|
7046
7064
|
G.addFlag(le.Opening), (H = (B = W.current).beforeEnter) == null || H.call(B);
|
|
7047
7065
|
}, leave: () => {
|
|
@@ -7058,15 +7076,15 @@ function zi(e, r) {
|
|
|
7058
7076
|
} })), ne = P(!1), Se = Cn(() => {
|
|
7059
7077
|
ne.current || (J("hidden"), k(w));
|
|
7060
7078
|
}, X);
|
|
7061
|
-
|
|
7079
|
+
Hi({ container: w, classes: M, direction: ge, onStart: we((se) => {
|
|
7062
7080
|
ne.current = !0, Se.onStart(w, se, ye);
|
|
7063
7081
|
}), onStop: we((se) => {
|
|
7064
7082
|
ne.current = !1, Se.onStop(w, se, be), se === "leave" && !Tr(Se) && (J("hidden"), k(w));
|
|
7065
7083
|
}) });
|
|
7066
7084
|
let ie = x, Ke = { ref: q };
|
|
7067
|
-
return xe ? ie = { ...ie, className: ar(x.className, ...M.current.enter, ...M.current.enterFrom) } : ne.current ? (ie.className = ar(x.className, (t = w.current) == null ? void 0 : t.className), ie.className === "" && delete ie.className) : (ie.className = ar(x.className, (s = w.current) == null ? void 0 : s.className, ...Y(ge, { enter: [...M.current.enterTo, ...M.current.entered], leave: M.current.leaveTo, idle: [] })), ie.className === "" && delete ie.className), y.createElement(Nr.Provider, { value: Se }, y.createElement(
|
|
7085
|
+
return xe ? ie = { ...ie, className: ar(x.className, ...M.current.enter, ...M.current.enterFrom) } : ne.current ? (ie.className = ar(x.className, (t = w.current) == null ? void 0 : t.className), ie.className === "" && delete ie.className) : (ie.className = ar(x.className, (s = w.current) == null ? void 0 : s.className, ...Y(ge, { enter: [...M.current.enterTo, ...M.current.entered], leave: M.current.leaveTo, idle: [] })), ie.className === "" && delete ie.className), y.createElement(Nr.Provider, { value: Se }, y.createElement(ei, { value: Y(U, { visible: le.Open, hidden: le.Closed }) | G.flags }, ve({ ourProps: Ke, theirProps: ie, defaultTag: wn, features: kn, visible: U === "visible", name: "Transition.Child" })));
|
|
7068
7086
|
}
|
|
7069
|
-
function
|
|
7087
|
+
function Yi(e, r) {
|
|
7070
7088
|
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = P(null), l = xn(e), c = ke(...l ? [a, r] : r === null ? [] : [r]);
|
|
7071
7089
|
fr();
|
|
7072
7090
|
let f = dt();
|
|
@@ -7091,12 +7109,12 @@ function Ui(e, r) {
|
|
|
7091
7109
|
});
|
|
7092
7110
|
return y.createElement(Nr.Provider, { value: m }, y.createElement(Mr.Provider, { value: x }, ve({ ourProps: { ...w, as: ue, children: y.createElement(yn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: q }) }, theirProps: {}, defaultTag: ue, features: kn, visible: u === "visible", name: "Transition" })));
|
|
7093
7111
|
}
|
|
7094
|
-
function
|
|
7112
|
+
function qi(e, r) {
|
|
7095
7113
|
let n = ae(Mr) !== null, t = dt() !== null;
|
|
7096
7114
|
return y.createElement(y.Fragment, null, !n && t ? y.createElement(qr, { ref: r, ...e }) : y.createElement(yn, { ref: r, ...e }));
|
|
7097
7115
|
}
|
|
7098
|
-
let qr = pe(
|
|
7099
|
-
const
|
|
7116
|
+
let qr = pe(Yi), yn = pe(Zi), Kr = pe(qi), Ki = Object.assign(qr, { Child: Kr, Root: qr });
|
|
7117
|
+
const Ji = ({
|
|
7100
7118
|
open: e = !1,
|
|
7101
7119
|
onClose: r,
|
|
7102
7120
|
title: n = "",
|
|
@@ -7110,8 +7128,8 @@ const Yi = ({
|
|
|
7110
7128
|
horizontalRule: u = !0
|
|
7111
7129
|
}) => {
|
|
7112
7130
|
const p = () => l ? /* @__PURE__ */ i.jsx(i.Fragment, { children: l }) : a && c ? /* @__PURE__ */ i.jsx(Te, { name: c, size: "medium" }) : null, m = () => t === "dismissible" ? r() : !0;
|
|
7113
|
-
return /* @__PURE__ */ i.jsx(
|
|
7114
|
-
|
|
7131
|
+
return /* @__PURE__ */ i.jsx(Ki, { appear: !0, show: e, as: ue, children: /* @__PURE__ */ i.jsxs(
|
|
7132
|
+
_i,
|
|
7115
7133
|
{
|
|
7116
7134
|
as: "div",
|
|
7117
7135
|
onClose: m,
|
|
@@ -7195,7 +7213,7 @@ const Yi = ({
|
|
|
7195
7213
|
]
|
|
7196
7214
|
}
|
|
7197
7215
|
) });
|
|
7198
|
-
},
|
|
7216
|
+
}, Ul = Ji, Xi = A(
|
|
7199
7217
|
[
|
|
7200
7218
|
"preflight",
|
|
7201
7219
|
"ds-rounded-xl",
|
|
@@ -7237,7 +7255,7 @@ const Yi = ({
|
|
|
7237
7255
|
}
|
|
7238
7256
|
}
|
|
7239
7257
|
}
|
|
7240
|
-
),
|
|
7258
|
+
), Qi = ({
|
|
7241
7259
|
label: e,
|
|
7242
7260
|
type: r = "regular",
|
|
7243
7261
|
color: n = "default",
|
|
@@ -7251,7 +7269,7 @@ const Yi = ({
|
|
|
7251
7269
|
return /* @__PURE__ */ i.jsxs(
|
|
7252
7270
|
"div",
|
|
7253
7271
|
{
|
|
7254
|
-
className: D(
|
|
7272
|
+
className: D(Xi({ color: n, type: r }), o),
|
|
7255
7273
|
"aria-label": c,
|
|
7256
7274
|
...l,
|
|
7257
7275
|
children: [
|
|
@@ -7272,7 +7290,7 @@ const Yi = ({
|
|
|
7272
7290
|
]
|
|
7273
7291
|
}
|
|
7274
7292
|
);
|
|
7275
|
-
},
|
|
7293
|
+
}, el = Qi, rl = A(
|
|
7276
7294
|
[
|
|
7277
7295
|
"preflight",
|
|
7278
7296
|
"ds-transition",
|
|
@@ -7321,7 +7339,7 @@ const Yi = ({
|
|
|
7321
7339
|
}
|
|
7322
7340
|
}
|
|
7323
7341
|
}
|
|
7324
|
-
),
|
|
7342
|
+
), tl = ({
|
|
7325
7343
|
title: e,
|
|
7326
7344
|
id: r,
|
|
7327
7345
|
handleClick: n,
|
|
@@ -7332,7 +7350,7 @@ const Yi = ({
|
|
|
7332
7350
|
...l
|
|
7333
7351
|
}) => {
|
|
7334
7352
|
const c = (f, u, p) => D(
|
|
7335
|
-
|
|
7353
|
+
rl({ isNested: f }),
|
|
7336
7354
|
u && !f && "!ds-border-b-acuity-green",
|
|
7337
7355
|
u && f && "ds-bg-neutrals-white !ds-border-neutrals",
|
|
7338
7356
|
p
|
|
@@ -7350,7 +7368,7 @@ const Yi = ({
|
|
|
7350
7368
|
children: [
|
|
7351
7369
|
e,
|
|
7352
7370
|
o && /* @__PURE__ */ i.jsx(
|
|
7353
|
-
|
|
7371
|
+
el,
|
|
7354
7372
|
{
|
|
7355
7373
|
label: o,
|
|
7356
7374
|
className: "ds-ml-2 ds-h-5 ds-bg-neutrals-white ds-text-neutrals-black"
|
|
@@ -7359,7 +7377,7 @@ const Yi = ({
|
|
|
7359
7377
|
]
|
|
7360
7378
|
}
|
|
7361
7379
|
);
|
|
7362
|
-
},
|
|
7380
|
+
}, nl = ({ id: e, children: r, hidden: n }) => /* @__PURE__ */ i.jsx(
|
|
7363
7381
|
"div",
|
|
7364
7382
|
{
|
|
7365
7383
|
role: "tabpanel",
|
|
@@ -7369,7 +7387,7 @@ const Yi = ({
|
|
|
7369
7387
|
className: "preflight",
|
|
7370
7388
|
children: r
|
|
7371
7389
|
}
|
|
7372
|
-
),
|
|
7390
|
+
), sl = ({
|
|
7373
7391
|
children: e,
|
|
7374
7392
|
handleTabChange: r,
|
|
7375
7393
|
activeTabIndex: n,
|
|
@@ -7392,7 +7410,7 @@ const Yi = ({
|
|
|
7392
7410
|
role: "tablist",
|
|
7393
7411
|
className: `preflight ds-mb-5 ds-rounded ${t && "!ds-mb-4 ds-bg-neutrals-lighter ds-px-2"}`,
|
|
7394
7412
|
children: a.map((l, c) => /* @__PURE__ */ i.jsx(
|
|
7395
|
-
|
|
7413
|
+
tl,
|
|
7396
7414
|
{
|
|
7397
7415
|
handleClick: () => r(c),
|
|
7398
7416
|
isActive: n === c,
|
|
@@ -7405,7 +7423,7 @@ const Yi = ({
|
|
|
7405
7423
|
}
|
|
7406
7424
|
),
|
|
7407
7425
|
a.map((l, c) => /* @__PURE__ */ i.jsx(
|
|
7408
|
-
|
|
7426
|
+
nl,
|
|
7409
7427
|
{
|
|
7410
7428
|
id: l.props.id,
|
|
7411
7429
|
hidden: n !== c,
|
|
@@ -7414,7 +7432,7 @@ const Yi = ({
|
|
|
7414
7432
|
`panel-${c}`
|
|
7415
7433
|
))
|
|
7416
7434
|
] });
|
|
7417
|
-
},
|
|
7435
|
+
}, Gl = sl, ol = ({ children: e }) => e, Zl = ol, al = A(
|
|
7418
7436
|
[
|
|
7419
7437
|
"preflight",
|
|
7420
7438
|
"ds-form-label",
|
|
@@ -7435,17 +7453,17 @@ const Yi = ({
|
|
|
7435
7453
|
}
|
|
7436
7454
|
}
|
|
7437
7455
|
}
|
|
7438
|
-
),
|
|
7456
|
+
), il = (e) => D(al(e)), ll = ({
|
|
7439
7457
|
id: e,
|
|
7440
7458
|
state: r = "default",
|
|
7441
7459
|
disabled: n = !1,
|
|
7442
7460
|
htmlFor: t,
|
|
7443
7461
|
value: s = "",
|
|
7444
7462
|
optionalityLabel: o = ""
|
|
7445
|
-
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className:
|
|
7463
|
+
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: il({ state: r, disabled: n }), children: [
|
|
7446
7464
|
s,
|
|
7447
7465
|
o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
|
|
7448
|
-
] }),
|
|
7466
|
+
] }), dl = ll, cl = A(
|
|
7449
7467
|
["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
|
|
7450
7468
|
{
|
|
7451
7469
|
variants: {
|
|
@@ -7466,7 +7484,7 @@ const Yi = ({
|
|
|
7466
7484
|
}
|
|
7467
7485
|
]
|
|
7468
7486
|
}
|
|
7469
|
-
),
|
|
7487
|
+
), ul = (e) => D(cl(e)), fl = A(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
|
|
7470
7488
|
variants: {
|
|
7471
7489
|
state: {
|
|
7472
7490
|
default: ["ds-text-neutrals-black", "ds-mt-2"],
|
|
@@ -7481,7 +7499,7 @@ const Yi = ({
|
|
|
7481
7499
|
true: "!ds-text-neutrals-dark"
|
|
7482
7500
|
}
|
|
7483
7501
|
}
|
|
7484
|
-
}),
|
|
7502
|
+
}), pl = (e) => D(fl(e)), hl = ({
|
|
7485
7503
|
id: e,
|
|
7486
7504
|
state: r = "default",
|
|
7487
7505
|
disabled: n = !1,
|
|
@@ -7510,9 +7528,9 @@ const Yi = ({
|
|
|
7510
7528
|
break;
|
|
7511
7529
|
}
|
|
7512
7530
|
const m = t ? "label_" + e : void 0, g = o && o.length > 0 ? "helptext_" + e : void 0;
|
|
7513
|
-
return /* @__PURE__ */ i.jsxs("div", { className: D(
|
|
7531
|
+
return /* @__PURE__ */ i.jsxs("div", { className: D(ul({ state: r, hasMarginBottom: u }), f), children: [
|
|
7514
7532
|
t && /* @__PURE__ */ i.jsx(
|
|
7515
|
-
|
|
7533
|
+
dl,
|
|
7516
7534
|
{
|
|
7517
7535
|
id: m,
|
|
7518
7536
|
htmlFor: e,
|
|
@@ -7535,12 +7553,12 @@ const Yi = ({
|
|
|
7535
7553
|
}
|
|
7536
7554
|
) })
|
|
7537
7555
|
] }),
|
|
7538
|
-
p && /* @__PURE__ */ i.jsx("p", { className:
|
|
7556
|
+
p && /* @__PURE__ */ i.jsx("p", { className: pl({ state: r, hasMarginBottom: u }), children: a })
|
|
7539
7557
|
] });
|
|
7540
|
-
}, ft =
|
|
7558
|
+
}, ft = hl, ml = A(
|
|
7541
7559
|
["preflight", "ds-form-input", "ds-rounded", "ds-p-2", "!ds-border", "!ds-font-sans"],
|
|
7542
7560
|
nt
|
|
7543
|
-
),
|
|
7561
|
+
), gl = (e) => D(ml(e)), bl = ({
|
|
7544
7562
|
state: e = "default",
|
|
7545
7563
|
rows: r = 2,
|
|
7546
7564
|
cols: n = 50,
|
|
@@ -7554,13 +7572,13 @@ const Yi = ({
|
|
|
7554
7572
|
rows: r,
|
|
7555
7573
|
cols: n,
|
|
7556
7574
|
readOnly: s,
|
|
7557
|
-
className:
|
|
7575
|
+
className: gl({ disabled: s, state: e }),
|
|
7558
7576
|
style: {
|
|
7559
7577
|
resize: t ? "both" : "none"
|
|
7560
7578
|
},
|
|
7561
7579
|
...o
|
|
7562
7580
|
}
|
|
7563
|
-
),
|
|
7581
|
+
), vl = bl, xl = ({
|
|
7564
7582
|
id: e,
|
|
7565
7583
|
state: r = "default",
|
|
7566
7584
|
label: n,
|
|
@@ -7589,7 +7607,7 @@ const Yi = ({
|
|
|
7589
7607
|
className: u,
|
|
7590
7608
|
hasMarginBottom: p,
|
|
7591
7609
|
child: /* @__PURE__ */ i.jsx(
|
|
7592
|
-
|
|
7610
|
+
vl,
|
|
7593
7611
|
{
|
|
7594
7612
|
id: e,
|
|
7595
7613
|
"aria-labelledby": n ? "label_" + e : void 0,
|
|
@@ -7604,7 +7622,7 @@ const Yi = ({
|
|
|
7604
7622
|
}
|
|
7605
7623
|
)
|
|
7606
7624
|
}
|
|
7607
|
-
),
|
|
7625
|
+
), Yl = xl, Cl = A(
|
|
7608
7626
|
[
|
|
7609
7627
|
"preflight",
|
|
7610
7628
|
"ds-form-input",
|
|
@@ -7616,7 +7634,7 @@ const Yi = ({
|
|
|
7616
7634
|
"ds-container"
|
|
7617
7635
|
],
|
|
7618
7636
|
nt
|
|
7619
|
-
),
|
|
7637
|
+
), wl = (e) => D(Cl(e)), kl = cr(
|
|
7620
7638
|
({
|
|
7621
7639
|
state: e = "default",
|
|
7622
7640
|
disabled: r = !1,
|
|
@@ -7628,12 +7646,12 @@ const Yi = ({
|
|
|
7628
7646
|
"aria-disabled": r,
|
|
7629
7647
|
readOnly: r,
|
|
7630
7648
|
type: n,
|
|
7631
|
-
className:
|
|
7649
|
+
className: wl({ disabled: r, state: e }),
|
|
7632
7650
|
ref: s,
|
|
7633
7651
|
...t
|
|
7634
7652
|
}
|
|
7635
7653
|
)
|
|
7636
|
-
),
|
|
7654
|
+
), yl = kl, jl = cr(
|
|
7637
7655
|
({
|
|
7638
7656
|
id: e,
|
|
7639
7657
|
state: r = "default",
|
|
@@ -7660,7 +7678,7 @@ const Yi = ({
|
|
|
7660
7678
|
className: c,
|
|
7661
7679
|
hasMarginBottom: f,
|
|
7662
7680
|
child: /* @__PURE__ */ i.jsx(
|
|
7663
|
-
|
|
7681
|
+
yl,
|
|
7664
7682
|
{
|
|
7665
7683
|
id: e,
|
|
7666
7684
|
"aria-labelledby": s ? "label_" + e : void 0,
|
|
@@ -7675,7 +7693,7 @@ const Yi = ({
|
|
|
7675
7693
|
)
|
|
7676
7694
|
}
|
|
7677
7695
|
)
|
|
7678
|
-
),
|
|
7696
|
+
), ql = jl, Ll = A(
|
|
7679
7697
|
[
|
|
7680
7698
|
"preflight",
|
|
7681
7699
|
"ds-form-select",
|
|
@@ -7688,31 +7706,33 @@ const Yi = ({
|
|
|
7688
7706
|
"ds-bg-[center_right_0.25rem]"
|
|
7689
7707
|
],
|
|
7690
7708
|
nt
|
|
7691
|
-
),
|
|
7709
|
+
), El = (e) => Ll(e), $l = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, Ml = cr(
|
|
7692
7710
|
({
|
|
7693
7711
|
state: e = "default",
|
|
7694
7712
|
disabled: r = !1,
|
|
7695
7713
|
className: n = "",
|
|
7696
7714
|
...t
|
|
7697
7715
|
}, s) => {
|
|
7698
|
-
|
|
7699
|
-
return
|
|
7700
|
-
t.children.props.children
|
|
7701
|
-
) : y.Children.toArray(t.children)).map((l) => y.isValidElement(l) ? y.cloneElement(l, {
|
|
7702
|
-
disabled: !0
|
|
7703
|
-
}) : l)), /* @__PURE__ */ i.jsx(
|
|
7716
|
+
const { onClick: o, onKeyDown: a, onMouseDown: l, ...c } = t;
|
|
7717
|
+
return /* @__PURE__ */ i.jsx(
|
|
7704
7718
|
"select",
|
|
7705
7719
|
{
|
|
7706
7720
|
ref: s,
|
|
7707
7721
|
"aria-disabled": r,
|
|
7708
|
-
style: { backgroundImage:
|
|
7709
|
-
className: D(
|
|
7710
|
-
|
|
7711
|
-
|
|
7722
|
+
style: { backgroundImage: $l },
|
|
7723
|
+
className: D(El({ disabled: r, state: e }), n),
|
|
7724
|
+
onClick: (f) => Po(f, r, o != null ? o : () => {
|
|
7725
|
+
}),
|
|
7726
|
+
onKeyDown: (f) => Fo(f, r, a != null ? a : () => {
|
|
7727
|
+
}),
|
|
7728
|
+
onMouseDown: (f) => Oo(f, r, l != null ? l : () => {
|
|
7729
|
+
}),
|
|
7730
|
+
...c,
|
|
7731
|
+
children: t.children
|
|
7712
7732
|
}
|
|
7713
7733
|
);
|
|
7714
7734
|
}
|
|
7715
|
-
),
|
|
7735
|
+
), Nl = Ml, Tl = cr(
|
|
7716
7736
|
({
|
|
7717
7737
|
id: e,
|
|
7718
7738
|
state: r = "default",
|
|
@@ -7738,7 +7758,7 @@ const Yi = ({
|
|
|
7738
7758
|
className: l,
|
|
7739
7759
|
hasMarginBottom: c,
|
|
7740
7760
|
child: /* @__PURE__ */ i.jsx(
|
|
7741
|
-
|
|
7761
|
+
Nl,
|
|
7742
7762
|
{
|
|
7743
7763
|
id: e,
|
|
7744
7764
|
"aria-labelledby": t ? "label_" + e : void 0,
|
|
@@ -7752,14 +7772,14 @@ const Yi = ({
|
|
|
7752
7772
|
)
|
|
7753
7773
|
}
|
|
7754
7774
|
)
|
|
7755
|
-
),
|
|
7775
|
+
), Kl = Tl, Sl = A("ds-overflow-hidden ds-bg-neutrals-light", {
|
|
7756
7776
|
variants: {
|
|
7757
7777
|
size: {
|
|
7758
7778
|
small: ["ds-h-2", "ds-rounded-sm"],
|
|
7759
7779
|
large: ["ds-h-4", "ds-rounded"]
|
|
7760
7780
|
}
|
|
7761
7781
|
}
|
|
7762
|
-
}),
|
|
7782
|
+
}), Rl = A("", {
|
|
7763
7783
|
variants: {
|
|
7764
7784
|
size: {
|
|
7765
7785
|
small: ["ds-h-2", "ds-rounded-sm"],
|
|
@@ -7772,7 +7792,7 @@ const Yi = ({
|
|
|
7772
7792
|
indeterminate: ["ds-bg-acuity-blue", "ds-animate-progress"]
|
|
7773
7793
|
}
|
|
7774
7794
|
}
|
|
7775
|
-
}),
|
|
7795
|
+
}), Al = A(
|
|
7776
7796
|
"ds-w-[3rem] ds-justify-end ds-flex ds-items-center ds-text-neutrals-dark",
|
|
7777
7797
|
{
|
|
7778
7798
|
variants: {
|
|
@@ -7782,7 +7802,7 @@ const Yi = ({
|
|
|
7782
7802
|
}
|
|
7783
7803
|
}
|
|
7784
7804
|
}
|
|
7785
|
-
),
|
|
7805
|
+
), Pl = A("ds-text-sm", {
|
|
7786
7806
|
variants: {
|
|
7787
7807
|
state: {
|
|
7788
7808
|
error: "ds-text-danger-red",
|
|
@@ -7791,7 +7811,7 @@ const Yi = ({
|
|
|
7791
7811
|
"in-progress": "ds-text-neutrals-dark"
|
|
7792
7812
|
}
|
|
7793
7813
|
}
|
|
7794
|
-
}),
|
|
7814
|
+
}), Fl = ({
|
|
7795
7815
|
size: e = "large",
|
|
7796
7816
|
label: r = "",
|
|
7797
7817
|
helperMessage: n = "",
|
|
@@ -7848,7 +7868,7 @@ const Yi = ({
|
|
|
7848
7868
|
/* @__PURE__ */ i.jsx("p", { className: "ds-overflow-hidden ds-text-nowrap", children: r }),
|
|
7849
7869
|
p()
|
|
7850
7870
|
] }),
|
|
7851
|
-
/* @__PURE__ */ i.jsx("div", { "aria-hidden": !0, className:
|
|
7871
|
+
/* @__PURE__ */ i.jsx("div", { "aria-hidden": !0, className: Al({ size: e }), children: u() })
|
|
7852
7872
|
] }),
|
|
7853
7873
|
/* @__PURE__ */ i.jsx(
|
|
7854
7874
|
"div",
|
|
@@ -7860,41 +7880,41 @@ const Yi = ({
|
|
|
7860
7880
|
"aria-valuenow": a,
|
|
7861
7881
|
"aria-valuemax": o,
|
|
7862
7882
|
"aria-valuetext": f(),
|
|
7863
|
-
children: /* @__PURE__ */ i.jsx("div", { className:
|
|
7883
|
+
children: /* @__PURE__ */ i.jsx("div", { className: Sl({ size: e }), children: /* @__PURE__ */ i.jsx(
|
|
7864
7884
|
"div",
|
|
7865
7885
|
{
|
|
7866
7886
|
style: { width: f() },
|
|
7867
|
-
className:
|
|
7887
|
+
className: Rl({ size: e, state: s })
|
|
7868
7888
|
}
|
|
7869
7889
|
) })
|
|
7870
7890
|
}
|
|
7871
7891
|
),
|
|
7872
|
-
/* @__PURE__ */ i.jsx("p", { className:
|
|
7892
|
+
/* @__PURE__ */ i.jsx("p", { className: Pl({ state: s }), children: n })
|
|
7873
7893
|
] });
|
|
7874
|
-
},
|
|
7894
|
+
}, Jl = Fl;
|
|
7875
7895
|
export {
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7896
|
+
zo as Alert,
|
|
7897
|
+
el as Badge,
|
|
7898
|
+
Ko as Button,
|
|
7899
|
+
Vl as Card,
|
|
7900
|
+
Il as Checkbox,
|
|
7901
|
+
Kl as Dropdown,
|
|
7902
|
+
Nl as DropdownAtom,
|
|
7903
|
+
Dl as FormValidation,
|
|
7884
7904
|
en as Heading,
|
|
7885
7905
|
Te as Icon,
|
|
7886
7906
|
tt as IconButton,
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7907
|
+
dl as LabelAtom,
|
|
7908
|
+
Hl as Link,
|
|
7909
|
+
Ul as Modal,
|
|
7910
|
+
Jl as ProgressBar,
|
|
7911
|
+
Bl as Radio,
|
|
7892
7912
|
Br as Spinner,
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7913
|
+
Zl as Tab,
|
|
7914
|
+
Gl as Tabs,
|
|
7915
|
+
ql as TextInput,
|
|
7916
|
+
yl as TextInputAtom,
|
|
7917
|
+
Yl as Textarea,
|
|
7918
|
+
vl as TextareaAtom
|
|
7899
7919
|
};
|
|
7900
7920
|
//# sourceMappingURL=index.es.js.map
|