imbric-theme 0.4.5 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.dockerignore +14 -0
- package/.eslintignore +1 -0
- package/.prettierignore +1 -0
- package/Dockerfile +18 -0
- package/atoms/Button/Button.js +8 -0
- package/atoms/Button/Button.module.css +8 -0
- package/atoms/Checkbox/Checkbox.js +1 -1
- package/atoms/Icon/constants.js +84 -2
- package/atoms/Input/Input.js +5 -5
- package/atoms/Input/Input.stories.js +1 -1
- package/atoms/Input/constants.js +1 -1
- package/atoms/Toggle/Toggle.js +56 -0
- package/atoms/Toggle/Toggle.module.css +41 -0
- package/atoms/Toggle/Toggle.stories.js +21 -0
- package/atoms/Toggle/constants.js +1 -0
- package/atoms/Toggle/index.js +3 -0
- package/index.js +5 -0
- package/molecules/Accordion/Accordion.js +2 -0
- package/molecules/CardDefault/CardDefault.module.css +1 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.js +5 -3
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.module.css +5 -1
- package/molecules/CardServiceDetail/CardServiceDetail.js +367 -0
- package/molecules/CardServiceDetail/CardServiceDetail.module.css +222 -0
- package/molecules/CardServiceDetail/CardServiceDetail.stories.js +23 -0
- package/molecules/CardServiceDetail/constants.js +1 -0
- package/molecules/CardServiceDetail/index.js +3 -0
- package/molecules/CardServices/CardServices.js +176 -46
- package/molecules/CardServices/CardServices.module.css +124 -4
- package/molecules/CardServicesFinalized/CardServicesFinalized.js +363 -0
- package/molecules/CardServicesFinalized/CardServicesFinalized.module.css +213 -0
- package/molecules/CardServicesFinalized/CardServicesFinalized.stories.js +23 -0
- package/molecules/CardServicesFinalized/constants.js +1 -0
- package/molecules/CardServicesFinalized/index.js +3 -0
- package/molecules/ColumnTable/ColumnTable.js +5 -3
- package/molecules/ColumnTable/ColumnTable.module.css +12 -0
- package/molecules/Dropdown/Dropdown.js +1 -1
- package/molecules/RowTable/RowTable.js +213 -154
- package/molecules/RowTable/RowTable.module.css +4 -0
- package/molecules/RowTable/constants.js +388 -2
- package/package.json +2 -1
- package/public/static/images/bank-cash-dollar-finance-money-payment-2-svgrepo-com.svg +13 -0
- package/public/static/images/buy-ecommerce-label-money-price-sale-svgrepo-com.svg +13 -0
- package/public/static/images/distance-svgrepo-com.svg +21 -0
- package/public/static/images/message-svgrepo-com.svg +15 -0
- package/public/static/images/pin-distance-svgrepo-com.svg +13 -0
- package/public/static/images/second-page-svgrepo-com copia.svg +18 -0
- package/public/static/images/second-page-svgrepo-com.svg +17 -0
- package/.eslintcache +0 -1
- package/storybook-static/0.263f852f.iframe.bundle.js +0 -1
- package/storybook-static/0.91dbd3f3aa2099d25061.manager.bundle.js +0 -1
- package/storybook-static/1.17e9ac7e.iframe.bundle.js +0 -3
- package/storybook-static/1.17e9ac7e.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.17e9ac7e.iframe.bundle.js.map +0 -1
- package/storybook-static/2.cc4000c2.iframe.bundle.js +0 -1
- package/storybook-static/3.e9f95d01.iframe.bundle.js +0 -1
- package/storybook-static/4.be0a752c9f5176d6eec1.manager.bundle.js +0 -2
- package/storybook-static/4.be0a752c9f5176d6eec1.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/5.8efdde123acaf8fbb100.manager.bundle.js +0 -1
- package/storybook-static/6.2f82294ae0b087aecb24.manager.bundle.js +0 -2
- package/storybook-static/6.2f82294ae0b087aecb24.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/7.97068037.iframe.bundle.js +0 -1
- package/storybook-static/7.fa9452d2609e8a00f314.manager.bundle.js +0 -1
- package/storybook-static/8.66f5ef1c66fc4628f127.manager.bundle.js +0 -1
- package/storybook-static/8.b545d602.iframe.bundle.js +0 -3
- package/storybook-static/8.b545d602.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/8.b545d602.iframe.bundle.js.map +0 -1
- package/storybook-static/9.269ed917.iframe.bundle.js +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +0 -348
- package/storybook-static/index.html +0 -59
- package/storybook-static/main.157061c9.iframe.bundle.js +0 -1
- package/storybook-static/main.5a07347846ccf2d7e5dc.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.a14e6e62.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.f78c3fae275fc212c109.manager.bundle.js +0 -1
- package/storybook-static/static/logo.svg +0 -19
- package/storybook-static/static/logologin.svg +0 -16
- package/storybook-static/static/logotipo.svg +0 -50
- package/storybook-static/static/logotipoS.svg +0 -26
- package/storybook-static/vendors~main.720e76f4.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.720e76f4.iframe.bundle.js.LICENSE.txt +0 -110
- package/storybook-static/vendors~main.720e76f4.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.fcd0b2a3431ddf75f5f7.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.fcd0b2a3431ddf75f5f7.manager.bundle.js.LICENSE.txt +0 -101
@@ -0,0 +1,363 @@
|
|
1
|
+
import React, { useState } from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
import ReactTooltip from 'react-tooltip'
|
4
|
+
import { Horizontal, Vertical } from '../../layout/Spacer/components'
|
5
|
+
import Label from '../../atoms/Label'
|
6
|
+
import Icon from '../../atoms/Icon'
|
7
|
+
|
8
|
+
import styles from './CardServicesFinalized.module.css'
|
9
|
+
import { options } from './constants'
|
10
|
+
import withStyles from '../../hocs/withStyles'
|
11
|
+
|
12
|
+
export const handleClick = ({ onClick }) => (event) => {
|
13
|
+
onClick(event)
|
14
|
+
}
|
15
|
+
|
16
|
+
export const CardServicesFinalized = ({
|
17
|
+
getStyles,
|
18
|
+
onClick,
|
19
|
+
isClickable,
|
20
|
+
txtDateService,
|
21
|
+
txtOriginService,
|
22
|
+
txtDestinationService,
|
23
|
+
txtPriceService,
|
24
|
+
txtUserService,
|
25
|
+
txtRefService,
|
26
|
+
txtUserNumberService,
|
27
|
+
onClickUserView,
|
28
|
+
txtTootipUserView,
|
29
|
+
onClickReturnOrder,
|
30
|
+
txtTootipReturnOrder,
|
31
|
+
onClickRepeatOrder,
|
32
|
+
txtTootipRepeatOrder,
|
33
|
+
onClickEdit,
|
34
|
+
txtTootipEdit,
|
35
|
+
onClickTrash,
|
36
|
+
txtTootipTrash,
|
37
|
+
selectCard,
|
38
|
+
statusService,
|
39
|
+
}) => {
|
40
|
+
|
41
|
+
// STATE TOOLTIP
|
42
|
+
const [isToolTipMounted, setIsToolTipMounted] = useState(false)
|
43
|
+
|
44
|
+
// TOOLTIP
|
45
|
+
const handleMouseEnter = () => {
|
46
|
+
setIsToolTipMounted(true)
|
47
|
+
}
|
48
|
+
const handleMouseLeave = () => {
|
49
|
+
setIsToolTipMounted(false)
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
return (
|
54
|
+
<div
|
55
|
+
onClick={onClick && handleClick({ onClick })}
|
56
|
+
className={getStyles('card-services-finalized',
|
57
|
+
{ 'is-clickable': isClickable, },
|
58
|
+
{ 'selectCard': selectCard },
|
59
|
+
// { 'flip-out-hor-bottom': selectCard }
|
60
|
+
)}
|
61
|
+
>
|
62
|
+
|
63
|
+
<div className={getStyles('card-content-p-box')}>
|
64
|
+
|
65
|
+
<p className={getStyles('card-content-p')}>
|
66
|
+
<Icon
|
67
|
+
name="clock"
|
68
|
+
size="xs"
|
69
|
+
/>
|
70
|
+
|
71
|
+
{txtDateService}
|
72
|
+
</p>
|
73
|
+
<Vertical size="xs" />
|
74
|
+
|
75
|
+
<div className={getStyles('card-content')}>
|
76
|
+
|
77
|
+
<div className={getStyles('card-subcontent')}>
|
78
|
+
|
79
|
+
<Vertical size="xs" />
|
80
|
+
|
81
|
+
<Label >
|
82
|
+
<Icon
|
83
|
+
name="originOrder"
|
84
|
+
size="xs"
|
85
|
+
color="highlight"
|
86
|
+
/>
|
87
|
+
|
88
|
+
Origen
|
89
|
+
</Label>
|
90
|
+
|
91
|
+
<p className={getStyles('card-content-p')}>{txtOriginService}</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<Horizontal size="sm" />
|
96
|
+
|
97
|
+
<div className={getStyles('card-subcontent')}>
|
98
|
+
|
99
|
+
<Vertical size="xs" />
|
100
|
+
|
101
|
+
<Label >
|
102
|
+
<Icon
|
103
|
+
name="destinationOrder"
|
104
|
+
size="xs"
|
105
|
+
color="highlight"
|
106
|
+
/>
|
107
|
+
|
108
|
+
Destino
|
109
|
+
</Label>
|
110
|
+
|
111
|
+
<p className={getStyles('card-content-p')}>{txtDestinationService}</p>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<Vertical size="xs" />
|
118
|
+
|
119
|
+
<div className={getStyles('card-content')}>
|
120
|
+
|
121
|
+
<div className={getStyles('card-subcontent')}>
|
122
|
+
|
123
|
+
<Vertical size="xs" />
|
124
|
+
|
125
|
+
<Label >
|
126
|
+
<Icon
|
127
|
+
name="price"
|
128
|
+
size="xs"
|
129
|
+
color="highlight"
|
130
|
+
/>
|
131
|
+
|
132
|
+
Precio
|
133
|
+
</Label>
|
134
|
+
|
135
|
+
<p className={getStyles('card-content-p')}>{txtPriceService}</p>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<Horizontal size="sm" />
|
140
|
+
|
141
|
+
<div className={getStyles('card-subcontent')}>
|
142
|
+
|
143
|
+
<Vertical size="xs" />
|
144
|
+
|
145
|
+
<Label >
|
146
|
+
<Icon
|
147
|
+
name="user"
|
148
|
+
size="xs"
|
149
|
+
color="highlight"
|
150
|
+
/>
|
151
|
+
|
152
|
+
Pasajero
|
153
|
+
</Label>
|
154
|
+
|
155
|
+
<p className={getStyles('card-content-p')}>{txtUserService}</p>
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<Vertical size="xs" />
|
162
|
+
|
163
|
+
<div className={getStyles('card-content')}>
|
164
|
+
|
165
|
+
<div className={getStyles('card-subcontent')}>
|
166
|
+
|
167
|
+
<Vertical size="xs" />
|
168
|
+
|
169
|
+
<Label >
|
170
|
+
<Icon
|
171
|
+
name="reference"
|
172
|
+
size="xs"
|
173
|
+
color="highlight"
|
174
|
+
/>
|
175
|
+
|
176
|
+
REF
|
177
|
+
</Label>
|
178
|
+
|
179
|
+
<p className={getStyles('card-content-p')}>{txtRefService}</p>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<Horizontal size="sm" />
|
184
|
+
|
185
|
+
<div className={getStyles('card-subcontent')}>
|
186
|
+
|
187
|
+
<Vertical size="xs" />
|
188
|
+
|
189
|
+
<Label >
|
190
|
+
<Icon
|
191
|
+
name="userNumber"
|
192
|
+
size="xs"
|
193
|
+
color="highlight"
|
194
|
+
/>
|
195
|
+
|
196
|
+
Usuario
|
197
|
+
</Label>
|
198
|
+
|
199
|
+
<p className={getStyles('card-content-p')}>{txtUserNumberService}</p>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
</div>
|
206
|
+
|
207
|
+
<div className={getStyles('card-content-action')}>
|
208
|
+
|
209
|
+
<div className={getStyles('card-subcontent-action')}>
|
210
|
+
|
211
|
+
<span
|
212
|
+
data-tip
|
213
|
+
data-for='userView'
|
214
|
+
onMouseEnter={handleMouseEnter}
|
215
|
+
onMouseLeave={handleMouseLeave}
|
216
|
+
>
|
217
|
+
<Icon
|
218
|
+
color="highlight"
|
219
|
+
id='userViewIcon'
|
220
|
+
isClickable
|
221
|
+
name="userView"
|
222
|
+
onClick={onClickUserView}
|
223
|
+
size="sm"
|
224
|
+
className={getStyles('icon-view')}
|
225
|
+
/>
|
226
|
+
|
227
|
+
</span>
|
228
|
+
|
229
|
+
{isToolTipMounted ? (
|
230
|
+
<ReactTooltip id='userView' type='error'>
|
231
|
+
<span>{txtTootipUserView}</span>
|
232
|
+
</ReactTooltip>
|
233
|
+
) : null}
|
234
|
+
|
235
|
+
</div>
|
236
|
+
|
237
|
+
<div className={getStyles('card-subcontent-action')}>
|
238
|
+
|
239
|
+
<span
|
240
|
+
data-tip
|
241
|
+
data-for='returnOrder'
|
242
|
+
onMouseEnter={handleMouseEnter}
|
243
|
+
onMouseLeave={handleMouseLeave}
|
244
|
+
>
|
245
|
+
<Icon
|
246
|
+
color="highlight"
|
247
|
+
id='returnOrderIcon'
|
248
|
+
isClickable
|
249
|
+
name="returnOrder"
|
250
|
+
onClick={onClickReturnOrder}
|
251
|
+
size="sm"
|
252
|
+
className={getStyles('icon-view')}
|
253
|
+
/>
|
254
|
+
|
255
|
+
</span>
|
256
|
+
|
257
|
+
{isToolTipMounted ? (
|
258
|
+
<ReactTooltip id='returnOrder' type='error'>
|
259
|
+
<span>{txtTootipReturnOrder}</span>
|
260
|
+
</ReactTooltip>
|
261
|
+
) : null}
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div className={getStyles('card-subcontent-action')}>
|
266
|
+
|
267
|
+
<span
|
268
|
+
data-tip
|
269
|
+
data-for='repeatOrder'
|
270
|
+
onMouseEnter={handleMouseEnter}
|
271
|
+
onMouseLeave={handleMouseLeave}
|
272
|
+
>
|
273
|
+
<Icon
|
274
|
+
color="highlight"
|
275
|
+
id='repeatOrderIcon'
|
276
|
+
isClickable
|
277
|
+
name="repeatOrder"
|
278
|
+
onClick={onClickRepeatOrder}
|
279
|
+
size="sm"
|
280
|
+
className={getStyles('icon-view')}
|
281
|
+
/>
|
282
|
+
|
283
|
+
</span>
|
284
|
+
|
285
|
+
{isToolTipMounted ? (
|
286
|
+
<ReactTooltip id='repeatOrder' type='error'>
|
287
|
+
<span>{txtTootipRepeatOrder}</span>
|
288
|
+
</ReactTooltip>
|
289
|
+
) : null}
|
290
|
+
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
<div className={getStyles('card-subcontent-action')}>
|
295
|
+
|
296
|
+
<Icon
|
297
|
+
className={getStyles(
|
298
|
+
// { 'icon-view-status10': statusService === 10 || -30 },
|
299
|
+
// { 'icon-view-status20': statusService === 20 },
|
300
|
+
{ 'icon-view-status30': statusService === 30 || -20 || -40 },
|
301
|
+
)}
|
302
|
+
name="circleStatus"
|
303
|
+
size="sm"
|
304
|
+
/>
|
305
|
+
|
306
|
+
</div>
|
307
|
+
|
308
|
+
</div>
|
309
|
+
|
310
|
+
{/* {children} */}
|
311
|
+
</div>
|
312
|
+
)
|
313
|
+
}
|
314
|
+
|
315
|
+
CardServicesFinalized.propTypes = {
|
316
|
+
getStyles: PropTypes.func.isRequired,
|
317
|
+
onClick: PropTypes.func,
|
318
|
+
isClickable: PropTypes.bool,
|
319
|
+
txtDateService: PropTypes.any,
|
320
|
+
txtOriginService: PropTypes.string,
|
321
|
+
txtDestinationService: PropTypes.string,
|
322
|
+
txtPriceService: PropTypes.string,
|
323
|
+
txtUserService: PropTypes.string,
|
324
|
+
txtRefService: PropTypes.string,
|
325
|
+
txtUserNumberService: PropTypes.string,
|
326
|
+
onClickUserView: PropTypes.func,
|
327
|
+
txtTootipUserView: PropTypes.string,
|
328
|
+
onClickReturnOrder: PropTypes.func,
|
329
|
+
txtTootipReturnOrder: PropTypes.string,
|
330
|
+
onClickRepeatOrder: PropTypes.func,
|
331
|
+
txtTootipRepeatOrder: PropTypes.string,
|
332
|
+
onClickEdit: PropTypes.func,
|
333
|
+
txtTootipEdit: PropTypes.string,
|
334
|
+
onClickTrash: PropTypes.func,
|
335
|
+
txtTootipTrash: PropTypes.string,
|
336
|
+
selectCard: PropTypes.bool,
|
337
|
+
statusService: PropTypes.number,
|
338
|
+
}
|
339
|
+
|
340
|
+
CardServicesFinalized.defaultProps = {
|
341
|
+
getStyles: () => { },
|
342
|
+
txtDateService: '31/08/2022 13:21',
|
343
|
+
txtOriginService: 'Aeropuerto Barajas T4, Madrid, España',
|
344
|
+
txtDestinationService: 'Estación de Chamartín, Madrid, España',
|
345
|
+
txtPriceService: '15,50 €',
|
346
|
+
txtUserService: 'Alberto Alvarez',
|
347
|
+
txtRefService: '1946980768',
|
348
|
+
txtUserNumberService: 'WF3941',
|
349
|
+
onClickUserView: () => { },
|
350
|
+
txtTootipUserView: 'Ver detalle del servicio',
|
351
|
+
onClickReturnOrder: () => { },
|
352
|
+
txtTootipReturnOrder: 'Crear retorno del servicio',
|
353
|
+
onClickRepeatOrder: () => { },
|
354
|
+
txtTootipRepeatOrder: 'Repetir servicio',
|
355
|
+
onClickEdit: () => { },
|
356
|
+
txtTootipEdit: 'Editar servicio (solo se puede editar 60min. antes)',
|
357
|
+
onClickTrash: () => { },
|
358
|
+
txtTootipTrash: 'Cancelar servicio',
|
359
|
+
selectCard: false,
|
360
|
+
statusService: 10,
|
361
|
+
}
|
362
|
+
|
363
|
+
export default withStyles(styles)(CardServicesFinalized)
|
@@ -0,0 +1,213 @@
|
|
1
|
+
.card-services-finalized {
|
2
|
+
/* display: flex; */
|
3
|
+
width: 100%;
|
4
|
+
align-items: center;
|
5
|
+
padding: 2px 10px;
|
6
|
+
border: var(--border-width-thin) solid var(--color-base-transparent);
|
7
|
+
border-radius: var(--card-border-radius);
|
8
|
+
box-shadow: 0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%);
|
9
|
+
color: var(--color-font-base);
|
10
|
+
transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);
|
11
|
+
background-color: #fff;
|
12
|
+
margin: 0;
|
13
|
+
cursor: auto;
|
14
|
+
max-width: 360px;
|
15
|
+
min-width: 360px;
|
16
|
+
|
17
|
+
align-items: center;
|
18
|
+
align-content: center;
|
19
|
+
justify-content: space-around;
|
20
|
+
margin-bottom: 10px;
|
21
|
+
display: flex;
|
22
|
+
|
23
|
+
}
|
24
|
+
|
25
|
+
.card-content {
|
26
|
+
display: flex;
|
27
|
+
align-items: flex-start;
|
28
|
+
align-content: space-between;
|
29
|
+
border-top: 1px solid #dfe8f2;
|
30
|
+
}
|
31
|
+
|
32
|
+
.card-content-p-box {
|
33
|
+
padding: 6px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.card-content-action {
|
37
|
+
padding-left: 10px;
|
38
|
+
border-left: 1px solid #dfe8f2;
|
39
|
+
height: 100%;
|
40
|
+
display: flex;
|
41
|
+
flex-direction: column;
|
42
|
+
justify-content: space-around;
|
43
|
+
}
|
44
|
+
|
45
|
+
.card-content-p {
|
46
|
+
margin: 0;
|
47
|
+
padding: 0;
|
48
|
+
font-size: var(--font-size-mini);
|
49
|
+
font-weight: var(--font-weight-normal);
|
50
|
+
line-height: var(--line-height-tight);
|
51
|
+
}
|
52
|
+
|
53
|
+
.card-subcontent {
|
54
|
+
width: 100%;
|
55
|
+
}
|
56
|
+
|
57
|
+
.card-subcontent-action {
|
58
|
+
display: flex;
|
59
|
+
align-items: center;
|
60
|
+
}
|
61
|
+
|
62
|
+
.size-sm {
|
63
|
+
min-height: 45px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.size-md {
|
67
|
+
min-height: 80px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.size-lg {
|
71
|
+
min-height: 115px;
|
72
|
+
}
|
73
|
+
|
74
|
+
.color-primary {
|
75
|
+
background: var(--color-primary);
|
76
|
+
color: var(--color-primary-inverted);
|
77
|
+
}
|
78
|
+
|
79
|
+
.color-secondary {
|
80
|
+
background: var(--color-secondary);
|
81
|
+
color: var(--color-secondary-inverted);
|
82
|
+
}
|
83
|
+
|
84
|
+
.color-base {
|
85
|
+
border: var(--border-width-thin) solid var(--color-gray-400);
|
86
|
+
background: var(--background-color-primary-highlight);
|
87
|
+
}
|
88
|
+
|
89
|
+
.is-clickable {
|
90
|
+
cursor: pointer;
|
91
|
+
}
|
92
|
+
|
93
|
+
.is-draggable {
|
94
|
+
cursor: grab;
|
95
|
+
user-select: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
.card-services-finalized.is-clickable:active,
|
99
|
+
.card-services-finalized.is-draggable:active {
|
100
|
+
box-shadow: var(--box-shadow-xs);
|
101
|
+
}
|
102
|
+
|
103
|
+
.selectCard {
|
104
|
+
border-top: 4px solid #39b54a;
|
105
|
+
border-bottom: 4px solid #00a3ff;
|
106
|
+
border-left: 1px solid #39b54a;
|
107
|
+
border-right: 1px solid #00a3ff;
|
108
|
+
-webkit-box-sizing: border-box;
|
109
|
+
-moz-box-sizing: border-box;
|
110
|
+
box-sizing: border-box;
|
111
|
+
background-position: 0 0, 100% 0;
|
112
|
+
background-repeat: no-repeat;
|
113
|
+
-webkit-background-size: 4px 100%;
|
114
|
+
-moz-background-size: 4px 100%;
|
115
|
+
background-size: 4px 100%;
|
116
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMzYWNmZDUiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzNhNGVkNSIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=),url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMzYWNmZDUiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzNhNGVkNSIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);
|
117
|
+
background-image: -webkit-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -webkit-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
118
|
+
background-image: -moz-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -moz-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
119
|
+
background-image: -o-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -o-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
120
|
+
background-image: linear-gradient(to bottom, #39b54a 0%, #00a3ff 100%), linear-gradient(to bottom, #39b54a 0%, #00a3ff 100%);
|
121
|
+
}
|
122
|
+
|
123
|
+
.flip-out-hor-bottom {
|
124
|
+
-webkit-animation: flip-out-hor-bottom 0.45s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
|
125
|
+
animation: flip-out-hor-bottom 0.45s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
|
126
|
+
}
|
127
|
+
|
128
|
+
.flip-in-hor-bottom {
|
129
|
+
-webkit-animation: flip-in-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
130
|
+
animation: flip-in-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
131
|
+
}
|
132
|
+
|
133
|
+
/**
|
134
|
+
* ----------------------------------------
|
135
|
+
* animation flip-out-hor-bottom
|
136
|
+
* ----------------------------------------
|
137
|
+
*/
|
138
|
+
@-webkit-keyframes flip-out-hor-bottom {
|
139
|
+
0% {
|
140
|
+
-webkit-transform: rotateX(0);
|
141
|
+
transform: rotateX(0);
|
142
|
+
opacity: 1;
|
143
|
+
}
|
144
|
+
100% {
|
145
|
+
-webkit-transform: rotateX(-70deg);
|
146
|
+
transform: rotateX(-70deg);
|
147
|
+
opacity: 0;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
@keyframes flip-out-hor-bottom {
|
151
|
+
0% {
|
152
|
+
-webkit-transform: rotateX(0);
|
153
|
+
transform: rotateX(0);
|
154
|
+
opacity: 1;
|
155
|
+
}
|
156
|
+
100% {
|
157
|
+
-webkit-transform: rotateX(-70deg);
|
158
|
+
transform: rotateX(-70deg);
|
159
|
+
opacity: 0;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
/**
|
165
|
+
* ----------------------------------------
|
166
|
+
* animation flip-in-hor-bottom
|
167
|
+
* ----------------------------------------
|
168
|
+
*/
|
169
|
+
@-webkit-keyframes flip-in-hor-bottom {
|
170
|
+
0% {
|
171
|
+
-webkit-transform: rotateX(80deg);
|
172
|
+
transform: rotateX(80deg);
|
173
|
+
opacity: 0;
|
174
|
+
}
|
175
|
+
100% {
|
176
|
+
-webkit-transform: rotateX(0);
|
177
|
+
transform: rotateX(0);
|
178
|
+
opacity: 1;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
@keyframes flip-in-hor-bottom {
|
182
|
+
0% {
|
183
|
+
-webkit-transform: rotateX(80deg);
|
184
|
+
transform: rotateX(80deg);
|
185
|
+
opacity: 0;
|
186
|
+
}
|
187
|
+
100% {
|
188
|
+
-webkit-transform: rotateX(0);
|
189
|
+
transform: rotateX(0);
|
190
|
+
opacity: 1;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
|
195
|
+
.icon-view:hover svg path {
|
196
|
+
fill: var(--color-primary-muted);
|
197
|
+
}
|
198
|
+
|
199
|
+
.icon-view-delete:hover svg path {
|
200
|
+
fill: var(--color-secondary-muted);
|
201
|
+
}
|
202
|
+
|
203
|
+
.icon-view-status10 svg circle {
|
204
|
+
fill: #00a3ff;
|
205
|
+
}
|
206
|
+
|
207
|
+
.icon-view-status20 svg circle {
|
208
|
+
fill: #39b54a;
|
209
|
+
}
|
210
|
+
|
211
|
+
.icon-view-status30 svg circle {
|
212
|
+
fill: #8F12FE;
|
213
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { CardServicesFinalized, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(CardServicesFinalized, styles)
|
10
|
+
const ListTemplate = getListTemplate(CardServicesFinalized, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Molecules/CardServicesFinalized',
|
14
|
+
component: CardServicesFinalized,
|
15
|
+
args: {},
|
16
|
+
argTypes: {
|
17
|
+
types: getOptionsArgTypes(options.types),
|
18
|
+
},
|
19
|
+
}
|
20
|
+
|
21
|
+
export const Default = Template.bind({})
|
22
|
+
export const List = ListTemplate.bind({})
|
23
|
+
List.args = { items: options.types.map((type) => ({ type })) }
|
@@ -0,0 +1 @@
|
|
1
|
+
export const options = { types: [] }
|
@@ -51,9 +51,11 @@ export const ColumnTable = ({ getStyles, handleSorting, columnUppercase, onChang
|
|
51
51
|
// setAccessor()
|
52
52
|
(<th
|
53
53
|
key={item.idInput}
|
54
|
-
className={getStyles('column-table',
|
55
|
-
|
56
|
-
}
|
54
|
+
className={getStyles('column-table',
|
55
|
+
{'column-uppercase': columnUppercase},
|
56
|
+
{'thacction': item.accessor === 'iconUrl' } ,
|
57
|
+
{'thcheckbox': item.isCheckbox }
|
58
|
+
)}>
|
57
59
|
|
58
60
|
<span onClick={item.sortable ? () => handleSortingChange(item.accessor) : null}>
|
59
61
|
<Paragraph
|
@@ -21,4 +21,16 @@
|
|
21
21
|
/* background-color: -webkit-linear-gradient(left, #25c481, #25b7c4);
|
22
22
|
background-color: linear-gradient(to right, #25c481, #25b7c4); */
|
23
23
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
24
|
+
}
|
25
|
+
|
26
|
+
.thacction {
|
27
|
+
max-width: 80px;
|
28
|
+
min-width: 80px;
|
29
|
+
width: 80px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.thcheckbox {
|
33
|
+
max-width: 80px;
|
34
|
+
min-width: 80px;
|
35
|
+
width: 80px;
|
24
36
|
}
|
@@ -16,13 +16,13 @@ export const Dropdown = ({
|
|
16
16
|
}) => {
|
17
17
|
return (
|
18
18
|
<div
|
19
|
-
id={id}
|
20
19
|
className={getStyles('dropdown', {
|
21
20
|
'is-inline': isInline,
|
22
21
|
})}
|
23
22
|
>
|
24
23
|
<Icon className="dropdown-icon" name="angleDown" background="transparent" />
|
25
24
|
<select
|
25
|
+
id={id}
|
26
26
|
className={getStyles('dropdown-select')}
|
27
27
|
onChange={(event) => onChange(event?.currentTarget?.value)}
|
28
28
|
value={value}
|