@aws-amplify/ui-react 3.0.4 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IconWarning-2a211ab8.js +1 -0
- package/dist/esm/PrimitiveCatalog.js +1 -0
- package/dist/esm/components/Authenticator/hooks/useAuthenticator/index.js +1 -1
- package/dist/esm/hooks/useBreakpointValue.js +1 -1
- package/dist/esm/internal.js +1 -1
- package/dist/esm/primitives/Alert/Alert.js +1 -1
- package/dist/esm/primitives/Checkbox/Checkbox.js +1 -1
- package/dist/esm/primitives/CheckboxField/CheckboxField.js +1 -1
- package/dist/esm/primitives/Link/Link.js +1 -1
- package/dist/esm/primitives/Pagination/PaginationItem.js +1 -1
- package/dist/esm/primitives/PasswordField/PasswordField.js +1 -1
- package/dist/esm/primitives/PasswordField/ShowPasswordButton.js +1 -1
- package/dist/esm/primitives/SliderField/SliderField.js +1 -1
- package/dist/esm/primitives/StepperField/StepperField.js +1 -1
- package/dist/esm/primitives/shared/constants.js +1 -1
- package/dist/esm/primitives/shared/responsive/getMediaQueries.js +1 -1
- package/dist/esm/primitives/shared/responsive/utils.js +1 -1
- package/dist/esm/primitives/shared/styleUtils.js +1 -1
- package/dist/esm/primitives/shared/types.js +1 -0
- package/dist/esm/primitives/shared/utils.js +1 -1
- package/dist/esm/primitives/utils/testUtils.js +1 -1
- package/dist/esm/primitives/utils/useLayoutEffect.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/primitives.json +9 -0
- package/dist/styles.css +75 -67
- package/dist/types/PrimitiveCatalog.d.ts +2 -0
- package/dist/types/internal.d.ts +1 -0
- package/dist/types/primitives/Alert/Alert.d.ts +1 -1
- package/dist/types/primitives/Badge/Badge.d.ts +1 -1
- package/dist/types/primitives/Button/Button.d.ts +1 -1
- package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/primitives/Card/Card.d.ts +1 -1
- package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/primitives/Divider/Divider.d.ts +1 -1
- package/dist/types/primitives/Expander/Expander.d.ts +1 -1
- package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
- package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
- package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
- package/dist/types/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/Icon.d.ts +1 -1
- package/dist/types/primitives/Image/Image.d.ts +1 -1
- package/dist/types/primitives/Input/Input.d.ts +1 -1
- package/dist/types/primitives/Label/Label.d.ts +1 -1
- package/dist/types/primitives/Link/Link.d.ts +1 -1
- package/dist/types/primitives/Loader/Loader.d.ts +1 -1
- package/dist/types/primitives/Menu/Menu.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
- package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
- package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
- package/dist/types/primitives/Radio/Radio.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchField.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
- package/dist/types/primitives/Select/Select.d.ts +1 -1
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
- package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
- package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/primitives/Table/Table.d.ts +1 -1
- package/dist/types/primitives/Table/TableBody.d.ts +1 -1
- package/dist/types/primitives/Table/TableCell.d.ts +1 -1
- package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
- package/dist/types/primitives/Table/TableHead.d.ts +1 -1
- package/dist/types/primitives/Table/TableRow.d.ts +1 -1
- package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
- package/dist/types/primitives/Text/Text.d.ts +1 -1
- package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
- package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +3 -3
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/primitives/shared/constants.d.ts +14 -544
- package/dist/types/primitives/shared/responsive/utils.d.ts +7 -1
- package/dist/types/primitives/shared/styleUtils.d.ts +12 -6
- package/dist/types/primitives/shared/types.d.ts +130 -0
- package/dist/types/primitives/shared/utils.d.ts +13 -12
- package/dist/types/primitives/types/alert.d.ts +5 -0
- package/dist/types/primitives/types/link.d.ts +4 -0
- package/dist/types/primitives/types/passwordField.d.ts +32 -0
- package/dist/types/primitives/types/sliderField.d.ts +6 -0
- package/dist/types/primitives/types/style.d.ts +4 -0
- package/dist/types/primitives/types/theme.d.ts +2 -48
- package/dist/types/primitives/utils/testUtils.d.ts +2 -2
- package/dist/types/types/catalog.d.ts +3 -7
- package/package.json +10 -13
- package/dist/IconWarning-227761f5.js +0 -1
- package/dist/esm/primitives/types/theme.js +0 -1
- package/dist/esm/primitives-catalog.js +0 -27124
|
@@ -1,540 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly className: "amplify-alert__icon";
|
|
9
|
-
readonly components: readonly ["Alert"];
|
|
10
|
-
readonly description: "Class applied to Icon component within the Alert primitive";
|
|
11
|
-
};
|
|
12
|
-
readonly AlertHeading: {
|
|
13
|
-
readonly className: "amplify-alert__heading";
|
|
14
|
-
readonly components: readonly ["Alert"];
|
|
15
|
-
readonly description: "Class applied to the heading View";
|
|
16
|
-
};
|
|
17
|
-
readonly AlertBody: {
|
|
18
|
-
readonly className: "amplify-alert__body";
|
|
19
|
-
readonly components: readonly ["Alert"];
|
|
20
|
-
readonly description: "Class applied to the body View";
|
|
21
|
-
};
|
|
22
|
-
readonly AlertDismiss: {
|
|
23
|
-
readonly className: "amplify-alert__dismiss";
|
|
24
|
-
readonly components: readonly ["Alert"];
|
|
25
|
-
readonly description: "Class applied to the close Button";
|
|
26
|
-
};
|
|
27
|
-
readonly Badge: {
|
|
28
|
-
readonly className: "amplify-badge";
|
|
29
|
-
readonly components: readonly ["Badge"];
|
|
30
|
-
readonly description: "Top level element that wraps the Badge component";
|
|
31
|
-
};
|
|
32
|
-
readonly Button: {
|
|
33
|
-
readonly className: "amplify-button";
|
|
34
|
-
readonly components: readonly ["Button"];
|
|
35
|
-
readonly description: "Top level element that wraps the Button primitive";
|
|
36
|
-
};
|
|
37
|
-
readonly ButtonGroup: {
|
|
38
|
-
readonly className: "amplify-buttongroup";
|
|
39
|
-
};
|
|
40
|
-
readonly ButtonLoaderWrapper: {
|
|
41
|
-
readonly className: "amplify-button__loader-wrapper";
|
|
42
|
-
readonly components: readonly ["Button"];
|
|
43
|
-
readonly description: "Class applied to the Loader component within the Button Loading state";
|
|
44
|
-
};
|
|
45
|
-
readonly Card: {
|
|
46
|
-
readonly className: "amplify-card";
|
|
47
|
-
readonly components: readonly ["Card"];
|
|
48
|
-
readonly description: "Top level element that wraps the Card primitive";
|
|
49
|
-
};
|
|
50
|
-
readonly Checkbox: {
|
|
51
|
-
readonly className: "amplify-checkbox";
|
|
52
|
-
readonly components: readonly ["Checkbox"];
|
|
53
|
-
readonly description: "Top level element that wraps the Checkbox primitive";
|
|
54
|
-
};
|
|
55
|
-
readonly CheckboxButton: {
|
|
56
|
-
readonly className: "amplify-checkbox__button";
|
|
57
|
-
readonly components: readonly ["Checkbox"];
|
|
58
|
-
readonly description: "Wrapper for the checked icon within the Checkbox primitive";
|
|
59
|
-
};
|
|
60
|
-
readonly CheckboxIcon: {
|
|
61
|
-
readonly className: "amplify-checkbox__icon";
|
|
62
|
-
readonly components: readonly ["Checkbox"];
|
|
63
|
-
readonly description: "Class applied to the checked icon within the Checkbox primitive";
|
|
64
|
-
};
|
|
65
|
-
readonly CheckboxInput: {
|
|
66
|
-
readonly className: "amplify-checkbox__input";
|
|
67
|
-
readonly components: readonly ["Checkbox"];
|
|
68
|
-
readonly description: "Class applied to the visually hidden checkbox input within the Checkbox primitive";
|
|
69
|
-
};
|
|
70
|
-
readonly CheckboxLabel: {
|
|
71
|
-
readonly className: "amplify-checkbox__label";
|
|
72
|
-
readonly components: readonly ["Checkbox"];
|
|
73
|
-
readonly description: "Class applied to the label within the Checkbox primitive";
|
|
74
|
-
};
|
|
75
|
-
readonly CheckboxField: {
|
|
76
|
-
readonly className: "amplify-checkboxfield";
|
|
77
|
-
readonly components: readonly ["CheckboxField"];
|
|
78
|
-
readonly description: "Top level element that wraps the CheckboxField primitive";
|
|
79
|
-
};
|
|
80
|
-
readonly Collection: {
|
|
81
|
-
readonly className: "amplify-collection";
|
|
82
|
-
readonly components: readonly ["Collection"];
|
|
83
|
-
readonly description: "Top level element that wraps the Collection primitive";
|
|
84
|
-
};
|
|
85
|
-
readonly CollectionItems: {
|
|
86
|
-
readonly className: "amplify-collection-items";
|
|
87
|
-
readonly components: readonly ["Collection"];
|
|
88
|
-
readonly description: "Class applied to the element that wraps all the items in a collection";
|
|
89
|
-
};
|
|
90
|
-
readonly CollectionSearch: {
|
|
91
|
-
readonly className: "amplify-collection-search";
|
|
92
|
-
readonly components: readonly ["Collection"];
|
|
93
|
-
readonly description: "Class applied to the element that wraps the collection search box";
|
|
94
|
-
};
|
|
95
|
-
readonly CollectionPagination: {
|
|
96
|
-
readonly className: "amplify-collection-pagination";
|
|
97
|
-
readonly components: readonly ["Collection"];
|
|
98
|
-
readonly description: "Class applied to the element that wraps the pagination component in a collection";
|
|
99
|
-
};
|
|
100
|
-
readonly CountryCodeSelect: {
|
|
101
|
-
readonly className: "amplify-countrycodeselect";
|
|
102
|
-
readonly components: readonly ["PhoneNumberField"];
|
|
103
|
-
readonly description: "Class applied to the Country Code Select within the PhoneNumberField primitive";
|
|
104
|
-
};
|
|
105
|
-
readonly Divider: {
|
|
106
|
-
readonly className: "amplify-divider";
|
|
107
|
-
readonly components: readonly ["Divider"];
|
|
108
|
-
readonly description: "Top level element that wraps the Divider primitive";
|
|
109
|
-
};
|
|
110
|
-
readonly DividerLabel: {
|
|
111
|
-
readonly className: "amplify-divider--label";
|
|
112
|
-
readonly components: readonly ["Divider"];
|
|
113
|
-
readonly description: "Class applied to the label of the Divider component";
|
|
114
|
-
};
|
|
115
|
-
readonly Expander: {
|
|
116
|
-
readonly className: "amplify-expander";
|
|
117
|
-
readonly components: readonly ["Expander"];
|
|
118
|
-
readonly description: "Top level element that wraps the Expander primitive";
|
|
119
|
-
};
|
|
120
|
-
readonly ExpanderContent: {
|
|
121
|
-
readonly className: "amplify-expander__content";
|
|
122
|
-
readonly components: readonly ["Expander"];
|
|
123
|
-
readonly description: "Expander content container";
|
|
124
|
-
};
|
|
125
|
-
readonly ExpanderContentText: {
|
|
126
|
-
readonly className: "amplify-expander__content__text";
|
|
127
|
-
readonly components: readonly ["Expander"];
|
|
128
|
-
readonly description: "Expander content text";
|
|
129
|
-
};
|
|
130
|
-
readonly ExpanderHeader: {
|
|
131
|
-
readonly className: "amplify-expander__header";
|
|
132
|
-
readonly components: readonly ["Expander"];
|
|
133
|
-
readonly description: "Expander item header";
|
|
134
|
-
};
|
|
135
|
-
readonly ExpanderIcon: {
|
|
136
|
-
readonly className: "amplify-expander__icon";
|
|
137
|
-
readonly components: readonly ["Expander"];
|
|
138
|
-
readonly description: "Icon to indicate whether an item is expanded or collapsed";
|
|
139
|
-
};
|
|
140
|
-
readonly ExpanderItem: {
|
|
141
|
-
readonly className: "amplify-expander__item";
|
|
142
|
-
readonly components: readonly ["Expander"];
|
|
143
|
-
readonly description: "Expander item(containier for header, trigger, and content)";
|
|
144
|
-
};
|
|
145
|
-
readonly ExpanderTrigger: {
|
|
146
|
-
readonly className: "amplify-expander__trigger";
|
|
147
|
-
readonly components: readonly ["Expander"];
|
|
148
|
-
readonly description: "Expander item trigger(button)";
|
|
149
|
-
};
|
|
150
|
-
readonly Field: {
|
|
151
|
-
readonly className: "amplify-field";
|
|
152
|
-
};
|
|
153
|
-
readonly FieldDescription: {
|
|
154
|
-
readonly className: "amplify-field__description";
|
|
155
|
-
};
|
|
156
|
-
readonly FieldErrorMessage: {
|
|
157
|
-
readonly className: "amplify-field__error-message";
|
|
158
|
-
};
|
|
159
|
-
readonly FieldGroup: {
|
|
160
|
-
readonly className: "amplify-field-group";
|
|
161
|
-
};
|
|
162
|
-
readonly FieldGroupControl: {
|
|
163
|
-
readonly className: "amplify-field-group__control";
|
|
164
|
-
};
|
|
165
|
-
readonly FieldGroupOuterEnd: {
|
|
166
|
-
readonly className: "amplify-field-group__outer-end";
|
|
167
|
-
};
|
|
168
|
-
readonly FieldGroupOuterStart: {
|
|
169
|
-
readonly className: "amplify-field-group__outer-start";
|
|
170
|
-
};
|
|
171
|
-
readonly FieldGroupInnerEnd: {
|
|
172
|
-
readonly className: "amplify-field-group__inner-end";
|
|
173
|
-
};
|
|
174
|
-
readonly FieldGroupInnerStart: {
|
|
175
|
-
readonly className: "amplify-field-group__inner-start";
|
|
176
|
-
};
|
|
177
|
-
readonly FieldGroupIcon: {
|
|
178
|
-
readonly className: "amplify-field-group__icon";
|
|
179
|
-
};
|
|
180
|
-
readonly FieldGroupIconButton: {
|
|
181
|
-
readonly className: "amplify-field-group__icon-button";
|
|
182
|
-
};
|
|
183
|
-
readonly FieldGroupHasInnerEnd: {
|
|
184
|
-
readonly className: "amplify-field-group--has-inner-end";
|
|
185
|
-
};
|
|
186
|
-
readonly FieldGroupHasInnerStart: {
|
|
187
|
-
readonly className: "amplify-field-group--has-inner-start";
|
|
188
|
-
};
|
|
189
|
-
readonly FieldShowPassword: {
|
|
190
|
-
readonly className: "amplify-field__show-password";
|
|
191
|
-
};
|
|
192
|
-
readonly FieldGroupFieldWrapper: {
|
|
193
|
-
readonly className: "amplify-field-group__field-wrapper";
|
|
194
|
-
};
|
|
195
|
-
readonly Flex: {
|
|
196
|
-
readonly className: "amplify-flex";
|
|
197
|
-
readonly components: readonly ["Flex"];
|
|
198
|
-
readonly description: "Top level element that wraps the Flex primitive";
|
|
199
|
-
};
|
|
200
|
-
readonly Grid: {
|
|
201
|
-
readonly className: "amplify-grid";
|
|
202
|
-
readonly components: readonly ["Grid"];
|
|
203
|
-
readonly description: "Top level element that wraps the Grid primitive";
|
|
204
|
-
};
|
|
205
|
-
readonly Heading: {
|
|
206
|
-
readonly className: "amplify-heading";
|
|
207
|
-
readonly components: readonly ["Heading"];
|
|
208
|
-
readonly description: "Top level element that wraps the Heading primitive";
|
|
209
|
-
};
|
|
210
|
-
readonly Icon: {
|
|
211
|
-
readonly className: "amplify-icon";
|
|
212
|
-
readonly components: readonly ["Icon"];
|
|
213
|
-
readonly description: "Top level element that wraps the Icon primitive";
|
|
214
|
-
};
|
|
215
|
-
readonly Image: {
|
|
216
|
-
readonly className: "amplify-image";
|
|
217
|
-
readonly components: readonly ["Image"];
|
|
218
|
-
readonly description: "Top level element that wraps the Image primitive";
|
|
219
|
-
};
|
|
220
|
-
readonly Input: {
|
|
221
|
-
readonly className: "amplify-input";
|
|
222
|
-
};
|
|
223
|
-
readonly Label: {
|
|
224
|
-
readonly className: "amplify-label";
|
|
225
|
-
};
|
|
226
|
-
readonly Link: {
|
|
227
|
-
readonly className: "amplify-link";
|
|
228
|
-
readonly components: readonly ["Link"];
|
|
229
|
-
readonly description: "Top level element that wraps the Link primitive";
|
|
230
|
-
};
|
|
231
|
-
readonly Loader: {
|
|
232
|
-
readonly className: "amplify-loader";
|
|
233
|
-
readonly components: readonly ["Loader"];
|
|
234
|
-
readonly description: "Top level element that wraps the Loader primitive";
|
|
235
|
-
};
|
|
236
|
-
readonly LoaderDeterminate: {
|
|
237
|
-
readonly className: "amplify-loader--determinate";
|
|
238
|
-
readonly components: readonly ["Loader"];
|
|
239
|
-
readonly description: "Class applied to a determinate loader";
|
|
240
|
-
};
|
|
241
|
-
readonly LoaderPercentageText: {
|
|
242
|
-
readonly className: "amplify-loader__percentage-text";
|
|
243
|
-
readonly components: readonly ["Loader"];
|
|
244
|
-
readonly description: "Class applied to the percentage text of loader";
|
|
245
|
-
};
|
|
246
|
-
readonly MenuContent: {
|
|
247
|
-
readonly className: "amplify-menu-content";
|
|
248
|
-
readonly components: readonly ["Menu"];
|
|
249
|
-
readonly description: "Menu content container (Flex)";
|
|
250
|
-
};
|
|
251
|
-
readonly MenuItem: {
|
|
252
|
-
readonly className: "amplify-menu-content__item";
|
|
253
|
-
readonly components: readonly ["Menu"];
|
|
254
|
-
readonly description: "Menu item button (MenuButton, wrapped in amplify-menu-content class)";
|
|
255
|
-
};
|
|
256
|
-
readonly MenuTrigger: {
|
|
257
|
-
readonly className: "amplify-menu-trigger";
|
|
258
|
-
readonly components: readonly ["Menu"];
|
|
259
|
-
readonly description: "Menu trigger button (MenuButton, not wrapped in amplify-menu-content class)";
|
|
260
|
-
};
|
|
261
|
-
readonly Pagination: {
|
|
262
|
-
readonly className: "amplify-pagination";
|
|
263
|
-
readonly components: readonly ["Pagination"];
|
|
264
|
-
readonly description: "Top level element that wraps the Pagination primitive";
|
|
265
|
-
};
|
|
266
|
-
readonly PaginationItemButton: {
|
|
267
|
-
readonly className: "amplify-pagination__item-button";
|
|
268
|
-
readonly components: readonly ["Pagination"];
|
|
269
|
-
readonly description: "Class applied to the pagination buttons";
|
|
270
|
-
};
|
|
271
|
-
readonly PaginationItemCurrent: {
|
|
272
|
-
readonly className: "amplify-pagination__item-current";
|
|
273
|
-
readonly components: readonly ["Pagination"];
|
|
274
|
-
readonly description: "Class applied to the currently selected pagination button";
|
|
275
|
-
};
|
|
276
|
-
readonly PaginationItemEllipsis: {
|
|
277
|
-
readonly className: "amplify-pagination__item-ellipsis";
|
|
278
|
-
readonly components: readonly ["Pagination"];
|
|
279
|
-
readonly description: "Class applied to the ellipsis within the Pagination primitive";
|
|
280
|
-
};
|
|
281
|
-
readonly PasswordField: {
|
|
282
|
-
readonly className: "amplify-passwordfield";
|
|
283
|
-
readonly components: readonly ["PasswordField"];
|
|
284
|
-
readonly description: "Top level element that wraps the PasswordField primitive";
|
|
285
|
-
};
|
|
286
|
-
readonly PhoneNumberField: {
|
|
287
|
-
readonly className: "amplify-phonenumberfield";
|
|
288
|
-
readonly components: readonly ["PhoneNumberField"];
|
|
289
|
-
readonly description: "Top level element that wraps the PhoneNumberField primitive";
|
|
290
|
-
};
|
|
291
|
-
readonly Placeholder: {
|
|
292
|
-
readonly className: "amplify-placeholder";
|
|
293
|
-
readonly components: readonly ["Placeholder"];
|
|
294
|
-
readonly description: "Top level element that wraps the Placeholder primitive";
|
|
295
|
-
};
|
|
296
|
-
readonly Radio: {
|
|
297
|
-
readonly className: "amplify-radio";
|
|
298
|
-
readonly components: readonly ["RadioGroupField", "Radio"];
|
|
299
|
-
readonly description: "Top level element that wraps the Radio primitive";
|
|
300
|
-
};
|
|
301
|
-
readonly RadioButton: {
|
|
302
|
-
readonly className: "amplify-radio__button";
|
|
303
|
-
readonly components: readonly ["RadioGroupField", "Radio"];
|
|
304
|
-
readonly description: "Class applied to the displayed radio button";
|
|
305
|
-
};
|
|
306
|
-
readonly RadioInput: {
|
|
307
|
-
readonly className: "amplify-radio__input";
|
|
308
|
-
readonly components: readonly ["RadioGroupField", "Radio"];
|
|
309
|
-
readonly description: "Class applied to the visually hidden radio input";
|
|
310
|
-
};
|
|
311
|
-
readonly RadioLabel: {
|
|
312
|
-
readonly className: "amplify-radio__label";
|
|
313
|
-
readonly components: readonly ["RadioGroupField", "Radio"];
|
|
314
|
-
readonly description: "Class applied to the radio label";
|
|
315
|
-
};
|
|
316
|
-
readonly RadioGroupField: {
|
|
317
|
-
readonly className: "amplify-radiogroupfield";
|
|
318
|
-
readonly components: readonly ["RadioGroupField"];
|
|
319
|
-
readonly description: "Top level element that wraps the RadioGroupField primitive";
|
|
320
|
-
};
|
|
321
|
-
readonly RadioGroup: {
|
|
322
|
-
readonly className: "amplify-radiogroup";
|
|
323
|
-
readonly components: readonly ["RadioGroupField"];
|
|
324
|
-
readonly description: "Class applied to the radio group wrapper";
|
|
325
|
-
};
|
|
326
|
-
readonly Rating: {
|
|
327
|
-
readonly className: "amplify-rating";
|
|
328
|
-
readonly components: readonly ["Rating"];
|
|
329
|
-
readonly description: "Top level element that wraps the Rating primitive";
|
|
330
|
-
};
|
|
331
|
-
readonly ScrollView: {
|
|
332
|
-
readonly className: "amplify-scrollview";
|
|
333
|
-
readonly components: readonly ["ScrollView"];
|
|
334
|
-
readonly description: "Top level element that wraps the ScrollView primitive";
|
|
335
|
-
};
|
|
336
|
-
readonly SearchField: {
|
|
337
|
-
readonly className: "amplify-searchfield";
|
|
338
|
-
readonly components: readonly ["SearchField"];
|
|
339
|
-
readonly description: "Top level element that wraps the SearchField primitive";
|
|
340
|
-
};
|
|
341
|
-
readonly SearchFieldClear: {
|
|
342
|
-
readonly className: "amplify-searchfield__clear";
|
|
343
|
-
readonly components: readonly ["SearchField"];
|
|
344
|
-
readonly description: "Class applied to the search field clear button";
|
|
345
|
-
};
|
|
346
|
-
readonly SearchFieldSearch: {
|
|
347
|
-
readonly className: "amplify-searchfield__search";
|
|
348
|
-
readonly components: readonly ["SearchField"];
|
|
349
|
-
readonly description: "Class applied to the search button";
|
|
350
|
-
};
|
|
351
|
-
readonly Select: {
|
|
352
|
-
readonly className: "amplify-select";
|
|
353
|
-
readonly components: readonly ["Select", "SelectField"];
|
|
354
|
-
readonly description: "Class applied to the select element";
|
|
355
|
-
};
|
|
356
|
-
readonly SelectField: {
|
|
357
|
-
readonly className: "amplify-selectfield";
|
|
358
|
-
readonly components: readonly ["SelectField"];
|
|
359
|
-
readonly description: "Top level element that wraps the SelectField primitive";
|
|
360
|
-
};
|
|
361
|
-
readonly SelectWrapper: {
|
|
362
|
-
readonly className: "amplify-select__wrapper";
|
|
363
|
-
readonly components: readonly ["Select", "SelectField"];
|
|
364
|
-
readonly description: "Class applied to the select wrapper";
|
|
365
|
-
};
|
|
366
|
-
readonly SelectIconWrapper: {
|
|
367
|
-
readonly className: "amplify-select__icon-wrapper";
|
|
368
|
-
readonly components: readonly ["Select", "SelectField"];
|
|
369
|
-
readonly description: "Class applied to the select icon wrapper";
|
|
370
|
-
};
|
|
371
|
-
readonly SliderField: {
|
|
372
|
-
readonly className: "amplify-sliderfield";
|
|
373
|
-
readonly components: readonly ["SliderField"];
|
|
374
|
-
readonly description: "Top level element that wraps the SliderField primitive";
|
|
375
|
-
};
|
|
376
|
-
readonly SliderFieldGroup: {
|
|
377
|
-
readonly className: "amplify-sliderfield__group";
|
|
378
|
-
readonly components: readonly ["SliderField"];
|
|
379
|
-
readonly description: "Class applied to the element that wraps the slider root";
|
|
380
|
-
};
|
|
381
|
-
readonly SliderFieldLabel: {
|
|
382
|
-
readonly className: "amplify-sliderfield__label";
|
|
383
|
-
readonly components: readonly ["SliderField"];
|
|
384
|
-
readonly description: "Class applied to the slider label";
|
|
385
|
-
};
|
|
386
|
-
readonly SliderFieldRange: {
|
|
387
|
-
readonly className: "amplify-sliderfield__range";
|
|
388
|
-
readonly components: readonly ["SliderField"];
|
|
389
|
-
readonly description: "Class applied to the filled in portion of the slider track";
|
|
390
|
-
};
|
|
391
|
-
readonly SliderFieldRoot: {
|
|
392
|
-
readonly className: "amplify-sliderfield__root";
|
|
393
|
-
readonly components: readonly ["SliderField"];
|
|
394
|
-
readonly description: "Class applied to the slider root which wraps the track and thumb";
|
|
395
|
-
};
|
|
396
|
-
readonly SliderFieldThumb: {
|
|
397
|
-
readonly className: "amplify-sliderfield__thumb";
|
|
398
|
-
readonly components: readonly ["SliderField"];
|
|
399
|
-
readonly description: "Class applied to the slider thumb";
|
|
400
|
-
};
|
|
401
|
-
readonly SliderFieldTrack: {
|
|
402
|
-
readonly className: "amplify-sliderfield__track";
|
|
403
|
-
readonly components: readonly ["SliderField"];
|
|
404
|
-
readonly description: "Class applied to the slider track";
|
|
405
|
-
};
|
|
406
|
-
readonly StepperField: {
|
|
407
|
-
readonly className: "amplify-stepperfield";
|
|
408
|
-
readonly components: readonly ["StepperField"];
|
|
409
|
-
readonly description: "Top level element that wraps the StepperField primitive";
|
|
410
|
-
};
|
|
411
|
-
readonly StepperFieldButtonDecrease: {
|
|
412
|
-
readonly className: "amplify-stepperfield__button--decrease";
|
|
413
|
-
readonly components: readonly ["StepperField"];
|
|
414
|
-
readonly description: "Class applied to the decrease button";
|
|
415
|
-
};
|
|
416
|
-
readonly StepperFieldButtonIncrease: {
|
|
417
|
-
readonly className: "amplify-stepperfield__button--increase";
|
|
418
|
-
readonly components: readonly ["StepperField"];
|
|
419
|
-
readonly description: "Class applied to the increase button";
|
|
420
|
-
};
|
|
421
|
-
readonly StepperFieldInput: {
|
|
422
|
-
readonly className: "amplify-stepperfield__input";
|
|
423
|
-
readonly components: readonly ["StepperField"];
|
|
424
|
-
readonly description: "Class applied to the StepperField input";
|
|
425
|
-
};
|
|
426
|
-
readonly SwitchField: {
|
|
427
|
-
readonly className: "amplify-switchfield";
|
|
428
|
-
readonly components: readonly ["SwitchField"];
|
|
429
|
-
readonly description: "Top level element that wraps the SwitchField primitive";
|
|
430
|
-
};
|
|
431
|
-
readonly SwitchLabel: {
|
|
432
|
-
readonly className: "amplify-switch-label";
|
|
433
|
-
readonly components: readonly ["SwitchField"];
|
|
434
|
-
readonly description: "Class applied to the SwitchField label text";
|
|
435
|
-
};
|
|
436
|
-
readonly SwitchThumb: {
|
|
437
|
-
readonly className: "amplify-switch-thumb";
|
|
438
|
-
readonly components: readonly ["SwitchField"];
|
|
439
|
-
readonly description: "Class applied to the SwitchField thumb";
|
|
440
|
-
};
|
|
441
|
-
readonly SwitchTrack: {
|
|
442
|
-
readonly className: "amplify-switch-track";
|
|
443
|
-
readonly components: readonly ["SwitchField"];
|
|
444
|
-
readonly description: "Class applied to the SwitchField track";
|
|
445
|
-
};
|
|
446
|
-
readonly SwitchWrapper: {
|
|
447
|
-
readonly className: "amplify-switch__wrapper";
|
|
448
|
-
readonly components: readonly ["SwitchField"];
|
|
449
|
-
readonly description: "Class applied to the label element that wraps the SwitchField label and track";
|
|
450
|
-
};
|
|
451
|
-
readonly Table: {
|
|
452
|
-
readonly className: "amplify-table";
|
|
453
|
-
readonly components: readonly ["Table"];
|
|
454
|
-
readonly description: "Top level element that wraps the Table primitive";
|
|
455
|
-
};
|
|
456
|
-
readonly TableCaption: {
|
|
457
|
-
readonly className: "amplify-table__caption";
|
|
458
|
-
readonly components: readonly ["Table"];
|
|
459
|
-
readonly description: "Class applied to the content provided as the caption prop";
|
|
460
|
-
};
|
|
461
|
-
readonly TableBody: {
|
|
462
|
-
readonly className: "amplify-table__body";
|
|
463
|
-
readonly components: readonly ["Table"];
|
|
464
|
-
readonly description: "Class applied to TableBody component";
|
|
465
|
-
};
|
|
466
|
-
readonly TableTd: {
|
|
467
|
-
readonly className: "amplify-table__td";
|
|
468
|
-
readonly components: readonly ["Table"];
|
|
469
|
-
readonly description: "Class applied to TableCell component rendered as a <td> element (<TableCell as=\"td\" />)";
|
|
470
|
-
};
|
|
471
|
-
readonly TableTh: {
|
|
472
|
-
readonly className: "amplify-table__th";
|
|
473
|
-
readonly components: readonly ["Table"];
|
|
474
|
-
readonly description: "Class applied to TableCell comopnent rendered as a <th> element (<TableCell as=\"th\" />)";
|
|
475
|
-
};
|
|
476
|
-
readonly TableFoot: {
|
|
477
|
-
readonly className: "amplify-table__foot";
|
|
478
|
-
readonly components: readonly ["Table"];
|
|
479
|
-
readonly description: "Class applied to TableFoot component";
|
|
480
|
-
};
|
|
481
|
-
readonly TableHead: {
|
|
482
|
-
readonly className: "amplify-table__head";
|
|
483
|
-
readonly components: readonly ["Table"];
|
|
484
|
-
readonly description: "Class applied to TableHead component";
|
|
485
|
-
};
|
|
486
|
-
readonly TableRow: {
|
|
487
|
-
readonly className: "amplify-table__row";
|
|
488
|
-
readonly components: readonly ["Table"];
|
|
489
|
-
readonly description: "Class applied to TableRow component";
|
|
490
|
-
};
|
|
491
|
-
readonly Tabs: {
|
|
492
|
-
readonly className: "amplify-tabs";
|
|
493
|
-
readonly components: readonly ["Tabs"];
|
|
494
|
-
readonly description: "Top level element that wraps the Tabs primitive";
|
|
495
|
-
};
|
|
496
|
-
readonly TabItems: {
|
|
497
|
-
readonly className: "amplify-tabs-item";
|
|
498
|
-
readonly components: readonly ["Tabs"];
|
|
499
|
-
readonly description: "Top level element that wraps the TabItem primitive";
|
|
500
|
-
};
|
|
501
|
-
readonly Text: {
|
|
502
|
-
readonly className: "amplify-text";
|
|
503
|
-
readonly components: readonly ["Text"];
|
|
504
|
-
readonly description: "Top level element that wraps the Text primitive";
|
|
505
|
-
};
|
|
506
|
-
readonly Textarea: {
|
|
507
|
-
readonly className: "amplify-textarea";
|
|
508
|
-
readonly components: readonly ["TextAreaField"];
|
|
509
|
-
readonly description: "Class applied to the text area";
|
|
510
|
-
};
|
|
511
|
-
readonly TextAreaField: {
|
|
512
|
-
readonly className: "amplify-textareafield";
|
|
513
|
-
readonly components: readonly ["TextAreaField"];
|
|
514
|
-
readonly description: "Top level element that wraps the TextAreaField primitive";
|
|
515
|
-
};
|
|
516
|
-
readonly TextField: {
|
|
517
|
-
readonly className: "amplify-textfield";
|
|
518
|
-
readonly components: readonly ["TextField"];
|
|
519
|
-
readonly description: "Top level element that wraps the TextField primitive";
|
|
520
|
-
};
|
|
521
|
-
readonly ToggleButton: {
|
|
522
|
-
readonly className: "amplify-togglebutton";
|
|
523
|
-
readonly components: readonly ["ToggleButton"];
|
|
524
|
-
readonly description: "Top level element that wraps the ToggleButton primitive";
|
|
525
|
-
};
|
|
526
|
-
readonly ToggleButtonGroup: {
|
|
527
|
-
readonly className: "amplify-togglebuttongroup";
|
|
528
|
-
readonly components: readonly ["ToggleButton", "ToggleButtonGroup"];
|
|
529
|
-
readonly description: "Top level element that wraps the ToggleButtonGroup primitive";
|
|
530
|
-
};
|
|
531
|
-
readonly VisuallyHidden: {
|
|
532
|
-
readonly className: "amplify-visually-hidden";
|
|
533
|
-
readonly components: readonly ["VisuallyHidden"];
|
|
534
|
-
readonly description: "Top level element that wraps the VisuallyHidden primitive";
|
|
535
|
-
};
|
|
536
|
-
};
|
|
1
|
+
import { ThemeStylePropKey, ThemeTokenKey } from '../types/theme';
|
|
2
|
+
import { ComponentClassNames as ComponentClassNamesType, ComponentClassNameItems } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @internal May be removed in a future release
|
|
5
|
+
*/
|
|
6
|
+
export declare const ComponentClassObject: ComponentClassNameItems;
|
|
7
|
+
export declare const ComponentClassNames: ComponentClassNamesType;
|
|
537
8
|
export declare const ComponentText: {
|
|
9
|
+
Alert: {
|
|
10
|
+
dismissButtonLabel: string;
|
|
11
|
+
};
|
|
538
12
|
Collection: {
|
|
539
13
|
searchButtonLabel: string;
|
|
540
14
|
};
|
|
@@ -554,17 +28,13 @@ export declare const ComponentText: {
|
|
|
554
28
|
searchButtonLabel: string;
|
|
555
29
|
};
|
|
556
30
|
PasswordField: {
|
|
557
|
-
|
|
558
|
-
|
|
31
|
+
passwordIsHidden: string;
|
|
32
|
+
passwordIsShown: string;
|
|
33
|
+
showPassword: string;
|
|
559
34
|
};
|
|
560
35
|
StepperField: {
|
|
561
36
|
increaseButtonLabel: string;
|
|
562
37
|
decreaseButtonLabel: string;
|
|
563
38
|
};
|
|
564
39
|
};
|
|
565
|
-
declare
|
|
566
|
-
export declare type ComponentClasses = typeof ComponentClassObject[ComponentNames]['className'];
|
|
567
|
-
declare let ComponentClassNames: {
|
|
568
|
-
[Name in ComponentNames]?: ComponentClasses;
|
|
569
|
-
};
|
|
570
|
-
export { ComponentClassNames };
|
|
40
|
+
export declare const stylePropsToThemeKeys: Record<ThemeStylePropKey, ThemeTokenKey>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { Breakpoint, Breakpoints } from '../../types/responsive';
|
|
2
|
-
|
|
2
|
+
import { ThemeStylePropKey } from '../../types/theme';
|
|
3
|
+
export declare const getValueAtCurrentBreakpoint: <Value>({ breakpoint, breakpoints, propKey, values, }: {
|
|
4
|
+
values: Value | Record<string, Value> | Value[];
|
|
5
|
+
breakpoint: Breakpoint;
|
|
6
|
+
breakpoints: Breakpoints;
|
|
7
|
+
propKey?: ThemeStylePropKey;
|
|
8
|
+
}) => string | Value;
|
|
@@ -2,6 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseStyleProps, GridItemStyleProps, GridSpanType, ViewProps } from '../types';
|
|
3
3
|
import { Breakpoint, Breakpoints } from '../types/responsive';
|
|
4
4
|
import { FlexContainerStyleProps } from '../types/flex';
|
|
5
|
+
export declare const isSpanPrimitiveValue: (spanValue: GridItemStyleProps['rowSpan'] | GridItemStyleProps['columnSpan']) => spanValue is GridSpanType;
|
|
6
|
+
export declare const getGridSpan: (spanValue: GridSpanType) => string;
|
|
7
|
+
export declare const convertGridSpan: (spanValue: GridItemStyleProps['rowSpan'] | GridItemStyleProps['columnSpan']) => GridItemStyleProps['row'] | GridItemStyleProps['column'];
|
|
5
8
|
/**
|
|
6
9
|
* Transforms style props to another target prop
|
|
7
10
|
* where the original is a simpler API than the target.
|
|
@@ -10,18 +13,17 @@ import { FlexContainerStyleProps } from '../types/flex';
|
|
|
10
13
|
* E.g. rowSpan => row, columnSpan => column
|
|
11
14
|
*/
|
|
12
15
|
export declare const useTransformStyleProps: (props: ViewProps) => ViewProps;
|
|
13
|
-
|
|
14
|
-
export declare const isSpanPrimitiveValue: (spanValue: GridItemStyleProps['rowSpan'] | GridItemStyleProps['columnSpan']) => spanValue is GridSpanType;
|
|
15
|
-
export declare const convertGridSpan: (spanValue: GridItemStyleProps['rowSpan'] | GridItemStyleProps['columnSpan']) => GridItemStyleProps['row'] | GridItemStyleProps['column'];
|
|
16
|
-
export declare const getGridSpan: (spanValue: GridSpanType) => string;
|
|
17
|
-
interface convertStylePropsToStyleObjParams {
|
|
16
|
+
interface ConvertStylePropsToStyleObjParams {
|
|
18
17
|
props: ViewProps;
|
|
19
18
|
style?: React.CSSProperties;
|
|
20
19
|
breakpoint: Breakpoint;
|
|
21
20
|
breakpoints: Breakpoints;
|
|
22
21
|
}
|
|
23
22
|
export interface ConvertStylePropsToStyleObj {
|
|
24
|
-
(params:
|
|
23
|
+
(params: ConvertStylePropsToStyleObjParams): {
|
|
24
|
+
propStyles: React.CSSProperties;
|
|
25
|
+
nonStyleProps: Partial<ViewProps>;
|
|
26
|
+
};
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Convert style props to CSS variables for React style prop
|
|
@@ -29,6 +31,10 @@ export interface ConvertStylePropsToStyleObj {
|
|
|
29
31
|
* @returns CSSProperties styles
|
|
30
32
|
*/
|
|
31
33
|
export declare const convertStylePropsToStyleObj: ConvertStylePropsToStyleObj;
|
|
34
|
+
export declare const useStyles: (props: ViewProps, style: React.CSSProperties) => {
|
|
35
|
+
propStyles: React.CSSProperties;
|
|
36
|
+
nonStyleProps: Partial<ViewProps>;
|
|
37
|
+
};
|
|
32
38
|
interface SplitProps<PrimitiveProps> {
|
|
33
39
|
flexContainerStyleProps: FlexContainerStyleProps;
|
|
34
40
|
baseStyleProps: BaseStyleProps;
|