@bergetai/ui 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -101,7 +101,7 @@ __export(src_exports, {
101
101
  FogIllustration: () => FogIllustration,
102
102
  Grid: () => Grid,
103
103
  Icon: () => Icon,
104
- Input: () => Input2,
104
+ Input: () => Input,
105
105
  Item: () => Item2,
106
106
  ItemActions: () => ItemActions,
107
107
  ItemContent: () => ItemContent,
@@ -128,7 +128,17 @@ __export(src_exports, {
128
128
  NavigationMenuList: () => NavigationMenuList,
129
129
  NavigationMenuPositioner: () => NavigationMenuPositioner,
130
130
  NavigationMenuTrigger: () => NavigationMenuTrigger,
131
- Select: () => Select2,
131
+ SearchInput: () => SearchInput,
132
+ Select: () => Select,
133
+ SelectContent: () => SelectContent,
134
+ SelectGroup: () => SelectGroup,
135
+ SelectItem: () => SelectItem,
136
+ SelectLabel: () => SelectLabel,
137
+ SelectScrollDownButton: () => SelectScrollDownButton,
138
+ SelectScrollUpButton: () => SelectScrollUpButton,
139
+ SelectSeparator: () => SelectSeparator,
140
+ SelectTrigger: () => SelectTrigger,
141
+ SelectValue: () => SelectValue,
132
142
  Sidebar: () => Sidebar,
133
143
  SidebarContent: () => SidebarContent,
134
144
  SidebarFooter: () => SidebarFooter2,
@@ -163,7 +173,7 @@ __export(src_exports, {
163
173
  TableHead: () => TableHead2,
164
174
  TableHeader: () => TableHeader2,
165
175
  TableRow: () => TableRow2,
166
- TextArea: () => TextArea,
176
+ Textarea: () => Textarea,
167
177
  ThemeProvider: () => ThemeProvider,
168
178
  ThemeToggle: () => ThemeToggle,
169
179
  Typography: () => Typography,
@@ -182,10 +192,8 @@ __export(src_exports, {
182
192
  isEUCountry: () => isEUCountry,
183
193
  linkVariants: () => linkVariants,
184
194
  navigationMenuTriggerStyle: () => navigationMenuTriggerStyle2,
185
- selectVariants: () => selectVariants,
186
195
  switchRootVariants: () => switchRootVariants,
187
196
  switchThumbVariants: () => switchThumbVariants,
188
- textAreaVariants: () => textAreaVariants,
189
197
  typographyVariants: () => typographyVariants,
190
198
  useSidebar: () => useSidebar,
191
199
  useTheme: () => useTheme
@@ -1819,7 +1827,7 @@ function Input({ className, type, ...props }) {
1819
1827
  type,
1820
1828
  "data-slot": "input",
1821
1829
  className: (0, import_cn5.cn)(
1822
- "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
1830
+ "h-8 w-full min-w-0 rounded-lg border border-input bg-berget-brand-granite-900 px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-berget-brand-moss-400 focus-visible:ring-3 focus-visible:ring-berget-brand-moss-300/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
1823
1831
  className
1824
1832
  ),
1825
1833
  ...props
@@ -3183,100 +3191,46 @@ var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
3183
3191
  });
3184
3192
  ItemSeparator2.displayName = "ItemSeparator";
3185
3193
 
3186
- // src/components/input/Input.tsx
3187
- var React18 = __toESM(require("react"), 1);
3194
+ // src/components/search-input/SearchInput.tsx
3195
+ var import_lucide_react8 = require("lucide-react");
3188
3196
  var import_jsx_runtime30 = require("react/jsx-runtime");
3189
- var Input2 = React18.forwardRef(
3190
- ({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
3191
- const generatedId = React18.useId();
3192
- const inputId = id || generatedId;
3193
- const errorId = `${inputId}-error`;
3194
- const descriptionId = `${inputId}-description`;
3195
- const inputElement = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3196
- Input,
3197
- {
3198
- ref,
3199
- id: inputId,
3200
- disabled,
3201
- "aria-invalid": !!error,
3202
- "aria-describedby": cn(error && errorId, description && descriptionId),
3203
- className: cn(
3204
- "isolate rounded-berget-xs bg-card focus-visible:border-berget-form-focus-border focus-visible:ring-0 focus-visible:ring-offset-0 hover:bg-berget-surface-hover transition-colors duration-200 px-3 sm:px-4 py-2 sm:py-2.5 text-sm",
3205
- icon && "pl-10",
3206
- actionButton && "pr-12",
3207
- error && "border-berget-destructive-foreground/50 bg-berget-destructive",
3208
- disabled && "cursor-not-allowed",
3209
- className
3210
- ),
3211
- ...props
3212
- }
3213
- );
3214
- if (!icon && !actionButton) {
3215
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-2", children: [
3216
- label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3217
- "label",
3218
- {
3219
- htmlFor: inputId,
3220
- className: cn(
3221
- "text-sm font-sans leading-none",
3222
- disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground",
3223
- error && "text-berget-destructive-foreground"
3224
- ),
3225
- children: label
3226
- }
3227
- ),
3228
- inputElement,
3229
- (description || error) && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-1", children: [
3230
- description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
3231
- error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3232
- Typography,
3233
- {
3234
- variant: "xs",
3235
- id: errorId,
3236
- className: "text-berget-destructive-foreground",
3237
- children: error
3238
- }
3239
- )
3240
- ] })
3241
- ] });
3197
+ var SearchInput = ({
3198
+ type = "search",
3199
+ placeholder = "Search...",
3200
+ className,
3201
+ ref,
3202
+ ...props
3203
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
3204
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3205
+ import_lucide_react8.Search,
3206
+ {
3207
+ "aria-hidden": "true",
3208
+ className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
3242
3209
  }
3243
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-2", children: [
3244
- label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3245
- "label",
3246
- {
3247
- htmlFor: inputId,
3248
- className: cn(
3249
- "text-sm font-sans leading-none",
3250
- disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground",
3251
- error && "text-berget-destructive-foreground"
3252
- ),
3253
- children: label
3254
- }
3255
- ),
3256
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative w-full", children: [
3257
- icon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
3258
- inputElement,
3259
- actionButton && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
3260
- ] }),
3261
- (description || error) && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-1", children: [
3262
- description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
3263
- error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
3264
- ] })
3265
- ] });
3266
- }
3267
- );
3268
- Input2.displayName = "Input";
3210
+ ),
3211
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3212
+ Input,
3213
+ {
3214
+ ref,
3215
+ type,
3216
+ placeholder,
3217
+ className: cn("rounded-full pl-8", className),
3218
+ ...props
3219
+ }
3220
+ )
3221
+ ] });
3222
+ SearchInput.displayName = "SearchInput";
3269
3223
 
3270
3224
  // src/components/checkbox/Checkbox.tsx
3271
- var React19 = __toESM(require("react"), 1);
3225
+ var React18 = __toESM(require("react"), 1);
3272
3226
  var import_checkbox2 = require("@base-ui/react/checkbox");
3273
- var import_lucide_react9 = require("lucide-react");
3227
+ var import_lucide_react10 = require("lucide-react");
3274
3228
  var import_class_variance_authority11 = require("class-variance-authority");
3275
3229
 
3276
3230
  // src/primitives/checkbox.tsx
3277
3231
  var import_checkbox = require("@base-ui/react/checkbox");
3278
3232
  var import_cn13 = require("cn");
3279
- var import_lucide_react8 = require("lucide-react");
3233
+ var import_lucide_react9 = require("lucide-react");
3280
3234
  var import_jsx_runtime31 = require("react/jsx-runtime");
3281
3235
  function Checkbox({ className, ...props }) {
3282
3236
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
@@ -3294,7 +3248,7 @@ function Checkbox({ className, ...props }) {
3294
3248
  "data-slot": "checkbox-indicator",
3295
3249
  className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
3296
3250
  children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3297
- import_lucide_react8.CheckIcon,
3251
+ import_lucide_react9.CheckIcon,
3298
3252
  {}
3299
3253
  )
3300
3254
  }
@@ -3326,7 +3280,7 @@ var checkboxVariants = (0, import_class_variance_authority11.cva)(
3326
3280
  }
3327
3281
  }
3328
3282
  );
3329
- var Checkbox2 = React19.forwardRef(
3283
+ var Checkbox2 = React18.forwardRef(
3330
3284
  ({
3331
3285
  "aria-label": ariaLabel,
3332
3286
  className,
@@ -3339,7 +3293,7 @@ var Checkbox2 = React19.forwardRef(
3339
3293
  disabled,
3340
3294
  ...props
3341
3295
  }, ref) => {
3342
- const generatedId = React19.useId();
3296
+ const generatedId = React18.useId();
3343
3297
  const checkboxId = id || generatedId;
3344
3298
  const errorId = `${checkboxId}-error`;
3345
3299
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-start gap-3", children: [
@@ -3361,7 +3315,7 @@ var Checkbox2 = React19.forwardRef(
3361
3315
  ),
3362
3316
  ...props,
3363
3317
  children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_checkbox2.Checkbox.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3364
- import_lucide_react9.Check,
3318
+ import_lucide_react10.Check,
3365
3319
  {
3366
3320
  className: "h-4 w-4 text-current stroke-current",
3367
3321
  style: { color: "currentColor", stroke: "currentColor" }
@@ -3391,7 +3345,7 @@ var Checkbox2 = React19.forwardRef(
3391
3345
  Checkbox2.displayName = "Checkbox";
3392
3346
 
3393
3347
  // src/components/switch/Switch.tsx
3394
- var React20 = __toESM(require("react"), 1);
3348
+ var React19 = __toESM(require("react"), 1);
3395
3349
  var import_switch = require("@base-ui/react/switch");
3396
3350
  var import_class_variance_authority12 = require("class-variance-authority");
3397
3351
  var import_jsx_runtime33 = require("react/jsx-runtime");
@@ -3431,7 +3385,7 @@ var switchThumbVariants = (0, import_class_variance_authority12.cva)(
3431
3385
  }
3432
3386
  }
3433
3387
  );
3434
- var Switch = React20.forwardRef(
3388
+ var Switch = React19.forwardRef(
3435
3389
  ({
3436
3390
  "aria-label": ariaLabel,
3437
3391
  className,
@@ -3444,7 +3398,7 @@ var Switch = React20.forwardRef(
3444
3398
  disabled,
3445
3399
  ...props
3446
3400
  }, ref) => {
3447
- const generatedId = React20.useId();
3401
+ const generatedId = React19.useId();
3448
3402
  const switchId = id || generatedId;
3449
3403
  const errorId = `${switchId}-error`;
3450
3404
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-3", children: [
@@ -3487,16 +3441,22 @@ var Switch = React20.forwardRef(
3487
3441
  );
3488
3442
  Switch.displayName = "Switch";
3489
3443
 
3490
- // src/components/select/Select.tsx
3491
- var React21 = __toESM(require("react"), 1);
3492
- var import_class_variance_authority13 = require("class-variance-authority");
3493
-
3494
3444
  // src/primitives/select.tsx
3495
3445
  var import_select = require("@base-ui/react/select");
3496
3446
  var import_cn14 = require("cn");
3497
- var import_lucide_react10 = require("lucide-react");
3447
+ var import_lucide_react11 = require("lucide-react");
3498
3448
  var import_jsx_runtime34 = require("react/jsx-runtime");
3499
3449
  var Select = import_select.Select.Root;
3450
+ function SelectGroup({ className, ...props }) {
3451
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3452
+ import_select.Select.Group,
3453
+ {
3454
+ "data-slot": "select-group",
3455
+ className: (0, import_cn14.cn)("scroll-my-1 p-1", className),
3456
+ ...props
3457
+ }
3458
+ );
3459
+ }
3500
3460
  function SelectValue({ className, ...props }) {
3501
3461
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3502
3462
  import_select.Select.Value,
@@ -3519,7 +3479,7 @@ function SelectTrigger({
3519
3479
  "data-slot": "select-trigger",
3520
3480
  "data-size": size,
3521
3481
  className: (0, import_cn14.cn)(
3522
- "flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3482
+ "flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-berget-brand-granite-900 py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3523
3483
  className
3524
3484
  ),
3525
3485
  ...props,
@@ -3528,7 +3488,7 @@ function SelectTrigger({
3528
3488
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3529
3489
  import_select.Select.Icon,
3530
3490
  {
3531
- render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react10.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
3491
+ render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react11.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
3532
3492
  }
3533
3493
  )
3534
3494
  ]
@@ -3571,6 +3531,19 @@ function SelectContent({
3571
3531
  }
3572
3532
  ) });
3573
3533
  }
3534
+ function SelectLabel({
3535
+ className,
3536
+ ...props
3537
+ }) {
3538
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3539
+ import_select.Select.GroupLabel,
3540
+ {
3541
+ "data-slot": "select-label",
3542
+ className: (0, import_cn14.cn)("px-1.5 py-1 text-xs text-muted-foreground", className),
3543
+ ...props
3544
+ }
3545
+ );
3546
+ }
3574
3547
  function SelectItem({
3575
3548
  className,
3576
3549
  children,
@@ -3591,13 +3564,26 @@ function SelectItem({
3591
3564
  import_select.Select.ItemIndicator,
3592
3565
  {
3593
3566
  render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
3594
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react10.CheckIcon, { className: "pointer-events-none" })
3567
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react11.CheckIcon, { className: "pointer-events-none" })
3595
3568
  }
3596
3569
  )
3597
3570
  ]
3598
3571
  }
3599
3572
  );
3600
3573
  }
3574
+ function SelectSeparator({
3575
+ className,
3576
+ ...props
3577
+ }) {
3578
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3579
+ import_select.Select.Separator,
3580
+ {
3581
+ "data-slot": "select-separator",
3582
+ className: (0, import_cn14.cn)("pointer-events-none -mx-1 my-1 h-px bg-border", className),
3583
+ ...props
3584
+ }
3585
+ );
3586
+ }
3601
3587
  function SelectScrollUpButton({
3602
3588
  className,
3603
3589
  ...props
@@ -3612,7 +3598,7 @@ function SelectScrollUpButton({
3612
3598
  ),
3613
3599
  ...props,
3614
3600
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3615
- import_lucide_react10.ChevronUpIcon,
3601
+ import_lucide_react11.ChevronUpIcon,
3616
3602
  {}
3617
3603
  )
3618
3604
  }
@@ -3632,122 +3618,26 @@ function SelectScrollDownButton({
3632
3618
  ),
3633
3619
  ...props,
3634
3620
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3635
- import_lucide_react10.ChevronDownIcon,
3621
+ import_lucide_react11.ChevronDownIcon,
3636
3622
  {}
3637
3623
  )
3638
3624
  }
3639
3625
  );
3640
3626
  }
3641
3627
 
3642
- // src/components/select/Select.tsx
3643
- var import_jsx_runtime35 = require("react/jsx-runtime");
3644
- var selectVariants = (0, import_class_variance_authority13.cva)(
3645
- "flex w-full items-center justify-between rounded-berget-xs border bg-card px-4 py-3 text-sm transition-colors duration-200 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-berget-form-focus-border disabled:cursor-not-allowed disabled:opacity-50",
3646
- {
3647
- variants: {
3648
- variant: {
3649
- default: "border-berget-border-interactive hover:bg-berget-surface-hover",
3650
- primary: "border-berget-primary-border bg-berget-primary-tint hover:bg-berget-surface-hover",
3651
- subtle: "border-berget-border-subtle hover:bg-berget-surface-hover",
3652
- muted: "border-berget-border-subtle/50 hover:bg-berget-surface-hover"
3653
- },
3654
- size: {
3655
- sm: "px-3 py-2 text-xs",
3656
- default: "px-4 py-3 text-sm",
3657
- lg: "px-5 py-4 text-base"
3658
- }
3659
- },
3660
- defaultVariants: {
3661
- variant: "default",
3662
- size: "default"
3663
- }
3664
- }
3665
- );
3666
- var Select2 = React21.forwardRef(
3667
- ({
3668
- className,
3669
- variant,
3670
- size,
3671
- label,
3672
- description,
3673
- error,
3674
- placeholder,
3675
- options,
3676
- id,
3677
- disabled,
3678
- value,
3679
- defaultValue,
3680
- onValueChange,
3681
- name,
3682
- required
3683
- }, ref) => {
3684
- const generatedId = React21.useId();
3685
- const selectId = id || generatedId;
3686
- const errorId = `${selectId}-error`;
3687
- const descriptionId = `${selectId}-description`;
3688
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-2", children: [
3689
- label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3690
- "label",
3691
- {
3692
- htmlFor: selectId,
3693
- className: cn(
3694
- "text-sm font-sans leading-none",
3695
- disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground",
3696
- error && "text-berget-destructive-foreground"
3697
- ),
3698
- children: label
3699
- }
3700
- ),
3701
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3702
- Select,
3703
- {
3704
- value,
3705
- defaultValue,
3706
- onValueChange: onValueChange ? (value2) => onValueChange(value2 ?? "") : void 0,
3707
- disabled,
3708
- name,
3709
- required,
3710
- items: options,
3711
- children: [
3712
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3713
- SelectTrigger,
3714
- {
3715
- ref,
3716
- id: selectId,
3717
- "aria-invalid": !!error,
3718
- "aria-describedby": cn(error && errorId, description && descriptionId),
3719
- className: cn(
3720
- selectVariants({ variant, size }),
3721
- error && "border-berget-destructive-foreground/50 bg-berget-destructive",
3722
- className
3723
- ),
3724
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectValue, { placeholder })
3725
- }
3726
- ),
3727
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
3728
- ]
3729
- }
3730
- ),
3731
- description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
3732
- error && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
3733
- ] });
3734
- }
3735
- );
3736
- Select2.displayName = "Select";
3737
-
3738
3628
  // src/components/country-select/CountrySelect.tsx
3739
- var React23 = __toESM(require("react"), 1);
3740
- var import_lucide_react13 = require("lucide-react");
3629
+ var React21 = __toESM(require("react"), 1);
3630
+ var import_lucide_react14 = require("lucide-react");
3741
3631
 
3742
3632
  // src/components/icon/Icon.tsx
3743
- var React22 = __toESM(require("react"), 1);
3744
- var import_jsx_runtime36 = require("react/jsx-runtime");
3633
+ var React20 = __toESM(require("react"), 1);
3634
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3745
3635
  var iconStrokeMap = {
3746
3636
  16: 1.4,
3747
3637
  24: 1.6,
3748
3638
  32: 1.8
3749
3639
  };
3750
- var Icon = React22.forwardRef(
3640
+ var Icon = React20.forwardRef(
3751
3641
  ({
3752
3642
  icon: IconComponent,
3753
3643
  size,
@@ -3759,7 +3649,7 @@ var Icon = React22.forwardRef(
3759
3649
  const strokeWidth = iconStrokeMap[size];
3760
3650
  const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
3761
3651
  const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
3762
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3652
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3763
3653
  IconComponent,
3764
3654
  {
3765
3655
  ref,
@@ -3776,12 +3666,12 @@ Icon.displayName = "Icon";
3776
3666
  // src/primitives/popover.tsx
3777
3667
  var import_popover = require("@base-ui/react/popover");
3778
3668
  var import_cn15 = require("cn");
3779
- var import_jsx_runtime37 = require("react/jsx-runtime");
3669
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3780
3670
  function Popover({ ...props }) {
3781
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
3671
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
3782
3672
  }
3783
3673
  function PopoverTrigger({ ...props }) {
3784
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
3674
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
3785
3675
  }
3786
3676
  function PopoverContent({
3787
3677
  className,
@@ -3791,7 +3681,7 @@ function PopoverContent({
3791
3681
  sideOffset = 4,
3792
3682
  ...props
3793
3683
  }) {
3794
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3684
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3795
3685
  import_popover.Popover.Positioner,
3796
3686
  {
3797
3687
  align,
@@ -3799,7 +3689,7 @@ function PopoverContent({
3799
3689
  side,
3800
3690
  sideOffset,
3801
3691
  className: "isolate z-50",
3802
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3692
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3803
3693
  import_popover.Popover.Popup,
3804
3694
  {
3805
3695
  "data-slot": "popover-content",
@@ -3821,23 +3711,23 @@ var import_cn19 = require("cn");
3821
3711
  // src/primitives/dialog.tsx
3822
3712
  var import_dialog3 = require("@base-ui/react/dialog");
3823
3713
  var import_cn16 = require("cn");
3824
- var import_lucide_react11 = require("lucide-react");
3825
- var import_jsx_runtime38 = require("react/jsx-runtime");
3714
+ var import_lucide_react12 = require("lucide-react");
3715
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3826
3716
 
3827
3717
  // src/primitives/input-group.tsx
3828
- var import_class_variance_authority14 = require("class-variance-authority");
3718
+ var import_class_variance_authority13 = require("class-variance-authority");
3829
3719
  var import_cn18 = require("cn");
3830
3720
 
3831
3721
  // src/primitives/textarea.tsx
3832
3722
  var import_cn17 = require("cn");
3833
- var import_jsx_runtime39 = require("react/jsx-runtime");
3723
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3834
3724
  function Textarea({ className, ...props }) {
3835
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3725
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3836
3726
  "textarea",
3837
3727
  {
3838
3728
  "data-slot": "textarea",
3839
3729
  className: (0, import_cn17.cn)(
3840
- "flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
3730
+ "flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-berget-brand-granite-900 px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-berget-brand-moss-400 focus-visible:ring-3 focus-visible:ring-berget-brand-moss-300/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
3841
3731
  className
3842
3732
  ),
3843
3733
  ...props
@@ -3846,9 +3736,9 @@ function Textarea({ className, ...props }) {
3846
3736
  }
3847
3737
 
3848
3738
  // src/primitives/input-group.tsx
3849
- var import_jsx_runtime40 = require("react/jsx-runtime");
3739
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3850
3740
  function InputGroup({ className, ...props }) {
3851
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3741
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3852
3742
  "div",
3853
3743
  {
3854
3744
  "data-slot": "input-group",
@@ -3861,7 +3751,7 @@ function InputGroup({ className, ...props }) {
3861
3751
  }
3862
3752
  );
3863
3753
  }
3864
- var inputGroupAddonVariants = (0, import_class_variance_authority14.cva)(
3754
+ var inputGroupAddonVariants = (0, import_class_variance_authority13.cva)(
3865
3755
  "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
3866
3756
  {
3867
3757
  variants: {
@@ -3882,7 +3772,7 @@ function InputGroupAddon({
3882
3772
  align = "inline-start",
3883
3773
  ...props
3884
3774
  }) {
3885
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3775
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3886
3776
  "div",
3887
3777
  {
3888
3778
  role: "group",
@@ -3899,7 +3789,7 @@ function InputGroupAddon({
3899
3789
  }
3900
3790
  );
3901
3791
  }
3902
- var inputGroupButtonVariants = (0, import_class_variance_authority14.cva)(
3792
+ var inputGroupButtonVariants = (0, import_class_variance_authority13.cva)(
3903
3793
  "flex items-center gap-2 text-sm shadow-none",
3904
3794
  {
3905
3795
  variants: {
@@ -3917,13 +3807,13 @@ var inputGroupButtonVariants = (0, import_class_variance_authority14.cva)(
3917
3807
  );
3918
3808
 
3919
3809
  // src/primitives/command.tsx
3920
- var import_lucide_react12 = require("lucide-react");
3921
- var import_jsx_runtime41 = require("react/jsx-runtime");
3810
+ var import_lucide_react13 = require("lucide-react");
3811
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3922
3812
  function Command({
3923
3813
  className,
3924
3814
  ...props
3925
3815
  }) {
3926
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3816
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3927
3817
  import_cmdk.Command,
3928
3818
  {
3929
3819
  "data-slot": "command",
@@ -3939,8 +3829,8 @@ function CommandInput({
3939
3829
  className,
3940
3830
  ...props
3941
3831
  }) {
3942
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
3943
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3832
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
3833
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3944
3834
  import_cmdk.Command.Input,
3945
3835
  {
3946
3836
  "data-slot": "command-input",
@@ -3951,14 +3841,14 @@ function CommandInput({
3951
3841
  ...props
3952
3842
  }
3953
3843
  ),
3954
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(InputGroupAddon, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react12.SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
3844
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(InputGroupAddon, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react13.SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
3955
3845
  ] }) });
3956
3846
  }
3957
3847
  function CommandList({
3958
3848
  className,
3959
3849
  ...props
3960
3850
  }) {
3961
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3851
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3962
3852
  import_cmdk.Command.List,
3963
3853
  {
3964
3854
  "data-slot": "command-list",
@@ -3974,7 +3864,7 @@ function CommandEmpty({
3974
3864
  className,
3975
3865
  ...props
3976
3866
  }) {
3977
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3867
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3978
3868
  import_cmdk.Command.Empty,
3979
3869
  {
3980
3870
  "data-slot": "command-empty",
@@ -3987,7 +3877,7 @@ function CommandGroup({
3987
3877
  className,
3988
3878
  ...props
3989
3879
  }) {
3990
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3880
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3991
3881
  import_cmdk.Command.Group,
3992
3882
  {
3993
3883
  "data-slot": "command-group",
@@ -4004,7 +3894,7 @@ function CommandItem({
4004
3894
  children,
4005
3895
  ...props
4006
3896
  }) {
4007
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3897
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4008
3898
  import_cmdk.Command.Item,
4009
3899
  {
4010
3900
  "data-slot": "command-item",
@@ -4015,7 +3905,7 @@ function CommandItem({
4015
3905
  ...props,
4016
3906
  children: [
4017
3907
  children,
4018
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react12.CheckIcon, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
3908
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react13.CheckIcon, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
4019
3909
  ]
4020
3910
  }
4021
3911
  );
@@ -4163,8 +4053,8 @@ var isEUCountry = (countryCode) => {
4163
4053
  };
4164
4054
 
4165
4055
  // src/components/country-select/CountrySelect.tsx
4166
- var import_jsx_runtime42 = require("react/jsx-runtime");
4167
- var CountrySelect = React23.forwardRef(
4056
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4057
+ var CountrySelect = React21.forwardRef(
4168
4058
  ({
4169
4059
  value,
4170
4060
  onValueChange,
@@ -4174,14 +4064,14 @@ var CountrySelect = React23.forwardRef(
4174
4064
  align = "center",
4175
4065
  sideOffset = 4
4176
4066
  }, ref) => {
4177
- const [open, setOpen] = React23.useState(false);
4178
- const selectedCountry = React23.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
4179
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
4180
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4067
+ const [open, setOpen] = React21.useState(false);
4068
+ const selectedCountry = React21.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
4069
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
4070
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4181
4071
  PopoverTrigger,
4182
4072
  {
4183
4073
  ref,
4184
- render: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4074
+ render: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4185
4075
  "button",
4186
4076
  {
4187
4077
  type: "button",
@@ -4203,29 +4093,29 @@ var CountrySelect = React23.forwardRef(
4203
4093
  }
4204
4094
  ),
4205
4095
  children: [
4206
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
4207
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
4208
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "truncate", children: selectedCountry.name }),
4209
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
4096
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4097
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
4098
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "truncate", children: selectedCountry.name }),
4099
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
4210
4100
  "(",
4211
4101
  selectedCountry.code,
4212
4102
  ")"
4213
4103
  ] })
4214
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
4215
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4104
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4105
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4216
4106
  Icon,
4217
4107
  {
4218
- icon: import_lucide_react13.Globe,
4108
+ icon: import_lucide_react14.Globe,
4219
4109
  size: 16,
4220
4110
  className: "flex-shrink-0 text-berget-muted-foreground"
4221
4111
  }
4222
4112
  ),
4223
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
4113
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
4224
4114
  ] }) }),
4225
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4115
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4226
4116
  Icon,
4227
4117
  {
4228
- icon: import_lucide_react13.ChevronDown,
4118
+ icon: import_lucide_react14.ChevronDown,
4229
4119
  size: 16,
4230
4120
  className: cn(
4231
4121
  "flex-shrink-0 text-berget-muted-foreground",
@@ -4237,17 +4127,17 @@ var CountrySelect = React23.forwardRef(
4237
4127
  ]
4238
4128
  }
4239
4129
  ),
4240
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4130
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4241
4131
  PopoverContent,
4242
4132
  {
4243
4133
  align,
4244
4134
  sideOffset,
4245
4135
  className: "w-[var(--radix-popover-trigger-width)] p-0",
4246
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Command, { children: [
4247
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CommandInput, { placeholder: "Search country..." }),
4248
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(CommandList, { children: [
4249
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CommandEmpty, { children: "No countries found." }),
4250
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4136
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Command, { children: [
4137
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CommandInput, { placeholder: "Search country..." }),
4138
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(CommandList, { children: [
4139
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CommandEmpty, { children: "No countries found." }),
4140
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4251
4141
  CommandItem,
4252
4142
  {
4253
4143
  value: `${country.name} ${country.code}`,
@@ -4261,12 +4151,12 @@ var CountrySelect = React23.forwardRef(
4261
4151
  value === country.code && "bg-berget-brand-granite-800/40"
4262
4152
  ),
4263
4153
  children: [
4264
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
4265
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex-1 min-w-0", children: [
4266
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-sm truncate", children: country.name }),
4267
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
4154
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
4155
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex-1 min-w-0", children: [
4156
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "text-sm truncate", children: country.name }),
4157
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
4268
4158
  ] }),
4269
- value === country.code && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
4159
+ value === country.code && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
4270
4160
  ]
4271
4161
  },
4272
4162
  country.code
@@ -4280,138 +4170,11 @@ var CountrySelect = React23.forwardRef(
4280
4170
  );
4281
4171
  CountrySelect.displayName = "CountrySelect";
4282
4172
 
4283
- // src/components/text-area/TextArea.tsx
4284
- var React24 = __toESM(require("react"), 1);
4285
- var import_class_variance_authority15 = require("class-variance-authority");
4286
- var import_jsx_runtime43 = require("react/jsx-runtime");
4287
- var textAreaVariants = (0, import_class_variance_authority15.cva)(
4288
- "rounded-berget-xs bg-card px-4 py-3 transition-colors duration-200 focus-visible:border-berget-form-focus-border focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",
4289
- {
4290
- variants: {
4291
- variant: {
4292
- default: "border-berget-border-interactive hover:bg-berget-surface-hover",
4293
- primary: "border-berget-primary-border bg-berget-primary-tint hover:bg-berget-surface-hover",
4294
- subtle: "border-berget-border-subtle hover:bg-berget-surface-hover",
4295
- muted: "border-berget-border-subtle/50 hover:bg-berget-surface-hover"
4296
- },
4297
- size: {
4298
- sm: "px-3 py-2 sm:px-4 sm:py-2.5 text-xs sm:text-sm",
4299
- default: "px-4 py-3 sm:py-3.5 text-sm",
4300
- lg: "px-5 py-4 sm:py-5 text-base sm:text-lg"
4301
- }
4302
- },
4303
- defaultVariants: {
4304
- variant: "default",
4305
- size: "default"
4306
- }
4307
- }
4308
- );
4309
- var TextArea = React24.forwardRef(
4310
- ({
4311
- className,
4312
- variant,
4313
- size,
4314
- label,
4315
- description,
4316
- error,
4317
- placeholder,
4318
- maxLength,
4319
- showCount,
4320
- rows,
4321
- id,
4322
- disabled,
4323
- value,
4324
- icon,
4325
- secondaryIcon,
4326
- actionButton,
4327
- ...props
4328
- }, ref) => {
4329
- const generatedId = React24.useId();
4330
- const textareaId = id || generatedId;
4331
- const errorId = `${textareaId}-error`;
4332
- const descriptionId = `${textareaId}-description`;
4333
- const characterCount = typeof value === "string" ? value.length : 0;
4334
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col gap-2", children: [
4335
- label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4336
- "label",
4337
- {
4338
- htmlFor: textareaId,
4339
- className: cn(
4340
- "text-sm font-sans leading-none",
4341
- disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground",
4342
- error && "text-berget-destructive-foreground"
4343
- ),
4344
- children: label
4345
- }
4346
- ),
4347
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative", children: [
4348
- icon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
4349
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4350
- Textarea,
4351
- {
4352
- ref,
4353
- id: textareaId,
4354
- disabled,
4355
- "aria-invalid": !!error,
4356
- "aria-describedby": cn(error && errorId, description && descriptionId),
4357
- className: cn(
4358
- textAreaVariants({ variant, size }),
4359
- error && "border-berget-destructive-foreground/50 bg-berget-destructive",
4360
- disabled && "cursor-not-allowed",
4361
- icon && "pl-11",
4362
- secondaryIcon && "pr-20",
4363
- actionButton && !secondaryIcon && "pr-12",
4364
- secondaryIcon && actionButton && "pr-20",
4365
- className
4366
- ),
4367
- placeholder,
4368
- maxLength,
4369
- rows,
4370
- value,
4371
- ...props
4372
- }
4373
- ),
4374
- secondaryIcon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
4375
- actionButton && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
4376
- ] }),
4377
- (description || error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
4378
- description && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
4379
- (error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-2 ml-auto", children: [
4380
- showCount && maxLength && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4381
- Typography,
4382
- {
4383
- variant: "xs",
4384
- className: cn(
4385
- characterCount >= maxLength ? "text-berget-destructive-foreground" : "text-muted-foreground"
4386
- ),
4387
- children: [
4388
- characterCount,
4389
- "/",
4390
- maxLength
4391
- ]
4392
- }
4393
- ),
4394
- error && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4395
- Typography,
4396
- {
4397
- variant: "xs",
4398
- id: errorId,
4399
- className: "text-berget-destructive-foreground",
4400
- children: error
4401
- }
4402
- )
4403
- ] })
4404
- ] })
4405
- ] });
4406
- }
4407
- );
4408
- TextArea.displayName = "TextArea";
4409
-
4410
4173
  // src/primitives/label.tsx
4411
4174
  var import_cn20 = require("cn");
4412
- var import_jsx_runtime44 = require("react/jsx-runtime");
4175
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4413
4176
  function Label({ className, ...props }) {
4414
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4177
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4415
4178
  "label",
4416
4179
  {
4417
4180
  "data-slot": "label",
@@ -4426,11 +4189,11 @@ function Label({ className, ...props }) {
4426
4189
 
4427
4190
  // src/primitives/field.tsx
4428
4191
  var import_react = require("react");
4429
- var import_class_variance_authority16 = require("class-variance-authority");
4192
+ var import_class_variance_authority14 = require("class-variance-authority");
4430
4193
  var import_cn21 = require("cn");
4431
- var import_jsx_runtime45 = require("react/jsx-runtime");
4194
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4432
4195
  function FieldSet({ className, ...props }) {
4433
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4196
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4434
4197
  "fieldset",
4435
4198
  {
4436
4199
  "data-slot": "field-set",
@@ -4447,7 +4210,7 @@ function FieldLegend({
4447
4210
  variant = "legend",
4448
4211
  ...props
4449
4212
  }) {
4450
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4213
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4451
4214
  "legend",
4452
4215
  {
4453
4216
  "data-slot": "field-legend",
@@ -4461,7 +4224,7 @@ function FieldLegend({
4461
4224
  );
4462
4225
  }
4463
4226
  function FieldGroup({ className, ...props }) {
4464
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4227
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4465
4228
  "div",
4466
4229
  {
4467
4230
  "data-slot": "field-group",
@@ -4473,7 +4236,7 @@ function FieldGroup({ className, ...props }) {
4473
4236
  }
4474
4237
  );
4475
4238
  }
4476
- var fieldVariants = (0, import_class_variance_authority16.cva)(
4239
+ var fieldVariants = (0, import_class_variance_authority14.cva)(
4477
4240
  "group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
4478
4241
  {
4479
4242
  variants: {
@@ -4493,7 +4256,7 @@ function Field({
4493
4256
  orientation = "vertical",
4494
4257
  ...props
4495
4258
  }) {
4496
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4259
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4497
4260
  "div",
4498
4261
  {
4499
4262
  role: "group",
@@ -4505,7 +4268,7 @@ function Field({
4505
4268
  );
4506
4269
  }
4507
4270
  function FieldContent({ className, ...props }) {
4508
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4271
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4509
4272
  "div",
4510
4273
  {
4511
4274
  "data-slot": "field-content",
@@ -4521,7 +4284,7 @@ function FieldLabel({
4521
4284
  className,
4522
4285
  ...props
4523
4286
  }) {
4524
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4287
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4525
4288
  Label,
4526
4289
  {
4527
4290
  "data-slot": "field-label",
@@ -4535,7 +4298,7 @@ function FieldLabel({
4535
4298
  );
4536
4299
  }
4537
4300
  function FieldTitle({ className, ...props }) {
4538
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4301
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4539
4302
  "div",
4540
4303
  {
4541
4304
  "data-slot": "field-label",
@@ -4548,7 +4311,7 @@ function FieldTitle({ className, ...props }) {
4548
4311
  );
4549
4312
  }
4550
4313
  function FieldDescription({ className, ...props }) {
4551
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4314
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4552
4315
  "p",
4553
4316
  {
4554
4317
  "data-slot": "field-description",
@@ -4567,7 +4330,7 @@ function FieldSeparator({
4567
4330
  className,
4568
4331
  ...props
4569
4332
  }) {
4570
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4333
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4571
4334
  "div",
4572
4335
  {
4573
4336
  "data-slot": "field-separator",
@@ -4578,8 +4341,8 @@ function FieldSeparator({
4578
4341
  ),
4579
4342
  ...props,
4580
4343
  children: [
4581
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
4582
- children && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4344
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
4345
+ children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4583
4346
  "span",
4584
4347
  {
4585
4348
  className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
@@ -4610,14 +4373,14 @@ function FieldError({
4610
4373
  if (uniqueErrors?.length == 1) {
4611
4374
  return uniqueErrors[0]?.message;
4612
4375
  }
4613
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
4614
- (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("li", { children: error.message }, index)
4376
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
4377
+ (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: error.message }, index)
4615
4378
  ) });
4616
4379
  }, [children, errors]);
4617
4380
  if (!content) {
4618
4381
  return null;
4619
4382
  }
4620
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4383
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4621
4384
  "div",
4622
4385
  {
4623
4386
  role: "alert",
@@ -4630,11 +4393,11 @@ function FieldError({
4630
4393
  }
4631
4394
 
4632
4395
  // src/components/link/Link.tsx
4633
- var React25 = __toESM(require("react"), 1);
4634
- var import_class_variance_authority17 = require("class-variance-authority");
4635
- var import_lucide_react14 = require("lucide-react");
4636
- var import_jsx_runtime46 = require("react/jsx-runtime");
4637
- var linkVariants = (0, import_class_variance_authority17.cva)(
4396
+ var React22 = __toESM(require("react"), 1);
4397
+ var import_class_variance_authority15 = require("class-variance-authority");
4398
+ var import_lucide_react15 = require("lucide-react");
4399
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4400
+ var linkVariants = (0, import_class_variance_authority15.cva)(
4638
4401
  "inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
4639
4402
  {
4640
4403
  variants: {
@@ -4658,7 +4421,7 @@ var linkVariants = (0, import_class_variance_authority17.cva)(
4658
4421
  }
4659
4422
  }
4660
4423
  );
4661
- var Link = React25.forwardRef(
4424
+ var Link = React22.forwardRef(
4662
4425
  ({
4663
4426
  className,
4664
4427
  variant,
@@ -4671,7 +4434,7 @@ var Link = React25.forwardRef(
4671
4434
  ...props
4672
4435
  }, ref) => {
4673
4436
  const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
4674
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4437
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4675
4438
  "a",
4676
4439
  {
4677
4440
  ref,
@@ -4687,8 +4450,8 @@ var Link = React25.forwardRef(
4687
4450
  },
4688
4451
  children: [
4689
4452
  children,
4690
- icon && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "inline-flex items-center", children: icon }),
4691
- showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { icon: import_lucide_react14.ExternalLink, size: 16 }) })
4453
+ icon && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "inline-flex items-center", children: icon }),
4454
+ showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { icon: import_lucide_react15.ExternalLink, size: 16 }) })
4692
4455
  ]
4693
4456
  }
4694
4457
  );
@@ -4697,11 +4460,11 @@ var Link = React25.forwardRef(
4697
4460
  Link.displayName = "Link";
4698
4461
 
4699
4462
  // src/components/container/Container.tsx
4700
- var React26 = __toESM(require("react"), 1);
4463
+ var React23 = __toESM(require("react"), 1);
4701
4464
  var import_merge_props3 = require("@base-ui/react/merge-props");
4702
4465
  var import_use_render3 = require("@base-ui/react/use-render");
4703
- var import_class_variance_authority18 = require("class-variance-authority");
4704
- var containerVariants = (0, import_class_variance_authority18.cva)("w-full mx-auto", {
4466
+ var import_class_variance_authority16 = require("class-variance-authority");
4467
+ var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-auto", {
4705
4468
  variants: {
4706
4469
  size: {
4707
4470
  sm: "max-w-3xl",
@@ -4722,7 +4485,7 @@ var containerVariants = (0, import_class_variance_authority18.cva)("w-full mx-au
4722
4485
  padding: "md"
4723
4486
  }
4724
4487
  });
4725
- var Container = React26.forwardRef(
4488
+ var Container = React23.forwardRef(
4726
4489
  ({ className, size, padding, asChild = false, children, ...props }, ref) => {
4727
4490
  return (0, import_use_render3.useRender)({
4728
4491
  ref,
@@ -4741,11 +4504,11 @@ var Container = React26.forwardRef(
4741
4504
  Container.displayName = "Container";
4742
4505
 
4743
4506
  // src/components/grid/Grid.tsx
4744
- var React27 = __toESM(require("react"), 1);
4745
- var import_class_variance_authority19 = require("class-variance-authority");
4507
+ var React24 = __toESM(require("react"), 1);
4508
+ var import_class_variance_authority17 = require("class-variance-authority");
4746
4509
  var import_merge_props4 = require("@base-ui/react/merge-props");
4747
4510
  var import_use_render4 = require("@base-ui/react/use-render");
4748
- var gridVariants = (0, import_class_variance_authority19.cva)("grid", {
4511
+ var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
4749
4512
  variants: {
4750
4513
  align: {
4751
4514
  start: "items-start",
@@ -4767,7 +4530,7 @@ var gridVariants = (0, import_class_variance_authority19.cva)("grid", {
4767
4530
  justify: "start"
4768
4531
  }
4769
4532
  });
4770
- var Grid = React27.forwardRef(
4533
+ var Grid = React24.forwardRef(
4771
4534
  ({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
4772
4535
  return (0, import_use_render4.useRender)({
4773
4536
  ref,
@@ -4794,11 +4557,11 @@ var Grid = React27.forwardRef(
4794
4557
  Grid.displayName = "Grid";
4795
4558
 
4796
4559
  // src/components/box/Box.tsx
4797
- var React28 = __toESM(require("react"), 1);
4798
- var import_class_variance_authority20 = require("class-variance-authority");
4560
+ var React25 = __toESM(require("react"), 1);
4561
+ var import_class_variance_authority18 = require("class-variance-authority");
4799
4562
  var import_merge_props5 = require("@base-ui/react/merge-props");
4800
4563
  var import_use_render5 = require("@base-ui/react/use-render");
4801
- var boxVariants = (0, import_class_variance_authority20.cva)("flex", {
4564
+ var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
4802
4565
  variants: {
4803
4566
  direction: {
4804
4567
  row: "flex-row",
@@ -4834,7 +4597,7 @@ var boxVariants = (0, import_class_variance_authority20.cva)("flex", {
4834
4597
  wrap: "nowrap"
4835
4598
  }
4836
4599
  });
4837
- var Box = React28.forwardRef(
4600
+ var Box = React25.forwardRef(
4838
4601
  ({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
4839
4602
  return (0, import_use_render5.useRender)({
4840
4603
  ref,
@@ -4857,22 +4620,22 @@ var Box = React28.forwardRef(
4857
4620
  Box.displayName = "Box";
4858
4621
 
4859
4622
  // src/components/language-select/LanguageSelect.tsx
4860
- var React29 = __toESM(require("react"), 1);
4861
- var import_lucide_react15 = require("lucide-react");
4862
- var import_jsx_runtime47 = require("react/jsx-runtime");
4863
- var LanguageSelect = React29.forwardRef(
4623
+ var React26 = __toESM(require("react"), 1);
4624
+ var import_lucide_react16 = require("lucide-react");
4625
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4626
+ var LanguageSelect = React26.forwardRef(
4864
4627
  ({ className, options, value, onValueChange }, ref) => {
4865
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(DropdownMenu, { children: [
4866
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DropdownMenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Button2, { variant: "outline", size: "icon", className, "aria-label": "Select language", children: [
4867
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "sr-only", children: "Select language" }),
4868
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { icon: import_lucide_react15.Globe, size: 16, "aria-hidden": true })
4628
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(DropdownMenu, { children: [
4629
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DropdownMenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Button2, { variant: "outline", size: "icon", className, "aria-label": "Select language", children: [
4630
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "sr-only", children: "Select language" }),
4631
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { icon: import_lucide_react16.Globe, size: 16, "aria-hidden": true })
4869
4632
  ] }) }),
4870
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DropdownMenuContent, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4633
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DropdownMenuContent, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4871
4634
  DropdownMenuRadioGroup,
4872
4635
  {
4873
4636
  value,
4874
4637
  onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
4875
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4638
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4876
4639
  DropdownMenuRadioItem,
4877
4640
  {
4878
4641
  value: option.value,
@@ -4890,13 +4653,13 @@ var LanguageSelect = React29.forwardRef(
4890
4653
  LanguageSelect.displayName = "LanguageSelect";
4891
4654
 
4892
4655
  // src/components/list/List.tsx
4893
- var React31 = __toESM(require("react"), 1);
4656
+ var React28 = __toESM(require("react"), 1);
4894
4657
 
4895
4658
  // src/components/divider/Divider.tsx
4896
- var React30 = __toESM(require("react"), 1);
4897
- var import_class_variance_authority21 = require("class-variance-authority");
4898
- var import_jsx_runtime48 = require("react/jsx-runtime");
4899
- var dividerVariants = (0, import_class_variance_authority21.cva)("", {
4659
+ var React27 = __toESM(require("react"), 1);
4660
+ var import_class_variance_authority19 = require("class-variance-authority");
4661
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4662
+ var dividerVariants = (0, import_class_variance_authority19.cva)("", {
4900
4663
  variants: {
4901
4664
  variant: {
4902
4665
  default: "bg-berget-separator",
@@ -4916,7 +4679,7 @@ var dividerVariants = (0, import_class_variance_authority21.cva)("", {
4916
4679
  size: "thin"
4917
4680
  }
4918
4681
  });
4919
- var Divider = React30.forwardRef(
4682
+ var Divider = React27.forwardRef(
4920
4683
  ({
4921
4684
  className,
4922
4685
  orientation = "horizontal",
@@ -4927,16 +4690,16 @@ var Divider = React30.forwardRef(
4927
4690
  ...props
4928
4691
  }, ref) => {
4929
4692
  if (label) {
4930
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
4931
- labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4693
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
4694
+ labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4932
4695
  Separator,
4933
4696
  {
4934
4697
  orientation: "horizontal",
4935
4698
  className: cn(dividerVariants({ variant, size }), "flex-1")
4936
4699
  }
4937
4700
  ),
4938
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
4939
- labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4701
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
4702
+ labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4940
4703
  Separator,
4941
4704
  {
4942
4705
  orientation: "horizontal",
@@ -4945,7 +4708,7 @@ var Divider = React30.forwardRef(
4945
4708
  )
4946
4709
  ] });
4947
4710
  }
4948
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4711
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4949
4712
  Separator,
4950
4713
  {
4951
4714
  ref,
@@ -4962,20 +4725,20 @@ var Divider = React30.forwardRef(
4962
4725
  Divider.displayName = "Divider";
4963
4726
 
4964
4727
  // src/components/list/List.tsx
4965
- var import_lucide_react16 = require("lucide-react");
4966
- var import_jsx_runtime49 = require("react/jsx-runtime");
4967
- var List = React31.forwardRef(
4728
+ var import_lucide_react17 = require("lucide-react");
4729
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4730
+ var List = React28.forwardRef(
4968
4731
  ({ className, children, ...props }, ref) => {
4969
- const childrenArray = React31.Children.toArray(children);
4970
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(React31.Fragment, { children: [
4732
+ const childrenArray = React28.Children.toArray(children);
4733
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(React28.Fragment, { children: [
4971
4734
  child,
4972
- index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Divider, { variant: "subtle" })
4735
+ index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Divider, { variant: "subtle" })
4973
4736
  ] }, index)) });
4974
4737
  }
4975
4738
  );
4976
4739
  List.displayName = "List";
4977
- var ListItem = React31.forwardRef(
4978
- ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4740
+ var ListItem = React28.forwardRef(
4741
+ ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4979
4742
  "div",
4980
4743
  {
4981
4744
  ref,
@@ -4986,15 +4749,15 @@ var ListItem = React31.forwardRef(
4986
4749
  ),
4987
4750
  ...props,
4988
4751
  children: [
4989
- icon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
4990
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex-1 min-w-0", children })
4752
+ icon && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
4753
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex-1 min-w-0", children })
4991
4754
  ]
4992
4755
  }
4993
4756
  )
4994
4757
  );
4995
4758
  ListItem.displayName = "ListItem";
4996
- var ListHeader = React31.forwardRef(
4997
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4759
+ var ListHeader = React28.forwardRef(
4760
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4998
4761
  "div",
4999
4762
  {
5000
4763
  ref,
@@ -5005,11 +4768,11 @@ var ListHeader = React31.forwardRef(
5005
4768
  )
5006
4769
  );
5007
4770
  ListHeader.displayName = "ListHeader";
5008
- var FeatureList = React31.forwardRef(
4771
+ var FeatureList = React28.forwardRef(
5009
4772
  ({ items, variant = "bullet", className, ...props }, ref) => {
5010
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
5011
- variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: import_lucide_react16.Check, size: 24, className: "text-berget-logo-light" }) }),
5012
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typography, { variant: "body", color: "muted", children: item })
4773
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
4774
+ variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { icon: import_lucide_react17.Check, size: 24, className: "text-berget-logo-light" }) }),
4775
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typography, { variant: "body", color: "muted", children: item })
5013
4776
  ] }, index)) });
5014
4777
  }
5015
4778
  );
@@ -5017,7 +4780,7 @@ FeatureList.displayName = "FeatureList";
5017
4780
 
5018
4781
  // src/components/code-block/CodeBlock.tsx
5019
4782
  var import_react2 = require("react");
5020
- var import_lucide_react17 = require("lucide-react");
4783
+ var import_lucide_react18 = require("lucide-react");
5021
4784
 
5022
4785
  // src/lib/shiki.ts
5023
4786
  var import_core2 = require("shiki/core");
@@ -5058,7 +4821,7 @@ function getHighlighter() {
5058
4821
  }
5059
4822
 
5060
4823
  // src/components/code-block/CodeBlock.tsx
5061
- var import_jsx_runtime50 = require("react/jsx-runtime");
4824
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5062
4825
  function CodeBlock({ code, language = "text", title, className }) {
5063
4826
  const [html, setHtml] = (0, import_react2.useState)(null);
5064
4827
  const [copied, setCopied] = (0, import_react2.useState)(false);
@@ -5074,16 +4837,16 @@ function CodeBlock({ code, language = "text", title, className }) {
5074
4837
  setCopied(true);
5075
4838
  setTimeout(() => setCopied(false), 2e3);
5076
4839
  }, [code]);
5077
- const copyButton = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4840
+ const copyButton = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5078
4841
  "button",
5079
4842
  {
5080
4843
  onClick: handleCopy,
5081
4844
  className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
5082
4845
  "aria-label": "Copy code",
5083
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react17.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react17.Copy, { className: "w-3.5 h-3.5" })
4846
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react18.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react18.Copy, { className: "w-3.5 h-3.5" })
5084
4847
  }
5085
4848
  );
5086
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4849
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5087
4850
  "div",
5088
4851
  {
5089
4852
  className: cn(
@@ -5091,25 +4854,25 @@ function CodeBlock({ code, language = "text", title, className }) {
5091
4854
  className
5092
4855
  ),
5093
4856
  children: [
5094
- title && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
5095
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
5096
- html ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4857
+ title && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
4858
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
4859
+ html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5097
4860
  "div",
5098
4861
  {
5099
4862
  className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
5100
4863
  dangerouslySetInnerHTML: { __html: html }
5101
4864
  }
5102
- ) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("code", { children: code }) })
4865
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("code", { children: code }) })
5103
4866
  ]
5104
4867
  }
5105
4868
  );
5106
4869
  }
5107
4870
 
5108
4871
  // src/components/window-frame/WindowFrame.tsx
5109
- var React32 = __toESM(require("react"), 1);
4872
+ var React29 = __toESM(require("react"), 1);
5110
4873
  var import_react3 = require("react");
5111
- var import_jsx_runtime51 = require("react/jsx-runtime");
5112
- var WindowFrame = React32.forwardRef(
4874
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4875
+ var WindowFrame = React29.forwardRef(
5113
4876
  ({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
5114
4877
  const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
5115
4878
  const currentTab = activeTab ?? internalActive;
@@ -5120,7 +4883,7 @@ var WindowFrame = React32.forwardRef(
5120
4883
  setInternalActive(id);
5121
4884
  }
5122
4885
  };
5123
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4886
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5124
4887
  "div",
5125
4888
  {
5126
4889
  ref,
@@ -5130,13 +4893,13 @@ var WindowFrame = React32.forwardRef(
5130
4893
  ),
5131
4894
  ...props,
5132
4895
  children: [
5133
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
5134
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
5135
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
5136
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
5137
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
4896
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
4897
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
4898
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
4899
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
4900
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
5138
4901
  ] }),
5139
- tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4902
+ tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5140
4903
  "button",
5141
4904
  {
5142
4905
  type: "button",
@@ -5148,9 +4911,9 @@ var WindowFrame = React32.forwardRef(
5148
4911
  children: tab.label
5149
4912
  },
5150
4913
  tab.id
5151
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
4914
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
5152
4915
  ] }),
5153
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children })
4916
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children })
5154
4917
  ]
5155
4918
  }
5156
4919
  );
@@ -5160,7 +4923,7 @@ WindowFrame.displayName = "WindowFrame";
5160
4923
 
5161
4924
  // src/components/fog-illustration/FogIllustration.tsx
5162
4925
  var import_react4 = require("react");
5163
- var import_jsx_runtime52 = require("react/jsx-runtime");
4926
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5164
4927
  var FOG_BRAND_PALETTE = {
5165
4928
  ink: "#171a1a",
5166
4929
  milk: "#f7f5ed",
@@ -5473,7 +5236,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
5473
5236
  gl.deleteFramebuffer(fbo);
5474
5237
  };
5475
5238
  }, []);
5476
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
5239
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
5477
5240
  };
5478
5241
  // Annotate the CommonJS export names for ESM import in node:
5479
5242
  0 && (module.exports = {
@@ -5575,7 +5338,17 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
5575
5338
  NavigationMenuList,
5576
5339
  NavigationMenuPositioner,
5577
5340
  NavigationMenuTrigger,
5341
+ SearchInput,
5578
5342
  Select,
5343
+ SelectContent,
5344
+ SelectGroup,
5345
+ SelectItem,
5346
+ SelectLabel,
5347
+ SelectScrollDownButton,
5348
+ SelectScrollUpButton,
5349
+ SelectSeparator,
5350
+ SelectTrigger,
5351
+ SelectValue,
5579
5352
  Sidebar,
5580
5353
  SidebarContent,
5581
5354
  SidebarFooter,
@@ -5610,7 +5383,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
5610
5383
  TableHead,
5611
5384
  TableHeader,
5612
5385
  TableRow,
5613
- TextArea,
5386
+ Textarea,
5614
5387
  ThemeProvider,
5615
5388
  ThemeToggle,
5616
5389
  Typography,
@@ -5629,10 +5402,8 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
5629
5402
  isEUCountry,
5630
5403
  linkVariants,
5631
5404
  navigationMenuTriggerStyle,
5632
- selectVariants,
5633
5405
  switchRootVariants,
5634
5406
  switchThumbVariants,
5635
- textAreaVariants,
5636
5407
  typographyVariants,
5637
5408
  useSidebar,
5638
5409
  useTheme