@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,38 +1,43 @@
1
1
  import { css } from '@melodicdev/core';
2
2
  export const dashboardPageStyles = () => 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
+ * Font
8
+ * --ml-dashboard-font-family: var(--ml-font-sans)
9
+ *
10
+ * Padding
11
+ * --ml-dashboard-padding: var(--ml-space-6)
12
+ * --ml-dashboard-mobile-padding: var(--ml-space-4)
13
+ *
14
+ * Metrics grid
15
+ * --ml-dashboard-metrics-min-width: 200px
16
+ * --ml-dashboard-metrics-gap: var(--ml-space-4)
17
+ * --ml-dashboard-metrics-margin: var(--ml-space-6)
18
+ * --ml-dashboard-metrics-mobile-gap: var(--ml-space-3)
19
+ * --ml-dashboard-metrics-mobile-margin: var(--ml-space-4)
20
+ *
21
+ * Body grid
22
+ * --ml-dashboard-body-gap: var(--ml-space-6)
23
+ * --ml-dashboard-body-mobile-gap: var(--ml-space-4)
24
+ *
25
+ * Main & aside
26
+ * --ml-dashboard-main-gap: var(--ml-space-6)
27
+ * --ml-dashboard-aside-gap: var(--ml-space-6)
28
+ */
29
+
3
30
  :host {
4
31
  display: block;
5
32
  height: 100%;
6
-
7
- /* Font */
8
- --ml-dashboard-font-family: var(--ml-font-sans);
9
-
10
- /* Padding */
11
- --ml-dashboard-padding: var(--ml-space-6);
12
- --ml-dashboard-mobile-padding: var(--ml-space-4);
13
-
14
- /* Metrics grid */
15
- --ml-dashboard-metrics-min-width: 200px;
16
- --ml-dashboard-metrics-gap: var(--ml-space-4);
17
- --ml-dashboard-metrics-margin: var(--ml-space-6);
18
- --ml-dashboard-metrics-mobile-gap: var(--ml-space-3);
19
- --ml-dashboard-metrics-mobile-margin: var(--ml-space-4);
20
-
21
- /* Body grid */
22
- --ml-dashboard-body-gap: var(--ml-space-6);
23
- --ml-dashboard-body-mobile-gap: var(--ml-space-4);
24
-
25
- /* Main & aside */
26
- --ml-dashboard-main-gap: var(--ml-space-6);
27
- --ml-dashboard-aside-gap: var(--ml-space-6);
28
33
  }
29
34
 
30
35
  /* ============================================
31
36
  DASHBOARD CONTENT AREA
32
37
  ============================================ */
33
38
  .ml-dashboard {
34
- padding: var(--ml-dashboard-padding);
35
- font-family: var(--ml-dashboard-font-family);
39
+ padding: var(--ml-dashboard-padding, var(--ml-space-6));
40
+ font-family: var(--ml-dashboard-font-family, var(--ml-font-sans));
36
41
  }
37
42
 
38
43
  /* ============================================
@@ -40,9 +45,9 @@ export const dashboardPageStyles = () => css `
40
45
  ============================================ */
41
46
  .ml-dashboard__metrics {
42
47
  display: grid;
43
- grid-template-columns: repeat(auto-fit, minmax(var(--ml-dashboard-metrics-min-width), 1fr));
44
- gap: var(--ml-dashboard-metrics-gap);
45
- margin-bottom: var(--ml-dashboard-metrics-margin);
48
+ grid-template-columns: repeat(auto-fit, minmax(var(--ml-dashboard-metrics-min-width, 200px), 1fr));
49
+ gap: var(--ml-dashboard-metrics-gap, var(--ml-space-4));
50
+ margin-bottom: var(--ml-dashboard-metrics-margin, var(--ml-space-6));
46
51
  }
47
52
 
48
53
  /* ============================================
@@ -51,7 +56,7 @@ export const dashboardPageStyles = () => css `
51
56
  .ml-dashboard__body {
52
57
  display: grid;
53
58
  grid-template-columns: 1fr;
54
- gap: var(--ml-dashboard-body-gap);
59
+ gap: var(--ml-dashboard-body-gap, var(--ml-space-6));
55
60
  }
56
61
 
57
62
  /* Default layout: 2/3 main + 1/3 aside */
@@ -76,7 +81,7 @@ export const dashboardPageStyles = () => css `
76
81
  min-width: 0;
77
82
  display: flex;
78
83
  flex-direction: column;
79
- gap: var(--ml-dashboard-main-gap);
84
+ gap: var(--ml-dashboard-main-gap, var(--ml-space-6));
80
85
  }
81
86
 
82
87
  /* ============================================
@@ -86,7 +91,7 @@ export const dashboardPageStyles = () => css `
86
91
  min-width: 0;
87
92
  display: flex;
88
93
  flex-direction: column;
89
- gap: var(--ml-dashboard-aside-gap);
94
+ gap: var(--ml-dashboard-aside-gap, var(--ml-space-6));
90
95
  }
91
96
 
92
97
  /* ============================================
@@ -100,17 +105,17 @@ export const dashboardPageStyles = () => css `
100
105
 
101
106
  @media (max-width: 640px) {
102
107
  .ml-dashboard {
103
- padding: var(--ml-dashboard-mobile-padding);
108
+ padding: var(--ml-dashboard-mobile-padding, var(--ml-space-4));
104
109
  }
105
110
 
106
111
  .ml-dashboard__metrics {
107
112
  grid-template-columns: 1fr;
108
- gap: var(--ml-dashboard-metrics-mobile-gap);
109
- margin-bottom: var(--ml-dashboard-metrics-mobile-margin);
113
+ gap: var(--ml-dashboard-metrics-mobile-gap, var(--ml-space-3));
114
+ margin-bottom: var(--ml-dashboard-metrics-mobile-margin, var(--ml-space-4));
110
115
  }
111
116
 
112
117
  .ml-dashboard__body {
113
- gap: var(--ml-dashboard-body-mobile-gap);
118
+ gap: var(--ml-dashboard-body-mobile-gap, var(--ml-space-4));
114
119
  }
115
120
  }
116
121
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"app-shell.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,iDAyO1B,CAAC"}
1
+ {"version":3,"file":"app-shell.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,iDA+O1B,CAAC"}
@@ -1,43 +1,49 @@
1
1
  import { css } from '@melodicdev/core';
2
2
  export const appShellStyles = () => 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
+ * Border
8
+ * --ml-app-shell-border-width: var(--ml-border)
9
+ * --ml-app-shell-border-color: var(--ml-color-border)
10
+ *
11
+ * Header
12
+ * --ml-app-shell-header-bg: var(--ml-color-surface)
13
+ *
14
+ * Mobile sidebar
15
+ * --ml-app-shell-sidebar-width: var(--ml-sidebar-width, 280px)
16
+ * --ml-app-shell-sidebar-collapsed-width: var(--ml-sidebar-collapsed-width, 64px)
17
+ * --ml-app-shell-sidebar-bg: var(--ml-color-surface)
18
+ * --ml-app-shell-sidebar-transition: var(--ml-duration-200)
19
+ *
20
+ * Backdrop
21
+ * --ml-app-shell-backdrop-bg: rgba(0, 0, 0, 0.4)
22
+ * --ml-app-shell-backdrop-transition: var(--ml-duration-200)
23
+ *
24
+ * Menu button
25
+ * --ml-app-shell-menu-btn-size: 36px
26
+ * --ml-app-shell-menu-btn-margin: var(--ml-space-3)
27
+ * --ml-app-shell-menu-btn-radius: var(--ml-radius)
28
+ * --ml-app-shell-menu-btn-color: var(--ml-color-text-secondary)
29
+ * --ml-app-shell-menu-btn-hover-bg: var(--ml-color-surface-secondary)
30
+ * --ml-app-shell-menu-btn-hover-color: var(--ml-color-text)
31
+ * --ml-app-shell-menu-btn-focus-color: var(--ml-color-primary)
32
+ * --ml-app-shell-menu-btn-transition: var(--ml-duration-150)
33
+ *
34
+ * Scrollbar
35
+ * --ml-app-shell-scrollbar-width: 6px
36
+ * --ml-app-shell-scrollbar-thumb-color: var(--ml-color-border)
37
+ * --ml-app-shell-scrollbar-thumb-radius: var(--ml-radius-full)
38
+ */
39
+
3
40
  :host {
4
41
  display: block;
5
42
  height: 100%;
6
43
 
7
- /* Border */
8
- --ml-app-shell-border-width: var(--ml-border);
9
- --ml-app-shell-border-color: var(--ml-color-border);
10
-
11
- /* Header */
12
- --ml-app-shell-header-bg: var(--ml-color-surface);
13
-
14
- /* Mobile sidebar */
15
- --ml-app-shell-sidebar-width: var(--ml-sidebar-width, 280px);
16
- --ml-app-shell-sidebar-collapsed-width: var(--ml-sidebar-collapsed-width, 64px);
17
44
  /* Viewport width below which the sidebar becomes a drawer. Kept in one
18
45
  place so the CSS media query and the component's matchMedia agree. */
19
46
  --ml-app-shell-mobile-breakpoint: 768px;
20
- --ml-app-shell-sidebar-bg: var(--ml-color-surface);
21
- --ml-app-shell-sidebar-transition: var(--ml-duration-200);
22
-
23
- /* Backdrop */
24
- --ml-app-shell-backdrop-bg: rgba(0, 0, 0, 0.4);
25
- --ml-app-shell-backdrop-transition: var(--ml-duration-200);
26
-
27
- /* Menu button */
28
- --ml-app-shell-menu-btn-size: 36px;
29
- --ml-app-shell-menu-btn-margin: var(--ml-space-3);
30
- --ml-app-shell-menu-btn-radius: var(--ml-radius);
31
- --ml-app-shell-menu-btn-color: var(--ml-color-text-secondary);
32
- --ml-app-shell-menu-btn-hover-bg: var(--ml-color-surface-secondary);
33
- --ml-app-shell-menu-btn-hover-color: var(--ml-color-text);
34
- --ml-app-shell-menu-btn-focus-color: var(--ml-color-primary);
35
- --ml-app-shell-menu-btn-transition: var(--ml-duration-150);
36
-
37
- /* Scrollbar */
38
- --ml-app-shell-scrollbar-width: 6px;
39
- --ml-app-shell-scrollbar-thumb-color: var(--ml-color-border);
40
- --ml-app-shell-scrollbar-thumb-radius: var(--ml-radius-full);
41
47
  }
42
48
 
43
49
  /* ============================================
@@ -57,9 +63,9 @@ export const appShellStyles = () => css `
57
63
  * icon-only collapse did nothing.
58
64
  */
59
65
  .ml-app-shell--sidebar-collapsed .ml-app-shell__sidebar {
60
- width: var(--ml-app-shell-sidebar-collapsed-width);
61
- min-width: var(--ml-app-shell-sidebar-collapsed-width);
62
- transition: width var(--ml-app-shell-sidebar-transition) var(--ml-ease-in-out);
66
+ width: var(--ml-app-shell-sidebar-collapsed-width, var(--ml-sidebar-collapsed-width, 64px));
67
+ min-width: var(--ml-app-shell-sidebar-collapsed-width, var(--ml-sidebar-collapsed-width, 64px));
68
+ transition: width var(--ml-app-shell-sidebar-transition, var(--ml-duration-200)) var(--ml-ease-in-out);
63
69
  }
64
70
 
65
71
  /* Sidebar on the right */
@@ -69,7 +75,7 @@ export const appShellStyles = () => css `
69
75
 
70
76
  .ml-app-shell--sidebar-right .ml-app-shell__sidebar {
71
77
  order: 2;
72
- border-left: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
78
+ border-left: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
73
79
  border-right: none;
74
80
  }
75
81
 
@@ -83,7 +89,7 @@ export const appShellStyles = () => css `
83
89
  .ml-app-shell__sidebar {
84
90
  grid-row: 1 / -1;
85
91
  overflow: hidden;
86
- border-right: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
92
+ border-right: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
87
93
  }
88
94
 
89
95
  ::slotted([slot="sidebar"]) {
@@ -107,8 +113,8 @@ export const appShellStyles = () => css `
107
113
  display: flex;
108
114
  align-items: center;
109
115
  flex-shrink: 0;
110
- border-bottom: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
111
- background-color: var(--ml-app-shell-header-bg);
116
+ border-bottom: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
117
+ background-color: var(--ml-app-shell-header-bg, var(--ml-color-surface));
112
118
  }
113
119
 
114
120
  .ml-app-shell__header:empty {
@@ -133,7 +139,7 @@ export const appShellStyles = () => css `
133
139
 
134
140
  /* Scrollbar styling */
135
141
  .ml-app-shell__content::-webkit-scrollbar {
136
- width: var(--ml-app-shell-scrollbar-width);
142
+ width: var(--ml-app-shell-scrollbar-width, 6px);
137
143
  }
138
144
 
139
145
  .ml-app-shell__content::-webkit-scrollbar-track {
@@ -141,8 +147,8 @@ export const appShellStyles = () => css `
141
147
  }
142
148
 
143
149
  .ml-app-shell__content::-webkit-scrollbar-thumb {
144
- background-color: var(--ml-app-shell-scrollbar-thumb-color);
145
- border-radius: var(--ml-app-shell-scrollbar-thumb-radius);
150
+ background-color: var(--ml-app-shell-scrollbar-thumb-color, var(--ml-color-border));
151
+ border-radius: var(--ml-app-shell-scrollbar-thumb-radius, var(--ml-radius-full));
146
152
  }
147
153
 
148
154
  /* ============================================
@@ -153,25 +159,25 @@ export const appShellStyles = () => css `
153
159
  align-items: center;
154
160
  justify-content: center;
155
161
  flex-shrink: 0;
156
- width: var(--ml-app-shell-menu-btn-size);
157
- height: var(--ml-app-shell-menu-btn-size);
158
- margin-left: var(--ml-app-shell-menu-btn-margin);
162
+ width: var(--ml-app-shell-menu-btn-size, 36px);
163
+ height: var(--ml-app-shell-menu-btn-size, 36px);
164
+ margin-left: var(--ml-app-shell-menu-btn-margin, var(--ml-space-3));
159
165
  padding: 0;
160
166
  border: none;
161
- border-radius: var(--ml-app-shell-menu-btn-radius);
167
+ border-radius: var(--ml-app-shell-menu-btn-radius, var(--ml-radius));
162
168
  background: transparent;
163
- color: var(--ml-app-shell-menu-btn-color);
169
+ color: var(--ml-app-shell-menu-btn-color, var(--ml-color-text-secondary));
164
170
  cursor: pointer;
165
- transition: background-color var(--ml-app-shell-menu-btn-transition) var(--ml-ease-in-out);
171
+ transition: background-color var(--ml-app-shell-menu-btn-transition, var(--ml-duration-150)) var(--ml-ease-in-out);
166
172
  }
167
173
 
168
174
  .ml-app-shell__menu-btn:hover {
169
- background-color: var(--ml-app-shell-menu-btn-hover-bg);
170
- color: var(--ml-app-shell-menu-btn-hover-color);
175
+ background-color: var(--ml-app-shell-menu-btn-hover-bg, var(--ml-color-surface-secondary));
176
+ color: var(--ml-app-shell-menu-btn-hover-color, var(--ml-color-text));
171
177
  }
172
178
 
173
179
  .ml-app-shell__menu-btn:focus-visible {
174
- outline: 2px solid var(--ml-app-shell-menu-btn-focus-color);
180
+ outline: 2px solid var(--ml-app-shell-menu-btn-focus-color, var(--ml-color-primary));
175
181
  outline-offset: -2px;
176
182
  }
177
183
 
@@ -196,18 +202,18 @@ export const appShellStyles = () => css `
196
202
  left: 0;
197
203
  bottom: 0;
198
204
  z-index: 50;
199
- width: var(--ml-app-shell-sidebar-width);
205
+ width: var(--ml-app-shell-sidebar-width, var(--ml-sidebar-width, 280px));
200
206
  transform: translateX(-100%);
201
- transition: transform var(--ml-app-shell-sidebar-transition) var(--ml-ease-in-out);
202
- border-right: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
203
- background-color: var(--ml-app-shell-sidebar-bg);
207
+ transition: transform var(--ml-app-shell-sidebar-transition, var(--ml-duration-200)) var(--ml-ease-in-out);
208
+ border-right: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
209
+ background-color: var(--ml-app-shell-sidebar-bg, var(--ml-color-surface));
204
210
  }
205
211
 
206
212
  .ml-app-shell--sidebar-right .ml-app-shell__sidebar {
207
213
  left: auto;
208
214
  right: 0;
209
215
  transform: translateX(100%);
210
- border-left: var(--ml-app-shell-border-width) solid var(--ml-app-shell-border-color);
216
+ border-left: var(--ml-app-shell-border-width, var(--ml-border)) solid var(--ml-app-shell-border-color, var(--ml-color-border));
211
217
  border-right: none;
212
218
  }
213
219
 
@@ -221,10 +227,10 @@ export const appShellStyles = () => css `
221
227
  position: fixed;
222
228
  inset: 0;
223
229
  z-index: 40;
224
- background-color: var(--ml-app-shell-backdrop-bg);
230
+ background-color: var(--ml-app-shell-backdrop-bg, rgba(0, 0, 0, 0.4));
225
231
  opacity: 0;
226
232
  pointer-events: none;
227
- transition: opacity var(--ml-app-shell-backdrop-transition) var(--ml-ease-in-out);
233
+ transition: opacity var(--ml-app-shell-backdrop-transition, var(--ml-duration-200)) var(--ml-ease-in-out);
228
234
  }
229
235
 
230
236
  .ml-app-shell__backdrop--visible {
@@ -1,70 +1,70 @@
1
1
  import { css } from '@melodicdev/core';
2
2
  export const heroSectionStyles = () => 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
+ * Font
8
+ * --ml-hero-font-family: var(--ml-font-sans)
9
+ *
10
+ * Size: sm
11
+ * --ml-hero-sm-padding: var(--ml-space-12) var(--ml-space-6)
12
+ * --ml-hero-sm-title-size: var(--ml-text-3xl)
13
+ * --ml-hero-sm-description-size: var(--ml-text-base)
14
+ *
15
+ * Size: md
16
+ * --ml-hero-md-padding: var(--ml-space-20) var(--ml-space-6)
17
+ * --ml-hero-md-title-size: var(--ml-text-4xl)
18
+ * --ml-hero-md-description-size: var(--ml-text-lg)
19
+ *
20
+ * Size: lg
21
+ * --ml-hero-lg-padding: calc(var(--ml-space-20) + var(--ml-space-10)) var(--ml-space-6)
22
+ * --ml-hero-lg-title-size: var(--ml-text-5xl)
23
+ * --ml-hero-lg-description-size: var(--ml-text-xl)
24
+ *
25
+ * Background variants
26
+ * --ml-hero-bg-subtle: var(--ml-color-surface-secondary)
27
+ * --ml-hero-bg-gradient: linear-gradient( 135deg, var(--ml-color-primary-subtle) 0%, var(--ml-color-surface) 50%, var(--ml-color-success-subtle, var(--ml-color-surface-secondary)) 100% )
28
+ *
29
+ * Container
30
+ * --ml-hero-container-max-width: var(--ml-container-xl, 1280px)
31
+ * --ml-hero-content-max-width: 800px
32
+ * --ml-hero-split-gap: var(--ml-space-12)
33
+ *
34
+ * Eyebrow
35
+ * --ml-hero-eyebrow-margin-bottom: var(--ml-space-4)
36
+ * --ml-hero-eyebrow-font-size: var(--ml-text-sm)
37
+ * --ml-hero-eyebrow-font-weight: var(--ml-font-semibold)
38
+ * --ml-hero-eyebrow-color: var(--ml-color-primary)
39
+ * --ml-hero-eyebrow-letter-spacing: 0.05em
40
+ *
41
+ * Title
42
+ * --ml-hero-title-margin-bottom: var(--ml-space-4)
43
+ * --ml-hero-title-font-weight: var(--ml-font-bold)
44
+ * --ml-hero-title-color: var(--ml-color-text)
45
+ * --ml-hero-title-letter-spacing: -0.025em
46
+ * --ml-hero-title-line-height: var(--ml-leading-tight)
47
+ *
48
+ * Description
49
+ * --ml-hero-description-margin-bottom: var(--ml-space-8)
50
+ * --ml-hero-description-color: var(--ml-color-text-secondary)
51
+ * --ml-hero-description-line-height: var(--ml-leading-relaxed)
52
+ * --ml-hero-description-max-width: 640px
53
+ *
54
+ * Actions
55
+ * --ml-hero-actions-gap: var(--ml-space-3)
56
+ *
57
+ * Media
58
+ * --ml-hero-media-radius: var(--ml-radius-lg)
59
+ * --ml-hero-media-below-margin: var(--ml-space-10)
60
+ *
61
+ * Social proof
62
+ * --ml-hero-social-proof-margin: var(--ml-space-10)
63
+ */
64
+
3
65
  :host {
4
66
  display: block;
5
67
  width: 100%;
6
-
7
- /* Font */
8
- --ml-hero-font-family: var(--ml-font-sans);
9
-
10
- /* Size: sm */
11
- --ml-hero-sm-padding: var(--ml-space-12) var(--ml-space-6);
12
- --ml-hero-sm-title-size: var(--ml-text-3xl);
13
- --ml-hero-sm-description-size: var(--ml-text-base);
14
-
15
- /* Size: md */
16
- --ml-hero-md-padding: var(--ml-space-20) var(--ml-space-6);
17
- --ml-hero-md-title-size: var(--ml-text-4xl);
18
- --ml-hero-md-description-size: var(--ml-text-lg);
19
-
20
- /* Size: lg */
21
- --ml-hero-lg-padding: calc(var(--ml-space-20) + var(--ml-space-10)) var(--ml-space-6);
22
- --ml-hero-lg-title-size: var(--ml-text-5xl);
23
- --ml-hero-lg-description-size: var(--ml-text-xl);
24
-
25
- /* Background variants */
26
- --ml-hero-bg-subtle: var(--ml-color-surface-secondary);
27
- --ml-hero-bg-gradient: linear-gradient(
28
- 135deg,
29
- var(--ml-color-primary-subtle) 0%,
30
- var(--ml-color-surface) 50%,
31
- var(--ml-color-success-subtle, var(--ml-color-surface-secondary)) 100%
32
- );
33
-
34
- /* Container */
35
- --ml-hero-container-max-width: var(--ml-container-xl, 1280px);
36
- --ml-hero-content-max-width: 800px;
37
- --ml-hero-split-gap: var(--ml-space-12);
38
-
39
- /* Eyebrow */
40
- --ml-hero-eyebrow-margin-bottom: var(--ml-space-4);
41
- --ml-hero-eyebrow-font-size: var(--ml-text-sm);
42
- --ml-hero-eyebrow-font-weight: var(--ml-font-semibold);
43
- --ml-hero-eyebrow-color: var(--ml-color-primary);
44
- --ml-hero-eyebrow-letter-spacing: 0.05em;
45
-
46
- /* Title */
47
- --ml-hero-title-margin-bottom: var(--ml-space-4);
48
- --ml-hero-title-font-weight: var(--ml-font-bold);
49
- --ml-hero-title-color: var(--ml-color-text);
50
- --ml-hero-title-letter-spacing: -0.025em;
51
- --ml-hero-title-line-height: var(--ml-leading-tight);
52
-
53
- /* Description */
54
- --ml-hero-description-margin-bottom: var(--ml-space-8);
55
- --ml-hero-description-color: var(--ml-color-text-secondary);
56
- --ml-hero-description-line-height: var(--ml-leading-relaxed);
57
- --ml-hero-description-max-width: 640px;
58
-
59
- /* Actions */
60
- --ml-hero-actions-gap: var(--ml-space-3);
61
-
62
- /* Media */
63
- --ml-hero-media-radius: var(--ml-radius-lg);
64
- --ml-hero-media-below-margin: var(--ml-space-10);
65
-
66
- /* Social proof */
67
- --ml-hero-social-proof-margin: var(--ml-space-10);
68
68
  }
69
69
 
70
70
  /* ============================================
@@ -73,73 +73,73 @@ export const heroSectionStyles = () => css `
73
73
  .ml-hero {
74
74
  position: relative;
75
75
  width: 100%;
76
- font-family: var(--ml-hero-font-family);
76
+ font-family: var(--ml-hero-font-family, var(--ml-font-sans));
77
77
  }
78
78
 
79
79
  /* ============================================
80
80
  SIZE VARIANTS (padding & font sizes)
81
81
  ============================================ */
82
82
  .ml-hero--sm {
83
- padding: var(--ml-hero-sm-padding);
83
+ padding: var(--ml-hero-sm-padding, var(--ml-space-12) var(--ml-space-6));
84
84
  }
85
85
 
86
86
  .ml-hero--md {
87
- padding: var(--ml-hero-md-padding);
87
+ padding: var(--ml-hero-md-padding, var(--ml-space-20) var(--ml-space-6));
88
88
  }
89
89
 
90
90
  .ml-hero--lg {
91
- padding: var(--ml-hero-lg-padding);
91
+ padding: var(--ml-hero-lg-padding, calc(var(--ml-space-20) + var(--ml-space-10)) var(--ml-space-6));
92
92
  }
93
93
 
94
94
  .ml-hero--sm .ml-hero__title,
95
95
  .ml-hero--sm ::slotted([slot="title"]) {
96
- font-size: var(--ml-hero-sm-title-size);
97
- line-height: var(--ml-hero-title-line-height);
96
+ font-size: var(--ml-hero-sm-title-size, var(--ml-text-3xl));
97
+ line-height: var(--ml-hero-title-line-height, var(--ml-leading-tight));
98
98
  }
99
99
 
100
100
  .ml-hero--md .ml-hero__title,
101
101
  .ml-hero--md ::slotted([slot="title"]) {
102
- font-size: var(--ml-hero-md-title-size);
103
- line-height: var(--ml-hero-title-line-height);
102
+ font-size: var(--ml-hero-md-title-size, var(--ml-text-4xl));
103
+ line-height: var(--ml-hero-title-line-height, var(--ml-leading-tight));
104
104
  }
105
105
 
106
106
  .ml-hero--lg .ml-hero__title,
107
107
  .ml-hero--lg ::slotted([slot="title"]) {
108
- font-size: var(--ml-hero-lg-title-size);
109
- line-height: var(--ml-hero-title-line-height);
108
+ font-size: var(--ml-hero-lg-title-size, var(--ml-text-5xl));
109
+ line-height: var(--ml-hero-title-line-height, var(--ml-leading-tight));
110
110
  }
111
111
 
112
112
  .ml-hero--sm .ml-hero__description,
113
113
  .ml-hero--sm ::slotted([slot="description"]) {
114
- font-size: var(--ml-hero-sm-description-size);
114
+ font-size: var(--ml-hero-sm-description-size, var(--ml-text-base));
115
115
  }
116
116
 
117
117
  .ml-hero--md .ml-hero__description,
118
118
  .ml-hero--md ::slotted([slot="description"]) {
119
- font-size: var(--ml-hero-md-description-size);
119
+ font-size: var(--ml-hero-md-description-size, var(--ml-text-lg));
120
120
  }
121
121
 
122
122
  .ml-hero--lg .ml-hero__description,
123
123
  .ml-hero--lg ::slotted([slot="description"]) {
124
- font-size: var(--ml-hero-lg-description-size);
124
+ font-size: var(--ml-hero-lg-description-size, var(--ml-text-xl));
125
125
  }
126
126
 
127
127
  /* ============================================
128
128
  BACKGROUND VARIANTS
129
129
  ============================================ */
130
130
  .ml-hero--bg-subtle {
131
- background-color: var(--ml-hero-bg-subtle);
131
+ background-color: var(--ml-hero-bg-subtle, var(--ml-color-surface-secondary));
132
132
  }
133
133
 
134
134
  .ml-hero--bg-gradient {
135
- background: var(--ml-hero-bg-gradient);
135
+ background: var(--ml-hero-bg-gradient, linear-gradient( 135deg, var(--ml-color-primary-subtle) 0%, var(--ml-color-surface) 50%, var(--ml-color-success-subtle, var(--ml-color-surface-secondary)) 100% ));
136
136
  }
137
137
 
138
138
  /* ============================================
139
139
  LAYOUT: CONTAINER
140
140
  ============================================ */
141
141
  .ml-hero__container {
142
- max-width: var(--ml-hero-container-max-width);
142
+ max-width: var(--ml-hero-container-max-width, var(--ml-container-xl, 1280px));
143
143
  margin: 0 auto;
144
144
  width: 100%;
145
145
  }
@@ -158,11 +158,11 @@ export const heroSectionStyles = () => css `
158
158
  flex-direction: column;
159
159
  align-items: center;
160
160
  text-align: center;
161
- max-width: var(--ml-hero-content-max-width);
161
+ max-width: var(--ml-hero-content-max-width, 800px);
162
162
  }
163
163
 
164
164
  .ml-hero--centered .ml-hero__media--below {
165
- margin-top: var(--ml-hero-media-below-margin);
165
+ margin-top: var(--ml-hero-media-below-margin, var(--ml-space-10));
166
166
  width: 100%;
167
167
  display: flex;
168
168
  justify-content: center;
@@ -175,7 +175,7 @@ export const heroSectionStyles = () => css `
175
175
  .ml-hero--split-reverse .ml-hero__container {
176
176
  display: grid;
177
177
  grid-template-columns: 1fr 1fr;
178
- gap: var(--ml-hero-split-gap);
178
+ gap: var(--ml-hero-split-gap, var(--ml-space-12));
179
179
  align-items: center;
180
180
  }
181
181
 
@@ -200,36 +200,36 @@ export const heroSectionStyles = () => css `
200
200
  /* Eyebrow */
201
201
  ::slotted([slot="eyebrow"]) {
202
202
  display: inline-block;
203
- margin-bottom: var(--ml-hero-eyebrow-margin-bottom);
204
- font-size: var(--ml-hero-eyebrow-font-size);
205
- font-weight: var(--ml-hero-eyebrow-font-weight);
206
- color: var(--ml-hero-eyebrow-color);
203
+ margin-bottom: var(--ml-hero-eyebrow-margin-bottom, var(--ml-space-4));
204
+ font-size: var(--ml-hero-eyebrow-font-size, var(--ml-text-sm));
205
+ font-weight: var(--ml-hero-eyebrow-font-weight, var(--ml-font-semibold));
206
+ color: var(--ml-hero-eyebrow-color, var(--ml-color-primary));
207
207
  text-transform: uppercase;
208
- letter-spacing: var(--ml-hero-eyebrow-letter-spacing);
208
+ letter-spacing: var(--ml-hero-eyebrow-letter-spacing, 0.05em);
209
209
  }
210
210
 
211
211
  /* Title */
212
212
  .ml-hero__title,
213
213
  ::slotted([slot="title"]) {
214
- margin: 0 0 var(--ml-hero-title-margin-bottom) 0;
215
- font-weight: var(--ml-hero-title-font-weight);
216
- color: var(--ml-hero-title-color);
217
- letter-spacing: var(--ml-hero-title-letter-spacing);
214
+ margin: 0 0 var(--ml-hero-title-margin-bottom, var(--ml-space-4)) 0;
215
+ font-weight: var(--ml-hero-title-font-weight, var(--ml-font-bold));
216
+ color: var(--ml-hero-title-color, var(--ml-color-text));
217
+ letter-spacing: var(--ml-hero-title-letter-spacing, -0.025em);
218
218
  }
219
219
 
220
220
  /* Description */
221
221
  .ml-hero__description,
222
222
  ::slotted([slot="description"]) {
223
- margin: 0 0 var(--ml-hero-description-margin-bottom) 0;
224
- color: var(--ml-hero-description-color);
225
- line-height: var(--ml-hero-description-line-height);
226
- max-width: var(--ml-hero-description-max-width);
223
+ margin: 0 0 var(--ml-hero-description-margin-bottom, var(--ml-space-8)) 0;
224
+ color: var(--ml-hero-description-color, var(--ml-color-text-secondary));
225
+ line-height: var(--ml-hero-description-line-height, var(--ml-leading-relaxed));
226
+ max-width: var(--ml-hero-description-max-width, 640px);
227
227
  }
228
228
 
229
229
  /* Actions */
230
230
  .ml-hero__actions {
231
231
  display: flex;
232
- gap: var(--ml-hero-actions-gap);
232
+ gap: var(--ml-hero-actions-gap, var(--ml-space-3));
233
233
  flex-wrap: wrap;
234
234
  }
235
235
 
@@ -255,12 +255,12 @@ export const heroSectionStyles = () => css `
255
255
  ::slotted([slot="media"]) {
256
256
  max-width: 100%;
257
257
  height: auto;
258
- border-radius: var(--ml-hero-media-radius);
258
+ border-radius: var(--ml-hero-media-radius, var(--ml-radius-lg));
259
259
  }
260
260
 
261
261
  /* Social proof */
262
262
  .ml-hero__social-proof {
263
- margin-top: var(--ml-hero-social-proof-margin);
263
+ margin-top: var(--ml-hero-social-proof-margin, var(--ml-space-10));
264
264
  width: 100%;
265
265
  }
266
266
 
@@ -1 +1 @@
1
- {"version":3,"file":"page-header.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/page-header/page-header.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,iDAiN5B,CAAC"}
1
+ {"version":3,"file":"page-header.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/page-header/page-header.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,iDAsN5B,CAAC"}