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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monica-alexandria",
3
- "version": "3.2.18",
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 variant_Size={props.variant_Size} onClick={props.onClick}>
21
- <span>{props.text_Button}</span>
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} variant_Size={props.variant_Size} onClick={props.onClick}>
33
- {props.icon_Left ?
34
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
39
- <span>{props.text_Button}</span>
38
+ {props.text ?
39
+ <span>{props.text}</span>
40
40
  :
41
41
  null
42
42
  }
43
- {props.icon_Right ?
44
- <IconSvg Icon={props.icon_Right} />
43
+ {props.svgRight ?
44
+ <IconSvg Icon={props.svgRight} />
45
45
  :
46
46
  null
47
47
  }
@@ -31,7 +31,7 @@ const Edit = styled(Button)`
31
31
 
32
32
  export const Edit_ = (props) => {
33
33
  return (
34
- <Edit variant_Size='normal' onClick={props.onClick}>
34
+ <Edit size='normal' onClick={props.onClick}>
35
35
  <IconSvg Icon={props.icon} />
36
36
  </Edit>
37
37
  )
@@ -23,19 +23,19 @@ const Focus = styled(Button)`
23
23
 
24
24
  export const Focus_ = (props) => {
25
25
  return (
26
- <Focus variant_Size = {props.variant_Size} onClick={props.onClick}>
27
- {props.icon_Left ?
28
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
33
- <span>{props.text_Button}</span>
32
+ {props.text ?
33
+ <span>{props.text}</span>
34
34
  :
35
35
  null
36
36
  }
37
- {props.icon_Right ?
38
- <IconSvg Icon={props.icon_Right} />
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 variant_Size = {props.variant_Size} onClick={props.onClick} onFocus={props.onFocus}>
33
- {props.icon_Left ?
34
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
39
- <span>{props.text_Button}</span>
38
+ {props.text ?
39
+ <span>{props.text}</span>
40
40
  :
41
41
  null
42
42
  }
43
- {props.icon_Right ?
44
- <IconSvg Icon={props.icon_Right} />
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 variant_Size={props.variant_Size} onClick={props.onClick}>
28
- {props.icon_Left ?
29
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
34
- <span>{props.text_Button}</span>
33
+ {props.text ?
34
+ <span>{props.text}</span>
35
35
  :
36
36
  null
37
37
  }
38
- {props.icon_Right ?
39
- <IconSvg Icon={props.icon_Right} />
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 variant_Size={props.variant_Size} onClick={props.onClick}>
34
- {props.icon_Left ?
35
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
40
- <span>{props.text_Button}</span>
39
+ {props.text ?
40
+ <span>{props.text}</span>
41
41
  :
42
42
  null
43
43
  }
44
- {props.icon_Right ?
45
- <IconSvg Icon={props.icon_Right} />
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} variant_Size={props.variant_Size} onClick={props.onClick}>
28
- {props.icon_Left ?
29
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
34
- <span>{props.text_Button}</span>
33
+ {props.text ?
34
+ <span>{props.text}</span>
35
35
  :
36
36
  null
37
37
  }
38
- {props.icon_Right ?
39
- <IconSvg Icon={props.icon_Right} />
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} variant_Size={props.variant_Size} onClick={props.onClick}>
33
- {props.icon_Left ?
34
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
39
- <span>{props.text_Button}</span>
38
+ {props.text ?
39
+ <span>{props.text}</span>
40
40
  :
41
41
  null
42
42
  }
43
- {props.icon_Right ?
44
- <IconSvg Icon={props.icon_Right} />
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 variant_Size={props.variant_Size} onClick={props.onClick}>
33
- {props.icon_Left ?
34
- <IconSvg Icon={props.icon_Left} />
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.text_Button ?
39
- <span>{props.text_Button}</span>
38
+ {props.text ?
39
+ <span>{props.text}</span>
40
40
  :
41
41
  null
42
42
  }
43
- {props.icon_Right ?
44
- <IconSvg Icon={props.icon_Right} />
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
- icon_Left = {props.icon_Primary}
57
- text_Button = {props.text_Primary}
56
+ svgLeft = {props.icon_Primary}
57
+ text = {props.text_Primary}
58
58
  />
59
59
  <Main_Plain
60
60
  onClick = {props.onClick_Secondary}
61
- icon_Left = {props.icon_Secondary}
62
- text_Button = {props.text_Secondary}
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
- variant_Size = 'small'
27
- text_Button = {props.text_AddInput}
28
- icon_Left = 'Add'
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
- variant_Size = 'small'
98
- icon_Left = 'Delete'
97
+ size = 'small'
98
+ svgLeft = 'Delete'
99
99
  />
100
100
  </li>
101
101
  )}
@@ -15,8 +15,8 @@ export const Nav_Mid = (props) => {
15
15
  return (
16
16
  <NavMid>
17
17
  <Cta_
18
- variant_Size = 'normal'
19
- text_Button = {props.text_Cta}
18
+ size = 'normal'
19
+ text = {props.text_Cta}
20
20
  onClick = {props.onClick_Cta}
21
21
  />
22
22
  </NavMid>
@@ -66,8 +66,8 @@ export const Nav_Protected = (props) => {
66
66
  <h5>{props.firstname_Account}</h5>
67
67
  </NavUser>
68
68
  <Grey_
69
- variant_Size = 'small'
70
- icon_Left = 'Ham'
69
+ size = 'small'
70
+ svgLeft = 'Ham'
71
71
  onClick = {() => setHamState(!hamState)}
72
72
  />
73
73
  {hamState ?
@@ -31,14 +31,14 @@ export const Nav_Unprotected = (props) => {
31
31
  <NavUnprotected>
32
32
  <NavDesktop>
33
33
  <Main_Plain
34
- variant_Size = 'small'
35
- text_Button = {props.text_Login}
34
+ size = 'small'
35
+ text = {props.text_Login}
36
36
  onClick = {props.onClick_Login}
37
37
  />
38
38
  </NavDesktop>
39
39
  <Grey_
40
- variant_Size = 'small'
41
- icon_Left = 'Ham'
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='StoryBook_Fix1'>
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.text_Title}</h3>
50
+ <h3>{props.title}</h3>
51
51
  <Main_
52
- text_Button = {props.text_MainButton}
53
- icon_Right = "Check"
54
- variant_Size = 'normal'
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
- icon_Left = {props.icon_Grey}
17
- text_Button = {props.text_Grey}
16
+ svgLeft = {props.icon_Grey}
17
+ text = {props.text_Grey}
18
18
  onClick = {props.onClick_Grey}
19
19
  />
20
20
  <Main_
21
- icon_Right = {props.icon_Main}
22
- text_Button = {props.text_Main}
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.variant_Size === 'small' ? 'var(--smallPads)' :
15
- p.variant_Size === 'large' ? 'var(--largePads)' :
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.variant_Size === 'small' ? 'var(--smallIcon)' :
24
- p.variant_Size === 'large' ? 'var(--largeIcon)' :
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.variant_Size === 'small' ? 'var(--smallText)' :
35
- p.variant_Size === 'large' ? 'var(--largeText)' :
34
+ p.size === 'small' ? 'var(--smallText)' :
35
+ p.size === 'large' ? 'var(--largeText)' :
36
36
  'var(--normalText)'
37
37
  };
38
38
  }
@@ -40,6 +40,6 @@ export const Default = (args) =>
40
40
 
41
41
  Default.args = {
42
42
  onClick_Close : '_',
43
- text_Title : "This is the slider's title",
44
- text_MainButton : 'Done'
43
+ title : "This is the slider's title",
44
+ done : 'Done'
45
45
  }