monica-alexandria 3.2.21 → 3.3.1

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.
Files changed (41) hide show
  1. package/dist/index.es.js +67 -67
  2. package/dist/index.js +37 -37
  3. package/package.json +1 -1
  4. package/src/export/components/button/Delete_Plain.js +4 -4
  5. package/src/export/components/button/Focus_.js +4 -4
  6. package/src/export/components/button/Focus_Plain.js +4 -4
  7. package/src/export/components/button/Grey_.js +4 -4
  8. package/src/export/components/button/Grey_Link.js +4 -4
  9. package/src/export/components/button/Main_.js +4 -4
  10. package/src/export/components/button/Main_Plain.js +4 -4
  11. package/src/export/components/button/White_Plain.js +4 -4
  12. package/src/export/components/card/On_Click_Card.js +13 -13
  13. package/src/export/components/confirmation/Confirmation_.js +7 -7
  14. package/src/export/components/form/Builder_.js +2 -2
  15. package/src/export/components/form/Checkbox_.js +8 -8
  16. package/src/export/components/form/Dropdown_.js +3 -3
  17. package/src/export/components/form/Elastic_Search.js +17 -19
  18. package/src/export/components/form/Input_.js +28 -27
  19. package/src/export/components/form/Input_Phone.js +5 -6
  20. package/src/export/components/form/Input_Phone_Register.js +6 -6
  21. package/src/export/components/form/Radio_.js +4 -4
  22. package/src/export/components/form/Textarea_.js +15 -15
  23. package/src/export/components/nav/Nav_Protected.js +1 -1
  24. package/src/export/components/nav/Nav_Unprotected.js +1 -1
  25. package/src/export/components/sidebar/Sidebar_Box.js +1 -1
  26. package/src/export/components/slider/Slider_.js +2 -2
  27. package/src/export/components/steps/Steps_.js +4 -4
  28. package/src/export/components/steps/Steps_Actions.js +2 -2
  29. package/src/export/components/steps/Steps_Header.js +6 -6
  30. package/src/export/styles/Steps.js +1 -1
  31. package/src/stories/cards/OnClickCard.stories.jsx +9 -9
  32. package/src/stories/confirmation/Confirmation.stories.jsx +5 -5
  33. package/src/stories/form/Checkbox.stories.jsx +8 -8
  34. package/src/stories/form/Dropdown.stories.jsx +1 -1
  35. package/src/stories/form/Elastic.stories.jsx +9 -9
  36. package/src/stories/form/Input.stories.jsx +22 -22
  37. package/src/stories/form/InputPhone.stories.jsx +6 -6
  38. package/src/stories/form/Radio.stories.jsx +5 -5
  39. package/src/stories/form/Textarea.stories.jsx +15 -15
  40. package/src/stories/slider/Slider.stories.jsx +3 -3
  41. package/src/stories/steps/Steps.stories.jsx +2 -2
@@ -7,15 +7,15 @@ const StepsHeader = styled.div`
7
7
  margin-bottom: 2rem;
8
8
  display: grid;
9
9
  align-items: center;
10
- grid-template-columns: repeat( ${p => p.array_Steps.length} ,1fr);
10
+ grid-template-columns: repeat( ${p => p.steps.length} ,1fr);
11
11
  background: ${p => p.theme.mid};
12
12
  overflow: hidden;
13
13
  `
14
14
 
15
15
  const SingleStep = styled.div`
16
16
  background: ${p =>
17
- p.step === p.int_CurrentStep ? 'linear-gradient( to right, var(--main), transparent)' :
18
- p.step < p.int_CurrentStep ? 'var(--main)' :
17
+ p.step === p.currentStep ? 'linear-gradient( to right, var(--main), transparent)' :
18
+ p.step < p.currentStep ? 'var(--main)' :
19
19
  'transparent'
20
20
  };
21
21
  height: 100%;
@@ -24,9 +24,9 @@ const SingleStep = styled.div`
24
24
 
25
25
  export const Steps_Header = (props) => {
26
26
  return (
27
- <StepsHeader array_Steps = {props.array_Steps}>
28
- {(props.array_Steps).map((step, i) =>
29
- <SingleStep step={i} int_CurrentStep={props.int_CurrentStep}></SingleStep>
27
+ <StepsHeader steps = {props.steps}>
28
+ {(props.steps).map((step, i) =>
29
+ <SingleStep step={i} currentStep={props.currentStep}></SingleStep>
30
30
  )}
31
31
  </StepsHeader>
32
32
  )
@@ -6,7 +6,7 @@ export const Steps = styled.div`
6
6
  margin-bottom: 2rem;
7
7
  display: grid;
8
8
  align-items: center;
9
- grid-template-columns: repeat( ${p => p.array_Steps} ,1fr);
9
+ grid-template-columns: repeat( ${p => p.steps} ,1fr);
10
10
  background: ${p => p.theme.mid};
11
11
  overflow: hidden;
12
12
  `
@@ -23,26 +23,26 @@ const Template = (args) => <On_Click_Card {...args}/>
23
23
 
24
24
  export const WithImage = Template.bind({})
25
25
  WithImage.args = {
26
- img_Card : 'https://images.unsplash.com/photo-1666278885974-cb4ffbb2c606?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
27
- text_CardSub : 'This is a subtitle'
26
+ img : 'https://images.unsplash.com/photo-1666278885974-cb4ffbb2c606?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
27
+ subtitle : 'This is a subtitle'
28
28
  }
29
29
 
30
30
  export const WithSvg = Template.bind({})
31
31
  WithSvg.args = {
32
- svg_Card : 'Rocket',
33
- text_CardTitle : 'This is a Title'
32
+ icon : 'Rocket',
33
+ title : 'This is a Title'
34
34
  }
35
35
 
36
36
  export const WithSvgImg = Template.bind({})
37
37
  WithSvgImg.args = {
38
- img_SmallCard : 'https://images.unsplash.com/photo-1666278885974-cb4ffbb2c606?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
39
- text_CardTitle : 'This is a Title'
38
+ imgSmall : 'https://images.unsplash.com/photo-1666278885974-cb4ffbb2c606?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80',
39
+ title : 'This is a Title'
40
40
  }
41
41
 
42
42
  export const WithText = Template.bind({})
43
43
  WithText.args = {
44
- text_Card : '2345',
45
- text_CardTitle : 'This is a Title',
46
- text_CardSub : 'This is a subtitle',
44
+ header : '2345',
45
+ title : 'This is a Title',
46
+ subtitle : 'This is a subtitle',
47
47
  variant_CardText : 'Main'
48
48
  }
@@ -15,9 +15,9 @@ export default{
15
15
 
16
16
  export const Confirm = (args) => <Confirmation_ {...args}/>
17
17
  Confirm.args={
18
- text_Confirmation : 'Are you sure?',
19
- text_Primary : 'Yes',
20
- text_Secondary: 'No',
21
- icon_Primary : 'Check',
22
- icon_Secondary: 'Xicon',
18
+ message : 'Are you sure?',
19
+ text_Main : 'Yes',
20
+ text_MainPlain: 'No',
21
+ icon_Main : 'Check',
22
+ icon_MainPlain: 'Xicon',
23
23
  }
@@ -6,17 +6,17 @@ export default{
6
6
 
7
7
  export const Simple = (args) => <Checkbox_ {...args}/>
8
8
  Simple.args={
9
- id_Checkbox : 'id1523',
9
+ id : 'id1523',
10
10
  text_CheckboxLabel : 'Is this your choice?',
11
- onClick_Checkbox : '-',
12
- bool_Checked : false
11
+ onClick : '-',
12
+ checked : false
13
13
  }
14
14
 
15
15
  export const Input = (args) => <Checkbox_ {...args}/>
16
16
  Input.args={
17
- id_Checkbox : 'id1523',
18
- text_CheckboxPlaceholder : 'Other',
19
- variant_Input : true,
20
- onClick_Checkbox : '-',
21
- bool_Checked : false
17
+ id : 'id1523',
18
+ placeholder : 'Other',
19
+ withInput : true,
20
+ onClick : '-',
21
+ checked : false
22
22
  }
@@ -7,7 +7,7 @@ export default{
7
7
 
8
8
  export const Simple = (args) => <Dropdown_ {...args}/>
9
9
  Simple.args={
10
- array_Dropdown: ['bob', 'lol', 'kok']
10
+ items: ['bob', 'lol', 'kok']
11
11
  }
12
12
 
13
13
  export const withSelect = (args) =>
@@ -20,22 +20,22 @@ const array = ['Volos', 'Karditsa']
20
20
 
21
21
  export const Elastic = (args) =>
22
22
  <Builder_
23
- text_BuilderTitle = 'Seach for something...'
23
+ title = 'Seach for something...'
24
24
  >
25
25
  <Elastic_Search {...args}/>
26
26
  </Builder_>
27
27
  Elastic.args = {
28
28
  json_File : bob,
29
- text_Placeholder : 'Search a city',
30
- onChange_Input : '_',
31
- text_DefaultValue: '',
32
- key_SuggestionType: 'CITY',
33
- bool_Required : true,
29
+ placeholder : 'Search a city',
30
+ onChange : '_',
31
+ defaultValue: '',
32
+ suggestionType: 'CITY',
33
+ required : true,
34
34
  bool_Sanitize: true,
35
35
  onSuggestions: () => console.log('calling onSuggestion'),
36
- array_List: array,
37
- variant_List : true,
38
- text_Selecteditems: 'Selected items:',
36
+ list: array,
37
+ list : true,
38
+ listItemTitle: 'Selected items:',
39
39
  onClick_AddToList : '-',
40
40
  text_AddToList : 'Add'
41
41
  }
@@ -6,46 +6,46 @@ export default{
6
6
 
7
7
  export const Simple = (args) => <Input_ {...args}/>
8
8
  Simple.args={
9
- text_Placeholder : 'fill in your message...'
9
+ placeholder : 'fill in your message...'
10
10
  }
11
11
 
12
12
  export const Required = (args) => <Input_ {...args}/>
13
13
  Required.args={
14
- text_Placeholder : 'fill in your message...',
15
- bool_Required : true,
16
- array_Errors : ['You must fill in this information']
14
+ placeholder : 'fill in your message...',
15
+ required : true,
16
+ errors : ['You must fill in this information']
17
17
  }
18
18
 
19
19
  export const Helpers = (args) => <Input_ {...args}/>
20
20
  Helpers.args={
21
- text_Placeholder : 'fill in your message...',
22
- bool_Required : true,
23
- array_Helpers : ['You must fill in this information']
21
+ placeholder : 'fill in your message...',
22
+ required : true,
23
+ helpers : ['You must fill in this information']
24
24
  }
25
25
 
26
26
  export const Tips = (args) => <Input_ {...args}/>
27
27
  Tips.args={
28
- text_Placeholder : 'fill in your message...',
29
- bool_Required : true,
30
- array_Tips : ['This is the first tip', 'This is the second tip']
28
+ placeholder : 'fill in your message...',
29
+ required : true,
30
+ tips : ['This is the first tip', 'This is the second tip']
31
31
  }
32
32
 
33
33
  export const List = (args) => <Input_ {...args}/>
34
34
  List.args={
35
- text_Placeholder : 'fill in your message...',
36
- variant_List : true,
37
- array_List : ['first item'],
38
- icon_List : 'Rocket'
35
+ placeholder : 'fill in your message...',
36
+ list : true,
37
+ list : ['first item'],
38
+ icon_ListItem : 'Rocket'
39
39
  }
40
40
 
41
41
  export const Mixed = (args) => <Input_ {...args}/>
42
42
  Mixed.args={
43
- text_Placeholder : 'fill in your message...',
44
- variant_List : true,
45
- array_List : ['first item'],
46
- icon_List : 'Rocket',
47
- bool_Required : true,
48
- array_Tips : ['This is the first tip', 'This is the second tip'],
49
- array_Helpers : ['You must fill in this information'],
50
- array_Errors : ['You must fill in this information']
43
+ placeholder : 'fill in your message...',
44
+ list : true,
45
+ list : ['first item'],
46
+ icon_ListItem : 'Rocket',
47
+ required : true,
48
+ tips : ['This is the first tip', 'This is the second tip'],
49
+ helpers : ['You must fill in this information'],
50
+ errors : ['You must fill in this information']
51
51
  }
@@ -6,7 +6,7 @@ export default{
6
6
  }
7
7
 
8
8
  export const Simple = (args) =>
9
- <Builder_ text_BuilderTitle='Bob'>
9
+ <Builder_ title='Bob'>
10
10
  <Input_Phone {...args}/>
11
11
  </Builder_>
12
12
  Simple.args = {
@@ -17,7 +17,7 @@ Simple.args = {
17
17
  }
18
18
 
19
19
  export const Required = (args) =>
20
- <Builder_ text_BuilderTitle='Bob'>
20
+ <Builder_ title='Bob'>
21
21
  <Input_Phone {...args}/>
22
22
  </Builder_>
23
23
  Required.args = {
@@ -25,16 +25,16 @@ Required.args = {
25
25
  text_PhonePlaceholder : 'Enter you number here',
26
26
  array_PhoneList : ['(0030) 6955999010'],
27
27
  icon_PhoneList : 'Phone',
28
- bool_Required : true
28
+ required : true
29
29
  }
30
30
 
31
31
  export const Register = (args) =>
32
- <Builder_ text_BuilderTitle='Bob'>
32
+ <Builder_ title='Bob'>
33
33
  <Input_Phone_Register {...args}/>
34
34
  </Builder_>
35
35
  Register.args = {
36
- text_Placeholder : 'Enter you number here',
36
+ placeholder : 'Enter you number here',
37
37
  array_PhoneList : ['(0030) 6955999010'],
38
38
  icon_PhoneList : 'Phone',
39
- bool_Required : true
39
+ required : true
40
40
  }
@@ -6,13 +6,13 @@ export default{
6
6
 
7
7
  export const Simple = (args) => <Radio_ {...args}/>
8
8
  Simple.args={
9
- id_Radio : 'id1523',
10
- text_RadioLabel : 'Is this your choice?'
9
+ id : 'id1523',
10
+ text : 'Is this your choice?'
11
11
  }
12
12
 
13
13
  export const Input = (args) => <Radio_ {...args}/>
14
14
  Input.args={
15
- id_Radio : 'id1553',
16
- text_RadioPlaceholder : 'Other',
17
- variant_Input : true
15
+ id : 'id1553',
16
+ placeholder : 'Other',
17
+ withInput : true
18
18
  }
@@ -6,35 +6,35 @@ export default{
6
6
 
7
7
  export const Simple = (args) => <Textarea_ {...args}/>
8
8
  Simple.args={
9
- text_Placeholder : 'Fill in your story...',
9
+ placeholder : 'Fill in your story...',
10
10
  rows : '5',
11
- int_Limit : 250,
12
- bool_Required : false
11
+ limit : 250,
12
+ required : false
13
13
  }
14
14
 
15
15
  export const Required = (args) => <Textarea_ {...args}/>
16
16
  Required.args={
17
- text_Placeholder : 'Fill in your story...',
17
+ placeholder : 'Fill in your story...',
18
18
  rows : '5',
19
- int_Limit : 250,
20
- bool_Required : true,
21
- array_Errors : ['You must fill in this information']
19
+ limit : 250,
20
+ required : true,
21
+ errors : ['You must fill in this information']
22
22
  }
23
23
 
24
24
  export const Helpers = (args) => <Textarea_ {...args}/>
25
25
  Helpers.args={
26
- text_Placeholder : 'Fill in your story...',
26
+ placeholder : 'Fill in your story...',
27
27
  rows : '5',
28
- int_Limit : 250,
29
- bool_Required : true,
30
- array_Helpers : ['I am here to help you', 'Me too!']
28
+ limit : 250,
29
+ required : true,
30
+ helpers : ['I am here to help you', 'Me too!']
31
31
  }
32
32
 
33
33
  export const Tips = (args) => <Textarea_ {...args}/>
34
34
  Tips.args={
35
- text_Placeholder : 'Fill in your story...',
35
+ placeholder : 'Fill in your story...',
36
36
  rows : '5',
37
- int_Limit : 250,
38
- bool_Required : true,
39
- array_Tips : ['I am here to help you', 'Me too!']
37
+ limit : 250,
38
+ required : true,
39
+ tips : ['I am here to help you', 'Me too!']
40
40
  }
@@ -30,16 +30,16 @@ export const Default = (args) =>
30
30
 
31
31
  <Slider_ {...args}>
32
32
  <Builder_
33
- text_BuilderTitle = 'Fill in your information'
33
+ title = 'Fill in your information'
34
34
  >
35
35
  <Input_
36
- text_Placeholder = 'Phone number'
36
+ placeholder = 'Phone number'
37
37
  />
38
38
  </Builder_>
39
39
  </Slider_>
40
40
 
41
41
  Default.args = {
42
- onClick_Close : '_',
42
+ onClick : '_',
43
43
  title : "This is the slider's title",
44
44
  done : 'Done'
45
45
  }
@@ -52,6 +52,6 @@ let ArrayOfSteps = [
52
52
 
53
53
  export const Steps = (args) => <Steps_ {...args}/>
54
54
  Steps.args = {
55
- array_Steps : ArrayOfSteps,
56
- int_CurrentStep: 0
55
+ steps : ArrayOfSteps,
56
+ currentStep: 0
57
57
  }