@arkitektbedriftene/fe-lib 0.3.3 → 0.3.5
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/icons.es.js +3 -3
- package/dist/{jsx-runtime-a0589023.js → jsx-runtime-d0aa4c5b.js} +37 -37
- package/dist/lib/ui/components/Alert.d.ts +1 -1
- package/dist/lib/ui/components/Box.d.ts +116 -0
- package/dist/lib/ui/components/Button.d.ts +2 -1
- package/dist/lib/ui/components/OverlayCard.d.ts +117 -0
- package/dist/lib/ui/components/Popover.d.ts +22 -0
- package/dist/lib/ui/components/Tooltip.d.ts +4 -0
- package/dist/lib/ui/ui.d.ts +4 -0
- package/dist/oidc.es.js +667 -659
- package/dist/rich-text.es.js +70 -15810
- package/dist/ui.es.js +2747 -302
- package/package.json +6 -1
- package/src/lib/ui/components/Alert.tsx +12 -4
- package/src/lib/ui/components/Box.tsx +3 -0
- package/src/lib/ui/components/Button.tsx +22 -0
- package/src/lib/ui/components/OverlayCard.tsx +50 -0
- package/src/lib/ui/components/Popover.tsx +164 -0
- package/src/lib/ui/components/Tooltip.tsx +34 -0
- package/src/lib/ui/ui.ts +5 -1
- package/vite.config.ts +12 -1
package/dist/icons.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as a } from "./jsx-runtime-
|
|
1
|
+
import { j as a } from "./jsx-runtime-d0aa4c5b.js";
|
|
2
2
|
import h from "react";
|
|
3
3
|
var f = {
|
|
4
4
|
color: void 0,
|
|
@@ -107,9 +107,9 @@ function A(t) {
|
|
|
107
107
|
function Z(t) {
|
|
108
108
|
return r({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z" } }] })(t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function k(t) {
|
|
111
111
|
return t.ExternalId == null || t.ExternalId == "" ? /* @__PURE__ */ a.jsx(u, {}) : t.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ a.jsx(H, {}) : t.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ a.jsx(V, {}) : t.ExternalId.indexOf("RETTS") > -1 ? /* @__PURE__ */ a.jsx(I, {}) : t.ExternalId.indexOf("BEHAND") > -1 ? /* @__PURE__ */ a.jsx(w, {}) : t.ExternalId.indexOf("REISE") > -1 ? /* @__PURE__ */ a.jsx(E, {}) : t.ExternalId.indexOf("YRKE") > -1 ? /* @__PURE__ */ a.jsx(y, {}) : t.ExternalId.indexOf("VERDI") > -1 ? /* @__PURE__ */ a.jsx(O, {}) : t.ExternalId.indexOf("TJENESTE") > -1 ? /* @__PURE__ */ a.jsx(M, {}) : t.ExternalId.indexOf("GRUPPELIV") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(A, {}) }) : t.ExternalId.indexOf("SYKEAV") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(j, {}) }) : t.ExternalId.indexOf("_MAKS") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(L, { color: "green" }) }) : t.ExternalId.indexOf("_MEDLEM") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(Z, { color: "#B22222" }) }) : t.ExternalId.indexOf("_PRAKSIS") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(C, { color: "#8cc6ce" }) }) : t.ExternalId.indexOf("_AY") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(S, { color: "#e8b281" }) }) : t.ExternalId.indexOf("_TARIFF") > -1 ? /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(B, { color: "#626FFE " }) }) : /* @__PURE__ */ a.jsx(u, {});
|
|
112
112
|
}
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
k as ProductExternalIdToIcon
|
|
115
115
|
};
|
|
@@ -3,8 +3,8 @@ var ye = {}, ir = {
|
|
|
3
3
|
get exports() {
|
|
4
4
|
return ye;
|
|
5
5
|
},
|
|
6
|
-
set exports(
|
|
7
|
-
ye =
|
|
6
|
+
set exports(_) {
|
|
7
|
+
ye = _;
|
|
8
8
|
}
|
|
9
9
|
}, k = {};
|
|
10
10
|
/**
|
|
@@ -21,16 +21,16 @@ function ur() {
|
|
|
21
21
|
if (me)
|
|
22
22
|
return k;
|
|
23
23
|
me = 1;
|
|
24
|
-
var
|
|
25
|
-
function w(
|
|
26
|
-
var d, g = {},
|
|
27
|
-
T !== void 0 && (
|
|
24
|
+
var _ = Oe, S = Symbol.for("react.element"), V = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function w(h, l, T) {
|
|
26
|
+
var d, g = {}, R = null, I = null;
|
|
27
|
+
T !== void 0 && (R = "" + T), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (I = l.ref);
|
|
28
28
|
for (d in l)
|
|
29
29
|
m.call(l, d) && !A.hasOwnProperty(d) && (g[d] = l[d]);
|
|
30
|
-
if (
|
|
31
|
-
for (d in l =
|
|
30
|
+
if (h && h.defaultProps)
|
|
31
|
+
for (d in l = h.defaultProps, l)
|
|
32
32
|
g[d] === void 0 && (g[d] = l[d]);
|
|
33
|
-
return { $$typeof: S, type:
|
|
33
|
+
return { $$typeof: S, type: h, key: R, ref: I, props: g, _owner: F.current };
|
|
34
34
|
}
|
|
35
35
|
return k.Fragment = V, k.jsx = w, k.jsxs = w, k;
|
|
36
36
|
}
|
|
@@ -47,14 +47,14 @@ var D = {};
|
|
|
47
47
|
var Te;
|
|
48
48
|
function sr() {
|
|
49
49
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
var
|
|
50
|
+
var _ = Oe, S = Symbol.for("react.element"), V = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator";
|
|
51
51
|
function Pe(e) {
|
|
52
52
|
if (e === null || typeof e != "object")
|
|
53
53
|
return null;
|
|
54
54
|
var r = H && e[H] || e[Ce];
|
|
55
55
|
return typeof r == "function" ? r : null;
|
|
56
56
|
}
|
|
57
|
-
var O =
|
|
57
|
+
var O = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
58
|
function c(e) {
|
|
59
59
|
{
|
|
60
60
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -75,7 +75,7 @@ function sr() {
|
|
|
75
75
|
var we = !1, xe = !1, je = !1, ke = !1, De = !1, X;
|
|
76
76
|
X = Symbol.for("react.module.reference");
|
|
77
77
|
function Fe(e) {
|
|
78
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || De || e === F || e === T || e === d || ke || e === I || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof ===
|
|
78
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || De || e === F || e === T || e === d || ke || e === I || we || xe || je || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === g || e.$$typeof === w || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
81
81
|
// with.
|
|
@@ -114,7 +114,7 @@ function sr() {
|
|
|
114
114
|
}
|
|
115
115
|
if (typeof e == "object")
|
|
116
116
|
switch (e.$$typeof) {
|
|
117
|
-
case
|
|
117
|
+
case h:
|
|
118
118
|
var r = e;
|
|
119
119
|
return Z(r) + ".Consumer";
|
|
120
120
|
case w:
|
|
@@ -125,7 +125,7 @@ function sr() {
|
|
|
125
125
|
case g:
|
|
126
126
|
var n = e.displayName || null;
|
|
127
127
|
return n !== null ? n : E(e.type) || "Memo";
|
|
128
|
-
case
|
|
128
|
+
case R: {
|
|
129
129
|
var i = e, u = i._payload, o = i._init;
|
|
130
130
|
try {
|
|
131
131
|
return E(o(u));
|
|
@@ -212,16 +212,16 @@ function sr() {
|
|
|
212
212
|
` + U + e;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
var B = !1,
|
|
215
|
+
var B = !1, Y;
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
|
+
Y = new Ye();
|
|
219
219
|
}
|
|
220
220
|
function ue(e, r) {
|
|
221
221
|
if (!e || B)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
|
-
var t =
|
|
224
|
+
var t = Y.get(e);
|
|
225
225
|
if (t !== void 0)
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
@@ -276,7 +276,7 @@ function sr() {
|
|
|
276
276
|
if (s--, f--, f < 0 || a[s] !== v[f]) {
|
|
277
277
|
var p = `
|
|
278
278
|
` + a[s].replace(" at new ", " at ");
|
|
279
|
-
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
279
|
+
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, p), p;
|
|
280
280
|
}
|
|
281
281
|
while (s >= 1 && f >= 0);
|
|
282
282
|
break;
|
|
@@ -285,17 +285,17 @@ function sr() {
|
|
|
285
285
|
} finally {
|
|
286
286
|
B = !1, M.current = u, We(), Error.prepareStackTrace = i;
|
|
287
287
|
}
|
|
288
|
-
var P = e ? e.displayName || e.name : "",
|
|
289
|
-
return typeof e == "function" &&
|
|
288
|
+
var P = e ? e.displayName || e.name : "", Re = P ? W(P) : "";
|
|
289
|
+
return typeof e == "function" && Y.set(e, Re), Re;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function $e(e, r, t) {
|
|
292
292
|
return ue(e, !1);
|
|
293
293
|
}
|
|
294
294
|
function Le(e) {
|
|
295
295
|
var r = e.prototype;
|
|
296
296
|
return !!(r && r.isReactComponent);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function $(e, r, t) {
|
|
299
299
|
if (e == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof e == "function")
|
|
@@ -311,13 +311,13 @@ function sr() {
|
|
|
311
311
|
if (typeof e == "object")
|
|
312
312
|
switch (e.$$typeof) {
|
|
313
313
|
case l:
|
|
314
|
-
return
|
|
314
|
+
return $e(e.render);
|
|
315
315
|
case g:
|
|
316
|
-
return
|
|
317
|
-
case
|
|
316
|
+
return $(e.type, r, t);
|
|
317
|
+
case R: {
|
|
318
318
|
var n = e, i = n._payload, u = n._init;
|
|
319
319
|
try {
|
|
320
|
-
return
|
|
320
|
+
return $(u(i), r, t);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -327,7 +327,7 @@ function sr() {
|
|
|
327
327
|
var L = Object.prototype.hasOwnProperty, se = {}, fe = O.ReactDebugCurrentFrame;
|
|
328
328
|
function N(e) {
|
|
329
329
|
if (e) {
|
|
330
|
-
var r = e._owner, t =
|
|
330
|
+
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
331
331
|
fe.setExtraStackFrame(t);
|
|
332
332
|
} else
|
|
333
333
|
fe.setExtraStackFrame(null);
|
|
@@ -476,7 +476,7 @@ function sr() {
|
|
|
476
476
|
var G = O.ReactCurrentOwner, pe = O.ReactDebugCurrentFrame;
|
|
477
477
|
function C(e) {
|
|
478
478
|
if (e) {
|
|
479
|
-
var r = e._owner, t =
|
|
479
|
+
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
480
480
|
pe.setExtraStackFrame(t);
|
|
481
481
|
} else
|
|
482
482
|
pe.setExtraStackFrame(null);
|
|
@@ -535,7 +535,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
535
535
|
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + E(e._owner.type) + "."), C(e), c('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), C(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function _e(e, r) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof e != "object")
|
|
541
541
|
return;
|
|
@@ -591,7 +591,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
591
591
|
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function he(e, r, t, n, i, u) {
|
|
595
595
|
{
|
|
596
596
|
var o = Fe(e);
|
|
597
597
|
if (!o) {
|
|
@@ -611,28 +611,28 @@ Check the top-level render call using <` + t + ">.");
|
|
|
611
611
|
if (n)
|
|
612
612
|
if (q(p)) {
|
|
613
613
|
for (var P = 0; P < p.length; P++)
|
|
614
|
-
|
|
614
|
+
_e(p[P], e);
|
|
615
615
|
Object.freeze && Object.freeze(p);
|
|
616
616
|
} else
|
|
617
617
|
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
|
-
|
|
619
|
+
_e(p, e);
|
|
620
620
|
}
|
|
621
621
|
return e === m ? rr(f) : er(f), f;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function tr(e, r, t) {
|
|
625
|
-
return
|
|
625
|
+
return he(e, r, t, !0);
|
|
626
626
|
}
|
|
627
627
|
function nr(e, r, t) {
|
|
628
|
-
return
|
|
628
|
+
return he(e, r, t, !1);
|
|
629
629
|
}
|
|
630
630
|
var ar = nr, or = tr;
|
|
631
631
|
D.Fragment = m, D.jsx = ar, D.jsxs = or;
|
|
632
632
|
}()), D;
|
|
633
633
|
}
|
|
634
|
-
(function(
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
634
|
+
(function(_) {
|
|
635
|
+
process.env.NODE_ENV === "production" ? _.exports = ur() : _.exports = sr();
|
|
636
636
|
})(ir);
|
|
637
637
|
export {
|
|
638
638
|
ye as j
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const AlertStyled: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
2
|
-
color?: "warning" | "danger" | "info" | undefined;
|
|
2
|
+
color?: "warning" | "danger" | "info" | "success" | undefined;
|
|
3
3
|
size?: "sm" | "md" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
lg: "(min-width: 1200px)";
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const Box: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
2
|
+
lg: "(min-width: 1200px)";
|
|
3
|
+
print: "print";
|
|
4
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
5
|
+
lg: "(min-width: 1200px)";
|
|
6
|
+
print: "print";
|
|
7
|
+
}, {
|
|
8
|
+
colors: {
|
|
9
|
+
gray50: string;
|
|
10
|
+
gray100: string;
|
|
11
|
+
gray200: string;
|
|
12
|
+
gray300: string;
|
|
13
|
+
gray400: string;
|
|
14
|
+
gray500: string;
|
|
15
|
+
gray600: string;
|
|
16
|
+
gray700: string;
|
|
17
|
+
gray800: string;
|
|
18
|
+
gray900: string;
|
|
19
|
+
blue50: string;
|
|
20
|
+
blue100: string;
|
|
21
|
+
blue200: string;
|
|
22
|
+
blue300: string;
|
|
23
|
+
blue400: string;
|
|
24
|
+
blue500: string;
|
|
25
|
+
blue600: string;
|
|
26
|
+
blue700: string;
|
|
27
|
+
blue800: string;
|
|
28
|
+
blue900: string;
|
|
29
|
+
yellow50: string;
|
|
30
|
+
yellow100: string;
|
|
31
|
+
yellow200: string;
|
|
32
|
+
yellow300: string;
|
|
33
|
+
yellow400: string;
|
|
34
|
+
yellow500: string;
|
|
35
|
+
yellow600: string;
|
|
36
|
+
yellow700: string;
|
|
37
|
+
yellow800: string;
|
|
38
|
+
yellow900: string;
|
|
39
|
+
orange500: string;
|
|
40
|
+
red50: string;
|
|
41
|
+
red100: string;
|
|
42
|
+
red200: string;
|
|
43
|
+
red300: string;
|
|
44
|
+
red400: string;
|
|
45
|
+
red500: string;
|
|
46
|
+
red600: string;
|
|
47
|
+
red700: string;
|
|
48
|
+
red800: string;
|
|
49
|
+
red900: string;
|
|
50
|
+
green50: string;
|
|
51
|
+
green100: string;
|
|
52
|
+
green200: string;
|
|
53
|
+
green300: string;
|
|
54
|
+
green400: string;
|
|
55
|
+
green500: string;
|
|
56
|
+
green600: string;
|
|
57
|
+
green700: string;
|
|
58
|
+
green800: string;
|
|
59
|
+
green900: string;
|
|
60
|
+
primaryTextOnLightBg: string;
|
|
61
|
+
primaryBg: string;
|
|
62
|
+
primaryBgHover: string;
|
|
63
|
+
primaryTextOnWhite: string;
|
|
64
|
+
bodyGray: string;
|
|
65
|
+
hoverDarker: string;
|
|
66
|
+
borderDarker: string;
|
|
67
|
+
selectedDarker: string;
|
|
68
|
+
selectedOnBodyGray: string;
|
|
69
|
+
darkGrayBg: string;
|
|
70
|
+
border: string;
|
|
71
|
+
text: string;
|
|
72
|
+
secondaryText: string;
|
|
73
|
+
focusRing: string;
|
|
74
|
+
};
|
|
75
|
+
fontSizes: {
|
|
76
|
+
xs: string;
|
|
77
|
+
sm: string;
|
|
78
|
+
md: string;
|
|
79
|
+
lg: string;
|
|
80
|
+
xl: string;
|
|
81
|
+
"2xl": string;
|
|
82
|
+
"3xl": string;
|
|
83
|
+
};
|
|
84
|
+
fontWeights: {
|
|
85
|
+
normal: string;
|
|
86
|
+
medium: string;
|
|
87
|
+
bold: string;
|
|
88
|
+
};
|
|
89
|
+
space: {
|
|
90
|
+
1: string;
|
|
91
|
+
2: string;
|
|
92
|
+
3: string;
|
|
93
|
+
4: string;
|
|
94
|
+
6: string;
|
|
95
|
+
8: string;
|
|
96
|
+
};
|
|
97
|
+
shadows: {
|
|
98
|
+
xs: string;
|
|
99
|
+
sm: string;
|
|
100
|
+
md: string;
|
|
101
|
+
lg: string;
|
|
102
|
+
overlayCard: string;
|
|
103
|
+
};
|
|
104
|
+
radii: {
|
|
105
|
+
xs: string;
|
|
106
|
+
sm: string;
|
|
107
|
+
md: string;
|
|
108
|
+
mdmd: string;
|
|
109
|
+
full: string;
|
|
110
|
+
};
|
|
111
|
+
zIndices: {
|
|
112
|
+
toast: number;
|
|
113
|
+
overlayCard: number;
|
|
114
|
+
modal: number;
|
|
115
|
+
};
|
|
116
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
declare const ButtonStyled: import("@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
2
|
-
color?: "warning" | "danger" | "
|
|
2
|
+
color?: "warning" | "danger" | "success" | "primary" | "secondary" | undefined;
|
|
3
3
|
size?: "md" | "lg" | undefined;
|
|
4
4
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
5
|
+
icon?: boolean | "true" | undefined;
|
|
5
6
|
}, {
|
|
6
7
|
lg: "(min-width: 1200px)";
|
|
7
8
|
print: "print";
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare const OverlayCard: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
2
|
+
lg: "(min-width: 1200px)";
|
|
3
|
+
print: "print";
|
|
4
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
5
|
+
lg: "(min-width: 1200px)";
|
|
6
|
+
print: "print";
|
|
7
|
+
}, {
|
|
8
|
+
colors: {
|
|
9
|
+
gray50: string;
|
|
10
|
+
gray100: string;
|
|
11
|
+
gray200: string;
|
|
12
|
+
gray300: string;
|
|
13
|
+
gray400: string;
|
|
14
|
+
gray500: string;
|
|
15
|
+
gray600: string;
|
|
16
|
+
gray700: string;
|
|
17
|
+
gray800: string;
|
|
18
|
+
gray900: string;
|
|
19
|
+
blue50: string;
|
|
20
|
+
blue100: string;
|
|
21
|
+
blue200: string;
|
|
22
|
+
blue300: string;
|
|
23
|
+
blue400: string;
|
|
24
|
+
blue500: string;
|
|
25
|
+
blue600: string;
|
|
26
|
+
blue700: string;
|
|
27
|
+
blue800: string;
|
|
28
|
+
blue900: string;
|
|
29
|
+
yellow50: string;
|
|
30
|
+
yellow100: string;
|
|
31
|
+
yellow200: string;
|
|
32
|
+
yellow300: string;
|
|
33
|
+
yellow400: string;
|
|
34
|
+
yellow500: string;
|
|
35
|
+
yellow600: string;
|
|
36
|
+
yellow700: string;
|
|
37
|
+
yellow800: string;
|
|
38
|
+
yellow900: string;
|
|
39
|
+
orange500: string;
|
|
40
|
+
red50: string;
|
|
41
|
+
red100: string;
|
|
42
|
+
red200: string;
|
|
43
|
+
red300: string;
|
|
44
|
+
red400: string;
|
|
45
|
+
red500: string;
|
|
46
|
+
red600: string;
|
|
47
|
+
red700: string;
|
|
48
|
+
red800: string;
|
|
49
|
+
red900: string;
|
|
50
|
+
green50: string;
|
|
51
|
+
green100: string;
|
|
52
|
+
green200: string;
|
|
53
|
+
green300: string;
|
|
54
|
+
green400: string;
|
|
55
|
+
green500: string;
|
|
56
|
+
green600: string;
|
|
57
|
+
green700: string;
|
|
58
|
+
green800: string;
|
|
59
|
+
green900: string;
|
|
60
|
+
primaryTextOnLightBg: string;
|
|
61
|
+
primaryBg: string;
|
|
62
|
+
primaryBgHover: string;
|
|
63
|
+
primaryTextOnWhite: string;
|
|
64
|
+
bodyGray: string;
|
|
65
|
+
hoverDarker: string;
|
|
66
|
+
borderDarker: string;
|
|
67
|
+
selectedDarker: string;
|
|
68
|
+
selectedOnBodyGray: string;
|
|
69
|
+
darkGrayBg: string;
|
|
70
|
+
border: string;
|
|
71
|
+
text: string;
|
|
72
|
+
secondaryText: string;
|
|
73
|
+
focusRing: string;
|
|
74
|
+
};
|
|
75
|
+
fontSizes: {
|
|
76
|
+
xs: string;
|
|
77
|
+
sm: string;
|
|
78
|
+
md: string;
|
|
79
|
+
lg: string;
|
|
80
|
+
xl: string;
|
|
81
|
+
"2xl": string;
|
|
82
|
+
"3xl": string;
|
|
83
|
+
};
|
|
84
|
+
fontWeights: {
|
|
85
|
+
normal: string;
|
|
86
|
+
medium: string;
|
|
87
|
+
bold: string;
|
|
88
|
+
};
|
|
89
|
+
space: {
|
|
90
|
+
1: string;
|
|
91
|
+
2: string;
|
|
92
|
+
3: string;
|
|
93
|
+
4: string;
|
|
94
|
+
6: string;
|
|
95
|
+
8: string;
|
|
96
|
+
};
|
|
97
|
+
shadows: {
|
|
98
|
+
xs: string;
|
|
99
|
+
sm: string;
|
|
100
|
+
md: string;
|
|
101
|
+
lg: string;
|
|
102
|
+
overlayCard: string;
|
|
103
|
+
};
|
|
104
|
+
radii: {
|
|
105
|
+
xs: string;
|
|
106
|
+
sm: string;
|
|
107
|
+
md: string;
|
|
108
|
+
mdmd: string;
|
|
109
|
+
full: string;
|
|
110
|
+
};
|
|
111
|
+
zIndices: {
|
|
112
|
+
toast: number;
|
|
113
|
+
overlayCard: number;
|
|
114
|
+
modal: number;
|
|
115
|
+
};
|
|
116
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
117
|
+
export type OverlayCardProps = React.ComponentProps<typeof OverlayCard>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type OffsetOptions, type Placement, offset, type UseRoleProps } from "@floating-ui/react";
|
|
2
|
+
import { type OverlayCardProps } from "./OverlayCard";
|
|
3
|
+
export declare const Popover: ({ children, offset: offsetOptions, open, onOpenChange, trigger, hoverDelay, placement, role: popoverRole, }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
offset?: OffsetOptions | undefined;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
trigger?: "click" | "hover" | undefined;
|
|
9
|
+
hoverDelay?: number | {
|
|
10
|
+
open: number;
|
|
11
|
+
close: number;
|
|
12
|
+
} | undefined;
|
|
13
|
+
placement?: Placement | undefined;
|
|
14
|
+
role?: UseRoleProps["role"];
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
export declare const PopoverTrigger: ({ children }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => JSX.Element;
|
|
19
|
+
export declare const PopoverContent: ({ children, overlayCardProps }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
overlayCardProps: OverlayCardProps;
|
|
22
|
+
}) => JSX.Element | null;
|
package/dist/lib/ui/ui.d.ts
CHANGED
|
@@ -2,3 +2,7 @@ export * from './stitches.config';
|
|
|
2
2
|
export * from './components/Button';
|
|
3
3
|
export * from './components/Spinner';
|
|
4
4
|
export * from './components/Alert';
|
|
5
|
+
export * from './components/OverlayCard';
|
|
6
|
+
export * from './components/Popover';
|
|
7
|
+
export * from './components/Box';
|
|
8
|
+
export * from './components/Tooltip';
|