@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.
- package/README.md +8 -1
- package/build/components/Button/Button.stories.js +4 -2
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Calendar/Calendar.stories.js +2 -2
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Form/Form.stories.js +4 -2
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/InputDate/InputDate.js +28 -12
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/InputDate.module.css +9 -16
- package/build/components/InputDate/InputDate.stories.js +15 -3
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +144 -167
- package/build/components/InputNumber/InputNumber.stories.js +4 -2
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputOption/InputOption.js +1 -0
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +4 -2
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +3 -3
- package/build/components/InputSelect/InputSelect.js +17 -7
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/InputSelect.stories.js +4 -2
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +217 -163
- package/build/components/InputText/InputText.js +13 -10
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +11 -11
- package/build/components/InputText/InputText.stories.js +5 -2
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +108 -88
- package/build/components/Menu/Menu.js +37 -15
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.module.css +3 -0
- package/build/components/Menu/Menu.stories.js +7 -4
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +36 -19
- package/build/components/Modal/Modal.js +5 -2
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.module.css +9 -20
- package/build/components/Modal/Modal.stories.js +5 -2
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +24 -12
- package/build/components/Notification/Notification.stories.js +4 -2
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Table/Table.stories.js +4 -2
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Tooltip/Tooltip.stories.js +4 -2
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/build/hooks/useDevice.js +1 -1
- package/build/hooks/useDevice.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.stories.js +4 -2
- package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +4 -2
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Input/Input.stories.js +4 -2
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.js +4 -2
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Pressable/Pressable.stories.js +4 -2
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/build/primitives/Radio/Radio.stories.js +4 -2
- package/build/primitives/Radio/Radio.stories.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +4 -2
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/Select/Select.stories.js +4 -2
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Switch/Switch.stories.js +4 -2
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Text/Text.stories.js +4 -2
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/View/View.stories.js +4 -2
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/theme/default.theme.css +1 -1
- package/build/theme/theme.stories.js +2 -0
- package/build/theme/theme.stories.js.map +1 -0
- 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
|
|
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
|
|
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
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.stories.js","names":[],"sources":["../../src/theme/theme.stories.jsx"],"sourcesContent":[""],"mappings":""}
|