@bekk-basen/neutral-ui-do-not-use 0.0.0-pr.32.caaa8d2 → 0.0.0-pr.33.6bbfa84
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/README.md +8 -2
- package/dist/components/avatar/avatar.d.ts +9 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/form/combobox/combobox.d.ts +29 -0
- package/dist/components/form/combobox/combobox.d.ts.map +1 -0
- package/dist/components/form/select/select.d.ts +20 -0
- package/dist/components/form/select/select.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +427 -207
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,7 +116,13 @@ Når du lanserer en komponent, husk å:
|
|
|
116
116
|
```ts
|
|
117
117
|
export { Button, buttonVariants } from "@/components/button/button"
|
|
118
118
|
```
|
|
119
|
-
3.
|
|
120
|
-
|
|
119
|
+
3. Inkluder pathen i `tsconfig.lib.json` under `include`. Eksempel:
|
|
120
|
+
```json
|
|
121
|
+
"include": [
|
|
122
|
+
"src/components/button"
|
|
123
|
+
]
|
|
124
|
+
```
|
|
125
|
+
4. Opprett en release på GitHub. Versjonen som publiseres til npm hentes fra git-taggen på releasen (f.eks. tag
|
|
126
|
+
5. `v0.8.0` gir npm-versjon `0.8.0`). Du trenger ikke å endre `version`-feltet i `package.json` – det står permanent på `0.0.0`.
|
|
121
127
|
|
|
122
128
|
Når releasen opprettes, bygger og publiserer GitHub Actions automatisk biblioteket til npm med dist-tag-en `latest`. Versjonering trenger ikke å følge semver strengt, men hver release-tag må være en gyldig npm-versjon som ikke er publisert fra før.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Avatar as BaseAvatar } from '@base-ui/react/avatar';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
type AvatarProps = {
|
|
4
|
+
src?: string;
|
|
5
|
+
alt: string;
|
|
6
|
+
} & Omit<ComponentProps<typeof BaseAvatar.Root>, "children">;
|
|
7
|
+
declare function Avatar({ src, alt, className, ...rootProps }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Avatar, type AvatarProps };
|
|
9
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAK3C,KAAK,WAAW,GAAG;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAA;AAE5D,iBAAS,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,WAAW,2CAwBjE;AAED,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
|
|
2
|
+
import { FocusEventHandler, Ref } from 'react';
|
|
3
|
+
declare const comboboxInputVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
4
|
+
declare const comboboxItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
5
|
+
type ComboboxOption = {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
type ComboboxProps = Omit<ComboboxPrimitive.Root.Props<string, false>, "children" | "items"> & {
|
|
10
|
+
/** The selectable options. Keep the array referentially stable. */
|
|
11
|
+
items: readonly ComboboxOption[];
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Whether a selected value can be cleared with the clear button. */
|
|
14
|
+
clearable?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* A ref to the input. Give this to form libraries (e.g. `field.ref` from
|
|
18
|
+
* React Hook Form) so focusing the control works.
|
|
19
|
+
*/
|
|
20
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
21
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
22
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
23
|
+
"aria-label"?: string;
|
|
24
|
+
"aria-labelledby"?: string;
|
|
25
|
+
};
|
|
26
|
+
declare function Combobox({ items, placeholder, clearable, className, disabled, inputRef, onFocus, onBlur, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { Combobox, comboboxInputVariants, comboboxItemVariants };
|
|
28
|
+
export type { ComboboxProps, ComboboxOption };
|
|
29
|
+
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/form/combobox/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAGvE,OAAO,EAAW,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAA;AAKjE,QAAA,MAAM,qBAAqB,oFAAoB,CAAA;AAE/C,QAAA,MAAM,oBAAoB,oFAAmB,CAAA;AAE7C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,aAAa,GAAG,IAAI,CACvB,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,EAC3C,UAAU,GAAG,OAAO,CACrB,GAAG;IACF,mEAAmE;IACnE,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAC7C,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,iBAAS,QAAQ,CAAC,EAChB,KAAK,EACL,WAAW,EACX,SAAgB,EAChB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,KAAK,EACT,EAAE,aAAa,2CAsFf;AAED,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,CAAA;AAChE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
declare const selectTriggerVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
4
|
+
declare const selectItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
5
|
+
type SelectOption = {
|
|
6
|
+
value: string;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
type SelectProps = Omit<SelectPrimitive.Root.Props<string, false>, "children" | "items"> & {
|
|
10
|
+
/** The selectable options. Keep the array referentially stable. */
|
|
11
|
+
items: readonly SelectOption[];
|
|
12
|
+
placeholder?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
"aria-labelledby"?: string;
|
|
16
|
+
};
|
|
17
|
+
declare function Select({ items, placeholder, className, disabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Select, selectItemVariants, selectTriggerVariants };
|
|
19
|
+
export type { SelectProps, SelectOption };
|
|
20
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/form/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAGjE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,QAAA,MAAM,qBAAqB,oFAAsB,CAAA;AAEjD,QAAA,MAAM,kBAAkB,oFAAmB,CAAA;AAE3C,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,EACzC,UAAU,GAAG,OAAO,CACrB,GAAG;IACF,mEAAmE;IACnE,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,iBAAS,MAAM,CAAC,EACd,KAAK,EACL,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,KAAK,EACT,EAAE,WAAW,2CAmDb;AAED,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAA;AAC5D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,16 @@ export { CheckboxGroup } from './components/form/checkbox-group/checkbox-group';
|
|
|
6
6
|
export type { CheckboxGroupProps } from './components/form/checkbox-group/checkbox-group';
|
|
7
7
|
export { Textarea, textareaVariants } from './components/form/textarea/textarea';
|
|
8
8
|
export type { TextareaProps } from './components/form/textarea/textarea';
|
|
9
|
+
export { Combobox, comboboxInputVariants, comboboxItemVariants, } from './components/form/combobox/combobox';
|
|
10
|
+
export type { ComboboxProps, ComboboxOption, } from './components/form/combobox/combobox';
|
|
11
|
+
export { Select, selectTriggerVariants, selectItemVariants, } from './components/form/select/select';
|
|
12
|
+
export type { SelectProps, SelectOption } from './components/form/select/select';
|
|
9
13
|
export { Field, FieldLabel, FieldDescription, FieldError, } from './components/form/field/field';
|
|
10
14
|
export type { FieldProps, FieldLabelProps, FieldDescriptionProps, FieldErrorProps, } from './components/form/field/field';
|
|
11
15
|
export { Form } from './components/form/form/form';
|
|
12
16
|
export type { FormProps } from './components/form/form/form';
|
|
13
17
|
export { IconsToggle } from './components/form/icons-toggle/icons-toggle';
|
|
14
18
|
export type { IconsToggleProps } from './components/form/icons-toggle/icons-toggle';
|
|
19
|
+
export { Avatar } from './components/avatar/avatar';
|
|
20
|
+
export type { AvatarProps } from './components/avatar/avatar';
|
|
15
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,4BA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,MAAM,qCAAqC,CAAA;AAExE,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,qCAAqC,CAAA;AAC5C,YAAY,EACV,aAAa,EACb,cAAc,GACf,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EACL,MAAM,EACN,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,iCAAiC,CAAA;AACxC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,GACX,MAAM,+BAA+B,CAAA;AACtC,YAAY,EACV,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,eAAe,GAChB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AACzE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { Checkbox as
|
|
6
|
-
import { Field as
|
|
7
|
-
import { Check as
|
|
8
|
-
import { createContext as
|
|
9
|
-
import { CheckboxGroup as
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { Button as P } from "@base-ui/react/button";
|
|
3
|
+
import { cva as g } from "class-variance-authority";
|
|
4
|
+
import { clsx as l } from "clsx";
|
|
5
|
+
import { Checkbox as q } from "@base-ui/react/checkbox";
|
|
6
|
+
import { Field as x } from "@base-ui/react/field";
|
|
7
|
+
import { Check as W, X as D, ChevronDown as R, UserRound as H } from "lucide-react";
|
|
8
|
+
import { createContext as M, use as j, useMemo as L, useState as X } from "react";
|
|
9
|
+
import { CheckboxGroup as Z } from "@base-ui/react/checkbox-group";
|
|
10
|
+
import { Combobox as d } from "@base-ui/react/combobox";
|
|
11
|
+
import { Select as u } from "@base-ui/react/select";
|
|
12
|
+
import { Form as K } from "@base-ui/react/form";
|
|
13
|
+
import { Avatar as w } from "@base-ui/react/avatar";
|
|
14
|
+
const Q = "bnui-base-wpVVq", U = "bnui-primary-OKCHe", J = "bnui-secondary-dazFR", Y = "bnui-lg-WgiKr", _ = "bnui-sm-0Kb5B", oo = "bnui-iconOnly-LsvO8", eo = "bnui-content-q0g4H", no = "bnui-pending-xP-rH", to = "bnui-spinner-jLkEm", f = {
|
|
15
|
+
base: Q,
|
|
16
|
+
primary: U,
|
|
17
|
+
secondary: J,
|
|
18
|
+
lg: Y,
|
|
19
|
+
sm: _,
|
|
20
|
+
iconOnly: oo,
|
|
21
|
+
content: eo,
|
|
22
|
+
pending: no,
|
|
23
|
+
spinner: to
|
|
24
|
+
}, ro = g(f.base, {
|
|
22
25
|
variants: {
|
|
23
26
|
variant: {
|
|
24
|
-
primary:
|
|
25
|
-
secondary:
|
|
27
|
+
primary: f.primary,
|
|
28
|
+
secondary: f.secondary
|
|
26
29
|
},
|
|
27
30
|
size: {
|
|
28
|
-
lg:
|
|
29
|
-
sm:
|
|
31
|
+
lg: f.lg,
|
|
32
|
+
sm: f.sm
|
|
30
33
|
},
|
|
31
34
|
iconOnly: {
|
|
32
|
-
true:
|
|
35
|
+
true: f.iconOnly,
|
|
33
36
|
false: ""
|
|
34
37
|
}
|
|
35
38
|
},
|
|
@@ -39,45 +42,45 @@ const I = "bnui-base-wpVVq", j = "bnui-primary-OKCHe", K = "bnui-secondary-dazFR
|
|
|
39
42
|
iconOnly: !1
|
|
40
43
|
}
|
|
41
44
|
});
|
|
42
|
-
function
|
|
43
|
-
className:
|
|
44
|
-
variant:
|
|
45
|
-
size:
|
|
46
|
-
iconOnly:
|
|
47
|
-
isPending:
|
|
48
|
-
disabled:
|
|
45
|
+
function ge({
|
|
46
|
+
className: e,
|
|
47
|
+
variant: n,
|
|
48
|
+
size: i,
|
|
49
|
+
iconOnly: a,
|
|
50
|
+
isPending: t,
|
|
51
|
+
disabled: c,
|
|
49
52
|
children: p,
|
|
50
|
-
...
|
|
53
|
+
...y
|
|
51
54
|
}) {
|
|
52
55
|
return /* @__PURE__ */ o(
|
|
53
|
-
|
|
56
|
+
P,
|
|
54
57
|
{
|
|
55
58
|
"data-slot": "button",
|
|
56
|
-
disabled:
|
|
57
|
-
"aria-busy":
|
|
58
|
-
className:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
disabled: t || c,
|
|
60
|
+
"aria-busy": t,
|
|
61
|
+
className: l(
|
|
62
|
+
ro({ variant: n, size: i, iconOnly: a }),
|
|
63
|
+
t && f.pending,
|
|
64
|
+
e
|
|
62
65
|
),
|
|
63
|
-
...
|
|
64
|
-
children:
|
|
65
|
-
/* @__PURE__ */ o("span", { className:
|
|
66
|
-
/* @__PURE__ */ o("span", { className:
|
|
66
|
+
...y,
|
|
67
|
+
children: t ? /* @__PURE__ */ m(G, { children: [
|
|
68
|
+
/* @__PURE__ */ o("span", { className: f.content, children: p }),
|
|
69
|
+
/* @__PURE__ */ o("span", { className: f.spinner, "aria-hidden": "true" })
|
|
67
70
|
] }) : p
|
|
68
71
|
}
|
|
69
72
|
);
|
|
70
73
|
}
|
|
71
|
-
const
|
|
72
|
-
headline:
|
|
74
|
+
const z = M(!1), io = "bnui-headline-6c9bn", ao = "bnui-button-lekqm", co = "bnui-body-2BdnA", so = "bnui-description-6roeu", r = {
|
|
75
|
+
headline: io,
|
|
73
76
|
"headline-sm": "bnui-headline-sm-eesRr",
|
|
74
77
|
"headline-xs": "bnui-headline-xs-bBHXL",
|
|
75
|
-
button:
|
|
78
|
+
button: ao,
|
|
76
79
|
"body-bold": "bnui-body-bold-0cir6",
|
|
77
|
-
body:
|
|
80
|
+
body: co,
|
|
78
81
|
"body-sm-bold": "bnui-body-sm-bold-9SPZK",
|
|
79
82
|
"body-sm": "bnui-body-sm-MOXMI",
|
|
80
|
-
description:
|
|
83
|
+
description: so,
|
|
81
84
|
"color-default": "bnui-color-default-38dch",
|
|
82
85
|
"color-white": "bnui-color-white-d9q0c",
|
|
83
86
|
"color-background": "bnui-color-background-Flq4G",
|
|
@@ -89,31 +92,31 @@ const $ = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", Y = "bnui-b
|
|
|
89
92
|
"color-success": "bnui-color-success-ThRnA",
|
|
90
93
|
"color-info": "bnui-color-info-PtkS-",
|
|
91
94
|
"color-interactive": "bnui-color-interactive-b9cqS"
|
|
92
|
-
},
|
|
95
|
+
}, lo = g("", {
|
|
93
96
|
variants: {
|
|
94
97
|
variant: {
|
|
95
|
-
headline:
|
|
96
|
-
"headline-sm":
|
|
97
|
-
"headline-xs":
|
|
98
|
-
button:
|
|
99
|
-
"body-bold":
|
|
100
|
-
body:
|
|
101
|
-
"body-sm-bold":
|
|
102
|
-
"body-sm":
|
|
103
|
-
description:
|
|
98
|
+
headline: r.headline,
|
|
99
|
+
"headline-sm": r["headline-sm"],
|
|
100
|
+
"headline-xs": r["headline-xs"],
|
|
101
|
+
button: r.button,
|
|
102
|
+
"body-bold": r["body-bold"],
|
|
103
|
+
body: r.body,
|
|
104
|
+
"body-sm-bold": r["body-sm-bold"],
|
|
105
|
+
"body-sm": r["body-sm"],
|
|
106
|
+
description: r.description
|
|
104
107
|
},
|
|
105
108
|
color: {
|
|
106
|
-
default:
|
|
107
|
-
white:
|
|
108
|
-
background:
|
|
109
|
-
surface:
|
|
110
|
-
"divider-dark":
|
|
111
|
-
informative:
|
|
112
|
-
error:
|
|
113
|
-
warning:
|
|
114
|
-
success:
|
|
115
|
-
info:
|
|
116
|
-
interactive:
|
|
109
|
+
default: r["color-default"],
|
|
110
|
+
white: r["color-white"],
|
|
111
|
+
background: r["color-background"],
|
|
112
|
+
surface: r["color-surface"],
|
|
113
|
+
"divider-dark": r["color-divider-dark"],
|
|
114
|
+
informative: r["color-informative"],
|
|
115
|
+
error: r["color-error"],
|
|
116
|
+
warning: r["color-warning"],
|
|
117
|
+
success: r["color-success"],
|
|
118
|
+
info: r["color-info"],
|
|
119
|
+
interactive: r["color-interactive"],
|
|
117
120
|
inherit: ""
|
|
118
121
|
}
|
|
119
122
|
},
|
|
@@ -121,7 +124,7 @@ const $ = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", Y = "bnui-b
|
|
|
121
124
|
variant: "body",
|
|
122
125
|
color: "default"
|
|
123
126
|
}
|
|
124
|
-
}),
|
|
127
|
+
}), uo = {
|
|
125
128
|
headline: "h1",
|
|
126
129
|
"headline-sm": "h2",
|
|
127
130
|
"headline-xs": "h3",
|
|
@@ -132,234 +135,451 @@ const $ = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", Y = "bnui-b
|
|
|
132
135
|
description: "p",
|
|
133
136
|
button: "span"
|
|
134
137
|
};
|
|
135
|
-
function
|
|
136
|
-
variant:
|
|
137
|
-
color:
|
|
138
|
-
as:
|
|
139
|
-
className:
|
|
140
|
-
...
|
|
138
|
+
function S({
|
|
139
|
+
variant: e = "body",
|
|
140
|
+
color: n,
|
|
141
|
+
as: i,
|
|
142
|
+
className: a,
|
|
143
|
+
...t
|
|
141
144
|
}) {
|
|
142
|
-
const
|
|
145
|
+
const c = i ?? uo[e];
|
|
143
146
|
return /* @__PURE__ */ o(
|
|
144
|
-
|
|
147
|
+
c,
|
|
145
148
|
{
|
|
146
149
|
"data-slot": "text",
|
|
147
|
-
className:
|
|
148
|
-
...
|
|
150
|
+
className: l(lo({ variant: e, color: n, className: a })),
|
|
151
|
+
...t
|
|
149
152
|
}
|
|
150
153
|
);
|
|
151
154
|
}
|
|
152
|
-
const
|
|
153
|
-
checkbox:
|
|
154
|
-
label:
|
|
155
|
-
indicator:
|
|
156
|
-
check:
|
|
157
|
-
item:
|
|
155
|
+
const bo = "bnui-checkbox-mTFTt", mo = "bnui-label-JOyrO", po = "bnui-indicator-VOiAE", ho = "bnui-check-6pYVz", fo = "bnui-item-qNsgX", $ = {
|
|
156
|
+
checkbox: bo,
|
|
157
|
+
label: mo,
|
|
158
|
+
indicator: po,
|
|
159
|
+
check: ho,
|
|
160
|
+
item: fo
|
|
158
161
|
};
|
|
159
|
-
function
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
+
function ye({ className: e, label: n, ...i }) {
|
|
163
|
+
const a = j(z), t = /* @__PURE__ */ o(
|
|
164
|
+
q.Root,
|
|
162
165
|
{
|
|
163
166
|
"data-slot": "checkbox",
|
|
164
|
-
className:
|
|
165
|
-
...
|
|
167
|
+
className: l($.checkbox, e),
|
|
168
|
+
...i,
|
|
166
169
|
children: /* @__PURE__ */ o(
|
|
167
|
-
|
|
170
|
+
q.Indicator,
|
|
168
171
|
{
|
|
169
172
|
"data-slot": "checkbox-indicator",
|
|
170
|
-
className:
|
|
171
|
-
children: /* @__PURE__ */ o(
|
|
173
|
+
className: $.indicator,
|
|
174
|
+
children: /* @__PURE__ */ o(W, { className: $.check })
|
|
172
175
|
}
|
|
173
176
|
)
|
|
174
177
|
}
|
|
175
178
|
);
|
|
176
|
-
if (
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
/* @__PURE__ */ o(
|
|
179
|
+
if (n === void 0) return t;
|
|
180
|
+
const c = /* @__PURE__ */ m(G, { children: [
|
|
181
|
+
t,
|
|
182
|
+
/* @__PURE__ */ o(S, { variant: "body", as: "span", children: n })
|
|
180
183
|
] });
|
|
181
|
-
return
|
|
184
|
+
return a ? /* @__PURE__ */ o(x.Item, { className: $.item, children: /* @__PURE__ */ o(x.Label, { className: $.label, children: c }) }) : /* @__PURE__ */ o("label", { className: $.label, children: c });
|
|
182
185
|
}
|
|
183
|
-
const
|
|
184
|
-
group:
|
|
185
|
-
column:
|
|
186
|
-
row:
|
|
186
|
+
const go = "bnui-group-76ZZz", yo = "bnui-column-ev6Qg", vo = "bnui-row-K6-hO", T = {
|
|
187
|
+
group: go,
|
|
188
|
+
column: yo,
|
|
189
|
+
row: vo
|
|
187
190
|
};
|
|
188
|
-
function
|
|
189
|
-
className:
|
|
190
|
-
orientation:
|
|
191
|
-
...
|
|
191
|
+
function ve({
|
|
192
|
+
className: e,
|
|
193
|
+
orientation: n = "row",
|
|
194
|
+
...i
|
|
192
195
|
}) {
|
|
193
196
|
return /* @__PURE__ */ o(
|
|
194
|
-
|
|
197
|
+
Z,
|
|
195
198
|
{
|
|
196
199
|
"data-slot": "checkbox-group",
|
|
197
|
-
className:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
className: l(
|
|
201
|
+
T.group,
|
|
202
|
+
n === "column" ? T.column : T.row,
|
|
203
|
+
e
|
|
201
204
|
),
|
|
202
|
-
...
|
|
205
|
+
...i
|
|
203
206
|
}
|
|
204
207
|
);
|
|
205
208
|
}
|
|
206
|
-
const
|
|
207
|
-
textarea:
|
|
208
|
-
},
|
|
209
|
-
function
|
|
209
|
+
const ko = "bnui-textarea-6uYeG", xo = {
|
|
210
|
+
textarea: ko
|
|
211
|
+
}, No = g(xo.textarea);
|
|
212
|
+
function ke({ className: e, ...n }) {
|
|
210
213
|
return /* @__PURE__ */ o(
|
|
211
|
-
|
|
214
|
+
x.Control,
|
|
212
215
|
{
|
|
213
216
|
"data-slot": "textarea",
|
|
214
217
|
render: /* @__PURE__ */ o("textarea", {}),
|
|
215
|
-
className:
|
|
216
|
-
...
|
|
218
|
+
className: l(No(), e),
|
|
219
|
+
...n
|
|
217
220
|
}
|
|
218
221
|
);
|
|
219
222
|
}
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
const $o = "bnui-inputGroup-csN7g", Oo = "bnui-input-7-Mc5", Fo = "bnui-trigger-OmLpc", Co = "bnui-clear-7uf1z", Vo = "bnui-icon-krESh", Io = "bnui-positioner-Q2F1m", So = "bnui-popup-1NCxE", wo = "bnui-item-yAkmq", To = "bnui-empty-V8bpF", b = {
|
|
224
|
+
inputGroup: $o,
|
|
225
|
+
input: Oo,
|
|
226
|
+
trigger: Fo,
|
|
227
|
+
clear: Co,
|
|
228
|
+
icon: Vo,
|
|
229
|
+
positioner: Io,
|
|
230
|
+
popup: So,
|
|
231
|
+
item: wo,
|
|
232
|
+
empty: To
|
|
233
|
+
}, Ao = g(b.input), Eo = g(b.item);
|
|
234
|
+
function xe({
|
|
235
|
+
items: e,
|
|
236
|
+
placeholder: n,
|
|
237
|
+
clearable: i = !0,
|
|
238
|
+
className: a,
|
|
239
|
+
disabled: t,
|
|
240
|
+
inputRef: c,
|
|
241
|
+
onFocus: p,
|
|
242
|
+
onBlur: y,
|
|
243
|
+
"aria-label": v,
|
|
244
|
+
"aria-labelledby": N,
|
|
245
|
+
...F
|
|
246
|
+
}) {
|
|
247
|
+
const C = L(() => e.map((s) => s.value), [e]), V = L(() => {
|
|
248
|
+
const s = /* @__PURE__ */ new Map();
|
|
249
|
+
for (const h of e) s.set(h.value, h.label);
|
|
250
|
+
return s;
|
|
251
|
+
}, [e]), I = {
|
|
252
|
+
...v !== void 0 && { "aria-label": v },
|
|
253
|
+
...N !== void 0 && { "aria-labelledby": N }
|
|
254
|
+
};
|
|
255
|
+
return /* @__PURE__ */ m(
|
|
227
256
|
d.Root,
|
|
257
|
+
{
|
|
258
|
+
autoHighlight: !0,
|
|
259
|
+
items: C,
|
|
260
|
+
itemToStringLabel: (s) => V.get(s) ?? s,
|
|
261
|
+
...F,
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ m(d.InputGroup, { className: b.inputGroup, children: [
|
|
264
|
+
/* @__PURE__ */ o(
|
|
265
|
+
d.Input,
|
|
266
|
+
{
|
|
267
|
+
ref: c,
|
|
268
|
+
disabled: t,
|
|
269
|
+
onFocus: p,
|
|
270
|
+
onBlur: y,
|
|
271
|
+
placeholder: n,
|
|
272
|
+
...I,
|
|
273
|
+
className: l(Ao(), a)
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
i && /* @__PURE__ */ o(
|
|
277
|
+
d.Clear,
|
|
278
|
+
{
|
|
279
|
+
"aria-label": "Fjern valgt verdi",
|
|
280
|
+
disabled: t,
|
|
281
|
+
className: b.clear,
|
|
282
|
+
children: /* @__PURE__ */ o(D, { "aria-hidden": !0, className: b.icon, strokeWidth: 2 })
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ o(
|
|
286
|
+
d.Trigger,
|
|
287
|
+
{
|
|
288
|
+
"aria-label": "Vis alternativer",
|
|
289
|
+
disabled: t,
|
|
290
|
+
className: b.trigger,
|
|
291
|
+
children: /* @__PURE__ */ o(
|
|
292
|
+
d.Icon,
|
|
293
|
+
{
|
|
294
|
+
render: /* @__PURE__ */ o(
|
|
295
|
+
R,
|
|
296
|
+
{
|
|
297
|
+
"aria-hidden": !0,
|
|
298
|
+
className: b.icon,
|
|
299
|
+
strokeWidth: 2
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
}
|
|
305
|
+
)
|
|
306
|
+
] }),
|
|
307
|
+
/* @__PURE__ */ o(d.Portal, { children: /* @__PURE__ */ o(
|
|
308
|
+
d.Positioner,
|
|
309
|
+
{
|
|
310
|
+
side: "bottom",
|
|
311
|
+
sideOffset: -2,
|
|
312
|
+
className: b.positioner,
|
|
313
|
+
children: /* @__PURE__ */ m(d.Popup, { className: b.popup, children: [
|
|
314
|
+
/* @__PURE__ */ o(d.Empty, { className: b.empty, children: "Ingen treff" }),
|
|
315
|
+
/* @__PURE__ */ o(d.List, { children: (s) => /* @__PURE__ */ o(
|
|
316
|
+
d.Item,
|
|
317
|
+
{
|
|
318
|
+
value: s,
|
|
319
|
+
className: Eo(),
|
|
320
|
+
children: V.get(s)
|
|
321
|
+
},
|
|
322
|
+
s
|
|
323
|
+
) })
|
|
324
|
+
] })
|
|
325
|
+
}
|
|
326
|
+
) })
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
const Go = "bnui-trigger-38Xpm", qo = "bnui-iconWrap-fM6qo", Lo = "bnui-chevron-FhAbo", Po = "bnui-positioner-kU88Q", Ro = "bnui-popup-eNosq", zo = "bnui-list-rnBdZ", Bo = "bnui-item-czzad", k = {
|
|
332
|
+
trigger: Go,
|
|
333
|
+
iconWrap: qo,
|
|
334
|
+
chevron: Lo,
|
|
335
|
+
positioner: Po,
|
|
336
|
+
popup: Ro,
|
|
337
|
+
list: zo,
|
|
338
|
+
item: Bo
|
|
339
|
+
}, Wo = g(k.trigger), Do = g(k.item);
|
|
340
|
+
function Ne({
|
|
341
|
+
items: e,
|
|
342
|
+
placeholder: n,
|
|
343
|
+
className: i,
|
|
344
|
+
disabled: a,
|
|
345
|
+
"aria-label": t,
|
|
346
|
+
"aria-labelledby": c,
|
|
347
|
+
...p
|
|
348
|
+
}) {
|
|
349
|
+
const y = {
|
|
350
|
+
...t !== void 0 && { "aria-label": t },
|
|
351
|
+
...c !== void 0 && { "aria-labelledby": c }
|
|
352
|
+
};
|
|
353
|
+
return /* @__PURE__ */ m(u.Root, { disabled: a, items: e, ...p, children: [
|
|
354
|
+
/* @__PURE__ */ m(
|
|
355
|
+
u.Trigger,
|
|
356
|
+
{
|
|
357
|
+
"data-slot": "select-trigger",
|
|
358
|
+
disabled: a,
|
|
359
|
+
...y,
|
|
360
|
+
className: l(Wo(), i),
|
|
361
|
+
children: [
|
|
362
|
+
/* @__PURE__ */ o(u.Value, { placeholder: n }),
|
|
363
|
+
/* @__PURE__ */ o(
|
|
364
|
+
u.Icon,
|
|
365
|
+
{
|
|
366
|
+
render: /* @__PURE__ */ o("span", { className: k.iconWrap, children: /* @__PURE__ */ o(
|
|
367
|
+
R,
|
|
368
|
+
{
|
|
369
|
+
"aria-hidden": !0,
|
|
370
|
+
className: k.chevron,
|
|
371
|
+
strokeWidth: 2
|
|
372
|
+
}
|
|
373
|
+
) })
|
|
374
|
+
}
|
|
375
|
+
)
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
),
|
|
379
|
+
/* @__PURE__ */ o(u.Portal, { children: /* @__PURE__ */ o(
|
|
380
|
+
u.Positioner,
|
|
381
|
+
{
|
|
382
|
+
alignItemWithTrigger: !1,
|
|
383
|
+
side: "bottom",
|
|
384
|
+
sideOffset: -2,
|
|
385
|
+
className: k.positioner,
|
|
386
|
+
children: /* @__PURE__ */ o(u.Popup, { className: k.popup, children: /* @__PURE__ */ o(u.List, { className: k.list, children: e.map(({ value: v, label: N }) => /* @__PURE__ */ o(
|
|
387
|
+
u.Item,
|
|
388
|
+
{
|
|
389
|
+
value: v,
|
|
390
|
+
className: Do(),
|
|
391
|
+
children: /* @__PURE__ */ o(u.ItemText, { children: N })
|
|
392
|
+
},
|
|
393
|
+
v
|
|
394
|
+
)) }) })
|
|
395
|
+
}
|
|
396
|
+
) })
|
|
397
|
+
] });
|
|
398
|
+
}
|
|
399
|
+
const Ho = "bnui-container-GujCE", Mo = "bnui-error-9Pli1", jo = "bnui-errorDot-mVjXf", E = {
|
|
400
|
+
container: Ho,
|
|
401
|
+
error: Mo,
|
|
402
|
+
errorDot: jo
|
|
403
|
+
};
|
|
404
|
+
function $e({ className: e, ...n }) {
|
|
405
|
+
return /* @__PURE__ */ o(z, { value: !0, children: /* @__PURE__ */ o(
|
|
406
|
+
x.Root,
|
|
228
407
|
{
|
|
229
408
|
"data-slot": "field",
|
|
230
|
-
className:
|
|
231
|
-
...
|
|
409
|
+
className: l(E.container, e),
|
|
410
|
+
...n
|
|
232
411
|
}
|
|
233
412
|
) });
|
|
234
413
|
}
|
|
235
|
-
function
|
|
236
|
-
children:
|
|
237
|
-
nativeLabel:
|
|
238
|
-
...
|
|
414
|
+
function Oe({
|
|
415
|
+
children: e,
|
|
416
|
+
nativeLabel: n = !0,
|
|
417
|
+
...i
|
|
239
418
|
}) {
|
|
240
419
|
return /* @__PURE__ */ o(
|
|
241
|
-
|
|
420
|
+
x.Label,
|
|
242
421
|
{
|
|
243
422
|
"data-slot": "field-label",
|
|
244
|
-
nativeLabel:
|
|
245
|
-
render: /* @__PURE__ */ o(
|
|
246
|
-
...
|
|
423
|
+
nativeLabel: n,
|
|
424
|
+
render: /* @__PURE__ */ o(S, { variant: "body-sm", as: n ? "label" : "span", children: e }),
|
|
425
|
+
...i
|
|
247
426
|
}
|
|
248
427
|
);
|
|
249
428
|
}
|
|
250
|
-
function
|
|
429
|
+
function Fe({ children: e, ...n }) {
|
|
251
430
|
return /* @__PURE__ */ o(
|
|
252
|
-
|
|
431
|
+
x.Description,
|
|
253
432
|
{
|
|
254
433
|
"data-slot": "field-description",
|
|
255
|
-
render: /* @__PURE__ */ o(
|
|
256
|
-
...
|
|
434
|
+
render: /* @__PURE__ */ o(S, { variant: "description", color: "informative", children: e }),
|
|
435
|
+
...n
|
|
257
436
|
}
|
|
258
437
|
);
|
|
259
438
|
}
|
|
260
|
-
function
|
|
439
|
+
function Ce({ children: e, className: n, ...i }) {
|
|
261
440
|
return /* @__PURE__ */ o(
|
|
262
|
-
|
|
441
|
+
x.Error,
|
|
263
442
|
{
|
|
264
443
|
"data-slot": "field-error",
|
|
265
|
-
className:
|
|
266
|
-
render: ({ children:
|
|
267
|
-
/* @__PURE__ */ o("span", { "aria-hidden": !0, className:
|
|
268
|
-
/* @__PURE__ */ o(
|
|
444
|
+
className: l(E.error, n),
|
|
445
|
+
render: ({ children: a, ...t }) => /* @__PURE__ */ m("div", { ...t, children: [
|
|
446
|
+
/* @__PURE__ */ o("span", { "aria-hidden": !0, className: E.errorDot }),
|
|
447
|
+
/* @__PURE__ */ o(S, { variant: "description", as: "div", children: e ?? a })
|
|
269
448
|
] }),
|
|
270
|
-
...
|
|
449
|
+
...i
|
|
271
450
|
}
|
|
272
451
|
);
|
|
273
452
|
}
|
|
274
|
-
const
|
|
275
|
-
form:
|
|
453
|
+
const Xo = "bnui-form-9QnXK", Zo = {
|
|
454
|
+
form: Xo
|
|
276
455
|
};
|
|
277
|
-
function
|
|
456
|
+
function Ve({ className: e, ...n }) {
|
|
278
457
|
return /* @__PURE__ */ o(
|
|
279
|
-
|
|
458
|
+
K,
|
|
280
459
|
{
|
|
281
460
|
"data-slot": "form",
|
|
282
|
-
className:
|
|
283
|
-
...
|
|
461
|
+
className: l(Zo.form, e),
|
|
462
|
+
...n
|
|
284
463
|
}
|
|
285
464
|
);
|
|
286
465
|
}
|
|
287
|
-
const
|
|
288
|
-
root:
|
|
289
|
-
hasSelectedSecondOption:
|
|
290
|
-
filled:
|
|
291
|
-
stroked:
|
|
292
|
-
option:
|
|
293
|
-
selectedOption:
|
|
466
|
+
const Ko = "bnui-root-oLVBN", Qo = "bnui-hasSelectedSecondOption-LfH49", Uo = "bnui-filled-L-AUH", Jo = "bnui-stroked-wRb92", Yo = "bnui-option-Hou7J", _o = "bnui-selectedOption-twuTF", O = {
|
|
467
|
+
root: Ko,
|
|
468
|
+
hasSelectedSecondOption: Qo,
|
|
469
|
+
filled: Uo,
|
|
470
|
+
stroked: Jo,
|
|
471
|
+
option: Yo,
|
|
472
|
+
selectedOption: _o
|
|
294
473
|
};
|
|
295
|
-
function
|
|
296
|
-
options:
|
|
297
|
-
title:
|
|
298
|
-
variant:
|
|
299
|
-
value:
|
|
300
|
-
defaultValue:
|
|
301
|
-
onValueChange:
|
|
474
|
+
function Ie({
|
|
475
|
+
options: e,
|
|
476
|
+
title: n,
|
|
477
|
+
variant: i = "filled",
|
|
478
|
+
value: a,
|
|
479
|
+
defaultValue: t,
|
|
480
|
+
onValueChange: c,
|
|
302
481
|
name: p,
|
|
303
|
-
className:
|
|
482
|
+
className: y
|
|
304
483
|
}) {
|
|
305
|
-
const [
|
|
306
|
-
|
|
307
|
-
),
|
|
308
|
-
function
|
|
309
|
-
const
|
|
310
|
-
|
|
484
|
+
const [v, N] = X(
|
|
485
|
+
t ?? e[0].value
|
|
486
|
+
), F = a ?? v, C = e[0].value === F ? 0 : 1, V = e[C], I = e[C === 0 ? 1 : 0];
|
|
487
|
+
function s() {
|
|
488
|
+
const h = I.value;
|
|
489
|
+
a === void 0 && N(h), c?.(h);
|
|
311
490
|
}
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
p && /* @__PURE__ */ o("input", { type: "hidden", name: p, value:
|
|
491
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
492
|
+
p && /* @__PURE__ */ o("input", { type: "hidden", name: p, value: F }),
|
|
314
493
|
/* @__PURE__ */ o(
|
|
315
|
-
|
|
494
|
+
P,
|
|
316
495
|
{
|
|
317
|
-
onClick:
|
|
318
|
-
"aria-label": `Bytt ${
|
|
319
|
-
className:
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
496
|
+
onClick: s,
|
|
497
|
+
"aria-label": `Bytt ${n} mellom ${V.label} og ${I.label}, valgt: ${V.label}`,
|
|
498
|
+
className: l(
|
|
499
|
+
oe({ variant: i }),
|
|
500
|
+
C === 1 && O.hasSelectedSecondOption,
|
|
501
|
+
y
|
|
323
502
|
),
|
|
324
|
-
children:
|
|
325
|
-
const
|
|
503
|
+
children: e.map((h) => {
|
|
504
|
+
const B = h.value === F;
|
|
326
505
|
return /* @__PURE__ */ o(
|
|
327
506
|
"span",
|
|
328
507
|
{
|
|
329
508
|
"aria-hidden": "true",
|
|
330
|
-
className:
|
|
331
|
-
children:
|
|
509
|
+
className: l(O.option, B && O.selectedOption),
|
|
510
|
+
children: h.icon
|
|
332
511
|
},
|
|
333
|
-
|
|
512
|
+
h.value
|
|
334
513
|
);
|
|
335
514
|
})
|
|
336
515
|
}
|
|
337
516
|
)
|
|
338
517
|
] });
|
|
339
518
|
}
|
|
340
|
-
const
|
|
519
|
+
const oe = g(O.root, {
|
|
341
520
|
variants: {
|
|
342
521
|
variant: {
|
|
343
|
-
filled:
|
|
344
|
-
stroked:
|
|
522
|
+
filled: O.filled,
|
|
523
|
+
stroked: O.stroked
|
|
345
524
|
}
|
|
346
525
|
},
|
|
347
526
|
defaultVariants: {
|
|
348
527
|
variant: "filled"
|
|
349
528
|
}
|
|
350
|
-
})
|
|
529
|
+
}), ee = "bnui-base-ZhllN", ne = "bnui-image-Ngo7A", te = "bnui-fallback-Tf3oZ", A = {
|
|
530
|
+
base: ee,
|
|
531
|
+
image: ne,
|
|
532
|
+
fallback: te
|
|
533
|
+
};
|
|
534
|
+
function Se({ src: e, alt: n, className: i, ...a }) {
|
|
535
|
+
return /* @__PURE__ */ m(
|
|
536
|
+
w.Root,
|
|
537
|
+
{
|
|
538
|
+
"data-slot": "avatar",
|
|
539
|
+
className: l(A.base, i),
|
|
540
|
+
...a,
|
|
541
|
+
children: [
|
|
542
|
+
e !== void 0 && /* @__PURE__ */ o(
|
|
543
|
+
w.Image,
|
|
544
|
+
{
|
|
545
|
+
"data-slot": "avatar-image",
|
|
546
|
+
src: e,
|
|
547
|
+
alt: n,
|
|
548
|
+
loading: "lazy",
|
|
549
|
+
className: A.image
|
|
550
|
+
}
|
|
551
|
+
),
|
|
552
|
+
/* @__PURE__ */ o(
|
|
553
|
+
w.Fallback,
|
|
554
|
+
{
|
|
555
|
+
"data-slot": "avatar-fallback",
|
|
556
|
+
className: A.fallback,
|
|
557
|
+
children: /* @__PURE__ */ o(H, {})
|
|
558
|
+
}
|
|
559
|
+
)
|
|
560
|
+
]
|
|
561
|
+
}
|
|
562
|
+
);
|
|
563
|
+
}
|
|
351
564
|
export {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
565
|
+
Se as Avatar,
|
|
566
|
+
ge as Button,
|
|
567
|
+
ye as Checkbox,
|
|
568
|
+
ve as CheckboxGroup,
|
|
569
|
+
xe as Combobox,
|
|
570
|
+
$e as Field,
|
|
571
|
+
Fe as FieldDescription,
|
|
572
|
+
Ce as FieldError,
|
|
573
|
+
Oe as FieldLabel,
|
|
574
|
+
Ve as Form,
|
|
575
|
+
Ie as IconsToggle,
|
|
576
|
+
Ne as Select,
|
|
577
|
+
ke as Textarea,
|
|
578
|
+
ro as buttonVariants,
|
|
579
|
+
Ao as comboboxInputVariants,
|
|
580
|
+
Eo as comboboxItemVariants,
|
|
581
|
+
Do as selectItemVariants,
|
|
582
|
+
Wo as selectTriggerVariants,
|
|
583
|
+
No as textareaVariants
|
|
364
584
|
};
|
|
365
585
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/components/button/button.tsx","../src/components/form/field/field-context.ts","../src/components/text/text.tsx","../src/components/form/checkbox/checkbox.tsx","../src/components/form/checkbox-group/checkbox-group.tsx","../src/components/form/textarea/textarea.tsx","../src/components/form/field/field.tsx","../src/components/form/form/form.tsx","../src/components/form/icons-toggle/icons-toggle.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./button.module.css\"\n\nconst buttonVariants = cva(styles.base, {\n variants: {\n variant: {\n primary: styles.primary,\n secondary: styles.secondary,\n },\n size: {\n lg: styles.lg,\n sm: styles.sm,\n },\n iconOnly: {\n true: styles.iconOnly,\n false: \"\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"sm\",\n iconOnly: false,\n },\n})\n\ntype ButtonProps = Omit<ButtonPrimitive.Props, \"disabled\"> &\n VariantProps<typeof buttonVariants> & {\n isPending?: boolean\n /** @deprecated Avoid disabled buttons — they hurt accessibility and discoverability. Prefer `isPending` for in-flight actions, or keep the button enabled and show validation/error feedback. */\n disabled?: ButtonPrimitive.Props[\"disabled\"]\n }\n\n/**\n * @param variant - `\"primary\"` (default) or `\"secondary\"`\n *\n * @param size - `\"sm\"` (default) or `\"lg\"`.\n *\n * @param iconOnly - `true` if button contains only an icon. Always provide an `aria-label` when using this.\n *\n * @param isPending - `true` to show a centered spinner and block interaction. The button width is unchanged.\n *\n * @param disabled - **Deprecated.** Avoid disabled buttons — prefer `isPending` for in-flight actions, or keep the button enabled and show validation feedback.\n *\n * @example\n * <Button variant=\"primary\" size=\"sm\">Click me</Button>\n *\n * @example\n * <Button iconOnly><Info /></Button>\n *\n * @example\n * <Button isPending>Saving…</Button>\n */\nfunction Button({\n className,\n variant,\n size,\n iconOnly,\n isPending,\n disabled,\n children,\n ...props\n}: ButtonProps) {\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n disabled={isPending || disabled}\n aria-busy={isPending}\n className={clsx(\n buttonVariants({ variant, size, iconOnly }),\n isPending && styles.pending,\n className\n )}\n {...props}\n >\n {isPending ? (\n <>\n <span className={styles.content}>{children}</span>\n <span className={styles.spinner} aria-hidden=\"true\" />\n </>\n ) : (\n children\n )}\n </ButtonPrimitive>\n )\n}\n\nexport { Button, buttonVariants }\nexport type { ButtonProps }\n","import { createContext } from \"react\"\n\n/**\n * True when rendered inside our `Field`. Base UI's `Field.Item` / `Field.Label`\n * throw without a `Field.Root` ancestor, so controls that want to use them must\n * check first and fall back to plain markup.\n */\nconst InsideFieldContext = createContext(false)\n\nexport { InsideFieldContext }\n","import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./text.module.css\"\n\nconst textVariants = cva(\"\", {\n variants: {\n variant: {\n headline: styles.headline,\n \"headline-sm\": styles[\"headline-sm\"],\n \"headline-xs\": styles[\"headline-xs\"],\n button: styles.button,\n \"body-bold\": styles[\"body-bold\"],\n body: styles.body,\n \"body-sm-bold\": styles[\"body-sm-bold\"],\n \"body-sm\": styles[\"body-sm\"],\n description: styles.description,\n },\n color: {\n default: styles[\"color-default\"],\n white: styles[\"color-white\"],\n background: styles[\"color-background\"],\n surface: styles[\"color-surface\"],\n \"divider-dark\": styles[\"color-divider-dark\"],\n informative: styles[\"color-informative\"],\n error: styles[\"color-error\"],\n warning: styles[\"color-warning\"],\n success: styles[\"color-success\"],\n info: styles[\"color-info\"],\n interactive: styles[\"color-interactive\"],\n inherit: \"\",\n },\n },\n defaultVariants: {\n variant: \"body\",\n color: \"default\",\n },\n})\n\nconst DEFAULT_ELEMENTS = {\n headline: \"h1\",\n \"headline-sm\": \"h2\",\n \"headline-xs\": \"h3\",\n body: \"p\",\n \"body-bold\": \"p\",\n \"body-sm\": \"p\",\n \"body-sm-bold\": \"p\",\n description: \"p\",\n button: \"span\",\n} as const\n\ntype TextVariant = NonNullable<VariantProps<typeof textVariants>[\"variant\"]>\ntype TextColor = NonNullable<VariantProps<typeof textVariants>[\"color\"]>\n\ntype TextOwnProps<E extends React.ElementType> = {\n variant?: TextVariant\n color?: TextColor\n as?: E\n className?: string\n children?: React.ReactNode\n}\n\ntype TextProps<E extends React.ElementType> = TextOwnProps<E> &\n Omit<React.ComponentPropsWithoutRef<E>, keyof TextOwnProps<E>>\n\nfunction Text<E extends React.ElementType = \"p\">({\n variant = \"body\",\n color,\n as,\n className,\n ...props\n}: TextProps<E>) {\n const Component = (as ?? DEFAULT_ELEMENTS[variant]) as React.ElementType\n return (\n <Component\n data-slot=\"text\"\n className={clsx(textVariants({ variant, color, className }))}\n {...props}\n />\n )\n}\n\nexport { Text, textVariants }\n","import { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\"\nimport { Field as FieldPrimitive } from \"@base-ui/react/field\"\nimport { Check } from \"lucide-react\"\nimport { use, type ReactNode } from \"react\"\n\nimport { InsideFieldContext } from \"@/components/form/field/field-context\"\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox.module.css\"\n\ntype CheckboxProps = Omit<\n CheckboxPrimitive.Root.Props,\n \"disabled\" | \"indeterminate\"\n> & {\n label?: ReactNode\n}\n\n/**\n * @param label - Label rendered next to the checkbox. Accepts any `ReactNode`.\n *\n * @example\n * <Checkbox label=\"Jeg godtar vilkår og betingelser\" />\n *\n * @example\n * <Checkbox\n * label={\n * <>\n * Jeg godtar <Link href=\"#\">vilkår og betingelser</Link>\n * </>\n * }\n * />\n */\nfunction Checkbox({ className, label, ...props }: CheckboxProps) {\n const insideField = use(InsideFieldContext)\n\n const box = (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={clsx(styles.checkbox, className)}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className={styles.indicator}\n >\n <Check className={styles.check} />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n\n if (label === undefined) return box\n\n const labelContent = (\n <>\n {box}\n <Text variant=\"body\" as=\"span\">\n {label}\n </Text>\n </>\n )\n\n if (!insideField) {\n return <label className={styles.label}>{labelContent}</label>\n }\n\n return (\n <FieldPrimitive.Item className={styles.item}>\n <FieldPrimitive.Label className={styles.label}>\n {labelContent}\n </FieldPrimitive.Label>\n </FieldPrimitive.Item>\n )\n}\n\nexport { Checkbox }\nexport type { CheckboxProps }\n","import { CheckboxGroup as CheckboxGroupPrimitive } from \"@base-ui/react/checkbox-group\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox-group.module.css\"\n\ntype CheckboxGroupProps = Omit<CheckboxGroupPrimitive.Props, \"disabled\"> & {\n orientation?: \"row\" | \"column\"\n}\n\nfunction CheckboxGroup({\n className,\n orientation = \"row\",\n ...props\n}: CheckboxGroupProps) {\n return (\n <CheckboxGroupPrimitive\n data-slot=\"checkbox-group\"\n className={clsx(\n styles.group,\n orientation === \"column\" ? styles.column : styles.row,\n className\n )}\n {...props}\n />\n )\n}\n\nexport { CheckboxGroup }\nexport type { CheckboxGroupProps }\n","import { Field } from \"@base-ui/react/field\"\nimport { cva } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./textarea.module.css\"\n\nconst textareaVariants = cva(styles.textarea)\n\ntype TextareaProps = Omit<Field.Control.Props, \"render\"> & {\n className?: string\n}\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <Field.Control\n data-slot=\"textarea\"\n render={<textarea />}\n className={clsx(textareaVariants(), className)}\n {...props}\n />\n )\n}\n\nexport { Textarea, textareaVariants }\nexport type { TextareaProps }\n","import { Field as FieldPrimitive } from \"@base-ui/react/field\"\n\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport { InsideFieldContext } from \"./field-context\"\nimport styles from \"./field.module.css\"\n\ntype FieldProps = FieldPrimitive.Root.Props\n\nfunction Field({ className, ...props }: FieldProps) {\n return (\n <InsideFieldContext value={true}>\n <FieldPrimitive.Root\n data-slot=\"field\"\n className={clsx(styles.container, className)}\n {...props}\n />\n </InsideFieldContext>\n )\n}\n\ntype FieldLabelProps = Omit<FieldPrimitive.Label.Props, \"render\">\n\nfunction FieldLabel({\n children,\n nativeLabel = true,\n ...props\n}: FieldLabelProps) {\n return (\n <FieldPrimitive.Label\n data-slot=\"field-label\"\n nativeLabel={nativeLabel}\n render={\n <Text variant=\"body-sm\" as={nativeLabel ? \"label\" : \"span\"}>\n {children}\n </Text>\n }\n {...props}\n />\n )\n}\n\ntype FieldDescriptionProps = Omit<FieldPrimitive.Description.Props, \"render\">\n\nfunction FieldDescription({ children, ...props }: FieldDescriptionProps) {\n return (\n <FieldPrimitive.Description\n data-slot=\"field-description\"\n render={\n <Text variant=\"description\" color=\"informative\">\n {children}\n </Text>\n }\n {...props}\n />\n )\n}\n\ntype FieldErrorProps = Omit<FieldPrimitive.Error.Props, \"render\">\n\nfunction FieldError({ children, className, ...props }: FieldErrorProps) {\n return (\n <FieldPrimitive.Error\n data-slot=\"field-error\"\n className={clsx(styles.error, className)}\n // `message` is the validation message Base UI resolved (the `validate`\n // result, or the native one). Own children win when provided.\n render={({ children: message, ...errorProps }) => (\n <div {...errorProps}>\n <span aria-hidden className={styles.errorDot} />\n <Text variant=\"description\" as=\"div\">\n {children ?? message}\n </Text>\n </div>\n )}\n {...props}\n />\n )\n}\n\nexport { Field, FieldLabel, FieldDescription, FieldError }\nexport type {\n FieldProps,\n FieldLabelProps,\n FieldDescriptionProps,\n FieldErrorProps,\n}\n","import { Form as FormPrimitive } from \"@base-ui/react/form\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./form.module.css\"\n\ntype FormProps = FormPrimitive.Props\n\nfunction Form({ className, ...props }: FormProps) {\n return (\n <FormPrimitive\n data-slot=\"form\"\n className={clsx(styles.form, className)}\n {...props}\n />\n )\n}\n\nexport { Form }\nexport type { FormProps }\n","import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { clsx } from \"clsx\"\nimport { type ReactNode, useState } from \"react\"\n\nimport styles from \"./icons-toggle.module.css\"\n\n/**\n * A pill-shaped toggle with two icon options. Clicking anywhere on the toggle\n * switches to the other option. Exactly one option is always active.\n *\n * @param options Pair of `{ value, icon, label }` objects.\n *\n * @param variant `\"filled\"` (default) — active item has a solid background.\n * `\"stroked\"` — outlined border style.\n *\n * @param name When set, renders a hidden `<input>` so the active value is\n * included in the nearest `<form>`'s submit data.\n *\n * @example — uncontrolled\n * <IconsToggle\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — uncontrolled in a form\n * <IconsToggle\n * name=\"view\"\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — controlled\n * const [view, setView] = useState<\"grid\" | \"list\">(\"grid\")\n * <IconsToggle\n * options={[...]}\n * value={view}\n * onValueChange={setView}\n * />\n */\nfunction IconsToggle<A extends string, B extends string>({\n options,\n title,\n variant = \"filled\",\n value: controlledValue,\n defaultValue,\n onValueChange,\n name,\n className,\n}: IconsToggleProps<A, B>) {\n const [internalValue, setInternalValue] = useState<A | B>(\n defaultValue ?? options[0].value\n )\n\n const activeValue = controlledValue ?? internalValue\n const activeIndex = options[0].value === activeValue ? 0 : 1\n const activeOption = options[activeIndex]\n const inactiveOption = options[activeIndex === 0 ? 1 : 0]\n\n function handleClick() {\n const nextValue = inactiveOption.value\n if (controlledValue === undefined) setInternalValue(nextValue)\n onValueChange?.(nextValue)\n }\n\n return (\n <>\n {name && <input type=\"hidden\" name={name} value={activeValue} />}\n <ButtonPrimitive\n onClick={handleClick}\n aria-label={`Bytt ${title} mellom ${activeOption.label} og ${inactiveOption.label}, valgt: ${activeOption.label}`}\n className={clsx(\n iconsToggleVariants({ variant }),\n activeIndex === 1 && styles.hasSelectedSecondOption,\n className\n )}\n >\n {options.map((option) => {\n const isActive = option.value === activeValue\n return (\n <span\n key={option.value}\n aria-hidden=\"true\"\n className={clsx(styles.option, isActive && styles.selectedOption)}\n >\n {option.icon}\n </span>\n )\n })}\n </ButtonPrimitive>\n </>\n )\n}\n\nexport { IconsToggle }\n\nconst iconsToggleVariants = cva(styles.root, {\n variants: {\n variant: {\n filled: styles.filled,\n stroked: styles.stroked,\n },\n },\n defaultVariants: {\n variant: \"filled\",\n },\n})\n\ninterface IconsToggleOption<Value extends string> {\n /** Unique identifier of this option */\n value: Value\n /** Icon displayed inside the toggle for this option. Can be any React node, but must be equal\n * in width to the other option's icon */\n icon: ReactNode\n /** Accessible label for this option */\n label: string\n}\n\ninterface IconsToggleBaseProps<\n A extends string,\n B extends string,\n> extends VariantProps<typeof iconsToggleVariants> {\n options: [IconsToggleOption<A>, IconsToggleOption<B>]\n title: string\n /** The identifier for the control in a form */\n name?: string\n className?: string\n}\n\ninterface IconsToggleControlledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value: A | B\n defaultValue?: never\n onValueChange: (value: A | B) => void\n}\n\ninterface IconsToggleUncontrolledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value?: never\n defaultValue?: A | B\n onValueChange?: (value: A | B) => void\n}\n\nexport type IconsToggleProps<A extends string, B extends string> =\n | IconsToggleControlledProps<A, B>\n | IconsToggleUncontrolledProps<A, B>\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","iconOnly","isPending","disabled","children","props","jsx","ButtonPrimitive","clsx","jsxs","Fragment","InsideFieldContext","createContext","textVariants","DEFAULT_ELEMENTS","Text","color","as","Component","Checkbox","label","insideField","use","box","CheckboxPrimitive","Check","labelContent","FieldPrimitive","CheckboxGroup","orientation","CheckboxGroupPrimitive","textareaVariants","Textarea","Field","FieldLabel","nativeLabel","FieldDescription","FieldError","message","errorProps","Form","FormPrimitive","IconsToggle","options","title","controlledValue","defaultValue","onValueChange","name","internalValue","setInternalValue","useState","activeValue","activeIndex","activeOption","inactiveOption","handleClick","nextValue","iconsToggleVariants","option","isActive"],"mappings":";;;;;;;;;;;;;;;;;;;;GAMMA,IAAiBC,EAAIC,EAAO,MAAM;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,IAAA;AAAA,IAEpB,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,UAAU;AAAA,MACR,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAEd,CAAC;AA6BD,SAASC,GAAO;AAAA,EACd,WAAAC;AAAA,EAC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ACgB,MAAW;AACvB,gBAAMC,IAAWD,EAAO,UAAUP;AAClC,iBACE,gBAAA9C;AAAA,YAAC;AAAA,YAAA;AAAA,cAEC,eAAY;AAAA,cACZ,WAAWE,EAAKZ,EAAO,QAAQgE,KAAYhE,EAAO,cAAc;AAAA,cAE/D,UAAA+D,EAAO;AAAA,YAAA;AAAA,YAJHA,EAAO;AAAA,UAAA;AAAA,QAOlB,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GACF;AAEJ;AAIA,MAAMD,KAAsB/D,EAAIC,EAAO,MAAM;AAAA,EAC3C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components/button/button.tsx","../src/components/form/field/field-context.ts","../src/components/text/text.tsx","../src/components/form/checkbox/checkbox.tsx","../src/components/form/checkbox-group/checkbox-group.tsx","../src/components/form/textarea/textarea.tsx","../src/components/form/combobox/combobox.tsx","../src/components/form/select/select.tsx","../src/components/form/field/field.tsx","../src/components/form/form/form.tsx","../src/components/form/icons-toggle/icons-toggle.tsx","../src/components/avatar/avatar.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./button.module.css\"\n\nconst buttonVariants = cva(styles.base, {\n variants: {\n variant: {\n primary: styles.primary,\n secondary: styles.secondary,\n },\n size: {\n lg: styles.lg,\n sm: styles.sm,\n },\n iconOnly: {\n true: styles.iconOnly,\n false: \"\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"sm\",\n iconOnly: false,\n },\n})\n\ntype ButtonProps = Omit<ButtonPrimitive.Props, \"disabled\"> &\n VariantProps<typeof buttonVariants> & {\n isPending?: boolean\n /** @deprecated Avoid disabled buttons — they hurt accessibility and discoverability. Prefer `isPending` for in-flight actions, or keep the button enabled and show validation/error feedback. */\n disabled?: ButtonPrimitive.Props[\"disabled\"]\n }\n\n/**\n * @param variant - `\"primary\"` (default) or `\"secondary\"`\n *\n * @param size - `\"sm\"` (default) or `\"lg\"`.\n *\n * @param iconOnly - `true` if button contains only an icon. Always provide an `aria-label` when using this.\n *\n * @param isPending - `true` to show a centered spinner and block interaction. The button width is unchanged.\n *\n * @param disabled - **Deprecated.** Avoid disabled buttons — prefer `isPending` for in-flight actions, or keep the button enabled and show validation feedback.\n *\n * @example\n * <Button variant=\"primary\" size=\"sm\">Click me</Button>\n *\n * @example\n * <Button iconOnly><Info /></Button>\n *\n * @example\n * <Button isPending>Saving…</Button>\n */\nfunction Button({\n className,\n variant,\n size,\n iconOnly,\n isPending,\n disabled,\n children,\n ...props\n}: ButtonProps) {\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n disabled={isPending || disabled}\n aria-busy={isPending}\n className={clsx(\n buttonVariants({ variant, size, iconOnly }),\n isPending && styles.pending,\n className\n )}\n {...props}\n >\n {isPending ? (\n <>\n <span className={styles.content}>{children}</span>\n <span className={styles.spinner} aria-hidden=\"true\" />\n </>\n ) : (\n children\n )}\n </ButtonPrimitive>\n )\n}\n\nexport { Button, buttonVariants }\nexport type { ButtonProps }\n","import { createContext } from \"react\"\n\n/**\n * True when rendered inside our `Field`. Base UI's `Field.Item` / `Field.Label`\n * throw without a `Field.Root` ancestor, so controls that want to use them must\n * check first and fall back to plain markup.\n */\nconst InsideFieldContext = createContext(false)\n\nexport { InsideFieldContext }\n","import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./text.module.css\"\n\nconst textVariants = cva(\"\", {\n variants: {\n variant: {\n headline: styles.headline,\n \"headline-sm\": styles[\"headline-sm\"],\n \"headline-xs\": styles[\"headline-xs\"],\n button: styles.button,\n \"body-bold\": styles[\"body-bold\"],\n body: styles.body,\n \"body-sm-bold\": styles[\"body-sm-bold\"],\n \"body-sm\": styles[\"body-sm\"],\n description: styles.description,\n },\n color: {\n default: styles[\"color-default\"],\n white: styles[\"color-white\"],\n background: styles[\"color-background\"],\n surface: styles[\"color-surface\"],\n \"divider-dark\": styles[\"color-divider-dark\"],\n informative: styles[\"color-informative\"],\n error: styles[\"color-error\"],\n warning: styles[\"color-warning\"],\n success: styles[\"color-success\"],\n info: styles[\"color-info\"],\n interactive: styles[\"color-interactive\"],\n inherit: \"\",\n },\n },\n defaultVariants: {\n variant: \"body\",\n color: \"default\",\n },\n})\n\nconst DEFAULT_ELEMENTS = {\n headline: \"h1\",\n \"headline-sm\": \"h2\",\n \"headline-xs\": \"h3\",\n body: \"p\",\n \"body-bold\": \"p\",\n \"body-sm\": \"p\",\n \"body-sm-bold\": \"p\",\n description: \"p\",\n button: \"span\",\n} as const\n\ntype TextVariant = NonNullable<VariantProps<typeof textVariants>[\"variant\"]>\ntype TextColor = NonNullable<VariantProps<typeof textVariants>[\"color\"]>\n\ntype TextOwnProps<E extends React.ElementType> = {\n variant?: TextVariant\n color?: TextColor\n as?: E\n className?: string\n children?: React.ReactNode\n}\n\ntype TextProps<E extends React.ElementType> = TextOwnProps<E> &\n Omit<React.ComponentPropsWithoutRef<E>, keyof TextOwnProps<E>>\n\nfunction Text<E extends React.ElementType = \"p\">({\n variant = \"body\",\n color,\n as,\n className,\n ...props\n}: TextProps<E>) {\n const Component = (as ?? DEFAULT_ELEMENTS[variant]) as React.ElementType\n return (\n <Component\n data-slot=\"text\"\n className={clsx(textVariants({ variant, color, className }))}\n {...props}\n />\n )\n}\n\nexport { Text, textVariants }\n","import { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\"\nimport { Field as FieldPrimitive } from \"@base-ui/react/field\"\nimport { Check } from \"lucide-react\"\nimport { use, type ReactNode } from \"react\"\n\nimport { InsideFieldContext } from \"@/components/form/field/field-context\"\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox.module.css\"\n\ntype CheckboxProps = Omit<\n CheckboxPrimitive.Root.Props,\n \"disabled\" | \"indeterminate\"\n> & {\n label?: ReactNode\n}\n\n/**\n * @param label - Label rendered next to the checkbox. Accepts any `ReactNode`.\n *\n * @example\n * <Checkbox label=\"Jeg godtar vilkår og betingelser\" />\n *\n * @example\n * <Checkbox\n * label={\n * <>\n * Jeg godtar <Link href=\"#\">vilkår og betingelser</Link>\n * </>\n * }\n * />\n */\nfunction Checkbox({ className, label, ...props }: CheckboxProps) {\n const insideField = use(InsideFieldContext)\n\n const box = (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={clsx(styles.checkbox, className)}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className={styles.indicator}\n >\n <Check className={styles.check} />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n\n if (label === undefined) return box\n\n const labelContent = (\n <>\n {box}\n <Text variant=\"body\" as=\"span\">\n {label}\n </Text>\n </>\n )\n\n if (!insideField) {\n return <label className={styles.label}>{labelContent}</label>\n }\n\n return (\n <FieldPrimitive.Item className={styles.item}>\n <FieldPrimitive.Label className={styles.label}>\n {labelContent}\n </FieldPrimitive.Label>\n </FieldPrimitive.Item>\n )\n}\n\nexport { Checkbox }\nexport type { CheckboxProps }\n","import { CheckboxGroup as CheckboxGroupPrimitive } from \"@base-ui/react/checkbox-group\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox-group.module.css\"\n\ntype CheckboxGroupProps = Omit<CheckboxGroupPrimitive.Props, \"disabled\"> & {\n orientation?: \"row\" | \"column\"\n}\n\nfunction CheckboxGroup({\n className,\n orientation = \"row\",\n ...props\n}: CheckboxGroupProps) {\n return (\n <CheckboxGroupPrimitive\n data-slot=\"checkbox-group\"\n className={clsx(\n styles.group,\n orientation === \"column\" ? styles.column : styles.row,\n className\n )}\n {...props}\n />\n )\n}\n\nexport { CheckboxGroup }\nexport type { CheckboxGroupProps }\n","import { Field } from \"@base-ui/react/field\"\nimport { cva } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./textarea.module.css\"\n\nconst textareaVariants = cva(styles.textarea)\n\ntype TextareaProps = Omit<Field.Control.Props, \"render\"> & {\n className?: string\n}\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <Field.Control\n data-slot=\"textarea\"\n render={<textarea />}\n className={clsx(textareaVariants(), className)}\n {...props}\n />\n )\n}\n\nexport { Textarea, textareaVariants }\nexport type { TextareaProps }\n","import { Combobox as ComboboxPrimitive } from \"@base-ui/react/combobox\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown, X } from \"lucide-react\"\nimport { useMemo, type FocusEventHandler, type Ref } from \"react\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./combobox.module.css\"\n\nconst comboboxInputVariants = cva(styles.input)\n\nconst comboboxItemVariants = cva(styles.item)\n\ntype ComboboxOption = {\n value: string\n label: string\n}\n\ntype ComboboxProps = Omit<\n ComboboxPrimitive.Root.Props<string, false>,\n \"children\" | \"items\"\n> & {\n /** The selectable options. Keep the array referentially stable. */\n items: readonly ComboboxOption[]\n placeholder?: string\n /** Whether a selected value can be cleared with the clear button. */\n clearable?: boolean\n className?: string\n /**\n * A ref to the input. Give this to form libraries (e.g. `field.ref` from\n * React Hook Form) so focusing the control works.\n */\n inputRef?: Ref<HTMLInputElement>\n onFocus?: FocusEventHandler<HTMLInputElement>\n onBlur?: FocusEventHandler<HTMLInputElement>\n \"aria-label\"?: string\n \"aria-labelledby\"?: string\n}\n\nfunction Combobox({\n items,\n placeholder,\n clearable = true,\n className,\n disabled,\n inputRef,\n onFocus,\n onBlur,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n ...props\n}: ComboboxProps) {\n const values = useMemo(() => items.map((item) => item.value), [items])\n\n const labelMap = useMemo(() => {\n const map = new Map<string, string>()\n for (const item of items) map.set(item.value, item.label)\n return map\n }, [items])\n\n const labelProps = {\n ...(ariaLabel !== undefined && { \"aria-label\": ariaLabel }),\n ...(ariaLabelledby !== undefined && { \"aria-labelledby\": ariaLabelledby }),\n }\n\n return (\n <ComboboxPrimitive.Root\n autoHighlight\n items={values}\n itemToStringLabel={(itemValue) => labelMap.get(itemValue) ?? itemValue}\n {...props}\n >\n {/* `InputGroup` is not a plain wrapper: it registers itself as the\n positioner's anchor, exempts itself from outside-press dismissal,\n focuses the input when its padding is clicked, and exposes the\n combined `Field` + combobox state as `data-*` attributes. */}\n <ComboboxPrimitive.InputGroup className={styles.inputGroup}>\n <ComboboxPrimitive.Input\n ref={inputRef}\n disabled={disabled}\n onFocus={onFocus}\n onBlur={onBlur}\n placeholder={placeholder}\n {...labelProps}\n className={clsx(comboboxInputVariants(), className)}\n />\n {clearable && (\n <ComboboxPrimitive.Clear\n aria-label=\"Fjern valgt verdi\"\n disabled={disabled}\n className={styles.clear}\n >\n <X aria-hidden className={styles.icon} strokeWidth={2} />\n </ComboboxPrimitive.Clear>\n )}\n <ComboboxPrimitive.Trigger\n aria-label=\"Vis alternativer\"\n disabled={disabled}\n className={styles.trigger}\n >\n <ComboboxPrimitive.Icon\n render={\n <ChevronDown\n aria-hidden\n className={styles.icon}\n strokeWidth={2}\n />\n }\n />\n </ComboboxPrimitive.Trigger>\n </ComboboxPrimitive.InputGroup>\n <ComboboxPrimitive.Portal>\n <ComboboxPrimitive.Positioner\n side=\"bottom\"\n sideOffset={-2}\n className={styles.positioner}\n >\n <ComboboxPrimitive.Popup className={styles.popup}>\n <ComboboxPrimitive.Empty className={styles.empty}>\n Ingen treff\n </ComboboxPrimitive.Empty>\n <ComboboxPrimitive.List>\n {(value: string) => (\n <ComboboxPrimitive.Item\n key={value}\n value={value}\n className={comboboxItemVariants()}\n >\n {labelMap.get(value)}\n </ComboboxPrimitive.Item>\n )}\n </ComboboxPrimitive.List>\n </ComboboxPrimitive.Popup>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n </ComboboxPrimitive.Root>\n )\n}\n\nexport { Combobox, comboboxInputVariants, comboboxItemVariants }\nexport type { ComboboxProps, ComboboxOption }\n","import { Select as SelectPrimitive } from \"@base-ui/react/select\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown } from \"lucide-react\"\nimport { type ReactNode } from \"react\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./select.module.css\"\n\nconst selectTriggerVariants = cva(styles.trigger)\n\nconst selectItemVariants = cva(styles.item)\n\ntype SelectOption = {\n value: string\n label: ReactNode\n}\n\ntype SelectProps = Omit<\n SelectPrimitive.Root.Props<string, false>,\n \"children\" | \"items\"\n> & {\n /** The selectable options. Keep the array referentially stable. */\n items: readonly SelectOption[]\n placeholder?: ReactNode\n className?: string\n \"aria-label\"?: string\n \"aria-labelledby\"?: string\n}\n\nfunction Select({\n items,\n placeholder,\n className,\n disabled,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n ...props\n}: SelectProps) {\n const labelProps = {\n ...(ariaLabel !== undefined && { \"aria-label\": ariaLabel }),\n ...(ariaLabelledby !== undefined && { \"aria-labelledby\": ariaLabelledby }),\n }\n\n return (\n <SelectPrimitive.Root disabled={disabled} items={items} {...props}>\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n disabled={disabled}\n {...labelProps}\n className={clsx(selectTriggerVariants(), className)}\n >\n <SelectPrimitive.Value placeholder={placeholder} />\n <SelectPrimitive.Icon\n render={\n <span className={styles.iconWrap}>\n <ChevronDown\n aria-hidden\n className={styles.chevron}\n strokeWidth={2}\n />\n </span>\n }\n />\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Positioner\n alignItemWithTrigger={false}\n side=\"bottom\"\n sideOffset={-2}\n className={styles.positioner}\n >\n <SelectPrimitive.Popup className={styles.popup}>\n <SelectPrimitive.List className={styles.list}>\n {items.map(({ value, label }) => (\n <SelectPrimitive.Item\n key={value}\n value={value}\n className={selectItemVariants()}\n >\n <SelectPrimitive.ItemText>{label}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.List>\n </SelectPrimitive.Popup>\n </SelectPrimitive.Positioner>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n )\n}\n\nexport { Select, selectItemVariants, selectTriggerVariants }\nexport type { SelectProps, SelectOption }\n","import { Field as FieldPrimitive } from \"@base-ui/react/field\"\n\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport { InsideFieldContext } from \"./field-context\"\nimport styles from \"./field.module.css\"\n\ntype FieldProps = FieldPrimitive.Root.Props\n\nfunction Field({ className, ...props }: FieldProps) {\n return (\n <InsideFieldContext value={true}>\n <FieldPrimitive.Root\n data-slot=\"field\"\n className={clsx(styles.container, className)}\n {...props}\n />\n </InsideFieldContext>\n )\n}\n\ntype FieldLabelProps = Omit<FieldPrimitive.Label.Props, \"render\">\n\nfunction FieldLabel({\n children,\n nativeLabel = true,\n ...props\n}: FieldLabelProps) {\n return (\n <FieldPrimitive.Label\n data-slot=\"field-label\"\n nativeLabel={nativeLabel}\n render={\n <Text variant=\"body-sm\" as={nativeLabel ? \"label\" : \"span\"}>\n {children}\n </Text>\n }\n {...props}\n />\n )\n}\n\ntype FieldDescriptionProps = Omit<FieldPrimitive.Description.Props, \"render\">\n\nfunction FieldDescription({ children, ...props }: FieldDescriptionProps) {\n return (\n <FieldPrimitive.Description\n data-slot=\"field-description\"\n render={\n <Text variant=\"description\" color=\"informative\">\n {children}\n </Text>\n }\n {...props}\n />\n )\n}\n\ntype FieldErrorProps = Omit<FieldPrimitive.Error.Props, \"render\">\n\nfunction FieldError({ children, className, ...props }: FieldErrorProps) {\n return (\n <FieldPrimitive.Error\n data-slot=\"field-error\"\n className={clsx(styles.error, className)}\n // `message` is the validation message Base UI resolved (the `validate`\n // result, or the native one). Own children win when provided.\n render={({ children: message, ...errorProps }) => (\n <div {...errorProps}>\n <span aria-hidden className={styles.errorDot} />\n <Text variant=\"description\" as=\"div\">\n {children ?? message}\n </Text>\n </div>\n )}\n {...props}\n />\n )\n}\n\nexport { Field, FieldLabel, FieldDescription, FieldError }\nexport type {\n FieldProps,\n FieldLabelProps,\n FieldDescriptionProps,\n FieldErrorProps,\n}\n","import { Form as FormPrimitive } from \"@base-ui/react/form\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./form.module.css\"\n\ntype FormProps = FormPrimitive.Props\n\nfunction Form({ className, ...props }: FormProps) {\n return (\n <FormPrimitive\n data-slot=\"form\"\n className={clsx(styles.form, className)}\n {...props}\n />\n )\n}\n\nexport { Form }\nexport type { FormProps }\n","import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { clsx } from \"clsx\"\nimport { type ReactNode, useState } from \"react\"\n\nimport styles from \"./icons-toggle.module.css\"\n\n/**\n * A pill-shaped toggle with two icon options. Clicking anywhere on the toggle\n * switches to the other option. Exactly one option is always active.\n *\n * @param options Pair of `{ value, icon, label }` objects.\n *\n * @param variant `\"filled\"` (default) — active item has a solid background.\n * `\"stroked\"` — outlined border style.\n *\n * @param name When set, renders a hidden `<input>` so the active value is\n * included in the nearest `<form>`'s submit data.\n *\n * @example — uncontrolled\n * <IconsToggle\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — uncontrolled in a form\n * <IconsToggle\n * name=\"view\"\n * options={[\n * { value: \"grid\", icon: <LayoutGrid />, label: \"Rutenett\" },\n * { value: \"list\", icon: <AlignJustify />, label: \"Liste\" },\n * ]}\n * defaultValue=\"grid\"\n * />\n *\n * @example — controlled\n * const [view, setView] = useState<\"grid\" | \"list\">(\"grid\")\n * <IconsToggle\n * options={[...]}\n * value={view}\n * onValueChange={setView}\n * />\n */\nfunction IconsToggle<A extends string, B extends string>({\n options,\n title,\n variant = \"filled\",\n value: controlledValue,\n defaultValue,\n onValueChange,\n name,\n className,\n}: IconsToggleProps<A, B>) {\n const [internalValue, setInternalValue] = useState<A | B>(\n defaultValue ?? options[0].value\n )\n\n const activeValue = controlledValue ?? internalValue\n const activeIndex = options[0].value === activeValue ? 0 : 1\n const activeOption = options[activeIndex]\n const inactiveOption = options[activeIndex === 0 ? 1 : 0]\n\n function handleClick() {\n const nextValue = inactiveOption.value\n if (controlledValue === undefined) setInternalValue(nextValue)\n onValueChange?.(nextValue)\n }\n\n return (\n <>\n {name && <input type=\"hidden\" name={name} value={activeValue} />}\n <ButtonPrimitive\n onClick={handleClick}\n aria-label={`Bytt ${title} mellom ${activeOption.label} og ${inactiveOption.label}, valgt: ${activeOption.label}`}\n className={clsx(\n iconsToggleVariants({ variant }),\n activeIndex === 1 && styles.hasSelectedSecondOption,\n className\n )}\n >\n {options.map((option) => {\n const isActive = option.value === activeValue\n return (\n <span\n key={option.value}\n aria-hidden=\"true\"\n className={clsx(styles.option, isActive && styles.selectedOption)}\n >\n {option.icon}\n </span>\n )\n })}\n </ButtonPrimitive>\n </>\n )\n}\n\nexport { IconsToggle }\n\nconst iconsToggleVariants = cva(styles.root, {\n variants: {\n variant: {\n filled: styles.filled,\n stroked: styles.stroked,\n },\n },\n defaultVariants: {\n variant: \"filled\",\n },\n})\n\ninterface IconsToggleOption<Value extends string> {\n /** Unique identifier of this option */\n value: Value\n /** Icon displayed inside the toggle for this option. Can be any React node, but must be equal\n * in width to the other option's icon */\n icon: ReactNode\n /** Accessible label for this option */\n label: string\n}\n\ninterface IconsToggleBaseProps<\n A extends string,\n B extends string,\n> extends VariantProps<typeof iconsToggleVariants> {\n options: [IconsToggleOption<A>, IconsToggleOption<B>]\n title: string\n /** The identifier for the control in a form */\n name?: string\n className?: string\n}\n\ninterface IconsToggleControlledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value: A | B\n defaultValue?: never\n onValueChange: (value: A | B) => void\n}\n\ninterface IconsToggleUncontrolledProps<\n A extends string,\n B extends string,\n> extends IconsToggleBaseProps<A, B> {\n value?: never\n defaultValue?: A | B\n onValueChange?: (value: A | B) => void\n}\n\nexport type IconsToggleProps<A extends string, B extends string> =\n | IconsToggleControlledProps<A, B>\n | IconsToggleUncontrolledProps<A, B>\n","import { Avatar as BaseAvatar } from \"@base-ui/react/avatar\"\nimport { UserRound } from \"lucide-react\"\nimport type { ComponentProps } from \"react\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./avatar.module.css\"\n\ntype AvatarProps = {\n src?: string\n alt: string\n} & Omit<ComponentProps<typeof BaseAvatar.Root>, \"children\">\n\nfunction Avatar({ src, alt, className, ...rootProps }: AvatarProps) {\n return (\n <BaseAvatar.Root\n data-slot=\"avatar\"\n className={clsx(styles.base, className)}\n {...rootProps}\n >\n {src !== undefined && (\n <BaseAvatar.Image\n data-slot=\"avatar-image\"\n src={src}\n alt={alt}\n loading=\"lazy\"\n className={styles.image}\n />\n )}\n <BaseAvatar.Fallback\n data-slot=\"avatar-fallback\"\n className={styles.fallback}\n >\n <UserRound />\n </BaseAvatar.Fallback>\n </BaseAvatar.Root>\n )\n}\n\nexport { Avatar, type AvatarProps }\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","iconOnly","isPending","disabled","children","props","jsx","ButtonPrimitive","clsx","jsxs","Fragment","InsideFieldContext","createContext","textVariants","DEFAULT_ELEMENTS","Text","color","as","Component","Checkbox","label","insideField","use","box","CheckboxPrimitive","Check","labelContent","FieldPrimitive","CheckboxGroup","orientation","CheckboxGroupPrimitive","textareaVariants","Textarea","Field","comboboxInputVariants","comboboxItemVariants","Combobox","items","placeholder","clearable","inputRef","onFocus","onBlur","ariaLabel","ariaLabelledby","values","useMemo","item","labelMap","map","labelProps","ComboboxPrimitive","itemValue","X","ChevronDown","value","selectTriggerVariants","selectItemVariants","Select","SelectPrimitive","FieldLabel","nativeLabel","FieldDescription","FieldError","message","errorProps","Form","FormPrimitive","IconsToggle","options","title","controlledValue","defaultValue","onValueChange","name","internalValue","setInternalValue","useState","activeValue","activeIndex","activeOption","inactiveOption","handleClick","nextValue","iconsToggleVariants","option","isActive","Avatar","src","alt","rootProps","BaseAvatar","UserRound"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;GAMMA,KAAiBC,EAAIC,EAAO,MAAM;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,IAAA;AAAA,IAEpB,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,UAAU;AAAA,MACR,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAEd,CAAC;AA6BD,SAASC,GAAO;AAAA,EACd,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AACd,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,UAAUL,KAAaC;AAAA,MACvB,aAAWD;AAAA,MACX,WAAWM;AAAA,QACTd,GAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,UAAAC,GAAU;AAAA,QAC1CC,KAAaN,EAAO;AAAA,QACpBE;AAAA,MAAA;AAAA,MAED,GAAGO;AAAA,MAEH,cACC,gBAAAI,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAJ,EAAC,QAAA,EAAK,WAAWV,EAAO,SAAU,UAAAQ,GAAS;AAAA,0BAC1C,QAAA,EAAK,WAAWR,EAAO,SAAS,eAAY,OAAA,CAAO;AAAA,MAAA,EAAA,CACtD,IAEAQ;AAAA,IAAA;AA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;AAAA,cAEC,eAAY;AAAA,cACZ,WAAWE,EAAKZ,EAAO,QAAQ0F,KAAY1F,EAAO,cAAc;AAAA,cAE/D,UAAAyF,EAAO;AAAA,YAAA;AAAA,YAJHA,EAAO;AAAA,UAAA;AAAA,QAOlB,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GACF;AAEJ;AAIA,MAAMD,KAAsBzF,EAAIC,EAAO,MAAM;AAAA,EAC3C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;;;;;ACpGD,SAAS2F,GAAO,EAAE,KAAAC,GAAK,KAAAC,GAAK,WAAA3F,GAAW,GAAG4F,KAA0B;AAClE,SACE,gBAAAjF;AAAA,IAACkF,EAAW;AAAA,IAAX;AAAA,MACC,aAAU;AAAA,MACV,WAAWnF,EAAKZ,EAAO,MAAME,CAAS;AAAA,MACrC,GAAG4F;AAAA,MAEH,UAAA;AAAA,QAAAF,MAAQ,UACP,gBAAAlF;AAAA,UAACqF,EAAW;AAAA,UAAX;AAAA,YACC,aAAU;AAAA,YACV,KAAAH;AAAA,YACA,KAAAC;AAAA,YACA,SAAQ;AAAA,YACR,WAAW7F,EAAO;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtB,gBAAAU;AAAA,UAACqF,EAAW;AAAA,UAAX;AAAA,YACC,aAAU;AAAA,YACV,WAAW/F,EAAO;AAAA,YAElB,4BAACgG,GAAA,CAAA,CAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACb;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
@layer bnui {
|
|
2
|
-
:root{--color-neutral-0: #000000;--color-neutral-10: #1a1a1a;--color-neutral-20: #353535;--color-neutral-30: #595959;--color-neutral-40: #757575;--color-neutral-50: #a0a0a0;--color-neutral-60: #c4c4c4;--color-neutral-70: #dedede;--color-neutral-80: #eaeaea;--color-neutral-90: #f4f4f4;--color-neutral-95: #f9f9f9;--color-neutral-98: #fbfbfb;--color-neutral-100: #ffffff;--color-info-0: #000000;--color-info-10: #032345;--color-info-20: #00315d;--color-info-30: #00468e;--color-info-40: #004e95;--color-info-50: #0062ba;--color-info-60: #1a72c1;--color-info-70: #3381c8;--color-info-80: #66a1d6;--color-info-90: #80b1dd;--color-info-95: #b3d0ea;--color-info-98: #e6eff8;--color-info-100: #ffffff;--color-success-0: #000000;--color-success-10: #03381c;--color-success-20: #084826;--color-success-30: #0c6536;--color-success-40: #118849;--color-success-50: #189f59;--color-success-60: #15b560;--color-success-70: #2ece7a;--color-success-80: #5dd997;--color-success-90: #8be4b5;--color-success-95: #d1f4e1;--color-success-98: #e8faf0;--color-success-100: #ffffff;--color-warning-0: #000000;--color-warning-10: #522d02;--color-warning-20: #663802;--color-warning-30: #874b06;--color-warning-40: #a45800;--color-warning-50: #dd7e10;--color-warning-60: #f29305;--color-warning-70: #faa322;--color-warning-80: #ffb240;--color-warning-90: #ffcc80;--color-warning-95: #ffe8cd;--color-warning-98: #fff3e0;--color-warning-100: #ffffff;--color-error-0: #000000;--color-error-10: #480e17;--color-error-20: #5a121d;--color-error-30: #7f091a;--color-error-40: #9c0f0f;--color-error-50: #ae1616;--color-error-60: #c62828;--color-error-70: #dc2f2f;--color-error-80: #ef5350;--color-error-90: #ef9a9a;--color-error-95: #ffcdd2;--color-error-98: #ffebee;--color-error-100: #ffffff;--color-interactive-0: #000000;--color-interactive-10: #15143c;--color-interactive-20: #292878;--color-interactive-30: #3e3bb4;--color-interactive-40: #524ff0;--color-interactive-50: #615efc;--color-interactive-60: #7471ff;--color-interactive-70: #8987ff;--color-interactive-80: #a2a0ff;--color-interactive-90: #bebcff;--color-interactive-95: #dddcff;--color-interactive-98: #ededff;--color-interactive-100: #ffffff;--font-sans: Arial, Helvetica, "Helvetica Neue", system-ui, -apple-system, sans-serif;--font-america-gt: "GT America Expanded", var(--font-sans);--color-blue: #0042fe;--color-rebel-0: #000000;--color-rebel-10: #030400;--color-rebel-20: #121900;--color-rebel-30: #273300;--color-rebel-40: #3e5000;--color-rebel-50: #566f00;--color-rebel-60: #708e00;--color-rebel-70: #8baf00;--color-rebel-80: #a8d100;--color-rebel-90: #c3e835;--color-rebel-95: #d3ff27;--color-rebel-98: #f0ffc9;--color-rebel-100: #ffffff;--radius-4: .25rem;--radius-8: .5rem;--radius-full: 9999px;--spacing-4: .25rem;--spacing-8: .5rem;--spacing-12: .75rem;--spacing-16: 1rem;--spacing-24: 1.5rem;--spacing-32: 2rem;--spacing-40: 2.5rem;--spacing-64: 4rem;--spacing-80: 5rem;--icon-size-lg: 1.375rem;--icon-stroke-width-lg: 1.5;--icon-size-sm: 1.125rem;--icon-stroke-width-sm: 1.5}:root{--background: var(--color-neutral-100);--text-background: var(--color-neutral-0);--surface: var(--color-neutral-90);--text-surface: var(--color-neutral-0);--divider-dark: var(--color-neutral-20);--text-divider-dark: var(--color-neutral-100);--border-divider: var(--color-neutral-50);--border-divider-light: var(--color-neutral-70);--text-informative: var(--color-neutral-30);--error: var(--color-error-40);--background-error: var(--color-error-98);--text-error: var(--color-error-10);--warning: var(--color-warning-60);--background-warning: var(--color-warning-98);--text-warning: var(--color-warning-10);--success: var(--color-success-30);--background-success: var(--color-success-98);--text-success: var(--color-success-10);--info: var(--color-info-40);--background-info: var(--color-info-98);--text-info: var(--color-info-10);--interactive: var(--color-interactive-50);--background-interactive: var(--color-interactive-98);--text-interactive: var(--color-interactive-10);--color-black: var(--color-neutral-10);--color-white: var(--color-neutral-100);--font-default: var(--font-sans);--text-headline-size: 2rem;--text-headline-line-height: 1.2;--text-headline-weight: 700;--text-headline-sm-size: 1.375rem;--text-headline-sm-line-height: 1.2;--text-headline-sm-weight: 700;--text-headline-xs-size: 1.125rem;--text-headline-xs-line-height: 1.2;--text-headline-xs-weight: 700;--text-button-size: 1.125rem;--text-button-line-height: 1.2;--text-button-weight: 400;--text-body-bold-size: 1rem;--text-body-bold-line-height: 1.2;--text-body-bold-weight: 700;--text-body-size: 1rem;--text-body-line-height: 1.2;--text-body-weight: 400;--text-body-sm-bold-size: .875rem;--text-body-sm-bold-line-height: 1.2;--text-body-sm-bold-weight: 700;--text-body-sm-size: .875rem;--text-body-sm-line-height: 1.2;--text-body-sm-weight: 400;--text-description-size: .75rem;--text-description-line-height: 1.2;--text-description-weight: 400}.bnui-base-wpVVq{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--radius-4);outline:none;background-color:transparent;font-family:var(--font-sans);font-size:var(--text-button-size);font-weight:var(--text-button-weight);line-height:var(--text-button-line-height);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.bnui-base-wpVVq:focus-visible{box-shadow:0 0 0 2px var(--color-interactive-40)}.bnui-base-wpVVq:disabled{pointer-events:none}.bnui-base-wpVVq svg{flex-shrink:0;width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:var(--icon-stroke-width-lg)}.bnui-primary-OKCHe{background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-primary-OKCHe:hover{background-color:var(--color-interactive-40)}.bnui-primary-OKCHe:disabled{background-color:var(--color-neutral-30)}.bnui-secondary-dazFR{border-color:var(--color-neutral-10);color:var(--color-neutral-10)}.bnui-secondary-dazFR:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98);color:var(--color-interactive-10)}.bnui-secondary-dazFR:disabled{border-color:var(--color-neutral-30);color:var(--color-neutral-30);background-color:var(--color-neutral-90)}.bnui-lg-WgiKr{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16)}.bnui-sm-0Kb5B{gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-12)}.bnui-sm-0Kb5B svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}.bnui-iconOnly-LsvO8{gap:0}.bnui-content-q0g4H{display:inline-flex;align-items:center;gap:inherit}.bnui-pending-xP-rH{position:relative}.bnui-pending-xP-rH .bnui-content-q0g4H{visibility:hidden}.bnui-spinner-jLkEm{position:absolute;top:50%;left:50%;width:1rem;height:1rem;margin:-.5rem 0 0 -.5rem;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:bnui-button-spin--7o11 2s linear infinite}@keyframes bnui-button-spin--7o11{to{transform:rotate(360deg)}}.bnui-headline-6c9bn{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-size);line-height:var(--text-headline-line-height);font-weight:var(--text-headline-weight)}.bnui-headline-sm-eesRr{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-sm-size);line-height:var(--text-headline-sm-line-height);font-weight:var(--text-headline-sm-weight)}.bnui-headline-xs-bBHXL{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-xs-size);line-height:var(--text-headline-xs-line-height);font-weight:var(--text-headline-xs-weight)}.bnui-button-lekqm{margin:0;font-family:var(--font-sans);font-size:var(--text-button-size);line-height:var(--text-button-line-height);font-weight:var(--text-button-weight)}.bnui-body-bold-0cir6{margin:0;font-family:var(--font-sans);font-size:var(--text-body-bold-size);line-height:var(--text-body-bold-line-height);font-weight:var(--text-body-bold-weight)}.bnui-body-2BdnA{margin:0;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);font-weight:var(--text-body-weight)}.bnui-body-sm-bold-9SPZK{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-bold-size);line-height:var(--text-body-sm-bold-line-height);font-weight:var(--text-body-sm-bold-weight)}.bnui-body-sm-MOXMI{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-size);line-height:var(--text-body-sm-line-height);font-weight:var(--text-body-sm-weight)}.bnui-description-6roeu{margin:0;font-family:var(--font-sans);font-size:var(--text-description-size);line-height:var(--text-description-line-height);font-weight:var(--text-description-weight)}.bnui-color-default-38dch{color:var(--color-neutral-10)}.bnui-color-white-d9q0c{color:var(--color-neutral-100)}.bnui-color-background-Flq4G{color:var(--text-background)}.bnui-color-surface-80oSA{color:var(--text-surface)}.bnui-color-divider-dark-lGQki{color:var(--text-divider-dark)}.bnui-color-informative-xAFpg{color:var(--text-informative)}.bnui-color-error-jEnPS{color:var(--text-error)}.bnui-color-warning-6lm-Z{color:var(--text-warning)}.bnui-color-success-ThRnA{color:var(--text-success)}.bnui-color-info-PtkS-{color:var(--text-info)}.bnui-color-interactive-b9cqS{color:var(--text-interactive)}.bnui-checkbox-mTFTt{display:inline-flex;box-sizing:border-box;width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-4);border:1px solid transparent;background-color:transparent;padding:0;font-family:var(--font-sans);color:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease;outline:none}.bnui-checkbox-mTFTt:focus-visible{outline:2px solid var(--color-interactive-40);outline-offset:2px}.bnui-checkbox-mTFTt[data-checked]{border-width:2px;border-color:var(--color-neutral-10);background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-checkbox-mTFTt[data-checked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-checked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-40)}.bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-neutral-50)}.bnui-checkbox-mTFTt[data-unchecked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-checkbox-mTFTt[data-invalid],.bnui-checkbox-mTFTt[data-invalid]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-invalid]{border-color:var(--color-error-40)}.bnui-indicator-VOiAE{display:inline-flex;align-items:center;justify-content:center}.bnui-check-6pYVz{width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:2}.bnui-item-qNsgX{display:contents}.bnui-label-JOyrO{display:inline-flex;cursor:pointer;align-items:center;gap:var(--spacing-8);font-family:var(--font-sans);-webkit-user-select:none;user-select:none}.bnui-group-76ZZz{display:inline-flex;box-sizing:border-box}.bnui-column-ev6Qg{flex-direction:column;align-items:flex-start;gap:var(--spacing-8)}.bnui-row-K6-hO{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--spacing-16)}.bnui-textarea-6uYeG{display:block;box-sizing:border-box;min-height:6rem;min-width:20rem;width:100%;border-radius:var(--radius-4);border:1px solid var(--color-neutral-50);background-color:var(--color-neutral-100);padding:var(--spacing-8);resize:none;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-10);outline:none;field-sizing:content;overflow:hidden}.bnui-textarea-6uYeG::placeholder{color:var(--color-neutral-40)}.bnui-textarea-6uYeG:hover{box-shadow:inset 0 0 0 1px var(--color-neutral-50)}.bnui-textarea-6uYeG:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG[data-invalid]{border-color:var(--color-error-40)}.bnui-textarea-6uYeG[data-invalid]:hover{box-shadow:none}.bnui-textarea-6uYeG[data-invalid]:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG:disabled{cursor:not-allowed;opacity:.5}.bnui-container-GujCE{display:flex;box-sizing:border-box;width:100%;flex-direction:column;gap:var(--spacing-4);font-family:var(--font-sans)}.bnui-error-9Pli1{display:flex;align-items:center;gap:var(--spacing-4)}.bnui-errorDot-mVjXf{display:inline-block;width:.5rem;height:.5rem;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-error-40)}.bnui-form-9QnXK{display:flex;box-sizing:border-box;width:100%;flex-direction:column;gap:var(--spacing-24);margin:0;font-family:var(--font-sans)}.bnui-root-oLVBN{--pill-padding: .1875rem;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:var(--radius-full);padding:var(--pill-padding);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.bnui-root-oLVBN:before{content:"";position:absolute;top:var(--pill-padding);left:var(--pill-padding);width:calc(50% - var(--pill-padding));bottom:var(--pill-padding);border-radius:var(--radius-full);pointer-events:none;transition:transform .15s ease}.bnui-root-oLVBN:focus-visible{outline:2px solid var(--color-interactive-50)}.bnui-hasSelectedSecondOption-LfH49:before{transform:translate(100%)}.bnui-filled-L-AUH{background-color:var(--color-neutral-90)}.bnui-filled-L-AUH:hover{background-color:var(--color-interactive-50)}.bnui-filled-L-AUH:before{background-color:var(--color-neutral-100)}.bnui-stroked-wRb92{background-color:var(--color-neutral-100);border-color:var(--color-neutral-10)}.bnui-stroked-wRb92:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-stroked-wRb92:before{background-color:var(--color-neutral-10)}.bnui-option-Hou7J{position:relative;z-index:1;display:flex;place-items:center;padding:var(--spacing-4);flex-grow:1;transition:color .15s ease}.bnui-filled-L-AUH:hover .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-white)}.bnui-filled-L-AUH .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-neutral-50)}.bnui-filled-L-AUH .bnui-selectedOption-twuTF{color:var(--color-neutral-10)}.bnui-stroked-wRb92 .bnui-selectedOption-twuTF{color:var(--color-neutral-100)}.bnui-option-Hou7J svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}
|
|
2
|
+
:root{--color-neutral-0: #000000;--color-neutral-10: #1a1a1a;--color-neutral-20: #353535;--color-neutral-30: #595959;--color-neutral-40: #757575;--color-neutral-50: #a0a0a0;--color-neutral-60: #c4c4c4;--color-neutral-70: #dedede;--color-neutral-80: #eaeaea;--color-neutral-90: #f4f4f4;--color-neutral-95: #f9f9f9;--color-neutral-98: #fbfbfb;--color-neutral-100: #ffffff;--color-info-0: #000000;--color-info-10: #032345;--color-info-20: #00315d;--color-info-30: #00468e;--color-info-40: #004e95;--color-info-50: #0062ba;--color-info-60: #1a72c1;--color-info-70: #3381c8;--color-info-80: #66a1d6;--color-info-90: #80b1dd;--color-info-95: #b3d0ea;--color-info-98: #e6eff8;--color-info-100: #ffffff;--color-success-0: #000000;--color-success-10: #03381c;--color-success-20: #084826;--color-success-30: #0c6536;--color-success-40: #118849;--color-success-50: #189f59;--color-success-60: #15b560;--color-success-70: #2ece7a;--color-success-80: #5dd997;--color-success-90: #8be4b5;--color-success-95: #d1f4e1;--color-success-98: #e8faf0;--color-success-100: #ffffff;--color-warning-0: #000000;--color-warning-10: #522d02;--color-warning-20: #663802;--color-warning-30: #874b06;--color-warning-40: #a45800;--color-warning-50: #dd7e10;--color-warning-60: #f29305;--color-warning-70: #faa322;--color-warning-80: #ffb240;--color-warning-90: #ffcc80;--color-warning-95: #ffe8cd;--color-warning-98: #fff3e0;--color-warning-100: #ffffff;--color-error-0: #000000;--color-error-10: #480e17;--color-error-20: #5a121d;--color-error-30: #7f091a;--color-error-40: #9c0f0f;--color-error-50: #ae1616;--color-error-60: #c62828;--color-error-70: #dc2f2f;--color-error-80: #ef5350;--color-error-90: #ef9a9a;--color-error-95: #ffcdd2;--color-error-98: #ffebee;--color-error-100: #ffffff;--color-interactive-0: #000000;--color-interactive-10: #15143c;--color-interactive-20: #292878;--color-interactive-30: #3e3bb4;--color-interactive-40: #524ff0;--color-interactive-50: #615efc;--color-interactive-60: #7471ff;--color-interactive-70: #8987ff;--color-interactive-80: #a2a0ff;--color-interactive-90: #bebcff;--color-interactive-95: #dddcff;--color-interactive-98: #ededff;--color-interactive-100: #ffffff;--font-sans: Arial, Helvetica, "Helvetica Neue", system-ui, -apple-system, sans-serif;--font-america-gt: "GT America Expanded", var(--font-sans);--color-blue: #0042fe;--color-rebel-0: #000000;--color-rebel-10: #030400;--color-rebel-20: #121900;--color-rebel-30: #273300;--color-rebel-40: #3e5000;--color-rebel-50: #566f00;--color-rebel-60: #708e00;--color-rebel-70: #8baf00;--color-rebel-80: #a8d100;--color-rebel-90: #c3e835;--color-rebel-95: #d3ff27;--color-rebel-98: #f0ffc9;--color-rebel-100: #ffffff;--radius-4: .25rem;--radius-8: .5rem;--radius-full: 9999px;--spacing-4: .25rem;--spacing-8: .5rem;--spacing-12: .75rem;--spacing-16: 1rem;--spacing-24: 1.5rem;--spacing-32: 2rem;--spacing-40: 2.5rem;--spacing-64: 4rem;--spacing-80: 5rem;--icon-size-lg: 1.375rem;--icon-stroke-width-lg: 1.5;--icon-size-sm: 1.125rem;--icon-stroke-width-sm: 1.5}:root{--background: var(--color-neutral-100);--text-background: var(--color-neutral-0);--surface: var(--color-neutral-90);--text-surface: var(--color-neutral-0);--divider-dark: var(--color-neutral-20);--text-divider-dark: var(--color-neutral-100);--border-divider: var(--color-neutral-50);--border-divider-light: var(--color-neutral-70);--text-informative: var(--color-neutral-30);--error: var(--color-error-40);--background-error: var(--color-error-98);--text-error: var(--color-error-10);--warning: var(--color-warning-60);--background-warning: var(--color-warning-98);--text-warning: var(--color-warning-10);--success: var(--color-success-30);--background-success: var(--color-success-98);--text-success: var(--color-success-10);--info: var(--color-info-40);--background-info: var(--color-info-98);--text-info: var(--color-info-10);--interactive: var(--color-interactive-50);--background-interactive: var(--color-interactive-98);--text-interactive: var(--color-interactive-10);--color-black: var(--color-neutral-10);--color-white: var(--color-neutral-100);--font-default: var(--font-sans);--text-headline-size: 2rem;--text-headline-line-height: 1.2;--text-headline-weight: 700;--text-headline-sm-size: 1.375rem;--text-headline-sm-line-height: 1.2;--text-headline-sm-weight: 700;--text-headline-xs-size: 1.125rem;--text-headline-xs-line-height: 1.2;--text-headline-xs-weight: 700;--text-button-size: 1.125rem;--text-button-line-height: 1.2;--text-button-weight: 400;--text-body-bold-size: 1rem;--text-body-bold-line-height: 1.2;--text-body-bold-weight: 700;--text-body-size: 1rem;--text-body-line-height: 1.2;--text-body-weight: 400;--text-body-sm-bold-size: .875rem;--text-body-sm-bold-line-height: 1.2;--text-body-sm-bold-weight: 700;--text-body-sm-size: .875rem;--text-body-sm-line-height: 1.2;--text-body-sm-weight: 400;--text-description-size: .75rem;--text-description-line-height: 1.2;--text-description-weight: 400}.bnui-base-wpVVq{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--radius-4);outline:none;background-color:transparent;font-family:var(--font-sans);font-size:var(--text-button-size);font-weight:var(--text-button-weight);line-height:var(--text-button-line-height);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.bnui-base-wpVVq:focus-visible{box-shadow:0 0 0 2px var(--color-interactive-40)}.bnui-base-wpVVq:disabled{pointer-events:none}.bnui-base-wpVVq svg{flex-shrink:0;width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:var(--icon-stroke-width-lg)}.bnui-primary-OKCHe{background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-primary-OKCHe:hover{background-color:var(--color-interactive-40)}.bnui-primary-OKCHe:disabled{background-color:var(--color-neutral-30)}.bnui-secondary-dazFR{border-color:var(--color-neutral-10);color:var(--color-neutral-10)}.bnui-secondary-dazFR:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98);color:var(--color-interactive-10)}.bnui-secondary-dazFR:disabled{border-color:var(--color-neutral-30);color:var(--color-neutral-30);background-color:var(--color-neutral-90)}.bnui-lg-WgiKr{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16)}.bnui-sm-0Kb5B{gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-12)}.bnui-sm-0Kb5B svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}.bnui-iconOnly-LsvO8{gap:0}.bnui-content-q0g4H{display:inline-flex;align-items:center;gap:inherit}.bnui-pending-xP-rH{position:relative}.bnui-pending-xP-rH .bnui-content-q0g4H{visibility:hidden}.bnui-spinner-jLkEm{position:absolute;top:50%;left:50%;width:1rem;height:1rem;margin:-.5rem 0 0 -.5rem;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:bnui-button-spin--7o11 2s linear infinite}@keyframes bnui-button-spin--7o11{to{transform:rotate(360deg)}}.bnui-headline-6c9bn{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-size);line-height:var(--text-headline-line-height);font-weight:var(--text-headline-weight)}.bnui-headline-sm-eesRr{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-sm-size);line-height:var(--text-headline-sm-line-height);font-weight:var(--text-headline-sm-weight)}.bnui-headline-xs-bBHXL{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-xs-size);line-height:var(--text-headline-xs-line-height);font-weight:var(--text-headline-xs-weight)}.bnui-button-lekqm{margin:0;font-family:var(--font-sans);font-size:var(--text-button-size);line-height:var(--text-button-line-height);font-weight:var(--text-button-weight)}.bnui-body-bold-0cir6{margin:0;font-family:var(--font-sans);font-size:var(--text-body-bold-size);line-height:var(--text-body-bold-line-height);font-weight:var(--text-body-bold-weight)}.bnui-body-2BdnA{margin:0;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);font-weight:var(--text-body-weight)}.bnui-body-sm-bold-9SPZK{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-bold-size);line-height:var(--text-body-sm-bold-line-height);font-weight:var(--text-body-sm-bold-weight)}.bnui-body-sm-MOXMI{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-size);line-height:var(--text-body-sm-line-height);font-weight:var(--text-body-sm-weight)}.bnui-description-6roeu{margin:0;font-family:var(--font-sans);font-size:var(--text-description-size);line-height:var(--text-description-line-height);font-weight:var(--text-description-weight)}.bnui-color-default-38dch{color:var(--color-neutral-10)}.bnui-color-white-d9q0c{color:var(--color-neutral-100)}.bnui-color-background-Flq4G{color:var(--text-background)}.bnui-color-surface-80oSA{color:var(--text-surface)}.bnui-color-divider-dark-lGQki{color:var(--text-divider-dark)}.bnui-color-informative-xAFpg{color:var(--text-informative)}.bnui-color-error-jEnPS{color:var(--text-error)}.bnui-color-warning-6lm-Z{color:var(--text-warning)}.bnui-color-success-ThRnA{color:var(--text-success)}.bnui-color-info-PtkS-{color:var(--text-info)}.bnui-color-interactive-b9cqS{color:var(--text-interactive)}.bnui-checkbox-mTFTt{display:inline-flex;box-sizing:border-box;width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-4);border:1px solid transparent;background-color:transparent;padding:0;font-family:var(--font-sans);color:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease;outline:none}.bnui-checkbox-mTFTt:focus-visible{outline:2px solid var(--color-interactive-40);outline-offset:2px}.bnui-checkbox-mTFTt[data-checked]{border-width:2px;border-color:var(--color-neutral-10);background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-checkbox-mTFTt[data-checked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-checked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-40)}.bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-neutral-50)}.bnui-checkbox-mTFTt[data-unchecked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-checkbox-mTFTt[data-invalid],.bnui-checkbox-mTFTt[data-invalid]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-invalid]{border-color:var(--color-error-40)}.bnui-indicator-VOiAE{display:inline-flex;align-items:center;justify-content:center}.bnui-check-6pYVz{width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:2}.bnui-item-qNsgX{display:contents}.bnui-label-JOyrO{display:inline-flex;cursor:pointer;align-items:center;gap:var(--spacing-8);font-family:var(--font-sans);-webkit-user-select:none;user-select:none}.bnui-group-76ZZz{display:inline-flex;box-sizing:border-box}.bnui-column-ev6Qg{flex-direction:column;align-items:flex-start;gap:var(--spacing-8)}.bnui-row-K6-hO{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--spacing-16)}.bnui-textarea-6uYeG{display:block;box-sizing:border-box;min-height:6rem;min-width:20rem;width:100%;border-radius:var(--radius-4);border:1px solid var(--color-neutral-50);background-color:var(--color-neutral-100);padding:var(--spacing-8);resize:none;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-10);outline:none;field-sizing:content;overflow:hidden}.bnui-textarea-6uYeG::placeholder{color:var(--color-neutral-40)}.bnui-textarea-6uYeG:hover{box-shadow:inset 0 0 0 1px var(--color-neutral-50)}.bnui-textarea-6uYeG:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG[data-invalid]{border-color:var(--color-error-40)}.bnui-textarea-6uYeG[data-invalid]:hover{box-shadow:none}.bnui-textarea-6uYeG[data-invalid]:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG:disabled{cursor:not-allowed;opacity:.5}.bnui-inputGroup-csN7g{position:relative;width:100%}.bnui-input-7-Mc5{display:flex;box-sizing:border-box;width:100%;align-items:center;justify-content:space-between;border-radius:var(--radius-4);border:1px solid var(--color-neutral-50);background-color:var(--color-neutral-100);padding:.375rem 4rem .375rem .4375rem;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--spacing-24);color:var(--color-neutral-10);cursor:text;outline:none}.bnui-input-7-Mc5::placeholder{color:var(--color-neutral-30)}.bnui-input-7-Mc5:not(:disabled):hover{box-shadow:inset 0 0 0 1px var(--color-neutral-50)}.bnui-input-7-Mc5:not(:disabled):focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-input-7-Mc5[data-popup-open]{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-input-7-Mc5:disabled{cursor:not-allowed;opacity:.5}.bnui-input-7-Mc5:disabled~.bnui-trigger-OmLpc,.bnui-input-7-Mc5:disabled~.bnui-clear-7uf1z{color:var(--color-neutral-10);cursor:not-allowed;opacity:.5;pointer-events:none}.bnui-input-7-Mc5[data-popup-open][data-popup-side=bottom]{border-bottom-left-radius:0;border-bottom-right-radius:0}.bnui-input-7-Mc5[data-popup-open][data-popup-side=top]{border-top-left-radius:0;border-top-right-radius:0}.bnui-input-7-Mc5[data-invalid]{border-color:var(--color-error-40)}.bnui-input-7-Mc5[data-invalid]:hover{box-shadow:none}.bnui-input-7-Mc5[data-invalid]:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-input-7-Mc5[data-invalid][data-popup-open]{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-trigger-OmLpc{position:absolute;top:50%;right:var(--spacing-8);transform:translateY(-50%);display:flex;width:1.5rem;height:1.5rem;flex-shrink:0;align-items:center;justify-content:center;margin:0;color:var(--color-neutral-10);outline:none}.bnui-clear-7uf1z{position:absolute;top:50%;right:2.25rem;transform:translateY(-50%);display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;margin:0;color:var(--color-neutral-10);outline:none}.bnui-icon-krESh{width:1.25rem;height:1.25rem}.bnui-positioner-Q2F1m{z-index:50;width:var(--anchor-width)}.bnui-popup-1NCxE{display:flex;box-sizing:border-box;flex-direction:column;border-radius:var(--radius-4);border:2px solid var(--color-interactive-40);background-color:var(--color-neutral-100);font-family:var(--font-sans);outline:none}.bnui-popup-1NCxE[data-side=bottom]{border-top-left-radius:0;border-top-right-radius:0}.bnui-popup-1NCxE[data-side=top]{border-bottom-left-radius:0;border-bottom-right-radius:0}.bnui-item-yAkmq{display:flex;box-sizing:border-box;width:100%;align-items:flex-start;padding:var(--spacing-8) var(--spacing-4) var(--spacing-8) var(--spacing-12);outline:none;cursor:default;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-30)}.bnui-item-yAkmq[data-highlighted],.bnui-item-yAkmq[data-selected]{background-color:var(--color-interactive-98);font-weight:var(--text-body-bold-weight);color:var(--color-neutral-10)}.bnui-empty-V8bpF{box-sizing:border-box;width:100%;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-30)}.bnui-empty-V8bpF:not(:empty){padding:var(--spacing-8) var(--spacing-4) var(--spacing-8) var(--spacing-12)}.bnui-trigger-38Xpm{display:flex;box-sizing:border-box;width:100%;align-items:center;justify-content:space-between;border-radius:var(--radius-4);border:1px solid var(--color-neutral-50);background-color:var(--color-neutral-100);padding:.375rem .4375rem;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-10);cursor:pointer;outline:none}.bnui-trigger-38Xpm[data-placeholder-shown]{color:var(--color-neutral-30)}.bnui-trigger-38Xpm:not(:disabled):hover{box-shadow:inset 0 0 0 1px var(--color-neutral-50)}.bnui-trigger-38Xpm:not(:disabled):focus-visible{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-trigger-38Xpm[data-popup-open]{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40);border-bottom-left-radius:0;border-bottom-right-radius:0}.bnui-trigger-38Xpm[data-invalid]{border-color:var(--color-error-40)}.bnui-trigger-38Xpm[data-invalid]:hover{box-shadow:none}.bnui-trigger-38Xpm[data-invalid]:focus-visible{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-trigger-38Xpm[data-invalid][data-popup-open]{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-trigger-38Xpm:disabled{cursor:not-allowed;opacity:.5}.bnui-iconWrap-fM6qo{margin-left:var(--spacing-8);display:flex;width:1.5rem;height:1.5rem;flex-shrink:0;align-items:center;justify-content:center;color:var(--color-neutral-10)}.bnui-chevron-FhAbo{width:1.25rem;height:1.25rem}.bnui-positioner-kU88Q{z-index:50;width:var(--anchor-width)}.bnui-popup-eNosq{display:flex;box-sizing:border-box;flex-direction:column;border-radius:var(--radius-4);border:2px solid var(--color-interactive-40);background-color:var(--color-neutral-100);font-family:var(--font-sans);outline:none}.bnui-popup-eNosq[data-side=bottom]{border-top-left-radius:0;border-top-right-radius:0}.bnui-popup-eNosq[data-side=top]{border-bottom-left-radius:0;border-bottom-right-radius:0}.bnui-list-rnBdZ{display:flex;flex-direction:column}.bnui-item-czzad{display:flex;box-sizing:border-box;width:100%;align-items:flex-start;padding:var(--spacing-8) var(--spacing-4) var(--spacing-8) var(--spacing-12);outline:none;cursor:default;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-30)}.bnui-item-czzad[data-highlighted],.bnui-item-czzad[data-selected]{background-color:var(--color-interactive-98);font-weight:var(--text-body-bold-weight);color:var(--color-neutral-10)}.bnui-container-GujCE{display:flex;box-sizing:border-box;width:100%;flex-direction:column;gap:var(--spacing-4);font-family:var(--font-sans)}.bnui-error-9Pli1{display:flex;align-items:center;gap:var(--spacing-4)}.bnui-errorDot-mVjXf{display:inline-block;width:.5rem;height:.5rem;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-error-40)}.bnui-form-9QnXK{display:flex;box-sizing:border-box;width:100%;flex-direction:column;gap:var(--spacing-24);margin:0;font-family:var(--font-sans)}.bnui-root-oLVBN{--pill-padding: .1875rem;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:var(--radius-full);padding:var(--pill-padding);border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.bnui-root-oLVBN:before{content:"";position:absolute;top:var(--pill-padding);left:var(--pill-padding);width:calc(50% - var(--pill-padding));bottom:var(--pill-padding);border-radius:var(--radius-full);pointer-events:none;transition:transform .15s ease}.bnui-root-oLVBN:focus-visible{outline:2px solid var(--color-interactive-50)}.bnui-hasSelectedSecondOption-LfH49:before{transform:translate(100%)}.bnui-filled-L-AUH{background-color:var(--color-neutral-90)}.bnui-filled-L-AUH:hover{background-color:var(--color-interactive-50)}.bnui-filled-L-AUH:before{background-color:var(--color-neutral-100)}.bnui-stroked-wRb92{background-color:var(--color-neutral-100);border-color:var(--color-neutral-10)}.bnui-stroked-wRb92:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-stroked-wRb92:before{background-color:var(--color-neutral-10)}.bnui-option-Hou7J{position:relative;z-index:1;display:flex;place-items:center;padding:var(--spacing-4);flex-grow:1;transition:color .15s ease}.bnui-filled-L-AUH:hover .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-white)}.bnui-filled-L-AUH .bnui-option-Hou7J:not(.bnui-selectedOption-twuTF){color:var(--color-neutral-50)}.bnui-filled-L-AUH .bnui-selectedOption-twuTF{color:var(--color-neutral-10)}.bnui-stroked-wRb92 .bnui-selectedOption-twuTF{color:var(--color-neutral-100)}.bnui-option-Hou7J svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}.bnui-base-ZhllN{display:inline-flex;box-sizing:border-box;flex-shrink:0;overflow:hidden;border-radius:var(--radius-full);outline:2px solid var(--color-neutral-10);outline-offset:-2px;background-color:var(--color-neutral-70);color:var(--color-neutral-10);-webkit-user-select:none;user-select:none;width:var(--spacing-32);height:var(--spacing-32)}.bnui-image-Ngo7A{width:100%;height:100%;object-fit:cover}.bnui-fallback-Tf3oZ{display:flex;width:100%;height:100%;align-items:flex-start;justify-content:center;padding-top:7px}.bnui-fallback-Tf3oZ svg{flex-shrink:0;width:1.8rem;height:1.8rem}.bnui-fallback-Tf3oZ svg circle,.bnui-fallback-Tf3oZ svg path{fill:var(--color-neutral-100)}
|
|
3
3
|
|
|
4
4
|
}
|