imbric-theme 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
package/atoms/Modal/Modal.js
CHANGED
@@ -38,6 +38,8 @@ export const Modal = ({
|
|
38
38
|
titleModal,
|
39
39
|
isFullWidth,
|
40
40
|
isFullWidthSoft,
|
41
|
+
onClickTitle,
|
42
|
+
isClickTitle,
|
41
43
|
}) => {
|
42
44
|
const isDesktop = useMedia(['(min-width: 992px)'], [true])
|
43
45
|
const [onFadeOut, setOnFadeOut] = useState(false)
|
@@ -77,9 +79,25 @@ export const Modal = ({
|
|
77
79
|
})}
|
78
80
|
/>
|
79
81
|
)}
|
80
|
-
|
81
|
-
|
82
|
-
|
82
|
+
|
83
|
+
{isClickTitle ?
|
84
|
+
|
85
|
+
<span style={{ cursor: 'pointer', textDecoration: 'underline', color: 'var(--color-primary)' }} onClick={onClickTitle}>
|
86
|
+
<Heading color='primary' size='lg' weight='light'>
|
87
|
+
{titleModal}
|
88
|
+
</Heading>
|
89
|
+
</span>
|
90
|
+
|
91
|
+
:
|
92
|
+
|
93
|
+
<Heading color='black' size='lg' weight='light'>
|
94
|
+
{titleModal}
|
95
|
+
</Heading>
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
|
83
101
|
</div>
|
84
102
|
|
85
103
|
{isFullWidth ?
|
@@ -108,6 +126,7 @@ Modal.propTypes = {
|
|
108
126
|
isFullWidth: PropTypes.bool,
|
109
127
|
isFullWidthSoft: PropTypes.bool,
|
110
128
|
titleModal: PropTypes.string,
|
129
|
+
isClickTitle: PropTypes.bool,
|
111
130
|
}
|
112
131
|
|
113
132
|
Modal.defaultProps = {
|
@@ -115,7 +134,8 @@ Modal.defaultProps = {
|
|
115
134
|
type: 'primary',
|
116
135
|
titleModal: 'Ejemplo titulo',
|
117
136
|
isFullWidth: false,
|
118
|
-
isFullWidthSoft: false
|
137
|
+
isFullWidthSoft: false,
|
138
|
+
isClickTitle: false
|
119
139
|
}
|
120
140
|
|
121
141
|
export default withStyles(styles)(Modal)
|
@@ -61,7 +61,9 @@ export const DynamicSelect = ({
|
|
61
61
|
onSortEnd,
|
62
62
|
formatGroupLabel,
|
63
63
|
hideSelectedOptions,
|
64
|
-
menuPlacement
|
64
|
+
menuPlacement,
|
65
|
+
getOptionValue,
|
66
|
+
getOptionLabel
|
65
67
|
}) => {
|
66
68
|
|
67
69
|
|
@@ -197,6 +199,8 @@ export const DynamicSelect = ({
|
|
197
199
|
menuPosition='fixed'
|
198
200
|
formatGroupLabel={formatGroupLabel}
|
199
201
|
hideSelectedOptions={hideSelectedOptions}
|
202
|
+
getOptionValue={getOptionValue}
|
203
|
+
getOptionLabel={getOptionLabel}
|
200
204
|
/>
|
201
205
|
:
|
202
206
|
<Select
|
@@ -225,6 +229,8 @@ export const DynamicSelect = ({
|
|
225
229
|
menuPosition='fixed'
|
226
230
|
formatGroupLabel={formatGroupLabel}
|
227
231
|
hideSelectedOptions={hideSelectedOptions}
|
232
|
+
getOptionValue={getOptionValue}
|
233
|
+
getOptionLabel={getOptionLabel}
|
228
234
|
/>}
|
229
235
|
|
230
236
|
|
@@ -254,6 +260,8 @@ DynamicSelect.propTypes = {
|
|
254
260
|
sortableMultiSelect: PropTypes.bool,
|
255
261
|
hideSelectedOptions: PropTypes.bool,
|
256
262
|
menuPlacement: PropTypes.string,
|
263
|
+
getOptionValue: PropTypes.func,
|
264
|
+
getOptionLabel: PropTypes.func,
|
257
265
|
}
|
258
266
|
|
259
267
|
DynamicSelect.defaultProps = {
|
@@ -274,7 +282,9 @@ DynamicSelect.defaultProps = {
|
|
274
282
|
instanceId: '',
|
275
283
|
sortableMultiSelect: false,
|
276
284
|
hideSelectedOptions: true,
|
277
|
-
menuPlacement: 'auto'
|
285
|
+
menuPlacement: 'auto',
|
286
|
+
// getOptionValue: () => { option => option.value },
|
287
|
+
// getOptionLabel: () => { option => option.label },
|
278
288
|
}
|
279
289
|
|
280
290
|
export default withStyles(styles)(DynamicSelect)
|
package/package.json
CHANGED
package/styles/tagos.css
CHANGED