@mirai/ui 1.0.18 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/build/components/Button/Button.module.css +17 -24
  2. package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +2 -22
  3. package/build/components/Calendar/Calendar.module.css +6 -6
  4. package/build/components/InputNumber/InputNumber.js +3 -1
  5. package/build/components/InputNumber/InputNumber.js.map +1 -1
  6. package/build/components/InputNumber/InputNumber.module.css +2 -2
  7. package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +29 -29
  8. package/build/components/InputOption/InputOption.module.css +1 -1
  9. package/build/components/InputText/InputText.module.css +4 -4
  10. package/build/components/Notification/Notification.js +69 -0
  11. package/build/components/Notification/Notification.js.map +1 -0
  12. package/build/components/Notification/Notification.module.css +73 -0
  13. package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +351 -0
  14. package/build/components/Notification/index.js +19 -0
  15. package/build/components/Notification/index.js.map +1 -0
  16. package/build/components/Table/Table.module.css +4 -4
  17. package/build/components/index.js +13 -0
  18. package/build/components/index.js.map +1 -1
  19. package/build/primitives/Checkbox/Checkbox.module.css +2 -2
  20. package/build/primitives/Icon/Icon.constants.js +8 -1
  21. package/build/primitives/Icon/Icon.constants.js.map +1 -1
  22. package/build/primitives/Input/Input.module.css +1 -1
  23. package/build/primitives/Radio/Radio.module.css +2 -2
  24. package/build/primitives/Switch/Switch.module.css +2 -2
  25. package/build/primitives/Text/Text.js +6 -4
  26. package/build/primitives/Text/Text.js.map +1 -1
  27. package/build/primitives/Text/Text.module.css +8 -0
  28. package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +10 -0
  29. package/build/theme/default.theme.css +39 -15
  30. package/build/theme/theme.js +1 -2
  31. package/build/theme/theme.js.map +1 -1
  32. package/package.json +1 -1
@@ -0,0 +1,351 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`component:<Notification> inherit:className 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="view row notification mirai"
7
+ >
8
+ <span
9
+ class="icon icon"
10
+ >
11
+ <svg
12
+ fill="currentColor"
13
+ height="1em"
14
+ stroke="currentColor"
15
+ stroke-width="0"
16
+ viewBox="0 0 24 24"
17
+ width="1em"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ >
20
+ <path
21
+ d="M0 0h24v24H0z"
22
+ fill="none"
23
+ />
24
+ <path
25
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
26
+ />
27
+ </svg>
28
+ </span>
29
+ <div
30
+ class="view text"
31
+ >
32
+ <span
33
+ class="text action"
34
+ >
35
+ Lorem Ipsum...
36
+ </span>
37
+ </div>
38
+ </div>
39
+ </DocumentFragment>
40
+ `;
41
+
42
+ exports[`component:<Notification> prop:error 1`] = `
43
+ <DocumentFragment>
44
+ <div
45
+ class="view row notification error"
46
+ >
47
+ <span
48
+ class="icon icon"
49
+ >
50
+ <svg
51
+ fill="currentColor"
52
+ height="1em"
53
+ stroke="currentColor"
54
+ stroke-width="0"
55
+ viewBox="0 0 24 24"
56
+ width="1em"
57
+ xmlns="http://www.w3.org/2000/svg"
58
+ >
59
+ <path
60
+ d="M0 0h24v24H0z"
61
+ fill="none"
62
+ />
63
+ <path
64
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
65
+ />
66
+ </svg>
67
+ </span>
68
+ <div
69
+ class="view text error"
70
+ >
71
+ <span
72
+ class="text action"
73
+ >
74
+ Lorem Ipsum...
75
+ </span>
76
+ </div>
77
+ </div>
78
+ </DocumentFragment>
79
+ `;
80
+
81
+ exports[`component:<Notification> prop:onClose 1`] = `
82
+ <DocumentFragment>
83
+ <div
84
+ class="view row notification"
85
+ >
86
+ <span
87
+ class="icon icon"
88
+ >
89
+ <svg
90
+ fill="currentColor"
91
+ height="1em"
92
+ stroke="currentColor"
93
+ stroke-width="0"
94
+ viewBox="0 0 24 24"
95
+ width="1em"
96
+ xmlns="http://www.w3.org/2000/svg"
97
+ >
98
+ <path
99
+ d="M0 0h24v24H0z"
100
+ fill="none"
101
+ />
102
+ <path
103
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
104
+ />
105
+ </svg>
106
+ </span>
107
+ <div
108
+ class="view text"
109
+ >
110
+ <span
111
+ class="text action"
112
+ >
113
+ Lorem Ipsum...
114
+ </span>
115
+ </div>
116
+ <button
117
+ class="pressable pressable"
118
+ >
119
+ <span
120
+ class="icon icon"
121
+ >
122
+ <svg
123
+ fill="none"
124
+ height="1em"
125
+ stroke="currentColor"
126
+ stroke-linecap="round"
127
+ stroke-linejoin="round"
128
+ stroke-width="2"
129
+ viewBox="0 0 24 24"
130
+ width="1em"
131
+ xmlns="http://www.w3.org/2000/svg"
132
+ >
133
+ <line
134
+ x1="18"
135
+ x2="6"
136
+ y1="6"
137
+ y2="18"
138
+ />
139
+ <line
140
+ x1="6"
141
+ x2="18"
142
+ y1="6"
143
+ y2="18"
144
+ />
145
+ </svg>
146
+ </span>
147
+ </button>
148
+ </div>
149
+ </DocumentFragment>
150
+ `;
151
+
152
+ exports[`component:<Notification> prop:success 1`] = `
153
+ <DocumentFragment>
154
+ <div
155
+ class="view row notification success"
156
+ >
157
+ <span
158
+ class="icon icon"
159
+ >
160
+ <svg
161
+ fill="currentColor"
162
+ height="1em"
163
+ stroke="currentColor"
164
+ stroke-width="0"
165
+ viewBox="0 0 24 24"
166
+ width="1em"
167
+ xmlns="http://www.w3.org/2000/svg"
168
+ >
169
+ <path
170
+ d="M0 0h24v24H0z"
171
+ fill="none"
172
+ />
173
+ <path
174
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
175
+ />
176
+ </svg>
177
+ </span>
178
+ <div
179
+ class="view text success"
180
+ >
181
+ <span
182
+ class="text action"
183
+ >
184
+ Lorem Ipsum...
185
+ </span>
186
+ </div>
187
+ </div>
188
+ </DocumentFragment>
189
+ `;
190
+
191
+ exports[`component:<Notification> prop:title 1`] = `
192
+ <DocumentFragment>
193
+ <div
194
+ class="view row notification"
195
+ >
196
+ <span
197
+ class="icon icon"
198
+ >
199
+ <svg
200
+ fill="currentColor"
201
+ height="1em"
202
+ stroke="currentColor"
203
+ stroke-width="0"
204
+ viewBox="0 0 24 24"
205
+ width="1em"
206
+ xmlns="http://www.w3.org/2000/svg"
207
+ >
208
+ <path
209
+ d="M0 0h24v24H0z"
210
+ fill="none"
211
+ />
212
+ <path
213
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
214
+ />
215
+ </svg>
216
+ </span>
217
+ <div
218
+ class="view text"
219
+ >
220
+ <span
221
+ class="text bold action"
222
+ >
223
+ Title
224
+ </span>
225
+ <span
226
+ class="text action"
227
+ >
228
+ Lorem Ipsum...
229
+ </span>
230
+ </div>
231
+ </div>
232
+ </DocumentFragment>
233
+ `;
234
+
235
+ exports[`component:<Notification> prop:warning 1`] = `
236
+ <DocumentFragment>
237
+ <div
238
+ class="view row notification warning"
239
+ >
240
+ <span
241
+ class="icon icon"
242
+ >
243
+ <svg
244
+ fill="currentColor"
245
+ height="1em"
246
+ stroke="currentColor"
247
+ stroke-width="0"
248
+ viewBox="0 0 24 24"
249
+ width="1em"
250
+ xmlns="http://www.w3.org/2000/svg"
251
+ >
252
+ <path
253
+ d="M0 0h24v24H0z"
254
+ fill="none"
255
+ />
256
+ <path
257
+ d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
258
+ />
259
+ </svg>
260
+ </span>
261
+ <div
262
+ class="view text warning"
263
+ >
264
+ <span
265
+ class="text action"
266
+ >
267
+ Lorem Ipsum...
268
+ </span>
269
+ </div>
270
+ </div>
271
+ </DocumentFragment>
272
+ `;
273
+
274
+ exports[`component:<Notification> renders 1`] = `
275
+ <DocumentFragment>
276
+ <div
277
+ class="view row notification"
278
+ >
279
+ <span
280
+ class="icon icon"
281
+ >
282
+ <svg
283
+ fill="currentColor"
284
+ height="1em"
285
+ stroke="currentColor"
286
+ stroke-width="0"
287
+ viewBox="0 0 24 24"
288
+ width="1em"
289
+ xmlns="http://www.w3.org/2000/svg"
290
+ >
291
+ <path
292
+ d="M0 0h24v24H0z"
293
+ fill="none"
294
+ />
295
+ <path
296
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
297
+ />
298
+ </svg>
299
+ </span>
300
+ <div
301
+ class="view text"
302
+ >
303
+ <span
304
+ class="text action"
305
+ >
306
+ Lorem Ipsum...
307
+ </span>
308
+ </div>
309
+ </div>
310
+ </DocumentFragment>
311
+ `;
312
+
313
+ exports[`component:<Notification> testID 1`] = `
314
+ <DocumentFragment>
315
+ <div
316
+ class="view row notification"
317
+ data-testid="mirai"
318
+ >
319
+ <span
320
+ class="icon icon"
321
+ >
322
+ <svg
323
+ fill="currentColor"
324
+ height="1em"
325
+ stroke="currentColor"
326
+ stroke-width="0"
327
+ viewBox="0 0 24 24"
328
+ width="1em"
329
+ xmlns="http://www.w3.org/2000/svg"
330
+ >
331
+ <path
332
+ d="M0 0h24v24H0z"
333
+ fill="none"
334
+ />
335
+ <path
336
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
337
+ />
338
+ </svg>
339
+ </span>
340
+ <div
341
+ class="view text"
342
+ >
343
+ <span
344
+ class="text action"
345
+ >
346
+ Lorem Ipsum...
347
+ </span>
348
+ </div>
349
+ </div>
350
+ </DocumentFragment>
351
+ `;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _Notification = require("./Notification");
8
+
9
+ Object.keys(_Notification).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _Notification[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _Notification[key];
16
+ }
17
+ });
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Notification/index.js"],"sourcesContent":["export * from './Notification';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,12 +1,12 @@
1
1
  :root {
2
2
  --mirai-ui-table-base: var(--mirai-ui-base);
3
- --mirai-ui-table-border-color: var(--mirai-ui-content-300);
3
+ --mirai-ui-table-border-color: var(--mirai-ui-content-border);
4
4
  --mirai-ui-table-content: var(--mirai-ui-content);
5
- --mirai-ui-table-hover-background: var(--mirai-ui-accent-300);
6
- --mirai-ui-table-head-color: var(--mirai-ui-content-400);
5
+ --mirai-ui-table-hover-background: var(--mirai-ui-accent-background);
6
+ --mirai-ui-table-head-color: var(--mirai-ui-content-light);
7
7
  --mirai-ui-table-padding-x: var(--mirai-ui-space-M);
8
8
  --mirai-ui-table-padding-y: var(--mirai-ui-space-M);
9
- --mirai-ui-table-selected-background: var(--mirai-ui-accent-200);
9
+ --mirai-ui-table-selected-background: var(--mirai-ui-accent-background);
10
10
  --mirai-ui-table-selected-color: var(--mirai-ui-accent);
11
11
  }
12
12
 
@@ -121,6 +121,19 @@ Object.keys(_Modal).forEach(function (key) {
121
121
  });
122
122
  });
123
123
 
124
+ var _Notification = require("./Notification");
125
+
126
+ Object.keys(_Notification).forEach(function (key) {
127
+ if (key === "default" || key === "__esModule") return;
128
+ if (key in exports && exports[key] === _Notification[key]) return;
129
+ Object.defineProperty(exports, key, {
130
+ enumerable: true,
131
+ get: function get() {
132
+ return _Notification[key];
133
+ }
134
+ });
135
+ });
136
+
124
137
  var _Table = require("./Table");
125
138
 
126
139
  Object.keys(_Table).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.js"],"sourcesContent":["export * from './Button';\nexport * from './Calendar';\nexport * from './Form';\nexport * from './InputNumber';\nexport * from './InputOption';\nexport * from './InputSelect';\nexport * from './InputText';\nexport * from './Menu';\nexport * from './Modal';\nexport * from './Table';\nexport * from './Tooltip';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.js"],"sourcesContent":["export * from './Button';\nexport * from './Calendar';\nexport * from './Form';\nexport * from './InputNumber';\nexport * from './InputOption';\nexport * from './InputSelect';\nexport * from './InputText';\nexport * from './Menu';\nexport * from './Modal';\nexport * from './Notification';\nexport * from './Table';\nexport * from './Tooltip';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,9 +1,9 @@
1
1
  :root {
2
2
  --mirai-ui-checkbox-base: var(--mirai-ui-base);
3
- --mirai-ui-checkbox-border-color: var(--mirai-ui-content-400);
3
+ --mirai-ui-checkbox-border-color: var(--mirai-ui-content-light);
4
4
  --mirai-ui-checkbox-border-radius: var(--mirai-ui-border-radius);
5
5
  --mirai-ui-checkbox-checked: var(--mirai-ui-accent);
6
- --mirai-ui-checkbox-disabled: var(--mirai-ui-content-300);
6
+ --mirai-ui-checkbox-disabled: var(--mirai-ui-content-border);
7
7
  --mirai-ui-checkbox-size: var(--mirai-ui-space-L);
8
8
  }
9
9
 
@@ -7,6 +7,8 @@ exports.ICONS = void 0;
7
7
 
8
8
  var _fi = require("react-icons/fi");
9
9
 
10
+ var _md = require("react-icons/md");
11
+
10
12
  var ICONS = {
11
13
  Empty: undefined,
12
14
  // directions
@@ -24,7 +26,12 @@ var ICONS = {
24
26
  EyeOpen: _fi.FiEye,
25
27
  EyeClose: _fi.FiEyeOff,
26
28
  // Check
27
- Check: _fi.FiCheck
29
+ Check: _fi.FiCheck,
30
+ // Notification,
31
+ Error: _md.MdError,
32
+ Info: _md.MdInfo,
33
+ Success: _md.MdCheckCircle,
34
+ Warning: _md.MdWarning
28
35
  };
29
36
  exports.ICONS = ICONS;
30
37
  //# sourceMappingURL=Icon.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.constants.js","names":["ICONS","Empty","undefined","Left","Right","Up","Down","Close","CloseArrow","Plus","Minus","EyeOpen","EyeClose","Check"],"sources":["../../../src/primitives/Icon/Icon.constants.js"],"sourcesContent":["import {\n FiArrowUp as Up,\n FiArrowDown as Down,\n FiArrowLeft as Left,\n FiArrowRight as Right,\n FiChevronDown as CloseArrow,\n FiX as Close,\n FiEye as EyeOpen,\n FiEyeOff as EyeClose,\n FiPlus as Plus,\n FiMinus as Minus,\n FiCheck as Check,\n} from 'react-icons/fi';\n\nconst ICONS = {\n Empty: undefined,\n // directions\n Left,\n Right,\n Up,\n Down,\n // Close\n Close,\n CloseArrow,\n // Calc\n Plus,\n Minus,\n // Eye\n EyeOpen,\n EyeClose,\n // Check\n Check,\n};\n\nexport { ICONS };\n"],"mappings":";;;;;;;AAAA;;AAcA,IAAMA,KAAK,GAAG;EACZC,KAAK,EAAEC,SADK;EAEZ;EACAC,IAAI,EAAJA,eAHY;EAIZC,KAAK,EAALA,gBAJY;EAKZC,EAAE,EAAFA,aALY;EAMZC,IAAI,EAAJA,eANY;EAOZ;EACAC,KAAK,EAALA,OARY;EASZC,UAAU,EAAVA,iBATY;EAUZ;EACAC,IAAI,EAAJA,UAXY;EAYZC,KAAK,EAALA,WAZY;EAaZ;EACAC,OAAO,EAAPA,SAdY;EAeZC,QAAQ,EAARA,YAfY;EAgBZ;EACAC,KAAK,EAALA;AAjBY,CAAd"}
1
+ {"version":3,"file":"Icon.constants.js","names":["ICONS","Empty","undefined","Left","Right","Up","Down","Close","CloseArrow","Plus","Minus","EyeOpen","EyeClose","Check","Error","Info","Success","Warning"],"sources":["../../../src/primitives/Icon/Icon.constants.js"],"sourcesContent":["import {\n // directions\n FiArrowUp as Up,\n FiArrowDown as Down,\n FiArrowLeft as Left,\n FiArrowRight as Right,\n // Close\n FiChevronDown as CloseArrow,\n FiX as Close,\n // Calc\n FiMinus as Minus,\n FiPlus as Plus,\n // Eye\n FiEye as EyeOpen,\n FiEyeOff as EyeClose,\n // Check\n FiCheck as Check,\n} from 'react-icons/fi';\nimport {\n // Notification\n MdError as Error,\n MdInfo as Info,\n MdCheckCircle as Success,\n MdWarning as Warning,\n} from 'react-icons/md';\n\nconst ICONS = {\n Empty: undefined,\n // directions\n Left,\n Right,\n Up,\n Down,\n // Close\n Close,\n CloseArrow,\n // Calc\n Plus,\n Minus,\n // Eye\n EyeOpen,\n EyeClose,\n // Check\n Check,\n // Notification,\n Error,\n Info,\n Success,\n Warning,\n};\n\nexport { ICONS };\n"],"mappings":";;;;;;;AAAA;;AAkBA;;AAQA,IAAMA,KAAK,GAAG;EACZC,KAAK,EAAEC,SADK;EAEZ;EACAC,IAAI,EAAJA,eAHY;EAIZC,KAAK,EAALA,gBAJY;EAKZC,EAAE,EAAFA,aALY;EAMZC,IAAI,EAAJA,eANY;EAOZ;EACAC,KAAK,EAALA,OARY;EASZC,UAAU,EAAVA,iBATY;EAUZ;EACAC,IAAI,EAAJA,UAXY;EAYZC,KAAK,EAALA,WAZY;EAaZ;EACAC,OAAO,EAAPA,SAdY;EAeZC,QAAQ,EAARA,YAfY;EAgBZ;EACAC,KAAK,EAALA,WAjBY;EAkBZ;EACAC,KAAK,EAALA,WAnBY;EAoBZC,IAAI,EAAJA,UApBY;EAqBZC,OAAO,EAAPA,iBArBY;EAsBZC,OAAO,EAAPA;AAtBY,CAAd"}
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --mirai-ui-input-background: var(--mirai-ui-base);
3
3
  --mirai-ui-input-color: var(--mirai-ui-content);
4
- --mirai-ui-input-disabled: var(--mirai-ui-content-400);
4
+ --mirai-ui-input-disabled: var(--mirai-ui-content-light);
5
5
  }
6
6
 
7
7
  .input {
@@ -1,8 +1,8 @@
1
1
  :root {
2
2
  --mirai-ui-radio-base: var(--mirai-ui-base);
3
- --mirai-ui-radio-border: var(--mirai-ui-content-400);
3
+ --mirai-ui-radio-border: var(--mirai-ui-content-light);
4
4
  --mirai-ui-radio-checked: var(--mirai-ui-accent);
5
- --mirai-ui-radio-disabled: var(--mirai-ui-content-300);
5
+ --mirai-ui-radio-disabled: var(--mirai-ui-content-border);
6
6
  --mirai-ui-radio-size: var(--mirai-ui-space-L);
7
7
  }
8
8
 
@@ -1,10 +1,10 @@
1
1
  :root {
2
2
  --mirai-ui-switch-base: var(--mirai-ui-base);
3
- --mirai-ui-switch-border-color: var(--mirai-ui-content-400);
3
+ --mirai-ui-switch-border-color: var(--mirai-ui-content-light);
4
4
  --mirai-ui-switch-border-size: calc(var(--mirai-ui-space-XS) / 4);
5
5
  --mirai-ui-switch-border-radius: var(--mirai-ui-space-L);
6
6
  --mirai-ui-switch-checked: var(--mirai-ui-accent);
7
- --mirai-ui-switch-disabled: var(--mirai-ui-content-300);
7
+ --mirai-ui-switch-disabled: var(--mirai-ui-content-border);
8
8
  --mirai-ui-switch-size: var(--mirai-ui-space-L);
9
9
  }
10
10
 
@@ -13,7 +13,7 @@ var _helpers = require("../../helpers");
13
13
 
14
14
  var _TextModule = _interopRequireDefault(require("./Text.module.css"));
15
15
 
16
- var _excluded = ["action", "bold", "children", "headline", "small", "tag", "upperCase"];
16
+ var _excluded = ["action", "bold", "children", "headline", "small", "subheadline", "tag", "upperCase"];
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -33,13 +33,14 @@ var Text = function Text(_ref) {
33
33
  children = _ref.children,
34
34
  headline = _ref.headline,
35
35
  small = _ref.small,
36
+ subheadline = _ref.subheadline,
36
37
  _ref$tag = _ref.tag,
37
38
  tag = _ref$tag === void 0 ? 'span' : _ref$tag,
38
39
  upperCase = _ref.upperCase,
39
40
  others = _objectWithoutProperties(_ref, _excluded);
40
41
 
41
42
  return /*#__PURE__*/_react.default.createElement(tag, _objectSpread(_objectSpread({}, others), {}, {
42
- className: (0, _helpers.styles)(_TextModule.default.text, bold && _TextModule.default.bold, headline ? _TextModule.default.headline : action ? _TextModule.default.action : small ? _TextModule.default.small : _TextModule.default.paragraph, upperCase && _TextModule.default.upperCase, others.className)
43
+ className: (0, _helpers.styles)(_TextModule.default.text, bold && _TextModule.default.bold, headline ? _TextModule.default.headline : subheadline ? _TextModule.default.subheadline : action ? _TextModule.default.action : small ? _TextModule.default.small : _TextModule.default.paragraph, upperCase && _TextModule.default.upperCase, others.className)
43
44
  }), children);
44
45
  };
45
46
 
@@ -50,8 +51,9 @@ Text.propTypes = {
50
51
  bold: _propTypes.default.bool,
51
52
  children: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.array]),
52
53
  headline: _propTypes.default.bool,
53
- upperCase: _propTypes.default.bool,
54
54
  small: _propTypes.default.bool,
55
- tag: _propTypes.default.string
55
+ subheadline: _propTypes.default.bool,
56
+ tag: _propTypes.default.string,
57
+ upperCase: _propTypes.default.bool
56
58
  };
57
59
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["Text","action","bold","children","headline","small","tag","upperCase","others","React","createElement","className","style","text","paragraph","displayName","propTypes","PropTypes","bool","oneOfType","string","number","array"],"sources":["../../../src/primitives/Text/Text.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport style from './Text.module.css';\n\nconst Text = ({ action, bold, children, headline, small, tag = 'span', upperCase, ...others }) =>\n React.createElement(\n tag,\n {\n ...others,\n className: styles(\n style.text,\n bold && style.bold,\n headline ? style.headline : action ? style.action : small ? style.small : style.paragraph,\n upperCase && style.upperCase,\n others.className,\n ),\n },\n children,\n );\n\nText.displayName = 'Primitive:Text';\n\nText.propTypes = {\n action: PropTypes.bool,\n bold: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n headline: PropTypes.bool,\n upperCase: PropTypes.bool,\n small: PropTypes.bool,\n tag: PropTypes.string,\n};\n\nexport { Text };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG,SAAPA,IAAO;EAAA,IAAGC,MAAH,QAAGA,MAAH;EAAA,IAAWC,IAAX,QAAWA,IAAX;EAAA,IAAiBC,QAAjB,QAAiBA,QAAjB;EAAA,IAA2BC,QAA3B,QAA2BA,QAA3B;EAAA,IAAqCC,KAArC,QAAqCA,KAArC;EAAA,oBAA4CC,GAA5C;EAAA,IAA4CA,GAA5C,yBAAkD,MAAlD;EAAA,IAA0DC,SAA1D,QAA0DA,SAA1D;EAAA,IAAwEC,MAAxE;;EAAA,oBACXC,eAAMC,aAAN,CACEJ,GADF,kCAGOE,MAHP;IAIIG,SAAS,EAAE,qBACTC,oBAAMC,IADG,EAETX,IAAI,IAAIU,oBAAMV,IAFL,EAGTE,QAAQ,GAAGQ,oBAAMR,QAAT,GAAoBH,MAAM,GAAGW,oBAAMX,MAAT,GAAkBI,KAAK,GAAGO,oBAAMP,KAAT,GAAiBO,oBAAME,SAHvE,EAITP,SAAS,IAAIK,oBAAML,SAJV,EAKTC,MAAM,CAACG,SALE;EAJf,IAYER,QAZF,CADW;AAAA,CAAb;;;AAgBAH,IAAI,CAACe,WAAL,GAAmB,gBAAnB;AAEAf,IAAI,CAACgB,SAAL,GAAiB;EACff,MAAM,EAAEgB,mBAAUC,IADH;EAEfhB,IAAI,EAAEe,mBAAUC,IAFD;EAGff,QAAQ,EAAEc,mBAAUE,SAAV,CAAoB,CAACF,mBAAUG,MAAX,EAAmBH,mBAAUI,MAA7B,EAAqCJ,mBAAUK,KAA/C,CAApB,CAHK;EAIflB,QAAQ,EAAEa,mBAAUC,IAJL;EAKfX,SAAS,EAAEU,mBAAUC,IALN;EAMfb,KAAK,EAAEY,mBAAUC,IANF;EAOfZ,GAAG,EAAEW,mBAAUG;AAPA,CAAjB"}
1
+ {"version":3,"file":"Text.js","names":["Text","action","bold","children","headline","small","subheadline","tag","upperCase","others","React","createElement","className","style","text","paragraph","displayName","propTypes","PropTypes","bool","oneOfType","string","number","array"],"sources":["../../../src/primitives/Text/Text.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport style from './Text.module.css';\n\nconst Text = ({ action, bold, children, headline, small, subheadline, tag = 'span', upperCase, ...others }) =>\n React.createElement(\n tag,\n {\n ...others,\n className: styles(\n style.text,\n bold && style.bold,\n headline\n ? style.headline\n : subheadline\n ? style.subheadline\n : action\n ? style.action\n : small\n ? style.small\n : style.paragraph,\n upperCase && style.upperCase,\n others.className,\n ),\n },\n children,\n );\n\nText.displayName = 'Primitive:Text';\n\nText.propTypes = {\n action: PropTypes.bool,\n bold: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n headline: PropTypes.bool,\n small: PropTypes.bool,\n subheadline: PropTypes.bool,\n tag: PropTypes.string,\n upperCase: PropTypes.bool,\n};\n\nexport { Text };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG,SAAPA,IAAO;EAAA,IAAGC,MAAH,QAAGA,MAAH;EAAA,IAAWC,IAAX,QAAWA,IAAX;EAAA,IAAiBC,QAAjB,QAAiBA,QAAjB;EAAA,IAA2BC,QAA3B,QAA2BA,QAA3B;EAAA,IAAqCC,KAArC,QAAqCA,KAArC;EAAA,IAA4CC,WAA5C,QAA4CA,WAA5C;EAAA,oBAAyDC,GAAzD;EAAA,IAAyDA,GAAzD,yBAA+D,MAA/D;EAAA,IAAuEC,SAAvE,QAAuEA,SAAvE;EAAA,IAAqFC,MAArF;;EAAA,oBACXC,eAAMC,aAAN,CACEJ,GADF,kCAGOE,MAHP;IAIIG,SAAS,EAAE,qBACTC,oBAAMC,IADG,EAETZ,IAAI,IAAIW,oBAAMX,IAFL,EAGTE,QAAQ,GACJS,oBAAMT,QADF,GAEJE,WAAW,GACXO,oBAAMP,WADK,GAEXL,MAAM,GACNY,oBAAMZ,MADA,GAENI,KAAK,GACLQ,oBAAMR,KADD,GAELQ,oBAAME,SAXD,EAYTP,SAAS,IAAIK,oBAAML,SAZV,EAaTC,MAAM,CAACG,SAbE;EAJf,IAoBET,QApBF,CADW;AAAA,CAAb;;;AAwBAH,IAAI,CAACgB,WAAL,GAAmB,gBAAnB;AAEAhB,IAAI,CAACiB,SAAL,GAAiB;EACfhB,MAAM,EAAEiB,mBAAUC,IADH;EAEfjB,IAAI,EAAEgB,mBAAUC,IAFD;EAGfhB,QAAQ,EAAEe,mBAAUE,SAAV,CAAoB,CAACF,mBAAUG,MAAX,EAAmBH,mBAAUI,MAA7B,EAAqCJ,mBAAUK,KAA/C,CAApB,CAHK;EAIfnB,QAAQ,EAAEc,mBAAUC,IAJL;EAKfd,KAAK,EAAEa,mBAAUC,IALF;EAMfb,WAAW,EAAEY,mBAAUC,IANR;EAOfZ,GAAG,EAAEW,mBAAUG,MAPA;EAQfb,SAAS,EAAEU,mBAAUC;AARN,CAAjB"}
@@ -14,10 +14,17 @@
14
14
 
15
15
  .headline {
16
16
  font-size: var(--mirai-ui-font-size-headline);
17
+ line-height: var(--mirai-ui-line-height);
18
+ }
19
+
20
+ .subheadline {
21
+ font-size: var(--mirai-ui-font-size-subheadline);
22
+ line-height: var(--mirai-ui-line-height);
17
23
  }
18
24
 
19
25
  .paragraph {
20
26
  font-size: var(--mirai-ui-font-size-paragraph);
27
+ line-height: var(--mirai-ui-line-height);
21
28
  }
22
29
 
23
30
  .action {
@@ -26,6 +33,7 @@
26
33
 
27
34
  .small {
28
35
  font-size: var(--mirai-ui-font-size-small);
36
+ line-height: calc(var(--mirai-ui-font-size-small) * 1.5);
29
37
  }
30
38
 
31
39
  .upperCase {
@@ -60,6 +60,16 @@ exports[`primitive:<Text> prop:small 1`] = `
60
60
  </DocumentFragment>
61
61
  `;
62
62
 
63
+ exports[`primitive:<Text> prop:subheadline 1`] = `
64
+ <DocumentFragment>
65
+ <span
66
+ class="text subheadline"
67
+ >
68
+ Lorem Ipsum
69
+ </span>
70
+ </DocumentFragment>
71
+ `;
72
+
63
73
  exports[`primitive:<Text> prop:upperCase 1`] = `
64
74
  <DocumentFragment>
65
75
  <span
@@ -1,37 +1,61 @@
1
1
  :root {
2
2
  /* typography */
3
- --mirai-ui-font: Helvetica;
4
- --mirai-ui-input-font: Helvetica;
3
+ --mirai-ui-font: Arial, Regular;
4
+ --mirai-ui-input-font: Arial, Regular;
5
5
  --mirai-ui-font-weight: 400;
6
- --mirai-ui-font-bold: Helvetica;
6
+ --mirai-ui-font-bold: Arial, Regular;
7
7
  --mirai-ui-font-bold-weight: 700;
8
- --mirai-ui-font-size-headline: 24px;
9
- --mirai-ui-font-size-paragraph: 16px;
10
- --mirai-ui-font-size-action: 15px;
11
- --mirai-ui-font-size-small: 11px;
12
- --mirai-ui-input-font-size: 16px;
8
+ --mirai-ui-font-size-headline: 18px;
9
+ --mirai-ui-font-size-subheadline: 16px;
10
+ --mirai-ui-font-size-paragraph: 14px;
11
+ --mirai-ui-font-size-action: 14px;
12
+ --mirai-ui-font-size-small: 12px;
13
+ --mirai-ui-input-font-size: 14px;
14
+ --mirai-ui-line-height: 24px;
13
15
  --mirai-ui-text-direction: ltr;
14
16
  --mirai-ui-text-align: left;
15
17
 
16
18
  /* palette */
17
19
  --mirai-ui-base: #ffffff;
18
20
  /* !TODO: Change to -text ------------------------------------------------- */
19
- --mirai-ui-content: #202020;
20
- --mirai-ui-content-400: #5f6368;
21
- --mirai-ui-content-300: #d3d3d3;
21
+ --mirai-ui-content: #484848;
22
+ --mirai-ui-content-background: #f6f6f6;
23
+ --mirai-ui-content-border: #e4e4e4;
24
+ --mirai-ui-content-dark: #202020;
25
+ --mirai-ui-content-light: #999999;
22
26
  /* !TODO ------------------------------------------------------------------ */
23
27
 
24
28
  --mirai-ui-accent: #3978c5;
25
- --mirai-ui-error: #e04646;
26
- --mirai-ui-success: #5fb560;
29
+ --mirai-ui-accent-background: #e9f1fc;
30
+ --mirai-ui-accent-border: #b0c9e8;
31
+ --mirai-ui-accent-dark: #224876;
32
+ --mirai-ui-accent-light: #88aedc;
33
+
34
+ --mirai-ui-error: #d14343;
35
+ --mirai-ui-error-background: #fdf4f4;
36
+ --mirai-ui-error-border: #f4b6b6;
37
+ --mirai-ui-error-dark: #7d2828;
38
+ --mirai-ui-error-light: #ee9191;
39
+
40
+ --mirai-ui-success: #52bd94;
41
+ --mirai-ui-success-background: #f5fbf8;
42
+ --mirai-ui-success-border: #dcf2ea;
43
+ --mirai-ui-success-dark: #317159;
44
+ --mirai-ui-success-light: #a3e6cd;
45
+
46
+ --mirai-ui-warning: #ffb020;
47
+ --mirai-ui-warning-background: #fffaf1;
48
+ --mirai-ui-warning-border: #ffdfa6;
49
+ --mirai-ui-warning-dark: #66460d;
50
+ --mirai-ui-warning-light: #ffd079;
27
51
 
28
52
  /* spacing */
29
53
  --mirai-ui-space-XS: 8px;
30
54
  --mirai-ui-space-S: 12px;
31
55
  --mirai-ui-space-M: 16px;
32
56
  --mirai-ui-space-L: 24px;
33
- --mirai-ui-space-XL: 32px;
34
- --mirai-ui-space-XXL: 56px;
57
+ --mirai-ui-space-XL: 48px;
58
+ --mirai-ui-space-XXL: 64px;
35
59
 
36
60
  /* layer */
37
61
  --mirai-ui-layer-S: 0;