@flowtomic/ui 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/developer-panel/page.d.ts.map +1 -1
- package/dist/blocks/developer-panel/page.js +2 -2
- package/dist/components/atoms/actions/badge/badge.d.ts +1 -1
- package/dist/components/atoms/actions/button/button.d.ts +2 -2
- package/dist/components/atoms/animation/encrypted-text/encrypted-text.d.ts +57 -0
- package/dist/components/atoms/animation/encrypted-text/encrypted-text.d.ts.map +1 -0
- package/dist/components/atoms/animation/encrypted-text/encrypted-text.js +104 -0
- package/dist/components/atoms/animation/encrypted-text/index.d.ts +3 -0
- package/dist/components/atoms/animation/encrypted-text/index.d.ts.map +1 -0
- package/dist/components/atoms/animation/encrypted-text/index.js +1 -0
- package/dist/components/atoms/animation/index.d.ts +2 -0
- package/dist/components/atoms/animation/index.d.ts.map +1 -1
- package/dist/components/atoms/animation/index.js +1 -0
- package/dist/components/atoms/data-display/index.d.ts +2 -0
- package/dist/components/atoms/data-display/index.d.ts.map +1 -1
- package/dist/components/atoms/data-display/index.js +1 -0
- package/dist/components/atoms/data-display/qr-code/index.d.ts +3 -0
- package/dist/components/atoms/data-display/qr-code/index.d.ts.map +1 -0
- package/dist/components/atoms/data-display/qr-code/index.js +1 -0
- package/dist/components/atoms/data-display/qr-code/qr-code.d.ts +18 -0
- package/dist/components/atoms/data-display/qr-code/qr-code.d.ts.map +1 -0
- package/dist/components/atoms/data-display/qr-code/qr-code.js +79 -0
- package/dist/components/atoms/feedback/tooltip/index.d.ts +1 -1
- package/dist/components/atoms/feedback/tooltip/index.d.ts.map +1 -1
- package/dist/components/atoms/feedback/tooltip/index.js +1 -1
- package/dist/components/atoms/feedback/tooltip/tooltip.d.ts +42 -5
- package/dist/components/atoms/feedback/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/atoms/feedback/tooltip/tooltip.js +188 -5
- package/dist/components/atoms/forms/autocomplete/autocomplete-context.d.ts +29 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-context.d.ts.map +1 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-context.js +10 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-item.d.ts +16 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-item.d.ts.map +1 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-item.js +48 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-section.d.ts +14 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-section.d.ts.map +1 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete-section.js +13 -0
- package/dist/components/atoms/forms/autocomplete/autocomplete.d.ts +13 -9
- package/dist/components/atoms/forms/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/atoms/forms/autocomplete/autocomplete.js +295 -87
- package/dist/components/atoms/forms/autocomplete/index.d.ts +6 -0
- package/dist/components/atoms/forms/autocomplete/index.d.ts.map +1 -1
- package/dist/components/atoms/forms/autocomplete/index.js +3 -0
- package/dist/components/atoms/forms/index.d.ts +0 -2
- package/dist/components/atoms/forms/index.d.ts.map +1 -1
- package/dist/components/atoms/forms/index.js +0 -1
- package/dist/components/atoms/forms/input/input.d.ts +1 -1
- package/dist/components/atoms/forms/toggle/toggle.d.ts +1 -1
- package/dist/components/atoms/layout/sidebar/sidebar.d.ts +1 -1
- package/dist/components/atoms/navigation/command/command.d.ts +13 -13
- package/dist/components/atoms/navigation/tabs/tabs.js +2 -2
- package/dist/components/molecules/auth/auth-navigation-link/auth-navigation-link.d.ts +1 -11
- package/dist/components/molecules/auth/auth-navigation-link/auth-navigation-link.d.ts.map +1 -1
- package/dist/components/molecules/auth/auth-navigation-link/auth-navigation-link.js +2 -3
- package/dist/components/molecules/forms/autocomplete/autocomplete-context.d.ts +16 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-context.d.ts.map +1 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-context.js +14 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-item.d.ts +23 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-item.d.ts.map +1 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-item.js +29 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-section.d.ts +19 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-section.d.ts.map +1 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete-section.js +13 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete.d.ts +33 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/molecules/forms/autocomplete/autocomplete.js +101 -0
- package/dist/components/molecules/forms/autocomplete/index.d.ts +9 -0
- package/dist/components/molecules/forms/autocomplete/index.d.ts.map +1 -0
- package/dist/components/molecules/forms/autocomplete/index.js +4 -0
- package/dist/components/molecules/forms/item/item.d.ts +1 -1
- package/dist/components/molecules/forms/text-editor/index.d.ts +3 -0
- package/dist/components/molecules/forms/text-editor/index.d.ts.map +1 -0
- package/dist/components/molecules/forms/text-editor/index.js +1 -0
- package/dist/components/molecules/forms/text-editor/text-editor.d.ts +33 -0
- package/dist/components/molecules/forms/text-editor/text-editor.d.ts.map +1 -0
- package/dist/components/molecules/forms/text-editor/text-editor.js +211 -0
- package/dist/components/molecules/index.d.ts +4 -2
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/components/molecules/index.js +2 -1
- package/dist/components/molecules/navigation/menu-dock/menu-dock.d.ts +5 -0
- package/dist/components/molecules/navigation/menu-dock/menu-dock.d.ts.map +1 -1
- package/dist/components/molecules/navigation/menu-dock/menu-dock.js +103 -10
- package/dist/components/molecules/typography/index.d.ts +0 -2
- package/dist/components/molecules/typography/index.d.ts.map +1 -1
- package/dist/components/molecules/typography/index.js +1 -1
- package/dist/components/organisms/context/context.d.ts +4 -4
- package/dist/components/organisms/document-editor/document-editor.d.ts +43 -0
- package/dist/components/organisms/document-editor/document-editor.d.ts.map +1 -0
- package/dist/components/organisms/document-editor/document-editor.js +144 -0
- package/dist/components/organisms/document-editor/index.d.ts +3 -0
- package/dist/components/organisms/document-editor/index.d.ts.map +1 -0
- package/dist/components/organisms/document-editor/index.js +1 -0
- package/dist/components/organisms/form-layout/form-layout.d.ts +111 -0
- package/dist/components/organisms/form-layout/form-layout.d.ts.map +1 -0
- package/dist/components/organisms/form-layout/form-layout.js +83 -0
- package/dist/components/organisms/form-layout/index.d.ts +2 -0
- package/dist/components/organisms/form-layout/index.d.ts.map +1 -0
- package/dist/components/organisms/form-layout/index.js +1 -0
- package/dist/components/organisms/index.d.ts +4 -0
- package/dist/components/organisms/index.d.ts.map +1 -1
- package/dist/components/organisms/index.js +2 -0
- package/dist/components/organisms/model-selector/model-selector.d.ts +1 -1
- package/dist/index.js +623 -526
- package/dist/styles/globals.css +489 -0
- package/dist/styles/theme.css +1364 -0
- package/dist/styles/typography.css +430 -0
- package/package.json +45 -18
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Control, FieldPath, FieldValues, UseFormReturn } from "react-hook-form";
|
|
3
|
+
/**
|
|
4
|
+
* Tipos de campo suportados pelo FormLayout
|
|
5
|
+
*/
|
|
6
|
+
export type FormFieldType = "text" | "email" | "url" | "tel" | "password" | "textarea" | "number" | "currency" | "select" | "date" | "checkbox" | "switch" | "radio" | "slider" | "otp" | "toggle";
|
|
7
|
+
/**
|
|
8
|
+
* Configuração de um campo de formulário
|
|
9
|
+
* @template T - Tipo dos valores do formulário (FieldValues)
|
|
10
|
+
*/
|
|
11
|
+
export interface FormFieldConfig<T extends FieldValues> {
|
|
12
|
+
/** Nome do campo (deve corresponder a uma chave no formulário) */
|
|
13
|
+
name: FieldPath<T>;
|
|
14
|
+
/** Label exibido para o campo */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Tipo do campo de entrada */
|
|
17
|
+
type: FormFieldType;
|
|
18
|
+
/** Texto de placeholder para o campo */
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/** Descrição auxiliar exibida abaixo do campo */
|
|
21
|
+
description?: string;
|
|
22
|
+
/** Se o campo é obrigatório (exibe asterisco vermelho) */
|
|
23
|
+
required?: boolean;
|
|
24
|
+
/** Se o campo está desabilitado */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** Número de colunas que o campo deve ocupar (1-3, padrão: 3 = linha inteira) */
|
|
27
|
+
cols?: number;
|
|
28
|
+
/** Classes CSS adicionais */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Opções para campos do tipo "select" */
|
|
31
|
+
options?: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string | number;
|
|
34
|
+
}[] | string[];
|
|
35
|
+
/** Casas decimais para campos numéricos (padrão: 7) */
|
|
36
|
+
decimalScale?: number;
|
|
37
|
+
/** Prefixo para campos do tipo currency (ex: R$, US$) */
|
|
38
|
+
prefix?: string;
|
|
39
|
+
/** Opções para radio (quando type = "radio") */
|
|
40
|
+
radioOptions?: {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}[];
|
|
44
|
+
/** Quantidade de dígitos para OTP (padrão: 6) */
|
|
45
|
+
otpLength?: number;
|
|
46
|
+
/** Intervalo mínimo/máximo para slider */
|
|
47
|
+
sliderRange?: {
|
|
48
|
+
min: number;
|
|
49
|
+
max: number;
|
|
50
|
+
step?: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Configuração de uma seção do formulário
|
|
55
|
+
* @template T - Tipo dos valores do formulário (FieldValues)
|
|
56
|
+
*/
|
|
57
|
+
export interface FormSectionConfig<T extends FieldValues> {
|
|
58
|
+
/** Título da seção */
|
|
59
|
+
title?: string;
|
|
60
|
+
/** Descrição opcional da seção */
|
|
61
|
+
description?: string;
|
|
62
|
+
/** Lista de campos da seção */
|
|
63
|
+
fields: FormFieldConfig<T>[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Props do componente BaseFormField
|
|
67
|
+
* @template T - Tipo dos valores do formulário (FieldValues)
|
|
68
|
+
*/
|
|
69
|
+
export interface BaseFormFieldProps<T extends FieldValues> {
|
|
70
|
+
/** Configuração do campo */
|
|
71
|
+
config: FormFieldConfig<T>;
|
|
72
|
+
/** Control do React Hook Form */
|
|
73
|
+
control: Control<T>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Campo de formulário base que renderiza diferentes tipos de input
|
|
77
|
+
* baseado na configuração fornecida
|
|
78
|
+
*/
|
|
79
|
+
export declare function BaseFormField<T extends FieldValues>({ config, control }: BaseFormFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export declare namespace BaseFormField {
|
|
81
|
+
var displayName: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Props do componente FormLayout
|
|
85
|
+
* @template T - Tipo dos valores do formulário (FieldValues)
|
|
86
|
+
*/
|
|
87
|
+
export interface FormLayoutProps<T extends FieldValues> {
|
|
88
|
+
/** Instância do useForm do React Hook Form */
|
|
89
|
+
form: UseFormReturn<T>;
|
|
90
|
+
/** Seções do formulário com seus campos */
|
|
91
|
+
sections: FormSectionConfig<T>[];
|
|
92
|
+
/** Callback executado quando o formulário é submetido */
|
|
93
|
+
onSubmit: (values: T) => void;
|
|
94
|
+
/** ID opcional do formulário (útil para submit externo) */
|
|
95
|
+
formId?: string;
|
|
96
|
+
/** Título opcional do formulário */
|
|
97
|
+
title?: string;
|
|
98
|
+
/** Descrição opcional do formulário */
|
|
99
|
+
description?: string;
|
|
100
|
+
/** Conteúdo adicional no header (ex: botões de ação) */
|
|
101
|
+
headerContent?: React.ReactNode;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Layout de formulário com seções e campos configuráveis
|
|
105
|
+
* Suporta múltiplos tipos de campo e layout responsivo em grid
|
|
106
|
+
*/
|
|
107
|
+
export declare function FormLayout<T extends FieldValues>({ form, sections, onSubmit, formId, title, description, headerContent }: FormLayoutProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
export declare namespace FormLayout {
|
|
109
|
+
var displayName: string;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=form-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/form-layout/form-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAwCtF;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,OAAO,GACP,KAAK,GACL,KAAK,GACL,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,MAAM,GACN,UAAU,GACV,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,WAAW;IACpD,kEAAkE;IAClE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACnB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,E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,CAAC;IACjC,yDAAyD;IACzD,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,EAChD,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,WAAW,EACX,aAAa,EACd,EAAE,eAAe,CAAC,CAAC,CAAC,2CA0DpB;yBAlEe,UAAU"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { format } from "date-fns";
|
|
3
|
+
import { ptBR } from "date-fns/locale";
|
|
4
|
+
import { CalendarIcon } from "lucide-react";
|
|
5
|
+
import { NumericFormat } from "react-number-format";
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
import { Button, Calendar, Checkbox, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Popover, PopoverContent, PopoverTrigger, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Separator, Switch, RadioGroup, RadioGroupItem, Slider, Toggle, InputOTP, InputOTPGroup, InputOTPSlot, } from "../../atoms";
|
|
8
|
+
import { PasswordInput } from "@/components/molecules";
|
|
9
|
+
/**
|
|
10
|
+
* Campo de formulário base que renderiza diferentes tipos de input
|
|
11
|
+
* baseado na configuração fornecida
|
|
12
|
+
*/
|
|
13
|
+
export function BaseFormField({ config, control }) {
|
|
14
|
+
const { name, label, type, placeholder, description, required, options, decimalScale, disabled, prefix, radioOptions, otpLength, sliderRange } = config;
|
|
15
|
+
return (_jsx(FormField, { control: control, name: name, render: ({ field }) => (_jsxs(FormItem, { className: type === "checkbox" ? "flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4" : "", children: [type !== "checkbox" && (_jsxs(FormLabel, { children: [label, " ", required && _jsx("span", { className: "text-destructive", children: "*" })] })), _jsx(FormControl, { children: (() => {
|
|
16
|
+
switch (type) {
|
|
17
|
+
case "text":
|
|
18
|
+
return (_jsx(Input, { ...field, placeholder: placeholder, disabled: disabled, value: field.value || "" }));
|
|
19
|
+
case "email":
|
|
20
|
+
return (_jsx(Input, { ...field, type: "email", placeholder: placeholder, disabled: disabled, value: field.value || "" }));
|
|
21
|
+
case "url":
|
|
22
|
+
return (_jsx(Input, { ...field, type: "url", placeholder: placeholder, disabled: disabled, value: field.value || "" }));
|
|
23
|
+
case "tel":
|
|
24
|
+
return (_jsx(Input, { ...field, type: "tel", placeholder: placeholder, disabled: disabled, value: field.value || "" }));
|
|
25
|
+
case "password":
|
|
26
|
+
return (_jsx(PasswordInput, { id: String(name), label: "", placeholder: placeholder, value: field.value || "", register: {
|
|
27
|
+
name: String(name),
|
|
28
|
+
onChange: field.onChange,
|
|
29
|
+
onBlur: field.onBlur,
|
|
30
|
+
ref: field.ref,
|
|
31
|
+
} }));
|
|
32
|
+
case "textarea":
|
|
33
|
+
return (_jsx("textarea", { className: "flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", ...field, placeholder: placeholder, disabled: disabled, value: field.value || "" }));
|
|
34
|
+
case "number":
|
|
35
|
+
return (_jsx(NumericFormat, { customInput: Input, decimalSeparator: ",", thousandSeparator: ".", decimalScale: decimalScale ?? 7, value: field.value ?? "", onValueChange: (values) => field.onChange(values.floatValue), placeholder: placeholder, disabled: disabled }));
|
|
36
|
+
case "currency":
|
|
37
|
+
return (_jsx(NumericFormat, { customInput: Input, decimalSeparator: ",", thousandSeparator: ".", decimalScale: decimalScale ?? 2, value: field.value ?? "", onValueChange: (values) => field.onChange(values.floatValue), placeholder: placeholder, disabled: disabled, prefix: prefix ?? "R$ " }));
|
|
38
|
+
case "select":
|
|
39
|
+
return (_jsxs(Select, { onValueChange: field.onChange, value: String(field.value || ""), disabled: disabled, children: [_jsx(FormControl, { children: _jsx(SelectTrigger, { children: _jsx(SelectValue, { placeholder: placeholder || "Selecione" }) }) }), _jsx(SelectContent, { children: options?.map((opt) => {
|
|
40
|
+
const val = typeof opt === 'object' ? String(opt.value) : opt;
|
|
41
|
+
const lab = typeof opt === 'object' ? opt.label : opt;
|
|
42
|
+
return _jsx(SelectItem, { value: val, children: lab }, val);
|
|
43
|
+
}) })] }));
|
|
44
|
+
case "date":
|
|
45
|
+
return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", disabled: disabled, className: cn("w-full justify-start text-left font-normal", !field.value && "text-muted-foreground"), children: [_jsx(CalendarIcon, { className: "mr-2 h-4 w-4" }), field.value ? format(new Date(field.value), "dd/MM/yyyy", { locale: ptBR }) : _jsx("span", { children: placeholder || "Selecione" })] }) }), _jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: _jsx(Calendar, { mode: "single", selected: field.value ? new Date(field.value) : undefined, onSelect: field.onChange, locale: ptBR }) })] }));
|
|
46
|
+
case "checkbox":
|
|
47
|
+
return (_jsxs(_Fragment, { children: [_jsx(Checkbox, { checked: !!field.value, onCheckedChange: field.onChange, disabled: disabled }), _jsxs("div", { className: "space-y-1 leading-none", children: [_jsx(FormLabel, { children: label }), description && _jsx(FormDescription, { children: description })] })] }));
|
|
48
|
+
case "switch":
|
|
49
|
+
return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx(FormLabel, { children: label }), _jsx(Switch, { checked: !!field.value, onCheckedChange: field.onChange, disabled: disabled })] }));
|
|
50
|
+
case "radio":
|
|
51
|
+
return (_jsx(RadioGroup, { value: String(field.value ?? ""), onValueChange: field.onChange, className: "flex flex-col gap-2", disabled: disabled, children: (radioOptions ?? [])?.map((opt) => (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(RadioGroupItem, { value: opt.value, id: `${String(name)}-${opt.value}` }), _jsx("label", { htmlFor: `${String(name)}-${opt.value}`, className: "text-sm", children: opt.label })] }, opt.value))) }));
|
|
52
|
+
case "slider":
|
|
53
|
+
return (_jsxs("div", { className: "space-y-2", children: [_jsx(Slider, { value: [Number(field.value ?? sliderRange?.min ?? 0)], onValueChange: (vals) => field.onChange(vals[0]), min: sliderRange?.min ?? 0, max: sliderRange?.max ?? 100, step: sliderRange?.step ?? 1, disabled: disabled }), typeof field.value === "number" && (_jsxs("p", { className: "text-xs text-muted-foreground", children: ["Valor: ", field.value] }))] }));
|
|
54
|
+
case "otp":
|
|
55
|
+
return (_jsx(InputOTP, { maxLength: otpLength ?? 6, value: String(field.value ?? ""), onChange: field.onChange, disabled: disabled, children: _jsx(InputOTPGroup, { children: Array.from({ length: otpLength ?? 6 }).map((_, i) => (_jsx(InputOTPSlot, { index: i }, i))) }) }));
|
|
56
|
+
case "toggle":
|
|
57
|
+
return (_jsx("div", { className: "flex items-center gap-2", children: _jsx(Toggle, { pressed: !!field.value, onPressedChange: (pressed) => field.onChange(pressed), disabled: disabled, children: label }) }));
|
|
58
|
+
default:
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
})() }), type !== "checkbox" && description && _jsx(FormDescription, { children: description }), _jsx(FormMessage, {})] })) }));
|
|
62
|
+
}
|
|
63
|
+
BaseFormField.displayName = "BaseFormField";
|
|
64
|
+
/**
|
|
65
|
+
* Layout de formulário com seções e campos configuráveis
|
|
66
|
+
* Suporta múltiplos tipos de campo e layout responsivo em grid
|
|
67
|
+
*/
|
|
68
|
+
export function FormLayout({ form, sections, onSubmit, formId, title, description, headerContent }) {
|
|
69
|
+
/**
|
|
70
|
+
* Utilitário para classes de grid responsivo
|
|
71
|
+
* @param cols - Número de colunas (1-3)
|
|
72
|
+
* @returns Classes CSS para col-span responsivo
|
|
73
|
+
*/
|
|
74
|
+
const getColSpanClass = (cols) => {
|
|
75
|
+
if (!cols || cols === 3)
|
|
76
|
+
return "col-span-full"; // Padrão: linha inteira
|
|
77
|
+
if (cols === 2)
|
|
78
|
+
return "md:col-span-2 col-span-full";
|
|
79
|
+
return "col-span-1";
|
|
80
|
+
};
|
|
81
|
+
return (_jsx(Form, { ...form, children: _jsxs("form", { id: formId, onSubmit: form.handleSubmit(onSubmit), className: "space-y-8 p-4 relative", children: [(title || description) && (_jsx("div", { className: "space-y-2 mb-6", children: _jsxs("div", { className: "flex justify-between items-start", children: [_jsxs("div", { children: [title && _jsx("h2", { className: "text-xl font-semibold tracking-tight", children: title }), description && _jsx("p", { className: "text-muted-foreground text-sm", children: description })] }), headerContent] }) })), sections.map((section, idx) => (_jsxs("div", { className: "space-y-4", children: [(section.title || section.description) && (_jsxs("div", { className: "flex items-center gap-2", children: [section.title && (_jsx("h3", { className: "text-lg font-medium text-gray-900", children: section.title })), _jsx(Separator, { className: "flex-1" })] })), _jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4", children: section.fields.map((config) => (_jsx("div", { className: getColSpanClass(config.cols), children: _jsx(BaseFormField, { config: config, control: form.control }) }, config.name))) })] }, section.title ? `${section.title}-${idx}` : `section-${idx}`)))] }) }));
|
|
82
|
+
}
|
|
83
|
+
FormLayout.displayName = "FormLayout";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/form-layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BaseFormField, FormLayout, } from "./form-layout";
|
|
@@ -16,7 +16,11 @@ export type { DashboardLayoutProps } from "./dashboard-layout";
|
|
|
16
16
|
export { DashboardLayout } from "./dashboard-layout";
|
|
17
17
|
export type { DashboardMovementsSectionProps, Movement } from "./dashboard-movements-section";
|
|
18
18
|
export { DashboardMovementsSection } from "./dashboard-movements-section";
|
|
19
|
+
export type { DocumentEditorProps, DocumentPage } from "./document-editor";
|
|
20
|
+
export { DocumentEditor } from "./document-editor";
|
|
19
21
|
export { Edge } from "./edge";
|
|
22
|
+
export type { BaseFormFieldProps, FormFieldConfig, FormFieldType, FormLayoutProps, FormSectionConfig, } from "./form-layout";
|
|
23
|
+
export { BaseFormField, FormLayout } from "./form-layout";
|
|
20
24
|
export type { GenealogyCanvasProps } from "./genealogy-canvas";
|
|
21
25
|
export { GenealogyCanvas } from "./genealogy-canvas";
|
|
22
26
|
export type { ImageProps } from "./image";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,+BAA+B,EAC/B,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,E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ACL,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,GACd,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,+BAA+B,EAC/B,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,E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EACxB,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,KAAK,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC5E,YAAY,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACrE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,eAAe,EACf,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,GACd,MAAM,eAAe,CAAC"}
|
|
@@ -9,7 +9,9 @@ export { Conversation, ConversationContent, ConversationEmptyState, Conversation
|
|
|
9
9
|
export { DashboardHeaderActions } from "./dashboard-header-actions";
|
|
10
10
|
export { DashboardLayout } from "./dashboard-layout";
|
|
11
11
|
export { DashboardMovementsSection } from "./dashboard-movements-section";
|
|
12
|
+
export { DocumentEditor } from "./document-editor";
|
|
12
13
|
export { Edge } from "./edge";
|
|
14
|
+
export { BaseFormField, FormLayout } from "./form-layout";
|
|
13
15
|
export { GenealogyCanvas } from "./genealogy-canvas";
|
|
14
16
|
export { Image } from "./image";
|
|
15
17
|
export { ModelSelector, ModelSelectorContent, ModelSelectorDialog, ModelSelectorEmpty, ModelSelectorGroup, ModelSelectorInput, ModelSelectorItem, ModelSelectorList, ModelSelectorLogo, ModelSelectorLogoGroup, ModelSelectorName, ModelSelectorSeparator, ModelSelectorShortcut, ModelSelectorTrigger, } from "./model-selector";
|
|
@@ -30,7 +30,7 @@ export declare const ModelSelectorInput: React.ForwardRefExoticComponent<Omit<Om
|
|
|
30
30
|
ref?: React.Ref<HTMLInputElement>;
|
|
31
31
|
} & {
|
|
32
32
|
asChild?: boolean;
|
|
33
|
-
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
33
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
34
34
|
value?: string;
|
|
35
35
|
onValueChange?: (search: string) => void;
|
|
36
36
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|