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/schema.cjs
CHANGED
|
@@ -64,6 +64,7 @@ __export(schema_exports, {
|
|
|
64
64
|
fileUploadFieldSchema: () => fileUploadFieldSchema,
|
|
65
65
|
formSchema: () => formSchema,
|
|
66
66
|
getComponentSchemas: () => getComponentSchemas,
|
|
67
|
+
googleMapSchema: () => googleMapSchema,
|
|
67
68
|
gradientContainerSchema: () => gradientContainerSchema,
|
|
68
69
|
gridSchema: () => gridSchema,
|
|
69
70
|
iconButtonSchema: () => iconButtonSchema,
|
|
@@ -3334,6 +3335,112 @@ var component_schema_default = {
|
|
|
3334
3335
|
},
|
|
3335
3336
|
$schema: "http://json-schema.org/draft-07/schema#"
|
|
3336
3337
|
},
|
|
3338
|
+
"google-map": {
|
|
3339
|
+
$ref: "#/definitions/google-map",
|
|
3340
|
+
definitions: {
|
|
3341
|
+
"google-map": {
|
|
3342
|
+
type: "object",
|
|
3343
|
+
properties: {
|
|
3344
|
+
type: {
|
|
3345
|
+
type: "string",
|
|
3346
|
+
const: "google-map"
|
|
3347
|
+
},
|
|
3348
|
+
props: {
|
|
3349
|
+
type: "object",
|
|
3350
|
+
properties: {
|
|
3351
|
+
center: {
|
|
3352
|
+
type: "object",
|
|
3353
|
+
properties: {
|
|
3354
|
+
lat: {
|
|
3355
|
+
type: "number",
|
|
3356
|
+
description: "Center latitude"
|
|
3357
|
+
},
|
|
3358
|
+
lng: {
|
|
3359
|
+
type: "number",
|
|
3360
|
+
description: "Center longitude"
|
|
3361
|
+
}
|
|
3362
|
+
},
|
|
3363
|
+
required: [
|
|
3364
|
+
"lat",
|
|
3365
|
+
"lng"
|
|
3366
|
+
],
|
|
3367
|
+
additionalProperties: false,
|
|
3368
|
+
description: "Map center coordinates"
|
|
3369
|
+
},
|
|
3370
|
+
zoom: {
|
|
3371
|
+
type: "number",
|
|
3372
|
+
description: "Zoom level (1-20). Defaults to 12"
|
|
3373
|
+
},
|
|
3374
|
+
markers: {
|
|
3375
|
+
type: "array",
|
|
3376
|
+
items: {
|
|
3377
|
+
type: "object",
|
|
3378
|
+
properties: {
|
|
3379
|
+
lat: {
|
|
3380
|
+
type: "number",
|
|
3381
|
+
description: "Latitude"
|
|
3382
|
+
},
|
|
3383
|
+
lng: {
|
|
3384
|
+
type: "number",
|
|
3385
|
+
description: "Longitude"
|
|
3386
|
+
},
|
|
3387
|
+
title: {
|
|
3388
|
+
type: "string",
|
|
3389
|
+
description: "Marker title shown in info window"
|
|
3390
|
+
},
|
|
3391
|
+
description: {
|
|
3392
|
+
type: "string",
|
|
3393
|
+
description: "Marker description shown in info window"
|
|
3394
|
+
},
|
|
3395
|
+
color: {
|
|
3396
|
+
type: "string",
|
|
3397
|
+
description: "Marker pin color (hex or CSS color)"
|
|
3398
|
+
}
|
|
3399
|
+
},
|
|
3400
|
+
required: [
|
|
3401
|
+
"lat",
|
|
3402
|
+
"lng"
|
|
3403
|
+
],
|
|
3404
|
+
additionalProperties: false
|
|
3405
|
+
},
|
|
3406
|
+
description: "Array of map markers with lat/lng and optional info"
|
|
3407
|
+
},
|
|
3408
|
+
height: {
|
|
3409
|
+
type: "string",
|
|
3410
|
+
description: "Map height CSS value. Defaults to '400px'"
|
|
3411
|
+
},
|
|
3412
|
+
width: {
|
|
3413
|
+
type: "string",
|
|
3414
|
+
description: "Map width CSS value. Defaults to '100%'"
|
|
3415
|
+
},
|
|
3416
|
+
gestureHandling: {
|
|
3417
|
+
type: "string",
|
|
3418
|
+
enum: [
|
|
3419
|
+
"cooperative",
|
|
3420
|
+
"greedy",
|
|
3421
|
+
"none",
|
|
3422
|
+
"auto"
|
|
3423
|
+
],
|
|
3424
|
+
description: "How the map handles touch/scroll gestures. Defaults to 'cooperative'"
|
|
3425
|
+
},
|
|
3426
|
+
disableDefaultUI: {
|
|
3427
|
+
type: "boolean",
|
|
3428
|
+
description: "Hide default map controls"
|
|
3429
|
+
}
|
|
3430
|
+
},
|
|
3431
|
+
additionalProperties: false
|
|
3432
|
+
}
|
|
3433
|
+
},
|
|
3434
|
+
required: [
|
|
3435
|
+
"type",
|
|
3436
|
+
"props"
|
|
3437
|
+
],
|
|
3438
|
+
additionalProperties: false,
|
|
3439
|
+
description: "An interactive Google Map with optional markers and info windows"
|
|
3440
|
+
}
|
|
3441
|
+
},
|
|
3442
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
3443
|
+
},
|
|
3337
3444
|
calendar: {
|
|
3338
3445
|
$ref: "#/definitions/calendar",
|
|
3339
3446
|
definitions: {
|
|
@@ -5509,75 +5616,100 @@ var tableSchema = import_zod45.z.object({
|
|
|
5509
5616
|
})
|
|
5510
5617
|
}).describe("A data table with columns and rows");
|
|
5511
5618
|
|
|
5512
|
-
// src/ui/
|
|
5619
|
+
// src/ui/Map/schema.ts
|
|
5513
5620
|
var import_zod46 = require("zod");
|
|
5514
|
-
var
|
|
5515
|
-
|
|
5621
|
+
var mapMarkerSchema = import_zod46.z.object({
|
|
5622
|
+
lat: import_zod46.z.number().describe("Latitude"),
|
|
5623
|
+
lng: import_zod46.z.number().describe("Longitude"),
|
|
5624
|
+
title: import_zod46.z.string().optional().describe("Marker title shown in info window"),
|
|
5625
|
+
description: import_zod46.z.string().optional().describe("Marker description shown in info window"),
|
|
5626
|
+
color: import_zod46.z.string().optional().describe("Marker pin color (hex or CSS color)")
|
|
5627
|
+
});
|
|
5628
|
+
var googleMapSchema = import_zod46.z.object({
|
|
5629
|
+
type: import_zod46.z.literal("google-map"),
|
|
5516
5630
|
props: import_zod46.z.object({
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5631
|
+
center: import_zod46.z.object({
|
|
5632
|
+
lat: import_zod46.z.number().describe("Center latitude"),
|
|
5633
|
+
lng: import_zod46.z.number().describe("Center longitude")
|
|
5634
|
+
}).optional().describe("Map center coordinates"),
|
|
5635
|
+
zoom: import_zod46.z.number().optional().describe("Zoom level (1-20). Defaults to 12"),
|
|
5636
|
+
markers: import_zod46.z.array(mapMarkerSchema).optional().describe("Array of map markers with lat/lng and optional info"),
|
|
5637
|
+
height: import_zod46.z.string().optional().describe("Map height CSS value. Defaults to '400px'"),
|
|
5638
|
+
width: import_zod46.z.string().optional().describe("Map width CSS value. Defaults to '100%'"),
|
|
5639
|
+
gestureHandling: import_zod46.z.enum(["cooperative", "greedy", "none", "auto"]).optional().describe("How the map handles touch/scroll gestures. Defaults to 'cooperative'"),
|
|
5640
|
+
disableDefaultUI: import_zod46.z.boolean().optional().describe("Hide default map controls")
|
|
5641
|
+
})
|
|
5642
|
+
}).describe("An interactive Google Map with optional markers and info windows");
|
|
5525
5643
|
|
|
5526
|
-
// src/ui/
|
|
5644
|
+
// src/ui/Calendar/schema.ts
|
|
5527
5645
|
var import_zod47 = require("zod");
|
|
5528
|
-
var
|
|
5529
|
-
type: import_zod47.z.literal("
|
|
5646
|
+
var calendarSchema = import_zod47.z.object({
|
|
5647
|
+
type: import_zod47.z.literal("calendar"),
|
|
5530
5648
|
props: import_zod47.z.object({
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5649
|
+
showOutsideDays: import_zod47.z.boolean().optional().describe("Show days from adjacent months. Defaults to true"),
|
|
5650
|
+
captionLayout: import_zod47.z.enum(["label", "dropdown", "dropdown-months", "dropdown-years"]).optional().describe("Caption display mode. Defaults to 'label'"),
|
|
5651
|
+
buttonVariant: import_zod47.z.enum(["primary", "secondary", "outline", "destructive", "ghost", "soft"]).optional().describe("Navigation button style. Defaults to 'ghost'"),
|
|
5652
|
+
mode: import_zod47.z.enum(["single", "multiple", "range"]).optional().describe("Selection mode"),
|
|
5653
|
+
numberOfMonths: import_zod47.z.number().optional().describe("Number of months to display"),
|
|
5536
5654
|
disabled: import_zod47.z.boolean().optional()
|
|
5537
5655
|
}).optional()
|
|
5538
|
-
}).describe("A
|
|
5656
|
+
}).describe("A date calendar for picking dates or date ranges");
|
|
5539
5657
|
|
|
5540
|
-
// src/ui/
|
|
5658
|
+
// src/ui/FileInput/schema.ts
|
|
5541
5659
|
var import_zod48 = require("zod");
|
|
5542
|
-
var
|
|
5543
|
-
type: import_zod48.z.literal("
|
|
5660
|
+
var fileInputSchema = import_zod48.z.object({
|
|
5661
|
+
type: import_zod48.z.literal("file-input"),
|
|
5544
5662
|
props: import_zod48.z.object({
|
|
5545
|
-
|
|
5546
|
-
|
|
5663
|
+
label: import_zod48.z.string().optional().describe("Label text above the input"),
|
|
5664
|
+
helperText: import_zod48.z.string().optional().describe("Helper text below the input"),
|
|
5665
|
+
error: import_zod48.z.boolean().optional().describe("Show error styling. Defaults to false"),
|
|
5666
|
+
accept: import_zod48.z.string().optional().describe("Accepted file types, e.g. 'image/*,.pdf'"),
|
|
5667
|
+
multiple: import_zod48.z.boolean().optional().describe("Allow multiple files. Defaults to false"),
|
|
5668
|
+
disabled: import_zod48.z.boolean().optional()
|
|
5547
5669
|
}).optional()
|
|
5548
|
-
}).describe("A
|
|
5670
|
+
}).describe("A file input with choose-file button and upload progress");
|
|
5549
5671
|
|
|
5550
|
-
// src/ui/
|
|
5672
|
+
// src/ui/ToolToggle/schema.ts
|
|
5551
5673
|
var import_zod49 = require("zod");
|
|
5552
|
-
var
|
|
5553
|
-
type: import_zod49.z.literal("toggle
|
|
5674
|
+
var toolToggleSchema = import_zod49.z.object({
|
|
5675
|
+
type: import_zod49.z.literal("tool-toggle"),
|
|
5554
5676
|
props: import_zod49.z.object({
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5677
|
+
icon: import_zod49.z.string().optional().describe("Icon name (resolved by the renderer)"),
|
|
5678
|
+
dropdown: import_zod49.z.boolean().optional().describe("Show dropdown chevron")
|
|
5679
|
+
}).optional()
|
|
5680
|
+
}).describe("A round toggle button used in toolbars, optionally with a dropdown");
|
|
5681
|
+
|
|
5682
|
+
// src/ui/ToggleDropdownButton/schema.ts
|
|
5683
|
+
var import_zod50 = require("zod");
|
|
5684
|
+
var toggleDropdownButtonSchema = import_zod50.z.object({
|
|
5685
|
+
type: import_zod50.z.literal("toggle-dropdown-button"),
|
|
5686
|
+
props: import_zod50.z.object({
|
|
5687
|
+
type: import_zod50.z.enum(["text", "icon"]).describe("Button content type"),
|
|
5688
|
+
selected: import_zod50.z.boolean().describe("Whether the button is selected"),
|
|
5689
|
+
variant: import_zod50.z.enum(["primary", "secondary", "destructive"]).describe("Button color variant")
|
|
5558
5690
|
})
|
|
5559
5691
|
}).describe("A split toggle button with an attached dropdown trigger");
|
|
5560
5692
|
|
|
5561
5693
|
// src/ui/IconContainer/schema.ts
|
|
5562
|
-
var
|
|
5563
|
-
var iconContainerSchema =
|
|
5564
|
-
type:
|
|
5565
|
-
props:
|
|
5566
|
-
icon:
|
|
5567
|
-
size:
|
|
5568
|
-
colorInFill:
|
|
5569
|
-
disableTheme:
|
|
5694
|
+
var import_zod51 = require("zod");
|
|
5695
|
+
var iconContainerSchema = import_zod51.z.object({
|
|
5696
|
+
type: import_zod51.z.literal("icon-container"),
|
|
5697
|
+
props: import_zod51.z.object({
|
|
5698
|
+
icon: import_zod51.z.string().optional().describe("Icon name (resolved by the renderer)"),
|
|
5699
|
+
size: import_zod51.z.enum(["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "auto"]).optional().describe("Icon size. Defaults to 'sm'"),
|
|
5700
|
+
colorInFill: import_zod51.z.boolean().optional().describe("Apply fill colors to SVG paths. Defaults to true"),
|
|
5701
|
+
disableTheme: import_zod51.z.boolean().optional().describe("Disable theme-aware coloring. Defaults to false")
|
|
5570
5702
|
}).optional(),
|
|
5571
|
-
children:
|
|
5703
|
+
children: import_zod51.z.array(uiNodeSchema).optional().describe("Icon element")
|
|
5572
5704
|
}).describe("A sized container for static icons with theme-aware coloring");
|
|
5573
5705
|
|
|
5574
5706
|
// src/ui/IconProfile/schema.ts
|
|
5575
|
-
var
|
|
5576
|
-
var iconProfileSchema =
|
|
5577
|
-
type:
|
|
5578
|
-
props:
|
|
5579
|
-
icon:
|
|
5580
|
-
color:
|
|
5707
|
+
var import_zod52 = require("zod");
|
|
5708
|
+
var iconProfileSchema = import_zod52.z.object({
|
|
5709
|
+
type: import_zod52.z.literal("icon-profile"),
|
|
5710
|
+
props: import_zod52.z.object({
|
|
5711
|
+
icon: import_zod52.z.string().describe("Icon name (resolved by the renderer)"),
|
|
5712
|
+
color: import_zod52.z.enum([
|
|
5581
5713
|
"red",
|
|
5582
5714
|
"orange",
|
|
5583
5715
|
"amber",
|
|
@@ -5597,18 +5729,18 @@ var iconProfileSchema = import_zod51.z.object({
|
|
|
5597
5729
|
"rose",
|
|
5598
5730
|
"slate"
|
|
5599
5731
|
]).optional().describe("Background glow and icon color. Defaults to 'red'"),
|
|
5600
|
-
size:
|
|
5601
|
-
externalIcon:
|
|
5732
|
+
size: import_zod52.z.enum(["26", "32", "40", "48", "56", "64"]).optional().describe("Size in pixels. Defaults to '64'"),
|
|
5733
|
+
externalIcon: import_zod52.z.boolean().optional().describe("Whether the icon is external")
|
|
5602
5734
|
})
|
|
5603
5735
|
}).describe("An icon with a colored radial glow background");
|
|
5604
5736
|
|
|
5605
5737
|
// src/ui/ButtonWithTooltip/schema.ts
|
|
5606
|
-
var
|
|
5607
|
-
var buttonWithTooltipSchema =
|
|
5608
|
-
type:
|
|
5609
|
-
props:
|
|
5610
|
-
content:
|
|
5611
|
-
position:
|
|
5738
|
+
var import_zod53 = require("zod");
|
|
5739
|
+
var buttonWithTooltipSchema = import_zod53.z.object({
|
|
5740
|
+
type: import_zod53.z.literal("button-with-tooltip"),
|
|
5741
|
+
props: import_zod53.z.object({
|
|
5742
|
+
content: import_zod53.z.string().describe("Tooltip text"),
|
|
5743
|
+
position: import_zod53.z.enum([
|
|
5612
5744
|
"top",
|
|
5613
5745
|
"top-center",
|
|
5614
5746
|
"top-left",
|
|
@@ -5620,147 +5752,147 @@ var buttonWithTooltipSchema = import_zod52.z.object({
|
|
|
5620
5752
|
"left",
|
|
5621
5753
|
"right"
|
|
5622
5754
|
]).optional().describe("Tooltip placement"),
|
|
5623
|
-
withArrow:
|
|
5755
|
+
withArrow: import_zod53.z.boolean().optional().describe("Show an arrow pointer")
|
|
5624
5756
|
}),
|
|
5625
|
-
children:
|
|
5757
|
+
children: import_zod53.z.array(uiNodeSchema).optional().describe("The button element to wrap with a tooltip")
|
|
5626
5758
|
}).describe("A button wrapped with a tooltip that appears on hover");
|
|
5627
5759
|
|
|
5628
5760
|
// src/ui/Sheet/schema.ts
|
|
5629
|
-
var
|
|
5630
|
-
var sheetSchema =
|
|
5631
|
-
type:
|
|
5632
|
-
props:
|
|
5633
|
-
children:
|
|
5761
|
+
var import_zod54 = require("zod");
|
|
5762
|
+
var sheetSchema = import_zod54.z.object({
|
|
5763
|
+
type: import_zod54.z.literal("sheet"),
|
|
5764
|
+
props: import_zod54.z.object({}).optional(),
|
|
5765
|
+
children: import_zod54.z.array(uiNodeSchema).optional().describe("Compose with sheet-trigger and sheet-content")
|
|
5634
5766
|
}).describe("A slide-out panel overlay");
|
|
5635
|
-
var sheetTriggerSchema =
|
|
5636
|
-
type:
|
|
5637
|
-
props:
|
|
5638
|
-
children:
|
|
5767
|
+
var sheetTriggerSchema = import_zod54.z.object({
|
|
5768
|
+
type: import_zod54.z.literal("sheet-trigger"),
|
|
5769
|
+
props: import_zod54.z.object({}).optional(),
|
|
5770
|
+
children: import_zod54.z.array(uiNodeSchema).optional().describe("The element that opens the sheet")
|
|
5639
5771
|
}).describe("Trigger element that opens a sheet");
|
|
5640
|
-
var sheetContentSchema =
|
|
5641
|
-
type:
|
|
5642
|
-
props:
|
|
5643
|
-
side:
|
|
5644
|
-
showCloseButton:
|
|
5772
|
+
var sheetContentSchema = import_zod54.z.object({
|
|
5773
|
+
type: import_zod54.z.literal("sheet-content"),
|
|
5774
|
+
props: import_zod54.z.object({
|
|
5775
|
+
side: import_zod54.z.enum(["top", "right", "bottom", "left"]).optional().describe("Slide-in direction. Defaults to 'right'"),
|
|
5776
|
+
showCloseButton: import_zod54.z.boolean().optional().describe("Show close button. Defaults to true")
|
|
5645
5777
|
}).optional(),
|
|
5646
|
-
children:
|
|
5778
|
+
children: import_zod54.z.array(uiNodeSchema).optional().describe("Sheet body content")
|
|
5647
5779
|
}).describe("Content panel of a sheet");
|
|
5648
|
-
var sheetHeaderSchema =
|
|
5649
|
-
type:
|
|
5650
|
-
props:
|
|
5651
|
-
children:
|
|
5780
|
+
var sheetHeaderSchema = import_zod54.z.object({
|
|
5781
|
+
type: import_zod54.z.literal("sheet-header"),
|
|
5782
|
+
props: import_zod54.z.object({}).optional(),
|
|
5783
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5652
5784
|
}).describe("Header section of a sheet");
|
|
5653
|
-
var sheetFooterSchema =
|
|
5654
|
-
type:
|
|
5655
|
-
props:
|
|
5656
|
-
children:
|
|
5785
|
+
var sheetFooterSchema = import_zod54.z.object({
|
|
5786
|
+
type: import_zod54.z.literal("sheet-footer"),
|
|
5787
|
+
props: import_zod54.z.object({}).optional(),
|
|
5788
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5657
5789
|
}).describe("Footer section of a sheet");
|
|
5658
|
-
var sheetTitleSchema =
|
|
5659
|
-
type:
|
|
5660
|
-
props:
|
|
5661
|
-
children:
|
|
5790
|
+
var sheetTitleSchema = import_zod54.z.object({
|
|
5791
|
+
type: import_zod54.z.literal("sheet-title"),
|
|
5792
|
+
props: import_zod54.z.object({
|
|
5793
|
+
children: import_zod54.z.string().optional().describe("Title text")
|
|
5662
5794
|
}).optional(),
|
|
5663
|
-
children:
|
|
5795
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5664
5796
|
}).describe("Title inside a sheet-header");
|
|
5665
|
-
var sheetDescriptionSchema =
|
|
5666
|
-
type:
|
|
5667
|
-
props:
|
|
5668
|
-
children:
|
|
5797
|
+
var sheetDescriptionSchema = import_zod54.z.object({
|
|
5798
|
+
type: import_zod54.z.literal("sheet-description"),
|
|
5799
|
+
props: import_zod54.z.object({
|
|
5800
|
+
children: import_zod54.z.string().optional().describe("Description text")
|
|
5669
5801
|
}).optional(),
|
|
5670
|
-
children:
|
|
5802
|
+
children: import_zod54.z.array(uiNodeSchema).optional()
|
|
5671
5803
|
}).describe("Description text inside a sheet-header");
|
|
5672
5804
|
|
|
5673
5805
|
// src/ui/Dropdown/schema.ts
|
|
5674
|
-
var
|
|
5675
|
-
var dropdownMenuSchema =
|
|
5676
|
-
type:
|
|
5677
|
-
props:
|
|
5678
|
-
children:
|
|
5806
|
+
var import_zod55 = require("zod");
|
|
5807
|
+
var dropdownMenuSchema = import_zod55.z.object({
|
|
5808
|
+
type: import_zod55.z.literal("dropdown-menu"),
|
|
5809
|
+
props: import_zod55.z.object({}).optional(),
|
|
5810
|
+
children: import_zod55.z.array(uiNodeSchema).optional().describe("Compose with dropdown-menu-trigger and dropdown-menu-content")
|
|
5679
5811
|
}).describe("A dropdown menu container");
|
|
5680
|
-
var dropdownMenuTriggerSchema =
|
|
5681
|
-
type:
|
|
5682
|
-
props:
|
|
5683
|
-
children:
|
|
5812
|
+
var dropdownMenuTriggerSchema = import_zod55.z.object({
|
|
5813
|
+
type: import_zod55.z.literal("dropdown-menu-trigger"),
|
|
5814
|
+
props: import_zod55.z.object({}).optional(),
|
|
5815
|
+
children: import_zod55.z.array(uiNodeSchema).optional().describe("The element that opens the dropdown")
|
|
5684
5816
|
}).describe("Trigger element that opens a dropdown menu");
|
|
5685
|
-
var dropdownMenuContentSchema =
|
|
5686
|
-
type:
|
|
5687
|
-
props:
|
|
5688
|
-
side:
|
|
5689
|
-
align:
|
|
5817
|
+
var dropdownMenuContentSchema = import_zod55.z.object({
|
|
5818
|
+
type: import_zod55.z.literal("dropdown-menu-content"),
|
|
5819
|
+
props: import_zod55.z.object({
|
|
5820
|
+
side: import_zod55.z.enum(["top", "right", "bottom", "left"]).optional(),
|
|
5821
|
+
align: import_zod55.z.enum(["start", "center", "end"]).optional()
|
|
5690
5822
|
}).optional(),
|
|
5691
|
-
children:
|
|
5823
|
+
children: import_zod55.z.array(uiNodeSchema).optional().describe("Menu items")
|
|
5692
5824
|
}).describe("Content panel of a dropdown menu");
|
|
5693
|
-
var dropdownMenuItemSchema =
|
|
5694
|
-
type:
|
|
5695
|
-
props:
|
|
5696
|
-
children:
|
|
5697
|
-
variant:
|
|
5698
|
-
disabled:
|
|
5825
|
+
var dropdownMenuItemSchema = import_zod55.z.object({
|
|
5826
|
+
type: import_zod55.z.literal("dropdown-menu-item"),
|
|
5827
|
+
props: import_zod55.z.object({
|
|
5828
|
+
children: import_zod55.z.string().optional().describe("Menu item text"),
|
|
5829
|
+
variant: import_zod55.z.enum(["default", "destructive"]).optional().describe("Item style. Defaults to 'default'"),
|
|
5830
|
+
disabled: import_zod55.z.boolean().optional()
|
|
5699
5831
|
}).optional(),
|
|
5700
|
-
children:
|
|
5832
|
+
children: import_zod55.z.array(uiNodeSchema).optional()
|
|
5701
5833
|
}).describe("A single item inside a dropdown menu");
|
|
5702
|
-
var dropdownMenuSeparatorSchema =
|
|
5703
|
-
type:
|
|
5704
|
-
props:
|
|
5834
|
+
var dropdownMenuSeparatorSchema = import_zod55.z.object({
|
|
5835
|
+
type: import_zod55.z.literal("dropdown-menu-separator"),
|
|
5836
|
+
props: import_zod55.z.object({}).optional()
|
|
5705
5837
|
}).describe("A visual separator between dropdown menu items");
|
|
5706
|
-
var dropdownMenuLabelSchema =
|
|
5707
|
-
type:
|
|
5708
|
-
props:
|
|
5709
|
-
children:
|
|
5838
|
+
var dropdownMenuLabelSchema = import_zod55.z.object({
|
|
5839
|
+
type: import_zod55.z.literal("dropdown-menu-label"),
|
|
5840
|
+
props: import_zod55.z.object({
|
|
5841
|
+
children: import_zod55.z.string().optional().describe("Label text")
|
|
5710
5842
|
}).optional(),
|
|
5711
|
-
children:
|
|
5843
|
+
children: import_zod55.z.array(uiNodeSchema).optional()
|
|
5712
5844
|
}).describe("A non-interactive label inside a dropdown menu");
|
|
5713
5845
|
|
|
5714
5846
|
// src/ui/Popover/schema.ts
|
|
5715
|
-
var
|
|
5716
|
-
var popoverSchema =
|
|
5717
|
-
type:
|
|
5718
|
-
props:
|
|
5719
|
-
children:
|
|
5847
|
+
var import_zod56 = require("zod");
|
|
5848
|
+
var popoverSchema = import_zod56.z.object({
|
|
5849
|
+
type: import_zod56.z.literal("popover"),
|
|
5850
|
+
props: import_zod56.z.object({}).optional(),
|
|
5851
|
+
children: import_zod56.z.array(uiNodeSchema).optional().describe("Compose with popover-trigger and popover-content")
|
|
5720
5852
|
}).describe("A popover overlay container");
|
|
5721
|
-
var popoverTriggerSchema =
|
|
5722
|
-
type:
|
|
5723
|
-
props:
|
|
5724
|
-
children:
|
|
5853
|
+
var popoverTriggerSchema = import_zod56.z.object({
|
|
5854
|
+
type: import_zod56.z.literal("popover-trigger"),
|
|
5855
|
+
props: import_zod56.z.object({}).optional(),
|
|
5856
|
+
children: import_zod56.z.array(uiNodeSchema).optional().describe("The element that opens the popover")
|
|
5725
5857
|
}).describe("Trigger element that opens a popover");
|
|
5726
|
-
var popoverContentSchema =
|
|
5727
|
-
type:
|
|
5728
|
-
props:
|
|
5729
|
-
align:
|
|
5730
|
-
sideOffset:
|
|
5858
|
+
var popoverContentSchema = import_zod56.z.object({
|
|
5859
|
+
type: import_zod56.z.literal("popover-content"),
|
|
5860
|
+
props: import_zod56.z.object({
|
|
5861
|
+
align: import_zod56.z.enum(["start", "center", "end"]).optional().describe("Alignment relative to trigger. Defaults to 'center'"),
|
|
5862
|
+
sideOffset: import_zod56.z.number().optional().describe("Offset from trigger in px. Defaults to 4")
|
|
5731
5863
|
}).optional(),
|
|
5732
|
-
children:
|
|
5864
|
+
children: import_zod56.z.array(uiNodeSchema).optional().describe("Popover body content")
|
|
5733
5865
|
}).describe("Content panel of a popover");
|
|
5734
5866
|
|
|
5735
5867
|
// src/ui/ContextMenu/schema.ts
|
|
5736
|
-
var
|
|
5737
|
-
var contextMenuSchema =
|
|
5738
|
-
type:
|
|
5739
|
-
props:
|
|
5740
|
-
children:
|
|
5868
|
+
var import_zod57 = require("zod");
|
|
5869
|
+
var contextMenuSchema = import_zod57.z.object({
|
|
5870
|
+
type: import_zod57.z.literal("context-menu"),
|
|
5871
|
+
props: import_zod57.z.object({}).optional(),
|
|
5872
|
+
children: import_zod57.z.array(uiNodeSchema).optional().describe("Compose with context-menu-trigger and context-menu-content")
|
|
5741
5873
|
}).describe("A right-click context menu container");
|
|
5742
|
-
var contextMenuTriggerSchema =
|
|
5743
|
-
type:
|
|
5744
|
-
props:
|
|
5745
|
-
children:
|
|
5874
|
+
var contextMenuTriggerSchema = import_zod57.z.object({
|
|
5875
|
+
type: import_zod57.z.literal("context-menu-trigger"),
|
|
5876
|
+
props: import_zod57.z.object({}).optional(),
|
|
5877
|
+
children: import_zod57.z.array(uiNodeSchema).optional().describe("The element that triggers the context menu on right-click")
|
|
5746
5878
|
}).describe("Trigger area for a context menu");
|
|
5747
|
-
var contextMenuContentSchema =
|
|
5748
|
-
type:
|
|
5749
|
-
props:
|
|
5750
|
-
children:
|
|
5879
|
+
var contextMenuContentSchema = import_zod57.z.object({
|
|
5880
|
+
type: import_zod57.z.literal("context-menu-content"),
|
|
5881
|
+
props: import_zod57.z.object({}).optional(),
|
|
5882
|
+
children: import_zod57.z.array(uiNodeSchema).optional().describe("Menu items")
|
|
5751
5883
|
}).describe("Content panel of a context menu");
|
|
5752
|
-
var contextMenuItemSchema =
|
|
5753
|
-
type:
|
|
5754
|
-
props:
|
|
5755
|
-
children:
|
|
5756
|
-
variant:
|
|
5757
|
-
disabled:
|
|
5884
|
+
var contextMenuItemSchema = import_zod57.z.object({
|
|
5885
|
+
type: import_zod57.z.literal("context-menu-item"),
|
|
5886
|
+
props: import_zod57.z.object({
|
|
5887
|
+
children: import_zod57.z.string().optional().describe("Menu item text"),
|
|
5888
|
+
variant: import_zod57.z.enum(["default", "destructive"]).optional().describe("Item style. Defaults to 'default'"),
|
|
5889
|
+
disabled: import_zod57.z.boolean().optional()
|
|
5758
5890
|
}).optional(),
|
|
5759
|
-
children:
|
|
5891
|
+
children: import_zod57.z.array(uiNodeSchema).optional()
|
|
5760
5892
|
}).describe("A single item inside a context menu");
|
|
5761
|
-
var contextMenuSeparatorSchema =
|
|
5762
|
-
type:
|
|
5763
|
-
props:
|
|
5893
|
+
var contextMenuSeparatorSchema = import_zod57.z.object({
|
|
5894
|
+
type: import_zod57.z.literal("context-menu-separator"),
|
|
5895
|
+
props: import_zod57.z.object({}).optional()
|
|
5764
5896
|
}).describe("A visual separator between context menu items");
|
|
5765
5897
|
|
|
5766
5898
|
// src/schema.ts
|
|
@@ -5825,6 +5957,7 @@ var componentSchemas = {
|
|
|
5825
5957
|
breadcrumb: breadcrumbSchema,
|
|
5826
5958
|
tooltip: tooltipSchema,
|
|
5827
5959
|
table: tableSchema,
|
|
5960
|
+
"google-map": googleMapSchema,
|
|
5828
5961
|
calendar: calendarSchema,
|
|
5829
5962
|
"file-input": fileInputSchema,
|
|
5830
5963
|
"tool-toggle": toolToggleSchema,
|
|
@@ -5900,6 +6033,7 @@ var componentSchemas = {
|
|
|
5900
6033
|
fileUploadFieldSchema,
|
|
5901
6034
|
formSchema,
|
|
5902
6035
|
getComponentSchemas,
|
|
6036
|
+
googleMapSchema,
|
|
5903
6037
|
gradientContainerSchema,
|
|
5904
6038
|
gridSchema,
|
|
5905
6039
|
iconButtonSchema,
|