@purpurds/table 8.20.0 → 8.20.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/dist/LICENSE.txt +16 -16
- package/dist/empty-table.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/table.cjs.js +10 -10
- package/dist/table.cjs.js.map +1 -1
- package/dist/table.es.js +1387 -1386
- package/dist/table.es.js.map +1 -1
- package/package.json +23 -23
- package/src/empty-table.tsx +15 -7
- package/src/table.module.scss +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/table",
|
|
3
|
-
"version": "8.20.
|
|
3
|
+
"version": "8.20.1",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/table.cjs.js",
|
|
6
6
|
"types": "./dist/table.d.ts",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"@dnd-kit/utilities": "~3.2.2",
|
|
22
22
|
"@tanstack/react-table": "~8.21.2",
|
|
23
23
|
"classnames": "~2.5.1",
|
|
24
|
-
"@purpurds/badge": "8.20.
|
|
25
|
-
"@purpurds/
|
|
26
|
-
"@purpurds/
|
|
27
|
-
"@purpurds/drawer": "8.20.
|
|
28
|
-
"@purpurds/
|
|
29
|
-
"@purpurds/
|
|
30
|
-
"@purpurds/
|
|
31
|
-
"@purpurds/
|
|
32
|
-
"@purpurds/
|
|
33
|
-
"@purpurds/
|
|
34
|
-
"@purpurds/text-field": "8.20.
|
|
35
|
-
"@purpurds/
|
|
36
|
-
"@purpurds/
|
|
37
|
-
"@purpurds/tokens": "8.20.
|
|
38
|
-
"@purpurds/
|
|
39
|
-
"@purpurds/
|
|
24
|
+
"@purpurds/badge": "8.20.1",
|
|
25
|
+
"@purpurds/button": "8.20.1",
|
|
26
|
+
"@purpurds/cta-link": "8.20.1",
|
|
27
|
+
"@purpurds/drawer": "8.20.1",
|
|
28
|
+
"@purpurds/checkbox": "8.20.1",
|
|
29
|
+
"@purpurds/heading": "8.20.1",
|
|
30
|
+
"@purpurds/icon": "8.20.1",
|
|
31
|
+
"@purpurds/link": "8.20.1",
|
|
32
|
+
"@purpurds/paragraph": "8.20.1",
|
|
33
|
+
"@purpurds/select": "8.20.1",
|
|
34
|
+
"@purpurds/text-field": "8.20.1",
|
|
35
|
+
"@purpurds/toggle": "8.20.1",
|
|
36
|
+
"@purpurds/skeleton": "8.20.1",
|
|
37
|
+
"@purpurds/tokens": "8.20.1",
|
|
38
|
+
"@purpurds/tooltip": "8.20.1",
|
|
39
|
+
"@purpurds/visually-hidden": "8.20.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@rushstack/eslint-patch": "~1.10.0",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"vitest-axe": "~0.1.0",
|
|
61
61
|
"vitest-canvas-mock": "~0.3.3",
|
|
62
62
|
"vitest": "^4.0.10",
|
|
63
|
-
"@purpurds/autocomplete": "8.20.
|
|
63
|
+
"@purpurds/autocomplete": "8.20.1",
|
|
64
64
|
"@purpurds/component-rig": "1.0.0",
|
|
65
|
-
"@purpurds/
|
|
66
|
-
"@purpurds/
|
|
67
|
-
"@purpurds/
|
|
68
|
-
"@purpurds/
|
|
69
|
-
"@purpurds/
|
|
65
|
+
"@purpurds/illustrative-icon": "8.20.1",
|
|
66
|
+
"@purpurds/label": "8.20.1",
|
|
67
|
+
"@purpurds/grid": "8.20.1",
|
|
68
|
+
"@purpurds/listbox": "8.20.1",
|
|
69
|
+
"@purpurds/pagination": "8.20.1"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build:dev": "vite",
|
package/src/empty-table.tsx
CHANGED
|
@@ -66,14 +66,22 @@ export const EmptyTable = ({
|
|
|
66
66
|
`${rootClassName}__empty-section`,
|
|
67
67
|
`${rootClassName}__empty-section--${variant}`,
|
|
68
68
|
])}
|
|
69
|
-
style={
|
|
69
|
+
style={
|
|
70
|
+
visibleWidth
|
|
71
|
+
? { width: `calc(${visibleWidth}px - 2 * var(--purpur-border-width-xs))` }
|
|
72
|
+
: undefined
|
|
73
|
+
}
|
|
70
74
|
>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
<div className={cx([`${rootClassName}__empty-section__inner`])}>
|
|
76
|
+
{icon && <div className={cx(`${rootClassName}__empty-section__icon`)}>{icon}</div>}
|
|
77
|
+
<div className={cx(`${rootClassName}__empty-section__texts`)}>
|
|
78
|
+
<Heading data-testid="purpur-table-empty-table-title" variant="title-100" tag={tag}>
|
|
79
|
+
{title}
|
|
80
|
+
</Heading>
|
|
81
|
+
<Paragraph data-testid="purpur-table-empty-table-description">
|
|
82
|
+
{description}
|
|
83
|
+
</Paragraph>
|
|
84
|
+
</div>
|
|
77
85
|
</div>
|
|
78
86
|
</div>
|
|
79
87
|
</TableRowCell>
|
package/src/table.module.scss
CHANGED
|
@@ -319,6 +319,8 @@ $indicatorWidth: 3px;
|
|
|
319
319
|
|
|
320
320
|
&__empty-table {
|
|
321
321
|
padding: 0;
|
|
322
|
+
text-align: center;
|
|
323
|
+
white-space: normal;
|
|
322
324
|
|
|
323
325
|
.purpur-table__empty-section {
|
|
324
326
|
border-bottom-left-radius: var(--table-border-radius);
|
|
@@ -495,17 +497,20 @@ $indicatorWidth: 3px;
|
|
|
495
497
|
}
|
|
496
498
|
|
|
497
499
|
.purpur-table__empty-section {
|
|
498
|
-
display: flex;
|
|
499
|
-
padding: var(--purpur-spacing-250) var(--purpur-spacing-400) var(--purpur-spacing-400)
|
|
500
|
-
var(--purpur-spacing-400);
|
|
501
|
-
flex-direction: column;
|
|
502
|
-
justify-content: center;
|
|
503
|
-
align-items: center;
|
|
504
|
-
gap: var(--purpur-spacing-150);
|
|
505
|
-
align-self: stretch;
|
|
506
500
|
position: sticky;
|
|
507
501
|
left: 0;
|
|
508
502
|
|
|
503
|
+
&__inner {
|
|
504
|
+
display: flex;
|
|
505
|
+
flex-direction: column;
|
|
506
|
+
justify-content: center;
|
|
507
|
+
align-items: center;
|
|
508
|
+
|
|
509
|
+
gap: var(--purpur-spacing-150);
|
|
510
|
+
padding: var(--purpur-spacing-250) var(--purpur-spacing-400) var(--purpur-spacing-400)
|
|
511
|
+
var(--purpur-spacing-400);
|
|
512
|
+
}
|
|
513
|
+
|
|
509
514
|
&__icon {
|
|
510
515
|
width: var(--purpur-spacing-1600);
|
|
511
516
|
height: var(--purpur-spacing-1600);
|
|
@@ -528,11 +533,6 @@ $indicatorWidth: 3px;
|
|
|
528
533
|
&--secondary {
|
|
529
534
|
background: var(--purpur-color-background-primary);
|
|
530
535
|
}
|
|
531
|
-
|
|
532
|
-
@media (min-width: $purpur-breakpoint-md) {
|
|
533
|
-
padding: var(--purpur-spacing-250) var(--purpur-spacing-0) var(--purpur-spacing-400)
|
|
534
|
-
var(--purpur-spacing-0);
|
|
535
|
-
}
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
.purpur-table__drag-overlay {
|