@aws-amplify/ui-react 3.0.1 → 3.0.4

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.
Files changed (113) hide show
  1. package/dist/IconWarning-227761f5.js +1 -0
  2. package/dist/esm/components/Authenticator/Authenticator.js +1 -1
  3. package/dist/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.js +1 -1
  4. package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.js +1 -1
  5. package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.js +1 -1
  6. package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.js +1 -1
  7. package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.js +1 -1
  8. package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.js +1 -1
  9. package/dist/esm/components/Authenticator/Router/Router.js +1 -1
  10. package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.js +1 -1
  11. package/dist/esm/components/Authenticator/SignIn/SignIn.js +1 -1
  12. package/dist/esm/components/Authenticator/SignUp/SignUp.js +1 -1
  13. package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.js +1 -1
  14. package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.js +1 -1
  15. package/dist/esm/components/Authenticator/hooks/useAuthenticator/index.js +1 -1
  16. package/dist/esm/components/Authenticator/shared/ValidationErrors.js +1 -1
  17. package/dist/esm/primitives/shared/constants.js +1 -1
  18. package/dist/esm/primitives-catalog.js +9 -0
  19. package/dist/index.js +1 -1
  20. package/dist/internal.js +1 -1
  21. package/dist/primitives.json +9 -0
  22. package/dist/styles.css +150 -8
  23. package/dist/types/components/Authenticator/Authenticator.d.ts +12 -5
  24. package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
  25. package/dist/types/components/Authenticator/Router/Router.d.ts +1 -2
  26. package/dist/types/components/Authenticator/Router/types.d.ts +0 -7
  27. package/dist/types/components/Authenticator/hooks/useAuthenticator/index.d.ts +30 -31
  28. package/dist/types/components/Authenticator/hooks/useFormHandlers/useFormHandlers.d.ts +2 -2
  29. package/dist/types/components/Authenticator/shared/ValidationErrors.d.ts +1 -1
  30. package/dist/types/components/Authenticator/withAuthenticator.d.ts +2 -2
  31. package/dist/types/components/Geo/LocationSearch/index.d.ts +1 -1
  32. package/dist/types/components/Geo/MapView/index.d.ts +1 -1
  33. package/dist/types/hooks/useAuth.d.ts +0 -1
  34. package/dist/types/primitives/Alert/Alert.d.ts +1 -1
  35. package/dist/types/primitives/Badge/Badge.d.ts +1 -1
  36. package/dist/types/primitives/Button/Button.d.ts +1 -1
  37. package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
  38. package/dist/types/primitives/Card/Card.d.ts +1 -1
  39. package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
  40. package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
  41. package/dist/types/primitives/Divider/Divider.d.ts +1 -1
  42. package/dist/types/primitives/Expander/Expander.d.ts +1 -1
  43. package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
  44. package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
  45. package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
  46. package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
  47. package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
  48. package/dist/types/primitives/Flex/Flex.d.ts +1 -1
  49. package/dist/types/primitives/Grid/Grid.d.ts +1 -1
  50. package/dist/types/primitives/Heading/Heading.d.ts +1 -1
  51. package/dist/types/primitives/Icon/Icon.d.ts +1 -1
  52. package/dist/types/primitives/Image/Image.d.ts +1 -1
  53. package/dist/types/primitives/Input/Input.d.ts +1 -1
  54. package/dist/types/primitives/Label/Label.d.ts +1 -1
  55. package/dist/types/primitives/Link/Link.d.ts +1 -1
  56. package/dist/types/primitives/Loader/Loader.d.ts +1 -1
  57. package/dist/types/primitives/Menu/Menu.d.ts +1 -1
  58. package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
  59. package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
  60. package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
  61. package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
  62. package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
  63. package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
  64. package/dist/types/primitives/Radio/Radio.d.ts +1 -1
  65. package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
  66. package/dist/types/primitives/Rating/Rating.d.ts +1 -1
  67. package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
  68. package/dist/types/primitives/SearchField/SearchField.d.ts +1 -1
  69. package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
  70. package/dist/types/primitives/Select/Select.d.ts +1 -1
  71. package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
  72. package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
  73. package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
  74. package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
  75. package/dist/types/primitives/Table/Table.d.ts +1 -1
  76. package/dist/types/primitives/Table/TableBody.d.ts +1 -1
  77. package/dist/types/primitives/Table/TableCell.d.ts +1 -1
  78. package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
  79. package/dist/types/primitives/Table/TableHead.d.ts +1 -1
  80. package/dist/types/primitives/Table/TableRow.d.ts +1 -1
  81. package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
  82. package/dist/types/primitives/Text/Text.d.ts +1 -1
  83. package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
  84. package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
  85. package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
  86. package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  87. package/dist/types/primitives/View/View.d.ts +2 -2
  88. package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  89. package/dist/types/primitives/shared/constants.d.ts +1 -1
  90. package/dist/types/primitives/types/button.d.ts +4 -2
  91. package/dist/types/primitives/types/checkbox.d.ts +4 -2
  92. package/dist/types/primitives/types/collection.d.ts +9 -2
  93. package/dist/types/primitives/types/divider.d.ts +4 -2
  94. package/dist/types/primitives/types/field.d.ts +2 -1
  95. package/dist/types/primitives/types/flex.d.ts +1 -1
  96. package/dist/types/primitives/types/grid.d.ts +84 -0
  97. package/dist/types/primitives/types/icon.d.ts +10 -8
  98. package/dist/types/primitives/types/image.d.ts +12 -9
  99. package/dist/types/primitives/types/input.d.ts +32 -22
  100. package/dist/types/primitives/types/link.d.ts +7 -0
  101. package/dist/types/primitives/types/menu.d.ts +6 -3
  102. package/dist/types/primitives/types/pagination.d.ts +12 -6
  103. package/dist/types/primitives/types/passwordField.d.ts +10 -5
  104. package/dist/types/primitives/types/placeholder.d.ts +2 -1
  105. package/dist/types/primitives/types/searchField.d.ts +4 -2
  106. package/dist/types/primitives/types/sliderField.d.ts +8 -0
  107. package/dist/types/primitives/types/stepperField.d.ts +4 -2
  108. package/dist/types/primitives/types/style.d.ts +122 -66
  109. package/dist/types/primitives/types/switchField.d.ts +0 -1
  110. package/dist/types/primitives/types/textArea.d.ts +17 -13
  111. package/dist/types/primitives/types/view.d.ts +2 -1
  112. package/package.json +2 -2
  113. package/dist/IconWarning-3289842c.js +0 -1
@@ -29,406 +29,462 @@ export declare type ResponsiveStyle<PropertyType> = StyleProp<PropertyType> | St
29
29
  export interface BaseStyleProps extends FlexItemStyleProps, GridItemStyleProps {
30
30
  /**
31
31
  * @description
32
- * Overrides a grid or flex item's align-items value.
33
- * In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis.
34
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/align-self}
32
+ * Overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis.
33
+ * @see[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
35
34
  */
36
35
  alignSelf?: ResponsiveStyle<StyleToken<Property.AlignSelf>>;
37
36
  /**
38
37
  * @description
39
38
  * Sets the background color of an element.
40
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/background-color}
39
+ * @see[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
41
40
  */
42
41
  backgroundColor?: ResponsiveStyle<ColorKeys<StyleToken<Property.BackgroundColor>>>;
43
42
  /**
44
43
  * @description
45
44
  * Sets one or more background images on an element.
46
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/background-image}
45
+ * @see
46
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image)
47
47
  */
48
48
  backgroundImage?: ResponsiveStyle<StyleToken<Property.BackgroundImage>>;
49
49
  /**
50
50
  * @description
51
51
  * Shorthand CSS property that sets an element's border-width, border-style, and border-color.
52
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/border}
52
+ * @see
53
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border)
53
54
  */
54
55
  border?: ResponsiveStyle<StyleToken<Property.Border>>;
55
56
  /**
56
57
  * @description
57
58
  * Rounds the corners of an element's outer border edge.
58
59
  * You can set a single radius to make circular corners, or two radii to make elliptical corners.
59
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius}
60
+ * @see
61
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius)
60
62
  */
61
63
  borderRadius?: ResponsiveStyle<RadiiKeys<StyleToken<Property.BorderRadius>>>;
62
64
  /**
63
65
  * @description
64
66
  * Participates in setting the vertical position of a positioned element.
65
67
  * It has no effect on non-positioned elements.
66
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/bottom}
68
+ * @see
69
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/bottom)
67
70
  */
68
71
  bottom?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Bottom>>>;
69
72
  /**
70
73
  * @description
71
74
  * Adds shadow effects around an element's frame. You can set multiple effects separated by commas.
72
75
  * A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
73
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow}
76
+ * @see
77
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
74
78
  */
75
79
  boxShadow?: ResponsiveStyle<BoxShadowKeys<StyleToken<Property.BoxShadow>>>;
76
80
  /**
77
81
  * @description
78
82
  * Sets the foreground color value of an element's text and text decorations, and sets the `currentcolor` value.
79
83
  * `currentcolor` may be used as an indirect value on other properties and is the default for other color properties, such as border-color.
80
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/color}
84
+ * @see
85
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
81
86
  */
82
87
  color?: ResponsiveStyle<ColorKeys<StyleToken<Property.Color>>>;
83
88
  /**
84
89
  * @description
85
90
  * Sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex.
86
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/display}
91
+ * @see
92
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
87
93
  */
88
94
  display?: ResponsiveStyle<StyleToken<Property.Display>>;
89
95
  /**
90
96
  * @description
91
97
  * Specifies a prioritized list of one or more font family names and/or generic family names for the selected element.
92
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-family}
98
+ * @see
99
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)
93
100
  */
94
101
  fontFamily?: ResponsiveStyle<FontFamilyKeys<StyleToken<Property.FontFamily>>>;
95
102
  /**
96
103
  * @description
97
104
  * Sets the size of the font. Changing the font size also updates the sizes of the font size-relative <length> units, such as em, ex, and so forth.
98
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}
105
+ * @see
106
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
99
107
  */
100
108
  fontSize?: ResponsiveStyle<FontSizeKeys<StyleToken<Property.FontSize>>>;
101
109
  /**
102
110
  * @description
103
111
  * Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
104
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-style}
112
+ * @see
113
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)
105
114
  */
106
115
  fontStyle?: ResponsiveStyle<StyleToken<Property.FontStyle>>;
107
116
  /**
108
117
  * @description
109
118
  * Sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently set.
110
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}
119
+ * @see
120
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
111
121
  */
112
122
  fontWeight?: ResponsiveStyle<FontWeightKeys<StyleToken<Property.FontWeight>>>;
113
123
  /**
114
124
  * @description
115
125
  * specifies the height of an element. By default, the property defines the height of the content area.
116
126
  * If box-sizing is set to border-box, however, it instead determines the height of the border area.
117
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/height}
127
+ * @see
128
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/height)
118
129
  */
119
130
  height?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Height>>>;
120
131
  /**
121
132
  * @description
122
133
  * Participates in specifying the horizontal position of a positioned element. It has no effect on non-positioned elements.
123
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/left}
134
+ * @see
135
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/left)
124
136
  */
125
137
  left?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Left>>>;
126
138
  /**
127
139
  * @description
128
140
  * Sets the horizontal spacing behavior between text characters.
129
141
  * This value is added to the natural spacing between characters while rendering the text.
130
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing}
142
+ * @see
143
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing)
131
144
  */
132
145
  letterSpacing?: ResponsiveStyle<SpaceKeys<StyleToken<Property.LetterSpacing>>>;
133
146
  /**
134
147
  * @description
135
148
  * Sets the height of a line box. It's commonly used to set the distance between lines of text.
136
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/line-height}
149
+ * @see
150
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)
137
151
  */
138
152
  lineHeight?: ResponsiveStyle<LineHeightKeys<StyleToken<Property.LineHeight>>>;
139
153
  /**
140
154
  * @description
141
155
  * Shorthand CSS property that sets the margin area on all four sides of an element.
142
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
156
+ * @see
157
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)
143
158
  */
144
159
  margin?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Margin>>>;
145
160
  /**
146
161
  * @description
147
162
  * Shorthand CSS property that defines the logical block start and end margins of an element,
148
163
  * which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
149
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block}
164
+ * @see
165
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block)
150
166
  */
151
167
  marginBlock?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBlock>>>;
152
168
  /**
153
169
  * @description
154
170
  * Defines the logical block end margin of an element,
155
171
  * which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
156
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block-end}
172
+ * @see
173
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block-end)
157
174
  */
158
175
  marginBlockEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBlockEnd>>>;
159
176
  /**
160
177
  * @description
161
178
  * Defines the logical block start margin of an element,
162
179
  * which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
163
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block-start}
180
+ * @see
181
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block-start)
164
182
  */
165
183
  marginBlockStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBlockStart>>>;
166
184
  /**
167
185
  * @description
168
186
  * Sets the margin area on the bottom of an element.
169
187
  * A positive value places it farther from its neighbors, while a negative value places it closer.
170
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom}
188
+ * @see
189
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
171
190
  */
172
191
  marginBottom?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBottom>>>;
173
192
  /**
174
193
  * @description
175
194
  * Shorthand CSS property that defines both the logical inline start and end margins of an element,
176
195
  * which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
177
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline}
196
+ * @see
197
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline)
178
198
  */
179
199
  marginInline?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginInline>>>;
180
200
  /**
181
201
  * @description
182
202
  * Defines the logical inline end margin of an element,
183
203
  * which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
184
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end}
204
+ * @see
205
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end)
185
206
  */
186
207
  marginInlineEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginInlineEnd>>>;
187
208
  /**
188
209
  * @description
189
210
  * Defines the logical inline start margin of an element,
190
211
  * which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
191
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start}
212
+ * @see
213
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start)
192
214
  */
193
215
  marginInlineStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginInlineStart>>>;
194
216
  /**
195
217
  * @description
196
218
  * Sets the margin area on the left side of an element.
197
219
  * A positive value places it farther from its neighbors, while a negative value places it closer.
198
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left}
220
+ * @see
221
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left)
199
222
  */
200
223
  marginLeft?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginLeft>>>;
201
224
  /**
202
225
  * @description
203
226
  * Sets the margin area on the right side of an element.
204
227
  * A positive value places it farther from its neighbors, while a negative value places it closer.
205
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right}
228
+ * @see
229
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
206
230
  */
207
231
  marginRight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginRight>>>;
208
232
  /**
209
233
  * @description
210
234
  * Sets the margin area on the top of an element.
211
235
  * A positive value places it farther from its neighbors, while a negative value places it closer.
212
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top}
236
+ * @see
237
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top)
213
238
  */
214
239
  marginTop?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginTop>>>;
215
240
  /**
216
241
  * @description
217
242
  * Sets the maximum height of an element.
218
243
  * It prevents the used value of the height property from becoming larger than the value specified for max-height.
219
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/max-height}
244
+ * @see
245
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/max-height)
220
246
  */
221
247
  maxHeight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MaxHeight>>>;
222
248
  /**
223
249
  * @description
224
250
  * Sets the maximum width of an element.
225
251
  * It prevents the used value of the width property from becoming larger than the value specified by max-width.
226
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/max-width}
252
+ * @see
253
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width)
227
254
  */
228
255
  maxWidth?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MaxWidth>>>;
229
256
  /**
230
257
  * @description
231
258
  * Sets the minimum height of an element.
232
259
  * It prevents the used value of the height property from becoming smaller than the value specified for min-height.
233
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/min-height}
260
+ * @see
261
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/min-height)
234
262
  */
235
263
  minHeight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MinHeight>>>;
236
264
  /**
237
265
  * @description
238
266
  * Sets the minimum width of an element.
239
267
  * It prevents the used value of the width property from becoming smaller than the value specified for min-width.
240
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/min-width}
268
+ * @see
269
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width)
241
270
  */
242
271
  minWidth?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MinWidth>>>;
243
272
  /**
244
273
  * @description
245
274
  * Sets the opacity of an element.
246
275
  * Opacity is the degree to which content behind an element is hidden, and is the opposite of transparency.
247
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/opacity}
276
+ * @see
277
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
248
278
  */
249
279
  opacity?: ResponsiveStyle<OpacityKeys<StyleToken<Property.Opacity>>>;
250
280
  /**
251
281
  * @description
252
282
  * Shorthand CSS property that sets the desired behavior for an element's overflow
253
283
  * — i.e. when an element's content is too big to fit in its block formatting context — in both directions.
254
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow}
284
+ * @see
285
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow)
255
286
  */
256
287
  overflow?: ResponsiveStyle<StyleToken<Property.Overflow>>;
257
288
  /**
258
289
  * @description
259
290
  * Shorthand CSS property that sets the padding area on all four sides of an element at once.
260
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding}
291
+ * @see
292
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
261
293
  */
262
294
  padding?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Padding>>>;
263
295
  /**
264
296
  * @description
265
297
  * Shorthand CSS property that defines the logical block start and end padding of an element,
266
298
  * which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
267
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block}
299
+ * @see
300
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block)
268
301
  */
269
302
  paddingBlock?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBlock>>>;
270
303
  /**
271
304
  * @description
272
305
  * Defines the logical block end padding of an element,
273
306
  * which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
274
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block-end}
307
+ * @see
308
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block-end)
275
309
  */
276
310
  paddingBlockEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBlockEnd>>>;
277
311
  /**
278
312
  * @description
279
313
  * Defines the logical block start padding of an element,
280
314
  * which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
281
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block-start}
315
+ * @see
316
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block-start)
282
317
  */
283
318
  paddingBlockStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBlockStart>>>;
284
319
  /**
285
320
  * @description
286
321
  * Sets the height of the padding area on the bottom of an element.
287
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom}
322
+ * @see
323
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom)
288
324
  */
289
325
  paddingBottom?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBottom>>>;
290
326
  /**
291
327
  * @description
292
328
  * Shorthand CSS property that defines the logical inline start and end padding of an element,
293
329
  * which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
294
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline}
330
+ * @see
331
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline)
295
332
  */
296
333
  paddingInline?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingInline>>>;
297
334
  /**
298
335
  * @description
299
336
  * Defines the logical inline end padding of an element,
300
337
  * which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
301
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end}
338
+ * @see
339
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end)
302
340
  */
303
341
  paddingInlineEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingInlineEnd>>>;
304
342
  /**
305
343
  * @description
306
344
  * Defines the logical inline start padding of an element,
307
345
  * which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
308
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-start}
346
+ * @see
347
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-start)
309
348
  */
310
349
  paddingInlineStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingInlineStart>>>;
311
350
  /**
312
351
  * @description
313
352
  * Sets the width of the padding area to the left of an element.
314
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left}
353
+ * @see
354
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left)
315
355
  */
316
356
  paddingLeft?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingLeft>>>;
317
357
  /**
318
358
  * @description
319
359
  * Sets the width of the padding area on the right of an element.
320
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right}
360
+ * @see
361
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
321
362
  */
322
363
  paddingRight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingRight>>>;
323
364
  /**
324
365
  * @description
325
366
  * Sets the height of the padding area on the top of an element.
326
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top}
367
+ * @see
368
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top)
327
369
  */
328
370
  paddingTop?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingTop>>>;
329
371
  /**
330
372
  * @description
331
373
  * Sets how an element is positioned in a document.
332
374
  * The top, right, bottom, and left properties determine the final location of positioned elements.
333
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/position}
375
+ * @see
376
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/position)
334
377
  */
335
378
  position?: ResponsiveStyle<StyleToken<Property.Position>>;
336
379
  /**
337
380
  * @description
338
381
  * Participates in specifying the horizontal position of a positioned element. It has no effect on non-positioned elements.
339
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/right}
382
+ * @see
383
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/right)
340
384
  */
341
385
  right?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Right>>>;
342
386
  /**
343
387
  * @description
344
388
  * Sets the horizontal alignment of the content inside a block element or table-cell box.
345
389
  * This means it works like vertical-align but in the horizontal direction.
346
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-align}
390
+ * @see
391
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)
347
392
  */
348
393
  textAlign?: ResponsiveStyle<StyleToken<Property.TextAlign>>;
349
394
  /**
350
395
  * @description
351
396
  * Shorthand CSS property that sets the appearance of decorative lines on text.
352
397
  * It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property.
353
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}
398
+ * @see
399
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
354
400
  */
355
401
  textDecoration?: ResponsiveStyle<StyleToken<Property.TextDecoration>>;
356
402
  /**
357
403
  * @description
358
404
  * Specifies how to capitalize an element's text. It can be used to make text
359
405
  * appear in all-uppercase or all-lowercase, or with each word capitalized.
360
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform}
406
+ * @see
407
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform)
361
408
  */
362
409
  textTransform?: ResponsiveStyle<StyleToken<Property.TextTransform>>;
363
410
  /**
364
411
  * @description
365
412
  * Participates in specifying the vertical position of a positioned element. It has no effect on non-positioned elements.
366
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/top}
413
+ * @see
414
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/top)
367
415
  */
368
416
  top?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Top>>>;
369
417
  /**
370
418
  * @description
371
419
  * Lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual formatting model.
372
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/transform}
420
+ * @see
421
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transform)
373
422
  */
374
423
  transform?: ResponsiveStyle<TransformKeys<StyleToken<Property.Transform>>>;
375
424
  /**
376
425
  * @description
377
426
  * Sets the origin for an element's transformations.
378
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin}
427
+ * @see
428
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin)
379
429
  */
380
430
  transformOrigin?: ResponsiveStyle<StyleToken<Property.TransformOrigin>>;
381
431
  /**
382
432
  * @description
383
433
  * Sets an element's width. By default, it sets the width of the content area,
384
434
  * but if box-sizing is set to border-box, it sets the width of the border area.
385
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/width}
435
+ * @see
436
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/width)
386
437
  */
387
438
  width?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Width>>>;
388
439
  /**
389
440
  * @description
390
441
  * Sets how white space inside an element is handled.
391
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/white-space}
442
+ * @see
443
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
392
444
  */
393
445
  whiteSpace?: ResponsiveStyle<StyleToken<Property.WhiteSpace>>;
394
446
  }
395
447
  export interface CSSLayoutStyleProps {
396
448
  /**
397
449
  * @description
398
- * Sets the align-self value on all direct children as a group.
399
- * In Flexbox, it controls the alignment of items on the Cross Axis.
400
- * In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
401
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/align-items}
450
+ * Sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
451
+ * @see
452
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
402
453
  */
403
454
  alignItems?: ResponsiveStyle<Property.AlignItems>;
404
455
  /**
405
456
  * @description
406
457
  * Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis.
407
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/align-content}
458
+ * @see
459
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
408
460
  */
409
461
  alignContent?: ResponsiveStyle<Property.AlignContent>;
410
462
  /**
411
463
  * @description
412
464
  * Defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container.
413
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content}
465
+ * @see
466
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
414
467
  */
415
468
  justifyContent?: ResponsiveStyle<Property.JustifyContent>;
416
469
  /**
417
470
  * @description
418
471
  * Controls the spacing between child components. Shorthand for rowGap and columnGap.
419
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/gap}
472
+ * @see
473
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
420
474
  */
421
475
  gap?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Gap>>>;
422
476
  /**
423
477
  * @description
424
478
  * Controls the spacing between Flex/Grid child columns
425
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap}
479
+ * @see
480
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
426
481
  */
427
482
  columnGap?: ResponsiveStyle<SpaceKeys<StyleToken<Property.GridColumnGap>>>;
428
483
  /**
429
484
  * @description
430
485
  * Controls the spacing between Flex/Grid child rows
431
- * [MDN]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap}
486
+ * @see
487
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
432
488
  */
433
489
  rowGap?: ResponsiveStyle<SpaceKeys<StyleToken<Property.RowGap>>>;
434
490
  }
@@ -23,7 +23,6 @@ export interface SwitchFieldProps extends InputProps, FieldProps, BaseStyleProps
23
23
  /**
24
24
  * @description
25
25
  * Visually hide the label, but the associated label text will still be required for accessibility.
26
- * @default false
27
26
  */
28
27
  isLabelHidden?: boolean;
29
28
  /**
@@ -13,40 +13,44 @@ export interface TextAreaStyleProps {
13
13
  export interface TextAreaProps extends TextAreaStyleProps, ViewProps {
14
14
  /**
15
15
  * @description
16
- * Specifies permissions for browser UA to autocomplete field
17
- * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
16
+ * Specifies permissions for browser UA to autocomplete field.
17
+ * @see
18
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
18
19
  */
19
20
  autoComplete?: string;
20
21
  /**
21
22
  * @description
22
- * Use this to provide a default value for an uncontrolled field
23
+ * Use this to provide a default value for an uncontrolled field.
23
24
  */
24
25
  defaultValue?: React.AllHTMLAttributes<'textarea'>['defaultValue'];
25
26
  /**
26
27
  * @description
27
- * Indicates that Field is in error state
28
+ * Indicates that Field is in error state.
28
29
  */
29
30
  hasError?: boolean;
30
31
  /**
31
32
  * @description
32
- * Determines whether field should be disabled
33
- * @default false
33
+ * Determines whether field should be disabled.
34
+ * @default
35
+ * false
34
36
  */
35
37
  isDisabled?: boolean;
36
38
  /**
37
39
  * @description
38
- * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly)
39
- * @default false
40
+ * @see
41
+ *[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly)
42
+ * @default
43
+ * false
40
44
  */
41
45
  isReadOnly?: boolean;
42
46
  /**
43
47
  * @description
44
- * Whether field should be marked required
48
+ * Whether field should be marked required.
45
49
  */
46
50
  isRequired?: boolean;
47
51
  /**
48
52
  * @description
49
- * Text contents maximum length
53
+ * Text contents maximum length.
50
54
  */
51
55
  maxLength?: number;
52
56
  /**
@@ -59,12 +63,12 @@ export interface TextAreaProps extends TextAreaStyleProps, ViewProps {
59
63
  * Placeholder text shown when field is empty
60
64
  * Accessibility tip: avoid putting important instructions for
61
65
  * filling out the TextField in the placeholder. Use descriptiveText
62
- * for important instructions
66
+ * for important instructions.
63
67
  */
64
68
  placeholder?: string;
65
69
  /**
66
70
  * @description
67
- * Controls height based on number of rows of text to display
71
+ * Controls height based on number of rows of text to display.
68
72
  */
69
73
  rows?: number;
70
74
  /**
@@ -74,7 +78,7 @@ export interface TextAreaProps extends TextAreaStyleProps, ViewProps {
74
78
  size?: Sizes;
75
79
  /**
76
80
  * @description
77
- * If value is provided, this will be a controlled field
81
+ * If value is provided, this will be a controlled field.
78
82
  */
79
83
  value?: React.AllHTMLAttributes<'textarea'>['value'];
80
84
  /**
@@ -46,7 +46,8 @@ export interface ViewProps extends BaseComponentProps, BaseStyleProps, AriaProps
46
46
  * @description
47
47
  * Accepts a JavaScript object with camelCased properties rather than a CSS string.
48
48
  * This is consistent with the DOM style JavaScript property, is more efficient, and prevents XSS security holes.
49
- * [React docs]{@link https://reactjs.org/docs/dom-elements.html#style}
49
+ * @see
50
+ *[React docs](https://reactjs.org/docs/dom-elements.html#style)
50
51
  */
51
52
  style?: React.CSSProperties;
52
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "3.0.1",
3
+ "version": "3.0.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -59,7 +59,7 @@
59
59
  "size": "yarn run size-limit"
60
60
  },
61
61
  "dependencies": {
62
- "@aws-amplify/ui": "3.11.1",
62
+ "@aws-amplify/ui": "3.12.1",
63
63
  "@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
64
64
  "@radix-ui/react-accordion": "0.1.6",
65
65
  "@radix-ui/react-dropdown-menu": "0.1.6",