magick-ui 0.2.2 → 0.2.3
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 +626 -406
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +626 -401
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +292 -158
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +252 -25
- package/dist/schema.d.ts +252 -25
- package/dist/schema.js +291 -158
- package/dist/schema.js.map +1 -1
- package/dist/ui/index.cjs +337 -248
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +26 -1
- package/dist/ui/index.d.ts +26 -1
- package/dist/ui/index.js +337 -243
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -1
- package/schema/component-schema.json +106 -0
package/dist/index.cjs
CHANGED
|
@@ -77,6 +77,7 @@ __export(src_exports, {
|
|
|
77
77
|
FileUploadField: () => FileUploadField,
|
|
78
78
|
Form: () => Form,
|
|
79
79
|
FormField: () => FormField,
|
|
80
|
+
GoogleMapView: () => GoogleMapView,
|
|
80
81
|
GradientContainer: () => GradientContainer,
|
|
81
82
|
Grid: () => Grid,
|
|
82
83
|
IconButton: () => IconButton,
|
|
@@ -3352,6 +3353,112 @@ var component_schema_default = {
|
|
|
3352
3353
|
},
|
|
3353
3354
|
$schema: "http://json-schema.org/draft-07/schema#"
|
|
3354
3355
|
},
|
|
3356
|
+
"google-map": {
|
|
3357
|
+
$ref: "#/definitions/google-map",
|
|
3358
|
+
definitions: {
|
|
3359
|
+
"google-map": {
|
|
3360
|
+
type: "object",
|
|
3361
|
+
properties: {
|
|
3362
|
+
type: {
|
|
3363
|
+
type: "string",
|
|
3364
|
+
const: "google-map"
|
|
3365
|
+
},
|
|
3366
|
+
props: {
|
|
3367
|
+
type: "object",
|
|
3368
|
+
properties: {
|
|
3369
|
+
center: {
|
|
3370
|
+
type: "object",
|
|
3371
|
+
properties: {
|
|
3372
|
+
lat: {
|
|
3373
|
+
type: "number",
|
|
3374
|
+
description: "Center latitude"
|
|
3375
|
+
},
|
|
3376
|
+
lng: {
|
|
3377
|
+
type: "number",
|
|
3378
|
+
description: "Center longitude"
|
|
3379
|
+
}
|
|
3380
|
+
},
|
|
3381
|
+
required: [
|
|
3382
|
+
"lat",
|
|
3383
|
+
"lng"
|
|
3384
|
+
],
|
|
3385
|
+
additionalProperties: false,
|
|
3386
|
+
description: "Map center coordinates"
|
|
3387
|
+
},
|
|
3388
|
+
zoom: {
|
|
3389
|
+
type: "number",
|
|
3390
|
+
description: "Zoom level (1-20). Defaults to 12"
|
|
3391
|
+
},
|
|
3392
|
+
markers: {
|
|
3393
|
+
type: "array",
|
|
3394
|
+
items: {
|
|
3395
|
+
type: "object",
|
|
3396
|
+
properties: {
|
|
3397
|
+
lat: {
|
|
3398
|
+
type: "number",
|
|
3399
|
+
description: "Latitude"
|
|
3400
|
+
},
|
|
3401
|
+
lng: {
|
|
3402
|
+
type: "number",
|
|
3403
|
+
description: "Longitude"
|
|
3404
|
+
},
|
|
3405
|
+
title: {
|
|
3406
|
+
type: "string",
|
|
3407
|
+
description: "Marker title shown in info window"
|
|
3408
|
+
},
|
|
3409
|
+
description: {
|
|
3410
|
+
type: "string",
|
|
3411
|
+
description: "Marker description shown in info window"
|
|
3412
|
+
},
|
|
3413
|
+
color: {
|
|
3414
|
+
type: "string",
|
|
3415
|
+
description: "Marker pin color (hex or CSS color)"
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3418
|
+
required: [
|
|
3419
|
+
"lat",
|
|
3420
|
+
"lng"
|
|
3421
|
+
],
|
|
3422
|
+
additionalProperties: false
|
|
3423
|
+
},
|
|
3424
|
+
description: "Array of map markers with lat/lng and optional info"
|
|
3425
|
+
},
|
|
3426
|
+
height: {
|
|
3427
|
+
type: "string",
|
|
3428
|
+
description: "Map height CSS value. Defaults to '400px'"
|
|
3429
|
+
},
|
|
3430
|
+
width: {
|
|
3431
|
+
type: "string",
|
|
3432
|
+
description: "Map width CSS value. Defaults to '100%'"
|
|
3433
|
+
},
|
|
3434
|
+
gestureHandling: {
|
|
3435
|
+
type: "string",
|
|
3436
|
+
enum: [
|
|
3437
|
+
"cooperative",
|
|
3438
|
+
"greedy",
|
|
3439
|
+
"none",
|
|
3440
|
+
"auto"
|
|
3441
|
+
],
|
|
3442
|
+
description: "How the map handles touch/scroll gestures. Defaults to 'cooperative'"
|
|
3443
|
+
},
|
|
3444
|
+
disableDefaultUI: {
|
|
3445
|
+
type: "boolean",
|
|
3446
|
+
description: "Hide default map controls"
|
|
3447
|
+
}
|
|
3448
|
+
},
|
|
3449
|
+
additionalProperties: false
|
|
3450
|
+
}
|
|
3451
|
+
},
|
|
3452
|
+
required: [
|
|
3453
|
+
"type",
|
|
3454
|
+
"props"
|
|
3455
|
+
],
|
|
3456
|
+
additionalProperties: false,
|
|
3457
|
+
description: "An interactive Google Map with optional markers and info windows"
|
|
3458
|
+
}
|
|
3459
|
+
},
|
|
3460
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
3461
|
+
},
|
|
3355
3462
|
calendar: {
|
|
3356
3463
|
$ref: "#/definitions/calendar",
|
|
3357
3464
|
definitions: {
|
|
@@ -5527,75 +5634,100 @@ var tableSchema = import_zod45.z.object({
|
|
|
5527
5634
|
})
|
|
5528
5635
|
}).describe("A data table with columns and rows");
|
|
5529
5636
|
|
|
5530
|
-
// src/ui/
|
|
5637
|
+
// src/ui/Map/schema.ts
|
|
5531
5638
|
var import_zod46 = require("zod");
|
|
5532
|
-
var
|
|
5533
|
-
|
|
5639
|
+
var mapMarkerSchema = import_zod46.z.object({
|
|
5640
|
+
lat: import_zod46.z.number().describe("Latitude"),
|
|
5641
|
+
lng: import_zod46.z.number().describe("Longitude"),
|
|
5642
|
+
title: import_zod46.z.string().optional().describe("Marker title shown in info window"),
|
|
5643
|
+
description: import_zod46.z.string().optional().describe("Marker description shown in info window"),
|
|
5644
|
+
color: import_zod46.z.string().optional().describe("Marker pin color (hex or CSS color)")
|
|
5645
|
+
});
|
|
5646
|
+
var googleMapSchema = import_zod46.z.object({
|
|
5647
|
+
type: import_zod46.z.literal("google-map"),
|
|
5534
5648
|
props: import_zod46.z.object({
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5649
|
+
center: import_zod46.z.object({
|
|
5650
|
+
lat: import_zod46.z.number().describe("Center latitude"),
|
|
5651
|
+
lng: import_zod46.z.number().describe("Center longitude")
|
|
5652
|
+
}).optional().describe("Map center coordinates"),
|
|
5653
|
+
zoom: import_zod46.z.number().optional().describe("Zoom level (1-20). Defaults to 12"),
|
|
5654
|
+
markers: import_zod46.z.array(mapMarkerSchema).optional().describe("Array of map markers with lat/lng and optional info"),
|
|
5655
|
+
height: import_zod46.z.string().optional().describe("Map height CSS value. Defaults to '400px'"),
|
|
5656
|
+
width: import_zod46.z.string().optional().describe("Map width CSS value. Defaults to '100%'"),
|
|
5657
|
+
gestureHandling: import_zod46.z.enum(["cooperative", "greedy", "none", "auto"]).optional().describe("How the map handles touch/scroll gestures. Defaults to 'cooperative'"),
|
|
5658
|
+
disableDefaultUI: import_zod46.z.boolean().optional().describe("Hide default map controls")
|
|
5659
|
+
})
|
|
5660
|
+
}).describe("An interactive Google Map with optional markers and info windows");
|
|
5543
5661
|
|
|
5544
|
-
// src/ui/
|
|
5662
|
+
// src/ui/Calendar/schema.ts
|
|
5545
5663
|
var import_zod47 = require("zod");
|
|
5546
|
-
var
|
|
5547
|
-
type: import_zod47.z.literal("
|
|
5664
|
+
var calendarSchema = import_zod47.z.object({
|
|
5665
|
+
type: import_zod47.z.literal("calendar"),
|
|
5548
5666
|
props: import_zod47.z.object({
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5667
|
+
showOutsideDays: import_zod47.z.boolean().optional().describe("Show days from adjacent months. Defaults to true"),
|
|
5668
|
+
captionLayout: import_zod47.z.enum(["label", "dropdown", "dropdown-months", "dropdown-years"]).optional().describe("Caption display mode. Defaults to 'label'"),
|
|
5669
|
+
buttonVariant: import_zod47.z.enum(["primary", "secondary", "outline", "destructive", "ghost", "soft"]).optional().describe("Navigation button style. Defaults to 'ghost'"),
|
|
5670
|
+
mode: import_zod47.z.enum(["single", "multiple", "range"]).optional().describe("Selection mode"),
|
|
5671
|
+
numberOfMonths: import_zod47.z.number().optional().describe("Number of months to display"),
|
|
5554
5672
|
disabled: import_zod47.z.boolean().optional()
|
|
5555
5673
|
}).optional()
|
|
5556
|
-
}).describe("A
|
|
5674
|
+
}).describe("A date calendar for picking dates or date ranges");
|
|
5557
5675
|
|
|
5558
|
-
// src/ui/
|
|
5676
|
+
// src/ui/FileInput/schema.ts
|
|
5559
5677
|
var import_zod48 = require("zod");
|
|
5560
|
-
var
|
|
5561
|
-
type: import_zod48.z.literal("
|
|
5678
|
+
var fileInputSchema = import_zod48.z.object({
|
|
5679
|
+
type: import_zod48.z.literal("file-input"),
|
|
5562
5680
|
props: import_zod48.z.object({
|
|
5563
|
-
|
|
5564
|
-
|
|
5681
|
+
label: import_zod48.z.string().optional().describe("Label text above the input"),
|
|
5682
|
+
helperText: import_zod48.z.string().optional().describe("Helper text below the input"),
|
|
5683
|
+
error: import_zod48.z.boolean().optional().describe("Show error styling. Defaults to false"),
|
|
5684
|
+
accept: import_zod48.z.string().optional().describe("Accepted file types, e.g. 'image/*,.pdf'"),
|
|
5685
|
+
multiple: import_zod48.z.boolean().optional().describe("Allow multiple files. Defaults to false"),
|
|
5686
|
+
disabled: import_zod48.z.boolean().optional()
|
|
5565
5687
|
}).optional()
|
|
5566
|
-
}).describe("A
|
|
5688
|
+
}).describe("A file input with choose-file button and upload progress");
|
|
5567
5689
|
|
|
5568
|
-
// src/ui/
|
|
5690
|
+
// src/ui/ToolToggle/schema.ts
|
|
5569
5691
|
var import_zod49 = require("zod");
|
|
5570
|
-
var
|
|
5571
|
-
type: import_zod49.z.literal("toggle
|
|
5692
|
+
var toolToggleSchema = import_zod49.z.object({
|
|
5693
|
+
type: import_zod49.z.literal("tool-toggle"),
|
|
5572
5694
|
props: import_zod49.z.object({
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5695
|
+
icon: import_zod49.z.string().optional().describe("Icon name (resolved by the renderer)"),
|
|
5696
|
+
dropdown: import_zod49.z.boolean().optional().describe("Show dropdown chevron")
|
|
5697
|
+
}).optional()
|
|
5698
|
+
}).describe("A round toggle button used in toolbars, optionally with a dropdown");
|
|
5699
|
+
|
|
5700
|
+
// src/ui/ToggleDropdownButton/schema.ts
|
|
5701
|
+
var import_zod50 = require("zod");
|
|
5702
|
+
var toggleDropdownButtonSchema = import_zod50.z.object({
|
|
5703
|
+
type: import_zod50.z.literal("toggle-dropdown-button"),
|
|
5704
|
+
props: import_zod50.z.object({
|
|
5705
|
+
type: import_zod50.z.enum(["text", "icon"]).describe("Button content type"),
|
|
5706
|
+
selected: import_zod50.z.boolean().describe("Whether the button is selected"),
|
|
5707
|
+
variant: import_zod50.z.enum(["primary", "secondary", "destructive"]).describe("Button color variant")
|
|
5576
5708
|
})
|
|
5577
5709
|
}).describe("A split toggle button with an attached dropdown trigger");
|
|
5578
5710
|
|
|
5579
5711
|
// src/ui/IconContainer/schema.ts
|
|
5580
|
-
var
|
|
5581
|
-
var iconContainerSchema =
|
|
5582
|
-
type:
|
|
5583
|
-
props:
|
|
5584
|
-
icon:
|
|
5585
|
-
size:
|
|
5586
|
-
colorInFill:
|
|
5587
|
-
disableTheme:
|
|
5712
|
+
var import_zod51 = require("zod");
|
|
5713
|
+
var iconContainerSchema = import_zod51.z.object({
|
|
5714
|
+
type: import_zod51.z.literal("icon-container"),
|
|
5715
|
+
props: import_zod51.z.object({
|
|
5716
|
+
icon: import_zod51.z.string().optional().describe("Icon name (resolved by the renderer)"),
|
|
5717
|
+
size: import_zod51.z.enum(["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "auto"]).optional().describe("Icon size. Defaults to 'sm'"),
|
|
5718
|
+
colorInFill: import_zod51.z.boolean().optional().describe("Apply fill colors to SVG paths. Defaults to true"),
|
|
5719
|
+
disableTheme: import_zod51.z.boolean().optional().describe("Disable theme-aware coloring. Defaults to false")
|
|
5588
5720
|
}).optional(),
|
|
5589
|
-
children:
|
|
5721
|
+
children: import_zod51.z.array(uiNodeSchema).optional().describe("Icon element")
|
|
5590
5722
|
}).describe("A sized container for static icons with theme-aware coloring");
|
|
5591
5723
|
|
|
5592
5724
|
// src/ui/IconProfile/schema.ts
|
|
5593
|
-
var
|
|
5594
|
-
var iconProfileSchema =
|
|
5595
|
-
type:
|
|
5596
|
-
props:
|
|
5597
|
-
icon:
|
|
5598
|
-
color:
|
|
5725
|
+
var import_zod52 = require("zod");
|
|
5726
|
+
var iconProfileSchema = import_zod52.z.object({
|
|
5727
|
+
type: import_zod52.z.literal("icon-profile"),
|
|
5728
|
+
props: import_zod52.z.object({
|
|
5729
|
+
icon: import_zod52.z.string().describe("Icon name (resolved by the renderer)"),
|
|
5730
|
+
color: import_zod52.z.enum([
|
|
5599
5731
|
"red",
|
|
5600
5732
|
"orange",
|
|
5601
5733
|
"amber",
|
|
@@ -5615,18 +5747,18 @@ var iconProfileSchema = import_zod51.z.object({
|
|
|
5615
5747
|
"rose",
|
|
5616
5748
|
"slate"
|
|
5617
5749
|
]).optional().describe("Background glow and icon color. Defaults to 'red'"),
|
|
5618
|
-
size:
|
|
5619
|
-
externalIcon:
|
|
5750
|
+
size: import_zod52.z.enum(["26", "32", "40", "48", "56", "64"]).optional().describe("Size in pixels. Defaults to '64'"),
|
|
5751
|
+
externalIcon: import_zod52.z.boolean().optional().describe("Whether the icon is external")
|
|
5620
5752
|
})
|
|
5621
5753
|
}).describe("An icon with a colored radial glow background");
|
|
5622
5754
|
|
|
5623
5755
|
// src/ui/ButtonWithTooltip/schema.ts
|
|
5624
|
-
var
|
|
5625
|
-
var buttonWithTooltipSchema =
|
|
5626
|
-
type:
|
|
5627
|
-
props:
|
|
5628
|
-
content:
|
|
5629
|
-
position:
|
|
5756
|
+
var import_zod53 = require("zod");
|
|
5757
|
+
var buttonWithTooltipSchema = import_zod53.z.object({
|
|
5758
|
+
type: import_zod53.z.literal("button-with-tooltip"),
|
|
5759
|
+
props: import_zod53.z.object({
|
|
5760
|
+
content: import_zod53.z.string().describe("Tooltip text"),
|
|
5761
|
+
position: import_zod53.z.enum([
|
|
5630
5762
|
"top",
|
|
5631
5763
|
"top-center",
|
|
5632
5764
|
"top-left",
|
|
@@ -5638,147 +5770,147 @@ var buttonWithTooltipSchema = import_zod52.z.object({
|
|
|
5638
5770
|
"left",
|
|
5639
5771
|
"right"
|
|
5640
5772
|
]).optional().describe("Tooltip placement"),
|
|
5641
|
-
withArrow:
|
|
5773
|
+
withArrow: import_zod53.z.boolean().optional().describe("Show an arrow pointer")
|
|
5642
5774
|
}),
|
|
5643
|
-
children:
|
|
5775
|
+
children: import_zod53.z.array(uiNodeSchema).optional().describe("The button element to wrap with a tooltip")
|
|
5644
5776
|
}).describe("A button wrapped with a tooltip that appears on hover");
|
|
5645
5777
|
|
|
5646
5778
|
// src/ui/Sheet/schema.ts
|
|
5647
|
-
var
|
|
5648
|
-
var sheetSchema =
|
|
5649
|
-
type:
|
|
5650
|
-
props:
|
|
5651
|
-
children:
|
|
5779
|
+
var import_zod54 = require("zod");
|
|
5780
|
+
var sheetSchema = import_zod54.z.object({
|
|
5781
|
+
type: import_zod54.z.literal("sheet"),
|
|
5782
|
+
props: import_zod54.z.object({}).optional(),
|
|
5783
|
+
children: import_zod54.z.array(uiNodeSchema).optional().describe("Compose with sheet-trigger and sheet-content")
|
|
5652
5784
|
}).describe("A slide-out panel overlay");
|
|
5653
|
-
var sheetTriggerSchema =
|
|
5654
|
-
type:
|
|
5655
|
-
props:
|
|
5656
|
-
children:
|
|
5785
|
+
var sheetTriggerSchema = import_zod54.z.object({
|
|
5786
|
+
type: import_zod54.z.literal("sheet-trigger"),
|
|
5787
|
+
props: import_zod54.z.object({}).optional(),
|
|
5788
|
+
children: import_zod54.z.array(uiNodeSchema).optional().describe("The element that opens the sheet")
|
|
5657
5789
|
}).describe("Trigger element that opens a sheet");
|
|
5658
|
-
var sheetContentSchema =
|
|
5659
|
-
type:
|
|
5660
|
-
props:
|
|
5661
|
-
side:
|
|
5662
|
-
showCloseButton:
|
|
5790
|
+
var sheetContentSchema = import_zod54.z.object({
|
|
5791
|
+
type: import_zod54.z.literal("sheet-content"),
|
|
5792
|
+
props: import_zod54.z.object({
|
|
5793
|
+
side: import_zod54.z.enum(["top", "right", "bottom", "left"]).optional().describe("Slide-in direction. Defaults to 'right'"),
|
|
5794
|
+
showCloseButton: import_zod54.z.boolean().optional().describe("Show close button. Defaults to true")
|
|
5663
5795
|
}).optional(),
|
|
5664
|
-
children:
|
|
5796
|
+
children: import_zod54.z.array(uiNodeSchema).optional().describe("Sheet body content")
|
|
5665
5797
|
}).describe("Content panel of a sheet");
|
|
5666
|
-
var sheetHeaderSchema =
|
|
5667
|
-
type:
|
|
5668
|
-
props:
|
|
5669
|
-
children:
|
|
5798
|
+
var sheetHeaderSchema = import_zod54.z.object({
|
|
5799
|
+
type: import_zod54.z.literal("sheet-header"),
|
|
5800
|
+
props: import_zod54.z.object({}).optional(),
|
|
5801
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5670
5802
|
}).describe("Header section of a sheet");
|
|
5671
|
-
var sheetFooterSchema =
|
|
5672
|
-
type:
|
|
5673
|
-
props:
|
|
5674
|
-
children:
|
|
5803
|
+
var sheetFooterSchema = import_zod54.z.object({
|
|
5804
|
+
type: import_zod54.z.literal("sheet-footer"),
|
|
5805
|
+
props: import_zod54.z.object({}).optional(),
|
|
5806
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5675
5807
|
}).describe("Footer section of a sheet");
|
|
5676
|
-
var sheetTitleSchema =
|
|
5677
|
-
type:
|
|
5678
|
-
props:
|
|
5679
|
-
children:
|
|
5808
|
+
var sheetTitleSchema = import_zod54.z.object({
|
|
5809
|
+
type: import_zod54.z.literal("sheet-title"),
|
|
5810
|
+
props: import_zod54.z.object({
|
|
5811
|
+
children: import_zod54.z.string().optional().describe("Title text")
|
|
5680
5812
|
}).optional(),
|
|
5681
|
-
children:
|
|
5813
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5682
5814
|
}).describe("Title inside a sheet-header");
|
|
5683
|
-
var sheetDescriptionSchema =
|
|
5684
|
-
type:
|
|
5685
|
-
props:
|
|
5686
|
-
children:
|
|
5815
|
+
var sheetDescriptionSchema = import_zod54.z.object({
|
|
5816
|
+
type: import_zod54.z.literal("sheet-description"),
|
|
5817
|
+
props: import_zod54.z.object({
|
|
5818
|
+
children: import_zod54.z.string().optional().describe("Description text")
|
|
5687
5819
|
}).optional(),
|
|
5688
|
-
children:
|
|
5820
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5689
5821
|
}).describe("Description text inside a sheet-header");
|
|
5690
5822
|
|
|
5691
5823
|
// src/ui/Dropdown/schema.ts
|
|
5692
|
-
var
|
|
5693
|
-
var dropdownMenuSchema =
|
|
5694
|
-
type:
|
|
5695
|
-
props:
|
|
5696
|
-
children:
|
|
5824
|
+
var import_zod55 = require("zod");
|
|
5825
|
+
var dropdownMenuSchema = import_zod55.z.object({
|
|
5826
|
+
type: import_zod55.z.literal("dropdown-menu"),
|
|
5827
|
+
props: import_zod55.z.object({}).optional(),
|
|
5828
|
+
children: import_zod55.z.array(uiNodeSchema).optional().describe("Compose with dropdown-menu-trigger and dropdown-menu-content")
|
|
5697
5829
|
}).describe("A dropdown menu container");
|
|
5698
|
-
var dropdownMenuTriggerSchema =
|
|
5699
|
-
type:
|
|
5700
|
-
props:
|
|
5701
|
-
children:
|
|
5830
|
+
var dropdownMenuTriggerSchema = import_zod55.z.object({
|
|
5831
|
+
type: import_zod55.z.literal("dropdown-menu-trigger"),
|
|
5832
|
+
props: import_zod55.z.object({}).optional(),
|
|
5833
|
+
children: import_zod55.z.array(uiNodeSchema).optional().describe("The element that opens the dropdown")
|
|
5702
5834
|
}).describe("Trigger element that opens a dropdown menu");
|
|
5703
|
-
var dropdownMenuContentSchema =
|
|
5704
|
-
type:
|
|
5705
|
-
props:
|
|
5706
|
-
side:
|
|
5707
|
-
align:
|
|
5835
|
+
var dropdownMenuContentSchema = import_zod55.z.object({
|
|
5836
|
+
type: import_zod55.z.literal("dropdown-menu-content"),
|
|
5837
|
+
props: import_zod55.z.object({
|
|
5838
|
+
side: import_zod55.z.enum(["top", "right", "bottom", "left"]).optional(),
|
|
5839
|
+
align: import_zod55.z.enum(["start", "center", "end"]).optional()
|
|
5708
5840
|
}).optional(),
|
|
5709
|
-
children:
|
|
5841
|
+
children: import_zod55.z.array(uiNodeSchema).optional().describe("Menu items")
|
|
5710
5842
|
}).describe("Content panel of a dropdown menu");
|
|
5711
|
-
var dropdownMenuItemSchema =
|
|
5712
|
-
type:
|
|
5713
|
-
props:
|
|
5714
|
-
children:
|
|
5715
|
-
variant:
|
|
5716
|
-
disabled:
|
|
5843
|
+
var dropdownMenuItemSchema = import_zod55.z.object({
|
|
5844
|
+
type: import_zod55.z.literal("dropdown-menu-item"),
|
|
5845
|
+
props: import_zod55.z.object({
|
|
5846
|
+
children: import_zod55.z.string().optional().describe("Menu item text"),
|
|
5847
|
+
variant: import_zod55.z.enum(["default", "destructive"]).optional().describe("Item style. Defaults to 'default'"),
|
|
5848
|
+
disabled: import_zod55.z.boolean().optional()
|
|
5717
5849
|
}).optional(),
|
|
5718
|
-
children:
|
|
5850
|
+
children: import_zod55.z.array(uiNodeSchema).optional()
|
|
5719
5851
|
}).describe("A single item inside a dropdown menu");
|
|
5720
|
-
var dropdownMenuSeparatorSchema =
|
|
5721
|
-
type:
|
|
5722
|
-
props:
|
|
5852
|
+
var dropdownMenuSeparatorSchema = import_zod55.z.object({
|
|
5853
|
+
type: import_zod55.z.literal("dropdown-menu-separator"),
|
|
5854
|
+
props: import_zod55.z.object({}).optional()
|
|
5723
5855
|
}).describe("A visual separator between dropdown menu items");
|
|
5724
|
-
var dropdownMenuLabelSchema =
|
|
5725
|
-
type:
|
|
5726
|
-
props:
|
|
5727
|
-
children:
|
|
5856
|
+
var dropdownMenuLabelSchema = import_zod55.z.object({
|
|
5857
|
+
type: import_zod55.z.literal("dropdown-menu-label"),
|
|
5858
|
+
props: import_zod55.z.object({
|
|
5859
|
+
children: import_zod55.z.string().optional().describe("Label text")
|
|
5728
5860
|
}).optional(),
|
|
5729
|
-
children:
|
|
5861
|
+
children: import_zod55.z.array(uiNodeSchema).optional()
|
|
5730
5862
|
}).describe("A non-interactive label inside a dropdown menu");
|
|
5731
5863
|
|
|
5732
5864
|
// src/ui/Popover/schema.ts
|
|
5733
|
-
var
|
|
5734
|
-
var popoverSchema =
|
|
5735
|
-
type:
|
|
5736
|
-
props:
|
|
5737
|
-
children:
|
|
5865
|
+
var import_zod56 = require("zod");
|
|
5866
|
+
var popoverSchema = import_zod56.z.object({
|
|
5867
|
+
type: import_zod56.z.literal("popover"),
|
|
5868
|
+
props: import_zod56.z.object({}).optional(),
|
|
5869
|
+
children: import_zod56.z.array(uiNodeSchema).optional().describe("Compose with popover-trigger and popover-content")
|
|
5738
5870
|
}).describe("A popover overlay container");
|
|
5739
|
-
var popoverTriggerSchema =
|
|
5740
|
-
type:
|
|
5741
|
-
props:
|
|
5742
|
-
children:
|
|
5871
|
+
var popoverTriggerSchema = import_zod56.z.object({
|
|
5872
|
+
type: import_zod56.z.literal("popover-trigger"),
|
|
5873
|
+
props: import_zod56.z.object({}).optional(),
|
|
5874
|
+
children: import_zod56.z.array(uiNodeSchema).optional().describe("The element that opens the popover")
|
|
5743
5875
|
}).describe("Trigger element that opens a popover");
|
|
5744
|
-
var popoverContentSchema =
|
|
5745
|
-
type:
|
|
5746
|
-
props:
|
|
5747
|
-
align:
|
|
5748
|
-
sideOffset:
|
|
5876
|
+
var popoverContentSchema = import_zod56.z.object({
|
|
5877
|
+
type: import_zod56.z.literal("popover-content"),
|
|
5878
|
+
props: import_zod56.z.object({
|
|
5879
|
+
align: import_zod56.z.enum(["start", "center", "end"]).optional().describe("Alignment relative to trigger. Defaults to 'center'"),
|
|
5880
|
+
sideOffset: import_zod56.z.number().optional().describe("Offset from trigger in px. Defaults to 4")
|
|
5749
5881
|
}).optional(),
|
|
5750
|
-
children:
|
|
5882
|
+
children: import_zod56.z.array(uiNodeSchema).optional().describe("Popover body content")
|
|
5751
5883
|
}).describe("Content panel of a popover");
|
|
5752
5884
|
|
|
5753
5885
|
// src/ui/ContextMenu/schema.ts
|
|
5754
|
-
var
|
|
5755
|
-
var contextMenuSchema =
|
|
5756
|
-
type:
|
|
5757
|
-
props:
|
|
5758
|
-
children:
|
|
5886
|
+
var import_zod57 = require("zod");
|
|
5887
|
+
var contextMenuSchema = import_zod57.z.object({
|
|
5888
|
+
type: import_zod57.z.literal("context-menu"),
|
|
5889
|
+
props: import_zod57.z.object({}).optional(),
|
|
5890
|
+
children: import_zod57.z.array(uiNodeSchema).optional().describe("Compose with context-menu-trigger and context-menu-content")
|
|
5759
5891
|
}).describe("A right-click context menu container");
|
|
5760
|
-
var contextMenuTriggerSchema =
|
|
5761
|
-
type:
|
|
5762
|
-
props:
|
|
5763
|
-
children:
|
|
5892
|
+
var contextMenuTriggerSchema = import_zod57.z.object({
|
|
5893
|
+
type: import_zod57.z.literal("context-menu-trigger"),
|
|
5894
|
+
props: import_zod57.z.object({}).optional(),
|
|
5895
|
+
children: import_zod57.z.array(uiNodeSchema).optional().describe("The element that triggers the context menu on right-click")
|
|
5764
5896
|
}).describe("Trigger area for a context menu");
|
|
5765
|
-
var contextMenuContentSchema =
|
|
5766
|
-
type:
|
|
5767
|
-
props:
|
|
5768
|
-
children:
|
|
5897
|
+
var contextMenuContentSchema = import_zod57.z.object({
|
|
5898
|
+
type: import_zod57.z.literal("context-menu-content"),
|
|
5899
|
+
props: import_zod57.z.object({}).optional(),
|
|
5900
|
+
children: import_zod57.z.array(uiNodeSchema).optional().describe("Menu items")
|
|
5769
5901
|
}).describe("Content panel of a context menu");
|
|
5770
|
-
var contextMenuItemSchema =
|
|
5771
|
-
type:
|
|
5772
|
-
props:
|
|
5773
|
-
children:
|
|
5774
|
-
variant:
|
|
5775
|
-
disabled:
|
|
5902
|
+
var contextMenuItemSchema = import_zod57.z.object({
|
|
5903
|
+
type: import_zod57.z.literal("context-menu-item"),
|
|
5904
|
+
props: import_zod57.z.object({
|
|
5905
|
+
children: import_zod57.z.string().optional().describe("Menu item text"),
|
|
5906
|
+
variant: import_zod57.z.enum(["default", "destructive"]).optional().describe("Item style. Defaults to 'default'"),
|
|
5907
|
+
disabled: import_zod57.z.boolean().optional()
|
|
5776
5908
|
}).optional(),
|
|
5777
|
-
children:
|
|
5909
|
+
children: import_zod57.z.array(uiNodeSchema).optional()
|
|
5778
5910
|
}).describe("A single item inside a context menu");
|
|
5779
|
-
var contextMenuSeparatorSchema =
|
|
5780
|
-
type:
|
|
5781
|
-
props:
|
|
5911
|
+
var contextMenuSeparatorSchema = import_zod57.z.object({
|
|
5912
|
+
type: import_zod57.z.literal("context-menu-separator"),
|
|
5913
|
+
props: import_zod57.z.object({}).optional()
|
|
5782
5914
|
}).describe("A visual separator between context menu items");
|
|
5783
5915
|
|
|
5784
5916
|
// src/schema.ts
|
|
@@ -9410,11 +9542,98 @@ function LinkButton({
|
|
|
9410
9542
|
);
|
|
9411
9543
|
}
|
|
9412
9544
|
|
|
9545
|
+
// src/ui/Map/index.tsx
|
|
9546
|
+
var import_react_google_maps = require("@vis.gl/react-google-maps");
|
|
9547
|
+
var import_react7 = require("react");
|
|
9548
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
9549
|
+
function MarkerWithInfo({
|
|
9550
|
+
marker,
|
|
9551
|
+
index,
|
|
9552
|
+
onMarkerClick
|
|
9553
|
+
}) {
|
|
9554
|
+
const [open, setOpen] = (0, import_react7.useState)(false);
|
|
9555
|
+
const handleClick = (0, import_react7.useCallback)(() => {
|
|
9556
|
+
setOpen((prev) => !prev);
|
|
9557
|
+
onMarkerClick?.(marker, index);
|
|
9558
|
+
}, [marker, index, onMarkerClick]);
|
|
9559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
9560
|
+
import_react_google_maps.AdvancedMarker,
|
|
9561
|
+
{
|
|
9562
|
+
position: { lat: marker.lat, lng: marker.lng },
|
|
9563
|
+
title: marker.title,
|
|
9564
|
+
onClick: handleClick,
|
|
9565
|
+
children: [
|
|
9566
|
+
marker.color && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
9567
|
+
import_react_google_maps.Pin,
|
|
9568
|
+
{
|
|
9569
|
+
background: marker.color,
|
|
9570
|
+
borderColor: marker.color,
|
|
9571
|
+
glyphColor: "#fff"
|
|
9572
|
+
}
|
|
9573
|
+
),
|
|
9574
|
+
open && (marker.title || marker.description) && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
9575
|
+
import_react_google_maps.InfoWindow,
|
|
9576
|
+
{
|
|
9577
|
+
position: { lat: marker.lat, lng: marker.lng },
|
|
9578
|
+
onCloseClick: () => setOpen(false),
|
|
9579
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "max-w-xs", children: [
|
|
9580
|
+
marker.title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h3", { className: "text-body-sm font-semibold", children: marker.title }),
|
|
9581
|
+
marker.description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-body-sm text-element-inverse-gray mt-1", children: marker.description })
|
|
9582
|
+
] })
|
|
9583
|
+
}
|
|
9584
|
+
)
|
|
9585
|
+
]
|
|
9586
|
+
}
|
|
9587
|
+
);
|
|
9588
|
+
}
|
|
9589
|
+
var DEFAULT_CENTER = { lat: 16.8661, lng: 96.1951 };
|
|
9590
|
+
function GoogleMapView({
|
|
9591
|
+
apiKey,
|
|
9592
|
+
center = DEFAULT_CENTER,
|
|
9593
|
+
zoom = 12,
|
|
9594
|
+
markers = [],
|
|
9595
|
+
mapId,
|
|
9596
|
+
height = "400px",
|
|
9597
|
+
width = "100%",
|
|
9598
|
+
className,
|
|
9599
|
+
gestureHandling = "cooperative",
|
|
9600
|
+
disableDefaultUI = false,
|
|
9601
|
+
onMarkerClick
|
|
9602
|
+
}) {
|
|
9603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_google_maps.APIProvider, { apiKey, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
9604
|
+
"div",
|
|
9605
|
+
{
|
|
9606
|
+
className: cn("overflow-hidden rounded-unit-corner-radius-xl", className),
|
|
9607
|
+
style: { height, width },
|
|
9608
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
9609
|
+
import_react_google_maps.Map,
|
|
9610
|
+
{
|
|
9611
|
+
defaultCenter: center,
|
|
9612
|
+
defaultZoom: zoom,
|
|
9613
|
+
mapId,
|
|
9614
|
+
gestureHandling,
|
|
9615
|
+
disableDefaultUI,
|
|
9616
|
+
style: { width: "100%", height: "100%" },
|
|
9617
|
+
children: markers.map((marker, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
9618
|
+
MarkerWithInfo,
|
|
9619
|
+
{
|
|
9620
|
+
marker,
|
|
9621
|
+
index: i,
|
|
9622
|
+
onMarkerClick
|
|
9623
|
+
},
|
|
9624
|
+
`${marker.lat}-${marker.lng}-${i}`
|
|
9625
|
+
))
|
|
9626
|
+
}
|
|
9627
|
+
)
|
|
9628
|
+
}
|
|
9629
|
+
) });
|
|
9630
|
+
}
|
|
9631
|
+
|
|
9413
9632
|
// src/ui/Media/index.tsx
|
|
9414
9633
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
9415
9634
|
var import_lucide_react16 = require("lucide-react");
|
|
9416
9635
|
var React10 = __toESM(require("react"), 1);
|
|
9417
|
-
var
|
|
9636
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
9418
9637
|
var mediaVariants = (0, import_class_variance_authority10.cva)(
|
|
9419
9638
|
"relative overflow-hidden bg-gray-100 dark:bg-gray-800",
|
|
9420
9639
|
{
|
|
@@ -9512,7 +9731,7 @@ var Media = React10.forwardRef(
|
|
|
9512
9731
|
const handleImageError = () => {
|
|
9513
9732
|
setImageError(true);
|
|
9514
9733
|
};
|
|
9515
|
-
return /* @__PURE__ */ (0,
|
|
9734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
9516
9735
|
"div",
|
|
9517
9736
|
{
|
|
9518
9737
|
ref,
|
|
@@ -9520,8 +9739,8 @@ var Media = React10.forwardRef(
|
|
|
9520
9739
|
onMouseEnter: () => setIsHovered(true),
|
|
9521
9740
|
onMouseLeave: () => setIsHovered(false),
|
|
9522
9741
|
...props,
|
|
9523
|
-
children: type === "image" ? /* @__PURE__ */ (0,
|
|
9524
|
-
/* @__PURE__ */ (0,
|
|
9742
|
+
children: type === "image" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
9743
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
9525
9744
|
"img",
|
|
9526
9745
|
{
|
|
9527
9746
|
src,
|
|
@@ -9539,13 +9758,13 @@ var Media = React10.forwardRef(
|
|
|
9539
9758
|
style: { objectFit }
|
|
9540
9759
|
}
|
|
9541
9760
|
),
|
|
9542
|
-
!imageLoaded && !imageError && /* @__PURE__ */ (0,
|
|
9543
|
-
imageError && /* @__PURE__ */ (0,
|
|
9544
|
-
/* @__PURE__ */ (0,
|
|
9545
|
-
/* @__PURE__ */ (0,
|
|
9761
|
+
!imageLoaded && !imageError && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }) }),
|
|
9762
|
+
imageError && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "text-center text-gray-500", children: [
|
|
9763
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-2xl", children: "\u{1F4F7}" }),
|
|
9764
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-sm", children: "Failed to load" })
|
|
9546
9765
|
] }) })
|
|
9547
|
-
] }) : /* @__PURE__ */ (0,
|
|
9548
|
-
/* @__PURE__ */ (0,
|
|
9766
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
9767
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
9549
9768
|
"video",
|
|
9550
9769
|
{
|
|
9551
9770
|
ref: videoRef,
|
|
@@ -9558,7 +9777,7 @@ var Media = React10.forwardRef(
|
|
|
9558
9777
|
preload: "metadata"
|
|
9559
9778
|
}
|
|
9560
9779
|
),
|
|
9561
|
-
showPlayButton && /* @__PURE__ */ (0,
|
|
9780
|
+
showPlayButton && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
9562
9781
|
"div",
|
|
9563
9782
|
{
|
|
9564
9783
|
className: cn(
|
|
@@ -9568,10 +9787,10 @@ var Media = React10.forwardRef(
|
|
|
9568
9787
|
"opacity-0": !isHovered && !videoPlaying
|
|
9569
9788
|
}
|
|
9570
9789
|
),
|
|
9571
|
-
children: /* @__PURE__ */ (0,
|
|
9790
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
9572
9791
|
IconButton,
|
|
9573
9792
|
{
|
|
9574
|
-
icon: videoPlaying ? /* @__PURE__ */ (0,
|
|
9793
|
+
icon: videoPlaying ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Pause, { className: "text-gray-900" }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Play, { className: "ml-1 text-gray-900" }),
|
|
9575
9794
|
onClick: videoPlaying ? handlePause : handlePlay,
|
|
9576
9795
|
varient: "outline",
|
|
9577
9796
|
size: "md",
|
|
@@ -9592,7 +9811,7 @@ Media.displayName = "Media";
|
|
|
9592
9811
|
// src/ui/MultiSelect/index.tsx
|
|
9593
9812
|
var import_lucide_react17 = require("lucide-react");
|
|
9594
9813
|
var React11 = __toESM(require("react"), 1);
|
|
9595
|
-
var
|
|
9814
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
9596
9815
|
function MultiSelect({
|
|
9597
9816
|
options,
|
|
9598
9817
|
selected,
|
|
@@ -9665,8 +9884,8 @@ function MultiSelect({
|
|
|
9665
9884
|
e.preventDefault();
|
|
9666
9885
|
inputRef.current?.focus();
|
|
9667
9886
|
};
|
|
9668
|
-
return /* @__PURE__ */ (0,
|
|
9669
|
-
/* @__PURE__ */ (0,
|
|
9887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
9888
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
9670
9889
|
"div",
|
|
9671
9890
|
{
|
|
9672
9891
|
ref: containerRef,
|
|
@@ -9678,10 +9897,10 @@ function MultiSelect({
|
|
|
9678
9897
|
),
|
|
9679
9898
|
onClick: handleContainerClick,
|
|
9680
9899
|
children: [
|
|
9681
|
-
/* @__PURE__ */ (0,
|
|
9900
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: [
|
|
9682
9901
|
selected.map((value) => {
|
|
9683
9902
|
const option = options.find((opt) => opt.value === value);
|
|
9684
|
-
return /* @__PURE__ */ (0,
|
|
9903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9685
9904
|
Chip,
|
|
9686
9905
|
{
|
|
9687
9906
|
label: option?.label || value,
|
|
@@ -9692,12 +9911,12 @@ function MultiSelect({
|
|
|
9692
9911
|
className: cn(
|
|
9693
9912
|
disabled && "pointer-events-none cursor-not-allowed"
|
|
9694
9913
|
),
|
|
9695
|
-
children: /* @__PURE__ */ (0,
|
|
9914
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react17.X, { className: "hover:text-destructive ml-1.5 h-3 w-3 cursor-pointer" })
|
|
9696
9915
|
},
|
|
9697
9916
|
value
|
|
9698
9917
|
);
|
|
9699
9918
|
}),
|
|
9700
|
-
/* @__PURE__ */ (0,
|
|
9919
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9701
9920
|
"input",
|
|
9702
9921
|
{
|
|
9703
9922
|
ref: inputRef,
|
|
@@ -9711,25 +9930,25 @@ function MultiSelect({
|
|
|
9711
9930
|
}
|
|
9712
9931
|
)
|
|
9713
9932
|
] }),
|
|
9714
|
-
selected.length > 0 && /* @__PURE__ */ (0,
|
|
9933
|
+
selected.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9715
9934
|
import_lucide_react17.CircleXIcon,
|
|
9716
9935
|
{
|
|
9717
9936
|
className: "text-icon-default size-4.5 shrink-0",
|
|
9718
9937
|
onClick: () => onChange([])
|
|
9719
9938
|
}
|
|
9720
9939
|
),
|
|
9721
|
-
!createConfig?.enabled && /* @__PURE__ */ (0,
|
|
9940
|
+
!createConfig?.enabled && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react17.ChevronDown, { className: "text-icon-default size-4.5 shrink-0" })
|
|
9722
9941
|
]
|
|
9723
9942
|
}
|
|
9724
9943
|
) }),
|
|
9725
|
-
/* @__PURE__ */ (0,
|
|
9944
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9726
9945
|
PopoverContent,
|
|
9727
9946
|
{
|
|
9728
9947
|
className: "shadow-box w-[var(--radix-popover-trigger-width)] border-none bg-white p-2",
|
|
9729
9948
|
align: "start",
|
|
9730
|
-
children: /* @__PURE__ */ (0,
|
|
9731
|
-
createConfig?.enabled && /* @__PURE__ */ (0,
|
|
9732
|
-
filteredOptions.map((option) => /* @__PURE__ */ (0,
|
|
9949
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "max-h-[300px] overflow-y-auto", children: filteredOptions.length === 0 && !canCreate ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "py-6 text-center text-gray-500", children: inputValue ? "No results found." : "Start typing to search..." }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-1.5 px-1.5 pt-1.5 pb-0.5", children: [
|
|
9950
|
+
createConfig?.enabled && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-text-default pb-0.5 font-semibold", children: "Select or create one" }),
|
|
9951
|
+
filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9733
9952
|
Chip,
|
|
9734
9953
|
{
|
|
9735
9954
|
label: option.label,
|
|
@@ -9738,14 +9957,14 @@ function MultiSelect({
|
|
|
9738
9957
|
},
|
|
9739
9958
|
option.value
|
|
9740
9959
|
)),
|
|
9741
|
-
canCreate && /* @__PURE__ */ (0,
|
|
9960
|
+
canCreate && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
9742
9961
|
"div",
|
|
9743
9962
|
{
|
|
9744
9963
|
onClick: async () => await handleCreate(),
|
|
9745
9964
|
className: "flex items-center justify-between",
|
|
9746
9965
|
children: [
|
|
9747
|
-
/* @__PURE__ */ (0,
|
|
9748
|
-
/* @__PURE__ */ (0,
|
|
9966
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Chip, { label: inputValue.trim(), className: "rounded-md" }),
|
|
9967
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9749
9968
|
Button,
|
|
9750
9969
|
{
|
|
9751
9970
|
variant: "ghost",
|
|
@@ -9766,7 +9985,7 @@ function MultiSelect({
|
|
|
9766
9985
|
// src/ui/OTPInput/index.tsx
|
|
9767
9986
|
var import_input_otp = require("input-otp");
|
|
9768
9987
|
var React12 = __toESM(require("react"), 1);
|
|
9769
|
-
var
|
|
9988
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
9770
9989
|
function OTPInput({
|
|
9771
9990
|
type = 4,
|
|
9772
9991
|
separate = false,
|
|
@@ -9774,8 +9993,8 @@ function OTPInput({
|
|
|
9774
9993
|
className,
|
|
9775
9994
|
...props
|
|
9776
9995
|
}) {
|
|
9777
|
-
return /* @__PURE__ */ (0,
|
|
9778
|
-
/* @__PURE__ */ (0,
|
|
9996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputOTP, { disabled, className: "w-full", ...props, children: [
|
|
9997
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
9779
9998
|
InputOTPSlot,
|
|
9780
9999
|
{
|
|
9781
10000
|
className: "w-full",
|
|
@@ -9784,8 +10003,8 @@ function OTPInput({
|
|
|
9784
10003
|
},
|
|
9785
10004
|
index
|
|
9786
10005
|
)) }),
|
|
9787
|
-
separate && /* @__PURE__ */ (0,
|
|
9788
|
-
/* @__PURE__ */ (0,
|
|
10006
|
+
separate && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPSeparator, {}),
|
|
10007
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
9789
10008
|
InputOTPSlot,
|
|
9790
10009
|
{
|
|
9791
10010
|
className: "w-full",
|
|
@@ -9801,7 +10020,7 @@ function InputOTP({
|
|
|
9801
10020
|
containerClassName,
|
|
9802
10021
|
...props
|
|
9803
10022
|
}) {
|
|
9804
|
-
return /* @__PURE__ */ (0,
|
|
10023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
9805
10024
|
import_input_otp.OTPInput,
|
|
9806
10025
|
{
|
|
9807
10026
|
"data-slot": "input-otp",
|
|
@@ -9812,7 +10031,7 @@ function InputOTP({
|
|
|
9812
10031
|
);
|
|
9813
10032
|
}
|
|
9814
10033
|
function InputOTPGroup({ className, ...props }) {
|
|
9815
|
-
return /* @__PURE__ */ (0,
|
|
10034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
9816
10035
|
"div",
|
|
9817
10036
|
{
|
|
9818
10037
|
"data-slot": "input-otp-group",
|
|
@@ -9830,7 +10049,7 @@ function InputOTPSlot({
|
|
|
9830
10049
|
}) {
|
|
9831
10050
|
const inputOTPContext = React12.useContext(import_input_otp.OTPInputContext);
|
|
9832
10051
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
9833
|
-
return /* @__PURE__ */ (0,
|
|
10052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
9834
10053
|
"div",
|
|
9835
10054
|
{
|
|
9836
10055
|
"data-slot": "input-otp-slot",
|
|
@@ -9845,26 +10064,26 @@ function InputOTPSlot({
|
|
|
9845
10064
|
),
|
|
9846
10065
|
...props,
|
|
9847
10066
|
children: [
|
|
9848
|
-
/* @__PURE__ */ (0,
|
|
9849
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
10067
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-h6", children: char || placeholder }),
|
|
10068
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
9850
10069
|
]
|
|
9851
10070
|
}
|
|
9852
10071
|
);
|
|
9853
10072
|
}
|
|
9854
10073
|
function InputOTPSeparator({ ...props }) {
|
|
9855
|
-
return /* @__PURE__ */ (0,
|
|
10074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "bg-border-primary-normal h-0.5 w-2" }) });
|
|
9856
10075
|
}
|
|
9857
10076
|
|
|
9858
10077
|
// src/ui/PasswordInput/index.tsx
|
|
9859
10078
|
var React13 = __toESM(require("react"), 1);
|
|
9860
10079
|
var import_lucide_react18 = require("lucide-react");
|
|
9861
|
-
var
|
|
10080
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
9862
10081
|
var PasswordInput = React13.memo(
|
|
9863
10082
|
({ type, label, className, ...props }) => {
|
|
9864
10083
|
const [showPassword, setShowPassword] = React13.useState(false);
|
|
9865
10084
|
const error = props["aria-invalid"] || false;
|
|
9866
10085
|
const inputRef = React13.useRef(null);
|
|
9867
|
-
return /* @__PURE__ */ (0,
|
|
10086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
9868
10087
|
"div",
|
|
9869
10088
|
{
|
|
9870
10089
|
className: cn(
|
|
@@ -9884,7 +10103,7 @@ var PasswordInput = React13.memo(
|
|
|
9884
10103
|
}
|
|
9885
10104
|
),
|
|
9886
10105
|
children: [
|
|
9887
|
-
/* @__PURE__ */ (0,
|
|
10106
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
9888
10107
|
"input",
|
|
9889
10108
|
{
|
|
9890
10109
|
ref: inputRef,
|
|
@@ -9908,7 +10127,7 @@ var PasswordInput = React13.memo(
|
|
|
9908
10127
|
}
|
|
9909
10128
|
}
|
|
9910
10129
|
),
|
|
9911
|
-
/* @__PURE__ */ (0,
|
|
10130
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
9912
10131
|
"button",
|
|
9913
10132
|
{
|
|
9914
10133
|
tabIndex: -1,
|
|
@@ -9917,7 +10136,7 @@ var PasswordInput = React13.memo(
|
|
|
9917
10136
|
onClick: () => setShowPassword(!showPassword),
|
|
9918
10137
|
"aria-label": showPassword ? "Hide password" : "Show password",
|
|
9919
10138
|
className: "hover:bg-primary-bg-soft absolute right-2 flex h-5 w-5 cursor-pointer items-center justify-center rounded-sm bg-white",
|
|
9920
|
-
children: showPassword ? /* @__PURE__ */ (0,
|
|
10139
|
+
children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react18.Eye, { size: 16, className: "text-element-inverse-default-alt" }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react18.EyeOff, { size: 16, className: "text-element-inverse-default-alt" })
|
|
9921
10140
|
}
|
|
9922
10141
|
)
|
|
9923
10142
|
]
|
|
@@ -9929,16 +10148,16 @@ var PasswordInput = React13.memo(
|
|
|
9929
10148
|
// src/ui/Radio/index.tsx
|
|
9930
10149
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
9931
10150
|
var import_lucide_react19 = require("lucide-react");
|
|
9932
|
-
var
|
|
10151
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
9933
10152
|
function Radio({ onSelect, options, ...props }) {
|
|
9934
|
-
return /* @__PURE__ */ (0,
|
|
9935
|
-
return /* @__PURE__ */ (0,
|
|
10153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(BaseRadioGroup, { ...props, children: options.map((option) => {
|
|
10154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
9936
10155
|
Label2,
|
|
9937
10156
|
{
|
|
9938
10157
|
htmlFor: option.value,
|
|
9939
10158
|
className: "hover:bg-surface-bg flex cursor-pointer items-center gap-x-2 rounded-lg p-1.5",
|
|
9940
10159
|
children: [
|
|
9941
|
-
/* @__PURE__ */ (0,
|
|
10160
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
9942
10161
|
BaseRadioGroupItem,
|
|
9943
10162
|
{
|
|
9944
10163
|
onClick: () => {
|
|
@@ -9959,7 +10178,7 @@ function BaseRadioGroup({
|
|
|
9959
10178
|
className,
|
|
9960
10179
|
...props
|
|
9961
10180
|
}) {
|
|
9962
|
-
return /* @__PURE__ */ (0,
|
|
10181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
9963
10182
|
RadioGroupPrimitive.Root,
|
|
9964
10183
|
{
|
|
9965
10184
|
"data-slot": "radio-group",
|
|
@@ -9972,7 +10191,7 @@ function BaseRadioGroupItem({
|
|
|
9972
10191
|
className,
|
|
9973
10192
|
...props
|
|
9974
10193
|
}) {
|
|
9975
|
-
return /* @__PURE__ */ (0,
|
|
10194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
9976
10195
|
RadioGroupPrimitive.Item,
|
|
9977
10196
|
{
|
|
9978
10197
|
"data-slot": "radio-group-item",
|
|
@@ -9981,12 +10200,12 @@ function BaseRadioGroupItem({
|
|
|
9981
10200
|
className
|
|
9982
10201
|
),
|
|
9983
10202
|
...props,
|
|
9984
|
-
children: /* @__PURE__ */ (0,
|
|
10203
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
9985
10204
|
RadioGroupPrimitive.Indicator,
|
|
9986
10205
|
{
|
|
9987
10206
|
"data-slot": "radio-group-indicator",
|
|
9988
10207
|
className: "relative flex items-center justify-center",
|
|
9989
|
-
children: /* @__PURE__ */ (0,
|
|
10208
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react19.CircleIcon, { className: "fill-check-box-and-radio-checked-enabled group-data-[state=checked]:hover:fill-check-box-and-radio-checked-hovered absolute top-1/2 left-1/2 size-[16px] -translate-x-1/2 -translate-y-1/2 stroke-none" })
|
|
9990
10209
|
}
|
|
9991
10210
|
)
|
|
9992
10211
|
}
|
|
@@ -9997,8 +10216,8 @@ function BaseRadioGroupItem({
|
|
|
9997
10216
|
var import_lodash = require("lodash");
|
|
9998
10217
|
var import_lucide_react20 = require("lucide-react");
|
|
9999
10218
|
var import_nuqs = require("nuqs");
|
|
10000
|
-
var
|
|
10001
|
-
var
|
|
10219
|
+
var import_react8 = require("react");
|
|
10220
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
10002
10221
|
function SearchInput({
|
|
10003
10222
|
searchKey,
|
|
10004
10223
|
placeholder = "Search by...",
|
|
@@ -10010,8 +10229,8 @@ function SearchInput({
|
|
|
10010
10229
|
const [search, setSearch] = (0, import_nuqs.useQueryState)(searchKey, {
|
|
10011
10230
|
defaultValue: ""
|
|
10012
10231
|
});
|
|
10013
|
-
const [inputValue, setInputValue] = (0,
|
|
10014
|
-
const debouncedSetValue = (0,
|
|
10232
|
+
const [inputValue, setInputValue] = (0, import_react8.useState)(search ?? "");
|
|
10233
|
+
const debouncedSetValue = (0, import_react8.useCallback)(
|
|
10015
10234
|
(0, import_lodash.debounce)((value) => {
|
|
10016
10235
|
if (addToParam) {
|
|
10017
10236
|
setSearch(value);
|
|
@@ -10021,13 +10240,13 @@ function SearchInput({
|
|
|
10021
10240
|
}, debounceDelay),
|
|
10022
10241
|
[debounceDelay, addToParam, setSearch]
|
|
10023
10242
|
);
|
|
10024
|
-
(0,
|
|
10243
|
+
(0, import_react8.useEffect)(() => {
|
|
10025
10244
|
debouncedSetValue(inputValue);
|
|
10026
10245
|
return () => {
|
|
10027
10246
|
debouncedSetValue.cancel();
|
|
10028
10247
|
};
|
|
10029
10248
|
}, [inputValue, debouncedSetValue]);
|
|
10030
|
-
return /* @__PURE__ */ (0,
|
|
10249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("relative", className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
10031
10250
|
Input,
|
|
10032
10251
|
{
|
|
10033
10252
|
onChange: (e) => {
|
|
@@ -10036,7 +10255,7 @@ function SearchInput({
|
|
|
10036
10255
|
},
|
|
10037
10256
|
placeholder,
|
|
10038
10257
|
prefixNode: {
|
|
10039
|
-
node: /* @__PURE__ */ (0,
|
|
10258
|
+
node: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react20.SearchIcon, { className: "text-element-inverse-default" }),
|
|
10040
10259
|
withBorder: false
|
|
10041
10260
|
},
|
|
10042
10261
|
value: inputValue,
|
|
@@ -10049,7 +10268,7 @@ function SearchInput({
|
|
|
10049
10268
|
// src/ui/SelectHover/index.tsx
|
|
10050
10269
|
var import_lucide_react21 = require("lucide-react");
|
|
10051
10270
|
var React14 = __toESM(require("react"), 1);
|
|
10052
|
-
var
|
|
10271
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
10053
10272
|
function SelectHover({
|
|
10054
10273
|
options,
|
|
10055
10274
|
placeholder = "Select an option",
|
|
@@ -10076,15 +10295,15 @@ function SelectHover({
|
|
|
10076
10295
|
setIsOpen(false);
|
|
10077
10296
|
}, 300);
|
|
10078
10297
|
};
|
|
10079
|
-
return /* @__PURE__ */ (0,
|
|
10080
|
-
/* @__PURE__ */ (0,
|
|
10081
|
-
/* @__PURE__ */ (0,
|
|
10298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Popover, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
|
|
10299
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { role: "combobox", "aria-expanded": isOpen, className, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "truncate", children: selectedOption ? selectedOption.label : placeholder }) }) }),
|
|
10300
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
10082
10301
|
PopoverContent,
|
|
10083
10302
|
{
|
|
10084
10303
|
className: "bg-surface-bg-container w-full rounded-3xl border-none p-2 shadow-md",
|
|
10085
10304
|
onMouseEnter: handleMouseEnter,
|
|
10086
10305
|
onMouseLeave: handleMouseLeave,
|
|
10087
|
-
children: /* @__PURE__ */ (0,
|
|
10306
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex max-h-[300px] flex-col items-start gap-[2px] overflow-auto", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
10088
10307
|
"button",
|
|
10089
10308
|
{
|
|
10090
10309
|
className: cn(
|
|
@@ -10093,8 +10312,8 @@ function SelectHover({
|
|
|
10093
10312
|
),
|
|
10094
10313
|
onClick: () => handleSelect(option.value),
|
|
10095
10314
|
children: [
|
|
10096
|
-
/* @__PURE__ */ (0,
|
|
10097
|
-
value === option.value && /* @__PURE__ */ (0,
|
|
10315
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "flex-1", children: option.label }),
|
|
10316
|
+
value === option.value && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react21.Check, { className: "text-icon-secondary ml-2 h-4 w-4" })
|
|
10098
10317
|
]
|
|
10099
10318
|
},
|
|
10100
10319
|
option.value
|
|
@@ -10107,7 +10326,7 @@ function SelectHover({
|
|
|
10107
10326
|
// src/ui/SelectInput/index.tsx
|
|
10108
10327
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
10109
10328
|
var import_lucide_react22 = require("lucide-react");
|
|
10110
|
-
var
|
|
10329
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
10111
10330
|
function SelectInput({
|
|
10112
10331
|
defaultValue,
|
|
10113
10332
|
options,
|
|
@@ -10120,8 +10339,8 @@ function SelectInput({
|
|
|
10120
10339
|
itemProps,
|
|
10121
10340
|
...props
|
|
10122
10341
|
}) {
|
|
10123
|
-
return /* @__PURE__ */ (0,
|
|
10124
|
-
/* @__PURE__ */ (0,
|
|
10342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(BaseSelect, { onValueChange: onChange, defaultValue, ...props, children: [
|
|
10343
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
10125
10344
|
BaseSelectTrigger,
|
|
10126
10345
|
{
|
|
10127
10346
|
withArrow,
|
|
@@ -10129,7 +10348,7 @@ function SelectInput({
|
|
|
10129
10348
|
"aria-invalid": props["aria-invalid"],
|
|
10130
10349
|
className: cn("w-full cursor-pointer", className),
|
|
10131
10350
|
variant,
|
|
10132
|
-
children: /* @__PURE__ */ (0,
|
|
10351
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
10133
10352
|
BaseSelectValue,
|
|
10134
10353
|
{
|
|
10135
10354
|
className: "flex-1",
|
|
@@ -10138,7 +10357,7 @@ function SelectInput({
|
|
|
10138
10357
|
)
|
|
10139
10358
|
}
|
|
10140
10359
|
),
|
|
10141
|
-
/* @__PURE__ */ (0,
|
|
10360
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
10142
10361
|
BaseSelectContent,
|
|
10143
10362
|
{
|
|
10144
10363
|
...contentProps,
|
|
@@ -10146,7 +10365,7 @@ function SelectInput({
|
|
|
10146
10365
|
"border-stroke-inverse-slate-02 border",
|
|
10147
10366
|
contentProps?.className
|
|
10148
10367
|
),
|
|
10149
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
10368
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
10150
10369
|
BaseSelectItem,
|
|
10151
10370
|
{
|
|
10152
10371
|
value: option.value,
|
|
@@ -10166,12 +10385,12 @@ function SelectInput({
|
|
|
10166
10385
|
function BaseSelect({
|
|
10167
10386
|
...props
|
|
10168
10387
|
}) {
|
|
10169
|
-
return /* @__PURE__ */ (0,
|
|
10388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
10170
10389
|
}
|
|
10171
10390
|
function BaseSelectValue({
|
|
10172
10391
|
...props
|
|
10173
10392
|
}) {
|
|
10174
|
-
return /* @__PURE__ */ (0,
|
|
10393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
10175
10394
|
}
|
|
10176
10395
|
function BaseSelectTrigger({
|
|
10177
10396
|
className,
|
|
@@ -10181,7 +10400,7 @@ function BaseSelectTrigger({
|
|
|
10181
10400
|
children,
|
|
10182
10401
|
...props
|
|
10183
10402
|
}) {
|
|
10184
|
-
return /* @__PURE__ */ (0,
|
|
10403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
10185
10404
|
SelectPrimitive.Trigger,
|
|
10186
10405
|
{
|
|
10187
10406
|
"data-slot": "select-trigger",
|
|
@@ -10202,7 +10421,7 @@ function BaseSelectTrigger({
|
|
|
10202
10421
|
...props,
|
|
10203
10422
|
children: [
|
|
10204
10423
|
children,
|
|
10205
|
-
withArrow && /* @__PURE__ */ (0,
|
|
10424
|
+
withArrow && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronDownIcon, { className: "text-icon-default size-4" }) })
|
|
10206
10425
|
]
|
|
10207
10426
|
}
|
|
10208
10427
|
);
|
|
@@ -10213,7 +10432,7 @@ function BaseSelectContent({
|
|
|
10213
10432
|
position = "popper",
|
|
10214
10433
|
...props
|
|
10215
10434
|
}) {
|
|
10216
|
-
return /* @__PURE__ */ (0,
|
|
10435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
10217
10436
|
SelectPrimitive.Content,
|
|
10218
10437
|
{
|
|
10219
10438
|
"data-slot": "select-content",
|
|
@@ -10225,8 +10444,8 @@ function BaseSelectContent({
|
|
|
10225
10444
|
position,
|
|
10226
10445
|
...props,
|
|
10227
10446
|
children: [
|
|
10228
|
-
/* @__PURE__ */ (0,
|
|
10229
|
-
/* @__PURE__ */ (0,
|
|
10447
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(BaseSelectScrollUpButton, {}),
|
|
10448
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
10230
10449
|
SelectPrimitive.Viewport,
|
|
10231
10450
|
{
|
|
10232
10451
|
className: cn(
|
|
@@ -10236,7 +10455,7 @@ function BaseSelectContent({
|
|
|
10236
10455
|
children
|
|
10237
10456
|
}
|
|
10238
10457
|
),
|
|
10239
|
-
/* @__PURE__ */ (0,
|
|
10458
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(BaseSelectScrollDownButton, {})
|
|
10240
10459
|
]
|
|
10241
10460
|
}
|
|
10242
10461
|
) });
|
|
@@ -10246,7 +10465,7 @@ function BaseSelectItem({
|
|
|
10246
10465
|
children,
|
|
10247
10466
|
...props
|
|
10248
10467
|
}) {
|
|
10249
|
-
return /* @__PURE__ */ (0,
|
|
10468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
10250
10469
|
SelectPrimitive.Item,
|
|
10251
10470
|
{
|
|
10252
10471
|
"data-slot": "select-item",
|
|
@@ -10256,8 +10475,8 @@ function BaseSelectItem({
|
|
|
10256
10475
|
),
|
|
10257
10476
|
...props,
|
|
10258
10477
|
children: [
|
|
10259
|
-
/* @__PURE__ */ (0,
|
|
10260
|
-
/* @__PURE__ */ (0,
|
|
10478
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.CheckIcon, { className: "text-icon-secondary size-4" }) }) }),
|
|
10479
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.ItemText, { children })
|
|
10261
10480
|
]
|
|
10262
10481
|
}
|
|
10263
10482
|
);
|
|
@@ -10266,7 +10485,7 @@ function BaseSelectScrollUpButton({
|
|
|
10266
10485
|
className,
|
|
10267
10486
|
...props
|
|
10268
10487
|
}) {
|
|
10269
|
-
return /* @__PURE__ */ (0,
|
|
10488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
10270
10489
|
SelectPrimitive.ScrollUpButton,
|
|
10271
10490
|
{
|
|
10272
10491
|
"data-slot": "select-scroll-up-button",
|
|
@@ -10275,7 +10494,7 @@ function BaseSelectScrollUpButton({
|
|
|
10275
10494
|
className
|
|
10276
10495
|
),
|
|
10277
10496
|
...props,
|
|
10278
|
-
children: /* @__PURE__ */ (0,
|
|
10497
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronUpIcon, { className: "size-4" })
|
|
10279
10498
|
}
|
|
10280
10499
|
);
|
|
10281
10500
|
}
|
|
@@ -10283,7 +10502,7 @@ function BaseSelectScrollDownButton({
|
|
|
10283
10502
|
className,
|
|
10284
10503
|
...props
|
|
10285
10504
|
}) {
|
|
10286
|
-
return /* @__PURE__ */ (0,
|
|
10505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
10287
10506
|
SelectPrimitive.ScrollDownButton,
|
|
10288
10507
|
{
|
|
10289
10508
|
"data-slot": "select-scroll-down-button",
|
|
@@ -10292,7 +10511,7 @@ function BaseSelectScrollDownButton({
|
|
|
10292
10511
|
className
|
|
10293
10512
|
),
|
|
10294
10513
|
...props,
|
|
10295
|
-
children: /* @__PURE__ */ (0,
|
|
10514
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronDownIcon, { className: "size-4" })
|
|
10296
10515
|
}
|
|
10297
10516
|
);
|
|
10298
10517
|
}
|
|
@@ -10300,15 +10519,15 @@ function BaseSelectScrollDownButton({
|
|
|
10300
10519
|
// src/ui/Sheet/index.tsx
|
|
10301
10520
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
10302
10521
|
var import_lucide_react23 = require("lucide-react");
|
|
10303
|
-
var
|
|
10522
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
10304
10523
|
function Sheet({ ...props }) {
|
|
10305
|
-
return /* @__PURE__ */ (0,
|
|
10524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
10306
10525
|
}
|
|
10307
10526
|
|
|
10308
10527
|
// src/ui/Skeleton/index.tsx
|
|
10309
|
-
var
|
|
10528
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
10310
10529
|
function Skeleton({ className, ...props }) {
|
|
10311
|
-
return /* @__PURE__ */ (0,
|
|
10530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
10312
10531
|
"div",
|
|
10313
10532
|
{
|
|
10314
10533
|
"data-slot": "skeleton",
|
|
@@ -10324,7 +10543,7 @@ function Skeleton({ className, ...props }) {
|
|
|
10324
10543
|
// src/ui/Slider/index.tsx
|
|
10325
10544
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
10326
10545
|
var React15 = __toESM(require("react"), 1);
|
|
10327
|
-
var
|
|
10546
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
10328
10547
|
function Slider({
|
|
10329
10548
|
className,
|
|
10330
10549
|
defaultValue,
|
|
@@ -10337,7 +10556,7 @@ function Slider({
|
|
|
10337
10556
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
10338
10557
|
[value, defaultValue, min, max]
|
|
10339
10558
|
);
|
|
10340
|
-
return /* @__PURE__ */ (0,
|
|
10559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
10341
10560
|
SliderPrimitive.Root,
|
|
10342
10561
|
{
|
|
10343
10562
|
"data-slot": "slider",
|
|
@@ -10351,14 +10570,14 @@ function Slider({
|
|
|
10351
10570
|
),
|
|
10352
10571
|
...props,
|
|
10353
10572
|
children: [
|
|
10354
|
-
/* @__PURE__ */ (0,
|
|
10573
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10355
10574
|
SliderPrimitive.Track,
|
|
10356
10575
|
{
|
|
10357
10576
|
"data-slot": "slider-track",
|
|
10358
10577
|
className: cn(
|
|
10359
10578
|
"bg-audioProgress-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
10360
10579
|
),
|
|
10361
|
-
children: /* @__PURE__ */ (0,
|
|
10580
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10362
10581
|
SliderPrimitive.Range,
|
|
10363
10582
|
{
|
|
10364
10583
|
"data-slot": "slider-range",
|
|
@@ -10369,7 +10588,7 @@ function Slider({
|
|
|
10369
10588
|
)
|
|
10370
10589
|
}
|
|
10371
10590
|
),
|
|
10372
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
10591
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10373
10592
|
SliderPrimitive.Thumb,
|
|
10374
10593
|
{
|
|
10375
10594
|
"data-slot": "slider-thumb",
|
|
@@ -10385,10 +10604,10 @@ function Slider({
|
|
|
10385
10604
|
// src/ui/Sooner/index.tsx
|
|
10386
10605
|
var import_next_themes = require("next-themes");
|
|
10387
10606
|
var import_sonner = require("sonner");
|
|
10388
|
-
var
|
|
10607
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
10389
10608
|
var Toaster = ({ ...props }) => {
|
|
10390
10609
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
10391
|
-
return /* @__PURE__ */ (0,
|
|
10610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
10392
10611
|
import_sonner.Toaster,
|
|
10393
10612
|
{
|
|
10394
10613
|
theme,
|
|
@@ -10405,14 +10624,14 @@ var Toaster = ({ ...props }) => {
|
|
|
10405
10624
|
|
|
10406
10625
|
// src/ui/Switch/index.tsx
|
|
10407
10626
|
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
|
|
10408
|
-
var
|
|
10627
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
10409
10628
|
function Switch({
|
|
10410
10629
|
className,
|
|
10411
10630
|
label,
|
|
10412
10631
|
...props
|
|
10413
10632
|
}) {
|
|
10414
|
-
return /* @__PURE__ */ (0,
|
|
10415
|
-
/* @__PURE__ */ (0,
|
|
10633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
10634
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10416
10635
|
SwitchPrimitive.Root,
|
|
10417
10636
|
{
|
|
10418
10637
|
"data-slot": "switch",
|
|
@@ -10422,7 +10641,7 @@ function Switch({
|
|
|
10422
10641
|
className
|
|
10423
10642
|
),
|
|
10424
10643
|
...props,
|
|
10425
|
-
children: /* @__PURE__ */ (0,
|
|
10644
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10426
10645
|
SwitchPrimitive.Thumb,
|
|
10427
10646
|
{
|
|
10428
10647
|
"data-slot": "switch-thumb",
|
|
@@ -10433,7 +10652,7 @@ function Switch({
|
|
|
10433
10652
|
)
|
|
10434
10653
|
}
|
|
10435
10654
|
),
|
|
10436
|
-
label && /* @__PURE__ */ (0,
|
|
10655
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Label2, { htmlFor: props.id || label, children: label })
|
|
10437
10656
|
] });
|
|
10438
10657
|
}
|
|
10439
10658
|
|
|
@@ -10445,8 +10664,8 @@ var import_class_variance_authority11 = require("class-variance-authority");
|
|
|
10445
10664
|
var import_lucide_react25 = require("lucide-react");
|
|
10446
10665
|
var import_magick_icons4 = require("magick-icons");
|
|
10447
10666
|
var React16 = __toESM(require("react"), 1);
|
|
10448
|
-
var
|
|
10449
|
-
var
|
|
10667
|
+
var import_react9 = require("react");
|
|
10668
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
10450
10669
|
var Table = ({
|
|
10451
10670
|
columns,
|
|
10452
10671
|
tableData,
|
|
@@ -10454,7 +10673,7 @@ var Table = ({
|
|
|
10454
10673
|
emptyState = {
|
|
10455
10674
|
emptyAction: void 0,
|
|
10456
10675
|
label: "There is currently no data available to display in this table.",
|
|
10457
|
-
icon: /* @__PURE__ */ (0,
|
|
10676
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(IconProfile, { icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_magick_icons4.IconsaxBriefcaseBold, {}), color: "teal" })
|
|
10458
10677
|
},
|
|
10459
10678
|
onRowClick
|
|
10460
10679
|
}) => {
|
|
@@ -10466,41 +10685,41 @@ var Table = ({
|
|
|
10466
10685
|
getSortedRowModel: (0, import_react_table.getSortedRowModel)()
|
|
10467
10686
|
});
|
|
10468
10687
|
const rowCount = table.getRowModel().rows.length;
|
|
10469
|
-
return /* @__PURE__ */ (0,
|
|
10470
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
10688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative flex flex-col overflow-auto", children: [
|
|
10689
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10471
10690
|
"div",
|
|
10472
10691
|
{
|
|
10473
10692
|
className: cn(
|
|
10474
10693
|
rowCount === 0 ? "" : "bg-gray-100 dark:bg-gray-700",
|
|
10475
10694
|
"absolute top-10 left-0 w-full h-full min-h-[100px] opacity-70 z-10 flex items-center justify-center"
|
|
10476
10695
|
),
|
|
10477
|
-
children: /* @__PURE__ */ (0,
|
|
10696
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react24.Loader2, { className: "size-10 text-stroke-inverse-slate-04 " })
|
|
10478
10697
|
}
|
|
10479
10698
|
) : null,
|
|
10480
|
-
!isLoading && rowCount === 0 ? /* @__PURE__ */ (0,
|
|
10699
|
+
!isLoading && rowCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
|
|
10481
10700
|
emptyState?.icon,
|
|
10482
|
-
/* @__PURE__ */ (0,
|
|
10483
|
-
emptyState?.emptyAction ? /* @__PURE__ */ (0,
|
|
10701
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: emptyState?.label }),
|
|
10702
|
+
emptyState?.emptyAction ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10484
10703
|
Button,
|
|
10485
10704
|
{
|
|
10486
10705
|
variant: "outline",
|
|
10487
|
-
prefix: /* @__PURE__ */ (0,
|
|
10706
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_magick_icons4.MagickoAdd, { className: "[&_path]:fill-element-inverse-default" }),
|
|
10488
10707
|
onClick: () => emptyState?.emptyAction?.(),
|
|
10489
10708
|
children: "Create new"
|
|
10490
10709
|
}
|
|
10491
10710
|
) : null
|
|
10492
10711
|
] }) }) : null,
|
|
10493
|
-
/* @__PURE__ */ (0,
|
|
10712
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "max-w-full flex-1 overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
10494
10713
|
"table",
|
|
10495
10714
|
{
|
|
10496
10715
|
className: "w-full caption-bottom text-sm",
|
|
10497
10716
|
style: { minWidth: "max-content" },
|
|
10498
10717
|
children: [
|
|
10499
|
-
/* @__PURE__ */ (0,
|
|
10718
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("thead", { className: "bg-fill-inverse-slate-03", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10500
10719
|
"tr",
|
|
10501
10720
|
{
|
|
10502
10721
|
className: "hover:bg-muted/50 border-stroke-inverse-slate-02 border-b transition-colors",
|
|
10503
|
-
children: headerGroup.headers.map((header) => /* @__PURE__ */ (0,
|
|
10722
|
+
children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10504
10723
|
"th",
|
|
10505
10724
|
{
|
|
10506
10725
|
className: "text-muted-foreground h-12 px-4 text-left align-middle font-medium",
|
|
@@ -10514,14 +10733,14 @@ var Table = ({
|
|
|
10514
10733
|
},
|
|
10515
10734
|
headerGroup.id
|
|
10516
10735
|
)) }),
|
|
10517
|
-
/* @__PURE__ */ (0,
|
|
10736
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("tbody", { className: "relative", children: [
|
|
10518
10737
|
table.getRowModel().rows.map((row) => {
|
|
10519
|
-
return /* @__PURE__ */ (0,
|
|
10738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10520
10739
|
"tr",
|
|
10521
10740
|
{
|
|
10522
10741
|
className: "hover:bg-muted/50 bg-table-table-cell-unselected group/row border-stroke-inverse-slate-02 cursor-pointer border-b transition-colors",
|
|
10523
10742
|
onClick: () => onRowClick?.(row.original),
|
|
10524
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0,
|
|
10743
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("td", { className: "p-4", children: (0, import_react_table.flexRender)(
|
|
10525
10744
|
cell.column.columnDef.cell,
|
|
10526
10745
|
cell.getContext()
|
|
10527
10746
|
) }, cell.id))
|
|
@@ -10529,7 +10748,7 @@ var Table = ({
|
|
|
10529
10748
|
row.id
|
|
10530
10749
|
);
|
|
10531
10750
|
}),
|
|
10532
|
-
rowCount === 0 && Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ (0,
|
|
10751
|
+
rowCount === 0 && Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("td", { colSpan: columns.length, className: "h-12 p-4", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "" }) }) }, index))
|
|
10533
10752
|
] })
|
|
10534
10753
|
]
|
|
10535
10754
|
}
|
|
@@ -10564,13 +10783,13 @@ var PrimaryCell = React16.forwardRef(
|
|
|
10564
10783
|
}, ref) => {
|
|
10565
10784
|
let content = children;
|
|
10566
10785
|
if (variant === "badge") {
|
|
10567
|
-
content = /* @__PURE__ */ (0,
|
|
10786
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
10568
10787
|
children,
|
|
10569
|
-
badgeContent && /* @__PURE__ */ (0,
|
|
10788
|
+
badgeContent && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { type: badgeType, size: badgeSize, children: badgeContent })
|
|
10570
10789
|
] });
|
|
10571
10790
|
} else if (variant === "progress") {
|
|
10572
|
-
content = /* @__PURE__ */ (0,
|
|
10573
|
-
progressValue !== 100 && /* @__PURE__ */ (0,
|
|
10791
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
10792
|
+
progressValue !== 100 && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10574
10793
|
ProgressIndicator,
|
|
10575
10794
|
{
|
|
10576
10795
|
variant: "circle",
|
|
@@ -10579,23 +10798,23 @@ var PrimaryCell = React16.forwardRef(
|
|
|
10579
10798
|
showPercentage: showProgressPercentage
|
|
10580
10799
|
}
|
|
10581
10800
|
),
|
|
10582
|
-
children && /* @__PURE__ */ (0,
|
|
10801
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-body-sm text-element-inverse-default", children })
|
|
10583
10802
|
] });
|
|
10584
10803
|
} else if (variant === "error") {
|
|
10585
|
-
content = /* @__PURE__ */ (0,
|
|
10586
|
-
/* @__PURE__ */ (0,
|
|
10587
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
10804
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
10805
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react25.AlertCircle, { className: "size-4 shrink-0" }),
|
|
10806
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-body-sm", children: errorMessage }) : children
|
|
10588
10807
|
] });
|
|
10589
10808
|
}
|
|
10590
|
-
return /* @__PURE__ */ (0,
|
|
10809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
10591
10810
|
"div",
|
|
10592
10811
|
{
|
|
10593
10812
|
ref,
|
|
10594
10813
|
className: cn(primaryCellVariants({ variant })),
|
|
10595
10814
|
...props,
|
|
10596
10815
|
children: [
|
|
10597
|
-
/* @__PURE__ */ (0,
|
|
10598
|
-
hoverUI && /* @__PURE__ */ (0,
|
|
10816
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: content }),
|
|
10817
|
+
hoverUI && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "ml-2 flex items-center gap-2 opacity-0 transition-opacity duration-200 group-hover/row:opacity-100", children: hoverUI })
|
|
10599
10818
|
]
|
|
10600
10819
|
}
|
|
10601
10820
|
);
|
|
@@ -10604,7 +10823,7 @@ var PrimaryCell = React16.forwardRef(
|
|
|
10604
10823
|
PrimaryCell.displayName = "PrimaryCell";
|
|
10605
10824
|
Table.PrimaryCell = PrimaryCell;
|
|
10606
10825
|
var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props }, ref) => {
|
|
10607
|
-
const [isCopied, setIsCopied] = (0,
|
|
10826
|
+
const [isCopied, setIsCopied] = (0, import_react9.useState)(false);
|
|
10608
10827
|
const [hoverRef, isHovering] = (0, import_usehooks.useHover)();
|
|
10609
10828
|
const handleCopy = () => {
|
|
10610
10829
|
navigator.clipboard.writeText(text);
|
|
@@ -10617,11 +10836,11 @@ var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props
|
|
|
10617
10836
|
}, 1200);
|
|
10618
10837
|
}
|
|
10619
10838
|
}, [isCopied]);
|
|
10620
|
-
return /* @__PURE__ */ (0,
|
|
10621
|
-
copyable && isHovering && /* @__PURE__ */ (0,
|
|
10839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: cn("w-full h-full", className), ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative", ref: hoverRef, children: [
|
|
10840
|
+
copyable && isHovering && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10622
10841
|
IconButton,
|
|
10623
10842
|
{
|
|
10624
|
-
icon: isCopied ? /* @__PURE__ */ (0,
|
|
10843
|
+
icon: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10625
10844
|
import_magick_icons4.MagickoCopySuccess,
|
|
10626
10845
|
{
|
|
10627
10846
|
className: cn(
|
|
@@ -10629,16 +10848,16 @@ var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props
|
|
|
10629
10848
|
"transition-all ease-in duration-200"
|
|
10630
10849
|
)
|
|
10631
10850
|
}
|
|
10632
|
-
) : /* @__PURE__ */ (0,
|
|
10851
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_magick_icons4.MagickoCopy, { className: "size-4" }),
|
|
10633
10852
|
className: "absolute top-1/2 -right-3 -translate-y-1/2",
|
|
10634
10853
|
size: "sm",
|
|
10635
10854
|
varient: "soft",
|
|
10636
10855
|
onClick: handleCopy
|
|
10637
10856
|
}
|
|
10638
10857
|
),
|
|
10639
|
-
/* @__PURE__ */ (0,
|
|
10640
|
-
/* @__PURE__ */ (0,
|
|
10641
|
-
/* @__PURE__ */ (0,
|
|
10858
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Popover, { children: [
|
|
10859
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { className: "truncate line-clamp-1", children: text ?? "-" }) }),
|
|
10860
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(PopoverContent, { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: text ?? "-" }) })
|
|
10642
10861
|
] })
|
|
10643
10862
|
] }) });
|
|
10644
10863
|
});
|
|
@@ -10648,7 +10867,7 @@ var Table_default = Table;
|
|
|
10648
10867
|
|
|
10649
10868
|
// src/ui/Tabs/index.tsx
|
|
10650
10869
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
10651
|
-
var
|
|
10870
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
10652
10871
|
function Tabs({
|
|
10653
10872
|
defaultActiveTab,
|
|
10654
10873
|
tabSmall,
|
|
@@ -10657,8 +10876,8 @@ function Tabs({
|
|
|
10657
10876
|
showContent = true,
|
|
10658
10877
|
...props
|
|
10659
10878
|
}) {
|
|
10660
|
-
return /* @__PURE__ */ (0,
|
|
10661
|
-
/* @__PURE__ */ (0,
|
|
10879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(BaseTabs, { defaultValue: defaultActiveTab, className, ...props, children: [
|
|
10880
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(BaseTabsList, { children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
10662
10881
|
BaseTabsTrigger,
|
|
10663
10882
|
{
|
|
10664
10883
|
tabSmall,
|
|
@@ -10666,22 +10885,22 @@ function Tabs({
|
|
|
10666
10885
|
className: "relative flex cursor-pointer items-center justify-center gap-x-2",
|
|
10667
10886
|
onClick: typeof tab === "object" && "onClick" in tab ? tab.onClick : void 0,
|
|
10668
10887
|
children: [
|
|
10669
|
-
tab.icon && /* @__PURE__ */ (0,
|
|
10888
|
+
tab.icon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: tab.icon }),
|
|
10670
10889
|
tab.label,
|
|
10671
|
-
tab.notification && /* @__PURE__ */ (0,
|
|
10672
|
-
!!tab.count && /* @__PURE__ */ (0,
|
|
10890
|
+
tab.notification && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-icon-destructive absolute top-1 right-1 size-1.5 rounded-full" }),
|
|
10891
|
+
!!tab.count && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Badge, { type: "primary-soft", children: tab.count })
|
|
10673
10892
|
]
|
|
10674
10893
|
},
|
|
10675
10894
|
tab.value
|
|
10676
10895
|
)) }),
|
|
10677
|
-
showContent && "content" in tabs[0] && tabs.map((tab) => /* @__PURE__ */ (0,
|
|
10896
|
+
showContent && "content" in tabs[0] && tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(BaseTabsContent, { value: tab.value, children: tab.content }, tab.value))
|
|
10678
10897
|
] });
|
|
10679
10898
|
}
|
|
10680
10899
|
function BaseTabs({
|
|
10681
10900
|
className,
|
|
10682
10901
|
...props
|
|
10683
10902
|
}) {
|
|
10684
|
-
return /* @__PURE__ */ (0,
|
|
10903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10685
10904
|
TabsPrimitive.Root,
|
|
10686
10905
|
{
|
|
10687
10906
|
"data-slot": "tabs",
|
|
@@ -10694,7 +10913,7 @@ function BaseTabsList({
|
|
|
10694
10913
|
className,
|
|
10695
10914
|
...props
|
|
10696
10915
|
}) {
|
|
10697
|
-
return /* @__PURE__ */ (0,
|
|
10916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10698
10917
|
TabsPrimitive.List,
|
|
10699
10918
|
{
|
|
10700
10919
|
"data-slot": "tabs-list",
|
|
@@ -10711,7 +10930,7 @@ function BaseTabsTrigger({
|
|
|
10711
10930
|
tabSmall,
|
|
10712
10931
|
...props
|
|
10713
10932
|
}) {
|
|
10714
|
-
return /* @__PURE__ */ (0,
|
|
10933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10715
10934
|
TabsPrimitive.Trigger,
|
|
10716
10935
|
{
|
|
10717
10936
|
"data-slot": "tabs-trigger",
|
|
@@ -10728,7 +10947,7 @@ function BaseTabsContent({
|
|
|
10728
10947
|
className,
|
|
10729
10948
|
...props
|
|
10730
10949
|
}) {
|
|
10731
|
-
return /* @__PURE__ */ (0,
|
|
10950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10732
10951
|
TabsPrimitive.Content,
|
|
10733
10952
|
{
|
|
10734
10953
|
"data-slot": "tabs-content",
|
|
@@ -10740,7 +10959,7 @@ function BaseTabsContent({
|
|
|
10740
10959
|
|
|
10741
10960
|
// src/ui/Tag/index.tsx
|
|
10742
10961
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
10743
|
-
var
|
|
10962
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
10744
10963
|
var tagVariants = (0, import_class_variance_authority12.cva)("px-1 rounded-sm", {
|
|
10745
10964
|
variants: {
|
|
10746
10965
|
variant: {
|
|
@@ -10758,14 +10977,14 @@ function Tag({
|
|
|
10758
10977
|
variant,
|
|
10759
10978
|
className
|
|
10760
10979
|
}) {
|
|
10761
|
-
return /* @__PURE__ */ (0,
|
|
10980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { "data-slot": "tag", className: cn(tagVariants({ variant }), className), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-caption font-semibold text-white", children: label }) });
|
|
10762
10981
|
}
|
|
10763
10982
|
|
|
10764
10983
|
// src/ui/TextAreaInput/index.tsx
|
|
10765
10984
|
var React17 = __toESM(require("react"), 1);
|
|
10766
|
-
var
|
|
10985
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
10767
10986
|
var TextareaInput = React17.forwardRef(({ className, label, ...props }, ref) => {
|
|
10768
|
-
return /* @__PURE__ */ (0,
|
|
10987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
10769
10988
|
"textarea",
|
|
10770
10989
|
{
|
|
10771
10990
|
ref,
|
|
@@ -10785,8 +11004,8 @@ var TextAreaInput_default = TextareaInput;
|
|
|
10785
11004
|
|
|
10786
11005
|
// src/ui/TimePicker/index.tsx
|
|
10787
11006
|
var import_lucide_react26 = require("lucide-react");
|
|
10788
|
-
var
|
|
10789
|
-
var
|
|
11007
|
+
var import_react10 = require("react");
|
|
11008
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
10790
11009
|
function TimePicker({
|
|
10791
11010
|
label,
|
|
10792
11011
|
onValueChange,
|
|
@@ -10795,7 +11014,7 @@ function TimePicker({
|
|
|
10795
11014
|
value,
|
|
10796
11015
|
...props
|
|
10797
11016
|
}) {
|
|
10798
|
-
const [isOpen, setIsOpen] = (0,
|
|
11017
|
+
const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
|
|
10799
11018
|
const currentValue = value || defaultValue || "";
|
|
10800
11019
|
const formatTimeForDisplay = (timeValue) => {
|
|
10801
11020
|
if (!timeValue) return "";
|
|
@@ -10807,10 +11026,10 @@ function TimePicker({
|
|
|
10807
11026
|
const handleChange = (value2) => {
|
|
10808
11027
|
onValueChange?.(value2);
|
|
10809
11028
|
};
|
|
10810
|
-
return /* @__PURE__ */ (0,
|
|
10811
|
-
label && /* @__PURE__ */ (0,
|
|
10812
|
-
/* @__PURE__ */ (0,
|
|
10813
|
-
/* @__PURE__ */ (0,
|
|
11029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
11030
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { htmlFor: "time-picker", className: "px-1", children: "Time" }),
|
|
11031
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(DropdownMenu, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
11032
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenuTrigger, { className: "!p-0", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10814
11033
|
Input,
|
|
10815
11034
|
{
|
|
10816
11035
|
...props,
|
|
@@ -10818,17 +11037,17 @@ function TimePicker({
|
|
|
10818
11037
|
value: currentValue ? formatTimeForDisplay(currentValue) : "",
|
|
10819
11038
|
onKeyDown: (e) => e.preventDefault(),
|
|
10820
11039
|
prefixNode: {
|
|
10821
|
-
node: /* @__PURE__ */ (0,
|
|
11040
|
+
node: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react26.Clock, { className: "pointer-events-none h-5 w-5 text-gray-700" }),
|
|
10822
11041
|
withBorder: false
|
|
10823
11042
|
}
|
|
10824
11043
|
}
|
|
10825
11044
|
) }),
|
|
10826
|
-
/* @__PURE__ */ (0,
|
|
11045
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10827
11046
|
DropdownMenuContent,
|
|
10828
11047
|
{
|
|
10829
11048
|
align: "start",
|
|
10830
11049
|
className: "max-h-60 min-w-41 overflow-y-auto",
|
|
10831
|
-
children: timeOptions?.map((item) => /* @__PURE__ */ (0,
|
|
11050
|
+
children: timeOptions?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10832
11051
|
DropdownMenuItem,
|
|
10833
11052
|
{
|
|
10834
11053
|
className: cn(
|
|
@@ -10849,11 +11068,11 @@ function TimePicker({
|
|
|
10849
11068
|
// src/ui/Title/index.tsx
|
|
10850
11069
|
var import_react_slot6 = require("@radix-ui/react-slot");
|
|
10851
11070
|
var React18 = __toESM(require("react"), 1);
|
|
10852
|
-
var
|
|
11071
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
10853
11072
|
var Title2 = React18.forwardRef(
|
|
10854
11073
|
({ className, asChild = false, ...props }, ref) => {
|
|
10855
11074
|
const Comp = asChild ? import_react_slot6.Slot : "h2";
|
|
10856
|
-
return /* @__PURE__ */ (0,
|
|
11075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10857
11076
|
Comp,
|
|
10858
11077
|
{
|
|
10859
11078
|
ref,
|
|
@@ -10872,7 +11091,7 @@ var Title_default = Title2;
|
|
|
10872
11091
|
// src/ui/Toggle/index.tsx
|
|
10873
11092
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
10874
11093
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
10875
|
-
var
|
|
11094
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
10876
11095
|
var toggleVariants = (0, import_class_variance_authority13.cva)(
|
|
10877
11096
|
"inline-flex items-center justify-center gap-2 text-sm font-medium disabled:pointer-events-none disabled:text-icon-inactive data-[state=on]:disabled:text-icon-inactive data-[state=on]:disabled:bg-toggle-bg-inactiveDefault data-[state=on]:bg-toggle-bg-activeDefault data-[state=on]:hover:bg-toggle-bg-activeHover data-[state=on]:text-icon-white hover:bg-toggle-bg-inactiveHover hover:text-icon-default [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap cursor-pointer",
|
|
10878
11097
|
{
|
|
@@ -10907,7 +11126,7 @@ function Toggle({
|
|
|
10907
11126
|
size,
|
|
10908
11127
|
...props
|
|
10909
11128
|
}) {
|
|
10910
|
-
return /* @__PURE__ */ (0,
|
|
11129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
10911
11130
|
TogglePrimitive.Root,
|
|
10912
11131
|
{
|
|
10913
11132
|
"data-slot": "toggle",
|
|
@@ -10919,12 +11138,12 @@ function Toggle({
|
|
|
10919
11138
|
}
|
|
10920
11139
|
|
|
10921
11140
|
// src/ui/ToggleDropdownButton/index.tsx
|
|
10922
|
-
var
|
|
11141
|
+
var import_react12 = require("react");
|
|
10923
11142
|
|
|
10924
11143
|
// src/ui/ToggleDropdownButton/ToggleDropdownLeftButton.tsx
|
|
10925
11144
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
10926
11145
|
var React19 = __toESM(require("react"), 1);
|
|
10927
|
-
var
|
|
11146
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
10928
11147
|
var toggleDropdownLeftButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
10929
11148
|
"flex items-center justify-center cursor-pointer transition-all",
|
|
10930
11149
|
{
|
|
@@ -11020,7 +11239,7 @@ function ToggleDropdownLeftButton({
|
|
|
11020
11239
|
}) {
|
|
11021
11240
|
const iconClass = selected ? "text-element-static-white fill-element-static-white" : "text-element-inverse-default fill-element-inverse-default";
|
|
11022
11241
|
const isIcon = React19.isValidElement(children);
|
|
11023
|
-
return type === "text" ? /* @__PURE__ */ (0,
|
|
11242
|
+
return type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
11024
11243
|
"button",
|
|
11025
11244
|
{
|
|
11026
11245
|
type: "button",
|
|
@@ -11029,7 +11248,7 @@ function ToggleDropdownLeftButton({
|
|
|
11029
11248
|
className
|
|
11030
11249
|
),
|
|
11031
11250
|
...props,
|
|
11032
|
-
children: isIcon ? /* @__PURE__ */ (0,
|
|
11251
|
+
children: isIcon ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
11033
11252
|
IconContainer,
|
|
11034
11253
|
{
|
|
11035
11254
|
colorInFill: false,
|
|
@@ -11042,7 +11261,7 @@ function ToggleDropdownLeftButton({
|
|
|
11042
11261
|
}
|
|
11043
11262
|
) : children
|
|
11044
11263
|
}
|
|
11045
|
-
) : /* @__PURE__ */ (0,
|
|
11264
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
11046
11265
|
"button",
|
|
11047
11266
|
{
|
|
11048
11267
|
type: "button",
|
|
@@ -11051,7 +11270,7 @@ function ToggleDropdownLeftButton({
|
|
|
11051
11270
|
className
|
|
11052
11271
|
),
|
|
11053
11272
|
...props,
|
|
11054
|
-
children: /* @__PURE__ */ (0,
|
|
11273
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
11055
11274
|
IconContainer,
|
|
11056
11275
|
{
|
|
11057
11276
|
colorInFill: false,
|
|
@@ -11070,7 +11289,7 @@ function ToggleDropdownLeftButton({
|
|
|
11070
11289
|
// src/ui/ToggleDropdownButton/ToggleDropdownRightButton.tsx
|
|
11071
11290
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
11072
11291
|
var React20 = __toESM(require("react"), 1);
|
|
11073
|
-
var
|
|
11292
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
11074
11293
|
var toggleDropdownRightButtonVariants = (0, import_class_variance_authority15.cva)(
|
|
11075
11294
|
"flex items-center justify-center group cursor-pointer transition-all",
|
|
11076
11295
|
{
|
|
@@ -11166,7 +11385,7 @@ function ToggleDropdownRightButton({
|
|
|
11166
11385
|
}) {
|
|
11167
11386
|
const iconClass = selected ? "text-element-static-white fill-element-static-white" : "text-element-inverse-default fill-element-inverse-default";
|
|
11168
11387
|
const isIcon = React20.isValidElement(children);
|
|
11169
|
-
return type === "text" ? /* @__PURE__ */ (0,
|
|
11388
|
+
return type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
11170
11389
|
"button",
|
|
11171
11390
|
{
|
|
11172
11391
|
type: "button",
|
|
@@ -11175,7 +11394,7 @@ function ToggleDropdownRightButton({
|
|
|
11175
11394
|
className
|
|
11176
11395
|
),
|
|
11177
11396
|
...props,
|
|
11178
|
-
children: isIcon ? /* @__PURE__ */ (0,
|
|
11397
|
+
children: isIcon ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
11179
11398
|
IconContainer,
|
|
11180
11399
|
{
|
|
11181
11400
|
colorInFill: false,
|
|
@@ -11188,7 +11407,7 @@ function ToggleDropdownRightButton({
|
|
|
11188
11407
|
}
|
|
11189
11408
|
) : children
|
|
11190
11409
|
}
|
|
11191
|
-
) : /* @__PURE__ */ (0,
|
|
11410
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
11192
11411
|
"button",
|
|
11193
11412
|
{
|
|
11194
11413
|
type: "button",
|
|
@@ -11197,7 +11416,7 @@ function ToggleDropdownRightButton({
|
|
|
11197
11416
|
className
|
|
11198
11417
|
),
|
|
11199
11418
|
...props,
|
|
11200
|
-
children: /* @__PURE__ */ (0,
|
|
11419
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
11201
11420
|
IconContainer,
|
|
11202
11421
|
{
|
|
11203
11422
|
colorInFill: false,
|
|
@@ -11214,10 +11433,10 @@ function ToggleDropdownRightButton({
|
|
|
11214
11433
|
}
|
|
11215
11434
|
|
|
11216
11435
|
// src/ui/ToggleDropdownButton/useToggleDropdown.ts
|
|
11217
|
-
var
|
|
11436
|
+
var import_react11 = require("react");
|
|
11218
11437
|
|
|
11219
11438
|
// src/ui/ToggleDropdownButton/index.tsx
|
|
11220
|
-
var
|
|
11439
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
11221
11440
|
var ToggleDropdownButton = ({
|
|
11222
11441
|
type,
|
|
11223
11442
|
selected,
|
|
@@ -11228,15 +11447,15 @@ var ToggleDropdownButton = ({
|
|
|
11228
11447
|
onLeftButtonClick,
|
|
11229
11448
|
dropdownMenu
|
|
11230
11449
|
}) => {
|
|
11231
|
-
const rightButtonRef = (0,
|
|
11450
|
+
const rightButtonRef = (0, import_react12.useRef)(null);
|
|
11232
11451
|
const handleRightButtonClick = () => {
|
|
11233
11452
|
onRightButtonClick?.();
|
|
11234
11453
|
};
|
|
11235
11454
|
const handleLeftButtonClick = () => {
|
|
11236
11455
|
onLeftButtonClick?.();
|
|
11237
11456
|
};
|
|
11238
|
-
return /* @__PURE__ */ (0,
|
|
11239
|
-
/* @__PURE__ */ (0,
|
|
11457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "gap-x-unit-1px flex items-center", children: [
|
|
11458
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
11240
11459
|
ToggleDropdownLeftButton,
|
|
11241
11460
|
{
|
|
11242
11461
|
selected,
|
|
@@ -11247,8 +11466,8 @@ var ToggleDropdownButton = ({
|
|
|
11247
11466
|
children: leftButtonChildren
|
|
11248
11467
|
}
|
|
11249
11468
|
),
|
|
11250
|
-
/* @__PURE__ */ (0,
|
|
11251
|
-
/* @__PURE__ */ (0,
|
|
11469
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "relative", children: [
|
|
11470
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
11252
11471
|
ToggleDropdownRightButton,
|
|
11253
11472
|
{
|
|
11254
11473
|
ref: rightButtonRef,
|
|
@@ -11268,8 +11487,8 @@ var ToggleDropdownButton_default = ToggleDropdownButton;
|
|
|
11268
11487
|
|
|
11269
11488
|
// src/ui/ToolToggle/index.tsx
|
|
11270
11489
|
var import_lucide_react27 = require("lucide-react");
|
|
11271
|
-
var
|
|
11272
|
-
var
|
|
11490
|
+
var import_react13 = require("react");
|
|
11491
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
11273
11492
|
var ToolToggle = ({
|
|
11274
11493
|
dropdown,
|
|
11275
11494
|
dropdownContent,
|
|
@@ -11277,41 +11496,41 @@ var ToolToggle = ({
|
|
|
11277
11496
|
className,
|
|
11278
11497
|
onClick
|
|
11279
11498
|
}) => {
|
|
11280
|
-
const [active, setActive] = (0,
|
|
11499
|
+
const [active, setActive] = (0, import_react13.useState)(false);
|
|
11281
11500
|
const handleClick = () => {
|
|
11282
11501
|
setActive(!active);
|
|
11283
11502
|
onClick?.(active);
|
|
11284
11503
|
};
|
|
11285
|
-
return /* @__PURE__ */ (0,
|
|
11286
|
-
/* @__PURE__ */ (0,
|
|
11504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn(dropdown ? "min-w-20" : "min-w-[52px]", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(DropdownMenu, { children: [
|
|
11505
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
11287
11506
|
DropdownMenuTrigger,
|
|
11288
11507
|
{
|
|
11289
11508
|
className: cn(
|
|
11290
11509
|
"border-border-primary-light !bg-toggle-bg-inactiveDefault hover:!bg-toggle-bg-inactiveHover flex h-full w-full items-center justify-center gap-x-2 !rounded-full border p-4 transition-all",
|
|
11291
11510
|
active && "!bg-toggle-bg-activeDefault hover:!bg-toggle-bg-activeHover"
|
|
11292
11511
|
),
|
|
11293
|
-
children: /* @__PURE__ */ (0,
|
|
11512
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
11294
11513
|
"div",
|
|
11295
11514
|
{
|
|
11296
11515
|
className: "flex items-center justify-center gap-x-2",
|
|
11297
11516
|
onClick: handleClick,
|
|
11298
11517
|
children: [
|
|
11299
11518
|
icon,
|
|
11300
|
-
dropdown && /* @__PURE__ */ (0,
|
|
11519
|
+
dropdown && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react27.ChevronDown, { className: "text-icon-default size-5" })
|
|
11301
11520
|
]
|
|
11302
11521
|
}
|
|
11303
11522
|
)
|
|
11304
11523
|
}
|
|
11305
11524
|
),
|
|
11306
|
-
dropdown && /* @__PURE__ */ (0,
|
|
11525
|
+
dropdown && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DropdownMenuContent, { align: "start", className: "min-w-41", children: dropdownContent })
|
|
11307
11526
|
] }) });
|
|
11308
11527
|
};
|
|
11309
11528
|
|
|
11310
11529
|
// src/ui/WrapperCard/index.tsx
|
|
11311
|
-
var
|
|
11530
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
11312
11531
|
var WrapperCard = (props) => {
|
|
11313
11532
|
const { children, className } = props;
|
|
11314
|
-
return /* @__PURE__ */ (0,
|
|
11533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
11315
11534
|
"div",
|
|
11316
11535
|
{
|
|
11317
11536
|
className: cn(
|
|
@@ -11327,7 +11546,7 @@ var WrapperCard = (props) => {
|
|
|
11327
11546
|
var import_react_slot7 = require("@radix-ui/react-slot");
|
|
11328
11547
|
var React21 = __toESM(require("react"), 1);
|
|
11329
11548
|
var import_react_hook_form = require("react-hook-form");
|
|
11330
|
-
var
|
|
11549
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
11331
11550
|
var BaseForm = import_react_hook_form.FormProvider;
|
|
11332
11551
|
var FormFieldContext = React21.createContext(
|
|
11333
11552
|
{}
|
|
@@ -11335,7 +11554,7 @@ var FormFieldContext = React21.createContext(
|
|
|
11335
11554
|
var BaseFormField = ({
|
|
11336
11555
|
...props
|
|
11337
11556
|
}) => {
|
|
11338
|
-
return /* @__PURE__ */ (0,
|
|
11557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
11339
11558
|
};
|
|
11340
11559
|
var useFormField = () => {
|
|
11341
11560
|
const fieldContext = React21.useContext(FormFieldContext);
|
|
@@ -11361,7 +11580,7 @@ var FormItemContext = React21.createContext(
|
|
|
11361
11580
|
);
|
|
11362
11581
|
function BaseFormItem({ className, ...props }) {
|
|
11363
11582
|
const id = React21.useId();
|
|
11364
|
-
return /* @__PURE__ */ (0,
|
|
11583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
11365
11584
|
"div",
|
|
11366
11585
|
{
|
|
11367
11586
|
"data-slot": "form-item",
|
|
@@ -11375,7 +11594,7 @@ function BaseFormLabel({
|
|
|
11375
11594
|
...props
|
|
11376
11595
|
}) {
|
|
11377
11596
|
const { error, formItemId } = useFormField();
|
|
11378
|
-
return /* @__PURE__ */ (0,
|
|
11597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
11379
11598
|
Label2,
|
|
11380
11599
|
{
|
|
11381
11600
|
"data-slot": "form-label",
|
|
@@ -11391,7 +11610,7 @@ function BaseFormLabel({
|
|
|
11391
11610
|
}
|
|
11392
11611
|
function BaseFormControl({ ...props }) {
|
|
11393
11612
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
11394
|
-
return /* @__PURE__ */ (0,
|
|
11613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
11395
11614
|
import_react_slot7.Slot,
|
|
11396
11615
|
{
|
|
11397
11616
|
"data-slot": "form-control",
|
|
@@ -11407,7 +11626,7 @@ function BaseFormDescription({
|
|
|
11407
11626
|
...props
|
|
11408
11627
|
}) {
|
|
11409
11628
|
const { formDescriptionId } = useFormField();
|
|
11410
|
-
return /* @__PURE__ */ (0,
|
|
11629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
11411
11630
|
"p",
|
|
11412
11631
|
{
|
|
11413
11632
|
"data-slot": "form-description",
|
|
@@ -11423,7 +11642,7 @@ function BaseFormMessage({ className, ...props }) {
|
|
|
11423
11642
|
if (!body) {
|
|
11424
11643
|
return null;
|
|
11425
11644
|
}
|
|
11426
|
-
return /* @__PURE__ */ (0,
|
|
11645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
11427
11646
|
"p",
|
|
11428
11647
|
{
|
|
11429
11648
|
"data-slot": "form-message",
|
|
@@ -11437,7 +11656,7 @@ function BaseFormMessage({ className, ...props }) {
|
|
|
11437
11656
|
|
|
11438
11657
|
// src/ui/form/FormField.tsx
|
|
11439
11658
|
var React22 = __toESM(require("react"), 1);
|
|
11440
|
-
var
|
|
11659
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
11441
11660
|
var FormField = ({
|
|
11442
11661
|
control,
|
|
11443
11662
|
field,
|
|
@@ -11445,18 +11664,18 @@ var FormField = ({
|
|
|
11445
11664
|
onBlur,
|
|
11446
11665
|
className
|
|
11447
11666
|
}) => {
|
|
11448
|
-
return /* @__PURE__ */ (0,
|
|
11667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
11449
11668
|
BaseFormField,
|
|
11450
11669
|
{
|
|
11451
11670
|
control,
|
|
11452
11671
|
name: field.name,
|
|
11453
|
-
render: ({ field: formField }) => /* @__PURE__ */ (0,
|
|
11454
|
-
field.label && /* @__PURE__ */ (0,
|
|
11672
|
+
render: ({ field: formField }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(BaseFormItem, { className: cn("w-full", className), children: [
|
|
11673
|
+
field.label && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(BaseFormLabel, { className: "gap-1", children: [
|
|
11455
11674
|
field.label,
|
|
11456
|
-
field.required && /* @__PURE__ */ (0,
|
|
11457
|
-
field.optional && /* @__PURE__ */ (0,
|
|
11675
|
+
field.required && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-element-inverse-red", children: "*" }),
|
|
11676
|
+
field.optional && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-title-sm!", children: "(Optional)" })
|
|
11458
11677
|
] }),
|
|
11459
|
-
/* @__PURE__ */ (0,
|
|
11678
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseFormControl, { children: React22.isValidElement(field.render) ? React22.cloneElement(
|
|
11460
11679
|
field.render,
|
|
11461
11680
|
{
|
|
11462
11681
|
...formField,
|
|
@@ -11466,7 +11685,7 @@ var FormField = ({
|
|
|
11466
11685
|
}
|
|
11467
11686
|
}
|
|
11468
11687
|
) : field.render }),
|
|
11469
|
-
isShowError && /* @__PURE__ */ (0,
|
|
11688
|
+
isShowError && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseFormMessage, {})
|
|
11470
11689
|
] })
|
|
11471
11690
|
},
|
|
11472
11691
|
field.name
|
|
@@ -11474,10 +11693,10 @@ var FormField = ({
|
|
|
11474
11693
|
};
|
|
11475
11694
|
|
|
11476
11695
|
// src/ui/form/Form.tsx
|
|
11477
|
-
var
|
|
11696
|
+
var import_react14 = require("react");
|
|
11478
11697
|
var import_react_hook_form2 = require("react-hook-form");
|
|
11479
|
-
var
|
|
11480
|
-
var FormMethodsContext = (0,
|
|
11698
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
11699
|
+
var FormMethodsContext = (0, import_react14.createContext)(
|
|
11481
11700
|
null
|
|
11482
11701
|
);
|
|
11483
11702
|
function Form({
|
|
@@ -11487,11 +11706,11 @@ function Form({
|
|
|
11487
11706
|
className,
|
|
11488
11707
|
children
|
|
11489
11708
|
}) {
|
|
11490
|
-
return /* @__PURE__ */ (0,
|
|
11709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11491
11710
|
FormMethodsContext.Provider,
|
|
11492
11711
|
{
|
|
11493
11712
|
value: formMethods,
|
|
11494
|
-
children: /* @__PURE__ */ (0,
|
|
11713
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BaseForm, { ...formMethods, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11495
11714
|
"form",
|
|
11496
11715
|
{
|
|
11497
11716
|
id,
|
|
@@ -11512,7 +11731,7 @@ Form.InputField = function InputField({
|
|
|
11512
11731
|
...props
|
|
11513
11732
|
}) {
|
|
11514
11733
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11515
|
-
return /* @__PURE__ */ (0,
|
|
11734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11516
11735
|
FormField,
|
|
11517
11736
|
{
|
|
11518
11737
|
className: "w-full",
|
|
@@ -11523,7 +11742,7 @@ Form.InputField = function InputField({
|
|
|
11523
11742
|
name,
|
|
11524
11743
|
label,
|
|
11525
11744
|
required,
|
|
11526
|
-
render: /* @__PURE__ */ (0,
|
|
11745
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Input, { ...props, inputClassName: props.inputClassName })
|
|
11527
11746
|
}
|
|
11528
11747
|
}
|
|
11529
11748
|
);
|
|
@@ -11534,7 +11753,7 @@ Form.PasswordField = function PasswordField({
|
|
|
11534
11753
|
...props
|
|
11535
11754
|
}) {
|
|
11536
11755
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11537
|
-
return /* @__PURE__ */ (0,
|
|
11756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11538
11757
|
FormField,
|
|
11539
11758
|
{
|
|
11540
11759
|
className: "w-full",
|
|
@@ -11542,7 +11761,7 @@ Form.PasswordField = function PasswordField({
|
|
|
11542
11761
|
field: {
|
|
11543
11762
|
name,
|
|
11544
11763
|
label,
|
|
11545
|
-
render: /* @__PURE__ */ (0,
|
|
11764
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(PasswordInput, { ...props })
|
|
11546
11765
|
}
|
|
11547
11766
|
}
|
|
11548
11767
|
);
|
|
@@ -11554,7 +11773,7 @@ Form.SelectInputField = function SelectInputField({
|
|
|
11554
11773
|
...props
|
|
11555
11774
|
}) {
|
|
11556
11775
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11557
|
-
return /* @__PURE__ */ (0,
|
|
11776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11558
11777
|
FormField,
|
|
11559
11778
|
{
|
|
11560
11779
|
control,
|
|
@@ -11562,7 +11781,7 @@ Form.SelectInputField = function SelectInputField({
|
|
|
11562
11781
|
name,
|
|
11563
11782
|
required,
|
|
11564
11783
|
label,
|
|
11565
|
-
render: /* @__PURE__ */ (0,
|
|
11784
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SelectInput, { ...props })
|
|
11566
11785
|
}
|
|
11567
11786
|
}
|
|
11568
11787
|
);
|
|
@@ -11574,14 +11793,14 @@ Form.MultiSelectField = function MultiSelectField({
|
|
|
11574
11793
|
}) {
|
|
11575
11794
|
const { control, watch, setValue } = (0, import_react_hook_form2.useFormContext)();
|
|
11576
11795
|
const selectedValues = watch(name) || [];
|
|
11577
|
-
return /* @__PURE__ */ (0,
|
|
11796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11578
11797
|
FormField,
|
|
11579
11798
|
{
|
|
11580
11799
|
control,
|
|
11581
11800
|
field: {
|
|
11582
11801
|
name,
|
|
11583
11802
|
label,
|
|
11584
|
-
render: /* @__PURE__ */ (0,
|
|
11803
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11585
11804
|
MultiSelect,
|
|
11586
11805
|
{
|
|
11587
11806
|
...props,
|
|
@@ -11600,7 +11819,7 @@ Form.TextareaField = function TextareaField({
|
|
|
11600
11819
|
...props
|
|
11601
11820
|
}) {
|
|
11602
11821
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11603
|
-
return /* @__PURE__ */ (0,
|
|
11822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11604
11823
|
FormField,
|
|
11605
11824
|
{
|
|
11606
11825
|
control,
|
|
@@ -11608,7 +11827,7 @@ Form.TextareaField = function TextareaField({
|
|
|
11608
11827
|
name,
|
|
11609
11828
|
label,
|
|
11610
11829
|
optional,
|
|
11611
|
-
render: /* @__PURE__ */ (0,
|
|
11830
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TextAreaInput_default, { ...props })
|
|
11612
11831
|
}
|
|
11613
11832
|
}
|
|
11614
11833
|
);
|
|
@@ -11626,14 +11845,14 @@ Form.FileUploadField = function FileUploadFieldComponent({
|
|
|
11626
11845
|
const { control, formState } = (0, import_react_hook_form2.useFormContext)();
|
|
11627
11846
|
const fieldError = formState.errors[name];
|
|
11628
11847
|
const hasValidationError = !!fieldError;
|
|
11629
|
-
return /* @__PURE__ */ (0,
|
|
11848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11630
11849
|
import_react_hook_form2.Controller,
|
|
11631
11850
|
{
|
|
11632
11851
|
control,
|
|
11633
11852
|
name,
|
|
11634
|
-
render: ({ field: formField }) => /* @__PURE__ */ (0,
|
|
11635
|
-
label && /* @__PURE__ */ (0,
|
|
11636
|
-
/* @__PURE__ */ (0,
|
|
11853
|
+
render: ({ field: formField }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "space-y-1", children: [
|
|
11854
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("label", { htmlFor: name, className: "font-medium", children: label }),
|
|
11855
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11637
11856
|
FileUploadField,
|
|
11638
11857
|
{
|
|
11639
11858
|
field: { name, isMultiple, maxFiles, children },
|
|
@@ -11664,7 +11883,7 @@ Form.DateInputField = function DateInputField({
|
|
|
11664
11883
|
}) {
|
|
11665
11884
|
const { control, watch, setValue } = (0, import_react_hook_form2.useFormContext)();
|
|
11666
11885
|
const value = watch(name);
|
|
11667
|
-
return /* @__PURE__ */ (0,
|
|
11886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11668
11887
|
FormField,
|
|
11669
11888
|
{
|
|
11670
11889
|
control,
|
|
@@ -11672,7 +11891,7 @@ Form.DateInputField = function DateInputField({
|
|
|
11672
11891
|
name,
|
|
11673
11892
|
label,
|
|
11674
11893
|
required,
|
|
11675
|
-
render: /* @__PURE__ */ (0,
|
|
11894
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11676
11895
|
DatePickerInput,
|
|
11677
11896
|
{
|
|
11678
11897
|
...props,
|
|
@@ -11691,14 +11910,14 @@ Form.TimeInputField = function TimeInputField({
|
|
|
11691
11910
|
...props
|
|
11692
11911
|
}) {
|
|
11693
11912
|
const { control, setValue } = (0, import_react_hook_form2.useFormContext)();
|
|
11694
|
-
return /* @__PURE__ */ (0,
|
|
11913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11695
11914
|
FormField,
|
|
11696
11915
|
{
|
|
11697
11916
|
control,
|
|
11698
11917
|
field: {
|
|
11699
11918
|
name,
|
|
11700
11919
|
label,
|
|
11701
|
-
render: /* @__PURE__ */ (0,
|
|
11920
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11702
11921
|
TimePicker,
|
|
11703
11922
|
{
|
|
11704
11923
|
onValueChange: (value) => {
|
|
@@ -11717,13 +11936,13 @@ Form.CheckboxField = function CheckboxField({
|
|
|
11717
11936
|
...props
|
|
11718
11937
|
}) {
|
|
11719
11938
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11720
|
-
return /* @__PURE__ */ (0,
|
|
11939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11721
11940
|
FormField,
|
|
11722
11941
|
{
|
|
11723
11942
|
control,
|
|
11724
11943
|
field: {
|
|
11725
11944
|
name,
|
|
11726
|
-
render: /* @__PURE__ */ (0,
|
|
11945
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Checkbox, { value: name, label, ...props })
|
|
11727
11946
|
}
|
|
11728
11947
|
}
|
|
11729
11948
|
);
|
|
@@ -11733,12 +11952,12 @@ Form.OTPInputField = function OTPInputField({
|
|
|
11733
11952
|
...props
|
|
11734
11953
|
}) {
|
|
11735
11954
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11736
|
-
return /* @__PURE__ */ (0,
|
|
11955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11737
11956
|
FormField,
|
|
11738
11957
|
{
|
|
11739
11958
|
className: "w-full",
|
|
11740
11959
|
control,
|
|
11741
|
-
field: { name, render: /* @__PURE__ */ (0,
|
|
11960
|
+
field: { name, render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(OTPInput, { ...props }) }
|
|
11742
11961
|
}
|
|
11743
11962
|
);
|
|
11744
11963
|
};
|
|
@@ -11749,14 +11968,14 @@ Form.RadioField = function RadioField({
|
|
|
11749
11968
|
}) {
|
|
11750
11969
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
11751
11970
|
const { setValue } = (0, import_react_hook_form2.useFormContext)();
|
|
11752
|
-
return /* @__PURE__ */ (0,
|
|
11971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11753
11972
|
FormField,
|
|
11754
11973
|
{
|
|
11755
11974
|
control,
|
|
11756
11975
|
field: {
|
|
11757
11976
|
name,
|
|
11758
11977
|
label,
|
|
11759
|
-
render: /* @__PURE__ */ (0,
|
|
11978
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11760
11979
|
Radio,
|
|
11761
11980
|
{
|
|
11762
11981
|
...props,
|
|
@@ -11773,13 +11992,13 @@ Form.ComboboxField = function ComboboxField({
|
|
|
11773
11992
|
}) {
|
|
11774
11993
|
const { control, setValue, watch } = (0, import_react_hook_form2.useFormContext)();
|
|
11775
11994
|
const value = watch(name);
|
|
11776
|
-
return /* @__PURE__ */ (0,
|
|
11995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11777
11996
|
FormField,
|
|
11778
11997
|
{
|
|
11779
11998
|
control,
|
|
11780
11999
|
field: {
|
|
11781
12000
|
name,
|
|
11782
|
-
render: /* @__PURE__ */ (0,
|
|
12001
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11783
12002
|
Combobox,
|
|
11784
12003
|
{
|
|
11785
12004
|
...props,
|
|
@@ -11801,7 +12020,7 @@ Form.SwitchField = function SwitchField({
|
|
|
11801
12020
|
}) {
|
|
11802
12021
|
const { control, setValue, watch } = (0, import_react_hook_form2.useFormContext)();
|
|
11803
12022
|
const value = watch(name);
|
|
11804
|
-
return /* @__PURE__ */ (0,
|
|
12023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11805
12024
|
FormField,
|
|
11806
12025
|
{
|
|
11807
12026
|
control,
|
|
@@ -11809,9 +12028,9 @@ Form.SwitchField = function SwitchField({
|
|
|
11809
12028
|
field: {
|
|
11810
12029
|
name,
|
|
11811
12030
|
label,
|
|
11812
|
-
render: /* @__PURE__ */ (0,
|
|
11813
|
-
prefix && /* @__PURE__ */ (0,
|
|
11814
|
-
/* @__PURE__ */ (0,
|
|
12031
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center", children: [
|
|
12032
|
+
prefix && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "mr-2", children: prefix }),
|
|
12033
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
11815
12034
|
Switch,
|
|
11816
12035
|
{
|
|
11817
12036
|
...props,
|
|
@@ -11819,7 +12038,7 @@ Form.SwitchField = function SwitchField({
|
|
|
11819
12038
|
onCheckedChange: (checked) => setValue(name, checked)
|
|
11820
12039
|
}
|
|
11821
12040
|
),
|
|
11822
|
-
suffix && /* @__PURE__ */ (0,
|
|
12041
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "ml-2", children: suffix })
|
|
11823
12042
|
] })
|
|
11824
12043
|
}
|
|
11825
12044
|
}
|
|
@@ -12833,6 +13052,7 @@ function getTokenValueWithFallback(tokenName, fallback) {
|
|
|
12833
13052
|
FileUploadField,
|
|
12834
13053
|
Form,
|
|
12835
13054
|
FormField,
|
|
13055
|
+
GoogleMapView,
|
|
12836
13056
|
GradientContainer,
|
|
12837
13057
|
Grid,
|
|
12838
13058
|
IconButton,
|