imbric-theme 0.4.5 → 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 +4 -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/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
package/Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
FROM node:18-alpine
|
2
|
+
|
3
|
+
## set environment stage
|
4
|
+
ENV PATH /app/node_modules/.bin:$PATH
|
5
|
+
ENV NODE_OPTIONS --openssl-legacy-provider
|
6
|
+
WORKDIR /app
|
7
|
+
COPY . /app/
|
8
|
+
|
9
|
+
## build app stage
|
10
|
+
RUN yarn install --network-timeout 200000 \
|
11
|
+
&& yarn add next@11 react@18 react-dom@18 --network-timeout 200000 \
|
12
|
+
&& yarn build
|
13
|
+
|
14
|
+
## final image stage
|
15
|
+
FROM nginx:alpine
|
16
|
+
COPY --from=0 /app/storybook-static/ /usr/share/nginx/html/
|
17
|
+
|
18
|
+
EXPOSE 80
|
@@ -30,7 +30,7 @@ export const Checkbox = ({ getStyles, onChange, label, id, value, name, linkChec
|
|
30
30
|
id={id}
|
31
31
|
name={name}
|
32
32
|
label={label}
|
33
|
-
|
33
|
+
checked={value}
|
34
34
|
onChange={onChange}
|
35
35
|
/>
|
36
36
|
<label htmlFor={name} className={getStyles('checkbox-custom-label')}>{label}<a className={getStyles('checkbox-custom-link')} href={linkCheck} target="_black"> {nameLinkCheck}</a> </label>
|
package/atoms/Icon/constants.js
CHANGED
@@ -879,8 +879,61 @@ export const iconsMap = {
|
|
879
879
|
</>
|
880
880
|
),
|
881
881
|
},
|
882
|
-
|
883
|
-
|
882
|
+
distance: {
|
883
|
+
viewBox: '0 0 24 24',
|
884
|
+
svg: (
|
885
|
+
<>
|
886
|
+
<circle cx="7.5" cy="6.5" r="1.5" />
|
887
|
+
<circle cx="16.5" cy="15.5" r="1.5" />
|
888
|
+
<path d="M11.4,10.4c2.1-2.1,2.1-5.6,0-7.8c-2.1-2.1-5.6-2.1-7.8,0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2,0.5-0.5,0.5H2.4c-0.3,0-0.5-0.2-0.5-0.5V8
|
904
|
+
c0-0.3,0.2-0.5,0.5-0.5h19.2c0.3,0,0.5,0.2,0.5,0.5V11.5z"/>
|
905
|
+
</>
|
906
|
+
),
|
907
|
+
},
|
908
|
+
price: {
|
909
|
+
viewBox: '0 0 24 24',
|
910
|
+
svg: (
|
911
|
+
<>
|
912
|
+
<path class="st0" d="M18.4,8.8c0.9-0.9,0.9-2.3,0-3.2c-0.9-0.9-2.3-0.9-3.2,0c-0.9,0.9-0.9,2.3,0,3.2C16.1,9.7,17.6,9.7,18.4,8.8z
|
913
|
+
M17.5,6.5c0.4,0.4,0.4,1,0,1.3c-0.4,0.4-1,0.4-1.3,0c-0.4-0.4-0.4-1,0-1.3C16.5,6.1,17.1,6.1,17.5,6.5z"/>
|
914
|
+
<path class="st0" d="M1.5,12c-0.7,0.7-0.7,1.7,0,2.4l8.1,8.1c0.7,0.7,1.7,0.7,2.4,0L22.5,12c0.3-0.3,0.5-0.7,0.5-1.2V2.7
|
915
|
+
C23,1.8,22.2,1,21.3,1h-8.1c-0.4,0-0.9,0.2-1.2,0.5L1.5,12z M11.4,20.7c-0.3,0.3-0.9,0.3-1.2,0l-6.9-6.9c-0.3-0.3-0.3-0.9,0-1.2
|
916
|
+
l9.6-9.6c0.2-0.2,0.4-0.2,0.6-0.2h6.9c0.5,0,0.8,0.4,0.8,0.8v6.9c0,0.2-0.1,0.4-0.2,0.6L11.4,20.7z"/>
|
917
|
+
</>
|
918
|
+
),
|
919
|
+
},
|
920
|
+
messageDriver: {
|
921
|
+
viewBox: '0 0 24 24',
|
922
|
+
svg: (
|
923
|
+
<>
|
924
|
+
<g>
|
925
|
+
<g>
|
926
|
+
<path d="M0,3.4v17.2h24V3.4H0z M22,5.2l-10,8.3L2,5.2H22z M22.2,18.8H1.8V7.5L12,16l10.2-8.5V18.8z" />
|
927
|
+
</g>
|
928
|
+
</g>
|
929
|
+
<g>
|
930
|
+
<g>
|
931
|
+
<rect x="17.2" y="15.1" width="3.1" height="1.8" />
|
932
|
+
</g>
|
933
|
+
</g>
|
934
|
+
</>
|
935
|
+
),
|
936
|
+
},
|
884
937
|
|
885
938
|
}
|
886
939
|
|
package/atoms/Input/Input.js
CHANGED
@@ -27,7 +27,7 @@ export const Input = ({
|
|
27
27
|
onClick,
|
28
28
|
onKeyDown,
|
29
29
|
placeholder,
|
30
|
-
|
30
|
+
autoComplete,
|
31
31
|
disabled,
|
32
32
|
isViewIcon,
|
33
33
|
idIcon,
|
@@ -70,7 +70,7 @@ export const Input = ({
|
|
70
70
|
onBlur={onBlur}
|
71
71
|
onClick={onClick}
|
72
72
|
onKeyDown={onKeyDown}
|
73
|
-
|
73
|
+
autoComplete={autoComplete}
|
74
74
|
disabled={disabled}
|
75
75
|
></input>
|
76
76
|
|
@@ -92,7 +92,7 @@ export const Input = ({
|
|
92
92
|
onBlur={onBlur}
|
93
93
|
onClick={onClick}
|
94
94
|
onKeyDown={onKeyDown}
|
95
|
-
|
95
|
+
autoComplete={autoComplete}
|
96
96
|
disabled={disabled}
|
97
97
|
></input>
|
98
98
|
|
@@ -122,7 +122,7 @@ Input.propTypes = {
|
|
122
122
|
sizeIcon: PropTypes.string,
|
123
123
|
colorIcon: PropTypes.string,
|
124
124
|
backgroundIcon: PropTypes.string,
|
125
|
-
|
125
|
+
autoComplete: PropTypes.string,
|
126
126
|
disabled: PropTypes.bool,
|
127
127
|
}
|
128
128
|
|
@@ -147,7 +147,7 @@ Input.defaultProps = {
|
|
147
147
|
sizeIcon: 'md',
|
148
148
|
colorIcon: 'highlight',
|
149
149
|
backgroundIcon: 'base',
|
150
|
-
|
150
|
+
autoComplete: 'on',
|
151
151
|
disabled: false
|
152
152
|
}
|
153
153
|
|
package/atoms/Input/constants.js
CHANGED
@@ -0,0 +1,56 @@
|
|
1
|
+
import React, { useState } from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './Toggle.module.css'
|
5
|
+
import { options } from './constants'
|
6
|
+
import withStyles from '../../hocs/withStyles'
|
7
|
+
|
8
|
+
export const Toggle = ({ getStyles, onChangeCheckbox, value, id, checked, name }) => {
|
9
|
+
|
10
|
+
const [isChecked, setIsChecked] = useState(false);
|
11
|
+
|
12
|
+
const handleOnChange = () => {
|
13
|
+
setIsChecked(!isChecked)
|
14
|
+
};
|
15
|
+
|
16
|
+
|
17
|
+
return <div className={getStyles('toggle')}>
|
18
|
+
|
19
|
+
<input
|
20
|
+
type="checkbox"
|
21
|
+
id={id}
|
22
|
+
name={name}
|
23
|
+
value={value}
|
24
|
+
checked={isChecked || checked}
|
25
|
+
onChange={(e) => {
|
26
|
+
handleOnChange()
|
27
|
+
onChangeCheckbox()
|
28
|
+
}}
|
29
|
+
className={getStyles('toggle-item')}
|
30
|
+
/>
|
31
|
+
<label htmlFor={id} className={getStyles('checkbox-custom-label')} for={id}></label>
|
32
|
+
|
33
|
+
|
34
|
+
</div>
|
35
|
+
}
|
36
|
+
|
37
|
+
Toggle.propTypes = {
|
38
|
+
getStyles: PropTypes.func.isRequired,
|
39
|
+
onChangeCheckbox: PropTypes.func.isRequired,
|
40
|
+
id: PropTypes.string.isRequired,
|
41
|
+
name: PropTypes.string.isRequired,
|
42
|
+
checked: PropTypes.bool.isRequired,
|
43
|
+
value: PropTypes.string,
|
44
|
+
}
|
45
|
+
|
46
|
+
Toggle.defaultProps = {
|
47
|
+
getStyles: () => { },
|
48
|
+
onChangeCheckbox: () => { },
|
49
|
+
id: 'toggle',
|
50
|
+
name: 'toggle',
|
51
|
+
checked: false,
|
52
|
+
value: 'Hola',
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
export default withStyles(styles)(Toggle)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.toggle {
|
2
|
+
display: flex;
|
3
|
+
}
|
4
|
+
|
5
|
+
.toggle-item {
|
6
|
+
opacity: 0;
|
7
|
+
width: 3em;
|
8
|
+
height: 1.4em;
|
9
|
+
position: absolute;
|
10
|
+
z-index: 1;
|
11
|
+
cursor: pointer;
|
12
|
+
}
|
13
|
+
.toggle-item + .checkbox-custom-label {
|
14
|
+
display: flex;
|
15
|
+
width: 4em;
|
16
|
+
height: 2em;
|
17
|
+
background: #aaa;
|
18
|
+
border-radius: 50px;
|
19
|
+
position: relative;
|
20
|
+
transition: all .3s ease;
|
21
|
+
cursor: pointer;
|
22
|
+
box-shadow: inset 0 0 5px #222;
|
23
|
+
}
|
24
|
+
.toggle-item + .checkbox-custom-label:after {
|
25
|
+
content: '';
|
26
|
+
position: absolute;
|
27
|
+
width: 1.5em;
|
28
|
+
height: 1.5em;
|
29
|
+
background: #fff;
|
30
|
+
border-radius: 50%;
|
31
|
+
top: .25em;
|
32
|
+
left: .25em;
|
33
|
+
transition: all .2s ease;
|
34
|
+
}
|
35
|
+
.toggle-item:checked + .checkbox-custom-label {
|
36
|
+
background: var(--color-tertiary);
|
37
|
+
box-shadow: inset 0 0 5px rgb(95, 95, 95);
|
38
|
+
}
|
39
|
+
.toggle-item:checked + .checkbox-custom-label:after {
|
40
|
+
left: 2.3em;
|
41
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Toggle, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(Toggle, styles)
|
10
|
+
const ListTemplate = getListTemplate(Toggle, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Atoms/Toggle',
|
14
|
+
component: Toggle,
|
15
|
+
args: {},
|
16
|
+
argTypes: {
|
17
|
+
// types: getOptionsArgTypes(options.types),
|
18
|
+
},
|
19
|
+
}
|
20
|
+
|
21
|
+
export const Default = Template.bind({})
|
@@ -0,0 +1 @@
|
|
1
|
+
export const options = { types: [] }
|
package/index.js
CHANGED
@@ -25,17 +25,21 @@ export { default as Icon } from './atoms/Icon'
|
|
25
25
|
export { default as Input } from './atoms/Input'
|
26
26
|
export { default as Label } from './atoms/Label'
|
27
27
|
export { default as LinkItem } from './atoms/LinkItem'
|
28
|
+
export { default as Loading } from './atoms/Loading'
|
28
29
|
export { default as Modal } from './atoms/Modal'
|
29
30
|
export { default as Paragraph } from './atoms/Paragraph'
|
30
31
|
export { default as Picture } from './atoms/Picture'
|
31
32
|
export { default as Textarea } from './atoms/Textarea'
|
32
33
|
export { default as Tab } from './atoms/Tab'
|
34
|
+
export { default as Toggle } from './atoms/Toggle'
|
35
|
+
|
33
36
|
|
34
37
|
|
35
38
|
// Molecules
|
36
39
|
export { default as Accordion } from './molecules/Accordion'
|
37
40
|
export { default as AddButton } from './molecules/AddButton'
|
38
41
|
export { default as ButtonIcon } from './molecules/ButtonIcon'
|
42
|
+
export { default as CardServiceDetail } from './molecules/CardServiceDetail'
|
39
43
|
export { default as CardServices } from './molecules/CardServices'
|
40
44
|
export { default as CardProductTypesBooking } from './molecules/CardProductTypesBooking'
|
41
45
|
export { default as Dropdown } from './molecules/Dropdown'
|
@@ -35,21 +35,23 @@ export const CardProductTypesBooking = ({
|
|
35
35
|
/>
|
36
36
|
</div>
|
37
37
|
|
38
|
-
<Horizontal size="
|
38
|
+
<Horizontal size="lg" />
|
39
39
|
|
40
|
-
<div>
|
40
|
+
<div class={getStyles('contentInfo')}>
|
41
41
|
<div className={getStyles('titleCardProductTypes')}>{textProductTypes}</div>
|
42
42
|
<div className={getStyles('etaCardProductTypesSub')}>{textEtaProductTypesSub}</div>
|
43
43
|
<div className={getStyles('titleCardProductTypesSub')}>{textDescription}</div>
|
44
44
|
</div>
|
45
45
|
|
46
|
-
<Horizontal size="
|
46
|
+
<Horizontal size="md" />
|
47
47
|
|
48
48
|
<div class={getStyles('contentPrice')}>
|
49
49
|
<div class={getStyles('priceCardProductTypes')}>{priceProductTypes}</div>
|
50
50
|
<div class={getStyles('priceCardProductTypesSub')}>{priceProductTypesSub}</div>
|
51
51
|
</div>
|
52
52
|
|
53
|
+
<Horizontal size="md" />
|
54
|
+
|
53
55
|
</div>
|
54
56
|
|
55
57
|
</div>
|