@mirai/ui 1.0.62 → 1.0.64

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.
Files changed (77) hide show
  1. package/README.md +8 -1
  2. package/build/components/Button/Button.stories.js +4 -2
  3. package/build/components/Button/Button.stories.js.map +1 -1
  4. package/build/components/Calendar/Calendar.stories.js +2 -2
  5. package/build/components/Calendar/Calendar.stories.js.map +1 -1
  6. package/build/components/Form/Form.stories.js +4 -2
  7. package/build/components/Form/Form.stories.js.map +1 -1
  8. package/build/components/InputDate/InputDate.js +28 -12
  9. package/build/components/InputDate/InputDate.js.map +1 -1
  10. package/build/components/InputDate/InputDate.module.css +9 -16
  11. package/build/components/InputDate/InputDate.stories.js +15 -3
  12. package/build/components/InputDate/InputDate.stories.js.map +1 -1
  13. package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +144 -167
  14. package/build/components/InputNumber/InputNumber.stories.js +4 -2
  15. package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
  16. package/build/components/InputOption/InputOption.js +1 -0
  17. package/build/components/InputOption/InputOption.js.map +1 -1
  18. package/build/components/InputOption/InputOption.stories.js +4 -2
  19. package/build/components/InputOption/InputOption.stories.js.map +1 -1
  20. package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +3 -3
  21. package/build/components/InputSelect/InputSelect.js +17 -7
  22. package/build/components/InputSelect/InputSelect.js.map +1 -1
  23. package/build/components/InputSelect/InputSelect.stories.js +4 -2
  24. package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
  25. package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +217 -163
  26. package/build/components/InputText/InputText.js +13 -10
  27. package/build/components/InputText/InputText.js.map +1 -1
  28. package/build/components/InputText/InputText.module.css +11 -11
  29. package/build/components/InputText/InputText.stories.js +5 -2
  30. package/build/components/InputText/InputText.stories.js.map +1 -1
  31. package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +108 -88
  32. package/build/components/Menu/Menu.js +37 -15
  33. package/build/components/Menu/Menu.js.map +1 -1
  34. package/build/components/Menu/Menu.module.css +3 -0
  35. package/build/components/Menu/Menu.stories.js +7 -4
  36. package/build/components/Menu/Menu.stories.js.map +1 -1
  37. package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +36 -19
  38. package/build/components/Modal/Modal.js +5 -2
  39. package/build/components/Modal/Modal.js.map +1 -1
  40. package/build/components/Modal/Modal.module.css +9 -20
  41. package/build/components/Modal/Modal.stories.js +5 -2
  42. package/build/components/Modal/Modal.stories.js.map +1 -1
  43. package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +24 -12
  44. package/build/components/Notification/Notification.stories.js +4 -2
  45. package/build/components/Notification/Notification.stories.js.map +1 -1
  46. package/build/components/Table/Table.stories.js +4 -2
  47. package/build/components/Table/Table.stories.js.map +1 -1
  48. package/build/components/Tooltip/Tooltip.stories.js +4 -2
  49. package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
  50. package/build/hooks/useDevice.js +1 -1
  51. package/build/hooks/useDevice.js.map +1 -1
  52. package/build/primitives/Checkbox/Checkbox.stories.js +4 -2
  53. package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
  54. package/build/primitives/Icon/Icon.stories.js +4 -2
  55. package/build/primitives/Icon/Icon.stories.js.map +1 -1
  56. package/build/primitives/Input/Input.stories.js +4 -2
  57. package/build/primitives/Input/Input.stories.js.map +1 -1
  58. package/build/primitives/Layer/Layer.stories.js +4 -2
  59. package/build/primitives/Layer/Layer.stories.js.map +1 -1
  60. package/build/primitives/Pressable/Pressable.stories.js +4 -2
  61. package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
  62. package/build/primitives/Radio/Radio.stories.js +4 -2
  63. package/build/primitives/Radio/Radio.stories.js.map +1 -1
  64. package/build/primitives/ScrollView/ScrollView.stories.js +4 -2
  65. package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
  66. package/build/primitives/Select/Select.stories.js +4 -2
  67. package/build/primitives/Select/Select.stories.js.map +1 -1
  68. package/build/primitives/Switch/Switch.stories.js +4 -2
  69. package/build/primitives/Switch/Switch.stories.js.map +1 -1
  70. package/build/primitives/Text/Text.stories.js +4 -2
  71. package/build/primitives/Text/Text.stories.js.map +1 -1
  72. package/build/primitives/View/View.stories.js +4 -2
  73. package/build/primitives/View/View.stories.js.map +1 -1
  74. package/build/theme/default.theme.css +1 -1
  75. package/build/theme/theme.stories.js +2 -0
  76. package/build/theme/theme.stories.js.map +1 -0
  77. package/package.json +1 -1
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
18
20
  var _default = {
19
21
  title: 'Primitives'
20
22
  };
@@ -26,11 +28,11 @@ var Story = function Story(props) {
26
28
 
27
29
  exports.Story = Story;
28
30
  Story.storyName = 'Switch';
29
- Story.args = {
31
+ Story.args = _defineProperty({
30
32
  checked: false,
31
33
  disabled: false,
32
34
  name: 'Switch'
33
- };
35
+ }, 'data-testid', 'test-story');
34
36
  Story.argTypes = {
35
37
  onChange: {
36
38
  action: 'onChange'
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.stories.js","names":["title","Story","props","storyName","args","checked","disabled","name","argTypes","onChange","action"],"sources":["../../../src/primitives/Switch/Switch.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Switch } from './Switch';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Switch {...props} />;\n\nStory.storyName = 'Switch';\n\nStory.args = {\n checked: false,\n disabled: false,\n name: 'Switch',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,OAAO,EAAE,KADE;EAEXC,QAAQ,EAAE,KAFC;EAGXC,IAAI,EAAE;AAHK,CAAb;AAMAN,KAAK,CAACO,QAAN,GAAiB;EACfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV;AADK,CAAjB"}
1
+ {"version":3,"file":"Switch.stories.js","names":["title","Story","props","storyName","args","checked","disabled","name","argTypes","onChange","action"],"sources":["../../../src/primitives/Switch/Switch.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Switch } from './Switch';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Switch {...props} />;\n\nStory.storyName = 'Switch';\n\nStory.args = {\n checked: false,\n disabled: false,\n name: 'Switch',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,OAAO,EAAE,KADX;EAEEC,QAAQ,EAAE,KAFZ;EAGEC,IAAI,EAAE;AAHR,GAIG,aAJH,EAImB,YAJnB;AAOAN,KAAK,CAACO,QAAN,GAAiB;EACfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV;AADK,CAAjB"}
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
18
20
  var _default = {
19
21
  title: 'Primitives'
20
22
  };
@@ -26,7 +28,7 @@ var Story = function Story(props) {
26
28
 
27
29
  exports.Story = Story;
28
30
  Story.storyName = 'Text';
29
- Story.args = {
31
+ Story.args = _defineProperty({
30
32
  action: false,
31
33
  bold: false,
32
34
  children: 'children',
@@ -35,6 +37,6 @@ Story.args = {
35
37
  small: false,
36
38
  tag: 'span',
37
39
  upperCase: false
38
- };
40
+ }, 'data-testid', 'test-story');
39
41
  Story.argTypes = {};
40
42
  //# sourceMappingURL=Text.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.stories.js","names":["title","Story","props","storyName","args","action","bold","children","headline","level","small","tag","upperCase","argTypes"],"sources":["../../../src/primitives/Text/Text.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Text } from './Text';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Text {...props} />;\n\nStory.storyName = 'Text';\n\nStory.args = {\n action: false,\n bold: false,\n children: 'children',\n headline: false,\n level: 3,\n small: false,\n tag: 'span',\n upperCase: false,\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,UAAD,EAAUA,KAAV,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,MAAM,EAAE,KADG;EAEXC,IAAI,EAAE,KAFK;EAGXC,QAAQ,EAAE,UAHC;EAIXC,QAAQ,EAAE,KAJC;EAKXC,KAAK,EAAE,CALI;EAMXC,KAAK,EAAE,KANI;EAOXC,GAAG,EAAE,MAPM;EAQXC,SAAS,EAAE;AARA,CAAb;AAWAX,KAAK,CAACY,QAAN,GAAiB,EAAjB"}
1
+ {"version":3,"file":"Text.stories.js","names":["title","Story","props","storyName","args","action","bold","children","headline","level","small","tag","upperCase","argTypes"],"sources":["../../../src/primitives/Text/Text.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Text } from './Text';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Text {...props} />;\n\nStory.storyName = 'Text';\n\nStory.args = {\n action: false,\n bold: false,\n children: 'children',\n headline: false,\n level: 3,\n small: false,\n tag: 'span',\n upperCase: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,UAAD,EAAUA,KAAV,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,MAAM,EAAE,KADV;EAEEC,IAAI,EAAE,KAFR;EAGEC,QAAQ,EAAE,UAHZ;EAIEC,QAAQ,EAAE,KAJZ;EAKEC,KAAK,EAAE,CALT;EAMEC,KAAK,EAAE,KANT;EAOEC,GAAG,EAAE,MAPP;EAQEC,SAAS,EAAE;AARb,GASG,aATH,EASmB,YATnB;AAYAX,KAAK,CAACY,QAAN,GAAiB,EAAjB"}
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
18
20
  var _default = {
19
21
  title: 'Primitives'
20
22
  };
@@ -30,10 +32,10 @@ var Story = function Story(props) {
30
32
 
31
33
  exports.Story = Story;
32
34
  Story.storyName = 'View';
33
- Story.args = {
35
+ Story.args = _defineProperty({
34
36
  fit: false,
35
37
  row: false,
36
38
  tag: 'div'
37
- };
39
+ }, 'data-testid', 'test-story');
38
40
  Story.argTypes = {};
39
41
  //# sourceMappingURL=View.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"View.stories.js","names":["title","Story","props","storyName","args","fit","row","tag","argTypes"],"sources":["../../../src/primitives/View/View.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { View } from './View';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <View {...props}>\n <span className=\"children\">child:1</span>\n <span className=\"children\">child:2</span>\n </View>\n);\n\nStory.storyName = 'View';\n\nStory.args = {\n fit: false,\n row: false,\n tag: 'div',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,UAAD,EAAUA,KAAV,eACE;IAAM,SAAS,EAAC;EAAhB,aADF,eAEE;IAAM,SAAS,EAAC;EAAhB,aAFF,CADmB;AAAA,CAAd;;;AAOPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,GAAG,EAAE,KADM;EAEXC,GAAG,EAAE,KAFM;EAGXC,GAAG,EAAE;AAHM,CAAb;AAMAN,KAAK,CAACO,QAAN,GAAiB,EAAjB"}
1
+ {"version":3,"file":"View.stories.js","names":["title","Story","props","storyName","args","fit","row","tag","argTypes"],"sources":["../../../src/primitives/View/View.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { View } from './View';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <View {...props}>\n <span className=\"children\">child:1</span>\n <span className=\"children\">child:2</span>\n </View>\n);\n\nStory.storyName = 'View';\n\nStory.args = {\n fit: false,\n row: false,\n tag: 'div',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,UAAD,EAAUA,KAAV,eACE;IAAM,SAAS,EAAC;EAAhB,aADF,eAEE;IAAM,SAAS,EAAC;EAAhB,aAFF,CADmB;AAAA,CAAd;;;AAOPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,GAAG,EAAE,KADP;EAEEC,GAAG,EAAE,KAFP;EAGEC,GAAG,EAAE;AAHP,GAIG,aAJH,EAImB,YAJnB;AAOAN,KAAK,CAACO,QAAN,GAAiB,EAAjB"}
@@ -78,7 +78,7 @@
78
78
  /* breakpoints */
79
79
  --mirai-ui-breakpoint-S: 430px;
80
80
  --mirai-ui-breakpoint-M: 768px;
81
- /* --mirai-ui-breakpoint-L: 769px; */
81
+ --mirai-ui-breakpoint-content: 1280px;
82
82
 
83
83
  /* motion */
84
84
  --mirai-ui-motion-collapse: 200ms;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=theme.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.stories.js","names":[],"sources":["../../src/theme/theme.stories.jsx"],"sourcesContent":[""],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/ui",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "repository": "git@gitlab.com:miraicorp/dev/frontend/ui.git",
5
5
  "author": "JΛVI <hello@soyjavi.com>",
6
6
  "license": "MIT",