@aws-amplify/ui-react 3.0.0 → 3.0.3
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/README.md +1 -1
- package/dist/IconWarning-45c2c272.js +1 -0
- package/dist/esm/components/Authenticator/Authenticator.js +1 -1
- package/dist/esm/components/Authenticator/ConfirmSignIn/ConfirmSignIn.js +1 -1
- package/dist/esm/components/Authenticator/ConfirmSignUp/ConfirmSignUp.js +1 -1
- package/dist/esm/components/Authenticator/FederatedSignIn/FederatedSignIn.js +1 -1
- package/dist/esm/components/Authenticator/ForceNewPassword/ForceNewPassword.js +1 -1
- package/dist/esm/components/Authenticator/ResetPassword/ConfirmResetPassword.js +1 -1
- package/dist/esm/components/Authenticator/ResetPassword/ResetPassword.js +1 -1
- package/dist/esm/components/Authenticator/Router/Router.js +1 -1
- package/dist/esm/components/Authenticator/SetupTOTP/SetupTOTP.js +1 -1
- package/dist/esm/components/Authenticator/SignIn/SignIn.js +1 -1
- package/dist/esm/components/Authenticator/SignUp/SignUp.js +1 -1
- package/dist/esm/components/Authenticator/VerifyUser/ConfirmVerifyUser.js +1 -1
- package/dist/esm/components/Authenticator/VerifyUser/VerifyUser.js +1 -1
- package/dist/esm/components/Authenticator/hooks/useAuthenticator/index.js +1 -1
- package/dist/esm/components/Authenticator/shared/ValidationErrors.js +1 -1
- package/dist/esm/primitives/shared/constants.js +1 -1
- package/dist/esm/primitives-catalog.js +9 -0
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/primitives.json +9 -0
- package/dist/styles.css +140 -1
- package/dist/types/components/Authenticator/Authenticator.d.ts +2 -2
- package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
- package/dist/types/components/Authenticator/Router/Router.d.ts +3 -1
- package/dist/types/components/Authenticator/hooks/useAuthenticator/index.d.ts +30 -31
- package/dist/types/components/Authenticator/hooks/useFormHandlers/useFormHandlers.d.ts +2 -2
- package/dist/types/components/Authenticator/shared/ValidationErrors.d.ts +1 -1
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +2 -2
- package/dist/types/components/Geo/LocationSearch/index.d.ts +1 -1
- package/dist/types/components/Geo/MapView/index.d.ts +1 -1
- package/dist/types/hooks/useAuth.d.ts +0 -1
- 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/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 +2 -2
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/primitives/shared/constants.d.ts +1 -1
- package/dist/types/primitives/types/alert.d.ts +6 -0
- package/dist/types/primitives/types/badge.d.ts +2 -0
- package/dist/types/primitives/types/base.d.ts +15 -0
- package/dist/types/primitives/types/button.d.ts +12 -2
- package/dist/types/primitives/types/card.d.ts +4 -0
- package/dist/types/primitives/types/checkbox.d.ts +8 -4
- package/dist/types/primitives/types/collection.d.ts +20 -2
- package/dist/types/primitives/types/divider.d.ts +7 -2
- package/dist/types/primitives/types/expander.d.ts +7 -0
- package/dist/types/primitives/types/field.d.ts +6 -1
- package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -0
- package/dist/types/primitives/types/flex.d.ts +8 -1
- package/dist/types/primitives/types/grid.d.ts +84 -0
- package/dist/types/primitives/types/heading.d.ts +4 -0
- package/dist/types/primitives/types/icon.d.ts +16 -9
- package/dist/types/primitives/types/image.d.ts +26 -9
- package/dist/types/primitives/types/input.d.ts +47 -22
- package/dist/types/primitives/types/label.d.ts +2 -0
- package/dist/types/primitives/types/link.d.ts +10 -0
- package/dist/types/primitives/types/loader.d.ts +7 -0
- package/dist/types/primitives/types/menu.d.ts +16 -3
- package/dist/types/primitives/types/pagination.d.ts +29 -6
- package/dist/types/primitives/types/passwordField.d.ts +22 -6
- package/dist/types/primitives/types/phoneNumberField.d.ts +25 -0
- package/dist/types/primitives/types/placeholder.d.ts +4 -1
- package/dist/types/primitives/types/radio.d.ts +1 -0
- package/dist/types/primitives/types/radioGroupField.d.ts +2 -0
- package/dist/types/primitives/types/rating.d.ts +7 -0
- package/dist/types/primitives/types/searchField.d.ts +9 -2
- package/dist/types/primitives/types/select.d.ts +52 -0
- package/dist/types/primitives/types/selectField.d.ts +1 -0
- package/dist/types/primitives/types/sliderField.d.ts +56 -0
- package/dist/types/primitives/types/stepperField.d.ts +39 -2
- package/dist/types/primitives/types/style.d.ts +387 -6
- package/dist/types/primitives/types/switchField.d.ts +13 -1
- package/dist/types/primitives/types/table.d.ts +12 -0
- package/dist/types/primitives/types/tabs.d.ts +8 -0
- package/dist/types/primitives/types/text.d.ts +3 -0
- package/dist/types/primitives/types/textArea.d.ts +34 -14
- package/dist/types/primitives/types/textField.d.ts +5 -0
- package/dist/types/primitives/types/toggleButton.d.ts +16 -0
- package/dist/types/primitives/types/toggleButtonGroup.d.ts +20 -0
- package/dist/types/primitives/types/view.d.ts +25 -0
- package/package.json +2 -2
- package/dist/IconWarning-3289842c.js +0 -1
|
@@ -7,6 +7,7 @@ import { GridItemStyleProps, GridContainerStyleProps } from './grid';
|
|
|
7
7
|
import { ImageStyleProps } from './image';
|
|
8
8
|
import { TextAreaStyleProps } from './textArea';
|
|
9
9
|
/**
|
|
10
|
+
* @description
|
|
10
11
|
* Extract style compatible types (string literal | number | any string)
|
|
11
12
|
*/
|
|
12
13
|
export declare type StyleProp<PropertyType> = (PropertyType extends number ? number : PropertyType extends string | WebDesignToken ? PropertyType : never) | (string & {});
|
|
@@ -19,91 +20,471 @@ export interface ResponsiveObject<PropertyType> {
|
|
|
19
20
|
xxl?: PropertyType;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
23
|
+
* @description
|
|
22
24
|
* Allows a style prop to be the property type
|
|
23
25
|
* or a design token of that property type.
|
|
24
26
|
*/
|
|
25
27
|
export declare type StyleToken<PropertyType> = PropertyType | WebDesignToken<PropertyType>;
|
|
26
28
|
export declare type ResponsiveStyle<PropertyType> = StyleProp<PropertyType> | StyleProp<PropertyType>[] | ResponsiveObject<StyleProp<PropertyType>>;
|
|
27
29
|
export interface BaseStyleProps extends FlexItemStyleProps, GridItemStyleProps {
|
|
30
|
+
/**
|
|
31
|
+
* @description
|
|
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)
|
|
34
|
+
*/
|
|
28
35
|
alignSelf?: ResponsiveStyle<StyleToken<Property.AlignSelf>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description
|
|
38
|
+
* Sets the background color of an element.
|
|
39
|
+
* @see[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
|
|
40
|
+
*/
|
|
29
41
|
backgroundColor?: ResponsiveStyle<ColorKeys<StyleToken<Property.BackgroundColor>>>;
|
|
42
|
+
/**
|
|
43
|
+
* @description
|
|
44
|
+
* Sets one or more background images on an element.
|
|
45
|
+
* @see
|
|
46
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image)
|
|
47
|
+
*/
|
|
30
48
|
backgroundImage?: ResponsiveStyle<StyleToken<Property.BackgroundImage>>;
|
|
49
|
+
/**
|
|
50
|
+
* @description
|
|
51
|
+
* Shorthand CSS property that sets an element's border-width, border-style, and border-color.
|
|
52
|
+
* @see
|
|
53
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border)
|
|
54
|
+
*/
|
|
31
55
|
border?: ResponsiveStyle<StyleToken<Property.Border>>;
|
|
56
|
+
/**
|
|
57
|
+
* @description
|
|
58
|
+
* Rounds the corners of an element's outer border edge.
|
|
59
|
+
* You can set a single radius to make circular corners, or two radii to make elliptical corners.
|
|
60
|
+
* @see
|
|
61
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius)
|
|
62
|
+
*/
|
|
32
63
|
borderRadius?: ResponsiveStyle<RadiiKeys<StyleToken<Property.BorderRadius>>>;
|
|
64
|
+
/**
|
|
65
|
+
* @description
|
|
66
|
+
* Participates in setting the vertical position of a positioned element.
|
|
67
|
+
* It has no effect on non-positioned elements.
|
|
68
|
+
* @see
|
|
69
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/bottom)
|
|
70
|
+
*/
|
|
33
71
|
bottom?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Bottom>>>;
|
|
72
|
+
/**
|
|
73
|
+
* @description
|
|
74
|
+
* Adds shadow effects around an element's frame. You can set multiple effects separated by commas.
|
|
75
|
+
* A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
|
|
76
|
+
* @see
|
|
77
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
78
|
+
*/
|
|
34
79
|
boxShadow?: ResponsiveStyle<BoxShadowKeys<StyleToken<Property.BoxShadow>>>;
|
|
80
|
+
/**
|
|
81
|
+
* @description
|
|
82
|
+
* Sets the foreground color value of an element's text and text decorations, and sets the `currentcolor` value.
|
|
83
|
+
* `currentcolor` may be used as an indirect value on other properties and is the default for other color properties, such as border-color.
|
|
84
|
+
* @see
|
|
85
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
|
|
86
|
+
*/
|
|
35
87
|
color?: ResponsiveStyle<ColorKeys<StyleToken<Property.Color>>>;
|
|
88
|
+
/**
|
|
89
|
+
* @description
|
|
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.
|
|
91
|
+
* @see
|
|
92
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
93
|
+
*/
|
|
36
94
|
display?: ResponsiveStyle<StyleToken<Property.Display>>;
|
|
95
|
+
/**
|
|
96
|
+
* @description
|
|
97
|
+
* Specifies a prioritized list of one or more font family names and/or generic family names for the selected element.
|
|
98
|
+
* @see
|
|
99
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)
|
|
100
|
+
*/
|
|
37
101
|
fontFamily?: ResponsiveStyle<FontFamilyKeys<StyleToken<Property.FontFamily>>>;
|
|
102
|
+
/**
|
|
103
|
+
* @description
|
|
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.
|
|
105
|
+
* @see
|
|
106
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
|
|
107
|
+
*/
|
|
38
108
|
fontSize?: ResponsiveStyle<FontSizeKeys<StyleToken<Property.FontSize>>>;
|
|
109
|
+
/**
|
|
110
|
+
* @description
|
|
111
|
+
* Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
|
|
112
|
+
* @see
|
|
113
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)
|
|
114
|
+
*/
|
|
39
115
|
fontStyle?: ResponsiveStyle<StyleToken<Property.FontStyle>>;
|
|
116
|
+
/**
|
|
117
|
+
* @description
|
|
118
|
+
* Sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently set.
|
|
119
|
+
* @see
|
|
120
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
|
|
121
|
+
*/
|
|
40
122
|
fontWeight?: ResponsiveStyle<FontWeightKeys<StyleToken<Property.FontWeight>>>;
|
|
123
|
+
/**
|
|
124
|
+
* @description
|
|
125
|
+
* specifies the height of an element. By default, the property defines the height of the content area.
|
|
126
|
+
* If box-sizing is set to border-box, however, it instead determines the height of the border area.
|
|
127
|
+
* @see
|
|
128
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/height)
|
|
129
|
+
*/
|
|
41
130
|
height?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Height>>>;
|
|
131
|
+
/**
|
|
132
|
+
* @description
|
|
133
|
+
* Participates in specifying the horizontal position of a positioned element. It has no effect on non-positioned elements.
|
|
134
|
+
* @see
|
|
135
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/left)
|
|
136
|
+
*/
|
|
42
137
|
left?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Left>>>;
|
|
138
|
+
/**
|
|
139
|
+
* @description
|
|
140
|
+
* Sets the horizontal spacing behavior between text characters.
|
|
141
|
+
* This value is added to the natural spacing between characters while rendering the text.
|
|
142
|
+
* @see
|
|
143
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing)
|
|
144
|
+
*/
|
|
43
145
|
letterSpacing?: ResponsiveStyle<SpaceKeys<StyleToken<Property.LetterSpacing>>>;
|
|
146
|
+
/**
|
|
147
|
+
* @description
|
|
148
|
+
* Sets the height of a line box. It's commonly used to set the distance between lines of text.
|
|
149
|
+
* @see
|
|
150
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)
|
|
151
|
+
*/
|
|
44
152
|
lineHeight?: ResponsiveStyle<LineHeightKeys<StyleToken<Property.LineHeight>>>;
|
|
153
|
+
/**
|
|
154
|
+
* @description
|
|
155
|
+
* Shorthand CSS property that sets the margin area on all four sides of an element.
|
|
156
|
+
* @see
|
|
157
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)
|
|
158
|
+
*/
|
|
45
159
|
margin?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Margin>>>;
|
|
160
|
+
/**
|
|
161
|
+
* @description
|
|
162
|
+
* Shorthand CSS property that defines the logical block start and end margins of an element,
|
|
163
|
+
* which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
|
|
164
|
+
* @see
|
|
165
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block)
|
|
166
|
+
*/
|
|
46
167
|
marginBlock?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBlock>>>;
|
|
168
|
+
/**
|
|
169
|
+
* @description
|
|
170
|
+
* Defines the logical block end margin of an element,
|
|
171
|
+
* which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
|
|
172
|
+
* @see
|
|
173
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block-end)
|
|
174
|
+
*/
|
|
47
175
|
marginBlockEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBlockEnd>>>;
|
|
176
|
+
/**
|
|
177
|
+
* @description
|
|
178
|
+
* Defines the logical block start margin of an element,
|
|
179
|
+
* which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
|
|
180
|
+
* @see
|
|
181
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-block-start)
|
|
182
|
+
*/
|
|
48
183
|
marginBlockStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBlockStart>>>;
|
|
184
|
+
/**
|
|
185
|
+
* @description
|
|
186
|
+
* Sets the margin area on the bottom of an element.
|
|
187
|
+
* A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
188
|
+
* @see
|
|
189
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
|
|
190
|
+
*/
|
|
49
191
|
marginBottom?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginBottom>>>;
|
|
192
|
+
/**
|
|
193
|
+
* @description
|
|
194
|
+
* Shorthand CSS property that defines both the logical inline start and end margins of an element,
|
|
195
|
+
* which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
|
|
196
|
+
* @see
|
|
197
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline)
|
|
198
|
+
*/
|
|
50
199
|
marginInline?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginInline>>>;
|
|
200
|
+
/**
|
|
201
|
+
* @description
|
|
202
|
+
* Defines the logical inline end margin of an element,
|
|
203
|
+
* which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
|
|
204
|
+
* @see
|
|
205
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end)
|
|
206
|
+
*/
|
|
51
207
|
marginInlineEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginInlineEnd>>>;
|
|
208
|
+
/**
|
|
209
|
+
* @description
|
|
210
|
+
* Defines the logical inline start margin of an element,
|
|
211
|
+
* which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
|
|
212
|
+
* @see
|
|
213
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start)
|
|
214
|
+
*/
|
|
52
215
|
marginInlineStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginInlineStart>>>;
|
|
216
|
+
/**
|
|
217
|
+
* @description
|
|
218
|
+
* Sets the margin area on the left side of an element.
|
|
219
|
+
* A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
220
|
+
* @see
|
|
221
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left)
|
|
222
|
+
*/
|
|
53
223
|
marginLeft?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginLeft>>>;
|
|
224
|
+
/**
|
|
225
|
+
* @description
|
|
226
|
+
* Sets the margin area on the right side of an element.
|
|
227
|
+
* A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
228
|
+
* @see
|
|
229
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
|
|
230
|
+
*/
|
|
54
231
|
marginRight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginRight>>>;
|
|
232
|
+
/**
|
|
233
|
+
* @description
|
|
234
|
+
* Sets the margin area on the top of an element.
|
|
235
|
+
* A positive value places it farther from its neighbors, while a negative value places it closer.
|
|
236
|
+
* @see
|
|
237
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top)
|
|
238
|
+
*/
|
|
55
239
|
marginTop?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MarginTop>>>;
|
|
240
|
+
/**
|
|
241
|
+
* @description
|
|
242
|
+
* Sets the maximum height of an element.
|
|
243
|
+
* It prevents the used value of the height property from becoming larger than the value specified for max-height.
|
|
244
|
+
* @see
|
|
245
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/max-height)
|
|
246
|
+
*/
|
|
56
247
|
maxHeight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MaxHeight>>>;
|
|
248
|
+
/**
|
|
249
|
+
* @description
|
|
250
|
+
* Sets the maximum width of an element.
|
|
251
|
+
* It prevents the used value of the width property from becoming larger than the value specified by max-width.
|
|
252
|
+
* @see
|
|
253
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width)
|
|
254
|
+
*/
|
|
57
255
|
maxWidth?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MaxWidth>>>;
|
|
256
|
+
/**
|
|
257
|
+
* @description
|
|
258
|
+
* Sets the minimum height of an element.
|
|
259
|
+
* It prevents the used value of the height property from becoming smaller than the value specified for min-height.
|
|
260
|
+
* @see
|
|
261
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/min-height)
|
|
262
|
+
*/
|
|
58
263
|
minHeight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MinHeight>>>;
|
|
264
|
+
/**
|
|
265
|
+
* @description
|
|
266
|
+
* Sets the minimum width of an element.
|
|
267
|
+
* It prevents the used value of the width property from becoming smaller than the value specified for min-width.
|
|
268
|
+
* @see
|
|
269
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width)
|
|
270
|
+
*/
|
|
59
271
|
minWidth?: ResponsiveStyle<SpaceKeys<StyleToken<Property.MinWidth>>>;
|
|
272
|
+
/**
|
|
273
|
+
* @description
|
|
274
|
+
* Sets the opacity of an element.
|
|
275
|
+
* Opacity is the degree to which content behind an element is hidden, and is the opposite of transparency.
|
|
276
|
+
* @see
|
|
277
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
278
|
+
*/
|
|
60
279
|
opacity?: ResponsiveStyle<OpacityKeys<StyleToken<Property.Opacity>>>;
|
|
280
|
+
/**
|
|
281
|
+
* @description
|
|
282
|
+
* Shorthand CSS property that sets the desired behavior for an element's overflow
|
|
283
|
+
* — i.e. when an element's content is too big to fit in its block formatting context — in both directions.
|
|
284
|
+
* @see
|
|
285
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow)
|
|
286
|
+
*/
|
|
61
287
|
overflow?: ResponsiveStyle<StyleToken<Property.Overflow>>;
|
|
288
|
+
/**
|
|
289
|
+
* @description
|
|
290
|
+
* Shorthand CSS property that sets the padding area on all four sides of an element at once.
|
|
291
|
+
* @see
|
|
292
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
|
|
293
|
+
*/
|
|
62
294
|
padding?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Padding>>>;
|
|
295
|
+
/**
|
|
296
|
+
* @description
|
|
297
|
+
* Shorthand CSS property that defines the logical block start and end padding of an element,
|
|
298
|
+
* which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
|
|
299
|
+
* @see
|
|
300
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block)
|
|
301
|
+
*/
|
|
63
302
|
paddingBlock?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBlock>>>;
|
|
303
|
+
/**
|
|
304
|
+
* @description
|
|
305
|
+
* Defines the logical block end padding of an element,
|
|
306
|
+
* which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
|
|
307
|
+
* @see
|
|
308
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block-end)
|
|
309
|
+
*/
|
|
64
310
|
paddingBlockEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBlockEnd>>>;
|
|
311
|
+
/**
|
|
312
|
+
* @description
|
|
313
|
+
* Defines the logical block start padding of an element,
|
|
314
|
+
* which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
|
|
315
|
+
* @see
|
|
316
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-block-start)
|
|
317
|
+
*/
|
|
65
318
|
paddingBlockStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBlockStart>>>;
|
|
319
|
+
/**
|
|
320
|
+
* @description
|
|
321
|
+
* Sets the height of the padding area on the bottom of an element.
|
|
322
|
+
* @see
|
|
323
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom)
|
|
324
|
+
*/
|
|
66
325
|
paddingBottom?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingBottom>>>;
|
|
326
|
+
/**
|
|
327
|
+
* @description
|
|
328
|
+
* Shorthand CSS property that defines the logical inline start and end padding of an element,
|
|
329
|
+
* which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
|
|
330
|
+
* @see
|
|
331
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline)
|
|
332
|
+
*/
|
|
67
333
|
paddingInline?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingInline>>>;
|
|
334
|
+
/**
|
|
335
|
+
* @description
|
|
336
|
+
* Defines the logical inline end padding of an element,
|
|
337
|
+
* which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
|
|
338
|
+
* @see
|
|
339
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end)
|
|
340
|
+
*/
|
|
68
341
|
paddingInlineEnd?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingInlineEnd>>>;
|
|
342
|
+
/**
|
|
343
|
+
* @description
|
|
344
|
+
* Defines the logical inline start padding of an element,
|
|
345
|
+
* which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
|
|
346
|
+
* @see
|
|
347
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-start)
|
|
348
|
+
*/
|
|
69
349
|
paddingInlineStart?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingInlineStart>>>;
|
|
350
|
+
/**
|
|
351
|
+
* @description
|
|
352
|
+
* Sets the width of the padding area to the left of an element.
|
|
353
|
+
* @see
|
|
354
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left)
|
|
355
|
+
*/
|
|
70
356
|
paddingLeft?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingLeft>>>;
|
|
357
|
+
/**
|
|
358
|
+
* @description
|
|
359
|
+
* Sets the width of the padding area on the right of an element.
|
|
360
|
+
* @see
|
|
361
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
|
|
362
|
+
*/
|
|
71
363
|
paddingRight?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingRight>>>;
|
|
364
|
+
/**
|
|
365
|
+
* @description
|
|
366
|
+
* Sets the height of the padding area on the top of an element.
|
|
367
|
+
* @see
|
|
368
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top)
|
|
369
|
+
*/
|
|
72
370
|
paddingTop?: ResponsiveStyle<SpaceKeys<StyleToken<Property.PaddingTop>>>;
|
|
371
|
+
/**
|
|
372
|
+
* @description
|
|
373
|
+
* Sets how an element is positioned in a document.
|
|
374
|
+
* The top, right, bottom, and left properties determine the final location of positioned elements.
|
|
375
|
+
* @see
|
|
376
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/position)
|
|
377
|
+
*/
|
|
73
378
|
position?: ResponsiveStyle<StyleToken<Property.Position>>;
|
|
379
|
+
/**
|
|
380
|
+
* @description
|
|
381
|
+
* Participates in specifying the horizontal position of a positioned element. It has no effect on non-positioned elements.
|
|
382
|
+
* @see
|
|
383
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/right)
|
|
384
|
+
*/
|
|
74
385
|
right?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Right>>>;
|
|
386
|
+
/**
|
|
387
|
+
* @description
|
|
388
|
+
* Sets the horizontal alignment of the content inside a block element or table-cell box.
|
|
389
|
+
* This means it works like vertical-align but in the horizontal direction.
|
|
390
|
+
* @see
|
|
391
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)
|
|
392
|
+
*/
|
|
75
393
|
textAlign?: ResponsiveStyle<StyleToken<Property.TextAlign>>;
|
|
394
|
+
/**
|
|
395
|
+
* @description
|
|
396
|
+
* Shorthand CSS property that sets the appearance of decorative lines on text.
|
|
397
|
+
* It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property.
|
|
398
|
+
* @see
|
|
399
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
|
|
400
|
+
*/
|
|
76
401
|
textDecoration?: ResponsiveStyle<StyleToken<Property.TextDecoration>>;
|
|
402
|
+
/**
|
|
403
|
+
* @description
|
|
404
|
+
* Specifies how to capitalize an element's text. It can be used to make text
|
|
405
|
+
* appear in all-uppercase or all-lowercase, or with each word capitalized.
|
|
406
|
+
* @see
|
|
407
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform)
|
|
408
|
+
*/
|
|
77
409
|
textTransform?: ResponsiveStyle<StyleToken<Property.TextTransform>>;
|
|
410
|
+
/**
|
|
411
|
+
* @description
|
|
412
|
+
* Participates in specifying the vertical position of a positioned element. It has no effect on non-positioned elements.
|
|
413
|
+
* @see
|
|
414
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/top)
|
|
415
|
+
*/
|
|
78
416
|
top?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Top>>>;
|
|
417
|
+
/**
|
|
418
|
+
* @description
|
|
419
|
+
* Lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual formatting model.
|
|
420
|
+
* @see
|
|
421
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transform)
|
|
422
|
+
*/
|
|
79
423
|
transform?: ResponsiveStyle<TransformKeys<StyleToken<Property.Transform>>>;
|
|
424
|
+
/**
|
|
425
|
+
* @description
|
|
426
|
+
* Sets the origin for an element's transformations.
|
|
427
|
+
* @see
|
|
428
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin)
|
|
429
|
+
*/
|
|
80
430
|
transformOrigin?: ResponsiveStyle<StyleToken<Property.TransformOrigin>>;
|
|
431
|
+
/**
|
|
432
|
+
* @description
|
|
433
|
+
* Sets an element's width. By default, it sets the width of the content area,
|
|
434
|
+
* but if box-sizing is set to border-box, it sets the width of the border area.
|
|
435
|
+
* @see
|
|
436
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/width)
|
|
437
|
+
*/
|
|
81
438
|
width?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Width>>>;
|
|
439
|
+
/**
|
|
440
|
+
* @description
|
|
441
|
+
* Sets how white space inside an element is handled.
|
|
442
|
+
* @see
|
|
443
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
|
|
444
|
+
*/
|
|
82
445
|
whiteSpace?: ResponsiveStyle<StyleToken<Property.WhiteSpace>>;
|
|
83
446
|
}
|
|
84
447
|
export interface CSSLayoutStyleProps {
|
|
85
448
|
/**
|
|
86
|
-
*
|
|
449
|
+
* @description
|
|
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)
|
|
87
453
|
*/
|
|
88
454
|
alignItems?: ResponsiveStyle<Property.AlignItems>;
|
|
89
455
|
/**
|
|
90
|
-
*
|
|
456
|
+
* @description
|
|
457
|
+
* Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis.
|
|
458
|
+
* @see
|
|
459
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
91
460
|
*/
|
|
92
461
|
alignContent?: ResponsiveStyle<Property.AlignContent>;
|
|
93
462
|
/**
|
|
94
|
-
*
|
|
463
|
+
* @description
|
|
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.
|
|
465
|
+
* @see
|
|
466
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
95
467
|
*/
|
|
96
468
|
justifyContent?: ResponsiveStyle<Property.JustifyContent>;
|
|
97
469
|
/**
|
|
98
|
-
*
|
|
470
|
+
* @description
|
|
471
|
+
* Controls the spacing between child components. Shorthand for rowGap and columnGap.
|
|
472
|
+
* @see
|
|
473
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
|
|
99
474
|
*/
|
|
100
475
|
gap?: ResponsiveStyle<SpaceKeys<StyleToken<Property.Gap>>>;
|
|
101
476
|
/**
|
|
102
|
-
*
|
|
477
|
+
* @description
|
|
478
|
+
* Controls the spacing between Flex/Grid child columns
|
|
479
|
+
* @see
|
|
480
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
103
481
|
*/
|
|
104
482
|
columnGap?: ResponsiveStyle<SpaceKeys<StyleToken<Property.GridColumnGap>>>;
|
|
105
483
|
/**
|
|
106
|
-
*
|
|
484
|
+
* @description
|
|
485
|
+
* Controls the spacing between Flex/Grid child rows
|
|
486
|
+
* @see
|
|
487
|
+
*[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
107
488
|
*/
|
|
108
489
|
rowGap?: ResponsiveStyle<SpaceKeys<StyleToken<Property.RowGap>>>;
|
|
109
490
|
}
|
|
@@ -6,55 +6,67 @@ import { InputProps } from './input';
|
|
|
6
6
|
import { FieldProps, LabelPositions } from './field';
|
|
7
7
|
export interface SwitchFieldProps extends InputProps, FieldProps, BaseStyleProps {
|
|
8
8
|
/**
|
|
9
|
+
* @description
|
|
9
10
|
* Use this to provide a default checked value for an uncontrolled SwitchField
|
|
10
11
|
*/
|
|
11
12
|
defaultChecked?: boolean;
|
|
12
13
|
/**
|
|
14
|
+
* @description
|
|
13
15
|
* If isChecked is provided, this will be a controlled SwitchField
|
|
14
16
|
*/
|
|
15
17
|
isChecked?: boolean;
|
|
16
18
|
/**
|
|
19
|
+
* @description
|
|
17
20
|
* This property will set the switch to disabled
|
|
18
21
|
*/
|
|
19
22
|
isDisabled?: boolean;
|
|
20
23
|
/**
|
|
24
|
+
* @description
|
|
21
25
|
* Visually hide the label, but the associated label text will still be required for accessibility.
|
|
22
|
-
* @default false
|
|
23
26
|
*/
|
|
24
27
|
isLabelHidden?: boolean;
|
|
25
28
|
/**
|
|
29
|
+
* @description
|
|
26
30
|
* Label text for field (required)
|
|
27
31
|
*/
|
|
28
32
|
label: React.ReactNode;
|
|
29
33
|
/**
|
|
34
|
+
* @description
|
|
30
35
|
* Position of label in relation to the switchfield
|
|
31
36
|
*/
|
|
32
37
|
labelPosition?: LabelPositions;
|
|
33
38
|
/**
|
|
39
|
+
* @description
|
|
34
40
|
* This prop adds a name attribute to the input element
|
|
35
41
|
*/
|
|
36
42
|
name?: string;
|
|
37
43
|
/**
|
|
44
|
+
* @description
|
|
38
45
|
* Assign an onChange event to the switch field
|
|
39
46
|
*/
|
|
40
47
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
41
48
|
/**
|
|
49
|
+
* @description
|
|
42
50
|
* This prop adjusts the size of the switch component
|
|
43
51
|
*/
|
|
44
52
|
size?: Sizes;
|
|
45
53
|
/**
|
|
54
|
+
* @description
|
|
46
55
|
* This property will change the color of the thumb in the switch component
|
|
47
56
|
*/
|
|
48
57
|
thumbColor?: StyleToken<Property.Color>;
|
|
49
58
|
/**
|
|
59
|
+
* @description
|
|
50
60
|
* This property will change the color of the track in the switch component
|
|
51
61
|
*/
|
|
52
62
|
trackColor?: StyleToken<Property.Color>;
|
|
53
63
|
/**
|
|
64
|
+
* @description
|
|
54
65
|
* This property will change the color of the checked track in the switch component
|
|
55
66
|
*/
|
|
56
67
|
trackCheckedColor?: StyleToken<Property.Color>;
|
|
57
68
|
/**
|
|
69
|
+
* @description
|
|
58
70
|
* This is the value of the switch input and will be submitted with a form submission
|
|
59
71
|
*/
|
|
60
72
|
value?: string | number;
|
|
@@ -5,19 +5,23 @@ export declare type TableSize = Sizes;
|
|
|
5
5
|
export declare type TableVariation = 'bordered' | 'striped';
|
|
6
6
|
export interface TableProps extends ViewProps {
|
|
7
7
|
/**
|
|
8
|
+
* @description
|
|
8
9
|
* Optional caption which serves as an accessible title/caption for
|
|
9
10
|
* the table.
|
|
10
11
|
*/
|
|
11
12
|
caption?: React.ReactNode;
|
|
12
13
|
/**
|
|
14
|
+
* @description
|
|
13
15
|
* If set to true, will highlight a table row on hover. Default is false.
|
|
14
16
|
*/
|
|
15
17
|
highlightOnHover?: boolean;
|
|
16
18
|
/**
|
|
19
|
+
* @description
|
|
17
20
|
* Affects font size and padding. Default is in between 'small' and 'large'.
|
|
18
21
|
*/
|
|
19
22
|
size?: TableSize;
|
|
20
23
|
/**
|
|
24
|
+
* @description
|
|
21
25
|
* Sets a supported style variation. Default is no specific variation.
|
|
22
26
|
*/
|
|
23
27
|
variation?: TableVariation;
|
|
@@ -27,7 +31,15 @@ export interface TableBodyProps extends ViewProps {
|
|
|
27
31
|
export declare type TableCellElement = 'td' | 'th';
|
|
28
32
|
export interface TableCellProps extends ViewProps {
|
|
29
33
|
as?: TableCellElement;
|
|
34
|
+
/**
|
|
35
|
+
* @description
|
|
36
|
+
* Defines the number of columns spanned by a cell within a <table>
|
|
37
|
+
*/
|
|
30
38
|
colspan?: Pick<React.HTMLProps<HTMLTableCellElement>, 'colSpan'>;
|
|
39
|
+
/**
|
|
40
|
+
* @description
|
|
41
|
+
* Defines the number of rows spanned by a cell within a <table>
|
|
42
|
+
*/
|
|
31
43
|
rowspan?: Pick<React.HTMLProps<HTMLTableCellElement>, 'rowSpan'>;
|
|
32
44
|
}
|
|
33
45
|
export interface TableFootProps extends ViewProps {
|
|
@@ -5,40 +5,48 @@ import { FlexProps } from './flex';
|
|
|
5
5
|
export declare type TabsSpacing = 'equal' | 'relative';
|
|
6
6
|
export interface TabsProps extends FlexProps {
|
|
7
7
|
/**
|
|
8
|
+
* @description
|
|
8
9
|
* The Tabs component only accepts TabItem components as children.
|
|
9
10
|
*/
|
|
10
11
|
children: React.ReactElement | React.ReactElement[];
|
|
11
12
|
/**
|
|
13
|
+
* @description
|
|
12
14
|
* Change which Tab content is initially displayed. Pass in the index of the Tab you wish to show. The default is index 0 (the first tab).
|
|
13
15
|
*/
|
|
14
16
|
defaultIndex?: number | string;
|
|
15
17
|
/**
|
|
18
|
+
* @description
|
|
16
19
|
* The controlled index of the currently selected tab. This should be used with
|
|
17
20
|
* `onChange` as well to make the component controlled.
|
|
18
21
|
*/
|
|
19
22
|
currentIndex?: number | string;
|
|
20
23
|
/**
|
|
24
|
+
* @description
|
|
21
25
|
* For controlled usage, use the onChange event to listen to when a tab is clicked
|
|
22
26
|
* and update the `currentIndex` accordingly. The index of the tab clicked is passed
|
|
23
27
|
* to onChange.
|
|
24
28
|
*/
|
|
25
29
|
onChange?: (value: number | string) => void;
|
|
26
30
|
/**
|
|
31
|
+
* @description
|
|
27
32
|
* Control how Tabs take up the remaining space. Pass `equal` to make each tab take up the same amount of space,
|
|
28
33
|
* and `relative` to make each tab take up space relative to the size of its title.
|
|
29
34
|
*/
|
|
30
35
|
spacing?: TabsSpacing;
|
|
31
36
|
/**
|
|
37
|
+
* @description
|
|
32
38
|
* Sets the border and indicator of the tabs to be the top or bottom.
|
|
33
39
|
*/
|
|
34
40
|
indicatorPosition?: 'top' | 'bottom';
|
|
35
41
|
}
|
|
36
42
|
export interface TabItemProps extends BaseComponentProps, BaseStyleProps {
|
|
37
43
|
/**
|
|
44
|
+
* @description
|
|
38
45
|
* Change the title corresponding with each Tab's content panel.
|
|
39
46
|
*/
|
|
40
47
|
title: React.ReactNode;
|
|
41
48
|
/**
|
|
49
|
+
* @description
|
|
42
50
|
* Make a Tab not clickable and its content not visible to the user. Defaults to false (i.e., visible).
|
|
43
51
|
*/
|
|
44
52
|
isDisabled?: boolean;
|
|
@@ -2,16 +2,19 @@ import { ViewProps } from './view';
|
|
|
2
2
|
export declare type TextVariation = 'primary' | 'secondary' | 'tertiary' | 'error' | 'warning' | 'info' | 'success';
|
|
3
3
|
export interface TextProps extends ViewProps {
|
|
4
4
|
/**
|
|
5
|
+
* @description
|
|
5
6
|
* HTML allowed tags
|
|
6
7
|
*/
|
|
7
8
|
as?: 'p' | 'span' | 'strong' | 'em';
|
|
8
9
|
/**
|
|
10
|
+
* @description
|
|
9
11
|
* This should be the primary way to handle different styles of text. Lower-level
|
|
10
12
|
* text styling attributes like color can be set directly, that should be more of an
|
|
11
13
|
* escape hatch.
|
|
12
14
|
*/
|
|
13
15
|
variation?: TextVariation;
|
|
14
16
|
/**
|
|
17
|
+
* @description
|
|
15
18
|
* This attribute will be used to indicate if the text component should truncate text
|
|
16
19
|
* that exceeds the width of the text element. Truncated text will render an ellipsis.
|
|
17
20
|
*/
|