@knime/kds-components 6.12.1 → 7.0.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 (63) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/index.css +103 -103
  3. package/dist/index.js +829 -649
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts +29 -2
  6. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -1
  7. package/dist/src/components/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +1 -1
  8. package/dist/src/components/accessories/Avatar/nameInitials.d.ts +9 -0
  9. package/dist/src/components/accessories/Avatar/nameInitials.d.ts.map +1 -0
  10. package/dist/src/components/accessories/Avatar/types.d.ts +28 -7
  11. package/dist/src/components/accessories/Avatar/types.d.ts.map +1 -1
  12. package/dist/src/components/accessories/Badge/enums.d.ts +1 -1
  13. package/dist/src/components/accessories/_Accessory/_Accessory.vue.d.ts.map +1 -1
  14. package/dist/src/components/accessories/_Accessory/types.d.ts +7 -5
  15. package/dist/src/components/accessories/_Accessory/types.d.ts.map +1 -1
  16. package/dist/src/components/buttons/BaseButton.vue.d.ts +10 -24
  17. package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -1
  18. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts +4 -24
  19. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -1
  20. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +12 -72
  21. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
  22. package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts +12 -20
  23. package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts.map +1 -1
  24. package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts +30 -2
  25. package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts.map +1 -1
  26. package/dist/src/components/buttons/KdsProgressButton/enums.d.ts +1 -1
  27. package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts +8 -20
  28. package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts.map +1 -1
  29. package/dist/src/components/buttons/KdsSelectButton/types.d.ts +19 -2
  30. package/dist/src/components/buttons/KdsSelectButton/types.d.ts.map +1 -1
  31. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +4 -24
  32. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
  33. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +4 -24
  34. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -1
  35. package/dist/src/components/buttons/index.d.ts +1 -1
  36. package/dist/src/components/buttons/index.d.ts.map +1 -1
  37. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +4 -24
  38. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -1
  39. package/dist/src/components/buttons/types.d.ts +8 -3
  40. package/dist/src/components/buttons/types.d.ts.map +1 -1
  41. package/dist/src/components/feedback/enums.d.ts +1 -1
  42. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts +4 -0
  43. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -1
  44. package/dist/src/components/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +1 -1
  45. package/dist/src/components/forms/Checkbox/types.d.ts +5 -0
  46. package/dist/src/components/forms/Checkbox/types.d.ts.map +1 -1
  47. package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts +15 -0
  48. package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts.map +1 -0
  49. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts +2 -8
  50. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts.map +1 -1
  51. package/dist/src/components/forms/_helper/useRovingFocus.d.ts +35 -0
  52. package/dist/src/components/forms/_helper/useRovingFocus.d.ts.map +1 -0
  53. package/dist/src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -1
  54. package/dist/src/components/forms/selects/Dropdown/types.d.ts +19 -0
  55. package/dist/src/components/forms/selects/Dropdown/types.d.ts.map +1 -1
  56. package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
  57. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
  58. package/dist/src/components/lists/MenuContainer/types.d.ts +12 -0
  59. package/dist/src/components/lists/MenuContainer/types.d.ts.map +1 -1
  60. package/dist/src/layouts/cards/CardHeader.vue.d.ts.map +1 -1
  61. package/dist/src/util/useKdsDarkMode.d.ts +5 -0
  62. package/dist/src/util/useKdsDarkMode.d.ts.map +1 -1
  63. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 3ddf326: - `KdsAvatar`:
8
+ - add an optional `name` prop; the displayed initials and the tooltip are derived from it, while `initials` and `tooltip` stay available as explicit overrides.
9
+ - warn when neither `name` nor `initials` is provided.
10
+ - `KdsAvatarCounter`: entries of `avatars` accept `name` as well.
11
+ - `KdsAvatarAccessory`: accepts `name` (and `initials` is no longer mandatory), so accessory-based avatars can derive their initials too.
12
+
13
+ BREAKING CHANGES:
14
+
15
+ - `KdsAvatar`: either `name` or `initials` is now required (`tooltip` stays optional) — an avatar that previously passed neither, e.g. an image-only one, has to set one of them. The same requirement applies to the `avatars` entries of `KdsAvatarCounter` and to `KdsAvatarAccessory`.
16
+
17
+ - 6c94688: - `KdsRadioButtonGroup` / `KdsValueSwitch`: fix a group whose selected option is
18
+ `disabled` having no tab stop at all, which made it unreachable by keyboard.
19
+ The tab stop now falls back to the first enabled option.
20
+
21
+ BREAKING CHANGES:
22
+
23
+ - `KdsCheckboxGroup`: the group is now a single tab stop (roving tabindex)
24
+ instead of one tab stop per option. `Tab` moves into and out of the group as a
25
+ unit; the arrow keys (plus `Home` / `End`) move focus between options and skip
26
+ disabled ones. This deviates from the ARIA APG Checkbox pattern — where each
27
+ checkbox is individually tabbable — to match `KdsRadioButtonGroup` and
28
+ `KdsValueSwitch`, so keyboard behaviour is consistent across KDS option
29
+ groups. Note that the arrow-key navigation is not announced to assistive
30
+ technology: a `fieldset` exposes `role="group"`, which is not a composite
31
+ role. To adapt, replace any `Tab` step between two options in a keyboard flow
32
+ or test with an `ArrowDown` / `ArrowRight` press.
33
+
34
+ - 16a64c0: - `KdsMenuContainer` (and the menus built on it — `KdsMenu`, `KdsMenuButton`, `KdsContextMenu`, `KdsSplitButton`): keep an open submenu open when the menu item that opens it is clicked.
35
+
36
+ BREAKING CHANGES:
37
+
38
+ - `KdsMenuContainer`: `Escape` now closes only the deepest open submenu and keeps the menu itself open. While a submenu is open the key press is consumed by the menu, so it no longer also closes a surrounding popover or dialog; once no submenu is open, `Escape` closes the menu as before.
39
+ - `KdsSplitButton`: `Escape` follows that behaviour too, instead of always closing the whole menu at once.
40
+
41
+ ### Minor Changes
42
+
43
+ - f9928f3: `useKdsDarkMode`: added a `lightDark` helper that resolves a `KdsColor` to its current `KdsColorValue` (light or dark) based on the effective dark-mode state.
44
+ - c2d1454: Improve the `KdsSelectButton` and `KdsMultiSelectButton` selection triggers.
45
+
46
+ - `KdsSelectButton` / `KdsMultiSelectButton`:
47
+ - Both now render a `BaseButton` directly (in its toggled/active state)
48
+ instead of wrapping a `KdsToggleButton`, and show a trailing `KdsBadge` with
49
+ the number of selected values while a selection exists. The badge is
50
+ decorative (`aria-hidden`), so it does not change the button's accessible
51
+ name; selection state stays conveyed through `aria-pressed` and the dropdown
52
+ options.
53
+ - The count badge takes the place of the trailing icon: while the badge is
54
+ shown, a configured `trailingIcon` is not rendered.
55
+ - Like `trailingIcon`, the count badge requires a visible label — icon-only
56
+ buttons show their icon alone. `showCount` is typed as unavailable when no
57
+ `label` is set, and the badge is not rendered there.
58
+ - Both accept a `showCount` prop to toggle the trailing count badge. It
59
+ defaults to `true` on `KdsMultiSelectButton` and to `false` on
60
+ `KdsSelectButton`, where the badge always reads "1" since only one value
61
+ can be selected.
62
+ - `KdsMultiSelectButton`:
63
+ - Accepts `hideSelectAll` (default `false`). When `true`, the dropdown footer
64
+ "Select all" action is hidden, while the "Clear all" action stays available
65
+ so a selection can always be cleared.
66
+ - The dropdown footer "Clear all" action is now automatically hidden when
67
+ `minimumSelectedOptions` is greater than 0, since clearing all would drop
68
+ below the required minimum. The footer holds a single action that flips
69
+ between "Select all" and "Clear all" depending on the selection, so with a
70
+ minimum set no footer action is offered while at least one listed option is
71
+ selected; "Select all" reappears once the search narrows the list down to
72
+ unselected options.
73
+
74
+ ### Patch Changes
75
+
76
+ - 2270bce: `KdsCard`: render the header headline as a `div` instead of an `h6` to avoid emitting an out-of-order heading; visual appearance is unchanged.
77
+ - Updated dependencies [f9928f3]
78
+ - @knime/kds-styles@7.0.0
79
+
80
+ ## 6.12.2
81
+
82
+ ### Patch Changes
83
+
84
+ - @knime/kds-styles@6.12.2
85
+
3
86
  ## 6.12.1
4
87
 
5
88
  ### Patch Changes