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

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 (178) hide show
  1. package/CHANGELOG.md +293 -1
  2. package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
  3. package/cjs/lib/components/display.wrapper.cjs +1 -0
  4. package/cjs/lib/components/flag.wrapper.cjs +1 -1
  5. package/cjs/lib/components/heading.wrapper.cjs +3 -3
  6. package/cjs/lib/components/icon.wrapper.cjs +1 -1
  7. package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
  8. package/cjs/lib/components/spinner.wrapper.cjs +3 -3
  9. package/cjs/lib/components/text.wrapper.cjs +1 -1
  10. package/esm/lib/components/accordion.wrapper.d.ts +8 -8
  11. package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  12. package/esm/lib/components/button-pure.wrapper.mjs +3 -3
  13. package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  14. package/esm/lib/components/button.wrapper.d.ts +6 -6
  15. package/esm/lib/components/carousel.wrapper.d.ts +10 -10
  16. package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  17. package/esm/lib/components/crest.wrapper.d.ts +6 -6
  18. package/esm/lib/components/display.wrapper.d.ts +1 -0
  19. package/esm/lib/components/display.wrapper.mjs +1 -0
  20. package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  21. package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  22. package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  23. package/esm/lib/components/flag.wrapper.d.ts +5 -5
  24. package/esm/lib/components/flag.wrapper.mjs +1 -1
  25. package/esm/lib/components/flyout.wrapper.d.ts +2 -2
  26. package/esm/lib/components/heading.wrapper.d.ts +19 -11
  27. package/esm/lib/components/heading.wrapper.mjs +3 -3
  28. package/esm/lib/components/icon.wrapper.d.ts +7 -7
  29. package/esm/lib/components/icon.wrapper.mjs +1 -1
  30. package/esm/lib/components/input-date.wrapper.d.ts +12 -12
  31. package/esm/lib/components/input-email.wrapper.d.ts +8 -8
  32. package/esm/lib/components/input-month.wrapper.d.ts +12 -12
  33. package/esm/lib/components/input-number.wrapper.d.ts +8 -8
  34. package/esm/lib/components/input-password.wrapper.d.ts +6 -6
  35. package/esm/lib/components/input-search.wrapper.d.ts +6 -6
  36. package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  37. package/esm/lib/components/input-text.wrapper.d.ts +6 -6
  38. package/esm/lib/components/input-time.wrapper.d.ts +14 -14
  39. package/esm/lib/components/input-url.wrapper.d.ts +16 -16
  40. package/esm/lib/components/input-week.wrapper.d.ts +14 -14
  41. package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  42. package/esm/lib/components/link-pure.wrapper.mjs +3 -3
  43. package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  44. package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  45. package/esm/lib/components/link.wrapper.d.ts +14 -14
  46. package/esm/lib/components/modal.wrapper.d.ts +2 -2
  47. package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  48. package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  49. package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  50. package/esm/lib/components/popover.wrapper.d.ts +6 -6
  51. package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  52. package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  53. package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  54. package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  55. package/esm/lib/components/select.wrapper.d.ts +10 -10
  56. package/esm/lib/components/sheet.wrapper.d.ts +2 -2
  57. package/esm/lib/components/spinner.wrapper.d.ts +13 -5
  58. package/esm/lib/components/spinner.wrapper.mjs +3 -3
  59. package/esm/lib/components/switch.wrapper.d.ts +6 -6
  60. package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  61. package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  62. package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  63. package/esm/lib/components/tabs.wrapper.d.ts +2 -2
  64. package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  65. package/esm/lib/components/tag.wrapper.d.ts +2 -2
  66. package/esm/lib/components/text.wrapper.d.ts +12 -12
  67. package/esm/lib/components/text.wrapper.mjs +1 -1
  68. package/esm/lib/components/textarea.wrapper.d.ts +6 -6
  69. package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  70. package/esm/lib/types.d.ts +322 -141
  71. package/global-styles/cn/index.css +3 -7
  72. package/global-styles/index.css +3 -7
  73. package/global-styles/variables.css +3 -7
  74. package/package.json +6 -2
  75. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +341 -319
  76. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +18 -8
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +1 -1
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -0
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -1
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
  98. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +341 -319
  99. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +18 -8
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +1 -1
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -1
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
  121. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
  122. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  123. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  124. package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
  125. package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
  126. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  127. package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
  128. package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
  129. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  130. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  131. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  132. package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
  133. package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
  134. package/ssr/esm/lib/components/heading.wrapper.d.ts +19 -11
  135. package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
  136. package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
  137. package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
  138. package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
  139. package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
  140. package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
  141. package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
  142. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  143. package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
  144. package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
  145. package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
  146. package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
  147. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  148. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  149. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  150. package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
  151. package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
  152. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  153. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  154. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  155. package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
  156. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  157. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  158. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  159. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  160. package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
  161. package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
  162. package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
  163. package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
  164. package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  165. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  166. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  167. package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
  168. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  169. package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
  170. package/ssr/esm/lib/components/text.wrapper.d.ts +12 -12
  171. package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
  172. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  173. package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
  174. package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
  175. package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
  176. package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
  177. package/ssr/esm/lib/types.d.ts +322 -141
  178. package/tailwindcss/index.css +19 -4
@@ -3448,7 +3448,7 @@ const hasShowPickerSupport = () => (hasDocument &&
3448
3448
  'showPicker' in HTMLInputElement.prototype &&
3449
3449
  CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
3450
3450
 
3451
- const prefix = `[Porsche Design System v${"4.0.0-beta.2"}]` // this part isn't covered by unit tests
3451
+ const prefix = `[Porsche Design System v${"4.0.0-beta.3"}]` // this part isn't covered by unit tests
3452
3452
  ;
3453
3453
  const consoleError$1 = (...messages) => {
3454
3454
  console.error(prefix, ...messages);
@@ -3527,8 +3527,6 @@ var unwrapErr = (result) => {
3527
3527
  throw result.value;
3528
3528
  }
3529
3529
  };
3530
-
3531
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3532
3530
  const headerSlot = 'header';
3533
3531
  const anchorSlot = 'anchor';
3534
3532
 
@@ -3733,12 +3731,24 @@ const getFieldsetAriaAttributes = (isRequired, isInvalid, aria) => {
3733
3731
  const buildFlagUrl = (flagName) => {
3734
3732
  return `${getCDNBaseURL()}/flags/${FLAGS_MANIFEST[flagName] || FLAGS_MANIFEST.xx}`;
3735
3733
  };
3734
+
3735
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3736
3736
  const headingSizeToTagMap = {
3737
- small: 'h6',
3738
- medium: 'h5',
3739
- large: 'h4',
3740
- 'x-large': 'h3',
3741
- 'xx-large': 'h2',
3737
+ small: 'h6', // deprecated
3738
+ medium: 'h5', // deprecated
3739
+ large: 'h4', // deprecated
3740
+ 'x-large': 'h3', // deprecated
3741
+ 'xx-large': 'h2', // deprecated
3742
+ '2xs': 'h6',
3743
+ xs: 'h6',
3744
+ sm: 'h6',
3745
+ md: 'h5',
3746
+ lg: 'h4',
3747
+ xl: 'h3',
3748
+ '2xl': 'h2',
3749
+ '3xl': 'h2',
3750
+ '4xl': 'h2',
3751
+ '5xl': 'h2',
3742
3752
  inherit: 'h2',
3743
3753
  };
3744
3754
  const getHeadingTagType = (host, size, tag) => {
@@ -7,20 +7,20 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var buttonPure = require('../dsr-components/button-pure.cjs');
9
9
 
10
- const PButtonPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = 'small', stretch = false, type = 'submit', underline = false, value, className, children, ...rest }, ref) => {
10
+ const PButtonPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, color = 'primary', disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = 'sm', stretch = false, type = 'submit', underline = false, value, className, children, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-button-pure');
13
- const propsToSync = [active, alignLabel, aria, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value];
13
+ const propsToSync = [active, alignLabel, aria, color, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value];
14
14
  hooks.useBrowserLayoutEffect(() => {
15
15
  const { current } = elementRef;
16
- ['active', 'alignLabel', 'aria', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'type', 'underline', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
+ ['active', 'alignLabel', 'aria', 'color', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'type', 'underline', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
17
  }, propsToSync);
18
18
  const props = {
19
19
  ...rest,
20
20
  // @ts-ignore
21
21
  ...(!process.browser
22
22
  ? {
23
- children: (jsxRuntime.jsx(buttonPure.DSRButtonPure, { active, alignLabel, aria, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value, children })),
23
+ children: (jsxRuntime.jsx(buttonPure.DSRButtonPure, { active, alignLabel, aria, color, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, type, underline, value, children })),
24
24
  }
25
25
  : {
26
26
  children,
@@ -7,6 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var display = require('../dsr-components/display.cjs');
9
9
 
10
+ /** @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead. */
10
11
  const PDisplay = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'large', tag, className, children, ...rest }, ref) => {
11
12
  const elementRef = react.useRef(undefined);
12
13
  const WebComponentTag = hooks.usePrefix('p-display');
@@ -7,7 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var flag = require('../dsr-components/flag.cjs');
9
9
 
10
- const PFlag = /*#__PURE__*/ react.forwardRef(({ aria, name = 'de', size = 'small', className, ...rest }, ref) => {
10
+ const PFlag = /*#__PURE__*/ react.forwardRef(({ aria, name = 'de', size = 'sm', className, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-flag');
13
13
  const propsToSync = [aria, name, size];
@@ -7,20 +7,20 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var heading = require('../dsr-components/heading.cjs');
9
9
 
10
- const PHeading = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'xx-large', tag, className, children, ...rest }, ref) => {
10
+ const PHeading = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = '2xl', tag, weight = 'normal', className, children, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-heading');
13
- const propsToSync = [align, color, ellipsis, size, tag];
13
+ const propsToSync = [align, color, ellipsis, size, tag, weight];
14
14
  hooks.useBrowserLayoutEffect(() => {
15
15
  const { current } = elementRef;
16
- ['align', 'color', 'ellipsis', 'size', 'tag'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
+ ['align', 'color', 'ellipsis', 'size', 'tag', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
17
  }, propsToSync);
18
18
  const props = {
19
19
  ...rest,
20
20
  // @ts-ignore
21
21
  ...(!process.browser
22
22
  ? {
23
- children: (jsxRuntime.jsx(heading.DSRHeading, { align, color, ellipsis, size, tag, children })),
23
+ children: (jsxRuntime.jsx(heading.DSRHeading, { align, color, ellipsis, size, tag, weight, children })),
24
24
  }
25
25
  : {
26
26
  children,
@@ -7,7 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var icon = require('../dsr-components/icon.cjs');
9
9
 
10
- const PIcon = /*#__PURE__*/ react.forwardRef(({ aria, color = 'primary', name = 'arrow-right', size = 'small', source, className, ...rest }, ref) => {
10
+ const PIcon = /*#__PURE__*/ react.forwardRef(({ aria, color = 'primary', name = 'arrow-right', size = 'sm', source, className, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-icon');
13
13
  const propsToSync = [aria, color, name, size, source];
@@ -7,20 +7,20 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var linkPure = require('../dsr-components/link-pure.cjs');
9
9
 
10
- const PLinkPure = /*#__PURE__*/ react.forwardRef(({ active = false, alignLabel = 'end', aria, download, hideLabel = false, href, icon = 'arrow-right', iconSource, rel, size = 'small', stretch = false, target = '_self', underline = false, className, children, ...rest }, ref) => {
10
+ const PLinkPure = /*#__PURE__*/ react.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, children, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-link-pure');
13
- const propsToSync = [active, alignLabel, aria, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline];
13
+ const propsToSync = [active, alignLabel, aria, color, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline];
14
14
  hooks.useBrowserLayoutEffect(() => {
15
15
  const { current } = elementRef;
16
- ['active', 'alignLabel', 'aria', 'download', 'hideLabel', 'href', 'icon', 'iconSource', 'rel', 'size', 'stretch', 'target', 'underline'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
+ ['active', 'alignLabel', 'aria', 'color', 'download', 'hideLabel', 'href', 'icon', 'iconSource', 'rel', 'size', 'stretch', 'target', 'underline'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
17
  }, propsToSync);
18
18
  const props = {
19
19
  ...rest,
20
20
  // @ts-ignore
21
21
  ...(!process.browser
22
22
  ? {
23
- children: (jsxRuntime.jsx(linkPure.DSRLinkPure, { active, alignLabel, aria, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline, children })),
23
+ children: (jsxRuntime.jsx(linkPure.DSRLinkPure, { active, alignLabel, aria, color, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, underline, children })),
24
24
  }
25
25
  : {
26
26
  children,
@@ -7,20 +7,20 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var spinner = require('../dsr-components/spinner.cjs');
9
9
 
10
- const PSpinner = /*#__PURE__*/ react.forwardRef(({ aria, size = 'small', className, ...rest }, ref) => {
10
+ const PSpinner = /*#__PURE__*/ react.forwardRef(({ aria, color = 'primary', size = 'sm', className, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-spinner');
13
- const propsToSync = [aria, size];
13
+ const propsToSync = [aria, color, size];
14
14
  hooks.useBrowserLayoutEffect(() => {
15
15
  const { current } = elementRef;
16
- ['aria', 'size'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
+ ['aria', 'color', 'size'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
17
  }, propsToSync);
18
18
  const props = {
19
19
  ...rest,
20
20
  // @ts-ignore
21
21
  ...(!process.browser
22
22
  ? {
23
- children: (jsxRuntime.jsx(spinner.DSRSpinner, { aria, size })),
23
+ children: (jsxRuntime.jsx(spinner.DSRSpinner, { aria, color, size })),
24
24
  }
25
25
  : {
26
26
  suppressHydrationWarning: true,
@@ -7,7 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var text = require('../dsr-components/text.cjs');
9
9
 
10
- const PText = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'small', tag = 'p', weight = 'regular', className, children, ...rest }, ref) => {
10
+ const PText = /*#__PURE__*/ react.forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'sm', tag = 'p', weight = 'normal', className, children, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-text');
13
13
  const propsToSync = [align, color, ellipsis, size, tag, weight];
@@ -29,9 +29,10 @@ class DSRButtonPure extends react.Component {
29
29
  const iconProps = {
30
30
  className: 'icon',
31
31
  size: 'inherit',
32
+ color: 'inherit',
32
33
  };
33
- const style = minifyCss.minifyCss(stylesEntry.getButtonPureCss(this.props.icon, this.props.iconSource, this.props.active, this.props.disabled, this.props.loading, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.underline));
34
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("button", { ...utilsEntry.getButtonPureAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, name: this.props.name, value: this.props.value, "aria-describedby": this.props.loading ? loadingMessage.loadingId : undefined, children: [this.props.loading ? (jsxRuntime.jsx(spinner_wrapper.PSpinner, { ...iconProps, "aria-hidden": "true" })) : (hasIcon && (jsxRuntime.jsx(icon_wrapper.PIcon, { ...iconProps, name: this.props.icon, source: this.props.iconSource, color: "inherit", "aria-hidden": "true" }))), jsxRuntime.jsx("span", { className: "label", children: jsxRuntime.jsx("slot", {}) })] }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
34
+ const style = minifyCss.minifyCss(stylesEntry.getButtonPureCss(this.props.icon, this.props.iconSource, this.props.active, this.props.disabled, this.props.loading, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.color, this.props.hideLabel, this.props.alignLabel, this.props.underline));
35
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("button", { ...utilsEntry.getButtonPureAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, name: this.props.name, value: this.props.value, "aria-describedby": this.props.loading ? loadingMessage.loadingId : undefined, children: [this.props.loading ? (jsxRuntime.jsx(spinner_wrapper.PSpinner, { ...iconProps, "aria-hidden": "true" })) : (hasIcon && (jsxRuntime.jsx(icon_wrapper.PIcon, { ...iconProps, name: this.props.icon, source: this.props.iconSource, "aria-hidden": "true" }))), jsxRuntime.jsx("span", { className: "label", children: jsxRuntime.jsx("slot", {}) })] }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
35
36
  }
36
37
  }
37
38
 
@@ -12,8 +12,8 @@ var linkPure_wrapper = require('../components/link-pure.wrapper.cjs');
12
12
 
13
13
  /**
14
14
  * @slot {"name": "heading", "description": "Renders a heading above the carousel." }
15
- * @slot {"name": "description", "description": "Shows a footer section, flowing under the content area when scrollable." }
16
- * @slot {"name": "controls", "description": "Shows a sidebar area on the **start** side (**left** in **LTR** mode / **right** in **RTL** mode). On mobile view it transforms into a flyout." }
15
+ * @slot {"name": "description", "description": "Renders descriptive content below the heading." }
16
+ * @slot {"name": "controls", "description": "Renders custom controls such as navigation buttons or indicators." }
17
17
  * @slot {"name": "", "description": "Default slot for the carousel slides." }
18
18
  *
19
19
  * @controlled { "props": ["activeSlideIndex"], "event": "update", "isInternallyMutated": true }
@@ -38,7 +38,7 @@ class DSRCheckbox extends react.Component {
38
38
  const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
39
39
  const id = 'x';
40
40
  const style = minifyCss.minifyCss(stylesEntry.getCheckboxCss(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact));
41
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsxs("div", { className: "input-wrapper", children: [jsxRuntime.jsx("input", { type: "checkbox", id: id, "aria-describedby": `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", "aria-hidden": "true" })] }), jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
41
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsxs("div", { className: "input-wrapper", children: [jsxRuntime.jsx("input", { type: "checkbox", id: id, "aria-describedby": `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", "aria-hidden": "true" })] }), jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
42
42
  }
43
43
  }
44
44
 
@@ -9,6 +9,8 @@ var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entr
9
9
 
10
10
  /**
11
11
  * @slot {"name": "", "description": "Default slot for the display text." }
12
+ *
13
+ * @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead.
12
14
  */
13
15
  class DSRDisplay extends react.Component {
14
16
  host;
@@ -10,8 +10,8 @@ var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
10
10
 
11
11
  /**
12
12
  * @slot {"name": "", "description": "Default slot for the main content." }
13
- * @slot {"name": "button", "description": "Shows a custom button to reach a deeper level of the navigation structure." } *
14
- * @slot {"name": "header", "description": "Shows a custom header section on mobile view" } *
13
+ * @slot {"name": "button", "description": "Shows a custom button to reach a deeper level of the navigation structure." }
14
+ * @slot {"name": "header", "description": "Shows a custom header section on mobile view." }
15
15
  * @experimental
16
16
  */
17
17
  class DSRDrilldownItem extends react.Component {
@@ -13,7 +13,7 @@ var button_wrapper = require('../components/button.wrapper.cjs');
13
13
  * @slot {"name": "header", "description": "Renders a sticky header section above the content area." }
14
14
  * @slot {"name": "", "description": "Default slot for the main content." }
15
15
  * @slot {"name": "footer", "description": "Shows a sticky footer section, flowing under the content area when scrollable." }
16
- * @slot {"name": "sub-footer", "description": "Shows a sub-footer section to display additional information below the footer. This slot is ideal for less critical content, such as legal information or FAQs, which provides further details to the user. It appears when scrolling to the end of the flyout or when there is available space to accommodate the content." }
16
+ * @slot {"name": "sub-footer", "description": "Renders additional content below the footer, such as legal information or FAQs. It appears when the flyout has enough space or when the user scrolls to the end." }
17
17
  *
18
18
  * @controlled {"props": ["open"], "event": "dismiss"}
19
19
  */
@@ -15,7 +15,7 @@ class DSRHeading extends react.Component {
15
15
  render() {
16
16
  splitChildren.splitChildren(this.props.children);
17
17
  const TagType = utilsEntry.getHeadingTagType(null, this.props.size, this.props.tag);
18
- const style = minifyCss.minifyCss(stylesEntry.getHeadingCss(this.props.size, this.props.align, this.props.color, this.props.ellipsis));
18
+ const style = minifyCss.minifyCss(stylesEntry.getHeadingCss(this.props.size, this.props.weight, this.props.align, this.props.color, this.props.ellipsis));
19
19
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(TagType, { className: "root", children: jsxRuntime.jsx("slot", {}) })] }), this.props.children] }));
20
20
  }
21
21
  }
@@ -22,7 +22,7 @@ id, label: label$1, description, loading, initialLoading, required, disabled, st
22
22
  start, end, }) => {
23
23
  const { namedSlotChildren } = splitChildren.splitChildren(children);
24
24
  return (jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: !!label$1 || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: !!description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: label$1, description: description, htmlFor: id, isRequired: required, isLoading: loading, isDisabled: disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", { name: "start" }), start, jsxRuntime.jsx("input", { "aria-describedby": loading ? loadingMessage.loadingId : `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": disabled || loading ? 'true' : null, "aria-readonly": readOnly ? 'true' : null, id: id, name: name, form: form, type: type, required: required, placeholder: placeholder || null, maxLength: maxLength, minLength: minLength, spellCheck: spellCheck, max: max, min: min, step: step, defaultValue: value, readOnly: readOnly, autoComplete: autoComplete, disabled: disabled, pattern: pattern, multiple: multiple, dir: "auto" // This overwrites the default: let the browser now decide in which direction the value should be placed.
25
- }), end, jsxRuntime.jsx("slot", { name: "end" }), loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
25
+ }), end, jsxRuntime.jsx("slot", { name: "end" }), loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
26
26
  };
27
27
 
28
28
  exports.InputBase = InputBase;
@@ -18,7 +18,7 @@ class DSRLinkPure extends react.Component {
18
18
  splitChildren.splitChildren(this.props.children);
19
19
  const TagType = this.props.href === undefined ? 'span' : 'a';
20
20
  const hasIcon = utilsEntry.hasVisibleIcon(this.props.icon, this.props.iconSource);
21
- const style = minifyCss.minifyCss(stylesEntry.getLinkPureCss(this.props.icon, this.props.iconSource, this.props.active, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.underline, !this.props.href));
21
+ const style = minifyCss.minifyCss(stylesEntry.getLinkPureCss(this.props.icon, this.props.iconSource, this.props.active, this.props.stretch, this.props.size, this.props.color, this.props.hideLabel, this.props.alignLabel, this.props.underline, !this.props.href));
22
22
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(TagType, { className: "root", ...(TagType === 'a' && {
23
23
  href: this.props.href,
24
24
  target: this.props.target,
@@ -31,7 +31,7 @@ class DSRRadioGroupOption extends react.Component {
31
31
  const style = minifyCss.minifyCss(stylesEntry.getRadioGroupOptionCss(isDisabled, isLoading, state));
32
32
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("input", { id: id, type: "radio", name: name, checked: isSelected, disabled: isDisabled || isLoading, value: this.props.value, onClick: (e) => {
33
33
  e.stopPropagation();
34
- }, onBlur: this.props.onBlur, "aria-describedby": isLoading ? loadingMessage.loadingId : `${stateMessage.messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": isDisabled || isLoading ? 'true' : null }), isOptionLoading && !this.props.loadingParent && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", "aria-hidden": "true" }))] }), jsxRuntime.jsx(label.Label, { hasLabel: this.props.label, hasDescription: false, host: null, label: this.props.label, htmlFor: id, isDisabled: isDisabled, isLoading: isLoading, stopClickPropagation: true }), !this.props.loadingParent && (jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: isOptionLoading, initialLoading: this.props.initialLoading }))] }) })] }), this.props.children] }));
34
+ }, onBlur: this.props.onBlur, "aria-describedby": isLoading ? loadingMessage.loadingId : `${stateMessage.messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": isDisabled || isLoading ? 'true' : null }), isOptionLoading && !this.props.loadingParent && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", "aria-hidden": "true" }))] }), jsxRuntime.jsx(label.Label, { hasLabel: this.props.label, hasDescription: false, host: null, label: this.props.label, htmlFor: id, isDisabled: isDisabled, isLoading: isLoading, stopClickPropagation: true }), !this.props.loadingParent && (jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: isOptionLoading, initialLoading: this.props.initialLoading }))] }) })] }), this.props.children] }));
35
35
  }
36
36
  }
37
37
 
@@ -39,7 +39,7 @@ class DSRRadioGroup extends react.Component {
39
39
  render() {
40
40
  const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
41
41
  const style = minifyCss.minifyCss(stylesEntry.getRadioGroupCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.direction));
42
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { className: "root", disabled: this.props.disabled, ...utilsEntry.getFieldsetAriaAttributes(this.props.required, this.props.state === 'error', { role: 'radiogroup' }), "aria-describedby": this.props.loading ? loadingMessage.loadingId : `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-labelledby": utilsEntry.labelId, children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, tag: "div", label: this.props.label, description: this.props.description, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
42
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { className: "root", disabled: this.props.disabled, ...utilsEntry.getFieldsetAriaAttributes(this.props.required, this.props.state === 'error', { role: 'radiogroup' }), "aria-describedby": this.props.loading ? loadingMessage.loadingId : `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-labelledby": utilsEntry.labelId, children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, tag: "div", label: this.props.label, description: this.props.description, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
43
43
  }
44
44
  }
45
45
 
@@ -9,8 +9,8 @@ var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entr
9
9
  class DSRSpinner extends react.Component {
10
10
  host;
11
11
  render() {
12
- const style = minifyCss.minifyCss(stylesEntry.getSpinnerCss(this.props.size));
13
- return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("span", { className: "root", role: "alert", "aria-live": "assertive", ...utilsEntry.parseAndGetAriaAttributes(this.props.aria), children: [jsxRuntime.jsx("span", { className: "sr-only", children: "\u00A0" }), jsxRuntime.jsxs("svg", { viewBox: "-16 -16 32 32", width: "100%", height: "100%", focusable: "false", "aria-hidden": "true", children: [jsxRuntime.jsx("circle", { r: "9" }), jsxRuntime.jsx("circle", { r: "9" })] })] })] }) }));
12
+ const style = minifyCss.minifyCss(stylesEntry.getSpinnerCss(this.props.color, this.props.size));
13
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { role: "alert", "aria-live": "assertive", ...utilsEntry.parseAndGetAriaAttributes(this.props.aria), children: [jsxRuntime.jsx("span", { className: "sr-only", children: "\u00A0" }), jsxRuntime.jsxs("svg", { viewBox: "-16 -16 32 32", width: "100%", height: "100%", focusable: "false", "aria-hidden": "true", children: [jsxRuntime.jsx("circle", { r: "11" }), jsxRuntime.jsx("circle", { r: "11" })] })] })] }) }));
14
14
  }
15
15
  }
16
16
 
@@ -23,7 +23,7 @@ class DSRSwitch extends react.Component {
23
23
  const id = 'x';
24
24
  const style = minifyCss.minifyCss(stylesEntry.getSwitchCss(this.props.alignLabel, this.props.hideLabel, this.props.stretch, this.props.checked, this.props.disabled, this.props.loading, this.props.compact));
25
25
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("button", { ...utilsEntry.getSwitchButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.checked), id: id, type: "button", role: "switch", "aria-labelledby": "label" // only relevant for axe-core because of https://github.com/dequelabs/axe-core/issues/1393
26
- , "aria-describedby": this.props.loading ? loadingMessage.loadingId : undefined, children: jsxRuntime.jsx("span", { className: "toggle", children: this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", "aria-hidden": "true" }) }) }), jsxRuntime.jsx("label", { id: "label", htmlFor: id, children: jsxRuntime.jsx("slot", {}) }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
26
+ , "aria-describedby": this.props.loading ? loadingMessage.loadingId : undefined, children: jsxRuntime.jsx("span", { className: "toggle", children: this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", "aria-hidden": "true" }) }) }), jsxRuntime.jsx("label", { id: "label", htmlFor: id, children: jsxRuntime.jsx("slot", {}) }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
27
27
  }
28
28
  }
29
29