@arkitektbedriftene/fe-lib 0.4.20 → 0.4.22

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.
@@ -3781,19 +3781,7 @@ const ge = W("div"), Ct = Fn(
3781
3781
  [t]
3782
3782
  );
3783
3783
  return /* @__PURE__ */ L(Kn, { components: i, styles: r, ...o });
3784
- }, bs = ({
3785
- clearable: e = !0,
3786
- multi: t = !1,
3787
- ...n
3788
- }) => (e = t ? !1 : e, /* @__PURE__ */ L(
3789
- Pi,
3790
- {
3791
- ...n,
3792
- isClearable: e,
3793
- isMulti: t,
3794
- isSearchable: !0
3795
- }
3796
- )), Ai = Ve({
3784
+ }, bs = (e) => /* @__PURE__ */ L(Pi, { ...e, isSearchable: !0 }), Ai = Ve({
3797
3785
  display: "block",
3798
3786
  width: "100%",
3799
3787
  padding: "0.5rem 0.75rem",
@@ -6,6 +6,7 @@ export declare const setStateFromPlainText: (str: string, editor: LexicalEditor,
6
6
  export declare const stateToHTML: (state: SerializedEditorState | string | null | undefined, nodes: CreateEditorArgs["nodes"], options?: {
7
7
  maxLines?: number | null;
8
8
  onlyMainContent?: boolean;
9
+ updateFn?: () => void;
9
10
  }) => {
10
11
  html: string;
11
12
  trimCount: number;
@@ -1,17 +1,17 @@
1
1
  var Ht = Object.defineProperty;
2
- var Wt = (t, e, r) => e in t ? Ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var lt = (t, e, r) => (Wt(t, typeof e != "symbol" ? e + "" : e, r), r);
2
+ var Wt = (t, r, e) => r in t ? Ht(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var lt = (t, r, e) => (Wt(t, typeof r != "symbol" ? r + "" : r, e), e);
4
4
  import { createHeadlessEditor as Ut } from "@lexical/headless";
5
5
  import { $generateHtmlFromNodes as jt } from "@lexical/html";
6
- import { $getRoot as j, ParagraphNode as Kt, $createParagraphNode as K, $createTextNode as B, $setSelection as kt, SELECTION_CHANGE_COMMAND as F, $getSelection as T, COMMAND_PRIORITY_CRITICAL as J, $isRangeSelection as L, $isRootOrShadowRoot as Yt, DEPRECATED_$isGridSelection as G, FORMAT_TEXT_COMMAND as A, COMMAND_PRIORITY_LOW as w, KEY_ARROW_DOWN_COMMAND as qt, KEY_ARROW_UP_COMMAND as Gt, KEY_ESCAPE_COMMAND as bt, KEY_SPACE_COMMAND as Xt, $getNearestNodeFromDOMNode as V, KEY_ARROW_LEFT_COMMAND as Qt, $isElementNode as Jt, COMMAND_PRIORITY_NORMAL as Vt, $isParagraphNode as Zt, COMMAND_PRIORITY_HIGH as te } from "lexical";
6
+ import { $getRoot as j, ParagraphNode as Kt, $createParagraphNode as K, $createTextNode as B, $setSelection as kt, SELECTION_CHANGE_COMMAND as F, $getSelection as L, COMMAND_PRIORITY_CRITICAL as J, $isRangeSelection as T, $isRootOrShadowRoot as Yt, DEPRECATED_$isGridSelection as G, FORMAT_TEXT_COMMAND as A, COMMAND_PRIORITY_LOW as w, KEY_ARROW_DOWN_COMMAND as qt, KEY_ARROW_UP_COMMAND as Gt, KEY_ESCAPE_COMMAND as bt, KEY_SPACE_COMMAND as Xt, $getNearestNodeFromDOMNode as V, KEY_ARROW_LEFT_COMMAND as Qt, $isElementNode as Jt, COMMAND_PRIORITY_NORMAL as Vt, $isParagraphNode as Zt, COMMAND_PRIORITY_HIGH as te } from "lexical";
7
7
  import { trimTextContentFromAnchor as ee, $setBlocksType as X, $isAtNodeEnd as st } from "@lexical/selection";
8
8
  import { AutoLinkNode as re, LinkNode as vt, $isLinkNode as W, TOGGLE_LINK_COMMAND as Z } from "@lexical/link";
9
9
  import { ListNode as Ct, ListItemNode as ne, $isListNode as tt, INSERT_UNORDERED_LIST_COMMAND as oe, INSERT_ORDERED_LIST_COMMAND as ie, INSERT_CHECK_LIST_COMMAND as Mt, insertList as ae, $isListItemNode as z } from "@lexical/list";
10
10
  import { HeadingNode as le, QuoteNode as se, $isHeadingNode as ce, $createHeadingNode as de, $createQuoteNode as ue } from "@lexical/rich-text";
11
11
  import { TableNode as he, TableRowNode as pe, TableCellNode as ge, INSERT_TABLE_COMMAND as fe, $getTableCellNodeFromLexicalNode as me, $deleteTableColumn__EXPERIMENTAL as ke, $deleteTableRow__EXPERIMENTAL as be, $insertTableColumn__EXPERIMENTAL as ct, $insertTableRow__EXPERIMENTAL as dt } from "@lexical/table";
12
12
  import { jsx as n, jsxs as f, Fragment as Y } from "react/jsx-runtime";
13
- import { createContext as ve, useState as b, useRef as et, useCallback as v, useContext as Ce, useEffect as N, useMemo as Tt, useLayoutEffect as Me } from "react";
14
- import { c as O, s as Lt, D as rt, T as Nt, a as M, B as P, b as yt, d as _, u as nt, e as xt, f as Te, g as Le, o as St, h as Ne, i as Et, j as wt, F as Rt, O as It, k as ye, l as xe, S as Se, m as $, n as I, p as ut, q as Ee, N as we, r as ht, t as Re, v as _t, C as Ie, w as _e, x as ze } from "./Checkbox-a342242a.js";
13
+ import { createContext as ve, useState as b, useRef as et, useCallback as v, useContext as Ce, useEffect as N, useMemo as Lt, useLayoutEffect as Me } from "react";
14
+ import { c as O, s as Tt, D as rt, T as Nt, a as M, B as P, b as yt, d as _, u as nt, e as xt, f as Le, g as Te, o as St, h as Ne, i as Et, j as wt, F as Rt, O as It, k as ye, l as xe, S as Se, m as $, n as I, p as ut, q as Ee, N as we, r as ht, t as Re, v as _t, C as Ie, w as _e, x as ze } from "./Checkbox-8b8c360d.js";
15
15
  import "react-select";
16
16
  import { LexicalComposer as $e } from "@lexical/react/LexicalComposer.js";
17
17
  import { RichTextPlugin as Oe } from "@lexical/react/LexicalRichTextPlugin.js";
@@ -30,42 +30,42 @@ import "@radix-ui/react-dropdown-menu";
30
30
  import "@radix-ui/react-checkbox";
31
31
  const Ue = ({
32
32
  text: t,
33
- maxChars: e,
34
- maxLines: r
33
+ maxChars: r,
34
+ maxLines: e
35
35
  }) => {
36
36
  if (t.length === 0)
37
37
  return 0;
38
- const o = typeof r == "number", i = typeof e == "number";
38
+ const o = typeof e == "number", i = typeof r == "number";
39
39
  if (!o && !i)
40
40
  return t.length;
41
41
  let l = 0, a = 0;
42
- for (; a < t.length && (!o || l < r) && (!i || a < e); )
42
+ for (; a < t.length && (!o || l < e) && (!i || a < r); )
43
43
  t[a] === `
44
44
  ` && l++, a++;
45
45
  return t.slice(0, a).length;
46
46
  }, je = ({
47
47
  editor: t,
48
- maxChars: e,
49
- maxLines: r
48
+ maxChars: r,
49
+ maxLines: e
50
50
  }) => {
51
- const o = j(), i = o.getTextContent(), l = Ue({ text: i, maxChars: e, maxLines: r }), a = i.length - l, d = o.select().anchor;
51
+ const o = j(), i = o.getTextContent(), l = Ue({ text: i, maxChars: r, maxLines: e }), a = i.length - l, d = o.select().anchor;
52
52
  ee(t, d, a);
53
53
  const c = o.getLastChild();
54
54
  return c instanceof Kt && c.getChildrenSize() === 0 && c.remove(), a;
55
- }, $t = (t) => t[0] === "{", Ke = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Ye = (t, e) => {
55
+ }, $t = (t) => t[0] === "{", Ke = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Ye = (t, r) => {
56
56
  t.update(
57
57
  () => {
58
- const r = j();
59
- r.clear();
58
+ const e = j();
59
+ e.clear();
60
60
  const o = K();
61
- o.append(B("")), r.append(o), kt(null);
61
+ o.append(B("")), e.append(o), kt(null);
62
62
  },
63
63
  {
64
- tag: e
64
+ tag: r
65
65
  }
66
66
  );
67
- }, qe = (t, e, r) => {
68
- e.update(
67
+ }, qe = (t, r, e) => {
68
+ r.update(
69
69
  () => {
70
70
  const o = j();
71
71
  o.clear();
@@ -73,13 +73,13 @@ const Ue = ({
73
73
  i.append(B(t.trim())), o.append(i), kt(null);
74
74
  },
75
75
  {
76
- tag: r
76
+ tag: e
77
77
  }
78
- ), e.blur();
79
- }, gn = (t, e, r) => {
78
+ ), r.blur();
79
+ }, gn = (t, r, e) => {
80
80
  let o = 0;
81
81
  const i = Ut({
82
- nodes: e,
82
+ nodes: r,
83
83
  editable: !1
84
84
  });
85
85
  if (t)
@@ -91,10 +91,10 @@ const Ue = ({
91
91
  });
92
92
  else {
93
93
  const a = i.parseEditorState(t, () => {
94
- o = je({
94
+ (e == null ? void 0 : e.maxLines) !== void 0 && (o = je({
95
95
  editor: i,
96
- maxLines: r == null ? void 0 : r.maxLines
97
- });
96
+ maxLines: e.maxLines
97
+ }));
98
98
  });
99
99
  a.isEmpty() || i.setEditorState(a);
100
100
  }
@@ -103,7 +103,8 @@ const Ue = ({
103
103
  }
104
104
  let l = "";
105
105
  return i.update(() => {
106
- l = jt(i);
106
+ var a;
107
+ e != null && e.updateFn && ((a = e.updateFn) == null || a.call(e)), l = jt(i);
107
108
  }), { html: l, trimCount: o };
108
109
  }, fn = [
109
110
  le,
@@ -142,15 +143,15 @@ const Ue = ({
142
143
  }
143
144
  }
144
145
  }, Ot = ve({ hasFocus: !1, editorRef: { current: null } }), tr = ({ onBlur: t }) => {
145
- const [e, r] = b(!1), o = et(null), i = v(() => {
146
- r(!0), o.current && window.clearTimeout(o.current);
146
+ const [r, e] = b(!1), o = et(null), i = v(() => {
147
+ e(!0), o.current && window.clearTimeout(o.current);
147
148
  }, []), l = v(() => {
148
149
  o.current = window.setTimeout(() => {
149
- r(!1), t == null || t();
150
+ e(!1), t == null || t();
150
151
  }, 0);
151
152
  }, [t]);
152
153
  return {
153
- hasFocus: e,
154
+ hasFocus: r,
154
155
  attributes: {
155
156
  onFocus: i,
156
157
  onBlur: l
@@ -211,7 +212,7 @@ function kr(t) {
211
212
  function br(t) {
212
213
  return h({ 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);
213
214
  }
214
- const vr = Lt("div", {
215
+ const vr = Tt("div", {
215
216
  width: "10rem",
216
217
  display: "flex"
217
218
  }), Dt = {
@@ -255,23 +256,23 @@ const vr = Lt("div", {
255
256
  }
256
257
  )
257
258
  ] }), Mr = (t) => {
258
- if (!L(t))
259
+ if (!T(t))
259
260
  return null;
260
- const e = t.anchor.getNode();
261
- let r = e.getKey() === "root" ? e : zt(e, (o) => {
261
+ const r = t.anchor.getNode();
262
+ let e = r.getKey() === "root" ? r : zt(r, (o) => {
262
263
  const i = o.getParent();
263
264
  return i !== null && Yt(i);
264
265
  });
265
- return r === null && (r = e.getTopLevelElementOrThrow()), {
266
- anchorNode: e,
267
- element: r
266
+ return e === null && (e = r.getTopLevelElementOrThrow()), {
267
+ anchorNode: r,
268
+ element: e
268
269
  };
269
- }, Tr = () => {
270
- const [t] = y(), [e, r] = b("paragraph");
270
+ }, Lr = () => {
271
+ const [t] = y(), [r, e] = b("paragraph");
271
272
  N(() => t.registerCommand(
272
273
  F,
273
274
  () => {
274
- const c = T(), g = Mr(c);
275
+ const c = L(), g = Mr(c);
275
276
  if (!g)
276
277
  return !1;
277
278
  const { element: u, anchorNode: m } = g, E = u.getKey();
@@ -281,19 +282,19 @@ const vr = Lt("div", {
281
282
  m,
282
283
  Ct
283
284
  ), S = k ? k.getListType() : u.getListType();
284
- r(S);
285
+ e(S);
285
286
  } else {
286
287
  const k = ce(u) ? u.getTag() : u.getType();
287
- k in Dt && r(k);
288
+ k in Dt && e(k);
288
289
  }
289
290
  return !1;
290
291
  },
291
292
  J
292
293
  ), [t]);
293
294
  const o = (c) => {
294
- e !== c && t.update(() => {
295
- const g = T();
296
- (L(g) || G(g)) && (X(g, () => de(c)), r(c));
295
+ r !== c && t.update(() => {
296
+ const g = L();
297
+ (T(g) || G(g)) && (X(g, () => de(c)), e(c));
297
298
  });
298
299
  };
299
300
  return /* @__PURE__ */ n(vr, { children: /* @__PURE__ */ f(
@@ -304,16 +305,16 @@ const vr = Lt("div", {
304
305
  {
305
306
  dropdown: !0,
306
307
  css: { display: "flex", width: "100%", overflow: "hidden" },
307
- children: /* @__PURE__ */ n(C, { blockType: e })
308
+ children: /* @__PURE__ */ n(C, { blockType: r })
308
309
  }
309
310
  ),
310
311
  side: "bottom",
311
312
  align: "start",
312
313
  children: [
313
314
  /* @__PURE__ */ n(M, { onClick: () => {
314
- e !== "paragraph" && t.update(() => {
315
- const c = T();
316
- (L(c) || G(c)) && (X(c, () => K()), r("paragraph"));
315
+ r !== "paragraph" && t.update(() => {
316
+ const c = L();
317
+ (T(c) || G(c)) && (X(c, () => K()), e("paragraph"));
317
318
  });
318
319
  }, children: /* @__PURE__ */ n(C, { blockType: "paragraph" }) }),
319
320
  /* @__PURE__ */ n(M, { onClick: () => o("h1"), children: /* @__PURE__ */ n(C, { blockType: "h1" }) }),
@@ -323,27 +324,27 @@ const vr = Lt("div", {
323
324
  /* @__PURE__ */ n(M, { onClick: () => o("h5"), children: /* @__PURE__ */ n(C, { blockType: "h5" }) }),
324
325
  /* @__PURE__ */ n(M, { onClick: () => o("h6"), children: /* @__PURE__ */ n(C, { blockType: "h6" }) }),
325
326
  /* @__PURE__ */ n(M, { onClick: () => {
326
- e !== "bullet" && (t.dispatchCommand(oe, void 0), r("bullet"));
327
+ r !== "bullet" && (t.dispatchCommand(oe, void 0), e("bullet"));
327
328
  }, children: /* @__PURE__ */ n(C, { blockType: "bullet" }) }),
328
329
  /* @__PURE__ */ n(M, { onClick: () => {
329
- e !== "number" && (t.dispatchCommand(ie, void 0), r("number"));
330
+ r !== "number" && (t.dispatchCommand(ie, void 0), e("number"));
330
331
  }, children: /* @__PURE__ */ n(C, { blockType: "number" }) }),
331
332
  /* @__PURE__ */ n(M, { onClick: () => {
332
- e !== "check" && (t.dispatchCommand(Mt, void 0), r("check"));
333
+ r !== "check" && (t.dispatchCommand(Mt, void 0), e("check"));
333
334
  }, children: /* @__PURE__ */ n(C, { blockType: "check" }) }),
334
335
  /* @__PURE__ */ n(M, { onClick: () => {
335
- e !== "quote" && t.update(() => {
336
- const c = T();
337
- (L(c) || G(c)) && (X(c, () => ue()), r("quote"));
336
+ r !== "quote" && t.update(() => {
337
+ const c = L();
338
+ (T(c) || G(c)) && (X(c, () => ue()), e("quote"));
338
339
  });
339
340
  }, children: /* @__PURE__ */ n(C, { blockType: "quote" }) })
340
341
  ]
341
342
  }
342
343
  ) });
343
- }, Lr = () => {
344
- const [t] = y(), [e, r] = b(!1), [o, i] = b(!1), [l, a] = b(!1), [s, d] = b(!1), [c, g] = b(!1), u = v(() => {
345
- const p = T();
346
- L(p) && (r(p.hasFormat("bold")), i(p.hasFormat("italic")), a(p.hasFormat("underline")), d(p.hasFormat("code")), g(p.hasFormat("superscript")));
344
+ }, Tr = () => {
345
+ const [t] = y(), [r, e] = b(!1), [o, i] = b(!1), [l, a] = b(!1), [s, d] = b(!1), [c, g] = b(!1), u = v(() => {
346
+ const p = L();
347
+ T(p) && (e(p.hasFormat("bold")), i(p.hasFormat("italic")), a(p.hasFormat("underline")), d(p.hasFormat("code")), g(p.hasFormat("superscript")));
347
348
  }, []);
348
349
  N(() => ot(
349
350
  t.registerCommand(
@@ -372,10 +373,10 @@ const vr = Lt("div", {
372
373
  ), S = v(
373
374
  () => t.dispatchCommand(A, "superscript"),
374
375
  [t]
375
- ), D = Tt(() => {
376
+ ), D = Lt(() => {
376
377
  const p = [];
377
- return e && p.push("bold"), o && p.push("italic"), l && p.push("underline"), s && p.push("code"), c && p.push("superscript"), p;
378
- }, [e, o, l, s, c]);
378
+ return r && p.push("bold"), o && p.push("italic"), l && p.push("underline"), s && p.push("code"), c && p.push("superscript"), p;
379
+ }, [r, o, l, s, c]);
379
380
  return /* @__PURE__ */ f(
380
381
  yt,
381
382
  {
@@ -432,7 +433,7 @@ const vr = Lt("div", {
432
433
  }
433
434
  );
434
435
  }, Nr = ({ children: t }) => {
435
- const { hasFocus: e, editorRef: r } = it(), o = e, [i, l] = b(o);
436
+ const { hasFocus: r, editorRef: e } = it(), o = r, [i, l] = b(o);
436
437
  Me(() => {
437
438
  l(o);
438
439
  }, [o]);
@@ -440,12 +441,12 @@ const vr = Lt("div", {
440
441
  placement: "top",
441
442
  whileElementsMounted: xt,
442
443
  middleware: [
443
- Te({
444
+ Le({
444
445
  apply: ({ rects: g, elements: u }) => {
445
446
  u.floating.style.minWidth = `${g.reference.width}px`;
446
447
  }
447
448
  }),
448
- Le(),
449
+ Te(),
449
450
  St({
450
451
  mainAxis: 8
451
452
  }),
@@ -456,7 +457,7 @@ const vr = Lt("div", {
456
457
  open: i,
457
458
  onOpenChange: l,
458
459
  elements: {
459
- reference: r.current
460
+ reference: e.current
460
461
  }
461
462
  }), { getFloatingProps: c } = Et([
462
463
  wt(a, {
@@ -480,11 +481,11 @@ const vr = Lt("div", {
480
481
  ) }) : null;
481
482
  }, yr = ({
482
483
  children: t,
483
- ...e
484
- }) => /* @__PURE__ */ f(ye, { "aria-label": "Formattering", ...e, children: [
485
- /* @__PURE__ */ n(Tr, {}),
486
- /* @__PURE__ */ n(xe, {}),
484
+ ...r
485
+ }) => /* @__PURE__ */ f(ye, { "aria-label": "Formattering", ...r, children: [
487
486
  /* @__PURE__ */ n(Lr, {}),
487
+ /* @__PURE__ */ n(xe, {}),
488
+ /* @__PURE__ */ n(Tr, {}),
488
489
  t
489
490
  ] });
490
491
  function xr() {
@@ -497,17 +498,17 @@ function xr() {
497
498
  ),
498
499
  t.registerCommand(
499
500
  qt,
500
- (e) => mt(e, t, !1),
501
+ (r) => mt(r, t, !1),
501
502
  w
502
503
  ),
503
504
  t.registerCommand(
504
505
  Gt,
505
- (e) => mt(e, t, !0),
506
+ (r) => mt(r, t, !0),
506
507
  w
507
508
  ),
508
509
  t.registerCommand(
509
510
  bt,
510
- (e) => {
511
+ (r) => {
511
512
  if (Q() != null) {
512
513
  const o = t.getRootElement();
513
514
  return o != null && o.focus(), !0;
@@ -518,21 +519,21 @@ function xr() {
518
519
  ),
519
520
  t.registerCommand(
520
521
  Xt,
521
- (e) => {
522
- const r = Q();
523
- return r != null && t.isEditable() ? (t.update(() => {
524
- const o = V(r);
525
- z(o) && (e.preventDefault(), o.toggleChecked());
522
+ (r) => {
523
+ const e = Q();
524
+ return e != null && t.isEditable() ? (t.update(() => {
525
+ const o = V(e);
526
+ z(o) && (r.preventDefault(), o.toggleChecked());
526
527
  }), !0) : !1;
527
528
  },
528
529
  w
529
530
  ),
530
531
  t.registerCommand(
531
532
  Qt,
532
- (e) => t.getEditorState().read(() => {
533
- const r = T();
534
- if (L(r) && r.isCollapsed()) {
535
- const { anchor: o } = r, i = o.type === "element";
533
+ (r) => t.getEditorState().read(() => {
534
+ const e = L();
535
+ if (T(e) && e.isCollapsed()) {
536
+ const { anchor: o } = e, i = o.type === "element";
536
537
  if (i || o.offset === 0) {
537
538
  const l = o.getNode(), a = zt(
538
539
  l,
@@ -543,7 +544,7 @@ function xr() {
543
544
  if (tt(s) && s.getListType() === "check" && (i || a.getFirstDescendant() === l)) {
544
545
  const d = t.getElementByKey(a.__key);
545
546
  if (d != null && document.activeElement !== d)
546
- return d.focus(), e.preventDefault(), !0;
547
+ return d.focus(), r.preventDefault(), !0;
547
548
  }
548
549
  }
549
550
  }
@@ -552,31 +553,31 @@ function xr() {
552
553
  }),
553
554
  w
554
555
  ),
555
- t.registerRootListener((e, r) => {
556
- e !== null && (e.addEventListener("click", gt), e.addEventListener("pointerdown", ft)), r !== null && (r.removeEventListener("click", gt), r.removeEventListener("pointerdown", ft));
556
+ t.registerRootListener((r, e) => {
557
+ r !== null && (r.addEventListener("click", gt), r.addEventListener("pointerdown", ft)), e !== null && (e.removeEventListener("click", gt), e.removeEventListener("pointerdown", ft));
557
558
  })
558
559
  ), [t]), null;
559
560
  }
560
- function At(t, e) {
561
- const r = t.target;
562
- if (r === null || !pt(r))
561
+ function At(t, r) {
562
+ const e = t.target;
563
+ if (e === null || !pt(e))
563
564
  return;
564
- const o = r.firstChild;
565
+ const o = e.firstChild;
565
566
  if (o != null && pt(o) && (o.tagName === "UL" || o.tagName === "OL"))
566
567
  return;
567
- const i = r.parentNode;
568
+ const i = e.parentNode;
568
569
  if (!i || i.__lexicalListType !== "check")
569
570
  return;
570
- const l = t.pageX, a = r.getBoundingClientRect();
571
- (r.dir === "rtl" ? l < a.right && l > a.right - 20 : l > a.left && l < a.left + 20) && e();
571
+ const l = t.pageX, a = e.getBoundingClientRect();
572
+ (e.dir === "rtl" ? l < a.right && l > a.right - 20 : l > a.left && l < a.left + 20) && r();
572
573
  }
573
574
  function gt(t) {
574
575
  At(t, () => {
575
- const e = t.target, r = Sr(e);
576
- r != null && r.isEditable() && r.update(() => {
576
+ const r = t.target, e = Sr(r);
577
+ e != null && e.isEditable() && e.update(() => {
577
578
  if (t.target) {
578
- const o = V(e);
579
- z(o) && (e.focus(), o.toggleChecked());
579
+ const o = V(r);
580
+ z(o) && (r.focus(), o.toggleChecked());
580
581
  }
581
582
  });
582
583
  });
@@ -587,11 +588,11 @@ function ft(t) {
587
588
  });
588
589
  }
589
590
  function Sr(t) {
590
- let e = t;
591
- for (; e; ) {
592
- if (e.__lexicalEditor)
593
- return e.__lexicalEditor;
594
- e = e.parentNode;
591
+ let r = t;
592
+ for (; r; ) {
593
+ if (r.__lexicalEditor)
594
+ return r.__lexicalEditor;
595
+ r = r.parentNode;
595
596
  }
596
597
  return null;
597
598
  }
@@ -600,28 +601,28 @@ function Q() {
600
601
  return t != null && t.tagName === "LI" && t.parentNode != null && // @ts-ignore internal field
601
602
  t.parentNode.__lexicalListType === "check" ? t : null;
602
603
  }
603
- function Er(t, e) {
604
- let r = e ? t.getPreviousSibling() : t.getNextSibling(), o = t;
605
- for (; r == null && z(o); )
606
- o = o.getParentOrThrow().getParent(), o != null && (r = e ? o.getPreviousSibling() : o.getNextSibling());
607
- for (; z(r); ) {
608
- const i = e ? r.getLastChild() : r.getFirstChild();
604
+ function Er(t, r) {
605
+ let e = r ? t.getPreviousSibling() : t.getNextSibling(), o = t;
606
+ for (; e == null && z(o); )
607
+ o = o.getParentOrThrow().getParent(), o != null && (e = r ? o.getPreviousSibling() : o.getNextSibling());
608
+ for (; z(e); ) {
609
+ const i = r ? e.getLastChild() : e.getFirstChild();
609
610
  if (!tt(i))
610
- return r;
611
- r = e ? i.getLastChild() : i.getFirstChild();
611
+ return e;
612
+ e = r ? i.getLastChild() : i.getFirstChild();
612
613
  }
613
614
  return null;
614
615
  }
615
- function mt(t, e, r) {
616
+ function mt(t, r, e) {
616
617
  const o = Q();
617
- return o != null && e.update(() => {
618
+ return o != null && r.update(() => {
618
619
  const i = V(o);
619
620
  if (!z(i))
620
621
  return;
621
- const l = Er(i, r);
622
+ const l = Er(i, e);
622
623
  if (l != null) {
623
624
  l.selectStart();
624
- const a = e.getElementByKey(l.__key);
625
+ const a = r.getElementByKey(l.__key);
625
626
  a != null && (t.preventDefault(), setTimeout(() => {
626
627
  a.focus();
627
628
  }, 0));
@@ -637,25 +638,25 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
637
638
  ] }), Rr = ({
638
639
  state: t
639
640
  }) => {
640
- const [e] = y();
641
+ const [r] = y();
641
642
  return N(() => {
642
643
  if (t)
643
644
  try {
644
645
  if (Ke(t)) {
645
- t.isEmpty() ? Ye(e) : e.setEditorState(t);
646
+ t.isEmpty() ? Ye(r) : r.setEditorState(t);
646
647
  return;
647
648
  }
648
649
  if (typeof t == "string" && !$t(t)) {
649
- qe(t, e);
650
+ qe(t, r);
650
651
  return;
651
652
  }
652
- const r = e.parseEditorState(t);
653
- r.isEmpty() || e.setEditorState(r);
654
- } catch (r) {
655
- console.error("Could not parse"), console.error(r);
653
+ const e = r.parseEditorState(t);
654
+ e.isEmpty() || r.setEditorState(e);
655
+ } catch (e) {
656
+ console.error("Could not parse"), console.error(e);
656
657
  }
657
658
  }, []), null;
658
- }, Ir = Lt("div", {
659
+ }, Ir = Tt("div", {
659
660
  border: "1px solid $borderDarker",
660
661
  borderRadius: "$md",
661
662
  position: "relative",
@@ -708,8 +709,8 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
708
709
  }
709
710
  ), mn = ({
710
711
  isLoading: t,
711
- children: e,
712
- placeholderText: r,
712
+ children: r,
713
+ placeholderText: e,
713
714
  nodes: o,
714
715
  plugins: i,
715
716
  toolbar: l,
@@ -720,7 +721,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
720
721
  defaultState: g,
721
722
  css: u
722
723
  }) => {
723
- const { hasFocus: m, attributes: E } = tr({ onBlur: c }), x = et(null), k = Tt(() => ({ hasFocus: m, editorRef: x }), [m]);
724
+ const { hasFocus: m, attributes: E } = tr({ onBlur: c }), x = et(null), k = Lt(() => ({ hasFocus: m, editorRef: x }), [m]);
724
725
  return /* @__PURE__ */ n(Ot.Provider, { value: k, children: /* @__PURE__ */ f(
725
726
  $e,
726
727
  {
@@ -748,7 +749,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
748
749
  Oe,
749
750
  {
750
751
  contentEditable: s,
751
- placeholder: r ? /* @__PURE__ */ n(
752
+ placeholder: e ? /* @__PURE__ */ n(
752
753
  P,
753
754
  {
754
755
  css: {
@@ -759,7 +760,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
759
760
  pointerEvents: "none",
760
761
  fontSize: "$sm"
761
762
  },
762
- children: r
763
+ children: e
763
764
  }
764
765
  ) : null,
765
766
  ErrorBoundary: De
@@ -773,7 +774,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
773
774
  }
774
775
  ),
775
776
  /* @__PURE__ */ n(Rr, { state: g }),
776
- /* @__PURE__ */ n(Y, { children: e })
777
+ /* @__PURE__ */ n(Y, { children: r })
777
778
  ]
778
779
  }
779
780
  ) });
@@ -946,7 +947,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
946
947
  size: "md"
947
948
  }
948
949
  }, kn = O(zr), bn = () => {
949
- const [t] = y(), e = v(() => {
950
+ const [t] = y(), r = v(() => {
950
951
  t.dispatchCommand(fe, {
951
952
  rows: "3",
952
953
  columns: "3",
@@ -959,7 +960,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
959
960
  trigger: /* @__PURE__ */ n(Nt, { dropdown: !0, children: "Sett inn" }),
960
961
  side: "bottom",
961
962
  align: "end",
962
- children: /* @__PURE__ */ f(M, { onClick: e, children: [
963
+ children: /* @__PURE__ */ f(M, { onClick: r, children: [
963
964
  /* @__PURE__ */ n(kr, { size: "1.25rem" }),
964
965
  " Tabell"
965
966
  ] })
@@ -970,25 +971,25 @@ function $r(t) {
970
971
  return h({ 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);
971
972
  }
972
973
  const vn = () => {
973
- const [t] = y(), [e, r] = b(null), { hasFocus: o } = it();
974
+ const [t] = y(), [r, e] = b(null), { hasFocus: o } = it();
974
975
  N(() => {
975
- !o && e && r(null);
976
- }, [o, e]);
976
+ !o && r && e(null);
977
+ }, [o, r]);
977
978
  const { refs: i, floatingStyles: l } = nt({
978
979
  placement: "top-end",
979
- open: !!e,
980
+ open: !!r,
980
981
  elements: {
981
- reference: e
982
+ reference: r
982
983
  },
983
984
  middleware: [St({ mainAxis: -20, crossAxis: -2 })]
984
985
  });
985
986
  N(() => t.registerCommand(
986
987
  F,
987
988
  () => {
988
- const s = T();
989
- if (L(s)) {
989
+ const s = L();
990
+ if (T(s)) {
990
991
  const d = s.anchor.getNode(), c = me(d);
991
- r(c ? t.getElementByKey(c.getKey()) : null);
992
+ e(c ? t.getElementByKey(c.getKey()) : null);
992
993
  }
993
994
  return !1;
994
995
  },
@@ -1018,7 +1019,7 @@ const vn = () => {
1018
1019
  }
1019
1020
  });
1020
1021
  };
1021
- return e ? /* @__PURE__ */ f(
1022
+ return r ? /* @__PURE__ */ f(
1022
1023
  rt,
1023
1024
  {
1024
1025
  trigger: /* @__PURE__ */ n(
@@ -1047,27 +1048,27 @@ const vn = () => {
1047
1048
  ) : null;
1048
1049
  };
1049
1050
  function Bt(t) {
1050
- let e = t;
1051
- const r = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, o = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
1052
- return e = String(e).trim(), e.match(r) || e.match(o) ? e : "https://";
1051
+ let r = t;
1052
+ const e = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, o = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
1053
+ return r = String(r).trim(), r.match(e) || r.match(o) ? r : "https://";
1053
1054
  }
1054
1055
  function Pt(t) {
1055
- const e = t.anchor, r = t.focus, o = t.anchor.getNode(), i = t.focus.getNode();
1056
- return o === i ? o : t.isBackward() ? st(r) ? o : i : st(e) ? o : i;
1056
+ const r = t.anchor, e = t.focus, o = t.anchor.getNode(), i = t.focus.getNode();
1057
+ return o === i ? o : t.isBackward() ? st(e) ? o : i : st(r) ? o : i;
1057
1058
  }
1058
1059
  const Cn = (t) => (R.baseURL = t, R), U = class extends vt {
1059
1060
  static getType() {
1060
1061
  return "rutine_link";
1061
1062
  }
1062
- static clone(e) {
1063
- return new U(e.url);
1063
+ static clone(r) {
1064
+ return new U(r.url);
1064
1065
  }
1065
- createDOM(e) {
1066
- const r = super.createDOM(e);
1067
- return r.setAttribute("href", this.getURL()), r.setAttribute("target", "_blank"), r.setAttribute("rel", "noopener noreferrer"), r.classList.add("rutine-link"), r;
1066
+ createDOM(r) {
1067
+ const e = super.createDOM(r);
1068
+ return e.setAttribute("href", this.getURL()), e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer"), e.classList.add("rutine-link"), e;
1068
1069
  }
1069
- static importJSON(e) {
1070
- return Ft(e.url);
1070
+ static importJSON(r) {
1071
+ return Ft(r.url);
1071
1072
  }
1072
1073
  exportJSON() {
1073
1074
  return {
@@ -1094,23 +1095,23 @@ function Or(t) {
1094
1095
  return t instanceof R;
1095
1096
  }
1096
1097
  const Dr = ({ onClose: t }) => {
1097
- const [e] = y(), r = v(
1098
+ const [r] = y(), e = v(
1098
1099
  (i) => {
1099
- e.update(() => {
1100
- const l = T();
1101
- if (L(l) && l.isCollapsed()) {
1100
+ r.update(() => {
1101
+ const l = L();
1102
+ if (T(l) && l.isCollapsed()) {
1102
1103
  const a = l.getNodes();
1103
1104
  if (a.length === 1) {
1104
1105
  const s = a[0];
1105
1106
  Zt(s) && s.getChildren().length === 0 && l.insertText(i);
1106
1107
  }
1107
1108
  }
1108
- }), e.dispatchCommand(Z, Bt(i));
1109
+ }), r.dispatchCommand(Z, Bt(i));
1109
1110
  },
1110
- [e]
1111
+ [r]
1111
1112
  );
1112
1113
  return /* @__PURE__ */ f("form", { onSubmit: (i) => {
1113
- r(i.target.url.value), t();
1114
+ e(i.target.url.value), t();
1114
1115
  }, children: [
1115
1116
  /* @__PURE__ */ n(Re, { name: "url", label: "URL", type: "url", required: !0 }),
1116
1117
  /* @__PURE__ */ f(_t, { children: [
@@ -1118,12 +1119,12 @@ const Dr = ({ onClose: t }) => {
1118
1119
  /* @__PURE__ */ n($, { type: "submit", variant: "primary", children: "Lagre" })
1119
1120
  ] })
1120
1121
  ] });
1121
- }, Ar = ({ onClose: t, getDocs: e }) => {
1122
- const [r] = y(), [o, i] = b([]), l = e(), a = v(
1122
+ }, Ar = ({ onClose: t, getDocs: r }) => {
1123
+ const [e] = y(), [o, i] = b([]), l = r(), a = v(
1123
1124
  (s) => {
1124
- r.update(() => {
1125
- const d = T();
1126
- if (L(d)) {
1125
+ e.update(() => {
1126
+ const d = L();
1127
+ if (T(d)) {
1127
1128
  const c = [];
1128
1129
  for (const [g, u] of s.entries()) {
1129
1130
  const m = Ft(u.value);
@@ -1133,7 +1134,7 @@ const Dr = ({ onClose: t }) => {
1133
1134
  }
1134
1135
  });
1135
1136
  },
1136
- [r]
1137
+ [e]
1137
1138
  );
1138
1139
  return /* @__PURE__ */ f(Y, { children: [
1139
1140
  /* @__PURE__ */ n(Ie, { multi: !0, options: l, onChange: i }),
@@ -1153,38 +1154,38 @@ const Dr = ({ onClose: t }) => {
1153
1154
  ] });
1154
1155
  }, Br = ({
1155
1156
  open: t,
1156
- onOpenChange: e,
1157
- getDocs: r
1157
+ onOpenChange: r,
1158
+ getDocs: e
1158
1159
  }) => {
1159
1160
  const [o, i] = b("url"), l = () => {
1160
- e(!1);
1161
+ r(!1);
1161
1162
  };
1162
- return /* @__PURE__ */ f(Ee, { open: t, onOpenChange: e, css: { width: "600px" }, children: [
1163
+ return /* @__PURE__ */ f(Ee, { open: t, onOpenChange: r, css: { width: "600px" }, children: [
1163
1164
  /* @__PURE__ */ f(we, { css: { marginBottom: "$8" }, children: [
1164
1165
  /* @__PURE__ */ n(ht, { active: o === "url", onClick: () => i("url"), children: "URL" }),
1165
1166
  /* @__PURE__ */ n(ht, { active: o === "rutine", onClick: () => i("rutine"), children: "Rutine" })
1166
1167
  ] }),
1167
1168
  o === "url" && /* @__PURE__ */ n(Dr, { onClose: l }),
1168
- o === "rutine" && /* @__PURE__ */ n(Ar, { onClose: l, getDocs: r })
1169
+ o === "rutine" && /* @__PURE__ */ n(Ar, { onClose: l, getDocs: e })
1169
1170
  ] });
1170
1171
  }, Mn = ({ getDocs: t }) => {
1171
- const [e] = y(), [r, o] = b(!1), [i, l] = b(!1), a = v(() => {
1172
- const s = T();
1173
- if (L(s)) {
1172
+ const [r] = y(), [e, o] = b(!1), [i, l] = b(!1), a = v(() => {
1173
+ const s = L();
1174
+ if (T(s)) {
1174
1175
  const d = Pt(s), c = d.getParent();
1175
1176
  o(W(c) || W(d));
1176
1177
  }
1177
1178
  }, []);
1178
- return N(() => e.registerCommand(
1179
+ return N(() => r.registerCommand(
1179
1180
  F,
1180
1181
  () => (a(), !1),
1181
1182
  J
1182
- ), [e, a]), /* @__PURE__ */ f(yt, { type: "single", value: r ? "link" : "", children: [
1183
+ ), [r, a]), /* @__PURE__ */ f(yt, { type: "single", value: e ? "link" : "", children: [
1183
1184
  /* @__PURE__ */ n(
1184
1185
  _,
1185
1186
  {
1186
1187
  onClick: () => {
1187
- r ? e.dispatchCommand(Z, null) : l(!0);
1188
+ e ? r.dispatchCommand(Z, null) : l(!0);
1188
1189
  },
1189
1190
  title: "Lenke",
1190
1191
  value: "link",
@@ -1200,20 +1201,20 @@ const Dr = ({ onClose: t }) => {
1200
1201
  }
1201
1202
  )
1202
1203
  ] });
1203
- }, Tn = () => {
1204
- const [t] = y(), e = et(null), [r, o] = b(null), [i, l] = b(""), { hasFocus: a } = it();
1204
+ }, Ln = () => {
1205
+ const [t] = y(), r = et(null), [e, o] = b(null), [i, l] = b(""), { hasFocus: a } = it();
1205
1206
  N(() => {
1206
- r ? t.update(() => {
1207
- l(r.getURL());
1207
+ e ? t.update(() => {
1208
+ l(e.getURL());
1208
1209
  }) : l("");
1209
- }, [t, r]);
1210
- const s = !!(r && i && a), { refs: d, floatingStyles: c, context: g } = nt({
1210
+ }, [t, e]);
1211
+ const s = !!(e && i && a), { refs: d, floatingStyles: c, context: g } = nt({
1211
1212
  placement: "top",
1212
1213
  strategy: "fixed",
1213
1214
  open: s,
1214
1215
  whileElementsMounted: xt,
1215
1216
  elements: {
1216
- reference: e.current
1217
+ reference: r.current
1217
1218
  },
1218
1219
  middleware: [_e()]
1219
1220
  }), { getFloatingProps: u } = Et([
@@ -1221,21 +1222,21 @@ const Dr = ({ onClose: t }) => {
1221
1222
  ze(g)
1222
1223
  ]), m = v(() => {
1223
1224
  var S;
1224
- const k = T();
1225
- if (L(k)) {
1225
+ const k = L();
1226
+ if (T(k)) {
1226
1227
  const D = Pt(k), p = D.getParent();
1227
1228
  let H = null;
1228
1229
  if (W(p) ? H = p : W(D) && (H = D), H) {
1229
1230
  const q = window.getSelection(), at = t.getRootElement();
1230
- k !== null && q !== null && at !== null && at.contains(q.anchorNode) && t.isEditable() && (e.current = ((S = q.focusNode) == null ? void 0 : S.parentElement) ?? null);
1231
+ k !== null && q !== null && at !== null && at.contains(q.anchorNode) && t.isEditable() && (r.current = ((S = q.focusNode) == null ? void 0 : S.parentElement) ?? null);
1231
1232
  }
1232
1233
  o(H);
1233
1234
  }
1234
1235
  }, [t]), E = v(() => {
1235
- r && Or(r) && t.update(() => {
1236
- r.remove();
1236
+ e && Or(e) && t.update(() => {
1237
+ e.remove();
1237
1238
  }), t.dispatchCommand(Z, null);
1238
- }, [t, r]);
1239
+ }, [t, e]);
1239
1240
  if (N(() => {
1240
1241
  t.getEditorState().read(() => {
1241
1242
  m();
@@ -1253,10 +1254,10 @@ const Dr = ({ onClose: t }) => {
1253
1254
  ),
1254
1255
  t.registerCommand(
1255
1256
  bt,
1256
- () => r ? (o(null), !0) : !1,
1257
+ () => e ? (o(null), !0) : !1,
1257
1258
  te
1258
1259
  )
1259
- ), [t, m, r]), !s)
1260
+ ), [t, m, e]), !s)
1260
1261
  return null;
1261
1262
  const x = Bt(i);
1262
1263
  return /* @__PURE__ */ n(Rt, { children: /* @__PURE__ */ f(
@@ -1301,7 +1302,7 @@ export {
1301
1302
  Or as $isRutineLinkNode,
1302
1303
  Nr as FloatingToolbar,
1303
1304
  bn as InsertSelector,
1304
- Tn as LinkEditPlugin,
1305
+ Ln as LinkEditPlugin,
1305
1306
  Mn as LinkToolbarButton,
1306
1307
  mn as RichTextEditor,
1307
1308
  yr as RichTextToolbar,
@@ -120,123 +120,7 @@ export declare const Dialog: ({ children, open, onOpenChange, trigger, css, }: {
120
120
  open: boolean;
121
121
  onOpenChange: (bool: boolean) => void;
122
122
  trigger?: ReactNode;
123
- css?: Pick<Omit<RDialog.DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
124
- lg: "(min-width: 1200px)";
125
- print: "print";
126
- }> & {
127
- css?: import("@stitches/react/types/css-util").CSS<{
128
- lg: "(min-width: 1200px)";
129
- print: "print";
130
- }, {
131
- colors: {
132
- gray50: string;
133
- gray100: string;
134
- gray200: string;
135
- gray300: string;
136
- gray400: string;
137
- gray500: string;
138
- gray600: string;
139
- gray700: string;
140
- gray800: string;
141
- gray900: string;
142
- blue50: string;
143
- blue100: string;
144
- blue200: string;
145
- blue300: string;
146
- blue400: string;
147
- blue500: string;
148
- blue600: string;
149
- blue700: string;
150
- blue800: string;
151
- blue900: string;
152
- yellow50: string;
153
- yellow100: string;
154
- yellow200: string;
155
- yellow300: string;
156
- yellow400: string;
157
- yellow500: string;
158
- yellow600: string;
159
- yellow700: string;
160
- yellow800: string;
161
- yellow900: string;
162
- orange500: string;
163
- red50: string;
164
- red100: string;
165
- red200: string;
166
- red300: string;
167
- red400: string;
168
- red500: string;
169
- red600: string;
170
- red700: string;
171
- red800: string;
172
- red900: string;
173
- green50: string;
174
- green100: string;
175
- green200: string;
176
- green300: string;
177
- green400: string;
178
- green500: string;
179
- green600: string;
180
- green700: string;
181
- green800: string;
182
- green900: string;
183
- primaryTextOnLightBg: string;
184
- primaryBg: string;
185
- primaryBgHover: string;
186
- primaryTextOnWhite: string;
187
- bodyGray: string;
188
- hoverDarker: string;
189
- borderDarker: string;
190
- selectedDarker: string;
191
- selectedOnBodyGray: string;
192
- darkGrayBg: string;
193
- border: string;
194
- text: string;
195
- secondaryText: string;
196
- focusRing: string;
197
- };
198
- fontSizes: {
199
- xs: string;
200
- sm: string;
201
- md: string;
202
- lg: string;
203
- xl: string;
204
- "2xl": string;
205
- "3xl": string;
206
- };
207
- fontWeights: {
208
- normal: string;
209
- medium: string;
210
- bold: string;
211
- };
212
- space: {
213
- 1: string;
214
- 2: string;
215
- 3: string;
216
- 4: string;
217
- 6: string;
218
- 8: string;
219
- };
220
- shadows: {
221
- xs: string;
222
- sm: string;
223
- md: string;
224
- lg: string;
225
- overlayCard: string;
226
- };
227
- radii: {
228
- xs: string;
229
- sm: string;
230
- md: string;
231
- mdmd: string;
232
- full: string;
233
- };
234
- zIndices: {
235
- toast: number;
236
- overlayCard: number;
237
- };
238
- }, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
239
- }, "css"> | undefined;
123
+ css?: ComponentProps<typeof DialogContent>["css"];
240
124
  }) => JSX.Element;
241
125
  export declare const DialogHeader: import("@stitches/react/types/styled-component").StyledComponent<"h2", {}, {
242
126
  lg: "(min-width: 1200px)";
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ReactSelect } from "./ReactSelect";
3
- export type ComboboxProps = {
4
- clearable?: boolean;
5
- multi?: boolean;
6
- } & Omit<React.ComponentProps<typeof ReactSelect>, "isMulti" | "isClearable" | "isSearchable">;
7
- export declare const Combobox: ({ clearable, multi, ...props }: ComboboxProps) => JSX.Element;
2
+ import type { GroupBase, Props } from "react-select";
3
+ export declare const Combobox: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<Props<Option, IsMulti, Group>, "isSearchable">) => JSX.Element;
package/dist/ui.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { P as l, y as p, z as i, B as t, R as m } from "./Checkbox-a342242a.js";
2
- import { H as D, Q as M, I as $, m as k, J as w, K as A, X as O, C as P, q as z, v as N, L as j, D as G, W as H, a as R, n as q, p as E, U as J, N as K, r as L, O as Q, S as U, M as V, t as W, k as X, T as F, l as Y, b as Z, d as _, c as oo, G as ao, E as so, A as eo, V as ro, s as to } from "./Checkbox-a342242a.js";
1
+ import { P as l, y as p, z as i, B as t, R as m } from "./Checkbox-8b8c360d.js";
2
+ import { H as D, Q as M, I as $, m as k, J as w, K as A, X as O, C as P, q as z, v as N, L as j, D as G, W as H, a as R, n as q, p as E, U as J, N as K, r as L, O as Q, S as U, M as V, t as W, k as X, T as F, l as Y, b as Z, d as _, c as oo, G as ao, E as so, A as eo, V as ro, s as to } from "./Checkbox-8b8c360d.js";
3
3
  import { jsxs as n, jsx as a } from "react/jsx-runtime";
4
4
  import { useState as c } from "react";
5
5
  import "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "0.4.20",
3
+ "version": "0.4.22",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {