@mirai/ui 1.1.0-f → 1.1.2
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 +109 -60
- package/build/components/Action/Action.js +1 -1
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.module.css +4 -7
- package/build/components/Action/Action.stories.js +1 -1
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +26 -40
- package/build/components/Button/Button.module.css +31 -33
- package/build/components/Button/Button.stories.js +9 -0
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +21 -30
- package/build/components/Calendar/Calendar.Month.js +12 -8
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +7 -10
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.js +10 -2
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +8 -9
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +15768 -15800
- package/build/components/Form/Form.constants.js +1 -1
- package/build/components/Form/Form.constants.js.map +1 -1
- package/build/components/Form/Form.js +3 -1
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/Form.stories.js +6 -1
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +9 -9
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +42 -42
- package/build/components/InputNumber/InputNumber.js +2 -1
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +138 -153
- package/build/components/InputOption/InputOption.js +8 -1
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.module.css +13 -2
- package/build/components/InputOption/InputOption.stories.js +2 -1
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +96 -90
- package/build/components/InputPhone/InputPhone.js +23 -20
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/InputPhone.module.css +19 -6
- package/build/components/InputPhone/InputPhone.stories.js +3 -3
- package/build/components/InputPhone/InputPhone.stories.js.map +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +410 -410
- package/build/components/InputPhone/helpers/index.js +11 -0
- package/build/components/InputPhone/helpers/index.js.map +1 -1
- package/build/components/InputPhone/helpers/sanitizePrefixes.js +24 -0
- package/build/components/InputPhone/helpers/sanitizePrefixes.js.map +1 -0
- package/build/components/InputSelect/InputSelect.js +3 -5
- 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 +136 -136
- package/build/components/InputSelect/partials/InputSelect.Expand.js +23 -0
- package/build/components/InputSelect/partials/InputSelect.Expand.js.map +1 -0
- package/build/components/InputSelect/partials/index.js +17 -0
- package/build/components/InputSelect/partials/index.js.map +1 -0
- package/build/components/InputText/InputText.js +6 -4
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +18 -6
- package/build/components/InputText/InputText.stories.js +7 -2
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +142 -143
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +72 -70
- package/build/components/Modal/Modal.js +15 -8
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.module.css +30 -14
- package/build/components/Modal/Modal.stories.js +1 -0
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +92 -98
- package/build/components/Notification/Notification.js +20 -12
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +44 -58
- package/build/components/Notification/Notification.stories.js +15 -2
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +600 -254
- package/build/components/Progress/Progress.js +2 -0
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +18 -18
- package/build/components/Slider/Slider.constants.js +3 -1
- package/build/components/Slider/Slider.constants.js.map +1 -1
- package/build/components/Slider/Slider.js +67 -66
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/Slider.module.css +55 -52
- package/build/components/Slider/Slider.stories.js +9 -6
- package/build/components/Slider/Slider.stories.js.map +1 -1
- package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +714 -333
- package/build/components/Table/Table.ColumnFilter.js +17 -14
- package/build/components/Table/Table.ColumnFilter.js.map +1 -1
- package/build/components/Table/Table.Row.js +2 -1
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.constants.js +3 -1
- package/build/components/Table/Table.constants.js.map +1 -1
- package/build/components/Table/Table.js +54 -17
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/Table.module.css +12 -6
- package/build/components/Table/Table.stories.js +39 -19
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/Table.stories.module.css +4 -5
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +221 -240
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +1725 -1085
- package/build/components/Table/helpers/exists.js +2 -3
- package/build/components/Table/helpers/exists.js.map +1 -1
- package/build/components/Table/helpers/select.js +24 -16
- package/build/components/Table/helpers/select.js.map +1 -1
- package/build/components/Tooltip/Tooltip.js +29 -6
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +51 -44
- package/build/components/index.js +11 -0
- package/build/components/index.js.map +1 -1
- package/build/helpers/getInputPhoneErrors.js +3 -2
- package/build/helpers/getInputPhoneErrors.js.map +1 -1
- package/build/hooks/useDevice.js +1 -1
- package/build/hooks/useDevice.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.js +4 -3
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.module.css +43 -6
- package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +47 -16
- package/build/primitives/Icon/Icon.constants.js +43 -21
- package/build/primitives/Icon/Icon.constants.js.map +1 -1
- package/build/primitives/Icon/Icon.js +15 -5
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.module.css +32 -19
- package/build/primitives/Icon/Icon.stories.js +5 -0
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +291 -100
- package/build/primitives/Input/Input.js +9 -3
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Input/Input.stories.js +2 -0
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Input/__tests__/__snapshots__/Input.test.js.snap +22 -0
- package/build/primitives/Layer/Layer.js +11 -5
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/Layer.module.css +4 -0
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +78 -42
- package/build/primitives/Layer/helpers/index.js +11 -0
- package/build/primitives/Layer/helpers/index.js.map +1 -1
- package/build/primitives/Layer/helpers/isComponentFixed.js +32 -0
- package/build/primitives/Layer/helpers/isComponentFixed.js.map +1 -0
- package/build/primitives/Pressable/Pressable.constants.js +1 -1
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +3 -7
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/Pressable.module.css +0 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +10 -14
- package/build/primitives/Primitive/Primitive.js +2 -2
- package/build/primitives/Primitive/Primitive.js.map +1 -1
- package/build/primitives/Primitive/__tests__/__snapshots__/Primitive.test.js.snap +7 -7
- package/build/primitives/Primitive/helpers/index.js +0 -11
- package/build/primitives/Primitive/helpers/index.js.map +1 -1
- package/build/primitives/Radio/Radio.js +1 -1
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/Radio.module.css +20 -2
- package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +21 -21
- package/build/primitives/ScrollView/ScrollView.js +1 -1
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.module.css +1 -0
- package/build/primitives/ScrollView/ScrollView.stories.js +5 -6
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +20 -20
- package/build/primitives/Select/Select.js +13 -6
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Select/Select.stories.js +1 -0
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Select/__tests__/__snapshots__/Select.test.js.snap +36 -0
- package/build/primitives/Switch/Switch.js +5 -3
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/Switch.module.css +35 -7
- package/build/primitives/Switch/Switch.stories.js +1 -0
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +88 -25
- package/build/primitives/Text/Text.js +12 -5
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.module.css +29 -14
- package/build/primitives/Text/Text.stories.js +4 -0
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +78 -38
- package/build/primitives/View/View.js +1 -1
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +10 -10
- package/build/theme/default.theme.css +54 -53
- package/build/theme/theme.constants.js +3 -1
- package/build/theme/theme.constants.js.map +1 -1
- package/build/theme/theme.js +34 -11
- package/build/theme/theme.js.map +1 -1
- package/package.json +4 -5
- package/build/primitives/Primitive/helpers/getTag.js +0 -33
- package/build/primitives/Primitive/helpers/getTag.js.map +0 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.checkbox {
|
|
2
|
-
height: var(--mirai-ui-checkbox-size);
|
|
3
2
|
position: relative;
|
|
4
|
-
width: var(--mirai-ui-checkbox-size);
|
|
5
3
|
}
|
|
6
4
|
|
|
7
5
|
.checkbox input {
|
|
@@ -10,13 +8,12 @@
|
|
|
10
8
|
border-radius: var(--mirai-ui-checkbox-border-radius);
|
|
11
9
|
box-sizing: border-box;
|
|
12
10
|
cursor: pointer;
|
|
13
|
-
height: var(--mirai-ui-checkbox-size);
|
|
14
11
|
margin: 0;
|
|
15
12
|
outline: none;
|
|
16
13
|
transition: background-color var(--mirai-ui-motion-collapse) var(--mirai-ui-motion-easing),
|
|
17
|
-
border-color var(--mirai-ui-motion-collapse) var(--mirai-ui-motion-easing)
|
|
14
|
+
border-color var(--mirai-ui-motion-collapse) var(--mirai-ui-motion-easing),
|
|
15
|
+
box-shadow var(--mirai-ui-motion-collapse) var(--mirai-ui-motion-easing);
|
|
18
16
|
user-select: none;
|
|
19
|
-
width: var(--mirai-ui-checkbox-size);
|
|
20
17
|
|
|
21
18
|
appearance: none;
|
|
22
19
|
-webkit-appearance: none;
|
|
@@ -36,8 +33,48 @@
|
|
|
36
33
|
border-color: var(--mirai-ui-checkbox-checked);
|
|
37
34
|
}
|
|
38
35
|
|
|
36
|
+
.checkbox input:not(:disabled).error {
|
|
37
|
+
border-color: var(--mirai-ui-error);
|
|
38
|
+
border-width: calc(var(--mirai-ui-border-width) * 2);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.checkbox input:not(:disabled):focus,
|
|
42
|
+
.checkbox input:not(:disabled):hover {
|
|
43
|
+
border-color: var(--mirai-ui-focus-color);
|
|
44
|
+
box-shadow: var(--mirai-ui-focus-shadow);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.checkbox input:not(:disabled):checked:focus,
|
|
48
|
+
.checkbox input:not(:disabled):checked:hover {
|
|
49
|
+
background-color: var(--mirai-ui-focus-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
/* -- reset defaults -------------------------------------------------------- */
|
|
40
53
|
.checkbox input.input {
|
|
41
54
|
margin-right: 0;
|
|
42
55
|
top: 0;
|
|
43
|
-
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media only screen and (max-width: 431px) {
|
|
59
|
+
.checkbox {
|
|
60
|
+
height: var(--mirai-ui-checkbox-size-mobile);
|
|
61
|
+
width: var(--mirai-ui-checkbox-size-mobile);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.checkbox input {
|
|
65
|
+
height: var(--mirai-ui-checkbox-size-mobile);
|
|
66
|
+
width: var(--mirai-ui-checkbox-size-mobile);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media only screen and (min-width: 430px) {
|
|
71
|
+
.checkbox {
|
|
72
|
+
height: var(--mirai-ui-checkbox-size);
|
|
73
|
+
width: var(--mirai-ui-checkbox-size);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.checkbox input {
|
|
77
|
+
height: var(--mirai-ui-checkbox-size);
|
|
78
|
+
width: var(--mirai-ui-checkbox-size);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`primitive:<Checkbox> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<div
|
|
6
6
|
class="checkbox mirai"
|
|
7
7
|
>
|
|
8
8
|
<input
|
|
@@ -11,13 +11,13 @@ exports[`primitive:<Checkbox> inherit:className 1`] = `
|
|
|
11
11
|
type="checkbox"
|
|
12
12
|
value=""
|
|
13
13
|
/>
|
|
14
|
-
</
|
|
14
|
+
</div>
|
|
15
15
|
</DocumentFragment>
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
18
|
exports[`primitive:<Checkbox> prop:checked && disabled 1`] = `
|
|
19
19
|
<DocumentFragment>
|
|
20
|
-
<
|
|
20
|
+
<div
|
|
21
21
|
class="checkbox"
|
|
22
22
|
>
|
|
23
23
|
<input
|
|
@@ -28,13 +28,13 @@ exports[`primitive:<Checkbox> prop:checked && disabled 1`] = `
|
|
|
28
28
|
type="checkbox"
|
|
29
29
|
value=""
|
|
30
30
|
/>
|
|
31
|
-
</
|
|
31
|
+
</div>
|
|
32
32
|
</DocumentFragment>
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
35
|
exports[`primitive:<Checkbox> prop:checked 1`] = `
|
|
36
36
|
<DocumentFragment>
|
|
37
|
-
<
|
|
37
|
+
<div
|
|
38
38
|
class="checkbox"
|
|
39
39
|
>
|
|
40
40
|
<input
|
|
@@ -44,13 +44,13 @@ exports[`primitive:<Checkbox> prop:checked 1`] = `
|
|
|
44
44
|
type="checkbox"
|
|
45
45
|
value=""
|
|
46
46
|
/>
|
|
47
|
-
</
|
|
47
|
+
</div>
|
|
48
48
|
</DocumentFragment>
|
|
49
49
|
`;
|
|
50
50
|
|
|
51
51
|
exports[`primitive:<Checkbox> prop:children 1`] = `
|
|
52
52
|
<DocumentFragment>
|
|
53
|
-
<
|
|
53
|
+
<div
|
|
54
54
|
class="checkbox"
|
|
55
55
|
>
|
|
56
56
|
<input
|
|
@@ -60,13 +60,13 @@ exports[`primitive:<Checkbox> prop:children 1`] = `
|
|
|
60
60
|
value=""
|
|
61
61
|
/>
|
|
62
62
|
<div />
|
|
63
|
-
</
|
|
63
|
+
</div>
|
|
64
64
|
</DocumentFragment>
|
|
65
65
|
`;
|
|
66
66
|
|
|
67
67
|
exports[`primitive:<Checkbox> prop:disabled 1`] = `
|
|
68
68
|
<DocumentFragment>
|
|
69
|
-
<
|
|
69
|
+
<div
|
|
70
70
|
class="checkbox"
|
|
71
71
|
>
|
|
72
72
|
<input
|
|
@@ -76,13 +76,44 @@ exports[`primitive:<Checkbox> prop:disabled 1`] = `
|
|
|
76
76
|
type="checkbox"
|
|
77
77
|
value=""
|
|
78
78
|
/>
|
|
79
|
-
</
|
|
79
|
+
</div>
|
|
80
|
+
</DocumentFragment>
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
exports[`primitive:<Checkbox> prop:error && disabled 1`] = `
|
|
84
|
+
<DocumentFragment>
|
|
85
|
+
<div
|
|
86
|
+
class="checkbox"
|
|
87
|
+
>
|
|
88
|
+
<input
|
|
89
|
+
class="input"
|
|
90
|
+
disabled=""
|
|
91
|
+
name="name"
|
|
92
|
+
type="checkbox"
|
|
93
|
+
value=""
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
</DocumentFragment>
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
exports[`primitive:<Checkbox> prop:error 1`] = `
|
|
100
|
+
<DocumentFragment>
|
|
101
|
+
<div
|
|
102
|
+
class="checkbox"
|
|
103
|
+
>
|
|
104
|
+
<input
|
|
105
|
+
class="error input"
|
|
106
|
+
name="name"
|
|
107
|
+
type="checkbox"
|
|
108
|
+
value=""
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
80
111
|
</DocumentFragment>
|
|
81
112
|
`;
|
|
82
113
|
|
|
83
114
|
exports[`primitive:<Checkbox> prop:value 1`] = `
|
|
84
115
|
<DocumentFragment>
|
|
85
|
-
<
|
|
116
|
+
<div
|
|
86
117
|
class="checkbox"
|
|
87
118
|
>
|
|
88
119
|
<input
|
|
@@ -91,13 +122,13 @@ exports[`primitive:<Checkbox> prop:value 1`] = `
|
|
|
91
122
|
type="checkbox"
|
|
92
123
|
value="value"
|
|
93
124
|
/>
|
|
94
|
-
</
|
|
125
|
+
</div>
|
|
95
126
|
</DocumentFragment>
|
|
96
127
|
`;
|
|
97
128
|
|
|
98
129
|
exports[`primitive:<Checkbox> render 1`] = `
|
|
99
130
|
<DocumentFragment>
|
|
100
|
-
<
|
|
131
|
+
<div
|
|
101
132
|
class="checkbox"
|
|
102
133
|
>
|
|
103
134
|
<input
|
|
@@ -106,13 +137,13 @@ exports[`primitive:<Checkbox> render 1`] = `
|
|
|
106
137
|
type="checkbox"
|
|
107
138
|
value=""
|
|
108
139
|
/>
|
|
109
|
-
</
|
|
140
|
+
</div>
|
|
110
141
|
</DocumentFragment>
|
|
111
142
|
`;
|
|
112
143
|
|
|
113
144
|
exports[`primitive:<Checkbox> testId 1`] = `
|
|
114
145
|
<DocumentFragment>
|
|
115
|
-
<
|
|
146
|
+
<div
|
|
116
147
|
class="checkbox"
|
|
117
148
|
>
|
|
118
149
|
<input
|
|
@@ -122,6 +153,6 @@ exports[`primitive:<Checkbox> testId 1`] = `
|
|
|
122
153
|
type="checkbox"
|
|
123
154
|
value=""
|
|
124
155
|
/>
|
|
125
|
-
</
|
|
156
|
+
</div>
|
|
126
157
|
</DocumentFragment>
|
|
127
158
|
`;
|
|
@@ -4,37 +4,59 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ICON = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _LiaMarkdown = require("@react-icons/all-files/lia/LiaMarkdown");
|
|
8
|
+
var _MdCheckCircleOutline = require("@react-icons/all-files/md/MdCheckCircleOutline");
|
|
9
|
+
var _MdErrorOutline = require("@react-icons/all-files/md/MdErrorOutline");
|
|
10
|
+
var _MdOutlineAdd = require("@react-icons/all-files/md/MdOutlineAdd");
|
|
11
|
+
var _MdOutlineArrowBack = require("@react-icons/all-files/md/MdOutlineArrowBack");
|
|
12
|
+
var _MdOutlineArrowDownward = require("@react-icons/all-files/md/MdOutlineArrowDownward");
|
|
13
|
+
var _MdOutlineArrowForward = require("@react-icons/all-files/md/MdOutlineArrowForward");
|
|
14
|
+
var _MdOutlineArrowUpward = require("@react-icons/all-files/md/MdOutlineArrowUpward");
|
|
15
|
+
var _MdOutlineCheck = require("@react-icons/all-files/md/MdOutlineCheck");
|
|
16
|
+
var _MdOutlineClose = require("@react-icons/all-files/md/MdOutlineClose");
|
|
17
|
+
var _MdOutlineExpandLess = require("@react-icons/all-files/md/MdOutlineExpandLess");
|
|
18
|
+
var _MdOutlineExpandMore = require("@react-icons/all-files/md/MdOutlineExpandMore");
|
|
19
|
+
var _MdOutlineFilterList = require("@react-icons/all-files/md/MdOutlineFilterList");
|
|
20
|
+
var _MdOutlineInfo = require("@react-icons/all-files/md/MdOutlineInfo");
|
|
21
|
+
var _MdOutlinePhotoLibrary = require("@react-icons/all-files/md/MdOutlinePhotoLibrary");
|
|
22
|
+
var _MdOutlineRemove = require("@react-icons/all-files/md/MdOutlineRemove");
|
|
23
|
+
var _MdOutlineReplay = require("@react-icons/all-files/md/MdOutlineReplay");
|
|
24
|
+
var _MdOutlineSearch = require("@react-icons/all-files/md/MdOutlineSearch");
|
|
25
|
+
var _MdOutlineVisibility = require("@react-icons/all-files/md/MdOutlineVisibility");
|
|
26
|
+
var _MdOutlineVisibilityOff = require("@react-icons/all-files/md/MdOutlineVisibilityOff");
|
|
27
|
+
var _MdOutlineWarningAmber = require("@react-icons/all-files/md/MdOutlineWarningAmber");
|
|
9
28
|
var ICON = {
|
|
10
29
|
// <Calendar>
|
|
11
|
-
LEFT:
|
|
12
|
-
RIGHT:
|
|
13
|
-
UP:
|
|
14
|
-
DOWN:
|
|
30
|
+
LEFT: _MdOutlineArrowBack.MdOutlineArrowBack,
|
|
31
|
+
RIGHT: _MdOutlineArrowForward.MdOutlineArrowForward,
|
|
32
|
+
UP: _MdOutlineArrowUpward.MdOutlineArrowUpward,
|
|
33
|
+
DOWN: _MdOutlineArrowDownward.MdOutlineArrowDownward,
|
|
15
34
|
// <Check>
|
|
16
|
-
CHECK:
|
|
35
|
+
CHECK: _MdOutlineCheck.MdOutlineCheck,
|
|
17
36
|
// <InputOption>
|
|
18
|
-
ADD:
|
|
19
|
-
REMOVE:
|
|
37
|
+
ADD: _MdOutlineAdd.MdOutlineAdd,
|
|
38
|
+
REMOVE: _MdOutlineRemove.MdOutlineRemove,
|
|
20
39
|
// <InputSelect>
|
|
21
|
-
EXPAND_LESS:
|
|
22
|
-
EXPAND_MORE:
|
|
40
|
+
EXPAND_LESS: _MdOutlineExpandLess.MdOutlineExpandLess,
|
|
41
|
+
EXPAND_MORE: _MdOutlineExpandMore.MdOutlineExpandMore,
|
|
23
42
|
// <InputText>
|
|
24
|
-
SEARCH:
|
|
25
|
-
EYE_OPEN:
|
|
26
|
-
EYE_CLOSE:
|
|
43
|
+
SEARCH: _MdOutlineSearch.MdOutlineSearch,
|
|
44
|
+
EYE_OPEN: _MdOutlineVisibility.MdOutlineVisibility,
|
|
45
|
+
EYE_CLOSE: _MdOutlineVisibilityOff.MdOutlineVisibilityOff,
|
|
27
46
|
// <Modal>
|
|
28
|
-
CLOSE:
|
|
47
|
+
CLOSE: _MdOutlineClose.MdOutlineClose,
|
|
29
48
|
// <Notification> & <InputText>
|
|
30
|
-
ERROR:
|
|
31
|
-
INFO:
|
|
32
|
-
SUCCESS:
|
|
33
|
-
WARNING:
|
|
49
|
+
ERROR: _MdErrorOutline.MdErrorOutline,
|
|
50
|
+
INFO: _MdOutlineInfo.MdOutlineInfo,
|
|
51
|
+
SUCCESS: _MdCheckCircleOutline.MdCheckCircleOutline,
|
|
52
|
+
WARNING: _MdOutlineWarningAmber.MdOutlineWarningAmber,
|
|
53
|
+
// <Slider>
|
|
54
|
+
PHOTO_LIBRARY: _MdOutlinePhotoLibrary.MdOutlinePhotoLibrary,
|
|
55
|
+
REPLAY: _MdOutlineReplay.MdOutlineReplay,
|
|
34
56
|
// <Table>
|
|
35
|
-
FILTER:
|
|
57
|
+
FILTER: _MdOutlineFilterList.MdOutlineFilterList,
|
|
36
58
|
// Filetype
|
|
37
|
-
MARKDOWN:
|
|
59
|
+
MARKDOWN: _LiaMarkdown.LiaMarkdown
|
|
38
60
|
};
|
|
39
61
|
exports.ICON = ICON;
|
|
40
62
|
//# sourceMappingURL=Icon.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.constants.js","names":["ICON","LEFT","RIGHT","UP","DOWN","CHECK","ADD","REMOVE","EXPAND_LESS","EXPAND_MORE","SEARCH","EYE_OPEN","EYE_CLOSE","CLOSE","ERROR","INFO","SUCCESS","WARNING","FILTER","MARKDOWN"],"sources":["../../../src/primitives/Icon/Icon.constants.js"],"sourcesContent":["import { LiaMarkdown as MARKDOWN } from 'react-icons/lia';\nimport {
|
|
1
|
+
{"version":3,"file":"Icon.constants.js","names":["ICON","LEFT","RIGHT","UP","DOWN","CHECK","ADD","REMOVE","EXPAND_LESS","EXPAND_MORE","SEARCH","EYE_OPEN","EYE_CLOSE","CLOSE","ERROR","INFO","SUCCESS","WARNING","PHOTO_LIBRARY","REPLAY","FILTER","MARKDOWN"],"sources":["../../../src/primitives/Icon/Icon.constants.js"],"sourcesContent":["import { LiaMarkdown as MARKDOWN } from '@react-icons/all-files/lia/LiaMarkdown';\nimport { MdCheckCircleOutline as SUCCESS } from '@react-icons/all-files/md/MdCheckCircleOutline';\nimport { MdErrorOutline as ERROR } from '@react-icons/all-files/md/MdErrorOutline';\nimport { MdOutlineAdd as ADD } from '@react-icons/all-files/md/MdOutlineAdd';\nimport { MdOutlineArrowBack as LEFT } from '@react-icons/all-files/md/MdOutlineArrowBack';\nimport { MdOutlineArrowDownward as DOWN } from '@react-icons/all-files/md/MdOutlineArrowDownward';\nimport { MdOutlineArrowForward as RIGHT } from '@react-icons/all-files/md/MdOutlineArrowForward';\nimport { MdOutlineArrowUpward as UP } from '@react-icons/all-files/md/MdOutlineArrowUpward';\nimport { MdOutlineCheck as CHECK } from '@react-icons/all-files/md/MdOutlineCheck';\nimport { MdOutlineClose as CLOSE } from '@react-icons/all-files/md/MdOutlineClose';\nimport { MdOutlineExpandLess as EXPAND_LESS } from '@react-icons/all-files/md/MdOutlineExpandLess';\nimport { MdOutlineExpandMore as EXPAND_MORE } from '@react-icons/all-files/md/MdOutlineExpandMore';\nimport { MdOutlineFilterList as FILTER } from '@react-icons/all-files/md/MdOutlineFilterList';\nimport { MdOutlineInfo as INFO } from '@react-icons/all-files/md/MdOutlineInfo';\nimport { MdOutlinePhotoLibrary as PHOTO_LIBRARY } from '@react-icons/all-files/md/MdOutlinePhotoLibrary';\nimport { MdOutlineRemove as REMOVE } from '@react-icons/all-files/md/MdOutlineRemove';\nimport { MdOutlineReplay as REPLAY } from '@react-icons/all-files/md/MdOutlineReplay';\nimport { MdOutlineSearch as SEARCH } from '@react-icons/all-files/md/MdOutlineSearch';\nimport { MdOutlineVisibility as EYE_OPEN } from '@react-icons/all-files/md/MdOutlineVisibility';\nimport { MdOutlineVisibilityOff as EYE_CLOSE } from '@react-icons/all-files/md/MdOutlineVisibilityOff';\nimport { MdOutlineWarningAmber as WARNING } from '@react-icons/all-files/md/MdOutlineWarningAmber';\n\nexport const ICON = {\n // <Calendar>\n LEFT,\n RIGHT,\n UP,\n DOWN,\n // <Check>\n CHECK,\n // <InputOption>\n ADD,\n REMOVE,\n // <InputSelect>\n EXPAND_LESS,\n EXPAND_MORE,\n // <InputText>\n SEARCH,\n EYE_OPEN,\n EYE_CLOSE,\n // <Modal>\n CLOSE,\n // <Notification> & <InputText>\n ERROR,\n INFO,\n SUCCESS,\n WARNING,\n // <Slider>\n PHOTO_LIBRARY,\n REPLAY,\n // <Table>\n FILTER,\n // Filetype\n MARKDOWN,\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,IAAMA,IAAI,GAAG;EAClB;EACAC,IAAI,EAAJA,sCAAI;EACJC,KAAK,EAALA,4CAAK;EACLC,EAAE,EAAFA,0CAAE;EACFC,IAAI,EAAJA,8CAAI;EACJ;EACAC,KAAK,EAALA,8BAAK;EACL;EACAC,GAAG,EAAHA,0BAAG;EACHC,MAAM,EAANA,gCAAM;EACN;EACAC,WAAW,EAAXA,wCAAW;EACXC,WAAW,EAAXA,wCAAW;EACX;EACAC,MAAM,EAANA,gCAAM;EACNC,QAAQ,EAARA,wCAAQ;EACRC,SAAS,EAATA,8CAAS;EACT;EACAC,KAAK,EAALA,8BAAK;EACL;EACAC,KAAK,EAALA,8BAAK;EACLC,IAAI,EAAJA,4BAAI;EACJC,OAAO,EAAPA,0CAAO;EACPC,OAAO,EAAPA,4CAAO;EACP;EACAC,aAAa,EAAbA,4CAAa;EACbC,MAAM,EAANA,gCAAM;EACN;EACAC,MAAM,EAANA,wCAAM;EACN;EACAC,QAAQ,EAARA;AACF,CAAC;AAAC"}
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _Primitive = require("../Primitive");
|
|
12
12
|
var _IconModule = _interopRequireDefault(require("./Icon.module.css"));
|
|
13
|
-
var _excluded = ["action", "headline", "level", "paragraph", "small", "value"];
|
|
13
|
+
var _excluded = ["accent", "action", "error", "headline", "level", "lighten", "paragraph", "small", "success", "value", "warning"];
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
@@ -20,28 +20,38 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
20
20
|
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; }
|
|
21
21
|
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; }
|
|
22
22
|
var Icon = function Icon(_ref) {
|
|
23
|
-
var
|
|
23
|
+
var accent = _ref.accent,
|
|
24
|
+
action = _ref.action,
|
|
25
|
+
error = _ref.error,
|
|
24
26
|
headline = _ref.headline,
|
|
25
27
|
_ref$level = _ref.level,
|
|
26
28
|
level = _ref$level === void 0 ? 3 : _ref$level,
|
|
29
|
+
lighten = _ref.lighten,
|
|
27
30
|
paragraph = _ref.paragraph,
|
|
28
31
|
small = _ref.small,
|
|
32
|
+
success = _ref.success,
|
|
29
33
|
value = _ref.value,
|
|
34
|
+
warning = _ref.warning,
|
|
30
35
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
31
36
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _objectSpread(_objectSpread({}, others), {}, {
|
|
32
37
|
role: others.role || 'icon',
|
|
33
|
-
tag: '
|
|
34
|
-
className: (0, _helpers.styles)(_IconModule.default.icon, headline ? _IconModule.default["
|
|
38
|
+
tag: 'span',
|
|
39
|
+
className: (0, _helpers.styles)(_IconModule.default.icon, accent && _IconModule.default.accent, error && _IconModule.default.error, headline ? _IconModule.default["headline-".concat(level)] : action ? _IconModule.default.action : small ? _IconModule.default.small : paragraph ? _IconModule.default.paragraph : _IconModule.default["headline-".concat(level)], lighten && _IconModule.default.lighten, success && _IconModule.default.success, warning && _IconModule.default.warning, others.className)
|
|
35
40
|
}), value ? /*#__PURE__*/_react.default.createElement(value) : undefined);
|
|
36
41
|
};
|
|
37
42
|
exports.Icon = Icon;
|
|
38
43
|
Icon.displayName = 'Primitive:Icon';
|
|
39
44
|
Icon.propTypes = {
|
|
45
|
+
accent: _propTypes.default.bool,
|
|
40
46
|
action: _propTypes.default.bool,
|
|
47
|
+
error: _propTypes.default.bool,
|
|
41
48
|
headline: _propTypes.default.bool,
|
|
42
49
|
level: _propTypes.default.number,
|
|
50
|
+
lighten: _propTypes.default.bool,
|
|
43
51
|
paragraph: _propTypes.default.bool,
|
|
44
52
|
small: _propTypes.default.bool,
|
|
45
|
-
|
|
53
|
+
success: _propTypes.default.bool,
|
|
54
|
+
value: _propTypes.default.func.isRequired,
|
|
55
|
+
warning: _propTypes.default.bool
|
|
46
56
|
};
|
|
47
57
|
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","names":["Icon","action","headline","level","paragraph","small","value","others","React","createElement","Primitive","role","tag","className","styles","style","icon","undefined","displayName","propTypes","PropTypes","bool","number","func","isRequired"],"sources":["../../../src/primitives/Icon/Icon.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport style from './Icon.module.css';\n\nconst Icon = ({
|
|
1
|
+
{"version":3,"file":"Icon.js","names":["Icon","accent","action","error","headline","level","lighten","paragraph","small","success","value","warning","others","React","createElement","Primitive","role","tag","className","styles","style","icon","undefined","displayName","propTypes","PropTypes","bool","number","func","isRequired"],"sources":["../../../src/primitives/Icon/Icon.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport style from './Icon.module.css';\n\nconst Icon = ({\n accent,\n action,\n error,\n headline,\n level = 3,\n lighten,\n paragraph,\n small,\n success,\n value,\n warning,\n ...others\n}) =>\n React.createElement(\n Primitive,\n {\n ...others,\n role: others.role || 'icon',\n tag: 'span',\n className: styles(\n style.icon,\n accent && style.accent,\n error && style.error,\n headline\n ? style[`headline-${level}`]\n : action\n ? style.action\n : small\n ? style.small\n : paragraph\n ? style.paragraph\n : style[`headline-${level}`],\n lighten && style.lighten,\n success && style.success,\n warning && style.warning,\n others.className,\n ),\n },\n value ? React.createElement(value) : undefined,\n );\n\nIcon.displayName = 'Primitive:Icon';\n\nIcon.propTypes = {\n accent: PropTypes.bool,\n action: PropTypes.bool,\n error: PropTypes.bool,\n headline: PropTypes.bool,\n level: PropTypes.number,\n lighten: PropTypes.bool,\n paragraph: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n value: PropTypes.func.isRequired,\n warning: PropTypes.bool,\n};\n\nexport { Icon };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEtC,IAAMA,IAAI,GAAG,SAAPA,IAAI;EAAA,IACRC,MAAM,QAANA,MAAM;IACNC,MAAM,QAANA,MAAM;IACNC,KAAK,QAALA,KAAK;IACLC,QAAQ,QAARA,QAAQ;IAAA,kBACRC,KAAK;IAALA,KAAK,2BAAG,CAAC;IACTC,OAAO,QAAPA,OAAO;IACPC,SAAS,QAATA,SAAS;IACTC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IACPC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IACJC,MAAM;EAAA,oBAETC,cAAK,CAACC,aAAa,CACjBC,oBAAS,kCAEJH,MAAM;IACTI,IAAI,EAAEJ,MAAM,CAACI,IAAI,IAAI,MAAM;IAC3BC,GAAG,EAAE,MAAM;IACXC,SAAS,EAAE,IAAAC,eAAM,EACfC,mBAAK,CAACC,IAAI,EACVpB,MAAM,IAAImB,mBAAK,CAACnB,MAAM,EACtBE,KAAK,IAAIiB,mBAAK,CAACjB,KAAK,EACpBC,QAAQ,GACJgB,mBAAK,oBAAaf,KAAK,EAAG,GAC1BH,MAAM,GACNkB,mBAAK,CAAClB,MAAM,GACZM,KAAK,GACLY,mBAAK,CAACZ,KAAK,GACXD,SAAS,GACTa,mBAAK,CAACb,SAAS,GACfa,mBAAK,oBAAaf,KAAK,EAAG,EAC9BC,OAAO,IAAIc,mBAAK,CAACd,OAAO,EACxBG,OAAO,IAAIW,mBAAK,CAACX,OAAO,EACxBE,OAAO,IAAIS,mBAAK,CAACT,OAAO,EACxBC,MAAM,CAACM,SAAS;EACjB,IAEHR,KAAK,gBAAGG,cAAK,CAACC,aAAa,CAACJ,KAAK,CAAC,GAAGY,SAAS,CAC/C;AAAA;AAAC;AAEJtB,IAAI,CAACuB,WAAW,GAAG,gBAAgB;AAEnCvB,IAAI,CAACwB,SAAS,GAAG;EACfvB,MAAM,EAAEwB,kBAAS,CAACC,IAAI;EACtBxB,MAAM,EAAEuB,kBAAS,CAACC,IAAI;EACtBvB,KAAK,EAAEsB,kBAAS,CAACC,IAAI;EACrBtB,QAAQ,EAAEqB,kBAAS,CAACC,IAAI;EACxBrB,KAAK,EAAEoB,kBAAS,CAACE,MAAM;EACvBrB,OAAO,EAAEmB,kBAAS,CAACC,IAAI;EACvBnB,SAAS,EAAEkB,kBAAS,CAACC,IAAI;EACzBlB,KAAK,EAAEiB,kBAAS,CAACC,IAAI;EACrBjB,OAAO,EAAEgB,kBAAS,CAACC,IAAI;EACvBhB,KAAK,EAAEe,kBAAS,CAACG,IAAI,CAACC,UAAU;EAChClB,OAAO,EAAEc,kBAAS,CAACC;AACrB,CAAC"}
|
|
@@ -2,32 +2,44 @@
|
|
|
2
2
|
display: block;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
height: var(--mirai-ui-font-size-headline-1);
|
|
8
|
-
line-height: var(--mirai-ui-font-size-headline-1);
|
|
9
|
-
width: var(--mirai-ui-font-size-headline-1);
|
|
5
|
+
.accent {
|
|
6
|
+
color: var(--mirai-ui-accent);
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
.
|
|
9
|
+
.action {
|
|
10
|
+
font-size: var(--mirai-ui-font-size-action);
|
|
11
|
+
height: var(--mirai-ui-font-size-action);
|
|
12
|
+
line-height: var(--mirai-ui-font-size-action);
|
|
13
|
+
width: var(--mirai-ui-font-size-action);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.error {
|
|
17
|
+
color: var(--mirai-ui-error);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.headline-1 {
|
|
21
|
+
font-size: var(--mirai-ui-space-XL);
|
|
22
|
+
height: var(--mirai-ui-space-XL);
|
|
23
|
+
line-height: var(--mirai-ui-space-XL);
|
|
24
|
+
width: var(--mirai-ui-space-XL);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.headline-2 {
|
|
13
28
|
font-size: var(--mirai-ui-font-size-headline-2);
|
|
14
29
|
height: var(--mirai-ui-font-size-headline-2);
|
|
15
30
|
line-height: var(--mirai-ui-font-size-headline-2);
|
|
16
31
|
width: var(--mirai-ui-font-size-headline-2);
|
|
17
32
|
}
|
|
18
33
|
|
|
19
|
-
.
|
|
34
|
+
.headline-3 {
|
|
20
35
|
font-size: var(--mirai-ui-font-size-headline-3);
|
|
21
36
|
height: var(--mirai-ui-font-size-headline-3);
|
|
22
37
|
line-height: var(--mirai-ui-font-size-headline-3);
|
|
23
38
|
width: var(--mirai-ui-font-size-headline-3);
|
|
24
39
|
}
|
|
25
40
|
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
height: var(--mirai-ui-font-size-headline-4);
|
|
29
|
-
line-height: var(--mirai-ui-font-size-headline-4);
|
|
30
|
-
width: var(--mirai-ui-font-size-headline-4);
|
|
41
|
+
.lighten {
|
|
42
|
+
color: var(--mirai-ui-content-light);
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
.paragraph {
|
|
@@ -37,16 +49,17 @@
|
|
|
37
49
|
width: var(--mirai-ui-font-size-paragraph);
|
|
38
50
|
}
|
|
39
51
|
|
|
40
|
-
.action {
|
|
41
|
-
font-size: var(--mirai-ui-font-size-action);
|
|
42
|
-
height: var(--mirai-ui-font-size-action);
|
|
43
|
-
line-height: var(--mirai-ui-font-size-action);
|
|
44
|
-
width: var(--mirai-ui-font-size-action);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
52
|
.small {
|
|
48
53
|
font-size: var(--mirai-ui-font-size-small);
|
|
49
54
|
height: var(--mirai-ui-font-size-small);
|
|
50
55
|
line-height: var(--mirai-ui-font-size-small);
|
|
51
56
|
width: var(--mirai-ui-font-size-small);
|
|
52
57
|
}
|
|
58
|
+
|
|
59
|
+
.success {
|
|
60
|
+
color: var(--mirai-ui-success);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.warning {
|
|
64
|
+
color: var(--mirai-ui-warning);
|
|
65
|
+
}
|
|
@@ -25,12 +25,17 @@ var Story = function Story(_ref) {
|
|
|
25
25
|
exports.Story = Story;
|
|
26
26
|
Story.storyName = 'Icon';
|
|
27
27
|
Story.args = {
|
|
28
|
+
accent: false,
|
|
28
29
|
action: false,
|
|
30
|
+
error: false,
|
|
29
31
|
headline: false,
|
|
30
32
|
level: 3,
|
|
33
|
+
lighten: false,
|
|
31
34
|
paragraph: false,
|
|
32
35
|
small: false,
|
|
36
|
+
success: false,
|
|
33
37
|
value: undefined,
|
|
38
|
+
warning: false,
|
|
34
39
|
// inherited properties
|
|
35
40
|
testId: 'test-story',
|
|
36
41
|
style: {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.stories.js","names":["title","Story","value","props","ICON","storyName","args","action","headline","level","paragraph","small","undefined","testId","style","argTypes","options","Object","keys","control","type","defaultValue"],"sources":["../../../src/primitives/Icon/Icon.stories.jsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport React from 'react';\n\nimport { Icon, ICON } from './';\n\nexport default { title: 'Primitives' };\n\nexport const Story = ({ value, ...props }) => <Icon {...props} value={ICON[value]} />;\n\nStory.storyName = 'Icon';\n\nStory.args = {\n action: false,\n headline: false,\n level: 3,\n paragraph: false,\n small: false,\n value: undefined,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n value: {\n options: Object.keys(ICON),\n control: { type: 'select' },\n defaultValue: Object.keys(ICON)[0],\n },\n};\n"],"mappings":";;;;;;AACA;AAEA;AAAgC;AAAA;AAAA;AAAA;AAAA;AAAA,eAEjB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK;EAAA,IAAMC,KAAK,QAALA,KAAK;IAAKC,KAAK;EAAA,oBAAO,6BAAC,MAAI,eAAKA,KAAK;IAAE,KAAK,EAAEC,MAAI,CAACF,KAAK;EAAE,GAAG;AAAA;AAAC;AAEtFD,KAAK,CAACI,SAAS,GAAG,MAAM;AAExBJ,KAAK,CAACK,IAAI,GAAG;EACXC,MAAM,EAAE,KAAK;EACbC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,KAAK;EAChBC,KAAK,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"Icon.stories.js","names":["title","Story","value","props","ICON","storyName","args","accent","action","error","headline","level","lighten","paragraph","small","success","undefined","warning","testId","style","argTypes","options","Object","keys","control","type","defaultValue"],"sources":["../../../src/primitives/Icon/Icon.stories.jsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport React from 'react';\n\nimport { Icon, ICON } from './';\n\nexport default { title: 'Primitives' };\n\nexport const Story = ({ value, ...props }) => <Icon {...props} value={ICON[value]} />;\n\nStory.storyName = 'Icon';\n\nStory.args = {\n accent: false,\n action: false,\n error: false,\n headline: false,\n level: 3,\n lighten: false,\n paragraph: false,\n small: false,\n success: false,\n value: undefined,\n warning: false,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n value: {\n options: Object.keys(ICON),\n control: { type: 'select' },\n defaultValue: Object.keys(ICON)[0],\n },\n};\n"],"mappings":";;;;;;AACA;AAEA;AAAgC;AAAA;AAAA;AAAA;AAAA;AAAA,eAEjB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK;EAAA,IAAMC,KAAK,QAALA,KAAK;IAAKC,KAAK;EAAA,oBAAO,6BAAC,MAAI,eAAKA,KAAK;IAAE,KAAK,EAAEC,MAAI,CAACF,KAAK;EAAE,GAAG;AAAA;AAAC;AAEtFD,KAAK,CAACI,SAAS,GAAG,MAAM;AAExBJ,KAAK,CAACK,IAAI,GAAG;EACXC,MAAM,EAAE,KAAK;EACbC,MAAM,EAAE,KAAK;EACbC,KAAK,EAAE,KAAK;EACZC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,CAAC;EACRC,OAAO,EAAE,KAAK;EACdC,SAAS,EAAE,KAAK;EAChBC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdb,KAAK,EAAEc,SAAS;EAChBC,OAAO,EAAE,KAAK;EACd;EACAC,MAAM,EAAE,YAAY;EACpBC,KAAK,EAAE,CAAC;AACV,CAAC;AAEDlB,KAAK,CAACmB,QAAQ,GAAG;EACflB,KAAK,EAAE;IACLmB,OAAO,EAAEC,MAAM,CAACC,IAAI,CAACnB,MAAI,CAAC;IAC1BoB,OAAO,EAAE;MAAEC,IAAI,EAAE;IAAS,CAAC;IAC3BC,YAAY,EAAEJ,MAAM,CAACC,IAAI,CAACnB,MAAI,CAAC,CAAC,CAAC;EACnC;AACF,CAAC"}
|