@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,18 +3,22 @@ import type { BreakpointCustomizable, SegmentedControlColumns, SegmentedControlC
|
|
|
3
3
|
export type PSegmentedControlProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Sets the amount of columns.
|
|
6
|
+
* @default 'auto'
|
|
6
7
|
*/
|
|
7
8
|
columns?: BreakpointCustomizable<SegmentedControlColumns>;
|
|
8
9
|
/**
|
|
9
10
|
* Displays the segmented control in compact mode.
|
|
11
|
+
* @default false
|
|
10
12
|
*/
|
|
11
13
|
compact?: boolean;
|
|
12
14
|
/**
|
|
13
15
|
* Supplementary text providing more context or explanation for the segmented-control.
|
|
16
|
+
* @default ''
|
|
14
17
|
*/
|
|
15
18
|
description?: string;
|
|
16
19
|
/**
|
|
17
20
|
* Disables the segmented-control.
|
|
21
|
+
* @default false
|
|
18
22
|
*/
|
|
19
23
|
disabled?: boolean;
|
|
20
24
|
/**
|
|
@@ -23,14 +27,17 @@ export type PSegmentedControlProps = BaseProps & {
|
|
|
23
27
|
form?: string;
|
|
24
28
|
/**
|
|
25
29
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
30
|
+
* @default false
|
|
26
31
|
*/
|
|
27
32
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
33
|
/**
|
|
29
34
|
* Text content for a user-facing label.
|
|
35
|
+
* @default ''
|
|
30
36
|
*/
|
|
31
37
|
label?: string;
|
|
32
38
|
/**
|
|
33
39
|
* Dynamic feedback text for validation or status.
|
|
40
|
+
* @default ''
|
|
34
41
|
*/
|
|
35
42
|
message?: string;
|
|
36
43
|
/**
|
|
@@ -47,10 +54,12 @@ export type PSegmentedControlProps = BaseProps & {
|
|
|
47
54
|
onChange?: (event: CustomEvent<SegmentedControlChangeEventDetail>) => void;
|
|
48
55
|
/**
|
|
49
56
|
* A boolean value that specifies a selection must be made from the group before the form can be submitted.
|
|
57
|
+
* @default false
|
|
50
58
|
*/
|
|
51
59
|
required?: boolean;
|
|
52
60
|
/**
|
|
53
61
|
* Indicates the validation or overall status of the component.
|
|
62
|
+
* @default 'none'
|
|
54
63
|
*/
|
|
55
64
|
state?: SegmentedControlState;
|
|
56
65
|
/**
|
|
@@ -61,18 +70,22 @@ export type PSegmentedControlProps = BaseProps & {
|
|
|
61
70
|
export declare const PSegmentedControl: 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"> & {
|
|
62
71
|
/**
|
|
63
72
|
* Sets the amount of columns.
|
|
73
|
+
* @default 'auto'
|
|
64
74
|
*/
|
|
65
75
|
columns?: BreakpointCustomizable<SegmentedControlColumns>;
|
|
66
76
|
/**
|
|
67
77
|
* Displays the segmented control in compact mode.
|
|
78
|
+
* @default false
|
|
68
79
|
*/
|
|
69
80
|
compact?: boolean;
|
|
70
81
|
/**
|
|
71
82
|
* Supplementary text providing more context or explanation for the segmented-control.
|
|
83
|
+
* @default ''
|
|
72
84
|
*/
|
|
73
85
|
description?: string;
|
|
74
86
|
/**
|
|
75
87
|
* Disables the segmented-control.
|
|
88
|
+
* @default false
|
|
76
89
|
*/
|
|
77
90
|
disabled?: boolean;
|
|
78
91
|
/**
|
|
@@ -81,14 +94,17 @@ export declare const PSegmentedControl: import("react").ForwardRefExoticComponen
|
|
|
81
94
|
form?: string;
|
|
82
95
|
/**
|
|
83
96
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
97
|
+
* @default false
|
|
84
98
|
*/
|
|
85
99
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
86
100
|
/**
|
|
87
101
|
* Text content for a user-facing label.
|
|
102
|
+
* @default ''
|
|
88
103
|
*/
|
|
89
104
|
label?: string;
|
|
90
105
|
/**
|
|
91
106
|
* Dynamic feedback text for validation or status.
|
|
107
|
+
* @default ''
|
|
92
108
|
*/
|
|
93
109
|
message?: string;
|
|
94
110
|
/**
|
|
@@ -105,10 +121,12 @@ export declare const PSegmentedControl: import("react").ForwardRefExoticComponen
|
|
|
105
121
|
onChange?: (event: CustomEvent<SegmentedControlChangeEventDetail>) => void;
|
|
106
122
|
/**
|
|
107
123
|
* A boolean value that specifies a selection must be made from the group before the form can be submitted.
|
|
124
|
+
* @default false
|
|
108
125
|
*/
|
|
109
126
|
required?: boolean;
|
|
110
127
|
/**
|
|
111
128
|
* Indicates the validation or overall status of the component.
|
|
129
|
+
* @default 'none'
|
|
112
130
|
*/
|
|
113
131
|
state?: SegmentedControlState;
|
|
114
132
|
/**
|
|
@@ -2,6 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
export type PSelectOptionProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
4
|
* Disables the option.
|
|
5
|
+
* @default false
|
|
5
6
|
*/
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
/**
|
|
@@ -12,6 +13,7 @@ export type PSelectOptionProps = BaseProps & {
|
|
|
12
13
|
export declare const PSelectOption: 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"> & {
|
|
13
14
|
/**
|
|
14
15
|
* Disables the option.
|
|
16
|
+
* @default false
|
|
15
17
|
*/
|
|
16
18
|
disabled?: boolean;
|
|
17
19
|
/**
|
|
@@ -3,22 +3,27 @@ import type { SelectDropdownDirection, BreakpointCustomizable, SelectChangeEvent
|
|
|
3
3
|
export type PSelectProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the select in compact mode.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
compact?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Supplementary text providing more context or explanation for the select.
|
|
11
|
+
* @default ''
|
|
10
12
|
*/
|
|
11
13
|
description?: string;
|
|
12
14
|
/**
|
|
13
15
|
* Disables the select.
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
disabled?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* Changes the direction to which the dropdown list appears.
|
|
21
|
+
* @default 'auto'
|
|
18
22
|
*/
|
|
19
23
|
dropdownDirection?: SelectDropdownDirection;
|
|
20
24
|
/**
|
|
21
25
|
* Shows an input in the dropdown allowing options to be filtered. Will be ignored if the `filter` slot is used.
|
|
26
|
+
* @default false
|
|
22
27
|
*/
|
|
23
28
|
filter?: boolean;
|
|
24
29
|
/**
|
|
@@ -27,14 +32,17 @@ export type PSelectProps = BaseProps & {
|
|
|
27
32
|
form?: string;
|
|
28
33
|
/**
|
|
29
34
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
35
|
+
* @default false
|
|
30
36
|
*/
|
|
31
37
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
38
|
/**
|
|
33
39
|
* Text content for a user-facing label.
|
|
40
|
+
* @default ''
|
|
34
41
|
*/
|
|
35
42
|
label?: string;
|
|
36
43
|
/**
|
|
37
44
|
* The message styled depending on validation state.
|
|
45
|
+
* @default ''
|
|
38
46
|
*/
|
|
39
47
|
message?: string;
|
|
40
48
|
/**
|
|
@@ -55,10 +63,12 @@ export type PSelectProps = BaseProps & {
|
|
|
55
63
|
onToggle?: (event: CustomEvent<SelectToggleEventDetail>) => void;
|
|
56
64
|
/**
|
|
57
65
|
* Requires an option with a non-empty string value to be selected.
|
|
66
|
+
* @default false
|
|
58
67
|
*/
|
|
59
68
|
required?: boolean;
|
|
60
69
|
/**
|
|
61
70
|
* The validation state.
|
|
71
|
+
* @default 'none'
|
|
62
72
|
*/
|
|
63
73
|
state?: SelectState;
|
|
64
74
|
/**
|
|
@@ -69,22 +79,27 @@ export type PSelectProps = BaseProps & {
|
|
|
69
79
|
export declare const PSelect: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
70
80
|
/**
|
|
71
81
|
* Displays the select in compact mode.
|
|
82
|
+
* @default false
|
|
72
83
|
*/
|
|
73
84
|
compact?: boolean;
|
|
74
85
|
/**
|
|
75
86
|
* Supplementary text providing more context or explanation for the select.
|
|
87
|
+
* @default ''
|
|
76
88
|
*/
|
|
77
89
|
description?: string;
|
|
78
90
|
/**
|
|
79
91
|
* Disables the select.
|
|
92
|
+
* @default false
|
|
80
93
|
*/
|
|
81
94
|
disabled?: boolean;
|
|
82
95
|
/**
|
|
83
96
|
* Changes the direction to which the dropdown list appears.
|
|
97
|
+
* @default 'auto'
|
|
84
98
|
*/
|
|
85
99
|
dropdownDirection?: SelectDropdownDirection;
|
|
86
100
|
/**
|
|
87
101
|
* Shows an input in the dropdown allowing options to be filtered. Will be ignored if the `filter` slot is used.
|
|
102
|
+
* @default false
|
|
88
103
|
*/
|
|
89
104
|
filter?: boolean;
|
|
90
105
|
/**
|
|
@@ -93,14 +108,17 @@ export declare const PSelect: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
93
108
|
form?: string;
|
|
94
109
|
/**
|
|
95
110
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
111
|
+
* @default false
|
|
96
112
|
*/
|
|
97
113
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
98
114
|
/**
|
|
99
115
|
* Text content for a user-facing label.
|
|
116
|
+
* @default ''
|
|
100
117
|
*/
|
|
101
118
|
label?: string;
|
|
102
119
|
/**
|
|
103
120
|
* The message styled depending on validation state.
|
|
121
|
+
* @default ''
|
|
104
122
|
*/
|
|
105
123
|
message?: string;
|
|
106
124
|
/**
|
|
@@ -121,10 +139,12 @@ export declare const PSelect: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
121
139
|
onToggle?: (event: CustomEvent<SelectToggleEventDetail>) => void;
|
|
122
140
|
/**
|
|
123
141
|
* Requires an option with a non-empty string value to be selected.
|
|
142
|
+
* @default false
|
|
124
143
|
*/
|
|
125
144
|
required?: boolean;
|
|
126
145
|
/**
|
|
127
146
|
* The validation state.
|
|
147
|
+
* @default 'none'
|
|
128
148
|
*/
|
|
129
149
|
state?: SelectState;
|
|
130
150
|
/**
|
|
@@ -7,14 +7,17 @@ export type PSheetProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<SheetAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Defines the background color
|
|
10
|
+
* @default 'canvas'
|
|
10
11
|
*/
|
|
11
12
|
background?: SheetBackground;
|
|
12
13
|
/**
|
|
13
14
|
* If true, the sheet will not be closable via backdrop click.
|
|
15
|
+
* @default false
|
|
14
16
|
*/
|
|
15
17
|
disableBackdropClick?: boolean;
|
|
16
18
|
/**
|
|
17
19
|
* If false, the sheet will not have a dismiss button.
|
|
20
|
+
* @default true
|
|
18
21
|
*/
|
|
19
22
|
dismissButton?: boolean;
|
|
20
23
|
/**
|
|
@@ -31,6 +34,7 @@ export type PSheetProps = BaseProps & {
|
|
|
31
34
|
onMotionVisibleEnd?: (event: CustomEvent<SheetMotionVisibleEndEventDetail>) => void;
|
|
32
35
|
/**
|
|
33
36
|
* If true, the sheet is open.
|
|
37
|
+
* @default false
|
|
34
38
|
*/
|
|
35
39
|
open: boolean;
|
|
36
40
|
};
|
|
@@ -41,14 +45,17 @@ export declare const PSheet: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
41
45
|
aria?: SelectedAriaAttributes<SheetAriaAttribute>;
|
|
42
46
|
/**
|
|
43
47
|
* Defines the background color
|
|
48
|
+
* @default 'canvas'
|
|
44
49
|
*/
|
|
45
50
|
background?: SheetBackground;
|
|
46
51
|
/**
|
|
47
52
|
* If true, the sheet will not be closable via backdrop click.
|
|
53
|
+
* @default false
|
|
48
54
|
*/
|
|
49
55
|
disableBackdropClick?: boolean;
|
|
50
56
|
/**
|
|
51
57
|
* If false, the sheet will not have a dismiss button.
|
|
58
|
+
* @default true
|
|
52
59
|
*/
|
|
53
60
|
dismissButton?: boolean;
|
|
54
61
|
/**
|
|
@@ -65,6 +72,7 @@ export declare const PSheet: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
65
72
|
onMotionVisibleEnd?: (event: CustomEvent<SheetMotionVisibleEndEventDetail>) => void;
|
|
66
73
|
/**
|
|
67
74
|
* If true, the sheet is open.
|
|
75
|
+
* @default false
|
|
68
76
|
*/
|
|
69
77
|
open: boolean;
|
|
70
78
|
} & {
|
|
@@ -7,10 +7,12 @@ export type PSpinnerProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Basic color variations.
|
|
10
|
+
* @default 'primary'
|
|
10
11
|
*/
|
|
11
12
|
color?: SpinnerColor;
|
|
12
13
|
/**
|
|
13
14
|
* Defines the size of the spinner, aligned with the typographic scale used by components such as p-icon, 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.
|
|
15
|
+
* @default 'sm'
|
|
14
16
|
*/
|
|
15
17
|
size?: BreakpointCustomizable<SpinnerSize>;
|
|
16
18
|
};
|
|
@@ -21,10 +23,12 @@ export declare const PSpinner: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
21
23
|
aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
|
|
22
24
|
/**
|
|
23
25
|
* Basic color variations.
|
|
26
|
+
* @default 'primary'
|
|
24
27
|
*/
|
|
25
28
|
color?: SpinnerColor;
|
|
26
29
|
/**
|
|
27
30
|
* Defines the size of the spinner, aligned with the typographic scale used by components such as p-icon, 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.
|
|
31
|
+
* @default 'sm'
|
|
28
32
|
*/
|
|
29
33
|
size?: BreakpointCustomizable<SpinnerSize>;
|
|
30
34
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -3,6 +3,7 @@ import type { StepperHorizontalItemState } from '../types';
|
|
|
3
3
|
export type PStepperHorizontalItemProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Disables the stepper-horizontal-item. No events will be triggered while disabled state is active.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
/**
|
|
@@ -13,6 +14,7 @@ export type PStepperHorizontalItemProps = BaseProps & {
|
|
|
13
14
|
export declare const PStepperHorizontalItem: 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"> & {
|
|
14
15
|
/**
|
|
15
16
|
* Disables the stepper-horizontal-item. No events will be triggered while disabled state is active.
|
|
17
|
+
* @default false
|
|
16
18
|
*/
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
/**
|
|
@@ -7,6 +7,7 @@ export type PStepperHorizontalProps = BaseProps & {
|
|
|
7
7
|
onUpdate?: (event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void;
|
|
8
8
|
/**
|
|
9
9
|
* The text size.
|
|
10
|
+
* @default 'small'
|
|
10
11
|
*/
|
|
11
12
|
size?: BreakpointCustomizable<StepperHorizontalSize>;
|
|
12
13
|
};
|
|
@@ -17,6 +18,7 @@ export declare const PStepperHorizontal: import("react").ForwardRefExoticCompone
|
|
|
17
18
|
onUpdate?: (event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void;
|
|
18
19
|
/**
|
|
19
20
|
* The text size.
|
|
21
|
+
* @default 'small'
|
|
20
22
|
*/
|
|
21
23
|
size?: BreakpointCustomizable<StepperHorizontalSize>;
|
|
22
24
|
} & {
|
|
@@ -3,26 +3,32 @@ import type { BreakpointCustomizable, SwitchAlignLabel, SwitchUpdateEventDetail
|
|
|
3
3
|
export type PSwitchProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Aligns the label.
|
|
6
|
+
* @default 'end'
|
|
6
7
|
*/
|
|
7
8
|
alignLabel?: BreakpointCustomizable<SwitchAlignLabel>;
|
|
8
9
|
/**
|
|
9
10
|
* Visualize the switch with on/off status.
|
|
11
|
+
* @default false
|
|
10
12
|
*/
|
|
11
13
|
checked?: boolean;
|
|
12
14
|
/**
|
|
13
15
|
* Displays the switch in compact mode.
|
|
16
|
+
* @default false
|
|
14
17
|
*/
|
|
15
18
|
compact?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* Disables the switch. No events will be triggered while disabled state is active.
|
|
21
|
+
* @default false
|
|
18
22
|
*/
|
|
19
23
|
disabled?: boolean;
|
|
20
24
|
/**
|
|
21
25
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
26
|
+
* @default false
|
|
22
27
|
*/
|
|
23
28
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
24
29
|
/**
|
|
25
30
|
* Disables the switch and shows a loading indicator. No events will be triggered while loading state is active.
|
|
31
|
+
* @default false
|
|
26
32
|
*/
|
|
27
33
|
loading?: boolean;
|
|
28
34
|
/**
|
|
@@ -31,32 +37,39 @@ export type PSwitchProps = BaseProps & {
|
|
|
31
37
|
onUpdate?: (event: CustomEvent<SwitchUpdateEventDetail>) => void;
|
|
32
38
|
/**
|
|
33
39
|
* Stretches the contents to max available space.
|
|
40
|
+
* @default false
|
|
34
41
|
*/
|
|
35
42
|
stretch?: BreakpointCustomizable<boolean>;
|
|
36
43
|
};
|
|
37
44
|
export declare const PSwitch: 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"> & {
|
|
38
45
|
/**
|
|
39
46
|
* Aligns the label.
|
|
47
|
+
* @default 'end'
|
|
40
48
|
*/
|
|
41
49
|
alignLabel?: BreakpointCustomizable<SwitchAlignLabel>;
|
|
42
50
|
/**
|
|
43
51
|
* Visualize the switch with on/off status.
|
|
52
|
+
* @default false
|
|
44
53
|
*/
|
|
45
54
|
checked?: boolean;
|
|
46
55
|
/**
|
|
47
56
|
* Displays the switch in compact mode.
|
|
57
|
+
* @default false
|
|
48
58
|
*/
|
|
49
59
|
compact?: boolean;
|
|
50
60
|
/**
|
|
51
61
|
* Disables the switch. No events will be triggered while disabled state is active.
|
|
62
|
+
* @default false
|
|
52
63
|
*/
|
|
53
64
|
disabled?: boolean;
|
|
54
65
|
/**
|
|
55
66
|
* Shows or hides the label. For better accessibility, it is recommended to show the label.
|
|
67
|
+
* @default false
|
|
56
68
|
*/
|
|
57
69
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
58
70
|
/**
|
|
59
71
|
* Disables the switch and shows a loading indicator. No events will be triggered while loading state is active.
|
|
72
|
+
* @default false
|
|
60
73
|
*/
|
|
61
74
|
loading?: boolean;
|
|
62
75
|
/**
|
|
@@ -65,6 +78,7 @@ export declare const PSwitch: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
65
78
|
onUpdate?: (event: CustomEvent<SwitchUpdateEventDetail>) => void;
|
|
66
79
|
/**
|
|
67
80
|
* Stretches the contents to max available space.
|
|
81
|
+
* @default false
|
|
68
82
|
*/
|
|
69
83
|
stretch?: BreakpointCustomizable<boolean>;
|
|
70
84
|
} & {
|
|
@@ -2,12 +2,14 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
export type PTableCellProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
4
|
* Allows slotted text to wrap onto multiple lines instead of being forced onto a single line.
|
|
5
|
+
* @default false
|
|
5
6
|
*/
|
|
6
7
|
multiline?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const PTableCell: 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"> & {
|
|
9
10
|
/**
|
|
10
11
|
* Allows slotted text to wrap onto multiple lines instead of being forced onto a single line.
|
|
12
|
+
* @default false
|
|
11
13
|
*/
|
|
12
14
|
multiline?: boolean;
|
|
13
15
|
} & {
|
|
@@ -3,10 +3,12 @@ import type { TableHeadCellSort } from '../types';
|
|
|
3
3
|
export type PTableHeadCellProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Hides the label but keeps it accessible for screen readers. This property only takes effect when the `sort` prop is not set.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
hideLabel?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* Allows slotted text to wrap onto multiple lines instead of being forced onto a single line.
|
|
11
|
+
* @default false
|
|
10
12
|
*/
|
|
11
13
|
multiline?: boolean;
|
|
12
14
|
/**
|
|
@@ -17,10 +19,12 @@ export type PTableHeadCellProps = BaseProps & {
|
|
|
17
19
|
export declare const PTableHeadCell: 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
20
|
/**
|
|
19
21
|
* Hides the label but keeps it accessible for screen readers. This property only takes effect when the `sort` prop is not set.
|
|
22
|
+
* @default false
|
|
20
23
|
*/
|
|
21
24
|
hideLabel?: boolean;
|
|
22
25
|
/**
|
|
23
26
|
* Allows slotted text to wrap onto multiple lines instead of being forced onto a single line.
|
|
27
|
+
* @default false
|
|
24
28
|
*/
|
|
25
29
|
multiline?: boolean;
|
|
26
30
|
/**
|
|
@@ -7,10 +7,12 @@ export type PTableProps = BaseProps & {
|
|
|
7
7
|
caption?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
10
|
+
* @default false
|
|
10
11
|
*/
|
|
11
12
|
compact?: boolean;
|
|
12
13
|
/**
|
|
13
14
|
* Controls the layout behavior of the table.
|
|
15
|
+
* @default 'auto'
|
|
14
16
|
*/
|
|
15
17
|
layout?: TableLayout;
|
|
16
18
|
/**
|
|
@@ -19,6 +21,7 @@ export type PTableProps = BaseProps & {
|
|
|
19
21
|
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
20
22
|
/**
|
|
21
23
|
* @experimental Makes the scroll indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
24
|
+
* @default false
|
|
22
25
|
*/
|
|
23
26
|
sticky?: boolean;
|
|
24
27
|
};
|
|
@@ -29,10 +32,12 @@ export declare const PTable: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
29
32
|
caption?: string;
|
|
30
33
|
/**
|
|
31
34
|
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
35
|
+
* @default false
|
|
32
36
|
*/
|
|
33
37
|
compact?: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Controls the layout behavior of the table.
|
|
40
|
+
* @default 'auto'
|
|
36
41
|
*/
|
|
37
42
|
layout?: TableLayout;
|
|
38
43
|
/**
|
|
@@ -41,6 +46,7 @@ export declare const PTable: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
41
46
|
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
42
47
|
/**
|
|
43
48
|
* @experimental Makes the scroll indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
49
|
+
* @default false
|
|
44
50
|
*/
|
|
45
51
|
sticky?: boolean;
|
|
46
52
|
} & {
|
|
@@ -7,6 +7,7 @@ export type PTabsBarProps = BaseProps & {
|
|
|
7
7
|
activeTabIndex?: number | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
10
|
+
* @default 'none'
|
|
10
11
|
*/
|
|
11
12
|
background?: TabsBarBackground;
|
|
12
13
|
/**
|
|
@@ -19,10 +20,12 @@ export type PTabsBarProps = BaseProps & {
|
|
|
19
20
|
onUpdate?: (event: CustomEvent<TabsBarUpdateEventDetail>) => void;
|
|
20
21
|
/**
|
|
21
22
|
* The text size.
|
|
23
|
+
* @default 'small'
|
|
22
24
|
*/
|
|
23
25
|
size?: BreakpointCustomizable<TabsBarSize>;
|
|
24
26
|
/**
|
|
25
27
|
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
28
|
+
* @default 'regular'
|
|
26
29
|
*/
|
|
27
30
|
weight?: TabsBarWeight;
|
|
28
31
|
};
|
|
@@ -33,6 +36,7 @@ export declare const PTabsBar: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
33
36
|
activeTabIndex?: number | undefined;
|
|
34
37
|
/**
|
|
35
38
|
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
39
|
+
* @default 'none'
|
|
36
40
|
*/
|
|
37
41
|
background?: TabsBarBackground;
|
|
38
42
|
/**
|
|
@@ -45,10 +49,12 @@ export declare const PTabsBar: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
45
49
|
onUpdate?: (event: CustomEvent<TabsBarUpdateEventDetail>) => void;
|
|
46
50
|
/**
|
|
47
51
|
* The text size.
|
|
52
|
+
* @default 'small'
|
|
48
53
|
*/
|
|
49
54
|
size?: BreakpointCustomizable<TabsBarSize>;
|
|
50
55
|
/**
|
|
51
56
|
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
57
|
+
* @default 'regular'
|
|
52
58
|
*/
|
|
53
59
|
weight?: TabsBarWeight;
|
|
54
60
|
} & {
|
|
@@ -3,10 +3,12 @@ import type { TabsBackground, TabsUpdateEventDetail, BreakpointCustomizable, Tab
|
|
|
3
3
|
export type PTabsProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which tab is shown as selected (zero-based numbering).
|
|
6
|
+
* @default 0
|
|
6
7
|
*/
|
|
7
8
|
activeTabIndex?: number;
|
|
8
9
|
/**
|
|
9
10
|
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
11
|
+
* @default 'none'
|
|
10
12
|
*/
|
|
11
13
|
background?: TabsBackground;
|
|
12
14
|
/**
|
|
@@ -19,20 +21,24 @@ export type PTabsProps = BaseProps & {
|
|
|
19
21
|
onUpdate?: (event: CustomEvent<TabsUpdateEventDetail>) => void;
|
|
20
22
|
/**
|
|
21
23
|
* The text size.
|
|
24
|
+
* @default 'small'
|
|
22
25
|
*/
|
|
23
26
|
size?: BreakpointCustomizable<TabsSize>;
|
|
24
27
|
/**
|
|
25
28
|
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
29
|
+
* @default 'regular'
|
|
26
30
|
*/
|
|
27
31
|
weight?: TabsWeight;
|
|
28
32
|
};
|
|
29
33
|
export declare const PTabs: 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
34
|
/**
|
|
31
35
|
* Defines which tab is shown as selected (zero-based numbering).
|
|
36
|
+
* @default 0
|
|
32
37
|
*/
|
|
33
38
|
activeTabIndex?: number;
|
|
34
39
|
/**
|
|
35
40
|
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
41
|
+
* @default 'none'
|
|
36
42
|
*/
|
|
37
43
|
background?: TabsBackground;
|
|
38
44
|
/**
|
|
@@ -45,10 +51,12 @@ export declare const PTabs: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
45
51
|
onUpdate?: (event: CustomEvent<TabsUpdateEventDetail>) => void;
|
|
46
52
|
/**
|
|
47
53
|
* The text size.
|
|
54
|
+
* @default 'small'
|
|
48
55
|
*/
|
|
49
56
|
size?: BreakpointCustomizable<TabsSize>;
|
|
50
57
|
/**
|
|
51
58
|
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
59
|
+
* @default 'regular'
|
|
52
60
|
*/
|
|
53
61
|
weight?: TabsWeight;
|
|
54
62
|
} & {
|
|
@@ -7,6 +7,7 @@ export type PTagDismissibleProps = BaseProps & {
|
|
|
7
7
|
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
|
|
8
8
|
/**
|
|
9
9
|
* Displays the dismissible tag in compact mode.
|
|
10
|
+
* @default false
|
|
10
11
|
*/
|
|
11
12
|
compact?: boolean;
|
|
12
13
|
/**
|
|
@@ -21,6 +22,7 @@ export declare const PTagDismissible: import("react").ForwardRefExoticComponent<
|
|
|
21
22
|
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
|
|
22
23
|
/**
|
|
23
24
|
* Displays the dismissible tag in compact mode.
|
|
25
|
+
* @default false
|
|
24
26
|
*/
|
|
25
27
|
compact?: boolean;
|
|
26
28
|
/**
|
|
@@ -3,10 +3,12 @@ import type { TagIcon, TagVariant } from '../types';
|
|
|
3
3
|
export type PTagProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the tag in compact mode.
|
|
6
|
+
* @default false
|
|
6
7
|
*/
|
|
7
8
|
compact?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* The icon shown.
|
|
11
|
+
* @default 'none'
|
|
10
12
|
*/
|
|
11
13
|
icon?: TagIcon;
|
|
12
14
|
/**
|
|
@@ -15,16 +17,19 @@ export type PTagProps = BaseProps & {
|
|
|
15
17
|
iconSource?: string;
|
|
16
18
|
/**
|
|
17
19
|
* Background color variations.
|
|
20
|
+
* @default 'secondary'
|
|
18
21
|
*/
|
|
19
22
|
variant?: TagVariant;
|
|
20
23
|
};
|
|
21
24
|
export declare const PTag: 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"> & {
|
|
22
25
|
/**
|
|
23
26
|
* Displays the tag in compact mode.
|
|
27
|
+
* @default false
|
|
24
28
|
*/
|
|
25
29
|
compact?: boolean;
|
|
26
30
|
/**
|
|
27
31
|
* The icon shown.
|
|
32
|
+
* @default 'none'
|
|
28
33
|
*/
|
|
29
34
|
icon?: TagIcon;
|
|
30
35
|
/**
|
|
@@ -33,6 +38,7 @@ export declare const PTag: import("react").ForwardRefExoticComponent<Omit<import
|
|
|
33
38
|
iconSource?: string;
|
|
34
39
|
/**
|
|
35
40
|
* Background color variations.
|
|
41
|
+
* @default 'secondary'
|
|
36
42
|
*/
|
|
37
43
|
variant?: TagVariant;
|
|
38
44
|
} & {
|