@porsche-design-system/components-react 4.0.0-beta.2 → 4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +293 -1
- package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/display.wrapper.cjs +1 -0
- package/cjs/lib/components/flag.wrapper.cjs +1 -1
- package/cjs/lib/components/heading.wrapper.cjs +3 -3
- package/cjs/lib/components/icon.wrapper.cjs +1 -1
- package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/spinner.wrapper.cjs +3 -3
- package/cjs/lib/components/text.wrapper.cjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
- package/esm/lib/components/button-pure.wrapper.mjs +3 -3
- package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
- package/esm/lib/components/button.wrapper.d.ts +6 -6
- package/esm/lib/components/carousel.wrapper.d.ts +10 -10
- package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +1 -0
- package/esm/lib/components/display.wrapper.mjs +1 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
- package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
- package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
- package/esm/lib/components/flag.wrapper.d.ts +5 -5
- package/esm/lib/components/flag.wrapper.mjs +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +2 -2
- package/esm/lib/components/heading.wrapper.d.ts +19 -11
- package/esm/lib/components/heading.wrapper.mjs +3 -3
- package/esm/lib/components/icon.wrapper.d.ts +7 -7
- package/esm/lib/components/icon.wrapper.mjs +1 -1
- package/esm/lib/components/input-date.wrapper.d.ts +12 -12
- package/esm/lib/components/input-email.wrapper.d.ts +8 -8
- package/esm/lib/components/input-month.wrapper.d.ts +12 -12
- package/esm/lib/components/input-number.wrapper.d.ts +8 -8
- package/esm/lib/components/input-password.wrapper.d.ts +6 -6
- package/esm/lib/components/input-search.wrapper.d.ts +6 -6
- package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
- package/esm/lib/components/input-text.wrapper.d.ts +6 -6
- package/esm/lib/components/input-time.wrapper.d.ts +14 -14
- package/esm/lib/components/input-url.wrapper.d.ts +16 -16
- package/esm/lib/components/input-week.wrapper.d.ts +14 -14
- package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
- package/esm/lib/components/link-pure.wrapper.mjs +3 -3
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
- package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
- package/esm/lib/components/link.wrapper.d.ts +14 -14
- package/esm/lib/components/modal.wrapper.d.ts +2 -2
- package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
- package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
- package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
- package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
- package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +10 -10
- package/esm/lib/components/sheet.wrapper.d.ts +2 -2
- package/esm/lib/components/spinner.wrapper.d.ts +13 -5
- package/esm/lib/components/spinner.wrapper.mjs +3 -3
- package/esm/lib/components/switch.wrapper.d.ts +6 -6
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +2 -2
- package/esm/lib/components/text.wrapper.d.ts +12 -12
- package/esm/lib/components/text.wrapper.mjs +1 -1
- package/esm/lib/components/textarea.wrapper.d.ts +6 -6
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/esm/lib/types.d.ts +322 -141
- package/global-styles/cn/index.css +3 -7
- package/global-styles/index.css +3 -7
- package/global-styles/variables.css +3 -7
- package/package.json +6 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +341 -319
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +18 -8
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
- 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/display.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
- 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/heading.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.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/radio-group-option.cjs +1 -1
- 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/spinner.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +341 -319
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +18 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.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/radio-group-option.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/heading.wrapper.d.ts +19 -11
- package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
- package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/text.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
- package/ssr/esm/lib/types.d.ts +322 -141
- package/tailwindcss/index.css +19 -4
|
@@ -2,19 +2,19 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { CarouselAlignControls, CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, CarouselHeadingSize, CarouselInternationalization, CarouselUpdateEventDetail, BreakpointCustomizable, CarouselSlidesPerPage, CarouselWidth } from '../types';
|
|
3
3
|
export type PCarouselProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Defines which slide
|
|
5
|
+
* Defines which slide is active (zero-based numbering).
|
|
6
6
|
*/
|
|
7
7
|
activeSlideIndex?: number;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Aligns the slotted controls.
|
|
10
10
|
*/
|
|
11
11
|
alignControls?: CarouselAlignControls;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Aligns the heading and description.
|
|
14
14
|
*/
|
|
15
15
|
alignHeader?: CarouselAlignHeader;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sets ARIA attributes.
|
|
18
18
|
*/
|
|
19
19
|
aria?: SelectedAriaAttributes<CarouselAriaAttribute>;
|
|
20
20
|
/**
|
|
@@ -54,7 +54,7 @@ export type PCarouselProps = BaseProps & {
|
|
|
54
54
|
*/
|
|
55
55
|
rewind?: boolean;
|
|
56
56
|
/**
|
|
57
|
-
* Defines
|
|
57
|
+
* Defines the skip link target used to skip carousel entries.
|
|
58
58
|
*/
|
|
59
59
|
skipLinkTarget?: string;
|
|
60
60
|
/**
|
|
@@ -72,19 +72,19 @@ export type PCarouselProps = BaseProps & {
|
|
|
72
72
|
};
|
|
73
73
|
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
74
74
|
/**
|
|
75
|
-
* Defines which slide
|
|
75
|
+
* Defines which slide is active (zero-based numbering).
|
|
76
76
|
*/
|
|
77
77
|
activeSlideIndex?: number;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Aligns the slotted controls.
|
|
80
80
|
*/
|
|
81
81
|
alignControls?: CarouselAlignControls;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Aligns the heading and description.
|
|
84
84
|
*/
|
|
85
85
|
alignHeader?: CarouselAlignHeader;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Sets ARIA attributes.
|
|
88
88
|
*/
|
|
89
89
|
aria?: SelectedAriaAttributes<CarouselAriaAttribute>;
|
|
90
90
|
/**
|
|
@@ -124,7 +124,7 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
124
124
|
*/
|
|
125
125
|
rewind?: boolean;
|
|
126
126
|
/**
|
|
127
|
-
* Defines
|
|
127
|
+
* Defines the skip link target used to skip carousel entries.
|
|
128
128
|
*/
|
|
129
129
|
skipLinkTarget?: string;
|
|
130
130
|
/**
|
|
@@ -6,7 +6,7 @@ export type PCheckboxProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
* Displays
|
|
9
|
+
* Displays the checkbox in compact mode.
|
|
10
10
|
*/
|
|
11
11
|
compact?: boolean;
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ export type PCheckboxProps = BaseProps & {
|
|
|
18
18
|
*/
|
|
19
19
|
form?: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
22
22
|
*/
|
|
23
23
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
24
24
|
/**
|
|
@@ -26,7 +26,7 @@ export type PCheckboxProps = BaseProps & {
|
|
|
26
26
|
*/
|
|
27
27
|
indeterminate?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Text content for a user-facing label.
|
|
30
30
|
*/
|
|
31
31
|
label?: string;
|
|
32
32
|
/**
|
|
@@ -68,7 +68,7 @@ export declare const PCheckbox: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
68
68
|
*/
|
|
69
69
|
checked?: boolean;
|
|
70
70
|
/**
|
|
71
|
-
* Displays
|
|
71
|
+
* Displays the checkbox in compact mode.
|
|
72
72
|
*/
|
|
73
73
|
compact?: boolean;
|
|
74
74
|
/**
|
|
@@ -80,7 +80,7 @@ export declare const PCheckbox: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
80
80
|
*/
|
|
81
81
|
form?: string;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
84
84
|
*/
|
|
85
85
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
86
86
|
/**
|
|
@@ -88,7 +88,7 @@ export declare const PCheckbox: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
88
88
|
*/
|
|
89
89
|
indeterminate?: boolean;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Text content for a user-facing label.
|
|
92
92
|
*/
|
|
93
93
|
label?: string;
|
|
94
94
|
/**
|
|
@@ -2,29 +2,29 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
|
|
3
3
|
export type PCrestProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets ARIA attributes.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
* When
|
|
9
|
+
* When `href` is provided, the component renders as an `<a>` element.
|
|
10
10
|
*/
|
|
11
11
|
href?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Specifies where to open the linked document.
|
|
14
14
|
*/
|
|
15
15
|
target?: CrestTarget;
|
|
16
16
|
};
|
|
17
17
|
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets ARIA attributes.
|
|
20
20
|
*/
|
|
21
21
|
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
|
|
22
22
|
/**
|
|
23
|
-
* When
|
|
23
|
+
* When `href` is provided, the component renders as an `<a>` element.
|
|
24
24
|
*/
|
|
25
25
|
href?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Specifies where to open the linked document.
|
|
28
28
|
*/
|
|
29
29
|
target?: CrestTarget;
|
|
30
30
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -22,6 +22,7 @@ export type PDisplayProps = BaseProps & {
|
|
|
22
22
|
*/
|
|
23
23
|
tag?: DisplayTag;
|
|
24
24
|
};
|
|
25
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead. */
|
|
25
26
|
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
26
27
|
/**
|
|
27
28
|
* Text alignment of the component.
|
|
@@ -4,6 +4,7 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead. */
|
|
7
8
|
const PDisplay = /*#__PURE__*/ forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'large', tag, className, ...rest }, ref) => {
|
|
8
9
|
const elementRef = useRef(undefined);
|
|
9
10
|
const WebComponentTag = usePrefix('p-display');
|
|
@@ -2,7 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, DrilldownLinkAriaAttribute, DrilldownLinkTarget } from '../types';
|
|
3
3
|
export type PDrilldownLinkProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Displays the link in its active state.
|
|
6
6
|
*/
|
|
7
7
|
active?: boolean;
|
|
8
8
|
/**
|
|
@@ -10,15 +10,15 @@ export type PDrilldownLinkProps = BaseProps & {
|
|
|
10
10
|
*/
|
|
11
11
|
aria?: SelectedAriaAttributes<DrilldownLinkAriaAttribute>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the native `download` attribute when the target URL points to a downloadable file (only has effect when `href` is defined and no slotted anchor is used).
|
|
14
14
|
*/
|
|
15
15
|
download?: string;
|
|
16
16
|
/**
|
|
17
|
-
* When
|
|
17
|
+
* When `href` is provided, the component renders as an `<a>` element. Otherwise, provide a slotted anchor element.
|
|
18
18
|
*/
|
|
19
19
|
href?: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Sets the `rel` attribute on the link (only has effect when `href` is defined and no slotted anchor is used).
|
|
22
22
|
*/
|
|
23
23
|
rel?: string;
|
|
24
24
|
/**
|
|
@@ -28,7 +28,7 @@ export type PDrilldownLinkProps = BaseProps & {
|
|
|
28
28
|
};
|
|
29
29
|
export declare const PDrilldownLink: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Displays the link in its active state.
|
|
32
32
|
*/
|
|
33
33
|
active?: boolean;
|
|
34
34
|
/**
|
|
@@ -36,15 +36,15 @@ export declare const PDrilldownLink: import("react").ForwardRefExoticComponent<O
|
|
|
36
36
|
*/
|
|
37
37
|
aria?: SelectedAriaAttributes<DrilldownLinkAriaAttribute>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the native `download` attribute when the target URL points to a downloadable file (only has effect when `href` is defined and no slotted anchor is used).
|
|
40
40
|
*/
|
|
41
41
|
download?: string;
|
|
42
42
|
/**
|
|
43
|
-
* When
|
|
43
|
+
* When `href` is provided, the component renders as an `<a>` element. Otherwise, provide a slotted anchor element.
|
|
44
44
|
*/
|
|
45
45
|
href?: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the `rel` attribute on the link (only has effect when `href` is defined and no slotted anchor is used).
|
|
48
48
|
*/
|
|
49
49
|
rel?: string;
|
|
50
50
|
/**
|
|
@@ -2,11 +2,11 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, DrilldownAriaAttribute, DrilldownUpdateEventDetail } from '../types';
|
|
3
3
|
export type PDrilldownProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Defines which drilldown-item
|
|
5
|
+
* Defines which `p-drilldown-item` is shown as open.
|
|
6
6
|
*/
|
|
7
7
|
activeIdentifier?: string | undefined;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets ARIA attributes.
|
|
10
10
|
*/
|
|
11
11
|
aria?: SelectedAriaAttributes<DrilldownAriaAttribute>;
|
|
12
12
|
/**
|
|
@@ -14,21 +14,21 @@ export type PDrilldownProps = BaseProps & {
|
|
|
14
14
|
*/
|
|
15
15
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
16
16
|
/**
|
|
17
|
-
* Emitted when activeIdentifier
|
|
17
|
+
* Emitted when `activeIdentifier` changes.
|
|
18
18
|
*/
|
|
19
19
|
onUpdate?: (event: CustomEvent<DrilldownUpdateEventDetail>) => void;
|
|
20
20
|
/**
|
|
21
|
-
* If true
|
|
21
|
+
* If `true`, the drilldown is shown as open.
|
|
22
22
|
*/
|
|
23
23
|
open?: boolean;
|
|
24
24
|
};
|
|
25
25
|
export declare const PDrilldown: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
26
26
|
/**
|
|
27
|
-
* Defines which drilldown-item
|
|
27
|
+
* Defines which `p-drilldown-item` is shown as open.
|
|
28
28
|
*/
|
|
29
29
|
activeIdentifier?: string | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets ARIA attributes.
|
|
32
32
|
*/
|
|
33
33
|
aria?: SelectedAriaAttributes<DrilldownAriaAttribute>;
|
|
34
34
|
/**
|
|
@@ -36,11 +36,11 @@ export declare const PDrilldown: import("react").ForwardRefExoticComponent<Omit<
|
|
|
36
36
|
*/
|
|
37
37
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
38
38
|
/**
|
|
39
|
-
* Emitted when activeIdentifier
|
|
39
|
+
* Emitted when `activeIdentifier` changes.
|
|
40
40
|
*/
|
|
41
41
|
onUpdate?: (event: CustomEvent<DrilldownUpdateEventDetail>) => void;
|
|
42
42
|
/**
|
|
43
|
-
* If true
|
|
43
|
+
* If `true`, the drilldown is shown as open.
|
|
44
44
|
*/
|
|
45
45
|
open?: boolean;
|
|
46
46
|
} & {
|
|
@@ -2,15 +2,15 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaRole, FieldsetLabelSize, FieldsetState } from '../types';
|
|
3
3
|
export type PFieldsetProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets ARIA attributes.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaRole<"radiogroup">;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Text content for a user-facing label.
|
|
10
10
|
*/
|
|
11
11
|
label?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Controls the size of the label text.
|
|
14
14
|
*/
|
|
15
15
|
labelSize?: FieldsetLabelSize;
|
|
16
16
|
/**
|
|
@@ -28,15 +28,15 @@ export type PFieldsetProps = BaseProps & {
|
|
|
28
28
|
};
|
|
29
29
|
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets ARIA attributes.
|
|
32
32
|
*/
|
|
33
33
|
aria?: SelectedAriaRole<"radiogroup">;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Text content for a user-facing label.
|
|
36
36
|
*/
|
|
37
37
|
label?: string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Controls the size of the label text.
|
|
40
40
|
*/
|
|
41
41
|
labelSize?: FieldsetLabelSize;
|
|
42
42
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, FlagAriaAttribute, FlagName, FlagSize } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, FlagAriaAttribute, FlagName, BreakpointCustomizable, FlagSize } from '../types';
|
|
3
3
|
export type PFlagProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* A map of ARIA attributes to enhance the flag's accessibility. For example, use `{ 'aria-label': 'German flag' }` to provide a descriptive label for screen readers.
|
|
@@ -10,9 +10,9 @@ export type PFlagProps = BaseProps & {
|
|
|
10
10
|
*/
|
|
11
11
|
name?: FlagName;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Defines the size of the flag, aligned with the typographic scale used by components such as p-icon, p-spinner, p-text, and p-heading. When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based components.
|
|
14
14
|
*/
|
|
15
|
-
size?: FlagSize
|
|
15
|
+
size?: BreakpointCustomizable<FlagSize>;
|
|
16
16
|
};
|
|
17
17
|
export declare const PFlag: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ export declare const PFlag: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
24
24
|
*/
|
|
25
25
|
name?: FlagName;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Defines the size of the flag, aligned with the typographic scale used by components such as p-icon, p-spinner, p-text, and p-heading. When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based components.
|
|
28
28
|
*/
|
|
29
|
-
size?: FlagSize
|
|
29
|
+
size?: BreakpointCustomizable<FlagSize>;
|
|
30
30
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -4,7 +4,7 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PFlag = /*#__PURE__*/ forwardRef(({ aria, name = 'de', size = '
|
|
7
|
+
const PFlag = /*#__PURE__*/ forwardRef(({ aria, name = 'de', size = 'sm', className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef(undefined);
|
|
9
9
|
const WebComponentTag = usePrefix('p-flag');
|
|
10
10
|
const propsToSync = [aria, name, size];
|
|
@@ -2,7 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, FlyoutAriaAttribute, FlyoutBackdrop, FlyoutBackground, FlyoutFooterBehavior, FlyoutMotionHiddenEndEventDetail, FlyoutMotionVisibleEndEventDetail, FlyoutPosition } from '../types';
|
|
3
3
|
export type PFlyoutProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets ARIA attributes.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
8
8
|
/**
|
|
@@ -44,7 +44,7 @@ export type PFlyoutProps = BaseProps & {
|
|
|
44
44
|
};
|
|
45
45
|
export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets ARIA attributes.
|
|
48
48
|
*/
|
|
49
49
|
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
50
50
|
/**
|
|
@@ -1,48 +1,56 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { HeadingAlign, HeadingColor, BreakpointCustomizable, HeadingSize, HeadingTag } from '../types';
|
|
2
|
+
import type { HeadingAlign, HeadingColor, BreakpointCustomizable, HeadingSize, HeadingTag, HeadingWeight } from '../types';
|
|
3
3
|
export type PHeadingProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Text alignment of the
|
|
5
|
+
* Text alignment of the heading.
|
|
6
6
|
*/
|
|
7
7
|
align?: HeadingAlign;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Text color of the heading. Use 'primary' for default, 'contrast-high' / 'contrast-medium' for alternative emphasis, or 'inherit' to adopt the parent's color.
|
|
10
10
|
*/
|
|
11
11
|
color?: HeadingColor;
|
|
12
12
|
/**
|
|
13
|
-
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
|
+
* Adds an ellipsis to a single line of text if it overflows the container width.
|
|
14
14
|
*/
|
|
15
15
|
ellipsis?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* Size of the
|
|
17
|
+
* Size of the heading. Also defines the size for specific breakpoints, like {base: "md", l: "2xl"}.
|
|
18
18
|
*/
|
|
19
19
|
size?: BreakpointCustomizable<HeadingSize>;
|
|
20
20
|
/**
|
|
21
|
-
* Sets
|
|
21
|
+
* Sets the HTML heading tag (h1 - h6) to ensure the correct document outline and semantic hierarchy. If not set, the tag is automatically inferred from the `size` property.
|
|
22
22
|
*/
|
|
23
23
|
tag?: HeadingTag;
|
|
24
|
+
/**
|
|
25
|
+
* The font weight of the heading. For `size` values of 'sm' or smaller, it's recommended to use 'semibold' for better readability.
|
|
26
|
+
*/
|
|
27
|
+
weight?: HeadingWeight;
|
|
24
28
|
};
|
|
25
29
|
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
26
30
|
/**
|
|
27
|
-
* Text alignment of the
|
|
31
|
+
* Text alignment of the heading.
|
|
28
32
|
*/
|
|
29
33
|
align?: HeadingAlign;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Text color of the heading. Use 'primary' for default, 'contrast-high' / 'contrast-medium' for alternative emphasis, or 'inherit' to adopt the parent's color.
|
|
32
36
|
*/
|
|
33
37
|
color?: HeadingColor;
|
|
34
38
|
/**
|
|
35
|
-
* Adds an ellipsis to a single line of text if it overflows.
|
|
39
|
+
* Adds an ellipsis to a single line of text if it overflows the container width.
|
|
36
40
|
*/
|
|
37
41
|
ellipsis?: boolean;
|
|
38
42
|
/**
|
|
39
|
-
* Size of the
|
|
43
|
+
* Size of the heading. Also defines the size for specific breakpoints, like {base: "md", l: "2xl"}.
|
|
40
44
|
*/
|
|
41
45
|
size?: BreakpointCustomizable<HeadingSize>;
|
|
42
46
|
/**
|
|
43
|
-
* Sets
|
|
47
|
+
* Sets the HTML heading tag (h1 - h6) to ensure the correct document outline and semantic hierarchy. If not set, the tag is automatically inferred from the `size` property.
|
|
44
48
|
*/
|
|
45
49
|
tag?: HeadingTag;
|
|
50
|
+
/**
|
|
51
|
+
* The font weight of the heading. For `size` values of 'sm' or smaller, it's recommended to use 'semibold' for better readability.
|
|
52
|
+
*/
|
|
53
|
+
weight?: HeadingWeight;
|
|
46
54
|
} & {
|
|
47
55
|
children?: import("react").ReactNode | undefined;
|
|
48
56
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -4,13 +4,13 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PHeading = /*#__PURE__*/ forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = '
|
|
7
|
+
const PHeading = /*#__PURE__*/ forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = '2xl', tag, weight = 'normal', className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef(undefined);
|
|
9
9
|
const WebComponentTag = usePrefix('p-heading');
|
|
10
|
-
const propsToSync = [align, color, ellipsis, size, tag];
|
|
10
|
+
const propsToSync = [align, color, ellipsis, size, tag, weight];
|
|
11
11
|
useBrowserLayoutEffect(() => {
|
|
12
12
|
const { current } = elementRef;
|
|
13
|
-
['align', 'color', 'ellipsis', 'size', 'tag'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
13
|
+
['align', 'color', 'ellipsis', 'size', 'tag', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
14
|
}, propsToSync);
|
|
15
15
|
const props = {
|
|
16
16
|
...rest,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, IconSize } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, BreakpointCustomizable, IconSize } from '../types';
|
|
3
3
|
export type PIconProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets ARIA attributes.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
8
8
|
/**
|
|
@@ -14,9 +14,9 @@ export type PIconProps = BaseProps & {
|
|
|
14
14
|
*/
|
|
15
15
|
name?: IconName;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Defines the size of the icon, aligned with the typographic scale used by components such as p-spinner, p-flag, p-text, and p-heading. When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based components.
|
|
18
18
|
*/
|
|
19
|
-
size?: IconSize
|
|
19
|
+
size?: BreakpointCustomizable<IconSize>;
|
|
20
20
|
/**
|
|
21
21
|
* Specifies a whole icon path which can be used for custom icons.
|
|
22
22
|
*/
|
|
@@ -24,7 +24,7 @@ export type PIconProps = BaseProps & {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Sets ARIA attributes.
|
|
28
28
|
*/
|
|
29
29
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
30
30
|
/**
|
|
@@ -36,9 +36,9 @@ export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
36
36
|
*/
|
|
37
37
|
name?: IconName;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Defines the size of the icon, aligned with the typographic scale used by components such as p-spinner, p-flag, p-text, and p-heading. When set to `inherit`, the size is derived from a custom font-size defined on a parent element, calculated against the global line-height (based on `ex`-unit) to remain visually consistent with other typographic-scale-based components.
|
|
40
40
|
*/
|
|
41
|
-
size?: IconSize
|
|
41
|
+
size?: BreakpointCustomizable<IconSize>;
|
|
42
42
|
/**
|
|
43
43
|
* Specifies a whole icon path which can be used for custom icons.
|
|
44
44
|
*/
|
|
@@ -4,7 +4,7 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PIcon = /*#__PURE__*/ forwardRef(({ aria, color = 'primary', name = 'arrow-right', size = '
|
|
7
|
+
const PIcon = /*#__PURE__*/ forwardRef(({ aria, color = 'primary', name = 'arrow-right', size = 'sm', source, className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef(undefined);
|
|
9
9
|
const WebComponentTag = usePrefix('p-icon');
|
|
10
10
|
const propsToSync = [aria, color, name, size, source];
|
|
@@ -2,11 +2,11 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, InputDateBlurEventDetail, InputDateChangeEventDetail, InputDateInputEventDetail, InputDateState } from '../types';
|
|
3
3
|
export type PInputDateProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g.,
|
|
5
|
+
* Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='bday' for a birthday).
|
|
6
6
|
*/
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Displays the input field in compact mode.
|
|
10
10
|
*/
|
|
11
11
|
compact?: boolean;
|
|
12
12
|
/**
|
|
@@ -14,7 +14,7 @@ export type PInputDateProps = BaseProps & {
|
|
|
14
14
|
*/
|
|
15
15
|
description?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Disables the input field. The value will not be submitted with the form.
|
|
18
18
|
*/
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export type PInputDateProps = BaseProps & {
|
|
|
22
22
|
*/
|
|
23
23
|
form?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
26
26
|
*/
|
|
27
27
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
28
|
/**
|
|
@@ -50,11 +50,11 @@ export type PInputDateProps = BaseProps & {
|
|
|
50
50
|
*/
|
|
51
51
|
name: string;
|
|
52
52
|
/**
|
|
53
|
-
* Emitted when the
|
|
53
|
+
* Emitted when the date input has lost focus.
|
|
54
54
|
*/
|
|
55
55
|
onBlur?: (event: CustomEvent<InputDateBlurEventDetail>) => void;
|
|
56
56
|
/**
|
|
57
|
-
* Emitted when the
|
|
57
|
+
* Emitted when the date input loses focus after its value was changed.
|
|
58
58
|
*/
|
|
59
59
|
onChange?: (event: CustomEvent<InputDateChangeEventDetail>) => void;
|
|
60
60
|
/**
|
|
@@ -84,11 +84,11 @@ export type PInputDateProps = BaseProps & {
|
|
|
84
84
|
};
|
|
85
85
|
export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
86
86
|
/**
|
|
87
|
-
* Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g.,
|
|
87
|
+
* Provides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='bday' for a birthday).
|
|
88
88
|
*/
|
|
89
89
|
autoComplete?: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Displays the input field in compact mode.
|
|
92
92
|
*/
|
|
93
93
|
compact?: boolean;
|
|
94
94
|
/**
|
|
@@ -96,7 +96,7 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
96
96
|
*/
|
|
97
97
|
description?: string;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Disables the input field. The value will not be submitted with the form.
|
|
100
100
|
*/
|
|
101
101
|
disabled?: boolean;
|
|
102
102
|
/**
|
|
@@ -104,7 +104,7 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
104
104
|
*/
|
|
105
105
|
form?: string;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
108
108
|
*/
|
|
109
109
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
110
110
|
/**
|
|
@@ -132,11 +132,11 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
132
132
|
*/
|
|
133
133
|
name: string;
|
|
134
134
|
/**
|
|
135
|
-
* Emitted when the
|
|
135
|
+
* Emitted when the date input has lost focus.
|
|
136
136
|
*/
|
|
137
137
|
onBlur?: (event: CustomEvent<InputDateBlurEventDetail>) => void;
|
|
138
138
|
/**
|
|
139
|
-
* Emitted when the
|
|
139
|
+
* Emitted when the date input loses focus after its value was changed.
|
|
140
140
|
*/
|
|
141
141
|
onChange?: (event: CustomEvent<InputDateChangeEventDetail>) => void;
|
|
142
142
|
/**
|