@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,80 +2,80 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { SelectedAriaAttributes, InputSearchAriaAttribute, BreakpointCustomizable, InputSearchBlurEventDetail, InputSearchChangeEventDetail, InputSearchInputEventDetail, InputSearchState } from '../types';
|
|
3
3
|
export type PInputSearchProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`).
|
|
6
6
|
*/
|
|
7
7
|
aria?: SelectedAriaAttributes<InputSearchAriaAttribute>;
|
|
8
8
|
/**
|
|
9
|
-
* Provides
|
|
9
|
+
* Provides the browser with a data type hint to enable relevant autofill suggestions.
|
|
10
10
|
*/
|
|
11
11
|
autoComplete?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Shows a clear button (×) inside the field that resets the value to empty when clicked.
|
|
14
14
|
* @default false
|
|
15
15
|
*/
|
|
16
16
|
clear?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Reduces the input height and padding for a more compact layout.
|
|
19
19
|
* @default false
|
|
20
20
|
*/
|
|
21
21
|
compact?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
24
24
|
* @default ''
|
|
25
25
|
*/
|
|
26
26
|
description?: string;
|
|
27
27
|
/**
|
|
28
|
-
* Disables the input
|
|
28
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
34
34
|
*/
|
|
35
35
|
form?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
38
38
|
* @default false
|
|
39
39
|
*/
|
|
40
40
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Shows a magnifying glass icon inside the field as a visual affordance for search input.
|
|
43
43
|
* @default false
|
|
44
44
|
*/
|
|
45
45
|
indicator?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Sets the visible label text displayed above the input field.
|
|
48
48
|
* @default ''
|
|
49
49
|
*/
|
|
50
50
|
label?: string;
|
|
51
51
|
/**
|
|
52
|
-
* @experimental
|
|
52
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
53
53
|
* @default false
|
|
54
54
|
*/
|
|
55
55
|
loading?: boolean;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Sets the maximum number of characters the user can enter.
|
|
58
58
|
*/
|
|
59
59
|
maxLength?: number;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
62
62
|
* @default ''
|
|
63
63
|
*/
|
|
64
64
|
message?: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Sets the minimum number of characters required for the field to be considered valid.
|
|
67
67
|
*/
|
|
68
68
|
minLength?: number;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
71
71
|
*/
|
|
72
72
|
name: string;
|
|
73
73
|
/**
|
|
74
|
-
* Emitted when the
|
|
74
|
+
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
75
75
|
*/
|
|
76
76
|
onBlur?: (event: CustomEvent<InputSearchBlurEventDetail>) => void;
|
|
77
77
|
/**
|
|
78
|
-
* Emitted when the
|
|
78
|
+
* Emitted when the input loses focus after its value was changed.
|
|
79
79
|
*/
|
|
80
80
|
onChange?: (event: CustomEvent<InputSearchChangeEventDetail>) => void;
|
|
81
81
|
/**
|
|
@@ -83,107 +83,107 @@ export type PInputSearchProps = BaseProps & {
|
|
|
83
83
|
*/
|
|
84
84
|
onInput?: (event: CustomEvent<InputSearchInputEventDetail>) => void;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Sets placeholder text shown inside the field when it is empty.
|
|
87
87
|
* @default ''
|
|
88
88
|
*/
|
|
89
89
|
placeholder?: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
94
|
readOnly?: boolean;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
97
97
|
* @default false
|
|
98
98
|
*/
|
|
99
99
|
required?: boolean;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
102
102
|
* @default 'none'
|
|
103
103
|
*/
|
|
104
104
|
state?: InputSearchState;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Sets the current search query value of the field.
|
|
107
107
|
* @default ''
|
|
108
108
|
*/
|
|
109
109
|
value?: string | null;
|
|
110
110
|
};
|
|
111
111
|
export declare const PInputSearch: 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"> & {
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`).
|
|
114
114
|
*/
|
|
115
115
|
aria?: SelectedAriaAttributes<InputSearchAriaAttribute>;
|
|
116
116
|
/**
|
|
117
|
-
* Provides
|
|
117
|
+
* Provides the browser with a data type hint to enable relevant autofill suggestions.
|
|
118
118
|
*/
|
|
119
119
|
autoComplete?: string;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* Shows a clear button (×) inside the field that resets the value to empty when clicked.
|
|
122
122
|
* @default false
|
|
123
123
|
*/
|
|
124
124
|
clear?: boolean;
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Reduces the input height and padding for a more compact layout.
|
|
127
127
|
* @default false
|
|
128
128
|
*/
|
|
129
129
|
compact?: boolean;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
132
132
|
* @default ''
|
|
133
133
|
*/
|
|
134
134
|
description?: string;
|
|
135
135
|
/**
|
|
136
|
-
* Disables the input
|
|
136
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
137
137
|
* @default false
|
|
138
138
|
*/
|
|
139
139
|
disabled?: boolean;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
142
142
|
*/
|
|
143
143
|
form?: string;
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
146
146
|
* @default false
|
|
147
147
|
*/
|
|
148
148
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Shows a magnifying glass icon inside the field as a visual affordance for search input.
|
|
151
151
|
* @default false
|
|
152
152
|
*/
|
|
153
153
|
indicator?: boolean;
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Sets the visible label text displayed above the input field.
|
|
156
156
|
* @default ''
|
|
157
157
|
*/
|
|
158
158
|
label?: string;
|
|
159
159
|
/**
|
|
160
|
-
* @experimental
|
|
160
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
161
161
|
* @default false
|
|
162
162
|
*/
|
|
163
163
|
loading?: boolean;
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* Sets the maximum number of characters the user can enter.
|
|
166
166
|
*/
|
|
167
167
|
maxLength?: number;
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
170
170
|
* @default ''
|
|
171
171
|
*/
|
|
172
172
|
message?: string;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Sets the minimum number of characters required for the field to be considered valid.
|
|
175
175
|
*/
|
|
176
176
|
minLength?: number;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
179
179
|
*/
|
|
180
180
|
name: string;
|
|
181
181
|
/**
|
|
182
|
-
* Emitted when the
|
|
182
|
+
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
183
183
|
*/
|
|
184
184
|
onBlur?: (event: CustomEvent<InputSearchBlurEventDetail>) => void;
|
|
185
185
|
/**
|
|
186
|
-
* Emitted when the
|
|
186
|
+
* Emitted when the input loses focus after its value was changed.
|
|
187
187
|
*/
|
|
188
188
|
onChange?: (event: CustomEvent<InputSearchChangeEventDetail>) => void;
|
|
189
189
|
/**
|
|
@@ -191,27 +191,27 @@ export declare const PInputSearch: import("react").ForwardRefExoticComponent<Omi
|
|
|
191
191
|
*/
|
|
192
192
|
onInput?: (event: CustomEvent<InputSearchInputEventDetail>) => void;
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Sets placeholder text shown inside the field when it is empty.
|
|
195
195
|
* @default ''
|
|
196
196
|
*/
|
|
197
197
|
placeholder?: string;
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
200
200
|
* @default false
|
|
201
201
|
*/
|
|
202
202
|
readOnly?: boolean;
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
205
205
|
* @default false
|
|
206
206
|
*/
|
|
207
207
|
required?: boolean;
|
|
208
208
|
/**
|
|
209
|
-
*
|
|
209
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
210
210
|
* @default 'none'
|
|
211
211
|
*/
|
|
212
212
|
state?: InputSearchState;
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* Sets the current search query value of the field.
|
|
215
215
|
* @default ''
|
|
216
216
|
*/
|
|
217
217
|
value?: string | null;
|
|
@@ -2,206 +2,206 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BreakpointCustomizable, InputTelBlurEventDetail, InputTelChangeEventDetail, InputTelInputEventDetail, InputTelState } from '../types';
|
|
3
3
|
export type PInputTelProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Provides
|
|
5
|
+
* Provides the browser with a phone number autofill hint (e.g. `autocomplete='tel'`).
|
|
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
|
+
* Shows a phone icon at the start of the field as a visual indicator for telephone input.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
indicator?: 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 number of characters the user can enter.
|
|
49
49
|
*/
|
|
50
50
|
maxLength?: 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 number of characters required for the field to be considered valid.
|
|
58
58
|
*/
|
|
59
59
|
minLength?: 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
|
/**
|
|
65
|
-
* Emitted when the
|
|
65
|
+
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
66
66
|
*/
|
|
67
67
|
onBlur?: (event: CustomEvent<InputTelBlurEventDetail>) => void;
|
|
68
68
|
/**
|
|
69
|
-
* Emitted when the
|
|
69
|
+
* Emitted when the input loses focus after its value was changed.
|
|
70
70
|
*/
|
|
71
71
|
onChange?: (event: CustomEvent<InputTelChangeEventDetail>) => void;
|
|
72
72
|
/**
|
|
73
|
-
* Emitted
|
|
73
|
+
* Emitted on every value change as the user types.
|
|
74
74
|
*/
|
|
75
75
|
onInput?: (event: CustomEvent<InputTelInputEventDetail>) => void;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Sets a regular expression the entered value must match to be valid. Overrides the browser's default telephone validation.
|
|
78
78
|
*/
|
|
79
79
|
pattern?: string;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Sets placeholder text shown inside the field when it is empty, such as an example phone number format.
|
|
82
82
|
* @default ''
|
|
83
83
|
*/
|
|
84
84
|
placeholder?: string;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
87
87
|
* @default false
|
|
88
88
|
*/
|
|
89
89
|
readOnly?: boolean;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
94
|
required?: boolean;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
97
97
|
* @default 'none'
|
|
98
98
|
*/
|
|
99
99
|
state?: InputTelState;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Sets the current telephone number value of the field.
|
|
102
102
|
* @default ''
|
|
103
103
|
*/
|
|
104
104
|
value?: string | null;
|
|
105
105
|
};
|
|
106
106
|
export declare const PInputTel: 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"> & {
|
|
107
107
|
/**
|
|
108
|
-
* Provides
|
|
108
|
+
* Provides the browser with a phone number autofill hint (e.g. `autocomplete='tel'`).
|
|
109
109
|
*/
|
|
110
110
|
autoComplete?: string;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Reduces the input height and padding for a more compact layout.
|
|
113
113
|
* @default false
|
|
114
114
|
*/
|
|
115
115
|
compact?: boolean;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Sets a supplementary description displayed below the label to provide additional context.
|
|
118
118
|
* @default ''
|
|
119
119
|
*/
|
|
120
120
|
description?: string;
|
|
121
121
|
/**
|
|
122
|
-
* Disables the input
|
|
122
|
+
* Disables the field, preventing all input. The value is not submitted with the form.
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
125
|
disabled?: boolean;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Associates the field with a form element by its ID when the field is not nested directly inside it.
|
|
128
128
|
*/
|
|
129
129
|
form?: string;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values.
|
|
132
132
|
* @default false
|
|
133
133
|
*/
|
|
134
134
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* Shows a phone icon at the start of the field as a visual indicator for telephone input.
|
|
137
137
|
* @default false
|
|
138
138
|
*/
|
|
139
139
|
indicator?: boolean;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Sets the visible label text displayed above the input field.
|
|
142
142
|
* @default ''
|
|
143
143
|
*/
|
|
144
144
|
label?: string;
|
|
145
145
|
/**
|
|
146
|
-
* @experimental
|
|
146
|
+
* @experimental Disables the field and displays a loading spinner to indicate an ongoing operation.
|
|
147
147
|
* @default false
|
|
148
148
|
*/
|
|
149
149
|
loading?: boolean;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* Sets the maximum number of characters the user can enter.
|
|
152
152
|
*/
|
|
153
153
|
maxLength?: number;
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Sets the validation feedback message displayed below the field when `state` is `success` or `error`.
|
|
156
156
|
* @default ''
|
|
157
157
|
*/
|
|
158
158
|
message?: string;
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* Sets the minimum number of characters required for the field to be considered valid.
|
|
161
161
|
*/
|
|
162
162
|
minLength?: number;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Sets the name submitted with the form data to identify this field's value on the server.
|
|
165
165
|
*/
|
|
166
166
|
name: string;
|
|
167
167
|
/**
|
|
168
|
-
* Emitted when the
|
|
168
|
+
* Emitted when the input loses focus, regardless of whether the value changed.
|
|
169
169
|
*/
|
|
170
170
|
onBlur?: (event: CustomEvent<InputTelBlurEventDetail>) => void;
|
|
171
171
|
/**
|
|
172
|
-
* Emitted when the
|
|
172
|
+
* Emitted when the input loses focus after its value was changed.
|
|
173
173
|
*/
|
|
174
174
|
onChange?: (event: CustomEvent<InputTelChangeEventDetail>) => void;
|
|
175
175
|
/**
|
|
176
|
-
* Emitted
|
|
176
|
+
* Emitted on every value change as the user types.
|
|
177
177
|
*/
|
|
178
178
|
onInput?: (event: CustomEvent<InputTelInputEventDetail>) => void;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Sets a regular expression the entered value must match to be valid. Overrides the browser's default telephone validation.
|
|
181
181
|
*/
|
|
182
182
|
pattern?: string;
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* Sets placeholder text shown inside the field when it is empty, such as an example phone number format.
|
|
185
185
|
* @default ''
|
|
186
186
|
*/
|
|
187
187
|
placeholder?: string;
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
189
|
+
* Makes the field read-only — the value is displayed but cannot be edited. The value is still submitted with the form.
|
|
190
190
|
* @default false
|
|
191
191
|
*/
|
|
192
192
|
readOnly?: boolean;
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Marks the field as required — form submission is blocked while this field is empty.
|
|
195
195
|
* @default false
|
|
196
196
|
*/
|
|
197
197
|
required?: boolean;
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* Sets the validation state, controlling the visual appearance and style of the feedback message (`none`, `success`, `error`).
|
|
200
200
|
* @default 'none'
|
|
201
201
|
*/
|
|
202
202
|
state?: InputTelState;
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Sets the current telephone number value of the field.
|
|
205
205
|
* @default ''
|
|
206
206
|
*/
|
|
207
207
|
value?: string | null;
|