burne-ui 1.6.2 → 1.6.4
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/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +2 -2
- package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +4 -1
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +11 -1
- package/dist/components/composite/AlertDialog/useAlertDialogRootState.d.ts +1 -1
- package/dist/components/composite/Form/Form.d.ts +1 -0
- package/dist/components/composite/Form/formParts.d.ts +17 -30
- package/dist/components/composite/Form/formTypes.d.ts +13 -5
- package/dist/components/composite/Form/index.d.ts +18 -8
- package/dist/components/core/Button/Button.d.ts +4 -2
- package/dist/components/core/Button/buttonTypes.d.ts +1 -0
- package/dist/components/core/Button/index.d.ts +1 -0
- package/dist/components/core/Calendar/Calendar.d.ts +2 -3
- package/dist/components/core/Calendar/calendarParts.d.ts +13 -1
- package/dist/components/core/Calendar/calendarStyles.d.ts +1 -0
- package/dist/components/core/Calendar/calendarTypes.d.ts +41 -4
- package/dist/components/core/Calendar/index.d.ts +13 -1
- package/dist/components/core/ColorPicker/ColorPicker.d.ts +3 -3
- package/dist/components/core/ColorPicker/colorPickerParts.d.ts +11 -1
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +18 -16
- package/dist/components/core/ColorPicker/index.d.ts +11 -2
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +8 -5
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +16 -0
- package/dist/components/core/ComboBox/index.d.ts +8 -2
- package/dist/components/core/Dialog/Dialog.d.ts +1 -1
- package/dist/components/core/Dialog/dialogAnimations.d.ts +1 -1
- package/dist/components/core/Dialog/dialogParts.d.ts +13 -26
- package/dist/components/core/Dialog/dialogStyles.d.ts +4 -1
- package/dist/components/core/Dialog/dialogTypes.d.ts +15 -4
- package/dist/components/core/Dialog/index.d.ts +12 -7
- package/dist/components/core/Dialog/useDialogRootState.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +1 -1
- package/dist/components/core/Drawer/drawerAnimations.d.ts +1 -1
- package/dist/components/core/Drawer/drawerParts.d.ts +12 -22
- package/dist/components/core/Drawer/drawerStyles.d.ts +4 -1
- package/dist/components/core/Drawer/drawerTypes.d.ts +15 -4
- package/dist/components/core/Drawer/index.d.ts +11 -6
- package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
- package/dist/components/core/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +2 -1
- package/dist/components/core/Dropdown/dropdownParts.d.ts +10 -12
- package/dist/components/core/Dropdown/dropdownSubParts.d.ts +6 -6
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +19 -3
- package/dist/components/core/Dropdown/index.d.ts +13 -5
- package/dist/components/core/Dropdown/useDropdownRootState.d.ts +1 -1
- package/dist/components/core/Field/fieldParts.d.ts +7 -2
- package/dist/components/core/Field/index.d.ts +7 -2
- package/dist/components/core/Link/Link.d.ts +1 -11
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +2 -1
- package/dist/components/core/Link/linkParts.d.ts +1 -1
- package/dist/components/core/Link/linkTypes.d.ts +15 -5
- package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxTypes.d.ts +4 -1
- package/dist/components/core/Pagination/index.d.ts +3 -3
- package/dist/components/core/Pagination/paginationParts.d.ts +14 -18
- package/dist/components/core/Pagination/paginationTypes.d.ts +2 -3
- package/dist/components/core/Popover/Popover.d.ts +1 -1
- package/dist/components/core/Popover/index.d.ts +6 -5
- package/dist/components/core/Popover/popoverAnimations.d.ts +1 -1
- package/dist/components/core/Popover/popoverParts.d.ts +5 -16
- package/dist/components/core/Popover/popoverTypes.d.ts +9 -0
- package/dist/components/core/Popover/usePopoverRootState.d.ts +1 -1
- package/dist/components/core/Select/index.d.ts +8 -2
- package/dist/components/core/Select/selectParts.d.ts +7 -5
- package/dist/components/core/Select/selectTypes.d.ts +16 -0
- package/dist/components/core/Slider/index.d.ts +8 -3
- package/dist/components/core/Slider/sliderThumbParts.d.ts +21 -2
- package/dist/components/core/Slider/sliderTrackParts.d.ts +8 -9
- package/dist/components/core/Slider/sliderTypes.d.ts +8 -5
- package/dist/components/core/Slider/useSliderTrackState.d.ts +1406 -1
- package/dist/components/core/Switch/useSwitchRootState.d.ts +3 -3
- package/dist/components/core/Table/Table.d.ts +3 -3
- package/dist/components/core/Table/index.d.ts +4 -1
- package/dist/components/core/Table/tableAPI.d.ts +3 -0
- package/dist/components/core/Table/tableAnimations.d.ts +3 -1
- package/dist/components/core/Table/tableParts.d.ts +4 -1
- package/dist/components/core/Table/tableStyles.d.ts +4 -0
- package/dist/components/core/Table/tableTypes.d.ts +10 -0
- package/dist/components/core/TimeField/TimeField.d.ts +1 -1
- package/dist/components/core/TimeField/index.d.ts +1 -0
- package/dist/components/core/TimeField/timeFieldParts.d.ts +1 -0
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +5 -1
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +6 -0
- package/dist/components/core/Toast/index.d.ts +7 -7
- package/dist/components/core/Toast/toastParts.d.ts +6 -24
- package/dist/components/core/Toast/toastProvider.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +2 -0
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/core/ToggleButton/index.d.ts +1 -1
- package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/core/Tooltip/index.d.ts +1 -0
- package/dist/components/core/Tooltip/tooltipParts.d.ts +1 -0
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +6 -0
- package/dist/components/core/Tooltip/useTooltipRootState.d.ts +1 -1
- package/dist/components/core/utils/mergeAsChildProps.d.ts +21 -0
- package/dist/components/core/utils/portalContainer.d.ts +27 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12742 -11953
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/theme/themeConfig.d.ts +1 -0
- package/dist/themeRuntimeContext-Cn9YgR1F.cjs +50 -0
- package/dist/{themeRuntimeContext-DyytHHaS.js → themeRuntimeContext-rM9wHr74.js} +33 -23
- package/dist/ui.css +53 -0
- package/package.json +1 -1
- package/dist/themeRuntimeContext-DpKqCfd0.cjs +0 -50
|
@@ -5961,8 +5961,9 @@ function rs(n) {
|
|
|
5961
5961
|
}
|
|
5962
5962
|
Dr(n);
|
|
5963
5963
|
}
|
|
5964
|
-
function fc(n
|
|
5965
|
-
typeof document > "u"
|
|
5964
|
+
function fc(n) {
|
|
5965
|
+
if (typeof document > "u") return;
|
|
5966
|
+
document.querySelectorAll(`[${_n}]`).forEach(rs);
|
|
5966
5967
|
}
|
|
5967
5968
|
function dc() {
|
|
5968
5969
|
Zr || typeof document > "u" || (Zr = new MutationObserver((n) => {
|
|
@@ -7024,10 +7025,12 @@ const pu = [
|
|
|
7024
7025
|
]),
|
|
7025
7026
|
...Object.values(Yn)
|
|
7026
7027
|
];
|
|
7027
|
-
function Xf(n
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7028
|
+
function Xf(n) {
|
|
7029
|
+
if (typeof document > "u") return;
|
|
7030
|
+
const e = n ?? document.documentElement;
|
|
7031
|
+
for (const t of pu)
|
|
7032
|
+
e.style.removeProperty(t);
|
|
7033
|
+
delete e.dataset.theme;
|
|
7031
7034
|
}
|
|
7032
7035
|
let Li = "";
|
|
7033
7036
|
function gu(n) {
|
|
@@ -7106,10 +7109,12 @@ function gu(n) {
|
|
|
7106
7109
|
enableLoadingDots: n.enableLoadingDots
|
|
7107
7110
|
}));
|
|
7108
7111
|
}
|
|
7109
|
-
function mu(n, e
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7112
|
+
function mu(n, e) {
|
|
7113
|
+
if (typeof document > "u") return;
|
|
7114
|
+
const t = e ?? document.documentElement;
|
|
7115
|
+
n.theme === "light" ? t.dataset.theme = "light" : delete t.dataset.theme, t.style.setProperty("--space", `${n.space}rem`), t.style.setProperty("--size", `${n.size}rem`), t.style.setProperty("--radius", `${n.radius}rem`), t.style.setProperty("--border-width", n.borderWidth === 0 ? "0px" : `${n.borderWidth}px`), t.style.setProperty("--font-family-sans", n.fontFamily), t.style.setProperty("--font-family-mono", n.fontFamilyMono), hu(t, n.fontWeights), gu(n), du(t, n.textScale), fu(t, n.theme, n.shadowStrength, n.shadowSize), t.style.setProperty("--toast-scrim-size", String(n.toastScrimSize)), t.style.setProperty("--toast-scrim-density", String(n.toastScrimDensity));
|
|
7116
|
+
for (const [r, i] of Object.entries(Yn))
|
|
7117
|
+
t.style.setProperty(i, n.colors[r]);
|
|
7113
7118
|
}
|
|
7114
7119
|
function _u(n) {
|
|
7115
7120
|
const e = [
|
|
@@ -7252,11 +7257,13 @@ function yu(n, e, t) {
|
|
|
7252
7257
|
}), e.style.setProperty(s, a);
|
|
7253
7258
|
Or.set(e, o);
|
|
7254
7259
|
}
|
|
7255
|
-
function jf(n
|
|
7256
|
-
var
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
+
function jf(n) {
|
|
7261
|
+
var t;
|
|
7262
|
+
if (typeof document > "u") return;
|
|
7263
|
+
const e = n ?? document.documentElement;
|
|
7264
|
+
(t = Or.get(e)) == null || t.forEach((r, i) => {
|
|
7265
|
+
r.value ? e.style.setProperty(i, r.value, r.priority) : e.style.removeProperty(i);
|
|
7266
|
+
}), Or.delete(e);
|
|
7260
7267
|
}
|
|
7261
7268
|
function xu(n) {
|
|
7262
7269
|
return {
|
|
@@ -7313,18 +7320,19 @@ function fs(n) {
|
|
|
7313
7320
|
r !== void 0 && (e[t] = r);
|
|
7314
7321
|
return e;
|
|
7315
7322
|
}
|
|
7316
|
-
function wu(n, e
|
|
7317
|
-
|
|
7323
|
+
function wu(n, e, t = Zn(n.theme)) {
|
|
7324
|
+
if (typeof document > "u") return;
|
|
7325
|
+
const r = e ?? document.documentElement, i = cs(n, t);
|
|
7318
7326
|
if (n.motion) {
|
|
7319
|
-
const
|
|
7320
|
-
|
|
7327
|
+
const o = n.motion;
|
|
7328
|
+
o.interactiveDuration !== void 0 && (i.interactiveDuration = o.interactiveDuration), o.interactiveEase !== void 0 && (i.interactiveEase = o.interactiveEase), o.hoverLiftEase !== void 0 && (i.hoverLiftEase = o.hoverLiftEase), o.tooltipDuration !== void 0 && (i.tooltipDuration = o.tooltipDuration), o.switchThumbDuration !== void 0 && (i.switchThumbDuration = o.switchThumbDuration), o.switchThumbEase !== void 0 && (i.switchThumbEase = o.switchThumbEase), o.selectionFillDuration !== void 0 && (i.selectionFillDuration = o.selectionFillDuration), o.selectionFillEase !== void 0 && (i.selectionFillEase = o.selectionFillEase), o.hoverLiftScale !== void 0 && (i.hoverLiftScale = o.hoverLiftScale), o.badgeAnchorHoverLiftScale !== void 0 && (i.badgeAnchorHoverLiftScale = o.badgeAnchorHoverLiftScale), o.pressSqueezeScale !== void 0 && (i.pressSqueezeMid = o.pressSqueezeScale[1]), o.rippleDefaultDuration !== void 0 && (i.rippleDefaultDuration = o.rippleDefaultDuration), o.rippleDefaultOpacityFrom !== void 0 && (i.rippleDefaultOpacityFrom = o.rippleDefaultOpacityFrom), o.rippleExpandableDuration !== void 0 && (i.rippleExpandableDuration = o.rippleExpandableDuration), o.rippleExpandableOpacityFrom !== void 0 && (i.rippleExpandableOpacityFrom = o.rippleExpandableOpacityFrom), o.rippleEaseCss !== void 0 && (i.rippleEaseCss = o.rippleEaseCss), o.feedbackExpandDuration !== void 0 && (i.feedbackExpandDuration = o.feedbackExpandDuration), o.expandDuration !== void 0 && (i.expandDuration = o.expandDuration), o.expandOpenEase !== void 0 && (i.expandOpenEase = o.expandOpenEase), o.progressFillDuration !== void 0 && (i.progressFillDuration = o.progressFillDuration), o.progressFillEase !== void 0 && (i.progressFillEase = o.progressFillEase), o.loadingDotsDuration !== void 0 && (i.loadingDotsDuration = o.loadingDotsDuration), o.loadingDotsEaseUp !== void 0 && (i.loadingDotsEaseUp = o.loadingDotsEaseUp), o.loadingDotsEaseDown !== void 0 && (i.loadingDotsEaseDown = o.loadingDotsEaseDown), o.enableHoverLift !== void 0 && (i.enableHoverLift = o.enableHoverLift), o.enablePressSqueeze !== void 0 && (i.enablePressSqueeze = o.enablePressSqueeze), o.enableToggleButtonFill !== void 0 && (i.enableToggleButtonFill = o.enableToggleButtonFill), o.enableRipple !== void 0 && (i.enableRipple = o.enableRipple), o.enableExpandable !== void 0 && (i.enableExpandable = o.enableExpandable), o.enableToastStack !== void 0 && (i.enableToastStack = o.enableToastStack), o.enableAsyncButtonCrossfade !== void 0 && (i.enableAsyncButtonCrossfade = o.enableAsyncButtonCrossfade), o.enableContentFade !== void 0 && (i.enableContentFade = o.enableContentFade), o.enableFeedbackExpand !== void 0 && (i.enableFeedbackExpand = o.enableFeedbackExpand), o.enableProgressFill !== void 0 && (i.enableProgressFill = o.enableProgressFill), o.enableLoadingDots !== void 0 && (i.enableLoadingDots = o.enableLoadingDots);
|
|
7321
7329
|
}
|
|
7322
|
-
mu(
|
|
7330
|
+
mu(i, r), yu(n.customTokens, r, t);
|
|
7323
7331
|
}
|
|
7324
7332
|
function Zn(n = "system") {
|
|
7325
7333
|
return n === "light" || n === "dark" ? n : typeof window < "u" && window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
7326
7334
|
}
|
|
7327
|
-
function Qf(n, e
|
|
7335
|
+
function Qf(n, e, t = "dark") {
|
|
7328
7336
|
wu({ theme: t, tokens: n }, e, t);
|
|
7329
7337
|
}
|
|
7330
7338
|
function Jf(n) {
|
|
@@ -7404,8 +7412,10 @@ function Eu(n, e) {
|
|
|
7404
7412
|
} catch {
|
|
7405
7413
|
}
|
|
7406
7414
|
}
|
|
7407
|
-
function Cu(n, e
|
|
7408
|
-
|
|
7415
|
+
function Cu(n, e) {
|
|
7416
|
+
if (typeof document > "u") return;
|
|
7417
|
+
const t = e ?? document.documentElement;
|
|
7418
|
+
n === "light" ? t.dataset.theme = "light" : delete t.dataset.theme;
|
|
7409
7419
|
}
|
|
7410
7420
|
function td({
|
|
7411
7421
|
children: n,
|
package/dist/ui.css
CHANGED
|
@@ -1377,6 +1377,17 @@
|
|
|
1377
1377
|
overflow: hidden;
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
|
+
.not-sr-only {
|
|
1381
|
+
clip-path: none;
|
|
1382
|
+
white-space: normal;
|
|
1383
|
+
width: auto;
|
|
1384
|
+
height: auto;
|
|
1385
|
+
margin: 0;
|
|
1386
|
+
padding: 0;
|
|
1387
|
+
position: static;
|
|
1388
|
+
overflow: visible;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1380
1391
|
.absolute {
|
|
1381
1392
|
position: absolute;
|
|
1382
1393
|
}
|
|
@@ -1445,6 +1456,10 @@
|
|
|
1445
1456
|
top: calc(var(--spacing) * 12);
|
|
1446
1457
|
}
|
|
1447
1458
|
|
|
1459
|
+
.top-mid {
|
|
1460
|
+
top: var(--space-mid);
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1448
1463
|
.top-plus {
|
|
1449
1464
|
top: var(--space-plus);
|
|
1450
1465
|
}
|
|
@@ -1521,6 +1536,10 @@
|
|
|
1521
1536
|
left: calc(var(--spacing) * 4);
|
|
1522
1537
|
}
|
|
1523
1538
|
|
|
1539
|
+
.left-mid {
|
|
1540
|
+
left: var(--space-mid);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1524
1543
|
.isolate {
|
|
1525
1544
|
isolation: isolate;
|
|
1526
1545
|
}
|
|
@@ -1731,6 +1750,10 @@
|
|
|
1731
1750
|
margin-top: var(--space-xsmall);
|
|
1732
1751
|
}
|
|
1733
1752
|
|
|
1753
|
+
.mb-base {
|
|
1754
|
+
margin-bottom: var(--space-base);
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1734
1757
|
.mb-large {
|
|
1735
1758
|
margin-bottom: var(--space-large);
|
|
1736
1759
|
}
|
|
@@ -2115,6 +2138,10 @@
|
|
|
2115
2138
|
height: calc(var(--spacing) * 64);
|
|
2116
2139
|
}
|
|
2117
2140
|
|
|
2141
|
+
.h-72 {
|
|
2142
|
+
height: calc(var(--spacing) * 72);
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2118
2145
|
.h-\[1\.65em\] {
|
|
2119
2146
|
height: 1.65em;
|
|
2120
2147
|
}
|
|
@@ -3278,6 +3305,10 @@
|
|
|
3278
3305
|
gap: calc(var(--spacing) * 2);
|
|
3279
3306
|
}
|
|
3280
3307
|
|
|
3308
|
+
.gap-\[2px\] {
|
|
3309
|
+
gap: 2px;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3281
3312
|
.gap-\[calc\(var\(--space-xsmall\)\*0\.75\)\] {
|
|
3282
3313
|
gap: calc(var(--space-xsmall) * .75);
|
|
3283
3314
|
}
|
|
@@ -4109,6 +4140,10 @@
|
|
|
4109
4140
|
background-color: var(--color-primary);
|
|
4110
4141
|
}
|
|
4111
4142
|
|
|
4143
|
+
.bg-primary-foreground {
|
|
4144
|
+
background-color: var(--color-primary-foreground);
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4112
4147
|
.bg-primary-tint {
|
|
4113
4148
|
background-color: var(--color-primary-tint);
|
|
4114
4149
|
}
|
|
@@ -4584,6 +4619,10 @@
|
|
|
4584
4619
|
padding-inline: var(--space-plus);
|
|
4585
4620
|
}
|
|
4586
4621
|
|
|
4622
|
+
.px-px {
|
|
4623
|
+
padding-inline: 1px;
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4587
4626
|
.px-small {
|
|
4588
4627
|
padding-inline: var(--space-small);
|
|
4589
4628
|
}
|
|
@@ -4624,6 +4663,10 @@
|
|
|
4624
4663
|
padding-block: var(--space-xsmall);
|
|
4625
4664
|
}
|
|
4626
4665
|
|
|
4666
|
+
.ps-mid {
|
|
4667
|
+
padding-inline-start: var(--space-mid);
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4627
4670
|
.pt-0 {
|
|
4628
4671
|
padding-top: calc(var(--spacing) * 0);
|
|
4629
4672
|
}
|
|
@@ -5218,6 +5261,10 @@
|
|
|
5218
5261
|
opacity: 0;
|
|
5219
5262
|
}
|
|
5220
5263
|
|
|
5264
|
+
.opacity-30 {
|
|
5265
|
+
opacity: .3;
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5221
5268
|
.opacity-35 {
|
|
5222
5269
|
opacity: .35;
|
|
5223
5270
|
}
|
|
@@ -5985,6 +6032,12 @@
|
|
|
5985
6032
|
opacity: 1;
|
|
5986
6033
|
}
|
|
5987
6034
|
|
|
6035
|
+
.hover\:shadow-token-mid:hover {
|
|
6036
|
+
--tw-shadow: var(--shadow-mid);
|
|
6037
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
6038
|
+
box-shadow: var(--shadow-mid);
|
|
6039
|
+
}
|
|
6040
|
+
|
|
5988
6041
|
.hover\:brightness-\[0\.97\]:hover {
|
|
5989
6042
|
--tw-brightness: brightness(.97);
|
|
5990
6043
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|