@mirai/ui 1.0.68 → 1.0.69

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.
@@ -26,7 +26,7 @@ Story.args = _defineProperty({
26
26
  disabled: false,
27
27
  large: false,
28
28
  small: false,
29
- tag: 'Button',
29
+ tag: 'button',
30
30
  wide: false
31
31
  }, 'data-testid', 'test-story');
32
32
  Story.argTypes = {
@@ -1 +1 @@
1
- {"version":3,"file":"Action.stories.js","names":["title","Story","props","storyName","args","children","disabled","large","small","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Action/Action.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Action } from './Action';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Action {...props} />;\n\nStory.storyName = 'Action';\n\nStory.args = {\n children: 'children',\n disabled: false,\n large: false,\n small: false,\n tag: 'Button',\n wide: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEnB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,cAAM,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEtDD,KAAK,CAACE,SAAS,GAAG,QAAQ;AAE1BF,KAAK,CAACG,IAAI;EACRC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE,QAAQ;EACbC,IAAI,EAAE;AAAK,GACV,aAAa,EAAG,YAAY,CAC9B;AAEDT,KAAK,CAACU,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU,CAAC;EAC9BC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAU,CAAC;EAC9BE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAU;AAC/B,CAAC"}
1
+ {"version":3,"file":"Action.stories.js","names":["title","Story","props","storyName","args","children","disabled","large","small","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Action/Action.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Action } from './Action';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Action {...props} />;\n\nStory.storyName = 'Action';\n\nStory.args = {\n children: 'children',\n disabled: false,\n large: false,\n small: false,\n tag: 'button',\n wide: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEnB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,cAAM,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEtDD,KAAK,CAACE,SAAS,GAAG,QAAQ;AAE1BF,KAAK,CAACG,IAAI;EACRC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE,QAAQ;EACbC,IAAI,EAAE;AAAK,GACV,aAAa,EAAG,YAAY,CAC9B;AAEDT,KAAK,CAACU,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU,CAAC;EAC9BC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAU,CAAC;EAC9BE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAU;AAC/B,CAAC"}
@@ -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", "small", "success", "warning", "onClose"];
12
+ var _excluded = ["children", "error", "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; }
@@ -19,6 +19,7 @@ var Notification = function Notification(_ref) {
19
19
  error = _ref.error,
20
20
  _ref$inline = _ref.inline,
21
21
  inline = _ref$inline === void 0 ? false : _ref$inline,
22
+ large = _ref.large,
22
23
  small = _ref.small,
23
24
  success = _ref.success,
24
25
  warning = _ref.warning,
@@ -26,20 +27,22 @@ var Notification = function Notification(_ref) {
26
27
  others = _objectWithoutProperties(_ref, _excluded);
27
28
  return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
28
29
  row: true,
29
- 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, small && _NotificationModule.default.small, others.className)
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)
30
31
  }), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
32
+ headline: large,
33
+ level: large ? 1 : undefined,
34
+ paragraph: small,
31
35
  value: (0, _helpers.getIconState)({
32
36
  error: error,
33
37
  success: success,
34
38
  warning: warning
35
39
  }),
36
- paragraph: small,
37
- className: (0, _helpers.styles)(_NotificationModule.default.icon, small && _NotificationModule.default.small)
40
+ className: _NotificationModule.default.icon
38
41
  }), /*#__PURE__*/_react.default.createElement(_primitives.Text, {
39
42
  small: small,
40
43
  className: (0, _helpers.styles)(_NotificationModule.default.text, error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : undefined)
41
- }, children), onClose && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
42
- className: (0, _helpers.styles)(_NotificationModule.default.pressable, _NotificationModule.default.icon, small && _NotificationModule.default.small),
44
+ }, children), !large && onClose && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
45
+ className: (0, _helpers.styles)(_NotificationModule.default.pressable, _NotificationModule.default.icon),
43
46
  onPress: onClose
44
47
  }, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
45
48
  value: _primitives.ICON.CLOSE,
@@ -52,6 +55,7 @@ Notification.propTypes = {
52
55
  children: _propTypes.default.string.isRequired,
53
56
  error: _propTypes.default.bool,
54
57
  inline: _propTypes.default.bool,
58
+ large: _propTypes.default.bool,
55
59
  small: _propTypes.default.bool,
56
60
  success: _propTypes.default.bool,
57
61
  warning: _propTypes.default.bool,
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","names":["Notification","children","error","inline","small","success","warning","onClose","others","styles","style","notification","undefined","outlined","className","getIconState","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;AAA8C;AAAA;AAAA;AAAA;AAAA;AAE9C,IAAMA,YAAY,GAAG,SAAfA,YAAY;EAAA,IAAMC,QAAQ,QAARA,QAAQ;IAAEC,KAAK,QAALA,KAAK;IAAA,mBAAEC,MAAM;IAANA,MAAM,4BAAG,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAEC,OAAO,QAAPA,OAAO;IAAEC,OAAO,QAAPA,OAAO;IAAEC,OAAO,QAAPA,OAAO;IAAKC,MAAM;EAAA,oBAClG,6BAAC,gBAAI,eACCA,MAAM;IACV,GAAG;IACH,SAAS,EAAE,IAAAC,eAAM,EACfC,2BAAK,CAACC,YAAY,EAClBT,KAAK,GAAGQ,2BAAK,CAACR,KAAK,GAAGI,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,MAAM,CAACC,UAAU;EACrCvB,KAAK,EAAEqB,kBAAS,CAACG,IAAI;EACrBvB,MAAM,EAAEoB,kBAAS,CAACG,IAAI;EACtBtB,KAAK,EAAEmB,kBAAS,CAACG,IAAI;EACrBrB,OAAO,EAAEkB,kBAAS,CAACG,IAAI;EACvBpB,OAAO,EAAEiB,kBAAS,CAACG,IAAI;EACvBnB,OAAO,EAAEgB,kBAAS,CAACI;AACrB,CAAC"}
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","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, large, 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 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.string.isRequired,\n error: 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"],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AAGS,2BAAK,CAACT,KAAK,GAAGK,OAAO,GAAGI,2BAAK,CAACJ,OAAO,GAAGD,OAAO,GAAGK,2BAAK,CAACL,OAAO,GAAGO,SAAS;EACnF,GAEDZ,QAAQ,CACJ,EACN,CAACG,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;AAEFL,YAAY,CAACsB,WAAW,GAAG,wBAAwB;AAEnDtB,YAAY,CAACuB,SAAS,GAAG;EACvBtB,QAAQ,EAAEuB,kBAAS,CAACC,MAAM,CAACC,UAAU;EACrCxB,KAAK,EAAEsB,kBAAS,CAACG,IAAI;EACrBxB,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"}
@@ -11,6 +11,11 @@
11
11
  width: 100%;
12
12
  }
13
13
 
14
+ .notification.large {
15
+ flex-direction: column;
16
+ align-items: center;
17
+ }
18
+
14
19
  .notification.outlined.small {
15
20
  padding: var(--mirai-ui-notification-padding-small);
16
21
  }
@@ -46,24 +51,43 @@
46
51
  color: var(--mirai-ui-warning);
47
52
  }
48
53
 
49
- .notification:not(.small) .text {
54
+ .notification:not(.large):not(.small) .text {
50
55
  margin-left: var(--mirai-ui-notification-padding);
51
56
  margin-right: var(--mirai-ui-notification-padding);
52
57
  }
53
58
 
59
+ .notification.large .text {
60
+ margin-bottom: var(--mirai-ui-notification-padding);
61
+ margin-top: var(--mirai-ui-notification-padding);
62
+ }
63
+
54
64
  .notification.small .text {
55
65
  margin-left: var(--mirai-ui-notification-padding-small);
56
66
  margin-right: var(--mirai-ui-notification-padding-small);
57
67
  }
58
68
 
59
- .outlined .text {
69
+ .notification.outlined .text {
60
70
  flex: 1;
61
71
  }
62
72
 
63
- .notification .icon {
73
+ .notification.large:not(.outlined) .text {
74
+ color: var(--mirai-ui-content);
75
+ }
76
+
77
+ .notification:not(.large):not(.small) .icon {
64
78
  margin-top: calc(calc(var(--mirai-ui-line-height-headline-3) - var(--mirai-ui-font-size-headline-3)) / 2);
65
79
  }
66
80
 
67
- .notification .icon.small {
81
+ .notification.large .icon {
82
+ font-size: var(--mirai-ui-space-XL);
83
+ line-height: var(--mirai-ui-space-XL);
84
+ height: var(--mirai-ui-space-XL);
85
+ width: var(--mirai-ui-space-XL);
86
+ }
87
+
88
+ .notification.small .icon {
68
89
  margin-top: calc(calc(var(--mirai-ui-line-height-small) - var(--mirai-ui-font-size-paragraph)) / 2);
69
90
  }
91
+
92
+ .notification .icon.small {
93
+ }
@@ -25,6 +25,7 @@ Story.args = _defineProperty({
25
25
  children: 'children',
26
26
  error: false,
27
27
  inline: false,
28
+ large: false,
28
29
  small: false,
29
30
  success: false,
30
31
  warning: false
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","inline","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 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,OAAO,EAAE,KAAK;EACdC,OAAO,EAAE;AAAK,GACb,aAAa,EAAG,YAAY,CAC9B;AAEDT,KAAK,CAACU,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC"}
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;AAEDV,KAAK,CAACW,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC"}
@@ -105,6 +105,76 @@ exports[`component:<Notification> prop:inline 1`] = `
105
105
  </DocumentFragment>
106
106
  `;
107
107
 
108
+ exports[`component:<Notification> prop:large & prop:inline 1`] = `
109
+ <DocumentFragment>
110
+ <div
111
+ class="view row notification inline inline 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:large 1`] = `
144
+ <DocumentFragment>
145
+ <div
146
+ class="view row notification outlined large"
147
+ >
148
+ <span
149
+ class="icon headline-1 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 paragraph text"
171
+ >
172
+ Lorem Ipsum...
173
+ </span>
174
+ </div>
175
+ </DocumentFragment>
176
+ `;
177
+
108
178
  exports[`component:<Notification> prop:onClose 1`] = `
109
179
  <DocumentFragment>
110
180
  <div
@@ -171,7 +241,7 @@ exports[`component:<Notification> prop:small & prop:inline 1`] = `
171
241
  class="view row notification inline inline small"
172
242
  >
173
243
  <span
174
- class="icon paragraph icon small"
244
+ class="icon paragraph icon"
175
245
  >
176
246
  <svg
177
247
  fill="currentColor"
@@ -206,7 +276,7 @@ exports[`component:<Notification> prop:small 1`] = `
206
276
  class="view row notification outlined small"
207
277
  >
208
278
  <span
209
- class="icon paragraph icon small"
279
+ class="icon paragraph icon"
210
280
  >
211
281
  <svg
212
282
  fill="currentColor"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/ui",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "repository": "git@gitlab.com:miraicorp/dev/frontend/ui.git",
5
5
  "author": "JΛVI <hello@soyjavi.com>",
6
6
  "license": "MIT",