@arkitektbedriftene/fe-lib 2.5.1 → 2.5.3
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/rich-text.es.js +1 -1
- package/dist/ui/components/Dialog.d.ts +1 -1
- package/dist/ui.es.js +20 -20
- package/package.json +1 -1
package/dist/rich-text.es.js
CHANGED
|
@@ -239,7 +239,7 @@ export declare const Dialog: ({ children, open, onOpenChange, trigger, css, cont
|
|
|
239
239
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
240
240
|
}) | undefined;
|
|
241
241
|
}) => JSX.Element;
|
|
242
|
-
export declare const DialogHeader: import("@stitches/react/types/styled-component").StyledComponent<"
|
|
242
|
+
export declare const DialogHeader: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RDialog.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, {}, {
|
|
243
243
|
lg: "(min-width: 1200px)";
|
|
244
244
|
print: "print";
|
|
245
245
|
}, import("@stitches/react/types/css-util").CSS<{
|
package/dist/ui.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { k as
|
|
1
|
+
import { k as h, s as n, c as f } from "./stitches.config-00c23cdb.js";
|
|
2
2
|
import { a as Ae, g as We } from "./stitches.config-00c23cdb.js";
|
|
3
3
|
import { jsx as t, jsxs as c, Fragment as K } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef as g, createContext as U, useMemo as k, useContext as B, isValidElement as q, cloneElement as J, useState as Q, useId as w } from "react";
|
|
5
5
|
import { useFloating as Z, autoUpdate as _, offset as oo, flip as eo, shift as ro, useTransitionStyles as to, useClick as no, useHover as ao, safePolygon as io, useDismiss as so, useRole as lo, useInteractions as co, FloatingPortal as $o } from "@floating-ui/react";
|
|
6
6
|
import * as y from "@radix-ui/react-toolbar";
|
|
7
7
|
import { k as mo, l as go, m as H, n as uo, o as po } from "./index.esm-787a7997.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as p from "@radix-ui/react-dialog";
|
|
9
9
|
import * as m from "@radix-ui/react-dropdown-menu";
|
|
10
10
|
import ho from "react-select";
|
|
11
11
|
import * as F from "@radix-ui/react-checkbox";
|
|
12
12
|
import * as M from "@radix-ui/react-switch";
|
|
13
13
|
import "@stitches/react";
|
|
14
|
-
const bo =
|
|
14
|
+
const bo = h({
|
|
15
15
|
"0%": {
|
|
16
16
|
transform: "rotate(0)"
|
|
17
17
|
},
|
|
18
18
|
"100%": {
|
|
19
19
|
transform: "rotate(360deg)"
|
|
20
20
|
}
|
|
21
|
-
}), fo =
|
|
21
|
+
}), fo = h({
|
|
22
22
|
"0%": {
|
|
23
23
|
strokeDashoffset: 600
|
|
24
24
|
},
|
|
@@ -322,16 +322,16 @@ const bo = p({
|
|
|
322
322
|
children: o
|
|
323
323
|
}
|
|
324
324
|
)
|
|
325
|
-
), So =
|
|
325
|
+
), So = h({
|
|
326
326
|
"0%": { opacity: 0, transform: "translateY(0.5rem)" },
|
|
327
327
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
328
|
-
}), zo =
|
|
328
|
+
}), zo = h({
|
|
329
329
|
"0%": { opacity: 0, transform: "translateX(-0.5rem)" },
|
|
330
330
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
331
|
-
}), Io =
|
|
331
|
+
}), Io = h({
|
|
332
332
|
"0%": { opacity: 0, transform: "translateY(-0.5rem)" },
|
|
333
333
|
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
334
|
-
}), Ro =
|
|
334
|
+
}), Ro = h({
|
|
335
335
|
"0%": { opacity: 0, transform: "translateX(0.5rem)" },
|
|
336
336
|
"100%": { opacity: 1, transform: "translateX(0)" }
|
|
337
337
|
}), To = f({
|
|
@@ -370,13 +370,13 @@ const bo = p({
|
|
|
370
370
|
placement: l = "bottom",
|
|
371
371
|
role: $ = "dialog"
|
|
372
372
|
}) => {
|
|
373
|
-
const { refs: u, floatingStyles: x, context:
|
|
373
|
+
const { refs: u, floatingStyles: x, context: b } = Z({
|
|
374
374
|
open: r,
|
|
375
375
|
onOpenChange: a,
|
|
376
376
|
placement: l,
|
|
377
377
|
whileElementsMounted: _,
|
|
378
378
|
middleware: [oo(e), eo(), ro()]
|
|
379
|
-
}), { isMounted: z, styles: I } = to(
|
|
379
|
+
}), { isMounted: z, styles: I } = to(b, {
|
|
380
380
|
initial: ({ side: G }) => ({
|
|
381
381
|
opacity: 0,
|
|
382
382
|
transform: {
|
|
@@ -386,11 +386,11 @@ const bo = p({
|
|
|
386
386
|
left: "translateX(-0.5rem)"
|
|
387
387
|
}[G]
|
|
388
388
|
})
|
|
389
|
-
}), j = no(
|
|
389
|
+
}), j = no(b, { enabled: i === "click" }), L = ao(b, {
|
|
390
390
|
enabled: i === "hover",
|
|
391
391
|
delay: s,
|
|
392
392
|
handleClose: io()
|
|
393
|
-
}), N = so(
|
|
393
|
+
}), N = so(b), Y = lo(b, { role: $ }), { getFloatingProps: R, getReferenceProps: T } = co([
|
|
394
394
|
j,
|
|
395
395
|
L,
|
|
396
396
|
N,
|
|
@@ -624,12 +624,12 @@ const bo = p({
|
|
|
624
624
|
...r,
|
|
625
625
|
children: o
|
|
626
626
|
}
|
|
627
|
-
), Po = n(
|
|
627
|
+
), Po = n(p.Overlay, {
|
|
628
628
|
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
629
629
|
position: "fixed",
|
|
630
630
|
zIndex: "$overlayCard",
|
|
631
631
|
inset: 0
|
|
632
|
-
}), Ao = n(
|
|
632
|
+
}), Ao = n(p.Content, {
|
|
633
633
|
backgroundColor: "white",
|
|
634
634
|
borderRadius: "$md",
|
|
635
635
|
position: "fixed",
|
|
@@ -650,13 +650,13 @@ const bo = p({
|
|
|
650
650
|
trigger: a,
|
|
651
651
|
css: i,
|
|
652
652
|
contentProps: s
|
|
653
|
-
}) => /* @__PURE__ */ c(
|
|
654
|
-
a && /* @__PURE__ */ t(
|
|
655
|
-
/* @__PURE__ */ c(
|
|
653
|
+
}) => /* @__PURE__ */ c(p.Root, { open: e, onOpenChange: r, children: [
|
|
654
|
+
a && /* @__PURE__ */ t(p.Trigger, { asChild: !0, children: a }),
|
|
655
|
+
/* @__PURE__ */ c(p.Portal, { children: [
|
|
656
656
|
/* @__PURE__ */ t(Po, {}),
|
|
657
|
-
/* @__PURE__ */ t(Ao, { css: i, ...s, children: o })
|
|
657
|
+
/* @__PURE__ */ t(Ao, { css: i, "aria-describedby": void 0, ...s, children: o })
|
|
658
658
|
] })
|
|
659
|
-
] }), xe = n(
|
|
659
|
+
] }), xe = n(p.Title, {
|
|
660
660
|
fontSize: "$xl",
|
|
661
661
|
fontWeight: "$medium",
|
|
662
662
|
marginBottom: "$6"
|
|
@@ -1262,7 +1262,7 @@ export {
|
|
|
1262
1262
|
f as css,
|
|
1263
1263
|
Ae as getCssText,
|
|
1264
1264
|
We as globalCss,
|
|
1265
|
-
|
|
1265
|
+
h as keyframes,
|
|
1266
1266
|
S as menuItemStyles,
|
|
1267
1267
|
n as styled
|
|
1268
1268
|
};
|