@porsche-design-system/components-react 3.29.0-rc.2 → 3.29.0-rc.4
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.
- package/CHANGELOG.md +33 -0
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/fieldset.wrapper.cjs +3 -3
- package/cjs/lib/components/flag.wrapper.cjs +26 -0
- package/cjs/lib/components/input-date.wrapper.cjs +29 -0
- package/cjs/lib/components/input-email.wrapper.cjs +29 -0
- package/cjs/lib/components/input-tel.wrapper.cjs +29 -0
- package/cjs/lib/components/input-time.wrapper.cjs +29 -0
- package/cjs/lib/components/input-url.wrapper.cjs +29 -0
- package/cjs/lib/components/multi-select.wrapper.cjs +3 -3
- package/cjs/lib/components/scroller.wrapper.cjs +1 -1
- package/cjs/lib/components/tabs-bar.wrapper.cjs +1 -1
- package/cjs/lib/components/tabs.wrapper.cjs +1 -1
- package/cjs/public-api.cjs +12 -0
- package/esm/lib/components/fieldset.wrapper.d.ts +9 -1
- package/esm/lib/components/fieldset.wrapper.mjs +3 -3
- package/esm/lib/components/flag.wrapper.d.ts +30 -0
- package/esm/lib/components/flag.wrapper.mjs +24 -0
- package/esm/lib/components/index.d.ts +6 -0
- package/esm/lib/components/input-date.wrapper.d.ts +176 -0
- package/esm/lib/components/input-date.wrapper.mjs +27 -0
- package/esm/lib/components/input-email.wrapper.d.ts +200 -0
- package/esm/lib/components/input-email.wrapper.mjs +27 -0
- package/esm/lib/components/input-number.wrapper.d.ts +31 -31
- package/esm/lib/components/input-password.wrapper.d.ts +35 -35
- package/esm/lib/components/input-search.wrapper.d.ts +31 -31
- package/esm/lib/components/input-tel.wrapper.d.ts +192 -0
- package/esm/lib/components/input-tel.wrapper.mjs +27 -0
- package/esm/lib/components/input-text.wrapper.d.ts +35 -35
- package/esm/lib/components/input-time.wrapper.d.ts +176 -0
- package/esm/lib/components/input-time.wrapper.mjs +27 -0
- package/esm/lib/components/input-url.wrapper.d.ts +192 -0
- package/esm/lib/components/input-url.wrapper.mjs +27 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +8 -0
- package/esm/lib/components/multi-select.wrapper.mjs +3 -3
- package/esm/lib/components/scroller.wrapper.d.ts +4 -4
- package/esm/lib/components/scroller.wrapper.mjs +1 -1
- package/esm/lib/components/tabs-bar.wrapper.d.ts +4 -4
- package/esm/lib/components/tabs-bar.wrapper.mjs +1 -1
- package/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.mjs +1 -1
- package/esm/lib/components/textarea.wrapper.d.ts +37 -37
- package/esm/lib/types.d.ts +153 -41
- package/esm/public-api.mjs +6 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +551 -513
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +46 -35
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +36 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-date.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-tel.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-time.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-url.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.cjs +17 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +44 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +43 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +43 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +44 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +43 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +15 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/no-results-option.cjs +9 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +8 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +12 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +511 -480
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +42 -34
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +34 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-date.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-tel.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-time.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-url.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +15 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +42 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +41 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +41 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +42 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +41 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +18 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/no-results-option.mjs +7 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +9 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +6 -0
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/flag.wrapper.d.ts +30 -0
- package/ssr/esm/lib/components/index.d.ts +6 -0
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +176 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +200 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +31 -31
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +35 -35
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +31 -31
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +192 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +35 -35
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +176 -0
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +192 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +37 -37
- package/ssr/esm/lib/dsr-components/flag.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/input-base.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-date.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/input-time.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/input-url.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +5 -1
- package/ssr/esm/lib/dsr-components/no-results-option.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/select.d.ts +4 -1
- package/ssr/esm/lib/types.d.ts +153 -41
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs
ADDED
|
@@ -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$T } 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$T(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 };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs
CHANGED
|
@@ -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 { getInputNumberCss as getComponentCss$
|
|
6
|
+
import { getInputNumberCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
8
8
|
import { InputBase } from './input-base.mjs';
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ class DSRInputNumber extends Component {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
splitChildren(this.props.children);
|
|
34
|
-
const style = minifyCss(getComponentCss$
|
|
34
|
+
const style = minifyCss(getComponentCss$S(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.theme, this.props.controls));
|
|
35
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-number" // prevent React default scroll-to-[increment|decrement] on number inputs
|
|
36
36
|
, name: this.props.name, form: this.props.form, type: "number", required: this.props.required, placeholder: this.props.placeholder, max: this.props.max, min: this.props.min, 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, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(this.props.controls && {
|
|
37
37
|
end: (jsxs(Fragment, { children: [jsxs(PButtonPure, { tabIndex: -1, hideLabel: true, theme: this.props.theme, className: "button", type: "button", icon: "minus", disabled: this.props.disabled || this.props.readOnly, children: ["Decrement value by ", this.props.step] }), jsxs(PButtonPure, { tabIndex: -1, hideLabel: true, theme: this.props.theme, className: "button", type: "button", icon: "plus", disabled: this.props.disabled || this.props.readOnly, children: ["Increment value by ", this.props.step] })] })),
|
|
@@ -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 { getInputPasswordCss as getComponentCss$
|
|
6
|
+
import { getInputPasswordCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
8
8
|
import { InputBase } from './input-base.mjs';
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@ class DSRInputPassword extends Component {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
splitChildren(this.props.children);
|
|
35
|
-
const style = minifyCss(getComponentCss$
|
|
35
|
+
const style = minifyCss(getComponentCss$R(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.toggle, this.props.compact, this.props.readOnly, this.props.theme));
|
|
36
36
|
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-password", name: this.props.name, form: this.props.form, type: this.props.showPassword ? 'text' : 'password', 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, initialLoading: this.props.initialLoading, end: this.props.toggle && (jsx(PButtonPure, { hideLabel: true, theme: this.props.theme, className: "button", type: "button", icon: this.props.showPassword ? 'view-off' : 'view', disabled: this.props.disabled, aria: { 'aria-pressed': this.props.showPassword ? 'true' : 'false' }, children: "Toggle password visibility" })) })] }), this.props.children] }));
|
|
37
37
|
}
|
|
38
38
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs
CHANGED
|
@@ -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 { getInputSearchCss as getComponentCss$
|
|
6
|
+
import { getInputSearchCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
import { InputBase } from './input-base.mjs';
|
|
@@ -33,7 +33,7 @@ class DSRInputSearch extends Component {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
splitChildren(this.props.children);
|
|
36
|
-
const style = minifyCss(getComponentCss$
|
|
36
|
+
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, this.props.clear));
|
|
37
37
|
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-search", name: this.props.name, form: this.props.form, type: "search", required: this.props.required, placeholder: this.props.placeholder, 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, initialLoading: this.props.initialLoading, ...(this.props.indicator && {
|
|
38
38
|
start: jsx(PIcon, { "aria-hidden": "true", name: "search", color: "state-disabled", theme: this.props.theme }),
|
|
39
39
|
}), ...(this.props.clear && {
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs
ADDED
|
@@ -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 { getInputTelCss as getComponentCss$P } 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 DSRInputTel 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$P(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-tel", name: this.props.name, form: this.props.form, type: "tel", 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, initialLoading: this.props.initialLoading, ...(this.props.indicator && {
|
|
36
|
+
start: jsx(PIcon, { "aria-hidden": "true", name: "phone", color: "state-disabled", theme: this.props.theme }),
|
|
37
|
+
}) })] }), this.props.children] }));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { DSRInputTel };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs
CHANGED
|
@@ -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 { getInputTextCss as getComponentCss$
|
|
5
|
+
import { getInputTextCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { InputBase } from './input-base.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -29,9 +29,8 @@ class DSRInputText extends Component {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
splitChildren(this.props.children);
|
|
32
|
-
const style = minifyCss(getComponentCss$
|
|
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"
|
|
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 && {
|
|
32
|
+
const style = minifyCss(getComponentCss$O(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", 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}` })] })),
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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 { getInputTimeCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
+
import { hasShowPickerSupport } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
9
|
+
import { InputBase } from './input-base.mjs';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @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."}
|
|
13
|
+
* @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."}
|
|
14
|
+
* @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."}
|
|
15
|
+
* @slot {"name": "start", "description": "Shows content at the start of the input (e.g. unit prefix)."}
|
|
16
|
+
* @slot {"name": "end", "description": "Shows content at the end of the input (e.g. toggle button, unit suffix)."}
|
|
17
|
+
*/
|
|
18
|
+
class DSRInputTime extends Component {
|
|
19
|
+
host;
|
|
20
|
+
// The "name" property is reflected as an attribute to ensure compatibility with native form submission.
|
|
21
|
+
// 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.
|
|
22
|
+
internals;
|
|
23
|
+
initialLoading = false;
|
|
24
|
+
inputElement;
|
|
25
|
+
defaultValue;
|
|
26
|
+
formResetCallback() {
|
|
27
|
+
// triggers value watcher
|
|
28
|
+
}
|
|
29
|
+
formDisabledCallback() {
|
|
30
|
+
}
|
|
31
|
+
formStateRestoreCallback() {
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
splitChildren(this.props.children);
|
|
35
|
+
const style = minifyCss(getComponentCss$N(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.theme));
|
|
36
|
+
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-time", name: this.props.name, form: this.props.form, type: "time", required: this.props.required, max: this.props.max, min: this.props.min, 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, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(hasShowPickerSupport() && {
|
|
37
|
+
end: (jsx(PButtonPure, { hideLabel: true, theme: this.props.theme, className: "button", type: "button", icon: "clock", disabled: this.props.disabled || this.props.readOnly, children: "Open time picker" })),
|
|
38
|
+
}) })] }), this.props.children] }));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { DSRInputTime };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs
ADDED
|
@@ -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 { getInputUrlCss as getComponentCss$M } 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 DSRInputUrl 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$M(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-url", name: this.props.name, form: this.props.form, type: "url", 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, initialLoading: this.props.initialLoading, ...(this.props.indicator && {
|
|
36
|
+
start: jsx(PIcon, { "aria-hidden": "true", name: "linked", color: "state-disabled", theme: this.props.theme }),
|
|
37
|
+
}) })] }), this.props.children] }));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { DSRInputUrl };
|
|
@@ -21,7 +21,7 @@ class DSRMultiSelectOption extends Component {
|
|
|
21
21
|
'option--selected': isSelected,
|
|
22
22
|
'option--highlighted': highlighted,
|
|
23
23
|
'option--disabled': isDisabled,
|
|
24
|
-
}).map(([key, value]) => value && key).filter(Boolean).join(' '), children: [jsx("span", { className: "checkbox", "aria-hidden": "true" }), jsx("slot", { slot: "label" })] }) })] }), this.props.children] }));
|
|
24
|
+
}).map(([key, value]) => value && key).filter(Boolean).join(' '), children: [jsx("span", { className: "checkbox-wrapper", children: jsx("span", { className: "checkbox", "aria-hidden": "true" }) }), jsx("slot", { slot: "label" })] }) })] }), this.props.children] }));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs
CHANGED
|
@@ -3,12 +3,14 @@ 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 { getMultiSelectCss as getComponentCss$
|
|
7
|
-
import { getHasNativePopoverSupport, getSelectedOptionValues } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
|
+
import { getMultiSelectCss as getComponentCss$B } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
+
import { getHasNativePopoverSupport, getSelectedOptionValues, getComboboxAriaAttributes, getSelectedOptionsString, labelId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
10
|
-
import { StateMessage } from './state-message.mjs';
|
|
10
|
+
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
12
|
+
import { PInputSearch } from '../components/input-search.wrapper.mjs';
|
|
13
|
+
import { NoResultsOption } from './no-results-option.mjs';
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* @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." }
|
|
@@ -28,14 +30,18 @@ class DSRMultiSelect extends Component {
|
|
|
28
30
|
defaultValue;
|
|
29
31
|
multiSelectOptions = [];
|
|
30
32
|
multiSelectOptgroups = [];
|
|
31
|
-
|
|
33
|
+
buttonElement;
|
|
34
|
+
inputSearchElement;
|
|
35
|
+
inputSearchInputElement;
|
|
36
|
+
listboxElement;
|
|
32
37
|
resetButtonElement;
|
|
33
38
|
preventOptionUpdate = false; // Used to prevent value watcher from updating options when options are already updated
|
|
34
39
|
popoverElement;
|
|
35
40
|
hasNativePopoverSupport = getHasNativePopoverSupport();
|
|
36
41
|
cleanUpAutoUpdate;
|
|
42
|
+
currentlyHighlightedOption = null;
|
|
37
43
|
get currentValue() {
|
|
38
|
-
return getSelectedOptionValues(this.props.
|
|
44
|
+
return getSelectedOptionValues(splitChildren(this.props.children).otherChildren);
|
|
39
45
|
}
|
|
40
46
|
setFormValue(value) {
|
|
41
47
|
const formData = new FormData();
|
|
@@ -52,11 +58,14 @@ class DSRMultiSelect extends Component {
|
|
|
52
58
|
this.props.setFormValue(this.props.defaultValue);
|
|
53
59
|
}
|
|
54
60
|
render() {
|
|
55
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
56
|
-
const
|
|
61
|
+
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
62
|
+
const buttonId = 'button';
|
|
57
63
|
const popoverId = 'list';
|
|
58
|
-
const
|
|
59
|
-
|
|
64
|
+
const descriptionId = this.props.description ? 'description' : undefined;
|
|
65
|
+
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
66
|
+
const ariaDescribedBy = [descriptionId, selectMessageId].filter(Boolean).join(' ');
|
|
67
|
+
const style = minifyCss(getComponentCss$B(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact, this.props.theme));
|
|
68
|
+
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, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [jsx("span", { children: getSelectedOptionsString(otherChildren) }), this.props.currentValue && (jsx(PButtonPure, { type: "button", className: "button", icon: "close", hideLabel: true, theme: this.props.theme, disabled: this.props.disabled, children: "Reset selection" })), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme }), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, "aria-multiselectable": "true", onPointerMove: this.props.onPointerMove, children: [!this.props.hasFilterResults && jsx(NoResultsOption, {}), 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] }));
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
71
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const NoResultsOption = () => {
|
|
4
|
+
return (jsxs("div", { className: "no-results", "aria-live": "polite", role: "option", children: [jsx("span", { "aria-hidden": "true", children: "\u2013" }), jsx("span", { className: "sr-only", children: "No results found" })] }));
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export { NoResultsOption };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs
CHANGED
|
@@ -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 { getOptgroupCss as getComponentCss$
|
|
5
|
+
import { getOptgroupCss as getComponentCss$C } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @slot {"name": "", "description": "Default slot for the optgroup content." }
|
|
@@ -13,7 +13,7 @@ class DSROptgroup extends Component {
|
|
|
13
13
|
splitChildren(this.props.children);
|
|
14
14
|
const { theme = 'light', hidden } = this.props;
|
|
15
15
|
const labelId = 'label';
|
|
16
|
-
const style = minifyCss(getComponentCss$
|
|
16
|
+
const style = minifyCss(getComponentCss$C(this.props.disabled, theme));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "group", "aria-disabled": this.props.disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, "aria-labelledby": labelId, children: [jsx("span", { id: labelId, role: "presentation", children: this.props.label }), jsx("slot", {})] }) })] }), this.props.children] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs
CHANGED
|
@@ -18,15 +18,11 @@ class DSRScroller extends Component {
|
|
|
18
18
|
scrollAreaElement;
|
|
19
19
|
render() {
|
|
20
20
|
splitChildren(this.props.children);
|
|
21
|
-
const deprecationMap = {
|
|
22
|
-
default: 'background-base',
|
|
23
|
-
surface: 'background-surface',
|
|
24
|
-
};
|
|
25
21
|
const renderPrevNextButton = (direction) => {
|
|
26
22
|
return (jsx("div", { className: direction === 'next' ? 'action-next' : 'action-prev', children: jsx(PButton, { className: "action-button", variant: "ghost", "hide-label": "true", icon: direction === 'next' ? 'arrow-head-right' : 'arrow-head-left', type: "button", tabIndex: -1, theme: this.props.theme, dir: "ltr" // Otherwise icon will be flipped which doesn't make sense in this use case
|
|
27
23
|
, children: direction }) }, direction));
|
|
28
24
|
};
|
|
29
|
-
const style = minifyCss(getComponentCss$w(
|
|
25
|
+
const style = minifyCss(getComponentCss$w(this.isNextHidden, this.isPrevHidden, this.props.scrollIndicatorPosition || this.props.alignScrollIndicator, this.props.scrollbar, this.props.theme));
|
|
30
26
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: scrollAreaClass, children: jsxs("div", { className: "scroll-wrapper", role: parseAndGetAriaAttributes(this.props.aria)?.role || null, tabIndex: isScrollable(this.isPrevHidden, this.isNextHidden) ? 0 : null, children: [jsx("slot", {}), jsx("div", { className: "trigger" }), jsx("div", { className: "trigger" })] }) }), ['prev', 'next'].map(renderPrevNextButton)] })] }), this.props.children] }));
|
|
31
27
|
}
|
|
32
28
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -4,11 +4,12 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getSelectCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { getHasNativePopoverSupport,
|
|
7
|
+
import { getHasNativePopoverSupport, getComboboxAriaAttributes, getSelectedOptionString, labelId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { Label } from './label.mjs';
|
|
9
9
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
10
10
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
11
11
|
import { PInputSearch } from '../components/input-search.wrapper.mjs';
|
|
12
|
+
import { NoResultsOption } from './no-results-option.mjs';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @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." }
|
|
@@ -28,7 +29,9 @@ class DSRSelect extends Component {
|
|
|
28
29
|
defaultValue;
|
|
29
30
|
buttonElement;
|
|
30
31
|
popoverElement;
|
|
31
|
-
|
|
32
|
+
inputSearchElement;
|
|
33
|
+
inputSearchInputElement;
|
|
34
|
+
listboxElement;
|
|
32
35
|
selectOptions = [];
|
|
33
36
|
selectOptgroups = [];
|
|
34
37
|
preventOptionUpdate = false; // Used to prevent value watcher from updating options when options are already updated
|
|
@@ -37,6 +40,7 @@ class DSRSelect extends Component {
|
|
|
37
40
|
slottedImagePath = '';
|
|
38
41
|
hasNativePopoverSupport = getHasNativePopoverSupport();
|
|
39
42
|
cleanUpAutoUpdate;
|
|
43
|
+
currentlyHighlightedOption = null;
|
|
40
44
|
formDisabledCallback() {
|
|
41
45
|
}
|
|
42
46
|
formStateRestoreCallback() {
|
|
@@ -46,14 +50,13 @@ class DSRSelect extends Component {
|
|
|
46
50
|
}
|
|
47
51
|
render() {
|
|
48
52
|
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
49
|
-
const buttonId = '
|
|
53
|
+
const buttonId = 'button';
|
|
50
54
|
const popoverId = 'list';
|
|
51
55
|
const descriptionId = this.props.description ? 'description' : undefined;
|
|
52
56
|
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
53
57
|
const ariaDescribedBy = [descriptionId, selectMessageId].filter(Boolean).join(' ');
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
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, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [this.props.slottedImagePath && jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: selectedOption }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [this.props.filter && (jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme, ...getComboboxFilterAriaAttributes() })), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, children: [this.props.filter && !this.props.hasFilterResults && (jsx("div", { className: "no-results", "aria-live": "polite", role: "option", children: jsx("span", { "aria-hidden": "true", children: "\u2013" }) })), 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] }));
|
|
58
|
+
const style = minifyCss(getComponentCss$q(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact, this.props.theme));
|
|
59
|
+
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, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [this.props.slottedImagePath && jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: getSelectedOptionString(otherChildren) }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [this.props.filter && (jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme })), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, onPointerMove: this.props.onPointerMove, children: [this.props.filter && !this.props.hasFilterResults && jsx(NoResultsOption, {}), 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] }));
|
|
57
60
|
}
|
|
58
61
|
getSelectedOptionImagePath = (options) => {
|
|
59
62
|
return (options
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs
CHANGED
|
@@ -30,7 +30,7 @@ class DSRTextarea extends Component {
|
|
|
30
30
|
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
31
31
|
const id = 'textarea';
|
|
32
32
|
const style = minifyCss(getComponentCss$3(this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.counter, this.props.resize, this.props.theme));
|
|
33
|
-
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, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [jsx("textarea", { "aria-describedby": `${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name,
|
|
33
|
+
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, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [jsx("textarea", { "aria-describedby": `${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, defaultValue: 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 && (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
|
|
34
34
|
? `You have ${this.props.maxLength - this.props.value.length} out of ${this.props.maxLength} characters left`
|
|
35
35
|
: `${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}` })] }))] }), 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] }));
|
|
36
36
|
}
|
|
@@ -18,6 +18,7 @@ export { PDrilldownItem } from './lib/components/drilldown-item.wrapper.mjs';
|
|
|
18
18
|
export { PDrilldownLink } from './lib/components/drilldown-link.wrapper.mjs';
|
|
19
19
|
export { PFieldset } from './lib/components/fieldset.wrapper.mjs';
|
|
20
20
|
export { PFieldsetWrapper } from './lib/components/fieldset-wrapper.wrapper.mjs';
|
|
21
|
+
export { PFlag } from './lib/components/flag.wrapper.mjs';
|
|
21
22
|
export { PFlex } from './lib/components/flex.wrapper.mjs';
|
|
22
23
|
export { PFlexItem } from './lib/components/flex-item.wrapper.mjs';
|
|
23
24
|
export { PFlyout } from './lib/components/flyout.wrapper.mjs';
|
|
@@ -27,10 +28,15 @@ export { PHeading } from './lib/components/heading.wrapper.mjs';
|
|
|
27
28
|
export { PHeadline } from './lib/components/headline.wrapper.mjs';
|
|
28
29
|
export { PIcon } from './lib/components/icon.wrapper.mjs';
|
|
29
30
|
export { PInlineNotification } from './lib/components/inline-notification.wrapper.mjs';
|
|
31
|
+
export { PInputDate } from './lib/components/input-date.wrapper.mjs';
|
|
32
|
+
export { PInputEmail } from './lib/components/input-email.wrapper.mjs';
|
|
30
33
|
export { PInputNumber } from './lib/components/input-number.wrapper.mjs';
|
|
31
34
|
export { PInputPassword } from './lib/components/input-password.wrapper.mjs';
|
|
32
35
|
export { PInputSearch } from './lib/components/input-search.wrapper.mjs';
|
|
36
|
+
export { PInputTel } from './lib/components/input-tel.wrapper.mjs';
|
|
33
37
|
export { PInputText } from './lib/components/input-text.wrapper.mjs';
|
|
38
|
+
export { PInputTime } from './lib/components/input-time.wrapper.mjs';
|
|
39
|
+
export { PInputUrl } from './lib/components/input-url.wrapper.mjs';
|
|
34
40
|
export { PLink } from './lib/components/link.wrapper.mjs';
|
|
35
41
|
export { PLinkPure } from './lib/components/link-pure.wrapper.mjs';
|
|
36
42
|
export { PLinkSocial } from './lib/components/link-social.wrapper.mjs';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { FieldsetLabelSize, FieldsetState, Theme } from '../types';
|
|
2
|
+
import type { SelectedAriaRole, FieldsetLabelSize, FieldsetState, Theme } from '../types';
|
|
3
3
|
export type PFieldsetProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Add ARIA attributes.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaRole<"radiogroup">;
|
|
4
8
|
/**
|
|
5
9
|
* The label text.
|
|
6
10
|
*/
|
|
@@ -27,6 +31,10 @@ export type PFieldsetProps = BaseProps & {
|
|
|
27
31
|
theme?: Theme;
|
|
28
32
|
};
|
|
29
33
|
export declare const PFieldset: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
34
|
+
/**
|
|
35
|
+
* Add ARIA attributes.
|
|
36
|
+
*/
|
|
37
|
+
aria?: SelectedAriaRole<"radiogroup">;
|
|
30
38
|
/**
|
|
31
39
|
* The label text.
|
|
32
40
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BaseProps } from '../../BaseProps';
|
|
2
|
+
import type { SelectedAriaAttributes, FlagAriaAttribute, FlagName, FlagSize } from '../types';
|
|
3
|
+
export type PFlagProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* A map of ARIA attributes to enhance the flag's accessibility. For example, use `{ 'aria-label': 'German flag' }` to provide a descriptive label for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<FlagAriaAttribute>;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the country flag to display. Use the two-letter ISO 3166-1 alpha-2 country code. For example, use `us` for the United States, `de` for Germany, `gb` for Great Britain.
|
|
10
|
+
*/
|
|
11
|
+
name?: FlagName;
|
|
12
|
+
/**
|
|
13
|
+
* The size of the flag. Pre-defined sizes are aligned with the Porsche Next typescale. Available values are `small`, `medium`, `large`, etc.
|
|
14
|
+
*/
|
|
15
|
+
size?: FlagSize;
|
|
16
|
+
};
|
|
17
|
+
export declare const PFlag: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
18
|
+
/**
|
|
19
|
+
* A map of ARIA attributes to enhance the flag's accessibility. For example, use `{ 'aria-label': 'German flag' }` to provide a descriptive label for screen readers.
|
|
20
|
+
*/
|
|
21
|
+
aria?: SelectedAriaAttributes<FlagAriaAttribute>;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the country flag to display. Use the two-letter ISO 3166-1 alpha-2 country code. For example, use `us` for the United States, `de` for Germany, `gb` for Great Britain.
|
|
24
|
+
*/
|
|
25
|
+
name?: FlagName;
|
|
26
|
+
/**
|
|
27
|
+
* The size of the flag. Pre-defined sizes are aligned with the Porsche Next typescale. Available values are `small`, `medium`, `large`, etc.
|
|
28
|
+
*/
|
|
29
|
+
size?: FlagSize;
|
|
30
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -17,6 +17,7 @@ export * from './drilldown-item.wrapper';
|
|
|
17
17
|
export * from './drilldown-link.wrapper';
|
|
18
18
|
export * from './fieldset.wrapper';
|
|
19
19
|
export * from './fieldset-wrapper.wrapper';
|
|
20
|
+
export * from './flag.wrapper';
|
|
20
21
|
export * from './flex.wrapper';
|
|
21
22
|
export * from './flex-item.wrapper';
|
|
22
23
|
export * from './flyout.wrapper';
|
|
@@ -26,10 +27,15 @@ export * from './heading.wrapper';
|
|
|
26
27
|
export * from './headline.wrapper';
|
|
27
28
|
export * from './icon.wrapper';
|
|
28
29
|
export * from './inline-notification.wrapper';
|
|
30
|
+
export * from './input-date.wrapper';
|
|
31
|
+
export * from './input-email.wrapper';
|
|
29
32
|
export * from './input-number.wrapper';
|
|
30
33
|
export * from './input-password.wrapper';
|
|
31
34
|
export * from './input-search.wrapper';
|
|
35
|
+
export * from './input-tel.wrapper';
|
|
32
36
|
export * from './input-text.wrapper';
|
|
37
|
+
export * from './input-time.wrapper';
|
|
38
|
+
export * from './input-url.wrapper';
|
|
33
39
|
export * from './link.wrapper';
|
|
34
40
|
export * from './link-pure.wrapper';
|
|
35
41
|
export * from './link-social.wrapper';
|