@emporix/component-library 1.0.1 → 1.1.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/dist/components/buttons/SecondaryButton.d.ts +25 -0
- package/dist/components/buttons/SecondaryButton.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +259 -230
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -1
- package/dist/styles.d.ts +4 -0
- package/package.json +6 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SecondaryButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the button
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the button is disabled
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Click handler
|
|
13
|
+
*/
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Additional CSS class name
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Test ID for testing
|
|
21
|
+
*/
|
|
22
|
+
'data-testid'?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const SecondaryButton: ({ children, disabled, onClick, className, "data-testid": testId, ...props }: SecondaryButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=SecondaryButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,eAAe,GAAI,6EAO7B,oBAAoB,4CAqBtB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { PrimaryButton } from './components/buttons/PrimaryButton';
|
|
2
2
|
export type { PrimaryButtonProps } from './components/buttons/PrimaryButton';
|
|
3
|
+
export { SecondaryButton } from './components/buttons/SecondaryButton';
|
|
4
|
+
export type { SecondaryButtonProps } from './components/buttons/SecondaryButton';
|
|
3
5
|
export { Tabs } from './components/tabs/Tabs';
|
|
4
6
|
export type { TabsProps, TabItem } from './components/tabs/Tabs';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAGhE,OAAO,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAGhE,OAAO,qBAAqB,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var U = { exports: {} },
|
|
1
|
+
import we from "react";
|
|
2
|
+
var U = { exports: {} }, $ = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var U = { exports: {} }, L = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function g(
|
|
18
|
-
var f,
|
|
19
|
-
|
|
20
|
-
for (f in u)
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
12
|
+
var je;
|
|
13
|
+
function pr() {
|
|
14
|
+
if (je) return $;
|
|
15
|
+
je = 1;
|
|
16
|
+
var h = we, p = Symbol.for("react.element"), C = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, m = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function g(R, u, P) {
|
|
18
|
+
var f, T = {}, x = null, W = null;
|
|
19
|
+
P !== void 0 && (x = "" + P), u.key !== void 0 && (x = "" + u.key), u.ref !== void 0 && (W = u.ref);
|
|
20
|
+
for (f in u) _.call(u, f) && !E.hasOwnProperty(f) && (T[f] = u[f]);
|
|
21
|
+
if (R && R.defaultProps) for (f in u = R.defaultProps, u) T[f] === void 0 && (T[f] = u[f]);
|
|
22
|
+
return { $$typeof: p, type: R, key: x, ref: W, props: T, _owner: m.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return $.Fragment = C, $.jsx = g, $.jsxs = g, $;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var L = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,38 +33,38 @@ var W = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var
|
|
40
|
-
function
|
|
36
|
+
var Oe;
|
|
37
|
+
function br() {
|
|
38
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
+
var h = we, p = Symbol.for("react.element"), C = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), R = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
|
|
40
|
+
function De(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = Q && e[Q] || e[
|
|
43
|
+
var r = Q && e[Q] || e[ke];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var D =
|
|
46
|
+
var D = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function d(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
50
|
t[n - 1] = arguments[n];
|
|
51
|
-
|
|
51
|
+
Fe("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Fe(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var n = D.ReactDebugCurrentFrame,
|
|
57
|
-
|
|
58
|
-
var s = t.map(function(
|
|
59
|
-
return String(
|
|
56
|
+
var n = D.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
57
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
58
|
+
var s = t.map(function(o) {
|
|
59
|
+
return String(o);
|
|
60
60
|
});
|
|
61
61
|
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var Ae = !1, Be = !1, Ie = !1, $e = !1, Le = !1, ee;
|
|
65
65
|
ee = Symbol.for("react.module.reference");
|
|
66
66
|
function We(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === _ || e === E || Le || e === m || e === P || e === f || $e || e === W || Ae || Be || Ie || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === T || e.$$typeof === g || e.$$typeof === R || e.$$typeof === u || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
@@ -74,13 +74,13 @@ function pr() {
|
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var i = r.displayName || r.name || "";
|
|
78
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
79
79
|
}
|
|
80
80
|
function re(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function S(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
86
|
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -88,22 +88,22 @@ function pr() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case _:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case C:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case E:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case m:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case P:
|
|
100
100
|
return "Suspense";
|
|
101
101
|
case f:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case R:
|
|
107
107
|
var r = e;
|
|
108
108
|
return re(r) + ".Consumer";
|
|
109
109
|
case g:
|
|
@@ -111,13 +111,13 @@ function pr() {
|
|
|
111
111
|
return re(t._context) + ".Provider";
|
|
112
112
|
case u:
|
|
113
113
|
return Ye(e, e.render, "ForwardRef");
|
|
114
|
-
case
|
|
114
|
+
case T:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n :
|
|
116
|
+
return n !== null ? n : S(e.type) || "Memo";
|
|
117
117
|
case x: {
|
|
118
|
-
var
|
|
118
|
+
var i = e, s = i._payload, o = i._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return S(o(s));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function pr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var w = Object.assign,
|
|
128
|
+
var w = Object.assign, B = 0, te, ne, ae, oe, ie, se, ue;
|
|
129
129
|
function le() {
|
|
130
130
|
}
|
|
131
131
|
le.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function Ne() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
te = console.log, ne = console.info, ae = console.warn,
|
|
134
|
+
if (B === 0) {
|
|
135
|
+
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, ue = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -149,12 +149,12 @@ function pr() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
B++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ve() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (B--, B === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -171,10 +171,10 @@ function pr() {
|
|
|
171
171
|
value: ae
|
|
172
172
|
}),
|
|
173
173
|
error: w({}, e, {
|
|
174
|
-
value:
|
|
174
|
+
value: oe
|
|
175
175
|
}),
|
|
176
176
|
group: w({}, e, {
|
|
177
|
-
value:
|
|
177
|
+
value: ie
|
|
178
178
|
}),
|
|
179
179
|
groupCollapsed: w({}, e, {
|
|
180
180
|
value: se
|
|
@@ -184,17 +184,17 @@ function pr() {
|
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
B < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
var J = D.ReactCurrentDispatcher, q;
|
|
191
|
-
function
|
|
191
|
+
function Y(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (q === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var n =
|
|
196
|
+
} catch (i) {
|
|
197
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
198
|
q = n && n[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
@@ -203,8 +203,8 @@ function pr() {
|
|
|
203
203
|
}
|
|
204
204
|
var K = !1, N;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
N = new
|
|
206
|
+
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
N = new Me();
|
|
208
208
|
}
|
|
209
209
|
function ce(e, r) {
|
|
210
210
|
if (!e || K)
|
|
@@ -216,45 +216,45 @@ function pr() {
|
|
|
216
216
|
}
|
|
217
217
|
var n;
|
|
218
218
|
K = !0;
|
|
219
|
-
var
|
|
219
|
+
var i = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var s;
|
|
222
|
-
s = J.current, J.current = null,
|
|
222
|
+
s = J.current, J.current = null, Ne();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var o = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
n =
|
|
234
|
+
Reflect.construct(o, []);
|
|
235
|
+
} catch (b) {
|
|
236
|
+
n = b;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], o);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
n =
|
|
241
|
+
o.call();
|
|
242
|
+
} catch (b) {
|
|
243
|
+
n = b;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(o.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
n =
|
|
250
|
+
} catch (b) {
|
|
251
|
+
n = b;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var a =
|
|
255
|
+
} catch (b) {
|
|
256
|
+
if (b && n && typeof b.stack == "string") {
|
|
257
|
+
for (var a = b.stack.split(`
|
|
258
258
|
`), v = n.stack.split(`
|
|
259
259
|
`), l = a.length - 1, c = v.length - 1; l >= 1 && c >= 0 && a[l] !== v[c]; )
|
|
260
260
|
c--;
|
|
@@ -263,24 +263,24 @@ function pr() {
|
|
|
263
263
|
if (l !== 1 || c !== 1)
|
|
264
264
|
do
|
|
265
265
|
if (l--, c--, c < 0 || a[l] !== v[c]) {
|
|
266
|
-
var
|
|
266
|
+
var y = `
|
|
267
267
|
` + a[l].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, y), y;
|
|
269
269
|
}
|
|
270
270
|
while (l >= 1 && c >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
K = !1, J.current = s,
|
|
275
|
+
K = !1, J.current = s, Ve(), Error.prepareStackTrace = i;
|
|
276
276
|
}
|
|
277
|
-
var A = e ? e.displayName || e.name : "", k = A ?
|
|
277
|
+
var A = e ? e.displayName || e.name : "", k = A ? Y(A) : "";
|
|
278
278
|
return typeof e == "function" && N.set(e, k), k;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Ue(e, r, t) {
|
|
281
281
|
return ce(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Je(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,32 +288,32 @@ function pr() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return ce(e,
|
|
291
|
+
return ce(e, Je(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return Y(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
295
|
+
case P:
|
|
296
|
+
return Y("Suspense");
|
|
297
297
|
case f:
|
|
298
|
-
return
|
|
298
|
+
return Y("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case u:
|
|
303
|
-
return
|
|
304
|
-
case
|
|
303
|
+
return Ue(e.render);
|
|
304
|
+
case T:
|
|
305
305
|
return V(e.type, r, t);
|
|
306
306
|
case x: {
|
|
307
|
-
var n = e,
|
|
307
|
+
var n = e, i = n._payload, s = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return V(s(
|
|
309
|
+
return V(s(i), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var I = Object.prototype.hasOwnProperty, fe = {}, de = D.ReactDebugCurrentFrame;
|
|
317
317
|
function M(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
@@ -321,36 +321,36 @@ function pr() {
|
|
|
321
321
|
} else
|
|
322
322
|
de.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function qe(e, r, t, n, i) {
|
|
325
325
|
{
|
|
326
|
-
var s = Function.call.bind(
|
|
327
|
-
for (var
|
|
328
|
-
if (s(e,
|
|
326
|
+
var s = Function.call.bind(I);
|
|
327
|
+
for (var o in e)
|
|
328
|
+
if (s(e, o)) {
|
|
329
329
|
var a = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var v = Error((n || "React class") + ": " + t + " type `" +
|
|
331
|
+
if (typeof e[o] != "function") {
|
|
332
|
+
var v = 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`.");
|
|
333
333
|
throw v.name = "Invariant Violation", v;
|
|
334
334
|
}
|
|
335
|
-
a = e[
|
|
335
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (l) {
|
|
337
337
|
a = l;
|
|
338
338
|
}
|
|
339
|
-
a && !(a instanceof Error) && (M(
|
|
339
|
+
a && !(a instanceof Error) && (M(i), d("%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), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), d("Failed %s type: %s", t, a.message), M(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var Ke = Array.isArray;
|
|
344
344
|
function H(e) {
|
|
345
|
-
return
|
|
345
|
+
return Ke(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function He(e) {
|
|
348
348
|
{
|
|
349
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ge(e) {
|
|
354
354
|
try {
|
|
355
355
|
return ve(e), !1;
|
|
356
356
|
} catch {
|
|
@@ -361,35 +361,35 @@ function pr() {
|
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function pe(e) {
|
|
364
|
-
if (
|
|
365
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
364
|
+
if (Ge(e))
|
|
365
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), ve(e);
|
|
366
366
|
}
|
|
367
|
-
var be = D.ReactCurrentOwner,
|
|
367
|
+
var be = D.ReactCurrentOwner, ze = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
}, _e,
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
372
|
+
}, _e, ye;
|
|
373
|
+
function Xe(e) {
|
|
374
|
+
if (I.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
381
|
+
function Ze(e) {
|
|
382
|
+
if (I.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Qe(e, r) {
|
|
390
390
|
typeof e.ref == "string" && be.current;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function er(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
395
|
_e || (_e = !0, d("%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));
|
|
@@ -400,10 +400,10 @@ function pr() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function rr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
|
|
406
|
+
ye || (ye = !0, d("%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));
|
|
407
407
|
};
|
|
408
408
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: t,
|
|
@@ -411,15 +411,15 @@ function pr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var tr = function(e, r, t, n, i, s, o) {
|
|
415
415
|
var a = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
417
|
+
$$typeof: p,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: t,
|
|
422
|
-
props:
|
|
422
|
+
props: o,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
424
|
_owner: s
|
|
425
425
|
};
|
|
@@ -437,44 +437,44 @@ function pr() {
|
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
440
|
+
value: i
|
|
441
441
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function nr(e, r, t, n, i) {
|
|
444
444
|
{
|
|
445
|
-
var s,
|
|
446
|
-
t !== void 0 && (pe(t), a = "" + t),
|
|
445
|
+
var s, o = {}, a = null, v = null;
|
|
446
|
+
t !== void 0 && (pe(t), a = "" + t), Ze(r) && (pe(r.key), a = "" + r.key), Xe(r) && (v = r.ref, Qe(r, i));
|
|
447
447
|
for (s in r)
|
|
448
|
-
|
|
448
|
+
I.call(r, s) && !ze.hasOwnProperty(s) && (o[s] = r[s]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var l = e.defaultProps;
|
|
451
451
|
for (s in l)
|
|
452
|
-
|
|
452
|
+
o[s] === void 0 && (o[s] = l[s]);
|
|
453
453
|
}
|
|
454
454
|
if (a || v) {
|
|
455
455
|
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
a &&
|
|
456
|
+
a && er(o, c), v && rr(o, c);
|
|
457
457
|
}
|
|
458
|
-
return
|
|
458
|
+
return tr(e, a, v, i, n, be.current, o);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var G = D.ReactCurrentOwner,
|
|
461
|
+
var G = D.ReactCurrentOwner, me = D.ReactDebugCurrentFrame;
|
|
462
462
|
function F(e) {
|
|
463
463
|
if (e) {
|
|
464
464
|
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
465
|
-
|
|
465
|
+
me.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
me.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
469
|
var z;
|
|
470
470
|
z = !1;
|
|
471
471
|
function X(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === p;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function ge() {
|
|
475
475
|
{
|
|
476
476
|
if (G.current) {
|
|
477
|
-
var e =
|
|
477
|
+
var e = S(G.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
|
|
|
483
483
|
return "";
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function ar(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
489
|
+
var he = {};
|
|
490
|
+
function or(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = ge();
|
|
493
493
|
if (!r) {
|
|
494
494
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
495
|
t && (r = `
|
|
@@ -504,12 +504,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
|
-
var t =
|
|
508
|
-
if (
|
|
507
|
+
var t = or(r);
|
|
508
|
+
if (he[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
510
|
+
he[t] = !0;
|
|
511
511
|
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " +
|
|
512
|
+
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + S(e._owner.type) + "."), F(e), d('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), F(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Re(e, r) {
|
|
@@ -524,10 +524,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var s =
|
|
530
|
-
X(
|
|
527
|
+
var i = De(e);
|
|
528
|
+
if (typeof i == "function" && i !== e.entries)
|
|
529
|
+
for (var s = i.call(e), o; !(o = s.next()).done; )
|
|
530
|
+
X(o.value) && Ee(o.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -541,22 +541,22 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
t = r.propTypes;
|
|
542
542
|
else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === T))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var n =
|
|
550
|
-
|
|
549
|
+
var n = S(r);
|
|
550
|
+
qe(t, e.props, "prop", n, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !z) {
|
|
552
552
|
z = !0;
|
|
553
|
-
var
|
|
554
|
-
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
553
|
+
var i = S(r);
|
|
554
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function sr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
562
|
var n = r[t];
|
|
@@ -569,138 +569,167 @@ Check the top-level render call using <` + t + ">.");
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ce = {};
|
|
572
|
-
function Te(e, r, t, n,
|
|
572
|
+
function Te(e, r, t, n, i, s) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
574
|
+
var o = We(e);
|
|
575
|
+
if (!o) {
|
|
576
576
|
var a = "";
|
|
577
577
|
(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.");
|
|
578
|
-
var v =
|
|
579
|
-
v ? a += v : a +=
|
|
578
|
+
var v = ar();
|
|
579
|
+
v ? a += v : a += ge();
|
|
580
580
|
var l;
|
|
581
|
-
e === null ? l = "null" : H(e) ? l = "array" : e !== void 0 && e.$$typeof ===
|
|
581
|
+
e === null ? l = "null" : H(e) ? l = "array" : e !== void 0 && e.$$typeof === p ? (l = "<" + (S(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
582
582
|
}
|
|
583
|
-
var c =
|
|
583
|
+
var c = nr(e, r, t, i, s);
|
|
584
584
|
if (c == null)
|
|
585
585
|
return c;
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
586
|
+
if (o) {
|
|
587
|
+
var y = r.children;
|
|
588
|
+
if (y !== void 0)
|
|
589
589
|
if (n)
|
|
590
|
-
if (H(
|
|
591
|
-
for (var A = 0; A <
|
|
592
|
-
Re(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (H(y)) {
|
|
591
|
+
for (var A = 0; A < y.length; A++)
|
|
592
|
+
Re(y[A], e);
|
|
593
|
+
Object.freeze && Object.freeze(y);
|
|
594
594
|
} else
|
|
595
595
|
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
Re(
|
|
597
|
+
Re(y, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var k =
|
|
601
|
-
return
|
|
602
|
-
}), Z =
|
|
599
|
+
if (I.call(r, "key")) {
|
|
600
|
+
var k = S(e), b = Object.keys(r).filter(function(vr) {
|
|
601
|
+
return vr !== "key";
|
|
602
|
+
}), Z = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
603
|
if (!Ce[k + Z]) {
|
|
604
|
-
var
|
|
604
|
+
var dr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
d(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, Z, k,
|
|
610
|
+
<%s key={someKey} {...props} />`, Z, k, dr, k), Ce[k + Z] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === _ ? sr(c) : ir(c), c;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function ur(e, r, t) {
|
|
617
617
|
return Te(e, r, t, !0);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function lr(e, r, t) {
|
|
620
620
|
return Te(e, r, t, !1);
|
|
621
621
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
})()),
|
|
622
|
+
var cr = lr, fr = ur;
|
|
623
|
+
L.Fragment = _, L.jsx = cr, L.jsxs = fr;
|
|
624
|
+
})()), L;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
626
|
+
var Pe;
|
|
627
|
+
function _r() {
|
|
628
|
+
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? U.exports = pr() : U.exports = br()), U.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
const
|
|
632
|
-
primaryButton:
|
|
630
|
+
var O = _r();
|
|
631
|
+
const yr = "_primaryButton_131re_1", mr = "_primaryButtonDisabled_131re_33", Se = {
|
|
632
|
+
primaryButton: yr,
|
|
633
633
|
primaryButtonDisabled: mr
|
|
634
|
-
},
|
|
635
|
-
children:
|
|
636
|
-
disabled:
|
|
637
|
-
onClick:
|
|
638
|
-
className:
|
|
639
|
-
"data-testid":
|
|
640
|
-
...
|
|
634
|
+
}, kr = ({
|
|
635
|
+
children: h,
|
|
636
|
+
disabled: p = !1,
|
|
637
|
+
onClick: C,
|
|
638
|
+
className: _ = "",
|
|
639
|
+
"data-testid": m,
|
|
640
|
+
...E
|
|
641
641
|
}) => {
|
|
642
642
|
const g = [
|
|
643
643
|
Se.primaryButton,
|
|
644
|
-
|
|
645
|
-
|
|
644
|
+
p ? Se.primaryButtonDisabled : "",
|
|
645
|
+
_
|
|
646
|
+
].filter(Boolean).join(" ");
|
|
647
|
+
return /* @__PURE__ */ O.jsx(
|
|
648
|
+
"button",
|
|
649
|
+
{
|
|
650
|
+
type: "button",
|
|
651
|
+
className: g,
|
|
652
|
+
disabled: p,
|
|
653
|
+
onClick: C,
|
|
654
|
+
"data-testid": m,
|
|
655
|
+
...E,
|
|
656
|
+
children: h
|
|
657
|
+
}
|
|
658
|
+
);
|
|
659
|
+
}, gr = "_secondaryButton_172jg_1", hr = "_secondaryButtonDisabled_172jg_33", xe = {
|
|
660
|
+
secondaryButton: gr,
|
|
661
|
+
secondaryButtonDisabled: hr
|
|
662
|
+
}, Dr = ({
|
|
663
|
+
children: h,
|
|
664
|
+
disabled: p = !1,
|
|
665
|
+
onClick: C,
|
|
666
|
+
className: _ = "",
|
|
667
|
+
"data-testid": m,
|
|
668
|
+
...E
|
|
669
|
+
}) => {
|
|
670
|
+
const g = [
|
|
671
|
+
xe.secondaryButton,
|
|
672
|
+
p ? xe.secondaryButtonDisabled : "",
|
|
673
|
+
_
|
|
646
674
|
].filter(Boolean).join(" ");
|
|
647
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ O.jsx(
|
|
648
676
|
"button",
|
|
649
677
|
{
|
|
650
678
|
type: "button",
|
|
651
679
|
className: g,
|
|
652
|
-
disabled:
|
|
653
|
-
onClick:
|
|
654
|
-
"data-testid":
|
|
655
|
-
...
|
|
656
|
-
children:
|
|
680
|
+
disabled: p,
|
|
681
|
+
onClick: C,
|
|
682
|
+
"data-testid": m,
|
|
683
|
+
...E,
|
|
684
|
+
children: h
|
|
657
685
|
}
|
|
658
686
|
);
|
|
659
|
-
},
|
|
660
|
-
tabsContainer:
|
|
661
|
-
tabsHeader:
|
|
662
|
-
tabItem:
|
|
663
|
-
tabContent:
|
|
664
|
-
tabLabel:
|
|
665
|
-
tabLine:
|
|
666
|
-
active:
|
|
667
|
-
inactive:
|
|
668
|
-
tabPanels:
|
|
669
|
-
},
|
|
670
|
-
tabs:
|
|
671
|
-
activeTabId:
|
|
672
|
-
onTabChange:
|
|
673
|
-
className:
|
|
674
|
-
"data-testid":
|
|
675
|
-
...
|
|
687
|
+
}, Er = "_tabsContainer_m3c4e_1", Rr = "_tabsHeader_m3c4e_7", Cr = "_tabItem_m3c4e_13", Tr = "_tabContent_m3c4e_29", jr = "_tabLabel_m3c4e_51", Or = "_tabLine_m3c4e_61", Pr = "_active_m3c4e_68", Sr = "_inactive_m3c4e_76", xr = "_tabPanels_m3c4e_84", j = {
|
|
688
|
+
tabsContainer: Er,
|
|
689
|
+
tabsHeader: Rr,
|
|
690
|
+
tabItem: Cr,
|
|
691
|
+
tabContent: Tr,
|
|
692
|
+
tabLabel: jr,
|
|
693
|
+
tabLine: Or,
|
|
694
|
+
active: Pr,
|
|
695
|
+
inactive: Sr,
|
|
696
|
+
tabPanels: xr
|
|
697
|
+
}, Fr = ({
|
|
698
|
+
tabs: h,
|
|
699
|
+
activeTabId: p,
|
|
700
|
+
onTabChange: C,
|
|
701
|
+
className: _ = "",
|
|
702
|
+
"data-testid": m,
|
|
703
|
+
...E
|
|
676
704
|
}) => {
|
|
677
|
-
var
|
|
678
|
-
const g = [
|
|
679
|
-
return /* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
|
|
705
|
+
var R;
|
|
706
|
+
const g = [j.tabsContainer, _].filter(Boolean).join(" ");
|
|
707
|
+
return /* @__PURE__ */ O.jsxs("div", { className: g, "data-testid": m, ...E, children: [
|
|
708
|
+
/* @__PURE__ */ O.jsx("div", { className: j.tabsHeader, children: h.map((u) => {
|
|
709
|
+
const P = u.id === p, f = [
|
|
710
|
+
j.tabItem,
|
|
711
|
+
P ? j.active : j.inactive
|
|
684
712
|
].filter(Boolean).join(" ");
|
|
685
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ O.jsxs(
|
|
686
714
|
"button",
|
|
687
715
|
{
|
|
688
716
|
type: "button",
|
|
689
717
|
className: f,
|
|
690
|
-
onClick: () =>
|
|
691
|
-
"data-testid": `${
|
|
718
|
+
onClick: () => C(u.id),
|
|
719
|
+
"data-testid": `${m}-tab-${u.id}`,
|
|
692
720
|
children: [
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ O.jsx("div", { className: j.tabContent, children: /* @__PURE__ */ O.jsx("span", { className: j.tabLabel, children: u.label }) }),
|
|
722
|
+
/* @__PURE__ */ O.jsx("div", { className: j.tabLine })
|
|
695
723
|
]
|
|
696
724
|
},
|
|
697
725
|
u.id
|
|
698
726
|
);
|
|
699
727
|
}) }),
|
|
700
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ O.jsx("div", { className: j.tabPanels, children: (R = h.find((u) => u.id === p)) == null ? void 0 : R.content })
|
|
701
729
|
] });
|
|
702
730
|
};
|
|
703
731
|
export {
|
|
704
|
-
|
|
705
|
-
|
|
732
|
+
kr as PrimaryButton,
|
|
733
|
+
Dr as SecondaryButton,
|
|
734
|
+
Fr as Tabs
|
|
706
735
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(C,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],B):(C=typeof globalThis<"u"?globalThis:C||self,B(C.EmporixComponentLibrary={},C.React))})(this,(function(C,B){"use strict";var N={exports:{}},L={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var re;function
|
|
9
|
+
*/var re;function De(){if(re)return L;re=1;var g=B,p=Symbol.for("react.element"),P=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,m=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function h(R,u,S){var f,O={},w=null,M=null;S!==void 0&&(w=""+S),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(M=u.ref);for(f in u)_.call(u,f)&&!E.hasOwnProperty(f)&&(O[f]=u[f]);if(R&&R.defaultProps)for(f in u=R.defaultProps,u)O[f]===void 0&&(O[f]=u[f]);return{$$typeof:p,type:R,key:w,ref:M,props:O,_owner:m.current}}return L.Fragment=P,L.jsx=h,L.jsxs=h,L}var $={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var te;function
|
|
18
|
-
`+K+e}}var G=!1,U;{var
|
|
17
|
+
*/var te;function Be(){return te||(te=1,process.env.NODE_ENV!=="production"&&(function(){var g=B,p=Symbol.for("react.element"),P=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),R=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ie=Symbol.iterator,$e="@@iterator";function We(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[$e];return typeof r=="function"?r:null}var F=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ye("error",e,t)}}function Ye(e,r,t){{var n=F.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var s=t.map(function(o){return String(o)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ne=!1,Me=!1,Ve=!1,Ue=!1,Je=!1,se;se=Symbol.for("react.module.reference");function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===E||Je||e===m||e===S||e===f||Ue||e===M||Ne||Me||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===O||e.$$typeof===h||e.$$typeof===R||e.$$typeof===u||e.$$typeof===se||e.getModuleId!==void 0))}function He(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ue(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case P:return"Portal";case E:return"Profiler";case m:return"StrictMode";case S:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ue(r)+".Consumer";case h:var t=e;return ue(t._context)+".Provider";case u:return He(e,e.render,"ForwardRef");case O:var n=e.displayName||null;return n!==null?n:x(e.type)||"Memo";case w:{var i=e,s=i._payload,o=i._init;try{return x(o(s))}catch{return null}}}return null}var k=Object.assign,W=0,ce,le,fe,de,ve,pe,be;function _e(){}_e.__reactDisabledLog=!0;function Ke(){{if(W===0){ce=console.log,le=console.info,fe=console.warn,de=console.error,ve=console.group,pe=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Ge(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ce}),info:k({},e,{value:le}),warn:k({},e,{value:fe}),error:k({},e,{value:de}),group:k({},e,{value:ve}),groupCollapsed:k({},e,{value:pe}),groupEnd:k({},e,{value:be})})}W<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=F.ReactCurrentDispatcher,K;function V(e,r,t){{if(K===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
|
|
18
|
+
`+K+e}}var G=!1,U;{var ze=typeof WeakMap=="function"?WeakMap:Map;U=new ze}function ye(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var n;G=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=H.current,H.current=null,Ke();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(b){n=b}Reflect.construct(e,[],o)}else{try{o.call()}catch(b){n=b}e.call(o.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
|
|
19
19
|
`),v=n.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+a[
|
|
20
|
+
`),c=a.length-1,l=v.length-1;c>=1&&l>=0&&a[c]!==v[l];)l--;for(;c>=1&&l>=0;c--,l--)if(a[c]!==v[l]){if(c!==1||l!==1)do if(c--,l--,l<0||a[c]!==v[l]){var y=`
|
|
21
|
+
`+a[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,y),y}while(c>=1&&l>=0);break}}}finally{G=!1,H.current=s,Ge(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",D=I?V(I):"";return typeof e=="function"&&U.set(e,D),D}function Xe(e,r,t){return ye(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ze(e));if(typeof e=="string")return V(e);switch(e){case S:return V("Suspense");case f:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Xe(e.render);case O:return J(e.type,r,t);case w:{var n=e,i=n._payload,s=n._init;try{return J(s(i),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,me={},he=F.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Qe(e,r,t,n,i){{var s=Function.call.bind(Y);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=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`.");throw v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(q(i),d("%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),q(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,q(i),d("Failed %s type: %s",t,a.message),q(null))}}}var er=Array.isArray;function z(e){return er(e)}function rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function tr(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function Ee(e){if(tr(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(e)),ge(e)}var Re=F.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function ar(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ir(e,r){typeof e.ref=="string"&&Re.current}function sr(e,r){{var t=function(){Ce||(Ce=!0,d("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ur(e,r){{var t=function(){Te||(Te=!0,d("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var cr=function(e,r,t,n,i,s,o){var a={$$typeof:p,type:e,key:r,ref:t,props:o,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function lr(e,r,t,n,i){{var s,o={},a=null,v=null;t!==void 0&&(Ee(t),a=""+t),or(r)&&(Ee(r.key),a=""+r.key),ar(r)&&(v=r.ref,ir(r,i));for(s in r)Y.call(r,s)&&!nr.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var c=e.defaultProps;for(s in c)o[s]===void 0&&(o[s]=c[s])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&sr(o,l),v&&ur(o,l)}return cr(e,a,v,i,n,Re.current,o)}}var X=F.ReactCurrentOwner,je=F.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function Pe(){{if(X.current){var e=x(X.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function fr(e){return""}var Oe={};function dr(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=dr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+x(e._owner.type)+"."),A(e),d('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),A(null)}}function xe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Se(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var i=We(e);if(typeof i=="function"&&i!==e.entries)for(var s=i.call(e),o;!(o=s.next()).done;)Q(o.value)&&Se(o.value,r)}}}function vr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===O))t=r.propTypes;else return;if(t){var n=x(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var i=x(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var we={};function ke(e,r,t,n,i,s){{var o=qe(e);if(!o){var a="";(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.");var v=fr();v?a+=v:a+=Pe();var c;e===null?c="null":z(e)?c="array":e!==void 0&&e.$$typeof===p?(c="<"+(x(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,d("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)}var l=lr(e,r,t,i,s);if(l==null)return l;if(o){var y=r.children;if(y!==void 0)if(n)if(z(y)){for(var I=0;I<y.length;I++)xe(y[I],e);Object.freeze&&Object.freeze(y)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(y,e)}if(Y.call(r,"key")){var D=x(e),b=Object.keys(r).filter(function(gr){return gr!=="key"}),ee=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!we[D+ee]){var hr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,ee,D,
|
|
30
|
+
<%s key={someKey} {...props} />`,ee,D,hr,D),we[D+ee]=!0}}return e===_?pr(l):vr(l),l}}function br(e,r,t){return ke(e,r,t,!0)}function _r(e,r,t){return ke(e,r,t,!1)}var yr=_r,mr=br;$.Fragment=_,$.jsx=yr,$.jsxs=mr})()),$}var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV==="production"?N.exports=De():N.exports=Be()),N.exports}var T=Fe();const ae={primaryButton:"_primaryButton_131re_1",primaryButtonDisabled:"_primaryButtonDisabled_131re_33"},Ae=({children:g,disabled:p=!1,onClick:P,className:_="","data-testid":m,...E})=>{const h=[ae.primaryButton,p?ae.primaryButtonDisabled:"",_].filter(Boolean).join(" ");return T.jsx("button",{type:"button",className:h,disabled:p,onClick:P,"data-testid":m,...E,children:g})},oe={secondaryButton:"_secondaryButton_172jg_1",secondaryButtonDisabled:"_secondaryButtonDisabled_172jg_33"},Ie=({children:g,disabled:p=!1,onClick:P,className:_="","data-testid":m,...E})=>{const h=[oe.secondaryButton,p?oe.secondaryButtonDisabled:"",_].filter(Boolean).join(" ");return T.jsx("button",{type:"button",className:h,disabled:p,onClick:P,"data-testid":m,...E,children:g})},j={tabsContainer:"_tabsContainer_m3c4e_1",tabsHeader:"_tabsHeader_m3c4e_7",tabItem:"_tabItem_m3c4e_13",tabContent:"_tabContent_m3c4e_29",tabLabel:"_tabLabel_m3c4e_51",tabLine:"_tabLine_m3c4e_61",active:"_active_m3c4e_68",inactive:"_inactive_m3c4e_76",tabPanels:"_tabPanels_m3c4e_84"},Le=({tabs:g,activeTabId:p,onTabChange:P,className:_="","data-testid":m,...E})=>{var R;const h=[j.tabsContainer,_].filter(Boolean).join(" ");return T.jsxs("div",{className:h,"data-testid":m,...E,children:[T.jsx("div",{className:j.tabsHeader,children:g.map(u=>{const S=u.id===p,f=[j.tabItem,S?j.active:j.inactive].filter(Boolean).join(" ");return T.jsxs("button",{type:"button",className:f,onClick:()=>P(u.id),"data-testid":`${m}-tab-${u.id}`,children:[T.jsx("div",{className:j.tabContent,children:T.jsx("span",{className:j.tabLabel,children:u.label})}),T.jsx("div",{className:j.tabLine})]},u.id)})}),T.jsx("div",{className:j.tabPanels,children:(R=g.find(u=>u.id===p))==null?void 0:R.content})]})};C.PrimaryButton=Ae,C.SecondaryButton=Ie,C.Tabs=Le,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._primaryButton_131re_1{background:var(--color-primary);border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:#fff;padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease}._primaryButton_131re_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._primaryButton_131re_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #d6e3f5;background:#d6e3f5;opacity:.5}._primaryButton_131re_1:hover{background:var(--color-primary-hover)}._primaryButtonDisabled_131re_33{cursor:not-allowed;opacity:.65}._primaryButtonDisabled_131re_33:hover{transform:none}._tabsContainer_m3c4e_1{display:flex;flex-direction:column;width:100%}._tabsHeader_m3c4e_7{display:flex;align-items:center;gap:0}._tabItem_m3c4e_13{display:flex;flex-direction:column;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit}._tabItem_m3c4e_13:hover ._tabContent_m3c4e_29{background-color:#128afb0d}._tabItem_m3c4e_13:focus{outline:none}._tabItem_m3c4e_13:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._tabContent_m3c4e_29{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0;transition:background-color .2s ease}._tabLabel_m3c4e_51{font-family:Lato,sans-serif;font-size:var(--font-size-base);line-height:1.5em;text-align:center;font-weight:var(--font-weight-normal);color:var(--color-text-secondary);transition:color .2s ease}._tabLine_m3c4e_61{width:100%;height:2px;background-color:transparent;transition:background-color .2s ease}._active_m3c4e_68 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._active_m3c4e_68 ._tabLine_m3c4e_61{background-color:var(--color-primary)}._inactive_m3c4e_76 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}._inactive_m3c4e_76 ._tabLine_m3c4e_61{background-color:var(--color-border-light)}._tabPanels_m3c4e_84{padding:var(--spacing-md) 0;background-color:transparent}*{box-sizing:border-box}:root{--color-primary: #3b73bb;--color-primary-hover: #2665b7;--color-dark: #3e4759;--color-text-primary: #212529;--color-text-secondary: #6c757d;--color-bg-primary: #ffffff;--color-bg-secondary: #f8f9fa;--color-border-light: #e9ecef;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 3rem;--border-radius-sm: .25rem;--border-radius-md: .375rem;--border-radius-lg: .5rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-weight-normal: 400;--font-weight-bold: 700}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);background-color:var(--color-bg-primary);margin:0;padding:0}
|
|
1
|
+
._primaryButton_131re_1{background:var(--color-primary);border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:#fff;padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease}._primaryButton_131re_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._primaryButton_131re_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #d6e3f5;background:#d6e3f5;opacity:.5}._primaryButton_131re_1:hover{background:var(--color-primary-hover)}._primaryButtonDisabled_131re_33{cursor:not-allowed;opacity:.65}._primaryButtonDisabled_131re_33:hover{transform:none}._secondaryButton_172jg_1{background:transparent;border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:var(--color-primary);padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease,border-color .3s ease,color .3s ease}._secondaryButton_172jg_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._secondaryButton_172jg_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #d6e3f5;background:transparent;opacity:.5}._secondaryButton_172jg_1:hover{background:#efefef}._secondaryButtonDisabled_172jg_33{cursor:not-allowed;opacity:.65}._secondaryButtonDisabled_172jg_33:hover{transform:none;background:transparent;color:#9cbbe3}._tabsContainer_m3c4e_1{display:flex;flex-direction:column;width:100%}._tabsHeader_m3c4e_7{display:flex;align-items:center;gap:0}._tabItem_m3c4e_13{display:flex;flex-direction:column;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit}._tabItem_m3c4e_13:hover ._tabContent_m3c4e_29{background-color:#128afb0d}._tabItem_m3c4e_13:focus{outline:none}._tabItem_m3c4e_13:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._tabContent_m3c4e_29{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0;transition:background-color .2s ease}._tabLabel_m3c4e_51{font-family:Lato,sans-serif;font-size:var(--font-size-base);line-height:1.5em;text-align:center;font-weight:var(--font-weight-normal);color:var(--color-text-secondary);transition:color .2s ease}._tabLine_m3c4e_61{width:100%;height:2px;background-color:transparent;transition:background-color .2s ease}._active_m3c4e_68 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._active_m3c4e_68 ._tabLine_m3c4e_61{background-color:var(--color-primary)}._inactive_m3c4e_76 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}._inactive_m3c4e_76 ._tabLine_m3c4e_61{background-color:var(--color-border-light)}._tabPanels_m3c4e_84{padding:var(--spacing-md) 0;background-color:transparent}*{box-sizing:border-box}:root{--color-primary: #3b73bb;--color-primary-hover: #2665b7;--color-dark: #3e4759;--color-text-primary: #212529;--color-text-secondary: #6c757d;--color-bg-primary: #ffffff;--color-bg-secondary: #f8f9fa;--color-border-light: #e9ecef;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 3rem;--border-radius-sm: .25rem;--border-radius-md: .375rem;--border-radius-lg: .5rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-weight-normal: 400;--font-weight-bold: 700}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);background-color:var(--color-bg-primary);margin:0;padding:0}
|
package/dist/styles.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emporix/component-library",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A React component library for Emporix projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"import": "./dist/index.es.js",
|
|
21
21
|
"require": "./dist/index.umd.js"
|
|
22
22
|
},
|
|
23
|
-
"./styles":
|
|
23
|
+
"./styles": {
|
|
24
|
+
"types": "./dist/styles.d.ts",
|
|
25
|
+
"default": "./dist/style.css"
|
|
26
|
+
}
|
|
24
27
|
},
|
|
25
28
|
"files": [
|
|
26
29
|
"dist"
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
"scripts": {
|
|
29
32
|
"dev": "vite",
|
|
30
33
|
"build": "tsc && vite build",
|
|
31
|
-
"build:lib": "vite build --mode library",
|
|
34
|
+
"build:lib": "vite build --mode library && node -e \"require('fs').writeFileSync('dist/styles.d.ts', 'declare module \\'@emporix/component-library/styles\\' {\\n const styles: string;\\n export default styles;\\n}\\n')\"",
|
|
32
35
|
"preview": "vite preview",
|
|
33
36
|
"test": "vitest",
|
|
34
37
|
"test:ui": "vitest --ui",
|