@mirai/ui 1.0.221 → 1.1.0-beta
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/build/components/Action/Action.js +5 -3
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.module.css +49 -50
- package/build/components/Action/Action.stories.js +8 -5
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +40 -26
- package/build/components/Button/Button.js +7 -5
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +30 -19
- package/build/components/Calendar/Calendar.Month.js +6 -4
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +6 -6
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.Weekdays.js +6 -3
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -1
- package/build/components/Calendar/Calendar.js +3 -3
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +15608 -15576
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +9 -9
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +42 -42
- package/build/components/InputNumber/InputNumber.js +9 -7
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +129 -114
- package/build/components/InputOption/InputOption.js +7 -4
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +84 -71
- package/build/components/InputPhone/InputPhone.js +11 -11
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +331 -331
- package/build/components/InputSelect/InputSelect.js +7 -7
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +112 -112
- package/build/components/InputText/InputText.js +10 -10
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +131 -130
- package/build/components/InputText/partials/InputText.Hint.js +5 -2
- package/build/components/InputText/partials/InputText.Hint.js.map +1 -1
- package/build/components/InputText/partials/InputText.IconState.js +5 -2
- package/build/components/InputText/partials/InputText.IconState.js.map +1 -1
- package/build/components/InputText/partials/InputText.Label.js +6 -3
- package/build/components/InputText/partials/InputText.Label.js.map +1 -1
- package/build/components/Menu/Menu.Option.js +8 -5
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +6 -3
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +68 -55
- package/build/components/Modal/Modal.js +8 -8
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +88 -69
- package/build/components/Notification/Notification.js +8 -5
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +143 -142
- package/build/components/Progress/Progress.js +6 -3
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +18 -18
- package/build/components/Slider/Slider.js +11 -11
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +248 -230
- package/build/components/Table/Table.ColumnFilter.js +9 -9
- package/build/components/Table/Table.ColumnFilter.js.map +1 -1
- package/build/components/Table/Table.Filter.js +7 -4
- package/build/components/Table/Table.Filter.js.map +1 -1
- package/build/components/Table/Table.Row.js +7 -8
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.js +3 -3
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/Table.stories.js +4 -5
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +222 -192
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +971 -949
- package/build/components/Tooltip/Tooltip.js +4 -4
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +34 -24
- package/build/primitives/Checkbox/Checkbox.js +7 -3
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +16 -16
- package/build/primitives/Icon/Icon.js +5 -3
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +60 -60
- package/build/primitives/Input/Input.js +2 -2
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Layer/Layer.js +4 -3
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +42 -36
- package/build/primitives/Pressable/Pressable.constants.js +1 -1
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +11 -5
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +14 -10
- package/build/primitives/Primitive/Primitive.js +2 -2
- package/build/primitives/Primitive/Primitive.js.map +1 -1
- package/build/primitives/Primitive/Primitive.module.css +241 -0
- package/build/primitives/Primitive/__tests__/__snapshots__/Primitive.test.js.snap +7 -7
- package/build/primitives/Primitive/helpers/getTag.js +32 -0
- package/build/primitives/Primitive/helpers/getTag.js.map +1 -0
- package/build/primitives/Primitive/helpers/index.js +11 -0
- package/build/primitives/Primitive/helpers/index.js.map +1 -1
- package/build/primitives/Radio/Radio.js +8 -5
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +21 -21
- package/build/primitives/ScrollView/ScrollView.js +3 -3
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +6 -5
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +20 -20
- package/build/primitives/Select/Select.js +2 -2
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Switch/Switch.js +8 -5
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +25 -25
- package/build/primitives/Text/Text.js +7 -4
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.module.css +4 -4
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +38 -38
- package/build/primitives/View/View.js +5 -3
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +10 -10
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","names":["Switch","checked","disabled","name","onChange","others","handleChange","event","role","undefined","styles","style","switch","className","area","toggle","displayName","propTypes","PropTypes","bool","string","isRequired","func"],"sources":["../../../src/primitives/Switch/Switch.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport style from './Switch.module.css';\n\nconst Switch = ({ checked = false, disabled, name, onChange, ...others }) => {\n const handleChange = (event) => {\n onChange && onChange(!checked, event);\n };\n\n return (\n <Primitive\n {...others}\n role={others.role || 'switch'}\n onClick={!disabled ? handleChange : undefined}\n className={styles(style.switch, others.className)}\n >\n <Primitive checked={checked} disabled={disabled} name={name} tag=\"input\" type=\"checkbox\" onChange={() => {}} />\n <Primitive className={style.area}>\n <Primitive
|
|
1
|
+
{"version":3,"file":"Switch.js","names":["Switch","checked","disabled","name","onChange","others","handleChange","event","role","undefined","styles","style","switch","className","area","toggle","displayName","propTypes","PropTypes","bool","string","isRequired","func"],"sources":["../../../src/primitives/Switch/Switch.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport * as style from './Switch.module.css';\n\nconst Switch = ({ checked = false, disabled, name, onChange, ...others }) => {\n const handleChange = (event) => {\n onChange && onChange(!checked, event);\n };\n\n return (\n <Primitive\n {...others}\n role={others.role || 'switch'}\n tag=\"switch\"\n onClick={!disabled ? handleChange : undefined}\n className={styles(style.switch, others.className)}\n >\n <Primitive checked={checked} disabled={disabled} name={name} tag=\"input\" type=\"checkbox\" onChange={() => {}} />\n <Primitive className={style.area}>\n <Primitive className={style.toggle} />\n </Primitive>\n </Primitive>\n );\n};\n\nSwitch.displayName = 'Primitive:Switch';\n\nSwitch.propTypes = {\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n name: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n};\n\nexport { Switch };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA6C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE7C,IAAMA,MAAM,GAAG,SAATA,MAAM,OAAiE;EAAA,wBAA3DC,OAAO;IAAPA,OAAO,6BAAG,KAAK;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,IAAI,QAAJA,IAAI;IAAEC,QAAQ,QAARA,QAAQ;IAAKC,MAAM;EACpE,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAIC,KAAK,EAAK;IAC9BH,QAAQ,IAAIA,QAAQ,CAAC,CAACH,OAAO,EAAEM,KAAK,CAAC;EACvC,CAAC;EAED,oBACE,6BAAC,oBAAS,eACJF,MAAM;IACV,IAAI,EAAEA,MAAM,CAACG,IAAI,IAAI,QAAS;IAC9B,GAAG,EAAC,QAAQ;IACZ,OAAO,EAAE,CAACN,QAAQ,GAAGI,YAAY,GAAGG,SAAU;IAC9C,SAAS,EAAE,IAAAC,eAAM,EAACC,KAAK,CAACC,MAAM,EAAEP,MAAM,CAACQ,SAAS;EAAE,iBAElD,6BAAC,oBAAS;IAAC,OAAO,EAAEZ,OAAQ;IAAC,QAAQ,EAAEC,QAAS;IAAC,IAAI,EAAEC,IAAK;IAAC,GAAG,EAAC,OAAO;IAAC,IAAI,EAAC,UAAU;IAAC,QAAQ,EAAE,oBAAM,CAAC;EAAE,EAAG,eAC/G,6BAAC,oBAAS;IAAC,SAAS,EAAEQ,KAAK,CAACG;EAAK,gBAC/B,6BAAC,oBAAS;IAAC,SAAS,EAAEH,KAAK,CAACI;EAAO,EAAG,CAC5B,CACF;AAEhB,CAAC;AAAC;AAEFf,MAAM,CAACgB,WAAW,GAAG,kBAAkB;AAEvChB,MAAM,CAACiB,SAAS,GAAG;EACjBhB,OAAO,EAAEiB,kBAAS,CAACC,IAAI;EACvBjB,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,IAAI,EAAEe,kBAAS,CAACE,MAAM,CAACC,UAAU;EACjCjB,QAAQ,EAAEc,kBAAS,CAACI;AACtB,CAAC"}
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`primitive:<Switch> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_switch
|
|
6
6
|
class="switch mirai"
|
|
7
7
|
>
|
|
8
8
|
<input
|
|
9
9
|
name="name"
|
|
10
10
|
type="checkbox"
|
|
11
11
|
/>
|
|
12
|
-
<
|
|
12
|
+
<ui_primitive
|
|
13
13
|
class="area"
|
|
14
14
|
>
|
|
15
|
-
<
|
|
15
|
+
<ui_primitive
|
|
16
16
|
class="toggle"
|
|
17
17
|
/>
|
|
18
|
-
</
|
|
19
|
-
</
|
|
18
|
+
</ui_primitive>
|
|
19
|
+
</ui_switch>
|
|
20
20
|
</DocumentFragment>
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
exports[`primitive:<Switch> prop:checked 1`] = `
|
|
24
24
|
<DocumentFragment>
|
|
25
|
-
<
|
|
25
|
+
<ui_switch
|
|
26
26
|
class="switch"
|
|
27
27
|
>
|
|
28
28
|
<input
|
|
@@ -30,20 +30,20 @@ exports[`primitive:<Switch> prop:checked 1`] = `
|
|
|
30
30
|
name="name"
|
|
31
31
|
type="checkbox"
|
|
32
32
|
/>
|
|
33
|
-
<
|
|
33
|
+
<ui_primitive
|
|
34
34
|
class="area"
|
|
35
35
|
>
|
|
36
|
-
<
|
|
36
|
+
<ui_primitive
|
|
37
37
|
class="toggle"
|
|
38
38
|
/>
|
|
39
|
-
</
|
|
40
|
-
</
|
|
39
|
+
</ui_primitive>
|
|
40
|
+
</ui_switch>
|
|
41
41
|
</DocumentFragment>
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
44
|
exports[`primitive:<Switch> prop:disabled 1`] = `
|
|
45
45
|
<DocumentFragment>
|
|
46
|
-
<
|
|
46
|
+
<ui_switch
|
|
47
47
|
class="switch"
|
|
48
48
|
>
|
|
49
49
|
<input
|
|
@@ -51,40 +51,40 @@ exports[`primitive:<Switch> prop:disabled 1`] = `
|
|
|
51
51
|
name="name"
|
|
52
52
|
type="checkbox"
|
|
53
53
|
/>
|
|
54
|
-
<
|
|
54
|
+
<ui_primitive
|
|
55
55
|
class="area"
|
|
56
56
|
>
|
|
57
|
-
<
|
|
57
|
+
<ui_primitive
|
|
58
58
|
class="toggle"
|
|
59
59
|
/>
|
|
60
|
-
</
|
|
61
|
-
</
|
|
60
|
+
</ui_primitive>
|
|
61
|
+
</ui_switch>
|
|
62
62
|
</DocumentFragment>
|
|
63
63
|
`;
|
|
64
64
|
|
|
65
65
|
exports[`primitive:<Switch> render 1`] = `
|
|
66
66
|
<DocumentFragment>
|
|
67
|
-
<
|
|
67
|
+
<ui_switch
|
|
68
68
|
class="switch"
|
|
69
69
|
>
|
|
70
70
|
<input
|
|
71
71
|
name="name"
|
|
72
72
|
type="checkbox"
|
|
73
73
|
/>
|
|
74
|
-
<
|
|
74
|
+
<ui_primitive
|
|
75
75
|
class="area"
|
|
76
76
|
>
|
|
77
|
-
<
|
|
77
|
+
<ui_primitive
|
|
78
78
|
class="toggle"
|
|
79
79
|
/>
|
|
80
|
-
</
|
|
81
|
-
</
|
|
80
|
+
</ui_primitive>
|
|
81
|
+
</ui_switch>
|
|
82
82
|
</DocumentFragment>
|
|
83
83
|
`;
|
|
84
84
|
|
|
85
85
|
exports[`primitive:<Switch> testId 1`] = `
|
|
86
86
|
<DocumentFragment>
|
|
87
|
-
<
|
|
87
|
+
<ui_switch
|
|
88
88
|
class="switch"
|
|
89
89
|
data-testid="mirai"
|
|
90
90
|
>
|
|
@@ -92,13 +92,13 @@ exports[`primitive:<Switch> testId 1`] = `
|
|
|
92
92
|
name="name"
|
|
93
93
|
type="checkbox"
|
|
94
94
|
/>
|
|
95
|
-
<
|
|
95
|
+
<ui_primitive
|
|
96
96
|
class="area"
|
|
97
97
|
>
|
|
98
|
-
<
|
|
98
|
+
<ui_primitive
|
|
99
99
|
class="toggle"
|
|
100
100
|
/>
|
|
101
|
-
</
|
|
102
|
-
</
|
|
101
|
+
</ui_primitive>
|
|
102
|
+
</ui_switch>
|
|
103
103
|
</DocumentFragment>
|
|
104
104
|
`;
|
|
@@ -10,8 +10,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _Primitive = require("../Primitive");
|
|
12
12
|
var _helpers2 = require("./helpers");
|
|
13
|
-
var
|
|
13
|
+
var style = _interopRequireWildcard(require("./Text.module.css"));
|
|
14
14
|
var _excluded = ["accent", "action", "bold", "children", "headline", "level", "lighten", "markdown", "small", "tag", "tiny", "underline", "upperCase", "wide"];
|
|
15
|
+
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); }
|
|
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; }
|
|
15
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
18
|
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; }
|
|
17
19
|
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; }
|
|
@@ -32,7 +34,8 @@ var Text = function Text(_ref) {
|
|
|
32
34
|
_ref$markdown = _ref.markdown,
|
|
33
35
|
markdown = _ref$markdown === void 0 ? true : _ref$markdown,
|
|
34
36
|
small = _ref.small,
|
|
35
|
-
tag = _ref.tag,
|
|
37
|
+
_ref$tag = _ref.tag,
|
|
38
|
+
tag = _ref$tag === void 0 ? 'text' : _ref$tag,
|
|
36
39
|
tiny = _ref.tiny,
|
|
37
40
|
underline = _ref.underline,
|
|
38
41
|
upperCase = _ref.upperCase,
|
|
@@ -40,8 +43,8 @@ var Text = function Text(_ref) {
|
|
|
40
43
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
41
44
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _objectSpread(_objectSpread({}, others), {}, {
|
|
42
45
|
role: others.role || 'text',
|
|
43
|
-
tag:
|
|
44
|
-
className: (0, _helpers.styles)(
|
|
46
|
+
tag: headline ? "h".concat(level) : tag,
|
|
47
|
+
className: (0, _helpers.styles)(style.text, accent && style.accent, bold && style.bold, headline ? style["h".concat(level)] : action ? style.action : small ? style.small : tiny ? style.tiny : style.paragraph, lighten && style.lighten, underline && style.underline, upperCase && style.upperCase, wide && style.wide, others.className)
|
|
45
48
|
}), markdown ? (0, _helpers2.parseMarkdown)(children) : children);
|
|
46
49
|
};
|
|
47
50
|
exports.Text = Text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":["Text","accent","action","bold","children","headline","level","lighten","markdown","small","tag","tiny","underline","upperCase","wide","others","React","createElement","Primitive","role","className","styles","style","text","paragraph","parseMarkdown","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 { Primitive } from '../Primitive';\nimport { parseMarkdown } from './helpers';\nimport style from './Text.module.css';\n\nconst Text = ({\n accent,\n action,\n bold,\n children,\n headline,\n level = 3,\n lighten,\n markdown = true,\n small,\n tag,\n tiny,\n underline,\n upperCase,\n wide,\n ...others\n}) =>\n React.createElement(\n Primitive,\n {\n ...others,\n role: others.role || 'text',\n tag:
|
|
1
|
+
{"version":3,"file":"Text.js","names":["Text","accent","action","bold","children","headline","level","lighten","markdown","small","tag","tiny","underline","upperCase","wide","others","React","createElement","Primitive","role","className","styles","style","text","paragraph","parseMarkdown","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 { Primitive } from '../Primitive';\nimport { parseMarkdown } from './helpers';\nimport * as style from './Text.module.css';\n\nconst Text = ({\n accent,\n action,\n bold,\n children,\n headline,\n level = 3,\n lighten,\n markdown = true,\n small,\n tag = 'text',\n tiny,\n underline,\n upperCase,\n wide,\n ...others\n}) =>\n React.createElement(\n Primitive,\n {\n ...others,\n role: others.role || 'text',\n tag: headline ? `h${level}` : tag,\n className: styles(\n style.text,\n accent && style.accent,\n bold && style.bold,\n headline\n ? style[`h${level}`]\n : action\n ? style.action\n : small\n ? style.small\n : tiny\n ? style.tiny\n : style.paragraph,\n lighten && style.lighten,\n underline && style.underline,\n upperCase && style.upperCase,\n wide && style.wide,\n others.className,\n ),\n },\n markdown ? parseMarkdown(children) : children,\n );\n\nText.displayName = 'Primitive:Text';\n\nText.propTypes = {\n accent: PropTypes.bool,\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 lighten: PropTypes.bool,\n markdown: PropTypes.bool,\n small: PropTypes.bool,\n tag: PropTypes.string,\n tiny: PropTypes.bool,\n underline: PropTypes.bool,\n upperCase: PropTypes.bool,\n wide: PropTypes.bool,\n};\n\nexport { Text };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAA2C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE3C,IAAMA,IAAI,GAAG,SAAPA,IAAI;EAAA,IACRC,MAAM,QAANA,MAAM;IACNC,MAAM,QAANA,MAAM;IACNC,IAAI,QAAJA,IAAI;IACJC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IAAA,kBACRC,KAAK;IAALA,KAAK,2BAAG,CAAC;IACTC,OAAO,QAAPA,OAAO;IAAA,qBACPC,QAAQ;IAARA,QAAQ,8BAAG,IAAI;IACfC,KAAK,QAALA,KAAK;IAAA,gBACLC,GAAG;IAAHA,GAAG,yBAAG,MAAM;IACZC,IAAI,QAAJA,IAAI;IACJC,SAAS,QAATA,SAAS;IACTC,SAAS,QAATA,SAAS;IACTC,IAAI,QAAJA,IAAI;IACDC,MAAM;EAAA,oBAETC,cAAK,CAACC,aAAa,CACjBC,oBAAS,kCAEJH,MAAM;IACTI,IAAI,EAAEJ,MAAM,CAACI,IAAI,IAAI,MAAM;IAC3BT,GAAG,EAAEL,QAAQ,cAAOC,KAAK,IAAKI,GAAG;IACjCU,SAAS,EAAE,IAAAC,eAAM,EACfC,KAAK,CAACC,IAAI,EACVtB,MAAM,IAAIqB,KAAK,CAACrB,MAAM,EACtBE,IAAI,IAAImB,KAAK,CAACnB,IAAI,EAClBE,QAAQ,GACJiB,KAAK,YAAKhB,KAAK,EAAG,GAClBJ,MAAM,GACNoB,KAAK,CAACpB,MAAM,GACZO,KAAK,GACLa,KAAK,CAACb,KAAK,GACXE,IAAI,GACJW,KAAK,CAACX,IAAI,GACVW,KAAK,CAACE,SAAS,EACnBjB,OAAO,IAAIe,KAAK,CAACf,OAAO,EACxBK,SAAS,IAAIU,KAAK,CAACV,SAAS,EAC5BC,SAAS,IAAIS,KAAK,CAACT,SAAS,EAC5BC,IAAI,IAAIQ,KAAK,CAACR,IAAI,EAClBC,MAAM,CAACK,SAAS;EACjB,IAEHZ,QAAQ,GAAG,IAAAiB,uBAAa,EAACrB,QAAQ,CAAC,GAAGA,QAAQ,CAC9C;AAAA;AAAC;AAEJJ,IAAI,CAAC0B,WAAW,GAAG,gBAAgB;AAEnC1B,IAAI,CAAC2B,SAAS,GAAG;EACf1B,MAAM,EAAE2B,kBAAS,CAACC,IAAI;EACtB3B,MAAM,EAAE0B,kBAAS,CAACC,IAAI;EACtB1B,IAAI,EAAEyB,kBAAS,CAACC,IAAI;EACpBzB,QAAQ,EAAEwB,kBAAS,CAACE,SAAS,CAAC,CAACF,kBAAS,CAACG,MAAM,EAAEH,kBAAS,CAACI,MAAM,EAAEJ,kBAAS,CAACK,KAAK,CAAC,CAAC;EACpF5B,QAAQ,EAAEuB,kBAAS,CAACC,IAAI;EACxBvB,KAAK,EAAEsB,kBAAS,CAACI,MAAM;EACvBzB,OAAO,EAAEqB,kBAAS,CAACC,IAAI;EACvBrB,QAAQ,EAAEoB,kBAAS,CAACC,IAAI;EACxBpB,KAAK,EAAEmB,kBAAS,CAACC,IAAI;EACrBnB,GAAG,EAAEkB,kBAAS,CAACG,MAAM;EACrBpB,IAAI,EAAEiB,kBAAS,CAACC,IAAI;EACpBjB,SAAS,EAAEgB,kBAAS,CAACC,IAAI;EACzBhB,SAAS,EAAEe,kBAAS,CAACC,IAAI;EACzBf,IAAI,EAAEc,kBAAS,CAACC;AAClB,CAAC"}
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
font-weight: var(--mirai-ui-font-bold-weight);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.h1 {
|
|
22
22
|
font-size: var(--mirai-ui-font-size-headline-1);
|
|
23
23
|
line-height: var(--mirai-ui-line-height-headline-1);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
.h2 {
|
|
27
27
|
font-size: var(--mirai-ui-font-size-headline-2);
|
|
28
28
|
line-height: var(--mirai-ui-line-height-headline-2);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.
|
|
31
|
+
.h3 {
|
|
32
32
|
font-size: var(--mirai-ui-font-size-headline-3);
|
|
33
33
|
line-height: var(--mirai-ui-line-height-headline-3);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.h4 {
|
|
37
37
|
font-size: var(--mirai-ui-font-size-headline-4);
|
|
38
38
|
line-height: var(--mirai-ui-line-height-headline-4);
|
|
39
39
|
}
|
|
@@ -2,107 +2,107 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`primitive:<Text> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_text
|
|
6
6
|
class="text paragraph mirai"
|
|
7
7
|
>
|
|
8
8
|
Lorem Ipsum
|
|
9
|
-
</
|
|
9
|
+
</ui_text>
|
|
10
10
|
</DocumentFragment>
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
exports[`primitive:<Text> prop:accent 1`] = `
|
|
14
14
|
<DocumentFragment>
|
|
15
|
-
<
|
|
15
|
+
<ui_text
|
|
16
16
|
class="text accent paragraph"
|
|
17
17
|
>
|
|
18
18
|
Lorem Ipsum
|
|
19
|
-
</
|
|
19
|
+
</ui_text>
|
|
20
20
|
</DocumentFragment>
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
exports[`primitive:<Text> prop:action 1`] = `
|
|
24
24
|
<DocumentFragment>
|
|
25
|
-
<
|
|
25
|
+
<ui_text
|
|
26
26
|
class="text action"
|
|
27
27
|
>
|
|
28
28
|
Lorem Ipsum
|
|
29
|
-
</
|
|
29
|
+
</ui_text>
|
|
30
30
|
</DocumentFragment>
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
33
|
exports[`primitive:<Text> prop:bold 1`] = `
|
|
34
34
|
<DocumentFragment>
|
|
35
|
-
<
|
|
35
|
+
<ui_text
|
|
36
36
|
class="text bold paragraph"
|
|
37
37
|
>
|
|
38
38
|
Lorem Ipsum
|
|
39
|
-
</
|
|
39
|
+
</ui_text>
|
|
40
40
|
</DocumentFragment>
|
|
41
41
|
`;
|
|
42
42
|
|
|
43
43
|
exports[`primitive:<Text> prop:headline & level:1 1`] = `
|
|
44
44
|
<DocumentFragment>
|
|
45
|
-
<
|
|
45
|
+
<ui_h1
|
|
46
46
|
class="text headline-1"
|
|
47
47
|
>
|
|
48
48
|
Lorem Ipsum
|
|
49
|
-
</
|
|
49
|
+
</ui_h1>
|
|
50
50
|
</DocumentFragment>
|
|
51
51
|
`;
|
|
52
52
|
|
|
53
53
|
exports[`primitive:<Text> prop:headline & level:2 1`] = `
|
|
54
54
|
<DocumentFragment>
|
|
55
|
-
<
|
|
55
|
+
<ui_h2
|
|
56
56
|
class="text headline-2"
|
|
57
57
|
>
|
|
58
58
|
Lorem Ipsum
|
|
59
|
-
</
|
|
59
|
+
</ui_h2>
|
|
60
60
|
</DocumentFragment>
|
|
61
61
|
`;
|
|
62
62
|
|
|
63
63
|
exports[`primitive:<Text> prop:headline & level:3 1`] = `
|
|
64
64
|
<DocumentFragment>
|
|
65
|
-
<
|
|
65
|
+
<ui_h3
|
|
66
66
|
class="text headline-3"
|
|
67
67
|
>
|
|
68
68
|
Lorem Ipsum
|
|
69
|
-
</
|
|
69
|
+
</ui_h3>
|
|
70
70
|
</DocumentFragment>
|
|
71
71
|
`;
|
|
72
72
|
|
|
73
73
|
exports[`primitive:<Text> prop:headline & level:4 1`] = `
|
|
74
74
|
<DocumentFragment>
|
|
75
|
-
<
|
|
75
|
+
<ui_h4
|
|
76
76
|
class="text headline-4"
|
|
77
77
|
>
|
|
78
78
|
Lorem Ipsum
|
|
79
|
-
</
|
|
79
|
+
</ui_h4>
|
|
80
80
|
</DocumentFragment>
|
|
81
81
|
`;
|
|
82
82
|
|
|
83
83
|
exports[`primitive:<Text> prop:headline 1`] = `
|
|
84
84
|
<DocumentFragment>
|
|
85
|
-
<
|
|
85
|
+
<ui_h3
|
|
86
86
|
class="text headline-3"
|
|
87
87
|
>
|
|
88
88
|
Lorem Ipsum
|
|
89
|
-
</
|
|
89
|
+
</ui_h3>
|
|
90
90
|
</DocumentFragment>
|
|
91
91
|
`;
|
|
92
92
|
|
|
93
93
|
exports[`primitive:<Text> prop:lighten 1`] = `
|
|
94
94
|
<DocumentFragment>
|
|
95
|
-
<
|
|
95
|
+
<ui_text
|
|
96
96
|
class="text paragraph lighten"
|
|
97
97
|
>
|
|
98
98
|
Lorem Ipsum
|
|
99
|
-
</
|
|
99
|
+
</ui_text>
|
|
100
100
|
</DocumentFragment>
|
|
101
101
|
`;
|
|
102
102
|
|
|
103
103
|
exports[`primitive:<Text> prop:markdown 1`] = `
|
|
104
104
|
<DocumentFragment>
|
|
105
|
-
<
|
|
105
|
+
<ui_text
|
|
106
106
|
class="text paragraph"
|
|
107
107
|
>
|
|
108
108
|
<span
|
|
@@ -116,87 +116,87 @@ exports[`primitive:<Text> prop:markdown 1`] = `
|
|
|
116
116
|
>
|
|
117
117
|
Ipsum
|
|
118
118
|
</span>
|
|
119
|
-
</
|
|
119
|
+
</ui_text>
|
|
120
120
|
</DocumentFragment>
|
|
121
121
|
`;
|
|
122
122
|
|
|
123
123
|
exports[`primitive:<Text> prop:small 1`] = `
|
|
124
124
|
<DocumentFragment>
|
|
125
|
-
<
|
|
125
|
+
<ui_text
|
|
126
126
|
class="text small"
|
|
127
127
|
>
|
|
128
128
|
Lorem Ipsum
|
|
129
|
-
</
|
|
129
|
+
</ui_text>
|
|
130
130
|
</DocumentFragment>
|
|
131
131
|
`;
|
|
132
132
|
|
|
133
133
|
exports[`primitive:<Text> prop:tag 1`] = `
|
|
134
134
|
<DocumentFragment>
|
|
135
|
-
<
|
|
135
|
+
<ui_tag
|
|
136
136
|
class="text paragraph"
|
|
137
137
|
>
|
|
138
138
|
Lorem Ipsum
|
|
139
|
-
</
|
|
139
|
+
</ui_tag>
|
|
140
140
|
</DocumentFragment>
|
|
141
141
|
`;
|
|
142
142
|
|
|
143
143
|
exports[`primitive:<Text> prop:tiny 1`] = `
|
|
144
144
|
<DocumentFragment>
|
|
145
|
-
<
|
|
145
|
+
<ui_text
|
|
146
146
|
class="text tiny"
|
|
147
147
|
>
|
|
148
148
|
Lorem Ipsum
|
|
149
|
-
</
|
|
149
|
+
</ui_text>
|
|
150
150
|
</DocumentFragment>
|
|
151
151
|
`;
|
|
152
152
|
|
|
153
153
|
exports[`primitive:<Text> prop:underline 1`] = `
|
|
154
154
|
<DocumentFragment>
|
|
155
|
-
<
|
|
155
|
+
<ui_text
|
|
156
156
|
class="text paragraph underline"
|
|
157
157
|
>
|
|
158
158
|
Lorem Ipsum
|
|
159
|
-
</
|
|
159
|
+
</ui_text>
|
|
160
160
|
</DocumentFragment>
|
|
161
161
|
`;
|
|
162
162
|
|
|
163
163
|
exports[`primitive:<Text> prop:upperCase 1`] = `
|
|
164
164
|
<DocumentFragment>
|
|
165
|
-
<
|
|
165
|
+
<ui_text
|
|
166
166
|
class="text paragraph upperCase"
|
|
167
167
|
>
|
|
168
168
|
Lorem Ipsum
|
|
169
|
-
</
|
|
169
|
+
</ui_text>
|
|
170
170
|
</DocumentFragment>
|
|
171
171
|
`;
|
|
172
172
|
|
|
173
173
|
exports[`primitive:<Text> prop:wide 1`] = `
|
|
174
174
|
<DocumentFragment>
|
|
175
|
-
<
|
|
175
|
+
<ui_text
|
|
176
176
|
class="text paragraph wide"
|
|
177
177
|
>
|
|
178
178
|
Lorem Ipsum
|
|
179
|
-
</
|
|
179
|
+
</ui_text>
|
|
180
180
|
</DocumentFragment>
|
|
181
181
|
`;
|
|
182
182
|
|
|
183
183
|
exports[`primitive:<Text> renders 1`] = `
|
|
184
184
|
<DocumentFragment>
|
|
185
|
-
<
|
|
185
|
+
<ui_text
|
|
186
186
|
class="text paragraph"
|
|
187
187
|
>
|
|
188
188
|
Lorem Ipsum
|
|
189
|
-
</
|
|
189
|
+
</ui_text>
|
|
190
190
|
</DocumentFragment>
|
|
191
191
|
`;
|
|
192
192
|
|
|
193
193
|
exports[`primitive:<Text> testId 1`] = `
|
|
194
194
|
<DocumentFragment>
|
|
195
|
-
<
|
|
195
|
+
<ui_text
|
|
196
196
|
class="text paragraph"
|
|
197
197
|
data-testid="mirai"
|
|
198
198
|
>
|
|
199
199
|
Lorem Ipsum
|
|
200
|
-
</
|
|
200
|
+
</ui_text>
|
|
201
201
|
</DocumentFragment>
|
|
202
202
|
`;
|
|
@@ -9,8 +9,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _Primitive = require("../Primitive");
|
|
12
|
-
var
|
|
12
|
+
var style = _interopRequireWildcard(require("./View.module.css"));
|
|
13
13
|
var _excluded = ["children", "fit", "forceRow", "row", "tag", "wide"];
|
|
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
|
+
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; }
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
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; }
|
|
16
18
|
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; }
|
|
@@ -26,14 +28,14 @@ var View = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
26
28
|
forceRow = _ref$forceRow === void 0 ? false : _ref$forceRow,
|
|
27
29
|
row = _ref.row,
|
|
28
30
|
_ref$tag = _ref.tag,
|
|
29
|
-
tag = _ref$tag === void 0 ? '
|
|
31
|
+
tag = _ref$tag === void 0 ? 'view' : _ref$tag,
|
|
30
32
|
wide = _ref.wide,
|
|
31
33
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
32
34
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _objectSpread(_objectSpread({}, others), {}, {
|
|
33
35
|
ref: ref,
|
|
34
36
|
role: others.role || 'view',
|
|
35
37
|
tag: tag,
|
|
36
|
-
className: (0, _helpers.styles)(
|
|
38
|
+
className: (0, _helpers.styles)(style.view, fit && style.fit, row && !forceRow && style.row, forceRow && style.forceRow, wide && style.wide, others.className)
|
|
37
39
|
}), children);
|
|
38
40
|
});
|
|
39
41
|
exports.View = View;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.js","names":["View","React","forwardRef","ref","children","fit","forceRow","row","tag","wide","others","createElement","Primitive","role","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 { Primitive } from '../Primitive';\nimport style from './View.module.css';\n\nconst View = React.forwardRef(({ children, fit, forceRow = false, row, tag = '
|
|
1
|
+
{"version":3,"file":"View.js","names":["View","React","forwardRef","ref","children","fit","forceRow","row","tag","wide","others","createElement","Primitive","role","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 { Primitive } from '../Primitive';\nimport * as style from './View.module.css';\n\nconst View = React.forwardRef(({ children, fit, forceRow = false, row, tag = 'view', wide, ...others }, ref) =>\n React.createElement(\n Primitive,\n {\n ...others,\n ref,\n role: others.role || 'view',\n tag,\n className: styles(\n style.view,\n fit && style.fit,\n row && !forceRow && style.row,\n forceRow && style.forceRow,\n wide && style.wide,\n others.className,\n ),\n },\n children,\n ),\n);\n\nView.displayName = 'Primitive:View';\n\nView.propTypes = {\n children: PropTypes.node,\n fit: PropTypes.bool,\n forceRow: PropTypes.bool,\n row: PropTypes.bool,\n tag: PropTypes.string,\n wide: PropTypes.bool,\n};\n\nexport { View };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA2C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE3C,IAAMA,IAAI,gBAAGC,cAAK,CAACC,UAAU,CAAC,gBAA0EC,GAAG;EAAA,IAA1EC,QAAQ,QAARA,QAAQ;IAAEC,GAAG,QAAHA,GAAG;IAAA,qBAAEC,QAAQ;IAARA,QAAQ,8BAAG,KAAK;IAAEC,GAAG,QAAHA,GAAG;IAAA,gBAAEC,GAAG;IAAHA,GAAG,yBAAG,MAAM;IAAEC,IAAI,QAAJA,IAAI;IAAKC,MAAM;EAAA,oBAClGT,cAAK,CAACU,aAAa,CACjBC,oBAAS,kCAEJF,MAAM;IACTP,GAAG,EAAHA,GAAG;IACHU,IAAI,EAAEH,MAAM,CAACG,IAAI,IAAI,MAAM;IAC3BL,GAAG,EAAHA,GAAG;IACHM,SAAS,EAAE,IAAAC,eAAM,EACfC,KAAK,CAACC,IAAI,EACVZ,GAAG,IAAIW,KAAK,CAACX,GAAG,EAChBE,GAAG,IAAI,CAACD,QAAQ,IAAIU,KAAK,CAACT,GAAG,EAC7BD,QAAQ,IAAIU,KAAK,CAACV,QAAQ,EAC1BG,IAAI,IAAIO,KAAK,CAACP,IAAI,EAClBC,MAAM,CAACI,SAAS;EACjB,IAEHV,QAAQ,CACT;AAAA,EACF;AAAC;AAEFJ,IAAI,CAACkB,WAAW,GAAG,gBAAgB;AAEnClB,IAAI,CAACmB,SAAS,GAAG;EACff,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,GAAG,EAAEe,kBAAS,CAACE,IAAI;EACnBhB,QAAQ,EAAEc,kBAAS,CAACE,IAAI;EACxBf,GAAG,EAAEa,kBAAS,CAACE,IAAI;EACnBd,GAAG,EAAEY,kBAAS,CAACG,MAAM;EACrBd,IAAI,EAAEW,kBAAS,CAACE;AAClB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`primitive:<View> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_view
|
|
6
6
|
class="view mirai"
|
|
7
7
|
/>
|
|
8
8
|
</DocumentFragment>
|
|
@@ -10,19 +10,19 @@ exports[`primitive:<View> inherit:className 1`] = `
|
|
|
10
10
|
|
|
11
11
|
exports[`primitive:<View> prop:children 1`] = `
|
|
12
12
|
<DocumentFragment>
|
|
13
|
-
<
|
|
13
|
+
<ui_view
|
|
14
14
|
class="view"
|
|
15
15
|
>
|
|
16
16
|
<span>
|
|
17
17
|
mirai
|
|
18
18
|
</span>
|
|
19
|
-
</
|
|
19
|
+
</ui_view>
|
|
20
20
|
</DocumentFragment>
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
exports[`primitive:<View> prop:fit 1`] = `
|
|
24
24
|
<DocumentFragment>
|
|
25
|
-
<
|
|
25
|
+
<ui_view
|
|
26
26
|
class="view fit"
|
|
27
27
|
/>
|
|
28
28
|
</DocumentFragment>
|
|
@@ -30,7 +30,7 @@ exports[`primitive:<View> prop:fit 1`] = `
|
|
|
30
30
|
|
|
31
31
|
exports[`primitive:<View> prop:forceRow 1`] = `
|
|
32
32
|
<DocumentFragment>
|
|
33
|
-
<
|
|
33
|
+
<ui_view
|
|
34
34
|
class="view forceRow"
|
|
35
35
|
/>
|
|
36
36
|
</DocumentFragment>
|
|
@@ -38,7 +38,7 @@ exports[`primitive:<View> prop:forceRow 1`] = `
|
|
|
38
38
|
|
|
39
39
|
exports[`primitive:<View> prop:row 1`] = `
|
|
40
40
|
<DocumentFragment>
|
|
41
|
-
<
|
|
41
|
+
<ui_view
|
|
42
42
|
class="view row"
|
|
43
43
|
/>
|
|
44
44
|
</DocumentFragment>
|
|
@@ -46,7 +46,7 @@ exports[`primitive:<View> prop:row 1`] = `
|
|
|
46
46
|
|
|
47
47
|
exports[`primitive:<View> prop:tag 1`] = `
|
|
48
48
|
<DocumentFragment>
|
|
49
|
-
<
|
|
49
|
+
<ui_tag
|
|
50
50
|
class="view"
|
|
51
51
|
/>
|
|
52
52
|
</DocumentFragment>
|
|
@@ -54,7 +54,7 @@ exports[`primitive:<View> prop:tag 1`] = `
|
|
|
54
54
|
|
|
55
55
|
exports[`primitive:<View> prop:wide 1`] = `
|
|
56
56
|
<DocumentFragment>
|
|
57
|
-
<
|
|
57
|
+
<ui_view
|
|
58
58
|
class="view wide"
|
|
59
59
|
/>
|
|
60
60
|
</DocumentFragment>
|
|
@@ -62,7 +62,7 @@ exports[`primitive:<View> prop:wide 1`] = `
|
|
|
62
62
|
|
|
63
63
|
exports[`primitive:<View> renders 1`] = `
|
|
64
64
|
<DocumentFragment>
|
|
65
|
-
<
|
|
65
|
+
<ui_view
|
|
66
66
|
class="view"
|
|
67
67
|
/>
|
|
68
68
|
</DocumentFragment>
|
|
@@ -70,7 +70,7 @@ exports[`primitive:<View> renders 1`] = `
|
|
|
70
70
|
|
|
71
71
|
exports[`primitive:<View> testId 1`] = `
|
|
72
72
|
<DocumentFragment>
|
|
73
|
-
<
|
|
73
|
+
<ui_view
|
|
74
74
|
class="view"
|
|
75
75
|
data-testid="mirai"
|
|
76
76
|
/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirai/ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-beta",
|
|
4
4
|
"repository": "git@gitlab.com:miraicorp/dev/frontend/ui.git",
|
|
5
5
|
"author": "JΛVI <hello@soyjavi.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,5 +62,9 @@
|
|
|
62
62
|
"last 1 firefox version",
|
|
63
63
|
"last 1 safari version"
|
|
64
64
|
]
|
|
65
|
+
},
|
|
66
|
+
"parcel": {
|
|
67
|
+
"extends": "@parcel/config-default",
|
|
68
|
+
"localIdentName": "[local]"
|
|
65
69
|
}
|
|
66
70
|
}
|