@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.
- package/assets/melodic-components.js +3896 -3617
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +6583 -6305
- 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 +83 -78
- 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 +10 -5
- package/lib/components/data-display/avatar/avatar.styles.d.ts.map +1 -1
- package/lib/components/data-display/avatar/avatar.styles.js +23 -18
- package/lib/components/data-display/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/data-display/badge/badge.styles.js +54 -48
- 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 +34 -29
- 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 +160 -155
- 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 +122 -117
- package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.styles.js +39 -34
- package/lib/components/data-display/list/list.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list.styles.js +10 -5
- 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 +71 -66
- 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 +67 -63
- package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
- package/lib/components/data-display/table/table.styles.js +94 -89
- package/lib/components/data-display/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/data-display/tag/tag.styles.js +67 -62
- package/lib/components/feedback/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/feedback/alert/alert.styles.js +78 -76
- package/lib/components/feedback/progress/progress.styles.d.ts.map +1 -1
- package/lib/components/feedback/progress/progress.styles.js +110 -106
- package/lib/components/feedback/spinner/spinner.styles.d.ts.map +1 -1
- package/lib/components/feedback/spinner/spinner.styles.js +18 -13
- package/lib/components/feedback/toast/toast.styles.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.styles.js +74 -69
- package/lib/components/forms/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.styles.js +169 -164
- package/lib/components/forms/button/button.styles.d.ts.map +1 -1
- package/lib/components/forms/button/button.styles.js +62 -57
- package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.styles.js +23 -18
- package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.styles.js +83 -78
- package/lib/components/forms/date-picker/calendar.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/calendar.styles.js +152 -147
- package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.styles.js +97 -91
- 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 +87 -82
- package/lib/components/forms/file-upload/file-upload.styles.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload.styles.js +97 -92
- package/lib/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.styles.js +77 -72
- package/lib/components/forms/input/input.styles.d.ts.map +1 -1
- package/lib/components/forms/input/input.styles.js +86 -81
- package/lib/components/forms/radio/radio.styles.d.ts.map +1 -1
- package/lib/components/forms/radio/radio.styles.js +78 -73
- 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 +39 -34
- 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 +113 -108
- package/lib/components/forms/select/select.styles.d.ts.map +1 -1
- package/lib/components/forms/select/select.styles.js +158 -153
- package/lib/components/forms/slider/slider.styles.d.ts.map +1 -1
- package/lib/components/forms/slider/slider.styles.js +82 -77
- package/lib/components/forms/textarea/textarea.styles.d.ts.map +1 -1
- package/lib/components/forms/textarea/textarea.styles.js +84 -79
- package/lib/components/forms/time-picker/time-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/time-picker/time-picker.styles.js +197 -191
- package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.styles.js +84 -79
- package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
- package/lib/components/foundation/card/card.styles.js +51 -46
- package/lib/components/foundation/container/container.styles.d.ts.map +1 -1
- package/lib/components/foundation/container/container.styles.js +15 -10
- package/lib/components/foundation/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/foundation/divider/divider.styles.js +29 -24
- package/lib/components/foundation/stack/stack.styles.d.ts.map +1 -1
- package/lib/components/foundation/stack/stack.styles.js +16 -10
- package/lib/components/general/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/general/icon/icon.styles.js +12 -8
- package/lib/components/navigation/breadcrumb/breadcrumb.styles.d.ts.map +1 -1
- package/lib/components/navigation/breadcrumb/breadcrumb.styles.js +9 -4
- package/lib/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.styles.js +74 -69
- package/lib/components/navigation/sidebar/sidebar-group.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-group.styles.js +23 -18
- package/lib/components/navigation/sidebar/sidebar-item.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-item.styles.js +104 -99
- package/lib/components/navigation/sidebar/sidebar.styles.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.styles.js +179 -174
- package/lib/components/navigation/steps/step.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.styles.js +154 -149
- package/lib/components/navigation/steps/steps.styles.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.styles.js +174 -169
- package/lib/components/navigation/tabs/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab-panel.styles.js +12 -7
- package/lib/components/navigation/tabs/tab.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab.styles.js +41 -36
- package/lib/components/navigation/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.styles.js +131 -126
- package/lib/components/overlays/dialog/dialog.styles.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.styles.js +78 -73
- package/lib/components/overlays/drawer/drawer.styles.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.styles.js +82 -77
- package/lib/components/overlays/dropdown/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown-item.styles.js +48 -43
- package/lib/components/overlays/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown.styles.js +35 -30
- package/lib/components/overlays/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.styles.js +36 -31
- package/lib/components/overlays/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.styles.js +34 -28
- 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 +86 -81
- package/lib/components/pages/dashboard/dashboard-page.styles.d.ts.map +1 -1
- package/lib/components/pages/dashboard/dashboard-page.styles.js +39 -34
- package/lib/components/sections/app-shell/app-shell.styles.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.styles.js +63 -57
- package/lib/components/sections/hero/hero-section.styles.js +97 -97
- package/lib/components/sections/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/sections/page-header/page-header.styles.js +69 -64
- package/lib/components/sections/page-section/page-section.styles.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.styles.js +56 -51
- package/package.json +1 -1
|
@@ -1,64 +1,69 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const toastStyles = () => 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
|
+
* Background & border
|
|
8
|
+
* --ml-toast-bg: var(--ml-color-surface)
|
|
9
|
+
* --ml-toast-border-color: var(--ml-color-border)
|
|
10
|
+
* --ml-toast-border-radius: var(--ml-radius-lg)
|
|
11
|
+
* --ml-toast-shadow: var(--ml-shadow-lg)
|
|
12
|
+
*
|
|
13
|
+
* Spacing
|
|
14
|
+
* --ml-toast-gap: var(--ml-space-3)
|
|
15
|
+
* --ml-toast-padding: var(--ml-space-4)
|
|
16
|
+
* --ml-toast-min-width: 320px
|
|
17
|
+
* --ml-toast-max-width: 420px
|
|
18
|
+
*
|
|
19
|
+
* Title
|
|
20
|
+
* --ml-toast-title-font-size: var(--ml-text-sm)
|
|
21
|
+
* --ml-toast-title-font-weight: var(--ml-font-semibold)
|
|
22
|
+
* --ml-toast-title-color: var(--ml-color-text)
|
|
23
|
+
* --ml-toast-title-line-height: var(--ml-leading-tight)
|
|
24
|
+
*
|
|
25
|
+
* Message
|
|
26
|
+
* --ml-toast-message-font-size: var(--ml-text-sm)
|
|
27
|
+
* --ml-toast-message-color: var(--ml-color-text-secondary)
|
|
28
|
+
* --ml-toast-message-line-height: var(--ml-leading-relaxed)
|
|
29
|
+
* --ml-toast-message-margin-top: var(--ml-space-1)
|
|
30
|
+
*
|
|
31
|
+
* Icon variant colors
|
|
32
|
+
* --ml-toast-info-icon-color: var(--ml-color-primary)
|
|
33
|
+
* --ml-toast-success-icon-color: var(--ml-color-success)
|
|
34
|
+
* --ml-toast-warning-icon-color: var(--ml-color-warning)
|
|
35
|
+
* --ml-toast-error-icon-color: var(--ml-color-danger)
|
|
36
|
+
*
|
|
37
|
+
* Dismiss button
|
|
38
|
+
* --ml-toast-dismiss-border-radius: var(--ml-radius-sm)
|
|
39
|
+
* --ml-toast-dismiss-color: var(--ml-color-text-tertiary)
|
|
40
|
+
* --ml-toast-dismiss-hover-color: var(--ml-color-text)
|
|
41
|
+
*
|
|
42
|
+
* Transition
|
|
43
|
+
* --ml-toast-transition-duration: var(--ml-duration-150)
|
|
44
|
+
* --ml-toast-transition-easing: var(--ml-ease-in-out)
|
|
45
|
+
*
|
|
46
|
+
* Animation
|
|
47
|
+
* --ml-toast-animation-duration: var(--ml-duration-300)
|
|
48
|
+
* --ml-toast-animation-easing: var(--ml-ease-out)
|
|
49
|
+
*/
|
|
50
|
+
|
|
3
51
|
:host {
|
|
4
52
|
display: block;
|
|
5
|
-
|
|
6
|
-
/* Background & border */
|
|
7
|
-
--ml-toast-bg: var(--ml-color-surface);
|
|
8
|
-
--ml-toast-border-color: var(--ml-color-border);
|
|
9
|
-
--ml-toast-border-radius: var(--ml-radius-lg);
|
|
10
|
-
--ml-toast-shadow: var(--ml-shadow-lg);
|
|
11
|
-
|
|
12
|
-
/* Spacing */
|
|
13
|
-
--ml-toast-gap: var(--ml-space-3);
|
|
14
|
-
--ml-toast-padding: var(--ml-space-4);
|
|
15
|
-
--ml-toast-min-width: 320px;
|
|
16
|
-
--ml-toast-max-width: 420px;
|
|
17
|
-
|
|
18
|
-
/* Title */
|
|
19
|
-
--ml-toast-title-font-size: var(--ml-text-sm);
|
|
20
|
-
--ml-toast-title-font-weight: var(--ml-font-semibold);
|
|
21
|
-
--ml-toast-title-color: var(--ml-color-text);
|
|
22
|
-
--ml-toast-title-line-height: var(--ml-leading-tight);
|
|
23
|
-
|
|
24
|
-
/* Message */
|
|
25
|
-
--ml-toast-message-font-size: var(--ml-text-sm);
|
|
26
|
-
--ml-toast-message-color: var(--ml-color-text-secondary);
|
|
27
|
-
--ml-toast-message-line-height: var(--ml-leading-relaxed);
|
|
28
|
-
--ml-toast-message-margin-top: var(--ml-space-1);
|
|
29
|
-
|
|
30
|
-
/* Icon variant colors */
|
|
31
|
-
--ml-toast-info-icon-color: var(--ml-color-primary);
|
|
32
|
-
--ml-toast-success-icon-color: var(--ml-color-success);
|
|
33
|
-
--ml-toast-warning-icon-color: var(--ml-color-warning);
|
|
34
|
-
--ml-toast-error-icon-color: var(--ml-color-danger);
|
|
35
|
-
|
|
36
|
-
/* Dismiss button */
|
|
37
|
-
--ml-toast-dismiss-border-radius: var(--ml-radius-sm);
|
|
38
|
-
--ml-toast-dismiss-color: var(--ml-color-text-tertiary);
|
|
39
|
-
--ml-toast-dismiss-hover-color: var(--ml-color-text);
|
|
40
|
-
|
|
41
|
-
/* Transition */
|
|
42
|
-
--ml-toast-transition-duration: var(--ml-duration-150);
|
|
43
|
-
--ml-toast-transition-easing: var(--ml-ease-in-out);
|
|
44
|
-
|
|
45
|
-
/* Animation */
|
|
46
|
-
--ml-toast-animation-duration: var(--ml-duration-300);
|
|
47
|
-
--ml-toast-animation-easing: var(--ml-ease-out);
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
.ml-toast {
|
|
51
56
|
display: flex;
|
|
52
57
|
align-items: flex-start;
|
|
53
|
-
gap: var(--ml-toast-gap);
|
|
54
|
-
padding: var(--ml-toast-padding);
|
|
55
|
-
background-color: var(--ml-toast-bg);
|
|
56
|
-
border: 1px solid var(--ml-toast-border-color);
|
|
57
|
-
border-radius: var(--ml-toast-border-radius);
|
|
58
|
-
box-shadow: var(--ml-toast-shadow);
|
|
59
|
-
min-width: var(--ml-toast-min-width);
|
|
60
|
-
max-width: var(--ml-toast-max-width);
|
|
61
|
-
animation: ml-toast-in var(--ml-toast-animation-duration) var(--ml-toast-animation-easing);
|
|
58
|
+
gap: var(--ml-toast-gap, var(--ml-space-3));
|
|
59
|
+
padding: var(--ml-toast-padding, var(--ml-space-4));
|
|
60
|
+
background-color: var(--ml-toast-bg, var(--ml-color-surface));
|
|
61
|
+
border: 1px solid var(--ml-toast-border-color, var(--ml-color-border));
|
|
62
|
+
border-radius: var(--ml-toast-border-radius, var(--ml-radius-lg));
|
|
63
|
+
box-shadow: var(--ml-toast-shadow, var(--ml-shadow-lg));
|
|
64
|
+
min-width: var(--ml-toast-min-width, 320px);
|
|
65
|
+
max-width: var(--ml-toast-max-width, 420px);
|
|
66
|
+
animation: ml-toast-in var(--ml-toast-animation-duration, var(--ml-duration-300)) var(--ml-toast-animation-easing, var(--ml-ease-out));
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
@keyframes ml-toast-in {
|
|
@@ -79,19 +84,19 @@ export const toastStyles = () => css `
|
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
.ml-toast--info .ml-toast__icon {
|
|
82
|
-
color: var(--ml-toast-info-icon-color);
|
|
87
|
+
color: var(--ml-toast-info-icon-color, var(--ml-color-primary));
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
.ml-toast--success .ml-toast__icon {
|
|
86
|
-
color: var(--ml-toast-success-icon-color);
|
|
91
|
+
color: var(--ml-toast-success-icon-color, var(--ml-color-success));
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
.ml-toast--warning .ml-toast__icon {
|
|
90
|
-
color: var(--ml-toast-warning-icon-color);
|
|
95
|
+
color: var(--ml-toast-warning-icon-color, var(--ml-color-warning));
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
.ml-toast--error .ml-toast__icon {
|
|
94
|
-
color: var(--ml-toast-error-icon-color);
|
|
99
|
+
color: var(--ml-toast-error-icon-color, var(--ml-color-danger));
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
.ml-toast__content {
|
|
@@ -100,21 +105,21 @@ export const toastStyles = () => css `
|
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
.ml-toast__title {
|
|
103
|
-
font-size: var(--ml-toast-title-font-size);
|
|
104
|
-
font-weight: var(--ml-toast-title-font-weight);
|
|
105
|
-
color: var(--ml-toast-title-color);
|
|
106
|
-
line-height: var(--ml-toast-title-line-height);
|
|
108
|
+
font-size: var(--ml-toast-title-font-size, var(--ml-text-sm));
|
|
109
|
+
font-weight: var(--ml-toast-title-font-weight, var(--ml-font-semibold));
|
|
110
|
+
color: var(--ml-toast-title-color, var(--ml-color-text));
|
|
111
|
+
line-height: var(--ml-toast-title-line-height, var(--ml-leading-tight));
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
.ml-toast__message {
|
|
110
|
-
font-size: var(--ml-toast-message-font-size);
|
|
111
|
-
color: var(--ml-toast-message-color);
|
|
112
|
-
line-height: var(--ml-toast-message-line-height);
|
|
113
|
-
margin-top: var(--ml-toast-message-margin-top);
|
|
115
|
+
font-size: var(--ml-toast-message-font-size, var(--ml-text-sm));
|
|
116
|
+
color: var(--ml-toast-message-color, var(--ml-color-text-secondary));
|
|
117
|
+
line-height: var(--ml-toast-message-line-height, var(--ml-leading-relaxed));
|
|
118
|
+
margin-top: var(--ml-toast-message-margin-top, var(--ml-space-1));
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
.ml-toast__title + .ml-toast__message {
|
|
117
|
-
margin-top: var(--ml-toast-message-margin-top);
|
|
122
|
+
margin-top: var(--ml-toast-message-margin-top, var(--ml-space-1));
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
.ml-toast__dismiss {
|
|
@@ -125,13 +130,13 @@ export const toastStyles = () => css `
|
|
|
125
130
|
padding: 0;
|
|
126
131
|
background: none;
|
|
127
132
|
border: none;
|
|
128
|
-
border-radius: var(--ml-toast-dismiss-border-radius);
|
|
133
|
+
border-radius: var(--ml-toast-dismiss-border-radius, var(--ml-radius-sm));
|
|
129
134
|
cursor: pointer;
|
|
130
|
-
color: var(--ml-toast-dismiss-color);
|
|
131
|
-
transition: color var(--ml-toast-transition-duration) var(--ml-toast-transition-easing);
|
|
135
|
+
color: var(--ml-toast-dismiss-color, var(--ml-color-text-tertiary));
|
|
136
|
+
transition: color var(--ml-toast-transition-duration, var(--ml-duration-150)) var(--ml-toast-transition-easing, var(--ml-ease-in-out));
|
|
132
137
|
}
|
|
133
138
|
|
|
134
139
|
.ml-toast__dismiss:hover {
|
|
135
|
-
color: var(--ml-toast-dismiss-hover-color);
|
|
140
|
+
color: var(--ml-toast-dismiss-hover-color, var(--ml-color-text));
|
|
136
141
|
}
|
|
137
142
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/autocomplete/autocomplete.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"autocomplete.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/autocomplete/autocomplete.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,iDA6b9B,CAAC"}
|