@inialum/memories-react 0.0.1-canary.0
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/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/ButtonLink.d.ts +11 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +718 -0
- package/package.json +81 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024-present INIALUM - INIAD Alumni Meetings
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type Props = ComponentPropsWithRef<'button'> & {
|
|
4
|
+
colorTheme?: 'primary' | 'secondary' | 'white';
|
|
5
|
+
size?: 'small' | 'medium' | 'large' | 'fullWidth';
|
|
6
|
+
styleType?: 'filled' | 'outlined';
|
|
7
|
+
radius?: 'none' | 'rounded' | 'moreRounded';
|
|
8
|
+
};
|
|
9
|
+
export declare const Button: ({ colorTheme, size, styleType, radius, className, children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type Props = ComponentPropsWithRef<'a'> & {
|
|
4
|
+
colorTheme?: 'primary' | 'secondary' | 'white';
|
|
5
|
+
size?: 'small' | 'medium' | 'large' | 'fullWidth';
|
|
6
|
+
styleType?: 'filled' | 'outlined';
|
|
7
|
+
radius?: 'none' | 'rounded' | 'moreRounded';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const ButtonLink: ({ colorTheme, size, styleType, radius, rel: _rel, className, children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button, ButtonLink } from './components';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
import we from "react";
|
|
2
|
+
var X = { exports: {} }, F = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var _e;
|
|
13
|
+
function fr() {
|
|
14
|
+
if (_e)
|
|
15
|
+
return F;
|
|
16
|
+
_e = 1;
|
|
17
|
+
var f = we, s = Symbol.for("react.element"), v = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, b = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function R(E, p, S) {
|
|
19
|
+
var y, _ = {}, C = null, L = null;
|
|
20
|
+
S !== void 0 && (C = "" + S), p.key !== void 0 && (C = "" + p.key), p.ref !== void 0 && (L = p.ref);
|
|
21
|
+
for (y in p)
|
|
22
|
+
l.call(p, y) && !O.hasOwnProperty(y) && (_[y] = p[y]);
|
|
23
|
+
if (E && E.defaultProps)
|
|
24
|
+
for (y in p = E.defaultProps, p)
|
|
25
|
+
_[y] === void 0 && (_[y] = p[y]);
|
|
26
|
+
return { $$typeof: s, type: E, key: C, ref: L, props: _, _owner: b.current };
|
|
27
|
+
}
|
|
28
|
+
return F.Fragment = v, F.jsx = R, F.jsxs = R, F;
|
|
29
|
+
}
|
|
30
|
+
var A = {};
|
|
31
|
+
/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-jsx-runtime.development.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
var Te;
|
|
41
|
+
function sr() {
|
|
42
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var f = we, s = Symbol.for("react.element"), v = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), E = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), Z = Symbol.iterator, Se = "@@iterator";
|
|
44
|
+
function ke(e) {
|
|
45
|
+
if (e === null || typeof e != "object")
|
|
46
|
+
return null;
|
|
47
|
+
var r = Z && e[Z] || e[Se];
|
|
48
|
+
return typeof r == "function" ? r : null;
|
|
49
|
+
}
|
|
50
|
+
var k = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function m(e) {
|
|
52
|
+
{
|
|
53
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
54
|
+
t[n - 1] = arguments[n];
|
|
55
|
+
xe("error", e, t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function xe(e, r, t) {
|
|
59
|
+
{
|
|
60
|
+
var n = k.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
61
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
62
|
+
var u = t.map(function(o) {
|
|
63
|
+
return String(o);
|
|
64
|
+
});
|
|
65
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var je = !1, Be = !1, De = !1, Fe = !1, Ae = !1, Q;
|
|
69
|
+
Q = Symbol.for("react.module.reference");
|
|
70
|
+
function Le(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === O || Ae || e === b || e === S || e === y || Fe || e === L || je || Be || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === _ || e.$$typeof === R || e.$$typeof === E || e.$$typeof === p || // This needs to include all possible module reference object
|
|
72
|
+
// types supported by any Flight configuration anywhere since
|
|
73
|
+
// we don't know which Flight build this will end up being used
|
|
74
|
+
// with.
|
|
75
|
+
e.$$typeof === Q || e.getModuleId !== void 0));
|
|
76
|
+
}
|
|
77
|
+
function Ie(e, r, t) {
|
|
78
|
+
var n = e.displayName;
|
|
79
|
+
if (n)
|
|
80
|
+
return n;
|
|
81
|
+
var i = r.displayName || r.name || "";
|
|
82
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
83
|
+
}
|
|
84
|
+
function z(e) {
|
|
85
|
+
return e.displayName || "Context";
|
|
86
|
+
}
|
|
87
|
+
function T(e) {
|
|
88
|
+
if (e == null)
|
|
89
|
+
return null;
|
|
90
|
+
if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
|
+
return e.displayName || e.name || null;
|
|
92
|
+
if (typeof e == "string")
|
|
93
|
+
return e;
|
|
94
|
+
switch (e) {
|
|
95
|
+
case l:
|
|
96
|
+
return "Fragment";
|
|
97
|
+
case v:
|
|
98
|
+
return "Portal";
|
|
99
|
+
case O:
|
|
100
|
+
return "Profiler";
|
|
101
|
+
case b:
|
|
102
|
+
return "StrictMode";
|
|
103
|
+
case S:
|
|
104
|
+
return "Suspense";
|
|
105
|
+
case y:
|
|
106
|
+
return "SuspenseList";
|
|
107
|
+
}
|
|
108
|
+
if (typeof e == "object")
|
|
109
|
+
switch (e.$$typeof) {
|
|
110
|
+
case E:
|
|
111
|
+
var r = e;
|
|
112
|
+
return z(r) + ".Consumer";
|
|
113
|
+
case R:
|
|
114
|
+
var t = e;
|
|
115
|
+
return z(t._context) + ".Provider";
|
|
116
|
+
case p:
|
|
117
|
+
return Ie(e, e.render, "ForwardRef");
|
|
118
|
+
case _:
|
|
119
|
+
var n = e.displayName || null;
|
|
120
|
+
return n !== null ? n : T(e.type) || "Memo";
|
|
121
|
+
case C: {
|
|
122
|
+
var i = e, u = i._payload, o = i._init;
|
|
123
|
+
try {
|
|
124
|
+
return T(o(u));
|
|
125
|
+
} catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
var P = Object.assign, B = 0, ee, re, te, ne, ae, oe, ie;
|
|
133
|
+
function ue() {
|
|
134
|
+
}
|
|
135
|
+
ue.__reactDisabledLog = !0;
|
|
136
|
+
function We() {
|
|
137
|
+
{
|
|
138
|
+
if (B === 0) {
|
|
139
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
140
|
+
var e = {
|
|
141
|
+
configurable: !0,
|
|
142
|
+
enumerable: !0,
|
|
143
|
+
value: ue,
|
|
144
|
+
writable: !0
|
|
145
|
+
};
|
|
146
|
+
Object.defineProperties(console, {
|
|
147
|
+
info: e,
|
|
148
|
+
log: e,
|
|
149
|
+
warn: e,
|
|
150
|
+
error: e,
|
|
151
|
+
group: e,
|
|
152
|
+
groupCollapsed: e,
|
|
153
|
+
groupEnd: e
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
B++;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function $e() {
|
|
160
|
+
{
|
|
161
|
+
if (B--, B === 0) {
|
|
162
|
+
var e = {
|
|
163
|
+
configurable: !0,
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
writable: !0
|
|
166
|
+
};
|
|
167
|
+
Object.defineProperties(console, {
|
|
168
|
+
log: P({}, e, {
|
|
169
|
+
value: ee
|
|
170
|
+
}),
|
|
171
|
+
info: P({}, e, {
|
|
172
|
+
value: re
|
|
173
|
+
}),
|
|
174
|
+
warn: P({}, e, {
|
|
175
|
+
value: te
|
|
176
|
+
}),
|
|
177
|
+
error: P({}, e, {
|
|
178
|
+
value: ne
|
|
179
|
+
}),
|
|
180
|
+
group: P({}, e, {
|
|
181
|
+
value: ae
|
|
182
|
+
}),
|
|
183
|
+
groupCollapsed: P({}, e, {
|
|
184
|
+
value: oe
|
|
185
|
+
}),
|
|
186
|
+
groupEnd: P({}, e, {
|
|
187
|
+
value: ie
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
B < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var V = k.ReactCurrentDispatcher, M;
|
|
195
|
+
function I(e, r, t) {
|
|
196
|
+
{
|
|
197
|
+
if (M === void 0)
|
|
198
|
+
try {
|
|
199
|
+
throw Error();
|
|
200
|
+
} catch (i) {
|
|
201
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
M = n && n[1] || "";
|
|
203
|
+
}
|
|
204
|
+
return `
|
|
205
|
+
` + M + e;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var U = !1, W;
|
|
209
|
+
{
|
|
210
|
+
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
W = new Ye();
|
|
212
|
+
}
|
|
213
|
+
function le(e, r) {
|
|
214
|
+
if (!e || U)
|
|
215
|
+
return "";
|
|
216
|
+
{
|
|
217
|
+
var t = W.get(e);
|
|
218
|
+
if (t !== void 0)
|
|
219
|
+
return t;
|
|
220
|
+
}
|
|
221
|
+
var n;
|
|
222
|
+
U = !0;
|
|
223
|
+
var i = Error.prepareStackTrace;
|
|
224
|
+
Error.prepareStackTrace = void 0;
|
|
225
|
+
var u;
|
|
226
|
+
u = V.current, V.current = null, We();
|
|
227
|
+
try {
|
|
228
|
+
if (r) {
|
|
229
|
+
var o = function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
};
|
|
232
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
233
|
+
set: function() {
|
|
234
|
+
throw Error();
|
|
235
|
+
}
|
|
236
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
+
try {
|
|
238
|
+
Reflect.construct(o, []);
|
|
239
|
+
} catch (w) {
|
|
240
|
+
n = w;
|
|
241
|
+
}
|
|
242
|
+
Reflect.construct(e, [], o);
|
|
243
|
+
} else {
|
|
244
|
+
try {
|
|
245
|
+
o.call();
|
|
246
|
+
} catch (w) {
|
|
247
|
+
n = w;
|
|
248
|
+
}
|
|
249
|
+
e.call(o.prototype);
|
|
250
|
+
}
|
|
251
|
+
} else {
|
|
252
|
+
try {
|
|
253
|
+
throw Error();
|
|
254
|
+
} catch (w) {
|
|
255
|
+
n = w;
|
|
256
|
+
}
|
|
257
|
+
e();
|
|
258
|
+
}
|
|
259
|
+
} catch (w) {
|
|
260
|
+
if (w && n && typeof w.stack == "string") {
|
|
261
|
+
for (var a = w.stack.split(`
|
|
262
|
+
`), g = n.stack.split(`
|
|
263
|
+
`), c = a.length - 1, d = g.length - 1; c >= 1 && d >= 0 && a[c] !== g[d]; )
|
|
264
|
+
d--;
|
|
265
|
+
for (; c >= 1 && d >= 0; c--, d--)
|
|
266
|
+
if (a[c] !== g[d]) {
|
|
267
|
+
if (c !== 1 || d !== 1)
|
|
268
|
+
do
|
|
269
|
+
if (c--, d--, d < 0 || a[c] !== g[d]) {
|
|
270
|
+
var h = `
|
|
271
|
+
` + a[c].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, h), h;
|
|
273
|
+
}
|
|
274
|
+
while (c >= 1 && d >= 0);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
} finally {
|
|
279
|
+
U = !1, V.current = u, $e(), Error.prepareStackTrace = i;
|
|
280
|
+
}
|
|
281
|
+
var j = e ? e.displayName || e.name : "", Re = j ? I(j) : "";
|
|
282
|
+
return typeof e == "function" && W.set(e, Re), Re;
|
|
283
|
+
}
|
|
284
|
+
function Ne(e, r, t) {
|
|
285
|
+
return le(e, !1);
|
|
286
|
+
}
|
|
287
|
+
function Ve(e) {
|
|
288
|
+
var r = e.prototype;
|
|
289
|
+
return !!(r && r.isReactComponent);
|
|
290
|
+
}
|
|
291
|
+
function $(e, r, t) {
|
|
292
|
+
if (e == null)
|
|
293
|
+
return "";
|
|
294
|
+
if (typeof e == "function")
|
|
295
|
+
return le(e, Ve(e));
|
|
296
|
+
if (typeof e == "string")
|
|
297
|
+
return I(e);
|
|
298
|
+
switch (e) {
|
|
299
|
+
case S:
|
|
300
|
+
return I("Suspense");
|
|
301
|
+
case y:
|
|
302
|
+
return I("SuspenseList");
|
|
303
|
+
}
|
|
304
|
+
if (typeof e == "object")
|
|
305
|
+
switch (e.$$typeof) {
|
|
306
|
+
case p:
|
|
307
|
+
return Ne(e.render);
|
|
308
|
+
case _:
|
|
309
|
+
return $(e.type, r, t);
|
|
310
|
+
case C: {
|
|
311
|
+
var n = e, i = n._payload, u = n._init;
|
|
312
|
+
try {
|
|
313
|
+
return $(u(i), r, t);
|
|
314
|
+
} catch {
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return "";
|
|
319
|
+
}
|
|
320
|
+
var Y = Object.prototype.hasOwnProperty, fe = {}, se = k.ReactDebugCurrentFrame;
|
|
321
|
+
function N(e) {
|
|
322
|
+
if (e) {
|
|
323
|
+
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
324
|
+
se.setExtraStackFrame(t);
|
|
325
|
+
} else
|
|
326
|
+
se.setExtraStackFrame(null);
|
|
327
|
+
}
|
|
328
|
+
function Me(e, r, t, n, i) {
|
|
329
|
+
{
|
|
330
|
+
var u = Function.call.bind(Y);
|
|
331
|
+
for (var o in e)
|
|
332
|
+
if (u(e, o)) {
|
|
333
|
+
var a = void 0;
|
|
334
|
+
try {
|
|
335
|
+
if (typeof e[o] != "function") {
|
|
336
|
+
var g = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw g.name = "Invariant Violation", g;
|
|
338
|
+
}
|
|
339
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (c) {
|
|
341
|
+
a = c;
|
|
342
|
+
}
|
|
343
|
+
a && !(a instanceof Error) && (N(i), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), N(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, N(i), m("Failed %s type: %s", t, a.message), N(null));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
var Ue = Array.isArray;
|
|
348
|
+
function q(e) {
|
|
349
|
+
return Ue(e);
|
|
350
|
+
}
|
|
351
|
+
function qe(e) {
|
|
352
|
+
{
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return t;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function Je(e) {
|
|
358
|
+
try {
|
|
359
|
+
return ce(e), !1;
|
|
360
|
+
} catch {
|
|
361
|
+
return !0;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function ce(e) {
|
|
365
|
+
return "" + e;
|
|
366
|
+
}
|
|
367
|
+
function de(e) {
|
|
368
|
+
if (Je(e))
|
|
369
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ce(e);
|
|
370
|
+
}
|
|
371
|
+
var D = k.ReactCurrentOwner, Ge = {
|
|
372
|
+
key: !0,
|
|
373
|
+
ref: !0,
|
|
374
|
+
__self: !0,
|
|
375
|
+
__source: !0
|
|
376
|
+
}, ve, pe, J;
|
|
377
|
+
J = {};
|
|
378
|
+
function Ke(e) {
|
|
379
|
+
if (Y.call(e, "ref")) {
|
|
380
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (r && r.isReactWarning)
|
|
382
|
+
return !1;
|
|
383
|
+
}
|
|
384
|
+
return e.ref !== void 0;
|
|
385
|
+
}
|
|
386
|
+
function He(e) {
|
|
387
|
+
if (Y.call(e, "key")) {
|
|
388
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (r && r.isReactWarning)
|
|
390
|
+
return !1;
|
|
391
|
+
}
|
|
392
|
+
return e.key !== void 0;
|
|
393
|
+
}
|
|
394
|
+
function Xe(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
|
|
396
|
+
var t = T(D.current.type);
|
|
397
|
+
J[t] || (m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', T(D.current.type), e.ref), J[t] = !0);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function Ze(e, r) {
|
|
401
|
+
{
|
|
402
|
+
var t = function() {
|
|
403
|
+
ve || (ve = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
|
+
};
|
|
405
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: t,
|
|
407
|
+
configurable: !0
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function Qe(e, r) {
|
|
412
|
+
{
|
|
413
|
+
var t = function() {
|
|
414
|
+
pe || (pe = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
|
+
};
|
|
416
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: t,
|
|
418
|
+
configurable: !0
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var ze = function(e, r, t, n, i, u, o) {
|
|
423
|
+
var a = {
|
|
424
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
+
$$typeof: s,
|
|
426
|
+
// Built-in properties that belong on the element
|
|
427
|
+
type: e,
|
|
428
|
+
key: r,
|
|
429
|
+
ref: t,
|
|
430
|
+
props: o,
|
|
431
|
+
// Record the component responsible for creating this element.
|
|
432
|
+
_owner: u
|
|
433
|
+
};
|
|
434
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
435
|
+
configurable: !1,
|
|
436
|
+
enumerable: !1,
|
|
437
|
+
writable: !0,
|
|
438
|
+
value: !1
|
|
439
|
+
}), Object.defineProperty(a, "_self", {
|
|
440
|
+
configurable: !1,
|
|
441
|
+
enumerable: !1,
|
|
442
|
+
writable: !1,
|
|
443
|
+
value: n
|
|
444
|
+
}), Object.defineProperty(a, "_source", {
|
|
445
|
+
configurable: !1,
|
|
446
|
+
enumerable: !1,
|
|
447
|
+
writable: !1,
|
|
448
|
+
value: i
|
|
449
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
450
|
+
};
|
|
451
|
+
function er(e, r, t, n, i) {
|
|
452
|
+
{
|
|
453
|
+
var u, o = {}, a = null, g = null;
|
|
454
|
+
t !== void 0 && (de(t), a = "" + t), He(r) && (de(r.key), a = "" + r.key), Ke(r) && (g = r.ref, Xe(r, i));
|
|
455
|
+
for (u in r)
|
|
456
|
+
Y.call(r, u) && !Ge.hasOwnProperty(u) && (o[u] = r[u]);
|
|
457
|
+
if (e && e.defaultProps) {
|
|
458
|
+
var c = e.defaultProps;
|
|
459
|
+
for (u in c)
|
|
460
|
+
o[u] === void 0 && (o[u] = c[u]);
|
|
461
|
+
}
|
|
462
|
+
if (a || g) {
|
|
463
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
a && Ze(o, d), g && Qe(o, d);
|
|
465
|
+
}
|
|
466
|
+
return ze(e, a, g, i, n, D.current, o);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
var G = k.ReactCurrentOwner, me = k.ReactDebugCurrentFrame;
|
|
470
|
+
function x(e) {
|
|
471
|
+
if (e) {
|
|
472
|
+
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
473
|
+
me.setExtraStackFrame(t);
|
|
474
|
+
} else
|
|
475
|
+
me.setExtraStackFrame(null);
|
|
476
|
+
}
|
|
477
|
+
var K;
|
|
478
|
+
K = !1;
|
|
479
|
+
function H(e) {
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
481
|
+
}
|
|
482
|
+
function ge() {
|
|
483
|
+
{
|
|
484
|
+
if (G.current) {
|
|
485
|
+
var e = T(G.current.type);
|
|
486
|
+
if (e)
|
|
487
|
+
return `
|
|
488
|
+
|
|
489
|
+
Check the render method of \`` + e + "`.";
|
|
490
|
+
}
|
|
491
|
+
return "";
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function rr(e) {
|
|
495
|
+
{
|
|
496
|
+
if (e !== void 0) {
|
|
497
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
498
|
+
return `
|
|
499
|
+
|
|
500
|
+
Check your code at ` + r + ":" + t + ".";
|
|
501
|
+
}
|
|
502
|
+
return "";
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
var ye = {};
|
|
506
|
+
function tr(e) {
|
|
507
|
+
{
|
|
508
|
+
var r = ge();
|
|
509
|
+
if (!r) {
|
|
510
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
511
|
+
t && (r = `
|
|
512
|
+
|
|
513
|
+
Check the top-level render call using <` + t + ">.");
|
|
514
|
+
}
|
|
515
|
+
return r;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function be(e, r) {
|
|
519
|
+
{
|
|
520
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
521
|
+
return;
|
|
522
|
+
e._store.validated = !0;
|
|
523
|
+
var t = tr(r);
|
|
524
|
+
if (ye[t])
|
|
525
|
+
return;
|
|
526
|
+
ye[t] = !0;
|
|
527
|
+
var n = "";
|
|
528
|
+
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + T(e._owner.type) + "."), x(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), x(null);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
function he(e, r) {
|
|
532
|
+
{
|
|
533
|
+
if (typeof e != "object")
|
|
534
|
+
return;
|
|
535
|
+
if (q(e))
|
|
536
|
+
for (var t = 0; t < e.length; t++) {
|
|
537
|
+
var n = e[t];
|
|
538
|
+
H(n) && be(n, r);
|
|
539
|
+
}
|
|
540
|
+
else if (H(e))
|
|
541
|
+
e._store && (e._store.validated = !0);
|
|
542
|
+
else if (e) {
|
|
543
|
+
var i = ke(e);
|
|
544
|
+
if (typeof i == "function" && i !== e.entries)
|
|
545
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
546
|
+
H(o.value) && be(o.value, r);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
function nr(e) {
|
|
551
|
+
{
|
|
552
|
+
var r = e.type;
|
|
553
|
+
if (r == null || typeof r == "string")
|
|
554
|
+
return;
|
|
555
|
+
var t;
|
|
556
|
+
if (typeof r == "function")
|
|
557
|
+
t = r.propTypes;
|
|
558
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
559
|
+
// Inner props are checked in the reconciler.
|
|
560
|
+
r.$$typeof === _))
|
|
561
|
+
t = r.propTypes;
|
|
562
|
+
else
|
|
563
|
+
return;
|
|
564
|
+
if (t) {
|
|
565
|
+
var n = T(r);
|
|
566
|
+
Me(t, e.props, "prop", n, e);
|
|
567
|
+
} else if (r.PropTypes !== void 0 && !K) {
|
|
568
|
+
K = !0;
|
|
569
|
+
var i = T(r);
|
|
570
|
+
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
571
|
+
}
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function ar(e) {
|
|
576
|
+
{
|
|
577
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
|
+
var n = r[t];
|
|
579
|
+
if (n !== "children" && n !== "key") {
|
|
580
|
+
x(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
e.ref !== null && (x(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function Ee(e, r, t, n, i, u) {
|
|
588
|
+
{
|
|
589
|
+
var o = Le(e);
|
|
590
|
+
if (!o) {
|
|
591
|
+
var a = "";
|
|
592
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
+
var g = rr(i);
|
|
594
|
+
g ? a += g : a += ge();
|
|
595
|
+
var c;
|
|
596
|
+
e === null ? c = "null" : q(e) ? c = "array" : e !== void 0 && e.$$typeof === s ? (c = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
|
|
597
|
+
}
|
|
598
|
+
var d = er(e, r, t, i, u);
|
|
599
|
+
if (d == null)
|
|
600
|
+
return d;
|
|
601
|
+
if (o) {
|
|
602
|
+
var h = r.children;
|
|
603
|
+
if (h !== void 0)
|
|
604
|
+
if (n)
|
|
605
|
+
if (q(h)) {
|
|
606
|
+
for (var j = 0; j < h.length; j++)
|
|
607
|
+
he(h[j], e);
|
|
608
|
+
Object.freeze && Object.freeze(h);
|
|
609
|
+
} else
|
|
610
|
+
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
|
+
else
|
|
612
|
+
he(h, e);
|
|
613
|
+
}
|
|
614
|
+
return e === l ? ar(d) : nr(d), d;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
function or(e, r, t) {
|
|
618
|
+
return Ee(e, r, t, !0);
|
|
619
|
+
}
|
|
620
|
+
function ir(e, r, t) {
|
|
621
|
+
return Ee(e, r, t, !1);
|
|
622
|
+
}
|
|
623
|
+
var ur = ir, lr = or;
|
|
624
|
+
A.Fragment = l, A.jsx = ur, A.jsxs = lr;
|
|
625
|
+
}()), A;
|
|
626
|
+
}
|
|
627
|
+
process.env.NODE_ENV === "production" ? X.exports = fr() : X.exports = sr();
|
|
628
|
+
var Oe = X.exports;
|
|
629
|
+
function Ce(f) {
|
|
630
|
+
var s, v, l = "";
|
|
631
|
+
if (typeof f == "string" || typeof f == "number")
|
|
632
|
+
l += f;
|
|
633
|
+
else if (typeof f == "object")
|
|
634
|
+
if (Array.isArray(f)) {
|
|
635
|
+
var b = f.length;
|
|
636
|
+
for (s = 0; s < b; s++)
|
|
637
|
+
f[s] && (v = Ce(f[s])) && (l && (l += " "), l += v);
|
|
638
|
+
} else
|
|
639
|
+
for (v in f)
|
|
640
|
+
f[v] && (l && (l += " "), l += v);
|
|
641
|
+
return l;
|
|
642
|
+
}
|
|
643
|
+
function Pe() {
|
|
644
|
+
for (var f, s, v = 0, l = "", b = arguments.length; v < b; v++)
|
|
645
|
+
(f = arguments[v]) && (s = Ce(f)) && (l && (l += " "), l += s);
|
|
646
|
+
return l;
|
|
647
|
+
}
|
|
648
|
+
const dr = ({
|
|
649
|
+
colorTheme: f = "primary",
|
|
650
|
+
size: s = "medium",
|
|
651
|
+
styleType: v = "filled",
|
|
652
|
+
radius: l = "none",
|
|
653
|
+
className: b,
|
|
654
|
+
children: O,
|
|
655
|
+
...R
|
|
656
|
+
}) => /* @__PURE__ */ Oe.jsx(
|
|
657
|
+
"button",
|
|
658
|
+
{
|
|
659
|
+
...R,
|
|
660
|
+
className: Pe(
|
|
661
|
+
b,
|
|
662
|
+
"Button",
|
|
663
|
+
f === "primary" && "Button--primary",
|
|
664
|
+
f === "secondary" && "Button--secondary",
|
|
665
|
+
f === "white" && "Button--white",
|
|
666
|
+
s === "small" && "Button--small",
|
|
667
|
+
s === "medium" && "Button--medium",
|
|
668
|
+
s === "large" && "Button--large",
|
|
669
|
+
s === "fullWidth" && "Button--full-width",
|
|
670
|
+
v === "filled" && "Button--filled",
|
|
671
|
+
v === "outlined" && "Button--outlined",
|
|
672
|
+
l === "rounded" && "Button--rounded",
|
|
673
|
+
l === "moreRounded" && "Button--more-rounded",
|
|
674
|
+
R.disabled && "Button--disabled"
|
|
675
|
+
),
|
|
676
|
+
children: O
|
|
677
|
+
}
|
|
678
|
+
), vr = ({
|
|
679
|
+
colorTheme: f = "primary",
|
|
680
|
+
size: s = "medium",
|
|
681
|
+
styleType: v = "filled",
|
|
682
|
+
radius: l = "none",
|
|
683
|
+
rel: b,
|
|
684
|
+
className: O,
|
|
685
|
+
children: R,
|
|
686
|
+
...E
|
|
687
|
+
}) => {
|
|
688
|
+
let p = b;
|
|
689
|
+
return E.target === "_blank" && typeof p > "u" && (p = "noopener"), /* @__PURE__ */ Oe.jsx(
|
|
690
|
+
"a",
|
|
691
|
+
{
|
|
692
|
+
...E,
|
|
693
|
+
rel: p,
|
|
694
|
+
className: Pe(
|
|
695
|
+
O,
|
|
696
|
+
"ButtonLink",
|
|
697
|
+
f === "primary" && "ButtonLink--primary",
|
|
698
|
+
f === "secondary" && "ButtonLink--secondary",
|
|
699
|
+
f === "white" && "ButtonLink--white",
|
|
700
|
+
s === "small" && "ButtonLink--small",
|
|
701
|
+
s === "medium" && "ButtonLink--medium",
|
|
702
|
+
s === "large" && "ButtonLink--large",
|
|
703
|
+
s === "fullWidth" && "ButtonLink--full-width",
|
|
704
|
+
v === "filled" && "ButtonLink--filled",
|
|
705
|
+
v === "outlined" && "ButtonLink--outlined",
|
|
706
|
+
l === "rounded" && "ButtonLink--rounded",
|
|
707
|
+
l === "moreRounded" && "ButtonLink--more-rounded",
|
|
708
|
+
E.disabled && "ButtonLink--disabled"
|
|
709
|
+
),
|
|
710
|
+
children: R
|
|
711
|
+
}
|
|
712
|
+
);
|
|
713
|
+
};
|
|
714
|
+
export {
|
|
715
|
+
dr as Button,
|
|
716
|
+
vr as ButtonLink
|
|
717
|
+
};
|
|
718
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@inialum/memories-react",
|
|
3
|
+
"version": "0.0.1-canary.0",
|
|
4
|
+
"description": "React component library for the Memories - INIALUM Design System",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "INIALUM - INIAD Alumni Meetings",
|
|
8
|
+
"email": "contact@inialum.org",
|
|
9
|
+
"url": "https://inialum.org"
|
|
10
|
+
},
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/inialum/memories"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"react",
|
|
21
|
+
"design-system",
|
|
22
|
+
"tailwindcss",
|
|
23
|
+
"ui"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.0.0"
|
|
27
|
+
},
|
|
28
|
+
"main": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"./dist/**/*.js",
|
|
32
|
+
"./dist/**/*.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"clsx": "^2.1.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@storybook/addon-a11y": "^8.0.6",
|
|
39
|
+
"@storybook/addon-essentials": "^8.0.6",
|
|
40
|
+
"@storybook/addon-interactions": "^8.0.6",
|
|
41
|
+
"@storybook/addon-links": "^8.0.6",
|
|
42
|
+
"@storybook/blocks": "^8.0.6",
|
|
43
|
+
"@storybook/manager-api": "^8.0.6",
|
|
44
|
+
"@storybook/react": "^8.0.6",
|
|
45
|
+
"@storybook/react-vite": "^8.0.6",
|
|
46
|
+
"@storybook/test": "^8.0.6",
|
|
47
|
+
"@storybook/theming": "^8.0.6",
|
|
48
|
+
"@types/react": "^18.2.74",
|
|
49
|
+
"@types/react-dom": "^18.2.24",
|
|
50
|
+
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
51
|
+
"autoprefixer": "^10.4.19",
|
|
52
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
53
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
54
|
+
"postcss": "^8.4.38",
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0",
|
|
57
|
+
"storybook": "^8.0.6",
|
|
58
|
+
"tailwindcss": "^3.4.3",
|
|
59
|
+
"vite": "^5.2.8",
|
|
60
|
+
"vite-plugin-dts": "^3.8.1",
|
|
61
|
+
"@inialum/memories-css": "0.0.1"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@inialum/memories-css": "latest",
|
|
65
|
+
"react": ">= 18.2.0",
|
|
66
|
+
"react-dom": ">= 18.2.0",
|
|
67
|
+
"tailwindcss": ">= 3.0.0"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "vite build",
|
|
71
|
+
"lint": "pnpm run lint:check && pnpm run format:check",
|
|
72
|
+
"lint:check": "eslint --cache \"**/*.{js,jsx,ts,tsx}\" --ignore-path ../../.gitignore .",
|
|
73
|
+
"lint:fix": "eslint --fix --cache \"**/*.{js,jsx,ts,tsx}\" --ignore-path ../../.gitignore .",
|
|
74
|
+
"format": "pnpm run format:fix",
|
|
75
|
+
"format:check": "prettier --cache --check \"**/*.{js,jsx,ts,tsx,json,md}\"",
|
|
76
|
+
"format:fix": "prettier --cache --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
|
|
77
|
+
"storybook:dev": "storybook dev -p 6006 --no-open",
|
|
78
|
+
"storybook:build": "storybook build",
|
|
79
|
+
"typecheck": "tsc --noEmit"
|
|
80
|
+
}
|
|
81
|
+
}
|