@arkitektbedriftene/fe-lib 0.4.7 → 0.4.9
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/{TextInput-f8076813.js → TextInput-c4d1672c.js} +1460 -1278
- package/dist/icons.es.js +1 -1
- package/dist/{index.esm-969855d2.js → index.esm-b848a615.js} +26 -22
- package/dist/oidc/firmAccess.d.ts +3 -0
- package/dist/oidc.es.js +75 -63
- package/dist/rich-text/Plugins/LinkEditPlugin.d.ts +2 -0
- package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +3 -1
- package/dist/rich-text/Plugins/RutineLinkNode.d.ts +25 -0
- package/dist/rich-text/rich-text.d.ts +2 -0
- package/dist/rich-text.es.js +689 -506
- package/dist/ui/components/Button.d.ts +1 -1
- package/dist/ui/components/NavBar.d.ts +1 -1
- package/dist/ui/components/Toolbar.d.ts +1 -1
- package/dist/ui.es.js +54 -138
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const ButtonStyled: import("@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
3
3
|
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
4
|
-
size?: "md" | "lg" | undefined;
|
|
4
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
5
5
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
6
6
|
icon?: boolean | "true" | undefined;
|
|
7
7
|
}, {
|
|
@@ -123,7 +123,7 @@ export declare const NavBarItem: ({ children, active, ...props }: {
|
|
|
123
123
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
124
124
|
}, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
125
125
|
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
126
|
-
size?: "md" | "lg" | undefined;
|
|
126
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
127
127
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
128
128
|
icon?: boolean | "true" | undefined;
|
|
129
129
|
}, {
|
|
@@ -349,7 +349,7 @@ export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<
|
|
|
349
349
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
350
350
|
}, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
351
351
|
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
352
|
-
size?: "md" | "lg" | undefined;
|
|
352
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
353
353
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
354
354
|
icon?: boolean | "true" | undefined;
|
|
355
355
|
}, {
|
package/dist/ui.es.js
CHANGED
|
@@ -1,165 +1,81 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import {
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as
|
|
5
|
-
import m from "react-select";
|
|
1
|
+
import { P as t, y as n, z as l, R as p } from "./TextInput-c4d1672c.js";
|
|
2
|
+
import { H as D, I as B, B as M, m as y, J as h, K as w, C as O, q as P, v as k, L as A, D as N, U as $, a as j, n as z, p as G, M as H, N as R, r as q, O as E, S as J, t as K, k as L, T as Q, l as U, b as F, d as V, c as W, G as X, E as Y, A as Z, Q as _, s as oo } from "./TextInput-c4d1672c.js";
|
|
3
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
4
|
+
import { useState as m } from "react";
|
|
6
5
|
import "react-dom";
|
|
7
6
|
import "@radix-ui/react-toolbar";
|
|
8
|
-
import "./index.esm-
|
|
7
|
+
import "./index.esm-b848a615.js";
|
|
9
8
|
import "@radix-ui/react-dropdown-menu";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import "react-select";
|
|
10
|
+
const v = ({ children: o, content: a }) => {
|
|
11
|
+
const [s, r] = m(!1);
|
|
12
|
+
return /* @__PURE__ */ i(
|
|
13
|
+
t,
|
|
14
14
|
{
|
|
15
|
-
open:
|
|
16
|
-
onOpenChange:
|
|
15
|
+
open: s,
|
|
16
|
+
onOpenChange: r,
|
|
17
17
|
trigger: "hover",
|
|
18
18
|
placement: "top",
|
|
19
19
|
offset: { mainAxis: 8 },
|
|
20
20
|
role: "tooltip",
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */ e(
|
|
23
|
-
/* @__PURE__ */ e(
|
|
22
|
+
/* @__PURE__ */ e(n, { children: o }),
|
|
23
|
+
/* @__PURE__ */ e(l, { overlayCardProps: {
|
|
24
24
|
css: {
|
|
25
25
|
background: "rgba(0,0,0, 0.9)",
|
|
26
26
|
color: "#fff",
|
|
27
27
|
fontSize: "$sm",
|
|
28
28
|
padding: "$1 $2"
|
|
29
29
|
}
|
|
30
|
-
}, children:
|
|
30
|
+
}, children: a })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
...o,
|
|
37
|
-
minWidth: "200px"
|
|
38
|
-
}),
|
|
39
|
-
control: (o, { isFocused: r }) => ({
|
|
40
|
-
...o,
|
|
41
|
-
"&:hover": {},
|
|
42
|
-
border: r ? "1px solid var(--colors-blue300)" : "1px solid var(--colors-gray300)",
|
|
43
|
-
outline: "none",
|
|
44
|
-
borderRadius: "var(--radii-sm)",
|
|
45
|
-
boxShadow: r ? "0 0 0 4px var(--colors-blue100)" : "none"
|
|
46
|
-
}),
|
|
47
|
-
menu: (o) => ({
|
|
48
|
-
...o,
|
|
49
|
-
boxShadow: "var(--shadows-overlayCard)",
|
|
50
|
-
borderRadius: "var(--radii-md)",
|
|
51
|
-
border: "none",
|
|
52
|
-
padding: "var(--space-1)"
|
|
53
|
-
}),
|
|
54
|
-
option: (o, { isFocused: r, isSelected: a }) => ({
|
|
55
|
-
...o,
|
|
56
|
-
background: r ? "var(--colors-gray100)" : a ? "var(--colors-blue100)" : "transparent",
|
|
57
|
-
"&:active": {
|
|
58
|
-
background: "var(--colors-gray200)"
|
|
59
|
-
},
|
|
60
|
-
borderRadius: "var(--radii-sm)",
|
|
61
|
-
color: "var(--colors-text)"
|
|
62
|
-
}),
|
|
63
|
-
menuList: (o) => ({
|
|
64
|
-
...o,
|
|
65
|
-
padding: 0
|
|
66
|
-
}),
|
|
67
|
-
multiValueRemove: (o) => ({
|
|
68
|
-
...o,
|
|
69
|
-
background: "transparent",
|
|
70
|
-
color: "var(--colors-text)",
|
|
71
|
-
"&:hover": {
|
|
72
|
-
background: "var(--colors-red200)",
|
|
73
|
-
color: "var(--colors-red800)"
|
|
74
|
-
}
|
|
75
|
-
}),
|
|
76
|
-
clearIndicator: (o) => ({
|
|
77
|
-
...o,
|
|
78
|
-
paddingLeft: 0,
|
|
79
|
-
paddingRight: 0
|
|
80
|
-
}),
|
|
81
|
-
menuPortal: (o) => ({
|
|
82
|
-
...o,
|
|
83
|
-
zIndex: "var(--zIndices-overlayCard)"
|
|
84
|
-
})
|
|
85
|
-
}, v = {
|
|
86
|
-
IndicatorSeparator: () => null
|
|
87
|
-
}, n = ({
|
|
88
|
-
styles: o,
|
|
89
|
-
components: r,
|
|
90
|
-
...a
|
|
91
|
-
}) => {
|
|
92
|
-
const s = t(
|
|
93
|
-
() => ({
|
|
94
|
-
...g,
|
|
95
|
-
...o
|
|
96
|
-
}),
|
|
97
|
-
[o]
|
|
98
|
-
), l = t(
|
|
99
|
-
() => ({
|
|
100
|
-
...v,
|
|
101
|
-
...r
|
|
102
|
-
}),
|
|
103
|
-
[r]
|
|
104
|
-
);
|
|
105
|
-
return /* @__PURE__ */ e(m, { components: l, styles: s, ...a });
|
|
106
|
-
}, M = ({
|
|
107
|
-
clearable: o = !0,
|
|
108
|
-
multi: r = !1,
|
|
109
|
-
...a
|
|
110
|
-
}) => (o = r ? !1 : o, /* @__PURE__ */ e(
|
|
111
|
-
n,
|
|
34
|
+
}, x = ({ clearable: o, ...a }) => /* @__PURE__ */ e(
|
|
35
|
+
p,
|
|
112
36
|
{
|
|
113
37
|
...a,
|
|
114
38
|
isClearable: o,
|
|
115
|
-
isMulti: r,
|
|
116
|
-
isSearchable: !0
|
|
117
|
-
}
|
|
118
|
-
)), w = ({ clearable: o, ...r }) => /* @__PURE__ */ e(
|
|
119
|
-
n,
|
|
120
|
-
{
|
|
121
|
-
...r,
|
|
122
|
-
isClearable: o,
|
|
123
39
|
isSearchable: !1,
|
|
124
40
|
isMulti: !1
|
|
125
41
|
}
|
|
126
42
|
);
|
|
127
43
|
export {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
44
|
+
D as Alert,
|
|
45
|
+
B as Badge,
|
|
46
|
+
M as Box,
|
|
47
|
+
y as Button,
|
|
48
|
+
h as ButtonInToolbar,
|
|
49
|
+
w as Card,
|
|
50
|
+
O as Combobox,
|
|
51
|
+
P as Dialog,
|
|
52
|
+
k as DialogActions,
|
|
53
|
+
A as DialogHeader,
|
|
54
|
+
N as DropdownMenu,
|
|
55
|
+
$ as DropdownMenuCheckboxItem,
|
|
56
|
+
j as DropdownMenuIconItem,
|
|
57
|
+
z as DropdownMenuItem,
|
|
58
|
+
G as DropdownMenuSeparator,
|
|
59
|
+
H as MenuOverlayCard,
|
|
60
|
+
R as NavBar,
|
|
61
|
+
q as NavBarItem,
|
|
62
|
+
E as OverlayCard,
|
|
63
|
+
t as Popover,
|
|
64
|
+
l as PopoverContent,
|
|
65
|
+
n as PopoverTrigger,
|
|
66
|
+
x as Select,
|
|
67
|
+
J as Spinner,
|
|
68
|
+
K as TextInput,
|
|
69
|
+
L as Toolbar,
|
|
70
|
+
Q as ToolbarButton,
|
|
71
|
+
U as ToolbarSeparator,
|
|
72
|
+
F as ToolbarToggleGroup,
|
|
73
|
+
V as ToolbarToggleItem,
|
|
74
|
+
v as Tooltip,
|
|
75
|
+
W as css,
|
|
76
|
+
X as getCssText,
|
|
77
|
+
Y as globalCss,
|
|
78
|
+
Z as keyframes,
|
|
79
|
+
_ as menuItemStyles,
|
|
80
|
+
oo as styled
|
|
165
81
|
};
|