@mastra/playground-ui 0.0.0-commonjs-20250414101718
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.md +46 -0
- package/dist/components/assistant-ui/assistant-message.d.ts +6 -0
- package/dist/components/assistant-ui/assistant-modal.d.ts +3 -0
- package/dist/components/assistant-ui/assistant-sidebar.d.ts +3 -0
- package/dist/components/assistant-ui/attachment.d.ts +5 -0
- package/dist/components/assistant-ui/markdown-text.d.ts +2 -0
- package/dist/components/assistant-ui/syntax-highlighter.d.ts +1 -0
- package/dist/components/assistant-ui/thread-list.d.ts +3 -0
- package/dist/components/assistant-ui/thread.d.ts +7 -0
- package/dist/components/assistant-ui/tool-fallback.d.ts +3 -0
- package/dist/components/assistant-ui/tooltip-icon-button.d.ts +10 -0
- package/dist/components/assistant-ui/user-message.d.ts +3 -0
- package/dist/components/dynamic-form/index.d.ts +11 -0
- package/dist/components/dynamic-form/utils.d.ts +8 -0
- package/dist/components/icons/agent-icon.d.ts +3 -0
- package/dist/components/icons/automation-icon.d.ts +3 -0
- package/dist/components/syntax-highlighter.d.ts +4 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/autoform/AutoForm.d.ts +13 -0
- package/dist/components/ui/autoform/components/ArrayElementWrapper.d.ts +4 -0
- package/dist/components/ui/autoform/components/ArrayWrapper.d.ts +4 -0
- package/dist/components/ui/autoform/components/BooleanField.d.ts +4 -0
- package/dist/components/ui/autoform/components/DateField.d.ts +4 -0
- package/dist/components/ui/autoform/components/ErrorMessage.d.ts +5 -0
- package/dist/components/ui/autoform/components/FieldWrapper.d.ts +4 -0
- package/dist/components/ui/autoform/components/Form.d.ts +3 -0
- package/dist/components/ui/autoform/components/NumberField.d.ts +4 -0
- package/dist/components/ui/autoform/components/ObjectWrapper.d.ts +4 -0
- package/dist/components/ui/autoform/components/RecordField.d.ts +4 -0
- package/dist/components/ui/autoform/components/SelectField.d.ts +4 -0
- package/dist/components/ui/autoform/components/StringField.d.ts +4 -0
- package/dist/components/ui/autoform/components/SubmitButton.d.ts +5 -0
- package/dist/components/ui/autoform/index.d.ts +4 -0
- package/dist/components/ui/autoform/types.d.ts +5 -0
- package/dist/components/ui/autoform/utils.d.ts +1 -0
- package/dist/components/ui/autoform/zodProvider/field-type-inference.d.ts +4 -0
- package/dist/components/ui/autoform/zodProvider/index.d.ts +9 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/code-block.d.ts +7 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/command.d.ts +78 -0
- package/dist/components/ui/copy-button.d.ts +7 -0
- package/dist/components/ui/copyable-content.d.ts +7 -0
- package/dist/components/ui/data-table.d.ts +72 -0
- package/dist/components/ui/date-picker.d.ts +23 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/formatted-date.d.ts +3 -0
- package/dist/components/ui/input.d.ts +12 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/markdown-renderer.d.ts +5 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/score-indicator.d.ts +3 -0
- package/dist/components/ui/scroll-area.d.ts +10 -0
- package/dist/components/ui/select.d.ts +9 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/spinner.d.ts +5 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/syntax-highlighter.d.ts +5 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/text.d.ts +13 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/domains/agents/agent/agent-chat.d.ts +3 -0
- package/dist/domains/agents/agent/agent-evals.d.ts +4 -0
- package/dist/domains/agents/agent/agent-traces.d.ts +7 -0
- package/dist/domains/agents/agent/context/agent-context.d.ts +13 -0
- package/dist/domains/agents/agents-table.d.ts +7 -0
- package/dist/domains/agents/index.d.ts +5 -0
- package/dist/domains/networks/index.d.ts +1 -0
- package/dist/domains/networks/network-chat.d.ts +3 -0
- package/dist/domains/networks/tool-fallback.d.ts +3 -0
- package/dist/domains/resizable-panel.d.ts +12 -0
- package/dist/domains/traces/context/trace-context.d.ts +24 -0
- package/dist/domains/traces/index.d.ts +5 -0
- package/dist/domains/traces/mock-data.d.ts +1356 -0
- package/dist/domains/traces/trace-details.d.ts +1 -0
- package/dist/domains/traces/trace-span-details.d.ts +1 -0
- package/dist/domains/traces/trace-span-view.d.ts +8 -0
- package/dist/domains/traces/trace-tree-view.d.ts +6 -0
- package/dist/domains/traces/types.d.ts +49 -0
- package/dist/domains/traces/utils.d.ts +15 -0
- package/dist/domains/workflows/context/workflow-nested-graph-context.d.ts +13 -0
- package/dist/domains/workflows/context/workflow-run-context.d.ts +14 -0
- package/dist/domains/workflows/index.d.ts +5 -0
- package/dist/domains/workflows/workflow/utils.d.ts +41 -0
- package/dist/domains/workflows/workflow/workflow-after-node.d.ts +6 -0
- package/dist/domains/workflows/workflow/workflow-condition-node.d.ts +7 -0
- package/dist/domains/workflows/workflow/workflow-default-node.d.ts +9 -0
- package/dist/domains/workflows/workflow/workflow-graph-inner.d.ts +5 -0
- package/dist/domains/workflows/workflow/workflow-graph.d.ts +5 -0
- package/dist/domains/workflows/workflow/workflow-loop-result-node.d.ts +6 -0
- package/dist/domains/workflows/workflow/workflow-nested-graph.d.ts +6 -0
- package/dist/domains/workflows/workflow/workflow-nested-node.d.ts +11 -0
- package/dist/domains/workflows/workflow/workflow-traces.d.ts +7 -0
- package/dist/domains/workflows/workflow/workflow-trigger.d.ts +5 -0
- package/dist/domains/workflows/workflows-table.d.ts +7 -0
- package/dist/ds/components/Badge/Badge.d.ts +9 -0
- package/dist/ds/components/Badge/index.d.ts +1 -0
- package/dist/ds/components/Breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/ds/components/Breadcrumb/index.d.ts +1 -0
- package/dist/ds/components/Button/Button.d.ts +11 -0
- package/dist/ds/components/Button/index.d.ts +1 -0
- package/dist/ds/components/Header/Header.d.ts +9 -0
- package/dist/ds/components/Header/index.d.ts +1 -0
- package/dist/ds/components/Logo/MastraLogo.d.ts +3 -0
- package/dist/ds/components/Logo/index.d.ts +1 -0
- package/dist/ds/components/Table/Cells.d.ts +24 -0
- package/dist/ds/components/Table/Table.d.ts +29 -0
- package/dist/ds/components/Table/index.d.ts +2 -0
- package/dist/ds/components/Table/utils.d.ts +4 -0
- package/dist/ds/components/Txt/Txt.d.ts +9 -0
- package/dist/ds/components/Txt/index.d.ts +1 -0
- package/dist/ds/components/types.d.ts +4 -0
- package/dist/ds/icons/AgentIcon.d.ts +3 -0
- package/dist/ds/icons/AiIcon.d.ts +3 -0
- package/dist/ds/icons/ApiIcon.d.ts +3 -0
- package/dist/ds/icons/BranchIcon.d.ts +3 -0
- package/dist/ds/icons/CheckIcon.d.ts +3 -0
- package/dist/ds/icons/CommitIcon.d.ts +3 -0
- package/dist/ds/icons/CrossIcon.d.ts +3 -0
- package/dist/ds/icons/DbIcon.d.ts +3 -0
- package/dist/ds/icons/DebugIcon.d.ts +3 -0
- package/dist/ds/icons/DeploymentIcon.d.ts +3 -0
- package/dist/ds/icons/DividerIcon.d.ts +3 -0
- package/dist/ds/icons/DocsIcon.d.ts +3 -0
- package/dist/ds/icons/EnvIcon.d.ts +3 -0
- package/dist/ds/icons/FiltersIcon.d.ts +3 -0
- package/dist/ds/icons/HomeIcon.d.ts +3 -0
- package/dist/ds/icons/Icon.d.ts +7 -0
- package/dist/ds/icons/InfoIcon.d.ts +3 -0
- package/dist/ds/icons/JudgeIcon.d.ts +3 -0
- package/dist/ds/icons/LogsIcon.d.ts +3 -0
- package/dist/ds/icons/MemoryIcon.d.ts +3 -0
- package/dist/ds/icons/OpenAIIcon.d.ts +3 -0
- package/dist/ds/icons/PromptIcon.d.ts +3 -0
- package/dist/ds/icons/ScoreIcon.d.ts +3 -0
- package/dist/ds/icons/SettingsIcon.d.ts +3 -0
- package/dist/ds/icons/SlashIcon.d.ts +3 -0
- package/dist/ds/icons/ToolsIcon.d.ts +3 -0
- package/dist/ds/icons/TraceIcon.d.ts +3 -0
- package/dist/ds/icons/TsIcon.d.ts +3 -0
- package/dist/ds/icons/VariablesIcon.d.ts +3 -0
- package/dist/ds/icons/WorkflowIcon.d.ts +3 -0
- package/dist/ds/tokens/borders.d.ts +9 -0
- package/dist/ds/tokens/colors.d.ts +23 -0
- package/dist/ds/tokens/fonts.d.ts +14 -0
- package/dist/ds/tokens/index.d.ts +5 -0
- package/dist/ds/tokens/sizes.d.ts +10 -0
- package/dist/ds/tokens/spacings.d.ts +5 -0
- package/dist/hooks/use-autoscroll.d.ts +6 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +9 -0
- package/dist/hooks/use-evals.d.ts +19 -0
- package/dist/hooks/use-resize-column.d.ts +13 -0
- package/dist/hooks/use-traces.d.ts +9 -0
- package/dist/hooks/use-workflows.d.ts +47 -0
- package/dist/index.cjs.js +8038 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.css +21 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.es.js +7972 -0
- package/dist/index.es.js.map +1 -0
- package/dist/lib/object.d.ts +50 -0
- package/dist/lib/pagination/types.d.ts +11 -0
- package/dist/lib/polls.d.ts +36 -0
- package/dist/lib/string.d.ts +2 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/services/mastra-runtime-provider.d.ts +6 -0
- package/dist/services/network-runtime-provider.d.ts +6 -0
- package/dist/tokens.cjs.js +85 -0
- package/dist/tokens.cjs.js.map +1 -0
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.es.js +73 -0
- package/dist/tokens.es.js.map +1 -0
- package/dist/types.d.ts +70 -0
- package/package.json +127 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Elastic License 2.0 (ELv2)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mastra AI, Inc.
|
|
4
|
+
|
|
5
|
+
**Acceptance**
|
|
6
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
7
|
+
|
|
8
|
+
**Copyright License**
|
|
9
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
|
|
10
|
+
|
|
11
|
+
**Limitations**
|
|
12
|
+
You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
|
|
13
|
+
|
|
14
|
+
You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
|
|
15
|
+
|
|
16
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
|
|
17
|
+
|
|
18
|
+
**Patents**
|
|
19
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
20
|
+
|
|
21
|
+
**Notices**
|
|
22
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
|
|
23
|
+
|
|
24
|
+
If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
|
|
25
|
+
|
|
26
|
+
**No Other Rights**
|
|
27
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
28
|
+
|
|
29
|
+
**Termination**
|
|
30
|
+
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
|
|
31
|
+
|
|
32
|
+
**No Liability**
|
|
33
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
34
|
+
|
|
35
|
+
**Definitions**
|
|
36
|
+
The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
|
|
37
|
+
|
|
38
|
+
_you_ refers to the individual or entity agreeing to these terms.
|
|
39
|
+
|
|
40
|
+
_your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
41
|
+
|
|
42
|
+
_your licenses_ are all the licenses granted to you for the software under these terms.
|
|
43
|
+
|
|
44
|
+
_use_ means anything you do with the software requiring one of your licenses.
|
|
45
|
+
|
|
46
|
+
_trademark_ means trademarks, service marks, and similar rights.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SyntaxHighlighter: import('../../../node_modules/@types/react').FC<import('@assistant-ui/react-markdown').SyntaxHighlighterProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps } from '../ui/button';
|
|
2
|
+
|
|
3
|
+
export type TooltipIconButtonProps = ButtonProps & {
|
|
4
|
+
tooltip: string;
|
|
5
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
};
|
|
7
|
+
export declare const TooltipIconButton: import('../../../node_modules/@types/react').ForwardRefExoticComponent<ButtonProps & {
|
|
8
|
+
tooltip: string;
|
|
9
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
10
|
+
} & import('../../../node_modules/@types/react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
|
|
3
|
+
interface DynamicFormProps<T extends z.ZodSchema> {
|
|
4
|
+
schema: T;
|
|
5
|
+
onSubmit: (values: z.infer<T>) => void | Promise<void>;
|
|
6
|
+
defaultValues?: z.infer<T>;
|
|
7
|
+
isSubmitLoading?: boolean;
|
|
8
|
+
submitButtonLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve serialized zod output - This function takes the string output ot the `jsonSchemaToZod` function
|
|
3
|
+
* and instantiates the zod object correctly.
|
|
4
|
+
*
|
|
5
|
+
* @param obj - serialized zod object
|
|
6
|
+
* @returns resolved zod object
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveSerializedZodOutput(obj: any): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
import { AutoFormProps } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const ShadcnAutoFormFieldComponents: {
|
|
5
|
+
readonly string: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
6
|
+
readonly number: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
7
|
+
readonly boolean: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
8
|
+
readonly date: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
9
|
+
readonly select: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
10
|
+
readonly record: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
11
|
+
};
|
|
12
|
+
export type FieldTypes = keyof typeof ShadcnAutoFormFieldComponents;
|
|
13
|
+
export declare function AutoForm<T extends Record<string, any>>({ uiComponents, formComponents, ...props }: AutoFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { default as React } from '../../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export declare const Form: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & React.RefAttributes<HTMLFormElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fieldConfig: (config: import('@autoform/core').FieldConfig<import('../../../../node_modules/@types/react').ReactNode, "string" | "number" | "boolean" | "select" | "date" | "record", import('../../../../node_modules/@types/react').ComponentType<import('@autoform/react').FieldWrapperProps>, {}>) => import('@autoform/zod').SuperRefineFunction;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParsedSchema } from '@autoform/core';
|
|
2
|
+
import { ZodObjectOrWrapped, ZodProvider } from '@autoform/zod';
|
|
3
|
+
|
|
4
|
+
export declare function parseSchema(schema: ZodObjectOrWrapped): ParsedSchema;
|
|
5
|
+
export declare class CustomZodProvider<T extends ZodObjectOrWrapped> extends ZodProvider<T> {
|
|
6
|
+
private _schema;
|
|
7
|
+
constructor(schema: T);
|
|
8
|
+
parseSchema(): ParsedSchema;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const badgeVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DayPicker } from 'react-day-picker';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
2
|
+
declare const Collapsible: import('../../../node_modules/@types/react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import('../../../node_modules/@types/react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CollapsibleTrigger: import('../../../node_modules/@types/react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import('../../../node_modules/@types/react').RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const CollapsibleContent: import('../../../node_modules/@types/react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import('../../../node_modules/@types/react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
+
} & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
+
label?: string;
|
|
10
|
+
shouldFilter?: boolean;
|
|
11
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
disablePointerSelection?: boolean;
|
|
17
|
+
vimBindings?: boolean;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
20
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
21
|
+
} & {
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
24
|
+
value?: string;
|
|
25
|
+
onValueChange?: (search: string) => void;
|
|
26
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
30
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
31
|
+
} & {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
34
|
+
label?: string;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
39
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
40
|
+
} & {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
50
|
+
heading?: React.ReactNode;
|
|
51
|
+
value?: string;
|
|
52
|
+
forceMount?: boolean;
|
|
53
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
} & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
59
|
+
alwaysRender?: boolean;
|
|
60
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
62
|
+
children?: React.ReactNode;
|
|
63
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
64
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
65
|
+
} & {
|
|
66
|
+
asChild?: boolean;
|
|
67
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
onSelect?: (value: string) => void;
|
|
70
|
+
value?: string;
|
|
71
|
+
keywords?: string[];
|
|
72
|
+
forceMount?: boolean;
|
|
73
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
declare const CommandShortcut: {
|
|
75
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
78
|
+
export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { PaginationResult } from '../../lib/pagination/types';
|
|
3
|
+
|
|
4
|
+
interface DataTableProps<TData, TValue> {
|
|
5
|
+
/**
|
|
6
|
+
* table title
|
|
7
|
+
*/
|
|
8
|
+
title?: string | React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* table icon
|
|
11
|
+
*/
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* disable table border
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
withoutBorder?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* table columns
|
|
20
|
+
*/
|
|
21
|
+
columns: ColumnDef<TData, TValue>[];
|
|
22
|
+
/**
|
|
23
|
+
* table data
|
|
24
|
+
*/
|
|
25
|
+
data: TData[];
|
|
26
|
+
/**
|
|
27
|
+
* custom className for the table parent container
|
|
28
|
+
*/
|
|
29
|
+
className?: string;
|
|
30
|
+
pagination?: PaginationResult;
|
|
31
|
+
/**
|
|
32
|
+
* goto next page
|
|
33
|
+
*/
|
|
34
|
+
gotoNextPage?: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* goto previous page
|
|
37
|
+
*/
|
|
38
|
+
gotoPreviousPage?: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* disable table container radius
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
withoutRadius?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* disable flex container
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
disabledFlex?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* height of the table row when there are no results
|
|
51
|
+
* @default '96px'
|
|
52
|
+
*/
|
|
53
|
+
emptyStateHeight?: string;
|
|
54
|
+
/**
|
|
55
|
+
* get the row id
|
|
56
|
+
*/
|
|
57
|
+
getRowId?: (row: TData) => string;
|
|
58
|
+
/**
|
|
59
|
+
* selected row id to use for row selection
|
|
60
|
+
*/
|
|
61
|
+
selectedRowId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* loading state
|
|
64
|
+
*/
|
|
65
|
+
isLoading?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* text to display when there are no results
|
|
68
|
+
*/
|
|
69
|
+
emptyText?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const DataTable: <TData, TValue>({ icon, withoutBorder, columns, data, className, pagination, gotoNextPage, gotoPreviousPage, withoutRadius, disabledFlex, emptyStateHeight, getRowId, selectedRowId, isLoading, emptyText, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DayPickerSingleProps } from 'react-day-picker';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type CommonProps = Omit<DayPickerSingleProps, 'mode' | 'selected' | 'onSelect'> & {
|
|
4
|
+
value: Date | undefined | null;
|
|
5
|
+
setValue: (date: Date | undefined | null) => void;
|
|
6
|
+
clearable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type DatePickerProps = (CommonProps & {
|
|
9
|
+
children?: never;
|
|
10
|
+
className?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
}) | (CommonProps & {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: never;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
});
|
|
17
|
+
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
18
|
+
export declare const DatePickerOnly: ({ value, setValue, setOpenPopover, clearable, placeholder, className, ...props }: CommonProps & {
|
|
19
|
+
setOpenPopover?: (open: boolean) => void;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogHeader: {
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogFooter: {
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const useFormField: () => {
|
|
7
|
+
invalid: boolean;
|
|
8
|
+
isDirty: boolean;
|
|
9
|
+
isTouched: boolean;
|
|
10
|
+
isValidating: boolean;
|
|
11
|
+
error?: import('react-hook-form').FieldError;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
formItemId: string;
|
|
15
|
+
formDescriptionId: string;
|
|
16
|
+
formMessageId: string;
|
|
17
|
+
};
|
|
18
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
20
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-slot').SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
21
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField };
|