@mirai/ui 1.0.61 → 1.0.62
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/Notification/Notification.js +3 -2
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +9 -0
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +11 -11
- package/build/primitives/Icon/Icon.constants.js +1 -9
- package/build/primitives/Icon/Icon.constants.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +0 -169
- package/build/theme/default.theme.css +23 -23
- package/package.json +1 -1
|
@@ -45,12 +45,13 @@ var Notification = function Notification(_ref) {
|
|
|
45
45
|
success: success,
|
|
46
46
|
warning: warning
|
|
47
47
|
}),
|
|
48
|
-
paragraph: small
|
|
48
|
+
paragraph: small,
|
|
49
|
+
className: (0, _helpers.styles)(_NotificationModule.default.icon, small && _NotificationModule.default.small)
|
|
49
50
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
50
51
|
small: small,
|
|
51
52
|
className: (0, _helpers.styles)(_NotificationModule.default.text, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : undefined)
|
|
52
53
|
}, children), onClose && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
|
|
53
|
-
className: _NotificationModule.default.pressable,
|
|
54
|
+
className: (0, _helpers.styles)(_NotificationModule.default.pressable, _NotificationModule.default.icon, small && _NotificationModule.default.small),
|
|
54
55
|
onPress: onClose
|
|
55
56
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
56
57
|
value: _primitives.ICON.CLOSE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["Notification","children","error","inline","small","success","warning","onClose","others","style","notification","undefined","outlined","className","text","pressable","ICON","CLOSE","displayName","propTypes","PropTypes","string","isRequired","bool","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({ children, error, inline = false, small, success, warning, onClose, ...others }) => (\n <View\n {...others}\n row\n className={styles(\n style.notification,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n inline ? style.inline : style.outlined,\n inline && style.inline,\n small && style.small,\n others.className,\n )}\n >\n <Icon
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["Notification","children","error","inline","small","success","warning","onClose","others","style","notification","undefined","outlined","className","icon","text","pressable","ICON","CLOSE","displayName","propTypes","PropTypes","string","isRequired","bool","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({ children, error, inline = false, small, success, warning, onClose, ...others }) => (\n <View\n {...others}\n row\n className={styles(\n style.notification,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n inline ? style.inline : style.outlined,\n inline && style.inline,\n small && style.small,\n others.className,\n )}\n >\n <Icon\n value={getIconState({ error, success, warning })}\n paragraph={small}\n className={styles(style.icon, small && style.small)}\n />\n <Text\n small={small}\n className={styles(\n style.text,\n error ? style.error : warning ? style.warning : success ? style.success : undefined,\n )}\n >\n {children}\n </Text>\n {onClose && (\n <Pressable className={styles(style.pressable, style.icon, small && style.small)} onPress={onClose}>\n <Icon value={ICON.CLOSE} paragraph={small} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.string.isRequired,\n error: PropTypes.bool,\n inline: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n warning: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Notification };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG,SAAfA,YAAe;EAAA,IAAGC,QAAH,QAAGA,QAAH;EAAA,IAAaC,KAAb,QAAaA,KAAb;EAAA,uBAAoBC,MAApB;EAAA,IAAoBA,MAApB,4BAA6B,KAA7B;EAAA,IAAoCC,KAApC,QAAoCA,KAApC;EAAA,IAA2CC,OAA3C,QAA2CA,OAA3C;EAAA,IAAoDC,OAApD,QAAoDA,OAApD;EAAA,IAA6DC,OAA7D,QAA6DA,OAA7D;EAAA,IAAyEC,MAAzE;;EAAA,oBACnB,6BAAC,gBAAD,eACMA,MADN;IAEE,GAAG,MAFL;IAGE,SAAS,EAAE,qBACTC,4BAAMC,YADG,EAETR,KAAK,GAAGO,4BAAMP,KAAT,GAAiBI,OAAO,GAAGG,4BAAMH,OAAT,GAAmBD,OAAO,GAAGI,4BAAMJ,OAAT,GAAmBM,SAFjE,EAGTR,MAAM,GAAGM,4BAAMN,MAAT,GAAkBM,4BAAMG,QAHrB,EAITT,MAAM,IAAIM,4BAAMN,MAJP,EAKTC,KAAK,IAAIK,4BAAML,KALN,EAMTI,MAAM,CAACK,SANE;EAHb,iBAYE,6BAAC,gBAAD;IACE,KAAK,EAAE,2BAAa;MAAEX,KAAK,EAALA,KAAF;MAASG,OAAO,EAAPA,OAAT;MAAkBC,OAAO,EAAPA;IAAlB,CAAb,CADT;IAEE,SAAS,EAAEF,KAFb;IAGE,SAAS,EAAE,qBAAOK,4BAAMK,IAAb,EAAmBV,KAAK,IAAIK,4BAAML,KAAlC;EAHb,EAZF,eAiBE,6BAAC,gBAAD;IACE,KAAK,EAAEA,KADT;IAEE,SAAS,EAAE,qBACTK,4BAAMM,IADG,EAETb,KAAK,GAAGO,4BAAMP,KAAT,GAAiBI,OAAO,GAAGG,4BAAMH,OAAT,GAAmBD,OAAO,GAAGI,4BAAMJ,OAAT,GAAmBM,SAFjE;EAFb,GAOGV,QAPH,CAjBF,EA0BGM,OAAO,iBACN,6BAAC,qBAAD;IAAW,SAAS,EAAE,qBAAOE,4BAAMO,SAAb,EAAwBP,4BAAMK,IAA9B,EAAoCV,KAAK,IAAIK,4BAAML,KAAnD,CAAtB;IAAiF,OAAO,EAAEG;EAA1F,gBACE,6BAAC,gBAAD;IAAM,KAAK,EAAEU,iBAAKC,KAAlB;IAAyB,SAAS,EAAEd;EAApC,EADF,CA3BJ,CADmB;AAAA,CAArB;;;AAmCAJ,YAAY,CAACmB,WAAb,GAA2B,wBAA3B;AAEAnB,YAAY,CAACoB,SAAb,GAAyB;EACvBnB,QAAQ,EAAEoB,mBAAUC,MAAV,CAAiBC,UADJ;EAEvBrB,KAAK,EAAEmB,mBAAUG,IAFM;EAGvBrB,MAAM,EAAEkB,mBAAUG,IAHK;EAIvBpB,KAAK,EAAEiB,mBAAUG,IAJM;EAKvBnB,OAAO,EAAEgB,mBAAUG,IALI;EAMvBlB,OAAO,EAAEe,mBAAUG,IANI;EAOvBjB,OAAO,EAAEc,mBAAUI;AAPI,CAAzB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.notification {
|
|
2
2
|
width: fit-content;
|
|
3
|
+
align-items: flex-start;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.notification.outlined {
|
|
@@ -71,3 +72,11 @@
|
|
|
71
72
|
.outlined .text.warning {
|
|
72
73
|
color: var(--mirai-ui-warning-dark);
|
|
73
74
|
}
|
|
75
|
+
|
|
76
|
+
.notification .icon {
|
|
77
|
+
margin-top: calc(calc(var(--mirai-ui-line-height-headline-3) - var(--mirai-ui-font-size-headline-3)) / 2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.notification .icon.small {
|
|
81
|
+
margin-top: calc(calc(var(--mirai-ui-line-height-small) - var(--mirai-ui-font-size-paragraph)) / 2);
|
|
82
|
+
}
|
|
@@ -6,7 +6,7 @@ exports[`component:<Notification> inherit:className 1`] = `
|
|
|
6
6
|
class="view row notification outlined mirai"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
|
-
class="icon headline-3"
|
|
9
|
+
class="icon headline-3 icon"
|
|
10
10
|
>
|
|
11
11
|
<svg
|
|
12
12
|
fill="currentColor"
|
|
@@ -41,7 +41,7 @@ exports[`component:<Notification> prop:error 1`] = `
|
|
|
41
41
|
class="view row notification error outlined"
|
|
42
42
|
>
|
|
43
43
|
<span
|
|
44
|
-
class="icon headline-3"
|
|
44
|
+
class="icon headline-3 icon"
|
|
45
45
|
>
|
|
46
46
|
<svg
|
|
47
47
|
fill="currentColor"
|
|
@@ -72,7 +72,7 @@ exports[`component:<Notification> prop:inline 1`] = `
|
|
|
72
72
|
class="view row notification inline inline"
|
|
73
73
|
>
|
|
74
74
|
<span
|
|
75
|
-
class="icon headline-3"
|
|
75
|
+
class="icon headline-3 icon"
|
|
76
76
|
>
|
|
77
77
|
<svg
|
|
78
78
|
fill="currentColor"
|
|
@@ -107,7 +107,7 @@ exports[`component:<Notification> prop:onClose 1`] = `
|
|
|
107
107
|
class="view row notification outlined"
|
|
108
108
|
>
|
|
109
109
|
<span
|
|
110
|
-
class="icon headline-3"
|
|
110
|
+
class="icon headline-3 icon"
|
|
111
111
|
>
|
|
112
112
|
<svg
|
|
113
113
|
fill="currentColor"
|
|
@@ -133,7 +133,7 @@ exports[`component:<Notification> prop:onClose 1`] = `
|
|
|
133
133
|
Lorem Ipsum...
|
|
134
134
|
</span>
|
|
135
135
|
<button
|
|
136
|
-
class="pressable pressable"
|
|
136
|
+
class="pressable pressable icon"
|
|
137
137
|
>
|
|
138
138
|
<span
|
|
139
139
|
class="icon headline-3"
|
|
@@ -167,7 +167,7 @@ exports[`component:<Notification> prop:small & prop:inline 1`] = `
|
|
|
167
167
|
class="view row notification inline inline small"
|
|
168
168
|
>
|
|
169
169
|
<span
|
|
170
|
-
class="icon paragraph"
|
|
170
|
+
class="icon paragraph icon small"
|
|
171
171
|
>
|
|
172
172
|
<svg
|
|
173
173
|
fill="currentColor"
|
|
@@ -202,7 +202,7 @@ exports[`component:<Notification> prop:small 1`] = `
|
|
|
202
202
|
class="view row notification outlined small"
|
|
203
203
|
>
|
|
204
204
|
<span
|
|
205
|
-
class="icon paragraph"
|
|
205
|
+
class="icon paragraph icon small"
|
|
206
206
|
>
|
|
207
207
|
<svg
|
|
208
208
|
fill="currentColor"
|
|
@@ -237,7 +237,7 @@ exports[`component:<Notification> prop:success 1`] = `
|
|
|
237
237
|
class="view row notification success outlined"
|
|
238
238
|
>
|
|
239
239
|
<span
|
|
240
|
-
class="icon headline-3"
|
|
240
|
+
class="icon headline-3 icon"
|
|
241
241
|
>
|
|
242
242
|
<svg
|
|
243
243
|
fill="currentColor"
|
|
@@ -272,7 +272,7 @@ exports[`component:<Notification> prop:warning 1`] = `
|
|
|
272
272
|
class="view row notification warning outlined"
|
|
273
273
|
>
|
|
274
274
|
<span
|
|
275
|
-
class="icon headline-3"
|
|
275
|
+
class="icon headline-3 icon"
|
|
276
276
|
>
|
|
277
277
|
<svg
|
|
278
278
|
fill="currentColor"
|
|
@@ -303,7 +303,7 @@ exports[`component:<Notification> renders 1`] = `
|
|
|
303
303
|
class="view row notification outlined"
|
|
304
304
|
>
|
|
305
305
|
<span
|
|
306
|
-
class="icon headline-3"
|
|
306
|
+
class="icon headline-3 icon"
|
|
307
307
|
>
|
|
308
308
|
<svg
|
|
309
309
|
fill="currentColor"
|
|
@@ -339,7 +339,7 @@ exports[`component:<Notification> testID 1`] = `
|
|
|
339
339
|
data-testid="mirai"
|
|
340
340
|
>
|
|
341
341
|
<span
|
|
342
|
-
class="icon headline-3"
|
|
342
|
+
class="icon headline-3 icon"
|
|
343
343
|
>
|
|
344
344
|
<svg
|
|
345
345
|
fill="currentColor"
|
|
@@ -30,15 +30,7 @@ var ICON = {
|
|
|
30
30
|
ERROR: _md.MdOutlineError,
|
|
31
31
|
INFO: _md.MdOutlineInfo,
|
|
32
32
|
SUCCESS: _md.MdOutlineCheckCircle,
|
|
33
|
-
WARNING: _md.MdOutlineWarning
|
|
34
|
-
// @mirai/finder
|
|
35
|
-
LIST: _md.MdOutlineListAlt,
|
|
36
|
-
LOCK: _md.MdOutlineLock,
|
|
37
|
-
BED: _md.MdOutlineBed,
|
|
38
|
-
CALENDAR: _md.MdOutlineCalendarToday,
|
|
39
|
-
PERSON: _md.MdOutlinePerson,
|
|
40
|
-
// @mirai/user
|
|
41
|
-
ACCOUNT: _md.MdOutlineAccountCircle
|
|
33
|
+
WARNING: _md.MdOutlineWarning
|
|
42
34
|
};
|
|
43
35
|
exports.ICON = ICON;
|
|
44
36
|
//# 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","EYE_OPEN","EYE_CLOSE","CLOSE","ERROR","INFO","SUCCESS","WARNING"
|
|
1
|
+
{"version":3,"file":"Icon.constants.js","names":["ICON","LEFT","RIGHT","UP","DOWN","CHECK","ADD","REMOVE","EXPAND_LESS","EXPAND_MORE","EYE_OPEN","EYE_CLOSE","CLOSE","ERROR","INFO","SUCCESS","WARNING"],"sources":["../../../src/primitives/Icon/Icon.constants.js"],"sourcesContent":["import {\n // <Calendar>\n MdOutlineArrowBack as LEFT,\n MdOutlineArrowForward as RIGHT,\n MdOutlineArrowUpward as UP,\n MdOutlineArrowDownward as DOWN,\n // <InputOption>\n MdOutlineCheck as CHECK,\n // <InputNumber>\n MdOutlineAdd as ADD,\n MdOutlineRemove as REMOVE,\n // <InputSelect>\n MdOutlineExpandLess as EXPAND_LESS,\n MdOutlineExpandMore as EXPAND_MORE,\n // <InputText>\n MdOutlineVisibility as EYE_OPEN,\n MdOutlineVisibilityOff as EYE_CLOSE,\n // <Modal>\n MdOutlineClose as CLOSE,\n // <Notification> & <InputText>\n MdOutlineError as ERROR,\n MdOutlineInfo as INFO,\n MdOutlineCheckCircle as SUCCESS,\n MdOutlineWarning as WARNING,\n} from 'react-icons/md';\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 EYE_OPEN,\n EYE_CLOSE,\n // <Modal>\n CLOSE,\n // <Notification> & <InputText>\n ERROR,\n INFO,\n SUCCESS,\n WARNING,\n};\n"],"mappings":";;;;;;;AAAA;;AA0BO,IAAMA,IAAI,GAAG;EAClB;EACAC,IAAI,EAAJA,sBAFkB;EAGlBC,KAAK,EAALA,yBAHkB;EAIlBC,EAAE,EAAFA,wBAJkB;EAKlBC,IAAI,EAAJA,0BALkB;EAMlB;EACAC,KAAK,EAALA,kBAPkB;EAQlB;EACAC,GAAG,EAAHA,gBATkB;EAUlBC,MAAM,EAANA,mBAVkB;EAWlB;EACAC,WAAW,EAAXA,uBAZkB;EAalBC,WAAW,EAAXA,uBAbkB;EAclB;EACAC,QAAQ,EAARA,uBAfkB;EAgBlBC,SAAS,EAATA,0BAhBkB;EAiBlB;EACAC,KAAK,EAALA,kBAlBkB;EAmBlB;EACAC,KAAK,EAALA,kBApBkB;EAqBlBC,IAAI,EAAJA,iBArBkB;EAsBlBC,OAAO,EAAPA,wBAtBkB;EAuBlBC,OAAO,EAAPA;AAvBkB,CAAb"}
|
|
@@ -9,33 +9,6 @@ exports[`primitive:<Icon> inherit:className 1`] = `
|
|
|
9
9
|
</DocumentFragment>
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
|
-
exports[`primitive:<Icon> prop:value prop:value (ACCOUNT) 1`] = `
|
|
13
|
-
<DocumentFragment>
|
|
14
|
-
<span
|
|
15
|
-
class="icon headline-3"
|
|
16
|
-
name="Left"
|
|
17
|
-
>
|
|
18
|
-
<svg
|
|
19
|
-
fill="currentColor"
|
|
20
|
-
height="1em"
|
|
21
|
-
stroke="currentColor"
|
|
22
|
-
stroke-width="0"
|
|
23
|
-
viewBox="0 0 24 24"
|
|
24
|
-
width="1em"
|
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
-
>
|
|
27
|
-
<path
|
|
28
|
-
d="M0 0h24v24H0V0z"
|
|
29
|
-
fill="none"
|
|
30
|
-
/>
|
|
31
|
-
<path
|
|
32
|
-
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 014 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
|
|
33
|
-
/>
|
|
34
|
-
</svg>
|
|
35
|
-
</span>
|
|
36
|
-
</DocumentFragment>
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
12
|
exports[`primitive:<Icon> prop:value prop:value (ADD) 1`] = `
|
|
40
13
|
<DocumentFragment>
|
|
41
14
|
<span
|
|
@@ -63,60 +36,6 @@ exports[`primitive:<Icon> prop:value prop:value (ADD) 1`] = `
|
|
|
63
36
|
</DocumentFragment>
|
|
64
37
|
`;
|
|
65
38
|
|
|
66
|
-
exports[`primitive:<Icon> prop:value prop:value (BED) 1`] = `
|
|
67
|
-
<DocumentFragment>
|
|
68
|
-
<span
|
|
69
|
-
class="icon headline-3"
|
|
70
|
-
name="Left"
|
|
71
|
-
>
|
|
72
|
-
<svg
|
|
73
|
-
fill="currentColor"
|
|
74
|
-
height="1em"
|
|
75
|
-
stroke="currentColor"
|
|
76
|
-
stroke-width="0"
|
|
77
|
-
viewBox="0 0 24 24"
|
|
78
|
-
width="1em"
|
|
79
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
80
|
-
>
|
|
81
|
-
<path
|
|
82
|
-
d="M0 0h24v24H0V0z"
|
|
83
|
-
fill="none"
|
|
84
|
-
/>
|
|
85
|
-
<path
|
|
86
|
-
d="M21 10.78V8c0-1.65-1.35-3-3-3h-4c-.77 0-1.47.3-2 .78-.53-.48-1.23-.78-2-.78H6C4.35 5 3 6.35 3 8v2.78c-.61.55-1 1.34-1 2.22v6h2v-2h16v2h2v-6c0-.88-.39-1.67-1-2.22zM14 7h4c.55 0 1 .45 1 1v2h-6V8c0-.55.45-1 1-1zM5 8c0-.55.45-1 1-1h4c.55 0 1 .45 1 1v2H5V8zm-1 7v-2c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v2H4z"
|
|
87
|
-
/>
|
|
88
|
-
</svg>
|
|
89
|
-
</span>
|
|
90
|
-
</DocumentFragment>
|
|
91
|
-
`;
|
|
92
|
-
|
|
93
|
-
exports[`primitive:<Icon> prop:value prop:value (CALENDAR) 1`] = `
|
|
94
|
-
<DocumentFragment>
|
|
95
|
-
<span
|
|
96
|
-
class="icon headline-3"
|
|
97
|
-
name="Left"
|
|
98
|
-
>
|
|
99
|
-
<svg
|
|
100
|
-
fill="currentColor"
|
|
101
|
-
height="1em"
|
|
102
|
-
stroke="currentColor"
|
|
103
|
-
stroke-width="0"
|
|
104
|
-
viewBox="0 0 24 24"
|
|
105
|
-
width="1em"
|
|
106
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
107
|
-
>
|
|
108
|
-
<path
|
|
109
|
-
d="M0 0h24v24H0V0z"
|
|
110
|
-
fill="none"
|
|
111
|
-
/>
|
|
112
|
-
<path
|
|
113
|
-
d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z"
|
|
114
|
-
/>
|
|
115
|
-
</svg>
|
|
116
|
-
</span>
|
|
117
|
-
</DocumentFragment>
|
|
118
|
-
`;
|
|
119
|
-
|
|
120
39
|
exports[`primitive:<Icon> prop:value prop:value (CHECK) 1`] = `
|
|
121
40
|
<DocumentFragment>
|
|
122
41
|
<span
|
|
@@ -384,94 +303,6 @@ exports[`primitive:<Icon> prop:value prop:value (LEFT) 1`] = `
|
|
|
384
303
|
</DocumentFragment>
|
|
385
304
|
`;
|
|
386
305
|
|
|
387
|
-
exports[`primitive:<Icon> prop:value prop:value (LIST) 1`] = `
|
|
388
|
-
<DocumentFragment>
|
|
389
|
-
<span
|
|
390
|
-
class="icon headline-3"
|
|
391
|
-
name="Left"
|
|
392
|
-
>
|
|
393
|
-
<svg
|
|
394
|
-
fill="currentColor"
|
|
395
|
-
height="1em"
|
|
396
|
-
stroke="currentColor"
|
|
397
|
-
stroke-width="0"
|
|
398
|
-
viewBox="0 0 24 24"
|
|
399
|
-
width="1em"
|
|
400
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
401
|
-
>
|
|
402
|
-
<path
|
|
403
|
-
d="M0 0h24v24H0V0z"
|
|
404
|
-
fill="none"
|
|
405
|
-
/>
|
|
406
|
-
<path
|
|
407
|
-
d="M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7zM20.1 3H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM19 19H5V5h14v14z"
|
|
408
|
-
/>
|
|
409
|
-
</svg>
|
|
410
|
-
</span>
|
|
411
|
-
</DocumentFragment>
|
|
412
|
-
`;
|
|
413
|
-
|
|
414
|
-
exports[`primitive:<Icon> prop:value prop:value (LOCK) 1`] = `
|
|
415
|
-
<DocumentFragment>
|
|
416
|
-
<span
|
|
417
|
-
class="icon headline-3"
|
|
418
|
-
name="Left"
|
|
419
|
-
>
|
|
420
|
-
<svg
|
|
421
|
-
fill="currentColor"
|
|
422
|
-
height="1em"
|
|
423
|
-
stroke="currentColor"
|
|
424
|
-
stroke-width="0"
|
|
425
|
-
viewBox="0 0 24 24"
|
|
426
|
-
width="1em"
|
|
427
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
428
|
-
>
|
|
429
|
-
<g
|
|
430
|
-
fill="none"
|
|
431
|
-
>
|
|
432
|
-
<path
|
|
433
|
-
d="M0 0h24v24H0V0z"
|
|
434
|
-
/>
|
|
435
|
-
<path
|
|
436
|
-
d="M0 0h24v24H0V0z"
|
|
437
|
-
opacity=".87"
|
|
438
|
-
/>
|
|
439
|
-
</g>
|
|
440
|
-
<path
|
|
441
|
-
d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
|
|
442
|
-
/>
|
|
443
|
-
</svg>
|
|
444
|
-
</span>
|
|
445
|
-
</DocumentFragment>
|
|
446
|
-
`;
|
|
447
|
-
|
|
448
|
-
exports[`primitive:<Icon> prop:value prop:value (PERSON) 1`] = `
|
|
449
|
-
<DocumentFragment>
|
|
450
|
-
<span
|
|
451
|
-
class="icon headline-3"
|
|
452
|
-
name="Left"
|
|
453
|
-
>
|
|
454
|
-
<svg
|
|
455
|
-
fill="currentColor"
|
|
456
|
-
height="1em"
|
|
457
|
-
stroke="currentColor"
|
|
458
|
-
stroke-width="0"
|
|
459
|
-
viewBox="0 0 24 24"
|
|
460
|
-
width="1em"
|
|
461
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
462
|
-
>
|
|
463
|
-
<path
|
|
464
|
-
d="M0 0h24v24H0V0z"
|
|
465
|
-
fill="none"
|
|
466
|
-
/>
|
|
467
|
-
<path
|
|
468
|
-
d="M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
469
|
-
/>
|
|
470
|
-
</svg>
|
|
471
|
-
</span>
|
|
472
|
-
</DocumentFragment>
|
|
473
|
-
`;
|
|
474
|
-
|
|
475
306
|
exports[`primitive:<Icon> prop:value prop:value (REMOVE) 1`] = `
|
|
476
307
|
<DocumentFragment>
|
|
477
308
|
<span
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
--mirai-ui-accent-dark: #224876;
|
|
44
44
|
--mirai-ui-accent-light: #88aedc;
|
|
45
45
|
|
|
46
|
-
--mirai-ui-error: #
|
|
47
|
-
--mirai-ui-error-
|
|
48
|
-
--mirai-ui-error-
|
|
49
|
-
--mirai-ui-error
|
|
50
|
-
--mirai-ui-error-
|
|
51
|
-
|
|
52
|
-
--mirai-ui-
|
|
53
|
-
--mirai-ui-
|
|
54
|
-
--mirai-ui-
|
|
55
|
-
--mirai-ui-
|
|
56
|
-
--mirai-ui-
|
|
57
|
-
|
|
58
|
-
--mirai-ui-
|
|
59
|
-
--mirai-ui-
|
|
60
|
-
--mirai-ui-
|
|
61
|
-
--mirai-ui-
|
|
62
|
-
--mirai-ui-
|
|
63
|
-
|
|
64
|
-
--mirai-ui-info: #
|
|
65
|
-
--mirai-ui-info-
|
|
66
|
-
--mirai-ui-info-
|
|
67
|
-
--mirai-ui-info
|
|
68
|
-
--mirai-ui-info-
|
|
46
|
+
--mirai-ui-error-background: #ffece5;
|
|
47
|
+
--mirai-ui-error-border: #ffb9aa;
|
|
48
|
+
--mirai-ui-error-light: #ff8a7f;
|
|
49
|
+
--mirai-ui-error: #ff2b40;
|
|
50
|
+
--mirai-ui-error-dark: #b71543;
|
|
51
|
+
|
|
52
|
+
--mirai-ui-warning-background: #fff8e5;
|
|
53
|
+
--mirai-ui-warning-border: #fff2cc;
|
|
54
|
+
--mirai-ui-warning-light: #ffce66;
|
|
55
|
+
--mirai-ui-warning: #ff9900;
|
|
56
|
+
--mirai-ui-warning-dark: #ad5a00;
|
|
57
|
+
|
|
58
|
+
--mirai-ui-success-background: #e7fde7;
|
|
59
|
+
--mirai-ui-success-border: #a6faad;
|
|
60
|
+
--mirai-ui-success-light: #77f18e;
|
|
61
|
+
--mirai-ui-success: #21d366;
|
|
62
|
+
--mirai-ui-success-dark: #0e8151;
|
|
63
|
+
|
|
64
|
+
--mirai-ui-info-background: #e6f8ff;
|
|
65
|
+
--mirai-ui-info-border: #9cdefe;
|
|
66
|
+
--mirai-ui-info-light: #6bc6fe;
|
|
67
|
+
--mirai-ui-info: #0a87fc;
|
|
68
|
+
--mirai-ui-info-dark: #054db5;
|
|
69
69
|
|
|
70
70
|
/* spacing */
|
|
71
71
|
--mirai-ui-space-XS: 8px;
|