@porsche-design-system/components-react 4.2.0-rc.0 → 4.2.0-rc.2
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 +104 -0
- package/cjs/lib/components/accordion.wrapper.cjs +3 -3
- package/cjs/lib/components/ai-tag.wrapper.cjs +26 -0
- package/cjs/public-api.cjs +2 -0
- package/esm/BaseProps.d.ts +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +12 -2
- package/esm/lib/components/accordion.wrapper.mjs +3 -3
- package/esm/lib/components/ai-tag.wrapper.d.ts +26 -0
- package/esm/lib/components/ai-tag.wrapper.mjs +24 -0
- package/esm/lib/components/banner.wrapper.d.ts +1 -1
- package/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/button-tile.wrapper.d.ts +1 -1
- package/esm/lib/components/button.wrapper.d.ts +1 -1
- package/esm/lib/components/canvas.wrapper.d.ts +1 -1
- package/esm/lib/components/carousel.wrapper.d.ts +1 -1
- package/esm/lib/components/checkbox.wrapper.d.ts +1 -1
- package/esm/lib/components/crest.wrapper.d.ts +1 -1
- package/esm/lib/components/display.wrapper.d.ts +1 -1
- package/esm/lib/components/divider.wrapper.d.ts +1 -1
- package/esm/lib/components/drilldown-item.wrapper.d.ts +1 -1
- package/esm/lib/components/drilldown-link.wrapper.d.ts +1 -1
- package/esm/lib/components/drilldown.wrapper.d.ts +1 -1
- package/esm/lib/components/fieldset.wrapper.d.ts +1 -1
- package/esm/lib/components/flag.wrapper.d.ts +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +1 -1
- package/esm/lib/components/heading.wrapper.d.ts +1 -1
- package/esm/lib/components/icon.wrapper.d.ts +1 -1
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +1 -1
- package/esm/lib/components/input-date.wrapper.d.ts +3 -3
- package/esm/lib/components/input-email.wrapper.d.ts +3 -3
- package/esm/lib/components/input-month.wrapper.d.ts +3 -3
- package/esm/lib/components/input-number.wrapper.d.ts +3 -3
- package/esm/lib/components/input-password.wrapper.d.ts +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +3 -3
- package/esm/lib/components/input-tel.wrapper.d.ts +3 -3
- package/esm/lib/components/input-text.wrapper.d.ts +3 -3
- package/esm/lib/components/input-time.wrapper.d.ts +3 -3
- package/esm/lib/components/input-url.wrapper.d.ts +3 -3
- package/esm/lib/components/input-week.wrapper.d.ts +3 -3
- package/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile-product.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile.wrapper.d.ts +1 -1
- package/esm/lib/components/link.wrapper.d.ts +1 -1
- package/esm/lib/components/modal.wrapper.d.ts +1 -1
- package/esm/lib/components/model-signature.wrapper.d.ts +1 -1
- package/esm/lib/components/multi-select-option.wrapper.d.ts +3 -3
- package/esm/lib/components/multi-select.wrapper.d.ts +5 -5
- package/esm/lib/components/optgroup.wrapper.d.ts +1 -1
- package/esm/lib/components/pagination.wrapper.d.ts +1 -1
- package/esm/lib/components/pin-code.wrapper.d.ts +1 -1
- package/esm/lib/components/popover.wrapper.d.ts +1 -1
- package/esm/lib/components/radio-group-option.wrapper.d.ts +1 -1
- package/esm/lib/components/radio-group.wrapper.d.ts +1 -1
- package/esm/lib/components/scroller.wrapper.d.ts +1 -1
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +1 -1
- package/esm/lib/components/segmented-control.wrapper.d.ts +1 -1
- package/esm/lib/components/select-option.wrapper.d.ts +5 -5
- package/esm/lib/components/select.wrapper.d.ts +5 -5
- package/esm/lib/components/sheet.wrapper.d.ts +1 -1
- package/esm/lib/components/spinner.wrapper.d.ts +1 -1
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -1
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
- package/esm/lib/components/switch.wrapper.d.ts +1 -1
- package/esm/lib/components/table-body.wrapper.d.ts +1 -1
- package/esm/lib/components/table-cell.wrapper.d.ts +1 -1
- package/esm/lib/components/table-head-cell.wrapper.d.ts +1 -1
- package/esm/lib/components/table-head-row.wrapper.d.ts +1 -1
- package/esm/lib/components/table-head.wrapper.d.ts +1 -1
- package/esm/lib/components/table-row.wrapper.d.ts +1 -1
- package/esm/lib/components/table.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs-bar.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs-item.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs.wrapper.d.ts +1 -1
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +1 -1
- package/esm/lib/components/tag.wrapper.d.ts +1 -1
- package/esm/lib/components/text-list-item.wrapper.d.ts +1 -1
- package/esm/lib/components/text-list.wrapper.d.ts +1 -1
- package/esm/lib/components/text.wrapper.d.ts +1 -1
- package/esm/lib/components/textarea.wrapper.d.ts +3 -3
- package/esm/lib/components/toast.wrapper.d.ts +1 -1
- package/esm/lib/components/wordmark.wrapper.d.ts +1 -1
- package/esm/lib/types.d.ts +221 -2
- package/esm/public-api.mjs +1 -0
- package/meta/cjs/index.cjs +12 -0
- package/meta/esm/index.d.ts +1 -0
- package/meta/esm/index.mjs +1 -0
- package/meta/package.json +6 -0
- package/package.json +24 -21
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1382 -1214
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +176 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/ai-tag.wrapper.cjs +36 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/ai-tag.cjs +18 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.cjs +1 -1
- 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 +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +7 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +10 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +8 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/BaseProps.d.ts +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1381 -1214
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +175 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/ai-tag.wrapper.mjs +34 -0
- 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/ai-tag.mjs +16 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.mjs +1 -1
- 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 +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +10 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +8 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +12 -2
- package/ssr/esm/lib/components/ai-tag.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/banner.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/crest.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/display.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/divider.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/flag.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/heading.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/icon.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/modal.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/popover.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/select.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/switch.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-body.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-head-row.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-head.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-row.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tag.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text-list-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/toast.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/ai-tag.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/input-base.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-date.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-month.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-time.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-url.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-week.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/select.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/textarea.d.ts +1 -0
- package/ssr/esm/lib/types.d.ts +221 -2
- package/{global-styles → stylesheets}/cn/font-face.css +1 -1
- package/{global-styles → stylesheets}/cn/index.css +138 -106
- package/{global-styles → stylesheets}/color-scheme.css +47 -44
- package/{global-styles → stylesheets}/font-face.css +1 -1
- package/{global-styles → stylesheets}/index.css +138 -106
- package/stylesheets/normalize.css +18 -0
- package/{global-styles → stylesheets}/variables.css +80 -58
- package/tailwindcss/index.css +569 -301
- package/global-styles/legacy-radius.css +0 -5
- package/global-styles/normalize.css +0 -11
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs
CHANGED
|
@@ -23,6 +23,10 @@ class DSRInputTel extends Component {
|
|
|
23
23
|
initialLoading = false;
|
|
24
24
|
inputElement;
|
|
25
25
|
defaultValue;
|
|
26
|
+
// Native input.value is always a string; coerce number/null/undefined to mirror native behavior.
|
|
27
|
+
get parsedValue() {
|
|
28
|
+
return String(this.props.value ?? '');
|
|
29
|
+
}
|
|
26
30
|
formResetCallback() {
|
|
27
31
|
// triggers value watcher
|
|
28
32
|
}
|
|
@@ -34,7 +38,7 @@ class DSRInputTel extends Component {
|
|
|
34
38
|
render() {
|
|
35
39
|
splitChildren(this.props.children);
|
|
36
40
|
const style = minifyCss(getComponentCss$L(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
|
|
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-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.
|
|
41
|
+
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.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, pattern: this.props.pattern, initialLoading: this.props.initialLoading, ...(this.props.indicator && {
|
|
38
42
|
start: jsx(PIcon, { "aria-hidden": "true", name: "phone", color: "contrast-low" }),
|
|
39
43
|
}) })] }), this.props.children] }));
|
|
40
44
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs
CHANGED
|
@@ -21,6 +21,10 @@ class DSRInputText extends Component {
|
|
|
21
21
|
initialLoading = false;
|
|
22
22
|
inputElement;
|
|
23
23
|
defaultValue;
|
|
24
|
+
// Native input.value is always a string; coerce number/null/undefined to mirror native behavior.
|
|
25
|
+
get parsedValue() {
|
|
26
|
+
return String(this.props.value ?? '');
|
|
27
|
+
}
|
|
24
28
|
formResetCallback() {
|
|
25
29
|
// triggers value watcher
|
|
26
30
|
}
|
|
@@ -32,10 +36,10 @@ class DSRInputText extends Component {
|
|
|
32
36
|
render() {
|
|
33
37
|
splitChildren(this.props.children);
|
|
34
38
|
const style = minifyCss(getComponentCss$K(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.counter));
|
|
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-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.
|
|
39
|
+
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.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, spellCheck: this.props.spellCheck, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(this.props.inputMode !== '' && { inputMode: this.props.inputMode }), ...(this.props.counter && {
|
|
36
40
|
end: (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
|
|
37
|
-
? `You have ${this.props.maxLength - this.
|
|
38
|
-
: `${this.
|
|
41
|
+
? `You have ${this.props.maxLength - this.parsedValue.length} out of ${this.props.maxLength} characters left`
|
|
42
|
+
: `${this.parsedValue.length} characters entered` }), jsx("span", { className: "counter", "aria-hidden": "true", children: this.props.maxLength ? `${this.parsedValue.length}/${this.props.maxLength}` : `${this.parsedValue.length}` })] })),
|
|
39
43
|
}) })] }), this.props.children] }));
|
|
40
44
|
}
|
|
41
45
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs
CHANGED
|
@@ -24,6 +24,10 @@ class DSRInputTime extends Component {
|
|
|
24
24
|
initialLoading = false;
|
|
25
25
|
inputElement;
|
|
26
26
|
defaultValue;
|
|
27
|
+
// Native input.value is always a string; coerce null/undefined to mirror native behavior.
|
|
28
|
+
get parsedValue() {
|
|
29
|
+
return String(this.props.value ?? '');
|
|
30
|
+
}
|
|
27
31
|
formResetCallback() {
|
|
28
32
|
// triggers value watcher
|
|
29
33
|
}
|
|
@@ -35,7 +39,7 @@ class DSRInputTime extends Component {
|
|
|
35
39
|
render() {
|
|
36
40
|
splitChildren(this.props.children);
|
|
37
41
|
const style = minifyCss(getComponentCss$J(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
|
|
38
|
-
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.
|
|
42
|
+
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.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(hasShowPickerSupport() && {
|
|
39
43
|
end: (jsx(PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: "clock", disabled: this.props.disabled || this.props.readOnly, children: "Open time picker" })),
|
|
40
44
|
}) })] }), this.props.children] }));
|
|
41
45
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs
CHANGED
|
@@ -23,6 +23,10 @@ class DSRInputUrl extends Component {
|
|
|
23
23
|
initialLoading = false;
|
|
24
24
|
inputElement;
|
|
25
25
|
defaultValue;
|
|
26
|
+
// Native input.value is always a string; coerce number/null/undefined to mirror native behavior.
|
|
27
|
+
get parsedValue() {
|
|
28
|
+
return String(this.props.value ?? '');
|
|
29
|
+
}
|
|
26
30
|
formResetCallback() {
|
|
27
31
|
// triggers value watcher
|
|
28
32
|
}
|
|
@@ -34,7 +38,7 @@ class DSRInputUrl extends Component {
|
|
|
34
38
|
render() {
|
|
35
39
|
splitChildren(this.props.children);
|
|
36
40
|
const style = minifyCss(getComponentCss$I(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
|
|
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-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.
|
|
41
|
+
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.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, pattern: this.props.pattern, initialLoading: this.props.initialLoading, ...(this.props.indicator && {
|
|
38
42
|
start: jsx(PIcon, { "aria-hidden": "true", name: "linked", color: "contrast-low" }),
|
|
39
43
|
}) })] }), this.props.children] }));
|
|
40
44
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs
CHANGED
|
@@ -24,6 +24,10 @@ class DSRInputWeek extends Component {
|
|
|
24
24
|
initialLoading = false;
|
|
25
25
|
inputElement;
|
|
26
26
|
defaultValue;
|
|
27
|
+
// Native input.value is always a string; coerce null/undefined to mirror native behavior.
|
|
28
|
+
get parsedValue() {
|
|
29
|
+
return String(this.props.value ?? '');
|
|
30
|
+
}
|
|
27
31
|
formResetCallback() {
|
|
28
32
|
// triggers value watcher
|
|
29
33
|
}
|
|
@@ -35,7 +39,7 @@ class DSRInputWeek extends Component {
|
|
|
35
39
|
render() {
|
|
36
40
|
splitChildren(this.props.children);
|
|
37
41
|
const style = minifyCss(getComponentCss$H(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
|
|
38
|
-
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-week", name: this.props.name, form: this.props.form, type: "week", required: this.props.required, max: this.props.max, min: this.props.min, value: this.
|
|
42
|
+
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-week", name: this.props.name, form: this.props.form, type: "week", required: this.props.required, max: this.props.max, min: this.props.min, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, ...(hasShowPickerSupport() && {
|
|
39
43
|
end: (jsx(PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: "calendar", disabled: this.props.disabled || this.props.readOnly, children: "Open date picker" })),
|
|
40
44
|
}) })] }), this.props.children] }));
|
|
41
45
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs
CHANGED
|
@@ -45,10 +45,15 @@ class DSRMultiSelect extends Component {
|
|
|
45
45
|
hasNativePopoverSupport = getHasNativePopoverSupport();
|
|
46
46
|
cleanUpAutoUpdate;
|
|
47
47
|
currentlyHighlightedOption = null;
|
|
48
|
-
setFormValue(
|
|
48
|
+
setFormValue() {
|
|
49
|
+
if (this.props.value == null || this.props.value.length === 0) {
|
|
50
|
+
// null excludes the control from form submission (mirrors native behavior)
|
|
51
|
+
this.props.internals?.setFormValue(null);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
49
54
|
const formData = new FormData();
|
|
50
|
-
for (const val of value) {
|
|
51
|
-
formData.append(this.props.name, val);
|
|
55
|
+
for (const val of this.props.value) {
|
|
56
|
+
formData.append(this.props.name, String(val));
|
|
52
57
|
}
|
|
53
58
|
this.props.internals?.setFormValue(formData);
|
|
54
59
|
}
|
|
@@ -58,7 +63,7 @@ class DSRMultiSelect extends Component {
|
|
|
58
63
|
formStateRestoreCallback() {
|
|
59
64
|
}
|
|
60
65
|
formResetCallback() {
|
|
61
|
-
|
|
66
|
+
// triggers value watcher which syncs form value
|
|
62
67
|
}
|
|
63
68
|
render() {
|
|
64
69
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
@@ -69,7 +74,7 @@ class DSRMultiSelect extends Component {
|
|
|
69
74
|
const selectDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
|
|
70
75
|
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
71
76
|
const style = minifyCss(getComponentCss$y(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact));
|
|
72
|
-
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, tabIndex: 0, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && labelId, selectMessageId, selectDescriptionId, listboxId), disabled: this.props.disabled, onBlur: this.props.onComboBlur, children: [hasCustomSelectedSlot ? (jsx("slot", { name: "selected" })) : (jsx("span", { children: this.selectedOptions.map((option) => (option.textContent ?? '').toString().trim()).join(', ') })), this.props.value
|
|
77
|
+
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, tabIndex: 0, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && labelId, selectMessageId, selectDescriptionId, listboxId), disabled: this.props.disabled, onBlur: this.props.onComboBlur, children: [hasCustomSelectedSlot ? (jsx("slot", { name: "selected" })) : (jsx("span", { children: this.selectedOptions.map((option) => (option.textContent ?? '').toString().trim()).join(', ') })), this.props.value?.length > 0 && (jsx(PButtonPure, { type: "button", className: "button", icon: "close", hideLabel: true, disabled: this.props.disabled, children: "Reset selection" })), jsx(PIcon, { className: "icon", name: "arrow-head-down", color: "primary", "aria-hidden": "true" })] }), jsxs("div", { popover: "manual", tabIndex: 0, children: [hasCustomFilterSlot ? (jsx("slot", { name: "filter" })) : (jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, onBlur: (e) => e.stopPropagation() })), jsxs("div", { id: listboxId, className: "options", ...getListboxAriaAttributes(this.props.required, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && labelId, selectMessageId, selectDescriptionId, true), onPointerMove: this.props.onPointerMove, onBlur: (e) => e.stopPropagation(), children: [!this.props.hasFilterResults && jsx(NoResultsOption, {}), jsx("slot", { name: "options-status" }), 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, host: null })] })] }), this.props.children] }));
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -48,13 +48,17 @@ class DSRSelect extends Component {
|
|
|
48
48
|
get hasFilter() {
|
|
49
49
|
return !!(this.props.filter || this.props.filterSlot);
|
|
50
50
|
}
|
|
51
|
+
setFormValue() {
|
|
52
|
+
// `null`/`undefined` → `undefined`, removing the select from form submission (mirrors native behavior)
|
|
53
|
+
this.props.internals?.setFormValue(this.props.value === null || this.props.value === undefined ? undefined : String(this.props.value));
|
|
54
|
+
}
|
|
51
55
|
formDisabledCallback() {
|
|
52
56
|
// Called when a parent fieldset is disabled or enabled
|
|
53
57
|
}
|
|
54
58
|
formStateRestoreCallback() {
|
|
55
59
|
}
|
|
56
60
|
formResetCallback() {
|
|
57
|
-
|
|
61
|
+
// triggers value watcher which syncs form value
|
|
58
62
|
}
|
|
59
63
|
render() {
|
|
60
64
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs
CHANGED
|
@@ -20,8 +20,12 @@ class DSRTextarea extends Component {
|
|
|
20
20
|
internals;
|
|
21
21
|
defaultValue;
|
|
22
22
|
textAreaElement;
|
|
23
|
+
// Native input.value is always a string; coerce null/undefined to mirror native behavior.
|
|
24
|
+
get parsedValue() {
|
|
25
|
+
return String(this.props.value ?? '');
|
|
26
|
+
}
|
|
23
27
|
formResetCallback() {
|
|
24
|
-
|
|
28
|
+
// triggers value watcher
|
|
25
29
|
}
|
|
26
30
|
formDisabledCallback() {
|
|
27
31
|
// Called when a parent fieldset is disabled or enabled
|
|
@@ -34,9 +38,9 @@ class DSRTextarea extends Component {
|
|
|
34
38
|
const textareaDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
|
|
35
39
|
const textareaMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
36
40
|
const style = minifyCss(getComponentCss$3(this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.compact, this.props.counter, this.props.resize));
|
|
37
|
-
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": setAriaIDREF(textareaMessageId, textareaDescriptionId), "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, defaultValue: this.
|
|
38
|
-
? `You have ${this.props.maxLength - this.
|
|
39
|
-
: `${this.
|
|
41
|
+
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": setAriaIDREF(textareaMessageId, textareaDescriptionId), "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, defaultValue: this.parsedValue, 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
|
|
42
|
+
? `You have ${this.props.maxLength - this.parsedValue.length} out of ${this.props.maxLength} characters left`
|
|
43
|
+
: `${this.parsedValue.length} characters entered` }), jsx("span", { className: "counter", "aria-hidden": "true", children: this.props.maxLength ? `${this.parsedValue.length}/${this.props.maxLength}` : `${this.parsedValue.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, host: null })] })] }), this.props.children] }));
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { componentsReady } from '@porsche-design-system/components-js';
|
|
2
2
|
export { skipCheckForPorscheDesignSystemProviderDuringTests, useToastManager } from './hooks.mjs';
|
|
3
3
|
export { PAccordion } from './lib/components/accordion.wrapper.mjs';
|
|
4
|
+
export { PAiTag } from './lib/components/ai-tag.wrapper.mjs';
|
|
4
5
|
export { PBanner } from './lib/components/banner.wrapper.mjs';
|
|
5
6
|
export { PButton } from './lib/components/button.wrapper.mjs';
|
|
6
7
|
export { PButtonPure } from './lib/components/button-pure.wrapper.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { AccordionAlignMarker, AccordionBackground, AccordionHeadingTag,
|
|
2
|
+
import type { AccordionAlignMarker, AccordionBackground, AccordionHeadingTag, BreakpointCustomizable, AccordionUpdateEventDetail, AccordionSize } from '../types';
|
|
3
3
|
export type PAccordionProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Aligns the marker within the summary section.
|
|
@@ -24,6 +24,11 @@ export type PAccordionProps = BaseProps & {
|
|
|
24
24
|
* @default 'h2'
|
|
25
25
|
*/
|
|
26
26
|
headingTag?: AccordionHeadingTag;
|
|
27
|
+
/**
|
|
28
|
+
* Indents the slotted content to be vertically aligned with the text of the summary section.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
indent?: BreakpointCustomizable<boolean>;
|
|
27
32
|
/**
|
|
28
33
|
* Emitted when the accordion state changes.
|
|
29
34
|
*/
|
|
@@ -42,7 +47,7 @@ export type PAccordionProps = BaseProps & {
|
|
|
42
47
|
*/
|
|
43
48
|
sticky?: boolean;
|
|
44
49
|
};
|
|
45
|
-
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
50
|
+
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
46
51
|
/**
|
|
47
52
|
* Aligns the marker within the summary section.
|
|
48
53
|
* @default 'end'
|
|
@@ -66,6 +71,11 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
66
71
|
* @default 'h2'
|
|
67
72
|
*/
|
|
68
73
|
headingTag?: AccordionHeadingTag;
|
|
74
|
+
/**
|
|
75
|
+
* Indents the slotted content to be vertically aligned with the text of the summary section.
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
indent?: BreakpointCustomizable<boolean>;
|
|
69
79
|
/**
|
|
70
80
|
* Emitted when the accordion state changes.
|
|
71
81
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { BaseProps } from '../../BaseProps';
|
|
2
|
+
import type { AiTagLocale, AiTagVariant } from '../types';
|
|
3
|
+
export type PAiTagProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Locale for the AI text (ISO format, e.g. "de_DE").
|
|
6
|
+
* @default 'en_US'
|
|
7
|
+
*/
|
|
8
|
+
locale?: AiTagLocale;
|
|
9
|
+
/**
|
|
10
|
+
* Variant to display: 'abbreviation' (e.g. "AI"), 'generated' (e.g. "AI-generated"), or 'modified' (e.g. "AI-modified").
|
|
11
|
+
* @default 'generated'
|
|
12
|
+
*/
|
|
13
|
+
variant?: AiTagVariant;
|
|
14
|
+
};
|
|
15
|
+
export declare const PAiTag: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Locale for the AI text (ISO format, e.g. "de_DE").
|
|
18
|
+
* @default 'en_US'
|
|
19
|
+
*/
|
|
20
|
+
locale?: AiTagLocale;
|
|
21
|
+
/**
|
|
22
|
+
* Variant to display: 'abbreviation' (e.g. "AI"), 'generated' (e.g. "AI-generated"), or 'modified' (e.g. "AI-modified").
|
|
23
|
+
* @default 'generated'
|
|
24
|
+
*/
|
|
25
|
+
variant?: AiTagVariant;
|
|
26
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -41,7 +41,7 @@ export type PBannerProps = BaseProps & {
|
|
|
41
41
|
*/
|
|
42
42
|
state?: BannerState;
|
|
43
43
|
};
|
|
44
|
-
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
44
|
+
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
45
45
|
/**
|
|
46
46
|
* Sets the description text of the banner.
|
|
47
47
|
* @default ''
|
|
@@ -77,7 +77,7 @@ export type PButtonPureProps = BaseProps & {
|
|
|
77
77
|
*/
|
|
78
78
|
value?: string;
|
|
79
79
|
};
|
|
80
|
-
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
80
|
+
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
81
81
|
/**
|
|
82
82
|
* Displays the button in its active state.
|
|
83
83
|
* @default false
|
|
@@ -68,7 +68,7 @@ export type PButtonTileProps = BaseProps & {
|
|
|
68
68
|
*/
|
|
69
69
|
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
70
70
|
};
|
|
71
|
-
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
71
|
+
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
72
72
|
/**
|
|
73
73
|
* Alignment of button and description.
|
|
74
74
|
* @default 'bottom'
|
|
@@ -57,7 +57,7 @@ export type PButtonProps = BaseProps & {
|
|
|
57
57
|
*/
|
|
58
58
|
variant?: ButtonVariant;
|
|
59
59
|
};
|
|
60
|
-
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
60
|
+
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
61
61
|
/**
|
|
62
62
|
* Sets ARIA attributes.
|
|
63
63
|
*/
|
|
@@ -25,7 +25,7 @@ export type PCanvasProps = BaseProps & {
|
|
|
25
25
|
*/
|
|
26
26
|
sidebarStartOpen?: boolean;
|
|
27
27
|
};
|
|
28
|
-
export declare const PCanvas: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
28
|
+
export declare const PCanvas: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
29
29
|
/**
|
|
30
30
|
* Defines the background color of the main section and auto adjust it for the sidebar
|
|
31
31
|
* @default 'canvas'
|
|
@@ -81,7 +81,7 @@ export type PCarouselProps = BaseProps & {
|
|
|
81
81
|
*/
|
|
82
82
|
width?: CarouselWidth;
|
|
83
83
|
};
|
|
84
|
-
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
84
|
+
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
85
85
|
/**
|
|
86
86
|
* Defines which slide is active (zero-based numbering).
|
|
87
87
|
* @default 0
|
|
@@ -74,7 +74,7 @@ export type PCheckboxProps = BaseProps & {
|
|
|
74
74
|
*/
|
|
75
75
|
value?: string;
|
|
76
76
|
};
|
|
77
|
-
export declare const PCheckbox: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
77
|
+
export declare const PCheckbox: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
78
78
|
/**
|
|
79
79
|
* Reflects the checkbox current checked state and allows setting the initial checked state.
|
|
80
80
|
* @default false
|
|
@@ -15,7 +15,7 @@ export type PCrestProps = BaseProps & {
|
|
|
15
15
|
*/
|
|
16
16
|
target?: CrestTarget;
|
|
17
17
|
};
|
|
18
|
-
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
18
|
+
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
19
19
|
/**
|
|
20
20
|
* Sets ARIA attributes.
|
|
21
21
|
*/
|
|
@@ -27,7 +27,7 @@ export type PDisplayProps = BaseProps & {
|
|
|
27
27
|
tag?: DisplayTag;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead. */
|
|
30
|
-
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
30
|
+
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Text alignment of the component.
|
|
33
33
|
* @default 'start'
|
|
@@ -12,7 +12,7 @@ export type PDividerProps = BaseProps & {
|
|
|
12
12
|
*/
|
|
13
13
|
direction?: BreakpointCustomizable<DividerDirection>;
|
|
14
14
|
};
|
|
15
|
-
export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
15
|
+
export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
16
16
|
/**
|
|
17
17
|
* Defines color.
|
|
18
18
|
* @default 'contrast-lower'
|
|
@@ -24,7 +24,7 @@ export type PDrilldownItemProps = BaseProps & {
|
|
|
24
24
|
*/
|
|
25
25
|
secondary?: boolean;
|
|
26
26
|
};
|
|
27
|
-
export declare const PDrilldownItem: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
27
|
+
export declare const PDrilldownItem: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
28
28
|
/**
|
|
29
29
|
* Private property set by the component itself.
|
|
30
30
|
* @default false
|
|
@@ -28,7 +28,7 @@ export type PDrilldownLinkProps = BaseProps & {
|
|
|
28
28
|
*/
|
|
29
29
|
target?: DrilldownLinkTarget;
|
|
30
30
|
};
|
|
31
|
-
export declare const PDrilldownLink: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
31
|
+
export declare const PDrilldownLink: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
32
32
|
/**
|
|
33
33
|
* Displays the link in its active state.
|
|
34
34
|
* @default false
|
|
@@ -23,7 +23,7 @@ export type PDrilldownProps = BaseProps & {
|
|
|
23
23
|
*/
|
|
24
24
|
open?: boolean;
|
|
25
25
|
};
|
|
26
|
-
export declare const PDrilldown: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
26
|
+
export declare const PDrilldown: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
27
27
|
/**
|
|
28
28
|
* Defines which `p-drilldown-item` is shown as open.
|
|
29
29
|
*/
|
|
@@ -31,7 +31,7 @@ export type PFieldsetProps = BaseProps & {
|
|
|
31
31
|
*/
|
|
32
32
|
state?: FieldsetState;
|
|
33
33
|
};
|
|
34
|
-
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
34
|
+
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
35
35
|
/**
|
|
36
36
|
* Sets ARIA attributes.
|
|
37
37
|
*/
|
|
@@ -16,7 +16,7 @@ export type PFlagProps = BaseProps & {
|
|
|
16
16
|
*/
|
|
17
17
|
size?: BreakpointCustomizable<FlagSize>;
|
|
18
18
|
};
|
|
19
|
-
export declare const PFlag: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
19
|
+
export declare const PFlag: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
20
20
|
/**
|
|
21
21
|
* 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.
|
|
22
22
|
*/
|
|
@@ -48,7 +48,7 @@ export type PFlyoutProps = BaseProps & {
|
|
|
48
48
|
*/
|
|
49
49
|
position?: FlyoutPosition;
|
|
50
50
|
};
|
|
51
|
-
export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
51
|
+
export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
52
52
|
/**
|
|
53
53
|
* Sets ARIA attributes.
|
|
54
54
|
*/
|
|
@@ -36,7 +36,7 @@ export type PHeadingProps = BaseProps & {
|
|
|
36
36
|
*/
|
|
37
37
|
weight?: HeadingWeight;
|
|
38
38
|
};
|
|
39
|
-
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
39
|
+
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
40
40
|
/**
|
|
41
41
|
* Text alignment of the heading. Use 'start' for left-aligned text (in LTR), 'center' for centered, 'end' for right-aligned (in LTR), or 'inherit' to adopt the parent's alignment.
|
|
42
42
|
* @default 'start'
|
|
@@ -25,7 +25,7 @@ export type PIconProps = BaseProps & {
|
|
|
25
25
|
*/
|
|
26
26
|
source?: string;
|
|
27
27
|
};
|
|
28
|
-
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
28
|
+
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
29
29
|
/**
|
|
30
30
|
* Sets ARIA attributes.
|
|
31
31
|
*/
|
|
@@ -49,7 +49,7 @@ export type PInlineNotificationProps = BaseProps & {
|
|
|
49
49
|
*/
|
|
50
50
|
state?: InlineNotificationState;
|
|
51
51
|
};
|
|
52
|
-
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
52
|
+
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
53
53
|
/**
|
|
54
54
|
* Action icon of the inline-notification.
|
|
55
55
|
* @default 'arrow-right'
|
|
@@ -92,9 +92,9 @@ export type PInputDateProps = BaseProps & {
|
|
|
92
92
|
* The default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').
|
|
93
93
|
* @default ''
|
|
94
94
|
*/
|
|
95
|
-
value?: string;
|
|
95
|
+
value?: string | null;
|
|
96
96
|
};
|
|
97
|
-
export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
97
|
+
export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
98
98
|
/**
|
|
99
99
|
* Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='bday' for a birthday).
|
|
100
100
|
*/
|
|
@@ -186,7 +186,7 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
186
186
|
* The default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').
|
|
187
187
|
* @default ''
|
|
188
188
|
*/
|
|
189
|
-
value?: string;
|
|
189
|
+
value?: string | null;
|
|
190
190
|
} & {
|
|
191
191
|
children?: import("react").ReactNode | undefined;
|
|
192
192
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -106,9 +106,9 @@ export type PInputEmailProps = BaseProps & {
|
|
|
106
106
|
* The default email address (or comma-separated list of addresses) for the input.
|
|
107
107
|
* @default ''
|
|
108
108
|
*/
|
|
109
|
-
value?: string;
|
|
109
|
+
value?: string | null;
|
|
110
110
|
};
|
|
111
|
-
export declare const PInputEmail: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
111
|
+
export declare const PInputEmail: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
112
112
|
/**
|
|
113
113
|
* Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='email').
|
|
114
114
|
*/
|
|
@@ -214,7 +214,7 @@ export declare const PInputEmail: import("react").ForwardRefExoticComponent<Omit
|
|
|
214
214
|
* The default email address (or comma-separated list of addresses) for the input.
|
|
215
215
|
* @default ''
|
|
216
216
|
*/
|
|
217
|
-
value?: string;
|
|
217
|
+
value?: string | null;
|
|
218
218
|
} & {
|
|
219
219
|
children?: import("react").ReactNode | undefined;
|
|
220
220
|
} & import("react").RefAttributes<HTMLElement>>;
|