@use-stall/ui 0.0.4 → 0.0.6
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.mts +10 -14
- package/dist/index.d.ts +10 -14
- package/dist/index.js +86 -95
- package/dist/index.mjs +100 -108
- package/package.json +23 -20
- package/dist/styles.css +0 -3
- package/dist/styles.d.mts +0 -2
- package/dist/styles.d.ts +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1253,14 +1253,14 @@ function Combobox2({ modal = false, ...props }) {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
1255
|
// src/components/confirm-dialog.tsx
|
|
1256
|
-
import
|
|
1256
|
+
import React13 from "react";
|
|
1257
1257
|
|
|
1258
1258
|
// src/components/fancy-button.tsx
|
|
1259
|
-
import * as React13 from "react";
|
|
1260
|
-
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
1261
|
-
|
|
1262
|
-
// src/lib/recursive-clone-children.tsx
|
|
1263
1259
|
import * as React12 from "react";
|
|
1260
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
1261
|
+
import { createTV } from "tailwind-variants";
|
|
1262
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1263
|
+
var tv = createTV({});
|
|
1264
1264
|
function recursiveCloneChildren(children, additionalProps, displayNames, uniqueId, asChild) {
|
|
1265
1265
|
const mappedChildren = React12.Children.map(
|
|
1266
1266
|
children,
|
|
@@ -1286,20 +1286,13 @@ function recursiveCloneChildren(children, additionalProps, displayNames, uniqueI
|
|
|
1286
1286
|
);
|
|
1287
1287
|
return asChild ? mappedChildren?.[0] : mappedChildren;
|
|
1288
1288
|
}
|
|
1289
|
-
|
|
1290
|
-
// src/lib/tv.ts
|
|
1291
|
-
import { createTV } from "tailwind-variants";
|
|
1292
|
-
var tv = createTV({});
|
|
1293
|
-
|
|
1294
|
-
// src/components/fancy-button.tsx
|
|
1295
|
-
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1296
1289
|
var BUTTON_ROOT_NAME = "ButtonRoot";
|
|
1297
1290
|
var BUTTON_ICON_NAME = "ButtonIcon";
|
|
1298
1291
|
var fancyButtonVariants = tv({
|
|
1299
1292
|
slots: {
|
|
1300
1293
|
root: [
|
|
1301
1294
|
// base
|
|
1302
|
-
"group relative inline-flex items-center justify-center whitespace-nowrap text-label-sm outline-none",
|
|
1295
|
+
"group relative inline-flex items-center justify-center whitespace-nowrap text-label-sm text-sm outline-none",
|
|
1303
1296
|
"transition duration-200 ease-out cursor-pointer",
|
|
1304
1297
|
// focus
|
|
1305
1298
|
"focus:outline-none",
|
|
@@ -1373,7 +1366,7 @@ var fancyButtonVariants = tv({
|
|
|
1373
1366
|
size: "medium"
|
|
1374
1367
|
}
|
|
1375
1368
|
});
|
|
1376
|
-
var ButtonRoot =
|
|
1369
|
+
var ButtonRoot = React12.forwardRef(
|
|
1377
1370
|
({
|
|
1378
1371
|
asChild,
|
|
1379
1372
|
children,
|
|
@@ -1383,7 +1376,7 @@ var ButtonRoot = React13.forwardRef(
|
|
|
1383
1376
|
loading,
|
|
1384
1377
|
...rest
|
|
1385
1378
|
}, forwardedRef) => {
|
|
1386
|
-
const uniqueId =
|
|
1379
|
+
const uniqueId = React12.useId();
|
|
1387
1380
|
const Component = asChild ? Slot2 : "button";
|
|
1388
1381
|
const { root } = fancyButtonVariants({ variant, size });
|
|
1389
1382
|
const sharedProps = {
|
|
@@ -1442,7 +1435,7 @@ ButtonIcon.displayName = BUTTON_ICON_NAME;
|
|
|
1442
1435
|
|
|
1443
1436
|
// src/components/confirm-dialog.tsx
|
|
1444
1437
|
import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1445
|
-
var ConfirmDialog =
|
|
1438
|
+
var ConfirmDialog = React13.memo(({ trigger, confirmAction }) => {
|
|
1446
1439
|
return /* @__PURE__ */ jsxs10(AlertDialog, { children: [
|
|
1447
1440
|
/* @__PURE__ */ jsx15(AlertDialogTrigger, { className: "contents", children: trigger || /* @__PURE__ */ jsx15(ButtonRoot, { variant: "neutral", children: "Confirm" }) }),
|
|
1448
1441
|
/* @__PURE__ */ jsxs10(AlertDialogPopup, { children: [
|
|
@@ -1522,7 +1515,7 @@ var CopyButton = ({
|
|
|
1522
1515
|
};
|
|
1523
1516
|
|
|
1524
1517
|
// src/components/country-picker.tsx
|
|
1525
|
-
import * as
|
|
1518
|
+
import * as React14 from "react";
|
|
1526
1519
|
import { Check as Check3, ChevronsUpDown as ChevronsUpDown2 } from "lucide-react";
|
|
1527
1520
|
|
|
1528
1521
|
// src/constants/countries.ts
|
|
@@ -1737,8 +1730,8 @@ function CountryPicker({
|
|
|
1737
1730
|
value_key = "value",
|
|
1738
1731
|
...props
|
|
1739
1732
|
}) {
|
|
1740
|
-
const [open, setOpen] =
|
|
1741
|
-
const active_option =
|
|
1733
|
+
const [open, setOpen] = React14.useState(false);
|
|
1734
|
+
const active_option = React14.useMemo(
|
|
1742
1735
|
() => options?.find(
|
|
1743
1736
|
(item) => item[value_key] === props.value
|
|
1744
1737
|
)?.label,
|
|
@@ -1854,7 +1847,7 @@ function CountryPicker({
|
|
|
1854
1847
|
}
|
|
1855
1848
|
|
|
1856
1849
|
// src/components/drawer.tsx
|
|
1857
|
-
import * as
|
|
1850
|
+
import * as React15 from "react";
|
|
1858
1851
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
1859
1852
|
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1860
1853
|
var Drawer = ({
|
|
@@ -1871,7 +1864,7 @@ Drawer.displayName = "Drawer";
|
|
|
1871
1864
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
1872
1865
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
1873
1866
|
var DrawerClose = DrawerPrimitive.Close;
|
|
1874
|
-
var DrawerOverlay =
|
|
1867
|
+
var DrawerOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1875
1868
|
DrawerPrimitive.Overlay,
|
|
1876
1869
|
{
|
|
1877
1870
|
ref,
|
|
@@ -1880,7 +1873,7 @@ var DrawerOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1880
1873
|
}
|
|
1881
1874
|
));
|
|
1882
1875
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
1883
|
-
var DrawerContent =
|
|
1876
|
+
var DrawerContent = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(DrawerPortal, { children: [
|
|
1884
1877
|
/* @__PURE__ */ jsx18(DrawerOverlay, {}),
|
|
1885
1878
|
/* @__PURE__ */ jsxs13(
|
|
1886
1879
|
DrawerPrimitive.Content,
|
|
@@ -1921,7 +1914,7 @@ var DrawerFooter = ({
|
|
|
1921
1914
|
}
|
|
1922
1915
|
);
|
|
1923
1916
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1924
|
-
var DrawerTitle =
|
|
1917
|
+
var DrawerTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1925
1918
|
DrawerPrimitive.Title,
|
|
1926
1919
|
{
|
|
1927
1920
|
ref,
|
|
@@ -1933,7 +1926,7 @@ var DrawerTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1933
1926
|
}
|
|
1934
1927
|
));
|
|
1935
1928
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
1936
|
-
var DrawerDescription =
|
|
1929
|
+
var DrawerDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1937
1930
|
DrawerPrimitive.Description,
|
|
1938
1931
|
{
|
|
1939
1932
|
ref,
|
|
@@ -1944,7 +1937,7 @@ var DrawerDescription = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1944
1937
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
1945
1938
|
|
|
1946
1939
|
// src/components/dropdown-menu.tsx
|
|
1947
|
-
import * as
|
|
1940
|
+
import * as React16 from "react";
|
|
1948
1941
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1949
1942
|
import { Check as Check4, ChevronRight as ChevronRight2, Circle } from "lucide-react";
|
|
1950
1943
|
import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
@@ -1954,7 +1947,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1954
1947
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1955
1948
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1956
1949
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1957
|
-
var DropdownMenuSubTrigger =
|
|
1950
|
+
var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
1958
1951
|
DropdownMenuPrimitive.SubTrigger,
|
|
1959
1952
|
{
|
|
1960
1953
|
ref,
|
|
@@ -1971,7 +1964,7 @@ var DropdownMenuSubTrigger = React17.forwardRef(({ className, inset, children, .
|
|
|
1971
1964
|
}
|
|
1972
1965
|
));
|
|
1973
1966
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1974
|
-
var DropdownMenuSubContent =
|
|
1967
|
+
var DropdownMenuSubContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1975
1968
|
DropdownMenuPrimitive.SubContent,
|
|
1976
1969
|
{
|
|
1977
1970
|
ref,
|
|
@@ -1983,7 +1976,7 @@ var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) =
|
|
|
1983
1976
|
}
|
|
1984
1977
|
));
|
|
1985
1978
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1986
|
-
var DropdownMenuContent =
|
|
1979
|
+
var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx19(
|
|
1987
1980
|
DropdownMenuPrimitive.Content,
|
|
1988
1981
|
{
|
|
1989
1982
|
ref,
|
|
@@ -1996,7 +1989,7 @@ var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1996
1989
|
}
|
|
1997
1990
|
) }));
|
|
1998
1991
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1999
|
-
var DropdownMenuItem =
|
|
1992
|
+
var DropdownMenuItem = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2000
1993
|
DropdownMenuPrimitive.Item,
|
|
2001
1994
|
{
|
|
2002
1995
|
ref,
|
|
@@ -2009,7 +2002,7 @@ var DropdownMenuItem = React17.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2009
2002
|
}
|
|
2010
2003
|
));
|
|
2011
2004
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2012
|
-
var DropdownMenuCheckboxItem =
|
|
2005
|
+
var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
2013
2006
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2014
2007
|
{
|
|
2015
2008
|
ref,
|
|
@@ -2026,7 +2019,7 @@ var DropdownMenuCheckboxItem = React17.forwardRef(({ className, children, checke
|
|
|
2026
2019
|
}
|
|
2027
2020
|
));
|
|
2028
2021
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2029
|
-
var DropdownMenuRadioItem =
|
|
2022
|
+
var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
2030
2023
|
DropdownMenuPrimitive.RadioItem,
|
|
2031
2024
|
{
|
|
2032
2025
|
ref,
|
|
@@ -2042,7 +2035,7 @@ var DropdownMenuRadioItem = React17.forwardRef(({ className, children, ...props
|
|
|
2042
2035
|
}
|
|
2043
2036
|
));
|
|
2044
2037
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2045
|
-
var DropdownMenuLabel =
|
|
2038
|
+
var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2046
2039
|
DropdownMenuPrimitive.Label,
|
|
2047
2040
|
{
|
|
2048
2041
|
ref,
|
|
@@ -2055,7 +2048,7 @@ var DropdownMenuLabel = React17.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2055
2048
|
}
|
|
2056
2049
|
));
|
|
2057
2050
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2058
|
-
var DropdownMenuSeparator =
|
|
2051
|
+
var DropdownMenuSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2059
2052
|
DropdownMenuPrimitive.Separator,
|
|
2060
2053
|
{
|
|
2061
2054
|
ref,
|
|
@@ -2128,7 +2121,7 @@ var FieldControl = FieldPrimitive.Control;
|
|
|
2128
2121
|
var FieldValidity = FieldPrimitive.Validity;
|
|
2129
2122
|
|
|
2130
2123
|
// src/components/form.tsx
|
|
2131
|
-
import * as
|
|
2124
|
+
import * as React18 from "react";
|
|
2132
2125
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2133
2126
|
import {
|
|
2134
2127
|
Controller,
|
|
@@ -2137,14 +2130,14 @@ import {
|
|
|
2137
2130
|
} from "react-hook-form";
|
|
2138
2131
|
|
|
2139
2132
|
// src/components/label.tsx
|
|
2140
|
-
import * as
|
|
2133
|
+
import * as React17 from "react";
|
|
2141
2134
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2142
2135
|
import { cva as cva3 } from "class-variance-authority";
|
|
2143
2136
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2144
2137
|
var labelVariants = cva3(
|
|
2145
2138
|
"text-xs text-muted-foreground font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2146
2139
|
);
|
|
2147
|
-
var Label2 =
|
|
2140
|
+
var Label2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2148
2141
|
LabelPrimitive.Root,
|
|
2149
2142
|
{
|
|
2150
2143
|
ref,
|
|
@@ -2157,7 +2150,7 @@ Label2.displayName = LabelPrimitive.Root.displayName;
|
|
|
2157
2150
|
// src/components/form.tsx
|
|
2158
2151
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2159
2152
|
var Form = FormProvider;
|
|
2160
|
-
var FormFieldContext =
|
|
2153
|
+
var FormFieldContext = React18.createContext(
|
|
2161
2154
|
{}
|
|
2162
2155
|
);
|
|
2163
2156
|
var FormField = ({
|
|
@@ -2166,8 +2159,8 @@ var FormField = ({
|
|
|
2166
2159
|
return /* @__PURE__ */ jsx22(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx22(Controller, { ...props }) });
|
|
2167
2160
|
};
|
|
2168
2161
|
var useFormField = () => {
|
|
2169
|
-
const fieldContext =
|
|
2170
|
-
const itemContext =
|
|
2162
|
+
const fieldContext = React18.useContext(FormFieldContext);
|
|
2163
|
+
const itemContext = React18.useContext(FormItemContext);
|
|
2171
2164
|
const { getFieldState, formState } = useFormContext();
|
|
2172
2165
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2173
2166
|
if (!fieldContext) {
|
|
@@ -2183,15 +2176,15 @@ var useFormField = () => {
|
|
|
2183
2176
|
...fieldState
|
|
2184
2177
|
};
|
|
2185
2178
|
};
|
|
2186
|
-
var FormItemContext =
|
|
2179
|
+
var FormItemContext = React18.createContext(
|
|
2187
2180
|
{}
|
|
2188
2181
|
);
|
|
2189
|
-
var FormItem =
|
|
2190
|
-
const id =
|
|
2182
|
+
var FormItem = React18.forwardRef(({ className, ...props }, ref) => {
|
|
2183
|
+
const id = React18.useId();
|
|
2191
2184
|
return /* @__PURE__ */ jsx22(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx22("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
2192
2185
|
});
|
|
2193
2186
|
FormItem.displayName = "FormItem";
|
|
2194
|
-
var FormLabel =
|
|
2187
|
+
var FormLabel = React18.forwardRef(({ className, ...props }, ref) => {
|
|
2195
2188
|
const { error, formItemId } = useFormField();
|
|
2196
2189
|
return /* @__PURE__ */ jsx22(
|
|
2197
2190
|
Label2,
|
|
@@ -2204,7 +2197,7 @@ var FormLabel = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
2204
2197
|
);
|
|
2205
2198
|
});
|
|
2206
2199
|
FormLabel.displayName = "FormLabel";
|
|
2207
|
-
var FormControl =
|
|
2200
|
+
var FormControl = React18.forwardRef(({ ...props }, ref) => {
|
|
2208
2201
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2209
2202
|
return /* @__PURE__ */ jsx22(
|
|
2210
2203
|
Slot3,
|
|
@@ -2218,7 +2211,7 @@ var FormControl = React19.forwardRef(({ ...props }, ref) => {
|
|
|
2218
2211
|
);
|
|
2219
2212
|
});
|
|
2220
2213
|
FormControl.displayName = "FormControl";
|
|
2221
|
-
var FormDescription =
|
|
2214
|
+
var FormDescription = React18.forwardRef(({ className, ...props }, ref) => {
|
|
2222
2215
|
const { formDescriptionId } = useFormField();
|
|
2223
2216
|
return /* @__PURE__ */ jsx22(
|
|
2224
2217
|
"p",
|
|
@@ -2231,7 +2224,7 @@ var FormDescription = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
2231
2224
|
);
|
|
2232
2225
|
});
|
|
2233
2226
|
FormDescription.displayName = "FormDescription";
|
|
2234
|
-
var FormMessage =
|
|
2227
|
+
var FormMessage = React18.forwardRef(({ className, children, ...props }, ref) => {
|
|
2235
2228
|
const { error, formMessageId } = useFormField();
|
|
2236
2229
|
const body = error ? String(error?.message) : children;
|
|
2237
2230
|
if (!body) {
|
|
@@ -2251,9 +2244,9 @@ var FormMessage = React19.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2251
2244
|
FormMessage.displayName = "FormMessage";
|
|
2252
2245
|
|
|
2253
2246
|
// src/components/image-card.tsx
|
|
2254
|
-
import
|
|
2247
|
+
import React19 from "react";
|
|
2255
2248
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2256
|
-
var ImageCard =
|
|
2249
|
+
var ImageCard = React19.memo(
|
|
2257
2250
|
({ src = "", alt = "", onErrorImage, className }) => {
|
|
2258
2251
|
return /* @__PURE__ */ jsx23(
|
|
2259
2252
|
"img",
|
|
@@ -2277,11 +2270,11 @@ var ImageCard = React20.memo(
|
|
|
2277
2270
|
);
|
|
2278
2271
|
|
|
2279
2272
|
// src/components/input-otp.tsx
|
|
2280
|
-
import * as
|
|
2273
|
+
import * as React20 from "react";
|
|
2281
2274
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2282
2275
|
import { Dot } from "lucide-react";
|
|
2283
2276
|
import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2284
|
-
var InputOTP =
|
|
2277
|
+
var InputOTP = React20.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2285
2278
|
OTPInput,
|
|
2286
2279
|
{
|
|
2287
2280
|
ref,
|
|
@@ -2294,10 +2287,10 @@ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props },
|
|
|
2294
2287
|
}
|
|
2295
2288
|
));
|
|
2296
2289
|
InputOTP.displayName = "InputOTP";
|
|
2297
|
-
var InputOTPGroup =
|
|
2290
|
+
var InputOTPGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2298
2291
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2299
|
-
var InputOTPSlot =
|
|
2300
|
-
const inputOTPContext =
|
|
2292
|
+
var InputOTPSlot = React20.forwardRef(({ index, className, ...props }, ref) => {
|
|
2293
|
+
const inputOTPContext = React20.useContext(OTPInputContext);
|
|
2301
2294
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2302
2295
|
return /* @__PURE__ */ jsxs15(
|
|
2303
2296
|
"div",
|
|
@@ -2317,14 +2310,14 @@ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2317
2310
|
);
|
|
2318
2311
|
});
|
|
2319
2312
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2320
|
-
var InputOTPSeparator =
|
|
2313
|
+
var InputOTPSeparator = React20.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx24("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx24(Dot, {}) }));
|
|
2321
2314
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2322
2315
|
|
|
2323
2316
|
// src/components/modal-container.tsx
|
|
2324
|
-
import
|
|
2317
|
+
import React21 from "react";
|
|
2325
2318
|
import { motion } from "framer-motion";
|
|
2326
2319
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2327
|
-
var ModalContainer =
|
|
2320
|
+
var ModalContainer = React21.memo((props) => {
|
|
2328
2321
|
return /* @__PURE__ */ jsx25(
|
|
2329
2322
|
motion.div,
|
|
2330
2323
|
{
|
|
@@ -2338,7 +2331,7 @@ var ModalContainer = React22.memo((props) => {
|
|
|
2338
2331
|
});
|
|
2339
2332
|
|
|
2340
2333
|
// src/components/multi-select.tsx
|
|
2341
|
-
import * as
|
|
2334
|
+
import * as React22 from "react";
|
|
2342
2335
|
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2343
2336
|
var MultiSelect = ({
|
|
2344
2337
|
options: options2 = [],
|
|
@@ -2350,10 +2343,10 @@ var MultiSelect = ({
|
|
|
2350
2343
|
maxCount,
|
|
2351
2344
|
required
|
|
2352
2345
|
}) => {
|
|
2353
|
-
const selectedOptions =
|
|
2346
|
+
const selectedOptions = React22.useMemo(() => {
|
|
2354
2347
|
return value.map((v) => options2.find((opt) => opt.value === v)).filter(Boolean);
|
|
2355
2348
|
}, [value, options2]);
|
|
2356
|
-
const handleValueChange =
|
|
2349
|
+
const handleValueChange = React22.useCallback(
|
|
2357
2350
|
(newValue) => {
|
|
2358
2351
|
if (Array.isArray(newValue)) {
|
|
2359
2352
|
onValueChange?.(newValue.map((opt) => opt.value));
|
|
@@ -2380,7 +2373,7 @@ var MultiSelect = ({
|
|
|
2380
2373
|
"min-h-10! before:hidden shadow-none rounded-10!",
|
|
2381
2374
|
className
|
|
2382
2375
|
),
|
|
2383
|
-
children: /* @__PURE__ */ jsx26(ComboboxValue, { children: (value2) => /* @__PURE__ */ jsxs16(
|
|
2376
|
+
children: /* @__PURE__ */ jsx26(ComboboxValue, { children: (value2) => /* @__PURE__ */ jsxs16(React22.Fragment, { children: [
|
|
2384
2377
|
value2?.map((item) => /* @__PURE__ */ jsx26(
|
|
2385
2378
|
ComboboxChip,
|
|
2386
2379
|
{
|
|
@@ -2442,11 +2435,11 @@ MultiSelect.displayName = "MultiSelect";
|
|
|
2442
2435
|
|
|
2443
2436
|
// src/components/password-input.tsx
|
|
2444
2437
|
import { Check as Check5, Eye, EyeOff, X } from "lucide-react";
|
|
2445
|
-
import
|
|
2438
|
+
import React23 from "react";
|
|
2446
2439
|
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2447
|
-
var PasswordInput =
|
|
2440
|
+
var PasswordInput = React23.forwardRef(
|
|
2448
2441
|
({ className, onSubmit, showStrength, ...props }, ref) => {
|
|
2449
|
-
const [isVisible, setIsVisible] =
|
|
2442
|
+
const [isVisible, setIsVisible] = React23.useState(false);
|
|
2450
2443
|
const toggleVisibility = () => setIsVisible((prevState) => !prevState);
|
|
2451
2444
|
const checkStrength = (pass) => {
|
|
2452
2445
|
const requirements = [
|
|
@@ -2461,7 +2454,7 @@ var PasswordInput = React24.forwardRef(
|
|
|
2461
2454
|
}));
|
|
2462
2455
|
};
|
|
2463
2456
|
const strength = checkStrength(props.value?.toString() || "");
|
|
2464
|
-
const strengthScore =
|
|
2457
|
+
const strengthScore = React23.useMemo(() => {
|
|
2465
2458
|
return strength.filter((req) => req.met).length;
|
|
2466
2459
|
}, [strength]);
|
|
2467
2460
|
const getStrengthColor = (score) => {
|
|
@@ -2510,7 +2503,7 @@ var PasswordInput = React24.forwardRef(
|
|
|
2510
2503
|
/* @__PURE__ */ jsx27(
|
|
2511
2504
|
"button",
|
|
2512
2505
|
{
|
|
2513
|
-
className: "absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-
|
|
2506
|
+
className: "absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-10 text-muted-foreground/80 outline-offset-2 transition-colors hover:text-foreground focus:z-10 focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-ring/70 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
2514
2507
|
type: "button",
|
|
2515
2508
|
onClick: toggleVisibility,
|
|
2516
2509
|
"aria-label": isVisible ? "Hide password" : "Show password",
|
|
@@ -2520,7 +2513,7 @@ var PasswordInput = React24.forwardRef(
|
|
|
2520
2513
|
}
|
|
2521
2514
|
)
|
|
2522
2515
|
] }),
|
|
2523
|
-
showStrength && /* @__PURE__ */ jsxs17(
|
|
2516
|
+
showStrength && /* @__PURE__ */ jsxs17(React23.Fragment, { children: [
|
|
2524
2517
|
/* @__PURE__ */ jsx27(
|
|
2525
2518
|
"div",
|
|
2526
2519
|
{
|
|
@@ -2584,7 +2577,7 @@ var PasswordInput = React24.forwardRef(
|
|
|
2584
2577
|
}
|
|
2585
2578
|
);
|
|
2586
2579
|
PasswordInput.displayName = "PasswordInput";
|
|
2587
|
-
var password_input_default =
|
|
2580
|
+
var password_input_default = React23.memo(PasswordInput);
|
|
2588
2581
|
|
|
2589
2582
|
// src/components/phone-number-input.tsx
|
|
2590
2583
|
import { ChevronDown as ChevronDown2, Phone } from "lucide-react";
|
|
@@ -2609,7 +2602,7 @@ function PhoneNumberInput({
|
|
|
2609
2602
|
return /* @__PURE__ */ jsx28("div", { className, children: /* @__PURE__ */ jsx28(
|
|
2610
2603
|
RPNInput.default,
|
|
2611
2604
|
{
|
|
2612
|
-
className: cn("flex rounded-
|
|
2605
|
+
className: cn("flex rounded-10 shadow-xs", error && "border border-red-500/70"),
|
|
2613
2606
|
international: true,
|
|
2614
2607
|
flagComponent: FlagComponent,
|
|
2615
2608
|
countrySelectComponent: CountrySelect,
|
|
@@ -2650,7 +2643,7 @@ var CountrySelect = ({
|
|
|
2650
2643
|
return /* @__PURE__ */ jsxs18(
|
|
2651
2644
|
"div",
|
|
2652
2645
|
{
|
|
2653
|
-
className: "relative inline-flex items-center self-stretch rounded-s-
|
|
2646
|
+
className: "relative inline-flex items-center self-stretch rounded-s-10 border border-input\n bg-background py-2 pe-2 ps-3 text-muted-foreground transition-shadow focus-within:z-10\n focus-within:border-ring focus-within:outline-hidden focus-within:ring-[3px] focus-within:ring-ring/20\n hover:text-foreground has-disabled:pointer-events-none has-disabled:opacity-50",
|
|
2654
2647
|
children: [
|
|
2655
2648
|
/* @__PURE__ */ jsxs18("div", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [
|
|
2656
2649
|
/* @__PURE__ */ jsx28(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
@@ -2684,9 +2677,9 @@ var FlagComponent = ({ country, countryName }) => {
|
|
|
2684
2677
|
};
|
|
2685
2678
|
|
|
2686
2679
|
// src/components/price-input.tsx
|
|
2687
|
-
import
|
|
2680
|
+
import React25 from "react";
|
|
2688
2681
|
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2689
|
-
var PriceInput =
|
|
2682
|
+
var PriceInput = React25.forwardRef(
|
|
2690
2683
|
({ currency, ...props }, ref) => {
|
|
2691
2684
|
return /* @__PURE__ */ jsxs19(
|
|
2692
2685
|
"div",
|
|
@@ -2716,10 +2709,10 @@ var PriceInput = React26.forwardRef(
|
|
|
2716
2709
|
PriceInput.displayName = "PriceInput";
|
|
2717
2710
|
|
|
2718
2711
|
// src/components/progress.tsx
|
|
2719
|
-
import * as
|
|
2712
|
+
import * as React26 from "react";
|
|
2720
2713
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2721
2714
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2722
|
-
var Progress =
|
|
2715
|
+
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2723
2716
|
ProgressPrimitive.Root,
|
|
2724
2717
|
{
|
|
2725
2718
|
ref,
|
|
@@ -2740,14 +2733,14 @@ var Progress = React27.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2740
2733
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2741
2734
|
|
|
2742
2735
|
// src/components/select.tsx
|
|
2743
|
-
import * as
|
|
2736
|
+
import * as React27 from "react";
|
|
2744
2737
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2745
2738
|
import { Check as Check6, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
2746
2739
|
import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2747
2740
|
var Select = SelectPrimitive.Root;
|
|
2748
2741
|
var SelectGroup = SelectPrimitive.Group;
|
|
2749
2742
|
var SelectValue = SelectPrimitive.Value;
|
|
2750
|
-
var SelectTrigger =
|
|
2743
|
+
var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
2751
2744
|
SelectPrimitive.Trigger,
|
|
2752
2745
|
{
|
|
2753
2746
|
ref,
|
|
@@ -2763,7 +2756,7 @@ var SelectTrigger = React28.forwardRef(({ className, children, ...props }, ref)
|
|
|
2763
2756
|
}
|
|
2764
2757
|
));
|
|
2765
2758
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2766
|
-
var SelectScrollUpButton =
|
|
2759
|
+
var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2767
2760
|
SelectPrimitive.ScrollUpButton,
|
|
2768
2761
|
{
|
|
2769
2762
|
ref,
|
|
@@ -2776,7 +2769,7 @@ var SelectScrollUpButton = React28.forwardRef(({ className, ...props }, ref) =>
|
|
|
2776
2769
|
}
|
|
2777
2770
|
));
|
|
2778
2771
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2779
|
-
var SelectScrollDownButton =
|
|
2772
|
+
var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2780
2773
|
SelectPrimitive.ScrollDownButton,
|
|
2781
2774
|
{
|
|
2782
2775
|
ref,
|
|
@@ -2789,7 +2782,7 @@ var SelectScrollDownButton = React28.forwardRef(({ className, ...props }, ref) =
|
|
|
2789
2782
|
}
|
|
2790
2783
|
));
|
|
2791
2784
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2792
|
-
var SelectContent =
|
|
2785
|
+
var SelectContent = React27.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx31(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs20(
|
|
2793
2786
|
SelectPrimitive.Content,
|
|
2794
2787
|
{
|
|
2795
2788
|
ref,
|
|
@@ -2817,7 +2810,7 @@ var SelectContent = React28.forwardRef(({ className, children, position = "poppe
|
|
|
2817
2810
|
}
|
|
2818
2811
|
) }));
|
|
2819
2812
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2820
|
-
var SelectLabel =
|
|
2813
|
+
var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2821
2814
|
SelectPrimitive.Label,
|
|
2822
2815
|
{
|
|
2823
2816
|
ref,
|
|
@@ -2826,7 +2819,7 @@ var SelectLabel = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2826
2819
|
}
|
|
2827
2820
|
));
|
|
2828
2821
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2829
|
-
var SelectItem =
|
|
2822
|
+
var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
2830
2823
|
SelectPrimitive.Item,
|
|
2831
2824
|
{
|
|
2832
2825
|
ref,
|
|
@@ -2842,7 +2835,7 @@ var SelectItem = React28.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2842
2835
|
}
|
|
2843
2836
|
));
|
|
2844
2837
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2845
|
-
var SelectSeparator =
|
|
2838
|
+
var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2846
2839
|
SelectPrimitive.Separator,
|
|
2847
2840
|
{
|
|
2848
2841
|
ref,
|
|
@@ -2853,10 +2846,10 @@ var SelectSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2853
2846
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2854
2847
|
|
|
2855
2848
|
// src/components/separator.tsx
|
|
2856
|
-
import * as
|
|
2849
|
+
import * as React28 from "react";
|
|
2857
2850
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2858
2851
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2859
|
-
var Separator3 =
|
|
2852
|
+
var Separator3 = React28.forwardRef(
|
|
2860
2853
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2861
2854
|
SeparatorPrimitive.Root,
|
|
2862
2855
|
{
|
|
@@ -2875,7 +2868,7 @@ var Separator3 = React29.forwardRef(
|
|
|
2875
2868
|
Separator3.displayName = SeparatorPrimitive.Root.displayName;
|
|
2876
2869
|
|
|
2877
2870
|
// src/components/sheet.tsx
|
|
2878
|
-
import * as
|
|
2871
|
+
import * as React29 from "react";
|
|
2879
2872
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2880
2873
|
import { cva as cva4 } from "class-variance-authority";
|
|
2881
2874
|
import { X as X2 } from "lucide-react";
|
|
@@ -2884,7 +2877,7 @@ var Sheet = SheetPrimitive.Root;
|
|
|
2884
2877
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2885
2878
|
var SheetClose = SheetPrimitive.Close;
|
|
2886
2879
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2887
|
-
var SheetOverlay =
|
|
2880
|
+
var SheetOverlay = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2888
2881
|
SheetPrimitive.Overlay,
|
|
2889
2882
|
{
|
|
2890
2883
|
className: cn(
|
|
@@ -2912,7 +2905,7 @@ var sheetVariants = cva4(
|
|
|
2912
2905
|
}
|
|
2913
2906
|
}
|
|
2914
2907
|
);
|
|
2915
|
-
var SheetContent =
|
|
2908
|
+
var SheetContent = React29.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs21(SheetPortal, { children: [
|
|
2916
2909
|
/* @__PURE__ */ jsx33(SheetOverlay, {}),
|
|
2917
2910
|
/* @__PURE__ */ jsxs21(
|
|
2918
2911
|
SheetPrimitive.Content,
|
|
@@ -2959,7 +2952,7 @@ var SheetFooter = ({
|
|
|
2959
2952
|
}
|
|
2960
2953
|
);
|
|
2961
2954
|
SheetFooter.displayName = "SheetFooter";
|
|
2962
|
-
var SheetTitle =
|
|
2955
|
+
var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2963
2956
|
SheetPrimitive.Title,
|
|
2964
2957
|
{
|
|
2965
2958
|
ref,
|
|
@@ -2968,7 +2961,7 @@ var SheetTitle = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2968
2961
|
}
|
|
2969
2962
|
));
|
|
2970
2963
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2971
|
-
var SheetDescription =
|
|
2964
|
+
var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2972
2965
|
SheetPrimitive.Description,
|
|
2973
2966
|
{
|
|
2974
2967
|
ref,
|
|
@@ -3187,11 +3180,11 @@ function TableCaption({
|
|
|
3187
3180
|
}
|
|
3188
3181
|
|
|
3189
3182
|
// src/components/tabs.tsx
|
|
3190
|
-
import * as
|
|
3183
|
+
import * as React30 from "react";
|
|
3191
3184
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3192
3185
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3193
3186
|
var Tabs = TabsPrimitive.Root;
|
|
3194
|
-
var TabsList =
|
|
3187
|
+
var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3195
3188
|
TabsPrimitive.List,
|
|
3196
3189
|
{
|
|
3197
3190
|
ref,
|
|
@@ -3203,7 +3196,7 @@ var TabsList = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3203
3196
|
}
|
|
3204
3197
|
));
|
|
3205
3198
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3206
|
-
var TabsTrigger =
|
|
3199
|
+
var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3207
3200
|
TabsPrimitive.Trigger,
|
|
3208
3201
|
{
|
|
3209
3202
|
ref,
|
|
@@ -3215,7 +3208,7 @@ var TabsTrigger = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3215
3208
|
}
|
|
3216
3209
|
));
|
|
3217
3210
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3218
|
-
var TabsContent =
|
|
3211
|
+
var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3219
3212
|
TabsPrimitive.Content,
|
|
3220
3213
|
{
|
|
3221
3214
|
ref,
|
|
@@ -3234,9 +3227,9 @@ import { useId as useId3, useState as useState4 } from "react";
|
|
|
3234
3227
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3235
3228
|
|
|
3236
3229
|
// src/components/textarea.tsx
|
|
3237
|
-
import * as
|
|
3230
|
+
import * as React31 from "react";
|
|
3238
3231
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3239
|
-
var Textarea =
|
|
3232
|
+
var Textarea = React31.forwardRef(
|
|
3240
3233
|
({ className, ...props }, ref) => {
|
|
3241
3234
|
return /* @__PURE__ */ jsx40(
|
|
3242
3235
|
"textarea",
|
|
@@ -3254,17 +3247,17 @@ var Textarea = React32.forwardRef(
|
|
|
3254
3247
|
Textarea.displayName = "Textarea";
|
|
3255
3248
|
|
|
3256
3249
|
// src/components/timeline.tsx
|
|
3257
|
-
import * as
|
|
3250
|
+
import * as React32 from "react";
|
|
3258
3251
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3259
|
-
var TimelineContext =
|
|
3252
|
+
var TimelineContext = React32.createContext(null);
|
|
3260
3253
|
function useTimeline() {
|
|
3261
|
-
const context =
|
|
3254
|
+
const context = React32.useContext(TimelineContext);
|
|
3262
3255
|
if (!context) {
|
|
3263
3256
|
throw new Error("useTimeline must be used within a <Timeline />.");
|
|
3264
3257
|
}
|
|
3265
3258
|
return context;
|
|
3266
3259
|
}
|
|
3267
|
-
var Timeline =
|
|
3260
|
+
var Timeline = React32.forwardRef(
|
|
3268
3261
|
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx41(TimelineContext.Provider, { value: { orientation }, children: /* @__PURE__ */ jsx41(
|
|
3269
3262
|
"ol",
|
|
3270
3263
|
{
|
|
@@ -3281,7 +3274,7 @@ var Timeline = React33.forwardRef(
|
|
|
3281
3274
|
) })
|
|
3282
3275
|
);
|
|
3283
3276
|
Timeline.displayName = "Timeline";
|
|
3284
|
-
var TimelineItem =
|
|
3277
|
+
var TimelineItem = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3285
3278
|
const { orientation } = useTimeline();
|
|
3286
3279
|
return /* @__PURE__ */ jsx41(
|
|
3287
3280
|
"li",
|
|
@@ -3298,7 +3291,7 @@ var TimelineItem = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
3298
3291
|
);
|
|
3299
3292
|
});
|
|
3300
3293
|
TimelineItem.displayName = "TimelineItem";
|
|
3301
|
-
var TimelineSeparator =
|
|
3294
|
+
var TimelineSeparator = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3302
3295
|
const { orientation } = useTimeline();
|
|
3303
3296
|
return /* @__PURE__ */ jsx41(
|
|
3304
3297
|
"div",
|
|
@@ -3315,7 +3308,7 @@ var TimelineSeparator = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
3315
3308
|
);
|
|
3316
3309
|
});
|
|
3317
3310
|
TimelineSeparator.displayName = "TimelineSeparator";
|
|
3318
|
-
var TimelineDot =
|
|
3311
|
+
var TimelineDot = React32.forwardRef(({ variant = "default", className, ...props }, ref) => {
|
|
3319
3312
|
const { orientation } = useTimeline();
|
|
3320
3313
|
return /* @__PURE__ */ jsx41(
|
|
3321
3314
|
"div",
|
|
@@ -3334,7 +3327,7 @@ var TimelineDot = React33.forwardRef(({ variant = "default", className, ...props
|
|
|
3334
3327
|
);
|
|
3335
3328
|
});
|
|
3336
3329
|
TimelineDot.displayName = "TimelineDot";
|
|
3337
|
-
var TimelineConnector =
|
|
3330
|
+
var TimelineConnector = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3338
3331
|
const { orientation } = useTimeline();
|
|
3339
3332
|
return /* @__PURE__ */ jsx41(
|
|
3340
3333
|
"div",
|
|
@@ -3352,7 +3345,7 @@ var TimelineConnector = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
3352
3345
|
);
|
|
3353
3346
|
});
|
|
3354
3347
|
TimelineConnector.displayName = "TimelineConnector";
|
|
3355
|
-
var TimelineContent =
|
|
3348
|
+
var TimelineContent = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3356
3349
|
const { orientation } = useTimeline();
|
|
3357
3350
|
return /* @__PURE__ */ jsx41(
|
|
3358
3351
|
"div",
|
|
@@ -3370,12 +3363,12 @@ var TimelineContent = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
3370
3363
|
);
|
|
3371
3364
|
});
|
|
3372
3365
|
TimelineContent.displayName = "TimelineContent";
|
|
3373
|
-
var TimelineTitle =
|
|
3366
|
+
var TimelineTitle = React32.forwardRef((props, ref) => {
|
|
3374
3367
|
const { orientation } = useTimeline();
|
|
3375
3368
|
return /* @__PURE__ */ jsx41("div", { ref, "data-orientation": orientation, ...props });
|
|
3376
3369
|
});
|
|
3377
3370
|
TimelineTitle.displayName = "TimelineTitle";
|
|
3378
|
-
var TimelineDescription =
|
|
3371
|
+
var TimelineDescription = React32.forwardRef(({ className, ...props }, ref) => {
|
|
3379
3372
|
const { orientation } = useTimeline();
|
|
3380
3373
|
return /* @__PURE__ */ jsx41(
|
|
3381
3374
|
"div",
|
|
@@ -3390,13 +3383,13 @@ var TimelineDescription = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
3390
3383
|
TimelineDescription.displayName = "TimelineDescription";
|
|
3391
3384
|
|
|
3392
3385
|
// src/components/tooltip.tsx
|
|
3393
|
-
import * as
|
|
3386
|
+
import * as React33 from "react";
|
|
3394
3387
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3395
3388
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3396
3389
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3397
3390
|
var Tooltip = TooltipPrimitive.Root;
|
|
3398
3391
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3399
|
-
var TooltipContent =
|
|
3392
|
+
var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
3400
3393
|
TooltipPrimitive.Content,
|
|
3401
3394
|
{
|
|
3402
3395
|
ref,
|
|
@@ -3596,7 +3589,6 @@ export {
|
|
|
3596
3589
|
buttonVariants,
|
|
3597
3590
|
cn,
|
|
3598
3591
|
statusIndicatorVariants,
|
|
3599
|
-
tv,
|
|
3600
3592
|
useComboboxFilter,
|
|
3601
3593
|
useFormField
|
|
3602
3594
|
};
|