imbric-theme 0.1.1 → 0.1.3
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/.storybook/main.js +6 -2
- package/.storybook/preview.js +21 -0
- package/.vscode/settings.json +3 -0
- package/Dockerfile +17 -0
- package/README.md +2 -2
- package/atoms/AlertModal/AlertModal.js +69 -0
- package/atoms/AlertModal/AlertModal.module.css +3 -0
- package/atoms/AlertModal/AlertModal.stories.js +30 -0
- package/atoms/AlertModal/constants.js +4 -0
- package/atoms/AlertModal/index.js +3 -0
- package/atoms/Button/Button.js +17 -2
- package/atoms/Button/Button.module.css +25 -3
- package/atoms/Button/Button.stories.js +1 -1
- package/atoms/Button/__snapshots__/Button.stories.js.snap +8 -8
- package/atoms/Check/Check.js +6 -4
- package/atoms/Checkbox/Checkbox.js +77 -0
- package/atoms/Checkbox/Checkbox.module.css +60 -0
- package/atoms/Checkbox/Checkbox.stories.js +30 -0
- package/atoms/Checkbox/constants.js +1 -0
- package/atoms/Checkbox/index.js +3 -0
- package/atoms/Divider/Divider.js +5 -2
- package/atoms/Divider/Divider.module.css +20 -0
- package/atoms/Divider/Divider.stories.js +13 -2
- package/atoms/Divider/constants.js +3 -0
- package/atoms/Divider/index.js +1 -0
- package/atoms/Heading/Heading.js +1 -1
- package/atoms/Heading/Heading.module.css +4 -0
- package/atoms/Heading/Heading.stories.js +2 -2
- package/atoms/Heading/__snapshots__/Heading.stories.js.snap +16 -16
- package/atoms/Heading/constants.js +1 -1
- package/atoms/Icon/Icon.js +1 -1
- package/atoms/Icon/Icon.module.css +30 -0
- package/atoms/Icon/constants.js +750 -145
- package/atoms/Input/Input.js +195 -15
- package/atoms/Input/Input.module.css +62 -6
- package/atoms/Input/Input.stories.js +8 -2
- package/atoms/Input/__snapshots__/Input.stories.js.snap +5 -5
- package/atoms/Input/constants.js +1 -1
- package/atoms/Label/Label.js +31 -0
- package/atoms/Label/Label.module.css +42 -0
- package/atoms/Label/Label.stories.js +26 -0
- package/atoms/Label/constants.js +1 -0
- package/atoms/Label/index.js +3 -0
- package/atoms/LinkItem/LinkItem.js +38 -0
- package/atoms/{Link/Link.module.css → LinkItem/LinkItem.module.css} +6 -1
- package/atoms/{Link/Link.stories.js → LinkItem/LinkItem.stories.js} +5 -5
- package/atoms/LinkItem/index.js +3 -0
- package/atoms/Modal/Modal.js +27 -4
- package/atoms/Modal/Modal.module.css +63 -6
- package/atoms/Paragraph/Paragraph.module.css +4 -0
- package/atoms/Paragraph/Paragraph.stories.js +2 -2
- package/atoms/Paragraph/__snapshots__/Paragraph.stories.js.snap +16 -16
- package/atoms/Picture/Picture.js +9 -2
- package/atoms/Tab/Tab.js +41 -0
- package/atoms/Tab/Tab.module.css +17 -0
- package/atoms/Tab/Tab.stories.js +27 -0
- package/atoms/Tab/constants.js +1 -0
- package/atoms/Tab/index.js +3 -0
- package/atoms/Textarea/Textarea.js +106 -15
- package/atoms/Textarea/Textarea.module.css +31 -2
- 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/helpers/storybook.js +2 -2
- package/hook/useAddColumn.js +40 -0
- package/hook/useStateDate.js +25 -0
- package/hook/useTable.js +54 -0
- package/index.js +41 -1
- package/jest.config.js +1 -1
- package/layout/DynamicTable/DynamicTable.js +372 -0
- package/layout/DynamicTable/DynamicTable.module.css +62 -0
- package/layout/DynamicTable/DynamicTable.stories.js +79 -0
- package/layout/DynamicTable/constants.js +323 -0
- package/layout/DynamicTable/index.js +3 -0
- package/layout/FlexColumnContent/FlexColumnContent.js +26 -0
- package/layout/FlexColumnContent/FlexColumnContent.module.css +5 -0
- package/layout/FlexColumnContent/FlexColumnContent.stories.js +28 -0
- package/layout/FlexColumnContent/constants.js +1 -0
- package/layout/FlexColumnContent/index.js +3 -0
- package/layout/Navbar/Navbar.js +247 -0
- package/layout/Navbar/Navbar.module.css +35 -0
- package/layout/Navbar/Navbar.stories.js +20 -0
- package/layout/Navbar/constants.js +35 -0
- package/layout/Navbar/index.js +2 -0
- package/layout/Sidebar/Sidebar.js +115 -0
- package/layout/Sidebar/Sidebar.module.css +387 -0
- package/layout/Sidebar/Sidebar.stories.js +28 -0
- package/layout/Sidebar/constants.js +228 -0
- package/layout/Sidebar/index.js +3 -0
- package/molecules/Accordion/Accordion.js +11 -11
- package/molecules/CardDefault/CardDefault.js +65 -0
- package/molecules/CardDefault/CardDefault.module.css +19 -0
- package/molecules/CardDefault/CardDefault.stories.js +23 -0
- package/molecules/CardDefault/constants.js +1 -0
- package/molecules/CardDefault/index.js +3 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.js +89 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.module.css +118 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.stories.js +25 -0
- package/molecules/CardProductTypesBooking/constants.js +1 -0
- package/molecules/CardProductTypesBooking/index.js +3 -0
- package/molecules/CardServiceDetail/CardServiceDetail.js +400 -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 +461 -0
- package/molecules/CardServices/CardServices.module.css +213 -0
- package/molecules/CardServices/CardServices.stories.js +41 -0
- package/molecules/CardServices/constants.js +5 -0
- package/molecules/CardServices/index.js +3 -0
- package/molecules/CardServicesFinalized/CardServicesFinalized.js +381 -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/CheckList/CheckList.js +135 -0
- package/molecules/CheckList/CheckList.module.css +94 -0
- package/molecules/CheckList/CheckList.stories.js +25 -0
- package/molecules/CheckList/constants.js +23 -0
- package/molecules/CheckList/index.js +3 -0
- package/molecules/ColumnTable/ColumnTable.js +155 -0
- package/molecules/ColumnTable/ColumnTable.module.css +51 -0
- package/molecules/ColumnTable/ColumnTable.stories.js +26 -0
- package/molecules/ColumnTable/constants.js +117 -0
- package/molecules/ColumnTable/index.js +3 -0
- package/molecules/DatePicker/DatePicker.js +242 -0
- package/molecules/DatePicker/DatePicker.module.css +38 -0
- package/molecules/DatePicker/DatePicker.stories.js +23 -0
- package/molecules/DatePicker/constants.js +3 -0
- package/molecules/DatePicker/index.js +3 -0
- package/molecules/DatePickerTime/DatePickerTime.js +133 -0
- package/molecules/DatePickerTime/DatePickerTime.module.css +3 -0
- package/molecules/DatePickerTime/DatePickerTime.stories.js +18 -0
- package/molecules/DatePickerTime/constants.js +1 -0
- package/molecules/DatePickerTime/index.js +3 -0
- package/molecules/Dropdown/Dropdown.js +26 -23
- package/molecules/Dropdown/Dropdown.module.css +21 -3
- package/molecules/DynamicSelect/DynamicSelect.js +186 -0
- package/molecules/DynamicSelect/DynamicSelect.module.css +10 -0
- package/molecules/DynamicSelect/DynamicSelect.stories.js +32 -0
- package/molecules/DynamicSelect/constants.js +7 -0
- package/molecules/DynamicSelect/index.js +3 -0
- package/molecules/Error/Error.js +2 -2
- package/molecules/Error/Error.module.css +3 -2
- package/molecules/FooterTable/FooterTable.js +166 -0
- package/molecules/FooterTable/FooterTable.module.css +63 -0
- package/molecules/FooterTable/FooterTable.stories.js +23 -0
- package/molecules/FooterTable/constants.js +9 -0
- package/molecules/FooterTable/index.js +3 -0
- package/molecules/InputAutocomplete/InputAutocomplete.js +221 -0
- package/molecules/InputAutocomplete/InputAutocomplete.module.css +55 -0
- package/molecules/InputAutocomplete/InputAutocomplete.stories.js +23 -0
- package/molecules/InputAutocomplete/constants.js +1 -0
- package/molecules/InputAutocomplete/index.js +3 -0
- package/molecules/ItemMenu/ItemMenu.js +134 -0
- package/molecules/ItemMenu/ItemMenu.module.css +363 -0
- package/molecules/ItemMenu/ItemMenu.stories.js +42 -0
- package/molecules/ItemMenu/constants.js +36 -0
- package/molecules/ItemMenu/index.js +3 -0
- package/molecules/RowTable/RowTable.js +928 -0
- package/molecules/RowTable/RowTable.module.css +63 -0
- package/molecules/RowTable/RowTable.stories.js +26 -0
- package/molecules/RowTable/constants.js +798 -0
- package/molecules/RowTable/index.js +3 -0
- package/molecules/Tabs/Tabs.js +59 -0
- package/molecules/Tabs/Tabs.module.css +13 -0
- package/molecules/Tabs/Tabs.stories.js +34 -0
- package/molecules/Tabs/constants.js +34 -0
- package/molecules/Tabs/index.js +3 -0
- package/package.json +34 -17
- package/pages/Login/Login.js +102 -0
- package/pages/Login/Login.module.css +5 -0
- package/pages/Login/Login.stories.js +23 -0
- package/pages/Login/constants.js +1 -0
- package/pages/Login/index.js +3 -0
- package/pages/Login/validation/loginSchema.js +5 -0
- package/public/favicon.ico +0 -0
- package/public/static/google-maps.png +0 -0
- package/public/static/images/folders-folder.svg +26 -0
- package/public/static/images/permissions.svg +14 -0
- package/public/static/images/reports-results.svg +18 -0
- package/public/static/logo.svg +19 -0
- package/public/static/logologin.png +0 -0
- package/public/static/logologin.svg +16 -0
- package/public/static/logologintagos.svg +19 -0
- package/public/static/logotipo.svg +50 -0
- package/public/static/logotipoS.svg +26 -0
- package/public/static/taxisvalencia_logod.png +0 -0
- package/scripts/create-component.js +2 -1
- package/styles/GrupoMutua.css +391 -0
- package/styles/default.css +391 -0
- package/styles/globals.css +1514 -0
- package/styles/radiotaxiaragon.css +391 -0
- package/styles/spartan.css +391 -0
- package/styles/tagos.css +391 -0
- package/styles/taxisvalencia.css +391 -0
- package/styles/tokens.css +2 -1
- package/tokens/index.js +2 -1
- package/.eslintcache +0 -1
- package/atoms/Link/Link.js +0 -33
- package/atoms/Link/index.js +0 -3
- /package/atoms/{Link → LinkItem}/__snapshots__/Link.stories.js.snap +0 -0
- /package/atoms/{Link → LinkItem}/constants.js +0 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './CardDefault.module.css'
|
5
|
+
import { options } from './constants'
|
6
|
+
import withStyles from '../../hocs/withStyles'
|
7
|
+
import Button from '../../atoms/Button'
|
8
|
+
import Paragraph from '../../atoms/Paragraph'
|
9
|
+
import Spacer from '../../layout/Spacer'
|
10
|
+
|
11
|
+
|
12
|
+
export const CardDefault = ({ children, titleCardDefault, titleBtnCardDefault, typeBtnCardDefault, onClickBtnCardDefault, getStyles }) => {
|
13
|
+
|
14
|
+
|
15
|
+
return <div className={getStyles('card-default')}>
|
16
|
+
|
17
|
+
|
18
|
+
<div className={getStyles('card-default-title')}>
|
19
|
+
{titleCardDefault}
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div className={getStyles('card-default-content')}>
|
23
|
+
{children}
|
24
|
+
<Spacer.Vertical size="md" />
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div className={getStyles('card-default-actions')}>
|
28
|
+
|
29
|
+
<Button
|
30
|
+
id='idBtnCardDefault'
|
31
|
+
onClick={onClickBtnCardDefault}
|
32
|
+
type={typeBtnCardDefault}
|
33
|
+
>
|
34
|
+
{titleBtnCardDefault}
|
35
|
+
</Button>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
</div>
|
42
|
+
}
|
43
|
+
|
44
|
+
CardDefault.propTypes = {
|
45
|
+
children: PropTypes.node.isRequired,
|
46
|
+
titleCardDefault: PropTypes.string.isRequired,
|
47
|
+
titleBtnCardDefault: PropTypes.string.isRequired,
|
48
|
+
typeBtnCardDefault: PropTypes.string.isRequired,
|
49
|
+
onClickBtnCardDefault: PropTypes.func,
|
50
|
+
getStyles: PropTypes.func.isRequired,
|
51
|
+
// type: PropTypes.oneOf(options.types),
|
52
|
+
}
|
53
|
+
|
54
|
+
// const renderValue = () => <Paragraph isCentered size="lg" weight="semibold"> 20 EUR </Paragraph>
|
55
|
+
|
56
|
+
CardDefault.defaultProps = {
|
57
|
+
children: <Paragraph isCentered size="lg" weight="semibold"> 20 EUR </Paragraph>,
|
58
|
+
titleCardDefault: 'Saldo actual',
|
59
|
+
typeBtnCardDefault: 'primary',
|
60
|
+
titleBtnCardDefault: '+ Añadir fondos',
|
61
|
+
onClickBtnCardDefault: () => { },
|
62
|
+
getStyles: () => { },
|
63
|
+
}
|
64
|
+
|
65
|
+
export default withStyles(styles)(CardDefault)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.card-default {
|
2
|
+
text-align: center;
|
3
|
+
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%);
|
4
|
+
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
5
|
+
display: block;
|
6
|
+
position: relative;
|
7
|
+
padding: 16px;
|
8
|
+
border-radius: 4px;
|
9
|
+
background: white;
|
10
|
+
color: rgba(0, 0, 0, 0.87);
|
11
|
+
height: 100%;
|
12
|
+
}
|
13
|
+
|
14
|
+
.card-default-title {
|
15
|
+
font-weight: 400;
|
16
|
+
font-size: 18px;
|
17
|
+
letter-spacing: -0.03em;
|
18
|
+
margin: 0 0 16px;
|
19
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { CardDefault, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(CardDefault, styles)
|
10
|
+
const ListTemplate = getListTemplate(CardDefault, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Molecules/CardDefault',
|
14
|
+
component: CardDefault,
|
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: [] }
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './CardProductTypesBooking.module.css'
|
5
|
+
import { options } from './constants'
|
6
|
+
import withStyles from '../../hocs/withStyles'
|
7
|
+
import Picture from '../../atoms/Picture'
|
8
|
+
import { Horizontal, Vertical } from '../../layout/Spacer/components'
|
9
|
+
|
10
|
+
export const CardProductTypesBooking = ({
|
11
|
+
srcImg,
|
12
|
+
onClick,
|
13
|
+
textNotification,
|
14
|
+
textProductTypes,
|
15
|
+
textEtaProductTypesSub,
|
16
|
+
textDescription,
|
17
|
+
priceProductTypes,
|
18
|
+
priceProductTypesSub,
|
19
|
+
selectCard,
|
20
|
+
availableCard,
|
21
|
+
getStyles
|
22
|
+
}) => {
|
23
|
+
return <div className={getStyles('card-product-types-booking', { 'selectCard': selectCard }, { 'availableCard': !availableCard })} onClick={availableCard ? onClick : null}>
|
24
|
+
|
25
|
+
<div className={getStyles('labelNotification')}>
|
26
|
+
{textNotification}
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div className={getStyles('card-product-content')}>
|
30
|
+
|
31
|
+
<div className={getStyles('card-product-img')}>
|
32
|
+
<Picture
|
33
|
+
src={srcImg}
|
34
|
+
width={70}
|
35
|
+
// height={100}
|
36
|
+
/>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<Horizontal size="lg" />
|
40
|
+
|
41
|
+
<div class={getStyles('contentInfo')}>
|
42
|
+
<div className={getStyles('titleCardProductTypes')}>{textProductTypes}</div>
|
43
|
+
<div className={getStyles('etaCardProductTypesSub')}>{textEtaProductTypesSub}</div>
|
44
|
+
<div className={getStyles('titleCardProductTypesSub')}>{textDescription}</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<Horizontal size="md" />
|
48
|
+
|
49
|
+
<div class={getStyles('contentPrice')}>
|
50
|
+
<div class={getStyles('priceCardProductTypes')}>{priceProductTypes}</div>
|
51
|
+
<div class={getStyles('priceCardProductTypesSub')}>{priceProductTypesSub}</div>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<Horizontal size="md" />
|
55
|
+
|
56
|
+
</div>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
}
|
60
|
+
|
61
|
+
CardProductTypesBooking.propTypes = {
|
62
|
+
onClick: PropTypes.func,
|
63
|
+
srcImg: PropTypes.string,
|
64
|
+
textNotification: PropTypes.string,
|
65
|
+
textProductTypes: PropTypes.string,
|
66
|
+
textEtaProductTypesSub: PropTypes.string,
|
67
|
+
textDescription: PropTypes.string,
|
68
|
+
priceProductTypes: PropTypes.string,
|
69
|
+
priceProductTypesSub: PropTypes.string,
|
70
|
+
selectCard: PropTypes.bool,
|
71
|
+
availableCard: PropTypes.bool,
|
72
|
+
getStyles: PropTypes.func.isRequired,
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
CardProductTypesBooking.defaultProps = {
|
77
|
+
getStyles: () => { },
|
78
|
+
onClick: () => { },
|
79
|
+
textNotification: 'Reserve 2 h antes de la salida de su vuelo si es nacional, 3 h antes si es internacional.',
|
80
|
+
textProductTypes: 'ECO (Tarifa máxima)',
|
81
|
+
textEtaProductTypesSub: '4 - 8 min.',
|
82
|
+
textDescription: 'Envío urgente de sobres y paquetes pequeños con taxi.',
|
83
|
+
priceProductTypes: '30€ - 30€',
|
84
|
+
priceProductTypesSub: 'Máx.',
|
85
|
+
selectCard: 'false',
|
86
|
+
availableCard: 'false'
|
87
|
+
}
|
88
|
+
|
89
|
+
export default withStyles(styles)(CardProductTypesBooking)
|
@@ -0,0 +1,118 @@
|
|
1
|
+
.card-product-types-booking {
|
2
|
+
width: 100%;
|
3
|
+
align-items: center;
|
4
|
+
padding: 10px;
|
5
|
+
border: var(--border-width-thin) solid var(--color-base-transparent);
|
6
|
+
border-radius: var(--card-border-radius);
|
7
|
+
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%);
|
8
|
+
color: var(--color-font-base);
|
9
|
+
transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);
|
10
|
+
background-color: #fff;
|
11
|
+
margin: 0;
|
12
|
+
cursor: pointer;
|
13
|
+
max-width: 100%;
|
14
|
+
min-width: 100%;
|
15
|
+
margin-bottom: 10px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.labelNotification {
|
19
|
+
font-size: 12px;
|
20
|
+
color: #fff;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
padding: 8px 8px 4px;
|
24
|
+
line-height: 13px;
|
25
|
+
border-radius: 10px;
|
26
|
+
margin-bottom: 6px;
|
27
|
+
background-color: rgb(245, 166, 35);
|
28
|
+
}
|
29
|
+
|
30
|
+
.card-product-content {
|
31
|
+
flex-direction: row;
|
32
|
+
box-sizing: border-box;
|
33
|
+
display: flex;
|
34
|
+
place-content: center start;
|
35
|
+
align-items: center;
|
36
|
+
}
|
37
|
+
|
38
|
+
.card-product-img {
|
39
|
+
max-width: 70px;
|
40
|
+
min-width: 70px;
|
41
|
+
}
|
42
|
+
|
43
|
+
.titleCardProductTypes {
|
44
|
+
color: rgba(0, 0, 0, .87);
|
45
|
+
font-size: 16px;
|
46
|
+
}
|
47
|
+
|
48
|
+
.etaCardProductTypesSub {
|
49
|
+
color: #777;
|
50
|
+
font-size: 12px;
|
51
|
+
line-height: 1rem;
|
52
|
+
}
|
53
|
+
|
54
|
+
.titleCardProductTypesSub {
|
55
|
+
color: #9f9f9f;
|
56
|
+
font-size: 12px;
|
57
|
+
line-height: 1rem;
|
58
|
+
}
|
59
|
+
|
60
|
+
.contentPrice {
|
61
|
+
min-width: 100px;
|
62
|
+
}
|
63
|
+
|
64
|
+
.contentInfo {
|
65
|
+
width: 100%;
|
66
|
+
}
|
67
|
+
|
68
|
+
.priceCardProductTypes {
|
69
|
+
color: #00205b;
|
70
|
+
font-size: 18px;
|
71
|
+
text-align: right;
|
72
|
+
line-height: 1.1rem;
|
73
|
+
}
|
74
|
+
|
75
|
+
.priceCardProductTypesSub {
|
76
|
+
color: #9f9f9f;
|
77
|
+
font-size: 11px;
|
78
|
+
text-align: right;
|
79
|
+
line-height: .9rem;
|
80
|
+
}
|
81
|
+
|
82
|
+
.selectCard {
|
83
|
+
border-top: 4px solid #39b54a;
|
84
|
+
border-bottom: 4px solid #00a3ff;
|
85
|
+
border-left: 1px solid #39b54a;
|
86
|
+
border-right: 1px solid #00a3ff;
|
87
|
+
-webkit-box-sizing: border-box;
|
88
|
+
-moz-box-sizing: border-box;
|
89
|
+
box-sizing: border-box;
|
90
|
+
background-position: 0 0, 100% 0;
|
91
|
+
background-repeat: no-repeat;
|
92
|
+
-webkit-background-size: 4px 100%;
|
93
|
+
-moz-background-size: 4px 100%;
|
94
|
+
background-size: 4px 100%;
|
95
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMzYWNmZDUiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzNhNGVkNSIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=),url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMzYWNmZDUiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzNhNGVkNSIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);
|
96
|
+
background-image: -webkit-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -webkit-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
97
|
+
background-image: -moz-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -moz-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
98
|
+
background-image: -o-linear-gradient(top, #39b54a 0%, #00a3ff 100%), -o-linear-gradient(top, #39b54a 0%, #00a3ff 100%);
|
99
|
+
background-image: linear-gradient(to bottom, #39b54a 0%, #00a3ff 100%), linear-gradient(to bottom, #39b54a 0%, #00a3ff 100%);
|
100
|
+
}
|
101
|
+
|
102
|
+
.availableCard {
|
103
|
+
cursor: no-drop;
|
104
|
+
opacity: .4;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* .selectCard:before {
|
108
|
+
content: '';
|
109
|
+
position: absolute;
|
110
|
+
top: 0;
|
111
|
+
right: 0;
|
112
|
+
bottom: 0;
|
113
|
+
left: 0;
|
114
|
+
z-index: -1;
|
115
|
+
margin: 4px;
|
116
|
+
border-radius: inherit;
|
117
|
+
background: linear-gradient(to left, #39b54a, #00a3ff);
|
118
|
+
} */
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { CardProductTypesBooking, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(CardProductTypesBooking, styles)
|
10
|
+
const ListTemplate = getListTemplate(CardProductTypesBooking, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Molecules/CardProductTypesBooking',
|
14
|
+
component: CardProductTypesBooking,
|
15
|
+
args: {
|
16
|
+
srcImg: 'https://resources.callcenter.cab/img/products/imbric_Taxi_White Block.png',
|
17
|
+
},
|
18
|
+
argTypes: {
|
19
|
+
types: getOptionsArgTypes(options.types),
|
20
|
+
},
|
21
|
+
}
|
22
|
+
|
23
|
+
export const Default = Template.bind({})
|
24
|
+
export const List = ListTemplate.bind({})
|
25
|
+
List.args = { items: options.types.map((type) => ({ type })) }
|
@@ -0,0 +1 @@
|
|
1
|
+
export const options = { types: [] }
|