@arkitektbedriftene/fe-lib 0.4.34 → 0.4.36
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/elements/components/CompanyLogo.d.ts +19 -0
- package/dist/elements/elements.d.ts +1 -0
- package/dist/elements.d.ts +1 -0
- package/dist/elements.es.js +46 -0
- package/dist/icons.es.js +11 -10
- package/dist/index.esm-55efa2d1.js +23 -0
- package/dist/{index.esm-3266b7f8.js → index.esm-e4db0c1f.js} +41 -61
- package/dist/rich-text/Editor.d.ts +1 -1
- package/dist/rich-text/Toolbar/Toolbar.d.ts +1 -1
- package/dist/rich-text.es.js +223 -243
- package/dist/stitches.config-543644f4.js +2919 -0
- package/dist/ui.es.js +1175 -72
- package/package.json +5 -1
- package/dist/Checkbox-0c1030b1.js +0 -4060
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type CSS } from "@ui";
|
|
3
|
+
export declare const CompanyLogo: ({ companyId, maxWidth, fallback, width, css, }: {
|
|
4
|
+
companyId: number | string;
|
|
5
|
+
maxWidth: string;
|
|
6
|
+
fallback?: string | undefined;
|
|
7
|
+
width?: number | undefined;
|
|
8
|
+
css?: CSS<{
|
|
9
|
+
media: {};
|
|
10
|
+
theme: {};
|
|
11
|
+
themeMap: {};
|
|
12
|
+
utils: {};
|
|
13
|
+
}> | undefined;
|
|
14
|
+
}) => JSX.Element | null;
|
|
15
|
+
export declare const createCompanyLogoElement: ({ companyId, maxWidth, width, }: {
|
|
16
|
+
companyId: string | number;
|
|
17
|
+
maxWidth: string;
|
|
18
|
+
width?: number | undefined;
|
|
19
|
+
}) => HTMLImageElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/CompanyLogo";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './elements/elements'
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a } from "react";
|
|
3
|
+
import { Box as p } from "./ui.es.js";
|
|
4
|
+
const l = ({
|
|
5
|
+
companyId: r,
|
|
6
|
+
maxWidth: e,
|
|
7
|
+
fallback: o = void 0,
|
|
8
|
+
width: t = 500,
|
|
9
|
+
css: s
|
|
10
|
+
}) => {
|
|
11
|
+
const [n, c] = a(
|
|
12
|
+
`https://prod-content-ab.azurewebsites.net/api/Logo/${r}?width=${t}`
|
|
13
|
+
), i = () => {
|
|
14
|
+
c(o);
|
|
15
|
+
};
|
|
16
|
+
return n ? /* @__PURE__ */ m(
|
|
17
|
+
p,
|
|
18
|
+
{
|
|
19
|
+
as: "img",
|
|
20
|
+
src: n,
|
|
21
|
+
onError: n !== o ? i : void 0,
|
|
22
|
+
css: {
|
|
23
|
+
maxWidth: e,
|
|
24
|
+
maxHeight: `calc(${e} / 2)`,
|
|
25
|
+
...s
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
) : null;
|
|
29
|
+
}, h = ({
|
|
30
|
+
companyId: r,
|
|
31
|
+
maxWidth: e,
|
|
32
|
+
width: o = 500
|
|
33
|
+
}) => {
|
|
34
|
+
const t = document.createElement("img");
|
|
35
|
+
return t.style.maxWidth = e, t.style.maxHeight = `calc(${e} / 2)`, t.addEventListener(
|
|
36
|
+
"error",
|
|
37
|
+
() => {
|
|
38
|
+
t.remove();
|
|
39
|
+
},
|
|
40
|
+
{ once: !0 }
|
|
41
|
+
), t.src = `https://prod-content-ab.azurewebsites.net/api/Logo/${r}?width=${o}`, t;
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
l as CompanyLogo,
|
|
45
|
+
h as createCompanyLogoElement
|
|
46
|
+
};
|
package/dist/icons.es.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { G as l, M as n, a as r, b as i,
|
|
2
|
+
import { G as l, M as n, a as r, b as i, c, d as h } from "./index.esm-e4db0c1f.js";
|
|
3
|
+
import { F as d, a as v } from "./index.esm-55efa2d1.js";
|
|
3
4
|
import "react";
|
|
4
|
-
function
|
|
5
|
+
function f(a) {
|
|
5
6
|
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);
|
|
6
7
|
}
|
|
7
|
-
function
|
|
8
|
+
function s(a) {
|
|
8
9
|
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);
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function M(a) {
|
|
11
12
|
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);
|
|
12
13
|
}
|
|
13
14
|
function u(a) {
|
|
@@ -16,21 +17,21 @@ function u(a) {
|
|
|
16
17
|
function x(a) {
|
|
17
18
|
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);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function o(a) {
|
|
20
21
|
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);
|
|
21
22
|
}
|
|
22
23
|
function e(a) {
|
|
23
24
|
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);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function m(a) {
|
|
26
27
|
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);
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function z(a) {
|
|
29
30
|
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);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return a.ExternalId == null || a.ExternalId == "" ? /* @__PURE__ */ t(e, {}) : a.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ t(n, {}) : a.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ t(
|
|
32
|
+
function I(a) {
|
|
33
|
+
return a.ExternalId == null || a.ExternalId == "" ? /* @__PURE__ */ t(e, {}) : a.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ t(n, {}) : a.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ t(f, {}) : a.ExternalId.indexOf("RETTS") > -1 ? /* @__PURE__ */ t(u, {}) : a.ExternalId.indexOf("BEHAND") > -1 ? /* @__PURE__ */ t(x, {}) : a.ExternalId.indexOf("REISE") > -1 ? /* @__PURE__ */ t(r, {}) : a.ExternalId.indexOf("YRKE") > -1 ? /* @__PURE__ */ t(m, {}) : a.ExternalId.indexOf("VERDI") > -1 ? /* @__PURE__ */ t(M, {}) : a.ExternalId.indexOf("TJENESTE") > -1 ? /* @__PURE__ */ t(i, {}) : a.ExternalId.indexOf("GRUPPELIV") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(d, {}) }) : a.ExternalId.indexOf("SYKEAV") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(s, {}) }) : a.ExternalId.indexOf("_MAKS") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(c, { color: "green" }) }) : a.ExternalId.indexOf("_MEDLEM") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(z, { color: "#B22222" }) }) : a.ExternalId.indexOf("_PRAKSIS") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(h, { color: "#8cc6ce" }) }) : a.ExternalId.indexOf("_AY") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(v, { color: "#e8b281" }) }) : a.ExternalId.indexOf("_TARIFF") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(o, { color: "#626FFE " }) }) : /* @__PURE__ */ t(e, {});
|
|
33
34
|
}
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
I as ProductExternalIdToIcon
|
|
36
37
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { G as t } from "./index.esm-e4db0c1f.js";
|
|
2
|
+
function l(c) {
|
|
3
|
+
return t({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z" } }] })(c);
|
|
4
|
+
}
|
|
5
|
+
function r(c) {
|
|
6
|
+
return t({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" } }] })(c);
|
|
7
|
+
}
|
|
8
|
+
function v(c) {
|
|
9
|
+
return t({ 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" } }] })(c);
|
|
10
|
+
}
|
|
11
|
+
function n(c) {
|
|
12
|
+
return t({ 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" } }] })(c);
|
|
13
|
+
}
|
|
14
|
+
function h(c) {
|
|
15
|
+
return t({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" } }] })(c);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
n as F,
|
|
19
|
+
v as a,
|
|
20
|
+
l as b,
|
|
21
|
+
h as c,
|
|
22
|
+
r as d
|
|
23
|
+
};
|
|
@@ -1,115 +1,95 @@
|
|
|
1
1
|
import i from "react";
|
|
2
|
-
var
|
|
2
|
+
var u = {
|
|
3
3
|
color: void 0,
|
|
4
4
|
size: void 0,
|
|
5
5
|
className: void 0,
|
|
6
6
|
style: void 0,
|
|
7
7
|
attr: void 0
|
|
8
|
-
}, s = i.createContext && i.createContext(
|
|
8
|
+
}, s = i.createContext && i.createContext(u), l = globalThis && globalThis.__assign || function() {
|
|
9
9
|
return l = Object.assign || function(t) {
|
|
10
|
-
for (var
|
|
11
|
-
|
|
12
|
-
for (var n in
|
|
13
|
-
Object.prototype.hasOwnProperty.call(
|
|
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
14
|
}
|
|
15
15
|
return t;
|
|
16
16
|
}, l.apply(this, arguments);
|
|
17
|
-
}, f = globalThis && globalThis.__rest || function(t,
|
|
18
|
-
var
|
|
17
|
+
}, f = globalThis && globalThis.__rest || function(t, a) {
|
|
18
|
+
var e = {};
|
|
19
19
|
for (var r in t)
|
|
20
|
-
Object.prototype.hasOwnProperty.call(t, r) &&
|
|
20
|
+
Object.prototype.hasOwnProperty.call(t, r) && a.indexOf(r) < 0 && (e[r] = t[r]);
|
|
21
21
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22
22
|
for (var n = 0, r = Object.getOwnPropertySymbols(t); n < r.length; n++)
|
|
23
|
-
|
|
24
|
-
return
|
|
23
|
+
a.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[n]) && (e[r[n]] = t[r[n]]);
|
|
24
|
+
return e;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return t && t.map(function(
|
|
28
|
-
return i.createElement(
|
|
29
|
-
key:
|
|
30
|
-
},
|
|
26
|
+
function d(t) {
|
|
27
|
+
return t && t.map(function(a, e) {
|
|
28
|
+
return i.createElement(a.tag, l({
|
|
29
|
+
key: e
|
|
30
|
+
}, a.attr), d(a.child));
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function c(t) {
|
|
34
|
-
return function(
|
|
34
|
+
return function(a) {
|
|
35
35
|
return i.createElement(z, l({
|
|
36
36
|
attr: l({}, t.attr)
|
|
37
|
-
},
|
|
37
|
+
}, a), d(t.child));
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function z(t) {
|
|
41
|
-
var
|
|
42
|
-
var r = t.attr, n = t.size, o = t.title,
|
|
43
|
-
return
|
|
41
|
+
var a = function(e) {
|
|
42
|
+
var r = t.attr, n = t.size, o = t.title, g = f(t, ["attr", "size", "title"]), v = n || e.size || "1em", h;
|
|
43
|
+
return e.className && (h = e.className), t.className && (h = (h ? h + " " : "") + t.className), i.createElement("svg", l({
|
|
44
44
|
stroke: "currentColor",
|
|
45
45
|
fill: "currentColor",
|
|
46
46
|
strokeWidth: "0"
|
|
47
|
-
},
|
|
47
|
+
}, e.attr, r, g, {
|
|
48
48
|
className: h,
|
|
49
49
|
style: l(l({
|
|
50
|
-
color: t.color ||
|
|
51
|
-
},
|
|
50
|
+
color: t.color || e.color
|
|
51
|
+
}, e.style), t.style),
|
|
52
52
|
height: v,
|
|
53
53
|
width: v,
|
|
54
54
|
xmlns: "http://www.w3.org/2000/svg"
|
|
55
55
|
}), o && i.createElement("title", null, o), t.children);
|
|
56
56
|
};
|
|
57
|
-
return s !== void 0 ? i.createElement(s.Consumer, null, function(
|
|
58
|
-
return e
|
|
59
|
-
}) :
|
|
57
|
+
return s !== void 0 ? i.createElement(s.Consumer, null, function(e) {
|
|
58
|
+
return a(e);
|
|
59
|
+
}) : a(u);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function M(t) {
|
|
62
62
|
return c({ 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
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function p(t) {
|
|
65
65
|
return c({ 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);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function w(t) {
|
|
68
68
|
return c({ 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);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function x(t) {
|
|
71
71
|
return c({ 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);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function y(t) {
|
|
74
74
|
return c({ 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);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function H(t) {
|
|
77
77
|
return c({ 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);
|
|
78
78
|
}
|
|
79
79
|
function C(t) {
|
|
80
80
|
return c({ 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);
|
|
81
81
|
}
|
|
82
|
-
function V(t) {
|
|
83
|
-
return c({ 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);
|
|
84
|
-
}
|
|
85
|
-
function y(t) {
|
|
86
|
-
return c({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z" } }] })(t);
|
|
87
|
-
}
|
|
88
82
|
function b(t) {
|
|
89
|
-
return c({ tag: "svg", attr: { viewBox: "0 0
|
|
90
|
-
}
|
|
91
|
-
function B(t) {
|
|
92
|
-
return c({ 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" } }] })(t);
|
|
93
|
-
}
|
|
94
|
-
function O(t) {
|
|
95
|
-
return c({ 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" } }] })(t);
|
|
96
|
-
}
|
|
97
|
-
function _(t) {
|
|
98
|
-
return c({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" } }] })(t);
|
|
83
|
+
return c({ 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);
|
|
99
84
|
}
|
|
100
85
|
export {
|
|
101
|
-
O as F,
|
|
102
86
|
c as G,
|
|
103
|
-
|
|
87
|
+
b as M,
|
|
104
88
|
C as a,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
x as h,
|
|
112
|
-
w as i,
|
|
113
|
-
_ as j,
|
|
114
|
-
b as k
|
|
89
|
+
M as b,
|
|
90
|
+
w as c,
|
|
91
|
+
H as d,
|
|
92
|
+
p as e,
|
|
93
|
+
y as f,
|
|
94
|
+
x as g
|
|
115
95
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type ReactElement } from "react";
|
|
2
|
-
import { type CSS } from "
|
|
2
|
+
import { type CSS } from "@ui";
|
|
3
3
|
import { type InitialConfigType } from "@lexical/react/LexicalComposer.js";
|
|
4
4
|
import type { EditorState, SerializedEditorState } from "lexical";
|
|
5
5
|
export type RichTextEditorState = EditorState | string | SerializedEditorState;
|