@porsche-design-system/components-vue 3.0.0-alpha.2 → 3.0.0-alpha.3

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 (56) hide show
  1. package/CHANGELOG.md +302 -0
  2. package/lib/components/AccordionWrapper.vue.d.ts +3 -0
  3. package/lib/components/AccordionWrapper.vue.js +13 -13
  4. package/lib/components/BannerWrapper.vue.d.ts +28 -0
  5. package/lib/components/BannerWrapper.vue.js +11 -9
  6. package/lib/components/ButtonPureWrapper.vue.d.ts +11 -11
  7. package/lib/components/ButtonWrapper.vue.d.ts +5 -5
  8. package/lib/components/CarouselWrapper.vue.d.ts +16 -5
  9. package/lib/components/CarouselWrapper.vue.js +14 -13
  10. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
  11. package/lib/components/DisplayWrapper.vue.d.ts +2 -2
  12. package/lib/components/DividerWrapper.vue.d.ts +14 -6
  13. package/lib/components/DividerWrapper.vue.js +11 -10
  14. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +2 -2
  15. package/lib/components/GridItemWrapper.vue.d.ts +4 -4
  16. package/lib/components/HeadingWrapper.vue.d.ts +2 -2
  17. package/lib/components/IconWrapper.vue.d.ts +4 -4
  18. package/lib/components/InlineNotificationWrapper.vue.d.ts +3 -3
  19. package/lib/components/LinkPureWrapper.vue.d.ts +10 -10
  20. package/lib/components/LinkSocialWrapper.vue.d.ts +5 -5
  21. package/lib/components/LinkTileWrapper.vue.d.ts +4 -4
  22. package/lib/components/LinkTileWrapper.vue.js +1 -1
  23. package/lib/components/LinkWrapper.vue.d.ts +4 -4
  24. package/lib/components/MarqueWrapper.vue.d.ts +2 -2
  25. package/lib/components/ModalWrapper.vue.d.ts +16 -5
  26. package/lib/components/ModalWrapper.vue.js +13 -12
  27. package/lib/components/PaginationWrapper.vue.d.ts +38 -26
  28. package/lib/components/PaginationWrapper.vue.js +17 -16
  29. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +2 -2
  30. package/lib/components/ScrollerWrapper.vue.d.ts +27 -11
  31. package/lib/components/ScrollerWrapper.vue.js +15 -13
  32. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -2
  33. package/lib/components/SegmentedControlWrapper.vue.d.ts +5 -2
  34. package/lib/components/SegmentedControlWrapper.vue.js +12 -12
  35. package/lib/components/SelectWrapperWrapper.vue.d.ts +4 -4
  36. package/lib/components/StepperHorizontalWrapper.vue.d.ts +6 -3
  37. package/lib/components/StepperHorizontalWrapper.vue.js +13 -13
  38. package/lib/components/SwitchWrapper.vue.d.ts +6 -3
  39. package/lib/components/SwitchWrapper.vue.js +13 -13
  40. package/lib/components/TableWrapper.vue.d.ts +3 -0
  41. package/lib/components/TableWrapper.vue.js +10 -10
  42. package/lib/components/TabsBarWrapper.vue.d.ts +21 -10
  43. package/lib/components/TabsBarWrapper.vue.js +15 -14
  44. package/lib/components/TabsWrapper.vue.d.ts +21 -10
  45. package/lib/components/TabsWrapper.vue.js +15 -14
  46. package/lib/components/TagDismissibleWrapper.vue.d.ts +2 -2
  47. package/lib/components/TagWrapper.vue.d.ts +2 -2
  48. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +16 -8
  49. package/lib/components/TextFieldWrapperWrapper.vue.js +7 -6
  50. package/lib/components/TextListWrapper.vue.d.ts +16 -11
  51. package/lib/components/TextListWrapper.vue.js +11 -10
  52. package/lib/components/TextWrapper.vue.d.ts +2 -2
  53. package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
  54. package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
  55. package/lib/types.d.ts +95 -30
  56. package/package.json +2 -2
package/lib/types.d.ts CHANGED
@@ -209,12 +209,18 @@ export declare type BreakpointValues<T> = {
209
209
  base: T;
210
210
  };
211
211
  export declare type BreakpointCustomizable<T> = T | BreakpointValues<T>;
212
- declare const GRADIENT_COLOR_THEMES: readonly [
212
+ declare const GRADIENT_COLOR_SCHEMES: readonly [
213
213
  "default",
214
214
  "surface"
215
215
  ];
216
- export declare type GradientColorTheme = typeof GRADIENT_COLOR_THEMES[number];
217
- export declare type ScrollToPosition = {
216
+ /** @deprecated */
217
+ export declare type ScrollerGradientColorScheme = typeof GRADIENT_COLOR_SCHEMES[number];
218
+ declare const GRADIENT_COLORS: readonly [
219
+ "background-base",
220
+ "background-surface"
221
+ ];
222
+ export declare type ScrollerGradientColor = typeof GRADIENT_COLORS[number];
223
+ export declare type ScrollerScrollToPosition = {
218
224
  scrollPosition: number;
219
225
  isSmooth?: boolean;
220
226
  } | string;
@@ -222,7 +228,9 @@ declare const SCROLL_INDICATOR_POSITIONS: readonly [
222
228
  "top",
223
229
  "center"
224
230
  ];
225
- export declare type ScrollIndicatorPosition = typeof SCROLL_INDICATOR_POSITIONS[number];
231
+ /** @deprecated */
232
+ export declare type ScrollerScrollIndicatorPosition = typeof SCROLL_INDICATOR_POSITIONS[number];
233
+ export declare type ScrollerAlignScrollIndicator = ScrollerScrollIndicatorPosition;
226
234
  declare const THEMES: readonly [
227
235
  "light",
228
236
  "dark"
@@ -279,6 +287,7 @@ declare const TEXT_COLORS: readonly [
279
287
  ];
280
288
  export declare type TextColor = typeof TEXT_COLORS[number];
281
289
  declare const TEXT_SIZES: readonly [
290
+ "xx-small",
282
291
  "x-small",
283
292
  "small",
284
293
  "medium",
@@ -515,11 +524,18 @@ declare const BANNER_WIDTHS: readonly [
515
524
  "fluid"
516
525
  ];
517
526
  export declare type BannerWidth = typeof BANNER_WIDTHS[number];
527
+ export declare type ButtonIcon = LinkButtonIconName;
518
528
  declare const BUTTON_GROUP_DIRECTIONS: readonly [
519
529
  "row",
520
530
  "column"
521
531
  ];
522
532
  export declare type ButtonGroupDirection = typeof BUTTON_GROUP_DIRECTIONS[number];
533
+ export declare type ButtonPureType = ButtonType;
534
+ export declare type ButtonPureIcon = LinkButtonIconName;
535
+ export declare type ButtonPureAriaAttribute = ButtonAriaAttribute;
536
+ export declare type ButtonPureAlignLabel = AlignLabel;
537
+ export declare type ButtonPureWeight = TextWeight;
538
+ export declare type ButtonPureSize = TextSize;
523
539
  declare const CAROUSEL_WIDTHS: readonly [
524
540
  "basic",
525
541
  "extended"
@@ -535,6 +551,7 @@ export declare type CarouselChangeEvent = {
535
551
  activeIndex: number;
536
552
  previousIndex: number;
537
553
  };
554
+ export declare type CheckboxWrapperState = FormState;
538
555
  declare const CONTENT_WRAPPER_BACKGROUND_COLORS: readonly [
539
556
  "transparent",
540
557
  "default"
@@ -558,6 +575,7 @@ declare const DISPLAY_TAGS: readonly [
558
575
  ];
559
576
  export declare type DisplayTag = typeof DISPLAY_TAGS[number];
560
577
  declare const DISPLAY_SIZES: readonly [
578
+ "small",
561
579
  "medium",
562
580
  "large",
563
581
  "inherit"
@@ -578,16 +596,18 @@ declare const DIVIDER_COLORS: readonly [
578
596
  "neutral-contrast-low"
579
597
  ];
580
598
  export declare type DividerColor = typeof DIVIDER_COLORS[number];
581
- declare const DIVIDER_ORIENTATIONS: readonly [
599
+ declare const DIVIDER_DIRECTIONS: readonly [
582
600
  "vertical",
583
601
  "horizontal"
584
602
  ];
585
- export declare type DividerOrientation = typeof DIVIDER_ORIENTATIONS[number];
603
+ export declare type DividerDirection = typeof DIVIDER_DIRECTIONS[number];
604
+ export declare type DividerOrientation = DividerDirection;
586
605
  declare const FIELDSET_WRAPPER_LABEL_SIZES: readonly [
587
606
  "small",
588
607
  "medium"
589
608
  ];
590
609
  export declare type FieldsetWrapperLabelSize = typeof FIELDSET_WRAPPER_LABEL_SIZES[number];
610
+ export declare type FieldsetWrapperState = FormState;
591
611
  export declare type FlexInline = boolean;
592
612
  declare const FLEX_WRAPS: readonly [
593
613
  "nowrap",
@@ -728,7 +748,6 @@ declare const HEADING_SIZES: readonly [
728
748
  "large",
729
749
  "x-large",
730
750
  "xx-large",
731
- "xxx-large",
732
751
  "inherit"
733
752
  ];
734
753
  export declare type HeadingSize = typeof HEADING_SIZES[number];
@@ -786,7 +805,7 @@ declare const ICON_COLORS: readonly [
786
805
  "neutral-contrast-medium",
787
806
  "neutral-contrast-high",
788
807
  "notification-neutral",
789
- "disabled"
808
+ "state-disabled"
790
809
  ];
791
810
  export declare type IconColor = typeof ICON_COLORS[number];
792
811
  declare const INLINE_NOTIFICATION_STATES: readonly [
@@ -797,13 +816,23 @@ declare const INLINE_NOTIFICATION_STATES: readonly [
797
816
  "neutral"
798
817
  ];
799
818
  export declare type InlineNotificationState = typeof INLINE_NOTIFICATION_STATES[number];
819
+ export declare type InlineNotificationActionIcon = IconName;
800
820
  declare const LINK_ARIA_ATTRIBUTES: readonly [
801
821
  "aria-label"
802
822
  ];
803
823
  export declare type LinkAriaAttribute = typeof LINK_ARIA_ATTRIBUTES[number];
804
- export declare type SocialIconName = Extract<IconName, "logo-facebook" | "logo-google" | "logo-instagram" | "logo-linkedin" | "logo-pinterest" | "logo-twitter" | "logo-wechat" | "logo-whatsapp" | "logo-xing" | "logo-youtube" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-foursquare" | "logo-gmail" | "logo-hatena" | "logo-kaixin" | "logo-kakaotalk" | "logo-naver" | "logo-qq-share" | "logo-qq" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-viber" | "logo-vk" | "logo-weibo" | "logo-yahoo" | "logo-youku">;
824
+ export declare type LinkIcon = LinkButtonIconName;
825
+ export declare type LinkPureIcon = LinkButtonIconName;
826
+ export declare type LinkPureAriaAttribute = LinkAriaAttribute;
827
+ export declare type LinkPureAlignLabel = AlignLabel;
828
+ export declare type LinkPureWeight = TextWeight;
829
+ export declare type LinkPureSize = TextSize;
830
+ export declare type LinkPureTarget = LinkTarget;
831
+ export declare type LinkSocialIcon = Extract<IconName, "logo-facebook" | "logo-google" | "logo-instagram" | "logo-linkedin" | "logo-pinterest" | "logo-twitter" | "logo-wechat" | "logo-whatsapp" | "logo-xing" | "logo-youtube" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-foursquare" | "logo-gmail" | "logo-hatena" | "logo-kaixin" | "logo-kakaotalk" | "logo-naver" | "logo-qq-share" | "logo-qq" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-viber" | "logo-vk" | "logo-weibo" | "logo-yahoo" | "logo-youku">;
832
+ export declare type LinkSocialTarget = LinkTarget;
805
833
  declare const LINK_TILE_WEIGHTS: readonly [
806
834
  "regular",
835
+ "semi-bold",
807
836
  "semibold"
808
837
  ];
809
838
  export declare type LinkTileWeight = typeof LINK_TILE_WEIGHTS[number];
@@ -825,12 +854,15 @@ declare const LINK_TILE_ASPECT_RATIOS: readonly [
825
854
  "9:16"
826
855
  ];
827
856
  export declare type LinkTileAspectRatio = typeof LINK_TILE_ASPECT_RATIOS[number];
857
+ export declare type LinkTileTarget = LinkTarget;
858
+ export declare type LinkTileAriaAttribute = LinkAriaAttribute;
828
859
  declare const MARQUE_SIZES: readonly [
829
860
  "responsive",
830
861
  "small",
831
862
  "medium"
832
863
  ];
833
864
  export declare type MarqueSize = typeof MARQUE_SIZES[number];
865
+ export declare type MarqueTarget = LinkTarget;
834
866
  declare const MARQUE_ARIA_ATTRIBUTES: readonly [
835
867
  "aria-label"
836
868
  ];
@@ -838,7 +870,7 @@ export declare type MarqueAriaAttribute = typeof MARQUE_ARIA_ATTRIBUTES[number];
838
870
  declare const MODAL_ARIA_ATTRIBUTES: readonly [
839
871
  "aria-label"
840
872
  ];
841
- export declare type ModalAriaAttribute = typeof MODAL_ARIA_ATTRIBUTES[number];
873
+ export declare type ModalAriaAttribute = (typeof MODAL_ARIA_ATTRIBUTES)[number];
842
874
  declare const MODEL_SIGNATURES_MANIFEST: {
843
875
  "718": string;
844
876
  "911": string;
@@ -869,11 +901,12 @@ declare const PAGINATION_NUMBER_OF_PAGE_LINKS: readonly [
869
901
  5,
870
902
  7
871
903
  ];
872
- export declare type NumberOfPageLinks = typeof PAGINATION_NUMBER_OF_PAGE_LINKS[number];
873
- export declare type PageChangeEvent = {
904
+ export declare type PaginationMaxNumberOfPageLinks = typeof PAGINATION_NUMBER_OF_PAGE_LINKS[number];
905
+ export declare type PaginationChangeEvent = {
874
906
  page: number;
875
907
  previousPage: number;
876
908
  };
909
+ export declare type PaginationInternationalization = Partial<Record<"root" | "prev" | "next" | "page", string>>;
877
910
  declare const POPOVER_DIRECTIONS: readonly [
878
911
  "top",
879
912
  "right",
@@ -881,6 +914,11 @@ declare const POPOVER_DIRECTIONS: readonly [
881
914
  "left"
882
915
  ];
883
916
  export declare type PopoverDirection = typeof POPOVER_DIRECTIONS[number];
917
+ declare const POPOVER_ARIA_ATTRIBUTES: readonly [
918
+ "aria-label"
919
+ ];
920
+ export declare type PopoverAriaAttribute = typeof POPOVER_ARIA_ATTRIBUTES[number];
921
+ export declare type RadioButtonWrapperState = FormState;
884
922
  declare const SEGMENTED_CONTROL_BACKGROUND_COLORS: readonly [
885
923
  "background-surface",
886
924
  "background-default"
@@ -889,12 +927,14 @@ export declare type SegmentedControlBackgroundColor = typeof SEGMENTED_CONTROL_B
889
927
  export declare type SegmentedControlChangeEvent = {
890
928
  value: string | number;
891
929
  };
930
+ export declare type SegmentedControlItemIcon = LinkButtonIconName;
892
931
  declare const DROPDOWN_DIRECTIONS: readonly [
893
932
  "down",
894
933
  "up",
895
934
  "auto"
896
935
  ];
897
- export declare type DropdownDirection = typeof DROPDOWN_DIRECTIONS[number];
936
+ export declare type SelectWrapperDropdownDirection = typeof DROPDOWN_DIRECTIONS[number];
937
+ export declare type SelectWrapperState = FormState;
898
938
  declare const SPINNER_SIZES: readonly [
899
939
  "small",
900
940
  "medium",
@@ -911,7 +951,7 @@ declare const STEPPER_HORIZONTAL_SIZES: readonly [
911
951
  "medium"
912
952
  ];
913
953
  export declare type StepperHorizontalSize = typeof STEPPER_HORIZONTAL_SIZES[number];
914
- export declare type StepChangeEvent = {
954
+ export declare type StepperHorizontalChangeEvent = {
915
955
  activeStepIndex: number;
916
956
  };
917
957
  declare const STEPPER_ITEM_STATES: readonly [
@@ -919,7 +959,8 @@ declare const STEPPER_ITEM_STATES: readonly [
919
959
  "complete",
920
960
  "warning"
921
961
  ];
922
- export declare type StepperState = typeof STEPPER_ITEM_STATES[number];
962
+ export declare type StepperHorizontalItemState = typeof STEPPER_ITEM_STATES[number];
963
+ export declare type SwitchAlignLabel = AlignLabel;
923
964
  export declare type SwitchChangeEvent = {
924
965
  checked: boolean;
925
966
  };
@@ -929,24 +970,33 @@ export declare type TableHeadCellSort = {
929
970
  active?: boolean;
930
971
  direction?: Direction;
931
972
  };
932
- export declare type SortingChangeEvent = TableHeadCellSort;
933
- declare const TAB_SIZES: readonly [
973
+ export declare type TableChangeEvent = TableHeadCellSort;
974
+ declare const TABS_BAR_SIZES: readonly [
934
975
  "small",
935
976
  "medium"
936
977
  ];
937
- export declare type TabSize = typeof TAB_SIZES[number];
938
- declare const TAB_WEIGHTS: readonly [
978
+ export declare type TabsBarSize = typeof TABS_BAR_SIZES[number];
979
+ declare const TABS_BAR_WEIGHTS: readonly [
939
980
  "regular",
981
+ "semi-bold",
940
982
  "semibold"
941
983
  ];
942
- export declare type TabWeight = typeof TAB_WEIGHTS[number];
943
- export declare type TabChangeEvent = {
984
+ export declare type TabsBarWeight = typeof TABS_BAR_WEIGHTS[number];
985
+ export declare type TabsBarChangeEvent = {
944
986
  activeTabIndex: number;
945
987
  };
946
- export declare type TabGradientColorTheme = GradientColorTheme;
988
+ /** @deprecated */
989
+ export declare type TabsBarGradientColorScheme = ScrollerGradientColorScheme;
990
+ export declare type TabsBarGradientColor = ScrollerGradientColor;
991
+ export declare type TabsSize = TabsBarSize;
992
+ export declare type TabsWeight = TabsBarWeight;
993
+ /** @deprecated */
994
+ export declare type TabsGradientColorScheme = TabsBarGradientColorScheme;
995
+ export declare type TabsGradientColor = TabsBarGradientColor;
996
+ export declare type TabsChangeEvent = TabsBarChangeEvent;
947
997
  declare const TAG_DISMISSIBLE_COLORS: readonly [
948
- "background-surface",
949
998
  "background-base",
999
+ "background-surface",
950
1000
  "background-default"
951
1001
  ];
952
1002
  export declare type TagDismissibleColor = typeof TAG_DISMISSIBLE_COLORS[number];
@@ -954,17 +1004,21 @@ declare const TAG_DISMISSIBLE_ARIA_ATTRIBUTES: readonly [
954
1004
  "aria-label"
955
1005
  ];
956
1006
  export declare type TagDismissibleAriaAttribute = typeof TAG_DISMISSIBLE_ARIA_ATTRIBUTES[number];
1007
+ export declare type TagIcon = IconName;
957
1008
  declare const TAG_COLORS: readonly [
958
- "background-surface",
959
1009
  "background-base",
1010
+ "background-surface",
960
1011
  "background-default",
961
1012
  "primary",
962
- "notification-info",
1013
+ "notification-info-soft",
1014
+ "notification-warning-soft",
1015
+ "notification-success-soft",
1016
+ "notification-error-soft",
1017
+ "neutral-contrast-high",
1018
+ "notification-neutral",
963
1019
  "notification-warning",
964
1020
  "notification-success",
965
- "notification-error",
966
- "neutral-contrast-high",
967
- "notification-neutral"
1021
+ "notification-error"
968
1022
  ];
969
1023
  export declare type TagColor = typeof TAG_COLORS[number];
970
1024
  declare const TEXT_TAGS: readonly [
@@ -984,16 +1038,27 @@ declare const UNIT_POSITIONS: readonly [
984
1038
  "suffix"
985
1039
  ];
986
1040
  export declare type TextFieldWrapperUnitPosition = typeof UNIT_POSITIONS[number];
1041
+ export declare type TextFieldWrapperActionIcon = Extract<IconName, "locate">;
1042
+ export declare type TextFieldWrapperState = FormState;
987
1043
  declare const LIST_TYPES: readonly [
988
1044
  "unordered",
989
1045
  "ordered"
990
1046
  ];
991
- export declare type ListType = typeof LIST_TYPES[number];
1047
+ /** @deprecated */
1048
+ export declare type TextListListType = typeof LIST_TYPES[number];
992
1049
  declare const ORDER_TYPES: readonly [
993
1050
  "numbered",
994
1051
  "alphabetically"
995
1052
  ];
996
- export declare type OrderType = typeof ORDER_TYPES[number];
1053
+ /** @deprecated */
1054
+ export declare type TextListOrderType = typeof ORDER_TYPES[number];
1055
+ declare const TEXT_LIST_TYPES: readonly [
1056
+ "unordered",
1057
+ "numbered",
1058
+ "alphabetically"
1059
+ ];
1060
+ export declare type TextListType = typeof TEXT_LIST_TYPES[number];
1061
+ export declare type TextareaWrapperState = FormState;
997
1062
  declare const TOAST_STATES: readonly [
998
1063
  "info",
999
1064
  "success",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
5
5
  "keywords": [
6
6
  "porsche",
@@ -17,7 +17,7 @@
17
17
  "license": "SEE LICENSE IN LICENSE",
18
18
  "homepage": "https://designsystem.porsche.com",
19
19
  "dependencies": {
20
- "@porsche-design-system/components-js": "3.0.0-alpha.2"
20
+ "@porsche-design-system/components-js": "3.0.0-alpha.3"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"