@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
|
@@ -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 _primitives = require("../../primitives");
|
|
12
|
-
var
|
|
12
|
+
var style = _interopRequireWildcard(require("./Action.module.css"));
|
|
13
13
|
var _excluded = ["bold", "children", "disabled", "href", "inline", "large", "small", "tag", "target", "underline", "wide", "onPress"];
|
|
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; }
|
|
@@ -28,7 +30,7 @@ var Action = function Action(_ref) {
|
|
|
28
30
|
large = _ref.large,
|
|
29
31
|
small = _ref.small,
|
|
30
32
|
_ref$tag = _ref.tag,
|
|
31
|
-
tag = _ref$tag === void 0 ? '
|
|
33
|
+
tag = _ref$tag === void 0 ? 'action' : _ref$tag,
|
|
32
34
|
target = _ref.target,
|
|
33
35
|
underline = _ref.underline,
|
|
34
36
|
wide = _ref.wide,
|
|
@@ -43,7 +45,7 @@ var Action = function Action(_ref) {
|
|
|
43
45
|
_onPress && _onPress(event);
|
|
44
46
|
if (href && target) window.open(href, target);else if (href) window.location = href;
|
|
45
47
|
},
|
|
46
|
-
className: (0, _helpers.styles)(
|
|
48
|
+
className: (0, _helpers.styles)(style.action, bold && style.bold, disabled && style.disabled, inline && style.inline, large && style.large, small && style.small, underline && style.underline, wide && style.wide, others.className)
|
|
47
49
|
}), children);
|
|
48
50
|
};
|
|
49
51
|
exports.Action = Action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.js","names":["Action","bold","children","disabled","href","inline","large","small","tag","target","underline","wide","onPress","others","React","createElement","Pressable","role","event","window","open","location","className","styles","style","action","displayName","propTypes","PropTypes","bool","oneOfType","string","node","onEnter","func","onLeave"],"sources":["../../../src/components/Action/Action.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable } from '../../primitives';\nimport style from './Action.module.css';\n\nconst Action = ({\n bold,\n children,\n disabled,\n href,\n inline,\n large,\n small,\n tag = '
|
|
1
|
+
{"version":3,"file":"Action.js","names":["Action","bold","children","disabled","href","inline","large","small","tag","target","underline","wide","onPress","others","React","createElement","Pressable","role","event","window","open","location","className","styles","style","action","displayName","propTypes","PropTypes","bool","oneOfType","string","node","onEnter","func","onLeave"],"sources":["../../../src/components/Action/Action.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable } from '../../primitives';\nimport * as style from './Action.module.css';\n\nconst Action = ({\n bold,\n children,\n disabled,\n href,\n inline,\n large,\n small,\n tag = 'action',\n target,\n underline,\n wide,\n onPress,\n ...others\n}) =>\n React.createElement(\n Pressable,\n {\n ...others,\n disabled,\n href,\n role: others.role || 'action',\n tag: href ? 'a' : tag,\n onPress: (event) => {\n onPress && onPress(event);\n if (href && target) window.open(href, target);\n else if (href) window.location = href;\n },\n className: styles(\n style.action,\n bold && style.bold,\n disabled && style.disabled,\n inline && style.inline,\n large && style.large,\n small && style.small,\n underline && style.underline,\n wide && style.wide,\n others.className,\n ),\n },\n children,\n );\n\nAction.displayName = 'Component:Action';\n\nAction.propTypes = {\n bold: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n disabled: PropTypes.bool,\n href: PropTypes.string,\n inline: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n tag: PropTypes.string,\n target: PropTypes.string,\n underline: PropTypes.bool,\n wide: PropTypes.bool,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n onPress: PropTypes.func,\n};\n\nexport { Action };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA6C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE7C,IAAMA,MAAM,GAAG,SAATA,MAAM;EAAA,IACVC,IAAI,QAAJA,IAAI;IACJC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IACRC,IAAI,QAAJA,IAAI;IACJC,MAAM,QAANA,MAAM;IACNC,KAAK,QAALA,KAAK;IACLC,KAAK,QAALA,KAAK;IAAA,gBACLC,GAAG;IAAHA,GAAG,yBAAG,QAAQ;IACdC,MAAM,QAANA,MAAM;IACNC,SAAS,QAATA,SAAS;IACTC,IAAI,QAAJA,IAAI;IACJC,QAAO,QAAPA,OAAO;IACJC,MAAM;EAAA,oBAETC,cAAK,CAACC,aAAa,CACjBC,qBAAS,kCAEJH,MAAM;IACTV,QAAQ,EAARA,QAAQ;IACRC,IAAI,EAAJA,IAAI;IACJa,IAAI,EAAEJ,MAAM,CAACI,IAAI,IAAI,QAAQ;IAC7BT,GAAG,EAAEJ,IAAI,GAAG,GAAG,GAAGI,GAAG;IACrBI,OAAO,EAAE,iBAACM,KAAK,EAAK;MAClBN,QAAO,IAAIA,QAAO,CAACM,KAAK,CAAC;MACzB,IAAId,IAAI,IAAIK,MAAM,EAAEU,MAAM,CAACC,IAAI,CAAChB,IAAI,EAAEK,MAAM,CAAC,CAAC,KACzC,IAAIL,IAAI,EAAEe,MAAM,CAACE,QAAQ,GAAGjB,IAAI;IACvC,CAAC;IACDkB,SAAS,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|
-
}
|
|
12
|
-
|
|
13
|
-
.action:not(.disabled):hover {
|
|
14
|
-
color: var(--mirai-ui-content);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.action.bold {
|
|
18
|
-
font-family: var(--mirai-ui-font-bold);
|
|
19
|
-
font-weight: var(--mirai-ui-font-bold-weight);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.action.disabled,
|
|
23
|
-
.action.disabled * {
|
|
24
|
-
color: var(--mirai-ui-action-color-disabled);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.action:not(.disabled):active {
|
|
28
|
-
color: var(--mirai-ui-action-color-active);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.action:not(.inline):not(.large):not(.small) {
|
|
32
|
-
padding: var(--mirai-ui-button-padding-y) 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.large {
|
|
36
|
-
font-size: var(--mirai-ui-font-size-paragraph);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.large:not(.inline) {
|
|
40
|
-
padding: var(--mirai-ui-button-padding-y) 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.small {
|
|
44
|
-
font-size: var(--mirai-ui-font-size-small);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.small:not(.inline) {
|
|
48
|
-
padding: var(--mirai-ui-button-padding-y) 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.underline,
|
|
52
|
-
.underline * {
|
|
53
|
-
text-decoration: underline;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.wide {
|
|
57
|
-
width: 100%;
|
|
58
|
-
}
|
|
59
11
|
|
|
60
|
-
|
|
61
|
-
|
|
12
|
+
&.bold {
|
|
13
|
+
font-family: var(--mirai-ui-font-bold);
|
|
14
|
+
font-weight: var(--mirai-ui-font-bold-weight);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.disabled,
|
|
18
|
+
&.disabled * {
|
|
19
|
+
color: var(--mirai-ui-action-color-disabled);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.large {
|
|
23
|
+
font-size: var(--mirai-ui-font-size-paragraph);
|
|
24
|
+
|
|
25
|
+
&:not(.inline) {
|
|
26
|
+
padding: var(--mirai-ui-button-padding-y) 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.small {
|
|
31
|
+
font-size: var(--mirai-ui-font-size-small);
|
|
32
|
+
&:not(.inline) {
|
|
33
|
+
padding: var(--mirai-ui-button-padding-y) 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.underline,
|
|
38
|
+
&.underline * {
|
|
39
|
+
text-decoration: underline;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.wide {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& * {
|
|
47
|
+
margin-right: calc(var(--mirai-ui-space-XS) / 2);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:not(.disabled):active {
|
|
51
|
+
color: var(--mirai-ui-action-color-active);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:not(.disabled):hover {
|
|
55
|
+
color: var(--mirai-ui-content);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:not(.inline):not(.large):not(.small) {
|
|
59
|
+
padding: var(--mirai-ui-button-padding-y) 0;
|
|
60
|
+
}
|
|
62
61
|
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = exports.Story = void 0;
|
|
7
|
-
var
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _Action = require("./Action");
|
|
9
10
|
var _Icon = require("../../primitives/Icon");
|
|
10
|
-
function
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
// import React from 'react';
|
|
11
14
|
var _default = {
|
|
12
15
|
title: 'Components'
|
|
13
16
|
};
|
|
14
17
|
exports.default = _default;
|
|
15
18
|
var Story = function Story(props) {
|
|
16
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/React.createElement(_Action.Action, props);
|
|
17
20
|
};
|
|
18
21
|
exports.Story = Story;
|
|
19
22
|
Story.storyName = 'Action';
|
|
20
23
|
Story.args = {
|
|
21
|
-
children: /*#__PURE__*/
|
|
24
|
+
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
22
25
|
value: _Icon.ICON.INFO
|
|
23
26
|
}), "children"),
|
|
24
27
|
disabled: false,
|
|
@@ -27,7 +30,7 @@ Story.args = {
|
|
|
27
30
|
inline: false,
|
|
28
31
|
large: false,
|
|
29
32
|
small: false,
|
|
30
|
-
tag: '
|
|
33
|
+
tag: 'action',
|
|
31
34
|
target: '',
|
|
32
35
|
underline: false,
|
|
33
36
|
wide: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.stories.js","names":["title","Story","props","storyName","args","children","ICON","INFO","disabled","href","icon","inline","large","small","tag","target","underline","wide","testId","style","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Action/Action.stories.jsx"],"sourcesContent":["import React from 'react';\n\nimport { Action } from './Action';\nimport { Icon, ICON } from '../../primitives/Icon';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Action {...props} />;\n\nStory.storyName = 'Action';\n\nStory.args = {\n children: (\n <>\n <Icon value={ICON.INFO} />\n children\n </>\n ),\n disabled: false,\n href: '',\n icon: '',\n inline: false,\n large: false,\n small: false,\n tag: '
|
|
1
|
+
{"version":3,"file":"Action.stories.js","names":["title","Story","props","storyName","args","children","ICON","INFO","disabled","href","icon","inline","large","small","tag","target","underline","wide","testId","style","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Action/Action.stories.jsx"],"sourcesContent":["// import React from 'react';\nimport * as React from 'react';\n\nimport { Action } from './Action';\nimport { Icon, ICON } from '../../primitives/Icon';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Action {...props} />;\n\nStory.storyName = 'Action';\n\nStory.args = {\n children: (\n <>\n <Icon value={ICON.INFO} />\n children\n </>\n ),\n disabled: false,\n href: '',\n icon: '',\n inline: false,\n large: false,\n small: false,\n tag: 'action',\n target: '',\n underline: false,\n wide: false,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;AACA;AAEA;AACA;AAAmD;AAAA;AAJnD;AAAA,eAMe;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAE/B,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK;EAAA,oBAAK,oBAAC,cAAM,EAAKA,KAAK,CAAI;AAAA;AAAC;AAEtDD,KAAK,CAACE,SAAS,GAAG,QAAQ;AAE1BF,KAAK,CAACG,IAAI,GAAG;EACXC,QAAQ,eACN,uDACE,oBAAC,UAAI;IAAC,KAAK,EAAEC,UAAI,CAACC;EAAK,EAAG,aAG7B;EACDC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,EAAE;EACRC,IAAI,EAAE,EAAE;EACRC,MAAM,EAAE,KAAK;EACbC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE,QAAQ;EACbC,MAAM,EAAE,EAAE;EACVC,SAAS,EAAE,KAAK;EAChBC,IAAI,EAAE,KAAK;EACX;EACAC,MAAM,EAAE,YAAY;EACpBC,KAAK,EAAE,CAAC;AACV,CAAC;AAEDlB,KAAK,CAACmB,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU,CAAC;EAC9BC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAU,CAAC;EAC9BE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAU;AAC/B,CAAC"}
|
|
@@ -2,32 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`component:<Action> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_action
|
|
6
6
|
class="pressable action mirai"
|
|
7
|
+
tabindex="0"
|
|
7
8
|
>
|
|
8
9
|
children
|
|
9
|
-
</
|
|
10
|
+
</ui_action>
|
|
10
11
|
</DocumentFragment>
|
|
11
12
|
`;
|
|
12
13
|
|
|
13
14
|
exports[`component:<Action> prop:bold 1`] = `
|
|
14
15
|
<DocumentFragment>
|
|
15
|
-
<
|
|
16
|
+
<ui_action
|
|
16
17
|
class="pressable action bold"
|
|
18
|
+
tabindex="0"
|
|
17
19
|
>
|
|
18
20
|
children
|
|
19
|
-
</
|
|
21
|
+
</ui_action>
|
|
20
22
|
</DocumentFragment>
|
|
21
23
|
`;
|
|
22
24
|
|
|
23
25
|
exports[`component:<Action> prop:disabled 1`] = `
|
|
24
26
|
<DocumentFragment>
|
|
25
|
-
<
|
|
27
|
+
<ui_action
|
|
26
28
|
class="pressable disabled action disabled"
|
|
27
29
|
disabled=""
|
|
28
30
|
>
|
|
29
31
|
children
|
|
30
|
-
</
|
|
32
|
+
</ui_action>
|
|
31
33
|
</DocumentFragment>
|
|
32
34
|
`;
|
|
33
35
|
|
|
@@ -36,6 +38,7 @@ exports[`component:<Action> prop:href + prop:target 1`] = `
|
|
|
36
38
|
<a
|
|
37
39
|
class="pressable action"
|
|
38
40
|
href="soyjavi.com"
|
|
41
|
+
tabindex="0"
|
|
39
42
|
>
|
|
40
43
|
children
|
|
41
44
|
</a>
|
|
@@ -47,6 +50,7 @@ exports[`component:<Action> prop:href 1`] = `
|
|
|
47
50
|
<a
|
|
48
51
|
class="pressable action"
|
|
49
52
|
href="soyjavi.com"
|
|
53
|
+
tabindex="0"
|
|
50
54
|
>
|
|
51
55
|
children
|
|
52
56
|
</a>
|
|
@@ -55,101 +59,111 @@ exports[`component:<Action> prop:href 1`] = `
|
|
|
55
59
|
|
|
56
60
|
exports[`component:<Action> prop:inline & prop:large 1`] = `
|
|
57
61
|
<DocumentFragment>
|
|
58
|
-
<
|
|
62
|
+
<ui_action
|
|
59
63
|
class="pressable action inline large"
|
|
64
|
+
tabindex="0"
|
|
60
65
|
>
|
|
61
66
|
children
|
|
62
|
-
</
|
|
67
|
+
</ui_action>
|
|
63
68
|
</DocumentFragment>
|
|
64
69
|
`;
|
|
65
70
|
|
|
66
71
|
exports[`component:<Action> prop:inline & prop:small 1`] = `
|
|
67
72
|
<DocumentFragment>
|
|
68
|
-
<
|
|
73
|
+
<ui_action
|
|
69
74
|
class="pressable action inline small"
|
|
75
|
+
tabindex="0"
|
|
70
76
|
>
|
|
71
77
|
children
|
|
72
|
-
</
|
|
78
|
+
</ui_action>
|
|
73
79
|
</DocumentFragment>
|
|
74
80
|
`;
|
|
75
81
|
|
|
76
82
|
exports[`component:<Action> prop:inline default 1`] = `
|
|
77
83
|
<DocumentFragment>
|
|
78
|
-
<
|
|
84
|
+
<ui_action
|
|
79
85
|
class="pressable action inline"
|
|
86
|
+
tabindex="0"
|
|
80
87
|
>
|
|
81
88
|
children
|
|
82
|
-
</
|
|
89
|
+
</ui_action>
|
|
83
90
|
</DocumentFragment>
|
|
84
91
|
`;
|
|
85
92
|
|
|
86
93
|
exports[`component:<Action> prop:large 1`] = `
|
|
87
94
|
<DocumentFragment>
|
|
88
|
-
<
|
|
95
|
+
<ui_action
|
|
89
96
|
class="pressable action large"
|
|
97
|
+
tabindex="0"
|
|
90
98
|
>
|
|
91
99
|
children
|
|
92
|
-
</
|
|
100
|
+
</ui_action>
|
|
93
101
|
</DocumentFragment>
|
|
94
102
|
`;
|
|
95
103
|
|
|
96
104
|
exports[`component:<Action> prop:small 1`] = `
|
|
97
105
|
<DocumentFragment>
|
|
98
|
-
<
|
|
106
|
+
<ui_action
|
|
99
107
|
class="pressable action small"
|
|
108
|
+
tabindex="0"
|
|
100
109
|
>
|
|
101
110
|
children
|
|
102
|
-
</
|
|
111
|
+
</ui_action>
|
|
103
112
|
</DocumentFragment>
|
|
104
113
|
`;
|
|
105
114
|
|
|
106
115
|
exports[`component:<Action> prop:tag 1`] = `
|
|
107
116
|
<DocumentFragment>
|
|
108
|
-
<
|
|
117
|
+
<ui_tag
|
|
109
118
|
class="pressable action"
|
|
119
|
+
tabindex="0"
|
|
110
120
|
>
|
|
111
121
|
children
|
|
112
|
-
</
|
|
122
|
+
</ui_tag>
|
|
113
123
|
</DocumentFragment>
|
|
114
124
|
`;
|
|
115
125
|
|
|
116
126
|
exports[`component:<Action> prop:underline 1`] = `
|
|
117
127
|
<DocumentFragment>
|
|
118
|
-
<
|
|
128
|
+
<ui_action
|
|
119
129
|
class="pressable action underline"
|
|
130
|
+
tabindex="0"
|
|
120
131
|
>
|
|
121
132
|
children
|
|
122
|
-
</
|
|
133
|
+
</ui_action>
|
|
123
134
|
</DocumentFragment>
|
|
124
135
|
`;
|
|
125
136
|
|
|
126
137
|
exports[`component:<Action> prop:wide 1`] = `
|
|
127
138
|
<DocumentFragment>
|
|
128
|
-
<
|
|
139
|
+
<ui_action
|
|
129
140
|
class="pressable action wide"
|
|
141
|
+
tabindex="0"
|
|
130
142
|
>
|
|
131
143
|
children
|
|
132
|
-
</
|
|
144
|
+
</ui_action>
|
|
133
145
|
</DocumentFragment>
|
|
134
146
|
`;
|
|
135
147
|
|
|
136
148
|
exports[`component:<Action> renders 1`] = `
|
|
137
149
|
<DocumentFragment>
|
|
138
|
-
<
|
|
150
|
+
<ui_action
|
|
139
151
|
class="pressable action"
|
|
152
|
+
tabindex="0"
|
|
140
153
|
>
|
|
141
154
|
children
|
|
142
|
-
</
|
|
155
|
+
</ui_action>
|
|
143
156
|
</DocumentFragment>
|
|
144
157
|
`;
|
|
145
158
|
|
|
146
159
|
exports[`component:<Action> testId 1`] = `
|
|
147
160
|
<DocumentFragment>
|
|
148
|
-
<
|
|
161
|
+
<ui_action
|
|
149
162
|
class="pressable action"
|
|
150
163
|
data-testid="mirai"
|
|
164
|
+
tabindex="0"
|
|
151
165
|
>
|
|
152
166
|
children
|
|
153
|
-
</
|
|
167
|
+
</ui_action>
|
|
154
168
|
</DocumentFragment>
|
|
155
169
|
`;
|
|
@@ -10,9 +10,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _primitives = require("../../primitives");
|
|
12
12
|
var _Tooltip = require("../Tooltip");
|
|
13
|
-
var
|
|
13
|
+
var style = _interopRequireWildcard(require("./Button.module.css"));
|
|
14
14
|
var _excluded = ["busy", "children", "disabled", "large", "rounded", "secondary", "small", "squared", "tag", "transparent", "tooltip", "wide", "onPress"],
|
|
15
15
|
_excluded2 = ["fixed", "left", "right", "top"];
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
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; }
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
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; }
|
|
18
20
|
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; }
|
|
@@ -55,14 +57,14 @@ var Button = function Button(_ref) {
|
|
|
55
57
|
role: others.role || 'button',
|
|
56
58
|
tag: tag,
|
|
57
59
|
onPress: onPress,
|
|
58
|
-
className: (0, _helpers.styles)(
|
|
60
|
+
className: (0, _helpers.styles)(style.button, busy && !disabled && style.busy, large && style.large, small && style.small, rounded && style.rounded, squared && style.squared, secondary && !transparent && !disabled && style.secondary, transparent && style.transparent, (disabled || busy) && style.disabled, wide && style.wide, others.className)
|
|
59
61
|
}), busy === undefined ? children : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
60
|
-
className: (0, _helpers.styles)(
|
|
62
|
+
className: (0, _helpers.styles)(style.busyContainer, busy && style.active)
|
|
61
63
|
}, /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
62
|
-
className:
|
|
64
|
+
className: style.spinner
|
|
63
65
|
})), /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
64
66
|
row: true,
|
|
65
|
-
className:
|
|
67
|
+
className: style.children
|
|
66
68
|
}, children))));
|
|
67
69
|
};
|
|
68
70
|
exports.Button = Button;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["Button","busy","children","disabled","large","rounded","secondary","small","squared","tag","transparent","tooltip","wide","onPress","inherit","fixed","left","right","top","others","React","createElement","Tooltip","Fragment","text","undefined","Pressable","role","className","styles","style","button","busyContainer","active","spinner","displayName","propTypes","PropTypes","bool","oneOfType","string","node","onEnter","func","onLeave"],"sources":["../../../src/components/Button/Button.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable, View } from '../../primitives';\nimport { Tooltip } from '../Tooltip';\nimport style from './Button.module.css';\n\nconst Button = ({\n busy,\n children,\n disabled,\n large,\n rounded,\n secondary,\n small,\n squared = false,\n tag = 'button',\n transparent = false,\n tooltip,\n wide,\n onPress,\n ...inherit\n}) => {\n const { fixed, left, right, top, ...others } = inherit;\n\n return React.createElement(\n tooltip ? Tooltip : React.Fragment,\n tooltip ? { fixed, left, right, text: tooltip, top } : undefined,\n React.createElement(\n Pressable,\n {\n ...others,\n disabled: disabled || busy,\n role: others.role || 'button',\n tag,\n onPress,\n className: styles(\n style.button,\n busy && !disabled && style.busy,\n large && style.large,\n small && style.small,\n rounded && style.rounded,\n squared && style.squared,\n secondary && !transparent && !disabled && style.secondary,\n transparent && style.transparent,\n (disabled || busy) && style.disabled,\n wide && style.wide,\n others.className,\n ),\n },\n busy === undefined ? (\n children\n ) : (\n <>\n <View className={styles(style.busyContainer, busy && style.active)}>\n <View className={style.spinner} />\n </View>\n <View row className={style.children}>\n {children}\n </View>\n </>\n ),\n ),\n );\n};\n\nButton.displayName = 'Component:Button';\nButton.propTypes = {\n busy: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n disabled: PropTypes.bool,\n large: PropTypes.bool,\n rounded: PropTypes.bool,\n secondary: PropTypes.bool,\n small: PropTypes.bool,\n squared: PropTypes.bool,\n tag: PropTypes.string,\n tooltip: PropTypes.string,\n transparent: PropTypes.bool,\n wide: PropTypes.bool,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n onPress: PropTypes.func,\n};\n\nexport { Button };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":"Button.js","names":["Button","busy","children","disabled","large","rounded","secondary","small","squared","tag","transparent","tooltip","wide","onPress","inherit","fixed","left","right","top","others","React","createElement","Tooltip","Fragment","text","undefined","Pressable","role","className","styles","style","button","busyContainer","active","spinner","displayName","propTypes","PropTypes","bool","oneOfType","string","node","onEnter","func","onLeave"],"sources":["../../../src/components/Button/Button.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Pressable, View } from '../../primitives';\nimport { Tooltip } from '../Tooltip';\nimport * as style from './Button.module.css';\n\nconst Button = ({\n busy,\n children,\n disabled,\n large,\n rounded,\n secondary,\n small,\n squared = false,\n tag = 'button',\n transparent = false,\n tooltip,\n wide,\n onPress,\n ...inherit\n}) => {\n const { fixed, left, right, top, ...others } = inherit;\n\n return React.createElement(\n tooltip ? Tooltip : React.Fragment,\n tooltip ? { fixed, left, right, text: tooltip, top } : undefined,\n React.createElement(\n Pressable,\n {\n ...others,\n disabled: disabled || busy,\n role: others.role || 'button',\n tag,\n onPress,\n className: styles(\n style.button,\n busy && !disabled && style.busy,\n large && style.large,\n small && style.small,\n rounded && style.rounded,\n squared && style.squared,\n secondary && !transparent && !disabled && style.secondary,\n transparent && style.transparent,\n (disabled || busy) && style.disabled,\n wide && style.wide,\n others.className,\n ),\n },\n busy === undefined ? (\n children\n ) : (\n <>\n <View className={styles(style.busyContainer, busy && style.active)}>\n <View className={style.spinner} />\n </View>\n <View row className={style.children}>\n {children}\n </View>\n </>\n ),\n ),\n );\n};\n\nButton.displayName = 'Component:Button';\nButton.propTypes = {\n busy: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n disabled: PropTypes.bool,\n large: PropTypes.bool,\n rounded: PropTypes.bool,\n secondary: PropTypes.bool,\n small: PropTypes.bool,\n squared: PropTypes.bool,\n tag: PropTypes.string,\n tooltip: PropTypes.string,\n transparent: PropTypes.bool,\n wide: PropTypes.bool,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n onPress: PropTypes.func,\n};\n\nexport { Button };\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAA6C;EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE7C,IAAMA,MAAM,GAAG,SAATA,MAAM,OAeN;EAAA,IAdJC,IAAI,QAAJA,IAAI;IACJC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KA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AE2B,kBAAS,CAACC,IAAI;EAC3B1B,IAAI,EAAEyB,kBAAS,CAACC,IAAI;EACpBI,OAAO,EAAEL,kBAAS,CAACM,IAAI;EACvBC,OAAO,EAAEP,kBAAS,CAACM,IAAI;EACvB9B,OAAO,EAAEwB,kBAAS,CAACM;AACrB,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports[`component:<Button> inherit:className 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<button
|
|
6
6
|
class="pressable button mirai"
|
|
7
|
+
tabindex="0"
|
|
7
8
|
>
|
|
8
9
|
children
|
|
9
10
|
</button>
|
|
@@ -16,18 +17,18 @@ exports[`component:<Button> prop:busy 1`] = `
|
|
|
16
17
|
class="pressable disabled button busy disabled"
|
|
17
18
|
disabled=""
|
|
18
19
|
>
|
|
19
|
-
<
|
|
20
|
+
<ui_view
|
|
20
21
|
class="view busyContainer active"
|
|
21
22
|
>
|
|
22
|
-
<
|
|
23
|
+
<ui_view
|
|
23
24
|
class="view spinner"
|
|
24
25
|
/>
|
|
25
|
-
</
|
|
26
|
-
<
|
|
26
|
+
</ui_view>
|
|
27
|
+
<ui_view
|
|
27
28
|
class="view row children"
|
|
28
29
|
>
|
|
29
30
|
children
|
|
30
|
-
</
|
|
31
|
+
</ui_view>
|
|
31
32
|
</button>
|
|
32
33
|
</DocumentFragment>
|
|
33
34
|
`;
|
|
@@ -47,6 +48,7 @@ exports[`component:<Button> prop:large 1`] = `
|
|
|
47
48
|
<DocumentFragment>
|
|
48
49
|
<button
|
|
49
50
|
class="pressable button large"
|
|
51
|
+
tabindex="0"
|
|
50
52
|
>
|
|
51
53
|
children
|
|
52
54
|
</button>
|
|
@@ -59,18 +61,18 @@ exports[`component:<Button> prop:secondary && prop:busy 1`] = `
|
|
|
59
61
|
class="pressable disabled button busy secondary disabled"
|
|
60
62
|
disabled=""
|
|
61
63
|
>
|
|
62
|
-
<
|
|
64
|
+
<ui_view
|
|
63
65
|
class="view busyContainer active"
|
|
64
66
|
>
|
|
65
|
-
<
|
|
67
|
+
<ui_view
|
|
66
68
|
class="view spinner"
|
|
67
69
|
/>
|
|
68
|
-
</
|
|
69
|
-
<
|
|
70
|
+
</ui_view>
|
|
71
|
+
<ui_view
|
|
70
72
|
class="view row children"
|
|
71
73
|
>
|
|
72
74
|
children
|
|
73
|
-
</
|
|
75
|
+
</ui_view>
|
|
74
76
|
</button>
|
|
75
77
|
</DocumentFragment>
|
|
76
78
|
`;
|
|
@@ -81,18 +83,18 @@ exports[`component:<Button> prop:secondary && prop:busy 2`] = `
|
|
|
81
83
|
class="pressable disabled button busy transparent disabled"
|
|
82
84
|
disabled=""
|
|
83
85
|
>
|
|
84
|
-
<
|
|
86
|
+
<ui_view
|
|
85
87
|
class="view busyContainer active"
|
|
86
88
|
>
|
|
87
|
-
<
|
|
89
|
+
<ui_view
|
|
88
90
|
class="view spinner"
|
|
89
91
|
/>
|
|
90
|
-
</
|
|
91
|
-
<
|
|
92
|
+
</ui_view>
|
|
93
|
+
<ui_view
|
|
92
94
|
class="view row children"
|
|
93
95
|
>
|
|
94
96
|
children
|
|
95
|
-
</
|
|
97
|
+
</ui_view>
|
|
96
98
|
</button>
|
|
97
99
|
</DocumentFragment>
|
|
98
100
|
`;
|
|
@@ -101,6 +103,7 @@ exports[`component:<Button> prop:secondary 1`] = `
|
|
|
101
103
|
<DocumentFragment>
|
|
102
104
|
<button
|
|
103
105
|
class="pressable button secondary"
|
|
106
|
+
tabindex="0"
|
|
104
107
|
>
|
|
105
108
|
children
|
|
106
109
|
</button>
|
|
@@ -111,6 +114,7 @@ exports[`component:<Button> prop:small 1`] = `
|
|
|
111
114
|
<DocumentFragment>
|
|
112
115
|
<button
|
|
113
116
|
class="pressable button small"
|
|
117
|
+
tabindex="0"
|
|
114
118
|
>
|
|
115
119
|
children
|
|
116
120
|
</button>
|
|
@@ -121,6 +125,7 @@ exports[`component:<Button> prop:squared 1`] = `
|
|
|
121
125
|
<DocumentFragment>
|
|
122
126
|
<button
|
|
123
127
|
class="pressable button squared"
|
|
128
|
+
tabindex="0"
|
|
124
129
|
>
|
|
125
130
|
children
|
|
126
131
|
</button>
|
|
@@ -129,23 +134,25 @@ exports[`component:<Button> prop:squared 1`] = `
|
|
|
129
134
|
|
|
130
135
|
exports[`component:<Button> prop:tag 1`] = `
|
|
131
136
|
<DocumentFragment>
|
|
132
|
-
<
|
|
137
|
+
<ui_tag
|
|
133
138
|
class="pressable button"
|
|
139
|
+
tabindex="0"
|
|
134
140
|
>
|
|
135
141
|
children
|
|
136
|
-
</
|
|
142
|
+
</ui_tag>
|
|
137
143
|
</DocumentFragment>
|
|
138
144
|
`;
|
|
139
145
|
|
|
140
146
|
exports[`component:<Button> prop:tooltip 1`] = `
|
|
141
147
|
<DocumentFragment>
|
|
142
|
-
<
|
|
148
|
+
<ui_layer>
|
|
143
149
|
<button
|
|
144
150
|
class="pressable dispatcher button"
|
|
151
|
+
tabindex="0"
|
|
145
152
|
>
|
|
146
153
|
children
|
|
147
154
|
</button>
|
|
148
|
-
</
|
|
155
|
+
</ui_layer>
|
|
149
156
|
</DocumentFragment>
|
|
150
157
|
`;
|
|
151
158
|
|
|
@@ -153,6 +160,7 @@ exports[`component:<Button> prop:transparent 1`] = `
|
|
|
153
160
|
<DocumentFragment>
|
|
154
161
|
<button
|
|
155
162
|
class="pressable button transparent"
|
|
163
|
+
tabindex="0"
|
|
156
164
|
>
|
|
157
165
|
children
|
|
158
166
|
</button>
|
|
@@ -163,6 +171,7 @@ exports[`component:<Button> prop:wide 1`] = `
|
|
|
163
171
|
<DocumentFragment>
|
|
164
172
|
<button
|
|
165
173
|
class="pressable button wide"
|
|
174
|
+
tabindex="0"
|
|
166
175
|
>
|
|
167
176
|
children
|
|
168
177
|
</button>
|
|
@@ -173,6 +182,7 @@ exports[`component:<Button> renders 1`] = `
|
|
|
173
182
|
<DocumentFragment>
|
|
174
183
|
<button
|
|
175
184
|
class="pressable button"
|
|
185
|
+
tabindex="0"
|
|
176
186
|
>
|
|
177
187
|
children
|
|
178
188
|
</button>
|
|
@@ -184,6 +194,7 @@ exports[`component:<Button> testId 1`] = `
|
|
|
184
194
|
<button
|
|
185
195
|
class="pressable button"
|
|
186
196
|
data-testid="mirai"
|
|
197
|
+
tabindex="0"
|
|
187
198
|
>
|
|
188
199
|
children
|
|
189
200
|
</button>
|