@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,52 +3,64 @@ import type { ModelSignatureColor, ModelSignatureFetchPriority, ModelSignatureMo
|
|
|
3
3
|
export type PModelSignatureProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Adapts the color of the component.
|
|
6
|
+
* @default 'primary'
|
|
6
7
|
*/
|
|
7
8
|
color?: ModelSignatureColor;
|
|
8
9
|
/**
|
|
9
10
|
* Sets the browser's fetch priority hint for the model signature asset.
|
|
11
|
+
* @default 'auto'
|
|
10
12
|
*/
|
|
11
13
|
fetchPriority?: ModelSignatureFetchPriority;
|
|
12
14
|
/**
|
|
13
15
|
* Defines whether the model signature is always loaded or only loaded when it is in the viewport (this feature may not work reliably).
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
lazy?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* Adapts the model of the component.
|
|
21
|
+
* @default '911'
|
|
18
22
|
*/
|
|
19
23
|
model?: ModelSignatureModel;
|
|
20
24
|
/**
|
|
21
25
|
* When set to `true`, then all model signatures are visually aligned with each other. When set to `false` the model signature comes without any safe zone.
|
|
26
|
+
* @default true
|
|
22
27
|
*/
|
|
23
28
|
safeZone?: boolean;
|
|
24
29
|
/**
|
|
25
30
|
* Adapts the size of the component. When set to `inherit` a CSS `width` or `height` needs to be defined on the host but not both.
|
|
31
|
+
* @default 'small'
|
|
26
32
|
*/
|
|
27
33
|
size?: ModelSignatureSize;
|
|
28
34
|
};
|
|
29
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" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
30
36
|
/**
|
|
31
37
|
* Adapts the color of the component.
|
|
38
|
+
* @default 'primary'
|
|
32
39
|
*/
|
|
33
40
|
color?: ModelSignatureColor;
|
|
34
41
|
/**
|
|
35
42
|
* Sets the browser's fetch priority hint for the model signature asset.
|
|
43
|
+
* @default 'auto'
|
|
36
44
|
*/
|
|
37
45
|
fetchPriority?: ModelSignatureFetchPriority;
|
|
38
46
|
/**
|
|
39
47
|
* Defines whether the model signature is always loaded or only loaded when it is in the viewport (this feature may not work reliably).
|
|
48
|
+
* @default false
|
|
40
49
|
*/
|
|
41
50
|
lazy?: boolean;
|
|
42
51
|
/**
|
|
43
52
|
* Adapts the model of the component.
|
|
53
|
+
* @default '911'
|
|
44
54
|
*/
|
|
45
55
|
model?: ModelSignatureModel;
|
|
46
56
|
/**
|
|
47
57
|
* When set to `true`, then all model signatures are visually aligned with each other. When set to `false` the model signature comes without any safe zone.
|
|
58
|
+
* @default true
|
|
48
59
|
*/
|
|
49
60
|
safeZone?: boolean;
|
|
50
61
|
/**
|
|
51
62
|
* Adapts the size of the component. When set to `inherit` a CSS `width` or `height` needs to be defined on the host but not both.
|
|
63
|
+
* @default 'small'
|
|
52
64
|
*/
|
|
53
65
|
size?: ModelSignatureSize;
|
|
54
66
|
} & {
|
|
@@ -2,6 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
export type PMultiSelectOptionProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
4
|
* Disables the option.
|
|
5
|
+
* @default false
|
|
5
6
|
*/
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
/**
|
|
@@ -12,6 +13,7 @@ export type PMultiSelectOptionProps = BaseProps & {
|
|
|
12
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" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
13
14
|
/**
|
|
14
15
|
* Disables the option.
|
|
16
|
+
* @default false
|
|
15
17
|
*/
|
|
16
18
|
disabled?: boolean;
|
|
17
19
|
/**
|
|
@@ -3,18 +3,22 @@ import type { MultiSelectDropdownDirection, BreakpointCustomizable, MultiSelectC
|
|
|
3
3
|
export type PMultiSelectProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the multi-select in compact mode.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
compact?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Supplementary text providing more context or explanation for the multi-select.
|
|
11
|
+
* @default ''
|
|
10
12
|
*/
|
|
11
13
|
description?: string;
|
|
12
14
|
/**
|
|
13
15
|
* Disables the multi-select
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
disabled?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* Changes the direction to which the dropdown list appears.
|
|
21
|
+
* @default 'auto'
|
|
18
22
|
*/
|
|
19
23
|
dropdownDirection?: MultiSelectDropdownDirection;
|
|
20
24
|
/**
|
|
@@ -23,14 +27,17 @@ export type PMultiSelectProps = BaseProps & {
|
|
|
23
27
|
form?: string;
|
|
24
28
|
/**
|
|
25
29
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
30
|
+
* @default false
|
|
26
31
|
*/
|
|
27
32
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
33
|
/**
|
|
29
34
|
* Text content for a user-facing label.
|
|
35
|
+
* @default ''
|
|
30
36
|
*/
|
|
31
37
|
label?: string;
|
|
32
38
|
/**
|
|
33
39
|
* The message styled depending on validation state.
|
|
40
|
+
* @default ''
|
|
34
41
|
*/
|
|
35
42
|
message?: string;
|
|
36
43
|
/**
|
|
@@ -51,32 +58,39 @@ export type PMultiSelectProps = BaseProps & {
|
|
|
51
58
|
onToggle?: (event: CustomEvent<MultiSelectToggleEventDetail>) => void;
|
|
52
59
|
/**
|
|
53
60
|
* Requires an option with a non-empty string value to be selected.
|
|
61
|
+
* @default false
|
|
54
62
|
*/
|
|
55
63
|
required?: boolean;
|
|
56
64
|
/**
|
|
57
65
|
* The validation state.
|
|
66
|
+
* @default 'none'
|
|
58
67
|
*/
|
|
59
68
|
state?: MultiSelectState;
|
|
60
69
|
/**
|
|
61
70
|
* The selected values.
|
|
71
|
+
* @default []
|
|
62
72
|
*/
|
|
63
73
|
value?: string[];
|
|
64
74
|
};
|
|
65
75
|
export declare const PMultiSelect: 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"> & {
|
|
66
76
|
/**
|
|
67
77
|
* Displays the multi-select in compact mode.
|
|
78
|
+
* @default false
|
|
68
79
|
*/
|
|
69
80
|
compact?: boolean;
|
|
70
81
|
/**
|
|
71
82
|
* Supplementary text providing more context or explanation for the multi-select.
|
|
83
|
+
* @default ''
|
|
72
84
|
*/
|
|
73
85
|
description?: string;
|
|
74
86
|
/**
|
|
75
87
|
* Disables the multi-select
|
|
88
|
+
* @default false
|
|
76
89
|
*/
|
|
77
90
|
disabled?: boolean;
|
|
78
91
|
/**
|
|
79
92
|
* Changes the direction to which the dropdown list appears.
|
|
93
|
+
* @default 'auto'
|
|
80
94
|
*/
|
|
81
95
|
dropdownDirection?: MultiSelectDropdownDirection;
|
|
82
96
|
/**
|
|
@@ -85,14 +99,17 @@ export declare const PMultiSelect: import("react").ForwardRefExoticComponent<Omi
|
|
|
85
99
|
form?: string;
|
|
86
100
|
/**
|
|
87
101
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
102
|
+
* @default false
|
|
88
103
|
*/
|
|
89
104
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
90
105
|
/**
|
|
91
106
|
* Text content for a user-facing label.
|
|
107
|
+
* @default ''
|
|
92
108
|
*/
|
|
93
109
|
label?: string;
|
|
94
110
|
/**
|
|
95
111
|
* The message styled depending on validation state.
|
|
112
|
+
* @default ''
|
|
96
113
|
*/
|
|
97
114
|
message?: string;
|
|
98
115
|
/**
|
|
@@ -113,14 +130,17 @@ export declare const PMultiSelect: import("react").ForwardRefExoticComponent<Omi
|
|
|
113
130
|
onToggle?: (event: CustomEvent<MultiSelectToggleEventDetail>) => void;
|
|
114
131
|
/**
|
|
115
132
|
* Requires an option with a non-empty string value to be selected.
|
|
133
|
+
* @default false
|
|
116
134
|
*/
|
|
117
135
|
required?: boolean;
|
|
118
136
|
/**
|
|
119
137
|
* The validation state.
|
|
138
|
+
* @default 'none'
|
|
120
139
|
*/
|
|
121
140
|
state?: MultiSelectState;
|
|
122
141
|
/**
|
|
123
142
|
* The selected values.
|
|
143
|
+
* @default []
|
|
124
144
|
*/
|
|
125
145
|
value?: string[];
|
|
126
146
|
} & {
|
|
@@ -2,6 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
export type POptgroupProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
4
|
* Disables the optgroup.
|
|
5
|
+
* @default false
|
|
5
6
|
*/
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
/**
|
|
@@ -12,6 +13,7 @@ export type POptgroupProps = BaseProps & {
|
|
|
12
13
|
export declare const POptgroup: 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"> & {
|
|
13
14
|
/**
|
|
14
15
|
* Disables the optgroup.
|
|
16
|
+
* @default false
|
|
15
17
|
*/
|
|
16
18
|
disabled?: boolean;
|
|
17
19
|
/**
|
|
@@ -3,14 +3,17 @@ import type { PaginationInternationalization, PaginationUpdateEventDetail } from
|
|
|
3
3
|
export type PPaginationProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Index of the currently active page.
|
|
6
|
+
* @default 1
|
|
6
7
|
*/
|
|
7
8
|
activePage: number;
|
|
8
9
|
/**
|
|
9
10
|
* Override the default wordings that are used for aria-labels on the next/prev and page buttons.
|
|
11
|
+
* @default { root: 'Pagination', prev: 'Previous page', next: 'Next page', page: 'Page', }
|
|
10
12
|
*/
|
|
11
13
|
intl?: PaginationInternationalization;
|
|
12
14
|
/**
|
|
13
15
|
* The total count of items which should be shown per page.
|
|
16
|
+
* @default 1
|
|
14
17
|
*/
|
|
15
18
|
itemsPerPage?: number;
|
|
16
19
|
/**
|
|
@@ -19,24 +22,29 @@ export type PPaginationProps = BaseProps & {
|
|
|
19
22
|
onUpdate?: (event: CustomEvent<PaginationUpdateEventDetail>) => void;
|
|
20
23
|
/**
|
|
21
24
|
* Show or hide the button to jump to the last page.
|
|
25
|
+
* @default true
|
|
22
26
|
*/
|
|
23
27
|
showLastPage?: boolean;
|
|
24
28
|
/**
|
|
25
29
|
* The total count of items.
|
|
30
|
+
* @default 1
|
|
26
31
|
*/
|
|
27
32
|
totalItemsCount: number;
|
|
28
33
|
};
|
|
29
34
|
export declare const PPagination: 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"> & {
|
|
30
35
|
/**
|
|
31
36
|
* Index of the currently active page.
|
|
37
|
+
* @default 1
|
|
32
38
|
*/
|
|
33
39
|
activePage: number;
|
|
34
40
|
/**
|
|
35
41
|
* Override the default wordings that are used for aria-labels on the next/prev and page buttons.
|
|
42
|
+
* @default { root: 'Pagination', prev: 'Previous page', next: 'Next page', page: 'Page', }
|
|
36
43
|
*/
|
|
37
44
|
intl?: PaginationInternationalization;
|
|
38
45
|
/**
|
|
39
46
|
* The total count of items which should be shown per page.
|
|
47
|
+
* @default 1
|
|
40
48
|
*/
|
|
41
49
|
itemsPerPage?: number;
|
|
42
50
|
/**
|
|
@@ -45,10 +53,12 @@ export declare const PPagination: import("react").ForwardRefExoticComponent<Omit
|
|
|
45
53
|
onUpdate?: (event: CustomEvent<PaginationUpdateEventDetail>) => void;
|
|
46
54
|
/**
|
|
47
55
|
* Show or hide the button to jump to the last page.
|
|
56
|
+
* @default true
|
|
48
57
|
*/
|
|
49
58
|
showLastPage?: boolean;
|
|
50
59
|
/**
|
|
51
60
|
* The total count of items.
|
|
61
|
+
* @default 1
|
|
52
62
|
*/
|
|
53
63
|
totalItemsCount: number;
|
|
54
64
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -3,14 +3,17 @@ import type { BreakpointCustomizable, PinCodeLength, PinCodeChangeEventDetail, P
|
|
|
3
3
|
export type PPinCodeProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the pin code in compact mode.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
compact?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Supplementary text providing more context or explanation for the pin code.
|
|
11
|
+
* @default ''
|
|
10
12
|
*/
|
|
11
13
|
description?: string;
|
|
12
14
|
/**
|
|
13
15
|
* Disables the Pin Code. No events will be triggered while disabled state is active.
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
disabled?: boolean;
|
|
16
19
|
/**
|
|
@@ -19,22 +22,27 @@ export type PPinCodeProps = BaseProps & {
|
|
|
19
22
|
form?: string;
|
|
20
23
|
/**
|
|
21
24
|
* Shows or hides the label and description. For better accessibility, it is recommended to show the label.
|
|
25
|
+
* @default false
|
|
22
26
|
*/
|
|
23
27
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
24
28
|
/**
|
|
25
29
|
* Text content for a user-facing label.
|
|
30
|
+
* @default ''
|
|
26
31
|
*/
|
|
27
32
|
label?: string;
|
|
28
33
|
/**
|
|
29
34
|
* Number of characters of the Pin Code.
|
|
35
|
+
* @default 4
|
|
30
36
|
*/
|
|
31
37
|
length?: PinCodeLength;
|
|
32
38
|
/**
|
|
33
39
|
* Disables the Pin Code and shows a loading indicator. No events will be triggered while loading state is active.
|
|
40
|
+
* @default false
|
|
34
41
|
*/
|
|
35
42
|
loading?: boolean;
|
|
36
43
|
/**
|
|
37
44
|
* The message styled depending on validation state.
|
|
45
|
+
* @default ''
|
|
38
46
|
*/
|
|
39
47
|
message?: string;
|
|
40
48
|
/**
|
|
@@ -51,32 +59,39 @@ export type PPinCodeProps = BaseProps & {
|
|
|
51
59
|
onChange?: (event: CustomEvent<PinCodeChangeEventDetail>) => void;
|
|
52
60
|
/**
|
|
53
61
|
* Marks the Pin Code as required.
|
|
62
|
+
* @default false
|
|
54
63
|
*/
|
|
55
64
|
required?: boolean;
|
|
56
65
|
/**
|
|
57
66
|
* The validation state.
|
|
67
|
+
* @default 'none'
|
|
58
68
|
*/
|
|
59
69
|
state?: PinCodeState;
|
|
60
70
|
/**
|
|
61
71
|
* Pin Code type.
|
|
72
|
+
* @default 'number'
|
|
62
73
|
*/
|
|
63
74
|
type?: PinCodeType;
|
|
64
75
|
/**
|
|
65
76
|
* Sets the initial value of the Pin Code.
|
|
77
|
+
* @default ''
|
|
66
78
|
*/
|
|
67
79
|
value?: string;
|
|
68
80
|
};
|
|
69
81
|
export declare const PPinCode: 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"> & {
|
|
70
82
|
/**
|
|
71
83
|
* Displays the pin code in compact mode.
|
|
84
|
+
* @default false
|
|
72
85
|
*/
|
|
73
86
|
compact?: boolean;
|
|
74
87
|
/**
|
|
75
88
|
* Supplementary text providing more context or explanation for the pin code.
|
|
89
|
+
* @default ''
|
|
76
90
|
*/
|
|
77
91
|
description?: string;
|
|
78
92
|
/**
|
|
79
93
|
* Disables the Pin Code. No events will be triggered while disabled state is active.
|
|
94
|
+
* @default false
|
|
80
95
|
*/
|
|
81
96
|
disabled?: boolean;
|
|
82
97
|
/**
|
|
@@ -85,22 +100,27 @@ export declare const PPinCode: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
85
100
|
form?: string;
|
|
86
101
|
/**
|
|
87
102
|
* Shows or hides the label and description. For better accessibility, it is recommended to show the label.
|
|
103
|
+
* @default false
|
|
88
104
|
*/
|
|
89
105
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
90
106
|
/**
|
|
91
107
|
* Text content for a user-facing label.
|
|
108
|
+
* @default ''
|
|
92
109
|
*/
|
|
93
110
|
label?: string;
|
|
94
111
|
/**
|
|
95
112
|
* Number of characters of the Pin Code.
|
|
113
|
+
* @default 4
|
|
96
114
|
*/
|
|
97
115
|
length?: PinCodeLength;
|
|
98
116
|
/**
|
|
99
117
|
* Disables the Pin Code and shows a loading indicator. No events will be triggered while loading state is active.
|
|
118
|
+
* @default false
|
|
100
119
|
*/
|
|
101
120
|
loading?: boolean;
|
|
102
121
|
/**
|
|
103
122
|
* The message styled depending on validation state.
|
|
123
|
+
* @default ''
|
|
104
124
|
*/
|
|
105
125
|
message?: string;
|
|
106
126
|
/**
|
|
@@ -117,18 +137,22 @@ export declare const PPinCode: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
117
137
|
onChange?: (event: CustomEvent<PinCodeChangeEventDetail>) => void;
|
|
118
138
|
/**
|
|
119
139
|
* Marks the Pin Code as required.
|
|
140
|
+
* @default false
|
|
120
141
|
*/
|
|
121
142
|
required?: boolean;
|
|
122
143
|
/**
|
|
123
144
|
* The validation state.
|
|
145
|
+
* @default 'none'
|
|
124
146
|
*/
|
|
125
147
|
state?: PinCodeState;
|
|
126
148
|
/**
|
|
127
149
|
* Pin Code type.
|
|
150
|
+
* @default 'number'
|
|
128
151
|
*/
|
|
129
152
|
type?: PinCodeType;
|
|
130
153
|
/**
|
|
131
154
|
* Sets the initial value of the Pin Code.
|
|
155
|
+
* @default ''
|
|
132
156
|
*/
|
|
133
157
|
value?: string;
|
|
134
158
|
} & {
|
|
@@ -11,6 +11,7 @@ export type PPopoverProps = BaseProps & {
|
|
|
11
11
|
description?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Preferred direction in which the popover should open when there is enough space in the viewport. Otherwise, it opens in the direction with the most available space.
|
|
14
|
+
* @default 'bottom'
|
|
14
15
|
*/
|
|
15
16
|
direction?: PopoverDirection;
|
|
16
17
|
};
|
|
@@ -25,6 +26,7 @@ export declare const PPopover: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
25
26
|
description?: string;
|
|
26
27
|
/**
|
|
27
28
|
* Preferred direction in which the popover should open when there is enough space in the viewport. Otherwise, it opens in the direction with the most available space.
|
|
29
|
+
* @default 'bottom'
|
|
28
30
|
*/
|
|
29
31
|
direction?: PopoverDirection;
|
|
30
32
|
} & {
|
|
@@ -2,6 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
export type PRadioGroupOptionProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
4
|
* Disables the radio group option. The value will not be submitted with the form.
|
|
5
|
+
* @default false
|
|
5
6
|
*/
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
/**
|
|
@@ -10,6 +11,7 @@ export type PRadioGroupOptionProps = BaseProps & {
|
|
|
10
11
|
label?: string;
|
|
11
12
|
/**
|
|
12
13
|
* @experimental Shows a loading indicator.
|
|
14
|
+
* @default false
|
|
13
15
|
*/
|
|
14
16
|
loading?: boolean;
|
|
15
17
|
/**
|
|
@@ -20,6 +22,7 @@ export type PRadioGroupOptionProps = BaseProps & {
|
|
|
20
22
|
export declare const PRadioGroupOption: 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"> & {
|
|
21
23
|
/**
|
|
22
24
|
* Disables the radio group option. The value will not be submitted with the form.
|
|
25
|
+
* @default false
|
|
23
26
|
*/
|
|
24
27
|
disabled?: boolean;
|
|
25
28
|
/**
|
|
@@ -28,6 +31,7 @@ export declare const PRadioGroupOption: import("react").ForwardRefExoticComponen
|
|
|
28
31
|
label?: string;
|
|
29
32
|
/**
|
|
30
33
|
* @experimental Shows a loading indicator.
|
|
34
|
+
* @default false
|
|
31
35
|
*/
|
|
32
36
|
loading?: boolean;
|
|
33
37
|
/**
|
|
@@ -3,18 +3,22 @@ import type { BreakpointCustomizable, RadioGroupDirection, RadioGroupChangeEvent
|
|
|
3
3
|
export type PRadioGroupProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the radio group in compact mode.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
compact?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Supplementary text providing more context or explanation for the radio group.
|
|
11
|
+
* @default ''
|
|
10
12
|
*/
|
|
11
13
|
description?: string;
|
|
12
14
|
/**
|
|
13
15
|
* Defines the direction of the main and cross-axis. The default is `column`, which stacks the options vertically. You always need to provide a base value when using breakpoints.
|
|
16
|
+
* @default 'column'
|
|
14
17
|
*/
|
|
15
18
|
direction?: BreakpointCustomizable<RadioGroupDirection>;
|
|
16
19
|
/**
|
|
17
20
|
* Disables the radio group. The value will not be submitted with the form.
|
|
21
|
+
* @default false
|
|
18
22
|
*/
|
|
19
23
|
disabled?: boolean;
|
|
20
24
|
/**
|
|
@@ -23,18 +27,22 @@ export type PRadioGroupProps = BaseProps & {
|
|
|
23
27
|
form?: string;
|
|
24
28
|
/**
|
|
25
29
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
30
|
+
* @default false
|
|
26
31
|
*/
|
|
27
32
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
33
|
/**
|
|
29
34
|
* Text content for a user-facing label.
|
|
35
|
+
* @default ''
|
|
30
36
|
*/
|
|
31
37
|
label?: string;
|
|
32
38
|
/**
|
|
33
39
|
* @experimental Shows a loading indicator.
|
|
40
|
+
* @default false
|
|
34
41
|
*/
|
|
35
42
|
loading?: boolean;
|
|
36
43
|
/**
|
|
37
44
|
* Dynamic feedback text for validation or status.
|
|
45
|
+
* @default ''
|
|
38
46
|
*/
|
|
39
47
|
message?: string;
|
|
40
48
|
/**
|
|
@@ -51,32 +59,39 @@ export type PRadioGroupProps = BaseProps & {
|
|
|
51
59
|
onChange?: (event: CustomEvent<RadioGroupChangeEventDetail>) => void;
|
|
52
60
|
/**
|
|
53
61
|
* A boolean value that specifies a selection must be made from the group before the form can be submitted.
|
|
62
|
+
* @default false
|
|
54
63
|
*/
|
|
55
64
|
required?: boolean;
|
|
56
65
|
/**
|
|
57
66
|
* Indicates the validation or overall status of the radio group component.
|
|
67
|
+
* @default 'none'
|
|
58
68
|
*/
|
|
59
69
|
state?: RadioGroupState;
|
|
60
70
|
/**
|
|
61
71
|
* The default value for the radio-group.
|
|
72
|
+
* @default ''
|
|
62
73
|
*/
|
|
63
74
|
value?: string;
|
|
64
75
|
};
|
|
65
76
|
export declare const PRadioGroup: 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"> & {
|
|
66
77
|
/**
|
|
67
78
|
* Displays the radio group in compact mode.
|
|
79
|
+
* @default false
|
|
68
80
|
*/
|
|
69
81
|
compact?: boolean;
|
|
70
82
|
/**
|
|
71
83
|
* Supplementary text providing more context or explanation for the radio group.
|
|
84
|
+
* @default ''
|
|
72
85
|
*/
|
|
73
86
|
description?: string;
|
|
74
87
|
/**
|
|
75
88
|
* Defines the direction of the main and cross-axis. The default is `column`, which stacks the options vertically. You always need to provide a base value when using breakpoints.
|
|
89
|
+
* @default 'column'
|
|
76
90
|
*/
|
|
77
91
|
direction?: BreakpointCustomizable<RadioGroupDirection>;
|
|
78
92
|
/**
|
|
79
93
|
* Disables the radio group. The value will not be submitted with the form.
|
|
94
|
+
* @default false
|
|
80
95
|
*/
|
|
81
96
|
disabled?: boolean;
|
|
82
97
|
/**
|
|
@@ -85,18 +100,22 @@ export declare const PRadioGroup: import("react").ForwardRefExoticComponent<Omit
|
|
|
85
100
|
form?: string;
|
|
86
101
|
/**
|
|
87
102
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
103
|
+
* @default false
|
|
88
104
|
*/
|
|
89
105
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
90
106
|
/**
|
|
91
107
|
* Text content for a user-facing label.
|
|
108
|
+
* @default ''
|
|
92
109
|
*/
|
|
93
110
|
label?: string;
|
|
94
111
|
/**
|
|
95
112
|
* @experimental Shows a loading indicator.
|
|
113
|
+
* @default false
|
|
96
114
|
*/
|
|
97
115
|
loading?: boolean;
|
|
98
116
|
/**
|
|
99
117
|
* Dynamic feedback text for validation or status.
|
|
118
|
+
* @default ''
|
|
100
119
|
*/
|
|
101
120
|
message?: string;
|
|
102
121
|
/**
|
|
@@ -113,14 +132,17 @@ export declare const PRadioGroup: import("react").ForwardRefExoticComponent<Omit
|
|
|
113
132
|
onChange?: (event: CustomEvent<RadioGroupChangeEventDetail>) => void;
|
|
114
133
|
/**
|
|
115
134
|
* A boolean value that specifies a selection must be made from the group before the form can be submitted.
|
|
135
|
+
* @default false
|
|
116
136
|
*/
|
|
117
137
|
required?: boolean;
|
|
118
138
|
/**
|
|
119
139
|
* Indicates the validation or overall status of the radio group component.
|
|
140
|
+
* @default 'none'
|
|
120
141
|
*/
|
|
121
142
|
state?: RadioGroupState;
|
|
122
143
|
/**
|
|
123
144
|
* The default value for the radio-group.
|
|
145
|
+
* @default ''
|
|
124
146
|
*/
|
|
125
147
|
value?: string;
|
|
126
148
|
} & {
|
|
@@ -3,6 +3,7 @@ import type { ScrollerAlignScrollIndicator, SelectedAriaAttributes, ScrollerAria
|
|
|
3
3
|
export type PScrollerProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated since v4.0.0, will be removed with next major release, has no effect anymore.
|
|
6
|
+
* @default 'center'
|
|
6
7
|
*/
|
|
7
8
|
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
8
9
|
/**
|
|
@@ -19,16 +20,19 @@ export type PScrollerProps = BaseProps & {
|
|
|
19
20
|
scrollToPosition?: ScrollerScrollToPosition;
|
|
20
21
|
/**
|
|
21
22
|
* Specifies if scrollbar should be shown.
|
|
23
|
+
* @default false
|
|
22
24
|
*/
|
|
23
25
|
scrollbar?: boolean;
|
|
24
26
|
/**
|
|
25
27
|
* @experimental Makes the indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
28
|
+
* @default false
|
|
26
29
|
*/
|
|
27
30
|
sticky?: boolean;
|
|
28
31
|
};
|
|
29
32
|
export declare const PScroller: 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"> & {
|
|
30
33
|
/**
|
|
31
34
|
* @deprecated since v4.0.0, will be removed with next major release, has no effect anymore.
|
|
35
|
+
* @default 'center'
|
|
32
36
|
*/
|
|
33
37
|
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
34
38
|
/**
|
|
@@ -45,10 +49,12 @@ export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
45
49
|
scrollToPosition?: ScrollerScrollToPosition;
|
|
46
50
|
/**
|
|
47
51
|
* Specifies if scrollbar should be shown.
|
|
52
|
+
* @default false
|
|
48
53
|
*/
|
|
49
54
|
scrollbar?: boolean;
|
|
50
55
|
/**
|
|
51
56
|
* @experimental Makes the indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
57
|
+
* @default false
|
|
52
58
|
*/
|
|
53
59
|
sticky?: boolean;
|
|
54
60
|
} & {
|
|
@@ -7,6 +7,7 @@ export type PSegmentedControlItemProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<SegmentedControlItemAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Disables the button. No events will be triggered while disabled state is active.
|
|
10
|
+
* @default false
|
|
10
11
|
*/
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
/**
|
|
@@ -33,6 +34,7 @@ export declare const PSegmentedControlItem: import("react").ForwardRefExoticComp
|
|
|
33
34
|
aria?: SelectedAriaAttributes<SegmentedControlItemAriaAttribute>;
|
|
34
35
|
/**
|
|
35
36
|
* Disables the button. No events will be triggered while disabled state is active.
|
|
37
|
+
* @default false
|
|
36
38
|
*/
|
|
37
39
|
disabled?: boolean;
|
|
38
40
|
/**
|