@stnd/lab 1.0.10 → 1.0.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @stnd/lab
2
2
 
3
+ ## 1.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @stnd/ui@0.7.0
9
+
3
10
  ## 1.0.10
4
11
 
5
12
  ### Patch Changes
package/Lab.svelte CHANGED
@@ -301,7 +301,7 @@
301
301
  lineHeight = parseFloat(readVar("--line-height")) || 1.414;
302
302
  ratio = parseFloat(readVar("--optical-ratio")) || 1.414;
303
303
 
304
- const rawGap = readVar("--gap-body");
304
+ const rawGap = readVar("--page-padding");
305
305
  const pxSpace = resolvePx("var(--space)");
306
306
 
307
307
  // Calculate body gap multiplier
@@ -337,7 +337,7 @@
337
337
  "--font-size",
338
338
  "--line-height",
339
339
  "--optical-ratio",
340
- "--gap-body",
340
+ "--page-padding",
341
341
  "--rhythm-gap-new-line",
342
342
  "--radius",
343
343
  ];
@@ -390,7 +390,7 @@
390
390
  "--font-size",
391
391
  "--line-height",
392
392
  "--optical-ratio",
393
- "--gap-body",
393
+ "--page-padding",
394
394
  "--rhythm-gap-new-line",
395
395
  "--radius",
396
396
  ];
@@ -714,7 +714,7 @@
714
714
  "--font-size",
715
715
  "--line-height",
716
716
  "--optical-ratio",
717
- "--gap-body",
717
+ "--page-padding",
718
718
  "--rhythm-gap-new-line",
719
719
  "--radius",
720
720
  ];
@@ -805,7 +805,7 @@
805
805
 
806
806
  function onGapInput(e) {
807
807
  gapBody = parseFloat(e.target.value);
808
- writeVar("--gap-body", `calc(var(--space) * ${gapBody})`);
808
+ writeVar("--page-padding", `calc(var(--space) * ${gapBody})`);
809
809
  }
810
810
 
811
811
  function onRhythmGapInput(e) {
@@ -1516,7 +1516,7 @@
1516
1516
  border-bottom: var(--border);
1517
1517
  flex-shrink: 0;
1518
1518
 
1519
- background: var(--color-surface-low);
1519
+ background: var(--color-surface-light-1);
1520
1520
  }
1521
1521
  .lab-header-title {
1522
1522
  display: flex;
@@ -1526,11 +1526,11 @@
1526
1526
  min-width: 0;
1527
1527
  }
1528
1528
  .lab-header h2 {
1529
- font-size: var(--size-sm) !important;
1529
+ font-size: var(--scale-d2) !important;
1530
1530
  line-height: 1 !important;
1531
1531
  }
1532
1532
  .lab-version {
1533
- font-size: var(--size-xs) !important;
1533
+ font-size: var(--scale-d3) !important;
1534
1534
  color: var(--text-muted);
1535
1535
  }
1536
1536
  .lab-header-meta {
@@ -1578,7 +1578,7 @@
1578
1578
  }
1579
1579
 
1580
1580
  .lab-section-arrow {
1581
- font-size: var(--size-2xs) !important;
1581
+ font-size: var(--scale-d4) !important;
1582
1582
  color: var(--text-subtle);
1583
1583
  transition: transform var(--transition);
1584
1584
  flex-shrink: 0;
@@ -1591,7 +1591,7 @@
1591
1591
  }
1592
1592
 
1593
1593
  .lab-section-title {
1594
- font-size: var(--size-2xs) !important;
1594
+ font-size: var(--scale-d4) !important;
1595
1595
  font-weight: 600;
1596
1596
  text-transform: uppercase;
1597
1597
  letter-spacing: 0.08em;
@@ -1619,7 +1619,7 @@
1619
1619
 
1620
1620
  .lab-field-label {
1621
1621
  display: block;
1622
- font-size: var(--size-3xs) !important;
1622
+ font-size: var(--scale-d5) !important;
1623
1623
  color: var(--color-muted);
1624
1624
  text-transform: uppercase;
1625
1625
  line-height: 1;
@@ -1628,7 +1628,7 @@
1628
1628
  /* ═══════════ TEXT INPUT ═══════════ */
1629
1629
  .lab-text-input {
1630
1630
  width: 100%;
1631
- font-size: var(--size-2xs) !important;
1631
+ font-size: var(--scale-d4) !important;
1632
1632
  line-height: 1 !important;
1633
1633
  transition: all var(--transition);
1634
1634
  margin: 0 !important;
@@ -1664,7 +1664,7 @@
1664
1664
 
1665
1665
  /* ═══════════ SELECT ═══════════ */
1666
1666
  .lab-select {
1667
- font-size: var(--size-2xs) !important;
1667
+ font-size: var(--scale-d4) !important;
1668
1668
  }
1669
1669
  .lab-select:focus {
1670
1670
  border-color: var(--color-accent);
@@ -1691,7 +1691,7 @@
1691
1691
  }
1692
1692
 
1693
1693
  .lab-link {
1694
- font-size: var(--size-2xs) !important;
1694
+ font-size: var(--scale-d4) !important;
1695
1695
  color: var(--color-accent);
1696
1696
  text-decoration: none;
1697
1697
  padding: var(--space-d4) 0;
@@ -1710,7 +1710,7 @@
1710
1710
  padding: var(--space-half) var(--space);
1711
1711
  box-shadow: var(--shadow);
1712
1712
  flex-shrink: 0;
1713
- background: var(--color-surface-low);
1713
+ background: var(--color-surface-light-1);
1714
1714
  }
1715
1715
 
1716
1716
  /* ═══════════ RESPONSIVE ═══════════ */
@@ -1753,7 +1753,7 @@
1753
1753
  :global(.lab-font-combobox .std-combobox-trigger) {
1754
1754
  width: 100%;
1755
1755
  padding: calc(var(--space-d3) - 2px) var(--space-d4);
1756
- font-size: var(--size-2xs);
1756
+ font-size: var(--scale-d4);
1757
1757
  line-height: 1;
1758
1758
  background: transparent;
1759
1759
  border: var(--border);
@@ -1779,7 +1779,7 @@
1779
1779
  max-width: none;
1780
1780
  margin-top: var(--space-d2);
1781
1781
  border: var(--border);
1782
- border-radius: var(--radius-sm);
1782
+ border-radius: var(--radius);
1783
1783
  box-shadow: var(--shadow-xl), var(--shadow-ring);
1784
1784
  background: var(--color-surface, var(--color-background));
1785
1785
  z-index: 120;
@@ -1791,7 +1791,7 @@
1791
1791
  margin-bottom: var(--space-d2);
1792
1792
  }
1793
1793
  :global(.lab-font-combobox .std-combobox-header input) {
1794
- font-size: var(--size-sm);
1794
+ font-size: var(--scale-d2);
1795
1795
  padding: var(--space-half) 0;
1796
1796
  width: 100%;
1797
1797
  background: transparent;
@@ -1802,7 +1802,7 @@
1802
1802
  /* Ensure options are comfortably spaced in the Lab */
1803
1803
  :global(.lab-font-combobox .std-combobox-listbox .std-menu-item) {
1804
1804
  padding: var(--space-d2) var(--space-d4);
1805
- font-size: var(--size-sm);
1805
+ font-size: var(--scale-d2);
1806
1806
  }
1807
1807
 
1808
1808
  /* Preserve the rest of the stylesheet closing tag */
@@ -1380,7 +1380,7 @@
1380
1380
  .standard-lab-badge { font-family: var(--stnd-lab-font-family); position: fixed; width: var(--space-d2); height: var(--space-d2); border-radius: 50%; background: var(--color-surface); border: var(--border); box-shadow: var(--shadow); backdrop-filter: var(--filter-blur); cursor: pointer; z-index: var(--z-toast); line-height:1.5; display: flex; align-items: baseline; justify-content: center; color: var(--color-foreground); transition: all 0.2s ease; padding: 0; margin:0; }
1381
1381
  .standard-lab-badge:hover { box-shadow: var(--shadow); transform: scale(1.05); color: var(--color-dark-accent); }
1382
1382
  .standard-lab-badge:active { transform: scale(0.95); }
1383
- .standard-lab-badge[data-modified]::after { content: attr(data-modified); position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); color: var(--color-background); font-size: var(--size-xs); display: flex; align-items: center; justify-content: center; font-weight: 600; border: var(--border); box-shadow:var(--shadow); }
1383
+ .standard-lab-badge[data-modified]::after { content: attr(data-modified); position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); color: var(--color-background); font-size: var(--scale-d3); display: flex; align-items: center; justify-content: center; font-weight: 600; border: var(--border); box-shadow:var(--shadow); }
1384
1384
  .standard-lab-panel { position: fixed; background: var(--stnd-lab-bg); color: var(--stnd-lab-text); font-size: var(--stnd-lab-text-size); border: var(--stnd-lab-border); border-radius: 6px; box-shadow: var(--stnd-lab-shadow); backdrop-filter: var(--stnd-lab-blur); z-index: var(--z-toast); opacity: 0; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; display: flex; flex-direction: column; }
1385
1385
  .standard-lab-panel * { font-family: var(--stnd-lab-font-family) !important; font-size: inherit; line-height:1.5; margin:0; }
1386
1386
  .standard-lab-panel :is(label, input) { margin:0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stnd/lab",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "svelte": "./Lab.svelte",
6
6
  "author": "Francis Fontaine",
@@ -17,7 +17,7 @@
17
17
  "bezier-easing": "^3.0.1",
18
18
  "svelte": "5.57.0",
19
19
  "wrangler": "^4.129.0",
20
- "@stnd/ui": "0.6.6"
20
+ "@stnd/ui": "0.7.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "astro": ">=5.0.0"