@mirai/ui 1.0.111 → 1.0.112
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 +3 -0
- package/build/components/Action/Action.js +4 -2
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.module.css +5 -0
- package/build/components/Action/Action.stories.js +1 -0
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +10 -0
- package/build/components/Calendar/Calendar.Week.js +2 -2
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.stories.js +3 -1
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +368 -124
- package/build/primitives/Text/Text.js +4 -2
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.module.css +4 -0
- package/build/primitives/Text/Text.stories.js +1 -0
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +10 -0
- package/build/primitives/View/View.js +5 -3
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/View.module.css +5 -1
- package/build/primitives/View/View.stories.js +2 -1
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +8 -0
- package/build/theme/default.theme.css +3 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _TextModule = _interopRequireDefault(require("./Text.module.css"));
|
|
12
|
-
var _excluded = ["action", "bold", "children", "headline", "level", "small", "tag", "upperCase"];
|
|
12
|
+
var _excluded = ["action", "bold", "children", "headline", "level", "small", "tag", "underline", "upperCase"];
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -27,10 +27,11 @@ var Text = function Text(_ref) {
|
|
|
27
27
|
level = _ref$level === void 0 ? 3 : _ref$level,
|
|
28
28
|
small = _ref.small,
|
|
29
29
|
tag = _ref.tag,
|
|
30
|
+
underline = _ref.underline,
|
|
30
31
|
upperCase = _ref.upperCase,
|
|
31
32
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
32
33
|
return /*#__PURE__*/_react.default.createElement(tag || (headline ? "h".concat(level) : 'span'), _objectSpread(_objectSpread({}, others), {}, {
|
|
33
|
-
className: (0, _helpers.styles)(_TextModule.default.text, bold && _TextModule.default.bold, headline ? _TextModule.default["headline-".concat(level)] : action ? _TextModule.default.action : small ? _TextModule.default.small : _TextModule.default.paragraph, upperCase && _TextModule.default.upperCase, others.className)
|
|
34
|
+
className: (0, _helpers.styles)(_TextModule.default.text, bold && _TextModule.default.bold, headline ? _TextModule.default["headline-".concat(level)] : action ? _TextModule.default.action : small ? _TextModule.default.small : _TextModule.default.paragraph, underline && _TextModule.default.underline, upperCase && _TextModule.default.upperCase, others.className)
|
|
34
35
|
}), children);
|
|
35
36
|
};
|
|
36
37
|
exports.Text = Text;
|
|
@@ -43,6 +44,7 @@ Text.propTypes = {
|
|
|
43
44
|
level: _propTypes.default.number,
|
|
44
45
|
small: _propTypes.default.bool,
|
|
45
46
|
tag: _propTypes.default.string,
|
|
47
|
+
underline: _propTypes.default.bool,
|
|
46
48
|
upperCase: _propTypes.default.bool
|
|
47
49
|
};
|
|
48
50
|
//# sourceMappingURL=Text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":["Text","action","bold","children","headline","level","small","tag","upperCase","others","React","createElement","className","styles","style","text","paragraph","displayName","propTypes","PropTypes","bool","oneOfType","string","number","array"],"sources":["../../../src/primitives/Text/Text.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport style from './Text.module.css';\n\nconst Text = ({ action, bold, children, headline, level = 3, small, tag, upperCase, ...others }) =>\n React.createElement(\n tag || (headline ? `h${level}` : 'span'),\n {\n ...others,\n className: styles(\n style.text,\n bold && style.bold,\n headline ? style[`headline-${level}`] : action ? style.action : small ? style.small : style.paragraph,\n upperCase && style.upperCase,\n others.className,\n ),\n },\n children,\n );\n\nText.displayName = 'Primitive:Text';\n\nText.propTypes = {\n action: PropTypes.bool,\n bold: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n headline: PropTypes.bool,\n level: PropTypes.number,\n small: PropTypes.bool,\n tag: PropTypes.string,\n upperCase: PropTypes.bool,\n};\n\nexport { Text };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEtC,IAAMA,IAAI,GAAG,SAAPA,IAAI;EAAA,IAAMC,MAAM,QAANA,MAAM;IAAEC,IAAI,QAAJA,IAAI;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,QAAQ,QAARA,QAAQ;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAG,CAAC;IAAEC,KAAK,QAALA,KAAK;IAAEC,GAAG,QAAHA,GAAG;IAAEC,SAAS,QAATA,SAAS;IAAKC,MAAM;EAAA,
|
|
1
|
+
{"version":3,"file":"Text.js","names":["Text","action","bold","children","headline","level","small","tag","underline","upperCase","others","React","createElement","className","styles","style","text","paragraph","displayName","propTypes","PropTypes","bool","oneOfType","string","number","array"],"sources":["../../../src/primitives/Text/Text.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport style from './Text.module.css';\n\nconst Text = ({ action, bold, children, headline, level = 3, small, tag, underline, upperCase, ...others }) =>\n React.createElement(\n tag || (headline ? `h${level}` : 'span'),\n {\n ...others,\n className: styles(\n style.text,\n bold && style.bold,\n headline ? style[`headline-${level}`] : action ? style.action : small ? style.small : style.paragraph,\n underline && style.underline,\n upperCase && style.upperCase,\n others.className,\n ),\n },\n children,\n );\n\nText.displayName = 'Primitive:Text';\n\nText.propTypes = {\n action: PropTypes.bool,\n bold: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n headline: PropTypes.bool,\n level: PropTypes.number,\n small: PropTypes.bool,\n tag: PropTypes.string,\n underline: PropTypes.bool,\n upperCase: PropTypes.bool,\n};\n\nexport { Text };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEtC,IAAMA,IAAI,GAAG,SAAPA,IAAI;EAAA,IAAMC,MAAM,QAANA,MAAM;IAAEC,IAAI,QAAJA,IAAI;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,QAAQ,QAARA,QAAQ;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAG,CAAC;IAAEC,KAAK,QAALA,KAAK;IAAEC,GAAG,QAAHA,GAAG;IAAEC,SAAS,QAATA,SAAS;IAAEC,SAAS,QAATA,SAAS;IAAKC,MAAM;EAAA,oBACtGC,cAAK,CAACC,aAAa,CACjBL,GAAG,KAAKH,QAAQ,cAAOC,KAAK,IAAK,MAAM,CAAC,kCAEnCK,MAAM;IACTG,SAAS,EAAE,IAAAC,eAAM,EACfC,mBAAK,CAACC,IAAI,EACVd,IAAI,IAAIa,mBAAK,CAACb,IAAI,EAClBE,QAAQ,GAAGW,mBAAK,oBAAaV,KAAK,EAAG,GAAGJ,MAAM,GAAGc,mBAAK,CAACd,MAAM,GAAGK,KAAK,GAAGS,mBAAK,CAACT,KAAK,GAAGS,mBAAK,CAACE,SAAS,EACrGT,SAAS,IAAIO,mBAAK,CAACP,SAAS,EAC5BC,SAAS,IAAIM,mBAAK,CAACN,SAAS,EAC5BC,MAAM,CAACG,SAAS;EACjB,IAEHV,QAAQ,CACT;AAAA;AAAC;AAEJH,IAAI,CAACkB,WAAW,GAAG,gBAAgB;AAEnClB,IAAI,CAACmB,SAAS,GAAG;EACflB,MAAM,EAAEmB,kBAAS,CAACC,IAAI;EACtBnB,IAAI,EAAEkB,kBAAS,CAACC,IAAI;EACpBlB,QAAQ,EAAEiB,kBAAS,CAACE,SAAS,CAAC,CAACF,kBAAS,CAACG,MAAM,EAAEH,kBAAS,CAACI,MAAM,EAAEJ,kBAAS,CAACK,KAAK,CAAC,CAAC;EACpFrB,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,KAAK,EAAEe,kBAAS,CAACI,MAAM;EACvBlB,KAAK,EAAEc,kBAAS,CAACC,IAAI;EACrBd,GAAG,EAAEa,kBAAS,CAACG,MAAM;EACrBf,SAAS,EAAEY,kBAAS,CAACC,IAAI;EACzBZ,SAAS,EAAEW,kBAAS,CAACC;AACvB,CAAC"}
|
|
@@ -29,6 +29,7 @@ Story.args = (_Story$args = {
|
|
|
29
29
|
level: 3,
|
|
30
30
|
small: false,
|
|
31
31
|
tag: 'span',
|
|
32
|
+
underline: false,
|
|
32
33
|
upperCase: false
|
|
33
34
|
}, _defineProperty(_Story$args, 'data-testid', 'test-story'), _defineProperty(_Story$args, "style", {}), _Story$args);
|
|
34
35
|
Story.argTypes = {};
|
|
@@ -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 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 // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEf;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,6BAAC,UAAI,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEpDD,KAAK,CAACE,SAAS,GAAG,MAAM;AAExBF,KAAK,CAACG,IAAI;EACRC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE,KAAK;EACXC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE,MAAM;EACXC,SAAS,EAAE;AAAK,gCAEf,aAAa,EAAG,YAAY,yCACtB,CAAC,CAAC,eACV;
|
|
1
|
+
{"version":3,"file":"Text.stories.js","names":["title","Story","props","storyName","args","action","bold","children","headline","level","small","tag","underline","upperCase","argTypes"],"sources":["../../../src/primitives/Text/Text.stories.jsx"],"sourcesContent":["import 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 underline: false,\n upperCase: false,\n // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEf;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,6BAAC,UAAI,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEpDD,KAAK,CAACE,SAAS,GAAG,MAAM;AAExBF,KAAK,CAACG,IAAI;EACRC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE,KAAK;EACXC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,KAAK;EACfC,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE,MAAM;EACXC,SAAS,EAAE,KAAK;EAChBC,SAAS,EAAE;AAAK,gCAEf,aAAa,EAAG,YAAY,yCACtB,CAAC,CAAC,eACV;AAEDZ,KAAK,CAACa,QAAQ,GAAG,CAAC,CAAC"}
|
|
@@ -100,6 +100,16 @@ exports[`primitive:<Text> prop:small 1`] = `
|
|
|
100
100
|
</DocumentFragment>
|
|
101
101
|
`;
|
|
102
102
|
|
|
103
|
+
exports[`primitive:<Text> prop:underline 1`] = `
|
|
104
|
+
<DocumentFragment>
|
|
105
|
+
<span
|
|
106
|
+
class="text paragraph underline"
|
|
107
|
+
>
|
|
108
|
+
Lorem Ipsum
|
|
109
|
+
</span>
|
|
110
|
+
</DocumentFragment>
|
|
111
|
+
`;
|
|
112
|
+
|
|
103
113
|
exports[`primitive:<Text> prop:upperCase 1`] = `
|
|
104
114
|
<DocumentFragment>
|
|
105
115
|
<span
|
|
@@ -9,7 +9,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _ViewModule = _interopRequireDefault(require("./View.module.css"));
|
|
12
|
-
var _excluded = ["children", "fit", "row", "tag"];
|
|
12
|
+
var _excluded = ["children", "fit", "row", "tag", "wide"];
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -24,9 +24,10 @@ var View = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
24
24
|
row = _ref.row,
|
|
25
25
|
_ref$tag = _ref.tag,
|
|
26
26
|
tag = _ref$tag === void 0 ? 'div' : _ref$tag,
|
|
27
|
+
wide = _ref.wide,
|
|
27
28
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
28
29
|
return /*#__PURE__*/_react.default.createElement(tag, _objectSpread(_objectSpread({}, others), {}, {
|
|
29
|
-
className: (0, _helpers.styles)(_ViewModule.default.view, fit && _ViewModule.default.fit, row && _ViewModule.default.row, others.className),
|
|
30
|
+
className: (0, _helpers.styles)(_ViewModule.default.view, fit && _ViewModule.default.fit, row && _ViewModule.default.row, wide && _ViewModule.default.wide, others.className),
|
|
30
31
|
ref: ref
|
|
31
32
|
}), children);
|
|
32
33
|
});
|
|
@@ -36,6 +37,7 @@ View.propTypes = {
|
|
|
36
37
|
children: _propTypes.default.node,
|
|
37
38
|
fit: _propTypes.default.bool,
|
|
38
39
|
row: _propTypes.default.bool,
|
|
39
|
-
tag: _propTypes.default.string
|
|
40
|
+
tag: _propTypes.default.string,
|
|
41
|
+
wide: _propTypes.default.bool
|
|
40
42
|
};
|
|
41
43
|
//# sourceMappingURL=View.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.js","names":["View","React","forwardRef","ref","children","fit","row","tag","others","createElement","className","styles","style","view","displayName","propTypes","PropTypes","node","bool","string"],"sources":["../../../src/primitives/View/View.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport style from './View.module.css';\n\nconst View = React.forwardRef(({ children, fit, row, tag = 'div', ...others }, ref) =>\n React.createElement(\n tag,\n {\n ...others,\n className: styles(style.view, fit && style.fit, row && style.row, others.className),\n ref: ref,\n },\n children,\n ),\n);\n\nView.displayName = 'Primitive:View';\n\nView.propTypes = {\n children: PropTypes.node,\n fit: PropTypes.bool,\n row: PropTypes.bool,\n tag: PropTypes.string,\n};\n\nexport { View };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEtC,IAAMA,IAAI,gBAAGC,cAAK,CAACC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"View.js","names":["View","React","forwardRef","ref","children","fit","row","tag","wide","others","createElement","className","styles","style","view","displayName","propTypes","PropTypes","node","bool","string"],"sources":["../../../src/primitives/View/View.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport style from './View.module.css';\n\nconst View = React.forwardRef(({ children, fit, row, tag = 'div', wide, ...others }, ref) =>\n React.createElement(\n tag,\n {\n ...others,\n className: styles(style.view, fit && style.fit, row && style.row, wide && style.wide, others.className),\n ref: ref,\n },\n children,\n ),\n);\n\nView.displayName = 'Primitive:View';\n\nView.propTypes = {\n children: PropTypes.node,\n fit: PropTypes.bool,\n row: PropTypes.bool,\n tag: PropTypes.string,\n wide: PropTypes.bool,\n};\n\nexport { View };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEtC,IAAMA,IAAI,gBAAGC,cAAK,CAACC,UAAU,CAAC,gBAAuDC,GAAG;EAAA,IAAvDC,QAAQ,QAARA,QAAQ;IAAEC,GAAG,QAAHA,GAAG;IAAEC,GAAG,QAAHA,GAAG;IAAA,gBAAEC,GAAG;IAAHA,GAAG,yBAAG,KAAK;IAAEC,IAAI,QAAJA,IAAI;IAAKC,MAAM;EAAA,oBAC/ER,cAAK,CAACS,aAAa,CACjBH,GAAG,kCAEEE,MAAM;IACTE,SAAS,EAAE,IAAAC,eAAM,EAACC,mBAAK,CAACC,IAAI,EAAET,GAAG,IAAIQ,mBAAK,CAACR,GAAG,EAAEC,GAAG,IAAIO,mBAAK,CAACP,GAAG,EAAEE,IAAI,IAAIK,mBAAK,CAACL,IAAI,EAAEC,MAAM,CAACE,SAAS,CAAC;IACvGR,GAAG,EAAEA;EAAG,IAEVC,QAAQ,CACT;AAAA,EACF;AAAC;AAEFJ,IAAI,CAACe,WAAW,GAAG,gBAAgB;AAEnCf,IAAI,CAACgB,SAAS,GAAG;EACfZ,QAAQ,EAAEa,kBAAS,CAACC,IAAI;EACxBb,GAAG,EAAEY,kBAAS,CAACE,IAAI;EACnBb,GAAG,EAAEW,kBAAS,CAACE,IAAI;EACnBZ,GAAG,EAAEU,kBAAS,CAACG,MAAM;EACrBZ,IAAI,EAAES,kBAAS,CAACE;AAClB,CAAC"}
|
|
@@ -28,7 +28,8 @@ Story.storyName = 'View';
|
|
|
28
28
|
Story.args = (_Story$args = {
|
|
29
29
|
fit: false,
|
|
30
30
|
row: false,
|
|
31
|
-
tag: 'div'
|
|
31
|
+
tag: 'div',
|
|
32
|
+
wide: false
|
|
32
33
|
}, _defineProperty(_Story$args, 'data-testid', 'test-story'), _defineProperty(_Story$args, "style", {}), _Story$args);
|
|
33
34
|
Story.argTypes = {};
|
|
34
35
|
//# 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 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 // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEf;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBACzB,6BAAC,UAAI,EAAKA,KAAK,eACb;IAAM,SAAS,EAAC;EAAU,aAAe,eACzC;IAAM,SAAS,EAAC;EAAU,aAAe,CACpC;AAAA,CACR;AAAC;AAEFD,KAAK,CAACE,SAAS,GAAG,MAAM;AAExBF,KAAK,CAACG,IAAI;EACRC,GAAG,EAAE,KAAK;EACVC,GAAG,EAAE,KAAK;EACVC,GAAG,EAAE;AAAK,
|
|
1
|
+
{"version":3,"file":"View.stories.js","names":["title","Story","props","storyName","args","fit","row","tag","wide","argTypes"],"sources":["../../../src/primitives/View/View.stories.jsx"],"sourcesContent":["import 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 wide: false,\n // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA;AAEA;AAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEf;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBACzB,6BAAC,UAAI,EAAKA,KAAK,eACb;IAAM,SAAS,EAAC;EAAU,aAAe,eACzC;IAAM,SAAS,EAAC;EAAU,aAAe,CACpC;AAAA,CACR;AAAC;AAEFD,KAAK,CAACE,SAAS,GAAG,MAAM;AAExBF,KAAK,CAACG,IAAI;EACRC,GAAG,EAAE,KAAK;EACVC,GAAG,EAAE,KAAK;EACVC,GAAG,EAAE,KAAK;EACVC,IAAI,EAAE;AAAK,gCAEV,aAAa,EAAG,YAAY,yCACtB,CAAC,CAAC,eACV;AAEDP,KAAK,CAACQ,QAAQ,GAAG,CAAC,CAAC"}
|
|
@@ -44,6 +44,14 @@ exports[`primitive:<View> prop:tag 1`] = `
|
|
|
44
44
|
</DocumentFragment>
|
|
45
45
|
`;
|
|
46
46
|
|
|
47
|
+
exports[`primitive:<View> prop:wide 1`] = `
|
|
48
|
+
<DocumentFragment>
|
|
49
|
+
<div
|
|
50
|
+
class="view wide"
|
|
51
|
+
/>
|
|
52
|
+
</DocumentFragment>
|
|
53
|
+
`;
|
|
54
|
+
|
|
47
55
|
exports[`primitive:<View> renders 1`] = `
|
|
48
56
|
<DocumentFragment>
|
|
49
57
|
<div
|