@porsche-design-system/components-react 4.7.0 → 4.8.0-rc.1
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 +94 -1
- package/cjs/hooks.cjs +1 -5
- package/cjs/lib/components/checkbox.wrapper.cjs +3 -3
- package/cjs/lib/components/input-date.wrapper.cjs +3 -3
- package/cjs/lib/components/input-email.wrapper.cjs +3 -3
- package/cjs/lib/components/input-month.wrapper.cjs +3 -3
- package/cjs/lib/components/input-number.wrapper.cjs +3 -3
- package/cjs/lib/components/input-password.wrapper.cjs +3 -3
- package/cjs/lib/components/input-tel.wrapper.cjs +3 -3
- package/cjs/lib/components/input-text.wrapper.cjs +3 -3
- package/cjs/lib/components/input-time.wrapper.cjs +3 -3
- package/cjs/lib/components/input-url.wrapper.cjs +3 -3
- package/cjs/lib/components/input-week.wrapper.cjs +3 -3
- package/cjs/lib/components/multi-select.wrapper.cjs +3 -3
- package/cjs/lib/components/select.wrapper.cjs +3 -3
- package/cjs/lib/components/switch.wrapper.cjs +3 -3
- package/cjs/lib/components/textarea.wrapper.cjs +3 -3
- package/esm/hooks.d.ts +0 -3
- package/esm/hooks.mjs +2 -5
- package/esm/lib/components/checkbox.wrapper.d.ts +9 -1
- package/esm/lib/components/checkbox.wrapper.mjs +3 -3
- package/esm/lib/components/input-date.wrapper.d.ts +9 -1
- package/esm/lib/components/input-date.wrapper.mjs +3 -3
- package/esm/lib/components/input-email.wrapper.d.ts +9 -1
- package/esm/lib/components/input-email.wrapper.mjs +3 -3
- package/esm/lib/components/input-month.wrapper.d.ts +9 -1
- package/esm/lib/components/input-month.wrapper.mjs +3 -3
- package/esm/lib/components/input-number.wrapper.d.ts +9 -1
- package/esm/lib/components/input-number.wrapper.mjs +3 -3
- package/esm/lib/components/input-password.wrapper.d.ts +9 -1
- package/esm/lib/components/input-password.wrapper.mjs +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +2 -2
- package/esm/lib/components/input-tel.wrapper.d.ts +9 -1
- package/esm/lib/components/input-tel.wrapper.mjs +3 -3
- package/esm/lib/components/input-text.wrapper.d.ts +9 -1
- package/esm/lib/components/input-text.wrapper.mjs +3 -3
- package/esm/lib/components/input-time.wrapper.d.ts +9 -1
- package/esm/lib/components/input-time.wrapper.mjs +3 -3
- package/esm/lib/components/input-url.wrapper.d.ts +9 -1
- package/esm/lib/components/input-url.wrapper.mjs +3 -3
- package/esm/lib/components/input-week.wrapper.d.ts +9 -1
- package/esm/lib/components/input-week.wrapper.mjs +3 -3
- package/esm/lib/components/link-pure.wrapper.d.ts +2 -2
- package/esm/lib/components/link-tile-product.wrapper.d.ts +2 -2
- package/esm/lib/components/link.wrapper.d.ts +2 -2
- package/esm/lib/components/multi-select.wrapper.d.ts +9 -1
- package/esm/lib/components/multi-select.wrapper.mjs +3 -3
- package/esm/lib/components/select.wrapper.d.ts +9 -1
- package/esm/lib/components/select.wrapper.mjs +3 -3
- package/esm/lib/components/switch.wrapper.d.ts +9 -1
- package/esm/lib/components/switch.wrapper.mjs +3 -3
- package/esm/lib/components/textarea.wrapper.d.ts +9 -1
- package/esm/lib/components/textarea.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +22 -1
- package/package.json +2 -2
- package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
- package/skills/pds-knowledge-react/SKILL.md +14 -5
- package/skills/pds-knowledge-react/references/components/p-carousel/examples/DynamicSlides.tsx +1 -0
- package/skills/pds-knowledge-react/references/components/p-carousel/examples/FocusOnCenterSlide.tsx +1 -0
- package/skills/pds-knowledge-react/references/components/p-carousel/examples/JumpToSlide.tsx +1 -0
- package/skills/pds-knowledge-react/references/components/p-checkbox/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-checkbox/p-checkbox.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-date/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-date/p-input-date.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-email/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-email/p-input-email.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-month/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-month/p-input-month.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-number/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-number/p-input-number.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-password/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-password/p-input-password.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +2 -1
- package/skills/pds-knowledge-react/references/components/p-input-tel/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-tel/p-input-tel.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-text/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-text/p-input-text.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-time/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-time/p-input-time.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-url/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-url/p-input-url.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-input-week/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-input-week/p-input-week.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-link/p-link.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-link-pure/p-link-pure.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-link-tile-product/p-link-tile-product.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-multi-select/accessibility.md +22 -0
- package/skills/pds-knowledge-react/references/components/p-multi-select/p-multi-select.md +14 -2
- package/skills/pds-knowledge-react/references/components/p-pin-code/p-pin-code.md +11 -3
- package/skills/pds-knowledge-react/references/components/p-select/accessibility.md +22 -0
- package/skills/pds-knowledge-react/references/components/p-select/p-select.md +14 -2
- package/skills/pds-knowledge-react/references/components/p-switch/accessibility.md +18 -0
- package/skills/pds-knowledge-react/references/components/p-switch/p-switch.md +12 -0
- package/skills/pds-knowledge-react/references/components/p-textarea/accessibility.md +14 -0
- package/skills/pds-knowledge-react/references/components/p-textarea/p-textarea.md +12 -0
- package/skills/pds-knowledge-react/references/deprecations.md +4 -4
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/dialog.md +230 -0
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/inline.md +193 -0
- package/skills/pds-knowledge-react/references/examples/patterns/footer.md +250 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/overlay.md +152 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/stacked.md +122 -0
- package/skills/pds-knowledge-react/references/examples/patterns/popover/feature-tour.md +243 -0
- package/skills/pds-knowledge-react/references/examples/patterns/popover/local-market-switch.md +323 -0
- package/skills/pds-knowledge-react/references/examples/patterns/popover/priority-navigation.md +191 -0
- package/skills/pds-knowledge-react/references/examples/templates/admin-panel.md +397 -0
- package/skills/pds-knowledge-react/references/examples/templates/landing-page.md +529 -0
- package/skills/pds-knowledge-react/references/examples.md +48 -0
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +18 -105
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +78 -156
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/hooks.cjs +1 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-date.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-month.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-tel.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-time.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-url.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-week.wrapper.cjs +4 -4
- 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/select.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +18 -105
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +78 -150
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +2 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-date.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-month.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-tel.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-time.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-url.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-week.wrapper.mjs +4 -4
- 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/select.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.mjs +4 -4
- 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/drilldown.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +2 -2
- package/ssr/esm/hooks.d.ts +0 -3
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/link.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/select.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/switch.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +9 -1
- package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/link.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +0 -1
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +0 -1
- package/ssr/esm/lib/dsr-components/tabs.d.ts +0 -1
- package/ssr/esm/lib/types.d.ts +22 -1
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { getTextareaCss as getComponentCss$3 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
-
import { descriptionId, setAriaIDREF } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
|
+
import { descriptionId, setAriaIDREF, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
import { Label } from './label.mjs';
|
|
8
8
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
9
9
|
|
|
@@ -38,7 +38,7 @@ class DSRTextarea extends Component {
|
|
|
38
38
|
const textareaDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
|
|
39
39
|
const textareaMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
40
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));
|
|
41
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", 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
|
|
41
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", 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", { ...parseAndGetAriaAttributes(this.props.aria), "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
42
|
? `You have ${this.props.maxLength - this.parsedValue.length} out of ${this.props.maxLength} characters left`
|
|
43
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] }));
|
|
44
44
|
}
|
package/ssr/esm/hooks.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, CheckboxBlurEventDetail, CheckboxChangeEventDetail, CheckboxState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, CheckboxAriaAttribute, BreakpointCustomizable, CheckboxBlurEventDetail, CheckboxChangeEventDetail, CheckboxState } from '../types';
|
|
3
3
|
export type PCheckboxProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native checkbox to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<CheckboxAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Reflects the checkbox's current checked state and allows setting the initial checked value on load.
|
|
6
10
|
* @default false
|
|
@@ -75,6 +79,10 @@ export type PCheckboxProps = BaseProps & {
|
|
|
75
79
|
value?: string;
|
|
76
80
|
};
|
|
77
81
|
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"> & {
|
|
82
|
+
/**
|
|
83
|
+
* Sets additional ARIA attributes on the native checkbox to improve accessibility for screen readers.
|
|
84
|
+
*/
|
|
85
|
+
aria?: SelectedAriaAttributes<CheckboxAriaAttribute>;
|
|
78
86
|
/**
|
|
79
87
|
* Reflects the checkbox's current checked state and allows setting the initial checked value on load.
|
|
80
88
|
* @default false
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputDateBlurEventDetail, InputDateChangeEventDetail, InputDateInputEventDetail, InputDateState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputDateAriaAttribute, BreakpointCustomizable, InputDateBlurEventDetail, InputDateChangeEventDetail, InputDateInputEventDetail, InputDateState } from '../types';
|
|
3
3
|
export type PInputDateProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputDateAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a date autofill hint (e.g. `autocomplete='bday'` for a birthday field).
|
|
6
10
|
*/
|
|
@@ -95,6 +99,10 @@ export type PInputDateProps = BaseProps & {
|
|
|
95
99
|
value?: string | null;
|
|
96
100
|
};
|
|
97
101
|
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"> & {
|
|
102
|
+
/**
|
|
103
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
104
|
+
*/
|
|
105
|
+
aria?: SelectedAriaAttributes<InputDateAriaAttribute>;
|
|
98
106
|
/**
|
|
99
107
|
* Provides the browser with a date autofill hint (e.g. `autocomplete='bday'` for a birthday field).
|
|
100
108
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputEmailBlurEventDetail, InputEmailChangeEventDetail, InputEmailInputEventDetail, InputEmailState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputEmailAriaAttribute, BreakpointCustomizable, InputEmailBlurEventDetail, InputEmailChangeEventDetail, InputEmailInputEventDetail, InputEmailState } from '../types';
|
|
3
3
|
export type PInputEmailProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputEmailAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='email'`).
|
|
6
10
|
*/
|
|
@@ -109,6 +113,10 @@ export type PInputEmailProps = BaseProps & {
|
|
|
109
113
|
value?: string | null;
|
|
110
114
|
};
|
|
111
115
|
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"> & {
|
|
116
|
+
/**
|
|
117
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
118
|
+
*/
|
|
119
|
+
aria?: SelectedAriaAttributes<InputEmailAriaAttribute>;
|
|
112
120
|
/**
|
|
113
121
|
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='email'`).
|
|
114
122
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputMonthBlurEventDetail, InputMonthChangeEventDetail, InputMonthInputEventDetail, InputMonthState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputMonthAriaAttribute, BreakpointCustomizable, InputMonthBlurEventDetail, InputMonthChangeEventDetail, InputMonthInputEventDetail, InputMonthState } from '../types';
|
|
3
3
|
export type PInputMonthProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputMonthAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a month/year autofill hint.
|
|
6
10
|
*/
|
|
@@ -95,6 +99,10 @@ export type PInputMonthProps = BaseProps & {
|
|
|
95
99
|
value?: string | null;
|
|
96
100
|
};
|
|
97
101
|
export declare const PInputMonth: 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"> & {
|
|
102
|
+
/**
|
|
103
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
104
|
+
*/
|
|
105
|
+
aria?: SelectedAriaAttributes<InputMonthAriaAttribute>;
|
|
98
106
|
/**
|
|
99
107
|
* Provides the browser with a month/year autofill hint.
|
|
100
108
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputNumberBlurEventDetail, InputNumberChangeEventDetail, InputNumberInputEventDetail, InputNumberState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputNumberAriaAttribute, BreakpointCustomizable, InputNumberBlurEventDetail, InputNumberChangeEventDetail, InputNumberInputEventDetail, InputNumberState } from '../types';
|
|
3
3
|
export type PInputNumberProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputNumberAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='postal-code'`).
|
|
6
10
|
*/
|
|
@@ -105,6 +109,10 @@ export type PInputNumberProps = BaseProps & {
|
|
|
105
109
|
value?: string | number | null;
|
|
106
110
|
};
|
|
107
111
|
export declare const PInputNumber: 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
|
+
/**
|
|
113
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
114
|
+
*/
|
|
115
|
+
aria?: SelectedAriaAttributes<InputNumberAriaAttribute>;
|
|
108
116
|
/**
|
|
109
117
|
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='postal-code'`).
|
|
110
118
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputPasswordBlurEventDetail, InputPasswordChangeEventDetail, InputPasswordInputEventDetail, InputPasswordState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputPasswordAriaAttribute, BreakpointCustomizable, InputPasswordBlurEventDetail, InputPasswordChangeEventDetail, InputPasswordInputEventDetail, InputPasswordState } from '../types';
|
|
3
3
|
export type PInputPasswordProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputPasswordAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a password autofill hint (e.g. `autocomplete='current-password'` or `autocomplete='new-password'`).
|
|
6
10
|
*/
|
|
@@ -100,6 +104,10 @@ export type PInputPasswordProps = BaseProps & {
|
|
|
100
104
|
value?: string | null;
|
|
101
105
|
};
|
|
102
106
|
export declare const PInputPassword: 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"> & {
|
|
107
|
+
/**
|
|
108
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
109
|
+
*/
|
|
110
|
+
aria?: SelectedAriaAttributes<InputPasswordAriaAttribute>;
|
|
103
111
|
/**
|
|
104
112
|
* Provides the browser with a password autofill hint (e.g. `autocomplete='current-password'` or `autocomplete='new-password'`).
|
|
105
113
|
*/
|
|
@@ -2,7 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, InputSearchAriaAttribute, BreakpointCustomizable, InputSearchBlurEventDetail, InputSearchChangeEventDetail, InputSearchInputEventDetail, InputSearchState } from '../types';
|
|
3
3
|
export type PInputSearchProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`).
|
|
5
|
+
* Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`) and extra labelling (`aria-label`, `aria-description`).
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<InputSearchAriaAttribute>;
|
|
8
8
|
/**
|
|
@@ -110,7 +110,7 @@ export type PInputSearchProps = BaseProps & {
|
|
|
110
110
|
};
|
|
111
111
|
export declare const PInputSearch: 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
|
-
* Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`).
|
|
113
|
+
* Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`) and extra labelling (`aria-label`, `aria-description`).
|
|
114
114
|
*/
|
|
115
115
|
aria?: SelectedAriaAttributes<InputSearchAriaAttribute>;
|
|
116
116
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputTelBlurEventDetail, InputTelChangeEventDetail, InputTelInputEventDetail, InputTelState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputTelAriaAttribute, BreakpointCustomizable, InputTelBlurEventDetail, InputTelChangeEventDetail, InputTelInputEventDetail, InputTelState } from '../types';
|
|
3
3
|
export type PInputTelProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputTelAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a phone number autofill hint (e.g. `autocomplete='tel'`).
|
|
6
10
|
*/
|
|
@@ -104,6 +108,10 @@ export type PInputTelProps = BaseProps & {
|
|
|
104
108
|
value?: string | null;
|
|
105
109
|
};
|
|
106
110
|
export declare const PInputTel: 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"> & {
|
|
111
|
+
/**
|
|
112
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
113
|
+
*/
|
|
114
|
+
aria?: SelectedAriaAttributes<InputTelAriaAttribute>;
|
|
107
115
|
/**
|
|
108
116
|
* Provides the browser with a phone number autofill hint (e.g. `autocomplete='tel'`).
|
|
109
117
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputTextBlurEventDetail, InputTextChangeEventDetail, InputTextInputEventDetail, InputTextState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputTextAriaAttribute, BreakpointCustomizable, InputTextBlurEventDetail, InputTextChangeEventDetail, InputTextInputEventDetail, InputTextState } from '../types';
|
|
3
3
|
export type PInputTextProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputTextAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='name'`).
|
|
6
10
|
*/
|
|
@@ -104,6 +108,10 @@ export type PInputTextProps = BaseProps & {
|
|
|
104
108
|
value?: string | number | null;
|
|
105
109
|
};
|
|
106
110
|
export declare const PInputText: 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"> & {
|
|
111
|
+
/**
|
|
112
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
113
|
+
*/
|
|
114
|
+
aria?: SelectedAriaAttributes<InputTextAriaAttribute>;
|
|
107
115
|
/**
|
|
108
116
|
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='name'`).
|
|
109
117
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputTimeBlurEventDetail, InputTimeChangeEventDetail, InputTimeInputEventDetail, InputTimeState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputTimeAriaAttribute, BreakpointCustomizable, InputTimeBlurEventDetail, InputTimeChangeEventDetail, InputTimeInputEventDetail, InputTimeState } from '../types';
|
|
3
3
|
export type PInputTimeProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputTimeAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a time autofill hint.
|
|
6
10
|
*/
|
|
@@ -95,6 +99,10 @@ export type PInputTimeProps = BaseProps & {
|
|
|
95
99
|
value?: string | null;
|
|
96
100
|
};
|
|
97
101
|
export declare const PInputTime: 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"> & {
|
|
102
|
+
/**
|
|
103
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
104
|
+
*/
|
|
105
|
+
aria?: SelectedAriaAttributes<InputTimeAriaAttribute>;
|
|
98
106
|
/**
|
|
99
107
|
* Provides the browser with a time autofill hint.
|
|
100
108
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputUrlBlurEventDetail, InputUrlChangeEventDetail, InputUrlInputEventDetail, InputUrlState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputUrlAriaAttribute, BreakpointCustomizable, InputUrlBlurEventDetail, InputUrlChangeEventDetail, InputUrlInputEventDetail, InputUrlState } from '../types';
|
|
3
3
|
export type PInputUrlProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputUrlAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a URL autofill hint (e.g. `autocomplete='url'`).
|
|
6
10
|
*/
|
|
@@ -104,6 +108,10 @@ export type PInputUrlProps = BaseProps & {
|
|
|
104
108
|
value?: string | null;
|
|
105
109
|
};
|
|
106
110
|
export declare const PInputUrl: 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"> & {
|
|
111
|
+
/**
|
|
112
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
113
|
+
*/
|
|
114
|
+
aria?: SelectedAriaAttributes<InputUrlAriaAttribute>;
|
|
107
115
|
/**
|
|
108
116
|
* Provides the browser with a URL autofill hint (e.g. `autocomplete='url'`).
|
|
109
117
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, InputWeekBlurEventDetail, InputWeekChangeEventDetail, InputWeekInputEventDetail, InputWeekState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, InputWeekAriaAttribute, BreakpointCustomizable, InputWeekBlurEventDetail, InputWeekChangeEventDetail, InputWeekInputEventDetail, InputWeekState } from '../types';
|
|
3
3
|
export type PInputWeekProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<InputWeekAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a week/year autofill hint.
|
|
6
10
|
*/
|
|
@@ -95,6 +99,10 @@ export type PInputWeekProps = BaseProps & {
|
|
|
95
99
|
value?: string | null;
|
|
96
100
|
};
|
|
97
101
|
export declare const PInputWeek: 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"> & {
|
|
102
|
+
/**
|
|
103
|
+
* Sets additional ARIA attributes on the native input to improve accessibility for screen readers.
|
|
104
|
+
*/
|
|
105
|
+
aria?: SelectedAriaAttributes<InputWeekAriaAttribute>;
|
|
98
106
|
/**
|
|
99
107
|
* Provides the browser with a week/year autofill hint.
|
|
100
108
|
*/
|
|
@@ -30,7 +30,7 @@ export type PLinkPureProps = BaseProps & {
|
|
|
30
30
|
*/
|
|
31
31
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
33
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text.
|
|
34
34
|
*/
|
|
35
35
|
href?: string;
|
|
36
36
|
/**
|
|
@@ -97,7 +97,7 @@ export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
97
97
|
*/
|
|
98
98
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
99
99
|
/**
|
|
100
|
-
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
100
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text.
|
|
101
101
|
*/
|
|
102
102
|
href?: string;
|
|
103
103
|
/**
|
|
@@ -15,7 +15,7 @@ export type PLinkTileProductProps = BaseProps & {
|
|
|
15
15
|
*/
|
|
16
16
|
heading: string;
|
|
17
17
|
/**
|
|
18
|
-
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element.
|
|
18
|
+
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element, which is not rendered when `href` is set.
|
|
19
19
|
*/
|
|
20
20
|
href?: string;
|
|
21
21
|
/**
|
|
@@ -65,7 +65,7 @@ export declare const PLinkTileProduct: import("react").ForwardRefExoticComponent
|
|
|
65
65
|
*/
|
|
66
66
|
heading: string;
|
|
67
67
|
/**
|
|
68
|
-
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element.
|
|
68
|
+
* Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element, which is not rendered when `href` is set.
|
|
69
69
|
*/
|
|
70
70
|
href?: string;
|
|
71
71
|
/**
|
|
@@ -20,7 +20,7 @@ export type PLinkProps = BaseProps & {
|
|
|
20
20
|
*/
|
|
21
21
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
22
22
|
/**
|
|
23
|
-
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
23
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text.
|
|
24
24
|
*/
|
|
25
25
|
href?: string;
|
|
26
26
|
/**
|
|
@@ -67,7 +67,7 @@ export declare const PLink: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
67
67
|
*/
|
|
68
68
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
69
69
|
/**
|
|
70
|
-
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element.
|
|
70
|
+
* When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text.
|
|
71
71
|
*/
|
|
72
72
|
href?: string;
|
|
73
73
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { MultiSelectDropdownDirection, BreakpointCustomizable, MultiSelectChangeEventDetail, MultiSelectToggleEventDetail, MultiSelectState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, MultiSelectAriaAttribute, MultiSelectDropdownDirection, BreakpointCustomizable, MultiSelectChangeEventDetail, MultiSelectToggleEventDetail, MultiSelectState } from '../types';
|
|
3
3
|
export type PMultiSelectProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the combobox to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<MultiSelectAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Reduces the control height and padding for a more compact layout.
|
|
6
10
|
* @default false
|
|
@@ -73,6 +77,10 @@ export type PMultiSelectProps = BaseProps & {
|
|
|
73
77
|
value?: string[] | number[] | null;
|
|
74
78
|
};
|
|
75
79
|
export declare const PMultiSelect: 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"> & {
|
|
80
|
+
/**
|
|
81
|
+
* Sets additional ARIA attributes on the combobox to improve accessibility for screen readers.
|
|
82
|
+
*/
|
|
83
|
+
aria?: SelectedAriaAttributes<MultiSelectAriaAttribute>;
|
|
76
84
|
/**
|
|
77
85
|
* Reduces the control height and padding for a more compact layout.
|
|
78
86
|
* @default false
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectDropdownDirection, BreakpointCustomizable, SelectChangeEventDetail, SelectToggleEventDetail, SelectState } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, SelectAriaAttribute, SelectDropdownDirection, BreakpointCustomizable, SelectChangeEventDetail, SelectToggleEventDetail, SelectState } from '../types';
|
|
3
3
|
export type PSelectProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the combobox to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<SelectAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Reduces the control height and padding for use in dense layouts where vertical space is limited.
|
|
6
10
|
* @default false
|
|
@@ -77,6 +81,10 @@ export type PSelectProps = BaseProps & {
|
|
|
77
81
|
value?: string | number | null;
|
|
78
82
|
};
|
|
79
83
|
export declare const PSelect: 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"> & {
|
|
84
|
+
/**
|
|
85
|
+
* Sets additional ARIA attributes on the combobox to improve accessibility for screen readers.
|
|
86
|
+
*/
|
|
87
|
+
aria?: SelectedAriaAttributes<SelectAriaAttribute>;
|
|
80
88
|
/**
|
|
81
89
|
* Reduces the control height and padding for use in dense layouts where vertical space is limited.
|
|
82
90
|
* @default false
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, SwitchAlignLabel, SwitchUpdateEventDetail } from '../types';
|
|
2
|
+
import type { BreakpointCustomizable, SwitchAlignLabel, SelectedAriaAttributes, SwitchAriaAttribute, SwitchUpdateEventDetail } from '../types';
|
|
3
3
|
export type PSwitchProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Sets the position of the slotted label relative to the switch toggle, either before (`start`) or after (`end`) it. Supports responsive breakpoint values.
|
|
6
6
|
* @default 'end'
|
|
7
7
|
*/
|
|
8
8
|
alignLabel?: BreakpointCustomizable<SwitchAlignLabel>;
|
|
9
|
+
/**
|
|
10
|
+
* Sets additional ARIA attributes on the switch to improve accessibility for screen readers.
|
|
11
|
+
*/
|
|
12
|
+
aria?: SelectedAriaAttributes<SwitchAriaAttribute>;
|
|
9
13
|
/**
|
|
10
14
|
* Reflects the switch's current on/off state and allows setting the initial checked value when the component first renders.
|
|
11
15
|
* @default false
|
|
@@ -47,6 +51,10 @@ export declare const PSwitch: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
47
51
|
* @default 'end'
|
|
48
52
|
*/
|
|
49
53
|
alignLabel?: BreakpointCustomizable<SwitchAlignLabel>;
|
|
54
|
+
/**
|
|
55
|
+
* Sets additional ARIA attributes on the switch to improve accessibility for screen readers.
|
|
56
|
+
*/
|
|
57
|
+
aria?: SelectedAriaAttributes<SwitchAriaAttribute>;
|
|
50
58
|
/**
|
|
51
59
|
* Reflects the switch's current on/off state and allows setting the initial checked value when the component first renders.
|
|
52
60
|
* @default false
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { BreakpointCustomizable, TextareaBlurEventDetail, TextareaChangeEventDetail, TextareaInputEventDetail, TextareaResize, TextareaState, TextareaWrap } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, TextareaAriaAttribute, BreakpointCustomizable, TextareaBlurEventDetail, TextareaChangeEventDetail, TextareaInputEventDetail, TextareaResize, TextareaState, TextareaWrap } from '../types';
|
|
3
3
|
export type PTextareaProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Sets additional ARIA attributes on the native textarea to improve accessibility for screen readers.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<TextareaAriaAttribute>;
|
|
4
8
|
/**
|
|
5
9
|
* Provides the browser with a hint to enable text autofill suggestions for the textarea (e.g. `autocomplete='on'`).
|
|
6
10
|
*/
|
|
@@ -114,6 +118,10 @@ export type PTextareaProps = BaseProps & {
|
|
|
114
118
|
wrap?: TextareaWrap;
|
|
115
119
|
};
|
|
116
120
|
export declare const PTextarea: 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"> & {
|
|
121
|
+
/**
|
|
122
|
+
* Sets additional ARIA attributes on the native textarea to improve accessibility for screen readers.
|
|
123
|
+
*/
|
|
124
|
+
aria?: SelectedAriaAttributes<TextareaAriaAttribute>;
|
|
117
125
|
/**
|
|
118
126
|
* Provides the browser with a hint to enable text autofill suggestions for the textarea (e.g. `autocomplete='on'`).
|
|
119
127
|
*/
|
|
@@ -18,6 +18,7 @@ type LabelProps = {
|
|
|
18
18
|
* Clicks on the `label-after` slot are also stopped so they do not trigger host handlers (e.g. radio selection).
|
|
19
19
|
*/
|
|
20
20
|
stopClickPropagation?: boolean;
|
|
21
|
+
onClick?: (event: MouseEvent) => void;
|
|
21
22
|
};
|
|
22
23
|
export declare const Label: FC<LabelProps>;
|
|
23
24
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* @slot {"name": "", "description": "Default slot to render the link label." }
|
|
4
|
+
* @slot {"name": "", "description": "Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the `href` prop, but not in combination with it." }
|
|
5
5
|
*/
|
|
6
6
|
export declare class DSRLinkPure extends Component<any> {
|
|
7
7
|
host: HTMLElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* @slot {"name": "anchor", "description": "Slotted anchor link which can be used instead of the `href` prop. Ensure the named slot is directly on the anchor element, without nesting." }
|
|
4
|
+
* @slot {"name": "anchor", "description": "Slotted anchor link which can be used instead of the `href` prop. It is not rendered when `href` is set. Ensure the named slot is directly on the anchor element, without nesting." }
|
|
5
5
|
* @slot {"name": "header", "description": "Shows special features about the product like novelty or exclusivity. Although you can pass in anything, it is recommended to use the `p-tag` component." }
|
|
6
6
|
* @slot {"name": "", "description": "Default slot for the img or picture tag." }
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* @slot {"name": "", "description": "Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the href prop." }
|
|
4
|
+
* @slot {"name": "", "description": "Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the `href` prop, but not in combination with it." }
|
|
5
5
|
*/
|
|
6
6
|
export declare class DSRLink extends Component<any> {
|
|
7
7
|
host: HTMLElement;
|