@polastack/design-system 0.1.24 → 0.1.26
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/index.d.ts +3 -1
- package/dist/index.js +197 -43
- package/dist/index.js.map +1 -1
- package/dist/tokens/index.d.ts +11 -11
- package/dist/tokens/index.js +11 -11
- package/dist/tokens/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/tokens.css +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -398,6 +398,7 @@ interface ProgressProps extends React.ComponentPropsWithoutRef<typeof ProgressPr
|
|
|
398
398
|
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
399
399
|
|
|
400
400
|
type StepStatus = 'pending' | 'active' | 'completed' | 'error' | 'loading';
|
|
401
|
+
type StepperConnector = 'line' | 'arrow' | 'chevron';
|
|
401
402
|
interface StepItem {
|
|
402
403
|
label: string;
|
|
403
404
|
description?: string;
|
|
@@ -411,6 +412,7 @@ interface StepperProps extends Omit<React.HTMLAttributes<HTMLOListElement>, 'chi
|
|
|
411
412
|
activeStep: number;
|
|
412
413
|
orientation?: StepperOrientation;
|
|
413
414
|
size?: StepperSize;
|
|
415
|
+
connector?: StepperConnector;
|
|
414
416
|
clickable?: boolean;
|
|
415
417
|
onStepClick?: (index: number) => void;
|
|
416
418
|
}
|
|
@@ -902,4 +904,4 @@ interface ChartLegendProps {
|
|
|
902
904
|
}
|
|
903
905
|
declare const ChartLegend: React.FC<ChartLegendProps>;
|
|
904
906
|
|
|
905
|
-
export { ActiveFilters, type ActiveFiltersProps, AppShell, AppShellContent, AppShellFooter, AppShellHeader, type AppShellProps, AppShellSidebar, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStatus, type AvatarStatusProps, type AvatarStatusType, BREAKPOINTS, Badge, type BadgeProps, BottomNavigation, BottomNavigationItem, type BottomNavigationItemProps, type BottomNavigationProps, type Breakpoint, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartCategoricalColors, ChartContainer, type ChartContainerProps, ChartLegend, type ChartLegendProps, type ChartSemanticColors, ChartTooltip, type ChartTooltipProps, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, type CommandPaletteGroupProps, CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteProps, CommandPaletteSeparator, CommandPaletteShortcut, DataTable, DataTableColumnHeader, DataTablePagination, type DataTableProps, DataTableToolbar, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, type DisplayMode, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFormField, type DynamicFormFieldProps, EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, type EmptyStateProps, EmptyStateTitle, type FieldOption, type FieldType, FilterBar, FilterBarActions, FilterBarGroup, FilterChip, type FilterChipProps, FormActions, type FormActionsProps, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormLayout, type FormLayoutProps, FormMessage, type FormMessageProps, FormSection, type FormSectionProps, Input, type InputProps, InstallPrompt, type InstallPromptProps, Label, type LabelProps, NumberInput, type NumberInputProps, OfflineIndicator, type OfflineIndicatorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PrintDivider, type PrintDividerProps, PrintDocument, type PrintDocumentProps, PrintField, PrintFieldGroup, type PrintFieldGroupProps, type PrintFieldProps, PrintFooter, type PrintFooterProps, PrintHeader, type PrintHeaderProps, PrintTable, PrintTableBody, type PrintTableBodyProps, PrintTableCell, type PrintTableCellProps, PrintTableFooter, type PrintTableFooterProps, PrintTableHead, type PrintTableHeadProps, PrintTableHeader, type PrintTableHeaderProps, type PrintTableProps, PrintTableRow, type PrintTableRowProps, Progress, type ProgressProps, PullToRefresh, type PullToRefreshProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedTheme, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, StatCard, type StatCardProps, type StepItem, type StepStatus, Stepper, type StepperProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, Textarea, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseThemeOptions, type UseThemeReturn, avatarVariants, badgeVariants, buttonVariants, chartColors, cn, createContext, formLayoutVariants, getChartColors, getChartSubtleColors, getChartTheme, getFieldComponent, inputVariants, printDocumentVariants, printFieldGroupVariants, progressVariants, spinnerVariants, stepIndicatorVariants, switchVariants, textareaVariants, toast, toastVariants, useAppShell, useBreakpoint, useDisplayMode, useFormField, useInstallPrompt, useOnlineStatus, useTheme$1 as useTheme, useTheme as useThemeContext, useToast, useViewportHeight };
|
|
907
|
+
export { ActiveFilters, type ActiveFiltersProps, AppShell, AppShellContent, AppShellFooter, AppShellHeader, type AppShellProps, AppShellSidebar, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStatus, type AvatarStatusProps, type AvatarStatusType, BREAKPOINTS, Badge, type BadgeProps, BottomNavigation, BottomNavigationItem, type BottomNavigationItemProps, type BottomNavigationProps, type Breakpoint, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartCategoricalColors, ChartContainer, type ChartContainerProps, ChartLegend, type ChartLegendProps, type ChartSemanticColors, ChartTooltip, type ChartTooltipProps, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, type CommandPaletteGroupProps, CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteProps, CommandPaletteSeparator, CommandPaletteShortcut, DataTable, DataTableColumnHeader, DataTablePagination, type DataTableProps, DataTableToolbar, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, type DisplayMode, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFormField, type DynamicFormFieldProps, EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, type EmptyStateProps, EmptyStateTitle, type FieldOption, type FieldType, FilterBar, FilterBarActions, FilterBarGroup, FilterChip, type FilterChipProps, FormActions, type FormActionsProps, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormLayout, type FormLayoutProps, FormMessage, type FormMessageProps, FormSection, type FormSectionProps, Input, type InputProps, InstallPrompt, type InstallPromptProps, Label, type LabelProps, NumberInput, type NumberInputProps, OfflineIndicator, type OfflineIndicatorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PrintDivider, type PrintDividerProps, PrintDocument, type PrintDocumentProps, PrintField, PrintFieldGroup, type PrintFieldGroupProps, type PrintFieldProps, PrintFooter, type PrintFooterProps, PrintHeader, type PrintHeaderProps, PrintTable, PrintTableBody, type PrintTableBodyProps, PrintTableCell, type PrintTableCellProps, PrintTableFooter, type PrintTableFooterProps, PrintTableHead, type PrintTableHeadProps, PrintTableHeader, type PrintTableHeaderProps, type PrintTableProps, PrintTableRow, type PrintTableRowProps, Progress, type ProgressProps, PullToRefresh, type PullToRefreshProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedTheme, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, StatCard, type StatCardProps, type StepItem, type StepStatus, Stepper, type StepperConnector, type StepperProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, Textarea, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseThemeOptions, type UseThemeReturn, avatarVariants, badgeVariants, buttonVariants, chartColors, cn, createContext, formLayoutVariants, getChartColors, getChartSubtleColors, getChartTheme, getFieldComponent, inputVariants, printDocumentVariants, printFieldGroupVariants, progressVariants, spinnerVariants, stepIndicatorVariants, switchVariants, textareaVariants, toast, toastVariants, useAppShell, useBreakpoint, useDisplayMode, useFormField, useInstallPrompt, useOnlineStatus, useTheme$1 as useTheme, useTheme as useThemeContext, useToast, useViewportHeight };
|
package/dist/index.js
CHANGED
|
@@ -875,16 +875,27 @@ function useToast() {
|
|
|
875
875
|
// src/components/toast/toaster.tsx
|
|
876
876
|
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
877
877
|
function Toaster() {
|
|
878
|
-
const { toasts } = useToast();
|
|
878
|
+
const { toasts, dismiss } = useToast();
|
|
879
879
|
return /* @__PURE__ */ jsxs3(ToastProvider, { children: [
|
|
880
|
-
toasts.map(({ id, title, description, action, ...props }) => /* @__PURE__ */ jsxs3(
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
880
|
+
toasts.map(({ id, title, description, action, open, ...props }) => /* @__PURE__ */ jsxs3(
|
|
881
|
+
Toast,
|
|
882
|
+
{
|
|
883
|
+
open,
|
|
884
|
+
onOpenChange: (isOpen) => {
|
|
885
|
+
if (!isOpen) dismiss(id);
|
|
886
|
+
},
|
|
887
|
+
...props,
|
|
888
|
+
children: [
|
|
889
|
+
/* @__PURE__ */ jsxs3("div", { className: "grid gap-1", children: [
|
|
890
|
+
title && /* @__PURE__ */ jsx12(ToastTitle, { children: title }),
|
|
891
|
+
description && /* @__PURE__ */ jsx12(ToastDescription, { children: description })
|
|
892
|
+
] }),
|
|
893
|
+
action,
|
|
894
|
+
/* @__PURE__ */ jsx12(ToastClose, {})
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
id
|
|
898
|
+
)),
|
|
888
899
|
/* @__PURE__ */ jsx12(ToastViewport, {})
|
|
889
900
|
] });
|
|
890
901
|
}
|
|
@@ -1980,7 +1991,7 @@ Progress.displayName = "Progress";
|
|
|
1980
1991
|
// src/components/stepper/stepper.tsx
|
|
1981
1992
|
import * as React28 from "react";
|
|
1982
1993
|
import { cva as cva12 } from "class-variance-authority";
|
|
1983
|
-
import { Check as Check4 } from "lucide-react";
|
|
1994
|
+
import { Check as Check4, ChevronRight, ChevronDown as ChevronDown3 } from "lucide-react";
|
|
1984
1995
|
import { Fragment as Fragment2, jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1985
1996
|
var stepIndicatorVariants = cva12(
|
|
1986
1997
|
"flex items-center justify-center rounded-full font-medium shrink-0 transition-colors duration-normal border-2",
|
|
@@ -2005,22 +2016,6 @@ var stepIndicatorVariants = cva12(
|
|
|
2005
2016
|
}
|
|
2006
2017
|
}
|
|
2007
2018
|
);
|
|
2008
|
-
var connectorVariants = cva12("transition-colors duration-normal", {
|
|
2009
|
-
variants: {
|
|
2010
|
-
completed: {
|
|
2011
|
-
true: "bg-primary-500",
|
|
2012
|
-
false: "bg-[var(--color-border)]"
|
|
2013
|
-
},
|
|
2014
|
-
orientation: {
|
|
2015
|
-
horizontal: "h-0.5 flex-1 mx-2",
|
|
2016
|
-
vertical: "w-0.5 min-h-6"
|
|
2017
|
-
}
|
|
2018
|
-
},
|
|
2019
|
-
defaultVariants: {
|
|
2020
|
-
completed: false,
|
|
2021
|
-
orientation: "horizontal"
|
|
2022
|
-
}
|
|
2023
|
-
});
|
|
2024
2019
|
var spinnerSizeMap = {
|
|
2025
2020
|
sm: "sm",
|
|
2026
2021
|
md: "sm",
|
|
@@ -2031,6 +2026,16 @@ var checkSizeMap = {
|
|
|
2031
2026
|
md: 16,
|
|
2032
2027
|
lg: 20
|
|
2033
2028
|
};
|
|
2029
|
+
var chevronSizeMap = {
|
|
2030
|
+
sm: 14,
|
|
2031
|
+
md: 16,
|
|
2032
|
+
lg: 20
|
|
2033
|
+
};
|
|
2034
|
+
var indicatorHeight = {
|
|
2035
|
+
sm: "h-6",
|
|
2036
|
+
md: "h-8",
|
|
2037
|
+
lg: "h-10"
|
|
2038
|
+
};
|
|
2034
2039
|
function StepIndicatorContent({
|
|
2035
2040
|
step,
|
|
2036
2041
|
index,
|
|
@@ -2049,6 +2054,157 @@ function StepIndicatorContent({
|
|
|
2049
2054
|
}
|
|
2050
2055
|
return /* @__PURE__ */ jsx27(Fragment2, { children: index + 1 });
|
|
2051
2056
|
}
|
|
2057
|
+
function StepConnector({
|
|
2058
|
+
completed,
|
|
2059
|
+
orientation,
|
|
2060
|
+
connectorType,
|
|
2061
|
+
size
|
|
2062
|
+
}) {
|
|
2063
|
+
const isH = orientation === "horizontal";
|
|
2064
|
+
const lineColor = completed ? "bg-primary-500" : "bg-[var(--color-border)]";
|
|
2065
|
+
const iconColor = completed ? "text-primary-500" : "text-[var(--color-border)]";
|
|
2066
|
+
if (connectorType === "arrow") {
|
|
2067
|
+
if (isH) {
|
|
2068
|
+
return /* @__PURE__ */ jsx27(
|
|
2069
|
+
"div",
|
|
2070
|
+
{
|
|
2071
|
+
className: cn("flex items-center flex-1", indicatorHeight[size]),
|
|
2072
|
+
"aria-hidden": "true",
|
|
2073
|
+
children: /* @__PURE__ */ jsxs11("div", { className: "flex items-center flex-1 mx-1.5", children: [
|
|
2074
|
+
/* @__PURE__ */ jsx27(
|
|
2075
|
+
"div",
|
|
2076
|
+
{
|
|
2077
|
+
className: cn(
|
|
2078
|
+
"h-0.5 flex-1 transition-colors duration-normal",
|
|
2079
|
+
lineColor
|
|
2080
|
+
)
|
|
2081
|
+
}
|
|
2082
|
+
),
|
|
2083
|
+
/* @__PURE__ */ jsx27(
|
|
2084
|
+
"div",
|
|
2085
|
+
{
|
|
2086
|
+
className: cn(
|
|
2087
|
+
"w-0 h-0 shrink-0 border-y-[5px] border-y-transparent border-l-[7px] transition-colors duration-normal",
|
|
2088
|
+
completed ? "border-l-primary-500" : "border-l-[var(--color-border)]"
|
|
2089
|
+
)
|
|
2090
|
+
}
|
|
2091
|
+
)
|
|
2092
|
+
] })
|
|
2093
|
+
}
|
|
2094
|
+
);
|
|
2095
|
+
}
|
|
2096
|
+
return /* @__PURE__ */ jsxs11(
|
|
2097
|
+
"div",
|
|
2098
|
+
{
|
|
2099
|
+
className: "flex flex-col items-center min-h-6",
|
|
2100
|
+
"aria-hidden": "true",
|
|
2101
|
+
children: [
|
|
2102
|
+
/* @__PURE__ */ jsx27(
|
|
2103
|
+
"div",
|
|
2104
|
+
{
|
|
2105
|
+
className: cn(
|
|
2106
|
+
"w-0.5 flex-1 transition-colors duration-normal",
|
|
2107
|
+
lineColor
|
|
2108
|
+
)
|
|
2109
|
+
}
|
|
2110
|
+
),
|
|
2111
|
+
/* @__PURE__ */ jsx27(
|
|
2112
|
+
"div",
|
|
2113
|
+
{
|
|
2114
|
+
className: cn(
|
|
2115
|
+
"w-0 h-0 shrink-0 border-x-[5px] border-x-transparent border-t-[7px] transition-colors duration-normal",
|
|
2116
|
+
completed ? "border-t-primary-500" : "border-t-[var(--color-border)]"
|
|
2117
|
+
)
|
|
2118
|
+
}
|
|
2119
|
+
)
|
|
2120
|
+
]
|
|
2121
|
+
}
|
|
2122
|
+
);
|
|
2123
|
+
}
|
|
2124
|
+
if (connectorType === "chevron") {
|
|
2125
|
+
const cSize = chevronSizeMap[size];
|
|
2126
|
+
if (isH) {
|
|
2127
|
+
return /* @__PURE__ */ jsx27(
|
|
2128
|
+
"div",
|
|
2129
|
+
{
|
|
2130
|
+
className: cn("flex items-center flex-1", indicatorHeight[size]),
|
|
2131
|
+
"aria-hidden": "true",
|
|
2132
|
+
children: /* @__PURE__ */ jsxs11(
|
|
2133
|
+
"div",
|
|
2134
|
+
{
|
|
2135
|
+
className: cn(
|
|
2136
|
+
"flex items-center flex-1 mx-1 transition-colors duration-normal",
|
|
2137
|
+
iconColor
|
|
2138
|
+
),
|
|
2139
|
+
children: [
|
|
2140
|
+
/* @__PURE__ */ jsx27("div", { className: cn("h-0.5 flex-1", lineColor) }),
|
|
2141
|
+
/* @__PURE__ */ jsx27(
|
|
2142
|
+
ChevronRight,
|
|
2143
|
+
{
|
|
2144
|
+
size: cSize,
|
|
2145
|
+
className: "shrink-0 mx-0.5",
|
|
2146
|
+
strokeWidth: 2.5
|
|
2147
|
+
}
|
|
2148
|
+
),
|
|
2149
|
+
/* @__PURE__ */ jsx27("div", { className: cn("h-0.5 flex-1", lineColor) })
|
|
2150
|
+
]
|
|
2151
|
+
}
|
|
2152
|
+
)
|
|
2153
|
+
}
|
|
2154
|
+
);
|
|
2155
|
+
}
|
|
2156
|
+
return /* @__PURE__ */ jsxs11(
|
|
2157
|
+
"div",
|
|
2158
|
+
{
|
|
2159
|
+
className: cn(
|
|
2160
|
+
"flex flex-col items-center min-h-6 transition-colors duration-normal",
|
|
2161
|
+
iconColor
|
|
2162
|
+
),
|
|
2163
|
+
"aria-hidden": "true",
|
|
2164
|
+
children: [
|
|
2165
|
+
/* @__PURE__ */ jsx27("div", { className: cn("w-0.5 flex-1", lineColor) }),
|
|
2166
|
+
/* @__PURE__ */ jsx27(
|
|
2167
|
+
ChevronDown3,
|
|
2168
|
+
{
|
|
2169
|
+
size: cSize,
|
|
2170
|
+
className: "shrink-0 my-0.5",
|
|
2171
|
+
strokeWidth: 2.5
|
|
2172
|
+
}
|
|
2173
|
+
),
|
|
2174
|
+
/* @__PURE__ */ jsx27("div", { className: cn("w-0.5 flex-1", lineColor) })
|
|
2175
|
+
]
|
|
2176
|
+
}
|
|
2177
|
+
);
|
|
2178
|
+
}
|
|
2179
|
+
if (isH) {
|
|
2180
|
+
return /* @__PURE__ */ jsx27(
|
|
2181
|
+
"div",
|
|
2182
|
+
{
|
|
2183
|
+
className: cn("flex items-center flex-1", indicatorHeight[size]),
|
|
2184
|
+
"aria-hidden": "true",
|
|
2185
|
+
children: /* @__PURE__ */ jsx27(
|
|
2186
|
+
"div",
|
|
2187
|
+
{
|
|
2188
|
+
className: cn(
|
|
2189
|
+
"h-0.5 flex-1 mx-2 transition-colors duration-normal",
|
|
2190
|
+
lineColor
|
|
2191
|
+
)
|
|
2192
|
+
}
|
|
2193
|
+
)
|
|
2194
|
+
}
|
|
2195
|
+
);
|
|
2196
|
+
}
|
|
2197
|
+
return /* @__PURE__ */ jsx27(
|
|
2198
|
+
"div",
|
|
2199
|
+
{
|
|
2200
|
+
className: cn(
|
|
2201
|
+
"w-0.5 min-h-6 transition-colors duration-normal",
|
|
2202
|
+
lineColor
|
|
2203
|
+
),
|
|
2204
|
+
"aria-hidden": "true"
|
|
2205
|
+
}
|
|
2206
|
+
);
|
|
2207
|
+
}
|
|
2052
2208
|
var Stepper = React28.forwardRef(
|
|
2053
2209
|
({
|
|
2054
2210
|
className,
|
|
@@ -2056,6 +2212,7 @@ var Stepper = React28.forwardRef(
|
|
|
2056
2212
|
activeStep,
|
|
2057
2213
|
orientation = "horizontal",
|
|
2058
2214
|
size = "md",
|
|
2215
|
+
connector: connectorType = "line",
|
|
2059
2216
|
clickable = false,
|
|
2060
2217
|
onStepClick,
|
|
2061
2218
|
...props
|
|
@@ -2078,16 +2235,13 @@ var Stepper = React28.forwardRef(
|
|
|
2078
2235
|
const handleClick = () => {
|
|
2079
2236
|
if (isClickable && onStepClick) onStepClick(index);
|
|
2080
2237
|
};
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2238
|
+
const connectorEl = !isLast ? /* @__PURE__ */ jsx27(
|
|
2239
|
+
StepConnector,
|
|
2083
2240
|
{
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
})
|
|
2089
|
-
),
|
|
2090
|
-
"aria-hidden": "true"
|
|
2241
|
+
completed: index < activeStep,
|
|
2242
|
+
orientation,
|
|
2243
|
+
connectorType,
|
|
2244
|
+
size
|
|
2091
2245
|
}
|
|
2092
2246
|
) : null;
|
|
2093
2247
|
const indicatorButton = /* @__PURE__ */ jsx27(
|
|
@@ -2145,7 +2299,7 @@ var Stepper = React28.forwardRef(
|
|
|
2145
2299
|
]
|
|
2146
2300
|
}
|
|
2147
2301
|
),
|
|
2148
|
-
|
|
2302
|
+
connectorEl
|
|
2149
2303
|
] }, index);
|
|
2150
2304
|
}
|
|
2151
2305
|
return /* @__PURE__ */ jsxs11(
|
|
@@ -2157,7 +2311,7 @@ var Stepper = React28.forwardRef(
|
|
|
2157
2311
|
children: [
|
|
2158
2312
|
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center", children: [
|
|
2159
2313
|
indicatorButton,
|
|
2160
|
-
|
|
2314
|
+
connectorEl
|
|
2161
2315
|
] }),
|
|
2162
2316
|
/* @__PURE__ */ jsxs11("div", { className: cn("flex flex-col gap-0.5", !isLast && "pb-6"), children: [
|
|
2163
2317
|
labelEl,
|
|
@@ -2394,7 +2548,7 @@ import {
|
|
|
2394
2548
|
import { ChevronsUpDown as ChevronsUpDown2 } from "lucide-react";
|
|
2395
2549
|
|
|
2396
2550
|
// src/components/data-table/data-table-pagination.tsx
|
|
2397
|
-
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
2551
|
+
import { ChevronLeft, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
2398
2552
|
import { jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2399
2553
|
function DataTablePagination({
|
|
2400
2554
|
table,
|
|
@@ -2446,7 +2600,7 @@ function DataTablePagination({
|
|
|
2446
2600
|
onClick: () => table.nextPage(),
|
|
2447
2601
|
disabled: !table.getCanNextPage(),
|
|
2448
2602
|
"aria-label": "Next page",
|
|
2449
|
-
children: /* @__PURE__ */ jsx31(
|
|
2603
|
+
children: /* @__PURE__ */ jsx31(ChevronRight2, { className: "h-4 w-4" })
|
|
2450
2604
|
}
|
|
2451
2605
|
)
|
|
2452
2606
|
] })
|
|
@@ -2833,7 +2987,7 @@ PopoverContent.displayName = "PopoverContent";
|
|
|
2833
2987
|
// src/components/dropdown-menu/dropdown-menu.tsx
|
|
2834
2988
|
import * as React36 from "react";
|
|
2835
2989
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2836
|
-
import { Check as Check5, ChevronRight as
|
|
2990
|
+
import { Check as Check5, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
2837
2991
|
import { jsx as jsx37, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2838
2992
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2839
2993
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
@@ -2873,7 +3027,7 @@ var DropdownMenuSubTrigger = React36.forwardRef(({ className, inset, children, .
|
|
|
2873
3027
|
...props,
|
|
2874
3028
|
children: [
|
|
2875
3029
|
children,
|
|
2876
|
-
/* @__PURE__ */ jsx37(
|
|
3030
|
+
/* @__PURE__ */ jsx37(ChevronRight3, { className: "ml-auto h-3.5 w-3.5" })
|
|
2877
3031
|
]
|
|
2878
3032
|
}
|
|
2879
3033
|
));
|
|
@@ -3948,7 +4102,7 @@ PrintDivider.displayName = "PrintDivider";
|
|
|
3948
4102
|
|
|
3949
4103
|
// src/components/stat-card/stat-card.tsx
|
|
3950
4104
|
import * as React48 from "react";
|
|
3951
|
-
import { ChevronUp as ChevronUp2, ChevronDown as
|
|
4105
|
+
import { ChevronUp as ChevronUp2, ChevronDown as ChevronDown4 } from "lucide-react";
|
|
3952
4106
|
import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3953
4107
|
function inferDirection(trend) {
|
|
3954
4108
|
if (!trend) return "neutral";
|
|
@@ -3963,7 +4117,7 @@ var TREND_STYLES = {
|
|
|
3963
4117
|
};
|
|
3964
4118
|
var TREND_ICON_COMPONENTS = {
|
|
3965
4119
|
up: ChevronUp2,
|
|
3966
|
-
down:
|
|
4120
|
+
down: ChevronDown4,
|
|
3967
4121
|
neutral: null
|
|
3968
4122
|
};
|
|
3969
4123
|
var StatCard = React48.forwardRef(
|