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.js
CHANGED
|
@@ -3221,6 +3221,112 @@ var component_schema_default = {
|
|
|
3221
3221
|
},
|
|
3222
3222
|
$schema: "http://json-schema.org/draft-07/schema#"
|
|
3223
3223
|
},
|
|
3224
|
+
"google-map": {
|
|
3225
|
+
$ref: "#/definitions/google-map",
|
|
3226
|
+
definitions: {
|
|
3227
|
+
"google-map": {
|
|
3228
|
+
type: "object",
|
|
3229
|
+
properties: {
|
|
3230
|
+
type: {
|
|
3231
|
+
type: "string",
|
|
3232
|
+
const: "google-map"
|
|
3233
|
+
},
|
|
3234
|
+
props: {
|
|
3235
|
+
type: "object",
|
|
3236
|
+
properties: {
|
|
3237
|
+
center: {
|
|
3238
|
+
type: "object",
|
|
3239
|
+
properties: {
|
|
3240
|
+
lat: {
|
|
3241
|
+
type: "number",
|
|
3242
|
+
description: "Center latitude"
|
|
3243
|
+
},
|
|
3244
|
+
lng: {
|
|
3245
|
+
type: "number",
|
|
3246
|
+
description: "Center longitude"
|
|
3247
|
+
}
|
|
3248
|
+
},
|
|
3249
|
+
required: [
|
|
3250
|
+
"lat",
|
|
3251
|
+
"lng"
|
|
3252
|
+
],
|
|
3253
|
+
additionalProperties: false,
|
|
3254
|
+
description: "Map center coordinates"
|
|
3255
|
+
},
|
|
3256
|
+
zoom: {
|
|
3257
|
+
type: "number",
|
|
3258
|
+
description: "Zoom level (1-20). Defaults to 12"
|
|
3259
|
+
},
|
|
3260
|
+
markers: {
|
|
3261
|
+
type: "array",
|
|
3262
|
+
items: {
|
|
3263
|
+
type: "object",
|
|
3264
|
+
properties: {
|
|
3265
|
+
lat: {
|
|
3266
|
+
type: "number",
|
|
3267
|
+
description: "Latitude"
|
|
3268
|
+
},
|
|
3269
|
+
lng: {
|
|
3270
|
+
type: "number",
|
|
3271
|
+
description: "Longitude"
|
|
3272
|
+
},
|
|
3273
|
+
title: {
|
|
3274
|
+
type: "string",
|
|
3275
|
+
description: "Marker title shown in info window"
|
|
3276
|
+
},
|
|
3277
|
+
description: {
|
|
3278
|
+
type: "string",
|
|
3279
|
+
description: "Marker description shown in info window"
|
|
3280
|
+
},
|
|
3281
|
+
color: {
|
|
3282
|
+
type: "string",
|
|
3283
|
+
description: "Marker pin color (hex or CSS color)"
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
required: [
|
|
3287
|
+
"lat",
|
|
3288
|
+
"lng"
|
|
3289
|
+
],
|
|
3290
|
+
additionalProperties: false
|
|
3291
|
+
},
|
|
3292
|
+
description: "Array of map markers with lat/lng and optional info"
|
|
3293
|
+
},
|
|
3294
|
+
height: {
|
|
3295
|
+
type: "string",
|
|
3296
|
+
description: "Map height CSS value. Defaults to '400px'"
|
|
3297
|
+
},
|
|
3298
|
+
width: {
|
|
3299
|
+
type: "string",
|
|
3300
|
+
description: "Map width CSS value. Defaults to '100%'"
|
|
3301
|
+
},
|
|
3302
|
+
gestureHandling: {
|
|
3303
|
+
type: "string",
|
|
3304
|
+
enum: [
|
|
3305
|
+
"cooperative",
|
|
3306
|
+
"greedy",
|
|
3307
|
+
"none",
|
|
3308
|
+
"auto"
|
|
3309
|
+
],
|
|
3310
|
+
description: "How the map handles touch/scroll gestures. Defaults to 'cooperative'"
|
|
3311
|
+
},
|
|
3312
|
+
disableDefaultUI: {
|
|
3313
|
+
type: "boolean",
|
|
3314
|
+
description: "Hide default map controls"
|
|
3315
|
+
}
|
|
3316
|
+
},
|
|
3317
|
+
additionalProperties: false
|
|
3318
|
+
}
|
|
3319
|
+
},
|
|
3320
|
+
required: [
|
|
3321
|
+
"type",
|
|
3322
|
+
"props"
|
|
3323
|
+
],
|
|
3324
|
+
additionalProperties: false,
|
|
3325
|
+
description: "An interactive Google Map with optional markers and info windows"
|
|
3326
|
+
}
|
|
3327
|
+
},
|
|
3328
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
3329
|
+
},
|
|
3224
3330
|
calendar: {
|
|
3225
3331
|
$ref: "#/definitions/calendar",
|
|
3226
3332
|
definitions: {
|
|
@@ -5396,75 +5502,100 @@ var tableSchema = z45.object({
|
|
|
5396
5502
|
})
|
|
5397
5503
|
}).describe("A data table with columns and rows");
|
|
5398
5504
|
|
|
5399
|
-
// src/ui/
|
|
5505
|
+
// src/ui/Map/schema.ts
|
|
5400
5506
|
import { z as z46 } from "zod";
|
|
5401
|
-
var
|
|
5402
|
-
|
|
5507
|
+
var mapMarkerSchema = z46.object({
|
|
5508
|
+
lat: z46.number().describe("Latitude"),
|
|
5509
|
+
lng: z46.number().describe("Longitude"),
|
|
5510
|
+
title: z46.string().optional().describe("Marker title shown in info window"),
|
|
5511
|
+
description: z46.string().optional().describe("Marker description shown in info window"),
|
|
5512
|
+
color: z46.string().optional().describe("Marker pin color (hex or CSS color)")
|
|
5513
|
+
});
|
|
5514
|
+
var googleMapSchema = z46.object({
|
|
5515
|
+
type: z46.literal("google-map"),
|
|
5403
5516
|
props: z46.object({
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5517
|
+
center: z46.object({
|
|
5518
|
+
lat: z46.number().describe("Center latitude"),
|
|
5519
|
+
lng: z46.number().describe("Center longitude")
|
|
5520
|
+
}).optional().describe("Map center coordinates"),
|
|
5521
|
+
zoom: z46.number().optional().describe("Zoom level (1-20). Defaults to 12"),
|
|
5522
|
+
markers: z46.array(mapMarkerSchema).optional().describe("Array of map markers with lat/lng and optional info"),
|
|
5523
|
+
height: z46.string().optional().describe("Map height CSS value. Defaults to '400px'"),
|
|
5524
|
+
width: z46.string().optional().describe("Map width CSS value. Defaults to '100%'"),
|
|
5525
|
+
gestureHandling: z46.enum(["cooperative", "greedy", "none", "auto"]).optional().describe("How the map handles touch/scroll gestures. Defaults to 'cooperative'"),
|
|
5526
|
+
disableDefaultUI: z46.boolean().optional().describe("Hide default map controls")
|
|
5527
|
+
})
|
|
5528
|
+
}).describe("An interactive Google Map with optional markers and info windows");
|
|
5412
5529
|
|
|
5413
|
-
// src/ui/
|
|
5530
|
+
// src/ui/Calendar/schema.ts
|
|
5414
5531
|
import { z as z47 } from "zod";
|
|
5415
|
-
var
|
|
5416
|
-
type: z47.literal("
|
|
5532
|
+
var calendarSchema = z47.object({
|
|
5533
|
+
type: z47.literal("calendar"),
|
|
5417
5534
|
props: z47.object({
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5535
|
+
showOutsideDays: z47.boolean().optional().describe("Show days from adjacent months. Defaults to true"),
|
|
5536
|
+
captionLayout: z47.enum(["label", "dropdown", "dropdown-months", "dropdown-years"]).optional().describe("Caption display mode. Defaults to 'label'"),
|
|
5537
|
+
buttonVariant: z47.enum(["primary", "secondary", "outline", "destructive", "ghost", "soft"]).optional().describe("Navigation button style. Defaults to 'ghost'"),
|
|
5538
|
+
mode: z47.enum(["single", "multiple", "range"]).optional().describe("Selection mode"),
|
|
5539
|
+
numberOfMonths: z47.number().optional().describe("Number of months to display"),
|
|
5423
5540
|
disabled: z47.boolean().optional()
|
|
5424
5541
|
}).optional()
|
|
5425
|
-
}).describe("A
|
|
5542
|
+
}).describe("A date calendar for picking dates or date ranges");
|
|
5426
5543
|
|
|
5427
|
-
// src/ui/
|
|
5544
|
+
// src/ui/FileInput/schema.ts
|
|
5428
5545
|
import { z as z48 } from "zod";
|
|
5429
|
-
var
|
|
5430
|
-
type: z48.literal("
|
|
5546
|
+
var fileInputSchema = z48.object({
|
|
5547
|
+
type: z48.literal("file-input"),
|
|
5431
5548
|
props: z48.object({
|
|
5432
|
-
|
|
5433
|
-
|
|
5549
|
+
label: z48.string().optional().describe("Label text above the input"),
|
|
5550
|
+
helperText: z48.string().optional().describe("Helper text below the input"),
|
|
5551
|
+
error: z48.boolean().optional().describe("Show error styling. Defaults to false"),
|
|
5552
|
+
accept: z48.string().optional().describe("Accepted file types, e.g. 'image/*,.pdf'"),
|
|
5553
|
+
multiple: z48.boolean().optional().describe("Allow multiple files. Defaults to false"),
|
|
5554
|
+
disabled: z48.boolean().optional()
|
|
5434
5555
|
}).optional()
|
|
5435
|
-
}).describe("A
|
|
5556
|
+
}).describe("A file input with choose-file button and upload progress");
|
|
5436
5557
|
|
|
5437
|
-
// src/ui/
|
|
5558
|
+
// src/ui/ToolToggle/schema.ts
|
|
5438
5559
|
import { z as z49 } from "zod";
|
|
5439
|
-
var
|
|
5440
|
-
type: z49.literal("toggle
|
|
5560
|
+
var toolToggleSchema = z49.object({
|
|
5561
|
+
type: z49.literal("tool-toggle"),
|
|
5441
5562
|
props: z49.object({
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5563
|
+
icon: z49.string().optional().describe("Icon name (resolved by the renderer)"),
|
|
5564
|
+
dropdown: z49.boolean().optional().describe("Show dropdown chevron")
|
|
5565
|
+
}).optional()
|
|
5566
|
+
}).describe("A round toggle button used in toolbars, optionally with a dropdown");
|
|
5567
|
+
|
|
5568
|
+
// src/ui/ToggleDropdownButton/schema.ts
|
|
5569
|
+
import { z as z50 } from "zod";
|
|
5570
|
+
var toggleDropdownButtonSchema = z50.object({
|
|
5571
|
+
type: z50.literal("toggle-dropdown-button"),
|
|
5572
|
+
props: z50.object({
|
|
5573
|
+
type: z50.enum(["text", "icon"]).describe("Button content type"),
|
|
5574
|
+
selected: z50.boolean().describe("Whether the button is selected"),
|
|
5575
|
+
variant: z50.enum(["primary", "secondary", "destructive"]).describe("Button color variant")
|
|
5445
5576
|
})
|
|
5446
5577
|
}).describe("A split toggle button with an attached dropdown trigger");
|
|
5447
5578
|
|
|
5448
5579
|
// src/ui/IconContainer/schema.ts
|
|
5449
|
-
import { z as
|
|
5450
|
-
var iconContainerSchema =
|
|
5451
|
-
type:
|
|
5452
|
-
props:
|
|
5453
|
-
icon:
|
|
5454
|
-
size:
|
|
5455
|
-
colorInFill:
|
|
5456
|
-
disableTheme:
|
|
5580
|
+
import { z as z51 } from "zod";
|
|
5581
|
+
var iconContainerSchema = z51.object({
|
|
5582
|
+
type: z51.literal("icon-container"),
|
|
5583
|
+
props: z51.object({
|
|
5584
|
+
icon: z51.string().optional().describe("Icon name (resolved by the renderer)"),
|
|
5585
|
+
size: z51.enum(["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "auto"]).optional().describe("Icon size. Defaults to 'sm'"),
|
|
5586
|
+
colorInFill: z51.boolean().optional().describe("Apply fill colors to SVG paths. Defaults to true"),
|
|
5587
|
+
disableTheme: z51.boolean().optional().describe("Disable theme-aware coloring. Defaults to false")
|
|
5457
5588
|
}).optional(),
|
|
5458
|
-
children:
|
|
5589
|
+
children: z51.array(uiNodeSchema).optional().describe("Icon element")
|
|
5459
5590
|
}).describe("A sized container for static icons with theme-aware coloring");
|
|
5460
5591
|
|
|
5461
5592
|
// src/ui/IconProfile/schema.ts
|
|
5462
|
-
import { z as
|
|
5463
|
-
var iconProfileSchema =
|
|
5464
|
-
type:
|
|
5465
|
-
props:
|
|
5466
|
-
icon:
|
|
5467
|
-
color:
|
|
5593
|
+
import { z as z52 } from "zod";
|
|
5594
|
+
var iconProfileSchema = z52.object({
|
|
5595
|
+
type: z52.literal("icon-profile"),
|
|
5596
|
+
props: z52.object({
|
|
5597
|
+
icon: z52.string().describe("Icon name (resolved by the renderer)"),
|
|
5598
|
+
color: z52.enum([
|
|
5468
5599
|
"red",
|
|
5469
5600
|
"orange",
|
|
5470
5601
|
"amber",
|
|
@@ -5484,18 +5615,18 @@ var iconProfileSchema = z51.object({
|
|
|
5484
5615
|
"rose",
|
|
5485
5616
|
"slate"
|
|
5486
5617
|
]).optional().describe("Background glow and icon color. Defaults to 'red'"),
|
|
5487
|
-
size:
|
|
5488
|
-
externalIcon:
|
|
5618
|
+
size: z52.enum(["26", "32", "40", "48", "56", "64"]).optional().describe("Size in pixels. Defaults to '64'"),
|
|
5619
|
+
externalIcon: z52.boolean().optional().describe("Whether the icon is external")
|
|
5489
5620
|
})
|
|
5490
5621
|
}).describe("An icon with a colored radial glow background");
|
|
5491
5622
|
|
|
5492
5623
|
// src/ui/ButtonWithTooltip/schema.ts
|
|
5493
|
-
import { z as
|
|
5494
|
-
var buttonWithTooltipSchema =
|
|
5495
|
-
type:
|
|
5496
|
-
props:
|
|
5497
|
-
content:
|
|
5498
|
-
position:
|
|
5624
|
+
import { z as z53 } from "zod";
|
|
5625
|
+
var buttonWithTooltipSchema = z53.object({
|
|
5626
|
+
type: z53.literal("button-with-tooltip"),
|
|
5627
|
+
props: z53.object({
|
|
5628
|
+
content: z53.string().describe("Tooltip text"),
|
|
5629
|
+
position: z53.enum([
|
|
5499
5630
|
"top",
|
|
5500
5631
|
"top-center",
|
|
5501
5632
|
"top-left",
|
|
@@ -5507,147 +5638,147 @@ var buttonWithTooltipSchema = z52.object({
|
|
|
5507
5638
|
"left",
|
|
5508
5639
|
"right"
|
|
5509
5640
|
]).optional().describe("Tooltip placement"),
|
|
5510
|
-
withArrow:
|
|
5641
|
+
withArrow: z53.boolean().optional().describe("Show an arrow pointer")
|
|
5511
5642
|
}),
|
|
5512
|
-
children:
|
|
5643
|
+
children: z53.array(uiNodeSchema).optional().describe("The button element to wrap with a tooltip")
|
|
5513
5644
|
}).describe("A button wrapped with a tooltip that appears on hover");
|
|
5514
5645
|
|
|
5515
5646
|
// src/ui/Sheet/schema.ts
|
|
5516
|
-
import { z as
|
|
5517
|
-
var sheetSchema =
|
|
5518
|
-
type:
|
|
5519
|
-
props:
|
|
5520
|
-
children:
|
|
5647
|
+
import { z as z54 } from "zod";
|
|
5648
|
+
var sheetSchema = z54.object({
|
|
5649
|
+
type: z54.literal("sheet"),
|
|
5650
|
+
props: z54.object({}).optional(),
|
|
5651
|
+
children: z54.array(uiNodeSchema).optional().describe("Compose with sheet-trigger and sheet-content")
|
|
5521
5652
|
}).describe("A slide-out panel overlay");
|
|
5522
|
-
var sheetTriggerSchema =
|
|
5523
|
-
type:
|
|
5524
|
-
props:
|
|
5525
|
-
children:
|
|
5653
|
+
var sheetTriggerSchema = z54.object({
|
|
5654
|
+
type: z54.literal("sheet-trigger"),
|
|
5655
|
+
props: z54.object({}).optional(),
|
|
5656
|
+
children: z54.array(uiNodeSchema).optional().describe("The element that opens the sheet")
|
|
5526
5657
|
}).describe("Trigger element that opens a sheet");
|
|
5527
|
-
var sheetContentSchema =
|
|
5528
|
-
type:
|
|
5529
|
-
props:
|
|
5530
|
-
side:
|
|
5531
|
-
showCloseButton:
|
|
5658
|
+
var sheetContentSchema = z54.object({
|
|
5659
|
+
type: z54.literal("sheet-content"),
|
|
5660
|
+
props: z54.object({
|
|
5661
|
+
side: z54.enum(["top", "right", "bottom", "left"]).optional().describe("Slide-in direction. Defaults to 'right'"),
|
|
5662
|
+
showCloseButton: z54.boolean().optional().describe("Show close button. Defaults to true")
|
|
5532
5663
|
}).optional(),
|
|
5533
|
-
children:
|
|
5664
|
+
children: z54.array(uiNodeSchema).optional().describe("Sheet body content")
|
|
5534
5665
|
}).describe("Content panel of a sheet");
|
|
5535
|
-
var sheetHeaderSchema =
|
|
5536
|
-
type:
|
|
5537
|
-
props:
|
|
5538
|
-
children:
|
|
5666
|
+
var sheetHeaderSchema = z54.object({
|
|
5667
|
+
type: z54.literal("sheet-header"),
|
|
5668
|
+
props: z54.object({}).optional(),
|
|
5669
|
+
children: z54.array(uiNodeSchema).optional()
|
|
5539
5670
|
}).describe("Header section of a sheet");
|
|
5540
|
-
var sheetFooterSchema =
|
|
5541
|
-
type:
|
|
5542
|
-
props:
|
|
5543
|
-
children:
|
|
5671
|
+
var sheetFooterSchema = z54.object({
|
|
5672
|
+
type: z54.literal("sheet-footer"),
|
|
5673
|
+
props: z54.object({}).optional(),
|
|
5674
|
+
children: z54.array(uiNodeSchema).optional()
|
|
5544
5675
|
}).describe("Footer section of a sheet");
|
|
5545
|
-
var sheetTitleSchema =
|
|
5546
|
-
type:
|
|
5547
|
-
props:
|
|
5548
|
-
children:
|
|
5676
|
+
var sheetTitleSchema = z54.object({
|
|
5677
|
+
type: z54.literal("sheet-title"),
|
|
5678
|
+
props: z54.object({
|
|
5679
|
+
children: z54.string().optional().describe("Title text")
|
|
5549
5680
|
}).optional(),
|
|
5550
|
-
children:
|
|
5681
|
+
children: z54.array(uiNodeSchema).optional()
|
|
5551
5682
|
}).describe("Title inside a sheet-header");
|
|
5552
|
-
var sheetDescriptionSchema =
|
|
5553
|
-
type:
|
|
5554
|
-
props:
|
|
5555
|
-
children:
|
|
5683
|
+
var sheetDescriptionSchema = z54.object({
|
|
5684
|
+
type: z54.literal("sheet-description"),
|
|
5685
|
+
props: z54.object({
|
|
5686
|
+
children: z54.string().optional().describe("Description text")
|
|
5556
5687
|
}).optional(),
|
|
5557
|
-
children:
|
|
5688
|
+
children: z54.array(uiNodeSchema).optional()
|
|
5558
5689
|
}).describe("Description text inside a sheet-header");
|
|
5559
5690
|
|
|
5560
5691
|
// src/ui/Dropdown/schema.ts
|
|
5561
|
-
import { z as
|
|
5562
|
-
var dropdownMenuSchema =
|
|
5563
|
-
type:
|
|
5564
|
-
props:
|
|
5565
|
-
children:
|
|
5692
|
+
import { z as z55 } from "zod";
|
|
5693
|
+
var dropdownMenuSchema = z55.object({
|
|
5694
|
+
type: z55.literal("dropdown-menu"),
|
|
5695
|
+
props: z55.object({}).optional(),
|
|
5696
|
+
children: z55.array(uiNodeSchema).optional().describe("Compose with dropdown-menu-trigger and dropdown-menu-content")
|
|
5566
5697
|
}).describe("A dropdown menu container");
|
|
5567
|
-
var dropdownMenuTriggerSchema =
|
|
5568
|
-
type:
|
|
5569
|
-
props:
|
|
5570
|
-
children:
|
|
5698
|
+
var dropdownMenuTriggerSchema = z55.object({
|
|
5699
|
+
type: z55.literal("dropdown-menu-trigger"),
|
|
5700
|
+
props: z55.object({}).optional(),
|
|
5701
|
+
children: z55.array(uiNodeSchema).optional().describe("The element that opens the dropdown")
|
|
5571
5702
|
}).describe("Trigger element that opens a dropdown menu");
|
|
5572
|
-
var dropdownMenuContentSchema =
|
|
5573
|
-
type:
|
|
5574
|
-
props:
|
|
5575
|
-
side:
|
|
5576
|
-
align:
|
|
5703
|
+
var dropdownMenuContentSchema = z55.object({
|
|
5704
|
+
type: z55.literal("dropdown-menu-content"),
|
|
5705
|
+
props: z55.object({
|
|
5706
|
+
side: z55.enum(["top", "right", "bottom", "left"]).optional(),
|
|
5707
|
+
align: z55.enum(["start", "center", "end"]).optional()
|
|
5577
5708
|
}).optional(),
|
|
5578
|
-
children:
|
|
5709
|
+
children: z55.array(uiNodeSchema).optional().describe("Menu items")
|
|
5579
5710
|
}).describe("Content panel of a dropdown menu");
|
|
5580
|
-
var dropdownMenuItemSchema =
|
|
5581
|
-
type:
|
|
5582
|
-
props:
|
|
5583
|
-
children:
|
|
5584
|
-
variant:
|
|
5585
|
-
disabled:
|
|
5711
|
+
var dropdownMenuItemSchema = z55.object({
|
|
5712
|
+
type: z55.literal("dropdown-menu-item"),
|
|
5713
|
+
props: z55.object({
|
|
5714
|
+
children: z55.string().optional().describe("Menu item text"),
|
|
5715
|
+
variant: z55.enum(["default", "destructive"]).optional().describe("Item style. Defaults to 'default'"),
|
|
5716
|
+
disabled: z55.boolean().optional()
|
|
5586
5717
|
}).optional(),
|
|
5587
|
-
children:
|
|
5718
|
+
children: z55.array(uiNodeSchema).optional()
|
|
5588
5719
|
}).describe("A single item inside a dropdown menu");
|
|
5589
|
-
var dropdownMenuSeparatorSchema =
|
|
5590
|
-
type:
|
|
5591
|
-
props:
|
|
5720
|
+
var dropdownMenuSeparatorSchema = z55.object({
|
|
5721
|
+
type: z55.literal("dropdown-menu-separator"),
|
|
5722
|
+
props: z55.object({}).optional()
|
|
5592
5723
|
}).describe("A visual separator between dropdown menu items");
|
|
5593
|
-
var dropdownMenuLabelSchema =
|
|
5594
|
-
type:
|
|
5595
|
-
props:
|
|
5596
|
-
children:
|
|
5724
|
+
var dropdownMenuLabelSchema = z55.object({
|
|
5725
|
+
type: z55.literal("dropdown-menu-label"),
|
|
5726
|
+
props: z55.object({
|
|
5727
|
+
children: z55.string().optional().describe("Label text")
|
|
5597
5728
|
}).optional(),
|
|
5598
|
-
children:
|
|
5729
|
+
children: z55.array(uiNodeSchema).optional()
|
|
5599
5730
|
}).describe("A non-interactive label inside a dropdown menu");
|
|
5600
5731
|
|
|
5601
5732
|
// src/ui/Popover/schema.ts
|
|
5602
|
-
import { z as
|
|
5603
|
-
var popoverSchema =
|
|
5604
|
-
type:
|
|
5605
|
-
props:
|
|
5606
|
-
children:
|
|
5733
|
+
import { z as z56 } from "zod";
|
|
5734
|
+
var popoverSchema = z56.object({
|
|
5735
|
+
type: z56.literal("popover"),
|
|
5736
|
+
props: z56.object({}).optional(),
|
|
5737
|
+
children: z56.array(uiNodeSchema).optional().describe("Compose with popover-trigger and popover-content")
|
|
5607
5738
|
}).describe("A popover overlay container");
|
|
5608
|
-
var popoverTriggerSchema =
|
|
5609
|
-
type:
|
|
5610
|
-
props:
|
|
5611
|
-
children:
|
|
5739
|
+
var popoverTriggerSchema = z56.object({
|
|
5740
|
+
type: z56.literal("popover-trigger"),
|
|
5741
|
+
props: z56.object({}).optional(),
|
|
5742
|
+
children: z56.array(uiNodeSchema).optional().describe("The element that opens the popover")
|
|
5612
5743
|
}).describe("Trigger element that opens a popover");
|
|
5613
|
-
var popoverContentSchema =
|
|
5614
|
-
type:
|
|
5615
|
-
props:
|
|
5616
|
-
align:
|
|
5617
|
-
sideOffset:
|
|
5744
|
+
var popoverContentSchema = z56.object({
|
|
5745
|
+
type: z56.literal("popover-content"),
|
|
5746
|
+
props: z56.object({
|
|
5747
|
+
align: z56.enum(["start", "center", "end"]).optional().describe("Alignment relative to trigger. Defaults to 'center'"),
|
|
5748
|
+
sideOffset: z56.number().optional().describe("Offset from trigger in px. Defaults to 4")
|
|
5618
5749
|
}).optional(),
|
|
5619
|
-
children:
|
|
5750
|
+
children: z56.array(uiNodeSchema).optional().describe("Popover body content")
|
|
5620
5751
|
}).describe("Content panel of a popover");
|
|
5621
5752
|
|
|
5622
5753
|
// src/ui/ContextMenu/schema.ts
|
|
5623
|
-
import { z as
|
|
5624
|
-
var contextMenuSchema =
|
|
5625
|
-
type:
|
|
5626
|
-
props:
|
|
5627
|
-
children:
|
|
5754
|
+
import { z as z57 } from "zod";
|
|
5755
|
+
var contextMenuSchema = z57.object({
|
|
5756
|
+
type: z57.literal("context-menu"),
|
|
5757
|
+
props: z57.object({}).optional(),
|
|
5758
|
+
children: z57.array(uiNodeSchema).optional().describe("Compose with context-menu-trigger and context-menu-content")
|
|
5628
5759
|
}).describe("A right-click context menu container");
|
|
5629
|
-
var contextMenuTriggerSchema =
|
|
5630
|
-
type:
|
|
5631
|
-
props:
|
|
5632
|
-
children:
|
|
5760
|
+
var contextMenuTriggerSchema = z57.object({
|
|
5761
|
+
type: z57.literal("context-menu-trigger"),
|
|
5762
|
+
props: z57.object({}).optional(),
|
|
5763
|
+
children: z57.array(uiNodeSchema).optional().describe("The element that triggers the context menu on right-click")
|
|
5633
5764
|
}).describe("Trigger area for a context menu");
|
|
5634
|
-
var contextMenuContentSchema =
|
|
5635
|
-
type:
|
|
5636
|
-
props:
|
|
5637
|
-
children:
|
|
5765
|
+
var contextMenuContentSchema = z57.object({
|
|
5766
|
+
type: z57.literal("context-menu-content"),
|
|
5767
|
+
props: z57.object({}).optional(),
|
|
5768
|
+
children: z57.array(uiNodeSchema).optional().describe("Menu items")
|
|
5638
5769
|
}).describe("Content panel of a context menu");
|
|
5639
|
-
var contextMenuItemSchema =
|
|
5640
|
-
type:
|
|
5641
|
-
props:
|
|
5642
|
-
children:
|
|
5643
|
-
variant:
|
|
5644
|
-
disabled:
|
|
5770
|
+
var contextMenuItemSchema = z57.object({
|
|
5771
|
+
type: z57.literal("context-menu-item"),
|
|
5772
|
+
props: z57.object({
|
|
5773
|
+
children: z57.string().optional().describe("Menu item text"),
|
|
5774
|
+
variant: z57.enum(["default", "destructive"]).optional().describe("Item style. Defaults to 'default'"),
|
|
5775
|
+
disabled: z57.boolean().optional()
|
|
5645
5776
|
}).optional(),
|
|
5646
|
-
children:
|
|
5777
|
+
children: z57.array(uiNodeSchema).optional()
|
|
5647
5778
|
}).describe("A single item inside a context menu");
|
|
5648
|
-
var contextMenuSeparatorSchema =
|
|
5649
|
-
type:
|
|
5650
|
-
props:
|
|
5779
|
+
var contextMenuSeparatorSchema = z57.object({
|
|
5780
|
+
type: z57.literal("context-menu-separator"),
|
|
5781
|
+
props: z57.object({}).optional()
|
|
5651
5782
|
}).describe("A visual separator between context menu items");
|
|
5652
5783
|
|
|
5653
5784
|
// src/schema.ts
|
|
@@ -5712,6 +5843,7 @@ var componentSchemas = {
|
|
|
5712
5843
|
breadcrumb: breadcrumbSchema,
|
|
5713
5844
|
tooltip: tooltipSchema,
|
|
5714
5845
|
table: tableSchema,
|
|
5846
|
+
"google-map": googleMapSchema,
|
|
5715
5847
|
calendar: calendarSchema,
|
|
5716
5848
|
"file-input": fileInputSchema,
|
|
5717
5849
|
"tool-toggle": toolToggleSchema,
|
|
@@ -5786,6 +5918,7 @@ export {
|
|
|
5786
5918
|
fileUploadFieldSchema,
|
|
5787
5919
|
formSchema,
|
|
5788
5920
|
getComponentSchemas,
|
|
5921
|
+
googleMapSchema,
|
|
5789
5922
|
gradientContainerSchema,
|
|
5790
5923
|
gridSchema,
|
|
5791
5924
|
iconButtonSchema,
|