@purpurds/table 8.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/table",
3
- "version": "8.19.0",
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.19.0",
25
- "@purpurds/cta-link": "8.19.0",
26
- "@purpurds/checkbox": "8.19.0",
27
- "@purpurds/button": "8.19.0",
28
- "@purpurds/drawer": "8.19.0",
29
- "@purpurds/paragraph": "8.19.0",
30
- "@purpurds/heading": "8.19.0",
31
- "@purpurds/link": "8.19.0",
32
- "@purpurds/icon": "8.19.0",
33
- "@purpurds/select": "8.19.0",
34
- "@purpurds/skeleton": "8.19.0",
35
- "@purpurds/text-field": "8.19.0",
36
- "@purpurds/toggle": "8.19.0",
37
- "@purpurds/tokens": "8.19.0",
38
- "@purpurds/tooltip": "8.19.0",
39
- "@purpurds/visually-hidden": "8.19.0"
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",
@@ -45,7 +45,7 @@
45
45
  "@testing-library/jest-dom": "~6.9.1",
46
46
  "@testing-library/react": "~16.3.0",
47
47
  "@testing-library/user-event": "~14.5.1",
48
- "@types/node": "22.17",
48
+ "@types/node": "24.10.9",
49
49
  "@types/react-dom": "^19.2.3",
50
50
  "@types/react": "^19.2.6",
51
51
  "eslint": "9.39.2",
@@ -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.19.0",
63
+ "@purpurds/autocomplete": "8.20.1",
64
64
  "@purpurds/component-rig": "1.0.0",
65
- "@purpurds/grid": "8.19.0",
66
- "@purpurds/illustrative-icon": "8.19.0",
67
- "@purpurds/label": "8.19.0",
68
- "@purpurds/listbox": "8.19.0",
69
- "@purpurds/pagination": "8.19.0"
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",
@@ -66,14 +66,22 @@ export const EmptyTable = ({
66
66
  `${rootClassName}__empty-section`,
67
67
  `${rootClassName}__empty-section--${variant}`,
68
68
  ])}
69
- style={visibleWidth ? { width: `${visibleWidth}px` } : undefined}
69
+ style={
70
+ visibleWidth
71
+ ? { width: `calc(${visibleWidth}px - 2 * var(--purpur-border-width-xs))` }
72
+ : undefined
73
+ }
70
74
  >
71
- {icon && <div className={cx(`${rootClassName}__empty-section__icon`)}>{icon}</div>}
72
- <div className={cx(`${rootClassName}__empty-section__texts`)}>
73
- <Heading data-testid="purpur-table-empty-table-title" variant="title-100" tag={tag}>
74
- {title}
75
- </Heading>
76
- <Paragraph data-testid="purpur-table-empty-table-description">{description}</Paragraph>
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>
@@ -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 {