@arkitektbedriftene/fe-lib 0.4.2 → 0.4.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/{DropdownMenu-6b0364a0.js → DropdownMenu-3889bea2.js} +539 -484
- package/dist/rich-text.es.js +1 -1
- package/dist/ui/components/Modal.d.ts +236 -0
- package/dist/ui/ui.d.ts +1 -0
- package/dist/ui.es.js +24 -21
- package/package.json +1 -1
package/dist/rich-text.es.js
CHANGED
|
@@ -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 b, Fragment as O } from "react/jsx-runtime";
|
|
10
10
|
import { createContext as _t, useState as v, useRef as Z, useCallback as M, useContext as Rt, useEffect as B, 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 $, b as Ft, d as I, 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-
|
|
11
|
+
import { c as N, s as et, D as Ht, T as Dt, a as m, B as $, b as Ft, d as I, 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-3889bea2.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";
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare const Modal: ({ children, open, onOpenChange, ...props }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (bool: boolean) => void;
|
|
6
|
+
}) => import("react").ReactPortal | null;
|
|
7
|
+
export declare const ModalHeader: import("@stitches/react/types/styled-component").StyledComponent<"h2", {}, {
|
|
8
|
+
lg: "(min-width: 1200px)";
|
|
9
|
+
print: "print";
|
|
10
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
11
|
+
lg: "(min-width: 1200px)";
|
|
12
|
+
print: "print";
|
|
13
|
+
}, {
|
|
14
|
+
colors: {
|
|
15
|
+
gray50: string;
|
|
16
|
+
gray100: string;
|
|
17
|
+
gray200: string;
|
|
18
|
+
gray300: string;
|
|
19
|
+
gray400: string;
|
|
20
|
+
gray500: string;
|
|
21
|
+
gray600: string;
|
|
22
|
+
gray700: string;
|
|
23
|
+
gray800: string;
|
|
24
|
+
gray900: string;
|
|
25
|
+
blue50: string;
|
|
26
|
+
blue100: string;
|
|
27
|
+
blue200: string;
|
|
28
|
+
blue300: string;
|
|
29
|
+
blue400: string;
|
|
30
|
+
blue500: string;
|
|
31
|
+
blue600: string;
|
|
32
|
+
blue700: string;
|
|
33
|
+
blue800: string;
|
|
34
|
+
blue900: string;
|
|
35
|
+
yellow50: string;
|
|
36
|
+
yellow100: string;
|
|
37
|
+
yellow200: string;
|
|
38
|
+
yellow300: string;
|
|
39
|
+
yellow400: string;
|
|
40
|
+
yellow500: string;
|
|
41
|
+
yellow600: string;
|
|
42
|
+
yellow700: string;
|
|
43
|
+
yellow800: string;
|
|
44
|
+
yellow900: string;
|
|
45
|
+
orange500: string;
|
|
46
|
+
red50: string;
|
|
47
|
+
red100: string;
|
|
48
|
+
red200: string;
|
|
49
|
+
red300: string;
|
|
50
|
+
red400: string;
|
|
51
|
+
red500: string;
|
|
52
|
+
red600: string;
|
|
53
|
+
red700: string;
|
|
54
|
+
red800: string;
|
|
55
|
+
red900: string;
|
|
56
|
+
green50: string;
|
|
57
|
+
green100: string;
|
|
58
|
+
green200: string;
|
|
59
|
+
green300: string;
|
|
60
|
+
green400: string;
|
|
61
|
+
green500: string;
|
|
62
|
+
green600: string;
|
|
63
|
+
green700: string;
|
|
64
|
+
green800: string;
|
|
65
|
+
green900: string;
|
|
66
|
+
primaryTextOnLightBg: string;
|
|
67
|
+
primaryBg: string;
|
|
68
|
+
primaryBgHover: string;
|
|
69
|
+
primaryTextOnWhite: string;
|
|
70
|
+
bodyGray: string;
|
|
71
|
+
hoverDarker: string;
|
|
72
|
+
borderDarker: string;
|
|
73
|
+
selectedDarker: string;
|
|
74
|
+
selectedOnBodyGray: string;
|
|
75
|
+
darkGrayBg: string;
|
|
76
|
+
border: string;
|
|
77
|
+
text: string;
|
|
78
|
+
secondaryText: string;
|
|
79
|
+
focusRing: string;
|
|
80
|
+
};
|
|
81
|
+
fontSizes: {
|
|
82
|
+
xs: string;
|
|
83
|
+
sm: string;
|
|
84
|
+
md: string;
|
|
85
|
+
lg: string;
|
|
86
|
+
xl: string;
|
|
87
|
+
"2xl": string;
|
|
88
|
+
"3xl": string;
|
|
89
|
+
};
|
|
90
|
+
fontWeights: {
|
|
91
|
+
normal: string;
|
|
92
|
+
medium: string;
|
|
93
|
+
bold: string;
|
|
94
|
+
};
|
|
95
|
+
space: {
|
|
96
|
+
1: string;
|
|
97
|
+
2: string;
|
|
98
|
+
3: string;
|
|
99
|
+
4: string;
|
|
100
|
+
6: string;
|
|
101
|
+
8: string;
|
|
102
|
+
};
|
|
103
|
+
shadows: {
|
|
104
|
+
xs: string;
|
|
105
|
+
sm: string;
|
|
106
|
+
md: string;
|
|
107
|
+
lg: string;
|
|
108
|
+
overlayCard: string;
|
|
109
|
+
};
|
|
110
|
+
radii: {
|
|
111
|
+
xs: string;
|
|
112
|
+
sm: string;
|
|
113
|
+
md: string;
|
|
114
|
+
mdmd: string;
|
|
115
|
+
full: string;
|
|
116
|
+
};
|
|
117
|
+
zIndices: {
|
|
118
|
+
toast: number;
|
|
119
|
+
overlayCard: number;
|
|
120
|
+
};
|
|
121
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
122
|
+
export declare const ModalActions: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
123
|
+
lg: "(min-width: 1200px)";
|
|
124
|
+
print: "print";
|
|
125
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
126
|
+
lg: "(min-width: 1200px)";
|
|
127
|
+
print: "print";
|
|
128
|
+
}, {
|
|
129
|
+
colors: {
|
|
130
|
+
gray50: string;
|
|
131
|
+
gray100: string;
|
|
132
|
+
gray200: string;
|
|
133
|
+
gray300: string;
|
|
134
|
+
gray400: string;
|
|
135
|
+
gray500: string;
|
|
136
|
+
gray600: string;
|
|
137
|
+
gray700: string;
|
|
138
|
+
gray800: string;
|
|
139
|
+
gray900: string;
|
|
140
|
+
blue50: string;
|
|
141
|
+
blue100: string;
|
|
142
|
+
blue200: string;
|
|
143
|
+
blue300: string;
|
|
144
|
+
blue400: string;
|
|
145
|
+
blue500: string;
|
|
146
|
+
blue600: string;
|
|
147
|
+
blue700: string;
|
|
148
|
+
blue800: string;
|
|
149
|
+
blue900: string;
|
|
150
|
+
yellow50: string;
|
|
151
|
+
yellow100: string;
|
|
152
|
+
yellow200: string;
|
|
153
|
+
yellow300: string;
|
|
154
|
+
yellow400: string;
|
|
155
|
+
yellow500: string;
|
|
156
|
+
yellow600: string;
|
|
157
|
+
yellow700: string;
|
|
158
|
+
yellow800: string;
|
|
159
|
+
yellow900: string;
|
|
160
|
+
orange500: string;
|
|
161
|
+
red50: string;
|
|
162
|
+
red100: string;
|
|
163
|
+
red200: string;
|
|
164
|
+
red300: string;
|
|
165
|
+
red400: string;
|
|
166
|
+
red500: string;
|
|
167
|
+
red600: string;
|
|
168
|
+
red700: string;
|
|
169
|
+
red800: string;
|
|
170
|
+
red900: string;
|
|
171
|
+
green50: string;
|
|
172
|
+
green100: string;
|
|
173
|
+
green200: string;
|
|
174
|
+
green300: string;
|
|
175
|
+
green400: string;
|
|
176
|
+
green500: string;
|
|
177
|
+
green600: string;
|
|
178
|
+
green700: string;
|
|
179
|
+
green800: string;
|
|
180
|
+
green900: string;
|
|
181
|
+
primaryTextOnLightBg: string;
|
|
182
|
+
primaryBg: string;
|
|
183
|
+
primaryBgHover: string;
|
|
184
|
+
primaryTextOnWhite: string;
|
|
185
|
+
bodyGray: string;
|
|
186
|
+
hoverDarker: string;
|
|
187
|
+
borderDarker: string;
|
|
188
|
+
selectedDarker: string;
|
|
189
|
+
selectedOnBodyGray: string;
|
|
190
|
+
darkGrayBg: string;
|
|
191
|
+
border: string;
|
|
192
|
+
text: string;
|
|
193
|
+
secondaryText: string;
|
|
194
|
+
focusRing: string;
|
|
195
|
+
};
|
|
196
|
+
fontSizes: {
|
|
197
|
+
xs: string;
|
|
198
|
+
sm: string;
|
|
199
|
+
md: string;
|
|
200
|
+
lg: string;
|
|
201
|
+
xl: string;
|
|
202
|
+
"2xl": string;
|
|
203
|
+
"3xl": string;
|
|
204
|
+
};
|
|
205
|
+
fontWeights: {
|
|
206
|
+
normal: string;
|
|
207
|
+
medium: string;
|
|
208
|
+
bold: string;
|
|
209
|
+
};
|
|
210
|
+
space: {
|
|
211
|
+
1: string;
|
|
212
|
+
2: string;
|
|
213
|
+
3: string;
|
|
214
|
+
4: string;
|
|
215
|
+
6: string;
|
|
216
|
+
8: string;
|
|
217
|
+
};
|
|
218
|
+
shadows: {
|
|
219
|
+
xs: string;
|
|
220
|
+
sm: string;
|
|
221
|
+
md: string;
|
|
222
|
+
lg: string;
|
|
223
|
+
overlayCard: string;
|
|
224
|
+
};
|
|
225
|
+
radii: {
|
|
226
|
+
xs: string;
|
|
227
|
+
sm: string;
|
|
228
|
+
md: string;
|
|
229
|
+
mdmd: string;
|
|
230
|
+
full: string;
|
|
231
|
+
};
|
|
232
|
+
zIndices: {
|
|
233
|
+
toast: number;
|
|
234
|
+
overlayCard: number;
|
|
235
|
+
};
|
|
236
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
package/dist/ui/ui.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './components/Badge';
|
|
|
10
10
|
export * from './components/Toolbar';
|
|
11
11
|
export * from './components/Card';
|
|
12
12
|
export * from './components/NavBar';
|
|
13
|
+
export * from './components/Modal';
|
|
13
14
|
export * from './components/Menu/Menu';
|
|
14
15
|
export * from './components/Menu/DropdownMenu';
|
|
15
16
|
export * from './components/Form/Combobox';
|
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as n, m as l, n as d } from "./DropdownMenu-
|
|
2
|
-
import { A as k, v as B, B as D, t as P, w as R, C as O, D as z,
|
|
1
|
+
import { P as n, m as l, n as d } from "./DropdownMenu-3889bea2.js";
|
|
2
|
+
import { A as k, v as B, B as D, t as P, w as R, C as O, D as z, J as A, a as $, I as N, H as j, E as G, M as H, z as L, y as q, N as E, x as J, O as V, S as W, k as K, T as Q, l as U, b as X, d as Y, c as Z, r as _, q as F, p as oo, G as ro, s as ao } from "./DropdownMenu-3889bea2.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";
|
|
@@ -101,7 +101,7 @@ const y = ({ children: o, content: r }) => {
|
|
|
101
101
|
isMulti: r,
|
|
102
102
|
isSearchable: !0
|
|
103
103
|
}
|
|
104
|
-
)),
|
|
104
|
+
)), M = ({ clearable: o, ...r }) => /* @__PURE__ */ e(
|
|
105
105
|
s,
|
|
106
106
|
{
|
|
107
107
|
...r,
|
|
@@ -119,29 +119,32 @@ export {
|
|
|
119
119
|
O as Card,
|
|
120
120
|
I as Combobox,
|
|
121
121
|
z as DropdownMenu,
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
A as DropdownMenuCheckboxItem,
|
|
123
|
+
$ as DropdownMenuIconItem,
|
|
124
124
|
N as DropdownMenuItem,
|
|
125
125
|
j as DropdownMenuSeparator,
|
|
126
126
|
G as MenuOverlayCard,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
H as Modal,
|
|
128
|
+
L as ModalActions,
|
|
129
|
+
q as ModalHeader,
|
|
130
|
+
E as NavBar,
|
|
131
|
+
J as NavBarItem,
|
|
132
|
+
V as OverlayCard,
|
|
130
133
|
n as Popover,
|
|
131
134
|
d as PopoverContent,
|
|
132
135
|
l as PopoverTrigger,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
M as Select,
|
|
137
|
+
W as Spinner,
|
|
138
|
+
K as Toolbar,
|
|
139
|
+
Q as ToolbarButton,
|
|
140
|
+
U as ToolbarSeparator,
|
|
141
|
+
X as ToolbarToggleGroup,
|
|
142
|
+
Y as ToolbarToggleItem,
|
|
140
143
|
y as Tooltip,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
Z as css,
|
|
145
|
+
_ as getCssText,
|
|
146
|
+
F as globalCss,
|
|
147
|
+
oo as keyframes,
|
|
148
|
+
ro as menuItemStyles,
|
|
149
|
+
ao as styled
|
|
147
150
|
};
|