@arkitektbedriftene/fe-lib 5.3.0 → 5.4.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 +10 -9
- package/dist/index.esm-C4DkZjXw.js +27 -0
- package/dist/index.esm-CQ-E4_-_.js +112 -0
- package/dist/rich-text.es.js +59 -58
- package/dist/system/components/Button.d.ts +3 -0
- package/dist/system/components/Dropdown.d.ts +10 -0
- package/dist/system/components/Input.d.ts +5 -0
- package/dist/system/components/Logo.d.ts +3 -0
- package/dist/system/components/LogoIcon.d.ts +3 -0
- package/dist/system/components/Modal.d.ts +10 -0
- package/dist/system/components/Spinner.d.ts +3 -0
- package/dist/system/components/Tag.d.ts +22 -0
- package/dist/system/system.d.ts +8 -0
- package/dist/system.css +1 -0
- package/dist/system.css.d.ts +1 -0
- package/dist/system.d.ts +2 -0
- package/dist/system.es.js +5007 -0
- package/dist/ui.es.js +57 -56
- package/package.json +8 -1
- package/dist/index.esm-Dzt91gSZ.js +0 -136
package/dist/icons.es.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { G as l, M as n, a as r, b as i,
|
|
3
|
-
|
|
2
|
+
import { G as l, M as n, a as r, b as i, c, d as h } from "./index.esm-CQ-E4_-_.js";
|
|
3
|
+
import { F as d, a as v } from "./index.esm-C4DkZjXw.js";
|
|
4
|
+
function f(a) {
|
|
4
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);
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
+
function s(a) {
|
|
7
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);
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
+
function M(a) {
|
|
10
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);
|
|
11
12
|
}
|
|
12
13
|
function u(a) {
|
|
@@ -15,21 +16,21 @@ function u(a) {
|
|
|
15
16
|
function x(a) {
|
|
16
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);
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function o(a) {
|
|
19
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);
|
|
20
21
|
}
|
|
21
22
|
function e(a) {
|
|
22
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);
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function z(a) {
|
|
25
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);
|
|
26
27
|
}
|
|
27
28
|
function m(a) {
|
|
28
29
|
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);
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
return a.ExternalId == null || a.ExternalId == "" ? /* @__PURE__ */ t(e, {}) : a.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ t(n, {}) : a.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ t(
|
|
31
|
+
function g(a) {
|
|
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(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(z, {}) : 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(m, { 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, {});
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
g as ProductExternalIdToIcon
|
|
35
36
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { G as t } from "./index.esm-CQ-E4_-_.js";
|
|
2
|
+
function r(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 v(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 l(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 512 512" }, child: [{ tag: "path", attr: { d: "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z" } }] })(c);
|
|
16
|
+
}
|
|
17
|
+
function i(c) {
|
|
18
|
+
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);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
n as F,
|
|
22
|
+
l as a,
|
|
23
|
+
h as b,
|
|
24
|
+
r as c,
|
|
25
|
+
i as d,
|
|
26
|
+
v as e
|
|
27
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
};
|
package/dist/rich-text.es.js
CHANGED
|
@@ -13,20 +13,21 @@ import { TableNode as Yt, TableRowNode as Xt, TableCellNode as Vt, INSERT_TABLE_
|
|
|
13
13
|
import { jsx as n, jsxs as h, Fragment as B } from "react/jsx-runtime";
|
|
14
14
|
import { createContext as Qe, useState as p, useRef as J, useCallback as M, useContext as Ze, useEffect as L, useMemo as Qt, useLayoutEffect as tr } from "react";
|
|
15
15
|
import { Box as P, Stack as er, Button as S, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as T, ToolbarToggleGroup as et, ToolbarToggleItem as O, Popover as Zt, PopoverTrigger as te, PopoverContent as ee, OverlayCard as re, Toolbar as rr, ToolbarSeparator as Rt, styled as nr, Spinner as st, Dialog as ne, DialogHeader as or, TextInput as bt, DialogActions as ct, DropdownMenuItem as U, DropdownMenuSeparator as It, NavBar as ir, NavBarItem as gt, Combobox as ar } from "./ui.es.js";
|
|
16
|
-
import {
|
|
16
|
+
import { e as lr, f as sr, g as cr, G as f, h as dr, i as hr, j as ur } from "./index.esm-CQ-E4_-_.js";
|
|
17
17
|
import { useLexicalComposerContext as w } from "@lexical/react/LexicalComposerContext.js";
|
|
18
|
-
import { HorizontalRuleNode as
|
|
19
|
-
import { LexicalComposer as
|
|
20
|
-
import { RichTextPlugin as
|
|
21
|
-
import { LexicalErrorBoundary as
|
|
22
|
-
import { useFloating as Ct, autoUpdate as oe, size as
|
|
23
|
-
import { s as
|
|
24
|
-
import { ListPlugin as
|
|
25
|
-
import { HistoryPlugin as
|
|
26
|
-
import { TablePlugin as
|
|
27
|
-
import { HorizontalRulePlugin as
|
|
28
|
-
import { TabIndentationPlugin as
|
|
18
|
+
import { HorizontalRuleNode as gr } from "@lexical/react/LexicalHorizontalRuleNode.js";
|
|
19
|
+
import { LexicalComposer as pr } from "@lexical/react/LexicalComposer.js";
|
|
20
|
+
import { RichTextPlugin as mr } from "@lexical/react/LexicalRichTextPlugin.js";
|
|
21
|
+
import { LexicalErrorBoundary as fr } from "@lexical/react/LexicalErrorBoundary.js";
|
|
22
|
+
import { useFloating as Ct, autoUpdate as oe, size as kr, flip as br, offset as ie, shift as Cr, useInteractions as ae, useRole as le, FloatingPortal as se, inline as vr, useDismiss as Mr } from "@floating-ui/react";
|
|
23
|
+
import { s as xr, c as Tr } from "./stitches.config-DTq6WSgP.js";
|
|
24
|
+
import { ListPlugin as Lr } from "@lexical/react/LexicalListPlugin.js";
|
|
25
|
+
import { HistoryPlugin as wr } from "@lexical/react/LexicalHistoryPlugin.js";
|
|
26
|
+
import { TablePlugin as _r } from "@lexical/react/LexicalTablePlugin.js";
|
|
27
|
+
import { HorizontalRulePlugin as yr } from "@lexical/react/LexicalHorizontalRulePlugin.js";
|
|
28
|
+
import { TabIndentationPlugin as Sr } from "@lexical/react/LexicalTabIndentationPlugin.js";
|
|
29
29
|
import { useLexicalComposerContext as vt } from "@lexical/react/LexicalComposerContext";
|
|
30
|
+
import { b as Nr } from "./index.esm-C4DkZjXw.js";
|
|
30
31
|
const Er = ({
|
|
31
32
|
text: t,
|
|
32
33
|
maxChars: r,
|
|
@@ -88,7 +89,7 @@ const Er = ({
|
|
|
88
89
|
tag: e
|
|
89
90
|
}
|
|
90
91
|
), r.blur();
|
|
91
|
-
},
|
|
92
|
+
}, oo = async (t, r, e) => {
|
|
92
93
|
var l;
|
|
93
94
|
let o = 0;
|
|
94
95
|
const i = Pt({
|
|
@@ -120,7 +121,7 @@ const Er = ({
|
|
|
120
121
|
return i.read(() => {
|
|
121
122
|
a = Bt(i);
|
|
122
123
|
}), { html: a, trimCount: o };
|
|
123
|
-
},
|
|
124
|
+
}, io = (t, r, e) => {
|
|
124
125
|
let o = 0;
|
|
125
126
|
const i = Pt({
|
|
126
127
|
nodes: r,
|
|
@@ -154,7 +155,7 @@ const Er = ({
|
|
|
154
155
|
} catch {
|
|
155
156
|
}
|
|
156
157
|
return { html: a, trimCount: o };
|
|
157
|
-
},
|
|
158
|
+
}, ao = (t) => Ae().map(({ node: r }) => r).filter((r) => t.some((e) => r instanceof e));
|
|
158
159
|
class rt extends W {
|
|
159
160
|
static getType() {
|
|
160
161
|
return "target-link";
|
|
@@ -420,10 +421,10 @@ function Tt({
|
|
|
420
421
|
new H(e, t, o, r, i, a)
|
|
421
422
|
);
|
|
422
423
|
}
|
|
423
|
-
function
|
|
424
|
+
function lo(t) {
|
|
424
425
|
return t instanceof H;
|
|
425
426
|
}
|
|
426
|
-
const
|
|
427
|
+
const so = [
|
|
427
428
|
qt,
|
|
428
429
|
Jt,
|
|
429
430
|
ft,
|
|
@@ -434,8 +435,8 @@ const lo = [
|
|
|
434
435
|
Xt,
|
|
435
436
|
Vt,
|
|
436
437
|
H,
|
|
437
|
-
|
|
438
|
-
],
|
|
438
|
+
gr
|
|
439
|
+
], co = [
|
|
439
440
|
qt,
|
|
440
441
|
Jt,
|
|
441
442
|
ft,
|
|
@@ -521,7 +522,7 @@ function rn(t) {
|
|
|
521
522
|
function nn(t) {
|
|
522
523
|
return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 5v5a5 5 0 0 0 10 0v-5" } }, { tag: "path", attr: { d: "M5 19h14" } }] })(t);
|
|
523
524
|
}
|
|
524
|
-
const on =
|
|
525
|
+
const on = xr("div", {
|
|
525
526
|
width: "10rem",
|
|
526
527
|
display: "flex"
|
|
527
528
|
}), he = {
|
|
@@ -831,16 +832,16 @@ const on = Tr("div", {
|
|
|
831
832
|
placement: "top",
|
|
832
833
|
whileElementsMounted: oe,
|
|
833
834
|
middleware: [
|
|
834
|
-
|
|
835
|
+
kr({
|
|
835
836
|
apply: ({ rects: u, elements: g }) => {
|
|
836
837
|
g.floating.style.minWidth = `${u.reference.width}px`;
|
|
837
838
|
}
|
|
838
839
|
}),
|
|
839
|
-
|
|
840
|
+
br(),
|
|
840
841
|
ie({
|
|
841
842
|
mainAxis: 8
|
|
842
843
|
}),
|
|
843
|
-
|
|
844
|
+
Cr({
|
|
844
845
|
padding: 8
|
|
845
846
|
})
|
|
846
847
|
],
|
|
@@ -1039,13 +1040,13 @@ function kn() {
|
|
|
1039
1040
|
}, [t]), null;
|
|
1040
1041
|
}
|
|
1041
1042
|
const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
1042
|
-
/* @__PURE__ */ n(
|
|
1043
|
-
/* @__PURE__ */ n(yr, {}),
|
|
1043
|
+
/* @__PURE__ */ n(Lr, {}),
|
|
1044
1044
|
/* @__PURE__ */ n(_r, {}),
|
|
1045
|
+
/* @__PURE__ */ n(wr, {}),
|
|
1045
1046
|
/* @__PURE__ */ n(pn, {}),
|
|
1046
|
-
/* @__PURE__ */ n(
|
|
1047
|
+
/* @__PURE__ */ n(Sr, {}),
|
|
1047
1048
|
/* @__PURE__ */ n(kn, {}),
|
|
1048
|
-
/* @__PURE__ */ n(
|
|
1049
|
+
/* @__PURE__ */ n(yr, {})
|
|
1049
1050
|
] }), Cn = ({
|
|
1050
1051
|
state: t
|
|
1051
1052
|
}) => {
|
|
@@ -1119,7 +1120,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1119
1120
|
},
|
|
1120
1121
|
children: /* @__PURE__ */ n(st, {})
|
|
1121
1122
|
}
|
|
1122
|
-
),
|
|
1123
|
+
), ho = ({
|
|
1123
1124
|
isLoading: t,
|
|
1124
1125
|
children: r,
|
|
1125
1126
|
placeholderText: e,
|
|
@@ -1141,7 +1142,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1141
1142
|
[k, C, x]
|
|
1142
1143
|
);
|
|
1143
1144
|
return /* @__PURE__ */ n(de.Provider, { value: N, children: /* @__PURE__ */ h(
|
|
1144
|
-
|
|
1145
|
+
pr,
|
|
1145
1146
|
{
|
|
1146
1147
|
initialConfig: {
|
|
1147
1148
|
namespace: "ain-rich-text",
|
|
@@ -1164,7 +1165,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1164
1165
|
children: [
|
|
1165
1166
|
a,
|
|
1166
1167
|
/* @__PURE__ */ n(
|
|
1167
|
-
|
|
1168
|
+
mr,
|
|
1168
1169
|
{
|
|
1169
1170
|
contentEditable: s,
|
|
1170
1171
|
placeholder: e ? /* @__PURE__ */ n(
|
|
@@ -1181,7 +1182,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1181
1182
|
children: e
|
|
1182
1183
|
}
|
|
1183
1184
|
) : null,
|
|
1184
|
-
ErrorBoundary:
|
|
1185
|
+
ErrorBoundary: fr
|
|
1185
1186
|
}
|
|
1186
1187
|
),
|
|
1187
1188
|
/* @__PURE__ */ n(bn, {}),
|
|
@@ -1407,7 +1408,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1407
1408
|
defaultVariants: {
|
|
1408
1409
|
size: "md"
|
|
1409
1410
|
}
|
|
1410
|
-
},
|
|
1411
|
+
}, uo = Tr(xn), Tn = ({
|
|
1411
1412
|
fileUpload: t,
|
|
1412
1413
|
...r
|
|
1413
1414
|
}) => {
|
|
@@ -1453,7 +1454,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1453
1454
|
)
|
|
1454
1455
|
] })
|
|
1455
1456
|
] });
|
|
1456
|
-
},
|
|
1457
|
+
}, go = () => {
|
|
1457
1458
|
const [t] = w(), { fileUpload: r } = F(), [e, o] = p(!1), i = M(() => {
|
|
1458
1459
|
t.dispatchCommand(Je, {
|
|
1459
1460
|
rows: "3",
|
|
@@ -1474,7 +1475,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1474
1475
|
" Tabell"
|
|
1475
1476
|
] }),
|
|
1476
1477
|
r && /* @__PURE__ */ h(T, { onClick: () => o(!0), children: [
|
|
1477
|
-
/* @__PURE__ */ n(
|
|
1478
|
+
/* @__PURE__ */ n(Nr, { size: "1.25rem" }),
|
|
1478
1479
|
" Bilde"
|
|
1479
1480
|
] })
|
|
1480
1481
|
]
|
|
@@ -1493,7 +1494,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
|
|
|
1493
1494
|
function Ln(t) {
|
|
1494
1495
|
return f({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "circle", attr: { cx: "256", cy: "256", r: "48" } }, { tag: "circle", attr: { cx: "416", cy: "256", r: "48" } }, { tag: "circle", attr: { cx: "96", cy: "256", r: "48" } }] })(t);
|
|
1495
1496
|
}
|
|
1496
|
-
const
|
|
1497
|
+
const po = () => {
|
|
1497
1498
|
const [t] = w(), [r, e] = p(null), { hasFocus: o } = F();
|
|
1498
1499
|
L(() => {
|
|
1499
1500
|
!o && r && e(null);
|
|
@@ -1579,7 +1580,7 @@ function ge(t) {
|
|
|
1579
1580
|
const r = t.anchor, e = t.focus, o = t.anchor.getNode(), i = t.focus.getNode();
|
|
1580
1581
|
return o === i ? o : t.isBackward() ? yt(e) ? o : i : yt(r) ? o : i;
|
|
1581
1582
|
}
|
|
1582
|
-
const
|
|
1583
|
+
const mo = (t) => (K.baseURL = t, K), X = class X extends W {
|
|
1583
1584
|
static getType() {
|
|
1584
1585
|
return "rutine_link";
|
|
1585
1586
|
}
|
|
@@ -1784,7 +1785,7 @@ const _n = ({ onClose: t }) => {
|
|
|
1784
1785
|
}
|
|
1785
1786
|
)
|
|
1786
1787
|
] });
|
|
1787
|
-
},
|
|
1788
|
+
}, fo = ({
|
|
1788
1789
|
getDocs: t,
|
|
1789
1790
|
filePrefix: r
|
|
1790
1791
|
}) => {
|
|
@@ -1821,7 +1822,7 @@ const _n = ({ onClose: t }) => {
|
|
|
1821
1822
|
}
|
|
1822
1823
|
)
|
|
1823
1824
|
] });
|
|
1824
|
-
},
|
|
1825
|
+
}, ko = () => {
|
|
1825
1826
|
const [t] = w(), r = J(null), [e, o] = p(null), [i, a] = p(""), { hasFocus: l } = F();
|
|
1826
1827
|
L(() => {
|
|
1827
1828
|
e ? t.update(() => {
|
|
@@ -1836,10 +1837,10 @@ const _n = ({ onClose: t }) => {
|
|
|
1836
1837
|
elements: {
|
|
1837
1838
|
reference: r.current
|
|
1838
1839
|
},
|
|
1839
|
-
middleware: [
|
|
1840
|
+
middleware: [vr()]
|
|
1840
1841
|
}), { getFloatingProps: g } = ae([
|
|
1841
1842
|
le(u),
|
|
1842
|
-
|
|
1843
|
+
Mr(u)
|
|
1843
1844
|
]), C = M(() => {
|
|
1844
1845
|
var m;
|
|
1845
1846
|
const k = y();
|
|
@@ -1911,11 +1912,11 @@ const _n = ({ onClose: t }) => {
|
|
|
1911
1912
|
children: i
|
|
1912
1913
|
}
|
|
1913
1914
|
),
|
|
1914
|
-
/* @__PURE__ */ n(S, { color: "danger", icon: !0, size: "sm", onClick: x, children: /* @__PURE__ */ n(
|
|
1915
|
+
/* @__PURE__ */ n(S, { color: "danger", icon: !0, size: "sm", onClick: x, children: /* @__PURE__ */ n(ur, { size: 24 }) })
|
|
1915
1916
|
]
|
|
1916
1917
|
}
|
|
1917
1918
|
) });
|
|
1918
|
-
},
|
|
1919
|
+
}, bo = () => {
|
|
1919
1920
|
const [t] = vt();
|
|
1920
1921
|
return /* @__PURE__ */ h(
|
|
1921
1922
|
at,
|
|
@@ -1956,7 +1957,7 @@ const _n = ({ onClose: t }) => {
|
|
|
1956
1957
|
]
|
|
1957
1958
|
}
|
|
1958
1959
|
);
|
|
1959
|
-
}, Dt = ["image/"],
|
|
1960
|
+
}, Dt = ["image/"], Co = () => {
|
|
1960
1961
|
const [t] = vt(), { fileUpload: r } = F();
|
|
1961
1962
|
return L(() => t.registerCommand(
|
|
1962
1963
|
qe,
|
|
@@ -1984,33 +1985,33 @@ const _n = ({ onClose: t }) => {
|
|
|
1984
1985
|
export {
|
|
1985
1986
|
Tt as $createImageNode,
|
|
1986
1987
|
pe as $createRutineLinkNode,
|
|
1987
|
-
|
|
1988
|
-
|
|
1988
|
+
ao as $getNodesOfTypes,
|
|
1989
|
+
lo as $isImageNode,
|
|
1989
1990
|
wn as $isRutineLinkNode,
|
|
1990
|
-
|
|
1991
|
-
|
|
1991
|
+
bo as AlignToolbarDropdown,
|
|
1992
|
+
Co as DragDropPastePlugin,
|
|
1992
1993
|
un as FloatingToolbar,
|
|
1993
1994
|
H as ImageNode,
|
|
1994
|
-
|
|
1995
|
-
|
|
1995
|
+
go as InsertSelector,
|
|
1996
|
+
ko as LinkEditPlugin,
|
|
1996
1997
|
rt as LinkTargetNode,
|
|
1997
|
-
|
|
1998
|
-
|
|
1998
|
+
fo as LinkToolbarButton,
|
|
1999
|
+
ho as RichTextEditor,
|
|
1999
2000
|
gn as RichTextToolbar,
|
|
2000
2001
|
K as RutineLinkNode,
|
|
2001
|
-
|
|
2002
|
-
|
|
2002
|
+
mo as RutineLinkNodeInit,
|
|
2003
|
+
po as TableEditPlugin,
|
|
2003
2004
|
Ir as clearEditorState,
|
|
2004
|
-
|
|
2005
|
-
|
|
2005
|
+
so as defaultNodes,
|
|
2006
|
+
co as defaultViewNodes,
|
|
2006
2007
|
Rr as isEditorState,
|
|
2007
2008
|
xt as isJSON,
|
|
2008
2009
|
de as richTextContext,
|
|
2009
|
-
|
|
2010
|
+
uo as richTextCss,
|
|
2010
2011
|
xn as richTextStyleObj,
|
|
2011
2012
|
Or as setStateFromPlainText,
|
|
2012
|
-
|
|
2013
|
-
|
|
2013
|
+
oo as stateToHTML,
|
|
2014
|
+
io as syncStateToHTML,
|
|
2014
2015
|
zr as useHasFocusWithin,
|
|
2015
2016
|
F as useRichTextContext
|
|
2016
2017
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
|
+
interface DropdownProps {
|
|
3
|
+
trigger: ReactElement<{
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}>;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
align?: 'left' | 'right';
|
|
8
|
+
}
|
|
9
|
+
export declare function Dropdown({ trigger, children, align }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
title?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Modal({ isOpen, onClose, children, title, className }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare const sizes: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
};
|
|
6
|
+
declare const colors: {
|
|
7
|
+
primary: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
tertiary: string;
|
|
10
|
+
success: string;
|
|
11
|
+
danger: string;
|
|
12
|
+
warning: string;
|
|
13
|
+
info: string;
|
|
14
|
+
};
|
|
15
|
+
export type TagColors = keyof typeof colors;
|
|
16
|
+
export declare function Tag({ children, size, color, className, ...props }: {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
size?: keyof typeof sizes;
|
|
19
|
+
color?: keyof typeof colors;
|
|
20
|
+
className?: string;
|
|
21
|
+
} & React.HTMLAttributes<HTMLElement>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './components/Button';
|
|
2
|
+
export * from './components/Dropdown';
|
|
3
|
+
export * from './components/Input';
|
|
4
|
+
export * from './components/Logo';
|
|
5
|
+
export * from './components/LogoIcon';
|
|
6
|
+
export * from './components/Modal';
|
|
7
|
+
export * from './components/Spinner';
|
|
8
|
+
export * from './components/Tag';
|
package/dist/system.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@theme{--*: initial; --default-transition-duration: .2s; --breakpoint-sm: 40rem; --breakpoint-md: 54rem; --breakpoint-lg: 64rem; --breakpoint-xl: 74rem; --spacing: 4px; --font-serif: var(--font-eb-garamond); --font-sans-serif: var(--font-dm-sans); --font-weight-bold: 700; --color-black: #1d1d1d; --color-white: #ffffff; --color-blue: #4184cd; --color-flask: #122a0d; --color-flask-hover: #173611; --color-clay: #eee6d3; --color-clay-hover: #d6c9b6; --color-sand: #f3f1eb; --color-sand-hover: #e6dfce; --color-warning: #FFE1C3; --color-warning-light: #FFF8F2; --color-warning-dark: #9E5400; --color-danger: #FFC5C1; --color-danger-light: #FEF3F2; --color-danger-dark: #C72619; --color-success: #B8E0B0; --color-success-light: #ECFDF3; --color-success-dark: #2D6D20; --color-info: #C1D4FF; --color-info-light: #F2F6FE; --color-info-dark: #1946C7; --text-xs: clamp(.6944rem,.6856rem + .0444vw,.72rem); --text-sm: clamp(.8333rem,.8101rem + .1159vw,.9rem); --text-base: clamp(1rem,.9565rem + .2174vw,1.125rem); --text-md: clamp(1.2rem,1.1283rem + .3587vw,1.4063rem); --text-lg: clamp(1.44rem,1.3295rem + .5527vw,1.7578rem); --text-xl: clamp(1.728rem,1.5648rem + .8161vw,2.1973rem); --text-2xl: clamp(2.0736rem,1.8395rem + 1.1704vw,2.7466rem); --text-3xl: clamp(2.4883rem,2.1597rem + 1.6433vw,3.4332rem); --text-xs--line-height: 1.7; --text-sm--line-height: 1.6; --text-base--line-height: 1.5; --text-lg--line-height: 1.4; --text-xl--line-height: 1.3; --text-2xl--line-height: 1.2; --text-3xl--line-height: 1.1; --container-page: calc(var(--page-width) * 1px); --container-article: 800px; --container-event: 1300px; --container-firm: 1200px; --radius-sm: .25rem; --radius-md: .5rem; --blur-md: .2rem; --blur-lg: .4rem; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1),0 4px 6px -4px rgb(0 0 0 / .1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1),0 8px 10px -6px rgb(0 0 0 / .1); --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25); --aspect-video: 16 / 9; --animate-scale-logo: scale-logo .5s cubic-bezier(.83,0,.17,1) forwards; @keyframes scale-logo {0% {transform: scale(.8) rotate(-10deg); opacity: 0;} 100% {transform: scale(1) rotate(0deg); opacity: 1;}} --animate-role-logo: role-logo 1.2s cubic-bezier(.83,0,.17,1) forwards; @keyframes role-logo {0% {transform: translateX(-10px) rotate(-90deg);} 100% {transform: translateX(0px) rotate(0deg);}} --animate-in: in 1s cubic-bezier(.83,0,.17,1) forwards; @keyframes in {0% {transform: translateX(-10px); opacity: 0;} 100% {transform: translateX(0px); opacity: 1;}} @keyframes spinner {0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);}} @keyframes spinner-circle {0% {stroke-dashoffset: 600;} 100% {stroke-dashoffset: 0;}} --animate-spinner: spinner 2s linear infinite; --animate-spinner-circle: spinner-circle 1.6s cubic-bezier(.4,.15,.6,.85) infinite;}.logo{@apply text-flask;display:flex;align-items:center;@apply gap-x-2;}.logo>svg{max-width:2.4rem;height:auto;animation:var(--animate-role-logo)}.logo>div{opacity:0;animation:var(--animate-in);animation-delay:.1s}.logo>svg>path{transform-origin:center center;opacity:0;animation:var(--animate-scale-logo)}.logo>svg>path:nth-child(1){animation-delay:.2s}.logo>svg>path:nth-child(2){animation-delay:.6s}.logo>svg>path:nth-child(3){animation-delay:.3s}.logo>svg>path:nth-child(4){animation-delay:.5s}.logo>svg>path:nth-child(5){animation-delay:.4s}.logo>svg>path:nth-child(6){animation-delay:.5s}@layer components{.btn{@apply bg-flask;@apply text-white;@apply px-4;@apply text-sm;@apply h-[2rem];@apply w-fit;@apply inline-flex;@apply items-center;@apply justify-center;@apply gap-x-2;@apply rounded-md;@apply transition-colors;@apply cursor-pointer;@variant focus{@apply ring ring-offset-2 ring-clay;}@variant hover{@apply bg-flask-hover;}}.btn>svg{@apply shrink-0;}.btn.btn-secondary{@apply bg-clay;@apply text-black;@variant hover{@apply bg-clay-hover;}}.btn.btn-danger{@apply bg-danger-dark;@apply text-danger-light;@variant hover{@apply bg-danger-dark/70;}}.btn.btn-warning{@apply bg-warning-dark;@apply text-warning-light;@variant hover{@apply bg-warning-dark/70;}}.btn.btn-outline{@apply bg-transparent;@apply text-black;@apply ring-2;@apply ring-inset;@apply ring-black;@variant hover{@apply bg-flask; @apply text-white;}}.btn.btn-outline.btn-secondary{@apply ring-clay;@variant hover{@apply bg-clay; @apply text-black;}}.btn.btn-transparent{@apply bg-transparent;@apply text-black;@variant hover{@apply bg-flask; @apply text-white;}}.btn.btn-transparent.btn-secondary{@variant hover{@apply bg-clay; @apply text-black;}}.dropdown{@apply rounded-md bg-white p-1 shadow-lg;}.dropdown-item{@apply block w-full px-4 py-2 text-sm cursor-pointer transition-colors;@apply rounded-md;@apply text-left;@variant hover{@apply bg-sand;}}.input{@apply bg-sand;@apply rounded-sm;@apply px-4;@apply py-2;@apply text-sm;@apply inline-flex;@apply transition-colors;@variant focus{@apply ring-2 ring-offset-2 ring-clay; @apply outline-none;}}.link{@apply text-blue underline;}.alert{@apply px-3;@apply py-2;@apply rounded-md;@apply text-sm;@apply inline-flex;@apply items-center;@apply gap-x-2;}.alert.alert-warning{@apply bg-warning-light;@apply text-warning-dark;@apply border border-warning;}.alert.alert-danger{@apply bg-danger-light;@apply text-danger-dark;@apply border border-danger;}.tbl{@apply w-full;@apply border-collapse;@apply bg-white;@apply text-black;@apply text-sm;@apply border border-black;}.tbl th{@apply font-bold;}.tbl td{@apply px-4;@apply py-3;@apply border-b border-black;@apply border-r border-black;}.tbl tbody tr{@apply transition-colors;@variant hover{@apply bg-sand;}}}@utility btn-icon{@apply px-0; @apply w-[2rem];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/system.d.ts
ADDED