@porsche-design-system/components-react 4.0.0-beta.2 → 4.0.0-beta.4
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/CHANGELOG.md +334 -1
- package/OSS_NOTICE +1649 -5178
- package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/display.wrapper.cjs +1 -0
- package/cjs/lib/components/flag.wrapper.cjs +1 -1
- package/cjs/lib/components/heading.wrapper.cjs +3 -3
- package/cjs/lib/components/icon.wrapper.cjs +1 -1
- package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/spinner.wrapper.cjs +3 -3
- package/cjs/lib/components/text.wrapper.cjs +3 -3
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
- package/esm/lib/components/button-pure.wrapper.mjs +3 -3
- package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
- package/esm/lib/components/button.wrapper.d.ts +6 -6
- package/esm/lib/components/carousel.wrapper.d.ts +10 -10
- package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +1 -0
- package/esm/lib/components/display.wrapper.mjs +1 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
- package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
- package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
- package/esm/lib/components/flag.wrapper.d.ts +5 -5
- package/esm/lib/components/flag.wrapper.mjs +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +2 -2
- package/esm/lib/components/heading.wrapper.d.ts +27 -11
- package/esm/lib/components/heading.wrapper.mjs +3 -3
- package/esm/lib/components/icon.wrapper.d.ts +7 -7
- package/esm/lib/components/icon.wrapper.mjs +1 -1
- package/esm/lib/components/input-date.wrapper.d.ts +12 -12
- package/esm/lib/components/input-email.wrapper.d.ts +8 -8
- package/esm/lib/components/input-month.wrapper.d.ts +12 -12
- package/esm/lib/components/input-number.wrapper.d.ts +8 -8
- package/esm/lib/components/input-password.wrapper.d.ts +6 -6
- package/esm/lib/components/input-search.wrapper.d.ts +6 -6
- package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
- package/esm/lib/components/input-text.wrapper.d.ts +6 -6
- package/esm/lib/components/input-time.wrapper.d.ts +14 -14
- package/esm/lib/components/input-url.wrapper.d.ts +16 -16
- package/esm/lib/components/input-week.wrapper.d.ts +14 -14
- package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
- package/esm/lib/components/link-pure.wrapper.mjs +3 -3
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
- package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
- package/esm/lib/components/link.wrapper.d.ts +14 -14
- package/esm/lib/components/modal.wrapper.d.ts +2 -2
- package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
- package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
- package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
- package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
- package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +10 -10
- package/esm/lib/components/sheet.wrapper.d.ts +2 -2
- package/esm/lib/components/spinner.wrapper.d.ts +13 -5
- package/esm/lib/components/spinner.wrapper.mjs +3 -3
- package/esm/lib/components/switch.wrapper.d.ts +6 -6
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +2 -2
- package/esm/lib/components/text.wrapper.d.ts +21 -13
- package/esm/lib/components/text.wrapper.mjs +3 -3
- package/esm/lib/components/textarea.wrapper.d.ts +6 -6
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/esm/lib/types.d.ts +341 -141
- package/global-styles/cn/index.css +157 -159
- package/global-styles/color-scheme.css +95 -95
- package/global-styles/index.css +157 -159
- package/global-styles/variables.css +62 -64
- package/package.json +6 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +413 -512
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +20 -18
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +413 -512
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +20 -18
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/heading.wrapper.d.ts +27 -11
- package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
- package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/text.wrapper.d.ts +21 -13
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
- package/ssr/esm/lib/types.d.ts +341 -141
- package/tailwindcss/index.css +170 -158
package/esm/lib/types.d.ts
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
declare const ACCORDIONS_BACKGROUNDS: readonly [
|
|
2
|
+
"canvas",
|
|
3
|
+
"surface",
|
|
4
|
+
"frosted",
|
|
5
|
+
"none"
|
|
6
|
+
];
|
|
7
|
+
export type AccordionBackground = (typeof ACCORDIONS_BACKGROUNDS)[number];
|
|
8
|
+
declare const ACCORDION_ALIGN_MARKERS: readonly [
|
|
9
|
+
"start",
|
|
10
|
+
"end"
|
|
11
|
+
];
|
|
12
|
+
export type AccordionAlignMarker = (typeof ACCORDION_ALIGN_MARKERS)[number];
|
|
13
|
+
export type AccordionUpdateEventDetail = {
|
|
14
|
+
open: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const ACCORDION_HEADINGS_DEPRECATED: readonly [
|
|
17
|
+
"h1",
|
|
18
|
+
"h2",
|
|
19
|
+
"h3",
|
|
20
|
+
"h4",
|
|
21
|
+
"h5",
|
|
22
|
+
"h6"
|
|
23
|
+
];
|
|
24
|
+
/** @deprecated */
|
|
25
|
+
export type AccordionHeadingTag = (typeof ACCORDION_HEADINGS_DEPRECATED)[number];
|
|
26
|
+
declare const ACCORDION_SIZES: readonly [
|
|
27
|
+
"small",
|
|
28
|
+
"medium"
|
|
29
|
+
];
|
|
30
|
+
/** @deprecated */
|
|
31
|
+
export type AccordionSize = (typeof ACCORDION_SIZES)[number];
|
|
1
32
|
export type Booleanish = boolean | "true" | "false";
|
|
2
33
|
export type AriaAttributes = {
|
|
3
34
|
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
|
@@ -240,6 +271,8 @@ declare const ICON_NAMES: readonly [
|
|
|
240
271
|
"arrow-double-right",
|
|
241
272
|
"arrow-double-up",
|
|
242
273
|
"arrow-down",
|
|
274
|
+
"arrow-down-left",
|
|
275
|
+
"arrow-down-right",
|
|
243
276
|
"arrow-first",
|
|
244
277
|
"arrow-head-down",
|
|
245
278
|
"arrow-head-left",
|
|
@@ -249,6 +282,8 @@ declare const ICON_NAMES: readonly [
|
|
|
249
282
|
"arrow-left",
|
|
250
283
|
"arrow-right",
|
|
251
284
|
"arrow-up",
|
|
285
|
+
"arrow-up-left",
|
|
286
|
+
"arrow-up-right",
|
|
252
287
|
"arrows",
|
|
253
288
|
"attachment",
|
|
254
289
|
"augmented-reality",
|
|
@@ -418,6 +453,7 @@ declare const ICON_NAMES: readonly [
|
|
|
418
453
|
"pin-filled",
|
|
419
454
|
"pivot",
|
|
420
455
|
"play",
|
|
456
|
+
"play-filled",
|
|
421
457
|
"plug",
|
|
422
458
|
"plus",
|
|
423
459
|
"preheating",
|
|
@@ -621,6 +657,27 @@ declare const FLAG_NAMES: readonly [
|
|
|
621
657
|
"za"
|
|
622
658
|
];
|
|
623
659
|
export type FlagName = typeof FLAG_NAMES[number];
|
|
660
|
+
declare const FORM_STATES: readonly [
|
|
661
|
+
"none",
|
|
662
|
+
"error",
|
|
663
|
+
"success"
|
|
664
|
+
];
|
|
665
|
+
export type FormState = (typeof FORM_STATES)[number];
|
|
666
|
+
declare const BUTTON_ARIA_ATTRIBUTES: readonly [
|
|
667
|
+
"aria-label",
|
|
668
|
+
"aria-description",
|
|
669
|
+
"aria-expanded",
|
|
670
|
+
"aria-pressed",
|
|
671
|
+
"aria-haspopup"
|
|
672
|
+
];
|
|
673
|
+
export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
|
|
674
|
+
declare const LINK_ARIA_ATTRIBUTES: readonly [
|
|
675
|
+
"aria-label",
|
|
676
|
+
"aria-description",
|
|
677
|
+
"aria-current",
|
|
678
|
+
"aria-haspopup"
|
|
679
|
+
];
|
|
680
|
+
export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
|
|
624
681
|
declare const breakpoints: readonly [
|
|
625
682
|
"base",
|
|
626
683
|
"xs",
|
|
@@ -637,75 +694,6 @@ export type BreakpointValues<T> = {
|
|
|
637
694
|
base: T;
|
|
638
695
|
};
|
|
639
696
|
export type BreakpointCustomizable<T> = T | BreakpointValues<T>;
|
|
640
|
-
declare const HEADING_SIZES: readonly [
|
|
641
|
-
"small",
|
|
642
|
-
"medium",
|
|
643
|
-
"large",
|
|
644
|
-
"x-large",
|
|
645
|
-
"xx-large",
|
|
646
|
-
"inherit"
|
|
647
|
-
];
|
|
648
|
-
export type HeadingSize = (typeof HEADING_SIZES)[number];
|
|
649
|
-
declare const HEADING_TAGS: readonly [
|
|
650
|
-
"h1",
|
|
651
|
-
"h2",
|
|
652
|
-
"h3",
|
|
653
|
-
"h4",
|
|
654
|
-
"h5",
|
|
655
|
-
"h6"
|
|
656
|
-
];
|
|
657
|
-
export type HeadingTag = (typeof HEADING_TAGS)[number];
|
|
658
|
-
declare const TEXT_SIZES: readonly [
|
|
659
|
-
"xx-small",
|
|
660
|
-
"x-small",
|
|
661
|
-
"small",
|
|
662
|
-
"medium",
|
|
663
|
-
"large",
|
|
664
|
-
"x-large",
|
|
665
|
-
"inherit"
|
|
666
|
-
];
|
|
667
|
-
export type TextSize = (typeof TEXT_SIZES)[number];
|
|
668
|
-
declare const TYPOGRAPHY_ALIGNS: readonly [
|
|
669
|
-
"start",
|
|
670
|
-
"center",
|
|
671
|
-
"end",
|
|
672
|
-
"inherit"
|
|
673
|
-
];
|
|
674
|
-
export type TypographyAlign = (typeof TYPOGRAPHY_ALIGNS)[number];
|
|
675
|
-
declare const TYPOGRAPHY_TEXT_COLORS: readonly [
|
|
676
|
-
"primary",
|
|
677
|
-
"contrast-high",
|
|
678
|
-
"contrast-medium",
|
|
679
|
-
"contrast-low",
|
|
680
|
-
"success",
|
|
681
|
-
"warning",
|
|
682
|
-
"error",
|
|
683
|
-
"info",
|
|
684
|
-
"inherit"
|
|
685
|
-
];
|
|
686
|
-
export type TypographyTextColor = (typeof TYPOGRAPHY_TEXT_COLORS)[number];
|
|
687
|
-
declare const TYPOGRAPHY_TEXT_WEIGHTS: readonly [
|
|
688
|
-
"regular",
|
|
689
|
-
"semi-bold",
|
|
690
|
-
"bold"
|
|
691
|
-
];
|
|
692
|
-
export type TypographyTextWeight = (typeof TYPOGRAPHY_TEXT_WEIGHTS)[number];
|
|
693
|
-
declare const LINK_BUTTON_VARIANTS: readonly [
|
|
694
|
-
"primary",
|
|
695
|
-
"secondary"
|
|
696
|
-
];
|
|
697
|
-
export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
|
|
698
|
-
declare const BUTTON_TYPES: readonly [
|
|
699
|
-
"button",
|
|
700
|
-
"submit",
|
|
701
|
-
"reset"
|
|
702
|
-
];
|
|
703
|
-
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
704
|
-
declare const ALIGN_LABELS: readonly [
|
|
705
|
-
"start",
|
|
706
|
-
"end"
|
|
707
|
-
];
|
|
708
|
-
export type AlignLabel = (typeof ALIGN_LABELS)[number];
|
|
709
697
|
declare const LINK_TARGETS: readonly [
|
|
710
698
|
"_self",
|
|
711
699
|
"_blank",
|
|
@@ -713,45 +701,6 @@ declare const LINK_TARGETS: readonly [
|
|
|
713
701
|
"_top"
|
|
714
702
|
];
|
|
715
703
|
export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
|
|
716
|
-
export type LinkButtonIconName = IconName | "none";
|
|
717
|
-
export type ButtonVariant = LinkButtonVariant;
|
|
718
|
-
export type LinkVariant = LinkButtonVariant;
|
|
719
|
-
export type PorscheDesignSystem = {
|
|
720
|
-
[key: `${number}.${number}.${number}${`-rc.${number}` | ""}`]: {
|
|
721
|
-
prefixes: string[];
|
|
722
|
-
isReady: () => Promise<void>;
|
|
723
|
-
readyResolve: () => void;
|
|
724
|
-
};
|
|
725
|
-
cdn: {
|
|
726
|
-
url: string;
|
|
727
|
-
prefixes: string[];
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAttributes, T>;
|
|
731
|
-
export type SelectedAriaRole<T> = {
|
|
732
|
-
role: Extract<AriaRole, T>;
|
|
733
|
-
};
|
|
734
|
-
declare const FORM_STATES: readonly [
|
|
735
|
-
"none",
|
|
736
|
-
"error",
|
|
737
|
-
"success"
|
|
738
|
-
];
|
|
739
|
-
export type FormState = (typeof FORM_STATES)[number];
|
|
740
|
-
declare const BUTTON_ARIA_ATTRIBUTES: readonly [
|
|
741
|
-
"aria-label",
|
|
742
|
-
"aria-description",
|
|
743
|
-
"aria-expanded",
|
|
744
|
-
"aria-pressed",
|
|
745
|
-
"aria-haspopup"
|
|
746
|
-
];
|
|
747
|
-
export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
|
|
748
|
-
declare const LINK_ARIA_ATTRIBUTES: readonly [
|
|
749
|
-
"aria-label",
|
|
750
|
-
"aria-description",
|
|
751
|
-
"aria-current",
|
|
752
|
-
"aria-haspopup"
|
|
753
|
-
];
|
|
754
|
-
export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
|
|
755
704
|
export type MultiSelectState = FormState;
|
|
756
705
|
export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
757
706
|
export type MultiSelectChangeEventDetail = {
|
|
@@ -801,29 +750,40 @@ declare const TILE_ALIGNS: readonly [
|
|
|
801
750
|
"bottom"
|
|
802
751
|
];
|
|
803
752
|
export type TileAlign = (typeof TILE_ALIGNS)[number];
|
|
804
|
-
declare const
|
|
805
|
-
"canvas",
|
|
806
|
-
"surface",
|
|
807
|
-
"frosted",
|
|
808
|
-
"none"
|
|
809
|
-
];
|
|
810
|
-
export type AccordionBackground = (typeof ACCORDIONS_BACKGROUNDS)[number];
|
|
811
|
-
declare const ACCORDION_ALIGN_MARKERS: readonly [
|
|
753
|
+
declare const ALIGN_LABELS: readonly [
|
|
812
754
|
"start",
|
|
813
755
|
"end"
|
|
814
756
|
];
|
|
815
|
-
export type
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
export type AccordionHeadingTag = HeadingTag;
|
|
821
|
-
declare const ACCORDION_SIZES: readonly [
|
|
822
|
-
"small",
|
|
823
|
-
"medium"
|
|
757
|
+
export type AlignLabel = (typeof ALIGN_LABELS)[number];
|
|
758
|
+
declare const BUTTON_TYPES: readonly [
|
|
759
|
+
"button",
|
|
760
|
+
"submit",
|
|
761
|
+
"reset"
|
|
824
762
|
];
|
|
825
|
-
|
|
826
|
-
|
|
763
|
+
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
764
|
+
declare const LINK_BUTTON_VARIANTS: readonly [
|
|
765
|
+
"primary",
|
|
766
|
+
"secondary"
|
|
767
|
+
];
|
|
768
|
+
export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
|
|
769
|
+
export type LinkButtonIconName = IconName | "none";
|
|
770
|
+
export type ButtonVariant = LinkButtonVariant;
|
|
771
|
+
export type LinkVariant = LinkButtonVariant;
|
|
772
|
+
export type PorscheDesignSystem = {
|
|
773
|
+
[key: `${number}.${number}.${number}${`-rc.${number}` | ""}`]: {
|
|
774
|
+
prefixes: string[];
|
|
775
|
+
isReady: () => Promise<void>;
|
|
776
|
+
readyResolve: () => void;
|
|
777
|
+
};
|
|
778
|
+
cdn: {
|
|
779
|
+
url: string;
|
|
780
|
+
prefixes: string[];
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAttributes, T>;
|
|
784
|
+
export type SelectedAriaRole<T> = {
|
|
785
|
+
role: Extract<AriaRole, T>;
|
|
786
|
+
};
|
|
827
787
|
declare const BANNER_STATES: readonly [
|
|
828
788
|
"info",
|
|
829
789
|
"success",
|
|
@@ -831,13 +791,48 @@ declare const BANNER_STATES: readonly [
|
|
|
831
791
|
"error"
|
|
832
792
|
];
|
|
833
793
|
export type BannerState = (typeof BANNER_STATES)[number];
|
|
834
|
-
|
|
794
|
+
declare const BANNER_HEADING_TAGS: readonly [
|
|
795
|
+
"h1",
|
|
796
|
+
"h2",
|
|
797
|
+
"h3",
|
|
798
|
+
"h4",
|
|
799
|
+
"h5",
|
|
800
|
+
"h6"
|
|
801
|
+
];
|
|
802
|
+
export type BannerHeadingTag = (typeof BANNER_HEADING_TAGS)[number];
|
|
835
803
|
export type ButtonIcon = LinkButtonIconName;
|
|
836
804
|
export type ButtonPureType = ButtonType;
|
|
837
805
|
export type ButtonPureIcon = LinkButtonIconName;
|
|
838
806
|
export type ButtonPureAriaAttribute = ButtonAriaAttribute;
|
|
839
807
|
export type ButtonPureAlignLabel = AlignLabel;
|
|
840
|
-
|
|
808
|
+
declare const BUTTON_PURE_SIZES: readonly [
|
|
809
|
+
"2xs",
|
|
810
|
+
"xs",
|
|
811
|
+
"sm",
|
|
812
|
+
"md",
|
|
813
|
+
"lg",
|
|
814
|
+
"xl",
|
|
815
|
+
"2xl",
|
|
816
|
+
"3xl",
|
|
817
|
+
"4xl",
|
|
818
|
+
"5xl",
|
|
819
|
+
"inherit",
|
|
820
|
+
"xx-small",
|
|
821
|
+
"x-small",
|
|
822
|
+
"small",
|
|
823
|
+
"medium",
|
|
824
|
+
"large",
|
|
825
|
+
"x-large"
|
|
826
|
+
];
|
|
827
|
+
export type ButtonPureSize = (typeof BUTTON_PURE_SIZES)[number];
|
|
828
|
+
declare const BUTTON_PURE_COLORS: readonly [
|
|
829
|
+
"primary",
|
|
830
|
+
"contrast-higher",
|
|
831
|
+
"contrast-high",
|
|
832
|
+
"contrast-medium",
|
|
833
|
+
"inherit"
|
|
834
|
+
];
|
|
835
|
+
export type ButtonPureColor = (typeof BUTTON_PURE_COLORS)[number];
|
|
841
836
|
export type ButtonTileAriaAttribute = ButtonAriaAttribute;
|
|
842
837
|
export type ButtonTileIcon = LinkButtonIconName;
|
|
843
838
|
export type ButtonTileType = ButtonType;
|
|
@@ -867,7 +862,11 @@ declare const CAROUSEL_ALIGN_HEADERS: readonly [
|
|
|
867
862
|
"center"
|
|
868
863
|
];
|
|
869
864
|
export type CarouselAlignHeader = (typeof CAROUSEL_ALIGN_HEADERS)[number];
|
|
870
|
-
|
|
865
|
+
declare const CAROUSEL_HEADING_SIZES: readonly [
|
|
866
|
+
"x-large",
|
|
867
|
+
"xx-large"
|
|
868
|
+
];
|
|
869
|
+
export type CarouselHeadingSize = (typeof CAROUSEL_HEADING_SIZES)[number];
|
|
871
870
|
declare const CAROUSEL_ARIA_ATTRIBUTES: readonly [
|
|
872
871
|
"aria-label"
|
|
873
872
|
];
|
|
@@ -909,7 +908,13 @@ declare const DISPLAY_COLORS: readonly [
|
|
|
909
908
|
"inherit"
|
|
910
909
|
];
|
|
911
910
|
export type DisplayColor = (typeof DISPLAY_COLORS)[number];
|
|
912
|
-
|
|
911
|
+
declare const DISPLAY_ALIGNS: readonly [
|
|
912
|
+
"start",
|
|
913
|
+
"center",
|
|
914
|
+
"end",
|
|
915
|
+
"inherit"
|
|
916
|
+
];
|
|
917
|
+
export type DisplayAlign = (typeof DISPLAY_ALIGNS)[number];
|
|
913
918
|
declare const DIVIDER_COLORS: readonly [
|
|
914
919
|
"contrast-lower",
|
|
915
920
|
"contrast-low",
|
|
@@ -941,7 +946,27 @@ declare const FLAG_ARIA_ATTRIBUTES: readonly [
|
|
|
941
946
|
"aria-label"
|
|
942
947
|
];
|
|
943
948
|
export type FlagAriaAttribute = (typeof FLAG_ARIA_ATTRIBUTES)[number];
|
|
944
|
-
|
|
949
|
+
declare const FLAG_SIZES: readonly [
|
|
950
|
+
"2xs",
|
|
951
|
+
"xs",
|
|
952
|
+
"sm",
|
|
953
|
+
"md",
|
|
954
|
+
"lg",
|
|
955
|
+
"xl",
|
|
956
|
+
"2xl",
|
|
957
|
+
"3xl",
|
|
958
|
+
"4xl",
|
|
959
|
+
"5xl",
|
|
960
|
+
"inherit",
|
|
961
|
+
"xx-small",
|
|
962
|
+
"x-small",
|
|
963
|
+
"small",
|
|
964
|
+
"medium",
|
|
965
|
+
"large",
|
|
966
|
+
"x-large",
|
|
967
|
+
"xx-large"
|
|
968
|
+
];
|
|
969
|
+
export type FlagSize = (typeof FLAG_SIZES)[number];
|
|
945
970
|
declare const BACKDROPS: readonly [
|
|
946
971
|
"blur",
|
|
947
972
|
"shading"
|
|
@@ -969,22 +994,96 @@ export type FlyoutAriaAttribute = (typeof FLYOUT_ARIA_ATTRIBUTES)[number];
|
|
|
969
994
|
export type FlyoutMotionVisibleEndEventDetail = TransitionEvent;
|
|
970
995
|
export type FlyoutMotionHiddenEndEventDetail = TransitionEvent;
|
|
971
996
|
export type FlyoutBackdrop = Backdrop;
|
|
997
|
+
declare const HEADING_TAGS: readonly [
|
|
998
|
+
"h1",
|
|
999
|
+
"h2",
|
|
1000
|
+
"h3",
|
|
1001
|
+
"h4",
|
|
1002
|
+
"h5",
|
|
1003
|
+
"h6"
|
|
1004
|
+
];
|
|
1005
|
+
export type HeadingTag = (typeof HEADING_TAGS)[number];
|
|
972
1006
|
declare const HEADING_COLORS: readonly [
|
|
973
1007
|
"primary",
|
|
1008
|
+
"contrast-higher",
|
|
1009
|
+
"contrast-high",
|
|
1010
|
+
"contrast-medium",
|
|
974
1011
|
"inherit"
|
|
975
1012
|
];
|
|
976
1013
|
export type HeadingColor = (typeof HEADING_COLORS)[number];
|
|
977
|
-
|
|
1014
|
+
declare const HEADING_WEIGHTS: readonly [
|
|
1015
|
+
"normal",
|
|
1016
|
+
"semibold",
|
|
1017
|
+
"bold",
|
|
1018
|
+
"regular",
|
|
1019
|
+
"semi-bold"
|
|
1020
|
+
];
|
|
1021
|
+
export type HeadingWeight = (typeof HEADING_WEIGHTS)[number];
|
|
1022
|
+
declare const HEADING_ALIGNS: readonly [
|
|
1023
|
+
"start",
|
|
1024
|
+
"center",
|
|
1025
|
+
"end",
|
|
1026
|
+
"inherit"
|
|
1027
|
+
];
|
|
1028
|
+
export type HeadingAlign = (typeof HEADING_ALIGNS)[number];
|
|
1029
|
+
declare const HEADING_SIZES: readonly [
|
|
1030
|
+
"2xs",
|
|
1031
|
+
"xs",
|
|
1032
|
+
"sm",
|
|
1033
|
+
"md",
|
|
1034
|
+
"lg",
|
|
1035
|
+
"xl",
|
|
1036
|
+
"2xl",
|
|
1037
|
+
"3xl",
|
|
1038
|
+
"4xl",
|
|
1039
|
+
"5xl",
|
|
1040
|
+
"inherit",
|
|
1041
|
+
"small",
|
|
1042
|
+
"medium",
|
|
1043
|
+
"large",
|
|
1044
|
+
"x-large",
|
|
1045
|
+
"xx-large"
|
|
1046
|
+
];
|
|
1047
|
+
export type HeadingSize = (typeof HEADING_SIZES)[number];
|
|
1048
|
+
declare const HEADING_HYPHENS: readonly [
|
|
1049
|
+
"none",
|
|
1050
|
+
"manual",
|
|
1051
|
+
"auto",
|
|
1052
|
+
"inherit"
|
|
1053
|
+
];
|
|
1054
|
+
export type HeadingHyphens = (typeof HEADING_HYPHENS)[number];
|
|
978
1055
|
declare const ICON_ARIA_ATTRIBUTES: readonly [
|
|
979
1056
|
"aria-label"
|
|
980
1057
|
];
|
|
981
1058
|
export type IconAriaAttribute = (typeof ICON_ARIA_ATTRIBUTES)[number];
|
|
982
|
-
|
|
1059
|
+
declare const ICON_SIZES: readonly [
|
|
1060
|
+
"2xs",
|
|
1061
|
+
"xs",
|
|
1062
|
+
"sm",
|
|
1063
|
+
"md",
|
|
1064
|
+
"lg",
|
|
1065
|
+
"xl",
|
|
1066
|
+
"2xl",
|
|
1067
|
+
"3xl",
|
|
1068
|
+
"4xl",
|
|
1069
|
+
"5xl",
|
|
1070
|
+
"inherit",
|
|
1071
|
+
"xx-small",
|
|
1072
|
+
"x-small",
|
|
1073
|
+
"small",
|
|
1074
|
+
"medium",
|
|
1075
|
+
"large",
|
|
1076
|
+
"x-large",
|
|
1077
|
+
"xx-large"
|
|
1078
|
+
];
|
|
1079
|
+
export type IconSize = (typeof ICON_SIZES)[number];
|
|
983
1080
|
declare const ICON_COLORS: readonly [
|
|
984
1081
|
"primary",
|
|
1082
|
+
"contrast-higher",
|
|
985
1083
|
"contrast-high",
|
|
986
1084
|
"contrast-medium",
|
|
987
1085
|
"contrast-low",
|
|
1086
|
+
"contrast-lower",
|
|
988
1087
|
"success",
|
|
989
1088
|
"warning",
|
|
990
1089
|
"error",
|
|
@@ -1000,7 +1099,15 @@ declare const INLINE_NOTIFICATION_STATES: readonly [
|
|
|
1000
1099
|
];
|
|
1001
1100
|
export type InlineNotificationState = (typeof INLINE_NOTIFICATION_STATES)[number];
|
|
1002
1101
|
export type InlineNotificationActionIcon = IconName;
|
|
1003
|
-
|
|
1102
|
+
declare const INLINE_NOTIFICATION_HEADING_TAGS: readonly [
|
|
1103
|
+
"h1",
|
|
1104
|
+
"h2",
|
|
1105
|
+
"h3",
|
|
1106
|
+
"h4",
|
|
1107
|
+
"h5",
|
|
1108
|
+
"h6"
|
|
1109
|
+
];
|
|
1110
|
+
export type InlineNotificationHeadingTag = (typeof INLINE_NOTIFICATION_HEADING_TAGS)[number];
|
|
1004
1111
|
export type InputDateState = FormState;
|
|
1005
1112
|
export type InputDateChangeEventDetail = Event;
|
|
1006
1113
|
export type InputDateBlurEventDetail = Event;
|
|
@@ -1049,8 +1156,35 @@ export type LinkIcon = LinkButtonIconName;
|
|
|
1049
1156
|
export type LinkPureIcon = LinkButtonIconName;
|
|
1050
1157
|
export type LinkPureAriaAttribute = LinkAriaAttribute;
|
|
1051
1158
|
export type LinkPureAlignLabel = AlignLabel;
|
|
1052
|
-
export type LinkPureSize = TextSize;
|
|
1053
1159
|
export type LinkPureTarget = LinkTarget;
|
|
1160
|
+
declare const LINK_PURE_SIZES: readonly [
|
|
1161
|
+
"2xs",
|
|
1162
|
+
"xs",
|
|
1163
|
+
"sm",
|
|
1164
|
+
"md",
|
|
1165
|
+
"lg",
|
|
1166
|
+
"xl",
|
|
1167
|
+
"2xl",
|
|
1168
|
+
"3xl",
|
|
1169
|
+
"4xl",
|
|
1170
|
+
"5xl",
|
|
1171
|
+
"inherit",
|
|
1172
|
+
"xx-small",
|
|
1173
|
+
"x-small",
|
|
1174
|
+
"small",
|
|
1175
|
+
"medium",
|
|
1176
|
+
"large",
|
|
1177
|
+
"x-large"
|
|
1178
|
+
];
|
|
1179
|
+
export type LinkPureSize = (typeof LINK_PURE_SIZES)[number];
|
|
1180
|
+
declare const LINK_PURE_COLORS: readonly [
|
|
1181
|
+
"primary",
|
|
1182
|
+
"contrast-higher",
|
|
1183
|
+
"contrast-high",
|
|
1184
|
+
"contrast-medium",
|
|
1185
|
+
"inherit"
|
|
1186
|
+
];
|
|
1187
|
+
export type LinkPureColor = (typeof LINK_PURE_COLORS)[number];
|
|
1054
1188
|
export type LinkTileTarget = LinkTarget;
|
|
1055
1189
|
export type LinkTileAriaAttribute = LinkAriaAttribute;
|
|
1056
1190
|
export type LinkTileAspectRatio = TileAspectRatio;
|
|
@@ -1247,11 +1381,26 @@ declare const SHEET_BACKGROUNDS: readonly [
|
|
|
1247
1381
|
export type SheetBackground = (typeof SHEET_BACKGROUNDS)[number];
|
|
1248
1382
|
export type SheetMotionVisibleEndEventDetail = TransitionEvent;
|
|
1249
1383
|
export type SheetMotionHiddenEndEventDetail = TransitionEvent;
|
|
1384
|
+
declare const SPINNER_COLORS: readonly [
|
|
1385
|
+
"primary",
|
|
1386
|
+
"inherit"
|
|
1387
|
+
];
|
|
1388
|
+
export type SpinnerColor = (typeof SPINNER_COLORS)[number];
|
|
1250
1389
|
declare const SPINNER_SIZES: readonly [
|
|
1390
|
+
"2xs",
|
|
1391
|
+
"xs",
|
|
1392
|
+
"sm",
|
|
1393
|
+
"md",
|
|
1394
|
+
"lg",
|
|
1395
|
+
"xl",
|
|
1396
|
+
"2xl",
|
|
1397
|
+
"3xl",
|
|
1398
|
+
"4xl",
|
|
1399
|
+
"5xl",
|
|
1400
|
+
"inherit",
|
|
1251
1401
|
"small",
|
|
1252
1402
|
"medium",
|
|
1253
|
-
"large"
|
|
1254
|
-
"inherit"
|
|
1403
|
+
"large"
|
|
1255
1404
|
];
|
|
1256
1405
|
export type SpinnerSize = (typeof SPINNER_SIZES)[number];
|
|
1257
1406
|
declare const SPINNER_ARIA_ATTRIBUTES: readonly [
|
|
@@ -1356,9 +1505,60 @@ declare const TEXT_TAGS: readonly [
|
|
|
1356
1505
|
"legend"
|
|
1357
1506
|
];
|
|
1358
1507
|
export type TextTag = (typeof TEXT_TAGS)[number];
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1508
|
+
declare const TEXT_COLORS: readonly [
|
|
1509
|
+
"primary",
|
|
1510
|
+
"contrast-higher",
|
|
1511
|
+
"contrast-high",
|
|
1512
|
+
"contrast-medium",
|
|
1513
|
+
"success",
|
|
1514
|
+
"warning",
|
|
1515
|
+
"error",
|
|
1516
|
+
"info",
|
|
1517
|
+
"inherit"
|
|
1518
|
+
];
|
|
1519
|
+
export type TextColor = (typeof TEXT_COLORS)[number];
|
|
1520
|
+
declare const TEXT_WEIGHTS: readonly [
|
|
1521
|
+
"normal",
|
|
1522
|
+
"semibold",
|
|
1523
|
+
"bold",
|
|
1524
|
+
"regular",
|
|
1525
|
+
"semi-bold"
|
|
1526
|
+
];
|
|
1527
|
+
export type TextWeight = (typeof TEXT_WEIGHTS)[number];
|
|
1528
|
+
declare const TEXT_ALIGNS: readonly [
|
|
1529
|
+
"start",
|
|
1530
|
+
"center",
|
|
1531
|
+
"end",
|
|
1532
|
+
"inherit"
|
|
1533
|
+
];
|
|
1534
|
+
export type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
1535
|
+
declare const TEXT_SIZES: readonly [
|
|
1536
|
+
"2xs",
|
|
1537
|
+
"xs",
|
|
1538
|
+
"sm",
|
|
1539
|
+
"md",
|
|
1540
|
+
"lg",
|
|
1541
|
+
"xl",
|
|
1542
|
+
"2xl",
|
|
1543
|
+
"3xl",
|
|
1544
|
+
"4xl",
|
|
1545
|
+
"5xl",
|
|
1546
|
+
"inherit",
|
|
1547
|
+
"xx-small",
|
|
1548
|
+
"x-small",
|
|
1549
|
+
"small",
|
|
1550
|
+
"medium",
|
|
1551
|
+
"large",
|
|
1552
|
+
"x-large"
|
|
1553
|
+
];
|
|
1554
|
+
export type TextSize = (typeof TEXT_SIZES)[number];
|
|
1555
|
+
declare const TEXT_HYPHENS: readonly [
|
|
1556
|
+
"none",
|
|
1557
|
+
"manual",
|
|
1558
|
+
"auto",
|
|
1559
|
+
"inherit"
|
|
1560
|
+
];
|
|
1561
|
+
export type TextHyphens = (typeof TEXT_HYPHENS)[number];
|
|
1362
1562
|
declare const TEXT_LIST_TYPES: readonly [
|
|
1363
1563
|
"unordered",
|
|
1364
1564
|
"numbered",
|