Skip to content

Commit eae38fe

Browse files
authored
update button api (#3731)
1 parent 3967239 commit eae38fe

File tree

1 file changed

+5
-197
lines changed

1 file changed

+5
-197
lines changed

src/components/button/button.api.json

+5-197
Original file line numberDiff line numberDiff line change
@@ -237,89 +237,12 @@
237237
},
238238
{
239239
"type": "section",
240-
"title": "Main Button",
240+
"title": "Button",
241241
"description": ""
242242
},
243243
{
244244
"type": "table",
245-
"columns": ["Property", "Component"],
246-
"items": [
247-
{
248-
"title": "Primary",
249-
"description": "",
250-
"content": [
251-
{
252-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_priority_primary.png"
253-
}
254-
]
255-
},
256-
{
257-
"title": "Secondary",
258-
"description": "",
259-
"content": [
260-
{
261-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_priority_secondary.png"
262-
}
263-
]
264-
}
265-
],
266-
"title": "",
267-
"description": "",
268-
"name": "Priority"
269-
},
270-
{
271-
"type": "table",
272-
"columns": ["Property", "Primary", "Secondary"],
273-
"items": [
274-
{
275-
"title": "Main",
276-
"description": "The default button style, used for most actions.",
277-
"content": [
278-
{
279-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_mainPrimary.png"
280-
},
281-
{
282-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_mainSecondary.png"
283-
}
284-
]
285-
},
286-
{
287-
"title": "Inverted",
288-
"description": "Used on top of images and dark background. ",
289-
"content": [
290-
{
291-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_invertedPrimary.png"
292-
},
293-
{
294-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_invertedSecondary.png"
295-
}
296-
]
297-
},
298-
{
299-
"title": "Destructive",
300-
"description": "Used for destructive actions such as Delete and Log out. ",
301-
"content": [
302-
{
303-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_distructivePrimary.png"
304-
},
305-
{
306-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_distructiveSecondary.png"
307-
}
308-
]
309-
}
310-
],
311-
"title": "",
312-
"description": "",
313-
"name": "Presets"
314-
},
315-
{
316-
"type": "section",
317-
"title": "States",
318-
"description": ""
319-
},
320-
{
321-
"type": "table",
322-
"columns": ["Property", "Primary", "Secondary"],
245+
"columns": ["Property", "Default", "Outline"],
323246
"items": [
324247
{
325248
"title": "Active",
@@ -333,18 +256,6 @@
333256
}
334257
]
335258
},
336-
{
337-
"title": "Loading",
338-
"description": "",
339-
"content": [
340-
{
341-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_mainLoadingPrimary.png"
342-
},
343-
{
344-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_mainLoadingSecondary.png"
345-
}
346-
]
347-
},
348259
{
349260
"title": "Disabled",
350261
"description": "",
@@ -362,51 +273,6 @@
362273
"description": "",
363274
"name": "Main"
364275
},
365-
{
366-
"type": "table",
367-
"columns": ["Property", "Primary", "Secondary"],
368-
"items": [
369-
{
370-
"title": "Active",
371-
"description": "",
372-
"content": [
373-
{
374-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedActivePrimary.png"
375-
},
376-
{
377-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedActiveSecondary.png"
378-
}
379-
]
380-
},
381-
{
382-
"title": "Loading",
383-
"description": "",
384-
"content": [
385-
{
386-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedLoadingPrimary.png"
387-
},
388-
{
389-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedLoadingSecondary.png"
390-
}
391-
]
392-
},
393-
{
394-
"title": "Disabled",
395-
"description": "",
396-
"content": [
397-
{
398-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedDisabledPrimary.png"
399-
},
400-
{
401-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedDisabledSecondary.png"
402-
}
403-
]
404-
}
405-
],
406-
"title": "",
407-
"description": "",
408-
"name": "Inverted"
409-
},
410276
{
411277
"type": "table",
412278
"columns": ["Property", "Component"],
@@ -478,7 +344,7 @@
478344
"columns": ["Property", "Component"],
479345
"items": [
480346
{
481-
"title": "Primary",
347+
"title": "Default",
482348
"description": "",
483349
"content": [
484350
{
@@ -487,7 +353,7 @@
487353
]
488354
},
489355
{
490-
"title": "Secondary",
356+
"title": "Outline",
491357
"description": "",
492358
"content": [
493359
{
@@ -499,45 +365,14 @@
499365
"title": "Priority",
500366
"description": ""
501367
},
502-
{
503-
"type": "table",
504-
"columns": ["Property", "Primary", "Secondary"],
505-
"items": [
506-
{
507-
"title": "Main",
508-
"description": "The default button style, used for most actions.",
509-
"content": [
510-
{
511-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_mainPrimary.png"
512-
},
513-
{
514-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_mainSecondary.png"
515-
}
516-
]
517-
},
518-
{
519-
"title": "Inverted",
520-
"description": "Used on top of images and dark background. ",
521-
"content": [
522-
{
523-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_invertedPrimary.png"
524-
},
525-
{
526-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_invertedSecondary.png"
527-
}
528-
]
529-
}
530-
],
531-
"title": "Presets"
532-
},
533368
{
534369
"type": "section",
535370
"title": "States",
536371
"description": ""
537372
},
538373
{
539374
"type": "table",
540-
"columns": ["Property", "Primary", "Secondary"],
375+
"columns": ["Property", "Default", "Outline"],
541376
"items": [
542377
{
543378
"title": "Active",
@@ -596,15 +431,6 @@
596431
}
597432
]
598433
},
599-
{
600-
"title": "Destructive",
601-
"description": "text style: bodyBold, $textDangerLight",
602-
"content": [
603-
{
604-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_linkButton_presets_distructive.png"
605-
}
606-
]
607-
},
608434
{
609435
"title": "Disabled",
610436
"description": "text style: bodyBold, $textDisabled",
@@ -691,24 +517,6 @@
691517
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_fullWidth_presets_main.png"
692518
}
693519
]
694-
},
695-
{
696-
"title": "Destructive ",
697-
"description": "",
698-
"content": [
699-
{
700-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_fullWidth_presets_destructive.png"
701-
}
702-
]
703-
},
704-
{
705-
"title": "Premium",
706-
"description": "",
707-
"content": [
708-
{
709-
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_fullWidth_presets_premium.png"
710-
}
711-
]
712520
}
713521
],
714522
"title": "Presets",

0 commit comments

Comments
 (0)