@arkitektbedriftene/fe-lib 0.4.15 → 0.4.16
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 +3 -3
- package/dist/ui/components/Form/Select.d.ts +5 -5
- package/dist/ui.es.js +27 -31
- package/package.json +1 -1
package/dist/rich-text.es.js
CHANGED
|
@@ -1040,11 +1040,11 @@ const bn = () => {
|
|
|
1040
1040
|
/* @__PURE__ */ n(I, { onClick: a("add-row-over"), children: "Legg til rad over" }),
|
|
1041
1041
|
/* @__PURE__ */ n(I, { onClick: a("add-row-under"), children: "Legg til rad under" }),
|
|
1042
1042
|
/* @__PURE__ */ n(ut, {}),
|
|
1043
|
-
/* @__PURE__ */ n(I, { onClick: a("add-column-left"), children: "Legg til
|
|
1044
|
-
/* @__PURE__ */ n(I, { onClick: a("add-column-right"), children: "Legg til
|
|
1043
|
+
/* @__PURE__ */ n(I, { onClick: a("add-column-left"), children: "Legg til kolonne venstre" }),
|
|
1044
|
+
/* @__PURE__ */ n(I, { onClick: a("add-column-right"), children: "Legg til kolonne høyre" }),
|
|
1045
1045
|
/* @__PURE__ */ n(ut, {}),
|
|
1046
1046
|
/* @__PURE__ */ n(I, { onClick: a("delete-row"), children: "Fjern rad" }),
|
|
1047
|
-
/* @__PURE__ */ n(I, { onClick: a("delete-column"), children: "Fjern
|
|
1047
|
+
/* @__PURE__ */ n(I, { onClick: a("delete-column"), children: "Fjern kolonne" })
|
|
1048
1048
|
]
|
|
1049
1049
|
}
|
|
1050
1050
|
) : null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ReactSelect } from "./ReactSelect";
|
|
3
2
|
import type { CSS } from "../../stitches.config";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import type { GroupBase, Props } from "react-select";
|
|
4
|
+
type SelectProps = {
|
|
6
5
|
label?: string;
|
|
7
6
|
css?: CSS;
|
|
8
|
-
}
|
|
9
|
-
export declare const Select: ({
|
|
7
|
+
};
|
|
8
|
+
export declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ label, css, ...props }: SelectProps & Omit<Props<Option, IsMulti, Group>, "isMulti" | "isSearchable">) => JSX.Element;
|
|
9
|
+
export {};
|
package/dist/ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as l, y as p, z as i, B as
|
|
2
|
-
import { H as y, Q as M, I as k, m as w, J as A, K as O, X as P, C as $, 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
|
|
3
|
-
import { jsxs as
|
|
1
|
+
import { P as l, y as p, z as i, B as r, R as m } from "./Checkbox-38e85f9b.js";
|
|
2
|
+
import { H as y, Q as M, I as k, m as w, J as A, K as O, X as P, C as $, 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-38e85f9b.js";
|
|
3
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
4
4
|
import { useState as c } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "@radix-ui/react-toolbar";
|
|
@@ -9,33 +9,37 @@ import "@radix-ui/react-dialog";
|
|
|
9
9
|
import "@radix-ui/react-dropdown-menu";
|
|
10
10
|
import "react-select";
|
|
11
11
|
import "@radix-ui/react-checkbox";
|
|
12
|
-
const I = ({ children:
|
|
13
|
-
const [
|
|
14
|
-
return /* @__PURE__ */
|
|
12
|
+
const I = ({ children: o, content: s }) => {
|
|
13
|
+
const [e, n] = c(!1);
|
|
14
|
+
return /* @__PURE__ */ t(
|
|
15
15
|
l,
|
|
16
16
|
{
|
|
17
|
-
open:
|
|
18
|
-
onOpenChange:
|
|
17
|
+
open: e,
|
|
18
|
+
onOpenChange: n,
|
|
19
19
|
trigger: "hover",
|
|
20
20
|
placement: "top",
|
|
21
21
|
offset: { mainAxis: 8 },
|
|
22
22
|
role: "tooltip",
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ a(p, { children: o }),
|
|
25
|
+
/* @__PURE__ */ a(i, { overlayCardProps: {
|
|
26
26
|
css: {
|
|
27
27
|
background: "rgba(0,0,0, 0.9)",
|
|
28
28
|
color: "#fff",
|
|
29
29
|
fontSize: "$sm",
|
|
30
30
|
padding: "$1 $2"
|
|
31
31
|
}
|
|
32
|
-
}, children:
|
|
32
|
+
}, children: s })
|
|
33
33
|
]
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
}, h = ({
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
}, h = ({
|
|
37
|
+
label: o,
|
|
38
|
+
css: s,
|
|
39
|
+
...e
|
|
40
|
+
}) => /* @__PURE__ */ t(r, { css: s, children: [
|
|
41
|
+
o && /* @__PURE__ */ a(
|
|
42
|
+
r,
|
|
39
43
|
{
|
|
40
44
|
as: "label",
|
|
41
45
|
css: {
|
|
@@ -43,24 +47,16 @@ const I = ({ children: e, content: a }) => {
|
|
|
43
47
|
marginBottom: "$2",
|
|
44
48
|
fontSize: "$md"
|
|
45
49
|
},
|
|
46
|
-
children:
|
|
50
|
+
children: o
|
|
47
51
|
}
|
|
48
52
|
),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
m,
|
|
51
|
-
{
|
|
52
|
-
...r,
|
|
53
|
-
isClearable: e,
|
|
54
|
-
isSearchable: !1,
|
|
55
|
-
isMulti: !1
|
|
56
|
-
}
|
|
57
|
-
)
|
|
53
|
+
/* @__PURE__ */ a(m, { ...e, isSearchable: !1, isMulti: !1 })
|
|
58
54
|
] });
|
|
59
55
|
export {
|
|
60
56
|
y as Alert,
|
|
61
57
|
M as Avatar,
|
|
62
58
|
k as Badge,
|
|
63
|
-
|
|
59
|
+
r as Box,
|
|
64
60
|
w as Button,
|
|
65
61
|
A as ButtonInToolbar,
|
|
66
62
|
O as Card,
|
|
@@ -91,10 +87,10 @@ export {
|
|
|
91
87
|
Z as ToolbarToggleGroup,
|
|
92
88
|
_ as ToolbarToggleItem,
|
|
93
89
|
I as Tooltip,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
oo as css,
|
|
91
|
+
ao as getCssText,
|
|
92
|
+
so as globalCss,
|
|
93
|
+
eo as keyframes,
|
|
94
|
+
ro as menuItemStyles,
|
|
95
|
+
to as styled
|
|
100
96
|
};
|