@arkitektbedriftene/fe-lib 0.3.24 → 0.4.1

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.
@@ -378,7 +378,7 @@ var N = "colors", Y = "sizes", E = "space", Ln = { gap: E, gridGap: E, columnGap
378
378
  }))(t), t;
379
379
  };
380
380
  let It = 9999;
381
- const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: bi } = cr({
381
+ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: bi, getCssText: yi } = cr({
382
382
  theme: {
383
383
  colors: {
384
384
  gray50: "#F9FAFA",
@@ -792,7 +792,7 @@ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: bi
792
792
  color: "info",
793
793
  size: "md"
794
794
  }
795
- }), yi = Pe(
795
+ }), vi = Pe(
796
796
  ({ children: e, ...t }, n) => /* @__PURE__ */ z(
797
797
  br,
798
798
  {
@@ -1794,7 +1794,7 @@ function ao(e, t, n, r) {
1794
1794
  }), d == null || d(), (h = u) == null || h.disconnect(), u = null, a && cancelAnimationFrame(g);
1795
1795
  };
1796
1796
  }
1797
- const co = _r, uo = jr, vi = Yr, fo = (e, t, n) => {
1797
+ const co = _r, uo = jr, xi = Yr, fo = (e, t, n) => {
1798
1798
  const r = /* @__PURE__ */ new Map(), o = {
1799
1799
  platform: so,
1800
1800
  ...n
@@ -3155,7 +3155,7 @@ function li(e) {
3155
3155
  }
3156
3156
  const ai = H("div"), wt = Tn(
3157
3157
  {}
3158
- ), xi = ({
3158
+ ), wi = ({
3159
3159
  children: e,
3160
3160
  offset: t,
3161
3161
  open: n,
@@ -3209,13 +3209,13 @@ const ai = H("div"), wt = Tn(
3209
3209
  ]
3210
3210
  );
3211
3211
  return /* @__PURE__ */ z(wt.Provider, { value: P, children: e });
3212
- }, wi = ({ children: e }) => {
3212
+ }, $i = ({ children: e }) => {
3213
3213
  const { getReferenceProps: t, refs: n } = Qt(wt);
3214
3214
  return /* @__PURE__ */ z(Cn, { children: Pn(e) && An(e, {
3215
3215
  ref: n.setReference,
3216
3216
  ...t()
3217
3217
  }) });
3218
- }, $i = ({ children: e, overlayCardProps: t }) => {
3218
+ }, Si = ({ children: e, overlayCardProps: t }) => {
3219
3219
  const {
3220
3220
  getFloatingProps: n,
3221
3221
  isMounted: r,
@@ -3235,7 +3235,7 @@ const ai = H("div"), wt = Tn(
3235
3235
  children: /* @__PURE__ */ z(nn, { ...t, style: s, children: e })
3236
3236
  }
3237
3237
  ) }) : null;
3238
- }, Si = H("span", {
3238
+ }, Ri = H("span", {
3239
3239
  flex: "0 0 auto",
3240
3240
  display: "inline-flex",
3241
3241
  padding: "$1 $2",
@@ -3272,17 +3272,17 @@ const ai = H("div"), wt = Tn(
3272
3272
  defaultVariants: {
3273
3273
  color: "primary"
3274
3274
  }
3275
- }), Ri = H(Le.Root, {
3275
+ }), Ei = H(Le.Root, {
3276
3276
  backgroundColor: "$gray50",
3277
3277
  display: "flex",
3278
3278
  alignItems: "center",
3279
3279
  padding: "$1",
3280
3280
  gap: "$1"
3281
- }), Ei = H(Le.ToggleGroup, {
3281
+ }), Ci = H(Le.ToggleGroup, {
3282
3282
  display: "flex",
3283
3283
  gap: "$1",
3284
3284
  alignItems: "center"
3285
- }), Ci = H(Le.Separator, {
3285
+ }), ki = H(Le.Separator, {
3286
3286
  width: "1px",
3287
3287
  height: "1.5rem",
3288
3288
  my: "$1",
@@ -3303,7 +3303,7 @@ const ai = H("div"), wt = Tn(
3303
3303
  },
3304
3304
  ...t
3305
3305
  }
3306
- )), ki = Pe(
3306
+ )), Ti = Pe(
3307
3307
  ({ children: e, dropdown: t, ...n }, r) => /* @__PURE__ */ z(
3308
3308
  Le.Button,
3309
3309
  {
@@ -3323,7 +3323,7 @@ const ai = H("div"), wt = Tn(
3323
3323
  )
3324
3324
  }
3325
3325
  )
3326
- ), Ti = Pe(({
3326
+ ), Ii = Pe(({
3327
3327
  children: e,
3328
3328
  value: t,
3329
3329
  ...n
@@ -3344,7 +3344,7 @@ const ai = H("div"), wt = Tn(
3344
3344
  }
3345
3345
  )
3346
3346
  }
3347
- )), Ii = H("div", {
3347
+ )), Pi = H("div", {
3348
3348
  color: "$$cardText",
3349
3349
  backgroundColor: "$$cardBackground",
3350
3350
  borderRadius: "$md",
@@ -3377,7 +3377,7 @@ const ai = H("div"), wt = Tn(
3377
3377
  display: "flex",
3378
3378
  alignItems: "center",
3379
3379
  gap: "$1"
3380
- }), Pi = (e) => /* @__PURE__ */ z(ci, { ...e }), Ai = ({
3380
+ }), Ai = (e) => /* @__PURE__ */ z(ci, { ...e }), Bi = ({
3381
3381
  children: e,
3382
3382
  active: t = !1,
3383
3383
  ...n
@@ -3421,7 +3421,7 @@ const ai = H("div"), wt = Tn(
3421
3421
  backgroundColor: "transparent"
3422
3422
  }
3423
3423
  }
3424
- }), Bi = ({
3424
+ }), Oi = ({
3425
3425
  side: e = "bottom",
3426
3426
  align: t = "center",
3427
3427
  trigger: n,
@@ -3450,16 +3450,16 @@ const ai = H("div"), wt = Tn(
3450
3450
  display: "flex",
3451
3451
  justifyContent: "center",
3452
3452
  alignItems: "center"
3453
- }), Oi = H(ee.Separator, {
3453
+ }), Di = H(ee.Separator, {
3454
3454
  height: 1,
3455
3455
  backgroundColor: "$gray200",
3456
3456
  margin: 1
3457
- }), Di = H(ee.Item, $t), Mi = H(ee.Item, $t, {
3457
+ }), Mi = H(ee.Item, $t), Li = H(ee.Item, $t, {
3458
3458
  padding: "$2",
3459
3459
  display: "flex",
3460
3460
  alignItems: "center",
3461
3461
  gap: "$2"
3462
- }), fi = H(ee.CheckboxItem, $t), Li = ({
3462
+ }), fi = H(ee.CheckboxItem, $t), Fi = ({
3463
3463
  value: e,
3464
3464
  onChange: t,
3465
3465
  children: n
@@ -3475,42 +3475,43 @@ const ai = H("div"), wt = Tn(
3475
3475
  }
3476
3476
  );
3477
3477
  export {
3478
- yi as A,
3478
+ vi as A,
3479
3479
  ai as B,
3480
- Ii as C,
3481
- Bi as D,
3482
- Li as E,
3480
+ Pi as C,
3481
+ Oi as D,
3482
+ Mi as E,
3483
3483
  Xo as F,
3484
+ Fi as G,
3484
3485
  ui as M,
3485
- Pi as N,
3486
+ Ai as N,
3486
3487
  nn as O,
3487
- xi as P,
3488
+ wi as P,
3488
3489
  pr as S,
3489
- ki as T,
3490
- Mi as a,
3491
- Ei as b,
3490
+ Ti as T,
3491
+ Li as a,
3492
+ Ci as b,
3492
3493
  mt as c,
3493
- Ti as d,
3494
+ Ii as d,
3494
3495
  ao as e,
3495
- vi as f,
3496
+ xi as f,
3496
3497
  uo as g,
3497
3498
  co as h,
3498
3499
  ei as i,
3499
3500
  ni as j,
3500
- Ri as k,
3501
- Ci as l,
3502
- wi as m,
3503
- $i as n,
3501
+ Ei as k,
3502
+ ki as l,
3503
+ $i as m,
3504
+ Si as n,
3504
3505
  Vr as o,
3505
3506
  Be as p,
3506
3507
  bi as q,
3507
- tn as r,
3508
+ yi as r,
3508
3509
  H as s,
3509
- Si as t,
3510
+ tn as t,
3510
3511
  Qo as u,
3511
- En as v,
3512
- Ai as w,
3513
- $t as x,
3514
- Oi as y,
3512
+ Ri as v,
3513
+ En as w,
3514
+ Bi as x,
3515
+ $t as y,
3515
3516
  Di as z
3516
3517
  };
@@ -8,7 +8,7 @@ import { HeadingNode as Nt, QuoteNode as St, $isHeadingNode as Et, $createHeadin
8
8
  import { TableNode as It, TableRowNode as Ot, TableCellNode as $t } from "@lexical/table";
9
9
  import { jsx as o, jsxs as C, Fragment as j } from "react/jsx-runtime";
10
10
  import { createContext as _t, useState as v, useRef as Z, useCallback as M, useContext as Rt, useEffect as _, useMemo as tt, useLayoutEffect as Bt } from "react";
11
- import { c as N, s as et, D as Ht, T as Dt, a as m, B as I, b as Ft, d as w, u as Pt, e as Wt, f as At, g as jt, o as Kt, h as Ut, i as Yt, j as qt, F as Gt, O as Qt, k as Vt, l as Xt, S as Jt } from "./DropdownMenu-c37aea6d.js";
11
+ import { c as N, s as et, D as Ht, T as Dt, a as m, B as I, b as Ft, d as w, u as Pt, e as Wt, f as At, g as jt, o as Kt, h as Ut, i as Yt, j as qt, F as Gt, O as Qt, k as Vt, l as Xt, S as Jt } from "./DropdownMenu-6b0364a0.js";
12
12
  import "react-select";
13
13
  import { LexicalComposer as Zt } from "@lexical/react/LexicalComposer.js";
14
14
  import { RichTextPlugin as te } from "@lexical/react/LexicalRichTextPlugin.js";
@@ -710,4 +710,4 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
710
710
  toast: number;
711
711
  overlayCard: number;
712
712
  };
713
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>; })[]) => () => string;
713
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>; })[]) => () => string, getCssText: () => string;
package/dist/ui.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { P as n, m as l, n as d } from "./DropdownMenu-c37aea6d.js";
2
- import { A as k, t as B, B as D, r as P, v as R, C as O, D as z, E as $, a as A, z as N, y as j, M as L, N as q, w as E, O as G, S as V, k as W, T as H, l as J, b as K, d as Q, c as U, q as X, p as Y, x as Z, s as _ } from "./DropdownMenu-c37aea6d.js";
1
+ import { P as n, m as l, n as d } from "./DropdownMenu-6b0364a0.js";
2
+ import { A as k, v as B, B as D, t as P, w as R, C as O, D as z, G as $, a as A, E as N, z as j, M as G, N as L, x as q, O as E, S as V, k as W, T as H, l as J, b as K, d as Q, c as U, r as X, q as Y, p as Z, y as _, s as F } from "./DropdownMenu-6b0364a0.js";
3
3
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
4
4
  import { useState as c } from "react";
5
5
  import p from "react-select";
@@ -123,10 +123,10 @@ export {
123
123
  A as DropdownMenuIconItem,
124
124
  N as DropdownMenuItem,
125
125
  j as DropdownMenuSeparator,
126
- L as MenuOverlayCard,
127
- q as NavBar,
128
- E as NavBarItem,
129
- G as OverlayCard,
126
+ G as MenuOverlayCard,
127
+ L as NavBar,
128
+ q as NavBarItem,
129
+ E as OverlayCard,
130
130
  n as Popover,
131
131
  d as PopoverContent,
132
132
  l as PopoverTrigger,
@@ -139,8 +139,9 @@ export {
139
139
  Q as ToolbarToggleItem,
140
140
  y as Tooltip,
141
141
  U as css,
142
- X as globalCss,
143
- Y as keyframes,
144
- Z as menuItemStyles,
145
- _ as styled
142
+ X as getCssText,
143
+ Y as globalCss,
144
+ Z as keyframes,
145
+ _ as menuItemStyles,
146
+ F as styled
146
147
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "0.3.24",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -54,18 +54,8 @@
54
54
  "test": "tsc"
55
55
  },
56
56
  "peerDependencies": {
57
- "@floating-ui/react": "^0.26.0",
58
- "@lexical/headless": "^0.12.0",
59
- "@lexical/html": "^0.12.0",
60
- "@lexical/link": "^0.12.0",
61
- "@lexical/list": "^0.12.0",
62
- "@lexical/react": "^0.12.0",
63
- "@lexical/rich-text": "^0.12.0",
64
- "@lexical/selection": "^0.12.0",
65
- "@lexical/table": "^0.12.0",
66
57
  "@types/react": "*",
67
58
  "@types/react-dom": "*",
68
- "lexical": "^0.12.0",
69
59
  "react": "^18.2.0",
70
60
  "react-dom": "^18.2.0"
71
61
  },
@@ -83,10 +73,20 @@
83
73
  "dependencies": {
84
74
  "@radix-ui/react-dropdown-menu": "^2.0.6",
85
75
  "@radix-ui/react-toolbar": "^1.0.4",
76
+ "@floating-ui/react": "^0.26.0",
86
77
  "@stitches/react": "^1.2.8",
87
78
  "oidc-client-ts": "^2.2.2",
88
79
  "react-icons": "^4.8.0",
89
80
  "react-select": "^5.8.0",
90
- "use-local-storage-state": "^18.2.1"
81
+ "use-local-storage-state": "^18.2.1",
82
+ "lexical": "~0.12.0",
83
+ "@lexical/headless": "~0.12.0",
84
+ "@lexical/html": "~0.12.0",
85
+ "@lexical/link": "~0.12.0",
86
+ "@lexical/list": "~0.12.0",
87
+ "@lexical/react": "~0.12.0",
88
+ "@lexical/rich-text": "~0.12.0",
89
+ "@lexical/selection": "~0.12.0",
90
+ "@lexical/table": "~0.12.0"
91
91
  }
92
92
  }