@porsche-design-system/components-react 4.0.0-beta.4 → 4.0.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 +72 -4
- package/cjs/lib/components/banner.wrapper.cjs +3 -3
- package/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/esm/lib/components/banner.wrapper.mjs +3 -3
- package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/esm/lib/components/button.wrapper.d.ts +14 -0
- package/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/esm/lib/components/display.wrapper.d.ts +8 -0
- package/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
- package/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/select.wrapper.d.ts +20 -0
- package/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/esm/lib/components/table.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +14 -0
- package/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/esm/lib/types.d.ts +5 -0
- package/global-styles/cn/index.css +1 -0
- package/global-styles/index.css +1 -0
- package/global-styles/variables.css +1 -0
- package/package.json +4 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +723 -775
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +16 -77
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +11 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +4 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -4
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +723 -775
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +15 -76
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +11 -6
- 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/inline-notification.mjs +5 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -5
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/banner.d.ts +2 -2
- package/ssr/esm/lib/types.d.ts +5 -0
- package/tailwindcss/index.css +73 -14
|
@@ -3,6 +3,7 @@ import type { SelectedAriaAttributes, DrilldownLinkAriaAttribute, DrilldownLinkT
|
|
|
3
3
|
export type PDrilldownLinkProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the link in its active state.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
active?: boolean;
|
|
8
9
|
/**
|
|
@@ -23,12 +24,14 @@ export type PDrilldownLinkProps = BaseProps & {
|
|
|
23
24
|
rel?: string;
|
|
24
25
|
/**
|
|
25
26
|
* Target attribute where the link should be opened (only has effect when `href` is defined and no slotted anchor is used).
|
|
27
|
+
* @default '_self'
|
|
26
28
|
*/
|
|
27
29
|
target?: DrilldownLinkTarget;
|
|
28
30
|
};
|
|
29
31
|
export declare const PDrilldownLink: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
30
32
|
/**
|
|
31
33
|
* Displays the link in its active state.
|
|
34
|
+
* @default false
|
|
32
35
|
*/
|
|
33
36
|
active?: boolean;
|
|
34
37
|
/**
|
|
@@ -49,6 +52,7 @@ export declare const PDrilldownLink: import("react").ForwardRefExoticComponent<O
|
|
|
49
52
|
rel?: string;
|
|
50
53
|
/**
|
|
51
54
|
* Target attribute where the link should be opened (only has effect when `href` is defined and no slotted anchor is used).
|
|
55
|
+
* @default '_self'
|
|
52
56
|
*/
|
|
53
57
|
target?: DrilldownLinkTarget;
|
|
54
58
|
} & {
|
|
@@ -19,6 +19,7 @@ export type PDrilldownProps = BaseProps & {
|
|
|
19
19
|
onUpdate?: (event: CustomEvent<DrilldownUpdateEventDetail>) => void;
|
|
20
20
|
/**
|
|
21
21
|
* If `true`, the drilldown is shown as open.
|
|
22
|
+
* @default false
|
|
22
23
|
*/
|
|
23
24
|
open?: boolean;
|
|
24
25
|
};
|
|
@@ -41,6 +42,7 @@ export declare const PDrilldown: import("react").ForwardRefExoticComponent<Omit<
|
|
|
41
42
|
onUpdate?: (event: CustomEvent<DrilldownUpdateEventDetail>) => void;
|
|
42
43
|
/**
|
|
43
44
|
* If `true`, the drilldown is shown as open.
|
|
45
|
+
* @default false
|
|
44
46
|
*/
|
|
45
47
|
open?: boolean;
|
|
46
48
|
} & {
|
|
@@ -7,22 +7,27 @@ export type PFieldsetProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaRole<"radiogroup">;
|
|
8
8
|
/**
|
|
9
9
|
* Text content for a user-facing label.
|
|
10
|
+
* @default ''
|
|
10
11
|
*/
|
|
11
12
|
label?: string;
|
|
12
13
|
/**
|
|
13
14
|
* Controls the size of the label text.
|
|
15
|
+
* @default 'medium'
|
|
14
16
|
*/
|
|
15
17
|
labelSize?: FieldsetLabelSize;
|
|
16
18
|
/**
|
|
17
19
|
* The message styled depending on validation state.
|
|
20
|
+
* @default ''
|
|
18
21
|
*/
|
|
19
22
|
message?: string;
|
|
20
23
|
/**
|
|
21
24
|
* Marks the Fieldset as required.
|
|
25
|
+
* @default false
|
|
22
26
|
*/
|
|
23
27
|
required?: boolean;
|
|
24
28
|
/**
|
|
25
29
|
* The validation state.
|
|
30
|
+
* @default 'none'
|
|
26
31
|
*/
|
|
27
32
|
state?: FieldsetState;
|
|
28
33
|
};
|
|
@@ -33,22 +38,27 @@ export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
33
38
|
aria?: SelectedAriaRole<"radiogroup">;
|
|
34
39
|
/**
|
|
35
40
|
* Text content for a user-facing label.
|
|
41
|
+
* @default ''
|
|
36
42
|
*/
|
|
37
43
|
label?: string;
|
|
38
44
|
/**
|
|
39
45
|
* Controls the size of the label text.
|
|
46
|
+
* @default 'medium'
|
|
40
47
|
*/
|
|
41
48
|
labelSize?: FieldsetLabelSize;
|
|
42
49
|
/**
|
|
43
50
|
* The message styled depending on validation state.
|
|
51
|
+
* @default ''
|
|
44
52
|
*/
|
|
45
53
|
message?: string;
|
|
46
54
|
/**
|
|
47
55
|
* Marks the Fieldset as required.
|
|
56
|
+
* @default false
|
|
48
57
|
*/
|
|
49
58
|
required?: boolean;
|
|
50
59
|
/**
|
|
51
60
|
* The validation state.
|
|
61
|
+
* @default 'none'
|
|
52
62
|
*/
|
|
53
63
|
state?: FieldsetState;
|
|
54
64
|
} & {
|
|
@@ -7,10 +7,12 @@ export type PFlagProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<FlagAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Specifies the country flag to display. Use the two-letter ISO 3166-1 alpha-2 country code. For example, use `us` for the United States, `de` for Germany, `gb` for Great Britain.
|
|
10
|
+
* @default 'de'
|
|
10
11
|
*/
|
|
11
12
|
name?: FlagName;
|
|
12
13
|
/**
|
|
13
14
|
* 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.
|
|
15
|
+
* @default 'sm'
|
|
14
16
|
*/
|
|
15
17
|
size?: BreakpointCustomizable<FlagSize>;
|
|
16
18
|
};
|
|
@@ -21,10 +23,12 @@ export declare const PFlag: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
21
23
|
aria?: SelectedAriaAttributes<FlagAriaAttribute>;
|
|
22
24
|
/**
|
|
23
25
|
* Specifies the country flag to display. Use the two-letter ISO 3166-1 alpha-2 country code. For example, use `us` for the United States, `de` for Germany, `gb` for Great Britain.
|
|
26
|
+
* @default 'de'
|
|
24
27
|
*/
|
|
25
28
|
name?: FlagName;
|
|
26
29
|
/**
|
|
27
30
|
* 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.
|
|
31
|
+
* @default 'sm'
|
|
28
32
|
*/
|
|
29
33
|
size?: BreakpointCustomizable<FlagSize>;
|
|
30
34
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -7,18 +7,22 @@ export type PFlyoutProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Defines the backdrop, 'blur' (should be used when the underlying content is not relevant for users) and 'shading' (should be used when the user still needs a visual connection to the underlying content).
|
|
10
|
+
* @default 'blur'
|
|
10
11
|
*/
|
|
11
12
|
backdrop?: FlyoutBackdrop;
|
|
12
13
|
/**
|
|
13
14
|
* Defines the background color
|
|
15
|
+
* @default 'canvas'
|
|
14
16
|
*/
|
|
15
17
|
background?: FlyoutBackground;
|
|
16
18
|
/**
|
|
17
19
|
* If true, the flyout will not be closable via backdrop click.
|
|
20
|
+
* @default false
|
|
18
21
|
*/
|
|
19
22
|
disableBackdropClick?: boolean;
|
|
20
23
|
/**
|
|
21
24
|
* Determines the footer's position behavior. When set to "fixed," the flyout content stretches to fill the full height, keeping the footer permanently at the bottom. When set to "sticky," the footer flows beneath the content and only becomes fixed if the content overflows.
|
|
25
|
+
* @default 'sticky'
|
|
22
26
|
*/
|
|
23
27
|
footerBehavior?: FlyoutFooterBehavior;
|
|
24
28
|
/**
|
|
@@ -35,10 +39,12 @@ export type PFlyoutProps = BaseProps & {
|
|
|
35
39
|
onMotionVisibleEnd?: (event: CustomEvent<FlyoutMotionVisibleEndEventDetail>) => void;
|
|
36
40
|
/**
|
|
37
41
|
* If true, the flyout is open.
|
|
42
|
+
* @default false
|
|
38
43
|
*/
|
|
39
44
|
open: boolean;
|
|
40
45
|
/**
|
|
41
46
|
* The position of the flyout
|
|
47
|
+
* @default 'end'
|
|
42
48
|
*/
|
|
43
49
|
position?: FlyoutPosition;
|
|
44
50
|
};
|
|
@@ -49,18 +55,22 @@ export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
49
55
|
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
50
56
|
/**
|
|
51
57
|
* Defines the backdrop, 'blur' (should be used when the underlying content is not relevant for users) and 'shading' (should be used when the user still needs a visual connection to the underlying content).
|
|
58
|
+
* @default 'blur'
|
|
52
59
|
*/
|
|
53
60
|
backdrop?: FlyoutBackdrop;
|
|
54
61
|
/**
|
|
55
62
|
* Defines the background color
|
|
63
|
+
* @default 'canvas'
|
|
56
64
|
*/
|
|
57
65
|
background?: FlyoutBackground;
|
|
58
66
|
/**
|
|
59
67
|
* If true, the flyout will not be closable via backdrop click.
|
|
68
|
+
* @default false
|
|
60
69
|
*/
|
|
61
70
|
disableBackdropClick?: boolean;
|
|
62
71
|
/**
|
|
63
72
|
* Determines the footer's position behavior. When set to "fixed," the flyout content stretches to fill the full height, keeping the footer permanently at the bottom. When set to "sticky," the footer flows beneath the content and only becomes fixed if the content overflows.
|
|
73
|
+
* @default 'sticky'
|
|
64
74
|
*/
|
|
65
75
|
footerBehavior?: FlyoutFooterBehavior;
|
|
66
76
|
/**
|
|
@@ -77,10 +87,12 @@ export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
77
87
|
onMotionVisibleEnd?: (event: CustomEvent<FlyoutMotionVisibleEndEventDetail>) => void;
|
|
78
88
|
/**
|
|
79
89
|
* If true, the flyout is open.
|
|
90
|
+
* @default false
|
|
80
91
|
*/
|
|
81
92
|
open: boolean;
|
|
82
93
|
/**
|
|
83
94
|
* The position of the flyout
|
|
95
|
+
* @default 'end'
|
|
84
96
|
*/
|
|
85
97
|
position?: FlyoutPosition;
|
|
86
98
|
} & {
|
|
@@ -3,22 +3,27 @@ import type { HeadingAlign, HeadingColor, HeadingHyphens, BreakpointCustomizable
|
|
|
3
3
|
export type PHeadingProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the heading. Use 'start' for left-aligned text (in LTR), 'center' for centered, 'end' for right-aligned (in LTR), or 'inherit' to adopt the parent's alignment.
|
|
6
|
+
* @default 'start'
|
|
6
7
|
*/
|
|
7
8
|
align?: HeadingAlign;
|
|
8
9
|
/**
|
|
9
10
|
* Text color of the heading. Use 'primary' for default, 'contrast-higher' / 'contrast-high' / 'contrast-medium' for alternative emphasis levels, or 'inherit' to adopt the parent's color.
|
|
11
|
+
* @default 'primary'
|
|
10
12
|
*/
|
|
11
13
|
color?: HeadingColor;
|
|
12
14
|
/**
|
|
13
15
|
* Adds an ellipsis to a single line of text if it overflows the container width. When enabled, the text is truncated to a single line with `text-overflow: ellipsis`. Cannot be combined with multi-line content.
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
ellipsis?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* Controls the hyphenation behavior of the heading. Use 'auto' to let the browser automatically hyphenate words at appropriate points, 'manual' to only hyphenate at manually inserted hyphenation points (e.g. `­`), 'none' to disable hyphenation entirely, or 'inherit' to adopt the parent's hyphenation setting.
|
|
21
|
+
* @default 'none'
|
|
18
22
|
*/
|
|
19
23
|
hyphens?: HeadingHyphens;
|
|
20
24
|
/**
|
|
21
25
|
* Size of the heading. Also defines the size for specific breakpoints, like {base: "md", l: "2xl"}. You always need to provide a base value when doing this. Use 'inherit' to adopt the parent's font size.
|
|
26
|
+
* @default '2xl'
|
|
22
27
|
*/
|
|
23
28
|
size?: BreakpointCustomizable<HeadingSize>;
|
|
24
29
|
/**
|
|
@@ -27,28 +32,34 @@ export type PHeadingProps = BaseProps & {
|
|
|
27
32
|
tag?: HeadingTag;
|
|
28
33
|
/**
|
|
29
34
|
* The font weight of the heading. Use 'normal' for regular weight, 'semibold' for slightly emphasized text, or 'bold' for strong emphasis. For `size` values of 'sm' or smaller, it's recommended to use 'semibold' for better readability.
|
|
35
|
+
* @default 'normal'
|
|
30
36
|
*/
|
|
31
37
|
weight?: HeadingWeight;
|
|
32
38
|
};
|
|
33
39
|
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
34
40
|
/**
|
|
35
41
|
* Text alignment of the heading. Use 'start' for left-aligned text (in LTR), 'center' for centered, 'end' for right-aligned (in LTR), or 'inherit' to adopt the parent's alignment.
|
|
42
|
+
* @default 'start'
|
|
36
43
|
*/
|
|
37
44
|
align?: HeadingAlign;
|
|
38
45
|
/**
|
|
39
46
|
* Text color of the heading. Use 'primary' for default, 'contrast-higher' / 'contrast-high' / 'contrast-medium' for alternative emphasis levels, or 'inherit' to adopt the parent's color.
|
|
47
|
+
* @default 'primary'
|
|
40
48
|
*/
|
|
41
49
|
color?: HeadingColor;
|
|
42
50
|
/**
|
|
43
51
|
* Adds an ellipsis to a single line of text if it overflows the container width. When enabled, the text is truncated to a single line with `text-overflow: ellipsis`. Cannot be combined with multi-line content.
|
|
52
|
+
* @default false
|
|
44
53
|
*/
|
|
45
54
|
ellipsis?: boolean;
|
|
46
55
|
/**
|
|
47
56
|
* Controls the hyphenation behavior of the heading. Use 'auto' to let the browser automatically hyphenate words at appropriate points, 'manual' to only hyphenate at manually inserted hyphenation points (e.g. `­`), 'none' to disable hyphenation entirely, or 'inherit' to adopt the parent's hyphenation setting.
|
|
57
|
+
* @default 'none'
|
|
48
58
|
*/
|
|
49
59
|
hyphens?: HeadingHyphens;
|
|
50
60
|
/**
|
|
51
61
|
* Size of the heading. Also defines the size for specific breakpoints, like {base: "md", l: "2xl"}. You always need to provide a base value when doing this. Use 'inherit' to adopt the parent's font size.
|
|
62
|
+
* @default '2xl'
|
|
52
63
|
*/
|
|
53
64
|
size?: BreakpointCustomizable<HeadingSize>;
|
|
54
65
|
/**
|
|
@@ -57,6 +68,7 @@ export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
57
68
|
tag?: HeadingTag;
|
|
58
69
|
/**
|
|
59
70
|
* The font weight of the heading. Use 'normal' for regular weight, 'semibold' for slightly emphasized text, or 'bold' for strong emphasis. For `size` values of 'sm' or smaller, it's recommended to use 'semibold' for better readability.
|
|
71
|
+
* @default 'normal'
|
|
60
72
|
*/
|
|
61
73
|
weight?: HeadingWeight;
|
|
62
74
|
} & {
|
|
@@ -7,14 +7,17 @@ export type PIconProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Basic color variations.
|
|
10
|
+
* @default 'primary'
|
|
10
11
|
*/
|
|
11
12
|
color?: IconColor;
|
|
12
13
|
/**
|
|
13
14
|
* Specifies which icon to use.
|
|
15
|
+
* @default 'arrow-right'
|
|
14
16
|
*/
|
|
15
17
|
name?: IconName;
|
|
16
18
|
/**
|
|
17
19
|
* 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.
|
|
20
|
+
* @default 'sm'
|
|
18
21
|
*/
|
|
19
22
|
size?: BreakpointCustomizable<IconSize>;
|
|
20
23
|
/**
|
|
@@ -29,14 +32,17 @@ export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
29
32
|
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
30
33
|
/**
|
|
31
34
|
* Basic color variations.
|
|
35
|
+
* @default 'primary'
|
|
32
36
|
*/
|
|
33
37
|
color?: IconColor;
|
|
34
38
|
/**
|
|
35
39
|
* Specifies which icon to use.
|
|
40
|
+
* @default 'arrow-right'
|
|
36
41
|
*/
|
|
37
42
|
name?: IconName;
|
|
38
43
|
/**
|
|
39
44
|
* 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.
|
|
45
|
+
* @default 'sm'
|
|
40
46
|
*/
|
|
41
47
|
size?: BreakpointCustomizable<IconSize>;
|
|
42
48
|
/**
|
|
@@ -3,6 +3,7 @@ import type { InlineNotificationActionIcon, InlineNotificationHeadingTag, Inline
|
|
|
3
3
|
export type PInlineNotificationProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Action icon of the inline-notification.
|
|
6
|
+
* @default 'arrow-right'
|
|
6
7
|
*/
|
|
7
8
|
actionIcon?: InlineNotificationActionIcon;
|
|
8
9
|
/**
|
|
@@ -11,22 +12,27 @@ export type PInlineNotificationProps = BaseProps & {
|
|
|
11
12
|
actionLabel?: string;
|
|
12
13
|
/**
|
|
13
14
|
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
15
|
+
* @default false
|
|
14
16
|
*/
|
|
15
17
|
actionLoading?: boolean;
|
|
16
18
|
/**
|
|
17
19
|
* Description of the inline-notification.
|
|
20
|
+
* @default ''
|
|
18
21
|
*/
|
|
19
22
|
description?: string;
|
|
20
23
|
/**
|
|
21
24
|
* If false, the inline-notification will not have a dismiss button.
|
|
25
|
+
* @default true
|
|
22
26
|
*/
|
|
23
27
|
dismissButton?: boolean;
|
|
24
28
|
/**
|
|
25
29
|
* Heading of the inline-notification.
|
|
30
|
+
* @default ''
|
|
26
31
|
*/
|
|
27
32
|
heading?: string;
|
|
28
33
|
/**
|
|
29
34
|
* Sets a heading tag, so it fits correctly within the outline of the page.
|
|
35
|
+
* @default 'h5'
|
|
30
36
|
*/
|
|
31
37
|
headingTag?: InlineNotificationHeadingTag;
|
|
32
38
|
/**
|
|
@@ -39,12 +45,14 @@ export type PInlineNotificationProps = BaseProps & {
|
|
|
39
45
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
40
46
|
/**
|
|
41
47
|
* State of the inline-notification.
|
|
48
|
+
* @default 'info'
|
|
42
49
|
*/
|
|
43
50
|
state?: InlineNotificationState;
|
|
44
51
|
};
|
|
45
52
|
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
46
53
|
/**
|
|
47
54
|
* Action icon of the inline-notification.
|
|
55
|
+
* @default 'arrow-right'
|
|
48
56
|
*/
|
|
49
57
|
actionIcon?: InlineNotificationActionIcon;
|
|
50
58
|
/**
|
|
@@ -53,22 +61,27 @@ export declare const PInlineNotification: import("react").ForwardRefExoticCompon
|
|
|
53
61
|
actionLabel?: string;
|
|
54
62
|
/**
|
|
55
63
|
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
64
|
+
* @default false
|
|
56
65
|
*/
|
|
57
66
|
actionLoading?: boolean;
|
|
58
67
|
/**
|
|
59
68
|
* Description of the inline-notification.
|
|
69
|
+
* @default ''
|
|
60
70
|
*/
|
|
61
71
|
description?: string;
|
|
62
72
|
/**
|
|
63
73
|
* If false, the inline-notification will not have a dismiss button.
|
|
74
|
+
* @default true
|
|
64
75
|
*/
|
|
65
76
|
dismissButton?: boolean;
|
|
66
77
|
/**
|
|
67
78
|
* Heading of the inline-notification.
|
|
79
|
+
* @default ''
|
|
68
80
|
*/
|
|
69
81
|
heading?: string;
|
|
70
82
|
/**
|
|
71
83
|
* Sets a heading tag, so it fits correctly within the outline of the page.
|
|
84
|
+
* @default 'h5'
|
|
72
85
|
*/
|
|
73
86
|
headingTag?: InlineNotificationHeadingTag;
|
|
74
87
|
/**
|
|
@@ -81,6 +94,7 @@ export declare const PInlineNotification: import("react").ForwardRefExoticCompon
|
|
|
81
94
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
82
95
|
/**
|
|
83
96
|
* State of the inline-notification.
|
|
97
|
+
* @default 'info'
|
|
84
98
|
*/
|
|
85
99
|
state?: InlineNotificationState;
|
|
86
100
|
} & {
|
|
@@ -7,14 +7,17 @@ export type PInputDateProps = BaseProps & {
|
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Displays the input field in compact mode.
|
|
10
|
+
* @default false
|
|
10
11
|
*/
|
|
11
12
|
compact?: boolean;
|
|
12
13
|
/**
|
|
13
14
|
* Supplementary text providing more context or explanation for the input.
|
|
15
|
+
* @default ''
|
|
14
16
|
*/
|
|
15
17
|
description?: string;
|
|
16
18
|
/**
|
|
17
19
|
* Disables the input field. The value will not be submitted with the form.
|
|
20
|
+
* @default false
|
|
18
21
|
*/
|
|
19
22
|
disabled?: boolean;
|
|
20
23
|
/**
|
|
@@ -23,14 +26,17 @@ export type PInputDateProps = BaseProps & {
|
|
|
23
26
|
form?: string;
|
|
24
27
|
/**
|
|
25
28
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
29
|
+
* @default false
|
|
26
30
|
*/
|
|
27
31
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
32
|
/**
|
|
29
33
|
* Text content for a user-facing label.
|
|
34
|
+
* @default ''
|
|
30
35
|
*/
|
|
31
36
|
label?: string;
|
|
32
37
|
/**
|
|
33
38
|
* @experimental Shows a loading indicator.
|
|
39
|
+
* @default false
|
|
34
40
|
*/
|
|
35
41
|
loading?: boolean;
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export type PInputDateProps = BaseProps & {
|
|
|
39
45
|
max?: string;
|
|
40
46
|
/**
|
|
41
47
|
* Dynamic feedback text for validation or status.
|
|
48
|
+
* @default ''
|
|
42
49
|
*/
|
|
43
50
|
message?: string;
|
|
44
51
|
/**
|
|
@@ -63,22 +70,27 @@ export type PInputDateProps = BaseProps & {
|
|
|
63
70
|
onInput?: (event: CustomEvent<InputDateInputEventDetail>) => void;
|
|
64
71
|
/**
|
|
65
72
|
* A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
|
|
73
|
+
* @default false
|
|
66
74
|
*/
|
|
67
75
|
readOnly?: boolean;
|
|
68
76
|
/**
|
|
69
77
|
* A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
|
|
78
|
+
* @default false
|
|
70
79
|
*/
|
|
71
80
|
required?: boolean;
|
|
72
81
|
/**
|
|
73
82
|
* Indicates the validation or overall status of the input component.
|
|
83
|
+
* @default 'none'
|
|
74
84
|
*/
|
|
75
85
|
state?: InputDateState;
|
|
76
86
|
/**
|
|
77
87
|
* Defines the granularity of the date input. This value is given in days. The default is 1 (one day).
|
|
88
|
+
* @default 1
|
|
78
89
|
*/
|
|
79
90
|
step?: number;
|
|
80
91
|
/**
|
|
81
92
|
* The default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').
|
|
93
|
+
* @default ''
|
|
82
94
|
*/
|
|
83
95
|
value?: string;
|
|
84
96
|
};
|
|
@@ -89,14 +101,17 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
89
101
|
autoComplete?: string;
|
|
90
102
|
/**
|
|
91
103
|
* Displays the input field in compact mode.
|
|
104
|
+
* @default false
|
|
92
105
|
*/
|
|
93
106
|
compact?: boolean;
|
|
94
107
|
/**
|
|
95
108
|
* Supplementary text providing more context or explanation for the input.
|
|
109
|
+
* @default ''
|
|
96
110
|
*/
|
|
97
111
|
description?: string;
|
|
98
112
|
/**
|
|
99
113
|
* Disables the input field. The value will not be submitted with the form.
|
|
114
|
+
* @default false
|
|
100
115
|
*/
|
|
101
116
|
disabled?: boolean;
|
|
102
117
|
/**
|
|
@@ -105,14 +120,17 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
105
120
|
form?: string;
|
|
106
121
|
/**
|
|
107
122
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
123
|
+
* @default false
|
|
108
124
|
*/
|
|
109
125
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
110
126
|
/**
|
|
111
127
|
* Text content for a user-facing label.
|
|
128
|
+
* @default ''
|
|
112
129
|
*/
|
|
113
130
|
label?: string;
|
|
114
131
|
/**
|
|
115
132
|
* @experimental Shows a loading indicator.
|
|
133
|
+
* @default false
|
|
116
134
|
*/
|
|
117
135
|
loading?: boolean;
|
|
118
136
|
/**
|
|
@@ -121,6 +139,7 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
121
139
|
max?: string;
|
|
122
140
|
/**
|
|
123
141
|
* Dynamic feedback text for validation or status.
|
|
142
|
+
* @default ''
|
|
124
143
|
*/
|
|
125
144
|
message?: string;
|
|
126
145
|
/**
|
|
@@ -145,22 +164,27 @@ export declare const PInputDate: import("react").ForwardRefExoticComponent<Omit<
|
|
|
145
164
|
onInput?: (event: CustomEvent<InputDateInputEventDetail>) => void;
|
|
146
165
|
/**
|
|
147
166
|
* A boolean value that, if present, makes the input field uneditable by the user, but its value will still be submitted with the form.
|
|
167
|
+
* @default false
|
|
148
168
|
*/
|
|
149
169
|
readOnly?: boolean;
|
|
150
170
|
/**
|
|
151
171
|
* A boolean value that, if present, indicates that the input field must be filled out before the form can be submitted.
|
|
172
|
+
* @default false
|
|
152
173
|
*/
|
|
153
174
|
required?: boolean;
|
|
154
175
|
/**
|
|
155
176
|
* Indicates the validation or overall status of the input component.
|
|
177
|
+
* @default 'none'
|
|
156
178
|
*/
|
|
157
179
|
state?: InputDateState;
|
|
158
180
|
/**
|
|
159
181
|
* Defines the granularity of the date input. This value is given in days. The default is 1 (one day).
|
|
182
|
+
* @default 1
|
|
160
183
|
*/
|
|
161
184
|
step?: number;
|
|
162
185
|
/**
|
|
163
186
|
* The default date value for the input, in YYYY-MM-DD format (e.g., value='2025-07-02').
|
|
187
|
+
* @default ''
|
|
164
188
|
*/
|
|
165
189
|
value?: string;
|
|
166
190
|
} & {
|