@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,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alert Component
|
|
3
|
-
*
|
|
4
|
-
* Notification and message display components.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Alert variant styles
|
|
8
|
-
*/
|
|
9
|
-
export type AlertVariant = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
10
|
-
/**
|
|
11
|
-
* Alert component options
|
|
12
|
-
*/
|
|
13
|
-
export interface AlertOptions {
|
|
14
|
-
/** Alert variant */
|
|
15
|
-
variant?: AlertVariant;
|
|
16
|
-
/** Alert title */
|
|
17
|
-
title?: string;
|
|
18
|
-
/** Show icon */
|
|
19
|
-
showIcon?: boolean;
|
|
20
|
-
/** Custom icon (overrides default) */
|
|
21
|
-
icon?: string;
|
|
22
|
-
/** Dismissible alert */
|
|
23
|
-
dismissible?: boolean;
|
|
24
|
-
/** Additional CSS classes */
|
|
25
|
-
className?: string;
|
|
26
|
-
/** Alert ID */
|
|
27
|
-
id?: string;
|
|
28
|
-
/** Actions (buttons) */
|
|
29
|
-
actions?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Build an alert component
|
|
33
|
-
*/
|
|
34
|
-
export declare function alert(message: string, options?: AlertOptions): string;
|
|
35
|
-
/** Info alert shorthand */
|
|
36
|
-
export declare const infoAlert: (message: string, opts?: Omit<AlertOptions, "variant">) => string;
|
|
37
|
-
/** Success alert shorthand */
|
|
38
|
-
export declare const successAlert: (message: string, opts?: Omit<AlertOptions, "variant">) => string;
|
|
39
|
-
/** Warning alert shorthand */
|
|
40
|
-
export declare const warningAlert: (message: string, opts?: Omit<AlertOptions, "variant">) => string;
|
|
41
|
-
/** Danger/error alert shorthand */
|
|
42
|
-
export declare const dangerAlert: (message: string, opts?: Omit<AlertOptions, "variant">) => string;
|
|
43
|
-
/**
|
|
44
|
-
* Toast notification options
|
|
45
|
-
*/
|
|
46
|
-
export interface ToastOptions {
|
|
47
|
-
/** Toast variant */
|
|
48
|
-
variant?: AlertVariant;
|
|
49
|
-
/** Toast title */
|
|
50
|
-
title?: string;
|
|
51
|
-
/** Duration in ms (0 = no auto-dismiss) */
|
|
52
|
-
duration?: number;
|
|
53
|
-
/** Position */
|
|
54
|
-
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
55
|
-
/** Toast ID */
|
|
56
|
-
id?: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Build a toast notification
|
|
60
|
-
*/
|
|
61
|
-
export declare function toast(message: string, options?: ToastOptions): string;
|
|
62
|
-
/**
|
|
63
|
-
* Build a toast container (for multiple toasts)
|
|
64
|
-
*/
|
|
65
|
-
export declare function toastContainer(position?: ToastOptions['position'], id?: string): string;
|
|
66
|
-
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oBAAoB;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAyDD;;GAEG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,MAAM,CA2CzE;AAMD,2BAA2B;AAC3B,eAAO,MAAM,SAAS,GAAI,SAAS,MAAM,EAAE,OAAO,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,WACjC,CAAC;AAE/C,8BAA8B;AAC9B,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,EAAE,OAAO,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,WACjC,CAAC;AAElD,8BAA8B;AAC9B,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,EAAE,OAAO,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,WACjC,CAAC;AAElD,mCAAmC;AACnC,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,OAAO,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,WACjC,CAAC;AAMjD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oBAAoB;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe;IACf,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,YAAY,GAAG,eAAe,CAAC;IACtG,eAAe;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,MAAM,CAyDzE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,GAAE,YAAY,CAAC,UAAU,CAAe,EAAE,EAAE,SAAoB,GAAG,MAAM,CAW/G"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file alert.schema.ts
|
|
3
|
-
* @description Zod schemas for Alert and Toast component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for alert options including variants,
|
|
6
|
-
* dismissible alerts, and toast notifications with positioning.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { AlertOptionsSchema, ToastOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const alertResult = AlertOptionsSchema.safeParse({ variant: 'success' });
|
|
13
|
-
* const toastResult = ToastOptionsSchema.safeParse({ position: 'top-right' });
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @module @frontmcp/ui/components/alert.schema
|
|
17
|
-
*/
|
|
18
|
-
import { z } from 'zod';
|
|
19
|
-
/**
|
|
20
|
-
* Alert variant enum schema
|
|
21
|
-
*/
|
|
22
|
-
export declare const AlertVariantSchema: z.ZodEnum<{
|
|
23
|
-
danger: "danger";
|
|
24
|
-
success: "success";
|
|
25
|
-
warning: "warning";
|
|
26
|
-
info: "info";
|
|
27
|
-
neutral: "neutral";
|
|
28
|
-
}>;
|
|
29
|
-
/**
|
|
30
|
-
* Alert variant type
|
|
31
|
-
*/
|
|
32
|
-
export type AlertVariant = z.infer<typeof AlertVariantSchema>;
|
|
33
|
-
/**
|
|
34
|
-
* Complete alert options schema
|
|
35
|
-
*/
|
|
36
|
-
export declare const AlertOptionsSchema: z.ZodObject<{
|
|
37
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
danger: "danger";
|
|
39
|
-
success: "success";
|
|
40
|
-
warning: "warning";
|
|
41
|
-
info: "info";
|
|
42
|
-
neutral: "neutral";
|
|
43
|
-
}>>;
|
|
44
|
-
title: z.ZodOptional<z.ZodString>;
|
|
45
|
-
showIcon: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
47
|
-
dismissible: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
className: z.ZodOptional<z.ZodString>;
|
|
49
|
-
id: z.ZodOptional<z.ZodString>;
|
|
50
|
-
actions: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.core.$strict>;
|
|
52
|
-
/**
|
|
53
|
-
* Alert options type (derived from schema)
|
|
54
|
-
*/
|
|
55
|
-
export type AlertOptions = z.infer<typeof AlertOptionsSchema>;
|
|
56
|
-
/**
|
|
57
|
-
* Toast position enum schema
|
|
58
|
-
*/
|
|
59
|
-
export declare const ToastPositionSchema: z.ZodEnum<{
|
|
60
|
-
"top-right": "top-right";
|
|
61
|
-
"top-left": "top-left";
|
|
62
|
-
"bottom-right": "bottom-right";
|
|
63
|
-
"bottom-left": "bottom-left";
|
|
64
|
-
"top-center": "top-center";
|
|
65
|
-
"bottom-center": "bottom-center";
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
* Toast position type
|
|
69
|
-
*/
|
|
70
|
-
export type ToastPosition = z.infer<typeof ToastPositionSchema>;
|
|
71
|
-
/**
|
|
72
|
-
* Complete toast options schema
|
|
73
|
-
*/
|
|
74
|
-
export declare const ToastOptionsSchema: z.ZodObject<{
|
|
75
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
danger: "danger";
|
|
77
|
-
success: "success";
|
|
78
|
-
warning: "warning";
|
|
79
|
-
info: "info";
|
|
80
|
-
neutral: "neutral";
|
|
81
|
-
}>>;
|
|
82
|
-
title: z.ZodOptional<z.ZodString>;
|
|
83
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
position: z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
"top-right": "top-right";
|
|
86
|
-
"top-left": "top-left";
|
|
87
|
-
"bottom-right": "bottom-right";
|
|
88
|
-
"bottom-left": "bottom-left";
|
|
89
|
-
"top-center": "top-center";
|
|
90
|
-
"bottom-center": "bottom-center";
|
|
91
|
-
}>>;
|
|
92
|
-
id: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$strict>;
|
|
94
|
-
/**
|
|
95
|
-
* Toast options type (derived from schema)
|
|
96
|
-
*/
|
|
97
|
-
export type ToastOptions = z.infer<typeof ToastOptionsSchema>;
|
|
98
|
-
//# sourceMappingURL=alert.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.schema.d.ts","sourceRoot":"","sources":["../../../src/components/alert.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;EAA8D,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;kBAmBpB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;EAO9B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMhE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;kBAapB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Avatar Component
|
|
3
|
-
*
|
|
4
|
-
* User avatars and avatar groups.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Avatar size options
|
|
8
|
-
*/
|
|
9
|
-
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
10
|
-
/**
|
|
11
|
-
* Avatar shape options
|
|
12
|
-
*/
|
|
13
|
-
export type AvatarShape = 'circle' | 'square' | 'rounded';
|
|
14
|
-
/**
|
|
15
|
-
* Avatar status options
|
|
16
|
-
*/
|
|
17
|
-
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away' | 'none';
|
|
18
|
-
/**
|
|
19
|
-
* Avatar component options
|
|
20
|
-
*/
|
|
21
|
-
export interface AvatarOptions {
|
|
22
|
-
/** Image source URL */
|
|
23
|
-
src?: string;
|
|
24
|
-
/** Alt text / name */
|
|
25
|
-
alt: string;
|
|
26
|
-
/** Avatar size */
|
|
27
|
-
size?: AvatarSize;
|
|
28
|
-
/** Avatar shape */
|
|
29
|
-
shape?: AvatarShape;
|
|
30
|
-
/** Status indicator */
|
|
31
|
-
status?: AvatarStatus;
|
|
32
|
-
/** Additional CSS classes */
|
|
33
|
-
className?: string;
|
|
34
|
-
/** Click handler URL */
|
|
35
|
-
href?: string;
|
|
36
|
-
/** Custom initials (overrides auto-generation) */
|
|
37
|
-
initials?: string;
|
|
38
|
-
/** Background color for initials (CSS color) */
|
|
39
|
-
bgColor?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Build an avatar component
|
|
43
|
-
*/
|
|
44
|
-
export declare function avatar(options: AvatarOptions): string;
|
|
45
|
-
/**
|
|
46
|
-
* Avatar group options
|
|
47
|
-
*/
|
|
48
|
-
export interface AvatarGroupOptions {
|
|
49
|
-
/** Maximum visible avatars */
|
|
50
|
-
max?: number;
|
|
51
|
-
/** Avatar size */
|
|
52
|
-
size?: AvatarSize;
|
|
53
|
-
/** Overlap amount */
|
|
54
|
-
spacing?: 'tight' | 'normal' | 'loose';
|
|
55
|
-
/** Additional CSS classes */
|
|
56
|
-
className?: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Build an avatar group
|
|
60
|
-
*/
|
|
61
|
-
export declare function avatarGroup(avatars: AvatarOptions[], options?: AvatarGroupOptions): string;
|
|
62
|
-
/**
|
|
63
|
-
* Avatar with name/details options
|
|
64
|
-
*/
|
|
65
|
-
export interface AvatarWithTextOptions extends AvatarOptions {
|
|
66
|
-
/** Primary text (name) */
|
|
67
|
-
name: string;
|
|
68
|
-
/** Secondary text (email, role, etc.) */
|
|
69
|
-
subtitle?: string;
|
|
70
|
-
/** Text alignment */
|
|
71
|
-
align?: 'left' | 'right';
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Build avatar with name and details
|
|
75
|
-
*/
|
|
76
|
-
export declare function avatarWithText(options: AvatarWithTextOptions): string;
|
|
77
|
-
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,uBAAuB;IACvB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAqFD;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CA2CrD;AAMD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,OAAO,GAAE,kBAAuB,GAAG,MAAM,CAmC9F;AAMD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAkBrE"}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file avatar.schema.ts
|
|
3
|
-
* @description Zod schemas for Avatar component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for avatar options including sizes,
|
|
6
|
-
* shapes, status indicators, and avatar groups with text.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { AvatarOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const result = AvatarOptionsSchema.safeParse({
|
|
13
|
-
* alt: 'John Doe',
|
|
14
|
-
* size: 'lg',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @module @frontmcp/ui/components/avatar.schema
|
|
19
|
-
*/
|
|
20
|
-
import { z } from 'zod';
|
|
21
|
-
/**
|
|
22
|
-
* Avatar size enum schema
|
|
23
|
-
*/
|
|
24
|
-
export declare const AvatarSizeSchema: z.ZodEnum<{
|
|
25
|
-
xs: "xs";
|
|
26
|
-
sm: "sm";
|
|
27
|
-
md: "md";
|
|
28
|
-
lg: "lg";
|
|
29
|
-
xl: "xl";
|
|
30
|
-
"2xl": "2xl";
|
|
31
|
-
}>;
|
|
32
|
-
/**
|
|
33
|
-
* Avatar size type
|
|
34
|
-
*/
|
|
35
|
-
export type AvatarSize = z.infer<typeof AvatarSizeSchema>;
|
|
36
|
-
/**
|
|
37
|
-
* Avatar shape enum schema
|
|
38
|
-
*/
|
|
39
|
-
export declare const AvatarShapeSchema: z.ZodEnum<{
|
|
40
|
-
circle: "circle";
|
|
41
|
-
square: "square";
|
|
42
|
-
rounded: "rounded";
|
|
43
|
-
}>;
|
|
44
|
-
/**
|
|
45
|
-
* Avatar shape type
|
|
46
|
-
*/
|
|
47
|
-
export type AvatarShape = z.infer<typeof AvatarShapeSchema>;
|
|
48
|
-
/**
|
|
49
|
-
* Avatar status enum schema
|
|
50
|
-
*/
|
|
51
|
-
export declare const AvatarStatusSchema: z.ZodEnum<{
|
|
52
|
-
online: "online";
|
|
53
|
-
offline: "offline";
|
|
54
|
-
busy: "busy";
|
|
55
|
-
away: "away";
|
|
56
|
-
none: "none";
|
|
57
|
-
}>;
|
|
58
|
-
/**
|
|
59
|
-
* Avatar status type
|
|
60
|
-
*/
|
|
61
|
-
export type AvatarStatus = z.infer<typeof AvatarStatusSchema>;
|
|
62
|
-
/**
|
|
63
|
-
* Complete avatar options schema
|
|
64
|
-
*/
|
|
65
|
-
export declare const AvatarOptionsSchema: z.ZodObject<{
|
|
66
|
-
src: z.ZodOptional<z.ZodString>;
|
|
67
|
-
alt: z.ZodString;
|
|
68
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
xs: "xs";
|
|
70
|
-
sm: "sm";
|
|
71
|
-
md: "md";
|
|
72
|
-
lg: "lg";
|
|
73
|
-
xl: "xl";
|
|
74
|
-
"2xl": "2xl";
|
|
75
|
-
}>>;
|
|
76
|
-
shape: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
circle: "circle";
|
|
78
|
-
square: "square";
|
|
79
|
-
rounded: "rounded";
|
|
80
|
-
}>>;
|
|
81
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
82
|
-
online: "online";
|
|
83
|
-
offline: "offline";
|
|
84
|
-
busy: "busy";
|
|
85
|
-
away: "away";
|
|
86
|
-
none: "none";
|
|
87
|
-
}>>;
|
|
88
|
-
className: z.ZodOptional<z.ZodString>;
|
|
89
|
-
href: z.ZodOptional<z.ZodString>;
|
|
90
|
-
initials: z.ZodOptional<z.ZodString>;
|
|
91
|
-
bgColor: z.ZodOptional<z.ZodString>;
|
|
92
|
-
}, z.core.$strict>;
|
|
93
|
-
/**
|
|
94
|
-
* Avatar options type (derived from schema)
|
|
95
|
-
*/
|
|
96
|
-
export type AvatarOptions = z.infer<typeof AvatarOptionsSchema>;
|
|
97
|
-
/**
|
|
98
|
-
* Avatar group spacing schema
|
|
99
|
-
*/
|
|
100
|
-
export declare const AvatarSpacingSchema: z.ZodEnum<{
|
|
101
|
-
tight: "tight";
|
|
102
|
-
normal: "normal";
|
|
103
|
-
loose: "loose";
|
|
104
|
-
}>;
|
|
105
|
-
/**
|
|
106
|
-
* Avatar group options schema
|
|
107
|
-
*/
|
|
108
|
-
export declare const AvatarGroupOptionsSchema: z.ZodObject<{
|
|
109
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
xs: "xs";
|
|
112
|
-
sm: "sm";
|
|
113
|
-
md: "md";
|
|
114
|
-
lg: "lg";
|
|
115
|
-
xl: "xl";
|
|
116
|
-
"2xl": "2xl";
|
|
117
|
-
}>>;
|
|
118
|
-
spacing: z.ZodOptional<z.ZodEnum<{
|
|
119
|
-
tight: "tight";
|
|
120
|
-
normal: "normal";
|
|
121
|
-
loose: "loose";
|
|
122
|
-
}>>;
|
|
123
|
-
className: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, z.core.$strict>;
|
|
125
|
-
/**
|
|
126
|
-
* Avatar group options type
|
|
127
|
-
*/
|
|
128
|
-
export type AvatarGroupOptions = z.infer<typeof AvatarGroupOptionsSchema>;
|
|
129
|
-
/**
|
|
130
|
-
* Avatar with text options schema
|
|
131
|
-
*/
|
|
132
|
-
export declare const AvatarWithTextOptionsSchema: z.ZodObject<{
|
|
133
|
-
src: z.ZodOptional<z.ZodString>;
|
|
134
|
-
alt: z.ZodString;
|
|
135
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
136
|
-
xs: "xs";
|
|
137
|
-
sm: "sm";
|
|
138
|
-
md: "md";
|
|
139
|
-
lg: "lg";
|
|
140
|
-
xl: "xl";
|
|
141
|
-
"2xl": "2xl";
|
|
142
|
-
}>>;
|
|
143
|
-
shape: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
circle: "circle";
|
|
145
|
-
square: "square";
|
|
146
|
-
rounded: "rounded";
|
|
147
|
-
}>>;
|
|
148
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
149
|
-
online: "online";
|
|
150
|
-
offline: "offline";
|
|
151
|
-
busy: "busy";
|
|
152
|
-
away: "away";
|
|
153
|
-
none: "none";
|
|
154
|
-
}>>;
|
|
155
|
-
className: z.ZodOptional<z.ZodString>;
|
|
156
|
-
href: z.ZodOptional<z.ZodString>;
|
|
157
|
-
initials: z.ZodOptional<z.ZodString>;
|
|
158
|
-
bgColor: z.ZodOptional<z.ZodString>;
|
|
159
|
-
name: z.ZodString;
|
|
160
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
161
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
162
|
-
left: "left";
|
|
163
|
-
right: "right";
|
|
164
|
-
}>>;
|
|
165
|
-
}, z.core.$strict>;
|
|
166
|
-
/**
|
|
167
|
-
* Avatar with text options type
|
|
168
|
-
*/
|
|
169
|
-
export type AvatarWithTextOptions = z.infer<typeof AvatarWithTextOptionsSchema>;
|
|
170
|
-
//# sourceMappingURL=avatar.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.schema.d.ts","sourceRoot":"","sources":["../../../src/components/avatar.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;EAAgD,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;EAA0C,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;EAAwD,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqBrB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMhE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;EAAuC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;kBAW1B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM1E;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO7B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Badge Component
|
|
3
|
-
*
|
|
4
|
-
* Small status indicators and labels.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Badge variant styles
|
|
8
|
-
*/
|
|
9
|
-
export type BadgeVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'outline';
|
|
10
|
-
/**
|
|
11
|
-
* Badge size options
|
|
12
|
-
*/
|
|
13
|
-
export type BadgeSize = 'sm' | 'md' | 'lg';
|
|
14
|
-
/**
|
|
15
|
-
* Badge component options
|
|
16
|
-
*/
|
|
17
|
-
export interface BadgeOptions {
|
|
18
|
-
/** Badge variant */
|
|
19
|
-
variant?: BadgeVariant;
|
|
20
|
-
/** Badge size */
|
|
21
|
-
size?: BadgeSize;
|
|
22
|
-
/** Rounded pill style */
|
|
23
|
-
pill?: boolean;
|
|
24
|
-
/** Icon before text */
|
|
25
|
-
icon?: string;
|
|
26
|
-
/** Dot indicator (no text) */
|
|
27
|
-
dot?: boolean;
|
|
28
|
-
/** Additional CSS classes */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** Removable badge */
|
|
31
|
-
removable?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Build a badge component
|
|
35
|
-
*/
|
|
36
|
-
export declare function badge(text: string, options?: BadgeOptions): string;
|
|
37
|
-
/**
|
|
38
|
-
* Build a badge group
|
|
39
|
-
*/
|
|
40
|
-
export declare function badgeGroup(badges: string[], options?: {
|
|
41
|
-
gap?: 'sm' | 'md' | 'lg';
|
|
42
|
-
className?: string;
|
|
43
|
-
}): string;
|
|
44
|
-
/** Active status badge */
|
|
45
|
-
export declare const activeBadge: (text?: string) => string;
|
|
46
|
-
/** Inactive status badge */
|
|
47
|
-
export declare const inactiveBadge: (text?: string) => string;
|
|
48
|
-
/** Pending status badge */
|
|
49
|
-
export declare const pendingBadge: (text?: string) => string;
|
|
50
|
-
/** Error status badge */
|
|
51
|
-
export declare const errorBadge: (text?: string) => string;
|
|
52
|
-
/** New badge */
|
|
53
|
-
export declare const newBadge: (text?: string) => string;
|
|
54
|
-
/** Beta badge */
|
|
55
|
-
export declare const betaBadge: (text?: string) => string;
|
|
56
|
-
/** Online status dot */
|
|
57
|
-
export declare const onlineDot: (label?: string) => string;
|
|
58
|
-
/** Offline status dot */
|
|
59
|
-
export declare const offlineDot: (label?: string) => string;
|
|
60
|
-
/** Busy status dot */
|
|
61
|
-
export declare const busyDot: (label?: string) => string;
|
|
62
|
-
/** Away status dot */
|
|
63
|
-
export declare const awayDot: (label?: string) => string;
|
|
64
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oBAAoB;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AA4CD;;GAEG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,MAAM,CA8DtE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,MAAM,CAOnH;AAMD,0BAA0B;AAC1B,eAAO,MAAM,WAAW,GAAI,aAAe,WAAoD,CAAC;AAEhG,4BAA4B;AAC5B,eAAO,MAAM,aAAa,GAAI,aAAiB,WAAoD,CAAC;AAEpG,2BAA2B;AAC3B,eAAO,MAAM,YAAY,GAAI,aAAgB,WAAoD,CAAC;AAElG,yBAAyB;AACzB,eAAO,MAAM,UAAU,GAAI,aAAc,WAAmD,CAAC;AAE7F,gBAAgB;AAChB,eAAO,MAAM,QAAQ,GAAI,aAAY,WAAgE,CAAC;AAEtG,iBAAiB;AACjB,eAAO,MAAM,SAAS,GAAI,aAAa,WAAkE,CAAC;AAM1G,wBAAwB;AACxB,eAAO,MAAM,SAAS,GAAI,cAAgB,WAAoD,CAAC;AAE/F,yBAAyB;AACzB,eAAO,MAAM,UAAU,GAAI,cAAiB,WAAoD,CAAC;AAEjG,sBAAsB;AACtB,eAAO,MAAM,OAAO,GAAI,cAAc,WAAmD,CAAC;AAE1F,sBAAsB;AACtB,eAAO,MAAM,OAAO,GAAI,cAAc,WAAoD,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file badge.schema.ts
|
|
3
|
-
* @description Zod schemas for Badge component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for badge options including variants,
|
|
6
|
-
* sizes, dot indicators, and removable badges.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { BadgeOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const result = BadgeOptionsSchema.safeParse({ variant: 'success' });
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @module @frontmcp/ui/components/badge.schema
|
|
16
|
-
*/
|
|
17
|
-
import { z } from 'zod';
|
|
18
|
-
/**
|
|
19
|
-
* Badge variant enum schema
|
|
20
|
-
*/
|
|
21
|
-
export declare const BadgeVariantSchema: z.ZodEnum<{
|
|
22
|
-
primary: "primary";
|
|
23
|
-
secondary: "secondary";
|
|
24
|
-
outline: "outline";
|
|
25
|
-
danger: "danger";
|
|
26
|
-
success: "success";
|
|
27
|
-
default: "default";
|
|
28
|
-
warning: "warning";
|
|
29
|
-
info: "info";
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Badge variant type
|
|
33
|
-
*/
|
|
34
|
-
export type BadgeVariant = z.infer<typeof BadgeVariantSchema>;
|
|
35
|
-
/**
|
|
36
|
-
* Badge size enum schema
|
|
37
|
-
*/
|
|
38
|
-
export declare const BadgeSizeSchema: z.ZodEnum<{
|
|
39
|
-
sm: "sm";
|
|
40
|
-
md: "md";
|
|
41
|
-
lg: "lg";
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Badge size type
|
|
45
|
-
*/
|
|
46
|
-
export type BadgeSize = z.infer<typeof BadgeSizeSchema>;
|
|
47
|
-
/**
|
|
48
|
-
* Complete badge options schema
|
|
49
|
-
*/
|
|
50
|
-
export declare const BadgeOptionsSchema: z.ZodObject<{
|
|
51
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
primary: "primary";
|
|
53
|
-
secondary: "secondary";
|
|
54
|
-
outline: "outline";
|
|
55
|
-
danger: "danger";
|
|
56
|
-
success: "success";
|
|
57
|
-
default: "default";
|
|
58
|
-
warning: "warning";
|
|
59
|
-
info: "info";
|
|
60
|
-
}>>;
|
|
61
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
sm: "sm";
|
|
63
|
-
md: "md";
|
|
64
|
-
lg: "lg";
|
|
65
|
-
}>>;
|
|
66
|
-
pill: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
68
|
-
dot: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
className: z.ZodOptional<z.ZodString>;
|
|
70
|
-
removable: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
}, z.core.$strict>;
|
|
72
|
-
/**
|
|
73
|
-
* Badge options type (derived from schema)
|
|
74
|
-
*/
|
|
75
|
-
export type BadgeOptions = z.infer<typeof BadgeOptionsSchema>;
|
|
76
|
-
/**
|
|
77
|
-
* Badge group options schema
|
|
78
|
-
*/
|
|
79
|
-
export declare const BadgeGroupOptionsSchema: z.ZodObject<{
|
|
80
|
-
gap: z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
sm: "sm";
|
|
82
|
-
md: "md";
|
|
83
|
-
lg: "lg";
|
|
84
|
-
}>>;
|
|
85
|
-
className: z.ZodOptional<z.ZodString>;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
/**
|
|
88
|
-
* Badge group options type
|
|
89
|
-
*/
|
|
90
|
-
export type BadgeGroupOptions = z.infer<typeof BadgeGroupOptionsSchema>;
|
|
91
|
-
//# sourceMappingURL=badge.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.schema.d.ts","sourceRoot":"","sources":["../../../src/components/badge.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;EAS7B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe;;;;EAA6B,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;kBAiBpB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;kBAOzB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|