@simplybusiness/mobius 9.3.4 → 10.0.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/CHANGELOG.md +24 -0
- package/package.json +2 -2
- package/src/components/Accordion/Accordion.css +79 -71
- package/src/components/Accordion/AccordionList.css +25 -23
- package/src/components/Alert/Alert.css +46 -44
- package/src/components/Box/Box.css +4 -2
- package/src/components/Breadcrumbs/Breadcrumbs.css +25 -23
- package/src/components/Button/Button.css +227 -219
- package/src/components/Button/Button.story.styles.css +9 -7
- package/src/components/Checkbox/Checkbox.css +106 -104
- package/src/components/Checkbox/CheckboxGroup.css +22 -20
- package/src/components/Combobox/Combobox.css +96 -94
- package/src/components/Container/Container.css +11 -9
- package/src/components/Divider/Divider.css +14 -12
- package/src/components/Drawer/Drawer.css +157 -155
- package/src/components/DropdownMenu/DropdownMenu.css +54 -52
- package/src/components/DropdownMenu/DropdownMenu.story.styles.css +11 -9
- package/src/components/ErrorMessage/ErrorMessage.css +30 -28
- package/src/components/ExpandableText/ExpandableText.css +11 -9
- package/src/components/Fieldset/Fieldset.css +13 -11
- package/src/components/Flex/Flex.css +5 -3
- package/src/components/Grid/Grid.story.styles.css +18 -16
- package/src/components/Icon/Icon.css +37 -35
- package/src/components/Label/Label.css +13 -11
- package/src/components/Link/Link.css +29 -27
- package/src/components/List/List.css +47 -45
- package/src/components/LoadingIndicator/LoadingIndicator.css +4 -2
- package/src/components/Modal/Modal.css +122 -120
- package/src/components/NumberField/NumberField.css +58 -56
- package/src/components/PasswordField/PasswordField.css +27 -25
- package/src/components/Popover/Popover.css +32 -30
- package/src/components/Popover/Popover.story.styles.css +24 -22
- package/src/components/Progress/Progress.css +25 -23
- package/src/components/Radio/Radio.css +167 -163
- package/src/components/Segment/Segment.css +163 -161
- package/src/components/Select/Select.css +82 -80
- package/src/components/Slider/Slider.css +113 -111
- package/src/components/Stack/Stack.css +24 -22
- package/src/components/Switch/Switch.css +58 -56
- package/src/components/Table/Table.css +52 -50
- package/src/components/Text/Text.css +92 -90
- package/src/components/TextArea/TextArea.css +41 -39
- package/src/components/TextField/TextField.css +132 -130
- package/src/components/Title/Title.css +32 -30
- package/src/components/Toast/Toast.css +234 -232
|
@@ -1,233 +1,235 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.mobius-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1
|
+
@layer atoms {
|
|
2
|
+
/* Toaster container positioning (keep Sonner's positioning logic) */
|
|
3
|
+
[data-sonner-toaster] {
|
|
4
|
+
font-family: var(--font-family);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* Base toast styles */
|
|
8
|
+
.mobius-toast {
|
|
9
|
+
position: relative;
|
|
10
|
+
font-family: var(--font-family);
|
|
11
|
+
font-size: var(--font-size-regular);
|
|
12
|
+
line-height: var(--line-height-normal);
|
|
13
|
+
color: var(--color-text);
|
|
14
|
+
background-color: var(--color-background);
|
|
15
|
+
border: 2px solid var(--color-border);
|
|
16
|
+
border-radius: var(--radius-1);
|
|
17
|
+
box-shadow: var(--shadow-md);
|
|
18
|
+
padding: var(--size-md);
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
gap: var(--size-sm);
|
|
22
|
+
width: var(--toast-width);
|
|
23
|
+
max-width: calc(100vw - var(--size-lg) * 2);
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Variant styles */
|
|
28
|
+
.mobius-toast.--info {
|
|
29
|
+
border-color: var(--color-info);
|
|
30
|
+
background-color: var(--color-info-background);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mobius-toast.--success {
|
|
34
|
+
border-color: var(--color-valid);
|
|
35
|
+
background-color: var(--color-valid-background);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mobius-toast.--warning {
|
|
39
|
+
border-color: var(--color-warning);
|
|
40
|
+
background-color: var(--color-warning-background);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mobius-toast.--error {
|
|
44
|
+
border-color: var(--color-error);
|
|
45
|
+
background-color: var(--color-error-background);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Icon */
|
|
49
|
+
.mobius-toast__icon {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
padding-top: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mobius-toast__icon .mobius-icon {
|
|
57
|
+
width: 1.25em;
|
|
58
|
+
height: 1.25em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Body wrapper for content + actions */
|
|
62
|
+
.mobius-toast__body {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--size-sm);
|
|
66
|
+
flex: 1;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
padding-right: var(--size-lg);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Content wrapper (title + description) */
|
|
72
|
+
.mobius-toast__content {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
gap: var(--size-xxs);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Title */
|
|
79
|
+
.mobius-toast__title {
|
|
80
|
+
font-size: var(--font-size-regular);
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
line-height: var(--line-height-normal);
|
|
83
|
+
color: var(--color-text);
|
|
84
|
+
margin: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Description */
|
|
88
|
+
.mobius-toast__description {
|
|
89
|
+
font-size: var(--font-size-regular);
|
|
90
|
+
line-height: var(--line-height-normal);
|
|
91
|
+
color: var(--color-text);
|
|
92
|
+
margin: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Actions wrapper - separate row for buttons */
|
|
96
|
+
.mobius-toast__actions {
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: flex-end;
|
|
99
|
+
gap: var(--size-xs);
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Shared button styles */
|
|
104
|
+
.mobius-toast__action,
|
|
105
|
+
.mobius-toast__cancel {
|
|
106
|
+
font-family: var(--font-family);
|
|
107
|
+
font-size: var(--font-size-small);
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
padding: var(--size-xs) var(--size-sm);
|
|
110
|
+
border-radius: var(--radius-1);
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
transition: background-color 0.15s ease;
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Action button (primary) */
|
|
120
|
+
.mobius-toast__action {
|
|
121
|
+
background-color: var(--button-primary-color);
|
|
122
|
+
color: var(--button-primary-content-color);
|
|
123
|
+
border: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.mobius-toast__action:hover {
|
|
127
|
+
filter: brightness(0.9);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Action button variant colors */
|
|
131
|
+
.mobius-toast.--info .mobius-toast__action {
|
|
132
|
+
background-color: var(--color-info);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.mobius-toast.--success .mobius-toast__action {
|
|
136
|
+
background-color: var(--color-valid);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.mobius-toast.--warning .mobius-toast__action {
|
|
140
|
+
background-color: var(--color-warning);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.mobius-toast.--error .mobius-toast__action {
|
|
144
|
+
background-color: var(--color-error);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Cancel button (secondary) */
|
|
148
|
+
.mobius-toast__cancel {
|
|
149
|
+
background-color: transparent;
|
|
150
|
+
color: var(--color-text);
|
|
151
|
+
border: 1px solid var(--color-border);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.mobius-toast__cancel:hover {
|
|
155
|
+
background-color: var(--color-background-hover);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Cancel button variant border colors */
|
|
159
|
+
.mobius-toast.--info .mobius-toast__cancel {
|
|
160
|
+
border-color: var(--color-info);
|
|
161
|
+
color: var(--color-info);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.mobius-toast.--success .mobius-toast__cancel {
|
|
165
|
+
border-color: var(--color-valid);
|
|
166
|
+
color: var(--color-valid);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.mobius-toast.--warning .mobius-toast__cancel {
|
|
170
|
+
border-color: var(--color-warning);
|
|
171
|
+
color: var(--color-warning);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.mobius-toast.--error .mobius-toast__cancel {
|
|
175
|
+
border-color: var(--color-error);
|
|
176
|
+
color: var(--color-error);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Close button */
|
|
180
|
+
.mobius-toast__close {
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: var(--size-md);
|
|
183
|
+
right: var(--size-sm);
|
|
184
|
+
background: transparent;
|
|
185
|
+
border: none;
|
|
186
|
+
border-radius: var(--radius-1);
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
padding: var(--size-xxs);
|
|
189
|
+
width: var(--size-md);
|
|
190
|
+
height: var(--size-md);
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
color: var(--color-text-muted);
|
|
195
|
+
transition: color 0.15s ease;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mobius-toast__close:hover {
|
|
199
|
+
color: var(--color-text);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Close icon */
|
|
203
|
+
.mobius-toast__close-icon {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.mobius-toast__close-icon .mobius-icon {
|
|
210
|
+
width: 1.25em;
|
|
211
|
+
height: 1.25em;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Close button variant colors */
|
|
215
|
+
.mobius-toast.--info .mobius-toast__close {
|
|
216
|
+
color: var(--color-info);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.mobius-toast.--success .mobius-toast__close {
|
|
220
|
+
color: var(--color-valid);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.mobius-toast.--warning .mobius-toast__close {
|
|
224
|
+
color: var(--color-warning);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.mobius-toast.--error .mobius-toast__close {
|
|
228
|
+
color: var(--color-error);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Close button hover - darken slightly */
|
|
232
|
+
.mobius-toast .mobius-toast__close:hover {
|
|
233
|
+
filter: brightness(0.8);
|
|
234
|
+
}
|
|
233
235
|
}
|