@frontmcp/ui 0.6.1 → 0.6.2
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/bridge/core/bridge-factory.d.ts +1 -0
- package/bridge/core/bridge-factory.d.ts.map +1 -1
- package/bridge/index.d.ts +1 -1
- package/bridge/index.d.ts.map +1 -1
- package/bridge/index.js +39 -881
- package/bundler/browser-components.d.ts +42 -0
- package/bundler/browser-components.d.ts.map +1 -0
- package/bundler/bundler.d.ts +78 -4
- package/bundler/bundler.d.ts.map +1 -1
- package/bundler/index.d.ts +8 -8
- package/bundler/index.d.ts.map +1 -1
- package/bundler/index.js +1315 -1854
- package/bundler/types.d.ts +188 -7
- package/bundler/types.d.ts.map +1 -1
- package/esm/bridge/{index.js → index.mjs} +40 -877
- package/esm/bundler/{index.js → index.mjs} +1391 -1895
- package/esm/{index.js → index.mjs} +215 -3091
- package/esm/layouts/{index.js → index.mjs} +3 -3
- package/esm/package.json +9 -8
- package/esm/react/index.mjs +1183 -0
- package/esm/renderers/index.mjs +611 -0
- package/esm/universal/{index.js → index.mjs} +266 -70
- package/index.d.ts +1 -4
- package/index.d.ts.map +1 -1
- package/index.js +208 -3113
- package/layouts/base.d.ts.map +1 -1
- package/layouts/index.js +3 -3
- package/layouts/presets.d.ts.map +1 -1
- package/package.json +9 -8
- package/react/Badge.d.ts.map +1 -1
- package/react/hooks/context.d.ts.map +1 -1
- package/react/index.d.ts +0 -1
- package/react/index.d.ts.map +1 -1
- package/react/index.js +57 -2001
- package/react/types.d.ts.map +1 -1
- package/renderers/index.d.ts +9 -4
- package/renderers/index.d.ts.map +1 -1
- package/renderers/index.js +328 -88
- package/renderers/mdx.renderer.d.ts +99 -0
- package/renderers/mdx.renderer.d.ts.map +1 -0
- package/renderers/react.renderer.d.ts +22 -13
- package/renderers/react.renderer.d.ts.map +1 -1
- package/renderers/transpiler.d.ts +49 -0
- package/renderers/transpiler.d.ts.map +1 -0
- package/universal/cached-runtime.d.ts +25 -1
- package/universal/cached-runtime.d.ts.map +1 -1
- package/universal/index.js +266 -70
- package/universal/runtime-builder.d.ts.map +1 -1
- package/universal/types.d.ts.map +1 -1
- package/web-components/elements/fmcp-input.d.ts.map +1 -1
- package/web-components/elements/fmcp-select.d.ts.map +1 -1
- package/web-components/index.d.ts +0 -1
- package/web-components/index.d.ts.map +1 -1
- package/bundler/cache.d.ts +0 -173
- package/bundler/cache.d.ts.map +0 -1
- package/bundler/file-cache/component-builder.d.ts +0 -167
- package/bundler/file-cache/component-builder.d.ts.map +0 -1
- package/bundler/file-cache/hash-calculator.d.ts +0 -155
- package/bundler/file-cache/hash-calculator.d.ts.map +0 -1
- package/bundler/file-cache/index.d.ts +0 -12
- package/bundler/file-cache/index.d.ts.map +0 -1
- package/bundler/file-cache/storage/filesystem.d.ts +0 -149
- package/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
- package/bundler/file-cache/storage/index.d.ts +0 -11
- package/bundler/file-cache/storage/index.d.ts.map +0 -1
- package/bundler/file-cache/storage/interface.d.ts +0 -152
- package/bundler/file-cache/storage/interface.d.ts.map +0 -1
- package/bundler/file-cache/storage/redis.d.ts +0 -139
- package/bundler/file-cache/storage/redis.d.ts.map +0 -1
- package/bundler/sandbox/enclave-adapter.d.ts +0 -121
- package/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
- package/bundler/sandbox/executor.d.ts +0 -14
- package/bundler/sandbox/executor.d.ts.map +0 -1
- package/bundler/sandbox/policy.d.ts +0 -62
- package/bundler/sandbox/policy.d.ts.map +0 -1
- package/esm/bridge/adapters/base-adapter.d.ts +0 -104
- package/esm/bridge/adapters/base-adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/claude.adapter.d.ts +0 -67
- package/esm/bridge/adapters/claude.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/ext-apps.adapter.d.ts +0 -143
- package/esm/bridge/adapters/ext-apps.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/gemini.adapter.d.ts +0 -64
- package/esm/bridge/adapters/gemini.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/generic.adapter.d.ts +0 -56
- package/esm/bridge/adapters/generic.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/index.d.ts +0 -26
- package/esm/bridge/adapters/index.d.ts.map +0 -1
- package/esm/bridge/adapters/openai.adapter.d.ts +0 -65
- package/esm/bridge/adapters/openai.adapter.d.ts.map +0 -1
- package/esm/bridge/core/adapter-registry.d.ts +0 -122
- package/esm/bridge/core/adapter-registry.d.ts.map +0 -1
- package/esm/bridge/core/bridge-factory.d.ts +0 -199
- package/esm/bridge/core/bridge-factory.d.ts.map +0 -1
- package/esm/bridge/core/index.d.ts +0 -10
- package/esm/bridge/core/index.d.ts.map +0 -1
- package/esm/bridge/index.d.ts +0 -62
- package/esm/bridge/index.d.ts.map +0 -1
- package/esm/bridge/runtime/iife-generator.d.ts +0 -62
- package/esm/bridge/runtime/iife-generator.d.ts.map +0 -1
- package/esm/bridge/runtime/index.d.ts +0 -10
- package/esm/bridge/runtime/index.d.ts.map +0 -1
- package/esm/bridge/types.d.ts +0 -386
- package/esm/bridge/types.d.ts.map +0 -1
- package/esm/bundler/bundler.d.ts +0 -208
- package/esm/bundler/bundler.d.ts.map +0 -1
- package/esm/bundler/cache.d.ts +0 -173
- package/esm/bundler/cache.d.ts.map +0 -1
- package/esm/bundler/file-cache/component-builder.d.ts +0 -167
- package/esm/bundler/file-cache/component-builder.d.ts.map +0 -1
- package/esm/bundler/file-cache/hash-calculator.d.ts +0 -155
- package/esm/bundler/file-cache/hash-calculator.d.ts.map +0 -1
- package/esm/bundler/file-cache/index.d.ts +0 -12
- package/esm/bundler/file-cache/index.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/filesystem.d.ts +0 -149
- package/esm/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/index.d.ts +0 -11
- package/esm/bundler/file-cache/storage/index.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/interface.d.ts +0 -152
- package/esm/bundler/file-cache/storage/interface.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/redis.d.ts +0 -139
- package/esm/bundler/file-cache/storage/redis.d.ts.map +0 -1
- package/esm/bundler/index.d.ts +0 -43
- package/esm/bundler/index.d.ts.map +0 -1
- package/esm/bundler/sandbox/enclave-adapter.d.ts +0 -121
- package/esm/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
- package/esm/bundler/sandbox/executor.d.ts +0 -14
- package/esm/bundler/sandbox/executor.d.ts.map +0 -1
- package/esm/bundler/sandbox/policy.d.ts +0 -62
- package/esm/bundler/sandbox/policy.d.ts.map +0 -1
- package/esm/bundler/types.d.ts +0 -702
- package/esm/bundler/types.d.ts.map +0 -1
- package/esm/components/alert.d.ts +0 -66
- package/esm/components/alert.d.ts.map +0 -1
- package/esm/components/alert.schema.d.ts +0 -98
- package/esm/components/alert.schema.d.ts.map +0 -1
- package/esm/components/avatar.d.ts +0 -77
- package/esm/components/avatar.d.ts.map +0 -1
- package/esm/components/avatar.schema.d.ts +0 -170
- package/esm/components/avatar.schema.d.ts.map +0 -1
- package/esm/components/badge.d.ts +0 -64
- package/esm/components/badge.d.ts.map +0 -1
- package/esm/components/badge.schema.d.ts +0 -91
- package/esm/components/badge.schema.d.ts.map +0 -1
- package/esm/components/button.d.ts +0 -100
- package/esm/components/button.d.ts.map +0 -1
- package/esm/components/button.schema.d.ts +0 -120
- package/esm/components/button.schema.d.ts.map +0 -1
- package/esm/components/card.d.ts +0 -53
- package/esm/components/card.d.ts.map +0 -1
- package/esm/components/card.schema.d.ts +0 -93
- package/esm/components/card.schema.d.ts.map +0 -1
- package/esm/components/form.d.ts +0 -212
- package/esm/components/form.d.ts.map +0 -1
- package/esm/components/form.schema.d.ts +0 -365
- package/esm/components/form.schema.d.ts.map +0 -1
- package/esm/components/index.d.ts +0 -29
- package/esm/components/index.d.ts.map +0 -1
- package/esm/components/list.d.ts +0 -121
- package/esm/components/list.d.ts.map +0 -1
- package/esm/components/list.schema.d.ts +0 -129
- package/esm/components/list.schema.d.ts.map +0 -1
- package/esm/components/modal.d.ts +0 -100
- package/esm/components/modal.d.ts.map +0 -1
- package/esm/components/modal.schema.d.ts +0 -151
- package/esm/components/modal.schema.d.ts.map +0 -1
- package/esm/components/table.d.ts +0 -91
- package/esm/components/table.d.ts.map +0 -1
- package/esm/components/table.schema.d.ts +0 -123
- package/esm/components/table.schema.d.ts.map +0 -1
- package/esm/index.d.ts +0 -40
- package/esm/index.d.ts.map +0 -1
- package/esm/layouts/base.d.ts +0 -86
- package/esm/layouts/base.d.ts.map +0 -1
- package/esm/layouts/index.d.ts +0 -8
- package/esm/layouts/index.d.ts.map +0 -1
- package/esm/layouts/presets.d.ts +0 -134
- package/esm/layouts/presets.d.ts.map +0 -1
- package/esm/pages/consent.d.ts +0 -117
- package/esm/pages/consent.d.ts.map +0 -1
- package/esm/pages/error.d.ts +0 -101
- package/esm/pages/error.d.ts.map +0 -1
- package/esm/pages/index.d.ts +0 -9
- package/esm/pages/index.d.ts.map +0 -1
- package/esm/pages/index.js +0 -1036
- package/esm/react/Alert.d.ts +0 -101
- package/esm/react/Alert.d.ts.map +0 -1
- package/esm/react/Badge.d.ts +0 -100
- package/esm/react/Badge.d.ts.map +0 -1
- package/esm/react/Button.d.ts +0 -108
- package/esm/react/Button.d.ts.map +0 -1
- package/esm/react/Card.d.ts +0 -103
- package/esm/react/Card.d.ts.map +0 -1
- package/esm/react/hooks/context.d.ts +0 -179
- package/esm/react/hooks/context.d.ts.map +0 -1
- package/esm/react/hooks/index.d.ts +0 -42
- package/esm/react/hooks/index.d.ts.map +0 -1
- package/esm/react/hooks/tools.d.ts +0 -284
- package/esm/react/hooks/tools.d.ts.map +0 -1
- package/esm/react/index.d.ts +0 -80
- package/esm/react/index.d.ts.map +0 -1
- package/esm/react/index.js +0 -3124
- package/esm/react/types.d.ts +0 -105
- package/esm/react/types.d.ts.map +0 -1
- package/esm/react/utils.d.ts +0 -43
- package/esm/react/utils.d.ts.map +0 -1
- package/esm/render/index.d.ts +0 -8
- package/esm/render/index.d.ts.map +0 -1
- package/esm/render/prerender.d.ts +0 -57
- package/esm/render/prerender.d.ts.map +0 -1
- package/esm/renderers/index.d.ts +0 -21
- package/esm/renderers/index.d.ts.map +0 -1
- package/esm/renderers/index.js +0 -381
- package/esm/renderers/react.adapter.d.ts +0 -70
- package/esm/renderers/react.adapter.d.ts.map +0 -1
- package/esm/renderers/react.renderer.d.ts +0 -96
- package/esm/renderers/react.renderer.d.ts.map +0 -1
- package/esm/universal/UniversalApp.d.ts +0 -108
- package/esm/universal/UniversalApp.d.ts.map +0 -1
- package/esm/universal/cached-runtime.d.ts +0 -115
- package/esm/universal/cached-runtime.d.ts.map +0 -1
- package/esm/universal/context.d.ts +0 -122
- package/esm/universal/context.d.ts.map +0 -1
- package/esm/universal/index.d.ts +0 -57
- package/esm/universal/index.d.ts.map +0 -1
- package/esm/universal/renderers/html.renderer.d.ts +0 -37
- package/esm/universal/renderers/html.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/index.d.ts +0 -112
- package/esm/universal/renderers/index.d.ts.map +0 -1
- package/esm/universal/renderers/markdown.renderer.d.ts +0 -33
- package/esm/universal/renderers/markdown.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/mdx.renderer.d.ts +0 -38
- package/esm/universal/renderers/mdx.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/react.renderer.d.ts +0 -46
- package/esm/universal/renderers/react.renderer.d.ts.map +0 -1
- package/esm/universal/runtime-builder.d.ts +0 -33
- package/esm/universal/runtime-builder.d.ts.map +0 -1
- package/esm/universal/store.d.ts +0 -135
- package/esm/universal/store.d.ts.map +0 -1
- package/esm/universal/types.d.ts +0 -199
- package/esm/universal/types.d.ts.map +0 -1
- package/esm/web-components/core/attribute-parser.d.ts +0 -82
- package/esm/web-components/core/attribute-parser.d.ts.map +0 -1
- package/esm/web-components/core/base-element.d.ts +0 -197
- package/esm/web-components/core/base-element.d.ts.map +0 -1
- package/esm/web-components/core/index.d.ts +0 -9
- package/esm/web-components/core/index.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-alert.d.ts +0 -46
- package/esm/web-components/elements/fmcp-alert.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-badge.d.ts +0 -47
- package/esm/web-components/elements/fmcp-badge.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-button.d.ts +0 -117
- package/esm/web-components/elements/fmcp-button.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-card.d.ts +0 -53
- package/esm/web-components/elements/fmcp-card.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-input.d.ts +0 -96
- package/esm/web-components/elements/fmcp-input.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-select.d.ts +0 -100
- package/esm/web-components/elements/fmcp-select.d.ts.map +0 -1
- package/esm/web-components/elements/index.d.ts +0 -13
- package/esm/web-components/elements/index.d.ts.map +0 -1
- package/esm/web-components/index.d.ts +0 -50
- package/esm/web-components/index.d.ts.map +0 -1
- package/esm/web-components/register.d.ts +0 -57
- package/esm/web-components/register.d.ts.map +0 -1
- package/esm/web-components/types.d.ts +0 -122
- package/esm/web-components/types.d.ts.map +0 -1
- package/esm/widgets/index.d.ts +0 -8
- package/esm/widgets/index.d.ts.map +0 -1
- package/esm/widgets/index.js +0 -883
- package/esm/widgets/progress.d.ts +0 -133
- package/esm/widgets/progress.d.ts.map +0 -1
- package/esm/widgets/resource.d.ts +0 -163
- package/esm/widgets/resource.d.ts.map +0 -1
- package/pages/consent.d.ts +0 -117
- package/pages/consent.d.ts.map +0 -1
- package/pages/error.d.ts +0 -101
- package/pages/error.d.ts.map +0 -1
- package/pages/index.d.ts +0 -9
- package/pages/index.d.ts.map +0 -1
- package/pages/index.js +0 -1065
- package/react/utils.d.ts +0 -43
- package/react/utils.d.ts.map +0 -1
- package/widgets/index.d.ts +0 -8
- package/widgets/index.d.ts.map +0 -1
- package/widgets/index.js +0 -910
- package/widgets/progress.d.ts +0 -133
- package/widgets/progress.d.ts.map +0 -1
- package/widgets/resource.d.ts +0 -163
- package/widgets/resource.d.ts.map +0 -1
- /package/esm/components/{index.js → index.mjs} +0 -0
- /package/esm/render/{index.js → index.mjs} +0 -0
- /package/esm/web-components/{index.js → index.mjs} +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Modal Component
|
|
3
|
-
*
|
|
4
|
-
* Dialog and modal components.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Modal size options
|
|
8
|
-
*/
|
|
9
|
-
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
10
|
-
/**
|
|
11
|
-
* Modal component options
|
|
12
|
-
*/
|
|
13
|
-
export interface ModalOptions {
|
|
14
|
-
/** Modal ID */
|
|
15
|
-
id: string;
|
|
16
|
-
/** Modal title */
|
|
17
|
-
title?: string;
|
|
18
|
-
/** Modal size */
|
|
19
|
-
size?: ModalSize;
|
|
20
|
-
/** Show close button */
|
|
21
|
-
showClose?: boolean;
|
|
22
|
-
/** Close on backdrop click */
|
|
23
|
-
closeOnBackdrop?: boolean;
|
|
24
|
-
/** Close on escape key */
|
|
25
|
-
closeOnEscape?: boolean;
|
|
26
|
-
/** Footer content */
|
|
27
|
-
footer?: string;
|
|
28
|
-
/** Additional CSS classes for modal */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** Initially visible */
|
|
31
|
-
open?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Build a modal component
|
|
35
|
-
*/
|
|
36
|
-
export declare function modal(content: string, options: ModalOptions): string;
|
|
37
|
-
/**
|
|
38
|
-
* Build a modal trigger button/element
|
|
39
|
-
*/
|
|
40
|
-
export declare function modalTrigger(triggerContent: string, modalId: string, options?: {
|
|
41
|
-
className?: string;
|
|
42
|
-
tag?: 'button' | 'a' | 'span';
|
|
43
|
-
}): string;
|
|
44
|
-
/**
|
|
45
|
-
* Confirmation modal options
|
|
46
|
-
*/
|
|
47
|
-
export interface ConfirmModalOptions {
|
|
48
|
-
/** Modal ID */
|
|
49
|
-
id: string;
|
|
50
|
-
/** Dialog title */
|
|
51
|
-
title?: string;
|
|
52
|
-
/** Confirmation message */
|
|
53
|
-
message: string;
|
|
54
|
-
/** Confirm button text */
|
|
55
|
-
confirmText?: string;
|
|
56
|
-
/** Cancel button text */
|
|
57
|
-
cancelText?: string;
|
|
58
|
-
/** Confirm button variant */
|
|
59
|
-
variant?: 'primary' | 'danger' | 'warning';
|
|
60
|
-
/** Icon */
|
|
61
|
-
icon?: string;
|
|
62
|
-
/** Confirm action URL */
|
|
63
|
-
confirmHref?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Build a confirmation modal
|
|
67
|
-
*/
|
|
68
|
-
export declare function confirmModal(options: ConfirmModalOptions): string;
|
|
69
|
-
/**
|
|
70
|
-
* Drawer position options
|
|
71
|
-
*/
|
|
72
|
-
export type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
73
|
-
/**
|
|
74
|
-
* Drawer options
|
|
75
|
-
*/
|
|
76
|
-
export interface DrawerOptions {
|
|
77
|
-
/** Drawer ID */
|
|
78
|
-
id: string;
|
|
79
|
-
/** Drawer title */
|
|
80
|
-
title?: string;
|
|
81
|
-
/** Drawer position */
|
|
82
|
-
position?: DrawerPosition;
|
|
83
|
-
/** Drawer size (width for left/right, height for top/bottom) */
|
|
84
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
85
|
-
/** Show close button */
|
|
86
|
-
showClose?: boolean;
|
|
87
|
-
/** Close on backdrop click */
|
|
88
|
-
closeOnBackdrop?: boolean;
|
|
89
|
-
/** Footer content */
|
|
90
|
-
footer?: string;
|
|
91
|
-
/** Additional CSS classes */
|
|
92
|
-
className?: string;
|
|
93
|
-
/** Initially visible */
|
|
94
|
-
open?: boolean;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Build a drawer component
|
|
98
|
-
*/
|
|
99
|
-
export declare function drawer(content: string, options: DrawerOptions): string;
|
|
100
|
-
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA+CH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,eAAe;IACf,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,0BAA0B;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAoBD;;GAEG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAoFpE;AAMD;;GAEG;AACH,wBAAgB,YAAY,CAC1B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAA;CAAO,GAClE,MAAM,CAaR;AAMD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,eAAe;IACf,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,KAAK,CAAC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* @description Zod schemas for Modal, ConfirmModal, and Drawer component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for modal options including sizes,
|
|
6
|
-
* close behavior, confirm dialogs, and drawers with positioning.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { ModalOptionsSchema, DrawerOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const modalResult = ModalOptionsSchema.safeParse({
|
|
13
|
-
* id: 'my-modal',
|
|
14
|
-
* title: 'Dialog Title',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @module @frontmcp/ui/components/modal.schema
|
|
19
|
-
*/
|
|
20
|
-
import { z } from 'zod';
|
|
21
|
-
/**
|
|
22
|
-
* Modal size enum schema
|
|
23
|
-
*/
|
|
24
|
-
export declare const ModalSizeSchema: z.ZodEnum<{
|
|
25
|
-
sm: "sm";
|
|
26
|
-
md: "md";
|
|
27
|
-
lg: "lg";
|
|
28
|
-
xl: "xl";
|
|
29
|
-
full: "full";
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Modal size type
|
|
33
|
-
*/
|
|
34
|
-
export type ModalSize = z.infer<typeof ModalSizeSchema>;
|
|
35
|
-
/**
|
|
36
|
-
* Complete modal options schema
|
|
37
|
-
*/
|
|
38
|
-
export declare const ModalOptionsSchema: z.ZodObject<{
|
|
39
|
-
id: z.ZodString;
|
|
40
|
-
title: z.ZodOptional<z.ZodString>;
|
|
41
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
sm: "sm";
|
|
43
|
-
md: "md";
|
|
44
|
-
lg: "lg";
|
|
45
|
-
xl: "xl";
|
|
46
|
-
full: "full";
|
|
47
|
-
}>>;
|
|
48
|
-
showClose: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
closeOnBackdrop: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
closeOnEscape: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
52
|
-
className: z.ZodOptional<z.ZodString>;
|
|
53
|
-
open: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
}, z.core.$strict>;
|
|
55
|
-
/**
|
|
56
|
-
* Modal options type (derived from schema)
|
|
57
|
-
*/
|
|
58
|
-
export type ModalOptions = z.infer<typeof ModalOptionsSchema>;
|
|
59
|
-
/**
|
|
60
|
-
* Confirm modal variant schema
|
|
61
|
-
*/
|
|
62
|
-
export declare const ConfirmModalVariantSchema: z.ZodEnum<{
|
|
63
|
-
danger: "danger";
|
|
64
|
-
warning: "warning";
|
|
65
|
-
info: "info";
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
* Confirm modal variant type
|
|
69
|
-
*/
|
|
70
|
-
export type ConfirmModalVariant = z.infer<typeof ConfirmModalVariantSchema>;
|
|
71
|
-
/**
|
|
72
|
-
* Confirm modal options schema
|
|
73
|
-
*/
|
|
74
|
-
export declare const ConfirmModalOptionsSchema: z.ZodObject<{
|
|
75
|
-
id: z.ZodString;
|
|
76
|
-
message: z.ZodString;
|
|
77
|
-
title: z.ZodOptional<z.ZodString>;
|
|
78
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
danger: "danger";
|
|
80
|
-
warning: "warning";
|
|
81
|
-
info: "info";
|
|
82
|
-
}>>;
|
|
83
|
-
confirmText: z.ZodOptional<z.ZodString>;
|
|
84
|
-
cancelText: z.ZodOptional<z.ZodString>;
|
|
85
|
-
open: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
-
confirmHref: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strict>;
|
|
88
|
-
/**
|
|
89
|
-
* Confirm modal options type
|
|
90
|
-
*/
|
|
91
|
-
export type ConfirmModalOptions = z.infer<typeof ConfirmModalOptionsSchema>;
|
|
92
|
-
/**
|
|
93
|
-
* Drawer position enum schema
|
|
94
|
-
*/
|
|
95
|
-
export declare const DrawerPositionSchema: z.ZodEnum<{
|
|
96
|
-
left: "left";
|
|
97
|
-
right: "right";
|
|
98
|
-
top: "top";
|
|
99
|
-
bottom: "bottom";
|
|
100
|
-
}>;
|
|
101
|
-
/**
|
|
102
|
-
* Drawer position type
|
|
103
|
-
*/
|
|
104
|
-
export type DrawerPosition = z.infer<typeof DrawerPositionSchema>;
|
|
105
|
-
/**
|
|
106
|
-
* Drawer options schema
|
|
107
|
-
*/
|
|
108
|
-
export declare const DrawerOptionsSchema: z.ZodObject<{
|
|
109
|
-
id: z.ZodString;
|
|
110
|
-
position: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
left: "left";
|
|
112
|
-
right: "right";
|
|
113
|
-
top: "top";
|
|
114
|
-
bottom: "bottom";
|
|
115
|
-
}>>;
|
|
116
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
117
|
-
sm: "sm";
|
|
118
|
-
md: "md";
|
|
119
|
-
lg: "lg";
|
|
120
|
-
xl: "xl";
|
|
121
|
-
full: "full";
|
|
122
|
-
}>>;
|
|
123
|
-
title: z.ZodOptional<z.ZodString>;
|
|
124
|
-
showClose: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
126
|
-
className: z.ZodOptional<z.ZodString>;
|
|
127
|
-
open: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
}, z.core.$strict>;
|
|
129
|
-
/**
|
|
130
|
-
* Drawer options type
|
|
131
|
-
*/
|
|
132
|
-
export type DrawerOptions = z.infer<typeof DrawerOptionsSchema>;
|
|
133
|
-
/**
|
|
134
|
-
* Modal trigger options schema
|
|
135
|
-
*/
|
|
136
|
-
export declare const ModalTriggerOptionsSchema: z.ZodObject<{
|
|
137
|
-
targetId: z.ZodString;
|
|
138
|
-
text: z.ZodOptional<z.ZodString>;
|
|
139
|
-
tag: z.ZodOptional<z.ZodEnum<{
|
|
140
|
-
button: "button";
|
|
141
|
-
a: "a";
|
|
142
|
-
span: "span";
|
|
143
|
-
div: "div";
|
|
144
|
-
}>>;
|
|
145
|
-
className: z.ZodOptional<z.ZodString>;
|
|
146
|
-
}, z.core.$strict>;
|
|
147
|
-
/**
|
|
148
|
-
* Modal trigger options type
|
|
149
|
-
*/
|
|
150
|
-
export type ModalTriggerOptions = z.infer<typeof ModalTriggerOptionsSchema>;
|
|
151
|
-
//# sourceMappingURL=modal.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.schema.d.ts","sourceRoot":"","sources":["../../../src/components/modal.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;EAA2C,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;kBAqBpB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;EAAwC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;kBAmB3B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM5E;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;EAA6C,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;kBAmBrB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMhE;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;kBAW3B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Table Component
|
|
3
|
-
*
|
|
4
|
-
* Data tables with sorting and selection support.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Table column definition
|
|
8
|
-
*/
|
|
9
|
-
export interface TableColumn<T = Record<string, unknown>> {
|
|
10
|
-
/** Column key (property name) */
|
|
11
|
-
key: string;
|
|
12
|
-
/** Column header text */
|
|
13
|
-
header: string;
|
|
14
|
-
/** Column width */
|
|
15
|
-
width?: string;
|
|
16
|
-
/** Text alignment */
|
|
17
|
-
align?: 'left' | 'center' | 'right';
|
|
18
|
-
/** Sortable column */
|
|
19
|
-
sortable?: boolean;
|
|
20
|
-
/** Current sort direction */
|
|
21
|
-
sortDirection?: 'asc' | 'desc' | null;
|
|
22
|
-
/** Custom cell renderer */
|
|
23
|
-
render?: (value: unknown, row: T, index: number) => string;
|
|
24
|
-
/** Additional header CSS classes */
|
|
25
|
-
headerClass?: string;
|
|
26
|
-
/** Additional cell CSS classes */
|
|
27
|
-
cellClass?: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Table options
|
|
31
|
-
*/
|
|
32
|
-
export interface TableOptions<T = Record<string, unknown>> {
|
|
33
|
-
/** Column definitions */
|
|
34
|
-
columns: TableColumn<T>[];
|
|
35
|
-
/** Table ID */
|
|
36
|
-
id?: string;
|
|
37
|
-
/** Show row selection checkboxes */
|
|
38
|
-
selectable?: boolean;
|
|
39
|
-
/** Row hover effect */
|
|
40
|
-
hoverable?: boolean;
|
|
41
|
-
/** Striped rows */
|
|
42
|
-
striped?: boolean;
|
|
43
|
-
/** Bordered cells */
|
|
44
|
-
bordered?: boolean;
|
|
45
|
-
/** Compact size */
|
|
46
|
-
compact?: boolean;
|
|
47
|
-
/** Fixed header (sticky) */
|
|
48
|
-
stickyHeader?: boolean;
|
|
49
|
-
/** Additional CSS classes */
|
|
50
|
-
className?: string;
|
|
51
|
-
/** Empty state message */
|
|
52
|
-
emptyMessage?: string;
|
|
53
|
-
/** Empty state HTML */
|
|
54
|
-
emptyContent?: string;
|
|
55
|
-
/** Loading state */
|
|
56
|
-
loading?: boolean;
|
|
57
|
-
/** Row key property for selection */
|
|
58
|
-
rowKey?: keyof T;
|
|
59
|
-
/** Row click handler (URL template with {key}) */
|
|
60
|
-
onRowClick?: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Build a data table
|
|
64
|
-
*/
|
|
65
|
-
export declare function table<T extends Record<string, unknown>>(data: T[], options: TableOptions<T>): string;
|
|
66
|
-
/**
|
|
67
|
-
* Pagination options
|
|
68
|
-
*/
|
|
69
|
-
export interface PaginationOptions {
|
|
70
|
-
/** Current page (1-indexed) */
|
|
71
|
-
page: number;
|
|
72
|
-
/** Total pages */
|
|
73
|
-
totalPages: number;
|
|
74
|
-
/** Total items */
|
|
75
|
-
totalItems?: number;
|
|
76
|
-
/** Items per page */
|
|
77
|
-
pageSize?: number;
|
|
78
|
-
/** Show page size selector */
|
|
79
|
-
showPageSize?: boolean;
|
|
80
|
-
/** Page size options */
|
|
81
|
-
pageSizeOptions?: number[];
|
|
82
|
-
/** Additional CSS classes */
|
|
83
|
-
className?: string;
|
|
84
|
-
/** Base URL for page links */
|
|
85
|
-
baseUrl?: string;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Build pagination component
|
|
89
|
-
*/
|
|
90
|
-
export declare function pagination(options: PaginationOptions): string;
|
|
91
|
-
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACtD,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IACtC,2BAA2B;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3D,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvD,yBAAyB;IACzB,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,eAAe;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qBAAqB;IACrB,QAAQ,CAAC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Zod schemas for Table and Pagination component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for table options including columns,
|
|
6
|
-
* sorting, selection, and pagination.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { TableColumnSchema, TableOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const columnResult = TableColumnSchema.safeParse({
|
|
13
|
-
* key: 'name',
|
|
14
|
-
* header: 'Name',
|
|
15
|
-
* sortable: true,
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @module @frontmcp/ui/components/table.schema
|
|
20
|
-
*/
|
|
21
|
-
import { z } from 'zod';
|
|
22
|
-
/**
|
|
23
|
-
* Table column alignment schema
|
|
24
|
-
*/
|
|
25
|
-
export declare const TableAlignSchema: z.ZodEnum<{
|
|
26
|
-
left: "left";
|
|
27
|
-
right: "right";
|
|
28
|
-
center: "center";
|
|
29
|
-
}>;
|
|
30
|
-
/**
|
|
31
|
-
* Table column sort direction schema
|
|
32
|
-
*/
|
|
33
|
-
export declare const TableSortDirectionSchema: z.ZodNullable<z.ZodEnum<{
|
|
34
|
-
asc: "asc";
|
|
35
|
-
desc: "desc";
|
|
36
|
-
}>>;
|
|
37
|
-
/**
|
|
38
|
-
* Table column definition schema
|
|
39
|
-
* Note: render function cannot be validated by Zod, so we use z.any() for it
|
|
40
|
-
*/
|
|
41
|
-
export declare const TableColumnSchema: z.ZodObject<{
|
|
42
|
-
key: z.ZodString;
|
|
43
|
-
header: z.ZodString;
|
|
44
|
-
width: z.ZodOptional<z.ZodString>;
|
|
45
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
46
|
-
left: "left";
|
|
47
|
-
right: "right";
|
|
48
|
-
center: "center";
|
|
49
|
-
}>>;
|
|
50
|
-
sortable: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
sortDirection: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
52
|
-
asc: "asc";
|
|
53
|
-
desc: "desc";
|
|
54
|
-
}>>>;
|
|
55
|
-
render: z.ZodOptional<z.ZodAny>;
|
|
56
|
-
headerClass: z.ZodOptional<z.ZodString>;
|
|
57
|
-
cellClass: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.core.$strict>;
|
|
59
|
-
/**
|
|
60
|
-
* Table column type
|
|
61
|
-
*/
|
|
62
|
-
export type TableColumn = z.infer<typeof TableColumnSchema>;
|
|
63
|
-
/**
|
|
64
|
-
* Complete table options schema
|
|
65
|
-
*/
|
|
66
|
-
export declare const TableOptionsSchema: z.ZodObject<{
|
|
67
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
68
|
-
key: z.ZodString;
|
|
69
|
-
header: z.ZodString;
|
|
70
|
-
width: z.ZodOptional<z.ZodString>;
|
|
71
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
left: "left";
|
|
73
|
-
right: "right";
|
|
74
|
-
center: "center";
|
|
75
|
-
}>>;
|
|
76
|
-
sortable: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
sortDirection: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
78
|
-
asc: "asc";
|
|
79
|
-
desc: "desc";
|
|
80
|
-
}>>>;
|
|
81
|
-
render: z.ZodOptional<z.ZodAny>;
|
|
82
|
-
headerClass: z.ZodOptional<z.ZodString>;
|
|
83
|
-
cellClass: z.ZodOptional<z.ZodString>;
|
|
84
|
-
}, z.core.$strict>>;
|
|
85
|
-
id: z.ZodOptional<z.ZodString>;
|
|
86
|
-
selectable: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
hoverable: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
striped: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
-
compact: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
-
stickyHeader: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
-
className: z.ZodOptional<z.ZodString>;
|
|
93
|
-
emptyMessage: z.ZodOptional<z.ZodString>;
|
|
94
|
-
emptyContent: z.ZodOptional<z.ZodString>;
|
|
95
|
-
loading: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
rowKey: z.ZodOptional<z.ZodString>;
|
|
97
|
-
onRowClick: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
/**
|
|
100
|
-
* Table options type (derived from schema)
|
|
101
|
-
*/
|
|
102
|
-
export type TableOptions = z.infer<typeof TableOptionsSchema>;
|
|
103
|
-
/**
|
|
104
|
-
* Pagination options schema
|
|
105
|
-
*/
|
|
106
|
-
export declare const PaginationOptionsSchema: z.ZodObject<{
|
|
107
|
-
page: z.ZodNumber;
|
|
108
|
-
totalPages: z.ZodNumber;
|
|
109
|
-
totalItems: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
112
|
-
showFirstLast: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
showPageCount: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
showItemCount: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
-
showPageSize: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
maxVisiblePages: z.ZodOptional<z.ZodNumber>;
|
|
117
|
-
className: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}, z.core.$strict>;
|
|
119
|
-
/**
|
|
120
|
-
* Pagination options type
|
|
121
|
-
*/
|
|
122
|
-
export type PaginationOptions = z.infer<typeof PaginationOptionsSchema>;
|
|
123
|
-
//# sourceMappingURL=table.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.schema.d.ts","sourceRoot":"","sources":["../../../src/components/table.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;EAAsC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;GAAqC,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;kBAqBnB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM5D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA+BpB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;kBAyBzB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/esm/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @frontmcp/ui
|
|
3
|
-
*
|
|
4
|
-
* UI component library for FrontMCP applications.
|
|
5
|
-
* Provides HTML components, React components, and rendering utilities.
|
|
6
|
-
*
|
|
7
|
-
* For build tools, bundling, platform adapters, and theming, use @frontmcp/uipack.
|
|
8
|
-
*
|
|
9
|
-
* @example HTML components
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import { button, card, alert, badge } from '@frontmcp/ui/components';
|
|
12
|
-
* import { baseLayout } from '@frontmcp/ui/layouts';
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @example Theme (from uipack)
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import { DEFAULT_THEME, createTheme } from '@frontmcp/uipack/theme';
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @example React components
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import { Button, Card, Alert, Badge } from '@frontmcp/ui/react';
|
|
23
|
-
* import { useMcpBridge, useCallTool } from '@frontmcp/ui/react/hooks';
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @example Universal renderer
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import { UniversalApp, FrontMCPProvider } from '@frontmcp/ui/universal';
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export * from './components';
|
|
32
|
-
export * from './layouts';
|
|
33
|
-
export * from './pages';
|
|
34
|
-
export * from './widgets';
|
|
35
|
-
export { type PlatformAdapter, type AdapterCapabilities, type BridgeConfig, FrontMcpBridge, createBridge, AdapterRegistry, defaultRegistry, registerAdapter, generateBridgeIIFE, generatePlatformBundle, UNIVERSAL_BRIDGE_SCRIPT, BRIDGE_SCRIPT_TAGS, } from './bridge';
|
|
36
|
-
export { registerAllComponents, registerFmcpButton, registerFmcpCard, registerFmcpAlert, registerFmcpBadge, registerFmcpInput, registerFmcpSelect, FmcpButton, FmcpCard, FmcpAlert, FmcpBadge, FmcpInput, FmcpSelect, FmcpElement, } from './web-components';
|
|
37
|
-
export * from './react';
|
|
38
|
-
export * from './render';
|
|
39
|
-
export { ReactRenderer, reactRenderer, buildHydrationScript, ReactRendererAdapter, createReactAdapter, loadReactAdapter, } from './renderers';
|
|
40
|
-
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH,cAAc,cAAc,CAAC;AAK7B,cAAc,WAAW,CAAC;AAK1B,cAAc,SAAS,CAAC;AAKxB,cAAc,WAAW,CAAC;AAK1B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAEjB,cAAc,EACd,YAAY,EAEZ,eAAe,EACf,eAAe,EACf,eAAe,EAEf,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAKlB,OAAO,EAEL,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAElB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EAEV,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAK1B,cAAc,SAAS,CAAC;AAKxB,cAAc,UAAU,CAAC;AAKzB,OAAO,EACL,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
|
package/esm/layouts/base.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base Layout System
|
|
3
|
-
*
|
|
4
|
-
* Provides the foundation for all FrontMCP UI pages with:
|
|
5
|
-
* - Platform-aware rendering (OpenAI, Claude, etc.)
|
|
6
|
-
* - Theme integration
|
|
7
|
-
* - CDN resource management
|
|
8
|
-
* - Responsive layouts
|
|
9
|
-
*/
|
|
10
|
-
import { type PlatformCapabilities, type ThemeConfig, type DeepPartial } from '@frontmcp/uipack/theme';
|
|
11
|
-
/**
|
|
12
|
-
* Page type determines the layout structure
|
|
13
|
-
*/
|
|
14
|
-
export type PageType = 'auth' | 'consent' | 'error' | 'loading' | 'success' | 'dashboard' | 'widget' | 'resource' | 'custom';
|
|
15
|
-
/**
|
|
16
|
-
* Layout size/width options
|
|
17
|
-
*/
|
|
18
|
-
export type LayoutSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
19
|
-
/**
|
|
20
|
-
* Background style options
|
|
21
|
-
*/
|
|
22
|
-
export type BackgroundStyle = 'solid' | 'gradient' | 'pattern' | 'none';
|
|
23
|
-
/**
|
|
24
|
-
* Layout alignment options
|
|
25
|
-
*/
|
|
26
|
-
export type LayoutAlignment = 'center' | 'top' | 'start';
|
|
27
|
-
/**
|
|
28
|
-
* Base layout configuration options
|
|
29
|
-
*/
|
|
30
|
-
export interface BaseLayoutOptions {
|
|
31
|
-
/** Page title (will be suffixed with branding) */
|
|
32
|
-
title: string;
|
|
33
|
-
/** Page type for layout structure */
|
|
34
|
-
pageType?: PageType;
|
|
35
|
-
/** Content width */
|
|
36
|
-
size?: LayoutSize;
|
|
37
|
-
/** Content alignment */
|
|
38
|
-
alignment?: LayoutAlignment;
|
|
39
|
-
/** Background style */
|
|
40
|
-
background?: BackgroundStyle;
|
|
41
|
-
/** Optional page description for meta tag */
|
|
42
|
-
description?: string;
|
|
43
|
-
/** Target platform capabilities */
|
|
44
|
-
platform?: PlatformCapabilities;
|
|
45
|
-
/** Theme configuration (deep partial - nested properties are also optional) */
|
|
46
|
-
theme?: DeepPartial<ThemeConfig>;
|
|
47
|
-
/** Include HTMX (default: based on platform) */
|
|
48
|
-
includeHtmx?: boolean;
|
|
49
|
-
/** Include Alpine.js (default: false) */
|
|
50
|
-
includeAlpine?: boolean;
|
|
51
|
-
/** Include Lucide icons (default: false) */
|
|
52
|
-
includeIcons?: boolean;
|
|
53
|
-
/** Additional head content */
|
|
54
|
-
headExtra?: string;
|
|
55
|
-
/** Additional body attributes */
|
|
56
|
-
bodyAttrs?: Record<string, string>;
|
|
57
|
-
/** Custom body classes */
|
|
58
|
-
bodyClass?: string;
|
|
59
|
-
/** Title suffix/branding */
|
|
60
|
-
titleSuffix?: string;
|
|
61
|
-
/** Favicon URL */
|
|
62
|
-
favicon?: string;
|
|
63
|
-
/** Open Graph meta tags */
|
|
64
|
-
og?: {
|
|
65
|
-
title?: string;
|
|
66
|
-
description?: string;
|
|
67
|
-
image?: string;
|
|
68
|
-
type?: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export { escapeHtml } from '@frontmcp/uipack/utils';
|
|
72
|
-
/**
|
|
73
|
-
* Build the complete HTML document
|
|
74
|
-
*
|
|
75
|
-
* @param content - The page content (HTML string)
|
|
76
|
-
* @param options - Layout configuration options
|
|
77
|
-
* @returns Complete HTML document string
|
|
78
|
-
*/
|
|
79
|
-
export declare function baseLayout(content: string, options: BaseLayoutOptions): string;
|
|
80
|
-
/**
|
|
81
|
-
* Create a layout builder with preset options.
|
|
82
|
-
* The returned function accepts optional options that extend/override the defaults.
|
|
83
|
-
* If defaults include `title`, the returned function's options are fully optional.
|
|
84
|
-
*/
|
|
85
|
-
export declare function createLayoutBuilder(defaults: Partial<BaseLayoutOptions>): (content: string, options?: Partial<BaseLayoutOptions>) => string;
|
|
86
|
-
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/layouts/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,WAAW,EAWjB,MAAM,wBAAwB,CAAC;AAOhC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,UAAU,GACV,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,UAAU,GACV,SAAS,GACT,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,QAAQ,GACR,KAAK,GACL,OAAO,CAAC;AAMZ;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kDAAkD;IAClD,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H,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACnC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,MAAM,CAyBnE"}
|
package/esm/layouts/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Layouts Module
|
|
3
|
-
*
|
|
4
|
-
* Provides base layouts and page-specific presets for FrontMCP UI.
|
|
5
|
-
*/
|
|
6
|
-
export { type PageType, type LayoutSize, type BackgroundStyle, type LayoutAlignment, type BaseLayoutOptions, baseLayout, createLayoutBuilder, escapeHtml, } from './base';
|
|
7
|
-
export { type AuthLayoutOptions, type ConsentLayoutOptions, type ErrorLayoutOptions, type LoadingLayoutOptions, type SuccessLayoutOptions, type WidgetLayoutOptions, authLayout, consentLayout, errorLayout, loadingLayout, successLayout, widgetLayout, authLayoutBuilder, consentLayoutBuilder, errorLayoutBuilder, } from './presets';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,UAAU,EACV,mBAAmB,EACnB,UAAU,GACX,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,WAAW,CAAC"}
|