@swc-react/table 0.35.1-rc.26 → 0.36.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.
Files changed (2) hide show
  1. package/next.d.ts +44 -44
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -8,6 +8,8 @@ export declare const Table: import("react").ComponentType<Partial<{
8
8
  title?: string | undefined;
9
9
  tabIndex?: number | undefined;
10
10
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
11
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
12
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
11
13
  accessKey?: string | undefined;
12
14
  draggable?: (boolean | "true" | "false") | undefined;
13
15
  hidden?: boolean | undefined;
@@ -20,8 +22,6 @@ export declare const Table: import("react").ComponentType<Partial<{
20
22
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
21
23
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
24
  nonce?: string | undefined;
23
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
24
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
25
25
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
26
26
  defaultChecked?: boolean | undefined;
27
27
  defaultValue?: string | number | readonly string[] | undefined;
@@ -283,13 +283,15 @@ export declare const Table: import("react").ComponentType<Partial<{
283
283
  };
284
284
  autofocus: boolean;
285
285
  normalize: () => void;
286
+ selected: string[];
287
+ readonly renderOptions: import("lit-html").RenderOptions;
288
+ connectedCallback: () => void;
289
+ disconnectedCallback: () => void;
286
290
  readonly renderRoot: HTMLElement | ShadowRoot;
287
291
  isUpdatePending: boolean;
288
292
  hasUpdated: boolean;
289
293
  addController: (controller: import("lit").ReactiveController) => void;
290
294
  removeController: (controller: import("lit").ReactiveController) => void;
291
- connectedCallback: () => void;
292
- disconnectedCallback: () => void;
293
295
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
294
296
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
295
297
  readonly updateComplete: Promise<boolean>;
@@ -586,8 +588,6 @@ export declare const Table: import("react").ComponentType<Partial<{
586
588
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
587
589
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
588
590
  readonly dataset: DOMStringMap;
589
- selected: string[];
590
- readonly renderOptions: import("lit-html").RenderOptions;
591
591
  isLTR: boolean;
592
592
  hasVisibleFocusInTree: () => boolean;
593
593
  selects: "single" | "multiple" | undefined;
@@ -608,6 +608,8 @@ export declare const TableBody: import("react").ComponentType<Partial<{
608
608
  title?: string | undefined;
609
609
  tabIndex?: number | undefined;
610
610
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
611
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
612
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
611
613
  accessKey?: string | undefined;
612
614
  draggable?: (boolean | "true" | "false") | undefined;
613
615
  hidden?: boolean | undefined;
@@ -620,8 +622,6 @@ export declare const TableBody: import("react").ComponentType<Partial<{
620
622
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
621
623
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
622
624
  nonce?: string | undefined;
623
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
624
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
625
625
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
626
626
  defaultChecked?: boolean | undefined;
627
627
  defaultValue?: string | number | readonly string[] | undefined;
@@ -882,13 +882,14 @@ export declare const TableBody: import("react").ComponentType<Partial<{
882
882
  };
883
883
  autofocus: boolean;
884
884
  normalize: () => void;
885
+ readonly renderOptions: import("lit-html").RenderOptions;
886
+ connectedCallback: () => void;
887
+ disconnectedCallback: () => void;
885
888
  readonly renderRoot: HTMLElement | ShadowRoot;
886
889
  isUpdatePending: boolean;
887
890
  hasUpdated: boolean;
888
891
  addController: (controller: import("lit").ReactiveController) => void;
889
892
  removeController: (controller: import("lit").ReactiveController) => void;
890
- connectedCallback: () => void;
891
- disconnectedCallback: () => void;
892
893
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
893
894
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
894
895
  readonly updateComplete: Promise<boolean>;
@@ -1185,7 +1186,6 @@ export declare const TableBody: import("react").ComponentType<Partial<{
1185
1186
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1186
1187
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1187
1188
  readonly dataset: DOMStringMap;
1188
- readonly renderOptions: import("lit-html").RenderOptions;
1189
1189
  isLTR: boolean;
1190
1190
  hasVisibleFocusInTree: () => boolean;
1191
1191
  } & {}> & import("react").RefAttributes<import("table/src").TableBody>>;
@@ -1197,6 +1197,8 @@ export declare const TableCell: import("react").ComponentType<Partial<{
1197
1197
  title?: string | undefined;
1198
1198
  tabIndex?: number | undefined;
1199
1199
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
1200
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
1201
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
1200
1202
  accessKey?: string | undefined;
1201
1203
  draggable?: (boolean | "true" | "false") | undefined;
1202
1204
  hidden?: boolean | undefined;
@@ -1209,8 +1211,6 @@ export declare const TableCell: import("react").ComponentType<Partial<{
1209
1211
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
1210
1212
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1211
1213
  nonce?: string | undefined;
1212
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
1213
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
1214
1214
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
1215
1215
  defaultChecked?: boolean | undefined;
1216
1216
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1471,13 +1471,14 @@ export declare const TableCell: import("react").ComponentType<Partial<{
1471
1471
  };
1472
1472
  autofocus: boolean;
1473
1473
  normalize: () => void;
1474
+ readonly renderOptions: import("lit-html").RenderOptions;
1475
+ connectedCallback: () => void;
1476
+ disconnectedCallback: () => void;
1474
1477
  readonly renderRoot: HTMLElement | ShadowRoot;
1475
1478
  isUpdatePending: boolean;
1476
1479
  hasUpdated: boolean;
1477
1480
  addController: (controller: import("lit").ReactiveController) => void;
1478
1481
  removeController: (controller: import("lit").ReactiveController) => void;
1479
- connectedCallback: () => void;
1480
- disconnectedCallback: () => void;
1481
1482
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
1482
1483
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
1483
1484
  readonly updateComplete: Promise<boolean>;
@@ -1774,7 +1775,6 @@ export declare const TableCell: import("react").ComponentType<Partial<{
1774
1775
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1775
1776
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1776
1777
  readonly dataset: DOMStringMap;
1777
- readonly renderOptions: import("lit-html").RenderOptions;
1778
1778
  isLTR: boolean;
1779
1779
  hasVisibleFocusInTree: () => boolean;
1780
1780
  } & {}> & import("react").RefAttributes<import("table/src").TableCell>>;
@@ -1786,6 +1786,8 @@ export declare const TableCheckboxCell: import("react").ComponentType<Partial<{
1786
1786
  title?: string | undefined;
1787
1787
  tabIndex?: number | undefined;
1788
1788
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
1789
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
1790
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
1789
1791
  accessKey?: string | undefined;
1790
1792
  draggable?: (boolean | "true" | "false") | undefined;
1791
1793
  hidden?: boolean | undefined;
@@ -1798,8 +1800,6 @@ export declare const TableCheckboxCell: import("react").ComponentType<Partial<{
1798
1800
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
1799
1801
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1800
1802
  nonce?: string | undefined;
1801
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
1802
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
1803
1803
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
1804
1804
  defaultChecked?: boolean | undefined;
1805
1805
  defaultValue?: string | number | readonly string[] | undefined;
@@ -2062,13 +2062,17 @@ export declare const TableCheckboxCell: import("react").ComponentType<Partial<{
2062
2062
  autofocus: boolean;
2063
2063
  normalize: () => void;
2064
2064
  checked: boolean;
2065
+ indeterminate: boolean;
2066
+ checkbox: import("checkbox/src").Checkbox;
2067
+ selectsSingle: boolean;
2068
+ readonly renderOptions: import("lit-html").RenderOptions;
2069
+ connectedCallback: () => void;
2070
+ disconnectedCallback: () => void;
2065
2071
  readonly renderRoot: HTMLElement | ShadowRoot;
2066
2072
  isUpdatePending: boolean;
2067
2073
  hasUpdated: boolean;
2068
2074
  addController: (controller: import("lit").ReactiveController) => void;
2069
2075
  removeController: (controller: import("lit").ReactiveController) => void;
2070
- connectedCallback: () => void;
2071
- disconnectedCallback: () => void;
2072
2076
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
2073
2077
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
2074
2078
  readonly updateComplete: Promise<boolean>;
@@ -2365,10 +2369,6 @@ export declare const TableCheckboxCell: import("react").ComponentType<Partial<{
2365
2369
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2366
2370
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
2367
2371
  readonly dataset: DOMStringMap;
2368
- indeterminate: boolean;
2369
- checkbox: import("checkbox/src").Checkbox;
2370
- selectsSingle: boolean;
2371
- readonly renderOptions: import("lit-html").RenderOptions;
2372
2372
  isLTR: boolean;
2373
2373
  hasVisibleFocusInTree: () => boolean;
2374
2374
  } & {}> & import("react").RefAttributes<import("table/src").TableCheckboxCell>>;
@@ -2380,6 +2380,8 @@ export declare const TableHead: import("react").ComponentType<Partial<{
2380
2380
  title?: string | undefined;
2381
2381
  tabIndex?: number | undefined;
2382
2382
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
2383
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
2384
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
2383
2385
  accessKey?: string | undefined;
2384
2386
  draggable?: (boolean | "true" | "false") | undefined;
2385
2387
  hidden?: boolean | undefined;
@@ -2392,8 +2394,6 @@ export declare const TableHead: import("react").ComponentType<Partial<{
2392
2394
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
2393
2395
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2394
2396
  nonce?: string | undefined;
2395
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
2396
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
2397
2397
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
2398
2398
  defaultChecked?: boolean | undefined;
2399
2399
  defaultValue?: string | number | readonly string[] | undefined;
@@ -2654,13 +2654,15 @@ export declare const TableHead: import("react").ComponentType<Partial<{
2654
2654
  };
2655
2655
  autofocus: boolean;
2656
2656
  normalize: () => void;
2657
+ selected?: boolean | undefined;
2658
+ readonly renderOptions: import("lit-html").RenderOptions;
2659
+ connectedCallback: () => void;
2660
+ disconnectedCallback: () => void;
2657
2661
  readonly renderRoot: HTMLElement | ShadowRoot;
2658
2662
  isUpdatePending: boolean;
2659
2663
  hasUpdated: boolean;
2660
2664
  addController: (controller: import("lit").ReactiveController) => void;
2661
2665
  removeController: (controller: import("lit").ReactiveController) => void;
2662
- connectedCallback: () => void;
2663
- disconnectedCallback: () => void;
2664
2666
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
2665
2667
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
2666
2668
  readonly updateComplete: Promise<boolean>;
@@ -2957,8 +2959,6 @@ export declare const TableHead: import("react").ComponentType<Partial<{
2957
2959
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2958
2960
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
2959
2961
  readonly dataset: DOMStringMap;
2960
- selected?: boolean | undefined;
2961
- readonly renderOptions: import("lit-html").RenderOptions;
2962
2962
  isLTR: boolean;
2963
2963
  hasVisibleFocusInTree: () => boolean;
2964
2964
  } & {}> & import("react").RefAttributes<import("table/src").TableHead>>;
@@ -2970,6 +2970,8 @@ export declare const TableHeadCell: import("react").ComponentType<Partial<{
2970
2970
  title?: string | undefined;
2971
2971
  tabIndex?: number | undefined;
2972
2972
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
2973
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
2974
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
2973
2975
  accessKey?: string | undefined;
2974
2976
  draggable?: (boolean | "true" | "false") | undefined;
2975
2977
  hidden?: boolean | undefined;
@@ -2982,8 +2984,6 @@ export declare const TableHeadCell: import("react").ComponentType<Partial<{
2982
2984
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
2983
2985
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2984
2986
  nonce?: string | undefined;
2985
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
2986
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
2987
2987
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
2988
2988
  defaultChecked?: boolean | undefined;
2989
2989
  defaultValue?: string | number | readonly string[] | undefined;
@@ -3244,13 +3244,14 @@ export declare const TableHeadCell: import("react").ComponentType<Partial<{
3244
3244
  };
3245
3245
  autofocus: boolean;
3246
3246
  normalize: () => void;
3247
+ readonly renderOptions: import("lit-html").RenderOptions;
3248
+ connectedCallback: () => void;
3249
+ disconnectedCallback: () => void;
3247
3250
  readonly renderRoot: HTMLElement | ShadowRoot;
3248
3251
  isUpdatePending: boolean;
3249
3252
  hasUpdated: boolean;
3250
3253
  addController: (controller: import("lit").ReactiveController) => void;
3251
3254
  removeController: (controller: import("lit").ReactiveController) => void;
3252
- connectedCallback: () => void;
3253
- disconnectedCallback: () => void;
3254
3255
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
3255
3256
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
3256
3257
  readonly updateComplete: Promise<boolean>;
@@ -3547,7 +3548,6 @@ export declare const TableHeadCell: import("react").ComponentType<Partial<{
3547
3548
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
3548
3549
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
3549
3550
  readonly dataset: DOMStringMap;
3550
- readonly renderOptions: import("lit-html").RenderOptions;
3551
3551
  isLTR: boolean;
3552
3552
  hasVisibleFocusInTree: () => boolean;
3553
3553
  sortable: boolean;
@@ -3564,6 +3564,8 @@ export declare const TableRow: import("react").ComponentType<Partial<{
3564
3564
  title?: string | undefined;
3565
3565
  tabIndex?: number | undefined;
3566
3566
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
3567
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
3568
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
3567
3569
  accessKey?: string | undefined;
3568
3570
  draggable?: (boolean | "true" | "false") | undefined;
3569
3571
  hidden?: boolean | undefined;
@@ -3576,8 +3578,6 @@ export declare const TableRow: import("react").ComponentType<Partial<{
3576
3578
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
3577
3579
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
3578
3580
  nonce?: string | undefined;
3579
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
3580
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
3581
3581
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
3582
3582
  defaultChecked?: boolean | undefined;
3583
3583
  defaultValue?: string | number | readonly string[] | undefined;
@@ -3838,13 +3838,18 @@ export declare const TableRow: import("react").ComponentType<Partial<{
3838
3838
  };
3839
3839
  autofocus: boolean;
3840
3840
  normalize: () => void;
3841
+ checkboxCells: import("table/src").TableCheckboxCell[];
3842
+ selectable: boolean;
3843
+ selected: boolean;
3844
+ value: string;
3845
+ readonly renderOptions: import("lit-html").RenderOptions;
3846
+ connectedCallback: () => void;
3847
+ disconnectedCallback: () => void;
3841
3848
  readonly renderRoot: HTMLElement | ShadowRoot;
3842
3849
  isUpdatePending: boolean;
3843
3850
  hasUpdated: boolean;
3844
3851
  addController: (controller: import("lit").ReactiveController) => void;
3845
3852
  removeController: (controller: import("lit").ReactiveController) => void;
3846
- connectedCallback: () => void;
3847
- disconnectedCallback: () => void;
3848
3853
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
3849
3854
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
3850
3855
  readonly updateComplete: Promise<boolean>;
@@ -4141,11 +4146,6 @@ export declare const TableRow: import("react").ComponentType<Partial<{
4141
4146
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
4142
4147
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
4143
4148
  readonly dataset: DOMStringMap;
4144
- checkboxCells: import("table/src").TableCheckboxCell[];
4145
- selectable: boolean;
4146
- selected: boolean;
4147
- value: string;
4148
- readonly renderOptions: import("lit-html").RenderOptions;
4149
4149
  isLTR: boolean;
4150
4150
  hasVisibleFocusInTree: () => boolean;
4151
4151
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/table",
3
- "version": "0.35.1-rc.26+05bd08374",
3
+ "version": "0.36.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit-labs/react": "^1.1.1",
33
- "@spectrum-web-components/table": "^0.35.1-rc.26+05bd08374"
33
+ "@spectrum-web-components/table": "^0.36.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "05bd0837417e287acdf2685d1ca05ab4d138fc95"
43
+ "gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
44
44
  }