@porsche-design-system/components-react 4.0.0-beta.2 → 4.0.0-beta.4

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 (184) hide show
  1. package/CHANGELOG.md +334 -1
  2. package/OSS_NOTICE +1649 -5178
  3. package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
  4. package/cjs/lib/components/display.wrapper.cjs +1 -0
  5. package/cjs/lib/components/flag.wrapper.cjs +1 -1
  6. package/cjs/lib/components/heading.wrapper.cjs +3 -3
  7. package/cjs/lib/components/icon.wrapper.cjs +1 -1
  8. package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
  9. package/cjs/lib/components/spinner.wrapper.cjs +3 -3
  10. package/cjs/lib/components/text.wrapper.cjs +3 -3
  11. package/esm/lib/components/accordion.wrapper.d.ts +8 -8
  12. package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  13. package/esm/lib/components/button-pure.wrapper.mjs +3 -3
  14. package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  15. package/esm/lib/components/button.wrapper.d.ts +6 -6
  16. package/esm/lib/components/carousel.wrapper.d.ts +10 -10
  17. package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  18. package/esm/lib/components/crest.wrapper.d.ts +6 -6
  19. package/esm/lib/components/display.wrapper.d.ts +1 -0
  20. package/esm/lib/components/display.wrapper.mjs +1 -0
  21. package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  22. package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  23. package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  24. package/esm/lib/components/flag.wrapper.d.ts +5 -5
  25. package/esm/lib/components/flag.wrapper.mjs +1 -1
  26. package/esm/lib/components/flyout.wrapper.d.ts +2 -2
  27. package/esm/lib/components/heading.wrapper.d.ts +27 -11
  28. package/esm/lib/components/heading.wrapper.mjs +3 -3
  29. package/esm/lib/components/icon.wrapper.d.ts +7 -7
  30. package/esm/lib/components/icon.wrapper.mjs +1 -1
  31. package/esm/lib/components/input-date.wrapper.d.ts +12 -12
  32. package/esm/lib/components/input-email.wrapper.d.ts +8 -8
  33. package/esm/lib/components/input-month.wrapper.d.ts +12 -12
  34. package/esm/lib/components/input-number.wrapper.d.ts +8 -8
  35. package/esm/lib/components/input-password.wrapper.d.ts +6 -6
  36. package/esm/lib/components/input-search.wrapper.d.ts +6 -6
  37. package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  38. package/esm/lib/components/input-text.wrapper.d.ts +6 -6
  39. package/esm/lib/components/input-time.wrapper.d.ts +14 -14
  40. package/esm/lib/components/input-url.wrapper.d.ts +16 -16
  41. package/esm/lib/components/input-week.wrapper.d.ts +14 -14
  42. package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  43. package/esm/lib/components/link-pure.wrapper.mjs +3 -3
  44. package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  45. package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  46. package/esm/lib/components/link.wrapper.d.ts +14 -14
  47. package/esm/lib/components/modal.wrapper.d.ts +2 -2
  48. package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  49. package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  50. package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  51. package/esm/lib/components/popover.wrapper.d.ts +6 -6
  52. package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  53. package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  54. package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  55. package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  56. package/esm/lib/components/select.wrapper.d.ts +10 -10
  57. package/esm/lib/components/sheet.wrapper.d.ts +2 -2
  58. package/esm/lib/components/spinner.wrapper.d.ts +13 -5
  59. package/esm/lib/components/spinner.wrapper.mjs +3 -3
  60. package/esm/lib/components/switch.wrapper.d.ts +6 -6
  61. package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  62. package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  63. package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  64. package/esm/lib/components/tabs.wrapper.d.ts +2 -2
  65. package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  66. package/esm/lib/components/tag.wrapper.d.ts +2 -2
  67. package/esm/lib/components/text.wrapper.d.ts +21 -13
  68. package/esm/lib/components/text.wrapper.mjs +3 -3
  69. package/esm/lib/components/textarea.wrapper.d.ts +6 -6
  70. package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  71. package/esm/lib/types.d.ts +341 -141
  72. package/global-styles/cn/index.css +157 -159
  73. package/global-styles/color-scheme.css +95 -95
  74. package/global-styles/index.css +157 -159
  75. package/global-styles/variables.css +62 -64
  76. package/package.json +6 -2
  77. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +413 -512
  78. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +20 -18
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +4 -4
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -0
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -1
  98. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
  99. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
  100. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
  101. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +1 -1
  102. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +413 -512
  103. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +20 -18
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +4 -4
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
  121. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
  122. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -1
  123. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
  124. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
  125. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
  126. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +1 -1
  127. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
  128. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  129. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  130. package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
  131. package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
  132. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  133. package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
  134. package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
  135. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  136. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  137. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  138. package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
  139. package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
  140. package/ssr/esm/lib/components/heading.wrapper.d.ts +27 -11
  141. package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
  142. package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
  143. package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
  144. package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
  145. package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
  146. package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
  147. package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
  148. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  149. package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
  150. package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
  151. package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
  152. package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
  153. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  154. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  155. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  156. package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
  157. package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
  158. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  159. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  160. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  161. package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
  162. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  163. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  164. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  165. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  166. package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
  167. package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
  168. package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
  169. package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
  170. package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  171. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  172. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  173. package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
  174. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  175. package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
  176. package/ssr/esm/lib/components/text.wrapper.d.ts +21 -13
  177. package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
  178. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  179. package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
  180. package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
  181. package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
  182. package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
  183. package/ssr/esm/lib/types.d.ts +341 -141
  184. package/tailwindcss/index.css +170 -158
@@ -10,7 +10,7 @@ export type PInputSearchProps = BaseProps & {
10
10
  */
11
11
  clear?: boolean;
12
12
  /**
13
- * A boolean value that, if present, renders the input field as a compact version.
13
+ * Displays the input field in compact mode.
14
14
  */
15
15
  compact?: boolean;
16
16
  /**
@@ -18,7 +18,7 @@ export type PInputSearchProps = BaseProps & {
18
18
  */
19
19
  description?: string;
20
20
  /**
21
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
21
+ * Disables the input field. The value will not be submitted with the form.
22
22
  */
23
23
  disabled?: boolean;
24
24
  /**
@@ -26,7 +26,7 @@ export type PInputSearchProps = BaseProps & {
26
26
  */
27
27
  form?: string;
28
28
  /**
29
- * Controls the visibility of the label.
29
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
30
30
  */
31
31
  hideLabel?: BreakpointCustomizable<boolean>;
32
32
  /**
@@ -100,7 +100,7 @@ export declare const PInputSearch: import("react").ForwardRefExoticComponent<Omi
100
100
  */
101
101
  clear?: boolean;
102
102
  /**
103
- * A boolean value that, if present, renders the input field as a compact version.
103
+ * Displays the input field in compact mode.
104
104
  */
105
105
  compact?: boolean;
106
106
  /**
@@ -108,7 +108,7 @@ export declare const PInputSearch: import("react").ForwardRefExoticComponent<Omi
108
108
  */
109
109
  description?: string;
110
110
  /**
111
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
111
+ * Disables the input field. The value will not be submitted with the form.
112
112
  */
113
113
  disabled?: boolean;
114
114
  /**
@@ -116,7 +116,7 @@ export declare const PInputSearch: import("react").ForwardRefExoticComponent<Omi
116
116
  */
117
117
  form?: string;
118
118
  /**
119
- * Controls the visibility of the label.
119
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
120
120
  */
121
121
  hideLabel?: BreakpointCustomizable<boolean>;
122
122
  /**
@@ -6,7 +6,7 @@ export type PInputTelProps = BaseProps & {
6
6
  */
7
7
  autoComplete?: string;
8
8
  /**
9
- * A boolean value that, if present, renders the input field as a compact version.
9
+ * Displays the input field in compact mode.
10
10
  */
11
11
  compact?: boolean;
12
12
  /**
@@ -14,7 +14,7 @@ export type PInputTelProps = BaseProps & {
14
14
  */
15
15
  description?: string;
16
16
  /**
17
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
17
+ * Disables the input field. The value will not be submitted with the form.
18
18
  */
19
19
  disabled?: boolean;
20
20
  /**
@@ -22,7 +22,7 @@ export type PInputTelProps = BaseProps & {
22
22
  */
23
23
  form?: string;
24
24
  /**
25
- * Controls the visibility of the label.
25
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
26
26
  */
27
27
  hideLabel?: BreakpointCustomizable<boolean>;
28
28
  /**
@@ -96,7 +96,7 @@ export declare const PInputTel: import("react").ForwardRefExoticComponent<Omit<i
96
96
  */
97
97
  autoComplete?: string;
98
98
  /**
99
- * A boolean value that, if present, renders the input field as a compact version.
99
+ * Displays the input field in compact mode.
100
100
  */
101
101
  compact?: boolean;
102
102
  /**
@@ -104,7 +104,7 @@ export declare const PInputTel: import("react").ForwardRefExoticComponent<Omit<i
104
104
  */
105
105
  description?: string;
106
106
  /**
107
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
107
+ * Disables the input field. The value will not be submitted with the form.
108
108
  */
109
109
  disabled?: boolean;
110
110
  /**
@@ -112,7 +112,7 @@ export declare const PInputTel: import("react").ForwardRefExoticComponent<Omit<i
112
112
  */
113
113
  form?: string;
114
114
  /**
115
- * Controls the visibility of the label.
115
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
116
116
  */
117
117
  hideLabel?: BreakpointCustomizable<boolean>;
118
118
  /**
@@ -6,7 +6,7 @@ export type PInputTextProps = BaseProps & {
6
6
  */
7
7
  autoComplete?: string;
8
8
  /**
9
- * A boolean value that, if present, renders the input field as a compact version.
9
+ * Displays the input field in compact mode.
10
10
  */
11
11
  compact?: boolean;
12
12
  /**
@@ -18,7 +18,7 @@ export type PInputTextProps = BaseProps & {
18
18
  */
19
19
  description?: string;
20
20
  /**
21
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
21
+ * Disables the input field. The value will not be submitted with the form.
22
22
  */
23
23
  disabled?: boolean;
24
24
  /**
@@ -26,7 +26,7 @@ export type PInputTextProps = BaseProps & {
26
26
  */
27
27
  form?: string;
28
28
  /**
29
- * Controls the visibility of the label.
29
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
30
30
  */
31
31
  hideLabel?: BreakpointCustomizable<boolean>;
32
32
  /**
@@ -96,7 +96,7 @@ export declare const PInputText: import("react").ForwardRefExoticComponent<Omit<
96
96
  */
97
97
  autoComplete?: string;
98
98
  /**
99
- * A boolean value that, if present, renders the input field as a compact version.
99
+ * Displays the input field in compact mode.
100
100
  */
101
101
  compact?: boolean;
102
102
  /**
@@ -108,7 +108,7 @@ export declare const PInputText: import("react").ForwardRefExoticComponent<Omit<
108
108
  */
109
109
  description?: string;
110
110
  /**
111
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
111
+ * Disables the input field. The value will not be submitted with the form.
112
112
  */
113
113
  disabled?: boolean;
114
114
  /**
@@ -116,7 +116,7 @@ export declare const PInputText: import("react").ForwardRefExoticComponent<Omit<
116
116
  */
117
117
  form?: string;
118
118
  /**
119
- * Controls the visibility of the label.
119
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
120
120
  */
121
121
  hideLabel?: BreakpointCustomizable<boolean>;
122
122
  /**
@@ -2,11 +2,11 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { BreakpointCustomizable, InputTimeBlurEventDetail, InputTimeChangeEventDetail, InputTimeInputEventDetail, InputTimeState } from '../types';
3
3
  export type PInputTimeProps = BaseProps & {
4
4
  /**
5
- * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., auto-complete='on').
5
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='on').
6
6
  */
7
7
  autoComplete?: string;
8
8
  /**
9
- * A boolean value that, if present, renders the input field as a compact version.
9
+ * Displays the input field in compact mode.
10
10
  */
11
11
  compact?: boolean;
12
12
  /**
@@ -14,7 +14,7 @@ export type PInputTimeProps = BaseProps & {
14
14
  */
15
15
  description?: string;
16
16
  /**
17
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
17
+ * Disables the input field. The value will not be submitted with the form.
18
18
  */
19
19
  disabled?: boolean;
20
20
  /**
@@ -22,7 +22,7 @@ export type PInputTimeProps = BaseProps & {
22
22
  */
23
23
  form?: string;
24
24
  /**
25
- * Controls the visibility of the label.
25
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
26
26
  */
27
27
  hideLabel?: BreakpointCustomizable<boolean>;
28
28
  /**
@@ -50,11 +50,11 @@ export type PInputTimeProps = BaseProps & {
50
50
  */
51
51
  name: string;
52
52
  /**
53
- * Emitted when the number input has lost focus.
53
+ * Emitted when the time input has lost focus.
54
54
  */
55
55
  onBlur?: (event: CustomEvent<InputTimeBlurEventDetail>) => void;
56
56
  /**
57
- * Emitted when the number input loses focus after its value was changed.
57
+ * Emitted when the time input loses focus after its value was changed.
58
58
  */
59
59
  onChange?: (event: CustomEvent<InputTimeChangeEventDetail>) => void;
60
60
  /**
@@ -74,7 +74,7 @@ export type PInputTimeProps = BaseProps & {
74
74
  */
75
75
  state?: InputTimeState;
76
76
  /**
77
- * efines the granularity of the time input. The step value is given in seconds. The default is 60 (one minute). You can also specify smaller increments (e.g., step='1' for seconds, step='0.001' for milliseconds).
77
+ * Defines the granularity of the time input. The step value is given in seconds. The default is 60 (one minute). You can also specify smaller increments (e.g., step='1' for seconds, step='0.001' for milliseconds).
78
78
  */
79
79
  step?: number;
80
80
  /**
@@ -84,11 +84,11 @@ export type PInputTimeProps = BaseProps & {
84
84
  };
85
85
  export declare const PInputTime: 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"> & {
86
86
  /**
87
- * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., auto-complete='on').
87
+ * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='on').
88
88
  */
89
89
  autoComplete?: string;
90
90
  /**
91
- * A boolean value that, if present, renders the input field as a compact version.
91
+ * Displays the input field in compact mode.
92
92
  */
93
93
  compact?: boolean;
94
94
  /**
@@ -96,7 +96,7 @@ export declare const PInputTime: import("react").ForwardRefExoticComponent<Omit<
96
96
  */
97
97
  description?: string;
98
98
  /**
99
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
99
+ * Disables the input field. The value will not be submitted with the form.
100
100
  */
101
101
  disabled?: boolean;
102
102
  /**
@@ -104,7 +104,7 @@ export declare const PInputTime: import("react").ForwardRefExoticComponent<Omit<
104
104
  */
105
105
  form?: string;
106
106
  /**
107
- * Controls the visibility of the label.
107
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
108
108
  */
109
109
  hideLabel?: BreakpointCustomizable<boolean>;
110
110
  /**
@@ -132,11 +132,11 @@ export declare const PInputTime: import("react").ForwardRefExoticComponent<Omit<
132
132
  */
133
133
  name: string;
134
134
  /**
135
- * Emitted when the number input has lost focus.
135
+ * Emitted when the time input has lost focus.
136
136
  */
137
137
  onBlur?: (event: CustomEvent<InputTimeBlurEventDetail>) => void;
138
138
  /**
139
- * Emitted when the number input loses focus after its value was changed.
139
+ * Emitted when the time input loses focus after its value was changed.
140
140
  */
141
141
  onChange?: (event: CustomEvent<InputTimeChangeEventDetail>) => void;
142
142
  /**
@@ -156,7 +156,7 @@ export declare const PInputTime: import("react").ForwardRefExoticComponent<Omit<
156
156
  */
157
157
  state?: InputTimeState;
158
158
  /**
159
- * efines the granularity of the time input. The step value is given in seconds. The default is 60 (one minute). You can also specify smaller increments (e.g., step='1' for seconds, step='0.001' for milliseconds).
159
+ * Defines the granularity of the time input. The step value is given in seconds. The default is 60 (one minute). You can also specify smaller increments (e.g., step='1' for seconds, step='0.001' for milliseconds).
160
160
  */
161
161
  step?: number;
162
162
  /**
@@ -6,7 +6,7 @@ export type PInputUrlProps = BaseProps & {
6
6
  */
7
7
  autoComplete?: string;
8
8
  /**
9
- * A boolean value that, if present, renders the input field as a compact version.
9
+ * Displays the input field in compact mode.
10
10
  */
11
11
  compact?: boolean;
12
12
  /**
@@ -14,7 +14,7 @@ export type PInputUrlProps = BaseProps & {
14
14
  */
15
15
  description?: string;
16
16
  /**
17
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
17
+ * Disables the input field. The value will not be submitted with the form.
18
18
  */
19
19
  disabled?: boolean;
20
20
  /**
@@ -22,11 +22,11 @@ export type PInputUrlProps = BaseProps & {
22
22
  */
23
23
  form?: string;
24
24
  /**
25
- * Controls the visibility of the label.
25
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
26
26
  */
27
27
  hideLabel?: BreakpointCustomizable<boolean>;
28
28
  /**
29
- * Controls the visibility of the url icon.
29
+ * Controls the visibility of the URL icon.
30
30
  */
31
31
  indicator?: boolean;
32
32
  /**
@@ -54,11 +54,11 @@ export type PInputUrlProps = BaseProps & {
54
54
  */
55
55
  name: string;
56
56
  /**
57
- * Emitted when the url input has lost focus.
57
+ * Emitted when the URL input has lost focus.
58
58
  */
59
59
  onBlur?: (event: CustomEvent<InputUrlBlurEventDetail>) => void;
60
60
  /**
61
- * Emitted when the url input loses focus after its value was changed.
61
+ * Emitted when the URL input loses focus after its value was changed.
62
62
  */
63
63
  onChange?: (event: CustomEvent<InputUrlChangeEventDetail>) => void;
64
64
  /**
@@ -66,7 +66,7 @@ export type PInputUrlProps = BaseProps & {
66
66
  */
67
67
  onInput?: (event: CustomEvent<InputUrlInputEventDetail>) => void;
68
68
  /**
69
- * Specifies a regular expression that the input's value must match for the value to pass constraint validation. This allows for more specific url validation rules than the browser's default. If provided, it overrides the browser's default tel validation.
69
+ * Specifies a regular expression that the input's value must match to pass constraint validation. This allows for more specific URL validation rules than the browser's default. If provided, it overrides the browser's default URL validation.
70
70
  */
71
71
  pattern?: string;
72
72
  /**
@@ -86,7 +86,7 @@ export type PInputUrlProps = BaseProps & {
86
86
  */
87
87
  state?: InputUrlState;
88
88
  /**
89
- * The url input value.
89
+ * The URL input value.
90
90
  */
91
91
  value?: string;
92
92
  };
@@ -96,7 +96,7 @@ export declare const PInputUrl: import("react").ForwardRefExoticComponent<Omit<i
96
96
  */
97
97
  autoComplete?: string;
98
98
  /**
99
- * A boolean value that, if present, renders the input field as a compact version.
99
+ * Displays the input field in compact mode.
100
100
  */
101
101
  compact?: boolean;
102
102
  /**
@@ -104,7 +104,7 @@ export declare const PInputUrl: import("react").ForwardRefExoticComponent<Omit<i
104
104
  */
105
105
  description?: string;
106
106
  /**
107
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
107
+ * Disables the input field. The value will not be submitted with the form.
108
108
  */
109
109
  disabled?: boolean;
110
110
  /**
@@ -112,11 +112,11 @@ export declare const PInputUrl: import("react").ForwardRefExoticComponent<Omit<i
112
112
  */
113
113
  form?: string;
114
114
  /**
115
- * Controls the visibility of the label.
115
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
116
116
  */
117
117
  hideLabel?: BreakpointCustomizable<boolean>;
118
118
  /**
119
- * Controls the visibility of the url icon.
119
+ * Controls the visibility of the URL icon.
120
120
  */
121
121
  indicator?: boolean;
122
122
  /**
@@ -144,11 +144,11 @@ export declare const PInputUrl: import("react").ForwardRefExoticComponent<Omit<i
144
144
  */
145
145
  name: string;
146
146
  /**
147
- * Emitted when the url input has lost focus.
147
+ * Emitted when the URL input has lost focus.
148
148
  */
149
149
  onBlur?: (event: CustomEvent<InputUrlBlurEventDetail>) => void;
150
150
  /**
151
- * Emitted when the url input loses focus after its value was changed.
151
+ * Emitted when the URL input loses focus after its value was changed.
152
152
  */
153
153
  onChange?: (event: CustomEvent<InputUrlChangeEventDetail>) => void;
154
154
  /**
@@ -156,7 +156,7 @@ export declare const PInputUrl: import("react").ForwardRefExoticComponent<Omit<i
156
156
  */
157
157
  onInput?: (event: CustomEvent<InputUrlInputEventDetail>) => void;
158
158
  /**
159
- * Specifies a regular expression that the input's value must match for the value to pass constraint validation. This allows for more specific url validation rules than the browser's default. If provided, it overrides the browser's default tel validation.
159
+ * Specifies a regular expression that the input's value must match to pass constraint validation. This allows for more specific URL validation rules than the browser's default. If provided, it overrides the browser's default URL validation.
160
160
  */
161
161
  pattern?: string;
162
162
  /**
@@ -176,7 +176,7 @@ export declare const PInputUrl: import("react").ForwardRefExoticComponent<Omit<i
176
176
  */
177
177
  state?: InputUrlState;
178
178
  /**
179
- * The url input value.
179
+ * The URL input value.
180
180
  */
181
181
  value?: string;
182
182
  } & {
@@ -6,7 +6,7 @@ export type PInputWeekProps = BaseProps & {
6
6
  */
7
7
  autoComplete?: string;
8
8
  /**
9
- * A boolean value that, if present, renders the input field as a compact version.
9
+ * Displays the input field in compact mode.
10
10
  */
11
11
  compact?: boolean;
12
12
  /**
@@ -14,7 +14,7 @@ export type PInputWeekProps = BaseProps & {
14
14
  */
15
15
  description?: string;
16
16
  /**
17
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
17
+ * Disables the input field. The value will not be submitted with the form.
18
18
  */
19
19
  disabled?: boolean;
20
20
  /**
@@ -22,7 +22,7 @@ export type PInputWeekProps = BaseProps & {
22
22
  */
23
23
  form?: string;
24
24
  /**
25
- * Controls the visibility of the label.
25
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
26
26
  */
27
27
  hideLabel?: BreakpointCustomizable<boolean>;
28
28
  /**
@@ -50,11 +50,11 @@ export type PInputWeekProps = BaseProps & {
50
50
  */
51
51
  name: string;
52
52
  /**
53
- * Emitted when the number input has lost focus.
53
+ * Emitted when the week input has lost focus.
54
54
  */
55
55
  onBlur?: (event: CustomEvent<InputWeekBlurEventDetail>) => void;
56
56
  /**
57
- * Emitted when the number input loses focus after its value was changed.
57
+ * Emitted when the week input loses focus after its value was changed.
58
58
  */
59
59
  onChange?: (event: CustomEvent<InputWeekChangeEventDetail>) => void;
60
60
  /**
@@ -74,11 +74,11 @@ export type PInputWeekProps = BaseProps & {
74
74
  */
75
75
  state?: InputWeekState;
76
76
  /**
77
- * Defines the stepping interval in weeks. For example, step="1" increments by 1 week. The default is 1 month.
77
+ * Defines the stepping interval in weeks. For example, step="1" increments by 1 week. The default is 1 week.
78
78
  */
79
79
  step?: number;
80
80
  /**
81
- * The default week value for the input, in YYYY-Www format (e.g., value='2025-W27')
81
+ * The default week value for the input, in YYYY-Www format (e.g., value='2025-W27').
82
82
  */
83
83
  value?: string;
84
84
  };
@@ -88,7 +88,7 @@ export declare const PInputWeek: import("react").ForwardRefExoticComponent<Omit<
88
88
  */
89
89
  autoComplete?: string;
90
90
  /**
91
- * A boolean value that, if present, renders the input field as a compact version.
91
+ * Displays the input field in compact mode.
92
92
  */
93
93
  compact?: boolean;
94
94
  /**
@@ -96,7 +96,7 @@ export declare const PInputWeek: import("react").ForwardRefExoticComponent<Omit<
96
96
  */
97
97
  description?: string;
98
98
  /**
99
- * A boolean value that, if present, makes the input field unusable and unclickable. The value will not be submitted with the form.
99
+ * Disables the input field. The value will not be submitted with the form.
100
100
  */
101
101
  disabled?: boolean;
102
102
  /**
@@ -104,7 +104,7 @@ export declare const PInputWeek: import("react").ForwardRefExoticComponent<Omit<
104
104
  */
105
105
  form?: string;
106
106
  /**
107
- * Controls the visibility of the label.
107
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
108
108
  */
109
109
  hideLabel?: BreakpointCustomizable<boolean>;
110
110
  /**
@@ -132,11 +132,11 @@ export declare const PInputWeek: import("react").ForwardRefExoticComponent<Omit<
132
132
  */
133
133
  name: string;
134
134
  /**
135
- * Emitted when the number input has lost focus.
135
+ * Emitted when the week input has lost focus.
136
136
  */
137
137
  onBlur?: (event: CustomEvent<InputWeekBlurEventDetail>) => void;
138
138
  /**
139
- * Emitted when the number input loses focus after its value was changed.
139
+ * Emitted when the week input loses focus after its value was changed.
140
140
  */
141
141
  onChange?: (event: CustomEvent<InputWeekChangeEventDetail>) => void;
142
142
  /**
@@ -156,11 +156,11 @@ export declare const PInputWeek: import("react").ForwardRefExoticComponent<Omit<
156
156
  */
157
157
  state?: InputWeekState;
158
158
  /**
159
- * Defines the stepping interval in weeks. For example, step="1" increments by 1 week. The default is 1 month.
159
+ * Defines the stepping interval in weeks. For example, step="1" increments by 1 week. The default is 1 week.
160
160
  */
161
161
  step?: number;
162
162
  /**
163
- * The default week value for the input, in YYYY-Www format (e.g., value='2025-W27')
163
+ * The default week value for the input, in YYYY-Www format (e.g., value='2025-W27').
164
164
  */
165
165
  value?: string;
166
166
  } & {
@@ -1,8 +1,8 @@
1
1
  import type { BaseProps } from '../../BaseProps';
2
- import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureIcon, LinkPureSize, LinkPureTarget } from '../types';
2
+ import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureColor, LinkPureIcon, LinkPureSize, LinkPureTarget } from '../types';
3
3
  export type PLinkPureProps = BaseProps & {
4
4
  /**
5
- * Display link in active state.
5
+ * Displays the link in its active state.
6
6
  */
7
7
  active?: boolean;
8
8
  /**
@@ -10,19 +10,23 @@ export type PLinkPureProps = BaseProps & {
10
10
  */
11
11
  alignLabel?: BreakpointCustomizable<LinkPureAlignLabel>;
12
12
  /**
13
- * Add ARIA attributes.
13
+ * Sets ARIA attributes.
14
14
  */
15
15
  aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
16
16
  /**
17
- * Special download attribute to open native browser download dialog if target url points to a downloadable file.
17
+ * The color.
18
+ */
19
+ color?: LinkPureColor;
20
+ /**
21
+ * Sets the native `download` attribute when the target URL points to a downloadable file.
18
22
  */
19
23
  download?: string;
20
24
  /**
21
- * Show or hide label. For better accessibility it is recommended to show the label.
25
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
22
26
  */
23
27
  hideLabel?: BreakpointCustomizable<boolean>;
24
28
  /**
25
- * When providing an url then the component will be rendered as `<a>`.
29
+ * When `href` is provided, the component renders as an `<a>` element.
26
30
  */
27
31
  href?: string;
28
32
  /**
@@ -34,7 +38,7 @@ export type PLinkPureProps = BaseProps & {
34
38
  */
35
39
  iconSource?: string;
36
40
  /**
37
- * Specifies the relationship of the target object to the link object.
41
+ * Sets the `rel` attribute on the link.
38
42
  */
39
43
  rel?: string;
40
44
  /**
@@ -46,7 +50,7 @@ export type PLinkPureProps = BaseProps & {
46
50
  */
47
51
  stretch?: BreakpointCustomizable<boolean>;
48
52
  /**
49
- * Target attribute where the link should be opened.
53
+ * Specifies where to open the linked document.
50
54
  */
51
55
  target?: LinkPureTarget;
52
56
  /**
@@ -56,7 +60,7 @@ export type PLinkPureProps = BaseProps & {
56
60
  };
57
61
  export declare const PLinkPure: 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"> & {
58
62
  /**
59
- * Display link in active state.
63
+ * Displays the link in its active state.
60
64
  */
61
65
  active?: boolean;
62
66
  /**
@@ -64,19 +68,23 @@ export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<i
64
68
  */
65
69
  alignLabel?: BreakpointCustomizable<LinkPureAlignLabel>;
66
70
  /**
67
- * Add ARIA attributes.
71
+ * Sets ARIA attributes.
68
72
  */
69
73
  aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
70
74
  /**
71
- * Special download attribute to open native browser download dialog if target url points to a downloadable file.
75
+ * The color.
76
+ */
77
+ color?: LinkPureColor;
78
+ /**
79
+ * Sets the native `download` attribute when the target URL points to a downloadable file.
72
80
  */
73
81
  download?: string;
74
82
  /**
75
- * Show or hide label. For better accessibility it is recommended to show the label.
83
+ * Shows or hides the label. For better accessibility, it is recommended to show the label.
76
84
  */
77
85
  hideLabel?: BreakpointCustomizable<boolean>;
78
86
  /**
79
- * When providing an url then the component will be rendered as `<a>`.
87
+ * When `href` is provided, the component renders as an `<a>` element.
80
88
  */
81
89
  href?: string;
82
90
  /**
@@ -88,7 +96,7 @@ export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<i
88
96
  */
89
97
  iconSource?: string;
90
98
  /**
91
- * Specifies the relationship of the target object to the link object.
99
+ * Sets the `rel` attribute on the link.
92
100
  */
93
101
  rel?: string;
94
102
  /**
@@ -100,7 +108,7 @@ export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<i
100
108
  */
101
109
  stretch?: BreakpointCustomizable<boolean>;
102
110
  /**
103
- * Target attribute where the link should be opened.
111
+ * Specifies where to open the linked document.
104
112
  */
105
113
  target?: LinkPureTarget;
106
114
  /**
@@ -4,13 +4,13 @@ import { forwardRef, useRef } from 'react';
4
4
  import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
- const PLinkPure = /*#__PURE__*/ forwardRef(({ active = false, alignLabel = 'end', aria, download, hideLabel = false, href, icon = 'arrow-right', iconSource, rel, size = 'small', stretch = false, target = '_self', underline = false, className, ...rest }, ref) => {
7
+ const PLinkPure = /*#__PURE__*/ forwardRef(({ active = false, alignLabel = 'end', aria, color = 'primary', download, hideLabel = false, href, icon = 'arrow-right', iconSource, rel, size = 'sm', stretch = false, target = '_self', underline = false, className, ...rest }, ref) => {
8
8
  const elementRef = useRef(undefined);
9
9
  const WebComponentTag = usePrefix('p-link-pure');
10
- const propsToSync = [active, alignLabel, aria, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline];
10
+ const propsToSync = [active, alignLabel, aria, color, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline];
11
11
  useBrowserLayoutEffect(() => {
12
12
  const { current } = elementRef;
13
- ['active', 'alignLabel', 'aria', 'download', 'hideLabel', 'href', 'icon', 'iconSource', 'rel', 'size', 'stretch', 'target', 'underline'].forEach((propName, i) => (current[propName] = propsToSync[i]));
13
+ ['active', 'alignLabel', 'aria', 'color', 'download', 'hideLabel', 'href', 'icon', 'iconSource', 'rel', 'size', 'stretch', 'target', 'underline'].forEach((propName, i) => (current[propName] = propsToSync[i]));
14
14
  }, propsToSync);
15
15
  const props = {
16
16
  ...rest,