1 | (function (global, factory) {
|
2 | if (typeof define === "function" && define.amd) {
|
3 | define(['module'], factory);
|
4 | } else if (typeof exports !== "undefined") {
|
5 | factory(module);
|
6 | } else {
|
7 | var mod = {
|
8 | exports: {}
|
9 | };
|
10 | factory(mod);
|
11 | global.buttonConfig = mod.exports;
|
12 | }
|
13 | })(this, function (module) {
|
14 | 'use strict';
|
15 |
|
16 | module.exports = {
|
17 | default: 'primary',
|
18 | variants: [{
|
19 | name: 'primary',
|
20 | label: 'Primary Buttons',
|
21 | notes: 'Primary buttons should be used for the principle call to action on the page.',
|
22 | context: {
|
23 | variant: 'primary'
|
24 | }
|
25 | }, {
|
26 | name: 'primary--small',
|
27 | label: 'Primary Buttons (Small)',
|
28 | notes: '\n Small buttons may be used when there is not enough space for a\n regular sized button. This issue is most found in tables. Small button should have three words\n or less.\n ',
|
29 | context: {
|
30 | variant: 'primary',
|
31 | small: true
|
32 | }
|
33 | }, {
|
34 | name: 'secondary',
|
35 | label: 'Secondary Buttons',
|
36 | notes: 'Secondary buttons should be used for secondary actions on each page.',
|
37 | context: {
|
38 | variant: 'secondary'
|
39 | }
|
40 | }, {
|
41 | name: 'secondary--small',
|
42 | label: 'Secondary Buttons (Small)',
|
43 | notes: '\n Small buttons may be used when there is not enough space for a\n regular sized button. This issue is most found in tables. Small button should have three words\n or less.\n ',
|
44 | context: {
|
45 | variant: 'secondary',
|
46 | small: true
|
47 | }
|
48 | }, {
|
49 | name: 'tertiary',
|
50 | label: 'Tertiary Buttons',
|
51 | notes: 'Tertiary buttons should be used for tertiary actions on each page.',
|
52 | context: {
|
53 | variant: 'tertiary'
|
54 | }
|
55 | }, {
|
56 | name: 'tertiary--small',
|
57 | label: 'Tertiary Buttons (Small)',
|
58 | notes: '\n Small buttons may be used when there is not enough space for a\n regular sized button. This issue is most found in tables. Small button should have three words\n or less.\n ',
|
59 | context: {
|
60 | variant: 'tertiary',
|
61 | small: true
|
62 | }
|
63 | }, {
|
64 | name: 'danger',
|
65 | label: 'Danger Buttons',
|
66 | notes: 'Danger buttons should be used for a negative action (such as Delete) on the page.',
|
67 | context: {
|
68 | variant: 'danger',
|
69 | danger: true
|
70 | }
|
71 | }, {
|
72 | name: 'danger--small',
|
73 | label: 'Danger Buttons (Small)',
|
74 | notes: '\n Small buttons may be used when there is not enough space for a\n regular sized button. This issue is most found in tables. Small button should have three words\n or less.\n ',
|
75 | context: {
|
76 | variant: 'danger',
|
77 | danger: true,
|
78 | small: true
|
79 | }
|
80 | }, {
|
81 | name: 'danger--primary',
|
82 | label: 'Primary Danger Buttons',
|
83 | context: {
|
84 | variant: 'danger--primary',
|
85 | danger: true
|
86 | }
|
87 | }, {
|
88 | name: 'danger--primary--small',
|
89 | label: 'Primary Danger Buttons (Small)',
|
90 | notes: '\n Small buttons may be used when there is not enough space for a\n regular sized button. This issue is most found in tables. Small button should have three words\n or less.\n ',
|
91 | context: {
|
92 | variant: 'danger--primary',
|
93 | danger: true,
|
94 | small: true
|
95 | }
|
96 | }, {
|
97 | name: 'ghost',
|
98 | label: 'Ghost Buttons',
|
99 | context: {
|
100 | variant: 'ghost'
|
101 | }
|
102 | }, {
|
103 | name: 'ghost--small',
|
104 | label: 'Ghost Buttons (Small)',
|
105 | notes: '\n Small buttons may be used when there is not enough space for a\n regular sized button. This issue is most found in tables. Small button should have three words\n or less.\n ',
|
106 | context: {
|
107 | variant: 'ghost',
|
108 | small: true
|
109 | }
|
110 | }]
|
111 | };
|
112 | }); |
\ | No newline at end of file |