@porsche-design-system/components-react 4.0.0-alpha.0 → 4.0.0-beta.1
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 +344 -1
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/accordion.wrapper.cjs +3 -3
- package/cjs/lib/components/canvas.wrapper.cjs +3 -3
- package/{styles → emotion}/cjs/index.cjs +3 -3
- package/emotion/esm/index.d.ts +1 -0
- package/emotion/esm/index.mjs +1 -0
- package/{styles → emotion}/package.json +0 -5
- package/esm/lib/components/accordion.wrapper.d.ts +29 -13
- package/esm/lib/components/accordion.wrapper.mjs +3 -3
- package/esm/lib/components/canvas.wrapper.d.ts +9 -1
- package/esm/lib/components/canvas.wrapper.mjs +3 -3
- package/esm/lib/components/display.wrapper.d.ts +2 -2
- package/esm/lib/components/divider.wrapper.d.ts +2 -2
- package/esm/lib/components/heading.wrapper.d.ts +2 -2
- package/esm/lib/components/icon.wrapper.d.ts +2 -2
- package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +2 -2
- package/esm/lib/types.d.ts +124 -103
- package/global-styles/cn/font-face.css +1 -1
- package/global-styles/cn/index.css +264 -115
- package/global-styles/color-scheme.css +135 -0
- package/global-styles/font-face.css +1 -1
- package/global-styles/index.css +264 -115
- package/global-styles/variables.css +158 -144
- package/package.json +27 -14
- package/scss/_index.scss +1 -0
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1029 -737
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +37 -29
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/canvas.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +15 -10
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +5 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +2 -13
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +5 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +5 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +11 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1029 -738
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +37 -29
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/canvas.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +15 -10
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -13
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +12 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -0
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +29 -13
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/display.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/divider.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/heading.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/icon.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/accordion.d.ts +8 -2
- package/ssr/esm/lib/dsr-components/canvas.d.ts +0 -3
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-date.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-month.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-time.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-url.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-week.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/select.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/textarea.d.ts +1 -0
- package/ssr/esm/lib/types.d.ts +124 -103
- package/tailwindcss/index.css +223 -135
- package/{styles/vanilla-extract → vanilla-extract}/cjs/index.cjs +1 -1
- package/vanilla-extract/esm/index.d.ts +1 -0
- package/vanilla-extract/esm/index.mjs +1 -0
- package/vanilla-extract/package.json +13 -0
- package/ssr/esm/lib/dsr-components/legacy-label.d.ts +0 -14
- package/styles/_index.scss +0 -1
- package/styles/esm/index.d.ts +0 -1
- package/styles/esm/index.mjs +0 -1
- package/styles/vanilla-extract/esm/index.d.ts +0 -1
- package/styles/vanilla-extract/esm/index.mjs +0 -1
|
@@ -6,7 +6,7 @@ export type PHeadingProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
align?: HeadingAlign;
|
|
8
8
|
/**
|
|
9
|
-
* Basic text color variations
|
|
9
|
+
* Basic text color variations.
|
|
10
10
|
*/
|
|
11
11
|
color?: HeadingColor;
|
|
12
12
|
/**
|
|
@@ -28,7 +28,7 @@ export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
28
28
|
*/
|
|
29
29
|
align?: HeadingAlign;
|
|
30
30
|
/**
|
|
31
|
-
* Basic text color variations
|
|
31
|
+
* Basic text color variations.
|
|
32
32
|
*/
|
|
33
33
|
color?: HeadingColor;
|
|
34
34
|
/**
|
|
@@ -6,7 +6,7 @@ export type PIconProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
* Basic color variations
|
|
9
|
+
* Basic color variations.
|
|
10
10
|
*/
|
|
11
11
|
color?: IconColor;
|
|
12
12
|
/**
|
|
@@ -28,7 +28,7 @@ export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
28
28
|
*/
|
|
29
29
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
30
30
|
/**
|
|
31
|
-
* Basic color variations
|
|
31
|
+
* Basic color variations.
|
|
32
32
|
*/
|
|
33
33
|
color?: IconColor;
|
|
34
34
|
/**
|
|
@@ -6,7 +6,7 @@ export type PTextProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
align?: TextAlign;
|
|
8
8
|
/**
|
|
9
|
-
* Basic text color variations
|
|
9
|
+
* Basic text color variations.
|
|
10
10
|
*/
|
|
11
11
|
color?: TextColor;
|
|
12
12
|
/**
|
|
@@ -32,7 +32,7 @@ export declare const PText: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
32
32
|
*/
|
|
33
33
|
align?: TextAlign;
|
|
34
34
|
/**
|
|
35
|
-
* Basic text color variations
|
|
35
|
+
* Basic text color variations.
|
|
36
36
|
*/
|
|
37
37
|
color?: TextColor;
|
|
38
38
|
/**
|
|
@@ -78,7 +78,7 @@ export type PTextareaProps = BaseProps & {
|
|
|
78
78
|
*/
|
|
79
79
|
resize?: TextareaResize;
|
|
80
80
|
/**
|
|
81
|
-
* The number of rows
|
|
81
|
+
* The number of rows. Has no effect when field-sizing CSS Variable '--p-textarea-field-sizing' is set to 'content'.
|
|
82
82
|
*/
|
|
83
83
|
rows?: number;
|
|
84
84
|
/**
|
|
@@ -176,7 +176,7 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
176
176
|
*/
|
|
177
177
|
resize?: TextareaResize;
|
|
178
178
|
/**
|
|
179
|
-
* The number of rows
|
|
179
|
+
* The number of rows. Has no effect when field-sizing CSS Variable '--p-textarea-field-sizing' is set to 'content'.
|
|
180
180
|
*/
|
|
181
181
|
rows?: number;
|
|
182
182
|
/**
|
package/esm/lib/types.d.ts
CHANGED
|
@@ -621,27 +621,6 @@ declare const FLAG_NAMES: readonly [
|
|
|
621
621
|
"za"
|
|
622
622
|
];
|
|
623
623
|
export type FlagName = typeof FLAG_NAMES[number];
|
|
624
|
-
declare const FORM_STATES: readonly [
|
|
625
|
-
"none",
|
|
626
|
-
"error",
|
|
627
|
-
"success"
|
|
628
|
-
];
|
|
629
|
-
export type FormState = (typeof FORM_STATES)[number];
|
|
630
|
-
declare const BUTTON_ARIA_ATTRIBUTES: readonly [
|
|
631
|
-
"aria-label",
|
|
632
|
-
"aria-description",
|
|
633
|
-
"aria-expanded",
|
|
634
|
-
"aria-pressed",
|
|
635
|
-
"aria-haspopup"
|
|
636
|
-
];
|
|
637
|
-
export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
|
|
638
|
-
declare const LINK_ARIA_ATTRIBUTES: readonly [
|
|
639
|
-
"aria-label",
|
|
640
|
-
"aria-description",
|
|
641
|
-
"aria-current",
|
|
642
|
-
"aria-haspopup"
|
|
643
|
-
];
|
|
644
|
-
export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
|
|
645
624
|
declare const breakpoints: readonly [
|
|
646
625
|
"base",
|
|
647
626
|
"xs",
|
|
@@ -658,75 +637,6 @@ export type BreakpointValues<T> = {
|
|
|
658
637
|
base: T;
|
|
659
638
|
};
|
|
660
639
|
export type BreakpointCustomizable<T> = T | BreakpointValues<T>;
|
|
661
|
-
declare const LINK_TARGETS: readonly [
|
|
662
|
-
"_self",
|
|
663
|
-
"_blank",
|
|
664
|
-
"_parent",
|
|
665
|
-
"_top"
|
|
666
|
-
];
|
|
667
|
-
export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
|
|
668
|
-
declare const SCROLLER_ARIA_ATTRIBUTES: readonly [
|
|
669
|
-
"role"
|
|
670
|
-
];
|
|
671
|
-
export type ScrollerAriaAttribute = (typeof SCROLLER_ARIA_ATTRIBUTES)[number];
|
|
672
|
-
export type ScrollerScrollToPosition = {
|
|
673
|
-
scrollPosition: number;
|
|
674
|
-
isSmooth?: boolean;
|
|
675
|
-
} | string;
|
|
676
|
-
declare const SCROLL_INDICATOR_POSITIONS: readonly [
|
|
677
|
-
"top",
|
|
678
|
-
"center"
|
|
679
|
-
];
|
|
680
|
-
export type ScrollerAlignScrollIndicator = (typeof SCROLL_INDICATOR_POSITIONS)[number];
|
|
681
|
-
export type MultiSelectState = FormState;
|
|
682
|
-
export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
683
|
-
export type MultiSelectChangeEventDetail = {
|
|
684
|
-
name: string;
|
|
685
|
-
value: string[];
|
|
686
|
-
};
|
|
687
|
-
export type MultiSelectToggleEventDetail = {
|
|
688
|
-
open: boolean;
|
|
689
|
-
};
|
|
690
|
-
export type SelectState = FormState;
|
|
691
|
-
export type SelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
692
|
-
export type SelectChangeEventDetail = {
|
|
693
|
-
name: string;
|
|
694
|
-
value: string;
|
|
695
|
-
};
|
|
696
|
-
export type SelectToggleEventDetail = {
|
|
697
|
-
open: boolean;
|
|
698
|
-
};
|
|
699
|
-
declare const SELECT_DROPDOWN_DIRECTIONS: readonly [
|
|
700
|
-
"down",
|
|
701
|
-
"up",
|
|
702
|
-
"auto"
|
|
703
|
-
];
|
|
704
|
-
export type SelectComponentsDropdownDirection = (typeof SELECT_DROPDOWN_DIRECTIONS)[number];
|
|
705
|
-
declare const TILE_ASPECT_RATIOS: readonly [
|
|
706
|
-
"1/1",
|
|
707
|
-
"4/3",
|
|
708
|
-
"3/4",
|
|
709
|
-
"16/9",
|
|
710
|
-
"9/16",
|
|
711
|
-
"auto"
|
|
712
|
-
];
|
|
713
|
-
export type TileAspectRatio = (typeof TILE_ASPECT_RATIOS)[number];
|
|
714
|
-
declare const TILE_SIZES: readonly [
|
|
715
|
-
"medium",
|
|
716
|
-
"large",
|
|
717
|
-
"inherit"
|
|
718
|
-
];
|
|
719
|
-
export type TileSize = (typeof TILE_SIZES)[number];
|
|
720
|
-
declare const TILE_WEIGHTS: readonly [
|
|
721
|
-
"regular",
|
|
722
|
-
"semi-bold"
|
|
723
|
-
];
|
|
724
|
-
export type TileWeight = (typeof TILE_WEIGHTS)[number];
|
|
725
|
-
declare const TILE_ALIGNS: readonly [
|
|
726
|
-
"top",
|
|
727
|
-
"bottom"
|
|
728
|
-
];
|
|
729
|
-
export type TileAlign = (typeof TILE_ALIGNS)[number];
|
|
730
640
|
declare const HEADING_SIZES: readonly [
|
|
731
641
|
"small",
|
|
732
642
|
"medium",
|
|
@@ -780,22 +690,29 @@ declare const TYPOGRAPHY_TEXT_WEIGHTS: readonly [
|
|
|
780
690
|
"bold"
|
|
781
691
|
];
|
|
782
692
|
export type TypographyTextWeight = (typeof TYPOGRAPHY_TEXT_WEIGHTS)[number];
|
|
783
|
-
declare const
|
|
784
|
-
"
|
|
785
|
-
"
|
|
693
|
+
declare const LINK_BUTTON_VARIANTS: readonly [
|
|
694
|
+
"primary",
|
|
695
|
+
"secondary"
|
|
786
696
|
];
|
|
787
|
-
export type
|
|
697
|
+
export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
|
|
788
698
|
declare const BUTTON_TYPES: readonly [
|
|
789
699
|
"button",
|
|
790
700
|
"submit",
|
|
791
701
|
"reset"
|
|
792
702
|
];
|
|
793
703
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
794
|
-
declare const
|
|
795
|
-
"
|
|
796
|
-
"
|
|
704
|
+
declare const ALIGN_LABELS: readonly [
|
|
705
|
+
"start",
|
|
706
|
+
"end"
|
|
797
707
|
];
|
|
798
|
-
export type
|
|
708
|
+
export type AlignLabel = (typeof ALIGN_LABELS)[number];
|
|
709
|
+
declare const LINK_TARGETS: readonly [
|
|
710
|
+
"_self",
|
|
711
|
+
"_blank",
|
|
712
|
+
"_parent",
|
|
713
|
+
"_top"
|
|
714
|
+
];
|
|
715
|
+
export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
|
|
799
716
|
export type LinkButtonIconName = IconName | "none";
|
|
800
717
|
export type ButtonVariant = LinkButtonVariant;
|
|
801
718
|
export type LinkVariant = LinkButtonVariant;
|
|
@@ -814,15 +731,112 @@ export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAt
|
|
|
814
731
|
export type SelectedAriaRole<T> = {
|
|
815
732
|
role: Extract<AriaRole, T>;
|
|
816
733
|
};
|
|
817
|
-
declare const
|
|
818
|
-
"
|
|
819
|
-
"
|
|
734
|
+
declare const FORM_STATES: readonly [
|
|
735
|
+
"none",
|
|
736
|
+
"error",
|
|
737
|
+
"success"
|
|
820
738
|
];
|
|
821
|
-
export type
|
|
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
|
+
declare const SCROLLER_ARIA_ATTRIBUTES: readonly [
|
|
756
|
+
"role"
|
|
757
|
+
];
|
|
758
|
+
export type ScrollerAriaAttribute = (typeof SCROLLER_ARIA_ATTRIBUTES)[number];
|
|
759
|
+
export type ScrollerScrollToPosition = {
|
|
760
|
+
scrollPosition: number;
|
|
761
|
+
isSmooth?: boolean;
|
|
762
|
+
} | string;
|
|
763
|
+
declare const SCROLL_INDICATOR_POSITIONS: readonly [
|
|
764
|
+
"top",
|
|
765
|
+
"center"
|
|
766
|
+
];
|
|
767
|
+
export type ScrollerAlignScrollIndicator = (typeof SCROLL_INDICATOR_POSITIONS)[number];
|
|
768
|
+
export type MultiSelectState = FormState;
|
|
769
|
+
export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
770
|
+
export type MultiSelectChangeEventDetail = {
|
|
771
|
+
name: string;
|
|
772
|
+
value: string[];
|
|
773
|
+
};
|
|
774
|
+
export type MultiSelectToggleEventDetail = {
|
|
775
|
+
open: boolean;
|
|
776
|
+
};
|
|
777
|
+
export type SelectState = FormState;
|
|
778
|
+
export type SelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
779
|
+
export type SelectChangeEventDetail = {
|
|
780
|
+
name: string;
|
|
781
|
+
value: string;
|
|
782
|
+
};
|
|
783
|
+
export type SelectToggleEventDetail = {
|
|
784
|
+
open: boolean;
|
|
785
|
+
};
|
|
786
|
+
declare const SELECT_DROPDOWN_DIRECTIONS: readonly [
|
|
787
|
+
"down",
|
|
788
|
+
"up",
|
|
789
|
+
"auto"
|
|
790
|
+
];
|
|
791
|
+
export type SelectComponentsDropdownDirection = (typeof SELECT_DROPDOWN_DIRECTIONS)[number];
|
|
792
|
+
declare const TILE_ASPECT_RATIOS: readonly [
|
|
793
|
+
"1/1",
|
|
794
|
+
"4/3",
|
|
795
|
+
"3/4",
|
|
796
|
+
"16/9",
|
|
797
|
+
"9/16",
|
|
798
|
+
"auto"
|
|
799
|
+
];
|
|
800
|
+
export type TileAspectRatio = (typeof TILE_ASPECT_RATIOS)[number];
|
|
801
|
+
declare const TILE_SIZES: readonly [
|
|
802
|
+
"medium",
|
|
803
|
+
"large",
|
|
804
|
+
"inherit"
|
|
805
|
+
];
|
|
806
|
+
export type TileSize = (typeof TILE_SIZES)[number];
|
|
807
|
+
declare const TILE_WEIGHTS: readonly [
|
|
808
|
+
"regular",
|
|
809
|
+
"semi-bold"
|
|
810
|
+
];
|
|
811
|
+
export type TileWeight = (typeof TILE_WEIGHTS)[number];
|
|
812
|
+
declare const TILE_ALIGNS: readonly [
|
|
813
|
+
"top",
|
|
814
|
+
"bottom"
|
|
815
|
+
];
|
|
816
|
+
export type TileAlign = (typeof TILE_ALIGNS)[number];
|
|
817
|
+
declare const ACCORDIONS_BACKGROUNDS: readonly [
|
|
818
|
+
"canvas",
|
|
819
|
+
"surface",
|
|
820
|
+
"frosted",
|
|
821
|
+
"none"
|
|
822
|
+
];
|
|
823
|
+
export type AccordionBackground = (typeof ACCORDIONS_BACKGROUNDS)[number];
|
|
824
|
+
declare const ACCORDION_ALIGN_MARKERS: readonly [
|
|
825
|
+
"start",
|
|
826
|
+
"end"
|
|
827
|
+
];
|
|
828
|
+
export type AccordionAlignMarker = (typeof ACCORDION_ALIGN_MARKERS)[number];
|
|
822
829
|
export type AccordionUpdateEventDetail = {
|
|
823
830
|
open: boolean;
|
|
824
831
|
};
|
|
832
|
+
/** @deprecated */
|
|
825
833
|
export type AccordionHeadingTag = HeadingTag;
|
|
834
|
+
declare const ACCORDION_SIZES: readonly [
|
|
835
|
+
"small",
|
|
836
|
+
"medium"
|
|
837
|
+
];
|
|
838
|
+
/** @deprecated */
|
|
839
|
+
export type AccordionSize = (typeof ACCORDION_SIZES)[number];
|
|
826
840
|
declare const BANNER_STATES: readonly [
|
|
827
841
|
"info",
|
|
828
842
|
"success",
|
|
@@ -847,9 +861,16 @@ export type ButtonTileAlign = TileAlign;
|
|
|
847
861
|
export type CanvasSidebarStartUpdateEventDetail = {
|
|
848
862
|
open: boolean;
|
|
849
863
|
};
|
|
864
|
+
declare const CANVAS_BACKGROUNDS: readonly [
|
|
865
|
+
"canvas",
|
|
866
|
+
"surface"
|
|
867
|
+
];
|
|
868
|
+
export type CanvasBackground = (typeof CANVAS_BACKGROUNDS)[number];
|
|
850
869
|
declare const CAROUSEL_WIDTHS: readonly [
|
|
851
870
|
"basic",
|
|
852
|
-
"extended"
|
|
871
|
+
"extended",
|
|
872
|
+
"wide",
|
|
873
|
+
"full"
|
|
853
874
|
];
|
|
854
875
|
export type CarouselWidth = (typeof CAROUSEL_WIDTHS)[number];
|
|
855
876
|
declare const CAROUSEL_SLIDES_PER_PAGE: (string | number)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-arabic-bold.1796b39.woff2') format('woff2');unicode-range:U+0600-0671,U+06A1,U+06A4,U+06BA,U+06CC,U+06D5,U+06F8,U+06F9;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-arabic-regular.413b375.woff2') format('woff2');unicode-range:U+0600-0671,U+06A1,U+06A4,U+06BA,U+06CC,U+06D5,U+06F8,U+06F9;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-cyril-bold.4cb90bb.woff2') format('woff2');unicode-range:U+0400-04FF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-cyril-regular.b845952.woff2') format('woff2');unicode-range:U+0400-04FF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-cyril-semi-bold.378f7d5.woff2') format('woff2');unicode-range:U+0400-04FF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-greek-bold.d2546b1.woff2') format('woff2');unicode-range:U+0370-03FF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-greek-regular.0b3d9b3.woff2') format('woff2');unicode-range:U+0370-03FF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-greek-semi-bold.f3a9ae0.woff2') format('woff2');unicode-range:U+0370-03FF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-latin-bold.0fbdc6d.woff2') format('woff2');unicode-range:U+0020-007F,U+0080-00FF,U+0100-017F,U+0180-024F,U+0250-02AF,U+02B0-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25A0-25FF,U+2600-26FF,U+FB00-FB4F,U+FE70-FEFF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-latin-regular.b8f1c20.woff2') format('woff2');unicode-range:U+0020-007F,U+0080-00FF,U+0100-017F,U+0180-024F,U+0250-02AF,U+02B0-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25A0-25FF,U+2600-26FF,U+FB00-FB4F,U+FE70-FEFF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-latin-semi-bold.b5f6fca.woff2') format('woff2');unicode-range:U+0020-007F,U+0080-00FF,U+0100-017F,U+0180-024F,U+0250-02AF,U+02B0-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25A0-25FF,U+2600-26FF,U+FB00-FB4F,U+FE70-FEFF;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-pashto-bold.f30f194.woff2') format('woff2');unicode-range:U+067C,U+067E,U+0681,U+0682,U+0685,U+0686,U+0689,U+067C,U+0693,U+0696,U+0698,U+069A,U+06A9,U+06AB,U+06AF,U+06BC,U+06CD,U+06D0;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-pashto-regular.3989814.woff2') format('woff2');unicode-range:U+067C,U+067E,U+0681,U+0682,U+0685,U+0686,U+0689,U+067C,U+0693,U+0696,U+0698,U+069A,U+06A9,U+06AB,U+06AF,U+06BC,U+06CD,U+06D0;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-thai-bold.b9e9f23.woff2') format('woff2');unicode-range:U+0E00-0E7F;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-thai-regular.ac04c30.woff2') format('woff2');unicode-range:U+0E00-0E7F;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-thai-semi-bold.8d53572.woff2') format('woff2');unicode-range:U+0E00-0E7F;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-urdu-bold.49a86a4.woff2') format('woff2');unicode-range:U+0679,U+0688,U+0691,U+06BE,U+06C0-06C3,U+06D2-06D5,U+06F0-06F9;font-display:swap}@font-face{font-family:Porsche Next;font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-urdu-regular.ad23819.woff2') format('woff2');unicode-range:U+0679,U+0688,U+0691,U+06BE,U+06C0-06C3,U+06D2-06D5,U+06F0-06F9;font-display:swap}
|
|
1
|
+
@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-arabic-bold.1796b39.woff2') format('woff2');unicode-range:U+0600-0671,U+06A1,U+06A4,U+06BA,U+06CC,U+06D5,U+06F8,U+06F9;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-arabic-regular.413b375.woff2') format('woff2');unicode-range:U+0600-0671,U+06A1,U+06A4,U+06BA,U+06CC,U+06D5,U+06F8,U+06F9;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-cyril-bold.4cb90bb.woff2') format('woff2');unicode-range:U+0400-04FF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-cyril-regular.b845952.woff2') format('woff2');unicode-range:U+0400-04FF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-cyril-semi-bold.378f7d5.woff2') format('woff2');unicode-range:U+0400-04FF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-greek-bold.d2546b1.woff2') format('woff2');unicode-range:U+0370-03FF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-greek-regular.0b3d9b3.woff2') format('woff2');unicode-range:U+0370-03FF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-greek-semi-bold.f3a9ae0.woff2') format('woff2');unicode-range:U+0370-03FF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-latin-bold.0fbdc6d.woff2') format('woff2');unicode-range:U+0020-007F,U+0080-00FF,U+0100-017F,U+0180-024F,U+0250-02AF,U+02B0-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25A0-25FF,U+2600-26FF,U+FB00-FB4F,U+FE70-FEFF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-latin-regular.b8f1c20.woff2') format('woff2');unicode-range:U+0020-007F,U+0080-00FF,U+0100-017F,U+0180-024F,U+0250-02AF,U+02B0-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25A0-25FF,U+2600-26FF,U+FB00-FB4F,U+FE70-FEFF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-latin-semi-bold.b5f6fca.woff2') format('woff2');unicode-range:U+0020-007F,U+0080-00FF,U+0100-017F,U+0180-024F,U+0250-02AF,U+02B0-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25A0-25FF,U+2600-26FF,U+FB00-FB4F,U+FE70-FEFF;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-pashto-bold.f30f194.woff2') format('woff2');unicode-range:U+067C,U+067E,U+0681,U+0682,U+0685,U+0686,U+0689,U+067C,U+0693,U+0696,U+0698,U+069A,U+06A9,U+06AB,U+06AF,U+06BC,U+06CD,U+06D0;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-pashto-regular.3989814.woff2') format('woff2');unicode-range:U+067C,U+067E,U+0681,U+0682,U+0685,U+0686,U+0689,U+067C,U+0693,U+0696,U+0698,U+069A,U+06A9,U+06AB,U+06AF,U+06BC,U+06CD,U+06D0;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-thai-bold.b9e9f23.woff2') format('woff2');unicode-range:U+0E00-0E7F;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-thai-regular.ac04c30.woff2') format('woff2');unicode-range:U+0E00-0E7F;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:600;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-thai-semi-bold.8d53572.woff2') format('woff2');unicode-range:U+0E00-0E7F;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:700;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-urdu-bold.49a86a4.woff2') format('woff2');unicode-range:U+0679,U+0688,U+0691,U+06BE,U+06C0-06C3,U+06D2-06D5,U+06F0-06F9;font-display:swap}@font-face{font-family:"Porsche Next";font-style:normal;font-weight:400;src:url('https://cdn.ui.porsche.cn/porsche-design-system/fonts/porsche-next-urdu-regular.ad23819.woff2') format('woff2');unicode-range:U+0679,U+0688,U+0691,U+06BE,U+06C0-06C3,U+06D2-06D5,U+06F0-06F9;font-display:swap}
|