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