@melodicdev/components 1.4.0 → 1.5.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.
- package/assets/melodic-components.js +3514 -1652
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +5338 -3476
- package/lib/components/data-display/activity-feed/activity-feed-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed-item.styles.js +79 -31
- package/lib/components/data-display/activity-feed/activity-feed.styles.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed.styles.js +5 -1
- package/lib/components/data-display/avatar/avatar.styles.d.ts.map +1 -1
- package/lib/components/data-display/avatar/avatar.styles.js +18 -7
- package/lib/components/data-display/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/data-display/badge/badge.styles.js +30 -11
- package/lib/components/data-display/badge-group/badge-group.styles.d.ts.map +1 -1
- package/lib/components/data-display/badge-group/badge-group.styles.js +29 -14
- package/lib/components/data-display/calendar-view/calendar-view.styles.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.styles.js +155 -89
- package/lib/components/data-display/data-grid/data-grid.styles.d.ts.map +1 -1
- package/lib/components/data-display/data-grid/data-grid.styles.js +117 -61
- package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.styles.js +35 -13
- package/lib/components/data-display/list/list.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list.styles.js +5 -1
- package/lib/components/data-display/profile-card/profile-card.styles.d.ts.map +1 -1
- package/lib/components/data-display/profile-card/profile-card.styles.js +66 -28
- package/lib/components/data-display/stat-card/stat-card.styles.d.ts.map +1 -1
- package/lib/components/data-display/stat-card/stat-card.styles.js +64 -26
- package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
- package/lib/components/data-display/table/table.styles.js +60 -25
- package/lib/components/data-display/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/data-display/tag/tag.styles.js +62 -25
- package/lib/components/feedback/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/feedback/alert/alert.styles.js +41 -17
- package/lib/components/feedback/progress/progress.styles.d.ts.map +1 -1
- package/lib/components/feedback/progress/progress.styles.js +112 -56
- package/lib/components/feedback/spinner/spinner.styles.d.ts.map +1 -1
- package/lib/components/feedback/spinner/spinner.styles.js +32 -16
- package/lib/components/feedback/toast/toast.styles.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.styles.js +69 -26
- package/lib/components/forms/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.styles.js +164 -76
- package/lib/components/forms/button/button.styles.d.ts.map +1 -1
- package/lib/components/forms/button/button.styles.js +141 -116
- package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.styles.js +8 -2
- package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.styles.js +75 -41
- package/lib/components/forms/date-picker/calendar.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.styles.js +108 -47
- package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.styles.js +96 -38
- package/lib/components/forms/date-time-picker/date-time-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-time-picker/date-time-picker.styles.js +65 -25
- package/lib/components/forms/file-upload/file-upload.styles.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload.styles.js +92 -39
- package/lib/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.styles.js +72 -29
- package/lib/components/forms/input/input.styles.d.ts.map +1 -1
- package/lib/components/forms/input/input.styles.js +81 -29
- package/lib/components/forms/radio/radio.styles.d.ts.map +1 -1
- package/lib/components/forms/radio/radio.styles.js +85 -54
- package/lib/components/forms/radio-card-group/radio-card-group.styles.d.ts.map +1 -1
- package/lib/components/forms/radio-card-group/radio-card-group.styles.js +34 -12
- package/lib/components/forms/radio-card-group/radio-card.styles.d.ts.map +1 -1
- package/lib/components/forms/radio-card-group/radio-card.styles.js +108 -47
- package/lib/components/forms/select/select.styles.d.ts.map +1 -1
- package/lib/components/forms/select/select.styles.js +152 -71
- package/lib/components/forms/slider/slider.styles.d.ts.map +1 -1
- package/lib/components/forms/slider/slider.styles.js +77 -36
- package/lib/components/forms/textarea/textarea.styles.d.ts.map +1 -1
- package/lib/components/forms/textarea/textarea.styles.js +79 -31
- package/lib/components/forms/time-picker/time-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/time-picker/time-picker.styles.js +196 -91
- package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.styles.js +84 -54
- package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
- package/lib/components/foundation/card/card.styles.js +48 -17
- package/lib/components/foundation/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/foundation/divider/divider.styles.js +24 -12
- package/lib/components/general/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/general/icon/icon.styles.js +9 -2
- package/lib/components/navigation/breadcrumb/breadcrumb.styles.d.ts.map +1 -1
- package/lib/components/navigation/breadcrumb/breadcrumb.styles.js +4 -1
- package/lib/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.styles.js +59 -23
- package/lib/components/navigation/sidebar/sidebar-item.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-item.styles.js +79 -33
- package/lib/components/navigation/sidebar/sidebar.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.styles.js +154 -61
- package/lib/components/navigation/steps/step.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.styles.js +149 -83
- package/lib/components/navigation/steps/steps.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.styles.js +169 -91
- package/lib/components/navigation/tabs/tab.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab.styles.js +36 -12
- package/lib/components/navigation/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.styles.js +126 -57
- package/lib/components/overlays/dialog/dialog.styles.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.styles.js +73 -33
- package/lib/components/overlays/drawer/drawer.styles.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.styles.js +77 -33
- package/lib/components/overlays/dropdown/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown-item.styles.js +43 -17
- package/lib/components/overlays/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown.styles.js +30 -15
- package/lib/components/overlays/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.styles.js +29 -14
- package/lib/components/overlays/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.styles.js +28 -12
- package/lib/components/pages/auth/auth-layout.styles.d.ts +1 -1
- package/lib/components/pages/auth/auth-layout.styles.d.ts.map +1 -1
- package/lib/components/pages/auth/auth-layout.styles.js +79 -31
- package/lib/components/pages/dashboard/dashboard-page.styles.d.ts.map +1 -1
- package/lib/components/pages/dashboard/dashboard-page.styles.js +34 -12
- package/lib/components/sections/app-shell/app-shell.styles.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.styles.js +54 -23
- package/lib/components/sections/hero/hero-section.styles.d.ts.map +1 -1
- package/lib/components/sections/hero/hero-section.styles.js +97 -40
- package/lib/components/sections/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/sections/page-header/page-header.styles.js +62 -28
- package/lib/components/sections/page-section/page-section.styles.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.styles.js +51 -21
- package/package.json +1 -1
|
@@ -2,24 +2,62 @@ import { css } from '@melodicdev/core';
|
|
|
2
2
|
export const profileCardStyles = () => css `
|
|
3
3
|
:host {
|
|
4
4
|
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);
|
|
5
43
|
}
|
|
6
44
|
|
|
7
45
|
.ml-profile-card {
|
|
8
|
-
background-color: var(--ml-profile-card-bg
|
|
9
|
-
border: var(--ml-border) solid var(--ml-
|
|
10
|
-
border-radius: var(--ml-radius
|
|
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);
|
|
11
49
|
}
|
|
12
50
|
|
|
13
51
|
/* Subtle gradient banner at top */
|
|
14
52
|
.ml-profile-card__banner {
|
|
15
|
-
height: var(--ml-profile-card-banner-height
|
|
16
|
-
border-radius: var(--ml-radius
|
|
53
|
+
height: var(--ml-profile-card-banner-height);
|
|
54
|
+
border-radius: var(--ml-profile-card-radius) var(--ml-profile-card-radius) 0 0;
|
|
17
55
|
background: linear-gradient(
|
|
18
56
|
135deg,
|
|
19
|
-
var(--ml-profile-card-banner-from
|
|
20
|
-
var(--ml-profile-card-banner-to
|
|
57
|
+
var(--ml-profile-card-banner-from),
|
|
58
|
+
var(--ml-profile-card-banner-to)
|
|
21
59
|
);
|
|
22
|
-
opacity: var(--ml-profile-card-banner-opacity
|
|
60
|
+
opacity: var(--ml-profile-card-banner-opacity);
|
|
23
61
|
}
|
|
24
62
|
|
|
25
63
|
/* Centered identity area */
|
|
@@ -38,7 +76,7 @@ export const profileCardStyles = () => css `
|
|
|
38
76
|
display: inline-block;
|
|
39
77
|
margin-bottom: var(--ml-space-3);
|
|
40
78
|
border-radius: var(--ml-radius-full);
|
|
41
|
-
box-shadow: 0 0 0 4px var(--ml-profile-card-bg
|
|
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);
|
|
42
80
|
line-height: 0;
|
|
43
81
|
position: relative;
|
|
44
82
|
z-index: 1;
|
|
@@ -46,29 +84,29 @@ export const profileCardStyles = () => css `
|
|
|
46
84
|
|
|
47
85
|
.ml-profile-card__avatar ml-avatar {
|
|
48
86
|
display: block;
|
|
49
|
-
--ml-avatar-border-color: var(--ml-color-border-muted, var(--ml-
|
|
87
|
+
--ml-avatar-border-color: var(--ml-color-border-muted, var(--ml-profile-card-border-color));
|
|
50
88
|
}
|
|
51
89
|
|
|
52
90
|
.ml-profile-card__name {
|
|
53
91
|
margin: 0;
|
|
54
|
-
font-family: var(--ml-profile-card-name-font
|
|
55
|
-
font-size: var(--ml-
|
|
56
|
-
font-weight: var(--ml-
|
|
57
|
-
color: var(--ml-color
|
|
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);
|
|
58
96
|
line-height: var(--ml-leading-tight);
|
|
59
97
|
}
|
|
60
98
|
|
|
61
99
|
.ml-profile-card__subtitle {
|
|
62
100
|
margin: var(--ml-space-1) 0 0;
|
|
63
|
-
font-family: var(--ml-font
|
|
64
|
-
font-size: var(--ml-
|
|
65
|
-
color: var(--ml-
|
|
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);
|
|
66
104
|
}
|
|
67
105
|
|
|
68
106
|
/* Sections */
|
|
69
107
|
.ml-profile-card__section {
|
|
70
108
|
padding: var(--ml-space-4) var(--ml-space-5);
|
|
71
|
-
border-top: var(--ml-border) solid var(--ml-
|
|
109
|
+
border-top: var(--ml-profile-card-border-width) solid var(--ml-profile-card-border-color);
|
|
72
110
|
}
|
|
73
111
|
|
|
74
112
|
.ml-profile-card__section--hidden {
|
|
@@ -77,10 +115,10 @@ export const profileCardStyles = () => css `
|
|
|
77
115
|
|
|
78
116
|
.ml-profile-card__section-label {
|
|
79
117
|
width: 100%;
|
|
80
|
-
font-family: var(--ml-font
|
|
81
|
-
font-size: var(--ml-
|
|
82
|
-
font-weight: var(--ml-
|
|
83
|
-
color: var(--ml-
|
|
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);
|
|
84
122
|
text-transform: uppercase;
|
|
85
123
|
letter-spacing: 0.06em;
|
|
86
124
|
margin-bottom: var(--ml-space-1);
|
|
@@ -102,9 +140,9 @@ export const profileCardStyles = () => css `
|
|
|
102
140
|
display: flex;
|
|
103
141
|
flex-direction: column;
|
|
104
142
|
gap: var(--ml-space-2);
|
|
105
|
-
font-family: var(--ml-font
|
|
106
|
-
font-size: var(--ml-
|
|
107
|
-
color: var(--ml-
|
|
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);
|
|
108
146
|
}
|
|
109
147
|
|
|
110
148
|
.ml-profile-card__details.ml-profile-card__section--hidden {
|
|
@@ -133,9 +171,9 @@ export const profileCardStyles = () => css `
|
|
|
133
171
|
display: flex;
|
|
134
172
|
flex-direction: column;
|
|
135
173
|
gap: var(--ml-space-2);
|
|
136
|
-
font-family: var(--ml-font
|
|
137
|
-
font-size: var(--ml-
|
|
138
|
-
color: var(--ml-
|
|
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);
|
|
139
177
|
}
|
|
140
178
|
|
|
141
179
|
.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,
|
|
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"}
|
|
@@ -2,15 +2,53 @@ import { css } from '@melodicdev/core';
|
|
|
2
2
|
export const statCardStyles = () => css `
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
|
-
|
|
5
|
+
|
|
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);
|
|
6
44
|
}
|
|
7
45
|
|
|
8
46
|
.ml-stat-card {
|
|
9
|
-
background-color: var(--ml-stat-card-bg
|
|
10
|
-
border: var(--ml-border) solid var(--ml-
|
|
11
|
-
border-radius: var(--ml-radius
|
|
12
|
-
padding: var(--ml-
|
|
13
|
-
box-shadow: var(--ml-shadow
|
|
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);
|
|
14
52
|
}
|
|
15
53
|
|
|
16
54
|
.ml-stat-card__header {
|
|
@@ -22,10 +60,10 @@ export const statCardStyles = () => css `
|
|
|
22
60
|
}
|
|
23
61
|
|
|
24
62
|
.ml-stat-card__label {
|
|
25
|
-
font-family: var(--ml-font
|
|
26
|
-
font-size: var(--ml-
|
|
27
|
-
font-weight: var(--ml-
|
|
28
|
-
color: var(--ml-
|
|
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);
|
|
29
67
|
text-transform: uppercase;
|
|
30
68
|
letter-spacing: 0.05em;
|
|
31
69
|
}
|
|
@@ -34,48 +72,48 @@ export const statCardStyles = () => css `
|
|
|
34
72
|
display: flex;
|
|
35
73
|
align-items: center;
|
|
36
74
|
justify-content: center;
|
|
37
|
-
width: var(--ml-stat-card-icon-size
|
|
38
|
-
height: var(--ml-stat-card-icon-size
|
|
39
|
-
border-radius: var(--ml-radius);
|
|
40
|
-
background-color: var(--ml-stat-card-icon-bg
|
|
41
|
-
color: var(--ml-stat-card-icon-color
|
|
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);
|
|
42
80
|
flex-shrink: 0;
|
|
43
81
|
}
|
|
44
82
|
|
|
45
83
|
.ml-stat-card__value {
|
|
46
|
-
color: var(--ml-stat-card-value-color
|
|
84
|
+
color: var(--ml-stat-card-value-color);
|
|
47
85
|
line-height: 1.1;
|
|
48
86
|
margin-bottom: var(--ml-space-1);
|
|
49
87
|
}
|
|
50
88
|
|
|
51
89
|
.ml-stat-card__value--serif {
|
|
52
|
-
font-family: var(--ml-stat-card-value-font
|
|
53
|
-
font-size: var(--ml-stat-card-value-size
|
|
54
|
-
font-weight: var(--ml-stat-card-value-weight
|
|
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);
|
|
55
93
|
}
|
|
56
94
|
|
|
57
95
|
.ml-stat-card__value--sans {
|
|
58
96
|
font-family: var(--ml-font-sans);
|
|
59
|
-
font-size: var(--ml-stat-card-value-size
|
|
97
|
+
font-size: var(--ml-stat-card-value-sans-size);
|
|
60
98
|
font-weight: var(--ml-font-bold);
|
|
61
99
|
}
|
|
62
100
|
|
|
63
101
|
.ml-stat-card__trend {
|
|
64
|
-
font-family: var(--ml-font
|
|
65
|
-
font-size: var(--ml-
|
|
66
|
-
color: var(--ml-
|
|
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);
|
|
67
105
|
line-height: var(--ml-leading-normal);
|
|
68
106
|
}
|
|
69
107
|
|
|
70
108
|
.ml-stat-card__trend--up {
|
|
71
|
-
color: var(--ml-color
|
|
109
|
+
color: var(--ml-stat-card-trend-up-color);
|
|
72
110
|
}
|
|
73
111
|
|
|
74
112
|
.ml-stat-card__trend--down {
|
|
75
|
-
color: var(--ml-color
|
|
113
|
+
color: var(--ml-stat-card-trend-down-color);
|
|
76
114
|
}
|
|
77
115
|
|
|
78
116
|
.ml-stat-card__trend--neutral {
|
|
79
|
-
color: var(--ml-
|
|
117
|
+
color: var(--ml-stat-card-trend-color);
|
|
80
118
|
}
|
|
81
119
|
`;
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table/table.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAwRvB,CAAC"}
|
|
@@ -2,14 +2,49 @@ import { css } from '@melodicdev/core';
|
|
|
2
2
|
export const tableStyles = () => css `
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
|
+
|
|
6
|
+
/* ── Table: surface ── */
|
|
7
|
+
--ml-table-bg: var(--ml-color-surface);
|
|
8
|
+
--ml-table-border-width: var(--ml-border);
|
|
9
|
+
--ml-table-border-color: var(--ml-color-border);
|
|
10
|
+
--ml-table-radius: var(--ml-radius-lg);
|
|
11
|
+
--ml-table-font: var(--ml-font-sans);
|
|
12
|
+
|
|
13
|
+
/* ── Table: header section ── */
|
|
14
|
+
--ml-table-title-color: var(--ml-color-text);
|
|
15
|
+
--ml-table-description-color: var(--ml-color-text-muted);
|
|
16
|
+
|
|
17
|
+
/* ── Table: column header ── */
|
|
18
|
+
--ml-table-header-bg: var(--ml-color-surface-sunken);
|
|
19
|
+
--ml-table-header-color: var(--ml-color-text-muted);
|
|
20
|
+
--ml-table-header-sorted-color: var(--ml-color-text);
|
|
21
|
+
|
|
22
|
+
/* ── Table: sort icon ── */
|
|
23
|
+
--ml-table-sort-color: var(--ml-color-text-muted);
|
|
24
|
+
--ml-table-sort-active-color: var(--ml-color-primary);
|
|
25
|
+
|
|
26
|
+
/* ── Table: rows ── */
|
|
27
|
+
--ml-table-row-hover-bg: var(--ml-color-surface-sunken);
|
|
28
|
+
--ml-table-row-hover-border-color: transparent;
|
|
29
|
+
--ml-table-row-hover-border-width: 0;
|
|
30
|
+
--ml-table-row-selected-bg: var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.04));
|
|
31
|
+
--ml-table-row-selected-hover-bg: var(--ml-color-primary-subtle, rgba(99, 102, 241, 0.06));
|
|
32
|
+
--ml-table-row-striped-bg: var(--ml-color-surface-sunken);
|
|
33
|
+
--ml-table-row-striped-hover-bg: var(--ml-color-surface-raised);
|
|
34
|
+
|
|
35
|
+
/* ── Table: cells ── */
|
|
36
|
+
--ml-table-cell-color: var(--ml-color-text);
|
|
37
|
+
|
|
38
|
+
/* ── Table: checkbox ── */
|
|
39
|
+
--ml-table-checkbox-accent: var(--ml-color-primary);
|
|
5
40
|
}
|
|
6
41
|
|
|
7
42
|
.ml-table {
|
|
8
|
-
border: var(--ml-border) solid var(--ml-
|
|
9
|
-
border-radius: var(--ml-radius
|
|
10
|
-
background-color: var(--ml-
|
|
43
|
+
border: var(--ml-table-border-width) solid var(--ml-table-border-color);
|
|
44
|
+
border-radius: var(--ml-table-radius);
|
|
45
|
+
background-color: var(--ml-table-bg);
|
|
11
46
|
overflow: hidden;
|
|
12
|
-
font-family: var(--ml-font
|
|
47
|
+
font-family: var(--ml-table-font);
|
|
13
48
|
}
|
|
14
49
|
|
|
15
50
|
/* ── Header ── */
|
|
@@ -19,7 +54,7 @@ export const tableStyles = () => css `
|
|
|
19
54
|
justify-content: space-between;
|
|
20
55
|
gap: var(--ml-space-4);
|
|
21
56
|
padding: var(--ml-space-5) var(--ml-space-6);
|
|
22
|
-
border-bottom: var(--ml-border) solid var(--ml-
|
|
57
|
+
border-bottom: var(--ml-table-border-width) solid var(--ml-table-border-color);
|
|
23
58
|
}
|
|
24
59
|
|
|
25
60
|
.ml-table__header-text {
|
|
@@ -32,14 +67,14 @@ export const tableStyles = () => css `
|
|
|
32
67
|
margin: 0;
|
|
33
68
|
font-size: var(--ml-text-lg);
|
|
34
69
|
font-weight: var(--ml-font-semibold);
|
|
35
|
-
color: var(--ml-color
|
|
70
|
+
color: var(--ml-table-title-color);
|
|
36
71
|
line-height: var(--ml-leading-tight);
|
|
37
72
|
}
|
|
38
73
|
|
|
39
74
|
.ml-table__description {
|
|
40
75
|
margin: 0;
|
|
41
76
|
font-size: var(--ml-text-sm);
|
|
42
|
-
color: var(--ml-
|
|
77
|
+
color: var(--ml-table-description-color);
|
|
43
78
|
line-height: var(--ml-leading-normal);
|
|
44
79
|
}
|
|
45
80
|
|
|
@@ -56,7 +91,7 @@ export const tableStyles = () => css `
|
|
|
56
91
|
|
|
57
92
|
/* ── Header cells ── */
|
|
58
93
|
thead {
|
|
59
|
-
background-color: var(--ml-
|
|
94
|
+
background-color: var(--ml-table-header-bg);
|
|
60
95
|
}
|
|
61
96
|
|
|
62
97
|
.ml-table--sticky-header thead {
|
|
@@ -66,14 +101,14 @@ export const tableStyles = () => css `
|
|
|
66
101
|
}
|
|
67
102
|
|
|
68
103
|
thead tr {
|
|
69
|
-
border-bottom: var(--ml-border) solid var(--ml-
|
|
104
|
+
border-bottom: var(--ml-table-border-width) solid var(--ml-table-border-color);
|
|
70
105
|
}
|
|
71
106
|
|
|
72
107
|
.ml-table__th {
|
|
73
108
|
padding: var(--ml-space-3) var(--ml-space-6);
|
|
74
109
|
font-size: var(--ml-text-xs);
|
|
75
110
|
font-weight: var(--ml-font-medium);
|
|
76
|
-
color: var(--ml-
|
|
111
|
+
color: var(--ml-table-header-color);
|
|
77
112
|
text-transform: uppercase;
|
|
78
113
|
letter-spacing: 0.05em;
|
|
79
114
|
text-align: left;
|
|
@@ -94,11 +129,11 @@ export const tableStyles = () => css `
|
|
|
94
129
|
}
|
|
95
130
|
|
|
96
131
|
.ml-table__th--sortable:hover {
|
|
97
|
-
color: var(--ml-color
|
|
132
|
+
color: var(--ml-table-header-sorted-color);
|
|
98
133
|
}
|
|
99
134
|
|
|
100
135
|
.ml-table__th--sorted {
|
|
101
|
-
color: var(--ml-color
|
|
136
|
+
color: var(--ml-table-header-sorted-color);
|
|
102
137
|
}
|
|
103
138
|
|
|
104
139
|
.ml-table__th-content {
|
|
@@ -111,16 +146,16 @@ export const tableStyles = () => css `
|
|
|
111
146
|
display: inline-flex;
|
|
112
147
|
align-items: center;
|
|
113
148
|
flex-shrink: 0;
|
|
114
|
-
color: var(--ml-
|
|
149
|
+
color: var(--ml-table-sort-color);
|
|
115
150
|
}
|
|
116
151
|
|
|
117
152
|
.ml-table__th--sorted .ml-table__sort-icon {
|
|
118
|
-
color: var(--ml-color
|
|
153
|
+
color: var(--ml-table-sort-active-color);
|
|
119
154
|
}
|
|
120
155
|
|
|
121
156
|
/* ── Body rows ── */
|
|
122
157
|
.ml-table__row {
|
|
123
|
-
border-bottom: var(--ml-border) solid var(--ml-
|
|
158
|
+
border-bottom: var(--ml-table-border-width) solid var(--ml-table-border-color);
|
|
124
159
|
transition: background-color var(--ml-duration-150) var(--ml-ease-in-out);
|
|
125
160
|
}
|
|
126
161
|
|
|
@@ -129,9 +164,9 @@ export const tableStyles = () => css `
|
|
|
129
164
|
}
|
|
130
165
|
|
|
131
166
|
.ml-table--hoverable .ml-table__row:hover {
|
|
132
|
-
background-color: var(--ml-table-row-hover-bg
|
|
133
|
-
border-color: var(--ml-table-row-hover-border-color
|
|
134
|
-
border-width: var(--ml-table-row-hover-border-width
|
|
167
|
+
background-color: var(--ml-table-row-hover-bg);
|
|
168
|
+
border-color: var(--ml-table-row-hover-border-color);
|
|
169
|
+
border-width: var(--ml-table-row-hover-border-width);
|
|
135
170
|
border-style: solid;
|
|
136
171
|
}
|
|
137
172
|
|
|
@@ -140,27 +175,27 @@ export const tableStyles = () => css `
|
|
|
140
175
|
}
|
|
141
176
|
|
|
142
177
|
.ml-table__row--selected {
|
|
143
|
-
background-color: var(--ml-
|
|
178
|
+
background-color: var(--ml-table-row-selected-bg);
|
|
144
179
|
}
|
|
145
180
|
|
|
146
181
|
.ml-table--hoverable .ml-table__row--selected:hover {
|
|
147
|
-
background-color: var(--ml-
|
|
182
|
+
background-color: var(--ml-table-row-selected-hover-bg);
|
|
148
183
|
}
|
|
149
184
|
|
|
150
185
|
/* Striped */
|
|
151
186
|
.ml-table--striped .ml-table__row:nth-child(even) {
|
|
152
|
-
background-color: var(--ml-
|
|
187
|
+
background-color: var(--ml-table-row-striped-bg);
|
|
153
188
|
}
|
|
154
189
|
|
|
155
190
|
.ml-table--striped.ml-table--hoverable .ml-table__row:hover {
|
|
156
|
-
background-color: var(--ml-
|
|
191
|
+
background-color: var(--ml-table-row-striped-hover-bg);
|
|
157
192
|
}
|
|
158
193
|
|
|
159
194
|
/* ── Body cells ── */
|
|
160
195
|
.ml-table__td {
|
|
161
196
|
padding: var(--ml-space-4) var(--ml-space-6);
|
|
162
197
|
font-size: var(--ml-text-sm);
|
|
163
|
-
color: var(--ml-color
|
|
198
|
+
color: var(--ml-table-cell-color);
|
|
164
199
|
vertical-align: middle;
|
|
165
200
|
}
|
|
166
201
|
|
|
@@ -187,7 +222,7 @@ export const tableStyles = () => css `
|
|
|
187
222
|
.ml-table__checkbox {
|
|
188
223
|
width: 1rem;
|
|
189
224
|
height: 1rem;
|
|
190
|
-
accent-color: var(--ml-
|
|
225
|
+
accent-color: var(--ml-table-checkbox-accent);
|
|
191
226
|
cursor: pointer;
|
|
192
227
|
margin: 0;
|
|
193
228
|
vertical-align: middle;
|
|
@@ -238,7 +273,7 @@ export const tableStyles = () => css `
|
|
|
238
273
|
align-items: center;
|
|
239
274
|
justify-content: space-between;
|
|
240
275
|
padding: var(--ml-space-3) var(--ml-space-6);
|
|
241
|
-
border-top: var(--ml-border) solid var(--ml-
|
|
276
|
+
border-top: var(--ml-table-border-width) solid var(--ml-table-border-color);
|
|
242
277
|
}
|
|
243
278
|
|
|
244
279
|
.ml-table--sm .ml-table__footer--visible {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iDAqOrB,CAAC"}
|