@harshshahcg/survey-render 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{QuestionListCarousel.d.ts → QuestionListCarousel/QuestionListCarousel.d.ts} +1 -4
- package/dist/components/QuestionListCarousel/index.d.ts +2 -0
- package/dist/components/{QuestionOverviewPanel.d.ts → QuestionOverviewPanel/QuestionOverviewPanel.d.ts} +2 -1
- package/dist/components/QuestionOverviewPanel/index.d.ts +2 -0
- package/dist/components/{SubmissionLoadingOverlay.d.ts → SubmissionLoadingOverlay/SubmissionLoadingOverlay.d.ts} +1 -0
- package/dist/components/SubmissionLoadingOverlay/index.d.ts +2 -0
- package/dist/components/{SurveyContainer.d.ts → SurveyContainer/SurveyContainer.d.ts} +2 -1
- package/dist/components/SurveyContainer/index.d.ts +2 -0
- package/dist/components/SurveyProgressBar/SurveyProgressBar.d.ts +16 -0
- package/dist/components/SurveyProgressBar/index.d.ts +2 -0
- package/dist/components/custom/{DatePicker.d.ts → DatePicker/DatePicker.d.ts} +1 -0
- package/dist/components/custom/DatePicker/index.d.ts +2 -0
- package/dist/components/custom/{Dropdown.d.ts → Dropdown/Dropdown.d.ts} +1 -0
- package/dist/components/custom/Dropdown/index.d.ts +2 -0
- package/dist/components/custom/{MCQSelect.d.ts → MCQSelect/MCQSelect.d.ts} +1 -0
- package/dist/components/custom/MCQSelect/index.d.ts +2 -0
- package/dist/components/custom/{TabularInput.d.ts → TabularInput/TabularInput.d.ts} +1 -0
- package/dist/components/custom/TabularInput/index.d.ts +2 -0
- package/dist/components/custom/{TextResponse.d.ts → TextResponse/TextResponse.d.ts} +1 -0
- package/dist/components/custom/TextResponse/index.d.ts +2 -0
- package/dist/components/icons.d.ts +10 -0
- package/dist/components/ui/{alert.d.ts → Alert/Alert.d.ts} +11 -5
- package/dist/components/ui/Alert/index.d.ts +1 -0
- package/dist/components/ui/Badge/Badge.d.ts +9 -0
- package/dist/components/ui/Badge/index.d.ts +1 -0
- package/dist/components/ui/{button.d.ts → Button/Button.d.ts} +6 -3
- package/dist/components/ui/Button/index.d.ts +2 -0
- package/dist/components/ui/{card.d.ts → Card/Card.d.ts} +4 -1
- package/dist/components/ui/Card/index.d.ts +1 -0
- package/dist/components/ui/Dialog/Dialog.d.ts +30 -0
- package/dist/components/ui/Dialog/index.d.ts +2 -0
- package/dist/components/ui/{ErrorMessage.d.ts → ErrorMessage/ErrorMessage.d.ts} +1 -3
- package/dist/components/ui/ErrorMessage/index.d.ts +1 -0
- package/dist/components/ui/{input.d.ts → Input/Input.d.ts} +1 -0
- package/dist/components/ui/Input/index.d.ts +1 -0
- package/dist/components/ui/{label.d.ts → Label/Label.d.ts} +2 -1
- package/dist/components/ui/Label/index.d.ts +2 -0
- package/dist/components/ui/{pagination.d.ts → Pagination/Pagination.d.ts} +3 -2
- package/dist/components/ui/Pagination/index.d.ts +1 -0
- package/dist/components/ui/Popover/Popover.d.ts +18 -0
- package/dist/components/ui/Popover/index.d.ts +2 -0
- package/dist/components/ui/Progress/Progress.d.ts +8 -0
- package/dist/components/ui/Progress/index.d.ts +2 -0
- package/dist/components/ui/Select/Select.d.ts +38 -0
- package/dist/components/ui/Select/index.d.ts +2 -0
- package/dist/components/ui/Tabs/Tabs.d.ts +19 -0
- package/dist/components/ui/Tabs/index.d.ts +2 -0
- package/dist/components/ui/{textarea.d.ts → Textarea/Textarea.d.ts} +1 -0
- package/dist/components/ui/Textarea/index.d.ts +1 -0
- package/dist/lib/utils.d.ts +5 -2
- package/dist/surveyRender.js +1795 -6347
- package/dist/surveyRender.js.map +1 -1
- package/dist/surveyRender.umd.cjs +11 -85
- package/dist/surveyRender.umd.cjs.map +1 -1
- package/dist/utils/themeStatusStyles.d.ts +1 -1
- package/package.json +2 -17
- package/dist/components/SurveyProgressBar.d.ts +0 -25
- package/dist/components/ui/badge.d.ts +0 -9
- package/dist/components/ui/button-variants.d.ts +0 -4
- package/dist/components/ui/dialog.d.ts +0 -17
- package/dist/components/ui/popover.d.ts +0 -7
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/tabs.d.ts +0 -7
package/dist/components/{QuestionListCarousel.d.ts → QuestionListCarousel/QuestionListCarousel.d.ts}
RENAMED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import "./QuestionListCarousel.css";
|
|
1
2
|
export type QuestionStatus = "completed" | "unanswered" | "required" | "error";
|
|
2
3
|
export interface QuestionListCarouselProps {
|
|
3
|
-
/** Ordered list of visible question IDs (e.g. Q1, Q2, Q6.1) */
|
|
4
4
|
questions: string[];
|
|
5
|
-
/** Currently active question ID (controlled by parent) */
|
|
6
5
|
activeQuestionId: string | undefined;
|
|
7
|
-
/** Called when user selects a question (click card or arrow) */
|
|
8
6
|
onQuestionSelect: (questionId: string) => void;
|
|
9
|
-
/** Optional map of questionId -> status for styling */
|
|
10
7
|
questionStatusMap?: Record<string, QuestionStatus>;
|
|
11
8
|
className?: string;
|
|
12
9
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { SurveyConfig, SurveySubmitPayload } from "
|
|
1
|
+
import type { SurveyConfig, SurveySubmitPayload } from "../../types/survey.types";
|
|
2
|
+
import "./SurveyContainer.css";
|
|
2
3
|
export interface SurveyProgressBarConfig {
|
|
3
4
|
/** "position" = progress by step index. "completion" = by answered mandatory (FMB logic). Default: "completion" */
|
|
4
5
|
progressMode?: "position" | "completion";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./SurveyProgressBar.css";
|
|
2
|
+
export type ProgressMode = "position" | "completion";
|
|
3
|
+
export type ProgressBarVariant = "default" | "gradient";
|
|
4
|
+
export interface SurveyProgressBarProps {
|
|
5
|
+
currentIndex: number;
|
|
6
|
+
totalSteps: number;
|
|
7
|
+
progressMode?: ProgressMode;
|
|
8
|
+
progressValue?: number;
|
|
9
|
+
showLabel?: boolean;
|
|
10
|
+
showPercentage?: boolean;
|
|
11
|
+
labelFormat?: string;
|
|
12
|
+
progressMaxWidth?: string;
|
|
13
|
+
variant?: ProgressBarVariant;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function SurveyProgressBar({ currentIndex, totalSteps, progressMode, progressValue, showLabel, showPercentage, labelFormat, progressMaxWidth, variant, className, }: SurveyProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline SVG icons (replaces lucide-react).
|
|
3
|
+
*/
|
|
4
|
+
export declare function IconX(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function IconChevronDown(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function IconChevronUp(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function IconCheck(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function IconChevronLeft(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function IconChevronRight(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function IconMoreHorizontal(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import "./Alert.css";
|
|
3
|
+
type AlertVariant = "default" | "destructive";
|
|
4
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & {
|
|
5
|
+
variant?: AlertVariant;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare namespace AlertTitle {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
8
11
|
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace AlertDescription {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
9
15
|
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert, AlertTitle, AlertDescription } from "./Alert";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Badge.css";
|
|
3
|
+
type BadgeVariant = "default" | "secondary" | "destructive" | "outline";
|
|
4
|
+
declare const variantClass: Record<BadgeVariant, string>;
|
|
5
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & {
|
|
6
|
+
variant?: BadgeVariant;
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, variantClass as badgeVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge, badgeVariants } from "./Badge";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import "./Button.css";
|
|
3
|
+
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
4
|
+
type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
5
|
+
export interface ButtonProps extends React.ComponentProps<"button"> {
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
size?: ButtonSize;
|
|
5
8
|
asChild?: boolean;
|
|
6
9
|
bgColor?: string;
|
|
7
10
|
textColor?: string;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import "./Card.css";
|
|
2
3
|
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">
|
|
9
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div"> & {
|
|
10
|
+
"data-border"?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, } from "./Card";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Dialog.css";
|
|
3
|
+
export interface DialogProps {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Dialog({ open: controlledOpen, onOpenChange, defaultOpen, children, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function DialogTrigger({ children, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DialogPortal({ children, container, }: {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
container?: HTMLElement | null;
|
|
16
|
+
}): React.ReactPortal | null;
|
|
17
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
declare function DialogClose({ className, children, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export interface DialogContentProps extends React.ComponentProps<"div"> {
|
|
20
|
+
showCloseButton?: boolean;
|
|
21
|
+
container?: HTMLElement | null;
|
|
22
|
+
}
|
|
23
|
+
declare function DialogContent({ className, children, showCloseButton, container, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<"div"> & {
|
|
27
|
+
id?: string;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorMessage } from "./ErrorMessage";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input } from "./Input";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import "./Pagination.css";
|
|
2
3
|
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function PaginationItem(
|
|
5
|
+
declare function PaginationItem(props: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
type PaginationLinkProps = {
|
|
6
7
|
isActive?: boolean;
|
|
7
8
|
size?: "default" | "sm" | "lg" | "icon";
|
|
8
9
|
} & React.ComponentProps<"a">;
|
|
9
|
-
declare function PaginationLink({ className, isActive,
|
|
10
|
+
declare function PaginationLink({ className, isActive, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./Pagination";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Popover.css";
|
|
3
|
+
export interface PopoverProps {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function Popover({ open: openProp, onOpenChange, children, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverTrigger({ asChild, children, ...props }: React.ComponentProps<"button"> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export interface PopoverContentProps extends React.ComponentProps<"div"> {
|
|
13
|
+
align?: "start" | "center" | "end";
|
|
14
|
+
sideOffset?: number;
|
|
15
|
+
}
|
|
16
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: PopoverContentProps): React.ReactPortal | null;
|
|
17
|
+
declare function PopoverAnchor(props: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Progress.css";
|
|
3
|
+
export interface ProgressProps extends React.ComponentProps<"div"> {
|
|
4
|
+
value?: number | null;
|
|
5
|
+
max?: number;
|
|
6
|
+
}
|
|
7
|
+
declare function Progress({ className, value, max, ...props }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Progress };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Select.css";
|
|
3
|
+
export interface SelectProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
onValueChange?: (value: string) => void;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
dir?: "ltr" | "rtl";
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare function Select({ value: valueProp, onValueChange, defaultValue, open: openProp, onOpenChange, disabled, children, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function SelectGroup({ children, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function SelectValue({ placeholder, children, }: {
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface SelectTriggerProps extends React.ComponentProps<"button"> {
|
|
22
|
+
size?: "sm" | "default";
|
|
23
|
+
}
|
|
24
|
+
declare function SelectTrigger({ className, size, children, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function SelectContent({ className, position, children, ...props }: React.ComponentProps<"div"> & {
|
|
26
|
+
position?: "popper" | "item-aligned";
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
declare function SelectViewport({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export interface SelectItemProps extends React.ComponentProps<"div"> {
|
|
31
|
+
value: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare function SelectItem({ className, children, value, disabled, ...props }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectViewport, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectViewport, } from "./Select";
|
|
2
|
+
export type { SelectProps, SelectTriggerProps, SelectItemProps } from "./Select";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./Tabs.css";
|
|
3
|
+
export interface TabsProps extends React.ComponentProps<"div"> {
|
|
4
|
+
value?: string;
|
|
5
|
+
onValueChange?: (value: string) => void;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Tabs({ className, value: valueProp, onValueChange, defaultValue, children, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface TabsTriggerProps extends React.ComponentProps<"button"> {
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
declare function TabsTrigger({ className, value, children, ...props }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface TabsContentProps extends React.ComponentProps<"div"> {
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
declare function TabsContent({ className, value, children, ...props }: TabsContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea } from "./Textarea";
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Simple class name merger. Replaces clsx + tailwind-merge.
|
|
3
|
+
* Accepts strings and undefined; duplicates are not deduped.
|
|
4
|
+
*/
|
|
5
|
+
export declare function cn(...inputs: (string | undefined | null | false)[]): string;
|