imbric-theme 1.0.5 → 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 +24 -4
- package/molecules/DynamicSelect/DynamicSelect.js +12 -2
- package/package.json +1 -1
- package/styles/globals.css +119 -0
- package/styles/tagos.css +1 -1
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/globals.css
CHANGED
@@ -1521,4 +1521,123 @@ body {
|
|
1521
1521
|
padding: 0;
|
1522
1522
|
width: 1px;
|
1523
1523
|
white-space: nowrap;
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
/* INPUT ADD MODAL */
|
1527
|
+
|
1528
|
+
.css-mlo5or-control {
|
1529
|
+
-webkit-align-items: center;
|
1530
|
+
-webkit-box-align: center;
|
1531
|
+
-ms-flex-align: center;
|
1532
|
+
align-items: center;
|
1533
|
+
background-color: hsl(0, 0%, 100%);
|
1534
|
+
border-color: hsl(0, 0%, 80%);
|
1535
|
+
border-radius: 0;
|
1536
|
+
border-style: solid;
|
1537
|
+
border-width: 1px;
|
1538
|
+
box-shadow: none;
|
1539
|
+
cursor: pointer;
|
1540
|
+
display: -webkit-box;
|
1541
|
+
display: -webkit-flex;
|
1542
|
+
display: -ms-flexbox;
|
1543
|
+
display: flex;
|
1544
|
+
-webkit-box-flex-wrap: wrap;
|
1545
|
+
-webkit-flex-wrap: wrap;
|
1546
|
+
-ms-flex-wrap: wrap;
|
1547
|
+
flex-wrap: wrap;
|
1548
|
+
-webkit-box-pack: justify;
|
1549
|
+
-webkit-justify-content: space-between;
|
1550
|
+
justify-content: space-between;
|
1551
|
+
min-height: 38px;
|
1552
|
+
outline: 0 !important;
|
1553
|
+
position: relative;
|
1554
|
+
-webkit-transition: all 100ms;
|
1555
|
+
transition: all 100ms;
|
1556
|
+
box-sizing: border-box;
|
1557
|
+
width: 100%;
|
1558
|
+
border: var(--border-width-thin) solid var(--color-brand-white-lilac);
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
.css-1huup54-ValueContainer {
|
1562
|
+
-webkit-align-items: center;
|
1563
|
+
-webkit-box-align: center;
|
1564
|
+
-ms-flex-align: center;
|
1565
|
+
align-items: center;
|
1566
|
+
display: grid;
|
1567
|
+
-webkit-flex: 1;
|
1568
|
+
-ms-flex: 1;
|
1569
|
+
flex: 1;
|
1570
|
+
-webkit-box-flex-wrap: wrap;
|
1571
|
+
-webkit-flex-wrap: wrap;
|
1572
|
+
-ms-flex-wrap: wrap;
|
1573
|
+
flex-wrap: wrap;
|
1574
|
+
padding: 2px 8px;
|
1575
|
+
-webkit-overflow-scrolling: touch;
|
1576
|
+
position: relative;
|
1577
|
+
overflow: hidden;
|
1578
|
+
box-sizing: border-box;
|
1579
|
+
text-overflow: ellipsis;
|
1580
|
+
white-space: nowrap;
|
1581
|
+
}
|
1582
|
+
|
1583
|
+
.css-1hb7zxy-IndicatorsContainer {
|
1584
|
+
-webkit-align-items: center;
|
1585
|
+
-webkit-box-align: center;
|
1586
|
+
-ms-flex-align: center;
|
1587
|
+
align-items: center;
|
1588
|
+
-webkit-align-self: stretch;
|
1589
|
+
-ms-flex-item-align: stretch;
|
1590
|
+
align-self: stretch;
|
1591
|
+
display: -webkit-box;
|
1592
|
+
display: -webkit-flex;
|
1593
|
+
display: -ms-flexbox;
|
1594
|
+
display: flex;
|
1595
|
+
-webkit-flex-shrink: 0;
|
1596
|
+
-ms-flex-negative: 0;
|
1597
|
+
flex-shrink: 0;
|
1598
|
+
box-sizing: border-box;
|
1599
|
+
}
|
1600
|
+
|
1601
|
+
.css-qc6sy-singleValue {
|
1602
|
+
color: hsl(0, 0%, 20%);
|
1603
|
+
grid-area: 1 / 1 / 2 / 3;
|
1604
|
+
margin-left: 2px;
|
1605
|
+
margin-right: 2px;
|
1606
|
+
max-width: 100%;
|
1607
|
+
overflow: hidden;
|
1608
|
+
text-overflow: ellipsis;
|
1609
|
+
white-space: nowrap;
|
1610
|
+
box-sizing: border-box;
|
1611
|
+
}
|
1612
|
+
|
1613
|
+
.css-1okebmr-indicatorSeparator {
|
1614
|
+
-webkit-align-self: stretch;
|
1615
|
+
-ms-flex-item-align: stretch;
|
1616
|
+
align-self: stretch;
|
1617
|
+
background-color: hsl(0, 0%, 80%);
|
1618
|
+
margin-bottom: 8px;
|
1619
|
+
margin-top: 8px;
|
1620
|
+
width: 1px;
|
1621
|
+
box-sizing: border-box;
|
1622
|
+
}
|
1623
|
+
|
1624
|
+
.css-tlfecz-indicatorContainer {
|
1625
|
+
color: hsl(0, 0%, 80%);
|
1626
|
+
display: -webkit-box;
|
1627
|
+
display: -webkit-flex;
|
1628
|
+
display: -ms-flexbox;
|
1629
|
+
display: flex;
|
1630
|
+
padding: 8px;
|
1631
|
+
-webkit-transition: color 150ms;
|
1632
|
+
transition: color 150ms;
|
1633
|
+
box-sizing: border-box;
|
1634
|
+
}
|
1635
|
+
|
1636
|
+
|
1637
|
+
.css-tj5bde-Svg {
|
1638
|
+
display: inline-block;
|
1639
|
+
fill: currentColor;
|
1640
|
+
line-height: 1;
|
1641
|
+
stroke: currentColor;
|
1642
|
+
stroke-width: 0;
|
1524
1643
|
}
|
package/styles/tagos.css
CHANGED