@db-ux/v-core-components 2.4.4 → 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 (50) hide show
  1. package/dist/components/accordion/accordion.vue.d.ts +1 -1
  2. package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -1
  3. package/dist/components/badge/badge.vue.d.ts +1 -1
  4. package/dist/components/brand/brand.vue.d.ts +1 -1
  5. package/dist/components/button/button.vue.d.ts +5 -6
  6. package/dist/components/button/model.d.ts +6 -22
  7. package/dist/components/card/card.vue.d.ts +1 -1
  8. package/dist/components/checkbox/checkbox.vue.d.ts +1 -1
  9. package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
  10. package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +1 -1
  11. package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +1 -1
  12. package/dist/components/custom-select-list/custom-select-list.vue.d.ts +1 -1
  13. package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +1 -1
  14. package/dist/components/custom-select-list-item/model.d.ts +1 -1
  15. package/dist/components/divider/divider.vue.d.ts +1 -1
  16. package/dist/components/drawer/drawer.vue.d.ts +1 -1
  17. package/dist/components/header/header.vue.d.ts +1 -1
  18. package/dist/components/icon/icon.vue.d.ts +1 -1
  19. package/dist/components/infotext/infotext.vue.d.ts +1 -1
  20. package/dist/components/input/input.vue.d.ts +7 -3
  21. package/dist/components/input/model.d.ts +6 -2
  22. package/dist/components/link/link.vue.d.ts +3 -5
  23. package/dist/components/link/model.d.ts +3 -3
  24. package/dist/components/navigation/model.d.ts +2 -2
  25. package/dist/components/navigation/navigation.vue.d.ts +1 -3
  26. package/dist/components/navigation-item/model.d.ts +2 -6
  27. package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -2
  28. package/dist/components/notification/notification.vue.d.ts +1 -1
  29. package/dist/components/page/page.vue.d.ts +1 -1
  30. package/dist/components/popover/popover.vue.d.ts +1 -1
  31. package/dist/components/radio/radio.vue.d.ts +1 -3
  32. package/dist/components/section/section.vue.d.ts +1 -1
  33. package/dist/components/select/select.vue.d.ts +1 -1
  34. package/dist/components/stack/stack.vue.d.ts +1 -1
  35. package/dist/components/switch/model.d.ts +2 -2
  36. package/dist/components/switch/switch.vue.d.ts +3 -4
  37. package/dist/components/tab-item/model.d.ts +2 -2
  38. package/dist/components/tab-item/tab-item.vue.d.ts +5 -3
  39. package/dist/components/tab-list/tab-list.vue.d.ts +1 -1
  40. package/dist/components/tab-panel/model.d.ts +2 -2
  41. package/dist/components/tab-panel/tab-panel.vue.d.ts +1 -2
  42. package/dist/components/tabs/tabs.vue.d.ts +1 -1
  43. package/dist/components/tag/model.d.ts +2 -6
  44. package/dist/components/tag/tag.vue.d.ts +1 -2
  45. package/dist/components/textarea/textarea.vue.d.ts +1 -1
  46. package/dist/components/tooltip/tooltip.vue.d.ts +1 -1
  47. package/dist/db-ux.es.js +1428 -1489
  48. package/dist/db-ux.umd.js +1 -1
  49. package/dist/shared/model.d.ts +28 -27
  50. package/package.json +4 -4
@@ -12,11 +12,6 @@ export type GlobalProps = {
12
12
  * Workaround for TypeScript using class for all components.
13
13
  */
14
14
  class?: string | any;
15
- /**
16
- * @deprecated
17
- * [`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby) is used to link to the elements that describe the element with the set attribute.
18
- */
19
- describedbyid?: string;
20
15
  /**
21
16
  * [ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.
22
17
  */
@@ -50,11 +45,31 @@ export type ShowIconProps = {
50
45
  */
51
46
  showIcon?: boolean | string;
52
47
  };
53
- export type IconAfterProps = {
48
+ export type ShowIconLeadingProps = {
49
+ /**
50
+ * Enables or disables the visibility of the leading icon.
51
+ * For many components this property is optional to reflect Figma properties.
52
+ */
53
+ showIconLeading?: boolean | string;
54
+ };
55
+ export type ShowIconTrailingProps = {
56
+ /**
57
+ * Enables or disables the visibility of the trailing icon.
58
+ * For many components this property is optional to reflect Figma properties.
59
+ */
60
+ showIconTrailing?: boolean | string;
61
+ };
62
+ export type IconLeadingProps = {
63
+ /**
64
+ * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
65
+ */
66
+ iconLeading?: IconTypes;
67
+ };
68
+ export type IconTrailingProps = {
54
69
  /**
55
70
  * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
56
71
  */
57
- iconAfter?: IconTypes;
72
+ iconTrailing?: IconTypes;
58
73
  };
59
74
  export declare const SpacingList: readonly ["medium", "small", "large", "none"];
60
75
  export type SpacingType = (typeof SpacingList)[number];
@@ -107,6 +122,12 @@ export type OverflowProps = {
107
122
  */
108
123
  overflow?: boolean | string;
109
124
  };
125
+ export type WrapProps = {
126
+ /**
127
+ * Determines whether the text should wrap when its parent container is too small, preventing overflow.
128
+ */
129
+ wrap?: boolean | string;
130
+ };
110
131
  export declare const OrientationList: readonly ["horizontal", "vertical"];
111
132
  export type OrientationType = (typeof OrientationList)[number];
112
133
  export type OrientationProps = {
@@ -345,17 +366,11 @@ export type FormState = {
345
366
  export type InitializedState = {
346
367
  initialized: boolean;
347
368
  };
348
- export declare const LinkCurrentList: readonly ["time", "true", "false", "date", "page", "step", "location"];
349
- export type LinkCurrentType = (typeof LinkCurrentList)[number];
350
369
  export declare const LinkTargetList: readonly ["_self", "_blank", "_parent", "_top"];
351
370
  export type LinkTargetType = (typeof LinkTargetList)[number];
352
371
  export declare const LinkReferrerPolicyList: readonly ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"];
353
372
  export type LinkReferrerPolicyType = (typeof LinkReferrerPolicyList)[number];
354
373
  export type LinkProps = {
355
- /**
356
- * Sets aria attribute based on [`aria-current`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current).
357
- */
358
- current?: boolean | LinkCurrentType;
359
374
  /**
360
375
  * Disables the link.
361
376
  */
@@ -368,10 +383,6 @@ export type LinkProps = {
368
383
  * Hints for the human [language of the linked page or document](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#hreflang).
369
384
  */
370
385
  hreflang?: string;
371
- /**
372
- * Sets aria attribute based on [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label).
373
- */
374
- label?: string;
375
386
  /**
376
387
  * Where to open the linked URL, as the name for a [browsing context](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).
377
388
  */
@@ -388,10 +399,6 @@ export type LinkProps = {
388
399
  * How much of the referrer to send when following the link.
389
400
  */
390
401
  referrerpolicy?: LinkReferrerPolicyType;
391
- /**
392
- * Sets aria role based on [`aria-selected`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected).
393
- */
394
- selected?: boolean | string;
395
402
  };
396
403
  export type TextProps = {
397
404
  /**
@@ -492,12 +499,6 @@ export type NavigationBackButtonProps = {
492
499
  */
493
500
  backButtonText?: string;
494
501
  };
495
- export type AriaLabelledByProps = {
496
- /**
497
- * Pass `aria-labelledby` to inner element
498
- */
499
- labelledBy?: string;
500
- };
501
502
  export type AriaControlsProps = {
502
503
  /**
503
504
  * Pass `aria-controls` to inner element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/v-core-components",
3
- "version": "2.4.4",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "description": "Vue components for @db-ux/core-components",
6
6
  "repository": {
@@ -44,7 +44,7 @@
44
44
  "typescript": "^5.8.3",
45
45
  "vite": "^6.3.5",
46
46
  "vue": "^3.5.17",
47
- "vue-tsc": "^3.0.1"
47
+ "vue-tsc": "^3.0.3"
48
48
  },
49
49
  "publishConfig": {
50
50
  "registry": "https://registry.npmjs.org/",
@@ -53,7 +53,7 @@
53
53
  "sideEffects": false,
54
54
  "source": "src/index.ts",
55
55
  "dependencies": {
56
- "@db-ux/core-components": "2.4.4",
57
- "@db-ux/core-foundations": "2.4.4"
56
+ "@db-ux/core-components": "3.0.0",
57
+ "@db-ux/core-foundations": "3.0.0"
58
58
  }
59
59
  }