@platformatic/ui-components 0.3.5 → 0.4.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.
Files changed (43) hide show
  1. package/.nvmrc +1 -1
  2. package/dist/assets/{index-BJ-rQoWR.css → index-K_bDNror.css} +1 -1
  3. package/dist/index.html +2 -2
  4. package/dist/main.css +14 -4
  5. package/package.json +11 -10
  6. package/src/components/Button.module.css +3 -0
  7. package/src/components/ButtonOnlyIcon.jsx +1 -1
  8. package/src/components/TooltipAbsolute.module.css +2 -2
  9. package/src/stories/BorderedBox.stories.jsx +3 -1
  10. package/src/stories/Button.stories.jsx +224 -47
  11. package/src/stories/ButtonFullRounded.stories.jsx +31 -6
  12. package/src/stories/ButtonOnlyIcon.stories.jsx +13 -3
  13. package/src/stories/DropDown.stories.jsx +43 -20
  14. package/src/stories/InfoBox.stories.jsx +12 -3
  15. package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +115 -117
  16. package/src/stories/List.stories.jsx +28 -5
  17. package/src/stories/ListElement.stories.jsx +2 -1
  18. package/src/stories/Loadable.stories.jsx +6 -5
  19. package/src/stories/LoadingSpinner.stories.jsx +4 -2
  20. package/src/stories/LogoDropDown.stories.jsx +38 -24
  21. package/src/stories/Modal.stories.jsx +72 -17
  22. package/src/stories/ModalDirectional.stories.jsx +12 -2
  23. package/src/stories/ModalStepsForward.stories.jsx +82 -13
  24. package/src/stories/PlatformaticIcon.stories.jsx +44 -9
  25. package/src/stories/SearchBar.stories.jsx +0 -1
  26. package/src/stories/SearchBarV2.stories.jsx +0 -1
  27. package/src/stories/Sidebar.stories.jsx +41 -10
  28. package/src/stories/TabbedWindow.stories.jsx +71 -31
  29. package/src/stories/TextWithLabel.stories.jsx +5 -1
  30. package/src/stories/Tooltip.stories.jsx +10 -2
  31. package/src/stories/TwoColumnsLayout.stories.jsx +7 -2
  32. package/src/stories/forms/Field.stories.jsx +53 -15
  33. package/src/stories/forms/Input.stories.jsx +8 -2
  34. package/src/stories/forms/InputWithSeparator.stories.jsx +31 -9
  35. package/src/stories/forms/Password.stories.jsx +5 -1
  36. package/src/stories/forms/Preview.stories.jsx +6 -1
  37. package/src/stories/forms/RadioGroup.stories.jsx +5 -1
  38. package/src/stories/forms/Select.stories.jsx +60 -38
  39. package/src/stories/forms/SelectWithInput.stories.jsx +78 -41
  40. package/src/stories/forms/ToggleSwitch.stories.jsx +14 -4
  41. package/src/stories/icons/Icons.stories.jsx +40 -13
  42. package/src/stories/logos/Logos.stories.jsx +9 -2
  43. /package/dist/assets/{index-YI7s19_T.js → index-DxEcxprd.js} +0 -0
@@ -37,8 +37,20 @@ const TemplateDefault = (args) => {
37
37
  <>
38
38
  <p>Chunks: {chunks.toString()} </p>
39
39
  <p>Value inserted: {value} </p>
40
- <label>Add Error message: <input type='checkbox' onChange={() => setErrorMessage(errorMessage === '' ? 'custom message' : '')} /></label>
41
- <InputWithSeparator {...args} value={value} onChange={handleChange} errorMessage={errorMessage} />
40
+ <label>
41
+ Add Error message:{' '}
42
+ <input
43
+ type='checkbox'
44
+ onChange={() =>
45
+ setErrorMessage(errorMessage === '' ? 'custom message' : '')}
46
+ />
47
+ </label>
48
+ <InputWithSeparator
49
+ {...args}
50
+ value={value}
51
+ onChange={handleChange}
52
+ errorMessage={errorMessage}
53
+ />
42
54
  </>
43
55
  )
44
56
  }
@@ -53,7 +65,7 @@ Default.args = {
53
65
  afterIcon: {
54
66
  iconName: 'AddIcon',
55
67
  color: ERROR_RED,
56
- handleClick: () => alert('I\'m an AddIcon')
68
+ handleClick: () => alert("I'm an AddIcon")
57
69
  }
58
70
  }
59
71
 
@@ -72,8 +84,20 @@ const TemplateDefaultWithValues = (args) => {
72
84
  <>
73
85
  <p>Chunks: {chunks.toString()} </p>
74
86
  <p>Value inserted: {value} </p>
75
- <label>Add Error message: <input type='checkbox' onChange={() => setErrorMessage(errorMessage === '' ? 'custom message' : '')} /></label>
76
- <InputWithSeparator {...args} value={value} onChange={handleChange} errorMessage={errorMessage} />
87
+ <label>
88
+ Add Error message:{' '}
89
+ <input
90
+ type='checkbox'
91
+ onChange={() =>
92
+ setErrorMessage(errorMessage === '' ? 'custom message' : '')}
93
+ />
94
+ </label>
95
+ <InputWithSeparator
96
+ {...args}
97
+ value={value}
98
+ onChange={handleChange}
99
+ errorMessage={errorMessage}
100
+ />
77
101
  </>
78
102
  )
79
103
  }
@@ -89,9 +113,8 @@ PredefinedValues.args = {
89
113
  afterIcon: {
90
114
  iconName: 'AddIcon',
91
115
  color: ERROR_RED,
92
- handleClick: () => alert('I\'m an AddIcon')
116
+ handleClick: () => alert("I'm an AddIcon")
93
117
  }
94
-
95
118
  }
96
119
 
97
120
  export const DifferentsSeparators = TemplateDefaultWithValues.bind({})
@@ -105,7 +128,6 @@ DifferentsSeparators.args = {
105
128
  afterIcon: {
106
129
  iconName: 'AddIcon',
107
130
  color: ERROR_RED,
108
- handleClick: () => alert('I\'m an AddIcon')
131
+ handleClick: () => alert("I'm an AddIcon")
109
132
  }
110
-
111
133
  }
@@ -43,7 +43,11 @@ Default.args = {
43
43
  placeholder: 'Platformatic'
44
44
  }
45
45
 
46
- const TemplateBorderMainDarkBlue = (args) => <div style={{ backgroundColor: 'white', padding: '2px' }}><Password {...args} /></div>
46
+ const TemplateBorderMainDarkBlue = (args) => (
47
+ <div style={{ backgroundColor: 'white', padding: '2px' }}>
48
+ <Password {...args} />
49
+ </div>
50
+ )
47
51
 
48
52
  export const BorderMainDarkBlue = TemplateBorderMainDarkBlue.bind({})
49
53
 
@@ -37,7 +37,12 @@ WithLink.args = {
37
37
  isLink: true
38
38
  }
39
39
 
40
- const TemplateWithChildren = (args) => <Preview {...args}><p>1st paragraph</p><p>2nd paragraph</p></Preview>
40
+ const TemplateWithChildren = (args) => (
41
+ <Preview {...args}>
42
+ <p>1st paragraph</p>
43
+ <p>2nd paragraph</p>
44
+ </Preview>
45
+ )
41
46
 
42
47
  export const WithChildren = TemplateWithChildren.bind({})
43
48
 
@@ -9,7 +9,11 @@ const divStyle = {
9
9
  backgroundColor: 'white'
10
10
  }
11
11
 
12
- const radios = [{ label: 'One', value: '1' }, { label: 'Two', value: '2' }, { label: 'Three', value: '3' }]
12
+ const radios = [
13
+ { label: 'One', value: '1' },
14
+ { label: 'Two', value: '2' },
15
+ { label: 'Three', value: '3' }
16
+ ]
13
17
 
14
18
  export default {
15
19
  title: 'Platformatic/Forms/RadioGroup',
@@ -1,7 +1,12 @@
1
1
  'use strict'
2
2
  import React, { useState } from 'react'
3
3
  import Select from '../../components/forms/Select'
4
- import { MAIN_DARK_BLUE, MAIN_GREEN, RICH_BLACK, WHITE } from '../../components/constants'
4
+ import {
5
+ MAIN_DARK_BLUE,
6
+ MAIN_GREEN,
7
+ RICH_BLACK,
8
+ WHITE
9
+ } from '../../components/constants'
5
10
 
6
11
  const divStyle = {
7
12
  width: '100%',
@@ -60,7 +65,6 @@ const TemplateBorderMainDarkBlue2 = (args) => {
60
65
  <Select {...args} value={value} onSelect={handleSelect} />
61
66
  <br />
62
67
  <Select placeholder='Disabled' disabled />
63
-
64
68
  </div>
65
69
  </>
66
70
  )
@@ -71,7 +75,11 @@ export const BorderMainDarkBlue = TemplateBorderMainDarkBlue.bind({})
71
75
  BorderMainDarkBlue.args = {
72
76
  name: 'test',
73
77
  placeholder: 'Defaul option',
74
- options: [...Array(20).keys()].map(ele => ({ label: `Option ${ele}`, value: `Value${ele}`, iconName: 'SocialGitHubIcon' })),
78
+ options: [...Array(20).keys()].map((ele) => ({
79
+ label: `Option ${ele}`,
80
+ value: `Value${ele}`,
81
+ iconName: 'SocialGitHubIcon'
82
+ })),
75
83
  borderColor: MAIN_DARK_BLUE
76
84
  }
77
85
 
@@ -80,7 +88,11 @@ export const DefaultInvalid = TemplateBorderMainDarkBlue.bind({})
80
88
  DefaultInvalid.args = {
81
89
  name: 'test',
82
90
  placeholder: 'Platformatic empty select',
83
- options: [{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }, { label: 'Option 3', value: '3' }],
91
+ options: [
92
+ { label: 'Option 1', value: '1' },
93
+ { label: 'Option 2', value: '2' },
94
+ { label: 'Option 3', value: '3' }
95
+ ],
84
96
  borderColor: MAIN_GREEN,
85
97
  errorMessage: 'This is an error message'
86
98
  }
@@ -90,22 +102,25 @@ export const withDifferentOptions = TemplateBorderMainDarkBlue2.bind({})
90
102
  withDifferentOptions.args = {
91
103
  name: 'test',
92
104
  placeholder: 'Platformatic',
93
- options: [...Array(20).keys()].map(ele => ({
94
- label: `Option ${ele}`,
95
- value: `Value${ele}`,
96
- iconName: 'SocialGitHubIcon'
97
- })).concat({
98
- label: 'Last but not least',
99
- iconName: 'AddIcon',
100
- value: 123123,
101
- notSelectable: true,
102
- onClick: () => alert('you clicked last but not least')
103
- }).concat({
104
- label: 'Play',
105
- iconName: 'PlayIcon',
106
- value: 123123,
107
- notSelectable: true
108
- }),
105
+ options: [...Array(20).keys()]
106
+ .map((ele) => ({
107
+ label: `Option ${ele}`,
108
+ value: `Value${ele}`,
109
+ iconName: 'SocialGitHubIcon'
110
+ }))
111
+ .concat({
112
+ label: 'Last but not least',
113
+ iconName: 'AddIcon',
114
+ value: 123123,
115
+ notSelectable: true,
116
+ onClick: () => alert('you clicked last but not least')
117
+ })
118
+ .concat({
119
+ label: 'Play',
120
+ iconName: 'PlayIcon',
121
+ value: 123123,
122
+ notSelectable: true
123
+ }),
109
124
  borderColor: MAIN_DARK_BLUE
110
125
  }
111
126
 
@@ -114,23 +129,26 @@ export const githubRepoExample = TemplateBorderMainDarkBlue2.bind({})
114
129
  githubRepoExample.args = {
115
130
  name: 'test',
116
131
  placeholder: 'Platformatic',
117
- options: [...Array(4).keys()].map(ele => ({
118
- label: `GitHub Repo ${ele}`,
119
- value: `Value${ele}`,
120
- iconName: 'SocialGitHubIcon'
121
- })).concat({
122
- label: 'this is an option that is not selectable',
123
- iconName: 'AddIcon',
124
- value: 123123,
125
- notSelectable: true,
126
- onClick: () => alert('you clicked last but not least')
127
- }).concat({
128
- label: 'Add Github repo',
129
- iconName: 'PlayIcon',
130
- value: 123123,
131
- notSelectable: true,
132
- notFilterable: true
133
- }),
132
+ options: [...Array(4).keys()]
133
+ .map((ele) => ({
134
+ label: `GitHub Repo ${ele}`,
135
+ value: `Value${ele}`,
136
+ iconName: 'SocialGitHubIcon'
137
+ }))
138
+ .concat({
139
+ label: 'this is an option that is not selectable',
140
+ iconName: 'AddIcon',
141
+ value: 123123,
142
+ notSelectable: true,
143
+ onClick: () => alert('you clicked last but not least')
144
+ })
145
+ .concat({
146
+ label: 'Add Github repo',
147
+ iconName: 'PlayIcon',
148
+ value: 123123,
149
+ notSelectable: true,
150
+ notFilterable: true
151
+ }),
134
152
  borderColor: MAIN_DARK_BLUE
135
153
  }
136
154
 
@@ -155,7 +173,11 @@ TemplateBackgroundTransparent.args = {
155
173
  name: 'test',
156
174
  placeholder: 'Defaul option',
157
175
  optionsBorderedBottom: false,
158
- options: [...Array(20).keys()].map(ele => ({ label: `Option ${ele}`, value: `Value${ele}`, iconName: 'OrganizationIcon' })),
176
+ options: [...Array(20).keys()].map((ele) => ({
177
+ label: `Option ${ele}`,
178
+ value: `Value${ele}`,
179
+ iconName: 'OrganizationIcon'
180
+ })),
159
181
  borderColor: WHITE,
160
182
  mainColor: WHITE,
161
183
  backgroundColor: RICH_BLACK,
@@ -1,7 +1,12 @@
1
1
  'use strict'
2
2
  import React, { useState } from 'react'
3
3
  import SelectWithInput from '../../components/forms/SelectWithInput'
4
- import { MAIN_DARK_BLUE, MAIN_GREEN, RICH_BLACK, WHITE } from '../../components/constants'
4
+ import {
5
+ MAIN_DARK_BLUE,
6
+ MAIN_GREEN,
7
+ RICH_BLACK,
8
+ WHITE
9
+ } from '../../components/constants'
5
10
 
6
11
  const divStyle = {
7
12
  width: '100%',
@@ -46,7 +51,12 @@ const TemplateBorderMainDarkBlue = (args) => {
46
51
  return (
47
52
  <div style={{ backgroundColor: 'white', padding: '20px 10px' }}>
48
53
  <p>Value of the input {value}</p>
49
- <SelectWithInput {...args} value={value} onChange={handleChange} onSelect={handleSelect} />
54
+ <SelectWithInput
55
+ {...args}
56
+ value={value}
57
+ onChange={handleChange}
58
+ onSelect={handleSelect}
59
+ />
50
60
  </div>
51
61
  )
52
62
  }
@@ -66,10 +76,14 @@ const TemplateBorderMainDarkBlue2 = (args) => {
66
76
  <>
67
77
  <div style={{ backgroundColor: 'white', padding: '20px 10px' }}>
68
78
  <p>Value of the input {value}</p>
69
- <SelectWithInput {...args} value={value} onChange={handleChange} onSelect={handleSelect} />
79
+ <SelectWithInput
80
+ {...args}
81
+ value={value}
82
+ onChange={handleChange}
83
+ onSelect={handleSelect}
84
+ />
70
85
  <br />
71
86
  <SelectWithInput placeholder='Disabled' disabled />
72
-
73
87
  </div>
74
88
  </>
75
89
  )
@@ -80,7 +94,11 @@ export const BorderMainDarkBlue = TemplateBorderMainDarkBlue.bind({})
80
94
  BorderMainDarkBlue.args = {
81
95
  name: 'test',
82
96
  placeholder: 'Defaul option',
83
- options: [...Array(20).keys()].map(ele => ({ label: `Option ${ele}`, value: `Value${ele}`, iconName: 'SocialGitHubIcon' })),
97
+ options: [...Array(20).keys()].map((ele) => ({
98
+ label: `Option ${ele}`,
99
+ value: `Value${ele}`,
100
+ iconName: 'SocialGitHubIcon'
101
+ })),
84
102
  borderColor: MAIN_DARK_BLUE
85
103
  }
86
104
 
@@ -89,7 +107,11 @@ export const DefaultInvalid = TemplateBorderMainDarkBlue.bind({})
89
107
  DefaultInvalid.args = {
90
108
  name: 'test',
91
109
  placeholder: 'Platformatic empty select',
92
- options: [{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }, { label: 'Option 3', value: '3' }],
110
+ options: [
111
+ { label: 'Option 1', value: '1' },
112
+ { label: 'Option 2', value: '2' },
113
+ { label: 'Option 3', value: '3' }
114
+ ],
93
115
  borderColor: MAIN_GREEN,
94
116
  errorMessage: 'This is an error message'
95
117
  }
@@ -99,22 +121,25 @@ export const withDifferentOptions = TemplateBorderMainDarkBlue2.bind({})
99
121
  withDifferentOptions.args = {
100
122
  name: 'test',
101
123
  placeholder: 'Platformatic',
102
- options: [...Array(20).keys()].map(ele => ({
103
- label: `Option ${ele}`,
104
- value: `Value${ele}`,
105
- iconName: 'SocialGitHubIcon'
106
- })).concat({
107
- label: 'Last but not least',
108
- iconName: 'AddIcon',
109
- value: 123123,
110
- notSelectable: true,
111
- onClick: () => alert('you clicked last but not least')
112
- }).concat({
113
- label: 'Play',
114
- iconName: 'PlayIcon',
115
- value: 123123,
116
- notSelectable: true
117
- }),
124
+ options: [...Array(20).keys()]
125
+ .map((ele) => ({
126
+ label: `Option ${ele}`,
127
+ value: `Value${ele}`,
128
+ iconName: 'SocialGitHubIcon'
129
+ }))
130
+ .concat({
131
+ label: 'Last but not least',
132
+ iconName: 'AddIcon',
133
+ value: 123123,
134
+ notSelectable: true,
135
+ onClick: () => alert('you clicked last but not least')
136
+ })
137
+ .concat({
138
+ label: 'Play',
139
+ iconName: 'PlayIcon',
140
+ value: 123123,
141
+ notSelectable: true
142
+ }),
118
143
  borderColor: MAIN_DARK_BLUE
119
144
  }
120
145
 
@@ -123,23 +148,26 @@ export const githubRepoExample = TemplateBorderMainDarkBlue2.bind({})
123
148
  githubRepoExample.args = {
124
149
  name: 'test',
125
150
  placeholder: 'Platformatic',
126
- options: [...Array(4).keys()].map(ele => ({
127
- label: `GitHub Repo ${ele}`,
128
- value: `Value${ele}`,
129
- iconName: 'SocialGitHubIcon'
130
- })).concat({
131
- label: 'this is an option that is not selectable',
132
- iconName: 'AddIcon',
133
- value: 123123,
134
- notSelectable: true,
135
- onClick: () => alert('you clicked last but not least')
136
- }).concat({
137
- label: 'Add Github repo',
138
- iconName: 'PlayIcon',
139
- value: 123123,
140
- notSelectable: true,
141
- notFilterable: true
142
- }),
151
+ options: [...Array(4).keys()]
152
+ .map((ele) => ({
153
+ label: `GitHub Repo ${ele}`,
154
+ value: `Value${ele}`,
155
+ iconName: 'SocialGitHubIcon'
156
+ }))
157
+ .concat({
158
+ label: 'this is an option that is not selectable',
159
+ iconName: 'AddIcon',
160
+ value: 123123,
161
+ notSelectable: true,
162
+ onClick: () => alert('you clicked last but not least')
163
+ })
164
+ .concat({
165
+ label: 'Add Github repo',
166
+ iconName: 'PlayIcon',
167
+ value: 123123,
168
+ notSelectable: true,
169
+ notFilterable: true
170
+ }),
143
171
  borderColor: MAIN_DARK_BLUE
144
172
  }
145
173
 
@@ -157,7 +185,12 @@ const TemplateTransparent = (args) => {
157
185
  return (
158
186
  <div style={{ padding: '20px 10px' }}>
159
187
  <p>Value of the input {value}</p>
160
- <SelectWithInput {...args} value={value} onChange={handleChange} onSelect={handleSelect} />
188
+ <SelectWithInput
189
+ {...args}
190
+ value={value}
191
+ onChange={handleChange}
192
+ onSelect={handleSelect}
193
+ />
161
194
  </div>
162
195
  )
163
196
  }
@@ -168,7 +201,11 @@ TemplateBackgroundTransparent.args = {
168
201
  name: 'test',
169
202
  placeholder: 'Defaul option',
170
203
  optionsBorderedBottom: false,
171
- options: [...Array(20).keys()].map(ele => ({ label: `Option ${ele}`, value: `Value${ele}`, iconName: 'OrganizationIcon' })),
204
+ options: [...Array(20).keys()].map((ele) => ({
205
+ label: `Option ${ele}`,
206
+ value: `Value${ele}`,
207
+ iconName: 'OrganizationIcon'
208
+ })),
172
209
  borderColor: WHITE,
173
210
  mainColor: WHITE,
174
211
  backgroundColor: RICH_BLACK,
@@ -8,9 +8,15 @@ export default {
8
8
 
9
9
  const Template = ({ checked, ...args }) => {
10
10
  const [localChecked, setLocalChecked] = useState(checked)
11
- const onChange = () => { setLocalChecked(!localChecked) }
11
+ const onChange = () => {
12
+ setLocalChecked(!localChecked)
13
+ }
12
14
  return (
13
- <ToggleSwitch {...args} checked={localChecked} onChange={() => onChange()} />
15
+ <ToggleSwitch
16
+ {...args}
17
+ checked={localChecked}
18
+ onChange={() => onChange()}
19
+ />
14
20
  )
15
21
  }
16
22
 
@@ -27,7 +33,9 @@ Checked.args = {
27
33
  name: 'test',
28
34
  label: 'This is a label',
29
35
  checked: true,
30
- onChange: () => { alert('checked') }
36
+ onChange: () => {
37
+ alert('checked')
38
+ }
31
39
  }
32
40
 
33
41
  export const Disabled = Template.bind({})
@@ -36,6 +44,8 @@ Disabled.args = {
36
44
  name: 'test',
37
45
  label: 'This is a label',
38
46
  checked: true,
39
- onChange: () => { alert('checked') },
47
+ onChange: () => {
48
+ alert('checked')
49
+ },
40
50
  disabled: true
41
51
  }
@@ -48,22 +48,49 @@ const CircleCloseIconTemplate = (args) => <CircleCloseIcon {...args} />
48
48
  export const CircleCloseIconDefault = CircleCloseIconTemplate.bind({})
49
49
  CircleCloseIconDefault.args = {}
50
50
 
51
- const WorkspaceIconsTemplate = () => (
52
- [<WorkspaceStaticIcon key='a' />, <WorkspaceDynamicIcon key='b' />].map((component, index) => {
53
- const listElement = []
54
- listElement.push(React.cloneElement(component, { key: `0${index}` }))
55
- listElement.push(React.cloneElement(component, { key: `1${index}`, size: 'small', color: 'main-green' }))
56
- listElement.push(React.cloneElement(component, { key: `2${index}`, color: 'error-red' }))
57
- listElement.push(React.cloneElement(component, { key: `3${index}`, size: 'small', color: 'error-red' }))
58
- listElement.push(React.cloneElement(component, { key: `4${index}`, color: 'main-dark-blue' }))
59
- listElement.push(React.cloneElement(component, { key: `5${index}`, size: 'small', color: 'main-dark-blue' }))
60
- return listElement
61
- })
62
- )
51
+ const WorkspaceIconsTemplate = () =>
52
+ [<WorkspaceStaticIcon key='a' />, <WorkspaceDynamicIcon key='b' />].map(
53
+ (component, index) => {
54
+ const listElement = []
55
+ listElement.push(React.cloneElement(component, { key: `0${index}` }))
56
+ listElement.push(
57
+ React.cloneElement(component, {
58
+ key: `1${index}`,
59
+ size: 'small',
60
+ color: 'main-green'
61
+ })
62
+ )
63
+ listElement.push(
64
+ React.cloneElement(component, { key: `2${index}`, color: 'error-red' })
65
+ )
66
+ listElement.push(
67
+ React.cloneElement(component, {
68
+ key: `3${index}`,
69
+ size: 'small',
70
+ color: 'error-red'
71
+ })
72
+ )
73
+ listElement.push(
74
+ React.cloneElement(component, {
75
+ key: `4${index}`,
76
+ color: 'main-dark-blue'
77
+ })
78
+ )
79
+ listElement.push(
80
+ React.cloneElement(component, {
81
+ key: `5${index}`,
82
+ size: 'small',
83
+ color: 'main-dark-blue'
84
+ })
85
+ )
86
+ return listElement
87
+ }
88
+ )
63
89
 
64
90
  export const WorkspaceIconsAll = WorkspaceIconsTemplate.bind({})
65
91
  WorkspaceIconsAll.args = {}
66
92
 
67
- const LargeIconsTemplate = () => ([<UpgradeIcon key='b' size='extra-large' />].map(component => component))
93
+ const LargeIconsTemplate = () =>
94
+ [<UpgradeIcon key='b' size='extra-large' />].map((component) => component)
68
95
  export const LargeIconsDefault = LargeIconsTemplate.bind({})
69
96
  LargeIconsDefault.args = {}
@@ -56,13 +56,20 @@ const AllLogosTemplate = (args) => {
56
56
  {logos.map((LogoComponent, index) => (
57
57
  <div style={row} key={index}>
58
58
  <div style={col}>
59
- <p style={paragraphClass}>#{index + 1}: {LogoComponent.name}</p>
59
+ <p style={paragraphClass}>
60
+ #{index + 1}: {LogoComponent.name}
61
+ </p>
60
62
  </div>
61
63
  <div style={col}>
62
64
  <LogoComponent key={LogoComponent.name} {...args} />
63
65
  </div>
64
66
  <div style={col}>
65
- <LogoComponent key={LogoComponent.name} width={142} height={63} {...args} />
67
+ <LogoComponent
68
+ key={LogoComponent.name}
69
+ width={142}
70
+ height={63}
71
+ {...args}
72
+ />
66
73
  </div>
67
74
  </div>
68
75
  ))}