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