@fluityy/designsystem 0.2.2 → 0.2.4
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/components/Button/Button.d.ts +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +7 -0
- package/dist/components/ProfileSettingsModal/ProfileSettingsModal.d.ts +22 -0
- package/dist/components/Toast/Toast.d.ts +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +582 -435
- package/dist/index.js.map +1 -1
- package/dist/styles.css +14 -5
- package/dist/theme/ThemeProvider.d.ts +7 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const buttonVariants: (props?: ({
|
|
3
|
-
variant?: "primary" | "secondary" | "outline" | "ghost" | "accent" | "danger" | null | undefined;
|
|
3
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | "accent" | "danger" | "danger-ghost" | null | undefined;
|
|
4
4
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5
5
|
fullWidth?: boolean | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface CodeBlockProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
/** Rótulo exibido no canto superior esquerdo (ex: "tsx", "bash"). */
|
|
3
|
+
language?: string;
|
|
4
|
+
/** Código a ser exibido. */
|
|
5
|
+
code: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CodeBlock: import('react').ForwardRefExoticComponent<CodeBlockProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -35,4 +35,26 @@ export interface ProfileSettingsModalProps {
|
|
|
35
35
|
/** Ação no rodapé do sidebar (ex: "Get help") */
|
|
36
36
|
footerAction?: React.ReactNode;
|
|
37
37
|
}
|
|
38
|
+
export declare function SettingRow({ title, description, checked, onCheckedChange, }: {
|
|
39
|
+
title: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
checked?: boolean;
|
|
42
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
|
+
export declare function SettingsCard({ children }: {
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
}): import("react").JSX.Element;
|
|
47
|
+
export declare function SettingsGroup({ title, children, }: {
|
|
48
|
+
title: string;
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}): import("react").JSX.Element;
|
|
51
|
+
export interface IntegrationRowProps {
|
|
52
|
+
icon: React.ReactNode;
|
|
53
|
+
title: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
connected?: boolean;
|
|
56
|
+
onConnect?: () => void;
|
|
57
|
+
onDisconnect?: () => void;
|
|
58
|
+
}
|
|
59
|
+
export declare function IntegrationRow({ icon, title, description, connected, onConnect, onDisconnect, }: IntegrationRowProps): import("react").JSX.Element;
|
|
38
60
|
export declare function ProfileSettingsModal({ open, onOpenChange, user, nav, defaultSection, activeSection: controlledSection, onSectionChange, sectionTitles, sectionSubtitles, renderSection, footerAction, }: ProfileSettingsModalProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
type ToastVariant = "info" | "success" | "warning" | "danger";
|
|
2
|
+
interface ToastAction {
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
}
|
|
2
6
|
interface ToastOptions {
|
|
3
7
|
title: React.ReactNode;
|
|
4
8
|
description?: React.ReactNode;
|
|
5
9
|
variant?: ToastVariant;
|
|
6
10
|
duration?: number;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
action?: ToastAction;
|
|
7
13
|
}
|
|
8
14
|
interface ToastContextValue {
|
|
9
15
|
toast: (options: ToastOptions) => number;
|
|
@@ -22,5 +22,6 @@ export * from './Modal/Modal';
|
|
|
22
22
|
export * from './Drawer/Drawer';
|
|
23
23
|
export * from './Toast/Toast';
|
|
24
24
|
export * from './Textarea/Textarea';
|
|
25
|
+
export * from './CodeBlock/CodeBlock';
|
|
25
26
|
export * from './ProfileSettingsModal/ProfileSettingsModal';
|
|
26
27
|
export * from '../theme/ThemeProvider';
|