@arkitektbedriftene/fe-lib 0.3.14 → 0.3.16
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/DropdownMenu-8d580c1a.js +5645 -0
- package/dist/icons.es.js +28 -101
- package/dist/index.esm-ddc5d570.js +87 -0
- package/dist/rich-text.es.js +10 -9
- package/dist/ui/components/Menu/DropdownMenu.d.ts +363 -0
- package/dist/ui/components/Menu/Menu.d.ts +347 -0
- package/dist/ui/ui.d.ts +2 -0
- package/dist/ui.es.js +24 -16
- package/package.json +4 -2
- package/dist/Badge-5eab3787.js +0 -3238
package/dist/icons.es.js
CHANGED
|
@@ -1,115 +1,42 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import h from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
className: void 0,
|
|
7
|
-
style: void 0,
|
|
8
|
-
attr: void 0
|
|
9
|
-
}, o = h.createContext && h.createContext(f), i = globalThis && globalThis.__assign || function() {
|
|
10
|
-
return i = Object.assign || function(t) {
|
|
11
|
-
for (var l, e = 1, n = arguments.length; e < n; e++) {
|
|
12
|
-
l = arguments[e];
|
|
13
|
-
for (var c in l)
|
|
14
|
-
Object.prototype.hasOwnProperty.call(l, c) && (t[c] = l[c]);
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
}, i.apply(this, arguments);
|
|
18
|
-
}, z = globalThis && globalThis.__rest || function(t, l) {
|
|
19
|
-
var e = {};
|
|
20
|
-
for (var n in t)
|
|
21
|
-
Object.prototype.hasOwnProperty.call(t, n) && l.indexOf(n) < 0 && (e[n] = t[n]);
|
|
22
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
23
|
-
for (var c = 0, n = Object.getOwnPropertySymbols(t); c < n.length; c++)
|
|
24
|
-
l.indexOf(n[c]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[c]) && (e[n[c]] = t[n[c]]);
|
|
25
|
-
return e;
|
|
26
|
-
};
|
|
27
|
-
function x(t) {
|
|
28
|
-
return t && t.map(function(l, e) {
|
|
29
|
-
return h.createElement(l.tag, i({
|
|
30
|
-
key: e
|
|
31
|
-
}, l.attr), x(l.child));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function r(t) {
|
|
35
|
-
return function(l) {
|
|
36
|
-
return h.createElement(m, i({
|
|
37
|
-
attr: i({}, t.attr)
|
|
38
|
-
}, l), x(t.child));
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function m(t) {
|
|
42
|
-
var l = function(e) {
|
|
43
|
-
var n = t.attr, c = t.size, s = t.title, g = z(t, ["attr", "size", "title"]), d = c || e.size || "1em", v;
|
|
44
|
-
return e.className && (v = e.className), t.className && (v = (v ? v + " " : "") + t.className), h.createElement("svg", i({
|
|
45
|
-
stroke: "currentColor",
|
|
46
|
-
fill: "currentColor",
|
|
47
|
-
strokeWidth: "0"
|
|
48
|
-
}, e.attr, n, g, {
|
|
49
|
-
className: v,
|
|
50
|
-
style: i(i({
|
|
51
|
-
color: t.color || e.color
|
|
52
|
-
}, e.style), t.style),
|
|
53
|
-
height: d,
|
|
54
|
-
width: d,
|
|
55
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
56
|
-
}), s && h.createElement("title", null, s), t.children);
|
|
57
|
-
};
|
|
58
|
-
return o !== void 0 ? h.createElement(o.Consumer, null, function(e) {
|
|
59
|
-
return l(e);
|
|
60
|
-
}) : l(f);
|
|
61
|
-
}
|
|
62
|
-
function M(t) {
|
|
63
|
-
return r({ 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);
|
|
64
|
-
}
|
|
65
|
-
function L(t) {
|
|
66
|
-
return r({ 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);
|
|
67
|
-
}
|
|
68
|
-
function C(t) {
|
|
69
|
-
return r({ 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);
|
|
70
|
-
}
|
|
71
|
-
function E(t) {
|
|
72
|
-
return r({ 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);
|
|
73
|
-
}
|
|
74
|
-
function H(t) {
|
|
75
|
-
return r({ 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);
|
|
76
|
-
}
|
|
77
|
-
function V(t) {
|
|
78
|
-
return r({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z" } }, { tag: "path", attr: { d: "M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3V1Z" } }] })(t);
|
|
1
|
+
import { j as t } from "./jsx-runtime-d0aa4c5b.js";
|
|
2
|
+
import { G as l, M as n, a as r, b as c, c as i, d as h } from "./index.esm-ddc5d570.js";
|
|
3
|
+
import "react";
|
|
4
|
+
function v(a) {
|
|
5
|
+
return l({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z" } }, { tag: "path", attr: { d: "M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3V1Z" } }] })(a);
|
|
79
6
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
7
|
+
function s(a) {
|
|
8
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64.746 18l20.988 21a33 33 0 0 1-15.42 55.27l18.48 18.48A57 57 0 0 0 102.706 22l-4.002-4H64.746zM52.395 28.39A56.82 56.82 0 0 0 38.485 119l88 87.94a79.82 79.82 0 0 1 7.51-26.33L55.454 102a32.87 32.87 0 0 1 .06-46.48A29.53 29.53 0 0 1 70.876 47l-18.48-18.61zm82.47 25.78c.254 2.307.4 4.64.44 7a73.06 73.06 0 0 1-3.58 23.83l72.82 72.82a33 33 0 0 1-22.55 56.18 24.19 24.19 0 0 0 7.06 18.77l4 4a57 57 0 0 0 28.49-96l-86.68-86.6zm136.649 24.892l-.92 48.862 23.996.453.92-48.861-23.996-.454zm81.998 11.493l-27.662 45.174 20.468 12.533 27.66-45.174-20.466-12.533zm60.017 53.888l-44.71 20.744 10.1 21.772 44.712-20.744-10.102-21.772zM180.895 156.85a63.6 63.6 0 0 0-16.23 9.92 61.718 61.718 0 0 0-4.06 3.71 64.09 64.09 0 0 0-4.28 85.78 65 65 0 0 0 4.4 4.87l92.15 92.15a64.41 64.41 0 0 0 13.71 10.45 73.23 73.23 0 0 1-6.59-37.35l-82.27-82.27a40.9 40.9 0 0 1-2.76-3 39.461 39.461 0 0 1-2.39-3.25 40 40 0 0 1 5-50.41c.8-.8 1.63-1.55 2.48-2.26a40 40 0 0 1 17.46-8.55 16.78 16.78 0 0 0-4.33-7.5l-12.29-12.29zm71.34 7.78a73.52 73.52 0 0 1 1.25 26l17.39 6.37a12 12 0 1 0 8.27-22.49v.03l-26.91-9.91zm137.71 52.036l-.728 23.988 45.638 1.387.729-23.988-45.639-1.387zm-61.148 10.85a12 12 0 0 0-11.332 16.064l18.37 50.52a40.19 40.19 0 0 1-9.44 42.08l-.09.09a40.41 40.41 0 0 1-7.56 5.94 16.73 16.73 0 0 0 1.91 2.31l15.14 15.14a64.81 64.81 0 0 0 7.48-6.42l.09-.09a64.27 64.27 0 0 0 15-67.28l-18.42-50.57a11.94 11.94 0 0 0-2.47-4.05 12.07 12.07 0 0 0-7.48-3.67 12 12 0 0 0-1.198-.064zm-15.442 51.734a57 57 0 0 0-20.85 93.75l4.29 4.29 81 81a77.08 77.08 0 0 1 3.14-30.7v-.05l-52.29-52.29-19.22-19.22a33 33 0 0 1 11-53.85c0-.1-.06-.21-.1-.31l.25.25c.66-.26 1.33-.5 2-.72a.93.93 0 0 0 0-.22c-.42.14-.85.27-1.27.42-.1-.6-.31-1.31-.54-1.97l-7.41-20.38zm64.13 17.5l-.06.06a79.64 79.64 0 0 1 .73 11.37 94 94 0 0 1-.75 10.29 80.74 80.74 0 0 1-2 10.14l52.29 52.29 30.91 30.91a33 33 0 0 1-15.42 55.29l18.48 18.48a57 57 0 0 0 13.91-90.74l-17.09-17.09-81-81zm45.03 101.6a55 55 0 0 0-13.85 10.19 57.05 57.05 0 0 0-.06 80.55l4.9 4.91h33.915l-21.875-21.88a33 33 0 0 1 15.45-55.29l-18.48-18.48z" } }] })(a);
|
|
82
9
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
10
|
+
function d(a) {
|
|
11
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z" } }] })(a);
|
|
85
12
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
13
|
+
function x(a) {
|
|
14
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M138.7 25c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zM256 25c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm117.4 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm-262 67.65c-.2.34-.3.65-.5 1-.9 2.07-1.7 4.36-2.6 6.85 8 9.1 12.7 21.9 12.7 35.5 0 6.6-1.1 13.1-3.2 19 2.4 3.4 4.6 7.2 6.4 11.3.1.2.2.5.3.7h28.3c.1-.2.2-.5.3-.7 1.8-4.2 4-7.9 6.4-11.3-2.1-5.9-3.2-12.4-3.2-19 0-13.7 4.8-26.5 12.7-35.6-.8-2.46-1.6-4.7-2.5-6.75-.2-.35-.3-.66-.5-1-7.1 7.65-16.5 12.35-27.3 12.35s-20.2-4.7-27.3-12.35zm117.3 0c-.2.34-.3.65-.5 1-.9 2.07-1.7 4.36-2.6 6.85 8 9.1 12.7 21.9 12.7 35.5 0 6.6-1.1 13.1-3.2 19 2.4 3.4 4.6 7.2 6.4 11.3.1.2.2.5.3.7h28.4c.1-.2.2-.5.3-.7 1.8-4.1 4-7.9 6.4-11.3-2.1-5.9-3.2-12.4-3.2-19 0-13.6 4.7-26.4 12.7-35.5-.9-2.49-1.7-4.78-2.6-6.85-.2-.35-.3-.66-.5-1C276.2 100.3 266.8 105 256 105s-20.2-4.7-27.3-12.35zm117.4 0c-.2.34-.3.65-.5 1-.9 2.07-1.7 4.36-2.6 6.85 8 9.1 12.7 21.9 12.7 35.5 0 6.6-1.1 13.1-3.2 19 2.4 3.4 4.6 7.2 6.4 11.3.1.2.2.5.3.7h28.3c.1-.2.2-.5.3-.7 1.8-4.2 4-7.9 6.4-11.3-2.1-5.9-3.2-12.4-3.2-19 0-13.7 4.8-26.5 12.7-35.6-.8-2.46-1.6-4.7-2.5-6.75-.2-.35-.3-.66-.5-1-7.1 7.65-16.5 12.35-27.3 12.35s-20.2-4.7-27.3-12.35zM80 105c-11.59 0-23 12.8-23 31s11.41 31 23 31 23-12.8 23-31-11.41-31-23-31zm117.3 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm117.4 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm117.3 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zM52.71 172.7c-.17.3-.33.6-.49 1-6.46 14.5-10.34 39-10.97 73.3h77.45c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.51 12.3-27.3 12.3-10.77 0-20.2-4.7-27.29-12.3zm117.29 0c-.2.3-.3.6-.5 1-6.4 14.5-10.3 39-10.9 73.3H236c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.5 12.3-27.3 12.3s-20.2-4.7-27.3-12.3zm117.4 0c-.2.3-.3.6-.5 1-6.4 14.5-10.3 39-10.9 73.3h77.4c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.5 12.3-27.3 12.3s-20.2-4.7-27.3-12.3zm117.3 0c-.2.3-.3.6-.5 1-6.4 14.5-10.3 39-10.9 73.3h77.4c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.5 12.3-27.3 12.3s-20.2-4.7-27.3-12.3zM25 265v16h462v-16zm16 34v188h206V351.1c-3.4 1.1-6.9 2-10.7 2.9-10.4 2.4-22.2 3.9-33.5 5-6.2.5-12.1.9-17.6 1.2l23.4 46.8H233v9c0 19-9.8 33.7-21.4 43-11.6 9.3-24.6 14-35.6 14s-24-4.7-35.6-14c-11.6-9.3-21.4-24-21.4-43v-9h24.4l23-46.1c-3.9.1-6.4.1-6.4.1v-18c13-.7 27.1-.8 41.2-2 10.7-.9 21.9-2.4 31-4.5 6.4-1.5 11.7-3.6 14.8-5.2V320h18v11.3c3.1 1.6 8.4 3.7 14.8 5.2 9.1 2.1 20.3 3.6 31 4.5 15.3.5 26.2 1.9 41.2 2v18s-2.5 0-6.5-.1l23.1 46.1H393v9c0 19-9.8 33.7-21.4 42.9-11.6 9.3-24.6 14-35.6 14s-24-4.7-35.6-14C288.8 449.7 279 435 279 416v-9h24.4l23.4-46.8c-5.5-.3-11.4-.7-17.6-1.2-11.3-1.1-23.1-2.6-33.5-5-3.8-.9-7.3-1.8-10.7-2.9V487h206V299zm135 83.1L163.6 407h24.8zm160 0L323.6 407h24.8z" } }] })(a);
|
|
88
15
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
16
|
+
function M(a) {
|
|
17
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12.707 2.293a.999.999 0 0 0-1.414 0l-9 9A1 1 0 0 0 3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a.999.999 0 0 0 .707-1.707l-9-9zM18.001 20H6v-9.586l6-6 6 6V15l.001 5z" } }, { tag: "path", attr: { d: "M13 10h-2v3H8v2h3v3h2v-3h3v-2h-3z" } }] })(a);
|
|
91
18
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
19
|
+
function u(a) {
|
|
20
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M16,16 C16,14.8954305 12.8659932,14 9,14 C5.13400675,14 2,14.8954305 2,16 C2,17.1045695 5.13400675,18 9,18 C12.8659932,18 16,17.1045695 16,16 Z M2,16 L2,20.9367547 C2,22.0762536 5.13400675,23 9,23 C12.8659932,23 16,22.0762537 16,20.9367548 L16,16 M9,5 C4.581722,5 1,5.8954305 1,7 C1,8.1045695 4.581722,9 9,9 M1,7 L1,12.0000002 C1,13.0128881 4.581722,14 9,14 M23,4 C23,2.8954305 19.9004329,2 16.0769231,2 C12.2534133,2 9.15384615,2.8954305 9.15384615,4 C9.15384615,5.1045695 12.2534133,6 16.0769231,6 C19.9004329,6 23,5.1045695 23,4 Z M16,16 C19.8235098,16 23.0000002,15.0128879 23.0000002,14 L23,4 M9.15384615,3.99999999 L9.15384615,14.1660042 M8.99999999,9.00000001 C8.99999999,10.0128879 12.2534135,11 16.0769233,11 C19.9004331,11 23.0000004,10.0128879 23.0000004,9.00000001" } }] })(a);
|
|
94
21
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
22
|
+
function e(a) {
|
|
23
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M2,3.99079514 C2,2.89130934 2.89821238,2 3.99079514,2 L20.0092049,2 C21.1086907,2 22,2.89821238 22,3.99079514 L22,20.0092049 C22,21.1086907 21.1017876,22 20.0092049,22 L3.99079514,22 C2.89130934,22 2,21.1017876 2,20.0092049 L2,3.99079514 Z M12,15 L12,14 C12,13 12,12.5 13,12 C14,11.5 15,11 15,9.5 C15,8.5 14,7 12,7 C10,7 9,8.26413718 9,10 M12,16 L12,18" } }] })(a);
|
|
97
24
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
25
|
+
function f(a) {
|
|
26
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M3,6 L21,6 L3,6 Z M10,2 L10,4 M14,2 L14,4 M16,12 C18.3736719,13.1826446 20,15.6506255 20,19 L20,23 L4,23 L4,19 C4,15.6457258 5.6310898,13.1754259 8,12 M12,16.5 L12,23 M12,13 C15.3137085,13 18,10.3137085 18,7 C18,3.6862915 15.3137085,1 12,1 C8.6862915,1 6,3.6862915 6,7 C6,10.3137085 8.6862915,13 12,13 Z M8,12 C8,14.209139 9.790861,16 12,16 L12,16 C14.209139,16 16,14.209139 16,12" } }] })(a);
|
|
100
27
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
28
|
+
function z(a) {
|
|
29
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z" } }] })(a);
|
|
103
30
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
31
|
+
function o(a) {
|
|
32
|
+
return l({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z" } }] })(a);
|
|
106
33
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
34
|
+
function m(a) {
|
|
35
|
+
return l({ 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" } }] })(a);
|
|
109
36
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
37
|
+
function E(a) {
|
|
38
|
+
return a.ExternalId == null || a.ExternalId == "" ? /* @__PURE__ */ t.jsx(e, {}) : a.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ t.jsx(n, {}) : a.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ t.jsx(v, {}) : a.ExternalId.indexOf("RETTS") > -1 ? /* @__PURE__ */ t.jsx(x, {}) : a.ExternalId.indexOf("BEHAND") > -1 ? /* @__PURE__ */ t.jsx(M, {}) : a.ExternalId.indexOf("REISE") > -1 ? /* @__PURE__ */ t.jsx(r, {}) : a.ExternalId.indexOf("YRKE") > -1 ? /* @__PURE__ */ t.jsx(f, {}) : a.ExternalId.indexOf("VERDI") > -1 ? /* @__PURE__ */ t.jsx(d, {}) : a.ExternalId.indexOf("TJENESTE") > -1 ? /* @__PURE__ */ t.jsx(c, {}) : a.ExternalId.indexOf("GRUPPELIV") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(o, {}) }) : a.ExternalId.indexOf("SYKEAV") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(s, {}) }) : a.ExternalId.indexOf("_MAKS") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(i, { color: "green" }) }) : a.ExternalId.indexOf("_MEDLEM") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(m, { color: "#B22222" }) }) : a.ExternalId.indexOf("_PRAKSIS") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(h, { color: "#8cc6ce" }) }) : a.ExternalId.indexOf("_AY") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(z, { color: "#e8b281" }) }) : a.ExternalId.indexOf("_TARIFF") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(u, { color: "#626FFE " }) }) : /* @__PURE__ */ t.jsx(e, {});
|
|
112
39
|
}
|
|
113
40
|
export {
|
|
114
|
-
|
|
41
|
+
E as ProductExternalIdToIcon
|
|
115
42
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import c from "react";
|
|
2
|
+
var v = {
|
|
3
|
+
color: void 0,
|
|
4
|
+
size: void 0,
|
|
5
|
+
className: void 0,
|
|
6
|
+
style: void 0,
|
|
7
|
+
attr: void 0
|
|
8
|
+
}, u = c.createContext && c.createContext(v), l = globalThis && globalThis.__assign || function() {
|
|
9
|
+
return l = Object.assign || function(t) {
|
|
10
|
+
for (var a, e = 1, r = arguments.length; e < r; e++) {
|
|
11
|
+
a = arguments[e];
|
|
12
|
+
for (var n in a)
|
|
13
|
+
Object.prototype.hasOwnProperty.call(a, n) && (t[n] = a[n]);
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
}, l.apply(this, arguments);
|
|
17
|
+
}, f = globalThis && globalThis.__rest || function(t, a) {
|
|
18
|
+
var e = {};
|
|
19
|
+
for (var r in t)
|
|
20
|
+
Object.prototype.hasOwnProperty.call(t, r) && a.indexOf(r) < 0 && (e[r] = t[r]);
|
|
21
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22
|
+
for (var n = 0, r = Object.getOwnPropertySymbols(t); n < r.length; n++)
|
|
23
|
+
a.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[n]) && (e[r[n]] = t[r[n]]);
|
|
24
|
+
return e;
|
|
25
|
+
};
|
|
26
|
+
function d(t) {
|
|
27
|
+
return t && t.map(function(a, e) {
|
|
28
|
+
return c.createElement(a.tag, l({
|
|
29
|
+
key: e
|
|
30
|
+
}, a.attr), d(a.child));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function i(t) {
|
|
34
|
+
return function(a) {
|
|
35
|
+
return c.createElement(m, l({
|
|
36
|
+
attr: l({}, t.attr)
|
|
37
|
+
}, a), d(t.child));
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function m(t) {
|
|
41
|
+
var a = function(e) {
|
|
42
|
+
var r = t.attr, n = t.size, h = t.title, g = f(t, ["attr", "size", "title"]), s = n || e.size || "1em", o;
|
|
43
|
+
return e.className && (o = e.className), t.className && (o = (o ? o + " " : "") + t.className), c.createElement("svg", l({
|
|
44
|
+
stroke: "currentColor",
|
|
45
|
+
fill: "currentColor",
|
|
46
|
+
strokeWidth: "0"
|
|
47
|
+
}, e.attr, r, g, {
|
|
48
|
+
className: o,
|
|
49
|
+
style: l(l({
|
|
50
|
+
color: t.color || e.color
|
|
51
|
+
}, e.style), t.style),
|
|
52
|
+
height: s,
|
|
53
|
+
width: s,
|
|
54
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
55
|
+
}), h && c.createElement("title", null, h), t.children);
|
|
56
|
+
};
|
|
57
|
+
return u !== void 0 ? c.createElement(u.Consumer, null, function(e) {
|
|
58
|
+
return a(e);
|
|
59
|
+
}) : a(v);
|
|
60
|
+
}
|
|
61
|
+
function M(t) {
|
|
62
|
+
return i({ 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);
|
|
63
|
+
}
|
|
64
|
+
function y(t) {
|
|
65
|
+
return i({ 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 w(t) {
|
|
68
|
+
return i({ 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);
|
|
69
|
+
}
|
|
70
|
+
function x(t) {
|
|
71
|
+
return i({ 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);
|
|
72
|
+
}
|
|
73
|
+
function b(t) {
|
|
74
|
+
return i({ 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);
|
|
75
|
+
}
|
|
76
|
+
function p(t) {
|
|
77
|
+
return i({ 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);
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
i as G,
|
|
81
|
+
p as M,
|
|
82
|
+
b as a,
|
|
83
|
+
M as b,
|
|
84
|
+
y as c,
|
|
85
|
+
x as d,
|
|
86
|
+
w as e
|
|
87
|
+
};
|
package/dist/rich-text.es.js
CHANGED
|
@@ -8,11 +8,12 @@ import { HeadingNode as R, QuoteNode as H } from "@lexical/rich-text";
|
|
|
8
8
|
import { TableNode as k, TableRowNode as P, TableCellNode as I } from "@lexical/table";
|
|
9
9
|
import { j as c } from "./jsx-runtime-d0aa4c5b.js";
|
|
10
10
|
import { createContext as M, useState as B, useRef as f, useCallback as h, useContext as q, useMemo as z } from "react";
|
|
11
|
-
import { c as d, s as A, B as x, S as D } from "./
|
|
11
|
+
import { c as d, s as A, B as x, S as D } from "./DropdownMenu-8d580c1a.js";
|
|
12
12
|
import { LexicalComposer as V } from "@lexical/react/LexicalComposer.js";
|
|
13
13
|
import { RichTextPlugin as W } from "@lexical/react/LexicalRichTextPlugin.js";
|
|
14
14
|
import J from "@lexical/react/LexicalErrorBoundary.js";
|
|
15
15
|
import "react-dom";
|
|
16
|
+
import "./index.esm-ddc5d570.js";
|
|
16
17
|
const O = ({
|
|
17
18
|
text: e,
|
|
18
19
|
maxChars: i,
|
|
@@ -37,7 +38,7 @@ const O = ({
|
|
|
37
38
|
F(e, m, t);
|
|
38
39
|
const a = r.getLastChild();
|
|
39
40
|
return a instanceof S && a.getChildrenSize() === 0 && a.remove(), t;
|
|
40
|
-
}, G = (e) => e[0] === "{",
|
|
41
|
+
}, G = (e) => e[0] === "{", Ce = (e, i, s) => {
|
|
41
42
|
let r = 0;
|
|
42
43
|
const o = T({
|
|
43
44
|
nodes: i,
|
|
@@ -66,7 +67,7 @@ const O = ({
|
|
|
66
67
|
return o.update(() => {
|
|
67
68
|
n = y(o);
|
|
68
69
|
}), { html: n, trimCount: r };
|
|
69
|
-
},
|
|
70
|
+
}, Ne = [
|
|
70
71
|
R,
|
|
71
72
|
H,
|
|
72
73
|
w,
|
|
@@ -117,7 +118,7 @@ const O = ({
|
|
|
117
118
|
onBlur: n
|
|
118
119
|
}
|
|
119
120
|
};
|
|
120
|
-
},
|
|
121
|
+
}, Te = () => q(b), te = A("div", {
|
|
121
122
|
border: "1px solid $borderDarker",
|
|
122
123
|
borderRadius: "$md",
|
|
123
124
|
position: "relative",
|
|
@@ -161,7 +162,7 @@ const O = ({
|
|
|
161
162
|
},
|
|
162
163
|
children: /* @__PURE__ */ c.jsx(D, {})
|
|
163
164
|
}
|
|
164
|
-
),
|
|
165
|
+
), ye = ({
|
|
165
166
|
isLoading: e,
|
|
166
167
|
children: i,
|
|
167
168
|
placeholderText: s,
|
|
@@ -227,11 +228,11 @@ const O = ({
|
|
|
227
228
|
) });
|
|
228
229
|
};
|
|
229
230
|
export {
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
ye as RichTextEditor,
|
|
232
|
+
Ne as defaultNodes,
|
|
232
233
|
G as isJSON,
|
|
233
234
|
b as richTextContext,
|
|
234
|
-
|
|
235
|
+
Ce as stateToHTML,
|
|
235
236
|
ee as useHasFocusWithin,
|
|
236
|
-
|
|
237
|
+
Te as useRichTextContext
|
|
237
238
|
};
|