imbric-theme 0.4.4 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- package/Dockerfile +18 -0
- package/atoms/Checkbox/Checkbox.js +1 -1
- package/atoms/Icon/constants.js +55 -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 +7 -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 +175 -45
- package/molecules/CardServices/CardServices.module.css +116 -4
- package/molecules/ColumnTable/ColumnTable.js +5 -3
- package/molecules/ColumnTable/ColumnTable.module.css +12 -0
- package/molecules/Dropdown/Dropdown.js +1 -1
- package/molecules/InputAutocomplete/InputAutocomplete.js +0 -50
- package/molecules/RowTable/RowTable.js +59 -22
- package/molecules/RowTable/RowTable.module.css +4 -0
- package/molecules/RowTable/constants.js +5 -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/.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,367 @@
|
|
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 './CardServiceDetail.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 CardServiceDetail = ({
|
17
|
+
getStyles,
|
18
|
+
onClick,
|
19
|
+
isClickable,
|
20
|
+
txtInfoLabel,
|
21
|
+
txtUserService,
|
22
|
+
statusService,
|
23
|
+
txtZoneService,
|
24
|
+
txtTimeTotalService,
|
25
|
+
txtDistanceService,
|
26
|
+
txtServiceService,
|
27
|
+
txtPayService,
|
28
|
+
txtPriceService,
|
29
|
+
txtRefService,
|
30
|
+
txtModelCarService,
|
31
|
+
txtCarNumberService,
|
32
|
+
txtNumberDriverService,
|
33
|
+
txtSmsDriverService,
|
34
|
+
onClickCross,
|
35
|
+
txtTootipCross,
|
36
|
+
selectCard,
|
37
|
+
}) => {
|
38
|
+
|
39
|
+
// STATE TOOLTIP
|
40
|
+
const [isToolTipMounted, setIsToolTipMounted] = useState(false)
|
41
|
+
|
42
|
+
// TOOLTIP
|
43
|
+
const handleMouseEnter = () => {
|
44
|
+
setIsToolTipMounted(true)
|
45
|
+
}
|
46
|
+
const handleMouseLeave = () => {
|
47
|
+
setIsToolTipMounted(false)
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
return (
|
52
|
+
<div
|
53
|
+
onClick={onClick && handleClick({ onClick })}
|
54
|
+
className={getStyles('card-service-detail',
|
55
|
+
{ 'is-clickable': isClickable, },
|
56
|
+
'selectCard',
|
57
|
+
// { 'flip-out-hor-bottom': selectCard }
|
58
|
+
)}
|
59
|
+
>
|
60
|
+
|
61
|
+
<div className={getStyles('card-content-box')}>
|
62
|
+
|
63
|
+
<p className={getStyles(
|
64
|
+
'card-content-label',
|
65
|
+
{ 'statusPendiente': statusService === 10 },
|
66
|
+
{ 'statusAceptado': statusService === 20 },
|
67
|
+
{ 'statusPendiente2': statusService === -30 },
|
68
|
+
{ 'statusFinalizado': statusService === 30 }
|
69
|
+
)}>
|
70
|
+
{txtInfoLabel}
|
71
|
+
</p>
|
72
|
+
|
73
|
+
<div className={getStyles('card-content')}>
|
74
|
+
|
75
|
+
<div className={getStyles('card-subcontent-inLine')}>
|
76
|
+
|
77
|
+
<Label >
|
78
|
+
<Icon
|
79
|
+
name="user"
|
80
|
+
size="xs"
|
81
|
+
color="highlight"
|
82
|
+
/>
|
83
|
+
|
84
|
+
Creado por:
|
85
|
+
</Label>
|
86
|
+
|
87
|
+
<p className={getStyles('card-content-p')}> {txtUserService}</p>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div className={getStyles('card-content')}>
|
94
|
+
|
95
|
+
<div className={getStyles('card-subcontent')}>
|
96
|
+
|
97
|
+
<Label >
|
98
|
+
<Icon
|
99
|
+
name="originOrder"
|
100
|
+
size="xs"
|
101
|
+
color="highlight"
|
102
|
+
/>
|
103
|
+
|
104
|
+
Recogida
|
105
|
+
</Label>
|
106
|
+
|
107
|
+
<p className={getStyles('card-content-p')}>{txtZoneService}</p>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<div className={getStyles('card-subcontent')}>
|
112
|
+
|
113
|
+
<Label >
|
114
|
+
<Icon
|
115
|
+
name="clock"
|
116
|
+
size="xs"
|
117
|
+
color="highlight"
|
118
|
+
/>
|
119
|
+
|
120
|
+
Tiempo estimado
|
121
|
+
</Label>
|
122
|
+
|
123
|
+
<p className={getStyles('card-content-p')}>{txtTimeTotalService}</p>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div className={getStyles('card-subcontent')}>
|
128
|
+
|
129
|
+
<Label >
|
130
|
+
<Icon
|
131
|
+
name="distance"
|
132
|
+
size="xs"
|
133
|
+
color="highlight"
|
134
|
+
/>
|
135
|
+
|
136
|
+
Distancia
|
137
|
+
</Label>
|
138
|
+
|
139
|
+
<p className={getStyles('card-content-p')}>{txtDistanceService}</p>
|
140
|
+
|
141
|
+
</div>
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
<div className={getStyles('card-content')}>
|
147
|
+
|
148
|
+
<div className={getStyles('card-subcontent')}>
|
149
|
+
|
150
|
+
<Label >
|
151
|
+
<Icon
|
152
|
+
name="travelPrograms"
|
153
|
+
size="xs"
|
154
|
+
color="highlight"
|
155
|
+
/>
|
156
|
+
|
157
|
+
Servicio
|
158
|
+
</Label>
|
159
|
+
|
160
|
+
<p className={getStyles('card-content-p')}>{txtServiceService}</p>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
|
164
|
+
<div className={getStyles('card-subcontent')}>
|
165
|
+
|
166
|
+
<Label >
|
167
|
+
<Icon
|
168
|
+
name="moneyPayment"
|
169
|
+
size="xs"
|
170
|
+
color="highlight"
|
171
|
+
/>
|
172
|
+
|
173
|
+
Método de pago
|
174
|
+
</Label>
|
175
|
+
|
176
|
+
<p className={getStyles('card-content-p')}>{txtPayService}</p>
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
<div className={getStyles('card-subcontent')}>
|
181
|
+
|
182
|
+
<Label >
|
183
|
+
<Icon
|
184
|
+
name="price"
|
185
|
+
size="xs"
|
186
|
+
color="highlight"
|
187
|
+
/>
|
188
|
+
|
189
|
+
Precio estimado
|
190
|
+
</Label>
|
191
|
+
|
192
|
+
<p className={getStyles('card-content-p')}>{txtPriceService}</p>
|
193
|
+
|
194
|
+
</div>
|
195
|
+
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
<div className={getStyles('card-content')}>
|
200
|
+
|
201
|
+
<div className={getStyles('card-subcontent')}>
|
202
|
+
|
203
|
+
<Label >
|
204
|
+
<Icon
|
205
|
+
name="reference"
|
206
|
+
size="xs"
|
207
|
+
color="highlight"
|
208
|
+
/>
|
209
|
+
|
210
|
+
Proveedor
|
211
|
+
</Label>
|
212
|
+
|
213
|
+
<p className={getStyles('card-content-p')}>{txtRefService}</p>
|
214
|
+
|
215
|
+
</div>
|
216
|
+
|
217
|
+
<div className={getStyles('card-subcontent')}>
|
218
|
+
|
219
|
+
<Label >
|
220
|
+
<Icon
|
221
|
+
name="userNumber"
|
222
|
+
size="xs"
|
223
|
+
color="highlight"
|
224
|
+
/>
|
225
|
+
|
226
|
+
Modelo
|
227
|
+
</Label>
|
228
|
+
|
229
|
+
<p className={getStyles('card-content-p')}>{txtModelCarService}</p>
|
230
|
+
|
231
|
+
</div>
|
232
|
+
|
233
|
+
<div className={getStyles('card-subcontent')}>
|
234
|
+
|
235
|
+
<Label >
|
236
|
+
<Icon
|
237
|
+
name="userNumber"
|
238
|
+
size="xs"
|
239
|
+
color="highlight"
|
240
|
+
/>
|
241
|
+
|
242
|
+
Matrícula
|
243
|
+
</Label>
|
244
|
+
|
245
|
+
<p className={getStyles('card-content-p')}>{txtCarNumberService}</p>
|
246
|
+
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</div>
|
250
|
+
|
251
|
+
<div className={getStyles('card-content')}>
|
252
|
+
|
253
|
+
<div className={getStyles('card-subcontent')}>
|
254
|
+
|
255
|
+
<Label >
|
256
|
+
<Icon
|
257
|
+
name="userNumber"
|
258
|
+
size="xs"
|
259
|
+
color="highlight"
|
260
|
+
/>
|
261
|
+
|
262
|
+
Telefono conductor
|
263
|
+
</Label>
|
264
|
+
|
265
|
+
<p className={getStyles('card-content-p')}>{txtNumberDriverService}</p>
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
<div className={getStyles('card-subcontent')}>
|
270
|
+
|
271
|
+
<Label >
|
272
|
+
<Icon
|
273
|
+
name="messageDriver"
|
274
|
+
size="xs"
|
275
|
+
color="highlight"
|
276
|
+
/>
|
277
|
+
|
278
|
+
Mensaje al conductor
|
279
|
+
</Label>
|
280
|
+
|
281
|
+
<p className={getStyles('card-content-p')}>{txtSmsDriverService}</p>
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
</div>
|
286
|
+
|
287
|
+
</div>
|
288
|
+
|
289
|
+
<div className={getStyles('card-content-action')}>
|
290
|
+
|
291
|
+
<div className={getStyles('card-subcontent-action')}>
|
292
|
+
|
293
|
+
<span
|
294
|
+
data-tip
|
295
|
+
data-for='cross'
|
296
|
+
onMouseEnter={handleMouseEnter}
|
297
|
+
onMouseLeave={handleMouseLeave}
|
298
|
+
>
|
299
|
+
<Icon
|
300
|
+
id='crossIcon'
|
301
|
+
isClickable
|
302
|
+
name="cross"
|
303
|
+
onClick={onClickCross}
|
304
|
+
size="sm"
|
305
|
+
/>
|
306
|
+
|
307
|
+
</span>
|
308
|
+
|
309
|
+
{isToolTipMounted ? (
|
310
|
+
<ReactTooltip id='cross' type='error'>
|
311
|
+
<span>{txtTootipCross}</span>
|
312
|
+
</ReactTooltip>
|
313
|
+
) : null}
|
314
|
+
|
315
|
+
</div>
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
</div>
|
320
|
+
)
|
321
|
+
}
|
322
|
+
|
323
|
+
CardServiceDetail.propTypes = {
|
324
|
+
getStyles: PropTypes.func.isRequired,
|
325
|
+
onClick: PropTypes.func,
|
326
|
+
isClickable: PropTypes.bool,
|
327
|
+
txtInfoLabel: PropTypes.any,
|
328
|
+
statusService: PropTypes.number,
|
329
|
+
txtUserService: PropTypes.string,
|
330
|
+
txtZoneService: PropTypes.string,
|
331
|
+
txtTimeTotalService: PropTypes.string,
|
332
|
+
txtDistanceService: PropTypes.string,
|
333
|
+
txtServiceService: PropTypes.string,
|
334
|
+
txtPayService: PropTypes.string,
|
335
|
+
txtPriceService: PropTypes.string,
|
336
|
+
txtRefService: PropTypes.string,
|
337
|
+
txtModelCarService: PropTypes.string,
|
338
|
+
txtCarNumberService: PropTypes.string,
|
339
|
+
txtNumberDriverService: PropTypes.string,
|
340
|
+
txtSmsDriverService: PropTypes.string,
|
341
|
+
onClickCross: PropTypes.func,
|
342
|
+
txtTootipCross: PropTypes.string,
|
343
|
+
selectCard: PropTypes.bool,
|
344
|
+
}
|
345
|
+
|
346
|
+
CardServiceDetail.defaultProps = {
|
347
|
+
getStyles: () => { },
|
348
|
+
txtInfoLabel: '',
|
349
|
+
statusService: 10,
|
350
|
+
txtUserService: '',
|
351
|
+
txtZoneService: '',
|
352
|
+
txtTimeTotalService: '',
|
353
|
+
txtDistanceService: '',
|
354
|
+
txtServiceService: '',
|
355
|
+
txtPayService: '',
|
356
|
+
txtPriceService: '',
|
357
|
+
txtRefService: '',
|
358
|
+
txtModelCarService: '',
|
359
|
+
txtCarNumberService: '',
|
360
|
+
txtNumberDriverService: '',
|
361
|
+
txtSmsDriverService: '',
|
362
|
+
onClickCross: () => { },
|
363
|
+
txtTootipCross: 'Cerrar',
|
364
|
+
selectCard: false,
|
365
|
+
}
|
366
|
+
|
367
|
+
export default withStyles(styles)(CardServiceDetail)
|
@@ -0,0 +1,222 @@
|
|
1
|
+
.card-service-detail {
|
2
|
+
/* display: flex; */
|
3
|
+
width: 100%;
|
4
|
+
align-items: center;
|
5
|
+
padding: 0px;
|
6
|
+
border: var(--border-width-thin) solid var(--color-base-transparent);
|
7
|
+
border-radius: 10px;
|
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: 420px;
|
15
|
+
min-width: 420px;
|
16
|
+
align-items: center;
|
17
|
+
align-content: center;
|
18
|
+
justify-content: space-around;
|
19
|
+
/* margin-right: 10px; */
|
20
|
+
display: flex;
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
.card-content-box {
|
25
|
+
border-right: 1px solid #dfe8f2;
|
26
|
+
width: 100%;
|
27
|
+
}
|
28
|
+
|
29
|
+
.card-content {
|
30
|
+
display: flex;
|
31
|
+
align-items: flex-start;
|
32
|
+
align-content: space-between;
|
33
|
+
border-top: 1px solid #dfe8f2;
|
34
|
+
padding: 6px 6px;
|
35
|
+
margin-left: 4px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.card-content-action {
|
39
|
+
padding-right: 4px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.card-content-label {
|
43
|
+
padding: 10px;
|
44
|
+
color: #fff;
|
45
|
+
margin: 0;
|
46
|
+
/* margin-left: 4px; */
|
47
|
+
font-size: var(--font-size-base);
|
48
|
+
font-weight: var(--font-weight-normal);
|
49
|
+
line-height: var(--line-height-tight);
|
50
|
+
text-align: center;
|
51
|
+
}
|
52
|
+
|
53
|
+
.card-content-p {
|
54
|
+
margin: 0;
|
55
|
+
padding: 0;
|
56
|
+
font-size: var(--font-size-mini);
|
57
|
+
font-weight: var(--font-weight-normal);
|
58
|
+
line-height: var(--line-height-tight);
|
59
|
+
}
|
60
|
+
|
61
|
+
.statusPendiente {
|
62
|
+
background-color: #00a3ff;
|
63
|
+
}
|
64
|
+
|
65
|
+
.statusPendiente2 {
|
66
|
+
background-color: #00a3ff;
|
67
|
+
}
|
68
|
+
|
69
|
+
.statusAceptado {
|
70
|
+
background-color: #39b54a;
|
71
|
+
}
|
72
|
+
|
73
|
+
.statusFinalizado {
|
74
|
+
background-color: #8F12FE;
|
75
|
+
}
|
76
|
+
|
77
|
+
.card-subcontent {
|
78
|
+
width: 100%;
|
79
|
+
}
|
80
|
+
|
81
|
+
.card-subcontent-inLine {
|
82
|
+
/* width: 100%; */
|
83
|
+
display: flex;
|
84
|
+
white-space: nowrap;
|
85
|
+
}
|
86
|
+
|
87
|
+
.card-subcontent-action {
|
88
|
+
display: flex;
|
89
|
+
align-items: center;
|
90
|
+
}
|
91
|
+
|
92
|
+
.size-sm {
|
93
|
+
min-height: 45px;
|
94
|
+
}
|
95
|
+
|
96
|
+
.size-md {
|
97
|
+
min-height: 80px;
|
98
|
+
}
|
99
|
+
|
100
|
+
.size-lg {
|
101
|
+
min-height: 115px;
|
102
|
+
}
|
103
|
+
|
104
|
+
.color-primary {
|
105
|
+
background: var(--color-primary);
|
106
|
+
color: var(--color-primary-inverted);
|
107
|
+
}
|
108
|
+
|
109
|
+
.color-secondary {
|
110
|
+
background: var(--color-secondary);
|
111
|
+
color: var(--color-secondary-inverted);
|
112
|
+
}
|
113
|
+
|
114
|
+
.color-base {
|
115
|
+
border: var(--border-width-thin) solid var(--color-gray-400);
|
116
|
+
background: var(--background-color-primary-highlight);
|
117
|
+
}
|
118
|
+
|
119
|
+
.is-clickable {
|
120
|
+
cursor: pointer;
|
121
|
+
}
|
122
|
+
|
123
|
+
.is-draggable {
|
124
|
+
cursor: grab;
|
125
|
+
user-select: none;
|
126
|
+
}
|
127
|
+
|
128
|
+
.card-services.is-clickable:active,
|
129
|
+
.card-services.is-draggable:active {
|
130
|
+
box-shadow: var(--box-shadow-xs);
|
131
|
+
}
|
132
|
+
|
133
|
+
.selectCard {
|
134
|
+
border-top: 4px solid #39b54a;
|
135
|
+
border-bottom: 4px solid #00a3ff;
|
136
|
+
border-left: 1px solid #39b54a;
|
137
|
+
border-right: 1px solid #00a3ff;
|
138
|
+
-webkit-box-sizing: border-box;
|
139
|
+
-moz-box-sizing: border-box;
|
140
|
+
box-sizing: border-box;
|
141
|
+
background-position: 0 0, 100% 0;
|
142
|
+
background-repeat: no-repeat;
|
143
|
+
-webkit-background-size: 4px 100%;
|
144
|
+
-moz-background-size: 4px 100%;
|
145
|
+
background-size: 4px 100%;
|
146
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMzYWNmZDUiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzNhNGVkNSIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=),url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMzYWNmZDUiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzNhNGVkNSIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);
|
147
|
+
background-image: -webkit-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -webkit-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
148
|
+
background-image: -moz-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -moz-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
149
|
+
background-image: -o-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -o-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
150
|
+
background-image: linear-gradient(to bottom, #39b54a 0%, #00a3ff 100%), linear-gradient(to bottom, #39b54a 0%, #00a3ff 100%);
|
151
|
+
}
|
152
|
+
|
153
|
+
.flip-out-hor-bottom {
|
154
|
+
-webkit-animation: flip-out-hor-bottom 0.45s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
|
155
|
+
animation: flip-out-hor-bottom 0.45s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
|
156
|
+
}
|
157
|
+
|
158
|
+
.flip-in-hor-bottom {
|
159
|
+
-webkit-animation: flip-in-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
160
|
+
animation: flip-in-hor-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
161
|
+
}
|
162
|
+
|
163
|
+
/**
|
164
|
+
* ----------------------------------------
|
165
|
+
* animation flip-out-hor-bottom
|
166
|
+
* ----------------------------------------
|
167
|
+
*/
|
168
|
+
@-webkit-keyframes flip-out-hor-bottom {
|
169
|
+
0% {
|
170
|
+
-webkit-transform: rotateX(0);
|
171
|
+
transform: rotateX(0);
|
172
|
+
opacity: 1;
|
173
|
+
}
|
174
|
+
100% {
|
175
|
+
-webkit-transform: rotateX(-70deg);
|
176
|
+
transform: rotateX(-70deg);
|
177
|
+
opacity: 0;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
@keyframes flip-out-hor-bottom {
|
181
|
+
0% {
|
182
|
+
-webkit-transform: rotateX(0);
|
183
|
+
transform: rotateX(0);
|
184
|
+
opacity: 1;
|
185
|
+
}
|
186
|
+
100% {
|
187
|
+
-webkit-transform: rotateX(-70deg);
|
188
|
+
transform: rotateX(-70deg);
|
189
|
+
opacity: 0;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
/**
|
195
|
+
* ----------------------------------------
|
196
|
+
* animation flip-in-hor-bottom
|
197
|
+
* ----------------------------------------
|
198
|
+
*/
|
199
|
+
@-webkit-keyframes flip-in-hor-bottom {
|
200
|
+
0% {
|
201
|
+
-webkit-transform: rotateX(80deg);
|
202
|
+
transform: rotateX(80deg);
|
203
|
+
opacity: 0;
|
204
|
+
}
|
205
|
+
100% {
|
206
|
+
-webkit-transform: rotateX(0);
|
207
|
+
transform: rotateX(0);
|
208
|
+
opacity: 1;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
@keyframes flip-in-hor-bottom {
|
212
|
+
0% {
|
213
|
+
-webkit-transform: rotateX(80deg);
|
214
|
+
transform: rotateX(80deg);
|
215
|
+
opacity: 0;
|
216
|
+
}
|
217
|
+
100% {
|
218
|
+
-webkit-transform: rotateX(0);
|
219
|
+
transform: rotateX(0);
|
220
|
+
opacity: 1;
|
221
|
+
}
|
222
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { CardServiceDetail, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(CardServiceDetail, styles)
|
10
|
+
const ListTemplate = getListTemplate(CardServiceDetail, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Molecules/CardServiceDetail',
|
14
|
+
component: CardServiceDetail,
|
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: [] }
|