@gridui/table 3.1.2 → 3.2.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/README.md +11 -1
- package/dist/styled.js +3 -0
- package/dist/styles.css +192 -0
- package/dist/styles.local.css +286 -0
- package/docs/catalog.json +2 -1
- package/package.json +12 -7
package/README.md
CHANGED
|
@@ -3,10 +3,20 @@
|
|
|
3
3
|
Data family. Public API: `DataTable`, `DataTableBlockEdges`, `DataTableColumn`, `DataTableColumnGroup`, `DataTableInlineEdges`, `DataTablePlaceholder`, `DataTablePlaceholderProps`, `DataTableProps`, `DataTableRow`, `DataTableRowDetail`, `DataTableVariant`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/table` and load `@gridui/table/styles.css` after Theme.
|
|
6
|
-
|
|
6
|
+
Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
8
|
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-data/table/.changeset/history).
|
|
9
9
|
|
|
10
|
+
## Styles
|
|
11
|
+
|
|
12
|
+
Load Theme once. Use `@gridui/table/styled` for automatic component CSS in
|
|
13
|
+
CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/table/styles.css`.
|
|
14
|
+
Both entries expose the same root API. The standalone stylesheet includes component
|
|
15
|
+
dependency styles; Theme/reset remain separate. See the
|
|
16
|
+
[integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
|
|
17
|
+
for static HTML loading, SSR limits, and avoiding duplicate CSS.
|
|
18
|
+
|
|
19
|
+
|
|
10
20
|
## Data presentation
|
|
11
21
|
|
|
12
22
|
Related families and their ownership are listed in the
|
package/dist/styled.js
ADDED
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,195 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.gridui-u-overlay--z-\(--gridui-z-popover\) {
|
|
11
|
+
z-index: var(--gridui-z-popover);
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-overlay--flex {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
.gridui-u-overlay--inline-flex {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
}
|
|
19
|
+
.gridui-u-overlay--size-gridui-16 {
|
|
20
|
+
width: var(--gridui-space-16);
|
|
21
|
+
height: var(--gridui-space-16);
|
|
22
|
+
}
|
|
23
|
+
.gridui-u-overlay--min-h-10 {
|
|
24
|
+
min-height: calc(var(--spacing) * 10);
|
|
25
|
+
}
|
|
26
|
+
.gridui-u-overlay--min-w-0 {
|
|
27
|
+
min-width: 0px;
|
|
28
|
+
}
|
|
29
|
+
.gridui-u-overlay--shrink-0 {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-overlay--cursor-pointer {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-overlay--items-center {
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
.gridui-u-overlay--justify-center {
|
|
39
|
+
justify-content: center;
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-overlay--gap-gridui-8 {
|
|
42
|
+
gap: var(--gridui-space-8);
|
|
43
|
+
}
|
|
44
|
+
.gridui-u-overlay--rounded-control {
|
|
45
|
+
border-radius: var(--gridui-control-radius);
|
|
46
|
+
}
|
|
47
|
+
.gridui-u-overlay--border {
|
|
48
|
+
border-style: var(--tw-border-style);
|
|
49
|
+
border-width: 1px;
|
|
50
|
+
}
|
|
51
|
+
.gridui-u-overlay--border-solid {
|
|
52
|
+
--tw-border-style: solid;
|
|
53
|
+
border-style: solid;
|
|
54
|
+
}
|
|
55
|
+
.gridui-u-overlay--border-border {
|
|
56
|
+
border-color: var(--gridui-border);
|
|
57
|
+
}
|
|
58
|
+
.gridui-u-overlay--bg-background {
|
|
59
|
+
background-color: var(--gridui-background);
|
|
60
|
+
}
|
|
61
|
+
.gridui-u-overlay--p-0 {
|
|
62
|
+
padding: 0px;
|
|
63
|
+
}
|
|
64
|
+
.gridui-u-overlay--p-gridui-8 {
|
|
65
|
+
padding: var(--gridui-space-8);
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-overlay--px-gridui-8 {
|
|
68
|
+
padding-inline: var(--gridui-space-8);
|
|
69
|
+
}
|
|
70
|
+
.gridui-u-overlay--py-gridui-8 {
|
|
71
|
+
padding-block: var(--gridui-space-8);
|
|
72
|
+
}
|
|
73
|
+
.gridui-u-overlay--type-data {
|
|
74
|
+
font: var(--gridui-type-data);
|
|
75
|
+
font-family: var(--gridui-font-body);
|
|
76
|
+
letter-spacing: normal;
|
|
77
|
+
font-variant-numeric: tabular-nums;
|
|
78
|
+
}
|
|
79
|
+
.gridui-u-overlay--type-caption {
|
|
80
|
+
font: var(--gridui-type-caption);
|
|
81
|
+
font-family: var(--gridui-font-body);
|
|
82
|
+
letter-spacing: normal;
|
|
83
|
+
}
|
|
84
|
+
.gridui-u-overlay--wrap-anywhere {
|
|
85
|
+
overflow-wrap: anywhere;
|
|
86
|
+
}
|
|
87
|
+
.gridui-u-overlay--whitespace-normal {
|
|
88
|
+
white-space: normal;
|
|
89
|
+
}
|
|
90
|
+
.gridui-u-overlay--text-foreground {
|
|
91
|
+
color: var(--gridui-foreground);
|
|
92
|
+
}
|
|
93
|
+
.gridui-u-overlay--text-inherit {
|
|
94
|
+
color: inherit;
|
|
95
|
+
}
|
|
96
|
+
.gridui-u-overlay--text-muted {
|
|
97
|
+
color: var(--gridui-muted);
|
|
98
|
+
}
|
|
99
|
+
.gridui-u-overlay--no-underline {
|
|
100
|
+
text-decoration-line: none;
|
|
101
|
+
}
|
|
102
|
+
.gridui-u-overlay--aria-selected\:bg-selection-background[aria-selected="true"] {
|
|
103
|
+
background-color: var(--gridui-selection-background);
|
|
104
|
+
}
|
|
105
|
+
.gridui-u-overlay--aria-\[current\=page\]\:bg-selection-background[aria-current="page"] {
|
|
106
|
+
background-color: var(--gridui-selection-background);
|
|
107
|
+
}
|
|
108
|
+
.gridui-u-overlay--data-disabled\:pointer-events-none[data-disabled] {
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
}
|
|
111
|
+
.gridui-u-overlay--data-disabled\:opacity-50[data-disabled] {
|
|
112
|
+
opacity: 50%;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-overlay--data-\[state\=checked\]\:bg-selection-background[data-state="checked"] {
|
|
115
|
+
background-color: var(--gridui-selection-background);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@layer components {
|
|
119
|
+
.gridui-overlay-surface {
|
|
120
|
+
--gridui-surface-offset-x: 0px;
|
|
121
|
+
--gridui-surface-offset-y: 0px;
|
|
122
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
|
|
123
|
+
--gridui-overlay-fill-mode: both;
|
|
124
|
+
transform-origin: var(--gridui-overlay-origin, center);
|
|
125
|
+
}
|
|
126
|
+
.gridui-overlay-dialog {
|
|
127
|
+
--gridui-overlay-fill-mode: none;
|
|
128
|
+
transform-origin: center;
|
|
129
|
+
}
|
|
130
|
+
.gridui-overlay-tooltip {
|
|
131
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-quick);
|
|
132
|
+
}
|
|
133
|
+
.gridui-overlay-floating[data-side="bottom"] {
|
|
134
|
+
--gridui-surface-offset-y: calc(-1 * var(--gridui-motion-distance));
|
|
135
|
+
}
|
|
136
|
+
.gridui-overlay-floating[data-side="top"] {
|
|
137
|
+
--gridui-surface-offset-y: var(--gridui-motion-distance);
|
|
138
|
+
}
|
|
139
|
+
.gridui-overlay-floating[data-side="left"] {
|
|
140
|
+
--gridui-surface-offset-x: var(--gridui-motion-distance);
|
|
141
|
+
}
|
|
142
|
+
.gridui-overlay-floating[data-side="right"] {
|
|
143
|
+
--gridui-surface-offset-x: calc(-1 * var(--gridui-motion-distance));
|
|
144
|
+
}
|
|
145
|
+
.gridui-overlay-surface[data-state="closed"] {
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
}
|
|
148
|
+
.gridui-overlay-surface:not([data-side="none"]):is([data-state="open"], [data-state="delayed-open"], [data-state="instant-open"]) {
|
|
149
|
+
animation: var(--gridui-motion-animation, gridui-surface-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
|
|
150
|
+
}
|
|
151
|
+
.gridui-overlay-surface:not([data-side="none"])[data-state="closed"] {
|
|
152
|
+
animation: var(--gridui-motion-animation, gridui-surface-exit calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
|
|
153
|
+
}
|
|
154
|
+
.gridui-overlay-backdrop {
|
|
155
|
+
background: var(--gridui-backdrop);
|
|
156
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
157
|
+
background: color-mix(in srgb, var(--gridui-backdrop) var(--gridui-backdrop-opacity), transparent);
|
|
158
|
+
}
|
|
159
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
|
|
160
|
+
--gridui-overlay-exit-duration: var(--gridui-motion-duration-quick);
|
|
161
|
+
--gridui-overlay-fill-mode: none;
|
|
162
|
+
}
|
|
163
|
+
.gridui-overlay-backdrop-deliberate {
|
|
164
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-deliberate);
|
|
165
|
+
--gridui-overlay-exit-duration: var(--gridui-motion-duration-normal);
|
|
166
|
+
--gridui-overlay-fill-mode: both;
|
|
167
|
+
}
|
|
168
|
+
.gridui-overlay-backdrop[data-state="open"] {
|
|
169
|
+
animation: var(--gridui-motion-animation, gridui-fade-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
|
|
170
|
+
}
|
|
171
|
+
.gridui-overlay-backdrop[data-state="closed"] {
|
|
172
|
+
animation: var(--gridui-motion-animation, gridui-fade-exit calc(var(--gridui-overlay-exit-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
|
|
173
|
+
}
|
|
174
|
+
@media (prefers-reduced-motion: reduce) {
|
|
175
|
+
.gridui-overlay-surface:not([data-side="none"])[data-state], .gridui-overlay-backdrop[data-state] {
|
|
176
|
+
animation: none;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
@property --tw-border-style {
|
|
181
|
+
syntax: "*";
|
|
182
|
+
inherits: false;
|
|
183
|
+
initial-value: solid;
|
|
184
|
+
}
|
|
185
|
+
@layer properties {
|
|
186
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
187
|
+
*, ::before, ::after, ::backdrop {
|
|
188
|
+
--tw-border-style: solid;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
1
193
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
194
|
@layer properties;
|
|
3
195
|
@layer theme, base, components, utilities;
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--font-weight-normal: 400;
|
|
7
|
+
--font-weight-medium: 500;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
@layer utilities {
|
|
11
|
+
.gridui-u-table--pointer-events-none {
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
.gridui-u-table--w-full {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
.gridui-u-table--max-w-full {
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
}
|
|
20
|
+
.gridui-u-table--min-w-0 {
|
|
21
|
+
min-width: 0px;
|
|
22
|
+
}
|
|
23
|
+
.gridui-u-table--border-collapse {
|
|
24
|
+
border-collapse: collapse;
|
|
25
|
+
}
|
|
26
|
+
.gridui-u-table--overflow-x-auto {
|
|
27
|
+
overflow-x: auto;
|
|
28
|
+
}
|
|
29
|
+
.gridui-u-table--bg-background {
|
|
30
|
+
background-color: var(--gridui-background);
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-table--text-left {
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-table--type-data {
|
|
36
|
+
font: var(--gridui-type-data);
|
|
37
|
+
font-family: var(--gridui-font-body);
|
|
38
|
+
letter-spacing: normal;
|
|
39
|
+
font-variant-numeric: tabular-nums;
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-table--text-foreground {
|
|
42
|
+
color: var(--gridui-foreground);
|
|
43
|
+
}
|
|
44
|
+
.gridui-u-table--\[--gridui-table-cell-end\:var\(--gridui-table-cell-offset\)\] {
|
|
45
|
+
--gridui-table-cell-end: var(--gridui-table-cell-offset);
|
|
46
|
+
}
|
|
47
|
+
.gridui-u-table--\[--gridui-table-cell-position\:sticky\] {
|
|
48
|
+
--gridui-table-cell-position: sticky;
|
|
49
|
+
}
|
|
50
|
+
.gridui-u-table--\[--gridui-table-cell-start\:var\(--gridui-table-cell-offset\)\] {
|
|
51
|
+
--gridui-table-cell-start: var(--gridui-table-cell-offset);
|
|
52
|
+
}
|
|
53
|
+
.gridui-u-table--\[\&\>\:is\(thead\,tbody\,tfoot\)\>tr\>\.gridui-table-numeric\]\:text-right > :is(thead, tbody, tfoot) > tr > .gridui-table-numeric {
|
|
54
|
+
text-align: right;
|
|
55
|
+
}
|
|
56
|
+
.gridui-u-table--\[\&\>\:is\(thead\,tbody\,tfoot\)\>tr\>\.gridui-table-numeric\]\:tabular-nums > :is(thead, tbody, tfoot) > tr > .gridui-table-numeric {
|
|
57
|
+
--tw-numeric-spacing: tabular-nums;
|
|
58
|
+
font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
|
|
59
|
+
}
|
|
60
|
+
.gridui-u-table--\[\&\>\:is\(thead\,tbody\,tfoot\)\>tr\>\:is\(th\,td\)\]\:align-middle > :is(thead, tbody, tfoot) > tr > :is(th, td) {
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
}
|
|
63
|
+
.gridui-u-table--\[\&\>\:is\(thead\,tbody\,tfoot\)\>tr\>\:is\(th\,td\)\]\:wrap-anywhere > :is(thead, tbody, tfoot) > tr > :is(th, td) {
|
|
64
|
+
overflow-wrap: anywhere;
|
|
65
|
+
}
|
|
66
|
+
.gridui-u-table--\[\&\>tbody\>tr\>th\]\:text-left > tbody > tr > th {
|
|
67
|
+
text-align: left;
|
|
68
|
+
}
|
|
69
|
+
.gridui-u-table--\[\&\>tbody\>tr\>th\]\:font-normal > tbody > tr > th {
|
|
70
|
+
--tw-font-weight: var(--font-weight-normal);
|
|
71
|
+
font-weight: var(--font-weight-normal);
|
|
72
|
+
}
|
|
73
|
+
.gridui-u-table--\[\&\>thead\>\.gridui-table-groups\>th\]\:text-left > thead > .gridui-table-groups > th {
|
|
74
|
+
text-align: left;
|
|
75
|
+
}
|
|
76
|
+
.gridui-u-table--\[\&\>thead\>\.gridui-table-groups\>th\]\:type-eyebrow > thead > .gridui-table-groups > th {
|
|
77
|
+
font: var(--gridui-type-eyebrow);
|
|
78
|
+
font-family: var(--gridui-font-mono);
|
|
79
|
+
letter-spacing: 0.08em;
|
|
80
|
+
}
|
|
81
|
+
.gridui-u-table--\[\&\>thead\>\.gridui-table-groups\>th\]\:text-foreground > thead > .gridui-table-groups > th {
|
|
82
|
+
color: var(--gridui-foreground);
|
|
83
|
+
}
|
|
84
|
+
.gridui-u-table--\[\&\>thead\>tr\>th\]\:text-left > thead > tr > th {
|
|
85
|
+
text-align: left;
|
|
86
|
+
}
|
|
87
|
+
.gridui-u-table--\[\&\>thead\>tr\>th\]\:font-medium > thead > tr > th {
|
|
88
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
89
|
+
font-weight: var(--font-weight-medium);
|
|
90
|
+
}
|
|
91
|
+
.gridui-u-table--\[\&\>thead\>tr\>th\]\:text-muted > thead > tr > th {
|
|
92
|
+
color: var(--gridui-muted);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@layer components {
|
|
96
|
+
.gridui-table > :is(thead, tbody, tfoot) > tr > :is(th, td) {
|
|
97
|
+
padding: 1rem;
|
|
98
|
+
border: 1px solid var(--gridui-border);
|
|
99
|
+
}
|
|
100
|
+
.gridui-table > :is(thead, tbody, tfoot) > tr > :is(th, td):first-child {
|
|
101
|
+
border-inline-start-width: var(--gridui-table-inline-edge-width);
|
|
102
|
+
}
|
|
103
|
+
.gridui-table > :is(thead, tbody, tfoot) > tr > :is(th, td):last-child {
|
|
104
|
+
border-inline-end-width: var(--gridui-table-inline-edge-width);
|
|
105
|
+
}
|
|
106
|
+
.gridui-table > thead > tr > th {
|
|
107
|
+
background: var(--gridui-surface);
|
|
108
|
+
}
|
|
109
|
+
.gridui-table-editorial > tbody > tr > :is(th, td) {
|
|
110
|
+
padding-block: 1.5rem;
|
|
111
|
+
}
|
|
112
|
+
.gridui-table-structured > tbody > tr > th, .gridui-table > tbody > tr:hover > :is(th, td) {
|
|
113
|
+
background: var(--gridui-surface);
|
|
114
|
+
}
|
|
115
|
+
.gridui-table > thead > .gridui-table-groups > th {
|
|
116
|
+
padding-block: 0.5rem;
|
|
117
|
+
background: var(--gridui-selection-background);
|
|
118
|
+
}
|
|
119
|
+
.gridui-table > thead > tr:first-child > th {
|
|
120
|
+
border-block-start-width: var(--gridui-table-block-edge-width);
|
|
121
|
+
}
|
|
122
|
+
.gridui-table > tbody > tr:last-child > :is(th, td), .gridui-table:has(> tbody:empty) > thead > tr:last-child > th {
|
|
123
|
+
border-block-end-width: var(--gridui-table-block-edge-width);
|
|
124
|
+
}
|
|
125
|
+
.gridui-table {
|
|
126
|
+
--gridui-table-inline-edge-width: 1px;
|
|
127
|
+
--gridui-table-selection-offset: 2px;
|
|
128
|
+
}
|
|
129
|
+
.gridui-table:dir(rtl) {
|
|
130
|
+
--gridui-table-selection-offset: -2px;
|
|
131
|
+
}
|
|
132
|
+
.gridui-table[data-inline-edges="none"] {
|
|
133
|
+
--gridui-table-inline-edge-width: 0px;
|
|
134
|
+
}
|
|
135
|
+
@media (min-width: 40rem) {
|
|
136
|
+
.gridui-table[data-inline-edges-sm="both"] {
|
|
137
|
+
--gridui-table-inline-edge-width: 1px;
|
|
138
|
+
}
|
|
139
|
+
.gridui-table[data-inline-edges-sm="none"] {
|
|
140
|
+
--gridui-table-inline-edge-width: 0px;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
@media (min-width: 48rem) {
|
|
144
|
+
.gridui-table[data-inline-edges-md="both"] {
|
|
145
|
+
--gridui-table-inline-edge-width: 1px;
|
|
146
|
+
}
|
|
147
|
+
.gridui-table[data-inline-edges-md="none"] {
|
|
148
|
+
--gridui-table-inline-edge-width: 0px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
@media (min-width: 64rem) {
|
|
152
|
+
.gridui-table[data-inline-edges-lg="both"] {
|
|
153
|
+
--gridui-table-inline-edge-width: 1px;
|
|
154
|
+
}
|
|
155
|
+
.gridui-table[data-inline-edges-lg="none"] {
|
|
156
|
+
--gridui-table-inline-edge-width: 0px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
.gridui-table {
|
|
160
|
+
--gridui-table-block-edge-width: 1px;
|
|
161
|
+
}
|
|
162
|
+
.gridui-table[data-block-edges="none"] {
|
|
163
|
+
--gridui-table-block-edge-width: 0px;
|
|
164
|
+
}
|
|
165
|
+
@media (min-width: 40rem) {
|
|
166
|
+
.gridui-table[data-block-edges-sm="both"] {
|
|
167
|
+
--gridui-table-block-edge-width: 1px;
|
|
168
|
+
}
|
|
169
|
+
.gridui-table[data-block-edges-sm="none"] {
|
|
170
|
+
--gridui-table-block-edge-width: 0px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
@media (min-width: 48rem) {
|
|
174
|
+
.gridui-table[data-block-edges-md="both"] {
|
|
175
|
+
--gridui-table-block-edge-width: 1px;
|
|
176
|
+
}
|
|
177
|
+
.gridui-table[data-block-edges-md="none"] {
|
|
178
|
+
--gridui-table-block-edge-width: 0px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
@media (min-width: 64rem) {
|
|
182
|
+
.gridui-table[data-block-edges-lg="both"] {
|
|
183
|
+
--gridui-table-block-edge-width: 1px;
|
|
184
|
+
}
|
|
185
|
+
.gridui-table[data-block-edges-lg="none"] {
|
|
186
|
+
--gridui-table-block-edge-width: 0px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.gridui-table > tbody > tr > [data-sticky] {
|
|
190
|
+
z-index: 1;
|
|
191
|
+
background: var(--gridui-background);
|
|
192
|
+
}
|
|
193
|
+
.gridui-table > thead > tr > [data-sticky] {
|
|
194
|
+
z-index: 2;
|
|
195
|
+
}
|
|
196
|
+
.gridui-table[data-density="compact"] > :is(thead, tbody, tfoot) > tr > :is(th, td) {
|
|
197
|
+
padding-block: 0.5rem;
|
|
198
|
+
}
|
|
199
|
+
.gridui-table[data-density="comfortable"] > :is(thead, tbody, tfoot) > tr > :is(th, td) {
|
|
200
|
+
padding-block: 1.5rem;
|
|
201
|
+
}
|
|
202
|
+
.gridui-table[data-row-lines="false"] > tbody > tr:not(:last-child) > :is(th, td) {
|
|
203
|
+
border-block-end-width: 0;
|
|
204
|
+
}
|
|
205
|
+
.gridui-table[data-row-lines="false"] > tbody > tr:not(:first-child) > :is(th, td) {
|
|
206
|
+
border-block-start-width: 0;
|
|
207
|
+
}
|
|
208
|
+
.gridui-table[data-column-lines="false"] > :is(thead, tbody, tfoot) > tr > :is(th, td):not(:first-child) {
|
|
209
|
+
border-inline-start-width: 0;
|
|
210
|
+
}
|
|
211
|
+
.gridui-table[data-column-lines="false"] > :is(thead, tbody, tfoot) > tr > :is(th, td):not(:last-child) {
|
|
212
|
+
border-inline-end-width: 0;
|
|
213
|
+
}
|
|
214
|
+
.gridui-table[data-header-surface="plain"] > thead > tr > th {
|
|
215
|
+
background: var(--gridui-background);
|
|
216
|
+
}
|
|
217
|
+
.gridui-table[data-header-surface="muted"] > thead > tr > th {
|
|
218
|
+
background: var(--gridui-surface);
|
|
219
|
+
}
|
|
220
|
+
.gridui-table[data-row-header-surface="plain"] > tbody > tr > th {
|
|
221
|
+
background: var(--gridui-background);
|
|
222
|
+
}
|
|
223
|
+
.gridui-table[data-row-header-surface="muted"] > tbody > tr > th {
|
|
224
|
+
background: var(--gridui-surface);
|
|
225
|
+
}
|
|
226
|
+
.gridui-table > tbody > tr[data-striped] > :is(th, td) {
|
|
227
|
+
background: var(--gridui-surface);
|
|
228
|
+
}
|
|
229
|
+
.gridui-table > tbody > tr[data-selected] > :is(th, td) {
|
|
230
|
+
background: var(--gridui-accent-background);
|
|
231
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
232
|
+
background: color-mix(in srgb, var(--gridui-accent-background) 10%, var(--gridui-background));
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
.gridui-table > tbody > tr[data-selected] > :is(th, td):first-child {
|
|
236
|
+
box-shadow: inset var(--gridui-table-selection-offset) 0 var(--gridui-accent-background);
|
|
237
|
+
}
|
|
238
|
+
.gridui-table > tfoot > tr > :is(th, td) {
|
|
239
|
+
background: var(--gridui-surface);
|
|
240
|
+
}
|
|
241
|
+
.gridui-table > tfoot > tr > [data-sticky] {
|
|
242
|
+
z-index: 1;
|
|
243
|
+
}
|
|
244
|
+
.gridui-table:has(> tfoot) > tbody > tr:last-child > :is(th, td), .gridui-table:has(> tfoot):has(> tbody:empty) > thead > tr:last-child > th {
|
|
245
|
+
border-block-end-width: 1px;
|
|
246
|
+
}
|
|
247
|
+
.gridui-table > tfoot > tr:last-child > :is(th, td) {
|
|
248
|
+
border-block-end-width: var(--gridui-table-block-edge-width);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
@property --tw-ordinal {
|
|
252
|
+
syntax: "*";
|
|
253
|
+
inherits: false;
|
|
254
|
+
}
|
|
255
|
+
@property --tw-slashed-zero {
|
|
256
|
+
syntax: "*";
|
|
257
|
+
inherits: false;
|
|
258
|
+
}
|
|
259
|
+
@property --tw-numeric-figure {
|
|
260
|
+
syntax: "*";
|
|
261
|
+
inherits: false;
|
|
262
|
+
}
|
|
263
|
+
@property --tw-numeric-spacing {
|
|
264
|
+
syntax: "*";
|
|
265
|
+
inherits: false;
|
|
266
|
+
}
|
|
267
|
+
@property --tw-numeric-fraction {
|
|
268
|
+
syntax: "*";
|
|
269
|
+
inherits: false;
|
|
270
|
+
}
|
|
271
|
+
@property --tw-font-weight {
|
|
272
|
+
syntax: "*";
|
|
273
|
+
inherits: false;
|
|
274
|
+
}
|
|
275
|
+
@layer properties {
|
|
276
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
277
|
+
*, ::before, ::after, ::backdrop {
|
|
278
|
+
--tw-ordinal: initial;
|
|
279
|
+
--tw-slashed-zero: initial;
|
|
280
|
+
--tw-numeric-figure: initial;
|
|
281
|
+
--tw-numeric-spacing: initial;
|
|
282
|
+
--tw-numeric-fraction: initial;
|
|
283
|
+
--tw-font-weight: initial;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/table",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"category": "data",
|
|
6
6
|
"description": "GridUI React table",
|
|
7
7
|
"usage": "Related families and their ownership are listed in the component ownership map.",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@gridui/overlay/styles.css",
|
|
84
84
|
"@gridui/table/styles.css"
|
|
85
85
|
],
|
|
86
|
+
"styledImport": "@gridui/table/styled",
|
|
86
87
|
"examples": [
|
|
87
88
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/table/stories/getting-started.mdx",
|
|
88
89
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/table/stories/loading-details.mdx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/table",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "GridUI React table",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -27,15 +32,15 @@
|
|
|
27
32
|
"react-dom": "^19.2.0"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@gridui/overlay": "^2.
|
|
35
|
+
"@gridui/overlay": "^2.4.0",
|
|
31
36
|
"@gridui/style-utils": "^4.0.0",
|
|
32
|
-
"@gridui/theme": "^
|
|
37
|
+
"@gridui/theme": "^4.0.0",
|
|
33
38
|
"class-variance-authority": "0.7.1"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
41
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
37
|
-
"@gridui/data-cell": "1.
|
|
38
|
-
"@gridui/loading-surface": "1.
|
|
42
|
+
"@gridui/data-cell": "1.2.0",
|
|
43
|
+
"@gridui/loading-surface": "1.3.0",
|
|
39
44
|
"@jest/globals": "30.5.2",
|
|
40
45
|
"@storybook/react-vite": "10.6.7",
|
|
41
46
|
"@types/jest": "30.0.0",
|