@porsche-design-system/components-react 4.0.0-beta.4 → 4.0.0-rc.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 +72 -4
- package/cjs/lib/components/banner.wrapper.cjs +3 -3
- package/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/esm/lib/components/banner.wrapper.mjs +3 -3
- package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/esm/lib/components/button.wrapper.d.ts +14 -0
- package/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/esm/lib/components/display.wrapper.d.ts +8 -0
- package/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
- package/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/select.wrapper.d.ts +20 -0
- package/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/esm/lib/components/table.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +14 -0
- package/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/esm/lib/types.d.ts +5 -0
- package/global-styles/cn/index.css +1 -0
- package/global-styles/index.css +1 -0
- package/global-styles/variables.css +1 -0
- package/package.json +4 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +723 -775
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +16 -77
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +11 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +4 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -4
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +723 -775
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +15 -76
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +11 -6
- 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/inline-notification.mjs +5 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -5
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/banner.d.ts +2 -2
- package/ssr/esm/lib/types.d.ts +5 -0
- package/tailwindcss/index.css +73 -14
|
@@ -3,12 +3,14 @@ import type { TextListType } from '../types';
|
|
|
3
3
|
export type PTextListProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* The list style type.
|
|
6
|
+
* @default 'unordered'
|
|
6
7
|
*/
|
|
7
8
|
type?: TextListType;
|
|
8
9
|
};
|
|
9
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" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
10
11
|
/**
|
|
11
12
|
* The list style type.
|
|
13
|
+
* @default 'unordered'
|
|
12
14
|
*/
|
|
13
15
|
type?: TextListType;
|
|
14
16
|
} & {
|
|
@@ -3,60 +3,74 @@ import type { TextAlign, TextColor, TextHyphens, BreakpointCustomizable, TextSiz
|
|
|
3
3
|
export type PTextProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the text. Use 'start' for left-aligned text (in LTR), 'center' for centered, 'end' for right-aligned (in LTR), or 'inherit' to adopt the parent's alignment.
|
|
6
|
+
* @default 'start'
|
|
6
7
|
*/
|
|
7
8
|
align?: TextAlign;
|
|
8
9
|
/**
|
|
9
10
|
* Text color of the text. Use 'primary' for default, 'contrast-higher' / 'contrast-high' / 'contrast-medium' for alternative emphasis levels, 'success' / 'warning' / 'error' / 'info' for status messages, or 'inherit' to adopt the parent's color.
|
|
11
|
+
* @default 'primary'
|
|
10
12
|
*/
|
|
11
13
|
color?: TextColor;
|
|
12
14
|
/**
|
|
13
15
|
* Adds an ellipsis to a single line of text if it overflows the container width. When enabled, the text is truncated to a single line with `text-overflow: ellipsis`. Cannot be combined with multi-line content.
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
ellipsis?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* Controls the hyphenation behavior of the text. Use 'auto' to let the browser automatically hyphenate words at appropriate points, 'manual' to only hyphenate at manually inserted hyphenation points (e.g. `­`), 'none' to disable hyphenation entirely, or 'inherit' to adopt the parent's hyphenation setting.
|
|
21
|
+
* @default 'inherit'
|
|
18
22
|
*/
|
|
19
23
|
hyphens?: TextHyphens;
|
|
20
24
|
/**
|
|
21
25
|
* Size of the text. Also defines the size for specific breakpoints, like {base: "sm", l: "md"}. You always need to provide a base value when doing this. Use 'inherit' to adopt the parent's font size.
|
|
26
|
+
* @default 'sm'
|
|
22
27
|
*/
|
|
23
28
|
size?: BreakpointCustomizable<TextSize>;
|
|
24
29
|
/**
|
|
25
30
|
* Sets the HTML tag of the rendered element to ensure correct semantic meaning (e.g. 'p' for paragraphs, 'blockquote' for quotes, 'time' for dates).
|
|
31
|
+
* @default 'p'
|
|
26
32
|
*/
|
|
27
33
|
tag?: TextTag;
|
|
28
34
|
/**
|
|
29
35
|
* The font weight of the text. Use 'normal' for regular body text, 'semibold' for slightly emphasized text, or 'bold' for strong emphasis.
|
|
36
|
+
* @default 'normal'
|
|
30
37
|
*/
|
|
31
38
|
weight?: TextWeight;
|
|
32
39
|
};
|
|
33
40
|
export declare const PText: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
34
41
|
/**
|
|
35
42
|
* Text alignment of the text. Use 'start' for left-aligned text (in LTR), 'center' for centered, 'end' for right-aligned (in LTR), or 'inherit' to adopt the parent's alignment.
|
|
43
|
+
* @default 'start'
|
|
36
44
|
*/
|
|
37
45
|
align?: TextAlign;
|
|
38
46
|
/**
|
|
39
47
|
* Text color of the text. Use 'primary' for default, 'contrast-higher' / 'contrast-high' / 'contrast-medium' for alternative emphasis levels, 'success' / 'warning' / 'error' / 'info' for status messages, or 'inherit' to adopt the parent's color.
|
|
48
|
+
* @default 'primary'
|
|
40
49
|
*/
|
|
41
50
|
color?: TextColor;
|
|
42
51
|
/**
|
|
43
52
|
* Adds an ellipsis to a single line of text if it overflows the container width. When enabled, the text is truncated to a single line with `text-overflow: ellipsis`. Cannot be combined with multi-line content.
|
|
53
|
+
* @default false
|
|
44
54
|
*/
|
|
45
55
|
ellipsis?: boolean;
|
|
46
56
|
/**
|
|
47
57
|
* Controls the hyphenation behavior of the text. Use 'auto' to let the browser automatically hyphenate words at appropriate points, 'manual' to only hyphenate at manually inserted hyphenation points (e.g. `­`), 'none' to disable hyphenation entirely, or 'inherit' to adopt the parent's hyphenation setting.
|
|
58
|
+
* @default 'inherit'
|
|
48
59
|
*/
|
|
49
60
|
hyphens?: TextHyphens;
|
|
50
61
|
/**
|
|
51
62
|
* Size of the text. Also defines the size for specific breakpoints, like {base: "sm", l: "md"}. You always need to provide a base value when doing this. Use 'inherit' to adopt the parent's font size.
|
|
63
|
+
* @default 'sm'
|
|
52
64
|
*/
|
|
53
65
|
size?: BreakpointCustomizable<TextSize>;
|
|
54
66
|
/**
|
|
55
67
|
* Sets the HTML tag of the rendered element to ensure correct semantic meaning (e.g. 'p' for paragraphs, 'blockquote' for quotes, 'time' for dates).
|
|
68
|
+
* @default 'p'
|
|
56
69
|
*/
|
|
57
70
|
tag?: TextTag;
|
|
58
71
|
/**
|
|
59
72
|
* The font weight of the text. Use 'normal' for regular body text, 'semibold' for slightly emphasized text, or 'bold' for strong emphasis.
|
|
73
|
+
* @default 'normal'
|
|
60
74
|
*/
|
|
61
75
|
weight?: TextWeight;
|
|
62
76
|
} & {
|
|
@@ -7,18 +7,22 @@ export type PTextareaProps = BaseProps & {
|
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Displays the textarea in compact mode.
|
|
10
|
+
* @default false
|
|
10
11
|
*/
|
|
11
12
|
compact?: boolean;
|
|
12
13
|
/**
|
|
13
14
|
* Show or hide the character counter.
|
|
15
|
+
* @default false
|
|
14
16
|
*/
|
|
15
17
|
counter?: boolean;
|
|
16
18
|
/**
|
|
17
19
|
* Supplementary text providing more context or explanation for the textarea.
|
|
20
|
+
* @default ''
|
|
18
21
|
*/
|
|
19
22
|
description?: string;
|
|
20
23
|
/**
|
|
21
24
|
* Disables the textarea. The value will not be submitted with the form.
|
|
25
|
+
* @default false
|
|
22
26
|
*/
|
|
23
27
|
disabled?: boolean;
|
|
24
28
|
/**
|
|
@@ -27,10 +31,12 @@ export type PTextareaProps = BaseProps & {
|
|
|
27
31
|
form?: string;
|
|
28
32
|
/**
|
|
29
33
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
34
|
+
* @default false
|
|
30
35
|
*/
|
|
31
36
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
37
|
/**
|
|
33
38
|
* Text content for a user-facing label.
|
|
39
|
+
* @default ''
|
|
34
40
|
*/
|
|
35
41
|
label?: string;
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export type PTextareaProps = BaseProps & {
|
|
|
39
45
|
maxLength?: number;
|
|
40
46
|
/**
|
|
41
47
|
* Dynamic feedback text for validation or status.
|
|
48
|
+
* @default ''
|
|
42
49
|
*/
|
|
43
50
|
message?: string;
|
|
44
51
|
/**
|
|
@@ -63,22 +70,27 @@ export type PTextareaProps = BaseProps & {
|
|
|
63
70
|
onInput?: (event: CustomEvent<TextareaInputEventDetail>) => void;
|
|
64
71
|
/**
|
|
65
72
|
* A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Write your message here...'). This text is displayed when the textarea is empty.
|
|
73
|
+
* @default ''
|
|
66
74
|
*/
|
|
67
75
|
placeholder?: string;
|
|
68
76
|
/**
|
|
69
77
|
* A boolean value that, if present, makes the textarea uneditable by the user, but its value will still be submitted with the form.
|
|
78
|
+
* @default false
|
|
70
79
|
*/
|
|
71
80
|
readOnly?: boolean;
|
|
72
81
|
/**
|
|
73
82
|
* A boolean value that, if present, indicates that the textarea must be filled out before the form can be submitted.
|
|
83
|
+
* @default false
|
|
74
84
|
*/
|
|
75
85
|
required?: boolean;
|
|
76
86
|
/**
|
|
77
87
|
* Controls whether the textarea is resizable and in which direction.
|
|
88
|
+
* @default 'vertical'
|
|
78
89
|
*/
|
|
79
90
|
resize?: TextareaResize;
|
|
80
91
|
/**
|
|
81
92
|
* The number of rows. Has no effect when field-sizing CSS Variable '--p-textarea-field-sizing' is set to 'content'.
|
|
93
|
+
* @default 7
|
|
82
94
|
*/
|
|
83
95
|
rows?: number;
|
|
84
96
|
/**
|
|
@@ -87,14 +99,17 @@ export type PTextareaProps = BaseProps & {
|
|
|
87
99
|
spellCheck?: boolean;
|
|
88
100
|
/**
|
|
89
101
|
* Indicates the validation or overall status of the textarea component.
|
|
102
|
+
* @default 'none'
|
|
90
103
|
*/
|
|
91
104
|
state?: TextareaState;
|
|
92
105
|
/**
|
|
93
106
|
* The textarea value.
|
|
107
|
+
* @default ''
|
|
94
108
|
*/
|
|
95
109
|
value?: string;
|
|
96
110
|
/**
|
|
97
111
|
* Handles wrapping behavior of elements.
|
|
112
|
+
* @default 'soft'
|
|
98
113
|
*/
|
|
99
114
|
wrap?: TextareaWrap;
|
|
100
115
|
};
|
|
@@ -105,18 +120,22 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
105
120
|
autoComplete?: string;
|
|
106
121
|
/**
|
|
107
122
|
* Displays the textarea in compact mode.
|
|
123
|
+
* @default false
|
|
108
124
|
*/
|
|
109
125
|
compact?: boolean;
|
|
110
126
|
/**
|
|
111
127
|
* Show or hide the character counter.
|
|
128
|
+
* @default false
|
|
112
129
|
*/
|
|
113
130
|
counter?: boolean;
|
|
114
131
|
/**
|
|
115
132
|
* Supplementary text providing more context or explanation for the textarea.
|
|
133
|
+
* @default ''
|
|
116
134
|
*/
|
|
117
135
|
description?: string;
|
|
118
136
|
/**
|
|
119
137
|
* Disables the textarea. The value will not be submitted with the form.
|
|
138
|
+
* @default false
|
|
120
139
|
*/
|
|
121
140
|
disabled?: boolean;
|
|
122
141
|
/**
|
|
@@ -125,10 +144,12 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
125
144
|
form?: string;
|
|
126
145
|
/**
|
|
127
146
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
147
|
+
* @default false
|
|
128
148
|
*/
|
|
129
149
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
130
150
|
/**
|
|
131
151
|
* Text content for a user-facing label.
|
|
152
|
+
* @default ''
|
|
132
153
|
*/
|
|
133
154
|
label?: string;
|
|
134
155
|
/**
|
|
@@ -137,6 +158,7 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
137
158
|
maxLength?: number;
|
|
138
159
|
/**
|
|
139
160
|
* Dynamic feedback text for validation or status.
|
|
161
|
+
* @default ''
|
|
140
162
|
*/
|
|
141
163
|
message?: string;
|
|
142
164
|
/**
|
|
@@ -161,22 +183,27 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
161
183
|
onInput?: (event: CustomEvent<TextareaInputEventDetail>) => void;
|
|
162
184
|
/**
|
|
163
185
|
* A string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Write your message here...'). This text is displayed when the textarea is empty.
|
|
186
|
+
* @default ''
|
|
164
187
|
*/
|
|
165
188
|
placeholder?: string;
|
|
166
189
|
/**
|
|
167
190
|
* A boolean value that, if present, makes the textarea uneditable by the user, but its value will still be submitted with the form.
|
|
191
|
+
* @default false
|
|
168
192
|
*/
|
|
169
193
|
readOnly?: boolean;
|
|
170
194
|
/**
|
|
171
195
|
* A boolean value that, if present, indicates that the textarea must be filled out before the form can be submitted.
|
|
196
|
+
* @default false
|
|
172
197
|
*/
|
|
173
198
|
required?: boolean;
|
|
174
199
|
/**
|
|
175
200
|
* Controls whether the textarea is resizable and in which direction.
|
|
201
|
+
* @default 'vertical'
|
|
176
202
|
*/
|
|
177
203
|
resize?: TextareaResize;
|
|
178
204
|
/**
|
|
179
205
|
* The number of rows. Has no effect when field-sizing CSS Variable '--p-textarea-field-sizing' is set to 'content'.
|
|
206
|
+
* @default 7
|
|
180
207
|
*/
|
|
181
208
|
rows?: number;
|
|
182
209
|
/**
|
|
@@ -185,14 +212,17 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
185
212
|
spellCheck?: boolean;
|
|
186
213
|
/**
|
|
187
214
|
* Indicates the validation or overall status of the textarea component.
|
|
215
|
+
* @default 'none'
|
|
188
216
|
*/
|
|
189
217
|
state?: TextareaState;
|
|
190
218
|
/**
|
|
191
219
|
* The textarea value.
|
|
220
|
+
* @default ''
|
|
192
221
|
*/
|
|
193
222
|
value?: string;
|
|
194
223
|
/**
|
|
195
224
|
* Handles wrapping behavior of elements.
|
|
225
|
+
* @default 'soft'
|
|
196
226
|
*/
|
|
197
227
|
wrap?: TextareaWrap;
|
|
198
228
|
} & {
|
|
@@ -11,10 +11,12 @@ export type PWordmarkProps = BaseProps & {
|
|
|
11
11
|
href?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Controls the size of the wordmark.
|
|
14
|
+
* @default 'small'
|
|
14
15
|
*/
|
|
15
16
|
size?: WordmarkSize;
|
|
16
17
|
/**
|
|
17
18
|
* Specifies where to open the linked document.
|
|
19
|
+
* @default '_self'
|
|
18
20
|
*/
|
|
19
21
|
target?: WordmarkTarget;
|
|
20
22
|
};
|
|
@@ -29,10 +31,12 @@ export declare const PWordmark: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
29
31
|
href?: string;
|
|
30
32
|
/**
|
|
31
33
|
* Controls the size of the wordmark.
|
|
34
|
+
* @default 'small'
|
|
32
35
|
*/
|
|
33
36
|
size?: WordmarkSize;
|
|
34
37
|
/**
|
|
35
38
|
* Specifies where to open the linked document.
|
|
39
|
+
* @default '_self'
|
|
36
40
|
*/
|
|
37
41
|
target?: WordmarkTarget;
|
|
38
42
|
} & import("react").RefAttributes<HTMLElement>>;
|
package/ssr/esm/lib/types.d.ts
CHANGED
|
@@ -784,6 +784,11 @@ export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAt
|
|
|
784
784
|
export type SelectedAriaRole<T> = {
|
|
785
785
|
role: Extract<AriaRole, T>;
|
|
786
786
|
};
|
|
787
|
+
declare const BANNER_POSITIONS: readonly [
|
|
788
|
+
"top",
|
|
789
|
+
"bottom"
|
|
790
|
+
];
|
|
791
|
+
export type BannerPosition = (typeof BANNER_POSITIONS)[number];
|
|
787
792
|
declare const BANNER_STATES: readonly [
|
|
788
793
|
"info",
|
|
789
794
|
"success",
|
package/tailwindcss/index.css
CHANGED
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
--spacing-fluid-xl: clamp(48px, 3vw + 38px, 96px);
|
|
164
164
|
--spacing-fluid-2xl: clamp(80px, 7.5vw + 56px, 200px);
|
|
165
165
|
|
|
166
|
+
--spacing-static-2xs: 1px;
|
|
166
167
|
--spacing-static-xs: 4px;
|
|
167
168
|
--spacing-static-sm: 8px;
|
|
168
169
|
--spacing-static-md: 16px;
|
|
@@ -475,48 +476,106 @@
|
|
|
475
476
|
|
|
476
477
|
/* Typography: Text */
|
|
477
478
|
@utility prose-text-2xs {
|
|
478
|
-
|
|
479
|
+
font: var(--font-weight-normal) var(--text-2xs) / var(--leading-normal)
|
|
480
|
+
var(--font-porsche-next);
|
|
481
|
+
color: var(--color-primary);
|
|
479
482
|
}
|
|
480
483
|
@utility prose-text-xs {
|
|
481
|
-
|
|
484
|
+
font: var(--font-weight-normal) var(--text-xs) / var(--leading-normal)
|
|
485
|
+
var(--font-porsche-next);
|
|
486
|
+
color: var(--color-primary);
|
|
482
487
|
}
|
|
483
488
|
@utility prose-text-sm {
|
|
484
|
-
|
|
489
|
+
font: var(--font-weight-normal) var(--text-sm) / var(--leading-normal)
|
|
490
|
+
var(--font-porsche-next);
|
|
491
|
+
color: var(--color-primary);
|
|
485
492
|
}
|
|
486
493
|
@utility prose-text-md {
|
|
487
|
-
|
|
494
|
+
font: var(--font-weight-normal) var(--text-md) / var(--leading-normal)
|
|
495
|
+
var(--font-porsche-next);
|
|
496
|
+
color: var(--color-primary);
|
|
488
497
|
}
|
|
489
498
|
@utility prose-text-lg {
|
|
490
|
-
|
|
499
|
+
font: var(--font-weight-normal) var(--text-lg) / var(--leading-normal)
|
|
500
|
+
var(--font-porsche-next);
|
|
501
|
+
color: var(--color-primary);
|
|
491
502
|
}
|
|
492
503
|
@utility prose-text-xl {
|
|
493
|
-
|
|
504
|
+
font: var(--font-weight-normal) var(--text-xl) / var(--leading-normal)
|
|
505
|
+
var(--font-porsche-next);
|
|
506
|
+
color: var(--color-primary);
|
|
507
|
+
}
|
|
508
|
+
@utility prose-text-2xl {
|
|
509
|
+
font: var(--font-weight-normal) var(--text-2xl) / var(--leading-normal)
|
|
510
|
+
var(--font-porsche-next);
|
|
511
|
+
color: var(--color-primary);
|
|
512
|
+
}
|
|
513
|
+
@utility prose-text-3xl {
|
|
514
|
+
font: var(--font-weight-normal) var(--text-3xl) / var(--leading-normal)
|
|
515
|
+
var(--font-porsche-next);
|
|
516
|
+
color: var(--color-primary);
|
|
517
|
+
}
|
|
518
|
+
@utility prose-text-4xl {
|
|
519
|
+
font: var(--font-weight-normal) var(--text-4xl) / var(--leading-normal)
|
|
520
|
+
var(--font-porsche-next);
|
|
521
|
+
color: var(--color-primary);
|
|
522
|
+
}
|
|
523
|
+
@utility prose-text-5xl {
|
|
524
|
+
font: var(--font-weight-normal) var(--text-5xl) / var(--leading-normal)
|
|
525
|
+
var(--font-porsche-next);
|
|
526
|
+
color: var(--color-primary);
|
|
494
527
|
}
|
|
495
528
|
|
|
496
529
|
/* Typography: Heading */
|
|
530
|
+
@utility prose-heading-2xs {
|
|
531
|
+
font: var(--font-weight-semibold) var(--text-2xs) / var(--leading-normal)
|
|
532
|
+
var(--font-porsche-next);
|
|
533
|
+
color: var(--color-primary);
|
|
534
|
+
}
|
|
535
|
+
@utility prose-heading-xs {
|
|
536
|
+
font: var(--font-weight-semibold) var(--text-xs) / var(--leading-normal)
|
|
537
|
+
var(--font-porsche-next);
|
|
538
|
+
color: var(--color-primary);
|
|
539
|
+
}
|
|
497
540
|
@utility prose-heading-sm {
|
|
498
|
-
|
|
541
|
+
font: var(--font-weight-semibold) var(--text-sm) / var(--leading-normal)
|
|
542
|
+
var(--font-porsche-next);
|
|
543
|
+
color: var(--color-primary);
|
|
499
544
|
}
|
|
500
545
|
@utility prose-heading-md {
|
|
501
|
-
|
|
546
|
+
font: var(--font-weight-normal) var(--text-md) / var(--leading-normal)
|
|
547
|
+
var(--font-porsche-next);
|
|
548
|
+
color: var(--color-primary);
|
|
502
549
|
}
|
|
503
550
|
@utility prose-heading-lg {
|
|
504
|
-
|
|
551
|
+
font: var(--font-weight-normal) var(--text-lg) / var(--leading-normal)
|
|
552
|
+
var(--font-porsche-next);
|
|
553
|
+
color: var(--color-primary);
|
|
505
554
|
}
|
|
506
555
|
@utility prose-heading-xl {
|
|
507
|
-
|
|
556
|
+
font: var(--font-weight-normal) var(--text-xl) / var(--leading-normal)
|
|
557
|
+
var(--font-porsche-next);
|
|
558
|
+
color: var(--color-primary);
|
|
508
559
|
}
|
|
509
560
|
@utility prose-heading-2xl {
|
|
510
|
-
|
|
561
|
+
font: var(--font-weight-normal) var(--text-2xl) / var(--leading-normal)
|
|
562
|
+
var(--font-porsche-next);
|
|
563
|
+
color: var(--color-primary);
|
|
511
564
|
}
|
|
512
565
|
@utility prose-heading-3xl {
|
|
513
|
-
|
|
566
|
+
font: var(--font-weight-normal) var(--text-3xl) / var(--leading-normal)
|
|
567
|
+
var(--font-porsche-next);
|
|
568
|
+
color: var(--color-primary);
|
|
514
569
|
}
|
|
515
570
|
@utility prose-heading-4xl {
|
|
516
|
-
|
|
571
|
+
font: var(--font-weight-normal) var(--text-4xl) / var(--leading-normal)
|
|
572
|
+
var(--font-porsche-next);
|
|
573
|
+
color: var(--color-primary);
|
|
517
574
|
}
|
|
518
575
|
@utility prose-heading-5xl {
|
|
519
|
-
|
|
576
|
+
font: var(--font-weight-normal) var(--text-5xl) / var(--leading-normal)
|
|
577
|
+
var(--font-porsche-next);
|
|
578
|
+
color: var(--color-primary);
|
|
520
579
|
}
|
|
521
580
|
|
|
522
581
|
/* Typography: Display */
|