@councilbox/councilbox-ui 0.5.3 → 0.6.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.
@@ -16,7 +16,7 @@ a.noStyles:hover{
16
16
  `}</style>
17
17
 
18
18
 
19
- # Librería de componentes ui-councilbox v0.5.3
19
+ # Librería de componentes ui-councilbox v0.5.4
20
20
 
21
21
  <h2>Componentes:</h2>
22
22
  <div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
@@ -1,174 +1,181 @@
1
- import { Meta } from '@storybook/addon-docs';
2
-
3
- <Meta title="ui-changelog" />
4
-
5
- <style>{`
6
- #docs-root{
7
- overflow-x: auto;
8
- height: 100%;
9
- }
10
- a.noStyles{
11
- color: black;
12
- }
13
- a.noStyles:hover{
14
- border-bottom: 1px solid black;
15
- }
16
- .hide{
17
- display: none;
18
- }
19
- `}</style>
20
-
21
-
22
- # Changelog ui-councilbox
23
- <div class="hide">
24
- <h2>v0.4.22</h2>
25
- <div>Fix version scrollbar</div>
26
-
27
- descargar las fuentes y probarlas, no usar @import, meterlas en css descargadas
28
- </div>
29
- <h2>v0.5.3</h2>
30
- <div>Add prop tooltip FabButton</div>
31
- <div>Fix estilos Inputs</div>
32
-
33
- <h2>v0.5.2</h2>
34
- <div>Add prop tooltip FabButton</div>
35
- <div>Fix estilos SelectInput</div>
36
-
37
- <h2>v0.5.1</h2>
38
- <div>Add props FabButton</div>
39
- <div>Fix estilos InputText</div>
40
-
41
- <h2>v0.5.0</h2>
42
- <div>Add FabButton</div>
43
- <div>Fix Width en inputAutocomplete</div>
44
- <div>Fix estilos InputText</div>
45
-
46
- <h2>v0.4.27</h2>
47
- <div>Fix se añade el prop required en InputAutocomplete</div>
48
-
49
- <h2>v0.4.26</h2>
50
- <div>Add option demo in header</div>
51
-
52
- <h2>v0.4.25</h2>
53
- <div>Fix stars con scrollbar</div>
54
-
55
- <h2>v0.4.22</h2>
56
- <div>Fix getScrollbarWidth en scrollbar</div>
57
-
58
- <h2>v0.4.21</h2>
59
- <div>Fix props sx en inputText</div>
60
-
61
- <h2>v0.4.20</h2>
62
- <div>Fix version scrollbar</div>
63
- <div>Fix zIndex en fabButton</div>
64
- <div>Fix Modal en mobile fullScreen </div>
65
-
66
- <h2>v0.4.19</h2>
67
- <div>Fix tamaños del modal con el Scrollbar en sm y xs</div>
68
- <div>Cambio tipografia contador en inputTextArea</div>
69
- <div>Añadir helper en inputTextArea</div>
70
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-72'>DS-72</a></div>
71
- <div>fix tab item</div>
72
-
73
- <h2>v0.4.18</h2>
74
- <div>Fix tamaños del modal con el Scrollbar</div>
75
-
76
- <h2>v0.4.17</h2>
77
- <div>Fix margin title del componente Modal</div>
78
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-83'>DS-83</a></div>
79
- <div>Añadida prop en DrawerPanel</div>
80
-
81
- <h2>v0.4.16</h2>
82
- <div>Fix problema con el title y el Tooltip en DragDrop</div>
83
-
84
- <h2>v0.4.15</h2>
85
- <div>Añadida prop en modal</div>
86
- <div>Fix estilos en input en componente Dragdrop</div>
87
- <div>fixed scrollbar para poder acceder a los metodos internos</div>
88
- <h2>v0.4.14</h2>
89
- <div>Añadidas props en DragDrop</div>
90
-
91
- <h2>v0.4.13</h2>
92
- <div>Añadida prop thickness en componente LoadingSection</div>
93
- <div>Añadido visualización de codigo en los componentes</div>
94
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-79'>DS-79</a></div>
95
- <div>Fix Modal, el DialogContent necesita un overflow: hidden </div>
96
-
97
- <h2>v0.4.12</h2>
98
- <div>Fix componente Tag y añadidas nuevas props </div>
99
-
100
- <h2>v0.4.11</h2>
101
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-77'>DS-77</a></div>
102
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-76'>DS-76</a></div>
103
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-73'>DS-73</a></div>
104
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-68'>DS-68</a></div>
105
-
106
- <h2>v0.4.10</h2>
107
- <div>Fix en tabs</div>
108
-
109
- <h2>v0.4.9</h2>
110
- <div>Fix errores en estilos del componente Tabla</div>
111
-
112
- <h2>v0.4.8</h2>
113
- <div>colores DrawerPanel</div>
114
- <div>colores primary ButtonBasic</div>
115
- <div>Fix input en la vista de IconFont</div>
116
-
117
- <h2>v0.4.7</h2>
118
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-66'>DS-66</a></div>
119
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-67'>DS-67</a></div>
120
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-71'>DS-71</a></div>
121
- <div>fix variant toUpperCase en Typography</div>
122
- <div>añadidas nuevas props en Header</div>
123
- <div>fix en color de borde inputText</div>
124
- <div>color header drawerPanel</div>
125
-
126
- <h2>v0.4.6</h2>
127
- <div>Fix disabled inputs variante filled y standard</div>
128
-
129
- <h2>v0.4.5</h2>
130
- <div>Fix drawerPanel maxWidth 1200px</div>
131
-
132
- <h2>v0.4.4</h2>
133
- <div>Fix header clase de logo</div>
134
- <div>Fix menuItem onClick</div>
135
- <div>Fix menuItem los iconos pueden ser string o component</div>
136
- <div>Fix tamaño icono iconButtonSquare</div>
137
- <div>Cambio menuItem en menuLateralRight</div>
138
-
139
- <h2>v0.4.3</h2>
140
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-64'>DS-64</a></div>
141
- <div>Fix icon en ButtonBasic</div>
142
- <div>add box-shadow en Dropdown</div>
143
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-69'>DS-69</a></div>
144
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-71'>DS-71</a></div>
145
- <div>Añadido componente LoadingSection</div>
146
- <div>Añadido componente PaginationFooter</div>
147
- <div>Añadido componente EnhanceTable</div>
148
- <div>Nuevo ejemplo en el drawerPanel para que se vean las tabs</div>
149
- <div>Añadida Guia</div>
150
- <div>Fix bug en inputText</div>
151
- <div>Fix bug en header</div>
152
-
153
- <h2>v0.4.2</h2>
154
- <div>fix defaultProps en el label y fullWidth del input</div>
155
- <div>Añadido component InputAutocomplete </div>
156
- <div>Añadido página de Changelog </div>
157
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-65'>DS-65</a></div>
158
- <h2>v0.4.1</h2>
159
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-55'>DS-55</a></div>
160
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-56'>DS-56</a></div>
161
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-57'>DS-57</a></div>
162
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-58'>DS-58</a></div>
163
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-59'>DS-59</a></div>
164
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-60'>DS-60</a></div>
165
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-61'>DS-61</a></div>
166
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-62'>DS-62</a></div>
167
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-63'>DS-63</a></div>
168
-
169
-
170
- <h2>Componentes en desuso:</h2>
171
- <div><a class='noStyles' href='/story/components-button'>button</a></div>
172
- <div><a class='noStyles' href='/story/components-avatargroup'>avatargroup</a></div>
173
- <div><a class='noStyles' href='/story/components-textinput'>textinput</a></div>
174
-
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="ui-changelog" />
4
+
5
+ <style>{`
6
+ #docs-root{
7
+ overflow-x: auto;
8
+ height: 100%;
9
+ }
10
+ a.noStyles{
11
+ color: black;
12
+ }
13
+ a.noStyles:hover{
14
+ border-bottom: 1px solid black;
15
+ }
16
+ .hide{
17
+ display: none;
18
+ }
19
+ `}</style>
20
+
21
+
22
+ # Changelog ui-councilbox
23
+ <div class="hide">
24
+ <h2>v0.5.4</h2>
25
+ <div>Fix zIndex label InputText y SelectInput</div>
26
+ </div>
27
+
28
+ <h2>v0.5.4</h2>
29
+ <div>Fix zIndex label InputText y SelectInput</div>
30
+ <div>Añadido padding y cambios para que se ajuste mejor al diseño Stepper </div>
31
+ <div>Añadido tooltip Stepper </div>
32
+
33
+ <h2>v0.5.3</h2>
34
+ <div>Fix fullWidth en InputText y SelectInput</div>
35
+
36
+ <h2>v0.5.3</h2>
37
+ <div>Add prop tooltip FabButton</div>
38
+ <div>Fix estilos Inputs</div>
39
+
40
+ <h2>v0.5.2</h2>
41
+ <div>Add prop tooltip FabButton</div>
42
+ <div>Fix estilos SelectInput</div>
43
+
44
+ <h2>v0.5.1</h2>
45
+ <div>Add props FabButton</div>
46
+ <div>Fix estilos InputText</div>
47
+
48
+ <h2>v0.5.0</h2>
49
+ <div>Add FabButton</div>
50
+ <div>Fix Width en inputAutocomplete</div>
51
+ <div>Fix estilos InputText</div>
52
+
53
+ <h2>v0.4.27</h2>
54
+ <div>Fix se añade el prop required en InputAutocomplete</div>
55
+
56
+ <h2>v0.4.26</h2>
57
+ <div>Add option demo in header</div>
58
+
59
+ <h2>v0.4.25</h2>
60
+ <div>Fix stars con scrollbar</div>
61
+
62
+ <h2>v0.4.22</h2>
63
+ <div>Fix getScrollbarWidth en scrollbar</div>
64
+
65
+ <h2>v0.4.21</h2>
66
+ <div>Fix props sx en inputText</div>
67
+
68
+ <h2>v0.4.20</h2>
69
+ <div>Fix version scrollbar</div>
70
+ <div>Fix zIndex en fabButton</div>
71
+ <div>Fix Modal en mobile fullScreen </div>
72
+
73
+ <h2>v0.4.19</h2>
74
+ <div>Fix tamaños del modal con el Scrollbar en sm y xs</div>
75
+ <div>Cambio tipografia contador en inputTextArea</div>
76
+ <div>Añadir helper en inputTextArea</div>
77
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-72'>DS-72</a></div>
78
+ <div>fix tab item</div>
79
+
80
+ <h2>v0.4.18</h2>
81
+ <div>Fix tamaños del modal con el Scrollbar</div>
82
+
83
+ <h2>v0.4.17</h2>
84
+ <div>Fix margin title del componente Modal</div>
85
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-83'>DS-83</a></div>
86
+ <div>Añadida prop en DrawerPanel</div>
87
+
88
+ <h2>v0.4.16</h2>
89
+ <div>Fix problema con el title y el Tooltip en DragDrop</div>
90
+
91
+ <h2>v0.4.15</h2>
92
+ <div>Añadida prop en modal</div>
93
+ <div>Fix estilos en input en componente Dragdrop</div>
94
+ <div>fixed scrollbar para poder acceder a los metodos internos</div>
95
+ <h2>v0.4.14</h2>
96
+ <div>Añadidas props en DragDrop</div>
97
+
98
+ <h2>v0.4.13</h2>
99
+ <div>Añadida prop thickness en componente LoadingSection</div>
100
+ <div>Añadido visualización de codigo en los componentes</div>
101
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-79'>DS-79</a></div>
102
+ <div>Fix Modal, el DialogContent necesita un overflow: hidden </div>
103
+
104
+ <h2>v0.4.12</h2>
105
+ <div>Fix componente Tag y añadidas nuevas props </div>
106
+
107
+ <h2>v0.4.11</h2>
108
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-77'>DS-77</a></div>
109
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-76'>DS-76</a></div>
110
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-73'>DS-73</a></div>
111
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-68'>DS-68</a></div>
112
+
113
+ <h2>v0.4.10</h2>
114
+ <div>Fix en tabs</div>
115
+
116
+ <h2>v0.4.9</h2>
117
+ <div>Fix errores en estilos del componente Tabla</div>
118
+
119
+ <h2>v0.4.8</h2>
120
+ <div>colores DrawerPanel</div>
121
+ <div>colores primary ButtonBasic</div>
122
+ <div>Fix input en la vista de IconFont</div>
123
+
124
+ <h2>v0.4.7</h2>
125
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-66'>DS-66</a></div>
126
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-67'>DS-67</a></div>
127
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-71'>DS-71</a></div>
128
+ <div>fix variant toUpperCase en Typography</div>
129
+ <div>añadidas nuevas props en Header</div>
130
+ <div>fix en color de borde inputText</div>
131
+ <div>color header drawerPanel</div>
132
+
133
+ <h2>v0.4.6</h2>
134
+ <div>Fix disabled inputs variante filled y standard</div>
135
+
136
+ <h2>v0.4.5</h2>
137
+ <div>Fix drawerPanel maxWidth 1200px</div>
138
+
139
+ <h2>v0.4.4</h2>
140
+ <div>Fix header clase de logo</div>
141
+ <div>Fix menuItem onClick</div>
142
+ <div>Fix menuItem los iconos pueden ser string o component</div>
143
+ <div>Fix tamaño icono iconButtonSquare</div>
144
+ <div>Cambio menuItem en menuLateralRight</div>
145
+
146
+ <h2>v0.4.3</h2>
147
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-64'>DS-64</a></div>
148
+ <div>Fix icon en ButtonBasic</div>
149
+ <div>add box-shadow en Dropdown</div>
150
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-69'>DS-69</a></div>
151
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-71'>DS-71</a></div>
152
+ <div>Añadido componente LoadingSection</div>
153
+ <div>Añadido componente PaginationFooter</div>
154
+ <div>Añadido componente EnhanceTable</div>
155
+ <div>Nuevo ejemplo en el drawerPanel para que se vean las tabs</div>
156
+ <div>Añadida Guia</div>
157
+ <div>Fix bug en inputText</div>
158
+ <div>Fix bug en header</div>
159
+
160
+ <h2>v0.4.2</h2>
161
+ <div>fix defaultProps en el label y fullWidth del input</div>
162
+ <div>Añadido component InputAutocomplete </div>
163
+ <div>Añadido página de Changelog </div>
164
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-65'>DS-65</a></div>
165
+ <h2>v0.4.1</h2>
166
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-55'>DS-55</a></div>
167
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-56'>DS-56</a></div>
168
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-57'>DS-57</a></div>
169
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-58'>DS-58</a></div>
170
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-59'>DS-59</a></div>
171
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-60'>DS-60</a></div>
172
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-61'>DS-61</a></div>
173
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-62'>DS-62</a></div>
174
+ <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-63'>DS-63</a></div>
175
+
176
+
177
+ <h2>Componentes en desuso:</h2>
178
+ <div><a class='noStyles' href='/story/components-button'>button</a></div>
179
+ <div><a class='noStyles' href='/story/components-avatargroup'>avatargroup</a></div>
180
+ <div><a class='noStyles' href='/story/components-textinput'>textinput</a></div>
181
+
@@ -90,7 +90,8 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function () {
90
90
  color: 'var(--error)!important'
91
91
  },
92
92
  '& .MuiInputLabel-shrink': {
93
- transform: 'translate(0 ,-0.625rem) scale(0.75)!important'
93
+ transform: 'translate(0 ,-0.625rem) scale(0.75)!important',
94
+ zIndex: '1'
94
95
  },
95
96
  '& .MuiOutlinedInput-notchedOutline': {
96
97
  transition: '0.2s',
@@ -271,9 +272,11 @@ var InputText = function InputText(_ref) {
271
272
  return /*#__PURE__*/_react.default.createElement(CssTextField, _extends({
272
273
  id: id,
273
274
  className: className,
274
- sx: _objectSpread({
275
- minWidth: width || '15rem',
276
- width: width || '',
275
+ sx: _objectSpread(_objectSpread({
276
+ minWidth: width || '15rem'
277
+ }, width ? {
278
+ width: width || ''
279
+ } : {}), {}, {
277
280
  minHeight: '3rem',
278
281
  '& .MuiOutlinedInput-notchedOutline': {
279
282
  '& legend': {
@@ -37,18 +37,21 @@ var DesignSelectInput = function DesignSelectInput() {
37
37
 
38
38
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
39
39
  style: {
40
- display: 'flex'
40
+ display: 'flex',
41
+ width: '100%'
41
42
  }
42
43
  }, /*#__PURE__*/_react.default.createElement("div", {
43
44
  style: {
44
- marginRight: '4px'
45
+ marginRight: '4px',
46
+ width: '100%'
45
47
  }
46
48
  }, /*#__PURE__*/_react.default.createElement(_SelectInput.default, {
47
49
  label: 'Majority Type',
48
50
  onChange: function onChange(e) {
49
51
  return setItem(e.target.value);
50
52
  },
51
- value: item // variant={'filled'}
53
+ value: item // fullWidth={true}
54
+ // variant={'filled'}
52
55
 
53
56
  }, majorityTypes.map(function (type) {
54
57
  return /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
@@ -202,9 +202,11 @@ var SelectInput = function SelectInput(_ref) {
202
202
 
203
203
  return /*#__PURE__*/_react.default.createElement(_FormControl.default, _extends({
204
204
  fullWidth: fullWidth,
205
- sx: _objectSpread({
206
- minWidth: width || '15rem',
207
- width: width || '',
205
+ sx: _objectSpread(_objectSpread({
206
+ minWidth: width || '15rem'
207
+ }, width ? {
208
+ width: width || ''
209
+ } : {}), {}, {
208
210
  minHeight: '3rem'
209
211
  }, sxFormControl)
210
212
  }, propsFormControl), label && /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
@@ -241,15 +243,18 @@ var SelectInput = function SelectInput(_ref) {
241
243
  transform: 'translate(0 ,0.75rem) scale(1)!important'
242
244
  },
243
245
  '&.MuiInputLabel-shrink': {
244
- transform: 'translate(0 ,-0.625rem) scale(0.75)!important'
246
+ transform: 'translate(0 ,-0.625rem) scale(0.75)!important',
247
+ zIndex: '1'
245
248
  }
246
249
  }
247
250
  }, label), /*#__PURE__*/_react.default.createElement(CssSelect, _extends({
248
251
  id: id,
249
252
  className: className,
250
- sx: _objectSpread({
251
- minWidth: width || '15rem',
252
- width: width || '',
253
+ sx: _objectSpread(_objectSpread({
254
+ minWidth: width || '15rem'
255
+ }, width ? {
256
+ width: width || ''
257
+ } : {}), {}, {
253
258
  maxHeight: '3rem',
254
259
  height: '3rem',
255
260
  '& .MuiOutlinedInput-notchedOutline': {
@@ -33,21 +33,27 @@ var DesignStepper = function DesignStepper() {
33
33
  onClick: setState,
34
34
  items: [{
35
35
  text: 'Detalles',
36
+ name: 'Detalles',
36
37
  icon: 'ri-file-list-2-line'
37
38
  }, {
38
39
  text: 'Participantes',
40
+ name: 'Participantes',
39
41
  icon: 'ri-user-3-line'
40
42
  }, {
41
- text: 'Trámite',
43
+ text: 'Consentimientos',
44
+ name: 'Consentimientos',
42
45
  icon: 'ri-clipboard-line'
43
46
  }, {
44
- text: 'Documentos',
47
+ text: 'Documentacion',
48
+ name: 'Documentacion',
45
49
  icon: 'ri-folder-3-line'
46
50
  }, {
47
- text: 'Ajustes',
51
+ text: 'Configuracion',
52
+ name: 'Configuracion',
48
53
  icon: 'ri-settings-4-line'
49
54
  }, {
50
55
  text: 'Revisar',
56
+ name: 'Revisar',
51
57
  icon: 'ri-file-text-line'
52
58
  }],
53
59
  active: state
@@ -14,11 +14,12 @@
14
14
 
15
15
  .cbx-stepper-item-contentText {
16
16
  font-size: 1rem;
17
- padding: 0.5rem 0rem 0.5rem 0.75rem;
17
+ padding: 0.5rem 0.75rem 0.5rem 0.75rem;
18
18
  display: flex;
19
19
  align-items: center;
20
20
  transition: .3s;
21
21
  width: calc( 100% - 2rem );
22
+ justify-content: center;
22
23
  }
23
24
 
24
25
  .cbx-stepper-item-contentText:last-child {
@@ -28,6 +29,7 @@
28
29
  .cbx-stepper-item-contentText-mobile {
29
30
  padding-left: 0;
30
31
  padding-right: 0;
32
+ padding: 0.5rem 0rem 0.5rem 0rem;
31
33
  }
32
34
 
33
35
  .cbx-stepper-item-contentText:hover {
@@ -13,6 +13,8 @@ require("../../styles/main.css");
13
13
 
14
14
  require("./Stepper.css");
15
15
 
16
+ var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
17
+
16
18
  var _Typography = _interopRequireDefault(require("../Typography/Typography"));
17
19
 
18
20
  var _useWindowSize2 = _interopRequireDefault(require("../../HOCs/useWindowSize"));
@@ -41,7 +43,7 @@ var Stepper = function Stepper(_ref) {
41
43
  }, props), items.map(function (item, index) {
42
44
  return /*#__PURE__*/_react.default.createElement("div", {
43
45
  onClick: function onClick() {
44
- return _onClick(index);
46
+ return _onClick(item.name);
45
47
  },
46
48
  key: index,
47
49
  className: "cbx-stepper-item",
@@ -49,18 +51,24 @@ var Stepper = function Stepper(_ref) {
49
51
  flex: items.length - 1 !== index && '1 1',
50
52
  maxWidth: "".concat('100' / (items.length - 1), "%")
51
53
  }
54
+ }, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
55
+ title: item.name || ''
52
56
  }, /*#__PURE__*/_react.default.createElement("div", {
53
57
  className: "".concat(innerWidth < 427 ? 'cbx-stepper-item-contentText cbx-stepper-item-contentText-mobile' : 'cbx-stepper-item-contentText'),
54
58
  style: {
55
- color: active === index ? 'var(--primary)' : 'var(--gray4)'
59
+ color: active === item.name || items.slice(index + 1).some(function (i) {
60
+ return i.name === active;
61
+ }) ? 'var(--primary)' : 'var(--gray4)'
56
62
  }
57
63
  }, item.icon && /*#__PURE__*/_react.default.createElement("i", {
58
64
  className: "cbx-stepper-item-text-icon ".concat(item.icon)
59
65
  }), innerWidth > 875 && item.text && /*#__PURE__*/_react.default.createElement("div", {
60
66
  className: "cbx-stepper-item-text"
61
67
  }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
62
- color: active === index ? 'var(--primary)' : 'var(--gray4)'
63
- }, item.text))), items.length - 1 !== index && /*#__PURE__*/_react.default.createElement("div", {
68
+ color: active === item.name || items.slice(index + 1).some(function (i) {
69
+ return i.name === active;
70
+ }) ? 'var(--primary)' : 'var(--gray4)'
71
+ }, item.text)))), items.length - 1 !== index && /*#__PURE__*/_react.default.createElement("div", {
64
72
  className: "cbx-stepper-item-arrow-content"
65
73
  }, /*#__PURE__*/_react.default.createElement("i", {
66
74
  className: "cbx-stepper-item-arrow-icon ri-arrow-drop-right-line"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",