@porsche-design-system/components-react 4.2.0-rc.5 → 4.3.0-rc.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 (202) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/cjs/lib/components/tabs-bar.wrapper.cjs +3 -3
  3. package/cjs/lib/components/tabs.wrapper.cjs +3 -3
  4. package/emotion/package.json +1 -8
  5. package/esm/hooks.mjs +1 -1
  6. package/esm/lib/components/accordion.wrapper.d.ts +8 -8
  7. package/esm/lib/components/banner.wrapper.d.ts +16 -16
  8. package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
  9. package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
  10. package/esm/lib/components/button.wrapper.d.ts +24 -24
  11. package/esm/lib/components/canvas.wrapper.d.ts +10 -10
  12. package/esm/lib/components/carousel.wrapper.d.ts +34 -34
  13. package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
  14. package/esm/lib/components/crest.wrapper.d.ts +6 -6
  15. package/esm/lib/components/display.wrapper.d.ts +10 -10
  16. package/esm/lib/components/divider.wrapper.d.ts +4 -4
  17. package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
  18. package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
  19. package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
  20. package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
  21. package/esm/lib/components/flyout.wrapper.d.ts +20 -20
  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 +19 -11
  63. package/esm/lib/components/tabs-bar.wrapper.mjs +3 -3
  64. package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
  65. package/esm/lib/components/tabs.wrapper.d.ts +19 -11
  66. package/esm/lib/components/tabs.wrapper.mjs +3 -3
  67. package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  68. package/esm/lib/components/tag.wrapper.d.ts +8 -8
  69. package/esm/lib/components/text-list.wrapper.d.ts +2 -2
  70. package/esm/lib/components/textarea.wrapper.d.ts +48 -48
  71. package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  72. package/esm/lib/types.d.ts +13 -1
  73. package/package.json +6 -6
  74. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +179 -431
  75. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +40 -71
  76. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.cjs +4 -4
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.cjs +4 -4
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -1
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
  98. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +7 -2
  99. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +2 -2
  100. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
  101. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +179 -431
  102. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +40 -71
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.mjs +4 -4
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.mjs +4 -4
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +1 -1
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
  121. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
  122. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
  123. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
  124. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
  125. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -1
  126. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
  127. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
  128. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
  129. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
  130. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
  131. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
  132. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +8 -3
  133. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +2 -2
  134. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
  135. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
  136. package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
  137. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
  138. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
  139. package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
  140. package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
  141. package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
  142. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
  143. package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
  144. package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
  145. package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
  146. package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
  147. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
  148. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
  149. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
  150. package/ssr/esm/lib/components/flyout.wrapper.d.ts +20 -20
  151. package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
  152. package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
  153. package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
  154. package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
  155. package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
  156. package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
  157. package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
  158. package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
  159. package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
  160. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
  161. package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
  162. package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
  163. package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
  164. package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
  165. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
  166. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
  167. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
  168. package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
  169. package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
  170. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
  171. package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
  172. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
  173. package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
  174. package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
  175. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
  176. package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
  177. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
  178. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
  179. package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
  180. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
  181. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
  182. package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
  183. package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
  184. package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
  185. package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
  186. package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
  187. package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
  188. package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
  189. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
  190. package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
  191. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +19 -11
  192. package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
  193. package/ssr/esm/lib/components/tabs.wrapper.d.ts +19 -11
  194. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  195. package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
  196. package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
  197. package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
  198. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  199. package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
  200. package/ssr/esm/lib/types.d.ts +13 -1
  201. package/tailwindcss/index.css +57 -75
  202. package/vanilla-extract/package.json +1 -8
@@ -19,7 +19,7 @@ class DSRScroller extends Component {
19
19
  render() {
20
20
  splitChildren(this.props.children);
21
21
  const style = minifyCss(getComponentCss$s(this.props.isIndicatorPrevVisible, this.props.isIndicatorNextVisible, this.props.sticky, this.props.scrollbar, this.props.compact));
22
- return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("span", { className: "prev" }), jsx("span", { className: "next" }), jsxs("div", { className: "scroll", role: parseAndGetAriaAttributes(this.props.aria)?.role || null, tabIndex: this.props.isIndicatorPrevVisible || this.props.isIndicatorNextVisible ? 0 : null, children: [jsx("span", { className: "sentinel" }), jsx("slot", {}), jsx("span", { className: "sentinel" })] })] })] }), this.props.children] }));
22
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("span", { className: "prev" }), jsx("span", { className: "next" }), jsxs("div", { className: "scroll", ...parseAndGetAriaAttributes(this.props.aria), tabIndex: this.props.isIndicatorPrevVisible || this.props.isIndicatorNextVisible ? 0 : null, children: [jsx("span", { className: "sentinel" }), jsx("slot", {}), jsx("span", { className: "sentinel" })] })] })] }), this.props.children] }));
23
23
  }
24
24
  }
25
25
 
@@ -13,7 +13,7 @@ import { PIcon } from '../components/icon.wrapper.mjs';
13
13
  class DSRSegmentedControlItem extends Component {
14
14
  host;
15
15
  render() {
16
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
16
+ const { children} = splitChildren(this.props.children);
17
17
  // this additional validation is still needed because undefined is allowed with current propTypes
18
18
  const hasIcon = !!this.props.icon || !!this.props.iconSource;
19
19
  const hasSlottedContent = !!children.length;
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { getSegmentedControlCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
- import { descriptionId, getFieldsetAriaAttributes, labelId, setAriaIDREF } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
+ import { descriptionId, labelId, setAriaIDREF, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { Label } from './label.mjs';
9
9
  import { messageId, StateMessage } from './state-message.mjs';
10
10
  import { PScroller } from '../components/scroller.wrapper.mjs';
@@ -61,7 +61,7 @@ class DSRSelect extends Component {
61
61
  // triggers value watcher which syncs form value
62
62
  }
63
63
  render() {
64
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
64
+ const { namedSlotChildren} = splitChildren(this.props.children);
65
65
  const hasCustomFilterSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'filter').length > 0;
66
66
  const hasCustomSelectedSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'selected').length > 0;
67
67
  const buttonId = 'button';
@@ -24,7 +24,7 @@ class DSRSheet extends Component {
24
24
  hide: () => this.props.dialog?.close(),
25
25
  });
26
26
  render() {
27
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
27
+ const { namedSlotChildren} = splitChildren(this.props.children);
28
28
  const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
29
29
  if (this.props.open) ;
30
30
  const style = minifyCss(getComponentCss$n(this.props.open, this.props.background, this.props.dismissButton));
@@ -16,7 +16,7 @@ class DSRStepperHorizontal extends Component {
16
16
  slot;
17
17
  resizeObserver;
18
18
  render() {
19
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
19
+ const { children, otherChildren } = splitChildren(this.props.children);
20
20
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
21
21
  ? { ...child, props: { ...child.props, theme: this.props.theme } }
22
22
  : child);
@@ -13,7 +13,7 @@ import { PScroller } from '../components/scroller.wrapper.mjs';
13
13
  class DSRTable extends Component {
14
14
  host;
15
15
  render() {
16
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
16
+ const { namedSlotChildren} = splitChildren(this.props.children);
17
17
  const hasSlottedCaption = namedSlotChildren.filter(({ props: { slot } }) => slot === 'caption').length > 0;
18
18
  const captionId = 'caption';
19
19
  const tableAttr = this.props.caption
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { getTabsBarCss as getComponentCss$b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
- import { getSanitizedActiveTabIndex } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
+ import { getSanitizedActiveTabIndex, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PScroller } from '../components/scroller.wrapper.mjs';
9
9
 
10
10
  /**
@@ -22,9 +22,14 @@ class DSRTabsBar extends Component {
22
22
  isTabList;
23
23
  resizeObserver;
24
24
  render() {
25
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
25
+ const { children} = splitChildren(this.props.children);
26
26
  const style = minifyCss(getComponentCss$b(this.props.background, this.props.size, this.props.compact, getSanitizedActiveTabIndex(this.props.activeTabIndex, children)));
27
- return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", compact: this.props.compact, ...(this.props.isTabList && { aria: { role: 'tablist' } }), children: [jsx("slot", {}), jsx("span", { className: "bar" })] })] }), this.props.children] }));
27
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", compact: this.props.compact, ...(this.props.isTabList && {
28
+ aria: {
29
+ role: 'tablist',
30
+ ...parseAndGetAriaAttributes(this.props.aria),
31
+ },
32
+ }), children: [jsx("slot", {}), jsx("span", { className: "bar" })] })] }), this.props.children] }));
28
33
  }
29
34
  }
30
35
 
@@ -16,12 +16,12 @@ class DSRTabs extends Component {
16
16
  tabsItems = [];
17
17
  slot;
18
18
  render() {
19
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
19
+ const { children, otherChildren } = splitChildren(this.props.children);
20
20
  const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
21
21
  ? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
22
22
  : child);
23
23
  const style = minifyCss(getComponentCss$9());
24
- return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PTabsBar, { className: "root", size: this.props.size, background: this.props.background, compact: this.props.compact, activeTabIndex: this.props.activeTabIndex, children: otherChildren.map((tab, index) => (jsx("button", { type: "button", children: typeof tab === 'object' && 'props' in tab && tab.props.label }, index))) }), jsx("slot", {})] })] }), manipulatedChildren] }));
24
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PTabsBar, { className: "root", size: this.props.size, background: this.props.background, compact: this.props.compact, activeTabIndex: this.props.activeTabIndex, aria: this.props.aria, children: otherChildren.map((tab, index) => (jsx("button", { type: "button", children: typeof tab === 'object' && 'props' in tab && tab.props.label }, index))) }), jsx("slot", {})] })] }), manipulatedChildren] }));
25
25
  }
26
26
  }
27
27
 
@@ -33,7 +33,7 @@ class DSRTextarea extends Component {
33
33
  formStateRestoreCallback() {
34
34
  }
35
35
  render() {
36
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
36
+ const { namedSlotChildren} = splitChildren(this.props.children);
37
37
  const id = 'textarea';
38
38
  const textareaDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
39
39
  const textareaMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
@@ -2,17 +2,17 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { AccordionAlignMarker, AccordionBackground, AccordionHeadingTag, BreakpointCustomizable, AccordionUpdateEventDetail, AccordionSize } from '../types';
3
3
  export type PAccordionProps = BaseProps & {
4
4
  /**
5
- * Aligns the marker within the summary section.
5
+ * Positions the expand/collapse marker icon at the start or end of the summary section.
6
6
  * @default 'end'
7
7
  */
8
8
  alignMarker?: AccordionAlignMarker;
9
9
  /**
10
- * Defines the background color. Use `frosted` only on images, videos or gradients.
10
+ * Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
11
11
  * @default 'none'
12
12
  */
13
13
  background?: AccordionBackground;
14
14
  /**
15
- * Displays the accordion in compact mode.
15
+ * Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
16
16
  */
17
17
  compact?: boolean;
18
18
  /**
@@ -30,7 +30,7 @@ export type PAccordionProps = BaseProps & {
30
30
  */
31
31
  indent?: BreakpointCustomizable<boolean>;
32
32
  /**
33
- * Emitted when the accordion state changes.
33
+ * Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
34
34
  */
35
35
  onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
36
36
  /**
@@ -49,17 +49,17 @@ export type PAccordionProps = BaseProps & {
49
49
  };
50
50
  export declare const PAccordion: 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"> & {
51
51
  /**
52
- * Aligns the marker within the summary section.
52
+ * Positions the expand/collapse marker icon at the start or end of the summary section.
53
53
  * @default 'end'
54
54
  */
55
55
  alignMarker?: AccordionAlignMarker;
56
56
  /**
57
- * Defines the background color. Use `frosted` only on images, videos or gradients.
57
+ * Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
58
58
  * @default 'none'
59
59
  */
60
60
  background?: AccordionBackground;
61
61
  /**
62
- * Displays the accordion in compact mode.
62
+ * Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
63
63
  */
64
64
  compact?: boolean;
65
65
  /**
@@ -77,7 +77,7 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
77
77
  */
78
78
  indent?: BreakpointCustomizable<boolean>;
79
79
  /**
80
- * Emitted when the accordion state changes.
80
+ * Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
81
81
  */
82
82
  onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
83
83
  /**
@@ -2,82 +2,82 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { BannerHeadingTag, BreakpointCustomizable, BannerPosition, BannerState } from '../types';
3
3
  export type PBannerProps = BaseProps & {
4
4
  /**
5
- * Sets the description text of the banner.
5
+ * Sets the supporting description text shown below the heading.
6
6
  * @default ''
7
7
  */
8
8
  description?: string;
9
9
  /**
10
- * Shows a dismiss button allowing the banner to be closed.
10
+ * Shows a dismiss button so the user can manually close the banner.
11
11
  * @default true
12
12
  */
13
13
  dismissButton?: boolean;
14
14
  /**
15
- * Sets the heading text of the banner.
15
+ * Sets the heading text displayed at the top of the banner.
16
16
  * @default ''
17
17
  */
18
18
  heading?: string;
19
19
  /**
20
- * Sets the heading tag for proper semantic structure within the page.
20
+ * Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
21
21
  * @default 'h5'
22
22
  */
23
23
  headingTag?: BannerHeadingTag;
24
24
  /**
25
- * Emitted when the banner is requested to be dismissed.
25
+ * Emitted when the user closes the banner via the dismiss button or Escape key.
26
26
  */
27
27
  onDismiss?: (event: CustomEvent<void>) => void;
28
28
  /**
29
- * Controls whether the banner is open or closed.
29
+ * Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
30
30
  * @default false
31
31
  */
32
32
  open: boolean;
33
33
  /**
34
- * Sets the position of the banner.
34
+ * Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
35
35
  * @default { base: 'bottom', s: 'top' }
36
36
  */
37
37
  position?: BreakpointCustomizable<BannerPosition>;
38
38
  /**
39
- * Defines the visual state of the banner.
39
+ * Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
40
40
  * @default 'info'
41
41
  */
42
42
  state?: BannerState;
43
43
  };
44
44
  export declare const PBanner: 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"> & {
45
45
  /**
46
- * Sets the description text of the banner.
46
+ * Sets the supporting description text shown below the heading.
47
47
  * @default ''
48
48
  */
49
49
  description?: string;
50
50
  /**
51
- * Shows a dismiss button allowing the banner to be closed.
51
+ * Shows a dismiss button so the user can manually close the banner.
52
52
  * @default true
53
53
  */
54
54
  dismissButton?: boolean;
55
55
  /**
56
- * Sets the heading text of the banner.
56
+ * Sets the heading text displayed at the top of the banner.
57
57
  * @default ''
58
58
  */
59
59
  heading?: string;
60
60
  /**
61
- * Sets the heading tag for proper semantic structure within the page.
61
+ * Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
62
62
  * @default 'h5'
63
63
  */
64
64
  headingTag?: BannerHeadingTag;
65
65
  /**
66
- * Emitted when the banner is requested to be dismissed.
66
+ * Emitted when the user closes the banner via the dismiss button or Escape key.
67
67
  */
68
68
  onDismiss?: (event: CustomEvent<void>) => void;
69
69
  /**
70
- * Controls whether the banner is open or closed.
70
+ * Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
71
71
  * @default false
72
72
  */
73
73
  open: boolean;
74
74
  /**
75
- * Sets the position of the banner.
75
+ * Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
76
76
  * @default { base: 'bottom', s: 'top' }
77
77
  */
78
78
  position?: BreakpointCustomizable<BannerPosition>;
79
79
  /**
80
- * Defines the visual state of the banner.
80
+ * Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
81
81
  * @default 'info'
82
82
  */
83
83
  state?: BannerState;
@@ -2,155 +2,155 @@ import type { BaseProps } from '../../BaseProps';
2
2
  import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureColor, ButtonPureIcon, ButtonPureSize, ButtonPureType } from '../types';
3
3
  export type PButtonPureProps = BaseProps & {
4
4
  /**
5
- * Displays the button in its active state.
5
+ * Visually marks the button as the currently active or selected item, useful for navigation and toggle patterns.
6
6
  * @default false
7
7
  */
8
8
  active?: boolean;
9
9
  /**
10
- * Aligns the label.
10
+ * Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
11
11
  * @default 'end'
12
12
  */
13
13
  alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
14
14
  /**
15
- * Sets ARIA attributes.
15
+ * Sets ARIA attributes on the button to improve accessibility for screen readers.
16
16
  */
17
17
  aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
18
18
  /**
19
- * The color.
19
+ * Sets the foreground color of the button's icon and label text.
20
20
  * @default 'primary'
21
21
  */
22
22
  color?: ButtonPureColor;
23
23
  /**
24
- * Disables the button. No events will be triggered while disabled state is active.
24
+ * Disables the button, preventing all interaction and blocking events.
25
25
  * @default false
26
26
  */
27
27
  disabled?: boolean;
28
28
  /**
29
- * The id of a form element the button should be associated with.
29
+ * Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
30
30
  */
31
31
  form?: string;
32
32
  /**
33
- * Shows or hides the label. For better accessibility, it is recommended to show the label.
33
+ * Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
34
34
  * @default false
35
35
  */
36
36
  hideLabel?: BreakpointCustomizable<boolean>;
37
37
  /**
38
- * The icon shown.
38
+ * Sets the icon displayed next to the label.
39
39
  * @default 'arrow-right'
40
40
  */
41
41
  icon?: ButtonPureIcon;
42
42
  /**
43
- * A URL path to a custom icon.
43
+ * Sets a path to a custom SVG icon, used instead of the built-in icon set.
44
44
  */
45
45
  iconSource?: string;
46
46
  /**
47
- * Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
47
+ * Disables the button and replaces its icon with a loading spinner to indicate an ongoing operation.
48
48
  * @default false
49
49
  */
50
50
  loading?: boolean;
51
51
  /**
52
- * The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form.
52
+ * Sets the name submitted with the form data when this button triggers form submission.
53
53
  */
54
54
  name?: string;
55
55
  /**
56
- * Size of the button.
56
+ * Sets the font size of the button label. Supports responsive breakpoint values.
57
57
  * @default 'sm'
58
58
  */
59
59
  size?: BreakpointCustomizable<ButtonPureSize>;
60
60
  /**
61
- * Stretches the area between icon and label to max available space.
61
+ * Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
62
62
  * @default false
63
63
  */
64
64
  stretch?: BreakpointCustomizable<boolean>;
65
65
  /**
66
- * Specifies the type of the button.
66
+ * Sets the button's HTML type `submit` sends the form, `reset` clears it, `button` performs no default action.
67
67
  * @default 'submit'
68
68
  */
69
69
  type?: ButtonPureType;
70
70
  /**
71
- * Shows an underline under the label.
71
+ * Adds a text underline to the label to reinforce the button's link-like appearance.
72
72
  * @default false
73
73
  */
74
74
  underline?: boolean;
75
75
  /**
76
- * Defines the value associated with the button's name when it's submitted with the form data. This value is passed to the server in params when the form is submitted using this button.
76
+ * Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
77
77
  */
78
78
  value?: string;
79
79
  };
80
80
  export declare const PButtonPure: 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"> & {
81
81
  /**
82
- * Displays the button in its active state.
82
+ * Visually marks the button as the currently active or selected item, useful for navigation and toggle patterns.
83
83
  * @default false
84
84
  */
85
85
  active?: boolean;
86
86
  /**
87
- * Aligns the label.
87
+ * Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
88
88
  * @default 'end'
89
89
  */
90
90
  alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
91
91
  /**
92
- * Sets ARIA attributes.
92
+ * Sets ARIA attributes on the button to improve accessibility for screen readers.
93
93
  */
94
94
  aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
95
95
  /**
96
- * The color.
96
+ * Sets the foreground color of the button's icon and label text.
97
97
  * @default 'primary'
98
98
  */
99
99
  color?: ButtonPureColor;
100
100
  /**
101
- * Disables the button. No events will be triggered while disabled state is active.
101
+ * Disables the button, preventing all interaction and blocking events.
102
102
  * @default false
103
103
  */
104
104
  disabled?: boolean;
105
105
  /**
106
- * The id of a form element the button should be associated with.
106
+ * Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
107
107
  */
108
108
  form?: string;
109
109
  /**
110
- * Shows or hides the label. For better accessibility, it is recommended to show the label.
110
+ * Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
111
111
  * @default false
112
112
  */
113
113
  hideLabel?: BreakpointCustomizable<boolean>;
114
114
  /**
115
- * The icon shown.
115
+ * Sets the icon displayed next to the label.
116
116
  * @default 'arrow-right'
117
117
  */
118
118
  icon?: ButtonPureIcon;
119
119
  /**
120
- * A URL path to a custom icon.
120
+ * Sets a path to a custom SVG icon, used instead of the built-in icon set.
121
121
  */
122
122
  iconSource?: string;
123
123
  /**
124
- * Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
124
+ * Disables the button and replaces its icon with a loading spinner to indicate an ongoing operation.
125
125
  * @default false
126
126
  */
127
127
  loading?: boolean;
128
128
  /**
129
- * The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form.
129
+ * Sets the name submitted with the form data when this button triggers form submission.
130
130
  */
131
131
  name?: string;
132
132
  /**
133
- * Size of the button.
133
+ * Sets the font size of the button label. Supports responsive breakpoint values.
134
134
  * @default 'sm'
135
135
  */
136
136
  size?: BreakpointCustomizable<ButtonPureSize>;
137
137
  /**
138
- * Stretches the area between icon and label to max available space.
138
+ * Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
139
139
  * @default false
140
140
  */
141
141
  stretch?: BreakpointCustomizable<boolean>;
142
142
  /**
143
- * Specifies the type of the button.
143
+ * Sets the button's HTML type `submit` sends the form, `reset` clears it, `button` performs no default action.
144
144
  * @default 'submit'
145
145
  */
146
146
  type?: ButtonPureType;
147
147
  /**
148
- * Shows an underline under the label.
148
+ * Adds a text underline to the label to reinforce the button's link-like appearance.
149
149
  * @default false
150
150
  */
151
151
  underline?: boolean;
152
152
  /**
153
- * Defines the value associated with the button's name when it's submitted with the form data. This value is passed to the server in params when the form is submitted using this button.
153
+ * Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
154
154
  */
155
155
  value?: string;
156
156
  } & {