@mirai/ui 1.0.79 → 1.0.81-beta
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/README.md +9 -2
- package/build/components/Action/Action.stories.js +6 -7
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +1 -1
- package/build/components/Button/Button.stories.js +26 -8
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +3 -3
- package/build/components/Calendar/Calendar.Month.js +3 -1
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +24 -7
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.js +11 -3
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +8 -4
- package/build/components/Calendar/Calendar.stories.js +79 -26
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +7464 -7464
- package/build/components/Form/Form.constants.js +3 -1
- package/build/components/Form/Form.constants.js.map +1 -1
- package/build/components/Form/Form.js +5 -6
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/Form.stories.js +171 -30
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/InputDate/InputDate.stories.js +53 -42
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +3 -3
- package/build/components/InputNumber/InputNumber.js +1 -2
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/InputNumber.stories.js +30 -15
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +9 -9
- package/build/components/InputOption/InputOption.js +2 -3
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +29 -14
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +22 -33
- package/build/components/InputSelect/InputSelect.stories.js +48 -28
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputText/InputText.js +1 -1
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.stories.js +43 -30
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +0 -1
- package/build/components/Menu/Menu.Option.js +0 -2
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +1 -2
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.stories.js +42 -20
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Modal/Modal.js +2 -3
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.module.css +1 -0
- package/build/components/Modal/Modal.stories.js +77 -20
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +116 -113
- package/build/components/Notification/Notification.js +7 -4
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +4 -0
- package/build/components/Notification/Notification.stories.js +8 -7
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +35 -0
- package/build/components/Table/Table.stories.js +55 -20
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/Table.stories.module.css +12 -0
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +16 -24
- package/build/components/Tooltip/Tooltip.js +30 -8
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/Tooltip.module.css +32 -0
- package/build/components/Tooltip/Tooltip.stories.js +72 -8
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +79 -22
- package/build/hooks/useDevice.stories.js +9 -8
- package/build/hooks/useDevice.stories.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.js +6 -3
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.stories.js +29 -11
- package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +23 -28
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Input/Input.js +1 -0
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Input/Input.stories.js +50 -18
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Input/__tests__/__snapshots__/Input.test.js.snap +5 -0
- package/build/primitives/Layer/Layer.js +9 -3
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.js +13 -8
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.module.css +0 -0
- package/build/primitives/Layer/helpers/getLayerPosition.js +43 -5
- package/build/primitives/Layer/helpers/getLayerPosition.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +3 -3
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/Pressable.module.css +1 -0
- package/build/primitives/Pressable/Pressable.stories.js +7 -7
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +9 -9
- package/build/primitives/Radio/Radio.js +7 -4
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/Radio.stories.js +29 -11
- package/build/primitives/Radio/Radio.stories.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.js +2 -2
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +27 -22
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/Select/Select.stories.js +28 -12
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Switch/Switch.js +4 -2
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/Switch.stories.js +29 -10
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Text/Text.stories.js +6 -6
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/View/View.stories.js +7 -7
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/theme/theme.stories.js +60 -0
- package/build/theme/theme.stories.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","
|
|
1
|
+
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","useState","visible","setVisible","visibleSecond","setVisibleSecond","handleBack","others","console","log","handleClose","handleOverflow","padding","storyName","args","blur","fit","overflow","portal","argTypes"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport { Button, Text, View } from '../../';\nimport { Modal } from './Modal';\n\nexport default {\n title: 'Components',\n};\n\nexport const Story = (props) => {\n const [visible, setVisible] = useState(true);\n const [visibleSecond, setVisibleSecond] = useState(false);\n\n const handleBack = (...others) => {\n console.log('<Modal>::onBack', ...others);\n setVisibleSecond(false);\n };\n\n const handleClose = (...others) => {\n console.log('<Modal>::onClose', ...others);\n setVisible(false);\n };\n\n const handleOverflow = (...others) => console.log('<Modal>::onOverflow', ...others);\n\n return (\n <>\n <Text bold headline>\n What is Lorem Ipsum?\n </Text>\n <Text>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make\n a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,\n remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing\n Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions\n of Lorem Ipsum.\n </Text>\n\n <Button onPress={() => setVisible(true)}>Show modal</Button>\n\n <Text bold headline>\n Where does it come from?\n </Text>\n <Text>\n Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin\n literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney\n College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and\n going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum\n comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by\n Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.\n The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32.\n </Text>\n\n <Modal {...props} onClose={handleClose} onOverflow={handleOverflow} visible={visible}>\n <View style={{ padding: 'var(--mirai-ui-space-L)' }}>\n <Text>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi nemo adipisci consequatur et tenetur natus\n dolore, facere facilis placeat nostrum unde cumque. Voluptas enim rerum voluptatum, deserunt fugiat\n aspernatur excepturi.\n </Text>\n <Button onPress={() => setVisibleSecond(true)}>Show another Modal</Button>\n </View>\n </Modal>\n\n <Modal {...props} onBack={handleBack} onOverflow={handleOverflow} visible={visibleSecond}>\n <View style={{ padding: 'var(--mirai-ui-space-L)' }}>\n <Text>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi nemo adipisci consequatur et tenetur natus\n dolore, facere facilis placeat nostrum unde cumque. Voluptas enim rerum voluptatum, deserunt fugiat\n aspernatur excepturi.\n </Text>\n </View>\n </Modal>\n </>\n );\n};\nStory.storyName = 'Modal';\n\nStory.args = {\n blur: false,\n fit: false,\n overflow: true,\n portal: false,\n title: 'title',\n // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;AAAA;AAEA;AACA;AAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEjB;EACbA,KAAK,EAAE;AACT,CAAC;AAAA;AAEM,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK,EAAK;EAC9B,gBAA8B,IAAAC,eAAQ,EAAC,IAAI,CAAC;IAAA;IAArCC,OAAO;IAAEC,UAAU;EAC1B,iBAA0C,IAAAF,eAAQ,EAAC,KAAK,CAAC;IAAA;IAAlDG,aAAa;IAAEC,gBAAgB;EAEtC,IAAMC,UAAU,GAAG,SAAbA,UAAU,GAAkB;IAAA;IAAA,kCAAXC,MAAM;MAANA,MAAM;IAAA;IAC3B,YAAAC,OAAO,EAACC,GAAG,kBAAC,iBAAiB,SAAKF,MAAM,EAAC;IACzCF,gBAAgB,CAAC,KAAK,CAAC;EACzB,CAAC;EAED,IAAMK,WAAW,GAAG,SAAdA,WAAW,GAAkB;IAAA;IAAA,mCAAXH,MAAM;MAANA,MAAM;IAAA;IAC5B,aAAAC,OAAO,EAACC,GAAG,mBAAC,kBAAkB,SAAKF,MAAM,EAAC;IAC1CJ,UAAU,CAAC,KAAK,CAAC;EACnB,CAAC;EAED,IAAMQ,cAAc,GAAG,SAAjBA,cAAc;IAAA;IAAA,mCAAOJ,MAAM;MAANA,MAAM;IAAA;IAAA,OAAK,aAAAC,OAAO,EAACC,GAAG,mBAAC,qBAAqB,SAAKF,MAAM,EAAC;EAAA;EAEnF,oBACE,yEACE,6BAAC,MAAI;IAAC,IAAI;IAAC,QAAQ;EAAA,0BAEZ,eACP,6BAAC,MAAI,ykBAOE,eAEP,6BAAC,QAAM;IAAC,OAAO,EAAE;MAAA,OAAMJ,UAAU,CAAC,IAAI,CAAC;IAAA;EAAC,gBAAoB,eAE5D,6BAAC,MAAI;IAAC,IAAI;IAAC,QAAQ;EAAA,8BAEZ,eACP,6BAAC,MAAI,0wBAQE,eAEP,6BAAC,YAAK,eAAKH,KAAK;IAAE,OAAO,EAAEU,WAAY;IAAC,UAAU,EAAEC,cAAe;IAAC,OAAO,EAAET;EAAQ,iBACnF,6BAAC,MAAI;IAAC,KAAK,EAAE;MAAEU,OAAO,EAAE;IAA0B;EAAE,gBAClD,6BAAC,MAAI,8OAIE,eACP,6BAAC,QAAM;IAAC,OAAO,EAAE;MAAA,OAAMP,gBAAgB,CAAC,IAAI,CAAC;IAAA;EAAC,wBAA4B,CACrE,CACD,eAER,6BAAC,YAAK,eAAKL,KAAK;IAAE,MAAM,EAAEM,UAAW;IAAC,UAAU,EAAEK,cAAe;IAAC,OAAO,EAAEP;EAAc,iBACvF,6BAAC,MAAI;IAAC,KAAK,EAAE;MAAEQ,OAAO,EAAE;IAA0B;EAAE,gBAClD,6BAAC,MAAI,8OAIE,CACF,CACD,CACP;AAEP,CAAC;AAAC;AACFb,KAAK,CAACc,SAAS,GAAG,OAAO;AAEzBd,KAAK,CAACe,IAAI;EACRC,IAAI,EAAE,KAAK;EACXC,GAAG,EAAE,KAAK;EACVC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,KAAK;EACbpB,KAAK,EAAE;AAAO,gCAEb,aAAa,EAAG,YAAY,yCACtB,CAAC,CAAC,eACV;AAEDC,KAAK,CAACoB,QAAQ,GAAG,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`component:<Modal> Mobile environment prop:onClose 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<div
|
|
6
6
|
class="pressable container overflow visible"
|
|
7
7
|
data-testid="mirai-onClose-overflow"
|
|
8
8
|
>
|
|
@@ -12,66 +12,67 @@ exports[`component:<Modal> Mobile environment prop:onClose 1`] = `
|
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
14
14
|
class="view row header"
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
</button>
|
|
18
|
-
<button
|
|
19
|
-
class="pressable"
|
|
20
|
-
data-testid="mirai-onClose-button-close"
|
|
21
|
-
>
|
|
22
|
-
<span
|
|
23
|
-
class="icon headline-3 icon"
|
|
24
|
-
>
|
|
25
|
-
<svg
|
|
26
|
-
fill="currentColor"
|
|
27
|
-
height="1em"
|
|
28
|
-
stroke="currentColor"
|
|
29
|
-
stroke-width="0"
|
|
30
|
-
viewBox="0 0 24 24"
|
|
31
|
-
width="1em"
|
|
32
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
33
15
|
>
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
<button
|
|
17
|
+
class="pressable"
|
|
18
|
+
data-testid="mirai-onClose-button-close"
|
|
19
|
+
>
|
|
20
|
+
<span
|
|
21
|
+
class="icon headline-3 icon"
|
|
22
|
+
>
|
|
23
|
+
<svg
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
height="1em"
|
|
26
|
+
stroke="currentColor"
|
|
27
|
+
stroke-width="0"
|
|
28
|
+
viewBox="0 0 24 24"
|
|
29
|
+
width="1em"
|
|
30
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
+
>
|
|
32
|
+
<path
|
|
33
|
+
d="M24 24H0V0h24v24z"
|
|
34
|
+
fill="none"
|
|
35
|
+
opacity=".87"
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
39
|
+
/>
|
|
40
|
+
</svg>
|
|
41
|
+
</span>
|
|
42
|
+
</button>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
45
46
|
</DocumentFragment>
|
|
46
47
|
`;
|
|
47
48
|
|
|
48
49
|
exports[`component:<Modal> Mobile environment prop:visible 1`] = `
|
|
49
50
|
<DocumentFragment>
|
|
50
|
-
<
|
|
51
|
+
<div
|
|
51
52
|
class="pressable container overflow visible"
|
|
52
53
|
>
|
|
53
54
|
<div
|
|
54
55
|
class="view fit modal calcWidth visible"
|
|
55
56
|
/>
|
|
56
|
-
</
|
|
57
|
+
</div>
|
|
57
58
|
</DocumentFragment>
|
|
58
59
|
`;
|
|
59
60
|
|
|
60
61
|
exports[`component:<Modal> inherit:className 1`] = `
|
|
61
62
|
<DocumentFragment>
|
|
62
|
-
<
|
|
63
|
+
<div
|
|
63
64
|
class="pressable container overflow"
|
|
64
65
|
>
|
|
65
66
|
<div
|
|
66
67
|
class="view fit modal calcWidth mirai"
|
|
67
68
|
/>
|
|
68
|
-
</
|
|
69
|
+
</div>
|
|
69
70
|
</DocumentFragment>
|
|
70
71
|
`;
|
|
71
72
|
|
|
72
73
|
exports[`component:<Modal> prop:children 1`] = `
|
|
73
74
|
<DocumentFragment>
|
|
74
|
-
<
|
|
75
|
+
<div
|
|
75
76
|
class="pressable container overflow"
|
|
76
77
|
>
|
|
77
78
|
<div
|
|
@@ -81,25 +82,25 @@ exports[`component:<Modal> prop:children 1`] = `
|
|
|
81
82
|
children
|
|
82
83
|
</span>
|
|
83
84
|
</div>
|
|
84
|
-
</
|
|
85
|
+
</div>
|
|
85
86
|
</DocumentFragment>
|
|
86
87
|
`;
|
|
87
88
|
|
|
88
89
|
exports[`component:<Modal> prop:fit 1`] = `
|
|
89
90
|
<DocumentFragment>
|
|
90
|
-
<
|
|
91
|
+
<div
|
|
91
92
|
class="pressable container overflow"
|
|
92
93
|
>
|
|
93
94
|
<div
|
|
94
95
|
class="view fit modal"
|
|
95
96
|
/>
|
|
96
|
-
</
|
|
97
|
+
</div>
|
|
97
98
|
</DocumentFragment>
|
|
98
99
|
`;
|
|
99
100
|
|
|
100
101
|
exports[`component:<Modal> prop:onBack 1`] = `
|
|
101
102
|
<DocumentFragment>
|
|
102
|
-
<
|
|
103
|
+
<div
|
|
103
104
|
class="pressable container overflow visible"
|
|
104
105
|
data-testid="mirai-onBack-overflow"
|
|
105
106
|
>
|
|
@@ -109,41 +110,42 @@ exports[`component:<Modal> prop:onBack 1`] = `
|
|
|
109
110
|
>
|
|
110
111
|
<div
|
|
111
112
|
class="view row header"
|
|
112
|
-
/>
|
|
113
|
-
</div>
|
|
114
|
-
</button>
|
|
115
|
-
<button
|
|
116
|
-
class="pressable"
|
|
117
|
-
data-testid="mirai-onBack-button-back"
|
|
118
|
-
>
|
|
119
|
-
<span
|
|
120
|
-
class="icon headline-3 icon"
|
|
121
|
-
>
|
|
122
|
-
<svg
|
|
123
|
-
fill="currentColor"
|
|
124
|
-
height="1em"
|
|
125
|
-
stroke="currentColor"
|
|
126
|
-
stroke-width="0"
|
|
127
|
-
viewBox="0 0 24 24"
|
|
128
|
-
width="1em"
|
|
129
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
130
113
|
>
|
|
131
|
-
<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
114
|
+
<button
|
|
115
|
+
class="pressable"
|
|
116
|
+
data-testid="mirai-onBack-button-back"
|
|
117
|
+
>
|
|
118
|
+
<span
|
|
119
|
+
class="icon headline-3 icon"
|
|
120
|
+
>
|
|
121
|
+
<svg
|
|
122
|
+
fill="currentColor"
|
|
123
|
+
height="1em"
|
|
124
|
+
stroke="currentColor"
|
|
125
|
+
stroke-width="0"
|
|
126
|
+
viewBox="0 0 24 24"
|
|
127
|
+
width="1em"
|
|
128
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
129
|
+
>
|
|
130
|
+
<path
|
|
131
|
+
d="M0 0h24v24H0V0z"
|
|
132
|
+
fill="none"
|
|
133
|
+
/>
|
|
134
|
+
<path
|
|
135
|
+
d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
|
|
136
|
+
/>
|
|
137
|
+
</svg>
|
|
138
|
+
</span>
|
|
139
|
+
</button>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
141
143
|
</DocumentFragment>
|
|
142
144
|
`;
|
|
143
145
|
|
|
144
146
|
exports[`component:<Modal> prop:onClose 1`] = `
|
|
145
147
|
<DocumentFragment>
|
|
146
|
-
<
|
|
148
|
+
<div
|
|
147
149
|
class="pressable container overflow visible"
|
|
148
150
|
data-testid="mirai-onClose-overflow"
|
|
149
151
|
>
|
|
@@ -153,42 +155,43 @@ exports[`component:<Modal> prop:onClose 1`] = `
|
|
|
153
155
|
>
|
|
154
156
|
<div
|
|
155
157
|
class="view row header"
|
|
156
|
-
/>
|
|
157
|
-
</div>
|
|
158
|
-
</button>
|
|
159
|
-
<button
|
|
160
|
-
class="pressable"
|
|
161
|
-
data-testid="mirai-onClose-button-close"
|
|
162
|
-
>
|
|
163
|
-
<span
|
|
164
|
-
class="icon headline-3 icon"
|
|
165
|
-
>
|
|
166
|
-
<svg
|
|
167
|
-
fill="currentColor"
|
|
168
|
-
height="1em"
|
|
169
|
-
stroke="currentColor"
|
|
170
|
-
stroke-width="0"
|
|
171
|
-
viewBox="0 0 24 24"
|
|
172
|
-
width="1em"
|
|
173
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
174
158
|
>
|
|
175
|
-
<
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
159
|
+
<button
|
|
160
|
+
class="pressable"
|
|
161
|
+
data-testid="mirai-onClose-button-close"
|
|
162
|
+
>
|
|
163
|
+
<span
|
|
164
|
+
class="icon headline-3 icon"
|
|
165
|
+
>
|
|
166
|
+
<svg
|
|
167
|
+
fill="currentColor"
|
|
168
|
+
height="1em"
|
|
169
|
+
stroke="currentColor"
|
|
170
|
+
stroke-width="0"
|
|
171
|
+
viewBox="0 0 24 24"
|
|
172
|
+
width="1em"
|
|
173
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
174
|
+
>
|
|
175
|
+
<path
|
|
176
|
+
d="M24 24H0V0h24v24z"
|
|
177
|
+
fill="none"
|
|
178
|
+
opacity=".87"
|
|
179
|
+
/>
|
|
180
|
+
<path
|
|
181
|
+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
182
|
+
/>
|
|
183
|
+
</svg>
|
|
184
|
+
</span>
|
|
185
|
+
</button>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
186
189
|
</DocumentFragment>
|
|
187
190
|
`;
|
|
188
191
|
|
|
189
192
|
exports[`component:<Modal> prop:onOverflow 1`] = `
|
|
190
193
|
<DocumentFragment>
|
|
191
|
-
<
|
|
194
|
+
<div
|
|
192
195
|
class="pressable container overflow visible"
|
|
193
196
|
data-testid="mirai-onOverflow-overflow"
|
|
194
197
|
>
|
|
@@ -196,25 +199,25 @@ exports[`component:<Modal> prop:onOverflow 1`] = `
|
|
|
196
199
|
class="view fit modal calcWidth visible"
|
|
197
200
|
data-testid="mirai-onOverflow"
|
|
198
201
|
/>
|
|
199
|
-
</
|
|
202
|
+
</div>
|
|
200
203
|
</DocumentFragment>
|
|
201
204
|
`;
|
|
202
205
|
|
|
203
206
|
exports[`component:<Modal> prop:portal 1`] = `
|
|
204
207
|
<DocumentFragment>
|
|
205
|
-
<
|
|
208
|
+
<div
|
|
206
209
|
class="pressable container overflow"
|
|
207
210
|
>
|
|
208
211
|
<div
|
|
209
212
|
class="view fit modal calcWidth"
|
|
210
213
|
/>
|
|
211
|
-
</
|
|
214
|
+
</div>
|
|
212
215
|
</DocumentFragment>
|
|
213
216
|
`;
|
|
214
217
|
|
|
215
218
|
exports[`component:<Modal> prop:title 1`] = `
|
|
216
219
|
<DocumentFragment>
|
|
217
|
-
<
|
|
220
|
+
<div
|
|
218
221
|
class="pressable container overflow"
|
|
219
222
|
>
|
|
220
223
|
<div
|
|
@@ -230,61 +233,61 @@ exports[`component:<Modal> prop:title 1`] = `
|
|
|
230
233
|
</h3>
|
|
231
234
|
</div>
|
|
232
235
|
</div>
|
|
233
|
-
</
|
|
236
|
+
</div>
|
|
234
237
|
</DocumentFragment>
|
|
235
238
|
`;
|
|
236
239
|
|
|
237
240
|
exports[`component:<Modal> prop:visible & prop:blur 1`] = `
|
|
238
241
|
<DocumentFragment>
|
|
239
|
-
<
|
|
242
|
+
<div
|
|
240
243
|
class="pressable container overflow blur visible"
|
|
241
244
|
>
|
|
242
245
|
<div
|
|
243
246
|
class="view fit modal calcWidth visible"
|
|
244
247
|
/>
|
|
245
|
-
</
|
|
248
|
+
</div>
|
|
246
249
|
</DocumentFragment>
|
|
247
250
|
`;
|
|
248
251
|
|
|
249
252
|
exports[`component:<Modal> prop:visible & prop:overflow (false) 1`] = `
|
|
250
253
|
<DocumentFragment>
|
|
251
|
-
<
|
|
254
|
+
<div
|
|
252
255
|
class="pressable container visible"
|
|
253
256
|
>
|
|
254
257
|
<div
|
|
255
258
|
class="view fit modal calcWidth visible"
|
|
256
259
|
/>
|
|
257
|
-
</
|
|
260
|
+
</div>
|
|
258
261
|
</DocumentFragment>
|
|
259
262
|
`;
|
|
260
263
|
|
|
261
264
|
exports[`component:<Modal> prop:visible renders 1`] = `
|
|
262
265
|
<DocumentFragment>
|
|
263
|
-
<
|
|
266
|
+
<div
|
|
264
267
|
class="pressable container overflow visible"
|
|
265
268
|
>
|
|
266
269
|
<div
|
|
267
270
|
class="view fit modal calcWidth visible"
|
|
268
271
|
/>
|
|
269
|
-
</
|
|
272
|
+
</div>
|
|
270
273
|
</DocumentFragment>
|
|
271
274
|
`;
|
|
272
275
|
|
|
273
276
|
exports[`component:<Modal> renders 1`] = `
|
|
274
277
|
<DocumentFragment>
|
|
275
|
-
<
|
|
278
|
+
<div
|
|
276
279
|
class="pressable container overflow"
|
|
277
280
|
>
|
|
278
281
|
<div
|
|
279
282
|
class="view fit modal calcWidth"
|
|
280
283
|
/>
|
|
281
|
-
</
|
|
284
|
+
</div>
|
|
282
285
|
</DocumentFragment>
|
|
283
286
|
`;
|
|
284
287
|
|
|
285
288
|
exports[`component:<Modal> testID 1`] = `
|
|
286
289
|
<DocumentFragment>
|
|
287
|
-
<
|
|
290
|
+
<div
|
|
288
291
|
class="pressable container overflow"
|
|
289
292
|
data-testid="mirai-overflow"
|
|
290
293
|
>
|
|
@@ -292,6 +295,6 @@ exports[`component:<Modal> testID 1`] = `
|
|
|
292
295
|
class="view fit modal calcWidth"
|
|
293
296
|
data-testid="mirai"
|
|
294
297
|
/>
|
|
295
|
-
</
|
|
298
|
+
</div>
|
|
296
299
|
</DocumentFragment>
|
|
297
300
|
`;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _helpers = require("../../helpers");
|
|
10
10
|
var _primitives = require("../../primitives");
|
|
11
11
|
var _NotificationModule = _interopRequireDefault(require("./Notification.module.css"));
|
|
12
|
-
var _excluded = ["children", "error", "info", "inline", "large", "small", "success", "warning", "onClose"];
|
|
12
|
+
var _excluded = ["children", "error", "info", "inline", "large", "small", "success", "warning", "wide", "onClose"];
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -24,11 +24,12 @@ var Notification = function Notification(_ref) {
|
|
|
24
24
|
small = _ref.small,
|
|
25
25
|
success = _ref.success,
|
|
26
26
|
warning = _ref.warning,
|
|
27
|
+
wide = _ref.wide,
|
|
27
28
|
onClose = _ref.onClose,
|
|
28
29
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
29
30
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
30
31
|
row: true,
|
|
31
|
-
className: (0, _helpers.styles)(_NotificationModule.default.notification, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : info ? _NotificationModule.default.info : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, inline && _NotificationModule.default.inline, large ? _NotificationModule.default.large : small && _NotificationModule.default.small, others.className)
|
|
32
|
+
className: (0, _helpers.styles)(_NotificationModule.default.notification, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : info ? _NotificationModule.default.info : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, inline && _NotificationModule.default.inline, large ? _NotificationModule.default.large : small && _NotificationModule.default.small, wide && _NotificationModule.default.wide, others.className)
|
|
32
33
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
33
34
|
headline: large,
|
|
34
35
|
level: large ? 1 : undefined,
|
|
@@ -43,8 +44,9 @@ var Notification = function Notification(_ref) {
|
|
|
43
44
|
small: small,
|
|
44
45
|
className: (0, _helpers.styles)(_NotificationModule.default.text, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : undefined)
|
|
45
46
|
}, children), !large && onClose && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
|
|
46
|
-
|
|
47
|
-
onPress: onClose
|
|
47
|
+
tag: "button",
|
|
48
|
+
onPress: onClose,
|
|
49
|
+
className: (0, _helpers.styles)(_NotificationModule.default.pressable, _NotificationModule.default.icon)
|
|
48
50
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
49
51
|
value: _primitives.ICON.CLOSE,
|
|
50
52
|
paragraph: small
|
|
@@ -61,6 +63,7 @@ Notification.propTypes = {
|
|
|
61
63
|
small: _propTypes.default.bool,
|
|
62
64
|
success: _propTypes.default.bool,
|
|
63
65
|
warning: _propTypes.default.bool,
|
|
66
|
+
wide: _propTypes.default.bool,
|
|
64
67
|
onClose: _propTypes.default.func
|
|
65
68
|
};
|
|
66
69
|
//# sourceMappingURL=Notification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["Notification","children","error","info","inline","large","small","success","warning","onClose","others","styles","style","notification","undefined","outlined","className","getIconState","icon","text","pressable","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({\n children,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n warning,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n className={styles(\n style.notification,\n error ? style.error : warning ? style.warning : success ? style.success : info ? style.info : undefined,\n inline ? style.inline : style.outlined,\n inline && style.inline,\n large ? style.large : small && style.small,\n others.className,\n )}\n >\n <Icon\n headline={large}\n level={large ? 1 : undefined}\n paragraph={small}\n value={getIconState({ error, success, warning })}\n className={style.icon}\n />\n <Text\n small={small}\n className={styles(\n style.text,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n )}\n >\n {children}\n </Text>\n {!large && onClose && (\n <Pressable className={styles(style.pressable, style.icon)}
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["Notification","children","error","info","inline","large","small","success","warning","wide","onClose","others","styles","style","notification","undefined","outlined","className","getIconState","icon","text","pressable","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({\n children,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n warning,\n wide,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n className={styles(\n style.notification,\n error ? style.error : warning ? style.warning : success ? style.success : info ? style.info : undefined,\n inline ? style.inline : style.outlined,\n inline && style.inline,\n large ? style.large : small && style.small,\n wide && style.wide,\n others.className,\n )}\n >\n <Icon\n headline={large}\n level={large ? 1 : undefined}\n paragraph={small}\n value={getIconState({ error, success, warning })}\n className={style.icon}\n />\n <Text\n small={small}\n className={styles(\n style.text,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n )}\n >\n {children}\n </Text>\n {!large && onClose && (\n <Pressable tag=\"button\" onPress={onClose} className={styles(style.pressable, style.icon)}>\n <Icon value={ICON.CLOSE} paragraph={small} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.any.isRequired,\n error: PropTypes.bool,\n info: PropTypes.bool,\n inline: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n warning: PropTypes.bool,\n wide: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Notification };\n"],"mappings":"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"}
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Story = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Notification = require("./Notification");
|
|
9
|
-
|
|
10
|
-
function
|
|
9
|
+
var _Story$args;
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
@@ -17,11 +17,11 @@ var _default = {
|
|
|
17
17
|
};
|
|
18
18
|
exports.default = _default;
|
|
19
19
|
var Story = function Story(props) {
|
|
20
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_Notification.Notification, props);
|
|
21
21
|
};
|
|
22
22
|
exports.Story = Story;
|
|
23
23
|
Story.storyName = 'Notification';
|
|
24
|
-
Story.args =
|
|
24
|
+
Story.args = (_Story$args = {
|
|
25
25
|
children: 'children',
|
|
26
26
|
error: false,
|
|
27
27
|
info: false,
|
|
@@ -29,8 +29,9 @@ Story.args = _defineProperty({
|
|
|
29
29
|
large: false,
|
|
30
30
|
small: false,
|
|
31
31
|
success: false,
|
|
32
|
-
warning: false
|
|
33
|
-
|
|
32
|
+
warning: false,
|
|
33
|
+
wide: false
|
|
34
|
+
}, _defineProperty(_Story$args, 'data-testid', 'test-story'), _defineProperty(_Story$args, "style", {}), _Story$args);
|
|
34
35
|
Story.argTypes = {
|
|
35
36
|
onClose: {
|
|
36
37
|
action: 'onClose'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","info","inline","large","small","success","warning","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","info","inline","large","small","success","warning","wide","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import React from 'react';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Notification {...props} />;\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'children',\n error: false,\n info: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n wide: false,\n // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAE/B;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,6BAAC,0BAAY,EAAKA,KAAK,CAAI;AAAA;AAAC;AAE5DD,KAAK,CAACE,SAAS,GAAG,cAAc;AAEhCF,KAAK,CAACG,IAAI;EACRC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,KAAK;EACZC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE,KAAK;EACbC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,OAAO,EAAE,KAAK;EACdC,IAAI,EAAE;AAAK,gCAEV,aAAa,EAAG,YAAY,yCACtB,CAAC,CAAC,eACV;AAEDZ,KAAK,CAACa,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC"}
|
|
@@ -709,6 +709,41 @@ exports[`component:<Notification> prop:warning 1`] = `
|
|
|
709
709
|
</DocumentFragment>
|
|
710
710
|
`;
|
|
711
711
|
|
|
712
|
+
exports[`component:<Notification> prop:wide 1`] = `
|
|
713
|
+
<DocumentFragment>
|
|
714
|
+
<div
|
|
715
|
+
class="view row notification outlined wide"
|
|
716
|
+
>
|
|
717
|
+
<span
|
|
718
|
+
class="icon headline-3 icon"
|
|
719
|
+
>
|
|
720
|
+
<svg
|
|
721
|
+
fill="currentColor"
|
|
722
|
+
height="1em"
|
|
723
|
+
stroke="currentColor"
|
|
724
|
+
stroke-width="0"
|
|
725
|
+
viewBox="0 0 24 24"
|
|
726
|
+
width="1em"
|
|
727
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
728
|
+
>
|
|
729
|
+
<path
|
|
730
|
+
d="M0 0h24v24H0V0z"
|
|
731
|
+
fill="none"
|
|
732
|
+
/>
|
|
733
|
+
<path
|
|
734
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
735
|
+
/>
|
|
736
|
+
</svg>
|
|
737
|
+
</span>
|
|
738
|
+
<span
|
|
739
|
+
class="text paragraph text"
|
|
740
|
+
>
|
|
741
|
+
Lorem Ipsum...
|
|
742
|
+
</span>
|
|
743
|
+
</div>
|
|
744
|
+
</DocumentFragment>
|
|
745
|
+
`;
|
|
746
|
+
|
|
712
747
|
exports[`component:<Notification> renders 1`] = `
|
|
713
748
|
<DocumentFragment>
|
|
714
749
|
<div
|