@arkitektbedriftene/fe-lib 5.6.6 → 5.7.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/icons.es.js +19 -19
- package/dist/index-BIHcSFgi.js +164 -0
- package/dist/{index.esm-C4DkZjXw.js → index-CjjD4eDc.js} +19 -19
- package/dist/rich-text.es.js +384 -384
- package/dist/system/components/Modal.es.js +1 -1
- package/dist/system/elements/UserMenu.d.ts +9 -0
- package/dist/ui.es.js +2 -2
- package/package.json +2 -2
- package/dist/index.esm-CQ-E4_-_.js +0 -112
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import f from "clsx";
|
|
3
3
|
import { useRef as d, useEffect as m } from "react";
|
|
4
|
-
import { e as u } from "../../index
|
|
4
|
+
import { e as u } from "../../index-BIHcSFgi.js";
|
|
5
5
|
function g({ isOpen: l, onClose: a, children: s, title: o, className: i }) {
|
|
6
6
|
const t = d(null);
|
|
7
7
|
return m(() => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const UserMenuButton: ({ firstname, lastname }: {
|
|
2
|
+
firstname: string;
|
|
3
|
+
lastname: string;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const UserMenuCompany: ({ className, name, username }: {
|
|
6
|
+
className?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
username: string;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/ui.es.js
CHANGED
|
@@ -4,10 +4,10 @@ import { jsx as t, jsxs as c, Fragment as K } from "react/jsx-runtime";
|
|
|
4
4
|
import { forwardRef as u, createContext as U, useMemo as k, useContext as D, isValidElement as _, cloneElement as q, useState as J, useId as w } from "react";
|
|
5
5
|
import { useFloating as Q, autoUpdate as Z, offset as oo, flip as eo, shift as ro, useTransitionStyles as to, useClick as no, useHover as ao, safePolygon as io, useDismiss as so, useRole as lo, useInteractions as co, FloatingPortal as $o } from "@floating-ui/react";
|
|
6
6
|
import * as y from "@radix-ui/react-toolbar";
|
|
7
|
-
import { c as mo, d as uo, e as go } from "./index
|
|
7
|
+
import { c as mo, d as uo, e as go } from "./index-CjjD4eDc.js";
|
|
8
8
|
import * as p from "@radix-ui/react-dialog";
|
|
9
9
|
import * as m from "@radix-ui/react-dropdown-menu";
|
|
10
|
-
import { k as po, l as B } from "./index
|
|
10
|
+
import { k as po, l as B } from "./index-BIHcSFgi.js";
|
|
11
11
|
import ho from "react-select";
|
|
12
12
|
import * as F from "@radix-ui/react-checkbox";
|
|
13
13
|
import * as W from "@radix-ui/react-switch";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkitektbedriftene/fe-lib",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./oidc": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"lexical": "~0.22.0",
|
|
93
93
|
"motion": "^12.23.12",
|
|
94
94
|
"oidc-client-ts": "^2.2.2",
|
|
95
|
-
"react-icons": "^
|
|
95
|
+
"react-icons": "^5.5.0",
|
|
96
96
|
"react-select": "^5.8.0",
|
|
97
97
|
"use-local-storage-state": "^18.2.1"
|
|
98
98
|
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import i from "react";
|
|
2
|
-
var u = {
|
|
3
|
-
color: void 0,
|
|
4
|
-
size: void 0,
|
|
5
|
-
className: void 0,
|
|
6
|
-
style: void 0,
|
|
7
|
-
attr: void 0
|
|
8
|
-
}, v = i.createContext && i.createContext(u), c = function() {
|
|
9
|
-
return c = Object.assign || function(t) {
|
|
10
|
-
for (var e, a = 1, r = arguments.length; a < r; a++) {
|
|
11
|
-
e = arguments[a];
|
|
12
|
-
for (var l in e) Object.prototype.hasOwnProperty.call(e, l) && (t[l] = e[l]);
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
}, c.apply(this, arguments);
|
|
16
|
-
}, f = function(t, e) {
|
|
17
|
-
var a = {};
|
|
18
|
-
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (a[r] = t[r]);
|
|
19
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, r = Object.getOwnPropertySymbols(t); l < r.length; l++)
|
|
20
|
-
e.indexOf(r[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[l]) && (a[r[l]] = t[r[l]]);
|
|
21
|
-
return a;
|
|
22
|
-
};
|
|
23
|
-
function s(t) {
|
|
24
|
-
return t && t.map(function(e, a) {
|
|
25
|
-
return i.createElement(e.tag, c({
|
|
26
|
-
key: a
|
|
27
|
-
}, e.attr), s(e.child));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function n(t) {
|
|
31
|
-
return function(e) {
|
|
32
|
-
return i.createElement(z, c({
|
|
33
|
-
attr: c({}, t.attr)
|
|
34
|
-
}, e), s(t.child));
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function z(t) {
|
|
38
|
-
var e = function(a) {
|
|
39
|
-
var r = t.attr, l = t.size, o = t.title, g = f(t, ["attr", "size", "title"]), d = l || a.size || "1em", h;
|
|
40
|
-
return a.className && (h = a.className), t.className && (h = (h ? h + " " : "") + t.className), i.createElement("svg", c({
|
|
41
|
-
stroke: "currentColor",
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
strokeWidth: "0"
|
|
44
|
-
}, a.attr, r, g, {
|
|
45
|
-
className: h,
|
|
46
|
-
style: c(c({
|
|
47
|
-
color: t.color || a.color
|
|
48
|
-
}, a.style), t.style),
|
|
49
|
-
height: d,
|
|
50
|
-
width: d,
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
52
|
-
}), o && i.createElement("title", null, o), t.children);
|
|
53
|
-
};
|
|
54
|
-
return v !== void 0 ? i.createElement(v.Consumer, null, function(a) {
|
|
55
|
-
return e(a);
|
|
56
|
-
}) : e(u);
|
|
57
|
-
}
|
|
58
|
-
function m(t) {
|
|
59
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z" } }] })(t);
|
|
60
|
-
}
|
|
61
|
-
function p(t) {
|
|
62
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" } }] })(t);
|
|
63
|
-
}
|
|
64
|
-
function w(t) {
|
|
65
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M23 12l-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69L23 12zm-12.91 4.72l-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48-7.33 7.35z" } }] })(t);
|
|
66
|
-
}
|
|
67
|
-
function H(t) {
|
|
68
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" } }, { tag: "path", attr: { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" } }] })(t);
|
|
69
|
-
}
|
|
70
|
-
function x(t) {
|
|
71
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" } }, { tag: "path", attr: { d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" } }] })(t);
|
|
72
|
-
}
|
|
73
|
-
function V(t) {
|
|
74
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" } }, { tag: "path", attr: { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" } }] })(t);
|
|
75
|
-
}
|
|
76
|
-
function L(t) {
|
|
77
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" } }] })(t);
|
|
78
|
-
}
|
|
79
|
-
function C(t) {
|
|
80
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" } }] })(t);
|
|
81
|
-
}
|
|
82
|
-
function y(t) {
|
|
83
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z" } }] })(t);
|
|
84
|
-
}
|
|
85
|
-
function O(t) {
|
|
86
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4-3.2-3.2zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07A8 8 0 0015 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8z" } }] })(t);
|
|
87
|
-
}
|
|
88
|
-
function B(t) {
|
|
89
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z" } }, { tag: "path", attr: { d: "M12 6.36c1.53 2 3.08 4.43 3.71 6.24l2.23 2.23c.03-.27.06-.55.06-.83 0-3.98-6-10.8-6-10.8s-1.18 1.35-2.5 3.19l1.44 1.44c.34-.51.7-1 1.06-1.47zM5.41 5.14L4 6.55l3.32 3.32C6.55 11.33 6 12.79 6 14c0 3.31 2.69 6 6 6 1.52 0 2.9-.57 3.95-1.5l2.63 2.63L20 19.72 5.41 5.14zM12 18c-2.21 0-4-1.79-4-4 0-.69.32-1.62.81-2.64l5.72 5.72c-.7.56-1.57.92-2.53.92z" } }] })(t);
|
|
90
|
-
}
|
|
91
|
-
function b(t) {
|
|
92
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" } }, { tag: "path", attr: { d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" } }] })(t);
|
|
93
|
-
}
|
|
94
|
-
function _(t) {
|
|
95
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M7.32 10.56L8.38 9.5 7.32 8.44l1.06-1.06L10.5 9.5l-2.12 2.12-1.06-1.06zM4.5 9c.03 0 .05.01.08.01A8.002 8.002 0 0112 4c2.19 0 4.16.88 5.61 2.3.15-.6.45-1.29.81-1.96A9.965 9.965 0 0011.99 2c-4.88 0-8.94 3.51-9.81 8.14C2.74 9.44 3.59 9 4.5 9zM21 10.5c-.42 0-.82-.09-1.19-.22.12.55.19 1.13.19 1.72 0 4.42-3.58 8-8 8-3.36 0-6.23-2.07-7.42-5.01-.03 0-.05.01-.08.01-.52 0-1.04-.14-1.5-.4-.32-.18-.59-.42-.82-.7.89 4.61 4.93 8.1 9.8 8.1C17.52 22 22 17.52 22 12c0-.55-.06-1.09-.14-1.62a3.5 3.5 0 01-.86.12zM21 3s-2 2.9-2 4 .9 2 2 2 2-.9 2-2-2-4-2-4zm-5.38 4.38L13.5 9.5l2.12 2.12 1.06-1.06-1.06-1.06 1.06-1.06-1.06-1.06zM8.56 17c.69-1.19 1.97-2 3.44-2s2.75.81 3.44 2h1.68c-.8-2.05-2.79-3.5-5.12-3.5-.87 0-1.7.2-2.43.57L5.99 12c0-.52-.26-1.02-.74-1.29-.72-.41-1.63-.17-2.05.55-.41.72-.17 1.63.55 2.05.48.28 1.05.25 1.49 0l2.97 1.72c-.57.53-1.03 1.21-1.33 1.97h1.68z" } }] })(t);
|
|
96
|
-
}
|
|
97
|
-
export {
|
|
98
|
-
n as G,
|
|
99
|
-
_ as M,
|
|
100
|
-
O as a,
|
|
101
|
-
m as b,
|
|
102
|
-
w as c,
|
|
103
|
-
y as d,
|
|
104
|
-
C as e,
|
|
105
|
-
V as f,
|
|
106
|
-
x as g,
|
|
107
|
-
b as h,
|
|
108
|
-
B as i,
|
|
109
|
-
p as j,
|
|
110
|
-
L as k,
|
|
111
|
-
H as l
|
|
112
|
-
};
|