@mirai/ui 1.1.5 → 1.1.6

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 CHANGED
@@ -1018,7 +1018,8 @@ const MyComponent = (props) => {
1018
1018
 
1019
1019
  A component that displays a notification message with optional icons and close button and receives the following props:
1020
1020
 
1021
- - `children: node` required prop, the content of the notification (any valid React node)
1021
+ - `children:bool` required prop, the content of the notification (any valid React node)
1022
+ - `contrast:bool` indicanting wheter the notification as tooltip
1022
1023
  - `error:bool` indicating whether the notification represents an error message with corresponding styles
1023
1024
  - `info:bool` indicating whether the notification represents an informational message
1024
1025
  - `inline:bool` indicating whether the notification should be displayed inline
@@ -9,13 +9,14 @@ 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", "info", "inline", "large", "small", "success", "title", "warning", "wide", "onClose"];
12
+ var _excluded = ["children", "contrast", "error", "info", "inline", "large", "small", "success", "title", "warning", "wide", "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; }
16
16
  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; }
17
17
  var Notification = function Notification(_ref) {
18
18
  var children = _ref.children,
19
+ contrast = _ref.contrast,
19
20
  error = _ref.error,
20
21
  info = _ref.info,
21
22
  _ref$inline = _ref.inline,
@@ -31,7 +32,7 @@ var Notification = function Notification(_ref) {
31
32
  return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
32
33
  row: true,
33
34
  role: others.role || 'notification',
34
- 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, large ? _NotificationModule.default.large : small ? _NotificationModule.default.small : undefined, wide && _NotificationModule.default.wide, others.className)
35
+ className: (0, _helpers.styles)(_NotificationModule.default.notification, contrast ? _NotificationModule.default.contrast : error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : info ? _NotificationModule.default.info : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, large ? _NotificationModule.default.large : small ? _NotificationModule.default.small : undefined, wide && _NotificationModule.default.wide, others.className)
35
36
  }), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
36
37
  headline: large,
37
38
  paragraph: small,
@@ -64,6 +65,7 @@ exports.Notification = Notification;
64
65
  Notification.displayName = 'Component:Notification';
65
66
  Notification.propTypes = {
66
67
  children: _propTypes.default.any.isRequired,
68
+ contrast: _propTypes.default.bool,
67
69
  error: _propTypes.default.bool,
68
70
  info: _propTypes.default.bool,
69
71
  inline: _propTypes.default.bool,
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","names":["Notification","children","error","info","inline","large","small","success","title","warning","wide","onClose","others","role","styles","style","notification","undefined","outlined","className","getIconState","texts","testId","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","string","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 title,\n warning,\n wide,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n role={others.role || 'notification'}\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 large ? style.large : small ? style.small : undefined,\n wide && style.wide,\n others.className,\n )}\n >\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={getIconState({ error, success, warning })} />\n\n <View className={style.texts}>\n {title && (\n <Text action={small} bold headline={large}>\n {title}\n </Text>\n )}\n {children && (\n <Text action={!small && !large} small={small}>\n {children}\n </Text>\n )}\n </View>\n\n {!inline && !large && onClose && (\n <Pressable onPress={onClose} testId={others.testId ? `${others.testId}-button-close` : undefined}>\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={ICON.CLOSE} />\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 title: PropTypes.string,\n warning: PropTypes.bool,\n wide: 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,4BAA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AM,EAAE,CAACK,KAAK,IAAI,CAACD,KAAM;IAAC,KAAK,EAAEC;EAAM,GAC1CL,QAAQ,CAEZ,CACI,EAEN,CAACG,MAAM,IAAI,CAACC,KAAK,IAAIM,OAAO,iBAC3B,6BAAC,qBAAS;IAAC,OAAO,EAAEA,OAAQ;IAAC,MAAM,EAAEC,MAAM,CAACU,MAAM,aAAMV,MAAM,CAACU,MAAM,qBAAkBL;EAAU,gBAC/F,6BAAC,gBAAI;IAAC,QAAQ,EAAEZ,KAAM;IAAC,SAAS,EAAEC,KAAM;IAAC,KAAK,EAAED,KAAK,GAAG,CAAC,GAAG,CAAE;IAAC,KAAK,EAAEkB,gBAAI,CAACC;EAAM,EAAG,CAEvF,CACI;AAAA,CACR;AAAC;AAEFxB,YAAY,CAACyB,WAAW,GAAG,wBAAwB;AAEnDzB,YAAY,CAAC0B,SAAS,GAAG;EACvBzB,QAAQ,EAAE0B,kBAAS,CAACC,GAAG,CAACC,UAAU;EAClC3B,KAAK,EAAEyB,kBAAS,CAACG,IAAI;EACrB3B,IAAI,EAAEwB,kBAAS,CAACG,IAAI;EACpB1B,MAAM,EAAEuB,kBAAS,CAACG,IAAI;EACtBzB,KAAK,EAAEsB,kBAAS,CAACG,IAAI;EACrBxB,KAAK,EAAEqB,kBAAS,CAACG,IAAI;EACrBvB,OAAO,EAAEoB,kBAAS,CAACG,IAAI;EACvBtB,KAAK,EAAEmB,kBAAS,CAACI,MAAM;EACvBtB,OAAO,EAAEkB,kBAAS,CAACG,IAAI;EACvBpB,IAAI,EAAEiB,kBAAS,CAACG,IAAI;EACpBnB,OAAO,EAAEgB,kBAAS,CAACK;AACrB,CAAC"}
1
+ {"version":3,"file":"Notification.js","names":["Notification","children","contrast","error","info","inline","large","small","success","title","warning","wide","onClose","others","role","styles","style","notification","undefined","outlined","className","getIconState","texts","testId","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","string","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 contrast,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n title,\n warning,\n wide,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n role={others.role || 'notification'}\n className={styles(\n style.notification,\n contrast\n ? style.contrast\n : error\n ? style.error\n : warning\n ? style.warning\n : success\n ? style.success\n : info\n ? style.info\n : undefined,\n inline ? style.inline : style.outlined,\n large ? style.large : small ? style.small : undefined,\n wide && style.wide,\n others.className,\n )}\n >\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={getIconState({ error, success, warning })} />\n\n <View className={style.texts}>\n {title && (\n <Text action={small} bold headline={large}>\n {title}\n </Text>\n )}\n {children && (\n <Text action={!small && !large} small={small}>\n {children}\n </Text>\n )}\n </View>\n\n {!inline && !large && onClose && (\n <Pressable onPress={onClose} testId={others.testId ? `${others.testId}-button-close` : undefined}>\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={ICON.CLOSE} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.any.isRequired,\n contrast: PropTypes.bool,\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 title: PropTypes.string,\n warning: PropTypes.bool,\n wide: 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,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KAAK;IACLC,IAAI,QAAJA,IAAI;IAAA,mBACJC,MAAM;IAAN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EACAR,QAAQ,iBACP,6BAAC,gBAAI;IAAC,MAAM,EAAE,CAACM,KAAK,IAAI,CAACD,KAAM;IAAC,KAAK,EAAEC;EAAM,GAC1CN,QAAQ,CAEZ,CACI,EAEN,CAACI,MAAM,IAAI,CAACC,KAAK,IAAIM,OAAO,iBAC3B,6BAAC,qBAAS;IAAC,OAAO,EAAEA,OAAQ;IAAC,MAAM,EAAEC,MAAM,CAACU,MAAM,aAAMV,MAAM,CAACU,MAAM,qBAAkBL;EAAU,gBAC/F,6BAAC,gBAAI;IAAC,QAAQ,EAAEZ,KAAM;IAAC,SAAS,EAAEC,KAAM;IAAC,KAAK,EAAED,KAAK,GAAG,CAAC,GAAG,CAAE;IAAC,KAAK,EAAEkB,gBAAI,CAACC;EAAM,EAAG,CAEvF,CACI;AAAA,CACR;AAAC;AAEFzB,YAAY,CAAC0B,WAAW,GAAG,wBAAwB;AAEnD1B,YAAY,CAAC2B,SAAS,GAAG;EACvB1B,QAAQ,EAAE2B,kBAAS,CAACC,GAAG,CAACC,UAAU;EAClC5B,QAAQ,EAAE0B,kBAAS,CAACG,IAAI;EACxB5B,KAAK,EAAEyB,kBAAS,CAACG,IAAI;EACrB3B,IAAI,EAAEwB,kBAAS,CAACG,IAAI;EACpB1B,MAAM,EAAEuB,kBAAS,CAACG,IAAI;EACtBzB,KAAK,EAAEsB,kBAAS,CAACG,IAAI;EACrBxB,KAAK,EAAEqB,kBAAS,CAACG,IAAI;EACrBvB,OAAO,EAAEoB,kBAAS,CAACG,IAAI;EACvBtB,KAAK,EAAEmB,kBAAS,CAACI,MAAM;EACvBtB,OAAO,EAAEkB,kBAAS,CAACG,IAAI;EACvBpB,IAAI,EAAEiB,kBAAS,CAACG,IAAI;EACpBnB,OAAO,EAAEgB,kBAAS,CAACK;AACrB,CAAC"}
@@ -44,6 +44,11 @@
44
44
  padding: var(--mirai-ui-notification-padding-small);
45
45
  }
46
46
 
47
+ .notification.outlined.contrast {
48
+ background-color: var(--mirai-ui-content-dark);
49
+ border-color: var(--mirai-ui-content-dark);
50
+ }
51
+
47
52
  .notification.outlined.error {
48
53
  background-color: var(--mirai-ui-error-background);
49
54
  border-color: var(--mirai-ui-error-border);
@@ -78,6 +83,10 @@
78
83
  text-align: center;
79
84
  }
80
85
 
86
+ .notification.outlined.contrast * {
87
+ color: var(--mirai-ui-base);
88
+ }
89
+
81
90
  .notification.error * {
82
91
  color: var(--mirai-ui-error);
83
92
  }
@@ -30,6 +30,7 @@ exports.Story = Story;
30
30
  Story.storyName = 'Notification';
31
31
  Story.args = {
32
32
  children: 'We hold your booking until _Feb 14, 12:00 AM_. If your reserve change, we will get back to you.',
33
+ contrast: true,
33
34
  title: 'Your booking is on Hold',
34
35
  error: false,
35
36
  info: false,
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.stories.js","names":["title","Story","props","gap","storyName","args","children","error","info","inline","large","small","success","warning","wide","testId","style","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import React from 'react';\nimport { View } from '../../primitives';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <View style={{ gap: 'var(--mirai-ui-space-M)' }}>\n <Notification {...props} />\n <Notification {...props} small />\n <Notification {...props} large />\n <Notification {...props} inline />\n </View>\n);\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'We hold your booking until _Feb 14, 12:00 AM_. If your reserve change, we will get back to you.',\n title: 'Your booking is on Hold',\n error: false,\n info: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n wide: false,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AAA8C;AAAA;AAAA,eAE/B;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBACzB,6BAAC,gBAAI;IAAC,KAAK,EAAE;MAAEC,GAAG,EAAE;IAA0B;EAAE,gBAC9C,6BAAC,0BAAY,EAAKD,KAAK,CAAI,eAC3B,6BAAC,0BAAY,eAAKA,KAAK;IAAE,KAAK;EAAA,GAAG,eACjC,6BAAC,0BAAY,eAAKA,KAAK;IAAE,KAAK;EAAA,GAAG,eACjC,6BAAC,0BAAY,eAAKA,KAAK;IAAE,MAAM;EAAA,GAAG,CAC7B;AAAA,CACR;AAAC;AAEFD,KAAK,CAACG,SAAS,GAAG,cAAc;AAEhCH,KAAK,CAACI,IAAI,GAAG;EACXC,QAAQ,EAAE,iGAAiG;EAC3GN,KAAK,EAAE,yBAAyB;EAChCO,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,KAAK;EACdC,IAAI,EAAE,KAAK;EACX;EACAC,MAAM,EAAE,YAAY;EACpBC,KAAK,EAAE,CAAC;AACV,CAAC;AAEDf,KAAK,CAACgB,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC"}
1
+ {"version":3,"file":"Notification.stories.js","names":["title","Story","props","gap","storyName","args","children","contrast","error","info","inline","large","small","success","warning","wide","testId","style","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import React from 'react';\nimport { View } from '../../primitives';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <View style={{ gap: 'var(--mirai-ui-space-M)' }}>\n <Notification {...props} />\n <Notification {...props} small />\n <Notification {...props} large />\n <Notification {...props} inline />\n </View>\n);\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'We hold your booking until _Feb 14, 12:00 AM_. If your reserve change, we will get back to you.',\n contrast: true,\n title: 'Your booking is on Hold',\n error: false,\n info: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n wide: false,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AAA8C;AAAA;AAAA,eAE/B;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBACzB,6BAAC,gBAAI;IAAC,KAAK,EAAE;MAAEC,GAAG,EAAE;IAA0B;EAAE,gBAC9C,6BAAC,0BAAY,EAAKD,KAAK,CAAI,eAC3B,6BAAC,0BAAY,eAAKA,KAAK;IAAE,KAAK;EAAA,GAAG,eACjC,6BAAC,0BAAY,eAAKA,KAAK;IAAE,KAAK;EAAA,GAAG,eACjC,6BAAC,0BAAY,eAAKA,KAAK;IAAE,MAAM;EAAA,GAAG,CAC7B;AAAA,CACR;AAAC;AAEFD,KAAK,CAACG,SAAS,GAAG,cAAc;AAEhCH,KAAK,CAACI,IAAI,GAAG;EACXC,QAAQ,EAAE,iGAAiG;EAC3GC,QAAQ,EAAE,IAAI;EACdP,KAAK,EAAE,yBAAyB;EAChCQ,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,KAAK;EACdC,IAAI,EAAE,KAAK;EACX;EACAC,MAAM,EAAE,YAAY;EACpBC,KAAK,EAAE,CAAC;AACV,CAAC;AAEDhB,KAAK,CAACiB,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC"}
@@ -39,6 +39,162 @@ exports[`component:<Notification> inherit:className 1`] = `
39
39
  </DocumentFragment>
40
40
  `;
41
41
 
42
+ exports[`component:<Notification> prop:contrast & inline 1`] = `
43
+ <DocumentFragment>
44
+ <div
45
+ class="view row notification contrast inline"
46
+ >
47
+ <span
48
+ class="icon headline-3"
49
+ >
50
+ <svg
51
+ fill="currentColor"
52
+ height="1em"
53
+ stroke="currentColor"
54
+ stroke-width="0"
55
+ viewBox="0 0 24 24"
56
+ width="1em"
57
+ xmlns="http://www.w3.org/2000/svg"
58
+ >
59
+ <path
60
+ d="M0 0h24v24H0V0z"
61
+ fill="none"
62
+ />
63
+ <path
64
+ 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"
65
+ />
66
+ </svg>
67
+ </span>
68
+ <div
69
+ class="view texts"
70
+ >
71
+ <span
72
+ class="text action"
73
+ >
74
+ Lorem Ipsum...
75
+ </span>
76
+ </div>
77
+ </div>
78
+ </DocumentFragment>
79
+ `;
80
+
81
+ exports[`component:<Notification> prop:contrast & large 1`] = `
82
+ <DocumentFragment>
83
+ <div
84
+ class="view row notification contrast outlined large"
85
+ >
86
+ <span
87
+ class="icon headline-1"
88
+ >
89
+ <svg
90
+ fill="currentColor"
91
+ height="1em"
92
+ stroke="currentColor"
93
+ stroke-width="0"
94
+ viewBox="0 0 24 24"
95
+ width="1em"
96
+ xmlns="http://www.w3.org/2000/svg"
97
+ >
98
+ <path
99
+ d="M0 0h24v24H0V0z"
100
+ fill="none"
101
+ />
102
+ <path
103
+ 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"
104
+ />
105
+ </svg>
106
+ </span>
107
+ <div
108
+ class="view texts"
109
+ >
110
+ <span
111
+ class="text paragraph"
112
+ >
113
+ Lorem Ipsum...
114
+ </span>
115
+ </div>
116
+ </div>
117
+ </DocumentFragment>
118
+ `;
119
+
120
+ exports[`component:<Notification> prop:contrast & small 1`] = `
121
+ <DocumentFragment>
122
+ <div
123
+ class="view row notification contrast outlined small"
124
+ >
125
+ <span
126
+ class="icon paragraph"
127
+ >
128
+ <svg
129
+ fill="currentColor"
130
+ height="1em"
131
+ stroke="currentColor"
132
+ stroke-width="0"
133
+ viewBox="0 0 24 24"
134
+ width="1em"
135
+ xmlns="http://www.w3.org/2000/svg"
136
+ >
137
+ <path
138
+ d="M0 0h24v24H0V0z"
139
+ fill="none"
140
+ />
141
+ <path
142
+ 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"
143
+ />
144
+ </svg>
145
+ </span>
146
+ <div
147
+ class="view texts"
148
+ >
149
+ <span
150
+ class="text small"
151
+ >
152
+ Lorem Ipsum...
153
+ </span>
154
+ </div>
155
+ </div>
156
+ </DocumentFragment>
157
+ `;
158
+
159
+ exports[`component:<Notification> prop:contrast 1`] = `
160
+ <DocumentFragment>
161
+ <div
162
+ class="view row notification contrast outlined"
163
+ >
164
+ <span
165
+ class="icon headline-3"
166
+ >
167
+ <svg
168
+ fill="currentColor"
169
+ height="1em"
170
+ stroke="currentColor"
171
+ stroke-width="0"
172
+ viewBox="0 0 24 24"
173
+ width="1em"
174
+ xmlns="http://www.w3.org/2000/svg"
175
+ >
176
+ <path
177
+ d="M0 0h24v24H0V0z"
178
+ fill="none"
179
+ />
180
+ <path
181
+ 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"
182
+ />
183
+ </svg>
184
+ </span>
185
+ <div
186
+ class="view texts"
187
+ >
188
+ <span
189
+ class="text action"
190
+ >
191
+ Lorem Ipsum...
192
+ </span>
193
+ </div>
194
+ </div>
195
+ </DocumentFragment>
196
+ `;
197
+
42
198
  exports[`component:<Notification> prop:error & inline 1`] = `
43
199
  <DocumentFragment>
44
200
  <div
@@ -735,6 +891,50 @@ exports[`component:<Notification> prop:title 1`] = `
735
891
  `;
736
892
 
737
893
  exports[`component:<Notification> prop:title 2`] = `
894
+ <DocumentFragment>
895
+ <div
896
+ class="view row notification contrast outlined"
897
+ >
898
+ <span
899
+ class="icon headline-3"
900
+ >
901
+ <svg
902
+ fill="currentColor"
903
+ height="1em"
904
+ stroke="currentColor"
905
+ stroke-width="0"
906
+ viewBox="0 0 24 24"
907
+ width="1em"
908
+ xmlns="http://www.w3.org/2000/svg"
909
+ >
910
+ <path
911
+ d="M0 0h24v24H0V0z"
912
+ fill="none"
913
+ />
914
+ <path
915
+ 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"
916
+ />
917
+ </svg>
918
+ </span>
919
+ <div
920
+ class="view texts"
921
+ >
922
+ <span
923
+ class="text bold paragraph"
924
+ >
925
+ Title
926
+ </span>
927
+ <span
928
+ class="text action"
929
+ >
930
+ Lorem Ipsum...
931
+ </span>
932
+ </div>
933
+ </div>
934
+ </DocumentFragment>
935
+ `;
936
+
937
+ exports[`component:<Notification> prop:title 3`] = `
738
938
  <DocumentFragment>
739
939
  <div
740
940
  class="view row notification error outlined"
@@ -778,7 +978,7 @@ exports[`component:<Notification> prop:title 2`] = `
778
978
  </DocumentFragment>
779
979
  `;
780
980
 
781
- exports[`component:<Notification> prop:title 3`] = `
981
+ exports[`component:<Notification> prop:title 4`] = `
782
982
  <DocumentFragment>
783
983
  <div
784
984
  class="view row notification warning outlined"
@@ -818,7 +1018,7 @@ exports[`component:<Notification> prop:title 3`] = `
818
1018
  </DocumentFragment>
819
1019
  `;
820
1020
 
821
- exports[`component:<Notification> prop:title 4`] = `
1021
+ exports[`component:<Notification> prop:title 5`] = `
822
1022
  <DocumentFragment>
823
1023
  <div
824
1024
  class="view row notification success outlined"
@@ -862,7 +1062,7 @@ exports[`component:<Notification> prop:title 4`] = `
862
1062
  </DocumentFragment>
863
1063
  `;
864
1064
 
865
- exports[`component:<Notification> prop:title 5`] = `
1065
+ exports[`component:<Notification> prop:title 6`] = `
866
1066
  <DocumentFragment>
867
1067
  <div
868
1068
  class="view row notification info outlined"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/ui",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "repository": "git@gitlab.com:miraicorp/dev/frontend/ui.git",
5
5
  "author": "JΛVI <hello@soyjavi.com>",
6
6
  "license": "MIT",