@frontmcp/ui 0.5.0
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/LICENSE +201 -0
- package/README.md +438 -0
- package/package.json +147 -0
- package/src/adapters/index.d.ts +10 -0
- package/src/adapters/index.js +18 -0
- package/src/adapters/index.js.map +1 -0
- package/src/adapters/platform-meta.d.ts +165 -0
- package/src/adapters/platform-meta.js +310 -0
- package/src/adapters/platform-meta.js.map +1 -0
- package/src/base-template/bridge.d.ts +89 -0
- package/src/base-template/bridge.js +452 -0
- package/src/base-template/bridge.js.map +1 -0
- package/src/base-template/default-base-template.d.ts +91 -0
- package/src/base-template/default-base-template.js +435 -0
- package/src/base-template/default-base-template.js.map +1 -0
- package/src/base-template/index.d.ts +14 -0
- package/src/base-template/index.js +30 -0
- package/src/base-template/index.js.map +1 -0
- package/src/base-template/polyfills.d.ts +30 -0
- package/src/base-template/polyfills.js +190 -0
- package/src/base-template/polyfills.js.map +1 -0
- package/src/base-template/theme-styles.d.ts +73 -0
- package/src/base-template/theme-styles.js +95 -0
- package/src/base-template/theme-styles.js.map +1 -0
- package/src/bridge/adapters/base-adapter.d.ts +103 -0
- package/src/bridge/adapters/base-adapter.js +314 -0
- package/src/bridge/adapters/base-adapter.js.map +1 -0
- package/src/bridge/adapters/claude.adapter.d.ts +66 -0
- package/src/bridge/adapters/claude.adapter.js +145 -0
- package/src/bridge/adapters/claude.adapter.js.map +1 -0
- package/src/bridge/adapters/ext-apps.adapter.d.ts +142 -0
- package/src/bridge/adapters/ext-apps.adapter.js +416 -0
- package/src/bridge/adapters/ext-apps.adapter.js.map +1 -0
- package/src/bridge/adapters/gemini.adapter.d.ts +63 -0
- package/src/bridge/adapters/gemini.adapter.js +160 -0
- package/src/bridge/adapters/gemini.adapter.js.map +1 -0
- package/src/bridge/adapters/generic.adapter.d.ts +55 -0
- package/src/bridge/adapters/generic.adapter.js +108 -0
- package/src/bridge/adapters/generic.adapter.js.map +1 -0
- package/src/bridge/adapters/index.d.ts +25 -0
- package/src/bridge/adapters/index.js +65 -0
- package/src/bridge/adapters/index.js.map +1 -0
- package/src/bridge/adapters/openai.adapter.d.ts +64 -0
- package/src/bridge/adapters/openai.adapter.js +194 -0
- package/src/bridge/adapters/openai.adapter.js.map +1 -0
- package/src/bridge/core/adapter-registry.d.ts +121 -0
- package/src/bridge/core/adapter-registry.js +271 -0
- package/src/bridge/core/adapter-registry.js.map +1 -0
- package/src/bridge/core/bridge-factory.d.ts +198 -0
- package/src/bridge/core/bridge-factory.js +428 -0
- package/src/bridge/core/bridge-factory.js.map +1 -0
- package/src/bridge/core/index.d.ts +9 -0
- package/src/bridge/core/index.js +22 -0
- package/src/bridge/core/index.js.map +1 -0
- package/src/bridge/index.d.ts +61 -0
- package/src/bridge/index.js +94 -0
- package/src/bridge/index.js.map +1 -0
- package/src/bridge/runtime/iife-generator.d.ts +61 -0
- package/src/bridge/runtime/iife-generator.js +940 -0
- package/src/bridge/runtime/iife-generator.js.map +1 -0
- package/src/bridge/runtime/index.d.ts +8 -0
- package/src/bridge/runtime/index.js +16 -0
- package/src/bridge/runtime/index.js.map +1 -0
- package/src/bridge/types.d.ts +385 -0
- package/src/bridge/types.js +11 -0
- package/src/bridge/types.js.map +1 -0
- package/src/build/cdn-resources.d.ts +140 -0
- package/src/build/cdn-resources.js +314 -0
- package/src/build/cdn-resources.js.map +1 -0
- package/src/build/index.d.ts +294 -0
- package/src/build/index.js +325 -0
- package/src/build/index.js.map +1 -0
- package/src/build/widget-manifest.d.ts +212 -0
- package/src/build/widget-manifest.js +652 -0
- package/src/build/widget-manifest.js.map +1 -0
- package/src/bundler/bundler.d.ts +110 -0
- package/src/bundler/bundler.js +432 -0
- package/src/bundler/bundler.js.map +1 -0
- package/src/bundler/cache.d.ts +172 -0
- package/src/bundler/cache.js +250 -0
- package/src/bundler/cache.js.map +1 -0
- package/src/bundler/index.d.ts +41 -0
- package/src/bundler/index.js +73 -0
- package/src/bundler/index.js.map +1 -0
- package/src/bundler/sandbox/enclave-adapter.d.ts +120 -0
- package/src/bundler/sandbox/enclave-adapter.js +339 -0
- package/src/bundler/sandbox/enclave-adapter.js.map +1 -0
- package/src/bundler/sandbox/executor.d.ts +13 -0
- package/src/bundler/sandbox/executor.js +22 -0
- package/src/bundler/sandbox/executor.js.map +1 -0
- package/src/bundler/sandbox/policy.d.ts +61 -0
- package/src/bundler/sandbox/policy.js +238 -0
- package/src/bundler/sandbox/policy.js.map +1 -0
- package/src/bundler/types.d.ts +347 -0
- package/src/bundler/types.js +132 -0
- package/src/bundler/types.js.map +1 -0
- package/src/components/alert.d.ts +71 -0
- package/src/components/alert.js +189 -0
- package/src/components/alert.js.map +1 -0
- package/src/components/alert.schema.d.ts +114 -0
- package/src/components/alert.schema.js +105 -0
- package/src/components/alert.schema.js.map +1 -0
- package/src/components/avatar.d.ts +76 -0
- package/src/components/avatar.js +176 -0
- package/src/components/avatar.js.map +1 -0
- package/src/components/avatar.schema.d.ts +169 -0
- package/src/components/avatar.schema.js +103 -0
- package/src/components/avatar.schema.js.map +1 -0
- package/src/components/badge.d.ts +70 -0
- package/src/components/badge.js +149 -0
- package/src/components/badge.js.map +1 -0
- package/src/components/badge.schema.d.ts +109 -0
- package/src/components/badge.schema.js +96 -0
- package/src/components/badge.schema.js.map +1 -0
- package/src/components/button.d.ts +111 -0
- package/src/components/button.js +336 -0
- package/src/components/button.js.map +1 -0
- package/src/components/button.schema.d.ts +148 -0
- package/src/components/button.schema.js +121 -0
- package/src/components/button.schema.js.map +1 -0
- package/src/components/card.d.ts +60 -0
- package/src/components/card.js +117 -0
- package/src/components/card.js.map +1 -0
- package/src/components/card.schema.d.ts +113 -0
- package/src/components/card.schema.js +98 -0
- package/src/components/card.schema.js.map +1 -0
- package/src/components/form.d.ts +239 -0
- package/src/components/form.js +420 -0
- package/src/components/form.js.map +1 -0
- package/src/components/form.schema.d.ts +441 -0
- package/src/components/form.schema.js +406 -0
- package/src/components/form.schema.js.map +1 -0
- package/src/components/index.d.ts +29 -0
- package/src/components/index.js +98 -0
- package/src/components/index.js.map +1 -0
- package/src/components/list.d.ts +127 -0
- package/src/components/list.js +279 -0
- package/src/components/list.js.map +1 -0
- package/src/components/list.schema.d.ts +134 -0
- package/src/components/list.schema.js +168 -0
- package/src/components/list.schema.js.map +1 -0
- package/src/components/modal.d.ts +111 -0
- package/src/components/modal.js +260 -0
- package/src/components/modal.js.map +1 -0
- package/src/components/modal.schema.d.ts +186 -0
- package/src/components/modal.schema.js +167 -0
- package/src/components/modal.schema.js.map +1 -0
- package/src/components/table.d.ts +105 -0
- package/src/components/table.js +283 -0
- package/src/components/table.js.map +1 -0
- package/src/components/table.schema.d.ts +159 -0
- package/src/components/table.schema.js +173 -0
- package/src/components/table.schema.js.map +1 -0
- package/src/handlebars/helpers.d.ts +348 -0
- package/src/handlebars/helpers.js +605 -0
- package/src/handlebars/helpers.js.map +1 -0
- package/src/handlebars/index.d.ts +193 -0
- package/src/handlebars/index.js +350 -0
- package/src/handlebars/index.js.map +1 -0
- package/src/index.d.ts +50 -0
- package/src/index.js +192 -0
- package/src/index.js.map +1 -0
- package/src/layouts/base.d.ts +88 -0
- package/src/layouts/base.js +227 -0
- package/src/layouts/base.js.map +1 -0
- package/src/layouts/index.d.ts +7 -0
- package/src/layouts/index.js +25 -0
- package/src/layouts/index.js.map +1 -0
- package/src/layouts/presets.d.ts +133 -0
- package/src/layouts/presets.js +277 -0
- package/src/layouts/presets.js.map +1 -0
- package/src/pages/consent.d.ts +116 -0
- package/src/pages/consent.js +218 -0
- package/src/pages/consent.js.map +1 -0
- package/src/pages/error.d.ts +100 -0
- package/src/pages/error.js +263 -0
- package/src/pages/error.js.map +1 -0
- package/src/pages/index.d.ts +8 -0
- package/src/pages/index.js +27 -0
- package/src/pages/index.js.map +1 -0
- package/src/react/Alert.d.ts +101 -0
- package/src/react/Alert.js +51 -0
- package/src/react/Alert.js.map +1 -0
- package/src/react/Badge.d.ts +100 -0
- package/src/react/Badge.js +55 -0
- package/src/react/Badge.js.map +1 -0
- package/src/react/Button.d.ts +108 -0
- package/src/react/Button.js +52 -0
- package/src/react/Button.js.map +1 -0
- package/src/react/Card.d.ts +103 -0
- package/src/react/Card.js +55 -0
- package/src/react/Card.js.map +1 -0
- package/src/react/hooks/context.d.ts +178 -0
- package/src/react/hooks/context.js +287 -0
- package/src/react/hooks/context.js.map +1 -0
- package/src/react/hooks/index.d.ts +41 -0
- package/src/react/hooks/index.js +61 -0
- package/src/react/hooks/index.js.map +1 -0
- package/src/react/hooks/tools.d.ts +283 -0
- package/src/react/hooks/tools.js +465 -0
- package/src/react/hooks/tools.js.map +1 -0
- package/src/react/index.d.ts +80 -0
- package/src/react/index.js +113 -0
- package/src/react/index.js.map +1 -0
- package/src/react/types.d.ts +105 -0
- package/src/react/types.js +12 -0
- package/src/react/types.js.map +1 -0
- package/src/react/utils.d.ts +42 -0
- package/src/react/utils.js +99 -0
- package/src/react/utils.js.map +1 -0
- package/src/registry/index.d.ts +45 -0
- package/src/registry/index.js +67 -0
- package/src/registry/index.js.map +1 -0
- package/src/registry/render-template.d.ts +86 -0
- package/src/registry/render-template.js +239 -0
- package/src/registry/render-template.js.map +1 -0
- package/src/registry/tool-ui.registry.d.ts +260 -0
- package/src/registry/tool-ui.registry.js +438 -0
- package/src/registry/tool-ui.registry.js.map +1 -0
- package/src/registry/uri-utils.d.ts +55 -0
- package/src/registry/uri-utils.js +97 -0
- package/src/registry/uri-utils.js.map +1 -0
- package/src/render/index.d.ts +7 -0
- package/src/render/index.js +14 -0
- package/src/render/index.js.map +1 -0
- package/src/render/prerender.d.ts +56 -0
- package/src/render/prerender.js +98 -0
- package/src/render/prerender.js.map +1 -0
- package/src/renderers/cache.d.ts +144 -0
- package/src/renderers/cache.js +240 -0
- package/src/renderers/cache.js.map +1 -0
- package/src/renderers/html.renderer.d.ts +122 -0
- package/src/renderers/html.renderer.js +204 -0
- package/src/renderers/html.renderer.js.map +1 -0
- package/src/renderers/index.d.ts +35 -0
- package/src/renderers/index.js +70 -0
- package/src/renderers/index.js.map +1 -0
- package/src/renderers/mdx.renderer.d.ts +119 -0
- package/src/renderers/mdx.renderer.js +305 -0
- package/src/renderers/mdx.renderer.js.map +1 -0
- package/src/renderers/react.renderer.d.ts +95 -0
- package/src/renderers/react.renderer.js +260 -0
- package/src/renderers/react.renderer.js.map +1 -0
- package/src/renderers/registry.d.ts +133 -0
- package/src/renderers/registry.js +232 -0
- package/src/renderers/registry.js.map +1 -0
- package/src/renderers/types.d.ts +341 -0
- package/src/renderers/types.js +9 -0
- package/src/renderers/types.js.map +1 -0
- package/src/renderers/utils/detect.d.ts +106 -0
- package/src/renderers/utils/detect.js +267 -0
- package/src/renderers/utils/detect.js.map +1 -0
- package/src/renderers/utils/hash.d.ts +39 -0
- package/src/renderers/utils/hash.js +75 -0
- package/src/renderers/utils/hash.js.map +1 -0
- package/src/renderers/utils/index.d.ts +8 -0
- package/src/renderers/utils/index.js +28 -0
- package/src/renderers/utils/index.js.map +1 -0
- package/src/renderers/utils/transpiler.d.ts +88 -0
- package/src/renderers/utils/transpiler.js +215 -0
- package/src/renderers/utils/transpiler.js.map +1 -0
- package/src/runtime/adapters/html.adapter.d.ts +58 -0
- package/src/runtime/adapters/html.adapter.js +131 -0
- package/src/runtime/adapters/html.adapter.js.map +1 -0
- package/src/runtime/adapters/index.d.ts +25 -0
- package/src/runtime/adapters/index.js +54 -0
- package/src/runtime/adapters/index.js.map +1 -0
- package/src/runtime/adapters/mdx.adapter.d.ts +72 -0
- package/src/runtime/adapters/mdx.adapter.js +241 -0
- package/src/runtime/adapters/mdx.adapter.js.map +1 -0
- package/src/runtime/adapters/react.adapter.d.ts +69 -0
- package/src/runtime/adapters/react.adapter.js +245 -0
- package/src/runtime/adapters/react.adapter.js.map +1 -0
- package/src/runtime/adapters/types.d.ts +94 -0
- package/src/runtime/adapters/types.js +11 -0
- package/src/runtime/adapters/types.js.map +1 -0
- package/src/runtime/csp.d.ts +37 -0
- package/src/runtime/csp.js +140 -0
- package/src/runtime/csp.js.map +1 -0
- package/src/runtime/index.d.ts +16 -0
- package/src/runtime/index.js +72 -0
- package/src/runtime/index.js.map +1 -0
- package/src/runtime/mcp-bridge.d.ts +100 -0
- package/src/runtime/mcp-bridge.js +581 -0
- package/src/runtime/mcp-bridge.js.map +1 -0
- package/src/runtime/renderer-runtime.d.ts +132 -0
- package/src/runtime/renderer-runtime.js +389 -0
- package/src/runtime/renderer-runtime.js.map +1 -0
- package/src/runtime/sanitizer.d.ts +171 -0
- package/src/runtime/sanitizer.js +318 -0
- package/src/runtime/sanitizer.js.map +1 -0
- package/src/runtime/types.d.ts +414 -0
- package/src/runtime/types.js +12 -0
- package/src/runtime/types.js.map +1 -0
- package/src/runtime/wrapper.d.ts +375 -0
- package/src/runtime/wrapper.js +1793 -0
- package/src/runtime/wrapper.js.map +1 -0
- package/src/styles/index.d.ts +7 -0
- package/src/styles/index.js +11 -0
- package/src/styles/index.js.map +1 -0
- package/src/styles/variants.d.ts +50 -0
- package/src/styles/variants.js +175 -0
- package/src/styles/variants.js.map +1 -0
- package/src/theme/cdn.d.ts +194 -0
- package/src/theme/cdn.js +375 -0
- package/src/theme/cdn.js.map +1 -0
- package/src/theme/index.d.ts +17 -0
- package/src/theme/index.js +57 -0
- package/src/theme/index.js.map +1 -0
- package/src/theme/platforms.d.ts +106 -0
- package/src/theme/platforms.js +161 -0
- package/src/theme/platforms.js.map +1 -0
- package/src/theme/presets/github-openai.d.ts +49 -0
- package/src/theme/presets/github-openai.js +189 -0
- package/src/theme/presets/github-openai.js.map +1 -0
- package/src/theme/presets/index.d.ts +10 -0
- package/src/theme/presets/index.js +17 -0
- package/src/theme/presets/index.js.map +1 -0
- package/src/theme/theme.d.ts +395 -0
- package/src/theme/theme.js +332 -0
- package/src/theme/theme.js.map +1 -0
- package/src/tool-template/builder.d.ts +212 -0
- package/src/tool-template/builder.js +397 -0
- package/src/tool-template/builder.js.map +1 -0
- package/src/tool-template/index.d.ts +15 -0
- package/src/tool-template/index.js +38 -0
- package/src/tool-template/index.js.map +1 -0
- package/src/types/index.d.ts +13 -0
- package/src/types/index.js +26 -0
- package/src/types/index.js.map +1 -0
- package/src/types/ui-config.d.ts +357 -0
- package/src/types/ui-config.js +12 -0
- package/src/types/ui-config.js.map +1 -0
- package/src/types/ui-runtime.d.ts +965 -0
- package/src/types/ui-runtime.js +117 -0
- package/src/types/ui-runtime.js.map +1 -0
- package/src/validation/error-box.d.ts +55 -0
- package/src/validation/error-box.js +75 -0
- package/src/validation/error-box.js.map +1 -0
- package/src/validation/index.d.ts +12 -0
- package/src/validation/index.js +21 -0
- package/src/validation/index.js.map +1 -0
- package/src/validation/wrapper.d.ts +96 -0
- package/src/validation/wrapper.js +117 -0
- package/src/validation/wrapper.js.map +1 -0
- package/src/web-components/core/attribute-parser.d.ts +85 -0
- package/src/web-components/core/attribute-parser.js +189 -0
- package/src/web-components/core/attribute-parser.js.map +1 -0
- package/src/web-components/core/base-element.d.ts +197 -0
- package/src/web-components/core/base-element.js +289 -0
- package/src/web-components/core/base-element.js.map +1 -0
- package/src/web-components/core/index.d.ts +8 -0
- package/src/web-components/core/index.js +18 -0
- package/src/web-components/core/index.js.map +1 -0
- package/src/web-components/elements/fmcp-alert.d.ts +45 -0
- package/src/web-components/elements/fmcp-alert.js +93 -0
- package/src/web-components/elements/fmcp-alert.js.map +1 -0
- package/src/web-components/elements/fmcp-badge.d.ts +46 -0
- package/src/web-components/elements/fmcp-badge.js +99 -0
- package/src/web-components/elements/fmcp-badge.js.map +1 -0
- package/src/web-components/elements/fmcp-button.d.ts +124 -0
- package/src/web-components/elements/fmcp-button.js +233 -0
- package/src/web-components/elements/fmcp-button.js.map +1 -0
- package/src/web-components/elements/fmcp-card.d.ts +52 -0
- package/src/web-components/elements/fmcp-card.js +115 -0
- package/src/web-components/elements/fmcp-card.js.map +1 -0
- package/src/web-components/elements/fmcp-input.d.ts +95 -0
- package/src/web-components/elements/fmcp-input.js +248 -0
- package/src/web-components/elements/fmcp-input.js.map +1 -0
- package/src/web-components/elements/fmcp-select.d.ts +99 -0
- package/src/web-components/elements/fmcp-select.js +243 -0
- package/src/web-components/elements/fmcp-select.js.map +1 -0
- package/src/web-components/elements/index.d.ts +12 -0
- package/src/web-components/elements/index.js +34 -0
- package/src/web-components/elements/index.js.map +1 -0
- package/src/web-components/index.d.ts +49 -0
- package/src/web-components/index.js +75 -0
- package/src/web-components/index.js.map +1 -0
- package/src/web-components/register.d.ts +56 -0
- package/src/web-components/register.js +80 -0
- package/src/web-components/register.js.map +1 -0
- package/src/web-components/types.d.ts +121 -0
- package/src/web-components/types.js +25 -0
- package/src/web-components/types.js.map +1 -0
- package/src/widgets/index.d.ts +7 -0
- package/src/widgets/index.js +24 -0
- package/src/widgets/index.js.map +1 -0
- package/src/widgets/progress.d.ts +132 -0
- package/src/widgets/progress.js +303 -0
- package/src/widgets/progress.js.map +1 -0
- package/src/widgets/resource.d.ts +162 -0
- package/src/widgets/resource.js +340 -0
- package/src/widgets/resource.js.map +1 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file form.schema.ts
|
|
3
|
+
* @description Zod schemas for Form component options validation.
|
|
4
|
+
*
|
|
5
|
+
* Provides strict validation schemas for all form-related components including
|
|
6
|
+
* input, select, textarea, checkbox, radio groups, and form layouts.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { InputOptionsSchema, SelectOptionsSchema } from '@frontmcp/ui';
|
|
11
|
+
*
|
|
12
|
+
* const inputResult = InputOptionsSchema.safeParse({
|
|
13
|
+
* name: 'email',
|
|
14
|
+
* type: 'email',
|
|
15
|
+
* label: 'Email Address',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @module @frontmcp/ui/components/form.schema
|
|
20
|
+
*/
|
|
21
|
+
import { z } from 'zod';
|
|
22
|
+
/**
|
|
23
|
+
* Input type enum schema
|
|
24
|
+
*/
|
|
25
|
+
export declare const InputTypeSchema: z.ZodEnum<{
|
|
26
|
+
number: "number";
|
|
27
|
+
url: "url";
|
|
28
|
+
text: "text";
|
|
29
|
+
search: "search";
|
|
30
|
+
time: "time";
|
|
31
|
+
email: "email";
|
|
32
|
+
date: "date";
|
|
33
|
+
password: "password";
|
|
34
|
+
tel: "tel";
|
|
35
|
+
"datetime-local": "datetime-local";
|
|
36
|
+
hidden: "hidden";
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Input type
|
|
40
|
+
*/
|
|
41
|
+
export type InputType = z.infer<typeof InputTypeSchema>;
|
|
42
|
+
/**
|
|
43
|
+
* Input size enum schema
|
|
44
|
+
*/
|
|
45
|
+
export declare const InputSizeSchema: z.ZodEnum<{
|
|
46
|
+
sm: "sm";
|
|
47
|
+
lg: "lg";
|
|
48
|
+
md: "md";
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Input size type
|
|
52
|
+
*/
|
|
53
|
+
export type InputSize = z.infer<typeof InputSizeSchema>;
|
|
54
|
+
/**
|
|
55
|
+
* Input state enum schema
|
|
56
|
+
*/
|
|
57
|
+
export declare const InputStateSchema: z.ZodEnum<{
|
|
58
|
+
default: "default";
|
|
59
|
+
success: "success";
|
|
60
|
+
warning: "warning";
|
|
61
|
+
error: "error";
|
|
62
|
+
}>;
|
|
63
|
+
/**
|
|
64
|
+
* Input state type
|
|
65
|
+
*/
|
|
66
|
+
export type InputState = z.infer<typeof InputStateSchema>;
|
|
67
|
+
/**
|
|
68
|
+
* Form field HTMX options schema
|
|
69
|
+
*/
|
|
70
|
+
export declare const FormHtmxSchema: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
post: z.ZodOptional<z.ZodString>;
|
|
72
|
+
get: z.ZodOptional<z.ZodString>;
|
|
73
|
+
target: z.ZodOptional<z.ZodString>;
|
|
74
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
75
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
76
|
+
validate: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
/**
|
|
79
|
+
* Form field HTMX type
|
|
80
|
+
*/
|
|
81
|
+
export type FormHtmx = z.infer<typeof FormHtmxSchema>;
|
|
82
|
+
/**
|
|
83
|
+
* Complete input options schema
|
|
84
|
+
*/
|
|
85
|
+
export declare const InputOptionsSchema: z.ZodObject<{
|
|
86
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
number: "number";
|
|
88
|
+
url: "url";
|
|
89
|
+
text: "text";
|
|
90
|
+
search: "search";
|
|
91
|
+
time: "time";
|
|
92
|
+
email: "email";
|
|
93
|
+
date: "date";
|
|
94
|
+
password: "password";
|
|
95
|
+
tel: "tel";
|
|
96
|
+
"datetime-local": "datetime-local";
|
|
97
|
+
hidden: "hidden";
|
|
98
|
+
}>>;
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
id: z.ZodOptional<z.ZodString>;
|
|
101
|
+
value: z.ZodOptional<z.ZodString>;
|
|
102
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
103
|
+
label: z.ZodOptional<z.ZodString>;
|
|
104
|
+
helper: z.ZodOptional<z.ZodString>;
|
|
105
|
+
error: z.ZodOptional<z.ZodString>;
|
|
106
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
sm: "sm";
|
|
108
|
+
lg: "lg";
|
|
109
|
+
md: "md";
|
|
110
|
+
}>>;
|
|
111
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
default: "default";
|
|
113
|
+
success: "success";
|
|
114
|
+
warning: "warning";
|
|
115
|
+
error: "error";
|
|
116
|
+
}>>;
|
|
117
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
autocomplete: z.ZodOptional<z.ZodString>;
|
|
121
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
122
|
+
min: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
123
|
+
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
124
|
+
step: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
125
|
+
className: z.ZodOptional<z.ZodString>;
|
|
126
|
+
htmx: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
post: z.ZodOptional<z.ZodString>;
|
|
128
|
+
get: z.ZodOptional<z.ZodString>;
|
|
129
|
+
target: z.ZodOptional<z.ZodString>;
|
|
130
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
131
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
132
|
+
validate: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$strict>>;
|
|
134
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
135
|
+
iconBefore: z.ZodOptional<z.ZodString>;
|
|
136
|
+
iconAfter: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
/**
|
|
139
|
+
* Input options type (derived from schema)
|
|
140
|
+
*/
|
|
141
|
+
export type InputOptions = z.infer<typeof InputOptionsSchema>;
|
|
142
|
+
/**
|
|
143
|
+
* Select option item schema
|
|
144
|
+
*/
|
|
145
|
+
export declare const SelectOptionItemSchema: z.ZodObject<{
|
|
146
|
+
value: z.ZodString;
|
|
147
|
+
label: z.ZodString;
|
|
148
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
/**
|
|
152
|
+
* Select option item type
|
|
153
|
+
*/
|
|
154
|
+
export type SelectOptionItem = z.infer<typeof SelectOptionItemSchema>;
|
|
155
|
+
/**
|
|
156
|
+
* Complete select options schema
|
|
157
|
+
*/
|
|
158
|
+
export declare const SelectOptionsSchema: z.ZodObject<{
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
id: z.ZodOptional<z.ZodString>;
|
|
161
|
+
value: z.ZodOptional<z.ZodString>;
|
|
162
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
163
|
+
label: z.ZodOptional<z.ZodString>;
|
|
164
|
+
helper: z.ZodOptional<z.ZodString>;
|
|
165
|
+
error: z.ZodOptional<z.ZodString>;
|
|
166
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
sm: "sm";
|
|
168
|
+
lg: "lg";
|
|
169
|
+
md: "md";
|
|
170
|
+
}>>;
|
|
171
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
default: "default";
|
|
173
|
+
success: "success";
|
|
174
|
+
warning: "warning";
|
|
175
|
+
error: "error";
|
|
176
|
+
}>>;
|
|
177
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
className: z.ZodOptional<z.ZodString>;
|
|
181
|
+
htmx: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
post: z.ZodOptional<z.ZodString>;
|
|
183
|
+
get: z.ZodOptional<z.ZodString>;
|
|
184
|
+
target: z.ZodOptional<z.ZodString>;
|
|
185
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
186
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
187
|
+
validate: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
}, z.core.$strict>>;
|
|
189
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
190
|
+
iconBefore: z.ZodOptional<z.ZodString>;
|
|
191
|
+
iconAfter: z.ZodOptional<z.ZodString>;
|
|
192
|
+
options: z.ZodArray<z.ZodObject<{
|
|
193
|
+
value: z.ZodString;
|
|
194
|
+
label: z.ZodString;
|
|
195
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
}, z.core.$strict>>;
|
|
198
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
/**
|
|
201
|
+
* Select options type
|
|
202
|
+
*/
|
|
203
|
+
export type SelectOptions = z.infer<typeof SelectOptionsSchema>;
|
|
204
|
+
/**
|
|
205
|
+
* Textarea resize enum schema
|
|
206
|
+
*/
|
|
207
|
+
export declare const TextareaResizeSchema: z.ZodEnum<{
|
|
208
|
+
none: "none";
|
|
209
|
+
horizontal: "horizontal";
|
|
210
|
+
vertical: "vertical";
|
|
211
|
+
both: "both";
|
|
212
|
+
}>;
|
|
213
|
+
/**
|
|
214
|
+
* Complete textarea options schema
|
|
215
|
+
*/
|
|
216
|
+
export declare const TextareaOptionsSchema: z.ZodObject<{
|
|
217
|
+
name: z.ZodString;
|
|
218
|
+
id: z.ZodOptional<z.ZodString>;
|
|
219
|
+
value: z.ZodOptional<z.ZodString>;
|
|
220
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
221
|
+
label: z.ZodOptional<z.ZodString>;
|
|
222
|
+
helper: z.ZodOptional<z.ZodString>;
|
|
223
|
+
error: z.ZodOptional<z.ZodString>;
|
|
224
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
225
|
+
sm: "sm";
|
|
226
|
+
lg: "lg";
|
|
227
|
+
md: "md";
|
|
228
|
+
}>>;
|
|
229
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
default: "default";
|
|
231
|
+
success: "success";
|
|
232
|
+
warning: "warning";
|
|
233
|
+
error: "error";
|
|
234
|
+
}>>;
|
|
235
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
autocomplete: z.ZodOptional<z.ZodString>;
|
|
239
|
+
className: z.ZodOptional<z.ZodString>;
|
|
240
|
+
htmx: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
post: z.ZodOptional<z.ZodString>;
|
|
242
|
+
get: z.ZodOptional<z.ZodString>;
|
|
243
|
+
target: z.ZodOptional<z.ZodString>;
|
|
244
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
245
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
246
|
+
validate: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
249
|
+
iconBefore: z.ZodOptional<z.ZodString>;
|
|
250
|
+
iconAfter: z.ZodOptional<z.ZodString>;
|
|
251
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
resize: z.ZodOptional<z.ZodEnum<{
|
|
253
|
+
none: "none";
|
|
254
|
+
horizontal: "horizontal";
|
|
255
|
+
vertical: "vertical";
|
|
256
|
+
both: "both";
|
|
257
|
+
}>>;
|
|
258
|
+
}, z.core.$strict>;
|
|
259
|
+
/**
|
|
260
|
+
* Textarea options type
|
|
261
|
+
*/
|
|
262
|
+
export type TextareaOptions = z.infer<typeof TextareaOptionsSchema>;
|
|
263
|
+
/**
|
|
264
|
+
* Checkbox HTMX options schema
|
|
265
|
+
*/
|
|
266
|
+
export declare const CheckboxHtmxSchema: z.ZodOptional<z.ZodObject<{
|
|
267
|
+
post: z.ZodOptional<z.ZodString>;
|
|
268
|
+
get: z.ZodOptional<z.ZodString>;
|
|
269
|
+
target: z.ZodOptional<z.ZodString>;
|
|
270
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
271
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strict>>;
|
|
273
|
+
/**
|
|
274
|
+
* Complete checkbox options schema
|
|
275
|
+
*/
|
|
276
|
+
export declare const CheckboxOptionsSchema: z.ZodObject<{
|
|
277
|
+
name: z.ZodString;
|
|
278
|
+
id: z.ZodOptional<z.ZodString>;
|
|
279
|
+
value: z.ZodOptional<z.ZodString>;
|
|
280
|
+
label: z.ZodString;
|
|
281
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
helper: z.ZodOptional<z.ZodString>;
|
|
284
|
+
error: z.ZodOptional<z.ZodString>;
|
|
285
|
+
className: z.ZodOptional<z.ZodString>;
|
|
286
|
+
htmx: z.ZodOptional<z.ZodObject<{
|
|
287
|
+
post: z.ZodOptional<z.ZodString>;
|
|
288
|
+
get: z.ZodOptional<z.ZodString>;
|
|
289
|
+
target: z.ZodOptional<z.ZodString>;
|
|
290
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
291
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
}, z.core.$strict>;
|
|
294
|
+
/**
|
|
295
|
+
* Checkbox options type
|
|
296
|
+
*/
|
|
297
|
+
export type CheckboxOptions = z.infer<typeof CheckboxOptionsSchema>;
|
|
298
|
+
/**
|
|
299
|
+
* Radio option item schema
|
|
300
|
+
*/
|
|
301
|
+
export declare const RadioOptionItemSchema: z.ZodObject<{
|
|
302
|
+
value: z.ZodString;
|
|
303
|
+
label: z.ZodString;
|
|
304
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
/**
|
|
307
|
+
* Radio option item type
|
|
308
|
+
*/
|
|
309
|
+
export type RadioOptionItem = z.infer<typeof RadioOptionItemSchema>;
|
|
310
|
+
/**
|
|
311
|
+
* Complete radio group options schema
|
|
312
|
+
*/
|
|
313
|
+
export declare const RadioGroupOptionsSchema: z.ZodObject<{
|
|
314
|
+
name: z.ZodString;
|
|
315
|
+
options: z.ZodArray<z.ZodObject<{
|
|
316
|
+
value: z.ZodString;
|
|
317
|
+
label: z.ZodString;
|
|
318
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
}, z.core.$strict>>;
|
|
320
|
+
value: z.ZodOptional<z.ZodString>;
|
|
321
|
+
label: z.ZodOptional<z.ZodString>;
|
|
322
|
+
helper: z.ZodOptional<z.ZodString>;
|
|
323
|
+
error: z.ZodOptional<z.ZodString>;
|
|
324
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
325
|
+
horizontal: "horizontal";
|
|
326
|
+
vertical: "vertical";
|
|
327
|
+
}>>;
|
|
328
|
+
className: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
/**
|
|
331
|
+
* Radio group options type
|
|
332
|
+
*/
|
|
333
|
+
export type RadioGroupOptions = z.infer<typeof RadioGroupOptionsSchema>;
|
|
334
|
+
/**
|
|
335
|
+
* Form method enum schema
|
|
336
|
+
*/
|
|
337
|
+
export declare const FormMethodSchema: z.ZodEnum<{
|
|
338
|
+
get: "get";
|
|
339
|
+
post: "post";
|
|
340
|
+
dialog: "dialog";
|
|
341
|
+
}>;
|
|
342
|
+
/**
|
|
343
|
+
* Form enctype enum schema
|
|
344
|
+
*/
|
|
345
|
+
export declare const FormEnctypeSchema: z.ZodEnum<{
|
|
346
|
+
"application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
|
|
347
|
+
"multipart/form-data": "multipart/form-data";
|
|
348
|
+
"text/plain": "text/plain";
|
|
349
|
+
}>;
|
|
350
|
+
/**
|
|
351
|
+
* Form HTMX options schema
|
|
352
|
+
*/
|
|
353
|
+
export declare const FormFormHtmxSchema: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
post: z.ZodOptional<z.ZodString>;
|
|
355
|
+
put: z.ZodOptional<z.ZodString>;
|
|
356
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
357
|
+
delete: z.ZodOptional<z.ZodString>;
|
|
358
|
+
target: z.ZodOptional<z.ZodString>;
|
|
359
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
360
|
+
encoding: z.ZodOptional<z.ZodString>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
/**
|
|
363
|
+
* Complete form options schema
|
|
364
|
+
*/
|
|
365
|
+
export declare const FormOptionsSchema: z.ZodObject<{
|
|
366
|
+
action: z.ZodOptional<z.ZodString>;
|
|
367
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
368
|
+
get: "get";
|
|
369
|
+
post: "post";
|
|
370
|
+
dialog: "dialog";
|
|
371
|
+
}>>;
|
|
372
|
+
id: z.ZodOptional<z.ZodString>;
|
|
373
|
+
enctype: z.ZodOptional<z.ZodEnum<{
|
|
374
|
+
"application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
|
|
375
|
+
"multipart/form-data": "multipart/form-data";
|
|
376
|
+
"text/plain": "text/plain";
|
|
377
|
+
}>>;
|
|
378
|
+
novalidate: z.ZodOptional<z.ZodBoolean>;
|
|
379
|
+
autocomplete: z.ZodOptional<z.ZodEnum<{
|
|
380
|
+
on: "on";
|
|
381
|
+
off: "off";
|
|
382
|
+
}>>;
|
|
383
|
+
className: z.ZodOptional<z.ZodString>;
|
|
384
|
+
htmx: z.ZodOptional<z.ZodObject<{
|
|
385
|
+
post: z.ZodOptional<z.ZodString>;
|
|
386
|
+
put: z.ZodOptional<z.ZodString>;
|
|
387
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
388
|
+
delete: z.ZodOptional<z.ZodString>;
|
|
389
|
+
target: z.ZodOptional<z.ZodString>;
|
|
390
|
+
swap: z.ZodOptional<z.ZodString>;
|
|
391
|
+
encoding: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
/**
|
|
395
|
+
* Form options type
|
|
396
|
+
*/
|
|
397
|
+
export type FormOptions = z.infer<typeof FormOptionsSchema>;
|
|
398
|
+
/**
|
|
399
|
+
* Form row options schema
|
|
400
|
+
*/
|
|
401
|
+
export declare const FormRowOptionsSchema: z.ZodObject<{
|
|
402
|
+
cols: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
gap: z.ZodOptional<z.ZodEnum<{
|
|
404
|
+
sm: "sm";
|
|
405
|
+
lg: "lg";
|
|
406
|
+
md: "md";
|
|
407
|
+
}>>;
|
|
408
|
+
className: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strict>;
|
|
410
|
+
/**
|
|
411
|
+
* Form row options type
|
|
412
|
+
*/
|
|
413
|
+
export type FormRowOptions = z.infer<typeof FormRowOptionsSchema>;
|
|
414
|
+
/**
|
|
415
|
+
* Form section options schema
|
|
416
|
+
*/
|
|
417
|
+
export declare const FormSectionOptionsSchema: z.ZodObject<{
|
|
418
|
+
title: z.ZodOptional<z.ZodString>;
|
|
419
|
+
description: z.ZodOptional<z.ZodString>;
|
|
420
|
+
className: z.ZodOptional<z.ZodString>;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
/**
|
|
423
|
+
* Form section options type
|
|
424
|
+
*/
|
|
425
|
+
export type FormSectionOptions = z.infer<typeof FormSectionOptionsSchema>;
|
|
426
|
+
/**
|
|
427
|
+
* Form actions options schema
|
|
428
|
+
*/
|
|
429
|
+
export declare const FormActionsOptionsSchema: z.ZodObject<{
|
|
430
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
431
|
+
center: "center";
|
|
432
|
+
left: "left";
|
|
433
|
+
right: "right";
|
|
434
|
+
between: "between";
|
|
435
|
+
}>>;
|
|
436
|
+
className: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, z.core.$strict>;
|
|
438
|
+
/**
|
|
439
|
+
* Form actions options type
|
|
440
|
+
*/
|
|
441
|
+
export type FormActionsOptions = z.infer<typeof FormActionsOptionsSchema>;
|