@cloudscape-design/components 3.0.382 → 3.0.383
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/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +4 -2
- package/app-layout/index.js.map +1 -1
- package/app-layout/utils/use-drawers.d.ts +1 -2
- package/app-layout/utils/use-drawers.d.ts.map +1 -1
- package/app-layout/utils/use-drawers.js +2 -4
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/app-layout/visual-refresh/context.d.ts.map +1 -1
- package/app-layout/visual-refresh/context.js +2 -2
- package/app-layout/visual-refresh/context.js.map +1 -1
- package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/app-layout/visual-refresh/drawers.js +9 -15
- package/app-layout/visual-refresh/drawers.js.map +1 -1
- package/i18n/messages/all.all.js +12 -0
- package/i18n/messages/all.all.json +12 -0
- package/i18n/messages/all.de.js +1 -0
- package/i18n/messages/all.de.json +1 -0
- package/i18n/messages/all.en-GB.js +1 -0
- package/i18n/messages/all.en-GB.json +1 -0
- package/i18n/messages/all.en.js +1 -0
- package/i18n/messages/all.en.json +1 -0
- package/i18n/messages/all.es.js +1 -0
- package/i18n/messages/all.es.json +1 -0
- package/i18n/messages/all.fr.js +1 -0
- package/i18n/messages/all.fr.json +1 -0
- package/i18n/messages/all.id.js +1 -0
- package/i18n/messages/all.id.json +1 -0
- package/i18n/messages/all.it.js +1 -0
- package/i18n/messages/all.it.json +1 -0
- package/i18n/messages/all.ja.js +1 -0
- package/i18n/messages/all.ja.json +1 -0
- package/i18n/messages/all.ko.js +1 -0
- package/i18n/messages/all.ko.json +1 -0
- package/i18n/messages/all.pt-BR.js +1 -0
- package/i18n/messages/all.pt-BR.json +1 -0
- package/i18n/messages/all.zh-CN.js +1 -0
- package/i18n/messages/all.zh-CN.json +1 -0
- package/i18n/messages/all.zh-TW.js +1 -0
- package/i18n/messages/all.zh-TW.json +1 -0
- package/i18n/messages-types.d.ts +3 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/internal/components/drawer/index.d.ts +4 -0
- package/internal/components/drawer/index.d.ts.map +1 -0
- package/internal/components/drawer/index.js +22 -0
- package/internal/components/drawer/index.js.map +1 -0
- package/internal/components/drawer/interfaces.d.ts +31 -0
- package/internal/components/drawer/interfaces.d.ts.map +1 -0
- package/internal/components/drawer/interfaces.js +2 -0
- package/internal/components/drawer/interfaces.js.map +1 -0
- package/internal/components/drawer/styles.css.js +8 -0
- package/internal/components/drawer/styles.scoped.css +166 -0
- package/internal/components/drawer/styles.selectors.js +9 -0
- package/internal/components/portal/index.d.ts +1 -1
- package/internal/components/portal/index.d.ts.map +1 -1
- package/internal/components/portal/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +11 -0
- package/internal/generated/styles/tokens.js +11 -0
- package/internal/generated/theming/index.cjs +22 -0
- package/internal/generated/theming/index.cjs.d.ts +88 -0
- package/internal/generated/theming/index.d.ts +88 -0
- package/internal/generated/theming/index.js +22 -0
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/table/header-cell/index.d.ts +2 -1
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +2 -3
- package/table/header-cell/index.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +8 -1
- package/table/internal.js.map +1 -1
- package/table/resizer/index.d.ts +2 -1
- package/table/resizer/index.d.ts.map +1 -1
- package/table/resizer/index.js +4 -3
- package/table/resizer/index.js.map +1 -1
- package/table/thead.d.ts +1 -0
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +2 -2
- package/table/thead.js.map +1 -1
|
@@ -96,6 +96,10 @@ export declare interface TypedOverride {
|
|
|
96
96
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
97
97
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
98
98
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
99
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
100
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
101
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
102
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
99
103
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
100
104
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
101
105
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -113,6 +117,10 @@ export declare interface TypedOverride {
|
|
|
113
117
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
114
118
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
115
119
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
120
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
121
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
122
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
123
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
116
124
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
117
125
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
118
126
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -160,6 +168,9 @@ export declare interface TypedOverride {
|
|
|
160
168
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
161
169
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
162
170
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
171
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
172
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
173
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
163
174
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
164
175
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
165
176
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -303,6 +314,10 @@ export declare interface TypedOverride {
|
|
|
303
314
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
304
315
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
305
316
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
317
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
318
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
319
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
320
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
306
321
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
307
322
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
308
323
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -320,6 +335,10 @@ export declare interface TypedOverride {
|
|
|
320
335
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
321
336
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
322
337
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
338
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
339
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
340
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
341
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
323
342
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
324
343
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
325
344
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -367,6 +386,9 @@ export declare interface TypedOverride {
|
|
|
367
386
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
368
387
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
369
388
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
389
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
390
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
391
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
370
392
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
371
393
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
372
394
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -510,6 +532,10 @@ export declare interface TypedOverride {
|
|
|
510
532
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
511
533
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
512
534
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
535
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
536
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
537
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
538
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
513
539
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
514
540
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
515
541
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -527,6 +553,10 @@ export declare interface TypedOverride {
|
|
|
527
553
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
528
554
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
529
555
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
556
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
557
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
558
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
559
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
530
560
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
531
561
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
532
562
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -574,6 +604,9 @@ export declare interface TypedOverride {
|
|
|
574
604
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
575
605
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
576
606
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
607
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
608
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
609
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
577
610
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
578
611
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
579
612
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -717,6 +750,10 @@ export declare interface TypedOverride {
|
|
|
717
750
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
718
751
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
719
752
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
753
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
754
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
755
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
756
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
720
757
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
721
758
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
722
759
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -734,6 +771,10 @@ export declare interface TypedOverride {
|
|
|
734
771
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
735
772
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
736
773
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
774
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
775
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
776
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
777
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
737
778
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
738
779
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
739
780
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -781,6 +822,9 @@ export declare interface TypedOverride {
|
|
|
781
822
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
782
823
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
783
824
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
825
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
826
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
827
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
784
828
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
785
829
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
786
830
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -924,6 +968,10 @@ export declare interface TypedOverride {
|
|
|
924
968
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
925
969
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
926
970
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
971
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
972
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
973
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
974
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
927
975
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
928
976
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
929
977
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -941,6 +989,10 @@ export declare interface TypedOverride {
|
|
|
941
989
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
942
990
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
943
991
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
992
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
993
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
994
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
995
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
944
996
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
945
997
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
946
998
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -988,6 +1040,9 @@ export declare interface TypedOverride {
|
|
|
988
1040
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
989
1041
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
990
1042
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1043
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1044
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1045
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
991
1046
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
992
1047
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
993
1048
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1131,6 +1186,10 @@ export declare interface TypedOverride {
|
|
|
1131
1186
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1132
1187
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1133
1188
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1189
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1190
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1191
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1192
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1134
1193
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1135
1194
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1136
1195
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1148,6 +1207,10 @@ export declare interface TypedOverride {
|
|
|
1148
1207
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1149
1208
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1150
1209
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1210
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1211
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1212
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1213
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1151
1214
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1152
1215
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1153
1216
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1195,6 +1258,9 @@ export declare interface TypedOverride {
|
|
|
1195
1258
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1196
1259
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1197
1260
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1261
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1262
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1263
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1198
1264
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1199
1265
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1200
1266
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1338,6 +1404,10 @@ export declare interface TypedOverride {
|
|
|
1338
1404
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1339
1405
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1340
1406
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1407
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1408
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1409
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1410
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1341
1411
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1342
1412
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1343
1413
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1355,6 +1425,10 @@ export declare interface TypedOverride {
|
|
|
1355
1425
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1356
1426
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1357
1427
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1428
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1429
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1430
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1431
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1358
1432
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1359
1433
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1360
1434
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1402,6 +1476,9 @@ export declare interface TypedOverride {
|
|
|
1402
1476
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1403
1477
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1404
1478
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1479
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1480
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1481
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1405
1482
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1406
1483
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1407
1484
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1545,6 +1622,10 @@ export declare interface TypedOverride {
|
|
|
1545
1622
|
colorBackgroundNotificationRed?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1546
1623
|
colorBackgroundNotificationYellow?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1547
1624
|
colorBackgroundPopover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1625
|
+
colorBackgroundSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1626
|
+
colorBackgroundSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1627
|
+
colorBackgroundSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1628
|
+
colorBackgroundSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1548
1629
|
colorBackgroundStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1549
1630
|
colorBackgroundStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1550
1631
|
colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1562,6 +1643,10 @@ export declare interface TypedOverride {
|
|
|
1562
1643
|
colorBorderInputDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1563
1644
|
colorBorderItemFocused?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1564
1645
|
colorBorderItemSelected?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1646
|
+
colorBorderSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1647
|
+
colorBorderSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1648
|
+
colorBorderSegmentDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1649
|
+
colorBorderSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1565
1650
|
colorBorderStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1566
1651
|
colorBorderStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1567
1652
|
colorBorderStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1609,6 +1694,9 @@ export declare interface TypedOverride {
|
|
|
1609
1694
|
colorTextLinkDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1610
1695
|
colorTextLinkHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1611
1696
|
colorTextNotificationDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1697
|
+
colorTextSegmentActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1698
|
+
colorTextSegmentDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1699
|
+
colorTextSegmentHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1612
1700
|
colorTextStatusError?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1613
1701
|
colorTextStatusInactive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1614
1702
|
colorTextStatusInfo?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -9059,6 +9059,10 @@ export var preset = {
|
|
|
9059
9059
|
"colorBackgroundNotificationRed",
|
|
9060
9060
|
"colorBackgroundNotificationYellow",
|
|
9061
9061
|
"colorBackgroundPopover",
|
|
9062
|
+
"colorBackgroundSegmentActive",
|
|
9063
|
+
"colorBackgroundSegmentDefault",
|
|
9064
|
+
"colorBackgroundSegmentDisabled",
|
|
9065
|
+
"colorBackgroundSegmentHover",
|
|
9062
9066
|
"colorBackgroundStatusError",
|
|
9063
9067
|
"colorBackgroundStatusInfo",
|
|
9064
9068
|
"colorBackgroundStatusSuccess",
|
|
@@ -9076,6 +9080,10 @@ export var preset = {
|
|
|
9076
9080
|
"colorBorderInputDefault",
|
|
9077
9081
|
"colorBorderItemFocused",
|
|
9078
9082
|
"colorBorderItemSelected",
|
|
9083
|
+
"colorBorderSegmentActive",
|
|
9084
|
+
"colorBorderSegmentDefault",
|
|
9085
|
+
"colorBorderSegmentDisabled",
|
|
9086
|
+
"colorBorderSegmentHover",
|
|
9079
9087
|
"colorBorderStatusError",
|
|
9080
9088
|
"colorBorderStatusInfo",
|
|
9081
9089
|
"colorBorderStatusSuccess",
|
|
@@ -9123,6 +9131,9 @@ export var preset = {
|
|
|
9123
9131
|
"colorTextLinkDefault",
|
|
9124
9132
|
"colorTextLinkHover",
|
|
9125
9133
|
"colorTextNotificationDefault",
|
|
9134
|
+
"colorTextSegmentActive",
|
|
9135
|
+
"colorTextSegmentDefault",
|
|
9136
|
+
"colorTextSegmentHover",
|
|
9126
9137
|
"colorTextStatusError",
|
|
9127
9138
|
"colorTextStatusInactive",
|
|
9128
9139
|
"colorTextStatusInfo",
|
|
@@ -9357,6 +9368,10 @@ export var preset = {
|
|
|
9357
9368
|
"colorBackgroundNotificationRed",
|
|
9358
9369
|
"colorBackgroundNotificationYellow",
|
|
9359
9370
|
"colorBackgroundPopover",
|
|
9371
|
+
"colorBackgroundSegmentActive",
|
|
9372
|
+
"colorBackgroundSegmentDefault",
|
|
9373
|
+
"colorBackgroundSegmentDisabled",
|
|
9374
|
+
"colorBackgroundSegmentHover",
|
|
9360
9375
|
"colorBackgroundStatusError",
|
|
9361
9376
|
"colorBackgroundStatusInfo",
|
|
9362
9377
|
"colorBackgroundStatusSuccess",
|
|
@@ -9374,6 +9389,10 @@ export var preset = {
|
|
|
9374
9389
|
"colorBorderInputDefault",
|
|
9375
9390
|
"colorBorderItemFocused",
|
|
9376
9391
|
"colorBorderItemSelected",
|
|
9392
|
+
"colorBorderSegmentActive",
|
|
9393
|
+
"colorBorderSegmentDefault",
|
|
9394
|
+
"colorBorderSegmentDisabled",
|
|
9395
|
+
"colorBorderSegmentHover",
|
|
9377
9396
|
"colorBorderStatusError",
|
|
9378
9397
|
"colorBorderStatusInfo",
|
|
9379
9398
|
"colorBorderStatusSuccess",
|
|
@@ -9418,6 +9437,9 @@ export var preset = {
|
|
|
9418
9437
|
"colorTextLinkDefault",
|
|
9419
9438
|
"colorTextLinkHover",
|
|
9420
9439
|
"colorTextNotificationDefault",
|
|
9440
|
+
"colorTextSegmentActive",
|
|
9441
|
+
"colorTextSegmentDefault",
|
|
9442
|
+
"colorTextSegmentHover",
|
|
9421
9443
|
"colorTextStatusError",
|
|
9422
9444
|
"colorTextStatusInactive",
|
|
9423
9445
|
"colorTextStatusInfo",
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -25,7 +25,8 @@ interface TableHeaderCellProps<ItemType> {
|
|
|
25
25
|
cellRef: React.RefCallback<HTMLElement>;
|
|
26
26
|
focusedComponent?: null | string;
|
|
27
27
|
tableRole: TableRole;
|
|
28
|
+
getDescriptionRoot?: () => null | HTMLElement;
|
|
28
29
|
}
|
|
29
|
-
export declare function TableHeaderCell<ItemType>({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole, }: TableHeaderCellProps<ItemType>): JSX.Element;
|
|
30
|
+
export declare function TableHeaderCell<ItemType>({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole, getDescriptionRoot, }: TableHeaderCellProps<ItemType>): JSX.Element;
|
|
30
31
|
export {};
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,UAAU,oBAAoB,CAAC,QAAQ;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACpD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,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O,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACxC,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,WAAW,CAAC;CAC/C;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,EACxC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,kBAAkB,GACnB,EAAE,oBAAoB,CAAC,QAAQ,CAAC,eA6FhC"}
|
|
@@ -10,7 +10,7 @@ import { Resizer } from '../resizer';
|
|
|
10
10
|
import { useUniqueId } from '../../internal/hooks/use-unique-id';
|
|
11
11
|
import { useInternalI18n } from '../../i18n/context';
|
|
12
12
|
import { TableThElement } from './th-element';
|
|
13
|
-
export function TableHeaderCell({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole, }) {
|
|
13
|
+
export function TableHeaderCell({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole, getDescriptionRoot, }) {
|
|
14
14
|
var _a;
|
|
15
15
|
const i18n = useInternalI18n('table');
|
|
16
16
|
const sortable = !!column.sortingComparator || !!column.sortingField;
|
|
@@ -54,7 +54,6 @@ export function TableHeaderCell({ className, style, tabIndex, column, activeSort
|
|
|
54
54
|
React.createElement(InternalIcon, { name: "edit" }))) : null),
|
|
55
55
|
sortingStatus && (React.createElement("span", { className: styles['sorting-icon'] },
|
|
56
56
|
React.createElement(InternalIcon, { name: getSortingIconName(sortingStatus) })))),
|
|
57
|
-
resizableColumns && (React.createElement(
|
|
58
|
-
React.createElement(Resizer, { tabIndex: tabIndex, focusId: `resize-control-${String(columnId)}`, showFocusRing: focusedComponent === `resize-control-${String(columnId)}`, onDragMove: newWidth => updateColumn(columnId, newWidth), onFinish: onResizeFinish, ariaLabelledby: headerId, minWidth: typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth })))));
|
|
57
|
+
resizableColumns && (React.createElement(Resizer, { tabIndex: tabIndex, focusId: `resize-control-${String(columnId)}`, showFocusRing: focusedComponent === `resize-control-${String(columnId)}`, onDragMove: newWidth => updateColumn(columnId, newWidth), onFinish: onResizeFinish, ariaLabelledby: headerId, minWidth: typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth, getDescriptionRoot: getDescriptionRoot }))));
|
|
59
58
|
}
|
|
60
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,C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,QAAQ,CAAC,EAAE,EAC7C,aAAa,EAAE,gBAAgB,KAAK,kBAAkB,MAAM,CAAC,QAAQ,CAAC,EAAE,EACxE,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACxD,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,QAAQ,EACxB,QAAQ,EAAE,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAC3F,kBAAkB,EAAE,kBAAkB,GACtC,CACH,CACc,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport InternalIcon from '../../icon/internal';\nimport { KeyCode } from '../../internal/keycode';\nimport { TableProps } from '../interfaces';\nimport { getSortingIconName, getSortingStatus, isSorted } from './utils';\nimport styles from './styles.css.js';\nimport { Resizer } from '../resizer';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { useInternalI18n } from '../../i18n/context';\nimport { StickyColumnsModel } from '../sticky-columns';\nimport { TableRole } from '../table-role';\nimport { TableThElement } from './th-element';\n\ninterface TableHeaderCellProps<ItemType> {\n className?: string;\n style?: React.CSSProperties;\n tabIndex: number;\n column: TableProps.ColumnDefinition<ItemType>;\n activeSortingColumn?: TableProps.SortingColumn<ItemType>;\n sortingDescending?: boolean;\n sortingDisabled?: boolean;\n wrapLines?: boolean;\n hidden?: boolean;\n onClick(detail: TableProps.SortingState<any>): void;\n onResizeFinish: () => void;\n colIndex: number;\n updateColumn: (columnId: PropertyKey, newWidth: number) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n resizableColumns?: boolean;\n isEditable?: boolean;\n columnId: PropertyKey;\n stickyState: StickyColumnsModel;\n cellRef: React.RefCallback<HTMLElement>;\n focusedComponent?: null | string;\n tableRole: TableRole;\n getDescriptionRoot?: () => null | HTMLElement;\n}\n\nexport function TableHeaderCell<ItemType>({\n className,\n style,\n tabIndex,\n column,\n activeSortingColumn,\n sortingDescending,\n sortingDisabled,\n wrapLines,\n focusedComponent,\n hidden,\n onClick,\n colIndex,\n updateColumn,\n resizableColumns,\n onResizeFinish,\n isEditable,\n columnId,\n stickyState,\n cellRef,\n tableRole,\n getDescriptionRoot,\n}: TableHeaderCellProps<ItemType>) {\n const i18n = useInternalI18n('table');\n const sortable = !!column.sortingComparator || !!column.sortingField;\n const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);\n const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);\n const handleClick = () =>\n onClick({\n sortingColumn: column,\n isDescending: sorted ? !sortingDescending : false,\n });\n\n // Elements with role=\"button\" do not have the default behavior of <button>, where pressing\n // Enter or Space will trigger a click event. Therefore we need to add this ourselves.\n // The native <button> element cannot be used due to a misaligned implementation in Firefox:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=843003\n const handleKeyPress = ({ nativeEvent: e }: React.KeyboardEvent) => {\n if (e.keyCode === KeyCode.enter || e.keyCode === KeyCode.space) {\n e.preventDefault();\n handleClick();\n }\n };\n\n const headerId = useUniqueId('table-header-');\n\n return (\n <TableThElement\n className={className}\n style={style}\n cellRef={cellRef}\n sortingStatus={sortingStatus}\n sortingDisabled={sortingDisabled}\n hidden={hidden}\n colIndex={colIndex}\n resizableColumns={resizableColumns}\n columnId={columnId}\n stickyState={stickyState}\n tableRole={tableRole}\n >\n <div\n data-focus-id={`sorting-control-${String(columnId)}`}\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]: focusedComponent === `sorting-control-${String(columnId)}`,\n })}\n aria-label={\n column.ariaLabel\n ? column.ariaLabel({\n sorted: sorted,\n descending: sorted && !!sortingDescending,\n disabled: !!sortingDisabled,\n })\n : undefined\n }\n {...(sortingStatus && !sortingDisabled\n ? {\n onKeyPress: handleKeyPress,\n tabIndex: tabIndex,\n role: 'button',\n onClick: handleClick,\n }\n : {})}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {column.header}\n {isEditable ? (\n <span\n className={styles['edit-icon']}\n role=\"img\"\n aria-label={i18n('columnDefinitions.editConfig.editIconAriaLabel', column.editConfig?.editIconAriaLabel)}\n >\n <InternalIcon name=\"edit\" />\n </span>\n ) : null}\n </div>\n {sortingStatus && (\n <span className={styles['sorting-icon']}>\n <InternalIcon name={getSortingIconName(sortingStatus)} />\n </span>\n )}\n </div>\n {resizableColumns && (\n <Resizer\n tabIndex={tabIndex}\n focusId={`resize-control-${String(columnId)}`}\n showFocusRing={focusedComponent === `resize-control-${String(columnId)}`}\n onDragMove={newWidth => updateColumn(columnId, newWidth)}\n onFinish={onResizeFinish}\n ariaLabelledby={headerId}\n minWidth={typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth}\n getDescriptionRoot={getDescriptionRoot}\n />\n )}\n </TableThElement>\n );\n}\n"]}
|
package/table/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AA6C/D,QAAA,MAAM,aAAa,qBA+bK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
|
package/table/internal.js
CHANGED
|
@@ -37,6 +37,7 @@ import { getTableRoleProps, getTableRowRoleProps, getTableWrapperRoleProps } fro
|
|
|
37
37
|
import { useCellEditing } from './use-cell-editing';
|
|
38
38
|
import { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';
|
|
39
39
|
import { CollectionLabelContext } from '../internal/context/collection-label-context';
|
|
40
|
+
import ScreenreaderOnly from '../internal/components/screenreader-only';
|
|
40
41
|
const SELECTION_COLUMN_WIDTH = 54;
|
|
41
42
|
const selectionColumnId = Symbol('selection-column-id');
|
|
42
43
|
const InternalTable = React.forwardRef((_a, ref) => {
|
|
@@ -49,6 +50,9 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
49
50
|
const wrapperRefObject = useRef(null);
|
|
50
51
|
const [tableWidth, tableMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);
|
|
51
52
|
const tableRefObject = useRef(null);
|
|
53
|
+
// Used to render table's ARIA description nodes into.
|
|
54
|
+
const descriptionRef = useRef(null);
|
|
55
|
+
const getDescriptionRoot = useCallback(() => descriptionRef.current, []);
|
|
52
56
|
const secondaryWrapperRef = React.useRef(null);
|
|
53
57
|
const theadRef = useRef(null);
|
|
54
58
|
const stickyHeaderRef = React.useRef(null);
|
|
@@ -146,6 +150,7 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
146
150
|
stickyState,
|
|
147
151
|
selectionColumnId,
|
|
148
152
|
tableRole,
|
|
153
|
+
getDescriptionRoot,
|
|
149
154
|
};
|
|
150
155
|
const wrapperRef = useMergeRefs(wrapperMeasureRef, wrapperRefObject, stickyState.refs.wrapper);
|
|
151
156
|
const tableRef = useMergeRefs(tableMeasureRef, tableRefObject, stickyState.refs.table);
|
|
@@ -225,7 +230,9 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
225
230
|
})));
|
|
226
231
|
})))),
|
|
227
232
|
resizableColumns && React.createElement(ResizeTracker, null)),
|
|
228
|
-
React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll, hasStickyColumns: hasStickyColumns })
|
|
233
|
+
React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll, hasStickyColumns: hasStickyColumns }),
|
|
234
|
+
React.createElement(ScreenreaderOnly, null,
|
|
235
|
+
React.createElement("span", { ref: descriptionRef }))))));
|
|
229
236
|
});
|
|
230
237
|
export default InternalTable;
|
|
231
238
|
//# sourceMappingURL=internal.js.map
|