@indico-data/design-system 2.15.1 → 2.17.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.15.1",
3
+ "version": "2.17.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -16,7 +16,7 @@ const meta: Meta = {
16
16
  options: ['solid', 'outline', 'text'],
17
17
  description: 'It sets the variant style for the button',
18
18
  table: {
19
- category: 'Styling',
19
+ category: 'Props',
20
20
  type: {
21
21
  summary: 'solid | outline | text',
22
22
  },
@@ -28,7 +28,7 @@ const meta: Meta = {
28
28
  options: ['primary', 'secondary', 'warning', 'error', 'success', 'info'],
29
29
  description: 'It sets the color for the button',
30
30
  table: {
31
- category: 'Styling',
31
+ category: 'Props',
32
32
  type: {
33
33
  summary: 'primary | secondary | warning | error | success | info',
34
34
  },
@@ -41,7 +41,7 @@ const meta: Meta = {
41
41
  description: 'It sets the size for the button',
42
42
  defaultValue: { summary: 'md' },
43
43
  table: {
44
- category: 'Styling',
44
+ category: 'Props',
45
45
  type: {
46
46
  summary: 'sm | md | lg',
47
47
  },
@@ -49,7 +49,7 @@ const meta: Meta = {
49
49
  },
50
50
  type: {
51
51
  table: {
52
- category: 'accessibility',
52
+ category: 'Props',
53
53
  type: {
54
54
  summary: 'button | submit | reset',
55
55
  },
@@ -63,7 +63,7 @@ const meta: Meta = {
63
63
  description:
64
64
  'Sets an icon to the left or right of the child element inside the button. It requires an icon to be set.',
65
65
  table: {
66
- category: 'Styling',
66
+ category: 'Props',
67
67
  defaultValue: { summary: 'left' },
68
68
  type: {
69
69
  summary: 'left | right',
@@ -74,7 +74,7 @@ const meta: Meta = {
74
74
  },
75
75
  iconName: {
76
76
  table: {
77
- category: 'Styling',
77
+ category: 'Props',
78
78
  type: {
79
79
  summary: Object.values(exampleIcons).join(' | '),
80
80
  },
@@ -87,7 +87,7 @@ const meta: Meta = {
87
87
  ariaLabel: {
88
88
  description: 'Sets the aria-label attribute for the button.',
89
89
  table: {
90
- category: 'accessibility',
90
+ category: 'Props',
91
91
  type: {
92
92
  summary: 'string',
93
93
  },
@@ -118,7 +118,7 @@ const meta: Meta = {
118
118
  control: 'boolean',
119
119
  table: {
120
120
  type: { summary: 'true | false' },
121
- category: 'Styling',
121
+ category: 'Props',
122
122
  },
123
123
  defaultValue: { summary: false },
124
124
  description:
@@ -128,11 +128,27 @@ const meta: Meta = {
128
128
  control: 'boolean',
129
129
  table: {
130
130
  type: { summary: 'true | false' },
131
- category: 'Styling',
131
+ category: 'Props',
132
132
  },
133
133
  defaultValue: { summary: false },
134
134
  description: 'It disables the button',
135
135
  },
136
+ className: {
137
+ control: 'text',
138
+ table: {
139
+ category: 'Props',
140
+ },
141
+ defaultValue: { summary: '' },
142
+ description: 'allows the passing of classes',
143
+ },
144
+ href: {
145
+ control: 'text',
146
+ table: {
147
+ category: 'Props',
148
+ },
149
+ defaultValue: { summary: '' },
150
+ description: 'passes a href value to the button for creating links',
151
+ },
136
152
  },
137
153
  };
138
154
 
@@ -33,47 +33,8 @@ export const Forms = createGlobalStyle`
33
33
  font-size: ${TYPOGRAPHY.fontSize.subheadSmall};
34
34
  }
35
35
 
36
- [type='color'],
37
- [type='date'],
38
- [type='datetime'],
39
- [type='datetime-local'],
40
- [type='email'],
41
- [type='month'],
42
- [type='number'],
43
- [type='password'],
44
- [type='search'],
45
- [type='tel'],
46
- [type='text'],
47
- [type='time'],
48
- [type='url'],
49
- [type='week'],
50
- input:not([type]),
51
- textarea {
52
- appearance: none;
53
- border-radius: 2px;
54
- box-shadow: ${formBoxShadow};
55
- box-sizing: border-box;
56
- margin-bottom: ${TYPOGRAPHY.spacing.half};
57
- padding: ${TYPOGRAPHY.spacing.third};
58
- transition: border-color ${ANIMATION.duration} ${ANIMATION.timing};
59
- width: 100%;
60
-
61
- &:focus {
62
- border-color: ${COLORS.actionColor};
63
- box-shadow: ${formBoxShadowFocus};
64
- outline: none;
65
- }
66
36
 
67
- &:disabled {
68
- cursor: not-allowed;
69
37
 
70
- &:hover {
71
- border: 1px solid ${COLORS.lightGray};
72
- }
73
- }
74
-
75
-
76
- }
77
38
 
78
39
  textarea {
79
40
  resize: vertical;