@withlayers/components.notification 0.3.0 → 0.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.
@@ -0,0 +1,75 @@
1
+ @define-mixin notification-core {
2
+ border-style: var(--l--theme--notification--border--style);
3
+ }
4
+
5
+ @define-mixin notification-shape-xs {
6
+ border-radius: var(--l--theme--notification--border--radius--xs);
7
+ border-width: var(--l--theme--notification--border--width--xs);
8
+ padding-block: var(--l--theme--notification--space--inset--block--xs);
9
+ padding-inline: var(--l--theme--notification--space--inset--inline--xs);
10
+ }
11
+
12
+ @define-mixin notification-shape-sm {
13
+ border-radius: var(--l--theme--notification--border--radius--sm);
14
+ border-width: var(--l--theme--notification--border--width--sm);
15
+ padding-block: var(--l--theme--notification--space--inset--block--sm);
16
+ padding-inline: var(--l--theme--notification--space--inset--inline--sm);
17
+ }
18
+
19
+ @define-mixin notification-shape-md {
20
+ border-radius: var(--l--theme--notification--border--radius--md);
21
+ border-width: var(--l--theme--notification--border--width--md);
22
+ padding-block: var(--l--theme--notification--space--inset--block--md);
23
+ padding-inline: var(--l--theme--notification--space--inset--inline--md);
24
+ }
25
+
26
+ @define-mixin notification-shape-lg {
27
+ border-radius: var(--l--theme--notification--border--radius--lg);
28
+ border-width: var(--l--theme--notification--border--width--lg);
29
+ padding-block: var(--l--theme--notification--space--inset--block--lg);
30
+ padding-inline: var(--l--theme--notification--space--inset--inline--lg);
31
+ }
32
+
33
+ @define-mixin notification-typography-xs {
34
+ font-family: var(--l--theme--notification--typography--font-family--xs);
35
+ font-size: var(--l--theme--notification--typography--font-size--xs);
36
+ font-style: var(--l--theme--notification--typography--font-style--xs);
37
+ font-variant-caps: var(--l--theme--notification--typography--font-variant-caps--xs);
38
+ font-weight: var(--l--theme--notification--typography--font-weight--xs);
39
+ letter-spacing: var(--l--theme--notification--typography--letter-spacing--xs);
40
+ line-height: var(--l--theme--notification--typography--line-height--xs);
41
+ text-transform: var(--l--theme--notification--typography--text-transform--xs);
42
+ }
43
+
44
+ @define-mixin notification-typography-sm {
45
+ font-family: var(--l--theme--notification--typography--font-family--sm);
46
+ font-size: var(--l--theme--notification--typography--font-size--sm);
47
+ font-style: var(--l--theme--notification--typography--font-style--sm);
48
+ font-variant-caps: var(--l--theme--notification--typography--font-variant-caps--sm);
49
+ font-weight: var(--l--theme--notification--typography--font-weight--sm);
50
+ letter-spacing: var(--l--theme--notification--typography--letter-spacing--sm);
51
+ line-height: var(--l--theme--notification--typography--line-height--sm);
52
+ text-transform: var(--l--theme--notification--typography--text-transform--sm);
53
+ }
54
+
55
+ @define-mixin notification-typography-md {
56
+ font-family: var(--l--theme--notification--typography--font-family--md);
57
+ font-size: var(--l--theme--notification--typography--font-size--md);
58
+ font-style: var(--l--theme--notification--typography--font-style--md);
59
+ font-variant-caps: var(--l--theme--notification--typography--font-variant-caps--md);
60
+ font-weight: var(--l--theme--notification--typography--font-weight--md);
61
+ letter-spacing: var(--l--theme--notification--typography--letter-spacing--md);
62
+ line-height: var(--l--theme--notification--typography--line-height--md);
63
+ text-transform: var(--l--theme--notification--typography--text-transform--md);
64
+ }
65
+
66
+ @define-mixin notification-typography-lg {
67
+ font-family: var(--l--theme--notification--typography--font-family--lg);
68
+ font-size: var(--l--theme--notification--typography--font-size--lg);
69
+ font-style: var(--l--theme--notification--typography--font-style--lg);
70
+ font-variant-caps: var(--l--theme--notification--typography--font-variant-caps--lg);
71
+ font-weight: var(--l--theme--notification--typography--font-weight--lg);
72
+ letter-spacing: var(--l--theme--notification--typography--letter-spacing--lg);
73
+ line-height: var(--l--theme--notification--typography--line-height--lg);
74
+ text-transform: var(--l--theme--notification--typography--text-transform--lg);
75
+ }
@@ -0,0 +1,317 @@
1
+ {
2
+ "notification": {
3
+ "$level": "component",
4
+ "border": {
5
+ "$level": "category",
6
+ "style": {
7
+ "$level": "property",
8
+ "value": "{border.style.solid}"
9
+ },
10
+ "width": {
11
+ "$level": "property",
12
+ "xs": {
13
+ "$level": "scale",
14
+ "value": "{border.width.sm}"
15
+ },
16
+ "sm": {
17
+ "$level": "scale",
18
+ "value": "{border.width.sm}"
19
+ },
20
+ "md": {
21
+ "$level": "scale",
22
+ "value": "{border.width.sm}"
23
+ },
24
+ "lg": {
25
+ "$level": "scale",
26
+ "value": "{border.width.sm}"
27
+ }
28
+ },
29
+ "radius": {
30
+ "$level": "property",
31
+ "xs": {
32
+ "$level": "scale",
33
+ "value": "{border.radius.md}"
34
+ },
35
+ "sm": {
36
+ "$level": "scale",
37
+ "value": "{border.radius.md}"
38
+ },
39
+ "md": {
40
+ "$level": "scale",
41
+ "value": "{border.radius.md}"
42
+ },
43
+ "lg": {
44
+ "$level": "scale",
45
+ "value": "{border.radius.md}"
46
+ }
47
+ }
48
+ },
49
+ "space": {
50
+ "$level": "category",
51
+ "inset": {
52
+ "$level": "property",
53
+ "block": {
54
+ "$level": "subproperty",
55
+ "xs": {
56
+ "$level": "scale",
57
+ "value": "{space.20}"
58
+ },
59
+ "sm": {
60
+ "$level": "scale",
61
+ "value": "{space.30}"
62
+ },
63
+ "md": {
64
+ "$level": "scale",
65
+ "value": "{space.40}"
66
+ },
67
+ "lg": {
68
+ "$level": "scale",
69
+ "value": "{space.50}"
70
+ }
71
+ },
72
+ "inline": {
73
+ "$level": "subproperty",
74
+ "xs": {
75
+ "$level": "scale",
76
+ "value": "{space.30}"
77
+ },
78
+ "sm": {
79
+ "$level": "scale",
80
+ "value": "{space.40}"
81
+ },
82
+ "md": {
83
+ "$level": "scale",
84
+ "value": "{space.50}"
85
+ },
86
+ "lg": {
87
+ "$level": "scale",
88
+ "value": "{space.60}"
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "typography": {
94
+ "$level": "category",
95
+ "font-family": {
96
+ "$level": "property",
97
+ "xs": {
98
+ "$level": "scale",
99
+ "value": "{typography.font-family.secondary}"
100
+ },
101
+ "sm": {
102
+ "$level": "scale",
103
+ "value": "{typography.font-family.secondary}"
104
+ },
105
+ "md": {
106
+ "$level": "scale",
107
+ "value": "{typography.font-family.secondary}"
108
+ },
109
+ "lg": {
110
+ "$level": "scale",
111
+ "value": "{typography.font-family.secondary}"
112
+ }
113
+ },
114
+ "font-size": {
115
+ "$level": "property",
116
+ "xs": {
117
+ "$level": "scale",
118
+ "value": {
119
+ "type": "fluid",
120
+ "min": {
121
+ "value": "{typography.font-size.12}",
122
+ "breakpoint": {
123
+ "value": "{breakpoint.xs}"
124
+ }
125
+ },
126
+ "max": {
127
+ "value": "{typography.font-size.14}",
128
+ "breakpoint": {
129
+ "value": "{breakpoint.xl}"
130
+ }
131
+ },
132
+ "root": {
133
+ "value": "{typography.font-size.root}"
134
+ }
135
+ }
136
+ },
137
+ "sm": {
138
+ "$level": "scale",
139
+ "value": {
140
+ "type": "fluid",
141
+ "min": {
142
+ "value": "{typography.font-size.12}",
143
+ "breakpoint": {
144
+ "value": "{breakpoint.xs}"
145
+ }
146
+ },
147
+ "max": {
148
+ "value": "{typography.font-size.14}",
149
+ "breakpoint": {
150
+ "value": "{breakpoint.xl}"
151
+ }
152
+ },
153
+ "root": {
154
+ "value": "{typography.font-size.root}"
155
+ }
156
+ }
157
+ },
158
+ "md": {
159
+ "$level": "scale",
160
+ "value": {
161
+ "type": "fluid",
162
+ "min": {
163
+ "value": "{typography.font-size.14}",
164
+ "breakpoint": {
165
+ "value": "{breakpoint.xs}"
166
+ }
167
+ },
168
+ "max": {
169
+ "value": "{typography.font-size.16}",
170
+ "breakpoint": {
171
+ "value": "{breakpoint.xl}"
172
+ }
173
+ },
174
+ "root": {
175
+ "value": "{typography.font-size.root}"
176
+ }
177
+ }
178
+ },
179
+ "lg": {
180
+ "$level": "scale",
181
+ "value": {
182
+ "type": "fluid",
183
+ "min": {
184
+ "value": "{typography.font-size.16}",
185
+ "breakpoint": {
186
+ "value": "{breakpoint.xs}"
187
+ }
188
+ },
189
+ "max": {
190
+ "value": "{typography.font-size.18}",
191
+ "breakpoint": {
192
+ "value": "{breakpoint.xl}"
193
+ }
194
+ },
195
+ "root": {
196
+ "value": "{typography.font-size.root}"
197
+ }
198
+ }
199
+ }
200
+ },
201
+ "font-style": {
202
+ "$level": "property",
203
+ "xs": {
204
+ "$level": "scale",
205
+ "value": "{typography.font-style.normal}"
206
+ },
207
+ "sm": {
208
+ "$level": "scale",
209
+ "value": "{typography.font-style.normal}"
210
+ },
211
+ "md": {
212
+ "$level": "scale",
213
+ "value": "{typography.font-style.normal}"
214
+ },
215
+ "lg": {
216
+ "$level": "scale",
217
+ "value": "{typography.font-style.normal}"
218
+ }
219
+ },
220
+ "font-variant-caps": {
221
+ "$level": "property",
222
+ "xs": {
223
+ "$level": "scale",
224
+ "value": "{typography.font-variant-caps.normal}"
225
+ },
226
+ "sm": {
227
+ "$level": "scale",
228
+ "value": "{typography.font-variant-caps.normal}"
229
+ },
230
+ "md": {
231
+ "$level": "scale",
232
+ "value": "{typography.font-variant-caps.normal}"
233
+ },
234
+ "lg": {
235
+ "$level": "scale",
236
+ "value": "{typography.font-variant-caps.normal}"
237
+ }
238
+ },
239
+ "font-weight": {
240
+ "$level": "property",
241
+ "xs": {
242
+ "$level": "scale",
243
+ "value": "{typography.font-weight.medium}"
244
+ },
245
+ "sm": {
246
+ "$level": "scale",
247
+ "value": "{typography.font-weight.medium}"
248
+ },
249
+ "md": {
250
+ "$level": "scale",
251
+ "value": "{typography.font-weight.medium}"
252
+ },
253
+ "lg": {
254
+ "$level": "scale",
255
+ "value": "{typography.font-weight.medium}"
256
+ }
257
+ },
258
+ "letter-spacing": {
259
+ "$level": "property",
260
+ "xs": {
261
+ "$level": "scale",
262
+ "value": "{typography.letter-spacing.normal}"
263
+ },
264
+ "sm": {
265
+ "$level": "scale",
266
+ "value": "{typography.letter-spacing.normal}"
267
+ },
268
+ "md": {
269
+ "$level": "scale",
270
+ "value": "{typography.letter-spacing.normal}"
271
+ },
272
+ "lg": {
273
+ "$level": "scale",
274
+ "value": "{typography.letter-spacing.normal}"
275
+ }
276
+ },
277
+ "line-height": {
278
+ "$level": "property",
279
+ "xs": {
280
+ "$level": "scale",
281
+ "value": "{typography.line-height.1250}"
282
+ },
283
+ "sm": {
284
+ "$level": "scale",
285
+ "value": "{typography.line-height.1250}"
286
+ },
287
+ "md": {
288
+ "$level": "scale",
289
+ "value": "{typography.line-height.1375}"
290
+ },
291
+ "lg": {
292
+ "$level": "scale",
293
+ "value": "{typography.line-height.1500}"
294
+ }
295
+ },
296
+ "text-transform": {
297
+ "$level": "property",
298
+ "xs": {
299
+ "$level": "scale",
300
+ "value": "{typography.text-transform.none}"
301
+ },
302
+ "sm": {
303
+ "$level": "scale",
304
+ "value": "{typography.text-transform.none}"
305
+ },
306
+ "md": {
307
+ "$level": "scale",
308
+ "value": "{typography.text-transform.none}"
309
+ },
310
+ "lg": {
311
+ "$level": "scale",
312
+ "value": "{typography.text-transform.none}"
313
+ }
314
+ }
315
+ }
316
+ }
317
+ }
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@withlayers/components.notification",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Notification component",
5
5
  "license": "MIT",
6
6
  "author": "Dmitry Mayorov",
7
7
  "type": "module",
8
8
  "main": "dist/index.css",
9
9
  "exports": {
10
- ".": "./dist/index.css"
10
+ ".": "./dist/index.css",
11
+ "./mixins": "./dist/mixins.css",
12
+ "./tokens": "./dist/tokens.json"
11
13
  },
12
14
  "files": [
13
15
  "dist"
@@ -19,12 +21,11 @@
19
21
  "lint:css:fix": "stylelint \"src/**/*.css\" --fix"
20
22
  },
21
23
  "dependencies": {
22
- "@withlayers/mixins": "0.12.0",
23
- "@withlayers/tokens": "0.17.0",
24
- "clsx": "^2.1.1",
25
- "postcss-mixins": "^11.0.3"
24
+ "@withlayers/mixins": "0.13.1",
25
+ "@withlayers/tokens": "0.19.0"
26
26
  },
27
27
  "devDependencies": {
28
+ "postcss-mixins": "^11.0.3",
28
29
  "postcss-nested": "^7.0.2"
29
30
  }
30
31
  }