burne-ui 1.7.4 → 1.7.6
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/components/composite/Form/Form.d.ts +4 -4
- package/dist/components/composite/Form/formContext.d.ts +7 -4
- package/dist/components/composite/Form/formParts.d.ts +3 -0
- package/dist/components/composite/Form/formStyles.d.ts +23 -6
- package/dist/components/composite/Form/formTypes.d.ts +16 -3
- package/dist/components/composite/Form/index.d.ts +5 -2
- package/dist/components/composite/Form/useFormRootState.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupA11y.d.ts +11 -5
- package/dist/components/composite/ToggleButtonGroup/useToggleButtonGroupRootState.d.ts +0 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +1 -0
- package/dist/components/core/Button/buttonAnimations.d.ts +2 -1
- package/dist/components/core/Button/buttonTypes.d.ts +1 -0
- package/dist/components/core/Calendar/calendarAnimations.d.ts +1 -0
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +3 -2
- package/dist/components/core/Drawer/drawerStyles.d.ts +2 -2
- package/dist/components/core/Drawer/drawerTypes.d.ts +5 -2
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +0 -1
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +1 -1
- package/dist/components/core/Link/linkAnimations.d.ts +2 -1
- package/dist/components/core/Link/linkTypes.d.ts +3 -1
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +2 -1
- package/dist/components/core/ListBox/listBoxTypes.d.ts +1 -0
- package/dist/components/core/Popover/popoverA11y.d.ts +1 -2
- package/dist/components/core/Radio/radioAnimations.d.ts +2 -1
- package/dist/components/core/Radio/radioTypes.d.ts +2 -1
- package/dist/components/core/Switch/switchAnimations.d.ts +2 -1
- package/dist/components/core/Switch/switchTypes.d.ts +2 -1
- package/dist/components/core/Tabs/tabsAnimations.d.ts +4 -2
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +3 -2
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +6 -3
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +3 -1
- package/dist/components/core/utils/focusElement.d.ts +47 -0
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +10 -1
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +1 -0
- package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +4 -2
- package/dist/components/core/utils/usePressableElementTextMotion.d.ts +6 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11810 -11587
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +37 -36
- package/dist/{themeRuntimeContext-C0Jz4XNk.js → themeRuntimeContext-BSRr0qLF.js} +186 -182
- package/dist/{themeRuntimeContext-C1c5qNb1.cjs → themeRuntimeContext-DV880giO.cjs} +6 -6
- package/dist/ui.css +19 -1
- package/package.json +1 -1
|
@@ -3849,7 +3849,10 @@ function Le(e, r, o, n) {
|
|
|
3849
3849
|
e.style.setProperty("--el-shadow", r ? n.hover : s);
|
|
3850
3850
|
}
|
|
3851
3851
|
}
|
|
3852
|
-
function ds(e
|
|
3852
|
+
function ds(e) {
|
|
3853
|
+
return !e.repeat && (e.key === "Enter" || e.key === " ");
|
|
3854
|
+
}
|
|
3855
|
+
function fs(e, r) {
|
|
3853
3856
|
var w;
|
|
3854
3857
|
if (!Ge("enablePressSqueeze"))
|
|
3855
3858
|
return (w = r == null ? void 0 : r.onReleaseStart) == null || w.call(r), Promise.resolve();
|
|
@@ -4001,7 +4004,7 @@ function vo(e, r = !0) {
|
|
|
4001
4004
|
o && (Mr(o), o = null);
|
|
4002
4005
|
};
|
|
4003
4006
|
}
|
|
4004
|
-
function
|
|
4007
|
+
function gs(e, r = !0) {
|
|
4005
4008
|
const o = Z(null), n = J(
|
|
4006
4009
|
() => vo(o, r),
|
|
4007
4010
|
[r]
|
|
@@ -4086,7 +4089,7 @@ function pt(e, r, o) {
|
|
|
4086
4089
|
onLeave: s
|
|
4087
4090
|
});
|
|
4088
4091
|
}
|
|
4089
|
-
function
|
|
4092
|
+
function ms(e, r) {
|
|
4090
4093
|
const o = Z(!1), n = Z(!1), i = Z(!1), t = J(
|
|
4091
4094
|
() => vo(e, r),
|
|
4092
4095
|
[e, r]
|
|
@@ -4144,13 +4147,13 @@ function gs(e, r) {
|
|
|
4144
4147
|
};
|
|
4145
4148
|
}
|
|
4146
4149
|
const ur = "animate-shadow origin-center";
|
|
4147
|
-
function
|
|
4150
|
+
function ps() {
|
|
4148
4151
|
return { hover: pe() };
|
|
4149
4152
|
}
|
|
4150
4153
|
function xo() {
|
|
4151
4154
|
return { idle: pe(), hover: Kn() };
|
|
4152
4155
|
}
|
|
4153
|
-
function
|
|
4156
|
+
function bs(e, r, o = pe, n) {
|
|
4154
4157
|
Q(() => {
|
|
4155
4158
|
r && ar(e.current, o());
|
|
4156
4159
|
}, [r, e, o, n]);
|
|
@@ -4182,7 +4185,7 @@ function bt(e, r, o) {
|
|
|
4182
4185
|
onPointerLeave: s
|
|
4183
4186
|
};
|
|
4184
4187
|
}
|
|
4185
|
-
function
|
|
4188
|
+
function hs(e, r, o) {
|
|
4186
4189
|
const n = J(() => xo(), []), i = (o == null ? void 0 : o.resolveIdle) ?? pe;
|
|
4187
4190
|
Q(() => {
|
|
4188
4191
|
r && ar(e.current, i());
|
|
@@ -4225,7 +4228,7 @@ const De = {
|
|
|
4225
4228
|
success: "border-token-success",
|
|
4226
4229
|
info: "border-token-info",
|
|
4227
4230
|
warning: "border-token-warning"
|
|
4228
|
-
}, wt = "surface-color-transition motion-reduce:transition-none",
|
|
4231
|
+
}, wt = "surface-color-transition motion-reduce:transition-none", vs = "text-color-transition motion-reduce:transition-none", St = {
|
|
4229
4232
|
default: {
|
|
4230
4233
|
"focus-visible": "hover:bg-default-hover focus-visible:bg-default-hover",
|
|
4231
4234
|
"focus-within": "hover:bg-default-hover focus-within:bg-default-hover"
|
|
@@ -4304,7 +4307,7 @@ const ie = {
|
|
|
4304
4307
|
secondary: "bg-secondary text-secondary-foreground border border-token",
|
|
4305
4308
|
ghost: "bg-transparent text-foreground border border-transparent",
|
|
4306
4309
|
gloss: ""
|
|
4307
|
-
},
|
|
4310
|
+
}, xs = /* @__PURE__ */ new Set([
|
|
4308
4311
|
"default",
|
|
4309
4312
|
"primary",
|
|
4310
4313
|
"outline",
|
|
@@ -4341,7 +4344,7 @@ const ie = {
|
|
|
4341
4344
|
success: "gloss-btn-success",
|
|
4342
4345
|
info: "gloss-btn-info",
|
|
4343
4346
|
warning: "gloss-btn-warning"
|
|
4344
|
-
},
|
|
4347
|
+
}, ys = {
|
|
4345
4348
|
default: "",
|
|
4346
4349
|
danger: "[--color-focus-ring:var(--color-focus-ring-danger)]",
|
|
4347
4350
|
success: "[--color-focus-ring:var(--color-focus-ring-success)]",
|
|
@@ -4363,12 +4366,12 @@ const ie = {
|
|
|
4363
4366
|
base: "[&_svg]:icon-base",
|
|
4364
4367
|
mid: "[&_svg]:icon-mid",
|
|
4365
4368
|
large: "[&_svg]:icon-large"
|
|
4366
|
-
},
|
|
4369
|
+
}, ws = {
|
|
4367
4370
|
small: "small",
|
|
4368
4371
|
base: "base",
|
|
4369
4372
|
mid: "mid",
|
|
4370
4373
|
large: "large"
|
|
4371
|
-
},
|
|
4374
|
+
}, Ss = "relative overflow-hidden inline-flex items-center justify-center outline-none focus-ring disabled:pointer-events-none", Ts = "pointer-events-none absolute inset-0 z-0 overflow-hidden", Ct = "relative z-[1] grid w-full min-w-0 place-items-center", Ot = "origin-center", _t = "col-start-1 row-start-1 inline-flex w-full min-w-0 items-center justify-center gap-xsmall", It = "inline-flex shrink-0 items-center justify-center", Lt = "min-w-0 shrink", dr = "col-start-1 row-start-1 flex items-center justify-center", Rt = "text-success", zt = "text-danger", ks = "animate-spin motion-reduce:animate-none", Es = "cursor-pointer", Ds = "opacity-50";
|
|
4372
4375
|
function At(e, r) {
|
|
4373
4376
|
const { root: o } = wo[e];
|
|
4374
4377
|
return e === "outline" && r !== "default" ? "bg-transparent text-foreground" : o;
|
|
@@ -4426,10 +4429,10 @@ function Nt(e, r) {
|
|
|
4426
4429
|
function Bt(e, r, o) {
|
|
4427
4430
|
return o ? "" : Tt(Mt(e, r));
|
|
4428
4431
|
}
|
|
4429
|
-
function
|
|
4432
|
+
function Fs(e, r) {
|
|
4430
4433
|
return e === "primary" && r !== "default" ? xt[r] : Pt(e);
|
|
4431
4434
|
}
|
|
4432
|
-
function
|
|
4435
|
+
function Cs(e, r) {
|
|
4433
4436
|
return e === "primary" ? r === "default" ? S("converge-ripple-primary-fill") : Dt[r] : Et[r];
|
|
4434
4437
|
}
|
|
4435
4438
|
const Gt = {
|
|
@@ -4438,11 +4441,11 @@ const Gt = {
|
|
|
4438
4441
|
mid: "h-control-mid",
|
|
4439
4442
|
large: "h-control-large"
|
|
4440
4443
|
};
|
|
4441
|
-
function
|
|
4444
|
+
function Os(e, r = le[e].minWButton) {
|
|
4442
4445
|
const o = le[e];
|
|
4443
4446
|
return x(r, o.padX, o.padY);
|
|
4444
4447
|
}
|
|
4445
|
-
function
|
|
4448
|
+
function _s(e, r = !1) {
|
|
4446
4449
|
const o = le[e];
|
|
4447
4450
|
return x(
|
|
4448
4451
|
Gt[e],
|
|
@@ -4451,17 +4454,17 @@ function Os(e, r = !1) {
|
|
|
4451
4454
|
o.padY
|
|
4452
4455
|
);
|
|
4453
4456
|
}
|
|
4454
|
-
function
|
|
4457
|
+
function Is(e) {
|
|
4455
4458
|
const r = le[e];
|
|
4456
4459
|
return x(r.spinnerIcon, r.spinnerBorder);
|
|
4457
4460
|
}
|
|
4458
|
-
function
|
|
4461
|
+
function Ls() {
|
|
4459
4462
|
return "pointer-events-none absolute left-1/2 top-1/2 z-0 rounded-full";
|
|
4460
4463
|
}
|
|
4461
|
-
function
|
|
4464
|
+
function Rs() {
|
|
4462
4465
|
return "box-border inline-block rounded-full border-current border-t-transparent";
|
|
4463
4466
|
}
|
|
4464
|
-
function
|
|
4467
|
+
function zs({
|
|
4465
4468
|
groupSegment: e,
|
|
4466
4469
|
slotClass: r,
|
|
4467
4470
|
className: o
|
|
@@ -4473,29 +4476,29 @@ function Rs({
|
|
|
4473
4476
|
o
|
|
4474
4477
|
);
|
|
4475
4478
|
}
|
|
4476
|
-
function
|
|
4479
|
+
function As({
|
|
4477
4480
|
slotClass: e,
|
|
4478
4481
|
className: r,
|
|
4479
4482
|
layoutClass: o
|
|
4480
4483
|
}) {
|
|
4481
4484
|
return x(_t, e, o, r);
|
|
4482
4485
|
}
|
|
4483
|
-
function
|
|
4486
|
+
function Ps(e, r) {
|
|
4484
4487
|
return x(It, Ft[e], r);
|
|
4485
4488
|
}
|
|
4486
|
-
function
|
|
4489
|
+
function Ms(e, r) {
|
|
4487
4490
|
return x(Lt, e, r);
|
|
4488
4491
|
}
|
|
4489
|
-
function
|
|
4492
|
+
function Ns(e, r) {
|
|
4490
4493
|
return x(dr, e, r);
|
|
4491
4494
|
}
|
|
4492
|
-
function
|
|
4495
|
+
function Bs(e) {
|
|
4493
4496
|
return x(dr, Rt, e);
|
|
4494
4497
|
}
|
|
4495
|
-
function
|
|
4498
|
+
function Gs(e) {
|
|
4496
4499
|
return x(dr, zt, e);
|
|
4497
4500
|
}
|
|
4498
|
-
function
|
|
4501
|
+
function Hs() {
|
|
4499
4502
|
return "shrink-0";
|
|
4500
4503
|
}
|
|
4501
4504
|
const Ht = {
|
|
@@ -4511,10 +4514,10 @@ const Ht = {
|
|
|
4511
4514
|
info: S("converge-ripple-info"),
|
|
4512
4515
|
warning: S("converge-ripple-warning")
|
|
4513
4516
|
};
|
|
4514
|
-
function
|
|
4517
|
+
function $s(e, r = "default") {
|
|
4515
4518
|
return r !== "default" ? $t[r] : Ht[e];
|
|
4516
4519
|
}
|
|
4517
|
-
function
|
|
4520
|
+
function Ws(e, r, o, n, i) {
|
|
4518
4521
|
return e ? x("gloss-btn", bo, kt[r]) : x(
|
|
4519
4522
|
At(o, r),
|
|
4520
4523
|
Nt(o, r),
|
|
@@ -4522,7 +4525,7 @@ function $s(e, r, o, n, i) {
|
|
|
4522
4525
|
Bt(o, r, i)
|
|
4523
4526
|
);
|
|
4524
4527
|
}
|
|
4525
|
-
const
|
|
4528
|
+
const Us = {
|
|
4526
4529
|
small: "small",
|
|
4527
4530
|
base: "base",
|
|
4528
4531
|
mid: "mid",
|
|
@@ -4542,8 +4545,8 @@ function Vt(e) {
|
|
|
4542
4545
|
const { orientation: r, position: o } = e;
|
|
4543
4546
|
return o === "only" ? "rounded-[inherit]" : r === "horizontal" ? o === "first" ? "rounded-l-[inherit] rounded-r-none" : o === "middle" ? "rounded-none" : "rounded-r-[inherit] rounded-l-none" : o === "first" ? "rounded-t-[inherit] rounded-b-none" : o === "middle" ? "rounded-none" : "rounded-b-[inherit] rounded-t-none";
|
|
4544
4547
|
}
|
|
4545
|
-
const
|
|
4546
|
-
function
|
|
4548
|
+
const Vs = "min-h-0 min-w-0 self-stretch rounded-[inherit]";
|
|
4549
|
+
function qs(e) {
|
|
4547
4550
|
if (e == null || e.position === "only") return "";
|
|
4548
4551
|
const { orientation: r, position: o } = e;
|
|
4549
4552
|
return r === "horizontal" ? o === "first" ? "" : "border-l-0" : o === "first" ? "" : "border-t-0";
|
|
@@ -4562,7 +4565,7 @@ function jt(e) {
|
|
|
4562
4565
|
"z-0"
|
|
4563
4566
|
);
|
|
4564
4567
|
}
|
|
4565
|
-
function
|
|
4568
|
+
function js({
|
|
4566
4569
|
orientation: e,
|
|
4567
4570
|
segmented: r,
|
|
4568
4571
|
variant: o,
|
|
@@ -4581,14 +4584,14 @@ function qs({
|
|
|
4581
4584
|
n
|
|
4582
4585
|
);
|
|
4583
4586
|
}
|
|
4584
|
-
function
|
|
4587
|
+
function Xs(e, r) {
|
|
4585
4588
|
return x(
|
|
4586
4589
|
"pointer-events-none shrink-0",
|
|
4587
4590
|
e === "horizontal" ? "my-[var(--border-width)] self-stretch border-r-token" : "mx-[var(--border-width)] self-stretch border-b-token",
|
|
4588
4591
|
r
|
|
4589
4592
|
);
|
|
4590
4593
|
}
|
|
4591
|
-
function
|
|
4594
|
+
function Ys({
|
|
4592
4595
|
groupSegment: e,
|
|
4593
4596
|
groupVariant: r,
|
|
4594
4597
|
buttonSize: o,
|
|
@@ -4602,7 +4605,7 @@ function Xs({
|
|
|
4602
4605
|
n
|
|
4603
4606
|
);
|
|
4604
4607
|
}
|
|
4605
|
-
const
|
|
4608
|
+
const Ks = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max-w-component-base", Xt = {
|
|
4606
4609
|
default: "bg-surface",
|
|
4607
4610
|
outline: "bg-transparent",
|
|
4608
4611
|
secondary: "bg-secondary"
|
|
@@ -4610,18 +4613,18 @@ const Ys = "max-w-component-xsmall truncate font-w-base whitespace-nowrap md:max
|
|
|
4610
4613
|
function Yt(e) {
|
|
4611
4614
|
return e === "secondary" ? "secondary" : "default";
|
|
4612
4615
|
}
|
|
4613
|
-
function
|
|
4616
|
+
function Zs(e) {
|
|
4614
4617
|
return e === "gloss" ? "gloss" : e === "outline" ? "outline" : e === "secondary" ? "secondary" : "default";
|
|
4615
4618
|
}
|
|
4616
|
-
function
|
|
4619
|
+
function Js({
|
|
4617
4620
|
variant: e
|
|
4618
4621
|
}) {
|
|
4619
4622
|
return e === "gloss" ? "gloss-control" : e === "outline" ? "bg-transparent border-token" : x(Xt[e], "border-token");
|
|
4620
4623
|
}
|
|
4621
|
-
function
|
|
4624
|
+
function Qs(e, r = "default", o = "default") {
|
|
4622
4625
|
return e ? yo(Yt(o), "focus-within") : "";
|
|
4623
4626
|
}
|
|
4624
|
-
const
|
|
4627
|
+
const ea = "field-shell-transition motion-reduce:transition-none", Kt = "focus-within-ring", Fe = "outline-solid outline-[length:var(--focus-ring-width,2px)] outline-offset-[length:var(--focus-ring-offset,0px)]", Ce = {
|
|
4625
4628
|
danger: "outline-[var(--color-focus-ring-danger)] focus-within:outline-[var(--color-focus-ring-danger)]",
|
|
4626
4629
|
success: "outline-[var(--color-focus-ring-success)] focus-within:outline-[var(--color-focus-ring-success)]",
|
|
4627
4630
|
info: "outline-[var(--color-focus-ring-info)] focus-within:outline-[var(--color-focus-ring-info)]",
|
|
@@ -4632,10 +4635,10 @@ const Qs = "field-shell-transition motion-reduce:transition-none", Kt = "focus-w
|
|
|
4632
4635
|
info: x(Fe, Ce.info),
|
|
4633
4636
|
warning: x(Fe, Ce.warning)
|
|
4634
4637
|
};
|
|
4635
|
-
function
|
|
4638
|
+
function ra(e = "default") {
|
|
4636
4639
|
return e === "default" ? Kt : Zt[e];
|
|
4637
4640
|
}
|
|
4638
|
-
function
|
|
4641
|
+
function oa(e, r) {
|
|
4639
4642
|
const o = bt(e, r);
|
|
4640
4643
|
return {
|
|
4641
4644
|
shellHoverMotionClass: o.motionClass,
|
|
@@ -4643,7 +4646,7 @@ function ra(e, r) {
|
|
|
4643
4646
|
onShellPointerLeave: o.onPointerLeave
|
|
4644
4647
|
};
|
|
4645
4648
|
}
|
|
4646
|
-
function
|
|
4649
|
+
function na(e) {
|
|
4647
4650
|
const r = le[e];
|
|
4648
4651
|
return x(
|
|
4649
4652
|
"flex self-stretch shrink-0 items-center text-muted",
|
|
@@ -4657,7 +4660,7 @@ const Jt = {
|
|
|
4657
4660
|
mid: "min-w-control-mid",
|
|
4658
4661
|
large: "min-w-control-large"
|
|
4659
4662
|
};
|
|
4660
|
-
function
|
|
4663
|
+
function ta(e) {
|
|
4661
4664
|
return Jt[e];
|
|
4662
4665
|
}
|
|
4663
4666
|
const Qt = {
|
|
@@ -4685,7 +4688,7 @@ function ri(e) {
|
|
|
4685
4688
|
}
|
|
4686
4689
|
return null;
|
|
4687
4690
|
}
|
|
4688
|
-
function
|
|
4691
|
+
function ia(e, r = 16) {
|
|
4689
4692
|
return ri(e) ?? r * ei[e];
|
|
4690
4693
|
}
|
|
4691
4694
|
const oi = {
|
|
@@ -4939,7 +4942,7 @@ function gr(e) {
|
|
|
4939
4942
|
}
|
|
4940
4943
|
};
|
|
4941
4944
|
}
|
|
4942
|
-
function
|
|
4945
|
+
function sa(e, r) {
|
|
4943
4946
|
const o = gr(e), n = o.modePalettes[r];
|
|
4944
4947
|
return {
|
|
4945
4948
|
...o,
|
|
@@ -4947,7 +4950,7 @@ function ia(e, r) {
|
|
|
4947
4950
|
colors: { ...n }
|
|
4948
4951
|
};
|
|
4949
4952
|
}
|
|
4950
|
-
function
|
|
4953
|
+
function aa(e, r, o) {
|
|
4951
4954
|
const n = gr(e), i = { ...n.colors, [r]: o };
|
|
4952
4955
|
return {
|
|
4953
4956
|
...n,
|
|
@@ -4995,7 +4998,7 @@ const xi = [
|
|
|
4995
4998
|
]),
|
|
4996
4999
|
...Object.values(fr)
|
|
4997
5000
|
];
|
|
4998
|
-
function
|
|
5001
|
+
function la(e) {
|
|
4999
5002
|
if (typeof document > "u") return;
|
|
5000
5003
|
const r = e ?? document.documentElement;
|
|
5001
5004
|
for (const o of xi)
|
|
@@ -5316,7 +5319,7 @@ function Ei(e, r, o) {
|
|
|
5316
5319
|
}), r.style.setProperty(s, a);
|
|
5317
5320
|
Pe.set(r, t);
|
|
5318
5321
|
}
|
|
5319
|
-
function
|
|
5322
|
+
function ca(e) {
|
|
5320
5323
|
var o;
|
|
5321
5324
|
if (typeof document > "u") return;
|
|
5322
5325
|
const r = e ?? document.documentElement;
|
|
@@ -5330,7 +5333,7 @@ function Di(e) {
|
|
|
5330
5333
|
storageKey: (e == null ? void 0 : e.storageKey) === void 0 ? To : e.storageKey
|
|
5331
5334
|
};
|
|
5332
5335
|
}
|
|
5333
|
-
function
|
|
5336
|
+
function ua(e) {
|
|
5334
5337
|
const r = (e == null ? void 0 : e.exportName) ?? "burneTheme", o = Me(Di(), 0);
|
|
5335
5338
|
return [
|
|
5336
5339
|
"/**",
|
|
@@ -5353,7 +5356,7 @@ function ca(e) {
|
|
|
5353
5356
|
].join(`
|
|
5354
5357
|
`);
|
|
5355
5358
|
}
|
|
5356
|
-
function
|
|
5359
|
+
function da(e, r = "dark") {
|
|
5357
5360
|
const o = be(r);
|
|
5358
5361
|
return e ? {
|
|
5359
5362
|
...o,
|
|
@@ -5393,10 +5396,10 @@ function Fi(e, r, o = mr(e.theme)) {
|
|
|
5393
5396
|
function mr(e = "system") {
|
|
5394
5397
|
return e === "light" || e === "dark" ? e : typeof window < "u" && window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
5395
5398
|
}
|
|
5396
|
-
function
|
|
5399
|
+
function fa(e, r, o = "dark") {
|
|
5397
5400
|
Fi({ theme: o, tokens: e }, r, o);
|
|
5398
5401
|
}
|
|
5399
|
-
function
|
|
5402
|
+
function ga(e) {
|
|
5400
5403
|
const r = mr(e.theme), o = ko(e, r), n = Si(o), i = Eo(e.customTokens, r), t = Object.entries(i);
|
|
5401
5404
|
if (t.length === 0) return n;
|
|
5402
5405
|
const s = t.map(([a, d]) => ` ${a}: ${d};`).join(`
|
|
@@ -5432,7 +5435,7 @@ ${o}}`;
|
|
|
5432
5435
|
function Ci(e) {
|
|
5433
5436
|
return /^[A-Za-z_$][\w$]*$/.test(e) ? e : JSON.stringify(e);
|
|
5434
5437
|
}
|
|
5435
|
-
function
|
|
5438
|
+
function ma(e, r) {
|
|
5436
5439
|
const o = (r == null ? void 0 : r.exportName) ?? "burneTheme", n = Me(e, 0);
|
|
5437
5440
|
return [
|
|
5438
5441
|
"/**",
|
|
@@ -5478,7 +5481,7 @@ function Ii(e, r) {
|
|
|
5478
5481
|
const o = r ?? document.documentElement;
|
|
5479
5482
|
e === "light" ? o.dataset.theme = "light" : delete o.dataset.theme;
|
|
5480
5483
|
}
|
|
5481
|
-
function
|
|
5484
|
+
function pa({
|
|
5482
5485
|
children: e,
|
|
5483
5486
|
theme: r,
|
|
5484
5487
|
defaultTheme: o = "dark",
|
|
@@ -5508,47 +5511,47 @@ function ma({
|
|
|
5508
5511
|
);
|
|
5509
5512
|
return Hr(pr.Provider, { value: h }, e);
|
|
5510
5513
|
}
|
|
5511
|
-
function
|
|
5514
|
+
function ba() {
|
|
5512
5515
|
const e = Ne(pr);
|
|
5513
5516
|
if (!e)
|
|
5514
5517
|
throw new Error("useBurneTheme must be used within ThemeProvider or BurneUIProvider.");
|
|
5515
5518
|
return e;
|
|
5516
5519
|
}
|
|
5517
|
-
function
|
|
5520
|
+
function ha() {
|
|
5518
5521
|
return Ne(pr);
|
|
5519
5522
|
}
|
|
5520
5523
|
const br = $r(null);
|
|
5521
|
-
function
|
|
5524
|
+
function va({
|
|
5522
5525
|
children: e,
|
|
5523
5526
|
value: r
|
|
5524
5527
|
}) {
|
|
5525
5528
|
return Hr(br.Provider, { value: r }, e);
|
|
5526
5529
|
}
|
|
5527
|
-
function
|
|
5530
|
+
function xa() {
|
|
5528
5531
|
const e = Ne(br);
|
|
5529
5532
|
if (!e)
|
|
5530
5533
|
throw new Error("useBurneThemeRuntime must be used within BurneUIProvider.");
|
|
5531
5534
|
return e;
|
|
5532
5535
|
}
|
|
5533
|
-
function
|
|
5536
|
+
function ya() {
|
|
5534
5537
|
return Ne(br);
|
|
5535
5538
|
}
|
|
5536
5539
|
export {
|
|
5537
|
-
|
|
5540
|
+
ps as $,
|
|
5538
5541
|
qt as A,
|
|
5539
5542
|
Ut as B,
|
|
5540
5543
|
fr as C,
|
|
5541
5544
|
ti as D,
|
|
5542
5545
|
jt as E,
|
|
5543
5546
|
Kt as F,
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5547
|
+
$s as G,
|
|
5548
|
+
_s as H,
|
|
5549
|
+
Is as I,
|
|
5550
|
+
ca as J,
|
|
5551
|
+
la as K,
|
|
5549
5552
|
ii as L,
|
|
5550
5553
|
ir as M,
|
|
5551
|
-
|
|
5554
|
+
Os as N,
|
|
5552
5555
|
fo as O,
|
|
5553
5556
|
ns as P,
|
|
5554
5557
|
Di as Q,
|
|
@@ -5557,129 +5560,130 @@ export {
|
|
|
5557
5560
|
ce as T,
|
|
5558
5561
|
gr as U,
|
|
5559
5562
|
Wn as V,
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
+
ma as W,
|
|
5564
|
+
ga as X,
|
|
5565
|
+
ua as Y,
|
|
5563
5566
|
Si as Z,
|
|
5564
|
-
|
|
5567
|
+
Qs as _,
|
|
5565
5568
|
le as a,
|
|
5566
|
-
|
|
5569
|
+
ie as a$,
|
|
5567
5570
|
ae as a0,
|
|
5568
5571
|
ar as a1,
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5572
|
+
ds as a2,
|
|
5573
|
+
A as a3,
|
|
5574
|
+
da as a4,
|
|
5575
|
+
aa as a5,
|
|
5576
|
+
Be as a6,
|
|
5577
|
+
ia as a7,
|
|
5578
|
+
us as a8,
|
|
5579
|
+
Ar as a9,
|
|
5577
5580
|
mt as aA,
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5581
|
+
ze as aB,
|
|
5582
|
+
xs as aC,
|
|
5583
|
+
Ui as aD,
|
|
5584
|
+
Gs as aE,
|
|
5585
|
+
Bs as aF,
|
|
5586
|
+
Ns as aG,
|
|
5587
|
+
ws as aH,
|
|
5588
|
+
Ms as aI,
|
|
5589
|
+
Ps as aJ,
|
|
5590
|
+
As as aK,
|
|
5591
|
+
zs as aL,
|
|
5592
|
+
Hs as aM,
|
|
5593
|
+
Rs as aN,
|
|
5594
|
+
ks as aO,
|
|
5595
|
+
U as aP,
|
|
5596
|
+
uo as aQ,
|
|
5597
|
+
Zi as aR,
|
|
5598
|
+
Ls as aS,
|
|
5599
|
+
Ts as aT,
|
|
5597
5600
|
Es as aU,
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5601
|
+
Ds as aV,
|
|
5602
|
+
Ws as aW,
|
|
5603
|
+
ys as aX,
|
|
5604
|
+
Ss as aY,
|
|
5602
5605
|
Fs as aZ,
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5606
|
+
Cs as a_,
|
|
5607
|
+
Eo as aa,
|
|
5608
|
+
mr as ab,
|
|
5609
|
+
ko as ac,
|
|
5610
|
+
xo as ad,
|
|
5611
|
+
pe as ae,
|
|
5612
|
+
He as af,
|
|
5613
|
+
cs as ag,
|
|
5614
|
+
Kn as ah,
|
|
5615
|
+
or as ai,
|
|
5616
|
+
P as aj,
|
|
5617
|
+
Ti as ak,
|
|
5615
5618
|
xa as al,
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5619
|
+
ya as am,
|
|
5620
|
+
mo as an,
|
|
5621
|
+
ts as ao,
|
|
5622
|
+
oa as ap,
|
|
5623
|
+
nt as aq,
|
|
5624
|
+
bs as ar,
|
|
5625
|
+
Gi as as,
|
|
5626
|
+
bt as at,
|
|
5627
|
+
hs as au,
|
|
5628
|
+
S as av,
|
|
5629
|
+
x as aw,
|
|
5630
|
+
G as ax,
|
|
5631
|
+
Ge as ay,
|
|
5632
|
+
vo as az,
|
|
5630
5633
|
os as b,
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5634
|
+
Tt as b0,
|
|
5635
|
+
bo as b1,
|
|
5636
|
+
Yi as b2,
|
|
5637
|
+
gs as b3,
|
|
5638
|
+
De as b4,
|
|
5639
|
+
pt as b5,
|
|
5640
|
+
qi as b6,
|
|
5641
|
+
wt as b7,
|
|
5642
|
+
ji as b8,
|
|
5643
|
+
ra as b9,
|
|
5644
|
+
va as bA,
|
|
5645
|
+
jn as bB,
|
|
5646
|
+
to as bC,
|
|
5647
|
+
go as bD,
|
|
5648
|
+
as as bE,
|
|
5649
|
+
is as bF,
|
|
5650
|
+
Pi as bG,
|
|
5651
|
+
Bn as bH,
|
|
5652
|
+
ls as bI,
|
|
5653
|
+
ss as bJ,
|
|
5654
|
+
Wi as bK,
|
|
5655
|
+
Ni as bL,
|
|
5656
|
+
Bi as bM,
|
|
5657
|
+
ha as bN,
|
|
5658
|
+
Js as ba,
|
|
5659
|
+
ms as bb,
|
|
5660
|
+
Zs as bc,
|
|
5661
|
+
Vs as bd,
|
|
5662
|
+
vs as be,
|
|
5663
|
+
Xt as bf,
|
|
5660
5664
|
js as bg,
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5665
|
+
Xs as bh,
|
|
5666
|
+
Us as bi,
|
|
5667
|
+
Ks as bj,
|
|
5668
|
+
Ys as bk,
|
|
5669
|
+
Vi as bl,
|
|
5670
|
+
Hi as bm,
|
|
5671
|
+
$i as bn,
|
|
5672
|
+
rs as bo,
|
|
5673
|
+
es as bp,
|
|
5674
|
+
Xi as bq,
|
|
5675
|
+
Ji as br,
|
|
5676
|
+
Qi as bs,
|
|
5677
|
+
Ki as bt,
|
|
5678
|
+
yt as bu,
|
|
5679
|
+
vt as bv,
|
|
5680
|
+
ht as bw,
|
|
5681
|
+
To as bx,
|
|
5678
5682
|
pa as by,
|
|
5679
|
-
|
|
5683
|
+
ba as bz,
|
|
5680
5684
|
li as c,
|
|
5681
5685
|
ci as d,
|
|
5682
|
-
|
|
5686
|
+
ea as e,
|
|
5683
5687
|
sr as f,
|
|
5684
5688
|
qn as g,
|
|
5685
5689
|
Nn as h,
|
|
@@ -5688,17 +5692,17 @@ export {
|
|
|
5688
5692
|
ur as k,
|
|
5689
5693
|
Cn as l,
|
|
5690
5694
|
Mi as m,
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5695
|
+
sa as n,
|
|
5696
|
+
na as o,
|
|
5697
|
+
ta as p,
|
|
5694
5698
|
Le as q,
|
|
5695
|
-
|
|
5699
|
+
fs as r,
|
|
5696
5700
|
Fi as s,
|
|
5697
5701
|
Ei as t,
|
|
5698
5702
|
ao as u,
|
|
5699
5703
|
Ii as v,
|
|
5700
5704
|
wi as w,
|
|
5701
|
-
|
|
5702
|
-
|
|
5705
|
+
fa as x,
|
|
5706
|
+
qs as y,
|
|
5703
5707
|
Vt as z
|
|
5704
5708
|
};
|