react-miui 0.4.2 → 0.4.3
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/CHANGELOG.md +4 -0
- package/dist/components/ui/button/Button.js +1 -1
- package/dist/components/ui/button/Button.js.map +1 -1
- package/dist/utils/makeVariants.d.ts +3 -0
- package/dist/utils/makeVariants.d.ts.map +1 -0
- package/dist/utils/makeVariants.js +14 -0
- package/dist/utils/makeVariants.js.map +1 -0
- package/docs/enums/ICON.html +6 -6
- package/docs/index.html +4 -4
- package/docs/modules/Item.html +3 -3
- package/docs/modules/List.html +3 -3
- package/docs/modules/StickyHeader.html +4 -4
- package/docs/modules.html +16 -16
- package/docs/pages/Tutorials/Test.html +3 -3
- package/esm/components/ui/button/Button.js +1 -1
- package/esm/components/ui/button/Button.js.map +1 -1
- package/esm/utils/makeVariants.d.ts +3 -0
- package/esm/utils/makeVariants.d.ts.map +1 -0
- package/esm/utils/makeVariants.js +11 -0
- package/esm/utils/makeVariants.js.map +1 -0
- package/package.json +1 -1
- package/src/components/ui/button/Button.tsx +1 -1
- /package/src/{demo/utils → utils}/makeVariants.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
## [UNRELEASED]
|
|
7
7
|
(nothing yet)
|
|
8
8
|
|
|
9
|
+
## [0.4.3] - 2021-11-27
|
|
10
|
+
### Fixed
|
|
11
|
+
- Button component crashing
|
|
12
|
+
|
|
9
13
|
## [0.4.2] - 2021-11-27
|
|
10
14
|
### Fixed
|
|
11
15
|
- A lot of components crashing on unknown imports due to missing extensions
|
|
@@ -7,7 +7,7 @@ exports.Button = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const classnames_1 = __importDefault(require("classnames"));
|
|
9
9
|
const Button_module_scss_1 = __importDefault(require("./Button.module.scss"));
|
|
10
|
-
const makeVariants_js_1 = require("../../../
|
|
10
|
+
const makeVariants_js_1 = require("../../../utils/makeVariants.js");
|
|
11
11
|
const Button = (props) => {
|
|
12
12
|
const variants = makeVariants_js_1.makeVariants(props.variant);
|
|
13
13
|
const cls = classnames_1.default(Button_module_scss_1.default.btn, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AAEpC,8EAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AAEpC,8EAA0C;AAC1C,oEAA8D;AAO9D,MAAM,MAAM,GAAoB,CAAC,KAAK,EAAE,EAAE;IACtC,MAAM,QAAQ,GAAG,8BAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE7C,MAAM,GAAG,GAAG,oBAAU,CAAC,4BAAM,CAAC,GAAG,EAAE;QAC/B,CAAC,4BAAM,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpD,CAAC,4BAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;KACzD,CAAC,CAAC;IAEH,OAAO,CACH,0CAAQ,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAG,KAAK,CAAC,QAAQ,CAAU,CAC9E,CAAC;AACN,CAAC,CAAC;AAEO,wBAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.d.ts","sourceRoot":"","sources":["../../src/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,0DAQjB,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeVariants = void 0;
|
|
4
|
+
const makeVariants = (variants) => {
|
|
5
|
+
if (!variants) {
|
|
6
|
+
return [];
|
|
7
|
+
}
|
|
8
|
+
if (typeof variants === "string") {
|
|
9
|
+
return variants.split(" ").filter(Boolean);
|
|
10
|
+
}
|
|
11
|
+
return variants;
|
|
12
|
+
};
|
|
13
|
+
exports.makeVariants = makeVariants;
|
|
14
|
+
//# sourceMappingURL=makeVariants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.js","sourceRoot":"","sources":["../../src/utils/makeVariants.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG,CAAmB,QAA6B,EAAO,EAAE;IAC1E,IAAI,CAAC,QAAQ,EAAE;QACX,OAAO,EAAE,CAAC;KACb;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAC9B,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAQ,CAAC;KACrD;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAGE,oCAAY"}
|
package/docs/enums/ICON.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>ICON | react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>ICON | react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="../assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="../index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="../index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<div class="tsd-signature tsd-kind-icon">back<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = "back"</span></div>
|
|
91
91
|
<aside class="tsd-sources">
|
|
92
92
|
<ul>
|
|
93
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
93
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/icons/Icon.tsx#L10">src/components/icons/Icon.tsx:10</a></li>
|
|
94
94
|
</ul>
|
|
95
95
|
</aside>
|
|
96
96
|
</section>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
<div class="tsd-signature tsd-kind-icon">checkmark<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = "checkmark"</span></div>
|
|
101
101
|
<aside class="tsd-sources">
|
|
102
102
|
<ul>
|
|
103
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
103
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/icons/Icon.tsx#L9">src/components/icons/Icon.tsx:9</a></li>
|
|
104
104
|
</ul>
|
|
105
105
|
</aside>
|
|
106
106
|
</section>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<div class="tsd-signature tsd-kind-icon">forward<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = "forward"</span></div>
|
|
111
111
|
<aside class="tsd-sources">
|
|
112
112
|
<ul>
|
|
113
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
113
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/icons/Icon.tsx#L11">src/components/icons/Icon.tsx:11</a></li>
|
|
114
114
|
</ul>
|
|
115
115
|
</aside>
|
|
116
116
|
</section>
|
package/docs/index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<a href="modules.html">Globals</a>
|
|
58
58
|
</li>
|
|
59
59
|
</ul>
|
|
60
|
-
<h1>Project react-miui - v0.4.
|
|
60
|
+
<h1>Project react-miui - v0.4.3</h1>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
</header>
|
package/docs/modules/Item.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>Item | react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>Item | react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="../assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="../index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="../index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
package/docs/modules/List.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>List | react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>List | react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="../assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="../index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="../index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>StickyHeader | react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>StickyHeader | react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="../assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="../index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="../index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
<li class="tsd-description">
|
|
93
93
|
<aside class="tsd-sources">
|
|
94
94
|
<ul>
|
|
95
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
95
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/layout/header/StickyHeader.tsx#L50">src/components/layout/header/StickyHeader.tsx:50</a></li>
|
|
96
96
|
</ul>
|
|
97
97
|
</aside>
|
|
98
98
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
package/docs/modules.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<a href="modules.html">Globals</a>
|
|
58
58
|
</li>
|
|
59
59
|
</ul>
|
|
60
|
-
<h1>Project react-miui - v0.4.
|
|
60
|
+
<h1>Project react-miui - v0.4.3</h1>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
</header>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<div class="tsd-signature tsd-kind-icon">Action<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.VFC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
111
111
|
<aside class="tsd-sources">
|
|
112
112
|
<ul>
|
|
113
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
113
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/ui/action/Action.tsx#L22">src/components/ui/action/Action.tsx:22</a></li>
|
|
114
114
|
</ul>
|
|
115
115
|
</aside>
|
|
116
116
|
</section>
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
<div class="tsd-signature tsd-kind-icon">Button<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
121
121
|
<aside class="tsd-sources">
|
|
122
122
|
<ul>
|
|
123
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
123
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/ui/button/Button.tsx#L12">src/components/ui/button/Button.tsx:12</a></li>
|
|
124
124
|
</ul>
|
|
125
125
|
</aside>
|
|
126
126
|
</section>
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
<div class="tsd-signature tsd-kind-icon">Checkbox<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
131
131
|
<aside class="tsd-sources">
|
|
132
132
|
<ul>
|
|
133
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
133
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/form/Checkbox.tsx#L13">src/components/form/Checkbox.tsx:13</a></li>
|
|
134
134
|
</ul>
|
|
135
135
|
</aside>
|
|
136
136
|
</section>
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
<div class="tsd-signature tsd-kind-icon">Direction<wbr>Pad<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
141
141
|
<aside class="tsd-sources">
|
|
142
142
|
<ul>
|
|
143
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
143
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/ui/directionPad/Pad.tsx#L17">src/components/ui/directionPad/Pad.tsx:17</a></li>
|
|
144
144
|
</ul>
|
|
145
145
|
</aside>
|
|
146
146
|
</section>
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
<div class="tsd-signature tsd-kind-icon">Equal<wbr>Actions<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
151
151
|
<aside class="tsd-sources">
|
|
152
152
|
<ul>
|
|
153
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
153
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/ui/action/EqualActions.tsx#L11">src/components/ui/action/EqualActions.tsx:11</a></li>
|
|
154
154
|
</ul>
|
|
155
155
|
</aside>
|
|
156
156
|
</section>
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
<div class="tsd-signature tsd-kind-icon">Header<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
161
161
|
<aside class="tsd-sources">
|
|
162
162
|
<ul>
|
|
163
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
163
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/layout/header/Header.tsx#L23">src/components/layout/header/Header.tsx:23</a></li>
|
|
164
164
|
</ul>
|
|
165
165
|
</aside>
|
|
166
166
|
</section>
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
<div class="tsd-signature tsd-kind-icon">Header<wbr>Icon<wbr>Action<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.VFC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
171
171
|
<aside class="tsd-sources">
|
|
172
172
|
<ul>
|
|
173
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
173
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/layout/header/HeaderIconAction.tsx#L22">src/components/layout/header/HeaderIconAction.tsx:22</a></li>
|
|
174
174
|
</ul>
|
|
175
175
|
</aside>
|
|
176
176
|
</section>
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
<div class="tsd-signature tsd-kind-icon">Icon<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
181
181
|
<aside class="tsd-sources">
|
|
182
182
|
<ul>
|
|
183
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
183
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/icons/Icon.tsx#L25">src/components/icons/Icon.tsx:25</a></li>
|
|
184
184
|
</ul>
|
|
185
185
|
</aside>
|
|
186
186
|
</section>
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
<div class="tsd-signature tsd-kind-icon">Item<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">SubComponents</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
191
191
|
<aside class="tsd-sources">
|
|
192
192
|
<ul>
|
|
193
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
193
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/layout/list/Item.tsx#L27">src/components/layout/list/Item.tsx:27</a></li>
|
|
194
194
|
</ul>
|
|
195
195
|
</aside>
|
|
196
196
|
</section>
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
<div class="tsd-signature tsd-kind-icon">List<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">SubComponents</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
201
201
|
<aside class="tsd-sources">
|
|
202
202
|
<ul>
|
|
203
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
203
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/layout/list/List.tsx#L10">src/components/layout/list/List.tsx:10</a></li>
|
|
204
204
|
</ul>
|
|
205
205
|
</aside>
|
|
206
206
|
</section>
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
<div class="tsd-signature tsd-kind-icon">Sticky<wbr>Header<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.FC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">Content</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
211
211
|
<aside class="tsd-sources">
|
|
212
212
|
<ul>
|
|
213
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
213
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/layout/header/StickyHeader.tsx#L17">src/components/layout/header/StickyHeader.tsx:17</a></li>
|
|
214
214
|
</ul>
|
|
215
215
|
</aside>
|
|
216
216
|
</section>
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
<div class="tsd-signature tsd-kind-icon">Toggle<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">React.VFC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Props</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
221
221
|
<aside class="tsd-sources">
|
|
222
222
|
<ul>
|
|
223
|
-
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/
|
|
223
|
+
<li>Defined in <a href="https://github.com/dzek69/react-miui/blob/8840afb/src/components/form/Toggle.tsx#L11">src/components/form/Toggle.tsx:11</a></li>
|
|
224
224
|
</ul>
|
|
225
225
|
</aside>
|
|
226
226
|
</section>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>Test | react-miui - v0.4.
|
|
7
|
-
<meta name="description" content="Documentation for react-miui - v0.4.
|
|
6
|
+
<title>Test | react-miui - v0.4.3</title>
|
|
7
|
+
<meta name="description" content="Documentation for react-miui - v0.4.3">
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
9
|
<link rel="stylesheet" href="../../assets/css/main.css">
|
|
10
10
|
<link rel="stylesheet" href="../../assets/css/pages.css">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="state loading">Preparing search index...</li>
|
|
24
24
|
<li class="state failure">The search index is not available</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<a href="../../index.html" class="title">react-miui - v0.4.
|
|
26
|
+
<a href="../../index.html" class="title">react-miui - v0.4.3</a>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="table-cell" id="tsd-widgets">
|
|
29
29
|
<div id="tsd-filter">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import styles from "./Button.module.scss";
|
|
4
|
-
import { makeVariants } from "../../../
|
|
4
|
+
import { makeVariants } from "../../../utils/makeVariants.js";
|
|
5
5
|
const Button = (props) => {
|
|
6
6
|
const variants = makeVariants(props.variant);
|
|
7
7
|
const cls = classnames(styles.btn, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAO9D,MAAM,MAAM,GAAoB,CAAC,KAAK,EAAE,EAAE;IACtC,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE7C,MAAM,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpD,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;KACzD,CAAC,CAAC;IAEH,OAAO,CACH,gCAAQ,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAG,KAAK,CAAC,QAAQ,CAAU,CAC9E,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.d.ts","sourceRoot":"","sources":["../../src/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,0DAQjB,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.js","sourceRoot":"","sources":["../../src/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,CAAmB,QAA6B,EAAO,EAAE;IAC1E,IAAI,CAAC,QAAQ,EAAE;QACX,OAAO,EAAE,CAAC;KACb;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAC9B,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAQ,CAAC;KACrD;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
|
|
4
4
|
import styles from "./Button.module.scss";
|
|
5
|
-
import { makeVariants } from "../../../
|
|
5
|
+
import { makeVariants } from "../../../utils/makeVariants.js";
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
disabled?: boolean;
|
|
File without changes
|