@bekk-basen/neutral-ui-do-not-use 0.0.0-dev.ce52b60 → 0.0.0-dev.df1dfae

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 CHANGED
@@ -116,7 +116,18 @@ Når du lanserer en komponent, husk å:
116
116
  ```ts
117
117
  export { Button, buttonVariants } from "@/components/button/button"
118
118
  ```
119
- 3. Opprett en release på GitHub. Versjonen som publiseres til npm hentes fra git-taggen på releasen (f.eks. tag
120
- 4. `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`.
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.
129
+
130
+ ## Pre-commit hooks
131
+
132
+ Dette prosjektet bruker pre-commit hooks, se
133
+ [dokumentasjon](https://www.notion.so/bekks/Pre-commit-hooks-secret-scanning-28e6bd30854180ab9c32ef639156b5d5).
@@ -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,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ComponentProps, ReactNode } from 'react';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "surface" | "error" | "warning" | "success" | "on-background" | "outline" | "rebel" | "admin" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ type BadgeProps = ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
+ icon?: ReactNode;
8
+ };
9
+ declare function Badge({ className, variant, icon, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
10
+ export { Badge, badgeVariants };
11
+ export type { BadgeProps };
12
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtD,QAAA,MAAM,aAAa;;8EAgBjB,CAAA;AAEF,KAAK,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GACtC,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB,CAAA;AAEH,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAW1E;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA;AAC/B,YAAY,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
2
+ import { FocusEventHandler, Ref } from 'react';
3
+ type ComboboxOption = {
4
+ value: string;
5
+ label: string;
6
+ };
7
+ type ComboboxProps = Omit<ComboboxPrimitive.Root.Props<string, false>, "children" | "items"> & {
8
+ /** The selectable options. Keep the array referentially stable. */
9
+ items: readonly ComboboxOption[];
10
+ placeholder?: string;
11
+ /** Whether a selected value can be cleared with the clear button. */
12
+ clearable?: boolean;
13
+ className?: string;
14
+ /**
15
+ * A ref to the input. Give this to form libraries (e.g. `field.ref` from
16
+ * React Hook Form) so focusing the control works.
17
+ */
18
+ inputRef?: Ref<HTMLInputElement>;
19
+ onFocus?: FocusEventHandler<HTMLInputElement>;
20
+ onBlur?: FocusEventHandler<HTMLInputElement>;
21
+ "aria-label"?: string;
22
+ "aria-labelledby"?: string;
23
+ };
24
+ 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;
25
+ export { Combobox };
26
+ export type { ComboboxProps, ComboboxOption };
27
+ //# 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;AAEvE,OAAO,EAAW,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAA;AAKjE,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,CAAA;AACnB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { Select as SelectPrimitive } from '@base-ui/react/select';
2
+ import { ReactNode } from 'react';
3
+ type SelectOption = {
4
+ value: string;
5
+ label: ReactNode;
6
+ };
7
+ type SelectProps = Omit<SelectPrimitive.Root.Props<string, false>, "children" | "items"> & {
8
+ /** The selectable options. Keep the array referentially stable. */
9
+ items: readonly SelectOption[];
10
+ placeholder?: ReactNode;
11
+ className?: string;
12
+ "aria-label"?: string;
13
+ "aria-labelledby"?: string;
14
+ };
15
+ declare function Select({ items, placeholder, className, disabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
16
+ export { Select };
17
+ export type { SelectProps, SelectOption };
18
+ //# 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;AACjE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,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,2CAgDb;AAED,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Field } from '@base-ui/react/field';
2
+ declare const textareaVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
3
+ type TextareaProps = Omit<Field.Control.Props, "render"> & {
4
+ className?: string;
5
+ };
6
+ declare function Textarea({ className, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
7
+ export { Textarea, textareaVariants };
8
+ export type { TextareaProps };
9
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/form/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAM5C,QAAA,MAAM,gBAAgB,oFAAuB,CAAA;AAE7C,KAAK,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CASvD;AAED,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,CAAA"}
package/dist/index.d.ts CHANGED
@@ -4,10 +4,20 @@ export { Checkbox } from './components/form/checkbox/checkbox';
4
4
  export type { CheckboxProps } from './components/form/checkbox/checkbox';
5
5
  export { CheckboxGroup } from './components/form/checkbox-group/checkbox-group';
6
6
  export type { CheckboxGroupProps } from './components/form/checkbox-group/checkbox-group';
7
+ export { Textarea, textareaVariants } from './components/form/textarea/textarea';
8
+ export type { TextareaProps } from './components/form/textarea/textarea';
9
+ export { Combobox } from './components/form/combobox/combobox';
10
+ export type { ComboboxProps, ComboboxOption, } from './components/form/combobox/combobox';
11
+ export { Select } from './components/form/select/select';
12
+ export type { SelectProps, SelectOption } from './components/form/select/select';
7
13
  export { Field, FieldLabel, FieldDescription, FieldError, } from './components/form/field/field';
8
14
  export type { FieldProps, FieldLabelProps, FieldDescriptionProps, FieldErrorProps, } from './components/form/field/field';
9
15
  export { Form } from './components/form/form/form';
10
16
  export type { FormProps } from './components/form/form/form';
11
17
  export { IconsToggle } from './components/form/icons-toggle/icons-toggle';
12
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';
21
+ export { Badge, badgeVariants } from './components/badge/badge';
22
+ export type { BadgeProps } from './components/badge/badge';
13
23
  //# sourceMappingURL=index.d.ts.map
@@ -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,4BAA4B,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAA;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAA;AAC/E,YAAY,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAA;AAEzF,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"}
1
+ {"version":3,"file":"index.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AE,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC/D,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA"}
package/dist/index.js CHANGED
@@ -1,35 +1,38 @@
1
- import { jsx as o, jsxs as h, Fragment as O } from "react/jsx-runtime";
2
- import { Button as S } from "@base-ui/react/button";
3
- import { cva as N } from "class-variance-authority";
1
+ import { jsx as e, jsxs as b, Fragment as P } from "react/jsx-runtime";
2
+ import { Button as R } from "@base-ui/react/button";
3
+ import { cva as V } from "class-variance-authority";
4
4
  import { clsx as s } from "clsx";
5
- import { Checkbox as C } from "@base-ui/react/checkbox";
6
- import { Field as m } from "@base-ui/react/field";
7
- import { Check as A } from "lucide-react";
8
- import { createContext as B, use as q, useState as D } from "react";
9
- import { CheckboxGroup as H } from "@base-ui/react/checkbox-group";
10
- import { Form as I } from "@base-ui/react/form";
11
- const j = "bnui-base-wpVVq", G = "bnui-primary-OKCHe", K = "bnui-secondary-dazFR", R = "bnui-lg-WgiKr", z = "bnui-sm-0Kb5B", X = "bnui-iconOnly-LsvO8", Z = "bnui-content-q0g4H", M = "bnui-pending-xP-rH", Q = "bnui-spinner-jLkEm", a = {
12
- base: j,
13
- primary: G,
14
- secondary: K,
15
- lg: R,
16
- sm: z,
17
- iconOnly: X,
18
- content: Z,
19
- pending: M,
20
- spinner: Q
21
- }, J = N(a.base, {
5
+ import { Checkbox as B } from "@base-ui/react/checkbox";
6
+ import { Field as k } from "@base-ui/react/field";
7
+ import { Check as j, X as H, ChevronDown as q, UserRound as X } from "lucide-react";
8
+ import { createContext as K, use as M, useMemo as L, useState as Q } 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 m } from "@base-ui/react/select";
12
+ import { Form as W } from "@base-ui/react/form";
13
+ import { Avatar as T } from "@base-ui/react/avatar";
14
+ const U = "bnui-base-wpVVq", J = "bnui-primary-OKCHe", Y = "bnui-secondary-dazFR", _ = "bnui-lg-WgiKr", ee = "bnui-sm-0Kb5B", oe = "bnui-iconOnly-LsvO8", ne = "bnui-content-q0g4H", te = "bnui-pending-xP-rH", re = "bnui-spinner-jLkEm", g = {
15
+ base: U,
16
+ primary: J,
17
+ secondary: Y,
18
+ lg: _,
19
+ sm: ee,
20
+ iconOnly: oe,
21
+ content: ne,
22
+ pending: te,
23
+ spinner: re
24
+ }, ie = V(g.base, {
22
25
  variants: {
23
26
  variant: {
24
- primary: a.primary,
25
- secondary: a.secondary
27
+ primary: g.primary,
28
+ secondary: g.secondary
26
29
  },
27
30
  size: {
28
- lg: a.lg,
29
- sm: a.sm
31
+ lg: g.lg,
32
+ sm: g.sm
30
33
  },
31
34
  iconOnly: {
32
- true: a.iconOnly,
35
+ true: g.iconOnly,
33
36
  false: ""
34
37
  }
35
38
  },
@@ -39,45 +42,45 @@ const j = "bnui-base-wpVVq", G = "bnui-primary-OKCHe", K = "bnui-secondary-dazFR
39
42
  iconOnly: !1
40
43
  }
41
44
  });
42
- function To({
43
- className: n,
44
- variant: e,
45
+ function Oo({
46
+ className: o,
47
+ variant: n,
45
48
  size: t,
46
- iconOnly: c,
47
- isPending: i,
48
- disabled: l,
49
- children: p,
50
- ...y
49
+ iconOnly: a,
50
+ isPending: r,
51
+ disabled: c,
52
+ children: h,
53
+ ...v
51
54
  }) {
52
- return /* @__PURE__ */ o(
53
- S,
55
+ return /* @__PURE__ */ e(
56
+ R,
54
57
  {
55
58
  "data-slot": "button",
56
- disabled: i || l,
57
- "aria-busy": i,
59
+ disabled: r || c,
60
+ "aria-busy": r,
58
61
  className: s(
59
- J({ variant: e, size: t, iconOnly: c }),
60
- i && a.pending,
61
- n
62
+ ie({ variant: n, size: t, iconOnly: a }),
63
+ r && g.pending,
64
+ o
62
65
  ),
63
- ...y,
64
- children: i ? /* @__PURE__ */ h(O, { children: [
65
- /* @__PURE__ */ o("span", { className: a.content, children: p }),
66
- /* @__PURE__ */ o("span", { className: a.spinner, "aria-hidden": "true" })
67
- ] }) : p
66
+ ...v,
67
+ children: r ? /* @__PURE__ */ b(P, { children: [
68
+ /* @__PURE__ */ e("span", { className: g.content, children: h }),
69
+ /* @__PURE__ */ e("span", { className: g.spinner, "aria-hidden": "true" })
70
+ ] }) : h
68
71
  }
69
72
  );
70
73
  }
71
- const V = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", W = "bnui-body-2BdnA", Y = "bnui-description-6roeu", r = {
72
- headline: P,
74
+ const z = K(!1), ae = "bnui-headline-6c9bn", se = "bnui-button-lekqm", ce = "bnui-body-2BdnA", le = "bnui-description-6roeu", i = {
75
+ headline: ae,
73
76
  "headline-sm": "bnui-headline-sm-eesRr",
74
77
  "headline-xs": "bnui-headline-xs-bBHXL",
75
- button: U,
78
+ button: se,
76
79
  "body-bold": "bnui-body-bold-0cir6",
77
- body: W,
80
+ body: ce,
78
81
  "body-sm-bold": "bnui-body-sm-bold-9SPZK",
79
82
  "body-sm": "bnui-body-sm-MOXMI",
80
- description: Y,
83
+ description: le,
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 V = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", W = "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
- }, _ = N("", {
95
+ }, de = V("", {
93
96
  variants: {
94
97
  variant: {
95
- headline: r.headline,
96
- "headline-sm": r["headline-sm"],
97
- "headline-xs": r["headline-xs"],
98
- button: r.button,
99
- "body-bold": r["body-bold"],
100
- body: r.body,
101
- "body-sm-bold": r["body-sm-bold"],
102
- "body-sm": r["body-sm"],
103
- description: r.description
98
+ headline: i.headline,
99
+ "headline-sm": i["headline-sm"],
100
+ "headline-xs": i["headline-xs"],
101
+ button: i.button,
102
+ "body-bold": i["body-bold"],
103
+ body: i.body,
104
+ "body-sm-bold": i["body-sm-bold"],
105
+ "body-sm": i["body-sm"],
106
+ description: i.description
104
107
  },
105
108
  color: {
106
- default: r["color-default"],
107
- white: r["color-white"],
108
- background: r["color-background"],
109
- surface: r["color-surface"],
110
- "divider-dark": r["color-divider-dark"],
111
- informative: r["color-informative"],
112
- error: r["color-error"],
113
- warning: r["color-warning"],
114
- success: r["color-success"],
115
- info: r["color-info"],
116
- interactive: r["color-interactive"],
109
+ default: i["color-default"],
110
+ white: i["color-white"],
111
+ background: i["color-background"],
112
+ surface: i["color-surface"],
113
+ "divider-dark": i["color-divider-dark"],
114
+ informative: i["color-informative"],
115
+ error: i["color-error"],
116
+ warning: i["color-warning"],
117
+ success: i["color-success"],
118
+ info: i["color-info"],
119
+ interactive: i["color-interactive"],
117
120
  inherit: ""
118
121
  }
119
122
  },
@@ -121,7 +124,7 @@ const V = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", W = "bnui-b
121
124
  variant: "body",
122
125
  color: "default"
123
126
  }
124
- }), oo = {
127
+ }), ue = {
125
128
  headline: "h1",
126
129
  "headline-sm": "h2",
127
130
  "headline-xs": "h3",
@@ -132,218 +135,494 @@ const V = B(!1), P = "bnui-headline-6c9bn", U = "bnui-button-lekqm", W = "bnui-b
132
135
  description: "p",
133
136
  button: "span"
134
137
  };
135
- function f({
136
- variant: n = "body",
137
- color: e,
138
+ function I({
139
+ variant: o = "body",
140
+ color: n,
138
141
  as: t,
139
- className: c,
140
- ...i
142
+ className: a,
143
+ ...r
141
144
  }) {
142
- const l = t ?? oo[n];
143
- return /* @__PURE__ */ o(
144
- l,
145
+ const c = t ?? ue[o];
146
+ return /* @__PURE__ */ e(
147
+ c,
145
148
  {
146
149
  "data-slot": "text",
147
- className: s(_({ variant: n, color: e, className: c })),
148
- ...i
150
+ className: s(de({ variant: o, color: n, className: a })),
151
+ ...r
149
152
  }
150
153
  );
151
154
  }
152
- const no = "bnui-checkbox-mTFTt", eo = "bnui-label-JOyrO", ro = "bnui-indicator-VOiAE", to = "bnui-check-6pYVz", io = "bnui-item-qNsgX", u = {
153
- checkbox: no,
154
- label: eo,
155
- indicator: ro,
156
- check: to,
157
- item: io
155
+ const be = "bnui-checkbox-mTFTt", me = "bnui-label-JOyrO", pe = "bnui-indicator-VOiAE", he = "bnui-check-6pYVz", fe = "bnui-item-qNsgX", x = {
156
+ checkbox: be,
157
+ label: me,
158
+ indicator: pe,
159
+ check: he,
160
+ item: fe
158
161
  };
159
- function Ao({ className: n, label: e, ...t }) {
160
- const c = q(V), i = /* @__PURE__ */ o(
161
- C.Root,
162
+ function Fo({ className: o, label: n, ...t }) {
163
+ const a = M(z), r = /* @__PURE__ */ e(
164
+ B.Root,
162
165
  {
163
166
  "data-slot": "checkbox",
164
- className: s(u.checkbox, n),
167
+ className: s(x.checkbox, o),
165
168
  ...t,
166
- children: /* @__PURE__ */ o(
167
- C.Indicator,
169
+ children: /* @__PURE__ */ e(
170
+ B.Indicator,
168
171
  {
169
172
  "data-slot": "checkbox-indicator",
170
- className: u.indicator,
171
- children: /* @__PURE__ */ o(A, { className: u.check })
173
+ className: x.indicator,
174
+ children: /* @__PURE__ */ e(j, { className: x.check })
172
175
  }
173
176
  )
174
177
  }
175
178
  );
176
- if (e === void 0) return i;
177
- const l = /* @__PURE__ */ h(O, { children: [
178
- i,
179
- /* @__PURE__ */ o(f, { variant: "body", as: "span", children: e })
179
+ if (n === void 0) return r;
180
+ const c = /* @__PURE__ */ b(P, { children: [
181
+ r,
182
+ /* @__PURE__ */ e(I, { variant: "body", as: "span", children: n })
180
183
  ] });
181
- return c ? /* @__PURE__ */ o(m.Item, { className: u.item, children: /* @__PURE__ */ o(m.Label, { className: u.label, children: l }) }) : /* @__PURE__ */ o("label", { className: u.label, children: l });
184
+ return a ? /* @__PURE__ */ e(k.Item, { className: x.item, children: /* @__PURE__ */ e(k.Label, { className: x.label, children: c }) }) : /* @__PURE__ */ e("label", { className: x.label, children: c });
182
185
  }
183
- const co = "bnui-group-76ZZz", ao = "bnui-column-ev6Qg", so = "bnui-row-K6-hO", x = {
184
- group: co,
185
- column: ao,
186
- row: so
186
+ const ge = "bnui-group-76ZZz", ve = "bnui-column-ev6Qg", ye = "bnui-row-K6-hO", A = {
187
+ group: ge,
188
+ column: ve,
189
+ row: ye
187
190
  };
188
- function Bo({
189
- className: n,
190
- orientation: e = "row",
191
+ function wo({
192
+ className: o,
193
+ orientation: n = "row",
191
194
  ...t
192
195
  }) {
193
- return /* @__PURE__ */ o(
194
- H,
196
+ return /* @__PURE__ */ e(
197
+ Z,
195
198
  {
196
199
  "data-slot": "checkbox-group",
197
200
  className: s(
198
- x.group,
199
- e === "column" ? x.column : x.row,
200
- n
201
+ A.group,
202
+ n === "column" ? A.column : A.row,
203
+ o
201
204
  ),
202
205
  ...t
203
206
  }
204
207
  );
205
208
  }
206
- const lo = "bnui-container-GujCE", uo = "bnui-error-9Pli1", bo = "bnui-errorDot-mVjXf", g = {
207
- container: lo,
208
- error: uo,
209
- errorDot: bo
209
+ const ke = "bnui-textarea-6uYeG", Ne = {
210
+ textarea: ke
211
+ }, xe = V(Ne.textarea);
212
+ function Co({ className: o, ...n }) {
213
+ return /* @__PURE__ */ e(
214
+ k.Control,
215
+ {
216
+ "data-slot": "textarea",
217
+ render: /* @__PURE__ */ e("textarea", {}),
218
+ className: s(xe(), o),
219
+ ...n
220
+ }
221
+ );
222
+ }
223
+ const $e = "bnui-inputGroup-csN7g", Oe = "bnui-trigger-OmLpc", Fe = "bnui-clear-7uf1z", we = "bnui-input-7-Mc5", Ce = "bnui-icon-krESh", Ve = "bnui-positioner-Q2F1m", Se = "bnui-popup-1NCxE", Ie = "bnui-list-7LeQ6", Te = "bnui-item-yAkmq", Ae = "bnui-empty-V8bpF", u = {
224
+ inputGroup: $e,
225
+ trigger: Oe,
226
+ clear: Fe,
227
+ input: we,
228
+ icon: Ce,
229
+ positioner: Ve,
230
+ popup: Se,
231
+ list: Ie,
232
+ item: Te,
233
+ empty: Ae
234
+ };
235
+ function Vo({
236
+ items: o,
237
+ placeholder: n,
238
+ clearable: t = !0,
239
+ className: a,
240
+ disabled: r,
241
+ inputRef: c,
242
+ onFocus: h,
243
+ onBlur: v,
244
+ "aria-label": y,
245
+ "aria-labelledby": N,
246
+ ...F
247
+ }) {
248
+ const w = L(() => o.map((l) => l.value), [o]), C = L(() => {
249
+ const l = /* @__PURE__ */ new Map();
250
+ for (const f of o) l.set(f.value, f.label);
251
+ return l;
252
+ }, [o]), S = {
253
+ ...y !== void 0 && { "aria-label": y },
254
+ ...N !== void 0 && { "aria-labelledby": N }
255
+ };
256
+ return /* @__PURE__ */ b(
257
+ d.Root,
258
+ {
259
+ autoHighlight: !0,
260
+ items: w,
261
+ disabled: r,
262
+ itemToStringLabel: (l) => C.get(l) ?? l,
263
+ ...F,
264
+ children: [
265
+ /* @__PURE__ */ b(
266
+ d.InputGroup,
267
+ {
268
+ className: s(u.inputGroup, a),
269
+ children: [
270
+ /* @__PURE__ */ e(
271
+ d.Input,
272
+ {
273
+ ref: c,
274
+ onFocus: h,
275
+ onBlur: v,
276
+ placeholder: n,
277
+ ...S,
278
+ className: u.input
279
+ }
280
+ ),
281
+ t && /* @__PURE__ */ e(
282
+ d.Clear,
283
+ {
284
+ "aria-label": "Fjern valgt verdi",
285
+ className: u.clear,
286
+ children: /* @__PURE__ */ e(H, { "aria-hidden": !0, className: u.icon, strokeWidth: 2 })
287
+ }
288
+ ),
289
+ /* @__PURE__ */ e(
290
+ d.Trigger,
291
+ {
292
+ "aria-label": "Vis alternativer",
293
+ className: u.trigger,
294
+ children: /* @__PURE__ */ e(
295
+ d.Icon,
296
+ {
297
+ render: /* @__PURE__ */ e(
298
+ q,
299
+ {
300
+ "aria-hidden": !0,
301
+ className: u.icon,
302
+ strokeWidth: 2
303
+ }
304
+ )
305
+ }
306
+ )
307
+ }
308
+ )
309
+ ]
310
+ }
311
+ ),
312
+ /* @__PURE__ */ e(d.Portal, { children: /* @__PURE__ */ e(
313
+ d.Positioner,
314
+ {
315
+ side: "bottom",
316
+ sideOffset: -2,
317
+ className: u.positioner,
318
+ children: /* @__PURE__ */ b(d.Popup, { className: u.popup, children: [
319
+ /* @__PURE__ */ e(d.Empty, { className: u.empty, children: "Ingen treff" }),
320
+ /* @__PURE__ */ e(d.List, { className: u.list, children: (l) => /* @__PURE__ */ e(
321
+ d.Item,
322
+ {
323
+ value: l,
324
+ className: u.item,
325
+ children: C.get(l)
326
+ },
327
+ l
328
+ ) })
329
+ ] })
330
+ }
331
+ ) })
332
+ ]
333
+ }
334
+ );
335
+ }
336
+ const Ee = "bnui-trigger-38Xpm", Ge = "bnui-chevron-FhAbo", Pe = "bnui-positioner-kU88Q", Be = "bnui-popup-eNosq", Le = "bnui-list-rnBdZ", Re = "bnui-item-czzad", $ = {
337
+ trigger: Ee,
338
+ chevron: Ge,
339
+ positioner: Pe,
340
+ popup: Be,
341
+ list: Le,
342
+ item: Re
343
+ };
344
+ function So({
345
+ items: o,
346
+ placeholder: n,
347
+ className: t,
348
+ disabled: a,
349
+ "aria-label": r,
350
+ "aria-labelledby": c,
351
+ ...h
352
+ }) {
353
+ const v = {
354
+ ...r !== void 0 && { "aria-label": r },
355
+ ...c !== void 0 && { "aria-labelledby": c }
356
+ };
357
+ return /* @__PURE__ */ b(m.Root, { disabled: a, items: o, ...h, children: [
358
+ /* @__PURE__ */ b(
359
+ m.Trigger,
360
+ {
361
+ "data-slot": "select-trigger",
362
+ ...v,
363
+ className: s($.trigger, t),
364
+ children: [
365
+ /* @__PURE__ */ e(m.Value, { placeholder: n }),
366
+ /* @__PURE__ */ e(
367
+ m.Icon,
368
+ {
369
+ render: /* @__PURE__ */ e(
370
+ q,
371
+ {
372
+ "aria-hidden": !0,
373
+ className: $.chevron,
374
+ strokeWidth: 2
375
+ }
376
+ )
377
+ }
378
+ )
379
+ ]
380
+ }
381
+ ),
382
+ /* @__PURE__ */ e(m.Portal, { children: /* @__PURE__ */ e(
383
+ m.Positioner,
384
+ {
385
+ alignItemWithTrigger: !1,
386
+ side: "bottom",
387
+ sideOffset: -2,
388
+ className: $.positioner,
389
+ children: /* @__PURE__ */ e(m.Popup, { className: $.popup, children: /* @__PURE__ */ e(m.List, { className: $.list, children: o.map(({ value: y, label: N }) => /* @__PURE__ */ e(
390
+ m.Item,
391
+ {
392
+ value: y,
393
+ className: $.item,
394
+ children: /* @__PURE__ */ e(m.ItemText, { children: N })
395
+ },
396
+ y
397
+ )) }) })
398
+ }
399
+ ) })
400
+ ] });
401
+ }
402
+ const qe = "bnui-container-GujCE", ze = "bnui-error-9Pli1", De = "bnui-errorDot-mVjXf", G = {
403
+ container: qe,
404
+ error: ze,
405
+ errorDot: De
210
406
  };
211
- function qo({ className: n, ...e }) {
212
- return /* @__PURE__ */ o(V, { value: !0, children: /* @__PURE__ */ o(
213
- m.Root,
407
+ function Io({ className: o, ...n }) {
408
+ return /* @__PURE__ */ e(z, { value: !0, children: /* @__PURE__ */ e(
409
+ k.Root,
214
410
  {
215
411
  "data-slot": "field",
216
- className: s(g.container, n),
217
- ...e
412
+ className: s(G.container, o),
413
+ ...n
218
414
  }
219
415
  ) });
220
416
  }
221
- function Do({
222
- children: n,
223
- nativeLabel: e = !0,
417
+ function To({
418
+ children: o,
419
+ nativeLabel: n = !0,
224
420
  ...t
225
421
  }) {
226
- return /* @__PURE__ */ o(
227
- m.Label,
422
+ return /* @__PURE__ */ e(
423
+ k.Label,
228
424
  {
229
425
  "data-slot": "field-label",
230
- nativeLabel: e,
231
- render: /* @__PURE__ */ o(f, { variant: "body-sm", as: e ? "label" : "span", children: n }),
426
+ nativeLabel: n,
427
+ render: /* @__PURE__ */ e(I, { variant: "body-sm", as: n ? "label" : "span", children: o }),
232
428
  ...t
233
429
  }
234
430
  );
235
431
  }
236
- function Ho({ children: n, ...e }) {
237
- return /* @__PURE__ */ o(
238
- m.Description,
432
+ function Ao({ children: o, ...n }) {
433
+ return /* @__PURE__ */ e(
434
+ k.Description,
239
435
  {
240
436
  "data-slot": "field-description",
241
- render: /* @__PURE__ */ o(f, { variant: "description", color: "informative", children: n }),
242
- ...e
437
+ render: /* @__PURE__ */ e(I, { variant: "description", color: "informative", children: o }),
438
+ ...n
243
439
  }
244
440
  );
245
441
  }
246
- function Io({ children: n, className: e, ...t }) {
247
- return /* @__PURE__ */ o(
248
- m.Error,
442
+ function Eo({ children: o, className: n, ...t }) {
443
+ return /* @__PURE__ */ e(
444
+ k.Error,
249
445
  {
250
446
  "data-slot": "field-error",
251
- className: s(g.error, e),
252
- render: ({ children: c, ...i }) => /* @__PURE__ */ h("div", { ...i, children: [
253
- /* @__PURE__ */ o("span", { "aria-hidden": !0, className: g.errorDot }),
254
- /* @__PURE__ */ o(f, { variant: "description", as: "div", children: n ?? c })
447
+ className: s(G.error, n),
448
+ render: ({ children: a, ...r }) => /* @__PURE__ */ b("div", { ...r, children: [
449
+ /* @__PURE__ */ e("span", { "aria-hidden": !0, className: G.errorDot }),
450
+ /* @__PURE__ */ e(I, { variant: "description", as: "div", children: o ?? a })
255
451
  ] }),
256
452
  ...t
257
453
  }
258
454
  );
259
455
  }
260
- const mo = "bnui-form-9QnXK", po = {
261
- form: mo
456
+ const je = "bnui-form-9QnXK", He = {
457
+ form: je
262
458
  };
263
- function jo({ className: n, ...e }) {
264
- return /* @__PURE__ */ o(
265
- I,
459
+ function Go({ className: o, ...n }) {
460
+ return /* @__PURE__ */ e(
461
+ W,
266
462
  {
267
463
  "data-slot": "form",
268
- className: s(po.form, n),
269
- ...e
464
+ className: s(He.form, o),
465
+ ...n
270
466
  }
271
467
  );
272
468
  }
273
- const ho = "bnui-root-oLVBN", fo = "bnui-hasSelectedSecondOption-LfH49", yo = "bnui-filled-L-AUH", vo = "bnui-stroked-wRb92", ko = "bnui-option-Hou7J", xo = "bnui-selectedOption-twuTF", b = {
274
- root: ho,
275
- hasSelectedSecondOption: fo,
276
- filled: yo,
277
- stroked: vo,
278
- option: ko,
279
- selectedOption: xo
469
+ const Xe = "bnui-root-oLVBN", Ke = "bnui-hasSelectedSecondOption-LfH49", Me = "bnui-filled-L-AUH", Qe = "bnui-stroked-wRb92", Ze = "bnui-option-Hou7J", We = "bnui-selectedOption-twuTF", O = {
470
+ root: Xe,
471
+ hasSelectedSecondOption: Ke,
472
+ filled: Me,
473
+ stroked: Qe,
474
+ option: Ze,
475
+ selectedOption: We
280
476
  };
281
- function Go({
282
- options: n,
283
- title: e,
477
+ function Po({
478
+ options: o,
479
+ title: n,
284
480
  variant: t = "filled",
285
- value: c,
286
- defaultValue: i,
287
- onValueChange: l,
288
- name: p,
289
- className: y
481
+ value: a,
482
+ defaultValue: r,
483
+ onValueChange: c,
484
+ name: h,
485
+ className: v
290
486
  }) {
291
- const [$, E] = D(
292
- i ?? n[0].value
293
- ), v = c ?? $, k = n[0].value === v ? 0 : 1, F = n[k], w = n[k === 0 ? 1 : 0];
294
- function L() {
295
- const d = w.value;
296
- c === void 0 && E(d), l?.(d);
487
+ const [y, N] = Q(
488
+ r ?? o[0].value
489
+ ), F = a ?? y, w = o[0].value === F ? 0 : 1, C = o[w], S = o[w === 0 ? 1 : 0];
490
+ function l() {
491
+ const f = S.value;
492
+ a === void 0 && N(f), c?.(f);
297
493
  }
298
- return /* @__PURE__ */ h(O, { children: [
299
- p && /* @__PURE__ */ o("input", { type: "hidden", name: p, value: v }),
300
- /* @__PURE__ */ o(
301
- S,
494
+ return /* @__PURE__ */ b(P, { children: [
495
+ h && /* @__PURE__ */ e("input", { type: "hidden", name: h, value: F }),
496
+ /* @__PURE__ */ e(
497
+ R,
302
498
  {
303
- onClick: L,
304
- "aria-label": `Bytt ${e} mellom ${F.label} og ${w.label}, valgt: ${F.label}`,
499
+ onClick: l,
500
+ "aria-label": `Bytt ${n} mellom ${C.label} og ${S.label}, valgt: ${C.label}`,
305
501
  className: s(
306
- go({ variant: t }),
307
- k === 1 && b.hasSelectedSecondOption,
308
- y
502
+ Ue({ variant: t }),
503
+ w === 1 && O.hasSelectedSecondOption,
504
+ v
309
505
  ),
310
- children: n.map((d) => {
311
- const T = d.value === v;
312
- return /* @__PURE__ */ o(
506
+ children: o.map((f) => {
507
+ const D = f.value === F;
508
+ return /* @__PURE__ */ e(
313
509
  "span",
314
510
  {
315
511
  "aria-hidden": "true",
316
- className: s(b.option, T && b.selectedOption),
317
- children: d.icon
512
+ className: s(O.option, D && O.selectedOption),
513
+ children: f.icon
318
514
  },
319
- d.value
515
+ f.value
320
516
  );
321
517
  })
322
518
  }
323
519
  )
324
520
  ] });
325
521
  }
326
- const go = N(b.root, {
522
+ const Ue = V(O.root, {
327
523
  variants: {
328
524
  variant: {
329
- filled: b.filled,
330
- stroked: b.stroked
525
+ filled: O.filled,
526
+ stroked: O.stroked
331
527
  }
332
528
  },
333
529
  defaultVariants: {
334
530
  variant: "filled"
335
531
  }
532
+ }), Je = "bnui-base-ZhllN", Ye = "bnui-image-Ngo7A", _e = "bnui-fallback-Tf3oZ", E = {
533
+ base: Je,
534
+ image: Ye,
535
+ fallback: _e
536
+ };
537
+ function Bo({ src: o, alt: n, className: t, ...a }) {
538
+ return /* @__PURE__ */ b(
539
+ T.Root,
540
+ {
541
+ "data-slot": "avatar",
542
+ className: s(E.base, t),
543
+ ...a,
544
+ children: [
545
+ o !== void 0 && /* @__PURE__ */ e(
546
+ T.Image,
547
+ {
548
+ "data-slot": "avatar-image",
549
+ src: o,
550
+ alt: n,
551
+ loading: "lazy",
552
+ className: E.image
553
+ }
554
+ ),
555
+ /* @__PURE__ */ e(
556
+ T.Fallback,
557
+ {
558
+ "data-slot": "avatar-fallback",
559
+ className: E.fallback,
560
+ children: /* @__PURE__ */ e(X, {})
561
+ }
562
+ )
563
+ ]
564
+ }
565
+ );
566
+ }
567
+ const eo = "bnui-base-m6PQT", oo = "bnui-label-a-7uJ", no = "bnui-surface-i2g93", to = "bnui-error-d9-dl", ro = "bnui-warning-zVE2t", io = "bnui-success-RlPqD", ao = "bnui-outline-2sj36", so = "bnui-rebel-BsA71", co = "bnui-admin-7AoFX", p = {
568
+ base: eo,
569
+ label: oo,
570
+ surface: no,
571
+ "on-background": "bnui-on-background-8EsKc",
572
+ error: to,
573
+ warning: ro,
574
+ success: io,
575
+ outline: ao,
576
+ rebel: so,
577
+ admin: co
578
+ }, lo = V(p.base, {
579
+ variants: {
580
+ variant: {
581
+ surface: p.surface,
582
+ "on-background": p["on-background"],
583
+ error: p.error,
584
+ warning: p.warning,
585
+ success: p.success,
586
+ outline: p.outline,
587
+ rebel: p.rebel,
588
+ admin: p.admin
589
+ }
590
+ },
591
+ defaultVariants: {
592
+ variant: "surface"
593
+ }
336
594
  });
595
+ function Lo({ className: o, variant: n, icon: t, children: a, ...r }) {
596
+ return /* @__PURE__ */ b(
597
+ "span",
598
+ {
599
+ "data-slot": "badge",
600
+ className: s(lo({ variant: n, className: o })),
601
+ ...r,
602
+ children: [
603
+ t,
604
+ /* @__PURE__ */ e("span", { className: p.label, children: a })
605
+ ]
606
+ }
607
+ );
608
+ }
337
609
  export {
338
- To as Button,
339
- Ao as Checkbox,
340
- Bo as CheckboxGroup,
341
- qo as Field,
342
- Ho as FieldDescription,
343
- Io as FieldError,
344
- Do as FieldLabel,
345
- jo as Form,
346
- Go as IconsToggle,
347
- J as buttonVariants
610
+ Bo as Avatar,
611
+ Lo as Badge,
612
+ Oo as Button,
613
+ Fo as Checkbox,
614
+ wo as CheckboxGroup,
615
+ Vo as Combobox,
616
+ Io as Field,
617
+ Ao as FieldDescription,
618
+ Eo as FieldError,
619
+ To as FieldLabel,
620
+ Go as Form,
621
+ Po as IconsToggle,
622
+ So as Select,
623
+ Co as Textarea,
624
+ lo as badgeVariants,
625
+ ie as buttonVariants,
626
+ xe as textareaVariants
348
627
  };
349
628
  //# 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/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 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","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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,UAAA6D,EAAO;AAAA,YAAA;AAAA,YAJHA,EAAO;AAAA,UAAA;AAAA,QAOlB,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GACF;AAEJ;AAIA,MAAMD,KAAsB7D,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","../src/components/badge/badge.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 { 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\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 disabled={disabled}\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\n className={clsx(styles.inputGroup, className)}\n >\n <ComboboxPrimitive.Input\n ref={inputRef}\n onFocus={onFocus}\n onBlur={onBlur}\n placeholder={placeholder}\n {...labelProps}\n className={styles.input}\n />\n {clearable && (\n <ComboboxPrimitive.Clear\n aria-label=\"Fjern valgt verdi\"\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 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 className={styles.list}>\n {(value: string) => (\n <ComboboxPrimitive.Item\n key={value}\n value={value}\n className={styles.item}\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 }\nexport type { ComboboxProps, ComboboxOption }\n","import { Select as SelectPrimitive } from \"@base-ui/react/select\"\nimport { type ReactNode } from \"react\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./select.module.css\"\nimport { ChevronDown } from \"lucide-react\"\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 {...labelProps}\n className={clsx(styles.trigger, className)}\n >\n <SelectPrimitive.Value placeholder={placeholder} />\n <SelectPrimitive.Icon\n render={\n <ChevronDown\n aria-hidden\n className={styles.chevron}\n strokeWidth={2}\n />\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={styles.item}\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 }\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","import { cva, type VariantProps } from \"class-variance-authority\"\nimport type { ComponentProps, ReactNode } from \"react\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./badge.module.css\"\n\nconst badgeVariants = cva(styles.base, {\n variants: {\n variant: {\n surface: styles.surface,\n \"on-background\": styles[\"on-background\"],\n error: styles.error,\n warning: styles.warning,\n success: styles.success,\n outline: styles.outline,\n rebel: styles.rebel,\n admin: styles.admin,\n },\n },\n defaultVariants: {\n variant: \"surface\",\n },\n})\n\ntype BadgeProps = ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & {\n icon?: ReactNode\n }\n\nfunction Badge({ className, variant, icon, children, ...props }: BadgeProps) {\n return (\n <span\n data-slot=\"badge\"\n className={clsx(badgeVariants({ variant, className }))}\n {...props}\n >\n {icon}\n <span className={styles.label}>{children}</span>\n </span>\n )\n}\n\nexport { Badge, badgeVariants }\nexport type { BadgeProps }\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","Combobox","items","placeholder","clearable","inputRef","onFocus","onBlur","ariaLabel","ariaLabelledby","values","useMemo","item","labelMap","map","labelProps","ComboboxPrimitive","itemValue","X","ChevronDown","value","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","badgeVariants","Badge","icon"],"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,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EAAO;AAAA,IAAA;AAAA,EAChB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAOD,SAAS8F,GAAM,EAAE,WAAA5F,GAAW,SAAAC,GAAS,MAAA4F,GAAM,UAAAvF,GAAU,GAAGC,KAAqB;AAC3E,SACE,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWD,EAAKiF,GAAc,EAAE,SAAA1F,GAAS,WAAAD,EAAA,CAAW,CAAC;AAAA,MACpD,GAAGO;AAAA,MAEH,UAAA;AAAA,QAAAsF;AAAA,QACD,gBAAArF,EAAC,QAAA,EAAK,WAAWV,EAAO,OAAQ,UAAAQ,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG/C;"}
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-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-2: .125rem;--spacing-4: .25rem;--spacing-6: .375rem;--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.5rem;--icon-stroke-width-lg: 1.5;--icon-size-sm: 1rem;--icon-stroke-width-sm: 2.25}:root{--background: var(--color-neutral-100);--text-background: var(--color-neutral-0);--surface: var(--color-neutral-90);--text-surface: var(--color-neutral-0);--on-background: var(--color-neutral-10);--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);--divider: var(--color-neutral-40);--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-40);--background-interactive: var(--color-interactive-98);--text-interactive: var(--color-interactive-10);--rebel: var(--color-rebel-95);--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;--text-badge-size: 1rem;--text-badge-line-height: .75rem;--text-badge-weight: 400;--badge-height: 1.5rem}.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{outline:2px solid var(--color-interactive-40);outline-offset:0}.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{outline:1px solid var(--color-neutral-50);outline-offset:-2px}.bnui-textarea-6uYeG:focus{border-color:var(--color-interactive-40);outline:1px solid var(--color-interactive-40);outline-offset:-2px}.bnui-textarea-6uYeG[data-invalid]{border-color:var(--color-error-40)}.bnui-textarea-6uYeG[data-invalid]:hover{outline:none}.bnui-textarea-6uYeG[data-invalid]:focus{border-color:var(--color-interactive-40);outline:1px solid var(--color-interactive-40);outline-offset:-2px}.bnui-textarea-6uYeG:disabled{cursor:not-allowed;opacity:.5}.bnui-inputGroup-csN7g{display:flex;box-sizing:border-box;width:100%;border:1px solid var(--border-divider);border-radius:var(--radius-4);min-height:31px;padding:0 var(--spacing-8)}.bnui-inputGroup-csN7g[data-disabled],.bnui-inputGroup-csN7g[data-readonly]{border:1px solid var(--on-background);opacity:.4}:is(.bnui-inputGroup-csN7g[data-disabled],.bnui-inputGroup-csN7g[data-readonly]) .bnui-trigger-OmLpc,:is(.bnui-inputGroup-csN7g[data-disabled],.bnui-inputGroup-csN7g[data-readonly]) .bnui-clear-7uf1z{cursor:not-allowed;pointer-events:none}:is(.bnui-inputGroup-csN7g[data-disabled],.bnui-inputGroup-csN7g[data-readonly]) .bnui-input-7-Mc5{cursor:not-allowed}.bnui-inputGroup-csN7g:hover{outline:2px solid var(--border-divider);outline-offset:-2px}.bnui-inputGroup-csN7g:hover[data-disabled],.bnui-inputGroup-csN7g:hover[data-invalid],.bnui-inputGroup-csN7g:hover[data-readonly]{outline:none}.bnui-inputGroup-csN7g:focus-within{outline:2px solid var(--interactive);outline-offset:-2px}.bnui-input-7-Mc5{border:none;outline:none;width:100%;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);padding:0}.bnui-inputGroup-csN7g[data-popup-open][data-popup-side=bottom]{border-bottom-left-radius:0;border-bottom-right-radius:0}.bnui-inputGroup-csN7g[data-popup-open][data-popup-side=top]{border-top-left-radius:0;border-top-right-radius:0}.bnui-inputGroup-csN7g[data-invalid]{border-color:var(--error)}.bnui-trigger-OmLpc,.bnui-clear-7uf1z{display:flex;align-items:center;padding:0;border:none;background:none;color:var(--on-background);cursor:pointer;outline:none}.bnui-clear-7uf1z{margin-right:var(--spacing-8)}.bnui-icon-krESh{width:var(--icon-size-sm);height:var(--icon-size-sm)}.bnui-positioner-Q2F1m{z-index:50;width:var(--anchor-width)}.bnui-popup-1NCxE{box-sizing:border-box;border-radius:var(--radius-4);border:2px solid var(--interactive);background-color:var(--background);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-list-7LeQ6{overflow-y:auto;max-height:16rem}.bnui-item-yAkmq{box-sizing:border-box;outline:none;cursor:default;font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--text-informative);display:flex;align-items:center;min-height:35px;padding:0 var(--spacing-4) 0 var(--spacing-12)}.bnui-item-yAkmq[data-highlighted],.bnui-item-yAkmq[data-selected]{background-color:var(--background-interactive);font-weight:var(--text-body-bold-weight);color:var(--on-background)}.bnui-empty-V8bpF{box-sizing:border-box;line-height:var(--text-body-line-height);color:var(--text-informative)}.bnui-empty-V8bpF:not(:empty){padding:var(--spacing-8) var(--spacing-4) var(--spacing-8) var(--spacing-12)}.bnui-trigger-38Xpm{width:100%;display:flex;border:1px solid var(--border-divider);border-radius:var(--radius-4);align-items:center;justify-content:space-between;background-color:var(--background);font-family:var(--font-sans);font-size:var(--text-body-size);color:var(--on-background);line-height:var(--text-body-line-height);cursor:pointer;outline-offset:-2px;min-height:31px;padding:0 var(--spacing-8)}.bnui-trigger-38Xpm[data-placeholder]{color:var(--text-informative)}.bnui-trigger-38Xpm:disabled,.bnui-trigger-38Xpm[data-readonly]{cursor:not-allowed;opacity:.5}.bnui-trigger-38Xpm:hover{outline:2px solid var(--border-divider)}.bnui-trigger-38Xpm:hover:disabled,.bnui-trigger-38Xpm:hover[data-readonly]{outline:none}.bnui-trigger-38Xpm:focus-visible{outline:2px solid var(--interactive)}.bnui-trigger-38Xpm[data-popup-open]{outline:2px solid var(--interactive)}.bnui-trigger-38Xpm[data-popup-open][data-popup-side=bottom]{border-bottom-left-radius:0;border-bottom-right-radius:0}.bnui-trigger-38Xpm[data-popup-open][data-popup-side=top]{border-top-left-radius:0;border-top-right-radius:0}.bnui-trigger-38Xpm[data-invalid]{border-color:var(--error)}.bnui-chevron-FhAbo{width:var(--icon-size-sm);height:var(--icon-size-sm);color:var(--on-background)}.bnui-positioner-kU88Q{z-index:50;width:var(--anchor-width)}.bnui-popup-eNosq{box-sizing:border-box;border-radius:var(--radius-4);border:2px solid var(--interactive);background-color:var(--background);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{overflow-y:auto;max-height:16rem}.bnui-item-czzad{box-sizing:border-box;outline:none;cursor:default;font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--text-informative);display:flex;align-items:center;min-height:35px;padding:0 var(--spacing-4) 0 var(--spacing-12)}.bnui-item-czzad[data-highlighted],.bnui-item-czzad[data-selected]{background-color:var(--background-interactive);font-weight:var(--text-body-bold-weight);color:var(--on-background)}.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:2.375rem;height:2.375rem}.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:var(--spacing-8)}.bnui-fallback-Tf3oZ svg{flex-shrink:0;width:2.125rem;height:2.125rem}.bnui-fallback-Tf3oZ svg circle,.bnui-fallback-Tf3oZ svg path{fill:var(--color-neutral-100)}.bnui-base-m6PQT{display:inline-flex;box-sizing:border-box;align-items:center;gap:var(--spacing-4);min-height:var(--badge-height);padding:0 var(--spacing-8);border-radius:var(--radius-4);background-color:var(--badge-background);outline:1px solid var(--badge-border, transparent);outline-offset:-1px;color:var(--badge-foreground);font-family:var(--font-sans);font-size:var(--text-badge-size);font-weight:var(--text-badge-weight);text-transform:uppercase;white-space:nowrap;will-change:transform}.bnui-label-a-7uJ{line-height:var(--text-badge-line-height)}@supports (text-box: trim-both cap alphabetic){.bnui-label-a-7uJ{line-height:1;text-box:trim-both cap alphabetic}}.bnui-base-m6PQT svg{width:var(--icon-size-sm);height:var(--icon-size-sm);flex-shrink:0;stroke-width:var(--icon-stroke-width-sm)}.bnui-surface-i2g93{--badge-background: var(--surface);--badge-foreground: var(--on-background);--badge-border: var(--divider)}.bnui-on-background-8EsKc{--badge-background: var(--on-background);--badge-foreground: var(--surface)}.bnui-error-d9-dl{--badge-background: var(--error);--badge-foreground: var(--color-white)}.bnui-warning-zVE2t{--badge-background: var(--warning);--badge-foreground: var(--on-background)}.bnui-success-RlPqD{--badge-background: var(--success);--badge-foreground: var(--color-white)}.bnui-outline-2sj36{--badge-background: var(--background);--badge-foreground: var(--on-background);--badge-border: var(--divider)}.bnui-rebel-BsA71{--badge-background: var(--rebel);--badge-foreground: var(--on-background);--badge-border: var(--on-background)}.bnui-admin-7AoFX{--badge-background: var(--color-blue);--badge-foreground: var(--background)}
3
3
 
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bekk-basen/neutral-ui-do-not-use",
3
- "version": "0.0.0-dev.ce52b60",
3
+ "version": "0.0.0-dev.df1dfae",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/bekk/bekk-neutral-ui"
@@ -36,7 +36,8 @@
36
36
  "format-check": "prettier --check \"**/*.{ts,tsx}\"",
37
37
  "prepack": "npm run build:lib",
38
38
  "type-check": "tsc --build",
39
- "preview": "vite preview"
39
+ "preview": "vite preview",
40
+ "prepare": "husky"
40
41
  },
41
42
  "dependencies": {
42
43
  "@base-ui/react": "1.7.0",
@@ -61,12 +62,13 @@
61
62
  "eslint-plugin-react-hooks": "7.1.1",
62
63
  "eslint-plugin-react-refresh": "0.5.2",
63
64
  "globals": "16.5.0",
65
+ "husky": "9.1.7",
64
66
  "prettier": "3.8.3",
65
67
  "react": "19.2.5",
66
68
  "react-dom": "19.2.5",
67
69
  "typescript": "5.9.3",
68
70
  "typescript-eslint": "8.59.2",
69
- "vite": "7.3.2",
71
+ "vite": "7.3.8",
70
72
  "vite-plugin-dts": "5.0.1"
71
73
  },
72
74
  "allowScripts": {