@deepfuture/dui-cdn 1.4.4 → 1.4.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.
Files changed (3) hide show
  1. package/dui.js +9 -30
  2. package/dui.min.js +289 -319
  3. package/package.json +1 -1
package/dui.js CHANGED
@@ -2248,36 +2248,6 @@ var tokens_default = `/* =======================================================
2248
2248
  --prose-kbd-border: var(--border-strong);
2249
2249
  }
2250
2250
 
2251
- /* =================================================================
2252
- * Base document styles
2253
- * ================================================================= */
2254
- :root {
2255
- color: var(--text-1);
2256
- font-family: var(--font-sans);
2257
- line-height: var(--line-height-normal);
2258
- -webkit-font-smoothing: antialiased;
2259
- -moz-osx-font-smoothing: grayscale;
2260
- }
2261
-
2262
- /* =================================================================
2263
- * Heading defaults
2264
- * ================================================================= */
2265
- h1 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); } /* 36 / 40 */
2266
- h2 { font-size: var(--text-3xl); line-height: var(--text-3xl--line-height); } /* 30 / 36 */
2267
- h3 { font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); } /* 24 / 32 */
2268
- h4 { font-size: var(--text-xl); line-height: var(--text-xl--line-height); } /* 20 / 28 */
2269
- h5 { font-size: var(--text-lg); line-height: var(--text-lg--line-height); } /* 18 / 28 */
2270
- h6 { font-size: var(--text-base); line-height: var(--text-base--line-height); } /* 16 / 24 */
2271
-
2272
- /* =================================================================
2273
- * Baseline grid trim \u2014 prose elements anchor visible glyph edges,
2274
- * not CSS line-box edges, to the 4px grid.
2275
- * ================================================================= */
2276
- h1, h2, h3, h4, h5, h6,
2277
- p, li, blockquote, dt, dd,
2278
- label, legend, caption, figcaption, th, td {
2279
- text-box: trim-both cap alphabetic;
2280
- }
2281
2251
  `;
2282
2252
 
2283
2253
  // packages/components/src/tokens/properties.css
@@ -12449,6 +12419,9 @@ var DuiPopoverPopupPrimitive = class extends (_a32 = i8, _showArrow_dec = [n7({
12449
12419
  styles: portalPopupStyles3,
12450
12420
  contentContainer: ".Content",
12451
12421
  forwardProperties: ["--popover-popup-padding"],
12422
+ onClose: () => {
12423
+ __privateGet(this, _ctx3).value?.closePopover();
12424
+ },
12452
12425
  onPosition: ({ placement }) => {
12453
12426
  const actualSide = placement.split("-")[0];
12454
12427
  if (actualSide !== __privateGet(this, _DuiPopoverPopupPrimitive_instances, side_get)) {
@@ -12967,6 +12940,9 @@ var DuiPreviewCardPopupPrimitive = class extends (_a35 = i8, _showArrow_dec2 = [
12967
12940
  offset: 8,
12968
12941
  styles: portalPopupStyles4,
12969
12942
  contentContainer: ".PreviewCardContent",
12943
+ onClose: () => {
12944
+ __privateGet(this, _ctx4).value?.closePreviewCard();
12945
+ },
12970
12946
  forwardProperties: ["--preview-card-popup-padding", "--preview-card-popup-max-width"],
12971
12947
  onPosition: ({ placement }) => {
12972
12948
  const actualSide = placement.split("-")[0];
@@ -22388,6 +22364,9 @@ var DuiTooltipPopupPrimitive = class extends (_a66 = i8, _showArrow_dec3 = [n7({
22388
22364
  offset: 6,
22389
22365
  styles: portalPopupStyles7,
22390
22366
  contentContainer: ".Content",
22367
+ onClose: () => {
22368
+ __privateGet(this, _ctx8).value?.closeTooltip();
22369
+ },
22391
22370
  onPosition: ({ placement }) => {
22392
22371
  const actualSide = placement.split("-")[0];
22393
22372
  if (actualSide !== __privateGet(this, _DuiTooltipPopupPrimitive_instances, side_get3)) {