monica-alexandria 3.2.21 → 3.3.0
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 +67 -67
- package/dist/index.js +37 -37
- package/package.json +1 -1
- package/src/export/components/button/Delete_Plain.js +4 -4
- package/src/export/components/button/Focus_.js +4 -4
- package/src/export/components/button/Focus_Plain.js +4 -4
- package/src/export/components/button/Grey_.js +4 -4
- package/src/export/components/button/Grey_Link.js +4 -4
- package/src/export/components/button/Main_.js +4 -4
- package/src/export/components/button/Main_Plain.js +4 -4
- package/src/export/components/button/White_Plain.js +4 -4
- package/src/export/components/card/On_Click_Card.js +13 -13
- package/src/export/components/confirmation/Confirmation_.js +7 -7
- package/src/export/components/form/Builder_.js +2 -2
- package/src/export/components/form/Checkbox_.js +8 -8
- package/src/export/components/form/Dropdown_.js +3 -3
- package/src/export/components/form/Elastic_Search.js +16 -18
- package/src/export/components/form/Input_.js +28 -27
- package/src/export/components/form/Input_Phone.js +5 -6
- package/src/export/components/form/Input_Phone_Register.js +6 -6
- package/src/export/components/form/Radio_.js +4 -4
- package/src/export/components/form/Textarea_.js +15 -15
- package/src/export/components/nav/Nav_Protected.js +1 -1
- package/src/export/components/nav/Nav_Unprotected.js +1 -1
- package/src/export/components/sidebar/Sidebar_Box.js +1 -1
- package/src/export/components/slider/Slider_.js +2 -2
- package/src/export/components/steps/Steps_.js +4 -4
- package/src/export/components/steps/Steps_Actions.js +2 -2
- package/src/export/components/steps/Steps_Header.js +6 -6
- package/src/export/styles/Steps.js +1 -1
- package/src/stories/cards/OnClickCard.stories.jsx +9 -9
- package/src/stories/confirmation/Confirmation.stories.jsx +5 -5
- package/src/stories/form/Checkbox.stories.jsx +8 -8
- package/src/stories/form/Dropdown.stories.jsx +1 -1
- package/src/stories/form/Elastic.stories.jsx +9 -9
- package/src/stories/form/Input.stories.jsx +22 -22
- package/src/stories/form/InputPhone.stories.jsx +6 -6
- package/src/stories/form/Radio.stories.jsx +5 -5
- package/src/stories/form/Textarea.stories.jsx +15 -15
- package/src/stories/slider/Slider.stories.jsx +3 -3
- 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.
|
|
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.
|
|
18
|
-
p.step < p.
|
|
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
|
|
28
|
-
{(props.
|
|
29
|
-
<SingleStep step={i}
|
|
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.
|
|
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
|
-
|
|
27
|
-
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
9
|
+
id : 'id1523',
|
|
10
10
|
text_CheckboxLabel : 'Is this your choice?',
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
onClick : '-',
|
|
12
|
+
checked : false
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const Input = (args) => <Checkbox_ {...args}/>
|
|
16
16
|
Input.args={
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
id : 'id1523',
|
|
18
|
+
placeholder : 'Other',
|
|
19
|
+
withInput : true,
|
|
20
|
+
onClick : '-',
|
|
21
|
+
checked : false
|
|
22
22
|
}
|
|
@@ -20,22 +20,22 @@ const array = ['Volos', 'Karditsa']
|
|
|
20
20
|
|
|
21
21
|
export const Elastic = (args) =>
|
|
22
22
|
<Builder_
|
|
23
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
9
|
+
placeholder : 'fill in your message...'
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const Required = (args) => <Input_ {...args}/>
|
|
13
13
|
Required.args={
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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_
|
|
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_
|
|
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
|
-
|
|
28
|
+
required : true
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const Register = (args) =>
|
|
32
|
-
<Builder_
|
|
32
|
+
<Builder_ title='Bob'>
|
|
33
33
|
<Input_Phone_Register {...args}/>
|
|
34
34
|
</Builder_>
|
|
35
35
|
Register.args = {
|
|
36
|
-
|
|
36
|
+
placeholder : 'Enter you number here',
|
|
37
37
|
array_PhoneList : ['(0030) 6955999010'],
|
|
38
38
|
icon_PhoneList : 'Phone',
|
|
39
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
9
|
+
placeholder : 'Fill in your story...',
|
|
10
10
|
rows : '5',
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
limit : 250,
|
|
12
|
+
required : false
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const Required = (args) => <Textarea_ {...args}/>
|
|
16
16
|
Required.args={
|
|
17
|
-
|
|
17
|
+
placeholder : 'Fill in your story...',
|
|
18
18
|
rows : '5',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
26
|
+
placeholder : 'Fill in your story...',
|
|
27
27
|
rows : '5',
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
35
|
+
placeholder : 'Fill in your story...',
|
|
36
36
|
rows : '5',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
33
|
+
title = 'Fill in your information'
|
|
34
34
|
>
|
|
35
35
|
<Input_
|
|
36
|
-
|
|
36
|
+
placeholder = 'Phone number'
|
|
37
37
|
/>
|
|
38
38
|
</Builder_>
|
|
39
39
|
</Slider_>
|
|
40
40
|
|
|
41
41
|
Default.args = {
|
|
42
|
-
|
|
42
|
+
onClick : '_',
|
|
43
43
|
title : "This is the slider's title",
|
|
44
44
|
done : 'Done'
|
|
45
45
|
}
|