@mirai/ui 1.0.76 → 1.0.78
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/Action/Action.module.css +0 -1
- package/build/components/Button/Button.module.css +0 -3
- package/build/components/Calendar/Calendar.module.css +9 -8
- package/build/components/Notification/Notification.js +4 -2
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +12 -3
- package/build/components/Notification/Notification.stories.js +1 -0
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +338 -0
- package/package.json +1 -1
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
justify-content: center;
|
|
11
11
|
padding: var(--mirai-ui-button-padding-y) var(--mirai-ui-button-padding-x);
|
|
12
12
|
position: relative;
|
|
13
|
-
transition: background-color var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing),
|
|
14
|
-
box-shadow var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing),
|
|
15
|
-
color var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing);
|
|
16
13
|
width: fit-content;
|
|
17
14
|
}
|
|
18
15
|
|
|
@@ -87,26 +87,27 @@
|
|
|
87
87
|
color: var(--mirai-ui-content-border);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
@media only screen and (max-width:
|
|
90
|
+
@media only screen and (max-width: 768px) {
|
|
91
91
|
.container {
|
|
92
|
-
max-height: calc(var(--mirai-ui-calendar-cell) *
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.month {
|
|
96
|
-
width: 100%;
|
|
97
|
-
margin-left: 0;
|
|
92
|
+
max-height: calc(var(--mirai-ui-calendar-cell) * 9.75);
|
|
98
93
|
}
|
|
99
94
|
|
|
100
95
|
.day {
|
|
101
96
|
width: auto;
|
|
102
97
|
}
|
|
103
98
|
|
|
99
|
+
.month {
|
|
100
|
+
margin-left: 0;
|
|
101
|
+
padding-bottom: 0;
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
104
105
|
.weekdays {
|
|
105
106
|
border-bottom: solid var(--mirai-ui-border-width) var(--mirai-ui-content-border);
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
|
|
109
|
-
@media only screen and (min-width:
|
|
110
|
+
@media only screen and (min-width: 768px) {
|
|
110
111
|
.dayTouchable:hover {
|
|
111
112
|
background-color: var(--mirai-ui-calendar-selected-background);
|
|
112
113
|
}
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _helpers = require("../../helpers");
|
|
10
10
|
var _primitives = require("../../primitives");
|
|
11
11
|
var _NotificationModule = _interopRequireDefault(require("./Notification.module.css"));
|
|
12
|
-
var _excluded = ["children", "error", "inline", "large", "small", "success", "warning", "onClose"];
|
|
12
|
+
var _excluded = ["children", "error", "info", "inline", "large", "small", "success", "warning", "onClose"];
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
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; }
|
|
@@ -17,6 +17,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
17
|
var Notification = function Notification(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
19
19
|
error = _ref.error,
|
|
20
|
+
info = _ref.info,
|
|
20
21
|
_ref$inline = _ref.inline,
|
|
21
22
|
inline = _ref$inline === void 0 ? false : _ref$inline,
|
|
22
23
|
large = _ref.large,
|
|
@@ -27,7 +28,7 @@ var Notification = function Notification(_ref) {
|
|
|
27
28
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
28
29
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
29
30
|
row: true,
|
|
30
|
-
className: (0, _helpers.styles)(_NotificationModule.default.notification, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, inline && _NotificationModule.default.inline, large ? _NotificationModule.default.large : small && _NotificationModule.default.small, others.className)
|
|
31
|
+
className: (0, _helpers.styles)(_NotificationModule.default.notification, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : info ? _NotificationModule.default.info : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, inline && _NotificationModule.default.inline, large ? _NotificationModule.default.large : small && _NotificationModule.default.small, others.className)
|
|
31
32
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
32
33
|
headline: large,
|
|
33
34
|
level: large ? 1 : undefined,
|
|
@@ -54,6 +55,7 @@ Notification.displayName = 'Component:Notification';
|
|
|
54
55
|
Notification.propTypes = {
|
|
55
56
|
children: _propTypes.default.any.isRequired,
|
|
56
57
|
error: _propTypes.default.bool,
|
|
58
|
+
info: _propTypes.default.bool,
|
|
57
59
|
inline: _propTypes.default.bool,
|
|
58
60
|
large: _propTypes.default.bool,
|
|
59
61
|
small: _propTypes.default.bool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["Notification","children","error","inline","large","small","success","warning","onClose","others","styles","style","notification","undefined","outlined","className","getIconState","icon","text","pressable","ICON","CLOSE","displayName","propTypes","PropTypes","any","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 = ({
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["Notification","children","error","info","inline","large","small","success","warning","onClose","others","styles","style","notification","undefined","outlined","className","getIconState","icon","text","pressable","ICON","CLOSE","displayName","propTypes","PropTypes","any","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 = ({\n children,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n warning,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n className={styles(\n style.notification,\n error ? style.error : warning ? style.warning : success ? style.success : info ? style.info : undefined,\n inline ? style.inline : style.outlined,\n inline && style.inline,\n large ? style.large : small && style.small,\n others.className,\n )}\n >\n <Icon\n headline={large}\n level={large ? 1 : undefined}\n paragraph={small}\n value={getIconState({ error, success, warning })}\n className={style.icon}\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 {!large && onClose && (\n <Pressable className={styles(style.pressable, style.icon)} 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.any.isRequired,\n error: PropTypes.bool,\n info: PropTypes.bool,\n inline: PropTypes.bool,\n large: 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;AAA8C;AAAA;AAAA;AAAA;AAAA;AAE9C,IAAMA,YAAY,GAAG,SAAfA,YAAY;EAAA,IAChBC,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KAAK;IACLC,IAAI,QAAJA,IAAI;IAAA,mBACJC,MAAM;IAANA,MAAM,4BAAG,KAAK;IACdC,KAAK,QAALA,KAAK;IACLC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IACPC,OAAO,QAAPA,OAAO;IACPC,OAAO,QAAPA,OAAO;IACJC,MAAM;EAAA,oBAET,6BAAC,gBAAI,eACCA,MAAM;IACV,GAAG;IACH,SAAS,EAAE,IAAAC,eAAM,EACfC,2BAAK,CAACC,YAAY,EAClBX,KAAK,GAAGU,2BAAK,CAACV,KAAK,GAAGM,OAAO,GAAGI,2BAAK,CAACJ,OAAO,GAAGD,OAAO,GAAGK,2BAAK,CAACL,OAAO,GAAGJ,IAAI,GAAGS,2BAAK,CAACT,IAAI,GAAGW,SAAS,EACvGV,MAAM,GAAGQ,2BAAK,CAACR,MAAM,GAAGQ,2BAAK,CAACG,QAAQ,EACtCX,MAAM,IAAIQ,2BAAK,CAACR,MAAM,EACtBC,KAAK,GAAGO,2BAAK,CAACP,KAAK,GAAGC,KAAK,IAAIM,2BAAK,CAACN,KAAK,EAC1CI,MAAM,CAACM,SAAS;EAChB,iBAEF,6BAAC,gBAAI;IACH,QAAQ,EAAEX,KAAM;IAChB,KAAK,EAAEA,KAAK,GAAG,CAAC,GAAGS,SAAU;IAC7B,SAAS,EAAER,KAAM;IACjB,KAAK,EAAE,IAAAW,qBAAY,EAAC;MAAEf,KAAK,EAALA,KAAK;MAAEK,OAAO,EAAPA,OAAO;MAAEC,OAAO,EAAPA;IAAQ,CAAC,CAAE;IACjD,SAAS,EAAEI,2BAAK,CAACM;EAAK,EACtB,eACF,6BAAC,gBAAI;IACH,KAAK,EAAEZ,KAAM;IACb,SAAS,EAAE,IAAAK,eAAM,EACfC,2BAAK,CAACO,IAAI,EACVjB,KAAK,GAAGU,2BAAK,CAACV,KAAK,GAAGM,OAAO,GAAGI,2BAAK,CAACJ,OAAO,GAAGD,OAAO,GAAGK,2BAAK,CAACL,OAAO,GAAGO,SAAS;EACnF,GAEDb,QAAQ,CACJ,EACN,CAACI,KAAK,IAAII,OAAO,iBAChB,6BAAC,qBAAS;IAAC,SAAS,EAAE,IAAAE,eAAM,EAACC,2BAAK,CAACQ,SAAS,EAAER,2BAAK,CAACM,IAAI,CAAE;IAAC,OAAO,EAAET;EAAQ,gBAC1E,6BAAC,gBAAI;IAAC,KAAK,EAAEY,gBAAI,CAACC,KAAM;IAAC,SAAS,EAAEhB;EAAM,EAAG,CAEhD,CACI;AAAA,CACR;AAAC;AAEFN,YAAY,CAACuB,WAAW,GAAG,wBAAwB;AAEnDvB,YAAY,CAACwB,SAAS,GAAG;EACvBvB,QAAQ,EAAEwB,kBAAS,CAACC,GAAG,CAACC,UAAU;EAClCzB,KAAK,EAAEuB,kBAAS,CAACG,IAAI;EACrBzB,IAAI,EAAEsB,kBAAS,CAACG,IAAI;EACpBxB,MAAM,EAAEqB,kBAAS,CAACG,IAAI;EACtBvB,KAAK,EAAEoB,kBAAS,CAACG,IAAI;EACrBtB,KAAK,EAAEmB,kBAAS,CAACG,IAAI;EACrBrB,OAAO,EAAEkB,kBAAS,CAACG,IAAI;EACvBpB,OAAO,EAAEiB,kBAAS,CAACG,IAAI;EACvBnB,OAAO,EAAEgB,kBAAS,CAACI;AACrB,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.notification.outlined {
|
|
7
|
-
background-color: var(--mirai-ui-
|
|
8
|
-
border: solid var(--mirai-ui-border-width) var(--mirai-ui-
|
|
7
|
+
background-color: var(--mirai-ui-content-background);
|
|
8
|
+
border: solid var(--mirai-ui-border-width) var(--mirai-ui-content-border);
|
|
9
9
|
border-radius: var(--mirai-ui-notification-border-radius);
|
|
10
10
|
padding: var(--mirai-ui-notification-padding);
|
|
11
11
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.notification * {
|
|
27
|
-
color: var(--mirai-ui-
|
|
27
|
+
color: var(--mirai-ui-content);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.notification.success:not(.inline) {
|
|
@@ -54,6 +54,15 @@
|
|
|
54
54
|
color: var(--mirai-ui-warning);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
.notification.info:not(.inline) {
|
|
58
|
+
background-color: var(--mirai-ui-info-background);
|
|
59
|
+
border-color: var(--mirai-ui-info-border);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.notification.info * {
|
|
63
|
+
color: var(--mirai-ui-info);
|
|
64
|
+
}
|
|
65
|
+
|
|
57
66
|
.notification:not(.large):not(.small) .text {
|
|
58
67
|
margin-left: var(--mirai-ui-notification-padding);
|
|
59
68
|
margin-right: var(--mirai-ui-notification-padding);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","inline","large","small","success","warning","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Notification {...props} />;\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'children',\n error: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAE/B;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,0BAAY,EAAKA,KAAK,CAAI;AAAA;AAAC;AAE5DD,KAAK,CAACE,SAAS,GAAG,cAAc;AAEhCF,KAAK,CAACG,IAAI;EACRC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,KAAK;EACZC,MAAM,EAAE,KAAK;EACbC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,OAAO,EAAE;AAAK,GACb,aAAa,EAAG,YAAY,CAC9B;
|
|
1
|
+
{"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","info","inline","large","small","success","warning","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Notification {...props} />;\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'children',\n error: false,\n info: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAE/B;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,0BAAY,EAAKA,KAAK,CAAI;AAAA;AAAC;AAE5DD,KAAK,CAACE,SAAS,GAAG,cAAc;AAEhCF,KAAK,CAACG,IAAI;EACRC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,KAAK;EACZC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE,KAAK;EACbC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,OAAO,EAAE;AAAK,GACb,aAAa,EAAG,YAAY,CAC9B;AAEDX,KAAK,CAACY,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC"}
|
|
@@ -70,6 +70,146 @@ exports[`component:<Notification> prop:error 1`] = `
|
|
|
70
70
|
</DocumentFragment>
|
|
71
71
|
`;
|
|
72
72
|
|
|
73
|
+
exports[`component:<Notification> prop:info & inline 1`] = `
|
|
74
|
+
<DocumentFragment>
|
|
75
|
+
<div
|
|
76
|
+
class="view row notification info inline inline"
|
|
77
|
+
>
|
|
78
|
+
<span
|
|
79
|
+
class="icon headline-3 icon"
|
|
80
|
+
>
|
|
81
|
+
<svg
|
|
82
|
+
fill="currentColor"
|
|
83
|
+
height="1em"
|
|
84
|
+
stroke="currentColor"
|
|
85
|
+
stroke-width="0"
|
|
86
|
+
viewBox="0 0 24 24"
|
|
87
|
+
width="1em"
|
|
88
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
89
|
+
>
|
|
90
|
+
<path
|
|
91
|
+
d="M0 0h24v24H0V0z"
|
|
92
|
+
fill="none"
|
|
93
|
+
/>
|
|
94
|
+
<path
|
|
95
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
</span>
|
|
99
|
+
<span
|
|
100
|
+
class="text paragraph text"
|
|
101
|
+
>
|
|
102
|
+
Lorem Ipsum...
|
|
103
|
+
</span>
|
|
104
|
+
</div>
|
|
105
|
+
</DocumentFragment>
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
exports[`component:<Notification> prop:info & large 1`] = `
|
|
109
|
+
<DocumentFragment>
|
|
110
|
+
<div
|
|
111
|
+
class="view row notification info outlined large"
|
|
112
|
+
>
|
|
113
|
+
<span
|
|
114
|
+
class="icon headline-1 icon"
|
|
115
|
+
>
|
|
116
|
+
<svg
|
|
117
|
+
fill="currentColor"
|
|
118
|
+
height="1em"
|
|
119
|
+
stroke="currentColor"
|
|
120
|
+
stroke-width="0"
|
|
121
|
+
viewBox="0 0 24 24"
|
|
122
|
+
width="1em"
|
|
123
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
124
|
+
>
|
|
125
|
+
<path
|
|
126
|
+
d="M0 0h24v24H0V0z"
|
|
127
|
+
fill="none"
|
|
128
|
+
/>
|
|
129
|
+
<path
|
|
130
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
131
|
+
/>
|
|
132
|
+
</svg>
|
|
133
|
+
</span>
|
|
134
|
+
<span
|
|
135
|
+
class="text paragraph text"
|
|
136
|
+
>
|
|
137
|
+
Lorem Ipsum...
|
|
138
|
+
</span>
|
|
139
|
+
</div>
|
|
140
|
+
</DocumentFragment>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`component:<Notification> prop:info & small 1`] = `
|
|
144
|
+
<DocumentFragment>
|
|
145
|
+
<div
|
|
146
|
+
class="view row notification info outlined small"
|
|
147
|
+
>
|
|
148
|
+
<span
|
|
149
|
+
class="icon paragraph icon"
|
|
150
|
+
>
|
|
151
|
+
<svg
|
|
152
|
+
fill="currentColor"
|
|
153
|
+
height="1em"
|
|
154
|
+
stroke="currentColor"
|
|
155
|
+
stroke-width="0"
|
|
156
|
+
viewBox="0 0 24 24"
|
|
157
|
+
width="1em"
|
|
158
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
159
|
+
>
|
|
160
|
+
<path
|
|
161
|
+
d="M0 0h24v24H0V0z"
|
|
162
|
+
fill="none"
|
|
163
|
+
/>
|
|
164
|
+
<path
|
|
165
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
166
|
+
/>
|
|
167
|
+
</svg>
|
|
168
|
+
</span>
|
|
169
|
+
<span
|
|
170
|
+
class="text small text"
|
|
171
|
+
>
|
|
172
|
+
Lorem Ipsum...
|
|
173
|
+
</span>
|
|
174
|
+
</div>
|
|
175
|
+
</DocumentFragment>
|
|
176
|
+
`;
|
|
177
|
+
|
|
178
|
+
exports[`component:<Notification> prop:info 1`] = `
|
|
179
|
+
<DocumentFragment>
|
|
180
|
+
<div
|
|
181
|
+
class="view row notification info outlined"
|
|
182
|
+
>
|
|
183
|
+
<span
|
|
184
|
+
class="icon headline-3 icon"
|
|
185
|
+
>
|
|
186
|
+
<svg
|
|
187
|
+
fill="currentColor"
|
|
188
|
+
height="1em"
|
|
189
|
+
stroke="currentColor"
|
|
190
|
+
stroke-width="0"
|
|
191
|
+
viewBox="0 0 24 24"
|
|
192
|
+
width="1em"
|
|
193
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
194
|
+
>
|
|
195
|
+
<path
|
|
196
|
+
d="M0 0h24v24H0V0z"
|
|
197
|
+
fill="none"
|
|
198
|
+
/>
|
|
199
|
+
<path
|
|
200
|
+
d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
201
|
+
/>
|
|
202
|
+
</svg>
|
|
203
|
+
</span>
|
|
204
|
+
<span
|
|
205
|
+
class="text paragraph text"
|
|
206
|
+
>
|
|
207
|
+
Lorem Ipsum...
|
|
208
|
+
</span>
|
|
209
|
+
</div>
|
|
210
|
+
</DocumentFragment>
|
|
211
|
+
`;
|
|
212
|
+
|
|
73
213
|
exports[`component:<Notification> prop:inline 1`] = `
|
|
74
214
|
<DocumentFragment>
|
|
75
215
|
<div
|
|
@@ -305,6 +445,111 @@ exports[`component:<Notification> prop:small 1`] = `
|
|
|
305
445
|
</DocumentFragment>
|
|
306
446
|
`;
|
|
307
447
|
|
|
448
|
+
exports[`component:<Notification> prop:success & inline 1`] = `
|
|
449
|
+
<DocumentFragment>
|
|
450
|
+
<div
|
|
451
|
+
class="view row notification success inline inline"
|
|
452
|
+
>
|
|
453
|
+
<span
|
|
454
|
+
class="icon headline-3 icon"
|
|
455
|
+
>
|
|
456
|
+
<svg
|
|
457
|
+
fill="currentColor"
|
|
458
|
+
height="1em"
|
|
459
|
+
stroke="currentColor"
|
|
460
|
+
stroke-width="0"
|
|
461
|
+
viewBox="0 0 24 24"
|
|
462
|
+
width="1em"
|
|
463
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
464
|
+
>
|
|
465
|
+
<path
|
|
466
|
+
d="M0 0h24v24H0V0z"
|
|
467
|
+
fill="none"
|
|
468
|
+
/>
|
|
469
|
+
<path
|
|
470
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"
|
|
471
|
+
/>
|
|
472
|
+
</svg>
|
|
473
|
+
</span>
|
|
474
|
+
<span
|
|
475
|
+
class="text paragraph text success"
|
|
476
|
+
>
|
|
477
|
+
Lorem Ipsum...
|
|
478
|
+
</span>
|
|
479
|
+
</div>
|
|
480
|
+
</DocumentFragment>
|
|
481
|
+
`;
|
|
482
|
+
|
|
483
|
+
exports[`component:<Notification> prop:success & large 1`] = `
|
|
484
|
+
<DocumentFragment>
|
|
485
|
+
<div
|
|
486
|
+
class="view row notification success outlined large"
|
|
487
|
+
>
|
|
488
|
+
<span
|
|
489
|
+
class="icon headline-1 icon"
|
|
490
|
+
>
|
|
491
|
+
<svg
|
|
492
|
+
fill="currentColor"
|
|
493
|
+
height="1em"
|
|
494
|
+
stroke="currentColor"
|
|
495
|
+
stroke-width="0"
|
|
496
|
+
viewBox="0 0 24 24"
|
|
497
|
+
width="1em"
|
|
498
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
499
|
+
>
|
|
500
|
+
<path
|
|
501
|
+
d="M0 0h24v24H0V0z"
|
|
502
|
+
fill="none"
|
|
503
|
+
/>
|
|
504
|
+
<path
|
|
505
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"
|
|
506
|
+
/>
|
|
507
|
+
</svg>
|
|
508
|
+
</span>
|
|
509
|
+
<span
|
|
510
|
+
class="text paragraph text success"
|
|
511
|
+
>
|
|
512
|
+
Lorem Ipsum...
|
|
513
|
+
</span>
|
|
514
|
+
</div>
|
|
515
|
+
</DocumentFragment>
|
|
516
|
+
`;
|
|
517
|
+
|
|
518
|
+
exports[`component:<Notification> prop:success & small 1`] = `
|
|
519
|
+
<DocumentFragment>
|
|
520
|
+
<div
|
|
521
|
+
class="view row notification success outlined small"
|
|
522
|
+
>
|
|
523
|
+
<span
|
|
524
|
+
class="icon paragraph icon"
|
|
525
|
+
>
|
|
526
|
+
<svg
|
|
527
|
+
fill="currentColor"
|
|
528
|
+
height="1em"
|
|
529
|
+
stroke="currentColor"
|
|
530
|
+
stroke-width="0"
|
|
531
|
+
viewBox="0 0 24 24"
|
|
532
|
+
width="1em"
|
|
533
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
534
|
+
>
|
|
535
|
+
<path
|
|
536
|
+
d="M0 0h24v24H0V0z"
|
|
537
|
+
fill="none"
|
|
538
|
+
/>
|
|
539
|
+
<path
|
|
540
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"
|
|
541
|
+
/>
|
|
542
|
+
</svg>
|
|
543
|
+
</span>
|
|
544
|
+
<span
|
|
545
|
+
class="text small text success"
|
|
546
|
+
>
|
|
547
|
+
Lorem Ipsum...
|
|
548
|
+
</span>
|
|
549
|
+
</div>
|
|
550
|
+
</DocumentFragment>
|
|
551
|
+
`;
|
|
552
|
+
|
|
308
553
|
exports[`component:<Notification> prop:success 1`] = `
|
|
309
554
|
<DocumentFragment>
|
|
310
555
|
<div
|
|
@@ -340,6 +585,99 @@ exports[`component:<Notification> prop:success 1`] = `
|
|
|
340
585
|
</DocumentFragment>
|
|
341
586
|
`;
|
|
342
587
|
|
|
588
|
+
exports[`component:<Notification> prop:warning & inline 1`] = `
|
|
589
|
+
<DocumentFragment>
|
|
590
|
+
<div
|
|
591
|
+
class="view row notification warning inline inline"
|
|
592
|
+
>
|
|
593
|
+
<span
|
|
594
|
+
class="icon headline-3 icon"
|
|
595
|
+
>
|
|
596
|
+
<svg
|
|
597
|
+
fill="currentColor"
|
|
598
|
+
height="1em"
|
|
599
|
+
stroke="currentColor"
|
|
600
|
+
stroke-width="0"
|
|
601
|
+
viewBox="0 0 24 24"
|
|
602
|
+
width="1em"
|
|
603
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
604
|
+
>
|
|
605
|
+
<path
|
|
606
|
+
d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
607
|
+
/>
|
|
608
|
+
</svg>
|
|
609
|
+
</span>
|
|
610
|
+
<span
|
|
611
|
+
class="text paragraph text warning"
|
|
612
|
+
>
|
|
613
|
+
Lorem Ipsum...
|
|
614
|
+
</span>
|
|
615
|
+
</div>
|
|
616
|
+
</DocumentFragment>
|
|
617
|
+
`;
|
|
618
|
+
|
|
619
|
+
exports[`component:<Notification> prop:warning & large 1`] = `
|
|
620
|
+
<DocumentFragment>
|
|
621
|
+
<div
|
|
622
|
+
class="view row notification warning outlined large"
|
|
623
|
+
>
|
|
624
|
+
<span
|
|
625
|
+
class="icon headline-1 icon"
|
|
626
|
+
>
|
|
627
|
+
<svg
|
|
628
|
+
fill="currentColor"
|
|
629
|
+
height="1em"
|
|
630
|
+
stroke="currentColor"
|
|
631
|
+
stroke-width="0"
|
|
632
|
+
viewBox="0 0 24 24"
|
|
633
|
+
width="1em"
|
|
634
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
635
|
+
>
|
|
636
|
+
<path
|
|
637
|
+
d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
638
|
+
/>
|
|
639
|
+
</svg>
|
|
640
|
+
</span>
|
|
641
|
+
<span
|
|
642
|
+
class="text paragraph text warning"
|
|
643
|
+
>
|
|
644
|
+
Lorem Ipsum...
|
|
645
|
+
</span>
|
|
646
|
+
</div>
|
|
647
|
+
</DocumentFragment>
|
|
648
|
+
`;
|
|
649
|
+
|
|
650
|
+
exports[`component:<Notification> prop:warning & small 1`] = `
|
|
651
|
+
<DocumentFragment>
|
|
652
|
+
<div
|
|
653
|
+
class="view row notification warning outlined small"
|
|
654
|
+
>
|
|
655
|
+
<span
|
|
656
|
+
class="icon paragraph icon"
|
|
657
|
+
>
|
|
658
|
+
<svg
|
|
659
|
+
fill="currentColor"
|
|
660
|
+
height="1em"
|
|
661
|
+
stroke="currentColor"
|
|
662
|
+
stroke-width="0"
|
|
663
|
+
viewBox="0 0 24 24"
|
|
664
|
+
width="1em"
|
|
665
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
666
|
+
>
|
|
667
|
+
<path
|
|
668
|
+
d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
669
|
+
/>
|
|
670
|
+
</svg>
|
|
671
|
+
</span>
|
|
672
|
+
<span
|
|
673
|
+
class="text small text warning"
|
|
674
|
+
>
|
|
675
|
+
Lorem Ipsum...
|
|
676
|
+
</span>
|
|
677
|
+
</div>
|
|
678
|
+
</DocumentFragment>
|
|
679
|
+
`;
|
|
680
|
+
|
|
343
681
|
exports[`component:<Notification> prop:warning 1`] = `
|
|
344
682
|
<DocumentFragment>
|
|
345
683
|
<div
|