@deepfuture/dui-cdn 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dui.js +6 -20
- package/dui.min.js +0 -14
- package/package.json +1 -1
package/dui.js
CHANGED
|
@@ -1334,7 +1334,7 @@ function c7({ context: c9, subscribe: e11 }) {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
|
-
// ../dui-primitives/packages/
|
|
1337
|
+
// ../dui-primitives/packages/primitives/src/core/base.ts
|
|
1338
1338
|
var base = i5`
|
|
1339
1339
|
* {
|
|
1340
1340
|
box-sizing: border-box;
|
|
@@ -1427,7 +1427,7 @@ var base = i5`
|
|
|
1427
1427
|
}
|
|
1428
1428
|
`;
|
|
1429
1429
|
|
|
1430
|
-
// ../dui-primitives/packages/
|
|
1430
|
+
// ../dui-primitives/packages/primitives/src/core/event.ts
|
|
1431
1431
|
var customEvent = (type, options = {}) => (detail) => new CustomEvent(type, { ...options, detail });
|
|
1432
1432
|
|
|
1433
1433
|
// ../dui-primitives/packages/primitives/src/accordion/accordion-context.ts
|
|
@@ -2649,7 +2649,6 @@ var styles4 = i`
|
|
|
2649
2649
|
font-family: var(--font-sans);
|
|
2650
2650
|
font-weight: var(--font-weight-semibold);
|
|
2651
2651
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
2652
|
-
text-box: trim-both cap alphabetic;
|
|
2653
2652
|
height: var(--component-height-md);
|
|
2654
2653
|
border-radius: var(--radius-sm);
|
|
2655
2654
|
transition-property: background, box-shadow, filter, transform;
|
|
@@ -2863,7 +2862,7 @@ var DuiAlertDialogTriggerPrimitive = class extends i8 {
|
|
|
2863
2862
|
}
|
|
2864
2863
|
};
|
|
2865
2864
|
|
|
2866
|
-
// ../dui-primitives/packages/
|
|
2865
|
+
// ../dui-primitives/packages/primitives/src/core/dom.ts
|
|
2867
2866
|
var getRootDocument = (node, { composed = true } = {}) => {
|
|
2868
2867
|
const root = node.getRootNode({ composed });
|
|
2869
2868
|
if (root instanceof DocumentFragment) {
|
|
@@ -3555,7 +3554,6 @@ var styles10 = i`
|
|
|
3555
3554
|
font-family: var(--font-sans);
|
|
3556
3555
|
font-size: var(--text-xs); letter-spacing: var(--letter-spacing-normal); line-height: var(--line-height-snug);
|
|
3557
3556
|
font-weight: var(--font-weight-medium);
|
|
3558
|
-
text-box: trim-both cap alphabetic;
|
|
3559
3557
|
white-space: nowrap;
|
|
3560
3558
|
border: var(--border-width-thin) solid var(--badge-border);
|
|
3561
3559
|
}
|
|
@@ -4056,7 +4054,6 @@ var styles24 = i`
|
|
|
4056
4054
|
font-size: var(--button-font-size);
|
|
4057
4055
|
letter-spacing: var(--letter-spacing-tight);
|
|
4058
4056
|
line-height: var(--line-height-snug);
|
|
4059
|
-
text-box: trim-both cap alphabetic;
|
|
4060
4057
|
white-space: nowrap;
|
|
4061
4058
|
transition-property: background, box-shadow, filter, transform, border-color, text-decoration-color;
|
|
4062
4059
|
transition-duration: var(--duration-fast);
|
|
@@ -5511,7 +5508,6 @@ var styles36 = i`
|
|
|
5511
5508
|
font-family: var(--font-sans);
|
|
5512
5509
|
font-weight: var(--font-weight-semibold);
|
|
5513
5510
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
5514
|
-
text-box: trim-both cap alphabetic;
|
|
5515
5511
|
height: var(--component-height-md);
|
|
5516
5512
|
border-radius: var(--radius-sm);
|
|
5517
5513
|
transition-property: background, box-shadow, filter, transform;
|
|
@@ -5720,7 +5716,7 @@ var l5 = e10(class extends i10 {
|
|
|
5720
5716
|
}
|
|
5721
5717
|
});
|
|
5722
5718
|
|
|
5723
|
-
// ../dui-primitives/packages/
|
|
5719
|
+
// ../dui-primitives/packages/primitives/src/core/popup-coordinator.ts
|
|
5724
5720
|
var openPopups = /* @__PURE__ */ new Map();
|
|
5725
5721
|
var notifyPopupOpening = (instance, closeFn) => {
|
|
5726
5722
|
for (const [key, close] of openPopups) {
|
|
@@ -7158,7 +7154,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
7158
7154
|
});
|
|
7159
7155
|
};
|
|
7160
7156
|
|
|
7161
|
-
// ../dui-primitives/packages/
|
|
7157
|
+
// ../dui-primitives/packages/primitives/src/core/floating-popup-utils.ts
|
|
7162
7158
|
var waitForAnimationFrame = () => new Promise(
|
|
7163
7159
|
(r10) => requestAnimationFrame(() => requestAnimationFrame(() => r10()))
|
|
7164
7160
|
);
|
|
@@ -7266,7 +7262,7 @@ var startFixedAutoUpdate = (anchor, floating, options = {}) => {
|
|
|
7266
7262
|
});
|
|
7267
7263
|
};
|
|
7268
7264
|
|
|
7269
|
-
// ../dui-primitives/packages/
|
|
7265
|
+
// ../dui-primitives/packages/primitives/src/core/floating-portal-controller.ts
|
|
7270
7266
|
var FloatingPortalController = class {
|
|
7271
7267
|
#host;
|
|
7272
7268
|
#getAnchor;
|
|
@@ -8879,7 +8875,6 @@ var styles48 = i`
|
|
|
8879
8875
|
.Heading {
|
|
8880
8876
|
padding: var(--space-1_5) var(--space-2);
|
|
8881
8877
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
8882
|
-
text-box: trim-both cap alphabetic;
|
|
8883
8878
|
font-weight: var(--font-weight-medium);
|
|
8884
8879
|
color: var(--text-2);
|
|
8885
8880
|
}
|
|
@@ -8925,7 +8920,6 @@ var styles50 = i`
|
|
|
8925
8920
|
border-radius: var(--radius-sm);
|
|
8926
8921
|
padding: var(--space-1_5) var(--space-2);
|
|
8927
8922
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
8928
|
-
text-box: trim-both cap alphabetic;
|
|
8929
8923
|
font-weight: var(--font-weight-medium);
|
|
8930
8924
|
}
|
|
8931
8925
|
|
|
@@ -9391,7 +9385,6 @@ var styles54 = i`
|
|
|
9391
9385
|
padding: 0 var(--space-3);
|
|
9392
9386
|
font-weight: var(--font-weight-medium);
|
|
9393
9387
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
9394
|
-
text-box: trim-both cap alphabetic;
|
|
9395
9388
|
color: var(--text-2);
|
|
9396
9389
|
background: var(--surface-1);
|
|
9397
9390
|
border-bottom: var(--border-width-thin) solid var(--border);
|
|
@@ -11232,7 +11225,6 @@ var styles67 = i`
|
|
|
11232
11225
|
border-radius: var(--radius-sm);
|
|
11233
11226
|
font-size: var(--text-sm);
|
|
11234
11227
|
line-height: var(--text-sm--line-height);
|
|
11235
|
-
text-box: trim-both cap alphabetic;
|
|
11236
11228
|
font-family: var(--font-sans);
|
|
11237
11229
|
color: var(--text-1);
|
|
11238
11230
|
}
|
|
@@ -15362,7 +15354,6 @@ var styles106 = i`
|
|
|
15362
15354
|
color: var(--sidebar-muted-fg);
|
|
15363
15355
|
font-family: var(--font-sans);
|
|
15364
15356
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
15365
|
-
text-box: trim-both cap alphabetic;
|
|
15366
15357
|
font-weight: var(--font-weight-medium);
|
|
15367
15358
|
}
|
|
15368
15359
|
|
|
@@ -15460,7 +15451,6 @@ var styles110 = i`
|
|
|
15460
15451
|
font-weight: var(--font-weight-regular);
|
|
15461
15452
|
letter-spacing: var(--letter-spacing-tight);
|
|
15462
15453
|
line-height: var(--line-height-snug);
|
|
15463
|
-
text-box: trim-both cap alphabetic;
|
|
15464
15454
|
--icon-size: var(--smb-icon-size);
|
|
15465
15455
|
--icon-color: var(--sidebar-muted-fg);
|
|
15466
15456
|
}
|
|
@@ -16580,7 +16570,6 @@ var styles119 = i`
|
|
|
16580
16570
|
font-size: var(--sb-font-size);
|
|
16581
16571
|
letter-spacing: var(--letter-spacing-tight);
|
|
16582
16572
|
line-height: var(--line-height-snug);
|
|
16583
|
-
text-box: trim-both cap alphabetic;
|
|
16584
16573
|
white-space: nowrap;
|
|
16585
16574
|
overflow: hidden;
|
|
16586
16575
|
}
|
|
@@ -17685,7 +17674,6 @@ var styles129 = i`
|
|
|
17685
17674
|
color: var(--text-2);
|
|
17686
17675
|
font-size: var(--text-sm); line-height: var(--line-height-snug);
|
|
17687
17676
|
font-weight: var(--font-weight-medium);
|
|
17688
|
-
text-box: trim-both cap alphabetic;
|
|
17689
17677
|
padding-inline: var(--space-2);
|
|
17690
17678
|
height: var(--component-height-md);
|
|
17691
17679
|
transition-property: color, box-shadow, background, filter, transform;
|
|
@@ -18349,7 +18337,6 @@ var styles138 = i`
|
|
|
18349
18337
|
font-size: var(--toggle-font-size);
|
|
18350
18338
|
letter-spacing: var(--letter-spacing-tight);
|
|
18351
18339
|
line-height: var(--line-height-snug);
|
|
18352
|
-
text-box: trim-both cap alphabetic;
|
|
18353
18340
|
white-space: nowrap;
|
|
18354
18341
|
color: var(--text-2);
|
|
18355
18342
|
background: oklch(from var(--foreground) l c h / calc(var(--_select) + var(--_interact)));
|
|
@@ -18901,7 +18888,6 @@ var styles143 = i`
|
|
|
18901
18888
|
color: var(--background);
|
|
18902
18889
|
font-family: var(--font-sans);
|
|
18903
18890
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
18904
|
-
text-box: trim-both cap alphabetic;
|
|
18905
18891
|
box-shadow: var(--shadow-sm);
|
|
18906
18892
|
max-width: var(--space-80);
|
|
18907
18893
|
transition-duration: var(--duration-fastest);
|
package/dui.min.js
CHANGED
|
@@ -1221,7 +1221,6 @@ p, li, blockquote, dt, dd {
|
|
|
1221
1221
|
font-family: var(--font-sans);
|
|
1222
1222
|
font-weight: var(--font-weight-semibold);
|
|
1223
1223
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
1224
|
-
text-box: trim-both cap alphabetic;
|
|
1225
1224
|
height: var(--component-height-md);
|
|
1226
1225
|
border-radius: var(--radius-sm);
|
|
1227
1226
|
transition-property: background, box-shadow, filter, transform;
|
|
@@ -1609,7 +1608,6 @@ p, li, blockquote, dt, dd {
|
|
|
1609
1608
|
font-family: var(--font-sans);
|
|
1610
1609
|
font-size: var(--text-xs); letter-spacing: var(--letter-spacing-normal); line-height: var(--line-height-snug);
|
|
1611
1610
|
font-weight: var(--font-weight-medium);
|
|
1612
|
-
text-box: trim-both cap alphabetic;
|
|
1613
1611
|
white-space: nowrap;
|
|
1614
1612
|
border: var(--border-width-thin) solid var(--badge-border);
|
|
1615
1613
|
}
|
|
@@ -1935,7 +1933,6 @@ p, li, blockquote, dt, dd {
|
|
|
1935
1933
|
font-size: var(--button-font-size);
|
|
1936
1934
|
letter-spacing: var(--letter-spacing-tight);
|
|
1937
1935
|
line-height: var(--line-height-snug);
|
|
1938
|
-
text-box: trim-both cap alphabetic;
|
|
1939
1936
|
white-space: nowrap;
|
|
1940
1937
|
transition-property: background, box-shadow, filter, transform, border-color, text-decoration-color;
|
|
1941
1938
|
transition-duration: var(--duration-fast);
|
|
@@ -2635,7 +2632,6 @@ p, li, blockquote, dt, dd {
|
|
|
2635
2632
|
font-family: var(--font-sans);
|
|
2636
2633
|
font-weight: var(--font-weight-semibold);
|
|
2637
2634
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
2638
|
-
text-box: trim-both cap alphabetic;
|
|
2639
2635
|
height: var(--component-height-md);
|
|
2640
2636
|
border-radius: var(--radius-sm);
|
|
2641
2637
|
transition-property: background, box-shadow, filter, transform;
|
|
@@ -3231,7 +3227,6 @@ p, li, blockquote, dt, dd {
|
|
|
3231
3227
|
.Heading {
|
|
3232
3228
|
padding: var(--space-1_5) var(--space-2);
|
|
3233
3229
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
3234
|
-
text-box: trim-both cap alphabetic;
|
|
3235
3230
|
font-weight: var(--font-weight-medium);
|
|
3236
3231
|
color: var(--text-2);
|
|
3237
3232
|
}
|
|
@@ -3263,7 +3258,6 @@ p, li, blockquote, dt, dd {
|
|
|
3263
3258
|
border-radius: var(--radius-sm);
|
|
3264
3259
|
padding: var(--space-1_5) var(--space-2);
|
|
3265
3260
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
3266
|
-
text-box: trim-both cap alphabetic;
|
|
3267
3261
|
font-weight: var(--font-weight-medium);
|
|
3268
3262
|
}
|
|
3269
3263
|
|
|
@@ -3514,7 +3508,6 @@ p, li, blockquote, dt, dd {
|
|
|
3514
3508
|
padding: 0 var(--space-3);
|
|
3515
3509
|
font-weight: var(--font-weight-medium);
|
|
3516
3510
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
3517
|
-
text-box: trim-both cap alphabetic;
|
|
3518
3511
|
color: var(--text-2);
|
|
3519
3512
|
background: var(--surface-1);
|
|
3520
3513
|
border-bottom: var(--border-width-thin) solid var(--border);
|
|
@@ -4194,7 +4187,6 @@ p, li, blockquote, dt, dd {
|
|
|
4194
4187
|
border-radius: var(--radius-sm);
|
|
4195
4188
|
font-size: var(--text-sm);
|
|
4196
4189
|
line-height: var(--text-sm--line-height);
|
|
4197
|
-
text-box: trim-both cap alphabetic;
|
|
4198
4190
|
font-family: var(--font-sans);
|
|
4199
4191
|
color: var(--text-1);
|
|
4200
4192
|
}
|
|
@@ -5922,7 +5914,6 @@ p, li, blockquote, dt, dd {
|
|
|
5922
5914
|
color: var(--sidebar-muted-fg);
|
|
5923
5915
|
font-family: var(--font-sans);
|
|
5924
5916
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
5925
|
-
text-box: trim-both cap alphabetic;
|
|
5926
5917
|
font-weight: var(--font-weight-medium);
|
|
5927
5918
|
}
|
|
5928
5919
|
|
|
@@ -5992,7 +5983,6 @@ p, li, blockquote, dt, dd {
|
|
|
5992
5983
|
font-weight: var(--font-weight-regular);
|
|
5993
5984
|
letter-spacing: var(--letter-spacing-tight);
|
|
5994
5985
|
line-height: var(--line-height-snug);
|
|
5995
|
-
text-box: trim-both cap alphabetic;
|
|
5996
5986
|
--icon-size: var(--smb-icon-size);
|
|
5997
5987
|
--icon-color: var(--sidebar-muted-fg);
|
|
5998
5988
|
}
|
|
@@ -6653,7 +6643,6 @@ p, li, blockquote, dt, dd {
|
|
|
6653
6643
|
font-size: var(--sb-font-size);
|
|
6654
6644
|
letter-spacing: var(--letter-spacing-tight);
|
|
6655
6645
|
line-height: var(--line-height-snug);
|
|
6656
|
-
text-box: trim-both cap alphabetic;
|
|
6657
6646
|
white-space: nowrap;
|
|
6658
6647
|
overflow: hidden;
|
|
6659
6648
|
}
|
|
@@ -7228,7 +7217,6 @@ p, li, blockquote, dt, dd {
|
|
|
7228
7217
|
color: var(--text-2);
|
|
7229
7218
|
font-size: var(--text-sm); line-height: var(--line-height-snug);
|
|
7230
7219
|
font-weight: var(--font-weight-medium);
|
|
7231
|
-
text-box: trim-both cap alphabetic;
|
|
7232
7220
|
padding-inline: var(--space-2);
|
|
7233
7221
|
height: var(--component-height-md);
|
|
7234
7222
|
transition-property: color, box-shadow, background, filter, transform;
|
|
@@ -7566,7 +7554,6 @@ p, li, blockquote, dt, dd {
|
|
|
7566
7554
|
font-size: var(--toggle-font-size);
|
|
7567
7555
|
letter-spacing: var(--letter-spacing-tight);
|
|
7568
7556
|
line-height: var(--line-height-snug);
|
|
7569
|
-
text-box: trim-both cap alphabetic;
|
|
7570
7557
|
white-space: nowrap;
|
|
7571
7558
|
color: var(--text-2);
|
|
7572
7559
|
background: oklch(from var(--foreground) l c h / calc(var(--_select) + var(--_interact)));
|
|
@@ -7795,7 +7782,6 @@ p, li, blockquote, dt, dd {
|
|
|
7795
7782
|
color: var(--background);
|
|
7796
7783
|
font-family: var(--font-sans);
|
|
7797
7784
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
7798
|
-
text-box: trim-both cap alphabetic;
|
|
7799
7785
|
box-shadow: var(--shadow-sm);
|
|
7800
7786
|
max-width: var(--space-80);
|
|
7801
7787
|
transition-duration: var(--duration-fastest);
|