@porsche-design-system/components-react 3.29.0-rc.1 → 3.29.0-rc.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 (124) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
  3. package/cjs/lib/components/input-email.wrapper.cjs +29 -0
  4. package/cjs/public-api.cjs +2 -0
  5. package/esm/hooks.mjs +1 -1
  6. package/esm/lib/components/index.d.ts +1 -0
  7. package/esm/lib/components/input-email.wrapper.d.ts +200 -0
  8. package/esm/lib/components/input-email.wrapper.mjs +27 -0
  9. package/esm/lib/components/input-number.wrapper.d.ts +31 -31
  10. package/esm/lib/components/input-password.wrapper.d.ts +35 -35
  11. package/esm/lib/components/input-search.wrapper.d.ts +31 -31
  12. package/esm/lib/components/input-text.wrapper.d.ts +35 -35
  13. package/esm/lib/components/textarea.wrapper.d.ts +37 -37
  14. package/esm/lib/types.d.ts +4 -27
  15. package/esm/public-api.mjs +1 -0
  16. package/package.json +8 -8
  17. package/partials/esm/index.mjs +1 -0
  18. package/partials/package.json +3 -3
  19. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +85 -74
  20. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +7 -3
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.cjs +40 -0
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -1
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -1
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.cjs +1 -1
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +2 -2
  34. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +43 -0
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -2
  36. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -1
  37. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
  38. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
  39. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
  40. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
  41. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -1
  42. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
  43. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -1
  44. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
  45. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -1
  46. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
  47. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
  48. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
  49. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
  50. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
  51. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
  52. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -1
  53. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +1 -1
  54. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
  55. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
  56. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +57 -47
  57. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +7 -3
  58. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.mjs +38 -0
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -3
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +3 -3
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +3 -3
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -3
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -3
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +3 -3
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +3 -3
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +3 -3
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +3 -3
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +3 -3
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +3 -3
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
  83. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +3 -3
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +3 -3
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +3 -3
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +2 -2
  89. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +41 -0
  90. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -2
  91. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -1
  92. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
  93. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
  94. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
  95. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
  96. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
  97. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +1 -1
  98. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
  99. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -1
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -2
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +1 -1
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
  112. package/ssr/esm/lib/components/index.d.ts +1 -0
  113. package/ssr/esm/lib/components/input-email.wrapper.d.ts +200 -0
  114. package/ssr/esm/lib/components/input-number.wrapper.d.ts +31 -31
  115. package/ssr/esm/lib/components/input-password.wrapper.d.ts +35 -35
  116. package/ssr/esm/lib/components/input-search.wrapper.d.ts +31 -31
  117. package/ssr/esm/lib/components/input-text.wrapper.d.ts +35 -35
  118. package/ssr/esm/lib/components/textarea.wrapper.d.ts +37 -37
  119. package/ssr/esm/lib/dsr-components/input-base.d.ts +2 -0
  120. package/ssr/esm/lib/dsr-components/input-email.d.ts +19 -0
  121. package/ssr/esm/lib/types.d.ts +4 -27
  122. package/partials/index.js +0 -12
  123. /package/partials/{index.cjs → cjs/index.cjs} +0 -0
  124. /package/partials/{index.d.ts → esm/index.d.ts} +0 -0
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getCheckboxWrapperCss as getComponentCss$17 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getCheckboxWrapperCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { LoadingMessage } from './loading-message.mjs';
8
8
  import { StateMessage } from './state-message.mjs';
9
9
  import { LegacyLabel } from './legacy-label.mjs';
@@ -19,9 +19,9 @@ class DSRCheckboxWrapper extends Component {
19
19
  initialLoading = false;
20
20
  input;
21
21
  render() {
22
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
22
+ const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
23
23
  const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
24
- const style = minifyCss(getComponentCss$17(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme));
24
+ const style = minifyCss(getComponentCss$18(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme));
25
25
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(LegacyLabel, { 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, label: this.props.label, isLoading: this.props.loading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(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, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
26
26
  }
27
27
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getCheckboxCss as getComponentCss$16 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getCheckboxCss as getComponentCss$17 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { descriptionId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { LoadingMessage } from './loading-message.mjs';
9
9
  import { Label } from './label.mjs';
@@ -30,9 +30,9 @@ class DSRCheckbox extends Component {
30
30
  formStateRestoreCallback() {
31
31
  }
32
32
  render() {
33
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
33
+ const { namedSlotChildren} = splitChildren(this.props.children);
34
34
  const id = 'checkbox';
35
- const style = minifyCss(getComponentCss$16(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
35
+ const style = minifyCss(getComponentCss$17(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
36
36
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(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 }), jsxs("div", { className: "wrapper", children: [jsx("input", { type: "checkbox", id: id, "aria-describedby": `${descriptionId} ${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 && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(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, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
37
37
  }
38
38
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getContentWrapperCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getContentWrapperCss as getComponentCss$16 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
8
8
  * @slot {"name": "", "description": "Default slot for main content." }
@@ -12,7 +12,7 @@ class DSRContentWrapper extends Component {
12
12
  host;
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
- const style = minifyCss(getComponentCss$15(this.props.width));
15
+ const style = minifyCss(getComponentCss$16(this.props.width));
16
16
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
17
17
  }
18
18
  }
@@ -1,15 +1,15 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.mjs';
4
- import { getCrestCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
- import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
4
+ import { getCrestCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { buildCrestSrcSet, crestSize, buildCrestImgSrc, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
6
6
 
7
7
  const { width, height } = crestSize;
8
8
  class DSRCrest extends Component {
9
9
  host;
10
10
  render() {
11
11
  const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: buildCrestImgSrc(), width: width, height: height, alt: "Porsche" })] }));
12
- const style = minifyCss(getComponentCss$14());
12
+ const style = minifyCss(getComponentCss$15());
13
13
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (picture) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: picture })) })] }) }));
14
14
  }
15
15
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getDisplayCss as getComponentCss$13 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getDisplayCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
8
8
  /**
@@ -17,7 +17,7 @@ class DSRDisplay extends Component {
17
17
  right: 'end',
18
18
  };
19
19
  const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
20
- const style = minifyCss(getComponentCss$13(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
20
+ const style = minifyCss(getComponentCss$14(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
21
21
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
22
22
  }
23
23
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.mjs';
4
- import { getDividerCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
4
+ import { getDividerCss as getComponentCss$13 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
5
 
6
6
  class DSRDivider extends Component {
7
7
  host;
@@ -11,7 +11,7 @@ class DSRDivider extends Component {
11
11
  'neutral-contrast-medium': 'contrast-medium',
12
12
  'neutral-contrast-high': 'contrast-high',
13
13
  };
14
- const style = minifyCss(getComponentCss$12((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme));
14
+ const style = minifyCss(getComponentCss$13((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme));
15
15
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
16
16
  }
17
17
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getDrilldownItemCss as getComponentCss$10 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getDrilldownItemCss as getComponentCss$11 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
8
8
 
9
9
  /**
@@ -21,10 +21,10 @@ class DSRDrilldownItem extends Component {
21
21
  return this.props.theme || 'light'; // default as fallback (internal private prop is controlled by drilldown)
22
22
  }
23
23
  render() {
24
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
24
+ const { namedSlotChildren} = splitChildren(this.props.children);
25
25
  const hasSlottedHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
26
26
  const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
27
- const style = minifyCss(getComponentCss$10(this.props.primary, this.props.secondary, this.props.cascade));
27
+ const style = minifyCss(getComponentCss$11(this.props.primary, this.props.secondary, this.props.cascade));
28
28
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("slot", { name: "button" })) : (jsx(PButtonPure, { inert: this.props.primary || this.props.cascade, className: "button", type: "button", size: "medium", alignLabel: "start", stretch: true, icon: "arrow-head-right", active: this.props.secondary, aria: { 'aria-expanded': this.props.secondary }, theme: this.theme, children: this.props.label })), jsx(PButtonPure, { className: "back", type: "button", size: "small", alignLabel: "end", stretch: true, icon: "arrow-left", theme: this.theme, hideLabel: { base: true, s: false }, children: this.props.label }), hasSlottedHeader ? jsx("slot", { name: "header" }) : jsx("h2", { children: this.props.label }), jsx("div", { className: "drawer", children: jsx("div", { className: "scroller", children: jsx("slot", {}) }) })] })] }), this.props.children] }));
29
29
  }
30
30
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getDrilldownLinkCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getDrilldownLinkCss as getComponentCss$10 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
8
8
  /**
@@ -15,7 +15,7 @@ class DSRDrilldownLink extends Component {
15
15
  render() {
16
16
  splitChildren(this.props.children);
17
17
  const hasSlottedAnchor = this.props.href === undefined;
18
- const style = minifyCss(getComponentCss$$(hasSlottedAnchor, this.props.active));
18
+ const style = minifyCss(getComponentCss$10(hasSlottedAnchor, this.props.active));
19
19
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: hasSlottedAnchor ? (jsx("slot", {})) : (jsx("a", { href: this.props.href, target: this.props.target, download: this.props.download, rel: this.props.rel, "aria-current": this.props.active ? 'true' : 'false', ...parseAndGetAriaAttributes(this.props.aria), children: jsx("slot", {}) })) })] }), this.props.children] }));
20
20
  }
21
21
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getDrilldownCss as getComponentCss$11 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getDrilldownCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { updateDrilldownItemState, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PButton } from '../components/button.wrapper.mjs';
9
9
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
@@ -31,7 +31,7 @@ class DSRDrilldown extends Component {
31
31
  }
32
32
  render() {
33
33
  splitChildren(this.props.children);
34
- const style = minifyCss(getComponentCss$11(this.props.open, this.primary, this.isSecondaryDrawerVisible, this.props.theme));
34
+ const style = minifyCss(getComponentCss$12(this.props.open, this.primary, this.isSecondaryDrawerVisible, this.props.theme));
35
35
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { inert: !this.props.open, ...parseAndGetAriaAttributes(this.props.aria), children: jsxs("div", { className: "drawer", children: [jsx(PButtonPure, { className: "back", type: "button", size: "small", alignLabel: "end", stretch: true, icon: "arrow-left", theme: this.props.theme, hideLabel: true, children: "Back" }), jsx(PButton, { className: "dismiss-mobile", type: "button", variant: "ghost", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss drilldown" }), jsx(PButtonPure, { className: "dismiss-desktop", type: "button", size: "medium", icon: "close", hideLabel: true, theme: this.props.theme, children: "Dismiss drilldown" }), jsx("div", { className: "scroller", children: jsx("slot", {}) })] }) })] }), this.props.children] }));
36
36
  }
37
37
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getFieldsetWrapperCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getFieldsetWrapperCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { messageId, StateMessage } from './state-message.mjs';
7
7
  import { Required } from './required.mjs';
8
8
 
@@ -16,9 +16,9 @@ import { Required } from './required.mjs';
16
16
  class DSRFieldsetWrapper extends Component {
17
17
  host;
18
18
  render() {
19
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
19
+ const { namedSlotChildren} = splitChildren(this.props.children);
20
20
  const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
21
- const style = minifyCss(getComponentCss$_(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
21
+ const style = minifyCss(getComponentCss$$(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
22
22
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(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, theme: this.props.theme, host: null })] })] }), this.props.children] }));
23
23
  }
24
24
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getFieldsetCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getFieldsetCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { messageId, StateMessage } from './state-message.mjs';
7
7
  import { Required } from './required.mjs';
8
8
 
@@ -14,9 +14,9 @@ import { Required } from './required.mjs';
14
14
  class DSRFieldset extends Component {
15
15
  host;
16
16
  render() {
17
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
17
+ const { namedSlotChildren} = splitChildren(this.props.children);
18
18
  const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
19
- const style = minifyCss(getComponentCss$Z(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
19
+ const style = minifyCss(getComponentCss$_(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
20
20
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(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, theme: this.props.theme, host: null })] })] }), this.props.children] }));
21
21
  }
22
22
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getFlexItemCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getFlexItemCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
8
8
  * @slot {"name": "", "description": "Default slot for the main content." }
@@ -12,7 +12,7 @@ class DSRFlexItem extends Component {
12
12
  host;
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
- const style = minifyCss(getComponentCss$Y(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex));
15
+ const style = minifyCss(getComponentCss$Z(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex));
16
16
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
17
17
  }
18
18
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getFlexCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getFlexCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
8
8
  * @slot {"name": "", "description": "Default slot for the flex items." }
@@ -12,7 +12,7 @@ class DSRFlex extends Component {
12
12
  host;
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
- const style = minifyCss(getComponentCss$X(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent));
15
+ const style = minifyCss(getComponentCss$Y(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent));
16
16
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
17
17
  }
18
18
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getFlyoutCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getFlyoutCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PButton } from '../components/button.wrapper.mjs';
9
9
 
@@ -25,7 +25,7 @@ class DSRFlyout extends Component {
25
25
  hasFooter;
26
26
  hasSubFooter;
27
27
  render() {
28
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
28
+ const { namedSlotChildren} = splitChildren(this.props.children);
29
29
  const positionDeprecationMap = {
30
30
  left: 'start',
31
31
  right: 'end',
@@ -33,7 +33,7 @@ class DSRFlyout extends Component {
33
33
  const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
34
34
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
35
35
  const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
36
- const style = minifyCss(getComponentCss$W(this.props.open, (positionDeprecationMap[this.props.position] || this.props.position), hasHeader, hasFooter, hasSubFooter, this.props.footerBehavior, this.props.theme));
36
+ const style = minifyCss(getComponentCss$X(this.props.open, (positionDeprecationMap[this.props.position] || this.props.position), hasHeader, hasFooter, hasSubFooter, this.props.footerBehavior, this.props.theme));
37
37
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { tabIndex: -1, ...parseAndGetAriaAttributes({
38
38
  'aria-modal': true,
39
39
  ...{ 'aria-label': hasHeader ? namedSlotChildren.find(({ props: { slot } }) => slot === 'header')?.props.children : 'Flyout' },
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getGridItemCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getGridItemCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
8
8
  * @slot {"name": "", "description": "Default slot to render the content." }
@@ -13,7 +13,7 @@ class DSRGridItem extends Component {
13
13
  host;
14
14
  render() {
15
15
  splitChildren(this.props.children);
16
- const style = minifyCss(getComponentCss$V(this.props.size, this.props.offset));
16
+ const style = minifyCss(getComponentCss$W(this.props.size, this.props.offset));
17
17
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
18
18
  }
19
19
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getGridCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getGridCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
8
8
  * @slot {"name": "", "description": "Default slot to render p-grid-item tags." }
@@ -12,11 +12,11 @@ import { getGridCss as getComponentCss$U } from '../../../../../../components/di
12
12
  class DSRGrid extends Component {
13
13
  host;
14
14
  render() {
15
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
15
+ const { children, otherChildren } = splitChildren(this.props.children);
16
16
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
17
17
  ? { ...child, props: { ...child.props, gutter: this.props.gutter } }
18
18
  : child);
19
- const style = minifyCss(getComponentCss$U(this.props.direction, this.props.wrap));
19
+ const style = minifyCss(getComponentCss$V(this.props.direction, this.props.wrap));
20
20
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), manipulatedChildren] }));
21
21
  }
22
22
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getHeadingCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getHeadingCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { getHeadingTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
8
8
  /**
@@ -17,7 +17,7 @@ class DSRHeading extends Component {
17
17
  right: 'end',
18
18
  };
19
19
  const TagType = getHeadingTagType(null, this.props.size, this.props.tag);
20
- const style = minifyCss(getComponentCss$T(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
20
+ const style = minifyCss(getComponentCss$U(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
21
21
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
22
22
  }
23
23
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getHeadlineCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getHeadlineCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { getHeadlineTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
8
8
  /**
@@ -19,7 +19,7 @@ class DSRHeadline extends Component {
19
19
  right: 'end',
20
20
  };
21
21
  const TagType = getHeadlineTagType(null, this.props.variant, this.props.tag);
22
- const style = minifyCss(getComponentCss$S(this.props.variant, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
22
+ const style = minifyCss(getComponentCss$T(this.props.variant, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
23
23
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
24
24
  }
25
25
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.mjs';
4
- import { getIconCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
- import { buildIconUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
4
+ import { getIconCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { parseAndGetAriaAttributes, buildIconUrl } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
6
6
 
7
7
  class DSRIcon extends Component {
8
8
  host;
@@ -15,7 +15,7 @@ class DSRIcon extends Component {
15
15
  'neutral-contrast-high': 'contrast-high',
16
16
  'notification-neutral': 'notification-info',
17
17
  };
18
- const style = minifyCss(getComponentCss$R(this.props.name, this.props.source, (deprecationMap[this.props.color] || this.props.color), this.props.size, this.props.theme));
18
+ const style = minifyCss(getComponentCss$S(this.props.name, this.props.source, (deprecationMap[this.props.color] || this.props.color), this.props.size, this.props.theme));
19
19
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("img", { src: buildIconUrl(this.props.source || this.props.name), width: 24, height: 24, loading: "lazy", alt: parseAndGetAriaAttributes(this.props.aria)?.['aria-label'] ?? '' })] }) }));
20
20
  }
21
21
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getInlineNotificationCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getInlineNotificationCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getInlineNotificationIconName, getContentAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PButton } from '../components/button.wrapper.mjs';
9
9
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
@@ -19,12 +19,12 @@ class DSRInlineNotification extends Component {
19
19
  return this.props.persistent ? false : this.props.dismissButton;
20
20
  }
21
21
  render() {
22
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
22
+ const { namedSlotChildren} = splitChildren(this.props.children);
23
23
  const bannerId = 'banner';
24
24
  const labelId = 'label';
25
25
  const descriptionId = 'description';
26
26
  const Heading = this.props.headingTag;
27
- const style = minifyCss(getComponentCss$Q(this.props.state, !!this.props.actionLabel, this.hasDismissButton, this.props.theme));
27
+ const style = minifyCss(getComponentCss$R(this.props.state, !!this.props.actionLabel, this.hasDismissButton, this.props.theme));
28
28
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PIcon, { className: "icon", name: getInlineNotificationIconName(this.props.state), color: `notification-${this.props.state}`, theme: this.props.theme, "aria-hidden": "true" }), jsxs("div", { id: bannerId, className: "content", ...getContentAriaAttributes(this.props.state, labelId, descriptionId), children: [(this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) &&
29
29
  (this.props.heading ? (jsx(Heading, { id: labelId, className: "heading", children: this.props.heading })) : (jsx("slot", { name: "heading" }))), jsx("p", { id: descriptionId, className: "description", children: this.props.description || jsx("slot", {}) })] }), this.props.actionLabel && (jsx(PButtonPure, { className: "action", theme: this.props.theme, icon: this.props.actionIcon, loading: this.props.actionLoading, children: this.props.actionLabel })), this.hasDismissButton && (jsx(PButton, { className: "close", type: "button", variant: "ghost", icon: "close", theme: this.props.theme, hideLabel: true, "aria-controls": bannerId, children: "Close notification" }))] })] }), this.props.children] }));
30
30
  }
@@ -10,7 +10,7 @@ import { PSpinner } from '../components/spinner.wrapper.mjs';
10
10
 
11
11
  const InputBase = ({ children,
12
12
  // host,
13
- id, label, description, loading, initialLoading, required, disabled, state, message, theme, readOnly, type, form, placeholder, maxLength, minLength, max, min, value, step, spellCheck, autoComplete, name,
13
+ id, label, description, loading, initialLoading, required, disabled, state, message, theme, readOnly, type, form, placeholder, maxLength, minLength, max, min, value, step, spellCheck, autoComplete, pattern, multiple, name,
14
14
  // onInput,
15
15
  // onWheel,
16
16
  // onChange,
@@ -18,7 +18,7 @@ id, label, description, loading, initialLoading, required, disabled, state, mess
18
18
  // refElement,
19
19
  start, end, }) => {
20
20
  const { namedSlotChildren } = splitChildren(children);
21
- return (jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: !!label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: !!description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: label, description: description, htmlFor: id, isRequired: required, isLoading: loading, isDisabled: disabled }), jsxs("div", { className: "wrapper", children: [jsx("slot", { name: "start" }), start, jsx("input", { "aria-describedby": loading ? loadingId : `${descriptionId} ${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, maxLength: maxLength, minLength: minLength, spellCheck: spellCheck, max: max, min: min, step: step, value: value, readOnly: readOnly, autoComplete: autoComplete, disabled: disabled }), end, jsx("slot", { name: "end" }), loading && jsx(PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" })] }), jsx(StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, theme: theme, host: null }), jsx(LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
21
+ return (jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: !!label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: !!description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: label, description: description, htmlFor: id, isRequired: required, isLoading: loading, isDisabled: disabled }), jsxs("div", { className: "wrapper", children: [jsx("slot", { name: "start" }), start, jsx("input", { "aria-describedby": loading ? loadingId : `${descriptionId} ${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, maxLength: maxLength, minLength: minLength, spellCheck: spellCheck, max: max, min: min, step: step, value: value, readOnly: readOnly, autoComplete: autoComplete, disabled: disabled, pattern: pattern, multiple: multiple }), end, jsx("slot", { name: "end" }), loading && jsx(PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" })] }), jsx(StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, theme: theme, host: null }), jsx(LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
22
22
  };
23
23
 
24
24
  export { InputBase };
@@ -0,0 +1,41 @@
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { Component } from 'react';
3
+ import '../../provider.mjs';
4
+ import { splitChildren } from '../../splitChildren.mjs';
5
+ import { minifyCss } from '../../minifyCss.mjs';
6
+ import { getInputEmailCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { PIcon } from '../components/icon.wrapper.mjs';
8
+ import { InputBase } from './input-base.mjs';
9
+
10
+ /**
11
+ * @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
12
+ * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
13
+ * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
14
+ * @slot {"name": "start", "description": "Shows content at the start of the input (e.g. unit prefix)."}
15
+ * @slot {"name": "end", "description": "Shows content at the end of the input (e.g. toggle button, unit suffix)."}
16
+ */
17
+ class DSRInputEmail extends Component {
18
+ host;
19
+ // The "name" property is reflected as an attribute to ensure compatibility with native form submission.
20
+ // In the React wrapper, all props are synced as properties on the element ref, so reflecting "name" as an attribute ensures it is properly handled in the form submission process.
21
+ internals;
22
+ initialLoading = false;
23
+ inputElement;
24
+ defaultValue;
25
+ formResetCallback() {
26
+ // triggers value watcher
27
+ }
28
+ formDisabledCallback() {
29
+ }
30
+ formStateRestoreCallback() {
31
+ }
32
+ render() {
33
+ splitChildren(this.props.children);
34
+ const style = minifyCss(getComponentCss$Q(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.theme));
35
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-email", name: this.props.name, form: this.props.form, type: "email", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.props.value, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, theme: this.props.theme, loading: this.props.loading, pattern: this.props.pattern, multiple: this.props.multiple, initialLoading: this.props.initialLoading, ...(this.props.indicator && {
36
+ start: jsx(PIcon, { "aria-hidden": "true", name: "email", color: "state-disabled", theme: this.props.theme }),
37
+ }) })] }), this.props.children] }));
38
+ }
39
+ }
40
+
41
+ export { DSRInputEmail };
@@ -30,8 +30,7 @@ class DSRInputText extends Component {
30
30
  render() {
31
31
  splitChildren(this.props.children);
32
32
  const style = minifyCss(getComponentCss$M(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.theme, this.props.counter));
33
- return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-text" // prevent React default scroll-to-[increment|decrement] on text inputs
34
- , name: this.props.name, form: this.props.form, type: "text", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.props.value, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, theme: this.props.theme, spellCheck: this.props.spellCheck, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(this.props.counter && {
33
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-text", name: this.props.name, form: this.props.form, type: "text", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.props.value, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, theme: this.props.theme, spellCheck: this.props.spellCheck, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(this.props.counter && {
35
34
  end: (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
36
35
  ? `You have ${this.props.maxLength - this.props.value.length} out of ${this.props.maxLength} characters left`
37
36
  : `${this.props.value.length} characters entered` }), jsx("span", { className: "counter", "aria-hidden": "true", children: this.props.maxLength ? `${this.props.value.length}/${this.props.maxLength}` : `${this.props.value.length}` })] })),
@@ -15,7 +15,7 @@ import { PModelSignature } from '../components/model-signature.wrapper.mjs';
15
15
  class DSRLinkTileModelSignature extends Component {
16
16
  host;
17
17
  render() {
18
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
18
+ const { children, namedSlotChildren} = splitChildren(this.props.children);
19
19
  // If we do this earlier than render, there are cases where primaryLink.href is undefined
20
20
  // TODO: Here and in other components, validation happens only on initial render. We could extend this to watch props of the required slots.
21
21
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && namedSlotChildren.includes(child)
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { getLinkCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
- import { parseAndGetAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
+ import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
9
9
 
10
10
  /**
@@ -26,7 +26,7 @@ class DSRModal extends Component {
26
26
  return this.props.disableCloseButton ? false : this.props.dismissButton;
27
27
  }
28
28
  render() {
29
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
29
+ const { namedSlotChildren} = splitChildren(this.props.children);
30
30
  const hasHeader = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) || namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
31
31
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
32
32
  const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
@@ -52,7 +52,7 @@ class DSRMultiSelect extends Component {
52
52
  this.props.setFormValue(this.props.defaultValue);
53
53
  }
54
54
  render() {
55
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
55
+ const { namedSlotChildren} = splitChildren(this.props.children);
56
56
  const inputId = 'filter';
57
57
  const popoverId = 'list';
58
58
  const style = minifyCss(getComponentCss$C(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.theme));
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { getPinCodeCss as getComponentCss$z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
- import { isCurrentInput, labelId, descriptionId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
+ import { labelId, descriptionId, isCurrentInput } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { LoadingMessage } from './loading-message.mjs';
9
9
  import { Label } from './label.mjs';
10
10
  import { messageId, StateMessage } from './state-message.mjs';
@@ -33,7 +33,7 @@ class DSRPinCode 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
  // reset array of input elements
38
38
  this.inputElements = [];
39
39
  const currentInputId = 'current-input';