@porsche-design-system/components-react 4.2.0-rc.4 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/cjs/lib/components/flyout.wrapper.cjs +3 -3
  3. package/emotion/package.json +1 -8
  4. package/esm/hooks.mjs +1 -1
  5. package/esm/lib/components/accordion.wrapper.d.ts +8 -8
  6. package/esm/lib/components/banner.wrapper.d.ts +16 -16
  7. package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
  8. package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
  9. package/esm/lib/components/button.wrapper.d.ts +24 -24
  10. package/esm/lib/components/canvas.wrapper.d.ts +10 -10
  11. package/esm/lib/components/carousel.wrapper.d.ts +34 -34
  12. package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
  13. package/esm/lib/components/crest.wrapper.d.ts +6 -6
  14. package/esm/lib/components/display.wrapper.d.ts +10 -10
  15. package/esm/lib/components/divider.wrapper.d.ts +4 -4
  16. package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
  17. package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
  18. package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
  19. package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
  20. package/esm/lib/components/flyout.wrapper.d.ts +31 -21
  21. package/esm/lib/components/flyout.wrapper.mjs +3 -3
  22. package/esm/lib/components/heading.wrapper.d.ts +14 -14
  23. package/esm/lib/components/icon.wrapper.d.ts +10 -10
  24. package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
  25. package/esm/lib/components/input-date.wrapper.d.ts +40 -40
  26. package/esm/lib/components/input-email.wrapper.d.ts +46 -46
  27. package/esm/lib/components/input-month.wrapper.d.ts +40 -40
  28. package/esm/lib/components/input-number.wrapper.d.ts +38 -38
  29. package/esm/lib/components/input-password.wrapper.d.ts +36 -36
  30. package/esm/lib/components/input-search.wrapper.d.ts +44 -44
  31. package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
  32. package/esm/lib/components/input-text.wrapper.d.ts +44 -44
  33. package/esm/lib/components/input-time.wrapper.d.ts +40 -40
  34. package/esm/lib/components/input-url.wrapper.d.ts +44 -44
  35. package/esm/lib/components/input-week.wrapper.d.ts +40 -40
  36. package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
  37. package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
  38. package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
  39. package/esm/lib/components/link.wrapper.d.ts +20 -20
  40. package/esm/lib/components/modal.wrapper.d.ts +20 -20
  41. package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
  42. package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
  43. package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
  44. package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
  45. package/esm/lib/components/pagination.wrapper.d.ts +12 -12
  46. package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
  47. package/esm/lib/components/popover.wrapper.d.ts +6 -6
  48. package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
  49. package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
  50. package/esm/lib/components/scroller.wrapper.d.ts +6 -6
  51. package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
  52. package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
  53. package/esm/lib/components/select-option.wrapper.d.ts +4 -4
  54. package/esm/lib/components/select.wrapper.d.ts +30 -30
  55. package/esm/lib/components/sheet.wrapper.d.ts +16 -16
  56. package/esm/lib/components/spinner.wrapper.d.ts +6 -6
  57. package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
  58. package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
  59. package/esm/lib/components/switch.wrapper.d.ts +16 -16
  60. package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
  61. package/esm/lib/components/table.wrapper.d.ts +10 -10
  62. package/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
  63. package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
  64. package/esm/lib/components/tabs.wrapper.d.ts +10 -10
  65. package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  66. package/esm/lib/components/tag.wrapper.d.ts +8 -8
  67. package/esm/lib/components/text-list.wrapper.d.ts +2 -2
  68. package/esm/lib/components/textarea.wrapper.d.ts +48 -48
  69. package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  70. package/package.json +6 -6
  71. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +144 -352
  72. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +177 -90
  73. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +4 -4
  74. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
  75. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +7 -1
  76. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +8 -2
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +7 -1
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +7 -1
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
  96. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +144 -352
  97. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +174 -91
  98. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
  99. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +4 -4
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +8 -2
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +9 -3
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +8 -2
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
  121. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
  122. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +8 -2
  123. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
  124. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
  125. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
  126. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
  127. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
  128. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
  129. package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
  130. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
  131. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
  132. package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
  133. package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
  134. package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
  135. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
  136. package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
  137. package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
  138. package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
  139. package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
  140. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
  141. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
  142. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
  143. package/ssr/esm/lib/components/flyout.wrapper.d.ts +31 -21
  144. package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
  145. package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
  146. package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
  147. package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
  148. package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
  149. package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
  150. package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
  151. package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
  152. package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
  153. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
  154. package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
  155. package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
  156. package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
  157. package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
  158. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
  159. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
  160. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
  161. package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
  162. package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
  163. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
  164. package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
  165. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
  166. package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
  167. package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
  168. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
  169. package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
  170. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
  171. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
  172. package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
  173. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
  174. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
  175. package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
  176. package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
  177. package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
  178. package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
  179. package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
  180. package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
  181. package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
  182. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
  183. package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
  184. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
  185. package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
  186. package/ssr/esm/lib/components/tabs.wrapper.d.ts +10 -10
  187. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  188. package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
  189. package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
  190. package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
  191. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  192. package/ssr/esm/lib/dsr-components/banner.d.ts +1 -0
  193. package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
  194. package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
  195. package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
  196. package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
  197. package/tailwindcss/index.css +57 -75
  198. package/vanilla-extract/package.json +1 -8
@@ -2,51 +2,51 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, BreakpointCustomizable, IconSize } from '../types';
3
3
  export type PIconProps = BaseProps & {
4
4
  /**
5
- * Sets ARIA attributes.
5
+ * Sets ARIA attributes on the icon — use `aria-label` to make the icon meaningful to screen readers when it conveys information.
6
6
  */
7
7
  aria?: SelectedAriaAttributes<IconAriaAttribute>;
8
8
  /**
9
- * Basic color variations.
9
+ * Sets the fill color of the icon using PDS color tokens.
10
10
  * @default 'primary'
11
11
  */
12
12
  color?: IconColor;
13
13
  /**
14
- * Specifies which icon to use.
14
+ * Selects an icon from the built-in PDS icon library by name (e.g. `arrow-right`, `close`).
15
15
  * @default 'arrow-right'
16
16
  */
17
17
  name?: IconName;
18
18
  /**
19
- * Defines the size of the icon, aligned with the typographic scale used by components such as p-spinner, 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.
19
+ * Sets the icon size using the PDS typographic scale. Use `inherit` to derive size from the parent element. Supports responsive breakpoint values.
20
20
  * @default 'sm'
21
21
  */
22
22
  size?: BreakpointCustomizable<IconSize>;
23
23
  /**
24
- * Specifies a whole icon path which can be used for custom icons.
24
+ * Sets a path to a custom SVG icon, used instead of the built-in icon library.
25
25
  */
26
26
  source?: string;
27
27
  };
28
28
  export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
29
29
  /**
30
- * Sets ARIA attributes.
30
+ * Sets ARIA attributes on the icon — use `aria-label` to make the icon meaningful to screen readers when it conveys information.
31
31
  */
32
32
  aria?: SelectedAriaAttributes<IconAriaAttribute>;
33
33
  /**
34
- * Basic color variations.
34
+ * Sets the fill color of the icon using PDS color tokens.
35
35
  * @default 'primary'
36
36
  */
37
37
  color?: IconColor;
38
38
  /**
39
- * Specifies which icon to use.
39
+ * Selects an icon from the built-in PDS icon library by name (e.g. `arrow-right`, `close`).
40
40
  * @default 'arrow-right'
41
41
  */
42
42
  name?: IconName;
43
43
  /**
44
- * Defines the size of the icon, aligned with the typographic scale used by components such as p-spinner, 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.
44
+ * Sets the icon size using the PDS typographic scale. Use `inherit` to derive size from the parent element. Supports responsive breakpoint values.
45
45
  * @default 'sm'
46
46
  */
47
47
  size?: BreakpointCustomizable<IconSize>;
48
48
  /**
49
- * Specifies a whole icon path which can be used for custom icons.
49
+ * Sets a path to a custom SVG icon, used instead of the built-in icon library.
50
50
  */
51
51
  source?: string;
52
52
  } & import("react").RefAttributes<HTMLElement>>;
@@ -2,98 +2,98 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { InlineNotificationActionIcon, InlineNotificationHeadingTag, InlineNotificationState } from '../types';
3
3
  export type PInlineNotificationProps = BaseProps & {
4
4
  /**
5
- * Action icon of the inline-notification.
5
+ * Sets the icon displayed inside the action button using a PDS icon name.
6
6
  * @default 'arrow-right'
7
7
  */
8
8
  actionIcon?: InlineNotificationActionIcon;
9
9
  /**
10
- * Action label of the inline-notification.
10
+ * Sets the label text of the optional action button inside the notification.
11
11
  */
12
12
  actionLabel?: string;
13
13
  /**
14
- * Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
14
+ * Disables the action button and shows a spinner to indicate an ongoing operation.
15
15
  * @default false
16
16
  */
17
17
  actionLoading?: boolean;
18
18
  /**
19
- * Description of the inline-notification.
19
+ * Sets the supporting description text shown below the heading.
20
20
  * @default ''
21
21
  */
22
22
  description?: string;
23
23
  /**
24
- * If false, the inline-notification will not have a dismiss button.
24
+ * Shows a dismiss button so the user can manually close the notification.
25
25
  * @default true
26
26
  */
27
27
  dismissButton?: boolean;
28
28
  /**
29
- * Heading of the inline-notification.
29
+ * Sets the heading text displayed at the top of the inline notification.
30
30
  * @default ''
31
31
  */
32
32
  heading?: string;
33
33
  /**
34
- * Sets a heading tag, so it fits correctly within the outline of the page.
34
+ * Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure.
35
35
  * @default 'h5'
36
36
  */
37
37
  headingTag?: InlineNotificationHeadingTag;
38
38
  /**
39
- * Emitted when the action button is clicked.
39
+ * Emitted when the user clicks the action button.
40
40
  */
41
41
  onAction?: (event: CustomEvent<void>) => void;
42
42
  /**
43
- * Emitted when the close button is clicked.
43
+ * Emitted when the user clicks the dismiss button.
44
44
  */
45
45
  onDismiss?: (event: CustomEvent<void>) => void;
46
46
  /**
47
- * State of the inline-notification.
47
+ * Sets the visual state — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
48
48
  * @default 'info'
49
49
  */
50
50
  state?: InlineNotificationState;
51
51
  };
52
52
  export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
53
53
  /**
54
- * Action icon of the inline-notification.
54
+ * Sets the icon displayed inside the action button using a PDS icon name.
55
55
  * @default 'arrow-right'
56
56
  */
57
57
  actionIcon?: InlineNotificationActionIcon;
58
58
  /**
59
- * Action label of the inline-notification.
59
+ * Sets the label text of the optional action button inside the notification.
60
60
  */
61
61
  actionLabel?: string;
62
62
  /**
63
- * Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
63
+ * Disables the action button and shows a spinner to indicate an ongoing operation.
64
64
  * @default false
65
65
  */
66
66
  actionLoading?: boolean;
67
67
  /**
68
- * Description of the inline-notification.
68
+ * Sets the supporting description text shown below the heading.
69
69
  * @default ''
70
70
  */
71
71
  description?: string;
72
72
  /**
73
- * If false, the inline-notification will not have a dismiss button.
73
+ * Shows a dismiss button so the user can manually close the notification.
74
74
  * @default true
75
75
  */
76
76
  dismissButton?: boolean;
77
77
  /**
78
- * Heading of the inline-notification.
78
+ * Sets the heading text displayed at the top of the inline notification.
79
79
  * @default ''
80
80
  */
81
81
  heading?: string;
82
82
  /**
83
- * Sets a heading tag, so it fits correctly within the outline of the page.
83
+ * Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure.
84
84
  * @default 'h5'
85
85
  */
86
86
  headingTag?: InlineNotificationHeadingTag;
87
87
  /**
88
- * Emitted when the action button is clicked.
88
+ * Emitted when the user clicks the action button.
89
89
  */
90
90
  onAction?: (event: CustomEvent<void>) => void;
91
91
  /**
92
- * Emitted when the close button is clicked.
92
+ * Emitted when the user clicks the dismiss button.
93
93
  */
94
94
  onDismiss?: (event: CustomEvent<void>) => void;
95
95
  /**
96
- * State of the inline-notification.
96
+ * Sets the visual state — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
97
97
  * @default 'info'
98
98
  */
99
99
  state?: InlineNotificationState;
@@ -2,188 +2,188 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { BreakpointCustomizable, InputDateBlurEventDetail, InputDateChangeEventDetail, InputDateInputEventDetail, InputDateState } from '../types';
3
3
  export type PInputDateProps = 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., autocomplete='bday' for a birthday).
5
+ * Provides the browser with a date autofill hint (e.g. `autocomplete='bday'` for a birthday field).
6
6
  */
7
7
  autoComplete?: string;
8
8
  /**
9
- * Displays the input field in compact mode.
9
+ * Reduces the input height and padding for a more compact layout.
10
10
  * @default false
11
11
  */
12
12
  compact?: boolean;
13
13
  /**
14
- * Supplementary text providing more context or explanation for the input.
14
+ * Sets a supplementary description displayed below the label to provide additional context.
15
15
  * @default ''
16
16
  */
17
17
  description?: string;
18
18
  /**
19
- * Disables the input field. The value will not be submitted with the form.
19
+ * Disables the field, preventing date selection. The value is not submitted with the form.
20
20
  * @default false
21
21
  */
22
22
  disabled?: boolean;
23
23
  /**
24
- * Specifies the id of the <form> element that the input belongs to (useful if the input is not a direct descendant of the form).
24
+ * Associates the field with a form element by its ID when the field is not nested directly inside it.
25
25
  */
26
26
  form?: string;
27
27
  /**
28
- * Shows or hides the label. For better accessibility, it is recommended to show the label.
28
+ * Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
29
29
  * @default false
30
30
  */
31
31
  hideLabel?: BreakpointCustomizable<boolean>;
32
32
  /**
33
- * Text content for a user-facing label.
33
+ * Sets the visible label text displayed above the input field.
34
34
  * @default ''
35
35
  */
36
36
  label?: string;
37
37
  /**
38
- * @experimental Shows a loading indicator.
38
+ * @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
39
39
  * @default false
40
40
  */
41
41
  loading?: boolean;
42
42
  /**
43
- * Specifies the latest date that can be selected. The value must be a date string in YYYY-MM-DD format (e.g., max='2024-12-31').
43
+ * Sets the latest selectable date in YYYY-MM-DD format. Dates after this are disabled in the picker.
44
44
  */
45
45
  max?: string;
46
46
  /**
47
- * Dynamic feedback text for validation or status.
47
+ * Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
48
48
  * @default ''
49
49
  */
50
50
  message?: string;
51
51
  /**
52
- * Specifies the earliest date that can be selected. The value must be a date string in YYYY-MM-DD format (e.g., min='2023-01-01').
52
+ * Sets the earliest selectable date in YYYY-MM-DD format. Dates before this are disabled in the picker.
53
53
  */
54
54
  min?: string;
55
55
  /**
56
- * The name of the input field, used when submitting the form data.
56
+ * Sets the name submitted with the form data to identify this field's value on the server.
57
57
  */
58
58
  name: string;
59
59
  /**
60
- * Emitted when the date input has lost focus.
60
+ * Emitted when the input loses focus, regardless of whether the value changed.
61
61
  */
62
62
  onBlur?: (event: CustomEvent<InputDateBlurEventDetail>) => void;
63
63
  /**
64
- * Emitted when the date input loses focus after its value was changed.
64
+ * Emitted when the input loses focus after its value was changed.
65
65
  */
66
66
  onChange?: (event: CustomEvent<InputDateChangeEventDetail>) => void;
67
67
  /**
68
- * Emitted when the value has been changed as a direct result of a user action.
68
+ * Emitted on every value change as the user interacts with the date picker.
69
69
  */
70
70
  onInput?: (event: CustomEvent<InputDateInputEventDetail>) => void;
71
71
  /**
72
- * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
72
+ * Makes the field read-only the date is displayed but cannot be changed. The value is still submitted with the form.
73
73
  * @default false
74
74
  */
75
75
  readOnly?: boolean;
76
76
  /**
77
- * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
77
+ * Marks the field as required form submission is blocked while no date is selected.
78
78
  * @default false
79
79
  */
80
80
  required?: boolean;
81
81
  /**
82
- * Indicates the validation or overall status of the input component.
82
+ * Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
83
83
  * @default 'none'
84
84
  */
85
85
  state?: InputDateState;
86
86
  /**
87
- * Defines the granularity of the date input. This value is given in days. The default is 1 (one day).
87
+ * Sets the stepping interval in days. The selected date must align with the `min` date by a multiple of this value.
88
88
  * @default 1
89
89
  */
90
90
  step?: number;
91
91
  /**
92
- * The default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').
92
+ * Sets the current date value in YYYY-MM-DD format (e.g. `2025-07-02`).
93
93
  * @default ''
94
94
  */
95
95
  value?: string | null;
96
96
  };
97
97
  export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
98
98
  /**
99
- * Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='bday' for a birthday).
99
+ * Provides the browser with a date autofill hint (e.g. `autocomplete='bday'` for a birthday field).
100
100
  */
101
101
  autoComplete?: string;
102
102
  /**
103
- * Displays the input field in compact mode.
103
+ * Reduces the input height and padding for a more compact layout.
104
104
  * @default false
105
105
  */
106
106
  compact?: boolean;
107
107
  /**
108
- * Supplementary text providing more context or explanation for the input.
108
+ * Sets a supplementary description displayed below the label to provide additional context.
109
109
  * @default ''
110
110
  */
111
111
  description?: string;
112
112
  /**
113
- * Disables the input field. The value will not be submitted with the form.
113
+ * Disables the field, preventing date selection. The value is not submitted with the form.
114
114
  * @default false
115
115
  */
116
116
  disabled?: boolean;
117
117
  /**
118
- * Specifies the id of the <form> element that the input belongs to (useful if the input is not a direct descendant of the form).
118
+ * Associates the field with a form element by its ID when the field is not nested directly inside it.
119
119
  */
120
120
  form?: string;
121
121
  /**
122
- * Shows or hides the label. For better accessibility, it is recommended to show the label.
122
+ * Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
123
123
  * @default false
124
124
  */
125
125
  hideLabel?: BreakpointCustomizable<boolean>;
126
126
  /**
127
- * Text content for a user-facing label.
127
+ * Sets the visible label text displayed above the input field.
128
128
  * @default ''
129
129
  */
130
130
  label?: string;
131
131
  /**
132
- * @experimental Shows a loading indicator.
132
+ * @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
133
133
  * @default false
134
134
  */
135
135
  loading?: boolean;
136
136
  /**
137
- * Specifies the latest date that can be selected. The value must be a date string in YYYY-MM-DD format (e.g., max='2024-12-31').
137
+ * Sets the latest selectable date in YYYY-MM-DD format. Dates after this are disabled in the picker.
138
138
  */
139
139
  max?: string;
140
140
  /**
141
- * Dynamic feedback text for validation or status.
141
+ * Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
142
142
  * @default ''
143
143
  */
144
144
  message?: string;
145
145
  /**
146
- * Specifies the earliest date that can be selected. The value must be a date string in YYYY-MM-DD format (e.g., min='2023-01-01').
146
+ * Sets the earliest selectable date in YYYY-MM-DD format. Dates before this are disabled in the picker.
147
147
  */
148
148
  min?: string;
149
149
  /**
150
- * The name of the input field, used when submitting the form data.
150
+ * Sets the name submitted with the form data to identify this field's value on the server.
151
151
  */
152
152
  name: string;
153
153
  /**
154
- * Emitted when the date input has lost focus.
154
+ * Emitted when the input loses focus, regardless of whether the value changed.
155
155
  */
156
156
  onBlur?: (event: CustomEvent<InputDateBlurEventDetail>) => void;
157
157
  /**
158
- * Emitted when the date input loses focus after its value was changed.
158
+ * Emitted when the input loses focus after its value was changed.
159
159
  */
160
160
  onChange?: (event: CustomEvent<InputDateChangeEventDetail>) => void;
161
161
  /**
162
- * Emitted when the value has been changed as a direct result of a user action.
162
+ * Emitted on every value change as the user interacts with the date picker.
163
163
  */
164
164
  onInput?: (event: CustomEvent<InputDateInputEventDetail>) => void;
165
165
  /**
166
- * A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
166
+ * Makes the field read-only the date is displayed but cannot be changed. The value is still submitted with the form.
167
167
  * @default false
168
168
  */
169
169
  readOnly?: boolean;
170
170
  /**
171
- * A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
171
+ * Marks the field as required form submission is blocked while no date is selected.
172
172
  * @default false
173
173
  */
174
174
  required?: boolean;
175
175
  /**
176
- * Indicates the validation or overall status of the input component.
176
+ * Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
177
177
  * @default 'none'
178
178
  */
179
179
  state?: InputDateState;
180
180
  /**
181
- * Defines the granularity of the date input. This value is given in days. The default is 1 (one day).
181
+ * Sets the stepping interval in days. The selected date must align with the `min` date by a multiple of this value.
182
182
  * @default 1
183
183
  */
184
184
  step?: number;
185
185
  /**
186
- * The default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').
186
+ * Sets the current date value in YYYY-MM-DD format (e.g. `2025-07-02`).
187
187
  * @default ''
188
188
  */
189
189
  value?: string | null;