@arkitektbedriftene/fe-lib 4.3.2 → 5.1.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.
Files changed (67) hide show
  1. package/dist/elements/components/CompanyLogo.d.ts +8 -14
  2. package/dist/elements/elements.d.ts +1 -1
  3. package/dist/elements.d.ts +1 -0
  4. package/dist/elements.es.js +23 -23
  5. package/dist/icons.d.ts +1 -0
  6. package/dist/icons.es.js +3 -4
  7. package/dist/{index.esm-fa9e6ea7.js → index.esm-Dzt91gSZ.js} +29 -32
  8. package/dist/normalize.css.d.ts +1 -1
  9. package/dist/oidc/impersonate.d.ts +1 -1
  10. package/dist/oidc/oidc.d.ts +6 -6
  11. package/dist/oidc.d.ts +1 -0
  12. package/dist/oidc.es.js +5 -5
  13. package/dist/rich-text/Editor.d.ts +13 -18
  14. package/dist/rich-text/Plugins/Image/ImageComponent.d.ts +1 -1
  15. package/dist/rich-text/Plugins/Image/ImageNode.d.ts +2 -3
  16. package/dist/rich-text/Plugins/Image/ImagePlugin.d.ts +3 -3
  17. package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +3 -3
  18. package/dist/rich-text/Plugins/LinkTargetNode.d.ts +2 -2
  19. package/dist/rich-text/Plugins/ParsePlugin.d.ts +2 -2
  20. package/dist/rich-text/Plugins/RutineLinkNode.d.ts +12 -12
  21. package/dist/rich-text/Toolbar/Toolbar.d.ts +3 -119
  22. package/dist/rich-text/config.d.ts +9 -8
  23. package/dist/rich-text/editorContext.d.ts +7 -7
  24. package/dist/rich-text/getSelectedNode.d.ts +1 -1
  25. package/dist/rich-text/state.d.ts +5 -5
  26. package/dist/rich-text/styles.d.ts +100 -94
  27. package/dist/rich-text/theme.d.ts +1 -1
  28. package/dist/rich-text/trim.d.ts +3 -3
  29. package/dist/rich-text.d.ts +1 -0
  30. package/dist/rich-text.es.js +452 -432
  31. package/dist/ui/components/Alert.d.ts +95 -96
  32. package/dist/ui/components/Avatar.d.ts +97 -215
  33. package/dist/ui/components/Badge.d.ts +94 -94
  34. package/dist/ui/components/Box.d.ts +94 -94
  35. package/dist/ui/components/Button.d.ts +95 -96
  36. package/dist/ui/components/Card.d.ts +94 -94
  37. package/dist/ui/components/Dialog.d.ts +284 -400
  38. package/dist/ui/components/Form/Checkbox.d.ts +97 -216
  39. package/dist/ui/components/Form/Combobox.d.ts +2 -2
  40. package/dist/ui/components/Form/ReactSelect.d.ts +4 -2
  41. package/dist/ui/components/Form/Select.d.ts +3 -3
  42. package/dist/ui/components/Form/Switch.d.ts +195 -549
  43. package/dist/ui/components/Form/TextArea.d.ts +96 -97
  44. package/dist/ui/components/Form/TextInput.d.ts +96 -97
  45. package/dist/ui/components/Form/text.d.ts +188 -188
  46. package/dist/ui/components/Menu/DropdownMenu.d.ts +287 -287
  47. package/dist/ui/components/Menu/Menu.d.ts +281 -281
  48. package/dist/ui/components/NavBar.d.ts +98 -222
  49. package/dist/ui/components/OverlayCard.d.ts +94 -95
  50. package/dist/ui/components/Popover.d.ts +7 -124
  51. package/dist/ui/components/Spinner.d.ts +95 -96
  52. package/dist/ui/components/Stack.d.ts +95 -95
  53. package/dist/ui/components/Toolbar.d.ts +381 -382
  54. package/dist/ui/stitches.config.d.ts +569 -568
  55. package/dist/ui.css.d.ts +1 -1
  56. package/dist/ui.d.ts +1 -0
  57. package/dist/ui.es.js +54 -55
  58. package/package.json +5 -17
  59. package/dist/colors/colors.d.ts +0 -18
  60. package/dist/colors.d.ts +0 -1
  61. package/dist/colors.es.js +0 -20
  62. package/dist/hooks/hooks.d.ts +0 -2
  63. package/dist/hooks.d.ts +0 -1
  64. package/dist/hooks.es.js +0 -4
  65. package/dist/index.d.ts +0 -1
  66. package/dist/index.es.js +0 -4
  67. /package/dist/{stitches.config-00c23cdb.js → stitches.config-CEYOm13b.js} +0 -0
@@ -1,23 +1,17 @@
1
- /// <reference types="react" />
2
- import { type CSS } from "@ui";
3
- export declare const CompanyLogo: import("react").ForwardRefExoticComponent<{
1
+ import { CSS } from '../../ui/ui.ts';
2
+ export declare const CompanyLogo: import('react').ForwardRefExoticComponent<{
4
3
  companyId: number | string;
5
4
  maxWidth: string;
6
- fallback?: string | undefined;
7
- width?: number | undefined;
8
- css?: CSS<{
9
- media: {};
10
- theme: {};
11
- themeMap: {};
12
- utils: {};
13
- }> | undefined;
14
- } & import("react").RefAttributes<HTMLImageElement>>;
5
+ fallback?: string;
6
+ width?: number;
7
+ css?: CSS;
8
+ } & import('react').RefAttributes<HTMLImageElement>>;
15
9
  export declare const createCompanyLogoElement: ({ companyId, maxWidth, width, }: {
16
10
  companyId: string | number;
17
11
  maxWidth: string;
18
- width?: number | undefined;
12
+ width?: number;
19
13
  }) => HTMLImageElement;
20
14
  export declare const getCompanyLogoUrl: ({ companyId, width, }: {
21
15
  companyId: string | number;
22
- width?: number | undefined;
16
+ width?: number;
23
17
  }) => string;
@@ -1 +1 @@
1
- export * from "./components/CompanyLogo";
1
+ export * from './components/CompanyLogo';
@@ -1 +1,2 @@
1
1
  export * from './elements/elements'
2
+ export {}
@@ -1,51 +1,51 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { forwardRef as p, useState as u } from "react";
3
- import { Box as d } from "./ui.es.js";
4
- const E = p(
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { forwardRef as d, useState as g } from "react";
3
+ import { Box as p } from "./ui.es.js";
4
+ const E = d(
5
5
  ({
6
- companyId: r,
7
- maxWidth: o,
8
- fallback: t = void 0,
6
+ companyId: t,
7
+ maxWidth: r,
8
+ fallback: o = void 0,
9
9
  width: e = 500,
10
10
  css: c
11
11
  }, m) => {
12
- const [n, a] = u(
13
- s({ companyId: r, width: e })
12
+ const [n, a] = g(
13
+ s({ companyId: t, width: e })
14
14
  ), i = () => {
15
- a(t);
15
+ a(o);
16
16
  };
17
- return n ? /* @__PURE__ */ g(
18
- d,
17
+ return n ? /* @__PURE__ */ u(
18
+ p,
19
19
  {
20
20
  ref: m,
21
21
  as: "img",
22
22
  src: n,
23
- onError: n !== t ? i : void 0,
23
+ onError: n !== o ? i : void 0,
24
24
  css: {
25
- maxWidth: o,
26
- maxHeight: `calc(${o} / 2)`,
25
+ maxWidth: r,
26
+ maxHeight: `calc(${r} / 2)`,
27
27
  ...c
28
28
  }
29
29
  }
30
30
  ) : null;
31
31
  }
32
32
  ), L = ({
33
- companyId: r,
34
- maxWidth: o,
35
- width: t = 500
33
+ companyId: t,
34
+ maxWidth: r,
35
+ width: o = 500
36
36
  }) => {
37
37
  const e = document.createElement("img");
38
- return e.style.maxWidth = o, e.style.maxHeight = `calc(${o} / 2)`, e.addEventListener(
38
+ return e.style.maxWidth = r, e.style.maxHeight = `calc(${r} / 2)`, e.addEventListener(
39
39
  "error",
40
40
  () => {
41
41
  e.remove();
42
42
  },
43
43
  { once: !0 }
44
- ), e.src = s({ companyId: r, width: t }), e;
44
+ ), e.src = s({ companyId: t, width: o }), e;
45
45
  }, s = ({
46
- companyId: r,
47
- width: o = 500
48
- }) => `https://prod-content-ab.azurewebsites.net/api/Logo/${r}?width=${o}`;
46
+ companyId: t,
47
+ width: r = 500
48
+ }) => `https://prod-content-ab.azurewebsites.net/api/Logo/${t}?width=${r}`;
49
49
  export {
50
50
  E as CompanyLogo,
51
51
  L as createCompanyLogoElement,
package/dist/icons.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './icons/icons'
2
+ export {}
package/dist/icons.es.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { G as l, M as n, a as r, b as i, F as c, c as h, d, e as v } from "./index.esm-fa9e6ea7.js";
3
- import "react";
2
+ import { G as l, M as n, a as r, b as i, F as c, c as h, d, e as v } from "./index.esm-Dzt91gSZ.js";
4
3
  function s(a) {
5
4
  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
5
  }
@@ -28,9 +27,9 @@ function o(a) {
28
27
  function m(a) {
29
28
  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
29
  }
31
- function g(a) {
30
+ function E(a) {
32
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(s, {}) : 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(o, {}) : a.ExternalId.indexOf("VERDI") > -1 ? /* @__PURE__ */ t(f, {}) : a.ExternalId.indexOf("TJENESTE") > -1 ? /* @__PURE__ */ t(i, {}) : a.ExternalId.indexOf("GRUPPELIV") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(c, {}) }) : a.ExternalId.indexOf("SYKEAV") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(M, {}) }) : a.ExternalId.indexOf("_MAKS") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(h, { 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(d, { 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(z, { color: "#626FFE " }) }) : /* @__PURE__ */ t(e, {});
33
32
  }
34
33
  export {
35
- g as ProductExternalIdToIcon
34
+ E as ProductExternalIdToIcon
36
35
  };
@@ -1,62 +1,59 @@
1
1
  import i from "react";
2
- var g = {
2
+ var s = {
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(g), l = globalThis && globalThis.__assign || function() {
8
+ }, d = i.createContext && i.createContext(s), l = function() {
9
9
  return l = Object.assign || function(t) {
10
- for (var e, r = 1, c = arguments.length; r < c; r++) {
11
- e = arguments[r];
12
- for (var n in e)
13
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
10
+ for (var r, e = 1, n = arguments.length; e < n; e++) {
11
+ r = arguments[e];
12
+ for (var c in r) Object.prototype.hasOwnProperty.call(r, c) && (t[c] = r[c]);
14
13
  }
15
14
  return t;
16
15
  }, l.apply(this, arguments);
17
- }, z = globalThis && globalThis.__rest || function(t, e) {
18
- var r = {};
19
- for (var c in t)
20
- Object.prototype.hasOwnProperty.call(t, c) && e.indexOf(c) < 0 && (r[c] = t[c]);
21
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
22
- for (var n = 0, c = Object.getOwnPropertySymbols(t); n < c.length; n++)
23
- e.indexOf(c[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, c[n]) && (r[c[n]] = t[c[n]]);
24
- return r;
16
+ }, z = function(t, r) {
17
+ var e = {};
18
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
19
+ if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, n = Object.getOwnPropertySymbols(t); c < n.length; c++)
20
+ r.indexOf(n[c]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[c]) && (e[n[c]] = t[n[c]]);
21
+ return e;
25
22
  };
26
- function d(t) {
27
- return t && t.map(function(e, r) {
28
- return i.createElement(e.tag, l({
29
- key: r
30
- }, e.attr), d(e.child));
23
+ function g(t) {
24
+ return t && t.map(function(r, e) {
25
+ return i.createElement(r.tag, l({
26
+ key: e
27
+ }, r.attr), g(r.child));
31
28
  });
32
29
  }
33
30
  function a(t) {
34
- return function(e) {
35
- return i.createElement(M, l({
31
+ return function(r) {
32
+ return i.createElement(f, l({
36
33
  attr: l({}, t.attr)
37
- }, e), d(t.child));
34
+ }, r), g(t.child));
38
35
  };
39
36
  }
40
- function M(t) {
41
- var e = function(r) {
42
- var c = t.attr, n = t.size, o = t.title, u = z(t, ["attr", "size", "title"]), v = n || r.size || "1em", h;
43
- return r.className && (h = r.className), t.className && (h = (h ? h + " " : "") + t.className), i.createElement("svg", l({
37
+ function f(t) {
38
+ var r = function(e) {
39
+ var n = t.attr, c = t.size, o = t.title, u = z(t, ["attr", "size", "title"]), v = c || e.size || "1em", h;
40
+ return e.className && (h = e.className), t.className && (h = (h ? h + " " : "") + t.className), i.createElement("svg", l({
44
41
  stroke: "currentColor",
45
42
  fill: "currentColor",
46
43
  strokeWidth: "0"
47
- }, r.attr, c, u, {
44
+ }, e.attr, n, u, {
48
45
  className: h,
49
46
  style: l(l({
50
- color: t.color || r.color
51
- }, r.style), t.style),
47
+ color: t.color || e.color
48
+ }, e.style), t.style),
52
49
  height: v,
53
50
  width: v,
54
51
  xmlns: "http://www.w3.org/2000/svg"
55
52
  }), o && i.createElement("title", null, o), t.children);
56
53
  };
57
- return s !== void 0 ? i.createElement(s.Consumer, null, function(r) {
58
- return e(r);
59
- }) : e(g);
54
+ return d !== void 0 ? i.createElement(d.Consumer, null, function(e) {
55
+ return r(e);
56
+ }) : r(s);
60
57
  }
61
58
  function m(t) {
62
59
  return a({ 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);
@@ -1 +1 @@
1
- export * from './ui/normalize.css'
1
+ export {}
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  type UserInfo = {
3
3
  email: string;
4
4
  firmaccess: string;
@@ -1,8 +1,8 @@
1
- import { User, UserManager } from "oidc-client-ts";
2
- import { Context, ReactNode } from "react";
3
- export * from "oidc-client-ts";
4
- export * from "./impersonate";
5
- export * from "./firmAccess";
1
+ import { User, UserManager } from 'oidc-client-ts';
2
+ import { Context, ReactNode } from 'react';
3
+ export * from 'oidc-client-ts';
4
+ export * from './impersonate';
5
+ export * from './firmAccess';
6
6
  export type AuthState = {
7
7
  user: User | null;
8
8
  isLoading: boolean;
@@ -28,6 +28,6 @@ export declare const createAuthContext: (userManager: UserManager) => {
28
28
  }) => import("react/jsx-runtime").JSX.Element;
29
29
  useAuthContext: () => AuthContextData;
30
30
  useAuthState: () => AuthState;
31
- useSigninCallback: (onDone?: ((user?: User) => void) | undefined) => AuthState;
31
+ useSigninCallback: (onDone?: (user?: User) => void) => AuthState;
32
32
  getAccessToken: () => Promise<string | null>;
33
33
  };
package/dist/oidc.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './oidc/oidc'
2
+ export {}
package/dist/oidc.es.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as C } from "react/jsx-runtime";
2
- import { createContext as x, useContext as v, useMemo as E, useEffect as h, useState as k, useRef as U, useCallback as l } from "react";
2
+ import { createContext as x, useContext as E, useMemo as v, useEffect as h, useState as k, useRef as U, useCallback as l } from "react";
3
3
  export * from "oidc-client-ts";
4
4
  import L from "use-local-storage-state";
5
5
  import { jwtDecode as P } from "jwt-decode";
6
6
  const I = x(
7
7
  null
8
8
  ), g = () => {
9
- const t = v(I);
9
+ const t = E(I);
10
10
  if (!t)
11
11
  throw new Error(
12
12
  "useImpersonationContext must be used within a ImpersonationContextProvider"
@@ -17,7 +17,7 @@ const I = x(
17
17
  }) => {
18
18
  const [e, c] = L("impersonationState", {
19
19
  defaultValue: {}
20
- }), s = E(() => ({
20
+ }), s = v(() => ({
21
21
  accessToken: e == null ? void 0 : e.accessToken,
22
22
  userInfo: e == null ? void 0 : e.userInfo,
23
23
  setImpersonation: (n, o) => {
@@ -173,7 +173,7 @@ const J = [
173
173
  }
174
174
  },
175
175
  [t]
176
- ), S = E(
176
+ ), S = v(
177
177
  () => ({
178
178
  state: s,
179
179
  handleSigninCallback: u,
@@ -193,7 +193,7 @@ const J = [
193
193
  );
194
194
  return /* @__PURE__ */ C(e.Provider, { value: S, children: c });
195
195
  }, p = (t) => {
196
- const e = v(t);
196
+ const e = E(t);
197
197
  if (!e)
198
198
  throw new Error("useAuthContext must be used within an AuthProvider");
199
199
  return e;
@@ -1,28 +1,23 @@
1
- import { type ReactNode, type ReactElement } from "react";
2
- import { type CSS } from "@ui";
3
- import { type InitialConfigType } from "@lexical/react/LexicalComposer.js";
4
- import { type UploadFn } from "./editorContext";
5
- import type { EditorState, SerializedEditorState } from "lexical";
1
+ import { ReactNode, ReactElement } from 'react';
2
+ import { CSS } from '../ui/ui.ts';
3
+ import { InitialConfigType } from '@lexical/react/LexicalComposer.js';
4
+ import { UploadFn } from './editorContext';
5
+ import { EditorState, SerializedEditorState } from 'lexical';
6
6
  export type RichTextEditorState = EditorState | string | SerializedEditorState;
7
7
  export declare const RichTextEditor: ({ isLoading, children, placeholderText, nodes, plugins, toolbar, toolbarContent, content, hideBorder, onBlur, defaultState, css, signUrl, fileUpload, editable, }: {
8
8
  isLoading: boolean;
9
9
  children?: ReactNode;
10
- placeholderText?: string | undefined;
10
+ placeholderText?: string;
11
11
  nodes: InitialConfigType["nodes"];
12
12
  plugins?: ReactNode;
13
13
  toolbar?: ReactNode;
14
14
  toolbarContent?: ReactNode;
15
15
  content: ReactElement;
16
- hideBorder?: boolean | undefined;
17
- onBlur?: (() => void) | undefined;
18
- defaultState?: RichTextEditorState | null | undefined;
19
- css?: CSS<{
20
- media: {};
21
- theme: {};
22
- themeMap: {};
23
- utils: {};
24
- }> | undefined;
25
- signUrl?: ((url: string) => Promise<string>) | undefined;
26
- fileUpload?: UploadFn | undefined;
27
- editable?: boolean | undefined;
16
+ hideBorder?: boolean;
17
+ onBlur?: () => void;
18
+ defaultState?: RichTextEditorState | null;
19
+ css?: CSS;
20
+ signUrl?: (url: string) => Promise<string>;
21
+ fileUpload?: UploadFn;
22
+ editable?: boolean;
28
23
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from "react";
1
+ import { ReactElement } from 'react';
2
2
  export declare function ImageComponent({ src, altText, width, height, nodeKey, }: {
3
3
  src: string;
4
4
  altText: string;
@@ -1,6 +1,5 @@
1
- import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from "lexical";
2
- import { DecoratorNode } from "lexical";
3
- import type { ReactElement } from "react";
1
+ import { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread, DecoratorNode } from 'lexical';
2
+ import { ReactElement } from 'react';
4
3
  export interface ImagePayload {
5
4
  src: string;
6
5
  altText: string;
@@ -1,6 +1,6 @@
1
- import { type LexicalCommand } from "lexical";
2
- import { type ReactElement } from "react";
3
- import { type ImagePayload } from "./ImageNode";
1
+ import { LexicalCommand } from 'lexical';
2
+ import { ReactElement } from 'react';
3
+ import { ImagePayload } from './ImageNode';
4
4
  export type InsertImagePayload = Readonly<ImagePayload>;
5
5
  export declare const INSERT_IMAGE_COMMAND: LexicalCommand<InsertImagePayload>;
6
6
  export declare function ImagePlugin(): ReactElement | null;
@@ -1,7 +1,7 @@
1
1
  export declare const LinkToolbarButton: ({ getDocs, filePrefix, }: {
2
- getDocs?: (() => {
2
+ getDocs?: () => Promise<{
3
3
  label: string;
4
4
  value: string;
5
- }[]) | undefined;
6
- filePrefix?: string | undefined;
5
+ }[]>;
6
+ filePrefix?: string;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { type LinkAttributes, LinkNode, type SerializedLinkNode } from "@lexical/link";
1
+ import { LinkAttributes, LinkNode, SerializedLinkNode } from '@lexical/link';
2
2
  export declare class LinkTargetNode extends LinkNode {
3
3
  static getType(): string;
4
4
  constructor(url: string, attrs?: LinkAttributes, key?: string);
5
5
  static clone(node: LinkTargetNode): LinkTargetNode;
6
- exportJSON(): SerializedLinkNode | import("@lexical/link").SerializedAutoLinkNode;
6
+ exportJSON(): SerializedLinkNode | import('@lexical/link').SerializedAutoLinkNode;
7
7
  static importJSON(serializedNode: SerializedLinkNode): LinkNode;
8
8
  }
@@ -1,4 +1,4 @@
1
- import type { EditorState, SerializedEditorState } from "lexical";
1
+ import { EditorState, SerializedEditorState } from 'lexical';
2
2
  export declare const ParsePlugin: ({ state }: {
3
- state?: string | EditorState | SerializedEditorState<import("lexical").SerializedLexicalNode> | null | undefined;
3
+ state?: EditorState | string | SerializedEditorState | null;
4
4
  }) => null;
@@ -1,5 +1,5 @@
1
- import { LinkNode, type SerializedLinkNode } from "@lexical/link";
2
- import type { EditorConfig, LexicalNode } from "lexical";
1
+ import { LinkNode, SerializedLinkNode } from '@lexical/link';
2
+ import { EditorConfig, LexicalNode } from 'lexical';
3
3
  export declare const RutineLinkNodeInit: (baseURL: string) => typeof RutineLinkNode;
4
4
  export declare class RutineLinkNode extends LinkNode {
5
5
  static baseURL: string;
@@ -11,24 +11,24 @@ export declare class RutineLinkNode extends LinkNode {
11
11
  type: string;
12
12
  url: string;
13
13
  version: number;
14
- children: import("lexical").SerializedLexicalNode[];
14
+ children: import('lexical').SerializedLexicalNode[];
15
+ format: import('lexical').ElementFormatType;
15
16
  direction: "ltr" | "rtl" | null;
16
- format: import("lexical").ElementFormatType;
17
17
  indent: number;
18
- rel?: string | null | undefined;
19
- target?: string | null | undefined;
20
- title?: string | null | undefined;
18
+ rel?: null | string | undefined;
19
+ target?: null | string | undefined;
20
+ title?: null | string | undefined;
21
21
  } | {
22
22
  type: string;
23
23
  url: string;
24
24
  version: number;
25
- children: import("lexical").SerializedLexicalNode[];
25
+ children: import('lexical').SerializedLexicalNode[];
26
+ format: import('lexical').ElementFormatType;
26
27
  direction: "ltr" | "rtl" | null;
27
- format: import("lexical").ElementFormatType;
28
28
  indent: number;
29
- rel?: string | null | undefined;
30
- target?: string | null | undefined;
31
- title?: string | null | undefined;
29
+ rel?: null | string | undefined;
30
+ target?: null | string | undefined;
31
+ title?: null | string | undefined;
32
32
  isUnlinked: boolean;
33
33
  };
34
34
  getURL(): string;
@@ -1,126 +1,10 @@
1
- import { type ComponentProps } from "react";
2
- import { Toolbar } from "@ui";
1
+ import { ComponentProps } from 'react';
2
+ import { Toolbar } from '../../ui/ui.ts';
3
3
  type ToolbarProps = {
4
4
  children: React.ReactNode;
5
5
  };
6
6
  export declare const FloatingToolbar: ({ children }: ToolbarProps) => import("react/jsx-runtime").JSX.Element | null;
7
7
  export declare const RichTextToolbar: ({ children, ...props }: {
8
8
  children?: React.ReactNode;
9
- } & Omit<import("@radix-ui/react-toolbar").ToolbarProps & import("react").RefAttributes<HTMLDivElement>, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
10
- lg: "(min-width: 1200px)";
11
- print: "print";
12
- }> & {
13
- css?: import("@stitches/react/types/css-util").CSS<{
14
- lg: "(min-width: 1200px)";
15
- print: "print";
16
- }, {
17
- colors: {
18
- gray50: string;
19
- gray100: string;
20
- gray200: string;
21
- gray300: string;
22
- gray400: string;
23
- gray500: string;
24
- gray600: string;
25
- gray700: string;
26
- gray800: string;
27
- gray900: string;
28
- blue50: string;
29
- blue100: string;
30
- blue200: string;
31
- blue300: string;
32
- blue400: string;
33
- blue500: string;
34
- blue600: string;
35
- blue700: string;
36
- blue800: string;
37
- blue900: string;
38
- yellow50: string;
39
- yellow100: string;
40
- yellow200: string;
41
- yellow300: string;
42
- yellow400: string;
43
- yellow500: string;
44
- yellow600: string;
45
- yellow700: string;
46
- yellow800: string;
47
- yellow900: string;
48
- orange500: string;
49
- red50: string;
50
- red100: string;
51
- red200: string;
52
- red300: string;
53
- red400: string;
54
- red500: string;
55
- red600: string;
56
- red700: string;
57
- red800: string;
58
- red900: string;
59
- green50: string;
60
- green100: string;
61
- green200: string;
62
- green300: string;
63
- green400: string;
64
- green500: string;
65
- green600: string;
66
- green700: string;
67
- green800: string;
68
- green900: string;
69
- primaryTextOnLightBg: string;
70
- primaryBg: string;
71
- primaryBgHover: string;
72
- primaryTextOnWhite: string;
73
- bodyGray: string;
74
- hoverDarker: string;
75
- borderDarker: string;
76
- selectedDarker: string;
77
- selectedOnBodyGray: string;
78
- darkGrayBg: string;
79
- border: string;
80
- text: string;
81
- secondaryText: string;
82
- focusRing: string;
83
- };
84
- fontSizes: {
85
- xs: string;
86
- sm: string;
87
- md: string;
88
- lg: string;
89
- xl: string;
90
- "2xl": string;
91
- "3xl": string;
92
- };
93
- fontWeights: {
94
- normal: string;
95
- medium: string;
96
- bold: string;
97
- };
98
- space: {
99
- 1: string;
100
- 2: string;
101
- 3: string;
102
- 4: string;
103
- 6: string;
104
- 8: string;
105
- };
106
- shadows: {
107
- xs: string;
108
- sm: string;
109
- md: string;
110
- lg: string;
111
- overlayCard: string;
112
- };
113
- radii: {
114
- xs: string;
115
- sm: string;
116
- md: string;
117
- mdmd: string;
118
- full: string;
119
- };
120
- zIndices: {
121
- toast: number;
122
- overlayCard: number;
123
- };
124
- }, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
125
- }) => import("react/jsx-runtime").JSX.Element;
9
+ } & ComponentProps<typeof Toolbar>) => import("react/jsx-runtime").JSX.Element;
126
10
  export {};
@@ -1,11 +1,12 @@
1
- import { LinkNode } from "@lexical/link";
2
- import { ListItemNode, ListNode } from "@lexical/list";
3
- import { HeadingNode, QuoteNode } from "@lexical/rich-text";
4
- import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
5
- import { LinkTargetNode } from "./Plugins/LinkTargetNode";
6
- import { ImageNode } from "./Plugins/Image/ImageNode";
7
- export declare const defaultNodes: (typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof LinkNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode | typeof ImageNode)[];
8
- export declare const defaultViewNodes: (typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof LinkNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode | typeof ImageNode | {
1
+ import { LinkNode } from '@lexical/link';
2
+ import { ListItemNode, ListNode } from '@lexical/list';
3
+ import { HeadingNode, QuoteNode } from '@lexical/rich-text';
4
+ import { TableCellNode, TableNode, TableRowNode } from '@lexical/table';
5
+ import { LinkTargetNode } from './Plugins/LinkTargetNode';
6
+ import { ImageNode } from './Plugins/Image/ImageNode';
7
+ import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode.js';
8
+ export declare const defaultNodes: (typeof LinkNode | typeof ImageNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode | typeof HorizontalRuleNode)[];
9
+ export declare const defaultViewNodes: (typeof LinkTargetNode | typeof ImageNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode | {
9
10
  replace: typeof LinkNode;
10
11
  with: (node: LinkNode) => LinkTargetNode;
11
12
  })[];