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

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.
package/lib/types.d.ts CHANGED
@@ -262,20 +262,20 @@ declare const TEXT_ALIGNS: readonly [
262
262
  export declare type TextAlign = typeof TEXT_ALIGNS[number];
263
263
  declare const TEXT_COLORS: readonly [
264
264
  "primary",
265
- "brand",
266
- "default",
267
265
  "contrast-low",
268
- "neutral-contrast-low",
269
266
  "contrast-medium",
270
- "neutral-contrast-medium",
271
267
  "contrast-high",
272
- "neutral-contrast-high",
273
268
  "notification-success",
274
269
  "notification-warning",
275
270
  "notification-error",
276
271
  "notification-info",
277
- "notification-neutral",
278
- "inherit"
272
+ "inherit",
273
+ "brand",
274
+ "default",
275
+ "neutral-contrast-low",
276
+ "neutral-contrast-medium",
277
+ "neutral-contrast-high",
278
+ "notification-neutral"
279
279
  ];
280
280
  export declare type TextColor = typeof TEXT_COLORS[number];
281
281
  declare const TEXT_SIZES: readonly [
@@ -288,11 +288,11 @@ declare const TEXT_SIZES: readonly [
288
288
  ];
289
289
  export declare type TextSize = typeof TEXT_SIZES[number];
290
290
  declare const TEXT_WEIGHTS: readonly [
291
- "thin",
292
291
  "regular",
293
- "semibold",
294
292
  "semi-bold",
295
- "bold"
293
+ "bold",
294
+ "thin",
295
+ "semibold"
296
296
  ];
297
297
  export declare type TextWeight = typeof TEXT_WEIGHTS[number];
298
298
  declare const LINK_TARGETS: readonly [
@@ -503,15 +503,15 @@ export declare type AccordionChangeEvent = {
503
503
  };
504
504
  export declare type AccordionTag = HeadingTag;
505
505
  declare const BANNER_STATES: readonly [
506
- "error",
507
- "warning",
508
506
  "info",
507
+ "warning",
508
+ "error",
509
509
  "neutral"
510
510
  ];
511
511
  export declare type BannerState = typeof BANNER_STATES[number];
512
512
  declare const BANNER_WIDTHS: readonly [
513
- "basic",
514
513
  "extended",
514
+ "basic",
515
515
  "fluid"
516
516
  ];
517
517
  export declare type BannerWidth = typeof BANNER_WIDTHS[number];
@@ -520,6 +520,16 @@ declare const BUTTON_GROUP_DIRECTIONS: readonly [
520
520
  "column"
521
521
  ];
522
522
  export declare type ButtonGroupDirection = typeof BUTTON_GROUP_DIRECTIONS[number];
523
+ declare const CAROUSEL_WIDTHS: readonly [
524
+ "basic",
525
+ "extended"
526
+ ];
527
+ export declare type CarouselWidth = typeof CAROUSEL_WIDTHS[number];
528
+ declare const CAROUSEL_ALIGN_HEADERS: readonly [
529
+ "left",
530
+ "center"
531
+ ];
532
+ export declare type CarouselAlignHeader = typeof CAROUSEL_ALIGN_HEADERS[number];
523
533
  export declare type CarouselInternationalization = Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
524
534
  export declare type CarouselChangeEvent = {
525
535
  activeIndex: number;
@@ -560,6 +570,9 @@ declare const DISPLAY_COLORS: readonly [
560
570
  export declare type DisplayColor = typeof DISPLAY_COLORS[number];
561
571
  export declare type DisplayAlign = TextAlign;
562
572
  declare const DIVIDER_COLORS: readonly [
573
+ "contrast-low",
574
+ "contrast-medium",
575
+ "contrast-high",
563
576
  "neutral-contrast-high",
564
577
  "neutral-contrast-medium",
565
578
  "neutral-contrast-low"
@@ -757,13 +770,31 @@ declare const ICON_ARIA_ATTRIBUTES: readonly [
757
770
  ];
758
771
  export declare type IconAriaAttribute = typeof ICON_ARIA_ATTRIBUTES[number];
759
772
  export declare type IconSize = TextSize;
760
- export declare type IconColor = TextColor;
773
+ declare const ICON_COLORS: readonly [
774
+ "primary",
775
+ "contrast-low",
776
+ "contrast-medium",
777
+ "contrast-high",
778
+ "notification-success",
779
+ "notification-warning",
780
+ "notification-error",
781
+ "notification-info",
782
+ "inherit",
783
+ "brand",
784
+ "default",
785
+ "neutral-contrast-low",
786
+ "neutral-contrast-medium",
787
+ "neutral-contrast-high",
788
+ "notification-neutral",
789
+ "disabled"
790
+ ];
791
+ export declare type IconColor = typeof ICON_COLORS[number];
761
792
  declare const INLINE_NOTIFICATION_STATES: readonly [
762
- "error",
763
- "warning",
793
+ "success",
764
794
  "info",
765
- "neutral",
766
- "success"
795
+ "warning",
796
+ "error",
797
+ "neutral"
767
798
  ];
768
799
  export declare type InlineNotificationState = typeof INLINE_NOTIFICATION_STATES[number];
769
800
  declare const LINK_ARIA_ATTRIBUTES: readonly [
@@ -808,6 +839,32 @@ declare const MODAL_ARIA_ATTRIBUTES: readonly [
808
839
  "aria-label"
809
840
  ];
810
841
  export declare type ModalAriaAttribute = typeof MODAL_ARIA_ATTRIBUTES[number];
842
+ declare const MODEL_SIGNATURES_MANIFEST: {
843
+ "718": string;
844
+ "911": string;
845
+ boxster: string;
846
+ cayenne: string;
847
+ cayman: string;
848
+ macan: string;
849
+ panamera: string;
850
+ taycan: string;
851
+ "turbo-s": string;
852
+ turbo: string;
853
+ };
854
+ declare const MODEL_SIGNATURE_SIZES: readonly [
855
+ "small",
856
+ "inherit"
857
+ ];
858
+ export declare type ModelSignatureSize = typeof MODEL_SIGNATURE_SIZES[number];
859
+ export declare type ModelSignatureModel = keyof typeof MODEL_SIGNATURES_MANIFEST;
860
+ declare const MODEL_SIGNATURE_COLORS: readonly [
861
+ "primary",
862
+ "contrast-low",
863
+ "contrast-medium",
864
+ "contrast-high",
865
+ "inherit"
866
+ ];
867
+ export declare type ModelSignatureColor = typeof MODEL_SIGNATURE_COLORS[number];
811
868
  declare const PAGINATION_NUMBER_OF_PAGE_LINKS: readonly [
812
869
  5,
813
870
  7
@@ -887,29 +944,29 @@ export declare type TabChangeEvent = {
887
944
  activeTabIndex: number;
888
945
  };
889
946
  export declare type TabGradientColorTheme = GradientColorTheme;
947
+ declare const TAG_DISMISSIBLE_COLORS: readonly [
948
+ "background-surface",
949
+ "background-base",
950
+ "background-default"
951
+ ];
952
+ export declare type TagDismissibleColor = typeof TAG_DISMISSIBLE_COLORS[number];
953
+ declare const TAG_DISMISSIBLE_ARIA_ATTRIBUTES: readonly [
954
+ "aria-label"
955
+ ];
956
+ export declare type TagDismissibleAriaAttribute = typeof TAG_DISMISSIBLE_ARIA_ATTRIBUTES[number];
890
957
  declare const TAG_COLORS: readonly [
891
958
  "background-surface",
892
- "background-default",
893
959
  "background-base",
894
- "neutral-contrast-high",
960
+ "background-default",
895
961
  "primary",
896
- "notification-neutral",
897
962
  "notification-info",
898
963
  "notification-warning",
899
964
  "notification-success",
900
- "notification-error"
965
+ "notification-error",
966
+ "neutral-contrast-high",
967
+ "notification-neutral"
901
968
  ];
902
969
  export declare type TagColor = typeof TAG_COLORS[number];
903
- declare const TAG_DISMISSIBLE_COLORS: readonly [
904
- "background-surface",
905
- "background-default",
906
- "background-base"
907
- ];
908
- export declare type TagDismissibleColor = typeof TAG_DISMISSIBLE_COLORS[number];
909
- declare const TAG_DISMISSIBLE_ARIA_ATTRIBUTES: readonly [
910
- "aria-label"
911
- ];
912
- export declare type TagDismissibleAriaAttribute = typeof TAG_DISMISSIBLE_ARIA_ATTRIBUTES[number];
913
970
  declare const TEXT_TAGS: readonly [
914
971
  "p",
915
972
  "span",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.2",
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.0"
20
+ "@porsche-design-system/components-js": "3.0.0-alpha.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"
package/plugin.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import type { App, InjectionKey } from 'vue';
2
+ export type PorscheDesignSystemPluginOptions = {
3
+ prefix?: string;
4
+ extends?: Record<string, unknown>;
5
+ };
6
+ export type PorscheDesignSystemPlugin = {
7
+ [key: string]: any;
8
+ install: (app: App, options?: PorscheDesignSystemPluginOptions) => void;
9
+ };
10
+ export declare const porscheDesignSystemSymbol: InjectionKey<PorscheDesignSystemPlugin>;
11
+ export declare function usePorscheDesignSystemPlugin(): PorscheDesignSystemPlugin;
12
+ export declare function createPorscheDesignSystem(options?: {
13
+ prefix: string;
14
+ }): PorscheDesignSystemPlugin;
package/plugin.js ADDED
@@ -0,0 +1,28 @@
1
+ import { inject as n, ref as c } from "vue";
2
+ import { componentsReady as i, load as m } from "@porsche-design-system/components-js";
3
+ import { prefixInjectionKey as a } from "./utils.js";
4
+ const t = Symbol();
5
+ function u() {
6
+ const e = n(t);
7
+ if (!e)
8
+ throw new Error(
9
+ "[Porsche Design System Vue] No plugin was provided. Make sure to create one via `createPorscheDesignSystem()`."
10
+ );
11
+ return e;
12
+ }
13
+ function g(e = { prefix: "" }) {
14
+ const r = c(!1), s = {
15
+ options: e,
16
+ isPorscheDesignSystemLoaded: r,
17
+ componentsReady: i,
18
+ async install(o) {
19
+ r.value || (m({ prefix: e.prefix }), await i(), r.value = !0), o.provide(a, e.prefix), o.provide(t, s);
20
+ }
21
+ };
22
+ return s;
23
+ }
24
+ export {
25
+ g as createPorscheDesignSystem,
26
+ t as porscheDesignSystemSymbol,
27
+ u as usePorscheDesignSystemPlugin
28
+ };
package/public-api.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './lib/components';
3
3
  export * from './lib/types';
4
4
  export { useToastManager } from './utils';
5
5
  export { default as PorscheDesignSystemProvider } from './PorscheDesignSystemProvider.vue';
6
+ export { createPorscheDesignSystem, usePorscheDesignSystemPlugin } from './plugin';
package/public-api.js CHANGED
@@ -1,21 +1,21 @@
1
- import { componentsReady as r } from "@porsche-design-system/components-js";
1
+ import { componentsReady as t } from "@porsche-design-system/components-js";
2
2
  import { default as o } from "./lib/components/AccordionWrapper.vue.js";
3
3
  import { default as l } from "./lib/components/BannerWrapper.vue.js";
4
- import { default as d } from "./lib/components/ButtonWrapper.vue.js";
4
+ import { default as s } from "./lib/components/ButtonWrapper.vue.js";
5
5
  import { default as m } from "./lib/components/ButtonGroupWrapper.vue.js";
6
6
  import { default as x } from "./lib/components/ButtonPureWrapper.vue.js";
7
7
  import { default as i } from "./lib/components/CarouselWrapper.vue.js";
8
8
  import { default as T } from "./lib/components/CheckboxWrapperWrapper.vue.js";
9
- import { default as c } from "./lib/components/ContentWrapperWrapper.vue.js";
9
+ import { default as S } from "./lib/components/ContentWrapperWrapper.vue.js";
10
10
  import { default as g } from "./lib/components/DisplayWrapper.vue.js";
11
11
  import { default as B } from "./lib/components/DividerWrapper.vue.js";
12
12
  import { default as H } from "./lib/components/FieldsetWrapperWrapper.vue.js";
13
- import { default as L } from "./lib/components/FlexWrapper.vue.js";
14
- import { default as y } from "./lib/components/FlexItemWrapper.vue.js";
15
- import { default as F } from "./lib/components/GridWrapper.vue.js";
16
- import { default as h } from "./lib/components/GridItemWrapper.vue.js";
17
- import { default as w } from "./lib/components/HeadingWrapper.vue.js";
18
- import { default as M } from "./lib/components/HeadlineWrapper.vue.js";
13
+ import { default as y } from "./lib/components/FlexWrapper.vue.js";
14
+ import { default as L } from "./lib/components/FlexItemWrapper.vue.js";
15
+ import { default as k } from "./lib/components/GridWrapper.vue.js";
16
+ import { default as M } from "./lib/components/GridItemWrapper.vue.js";
17
+ import { default as v } from "./lib/components/HeadingWrapper.vue.js";
18
+ import { default as G } from "./lib/components/HeadlineWrapper.vue.js";
19
19
  import { default as q } from "./lib/components/IconWrapper.vue.js";
20
20
  import { default as N } from "./lib/components/InlineNotificationWrapper.vue.js";
21
21
  import { default as E } from "./lib/components/LinkWrapper.vue.js";
@@ -24,55 +24,57 @@ import { default as Q } from "./lib/components/LinkSocialWrapper.vue.js";
24
24
  import { default as V } from "./lib/components/LinkTileWrapper.vue.js";
25
25
  import { default as Y } from "./lib/components/MarqueWrapper.vue.js";
26
26
  import { default as _ } from "./lib/components/ModalWrapper.vue.js";
27
- import { default as ee } from "./lib/components/PaginationWrapper.vue.js";
28
- import { default as re } from "./lib/components/PopoverWrapper.vue.js";
29
- import { default as oe } from "./lib/components/RadioButtonWrapperWrapper.vue.js";
30
- import { default as le } from "./lib/components/ScrollerWrapper.vue.js";
31
- import { default as de } from "./lib/components/SegmentedControlWrapper.vue.js";
32
- import { default as me } from "./lib/components/SegmentedControlItemWrapper.vue.js";
33
- import { default as xe } from "./lib/components/SelectWrapperWrapper.vue.js";
34
- import { default as ie } from "./lib/components/SpinnerWrapper.vue.js";
35
- import { default as Te } from "./lib/components/StepperHorizontalWrapper.vue.js";
36
- import { default as ce } from "./lib/components/StepperHorizontalItemWrapper.vue.js";
37
- import { default as ge } from "./lib/components/SwitchWrapper.vue.js";
38
- import { default as Be } from "./lib/components/TableWrapper.vue.js";
39
- import { default as He } from "./lib/components/TableBodyWrapper.vue.js";
27
+ import { default as ee } from "./lib/components/ModelSignatureWrapper.vue.js";
28
+ import { default as te } from "./lib/components/PaginationWrapper.vue.js";
29
+ import { default as oe } from "./lib/components/PopoverWrapper.vue.js";
30
+ import { default as le } from "./lib/components/RadioButtonWrapperWrapper.vue.js";
31
+ import { default as se } from "./lib/components/ScrollerWrapper.vue.js";
32
+ import { default as me } from "./lib/components/SegmentedControlWrapper.vue.js";
33
+ import { default as xe } from "./lib/components/SegmentedControlItemWrapper.vue.js";
34
+ import { default as ie } from "./lib/components/SelectWrapperWrapper.vue.js";
35
+ import { default as Te } from "./lib/components/SpinnerWrapper.vue.js";
36
+ import { default as Se } from "./lib/components/StepperHorizontalWrapper.vue.js";
37
+ import { default as ge } from "./lib/components/StepperHorizontalItemWrapper.vue.js";
38
+ import { default as Be } from "./lib/components/SwitchWrapper.vue.js";
39
+ import { default as He } from "./lib/components/TableWrapper.vue.js";
40
+ import { default as ye } from "./lib/components/TableBodyWrapper.vue.js";
40
41
  import { default as Le } from "./lib/components/TableCellWrapper.vue.js";
41
- import { default as ye } from "./lib/components/TableHeadWrapper.vue.js";
42
- import { default as Fe } from "./lib/components/TableHeadCellWrapper.vue.js";
43
- import { default as he } from "./lib/components/TableHeadRowWrapper.vue.js";
44
- import { default as we } from "./lib/components/TableRowWrapper.vue.js";
45
- import { default as Me } from "./lib/components/TabsWrapper.vue.js";
46
- import { default as qe } from "./lib/components/TabsBarWrapper.vue.js";
47
- import { default as Ne } from "./lib/components/TabsItemWrapper.vue.js";
48
- import { default as Ee } from "./lib/components/TagWrapper.vue.js";
49
- import { default as Ke } from "./lib/components/TagDismissibleWrapper.vue.js";
50
- import { default as Qe } from "./lib/components/TextWrapper.vue.js";
51
- import { default as Ve } from "./lib/components/TextFieldWrapperWrapper.vue.js";
52
- import { default as Ye } from "./lib/components/TextListWrapper.vue.js";
53
- import { default as _e } from "./lib/components/TextListItemWrapper.vue.js";
54
- import { default as ea } from "./lib/components/TextareaWrapperWrapper.vue.js";
55
- import { default as ra } from "./lib/components/ToastWrapper.vue.js";
56
- import { useToastManager as oa } from "./utils.js";
57
- import { default as la } from "./PorscheDesignSystemProvider.vue.js";
42
+ import { default as ke } from "./lib/components/TableHeadWrapper.vue.js";
43
+ import { default as Me } from "./lib/components/TableHeadCellWrapper.vue.js";
44
+ import { default as ve } from "./lib/components/TableHeadRowWrapper.vue.js";
45
+ import { default as Ge } from "./lib/components/TableRowWrapper.vue.js";
46
+ import { default as qe } from "./lib/components/TabsWrapper.vue.js";
47
+ import { default as Ne } from "./lib/components/TabsBarWrapper.vue.js";
48
+ import { default as Ee } from "./lib/components/TabsItemWrapper.vue.js";
49
+ import { default as Ke } from "./lib/components/TagWrapper.vue.js";
50
+ import { default as Qe } from "./lib/components/TagDismissibleWrapper.vue.js";
51
+ import { default as Ve } from "./lib/components/TextWrapper.vue.js";
52
+ import { default as Ye } from "./lib/components/TextFieldWrapperWrapper.vue.js";
53
+ import { default as _e } from "./lib/components/TextListWrapper.vue.js";
54
+ import { default as er } from "./lib/components/TextListItemWrapper.vue.js";
55
+ import { default as tr } from "./lib/components/TextareaWrapperWrapper.vue.js";
56
+ import { default as or } from "./lib/components/ToastWrapper.vue.js";
57
+ import { useToastManager as lr } from "./utils.js";
58
+ import { default as sr } from "./PorscheDesignSystemProvider.vue.js";
59
+ import { createPorscheDesignSystem as mr, usePorscheDesignSystemPlugin as ur } from "./plugin.js";
58
60
  export {
59
61
  o as PAccordion,
60
62
  l as PBanner,
61
- d as PButton,
63
+ s as PButton,
62
64
  m as PButtonGroup,
63
65
  x as PButtonPure,
64
66
  i as PCarousel,
65
67
  T as PCheckboxWrapper,
66
- c as PContentWrapper,
68
+ S as PContentWrapper,
67
69
  g as PDisplay,
68
70
  B as PDivider,
69
71
  H as PFieldsetWrapper,
70
- L as PFlex,
71
- y as PFlexItem,
72
- F as PGrid,
73
- h as PGridItem,
74
- w as PHeading,
75
- M as PHeadline,
72
+ y as PFlex,
73
+ L as PFlexItem,
74
+ k as PGrid,
75
+ M as PGridItem,
76
+ v as PHeading,
77
+ G as PHeadline,
76
78
  q as PIcon,
77
79
  N as PInlineNotification,
78
80
  E as PLink,
@@ -81,36 +83,39 @@ export {
81
83
  V as PLinkTile,
82
84
  Y as PMarque,
83
85
  _ as PModal,
84
- ee as PPagination,
85
- re as PPopover,
86
- oe as PRadioButtonWrapper,
87
- le as PScroller,
88
- de as PSegmentedControl,
89
- me as PSegmentedControlItem,
90
- xe as PSelectWrapper,
91
- ie as PSpinner,
92
- Te as PStepperHorizontal,
93
- ce as PStepperHorizontalItem,
94
- ge as PSwitch,
95
- Be as PTable,
96
- He as PTableBody,
86
+ ee as PModelSignature,
87
+ te as PPagination,
88
+ oe as PPopover,
89
+ le as PRadioButtonWrapper,
90
+ se as PScroller,
91
+ me as PSegmentedControl,
92
+ xe as PSegmentedControlItem,
93
+ ie as PSelectWrapper,
94
+ Te as PSpinner,
95
+ Se as PStepperHorizontal,
96
+ ge as PStepperHorizontalItem,
97
+ Be as PSwitch,
98
+ He as PTable,
99
+ ye as PTableBody,
97
100
  Le as PTableCell,
98
- ye as PTableHead,
99
- Fe as PTableHeadCell,
100
- he as PTableHeadRow,
101
- we as PTableRow,
102
- Me as PTabs,
103
- qe as PTabsBar,
104
- Ne as PTabsItem,
105
- Ee as PTag,
106
- Ke as PTagDismissible,
107
- Qe as PText,
108
- Ve as PTextFieldWrapper,
109
- Ye as PTextList,
110
- _e as PTextListItem,
111
- ea as PTextareaWrapper,
112
- ra as PToast,
113
- la as PorscheDesignSystemProvider,
114
- r as componentsReady,
115
- oa as useToastManager
101
+ ke as PTableHead,
102
+ Me as PTableHeadCell,
103
+ ve as PTableHeadRow,
104
+ Ge as PTableRow,
105
+ qe as PTabs,
106
+ Ne as PTabsBar,
107
+ Ee as PTabsItem,
108
+ Ke as PTag,
109
+ Qe as PTagDismissible,
110
+ Ve as PText,
111
+ Ye as PTextFieldWrapper,
112
+ _e as PTextList,
113
+ er as PTextListItem,
114
+ tr as PTextareaWrapper,
115
+ or as PToast,
116
+ sr as PorscheDesignSystemProvider,
117
+ t as componentsReady,
118
+ mr as createPorscheDesignSystem,
119
+ ur as usePorscheDesignSystemPlugin,
120
+ lr as useToastManager
116
121
  };