@caspeco/casper-ui-library 7.11.0 → 8.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/dist/components/alert/helper.js +0 -2
- package/dist/components/checkbox/checkbox-icon.js +1 -7
- package/dist/components/menu/helper.js +0 -1
- package/dist/components/stepper/step.js +0 -1
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +1 -1
- package/dist/components/table/table-content.d.ts +5 -0
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +23 -24
- package/dist/components/table/table-toolbar-actions.d.ts +17 -0
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -0
- package/dist/components/table/table-toolbar-actions.js +25 -0
- package/dist/components/table/table-toolbar-add-button.d.ts +13 -0
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -0
- package/dist/components/table/table-toolbar-add-button.js +13 -0
- package/dist/components/table/table-toolbar-search.d.ts +11 -0
- package/dist/components/table/table-toolbar-search.d.ts.map +1 -0
- package/dist/components/table/table-toolbar-search.js +19 -0
- package/dist/components/table/table-toolbar-settings.d.ts +7 -0
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -0
- package/dist/components/table/table-toolbar-settings.js +59 -0
- package/dist/components/table/table-toolbar.d.ts +11 -19
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +49 -143
- package/dist/components/table/table-toolbar.spec.d.ts +2 -0
- package/dist/components/table/table-toolbar.spec.d.ts.map +1 -0
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +5 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/types.d.ts +4 -1
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/index.js +63 -55
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +31 -28
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +77 -66
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -35
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -3
- package/dist/node_modules/date-fns/constants.js +1 -1
- package/package.json +10 -10
|
@@ -25,8 +25,6 @@ const s = {
|
|
|
25
25
|
// A, B
|
|
26
26
|
case "GGGGG":
|
|
27
27
|
return e.era(t, { width: "narrow" });
|
|
28
|
-
// Anno Domini, Before Christ
|
|
29
|
-
case "GGGG":
|
|
30
28
|
default:
|
|
31
29
|
return e.era(t, { width: "wide" });
|
|
32
30
|
}
|
|
@@ -91,8 +89,6 @@ const s = {
|
|
|
91
89
|
width: "narrow",
|
|
92
90
|
context: "formatting"
|
|
93
91
|
});
|
|
94
|
-
// 1st quarter, 2nd quarter, ...
|
|
95
|
-
case "QQQQ":
|
|
96
92
|
default:
|
|
97
93
|
return e.quarter(t, {
|
|
98
94
|
width: "wide",
|
|
@@ -125,8 +121,6 @@ const s = {
|
|
|
125
121
|
width: "narrow",
|
|
126
122
|
context: "standalone"
|
|
127
123
|
});
|
|
128
|
-
// 1st quarter, 2nd quarter, ...
|
|
129
|
-
case "qqqq":
|
|
130
124
|
default:
|
|
131
125
|
return e.quarter(t, {
|
|
132
126
|
width: "wide",
|
|
@@ -156,8 +150,6 @@ const s = {
|
|
|
156
150
|
width: "narrow",
|
|
157
151
|
context: "formatting"
|
|
158
152
|
});
|
|
159
|
-
// January, February, ..., December
|
|
160
|
-
case "MMMM":
|
|
161
153
|
default:
|
|
162
154
|
return e.month(t, { width: "wide", context: "formatting" });
|
|
163
155
|
}
|
|
@@ -187,8 +179,6 @@ const s = {
|
|
|
187
179
|
width: "narrow",
|
|
188
180
|
context: "standalone"
|
|
189
181
|
});
|
|
190
|
-
// January, February, ..., December
|
|
191
|
-
case "LLLL":
|
|
192
182
|
default:
|
|
193
183
|
return e.month(t, { width: "wide", context: "standalone" });
|
|
194
184
|
}
|
|
@@ -236,8 +226,6 @@ const s = {
|
|
|
236
226
|
width: "short",
|
|
237
227
|
context: "formatting"
|
|
238
228
|
});
|
|
239
|
-
// Tuesday
|
|
240
|
-
case "EEEE":
|
|
241
229
|
default:
|
|
242
230
|
return e.day(t, {
|
|
243
231
|
width: "wide",
|
|
@@ -275,8 +263,6 @@ const s = {
|
|
|
275
263
|
width: "short",
|
|
276
264
|
context: "formatting"
|
|
277
265
|
});
|
|
278
|
-
// Tuesday
|
|
279
|
-
case "eeee":
|
|
280
266
|
default:
|
|
281
267
|
return e.day(a, {
|
|
282
268
|
width: "wide",
|
|
@@ -314,8 +300,6 @@ const s = {
|
|
|
314
300
|
width: "short",
|
|
315
301
|
context: "standalone"
|
|
316
302
|
});
|
|
317
|
-
// Tuesday
|
|
318
|
-
case "cccc":
|
|
319
303
|
default:
|
|
320
304
|
return e.day(a, {
|
|
321
305
|
width: "wide",
|
|
@@ -354,8 +338,6 @@ const s = {
|
|
|
354
338
|
width: "short",
|
|
355
339
|
context: "formatting"
|
|
356
340
|
});
|
|
357
|
-
// Tuesday
|
|
358
|
-
case "iiii":
|
|
359
341
|
default:
|
|
360
342
|
return e.day(t, {
|
|
361
343
|
width: "wide",
|
|
@@ -383,7 +365,6 @@ const s = {
|
|
|
383
365
|
width: "narrow",
|
|
384
366
|
context: "formatting"
|
|
385
367
|
});
|
|
386
|
-
case "aaaa":
|
|
387
368
|
default:
|
|
388
369
|
return e.dayPeriod(a, {
|
|
389
370
|
width: "wide",
|
|
@@ -412,7 +393,6 @@ const s = {
|
|
|
412
393
|
width: "narrow",
|
|
413
394
|
context: "formatting"
|
|
414
395
|
});
|
|
415
|
-
case "bbbb":
|
|
416
396
|
default:
|
|
417
397
|
return e.dayPeriod(a, {
|
|
418
398
|
width: "wide",
|
|
@@ -437,7 +417,6 @@ const s = {
|
|
|
437
417
|
width: "narrow",
|
|
438
418
|
context: "formatting"
|
|
439
419
|
});
|
|
440
|
-
case "BBBB":
|
|
441
420
|
default:
|
|
442
421
|
return e.dayPeriod(a, {
|
|
443
422
|
width: "wide",
|
|
@@ -494,11 +473,6 @@ const s = {
|
|
|
494
473
|
case "XXXX":
|
|
495
474
|
case "XX":
|
|
496
475
|
return c(t);
|
|
497
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
498
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
499
|
-
// so this token always has the same output as `XXX`
|
|
500
|
-
case "XXXXX":
|
|
501
|
-
case "XXX":
|
|
502
476
|
// Hours and minutes with `:` delimiter
|
|
503
477
|
default:
|
|
504
478
|
return c(t, ":");
|
|
@@ -517,11 +491,6 @@ const s = {
|
|
|
517
491
|
case "xxxx":
|
|
518
492
|
case "xx":
|
|
519
493
|
return c(t);
|
|
520
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
521
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
522
|
-
// so this token always has the same output as `xxx`
|
|
523
|
-
case "xxxxx":
|
|
524
|
-
case "xxx":
|
|
525
494
|
// Hours and minutes with `:` delimiter
|
|
526
495
|
default:
|
|
527
496
|
return c(t, ":");
|
|
@@ -536,8 +505,6 @@ const s = {
|
|
|
536
505
|
case "OO":
|
|
537
506
|
case "OOO":
|
|
538
507
|
return "GMT" + d(t, ":");
|
|
539
|
-
// Long
|
|
540
|
-
case "OOOO":
|
|
541
508
|
default:
|
|
542
509
|
return "GMT" + c(t, ":");
|
|
543
510
|
}
|
|
@@ -551,8 +518,6 @@ const s = {
|
|
|
551
518
|
case "zz":
|
|
552
519
|
case "zzz":
|
|
553
520
|
return "GMT" + d(t, ":");
|
|
554
|
-
// Long
|
|
555
|
-
case "zzzz":
|
|
556
521
|
default:
|
|
557
522
|
return "GMT" + c(t, ":");
|
|
558
523
|
}
|
|
@@ -6,7 +6,6 @@ const s = (t, e) => {
|
|
|
6
6
|
return e.date({ width: "medium" });
|
|
7
7
|
case "PPP":
|
|
8
8
|
return e.date({ width: "long" });
|
|
9
|
-
case "PPPP":
|
|
10
9
|
default:
|
|
11
10
|
return e.date({ width: "full" });
|
|
12
11
|
}
|
|
@@ -18,7 +17,6 @@ const s = (t, e) => {
|
|
|
18
17
|
return e.time({ width: "medium" });
|
|
19
18
|
case "ppp":
|
|
20
19
|
return e.time({ width: "long" });
|
|
21
|
-
case "pppp":
|
|
22
20
|
default:
|
|
23
21
|
return e.time({ width: "full" });
|
|
24
22
|
}
|
|
@@ -37,7 +35,6 @@ const s = (t, e) => {
|
|
|
37
35
|
case "PPP":
|
|
38
36
|
i = e.dateTime({ width: "long" });
|
|
39
37
|
break;
|
|
40
|
-
case "PPPP":
|
|
41
38
|
default:
|
|
42
39
|
i = e.dateTime({ width: "full" });
|
|
43
40
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"@caspeco/prettier-config": "^1.0.7",
|
|
33
33
|
"@eslint/js": "^9.39.2",
|
|
34
34
|
"@testing-library/jest-dom": "^6.9.1",
|
|
35
|
-
"@testing-library/react": "^16.3.
|
|
35
|
+
"@testing-library/react": "^16.3.1",
|
|
36
36
|
"@testing-library/user-event": "^14.6.1",
|
|
37
37
|
"@types/jest": "^30.0.0",
|
|
38
|
-
"@types/node": "^24.10.
|
|
38
|
+
"@types/node": "^24.10.7",
|
|
39
39
|
"@types/react": "^18.3.12",
|
|
40
40
|
"@types/react-dom": "^18.3.1",
|
|
41
41
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
42
42
|
"eslint": "^9.39.2",
|
|
43
43
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
44
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
44
|
+
"eslint-plugin-react-refresh": "^0.4.26",
|
|
45
45
|
"globals": "^16.5.0",
|
|
46
|
-
"jsdom": "^27.
|
|
46
|
+
"jsdom": "^27.4.0",
|
|
47
47
|
"tsc-alias": "^1.8.16",
|
|
48
48
|
"typescript": "~5.9.3",
|
|
49
|
-
"typescript-eslint": "^8.
|
|
50
|
-
"vite": "^7.
|
|
49
|
+
"typescript-eslint": "^8.52.0",
|
|
50
|
+
"vite": "^7.3.1",
|
|
51
51
|
"vite-plugin-dts": "^4.5.4",
|
|
52
|
-
"vite-tsconfig-paths": "^
|
|
53
|
-
"vitest": "^4.0.
|
|
52
|
+
"vite-tsconfig-paths": "^6.0.4",
|
|
53
|
+
"vitest": "^4.0.16"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@chakra-ui/react": "^2.8.2",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@chakra-ui/anatomy": "^2.3.4",
|
|
63
63
|
"@floating-ui/dom": "^1.7.4",
|
|
64
64
|
"@tanstack/react-table": "^8.21.3",
|
|
65
|
-
"@tanstack/react-virtual": "^3.13.
|
|
65
|
+
"@tanstack/react-virtual": "^3.13.18",
|
|
66
66
|
"csstype": "^3.2.3",
|
|
67
67
|
"date-fns": "^4.1.0"
|
|
68
68
|
}
|