@app-studio/web 0.1.5 → 0.1.6
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 +2 -3
- package/src/components/Button/Button/Button.props.ts +0 -79
- package/src/components/Button/Button/Button.state.ts +0 -7
- package/src/components/Button/Button/Button.style.ts +0 -95
- package/src/components/Button/Button/Button.type.d.ts +0 -11
- package/src/components/Button/Button/Button.view.tsx +0 -113
- package/src/components/Button/Button.md +0 -165
- package/src/components/Button/Button.tsx +0 -24
- package/src/components/Button/examples/AutoFocusButton.tsx +0 -13
- package/src/components/Button/examples/BorderedButtons.tsx +0 -14
- package/src/components/Button/examples/ColoredButtons.tsx +0 -12
- package/src/components/Button/examples/DefaultButton.tsx +0 -4
- package/src/components/Button/examples/DisabledButton.tsx +0 -13
- package/src/components/Button/examples/IconButtons.tsx +0 -23
- package/src/components/Button/examples/LoadingButtons.tsx +0 -32
- package/src/components/Button/examples/ShadowButton.tsx +0 -6
- package/src/components/Button/examples/SizeButtons.tsx +0 -16
- package/src/components/Button/examples/VariantButtons.tsx +0 -20
- package/src/components/Button/examples/index.ts +0 -9
- package/src/components/Form/Checkbox/Checkbox/Checkbox.props.ts +0 -118
- package/src/components/Form/Checkbox/Checkbox/Checkbox.state.ts +0 -15
- package/src/components/Form/Checkbox/Checkbox/Checkbox.style.ts +0 -29
- package/src/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +0 -8
- package/src/components/Form/Checkbox/Checkbox/Checkbox.view.tsx +0 -98
- package/src/components/Form/Checkbox/Checkbox.md +0 -128
- package/src/components/Form/Checkbox/Checkbox.tsx +0 -15
- package/src/components/Form/Checkbox/examples/ColorScheme.tsx +0 -12
- package/src/components/Form/Checkbox/examples/Default.tsx +0 -5
- package/src/components/Form/Checkbox/examples/DisabledInput.tsx +0 -5
- package/src/components/Form/Checkbox/examples/ErrorCheckbox.tsx +0 -5
- package/src/components/Form/Checkbox/examples/FormCheckout.tsx +0 -46
- package/src/components/Form/Checkbox/examples/IconCheckbox.tsx +0 -8
- package/src/components/Form/Checkbox/examples/IndeterminateCheckbox.tsx +0 -5
- package/src/components/Form/Checkbox/examples/ReadOnlyInput.tsx +0 -5
- package/src/components/Form/Checkbox/examples/Shadow.tsx +0 -11
- package/src/components/Form/Checkbox/examples/SizeInput.tsx +0 -18
- package/src/components/Form/Checkbox/examples/StylesInput.tsx +0 -22
- package/src/components/Form/Checkbox/examples/index.ts +0 -11
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.props.ts +0 -187
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.state.ts +0 -28
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.style.ts +0 -17
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +0 -22
- package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.view.tsx +0 -234
- package/src/components/Form/CountryPicker/CountryPicker.md +0 -206
- package/src/components/Form/CountryPicker/CountryPicker.tsx +0 -16
- package/src/components/Form/CountryPicker/countries.json +0 -1453
- package/src/components/Form/CountryPicker/examples/Color.tsx +0 -12
- package/src/components/Form/CountryPicker/examples/Default.tsx +0 -4
- package/src/components/Form/CountryPicker/examples/Disabled.tsx +0 -5
- package/src/components/Form/CountryPicker/examples/Error.tsx +0 -4
- package/src/components/Form/CountryPicker/examples/Form.tsx +0 -23
- package/src/components/Form/CountryPicker/examples/Formik.tsx +0 -39
- package/src/components/Form/CountryPicker/examples/HelperText.tsx +0 -5
- package/src/components/Form/CountryPicker/examples/ReadOnlyInput.tsx +0 -5
- package/src/components/Form/CountryPicker/examples/Shadow.tsx +0 -4
- package/src/components/Form/CountryPicker/examples/Shape.tsx +0 -13
- package/src/components/Form/CountryPicker/examples/SizeInput.tsx +0 -16
- package/src/components/Form/CountryPicker/examples/StylesInput.tsx +0 -17
- package/src/components/Form/CountryPicker/examples/Variant.tsx +0 -13
- package/src/components/Form/CountryPicker/examples/index.ts +0 -12
- package/src/components/Form/CountryPicker/styles.css +0 -7
- package/src/components/Form/DatePicker/DatePicker/DatePicker.props.ts +0 -113
- package/src/components/Form/DatePicker/DatePicker/DatePicker.state.ts +0 -17
- package/src/components/Form/DatePicker/DatePicker/DatePicker.style.ts +0 -17
- package/src/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +0 -15
- package/src/components/Form/DatePicker/DatePicker/DatePicker.view.tsx +0 -118
- package/src/components/Form/DatePicker/DatePicker.md +0 -115
- package/src/components/Form/DatePicker/DatePicker.tsx +0 -15
- package/src/components/Form/DatePicker/examples/ColorScheme.tsx +0 -12
- package/src/components/Form/DatePicker/examples/Default.tsx +0 -4
- package/src/components/Form/DatePicker/examples/DisabledInput.tsx +0 -5
- package/src/components/Form/DatePicker/examples/ErrorCheckbox.tsx +0 -4
- package/src/components/Form/DatePicker/examples/FormCheckout.tsx +0 -23
- package/src/components/Form/DatePicker/examples/Formik.tsx +0 -35
- package/src/components/Form/DatePicker/examples/ReadOnlyInput.tsx +0 -5
- package/src/components/Form/DatePicker/examples/Shadow.tsx +0 -10
- package/src/components/Form/DatePicker/examples/SizeInput.tsx +0 -16
- package/src/components/Form/DatePicker/examples/StylesInput.tsx +0 -14
- package/src/components/Form/DatePicker/examples/helperTextDatePicker.tsx +0 -6
- package/src/components/Form/DatePicker/examples/index.ts +0 -11
- package/src/components/Form/Label/Label/Label.props.ts +0 -36
- package/src/components/Form/Label/Label/Label.style.ts +0 -34
- package/src/components/Form/Label/Label/Label.type.ts +0 -14
- package/src/components/Form/Label/Label/Label.view.tsx +0 -35
- package/src/components/Form/Label/Label.tsx +0 -8
- package/src/components/Form/Password/Password/Password.props.ts +0 -36
- package/src/components/Form/Password/Password/Password.state.ts +0 -6
- package/src/components/Form/Password/Password/Password.type.d.ts +0 -14
- package/src/components/Form/Password/Password/Password.view.tsx +0 -32
- package/src/components/Form/Password/Password.md +0 -108
- package/src/components/Form/Password/Password.tsx +0 -15
- package/src/components/Form/Password/example/Default.tsx +0 -9
- package/src/components/Form/Password/example/DisabledInput.tsx +0 -17
- package/src/components/Form/Password/example/ErrorInput.tsx +0 -66
- package/src/components/Form/Password/example/FormikErrorInput.tsx +0 -67
- package/src/components/Form/Password/example/FormikHelperText.tsx +0 -65
- package/src/components/Form/Password/example/HelperText.tsx +0 -65
- package/src/components/Form/Select/Select/Select.props.ts +0 -262
- package/src/components/Form/Select/Select/Select.state.ts +0 -19
- package/src/components/Form/Select/Select/Select.style.ts +0 -19
- package/src/components/Form/Select/Select/Select.type.d.ts +0 -15
- package/src/components/Form/Select/Select/Select.view.tsx +0 -337
- package/src/components/Form/Select/Select.md +0 -165
- package/src/components/Form/Select/Select.tsx +0 -16
- package/src/components/Form/Select/examples/Color.tsx +0 -12
- package/src/components/Form/Select/examples/Default.tsx +0 -4
- package/src/components/Form/Select/examples/Disabled.tsx +0 -5
- package/src/components/Form/Select/examples/Error.tsx +0 -4
- package/src/components/Form/Select/examples/Form.tsx +0 -23
- package/src/components/Form/Select/examples/Formik.tsx +0 -41
- package/src/components/Form/Select/examples/HelperText.tsx +0 -7
- package/src/components/Form/Select/examples/Multiple.tsx +0 -6
- package/src/components/Form/Select/examples/ReadOnlyInput.tsx +0 -5
- package/src/components/Form/Select/examples/Shadow.tsx +0 -11
- package/src/components/Form/Select/examples/SizeInput.tsx +0 -16
- package/src/components/Form/Select/examples/StylesInput.tsx +0 -15
- package/src/components/Form/Switch/Switch/Switch.props.ts +0 -91
- package/src/components/Form/Switch/Switch/Switch.state.ts +0 -11
- package/src/components/Form/Switch/Switch/Switch.style.ts +0 -72
- package/src/components/Form/Switch/Switch/Switch.type.d.ts +0 -6
- package/src/components/Form/Switch/Switch/Switch.view.tsx +0 -78
- package/src/components/Form/Switch/Switch.md +0 -148
- package/src/components/Form/Switch/Switch.tsx +0 -12
- package/src/components/Form/Switch/examples/ChildSwitch.tsx +0 -20
- package/src/components/Form/Switch/examples/ColorScheme.tsx +0 -5
- package/src/components/Form/Switch/examples/Default.tsx +0 -4
- package/src/components/Form/Switch/examples/DisabledInput.tsx +0 -7
- package/src/components/Form/Switch/examples/FormSwitch.tsx +0 -22
- package/src/components/Form/Switch/examples/Formik.tsx +0 -30
- package/src/components/Form/Switch/examples/ReadOnlyInput.tsx +0 -7
- package/src/components/Form/Switch/examples/Shadow.tsx +0 -11
- package/src/components/Form/Switch/examples/SizeInput.tsx +0 -21
- package/src/components/Form/Switch/examples/StylesInput.tsx +0 -32
- package/src/components/Form/TextArea/TextArea/TextArea.props.ts +0 -154
- package/src/components/Form/TextArea/TextArea/TextArea.state.ts +0 -21
- package/src/components/Form/TextArea/TextArea/TextArea.type.ts +0 -15
- package/src/components/Form/TextArea/TextArea/TextArea.view.tsx +0 -143
- package/src/components/Form/TextArea/TextArea.md +0 -169
- package/src/components/Form/TextArea/TextArea.tsx +0 -15
- package/src/components/Form/TextArea/examples/ColorScheme.tsx +0 -13
- package/src/components/Form/TextArea/examples/Default.tsx +0 -5
- package/src/components/Form/TextArea/examples/DisabledInput.tsx +0 -7
- package/src/components/Form/TextArea/examples/ErrorInput.tsx +0 -50
- package/src/components/Form/TextArea/examples/FormikErrorInput.tsx +0 -52
- package/src/components/Form/TextArea/examples/FormikHelperText.tsx +0 -51
- package/src/components/Form/TextArea/examples/HelperText.tsx +0 -49
- package/src/components/Form/TextArea/examples/LabelInput.tsx +0 -23
- package/src/components/Form/TextArea/examples/MaxRowCol.tsx +0 -7
- package/src/components/Form/TextArea/examples/Placeholder.tsx +0 -23
- package/src/components/Form/TextArea/examples/ReadOnlyInput.tsx +0 -7
- package/src/components/Form/TextArea/examples/ShadowArea.tsx +0 -28
- package/src/components/Form/TextArea/examples/ShapeInput.tsx +0 -15
- package/src/components/Form/TextArea/examples/SizeInput.tsx +0 -16
- package/src/components/Form/TextArea/examples/StylesInput.tsx +0 -32
- package/src/components/Form/TextArea/examples/VariantsInputs.tsx +0 -15
- package/src/components/Form/TextArea/examples/index.ts +0 -15
- package/src/components/Form/TextArea/styles.css +0 -7
- package/src/components/Form/TextField/TextField/TextField.props.ts +0 -134
- package/src/components/Form/TextField/TextField/TextField.state.ts +0 -21
- package/src/components/Form/TextField/TextField/TextField.type.d.ts +0 -15
- package/src/components/Form/TextField/TextField/TextField.view.tsx +0 -170
- package/src/components/Form/TextField/TextField.md +0 -193
- package/src/components/Form/TextField/TextField.tsx +0 -14
- package/src/components/Form/TextField/examples/ClearInput.tsx +0 -13
- package/src/components/Form/TextField/examples/ColorScheme.tsx +0 -13
- package/src/components/Form/TextField/examples/Default.tsx +0 -23
- package/src/components/Form/TextField/examples/DisabledInput.tsx +0 -7
- package/src/components/Form/TextField/examples/ErrorInput.tsx +0 -74
- package/src/components/Form/TextField/examples/FormikErrorInput.tsx +0 -76
- package/src/components/Form/TextField/examples/FormikHelperText.tsx +0 -62
- package/src/components/Form/TextField/examples/HelperText.tsx +0 -60
- package/src/components/Form/TextField/examples/LabelInput.tsx +0 -23
- package/src/components/Form/TextField/examples/LeftChild.tsx +0 -8
- package/src/components/Form/TextField/examples/Placeholder.tsx +0 -23
- package/src/components/Form/TextField/examples/ReadOnlyInput.tsx +0 -7
- package/src/components/Form/TextField/examples/RightChild.tsx +0 -8
- package/src/components/Form/TextField/examples/ShapeInput.tsx +0 -15
- package/src/components/Form/TextField/examples/SizeInput.tsx +0 -16
- package/src/components/Form/TextField/examples/StylesInput.tsx +0 -33
- package/src/components/Form/TextField/examples/VariantsInputs.tsx +0 -15
- package/src/components/Form/TextField/examples/index.ts +0 -17
- package/src/components/Form/TextField/styles.css +0 -7
- package/src/components/Layout/Center/Center/Center.props.ts +0 -18
- package/src/components/Layout/Center/Center/Center.view.tsx +0 -12
- package/src/components/Layout/Center/Center.md +0 -17
- package/src/components/Layout/Center/Center.tsx +0 -11
- package/src/components/Layout/Horizontal/Horizontal/Horizontal.props.ts +0 -26
- package/src/components/Layout/Horizontal/Horizontal/Horizontal.view.tsx +0 -24
- package/src/components/Layout/Horizontal/Horizontal.md +0 -107
- package/src/components/Layout/Horizontal/Horizontal.tsx +0 -11
- package/src/components/Layout/Horizontal/examples/Default.tsx +0 -11
- package/src/components/Layout/Horizontal/examples/Justify.tsx +0 -25
- package/src/components/Layout/Horizontal/examples/Reversed.tsx +0 -11
- package/src/components/Layout/Horizontal/examples/Wrap.tsx +0 -29
- package/src/components/Layout/Horizontal/examples/index.ts +0 -4
- package/src/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.ts +0 -25
- package/src/components/Layout/Input/FieldContainer/FieldContainer.tsx +0 -17
- package/src/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.ts +0 -75
- package/src/components/Layout/Input/FieldContent/FieldContent.tsx +0 -55
- package/src/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.ts +0 -12
- package/src/components/Layout/Input/FieldIcons/FieldIcons.tsx +0 -19
- package/src/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.ts +0 -31
- package/src/components/Layout/Input/FieldLabel/FieldLabel.tsx +0 -30
- package/src/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.ts +0 -29
- package/src/components/Layout/Input/FieldLayout/FieldLayout.tsx +0 -33
- package/src/components/Layout/Input/FieldWrapper/FieldWrapper.props.ts +0 -12
- package/src/components/Layout/Input/FieldWrapper/FieldWrapper.tsx +0 -11
- package/src/components/Layout/Input/HelperText/HelperText.props.ts +0 -21
- package/src/components/Layout/Input/HelperText/HelperText.tsx +0 -22
- package/src/components/Layout/Input/index.ts +0 -7
- package/src/components/Layout/Vertical/Vertical/Vertical.props.ts +0 -26
- package/src/components/Layout/Vertical/Vertical/Vertical.type.ts +0 -3
- package/src/components/Layout/Vertical/Vertical/Vertical.view.tsx +0 -23
- package/src/components/Layout/Vertical/Vertical.md +0 -120
- package/src/components/Layout/Vertical/Vertical.tsx +0 -12
- package/src/components/Layout/Vertical/examples/Default.tsx +0 -11
- package/src/components/Layout/Vertical/examples/Justify.tsx +0 -26
- package/src/components/Layout/Vertical/examples/Reversed.tsx +0 -11
- package/src/components/Layout/Vertical/examples/Wrap.tsx +0 -30
- package/src/components/Layout/Vertical/examples/index.tsx +0 -5
- package/src/components/Layout/View/View.tsx +0 -2
- package/src/components/Layout/configs/Input.style.ts +0 -45
- package/src/components/Layout/configs/Input.type.ts +0 -18
- package/src/components/Link/Link/Link.props.ts +0 -50
- package/src/components/Link/Link/Link.state.ts +0 -6
- package/src/components/Link/Link/Link.style.ts +0 -14
- package/src/components/Link/Link/Link.type.d.ts +0 -8
- package/src/components/Link/Link/Link.view.tsx +0 -44
- package/src/components/Link/Link.md +0 -61
- package/src/components/Link/Link.tsx +0 -15
- package/src/components/Link/examples/Default.tsx +0 -5
- package/src/components/Link/examples/IsExternal.tsx +0 -10
- package/src/components/Link/examples/Underline.tsx +0 -23
- package/src/components/Loader/Loader/Loader.props.ts +0 -105
- package/src/components/Loader/Loader/Loader.style.ts +0 -25
- package/src/components/Loader/Loader/Loader.type.d.ts +0 -4
- package/src/components/Loader/Loader/Loader.view.tsx +0 -138
- package/src/components/Loader/Loader.md +0 -111
- package/src/components/Loader/Loader.tsx +0 -11
- package/src/components/Loader/examples/ColorLoader.tsx +0 -13
- package/src/components/Loader/examples/DefaultLoader.tsx +0 -4
- package/src/components/Loader/examples/PositionLoader.tsx +0 -19
- package/src/components/Loader/examples/SizeLoader.tsx +0 -12
- package/src/components/Loader/examples/SpeedLoader.tsx +0 -12
- package/src/components/Loader/examples/TextLoader.tsx +0 -8
- package/src/components/Loader/examples/VariantLoader.tsx +0 -12
- package/src/components/Loader/examples/index.ts +0 -7
- package/src/components/Modal/Examples/BlurModal.tsx +0 -38
- package/src/components/Modal/Examples/CloseButtonModal.tsx +0 -44
- package/src/components/Modal/Examples/DefaultModal.tsx +0 -38
- package/src/components/Modal/Examples/FullScreenModal.tsx +0 -28
- package/src/components/Modal/Examples/ModalPosition.tsx +0 -61
- package/src/components/Modal/Examples/PreventCloseModal.tsx +0 -27
- package/src/components/Modal/Examples/ScrollModal.tsx +0 -41
- package/src/components/Modal/Examples/ShadowModal.tsx +0 -29
- package/src/components/Modal/Examples/VariantModal.tsx +0 -48
- package/src/components/Modal/Examples/index.ts +0 -9
- package/src/components/Modal/Modal/Modal.props.ts +0 -202
- package/src/components/Modal/Modal/Modal.style.ts +0 -23
- package/src/components/Modal/Modal/Modal.type.d.ts +0 -7
- package/src/components/Modal/Modal/Modal.view.tsx +0 -169
- package/src/components/Modal/Modal.md +0 -509
- package/src/components/Modal/Modal.tsx +0 -18
- package/src/components/Svg/ArrowDown.tsx +0 -32
- package/src/components/Svg/ArrowUp.tsx +0 -32
- package/src/components/Svg/Check.tsx +0 -28
- package/src/components/Svg/Close.tsx +0 -31
- package/src/components/Svg/CloseEye.tsx +0 -26
- package/src/components/Svg/DustBin.tsx +0 -29
- package/src/components/Svg/Edit.tsx +0 -34
- package/src/components/Svg/ExternalLink.tsx +0 -31
- package/src/components/Svg/Indeterminate.tsx +0 -21
- package/src/components/Svg/OpenEye.tsx +0 -26
- package/src/components/Svg/Profile.tsx +0 -40
- package/src/components/Svg/RightArrow.tsx +0 -44
- package/src/components/Svg/index.tsx +0 -12
- package/src/components/Text/Text/Text.props.ts +0 -84
- package/src/components/Text/Text/Text.style.ts +0 -34
- package/src/components/Text/Text/Text.type.d.ts +0 -14
- package/src/components/Text/Text/Text.view.tsx +0 -96
- package/src/components/Text/Text.md +0 -163
- package/src/components/Text/Text.tsx +0 -13
- package/src/components/index.tsx +0 -18
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
### **Import**
|
|
2
|
-
|
|
3
|
-
```tsx static
|
|
4
|
-
import { Modal } from 'app-studio';
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
### **Default**
|
|
8
|
-
|
|
9
|
-
It uses the isOpen and onClose properties to display the modal.
|
|
10
|
-
|
|
11
|
-
```tsx
|
|
12
|
-
import { Button } from '../Button/Button';
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
|
|
15
|
-
const [show, setShow] = useState(false);
|
|
16
|
-
|
|
17
|
-
<>
|
|
18
|
-
<Button onClick={() => setShow(true)} isAuto>
|
|
19
|
-
Open Modal
|
|
20
|
-
</Button>
|
|
21
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)}>
|
|
22
|
-
<Modal.Container>
|
|
23
|
-
<Modal.Header>Title</Modal.Header>
|
|
24
|
-
<Modal.Body>
|
|
25
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
26
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
27
|
-
nisl consectetur et.
|
|
28
|
-
</Modal.Body>
|
|
29
|
-
<Modal.Footer>
|
|
30
|
-
<Button onClick={() => setShow(false)}>Cancel</Button>
|
|
31
|
-
</Modal.Footer>
|
|
32
|
-
</Modal.Container>
|
|
33
|
-
</Modal.Overlay>
|
|
34
|
-
</>;
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## **Modal Overlay**
|
|
38
|
-
|
|
39
|
-
It represents the overlay or backdrop that appears behind the modal content when the modal is displayed.
|
|
40
|
-
|
|
41
|
-
### **FullScreen**
|
|
42
|
-
|
|
43
|
-
“**is*fullScreen***” property changes the width and height of the modal so that it fits the entire screen.
|
|
44
|
-
|
|
45
|
-
```tsx
|
|
46
|
-
import { Button } from '../Button/Button';
|
|
47
|
-
import { useState } from 'react';
|
|
48
|
-
|
|
49
|
-
const [show, setShow] = useState(false);
|
|
50
|
-
|
|
51
|
-
<>
|
|
52
|
-
<Button onClick={() => setShow(true)} isAuto>
|
|
53
|
-
Full Screen
|
|
54
|
-
</Button>
|
|
55
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)}>
|
|
56
|
-
<Modal.Container isFullScreen>
|
|
57
|
-
<Modal.Header>Title</Modal.Header>
|
|
58
|
-
<Modal.Body>
|
|
59
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
60
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
61
|
-
nisl consectetur et.
|
|
62
|
-
</Modal.Body>
|
|
63
|
-
<Modal.Footer>
|
|
64
|
-
<Button onClick={() => setShow(false)}>Cancel</Button>
|
|
65
|
-
</Modal.Footer>
|
|
66
|
-
</Modal.Container>
|
|
67
|
-
</Modal.Overlay>
|
|
68
|
-
</>;
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### **Position**
|
|
72
|
-
|
|
73
|
-
“**_position_**” places the modal in the specified direction. It has a default positioning of “center”.
|
|
74
|
-
|
|
75
|
-
```tsx
|
|
76
|
-
import { useState } from 'react';
|
|
77
|
-
import { Button } from '../Button/Button';
|
|
78
|
-
import { Horizontal } from '../Layout/Horizontal/Horizontal';
|
|
79
|
-
|
|
80
|
-
const [showTop, setShowTop] = useState(false);
|
|
81
|
-
const [showBottom, setShowBottom] = useState(false);
|
|
82
|
-
const [showRight, setShowRight] = useState(false);
|
|
83
|
-
const [showLeft, setShowLeft] = useState(false);
|
|
84
|
-
const [showCenter, setShowCenter] = useState(false);
|
|
85
|
-
|
|
86
|
-
<>
|
|
87
|
-
<Horizontal gap={10} wrap="nowrap">
|
|
88
|
-
<Button onClick={() => setShowTop(true)}>Top</Button>
|
|
89
|
-
<Button onClick={() => setShowBottom(true)}>Bottom</Button>
|
|
90
|
-
<Button onClick={() => setShowRight(true)}>Right</Button>
|
|
91
|
-
<Button onClick={() => setShowLeft(true)}>Left</Button>
|
|
92
|
-
<Button onClick={() => setShowCenter(true)}>Center</Button>
|
|
93
|
-
</Horizontal>
|
|
94
|
-
|
|
95
|
-
{showBottom && (
|
|
96
|
-
<Modal.Overlay isOpen={showBottom} onClose={() => setShowBottom(false)} position="bottom">
|
|
97
|
-
<Modal.Container>
|
|
98
|
-
<Modal.Header>Title</Modal.Header>
|
|
99
|
-
<Modal.Body>
|
|
100
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
101
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
102
|
-
nisl consectetur et.
|
|
103
|
-
</Modal.Body>
|
|
104
|
-
<Modal.Footer>
|
|
105
|
-
<Button onClick={() => setShowBottom(false)}>Cancel</Button>
|
|
106
|
-
</Modal.Footer>
|
|
107
|
-
</Modal.Container>
|
|
108
|
-
</Modal.Overlay>
|
|
109
|
-
)}
|
|
110
|
-
{showTop && (
|
|
111
|
-
<Modal.Overlay isOpen={showTop} onClose={() => setShowTop(false)} position="top">
|
|
112
|
-
<Modal.Container>
|
|
113
|
-
<Modal.Header>Title</Modal.Header>
|
|
114
|
-
<Modal.Body>
|
|
115
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
116
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
117
|
-
nisl consectetur et.
|
|
118
|
-
</Modal.Body>
|
|
119
|
-
<Modal.Footer>
|
|
120
|
-
<Button onClick={() => setShowTop(false)}>Cancel</Button>
|
|
121
|
-
</Modal.Footer>
|
|
122
|
-
</Modal.Container>
|
|
123
|
-
</Modal.Overlay>
|
|
124
|
-
)}
|
|
125
|
-
{showLeft && (
|
|
126
|
-
<Modal.Overlay isOpen={showLeft} onClose={() => setShowLeft(false)} position="left">
|
|
127
|
-
<Modal.Container>
|
|
128
|
-
<Modal.Header>Title</Modal.Header>
|
|
129
|
-
<Modal.Body>
|
|
130
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
131
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
132
|
-
nisl consectetur et.
|
|
133
|
-
</Modal.Body>
|
|
134
|
-
<Modal.Footer>
|
|
135
|
-
<Button onClick={() => setShowLeft(false)}>Cancel</Button>
|
|
136
|
-
</Modal.Footer>
|
|
137
|
-
</Modal.Container>
|
|
138
|
-
</Modal.Overlay>
|
|
139
|
-
)}
|
|
140
|
-
{showRight && (
|
|
141
|
-
<Modal.Overlay isOpen={showRight} onClose={() => setShowRight(false)} position="right">
|
|
142
|
-
<Modal.Container>
|
|
143
|
-
<Modal.Header>Title</Modal.Header>
|
|
144
|
-
<Modal.Body>
|
|
145
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
146
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
147
|
-
nisl consectetur et.
|
|
148
|
-
</Modal.Body>
|
|
149
|
-
<Modal.Footer>
|
|
150
|
-
<Button onClick={() => setShowRight(false)}>Cancel</Button>
|
|
151
|
-
</Modal.Footer>
|
|
152
|
-
</Modal.Container>
|
|
153
|
-
</Modal.Overlay>
|
|
154
|
-
)}
|
|
155
|
-
{showCenter && (
|
|
156
|
-
<Modal.Overlay isOpen={showCenter} onClose={() => setShowCenter(false)} position="center">
|
|
157
|
-
<Modal.Container>
|
|
158
|
-
<Modal.Header>Title</Modal.Header>
|
|
159
|
-
<Modal.Body>
|
|
160
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
161
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
162
|
-
nisl consectetur et.
|
|
163
|
-
</Modal.Body>
|
|
164
|
-
<Modal.Footer>
|
|
165
|
-
<Button onClick={() => setShowCenter(false)}>Cancel</Button>
|
|
166
|
-
</Modal.Footer>
|
|
167
|
-
</Modal.Container>
|
|
168
|
-
</Modal.Overlay>
|
|
169
|
-
)}
|
|
170
|
-
</>;
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### **Blur**
|
|
174
|
-
|
|
175
|
-
“**_blur_**” adds a blur effect on the modal overlay.
|
|
176
|
-
|
|
177
|
-
```tsx
|
|
178
|
-
import { useState } from 'react';
|
|
179
|
-
import { Button } from '../Button/Button';
|
|
180
|
-
|
|
181
|
-
const [show, setShow] = useState(false);
|
|
182
|
-
|
|
183
|
-
<>
|
|
184
|
-
<Button onClick={() => setShow(true)}>Blur Overlay</Button>
|
|
185
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)} blur={10}>
|
|
186
|
-
<Modal.Container>
|
|
187
|
-
<Modal.Header>Title</Modal.Header>
|
|
188
|
-
<Modal.Body>
|
|
189
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
190
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
191
|
-
nisl consectetur et.
|
|
192
|
-
</Modal.Body>
|
|
193
|
-
<Modal.Footer>
|
|
194
|
-
<Button onClick={() => setShow(false)}>Cancel</Button>
|
|
195
|
-
</Modal.Footer>
|
|
196
|
-
</Modal.Container>
|
|
197
|
-
</Modal.Overlay>
|
|
198
|
-
</>;
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### **Prevent Close**
|
|
202
|
-
|
|
203
|
-
“**_isClosePrevented_**” prevents the user from closing the modal when clicking outside of it.
|
|
204
|
-
|
|
205
|
-
```tsx
|
|
206
|
-
import { useState } from 'react';
|
|
207
|
-
import { Button } from '../Button/Button';
|
|
208
|
-
|
|
209
|
-
const [show, setShow] = useState(false);
|
|
210
|
-
|
|
211
|
-
<>
|
|
212
|
-
<Button onClick={() => setShow(true)} isAuto>
|
|
213
|
-
Prevent Close on Overlay
|
|
214
|
-
</Button>
|
|
215
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)} isClosePrevented>
|
|
216
|
-
<Modal.Container>
|
|
217
|
-
<Modal.Header>Title</Modal.Header>
|
|
218
|
-
<Modal.Body>
|
|
219
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
|
220
|
-
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
|
|
221
|
-
nisl consectetur et.
|
|
222
|
-
</Modal.Body>
|
|
223
|
-
<Modal.Footer>
|
|
224
|
-
<Button onClick={() => setShow(false)}>Cancel</Button>
|
|
225
|
-
</Modal.Footer>
|
|
226
|
-
</Modal.Container>
|
|
227
|
-
</Modal.Overlay>
|
|
228
|
-
</>;
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
## **Modal Container**
|
|
232
|
-
|
|
233
|
-
It represents the main container or wrapper that holds all the content and components of a modal.
|
|
234
|
-
|
|
235
|
-
### **Shapes**
|
|
236
|
-
|
|
237
|
-
“**_shape_**” gives a sharp or rounded edges to the modal container.
|
|
238
|
-
|
|
239
|
-
```tsx
|
|
240
|
-
import { useState } from 'react';
|
|
241
|
-
import { Button } from '../Button/Button';
|
|
242
|
-
import { Text } from '../Text/Text';
|
|
243
|
-
import { Horizontal } from '../Layout/Horizontal/Horizontal';
|
|
244
|
-
|
|
245
|
-
const [showSharp, setShowSharp] = useState(false);
|
|
246
|
-
const [showRounded, setShowRounded] = useState(false);
|
|
247
|
-
|
|
248
|
-
<>
|
|
249
|
-
<Horizontal gap={10}>
|
|
250
|
-
<Button onClick={() => setShowSharp(true)}>Sharp</Button>
|
|
251
|
-
<Button onClick={() => setShowRounded(true)}>Rounded</Button>
|
|
252
|
-
</Horizontal>
|
|
253
|
-
|
|
254
|
-
{showSharp && (
|
|
255
|
-
<Modal.Overlay isOpen={showSharp} onClose={() => setShowSharp(false)}>
|
|
256
|
-
<Modal.Container variant="sharp">
|
|
257
|
-
<Modal.Body>
|
|
258
|
-
<Text isTruncated maxLines={2}>
|
|
259
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
|
|
260
|
-
quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel
|
|
261
|
-
scelerisque nisl consectetur et.
|
|
262
|
-
</Text>
|
|
263
|
-
</Modal.Body>
|
|
264
|
-
</Modal.Container>
|
|
265
|
-
</Modal.Overlay>
|
|
266
|
-
)}
|
|
267
|
-
{showRounded && (
|
|
268
|
-
<Modal.Overlay isOpen={showRounded} onClose={() => setShowRounded(false)}>
|
|
269
|
-
<Modal.Container variant="rounded">
|
|
270
|
-
<Modal.Body>
|
|
271
|
-
<Text isTruncated maxLines={2}>
|
|
272
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
|
|
273
|
-
quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel
|
|
274
|
-
scelerisque nisl consectetur et.
|
|
275
|
-
</Text>
|
|
276
|
-
</Modal.Body>
|
|
277
|
-
</Modal.Container>
|
|
278
|
-
</Modal.Overlay>
|
|
279
|
-
)}
|
|
280
|
-
</>;
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### **Shadow**
|
|
284
|
-
|
|
285
|
-
“**_shadow_**” adds a shadow effect on the modal container.
|
|
286
|
-
|
|
287
|
-
```tsx
|
|
288
|
-
import { useState } from 'react';
|
|
289
|
-
import { Button } from '../Button/Button';
|
|
290
|
-
import { Text } from '../Text/Text';
|
|
291
|
-
|
|
292
|
-
const [show, setShow] = useState(false);
|
|
293
|
-
|
|
294
|
-
<>
|
|
295
|
-
<Button onClick={() => setShow(true)}>Shadow</Button>
|
|
296
|
-
|
|
297
|
-
{show && (
|
|
298
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)}>
|
|
299
|
-
<Modal.Container shadow={{ boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.6)' }}>
|
|
300
|
-
<Modal.Body>
|
|
301
|
-
<Text isTruncated maxLines={2}>
|
|
302
|
-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
|
|
303
|
-
quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel
|
|
304
|
-
scelerisque nisl consectetur et.
|
|
305
|
-
</Text>
|
|
306
|
-
</Modal.Body>
|
|
307
|
-
</Modal.Container>
|
|
308
|
-
</Modal.Overlay>
|
|
309
|
-
)}
|
|
310
|
-
</>;
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
## **Modal Header**
|
|
314
|
-
|
|
315
|
-
It represents the header section of a modal, which typically contains a title or heading and optionally other elements such as a close button or additional controls.
|
|
316
|
-
|
|
317
|
-
### **Close Button Alignment**
|
|
318
|
-
|
|
319
|
-
“**_buttonPosition_**” places the closing button found in the header modal in the specified direction. It has a default position of “**right**”.
|
|
320
|
-
|
|
321
|
-
```tsx
|
|
322
|
-
import { useState } from 'react';
|
|
323
|
-
import { Button } from '../Button/Button';
|
|
324
|
-
import { Horizontal } from '../Layout/Horizontal/Horizontal';
|
|
325
|
-
|
|
326
|
-
const [showRight, setShowRight] = useState(false);
|
|
327
|
-
const [showWithout, setShowWithout] = useState(false);
|
|
328
|
-
const [showLeft, setShowLeft] = useState(false);
|
|
329
|
-
|
|
330
|
-
<>
|
|
331
|
-
<Horizontal gap={10}>
|
|
332
|
-
<Button onClick={() => setShowRight(true)} isAuto>
|
|
333
|
-
Close button on the right
|
|
334
|
-
</Button>
|
|
335
|
-
<Button onClick={() => setShowWithout(true)} isAuto>
|
|
336
|
-
Without Close Button
|
|
337
|
-
</Button>
|
|
338
|
-
<Button onClick={() => setShowLeft(true)} isAuto>
|
|
339
|
-
Without Close left
|
|
340
|
-
</Button>
|
|
341
|
-
</Horizontal>
|
|
342
|
-
{showRight && (
|
|
343
|
-
<Modal.Overlay isOpen={showRight} onClose={() => setShowRight(false)}>
|
|
344
|
-
<Modal.Container>
|
|
345
|
-
<Modal.Header> Close Button</Modal.Header>
|
|
346
|
-
<Modal.Body>Cras mattis consectetur purus sit amet fermentum.</Modal.Body>
|
|
347
|
-
<Modal.Footer>
|
|
348
|
-
<Button onClick={() => setShowRight(false)}>Cancel</Button>
|
|
349
|
-
</Modal.Footer>
|
|
350
|
-
</Modal.Container>
|
|
351
|
-
</Modal.Overlay>
|
|
352
|
-
)}
|
|
353
|
-
{showWithout && (
|
|
354
|
-
<Modal.Overlay isOpen={showWithout} onClose={() => setShowWithout(false)}>
|
|
355
|
-
<Modal.Container>
|
|
356
|
-
<Modal.Header buttonPosition="none"> Close Button</Modal.Header>
|
|
357
|
-
<Modal.Body>Cras mattis consectetur purus sit amet fermentum.</Modal.Body>
|
|
358
|
-
<Modal.Footer>
|
|
359
|
-
<Button onClick={() => setShowWithout(false)}>Cancel</Button>
|
|
360
|
-
</Modal.Footer>
|
|
361
|
-
</Modal.Container>
|
|
362
|
-
</Modal.Overlay>
|
|
363
|
-
)}
|
|
364
|
-
{showLeft && (
|
|
365
|
-
<Modal.Overlay isOpen={showLeft} onClose={() => setShowLeft(false)}>
|
|
366
|
-
<Modal.Container>
|
|
367
|
-
<Modal.Header buttonPosition="left">Close Button</Modal.Header>
|
|
368
|
-
<Modal.Body>Cras mattis consectetur purus sit amet fermentum.</Modal.Body>
|
|
369
|
-
<Modal.Footer>
|
|
370
|
-
<Button onClick={() => setShowLeft(false)}>Cancel</Button>
|
|
371
|
-
</Modal.Footer>
|
|
372
|
-
</Modal.Container>
|
|
373
|
-
</Modal.Overlay>
|
|
374
|
-
)}
|
|
375
|
-
</>;
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
## **Modal Body**
|
|
379
|
-
|
|
380
|
-
It represents the main content area of a modal, where the primary information or user interaction elements are displayed.
|
|
381
|
-
|
|
382
|
-
### **LargeContent**
|
|
383
|
-
|
|
384
|
-
A vertical scroll is displayed, if the content height exceed the body height.
|
|
385
|
-
|
|
386
|
-
```tsx
|
|
387
|
-
import { useState } from 'react';
|
|
388
|
-
import { Button } from '../Button/Button';
|
|
389
|
-
import { Text } from '../Text/Text';
|
|
390
|
-
|
|
391
|
-
const [show, setShow] = useState(false);
|
|
392
|
-
|
|
393
|
-
<>
|
|
394
|
-
<Button onClick={() => setShow(true)}>Scroll</Button>
|
|
395
|
-
{show && (
|
|
396
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)}>
|
|
397
|
-
<Modal.Container>
|
|
398
|
-
<Modal.Header buttonPosition="none">
|
|
399
|
-
<Text size="lg" weight="semibold">
|
|
400
|
-
Title
|
|
401
|
-
</Text>
|
|
402
|
-
</Modal.Header>
|
|
403
|
-
<Modal.Body height="200px">
|
|
404
|
-
Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis
|
|
405
|
-
consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur
|
|
406
|
-
purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit
|
|
407
|
-
amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet Cras
|
|
408
|
-
mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis
|
|
409
|
-
consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur
|
|
410
|
-
purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit
|
|
411
|
-
amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet
|
|
412
|
-
fermentum.Cras mattis consectetur purus sit amet fermentum.
|
|
413
|
-
</Modal.Body>
|
|
414
|
-
<Modal.Footer>
|
|
415
|
-
<Button onClick={() => setShow(false)}>Cancel</Button>
|
|
416
|
-
</Modal.Footer>
|
|
417
|
-
</Modal.Container>
|
|
418
|
-
</Modal.Overlay>
|
|
419
|
-
)}
|
|
420
|
-
</>;
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
## **Modal Footer**
|
|
424
|
-
|
|
425
|
-
It represents the footer section of a modal, which typically contains buttons or controls for actions related to the modal's content.
|
|
426
|
-
|
|
427
|
-
```tsx
|
|
428
|
-
import { useState } from 'react';
|
|
429
|
-
import { Button } from '../Button/Button';
|
|
430
|
-
import { Text } from '../Text/Text';
|
|
431
|
-
|
|
432
|
-
const [show, setShow] = useState(false);
|
|
433
|
-
|
|
434
|
-
<>
|
|
435
|
-
<Button onClick={() => setShow(true)}>Footer</Button>
|
|
436
|
-
{show && (
|
|
437
|
-
<Modal.Overlay isOpen={show} onClose={() => setShow(false)}>
|
|
438
|
-
<Modal.Container>
|
|
439
|
-
<Modal.Header buttonPosition="none">
|
|
440
|
-
<Text size="lg" weight="semibold">
|
|
441
|
-
Title
|
|
442
|
-
</Text>
|
|
443
|
-
</Modal.Header>
|
|
444
|
-
<Modal.Body height="200px">
|
|
445
|
-
Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis
|
|
446
|
-
consectetur purus sit amet fermentum.Cras mattis consectetur purus sit amet fermentum.Cras mattis consectetur
|
|
447
|
-
purus sit amet fermentum.
|
|
448
|
-
</Modal.Body>
|
|
449
|
-
<Modal.Footer>
|
|
450
|
-
<Button onClick={() => setShow(false)}>Cancel</Button>
|
|
451
|
-
</Modal.Footer>
|
|
452
|
-
</Modal.Container>
|
|
453
|
-
</Modal.Overlay>
|
|
454
|
-
)}
|
|
455
|
-
</>;
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
## **Types**
|
|
459
|
-
|
|
460
|
-
```tsx static
|
|
461
|
-
type Position = 'top' | 'left' | 'right' | 'bottom' | 'center';
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
```tsx static
|
|
465
|
-
type Shape = 'sharp' | 'rounded';
|
|
466
|
-
```
|
|
467
|
-
|
|
468
|
-
```tsx static
|
|
469
|
-
type CloseButtonPosition = 'left' | 'right' | 'none';
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
```tsx static
|
|
473
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
## **Default Styles**
|
|
477
|
-
|
|
478
|
-
#### **OverlayAlignments**
|
|
479
|
-
|
|
480
|
-
```tsx static
|
|
481
|
-
const OverlayAlignments: Record<Position, CSSProperties> = {
|
|
482
|
-
center: { justifyContent: 'center', alignItems: 'center' },
|
|
483
|
-
top: { justifyContent: 'center' },
|
|
484
|
-
right: { justifyContent: 'flex-end', alignItems: 'center' },
|
|
485
|
-
bottom: { justifyContent: 'center', alignItems: 'flex-end' },
|
|
486
|
-
left: { alignItems: 'center' },
|
|
487
|
-
};
|
|
488
|
-
```
|
|
489
|
-
|
|
490
|
-
#### **ContainerShapes**
|
|
491
|
-
|
|
492
|
-
```tsx static
|
|
493
|
-
const ContainerShapes: Record<Shape, CSSProperties> = {
|
|
494
|
-
sharp: { borderRadius: 0 },
|
|
495
|
-
rounded: { borderRadius: 4 },
|
|
496
|
-
};
|
|
497
|
-
```
|
|
498
|
-
|
|
499
|
-
#### **HeaderIconSizes**
|
|
500
|
-
|
|
501
|
-
```tsx static
|
|
502
|
-
const HeaderIconSizes: Record<Size, number> = {
|
|
503
|
-
xs: 12,
|
|
504
|
-
sm: 16,
|
|
505
|
-
md: 20,
|
|
506
|
-
lg: 24,
|
|
507
|
-
xl: 28,
|
|
508
|
-
};
|
|
509
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { ModalType } from './Modal/Modal.props';
|
|
4
|
-
import { ModalBody, ModalContainer, ModalFooter, ModalHeader, ModalOverlay } from './Modal/Modal.view';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* It is a custom content overlay that appears on top of the main screen.
|
|
8
|
-
*/
|
|
9
|
-
// eslint-disable-next-line react/prop-types
|
|
10
|
-
export const Modal: ModalType = ({ children }) => <>{children}</>;
|
|
11
|
-
|
|
12
|
-
Modal.Overlay = ModalOverlay;
|
|
13
|
-
Modal.Container = ModalContainer;
|
|
14
|
-
Modal.Header = ModalHeader;
|
|
15
|
-
Modal.Body = ModalBody;
|
|
16
|
-
Modal.Footer = ModalFooter;
|
|
17
|
-
|
|
18
|
-
export default Modal;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Center } from '../Layout/Center/Center';
|
|
4
|
-
|
|
5
|
-
interface SvgProps {
|
|
6
|
-
size?: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const ArrowDownSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
|
|
12
|
-
<Center width={`${size}px`} height={`${size}px`}>
|
|
13
|
-
<svg viewBox="0 -4.5 20 20" version="1.1" fill="#000000" {...props}>
|
|
14
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
15
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
16
|
-
<g id="SVGRepo_iconCarrier">
|
|
17
|
-
<title>arrow_down [#338]</title> <desc>Created with Sketch.</desc>
|
|
18
|
-
<defs> </defs>
|
|
19
|
-
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
20
|
-
<g id="Dribbble-Light-Preview" transform="translate(-220.000000, -6684.000000)" fill="#000000">
|
|
21
|
-
<g id="icons" transform="translate(56.000000, 160.000000)">
|
|
22
|
-
<path
|
|
23
|
-
d="M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583"
|
|
24
|
-
id="arrow_down-[#338]"
|
|
25
|
-
></path>
|
|
26
|
-
</g>
|
|
27
|
-
</g>
|
|
28
|
-
</g>
|
|
29
|
-
</g>
|
|
30
|
-
</svg>
|
|
31
|
-
</Center>
|
|
32
|
-
);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Center } from '../Layout/Center/Center';
|
|
4
|
-
|
|
5
|
-
interface SvgProps {
|
|
6
|
-
size?: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const ArrowUpSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
|
|
12
|
-
<Center width={`${size}px`} height={`${size}px`}>
|
|
13
|
-
<svg width={`${size}px`} height={`${size}px`} viewBox="0 -4.5 20 20" version="1.1" fill="#000000" {...props}>
|
|
14
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
15
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
16
|
-
<g id="SVGRepo_iconCarrier">
|
|
17
|
-
<title>arrow_up [#337]</title> <desc>Created with Sketch.</desc>
|
|
18
|
-
<defs> </defs>
|
|
19
|
-
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
20
|
-
<g id="Dribbble-Light-Preview" transform="translate(-260.000000, -6684.000000)" fill="#000000">
|
|
21
|
-
<g id="icons" transform="translate(56.000000, 160.000000)">
|
|
22
|
-
<path
|
|
23
|
-
d="M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378"
|
|
24
|
-
id="arrow_up-[#337]"
|
|
25
|
-
></path>
|
|
26
|
-
</g>
|
|
27
|
-
</g>
|
|
28
|
-
</g>
|
|
29
|
-
</g>
|
|
30
|
-
</svg>
|
|
31
|
-
</Center>
|
|
32
|
-
);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Center } from '../Layout/Center/Center';
|
|
4
|
-
|
|
5
|
-
interface SvgProps {
|
|
6
|
-
size?: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const CheckSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
|
|
12
|
-
<Center width={`${size}px`} height={`${size}px`}>
|
|
13
|
-
<svg
|
|
14
|
-
width={`${size}px`}
|
|
15
|
-
height={`${size}px`}
|
|
16
|
-
viewBox="0 0 24 24"
|
|
17
|
-
fill="none"
|
|
18
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
19
|
-
{...props}
|
|
20
|
-
>
|
|
21
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0" />
|
|
22
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round" stroke="#CCCCCC" strokeWidth="0.048" />
|
|
23
|
-
<g id="SVGRepo_iconCarrier">
|
|
24
|
-
<path d="M17.0001 9L10 16L7 13" stroke={color} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
25
|
-
</g>
|
|
26
|
-
</svg>
|
|
27
|
-
</Center>
|
|
28
|
-
);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Center } from '../Layout/Center/Center';
|
|
4
|
-
|
|
5
|
-
interface SvgProps {
|
|
6
|
-
size?: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const CloseSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
|
|
12
|
-
<Center width={`${size}px`} height={`${size}px`}>
|
|
13
|
-
<svg
|
|
14
|
-
width={`${size}px`}
|
|
15
|
-
height={`${size}px`}
|
|
16
|
-
viewBox="0 0 1024 1024"
|
|
17
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
-
fill="#000000"
|
|
19
|
-
{...props}
|
|
20
|
-
>
|
|
21
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
22
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
23
|
-
<g id="SVGRepo_iconCarrier">
|
|
24
|
-
<path
|
|
25
|
-
fill={color}
|
|
26
|
-
d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
27
|
-
></path>
|
|
28
|
-
</g>
|
|
29
|
-
</svg>
|
|
30
|
-
</Center>
|
|
31
|
-
);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Center } from '../Layout/Center/Center';
|
|
4
|
-
|
|
5
|
-
interface SvgProps {
|
|
6
|
-
size?: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const CloseEyeSvg: React.FC<SvgProps> = ({ size = 64, color = '#2F4858', ...props }) => (
|
|
12
|
-
<Center width={`${size}px`} height={`${size}px`}>
|
|
13
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
14
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
15
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
16
|
-
<g id="SVGRepo_iconCarrier">
|
|
17
|
-
<path
|
|
18
|
-
fillRule="evenodd"
|
|
19
|
-
clipRule="evenodd"
|
|
20
|
-
d="M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z"
|
|
21
|
-
fill={color}
|
|
22
|
-
></path>
|
|
23
|
-
</g>
|
|
24
|
-
</svg>
|
|
25
|
-
</Center>
|
|
26
|
-
);
|