@porsche-design-system/components-react 4.2.0-rc.4 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/cjs/lib/components/flyout.wrapper.cjs +3 -3
- package/emotion/package.json +1 -8
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/esm/lib/components/button.wrapper.d.ts +24 -24
- package/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +10 -10
- package/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/esm/lib/components/flyout.wrapper.mjs +3 -3
- package/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/esm/lib/components/link.wrapper.d.ts +20 -20
- package/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +30 -30
- package/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/esm/lib/components/table.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/package.json +6 -6
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +144 -352
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +177 -90
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.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/banner.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- 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/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +8 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
- 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/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +144 -352
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +174 -91
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.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/banner.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- 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/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +9 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/banner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
|
@@ -2,122 +2,122 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { LinkTileAlign, SelectedAriaAttributes, LinkTileAriaAttribute, BreakpointCustomizable, LinkTileAspectRatio, LinkTileSize, LinkTileTarget, LinkTileWeight } from '../types';
|
|
3
3
|
export type PLinkTileProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Controls the vertical placement of the description and link — `top` or `bottom`.
|
|
6
6
|
* @default 'bottom'
|
|
7
7
|
*/
|
|
8
8
|
align?: LinkTileAlign;
|
|
9
9
|
/**
|
|
10
|
-
* Sets ARIA attributes.
|
|
10
|
+
* Sets ARIA attributes on the tile's anchor element to improve accessibility for screen readers.
|
|
11
11
|
*/
|
|
12
12
|
aria?: SelectedAriaAttributes<LinkTileAriaAttribute>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
15
15
|
* @default '4/3'
|
|
16
16
|
*/
|
|
17
17
|
aspectRatio?: BreakpointCustomizable<LinkTileAspectRatio>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Renders only the icon link without the full label. Supports responsive breakpoint values.
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
22
|
compact?: BreakpointCustomizable<boolean>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the description text displayed in the tile's content area.
|
|
25
25
|
*/
|
|
26
26
|
description: string;
|
|
27
27
|
/**
|
|
28
|
-
* Sets the native `download` attribute
|
|
28
|
+
* Sets the native `download` attribute to trigger a file download.
|
|
29
29
|
*/
|
|
30
30
|
download?: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Shows a gradient overlay over the media slot to improve text legibility on bright images or videos.
|
|
33
33
|
* @default false
|
|
34
34
|
*/
|
|
35
35
|
gradient?: boolean;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Sets the URL the tile's anchor element navigates to when clicked.
|
|
38
38
|
*/
|
|
39
39
|
href: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Sets the accessible label text of the link rendered inside the tile.
|
|
42
42
|
*/
|
|
43
43
|
label: string;
|
|
44
44
|
/**
|
|
45
|
-
* Sets the `rel` attribute on the link.
|
|
45
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`).
|
|
46
46
|
*/
|
|
47
47
|
rel?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Sets the font size of the description text in the tile content area. Supports responsive breakpoint values.
|
|
50
50
|
* @default 'medium'
|
|
51
51
|
*/
|
|
52
52
|
size?: BreakpointCustomizable<LinkTileSize>;
|
|
53
53
|
/**
|
|
54
|
-
* Specifies where to open the linked
|
|
54
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`).
|
|
55
55
|
* @default '_self'
|
|
56
56
|
*/
|
|
57
57
|
target?: LinkTileTarget;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Sets the font weight of the description text in the tile content area. Supports responsive breakpoint values.
|
|
60
60
|
* @default 'semi-bold'
|
|
61
61
|
*/
|
|
62
62
|
weight?: BreakpointCustomizable<LinkTileWeight>;
|
|
63
63
|
};
|
|
64
64
|
export declare const PLinkTile: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Controls the vertical placement of the description and link — `top` or `bottom`.
|
|
67
67
|
* @default 'bottom'
|
|
68
68
|
*/
|
|
69
69
|
align?: LinkTileAlign;
|
|
70
70
|
/**
|
|
71
|
-
* Sets ARIA attributes.
|
|
71
|
+
* Sets ARIA attributes on the tile's anchor element to improve accessibility for screen readers.
|
|
72
72
|
*/
|
|
73
73
|
aria?: SelectedAriaAttributes<LinkTileAriaAttribute>;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values.
|
|
76
76
|
* @default '4/3'
|
|
77
77
|
*/
|
|
78
78
|
aspectRatio?: BreakpointCustomizable<LinkTileAspectRatio>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Renders only the icon link without the full label. Supports responsive breakpoint values.
|
|
81
81
|
* @default false
|
|
82
82
|
*/
|
|
83
83
|
compact?: BreakpointCustomizable<boolean>;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Sets the description text displayed in the tile's content area.
|
|
86
86
|
*/
|
|
87
87
|
description: string;
|
|
88
88
|
/**
|
|
89
|
-
* Sets the native `download` attribute
|
|
89
|
+
* Sets the native `download` attribute to trigger a file download.
|
|
90
90
|
*/
|
|
91
91
|
download?: string;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Shows a gradient overlay over the media slot to improve text legibility on bright images or videos.
|
|
94
94
|
* @default false
|
|
95
95
|
*/
|
|
96
96
|
gradient?: boolean;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Sets the URL the tile's anchor element navigates to when clicked.
|
|
99
99
|
*/
|
|
100
100
|
href: string;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Sets the accessible label text of the link rendered inside the tile.
|
|
103
103
|
*/
|
|
104
104
|
label: string;
|
|
105
105
|
/**
|
|
106
|
-
* Sets the `rel` attribute on the link.
|
|
106
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`).
|
|
107
107
|
*/
|
|
108
108
|
rel?: string;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Sets the font size of the description text in the tile content area. Supports responsive breakpoint values.
|
|
111
111
|
* @default 'medium'
|
|
112
112
|
*/
|
|
113
113
|
size?: BreakpointCustomizable<LinkTileSize>;
|
|
114
114
|
/**
|
|
115
|
-
* Specifies where to open the linked
|
|
115
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`).
|
|
116
116
|
* @default '_self'
|
|
117
117
|
*/
|
|
118
118
|
target?: LinkTileTarget;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Sets the font weight of the description text in the tile content area. Supports responsive breakpoint values.
|
|
121
121
|
* @default 'semi-bold'
|
|
122
122
|
*/
|
|
123
123
|
weight?: BreakpointCustomizable<LinkTileWeight>;
|
|
@@ -2,94 +2,94 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, LinkAriaAttribute, BreakpointCustomizable, LinkIcon, LinkTarget, LinkVariant } from '../types';
|
|
3
3
|
export type PLinkProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the link element to improve accessibility for screen readers.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<LinkAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the link's padding and height for denser layouts. Supports responsive breakpoint values.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: BreakpointCustomizable<boolean>;
|
|
13
13
|
/**
|
|
14
|
-
* Sets the native `download` attribute
|
|
14
|
+
* Sets the native `download` attribute to trigger a file download. Only applies when `href` is set.
|
|
15
15
|
*/
|
|
16
16
|
download?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
19
19
|
* @default false
|
|
20
20
|
*/
|
|
21
21
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
22
22
|
/**
|
|
23
|
-
* When
|
|
23
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
24
24
|
*/
|
|
25
25
|
href?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Sets the icon displayed next to the link label. Use `none` to show no icon.
|
|
28
28
|
* @default 'none'
|
|
29
29
|
*/
|
|
30
30
|
icon?: LinkIcon;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
33
33
|
*/
|
|
34
34
|
iconSource?: string;
|
|
35
35
|
/**
|
|
36
|
-
* Sets the `rel` attribute on the link.
|
|
36
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set.
|
|
37
37
|
*/
|
|
38
38
|
rel?: string;
|
|
39
39
|
/**
|
|
40
|
-
* Specifies where to open the linked
|
|
40
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
41
41
|
* @default '_self'
|
|
42
42
|
*/
|
|
43
43
|
target?: LinkTarget;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Sets the visual style variant of the link (e.g. `primary`, `secondary`, `tertiary`).
|
|
46
46
|
* @default 'primary'
|
|
47
47
|
*/
|
|
48
48
|
variant?: LinkVariant;
|
|
49
49
|
};
|
|
50
50
|
export declare const PLink: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
51
51
|
/**
|
|
52
|
-
* Sets ARIA attributes.
|
|
52
|
+
* Sets ARIA attributes on the link element to improve accessibility for screen readers.
|
|
53
53
|
*/
|
|
54
54
|
aria?: SelectedAriaAttributes<LinkAriaAttribute>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Reduces the link's padding and height for denser layouts. Supports responsive breakpoint values.
|
|
57
57
|
* @default false
|
|
58
58
|
*/
|
|
59
59
|
compact?: BreakpointCustomizable<boolean>;
|
|
60
60
|
/**
|
|
61
|
-
* Sets the native `download` attribute
|
|
61
|
+
* Sets the native `download` attribute to trigger a file download. Only applies when `href` is set.
|
|
62
62
|
*/
|
|
63
63
|
download?: string;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
66
66
|
* @default false
|
|
67
67
|
*/
|
|
68
68
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
69
69
|
/**
|
|
70
|
-
* When
|
|
70
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
71
71
|
*/
|
|
72
72
|
href?: string;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Sets the icon displayed next to the link label. Use `none` to show no icon.
|
|
75
75
|
* @default 'none'
|
|
76
76
|
*/
|
|
77
77
|
icon?: LinkIcon;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
80
80
|
*/
|
|
81
81
|
iconSource?: string;
|
|
82
82
|
/**
|
|
83
|
-
* Sets the `rel` attribute on the link.
|
|
83
|
+
* Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set.
|
|
84
84
|
*/
|
|
85
85
|
rel?: string;
|
|
86
86
|
/**
|
|
87
|
-
* Specifies where to open the linked
|
|
87
|
+
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
|
|
88
88
|
* @default '_self'
|
|
89
89
|
*/
|
|
90
90
|
target?: LinkTarget;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Sets the visual style variant of the link (e.g. `primary`, `secondary`, `tertiary`).
|
|
93
93
|
* @default 'primary'
|
|
94
94
|
*/
|
|
95
95
|
variant?: LinkVariant;
|
|
@@ -2,96 +2,96 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, ModalAriaAttribute, ModalBackdrop, ModalBackground, BreakpointCustomizable, ModalMotionHiddenEndEventDetail, ModalMotionVisibleEndEventDetail } from '../types';
|
|
3
3
|
export type PModalProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the dialog element for improved accessibility when no visible heading is present.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<ModalAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the backdrop style. Use `blur` when the modal is opened by user interaction; use `shading` when opened automatically (e.g. Cookie Consent).
|
|
10
10
|
* @default 'blur'
|
|
11
11
|
*/
|
|
12
12
|
backdrop?: ModalBackdrop;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the background color of the modal panel (`canvas` or `surface`).
|
|
15
15
|
* @default 'canvas'
|
|
16
16
|
*/
|
|
17
17
|
background?: ModalBackground;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* When enabled, clicking the backdrop will not close the modal.
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
22
|
disableBackdropClick?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Shows a dismiss button in the modal header so the user can manually close it.
|
|
25
25
|
* @default true
|
|
26
26
|
*/
|
|
27
27
|
dismissButton?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Expands the modal to the full viewport size, intended for mobile use cases. Supports responsive breakpoint values.
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
fullscreen?: BreakpointCustomizable<boolean>;
|
|
33
33
|
/**
|
|
34
|
-
* Emitted when the
|
|
34
|
+
* Emitted when the user closes the modal via the dismiss button, backdrop click, or Escape key.
|
|
35
35
|
*/
|
|
36
36
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
37
37
|
/**
|
|
38
|
-
* Emitted
|
|
38
|
+
* Emitted after the modal's close transition completes and the dialog is fully hidden.
|
|
39
39
|
*/
|
|
40
40
|
onMotionHiddenEnd?: (event: CustomEvent<ModalMotionHiddenEndEventDetail>) => void;
|
|
41
41
|
/**
|
|
42
|
-
* Emitted
|
|
42
|
+
* Emitted after the modal's open transition completes and the dialog is fully visible.
|
|
43
43
|
*/
|
|
44
44
|
onMotionVisibleEnd?: (event: CustomEvent<ModalMotionVisibleEndEventDetail>) => void;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Controls whether the modal dialog is visible.
|
|
47
47
|
* @default false
|
|
48
48
|
*/
|
|
49
49
|
open: boolean;
|
|
50
50
|
};
|
|
51
51
|
export declare const PModal: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
52
52
|
/**
|
|
53
|
-
* Sets ARIA attributes.
|
|
53
|
+
* Sets ARIA attributes on the dialog element for improved accessibility when no visible heading is present.
|
|
54
54
|
*/
|
|
55
55
|
aria?: SelectedAriaAttributes<ModalAriaAttribute>;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Sets the backdrop style. Use `blur` when the modal is opened by user interaction; use `shading` when opened automatically (e.g. Cookie Consent).
|
|
58
58
|
* @default 'blur'
|
|
59
59
|
*/
|
|
60
60
|
backdrop?: ModalBackdrop;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Sets the background color of the modal panel (`canvas` or `surface`).
|
|
63
63
|
* @default 'canvas'
|
|
64
64
|
*/
|
|
65
65
|
background?: ModalBackground;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* When enabled, clicking the backdrop will not close the modal.
|
|
68
68
|
* @default false
|
|
69
69
|
*/
|
|
70
70
|
disableBackdropClick?: boolean;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Shows a dismiss button in the modal header so the user can manually close it.
|
|
73
73
|
* @default true
|
|
74
74
|
*/
|
|
75
75
|
dismissButton?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Expands the modal to the full viewport size, intended for mobile use cases. Supports responsive breakpoint values.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
80
|
fullscreen?: BreakpointCustomizable<boolean>;
|
|
81
81
|
/**
|
|
82
|
-
* Emitted when the
|
|
82
|
+
* Emitted when the user closes the modal via the dismiss button, backdrop click, or Escape key.
|
|
83
83
|
*/
|
|
84
84
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
85
85
|
/**
|
|
86
|
-
* Emitted
|
|
86
|
+
* Emitted after the modal's close transition completes and the dialog is fully hidden.
|
|
87
87
|
*/
|
|
88
88
|
onMotionHiddenEnd?: (event: CustomEvent<ModalMotionHiddenEndEventDetail>) => void;
|
|
89
89
|
/**
|
|
90
|
-
* Emitted
|
|
90
|
+
* Emitted after the modal's open transition completes and the dialog is fully visible.
|
|
91
91
|
*/
|
|
92
92
|
onMotionVisibleEnd?: (event: CustomEvent<ModalMotionVisibleEndEventDetail>) => void;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Controls whether the modal dialog is visible.
|
|
95
95
|
* @default false
|
|
96
96
|
*/
|
|
97
97
|
open: boolean;
|
|
@@ -2,64 +2,64 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { ModelSignatureColor, ModelSignatureFetchPriority, ModelSignatureModel, ModelSignatureSize } from '../types';
|
|
3
3
|
export type PModelSignatureProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the fill color of the signature using PDS color tokens.
|
|
6
6
|
* @default 'primary'
|
|
7
7
|
*/
|
|
8
8
|
color?: ModelSignatureColor;
|
|
9
9
|
/**
|
|
10
|
-
* Sets the browser's fetch priority hint for the
|
|
10
|
+
* Sets the browser's fetch priority hint for the signature asset (`auto`, `high`, `low`).
|
|
11
11
|
* @default 'auto'
|
|
12
12
|
*/
|
|
13
13
|
fetchPriority?: ModelSignatureFetchPriority;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Defers loading the signature until it enters the viewport to improve initial page performance.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
lazy?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Selects the Porsche model whose typographic signature SVG is displayed.
|
|
21
21
|
* @default '911'
|
|
22
22
|
*/
|
|
23
23
|
model?: ModelSignatureModel;
|
|
24
24
|
/**
|
|
25
|
-
* When
|
|
25
|
+
* When enabled, adds invisible padding so all model signatures visually align to a consistent baseline.
|
|
26
26
|
* @default true
|
|
27
27
|
*/
|
|
28
28
|
safeZone?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Sets the display size of the signature using predefined PDS sizes. Use `inherit` with a CSS `width` or `height` on the host for custom sizing.
|
|
31
31
|
* @default 'small'
|
|
32
32
|
*/
|
|
33
33
|
size?: ModelSignatureSize;
|
|
34
34
|
};
|
|
35
35
|
export declare const PModelSignature: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Sets the fill color of the signature using PDS color tokens.
|
|
38
38
|
* @default 'primary'
|
|
39
39
|
*/
|
|
40
40
|
color?: ModelSignatureColor;
|
|
41
41
|
/**
|
|
42
|
-
* Sets the browser's fetch priority hint for the
|
|
42
|
+
* Sets the browser's fetch priority hint for the signature asset (`auto`, `high`, `low`).
|
|
43
43
|
* @default 'auto'
|
|
44
44
|
*/
|
|
45
45
|
fetchPriority?: ModelSignatureFetchPriority;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Defers loading the signature until it enters the viewport to improve initial page performance.
|
|
48
48
|
* @default false
|
|
49
49
|
*/
|
|
50
50
|
lazy?: boolean;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Selects the Porsche model whose typographic signature SVG is displayed.
|
|
53
53
|
* @default '911'
|
|
54
54
|
*/
|
|
55
55
|
model?: ModelSignatureModel;
|
|
56
56
|
/**
|
|
57
|
-
* When
|
|
57
|
+
* When enabled, adds invisible padding so all model signatures visually align to a consistent baseline.
|
|
58
58
|
* @default true
|
|
59
59
|
*/
|
|
60
60
|
safeZone?: boolean;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Sets the display size of the signature using predefined PDS sizes. Use `inherit` with a CSS `width` or `height` on the host for custom sizing.
|
|
63
63
|
* @default 'small'
|
|
64
64
|
*/
|
|
65
65
|
size?: ModelSignatureSize;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
2
|
export type PMultiSelectOptionProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
|
-
* Disables the option.
|
|
4
|
+
* Disables the option, preventing it from being selected.
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the value submitted with the form data when this option is selected in the parent multi-select.
|
|
10
10
|
*/
|
|
11
11
|
value: string | number;
|
|
12
12
|
};
|
|
13
13
|
export declare const PMultiSelectOption: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
14
14
|
/**
|
|
15
|
-
* Disables the option.
|
|
15
|
+
* Disables the option, preventing it from being selected.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the value submitted with the form data when this option is selected in the parent multi-select.
|
|
21
21
|
*/
|
|
22
22
|
value: string | number;
|
|
23
23
|
} & {
|