@dillingerstaffing/strand-svelte 0.8.0 → 0.10.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.
@@ -500,6 +500,7 @@
500
500
 
501
501
  /* ── Variants ── */
502
502
  .strand-card--elevated {
503
+ border: 1px solid var(--strand-border-subtle);
503
504
  box-shadow: var(--strand-elevation-1);
504
505
  }
505
506
 
@@ -509,6 +510,7 @@
509
510
  }
510
511
 
511
512
  .strand-card--interactive {
513
+ border: 1px solid var(--strand-border-subtle);
512
514
  box-shadow: var(--strand-elevation-1);
513
515
  cursor: pointer;
514
516
  transition:
@@ -988,11 +990,16 @@
988
990
  min-width: 0;
989
991
  }
990
992
 
991
- /* ── Column utilities ── */
993
+ /* ── Fixed column utilities ── */
992
994
  .strand-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
993
995
  .strand-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
994
996
  .strand-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
995
997
 
998
+ /* ── Responsive auto-fit (columns adjust to available width) ── */
999
+ .strand-grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
1000
+ .strand-grid--auto-md { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
1001
+ .strand-grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
1002
+
996
1003
  /* ── Gap utilities ── */
997
1004
  .strand-grid--gap-1 { gap: var(--strand-space-1); }
998
1005
  .strand-grid--gap-2 { gap: var(--strand-space-2); }
@@ -2707,6 +2714,16 @@
2707
2714
  letter-spacing: var(--strand-tracking-tighter);
2708
2715
  }
2709
2716
 
2717
+ /* ── Title (human voice display, DL Part IV.7) ── */
2718
+ .strand-title {
2719
+ font-family: var(--strand-font-sans);
2720
+ font-weight: var(--strand-weight-light);
2721
+ letter-spacing: var(--strand-tracking-tighter);
2722
+ color: var(--strand-blue-midnight);
2723
+ font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
2724
+ line-height: var(--strand-leading-snug);
2725
+ }
2726
+
2710
2727
  /* ── Lead (intro paragraph, DL Part IV.6) ── */
2711
2728
  .strand-lead {
2712
2729
  font-size: var(--strand-text-lg);
@@ -2715,3 +2732,161 @@
2715
2732
  line-height: var(--strand-leading-relaxed);
2716
2733
  }
2717
2734
 
2735
+ /* ── Secondary text (caption/description, DL Part III.8 Color Roles) ── */
2736
+ .strand-text-secondary {
2737
+ font-size: var(--strand-text-sm);
2738
+ color: var(--strand-gray-500);
2739
+ line-height: var(--strand-leading-relaxed);
2740
+ }
2741
+
2742
+ .strand-text-secondary--xs {
2743
+ font-size: var(--strand-text-xs);
2744
+ }
2745
+
2746
+ /* ══════════════════════════════════════════════════
2747
+ COMPOSITION MOLECULES (DL Part XI-B Grammar)
2748
+ Named derivations of DL composition primitives.
2749
+ Each molecule is a convenience class for a common
2750
+ derivation chain. See DL 11.10 Productions for the
2751
+ grammar rules; DL 11.12 Derivation for verification.
2752
+ ══════════════════════════════════════════════════ */
2753
+
2754
+ /* ── Card Section ──
2755
+ Derivation: section-boundary production (DL 11.10).
2756
+ OVERLINE + border-bottom + margin-bottom + padding-bottom */
2757
+ .strand-card-section {
2758
+ margin-bottom: var(--strand-space-3);
2759
+ padding-bottom: var(--strand-space-2);
2760
+ border-bottom: 1px solid var(--strand-gray-200);
2761
+ }
2762
+
2763
+ /* ── Key-Value Row ──
2764
+ Derivation: inline-pair + ranked-sequence (DL 11.10).
2765
+ identifier(OVERLINE) + quantifier(MONO_VALUE) + RANK_BORDER */
2766
+ .strand-kv {
2767
+ display: flex;
2768
+ justify-content: space-between;
2769
+ align-items: center;
2770
+ padding-block: var(--strand-space-2);
2771
+ }
2772
+
2773
+ .strand-kv + .strand-kv {
2774
+ border-top: 1px solid var(--strand-border-subtle);
2775
+ }
2776
+
2777
+ .strand-kv__label {
2778
+ font-family: var(--strand-font-mono);
2779
+ font-size: var(--strand-text-xs);
2780
+ font-weight: var(--strand-weight-medium);
2781
+ letter-spacing: var(--strand-tracking-wider);
2782
+ text-transform: uppercase;
2783
+ color: var(--strand-gray-500);
2784
+ }
2785
+
2786
+ .strand-kv__value {
2787
+ font-family: var(--strand-font-mono);
2788
+ font-size: var(--strand-text-xs);
2789
+ color: var(--strand-gray-600);
2790
+ font-variant-numeric: tabular-nums;
2791
+ }
2792
+
2793
+ .strand-kv__value--status {
2794
+ color: var(--strand-teal-vital);
2795
+ }
2796
+
2797
+ /* ── Diagnostic Log Entry ──
2798
+ Derivation: inline-sequence + ranked-sequence (DL 11.10).
2799
+ time(OVERLINE) + status(OVERLINE+COLOR_SEMANTIC) + text(SECONDARY) + RANK_BORDER */
2800
+ .strand-log {
2801
+ display: flex;
2802
+ gap: var(--strand-space-3);
2803
+ padding-block: var(--strand-space-2);
2804
+ }
2805
+
2806
+ .strand-log + .strand-log {
2807
+ border-top: 1px solid var(--strand-border-subtle);
2808
+ }
2809
+
2810
+ .strand-log__time {
2811
+ font-family: var(--strand-font-mono);
2812
+ font-size: var(--strand-text-xs);
2813
+ font-weight: var(--strand-weight-medium);
2814
+ letter-spacing: var(--strand-tracking-wider);
2815
+ text-transform: uppercase;
2816
+ color: var(--strand-gray-400);
2817
+ font-variant-numeric: tabular-nums;
2818
+ white-space: nowrap;
2819
+ }
2820
+
2821
+ .strand-log__status {
2822
+ font-family: var(--strand-font-mono);
2823
+ font-size: var(--strand-text-xs);
2824
+ font-weight: var(--strand-weight-semibold);
2825
+ letter-spacing: var(--strand-tracking-wider);
2826
+ text-transform: uppercase;
2827
+ white-space: nowrap;
2828
+ }
2829
+
2830
+ .strand-log__status--complete { color: var(--strand-teal-vital); }
2831
+ .strand-log__status--process { color: var(--strand-blue-primary); }
2832
+ .strand-log__status--warning { color: var(--strand-amber-caution); }
2833
+ .strand-log__status--error { color: var(--strand-red-alert); }
2834
+
2835
+ /* ── Metric Row ──
2836
+ Derivation: centered-group (DL 11.10).
2837
+ self-contained(atom)* with center distribution + responsive gap */
2838
+ .strand-metric-row {
2839
+ display: flex;
2840
+ justify-content: center;
2841
+ gap: clamp(2rem, 5vw, 4rem);
2842
+ text-align: center;
2843
+ }
2844
+
2845
+ /* ── Bar Chart ──
2846
+ Derivation: column-array (DL 11.10).
2847
+ column(amount? + bar + label)* with equal flex + flex-end alignment.
2848
+ Blue Discipline: one color (--strand-blue-indicator). Part XIII viz rules. */
2849
+ .strand-bar-chart {
2850
+ display: flex;
2851
+ gap: var(--strand-space-2);
2852
+ align-items: flex-end;
2853
+ height: var(--strand-space-24);
2854
+ padding: var(--strand-space-5);
2855
+ }
2856
+
2857
+ .strand-bar-chart__col {
2858
+ flex: 1;
2859
+ display: flex;
2860
+ flex-direction: column;
2861
+ align-items: center;
2862
+ gap: var(--strand-space-1);
2863
+ height: 100%;
2864
+ justify-content: flex-end;
2865
+ }
2866
+
2867
+ .strand-bar-chart__bar {
2868
+ width: 100%;
2869
+ background: var(--strand-blue-indicator);
2870
+ border-radius: var(--strand-radius-sm) var(--strand-radius-sm) 0 0;
2871
+ min-height: var(--strand-space-1);
2872
+ }
2873
+
2874
+ .strand-bar-chart__amount {
2875
+ font-family: var(--strand-font-mono);
2876
+ font-size: var(--strand-text-xs);
2877
+ font-weight: var(--strand-weight-medium);
2878
+ letter-spacing: var(--strand-tracking-wider);
2879
+ text-transform: uppercase;
2880
+ color: var(--strand-gray-300);
2881
+ font-variant-numeric: tabular-nums;
2882
+ }
2883
+
2884
+ .strand-bar-chart__label {
2885
+ font-family: var(--strand-font-mono);
2886
+ font-size: var(--strand-text-xs);
2887
+ font-weight: var(--strand-weight-medium);
2888
+ letter-spacing: var(--strand-tracking-wider);
2889
+ text-transform: uppercase;
2890
+ color: var(--strand-gray-400);
2891
+ }
2892
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dillingerstaffing/strand-svelte",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Strand UI - Svelte component library built on the Strand Design Language",
5
5
  "author": "Dillinger Staffing <engineering@dillingerstaffing.com> (https://dillingerstaffing.com)",
6
6
  "license": "MIT",
@@ -55,7 +55,7 @@
55
55
  "svelte": "^4.0.0 || ^5.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@dillingerstaffing/strand": "^0.8.0"
58
+ "@dillingerstaffing/strand": "^0.10.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@sveltejs/vite-plugin-svelte": "^5.0.0",