@melodicdev/components 4.0.0 → 4.0.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.
Files changed (128) hide show
  1. package/assets/melodic-components.js +3896 -3617
  2. package/assets/melodic-components.js.map +1 -1
  3. package/assets/melodic-components.min.js +6583 -6305
  4. package/lib/components/data-display/activity-feed/activity-feed-item.styles.d.ts.map +1 -1
  5. package/lib/components/data-display/activity-feed/activity-feed-item.styles.js +83 -78
  6. package/lib/components/data-display/activity-feed/activity-feed.styles.d.ts.map +1 -1
  7. package/lib/components/data-display/activity-feed/activity-feed.styles.js +10 -5
  8. package/lib/components/data-display/avatar/avatar.styles.d.ts.map +1 -1
  9. package/lib/components/data-display/avatar/avatar.styles.js +23 -18
  10. package/lib/components/data-display/badge/badge.styles.d.ts.map +1 -1
  11. package/lib/components/data-display/badge/badge.styles.js +54 -48
  12. package/lib/components/data-display/badge-group/badge-group.styles.d.ts.map +1 -1
  13. package/lib/components/data-display/badge-group/badge-group.styles.js +34 -29
  14. package/lib/components/data-display/calendar-view/calendar-view.styles.d.ts.map +1 -1
  15. package/lib/components/data-display/calendar-view/calendar-view.styles.js +160 -155
  16. package/lib/components/data-display/data-grid/data-grid.styles.d.ts.map +1 -1
  17. package/lib/components/data-display/data-grid/data-grid.styles.js +122 -117
  18. package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
  19. package/lib/components/data-display/list/list-item.styles.js +39 -34
  20. package/lib/components/data-display/list/list.styles.d.ts.map +1 -1
  21. package/lib/components/data-display/list/list.styles.js +10 -5
  22. package/lib/components/data-display/profile-card/profile-card.styles.d.ts.map +1 -1
  23. package/lib/components/data-display/profile-card/profile-card.styles.js +71 -66
  24. package/lib/components/data-display/stat-card/stat-card.styles.d.ts.map +1 -1
  25. package/lib/components/data-display/stat-card/stat-card.styles.js +67 -63
  26. package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
  27. package/lib/components/data-display/table/table.styles.js +94 -89
  28. package/lib/components/data-display/tag/tag.styles.d.ts.map +1 -1
  29. package/lib/components/data-display/tag/tag.styles.js +67 -62
  30. package/lib/components/feedback/alert/alert.styles.d.ts.map +1 -1
  31. package/lib/components/feedback/alert/alert.styles.js +78 -76
  32. package/lib/components/feedback/progress/progress.styles.d.ts.map +1 -1
  33. package/lib/components/feedback/progress/progress.styles.js +110 -106
  34. package/lib/components/feedback/spinner/spinner.styles.d.ts.map +1 -1
  35. package/lib/components/feedback/spinner/spinner.styles.js +18 -13
  36. package/lib/components/feedback/toast/toast.styles.d.ts.map +1 -1
  37. package/lib/components/feedback/toast/toast.styles.js +74 -69
  38. package/lib/components/forms/autocomplete/autocomplete.styles.d.ts.map +1 -1
  39. package/lib/components/forms/autocomplete/autocomplete.styles.js +169 -164
  40. package/lib/components/forms/button/button.styles.d.ts.map +1 -1
  41. package/lib/components/forms/button/button.styles.js +62 -57
  42. package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
  43. package/lib/components/forms/button-group/button-group.styles.js +23 -18
  44. package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
  45. package/lib/components/forms/checkbox/checkbox.styles.js +83 -78
  46. package/lib/components/forms/date-picker/calendar.styles.d.ts.map +1 -1
  47. package/lib/components/forms/date-picker/calendar.styles.js +152 -147
  48. package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
  49. package/lib/components/forms/date-picker/date-picker.styles.js +97 -91
  50. package/lib/components/forms/date-time-picker/date-time-picker.styles.d.ts.map +1 -1
  51. package/lib/components/forms/date-time-picker/date-time-picker.styles.js +87 -82
  52. package/lib/components/forms/file-upload/file-upload.styles.d.ts.map +1 -1
  53. package/lib/components/forms/file-upload/file-upload.styles.js +97 -92
  54. package/lib/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  55. package/lib/components/forms/form-field/form-field.styles.js +77 -72
  56. package/lib/components/forms/input/input.styles.d.ts.map +1 -1
  57. package/lib/components/forms/input/input.styles.js +86 -81
  58. package/lib/components/forms/radio/radio.styles.d.ts.map +1 -1
  59. package/lib/components/forms/radio/radio.styles.js +78 -73
  60. package/lib/components/forms/radio-card-group/radio-card-group.styles.d.ts.map +1 -1
  61. package/lib/components/forms/radio-card-group/radio-card-group.styles.js +39 -34
  62. package/lib/components/forms/radio-card-group/radio-card.styles.d.ts.map +1 -1
  63. package/lib/components/forms/radio-card-group/radio-card.styles.js +113 -108
  64. package/lib/components/forms/select/select.styles.d.ts.map +1 -1
  65. package/lib/components/forms/select/select.styles.js +158 -153
  66. package/lib/components/forms/slider/slider.styles.d.ts.map +1 -1
  67. package/lib/components/forms/slider/slider.styles.js +82 -77
  68. package/lib/components/forms/textarea/textarea.styles.d.ts.map +1 -1
  69. package/lib/components/forms/textarea/textarea.styles.js +84 -79
  70. package/lib/components/forms/time-picker/time-picker.styles.d.ts.map +1 -1
  71. package/lib/components/forms/time-picker/time-picker.styles.js +197 -191
  72. package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
  73. package/lib/components/forms/toggle/toggle.styles.js +84 -79
  74. package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
  75. package/lib/components/foundation/card/card.styles.js +51 -46
  76. package/lib/components/foundation/container/container.styles.d.ts.map +1 -1
  77. package/lib/components/foundation/container/container.styles.js +15 -10
  78. package/lib/components/foundation/divider/divider.styles.d.ts.map +1 -1
  79. package/lib/components/foundation/divider/divider.styles.js +29 -24
  80. package/lib/components/foundation/stack/stack.styles.d.ts.map +1 -1
  81. package/lib/components/foundation/stack/stack.styles.js +16 -10
  82. package/lib/components/general/icon/icon.styles.d.ts.map +1 -1
  83. package/lib/components/general/icon/icon.styles.js +12 -8
  84. package/lib/components/navigation/breadcrumb/breadcrumb.styles.d.ts.map +1 -1
  85. package/lib/components/navigation/breadcrumb/breadcrumb.styles.js +9 -4
  86. package/lib/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  87. package/lib/components/navigation/pagination/pagination.styles.js +74 -69
  88. package/lib/components/navigation/sidebar/sidebar-group.styles.d.ts.map +1 -1
  89. package/lib/components/navigation/sidebar/sidebar-group.styles.js +23 -18
  90. package/lib/components/navigation/sidebar/sidebar-item.styles.d.ts.map +1 -1
  91. package/lib/components/navigation/sidebar/sidebar-item.styles.js +104 -99
  92. package/lib/components/navigation/sidebar/sidebar.styles.d.ts.map +1 -1
  93. package/lib/components/navigation/sidebar/sidebar.styles.js +179 -174
  94. package/lib/components/navigation/steps/step.styles.d.ts.map +1 -1
  95. package/lib/components/navigation/steps/step.styles.js +154 -149
  96. package/lib/components/navigation/steps/steps.styles.d.ts.map +1 -1
  97. package/lib/components/navigation/steps/steps.styles.js +174 -169
  98. package/lib/components/navigation/tabs/tab-panel.styles.d.ts.map +1 -1
  99. package/lib/components/navigation/tabs/tab-panel.styles.js +12 -7
  100. package/lib/components/navigation/tabs/tab.styles.d.ts.map +1 -1
  101. package/lib/components/navigation/tabs/tab.styles.js +41 -36
  102. package/lib/components/navigation/tabs/tabs.styles.d.ts.map +1 -1
  103. package/lib/components/navigation/tabs/tabs.styles.js +131 -126
  104. package/lib/components/overlays/dialog/dialog.styles.d.ts.map +1 -1
  105. package/lib/components/overlays/dialog/dialog.styles.js +78 -73
  106. package/lib/components/overlays/drawer/drawer.styles.d.ts.map +1 -1
  107. package/lib/components/overlays/drawer/drawer.styles.js +82 -77
  108. package/lib/components/overlays/dropdown/dropdown-item.styles.d.ts.map +1 -1
  109. package/lib/components/overlays/dropdown/dropdown-item.styles.js +48 -43
  110. package/lib/components/overlays/dropdown/dropdown.styles.d.ts.map +1 -1
  111. package/lib/components/overlays/dropdown/dropdown.styles.js +35 -30
  112. package/lib/components/overlays/popover/popover.styles.d.ts.map +1 -1
  113. package/lib/components/overlays/popover/popover.styles.js +36 -31
  114. package/lib/components/overlays/tooltip/tooltip.styles.d.ts.map +1 -1
  115. package/lib/components/overlays/tooltip/tooltip.styles.js +34 -28
  116. package/lib/components/pages/auth/auth-layout.styles.d.ts +1 -1
  117. package/lib/components/pages/auth/auth-layout.styles.d.ts.map +1 -1
  118. package/lib/components/pages/auth/auth-layout.styles.js +86 -81
  119. package/lib/components/pages/dashboard/dashboard-page.styles.d.ts.map +1 -1
  120. package/lib/components/pages/dashboard/dashboard-page.styles.js +39 -34
  121. package/lib/components/sections/app-shell/app-shell.styles.d.ts.map +1 -1
  122. package/lib/components/sections/app-shell/app-shell.styles.js +63 -57
  123. package/lib/components/sections/hero/hero-section.styles.js +97 -97
  124. package/lib/components/sections/page-header/page-header.styles.d.ts.map +1 -1
  125. package/lib/components/sections/page-header/page-header.styles.js +69 -64
  126. package/lib/components/sections/page-section/page-section.styles.d.ts.map +1 -1
  127. package/lib/components/sections/page-section/page-section.styles.js +56 -51
  128. package/package.json +1 -1
@@ -1,63 +1,68 @@
1
1
  import { css } from '@melodicdev/core';
2
2
  export const profileCardStyles = () => css `
3
+ /*
4
+ * Tokens. Rules read each one with its default as the var() fallback,
5
+ * so a value set on the element or inherited from any ancestor wins.
6
+ *
7
+ * Profile Card: surface
8
+ * --ml-profile-card-bg: var(--ml-color-surface)
9
+ * --ml-profile-card-border-width: var(--ml-border)
10
+ * --ml-profile-card-border-color: var(--ml-color-border)
11
+ * --ml-profile-card-radius: var(--ml-radius-lg)
12
+ *
13
+ * Profile Card: banner
14
+ * --ml-profile-card-banner-height: 80px
15
+ * --ml-profile-card-banner-from: var(--ml-color-primary)
16
+ * --ml-profile-card-banner-to: var(--ml-color-primary-hover, var(--ml-color-primary))
17
+ * --ml-profile-card-banner-opacity: 0.85
18
+ *
19
+ * Profile Card: avatar
20
+ * --ml-profile-card-avatar-ring-color: var(--ml-color-border)
21
+ * --ml-profile-card-avatar-shadow: var(--ml-shadow-md)
22
+ *
23
+ * Profile Card: name
24
+ * --ml-profile-card-name-font: 'Cormorant Garamond', 'Georgia', serif
25
+ * --ml-profile-card-name-size: var(--ml-text-xl)
26
+ * --ml-profile-card-name-weight: var(--ml-font-semibold)
27
+ * --ml-profile-card-name-color: var(--ml-color-text)
28
+ *
29
+ * Profile Card: subtitle
30
+ * --ml-profile-card-subtitle-font: var(--ml-font-sans)
31
+ * --ml-profile-card-subtitle-size: var(--ml-text-sm)
32
+ * --ml-profile-card-subtitle-color: var(--ml-color-text-muted)
33
+ *
34
+ * Profile Card: section label
35
+ * --ml-profile-card-section-label-font: var(--ml-font-sans)
36
+ * --ml-profile-card-section-label-size: var(--ml-text-xs)
37
+ * --ml-profile-card-section-label-weight: var(--ml-font-semibold)
38
+ * --ml-profile-card-section-label-color: var(--ml-color-text-muted)
39
+ *
40
+ * Profile Card: details / meta text
41
+ * --ml-profile-card-detail-font: var(--ml-font-sans)
42
+ * --ml-profile-card-detail-size: var(--ml-text-sm)
43
+ * --ml-profile-card-detail-color: var(--ml-color-text-secondary)
44
+ */
45
+
3
46
  :host {
4
47
  display: block;
5
-
6
- /* ── Profile Card: surface ── */
7
- --ml-profile-card-bg: var(--ml-color-surface);
8
- --ml-profile-card-border-width: var(--ml-border);
9
- --ml-profile-card-border-color: var(--ml-color-border);
10
- --ml-profile-card-radius: var(--ml-radius-lg);
11
-
12
- /* ── Profile Card: banner ── */
13
- --ml-profile-card-banner-height: 80px;
14
- --ml-profile-card-banner-from: var(--ml-color-primary);
15
- --ml-profile-card-banner-to: var(--ml-color-primary-hover, var(--ml-color-primary));
16
- --ml-profile-card-banner-opacity: 0.85;
17
-
18
- /* ── Profile Card: avatar ── */
19
- --ml-profile-card-avatar-ring-color: var(--ml-color-border);
20
- --ml-profile-card-avatar-shadow: var(--ml-shadow-md);
21
-
22
- /* ── Profile Card: name ── */
23
- --ml-profile-card-name-font: 'Cormorant Garamond', 'Georgia', serif;
24
- --ml-profile-card-name-size: var(--ml-text-xl);
25
- --ml-profile-card-name-weight: var(--ml-font-semibold);
26
- --ml-profile-card-name-color: var(--ml-color-text);
27
-
28
- /* ── Profile Card: subtitle ── */
29
- --ml-profile-card-subtitle-font: var(--ml-font-sans);
30
- --ml-profile-card-subtitle-size: var(--ml-text-sm);
31
- --ml-profile-card-subtitle-color: var(--ml-color-text-muted);
32
-
33
- /* ── Profile Card: section label ── */
34
- --ml-profile-card-section-label-font: var(--ml-font-sans);
35
- --ml-profile-card-section-label-size: var(--ml-text-xs);
36
- --ml-profile-card-section-label-weight: var(--ml-font-semibold);
37
- --ml-profile-card-section-label-color: var(--ml-color-text-muted);
38
-
39
- /* ── Profile Card: details / meta text ── */
40
- --ml-profile-card-detail-font: var(--ml-font-sans);
41
- --ml-profile-card-detail-size: var(--ml-text-sm);
42
- --ml-profile-card-detail-color: var(--ml-color-text-secondary);
43
48
  }
44
49
 
45
50
  .ml-profile-card {
46
- background-color: var(--ml-profile-card-bg);
47
- border: var(--ml-profile-card-border-width) solid var(--ml-profile-card-border-color);
48
- border-radius: var(--ml-profile-card-radius);
51
+ background-color: var(--ml-profile-card-bg, var(--ml-color-surface));
52
+ border: var(--ml-profile-card-border-width, var(--ml-border)) solid var(--ml-profile-card-border-color, var(--ml-color-border));
53
+ border-radius: var(--ml-profile-card-radius, var(--ml-radius-lg));
49
54
  }
50
55
 
51
56
  /* Subtle gradient banner at top */
52
57
  .ml-profile-card__banner {
53
- height: var(--ml-profile-card-banner-height);
54
- border-radius: var(--ml-profile-card-radius) var(--ml-profile-card-radius) 0 0;
58
+ height: var(--ml-profile-card-banner-height, 80px);
59
+ border-radius: var(--ml-profile-card-radius, var(--ml-radius-lg)) var(--ml-profile-card-radius, var(--ml-radius-lg)) 0 0;
55
60
  background: linear-gradient(
56
61
  135deg,
57
- var(--ml-profile-card-banner-from),
58
- var(--ml-profile-card-banner-to)
62
+ var(--ml-profile-card-banner-from, var(--ml-color-primary)),
63
+ var(--ml-profile-card-banner-to, var(--ml-color-primary-hover, var(--ml-color-primary)))
59
64
  );
60
- opacity: var(--ml-profile-card-banner-opacity);
65
+ opacity: var(--ml-profile-card-banner-opacity, 0.85);
61
66
  }
62
67
 
63
68
  /* Centered identity area */
@@ -76,7 +81,7 @@ export const profileCardStyles = () => css `
76
81
  display: inline-block;
77
82
  margin-bottom: var(--ml-space-3);
78
83
  border-radius: var(--ml-radius-full);
79
- box-shadow: 0 0 0 4px var(--ml-profile-card-bg), 0 0 0 5px var(--ml-profile-card-avatar-ring-color), var(--ml-profile-card-avatar-shadow);
84
+ box-shadow: 0 0 0 4px var(--ml-profile-card-bg, var(--ml-color-surface)), 0 0 0 5px var(--ml-profile-card-avatar-ring-color, var(--ml-color-border)), var(--ml-profile-card-avatar-shadow, var(--ml-shadow-md));
80
85
  line-height: 0;
81
86
  position: relative;
82
87
  z-index: 1;
@@ -84,29 +89,29 @@ export const profileCardStyles = () => css `
84
89
 
85
90
  .ml-profile-card__avatar ml-avatar {
86
91
  display: block;
87
- --ml-avatar-border-color: var(--ml-color-border-muted, var(--ml-profile-card-border-color));
92
+ --ml-avatar-border-color: var(--ml-color-border-muted, var(--ml-profile-card-border-color, var(--ml-color-border)));
88
93
  }
89
94
 
90
95
  .ml-profile-card__name {
91
96
  margin: 0;
92
- font-family: var(--ml-profile-card-name-font);
93
- font-size: var(--ml-profile-card-name-size);
94
- font-weight: var(--ml-profile-card-name-weight);
95
- color: var(--ml-profile-card-name-color);
97
+ font-family: var(--ml-profile-card-name-font, 'Cormorant Garamond', 'Georgia', serif);
98
+ font-size: var(--ml-profile-card-name-size, var(--ml-text-xl));
99
+ font-weight: var(--ml-profile-card-name-weight, var(--ml-font-semibold));
100
+ color: var(--ml-profile-card-name-color, var(--ml-color-text));
96
101
  line-height: var(--ml-leading-tight);
97
102
  }
98
103
 
99
104
  .ml-profile-card__subtitle {
100
105
  margin: var(--ml-space-1) 0 0;
101
- font-family: var(--ml-profile-card-subtitle-font);
102
- font-size: var(--ml-profile-card-subtitle-size);
103
- color: var(--ml-profile-card-subtitle-color);
106
+ font-family: var(--ml-profile-card-subtitle-font, var(--ml-font-sans));
107
+ font-size: var(--ml-profile-card-subtitle-size, var(--ml-text-sm));
108
+ color: var(--ml-profile-card-subtitle-color, var(--ml-color-text-muted));
104
109
  }
105
110
 
106
111
  /* Sections */
107
112
  .ml-profile-card__section {
108
113
  padding: var(--ml-space-4) var(--ml-space-5);
109
- border-top: var(--ml-profile-card-border-width) solid var(--ml-profile-card-border-color);
114
+ border-top: var(--ml-profile-card-border-width, var(--ml-border)) solid var(--ml-profile-card-border-color, var(--ml-color-border));
110
115
  }
111
116
 
112
117
  .ml-profile-card__section--hidden {
@@ -115,10 +120,10 @@ export const profileCardStyles = () => css `
115
120
 
116
121
  .ml-profile-card__section-label {
117
122
  width: 100%;
118
- font-family: var(--ml-profile-card-section-label-font);
119
- font-size: var(--ml-profile-card-section-label-size);
120
- font-weight: var(--ml-profile-card-section-label-weight);
121
- color: var(--ml-profile-card-section-label-color);
123
+ font-family: var(--ml-profile-card-section-label-font, var(--ml-font-sans));
124
+ font-size: var(--ml-profile-card-section-label-size, var(--ml-text-xs));
125
+ font-weight: var(--ml-profile-card-section-label-weight, var(--ml-font-semibold));
126
+ color: var(--ml-profile-card-section-label-color, var(--ml-color-text-muted));
122
127
  text-transform: uppercase;
123
128
  letter-spacing: 0.06em;
124
129
  margin-bottom: var(--ml-space-1);
@@ -140,9 +145,9 @@ export const profileCardStyles = () => css `
140
145
  display: flex;
141
146
  flex-direction: column;
142
147
  gap: var(--ml-space-2);
143
- font-family: var(--ml-profile-card-detail-font);
144
- font-size: var(--ml-profile-card-detail-size);
145
- color: var(--ml-profile-card-detail-color);
148
+ font-family: var(--ml-profile-card-detail-font, var(--ml-font-sans));
149
+ font-size: var(--ml-profile-card-detail-size, var(--ml-text-sm));
150
+ color: var(--ml-profile-card-detail-color, var(--ml-color-text-secondary));
146
151
  }
147
152
 
148
153
  .ml-profile-card__details.ml-profile-card__section--hidden {
@@ -171,9 +176,9 @@ export const profileCardStyles = () => css `
171
176
  display: flex;
172
177
  flex-direction: column;
173
178
  gap: var(--ml-space-2);
174
- font-family: var(--ml-profile-card-detail-font);
175
- font-size: var(--ml-profile-card-detail-size);
176
- color: var(--ml-profile-card-detail-color);
179
+ font-family: var(--ml-profile-card-detail-font, var(--ml-font-sans));
180
+ font-size: var(--ml-profile-card-detail-size, var(--ml-text-sm));
181
+ color: var(--ml-profile-card-detail-color, var(--ml-color-text-secondary));
177
182
  }
178
183
 
179
184
  .ml-profile-card__meta.ml-profile-card__section--hidden {
@@ -1 +1 @@
1
- {"version":3,"file":"stat-card.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/stat-card/stat-card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,iDAqH1B,CAAC"}
1
+ {"version":3,"file":"stat-card.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/stat-card/stat-card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,iDAyH1B,CAAC"}
@@ -1,54 +1,58 @@
1
1
  import { css } from '@melodicdev/core';
2
2
  export const statCardStyles = () => css `
3
+ /*
4
+ * Tokens. Rules read each one with its default as the var() fallback,
5
+ * so a value set on the element or inherited from any ancestor wins.
6
+ *
7
+ * Stat Card: surface
8
+ * --ml-stat-card-bg: var(--ml-color-surface)
9
+ * --ml-stat-card-border-width: var(--ml-border)
10
+ * --ml-stat-card-border-color: var(--ml-color-border)
11
+ * --ml-stat-card-radius: var(--ml-radius-lg)
12
+ * --ml-stat-card-padding: var(--ml-space-5) var(--ml-space-6)
13
+ * --ml-stat-card-shadow: var(--ml-shadow-xs)
14
+ *
15
+ * Stat Card: label
16
+ * --ml-stat-card-label-font: var(--ml-font-sans)
17
+ * --ml-stat-card-label-size: var(--ml-text-xs)
18
+ * --ml-stat-card-label-weight: var(--ml-font-semibold)
19
+ * --ml-stat-card-label-color: var(--ml-color-text-muted)
20
+ *
21
+ * Stat Card: icon
22
+ * --ml-stat-card-icon-size: 36px
23
+ * --ml-stat-card-icon-bg: var(--ml-color-surface-raised, var(--ml-color-surface-sunken))
24
+ * --ml-stat-card-icon-color: var(--ml-color-text-tertiary)
25
+ * --ml-stat-card-icon-radius: var(--ml-radius)
26
+ *
27
+ * Stat Card: value
28
+ * --ml-stat-card-value-color: var(--ml-color-text)
29
+ * --ml-stat-card-value-font: 'Cormorant Garamond', 'Georgia', serif
30
+ * --ml-stat-card-value-size: 2.5rem
31
+ * --ml-stat-card-value-weight: 300
32
+ * --ml-stat-card-value-sans-size: 2rem
33
+ *
34
+ * Stat Card: trend
35
+ * --ml-stat-card-trend-font: var(--ml-font-sans)
36
+ * --ml-stat-card-trend-size: var(--ml-text-xs)
37
+ * --ml-stat-card-trend-color: var(--ml-color-text-muted)
38
+ * --ml-stat-card-trend-up-color: var(--ml-color-success)
39
+ * --ml-stat-card-trend-down-color: var(--ml-color-error)
40
+ *
41
+ * --ml-stat-card-min-width: 200px
42
+ */
43
+
3
44
  :host {
4
45
  display: block;
5
46
 
6
- /* ── Stat Card: host ── */
7
- --ml-stat-card-min-width: 200px;
8
-
9
- /* ── Stat Card: surface ── */
10
- --ml-stat-card-bg: var(--ml-color-surface);
11
- --ml-stat-card-border-width: var(--ml-border);
12
- --ml-stat-card-border-color: var(--ml-color-border);
13
- --ml-stat-card-radius: var(--ml-radius-lg);
14
- --ml-stat-card-padding: var(--ml-space-5) var(--ml-space-6);
15
- --ml-stat-card-shadow: var(--ml-shadow-xs);
16
-
17
- /* ── Stat Card: label ── */
18
- --ml-stat-card-label-font: var(--ml-font-sans);
19
- --ml-stat-card-label-size: var(--ml-text-xs);
20
- --ml-stat-card-label-weight: var(--ml-font-semibold);
21
- --ml-stat-card-label-color: var(--ml-color-text-muted);
22
-
23
- /* ── Stat Card: icon ── */
24
- --ml-stat-card-icon-size: 36px;
25
- --ml-stat-card-icon-bg: var(--ml-color-surface-raised, var(--ml-color-surface-sunken));
26
- --ml-stat-card-icon-color: var(--ml-color-text-tertiary);
27
- --ml-stat-card-icon-radius: var(--ml-radius);
28
-
29
- /* ── Stat Card: value ── */
30
- --ml-stat-card-value-color: var(--ml-color-text);
31
- --ml-stat-card-value-font: 'Cormorant Garamond', 'Georgia', serif;
32
- --ml-stat-card-value-size: 2.5rem;
33
- --ml-stat-card-value-weight: 300;
34
- --ml-stat-card-value-sans-size: 2rem;
35
-
36
- /* ── Stat Card: trend ── */
37
- --ml-stat-card-trend-font: var(--ml-font-sans);
38
- --ml-stat-card-trend-size: var(--ml-text-xs);
39
- --ml-stat-card-trend-color: var(--ml-color-text-muted);
40
- --ml-stat-card-trend-up-color: var(--ml-color-success);
41
- --ml-stat-card-trend-down-color: var(--ml-color-error);
42
-
43
- min-width: var(--ml-stat-card-min-width);
47
+ min-width: var(--ml-stat-card-min-width, 200px);
44
48
  }
45
49
 
46
50
  .ml-stat-card {
47
- background-color: var(--ml-stat-card-bg);
48
- border: var(--ml-stat-card-border-width) solid var(--ml-stat-card-border-color);
49
- border-radius: var(--ml-stat-card-radius);
50
- padding: var(--ml-stat-card-padding);
51
- box-shadow: var(--ml-stat-card-shadow);
51
+ background-color: var(--ml-stat-card-bg, var(--ml-color-surface));
52
+ border: var(--ml-stat-card-border-width, var(--ml-border)) solid var(--ml-stat-card-border-color, var(--ml-color-border));
53
+ border-radius: var(--ml-stat-card-radius, var(--ml-radius-lg));
54
+ padding: var(--ml-stat-card-padding, var(--ml-space-5) var(--ml-space-6));
55
+ box-shadow: var(--ml-stat-card-shadow, var(--ml-shadow-xs));
52
56
  }
53
57
 
54
58
  .ml-stat-card__header {
@@ -60,10 +64,10 @@ export const statCardStyles = () => css `
60
64
  }
61
65
 
62
66
  .ml-stat-card__label {
63
- font-family: var(--ml-stat-card-label-font);
64
- font-size: var(--ml-stat-card-label-size);
65
- font-weight: var(--ml-stat-card-label-weight);
66
- color: var(--ml-stat-card-label-color);
67
+ font-family: var(--ml-stat-card-label-font, var(--ml-font-sans));
68
+ font-size: var(--ml-stat-card-label-size, var(--ml-text-xs));
69
+ font-weight: var(--ml-stat-card-label-weight, var(--ml-font-semibold));
70
+ color: var(--ml-stat-card-label-color, var(--ml-color-text-muted));
67
71
  text-transform: uppercase;
68
72
  letter-spacing: 0.05em;
69
73
  }
@@ -72,48 +76,48 @@ export const statCardStyles = () => css `
72
76
  display: flex;
73
77
  align-items: center;
74
78
  justify-content: center;
75
- width: var(--ml-stat-card-icon-size);
76
- height: var(--ml-stat-card-icon-size);
77
- border-radius: var(--ml-stat-card-icon-radius);
78
- background-color: var(--ml-stat-card-icon-bg);
79
- color: var(--ml-stat-card-icon-color);
79
+ width: var(--ml-stat-card-icon-size, 36px);
80
+ height: var(--ml-stat-card-icon-size, 36px);
81
+ border-radius: var(--ml-stat-card-icon-radius, var(--ml-radius));
82
+ background-color: var(--ml-stat-card-icon-bg, var(--ml-color-surface-raised, var(--ml-color-surface-sunken)));
83
+ color: var(--ml-stat-card-icon-color, var(--ml-color-text-tertiary));
80
84
  flex-shrink: 0;
81
85
  }
82
86
 
83
87
  .ml-stat-card__value {
84
- color: var(--ml-stat-card-value-color);
88
+ color: var(--ml-stat-card-value-color, var(--ml-color-text));
85
89
  line-height: 1.1;
86
90
  margin-bottom: var(--ml-space-1);
87
91
  }
88
92
 
89
93
  .ml-stat-card__value--serif {
90
- font-family: var(--ml-stat-card-value-font);
91
- font-size: var(--ml-stat-card-value-size);
92
- font-weight: var(--ml-stat-card-value-weight);
94
+ font-family: var(--ml-stat-card-value-font, 'Cormorant Garamond', 'Georgia', serif);
95
+ font-size: var(--ml-stat-card-value-size, 2.5rem);
96
+ font-weight: var(--ml-stat-card-value-weight, 300);
93
97
  }
94
98
 
95
99
  .ml-stat-card__value--sans {
96
100
  font-family: var(--ml-font-sans);
97
- font-size: var(--ml-stat-card-value-sans-size);
101
+ font-size: var(--ml-stat-card-value-sans-size, 2rem);
98
102
  font-weight: var(--ml-font-bold);
99
103
  }
100
104
 
101
105
  .ml-stat-card__trend {
102
- font-family: var(--ml-stat-card-trend-font);
103
- font-size: var(--ml-stat-card-trend-size);
104
- color: var(--ml-stat-card-trend-color);
106
+ font-family: var(--ml-stat-card-trend-font, var(--ml-font-sans));
107
+ font-size: var(--ml-stat-card-trend-size, var(--ml-text-xs));
108
+ color: var(--ml-stat-card-trend-color, var(--ml-color-text-muted));
105
109
  line-height: var(--ml-leading-normal);
106
110
  }
107
111
 
108
112
  .ml-stat-card__trend--up {
109
- color: var(--ml-stat-card-trend-up-color);
113
+ color: var(--ml-stat-card-trend-up-color, var(--ml-color-success));
110
114
  }
111
115
 
112
116
  .ml-stat-card__trend--down {
113
- color: var(--ml-stat-card-trend-down-color);
117
+ color: var(--ml-stat-card-trend-down-color, var(--ml-color-error));
114
118
  }
115
119
 
116
120
  .ml-stat-card__trend--neutral {
117
- color: var(--ml-stat-card-trend-color);
121
+ color: var(--ml-stat-card-trend-color, var(--ml-color-text-muted));
118
122
  }
119
123
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table/table.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAoTvB,CAAC"}
1
+ {"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table/table.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAyTvB,CAAC"}