@mirai/ui 1.0.135 → 1.0.136
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 +38 -4
- package/build/components/InputDate/InputDate.js +1 -11
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/InputDate.stories.js +1 -0
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputNumber/InputNumber.js +5 -2
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/InputNumber.stories.js +1 -0
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +67 -0
- package/build/components/InputOption/InputOption.js +16 -6
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +2 -0
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +49 -1
- package/build/components/InputPhone/InputPhone.js +6 -3
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/InputPhone.stories.js +1 -0
- package/build/components/InputPhone/InputPhone.stories.js.map +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +93 -1
- package/build/components/InputSelect/InputSelect.js +5 -2
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/InputSelect.stories.js +1 -0
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +76 -1
- package/build/components/InputText/InputText.js +5 -2
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.stories.js +1 -0
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +30 -1
- package/build/components/Progress/Progress.js +40 -0
- package/build/components/Progress/Progress.js.map +1 -0
- package/build/components/Progress/Progress.module.css +37 -0
- package/build/components/Progress/Progress.stories.js +32 -0
- package/build/components/Progress/Progress.stories.js.map +1 -0
- package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +79 -0
- package/build/components/Progress/index.js +17 -0
- package/build/components/Progress/index.js.map +1 -0
- package/build/theme/default.theme.css +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`component:<Progress> inherit:className 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="view progress mirai"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="view value"
|
|
10
|
+
style="width: 0%;"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
</DocumentFragment>
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
exports[`component:<Progress> prop:indeterminate 1`] = `
|
|
17
|
+
<DocumentFragment>
|
|
18
|
+
<div
|
|
19
|
+
class="view progress"
|
|
20
|
+
>
|
|
21
|
+
<div
|
|
22
|
+
class="view value indeterminate"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</DocumentFragment>
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
exports[`component:<Progress> prop:value 1`] = `
|
|
29
|
+
<DocumentFragment>
|
|
30
|
+
<div
|
|
31
|
+
class="view progress"
|
|
32
|
+
>
|
|
33
|
+
<div
|
|
34
|
+
class="view value"
|
|
35
|
+
style="width: 50%;"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</DocumentFragment>
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`component:<Progress> prop:visible 1`] = `
|
|
42
|
+
<DocumentFragment>
|
|
43
|
+
<div
|
|
44
|
+
class="view progress visible"
|
|
45
|
+
>
|
|
46
|
+
<div
|
|
47
|
+
class="view value"
|
|
48
|
+
style="width: 50%;"
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</DocumentFragment>
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
exports[`component:<Progress> renders 1`] = `
|
|
55
|
+
<DocumentFragment>
|
|
56
|
+
<div
|
|
57
|
+
class="view progress"
|
|
58
|
+
>
|
|
59
|
+
<div
|
|
60
|
+
class="view value"
|
|
61
|
+
style="width: 0%;"
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
</DocumentFragment>
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
exports[`component:<Progress> testID 1`] = `
|
|
68
|
+
<DocumentFragment>
|
|
69
|
+
<div
|
|
70
|
+
class="view progress"
|
|
71
|
+
data-testid="mirai"
|
|
72
|
+
>
|
|
73
|
+
<div
|
|
74
|
+
class="view value"
|
|
75
|
+
style="width: 0%;"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
</DocumentFragment>
|
|
79
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Progress = require("./Progress");
|
|
7
|
+
Object.keys(_Progress).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Progress[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _Progress[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/Progress/index.js"],"sourcesContent":["export * from './Progress';\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -243,6 +243,12 @@
|
|
|
243
243
|
--mirai-ui-notification-padding-large: var(--mirai-ui-space-M);
|
|
244
244
|
--mirai-ui-notification-padding-small: var(--mirai-ui-space-XS);
|
|
245
245
|
|
|
246
|
+
/* Progress */
|
|
247
|
+
--mirai-ui-progress-background: var(--mirai-ui-content-background);
|
|
248
|
+
--mirai-ui-progress-color: var(--mirai-ui-accent);
|
|
249
|
+
--mirai-ui-progress-height: var(--mirai-ui-space-XS);
|
|
250
|
+
--mirai-ui-progress-motion: calc(var(--mirai-ui-motion-expand) * 3);
|
|
251
|
+
|
|
246
252
|
/* Table */
|
|
247
253
|
--mirai-ui-table-background: var(--mirai-ui-base);
|
|
248
254
|
--mirai-ui-table-border-color: var(--mirai-ui-content-border);
|