Skip to content

Commit ce29e55

Browse files
committed
chore: Add descriptions for style API
1 parent 8c20e1c commit ce29e55

File tree

21 files changed

+40
-0
lines changed

21 files changed

+40
-0
lines changed

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ If the label is assigned via the \`i18nStrings\` property, this label will be ig
209209
"type": "string",
210210
},
211211
{
212+
"description": "An object containing CSS properties to customize the alert's visual appearance.",
212213
"inlineType": {
213214
"name": "AlertProps.Style",
214215
"properties": [
@@ -3637,6 +3638,7 @@ This is required to provide a good screen reader experience. For more informatio
36373638
"type": "string",
36383639
},
36393640
{
3641+
"description": "An object containing CSS properties to customize the autosuggest's visual appearance.",
36403642
"inlineType": {
36413643
"name": "AutosuggestProps.Style",
36423644
"properties": [
@@ -3980,6 +3982,7 @@ We do not support using this attribute to apply custom styling.",
39803982
"type": "Omit<React.HTMLAttributes<HTMLElement>, "children"> & Record<\`data-\${string}\`, string>",
39813983
},
39823984
{
3985+
"description": "An object containing CSS properties to customize the badge's visual appearance.",
39833986
"inlineType": {
39843987
"name": "BadgeProps.Style",
39853988
"properties": [
@@ -5495,6 +5498,7 @@ If the \`rel\` property is provided, it overrides the default behavior.",
54955498
"type": "string",
54965499
},
54975500
{
5501+
"description": "An object containing CSS properties to customize the button's visual appearance.",
54985502
"inlineType": {
54995503
"name": "ButtonProps.Style",
55005504
"properties": [
@@ -6611,6 +6615,7 @@ use the \`id\` attribute, consider setting it on a parent element instead.",
66116615
"type": "ReadonlyArray<ButtonGroupProps.ItemOrGroup>",
66126616
},
66136617
{
6618+
"description": "An object containing CSS properties to customize the button group's visual appearance.",
66146619
"inlineType": {
66156620
"name": "ButtonGroupProps.Style",
66166621
"properties": [
@@ -7592,6 +7597,7 @@ If both \`readOnly\` and \`disabled\` are set, \`disabled\` takes precedence.",
75927597
"type": "boolean",
75937598
},
75947599
{
7600+
"description": "An object containing CSS properties to customize the checkbox's visual appearance.",
75957601
"inlineType": {
75967602
"name": "CheckboxProps.Style",
75977603
"properties": [
@@ -9554,6 +9560,7 @@ If no height is provided, the media slot will be displayed at its full height.",
95549560
"type": "ContainerProps.Media",
95559561
},
95569562
{
9563+
"description": "An object containing CSS properties to customize the container's visual appearance.",
95579564
"inlineType": {
95589565
"name": "ContainerProps.Style",
95599566
"properties": [
@@ -12757,6 +12764,7 @@ If the \`action\` property is set, this property is ignored. **Deprecated**, rep
1275712764
"type": "boolean",
1275812765
},
1275912766
{
12767+
"description": "An object containing CSS properties to customize the flashbar's visual appearance.",
1276012768
"inlineType": {
1276112769
"name": "FlashbarProps.Style",
1276212770
"properties": [
@@ -15410,6 +15418,7 @@ including the date, month, week, time, datetime-local, number and range types.",
1541015418
"type": "InputProps.Step",
1541115419
},
1541215420
{
15421+
"description": "An object containing CSS properties to customize the input's visual appearance.",
1541315422
"inlineType": {
1541415423
"name": "InputProps.Style",
1541515424
"properties": [
@@ -16453,6 +16462,7 @@ By default, the component sets the \`rel\` attribute to "noopener noreferrer" wh
1645316462
"type": "string",
1645416463
},
1645516464
{
16465+
"description": "An object containing CSS properties to customize the link's visual appearance.",
1645616466
"inlineType": {
1645716467
"name": "LinkProps.Style",
1645816468
"properties": [
@@ -19325,6 +19335,7 @@ Add a button using the \`action\` property of the flashbar item instead.",
1932519335
"type": "string",
1932619336
},
1932719337
{
19338+
"description": "An object containing CSS properties to customize the progress bar's visual appearance.",
1932819339
"inlineType": {
1932919340
"name": "ProgressBarProps.Style",
1933019341
"properties": [
@@ -20036,6 +20047,7 @@ inadvertently sending data (such as user passwords) to third parties.",
2003620047
"type": "boolean",
2003720048
},
2003820049
{
20050+
"description": "An object containing CSS properties to customize the prompt input's visual appearance.",
2003920051
"inlineType": {
2004020052
"name": "PromptInputProps.Style",
2004120053
"properties": [
@@ -21242,6 +21254,7 @@ This property should be set for either all or none of the radio buttons in a gro
2124221254
"type": "boolean",
2124321255
},
2124421256
{
21257+
"description": "An object containing CSS properties to customize the radio button's visual appearance.",
2124521258
"inlineType": {
2124621259
"name": "RadioButtonProps.Style",
2124721260
"properties": [
@@ -21647,6 +21660,7 @@ being included in a form submission. A read-only control is still focusable.",
2164721660
"type": "boolean",
2164821661
},
2164921662
{
21663+
"description": "An object containing CSS properties to customize the radio group's visual appearance.",
2165021664
"inlineType": {
2165121665
"name": "RadioButtonProps.Style",
2165221666
"properties": [
@@ -22833,6 +22847,7 @@ Each segment has the following properties:
2283322847
"type": "string | null",
2283422848
},
2283522849
{
22850+
"description": "An object containing CSS properties to customize the segmented control's visual appearance.",
2283622851
"inlineType": {
2283722852
"name": "SegmentedControlProps.Style",
2283822853
"properties": [
@@ -24385,6 +24400,7 @@ being included in a form submission. A read-only control is still focusable.",
2438524400
"type": "number",
2438624401
},
2438724402
{
24403+
"description": "An object containing CSS properties to customize the slider's visual appearance.",
2438824404
"inlineType": {
2438924405
"name": "SliderProps.Style",
2439024406
"properties": [
@@ -26442,6 +26458,7 @@ need to introduce friction to the switching of tabs.",
2644226458
"type": "string",
2644326459
},
2644426460
{
26461+
"description": "An object containing CSS properties to customize the tabs' visual appearance.",
2644526462
"inlineType": {
2644626463
"name": "TabsProps.Style",
2644726464
"properties": [
@@ -27466,6 +27483,7 @@ If set to \`true\`, the live announcement of countText by assistive technologies
2746627483
"type": "boolean",
2746727484
},
2746827485
{
27486+
"description": "An object containing CSS properties to customize the text filter's visual appearance.",
2746927487
"inlineType": {
2747027488
"name": "TextFilterProps.Style",
2747127489
"properties": [
@@ -28042,6 +28060,7 @@ inadvertently sending data (such as user passwords) to third parties.",
2804228060
"type": "boolean",
2804328061
},
2804428062
{
28063+
"description": "An object containing CSS properties to customize the textarea's visual appearance.",
2804528064
"inlineType": {
2804628065
"name": "TextareaProps.Style",
2804728066
"properties": [
@@ -28855,6 +28874,7 @@ If both \`readOnly\` and \`disabled\` are set, \`disabled\` takes precedence.",
2885528874
"type": "boolean",
2885628875
},
2885728876
{
28877+
"description": "An object containing CSS properties to customize the toggle's visual appearance.",
2885828878
"inlineType": {
2885928879
"name": "ToggleProps.Style",
2886028880
"properties": [

src/alert/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export interface AlertProps extends BaseComponentProps {
157157
*/
158158
analyticsMetadata?: AlertProps.AnalyticsMetadata;
159159
/**
160+
* An object containing CSS properties to customize the alert's visual appearance.
160161
* @awsuiSystem core
161162
*/
162163
style?: AlertProps.Style;

src/autosuggest/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export interface AutosuggestProps
165165
renderHighlightedAriaLive?: AutosuggestProps.ContainingOptionAndGroupString;
166166

167167
/**
168+
* An object containing CSS properties to customize the autosuggest's visual appearance.
168169
* @awsuiSystem core
169170
*/
170171
style?: AutosuggestProps.Style;

src/badge/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface BadgeProps extends BaseComponentProps {
2929
children?: React.ReactNode;
3030

3131
/**
32+
* An object containing CSS properties to customize the badge's visual appearance.
3233
* @awsuiSystem core
3334
*/
3435
style?: BadgeProps.Style;

src/button-group/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export interface ButtonGroupProps extends BaseComponentProps {
100100
*/
101101
onFilesChange?: NonCancelableEventHandler<ButtonGroupProps.FilesChangeDetails>;
102102
/**
103+
* An object containing CSS properties to customize the button group's visual appearance.
103104
* @awsuiSystem core
104105
*/
105106
style?: ButtonGroupProps.Style;

src/button/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export interface ButtonProps extends BaseComponentProps, BaseButtonProps {
209209
iconAlt?: string;
210210

211211
/**
212+
* An object containing CSS properties to customize the button's visual appearance.
212213
* @awsuiSystem core
213214
*/
214215
style?: ButtonProps.Style;

src/checkbox/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export interface CheckboxProps extends BaseCheckboxProps {
3434
ariaRequired?: boolean;
3535

3636
/**
37+
* An object containing CSS properties to customize the checkbox's visual appearance.
3738
* @awsuiSystem core
3839
*/
3940
style?: CheckboxProps.Style;

src/container/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export interface ContainerProps extends BaseComponentProps {
8383
variant?: 'default' | 'stacked';
8484

8585
/**
86+
* An object containing CSS properties to customize the container's visual appearance.
8687
* @awsuiSystem core
8788
*/
8889
style?: ContainerProps.Style;

src/flashbar/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export interface FlashbarProps extends BaseComponentProps {
217217
i18nStrings?: FlashbarProps.I18nStrings;
218218

219219
/**
220+
* An object containing CSS properties to customize the flashbar's visual appearance.
220221
* @awsuiSystem core
221222
*/
222223
style?: FlashbarProps.Style;

src/input/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export interface InputProps
183183
step?: InputProps.Step;
184184

185185
/**
186+
* An object containing CSS properties to customize the input's visual appearance.
186187
* @awsuiSystem core
187188
*/
188189
style?: InputProps.Style;

0 commit comments

Comments
 (0)