carbon-components-svelte 0.96.1 → 0.96.2

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 (36) hide show
  1. package/package.json +1 -1
  2. package/types/Checkbox/Checkbox.svelte.d.ts +1 -1
  3. package/types/ComboBox/ComboBox.svelte.d.ts +1 -1
  4. package/types/ContextMenu/ContextMenuOption.svelte.d.ts +1 -1
  5. package/types/DataTable/DataTable.svelte.d.ts +33 -9
  6. package/types/DataTable/ToolbarBatchActions.svelte.d.ts +1 -1
  7. package/types/DatePicker/DatePickerInput.svelte.d.ts +1 -1
  8. package/types/FileUploader/FileUploaderButton.svelte.d.ts +2 -0
  9. package/types/FileUploader/FileUploaderDropContainer.svelte.d.ts +1 -1
  10. package/types/Modal/Modal.svelte.d.ts +2 -2
  11. package/types/MultiSelect/MultiSelect.svelte.d.ts +1 -1
  12. package/types/Notification/InlineNotification.svelte.d.ts +3 -3
  13. package/types/Notification/ToastNotification.svelte.d.ts +3 -3
  14. package/types/NumberInput/NumberInput.svelte.d.ts +1 -1
  15. package/types/OverflowMenu/OverflowMenu.svelte.d.ts +1 -1
  16. package/types/ProgressBar/ProgressBar.svelte.d.ts +1 -1
  17. package/types/RadioButton/RadioButton.svelte.d.ts +1 -1
  18. package/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts +1 -1
  19. package/types/Search/Search.svelte.d.ts +1 -1
  20. package/types/Select/Select.svelte.d.ts +1 -1
  21. package/types/Slider/Slider.svelte.d.ts +1 -1
  22. package/types/Tabs/Tabs.svelte.d.ts +1 -1
  23. package/types/TextArea/TextArea.svelte.d.ts +1 -1
  24. package/types/TextInput/PasswordInput.svelte.d.ts +1 -1
  25. package/types/TextInput/TextInput.svelte.d.ts +1 -1
  26. package/types/Tile/ExpandableTile.svelte.d.ts +2 -2
  27. package/types/Tile/SelectableTileGroup.svelte.d.ts +1 -1
  28. package/types/Tile/TileGroup.svelte.d.ts +1 -1
  29. package/types/TimePicker/TimePicker.svelte.d.ts +1 -1
  30. package/types/TimePicker/TimePickerSelect.svelte.d.ts +1 -1
  31. package/types/Toggle/Toggle.svelte.d.ts +1 -1
  32. package/types/Toggle/ToggleSkeleton.svelte.d.ts +1 -1
  33. package/types/TooltipDefinition/TooltipDefinition.svelte.d.ts +1 -1
  34. package/types/TreeView/TreeView.svelte.d.ts +1 -1
  35. package/types/UIShell/Header.svelte.d.ts +3 -3
  36. package/types/UIShell/HeaderAction.svelte.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-components-svelte",
3
- "version": "0.96.1",
3
+ "version": "0.96.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Svelte implementation of the Carbon Design System",
6
6
  "type": "module",
@@ -94,7 +94,7 @@ type $Props = {
94
94
  */
95
95
  ref?: null | HTMLInputElement;
96
96
 
97
- labelChildren?: () => void;
97
+ labelChildren?: (this: void) => void;
98
98
 
99
99
  [key: `data-${string}`]: any;
100
100
  };
@@ -181,7 +181,7 @@ type $Props<Item> = {
181
181
  */
182
182
  listRef?: null | HTMLDivElement;
183
183
 
184
- labelChildren?: () => void;
184
+ labelChildren?: (this: void) => void;
185
185
 
186
186
  [key: `data-${string}`]: any;
187
187
  };
@@ -81,7 +81,7 @@ type $Props = {
81
81
  */
82
82
  ref?: null | HTMLLIElement;
83
83
 
84
- labelChildren?: () => void;
84
+ labelChildren?: (this: void) => void;
85
85
 
86
86
  [key: `data-${string}`]: any;
87
87
  };
@@ -209,15 +209,39 @@ type $Props<Row> = {
209
209
  id: import("./TableHeader.svelte").TableHeaderTranslationId,
210
210
  ) => string;
211
211
 
212
- cell?: () => void;
213
-
214
- "cell-header"?: () => void;
215
-
216
- descriptionChildren?: () => void;
217
-
218
- "expanded-row"?: () => void;
219
-
220
- titleChildren?: () => void;
212
+ cell?: (
213
+ this: void,
214
+ ...args: [
215
+ {
216
+ row: Row;
217
+ cell: DataTableCell<Row>;
218
+ rowIndex: number;
219
+ cellIndex: number;
220
+ rowSelected: boolean;
221
+ rowExpanded: boolean;
222
+ },
223
+ ]
224
+ ) => void;
225
+
226
+ "cell-header"?: (
227
+ this: void,
228
+ ...args: [{ header: DataTableNonEmptyHeader }]
229
+ ) => void;
230
+
231
+ descriptionChildren?: (
232
+ this: void,
233
+ ...args: [{ props: { class: "bx--data-table-header__description" } }]
234
+ ) => void;
235
+
236
+ "expanded-row"?: (
237
+ this: void,
238
+ ...args: [{ row: Row; rowSelected: boolean }]
239
+ ) => void;
240
+
241
+ titleChildren?: (
242
+ this: void,
243
+ ...args: [{ props: { class: "bx--data-table-header__title" } }]
244
+ ) => void;
221
245
 
222
246
  [key: `data-${string}`]: any;
223
247
  };
@@ -22,7 +22,7 @@ type $Props = {
22
22
  */
23
23
  selectedIds?: ReadonlyArray<any>;
24
24
 
25
- cancel?: () => void;
25
+ cancel?: (this: void) => void;
26
26
 
27
27
  [key: `data-${string}`]: any;
28
28
  };
@@ -100,7 +100,7 @@ type $Props = {
100
100
  */
101
101
  ref?: null | HTMLInputElement;
102
102
 
103
- labelChildren?: () => void;
103
+ labelChildren?: (this: void) => void;
104
104
 
105
105
  [key: `data-${string}`]: any;
106
106
  };
@@ -70,6 +70,8 @@ type $Props = {
70
70
  */
71
71
  ref?: null | HTMLInputElement;
72
72
 
73
+ labelChildren?: (this: void) => void;
74
+
73
75
  [key: `data-${string}`]: any;
74
76
  };
75
77
 
@@ -70,7 +70,7 @@ type $Props = {
70
70
  */
71
71
  ref?: null | HTMLInputElement;
72
72
 
73
- labelChildren?: () => void;
73
+ labelChildren?: (this: void) => void;
74
74
 
75
75
  [key: `data-${string}`]: any;
76
76
  };
@@ -139,9 +139,9 @@ type $Props = {
139
139
  */
140
140
  ref?: null | HTMLDivElement;
141
141
 
142
- heading?: () => void;
142
+ heading?: (this: void) => void;
143
143
 
144
- label?: () => void;
144
+ label?: (this: void) => void;
145
145
 
146
146
  [key: `data-${string}`]: any;
147
147
  };
@@ -239,7 +239,7 @@ type $Props<Item> = {
239
239
  */
240
240
  highlightedId?: null | MultiSelectItemId;
241
241
 
242
- labelChildren?: () => void;
242
+ labelChildren?: (this: void) => void;
243
243
 
244
244
  [key: `data-${string}`]: any;
245
245
  };
@@ -70,11 +70,11 @@ type $Props = {
70
70
  */
71
71
  open?: boolean;
72
72
 
73
- actions?: () => void;
73
+ actions?: (this: void) => void;
74
74
 
75
- subtitleChildren?: () => void;
75
+ subtitleChildren?: (this: void) => void;
76
76
 
77
- titleChildren?: () => void;
77
+ titleChildren?: (this: void) => void;
78
78
 
79
79
  [key: `data-${string}`]: any;
80
80
  };
@@ -83,11 +83,11 @@ type $Props = {
83
83
  */
84
84
  open?: boolean;
85
85
 
86
- captionChildren?: () => void;
86
+ captionChildren?: (this: void) => void;
87
87
 
88
- subtitleChildren?: () => void;
88
+ subtitleChildren?: (this: void) => void;
89
89
 
90
- titleChildren?: () => void;
90
+ titleChildren?: (this: void) => void;
91
91
 
92
92
  [key: `data-${string}`]: any;
93
93
  };
@@ -144,7 +144,7 @@ type $Props = {
144
144
  */
145
145
  ref?: null | HTMLInputElement;
146
146
 
147
- labelChildren?: () => void;
147
+ labelChildren?: (this: void) => void;
148
148
 
149
149
  [key: `data-${string}`]: any;
150
150
  };
@@ -106,7 +106,7 @@ type $Props = {
106
106
  */
107
107
  menuRef?: null | HTMLUListElement;
108
108
 
109
- menu?: () => void;
109
+ menu?: (this: void) => void;
110
110
 
111
111
  [key: `data-${string}`]: any;
112
112
  };
@@ -58,7 +58,7 @@ type $Props = {
58
58
  */
59
59
  id?: string;
60
60
 
61
- labelChildren?: () => void;
61
+ labelChildren?: (this: void) => void;
62
62
 
63
63
  [key: `data-${string}`]: any;
64
64
  };
@@ -64,7 +64,7 @@ type $Props = {
64
64
  */
65
65
  ref?: null | HTMLInputElement;
66
66
 
67
- labelChildren?: () => void;
67
+ labelChildren?: (this: void) => void;
68
68
 
69
69
  [key: `data-${string}`]: any;
70
70
  };
@@ -82,7 +82,7 @@ type $Props = {
82
82
  */
83
83
  id?: string;
84
84
 
85
- legendChildren?: () => void;
85
+ legendChildren?: (this: void) => void;
86
86
 
87
87
  [key: `data-${string}`]: any;
88
88
  };
@@ -100,7 +100,7 @@ type $Props = {
100
100
  */
101
101
  ref?: null | HTMLInputElement;
102
102
 
103
- labelChildren?: () => void;
103
+ labelChildren?: (this: void) => void;
104
104
 
105
105
  [key: `data-${string}`]: any;
106
106
  };
@@ -114,7 +114,7 @@ type $Props<Value> = {
114
114
  */
115
115
  required?: boolean;
116
116
 
117
- labelChildren?: () => void;
117
+ labelChildren?: (this: void) => void;
118
118
 
119
119
  [key: `data-${string}`]: any;
120
120
  };
@@ -126,7 +126,7 @@ type $Props = {
126
126
  */
127
127
  ref?: null | HTMLDivElement;
128
128
 
129
- labelChildren?: () => void;
129
+ labelChildren?: (this: void) => void;
130
130
 
131
131
  [key: `data-${string}`]: any;
132
132
  };
@@ -57,7 +57,7 @@ type $Props = {
57
57
  */
58
58
  triggerHref?: string;
59
59
 
60
- content?: () => void;
60
+ content?: (this: void) => void;
61
61
 
62
62
  [key: `data-${string}`]: any;
63
63
  };
@@ -114,7 +114,7 @@ type $Props = {
114
114
  */
115
115
  ref?: null | HTMLTextAreaElement;
116
116
 
117
- labelChildren?: () => void;
117
+ labelChildren?: (this: void) => void;
118
118
 
119
119
  [key: `data-${string}`]: any;
120
120
  };
@@ -130,7 +130,7 @@ type $Props = {
130
130
  */
131
131
  ref?: null | HTMLInputElement;
132
132
 
133
- labelChildren?: () => void;
133
+ labelChildren?: (this: void) => void;
134
134
 
135
135
  [key: `data-${string}`]: any;
136
136
  };
@@ -114,7 +114,7 @@ type $Props = {
114
114
  */
115
115
  readonly?: boolean;
116
116
 
117
- labelChildren?: () => void;
117
+ labelChildren?: (this: void) => void;
118
118
 
119
119
  [key: `data-${string}`]: any;
120
120
  };
@@ -70,9 +70,9 @@ type $Props = {
70
70
  */
71
71
  ref?: null | HTMLButtonElement;
72
72
 
73
- above?: () => void;
73
+ above?: (this: void) => void;
74
74
 
75
- below?: () => void;
75
+ below?: (this: void) => void;
76
76
 
77
77
  [key: `data-${string}`]: any;
78
78
  };
@@ -42,7 +42,7 @@ type $Props<T> = {
42
42
  */
43
43
  legendText?: string;
44
44
 
45
- legendChildren?: () => void;
45
+ legendChildren?: (this: void) => void;
46
46
 
47
47
  [key: `data-${string}`]: any;
48
48
  };
@@ -49,7 +49,7 @@ type $Props<T> = {
49
49
  */
50
50
  legendText?: string;
51
51
 
52
- legendChildren?: () => void;
52
+ legendChildren?: (this: void) => void;
53
53
 
54
54
  [key: `data-${string}`]: any;
55
55
  };
@@ -88,7 +88,7 @@ type $Props = {
88
88
  */
89
89
  ref?: null | HTMLInputElement;
90
90
 
91
- labelChildren?: () => void;
91
+ labelChildren?: (this: void) => void;
92
92
 
93
93
  [key: `data-${string}`]: any;
94
94
  };
@@ -50,7 +50,7 @@ type $Props = {
50
50
  */
51
51
  ref?: null | HTMLSelectElement;
52
52
 
53
- labelChildren?: () => void;
53
+ labelChildren?: (this: void) => void;
54
54
 
55
55
  [key: `data-${string}`]: any;
56
56
  };
@@ -64,7 +64,7 @@ type $Props = {
64
64
  */
65
65
  ref?: null | HTMLInputElement;
66
66
 
67
- labelChildren?: () => void;
67
+ labelChildren?: (this: void) => void;
68
68
 
69
69
  [key: `data-${string}`]: any;
70
70
  };
@@ -22,7 +22,7 @@ type $Props = {
22
22
  */
23
23
  id?: string;
24
24
 
25
- labelChildren?: () => void;
25
+ labelChildren?: (this: void) => void;
26
26
 
27
27
  [key: `data-${string}`]: any;
28
28
  };
@@ -40,7 +40,7 @@ type $Props = {
40
40
  */
41
41
  ref?: null | HTMLButtonElement;
42
42
 
43
- tooltip?: () => void;
43
+ tooltip?: (this: void) => void;
44
44
 
45
45
  [key: `data-${string}`]: any;
46
46
  };
@@ -73,7 +73,7 @@ type $Props<Node> = {
73
73
  */
74
74
  hideLabel?: boolean;
75
75
 
76
- labelChildren?: () => void;
76
+ labelChildren?: (this: void) => void;
77
77
 
78
78
  [key: `data-${string}`]: any;
79
79
  };
@@ -98,11 +98,11 @@ type $Props = {
98
98
  */
99
99
  ariaLabelMenu?: string;
100
100
 
101
- company?: () => void;
101
+ company?: (this: void) => void;
102
102
 
103
- platform?: () => void;
103
+ platform?: (this: void) => void;
104
104
 
105
- "skip-to-content"?: () => void;
105
+ "skip-to-content"?: (this: void) => void;
106
106
 
107
107
  [key: `data-${string}`]: any;
108
108
  };
@@ -68,7 +68,7 @@ type $Props = {
68
68
  */
69
69
  preventCloseOnClickOutside?: boolean;
70
70
 
71
- textChildren?: () => void;
71
+ textChildren?: (this: void) => void;
72
72
 
73
73
  [key: `data-${string}`]: any;
74
74
  };