@mirai/ui 1.0.221 → 1.1.0-c
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.stories.js +1 -1
- 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 +9 -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/__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 +50 -5
- 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 +1 -1
|
@@ -4,15 +4,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Text = void 0;
|
|
7
|
+
exports.default = exports.Text = void 0;
|
|
8
8
|
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
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 }; }
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
23
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
24
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25
|
+
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
26
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
27
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
+
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
29
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
31
|
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
32
|
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; }
|
|
18
33
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -32,7 +47,8 @@ var Text = function Text(_ref) {
|
|
|
32
47
|
_ref$markdown = _ref.markdown,
|
|
33
48
|
markdown = _ref$markdown === void 0 ? true : _ref$markdown,
|
|
34
49
|
small = _ref.small,
|
|
35
|
-
tag = _ref.tag,
|
|
50
|
+
_ref$tag = _ref.tag,
|
|
51
|
+
tag = _ref$tag === void 0 ? 'text' : _ref$tag,
|
|
36
52
|
tiny = _ref.tiny,
|
|
37
53
|
underline = _ref.underline,
|
|
38
54
|
upperCase = _ref.upperCase,
|
|
@@ -40,8 +56,8 @@ var Text = function Text(_ref) {
|
|
|
40
56
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
41
57
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _objectSpread(_objectSpread({}, others), {}, {
|
|
42
58
|
role: others.role || 'text',
|
|
43
|
-
tag:
|
|
44
|
-
className: (0, _helpers.styles)(
|
|
59
|
+
tag: headline ? "h".concat(level) : tag,
|
|
60
|
+
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
61
|
}), markdown ? (0, _helpers2.parseMarkdown)(children) : children);
|
|
46
62
|
};
|
|
47
63
|
exports.Text = Text;
|
|
@@ -62,4 +78,33 @@ Text.propTypes = {
|
|
|
62
78
|
upperCase: _propTypes.default.bool,
|
|
63
79
|
wide: _propTypes.default.bool
|
|
64
80
|
};
|
|
81
|
+
var TextElement = /*#__PURE__*/function (_HTMLElement) {
|
|
82
|
+
_inherits(TextElement, _HTMLElement);
|
|
83
|
+
var _super = _createSuper(TextElement);
|
|
84
|
+
function TextElement() {
|
|
85
|
+
_classCallCheck(this, TextElement);
|
|
86
|
+
return _super.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
return _createClass(TextElement);
|
|
89
|
+
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement)); // window.customElements.define('ui-text', TextElement);
|
|
90
|
+
// window.customElements.define('ui-h2', TextElement);
|
|
91
|
+
exports.default = TextElement;
|
|
92
|
+
var HelloWorldComponent = /*#__PURE__*/function (_HTMLElement2) {
|
|
93
|
+
_inherits(HelloWorldComponent, _HTMLElement2);
|
|
94
|
+
var _super2 = _createSuper(HelloWorldComponent);
|
|
95
|
+
function HelloWorldComponent() {
|
|
96
|
+
_classCallCheck(this, HelloWorldComponent);
|
|
97
|
+
return _super2.call(this);
|
|
98
|
+
}
|
|
99
|
+
_createClass(HelloWorldComponent, [{
|
|
100
|
+
key: "connectedCallback",
|
|
101
|
+
value: function connectedCallback() {
|
|
102
|
+
this.innerHTML = "<h1>Hello world!</h1>";
|
|
103
|
+
}
|
|
104
|
+
}]);
|
|
105
|
+
return HelloWorldComponent;
|
|
106
|
+
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
107
|
+
customElements.define('ui-text', HelloWorldComponent);
|
|
108
|
+
// customElements.define('ui-view', HelloWorldComponent);
|
|
109
|
+
// customElements.define('ui-span', HelloWorldComponent);
|
|
65
110
|
//# sourceMappingURL=Text.js.map
|
|
@@ -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","TextElement","HTMLElement","HelloWorldComponent","innerHTML","customElements","define"],"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\nexport default class TextElement extends HTMLElement {}\n\n// window.customElements.define('ui-text', TextElement);\n// window.customElements.define('ui-h2', TextElement);\n\nclass HelloWorldComponent extends HTMLElement {\n constructor() {\n super();\n }\n\n connectedCallback() {\n this.innerHTML = `<h1>Hello world!</h1>`;\n }\n}\n\ncustomElements.define('ui-text', HelloWorldComponent);\n// customElements.define('ui-view', HelloWorldComponent);\n// customElements.define('ui-span', HelloWorldComponent);\n"],"mappings":"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"}
|
|
@@ -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
|
/>
|