@mirai/ui 1.0.55 → 1.0.56
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 +21 -11
- package/build/components/Button/Button.module.css +0 -18
- package/build/components/Calendar/Calendar.module.css +0 -12
- package/build/components/Calendar/Calendar.stories.js +89 -18
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Form/Form.stories.js +63 -0
- package/build/components/Form/Form.stories.js.map +1 -0
- package/build/components/InputDate/InputDate.module.css +0 -3
- package/build/components/InputDate/InputDate.stories.js +78 -0
- package/build/components/InputDate/InputDate.stories.js.map +1 -0
- package/build/components/InputNumber/InputNumber.module.css +0 -4
- package/build/components/InputNumber/InputNumber.stories.js +50 -0
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -0
- package/build/components/InputOption/InputOption.module.css +0 -6
- package/build/components/InputOption/InputOption.stories.js +58 -0
- package/build/components/InputOption/InputOption.stories.js.map +1 -0
- package/build/components/InputSelect/InputSelect.stories.js +66 -0
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -0
- package/build/components/InputText/InputText.module.css +0 -11
- package/build/components/InputText/InputText.stories.js +97 -0
- package/build/components/InputText/InputText.stories.js.map +1 -0
- package/build/components/Menu/Menu.module.css +0 -11
- package/build/components/Menu/Menu.stories.js +77 -0
- package/build/components/Menu/Menu.stories.js.map +1 -0
- package/build/components/Modal/Modal.module.css +0 -10
- package/build/components/Modal/Modal.stories.js +3 -2
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Notification/Notification.module.css +0 -6
- package/build/components/Notification/Notification.stories.js +42 -0
- package/build/components/Notification/Notification.stories.js.map +1 -0
- package/build/components/Table/Table.module.css +0 -12
- package/build/components/Table/Table.stories.js +95 -0
- package/build/components/Table/Table.stories.js.map +1 -0
- package/build/components/Tooltip/Tooltip.module.css +0 -8
- package/build/components/Tooltip/Tooltip.stories.js +38 -0
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -0
- package/build/hooks/useDevice.stories.js +57 -0
- package/build/hooks/useDevice.stories.js.map +1 -0
- package/build/primitives/Checkbox/Checkbox.module.css +0 -9
- package/build/primitives/Icon/Icon.stories.js +5 -1
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Input/Input.module.css +0 -6
- package/build/primitives/Input/Input.stories.js +8 -1
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Layer/Layer.module.css +0 -4
- package/build/primitives/Layer/Layer.stories.js +44 -0
- package/build/primitives/Layer/Layer.stories.js.map +1 -0
- package/build/primitives/Pressable/Pressable.stories.js +47 -0
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -0
- package/build/primitives/Radio/Radio.module.css +0 -8
- package/build/primitives/Radio/Radio.stories.js +41 -0
- package/build/primitives/Radio/Radio.stories.js.map +1 -0
- package/build/primitives/ScrollView/ScrollView.stories.js +87 -0
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -0
- package/build/primitives/Select/Select.stories.js +73 -0
- package/build/primitives/Select/Select.stories.js.map +1 -0
- package/build/primitives/Switch/Switch.module.css +0 -10
- package/build/primitives/Switch/Switch.stories.js +39 -0
- package/build/primitives/Switch/Switch.stories.js.map +1 -0
- package/build/primitives/Text/Text.stories.js +40 -0
- package/build/primitives/Text/Text.stories.js.map +1 -0
- package/build/primitives/View/View.stories.js +39 -0
- package/build/primitives/View/View.stories.js.map +1 -0
- package/build/theme/default.theme.css +161 -17
- package/package.json +4 -3
|
@@ -30,10 +30,17 @@ Story.args = {
|
|
|
30
30
|
disabled: false,
|
|
31
31
|
multiLine: false,
|
|
32
32
|
name: 'Input',
|
|
33
|
-
placeholder: '
|
|
33
|
+
placeholder: 'placeholder',
|
|
34
34
|
type: 'text'
|
|
35
35
|
};
|
|
36
36
|
Story.argTypes = {
|
|
37
|
+
type: {
|
|
38
|
+
options: ['text', 'password', 'number', 'email', 'date'],
|
|
39
|
+
control: {
|
|
40
|
+
type: 'select'
|
|
41
|
+
},
|
|
42
|
+
defaultValue: 'text'
|
|
43
|
+
},
|
|
37
44
|
onChange: {
|
|
38
45
|
action: 'onChange'
|
|
39
46
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.js","names":["title","Story","props","storyName","args","disabled","multiLine","name","placeholder","type","argTypes","onChange","action","onEnter","onError","onLeave"],"sources":["../../../src/primitives/Input/Input.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Input } from './Input';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Input {...props} />;\n\nStory.storyName = 'Input';\n\nStory.args = {\n disabled: false,\n multiLine: false,\n name: 'Input',\n placeholder: '
|
|
1
|
+
{"version":3,"file":"Input.stories.js","names":["title","Story","props","storyName","args","disabled","multiLine","name","placeholder","type","argTypes","options","control","defaultValue","onChange","action","onEnter","onError","onLeave"],"sources":["../../../src/primitives/Input/Input.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Input } from './Input';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Input {...props} />;\n\nStory.storyName = 'Input';\n\nStory.args = {\n disabled: false,\n multiLine: false,\n name: 'Input',\n placeholder: 'placeholder',\n type: 'text',\n};\n\nStory.argTypes = {\n type: {\n options: ['text', 'password', 'number', 'email', 'date'],\n control: { type: 'select' },\n defaultValue: 'text',\n },\n onChange: { action: 'onChange' },\n onEnter: { action: 'onEnter' },\n onError: { action: 'onError' },\n onLeave: { action: 'onLeave' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,YAAD,EAAWA,KAAX,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,QAAQ,EAAE,KADC;EAEXC,SAAS,EAAE,KAFA;EAGXC,IAAI,EAAE,OAHK;EAIXC,WAAW,EAAE,aAJF;EAKXC,IAAI,EAAE;AALK,CAAb;AAQAR,KAAK,CAACS,QAAN,GAAiB;EACfD,IAAI,EAAE;IACJE,OAAO,EAAE,CAAC,MAAD,EAAS,UAAT,EAAqB,QAArB,EAA+B,OAA/B,EAAwC,MAAxC,CADL;IAEJC,OAAO,EAAE;MAAEH,IAAI,EAAE;IAAR,CAFL;IAGJI,YAAY,EAAE;EAHV,CADS;EAMfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV,CANK;EAOfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAPM;EAQfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV,CARM;EASfG,OAAO,EAAE;IAAEH,MAAM,EAAE;EAAV;AATM,CAAjB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Layer = require("./Layer");
|
|
13
|
+
|
|
14
|
+
var _LayerContent = require("./LayerContent");
|
|
15
|
+
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
21
|
+
|
|
22
|
+
var _default = {
|
|
23
|
+
title: 'Primitives'
|
|
24
|
+
};
|
|
25
|
+
exports.default = _default;
|
|
26
|
+
|
|
27
|
+
var Story = function Story(props) {
|
|
28
|
+
return /*#__PURE__*/React.createElement(_Layer.Layer, _extends({
|
|
29
|
+
className: "children"
|
|
30
|
+
}, props), /*#__PURE__*/React.createElement("span", null, "dispatcher"), /*#__PURE__*/React.createElement(_LayerContent.LayerContent, null, /*#__PURE__*/React.createElement("span", null, "children")));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.Story = Story;
|
|
34
|
+
Story.storyName = 'Layer';
|
|
35
|
+
Story.args = {
|
|
36
|
+
bottom: false,
|
|
37
|
+
centered: false,
|
|
38
|
+
forceRender: true,
|
|
39
|
+
left: false,
|
|
40
|
+
right: false,
|
|
41
|
+
top: false,
|
|
42
|
+
visible: false
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Layer.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layer.stories.js","names":["title","Story","props","storyName","args","bottom","centered","forceRender","left","right","top","visible"],"sources":["../../../src/primitives/Layer/Layer.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Layer } from './Layer';\nimport { LayerContent } from './LayerContent';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <Layer className=\"children\" {...props}>\n <span>dispatcher</span>\n <LayerContent>\n <span>children</span>\n </LayerContent>\n </Layer>\n);\n\nStory.storyName = 'Layer';\n\nStory.args = {\n bottom: false,\n centered: false,\n forceRender: true,\n left: false,\n right: false,\n top: false,\n visible: false,\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,YAAD;IAAO,SAAS,EAAC;EAAjB,GAAgCA,KAAhC,gBACE,+CADF,eAEE,oBAAC,0BAAD,qBACE,6CADF,CAFF,CADmB;AAAA,CAAd;;;AASPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,MAAM,EAAE,KADG;EAEXC,QAAQ,EAAE,KAFC;EAGXC,WAAW,EAAE,IAHF;EAIXC,IAAI,EAAE,KAJK;EAKXC,KAAK,EAAE,KALI;EAMXC,GAAG,EAAE,KANM;EAOXC,OAAO,EAAE;AAPE,CAAb"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Pressable = require("./Pressable");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
title: 'Primitives'
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
|
|
23
|
+
var Story = function Story(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(_Pressable.Pressable, props, /*#__PURE__*/React.createElement("span", {
|
|
25
|
+
className: "children"
|
|
26
|
+
}, "children"));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.Story = Story;
|
|
30
|
+
Story.storyName = 'Pressable';
|
|
31
|
+
Story.args = {
|
|
32
|
+
disabled: false,
|
|
33
|
+
preventDefault: false,
|
|
34
|
+
tag: 'button'
|
|
35
|
+
};
|
|
36
|
+
Story.argTypes = {
|
|
37
|
+
onEnter: {
|
|
38
|
+
action: 'onEnter'
|
|
39
|
+
},
|
|
40
|
+
onLeave: {
|
|
41
|
+
action: 'onLeave'
|
|
42
|
+
},
|
|
43
|
+
onPress: {
|
|
44
|
+
action: 'onPress'
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Pressable.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressable.stories.js","names":["title","Story","props","storyName","args","disabled","preventDefault","tag","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/primitives/Pressable/Pressable.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Pressable } from './Pressable';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <Pressable {...props}>\n <span className=\"children\">children</span>\n </Pressable>\n);\n\nStory.storyName = 'Pressable';\n\nStory.args = {\n disabled: false,\n preventDefault: false,\n tag: 'button',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,oBAAD,EAAeA,KAAf,eACE;IAAM,SAAS,EAAC;EAAhB,cADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,WAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,QAAQ,EAAE,KADC;EAEXC,cAAc,EAAE,KAFL;EAGXC,GAAG,EAAE;AAHM,CAAb;AAMAN,KAAK,CAACO,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV,CADM;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAFM;EAGfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV;AAHM,CAAjB"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--mirai-ui-radio-base: var(--mirai-ui-base);
|
|
3
|
-
--mirai-ui-radio-border: var(--mirai-ui-content-light);
|
|
4
|
-
--mirai-ui-radio-checked: var(--mirai-ui-accent);
|
|
5
|
-
--mirai-ui-radio-disabled: var(--mirai-ui-content-border);
|
|
6
|
-
--mirai-ui-radio-size: var(--mirai-ui-space-L);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
1
|
.radio {
|
|
10
2
|
cursor: pointer;
|
|
11
3
|
position: relative;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Radio = require("./Radio");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
title: 'Primitives'
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
|
|
23
|
+
var Story = function Story(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(_Radio.Radio, props);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.Story = Story;
|
|
28
|
+
Story.storyName = 'Radio';
|
|
29
|
+
Story.args = {
|
|
30
|
+
checked: false,
|
|
31
|
+
children: 'children',
|
|
32
|
+
disabled: false,
|
|
33
|
+
name: 'Radio',
|
|
34
|
+
value: 'value'
|
|
35
|
+
};
|
|
36
|
+
Story.argTypes = {
|
|
37
|
+
onChange: {
|
|
38
|
+
action: 'onChange'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=Radio.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.stories.js","names":["title","Story","props","storyName","args","checked","children","disabled","name","value","argTypes","onChange","action"],"sources":["../../../src/primitives/Radio/Radio.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Radio } from './Radio';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Radio {...props} />;\n\nStory.storyName = 'Radio';\n\nStory.args = {\n checked: false,\n children: 'children',\n disabled: false,\n name: 'Radio',\n value: 'value',\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,YAAD,EAAWA,KAAX,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,OAAO,EAAE,KADE;EAEXC,QAAQ,EAAE,UAFC;EAGXC,QAAQ,EAAE,KAHC;EAIXC,IAAI,EAAE,OAJK;EAKXC,KAAK,EAAE;AALI,CAAb;AAQAR,KAAK,CAACS,QAAN,GAAiB;EACfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV;AADK,CAAjB"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _ScrollView = require("./ScrollView");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
title: 'Primitives'
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
var boxStyle = {
|
|
25
|
+
display: 'block',
|
|
26
|
+
margin: '1rem',
|
|
27
|
+
minHeight: 128,
|
|
28
|
+
minWidth: 128
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var Story = function Story(props) {
|
|
32
|
+
return /*#__PURE__*/React.createElement(_ScrollView.ScrollView, _extends({
|
|
33
|
+
className: "children",
|
|
34
|
+
style: {
|
|
35
|
+
backgroundColor: 'grey'
|
|
36
|
+
}
|
|
37
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: "children",
|
|
39
|
+
style: boxStyle
|
|
40
|
+
}, "child-1"), /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: "children",
|
|
42
|
+
style: boxStyle
|
|
43
|
+
}, "child-2"), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: "children",
|
|
45
|
+
style: boxStyle
|
|
46
|
+
}, "child-3"), /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: "children",
|
|
48
|
+
style: boxStyle
|
|
49
|
+
}, "child-4"), /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: "children",
|
|
51
|
+
style: boxStyle
|
|
52
|
+
}, "child-5"));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.Story = Story;
|
|
56
|
+
Story.storyName = 'Scrollview';
|
|
57
|
+
Story.args = {
|
|
58
|
+
behavior: 'smooth',
|
|
59
|
+
height: 256,
|
|
60
|
+
horizontal: false,
|
|
61
|
+
scrollEventThrottle: 16,
|
|
62
|
+
scrollIndicator: false,
|
|
63
|
+
scrollTo: undefined,
|
|
64
|
+
snap: true,
|
|
65
|
+
tag: 'div',
|
|
66
|
+
width: 256,
|
|
67
|
+
onScroll: function onScroll() {
|
|
68
|
+
var _console;
|
|
69
|
+
|
|
70
|
+
for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
71
|
+
props[_key] = arguments[_key];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return (_console = console).log.apply(_console, ['<ScrollView>::onScroll'].concat(props));
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
Story.argTypes = {
|
|
78
|
+
behavior: {
|
|
79
|
+
options: ['auto', 'smooth', 'initial', 'inherit'],
|
|
80
|
+
control: {
|
|
81
|
+
type: 'select'
|
|
82
|
+
},
|
|
83
|
+
defaultValue: 'smooth'
|
|
84
|
+
} // onScroll: { action: 'onScroll' },
|
|
85
|
+
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=ScrollView.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollView.stories.js","names":["title","boxStyle","display","margin","minHeight","minWidth","Story","props","backgroundColor","storyName","args","behavior","height","horizontal","scrollEventThrottle","scrollIndicator","scrollTo","undefined","snap","tag","width","onScroll","console","log","argTypes","options","control","type","defaultValue"],"sources":["../../../src/primitives/ScrollView/ScrollView.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { ScrollView } from './ScrollView';\n\nexport default { title: 'Primitives' };\n\nconst boxStyle = { display: 'block', margin: '1rem', minHeight: 128, minWidth: 128 };\n\nexport const Story = (props) => (\n <ScrollView className=\"children\" style={{ backgroundColor: 'grey' }} {...props}>\n <div className=\"children\" style={boxStyle}>\n child-1\n </div>\n <div className=\"children\" style={boxStyle}>\n child-2\n </div>\n <div className=\"children\" style={boxStyle}>\n child-3\n </div>\n <div className=\"children\" style={boxStyle}>\n child-4\n </div>\n <div className=\"children\" style={boxStyle}>\n child-5\n </div>\n </ScrollView>\n);\n\nStory.storyName = 'Scrollview';\n\nStory.args = {\n behavior: 'smooth',\n height: 256,\n horizontal: false,\n scrollEventThrottle: 16,\n scrollIndicator: false,\n scrollTo: undefined,\n snap: true,\n tag: 'div',\n width: 256,\n onScroll: (...props) => console.log('<ScrollView>::onScroll', ...props),\n};\n\nStory.argTypes = {\n behavior: {\n options: ['auto', 'smooth', 'initial', 'inherit'],\n control: { type: 'select' },\n defaultValue: 'smooth',\n },\n // onScroll: { action: 'onScroll' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;AAEf,IAAMC,QAAQ,GAAG;EAAEC,OAAO,EAAE,OAAX;EAAoBC,MAAM,EAAE,MAA5B;EAAoCC,SAAS,EAAE,GAA/C;EAAoDC,QAAQ,EAAE;AAA9D,CAAjB;;AAEO,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,sBAAD;IAAY,SAAS,EAAC,UAAtB;IAAiC,KAAK,EAAE;MAAEC,eAAe,EAAE;IAAnB;EAAxC,GAAyED,KAAzE,gBACE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEN;EAAjC,aADF,eAIE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAJF,eAOE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAPF,eAUE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAVF,eAaE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAbF,CADmB;AAAA,CAAd;;;AAoBPK,KAAK,CAACG,SAAN,GAAkB,YAAlB;AAEAH,KAAK,CAACI,IAAN,GAAa;EACXC,QAAQ,EAAE,QADC;EAEXC,MAAM,EAAE,GAFG;EAGXC,UAAU,EAAE,KAHD;EAIXC,mBAAmB,EAAE,EAJV;EAKXC,eAAe,EAAE,KALN;EAMXC,QAAQ,EAAEC,SANC;EAOXC,IAAI,EAAE,IAPK;EAQXC,GAAG,EAAE,KARM;EASXC,KAAK,EAAE,GATI;EAUXC,QAAQ,EAAE;IAAA;;IAAA,kCAAId,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAe,OAAO,EAACC,GAAR,kBAAY,wBAAZ,SAAyChB,KAAzC,EAAd;EAAA;AAVC,CAAb;AAaAD,KAAK,CAACkB,QAAN,GAAiB;EACfb,QAAQ,EAAE;IACRc,OAAO,EAAE,CAAC,MAAD,EAAS,QAAT,EAAmB,SAAnB,EAA8B,SAA9B,CADD;IAERC,OAAO,EAAE;MAAEC,IAAI,EAAE;IAAR,CAFD;IAGRC,YAAY,EAAE;EAHN,CADK,CAMf;;AANe,CAAjB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Select = require("./Select");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
title: 'Primitives'
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
|
|
23
|
+
var Story = function Story(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(_Select.Select, props);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.Story = Story;
|
|
28
|
+
Story.storyName = 'Select';
|
|
29
|
+
Story.args = {
|
|
30
|
+
disabled: false,
|
|
31
|
+
emptyOption: 'Select one option...',
|
|
32
|
+
name: 'Select',
|
|
33
|
+
options: ['one', 'two', 'three', 'four', 'five'],
|
|
34
|
+
value: '',
|
|
35
|
+
onChange: function onChange() {
|
|
36
|
+
var _console;
|
|
37
|
+
|
|
38
|
+
for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
39
|
+
props[_key] = arguments[_key];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return (_console = console).log.apply(_console, ['<Select>::onChange'].concat(props));
|
|
43
|
+
},
|
|
44
|
+
onEnter: function onEnter() {
|
|
45
|
+
var _console2;
|
|
46
|
+
|
|
47
|
+
for (var _len2 = arguments.length, props = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
48
|
+
props[_key2] = arguments[_key2];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return (_console2 = console).log.apply(_console2, ['<Select>::onEnter'].concat(props));
|
|
52
|
+
},
|
|
53
|
+
onError: function onError() {
|
|
54
|
+
var _console3;
|
|
55
|
+
|
|
56
|
+
for (var _len3 = arguments.length, props = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
57
|
+
props[_key3] = arguments[_key3];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return (_console3 = console).log.apply(_console3, ['<Select>::onError'].concat(props));
|
|
61
|
+
},
|
|
62
|
+
onLeave: function onLeave() {
|
|
63
|
+
var _console4;
|
|
64
|
+
|
|
65
|
+
for (var _len4 = arguments.length, props = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
66
|
+
props[_key4] = arguments[_key4];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return (_console4 = console).log.apply(_console4, ['<Select>::onLeave'].concat(props));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
Story.argTypes = {};
|
|
73
|
+
//# sourceMappingURL=Select.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.stories.js","names":["title","Story","props","storyName","args","disabled","emptyOption","name","options","value","onChange","console","log","onEnter","onError","onLeave","argTypes"],"sources":["../../../src/primitives/Select/Select.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Select } from './Select';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Select {...props} />;\n\nStory.storyName = 'Select';\n\nStory.args = {\n disabled: false,\n emptyOption: 'Select one option...',\n name: 'Select',\n options: ['one', 'two', 'three', 'four', 'five'],\n value: '',\n onChange: (...props) => console.log('<Select>::onChange', ...props),\n onEnter: (...props) => console.log('<Select>::onEnter', ...props),\n onError: (...props) => console.log('<Select>::onError', ...props),\n onLeave: (...props) => console.log('<Select>::onLeave', ...props),\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,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,QAAQ,EAAE,KADC;EAEXC,WAAW,EAAE,sBAFF;EAGXC,IAAI,EAAE,QAHK;EAIXC,OAAO,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,OAAf,EAAwB,MAAxB,EAAgC,MAAhC,CAJE;EAKXC,KAAK,EAAE,EALI;EAMXC,QAAQ,EAAE;IAAA;;IAAA,kCAAIR,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAS,OAAO,EAACC,GAAR,kBAAY,oBAAZ,SAAqCV,KAArC,EAAd;EAAA,CANC;EAOXW,OAAO,EAAE;IAAA;;IAAA,mCAAIX,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAS,OAAO,EAACC,GAAR,mBAAY,mBAAZ,SAAoCV,KAApC,EAAd;EAAA,CAPE;EAQXY,OAAO,EAAE;IAAA;;IAAA,mCAAIZ,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAS,OAAO,EAACC,GAAR,mBAAY,mBAAZ,SAAoCV,KAApC,EAAd;EAAA,CARE;EASXa,OAAO,EAAE;IAAA;;IAAA,mCAAIb,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAS,OAAO,EAACC,GAAR,mBAAY,mBAAZ,SAAoCV,KAApC,EAAd;EAAA;AATE,CAAb;AAYAD,KAAK,CAACe,QAAN,GAAiB,EAAjB"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--mirai-ui-switch-base: var(--mirai-ui-base);
|
|
3
|
-
--mirai-ui-switch-border-color: var(--mirai-ui-content-light);
|
|
4
|
-
--mirai-ui-switch-border-size: calc(var(--mirai-ui-space-XS) / 4);
|
|
5
|
-
--mirai-ui-switch-border-radius: var(--mirai-ui-space-L);
|
|
6
|
-
--mirai-ui-switch-checked: var(--mirai-ui-accent);
|
|
7
|
-
--mirai-ui-switch-disabled: var(--mirai-ui-content-border);
|
|
8
|
-
--mirai-ui-switch-size: var(--mirai-ui-space-L);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
.switch {
|
|
12
2
|
align-self: flex-start;
|
|
13
3
|
box-sizing: border-box;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Switch = require("./Switch");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
title: 'Primitives'
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
|
|
23
|
+
var Story = function Story(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(_Switch.Switch, props);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.Story = Story;
|
|
28
|
+
Story.storyName = 'Switch';
|
|
29
|
+
Story.args = {
|
|
30
|
+
checked: false,
|
|
31
|
+
disabled: false,
|
|
32
|
+
name: 'Switch'
|
|
33
|
+
};
|
|
34
|
+
Story.argTypes = {
|
|
35
|
+
onChange: {
|
|
36
|
+
action: 'onChange'
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Switch.stories.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Text = require("./Text");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
title: 'Primitives'
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
|
|
23
|
+
var Story = function Story(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(_Text.Text, props);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.Story = Story;
|
|
28
|
+
Story.storyName = 'Text';
|
|
29
|
+
Story.args = {
|
|
30
|
+
action: false,
|
|
31
|
+
bold: false,
|
|
32
|
+
children: 'children',
|
|
33
|
+
headline: false,
|
|
34
|
+
level: 3,
|
|
35
|
+
small: false,
|
|
36
|
+
tag: 'span',
|
|
37
|
+
upperCase: false
|
|
38
|
+
};
|
|
39
|
+
Story.argTypes = {};
|
|
40
|
+
//# sourceMappingURL=Text.stories.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Story = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _View = require("./View");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
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
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
title: 'Primitives'
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
|
|
23
|
+
var Story = function Story(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(_View.View, props, /*#__PURE__*/React.createElement("span", {
|
|
25
|
+
className: "children"
|
|
26
|
+
}, "child:1"), /*#__PURE__*/React.createElement("span", {
|
|
27
|
+
className: "children"
|
|
28
|
+
}, "child:2"));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.Story = Story;
|
|
32
|
+
Story.storyName = 'View';
|
|
33
|
+
Story.args = {
|
|
34
|
+
fit: false,
|
|
35
|
+
row: false,
|
|
36
|
+
tag: 'div'
|
|
37
|
+
};
|
|
38
|
+
Story.argTypes = {};
|
|
39
|
+
//# sourceMappingURL=View.stories.js.map
|
|
@@ -0,0 +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"}
|