monica-alexandria 3.2.18 → 3.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +39 -39
- package/dist/index.js +118 -118
- package/package.json +1 -1
- package/src/export/components/button/Cta_.js +2 -2
- package/src/export/components/button/Delete_Plain.js +7 -7
- package/src/export/components/button/Edit_.js +1 -1
- package/src/export/components/button/Focus_.js +7 -7
- package/src/export/components/button/Focus_Plain.js +7 -7
- package/src/export/components/button/Grey_.js +7 -7
- package/src/export/components/button/Grey_Link.js +7 -7
- package/src/export/components/button/Main_.js +7 -7
- package/src/export/components/button/Main_Plain.js +7 -7
- package/src/export/components/button/White_Plain.js +7 -7
- package/src/export/components/confirmation/Confirmation_.js +4 -4
- package/src/export/components/form/Input_.js +5 -5
- package/src/export/components/nav/Nav_Mid.js +2 -2
- package/src/export/components/nav/Nav_Protected.js +2 -2
- package/src/export/components/nav/Nav_Unprotected.js +4 -4
- package/src/export/components/slider/Slider_.js +5 -5
- package/src/export/components/steps/Steps_Actions.js +4 -4
- package/src/export/helpers/Button.js +6 -6
- package/src/stories/slider/Slider.stories.jsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.21",
|
|
4
4
|
"description": "A styled-components styles library for Doitforme platorm and universal tweeks to create your own new styled library for your project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -17,8 +17,8 @@ const Cta = styled(Button)`
|
|
|
17
17
|
|
|
18
18
|
export const Cta_ = (props) => {
|
|
19
19
|
return (
|
|
20
|
-
<Cta
|
|
21
|
-
<span>{props.
|
|
20
|
+
<Cta size={props.size} onClick={props.onClick}>
|
|
21
|
+
<span>{props.text}</span>
|
|
22
22
|
</Cta>
|
|
23
23
|
)
|
|
24
24
|
}
|
|
@@ -29,19 +29,19 @@ const DeletePlain = styled(Button)`
|
|
|
29
29
|
|
|
30
30
|
export const Delete_Plain = (props) => {
|
|
31
31
|
return (
|
|
32
|
-
<DeletePlain className={props.className} noPadding={props.noPadding}
|
|
33
|
-
{props.
|
|
34
|
-
<IconSvg Icon={props.
|
|
32
|
+
<DeletePlain className={props.className} noPadding={props.noPadding} size={props.size} onClick={props.onClick}>
|
|
33
|
+
{props.svgLeft ?
|
|
34
|
+
<IconSvg Icon={props.svgLeft} />
|
|
35
35
|
:
|
|
36
36
|
null
|
|
37
37
|
}
|
|
38
|
-
{props.
|
|
39
|
-
<span>{props.
|
|
38
|
+
{props.text ?
|
|
39
|
+
<span>{props.text}</span>
|
|
40
40
|
:
|
|
41
41
|
null
|
|
42
42
|
}
|
|
43
|
-
{props.
|
|
44
|
-
<IconSvg Icon={props.
|
|
43
|
+
{props.svgRight ?
|
|
44
|
+
<IconSvg Icon={props.svgRight} />
|
|
45
45
|
:
|
|
46
46
|
null
|
|
47
47
|
}
|
|
@@ -23,19 +23,19 @@ const Focus = styled(Button)`
|
|
|
23
23
|
|
|
24
24
|
export const Focus_ = (props) => {
|
|
25
25
|
return (
|
|
26
|
-
<Focus
|
|
27
|
-
{props.
|
|
28
|
-
<IconSvg Icon={props.
|
|
26
|
+
<Focus size = {props.size} onClick={props.onClick}>
|
|
27
|
+
{props.svgLeft ?
|
|
28
|
+
<IconSvg Icon={props.svgLeft} />
|
|
29
29
|
:
|
|
30
30
|
null
|
|
31
31
|
}
|
|
32
|
-
{props.
|
|
33
|
-
<span>{props.
|
|
32
|
+
{props.text ?
|
|
33
|
+
<span>{props.text}</span>
|
|
34
34
|
:
|
|
35
35
|
null
|
|
36
36
|
}
|
|
37
|
-
{props.
|
|
38
|
-
<IconSvg Icon={props.
|
|
37
|
+
{props.svgRight ?
|
|
38
|
+
<IconSvg Icon={props.svgRight} />
|
|
39
39
|
:
|
|
40
40
|
null
|
|
41
41
|
}
|
|
@@ -29,19 +29,19 @@ const FocusPlain = styled(Button)`
|
|
|
29
29
|
|
|
30
30
|
export const Focus_Plain = (props) => {
|
|
31
31
|
return (
|
|
32
|
-
<FocusPlain
|
|
33
|
-
{props.
|
|
34
|
-
<IconSvg Icon={props.
|
|
32
|
+
<FocusPlain size = {props.size} onClick={props.onClick} onFocus={props.onFocus}>
|
|
33
|
+
{props.svgLeft ?
|
|
34
|
+
<IconSvg Icon={props.svgLeft} />
|
|
35
35
|
:
|
|
36
36
|
null
|
|
37
37
|
}
|
|
38
|
-
{props.
|
|
39
|
-
<span>{props.
|
|
38
|
+
{props.text ?
|
|
39
|
+
<span>{props.text}</span>
|
|
40
40
|
:
|
|
41
41
|
null
|
|
42
42
|
}
|
|
43
|
-
{props.
|
|
44
|
-
<IconSvg Icon={props.
|
|
43
|
+
{props.svgRight ?
|
|
44
|
+
<IconSvg Icon={props.svgRight} />
|
|
45
45
|
:
|
|
46
46
|
null
|
|
47
47
|
}
|
|
@@ -24,19 +24,19 @@ const Grey = styled(Button)`
|
|
|
24
24
|
|
|
25
25
|
export const Grey_ = (props) => {
|
|
26
26
|
return (
|
|
27
|
-
<Grey
|
|
28
|
-
{props.
|
|
29
|
-
<IconSvg Icon={props.
|
|
27
|
+
<Grey size={props.size} onClick={props.onClick}>
|
|
28
|
+
{props.svgLeft ?
|
|
29
|
+
<IconSvg Icon={props.svgLeft} />
|
|
30
30
|
:
|
|
31
31
|
null
|
|
32
32
|
}
|
|
33
|
-
{props.
|
|
34
|
-
<span>{props.
|
|
33
|
+
{props.text ?
|
|
34
|
+
<span>{props.text}</span>
|
|
35
35
|
:
|
|
36
36
|
null
|
|
37
37
|
}
|
|
38
|
-
{props.
|
|
39
|
-
<IconSvg Icon={props.
|
|
38
|
+
{props.svgRight ?
|
|
39
|
+
<IconSvg Icon={props.svgRight} />
|
|
40
40
|
:
|
|
41
41
|
null
|
|
42
42
|
}
|
|
@@ -30,19 +30,19 @@ const GreyLink = styled(Button)`
|
|
|
30
30
|
|
|
31
31
|
export const Grey_Link = (props) => {
|
|
32
32
|
return (
|
|
33
|
-
<GreyLink
|
|
34
|
-
{props.
|
|
35
|
-
<IconSvg Icon={props.
|
|
33
|
+
<GreyLink size={props.size} onClick={props.onClick}>
|
|
34
|
+
{props.svgLeft ?
|
|
35
|
+
<IconSvg Icon={props.svgLeft} />
|
|
36
36
|
:
|
|
37
37
|
null
|
|
38
38
|
}
|
|
39
|
-
{props.
|
|
40
|
-
<span>{props.
|
|
39
|
+
{props.text ?
|
|
40
|
+
<span>{props.text}</span>
|
|
41
41
|
:
|
|
42
42
|
null
|
|
43
43
|
}
|
|
44
|
-
{props.
|
|
45
|
-
<IconSvg Icon={props.
|
|
44
|
+
{props.svgRight ?
|
|
45
|
+
<IconSvg Icon={props.svgRight} />
|
|
46
46
|
:
|
|
47
47
|
null
|
|
48
48
|
}
|
|
@@ -24,19 +24,19 @@ const Main = styled(Button)`
|
|
|
24
24
|
|
|
25
25
|
export const Main_ = (props) => {
|
|
26
26
|
return (
|
|
27
|
-
<Main className={props.className}
|
|
28
|
-
{props.
|
|
29
|
-
<IconSvg Icon={props.
|
|
27
|
+
<Main className={props.className} size={props.size} onClick={props.onClick}>
|
|
28
|
+
{props.svgLeft ?
|
|
29
|
+
<IconSvg Icon={props.svgLeft} />
|
|
30
30
|
:
|
|
31
31
|
null
|
|
32
32
|
}
|
|
33
|
-
{props.
|
|
34
|
-
<span>{props.
|
|
33
|
+
{props.text ?
|
|
34
|
+
<span>{props.text}</span>
|
|
35
35
|
:
|
|
36
36
|
null
|
|
37
37
|
}
|
|
38
|
-
{props.
|
|
39
|
-
<IconSvg Icon={props.
|
|
38
|
+
{props.svgRight ?
|
|
39
|
+
<IconSvg Icon={props.svgRight} />
|
|
40
40
|
:
|
|
41
41
|
null
|
|
42
42
|
}
|
|
@@ -29,19 +29,19 @@ const MainPlain = styled(Button)`
|
|
|
29
29
|
|
|
30
30
|
export const Main_Plain = (props) => {
|
|
31
31
|
return (
|
|
32
|
-
<MainPlain noPadding={props.noPadding}
|
|
33
|
-
{props.
|
|
34
|
-
<IconSvg Icon={props.
|
|
32
|
+
<MainPlain noPadding={props.noPadding} size={props.size} onClick={props.onClick}>
|
|
33
|
+
{props.svgLeft ?
|
|
34
|
+
<IconSvg Icon={props.svgLeft} />
|
|
35
35
|
:
|
|
36
36
|
null
|
|
37
37
|
}
|
|
38
|
-
{props.
|
|
39
|
-
<span>{props.
|
|
38
|
+
{props.text ?
|
|
39
|
+
<span>{props.text}</span>
|
|
40
40
|
:
|
|
41
41
|
null
|
|
42
42
|
}
|
|
43
|
-
{props.
|
|
44
|
-
<IconSvg Icon={props.
|
|
43
|
+
{props.svgRight ?
|
|
44
|
+
<IconSvg Icon={props.svgRight} />
|
|
45
45
|
:
|
|
46
46
|
null
|
|
47
47
|
}
|
|
@@ -29,19 +29,19 @@ const WhitePlain = styled(Button)`
|
|
|
29
29
|
|
|
30
30
|
export const White_Plain = (props) => {
|
|
31
31
|
return (
|
|
32
|
-
<WhitePlain
|
|
33
|
-
{props.
|
|
34
|
-
<IconSvg Icon={props.
|
|
32
|
+
<WhitePlain size={props.size} onClick={props.onClick}>
|
|
33
|
+
{props.svgLeft ?
|
|
34
|
+
<IconSvg Icon={props.svgLeft} />
|
|
35
35
|
:
|
|
36
36
|
null
|
|
37
37
|
}
|
|
38
|
-
{props.
|
|
39
|
-
<span>{props.
|
|
38
|
+
{props.text ?
|
|
39
|
+
<span>{props.text}</span>
|
|
40
40
|
:
|
|
41
41
|
null
|
|
42
42
|
}
|
|
43
|
-
{props.
|
|
44
|
-
<IconSvg Icon={props.
|
|
43
|
+
{props.svgRight ?
|
|
44
|
+
<IconSvg Icon={props.svgRight} />
|
|
45
45
|
:
|
|
46
46
|
null
|
|
47
47
|
}
|
|
@@ -53,13 +53,13 @@ export const Confirmation_ = (props) => {
|
|
|
53
53
|
<ConfirmationActions>
|
|
54
54
|
<Main_
|
|
55
55
|
onClick = {props.onClick_Primary}
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
svgLeft = {props.icon_Primary}
|
|
57
|
+
text = {props.text_Primary}
|
|
58
58
|
/>
|
|
59
59
|
<Main_Plain
|
|
60
60
|
onClick = {props.onClick_Secondary}
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
svgLeft = {props.icon_Secondary}
|
|
62
|
+
text = {props.text_Secondary}
|
|
63
63
|
/>
|
|
64
64
|
</ConfirmationActions>
|
|
65
65
|
</ConfirmationContainer>
|
|
@@ -23,9 +23,9 @@ export const Input_ = (props) => {
|
|
|
23
23
|
<FormLabel>{props.text_Placeholder}</FormLabel>
|
|
24
24
|
{props.variant_List ?
|
|
25
25
|
<Main_
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
size = 'small'
|
|
27
|
+
text = {props.text_AddInput}
|
|
28
|
+
svgLeft = 'Add'
|
|
29
29
|
className = 'FormAddButton'
|
|
30
30
|
onClick = {props.onClick_AddInput}
|
|
31
31
|
/>
|
|
@@ -94,8 +94,8 @@ export const Input_ = (props) => {
|
|
|
94
94
|
<IconSvg Icon={props.icon_List} />
|
|
95
95
|
<h6>{item}</h6>
|
|
96
96
|
<Delete_Plain
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
size = 'small'
|
|
98
|
+
svgLeft = 'Delete'
|
|
99
99
|
/>
|
|
100
100
|
</li>
|
|
101
101
|
)}
|
|
@@ -31,14 +31,14 @@ export const Nav_Unprotected = (props) => {
|
|
|
31
31
|
<NavUnprotected>
|
|
32
32
|
<NavDesktop>
|
|
33
33
|
<Main_Plain
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
size = 'small'
|
|
35
|
+
text = {props.text_Login}
|
|
36
36
|
onClick = {props.onClick_Login}
|
|
37
37
|
/>
|
|
38
38
|
</NavDesktop>
|
|
39
39
|
<Grey_
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
size = 'small'
|
|
41
|
+
svgLeft = 'Ham'
|
|
42
42
|
onClick = {() => setHamState(!hamState)}
|
|
43
43
|
/>
|
|
44
44
|
{hamState ?
|
|
@@ -43,15 +43,15 @@ const SliderContainer = styled.div`
|
|
|
43
43
|
|
|
44
44
|
export const Slider_ = (props) => {
|
|
45
45
|
return (
|
|
46
|
-
<Slider className=
|
|
46
|
+
<Slider className={props.className}>
|
|
47
47
|
<SliderOverlay className='StoryBook_Fix2' onClick = {props.onClick_Close}></SliderOverlay>
|
|
48
48
|
<SliderWrapper>
|
|
49
49
|
<SliderTitle>
|
|
50
|
-
<h3>{props.
|
|
50
|
+
<h3>{props.title}</h3>
|
|
51
51
|
<Main_
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
text = {props.done}
|
|
53
|
+
svgRight = "Check"
|
|
54
|
+
size = 'normal'
|
|
55
55
|
onClick = {props.onClick_Close}
|
|
56
56
|
/>
|
|
57
57
|
</SliderTitle>
|
|
@@ -13,13 +13,13 @@ export const Steps_Actions = (props) => {
|
|
|
13
13
|
return (
|
|
14
14
|
<StepsActions>
|
|
15
15
|
<Grey_
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
svgLeft = {props.icon_Grey}
|
|
17
|
+
text = {props.text_Grey}
|
|
18
18
|
onClick = {props.onClick_Grey}
|
|
19
19
|
/>
|
|
20
20
|
<Main_
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
svgRight = {props.icon_Main}
|
|
22
|
+
text = {props.text_Main}
|
|
23
23
|
onClick = {props.onClick_Main}
|
|
24
24
|
/>
|
|
25
25
|
</StepsActions>
|
|
@@ -11,8 +11,8 @@ export const Button = styled.button`
|
|
|
11
11
|
transition-duration: .5s;
|
|
12
12
|
padding: ${p =>
|
|
13
13
|
p.noPadding === true ? '0 !important' :
|
|
14
|
-
p.
|
|
15
|
-
p.
|
|
14
|
+
p.size === 'small' ? 'var(--smallPads)' :
|
|
15
|
+
p.size === 'large' ? 'var(--largePads)' :
|
|
16
16
|
'var(--normalPads)'
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -20,8 +20,8 @@ export const Button = styled.button`
|
|
|
20
20
|
transition-property: fill;
|
|
21
21
|
transition-duration: .5s;
|
|
22
22
|
width: ${p =>
|
|
23
|
-
p.
|
|
24
|
-
p.
|
|
23
|
+
p.size === 'small' ? 'var(--smallIcon)' :
|
|
24
|
+
p.size === 'large' ? 'var(--largeIcon)' :
|
|
25
25
|
'var(--normalIcon)'
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -31,8 +31,8 @@ export const Button = styled.button`
|
|
|
31
31
|
transition-property: color;
|
|
32
32
|
transition-duration: .5s;
|
|
33
33
|
font-size: ${p =>
|
|
34
|
-
p.
|
|
35
|
-
p.
|
|
34
|
+
p.size === 'small' ? 'var(--smallText)' :
|
|
35
|
+
p.size === 'large' ? 'var(--largeText)' :
|
|
36
36
|
'var(--normalText)'
|
|
37
37
|
};
|
|
38
38
|
}
|