@dmsi/wedgekit-react 0.0.511 → 0.0.513
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/{chunk-Y2GK27RX.js → chunk-BWPNXY7T.js} +0 -1
- package/dist/{chunk-FJRYHJUV.js → chunk-CDMXM5JW.js} +1 -1
- package/dist/{chunk-JWVZOEF5.js → chunk-YY66JVTB.js} +18 -9
- package/dist/{chunk-F6RZ7MUE.js → chunk-ZCIC3AIZ.js} +4 -1
- package/dist/components/CalendarRange.cjs +21 -9
- package/dist/components/CalendarRange.css +142 -0
- package/dist/components/CalendarRange.js +4 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +21 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +142 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +4 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +21 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +142 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +4 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +21 -9
- package/dist/components/DataGrid/PinnedColumns.css +142 -0
- package/dist/components/DataGrid/PinnedColumns.js +4 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +21 -9
- package/dist/components/DataGrid/TableBody/LoadingCell.css +142 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +4 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +21 -9
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +142 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +4 -4
- package/dist/components/DataGrid/TableBody/index.cjs +21 -9
- package/dist/components/DataGrid/TableBody/index.css +142 -0
- package/dist/components/DataGrid/TableBody/index.js +4 -4
- package/dist/components/DataGrid/index.cjs +21 -9
- package/dist/components/DataGrid/index.css +142 -0
- package/dist/components/DataGrid/index.js +4 -4
- package/dist/components/DataGrid/utils.cjs +21 -9
- package/dist/components/DataGrid/utils.css +142 -0
- package/dist/components/DataGrid/utils.js +4 -4
- package/dist/components/DataGridCell.cjs +4 -1
- package/dist/components/DataGridCell.js +1 -1
- package/dist/components/DateInput.cjs +21 -9
- package/dist/components/DateInput.css +142 -0
- package/dist/components/DateInput.js +4 -4
- package/dist/components/DateRangeInput.cjs +21 -9
- package/dist/components/DateRangeInput.css +142 -0
- package/dist/components/DateRangeInput.js +4 -4
- package/dist/components/Grid.cjs +0 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +21 -9
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +142 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +4 -4
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +21 -9
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +142 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +4 -4
- package/dist/components/MobileDataGrid/index.cjs +21 -9
- package/dist/components/MobileDataGrid/index.css +142 -0
- package/dist/components/MobileDataGrid/index.js +4 -4
- package/dist/components/ProductImagePreview/index.cjs +0 -1
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/index.cjs +21 -10
- package/dist/components/index.css +142 -0
- package/dist/components/index.js +4 -4
- package/dist/index.css +142 -0
- package/package.json +1 -1
- package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -4
- package/src/components/DataGrid/TableBody/index.tsx +9 -0
- package/src/components/DataGrid/index.tsx +4 -0
- package/src/components/DataGrid/types.ts +2 -0
- package/src/components/DataGridCell.tsx +3 -0
- package/src/components/Grid.tsx +1 -2
- package/src/index.css +1 -0
|
@@ -1038,9 +1038,36 @@
|
|
|
1038
1038
|
.grid-cols-2 {
|
|
1039
1039
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1040
1040
|
}
|
|
1041
|
+
.grid-cols-3 {
|
|
1042
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1043
|
+
}
|
|
1044
|
+
.grid-cols-4 {
|
|
1045
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1046
|
+
}
|
|
1047
|
+
.grid-cols-5 {
|
|
1048
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1049
|
+
}
|
|
1050
|
+
.grid-cols-6 {
|
|
1051
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
1052
|
+
}
|
|
1041
1053
|
.grid-cols-7 {
|
|
1042
1054
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1043
1055
|
}
|
|
1056
|
+
.grid-cols-8 {
|
|
1057
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
1058
|
+
}
|
|
1059
|
+
.grid-cols-9 {
|
|
1060
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
1061
|
+
}
|
|
1062
|
+
.grid-cols-10 {
|
|
1063
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
1064
|
+
}
|
|
1065
|
+
.grid-cols-11 {
|
|
1066
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
1067
|
+
}
|
|
1068
|
+
.grid-cols-12 {
|
|
1069
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
1070
|
+
}
|
|
1044
1071
|
.grid-cols-\[auto_1fr\] {
|
|
1045
1072
|
grid-template-columns: auto 1fr;
|
|
1046
1073
|
}
|
|
@@ -3867,6 +3894,66 @@
|
|
|
3867
3894
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
3868
3895
|
}
|
|
3869
3896
|
}
|
|
3897
|
+
.compact\:grid-cols-1 {
|
|
3898
|
+
&:where([data-compact]) {
|
|
3899
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
.compact\:grid-cols-2 {
|
|
3903
|
+
&:where([data-compact]) {
|
|
3904
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3905
|
+
}
|
|
3906
|
+
}
|
|
3907
|
+
.compact\:grid-cols-3 {
|
|
3908
|
+
&:where([data-compact]) {
|
|
3909
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
.compact\:grid-cols-4 {
|
|
3913
|
+
&:where([data-compact]) {
|
|
3914
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3917
|
+
.compact\:grid-cols-5 {
|
|
3918
|
+
&:where([data-compact]) {
|
|
3919
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
.compact\:grid-cols-6 {
|
|
3923
|
+
&:where([data-compact]) {
|
|
3924
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
.compact\:grid-cols-7 {
|
|
3928
|
+
&:where([data-compact]) {
|
|
3929
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
.compact\:grid-cols-8 {
|
|
3933
|
+
&:where([data-compact]) {
|
|
3934
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
.compact\:grid-cols-9 {
|
|
3938
|
+
&:where([data-compact]) {
|
|
3939
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
.compact\:grid-cols-10 {
|
|
3943
|
+
&:where([data-compact]) {
|
|
3944
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
.compact\:grid-cols-11 {
|
|
3948
|
+
&:where([data-compact]) {
|
|
3949
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
3950
|
+
}
|
|
3951
|
+
}
|
|
3952
|
+
.compact\:grid-cols-12 {
|
|
3953
|
+
&:where([data-compact]) {
|
|
3954
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3870
3957
|
.compact\:gap-desktop-compact-component-gap {
|
|
3871
3958
|
&:where([data-compact]) {
|
|
3872
3959
|
gap: var(--spacing-desktop-compact-component-gap);
|
|
@@ -4203,11 +4290,66 @@
|
|
|
4203
4290
|
flex-grow: 0;
|
|
4204
4291
|
}
|
|
4205
4292
|
}
|
|
4293
|
+
.desktop\:grid-cols-1 {
|
|
4294
|
+
@container root (width >= 48rem) {
|
|
4295
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
.desktop\:grid-cols-2 {
|
|
4299
|
+
@container root (width >= 48rem) {
|
|
4300
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
.desktop\:grid-cols-3 {
|
|
4304
|
+
@container root (width >= 48rem) {
|
|
4305
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4206
4308
|
.desktop\:grid-cols-4 {
|
|
4207
4309
|
@container root (width >= 48rem) {
|
|
4208
4310
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4209
4311
|
}
|
|
4210
4312
|
}
|
|
4313
|
+
.desktop\:grid-cols-5 {
|
|
4314
|
+
@container root (width >= 48rem) {
|
|
4315
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
.desktop\:grid-cols-6 {
|
|
4319
|
+
@container root (width >= 48rem) {
|
|
4320
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
.desktop\:grid-cols-7 {
|
|
4324
|
+
@container root (width >= 48rem) {
|
|
4325
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
.desktop\:grid-cols-8 {
|
|
4329
|
+
@container root (width >= 48rem) {
|
|
4330
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
.desktop\:grid-cols-9 {
|
|
4334
|
+
@container root (width >= 48rem) {
|
|
4335
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
.desktop\:grid-cols-10 {
|
|
4339
|
+
@container root (width >= 48rem) {
|
|
4340
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
.desktop\:grid-cols-11 {
|
|
4344
|
+
@container root (width >= 48rem) {
|
|
4345
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
.desktop\:grid-cols-12 {
|
|
4349
|
+
@container root (width >= 48rem) {
|
|
4350
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4211
4353
|
.desktop\:flex-col {
|
|
4212
4354
|
@container root (width >= 48rem) {
|
|
4213
4355
|
flex-direction: column;
|
package/dist/components/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
DataGrid,
|
|
3
3
|
DateInput,
|
|
4
4
|
MobileDataGrid
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-YY66JVTB.js";
|
|
6
6
|
import "../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../chunk-ELXVDRWS.js";
|
|
8
8
|
import "../chunk-3UUCDNX3.js";
|
|
9
9
|
import {
|
|
10
10
|
ProductImagePreview
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-CDMXM5JW.js";
|
|
12
12
|
import "../chunk-BQNPOGD5.js";
|
|
13
13
|
import {
|
|
14
14
|
SearchResultImage
|
|
@@ -51,14 +51,14 @@ import "../chunk-AKJUBFJK.js";
|
|
|
51
51
|
import {
|
|
52
52
|
ListGroup
|
|
53
53
|
} from "../chunk-SUSUNSVZ.js";
|
|
54
|
-
import "../chunk-
|
|
54
|
+
import "../chunk-BWPNXY7T.js";
|
|
55
55
|
import "../chunk-QVWYTQKL.js";
|
|
56
56
|
import {
|
|
57
57
|
DataCellHeader,
|
|
58
58
|
DataGridCell,
|
|
59
59
|
DragAlongCell,
|
|
60
60
|
DraggableCellHeader
|
|
61
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-ZCIC3AIZ.js";
|
|
62
62
|
import {
|
|
63
63
|
Menu
|
|
64
64
|
} from "../chunk-TCMOGTPB.js";
|
package/dist/index.css
CHANGED
|
@@ -1016,9 +1016,36 @@
|
|
|
1016
1016
|
.grid-cols-2 {
|
|
1017
1017
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1018
1018
|
}
|
|
1019
|
+
.grid-cols-3 {
|
|
1020
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1021
|
+
}
|
|
1022
|
+
.grid-cols-4 {
|
|
1023
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1024
|
+
}
|
|
1025
|
+
.grid-cols-5 {
|
|
1026
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1027
|
+
}
|
|
1028
|
+
.grid-cols-6 {
|
|
1029
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
1030
|
+
}
|
|
1019
1031
|
.grid-cols-7 {
|
|
1020
1032
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1021
1033
|
}
|
|
1034
|
+
.grid-cols-8 {
|
|
1035
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
1036
|
+
}
|
|
1037
|
+
.grid-cols-9 {
|
|
1038
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
1039
|
+
}
|
|
1040
|
+
.grid-cols-10 {
|
|
1041
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
1042
|
+
}
|
|
1043
|
+
.grid-cols-11 {
|
|
1044
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
1045
|
+
}
|
|
1046
|
+
.grid-cols-12 {
|
|
1047
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
1048
|
+
}
|
|
1022
1049
|
.grid-cols-\[auto_1fr\] {
|
|
1023
1050
|
grid-template-columns: auto 1fr;
|
|
1024
1051
|
}
|
|
@@ -3845,6 +3872,66 @@
|
|
|
3845
3872
|
margin-top: var(--spacing-desktop-compact-component-gap);
|
|
3846
3873
|
}
|
|
3847
3874
|
}
|
|
3875
|
+
.compact\:grid-cols-1 {
|
|
3876
|
+
&:where([data-compact]) {
|
|
3877
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
3878
|
+
}
|
|
3879
|
+
}
|
|
3880
|
+
.compact\:grid-cols-2 {
|
|
3881
|
+
&:where([data-compact]) {
|
|
3882
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
.compact\:grid-cols-3 {
|
|
3886
|
+
&:where([data-compact]) {
|
|
3887
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
.compact\:grid-cols-4 {
|
|
3891
|
+
&:where([data-compact]) {
|
|
3892
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
.compact\:grid-cols-5 {
|
|
3896
|
+
&:where([data-compact]) {
|
|
3897
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
.compact\:grid-cols-6 {
|
|
3901
|
+
&:where([data-compact]) {
|
|
3902
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
.compact\:grid-cols-7 {
|
|
3906
|
+
&:where([data-compact]) {
|
|
3907
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
.compact\:grid-cols-8 {
|
|
3911
|
+
&:where([data-compact]) {
|
|
3912
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
.compact\:grid-cols-9 {
|
|
3916
|
+
&:where([data-compact]) {
|
|
3917
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
.compact\:grid-cols-10 {
|
|
3921
|
+
&:where([data-compact]) {
|
|
3922
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
.compact\:grid-cols-11 {
|
|
3926
|
+
&:where([data-compact]) {
|
|
3927
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
.compact\:grid-cols-12 {
|
|
3931
|
+
&:where([data-compact]) {
|
|
3932
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3848
3935
|
.compact\:gap-desktop-compact-component-gap {
|
|
3849
3936
|
&:where([data-compact]) {
|
|
3850
3937
|
gap: var(--spacing-desktop-compact-component-gap);
|
|
@@ -4181,11 +4268,66 @@
|
|
|
4181
4268
|
flex-grow: 0;
|
|
4182
4269
|
}
|
|
4183
4270
|
}
|
|
4271
|
+
.desktop\:grid-cols-1 {
|
|
4272
|
+
@container root (width >= 48rem) {
|
|
4273
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
.desktop\:grid-cols-2 {
|
|
4277
|
+
@container root (width >= 48rem) {
|
|
4278
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
4281
|
+
.desktop\:grid-cols-3 {
|
|
4282
|
+
@container root (width >= 48rem) {
|
|
4283
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4284
|
+
}
|
|
4285
|
+
}
|
|
4184
4286
|
.desktop\:grid-cols-4 {
|
|
4185
4287
|
@container root (width >= 48rem) {
|
|
4186
4288
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4187
4289
|
}
|
|
4188
4290
|
}
|
|
4291
|
+
.desktop\:grid-cols-5 {
|
|
4292
|
+
@container root (width >= 48rem) {
|
|
4293
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
4294
|
+
}
|
|
4295
|
+
}
|
|
4296
|
+
.desktop\:grid-cols-6 {
|
|
4297
|
+
@container root (width >= 48rem) {
|
|
4298
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
.desktop\:grid-cols-7 {
|
|
4302
|
+
@container root (width >= 48rem) {
|
|
4303
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
4304
|
+
}
|
|
4305
|
+
}
|
|
4306
|
+
.desktop\:grid-cols-8 {
|
|
4307
|
+
@container root (width >= 48rem) {
|
|
4308
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
4309
|
+
}
|
|
4310
|
+
}
|
|
4311
|
+
.desktop\:grid-cols-9 {
|
|
4312
|
+
@container root (width >= 48rem) {
|
|
4313
|
+
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
4314
|
+
}
|
|
4315
|
+
}
|
|
4316
|
+
.desktop\:grid-cols-10 {
|
|
4317
|
+
@container root (width >= 48rem) {
|
|
4318
|
+
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
.desktop\:grid-cols-11 {
|
|
4322
|
+
@container root (width >= 48rem) {
|
|
4323
|
+
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
4324
|
+
}
|
|
4325
|
+
}
|
|
4326
|
+
.desktop\:grid-cols-12 {
|
|
4327
|
+
@container root (width >= 48rem) {
|
|
4328
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4189
4331
|
.desktop\:flex-col {
|
|
4190
4332
|
@container root (width >= 48rem) {
|
|
4191
4333
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -30,6 +30,7 @@ interface TableBodyRowProps<T> {
|
|
|
30
30
|
enableColumnSelector?: boolean;
|
|
31
31
|
locked?: boolean;
|
|
32
32
|
pinDirection?: "left" | "right";
|
|
33
|
+
disabled?: boolean;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export function TableBodyRow<T>({
|
|
@@ -45,6 +46,7 @@ export function TableBodyRow<T>({
|
|
|
45
46
|
// enableColumnSelector = false,
|
|
46
47
|
locked,
|
|
47
48
|
pinDirection,
|
|
49
|
+
disabled,
|
|
48
50
|
}: TableBodyRowProps<T>) {
|
|
49
51
|
let visibleCells: Cell<T, unknown>[];
|
|
50
52
|
|
|
@@ -73,10 +75,11 @@ export function TableBodyRow<T>({
|
|
|
73
75
|
key={row.id}
|
|
74
76
|
className={clsx(
|
|
75
77
|
"min-h-10",
|
|
76
|
-
"transition-colors
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
"transition-colors",
|
|
79
|
+
!disabled && "hover:bg-background-action-secondary-hover",
|
|
80
|
+
row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
|
|
81
|
+
isError && !disabled && "!bg-background-action-critical-secondary-hover",
|
|
82
|
+
showFilterRow && !disabled
|
|
80
83
|
? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal"
|
|
81
84
|
: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
82
85
|
)}
|
|
@@ -21,6 +21,8 @@ interface TableBodyProps<TData extends RowData> {
|
|
|
21
21
|
enableColumnSelector?: boolean;
|
|
22
22
|
locked?: boolean;
|
|
23
23
|
pinDirection?: "left" | "right";
|
|
24
|
+
rowDisabled?: boolean;
|
|
25
|
+
rowDisabledAccessor?: (row: TData) => boolean;
|
|
24
26
|
}
|
|
25
27
|
export function TableBody<T>({
|
|
26
28
|
id,
|
|
@@ -37,6 +39,8 @@ export function TableBody<T>({
|
|
|
37
39
|
enableColumnSelector = false,
|
|
38
40
|
locked,
|
|
39
41
|
pinDirection,
|
|
42
|
+
rowDisabled,
|
|
43
|
+
rowDisabledAccessor,
|
|
40
44
|
}: TableBodyProps<T>) {
|
|
41
45
|
const { rows } = table.getRowModel();
|
|
42
46
|
|
|
@@ -145,6 +149,11 @@ export function TableBody<T>({
|
|
|
145
149
|
enableColumnSelector={enableColumnSelector}
|
|
146
150
|
locked={locked}
|
|
147
151
|
pinDirection={pinDirection}
|
|
152
|
+
disabled={
|
|
153
|
+
rowDisabledAccessor
|
|
154
|
+
? rowDisabledAccessor(row.original as T)
|
|
155
|
+
: rowDisabled
|
|
156
|
+
}
|
|
148
157
|
/>
|
|
149
158
|
);
|
|
150
159
|
})}
|
|
@@ -87,6 +87,8 @@ export function DataGrid<T extends Record<string, unknown>>({
|
|
|
87
87
|
predeterminedLeftPins = [],
|
|
88
88
|
predeterminedRightPins = [],
|
|
89
89
|
useMenuDefaultMinWidth,
|
|
90
|
+
rowDisabled,
|
|
91
|
+
rowDisabledAccessor,
|
|
90
92
|
ref,
|
|
91
93
|
}: DataGridProps<T>) {
|
|
92
94
|
useImperativeHandle(ref, () => ({
|
|
@@ -591,6 +593,8 @@ export function DataGrid<T extends Record<string, unknown>>({
|
|
|
591
593
|
hasMore={hasMore}
|
|
592
594
|
showFilterRow={showFilterRow}
|
|
593
595
|
enableColumnSelector={enableColumnSelector}
|
|
596
|
+
rowDisabled={rowDisabled}
|
|
597
|
+
rowDisabledAccessor={rowDisabledAccessor}
|
|
594
598
|
/>
|
|
595
599
|
</table>
|
|
596
600
|
|
|
@@ -52,6 +52,8 @@ export interface DataGridProps<T extends Record<string, unknown>> {
|
|
|
52
52
|
predeterminedLeftPins?: string[];
|
|
53
53
|
predeterminedRightPins?: string[];
|
|
54
54
|
useMenuDefaultMinWidth?: boolean;
|
|
55
|
+
rowDisabled?: boolean;
|
|
56
|
+
rowDisabledAccessor?: (row: T) => boolean;
|
|
55
57
|
ref?: React.Ref<{ getSavedLayout: () => ColumnDef<T>[] | undefined }>;
|
|
56
58
|
}
|
|
57
59
|
|
|
@@ -45,6 +45,7 @@ type DataGridCellProps = PropsWithChildren<{
|
|
|
45
45
|
center?: boolean;
|
|
46
46
|
width?: string;
|
|
47
47
|
minWidth?: string;
|
|
48
|
+
disabled?: boolean;
|
|
48
49
|
}>;
|
|
49
50
|
|
|
50
51
|
export const DataGridCell = memo(
|
|
@@ -65,6 +66,7 @@ export const DataGridCell = memo(
|
|
|
65
66
|
center,
|
|
66
67
|
width,
|
|
67
68
|
minWidth,
|
|
69
|
+
disabled,
|
|
68
70
|
testid,
|
|
69
71
|
...props
|
|
70
72
|
}: AsProps<Tags> & DataGridCellProps) => {
|
|
@@ -166,6 +168,7 @@ export const DataGridCell = memo(
|
|
|
166
168
|
component === "icon" && "border-l",
|
|
167
169
|
isGrabbing && "!cursor-grabbing",
|
|
168
170
|
component === "checkbox" || (center && "justify-center"),
|
|
171
|
+
disabled && "!text-text-primary-disabled",
|
|
169
172
|
);
|
|
170
173
|
|
|
171
174
|
return (
|
package/src/components/Grid.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { ComponentProps } from "react";
|
|
|
2
2
|
import { Sizing } from "../types";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
|
|
5
|
-
type Breakpoint = "
|
|
5
|
+
type Breakpoint = "compact" | "desktop";
|
|
6
6
|
|
|
7
7
|
export type GridColumnCount = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
8
8
|
|
|
@@ -88,7 +88,6 @@ export const Grid = ({
|
|
|
88
88
|
GAP_BY_SIZING[sizing] ?? GAP_BY_SIZING.container,
|
|
89
89
|
padding && (PADDING_BY_SIZING[sizing] ?? PADDING_BY_SIZING.container),
|
|
90
90
|
columnClasses,
|
|
91
|
-
"grid-cols-1 desktop:grid-cols-4",
|
|
92
91
|
className,
|
|
93
92
|
)}
|
|
94
93
|
>
|