@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,63 +2,63 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, InputNumberBlurEventDetail, InputNumberChangeEventDetail, InputNumberInputEventDetail, InputNumberState } from '../types';
|
|
3
3
|
export type PInputNumberProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Provides
|
|
5
|
+
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='postal-code'`).
|
|
6
6
|
*/
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the input height and padding for a more compact layout.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Shows increment/decrement spin buttons inside the field to adjust the numeric value by clicking.
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
controls?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
20
20
|
* @default ''
|
|
21
21
|
*/
|
|
22
22
|
description?: string;
|
|
23
23
|
/**
|
|
24
|
-
* Disables the input
|
|
24
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
30
30
|
*/
|
|
31
31
|
form?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the visible label text displayed above the input field.
|
|
39
39
|
* @default ''
|
|
40
40
|
*/
|
|
41
41
|
label?: string;
|
|
42
42
|
/**
|
|
43
|
-
* @experimental
|
|
43
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
44
44
|
* @default false
|
|
45
45
|
*/
|
|
46
46
|
loading?: boolean;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Sets the maximum allowed numeric value. Values above this are invalid.
|
|
49
49
|
*/
|
|
50
50
|
max?: number;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
53
53
|
* @default ''
|
|
54
54
|
*/
|
|
55
55
|
message?: string;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Sets the minimum allowed numeric value. Values below this are invalid.
|
|
58
58
|
*/
|
|
59
59
|
min?: number;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
62
62
|
*/
|
|
63
63
|
name: string;
|
|
64
64
|
/**
|
|
@@ -74,95 +74,95 @@ export type PInputNumberProps = BaseProps & {
|
|
|
74
74
|
*/
|
|
75
75
|
onInput?: (event: CustomEvent<InputNumberInputEventDetail>) => void;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Sets placeholder text shown inside the field when it is empty, to hint at the expected format.
|
|
78
78
|
* @default ''
|
|
79
79
|
*/
|
|
80
80
|
placeholder?: string;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
83
83
|
* @default false
|
|
84
84
|
*/
|
|
85
85
|
readOnly?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
88
88
|
* @default false
|
|
89
89
|
*/
|
|
90
90
|
required?: boolean;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
93
93
|
* @default 'none'
|
|
94
94
|
*/
|
|
95
95
|
state?: InputNumberState;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Sets the stepping granularity — the value must be a multiple of this number. Also controls step button increment size.
|
|
98
98
|
* @default 1
|
|
99
99
|
*/
|
|
100
100
|
step?: number;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Sets the current numeric value of the field.
|
|
103
103
|
* @default ''
|
|
104
104
|
*/
|
|
105
105
|
value?: string | number | null;
|
|
106
106
|
};
|
|
107
107
|
export declare const PInputNumber: 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"> & {
|
|
108
108
|
/**
|
|
109
|
-
* Provides
|
|
109
|
+
* Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='postal-code'`).
|
|
110
110
|
*/
|
|
111
111
|
autoComplete?: string;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Reduces the input height and padding for a more compact layout.
|
|
114
114
|
* @default false
|
|
115
115
|
*/
|
|
116
116
|
compact?: boolean;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Shows increment/decrement spin buttons inside the field to adjust the numeric value by clicking.
|
|
119
119
|
* @default false
|
|
120
120
|
*/
|
|
121
121
|
controls?: boolean;
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
124
124
|
* @default ''
|
|
125
125
|
*/
|
|
126
126
|
description?: string;
|
|
127
127
|
/**
|
|
128
|
-
* Disables the input
|
|
128
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
129
129
|
* @default false
|
|
130
130
|
*/
|
|
131
131
|
disabled?: boolean;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
134
134
|
*/
|
|
135
135
|
form?: string;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
138
138
|
* @default false
|
|
139
139
|
*/
|
|
140
140
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* Sets the visible label text displayed above the input field.
|
|
143
143
|
* @default ''
|
|
144
144
|
*/
|
|
145
145
|
label?: string;
|
|
146
146
|
/**
|
|
147
|
-
* @experimental
|
|
147
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
148
148
|
* @default false
|
|
149
149
|
*/
|
|
150
150
|
loading?: boolean;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Sets the maximum allowed numeric value. Values above this are invalid.
|
|
153
153
|
*/
|
|
154
154
|
max?: number;
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
156
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
157
157
|
* @default ''
|
|
158
158
|
*/
|
|
159
159
|
message?: string;
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
161
|
+
* Sets the minimum allowed numeric value. Values below this are invalid.
|
|
162
162
|
*/
|
|
163
163
|
min?: number;
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
166
166
|
*/
|
|
167
167
|
name: string;
|
|
168
168
|
/**
|
|
@@ -178,32 +178,32 @@ export declare const PInputNumber: import("react").ForwardRefExoticComponent<Omi
|
|
|
178
178
|
*/
|
|
179
179
|
onInput?: (event: CustomEvent<InputNumberInputEventDetail>) => void;
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Sets placeholder text shown inside the field when it is empty, to hint at the expected format.
|
|
182
182
|
* @default ''
|
|
183
183
|
*/
|
|
184
184
|
placeholder?: string;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
187
187
|
* @default false
|
|
188
188
|
*/
|
|
189
189
|
readOnly?: boolean;
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
192
192
|
* @default false
|
|
193
193
|
*/
|
|
194
194
|
required?: boolean;
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
197
197
|
* @default 'none'
|
|
198
198
|
*/
|
|
199
199
|
state?: InputNumberState;
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
201
|
+
* Sets the stepping granularity — the value must be a multiple of this number. Also controls step button increment size.
|
|
202
202
|
* @default 1
|
|
203
203
|
*/
|
|
204
204
|
step?: number;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Sets the current numeric value of the field.
|
|
207
207
|
* @default ''
|
|
208
208
|
*/
|
|
209
209
|
value?: string | number | null;
|
|
@@ -2,58 +2,58 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, InputPasswordBlurEventDetail, InputPasswordChangeEventDetail, InputPasswordInputEventDetail, InputPasswordState } from '../types';
|
|
3
3
|
export type PInputPasswordProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Provides
|
|
5
|
+
* Provides the browser with a password autofill hint (e.g. `autocomplete='current-password'` or `autocomplete='new-password'`).
|
|
6
6
|
*/
|
|
7
7
|
autoComplete?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Reduces the input height and padding for a more compact layout.
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
15
15
|
* @default ''
|
|
16
16
|
*/
|
|
17
17
|
description?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Disables the input
|
|
19
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
25
25
|
*/
|
|
26
26
|
form?: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
31
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Sets the visible label text displayed above the input field.
|
|
34
34
|
* @default ''
|
|
35
35
|
*/
|
|
36
36
|
label?: string;
|
|
37
37
|
/**
|
|
38
|
-
* @experimental
|
|
38
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
39
39
|
* @default false
|
|
40
40
|
*/
|
|
41
41
|
loading?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Sets the maximum number of characters the user can enter.
|
|
44
44
|
*/
|
|
45
45
|
maxLength?: number;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
48
48
|
* @default ''
|
|
49
49
|
*/
|
|
50
50
|
message?: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Sets the minimum number of characters required for the field to be considered valid.
|
|
53
53
|
*/
|
|
54
54
|
minLength?: number;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
57
57
|
*/
|
|
58
58
|
name: string;
|
|
59
59
|
/**
|
|
@@ -69,90 +69,90 @@ export type PInputPasswordProps = BaseProps & {
|
|
|
69
69
|
*/
|
|
70
70
|
onInput?: (event: CustomEvent<InputPasswordInputEventDetail>) => void;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Sets placeholder text shown inside the field when it is empty.
|
|
73
73
|
* @default ''
|
|
74
74
|
*/
|
|
75
75
|
placeholder?: string;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
80
|
readOnly?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
83
83
|
* @default false
|
|
84
84
|
*/
|
|
85
85
|
required?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
88
88
|
* @default 'none'
|
|
89
89
|
*/
|
|
90
90
|
state?: InputPasswordState;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Shows a toggle button that switches the password between masked and plain text visibility.
|
|
93
93
|
* @default false
|
|
94
94
|
*/
|
|
95
95
|
toggle?: boolean;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Sets the current password value of the field.
|
|
98
98
|
* @default ''
|
|
99
99
|
*/
|
|
100
100
|
value?: string | null;
|
|
101
101
|
};
|
|
102
102
|
export declare const PInputPassword: 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"> & {
|
|
103
103
|
/**
|
|
104
|
-
* Provides
|
|
104
|
+
* Provides the browser with a password autofill hint (e.g. `autocomplete='current-password'` or `autocomplete='new-password'`).
|
|
105
105
|
*/
|
|
106
106
|
autoComplete?: string;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Reduces the input height and padding for a more compact layout.
|
|
109
109
|
* @default false
|
|
110
110
|
*/
|
|
111
111
|
compact?: boolean;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
114
114
|
* @default ''
|
|
115
115
|
*/
|
|
116
116
|
description?: string;
|
|
117
117
|
/**
|
|
118
|
-
* Disables the input
|
|
118
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
119
119
|
* @default false
|
|
120
120
|
*/
|
|
121
121
|
disabled?: boolean;
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
124
124
|
*/
|
|
125
125
|
form?: string;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
128
128
|
* @default false
|
|
129
129
|
*/
|
|
130
130
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Sets the visible label text displayed above the input field.
|
|
133
133
|
* @default ''
|
|
134
134
|
*/
|
|
135
135
|
label?: string;
|
|
136
136
|
/**
|
|
137
|
-
* @experimental
|
|
137
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
138
138
|
* @default false
|
|
139
139
|
*/
|
|
140
140
|
loading?: boolean;
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* Sets the maximum number of characters the user can enter.
|
|
143
143
|
*/
|
|
144
144
|
maxLength?: number;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
147
147
|
* @default ''
|
|
148
148
|
*/
|
|
149
149
|
message?: string;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* Sets the minimum number of characters required for the field to be considered valid.
|
|
152
152
|
*/
|
|
153
153
|
minLength?: number;
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
156
156
|
*/
|
|
157
157
|
name: string;
|
|
158
158
|
/**
|
|
@@ -168,32 +168,32 @@ export declare const PInputPassword: import("react").ForwardRefExoticComponent<O
|
|
|
168
168
|
*/
|
|
169
169
|
onInput?: (event: CustomEvent<InputPasswordInputEventDetail>) => void;
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* Sets placeholder text shown inside the field when it is empty.
|
|
172
172
|
* @default ''
|
|
173
173
|
*/
|
|
174
174
|
placeholder?: string;
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
177
177
|
* @default false
|
|
178
178
|
*/
|
|
179
179
|
readOnly?: boolean;
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
182
182
|
* @default false
|
|
183
183
|
*/
|
|
184
184
|
required?: boolean;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
187
187
|
* @default 'none'
|
|
188
188
|
*/
|
|
189
189
|
state?: InputPasswordState;
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* Shows a toggle button that switches the password between masked and plain text visibility.
|
|
192
192
|
* @default false
|
|
193
193
|
*/
|
|
194
194
|
toggle?: boolean;
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* Sets the current password value of the field.
|
|
197
197
|
* @default ''
|
|
198
198
|
*/
|
|
199
199
|
value?: string | null;
|