@arkitektbedriftene/fe-lib 0.3.14 → 0.3.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/DropdownMenu-8d580c1a.js +5645 -0
- package/dist/icons.es.js +28 -101
- package/dist/index.esm-ddc5d570.js +87 -0
- package/dist/rich-text.es.js +10 -9
- package/dist/ui/components/Menu/DropdownMenu.d.ts +363 -0
- package/dist/ui/components/Menu/Menu.d.ts +347 -0
- package/dist/ui/ui.d.ts +2 -0
- package/dist/ui.es.js +24 -16
- package/package.json +4 -2
- package/dist/Badge-5eab3787.js +0 -3238
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { P as t, a as n, b as p } from "./
|
|
2
|
-
import { A as v, e as
|
|
1
|
+
import { P as t, a as n, b as p } from "./DropdownMenu-8d580c1a.js";
|
|
2
|
+
import { A as v, e as C, B as M, d as h, D as j, j as y, i as D, h as S, f as b, M as w, O as I, S as O, c as P, g as k, k as B, m as A, s as $ } from "./DropdownMenu-8d580c1a.js";
|
|
3
3
|
import { j as o } from "./jsx-runtime-d0aa4c5b.js";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as m } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import "./index.esm-ddc5d570.js";
|
|
7
|
+
const u = ({ children: e, content: s }) => {
|
|
8
|
+
const [r, a] = m(!1);
|
|
8
9
|
return /* @__PURE__ */ o.jsxs(
|
|
9
10
|
t,
|
|
10
11
|
{
|
|
@@ -15,7 +16,7 @@ const c = ({ children: s, content: e }) => {
|
|
|
15
16
|
offset: { mainAxis: 8 },
|
|
16
17
|
role: "tooltip",
|
|
17
18
|
children: [
|
|
18
|
-
/* @__PURE__ */ o.jsx(n, { children:
|
|
19
|
+
/* @__PURE__ */ o.jsx(n, { children: e }),
|
|
19
20
|
/* @__PURE__ */ o.jsx(p, { overlayCardProps: {
|
|
20
21
|
css: {
|
|
21
22
|
background: "rgba(0,0,0, 0.9)",
|
|
@@ -23,24 +24,31 @@ const c = ({ children: s, content: e }) => {
|
|
|
23
24
|
fontSize: "$sm",
|
|
24
25
|
padding: "$1 $2"
|
|
25
26
|
}
|
|
26
|
-
}, children:
|
|
27
|
+
}, children: s })
|
|
27
28
|
]
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
33
|
v as Alert,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
C as Badge,
|
|
35
|
+
M as Box,
|
|
36
|
+
h as Button,
|
|
37
|
+
j as DropdownMenu,
|
|
38
|
+
y as DropdownMenuCheckboxItem,
|
|
39
|
+
D as DropdownMenuIconItem,
|
|
40
|
+
S as DropdownMenuItem,
|
|
41
|
+
b as DropdownMenuSeparator,
|
|
42
|
+
w as MenuOverlayCard,
|
|
43
|
+
I as OverlayCard,
|
|
37
44
|
t as Popover,
|
|
38
45
|
p as PopoverContent,
|
|
39
46
|
n as PopoverTrigger,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
O as Spinner,
|
|
48
|
+
u as Tooltip,
|
|
49
|
+
P as css,
|
|
50
|
+
k as globalCss,
|
|
44
51
|
B as keyframes,
|
|
45
|
-
|
|
52
|
+
A as menuItemStyles,
|
|
53
|
+
$ as styled
|
|
46
54
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkitektbedriftene/fe-lib",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"scripts": {
|
|
53
53
|
"dev": "vite",
|
|
54
54
|
"build": "tsc && vite build",
|
|
55
|
-
"docs": "cd ./src/docs && next"
|
|
55
|
+
"docs": "cd ./src/docs && next",
|
|
56
|
+
"test": "tsc"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"@floating-ui/react": "^0.26.0",
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"vite-plugin-dts": "^2.1.0"
|
|
83
84
|
},
|
|
84
85
|
"dependencies": {
|
|
86
|
+
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
85
87
|
"@stitches/react": "^1.2.8",
|
|
86
88
|
"oidc-client-ts": "^2.2.2",
|
|
87
89
|
"react-icons": "^4.8.0",
|