@mirai/ui 1.0.67 → 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"}
@@ -11,6 +11,7 @@
11
11
  left: 0;
12
12
  margin: calc(calc(var(--mirai-ui-checkbox-size) - var(--mirai-ui-input-text-icon)) / 2);
13
13
  position: absolute;
14
+ pointer-events: none;
14
15
  top: 0;
15
16
  }
16
17
 
@@ -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,MA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hB;EAAM,EAAG,CAEhD,CACI;AAAA,CACR;AAAC;AAEFJ,YAAY,CAACqB,WAAW,GAAG,wBAAwB;AAEnDrB,YAAY,CAACsB,SAAS,GAAG;EACvBrB,QAAQ,EAAEsB,kBAAS,CAACC,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"],"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,KAAK,QAALA,KAAK;IAAEC,OAAO,QAAPA,OAAO;IAAEC,OAAO,QAAPA,OAAO;IAAEC,OAAO,QAAPA,OAAO;IAAKC,MAAM;EAAA,oBACzG,6BAAC,gBAAI,eACCA,MAAM;IACV,GAAG;IACH,SAAS,EAAE,IAAAC,eAAM,EACfC,2BAAK,CAACC,YAAY,EAClBV,KAAK,GAAGS,2BAAK,CAACT,KAAK,GAAGK,OAAO,GAAGI,2BAAK,CAACJ,OAAO,GAAGD,OAAO,GAAGK,2BAAK,CAACL,OAAO,GAAGO,SAAS,EACnFV,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;MAAEd,KAAK,EAALA,KAAK;MAAEI,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,EACVhB,KAAK,GAAGS,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"
@@ -19,6 +19,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
19
19
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(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
+ var CUSTOM_EVENT_TYPES = ['button', 'checkbox', 'input', 'radio', 'submit'];
22
23
  var TableRow = function TableRow(_ref) {
23
24
  var dataSource = _ref.dataSource,
24
25
  schema = _ref.schema,
@@ -33,28 +34,31 @@ var TableRow = function TableRow(_ref) {
33
34
  var fields = Object.keys(schema);
34
35
  var tag = isHead ? 'th' : 'td';
35
36
  var testId = others['data-testid'];
37
+ var handlePress = function handlePress(field, event) {
38
+ var _event$target = event.target;
39
+ _event$target = _event$target === void 0 ? {} : _event$target;
40
+ var type = _event$target.type;
41
+ if (CUSTOM_EVENT_TYPES.includes(type)) return;
42
+ isHead ? onSort(field) : onPress && onPress(dataSource, event);
43
+ };
36
44
  return /*#__PURE__*/_react.default.createElement("tr", _extends({}, others, {
37
45
  role: "tr",
38
46
  className: (0, _helpers.styles)(selected && _TableModule.default.selected, onPress && _TableModule.default.onPress)
39
47
  }), fields.map(function (field, index) {
40
48
  var _React$createElement;
41
- return /*#__PURE__*/_react.default.createElement(tag, (_React$createElement = {}, _defineProperty(_React$createElement, 'data-testid', testId ? "".concat(testId, "-").concat(field) : undefined), _defineProperty(_React$createElement, "key", field), _defineProperty(_React$createElement, "onClick", !isHead && onPress ? function () {
42
- return onPress(dataSource);
43
- } : undefined), _React$createElement), /*#__PURE__*/_react.default.createElement(_primitives.View, {
49
+ return /*#__PURE__*/_react.default.createElement(tag, (_React$createElement = {}, _defineProperty(_React$createElement, 'data-testid', testId ? "".concat(testId, "-").concat(field) : undefined), _defineProperty(_React$createElement, "key", field), _defineProperty(_React$createElement, "onClick", function onClick(event) {
50
+ return handlePress(field, event);
51
+ }), _React$createElement), /*#__PURE__*/_react.default.createElement(_primitives.View, {
44
52
  row: true,
45
- tag: "span",
46
- className: isHead && _TableModule.default.head,
47
- onClick: isHead ? function () {
48
- return onSort(field);
49
- } : undefined
53
+ tag: "span"
50
54
  }, onSelect && index === 0 && /*#__PURE__*/_react.default.createElement(_InputOption.InputOption, {
51
55
  checked: selected,
52
56
  "data-testid": testId ? "".concat(testId, "-checkbox") : undefined,
53
57
  disabled: isHead,
54
58
  name: "checkbox",
55
59
  className: _TableModule.default.checkbox,
56
- onChange: function onChange() {
57
- return onSelect(dataSource);
60
+ onChange: function onChange(event) {
61
+ return onSelect(dataSource, event);
58
62
  }
59
63
  }), isHead ? schema[field].label : dataSource[field], isHead && onSort && /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
60
64
  value: sort[field] ? _primitives.ICON.DOWN : _primitives.ICON.UP,
@@ -1 +1 @@
1
- {"version":3,"file":"Table.Row.js","names":["TableRow","dataSource","schema","selected","sort","onPress","onSelect","onSort","others","isHead","undefined","fields","Object","keys","tag","testId","styles","style","map","field","index","React","createElement","head","checkbox","label","ICON","DOWN","UP","hideIcon","displayName","propTypes","PropTypes","shape","isRequired","bool","func"],"sources":["../../../src/components/Table/Table.Row.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, ICON, View } from '../../primitives';\nimport { InputOption } from '../InputOption';\nimport style from './Table.module.css';\n\nconst TableRow = ({ dataSource, schema, selected, sort = {}, onPress, onSelect, onSort, ...others }) => {\n const isHead = dataSource === undefined;\n const fields = Object.keys(schema);\n const tag = isHead ? 'th' : 'td';\n const { ['data-testid']: testId } = others;\n\n return (\n <tr {...others} role=\"tr\" className={styles(selected && style.selected, onPress && style.onPress)}>\n {fields.map((field, index) =>\n React.createElement(\n tag,\n {\n ['data-testid']: testId ? `${testId}-${field}` : undefined,\n key: field,\n onClick: !isHead && onPress ? () => onPress(dataSource) : undefined,\n },\n <View row tag=\"span\" className={isHead && style.head} onClick={isHead ? () => onSort(field) : undefined}>\n {onSelect && index === 0 && (\n <InputOption\n checked={selected}\n data-testid={testId ? `${testId}-checkbox` : undefined}\n disabled={isHead}\n name=\"checkbox\"\n className={style.checkbox}\n onChange={() => onSelect(dataSource)}\n />\n )}\n {isHead ? schema[field].label : dataSource[field]}\n {isHead && onSort && (\n <Icon value={sort[field] ? ICON.DOWN : ICON.UP} className={sort[field] === undefined && style.hideIcon} />\n )}\n </View>,\n ),\n )}\n </tr>\n );\n};\n\nTableRow.displayName = 'Table:Row';\n\nTableRow.propTypes = {\n dataSource: PropTypes.shape({}),\n schema: PropTypes.shape({}).isRequired,\n selected: PropTypes.bool,\n sort: PropTypes.shape({}),\n onPress: PropTypes.func,\n onSelect: PropTypes.func,\n onSort: PropTypes.func,\n};\n\nexport { TableRow };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEvC,IAAMA,QAAQ,GAAG,SAAXA,QAAQ,OAA0F;EAAA,IAApFC,UAAU,QAAVA,UAAU;IAAEC,MAAM,QAANA,MAAM;IAAEC,QAAQ,QAARA,QAAQ;IAAA,iBAAEC,IAAI;IAAJA,IAAI,0BAAG,CAAC,CAAC;IAAEC,OAAO,QAAPA,OAAO;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,MAAM,QAANA,MAAM;IAAKC,MAAM;EAC/F,IAAMC,MAAM,GAAGR,UAAU,KAAKS,SAAS;EACvC,IAAMC,MAAM,GAAGC,MAAM,CAACC,IAAI,CAACX,MAAM,CAAC;EAClC,IAAMY,GAAG,GAAGL,MAAM,GAAG,IAAI,GAAG,IAAI;EAChC,IAAyBM,MAAM,GAAKP,MAAM,CAAjC,aAAa;EAEtB,oBACE,gDAAQA,MAAM;IAAE,IAAI,EAAC,IAA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I,CACR;EAAA,EACF,CACE;AAET,CAAC;AAAC;AAEF7B,QAAQ,CAAC8B,WAAW,GAAG,WAAW;AAElC9B,QAAQ,CAAC+B,SAAS,GAAG;EACnB9B,UAAU,EAAE+B,kBAAS,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAC/B/B,MAAM,EAAE8B,kBAAS,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACtC/B,QAAQ,EAAE6B,kBAAS,CAACG,IAAI;EACxB/B,IAAI,EAAE4B,kBAAS,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACzB5B,OAAO,EAAE2B,kBAAS,CAACI,IAAI;EACvB9B,QAAQ,EAAE0B,kBAAS,CAACI,IAAI;EACxB7B,MAAM,EAAEyB,kBAAS,CAACI;AACpB,CAAC"}
1
+ {"version":3,"file":"Table.Row.js","names":["CUSTOM_EVENT_TYPES","TableRow","dataSource","schema","selected","sort","onPress","onSelect","onSort","others","isHead","undefined","fields","Object","keys","tag","testId","handlePress","field","event","target","type","includes","styles","style","map","index","React","createElement","checkbox","label","ICON","DOWN","UP","hideIcon","displayName","propTypes","PropTypes","shape","isRequired","bool","func"],"sources":["../../../src/components/Table/Table.Row.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, ICON, View } from '../../primitives';\nimport { InputOption } from '../InputOption';\nimport style from './Table.module.css';\n\nconst CUSTOM_EVENT_TYPES = ['button', 'checkbox', 'input', 'radio', 'submit'];\n\nconst TableRow = ({ dataSource, schema, selected, sort = {}, onPress, onSelect, onSort, ...others }) => {\n const isHead = dataSource === undefined;\n const fields = Object.keys(schema);\n const tag = isHead ? 'th' : 'td';\n const { ['data-testid']: testId } = others;\n\n const handlePress = (field, event) => {\n const { target: { type } = {} } = event;\n if (CUSTOM_EVENT_TYPES.includes(type)) return;\n\n isHead ? onSort(field) : onPress && onPress(dataSource, event);\n };\n\n return (\n <tr {...others} role=\"tr\" className={styles(selected && style.selected, onPress && style.onPress)}>\n {fields.map((field, index) =>\n React.createElement(\n tag,\n {\n ['data-testid']: testId ? `${testId}-${field}` : undefined,\n key: field,\n onClick: (event) => handlePress(field, event),\n },\n <View row tag=\"span\">\n {onSelect && index === 0 && (\n <InputOption\n checked={selected}\n data-testid={testId ? `${testId}-checkbox` : undefined}\n disabled={isHead}\n name=\"checkbox\"\n className={style.checkbox}\n onChange={(event) => onSelect(dataSource, event)}\n />\n )}\n {isHead ? schema[field].label : dataSource[field]}\n {isHead && onSort && (\n <Icon value={sort[field] ? ICON.DOWN : ICON.UP} className={sort[field] === undefined && style.hideIcon} />\n )}\n </View>,\n ),\n )}\n </tr>\n );\n};\n\nTableRow.displayName = 'Table:Row';\n\nTableRow.propTypes = {\n dataSource: PropTypes.shape({}),\n schema: PropTypes.shape({}).isRequired,\n selected: PropTypes.bool,\n sort: PropTypes.shape({}),\n onPress: PropTypes.func,\n onSelect: PropTypes.func,\n onSort: PropTypes.func,\n};\n\nexport { TableRow };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEvC,IAAMA,kBAAkB,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;AAE7E,IAAMC,QAAQ,GAAG,SAAXA,QAAQ,OAA0F;EAAA,IAApFC,UAAU,QAAVA,UAAU;IAAEC,MAAM,QAANA,MAAM;IAAEC,QAAQ,QAARA,QAAQ;IAAA,iBAAEC,IAAI;IAAJA,IAAI,0BAAG,CAAC,CAAC;IAAEC,OAAO,QAAPA,OAAO;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,MAAM,QAANA,MAAM;IAAKC,MAAM;EAC/F,IAAMC,MAAM,GAAGR,UAAU,KAAKS,SAAS;EACvC,IAAMC,MAAM,GAAGC,MAAM,CAACC,IAAI,CAACX,MAAM,CAAC;EAClC,IAA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U,EAAEiB,KAAK,CAAC;MAAA;IAAC,EAEpD,EACAT,MAAM,GAAGP,MAAM,CAACe,KAAK,CAAC,CAACY,KAAK,GAAG5B,UAAU,CAACgB,KAAK,CAAC,EAChDR,MAAM,IAAIF,MAAM,iBACf,6BAAC,gBAAI;MAAC,KAAK,EAAEH,IAAI,CAACa,KAAK,CAAC,GAAGa,gBAAI,CAACC,IAAI,GAAGD,gBAAI,CAACE,EAAG;MAAC,SAAS,EAAE5B,IAAI,CAACa,KAAK,CAAC,KAAKP,SAAS,IAAIa,oBAAK,CAACU;IAAS,EACxG,CACI,CACR;EAAA,EACF,CACE;AAET,CAAC;AAAC;AAEFjC,QAAQ,CAACkC,WAAW,GAAG,WAAW;AAElClC,QAAQ,CAACmC,SAAS,GAAG;EACnBlC,UAAU,EAAEmC,kBAAS,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAC/BnC,MAAM,EAAEkC,kBAAS,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACtCnC,QAAQ,EAAEiC,kBAAS,CAACG,IAAI;EACxBnC,IAAI,EAAEgC,kBAAS,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACzBhC,OAAO,EAAE+B,kBAAS,CAACI,IAAI;EACvBlC,QAAQ,EAAE8B,kBAAS,CAACI,IAAI;EACxBjC,MAAM,EAAE6B,kBAAS,CAACI;AACpB,CAAC"}
@@ -12,7 +12,7 @@ exports[`component:<Table> inherit:className 1`] = `
12
12
  >
13
13
  <th>
14
14
  <span
15
- class="view row head"
15
+ class="view row"
16
16
  >
17
17
  User Name
18
18
  <span
@@ -40,7 +40,7 @@ exports[`component:<Table> inherit:className 1`] = `
40
40
  </th>
41
41
  <th>
42
42
  <span
43
- class="view row head"
43
+ class="view row"
44
44
  >
45
45
  Email
46
46
  <span
@@ -68,7 +68,7 @@ exports[`component:<Table> inherit:className 1`] = `
68
68
  </th>
69
69
  <th>
70
70
  <span
71
- class="view row head"
71
+ class="view row"
72
72
  >
73
73
  Year
74
74
  <span
@@ -96,7 +96,7 @@ exports[`component:<Table> inherit:className 1`] = `
96
96
  </th>
97
97
  <th>
98
98
  <span
99
- class="view row head"
99
+ class="view row"
100
100
  >
101
101
  Twitter
102
102
  <span
@@ -124,7 +124,7 @@ exports[`component:<Table> inherit:className 1`] = `
124
124
  </th>
125
125
  <th>
126
126
  <span
127
- class="view row head"
127
+ class="view row"
128
128
  >
129
129
  Action
130
130
  <span
@@ -429,7 +429,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
429
429
  >
430
430
  <th>
431
431
  <span
432
- class="view row head"
432
+ class="view row"
433
433
  >
434
434
  <button
435
435
  class="pressable inputOption checkbox"
@@ -473,7 +473,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
473
473
  </th>
474
474
  <th>
475
475
  <span
476
- class="view row head"
476
+ class="view row"
477
477
  >
478
478
  Email
479
479
  <span
@@ -501,7 +501,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
501
501
  </th>
502
502
  <th>
503
503
  <span
504
- class="view row head"
504
+ class="view row"
505
505
  >
506
506
  Year
507
507
  <span
@@ -529,7 +529,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
529
529
  </th>
530
530
  <th>
531
531
  <span
532
- class="view row head"
532
+ class="view row"
533
533
  >
534
534
  Twitter
535
535
  <span
@@ -557,7 +557,7 @@ exports[`component:<Table> prop:onSelect 1`] = `
557
557
  </th>
558
558
  <th>
559
559
  <span
560
- class="view row head"
560
+ class="view row"
561
561
  >
562
562
  Action
563
563
  <span
@@ -1050,7 +1050,7 @@ exports[`component:<Table> prop:search 1`] = `
1050
1050
  >
1051
1051
  <th>
1052
1052
  <span
1053
- class="view row head"
1053
+ class="view row"
1054
1054
  >
1055
1055
  User Name
1056
1056
  <span
@@ -1078,7 +1078,7 @@ exports[`component:<Table> prop:search 1`] = `
1078
1078
  </th>
1079
1079
  <th>
1080
1080
  <span
1081
- class="view row head"
1081
+ class="view row"
1082
1082
  >
1083
1083
  Email
1084
1084
  <span
@@ -1106,7 +1106,7 @@ exports[`component:<Table> prop:search 1`] = `
1106
1106
  </th>
1107
1107
  <th>
1108
1108
  <span
1109
- class="view row head"
1109
+ class="view row"
1110
1110
  >
1111
1111
  Year
1112
1112
  <span
@@ -1134,7 +1134,7 @@ exports[`component:<Table> prop:search 1`] = `
1134
1134
  </th>
1135
1135
  <th>
1136
1136
  <span
1137
- class="view row head"
1137
+ class="view row"
1138
1138
  >
1139
1139
  Twitter
1140
1140
  <span
@@ -1162,7 +1162,7 @@ exports[`component:<Table> prop:search 1`] = `
1162
1162
  </th>
1163
1163
  <th>
1164
1164
  <span
1165
- class="view row head"
1165
+ class="view row"
1166
1166
  >
1167
1167
  Action
1168
1168
  <span
@@ -1246,7 +1246,7 @@ exports[`component:<Table> renders 1`] = `
1246
1246
  >
1247
1247
  <th>
1248
1248
  <span
1249
- class="view row head"
1249
+ class="view row"
1250
1250
  >
1251
1251
  User Name
1252
1252
  <span
@@ -1274,7 +1274,7 @@ exports[`component:<Table> renders 1`] = `
1274
1274
  </th>
1275
1275
  <th>
1276
1276
  <span
1277
- class="view row head"
1277
+ class="view row"
1278
1278
  >
1279
1279
  Email
1280
1280
  <span
@@ -1302,7 +1302,7 @@ exports[`component:<Table> renders 1`] = `
1302
1302
  </th>
1303
1303
  <th>
1304
1304
  <span
1305
- class="view row head"
1305
+ class="view row"
1306
1306
  >
1307
1307
  Year
1308
1308
  <span
@@ -1330,7 +1330,7 @@ exports[`component:<Table> renders 1`] = `
1330
1330
  </th>
1331
1331
  <th>
1332
1332
  <span
1333
- class="view row head"
1333
+ class="view row"
1334
1334
  >
1335
1335
  Twitter
1336
1336
  <span
@@ -1358,7 +1358,7 @@ exports[`component:<Table> renders 1`] = `
1358
1358
  </th>
1359
1359
  <th>
1360
1360
  <span
1361
- class="view row head"
1361
+ class="view row"
1362
1362
  >
1363
1363
  Action
1364
1364
  <span
@@ -1663,7 +1663,7 @@ exports[`component:<Table> testID 1`] = `
1663
1663
  >
1664
1664
  <th>
1665
1665
  <span
1666
- class="view row head"
1666
+ class="view row"
1667
1667
  >
1668
1668
  User Name
1669
1669
  <span
@@ -1691,7 +1691,7 @@ exports[`component:<Table> testID 1`] = `
1691
1691
  </th>
1692
1692
  <th>
1693
1693
  <span
1694
- class="view row head"
1694
+ class="view row"
1695
1695
  >
1696
1696
  Email
1697
1697
  <span
@@ -1719,7 +1719,7 @@ exports[`component:<Table> testID 1`] = `
1719
1719
  </th>
1720
1720
  <th>
1721
1721
  <span
1722
- class="view row head"
1722
+ class="view row"
1723
1723
  >
1724
1724
  Year
1725
1725
  <span
@@ -1747,7 +1747,7 @@ exports[`component:<Table> testID 1`] = `
1747
1747
  </th>
1748
1748
  <th>
1749
1749
  <span
1750
- class="view row head"
1750
+ class="view row"
1751
1751
  >
1752
1752
  Twitter
1753
1753
  <span
@@ -1775,7 +1775,7 @@ exports[`component:<Table> testID 1`] = `
1775
1775
  </th>
1776
1776
  <th>
1777
1777
  <span
1778
- class="view row head"
1778
+ class="view row"
1779
1779
  >
1780
1780
  Action
1781
1781
  <span
@@ -1,5 +1,4 @@
1
1
  .checkbox {
2
- cursor: pointer;
3
2
  height: var(--mirai-ui-checkbox-size);
4
3
  position: relative;
5
4
  width: var(--mirai-ui-checkbox-size);
@@ -10,6 +9,7 @@
10
9
  border: solid var(--mirai-ui-border-width) var(--mirai-ui-checkbox-border-color);
11
10
  border-radius: var(--mirai-ui-checkbox-border-radius);
12
11
  box-sizing: border-box;
12
+ cursor: pointer;
13
13
  height: var(--mirai-ui-checkbox-size);
14
14
  margin: 0;
15
15
  outline: none;
@@ -1,5 +1,4 @@
1
1
  .radio {
2
- cursor: pointer;
3
2
  position: relative;
4
3
  height: var(--mirai-ui-radio-size);
5
4
  width: var(--mirai-ui-radio-size);
@@ -10,6 +9,7 @@
10
9
  border: solid var(--mirai-ui-border-width) var(--mirai-ui-radio-border);
11
10
  border-radius: 50%;
12
11
  box-sizing: border-box;
12
+ cursor: pointer;
13
13
  height: var(--mirai-ui-radio-size);
14
14
  margin: 0;
15
15
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/ui",
3
- "version": "1.0.67",
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",