@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.
Files changed (157) hide show
  1. package/CHANGELOG.md +72 -4
  2. package/cjs/lib/components/banner.wrapper.cjs +3 -3
  3. package/esm/lib/components/accordion.wrapper.d.ts +8 -0
  4. package/esm/lib/components/banner.wrapper.d.ts +37 -15
  5. package/esm/lib/components/banner.wrapper.mjs +3 -3
  6. package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
  7. package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
  8. package/esm/lib/components/button.wrapper.d.ts +14 -0
  9. package/esm/lib/components/canvas.wrapper.d.ts +6 -0
  10. package/esm/lib/components/carousel.wrapper.d.ts +22 -0
  11. package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
  12. package/esm/lib/components/crest.wrapper.d.ts +2 -0
  13. package/esm/lib/components/display.wrapper.d.ts +8 -0
  14. package/esm/lib/components/divider.wrapper.d.ts +4 -0
  15. package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
  16. package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
  17. package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
  18. package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
  19. package/esm/lib/components/flag.wrapper.d.ts +4 -0
  20. package/esm/lib/components/flyout.wrapper.d.ts +12 -0
  21. package/esm/lib/components/heading.wrapper.d.ts +12 -0
  22. package/esm/lib/components/icon.wrapper.d.ts +6 -0
  23. package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
  24. package/esm/lib/components/input-date.wrapper.d.ts +24 -0
  25. package/esm/lib/components/input-email.wrapper.d.ts +28 -0
  26. package/esm/lib/components/input-month.wrapper.d.ts +24 -0
  27. package/esm/lib/components/input-number.wrapper.d.ts +28 -0
  28. package/esm/lib/components/input-password.wrapper.d.ts +26 -0
  29. package/esm/lib/components/input-search.wrapper.d.ts +28 -0
  30. package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
  31. package/esm/lib/components/input-text.wrapper.d.ts +26 -0
  32. package/esm/lib/components/input-time.wrapper.d.ts +24 -0
  33. package/esm/lib/components/input-url.wrapper.d.ts +26 -0
  34. package/esm/lib/components/input-week.wrapper.d.ts +24 -0
  35. package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
  36. package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
  37. package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
  38. package/esm/lib/components/link.wrapper.d.ts +10 -0
  39. package/esm/lib/components/modal.wrapper.d.ts +12 -0
  40. package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
  41. package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
  42. package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
  43. package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
  44. package/esm/lib/components/pagination.wrapper.d.ts +10 -0
  45. package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
  46. package/esm/lib/components/popover.wrapper.d.ts +2 -0
  47. package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
  48. package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
  49. package/esm/lib/components/scroller.wrapper.d.ts +6 -0
  50. package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
  51. package/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
  52. package/esm/lib/components/select-option.wrapper.d.ts +2 -0
  53. package/esm/lib/components/select.wrapper.d.ts +20 -0
  54. package/esm/lib/components/sheet.wrapper.d.ts +8 -0
  55. package/esm/lib/components/spinner.wrapper.d.ts +4 -0
  56. package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
  57. package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
  58. package/esm/lib/components/switch.wrapper.d.ts +14 -0
  59. package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
  60. package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
  61. package/esm/lib/components/table.wrapper.d.ts +6 -0
  62. package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
  63. package/esm/lib/components/tabs.wrapper.d.ts +8 -0
  64. package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
  65. package/esm/lib/components/tag.wrapper.d.ts +6 -0
  66. package/esm/lib/components/text-list.wrapper.d.ts +2 -0
  67. package/esm/lib/components/text.wrapper.d.ts +14 -0
  68. package/esm/lib/components/textarea.wrapper.d.ts +30 -0
  69. package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
  70. package/esm/lib/types.d.ts +5 -0
  71. package/global-styles/cn/index.css +1 -0
  72. package/global-styles/index.css +1 -0
  73. package/global-styles/variables.css +1 -0
  74. package/package.json +4 -2
  75. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +723 -775
  76. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +16 -77
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +11 -6
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +4 -6
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -4
  82. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +723 -775
  83. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +15 -76
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +11 -6
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +5 -7
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -5
  89. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
  90. package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
  91. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
  92. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
  93. package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
  94. package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
  95. package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
  96. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
  97. package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
  98. package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
  99. package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
  100. package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
  101. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
  102. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
  103. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
  104. package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
  105. package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
  106. package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
  107. package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
  108. package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
  109. package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
  110. package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
  111. package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
  112. package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
  113. package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
  114. package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
  115. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
  116. package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
  117. package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
  118. package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
  119. package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
  120. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
  121. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
  122. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
  123. package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
  124. package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
  125. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
  126. package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
  127. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
  128. package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
  129. package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
  130. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
  131. package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
  132. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
  133. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
  134. package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
  135. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
  136. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
  137. package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
  138. package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
  139. package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
  140. package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
  141. package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
  142. package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
  143. package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
  144. package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
  145. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
  146. package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
  147. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
  148. package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
  149. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
  150. package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
  151. package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
  152. package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
  153. package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
  154. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
  155. package/ssr/esm/lib/dsr-components/banner.d.ts +2 -2
  156. package/ssr/esm/lib/types.d.ts +5 -0
  157. package/tailwindcss/index.css +73 -14
@@ -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
  /**
@@ -3,18 +3,22 @@ import type { BreakpointCustomizable, SegmentedControlColumns, SegmentedControlC
3
3
  export type PSegmentedControlProps = BaseProps & {
4
4
  /**
5
5
  * Sets the amount of columns.
6
+ * @default 'auto'
6
7
  */
7
8
  columns?: BreakpointCustomizable<SegmentedControlColumns>;
8
9
  /**
9
10
  * Displays the segmented control in compact mode.
11
+ * @default false
10
12
  */
11
13
  compact?: boolean;
12
14
  /**
13
15
  * Supplementary text providing more context or explanation for the segmented-control.
16
+ * @default ''
14
17
  */
15
18
  description?: string;
16
19
  /**
17
20
  * Disables the segmented-control.
21
+ * @default false
18
22
  */
19
23
  disabled?: boolean;
20
24
  /**
@@ -23,14 +27,17 @@ export type PSegmentedControlProps = 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
  * Dynamic feedback text for validation or status.
40
+ * @default ''
34
41
  */
35
42
  message?: string;
36
43
  /**
@@ -47,10 +54,12 @@ export type PSegmentedControlProps = BaseProps & {
47
54
  onChange?: (event: CustomEvent<SegmentedControlChangeEventDetail>) => void;
48
55
  /**
49
56
  * A boolean value that specifies a selection must be made from the group before the form can be submitted.
57
+ * @default false
50
58
  */
51
59
  required?: boolean;
52
60
  /**
53
61
  * Indicates the validation or overall status of the component.
62
+ * @default 'none'
54
63
  */
55
64
  state?: SegmentedControlState;
56
65
  /**
@@ -61,18 +70,22 @@ export type PSegmentedControlProps = BaseProps & {
61
70
  export declare const PSegmentedControl: 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"> & {
62
71
  /**
63
72
  * Sets the amount of columns.
73
+ * @default 'auto'
64
74
  */
65
75
  columns?: BreakpointCustomizable<SegmentedControlColumns>;
66
76
  /**
67
77
  * Displays the segmented control 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 segmented-control.
83
+ * @default ''
72
84
  */
73
85
  description?: string;
74
86
  /**
75
87
  * Disables the segmented-control.
88
+ * @default false
76
89
  */
77
90
  disabled?: boolean;
78
91
  /**
@@ -81,14 +94,17 @@ export declare const PSegmentedControl: import("react").ForwardRefExoticComponen
81
94
  form?: string;
82
95
  /**
83
96
  * Shows or hides the label. For better accessibility, it is recommended to show the label.
97
+ * @default false
84
98
  */
85
99
  hideLabel?: BreakpointCustomizable<boolean>;
86
100
  /**
87
101
  * Text content for a user-facing label.
102
+ * @default ''
88
103
  */
89
104
  label?: string;
90
105
  /**
91
106
  * Dynamic feedback text for validation or status.
107
+ * @default ''
92
108
  */
93
109
  message?: string;
94
110
  /**
@@ -105,10 +121,12 @@ export declare const PSegmentedControl: import("react").ForwardRefExoticComponen
105
121
  onChange?: (event: CustomEvent<SegmentedControlChangeEventDetail>) => void;
106
122
  /**
107
123
  * A boolean value that specifies a selection must be made from the group before the form can be submitted.
124
+ * @default false
108
125
  */
109
126
  required?: boolean;
110
127
  /**
111
128
  * Indicates the validation or overall status of the component.
129
+ * @default 'none'
112
130
  */
113
131
  state?: SegmentedControlState;
114
132
  /**
@@ -2,6 +2,7 @@ import type { BaseProps } from '../../BaseProps';
2
2
  export type PSelectOptionProps = 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 PSelectOptionProps = BaseProps & {
12
13
  export declare const PSelectOption: 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,22 +3,27 @@ import type { SelectDropdownDirection, BreakpointCustomizable, SelectChangeEvent
3
3
  export type PSelectProps = BaseProps & {
4
4
  /**
5
5
  * Displays the 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 select.
11
+ * @default ''
10
12
  */
11
13
  description?: string;
12
14
  /**
13
15
  * Disables the 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?: SelectDropdownDirection;
20
24
  /**
21
25
  * Shows an input in the dropdown allowing options to be filtered. Will be ignored if the `filter` slot is used.
26
+ * @default false
22
27
  */
23
28
  filter?: boolean;
24
29
  /**
@@ -27,14 +32,17 @@ export type PSelectProps = BaseProps & {
27
32
  form?: string;
28
33
  /**
29
34
  * Shows or hides the label. For better accessibility, it is recommended to show the label.
35
+ * @default false
30
36
  */
31
37
  hideLabel?: BreakpointCustomizable<boolean>;
32
38
  /**
33
39
  * Text content for a user-facing label.
40
+ * @default ''
34
41
  */
35
42
  label?: string;
36
43
  /**
37
44
  * The message styled depending on validation state.
45
+ * @default ''
38
46
  */
39
47
  message?: string;
40
48
  /**
@@ -55,10 +63,12 @@ export type PSelectProps = BaseProps & {
55
63
  onToggle?: (event: CustomEvent<SelectToggleEventDetail>) => void;
56
64
  /**
57
65
  * Requires an option with a non-empty string value to be selected.
66
+ * @default false
58
67
  */
59
68
  required?: boolean;
60
69
  /**
61
70
  * The validation state.
71
+ * @default 'none'
62
72
  */
63
73
  state?: SelectState;
64
74
  /**
@@ -69,22 +79,27 @@ export type PSelectProps = BaseProps & {
69
79
  export declare const PSelect: 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
80
  /**
71
81
  * Displays the select in compact mode.
82
+ * @default false
72
83
  */
73
84
  compact?: boolean;
74
85
  /**
75
86
  * Supplementary text providing more context or explanation for the select.
87
+ * @default ''
76
88
  */
77
89
  description?: string;
78
90
  /**
79
91
  * Disables the select.
92
+ * @default false
80
93
  */
81
94
  disabled?: boolean;
82
95
  /**
83
96
  * Changes the direction to which the dropdown list appears.
97
+ * @default 'auto'
84
98
  */
85
99
  dropdownDirection?: SelectDropdownDirection;
86
100
  /**
87
101
  * Shows an input in the dropdown allowing options to be filtered. Will be ignored if the `filter` slot is used.
102
+ * @default false
88
103
  */
89
104
  filter?: boolean;
90
105
  /**
@@ -93,14 +108,17 @@ export declare const PSelect: import("react").ForwardRefExoticComponent<Omit<imp
93
108
  form?: string;
94
109
  /**
95
110
  * Shows or hides the label. For better accessibility, it is recommended to show the label.
111
+ * @default false
96
112
  */
97
113
  hideLabel?: BreakpointCustomizable<boolean>;
98
114
  /**
99
115
  * Text content for a user-facing label.
116
+ * @default ''
100
117
  */
101
118
  label?: string;
102
119
  /**
103
120
  * The message styled depending on validation state.
121
+ * @default ''
104
122
  */
105
123
  message?: string;
106
124
  /**
@@ -121,10 +139,12 @@ export declare const PSelect: import("react").ForwardRefExoticComponent<Omit<imp
121
139
  onToggle?: (event: CustomEvent<SelectToggleEventDetail>) => void;
122
140
  /**
123
141
  * Requires an option with a non-empty string value to be selected.
142
+ * @default false
124
143
  */
125
144
  required?: boolean;
126
145
  /**
127
146
  * The validation state.
147
+ * @default 'none'
128
148
  */
129
149
  state?: SelectState;
130
150
  /**
@@ -7,14 +7,17 @@ export type PSheetProps = BaseProps & {
7
7
  aria?: SelectedAriaAttributes<SheetAriaAttribute>;
8
8
  /**
9
9
  * Defines the background color
10
+ * @default 'canvas'
10
11
  */
11
12
  background?: SheetBackground;
12
13
  /**
13
14
  * If true, the sheet will not be closable via backdrop click.
15
+ * @default false
14
16
  */
15
17
  disableBackdropClick?: boolean;
16
18
  /**
17
19
  * If false, the sheet will not have a dismiss button.
20
+ * @default true
18
21
  */
19
22
  dismissButton?: boolean;
20
23
  /**
@@ -31,6 +34,7 @@ export type PSheetProps = BaseProps & {
31
34
  onMotionVisibleEnd?: (event: CustomEvent<SheetMotionVisibleEndEventDetail>) => void;
32
35
  /**
33
36
  * If true, the sheet is open.
37
+ * @default false
34
38
  */
35
39
  open: boolean;
36
40
  };
@@ -41,14 +45,17 @@ export declare const PSheet: import("react").ForwardRefExoticComponent<Omit<impo
41
45
  aria?: SelectedAriaAttributes<SheetAriaAttribute>;
42
46
  /**
43
47
  * Defines the background color
48
+ * @default 'canvas'
44
49
  */
45
50
  background?: SheetBackground;
46
51
  /**
47
52
  * If true, the sheet will not be closable via backdrop click.
53
+ * @default false
48
54
  */
49
55
  disableBackdropClick?: boolean;
50
56
  /**
51
57
  * If false, the sheet will not have a dismiss button.
58
+ * @default true
52
59
  */
53
60
  dismissButton?: boolean;
54
61
  /**
@@ -65,6 +72,7 @@ export declare const PSheet: import("react").ForwardRefExoticComponent<Omit<impo
65
72
  onMotionVisibleEnd?: (event: CustomEvent<SheetMotionVisibleEndEventDetail>) => void;
66
73
  /**
67
74
  * If true, the sheet is open.
75
+ * @default false
68
76
  */
69
77
  open: boolean;
70
78
  } & {
@@ -7,10 +7,12 @@ export type PSpinnerProps = BaseProps & {
7
7
  aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
8
8
  /**
9
9
  * Basic color variations.
10
+ * @default 'primary'
10
11
  */
11
12
  color?: SpinnerColor;
12
13
  /**
13
14
  * Defines the size of the spinner, aligned with the typographic scale used by components such as p-icon, p-flag, p-text, and p-heading. When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based components.
15
+ * @default 'sm'
14
16
  */
15
17
  size?: BreakpointCustomizable<SpinnerSize>;
16
18
  };
@@ -21,10 +23,12 @@ export declare const PSpinner: import("react").ForwardRefExoticComponent<Omit<im
21
23
  aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
22
24
  /**
23
25
  * Basic color variations.
26
+ * @default 'primary'
24
27
  */
25
28
  color?: SpinnerColor;
26
29
  /**
27
30
  * Defines the size of the spinner, aligned with the typographic scale used by components such as p-icon, p-flag, p-text, and p-heading. When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based components.
31
+ * @default 'sm'
28
32
  */
29
33
  size?: BreakpointCustomizable<SpinnerSize>;
30
34
  } & import("react").RefAttributes<HTMLElement>>;