@bergetai/ui 0.12.1 → 0.13.1
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 +270 -508
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -54
- package/dist/index.d.ts +24 -54
- package/dist/index.js +241 -487
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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: () =>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -787,31 +795,25 @@ function CardFooter({ className, ...props }) {
|
|
|
787
795
|
|
|
788
796
|
// src/components/card/Card.tsx
|
|
789
797
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
790
|
-
var cardVariants = (0, import_class_variance_authority3.cva)("
|
|
798
|
+
var cardVariants = (0, import_class_variance_authority3.cva)("ring-0", {
|
|
791
799
|
variants: {
|
|
792
800
|
variant: {
|
|
793
801
|
outlined: "bg-transparent border border-berget-border-subtle",
|
|
794
802
|
filled: "bg-berget-card-filled-bg border border-berget-border-subtle"
|
|
795
|
-
},
|
|
796
|
-
padding: {
|
|
797
|
-
none: "p-0",
|
|
798
|
-
sm: "p-3 sm:p-4",
|
|
799
|
-
md: "p-4 sm:p-6",
|
|
800
|
-
lg: "p-6 sm:p-8"
|
|
801
803
|
}
|
|
802
804
|
},
|
|
803
805
|
defaultVariants: {
|
|
804
|
-
variant: "outlined"
|
|
805
|
-
padding: "md"
|
|
806
|
+
variant: "outlined"
|
|
806
807
|
}
|
|
807
808
|
});
|
|
808
809
|
var Card2 = React5.forwardRef(
|
|
809
|
-
({ className, variant,
|
|
810
|
+
({ className, variant, size, children, ...props }, ref) => {
|
|
810
811
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
811
812
|
Card,
|
|
812
813
|
{
|
|
813
814
|
ref,
|
|
814
|
-
|
|
815
|
+
size,
|
|
816
|
+
className: cn(cardVariants({ variant }), className),
|
|
815
817
|
...props,
|
|
816
818
|
children
|
|
817
819
|
}
|
|
@@ -1126,7 +1128,6 @@ var ModelCard = React9.forwardRef(
|
|
|
1126
1128
|
Card2,
|
|
1127
1129
|
{
|
|
1128
1130
|
variant: "filled",
|
|
1129
|
-
padding: "none",
|
|
1130
1131
|
className: "relative flex h-full flex-col bg-berget-card-filled-bg p-5 transition-all hover:bg-[color-mix(in_oklab,var(--berget-brand-granite-100)_5%,var(--berget-card-filled-bg))] sm:p-6",
|
|
1131
1132
|
children: [
|
|
1132
1133
|
lifecycle && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "absolute top-0 right-0 z-10 overflow-hidden rounded-bl-berget-sm", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -1819,7 +1820,7 @@ function Input({ className, type, ...props }) {
|
|
|
1819
1820
|
type,
|
|
1820
1821
|
"data-slot": "input",
|
|
1821
1822
|
className: (0, import_cn5.cn)(
|
|
1822
|
-
"h-8 w-full min-w-0 rounded-lg border border-input bg-
|
|
1823
|
+
"h-8 w-full min-w-0 rounded-lg border border-input bg-input/30 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:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
1823
1824
|
className
|
|
1824
1825
|
),
|
|
1825
1826
|
...props
|
|
@@ -3183,100 +3184,46 @@ var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
3183
3184
|
});
|
|
3184
3185
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3185
3186
|
|
|
3186
|
-
// src/components/input/
|
|
3187
|
-
var
|
|
3187
|
+
// src/components/search-input/SearchInput.tsx
|
|
3188
|
+
var import_lucide_react8 = require("lucide-react");
|
|
3188
3189
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3189
|
-
var
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
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
|
-
] });
|
|
3190
|
+
var SearchInput = ({
|
|
3191
|
+
type = "search",
|
|
3192
|
+
placeholder = "Search...",
|
|
3193
|
+
className,
|
|
3194
|
+
ref,
|
|
3195
|
+
...props
|
|
3196
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
|
|
3197
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3198
|
+
import_lucide_react8.Search,
|
|
3199
|
+
{
|
|
3200
|
+
"aria-hidden": "true",
|
|
3201
|
+
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3242
3202
|
}
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
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";
|
|
3203
|
+
),
|
|
3204
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3205
|
+
Input,
|
|
3206
|
+
{
|
|
3207
|
+
ref,
|
|
3208
|
+
type,
|
|
3209
|
+
placeholder,
|
|
3210
|
+
className: cn("rounded-full pl-8", className),
|
|
3211
|
+
...props
|
|
3212
|
+
}
|
|
3213
|
+
)
|
|
3214
|
+
] });
|
|
3215
|
+
SearchInput.displayName = "SearchInput";
|
|
3269
3216
|
|
|
3270
3217
|
// src/components/checkbox/Checkbox.tsx
|
|
3271
|
-
var
|
|
3218
|
+
var React18 = __toESM(require("react"), 1);
|
|
3272
3219
|
var import_checkbox2 = require("@base-ui/react/checkbox");
|
|
3273
|
-
var
|
|
3220
|
+
var import_lucide_react10 = require("lucide-react");
|
|
3274
3221
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
3275
3222
|
|
|
3276
3223
|
// src/primitives/checkbox.tsx
|
|
3277
3224
|
var import_checkbox = require("@base-ui/react/checkbox");
|
|
3278
3225
|
var import_cn13 = require("cn");
|
|
3279
|
-
var
|
|
3226
|
+
var import_lucide_react9 = require("lucide-react");
|
|
3280
3227
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3281
3228
|
function Checkbox({ className, ...props }) {
|
|
3282
3229
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
@@ -3294,7 +3241,7 @@ function Checkbox({ className, ...props }) {
|
|
|
3294
3241
|
"data-slot": "checkbox-indicator",
|
|
3295
3242
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3296
3243
|
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3297
|
-
|
|
3244
|
+
import_lucide_react9.CheckIcon,
|
|
3298
3245
|
{}
|
|
3299
3246
|
)
|
|
3300
3247
|
}
|
|
@@ -3326,7 +3273,7 @@ var checkboxVariants = (0, import_class_variance_authority11.cva)(
|
|
|
3326
3273
|
}
|
|
3327
3274
|
}
|
|
3328
3275
|
);
|
|
3329
|
-
var Checkbox2 =
|
|
3276
|
+
var Checkbox2 = React18.forwardRef(
|
|
3330
3277
|
({
|
|
3331
3278
|
"aria-label": ariaLabel,
|
|
3332
3279
|
className,
|
|
@@ -3339,7 +3286,7 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3339
3286
|
disabled,
|
|
3340
3287
|
...props
|
|
3341
3288
|
}, ref) => {
|
|
3342
|
-
const generatedId =
|
|
3289
|
+
const generatedId = React18.useId();
|
|
3343
3290
|
const checkboxId = id || generatedId;
|
|
3344
3291
|
const errorId = `${checkboxId}-error`;
|
|
3345
3292
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
@@ -3349,7 +3296,6 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3349
3296
|
ref,
|
|
3350
3297
|
id: checkboxId,
|
|
3351
3298
|
disabled,
|
|
3352
|
-
nativeButton: true,
|
|
3353
3299
|
"aria-invalid": !!error,
|
|
3354
3300
|
"aria-describedby": error ? errorId : void 0,
|
|
3355
3301
|
"aria-label": ariaLabel || label || void 0,
|
|
@@ -3361,7 +3307,7 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3361
3307
|
),
|
|
3362
3308
|
...props,
|
|
3363
3309
|
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_checkbox2.Checkbox.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3364
|
-
|
|
3310
|
+
import_lucide_react10.Check,
|
|
3365
3311
|
{
|
|
3366
3312
|
className: "h-4 w-4 text-current stroke-current",
|
|
3367
3313
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -3391,7 +3337,7 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3391
3337
|
Checkbox2.displayName = "Checkbox";
|
|
3392
3338
|
|
|
3393
3339
|
// src/components/switch/Switch.tsx
|
|
3394
|
-
var
|
|
3340
|
+
var React19 = __toESM(require("react"), 1);
|
|
3395
3341
|
var import_switch = require("@base-ui/react/switch");
|
|
3396
3342
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
3397
3343
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
@@ -3431,7 +3377,7 @@ var switchThumbVariants = (0, import_class_variance_authority12.cva)(
|
|
|
3431
3377
|
}
|
|
3432
3378
|
}
|
|
3433
3379
|
);
|
|
3434
|
-
var Switch =
|
|
3380
|
+
var Switch = React19.forwardRef(
|
|
3435
3381
|
({
|
|
3436
3382
|
"aria-label": ariaLabel,
|
|
3437
3383
|
className,
|
|
@@ -3444,7 +3390,7 @@ var Switch = React20.forwardRef(
|
|
|
3444
3390
|
disabled,
|
|
3445
3391
|
...props
|
|
3446
3392
|
}, ref) => {
|
|
3447
|
-
const generatedId =
|
|
3393
|
+
const generatedId = React19.useId();
|
|
3448
3394
|
const switchId = id || generatedId;
|
|
3449
3395
|
const errorId = `${switchId}-error`;
|
|
3450
3396
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
@@ -3454,7 +3400,6 @@ var Switch = React20.forwardRef(
|
|
|
3454
3400
|
ref,
|
|
3455
3401
|
id: switchId,
|
|
3456
3402
|
disabled,
|
|
3457
|
-
nativeButton: true,
|
|
3458
3403
|
"aria-invalid": !!error,
|
|
3459
3404
|
"aria-describedby": error ? errorId : void 0,
|
|
3460
3405
|
"aria-label": ariaLabel || label || void 0,
|
|
@@ -3487,16 +3432,22 @@ var Switch = React20.forwardRef(
|
|
|
3487
3432
|
);
|
|
3488
3433
|
Switch.displayName = "Switch";
|
|
3489
3434
|
|
|
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
3435
|
// src/primitives/select.tsx
|
|
3495
3436
|
var import_select = require("@base-ui/react/select");
|
|
3496
3437
|
var import_cn14 = require("cn");
|
|
3497
|
-
var
|
|
3438
|
+
var import_lucide_react11 = require("lucide-react");
|
|
3498
3439
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3499
3440
|
var Select = import_select.Select.Root;
|
|
3441
|
+
function SelectGroup({ className, ...props }) {
|
|
3442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3443
|
+
import_select.Select.Group,
|
|
3444
|
+
{
|
|
3445
|
+
"data-slot": "select-group",
|
|
3446
|
+
className: (0, import_cn14.cn)("scroll-my-1 p-1", className),
|
|
3447
|
+
...props
|
|
3448
|
+
}
|
|
3449
|
+
);
|
|
3450
|
+
}
|
|
3500
3451
|
function SelectValue({ className, ...props }) {
|
|
3501
3452
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3502
3453
|
import_select.Select.Value,
|
|
@@ -3519,7 +3470,7 @@ function SelectTrigger({
|
|
|
3519
3470
|
"data-slot": "select-trigger",
|
|
3520
3471
|
"data-size": size,
|
|
3521
3472
|
className: (0, import_cn14.cn)(
|
|
3522
|
-
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-
|
|
3473
|
+
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-input/30 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
3474
|
className
|
|
3524
3475
|
),
|
|
3525
3476
|
...props,
|
|
@@ -3528,7 +3479,7 @@ function SelectTrigger({
|
|
|
3528
3479
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3529
3480
|
import_select.Select.Icon,
|
|
3530
3481
|
{
|
|
3531
|
-
render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3482
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react11.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3532
3483
|
}
|
|
3533
3484
|
)
|
|
3534
3485
|
]
|
|
@@ -3571,6 +3522,19 @@ function SelectContent({
|
|
|
3571
3522
|
}
|
|
3572
3523
|
) });
|
|
3573
3524
|
}
|
|
3525
|
+
function SelectLabel({
|
|
3526
|
+
className,
|
|
3527
|
+
...props
|
|
3528
|
+
}) {
|
|
3529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3530
|
+
import_select.Select.GroupLabel,
|
|
3531
|
+
{
|
|
3532
|
+
"data-slot": "select-label",
|
|
3533
|
+
className: (0, import_cn14.cn)("px-1.5 py-1 text-xs text-muted-foreground", className),
|
|
3534
|
+
...props
|
|
3535
|
+
}
|
|
3536
|
+
);
|
|
3537
|
+
}
|
|
3574
3538
|
function SelectItem({
|
|
3575
3539
|
className,
|
|
3576
3540
|
children,
|
|
@@ -3591,13 +3555,26 @@ function SelectItem({
|
|
|
3591
3555
|
import_select.Select.ItemIndicator,
|
|
3592
3556
|
{
|
|
3593
3557
|
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)(
|
|
3558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react11.CheckIcon, { className: "pointer-events-none" })
|
|
3595
3559
|
}
|
|
3596
3560
|
)
|
|
3597
3561
|
]
|
|
3598
3562
|
}
|
|
3599
3563
|
);
|
|
3600
3564
|
}
|
|
3565
|
+
function SelectSeparator({
|
|
3566
|
+
className,
|
|
3567
|
+
...props
|
|
3568
|
+
}) {
|
|
3569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3570
|
+
import_select.Select.Separator,
|
|
3571
|
+
{
|
|
3572
|
+
"data-slot": "select-separator",
|
|
3573
|
+
className: (0, import_cn14.cn)("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
3574
|
+
...props
|
|
3575
|
+
}
|
|
3576
|
+
);
|
|
3577
|
+
}
|
|
3601
3578
|
function SelectScrollUpButton({
|
|
3602
3579
|
className,
|
|
3603
3580
|
...props
|
|
@@ -3612,7 +3589,7 @@ function SelectScrollUpButton({
|
|
|
3612
3589
|
),
|
|
3613
3590
|
...props,
|
|
3614
3591
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3615
|
-
|
|
3592
|
+
import_lucide_react11.ChevronUpIcon,
|
|
3616
3593
|
{}
|
|
3617
3594
|
)
|
|
3618
3595
|
}
|
|
@@ -3632,122 +3609,26 @@ function SelectScrollDownButton({
|
|
|
3632
3609
|
),
|
|
3633
3610
|
...props,
|
|
3634
3611
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3635
|
-
|
|
3612
|
+
import_lucide_react11.ChevronDownIcon,
|
|
3636
3613
|
{}
|
|
3637
3614
|
)
|
|
3638
3615
|
}
|
|
3639
3616
|
);
|
|
3640
3617
|
}
|
|
3641
3618
|
|
|
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
3619
|
// src/components/country-select/CountrySelect.tsx
|
|
3739
|
-
var
|
|
3740
|
-
var
|
|
3620
|
+
var React21 = __toESM(require("react"), 1);
|
|
3621
|
+
var import_lucide_react14 = require("lucide-react");
|
|
3741
3622
|
|
|
3742
3623
|
// src/components/icon/Icon.tsx
|
|
3743
|
-
var
|
|
3744
|
-
var
|
|
3624
|
+
var React20 = __toESM(require("react"), 1);
|
|
3625
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3745
3626
|
var iconStrokeMap = {
|
|
3746
3627
|
16: 1.4,
|
|
3747
3628
|
24: 1.6,
|
|
3748
3629
|
32: 1.8
|
|
3749
3630
|
};
|
|
3750
|
-
var Icon =
|
|
3631
|
+
var Icon = React20.forwardRef(
|
|
3751
3632
|
({
|
|
3752
3633
|
icon: IconComponent,
|
|
3753
3634
|
size,
|
|
@@ -3759,7 +3640,7 @@ var Icon = React22.forwardRef(
|
|
|
3759
3640
|
const strokeWidth = iconStrokeMap[size];
|
|
3760
3641
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
3761
3642
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3762
|
-
return /* @__PURE__ */ (0,
|
|
3643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3763
3644
|
IconComponent,
|
|
3764
3645
|
{
|
|
3765
3646
|
ref,
|
|
@@ -3776,12 +3657,12 @@ Icon.displayName = "Icon";
|
|
|
3776
3657
|
// src/primitives/popover.tsx
|
|
3777
3658
|
var import_popover = require("@base-ui/react/popover");
|
|
3778
3659
|
var import_cn15 = require("cn");
|
|
3779
|
-
var
|
|
3660
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3780
3661
|
function Popover({ ...props }) {
|
|
3781
|
-
return /* @__PURE__ */ (0,
|
|
3662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
|
|
3782
3663
|
}
|
|
3783
3664
|
function PopoverTrigger({ ...props }) {
|
|
3784
|
-
return /* @__PURE__ */ (0,
|
|
3665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
3785
3666
|
}
|
|
3786
3667
|
function PopoverContent({
|
|
3787
3668
|
className,
|
|
@@ -3791,7 +3672,7 @@ function PopoverContent({
|
|
|
3791
3672
|
sideOffset = 4,
|
|
3792
3673
|
...props
|
|
3793
3674
|
}) {
|
|
3794
|
-
return /* @__PURE__ */ (0,
|
|
3675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3795
3676
|
import_popover.Popover.Positioner,
|
|
3796
3677
|
{
|
|
3797
3678
|
align,
|
|
@@ -3799,7 +3680,7 @@ function PopoverContent({
|
|
|
3799
3680
|
side,
|
|
3800
3681
|
sideOffset,
|
|
3801
3682
|
className: "isolate z-50",
|
|
3802
|
-
children: /* @__PURE__ */ (0,
|
|
3683
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3803
3684
|
import_popover.Popover.Popup,
|
|
3804
3685
|
{
|
|
3805
3686
|
"data-slot": "popover-content",
|
|
@@ -3821,23 +3702,23 @@ var import_cn19 = require("cn");
|
|
|
3821
3702
|
// src/primitives/dialog.tsx
|
|
3822
3703
|
var import_dialog3 = require("@base-ui/react/dialog");
|
|
3823
3704
|
var import_cn16 = require("cn");
|
|
3824
|
-
var
|
|
3825
|
-
var
|
|
3705
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3706
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3826
3707
|
|
|
3827
3708
|
// src/primitives/input-group.tsx
|
|
3828
|
-
var
|
|
3709
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
3829
3710
|
var import_cn18 = require("cn");
|
|
3830
3711
|
|
|
3831
3712
|
// src/primitives/textarea.tsx
|
|
3832
3713
|
var import_cn17 = require("cn");
|
|
3833
|
-
var
|
|
3714
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3834
3715
|
function Textarea({ className, ...props }) {
|
|
3835
|
-
return /* @__PURE__ */ (0,
|
|
3716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3836
3717
|
"textarea",
|
|
3837
3718
|
{
|
|
3838
3719
|
"data-slot": "textarea",
|
|
3839
3720
|
className: (0, import_cn17.cn)(
|
|
3840
|
-
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-
|
|
3721
|
+
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-input/30 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:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
3841
3722
|
className
|
|
3842
3723
|
),
|
|
3843
3724
|
...props
|
|
@@ -3846,9 +3727,9 @@ function Textarea({ className, ...props }) {
|
|
|
3846
3727
|
}
|
|
3847
3728
|
|
|
3848
3729
|
// src/primitives/input-group.tsx
|
|
3849
|
-
var
|
|
3730
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3850
3731
|
function InputGroup({ className, ...props }) {
|
|
3851
|
-
return /* @__PURE__ */ (0,
|
|
3732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3852
3733
|
"div",
|
|
3853
3734
|
{
|
|
3854
3735
|
"data-slot": "input-group",
|
|
@@ -3861,7 +3742,7 @@ function InputGroup({ className, ...props }) {
|
|
|
3861
3742
|
}
|
|
3862
3743
|
);
|
|
3863
3744
|
}
|
|
3864
|
-
var inputGroupAddonVariants = (0,
|
|
3745
|
+
var inputGroupAddonVariants = (0, import_class_variance_authority13.cva)(
|
|
3865
3746
|
"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
3747
|
{
|
|
3867
3748
|
variants: {
|
|
@@ -3882,7 +3763,7 @@ function InputGroupAddon({
|
|
|
3882
3763
|
align = "inline-start",
|
|
3883
3764
|
...props
|
|
3884
3765
|
}) {
|
|
3885
|
-
return /* @__PURE__ */ (0,
|
|
3766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3886
3767
|
"div",
|
|
3887
3768
|
{
|
|
3888
3769
|
role: "group",
|
|
@@ -3899,7 +3780,7 @@ function InputGroupAddon({
|
|
|
3899
3780
|
}
|
|
3900
3781
|
);
|
|
3901
3782
|
}
|
|
3902
|
-
var inputGroupButtonVariants = (0,
|
|
3783
|
+
var inputGroupButtonVariants = (0, import_class_variance_authority13.cva)(
|
|
3903
3784
|
"flex items-center gap-2 text-sm shadow-none",
|
|
3904
3785
|
{
|
|
3905
3786
|
variants: {
|
|
@@ -3917,13 +3798,13 @@ var inputGroupButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
|
3917
3798
|
);
|
|
3918
3799
|
|
|
3919
3800
|
// src/primitives/command.tsx
|
|
3920
|
-
var
|
|
3921
|
-
var
|
|
3801
|
+
var import_lucide_react13 = require("lucide-react");
|
|
3802
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3922
3803
|
function Command({
|
|
3923
3804
|
className,
|
|
3924
3805
|
...props
|
|
3925
3806
|
}) {
|
|
3926
|
-
return /* @__PURE__ */ (0,
|
|
3807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3927
3808
|
import_cmdk.Command,
|
|
3928
3809
|
{
|
|
3929
3810
|
"data-slot": "command",
|
|
@@ -3939,8 +3820,8 @@ function CommandInput({
|
|
|
3939
3820
|
className,
|
|
3940
3821
|
...props
|
|
3941
3822
|
}) {
|
|
3942
|
-
return /* @__PURE__ */ (0,
|
|
3943
|
-
/* @__PURE__ */ (0,
|
|
3823
|
+
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: [
|
|
3824
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3944
3825
|
import_cmdk.Command.Input,
|
|
3945
3826
|
{
|
|
3946
3827
|
"data-slot": "command-input",
|
|
@@ -3951,14 +3832,14 @@ function CommandInput({
|
|
|
3951
3832
|
...props
|
|
3952
3833
|
}
|
|
3953
3834
|
),
|
|
3954
|
-
/* @__PURE__ */ (0,
|
|
3835
|
+
/* @__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
3836
|
] }) });
|
|
3956
3837
|
}
|
|
3957
3838
|
function CommandList({
|
|
3958
3839
|
className,
|
|
3959
3840
|
...props
|
|
3960
3841
|
}) {
|
|
3961
|
-
return /* @__PURE__ */ (0,
|
|
3842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3962
3843
|
import_cmdk.Command.List,
|
|
3963
3844
|
{
|
|
3964
3845
|
"data-slot": "command-list",
|
|
@@ -3974,7 +3855,7 @@ function CommandEmpty({
|
|
|
3974
3855
|
className,
|
|
3975
3856
|
...props
|
|
3976
3857
|
}) {
|
|
3977
|
-
return /* @__PURE__ */ (0,
|
|
3858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3978
3859
|
import_cmdk.Command.Empty,
|
|
3979
3860
|
{
|
|
3980
3861
|
"data-slot": "command-empty",
|
|
@@ -3987,7 +3868,7 @@ function CommandGroup({
|
|
|
3987
3868
|
className,
|
|
3988
3869
|
...props
|
|
3989
3870
|
}) {
|
|
3990
|
-
return /* @__PURE__ */ (0,
|
|
3871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3991
3872
|
import_cmdk.Command.Group,
|
|
3992
3873
|
{
|
|
3993
3874
|
"data-slot": "command-group",
|
|
@@ -4004,7 +3885,7 @@ function CommandItem({
|
|
|
4004
3885
|
children,
|
|
4005
3886
|
...props
|
|
4006
3887
|
}) {
|
|
4007
|
-
return /* @__PURE__ */ (0,
|
|
3888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4008
3889
|
import_cmdk.Command.Item,
|
|
4009
3890
|
{
|
|
4010
3891
|
"data-slot": "command-item",
|
|
@@ -4015,7 +3896,7 @@ function CommandItem({
|
|
|
4015
3896
|
...props,
|
|
4016
3897
|
children: [
|
|
4017
3898
|
children,
|
|
4018
|
-
/* @__PURE__ */ (0,
|
|
3899
|
+
/* @__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
3900
|
]
|
|
4020
3901
|
}
|
|
4021
3902
|
);
|
|
@@ -4163,8 +4044,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4163
4044
|
};
|
|
4164
4045
|
|
|
4165
4046
|
// src/components/country-select/CountrySelect.tsx
|
|
4166
|
-
var
|
|
4167
|
-
var CountrySelect =
|
|
4047
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4048
|
+
var CountrySelect = React21.forwardRef(
|
|
4168
4049
|
({
|
|
4169
4050
|
value,
|
|
4170
4051
|
onValueChange,
|
|
@@ -4174,14 +4055,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4174
4055
|
align = "center",
|
|
4175
4056
|
sideOffset = 4
|
|
4176
4057
|
}, ref) => {
|
|
4177
|
-
const [open, setOpen] =
|
|
4178
|
-
const selectedCountry =
|
|
4179
|
-
return /* @__PURE__ */ (0,
|
|
4180
|
-
/* @__PURE__ */ (0,
|
|
4058
|
+
const [open, setOpen] = React21.useState(false);
|
|
4059
|
+
const selectedCountry = React21.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
4060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
4061
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4181
4062
|
PopoverTrigger,
|
|
4182
4063
|
{
|
|
4183
4064
|
ref,
|
|
4184
|
-
render: /* @__PURE__ */ (0,
|
|
4065
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4185
4066
|
"button",
|
|
4186
4067
|
{
|
|
4187
4068
|
type: "button",
|
|
@@ -4203,29 +4084,29 @@ var CountrySelect = React23.forwardRef(
|
|
|
4203
4084
|
}
|
|
4204
4085
|
),
|
|
4205
4086
|
children: [
|
|
4206
|
-
/* @__PURE__ */ (0,
|
|
4207
|
-
/* @__PURE__ */ (0,
|
|
4208
|
-
/* @__PURE__ */ (0,
|
|
4209
|
-
/* @__PURE__ */ (0,
|
|
4087
|
+
/* @__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: [
|
|
4088
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
4089
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
4090
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
4210
4091
|
"(",
|
|
4211
4092
|
selectedCountry.code,
|
|
4212
4093
|
")"
|
|
4213
4094
|
] })
|
|
4214
|
-
] }) : /* @__PURE__ */ (0,
|
|
4215
|
-
/* @__PURE__ */ (0,
|
|
4095
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
|
|
4096
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4216
4097
|
Icon,
|
|
4217
4098
|
{
|
|
4218
|
-
icon:
|
|
4099
|
+
icon: import_lucide_react14.Globe,
|
|
4219
4100
|
size: 16,
|
|
4220
4101
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4221
4102
|
}
|
|
4222
4103
|
),
|
|
4223
|
-
/* @__PURE__ */ (0,
|
|
4104
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4224
4105
|
] }) }),
|
|
4225
|
-
/* @__PURE__ */ (0,
|
|
4106
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4226
4107
|
Icon,
|
|
4227
4108
|
{
|
|
4228
|
-
icon:
|
|
4109
|
+
icon: import_lucide_react14.ChevronDown,
|
|
4229
4110
|
size: 16,
|
|
4230
4111
|
className: cn(
|
|
4231
4112
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -4237,17 +4118,17 @@ var CountrySelect = React23.forwardRef(
|
|
|
4237
4118
|
]
|
|
4238
4119
|
}
|
|
4239
4120
|
),
|
|
4240
|
-
/* @__PURE__ */ (0,
|
|
4121
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4241
4122
|
PopoverContent,
|
|
4242
4123
|
{
|
|
4243
4124
|
align,
|
|
4244
4125
|
sideOffset,
|
|
4245
4126
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
4246
|
-
children: /* @__PURE__ */ (0,
|
|
4247
|
-
/* @__PURE__ */ (0,
|
|
4248
|
-
/* @__PURE__ */ (0,
|
|
4249
|
-
/* @__PURE__ */ (0,
|
|
4250
|
-
/* @__PURE__ */ (0,
|
|
4127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Command, { children: [
|
|
4128
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
4129
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(CommandList, { children: [
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
4131
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4251
4132
|
CommandItem,
|
|
4252
4133
|
{
|
|
4253
4134
|
value: `${country.name} ${country.code}`,
|
|
@@ -4261,12 +4142,12 @@ var CountrySelect = React23.forwardRef(
|
|
|
4261
4142
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4262
4143
|
),
|
|
4263
4144
|
children: [
|
|
4264
|
-
/* @__PURE__ */ (0,
|
|
4265
|
-
/* @__PURE__ */ (0,
|
|
4266
|
-
/* @__PURE__ */ (0,
|
|
4267
|
-
/* @__PURE__ */ (0,
|
|
4145
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
4146
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
4147
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
4148
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
4268
4149
|
] }),
|
|
4269
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
4150
|
+
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
4151
|
]
|
|
4271
4152
|
},
|
|
4272
4153
|
country.code
|
|
@@ -4280,138 +4161,11 @@ var CountrySelect = React23.forwardRef(
|
|
|
4280
4161
|
);
|
|
4281
4162
|
CountrySelect.displayName = "CountrySelect";
|
|
4282
4163
|
|
|
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
4164
|
// src/primitives/label.tsx
|
|
4411
4165
|
var import_cn20 = require("cn");
|
|
4412
|
-
var
|
|
4166
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4413
4167
|
function Label({ className, ...props }) {
|
|
4414
|
-
return /* @__PURE__ */ (0,
|
|
4168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4415
4169
|
"label",
|
|
4416
4170
|
{
|
|
4417
4171
|
"data-slot": "label",
|
|
@@ -4426,11 +4180,11 @@ function Label({ className, ...props }) {
|
|
|
4426
4180
|
|
|
4427
4181
|
// src/primitives/field.tsx
|
|
4428
4182
|
var import_react = require("react");
|
|
4429
|
-
var
|
|
4183
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
4430
4184
|
var import_cn21 = require("cn");
|
|
4431
|
-
var
|
|
4185
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4432
4186
|
function FieldSet({ className, ...props }) {
|
|
4433
|
-
return /* @__PURE__ */ (0,
|
|
4187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4434
4188
|
"fieldset",
|
|
4435
4189
|
{
|
|
4436
4190
|
"data-slot": "field-set",
|
|
@@ -4447,7 +4201,7 @@ function FieldLegend({
|
|
|
4447
4201
|
variant = "legend",
|
|
4448
4202
|
...props
|
|
4449
4203
|
}) {
|
|
4450
|
-
return /* @__PURE__ */ (0,
|
|
4204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4451
4205
|
"legend",
|
|
4452
4206
|
{
|
|
4453
4207
|
"data-slot": "field-legend",
|
|
@@ -4461,7 +4215,7 @@ function FieldLegend({
|
|
|
4461
4215
|
);
|
|
4462
4216
|
}
|
|
4463
4217
|
function FieldGroup({ className, ...props }) {
|
|
4464
|
-
return /* @__PURE__ */ (0,
|
|
4218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4465
4219
|
"div",
|
|
4466
4220
|
{
|
|
4467
4221
|
"data-slot": "field-group",
|
|
@@ -4473,7 +4227,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
4473
4227
|
}
|
|
4474
4228
|
);
|
|
4475
4229
|
}
|
|
4476
|
-
var fieldVariants = (0,
|
|
4230
|
+
var fieldVariants = (0, import_class_variance_authority14.cva)(
|
|
4477
4231
|
"group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
4478
4232
|
{
|
|
4479
4233
|
variants: {
|
|
@@ -4493,7 +4247,7 @@ function Field({
|
|
|
4493
4247
|
orientation = "vertical",
|
|
4494
4248
|
...props
|
|
4495
4249
|
}) {
|
|
4496
|
-
return /* @__PURE__ */ (0,
|
|
4250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4497
4251
|
"div",
|
|
4498
4252
|
{
|
|
4499
4253
|
role: "group",
|
|
@@ -4505,7 +4259,7 @@ function Field({
|
|
|
4505
4259
|
);
|
|
4506
4260
|
}
|
|
4507
4261
|
function FieldContent({ className, ...props }) {
|
|
4508
|
-
return /* @__PURE__ */ (0,
|
|
4262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4509
4263
|
"div",
|
|
4510
4264
|
{
|
|
4511
4265
|
"data-slot": "field-content",
|
|
@@ -4521,7 +4275,7 @@ function FieldLabel({
|
|
|
4521
4275
|
className,
|
|
4522
4276
|
...props
|
|
4523
4277
|
}) {
|
|
4524
|
-
return /* @__PURE__ */ (0,
|
|
4278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4525
4279
|
Label,
|
|
4526
4280
|
{
|
|
4527
4281
|
"data-slot": "field-label",
|
|
@@ -4535,7 +4289,7 @@ function FieldLabel({
|
|
|
4535
4289
|
);
|
|
4536
4290
|
}
|
|
4537
4291
|
function FieldTitle({ className, ...props }) {
|
|
4538
|
-
return /* @__PURE__ */ (0,
|
|
4292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4539
4293
|
"div",
|
|
4540
4294
|
{
|
|
4541
4295
|
"data-slot": "field-label",
|
|
@@ -4548,7 +4302,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
4548
4302
|
);
|
|
4549
4303
|
}
|
|
4550
4304
|
function FieldDescription({ className, ...props }) {
|
|
4551
|
-
return /* @__PURE__ */ (0,
|
|
4305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4552
4306
|
"p",
|
|
4553
4307
|
{
|
|
4554
4308
|
"data-slot": "field-description",
|
|
@@ -4567,7 +4321,7 @@ function FieldSeparator({
|
|
|
4567
4321
|
className,
|
|
4568
4322
|
...props
|
|
4569
4323
|
}) {
|
|
4570
|
-
return /* @__PURE__ */ (0,
|
|
4324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4571
4325
|
"div",
|
|
4572
4326
|
{
|
|
4573
4327
|
"data-slot": "field-separator",
|
|
@@ -4578,8 +4332,8 @@ function FieldSeparator({
|
|
|
4578
4332
|
),
|
|
4579
4333
|
...props,
|
|
4580
4334
|
children: [
|
|
4581
|
-
/* @__PURE__ */ (0,
|
|
4582
|
-
children && /* @__PURE__ */ (0,
|
|
4335
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4336
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4583
4337
|
"span",
|
|
4584
4338
|
{
|
|
4585
4339
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4610,14 +4364,14 @@ function FieldError({
|
|
|
4610
4364
|
if (uniqueErrors?.length == 1) {
|
|
4611
4365
|
return uniqueErrors[0]?.message;
|
|
4612
4366
|
}
|
|
4613
|
-
return /* @__PURE__ */ (0,
|
|
4614
|
-
(error, index) => error?.message && /* @__PURE__ */ (0,
|
|
4367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4368
|
+
(error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: error.message }, index)
|
|
4615
4369
|
) });
|
|
4616
4370
|
}, [children, errors]);
|
|
4617
4371
|
if (!content) {
|
|
4618
4372
|
return null;
|
|
4619
4373
|
}
|
|
4620
|
-
return /* @__PURE__ */ (0,
|
|
4374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4621
4375
|
"div",
|
|
4622
4376
|
{
|
|
4623
4377
|
role: "alert",
|
|
@@ -4630,11 +4384,11 @@ function FieldError({
|
|
|
4630
4384
|
}
|
|
4631
4385
|
|
|
4632
4386
|
// src/components/link/Link.tsx
|
|
4633
|
-
var
|
|
4634
|
-
var
|
|
4635
|
-
var
|
|
4636
|
-
var
|
|
4637
|
-
var linkVariants = (0,
|
|
4387
|
+
var React22 = __toESM(require("react"), 1);
|
|
4388
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
4389
|
+
var import_lucide_react15 = require("lucide-react");
|
|
4390
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4391
|
+
var linkVariants = (0, import_class_variance_authority15.cva)(
|
|
4638
4392
|
"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
4393
|
{
|
|
4640
4394
|
variants: {
|
|
@@ -4658,7 +4412,7 @@ var linkVariants = (0, import_class_variance_authority17.cva)(
|
|
|
4658
4412
|
}
|
|
4659
4413
|
}
|
|
4660
4414
|
);
|
|
4661
|
-
var Link =
|
|
4415
|
+
var Link = React22.forwardRef(
|
|
4662
4416
|
({
|
|
4663
4417
|
className,
|
|
4664
4418
|
variant,
|
|
@@ -4671,7 +4425,7 @@ var Link = React25.forwardRef(
|
|
|
4671
4425
|
...props
|
|
4672
4426
|
}, ref) => {
|
|
4673
4427
|
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,
|
|
4428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4675
4429
|
"a",
|
|
4676
4430
|
{
|
|
4677
4431
|
ref,
|
|
@@ -4687,8 +4441,8 @@ var Link = React25.forwardRef(
|
|
|
4687
4441
|
},
|
|
4688
4442
|
children: [
|
|
4689
4443
|
children,
|
|
4690
|
-
icon && /* @__PURE__ */ (0,
|
|
4691
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
4444
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
4445
|
+
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
4446
|
]
|
|
4693
4447
|
}
|
|
4694
4448
|
);
|
|
@@ -4697,11 +4451,11 @@ var Link = React25.forwardRef(
|
|
|
4697
4451
|
Link.displayName = "Link";
|
|
4698
4452
|
|
|
4699
4453
|
// src/components/container/Container.tsx
|
|
4700
|
-
var
|
|
4454
|
+
var React23 = __toESM(require("react"), 1);
|
|
4701
4455
|
var import_merge_props3 = require("@base-ui/react/merge-props");
|
|
4702
4456
|
var import_use_render3 = require("@base-ui/react/use-render");
|
|
4703
|
-
var
|
|
4704
|
-
var containerVariants = (0,
|
|
4457
|
+
var import_class_variance_authority16 = require("class-variance-authority");
|
|
4458
|
+
var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-auto", {
|
|
4705
4459
|
variants: {
|
|
4706
4460
|
size: {
|
|
4707
4461
|
sm: "max-w-3xl",
|
|
@@ -4722,7 +4476,7 @@ var containerVariants = (0, import_class_variance_authority18.cva)("w-full mx-au
|
|
|
4722
4476
|
padding: "md"
|
|
4723
4477
|
}
|
|
4724
4478
|
});
|
|
4725
|
-
var Container =
|
|
4479
|
+
var Container = React23.forwardRef(
|
|
4726
4480
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4727
4481
|
return (0, import_use_render3.useRender)({
|
|
4728
4482
|
ref,
|
|
@@ -4741,11 +4495,11 @@ var Container = React26.forwardRef(
|
|
|
4741
4495
|
Container.displayName = "Container";
|
|
4742
4496
|
|
|
4743
4497
|
// src/components/grid/Grid.tsx
|
|
4744
|
-
var
|
|
4745
|
-
var
|
|
4498
|
+
var React24 = __toESM(require("react"), 1);
|
|
4499
|
+
var import_class_variance_authority17 = require("class-variance-authority");
|
|
4746
4500
|
var import_merge_props4 = require("@base-ui/react/merge-props");
|
|
4747
4501
|
var import_use_render4 = require("@base-ui/react/use-render");
|
|
4748
|
-
var gridVariants = (0,
|
|
4502
|
+
var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
|
|
4749
4503
|
variants: {
|
|
4750
4504
|
align: {
|
|
4751
4505
|
start: "items-start",
|
|
@@ -4767,7 +4521,7 @@ var gridVariants = (0, import_class_variance_authority19.cva)("grid", {
|
|
|
4767
4521
|
justify: "start"
|
|
4768
4522
|
}
|
|
4769
4523
|
});
|
|
4770
|
-
var Grid =
|
|
4524
|
+
var Grid = React24.forwardRef(
|
|
4771
4525
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4772
4526
|
return (0, import_use_render4.useRender)({
|
|
4773
4527
|
ref,
|
|
@@ -4794,11 +4548,11 @@ var Grid = React27.forwardRef(
|
|
|
4794
4548
|
Grid.displayName = "Grid";
|
|
4795
4549
|
|
|
4796
4550
|
// src/components/box/Box.tsx
|
|
4797
|
-
var
|
|
4798
|
-
var
|
|
4551
|
+
var React25 = __toESM(require("react"), 1);
|
|
4552
|
+
var import_class_variance_authority18 = require("class-variance-authority");
|
|
4799
4553
|
var import_merge_props5 = require("@base-ui/react/merge-props");
|
|
4800
4554
|
var import_use_render5 = require("@base-ui/react/use-render");
|
|
4801
|
-
var boxVariants = (0,
|
|
4555
|
+
var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
|
|
4802
4556
|
variants: {
|
|
4803
4557
|
direction: {
|
|
4804
4558
|
row: "flex-row",
|
|
@@ -4834,7 +4588,7 @@ var boxVariants = (0, import_class_variance_authority20.cva)("flex", {
|
|
|
4834
4588
|
wrap: "nowrap"
|
|
4835
4589
|
}
|
|
4836
4590
|
});
|
|
4837
|
-
var Box =
|
|
4591
|
+
var Box = React25.forwardRef(
|
|
4838
4592
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4839
4593
|
return (0, import_use_render5.useRender)({
|
|
4840
4594
|
ref,
|
|
@@ -4857,22 +4611,22 @@ var Box = React28.forwardRef(
|
|
|
4857
4611
|
Box.displayName = "Box";
|
|
4858
4612
|
|
|
4859
4613
|
// src/components/language-select/LanguageSelect.tsx
|
|
4860
|
-
var
|
|
4861
|
-
var
|
|
4862
|
-
var
|
|
4863
|
-
var LanguageSelect =
|
|
4614
|
+
var React26 = __toESM(require("react"), 1);
|
|
4615
|
+
var import_lucide_react16 = require("lucide-react");
|
|
4616
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4617
|
+
var LanguageSelect = React26.forwardRef(
|
|
4864
4618
|
({ className, options, value, onValueChange }, ref) => {
|
|
4865
|
-
return /* @__PURE__ */ (0,
|
|
4866
|
-
/* @__PURE__ */ (0,
|
|
4867
|
-
/* @__PURE__ */ (0,
|
|
4868
|
-
/* @__PURE__ */ (0,
|
|
4619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(DropdownMenu, { children: [
|
|
4620
|
+
/* @__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: [
|
|
4621
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
4622
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { icon: import_lucide_react16.Globe, size: 16, "aria-hidden": true })
|
|
4869
4623
|
] }) }),
|
|
4870
|
-
/* @__PURE__ */ (0,
|
|
4624
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DropdownMenuContent, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4871
4625
|
DropdownMenuRadioGroup,
|
|
4872
4626
|
{
|
|
4873
4627
|
value,
|
|
4874
4628
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
4875
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
4629
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4876
4630
|
DropdownMenuRadioItem,
|
|
4877
4631
|
{
|
|
4878
4632
|
value: option.value,
|
|
@@ -4890,13 +4644,13 @@ var LanguageSelect = React29.forwardRef(
|
|
|
4890
4644
|
LanguageSelect.displayName = "LanguageSelect";
|
|
4891
4645
|
|
|
4892
4646
|
// src/components/list/List.tsx
|
|
4893
|
-
var
|
|
4647
|
+
var React28 = __toESM(require("react"), 1);
|
|
4894
4648
|
|
|
4895
4649
|
// src/components/divider/Divider.tsx
|
|
4896
|
-
var
|
|
4897
|
-
var
|
|
4898
|
-
var
|
|
4899
|
-
var dividerVariants = (0,
|
|
4650
|
+
var React27 = __toESM(require("react"), 1);
|
|
4651
|
+
var import_class_variance_authority19 = require("class-variance-authority");
|
|
4652
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4653
|
+
var dividerVariants = (0, import_class_variance_authority19.cva)("", {
|
|
4900
4654
|
variants: {
|
|
4901
4655
|
variant: {
|
|
4902
4656
|
default: "bg-berget-separator",
|
|
@@ -4916,7 +4670,7 @@ var dividerVariants = (0, import_class_variance_authority21.cva)("", {
|
|
|
4916
4670
|
size: "thin"
|
|
4917
4671
|
}
|
|
4918
4672
|
});
|
|
4919
|
-
var Divider =
|
|
4673
|
+
var Divider = React27.forwardRef(
|
|
4920
4674
|
({
|
|
4921
4675
|
className,
|
|
4922
4676
|
orientation = "horizontal",
|
|
@@ -4927,16 +4681,16 @@ var Divider = React30.forwardRef(
|
|
|
4927
4681
|
...props
|
|
4928
4682
|
}, ref) => {
|
|
4929
4683
|
if (label) {
|
|
4930
|
-
return /* @__PURE__ */ (0,
|
|
4931
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
4684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
4685
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4932
4686
|
Separator,
|
|
4933
4687
|
{
|
|
4934
4688
|
orientation: "horizontal",
|
|
4935
4689
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
4936
4690
|
}
|
|
4937
4691
|
),
|
|
4938
|
-
/* @__PURE__ */ (0,
|
|
4939
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
4692
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
4693
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4940
4694
|
Separator,
|
|
4941
4695
|
{
|
|
4942
4696
|
orientation: "horizontal",
|
|
@@ -4945,7 +4699,7 @@ var Divider = React30.forwardRef(
|
|
|
4945
4699
|
)
|
|
4946
4700
|
] });
|
|
4947
4701
|
}
|
|
4948
|
-
return /* @__PURE__ */ (0,
|
|
4702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4949
4703
|
Separator,
|
|
4950
4704
|
{
|
|
4951
4705
|
ref,
|
|
@@ -4962,20 +4716,20 @@ var Divider = React30.forwardRef(
|
|
|
4962
4716
|
Divider.displayName = "Divider";
|
|
4963
4717
|
|
|
4964
4718
|
// src/components/list/List.tsx
|
|
4965
|
-
var
|
|
4966
|
-
var
|
|
4967
|
-
var List =
|
|
4719
|
+
var import_lucide_react17 = require("lucide-react");
|
|
4720
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4721
|
+
var List = React28.forwardRef(
|
|
4968
4722
|
({ className, children, ...props }, ref) => {
|
|
4969
|
-
const childrenArray =
|
|
4970
|
-
return /* @__PURE__ */ (0,
|
|
4723
|
+
const childrenArray = React28.Children.toArray(children);
|
|
4724
|
+
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
4725
|
child,
|
|
4972
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
4726
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Divider, { variant: "subtle" })
|
|
4973
4727
|
] }, index)) });
|
|
4974
4728
|
}
|
|
4975
4729
|
);
|
|
4976
4730
|
List.displayName = "List";
|
|
4977
|
-
var ListItem =
|
|
4978
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4731
|
+
var ListItem = React28.forwardRef(
|
|
4732
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4979
4733
|
"div",
|
|
4980
4734
|
{
|
|
4981
4735
|
ref,
|
|
@@ -4986,15 +4740,15 @@ var ListItem = React31.forwardRef(
|
|
|
4986
4740
|
),
|
|
4987
4741
|
...props,
|
|
4988
4742
|
children: [
|
|
4989
|
-
icon && /* @__PURE__ */ (0,
|
|
4990
|
-
/* @__PURE__ */ (0,
|
|
4743
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
4744
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
4991
4745
|
]
|
|
4992
4746
|
}
|
|
4993
4747
|
)
|
|
4994
4748
|
);
|
|
4995
4749
|
ListItem.displayName = "ListItem";
|
|
4996
|
-
var ListHeader =
|
|
4997
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4750
|
+
var ListHeader = React28.forwardRef(
|
|
4751
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4998
4752
|
"div",
|
|
4999
4753
|
{
|
|
5000
4754
|
ref,
|
|
@@ -5005,11 +4759,11 @@ var ListHeader = React31.forwardRef(
|
|
|
5005
4759
|
)
|
|
5006
4760
|
);
|
|
5007
4761
|
ListHeader.displayName = "ListHeader";
|
|
5008
|
-
var FeatureList =
|
|
4762
|
+
var FeatureList = React28.forwardRef(
|
|
5009
4763
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
5010
|
-
return /* @__PURE__ */ (0,
|
|
5011
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
5012
|
-
/* @__PURE__ */ (0,
|
|
4764
|
+
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: [
|
|
4765
|
+
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" }) }),
|
|
4766
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
5013
4767
|
] }, index)) });
|
|
5014
4768
|
}
|
|
5015
4769
|
);
|
|
@@ -5017,7 +4771,7 @@ FeatureList.displayName = "FeatureList";
|
|
|
5017
4771
|
|
|
5018
4772
|
// src/components/code-block/CodeBlock.tsx
|
|
5019
4773
|
var import_react2 = require("react");
|
|
5020
|
-
var
|
|
4774
|
+
var import_lucide_react18 = require("lucide-react");
|
|
5021
4775
|
|
|
5022
4776
|
// src/lib/shiki.ts
|
|
5023
4777
|
var import_core2 = require("shiki/core");
|
|
@@ -5058,7 +4812,7 @@ function getHighlighter() {
|
|
|
5058
4812
|
}
|
|
5059
4813
|
|
|
5060
4814
|
// src/components/code-block/CodeBlock.tsx
|
|
5061
|
-
var
|
|
4815
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5062
4816
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
5063
4817
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
5064
4818
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -5074,16 +4828,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5074
4828
|
setCopied(true);
|
|
5075
4829
|
setTimeout(() => setCopied(false), 2e3);
|
|
5076
4830
|
}, [code]);
|
|
5077
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
4831
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5078
4832
|
"button",
|
|
5079
4833
|
{
|
|
5080
4834
|
onClick: handleCopy,
|
|
5081
4835
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
5082
4836
|
"aria-label": "Copy code",
|
|
5083
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
4837
|
+
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
4838
|
}
|
|
5085
4839
|
);
|
|
5086
|
-
return /* @__PURE__ */ (0,
|
|
4840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5087
4841
|
"div",
|
|
5088
4842
|
{
|
|
5089
4843
|
className: cn(
|
|
@@ -5091,25 +4845,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5091
4845
|
className
|
|
5092
4846
|
),
|
|
5093
4847
|
children: [
|
|
5094
|
-
title && /* @__PURE__ */ (0,
|
|
5095
|
-
/* @__PURE__ */ (0,
|
|
5096
|
-
html ? /* @__PURE__ */ (0,
|
|
4848
|
+
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 }) }),
|
|
4849
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
4850
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5097
4851
|
"div",
|
|
5098
4852
|
{
|
|
5099
4853
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
5100
4854
|
dangerouslySetInnerHTML: { __html: html }
|
|
5101
4855
|
}
|
|
5102
|
-
) : /* @__PURE__ */ (0,
|
|
4856
|
+
) : /* @__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
4857
|
]
|
|
5104
4858
|
}
|
|
5105
4859
|
);
|
|
5106
4860
|
}
|
|
5107
4861
|
|
|
5108
4862
|
// src/components/window-frame/WindowFrame.tsx
|
|
5109
|
-
var
|
|
4863
|
+
var React29 = __toESM(require("react"), 1);
|
|
5110
4864
|
var import_react3 = require("react");
|
|
5111
|
-
var
|
|
5112
|
-
var WindowFrame =
|
|
4865
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4866
|
+
var WindowFrame = React29.forwardRef(
|
|
5113
4867
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
5114
4868
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
5115
4869
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -5120,7 +4874,7 @@ var WindowFrame = React32.forwardRef(
|
|
|
5120
4874
|
setInternalActive(id);
|
|
5121
4875
|
}
|
|
5122
4876
|
};
|
|
5123
|
-
return /* @__PURE__ */ (0,
|
|
4877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5124
4878
|
"div",
|
|
5125
4879
|
{
|
|
5126
4880
|
ref,
|
|
@@ -5130,13 +4884,13 @@ var WindowFrame = React32.forwardRef(
|
|
|
5130
4884
|
),
|
|
5131
4885
|
...props,
|
|
5132
4886
|
children: [
|
|
5133
|
-
/* @__PURE__ */ (0,
|
|
5134
|
-
/* @__PURE__ */ (0,
|
|
5135
|
-
/* @__PURE__ */ (0,
|
|
5136
|
-
/* @__PURE__ */ (0,
|
|
5137
|
-
/* @__PURE__ */ (0,
|
|
4887
|
+
/* @__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: [
|
|
4888
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
4889
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
|
|
4890
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
|
|
4891
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
|
|
5138
4892
|
] }),
|
|
5139
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
4893
|
+
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
4894
|
"button",
|
|
5141
4895
|
{
|
|
5142
4896
|
type: "button",
|
|
@@ -5148,9 +4902,9 @@ var WindowFrame = React32.forwardRef(
|
|
|
5148
4902
|
children: tab.label
|
|
5149
4903
|
},
|
|
5150
4904
|
tab.id
|
|
5151
|
-
)) }) : /* @__PURE__ */ (0,
|
|
4905
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
5152
4906
|
] }),
|
|
5153
|
-
/* @__PURE__ */ (0,
|
|
4907
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children })
|
|
5154
4908
|
]
|
|
5155
4909
|
}
|
|
5156
4910
|
);
|
|
@@ -5160,7 +4914,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
5160
4914
|
|
|
5161
4915
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
5162
4916
|
var import_react4 = require("react");
|
|
5163
|
-
var
|
|
4917
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5164
4918
|
var FOG_BRAND_PALETTE = {
|
|
5165
4919
|
ink: "#171a1a",
|
|
5166
4920
|
milk: "#f7f5ed",
|
|
@@ -5473,7 +5227,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5473
5227
|
gl.deleteFramebuffer(fbo);
|
|
5474
5228
|
};
|
|
5475
5229
|
}, []);
|
|
5476
|
-
return /* @__PURE__ */ (0,
|
|
5230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5477
5231
|
};
|
|
5478
5232
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5479
5233
|
0 && (module.exports = {
|
|
@@ -5575,7 +5329,17 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5575
5329
|
NavigationMenuList,
|
|
5576
5330
|
NavigationMenuPositioner,
|
|
5577
5331
|
NavigationMenuTrigger,
|
|
5332
|
+
SearchInput,
|
|
5578
5333
|
Select,
|
|
5334
|
+
SelectContent,
|
|
5335
|
+
SelectGroup,
|
|
5336
|
+
SelectItem,
|
|
5337
|
+
SelectLabel,
|
|
5338
|
+
SelectScrollDownButton,
|
|
5339
|
+
SelectScrollUpButton,
|
|
5340
|
+
SelectSeparator,
|
|
5341
|
+
SelectTrigger,
|
|
5342
|
+
SelectValue,
|
|
5579
5343
|
Sidebar,
|
|
5580
5344
|
SidebarContent,
|
|
5581
5345
|
SidebarFooter,
|
|
@@ -5610,7 +5374,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5610
5374
|
TableHead,
|
|
5611
5375
|
TableHeader,
|
|
5612
5376
|
TableRow,
|
|
5613
|
-
|
|
5377
|
+
Textarea,
|
|
5614
5378
|
ThemeProvider,
|
|
5615
5379
|
ThemeToggle,
|
|
5616
5380
|
Typography,
|
|
@@ -5629,10 +5393,8 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5629
5393
|
isEUCountry,
|
|
5630
5394
|
linkVariants,
|
|
5631
5395
|
navigationMenuTriggerStyle,
|
|
5632
|
-
selectVariants,
|
|
5633
5396
|
switchRootVariants,
|
|
5634
5397
|
switchThumbVariants,
|
|
5635
|
-
textAreaVariants,
|
|
5636
5398
|
typographyVariants,
|
|
5637
5399
|
useSidebar,
|
|
5638
5400
|
useTheme
|