@porsche-design-system/components-react 4.2.0-rc.5 → 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 +4 -0
- 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 +20 -20
- 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 +60 -312
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +40 -71
- 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 +1 -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 +1 -1
- 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 +1 -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 +1 -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 +60 -312
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +40 -71
- 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/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +20 -20
- 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/popover.d.ts +1 -1
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
2
|
export type PTabsItemProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Sets the label text displayed in the tab navigation button that the user clicks to activate this tab's content.
|
|
5
5
|
*/
|
|
6
6
|
label: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const PTabsItem: 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"> & {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the label text displayed in the tab navigation button that the user clicks to activate this tab's content.
|
|
11
11
|
*/
|
|
12
12
|
label: string;
|
|
13
13
|
} & {
|
|
@@ -2,25 +2,25 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TabsBackground, TabsUpdateEventDetail, BreakpointCustomizable, TabsSize, TabsWeight } from '../types';
|
|
3
3
|
export type PTabsProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the zero-based index of the currently active tab; update this prop to switch tabs programmatically.
|
|
6
6
|
* @default 0
|
|
7
7
|
*/
|
|
8
8
|
activeTabIndex?: number;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the background color of the tabs bar. Use `frosted` only when placed on top of images, videos, or gradients.
|
|
11
11
|
* @default 'none'
|
|
12
12
|
*/
|
|
13
13
|
background?: TabsBackground;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Reduces the tab height and padding for use in dense layouts where vertical space is limited.
|
|
16
16
|
*/
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
* Emitted when
|
|
19
|
+
* Emitted when the user switches to a different tab, carrying the new `activeTabIndex` in the event detail.
|
|
20
20
|
*/
|
|
21
21
|
onUpdate?: (event: CustomEvent<TabsUpdateEventDetail>) => void;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Sets the font size of the tab labels using the PDS typographic scale. Supports responsive breakpoint values.
|
|
24
24
|
* @default 'small'
|
|
25
25
|
*/
|
|
26
26
|
size?: BreakpointCustomizable<TabsSize>;
|
|
@@ -32,25 +32,25 @@ export type PTabsProps = BaseProps & {
|
|
|
32
32
|
};
|
|
33
33
|
export declare const PTabs: 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"> & {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Sets the zero-based index of the currently active tab; update this prop to switch tabs programmatically.
|
|
36
36
|
* @default 0
|
|
37
37
|
*/
|
|
38
38
|
activeTabIndex?: number;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the background color of the tabs bar. Use `frosted` only when placed on top of images, videos, or gradients.
|
|
41
41
|
* @default 'none'
|
|
42
42
|
*/
|
|
43
43
|
background?: TabsBackground;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Reduces the tab height and padding for use in dense layouts where vertical space is limited.
|
|
46
46
|
*/
|
|
47
47
|
compact?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
* Emitted when
|
|
49
|
+
* Emitted when the user switches to a different tab, carrying the new `activeTabIndex` in the event detail.
|
|
50
50
|
*/
|
|
51
51
|
onUpdate?: (event: CustomEvent<TabsUpdateEventDetail>) => void;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Sets the font size of the tab labels using the PDS typographic scale. Supports responsive breakpoint values.
|
|
54
54
|
* @default 'small'
|
|
55
55
|
*/
|
|
56
56
|
size?: BreakpointCustomizable<TabsSize>;
|
|
@@ -2,31 +2,31 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, TagDismissibleAriaAttribute } from '../types';
|
|
3
3
|
export type PTagDismissibleProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the dismiss button element, for example use `aria-label` to provide a descriptive close action for screen readers.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the visible label text displayed inside the tag alongside the dismiss button.
|
|
15
15
|
*/
|
|
16
16
|
label?: string;
|
|
17
17
|
};
|
|
18
18
|
export declare const PTagDismissible: 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"> & {
|
|
19
19
|
/**
|
|
20
|
-
* Sets ARIA attributes.
|
|
20
|
+
* Sets ARIA attributes on the dismiss button element, for example use `aria-label` to provide a descriptive close action for screen readers.
|
|
21
21
|
*/
|
|
22
22
|
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
compact?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the visible label text displayed inside the tag alongside the dismiss button.
|
|
30
30
|
*/
|
|
31
31
|
label?: string;
|
|
32
32
|
} & {
|
|
@@ -2,42 +2,42 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TagIcon, TagVariant } from '../types';
|
|
3
3
|
export type PTagProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
compact?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the icon displayed inside the tag alongside the label. Use `none` to render the tag without an icon.
|
|
11
11
|
* @default 'none'
|
|
12
12
|
*/
|
|
13
13
|
icon?: TagIcon;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets a URL to a custom SVG icon, overriding the built-in icon set when a brand-specific icon is needed.
|
|
16
16
|
*/
|
|
17
17
|
iconSource?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the visual style of the tag, which controls its background and text colors (e.g. `primary`, `secondary`, `notification-info`).
|
|
20
20
|
* @default 'secondary'
|
|
21
21
|
*/
|
|
22
22
|
variant?: TagVariant;
|
|
23
23
|
};
|
|
24
24
|
export declare const PTag: 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"> & {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
compact?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the icon displayed inside the tag alongside the label. Use `none` to render the tag without an icon.
|
|
32
32
|
* @default 'none'
|
|
33
33
|
*/
|
|
34
34
|
icon?: TagIcon;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Sets a URL to a custom SVG icon, overriding the built-in icon set when a brand-specific icon is needed.
|
|
37
37
|
*/
|
|
38
38
|
iconSource?: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the visual style of the tag, which controls its background and text colors (e.g. `primary`, `secondary`, `notification-info`).
|
|
41
41
|
* @default 'secondary'
|
|
42
42
|
*/
|
|
43
43
|
variant?: TagVariant;
|
|
@@ -2,14 +2,14 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { TextListType } from '../types';
|
|
3
3
|
export type PTextListProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the list type to either `unordered` (bulleted) or `ordered` (numbered), controlling the rendered HTML element (`ul` vs `ol`).
|
|
6
6
|
* @default 'unordered'
|
|
7
7
|
*/
|
|
8
8
|
type?: TextListType;
|
|
9
9
|
};
|
|
10
10
|
export declare const PTextList: 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"> & {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Sets the list type to either `unordered` (bulleted) or `ordered` (numbered), controlling the rendered HTML element (`ul` vs `ol`).
|
|
13
13
|
* @default 'unordered'
|
|
14
14
|
*/
|
|
15
15
|
type?: TextListType;
|
|
@@ -2,226 +2,226 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, TextareaBlurEventDetail, TextareaChangeEventDetail, TextareaInputEventDetail, TextareaResize, TextareaState, TextareaWrap } from '../types';
|
|
3
3
|
export type PTextareaProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Provides
|
|
5
|
+
* Provides the browser with a hint to enable text autofill suggestions for the textarea (e.g. `autocomplete='on'`).
|
|
6
6
|
*/
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the textarea's initial height and padding for use in dense layouts where vertical space is limited.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Shows a live character counter below the textarea indicating how many characters the user has typed relative to `maxLength`.
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
counter?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the textarea.
|
|
20
20
|
* @default ''
|
|
21
21
|
*/
|
|
22
22
|
description?: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Prevents user interaction with the textarea and excludes its value from form submissions.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Associates the textarea with a form element by its ID when the textarea is not a direct descendant of that form.
|
|
30
30
|
*/
|
|
31
31
|
form?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the visible label text displayed above the textarea to identify its purpose.
|
|
39
39
|
* @default ''
|
|
40
40
|
*/
|
|
41
41
|
label?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Sets the maximum number of characters the user is allowed to enter into the textarea.
|
|
44
44
|
*/
|
|
45
45
|
maxLength?: number;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the validation feedback message displayed below the textarea when `state` is `success` or `error`.
|
|
48
48
|
* @default ''
|
|
49
49
|
*/
|
|
50
50
|
message?: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Sets the minimum number of characters required for the textarea's value to pass constraint validation.
|
|
53
53
|
*/
|
|
54
54
|
minLength?: number;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Sets the name of the textarea submitted with the form data to identify this field's value on the server.
|
|
57
57
|
*/
|
|
58
58
|
name: string;
|
|
59
59
|
/**
|
|
60
|
-
* Emitted when the textarea
|
|
60
|
+
* Emitted when the textarea element loses focus, regardless of whether the value changed.
|
|
61
61
|
*/
|
|
62
62
|
onBlur?: (event: CustomEvent<TextareaBlurEventDetail>) => void;
|
|
63
63
|
/**
|
|
64
|
-
* Emitted when the textarea loses focus after its value was changed.
|
|
64
|
+
* Emitted when the textarea loses focus after its value was changed, equivalent to the native `change` event.
|
|
65
65
|
*/
|
|
66
66
|
onChange?: (event: CustomEvent<TextareaChangeEventDetail>) => void;
|
|
67
67
|
/**
|
|
68
|
-
* Emitted
|
|
68
|
+
* Emitted on every keystroke or value change as a direct result of user interaction, equivalent to the native `input` event.
|
|
69
69
|
*/
|
|
70
70
|
onInput?: (event: CustomEvent<TextareaInputEventDetail>) => void;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Sets placeholder text displayed inside the textarea when it is empty to hint at the expected content format.
|
|
73
73
|
* @default ''
|
|
74
74
|
*/
|
|
75
75
|
placeholder?: string;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Makes the textarea read-only so users cannot modify the value, while still including it in form submissions.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
80
|
readOnly?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Marks the textarea as required so the form cannot be submitted while this field is empty.
|
|
83
83
|
* @default false
|
|
84
84
|
*/
|
|
85
85
|
required?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
* Controls whether the textarea
|
|
87
|
+
* Controls whether and in which direction the user can resize the textarea (`horizontal`, `vertical`, `both`, or `none`).
|
|
88
88
|
* @default 'vertical'
|
|
89
89
|
*/
|
|
90
90
|
resize?: TextareaResize;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Sets the initial visible height of the textarea in lines of text. Has no effect when the `--p-textarea-field-sizing` CSS variable is set to `content`.
|
|
93
93
|
* @default 7
|
|
94
94
|
*/
|
|
95
95
|
rows?: number;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Controls whether the browser's built-in spell-checking and grammar checking is enabled for the textarea content.
|
|
98
98
|
*/
|
|
99
99
|
spellCheck?: boolean;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Sets the validation state of the textarea, which controls its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
102
102
|
* @default 'none'
|
|
103
103
|
*/
|
|
104
104
|
state?: TextareaState;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Sets the current multi-line text value of the textarea and reflects any changes made by the user.
|
|
107
107
|
* @default ''
|
|
108
108
|
*/
|
|
109
109
|
value?: string | null;
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* Controls how the submitted text wraps in the form data: `soft` wraps only visually, `hard` inserts line breaks at the textarea width.
|
|
112
112
|
* @default 'soft'
|
|
113
113
|
*/
|
|
114
114
|
wrap?: TextareaWrap;
|
|
115
115
|
};
|
|
116
116
|
export declare const PTextarea: 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"> & {
|
|
117
117
|
/**
|
|
118
|
-
* Provides
|
|
118
|
+
* Provides the browser with a hint to enable text autofill suggestions for the textarea (e.g. `autocomplete='on'`).
|
|
119
119
|
*/
|
|
120
120
|
autoComplete?: string;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Reduces the textarea's initial height and padding for use in dense layouts where vertical space is limited.
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
125
|
compact?: boolean;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Shows a live character counter below the textarea indicating how many characters the user has typed relative to `maxLength`.
|
|
128
128
|
* @default false
|
|
129
129
|
*/
|
|
130
130
|
counter?: boolean;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the textarea.
|
|
133
133
|
* @default ''
|
|
134
134
|
*/
|
|
135
135
|
description?: string;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* Prevents user interaction with the textarea and excludes its value from form submissions.
|
|
138
138
|
* @default false
|
|
139
139
|
*/
|
|
140
140
|
disabled?: boolean;
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* Associates the textarea with a form element by its ID when the textarea is not a direct descendant of that form.
|
|
143
143
|
*/
|
|
144
144
|
form?: string;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
147
147
|
* @default false
|
|
148
148
|
*/
|
|
149
149
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* Sets the visible label text displayed above the textarea to identify its purpose.
|
|
152
152
|
* @default ''
|
|
153
153
|
*/
|
|
154
154
|
label?: string;
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
156
|
+
* Sets the maximum number of characters the user is allowed to enter into the textarea.
|
|
157
157
|
*/
|
|
158
158
|
maxLength?: number;
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* Sets the validation feedback message displayed below the textarea when `state` is `success` or `error`.
|
|
161
161
|
* @default ''
|
|
162
162
|
*/
|
|
163
163
|
message?: string;
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* Sets the minimum number of characters required for the textarea's value to pass constraint validation.
|
|
166
166
|
*/
|
|
167
167
|
minLength?: number;
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Sets the name of the textarea submitted with the form data to identify this field's value on the server.
|
|
170
170
|
*/
|
|
171
171
|
name: string;
|
|
172
172
|
/**
|
|
173
|
-
* Emitted when the textarea
|
|
173
|
+
* Emitted when the textarea element loses focus, regardless of whether the value changed.
|
|
174
174
|
*/
|
|
175
175
|
onBlur?: (event: CustomEvent<TextareaBlurEventDetail>) => void;
|
|
176
176
|
/**
|
|
177
|
-
* Emitted when the textarea loses focus after its value was changed.
|
|
177
|
+
* Emitted when the textarea loses focus after its value was changed, equivalent to the native `change` event.
|
|
178
178
|
*/
|
|
179
179
|
onChange?: (event: CustomEvent<TextareaChangeEventDetail>) => void;
|
|
180
180
|
/**
|
|
181
|
-
* Emitted
|
|
181
|
+
* Emitted on every keystroke or value change as a direct result of user interaction, equivalent to the native `input` event.
|
|
182
182
|
*/
|
|
183
183
|
onInput?: (event: CustomEvent<TextareaInputEventDetail>) => void;
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Sets placeholder text displayed inside the textarea when it is empty to hint at the expected content format.
|
|
186
186
|
* @default ''
|
|
187
187
|
*/
|
|
188
188
|
placeholder?: string;
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Makes the textarea read-only so users cannot modify the value, while still including it in form submissions.
|
|
191
191
|
* @default false
|
|
192
192
|
*/
|
|
193
193
|
readOnly?: boolean;
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
195
|
+
* Marks the textarea as required so the form cannot be submitted while this field is empty.
|
|
196
196
|
* @default false
|
|
197
197
|
*/
|
|
198
198
|
required?: boolean;
|
|
199
199
|
/**
|
|
200
|
-
* Controls whether the textarea
|
|
200
|
+
* Controls whether and in which direction the user can resize the textarea (`horizontal`, `vertical`, `both`, or `none`).
|
|
201
201
|
* @default 'vertical'
|
|
202
202
|
*/
|
|
203
203
|
resize?: TextareaResize;
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
205
|
+
* Sets the initial visible height of the textarea in lines of text. Has no effect when the `--p-textarea-field-sizing` CSS variable is set to `content`.
|
|
206
206
|
* @default 7
|
|
207
207
|
*/
|
|
208
208
|
rows?: number;
|
|
209
209
|
/**
|
|
210
|
-
*
|
|
210
|
+
* Controls whether the browser's built-in spell-checking and grammar checking is enabled for the textarea content.
|
|
211
211
|
*/
|
|
212
212
|
spellCheck?: boolean;
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* Sets the validation state of the textarea, which controls its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
215
215
|
* @default 'none'
|
|
216
216
|
*/
|
|
217
217
|
state?: TextareaState;
|
|
218
218
|
/**
|
|
219
|
-
*
|
|
219
|
+
* Sets the current multi-line text value of the textarea and reflects any changes made by the user.
|
|
220
220
|
* @default ''
|
|
221
221
|
*/
|
|
222
222
|
value?: string | null;
|
|
223
223
|
/**
|
|
224
|
-
*
|
|
224
|
+
* Controls how the submitted text wraps in the form data: `soft` wraps only visually, `hard` inserts line breaks at the textarea width.
|
|
225
225
|
* @default 'soft'
|
|
226
226
|
*/
|
|
227
227
|
wrap?: TextareaWrap;
|
|
@@ -2,40 +2,40 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, WordmarkAriaAttribute, WordmarkSize, WordmarkTarget } from '../types';
|
|
3
3
|
export type PWordmarkProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the anchor element to improve accessibility when the wordmark is used as a link.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<WordmarkAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
* When
|
|
9
|
+
* When set, wraps the wordmark in an anchor element that navigates to the given URL on click.
|
|
10
10
|
*/
|
|
11
11
|
href?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the display size of the Porsche wordmark SVG using predefined PDS size tokens (`small`, `medium`, `large`, `inherit`).
|
|
14
14
|
* @default 'small'
|
|
15
15
|
*/
|
|
16
16
|
size?: WordmarkSize;
|
|
17
17
|
/**
|
|
18
|
-
* Specifies where to open the linked
|
|
18
|
+
* Specifies where to open the linked URL when `href` is set (e.g. `_self`, `_blank`).
|
|
19
19
|
* @default '_self'
|
|
20
20
|
*/
|
|
21
21
|
target?: WordmarkTarget;
|
|
22
22
|
};
|
|
23
23
|
export declare const PWordmark: 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"> & {
|
|
24
24
|
/**
|
|
25
|
-
* Sets ARIA attributes.
|
|
25
|
+
* Sets ARIA attributes on the anchor element to improve accessibility when the wordmark is used as a link.
|
|
26
26
|
*/
|
|
27
27
|
aria?: SelectedAriaAttributes<WordmarkAriaAttribute>;
|
|
28
28
|
/**
|
|
29
|
-
* When
|
|
29
|
+
* When set, wraps the wordmark in an anchor element that navigates to the given URL on click.
|
|
30
30
|
*/
|
|
31
31
|
href?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Sets the display size of the Porsche wordmark SVG using predefined PDS size tokens (`small`, `medium`, `large`, `inherit`).
|
|
34
34
|
* @default 'small'
|
|
35
35
|
*/
|
|
36
36
|
size?: WordmarkSize;
|
|
37
37
|
/**
|
|
38
|
-
* Specifies where to open the linked
|
|
38
|
+
* Specifies where to open the linked URL when `href` is set (e.g. `_self`, `_blank`).
|
|
39
39
|
* @default '_self'
|
|
40
40
|
*/
|
|
41
41
|
target?: WordmarkTarget;
|
|
@@ -2,7 +2,7 @@ import { Component } from 'react';
|
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* @slot {"name": "", "description": "Default slot for the popover content." }
|
|
5
|
-
* @slot {"name": "button", "description": "
|
|
5
|
+
* @slot {"name": "button", "description": "Renders a custom trigger button. When used, the default info button is replaced." }
|
|
6
6
|
*/
|
|
7
7
|
export declare class DSRPopover extends Component<any> {
|
|
8
8
|
host: HTMLElement;
|