@porsche-design-system/components-react 4.2.0-rc.4 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/cjs/lib/components/flyout.wrapper.cjs +3 -3
- package/emotion/package.json +1 -8
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/esm/lib/components/button.wrapper.d.ts +24 -24
- package/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +10 -10
- package/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/esm/lib/components/flyout.wrapper.mjs +3 -3
- package/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/esm/lib/components/link.wrapper.d.ts +20 -20
- package/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +30 -30
- package/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/esm/lib/components/table.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/package.json +6 -6
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +144 -352
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +177 -90
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +8 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +144 -352
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +174 -91
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +9 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/banner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
|
@@ -2,156 +2,156 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, PinCodeLength, PinCodeChangeEventDetail, PinCodeState, PinCodeType } from '../types';
|
|
3
3
|
export type PPinCodeProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Reduces the pin code field height and spacing for use in dense layouts where vertical space is limited.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
compact?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the pin code.
|
|
11
11
|
* @default ''
|
|
12
12
|
*/
|
|
13
13
|
description?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Prevents user interaction with all pin code fields and blocks events while the component is disabled.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Associates the pin code with a form element by its ID when it is not a direct descendant of that form.
|
|
21
21
|
*/
|
|
22
22
|
form?: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Hides the visible label and description while keeping them accessible to screen readers. Supports responsive breakpoint values.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the visible label text displayed above the pin code fields to identify their purpose.
|
|
30
30
|
* @default ''
|
|
31
31
|
*/
|
|
32
32
|
label?: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the number of individual input fields rendered, determining how many characters the pin code consists of.
|
|
35
35
|
* @default 4
|
|
36
36
|
*/
|
|
37
37
|
length?: PinCodeLength;
|
|
38
38
|
/**
|
|
39
|
-
* Disables the
|
|
39
|
+
* Disables the pin code fields and shows a loading spinner to indicate an ongoing background operation.
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
42
|
loading?: boolean;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Sets the validation feedback message displayed below the pin code when `state` is `success` or `error`.
|
|
45
45
|
* @default ''
|
|
46
46
|
*/
|
|
47
47
|
message?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Sets the name of the control submitted with the form data to identify the pin code value on the server.
|
|
50
50
|
*/
|
|
51
51
|
name?: string;
|
|
52
52
|
/**
|
|
53
|
-
* Emitted when the pin
|
|
53
|
+
* Emitted when the pin code component loses focus after the user finishes entering characters.
|
|
54
54
|
*/
|
|
55
55
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
56
56
|
/**
|
|
57
|
-
* Emitted when the
|
|
57
|
+
* Emitted when the pin code value changes as the user types, carrying the new concatenated value in the event detail.
|
|
58
58
|
*/
|
|
59
59
|
onChange?: (event: CustomEvent<PinCodeChangeEventDetail>) => void;
|
|
60
60
|
/**
|
|
61
|
-
* Marks the
|
|
61
|
+
* Marks the pin code as required so the form cannot be submitted until all fields are filled.
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
required?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Sets the validation state of the pin code, which controls its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
67
67
|
* @default 'none'
|
|
68
68
|
*/
|
|
69
69
|
state?: PinCodeState;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Controls whether the individual input fields mask their content as password dots (`password`) or show digits (`number`).
|
|
72
72
|
* @default 'number'
|
|
73
73
|
*/
|
|
74
74
|
type?: PinCodeType;
|
|
75
75
|
/**
|
|
76
|
-
* Sets the
|
|
76
|
+
* Sets the current concatenated value of all pin code fields and allows setting the initial value.
|
|
77
77
|
* @default ''
|
|
78
78
|
*/
|
|
79
79
|
value?: string;
|
|
80
80
|
};
|
|
81
81
|
export declare const PPinCode: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Reduces the pin code field height and spacing for use in dense layouts where vertical space is limited.
|
|
84
84
|
* @default false
|
|
85
85
|
*/
|
|
86
86
|
compact?: boolean;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the pin code.
|
|
89
89
|
* @default ''
|
|
90
90
|
*/
|
|
91
91
|
description?: string;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Prevents user interaction with all pin code fields and blocks events while the component is disabled.
|
|
94
94
|
* @default false
|
|
95
95
|
*/
|
|
96
96
|
disabled?: boolean;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Associates the pin code with a form element by its ID when it is not a direct descendant of that form.
|
|
99
99
|
*/
|
|
100
100
|
form?: string;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Hides the visible label and description while keeping them accessible to screen readers. Supports responsive breakpoint values.
|
|
103
103
|
* @default false
|
|
104
104
|
*/
|
|
105
105
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Sets the visible label text displayed above the pin code fields to identify their purpose.
|
|
108
108
|
* @default ''
|
|
109
109
|
*/
|
|
110
110
|
label?: string;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Sets the number of individual input fields rendered, determining how many characters the pin code consists of.
|
|
113
113
|
* @default 4
|
|
114
114
|
*/
|
|
115
115
|
length?: PinCodeLength;
|
|
116
116
|
/**
|
|
117
|
-
* Disables the
|
|
117
|
+
* Disables the pin code fields and shows a loading spinner to indicate an ongoing background operation.
|
|
118
118
|
* @default false
|
|
119
119
|
*/
|
|
120
120
|
loading?: boolean;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Sets the validation feedback message displayed below the pin code when `state` is `success` or `error`.
|
|
123
123
|
* @default ''
|
|
124
124
|
*/
|
|
125
125
|
message?: string;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Sets the name of the control submitted with the form data to identify the pin code value on the server.
|
|
128
128
|
*/
|
|
129
129
|
name?: string;
|
|
130
130
|
/**
|
|
131
|
-
* Emitted when the pin
|
|
131
|
+
* Emitted when the pin code component loses focus after the user finishes entering characters.
|
|
132
132
|
*/
|
|
133
133
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
134
134
|
/**
|
|
135
|
-
* Emitted when the
|
|
135
|
+
* Emitted when the pin code value changes as the user types, carrying the new concatenated value in the event detail.
|
|
136
136
|
*/
|
|
137
137
|
onChange?: (event: CustomEvent<PinCodeChangeEventDetail>) => void;
|
|
138
138
|
/**
|
|
139
|
-
* Marks the
|
|
139
|
+
* Marks the pin code as required so the form cannot be submitted until all fields are filled.
|
|
140
140
|
* @default false
|
|
141
141
|
*/
|
|
142
142
|
required?: boolean;
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Sets the validation state of the pin code, which controls its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
145
145
|
* @default 'none'
|
|
146
146
|
*/
|
|
147
147
|
state?: PinCodeState;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Controls whether the individual input fields mask their content as password dots (`password`) or show digits (`number`).
|
|
150
150
|
* @default 'number'
|
|
151
151
|
*/
|
|
152
152
|
type?: PinCodeType;
|
|
153
153
|
/**
|
|
154
|
-
* Sets the
|
|
154
|
+
* Sets the current concatenated value of all pin code fields and allows setting the initial value.
|
|
155
155
|
* @default ''
|
|
156
156
|
*/
|
|
157
157
|
value?: string;
|
|
@@ -2,30 +2,30 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, PopoverAriaAttribute, PopoverDirection } from '../types';
|
|
3
3
|
export type PPopoverProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the popover panel to improve accessibility for screen readers.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<PopoverAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the text content displayed inside the popover panel when it is open, providing contextual help or information.
|
|
10
10
|
*/
|
|
11
11
|
description?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the preferred direction for the popover to open relative to its trigger button. Falls back to the direction with the most available viewport space.
|
|
14
14
|
* @default 'bottom'
|
|
15
15
|
*/
|
|
16
16
|
direction?: PopoverDirection;
|
|
17
17
|
};
|
|
18
18
|
export declare const PPopover: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
19
19
|
/**
|
|
20
|
-
* Sets ARIA attributes.
|
|
20
|
+
* Sets ARIA attributes on the popover panel to improve accessibility for screen readers.
|
|
21
21
|
*/
|
|
22
22
|
aria?: SelectedAriaAttributes<PopoverAriaAttribute>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the text content displayed inside the popover panel when it is open, providing contextual help or information.
|
|
25
25
|
*/
|
|
26
26
|
description?: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Sets the preferred direction for the popover to open relative to its trigger button. Falls back to the direction with the most available viewport space.
|
|
29
29
|
* @default 'bottom'
|
|
30
30
|
*/
|
|
31
31
|
direction?: PopoverDirection;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
2
|
export type PRadioGroupOptionProps = BaseProps & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Prevents this option from being selected and excludes its value from form submissions while it is disabled.
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Sets the visible label text displayed next to the radio button that the user reads to identify the option.
|
|
10
10
|
*/
|
|
11
11
|
label?: string;
|
|
12
12
|
/**
|
|
13
|
-
* @experimental
|
|
13
|
+
* @experimental Disables this option and shows a spinner to indicate that this particular option is in a loading state.
|
|
14
14
|
* @default false
|
|
15
15
|
*/
|
|
16
16
|
loading?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the value submitted with the form data when this radio option is selected within its parent group.
|
|
19
19
|
*/
|
|
20
20
|
value?: string;
|
|
21
21
|
};
|
|
22
22
|
export declare const PRadioGroupOption: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Prevents this option from being selected and excludes its value from form submissions while it is disabled.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the visible label text displayed next to the radio button that the user reads to identify the option.
|
|
30
30
|
*/
|
|
31
31
|
label?: string;
|
|
32
32
|
/**
|
|
33
|
-
* @experimental
|
|
33
|
+
* @experimental Disables this option and shows a spinner to indicate that this particular option is in a loading state.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
loading?: boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the value submitted with the form data when this radio option is selected within its parent group.
|
|
39
39
|
*/
|
|
40
40
|
value?: string;
|
|
41
41
|
} & {
|
|
@@ -2,146 +2,146 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, RadioGroupDirection, RadioGroupChangeEventDetail, RadioGroupState } from '../types';
|
|
3
3
|
export type PRadioGroupProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Reduces the spacing between radio options for use in dense layouts where vertical space is limited.
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
8
|
compact?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the radio group.
|
|
11
11
|
* @default ''
|
|
12
12
|
*/
|
|
13
13
|
description?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the layout direction of the radio options. Use `column` to stack them vertically or `row` to arrange them horizontally. Supports responsive breakpoint values.
|
|
16
16
|
* @default 'column'
|
|
17
17
|
*/
|
|
18
18
|
direction?: BreakpointCustomizable<RadioGroupDirection>;
|
|
19
19
|
/**
|
|
20
|
-
* Disables
|
|
20
|
+
* Disables all radio options in the group, preventing selection and excluding the value from form submissions.
|
|
21
21
|
* @default false
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Associates the radio group with a form element by its ID when the group is not a direct descendant of that form.
|
|
26
26
|
*/
|
|
27
27
|
form?: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Sets the visible label text displayed above the radio group to identify the group's purpose.
|
|
35
35
|
* @default ''
|
|
36
36
|
*/
|
|
37
37
|
label?: string;
|
|
38
38
|
/**
|
|
39
|
-
* @experimental
|
|
39
|
+
* @experimental Disables all radio options and shows a spinner to indicate a background loading operation.
|
|
40
40
|
* @default false
|
|
41
41
|
*/
|
|
42
42
|
loading?: boolean;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Sets the validation feedback message displayed below the radio group when `state` is `success` or `error`.
|
|
45
45
|
* @default ''
|
|
46
46
|
*/
|
|
47
47
|
message?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Sets the shared name attribute for all radio buttons in the group, grouping them for mutually exclusive selection.
|
|
50
50
|
*/
|
|
51
51
|
name: string;
|
|
52
52
|
/**
|
|
53
|
-
* Emitted when the radio
|
|
53
|
+
* Emitted when the radio group loses focus after the user interacts with it, useful for triggering validation on blur.
|
|
54
54
|
*/
|
|
55
55
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
56
56
|
/**
|
|
57
|
-
* Emitted when the
|
|
57
|
+
* Emitted when the user selects a different option, carrying the new value and the native event in the event detail.
|
|
58
58
|
*/
|
|
59
59
|
onChange?: (event: CustomEvent<RadioGroupChangeEventDetail>) => void;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Marks the radio group as required so the form cannot be submitted until one option is selected.
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
required?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Sets the validation state of the radio group, controlling its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
67
67
|
* @default 'none'
|
|
68
68
|
*/
|
|
69
69
|
state?: RadioGroupState;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Sets the currently selected value that pre-selects the matching radio option and reflects user changes.
|
|
72
72
|
* @default ''
|
|
73
73
|
*/
|
|
74
74
|
value?: string;
|
|
75
75
|
};
|
|
76
76
|
export declare const PRadioGroup: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Reduces the spacing between radio options for use in dense layouts where vertical space is limited.
|
|
79
79
|
* @default false
|
|
80
80
|
*/
|
|
81
81
|
compact?: boolean;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Sets a supplementary description displayed below the label to give users additional guidance about the radio group.
|
|
84
84
|
* @default ''
|
|
85
85
|
*/
|
|
86
86
|
description?: string;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Sets the layout direction of the radio options. Use `column` to stack them vertically or `row` to arrange them horizontally. Supports responsive breakpoint values.
|
|
89
89
|
* @default 'column'
|
|
90
90
|
*/
|
|
91
91
|
direction?: BreakpointCustomizable<RadioGroupDirection>;
|
|
92
92
|
/**
|
|
93
|
-
* Disables
|
|
93
|
+
* Disables all radio options in the group, preventing selection and excluding the value from form submissions.
|
|
94
94
|
* @default false
|
|
95
95
|
*/
|
|
96
96
|
disabled?: boolean;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Associates the radio group with a form element by its ID when the group is not a direct descendant of that form.
|
|
99
99
|
*/
|
|
100
100
|
form?: string;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
103
103
|
* @default false
|
|
104
104
|
*/
|
|
105
105
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Sets the visible label text displayed above the radio group to identify the group's purpose.
|
|
108
108
|
* @default ''
|
|
109
109
|
*/
|
|
110
110
|
label?: string;
|
|
111
111
|
/**
|
|
112
|
-
* @experimental
|
|
112
|
+
* @experimental Disables all radio options and shows a spinner to indicate a background loading operation.
|
|
113
113
|
* @default false
|
|
114
114
|
*/
|
|
115
115
|
loading?: boolean;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Sets the validation feedback message displayed below the radio group when `state` is `success` or `error`.
|
|
118
118
|
* @default ''
|
|
119
119
|
*/
|
|
120
120
|
message?: string;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Sets the shared name attribute for all radio buttons in the group, grouping them for mutually exclusive selection.
|
|
123
123
|
*/
|
|
124
124
|
name: string;
|
|
125
125
|
/**
|
|
126
|
-
* Emitted when the radio
|
|
126
|
+
* Emitted when the radio group loses focus after the user interacts with it, useful for triggering validation on blur.
|
|
127
127
|
*/
|
|
128
128
|
onBlur?: (event: CustomEvent<void>) => void;
|
|
129
129
|
/**
|
|
130
|
-
* Emitted when the
|
|
130
|
+
* Emitted when the user selects a different option, carrying the new value and the native event in the event detail.
|
|
131
131
|
*/
|
|
132
132
|
onChange?: (event: CustomEvent<RadioGroupChangeEventDetail>) => void;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* Marks the radio group as required so the form cannot be submitted until one option is selected.
|
|
135
135
|
* @default false
|
|
136
136
|
*/
|
|
137
137
|
required?: boolean;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Sets the validation state of the radio group, controlling its visual appearance and feedback message style (`none`, `success`, `error`).
|
|
140
140
|
* @default 'none'
|
|
141
141
|
*/
|
|
142
142
|
state?: RadioGroupState;
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Sets the currently selected value that pre-selects the matching radio option and reflects user changes.
|
|
145
145
|
* @default ''
|
|
146
146
|
*/
|
|
147
147
|
value?: string;
|
|
@@ -7,11 +7,11 @@ export type PScrollerProps = BaseProps & {
|
|
|
7
7
|
*/
|
|
8
8
|
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the ARIA `role` attribute on the scroller's scroll container, useful for list-based navigation patterns.
|
|
11
11
|
*/
|
|
12
12
|
aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Reduces the scroller's padding and the gap between slotted items for use in dense layouts.
|
|
15
15
|
*/
|
|
16
16
|
compact?: boolean;
|
|
17
17
|
/**
|
|
@@ -19,7 +19,7 @@ export type PScrollerProps = BaseProps & {
|
|
|
19
19
|
*/
|
|
20
20
|
scrollToPosition?: ScrollerScrollToPosition;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Shows the browser's native scrollbar inside the scroller, in addition to the scroll indicator arrows.
|
|
23
23
|
* @default false
|
|
24
24
|
*/
|
|
25
25
|
scrollbar?: boolean;
|
|
@@ -36,11 +36,11 @@ export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
36
36
|
*/
|
|
37
37
|
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the ARIA `role` attribute on the scroller's scroll container, useful for list-based navigation patterns.
|
|
40
40
|
*/
|
|
41
41
|
aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Reduces the scroller's padding and the gap between slotted items for use in dense layouts.
|
|
44
44
|
*/
|
|
45
45
|
compact?: boolean;
|
|
46
46
|
/**
|
|
@@ -48,7 +48,7 @@ export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
48
48
|
*/
|
|
49
49
|
scrollToPosition?: ScrollerScrollToPosition;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Shows the browser's native scrollbar inside the scroller, in addition to the scroll indicator arrows.
|
|
52
52
|
* @default false
|
|
53
53
|
*/
|
|
54
54
|
scrollbar?: boolean;
|
|
@@ -2,55 +2,55 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, SegmentedControlItemAriaAttribute, SegmentedControlItemIcon } from '../types';
|
|
3
3
|
export type PSegmentedControlItemProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets ARIA attributes.
|
|
5
|
+
* Sets ARIA attributes on the item's button element to improve accessibility for screen readers.
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<SegmentedControlItemAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Prevents this item from being selected and visually dims it; the parent's value will not change to this item's value.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets an icon rendered inside the item button using an icon name from the PDS icon library.
|
|
15
15
|
*/
|
|
16
16
|
icon?: SegmentedControlItemIcon;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets a URL to a custom SVG icon for the item button, overriding the built-in icon set.
|
|
19
19
|
*/
|
|
20
20
|
iconSource?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets a visible text label rendered inside the item button, used when no slotted content is provided.
|
|
23
23
|
*/
|
|
24
24
|
label?: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Sets the value emitted by the parent `p-segmented-control` when this item is selected. This property is **required**.
|
|
27
27
|
*/
|
|
28
28
|
value: string | number;
|
|
29
29
|
};
|
|
30
30
|
export declare const PSegmentedControlItem: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
31
31
|
/**
|
|
32
|
-
* Sets ARIA attributes.
|
|
32
|
+
* Sets ARIA attributes on the item's button element to improve accessibility for screen readers.
|
|
33
33
|
*/
|
|
34
34
|
aria?: SelectedAriaAttributes<SegmentedControlItemAriaAttribute>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Prevents this item from being selected and visually dims it; the parent's value will not change to this item's value.
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
39
|
disabled?: boolean;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Sets an icon rendered inside the item button using an icon name from the PDS icon library.
|
|
42
42
|
*/
|
|
43
43
|
icon?: SegmentedControlItemIcon;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Sets a URL to a custom SVG icon for the item button, overriding the built-in icon set.
|
|
46
46
|
*/
|
|
47
47
|
iconSource?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Sets a visible text label rendered inside the item button, used when no slotted content is provided.
|
|
50
50
|
*/
|
|
51
51
|
label?: string;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Sets the value emitted by the parent `p-segmented-control` when this item is selected. This property is **required**.
|
|
54
54
|
*/
|
|
55
55
|
value: string | number;
|
|
56
56
|
} & {
|