@councilbox/councilbox-ui 0.5.4 → 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.
- package/dist/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +181 -174
- package/dist/components/InputText/InputText.js +2 -1
- package/dist/components/SelectInput/SelectInput.js +2 -1
- package/dist/components/Stepper/DesignStepper.stories.js +9 -3
- package/dist/components/Stepper/Stepper.css +3 -1
- package/dist/components/Stepper/Stepper.js +12 -4
- package/package.json +1 -1
|
@@ -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
|
|
25
|
-
<div>Fix
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</
|
|
29
|
-
<
|
|
30
|
-
<div>
|
|
31
|
-
<div>
|
|
32
|
-
|
|
33
|
-
<h2>v0.5.
|
|
34
|
-
<div>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
<div>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
<div>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<
|
|
50
|
-
<div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<div>Fix
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<div>
|
|
70
|
-
<div
|
|
71
|
-
<div>
|
|
72
|
-
|
|
73
|
-
<h2>v0.4.
|
|
74
|
-
<div>Fix tamaños del modal con el Scrollbar</div>
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
<div
|
|
78
|
-
<div
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
<div
|
|
86
|
-
<div>
|
|
87
|
-
|
|
88
|
-
<h2>v0.4.
|
|
89
|
-
<div>
|
|
90
|
-
|
|
91
|
-
<h2>v0.4.
|
|
92
|
-
<div>Añadida prop
|
|
93
|
-
<div>
|
|
94
|
-
<div
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
<
|
|
101
|
-
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-
|
|
102
|
-
<div
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
<
|
|
110
|
-
<div
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
<div
|
|
121
|
-
<div>
|
|
122
|
-
<div>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<
|
|
127
|
-
<div
|
|
128
|
-
|
|
129
|
-
<
|
|
130
|
-
<div>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<div>Fix
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<div>
|
|
138
|
-
|
|
139
|
-
<h2>v0.4.
|
|
140
|
-
<div
|
|
141
|
-
<div>Fix
|
|
142
|
-
<div>
|
|
143
|
-
<div
|
|
144
|
-
<div
|
|
145
|
-
|
|
146
|
-
<
|
|
147
|
-
<div
|
|
148
|
-
<div>
|
|
149
|
-
<div>
|
|
150
|
-
<div
|
|
151
|
-
<div
|
|
152
|
-
|
|
153
|
-
<
|
|
154
|
-
<div>
|
|
155
|
-
<div>
|
|
156
|
-
<div>
|
|
157
|
-
<div
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
<
|
|
161
|
-
<div
|
|
162
|
-
<div
|
|
163
|
-
<div
|
|
164
|
-
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-
|
|
165
|
-
<
|
|
166
|
-
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-
|
|
167
|
-
<div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<
|
|
171
|
-
<div><a
|
|
172
|
-
<div><a
|
|
173
|
-
<div><a
|
|
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',
|
|
@@ -243,7 +243,8 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
243
243
|
transform: 'translate(0 ,0.75rem) scale(1)!important'
|
|
244
244
|
},
|
|
245
245
|
'&.MuiInputLabel-shrink': {
|
|
246
|
-
transform: 'translate(0 ,-0.625rem) scale(0.75)!important'
|
|
246
|
+
transform: 'translate(0 ,-0.625rem) scale(0.75)!important',
|
|
247
|
+
zIndex: '1'
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
250
|
}, label), /*#__PURE__*/_react.default.createElement(CssSelect, _extends({
|
|
@@ -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: '
|
|
43
|
+
text: 'Consentimientos',
|
|
44
|
+
name: 'Consentimientos',
|
|
42
45
|
icon: 'ri-clipboard-line'
|
|
43
46
|
}, {
|
|
44
|
-
text: '
|
|
47
|
+
text: 'Documentacion',
|
|
48
|
+
name: 'Documentacion',
|
|
45
49
|
icon: 'ri-folder-3-line'
|
|
46
50
|
}, {
|
|
47
|
-
text: '
|
|
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
|
|
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(
|
|
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 ===
|
|
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 ===
|
|
63
|
-
|
|
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"
|