@bekk-basen/neutral-ui-do-not-use 0.0.0-dev.cf17fda → 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
@@ -126,3 +126,8 @@ export { Button, buttonVariants } from "@/components/button/button"
126
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`.
127
127
 
128
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,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"}
package/dist/index.d.ts CHANGED
@@ -18,4 +18,6 @@ export { IconsToggle } from './components/form/icons-toggle/icons-toggle';
18
18
  export type { IconsToggleProps } from './components/form/icons-toggle/icons-toggle';
19
19
  export { Avatar } from './components/avatar/avatar';
20
20
  export type { AvatarProps } from './components/avatar/avatar';
21
+ export { Badge, badgeVariants } from './components/badge/badge';
22
+ export type { BadgeProps } from './components/badge/badge';
21
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,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAChF,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAExE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAA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C,CAAA;AAC9D,YAAY,EACV,aAAa,EACb,cAAc,GACf,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACxD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,GACX,MAAM,+BAA+B,CAAA;AACtC,YAAY,EACV,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,eAAe,GAChB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AACzE,YAAY,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC/D,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA"}
package/dist/index.js CHANGED
@@ -1,38 +1,38 @@
1
- import { jsx as e, jsxs as m, Fragment as G } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as b, Fragment as P } from "react/jsx-runtime";
2
2
  import { Button as R } from "@base-ui/react/button";
3
- import { cva as w } from "class-variance-authority";
4
- import { clsx as l } from "clsx";
5
- import { Checkbox as L } from "@base-ui/react/checkbox";
6
- import { Field as v } from "@base-ui/react/field";
7
- import { Check as D, X as H, ChevronDown as q, UserRound as j } from "lucide-react";
8
- import { createContext as M, use as X, useMemo as P, useState as Z } from "react";
9
- import { CheckboxGroup as K } from "@base-ui/react/checkbox-group";
3
+ import { cva as V } from "class-variance-authority";
4
+ import { clsx as s } from "clsx";
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
10
  import { Combobox as d } from "@base-ui/react/combobox";
11
- import { Select as b } from "@base-ui/react/select";
12
- import { Form as Q } from "@base-ui/react/form";
13
- import { Avatar as I } from "@base-ui/react/avatar";
14
- const W = "bnui-base-wpVVq", U = "bnui-primary-OKCHe", J = "bnui-secondary-dazFR", Y = "bnui-lg-WgiKr", _ = "bnui-sm-0Kb5B", ee = "bnui-iconOnly-LsvO8", oe = "bnui-content-q0g4H", ne = "bnui-pending-xP-rH", te = "bnui-spinner-jLkEm", f = {
15
- base: W,
16
- primary: U,
17
- secondary: J,
18
- lg: Y,
19
- sm: _,
20
- iconOnly: ee,
21
- content: oe,
22
- pending: ne,
23
- spinner: te
24
- }, re = w(f.base, {
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, {
25
25
  variants: {
26
26
  variant: {
27
- primary: f.primary,
28
- secondary: f.secondary
27
+ primary: g.primary,
28
+ secondary: g.secondary
29
29
  },
30
30
  size: {
31
- lg: f.lg,
32
- sm: f.sm
31
+ lg: g.lg,
32
+ sm: g.sm
33
33
  },
34
34
  iconOnly: {
35
- true: f.iconOnly,
35
+ true: g.iconOnly,
36
36
  false: ""
37
37
  }
38
38
  },
@@ -42,45 +42,45 @@ const W = "bnui-base-wpVVq", U = "bnui-primary-OKCHe", J = "bnui-secondary-dazFR
42
42
  iconOnly: !1
43
43
  }
44
44
  });
45
- function mo({
45
+ function Oo({
46
46
  className: o,
47
47
  variant: n,
48
- size: r,
48
+ size: t,
49
49
  iconOnly: a,
50
- isPending: i,
51
- disabled: s,
52
- children: p,
53
- ...g
50
+ isPending: r,
51
+ disabled: c,
52
+ children: h,
53
+ ...v
54
54
  }) {
55
55
  return /* @__PURE__ */ e(
56
56
  R,
57
57
  {
58
58
  "data-slot": "button",
59
- disabled: i || s,
60
- "aria-busy": i,
61
- className: l(
62
- re({ variant: n, size: r, iconOnly: a }),
63
- i && f.pending,
59
+ disabled: r || c,
60
+ "aria-busy": r,
61
+ className: s(
62
+ ie({ variant: n, size: t, iconOnly: a }),
63
+ r && g.pending,
64
64
  o
65
65
  ),
66
- ...g,
67
- children: i ? /* @__PURE__ */ m(G, { children: [
68
- /* @__PURE__ */ e("span", { className: f.content, children: p }),
69
- /* @__PURE__ */ e("span", { className: f.spinner, "aria-hidden": "true" })
70
- ] }) : 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
71
71
  }
72
72
  );
73
73
  }
74
- const z = M(!1), ie = "bnui-headline-6c9bn", ae = "bnui-button-lekqm", se = "bnui-body-2BdnA", ce = "bnui-description-6roeu", t = {
75
- headline: ie,
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,
76
76
  "headline-sm": "bnui-headline-sm-eesRr",
77
77
  "headline-xs": "bnui-headline-xs-bBHXL",
78
- button: ae,
78
+ button: se,
79
79
  "body-bold": "bnui-body-bold-0cir6",
80
- body: se,
80
+ body: ce,
81
81
  "body-sm-bold": "bnui-body-sm-bold-9SPZK",
82
82
  "body-sm": "bnui-body-sm-MOXMI",
83
- description: ce,
83
+ description: le,
84
84
  "color-default": "bnui-color-default-38dch",
85
85
  "color-white": "bnui-color-white-d9q0c",
86
86
  "color-background": "bnui-color-background-Flq4G",
@@ -92,31 +92,31 @@ const z = M(!1), ie = "bnui-headline-6c9bn", ae = "bnui-button-lekqm", se = "bnu
92
92
  "color-success": "bnui-color-success-ThRnA",
93
93
  "color-info": "bnui-color-info-PtkS-",
94
94
  "color-interactive": "bnui-color-interactive-b9cqS"
95
- }, le = w("", {
95
+ }, de = V("", {
96
96
  variants: {
97
97
  variant: {
98
- headline: t.headline,
99
- "headline-sm": t["headline-sm"],
100
- "headline-xs": t["headline-xs"],
101
- button: t.button,
102
- "body-bold": t["body-bold"],
103
- body: t.body,
104
- "body-sm-bold": t["body-sm-bold"],
105
- "body-sm": t["body-sm"],
106
- description: t.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
107
107
  },
108
108
  color: {
109
- default: t["color-default"],
110
- white: t["color-white"],
111
- background: t["color-background"],
112
- surface: t["color-surface"],
113
- "divider-dark": t["color-divider-dark"],
114
- informative: t["color-informative"],
115
- error: t["color-error"],
116
- warning: t["color-warning"],
117
- success: t["color-success"],
118
- info: t["color-info"],
119
- interactive: t["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"],
120
120
  inherit: ""
121
121
  }
122
122
  },
@@ -124,7 +124,7 @@ const z = M(!1), ie = "bnui-headline-6c9bn", ae = "bnui-button-lekqm", se = "bnu
124
124
  variant: "body",
125
125
  color: "default"
126
126
  }
127
- }), de = {
127
+ }), ue = {
128
128
  headline: "h1",
129
129
  "headline-sm": "h2",
130
130
  "headline-xs": "h3",
@@ -135,150 +135,150 @@ const z = M(!1), ie = "bnui-headline-6c9bn", ae = "bnui-button-lekqm", se = "bnu
135
135
  description: "p",
136
136
  button: "span"
137
137
  };
138
- function V({
138
+ function I({
139
139
  variant: o = "body",
140
140
  color: n,
141
- as: r,
141
+ as: t,
142
142
  className: a,
143
- ...i
143
+ ...r
144
144
  }) {
145
- const s = r ?? de[o];
145
+ const c = t ?? ue[o];
146
146
  return /* @__PURE__ */ e(
147
- s,
147
+ c,
148
148
  {
149
149
  "data-slot": "text",
150
- className: l(le({ variant: o, color: n, className: a })),
151
- ...i
150
+ className: s(de({ variant: o, color: n, className: a })),
151
+ ...r
152
152
  }
153
153
  );
154
154
  }
155
- const ue = "bnui-checkbox-mTFTt", be = "bnui-label-JOyrO", me = "bnui-indicator-VOiAE", pe = "bnui-check-6pYVz", he = "bnui-item-qNsgX", N = {
156
- checkbox: ue,
157
- label: be,
158
- indicator: me,
159
- check: pe,
160
- item: he
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
161
161
  };
162
- function po({ className: o, label: n, ...r }) {
163
- const a = X(z), i = /* @__PURE__ */ e(
164
- L.Root,
162
+ function Fo({ className: o, label: n, ...t }) {
163
+ const a = M(z), r = /* @__PURE__ */ e(
164
+ B.Root,
165
165
  {
166
166
  "data-slot": "checkbox",
167
- className: l(N.checkbox, o),
168
- ...r,
167
+ className: s(x.checkbox, o),
168
+ ...t,
169
169
  children: /* @__PURE__ */ e(
170
- L.Indicator,
170
+ B.Indicator,
171
171
  {
172
172
  "data-slot": "checkbox-indicator",
173
- className: N.indicator,
174
- children: /* @__PURE__ */ e(D, { className: N.check })
173
+ className: x.indicator,
174
+ children: /* @__PURE__ */ e(j, { className: x.check })
175
175
  }
176
176
  )
177
177
  }
178
178
  );
179
- if (n === void 0) return i;
180
- const s = /* @__PURE__ */ m(G, { children: [
181
- i,
182
- /* @__PURE__ */ e(V, { variant: "body", as: "span", children: n })
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 })
183
183
  ] });
184
- return a ? /* @__PURE__ */ e(v.Item, { className: N.item, children: /* @__PURE__ */ e(v.Label, { className: N.label, children: s }) }) : /* @__PURE__ */ e("label", { className: N.label, children: s });
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 });
185
185
  }
186
- const fe = "bnui-group-76ZZz", ge = "bnui-column-ev6Qg", ye = "bnui-row-K6-hO", T = {
187
- group: fe,
188
- column: ge,
186
+ const ge = "bnui-group-76ZZz", ve = "bnui-column-ev6Qg", ye = "bnui-row-K6-hO", A = {
187
+ group: ge,
188
+ column: ve,
189
189
  row: ye
190
190
  };
191
- function ho({
191
+ function wo({
192
192
  className: o,
193
193
  orientation: n = "row",
194
- ...r
194
+ ...t
195
195
  }) {
196
196
  return /* @__PURE__ */ e(
197
- K,
197
+ Z,
198
198
  {
199
199
  "data-slot": "checkbox-group",
200
- className: l(
201
- T.group,
202
- n === "column" ? T.column : T.row,
200
+ className: s(
201
+ A.group,
202
+ n === "column" ? A.column : A.row,
203
203
  o
204
204
  ),
205
- ...r
205
+ ...t
206
206
  }
207
207
  );
208
208
  }
209
- const ve = "bnui-textarea-6uYeG", ke = {
210
- textarea: ve
211
- }, Ne = w(ke.textarea);
212
- function fo({ className: o, ...n }) {
209
+ const ke = "bnui-textarea-6uYeG", Ne = {
210
+ textarea: ke
211
+ }, xe = V(Ne.textarea);
212
+ function Co({ className: o, ...n }) {
213
213
  return /* @__PURE__ */ e(
214
- v.Control,
214
+ k.Control,
215
215
  {
216
216
  "data-slot": "textarea",
217
217
  render: /* @__PURE__ */ e("textarea", {}),
218
- className: l(Ne(), o),
218
+ className: s(xe(), o),
219
219
  ...n
220
220
  }
221
221
  );
222
222
  }
223
- const xe = "bnui-inputGroup-csN7g", $e = "bnui-trigger-OmLpc", Oe = "bnui-clear-7uf1z", Fe = "bnui-input-7-Mc5", Ce = "bnui-icon-krESh", Se = "bnui-positioner-Q2F1m", we = "bnui-popup-1NCxE", Ve = "bnui-list-7LeQ6", Ie = "bnui-item-yAkmq", Te = "bnui-empty-V8bpF", u = {
224
- inputGroup: xe,
225
- trigger: $e,
226
- clear: Oe,
227
- input: Fe,
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
228
  icon: Ce,
229
- positioner: Se,
230
- popup: we,
231
- list: Ve,
232
- item: Ie,
233
- empty: Te
229
+ positioner: Ve,
230
+ popup: Se,
231
+ list: Ie,
232
+ item: Te,
233
+ empty: Ae
234
234
  };
235
- function go({
235
+ function Vo({
236
236
  items: o,
237
237
  placeholder: n,
238
- clearable: r = !0,
238
+ clearable: t = !0,
239
239
  className: a,
240
- disabled: i,
241
- inputRef: s,
242
- onFocus: p,
243
- onBlur: g,
240
+ disabled: r,
241
+ inputRef: c,
242
+ onFocus: h,
243
+ onBlur: v,
244
244
  "aria-label": y,
245
- "aria-labelledby": k,
246
- ...O
245
+ "aria-labelledby": N,
246
+ ...F
247
247
  }) {
248
- const F = P(() => o.map((c) => c.value), [o]), C = P(() => {
249
- const c = /* @__PURE__ */ new Map();
250
- for (const h of o) c.set(h.value, h.label);
251
- return c;
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
252
  }, [o]), S = {
253
253
  ...y !== void 0 && { "aria-label": y },
254
- ...k !== void 0 && { "aria-labelledby": k }
254
+ ...N !== void 0 && { "aria-labelledby": N }
255
255
  };
256
- return /* @__PURE__ */ m(
256
+ return /* @__PURE__ */ b(
257
257
  d.Root,
258
258
  {
259
259
  autoHighlight: !0,
260
- items: F,
261
- disabled: i,
262
- itemToStringLabel: (c) => C.get(c) ?? c,
263
- ...O,
260
+ items: w,
261
+ disabled: r,
262
+ itemToStringLabel: (l) => C.get(l) ?? l,
263
+ ...F,
264
264
  children: [
265
- /* @__PURE__ */ m(
265
+ /* @__PURE__ */ b(
266
266
  d.InputGroup,
267
267
  {
268
- className: l(u.inputGroup, a),
268
+ className: s(u.inputGroup, a),
269
269
  children: [
270
270
  /* @__PURE__ */ e(
271
271
  d.Input,
272
272
  {
273
- ref: s,
274
- onFocus: p,
275
- onBlur: g,
273
+ ref: c,
274
+ onFocus: h,
275
+ onBlur: v,
276
276
  placeholder: n,
277
277
  ...S,
278
278
  className: u.input
279
279
  }
280
280
  ),
281
- r && /* @__PURE__ */ e(
281
+ t && /* @__PURE__ */ e(
282
282
  d.Clear,
283
283
  {
284
284
  "aria-label": "Fjern valgt verdi",
@@ -315,16 +315,16 @@ function go({
315
315
  side: "bottom",
316
316
  sideOffset: -2,
317
317
  className: u.positioner,
318
- children: /* @__PURE__ */ m(d.Popup, { className: u.popup, children: [
318
+ children: /* @__PURE__ */ b(d.Popup, { className: u.popup, children: [
319
319
  /* @__PURE__ */ e(d.Empty, { className: u.empty, children: "Ingen treff" }),
320
- /* @__PURE__ */ e(d.List, { className: u.list, children: (c) => /* @__PURE__ */ e(
320
+ /* @__PURE__ */ e(d.List, { className: u.list, children: (l) => /* @__PURE__ */ e(
321
321
  d.Item,
322
322
  {
323
- value: c,
323
+ value: l,
324
324
  className: u.item,
325
- children: C.get(c)
325
+ children: C.get(l)
326
326
  },
327
- c
327
+ l
328
328
  ) })
329
329
  ] })
330
330
  }
@@ -333,44 +333,44 @@ function go({
333
333
  }
334
334
  );
335
335
  }
336
- const Ae = "bnui-trigger-38Xpm", Ee = "bnui-chevron-FhAbo", Ge = "bnui-positioner-kU88Q", Le = "bnui-popup-eNosq", Pe = "bnui-list-rnBdZ", Re = "bnui-item-czzad", x = {
337
- trigger: Ae,
338
- chevron: Ee,
339
- positioner: Ge,
340
- popup: Le,
341
- list: Pe,
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
342
  item: Re
343
343
  };
344
- function yo({
344
+ function So({
345
345
  items: o,
346
346
  placeholder: n,
347
- className: r,
347
+ className: t,
348
348
  disabled: a,
349
- "aria-label": i,
350
- "aria-labelledby": s,
351
- ...p
349
+ "aria-label": r,
350
+ "aria-labelledby": c,
351
+ ...h
352
352
  }) {
353
- const g = {
354
- ...i !== void 0 && { "aria-label": i },
355
- ...s !== void 0 && { "aria-labelledby": s }
353
+ const v = {
354
+ ...r !== void 0 && { "aria-label": r },
355
+ ...c !== void 0 && { "aria-labelledby": c }
356
356
  };
357
- return /* @__PURE__ */ m(b.Root, { disabled: a, items: o, ...p, children: [
358
- /* @__PURE__ */ m(
359
- b.Trigger,
357
+ return /* @__PURE__ */ b(m.Root, { disabled: a, items: o, ...h, children: [
358
+ /* @__PURE__ */ b(
359
+ m.Trigger,
360
360
  {
361
361
  "data-slot": "select-trigger",
362
- ...g,
363
- className: l(x.trigger, r),
362
+ ...v,
363
+ className: s($.trigger, t),
364
364
  children: [
365
- /* @__PURE__ */ e(b.Value, { placeholder: n }),
365
+ /* @__PURE__ */ e(m.Value, { placeholder: n }),
366
366
  /* @__PURE__ */ e(
367
- b.Icon,
367
+ m.Icon,
368
368
  {
369
369
  render: /* @__PURE__ */ e(
370
370
  q,
371
371
  {
372
372
  "aria-hidden": !0,
373
- className: x.chevron,
373
+ className: $.chevron,
374
374
  strokeWidth: 2
375
375
  }
376
376
  )
@@ -379,19 +379,19 @@ function yo({
379
379
  ]
380
380
  }
381
381
  ),
382
- /* @__PURE__ */ e(b.Portal, { children: /* @__PURE__ */ e(
383
- b.Positioner,
382
+ /* @__PURE__ */ e(m.Portal, { children: /* @__PURE__ */ e(
383
+ m.Positioner,
384
384
  {
385
385
  alignItemWithTrigger: !1,
386
386
  side: "bottom",
387
387
  sideOffset: -2,
388
- className: x.positioner,
389
- children: /* @__PURE__ */ e(b.Popup, { className: x.popup, children: /* @__PURE__ */ e(b.List, { className: x.list, children: o.map(({ value: y, label: k }) => /* @__PURE__ */ e(
390
- b.Item,
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
391
  {
392
392
  value: y,
393
- className: x.item,
394
- children: /* @__PURE__ */ e(b.ItemText, { children: k })
393
+ className: $.item,
394
+ children: /* @__PURE__ */ e(m.ItemText, { children: N })
395
395
  },
396
396
  y
397
397
  )) }) })
@@ -399,186 +399,230 @@ function yo({
399
399
  ) })
400
400
  ] });
401
401
  }
402
- const qe = "bnui-container-GujCE", ze = "bnui-error-9Pli1", Be = "bnui-errorDot-mVjXf", E = {
402
+ const qe = "bnui-container-GujCE", ze = "bnui-error-9Pli1", De = "bnui-errorDot-mVjXf", G = {
403
403
  container: qe,
404
404
  error: ze,
405
- errorDot: Be
405
+ errorDot: De
406
406
  };
407
- function vo({ className: o, ...n }) {
407
+ function Io({ className: o, ...n }) {
408
408
  return /* @__PURE__ */ e(z, { value: !0, children: /* @__PURE__ */ e(
409
- v.Root,
409
+ k.Root,
410
410
  {
411
411
  "data-slot": "field",
412
- className: l(E.container, o),
412
+ className: s(G.container, o),
413
413
  ...n
414
414
  }
415
415
  ) });
416
416
  }
417
- function ko({
417
+ function To({
418
418
  children: o,
419
419
  nativeLabel: n = !0,
420
- ...r
420
+ ...t
421
421
  }) {
422
422
  return /* @__PURE__ */ e(
423
- v.Label,
423
+ k.Label,
424
424
  {
425
425
  "data-slot": "field-label",
426
426
  nativeLabel: n,
427
- render: /* @__PURE__ */ e(V, { variant: "body-sm", as: n ? "label" : "span", children: o }),
428
- ...r
427
+ render: /* @__PURE__ */ e(I, { variant: "body-sm", as: n ? "label" : "span", children: o }),
428
+ ...t
429
429
  }
430
430
  );
431
431
  }
432
- function No({ children: o, ...n }) {
432
+ function Ao({ children: o, ...n }) {
433
433
  return /* @__PURE__ */ e(
434
- v.Description,
434
+ k.Description,
435
435
  {
436
436
  "data-slot": "field-description",
437
- render: /* @__PURE__ */ e(V, { variant: "description", color: "informative", children: o }),
437
+ render: /* @__PURE__ */ e(I, { variant: "description", color: "informative", children: o }),
438
438
  ...n
439
439
  }
440
440
  );
441
441
  }
442
- function xo({ children: o, className: n, ...r }) {
442
+ function Eo({ children: o, className: n, ...t }) {
443
443
  return /* @__PURE__ */ e(
444
- v.Error,
444
+ k.Error,
445
445
  {
446
446
  "data-slot": "field-error",
447
- className: l(E.error, n),
448
- render: ({ children: a, ...i }) => /* @__PURE__ */ m("div", { ...i, children: [
449
- /* @__PURE__ */ e("span", { "aria-hidden": !0, className: E.errorDot }),
450
- /* @__PURE__ */ e(V, { variant: "description", as: "div", children: o ?? a })
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 })
451
451
  ] }),
452
- ...r
452
+ ...t
453
453
  }
454
454
  );
455
455
  }
456
- const De = "bnui-form-9QnXK", He = {
457
- form: De
456
+ const je = "bnui-form-9QnXK", He = {
457
+ form: je
458
458
  };
459
- function $o({ className: o, ...n }) {
459
+ function Go({ className: o, ...n }) {
460
460
  return /* @__PURE__ */ e(
461
- Q,
461
+ W,
462
462
  {
463
463
  "data-slot": "form",
464
- className: l(He.form, o),
464
+ className: s(He.form, o),
465
465
  ...n
466
466
  }
467
467
  );
468
468
  }
469
- const je = "bnui-root-oLVBN", Me = "bnui-hasSelectedSecondOption-LfH49", Xe = "bnui-filled-L-AUH", Ze = "bnui-stroked-wRb92", Ke = "bnui-option-Hou7J", Qe = "bnui-selectedOption-twuTF", $ = {
470
- root: je,
471
- hasSelectedSecondOption: Me,
472
- filled: Xe,
473
- stroked: Ze,
474
- option: Ke,
475
- selectedOption: Qe
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
476
476
  };
477
- function Oo({
477
+ function Po({
478
478
  options: o,
479
479
  title: n,
480
- variant: r = "filled",
480
+ variant: t = "filled",
481
481
  value: a,
482
- defaultValue: i,
483
- onValueChange: s,
484
- name: p,
485
- className: g
482
+ defaultValue: r,
483
+ onValueChange: c,
484
+ name: h,
485
+ className: v
486
486
  }) {
487
- const [y, k] = Z(
488
- i ?? o[0].value
489
- ), O = a ?? y, F = o[0].value === O ? 0 : 1, C = o[F], S = o[F === 0 ? 1 : 0];
490
- function c() {
491
- const h = S.value;
492
- a === void 0 && k(h), s?.(h);
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);
493
493
  }
494
- return /* @__PURE__ */ m(G, { children: [
495
- p && /* @__PURE__ */ e("input", { type: "hidden", name: p, value: O }),
494
+ return /* @__PURE__ */ b(P, { children: [
495
+ h && /* @__PURE__ */ e("input", { type: "hidden", name: h, value: F }),
496
496
  /* @__PURE__ */ e(
497
497
  R,
498
498
  {
499
- onClick: c,
499
+ onClick: l,
500
500
  "aria-label": `Bytt ${n} mellom ${C.label} og ${S.label}, valgt: ${C.label}`,
501
- className: l(
502
- We({ variant: r }),
503
- F === 1 && $.hasSelectedSecondOption,
504
- g
501
+ className: s(
502
+ Ue({ variant: t }),
503
+ w === 1 && O.hasSelectedSecondOption,
504
+ v
505
505
  ),
506
- children: o.map((h) => {
507
- const B = h.value === O;
506
+ children: o.map((f) => {
507
+ const D = f.value === F;
508
508
  return /* @__PURE__ */ e(
509
509
  "span",
510
510
  {
511
511
  "aria-hidden": "true",
512
- className: l($.option, B && $.selectedOption),
513
- children: h.icon
512
+ className: s(O.option, D && O.selectedOption),
513
+ children: f.icon
514
514
  },
515
- h.value
515
+ f.value
516
516
  );
517
517
  })
518
518
  }
519
519
  )
520
520
  ] });
521
521
  }
522
- const We = w($.root, {
522
+ const Ue = V(O.root, {
523
523
  variants: {
524
524
  variant: {
525
- filled: $.filled,
526
- stroked: $.stroked
525
+ filled: O.filled,
526
+ stroked: O.stroked
527
527
  }
528
528
  },
529
529
  defaultVariants: {
530
530
  variant: "filled"
531
531
  }
532
- }), Ue = "bnui-base-ZhllN", Je = "bnui-image-Ngo7A", Ye = "bnui-fallback-Tf3oZ", A = {
533
- base: Ue,
534
- image: Je,
535
- fallback: Ye
532
+ }), Je = "bnui-base-ZhllN", Ye = "bnui-image-Ngo7A", _e = "bnui-fallback-Tf3oZ", E = {
533
+ base: Je,
534
+ image: Ye,
535
+ fallback: _e
536
536
  };
537
- function Fo({ src: o, alt: n, className: r, ...a }) {
538
- return /* @__PURE__ */ m(
539
- I.Root,
537
+ function Bo({ src: o, alt: n, className: t, ...a }) {
538
+ return /* @__PURE__ */ b(
539
+ T.Root,
540
540
  {
541
541
  "data-slot": "avatar",
542
- className: l(A.base, r),
542
+ className: s(E.base, t),
543
543
  ...a,
544
544
  children: [
545
545
  o !== void 0 && /* @__PURE__ */ e(
546
- I.Image,
546
+ T.Image,
547
547
  {
548
548
  "data-slot": "avatar-image",
549
549
  src: o,
550
550
  alt: n,
551
551
  loading: "lazy",
552
- className: A.image
552
+ className: E.image
553
553
  }
554
554
  ),
555
555
  /* @__PURE__ */ e(
556
- I.Fallback,
556
+ T.Fallback,
557
557
  {
558
558
  "data-slot": "avatar-fallback",
559
- className: A.fallback,
560
- children: /* @__PURE__ */ e(j, {})
559
+ className: E.fallback,
560
+ children: /* @__PURE__ */ e(X, {})
561
561
  }
562
562
  )
563
563
  ]
564
564
  }
565
565
  );
566
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
+ }
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
+ }
567
609
  export {
568
- Fo as Avatar,
569
- mo as Button,
570
- po as Checkbox,
571
- ho as CheckboxGroup,
572
- go as Combobox,
573
- vo as Field,
574
- No as FieldDescription,
575
- xo as FieldError,
576
- ko as FieldLabel,
577
- $o as Form,
578
- Oo as IconsToggle,
579
- yo as Select,
580
- fo as Textarea,
581
- re as buttonVariants,
582
- Ne as textareaVariants
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
583
627
  };
584
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/textarea/textarea.tsx","../src/components/form/combobox/combobox.tsx","../src/components/form/select/select.tsx","../src/components/form/field/field.tsx","../src/components/form/form/form.tsx","../src/components/form/icons-toggle/icons-toggle.tsx","../src/components/avatar/avatar.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from \"@base-ui/react/button\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./button.module.css\"\n\nconst buttonVariants = cva(styles.base, {\n variants: {\n variant: {\n primary: styles.primary,\n secondary: styles.secondary,\n },\n size: {\n lg: styles.lg,\n sm: styles.sm,\n },\n iconOnly: {\n true: styles.iconOnly,\n false: \"\",\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"sm\",\n iconOnly: false,\n },\n})\n\ntype ButtonProps = Omit<ButtonPrimitive.Props, \"disabled\"> &\n VariantProps<typeof buttonVariants> & {\n isPending?: boolean\n /** @deprecated Avoid disabled buttons — they hurt accessibility and discoverability. Prefer `isPending` for in-flight actions, or keep the button enabled and show validation/error feedback. */\n disabled?: ButtonPrimitive.Props[\"disabled\"]\n }\n\n/**\n * @param variant - `\"primary\"` (default) or `\"secondary\"`\n *\n * @param size - `\"sm\"` (default) or `\"lg\"`.\n *\n * @param iconOnly - `true` if button contains only an icon. Always provide an `aria-label` when using this.\n *\n * @param isPending - `true` to show a centered spinner and block interaction. The button width is unchanged.\n *\n * @param disabled - **Deprecated.** Avoid disabled buttons — prefer `isPending` for in-flight actions, or keep the button enabled and show validation feedback.\n *\n * @example\n * <Button variant=\"primary\" size=\"sm\">Click me</Button>\n *\n * @example\n * <Button iconOnly><Info /></Button>\n *\n * @example\n * <Button isPending>Saving…</Button>\n */\nfunction Button({\n className,\n variant,\n size,\n iconOnly,\n isPending,\n disabled,\n children,\n ...props\n}: ButtonProps) {\n return (\n <ButtonPrimitive\n data-slot=\"button\"\n disabled={isPending || disabled}\n aria-busy={isPending}\n className={clsx(\n buttonVariants({ variant, size, iconOnly }),\n isPending && styles.pending,\n className\n )}\n {...props}\n >\n {isPending ? (\n <>\n <span className={styles.content}>{children}</span>\n <span className={styles.spinner} aria-hidden=\"true\" />\n </>\n ) : (\n children\n )}\n </ButtonPrimitive>\n )\n}\n\nexport { Button, buttonVariants }\nexport type { ButtonProps }\n","import { createContext } from \"react\"\n\n/**\n * True when rendered inside our `Field`. Base UI's `Field.Item` / `Field.Label`\n * throw without a `Field.Root` ancestor, so controls that want to use them must\n * check first and fall back to plain markup.\n */\nconst InsideFieldContext = createContext(false)\n\nexport { InsideFieldContext }\n","import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./text.module.css\"\n\nconst textVariants = cva(\"\", {\n variants: {\n variant: {\n headline: styles.headline,\n \"headline-sm\": styles[\"headline-sm\"],\n \"headline-xs\": styles[\"headline-xs\"],\n button: styles.button,\n \"body-bold\": styles[\"body-bold\"],\n body: styles.body,\n \"body-sm-bold\": styles[\"body-sm-bold\"],\n \"body-sm\": styles[\"body-sm\"],\n description: styles.description,\n },\n color: {\n default: styles[\"color-default\"],\n white: styles[\"color-white\"],\n background: styles[\"color-background\"],\n surface: styles[\"color-surface\"],\n \"divider-dark\": styles[\"color-divider-dark\"],\n informative: styles[\"color-informative\"],\n error: styles[\"color-error\"],\n warning: styles[\"color-warning\"],\n success: styles[\"color-success\"],\n info: styles[\"color-info\"],\n interactive: styles[\"color-interactive\"],\n inherit: \"\",\n },\n },\n defaultVariants: {\n variant: \"body\",\n color: \"default\",\n },\n})\n\nconst DEFAULT_ELEMENTS = {\n headline: \"h1\",\n \"headline-sm\": \"h2\",\n \"headline-xs\": \"h3\",\n body: \"p\",\n \"body-bold\": \"p\",\n \"body-sm\": \"p\",\n \"body-sm-bold\": \"p\",\n description: \"p\",\n button: \"span\",\n} as const\n\ntype TextVariant = NonNullable<VariantProps<typeof textVariants>[\"variant\"]>\ntype TextColor = NonNullable<VariantProps<typeof textVariants>[\"color\"]>\n\ntype TextOwnProps<E extends React.ElementType> = {\n variant?: TextVariant\n color?: TextColor\n as?: E\n className?: string\n children?: React.ReactNode\n}\n\ntype TextProps<E extends React.ElementType> = TextOwnProps<E> &\n Omit<React.ComponentPropsWithoutRef<E>, keyof TextOwnProps<E>>\n\nfunction Text<E extends React.ElementType = \"p\">({\n variant = \"body\",\n color,\n as,\n className,\n ...props\n}: TextProps<E>) {\n const Component = (as ?? DEFAULT_ELEMENTS[variant]) as React.ElementType\n return (\n <Component\n data-slot=\"text\"\n className={clsx(textVariants({ variant, color, className }))}\n {...props}\n />\n )\n}\n\nexport { Text, textVariants }\n","import { Checkbox as CheckboxPrimitive } from \"@base-ui/react/checkbox\"\nimport { Field as FieldPrimitive } from \"@base-ui/react/field\"\nimport { Check } from \"lucide-react\"\nimport { use, type ReactNode } from \"react\"\n\nimport { InsideFieldContext } from \"@/components/form/field/field-context\"\nimport { Text } from \"@/components/text/text\"\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox.module.css\"\n\ntype CheckboxProps = Omit<\n CheckboxPrimitive.Root.Props,\n \"disabled\" | \"indeterminate\"\n> & {\n label?: ReactNode\n}\n\n/**\n * @param label - Label rendered next to the checkbox. Accepts any `ReactNode`.\n *\n * @example\n * <Checkbox label=\"Jeg godtar vilkår og betingelser\" />\n *\n * @example\n * <Checkbox\n * label={\n * <>\n * Jeg godtar <Link href=\"#\">vilkår og betingelser</Link>\n * </>\n * }\n * />\n */\nfunction Checkbox({ className, label, ...props }: CheckboxProps) {\n const insideField = use(InsideFieldContext)\n\n const box = (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={clsx(styles.checkbox, className)}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className={styles.indicator}\n >\n <Check className={styles.check} />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n\n if (label === undefined) return box\n\n const labelContent = (\n <>\n {box}\n <Text variant=\"body\" as=\"span\">\n {label}\n </Text>\n </>\n )\n\n if (!insideField) {\n return <label className={styles.label}>{labelContent}</label>\n }\n\n return (\n <FieldPrimitive.Item className={styles.item}>\n <FieldPrimitive.Label className={styles.label}>\n {labelContent}\n </FieldPrimitive.Label>\n </FieldPrimitive.Item>\n )\n}\n\nexport { Checkbox }\nexport type { CheckboxProps }\n","import { CheckboxGroup as CheckboxGroupPrimitive } from \"@base-ui/react/checkbox-group\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./checkbox-group.module.css\"\n\ntype CheckboxGroupProps = Omit<CheckboxGroupPrimitive.Props, \"disabled\"> & {\n orientation?: \"row\" | \"column\"\n}\n\nfunction CheckboxGroup({\n className,\n orientation = \"row\",\n ...props\n}: CheckboxGroupProps) {\n return (\n <CheckboxGroupPrimitive\n data-slot=\"checkbox-group\"\n className={clsx(\n styles.group,\n orientation === \"column\" ? styles.column : styles.row,\n className\n )}\n {...props}\n />\n )\n}\n\nexport { CheckboxGroup }\nexport type { CheckboxGroupProps }\n","import { Field } from \"@base-ui/react/field\"\nimport { cva } from \"class-variance-authority\"\n\nimport { clsx } from \"clsx\"\nimport styles from \"./textarea.module.css\"\n\nconst textareaVariants = cva(styles.textarea)\n\ntype TextareaProps = Omit<Field.Control.Props, \"render\"> & {\n className?: string\n}\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <Field.Control\n data-slot=\"textarea\"\n render={<textarea />}\n className={clsx(textareaVariants(), className)}\n {...props}\n />\n )\n}\n\nexport { Textarea, textareaVariants }\nexport type { TextareaProps }\n","import { Combobox as ComboboxPrimitive } from \"@base-ui/react/combobox\"\nimport { 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"],"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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;GAMMA,KAAiBC,EAAIC,EAAO,MAAM;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,IAAA;AAAA,IAEpB,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,UAAU;AAAA,MACR,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAEd,CAAC;AA6BD,SAASC,GAAO;AAAA,EACd,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AACd,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,UAAUL,KAAaC;AAAA,MACvB,aAAWD;AAAA,MACX,WAAWM;AAAA,QACTd,GAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,UAAAC,GAAU;AAAA,QAC1CC,KAAaN,EAAO;AAAA,QACpBE;AAAA,MAAA;AAAA,MAED,GAAGO;AAAA,MAEH,cACC,gBAAAI,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAJ,EAAC,QAAA,EAAK,WAAWV,EAAO,SAAU,UAAAQ,GAAS;AAAA,0BAC1C,QAAA,EAAK,WAAWR,EAAO,SAAS,eAAY,OAAA,CAAO;AAAA,MAAA,EAAA,CACtD,IAEAQ;AAAA,IAAA;AAAA,EAAA;AAIR;ACh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EACH,GACF;AAEJ;AAIA,MAAMD,KAAsBrF,EAAIC,EAAO,MAAM;AAAA,EAC3C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;;;;;ACpGD,SAASuF,GAAO,EAAE,KAAAC,GAAK,KAAAC,GAAK,WAAAvF,GAAW,GAAGwF,KAA0B;AAClE,SACE,gBAAA7E;AAAA,IAAC8E,EAAW;AAAA,IAAX;AAAA,MACC,aAAU;AAAA,MACV,WAAW/E,EAAKZ,EAAO,MAAME,CAAS;AAAA,MACrC,GAAGwF;AAAA,MAEH,UAAA;AAAA,QAAAF,MAAQ,UACP,gBAAA9E;AAAA,UAACiF,EAAW;AAAA,UAAX;AAAA,YACC,aAAU;AAAA,YACV,KAAAH;AAAA,YACA,KAAAC;AAAA,YACA,SAAQ;AAAA,YACR,WAAWzF,EAAO;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtB,gBAAAU;AAAA,UAACiF,EAAW;AAAA,UAAX;AAAA,YACC,aAAU;AAAA,YACV,WAAW3F,EAAO;AAAA,YAElB,4BAAC4F,GAAA,CAAA,CAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACb;AAAA,IAAA;AAAA,EAAA;AAGN;"}
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,MAA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WAAWzF,EAAO;AAAA,UAAA;AAAA,QAAA;AAAA,QAGtB,gBAAAU;AAAA,UAACiF,EAAW;AAAA,UAAX;AAAA,YACC,aAAU;AAAA,YACV,WAAW3F,EAAO;AAAA,YAElB,4BAAC4F,GAAA,CAAA,CAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACb;AAAA,IAAA;AAAA,EAAA;AAGN;;;;;;;;;;;;GC9BMC,KAAgB9F,EAAIC,EAAO,MAAM;AAAA,EACrC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,iBAAiBA,EAAO,eAAe;AAAA,MACvC,OAAOA,EAAO;AAAA,MACd,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,OAAOA,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-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: 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);--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);--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);--color-black: var(--color-neutral-10);--color-white: var(--color-neutral-100);--font-default: var(--font-sans);--text-headline-size: 2rem;--text-headline-line-height: 1.2;--text-headline-weight: 700;--text-headline-sm-size: 1.375rem;--text-headline-sm-line-height: 1.2;--text-headline-sm-weight: 700;--text-headline-xs-size: 1.125rem;--text-headline-xs-line-height: 1.2;--text-headline-xs-weight: 700;--text-button-size: 1.125rem;--text-button-line-height: 1.2;--text-button-weight: 400;--text-body-bold-size: 1rem;--text-body-bold-line-height: 1.2;--text-body-bold-weight: 700;--text-body-size: 1rem;--text-body-line-height: 1.2;--text-body-weight: 400;--text-body-sm-bold-size: .875rem;--text-body-sm-bold-line-height: 1.2;--text-body-sm-bold-weight: 700;--text-body-sm-size: .875rem;--text-body-sm-line-height: 1.2;--text-body-sm-weight: 400;--text-description-size: .75rem;--text-description-line-height: 1.2;--text-description-weight: 400}.bnui-base-wpVVq{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--radius-4);outline:none;background-color:transparent;font-family:var(--font-sans);font-size:var(--text-button-size);font-weight:var(--text-button-weight);line-height:var(--text-button-line-height);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.bnui-base-wpVVq:focus-visible{box-shadow:0 0 0 2px var(--color-interactive-40)}.bnui-base-wpVVq:disabled{pointer-events:none}.bnui-base-wpVVq svg{flex-shrink:0;width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:var(--icon-stroke-width-lg)}.bnui-primary-OKCHe{background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-primary-OKCHe:hover{background-color:var(--color-interactive-40)}.bnui-primary-OKCHe:disabled{background-color:var(--color-neutral-30)}.bnui-secondary-dazFR{border-color:var(--color-neutral-10);color:var(--color-neutral-10)}.bnui-secondary-dazFR:hover{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98);color:var(--color-interactive-10)}.bnui-secondary-dazFR:disabled{border-color:var(--color-neutral-30);color:var(--color-neutral-30);background-color:var(--color-neutral-90)}.bnui-lg-WgiKr{gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16)}.bnui-sm-0Kb5B{gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-12)}.bnui-sm-0Kb5B svg{width:var(--icon-size-sm);height:var(--icon-size-sm);stroke-width:var(--icon-stroke-width-sm)}.bnui-iconOnly-LsvO8{gap:0}.bnui-content-q0g4H{display:inline-flex;align-items:center;gap:inherit}.bnui-pending-xP-rH{position:relative}.bnui-pending-xP-rH .bnui-content-q0g4H{visibility:hidden}.bnui-spinner-jLkEm{position:absolute;top:50%;left:50%;width:1rem;height:1rem;margin:-.5rem 0 0 -.5rem;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:bnui-button-spin--7o11 2s linear infinite}@keyframes bnui-button-spin--7o11{to{transform:rotate(360deg)}}.bnui-headline-6c9bn{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-size);line-height:var(--text-headline-line-height);font-weight:var(--text-headline-weight)}.bnui-headline-sm-eesRr{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-sm-size);line-height:var(--text-headline-sm-line-height);font-weight:var(--text-headline-sm-weight)}.bnui-headline-xs-bBHXL{margin:0;font-family:var(--font-sans);font-size:var(--text-headline-xs-size);line-height:var(--text-headline-xs-line-height);font-weight:var(--text-headline-xs-weight)}.bnui-button-lekqm{margin:0;font-family:var(--font-sans);font-size:var(--text-button-size);line-height:var(--text-button-line-height);font-weight:var(--text-button-weight)}.bnui-body-bold-0cir6{margin:0;font-family:var(--font-sans);font-size:var(--text-body-bold-size);line-height:var(--text-body-bold-line-height);font-weight:var(--text-body-bold-weight)}.bnui-body-2BdnA{margin:0;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);font-weight:var(--text-body-weight)}.bnui-body-sm-bold-9SPZK{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-bold-size);line-height:var(--text-body-sm-bold-line-height);font-weight:var(--text-body-sm-bold-weight)}.bnui-body-sm-MOXMI{margin:0;font-family:var(--font-sans);font-size:var(--text-body-sm-size);line-height:var(--text-body-sm-line-height);font-weight:var(--text-body-sm-weight)}.bnui-description-6roeu{margin:0;font-family:var(--font-sans);font-size:var(--text-description-size);line-height:var(--text-description-line-height);font-weight:var(--text-description-weight)}.bnui-color-default-38dch{color:var(--color-neutral-10)}.bnui-color-white-d9q0c{color:var(--color-neutral-100)}.bnui-color-background-Flq4G{color:var(--text-background)}.bnui-color-surface-80oSA{color:var(--text-surface)}.bnui-color-divider-dark-lGQki{color:var(--text-divider-dark)}.bnui-color-informative-xAFpg{color:var(--text-informative)}.bnui-color-error-jEnPS{color:var(--text-error)}.bnui-color-warning-6lm-Z{color:var(--text-warning)}.bnui-color-success-ThRnA{color:var(--text-success)}.bnui-color-info-PtkS-{color:var(--text-info)}.bnui-color-interactive-b9cqS{color:var(--text-interactive)}.bnui-checkbox-mTFTt{display:inline-flex;box-sizing:border-box;width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-4);border:1px solid transparent;background-color:transparent;padding:0;font-family:var(--font-sans);color:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease;outline:none}.bnui-checkbox-mTFTt:focus-visible{outline:2px solid var(--color-interactive-40);outline-offset:2px}.bnui-checkbox-mTFTt[data-checked]{border-width:2px;border-color:var(--color-neutral-10);background-color:var(--color-neutral-10);color:var(--color-neutral-100)}.bnui-checkbox-mTFTt[data-checked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-checked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-40)}.bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-neutral-50)}.bnui-checkbox-mTFTt[data-unchecked]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-unchecked]{border-color:var(--color-interactive-40);background-color:var(--color-interactive-98)}.bnui-checkbox-mTFTt[data-invalid],.bnui-checkbox-mTFTt[data-invalid]:hover,.bnui-label-JOyrO:hover .bnui-checkbox-mTFTt[data-invalid]{border-color:var(--color-error-40)}.bnui-indicator-VOiAE{display:inline-flex;align-items:center;justify-content:center}.bnui-check-6pYVz{width:var(--icon-size-lg);height:var(--icon-size-lg);stroke-width:2}.bnui-item-qNsgX{display:contents}.bnui-label-JOyrO{display:inline-flex;cursor:pointer;align-items:center;gap:var(--spacing-8);font-family:var(--font-sans);-webkit-user-select:none;user-select:none}.bnui-group-76ZZz{display:inline-flex;box-sizing:border-box}.bnui-column-ev6Qg{flex-direction:column;align-items:flex-start;gap:var(--spacing-8)}.bnui-row-K6-hO{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--spacing-16)}.bnui-textarea-6uYeG{display:block;box-sizing:border-box;min-height:6rem;min-width:20rem;width:100%;border-radius:var(--radius-4);border:1px solid var(--color-neutral-50);background-color:var(--color-neutral-100);padding:var(--spacing-8);resize:none;font-family:var(--font-sans);font-size:var(--text-body-size);line-height:var(--text-body-line-height);color:var(--color-neutral-10);outline:none;field-sizing:content;overflow:hidden}.bnui-textarea-6uYeG::placeholder{color:var(--color-neutral-40)}.bnui-textarea-6uYeG:hover{box-shadow:inset 0 0 0 1px var(--color-neutral-50)}.bnui-textarea-6uYeG:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG[data-invalid]{border-color:var(--color-error-40)}.bnui-textarea-6uYeG[data-invalid]:hover{box-shadow:none}.bnui-textarea-6uYeG[data-invalid]:focus{border-color:var(--color-interactive-40);box-shadow:inset 0 0 0 1px var(--color-interactive-40)}.bnui-textarea-6uYeG:disabled{cursor:not-allowed;opacity:.5}.bnui-inputGroup-csN7g{width:100%;display:flex;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:var(--spacing-32);height:var(--spacing-32)}.bnui-image-Ngo7A{width:100%;height:100%;object-fit:cover}.bnui-fallback-Tf3oZ{display:flex;width:100%;height:100%;align-items:flex-start;justify-content:center;padding-top:7px}.bnui-fallback-Tf3oZ svg{flex-shrink:0;width:1.8rem;height:1.8rem}.bnui-fallback-Tf3oZ svg circle,.bnui-fallback-Tf3oZ svg path{fill:var(--color-neutral-100)}
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.cf17fda",
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": {