@dt-dds/react-empty-state 1.0.0-beta.58
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 +570 -0
- package/LICENSE.md +21 -0
- package/README.md +90 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +100 -0
- package/dist/index.mjs +63 -0
- package/package.json +56 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
# @dt-ui/react-empty-state
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.58
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- refactor!: rename pkg and publish to npmjs
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @dt-dds/react-button@1.0.0-beta.38
|
|
13
|
+
- @dt-dds/react-core@1.0.0-beta.41
|
|
14
|
+
- @dt-dds/react-typography@1.0.0-beta.32
|
|
15
|
+
|
|
16
|
+
## 0.1.0-beta.57
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- refactor: theme typography values
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @dt-ui/react-core@0.1.0-beta.40
|
|
23
|
+
- @dt-ui/react-button@0.1.0-beta.37
|
|
24
|
+
- @dt-ui/react-typography@0.1.0-beta.31
|
|
25
|
+
|
|
26
|
+
## 0.1.0-beta.56
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- feat: update shadow theme values
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
- @dt-ui/react-core@0.1.0-beta.39
|
|
36
|
+
- @dt-ui/react-button@0.1.0-beta.36
|
|
37
|
+
- @dt-ui/react-typography@0.1.0-beta.30
|
|
38
|
+
|
|
39
|
+
## 0.1.0-beta.55
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- chore: update theme font-styles
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
- @dt-ui/react-core@0.1.0-beta.38
|
|
46
|
+
- @dt-ui/react-button@0.1.0-beta.35
|
|
47
|
+
- @dt-ui/react-typography@0.1.0-beta.29
|
|
48
|
+
|
|
49
|
+
## 0.1.0-beta.54
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- chore: review OSS files
|
|
54
|
+
- Updated dependencies
|
|
55
|
+
- @dt-ui/react-button@0.1.0-beta.34
|
|
56
|
+
- @dt-ui/react-core@0.1.0-beta.37
|
|
57
|
+
- @dt-ui/react-typography@0.1.0-beta.28
|
|
58
|
+
|
|
59
|
+
## 0.1.0-beta.53
|
|
60
|
+
|
|
61
|
+
### Minor Changes
|
|
62
|
+
|
|
63
|
+
- feat: add mobile breakpoint for button
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- Updated dependencies
|
|
68
|
+
- @dt-ui/react-button@0.1.0-beta.33
|
|
69
|
+
|
|
70
|
+
## 0.1.0-beta.52
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- chore: update contextual colors
|
|
75
|
+
- Updated dependencies
|
|
76
|
+
- @dt-ui/react-button@0.1.0-beta.32
|
|
77
|
+
- @dt-ui/react-core@0.1.0-beta.36
|
|
78
|
+
- @dt-ui/react-typography@0.1.0-beta.27
|
|
79
|
+
|
|
80
|
+
## 0.1.0-beta.51
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- fix: change content.light contextual color
|
|
85
|
+
- Updated dependencies
|
|
86
|
+
- @dt-ui/react-core@0.1.0-beta.35
|
|
87
|
+
- @dt-ui/react-button@0.1.0-beta.31
|
|
88
|
+
- @dt-ui/react-typography@0.1.0-beta.26
|
|
89
|
+
|
|
90
|
+
## 0.1.0-beta.50
|
|
91
|
+
|
|
92
|
+
### Minor Changes
|
|
93
|
+
|
|
94
|
+
- feat: move icon-button to independent
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- fix: reduce button height
|
|
99
|
+
- Updated dependencies
|
|
100
|
+
- @dt-ui/react-button@0.1.0-beta.30
|
|
101
|
+
|
|
102
|
+
## 0.1.0-beta.49
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- fix: add accent to colors type
|
|
107
|
+
- Updated dependencies
|
|
108
|
+
- @dt-ui/react-core@0.1.0-beta.34
|
|
109
|
+
- @dt-ui/react-button@0.1.0-beta.29
|
|
110
|
+
- @dt-ui/react-typography@0.1.0-beta.25
|
|
111
|
+
|
|
112
|
+
## 0.1.0-beta.48
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- fix: button styles
|
|
117
|
+
- Updated dependencies
|
|
118
|
+
- @dt-ui/react-button@0.1.0-beta.28
|
|
119
|
+
|
|
120
|
+
## 0.1.0-beta.47
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- fix: change button text according to ux
|
|
125
|
+
- Updated dependencies
|
|
126
|
+
- @dt-ui/react-button@0.1.0-beta.27
|
|
127
|
+
- @dt-ui/react-core@0.1.0-beta.33
|
|
128
|
+
- @dt-ui/react-typography@0.1.0-beta.24
|
|
129
|
+
|
|
130
|
+
## 0.1.0-beta.46
|
|
131
|
+
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- fix: change button styles
|
|
135
|
+
- Updated dependencies
|
|
136
|
+
- @dt-ui/react-button@0.1.0-beta.26
|
|
137
|
+
|
|
138
|
+
## 0.1.0-beta.45
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- chore: update contexual colors
|
|
143
|
+
- Updated dependencies
|
|
144
|
+
- @dt-ui/react-button@0.1.0-beta.25
|
|
145
|
+
- @dt-ui/react-core@0.1.0-beta.32
|
|
146
|
+
- @dt-ui/react-typography@0.1.0-beta.23
|
|
147
|
+
|
|
148
|
+
## 0.1.0-beta.44
|
|
149
|
+
|
|
150
|
+
### Patch Changes
|
|
151
|
+
|
|
152
|
+
- fix: button loading responsiveness
|
|
153
|
+
- refactor: avoid centring spinner
|
|
154
|
+
- Updated dependencies
|
|
155
|
+
- Updated dependencies
|
|
156
|
+
- @dt-ui/react-button@0.1.0-beta.24
|
|
157
|
+
|
|
158
|
+
## 0.1.0-beta.43
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- style: update responsive font styles
|
|
163
|
+
- Updated dependencies
|
|
164
|
+
- @dt-ui/react-core@0.1.0-beta.31
|
|
165
|
+
- @dt-ui/react-button@0.1.0-beta.23
|
|
166
|
+
- @dt-ui/react-typography@0.1.0-beta.22
|
|
167
|
+
|
|
168
|
+
## 0.1.0-beta.42
|
|
169
|
+
|
|
170
|
+
### Minor Changes
|
|
171
|
+
|
|
172
|
+
- feat: add accent color to button appearance
|
|
173
|
+
- feat: add spinner size 'extra-small' & update specs
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- Updated dependencies
|
|
178
|
+
- Updated dependencies
|
|
179
|
+
- @dt-ui/react-button@0.1.0-beta.22
|
|
180
|
+
- @dt-ui/react-core@0.1.0-beta.30
|
|
181
|
+
- @dt-ui/react-typography@0.1.0-beta.21
|
|
182
|
+
|
|
183
|
+
## 0.1.0-beta.41
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- chore: add theme breakpoints
|
|
188
|
+
- Updated dependencies
|
|
189
|
+
- @dt-ui/react-core@0.1.0-beta.29
|
|
190
|
+
- @dt-ui/react-button@0.1.0-beta.21
|
|
191
|
+
- @dt-ui/react-typography@0.1.0-beta.20
|
|
192
|
+
|
|
193
|
+
## 0.1.0-beta.40
|
|
194
|
+
|
|
195
|
+
### Patch Changes
|
|
196
|
+
|
|
197
|
+
- fix(button-styles): update :disabled colors
|
|
198
|
+
- Updated dependencies
|
|
199
|
+
- @dt-ui/react-button@0.1.0-beta.20
|
|
200
|
+
|
|
201
|
+
## 0.1.0-beta.39
|
|
202
|
+
|
|
203
|
+
### Minor Changes
|
|
204
|
+
|
|
205
|
+
- feat: add id to base props
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- Updated dependencies
|
|
210
|
+
- @dt-ui/react-core@0.1.0-beta.28
|
|
211
|
+
- @dt-ui/react-typography@0.1.0-beta.19
|
|
212
|
+
- @dt-ui/react-button@0.1.0-beta.19
|
|
213
|
+
|
|
214
|
+
## 0.1.0-beta.38
|
|
215
|
+
|
|
216
|
+
### Minor Changes
|
|
217
|
+
|
|
218
|
+
- feat: change breakpoints values
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- Updated dependencies
|
|
223
|
+
- @dt-ui/react-button@0.1.0-beta.18
|
|
224
|
+
- @dt-ui/react-core@0.1.0-beta.27
|
|
225
|
+
- @dt-ui/react-typography@0.1.0-beta.18
|
|
226
|
+
|
|
227
|
+
## 0.1.0-beta.37
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- fix: replace body to correct one
|
|
232
|
+
- Updated dependencies
|
|
233
|
+
- @dt-ui/react-core@0.1.0-beta.26
|
|
234
|
+
- @dt-ui/react-button@0.1.0-beta.17
|
|
235
|
+
- @dt-ui/react-typography@0.1.0-beta.17
|
|
236
|
+
|
|
237
|
+
## 0.1.0-beta.36
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- chore: add theme colors missing types
|
|
242
|
+
- Updated dependencies
|
|
243
|
+
- @dt-ui/react-core@0.1.0-beta.25
|
|
244
|
+
- @dt-ui/react-button@0.1.0-beta.16
|
|
245
|
+
- @dt-ui/react-typography@0.1.0-beta.16
|
|
246
|
+
|
|
247
|
+
## 0.1.0-beta.35
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- refactor: drop truckapi theme
|
|
252
|
+
- Updated dependencies
|
|
253
|
+
- @dt-ui/react-core@0.1.0-beta.24
|
|
254
|
+
- @dt-ui/react-button@0.1.0-beta.15
|
|
255
|
+
- @dt-ui/react-typography@0.1.0-beta.15
|
|
256
|
+
|
|
257
|
+
## 0.1.0-beta.34
|
|
258
|
+
|
|
259
|
+
### Minor Changes
|
|
260
|
+
|
|
261
|
+
- feat: update core and semantic colors
|
|
262
|
+
- feat: remove greenlane theme
|
|
263
|
+
|
|
264
|
+
### Patch Changes
|
|
265
|
+
|
|
266
|
+
- Updated dependencies
|
|
267
|
+
- Updated dependencies
|
|
268
|
+
- @dt-ui/react-button@0.1.0-beta.14
|
|
269
|
+
- @dt-ui/react-core@0.1.0-beta.23
|
|
270
|
+
- @dt-ui/react-typography@0.1.0-beta.14
|
|
271
|
+
|
|
272
|
+
## 0.1.0-beta.33
|
|
273
|
+
|
|
274
|
+
### Minor Changes
|
|
275
|
+
|
|
276
|
+
- feat: add icon option for truckapi theme
|
|
277
|
+
|
|
278
|
+
### Patch Changes
|
|
279
|
+
|
|
280
|
+
- Updated dependencies
|
|
281
|
+
- @dt-ui/react-core@0.1.0-beta.22
|
|
282
|
+
- @dt-ui/react-button@0.1.0-beta.13
|
|
283
|
+
- @dt-ui/react-typography@0.1.0-beta.13
|
|
284
|
+
|
|
285
|
+
## 0.1.0-beta.32
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- fix: tooltip z index
|
|
290
|
+
- Updated dependencies
|
|
291
|
+
- @dt-ui/react-core@0.1.0-beta.21
|
|
292
|
+
- @dt-ui/react-button@0.1.0-beta.12
|
|
293
|
+
- @dt-ui/react-typography@0.1.0-beta.12
|
|
294
|
+
|
|
295
|
+
## 0.1.0-beta.31
|
|
296
|
+
|
|
297
|
+
### Minor Changes
|
|
298
|
+
|
|
299
|
+
- feat: add segmented control component
|
|
300
|
+
|
|
301
|
+
### Patch Changes
|
|
302
|
+
|
|
303
|
+
- Updated dependencies
|
|
304
|
+
- @dt-ui/react-core@0.1.0-beta.20
|
|
305
|
+
- @dt-ui/react-button@0.1.0-beta.11
|
|
306
|
+
- @dt-ui/react-typography@0.1.0-beta.11
|
|
307
|
+
|
|
308
|
+
## 0.1.0-beta.30
|
|
309
|
+
|
|
310
|
+
### Patch Changes
|
|
311
|
+
|
|
312
|
+
- fix: add shape for tooltip on truckapi theme
|
|
313
|
+
- Updated dependencies
|
|
314
|
+
- @dt-ui/react-core@0.1.0-beta.19
|
|
315
|
+
- @dt-ui/react-button@0.1.0-beta.10
|
|
316
|
+
- @dt-ui/react-typography@0.1.0-beta.10
|
|
317
|
+
|
|
318
|
+
## 0.1.0-beta.29
|
|
319
|
+
|
|
320
|
+
### Patch Changes
|
|
321
|
+
|
|
322
|
+
- fix: remove devDependecy export
|
|
323
|
+
- Updated dependencies
|
|
324
|
+
- @dt-ui/react-core@0.1.0-beta.18
|
|
325
|
+
- @dt-ui/react-button@0.1.0-beta.9
|
|
326
|
+
- @dt-ui/react-typography@0.1.0-beta.9
|
|
327
|
+
|
|
328
|
+
## 0.1.0-beta.28
|
|
329
|
+
|
|
330
|
+
### Patch Changes
|
|
331
|
+
|
|
332
|
+
- test: add test custom render
|
|
333
|
+
- Updated dependencies
|
|
334
|
+
- @dt-ui/react-core@0.1.0-beta.17
|
|
335
|
+
- @dt-ui/react-button@0.1.0-beta.8
|
|
336
|
+
- @dt-ui/react-typography@0.1.0-beta.8
|
|
337
|
+
|
|
338
|
+
## 0.1.0-beta.27
|
|
339
|
+
|
|
340
|
+
### Minor Changes
|
|
341
|
+
|
|
342
|
+
- feat: create select
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- Updated dependencies
|
|
347
|
+
- @dt-ui/react-core@0.1.0-beta.16
|
|
348
|
+
- @dt-ui/react-button@0.1.0-beta.7
|
|
349
|
+
- @dt-ui/react-typography@0.1.0-beta.7
|
|
350
|
+
|
|
351
|
+
## 0.1.0-beta.26
|
|
352
|
+
|
|
353
|
+
### Patch Changes
|
|
354
|
+
|
|
355
|
+
- fix: show shadows only when scroll is visible
|
|
356
|
+
- Updated dependencies
|
|
357
|
+
- @dt-ui/react-core@0.1.0-beta.15
|
|
358
|
+
- @dt-ui/react-button@0.1.0-beta.6
|
|
359
|
+
- @dt-ui/react-typography@0.1.0-beta.6
|
|
360
|
+
|
|
361
|
+
## 0.1.0-beta.25
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- fix: update border radius theme specifications
|
|
366
|
+
- Updated dependencies
|
|
367
|
+
- @dt-ui/react-core@0.1.0-beta.14
|
|
368
|
+
- @dt-ui/react-button@0.1.0-beta.5
|
|
369
|
+
- @dt-ui/react-typography@0.1.0-beta.5
|
|
370
|
+
|
|
371
|
+
## 0.1.0-beta.24
|
|
372
|
+
|
|
373
|
+
### Patch Changes
|
|
374
|
+
|
|
375
|
+
- fix: change the default type of button
|
|
376
|
+
- Updated dependencies
|
|
377
|
+
- @dt-ui/react-button@0.1.0-beta.4
|
|
378
|
+
|
|
379
|
+
## 0.1.0-beta.23
|
|
380
|
+
|
|
381
|
+
### Patch Changes
|
|
382
|
+
|
|
383
|
+
- fix: match accordion design
|
|
384
|
+
- Updated dependencies
|
|
385
|
+
- @dt-ui/react-core@0.1.0-beta.13
|
|
386
|
+
- @dt-ui/react-button@0.1.0-beta.3
|
|
387
|
+
- @dt-ui/react-typography@0.1.0-beta.4
|
|
388
|
+
|
|
389
|
+
## 0.1.0-beta.22
|
|
390
|
+
|
|
391
|
+
### Minor Changes
|
|
392
|
+
|
|
393
|
+
- feat: add button contrast style
|
|
394
|
+
|
|
395
|
+
### Patch Changes
|
|
396
|
+
|
|
397
|
+
- Updated dependencies
|
|
398
|
+
- @dt-ui/react-button@0.1.0-beta.2
|
|
399
|
+
|
|
400
|
+
## 0.1.0-beta.21
|
|
401
|
+
|
|
402
|
+
### Patch Changes
|
|
403
|
+
|
|
404
|
+
- chore: make Button component independent
|
|
405
|
+
- Updated dependencies
|
|
406
|
+
- @dt-ui/react-button@0.1.0-beta.1
|
|
407
|
+
|
|
408
|
+
## 0.1.0-beta.20
|
|
409
|
+
|
|
410
|
+
### Patch Changes
|
|
411
|
+
|
|
412
|
+
- fix: make icons an optional property in theme
|
|
413
|
+
- Updated dependencies
|
|
414
|
+
- @dt-ui/react-core@0.1.0-beta.12
|
|
415
|
+
- @dt-ui/react-typography@0.1.0-beta.3
|
|
416
|
+
|
|
417
|
+
## 0.1.0-beta.19
|
|
418
|
+
|
|
419
|
+
### Patch Changes
|
|
420
|
+
|
|
421
|
+
- refactor: extract text-field to new package with greenlane theme
|
|
422
|
+
- Updated dependencies
|
|
423
|
+
- @dt-ui/react-core@0.1.0-beta.11
|
|
424
|
+
- @dt-ui/react-typography@0.1.0-beta.2
|
|
425
|
+
|
|
426
|
+
## 0.1.0-beta.18
|
|
427
|
+
|
|
428
|
+
### Patch Changes
|
|
429
|
+
|
|
430
|
+
- chore: make Typography component independent
|
|
431
|
+
- Updated dependencies
|
|
432
|
+
- @dt-ui/react-typography@0.1.0-beta.1
|
|
433
|
+
|
|
434
|
+
## 0.1.0-beta.17
|
|
435
|
+
|
|
436
|
+
### Patch Changes
|
|
437
|
+
|
|
438
|
+
- refactor: move and refactor checkbox refactor checkbox according to design
|
|
439
|
+
- Updated dependencies
|
|
440
|
+
- @dt-ui/react-core@0.1.0-beta.10
|
|
441
|
+
|
|
442
|
+
## 0.1.0-beta.16
|
|
443
|
+
|
|
444
|
+
### Patch Changes
|
|
445
|
+
|
|
446
|
+
- fix(icons): export css and update imports on deps
|
|
447
|
+
- Updated dependencies
|
|
448
|
+
- @dt-ui/react-core@0.1.0-beta.9
|
|
449
|
+
|
|
450
|
+
## 0.1.0-beta.15
|
|
451
|
+
|
|
452
|
+
### Patch Changes
|
|
453
|
+
|
|
454
|
+
- chore: update component generator and lint fixes
|
|
455
|
+
|
|
456
|
+
## 0.1.0-beta.14
|
|
457
|
+
|
|
458
|
+
### Patch Changes
|
|
459
|
+
|
|
460
|
+
- chore: move util functions to the core
|
|
461
|
+
- Updated dependencies
|
|
462
|
+
- @dt-ui/react-core@0.1.0-beta.8
|
|
463
|
+
|
|
464
|
+
## 0.1.0-beta.13
|
|
465
|
+
|
|
466
|
+
### Minor Changes
|
|
467
|
+
|
|
468
|
+
- feat: add contextual color add content tertiary to palette
|
|
469
|
+
|
|
470
|
+
### Patch Changes
|
|
471
|
+
|
|
472
|
+
- Updated dependencies
|
|
473
|
+
- @dt-ui/react-core@0.1.0-beta.7
|
|
474
|
+
|
|
475
|
+
## 0.1.0-beta.12
|
|
476
|
+
|
|
477
|
+
### Minor Changes
|
|
478
|
+
|
|
479
|
+
- feat: create Icons package
|
|
480
|
+
- feat: add icons to theme Provider
|
|
481
|
+
|
|
482
|
+
### Patch Changes
|
|
483
|
+
|
|
484
|
+
- Updated dependencies
|
|
485
|
+
- Updated dependencies
|
|
486
|
+
- @dt-ui/react-core@0.1.0-beta.6
|
|
487
|
+
|
|
488
|
+
## 0.1.0-beta.11
|
|
489
|
+
|
|
490
|
+
### Minor Changes
|
|
491
|
+
|
|
492
|
+
- feat: create TruckAPI theme and update default
|
|
493
|
+
|
|
494
|
+
### Patch Changes
|
|
495
|
+
|
|
496
|
+
- Updated dependencies
|
|
497
|
+
- @dt-ui/react-core@0.1.0-beta.5
|
|
498
|
+
|
|
499
|
+
## 0.1.0-beta.10
|
|
500
|
+
|
|
501
|
+
### Minor Changes
|
|
502
|
+
|
|
503
|
+
- feat: update contextual color to follow figma spec
|
|
504
|
+
|
|
505
|
+
### Patch Changes
|
|
506
|
+
|
|
507
|
+
- Updated dependencies
|
|
508
|
+
- @dt-ui/react-core@0.1.0-beta.4
|
|
509
|
+
|
|
510
|
+
## 0.1.0-beta.9
|
|
511
|
+
|
|
512
|
+
### Minor Changes
|
|
513
|
+
|
|
514
|
+
- feat: review Message designs based on designs
|
|
515
|
+
|
|
516
|
+
### Patch Changes
|
|
517
|
+
|
|
518
|
+
- fix: move react-core to main dependencies
|
|
519
|
+
- Updated dependencies
|
|
520
|
+
- @dt-ui/react-core@0.1.0-beta.3
|
|
521
|
+
|
|
522
|
+
## 0.1.0-beta.8
|
|
523
|
+
|
|
524
|
+
### Patch Changes
|
|
525
|
+
|
|
526
|
+
- chore: migrate jest setup file to jest package
|
|
527
|
+
- chore: migrate jest configuration to typescript
|
|
528
|
+
|
|
529
|
+
## 0.1.0-beta.7
|
|
530
|
+
|
|
531
|
+
### Patch Changes
|
|
532
|
+
|
|
533
|
+
- chore: create core package
|
|
534
|
+
|
|
535
|
+
## 0.1.0-beta.6
|
|
536
|
+
|
|
537
|
+
### Patch Changes
|
|
538
|
+
|
|
539
|
+
- refactor: change storybook template names to default
|
|
540
|
+
|
|
541
|
+
## 0.1.0-beta.5
|
|
542
|
+
|
|
543
|
+
### Patch Changes
|
|
544
|
+
|
|
545
|
+
- refactor: update story files
|
|
546
|
+
|
|
547
|
+
## 0.1.0-beta.4
|
|
548
|
+
|
|
549
|
+
### Patch Changes
|
|
550
|
+
|
|
551
|
+
- refactor: update dt-ui to use contextual colors
|
|
552
|
+
|
|
553
|
+
## 0.1.0-beta.3
|
|
554
|
+
|
|
555
|
+
### Patch Changes
|
|
556
|
+
|
|
557
|
+
- fix: update typography sizes and text-trasnform
|
|
558
|
+
- fix: remove isUppercased prop from button
|
|
559
|
+
|
|
560
|
+
## 0.1.0-beta.2
|
|
561
|
+
|
|
562
|
+
### Patch Changes
|
|
563
|
+
|
|
564
|
+
- refactor: add style and dataTestId props to EmptyState
|
|
565
|
+
|
|
566
|
+
## 0.1.0-beta.1
|
|
567
|
+
|
|
568
|
+
### Patch Changes
|
|
569
|
+
|
|
570
|
+
- chore: make empty-state an independent package
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Daimler Truck AG.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# EmptyState Package
|
|
2
|
+
|
|
3
|
+
This package fills the width of the container where is placed and its height varies depending on the content in it.
|
|
4
|
+
The usage of this package is to show a message to the user when there is no data to display.
|
|
5
|
+
Furthermore, it can be used to show additional information like a button, a link or an image as children.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import { EmptyState } from '@dt-dds/react';
|
|
11
|
+
|
|
12
|
+
export const App = () => {
|
|
13
|
+
const title = 'Some Title';
|
|
14
|
+
const description = 'Some Description';
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<EmptyState>
|
|
18
|
+
<img />
|
|
19
|
+
<EmptyState.Content title={title} description={description} />
|
|
20
|
+
<Button onClick={() => {}} variant='solid'>
|
|
21
|
+
Action
|
|
22
|
+
</Button>
|
|
23
|
+
</EmptyState>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## API
|
|
29
|
+
|
|
30
|
+
### EmptyState
|
|
31
|
+
|
|
32
|
+
| Property | Type | Default | Description |
|
|
33
|
+
| ------------ | --------------------- | --------------- | ------------------------------------------------- |
|
|
34
|
+
| `children` | `ReactNode` | - | Child components to be rendered. |
|
|
35
|
+
| `dataTestId` | `string` | `'empty-state'` | Customizable test identifier. |
|
|
36
|
+
| `style` | `React.CSSProperties` | - | Gives the EmptyState some specific css properties |
|
|
37
|
+
|
|
38
|
+
### EmptyState.Content
|
|
39
|
+
|
|
40
|
+
| Property | Type | Default | Description |
|
|
41
|
+
| ------------- | --------------------- | ----------------------- | ----------------------------------------------------------- |
|
|
42
|
+
| `dataTestId` | `string` | `'empty-state-content'` | Customizable test identifier. |
|
|
43
|
+
| `style` | `React.CSSProperties` | - | Gives the EmptyState Content some specific css properties |
|
|
44
|
+
| `title` | `string` | - | Text to be presented as Title within the Empty State. |
|
|
45
|
+
| `description` | `string` | - | Text to be presented as Description within the Empty State. |
|
|
46
|
+
|
|
47
|
+
### Stack
|
|
48
|
+
|
|
49
|
+
- [TypeScript](https://www.typescriptlang.org/) for static type checking
|
|
50
|
+
- [React](https://reactjs.org/) — JavaScript library for user interfaces
|
|
51
|
+
- [Emotion](https://emotion.sh/docs/introduction) — for writing css styles with JavaScript
|
|
52
|
+
- [Storybook](https://storybook.js.org/) — UI component environment powered by Vite
|
|
53
|
+
- [Jest](https://jestjs.io/) - JavaScript Testing Framework
|
|
54
|
+
- [React Testing Library](https://testing-library.com/) - to test UI components in a user-centric way
|
|
55
|
+
- [ESLint](https://eslint.org/) for code linting
|
|
56
|
+
- [Prettier](https://prettier.io) for code formatting
|
|
57
|
+
- [Tsup](https://github.com/egoist/tsup) — TypeScript bundler powered by esbuild
|
|
58
|
+
- [Yarn](https://yarnpkg.com/) from managing packages
|
|
59
|
+
|
|
60
|
+
### Commands
|
|
61
|
+
|
|
62
|
+
- `yarn build` - Build the package
|
|
63
|
+
- `yarn dev` - Run the package locally
|
|
64
|
+
- `yarn lint` - Lint all files within this package
|
|
65
|
+
- `yarn test` - Run all unit tests
|
|
66
|
+
- `yarn test:report` - Open the test coverage report
|
|
67
|
+
- `yarn test:update:snapshot` - Run all unit tests and update the snapshot
|
|
68
|
+
|
|
69
|
+
### Compilation
|
|
70
|
+
|
|
71
|
+
Running `yarn build` from the root of the package will use [tsup](https://tsup.egoist.dev/) to compile the raw TypeScript and React code to plain JavaScript.
|
|
72
|
+
|
|
73
|
+
The `/dist` folder contains the compiled output.
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
empty-state
|
|
77
|
+
└── dist
|
|
78
|
+
├── index.d.ts <-- Types
|
|
79
|
+
├── index.js <-- CommonJS version
|
|
80
|
+
└── index.mjs <-- ES Modules version
|
|
81
|
+
...
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Versioning
|
|
85
|
+
|
|
86
|
+
Follows [semantic versioning](https://semver.org/)
|
|
87
|
+
|
|
88
|
+
## © License
|
|
89
|
+
|
|
90
|
+
Licensed under [MIT License](LICENSE.md)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseProps, Theme } from '@dt-dds/react-core';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
interface EmptyStateContentProps extends Omit<BaseProps, 'children'> {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
declare const EmptyState: {
|
|
9
|
+
({ children, dataTestId, style }: BaseProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
Content({ dataTestId, style, title, description, }: EmptyStateContentProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
declare module '@emotion/react' {
|
|
14
|
+
interface Theme extends Theme {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { EmptyState, EmptyStateContentProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// index.ts
|
|
31
|
+
var empty_state_exports = {};
|
|
32
|
+
__export(empty_state_exports, {
|
|
33
|
+
EmptyState: () => EmptyState
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(empty_state_exports);
|
|
36
|
+
|
|
37
|
+
// src/EmptyState.tsx
|
|
38
|
+
var import_react_typography = require("@dt-dds/react-typography");
|
|
39
|
+
|
|
40
|
+
// src/EmptyState.styled.ts
|
|
41
|
+
var import_styled = __toESM(require("@emotion/styled"));
|
|
42
|
+
var EmptyStateStyled = import_styled.default.div`
|
|
43
|
+
${({ theme }) => `
|
|
44
|
+
padding: ${theme.spacing.l} ${theme.spacing.s};
|
|
45
|
+
background-color: ${theme.palette.surface.light};
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
border-radius: ${theme.shape.emptyState};
|
|
51
|
+
border: 1px dashed ${theme.palette.border.default};
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
gap: ${theme.spacing.xs};
|
|
55
|
+
|
|
56
|
+
@media only screen and (min-width: ${theme.breakpoints.s}px) {
|
|
57
|
+
padding: ${theme.spacing["2xl"]} ${theme.spacing["5xl"]};
|
|
58
|
+
}
|
|
59
|
+
`}
|
|
60
|
+
`;
|
|
61
|
+
var EmptyStateContentStyled = import_styled.default.div`
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
text-align: center;
|
|
67
|
+
${({ theme }) => `
|
|
68
|
+
gap: ${theme.spacing["4xs"]};
|
|
69
|
+
|
|
70
|
+
@media only screen and (min-width: ${theme.breakpoints.s}px) {
|
|
71
|
+
gap: ${theme.spacing["3xs"]};
|
|
72
|
+
}
|
|
73
|
+
`}
|
|
74
|
+
`;
|
|
75
|
+
|
|
76
|
+
// src/EmptyState.tsx
|
|
77
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
78
|
+
var EmptyState = ({ children, dataTestId, style }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyStateStyled, { "data-testid": dataTestId != null ? dataTestId : "empty-state", style, children });
|
|
79
|
+
EmptyState.Content = ({
|
|
80
|
+
dataTestId,
|
|
81
|
+
style,
|
|
82
|
+
title,
|
|
83
|
+
description
|
|
84
|
+
}) => {
|
|
85
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
86
|
+
EmptyStateContentStyled,
|
|
87
|
+
{
|
|
88
|
+
"data-testid": dataTestId != null ? dataTestId : "empty-state-content",
|
|
89
|
+
style,
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.dark", element: "h2", fontStyles: "h4", children: title }),
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.default", fontStyles: "body1", children: description })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
98
|
+
0 && (module.exports = {
|
|
99
|
+
EmptyState
|
|
100
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// src/EmptyState.tsx
|
|
2
|
+
import { Typography } from "@dt-dds/react-typography";
|
|
3
|
+
|
|
4
|
+
// src/EmptyState.styled.ts
|
|
5
|
+
import styled from "@emotion/styled";
|
|
6
|
+
var EmptyStateStyled = styled.div`
|
|
7
|
+
${({ theme }) => `
|
|
8
|
+
padding: ${theme.spacing.l} ${theme.spacing.s};
|
|
9
|
+
background-color: ${theme.palette.surface.light};
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border-radius: ${theme.shape.emptyState};
|
|
15
|
+
border: 1px dashed ${theme.palette.border.default};
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
gap: ${theme.spacing.xs};
|
|
19
|
+
|
|
20
|
+
@media only screen and (min-width: ${theme.breakpoints.s}px) {
|
|
21
|
+
padding: ${theme.spacing["2xl"]} ${theme.spacing["5xl"]};
|
|
22
|
+
}
|
|
23
|
+
`}
|
|
24
|
+
`;
|
|
25
|
+
var EmptyStateContentStyled = styled.div`
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
text-align: center;
|
|
31
|
+
${({ theme }) => `
|
|
32
|
+
gap: ${theme.spacing["4xs"]};
|
|
33
|
+
|
|
34
|
+
@media only screen and (min-width: ${theme.breakpoints.s}px) {
|
|
35
|
+
gap: ${theme.spacing["3xs"]};
|
|
36
|
+
}
|
|
37
|
+
`}
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
// src/EmptyState.tsx
|
|
41
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
42
|
+
var EmptyState = ({ children, dataTestId, style }) => /* @__PURE__ */ jsx(EmptyStateStyled, { "data-testid": dataTestId != null ? dataTestId : "empty-state", style, children });
|
|
43
|
+
EmptyState.Content = ({
|
|
44
|
+
dataTestId,
|
|
45
|
+
style,
|
|
46
|
+
title,
|
|
47
|
+
description
|
|
48
|
+
}) => {
|
|
49
|
+
return /* @__PURE__ */ jsxs(
|
|
50
|
+
EmptyStateContentStyled,
|
|
51
|
+
{
|
|
52
|
+
"data-testid": dataTestId != null ? dataTestId : "empty-state-content",
|
|
53
|
+
style,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Typography, { color: "content.dark", element: "h2", fontStyles: "h4", children: title }),
|
|
56
|
+
/* @__PURE__ */ jsx(Typography, { color: "content.default", fontStyles: "body1", children: description })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
EmptyState
|
|
63
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dt-dds/react-empty-state",
|
|
3
|
+
"version": "1.0.0-beta.58",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./dist/index.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.mjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/**"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsup",
|
|
16
|
+
"dev": "tsup --watch",
|
|
17
|
+
"lint": "eslint --cache .",
|
|
18
|
+
"test": "jest",
|
|
19
|
+
"test:report": "open ./jest-coverage/lcov-report/index.html",
|
|
20
|
+
"test:update:snapshot": "jest -u"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@dt-dds/react-button": "1.0.0-beta.38",
|
|
24
|
+
"@dt-dds/react-core": "1.0.0-beta.41",
|
|
25
|
+
"@dt-dds/react-typography": "1.0.0-beta.32"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/core": "^7.22.9",
|
|
29
|
+
"@babel/preset-env": "^7.22.9",
|
|
30
|
+
"@babel/preset-react": "^7.22.5",
|
|
31
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
32
|
+
"@emotion/babel-plugin": "^11.11.0",
|
|
33
|
+
"@emotion/css": "^11.7.1",
|
|
34
|
+
"@emotion/jest": "^11.10.0",
|
|
35
|
+
"@emotion/react": "^11.8.2",
|
|
36
|
+
"@emotion/styled": "^11.8.1",
|
|
37
|
+
"@types/react": "^18.0.9",
|
|
38
|
+
"@types/react-dom": "^18.0.4",
|
|
39
|
+
"babel-loader": "^8.3.0",
|
|
40
|
+
"eslint-config-custom": "*",
|
|
41
|
+
"eslint-plugin-storybook": "^9.1.0",
|
|
42
|
+
"jest-config": "*",
|
|
43
|
+
"react": "^18.1.0",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
45
|
+
"tsconfig": "*",
|
|
46
|
+
"tsup": "^6.6.3",
|
|
47
|
+
"typescript": "^4.5.3"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@emotion/css": "^11.7.1",
|
|
51
|
+
"@emotion/react": "^11.8.2",
|
|
52
|
+
"@emotion/styled": "^11.8.1",
|
|
53
|
+
"react": ">=17.0.2",
|
|
54
|
+
"react-dom": ">=17.0.2"
|
|
55
|
+
}
|
|
56
|
+
}
|