venice-ui 1.0.1 → 1.0.3

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 (78) hide show
  1. package/dist/cjs/index.d.ts +4 -3
  2. package/dist/cjs/index.js +4 -7
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/esm/index.d.ts +4 -3
  5. package/dist/esm/index.js +4 -3
  6. package/dist/esm/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/.circleci/config.yml +0 -36
  9. package/.eslintrc.json +0 -24
  10. package/.prettierignore +0 -10
  11. package/.prettierrc +0 -5
  12. package/.storybook/PCTheme.js +0 -10
  13. package/.storybook/main.js +0 -13
  14. package/.storybook/manager.js +0 -17
  15. package/.storybook/preview-head.html +0 -18
  16. package/.storybook/preview.js +0 -29
  17. package/.storybook/public/pc_logo.png +0 -0
  18. package/dist/cjs/components/Aligment/Aligment.stories.d.ts +0 -7
  19. package/dist/cjs/components/Aligment/Aligment.stories.js +0 -110
  20. package/dist/cjs/components/Aligment/Aligment.stories.js.map +0 -1
  21. package/dist/cjs/components/Button/Button.stories.d.ts +0 -7
  22. package/dist/cjs/components/Button/Button.stories.js +0 -51
  23. package/dist/cjs/components/Button/Button.stories.js.map +0 -1
  24. package/dist/cjs/components/Icons/Icon.stories.d.ts +0 -9
  25. package/dist/cjs/components/Icons/Icon.stories.js +0 -60
  26. package/dist/cjs/components/Icons/Icon.stories.js.map +0 -1
  27. package/dist/cjs/components/InputText/InputText.stories.d.ts +0 -5
  28. package/dist/cjs/components/InputText/InputText.stories.js +0 -18
  29. package/dist/cjs/components/InputText/InputText.stories.js.map +0 -1
  30. package/dist/cjs/components/Modal/Modal.stories.d.ts +0 -8
  31. package/dist/cjs/components/Modal/Modal.stories.js +0 -83
  32. package/dist/cjs/components/Modal/Modal.stories.js.map +0 -1
  33. package/dist/esm/components/Aligment/Aligment.stories.d.ts +0 -7
  34. package/dist/esm/components/Aligment/Aligment.stories.js +0 -104
  35. package/dist/esm/components/Aligment/Aligment.stories.js.map +0 -1
  36. package/dist/esm/components/Button/Button.stories.d.ts +0 -7
  37. package/dist/esm/components/Button/Button.stories.js +0 -45
  38. package/dist/esm/components/Button/Button.stories.js.map +0 -1
  39. package/dist/esm/components/Icons/Icon.stories.d.ts +0 -9
  40. package/dist/esm/components/Icons/Icon.stories.js +0 -54
  41. package/dist/esm/components/Icons/Icon.stories.js.map +0 -1
  42. package/dist/esm/components/InputText/InputText.stories.d.ts +0 -5
  43. package/dist/esm/components/InputText/InputText.stories.js +0 -12
  44. package/dist/esm/components/InputText/InputText.stories.js.map +0 -1
  45. package/dist/esm/components/Modal/Modal.stories.d.ts +0 -8
  46. package/dist/esm/components/Modal/Modal.stories.js +0 -57
  47. package/dist/esm/components/Modal/Modal.stories.js.map +0 -1
  48. package/src/Theme/Theme.ts +0 -47
  49. package/src/components/Aligment/Aligment.stories.tsx +0 -126
  50. package/src/components/Aligment/Aligment.styles.ts +0 -23
  51. package/src/components/Aligment/index.ts +0 -1
  52. package/src/components/Button/Button.stories.tsx +0 -53
  53. package/src/components/Button/Button.styles.tsx +0 -76
  54. package/src/components/Button/Button.tsx +0 -31
  55. package/src/components/Button/index.ts +0 -1
  56. package/src/components/Icons/Icon.stories.tsx +0 -62
  57. package/src/components/Icons/Icon.styles.ts +0 -29
  58. package/src/components/Icons/Icon.tsx +0 -35
  59. package/src/components/Icons/Icons.stories.mdx +0 -38
  60. package/src/components/Icons/IconsPath.ts +0 -13
  61. package/src/components/Icons/index.ts +0 -1
  62. package/src/components/InputText/InputText.stories.tsx +0 -18
  63. package/src/components/InputText/InputText.styles.ts +0 -19
  64. package/src/components/InputText/InputText.tsx +0 -24
  65. package/src/components/InputText/index.ts +0 -1
  66. package/src/components/Modal/Modal.stories.tsx +0 -183
  67. package/src/components/Modal/Modal.styles.ts +0 -38
  68. package/src/components/Modal/Modal.tsx +0 -63
  69. package/src/components/Modal/index.ts +0 -1
  70. package/src/components/Typography/Typography.stories.mdx +0 -35
  71. package/src/components/Typography/Typography.styles.tsx +0 -31
  72. package/src/components/Typography/index.ts +0 -1
  73. package/src/components/common/commonComponents.tsx +0 -13
  74. package/src/components/common/index.ts +0 -1
  75. package/src/example/ExampleComponent.tsx +0 -44
  76. package/src/example/index.ts +0 -1
  77. package/src/index.ts +0 -5
  78. package/tsconfig.json +0 -19
@@ -1,23 +0,0 @@
1
- import styled from "styled-components";
2
-
3
- export interface IAligmentProps {
4
- direction?: string
5
- justify?: string
6
- align?: string
7
- width?: string
8
- wrap?: string
9
- vPadding?: string
10
- hPadding?: string
11
- backgroundColor? :string
12
- }
13
- export const Aligment = styled.div<IAligmentProps>`
14
- box-sizing: border-box;
15
- display: flex;
16
- width: ${p => p.width ? p.width : '100%'};
17
- flex-direction: ${p => p.direction ? p.direction : 'row'};
18
- justify-content: ${p => p.justify ? p.justify : 'space-between'};
19
- align-items: ${p => p.align ? p.align : 'center'};
20
- flex-wrap: ${p => p.wrap ? p.wrap : 'wrap'};
21
- padding: ${p=> p.vPadding ? p.vPadding : '0'} ${p=> p.hPadding ? p.hPadding : '0'};
22
- background-color: ${p => p.backgroundColor ? p.backgroundColor : 'transparent'}
23
- `;
@@ -1 +0,0 @@
1
- export { Aligment } from './Aligment.styles'
@@ -1,53 +0,0 @@
1
- import React from 'react'
2
- import { ComponentStory, ComponentMeta } from '@storybook/react'
3
-
4
- import { Button } from './Button'
5
-
6
- export default {
7
- title: 'Elements/Button',
8
- component: Button,
9
- argTypes: {
10
- text: { control: 'text' },
11
- mode: {
12
- options: ['primary', 'inverse', 'ghost'],
13
- control: 'select',
14
- },
15
- size: {
16
- options: ['regular', 'small', 'flat'],
17
- control: 'select',
18
- },
19
- right: { control: 'boolean' },
20
- left: { control: 'boolean' },
21
-
22
-
23
- },
24
- args: {
25
- text: 'Click me',
26
- },
27
- } as ComponentMeta<typeof Button>
28
-
29
- const Template: ComponentStory<typeof Button> = (args) => <Button {...args}/>
30
-
31
- export const Default = Template.bind({})
32
- Default.args = {
33
- size: 'regular',
34
- mode: 'primary',
35
- left: false,
36
- right: false,
37
- }
38
-
39
- export const Inverse = Template.bind({})
40
- Inverse.args = {
41
- size: 'regular',
42
- mode: 'inverse',
43
- left: false,
44
- right: false,
45
- }
46
-
47
- export const Ghost = Template.bind({})
48
- Ghost.args = {
49
- size: 'regular',
50
- mode: 'ghost',
51
- left: false,
52
- right: false,
53
- }
@@ -1,76 +0,0 @@
1
- import { lighten } from 'polished'
2
- import styled from 'styled-components'
3
- import { Theme } from '../../Theme/Theme'
4
-
5
- interface IButtonElement {
6
- mode: string
7
- size: string
8
- right: boolean
9
- left: boolean
10
- }
11
-
12
- export const ButtonElement = styled.button<IButtonElement>`
13
- transition: 300ms;
14
- border-radius: ${Theme.borderRadius.s};
15
- overflow: hidden;
16
- cursor: pointer;
17
- box-sizing: border-box;
18
- margin-left: ${(p) => (p.right ? Theme.padding.m : '0')};
19
- margin-right: ${(p) => (p.left ? Theme.padding.m : '0')};
20
- display: flex;
21
- align-items: center;
22
- justify-content: center;
23
- display: flex;
24
-
25
- ${(p) =>
26
- p.mode === 'primary' &&
27
- `background-color: ${Theme.colors.primary};
28
- color: ${Theme.colors.white};
29
- border: 1px solid rgba(0,0,0,0.15);`}
30
- ${(p) =>
31
- p.mode === 'inverse' &&
32
- `background-color: ${Theme.colors.white};
33
- color: ${Theme.colors.primary};
34
- border: 1px solid ${Theme.colors.primary};
35
- `}
36
- ${(p) =>
37
- p.mode === 'ghost' &&
38
- `background-color:transparent;
39
- color: ${Theme.colors.primary};
40
- border:none;`}
41
- ${(p) =>
42
- p.size === 'regular' &&
43
- `font-size: ${Theme.fontSize.m};
44
- line-height: ${Theme.lineHeight.m};
45
- padding: ${Theme.padding.m} ${Theme.padding.l};`}
46
- ${(p) =>
47
- p.size === 'small' &&
48
- `font-size: ${Theme.fontSize.s};
49
- line-height: ${Theme.lineHeight.s};
50
- padding: ${Theme.padding.s} ${Theme.padding.m};`}
51
- ${(p) =>
52
- p.size === 'flat' &&
53
- `font-size: ${Theme.fontSize.m};
54
- line-height: ${Theme.lineHeight.m};
55
- padding: ${Theme.padding.s} ${Theme.padding.s};`}
56
- &:hover {
57
- transition: 300ms;
58
- ${(p) =>
59
- p.mode === 'primary' &&
60
- `background-color: ${lighten(0.1, Theme.colors.primary)};`}
61
- ${(p) =>
62
- p.mode === 'inverse' &&
63
- `background-color: ${lighten(0.4, Theme.colors.primary)}`};
64
- ${(p) =>
65
- p.mode === 'ghost' && `color: ${lighten(0.2, Theme.colors.primary)};`}
66
- }
67
-
68
- &.disable,
69
- button[disabled] {
70
- color: ${Theme.colors.disableText};
71
- cursor: default;
72
- &:hover {
73
- color: ${Theme.colors.disableBackground};
74
- }
75
- }
76
- `
@@ -1,31 +0,0 @@
1
- import React, { FC } from 'react'
2
- import { ButtonElement } from './Button.styles'
3
-
4
- export interface IButtonProps {
5
- text: string
6
- mode?: string
7
- size?: string
8
- right?: boolean
9
- left?: boolean
10
- onClick: () => void
11
- }
12
- export const Button: FC<IButtonProps> = ({
13
- text,
14
- mode = 'primary',
15
- size = 'regular',
16
- right = false,
17
- left = false,
18
- onClick,
19
- }) => {
20
- return (
21
- <ButtonElement
22
- mode={mode}
23
- size={size}
24
- right={right}
25
- left={left}
26
- onClick={onClick}
27
- >
28
- {text}
29
- </ButtonElement>
30
- )
31
- }
@@ -1 +0,0 @@
1
- export {Button} from './Button'
@@ -1,62 +0,0 @@
1
- import React from 'react'
2
- import { ComponentStory, ComponentMeta } from '@storybook/react'
3
-
4
- import { Icon } from './Icon'
5
- import { Theme } from '../../Theme/Theme'
6
- import { Aligment } from '../Aligment'
7
-
8
- export default {
9
- title: 'Elements/Icon',
10
-
11
- component: Icon,
12
- argTypes: {
13
- name: {
14
- options: ['person', 'menu', 'remove', 'add', 'close'],
15
- control: 'select',
16
- },
17
- size: { control: 'number' },
18
- color: { control: { type: 'color' } },
19
- bgColor: { control: 'boolean' },
20
- },
21
- args: {
22
- onClick: undefined
23
- }
24
- } as ComponentMeta<typeof Icon>
25
-
26
- const Template: ComponentStory<typeof Icon> = (args) => (
27
- <Icon {...args}/>
28
- )
29
-
30
- export const Default = Template.bind({})
31
- Default.args ={
32
- name: 'person',
33
- size: 48
34
- }
35
- export const Size = Template.bind({})
36
- Size.args ={
37
- name: 'person',
38
- size: 24
39
- }
40
- export const Color = Template.bind({})
41
- Color.args ={
42
- name: 'person',
43
- size: 48,
44
- color: Theme.colors.primary
45
- }
46
- export const ActionDefault = Template.bind({})
47
- ActionDefault.args ={
48
- name: 'person',
49
- size: 48,
50
- onClick: ()=>console.log('click')
51
- }
52
- const DarkTemplate: ComponentStory<typeof Icon> = (args) => (
53
- <Aligment backgroundColor={Theme.colors.black}><Icon {...args}/></Aligment>
54
- )
55
- export const ActionColor = DarkTemplate.bind({})
56
- ActionColor.args ={
57
- name: 'person',
58
- size: 48,
59
- bgColor: true,
60
- color:Theme.colors.white,
61
- onClick: ()=>console.log('click')
62
- }
@@ -1,29 +0,0 @@
1
- import { lighten } from "polished";
2
- import styled from "styled-components";
3
- import { Theme } from "../../Theme/Theme";
4
-
5
-
6
- interface IIconElementProps {
7
- bgColor?: boolean
8
- onClick?: ()=>void
9
- }
10
- export const IconElement = styled.div<IIconElementProps>`
11
- transition: 300ms;
12
- box-sizing: border-box;
13
- width:auto;
14
- display:inline-flex;
15
- border-radius: ${Theme.borderRadius.s};
16
- ${p => p.onClick !== undefined &&
17
- `
18
- padding: ${Theme.padding.s};
19
- cursor:pointer;
20
- &:hover{
21
- background-color: ${p.bgColor ? `rgba(255,255,255,0.2)` : lighten(0.4, Theme.colors.primary) };
22
- transition: 300ms;
23
- }
24
- svg{
25
- cursor:pointer;
26
- }
27
- `
28
- }
29
- `
@@ -1,35 +0,0 @@
1
- import React, { FC } from 'react'
2
- import { Theme } from '../../Theme/Theme'
3
- import { IconElement } from './Icon.styles'
4
- import { iconsPath } from './IconsPath'
5
-
6
- export interface IIconActionProps {
7
- name: string
8
- size?: number
9
- color?: string
10
- bgColor?: boolean
11
- onClick?: () => void
12
- }
13
- export const Icon: FC<IIconActionProps> = ({
14
- size = 24,
15
- name,
16
- color = Theme.colors.text,
17
- bgColor,
18
- onClick,
19
- }) => {
20
- return (
21
- <IconElement onClick={onClick} bgColor={bgColor}>
22
- <svg
23
- width={size}
24
- height={size}
25
- viewBox={'0 0 48 48'}
26
- preserveAspectRatio="xMidYMid meet"
27
- x="0"
28
- y="0"
29
- name={name}
30
- >
31
- <path d={iconsPath[name]} fill={color} />
32
- </svg>
33
- </IconElement>
34
- )
35
- }
@@ -1,38 +0,0 @@
1
- import { Meta } from '@storybook/addon-docs';
2
- import { ExampleTable, ExampleTableRow, ExampleTableHeader,ExampleTableCell , StoryWrapper } from '../../example'
3
- import { Icon } from '../Icons'
4
-
5
- <Meta title="Basic/Icons" />
6
-
7
- <StoryWrapper>
8
-
9
- <h2>Size</h2>
10
- <ExampleTable>
11
- <ExampleTableRow>
12
- <ExampleTableHeader>Size</ExampleTableHeader>
13
- <ExampleTableHeader>Sample</ExampleTableHeader>
14
- </ExampleTableRow>
15
- <ExampleTableRow>
16
- <ExampleTableCell>14px</ExampleTableCell>
17
- <ExampleTableCell><Icon name="delete" size={14} /></ExampleTableCell>
18
- </ExampleTableRow>
19
- <ExampleTableRow>
20
- <ExampleTableCell>16px</ExampleTableCell>
21
- <ExampleTableCell><Icon name="delete" size={16} /></ExampleTableCell>
22
- </ExampleTableRow>
23
- <ExampleTableRow>
24
- <ExampleTableCell>24px</ExampleTableCell>
25
- <ExampleTableCell><Icon name="delete" size={24} /></ExampleTableCell>
26
- </ExampleTableRow>
27
- <ExampleTableRow>
28
- <ExampleTableCell>32px</ExampleTableCell>
29
- <ExampleTableCell><Icon name="delete" size={32} /></ExampleTableCell>
30
- </ExampleTableRow>
31
- <ExampleTableRow>
32
- <ExampleTableCell>42px</ExampleTableCell>
33
- <ExampleTableCell><Icon name="delete" size={42} /></ExampleTableCell>
34
- </ExampleTableRow>
35
- </ExampleTable>
36
-
37
- <h2>Icons</h2>
38
- </StoryWrapper>
@@ -1,13 +0,0 @@
1
- export const iconsPath = {
2
- close: "m12.45 37.65-2.1-2.1L21.9 24 10.35 12.45l2.1-2.1L24 21.9l11.55-11.55 2.1 2.1L26.1 24l11.55 11.55-2.1 2.1L24 26.1Z",
3
- add: "M22.5 38V25.5H10v-3h12.5V10h3v12.5H38v3H25.5V38Z",
4
- back: "M24 40 8 24 24 8l2.1 2.1-12.4 12.4H40v3H13.7l12.4 12.4Z",
5
- delete: "M13.05 42q-1.25 0-2.125-.875T10.05 39V10.5H8v-3h9.4V6h13.2v1.5H40v3h-2.05V39q0 1.2-.9 2.1-.9.9-2.1.9Zm21.9-31.5h-21.9V39h21.9Zm-16.6 24.2h3V14.75h-3Zm8.3 0h3V14.75h-3Zm-13.6-24.2V39Z",
6
- remove: "M10 25.5v-3h28v3Z",
7
- person: "M24 23.95q-3.3 0-5.4-2.1-2.1-2.1-2.1-5.4 0-3.3 2.1-5.4 2.1-2.1 5.4-2.1 3.3 0 5.4 2.1 2.1 2.1 2.1 5.4 0 3.3-2.1 5.4-2.1 2.1-5.4 2.1ZM8 40v-4.7q0-1.9.95-3.25T11.4 30q3.35-1.5 6.425-2.25Q20.9 27 24 27q3.1 0 6.15.775 3.05.775 6.4 2.225 1.55.7 2.5 2.05.95 1.35.95 3.25V40Zm3-3h26v-1.7q0-.8-.475-1.525-.475-.725-1.175-1.075-3.2-1.55-5.85-2.125Q26.85 30 24 30t-5.55.575q-2.7.575-5.85 2.125-.7.35-1.15 1.075Q11 34.5 11 35.3Zm13-16.05q1.95 0 3.225-1.275Q28.5 18.4 28.5 16.45q0-1.95-1.275-3.225Q25.95 11.95 24 11.95q-1.95 0-3.225 1.275Q19.5 14.5 19.5 16.45q0 1.95 1.275 3.225Q22.05 20.95 24 20.95Zm0-4.5ZM24 37Z",
8
- menu: "M6 36v-3h36v3Zm0-10.5v-3h36v3ZM6 15v-3h36v3Z",
9
- expand_more: "m24 30.75-12-12 2.15-2.15L24 26.5l9.85-9.85L36 18.8Z",
10
- expand_less: "M14.15 30.75 12 28.6l12-12 12 11.95-2.15 2.15L24 20.85Z",
11
-
12
- }
13
-
@@ -1 +0,0 @@
1
- export { Icon } from './Icon'
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { ComponentStory, ComponentMeta } from "@storybook/react";
3
-
4
- import { InputText } from "./InputText";
5
-
6
- export default {
7
- title: "Form/InputText",
8
- component: InputText,
9
- args: {
10
- type: "text",
11
- },
12
- } as ComponentMeta<typeof InputText>;
13
-
14
- const Template: ComponentStory<typeof InputText> = (args) => (
15
- <InputText {...args} />
16
- );
17
-
18
- export const Primary = Template.bind({});
@@ -1,19 +0,0 @@
1
- import styled from "styled-components";
2
- import { Theme } from "../../Theme/Theme";
3
-
4
- export const InputTextField = styled.input`
5
- background-color: ${Theme.colors.white};
6
- border: 1px solid ${Theme.colors.gray_1};
7
- width: 100%;
8
- border-radius: 2px;
9
- box-sizing: border-box;
10
- outline: 0;
11
- font-family: "Lato", sans-serif;
12
- padding: ${Theme.padding.s};
13
- margin: 0;
14
- font-size: ${Theme.fontSize.m};
15
-
16
- :focus {
17
- border-color: ${Theme.colors.primary};
18
- }
19
- `;
@@ -1,24 +0,0 @@
1
- import React, { FC } from "react";
2
- import { InputTextField } from "./InputText.styles";
3
-
4
- export interface IInputTextProps {
5
- label: string;
6
- value: string | number;
7
- name: string;
8
- read?: boolean;
9
- disable?: boolean;
10
- size?: string;
11
- onChange: any;
12
- }
13
-
14
- export const InputText: FC<IInputTextProps> = ({
15
- label,
16
- value,
17
- name,
18
- read = false,
19
- disable = false,
20
- size = "normal",
21
- onChange,
22
- }) => {
23
- return <InputTextField />;
24
- };
@@ -1 +0,0 @@
1
- export { InputText } from "./InputText";
@@ -1,183 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { ComponentStory, ComponentMeta } from '@storybook/react'
3
- import { Text } from '../Typography'
4
-
5
- import { Modal } from './Modal'
6
- import { Button } from '../Button'
7
-
8
- export default {
9
- title: 'Elements/Modal',
10
- component: Modal,
11
- argTypes: {
12
- title: { control: 'text' },
13
- labelClose: { control: 'text' },
14
- size: {
15
- options: ['small', 'medium', 'large'],
16
- control: 'select',
17
- },
18
- },
19
- } as ComponentMeta<typeof Modal>
20
-
21
- const Template: ComponentStory<typeof Modal> = (args) => {
22
- const [modal, toogleModal] = useState(false)
23
- return (
24
- <>
25
- <Button text="Show Modal" onClick={() => toogleModal(true)} />
26
- {modal && (
27
- <Modal
28
- {...args}
29
- handleClose={() => toogleModal(false)}
30
- handleConfirm={() => toogleModal(false)}
31
- >
32
- <Text>One ring to rule them all, one ring to find them</Text>
33
- </Modal>
34
- )}
35
- </>
36
- )
37
- }
38
-
39
- export const Default = Template.bind({})
40
- Default.args = {
41
- title: 'Modal Title',
42
- labelClose: 'Cancel',
43
- labelConfirm: 'Save',
44
- size: 'small',
45
- }
46
-
47
- export const Size = Template.bind({})
48
- Size.args = {
49
- title: 'Modal Title',
50
- labelClose: 'Cancel',
51
- labelConfirm: 'Save',
52
- size: 'medium',
53
- }
54
-
55
- export const OneAction = Template.bind({})
56
- OneAction.args = {
57
- title: 'Modal Title',
58
- labelClose: 'OK',
59
- size: 'medium',
60
- }
61
-
62
- const LongTemplate: ComponentStory<typeof Modal> = (args) => {
63
- const [modal, toogleModal] = useState(false)
64
- return (
65
- <>
66
- <Button text="Show Modal" onClick={() => toogleModal(true)} />
67
- {modal && (
68
- <Modal
69
- {...args}
70
- handleClose={() => toogleModal(false)}
71
- handleConfirm={() => toogleModal(false)}
72
- >
73
- <Text>
74
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla at
75
- ultricies nulla. Aliquam suscipit, ante sollicitudin egestas
76
- lacinia, odio ex mattis arcu, vitae molestie neque nunc a eros.
77
- Morbi dictum nisl placerat quam fermentum mollis. Etiam efficitur,
78
- metus nec tincidunt tempus, magna enim interdum lacus, eu lacinia
79
- lorem quam eu est. Vestibulum sapien lorem, tempor nec ultricies sit
80
- amet, tristique sed tellus. Proin felis dui, porta ut placerat vel,
81
- gravida eget ipsum. Etiam neque elit, sodales nec erat pretium,
82
- auctor volutpat sem. Aliquam imperdiet venenatis magna. Cras metus
83
- ligula, suscipit ac quam sit amet, porttitor feugiat nibh. Aenean eu
84
- libero convallis, fermentum eros sit amet, pellentesque ligula.
85
- Fusce scelerisque justo sit amet nunc sollicitudin, vel varius odio
86
- aliquam. Quisque euismod scelerisque urna at maximus. Aenean
87
- elementum venenatis tellus, id posuere arcu pharetra nec. Proin
88
- posuere mi id gravida maximus. Cras interdum, risus at tincidunt
89
- convallis, felis dolor congue urna, vitae accumsan magna enim ut
90
- elit. Ut dapibus enim ipsum, imperdiet ultrices arcu tempor quis.
91
- Praesent eget facilisis dolor. Vestibulum ante mi, blandit at
92
- sodales a, tristique sed odio. Pellentesque nec rhoncus sapien.
93
- Quisque nec malesuada nisl. In facilisis felis ut velit ullamcorper,
94
- a posuere odio interdum. Curabitur porttitor nunc nec mauris
95
- suscipit, ac semper diam accumsan. Curabitur rhoncus varius dolor id
96
- vulputate. Fusce sagittis urna et sapien suscipit porttitor.
97
- Maecenas eget facilisis velit. In molestie, ligula nec pellentesque
98
- rhoncus, sem libero dictum sem, in luctus massa est eget velit. Ut
99
- aliquet velit velit, ut feugiat tellus ultrices vel. Quisque est
100
- lacus, egestas feugiat lectus at, dignissim rhoncus nulla. Integer
101
- quis orci sagittis erat aliquet porta quis id felis. Cras sapien
102
- eros, vestibulum sed dui eu, commodo scelerisque nisi. Sed vel augue
103
- arcu. Ut consequat pellentesque neque, consequat vestibulum urna
104
- pulvinar sed. Sed pulvinar, metus a porttitor commodo, felis leo
105
- dictum ante, in congue elit ante et justo. Nulla rhoncus dui eget
106
- facilisis interdum. Nam pretium pellentesque aliquam. In euismod
107
- dapibus rhoncus. Quisque purus diam, fringilla ac malesuada at,
108
- euismod et dui. Nulla gravida libero molestie lacus feugiat, at
109
- laoreet diam auctor. Nullam at sapien molestie, aliquam massa eget,
110
- dapibus ipsum. Aliquam erat volutpat. Sed hendrerit convallis
111
- fringilla. Mauris feugiat metus in sem vestibulum tempor. Cras vitae
112
- faucibus enim, nec blandit ante. Aenean pharetra felis et aliquam
113
- sodales. Integer at urna dictum, laoreet diam et, faucibus mi.
114
- Phasellus eleifend aliquam dui, ut fermentum mauris. Aenean porta
115
- risus vitae odio mollis pretium. Nam consequat lectus id dui
116
- consequat ultricies. Pellentesque non diam a sem viverra pulvinar.
117
- Ut maximus molestie risus, sed lacinia mauris blandit ultrices.
118
- Suspendisse ac nisi ut nibh consequat faucibus. Lorem ipsum dolor
119
- sit amet, consectetur adipiscing elit. Aliquam auctor interdum
120
- mollis. Phasellus vitae molestie nibh. Vivamus in dignissim lacus.
121
- Vivamus vel dui ac lacus porta sodales. Ut malesuada placerat ex ut
122
- pretium. Fusce in volutpat ipsum, sed ornare lacus. In erat arcu,
123
- sagittis vitae turpis in, blandit suscipit odio. Cras sed arcu
124
- cursus, facilisis orci nec, egestas mauris. Donec ut mollis dolor.
125
- Nulla ac laoreet lacus, mattis hendrerit ligula. Sed bibendum elit
126
- id nisi luctus, eget volutpat ipsum egestas. Aliquam dignissim, ante
127
- non cursus gravida, enim odio euismod ipsum, nec tempus quam nisl
128
- vitae justo. Integer fringilla sagittis porttitor. Donec ut vehicula
129
- dolor. Etiam nec tellus urna. Aliquam efficitur volutpat tortor eget
130
- varius. Maecenas at posuere augue. Nam ac rhoncus ipsum. Donec
131
- maximus pharetra elit sit amet auctor. Pellentesque habitant morbi
132
- tristique senectus et netus et malesuada fames ac turpis egestas.
133
- Maecenas nisi enim, efficitur id purus at, auctor sollicitudin nisl.
134
- Aliquam eu fermentum ipsum. Vestibulum ante ipsum primis in faucibus
135
- orci luctus et ultrices posuere cubilia curae; Phasellus varius
136
- lacinia orci sit amet rutrum. Etiam lacinia justo non ultricies
137
- fermentum. Praesent tellus orci, rutrum at iaculis hendrerit,
138
- gravida id urna. Ut massa sem, lobortis non massa eu, sodales mattis
139
- ante. Proin in quam non purus placerat ornare. Duis iaculis ipsum
140
- odio. Nam commodo facilisis massa ut rutrum. Duis porta rhoncus urna
141
- sit amet bibendum. Duis ornare dignissim turpis ac suscipit. Vivamus
142
- faucibus risus et enim accumsan vehicula. Aenean ut ultrices risus,
143
- quis vehicula nibh. Vestibulum accumsan tempor lectus, eu luctus
144
- massa volutpat vitae. Pellentesque dictum vulputate augue, id
145
- venenatis justo tempus id. Aenean non nibh eu elit sagittis
146
- ultrices. Pellentesque nibh nisi, sollicitudin et varius in, aliquam
147
- in sem. In ultrices sem odio, et laoreet risus aliquam ut. Donec nec
148
- odio egestas, mattis ante eu, dictum sapien. Phasellus sed vulputate
149
- mauris. Vestibulum vel imperdiet nisl, ac malesuada sapien.
150
- Phasellus urna arcu, fringilla id lectus id, tristique elementum
151
- sapien. Nunc pharetra massa vitae placerat convallis. Morbi euismod
152
- arcu sem, a euismod est iaculis sed. Ut at ipsum a ipsum aliquam
153
- feugiat eleifend sed lacus. Aenean nec tortor ante. Morbi eu ante
154
- eget tortor tincidunt efficitur. Vivamus et ultricies enim. Proin a
155
- magna eget justo ultrices consectetur vel id est. Proin quis sem
156
- quis sapien malesuada finibus. Pellentesque vel ex augue. Sed
157
- ullamcorper tellus id nulla viverra, pharetra tincidunt ante
158
- tincidunt. Sed sagittis mauris id felis convallis pulvinar. Aliquam
159
- erat volutpat. Maecenas rutrum est sed orci egestas, non dictum
160
- purus pharetra. Proin non enim dictum, condimentum metus eget,
161
- lacinia purus. In a lacus ante. Nam vel auctor libero, et venenatis
162
- urna. Nunc euismod, tortor ac vestibulum consequat, diam orci
163
- finibus eros, eu lacinia ex enim sit amet elit. Interdum et
164
- malesuada fames ac ante ipsum primis in faucibus. Vivamus tincidunt
165
- id nunc ut facilisis. Phasellus iaculis mauris nisi, ac ullamcorper
166
- eros lacinia sit amet. Donec ultricies semper nisi, ut vehicula
167
- risus euismod at. Praesent non mauris eros. Nam aliquam tellus eget
168
- neque aliquam, sit amet accumsan tellus luctus. Morbi id ultrices
169
- nisl. Ut euismod pulvinar augue in posuere. Vivamus in risus iaculis
170
- quam hendrerit ornare sit amet eu enim. Ut id leo urna.
171
- </Text>
172
- </Modal>
173
- )}
174
- </>
175
- )
176
- }
177
-
178
- export const LongText = LongTemplate.bind({})
179
- LongText.args = {
180
- title: 'Lorer long text',
181
- labelClose: 'Go to caffee',
182
- size: 'small',
183
- }
@@ -1,38 +0,0 @@
1
- import styled from 'styled-components'
2
- import { Theme } from '../../Theme/Theme';
3
-
4
- export const ModalOverlayer = styled.div`
5
- box-sizing: border-box;
6
- align-items: center;
7
- background-color: ${Theme.colors.overlayer};
8
- display: flex;
9
- justify-content: center;
10
- height: 100vh;
11
- left: 0;
12
- top: 0;
13
- padding: ${Theme.padding.l};
14
- width: 100%;
15
- position: fixed;
16
- z-index: ${Theme.zIndex.modalOverlayer};
17
- `;
18
-
19
- interface IModalElementProp {
20
- size:string
21
- }
22
- export const ModalElement = styled.div<IModalElementProp>`
23
- box-sizing: border-box;
24
- display: flex;
25
- width: 100%;
26
- background-color: ${Theme.colors.white};
27
- border-radius: ${Theme.borderRadius.m};
28
- max-height: 100%;
29
- overflow: hidden;
30
- flex-direction: column;
31
- position: relative;
32
- max-width: 60rem;
33
- box-shadow: ${Theme.shadow.m}
34
- ${p => p.size === 'small' && `max-width:500px`}
35
- ${p => p.size === 'medium' && `max-width:750px`}
36
- ${p => p.size === 'large' && `max-width:100%`}
37
-
38
- `;