@swc-react/table 0.36.0 → 0.38.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,8 +8,6 @@ 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;
13
11
  accessKey?: string | undefined;
14
12
  draggable?: (boolean | "true" | "false") | undefined;
15
13
  hidden?: boolean | undefined;
@@ -22,6 +20,8 @@ export declare const Table: import("react").ComponentType<Partial<{
22
20
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
23
21
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
24
22
  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,15 +283,13 @@ 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;
290
286
  readonly renderRoot: HTMLElement | ShadowRoot;
291
287
  isUpdatePending: boolean;
292
288
  hasUpdated: boolean;
293
289
  addController: (controller: import("lit").ReactiveController) => void;
294
290
  removeController: (controller: import("lit").ReactiveController) => void;
291
+ connectedCallback: () => void;
292
+ disconnectedCallback: () => void;
295
293
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
296
294
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
297
295
  readonly updateComplete: Promise<boolean>;
@@ -588,6 +586,8 @@ export declare const Table: import("react").ComponentType<Partial<{
588
586
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
589
587
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
590
588
  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,8 +608,6 @@ 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;
613
611
  accessKey?: string | undefined;
614
612
  draggable?: (boolean | "true" | "false") | undefined;
615
613
  hidden?: boolean | undefined;
@@ -622,6 +620,8 @@ export declare const TableBody: import("react").ComponentType<Partial<{
622
620
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
623
621
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
624
622
  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,14 +882,13 @@ 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;
888
885
  readonly renderRoot: HTMLElement | ShadowRoot;
889
886
  isUpdatePending: boolean;
890
887
  hasUpdated: boolean;
891
888
  addController: (controller: import("lit").ReactiveController) => void;
892
889
  removeController: (controller: import("lit").ReactiveController) => void;
890
+ connectedCallback: () => void;
891
+ disconnectedCallback: () => void;
893
892
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
894
893
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
895
894
  readonly updateComplete: Promise<boolean>;
@@ -1186,6 +1185,7 @@ export declare const TableBody: import("react").ComponentType<Partial<{
1186
1185
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1187
1186
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1188
1187
  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,8 +1197,6 @@ 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;
1202
1200
  accessKey?: string | undefined;
1203
1201
  draggable?: (boolean | "true" | "false") | undefined;
1204
1202
  hidden?: boolean | undefined;
@@ -1211,6 +1209,8 @@ export declare const TableCell: import("react").ComponentType<Partial<{
1211
1209
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
1212
1210
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1213
1211
  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,14 +1471,13 @@ 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;
1477
1474
  readonly renderRoot: HTMLElement | ShadowRoot;
1478
1475
  isUpdatePending: boolean;
1479
1476
  hasUpdated: boolean;
1480
1477
  addController: (controller: import("lit").ReactiveController) => void;
1481
1478
  removeController: (controller: import("lit").ReactiveController) => void;
1479
+ connectedCallback: () => void;
1480
+ disconnectedCallback: () => void;
1482
1481
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
1483
1482
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
1484
1483
  readonly updateComplete: Promise<boolean>;
@@ -1775,6 +1774,7 @@ export declare const TableCell: import("react").ComponentType<Partial<{
1775
1774
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1776
1775
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1777
1776
  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,8 +1786,6 @@ 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;
1791
1789
  accessKey?: string | undefined;
1792
1790
  draggable?: (boolean | "true" | "false") | undefined;
1793
1791
  hidden?: boolean | undefined;
@@ -1800,6 +1798,8 @@ export declare const TableCheckboxCell: import("react").ComponentType<Partial<{
1800
1798
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
1801
1799
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1802
1800
  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,17 +2062,13 @@ 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;
2071
2065
  readonly renderRoot: HTMLElement | ShadowRoot;
2072
2066
  isUpdatePending: boolean;
2073
2067
  hasUpdated: boolean;
2074
2068
  addController: (controller: import("lit").ReactiveController) => void;
2075
2069
  removeController: (controller: import("lit").ReactiveController) => void;
2070
+ connectedCallback: () => void;
2071
+ disconnectedCallback: () => void;
2076
2072
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
2077
2073
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
2078
2074
  readonly updateComplete: Promise<boolean>;
@@ -2369,6 +2365,10 @@ export declare const TableCheckboxCell: import("react").ComponentType<Partial<{
2369
2365
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2370
2366
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
2371
2367
  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,8 +2380,6 @@ 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;
2385
2383
  accessKey?: string | undefined;
2386
2384
  draggable?: (boolean | "true" | "false") | undefined;
2387
2385
  hidden?: boolean | undefined;
@@ -2394,6 +2392,8 @@ export declare const TableHead: import("react").ComponentType<Partial<{
2394
2392
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
2395
2393
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2396
2394
  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,15 +2654,13 @@ 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;
2661
2657
  readonly renderRoot: HTMLElement | ShadowRoot;
2662
2658
  isUpdatePending: boolean;
2663
2659
  hasUpdated: boolean;
2664
2660
  addController: (controller: import("lit").ReactiveController) => void;
2665
2661
  removeController: (controller: import("lit").ReactiveController) => void;
2662
+ connectedCallback: () => void;
2663
+ disconnectedCallback: () => void;
2666
2664
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
2667
2665
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
2668
2666
  readonly updateComplete: Promise<boolean>;
@@ -2959,6 +2957,8 @@ export declare const TableHead: import("react").ComponentType<Partial<{
2959
2957
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2960
2958
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
2961
2959
  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,8 +2970,6 @@ 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;
2975
2973
  accessKey?: string | undefined;
2976
2974
  draggable?: (boolean | "true" | "false") | undefined;
2977
2975
  hidden?: boolean | undefined;
@@ -2984,6 +2982,8 @@ export declare const TableHeadCell: import("react").ComponentType<Partial<{
2984
2982
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
2985
2983
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
2986
2984
  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,14 +3244,13 @@ 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;
3250
3247
  readonly renderRoot: HTMLElement | ShadowRoot;
3251
3248
  isUpdatePending: boolean;
3252
3249
  hasUpdated: boolean;
3253
3250
  addController: (controller: import("lit").ReactiveController) => void;
3254
3251
  removeController: (controller: import("lit").ReactiveController) => void;
3252
+ connectedCallback: () => void;
3253
+ disconnectedCallback: () => void;
3255
3254
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
3256
3255
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
3257
3256
  readonly updateComplete: Promise<boolean>;
@@ -3548,6 +3547,7 @@ export declare const TableHeadCell: import("react").ComponentType<Partial<{
3548
3547
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
3549
3548
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
3550
3549
  readonly dataset: DOMStringMap;
3550
+ readonly renderOptions: import("lit-html").RenderOptions;
3551
3551
  isLTR: boolean;
3552
3552
  hasVisibleFocusInTree: () => boolean;
3553
3553
  sortable: boolean;
@@ -3564,8 +3564,6 @@ 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;
3569
3567
  accessKey?: string | undefined;
3570
3568
  draggable?: (boolean | "true" | "false") | undefined;
3571
3569
  hidden?: boolean | undefined;
@@ -3578,6 +3576,8 @@ export declare const TableRow: import("react").ComponentType<Partial<{
3578
3576
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
3579
3577
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
3580
3578
  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,18 +3838,13 @@ 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;
3848
3841
  readonly renderRoot: HTMLElement | ShadowRoot;
3849
3842
  isUpdatePending: boolean;
3850
3843
  hasUpdated: boolean;
3851
3844
  addController: (controller: import("lit").ReactiveController) => void;
3852
3845
  removeController: (controller: import("lit").ReactiveController) => void;
3846
+ connectedCallback: () => void;
3847
+ disconnectedCallback: () => void;
3853
3848
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
3854
3849
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
3855
3850
  readonly updateComplete: Promise<boolean>;
@@ -4146,6 +4141,11 @@ export declare const TableRow: import("react").ComponentType<Partial<{
4146
4141
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
4147
4142
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
4148
4143
  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.36.0",
3
+ "version": "0.38.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.36.0"
33
+ "@spectrum-web-components/table": "^0.38.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
43
+ "gitHead": "9a099b7543672f2fd4030833ab813b16c2cad62e"
44
44
  }