@porsche-design-system/components-react 4.2.0-rc.5 → 4.3.0-rc.0
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 +16 -0
- package/cjs/lib/components/tabs-bar.wrapper.cjs +3 -3
- package/cjs/lib/components/tabs.wrapper.cjs +3 -3
- package/emotion/package.json +1 -8
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/esm/lib/components/button.wrapper.d.ts +24 -24
- package/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +10 -10
- package/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/esm/lib/components/flyout.wrapper.d.ts +20 -20
- package/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/esm/lib/components/link.wrapper.d.ts +20 -20
- package/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +30 -30
- package/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/esm/lib/components/table.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-bar.wrapper.d.ts +19 -11
- package/esm/lib/components/tabs-bar.wrapper.mjs +3 -3
- package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +19 -11
- package/esm/lib/components/tabs.wrapper.mjs +3 -3
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/esm/lib/types.d.ts +13 -1
- package/package.json +6 -6
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +179 -431
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +40 -71
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.cjs +4 -4
- 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/banner.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- 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-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.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 +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -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/sheet.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +7 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +2 -2
- 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 +179 -431
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +40 -71
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.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/modal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +19 -11
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +19 -11
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
- package/ssr/esm/lib/types.d.ts +13 -1
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs
CHANGED
|
@@ -19,7 +19,7 @@ class DSRScroller extends Component {
|
|
|
19
19
|
render() {
|
|
20
20
|
splitChildren(this.props.children);
|
|
21
21
|
const style = minifyCss(getComponentCss$s(this.props.isIndicatorPrevVisible, this.props.isIndicatorNextVisible, this.props.sticky, this.props.scrollbar, this.props.compact));
|
|
22
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("span", { className: "prev" }), jsx("span", { className: "next" }), jsxs("div", { className: "scroll",
|
|
22
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("span", { className: "prev" }), jsx("span", { className: "next" }), jsxs("div", { className: "scroll", ...parseAndGetAriaAttributes(this.props.aria), tabIndex: this.props.isIndicatorPrevVisible || this.props.isIndicatorNextVisible ? 0 : null, children: [jsx("span", { className: "sentinel" }), jsx("slot", {}), jsx("span", { className: "sentinel" })] })] })] }), this.props.children] }));
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -13,7 +13,7 @@ import { PIcon } from '../components/icon.wrapper.mjs';
|
|
|
13
13
|
class DSRSegmentedControlItem extends Component {
|
|
14
14
|
host;
|
|
15
15
|
render() {
|
|
16
|
-
const { children
|
|
16
|
+
const { children} = splitChildren(this.props.children);
|
|
17
17
|
// this additional validation is still needed because undefined is allowed with current propTypes
|
|
18
18
|
const hasIcon = !!this.props.icon || !!this.props.iconSource;
|
|
19
19
|
const hasSlottedContent = !!children.length;
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getSegmentedControlCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { descriptionId,
|
|
7
|
+
import { descriptionId, labelId, setAriaIDREF, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { Label } from './label.mjs';
|
|
9
9
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
10
10
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -61,7 +61,7 @@ class DSRSelect extends Component {
|
|
|
61
61
|
// triggers value watcher which syncs form value
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
const {
|
|
64
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
65
65
|
const hasCustomFilterSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'filter').length > 0;
|
|
66
66
|
const hasCustomSelectedSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'selected').length > 0;
|
|
67
67
|
const buttonId = 'button';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs
CHANGED
|
@@ -24,7 +24,7 @@ class DSRSheet extends Component {
|
|
|
24
24
|
hide: () => this.props.dialog?.close(),
|
|
25
25
|
});
|
|
26
26
|
render() {
|
|
27
|
-
const {
|
|
27
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
28
28
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
29
29
|
if (this.props.open) ;
|
|
30
30
|
const style = minifyCss(getComponentCss$n(this.props.open, this.props.background, this.props.dismissButton));
|
|
@@ -16,7 +16,7 @@ class DSRStepperHorizontal extends Component {
|
|
|
16
16
|
slot;
|
|
17
17
|
resizeObserver;
|
|
18
18
|
render() {
|
|
19
|
-
const { children,
|
|
19
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
20
20
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
21
21
|
? { ...child, props: { ...child.props, theme: this.props.theme } }
|
|
22
22
|
: child);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
|
13
13
|
class DSRTable extends Component {
|
|
14
14
|
host;
|
|
15
15
|
render() {
|
|
16
|
-
const {
|
|
16
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
17
17
|
const hasSlottedCaption = namedSlotChildren.filter(({ props: { slot } }) => slot === 'caption').length > 0;
|
|
18
18
|
const captionId = 'caption';
|
|
19
19
|
const tableAttr = this.props.caption
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getTabsBarCss as getComponentCss$b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { getSanitizedActiveTabIndex } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
|
+
import { getSanitizedActiveTabIndex, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -22,9 +22,14 @@ class DSRTabsBar extends Component {
|
|
|
22
22
|
isTabList;
|
|
23
23
|
resizeObserver;
|
|
24
24
|
render() {
|
|
25
|
-
const { children
|
|
25
|
+
const { children} = splitChildren(this.props.children);
|
|
26
26
|
const style = minifyCss(getComponentCss$b(this.props.background, this.props.size, this.props.compact, getSanitizedActiveTabIndex(this.props.activeTabIndex, children)));
|
|
27
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", compact: this.props.compact, ...(this.props.isTabList && {
|
|
27
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", compact: this.props.compact, ...(this.props.isTabList && {
|
|
28
|
+
aria: {
|
|
29
|
+
role: 'tablist',
|
|
30
|
+
...parseAndGetAriaAttributes(this.props.aria),
|
|
31
|
+
},
|
|
32
|
+
}), children: [jsx("slot", {}), jsx("span", { className: "bar" })] })] }), this.props.children] }));
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
|
|
@@ -16,12 +16,12 @@ class DSRTabs extends Component {
|
|
|
16
16
|
tabsItems = [];
|
|
17
17
|
slot;
|
|
18
18
|
render() {
|
|
19
|
-
const { children,
|
|
19
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
20
20
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
21
21
|
? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
|
|
22
22
|
: child);
|
|
23
23
|
const style = minifyCss(getComponentCss$9());
|
|
24
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PTabsBar, { className: "root", size: this.props.size, background: this.props.background, compact: this.props.compact, activeTabIndex: this.props.activeTabIndex, children: otherChildren.map((tab, index) => (jsx("button", { type: "button", children: typeof tab === 'object' && 'props' in tab && tab.props.label }, index))) }), jsx("slot", {})] })] }), manipulatedChildren] }));
|
|
24
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PTabsBar, { className: "root", size: this.props.size, background: this.props.background, compact: this.props.compact, activeTabIndex: this.props.activeTabIndex, aria: this.props.aria, children: otherChildren.map((tab, index) => (jsx("button", { type: "button", children: typeof tab === 'object' && 'props' in tab && tab.props.label }, index))) }), jsx("slot", {})] })] }), manipulatedChildren] }));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs
CHANGED
|
@@ -33,7 +33,7 @@ class DSRTextarea extends Component {
|
|
|
33
33
|
formStateRestoreCallback() {
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
const {
|
|
36
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
37
37
|
const id = 'textarea';
|
|
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;
|
|
@@ -2,17 +2,17 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { AccordionAlignMarker, AccordionBackground, AccordionHeadingTag, BreakpointCustomizable, AccordionUpdateEventDetail, AccordionSize } from '../types';
|
|
3
3
|
export type PAccordionProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Positions the expand/collapse marker icon at the start or end of the summary section.
|
|
6
6
|
* @default 'end'
|
|
7
7
|
*/
|
|
8
8
|
alignMarker?: AccordionAlignMarker;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
|
|
11
11
|
* @default 'none'
|
|
12
12
|
*/
|
|
13
13
|
background?: AccordionBackground;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
|
|
16
16
|
*/
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
/**
|
|
@@ -30,7 +30,7 @@ export type PAccordionProps = BaseProps & {
|
|
|
30
30
|
*/
|
|
31
31
|
indent?: BreakpointCustomizable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* Emitted when the accordion state
|
|
33
|
+
* Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
|
|
34
34
|
*/
|
|
35
35
|
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
36
36
|
/**
|
|
@@ -49,17 +49,17 @@ export type PAccordionProps = BaseProps & {
|
|
|
49
49
|
};
|
|
50
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"> & {
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Positions the expand/collapse marker icon at the start or end of the summary section.
|
|
53
53
|
* @default 'end'
|
|
54
54
|
*/
|
|
55
55
|
alignMarker?: AccordionAlignMarker;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
|
|
58
58
|
* @default 'none'
|
|
59
59
|
*/
|
|
60
60
|
background?: AccordionBackground;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
|
|
63
63
|
*/
|
|
64
64
|
compact?: boolean;
|
|
65
65
|
/**
|
|
@@ -77,7 +77,7 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
77
77
|
*/
|
|
78
78
|
indent?: BreakpointCustomizable<boolean>;
|
|
79
79
|
/**
|
|
80
|
-
* Emitted when the accordion state
|
|
80
|
+
* Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
|
|
81
81
|
*/
|
|
82
82
|
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
83
83
|
/**
|
|
@@ -2,82 +2,82 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BannerHeadingTag, BreakpointCustomizable, BannerPosition, BannerState } from '../types';
|
|
3
3
|
export type PBannerProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets the description text
|
|
5
|
+
* Sets the supporting description text shown below the heading.
|
|
6
6
|
* @default ''
|
|
7
7
|
*/
|
|
8
8
|
description?: string;
|
|
9
9
|
/**
|
|
10
|
-
* Shows a dismiss button
|
|
10
|
+
* Shows a dismiss button so the user can manually close the banner.
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
dismissButton?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Sets the heading text of the banner.
|
|
15
|
+
* Sets the heading text displayed at the top of the banner.
|
|
16
16
|
* @default ''
|
|
17
17
|
*/
|
|
18
18
|
heading?: string;
|
|
19
19
|
/**
|
|
20
|
-
* Sets the heading tag
|
|
20
|
+
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
|
|
21
21
|
* @default 'h5'
|
|
22
22
|
*/
|
|
23
23
|
headingTag?: BannerHeadingTag;
|
|
24
24
|
/**
|
|
25
|
-
* Emitted when the banner
|
|
25
|
+
* Emitted when the user closes the banner via the dismiss button or Escape key.
|
|
26
26
|
*/
|
|
27
27
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
28
28
|
/**
|
|
29
|
-
* Controls whether the banner is
|
|
29
|
+
* Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
open: boolean;
|
|
33
33
|
/**
|
|
34
|
-
* Sets the position of the banner.
|
|
34
|
+
* Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
|
|
35
35
|
* @default { base: 'bottom', s: 'top' }
|
|
36
36
|
*/
|
|
37
37
|
position?: BreakpointCustomizable<BannerPosition>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
40
40
|
* @default 'info'
|
|
41
41
|
*/
|
|
42
42
|
state?: BannerState;
|
|
43
43
|
};
|
|
44
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
|
-
* Sets the description text
|
|
46
|
+
* Sets the supporting description text shown below the heading.
|
|
47
47
|
* @default ''
|
|
48
48
|
*/
|
|
49
49
|
description?: string;
|
|
50
50
|
/**
|
|
51
|
-
* Shows a dismiss button
|
|
51
|
+
* Shows a dismiss button so the user can manually close the banner.
|
|
52
52
|
* @default true
|
|
53
53
|
*/
|
|
54
54
|
dismissButton?: boolean;
|
|
55
55
|
/**
|
|
56
|
-
* Sets the heading text of the banner.
|
|
56
|
+
* Sets the heading text displayed at the top of the banner.
|
|
57
57
|
* @default ''
|
|
58
58
|
*/
|
|
59
59
|
heading?: string;
|
|
60
60
|
/**
|
|
61
|
-
* Sets the heading tag
|
|
61
|
+
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
|
|
62
62
|
* @default 'h5'
|
|
63
63
|
*/
|
|
64
64
|
headingTag?: BannerHeadingTag;
|
|
65
65
|
/**
|
|
66
|
-
* Emitted when the banner
|
|
66
|
+
* Emitted when the user closes the banner via the dismiss button or Escape key.
|
|
67
67
|
*/
|
|
68
68
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
69
69
|
/**
|
|
70
|
-
* Controls whether the banner is
|
|
70
|
+
* Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
open: boolean;
|
|
74
74
|
/**
|
|
75
|
-
* Sets the position of the banner.
|
|
75
|
+
* Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
|
|
76
76
|
* @default { base: 'bottom', s: 'top' }
|
|
77
77
|
*/
|
|
78
78
|
position?: BreakpointCustomizable<BannerPosition>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
81
81
|
* @default 'info'
|
|
82
82
|
*/
|
|
83
83
|
state?: BannerState;
|
|
@@ -2,155 +2,155 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureColor, ButtonPureIcon, ButtonPureSize, ButtonPureType } from '../types';
|
|
3
3
|
export type PButtonPureProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Visually marks the button as the currently active or selected item, useful for navigation and toggle patterns.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
active?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
11
11
|
* @default 'end'
|
|
12
12
|
*/
|
|
13
13
|
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
14
14
|
/**
|
|
15
|
-
* Sets ARIA attributes.
|
|
15
|
+
* Sets ARIA attributes on the button to improve accessibility for screen readers.
|
|
16
16
|
*/
|
|
17
17
|
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the foreground color of the button's icon and label text.
|
|
20
20
|
* @default 'primary'
|
|
21
21
|
*/
|
|
22
22
|
color?: ButtonPureColor;
|
|
23
23
|
/**
|
|
24
|
-
* Disables the button
|
|
24
|
+
* Disables the button, preventing all interaction and blocking events.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
|
|
30
30
|
*/
|
|
31
31
|
form?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the icon displayed next to the label.
|
|
39
39
|
* @default 'arrow-right'
|
|
40
40
|
*/
|
|
41
41
|
icon?: ButtonPureIcon;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
44
44
|
*/
|
|
45
45
|
iconSource?: string;
|
|
46
46
|
/**
|
|
47
|
-
* Disables the button and
|
|
47
|
+
* Disables the button and replaces its icon with a loading spinner to indicate an ongoing operation.
|
|
48
48
|
* @default false
|
|
49
49
|
*/
|
|
50
50
|
loading?: boolean;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Sets the name submitted with the form data when this button triggers form submission.
|
|
53
53
|
*/
|
|
54
54
|
name?: string;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Sets the font size of the button label. Supports responsive breakpoint values.
|
|
57
57
|
* @default 'sm'
|
|
58
58
|
*/
|
|
59
59
|
size?: BreakpointCustomizable<ButtonPureSize>;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
stretch?: BreakpointCustomizable<boolean>;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
67
67
|
* @default 'submit'
|
|
68
68
|
*/
|
|
69
69
|
type?: ButtonPureType;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Adds a text underline to the label to reinforce the button's link-like appearance.
|
|
72
72
|
* @default false
|
|
73
73
|
*/
|
|
74
74
|
underline?: boolean;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
|
|
77
77
|
*/
|
|
78
78
|
value?: string;
|
|
79
79
|
};
|
|
80
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
|
+
* Visually marks the button as the currently active or selected item, useful for navigation and toggle patterns.
|
|
83
83
|
* @default false
|
|
84
84
|
*/
|
|
85
85
|
active?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Sets the label position relative to the icon — `start` places it before, `end` places it after. Supports responsive breakpoint values.
|
|
88
88
|
* @default 'end'
|
|
89
89
|
*/
|
|
90
90
|
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
91
91
|
/**
|
|
92
|
-
* Sets ARIA attributes.
|
|
92
|
+
* Sets ARIA attributes on the button to improve accessibility for screen readers.
|
|
93
93
|
*/
|
|
94
94
|
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Sets the foreground color of the button's icon and label text.
|
|
97
97
|
* @default 'primary'
|
|
98
98
|
*/
|
|
99
99
|
color?: ButtonPureColor;
|
|
100
100
|
/**
|
|
101
|
-
* Disables the button
|
|
101
|
+
* Disables the button, preventing all interaction and blocking events.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
disabled?: boolean;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Associates the button with a form element by its ID, so it can submit or reset that form even when placed outside of it.
|
|
107
107
|
*/
|
|
108
108
|
form?: string;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
111
111
|
* @default false
|
|
112
112
|
*/
|
|
113
113
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Sets the icon displayed next to the label.
|
|
116
116
|
* @default 'arrow-right'
|
|
117
117
|
*/
|
|
118
118
|
icon?: ButtonPureIcon;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Sets a path to a custom SVG icon, used instead of the built-in icon set.
|
|
121
121
|
*/
|
|
122
122
|
iconSource?: string;
|
|
123
123
|
/**
|
|
124
|
-
* Disables the button and
|
|
124
|
+
* Disables the button and replaces its icon with a loading spinner to indicate an ongoing operation.
|
|
125
125
|
* @default false
|
|
126
126
|
*/
|
|
127
127
|
loading?: boolean;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Sets the name submitted with the form data when this button triggers form submission.
|
|
130
130
|
*/
|
|
131
131
|
name?: string;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Sets the font size of the button label. Supports responsive breakpoint values.
|
|
134
134
|
* @default 'sm'
|
|
135
135
|
*/
|
|
136
136
|
size?: BreakpointCustomizable<ButtonPureSize>;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* Expands the space between icon and label to fill the full container width. Supports responsive breakpoint values.
|
|
139
139
|
* @default false
|
|
140
140
|
*/
|
|
141
141
|
stretch?: BreakpointCustomizable<boolean>;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Sets the button's HTML type — `submit` sends the form, `reset` clears it, `button` performs no default action.
|
|
144
144
|
* @default 'submit'
|
|
145
145
|
*/
|
|
146
146
|
type?: ButtonPureType;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Adds a text underline to the label to reinforce the button's link-like appearance.
|
|
149
149
|
* @default false
|
|
150
150
|
*/
|
|
151
151
|
underline?: boolean;
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* Sets the value submitted with the form data when this button triggers form submission, paired with `name`.
|
|
154
154
|
*/
|
|
155
155
|
value?: string;
|
|
156
156
|
} & {
|