@design.estate/dees-catalog 3.68.0 → 3.69.1

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.
@@ -191683,8 +191683,10 @@ function demoFunc53() {
191683
191683
  <dees-heading level="4">This is a H4 heading</dees-heading>
191684
191684
  <dees-heading level="5">This is a H5 heading</dees-heading>
191685
191685
  <dees-heading level="6">This is a H6 heading</dees-heading>
191686
- <dees-heading level="hr">This is an hr heading</dees-heading>
191687
- <dees-heading level="hr-small">This is an hr small heading</dees-heading>
191686
+ <dees-heading level="hr">This is an hr heading (level="hr")</dees-heading>
191687
+ <dees-heading level="7">This is an hr heading (level="7")</dees-heading>
191688
+ <dees-heading level="hr-small">This is an hr-small heading (level="hr-small")</dees-heading>
191689
+ <dees-heading level="8">This is an hr-small heading (level="8")</dees-heading>
191688
191690
  `;
191689
191691
  }
191690
191692
  __name(demoFunc53, "demoFunc");
@@ -191714,8 +191716,10 @@ var _DeesHeading = class _DeesHeading extends (_a79 = DeesElement, _level_dec =
191714
191716
  return b2`<h5><slot></slot></h5>`;
191715
191717
  case "6":
191716
191718
  return b2`<h6><slot></slot></h6>`;
191719
+ case "7":
191717
191720
  case "hr":
191718
191721
  return b2`<div class="heading-hr"><slot></slot></div>`;
191722
+ case "8":
191719
191723
  case "hr-small":
191720
191724
  return b2`<div class="heading-hr heading-hr-small"><slot></slot></div>`;
191721
191725
  default:
@@ -191736,58 +191740,91 @@ __publicField(_DeesHeading, "styles", [
191736
191740
  themeDefaultStyles,
191737
191741
  cssManager.defaultStyles,
191738
191742
  i`
191739
- /* TODO: Migrate hardcoded values to --dees-* CSS variables */
191740
- /* Heading styles */
191743
+ :host {
191744
+ display: block;
191745
+ }
191746
+
191747
+ /* Heading styles.
191748
+ * Color hierarchy: h1-h2 stay prominent with text-primary; h3-h6 step
191749
+ * down to text-secondary so they read as subheadings instead of
191750
+ * mini-h1s. Keeps the visual loudness out of smaller headings. */
191741
191751
  h1, h2, h3, h4, h5, h6 {
191742
- margin: 16px 0 8px;
191743
191752
  font-weight: 600;
191744
- color: ${cssManager.bdTheme("#000", "#fff")};
191745
191753
  }
191746
- h1 { font-size: 32px; font-family: ${cssCalSansFontFamily}; letter-spacing: 0.025em;}
191747
- h2 { font-size: 28px; }
191748
- h3 { font-size: 24px; }
191749
- h4 { font-size: 20px; }
191750
- h5 { font-size: 16px; }
191751
- h6 { font-size: 14px; }
191754
+ h1, h2 {
191755
+ color: var(--dees-color-text-primary);
191756
+ }
191757
+ h3, h4, h5, h6 {
191758
+ color: var(--dees-color-text-secondary);
191759
+ }
191760
+
191761
+ /* Per-level typography + spacing.
191762
+ * Margin scales with importance: h1 gets the most breathing room,
191763
+ * h6 the least. Top margin > bottom margin so headings group with
191764
+ * the content that follows them. */
191765
+ h1 {
191766
+ /* h1 uses weight 500, not 600: the Cal Sans display font is
191767
+ * already stylized enough that bold + max contrast + 32px stacks
191768
+ * too much emphasis. 500 keeps the typographic impact without
191769
+ * shouting. */
191770
+ font-weight: 500;
191771
+ font-size: 32px;
191772
+ font-family: ${cssCalSansFontFamily};
191773
+ letter-spacing: 0.025em;
191774
+ margin: var(--dees-spacing-2xl) 0 var(--dees-spacing-lg);
191775
+ }
191776
+ h2 {
191777
+ font-size: 28px;
191778
+ margin: var(--dees-spacing-xl) 0 var(--dees-spacing-md);
191779
+ }
191780
+ h3 {
191781
+ font-size: 24px;
191782
+ margin: var(--dees-spacing-xl) 0 var(--dees-spacing-md);
191783
+ }
191784
+ h4 {
191785
+ font-size: 20px;
191786
+ margin: var(--dees-spacing-lg) 0 var(--dees-spacing-sm);
191787
+ }
191788
+ h5 {
191789
+ font-size: 16px;
191790
+ margin: var(--dees-spacing-md) 0 var(--dees-spacing-sm);
191791
+ }
191792
+ h6 {
191793
+ font-size: 14px;
191794
+ margin: var(--dees-spacing-md) 0 var(--dees-spacing-xs);
191795
+ }
191796
+
191752
191797
  /* Horizontal rule style heading */
191753
191798
  .heading-hr {
191754
191799
  display: flex;
191755
191800
  align-items: center;
191756
191801
  text-align: center;
191757
- margin: 16px 0;
191758
- color: ${cssManager.bdTheme("#999", "#555")};
191802
+ margin: var(--dees-spacing-lg) 0;
191803
+ color: var(--dees-color-text-muted);
191759
191804
  }
191760
191805
  /* Fade lines toward and away from text for hr style */
191761
191806
  .heading-hr::before {
191762
191807
  content: '';
191763
191808
  flex: 1;
191764
191809
  height: 1px;
191765
- /* fade in toward center */
191766
- background: ${cssManager.bdTheme(
191767
- "linear-gradient(to right, transparent, #ccc)",
191768
- "linear-gradient(to right, transparent, #333)"
191769
- )};
191770
- margin: 0 8px;
191810
+ background: linear-gradient(to right, transparent, var(--dees-color-border-strong));
191811
+ margin: 0 var(--dees-spacing-sm);
191771
191812
  }
191772
191813
  .heading-hr::after {
191773
191814
  content: '';
191774
191815
  flex: 1;
191775
191816
  height: 1px;
191776
- /* fade out away from center */
191777
- background: ${cssManager.bdTheme(
191778
- "linear-gradient(to right, #ccc, transparent)",
191779
- "linear-gradient(to right, #333, transparent)"
191780
- )};
191781
- margin: 0 8px;
191817
+ background: linear-gradient(to right, var(--dees-color-border-strong), transparent);
191818
+ margin: 0 var(--dees-spacing-sm);
191782
191819
  }
191783
191820
  /* Small hr variant with reduced margins */
191784
191821
  .heading-hr.heading-hr-small {
191785
- margin: 8px 0;
191822
+ margin: var(--dees-spacing-sm) 0;
191786
191823
  font-size: 12px;
191787
191824
  }
191788
191825
  .heading-hr.heading-hr-small::before,
191789
191826
  .heading-hr.heading-hr-small::after {
191790
- margin: 0 8px;
191827
+ margin: 0 var(--dees-spacing-sm);
191791
191828
  }
191792
191829
  `
191793
191830
  ]);
@@ -199391,26 +199428,31 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a97 = DeesElement, _
199391
199428
  <dees-icon class="chevron" .icon="${"lucide:chevronDown"}"></dees-icon>
199392
199429
  ` : ""}
199393
199430
  </div>
199394
- ${hasSubs && groupActive ? b2`
199395
- <div class="subViews">
199396
- ${view.subViews.map(
199431
+ ${hasSubs ? b2`
199432
+ <div
199433
+ class="subViews ${groupActive ? "expanded" : ""}"
199434
+ ?inert=${!groupActive}
199435
+ >
199436
+ <div class="subViews-inner">
199437
+ ${view.subViews.map(
199397
199438
  (sub2) => b2`
199398
- <div
199399
- class="viewTab sub ${this.selectedView === sub2 ? "selected" : ""}"
199400
- @click=${(e11) => {
199439
+ <div
199440
+ class="viewTab sub ${this.selectedView === sub2 ? "selected" : ""}"
199441
+ @click=${(e11) => {
199401
199442
  e11.stopPropagation();
199402
199443
  this.loadView(sub2);
199403
199444
  }}
199404
- >
199405
- ${sub2.iconName ? b2`
199406
- <dees-icon .icon="${sub2.iconName.includes(":") ? sub2.iconName : `lucide:${sub2.iconName}`}"></dees-icon>
199407
- ` : b2`
199408
- <dees-icon .icon="${"lucide:dot"}"></dees-icon>
199409
- `}
199410
- <span>${sub2.name}</span>
199411
- </div>
199412
- `
199445
+ >
199446
+ ${sub2.iconName ? b2`
199447
+ <dees-icon .icon="${sub2.iconName.includes(":") ? sub2.iconName : `lucide:${sub2.iconName}`}"></dees-icon>
199448
+ ` : b2`
199449
+ <dees-icon .icon="${"lucide:dot"}"></dees-icon>
199450
+ `}
199451
+ <span>${sub2.name}</span>
199452
+ </div>
199453
+ `
199413
199454
  )}
199455
+ </div>
199414
199456
  </div>
199415
199457
  ` : ""}
199416
199458
  `;
@@ -199824,12 +199866,20 @@ __publicField(_DeesSimpleAppDash, "styles", [
199824
199866
  }
199825
199867
 
199826
199868
  .subViews {
199827
- display: flex;
199828
- flex-direction: column;
199829
- gap: 2px;
199830
- margin: 2px 0 4px 12px;
199831
- padding-left: 12px;
199869
+ display: grid;
199870
+ grid-template-rows: 0fr;
199871
+ margin-left: 12px;
199832
199872
  position: relative;
199873
+ transition:
199874
+ grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1),
199875
+ margin-top 0.25s cubic-bezier(0.4, 0, 0.2, 1),
199876
+ margin-bottom 0.25s cubic-bezier(0.4, 0, 0.2, 1);
199877
+ }
199878
+
199879
+ .subViews.expanded {
199880
+ grid-template-rows: 1fr;
199881
+ margin-top: 2px;
199882
+ margin-bottom: 4px;
199833
199883
  }
199834
199884
 
199835
199885
  .subViews::before {
@@ -199840,6 +199890,21 @@ __publicField(_DeesSimpleAppDash, "styles", [
199840
199890
  bottom: 4px;
199841
199891
  width: 1px;
199842
199892
  background: var(--dees-color-border-default);
199893
+ opacity: 0;
199894
+ transition: opacity 0.2s ease;
199895
+ }
199896
+
199897
+ .subViews.expanded::before {
199898
+ opacity: 1;
199899
+ }
199900
+
199901
+ .subViews-inner {
199902
+ min-height: 0;
199903
+ overflow: hidden;
199904
+ display: flex;
199905
+ flex-direction: column;
199906
+ gap: 2px;
199907
+ padding-left: 12px;
199843
199908
  }
199844
199909
 
199845
199910
  .viewTab.sub {