@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
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
5
+ require('../../provider.cjs');
6
+ var splitChildren = require('../../splitChildren.cjs');
7
+ var minifyCss = require('../../minifyCss.cjs');
8
+ var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
+ var icon_wrapper = require('../components/icon.wrapper.cjs');
10
+ var inputBase = require('./input-base.cjs');
11
+
12
+ /**
13
+ * @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."}
14
+ * @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."}
15
+ * @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."}
16
+ * @slot {"name": "start", "description": "Shows content at the start of the input (e.g. unit prefix)."}
17
+ * @slot {"name": "end", "description": "Shows content at the end of the input (e.g. toggle button, unit suffix)."}
18
+ */
19
+ class DSRInputEmail extends react.Component {
20
+ host;
21
+ // The "name" property is reflected as an attribute to ensure compatibility with native form submission.
22
+ // 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.
23
+ internals;
24
+ initialLoading = false;
25
+ inputElement;
26
+ defaultValue;
27
+ formResetCallback() {
28
+ // triggers value watcher
29
+ }
30
+ formDisabledCallback() {
31
+ }
32
+ formStateRestoreCallback() {
33
+ }
34
+ render() {
35
+ splitChildren.splitChildren(this.props.children);
36
+ const style = minifyCss.minifyCss(stylesEntry.getInputEmailCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.theme));
37
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.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 && {
38
+ start: jsxRuntime.jsx(icon_wrapper.PIcon, { "aria-hidden": "true", name: "email", color: "state-disabled", theme: this.props.theme }),
39
+ }) })] }), this.props.children] }));
40
+ }
41
+ }
42
+
43
+ exports.DSRInputEmail = DSRInputEmail;
@@ -32,8 +32,7 @@ class DSRInputText extends react.Component {
32
32
  render() {
33
33
  splitChildren.splitChildren(this.props.children);
34
34
  const style = minifyCss.minifyCss(stylesEntry.getInputTextCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.theme, this.props.counter));
35
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.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
36
- , 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
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.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 && {
37
36
  end: (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
38
37
  ? `You have ${this.props.maxLength - this.props.value.length} out of ${this.props.maxLength} characters left`
39
38
  : `${this.props.value.length} characters entered` }), jsxRuntime.jsx("span", { className: "counter", "aria-hidden": "true", children: this.props.maxLength ? `${this.props.value.length}/${this.props.maxLength}` : `${this.props.value.length}` })] })),
@@ -17,7 +17,7 @@ var modelSignature_wrapper = require('../components/model-signature.wrapper.cjs'
17
17
  class DSRLinkTileModelSignature extends react.Component {
18
18
  host;
19
19
  render() {
20
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
20
+ const { children, namedSlotChildren} = splitChildren.splitChildren(this.props.children);
21
21
  // If we do this earlier than render, there are cases where primaryLink.href is undefined
22
22
  // TODO: Here and in other components, validation happens only on initial render. We could extend this to watch props of the required slots.
23
23
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && namedSlotChildren.includes(child)
@@ -28,7 +28,7 @@ class DSRModal extends react.Component {
28
28
  return this.props.disableCloseButton ? false : this.props.dismissButton;
29
29
  }
30
30
  render() {
31
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
31
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
32
32
  const hasHeader = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) || namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
33
33
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
34
34
  const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
@@ -54,7 +54,7 @@ class DSRMultiSelect extends react.Component {
54
54
  this.props.setFormValue(this.props.defaultValue);
55
55
  }
56
56
  render() {
57
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
57
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
58
58
  const inputId = 'filter';
59
59
  const popoverId = 'list';
60
60
  const style = minifyCss.minifyCss(stylesEntry.getMultiSelectCss(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.theme));
@@ -35,7 +35,7 @@ class DSRPinCode extends react.Component {
35
35
  formStateRestoreCallback() {
36
36
  }
37
37
  render() {
38
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
38
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
39
39
  // reset array of input elements
40
40
  this.inputElements = [];
41
41
  const currentInputId = 'current-input';
@@ -23,7 +23,7 @@ class DSRPopover extends react.Component {
23
23
  hasNativePopoverSupport = utilsEntry.getHasNativePopoverSupport();
24
24
  hasSlottedButton;
25
25
  render() {
26
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
26
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
27
27
  const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
28
28
  const style = minifyCss.minifyCss(stylesEntry.getPopoverCss(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
29
29
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasSlottedButton ? (jsxRuntime.jsx("div", { children: jsxRuntime.jsx("slot", { name: "button" }) })) : (jsxRuntime.jsxs("button", { type: "button", ...utilsEntry.parseAndGetAriaAttributes({
@@ -21,7 +21,7 @@ class DSRRadioButtonWrapper extends react.Component {
21
21
  initialLoading = false;
22
22
  input;
23
23
  render() {
24
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
24
+ const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
25
25
  const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
26
26
  const isLoading = this.props.loading && !(typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && (otherChildren[0]?.props.checked || otherChildren[0]?.props.defaultChecked)); // spinner is only displayed when radio is not checked already
27
27
  const style = minifyCss.minifyCss(stylesEntry.getRadioButtonWrapperCss(this.props.hideLabel, this.props.state, disabled, isLoading, this.props.theme));
@@ -15,7 +15,7 @@ var icon_wrapper = require('../components/icon.wrapper.cjs');
15
15
  class DSRSegmentedControlItem extends react.Component {
16
16
  host;
17
17
  render() {
18
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
18
+ const { children} = splitChildren.splitChildren(this.props.children);
19
19
  // this additional validation is still needed because undefined is allowed with current propTypes
20
20
  const hasIcon = !!this.props.icon || !!this.props.iconSource;
21
21
  const hasSlottedContent = !!children.length;
@@ -23,7 +23,7 @@ class DSRSegmentedControl extends react.Component {
23
23
  formStateRestoreCallback() {
24
24
  }
25
25
  render() {
26
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
26
+ const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
27
27
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
28
28
  ? { ...child, props: { ...child.props, selected: child.props?.value === this.props.value, backgroundColor: this.props.backgroundColor, theme: this.props.theme } }
29
29
  : child);
@@ -28,6 +28,7 @@ class DSRSelectWrapperDropdown extends react.Component {
28
28
  const style = minifyCss.minifyCss(stylesEntry.getSelectWrapperDropdownCss(this.isOpen, this.props.state, this.props.disabled, this.props.filter, this.props.theme));
29
29
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: this.props.filter ? ([
30
30
  jsxRuntime.jsx("input", { id: inputId, type: "text", role: "combobox", disabled: this.props.disabled, placeholder: utilsEntry.getSelectedOptionMap(this.optionMaps)?.value || null, autoComplete: "off", defaultValue: this.searchString }, "input"),
31
+ /* biome-ignore lint/a11y/noStaticElementInteractions: ok */
31
32
  jsxRuntime.jsx("span", {
32
33
  /* @ts-ignore */
33
34
  part: part }, "span"),
@@ -24,7 +24,7 @@ class DSRSelectWrapper extends react.Component {
24
24
  iconElement;
25
25
  render() {
26
26
  const hasCustomDropdown = utilsEntry.isCustomDropdown(this.props.filter, this.props.native);
27
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
27
+ const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
28
28
  const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
29
29
  const style = minifyCss.minifyCss(stylesEntry.getSelectWrapperCss(disabled, hasCustomDropdown, this.props.hideLabel, this.props.state, this.props.theme));
30
30
  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.jsx(legacyLabel.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, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), jsxRuntime.jsx(icon_wrapper.PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" }), hasCustomDropdown && !disabled && (jsxRuntime.jsx(selectWrapperDropdown_wrapper.PSelectWrapperDropdown, { className: "dropdown", selectRef: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props, label: this.props.label || namedSlotChildren.find(({ props: { slot } }) => slot === 'label')?.props.children, message: this.props.message || namedSlotChildren.find(({ props: { slot } }) => slot === 'message')?.props.children, description: this.props.description || namedSlotChildren.find(({ props: { slot } }) => slot === 'description')?.props.children, state: this.props.state, direction: this.props.dropdownDirection, filter: this.props.filter, theme: this.props.theme, required: false, disabled: disabled, onOpenChange: (isOpen) => this.props.iconElement.classList.toggle('icon--open', isOpen) }))] }), 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, theme: this.props.theme, host: null })] })] }), this.props.children] }));
@@ -47,7 +47,7 @@ class DSRSelect extends react.Component {
47
47
  this.props.internals?.setFormValue(this.props.defaultValue);
48
48
  }
49
49
  render() {
50
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
50
+ const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
51
51
  const buttonId = 'value';
52
52
  const popoverId = 'list';
53
53
  const descriptionId = this.props.description ? 'description' : undefined;
@@ -21,7 +21,7 @@ class DSRSheet extends react.Component {
21
21
  scroller;
22
22
  hasHeader;
23
23
  render() {
24
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
24
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
25
25
  const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
26
26
  if (this.props.open) ;
27
27
  const style = minifyCss.minifyCss(stylesEntry.getSheetCss(this.props.open, this.props.dismissButton, this.props.theme));
@@ -17,7 +17,7 @@ class DSRStepperHorizontal extends react.Component {
17
17
  scrollerElement;
18
18
  currentStepIndex;
19
19
  render() {
20
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
20
+ const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
21
21
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
22
22
  ? { ...child, props: { ...child.props, theme: this.props.theme } }
23
23
  : child);
@@ -15,7 +15,7 @@ var scroller_wrapper = require('../components/scroller.wrapper.cjs');
15
15
  class DSRTable extends react.Component {
16
16
  host;
17
17
  render() {
18
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
18
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
19
19
  const hasSlottedCaption = namedSlotChildren.filter(({ props: { slot } }) => slot === 'caption').length > 0;
20
20
  const captionId = 'caption';
21
21
  const tableAttr = this.props.caption
@@ -23,7 +23,7 @@ class DSRTabsBar extends react.Component {
23
23
  hasPTabsParent;
24
24
  areTabsButtons;
25
25
  render() {
26
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
26
+ const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
27
27
  const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
28
28
  ? child.type === 'button'
29
29
  ? {
@@ -17,7 +17,7 @@ class DSRTabs extends react.Component {
17
17
  host;
18
18
  tabsItemElements = [];
19
19
  render() {
20
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
20
+ const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
21
21
  const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
22
22
  ? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
23
23
  : child);
@@ -36,7 +36,7 @@ class DSRTextFieldWrapper extends react.Component {
36
36
  hasUnit;
37
37
  eventListener;
38
38
  render() {
39
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
39
+ const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
40
40
  const { readOnly, disabled, type } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
41
41
  const disabledOrReadOnly = disabled || readOnly;
42
42
  const buttonProps = {
@@ -22,7 +22,7 @@ class DSRTextareaWrapper extends react.Component {
22
22
  hasCounter;
23
23
  eventListener;
24
24
  render() {
25
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
25
+ const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
26
26
  const { disabled, readOnly } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
27
27
  const style = minifyCss.minifyCss(stylesEntry.getTextareaWrapperCss(disabled, readOnly, this.props.hideLabel, this.props.state, this.props.hasCounter, this.props.theme));
28
28
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(legacyLabel.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, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), this.props.hasCounter && jsxRuntime.jsx("span", { className: "counter", "aria-hidden": "true" }), this.props.hasCounter && jsxRuntime.jsx("span", { className: "sr-only", "aria-live": "polite" })] }), 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, theme: this.props.theme, host: null })] })] }), this.props.children] }));
@@ -29,7 +29,7 @@ class DSRTextarea extends react.Component {
29
29
  formStateRestoreCallback() {
30
30
  }
31
31
  render() {
32
- const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
32
+ const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
33
33
  const id = 'textarea';
34
34
  const style = minifyCss.minifyCss(stylesEntry.getTextareaCss(this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.counter, this.props.resize, this.props.theme));
35
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("div", { className: "root", 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, htmlFor: id, label: this.props.label, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("textarea", { "aria-describedby": `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, value: this.props.value, form: this.props.form, disabled: this.props.disabled, required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, rows: this.props.rows, readOnly: this.props.readOnly, spellCheck: this.props.spellCheck, autoComplete: this.props.autoComplete, wrap: this.props.wrap }), this.props.counter && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
@@ -29,6 +29,7 @@ var heading_wrapper = require('./lib/components/heading.wrapper.cjs');
29
29
  var headline_wrapper = require('./lib/components/headline.wrapper.cjs');
30
30
  var icon_wrapper = require('./lib/components/icon.wrapper.cjs');
31
31
  var inlineNotification_wrapper = require('./lib/components/inline-notification.wrapper.cjs');
32
+ var inputEmail_wrapper = require('./lib/components/input-email.wrapper.cjs');
32
33
  var inputNumber_wrapper = require('./lib/components/input-number.wrapper.cjs');
33
34
  var inputPassword_wrapper = require('./lib/components/input-password.wrapper.cjs');
34
35
  var inputSearch_wrapper = require('./lib/components/input-search.wrapper.cjs');
@@ -118,6 +119,7 @@ exports.PHeading = heading_wrapper.PHeading;
118
119
  exports.PHeadline = headline_wrapper.PHeadline;
119
120
  exports.PIcon = icon_wrapper.PIcon;
120
121
  exports.PInlineNotification = inlineNotification_wrapper.PInlineNotification;
122
+ exports.PInputEmail = inputEmail_wrapper.PInputEmail;
121
123
  exports.PInputNumber = inputNumber_wrapper.PInputNumber;
122
124
  exports.PInputPassword = inputPassword_wrapper.PInputPassword;
123
125
  exports.PInputSearch = inputSearch_wrapper.PInputSearch;