carbon-components-svelte 0.64.2 → 0.65.1

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 (60) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +6 -20
  3. package/lib/index.js +1 -1
  4. package/lib/index.mjs +1719 -1431
  5. package/package.json +3 -3
  6. package/src/Accordion/AccordionSkeleton.svelte +3 -3
  7. package/src/Checkbox/Checkbox.svelte +7 -1
  8. package/src/ComboBox/ComboBox.svelte +24 -3
  9. package/src/ComposedModal/ComposedModal.svelte +5 -6
  10. package/src/ContextMenu/ContextMenu.svelte +1 -1
  11. package/src/ContextMenu/ContextMenuGroup.svelte +1 -1
  12. package/src/DataTable/DataTable.svelte +47 -46
  13. package/src/DataTable/DataTableSkeleton.svelte +1 -1
  14. package/src/DataTable/TableHeader.svelte +14 -9
  15. package/src/DataTable/ToolbarSearch.svelte +1 -1
  16. package/src/DatePicker/DatePicker.svelte +5 -4
  17. package/src/DatePicker/DatePickerInput.svelte +1 -0
  18. package/src/Dropdown/Dropdown.svelte +25 -8
  19. package/src/FileUploader/FileUploader.svelte +5 -5
  20. package/src/FileUploader/FileUploaderButton.svelte +8 -4
  21. package/src/FileUploader/FileUploaderDropContainer.svelte +7 -7
  22. package/src/ListBox/ListBoxMenuItem.svelte +16 -1
  23. package/src/Modal/Modal.svelte +8 -21
  24. package/src/Modal/modalStore.js +36 -0
  25. package/src/MultiSelect/MultiSelect.svelte +27 -6
  26. package/src/NumberInput/NumberInput.svelte +3 -1
  27. package/src/Pagination/Pagination.svelte +1 -1
  28. package/src/Search/Search.svelte +1 -0
  29. package/src/Select/Select.svelte +4 -2
  30. package/src/Tabs/Tab.svelte +1 -15
  31. package/src/Tabs/Tabs.svelte +10 -2
  32. package/src/TextArea/TextArea.svelte +2 -1
  33. package/src/TextInput/PasswordInput.svelte +10 -3
  34. package/src/TextInput/TextInput.svelte +5 -2
  35. package/src/TimePicker/TimePicker.svelte +1 -0
  36. package/src/TreeView/TreeView.svelte +2 -2
  37. package/src/UIShell/HeaderSearch.svelte +2 -1
  38. package/types/Checkbox/Checkbox.svelte.d.ts +1 -1
  39. package/types/ComboBox/ComboBox.svelte.d.ts +3 -1
  40. package/types/ContextMenu/ContextMenu.svelte.d.ts +1 -1
  41. package/types/ContextMenu/ContextMenuGroup.svelte.d.ts +1 -1
  42. package/types/DataTable/DataTable.svelte.d.ts +18 -6
  43. package/types/DataTable/DataTableSkeleton.svelte.d.ts +1 -1
  44. package/types/DataTable/TableHeader.svelte.d.ts +14 -2
  45. package/types/DatePicker/DatePickerInput.svelte.d.ts +1 -0
  46. package/types/Dropdown/Dropdown.svelte.d.ts +2 -7
  47. package/types/FileUploader/FileUploader.svelte.d.ts +5 -5
  48. package/types/FileUploader/FileUploaderButton.svelte.d.ts +3 -3
  49. package/types/FileUploader/FileUploaderDropContainer.svelte.d.ts +7 -7
  50. package/types/ListBox/ListBoxMenuItem.svelte.d.ts +6 -0
  51. package/types/MultiSelect/MultiSelect.svelte.d.ts +4 -2
  52. package/types/NumberInput/NumberInput.svelte.d.ts +1 -0
  53. package/types/Pagination/Pagination.svelte.d.ts +1 -1
  54. package/types/Search/Search.svelte.d.ts +1 -0
  55. package/types/TextArea/TextArea.svelte.d.ts +1 -0
  56. package/types/TextInput/PasswordInput.svelte.d.ts +1 -0
  57. package/types/TextInput/TextInput.svelte.d.ts +1 -0
  58. package/types/TimePicker/TimePicker.svelte.d.ts +1 -0
  59. package/types/TreeView/TreeView.svelte.d.ts +2 -2
  60. package/types/UIShell/HeaderSearch.svelte.d.ts +2 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  <!-- ## Unreleased -->
9
9
 
10
+ ## [0.65.0](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.65.0) - 2022-06-09
11
+
12
+ **Fixes**
13
+
14
+ - `DataTable` column sort direction order should be independent
15
+
16
+ ## [0.65.0](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.65.0) - 2022-06-07
17
+
18
+ **Breaking Changes**
19
+
20
+ - mark array-type props as read-only
21
+
22
+ **Features**
23
+
24
+ - add `sortKey`, `sortDirection` props to `DataTable` for programmatic sorting
25
+ - forward `paste` event to `ComboBox`, `DatePicker`, `MultiSelect`, `NumberInput`, `Search`, `TextArea`, `TextInput`, `PasswordInput`, `TimePicker`, `HeaderSearch`
26
+ - support disabled items in `Dropdown`, `MultiSelect`, `ComboBox`
27
+
28
+ **Fixes**
29
+
30
+ - do not overwrite `cells` property in `rows` object in `DataTable`
31
+ - correctly toggle the body class if using nested modals
32
+ - remove useless `inline` prop from `Dropdown`
33
+ - remove redundant `Dropdown` list box role and id
34
+ - add missing `role="option"` and `aria-selected` attributes to `ListBoxMenuItem`
35
+
36
+ **Refactor**
37
+
38
+ - set alert `Modal` attributes in markup instead of script
39
+
40
+ **Documentation**
41
+
42
+ - add `DataTable` example "Programmatic sorting"
43
+ - add `Modal` example "Has scrolling content"
44
+ - add `Modal` example "Custom focus"
45
+ - add `Dropdown` example "Disabled items"
46
+ - add `MultiSelect` example "Disabled items"
47
+ - add `ComboBox` example "Disabled items"
48
+
49
+ ## [0.64.3](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.64.3) - 2022-05-29
50
+
51
+ **Fixes**
52
+
53
+ - active tab in `Tabs` should not steal focus if programmatically selected
54
+ - set title attribute in `CheckBox`, `MultiSelect`, `Dropdown`, `ComboBox` if label is truncated
55
+
56
+ **Refactor**
57
+
58
+ - refactor components to use `class:` directive instead of the class attribute
59
+
60
+ **Documentation**
61
+
62
+ - add `Tabs` example "Disabled tabs"
63
+
10
64
  ## [0.64.2](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.64.2) - 2022-05-25
11
65
 
12
66
  **Fixes**
package/README.md CHANGED
@@ -31,21 +31,14 @@ Other forms of documentation are auto-generated:
31
31
 
32
32
  Install `carbon-components-svelte` as a development dependency.
33
33
 
34
- **Yarn**
35
-
36
34
  ```sh
35
+ # Yarn
37
36
  yarn add -D carbon-components-svelte
38
- ```
39
37
 
40
- **NPM**
41
-
42
- ```sh
38
+ # npm
43
39
  npm i -D carbon-components-svelte
44
- ```
45
-
46
- **pnpm**
47
40
 
48
- ```sh
41
+ # pnpm
49
42
  pnpm i -D carbon-components-svelte
50
43
  ```
51
44
 
@@ -184,21 +177,14 @@ Import components from `carbon-components-svelte` in the `script` tag of your Sv
184
177
 
185
178
  [carbon-preprocess-svelte](https://github.com/carbon-design-system/carbon-preprocess-svelte) is a collection of Svelte preprocessors for Carbon.
186
179
 
187
- **Yarn**
188
-
189
180
  ```sh
181
+ # Yarn
190
182
  yarn add -D carbon-preprocess-svelte
191
- ```
192
183
 
193
- **NPM**
194
-
195
- ```sh
184
+ # npm
196
185
  npm i -D carbon-preprocess-svelte
197
- ```
198
-
199
- **pnpm**
200
186
 
201
- ```sh
187
+ # pnpm
202
188
  pnpm i -D carbon-preprocess-svelte
203
189
  ```
204
190