@mirai/ui 1.0.12 → 1.0.13
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/build/components/Button/Button.js +67 -0
- package/build/components/Button/Button.js.map +1 -0
- package/build/components/Button/Button.module.css +90 -0
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +113 -0
- package/build/components/Button/index.js +19 -0
- package/build/components/Button/index.js.map +1 -0
- package/build/components/Calendar/Calendar.Month.js +129 -0
- package/build/components/Calendar/Calendar.Month.js.map +1 -0
- package/build/components/Calendar/Calendar.Week.js +177 -0
- package/build/components/Calendar/Calendar.Week.js.map +1 -0
- package/build/components/Calendar/Calendar.Weekdays.js +45 -0
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -0
- package/build/components/Calendar/Calendar.constants.js +11 -0
- package/build/components/Calendar/Calendar.constants.js.map +1 -0
- package/build/components/Calendar/Calendar.js +196 -0
- package/build/components/Calendar/Calendar.js.map +1 -0
- package/build/components/Calendar/Calendar.module.css +127 -0
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +20477 -0
- package/build/components/Calendar/helpers/getFirstDateOfMonth.js +16 -0
- package/build/components/Calendar/helpers/getFirstDateOfMonth.js.map +1 -0
- package/build/components/Calendar/helpers/getFirstDateOfWeek.js +20 -0
- package/build/components/Calendar/helpers/getFirstDateOfWeek.js.map +1 -0
- package/build/components/Calendar/helpers/getHeader.js +23 -0
- package/build/components/Calendar/helpers/getHeader.js.map +1 -0
- package/build/components/Calendar/helpers/getToday.js +15 -0
- package/build/components/Calendar/helpers/getToday.js.map +1 -0
- package/build/components/Calendar/helpers/getWeekDays.js +27 -0
- package/build/components/Calendar/helpers/getWeekDays.js.map +1 -0
- package/build/components/Calendar/helpers/getWeekNumber.js +17 -0
- package/build/components/Calendar/helpers/getWeekNumber.js.map +1 -0
- package/build/components/Calendar/helpers/index.js +97 -0
- package/build/components/Calendar/helpers/index.js.map +1 -0
- package/build/components/Calendar/helpers/isJest.js +9 -0
- package/build/components/Calendar/helpers/isJest.js.map +1 -0
- package/build/components/Calendar/index.js +19 -0
- package/build/components/Calendar/index.js.map +1 -0
- package/build/components/Form/Form.js +217 -0
- package/build/components/Form/Form.js.map +1 -0
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +47 -0
- package/build/components/Form/helpers/getChildrenErrors.js +51 -0
- package/build/components/Form/helpers/getChildrenErrors.js.map +1 -0
- package/build/components/Form/helpers/getChildrenValues.js +51 -0
- package/build/components/Form/helpers/getChildrenValues.js.map +1 -0
- package/build/components/Form/helpers/getField.js +17 -0
- package/build/components/Form/helpers/getField.js.map +1 -0
- package/build/components/Form/helpers/groupState.js +29 -0
- package/build/components/Form/helpers/groupState.js.map +1 -0
- package/build/components/Form/helpers/index.js +58 -0
- package/build/components/Form/helpers/index.js.map +1 -0
- package/build/components/Form/index.js +19 -0
- package/build/components/Form/index.js.map +1 -0
- package/build/components/InputNumber/InputNumber.js +91 -0
- package/build/components/InputNumber/InputNumber.js.map +1 -0
- package/build/components/InputNumber/InputNumber.module.css +25 -0
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +698 -0
- package/build/components/InputNumber/index.js +19 -0
- package/build/components/InputNumber/index.js.map +1 -0
- package/build/components/InputOption/InputOption.constants.js +13 -0
- package/build/components/InputOption/InputOption.constants.js.map +1 -0
- package/build/components/InputOption/InputOption.js +80 -0
- package/build/components/InputOption/InputOption.js.map +1 -0
- package/build/components/InputOption/InputOption.module.css +43 -0
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +232 -0
- package/build/components/InputOption/index.js +19 -0
- package/build/components/InputOption/index.js.map +1 -0
- package/build/components/InputSelect/InputSelect.js +123 -0
- package/build/components/InputSelect/InputSelect.js.map +1 -0
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +490 -0
- package/build/components/InputSelect/index.js +19 -0
- package/build/components/InputSelect/index.js.map +1 -0
- package/build/components/InputText/InputText.js +141 -0
- package/build/components/InputText/InputText.js.map +1 -0
- package/build/components/InputText/InputText.module.css +107 -0
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +255 -0
- package/build/components/InputText/index.js +19 -0
- package/build/components/InputText/index.js.map +1 -0
- package/build/components/Menu/Menu.Option.js +58 -0
- package/build/components/Menu/Menu.Option.js.map +1 -0
- package/build/components/Menu/Menu.js +73 -0
- package/build/components/Menu/Menu.js.map +1 -0
- package/build/components/Menu/Menu.module.css +50 -0
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +178 -0
- package/build/components/Menu/index.js +19 -0
- package/build/components/Menu/index.js.map +1 -0
- package/build/components/Modal/Modal.js +61 -0
- package/build/components/Modal/Modal.js.map +1 -0
- package/build/components/Modal/Modal.module.css +72 -0
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +150 -0
- package/build/components/Modal/index.js +19 -0
- package/build/components/Modal/index.js.map +1 -0
- package/build/components/Table/Table.Row.js +92 -0
- package/build/components/Table/Table.Row.js.map +1 -0
- package/build/components/Table/Table.js +119 -0
- package/build/components/Table/Table.js.map +1 -0
- package/build/components/Table/Table.module.css +78 -0
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +2285 -0
- package/build/components/Table/helpers/index.js +19 -0
- package/build/components/Table/helpers/index.js.map +1 -0
- package/build/components/Table/helpers/select.js +29 -0
- package/build/components/Table/helpers/select.js.map +1 -0
- package/build/components/Table/index.js +19 -0
- package/build/components/Table/index.js.map +1 -0
- package/build/components/Tooltip/Tooltip.js +95 -0
- package/build/components/Tooltip/Tooltip.js.map +1 -0
- package/build/components/Tooltip/Tooltip.module.css +26 -0
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +117 -0
- package/build/components/Tooltip/index.js +19 -0
- package/build/components/Tooltip/index.js.map +1 -0
- package/build/components/index.js +149 -0
- package/build/components/index.js.map +1 -0
- package/build/helpers/getInputErrors.js +45 -0
- package/build/helpers/getInputErrors.js.map +1 -0
- package/build/helpers/index.js +32 -0
- package/build/helpers/index.js.map +1 -0
- package/build/helpers/isValidDate.js +72 -0
- package/build/helpers/isValidDate.js.map +1 -0
- package/build/helpers/isValidEmail.js +15 -0
- package/build/helpers/isValidEmail.js.map +1 -0
- package/build/helpers/isValidPhone.js +25 -0
- package/build/helpers/isValidPhone.js.map +1 -0
- package/build/helpers/styles.js +21 -0
- package/build/helpers/styles.js.map +1 -0
- package/build/hooks/helpers/getNavigator.js +33 -0
- package/build/hooks/helpers/getNavigator.js.map +1 -0
- package/build/hooks/helpers/getResolution.js +22 -0
- package/build/hooks/helpers/getResolution.js.map +1 -0
- package/build/hooks/helpers/index.js +32 -0
- package/build/hooks/helpers/index.js.map +1 -0
- package/build/hooks/index.js +19 -0
- package/build/hooks/index.js.map +1 -0
- package/build/hooks/useDevice.js +60 -0
- package/build/hooks/useDevice.js.map +1 -0
- package/build/index.js +71 -0
- package/build/index.js.map +1 -0
- package/build/primitives/Checkbox/Checkbox.js +66 -0
- package/build/primitives/Checkbox/Checkbox.js.map +1 -0
- package/build/primitives/Checkbox/Checkbox.module.css +45 -0
- package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +127 -0
- package/build/primitives/Checkbox/index.js +19 -0
- package/build/primitives/Checkbox/index.js.map +1 -0
- package/build/primitives/Icon/Icon.constants.js +30 -0
- package/build/primitives/Icon/Icon.constants.js.map +1 -0
- package/build/primitives/Icon/Icon.js +46 -0
- package/build/primitives/Icon/Icon.js.map +1 -0
- package/build/primitives/Icon/Icon.module.css +11 -0
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +133 -0
- package/build/primitives/Icon/index.js +31 -0
- package/build/primitives/Icon/index.js.map +1 -0
- package/build/primitives/Input/Input.js +85 -0
- package/build/primitives/Input/Input.js.map +1 -0
- package/build/primitives/Input/Input.module.css +32 -0
- package/build/primitives/Input/__tests__/__snapshots__/Input.test.js.snap +74 -0
- package/build/primitives/Input/helpers/index.js +19 -0
- package/build/primitives/Input/helpers/index.js.map +1 -0
- package/build/primitives/Input/helpers/parseValue.js +17 -0
- package/build/primitives/Input/helpers/parseValue.js.map +1 -0
- package/build/primitives/Input/index.js +19 -0
- package/build/primitives/Input/index.js.map +1 -0
- package/build/primitives/Layer/Layer.js +115 -0
- package/build/primitives/Layer/Layer.js.map +1 -0
- package/build/primitives/Layer/Layer.module.css +10 -0
- package/build/primitives/Layer/LayerContent.js +22 -0
- package/build/primitives/Layer/LayerContent.js.map +1 -0
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +89 -0
- package/build/primitives/Layer/helpers/getElementLayout.js +23 -0
- package/build/primitives/Layer/helpers/getElementLayout.js.map +1 -0
- package/build/primitives/Layer/helpers/getLayerPosition.js +45 -0
- package/build/primitives/Layer/helpers/getLayerPosition.js.map +1 -0
- package/build/primitives/Layer/helpers/index.js +32 -0
- package/build/primitives/Layer/helpers/index.js.map +1 -0
- package/build/primitives/Layer/index.js +32 -0
- package/build/primitives/Layer/index.js.map +1 -0
- package/build/primitives/Pressable/Pressable.constants.js +9 -0
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -0
- package/build/primitives/Pressable/Pressable.js +67 -0
- package/build/primitives/Pressable/Pressable.js.map +1 -0
- package/build/primitives/Pressable/Pressable.module.css +18 -0
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +53 -0
- package/build/primitives/Pressable/index.js +19 -0
- package/build/primitives/Pressable/index.js.map +1 -0
- package/build/primitives/Radio/Radio.js +62 -0
- package/build/primitives/Radio/Radio.js.map +1 -0
- package/build/primitives/Radio/Radio.module.css +60 -0
- package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +125 -0
- package/build/primitives/Radio/index.js +19 -0
- package/build/primitives/Radio/index.js.map +1 -0
- package/build/primitives/ScrollView/ScrollView.js +112 -0
- package/build/primitives/ScrollView/ScrollView.js.map +1 -0
- package/build/primitives/ScrollView/ScrollView.module.css +35 -0
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +535 -0
- package/build/primitives/ScrollView/index.js +19 -0
- package/build/primitives/ScrollView/index.js.map +1 -0
- package/build/primitives/Select/Select.js +95 -0
- package/build/primitives/Select/Select.js.map +1 -0
- package/build/primitives/Select/Select.module.css +27 -0
- package/build/primitives/Select/__tests__/__snapshots__/Select.test.js.snap +178 -0
- package/build/primitives/Select/index.js +19 -0
- package/build/primitives/Select/index.js.map +1 -0
- package/build/primitives/Switch/Switch.js +60 -0
- package/build/primitives/Switch/Switch.js.map +1 -0
- package/build/primitives/Switch/Switch.module.css +65 -0
- package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +104 -0
- package/build/primitives/Switch/index.js +19 -0
- package/build/primitives/Switch/index.js.map +1 -0
- package/build/primitives/Text/Text.js +57 -0
- package/build/primitives/Text/Text.js.map +1 -0
- package/build/primitives/Text/Text.module.css +33 -0
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +92 -0
- package/build/primitives/Text/index.js +19 -0
- package/build/primitives/Text/index.js.map +1 -0
- package/build/primitives/View/View.js +52 -0
- package/build/primitives/View/View.js.map +1 -0
- package/build/primitives/View/View.module.css +17 -0
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +62 -0
- package/build/primitives/View/index.js +19 -0
- package/build/primitives/View/index.js.map +1 -0
- package/build/primitives/index.js +149 -0
- package/build/primitives/index.js.map +1 -0
- package/build/theme/default.theme.css +55 -0
- package/build/theme/helpers/camelcase.js +16 -0
- package/build/theme/helpers/camelcase.js.map +1 -0
- package/build/theme/helpers/index.js +19 -0
- package/build/theme/helpers/index.js.map +1 -0
- package/build/theme/index.js +19 -0
- package/build/theme/index.js.map +1 -0
- package/build/theme/theme.js +53 -0
- package/build/theme/theme.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`primitive:<ScrollView> inherit:className 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="scrollview mirai"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
style="height: 128px; width: 128px;"
|
|
10
|
+
>
|
|
11
|
+
1
|
|
12
|
+
</div>
|
|
13
|
+
<div
|
|
14
|
+
style="height: 128px; width: 128px;"
|
|
15
|
+
>
|
|
16
|
+
2
|
|
17
|
+
</div>
|
|
18
|
+
<div
|
|
19
|
+
style="height: 128px; width: 128px;"
|
|
20
|
+
>
|
|
21
|
+
3
|
|
22
|
+
</div>
|
|
23
|
+
<div
|
|
24
|
+
style="height: 128px; width: 128px;"
|
|
25
|
+
>
|
|
26
|
+
4
|
|
27
|
+
</div>
|
|
28
|
+
<div
|
|
29
|
+
style="height: 128px; width: 128px;"
|
|
30
|
+
>
|
|
31
|
+
5
|
|
32
|
+
</div>
|
|
33
|
+
<div
|
|
34
|
+
style="height: 128px; width: 128px;"
|
|
35
|
+
>
|
|
36
|
+
6
|
|
37
|
+
</div>
|
|
38
|
+
<div
|
|
39
|
+
style="height: 128px; width: 128px;"
|
|
40
|
+
>
|
|
41
|
+
7
|
|
42
|
+
</div>
|
|
43
|
+
<div
|
|
44
|
+
style="height: 128px; width: 128px;"
|
|
45
|
+
>
|
|
46
|
+
8
|
|
47
|
+
</div>
|
|
48
|
+
<div
|
|
49
|
+
style="height: 128px; width: 128px;"
|
|
50
|
+
>
|
|
51
|
+
9
|
|
52
|
+
</div>
|
|
53
|
+
<div
|
|
54
|
+
style="height: 128px; width: 128px;"
|
|
55
|
+
>
|
|
56
|
+
10
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</DocumentFragment>
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
exports[`primitive:<ScrollView> prop:height 1`] = `
|
|
63
|
+
<DocumentFragment>
|
|
64
|
+
<div
|
|
65
|
+
class="scrollview"
|
|
66
|
+
style="height: 256px;"
|
|
67
|
+
>
|
|
68
|
+
<div
|
|
69
|
+
style="height: 128px; width: 128px;"
|
|
70
|
+
>
|
|
71
|
+
1
|
|
72
|
+
</div>
|
|
73
|
+
<div
|
|
74
|
+
style="height: 128px; width: 128px;"
|
|
75
|
+
>
|
|
76
|
+
2
|
|
77
|
+
</div>
|
|
78
|
+
<div
|
|
79
|
+
style="height: 128px; width: 128px;"
|
|
80
|
+
>
|
|
81
|
+
3
|
|
82
|
+
</div>
|
|
83
|
+
<div
|
|
84
|
+
style="height: 128px; width: 128px;"
|
|
85
|
+
>
|
|
86
|
+
4
|
|
87
|
+
</div>
|
|
88
|
+
<div
|
|
89
|
+
style="height: 128px; width: 128px;"
|
|
90
|
+
>
|
|
91
|
+
5
|
|
92
|
+
</div>
|
|
93
|
+
<div
|
|
94
|
+
style="height: 128px; width: 128px;"
|
|
95
|
+
>
|
|
96
|
+
6
|
|
97
|
+
</div>
|
|
98
|
+
<div
|
|
99
|
+
style="height: 128px; width: 128px;"
|
|
100
|
+
>
|
|
101
|
+
7
|
|
102
|
+
</div>
|
|
103
|
+
<div
|
|
104
|
+
style="height: 128px; width: 128px;"
|
|
105
|
+
>
|
|
106
|
+
8
|
|
107
|
+
</div>
|
|
108
|
+
<div
|
|
109
|
+
style="height: 128px; width: 128px;"
|
|
110
|
+
>
|
|
111
|
+
9
|
|
112
|
+
</div>
|
|
113
|
+
<div
|
|
114
|
+
style="height: 128px; width: 128px;"
|
|
115
|
+
>
|
|
116
|
+
10
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</DocumentFragment>
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
exports[`primitive:<ScrollView> prop:horizontal 1`] = `
|
|
123
|
+
<DocumentFragment>
|
|
124
|
+
<div
|
|
125
|
+
class="scrollview horizontal"
|
|
126
|
+
>
|
|
127
|
+
<div
|
|
128
|
+
style="height: 128px; width: 128px;"
|
|
129
|
+
>
|
|
130
|
+
1
|
|
131
|
+
</div>
|
|
132
|
+
<div
|
|
133
|
+
style="height: 128px; width: 128px;"
|
|
134
|
+
>
|
|
135
|
+
2
|
|
136
|
+
</div>
|
|
137
|
+
<div
|
|
138
|
+
style="height: 128px; width: 128px;"
|
|
139
|
+
>
|
|
140
|
+
3
|
|
141
|
+
</div>
|
|
142
|
+
<div
|
|
143
|
+
style="height: 128px; width: 128px;"
|
|
144
|
+
>
|
|
145
|
+
4
|
|
146
|
+
</div>
|
|
147
|
+
<div
|
|
148
|
+
style="height: 128px; width: 128px;"
|
|
149
|
+
>
|
|
150
|
+
5
|
|
151
|
+
</div>
|
|
152
|
+
<div
|
|
153
|
+
style="height: 128px; width: 128px;"
|
|
154
|
+
>
|
|
155
|
+
6
|
|
156
|
+
</div>
|
|
157
|
+
<div
|
|
158
|
+
style="height: 128px; width: 128px;"
|
|
159
|
+
>
|
|
160
|
+
7
|
|
161
|
+
</div>
|
|
162
|
+
<div
|
|
163
|
+
style="height: 128px; width: 128px;"
|
|
164
|
+
>
|
|
165
|
+
8
|
|
166
|
+
</div>
|
|
167
|
+
<div
|
|
168
|
+
style="height: 128px; width: 128px;"
|
|
169
|
+
>
|
|
170
|
+
9
|
|
171
|
+
</div>
|
|
172
|
+
<div
|
|
173
|
+
style="height: 128px; width: 128px;"
|
|
174
|
+
>
|
|
175
|
+
10
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
</DocumentFragment>
|
|
179
|
+
`;
|
|
180
|
+
|
|
181
|
+
exports[`primitive:<ScrollView> prop:scrollIndicator 1`] = `
|
|
182
|
+
<DocumentFragment>
|
|
183
|
+
<div
|
|
184
|
+
class="scrollview indicator"
|
|
185
|
+
>
|
|
186
|
+
<div
|
|
187
|
+
style="height: 128px; width: 128px;"
|
|
188
|
+
>
|
|
189
|
+
1
|
|
190
|
+
</div>
|
|
191
|
+
<div
|
|
192
|
+
style="height: 128px; width: 128px;"
|
|
193
|
+
>
|
|
194
|
+
2
|
|
195
|
+
</div>
|
|
196
|
+
<div
|
|
197
|
+
style="height: 128px; width: 128px;"
|
|
198
|
+
>
|
|
199
|
+
3
|
|
200
|
+
</div>
|
|
201
|
+
<div
|
|
202
|
+
style="height: 128px; width: 128px;"
|
|
203
|
+
>
|
|
204
|
+
4
|
|
205
|
+
</div>
|
|
206
|
+
<div
|
|
207
|
+
style="height: 128px; width: 128px;"
|
|
208
|
+
>
|
|
209
|
+
5
|
|
210
|
+
</div>
|
|
211
|
+
<div
|
|
212
|
+
style="height: 128px; width: 128px;"
|
|
213
|
+
>
|
|
214
|
+
6
|
|
215
|
+
</div>
|
|
216
|
+
<div
|
|
217
|
+
style="height: 128px; width: 128px;"
|
|
218
|
+
>
|
|
219
|
+
7
|
|
220
|
+
</div>
|
|
221
|
+
<div
|
|
222
|
+
style="height: 128px; width: 128px;"
|
|
223
|
+
>
|
|
224
|
+
8
|
|
225
|
+
</div>
|
|
226
|
+
<div
|
|
227
|
+
style="height: 128px; width: 128px;"
|
|
228
|
+
>
|
|
229
|
+
9
|
|
230
|
+
</div>
|
|
231
|
+
<div
|
|
232
|
+
style="height: 128px; width: 128px;"
|
|
233
|
+
>
|
|
234
|
+
10
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
</DocumentFragment>
|
|
238
|
+
`;
|
|
239
|
+
|
|
240
|
+
exports[`primitive:<ScrollView> prop:scrollto 1`] = `
|
|
241
|
+
<DocumentFragment>
|
|
242
|
+
<div
|
|
243
|
+
class="scrollview"
|
|
244
|
+
>
|
|
245
|
+
<div
|
|
246
|
+
style="height: 128px; width: 128px;"
|
|
247
|
+
>
|
|
248
|
+
1
|
|
249
|
+
</div>
|
|
250
|
+
<div
|
|
251
|
+
style="height: 128px; width: 128px;"
|
|
252
|
+
>
|
|
253
|
+
2
|
|
254
|
+
</div>
|
|
255
|
+
<div
|
|
256
|
+
style="height: 128px; width: 128px;"
|
|
257
|
+
>
|
|
258
|
+
3
|
|
259
|
+
</div>
|
|
260
|
+
<div
|
|
261
|
+
style="height: 128px; width: 128px;"
|
|
262
|
+
>
|
|
263
|
+
4
|
|
264
|
+
</div>
|
|
265
|
+
<div
|
|
266
|
+
style="height: 128px; width: 128px;"
|
|
267
|
+
>
|
|
268
|
+
5
|
|
269
|
+
</div>
|
|
270
|
+
<div
|
|
271
|
+
style="height: 128px; width: 128px;"
|
|
272
|
+
>
|
|
273
|
+
6
|
|
274
|
+
</div>
|
|
275
|
+
<div
|
|
276
|
+
style="height: 128px; width: 128px;"
|
|
277
|
+
>
|
|
278
|
+
7
|
|
279
|
+
</div>
|
|
280
|
+
<div
|
|
281
|
+
style="height: 128px; width: 128px;"
|
|
282
|
+
>
|
|
283
|
+
8
|
|
284
|
+
</div>
|
|
285
|
+
<div
|
|
286
|
+
style="height: 128px; width: 128px;"
|
|
287
|
+
>
|
|
288
|
+
9
|
|
289
|
+
</div>
|
|
290
|
+
<div
|
|
291
|
+
style="height: 128px; width: 128px;"
|
|
292
|
+
>
|
|
293
|
+
10
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
</DocumentFragment>
|
|
297
|
+
`;
|
|
298
|
+
|
|
299
|
+
exports[`primitive:<ScrollView> prop:tag 1`] = `
|
|
300
|
+
<DocumentFragment>
|
|
301
|
+
<section
|
|
302
|
+
class="scrollview"
|
|
303
|
+
>
|
|
304
|
+
<div
|
|
305
|
+
style="height: 128px; width: 128px;"
|
|
306
|
+
>
|
|
307
|
+
1
|
|
308
|
+
</div>
|
|
309
|
+
<div
|
|
310
|
+
style="height: 128px; width: 128px;"
|
|
311
|
+
>
|
|
312
|
+
2
|
|
313
|
+
</div>
|
|
314
|
+
<div
|
|
315
|
+
style="height: 128px; width: 128px;"
|
|
316
|
+
>
|
|
317
|
+
3
|
|
318
|
+
</div>
|
|
319
|
+
<div
|
|
320
|
+
style="height: 128px; width: 128px;"
|
|
321
|
+
>
|
|
322
|
+
4
|
|
323
|
+
</div>
|
|
324
|
+
<div
|
|
325
|
+
style="height: 128px; width: 128px;"
|
|
326
|
+
>
|
|
327
|
+
5
|
|
328
|
+
</div>
|
|
329
|
+
<div
|
|
330
|
+
style="height: 128px; width: 128px;"
|
|
331
|
+
>
|
|
332
|
+
6
|
|
333
|
+
</div>
|
|
334
|
+
<div
|
|
335
|
+
style="height: 128px; width: 128px;"
|
|
336
|
+
>
|
|
337
|
+
7
|
|
338
|
+
</div>
|
|
339
|
+
<div
|
|
340
|
+
style="height: 128px; width: 128px;"
|
|
341
|
+
>
|
|
342
|
+
8
|
|
343
|
+
</div>
|
|
344
|
+
<div
|
|
345
|
+
style="height: 128px; width: 128px;"
|
|
346
|
+
>
|
|
347
|
+
9
|
|
348
|
+
</div>
|
|
349
|
+
<div
|
|
350
|
+
style="height: 128px; width: 128px;"
|
|
351
|
+
>
|
|
352
|
+
10
|
|
353
|
+
</div>
|
|
354
|
+
</section>
|
|
355
|
+
</DocumentFragment>
|
|
356
|
+
`;
|
|
357
|
+
|
|
358
|
+
exports[`primitive:<ScrollView> prop:width 1`] = `
|
|
359
|
+
<DocumentFragment>
|
|
360
|
+
<div
|
|
361
|
+
class="scrollview"
|
|
362
|
+
style="width: 256px;"
|
|
363
|
+
>
|
|
364
|
+
<div
|
|
365
|
+
style="height: 128px; width: 128px;"
|
|
366
|
+
>
|
|
367
|
+
1
|
|
368
|
+
</div>
|
|
369
|
+
<div
|
|
370
|
+
style="height: 128px; width: 128px;"
|
|
371
|
+
>
|
|
372
|
+
2
|
|
373
|
+
</div>
|
|
374
|
+
<div
|
|
375
|
+
style="height: 128px; width: 128px;"
|
|
376
|
+
>
|
|
377
|
+
3
|
|
378
|
+
</div>
|
|
379
|
+
<div
|
|
380
|
+
style="height: 128px; width: 128px;"
|
|
381
|
+
>
|
|
382
|
+
4
|
|
383
|
+
</div>
|
|
384
|
+
<div
|
|
385
|
+
style="height: 128px; width: 128px;"
|
|
386
|
+
>
|
|
387
|
+
5
|
|
388
|
+
</div>
|
|
389
|
+
<div
|
|
390
|
+
style="height: 128px; width: 128px;"
|
|
391
|
+
>
|
|
392
|
+
6
|
|
393
|
+
</div>
|
|
394
|
+
<div
|
|
395
|
+
style="height: 128px; width: 128px;"
|
|
396
|
+
>
|
|
397
|
+
7
|
|
398
|
+
</div>
|
|
399
|
+
<div
|
|
400
|
+
style="height: 128px; width: 128px;"
|
|
401
|
+
>
|
|
402
|
+
8
|
|
403
|
+
</div>
|
|
404
|
+
<div
|
|
405
|
+
style="height: 128px; width: 128px;"
|
|
406
|
+
>
|
|
407
|
+
9
|
|
408
|
+
</div>
|
|
409
|
+
<div
|
|
410
|
+
style="height: 128px; width: 128px;"
|
|
411
|
+
>
|
|
412
|
+
10
|
|
413
|
+
</div>
|
|
414
|
+
</div>
|
|
415
|
+
</DocumentFragment>
|
|
416
|
+
`;
|
|
417
|
+
|
|
418
|
+
exports[`primitive:<ScrollView> renders 1`] = `
|
|
419
|
+
<DocumentFragment>
|
|
420
|
+
<div
|
|
421
|
+
class="scrollview"
|
|
422
|
+
>
|
|
423
|
+
<div
|
|
424
|
+
style="height: 128px; width: 128px;"
|
|
425
|
+
>
|
|
426
|
+
1
|
|
427
|
+
</div>
|
|
428
|
+
<div
|
|
429
|
+
style="height: 128px; width: 128px;"
|
|
430
|
+
>
|
|
431
|
+
2
|
|
432
|
+
</div>
|
|
433
|
+
<div
|
|
434
|
+
style="height: 128px; width: 128px;"
|
|
435
|
+
>
|
|
436
|
+
3
|
|
437
|
+
</div>
|
|
438
|
+
<div
|
|
439
|
+
style="height: 128px; width: 128px;"
|
|
440
|
+
>
|
|
441
|
+
4
|
|
442
|
+
</div>
|
|
443
|
+
<div
|
|
444
|
+
style="height: 128px; width: 128px;"
|
|
445
|
+
>
|
|
446
|
+
5
|
|
447
|
+
</div>
|
|
448
|
+
<div
|
|
449
|
+
style="height: 128px; width: 128px;"
|
|
450
|
+
>
|
|
451
|
+
6
|
|
452
|
+
</div>
|
|
453
|
+
<div
|
|
454
|
+
style="height: 128px; width: 128px;"
|
|
455
|
+
>
|
|
456
|
+
7
|
|
457
|
+
</div>
|
|
458
|
+
<div
|
|
459
|
+
style="height: 128px; width: 128px;"
|
|
460
|
+
>
|
|
461
|
+
8
|
|
462
|
+
</div>
|
|
463
|
+
<div
|
|
464
|
+
style="height: 128px; width: 128px;"
|
|
465
|
+
>
|
|
466
|
+
9
|
|
467
|
+
</div>
|
|
468
|
+
<div
|
|
469
|
+
style="height: 128px; width: 128px;"
|
|
470
|
+
>
|
|
471
|
+
10
|
|
472
|
+
</div>
|
|
473
|
+
</div>
|
|
474
|
+
</DocumentFragment>
|
|
475
|
+
`;
|
|
476
|
+
|
|
477
|
+
exports[`primitive:<ScrollView> testID 1`] = `
|
|
478
|
+
<DocumentFragment>
|
|
479
|
+
<div
|
|
480
|
+
class="scrollview"
|
|
481
|
+
data-testid="mirai"
|
|
482
|
+
>
|
|
483
|
+
<div
|
|
484
|
+
style="height: 128px; width: 128px;"
|
|
485
|
+
>
|
|
486
|
+
1
|
|
487
|
+
</div>
|
|
488
|
+
<div
|
|
489
|
+
style="height: 128px; width: 128px;"
|
|
490
|
+
>
|
|
491
|
+
2
|
|
492
|
+
</div>
|
|
493
|
+
<div
|
|
494
|
+
style="height: 128px; width: 128px;"
|
|
495
|
+
>
|
|
496
|
+
3
|
|
497
|
+
</div>
|
|
498
|
+
<div
|
|
499
|
+
style="height: 128px; width: 128px;"
|
|
500
|
+
>
|
|
501
|
+
4
|
|
502
|
+
</div>
|
|
503
|
+
<div
|
|
504
|
+
style="height: 128px; width: 128px;"
|
|
505
|
+
>
|
|
506
|
+
5
|
|
507
|
+
</div>
|
|
508
|
+
<div
|
|
509
|
+
style="height: 128px; width: 128px;"
|
|
510
|
+
>
|
|
511
|
+
6
|
|
512
|
+
</div>
|
|
513
|
+
<div
|
|
514
|
+
style="height: 128px; width: 128px;"
|
|
515
|
+
>
|
|
516
|
+
7
|
|
517
|
+
</div>
|
|
518
|
+
<div
|
|
519
|
+
style="height: 128px; width: 128px;"
|
|
520
|
+
>
|
|
521
|
+
8
|
|
522
|
+
</div>
|
|
523
|
+
<div
|
|
524
|
+
style="height: 128px; width: 128px;"
|
|
525
|
+
>
|
|
526
|
+
9
|
|
527
|
+
</div>
|
|
528
|
+
<div
|
|
529
|
+
style="height: 128px; width: 128px;"
|
|
530
|
+
>
|
|
531
|
+
10
|
|
532
|
+
</div>
|
|
533
|
+
</div>
|
|
534
|
+
</DocumentFragment>
|
|
535
|
+
`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _ScrollView = require("./ScrollView");
|
|
8
|
+
|
|
9
|
+
Object.keys(_ScrollView).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _ScrollView[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _ScrollView[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/primitives/ScrollView/index.js"],"sourcesContent":["export * from './ScrollView';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Select = void 0;
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _helpers = require("../../helpers");
|
|
15
|
+
|
|
16
|
+
var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["disabled", "emptyOption", "options", "value", "onChange", "onEnter", "onError", "onLeave"];
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
+
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
+
|
|
30
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
35
|
+
|
|
36
|
+
var EMPTY = '';
|
|
37
|
+
|
|
38
|
+
var Select = function Select(_ref) {
|
|
39
|
+
var disabled = _ref.disabled,
|
|
40
|
+
emptyOption = _ref.emptyOption,
|
|
41
|
+
_ref$options = _ref.options,
|
|
42
|
+
options = _ref$options === void 0 ? [] : _ref$options,
|
|
43
|
+
value = _ref.value,
|
|
44
|
+
onChange = _ref.onChange,
|
|
45
|
+
onEnter = _ref.onEnter,
|
|
46
|
+
onError = _ref.onError,
|
|
47
|
+
onLeave = _ref.onLeave,
|
|
48
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
49
|
+
|
|
50
|
+
(0, _react.useEffect)(function () {
|
|
51
|
+
var errors = (0, _helpers.getInputErrors)(_objectSpread({}, others));
|
|
52
|
+
if (errors && onError) onError(errors); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
53
|
+
}, []);
|
|
54
|
+
|
|
55
|
+
var handleChange = function handleChange(value, event) {
|
|
56
|
+
onError && onError((0, _helpers.getInputErrors)(_objectSpread(_objectSpread({}, others), {}, {
|
|
57
|
+
value: value
|
|
58
|
+
})));
|
|
59
|
+
onChange && onChange(value, event);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement('select', _objectSpread(_objectSpread({}, others), {}, {
|
|
63
|
+
disabled: disabled,
|
|
64
|
+
value: value,
|
|
65
|
+
className: (0, _helpers.styles)(_SelectModule.default.select, value === EMPTY && _SelectModule.default.empty, others.className)
|
|
66
|
+
}, !disabled ? {
|
|
67
|
+
onChange: function onChange(event) {
|
|
68
|
+
return handleChange(event.target.value, event);
|
|
69
|
+
},
|
|
70
|
+
onFocus: onEnter,
|
|
71
|
+
onBlur: onLeave
|
|
72
|
+
} : {}), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, emptyOption && /*#__PURE__*/_react.default.createElement("option", {
|
|
73
|
+
value: EMPTY
|
|
74
|
+
}, emptyOption), options.map(function (option) {
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement("option", {
|
|
76
|
+
value: option,
|
|
77
|
+
key: option
|
|
78
|
+
}, option);
|
|
79
|
+
})));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.Select = Select;
|
|
83
|
+
Select.displayName = 'Primitive:Input';
|
|
84
|
+
Select.propTypes = {
|
|
85
|
+
disabled: _propTypes.default.bool,
|
|
86
|
+
emptyOption: _propTypes.default.string,
|
|
87
|
+
name: _propTypes.default.string.isRequired,
|
|
88
|
+
options: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
89
|
+
value: _propTypes.default.string,
|
|
90
|
+
onChange: _propTypes.default.func,
|
|
91
|
+
onEnter: _propTypes.default.func,
|
|
92
|
+
onError: _propTypes.default.func,
|
|
93
|
+
onLeave: _propTypes.default.func
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.js","names":["EMPTY","Select","disabled","emptyOption","options","value","onChange","onEnter","onError","onLeave","others","errors","handleChange","event","React","createElement","className","style","select","empty","target","onFocus","onBlur","map","option","displayName","propTypes","PropTypes","bool","string","name","isRequired","arrayOf","func"],"sources":["../../../src/primitives/Select/Select.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useEffect } from 'react';\n\nimport { getInputErrors, styles } from '../../helpers';\nimport style from './Select.module.css';\n\nconst EMPTY = '';\n\nconst Select = ({ disabled, emptyOption, options = [], value, onChange, onEnter, onError, onLeave, ...others }) => {\n useEffect(() => {\n const errors = getInputErrors({ ...others });\n if (errors && onError) onError(errors);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleChange = (value, event) => {\n onError && onError(getInputErrors({ ...others, value }));\n onChange && onChange(value, event);\n };\n\n return React.createElement(\n 'select',\n {\n ...others,\n disabled,\n value,\n className: styles(style.select, value === EMPTY && style.empty, others.className),\n ...(!disabled\n ? {\n onChange: (event) => handleChange(event.target.value, event),\n onFocus: onEnter,\n onBlur: onLeave,\n }\n : {}),\n },\n <>\n {emptyOption && <option value={EMPTY}>{emptyOption}</option>}\n {options.map((option) => (\n <option value={option} key={option}>\n {option}\n </option>\n ))}\n </>,\n );\n};\n\nSelect.displayName = 'Primitive:Input';\n\nSelect.propTypes = {\n disabled: PropTypes.bool,\n emptyOption: PropTypes.string,\n name: PropTypes.string.isRequired,\n options: PropTypes.arrayOf(PropTypes.string),\n value: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onError: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { Select };\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,KAAK,GAAG,EAAd;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,OAAoG;EAAA,IAAjGC,QAAiG,QAAjGA,QAAiG;EAAA,IAAvFC,WAAuF,QAAvFA,WAAuF;EAAA,wBAA1EC,OAA0E;EAAA,IAA1EA,OAA0E,6BAAhE,EAAgE;EAAA,IAA5DC,KAA4D,QAA5DA,KAA4D;EAAA,IAArDC,QAAqD,QAArDA,QAAqD;EAAA,IAA3CC,OAA2C,QAA3CA,OAA2C;EAAA,IAAlCC,OAAkC,QAAlCA,OAAkC;EAAA,IAAzBC,OAAyB,QAAzBA,OAAyB;EAAA,IAAbC,MAAa;;EACjH,sBAAU,YAAM;IACd,IAAMC,MAAM,GAAG,+CAAoBD,MAApB,EAAf;IACA,IAAIC,MAAM,IAAIH,OAAd,EAAuBA,OAAO,CAACG,MAAD,CAAP,CAFT,CAGd;EACD,CAJD,EAIG,EAJH;;EAMA,IAAMC,YAAY,GAAG,SAAfA,YAAe,CAACP,KAAD,EAAQQ,KAAR,EAAkB;IACrCL,OAAO,IAAIA,OAAO,CAAC,6DAAoBE,MAApB;MAA4BL,KAAK,EAALA;IAA5B,GAAD,CAAlB;IACAC,QAAQ,IAAIA,QAAQ,CAACD,KAAD,EAAQQ,KAAR,CAApB;EACD,CAHD;;EAKA,oBAAOC,eAAMC,aAAN,CACL,QADK,kCAGAL,MAHA;IAIHR,QAAQ,EAARA,QAJG;IAKHG,KAAK,EAALA,KALG;IAMHW,SAAS,EAAE,qBAAOC,sBAAMC,MAAb,EAAqBb,KAAK,KAAKL,KAAV,IAAmBiB,sBAAME,KAA9C,EAAqDT,MAAM,CAACM,SAA5D;EANR,GAOC,CAACd,QAAD,GACA;IACEI,QAAQ,EAAE,kBAACO,KAAD;MAAA,OAAWD,YAAY,CAACC,KAAK,CAACO,MAAN,CAAaf,KAAd,EAAqBQ,KAArB,CAAvB;IAAA,CADZ;IAEEQ,OAAO,EAAEd,OAFX;IAGEe,MAAM,EAAEb;EAHV,CADA,GAMA,EAbD,gBAeL,4DACGN,WAAW,iBAAI;IAAQ,KAAK,EAAEH;EAAf,GAAuBG,WAAvB,CADlB,EAEGC,OAAO,CAACmB,GAAR,CAAY,UAACC,MAAD;IAAA,oBACX;MAAQ,KAAK,EAAEA,MAAf;MAAuB,GAAG,EAAEA;IAA5B,GACGA,MADH,CADW;EAAA,CAAZ,CAFH,CAfK,CAAP;AAwBD,CApCD;;;AAsCAvB,MAAM,CAACwB,WAAP,GAAqB,iBAArB;AAEAxB,MAAM,CAACyB,SAAP,GAAmB;EACjBxB,QAAQ,EAAEyB,mBAAUC,IADH;EAEjBzB,WAAW,EAAEwB,mBAAUE,MAFN;EAGjBC,IAAI,EAAEH,mBAAUE,MAAV,CAAiBE,UAHN;EAIjB3B,OAAO,EAAEuB,mBAAUK,OAAV,CAAkBL,mBAAUE,MAA5B,CAJQ;EAKjBxB,KAAK,EAAEsB,mBAAUE,MALA;EAMjBvB,QAAQ,EAAEqB,mBAAUM,IANH;EAOjB1B,OAAO,EAAEoB,mBAAUM,IAPF;EAQjBzB,OAAO,EAAEmB,mBAAUM,IARF;EASjBxB,OAAO,EAAEkB,mBAAUM;AATF,CAAnB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.select {
|
|
2
|
+
background-color: var(--mirai-ui-input-background);
|
|
3
|
+
border: none;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
color: var(--mirai-ui-input-color);
|
|
6
|
+
direction: var(--mirai-ui-text-direction);
|
|
7
|
+
font-family: var(--mirai-ui-input-font);
|
|
8
|
+
font-size: var(--mirai-ui-input-font-size);
|
|
9
|
+
margin: 0;
|
|
10
|
+
outline: none;
|
|
11
|
+
text-align: var(--mirai-ui-text-align);
|
|
12
|
+
user-select: none;
|
|
13
|
+
width: 100%;
|
|
14
|
+
|
|
15
|
+
appearance: none;
|
|
16
|
+
-webkit-appearance: none;
|
|
17
|
+
-moz-appearance: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.select.empty:not(:focus) {
|
|
21
|
+
color: var(--mirai-ui-input-disabled);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.select:disabled {
|
|
25
|
+
color: var(--mirai-ui-input-disabled);
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|