@porsche-design-system/components-react 3.28.0 → 3.29.0-rc.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 +13 -0
- package/cjs/lib/components/input-number.wrapper.cjs +3 -3
- package/cjs/lib/components/input-password.wrapper.cjs +3 -3
- package/cjs/lib/components/input-search.wrapper.cjs +29 -0
- package/cjs/lib/components/input-text.wrapper.cjs +29 -0
- package/cjs/lib/components/select.wrapper.cjs +3 -3
- package/cjs/lib/components/textarea.wrapper.cjs +1 -1
- package/cjs/public-api.cjs +4 -0
- package/esm/lib/components/index.d.ts +2 -0
- package/esm/lib/components/input-number.wrapper.d.ts +12 -4
- package/esm/lib/components/input-number.wrapper.mjs +3 -3
- package/esm/lib/components/input-password.wrapper.d.ts +10 -2
- package/esm/lib/components/input-password.wrapper.mjs +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +176 -0
- package/esm/lib/components/input-search.wrapper.mjs +27 -0
- package/esm/lib/components/input-text.wrapper.d.ts +192 -0
- package/esm/lib/components/input-text.wrapper.mjs +27 -0
- package/esm/lib/components/select.wrapper.d.ts +8 -0
- package/esm/lib/components/select.wrapper.mjs +3 -3
- package/esm/lib/components/textarea.wrapper.d.ts +4 -4
- package/esm/lib/components/textarea.wrapper.mjs +1 -1
- package/esm/lib/types.d.ts +20 -5
- package/esm/public-api.mjs +2 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +179 -77
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +4 -15
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-search.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +8 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +5 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +4 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +47 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +43 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +4 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +148 -48
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +4 -15
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-search.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +8 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +6 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +45 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +41 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +2 -0
- package/ssr/esm/lib/components/index.d.ts +2 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +12 -4
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +10 -2
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +176 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +192 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +4 -4
- package/ssr/esm/lib/dsr-components/input-base.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +20 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/select.d.ts +2 -0
- package/ssr/esm/lib/types.d.ts +20 -5
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { BaseProps } from '../../BaseProps';
|
|
2
|
+
import type { InputTextAutoComplete, BreakpointCustomizable, InputTextBlurEventDetail, InputTextChangeEventDetail, InputTextInputEventDetail, InputTextState, Theme } from '../types';
|
|
3
|
+
export type PInputTextProps = BaseProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies whether the input can be autofilled by the browser
|
|
6
|
+
*/
|
|
7
|
+
autoComplete?: InputTextAutoComplete;
|
|
8
|
+
/**
|
|
9
|
+
* Displays as a compact version.
|
|
10
|
+
*/
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Show or hide the character counter.
|
|
14
|
+
*/
|
|
15
|
+
counter?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The description text.
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Marks the text input as disabled.
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The id of a form element the text input should be associated with.
|
|
26
|
+
*/
|
|
27
|
+
form?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Show or hide label and description text. For better accessibility, it is recommended to show the label.
|
|
30
|
+
*/
|
|
31
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* The label text.
|
|
34
|
+
*/
|
|
35
|
+
label?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @experimental Shows a loading indicator.
|
|
38
|
+
*/
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The max length of the text input.
|
|
42
|
+
*/
|
|
43
|
+
maxLength?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The message styled depending on validation state.
|
|
46
|
+
*/
|
|
47
|
+
message?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The min length of the text input.
|
|
50
|
+
*/
|
|
51
|
+
minLength?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The name of the text input.
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Emitted when the text input has lost focus.
|
|
58
|
+
*/
|
|
59
|
+
onBlur?: (event: CustomEvent<InputTextBlurEventDetail>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Emitted when the text input loses focus after its value was changed.
|
|
62
|
+
*/
|
|
63
|
+
onChange?: (event: CustomEvent<InputTextChangeEventDetail>) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Emitted when the value has been changed as a direct result of a user action.
|
|
66
|
+
*/
|
|
67
|
+
onInput?: (event: CustomEvent<InputTextInputEventDetail>) => void;
|
|
68
|
+
/**
|
|
69
|
+
* The placeholder text.
|
|
70
|
+
*/
|
|
71
|
+
placeholder?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies whether the text input should be read-only.
|
|
74
|
+
*/
|
|
75
|
+
readOnly?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Marks the text input as required.
|
|
78
|
+
*/
|
|
79
|
+
required?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Indicate whether to enable spell-checking.
|
|
82
|
+
*/
|
|
83
|
+
spellCheck?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The validation state.
|
|
86
|
+
*/
|
|
87
|
+
state?: InputTextState;
|
|
88
|
+
/**
|
|
89
|
+
* Adapts the color depending on the theme.
|
|
90
|
+
*/
|
|
91
|
+
theme?: Theme;
|
|
92
|
+
/**
|
|
93
|
+
* The text input value.
|
|
94
|
+
*/
|
|
95
|
+
value?: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const PInputText: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
98
|
+
/**
|
|
99
|
+
* Specifies whether the input can be autofilled by the browser
|
|
100
|
+
*/
|
|
101
|
+
autoComplete?: InputTextAutoComplete;
|
|
102
|
+
/**
|
|
103
|
+
* Displays as a compact version.
|
|
104
|
+
*/
|
|
105
|
+
compact?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Show or hide the character counter.
|
|
108
|
+
*/
|
|
109
|
+
counter?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The description text.
|
|
112
|
+
*/
|
|
113
|
+
description?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Marks the text input as disabled.
|
|
116
|
+
*/
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* The id of a form element the text input should be associated with.
|
|
120
|
+
*/
|
|
121
|
+
form?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Show or hide label and description text. For better accessibility, it is recommended to show the label.
|
|
124
|
+
*/
|
|
125
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
126
|
+
/**
|
|
127
|
+
* The label text.
|
|
128
|
+
*/
|
|
129
|
+
label?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @experimental Shows a loading indicator.
|
|
132
|
+
*/
|
|
133
|
+
loading?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* The max length of the text input.
|
|
136
|
+
*/
|
|
137
|
+
maxLength?: number;
|
|
138
|
+
/**
|
|
139
|
+
* The message styled depending on validation state.
|
|
140
|
+
*/
|
|
141
|
+
message?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The min length of the text input.
|
|
144
|
+
*/
|
|
145
|
+
minLength?: number;
|
|
146
|
+
/**
|
|
147
|
+
* The name of the text input.
|
|
148
|
+
*/
|
|
149
|
+
name: string;
|
|
150
|
+
/**
|
|
151
|
+
* Emitted when the text input has lost focus.
|
|
152
|
+
*/
|
|
153
|
+
onBlur?: (event: CustomEvent<InputTextBlurEventDetail>) => void;
|
|
154
|
+
/**
|
|
155
|
+
* Emitted when the text input loses focus after its value was changed.
|
|
156
|
+
*/
|
|
157
|
+
onChange?: (event: CustomEvent<InputTextChangeEventDetail>) => void;
|
|
158
|
+
/**
|
|
159
|
+
* Emitted when the value has been changed as a direct result of a user action.
|
|
160
|
+
*/
|
|
161
|
+
onInput?: (event: CustomEvent<InputTextInputEventDetail>) => void;
|
|
162
|
+
/**
|
|
163
|
+
* The placeholder text.
|
|
164
|
+
*/
|
|
165
|
+
placeholder?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Specifies whether the text input should be read-only.
|
|
168
|
+
*/
|
|
169
|
+
readOnly?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Marks the text input as required.
|
|
172
|
+
*/
|
|
173
|
+
required?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Indicate whether to enable spell-checking.
|
|
176
|
+
*/
|
|
177
|
+
spellCheck?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* The validation state.
|
|
180
|
+
*/
|
|
181
|
+
state?: InputTextState;
|
|
182
|
+
/**
|
|
183
|
+
* Adapts the color depending on the theme.
|
|
184
|
+
*/
|
|
185
|
+
theme?: Theme;
|
|
186
|
+
/**
|
|
187
|
+
* The text input value.
|
|
188
|
+
*/
|
|
189
|
+
value?: string;
|
|
190
|
+
} & {
|
|
191
|
+
children?: import("react").ReactNode | undefined;
|
|
192
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -17,6 +17,10 @@ export type PSelectProps = BaseProps & {
|
|
|
17
17
|
* Changes the direction to which the dropdown list appears.
|
|
18
18
|
*/
|
|
19
19
|
dropdownDirection?: SelectDropdownDirection;
|
|
20
|
+
/**
|
|
21
|
+
* Shows an input in the dropdown allowing options to be filtered.
|
|
22
|
+
*/
|
|
23
|
+
filter?: boolean;
|
|
20
24
|
/**
|
|
21
25
|
* The id of a form element the select should be associated with.
|
|
22
26
|
*/
|
|
@@ -75,6 +79,10 @@ export declare const PSelect: import("react").ForwardRefExoticComponent<import("
|
|
|
75
79
|
* Changes the direction to which the dropdown list appears.
|
|
76
80
|
*/
|
|
77
81
|
dropdownDirection?: SelectDropdownDirection;
|
|
82
|
+
/**
|
|
83
|
+
* Shows an input in the dropdown allowing options to be filtered.
|
|
84
|
+
*/
|
|
85
|
+
filter?: boolean;
|
|
78
86
|
/**
|
|
79
87
|
* The id of a form element the select should be associated with.
|
|
80
88
|
*/
|
|
@@ -18,7 +18,7 @@ export type PTextareaProps = BaseProps & {
|
|
|
18
18
|
*/
|
|
19
19
|
form?: string;
|
|
20
20
|
/**
|
|
21
|
-
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
21
|
+
* Show or hide label. For better accessibility, it is recommended to show the label.
|
|
22
22
|
*/
|
|
23
23
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
24
24
|
/**
|
|
@@ -70,7 +70,7 @@ export type PTextareaProps = BaseProps & {
|
|
|
70
70
|
*/
|
|
71
71
|
resize?: TextareaResize;
|
|
72
72
|
/**
|
|
73
|
-
* The
|
|
73
|
+
* The number of rows of the textarea.
|
|
74
74
|
*/
|
|
75
75
|
rows?: number;
|
|
76
76
|
/**
|
|
@@ -116,7 +116,7 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<import
|
|
|
116
116
|
*/
|
|
117
117
|
form?: string;
|
|
118
118
|
/**
|
|
119
|
-
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
119
|
+
* Show or hide label. For better accessibility, it is recommended to show the label.
|
|
120
120
|
*/
|
|
121
121
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
122
122
|
/**
|
|
@@ -168,7 +168,7 @@ export declare const PTextarea: import("react").ForwardRefExoticComponent<import
|
|
|
168
168
|
*/
|
|
169
169
|
resize?: TextareaResize;
|
|
170
170
|
/**
|
|
171
|
-
* The
|
|
171
|
+
* The number of rows of the textarea.
|
|
172
172
|
*/
|
|
173
173
|
rows?: number;
|
|
174
174
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import type { InputBaseState
|
|
2
|
+
import type { InputBaseState } from '@porsche-design-system/components/dist/utils';
|
|
3
3
|
type InputBaseProps = {
|
|
4
4
|
children?: JSX.Element;
|
|
5
5
|
host: HTMLElement;
|
|
6
6
|
id: string;
|
|
7
7
|
label?: string;
|
|
8
8
|
description?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
initialLoading?: boolean;
|
|
9
11
|
required?: boolean;
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
state?: InputBaseState;
|
|
@@ -23,7 +25,7 @@ type InputBaseProps = {
|
|
|
23
25
|
type: string;
|
|
24
26
|
value?: string;
|
|
25
27
|
step?: number;
|
|
26
|
-
|
|
28
|
+
spellCheck?: boolean;
|
|
27
29
|
start?: JSX.Element;
|
|
28
30
|
end?: JSX.Element;
|
|
29
31
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
4
|
+
* @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
5
|
+
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
6
|
+
* @slot {"name": "start", "description": "Shows content at the start of the input (e.g. icon)."}
|
|
7
|
+
* @slot {"name": "end", "description": "Shows content at the end of the input (e.g. search button)."}
|
|
8
|
+
*/
|
|
9
|
+
export declare class DSRInputSearch extends Component<any> {
|
|
10
|
+
host: HTMLElement;
|
|
11
|
+
private internals;
|
|
12
|
+
private isClearable;
|
|
13
|
+
private initialLoading;
|
|
14
|
+
private inputElement;
|
|
15
|
+
private defaultValue;
|
|
16
|
+
formResetCallback(): void;
|
|
17
|
+
formDisabledCallback(): void;
|
|
18
|
+
formStateRestoreCallback(): void;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
4
|
+
* @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
5
|
+
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
6
|
+
* @slot {"name": "start", "description": "Shows content at the start of the input (e.g. unit prefix)."}
|
|
7
|
+
* @slot {"name": "end", "description": "Shows content at the end of the input (e.g. toggle button, unit suffix)."}
|
|
8
|
+
*/
|
|
9
|
+
export declare class DSRInputText extends Component<any> {
|
|
10
|
+
host: HTMLElement;
|
|
11
|
+
private internals;
|
|
12
|
+
private initialLoading;
|
|
13
|
+
private inputElement;
|
|
14
|
+
private defaultValue;
|
|
15
|
+
formResetCallback(): void;
|
|
16
|
+
formDisabledCallback(): void;
|
|
17
|
+
formStateRestoreCallback(): void;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
@@ -10,10 +10,12 @@ import { Component } from 'react';
|
|
|
10
10
|
export declare class DSRSelect extends Component<any> {
|
|
11
11
|
host: HTMLElement;
|
|
12
12
|
private isOpen;
|
|
13
|
+
private hasFilterResults;
|
|
13
14
|
private internals;
|
|
14
15
|
private defaultValue;
|
|
15
16
|
private buttonElement;
|
|
16
17
|
private popoverElement;
|
|
18
|
+
private filterInputElement;
|
|
17
19
|
private selectOptions;
|
|
18
20
|
private selectOptgroups;
|
|
19
21
|
private preventOptionUpdate;
|
package/ssr/esm/lib/types.d.ts
CHANGED
|
@@ -1091,8 +1091,7 @@ export type IconColor = (typeof ICON_COLORS)[number];
|
|
|
1091
1091
|
export type InputNumberState = FormState;
|
|
1092
1092
|
declare const INPUT_NUMBER_AUTO_COMPLETE: readonly [
|
|
1093
1093
|
"off",
|
|
1094
|
-
"on"
|
|
1095
|
-
""
|
|
1094
|
+
"on"
|
|
1096
1095
|
];
|
|
1097
1096
|
export type InputNumberAutoComplete = (typeof INPUT_NUMBER_AUTO_COMPLETE)[number];
|
|
1098
1097
|
export type InputNumberChangeEventDetail = Event;
|
|
@@ -1102,7 +1101,6 @@ export type InputPasswordState = FormState;
|
|
|
1102
1101
|
declare const INPUT_PASSWORD_AUTO_COMPLETE: readonly [
|
|
1103
1102
|
"off",
|
|
1104
1103
|
"on",
|
|
1105
|
-
"",
|
|
1106
1104
|
"current-password",
|
|
1107
1105
|
"new-password"
|
|
1108
1106
|
];
|
|
@@ -1110,6 +1108,24 @@ export type InputPasswordAutoComplete = (typeof INPUT_PASSWORD_AUTO_COMPLETE)[nu
|
|
|
1110
1108
|
export type InputPasswordChangeEventDetail = Event;
|
|
1111
1109
|
export type InputPasswordBlurEventDetail = Event;
|
|
1112
1110
|
export type InputPasswordInputEventDetail = InputEvent;
|
|
1111
|
+
export type InputSearchState = FormState;
|
|
1112
|
+
declare const INPUT_SEARCH_AUTO_COMPLETE: readonly [
|
|
1113
|
+
"off",
|
|
1114
|
+
"on"
|
|
1115
|
+
];
|
|
1116
|
+
export type InputSearchAutoComplete = (typeof INPUT_SEARCH_AUTO_COMPLETE)[number];
|
|
1117
|
+
export type InputSearchChangeEventDetail = Event;
|
|
1118
|
+
export type InputSearchBlurEventDetail = Event;
|
|
1119
|
+
export type InputSearchInputEventDetail = InputEvent;
|
|
1120
|
+
export type InputTextState = FormState;
|
|
1121
|
+
declare const INPUT_TEXT_AUTO_COMPLETE: readonly [
|
|
1122
|
+
"off",
|
|
1123
|
+
"on"
|
|
1124
|
+
];
|
|
1125
|
+
export type InputTextAutoComplete = (typeof INPUT_TEXT_AUTO_COMPLETE)[number];
|
|
1126
|
+
export type InputTextChangeEventDetail = Event;
|
|
1127
|
+
export type InputTextBlurEventDetail = Event;
|
|
1128
|
+
export type InputTextInputEventDetail = InputEvent;
|
|
1113
1129
|
export type LinkIcon = LinkButtonIconName;
|
|
1114
1130
|
export type LinkPureIcon = LinkButtonIconName;
|
|
1115
1131
|
export type LinkPureAriaAttribute = LinkAriaAttribute;
|
|
@@ -1500,8 +1516,7 @@ export type TextListType = (typeof TEXT_LIST_TYPES)[number];
|
|
|
1500
1516
|
export type TextareaState = FormState;
|
|
1501
1517
|
declare const AUTO_COMPLETE: readonly [
|
|
1502
1518
|
"off",
|
|
1503
|
-
"on"
|
|
1504
|
-
""
|
|
1519
|
+
"on"
|
|
1505
1520
|
];
|
|
1506
1521
|
export type TextareaAutoComplete = (typeof AUTO_COMPLETE)[number];
|
|
1507
1522
|
declare const TEXTAREA_WRAPS: readonly [
|