@knime/kds-components 2.8.2 → 3.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 (41) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/KdsIcon.css +33 -1
  3. package/dist/index.css +159 -141
  4. package/dist/index.js +411 -347
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/components/accessories/Icon/KdsDataType.vue.d.ts.map +1 -1
  7. package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -1
  8. package/dist/src/components/buttons/Breadcrumb/BreadcrumbItem.vue.d.ts.map +1 -1
  9. package/dist/src/layouts/cards/KdsLinkCard.vue.d.ts.map +1 -1
  10. package/dist/src/layouts/panels/TabPanel/KdsTabPanel.vue.d.ts +42 -0
  11. package/dist/src/layouts/panels/TabPanel/KdsTabPanel.vue.d.ts.map +1 -0
  12. package/dist/src/layouts/panels/TabPanel/TabBar/KdsTabBar.vue.d.ts +30 -0
  13. package/dist/src/layouts/panels/TabPanel/TabBar/KdsTabBar.vue.d.ts.map +1 -0
  14. package/dist/src/layouts/panels/TabPanel/TabBar/enums.d.ts.map +1 -0
  15. package/dist/src/layouts/panels/TabPanel/TabBar/index.d.ts.map +1 -0
  16. package/dist/src/layouts/panels/{TabBar → TabPanel/TabBar}/types.d.ts +1 -1
  17. package/dist/src/layouts/panels/TabPanel/TabBar/types.d.ts.map +1 -0
  18. package/dist/src/layouts/panels/TabPanel/TabBar/useTabBarAdaptiveLayout.d.ts.map +1 -0
  19. package/dist/src/layouts/panels/TabPanel/index.d.ts +5 -0
  20. package/dist/src/layouts/panels/TabPanel/index.d.ts.map +1 -0
  21. package/dist/src/layouts/panels/TabPanel/types.d.ts +8 -0
  22. package/dist/src/layouts/panels/TabPanel/types.d.ts.map +1 -0
  23. package/dist/src/layouts/panels/index.d.ts +2 -2
  24. package/dist/src/layouts/panels/index.d.ts.map +1 -1
  25. package/dist/src/util/index.d.ts +0 -2
  26. package/dist/src/util/index.d.ts.map +1 -1
  27. package/dist/src/util/nuxtComponentResolver.d.ts +1 -1
  28. package/dist/src/util/nuxtComponentResolver.d.ts.map +1 -1
  29. package/dist/src/util/useKdsDarkMode.d.ts.map +1 -1
  30. package/package.json +5 -3
  31. package/dist/src/layouts/panels/TabBar/KdsTabBar.vue.d.ts +0 -15
  32. package/dist/src/layouts/panels/TabBar/KdsTabBar.vue.d.ts.map +0 -1
  33. package/dist/src/layouts/panels/TabBar/enums.d.ts.map +0 -1
  34. package/dist/src/layouts/panels/TabBar/index.d.ts.map +0 -1
  35. package/dist/src/layouts/panels/TabBar/types.d.ts.map +0 -1
  36. package/dist/src/layouts/panels/TabBar/useTabBarAdaptiveLayout.d.ts.map +0 -1
  37. package/dist/src/util/useKdsLegacyMode.d.ts +0 -5
  38. package/dist/src/util/useKdsLegacyMode.d.ts.map +0 -1
  39. /package/dist/src/layouts/panels/{TabBar → TabPanel/TabBar}/enums.d.ts +0 -0
  40. /package/dist/src/layouts/panels/{TabBar → TabPanel/TabBar}/index.d.ts +0 -0
  41. /package/dist/src/layouts/panels/{TabBar → TabPanel/TabBar}/useTabBarAdaptiveLayout.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 356af93: Remove the KDS legacy mode. `useKdsDarkMode` now defaults to the OS system preference (`system`) instead of `light` — the API is unchanged, only the default for users without a stored preference.
8
+
9
+ BREAKING CHANGES:
10
+
11
+ - `useKdsLegacyMode`: removed. The composable and the `kds-legacy` class it toggled no longer exist — remove any usage of the composable and of the `kds-legacy` class.
12
+
13
+ ### Minor Changes
14
+
15
+ - e366f77: Add `KdsTabPanel` component with `KdsTabBar` trailing-actions slot
16
+
17
+ ### Patch Changes
18
+
19
+ - e26e15d: - `KdsLink`: render external URLs (protocol-relative `//…`, `mailto:`, `tel:`, absolute HTTP(S), etc.) as a plain `<a>` element even when a router (`RouterLink` / `NuxtLink`) is registered. Internal routes still use the router as before.
20
+ - `KdsLinkButton`: same fix — external `to` now renders as `<a>` instead of routing through the registered router.
21
+ - `KdsLinkCard`: same fix — external `to` now renders as `<a>` instead of routing through the registered router.
22
+ - `KdsNavItem`: same fix — external `to` now renders as `<a>` instead of routing through the registered router.
23
+ - `KdsBreadcrumb`: same fix — breadcrumb items with an external `to` now render as `<a>` instead of routing through the registered router.
24
+ - `KdsMenuContainer`: same fix — menu items with an external `to` now render as `<a>` instead of routing through the registered router.
25
+ - Updated dependencies [13cbb42]
26
+ - Updated dependencies [356af93]
27
+ - @knime/kds-styles@3.0.0
28
+
29
+ ## 2.9.0
30
+
31
+ ### Minor Changes
32
+
33
+ - 216447a: - **KdsDataType**: Derive tooltip title from icon name when no `iconTitle` prop is passed (e.g. `string-datatype` → "String Datatype"), instead of defaulting to "Unknown Data Type"
34
+ - **vKdsTooltip CSS**: Add horizontal `position-try-fallbacks` (`top-left`, `top-right`, `bottom-left`, `bottom-right`) so tooltips shift horizontally when centered positioning would overflow the viewport edge
35
+ - **vKdsTooltip stories**: Add `NearScreenEdge` story demonstrating edge-overflow fallback behavior
36
+
37
+ ### Patch Changes
38
+
39
+ - @knime/kds-styles@2.9.0
40
+
3
41
  ## 2.8.2
4
42
 
5
43
  ### Patch Changes
package/dist/KdsIcon.css CHANGED
@@ -6,7 +6,9 @@
6
6
  margin: var(--kds-spacing-container-0-25x) 0
7
7
  var(--kds-spacing-container-0-25x) 0;
8
8
  position-try-fallbacks:
9
- --kds-tooltip-try-bottom-center, --kds-tooltip-try-top-center;
9
+ --kds-tooltip-try-bottom-center, --kds-tooltip-try-top-left,
10
+ --kds-tooltip-try-top-right, --kds-tooltip-try-bottom-left,
11
+ --kds-tooltip-try-bottom-right;
10
12
  font: var(--kds-font-base-subtext-small);
11
13
  color: var(--kds-color-tooltip-text-and-icon-neutral);
12
14
  overflow-wrap: anywhere;
@@ -19,15 +21,45 @@
19
21
 
20
22
  @position-try --kds-tooltip-try-top-center {
21
23
  inset: auto auto anchor(top);
24
+ justify-self: anchor-center;
22
25
  margin: var(--kds-spacing-container-0-25x) 0
23
26
  var(--kds-spacing-container-0-25x) 0;
24
27
  }
25
28
 
26
29
  @position-try --kds-tooltip-try-bottom-center {
27
30
  inset: anchor(bottom) auto auto;
31
+ justify-self: anchor-center;
32
+ margin: var(--kds-spacing-container-0-25x) 0
33
+ var(--kds-spacing-container-0-25x) 0;
34
+ }
35
+
36
+ @position-try --kds-tooltip-try-top-left {
37
+ inset: auto auto anchor(top) anchor(left);
38
+ justify-self: anchor-right;
39
+ margin: var(--kds-spacing-container-0-25x) var(--kds-spacing-container-0-25x)
40
+ var(--kds-spacing-container-0-25x) 0;
41
+ }
42
+
43
+ @position-try --kds-tooltip-try-top-right {
44
+ inset: auto anchor(right) anchor(top) auto;
45
+ justify-self: anchor-left;
28
46
  margin: var(--kds-spacing-container-0-25x) 0
47
+ var(--kds-spacing-container-0-25x) var(--kds-spacing-container-0-25x);
48
+ }
49
+
50
+ @position-try --kds-tooltip-try-bottom-left {
51
+ inset: anchor(bottom) auto auto anchor(left);
52
+ justify-self: anchor-right;
53
+ margin: var(--kds-spacing-container-0-25x) var(--kds-spacing-container-0-25x)
29
54
  var(--kds-spacing-container-0-25x) 0;
30
55
  }
56
+
57
+ @position-try --kds-tooltip-try-bottom-right {
58
+ inset: anchor(bottom) anchor(right) auto auto;
59
+ justify-self: anchor-left;
60
+ margin: var(--kds-spacing-container-0-25x) 0
61
+ var(--kds-spacing-container-0-25x) var(--kds-spacing-container-0-25x);
62
+ }
31
63
  .kds-icon {
32
64
  &[data-v-c1a42494] {
33
65
  --icon-width: var(--kds-dimension-icon-1x);