@turtleclub/ui 0.0.1

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.
Files changed (50) hide show
  1. package/.turbo/turbo-build.log +15 -0
  2. package/.turbo/turbo-type-check.log +360 -0
  3. package/README.md +3 -0
  4. package/components.json +21 -0
  5. package/dist/index.cjs +2 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.js +1672 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/styles.css +1 -0
  10. package/package.json +66 -0
  11. package/src/components/molecules/index.ts +7 -0
  12. package/src/components/molecules/opportunity-details.tsx +145 -0
  13. package/src/components/molecules/opportunity-item.tsx +63 -0
  14. package/src/components/molecules/route-details.tsx +87 -0
  15. package/src/components/molecules/swap-details.tsx +95 -0
  16. package/src/components/molecules/swap-input.tsx +115 -0
  17. package/src/components/molecules/token-selector.tsx +72 -0
  18. package/src/components/molecules/tx-status.tsx +254 -0
  19. package/src/components/ui/button.tsx +65 -0
  20. package/src/components/ui/card.tsx +101 -0
  21. package/src/components/ui/chip.tsx +48 -0
  22. package/src/components/ui/icon-animation.tsx +82 -0
  23. package/src/components/ui/index.ts +18 -0
  24. package/src/components/ui/info-card.tsx +128 -0
  25. package/src/components/ui/input.tsx +78 -0
  26. package/src/components/ui/label-with-icon.tsx +112 -0
  27. package/src/components/ui/label.tsx +22 -0
  28. package/src/components/ui/navigation-bar.tsx +135 -0
  29. package/src/components/ui/opportunity-details-v1.tsx +90 -0
  30. package/src/components/ui/scroll-area.tsx +56 -0
  31. package/src/components/ui/select.tsx +180 -0
  32. package/src/components/ui/separator.tsx +26 -0
  33. package/src/components/ui/sonner.tsx +23 -0
  34. package/src/components/ui/switch.tsx +29 -0
  35. package/src/components/ui/toggle-group.tsx +71 -0
  36. package/src/components/ui/toggle.tsx +47 -0
  37. package/src/components/ui/tooltip.tsx +59 -0
  38. package/src/index.ts +9 -0
  39. package/src/lib/utils.ts +6 -0
  40. package/src/styles/globals.css +75 -0
  41. package/src/styles/themes/index.css +9 -0
  42. package/src/styles/themes/semantic.css +107 -0
  43. package/src/styles/tokens/colors.css +77 -0
  44. package/src/styles/tokens/index.css +15 -0
  45. package/src/styles/tokens/radius.css +46 -0
  46. package/src/styles/tokens/spacing.css +52 -0
  47. package/src/styles/tokens/typography.css +86 -0
  48. package/src/tokens/index.ts +108 -0
  49. package/tsconfig.json +21 -0
  50. package/vite.config.js +65 -0
@@ -0,0 +1,15 @@
1
+
2
+ $ rm -rf dist && rm -rf types && bun run build:code && bun run build:css
3
+ $ vite build
4
+ vite v5.4.19 building for production...
5
+ transforming (1) src/index.tssrc/components/ui/toggle.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
6
+ src/components/ui/toggle.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/toggle.tsx" was ignored.
7
+ ✓ 30 modules transformed.
8
+ rendering chunks (1)...computing gzip size (0)...computing gzip size (1)...dist/index.js 56.61 kB │ gzip: 11.67 kB │ map: 112.92 kB
9
+ rendering chunks (1)...computing gzip size (1)...dist/index.cjs 39.14 kB │ gzip: 9.87 kB │ map: 106.09 kB
10
+ ✓ built in 117ms
11
+ $ BUILD_CSS=true vite build
12
+ vite v5.4.19 building for production...
13
+ transforming (1) src/styles/globals.css✓ 1 modules transformed.
14
+ rendering chunks (1)...computing gzip size (0)...computing gzip size (1)...dist/styles.css 46.28 kB │ gzip: 8.64 kB
15
+ ✓ built in 90ms
@@ -0,0 +1,360 @@
1
+ $ tsc --noEmit || true
2
+ src/components/molecules/route-details.tsx(43,14): error TS2786: 'ChevronDownIcon' cannot be used as a JSX component.
3
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
4
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
5
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
6
+ Type 'bigint' is not assignable to type 'ReactNode'.
7
+ src/components/molecules/route-details.tsx(51,14): error TS2322: Type '{ children: Element[]; className: string; }' is not assignable to type 'IntrinsicAttributes'.
8
+ Property 'children' does not exist on type 'IntrinsicAttributes'.
9
+ src/components/molecules/route-details.tsx(70,26): error TS2786: 'ChevronsRightIcon' cannot be used as a JSX component.
10
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
11
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
12
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
13
+ Type 'bigint' is not assignable to type 'ReactNode'.
14
+ src/components/molecules/route-details.tsx(76,26): error TS2322: Type '{ orientation: string; className: string; }' is not assignable to type 'IntrinsicAttributes'.
15
+ Property 'orientation' does not exist on type 'IntrinsicAttributes'.
16
+ src/components/molecules/swap-details.tsx(52,14): error TS2786: 'ChevronDownIcon' cannot be used as a JSX component.
17
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
18
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
19
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
20
+ Type 'bigint' is not assignable to type 'ReactNode'.
21
+ src/components/molecules/token-selector.tsx(37,8): error TS2322: Type '{ children: Element[]; value: string; onValueChange: (value: string) => void; disabled: boolean; }' is not assignable to type 'IntrinsicAttributes'.
22
+ Property 'children' does not exist on type 'IntrinsicAttributes'.
23
+ src/components/molecules/token-selector.tsx(38,10): error TS2322: Type '{ children: Element; ref: ForwardedRef<HTMLButtonElement>; className: string; }' is not assignable to type 'IntrinsicAttributes & { size?: "default" | "sm"; }'.
24
+ Property 'children' does not exist on type 'IntrinsicAttributes & { size?: "default" | "sm"; }'.
25
+ src/components/molecules/token-selector.tsx(55,10): error TS2559: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes'.
26
+ src/components/molecules/token-selector.tsx(57,14): error TS2322: Type '{ children: Element; key: string; value: string; className: string; }' is not assignable to type 'IntrinsicAttributes'.
27
+ Property 'children' does not exist on type 'IntrinsicAttributes'.
28
+ src/components/molecules/tx-status.tsx(101,16): error TS2786: 'XIcon' cannot be used as a JSX component.
29
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
30
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
31
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
32
+ Type 'bigint' is not assignable to type 'ReactNode'.
33
+ src/components/molecules/tx-status.tsx(103,16): error TS2786: 'CheckIcon' cannot be used as a JSX component.
34
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
35
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
36
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
37
+ Type 'bigint' is not assignable to type 'ReactNode'.
38
+ src/components/molecules/tx-status.tsx(105,16): error TS2786: 'TurtleIcon' cannot be used as a JSX component.
39
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
40
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
41
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
42
+ Type 'bigint' is not assignable to type 'ReactNode'.
43
+ src/components/ui/button.tsx(57,6): error TS2322: Type '{ ref?: LegacyRef<HTMLButtonElement>; key?: Key; disabled?: boolean; form?: string; formAction?: string; formEncType?: string; formMethod?: string; formNoValidate?: boolean; ... 268 more ...; className: string; }' is not assignable to type 'RefAttributes<HTMLElement>'.
44
+ Types of property 'ref' are incompatible.
45
+ Type 'LegacyRef<HTMLButtonElement>' is not assignable to type 'Ref<HTMLElement>'.
46
+ Type 'string' is not assignable to type 'Ref<HTMLElement>'.
47
+ src/components/ui/button.tsx(57,6): error TS2786: 'Comp' cannot be used as a JSX component.
48
+ Its type '"button" | ForwardRefExoticComponent<SlotProps & RefAttributes<HTMLElement>>' is not a valid JSX element type.
49
+ Type 'ForwardRefExoticComponent<SlotProps & RefAttributes<HTMLElement>>' is not assignable to type 'ElementType'.
50
+ Type 'ForwardRefExoticComponent<SlotProps & RefAttributes<HTMLElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
51
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
52
+ Type 'bigint' is not assignable to type 'ReactNode'.
53
+ src/components/ui/label.tsx(7,3): error TS2339: Property 'className' does not exist on type '{}'.
54
+ src/components/ui/label.tsx(9,25): error TS2344: Type 'ForwardRefExoticComponent<LabelProps & RefAttributes<HTMLLabelElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
55
+ Type 'ForwardRefExoticComponent<LabelProps & RefAttributes<HTMLLabelElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
56
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
57
+ Type 'bigint' is not assignable to type 'ReactNode'.
58
+ src/components/ui/label.tsx(11,6): error TS2786: 'LabelPrimitive.Root' cannot be used as a JSX component.
59
+ Its type 'ForwardRefExoticComponent<LabelProps & RefAttributes<HTMLLabelElement>>' is not a valid JSX element type.
60
+ Type 'ForwardRefExoticComponent<LabelProps & RefAttributes<HTMLLabelElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
61
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
62
+ Type 'bigint' is not assignable to type 'ReactNode'.
63
+ src/components/ui/scroll-area.tsx(7,3): error TS2339: Property 'className' does not exist on type '{}'.
64
+ src/components/ui/scroll-area.tsx(8,3): error TS2339: Property 'children' does not exist on type '{}'.
65
+ src/components/ui/scroll-area.tsx(10,25): error TS2344: Type 'ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
66
+ Type 'ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
67
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
68
+ Type 'bigint' is not assignable to type 'ReactNode'.
69
+ src/components/ui/scroll-area.tsx(12,6): error TS2786: 'ScrollAreaPrimitive.Root' cannot be used as a JSX component.
70
+ Its type 'ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
71
+ Type 'ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
72
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
73
+ Type 'bigint' is not assignable to type 'ReactNode'.
74
+ src/components/ui/scroll-area.tsx(17,8): error TS2786: 'ScrollAreaPrimitive.Viewport' cannot be used as a JSX component.
75
+ Its type 'ForwardRefExoticComponent<ScrollAreaViewportProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
76
+ Type 'ForwardRefExoticComponent<ScrollAreaViewportProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
77
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
78
+ Type 'bigint' is not assignable to type 'ReactNode'.
79
+ src/components/ui/scroll-area.tsx(24,8): error TS2786: 'ScrollAreaPrimitive.Corner' cannot be used as a JSX component.
80
+ Its type 'ForwardRefExoticComponent<ScrollAreaCornerProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
81
+ Type 'ForwardRefExoticComponent<ScrollAreaCornerProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
82
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
83
+ Type 'bigint' is not assignable to type 'ReactNode'.
84
+ src/components/ui/scroll-area.tsx(30,3): error TS2339: Property 'className' does not exist on type '{}'.
85
+ src/components/ui/scroll-area.tsx(31,3): error TS2339: Property 'orientation' does not exist on type '{}'.
86
+ src/components/ui/scroll-area.tsx(33,25): error TS2344: Type 'ForwardRefExoticComponent<ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
87
+ Type 'ForwardRefExoticComponent<ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
88
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
89
+ Type 'bigint' is not assignable to type 'ReactNode'.
90
+ src/components/ui/scroll-area.tsx(35,6): error TS2786: 'ScrollAreaPrimitive.ScrollAreaScrollbar' cannot be used as a JSX component.
91
+ Its type 'ForwardRefExoticComponent<ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
92
+ Type 'ForwardRefExoticComponent<ScrollAreaScrollbarProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
93
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
94
+ Type 'bigint' is not assignable to type 'ReactNode'.
95
+ src/components/ui/scroll-area.tsx(48,8): error TS2786: 'ScrollAreaPrimitive.ScrollAreaThumb' cannot be used as a JSX component.
96
+ Its type 'ForwardRefExoticComponent<ScrollAreaThumbProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
97
+ Type 'ForwardRefExoticComponent<ScrollAreaThumbProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
98
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
99
+ Type 'bigint' is not assignable to type 'ReactNode'.
100
+ src/components/ui/select.tsx(7,52): error TS2344: Type 'FC<SelectProps>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
101
+ Type 'FunctionComponent<SelectProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
102
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
103
+ Type 'bigint' is not assignable to type 'ReactNode'.
104
+ src/components/ui/select.tsx(8,11): error TS2786: 'SelectPrimitive.Root' cannot be used as a JSX component.
105
+ Its type 'FC<SelectProps>' is not a valid JSX element type.
106
+ Type 'FunctionComponent<SelectProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
107
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
108
+ Type 'bigint' is not assignable to type 'ReactNode'.
109
+ src/components/ui/select.tsx(11,57): error TS2344: Type 'ForwardRefExoticComponent<SelectGroupProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
110
+ Type 'ForwardRefExoticComponent<SelectGroupProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
111
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
112
+ Type 'bigint' is not assignable to type 'ReactNode'.
113
+ src/components/ui/select.tsx(12,11): error TS2786: 'SelectPrimitive.Group' cannot be used as a JSX component.
114
+ Its type 'ForwardRefExoticComponent<SelectGroupProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
115
+ Type 'ForwardRefExoticComponent<SelectGroupProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
116
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
117
+ Type 'bigint' is not assignable to type 'ReactNode'.
118
+ src/components/ui/select.tsx(15,57): error TS2344: Type 'ForwardRefExoticComponent<SelectValueProps & RefAttributes<HTMLSpanElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
119
+ Type 'ForwardRefExoticComponent<SelectValueProps & RefAttributes<HTMLSpanElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
120
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
121
+ Type 'bigint' is not assignable to type 'ReactNode'.
122
+ src/components/ui/select.tsx(16,11): error TS2786: 'SelectPrimitive.Value' cannot be used as a JSX component.
123
+ Its type 'ForwardRefExoticComponent<SelectValueProps & RefAttributes<HTMLSpanElement>>' is not a valid JSX element type.
124
+ Type 'ForwardRefExoticComponent<SelectValueProps & RefAttributes<HTMLSpanElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
125
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
126
+ Type 'bigint' is not assignable to type 'ReactNode'.
127
+ src/components/ui/select.tsx(20,3): error TS2339: Property 'className' does not exist on type '{ size?: "default" | "sm"; }'.
128
+ src/components/ui/select.tsx(22,3): error TS2339: Property 'children' does not exist on type '{ size?: "default" | "sm"; }'.
129
+ src/components/ui/select.tsx(24,25): error TS2344: Type 'ForwardRefExoticComponent<SelectTriggerProps & RefAttributes<HTMLButtonElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
130
+ Type 'ForwardRefExoticComponent<SelectTriggerProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
131
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
132
+ Type 'bigint' is not assignable to type 'ReactNode'.
133
+ src/components/ui/select.tsx(28,6): error TS2786: 'SelectPrimitive.Trigger' cannot be used as a JSX component.
134
+ Its type 'ForwardRefExoticComponent<SelectTriggerProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type.
135
+ Type 'ForwardRefExoticComponent<SelectTriggerProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
136
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
137
+ Type 'bigint' is not assignable to type 'ReactNode'.
138
+ src/components/ui/select.tsx(42,8): error TS2786: 'SelectPrimitive.Icon' cannot be used as a JSX component.
139
+ Its type 'ForwardRefExoticComponent<SelectIconProps & RefAttributes<HTMLSpanElement>>' is not a valid JSX element type.
140
+ Type 'ForwardRefExoticComponent<SelectIconProps & RefAttributes<HTMLSpanElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
141
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
142
+ Type 'bigint' is not assignable to type 'ReactNode'.
143
+ src/components/ui/select.tsx(43,10): error TS2786: 'ChevronDownIcon' cannot be used as a JSX component.
144
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
145
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
146
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
147
+ Type 'bigint' is not assignable to type 'ReactNode'.
148
+ src/components/ui/select.tsx(50,3): error TS2339: Property 'className' does not exist on type '{}'.
149
+ src/components/ui/select.tsx(51,3): error TS2339: Property 'children' does not exist on type '{}'.
150
+ src/components/ui/select.tsx(52,3): error TS2339: Property 'position' does not exist on type '{}'.
151
+ src/components/ui/select.tsx(54,25): error TS2344: Type 'ForwardRefExoticComponent<SelectContentProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
152
+ Type 'ForwardRefExoticComponent<SelectContentProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
153
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
154
+ Type 'bigint' is not assignable to type 'ReactNode'.
155
+ src/components/ui/select.tsx(56,6): error TS2786: 'SelectPrimitive.Portal' cannot be used as a JSX component.
156
+ Its type 'FC<SelectPortalProps>' is not a valid JSX element type.
157
+ Type 'FunctionComponent<SelectPortalProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
158
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
159
+ Type 'bigint' is not assignable to type 'ReactNode'.
160
+ src/components/ui/select.tsx(57,8): error TS2786: 'SelectPrimitive.Content' cannot be used as a JSX component.
161
+ Its type 'ForwardRefExoticComponent<SelectContentProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
162
+ Type 'ForwardRefExoticComponent<SelectContentProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
163
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
164
+ Type 'bigint' is not assignable to type 'ReactNode'.
165
+ src/components/ui/select.tsx(70,10): error TS2786: 'SelectPrimitive.Viewport' cannot be used as a JSX component.
166
+ Its type 'ForwardRefExoticComponent<SelectViewportProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
167
+ Type 'ForwardRefExoticComponent<SelectViewportProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
168
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
169
+ Type 'bigint' is not assignable to type 'ReactNode'.
170
+ src/components/ui/select.tsx(85,24): error TS2339: Property 'className' does not exist on type '{}'.
171
+ src/components/ui/select.tsx(85,68): error TS2344: Type 'ForwardRefExoticComponent<SelectLabelProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
172
+ Type 'ForwardRefExoticComponent<SelectLabelProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
173
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
174
+ Type 'bigint' is not assignable to type 'ReactNode'.
175
+ src/components/ui/select.tsx(87,6): error TS2786: 'SelectPrimitive.Label' cannot be used as a JSX component.
176
+ Its type 'ForwardRefExoticComponent<SelectLabelProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
177
+ Type 'ForwardRefExoticComponent<SelectLabelProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
178
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
179
+ Type 'bigint' is not assignable to type 'ReactNode'.
180
+ src/components/ui/select.tsx(96,3): error TS2339: Property 'className' does not exist on type '{}'.
181
+ src/components/ui/select.tsx(97,3): error TS2339: Property 'children' does not exist on type '{}'.
182
+ src/components/ui/select.tsx(99,25): error TS2344: Type 'ForwardRefExoticComponent<SelectItemProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
183
+ Type 'ForwardRefExoticComponent<SelectItemProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
184
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
185
+ Type 'bigint' is not assignable to type 'ReactNode'.
186
+ src/components/ui/select.tsx(101,6): error TS2741: Property 'value' is missing in type '{ children: Element[]; "data-slot": string; className: string; }' but required in type 'SelectItemProps'.
187
+ src/components/ui/select.tsx(101,6): error TS2786: 'SelectPrimitive.Item' cannot be used as a JSX component.
188
+ Its type 'ForwardRefExoticComponent<SelectItemProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
189
+ Type 'ForwardRefExoticComponent<SelectItemProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
190
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
191
+ Type 'bigint' is not assignable to type 'ReactNode'.
192
+ src/components/ui/select.tsx(117,10): error TS2786: 'SelectPrimitive.ItemIndicator' cannot be used as a JSX component.
193
+ Its type 'ForwardRefExoticComponent<SelectItemIndicatorProps & RefAttributes<HTMLSpanElement>>' is not a valid JSX element type.
194
+ Type 'ForwardRefExoticComponent<SelectItemIndicatorProps & RefAttributes<HTMLSpanElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
195
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
196
+ Type 'bigint' is not assignable to type 'ReactNode'.
197
+ src/components/ui/select.tsx(121,8): error TS2786: 'SelectPrimitive.ItemText' cannot be used as a JSX component.
198
+ Its type 'ForwardRefExoticComponent<SelectItemTextProps & RefAttributes<HTMLSpanElement>>' is not a valid JSX element type.
199
+ Type 'ForwardRefExoticComponent<SelectItemTextProps & RefAttributes<HTMLSpanElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
200
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
201
+ Type 'bigint' is not assignable to type 'ReactNode'.
202
+ src/components/ui/select.tsx(127,3): error TS2339: Property 'className' does not exist on type '{}'.
203
+ src/components/ui/select.tsx(129,25): error TS2344: Type 'ForwardRefExoticComponent<SelectSeparatorProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
204
+ Type 'ForwardRefExoticComponent<SelectSeparatorProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
205
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
206
+ Type 'bigint' is not assignable to type 'ReactNode'.
207
+ src/components/ui/select.tsx(131,6): error TS2786: 'SelectPrimitive.Separator' cannot be used as a JSX component.
208
+ Its type 'ForwardRefExoticComponent<SelectSeparatorProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
209
+ Type 'ForwardRefExoticComponent<SelectSeparatorProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
210
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
211
+ Type 'bigint' is not assignable to type 'ReactNode'.
212
+ src/components/ui/select.tsx(140,3): error TS2339: Property 'className' does not exist on type '{}'.
213
+ src/components/ui/select.tsx(142,25): error TS2344: Type 'ForwardRefExoticComponent<SelectScrollUpButtonProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
214
+ Type 'ForwardRefExoticComponent<SelectScrollUpButtonProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
215
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
216
+ Type 'bigint' is not assignable to type 'ReactNode'.
217
+ src/components/ui/select.tsx(144,6): error TS2786: 'SelectPrimitive.ScrollUpButton' cannot be used as a JSX component.
218
+ Its type 'ForwardRefExoticComponent<SelectScrollUpButtonProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
219
+ Type 'ForwardRefExoticComponent<SelectScrollUpButtonProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
220
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
221
+ Type 'bigint' is not assignable to type 'ReactNode'.
222
+ src/components/ui/select.tsx(149,8): error TS2786: 'ChevronUpIcon' cannot be used as a JSX component.
223
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
224
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
225
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
226
+ Type 'bigint' is not assignable to type 'ReactNode'.
227
+ src/components/ui/select.tsx(155,3): error TS2339: Property 'className' does not exist on type '{}'.
228
+ src/components/ui/select.tsx(157,25): error TS2344: Type 'ForwardRefExoticComponent<SelectScrollDownButtonProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
229
+ Type 'ForwardRefExoticComponent<SelectScrollDownButtonProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
230
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
231
+ Type 'bigint' is not assignable to type 'ReactNode'.
232
+ src/components/ui/select.tsx(159,6): error TS2786: 'SelectPrimitive.ScrollDownButton' cannot be used as a JSX component.
233
+ Its type 'ForwardRefExoticComponent<SelectScrollDownButtonProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
234
+ Type 'ForwardRefExoticComponent<SelectScrollDownButtonProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
235
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
236
+ Type 'bigint' is not assignable to type 'ReactNode'.
237
+ src/components/ui/select.tsx(164,8): error TS2786: 'ChevronDownIcon' cannot be used as a JSX component.
238
+ Its type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
239
+ Type 'ForwardRefExoticComponent<Omit<LucideProps, "ref"> & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
240
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
241
+ Type 'bigint' is not assignable to type 'ReactNode'.
242
+ src/components/ui/separator.tsx(7,3): error TS2339: Property 'className' does not exist on type '{}'.
243
+ src/components/ui/separator.tsx(8,3): error TS2339: Property 'orientation' does not exist on type '{}'.
244
+ src/components/ui/separator.tsx(9,3): error TS2339: Property 'decorative' does not exist on type '{}'.
245
+ src/components/ui/separator.tsx(11,25): error TS2344: Type 'ForwardRefExoticComponent<SeparatorProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
246
+ Type 'ForwardRefExoticComponent<SeparatorProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
247
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
248
+ Type 'bigint' is not assignable to type 'ReactNode'.
249
+ src/components/ui/separator.tsx(13,6): error TS2786: 'SeparatorPrimitive.Root' cannot be used as a JSX component.
250
+ Its type 'ForwardRefExoticComponent<SeparatorProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
251
+ Type 'ForwardRefExoticComponent<SeparatorProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
252
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
253
+ Type 'bigint' is not assignable to type 'ReactNode'.
254
+ src/components/ui/sonner.tsx(8,6): error TS2786: 'Sonner' cannot be used as a JSX component.
255
+ Its type 'ForwardRefExoticComponent<ToasterProps & RefAttributes<HTMLElement>>' is not a valid JSX element type.
256
+ Type 'ForwardRefExoticComponent<ToasterProps & RefAttributes<HTMLElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
257
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
258
+ Type 'bigint' is not assignable to type 'ReactNode'.
259
+ src/components/ui/switch.tsx(7,3): error TS2339: Property 'className' does not exist on type '{}'.
260
+ src/components/ui/switch.tsx(9,25): error TS2344: Type 'ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLButtonElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
261
+ Type 'ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
262
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
263
+ Type 'bigint' is not assignable to type 'ReactNode'.
264
+ src/components/ui/switch.tsx(11,6): error TS2786: 'SwitchPrimitive.Root' cannot be used as a JSX component.
265
+ Its type 'ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type.
266
+ Type 'ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
267
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
268
+ Type 'bigint' is not assignable to type 'ReactNode'.
269
+ src/components/ui/switch.tsx(19,8): error TS2786: 'SwitchPrimitive.Thumb' cannot be used as a JSX component.
270
+ Its type 'ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLSpanElement>>' is not a valid JSX element type.
271
+ Type 'ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLSpanElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
272
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
273
+ Type 'bigint' is not assignable to type 'ReactNode'.
274
+ src/components/ui/toggle-group.tsx(16,3): error TS2339: Property 'className' does not exist on type 'VariantProps<(props?: ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp) => string>'.
275
+ src/components/ui/toggle-group.tsx(19,3): error TS2339: Property 'children' does not exist on type 'VariantProps<(props?: ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp) => string>'.
276
+ src/components/ui/toggle-group.tsx(21,25): error TS2344: Type 'ForwardRefExoticComponent<(ToggleGroupSingleProps | ToggleGroupMultipleProps) & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
277
+ Type 'ForwardRefExoticComponent<(ToggleGroupSingleProps | ToggleGroupMultipleProps) & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
278
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
279
+ Type 'bigint' is not assignable to type 'ReactNode'.
280
+ src/components/ui/toggle-group.tsx(24,6): error TS2322: Type '{ children: Element; "data-slot": string; "data-variant": "default" | "outline"; "data-size": "default" | "sm" | "lg"; className: string; }' is not assignable to type 'IntrinsicAttributes & ((ToggleGroupSingleProps | ToggleGroupMultipleProps) & RefAttributes<HTMLDivElement>)'.
281
+ Property 'type' is missing in type '{ children: Element; "data-slot": string; "data-variant": "default" | "outline"; "data-size": "default" | "sm" | "lg"; className: string; }' but required in type 'ToggleGroupMultipleProps'.
282
+ src/components/ui/toggle-group.tsx(24,6): error TS2786: 'ToggleGroupPrimitive.Root' cannot be used as a JSX component.
283
+ Its type 'ForwardRefExoticComponent<(ToggleGroupSingleProps | ToggleGroupMultipleProps) & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
284
+ Type 'ForwardRefExoticComponent<(ToggleGroupSingleProps | ToggleGroupMultipleProps) & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
285
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
286
+ Type 'bigint' is not assignable to type 'ReactNode'.
287
+ src/components/ui/toggle-group.tsx(42,3): error TS2339: Property 'className' does not exist on type 'VariantProps<(props?: ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp) => string>'.
288
+ src/components/ui/toggle-group.tsx(43,3): error TS2339: Property 'children' does not exist on type 'VariantProps<(props?: ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp) => string>'.
289
+ src/components/ui/toggle-group.tsx(47,25): error TS2344: Type 'ForwardRefExoticComponent<ToggleGroupItemProps & RefAttributes<HTMLButtonElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
290
+ Type 'ForwardRefExoticComponent<ToggleGroupItemProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
291
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
292
+ Type 'bigint' is not assignable to type 'ReactNode'.
293
+ src/components/ui/toggle-group.tsx(52,6): error TS2741: Property 'value' is missing in type '{ children: any; "data-slot": string; "data-variant": "default" | "outline"; "data-size": "default" | "sm" | "lg"; className: string; }' but required in type 'Omit<ToggleGroupItemImplProps, "pressed">'.
294
+ src/components/ui/toggle-group.tsx(52,6): error TS2786: 'ToggleGroupPrimitive.Item' cannot be used as a JSX component.
295
+ Its type 'ForwardRefExoticComponent<ToggleGroupItemProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type.
296
+ Type 'ForwardRefExoticComponent<ToggleGroupItemProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
297
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
298
+ Type 'bigint' is not assignable to type 'ReactNode'.
299
+ src/components/ui/toggle.tsx(32,3): error TS2339: Property 'className' does not exist on type 'VariantProps<(props?: ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp) => string>'.
300
+ src/components/ui/toggle.tsx(36,25): error TS2344: Type 'ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLButtonElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
301
+ Type 'ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
302
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
303
+ Type 'bigint' is not assignable to type 'ReactNode'.
304
+ src/components/ui/toggle.tsx(39,6): error TS2786: 'TogglePrimitive.Root' cannot be used as a JSX component.
305
+ Its type 'ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type.
306
+ Type 'ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
307
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
308
+ Type 'bigint' is not assignable to type 'ReactNode'.
309
+ src/components/ui/tooltip.tsx(7,3): error TS2339: Property 'delayDuration' does not exist on type '{}'.
310
+ src/components/ui/tooltip.tsx(9,25): error TS2344: Type 'FC<TooltipProviderProps>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
311
+ Type 'FunctionComponent<TooltipProviderProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
312
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
313
+ Type 'bigint' is not assignable to type 'ReactNode'.
314
+ src/components/ui/tooltip.tsx(11,6): error TS2741: Property 'children' is missing in type '{ "data-slot": string; delayDuration: any; }' but required in type 'TooltipProviderProps'.
315
+ src/components/ui/tooltip.tsx(11,6): error TS2786: 'TooltipPrimitive.Provider' cannot be used as a JSX component.
316
+ Its type 'FC<TooltipProviderProps>' is not a valid JSX element type.
317
+ Type 'FunctionComponent<TooltipProviderProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
318
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
319
+ Type 'bigint' is not assignable to type 'ReactNode'.
320
+ src/components/ui/tooltip.tsx(21,25): error TS2344: Type 'FC<TooltipProps>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
321
+ Type 'FunctionComponent<TooltipProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
322
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
323
+ Type 'bigint' is not assignable to type 'ReactNode'.
324
+ src/components/ui/tooltip.tsx(23,6): error TS2559: Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.
325
+ src/components/ui/tooltip.tsx(24,8): error TS2786: 'TooltipPrimitive.Root' cannot be used as a JSX component.
326
+ Its type 'FC<TooltipProps>' is not a valid JSX element type.
327
+ Type 'FunctionComponent<TooltipProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
328
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
329
+ Type 'bigint' is not assignable to type 'ReactNode'.
330
+ src/components/ui/tooltip.tsx(31,25): error TS2344: Type 'ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<HTMLButtonElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
331
+ Type 'ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
332
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
333
+ Type 'bigint' is not assignable to type 'ReactNode'.
334
+ src/components/ui/tooltip.tsx(32,11): error TS2786: 'TooltipPrimitive.Trigger' cannot be used as a JSX component.
335
+ Its type 'ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type.
336
+ Type 'ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
337
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
338
+ Type 'bigint' is not assignable to type 'ReactNode'.
339
+ src/components/ui/tooltip.tsx(36,3): error TS2339: Property 'className' does not exist on type '{}'.
340
+ src/components/ui/tooltip.tsx(37,3): error TS2339: Property 'sideOffset' does not exist on type '{}'.
341
+ src/components/ui/tooltip.tsx(38,3): error TS2339: Property 'children' does not exist on type '{}'.
342
+ src/components/ui/tooltip.tsx(40,25): error TS2344: Type 'ForwardRefExoticComponent<TooltipContentProps & RefAttributes<HTMLDivElement>>' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor<any>'.
343
+ Type 'ForwardRefExoticComponent<TooltipContentProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
344
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
345
+ Type 'bigint' is not assignable to type 'ReactNode'.
346
+ src/components/ui/tooltip.tsx(42,6): error TS2786: 'TooltipPrimitive.Portal' cannot be used as a JSX component.
347
+ Its type 'FC<TooltipPortalProps>' is not a valid JSX element type.
348
+ Type 'FunctionComponent<TooltipPortalProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
349
+ Type 'ReactNode | Promise<ReactNode>' is not assignable to type 'ReactNode'.
350
+ Type 'bigint' is not assignable to type 'ReactNode'.
351
+ src/components/ui/tooltip.tsx(43,8): error TS2786: 'TooltipPrimitive.Content' cannot be used as a JSX component.
352
+ Its type 'ForwardRefExoticComponent<TooltipContentProps & RefAttributes<HTMLDivElement>>' is not a valid JSX element type.
353
+ Type 'ForwardRefExoticComponent<TooltipContentProps & RefAttributes<HTMLDivElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
354
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
355
+ Type 'bigint' is not assignable to type 'ReactNode'.
356
+ src/components/ui/tooltip.tsx(53,10): error TS2786: 'TooltipPrimitive.Arrow' cannot be used as a JSX component.
357
+ Its type 'ForwardRefExoticComponent<TooltipArrowProps & RefAttributes<SVGSVGElement>>' is not a valid JSX element type.
358
+ Type 'ForwardRefExoticComponent<TooltipArrowProps & RefAttributes<SVGSVGElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
359
+ Type 'import("/Users/amilcarrey/Documents/TURTLE/current/turtle-packages/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
360
+ Type 'bigint' is not assignable to type 'ReactNode'.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @turtledev/ui
2
+
3
+ A modern, accessible UI component library built with React, Radix UI primitives, and TailwindCSS. This package provides a comprehensive set of reusable components following the shadcn/ui design system.
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "src/styles/globals.css",
9
+ "baseColor": "gray",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/hooks"
19
+ },
20
+ "iconLibrary": "lucide"
21
+ }
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const be=require("clsx"),je=require("tailwind-merge"),e=require("react/jsx-runtime"),$=require("react"),v=require("class-variance-authority"),ye=require("@radix-ui/react-label"),Ne=require("@radix-ui/react-scroll-area"),we=require("@radix-ui/react-select"),j=require("lucide-react"),ke=require("@radix-ui/react-separator"),Se=require("next-themes"),ze=require("sonner"),Le=require("@radix-ui/react-switch"),_e=require("@radix-ui/react-toggle-group"),Te=require("@radix-ui/react-toggle"),Ie=require("@radix-ui/react-tooltip"),Ce=require("@radix-ui/react-slot");function y(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const p=y($),Ve=y(ye),L=y(Ne),g=y(we),Re=y(ke),H=y(Le),M=y(_e),Be=y(Te),k=y(Ie);function n(...t){return je.twMerge(be.clsx(t))}const C=v.cva("flex w-full bg-transparent text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground transition-colors outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-none focus:ring-0 focus:border-none caret-primary",bordered:"border border-border rounded-md focus:border-primary focus:ring-2 focus:ring-primary/20 caret-primary",nofocus:"border-none focus:ring-0 focus:border-none focus:outline-none caret-primary"},size:{default:"h-10 px-3 py-2 text-sm",sm:"h-8 px-2 py-1 text-xs",lg:"h-12 px-4 py-3 text-base"},cursor:{primary:"caret-primary",foreground:"caret-foreground",white:"caret-white",green:"caret-green-500"}},defaultVariants:{variant:"default",size:"default",cursor:"primary"}}),R=p.forwardRef(({className:t,variant:r,size:a,cursor:s,type:i,prompt:d,...o},l)=>d?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-primary text-sm font-medium shrink-0",children:d}),e.jsx("input",{type:i,"data-slot":"input",className:n(C({variant:r,size:a,cursor:s,className:t})),ref:l,...o})]}):e.jsx("input",{type:i,"data-slot":"input",className:n(C({variant:r,size:a,cursor:s,className:t})),ref:l,...o}));R.displayName="Input";function Pe({className:t,...r}){return e.jsx(Ve.Root,{"data-slot":"label",className:n("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}function W({className:t,children:r,...a}){return e.jsxs(L.Root,{"data-slot":"scroll-area",className:n("relative",t),...a,children:[e.jsx(L.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),e.jsx(B,{}),e.jsx(L.Corner,{})]})}function B({className:t,orientation:r="vertical",...a}){return e.jsx(L.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:r,className:n("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",t),...a,children:e.jsx(L.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function E({...t}){return e.jsx(g.Root,{"data-slot":"select",...t})}function De({...t}){return e.jsx(g.Group,{"data-slot":"select-group",...t})}function Ae({...t}){return e.jsx(g.Value,{"data-slot":"select-value",...t})}function Y({className:t,size:r="default",children:a,...s}){return e.jsxs(g.Trigger,{"data-slot":"select-trigger","data-size":r,className:n("flex w-fit items-center justify-between gap-2 bg-transparent px-3 py-2 text-sm text-foreground whitespace-nowrap transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 border-none focus:ring-0","data-[placeholder]:text-muted-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg]:text-muted-foreground","*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",t),...s,children:[a,e.jsx(g.Icon,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function Z({className:t,children:r,position:a="popper",...s}){return e.jsx(g.Portal,{children:e.jsxs(g.Content,{"data-slot":"select-content",className:n("bg-background text-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border shadow-md",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...s,children:[e.jsx(J,{}),e.jsx(g.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),e.jsx(K,{})]})})}function Fe({className:t,...r}){return e.jsx(g.Label,{"data-slot":"select-label",className:n("text-muted-foreground px-2 py-1.5 text-xs",t),...r})}function X({className:t,children:r,...a}){return e.jsxs(g.Item,{"data-slot":"select-item",className:n("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm text-foreground outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50","bg-muted hover:bg-muted/80 focus:bg-muted/80","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...a,children:[e.jsxs("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30 transition-colors"}),e.jsx(g.ItemIndicator,{className:"absolute",children:e.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"})})]}),e.jsx(g.ItemText,{children:r})]})}function Oe({className:t,...r}){return e.jsx(g.Separator,{"data-slot":"select-separator",className:n("bg-border pointer-events-none -mx-1 my-1 h-px",t),...r})}function J({className:t,...r}){return e.jsx(g.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:n("flex cursor-default items-center justify-center py-1",t),...r,children:e.jsx(j.ChevronUpIcon,{className:"size-4"})})}function K({className:t,...r}){return e.jsx(g.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:n("flex cursor-default items-center justify-center py-1",t),...r,children:e.jsx(j.ChevronDownIcon,{className:"size-4"})})}function qe({className:t,orientation:r="horizontal",decorative:a=!0,...s}){return e.jsx(Re.Root,{"data-slot":"separator",decorative:a,orientation:r,className:n("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...s})}const He=({...t})=>{const{theme:r="system"}=Se.useTheme();return e.jsx(ze.Toaster,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})};function Ge({className:t,...r}){return e.jsx(H.Root,{"data-slot":"switch",className:n("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:e.jsx(H.Thumb,{"data-slot":"switch-thumb",className:n("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}const P=v.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function $e({className:t,variant:r,size:a,...s}){return e.jsx(Be.Root,{"data-slot":"toggle",className:n(P({variant:r,size:a,className:t})),...s})}const Q=p.createContext({size:"default",variant:"default"});function Me({className:t,variant:r,size:a,children:s,...i}){return e.jsx(M.Root,{"data-slot":"toggle-group","data-variant":r,"data-size":a,className:n("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...i,children:e.jsx(Q.Provider,{value:{variant:r,size:a},children:s})})}function We({className:t,children:r,variant:a,size:s,...i}){const d=p.useContext(Q);return e.jsx(M.Item,{"data-slot":"toggle-group-item","data-variant":d.variant||a,"data-size":d.size||s,className:n(P({variant:d.variant||a,size:d.size||s}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...i,children:r})}function U({delayDuration:t=0,...r}){return e.jsx(k.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...r})}function Ee({...t}){return e.jsx(U,{children:e.jsx(k.Root,{"data-slot":"tooltip",...t})})}function Ye({...t}){return e.jsx(k.Trigger,{"data-slot":"tooltip-trigger",...t})}function Ze({className:t,sideOffset:r=0,children:a,...s}){return e.jsx(k.Portal,{children:e.jsxs(k.Content,{"data-slot":"tooltip-content",sideOffset:r,className:n("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...s,children:[a,e.jsx(k.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const ee=v.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none border",{variants:{variant:{default:"bg-background text-primary border-primary shadow-[0_0_4px_0_hsl(var(--primary))] hover:bg-background/90 hover:shadow-[0_0_6px_0_hsl(var(--primary))]",green:"bg-primary text-primary-foreground border-primary shadow-[0_0_4px_0_hsl(var(--primary))] hover:bg-primary/90 hover:shadow-[0_0_6px_0_hsl(var(--primary))]",transparentWhite:"bg-secondary text-secondary-foreground border-secondary hover:bg-secondary/80",transparentGreen:"bg-secondary text-primary border-secondary hover:bg-secondary/80"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-9"},rounded:{default:"rounded-full",none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"default",size:"default",rounded:"default"}});function V({className:t,variant:r,size:a,rounded:s,asChild:i=!1,...d}){const o=i?Ce.Slot:"button";return e.jsx(o,{"data-slot":"button",className:n(ee({variant:r,size:a,rounded:s,className:t})),...d})}const te=v.cva("transition-all",{variants:{variant:{container:"relative bg-card shadow-[0_0_20px_0_rgba(0,0,0,0.25)] before:absolute before:inset-0 before:rounded-[inherit] before:p-px before:bg-gradient-to-b before:from-[#F9F9F9] before:from-40% before:via-white before:via-40.01% before:to-white before:to-50% before:content-[''] before:pointer-events-none before:-z-10",simple:"bg-muted",item:"bg-muted shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]"},padding:{none:"p-0",sm:"p-3",default:"p-4",md:"p-6",lg:"p-8"},rounded:{default:"rounded-lg",none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}},defaultVariants:{variant:"container",padding:"default",rounded:"default"}});function b({className:t,variant:r,padding:a,rounded:s,...i}){return e.jsx("div",{"data-slot":"card",className:n(te({variant:r,padding:a,rounded:s,className:t})),...i})}function Xe({className:t,...r}){return e.jsx("div",{"data-slot":"card-header",className:n("flex flex-col space-y-1.5 p-6",t),...r})}function Je({className:t,children:r,...a}){return e.jsx("h3",{"data-slot":"card-title",className:n("text-2xl font-semibold leading-none tracking-tight",t),...a,children:r})}function Ke({className:t,...r}){return e.jsx("p",{"data-slot":"card-description",className:n("text-sm text-muted-foreground",t),...r})}function Qe({className:t,...r}){return e.jsx("div",{"data-slot":"card-content",className:n("p-6 pt-0",t),...r})}function Ue({className:t,...r}){return e.jsx("div",{"data-slot":"card-footer",className:n("flex items-center p-6 pt-0",t),...r})}const re=v.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 cursor-pointer border-none rounded-full",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground"},size:{xs:"h-6 px-2 py-1 text-xs",default:"h-8 px-4 py-1",sm:"h-7 px-3 py-1 text-xs",lg:"h-9 px-6 py-2"}},defaultVariants:{variant:"default",size:"default"}}),D=p.forwardRef(({className:t,variant:r,size:a,asChild:s=!1,...i},d)=>e.jsx("div",{"data-slot":"chip",className:n(re({variant:r,size:a,className:t})),ref:d,...i}));D.displayName="Chip";const ae=v.cva("relative inline-flex items-center justify-center rounded-full",{variants:{size:{default:"w-12 h-12",sm:"w-8 h-8",lg:"w-16 h-16",xl:"w-20 h-20"},variant:{default:"bg-background",transparent:"bg-transparent"}},defaultVariants:{size:"default",variant:"default"}}),A=p.forwardRef(({className:t,size:r,variant:a,children:s,spinning:i=!0,...d},o)=>e.jsxs("div",{ref:o,className:n(ae({size:r,variant:a}),t),...d,children:[e.jsx("div",{className:n("absolute inset-0 rounded-full","bg-gradient-to-r from-transparent via-primary to-transparent","animate-spin",{"animate-spin":i,"animate-none":!i}),style:{background:i?"conic-gradient(from 0deg, transparent 0deg, var(--primary) 180deg, transparent 360deg)":"conic-gradient(from 0deg, var(--primary) 0deg, var(--primary) 360deg)",padding:"1px",borderRadius:"9999px"},children:e.jsx("div",{className:n("w-full h-full rounded-full",a==="transparent"?"bg-transparent":"bg-background")})}),e.jsx("div",{className:"relative z-10 flex items-center justify-center",children:s})]}));A.displayName="IconAnimation";const se=v.cva("inline-flex items-center gap-2 font-medium",{variants:{variant:{default:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",secondary:"text-secondary-foreground"},textSize:{xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl"}},defaultVariants:{variant:"default",textSize:"sm"}}),G={xs:"w-3 h-3",sm:"w-4 h-4",base:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},S=p.forwardRef(({className:t,variant:r,textSize:a,icon:s,children:i,iconPosition:d="left",iconSize:o="sm",iconClassName:l,...m},c)=>{const f=()=>{var u;return typeof s=="string"?e.jsx("img",{src:s,alt:"",className:n(G[o],"object-contain",l)}):e.jsx("span",{className:n("shrink-0",l),children:p.isValidElement(s)?p.cloneElement(s,{className:n(G[o],(u=s.props)==null?void 0:u.className)}):s})};return e.jsxs("div",{ref:c,className:n(se({variant:r,textSize:a}),d==="right"&&"flex-row-reverse",t),...m,children:[f(),e.jsx("span",{children:i})]})});S.displayName="LabelWithIcon";const ne=v.cva("flex w-full",{variants:{variant:{default:"justify-between border border-border shadow-sm bg-background",transparent:"justify-between border border-border shadow-sm bg-transparent",menuBar:"relative h-12 gap-3 rounded-full border border-border bg-background font-medium shadow-sm"}},defaultVariants:{variant:"default"}}),oe=v.cva("flex items-center justify-center whitespace-nowrap font-medium transition-all disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{variant:{default:"text-sm text-muted-foreground hover:text-foreground",active:"text-sm text-primary bg-muted",menuBarDefault:"relative z-[1] w-full text-base text-foreground rounded-full px-3 py-2 hover:text-primary",menuBarActive:"relative z-[1] w-full text-base text-primary rounded-full px-3 py-2"}},defaultVariants:{variant:"default"}}),ie=p.forwardRef(({className:t,variant:r,activeValue:a,children:s,...i},d)=>{const o=p.useRef(null),l=p.useRef(null),m=p.useCallback(()=>{if(r!=="menuBar"||!o.current||!l.current)return;const c=o.current.querySelector('[data-active="true"]');c&&(l.current.style.width=`${c.offsetWidth}px`,l.current.style.left=`${c.offsetLeft}px`)},[r]);return p.useEffect(()=>{if(r!=="menuBar")return;m();const c=new ResizeObserver(m);return o.current&&c.observe(o.current),()=>{c.disconnect()}},[a,m,r]),e.jsxs("nav",{ref:d||o,className:n(ne({variant:r,className:t})),...i,children:[r==="menuBar"&&e.jsx("div",{ref:l,className:"absolute bottom-0 h-full origin-left rounded-full bg-secondary transition-all duration-300"}),s]})});ie.displayName="NavigationBar";const le=p.forwardRef(({className:t,variant:r,active:a,value:s,...i},d)=>{const l=r==="menuBarDefault"||r==="menuBarActive"?a?"menuBarActive":"menuBarDefault":a?"active":r||"default",m=l==="menuBarDefault"||l==="menuBarActive";return e.jsx("button",{ref:d,"data-active":a,"data-value":s,className:n(oe({variant:l,className:t}),!m&&"px-4 py-2 rounded-md"),...i})});le.displayName="NavigationItem";const et=v.cva("space-y-1",{variants:{size:{sm:"p-2",default:"p-3",lg:"p-4"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{size:"default",align:"center"}}),tt=v.cva("font-bold",{variants:{color:{primary:"text-foreground",secondary:"text-muted-foreground",accent:"text-primary",success:"text-green-600",warning:"text-yellow-600",error:"text-red-600"},size:{sm:"text-sm",default:"text-lg",lg:"text-xl",xl:"text-2xl"}},defaultVariants:{color:"primary",size:"default"}}),rt=v.cva("font-medium text-muted-foreground",{variants:{size:{sm:"text-xs",default:"text-xs",lg:"text-sm"}},defaultVariants:{size:"default"}}),T=p.forwardRef(({title:t,value:r,color:a="primary",valueSize:s="default",titleSize:i="default",size:d="default",align:o="center",icon:l,subtitle:m,className:c,...f},u)=>e.jsxs(b,{ref:u,variant:"item",className:n(et({size:d,align:o}),c),...f,children:[l&&e.jsx("div",{className:n("flex mb-2",o==="left"&&"justify-start",o==="center"&&"justify-center",o==="right"&&"justify-end"),children:l}),e.jsx("p",{className:rt({size:i}),children:t}),e.jsx("p",{className:tt({color:a,size:s}),children:r}),m&&e.jsx("p",{className:"text-xs text-muted-foreground/70",children:m})]}));T.displayName="InfoCard";function at({className:t,title:r,titleIcon:a,topCards:s,bottomCards:i}){const d=e.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center",children:e.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z"})})});return e.jsx(b,{className:n("space-y-4",t),children:e.jsx("div",{className:"h-full overflow-y-auto",children:e.jsxs("div",{className:"space-y-4",children:[(r||a)&&e.jsx("div",{className:"flex items-center",children:e.jsx(S,{icon:a||d,textSize:"lg",iconSize:"lg",children:r})}),e.jsx("div",{className:"grid grid-cols-3 gap-3",children:s.map((o,l)=>e.jsx(T,{title:o.title,value:o.value,color:o.color||"primary",icon:o.icon,size:"sm",valueSize:"sm",titleSize:"sm",align:"left"},l))}),e.jsx("div",{className:"space-y-2",children:i.map((o,l)=>e.jsx(T,{title:o.title,value:o.value,color:o.color||"primary",size:"sm",valueSize:"sm",titleSize:"sm",align:"left",className:"w-full"},l))})]})})})}const de=p.forwardRef(({className:t,icon:r,name:a,tvl:s,yield:i,onSelect:d,selected:o=!1,...l},m)=>{const c=e.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/20 flex items-center justify-center",children:e.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z"})})});return e.jsx(b,{ref:m,className:n("cursor-pointer transition-all duration-200 hover:shadow-md w-full",o&&"ring-2 ring-primary ring-offset-2",t),onClick:d,...l,children:e.jsxs("div",{className:"flex gap-12 items-start justify-between",children:[e.jsxs("div",{className:"flex flex-col min-w-0 flex-1 items-start justify-start",children:[e.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.jsx(S,{icon:r||c,textSize:"2xl",children:a})}),s&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["TVL: ",s]})]}),e.jsx("div",{className:"flex-shrink-0",children:i&&e.jsx("span",{className:"text-lg font-bold text-primary",children:i})})]})})});de.displayName="OpportunityItem";const ce=p.forwardRef(({className:t,title:r,titleIcon:a,yield:s,details:i=[],badges:d=[],externalLink:o,...l},m)=>{const c=e.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center",children:e.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z"})})}),f=()=>e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})});return e.jsxs(b,{ref:m,className:n("p-4 space-y-4",t),...l,children:[(r||a)&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(S,{icon:a||c,textSize:"lg",iconSize:"lg",children:r})}),s&&e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-2xl font-bold text-primary",children:s}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"APY"})]})]}),i.length>0&&e.jsx("div",{className:"space-y-3",children:i.map((u,h)=>e.jsx("div",{className:"space-y-2",children:e.jsx(b,{className:"p-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[u.icon,e.jsx("span",{className:"text-sm text-muted-foreground",children:u.label})]}),e.jsx("span",{className:n("text-sm font-medium",u.highlight&&"text-primary"),children:u.value})]})})},h))}),d.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:d.map((u,h)=>e.jsxs("div",{className:n("inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium",u.variant==="secondary"&&"bg-secondary text-secondary-foreground",u.variant==="outline"&&"border border-border bg-background",(!u.variant||u.variant==="default")&&"bg-primary/10 text-primary"),children:[u.icon,u.text]},h))}),o&&e.jsx("div",{className:"pt-2 border-t border-border",children:e.jsxs("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-primary hover:text-primary/80 transition-colors",children:[o.icon,o.text,e.jsx(f,{})]})})]})});ce.displayName="OpportunityDetails";const ue=p.forwardRef(({className:t,title:r,description:a,txHash:s,explorerUrl:i,estimatedTime:d,amount:o,token:l,protocol:m,steps:c=[],variant:f="default",completed:u=!1,cancelled:h=!1,onViewDetails:N,onClose:w,showActions:I=!0,...z},_)=>{const fe=h?"Transaction Cancelled":u?"Transaction Completed":"Processing Transaction",he=h?"Transaction was cancelled by user":u?"Your transaction has been successfully processed!":"Please wait while your transaction is being processed...",O=({size:x="w-4 h-4"})=>e.jsx("svg",{className:x,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),ge=()=>e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),q=x=>x.length<=12?x:`${x.slice(0,6)}...${x.slice(-6)}`;return e.jsxs(b,{ref:_,className:n("p-6 text-center space-y-4",f==="compact"&&"p-4 space-y-3",t),...z,children:[e.jsx("div",{className:"flex justify-center",children:e.jsx(A,{spinning:!u&&!h,size:f==="compact"?"default":"lg",children:h?e.jsx(j.XIcon,{className:"w-8 h-8 text-destructive"}):u?e.jsx(j.CheckIcon,{className:"w-8 h-8 text-primary"}):e.jsx(j.TurtleIcon,{className:"w-8 h-8 text-primary"})})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:n("font-medium text-foreground",f==="compact"?"text-sm":"text-base"),children:r||fe}),e.jsx("p",{className:n("text-muted-foreground",f==="compact"?"text-xs":"text-sm"),children:a||he})]}),u&&!h&&(o||l||m)&&e.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg space-y-1",children:[o&&l&&e.jsxs("div",{className:"text-sm font-medium",children:[o," ",l]}),m&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:["via ",m]})]}),s&&!h&&e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"Transaction Hash"}),i?e.jsxs("a",{href:`${i}/tx/${s}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-primary hover:text-primary/80 transition-colors",children:[q(s),e.jsx(O,{})]}):e.jsx("div",{className:"text-sm font-mono text-foreground",children:q(s)})]}),!u&&!h&&d&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:["Estimated time: ",d]}),!u&&!h&&c.length>0&&e.jsxs("div",{className:"space-y-2 pt-2 border-t border-border",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground text-left",children:"Progress"}),e.jsx("div",{className:"space-y-2",children:c.map((x,ve)=>e.jsxs("div",{className:"flex items-center gap-3 text-left",children:[e.jsx("div",{className:n("flex items-center justify-center w-5 h-5 rounded-full border-2 flex-shrink-0",x.completed&&"bg-primary border-primary text-primary-foreground",x.current&&!x.completed&&"border-primary text-primary animate-pulse",!x.completed&&!x.current&&"border-muted-foreground/30 text-muted-foreground"),children:x.completed?e.jsx(ge,{}):x.current?e.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}):e.jsx("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30"})}),e.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[e.jsx("span",{className:n("text-sm",x.completed&&"text-foreground",x.current&&!x.completed&&"text-foreground font-medium",!x.completed&&!x.current&&"text-muted-foreground"),children:x.label}),x.txHash&&i&&e.jsxs("a",{href:`${i}/tx/${x.txHash}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:text-primary/80 transition-colors ml-2",title:`View transaction: ${x.txHash}`,children:[e.jsxs("span",{className:"font-mono",children:[x.txHash.slice(0,6),"...",x.txHash.slice(-4)]}),e.jsx(O,{size:"w-3 h-3"})]})]})]},ve))})]}),(u||h)&&I&&(N||w)&&e.jsxs("div",{className:n("flex gap-2 pt-2",f==="compact"?"flex-col":"flex-row justify-center"),children:[!h&&N&&e.jsx(V,{variant:"transparentWhite",size:f==="compact"?"sm":"default",onClick:N,children:"View Details"}),w&&e.jsx(V,{variant:"default",size:f==="compact"?"sm":"default",onClick:w,children:h?"Try Again":"Done"})]})]})});ue.displayName="TxStatus";const F=p.forwardRef(({tokens:t,value:r,onValueChange:a,placeholder:s="Select token",disabled:i,className:d},o)=>{const l=r||(t.length>0?t[0].address:void 0),m=t.find(c=>c.address===l);return $.useEffect(()=>{!r&&t.length>0&&a&&a(t[0].address)},[r,t,a]),e.jsxs(E,{value:l,onValueChange:a,disabled:i,children:[e.jsx(Y,{ref:o,className:n("w-auto min-w-[80px] h-8 px-2 py-1 bg-muted hover:bg-muted/80 border-none rounded-md text-sm font-medium","focus:ring-2 focus:ring-primary/20 focus:outline-none",d),children:m?e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-4 h-4 flex items-center justify-center",children:m.icon}),e.jsx("span",{className:"text-sm font-medium",children:m.symbol})]}):e.jsx("span",{className:"text-sm text-muted-foreground",children:s})}),e.jsx(Z,{children:t.map(c=>e.jsx(X,{value:c.address,className:"cursor-pointer",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-4 h-4 flex items-center justify-center",children:c.icon}),e.jsx("span",{className:"text-sm font-medium",children:c.symbol})]})},c.address))})]})});F.displayName="TokenSelector";const me=p.forwardRef(({className:t,value:r="",onChange:a,tokens:s,selectedToken:i,onTokenChange:d,usdValue:o,balance:l,onMaxClick:m,placeholder:c="0",disabled:f=!1,hideTokenSelector:u=!1,...h},N)=>{const w=s.find(z=>z.address===i),I=z=>{const _=z.target.value;/^\d*\.?\d*$/.test(_)&&(a==null||a(_))};return e.jsxs(b,{ref:N,className:n("space-y-3",f&&"opacity-50",t),...h,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex-1",children:e.jsx(R,{variant:"nofocus",value:r,onChange:I,placeholder:c,disabled:f,className:"text-2xl font-medium border-none bg-transparent p-0 h-auto focus:ring-0"})}),!u&&e.jsx(F,{tokens:s,value:i,onValueChange:d,disabled:f,placeholder:"Select token"})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsx("div",{children:o&&e.jsxs("span",{children:["≈ $",o]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[l&&e.jsxs("span",{children:["Balance: ",l," ",(w==null?void 0:w.symbol)||""]}),m&&e.jsx(D,{variant:"default",size:"xs",onClick:m,className:n("cursor-pointer hover:bg-primary hover:text-primary-foreground transition-colors text-xs",f&&"cursor-not-allowed opacity-50"),children:"MAX"})]})]})]})});me.displayName="SwapInput";const xe=p.forwardRef(({className:t,swapFee:r,slippageInUsd:a,deposit:s,receive:i,equivalentInUsd:d,networkFee:o,networkFeeInUsd:l,showFree:m=!1,defaultOpen:c=!1,...f},u)=>{const[h,N]=p.useState(c);return e.jsxs(b,{ref:u,className:n("overflow-hidden",t),...f,children:[e.jsxs("button",{onClick:()=>N(!h),className:"w-full flex items-center justify-between p-1 hover:bg-muted/50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-sm font-medium",children:[s," = ",i]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(≈ $",d,")"]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:["≈ $",a]}),e.jsx(j.ChevronDownIcon,{className:"w-4 h-4"})]})]}),h&&e.jsxs("div",{className:"transition-all animate-in fade-in-0 duration-300",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"Swap Fee"}),r?e.jsxs("span",{className:"font-medium",children:[r,"%"]}):e.jsx("span",{className:"text-xs px-2 py-1 bg-primary/10 text-primary rounded-full font-medium",children:"FREE"})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground text-xs",children:"Network Fee"}),e.jsxs("span",{className:"font-medium",children:[e.jsx("span",{className:"text-xs text-foreground",children:o}),l?e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(≈ $",l,")"]}):e.jsx("span",{className:"text-xs px-2 py-1 bg-primary/10 text-primary rounded-full font-medium",children:"FREE"})]})]})]})]})});xe.displayName="SwapDetails";const pe=p.forwardRef(({className:t,tokens:r=[],variant:a="default",defaultOpen:s=!1,...i},d)=>{const[o,l]=p.useState(s),m=c=>e.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center",children:e.jsx("span",{className:"text-xs font-bold text-primary",children:c.charAt(0)})});return r.length===0?null:e.jsxs(b,{ref:d,className:n("overflow-hidden",t),...i,children:[e.jsxs("button",{onClick:()=>l(!o),className:"w-full flex items-center justify-between p-2 hover:bg-muted/50 transition-colors",children:[e.jsx("span",{className:"text-sm font-medium",children:"Swap Route"}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:[r.length," token",r.length>1?"s":""]}),e.jsx(j.ChevronDownIcon,{className:"w-4 h-4 text-primary"})]})]}),o&&e.jsx("div",{className:"px-4 pb-4 border-t border-border",children:e.jsxs(W,{className:"rounded-md whitespace-nowrap",children:[e.jsx("div",{className:"flex items-center justify-between gap-2 overflow-x-auto py-3",children:r.map((c,f)=>e.jsxs(e.Fragment,{children:[e.jsx(b,{variant:"item",className:"p-2 rounded-full",children:e.jsx(S,{icon:c.icon||m(c.symbol),textSize:"xs",iconSize:"sm",children:e.jsxs("span",{className:"gap-2",children:[c.amount," ",c.symbol]})})},f),f<r.length-1&&e.jsx("div",{className:"flex-shrink-0 mx-1",children:e.jsx(j.ChevronsRightIcon,{className:"w-4 h-4 text-primary"})})]}))}),e.jsx(B,{orientation:"horizontal",className:"h-2"})]})})]})});pe.displayName="RouteDetails";const st={colors:{neonGreen:"oklch(0.86 0.16 142.5)",darkGreen:"oklch(0.24 0.16 142.5)",ninjaBlack:"oklch(0.1 0.005 120)",wiseWhite:"oklch(0.98 0 0)",wiseGray:"oklch(0.17 0.003 120)",mintCream:"oklch(0.95 0.046 109)",turtleYellow:"oklch(0.97 0.21 98.2)",turtleRed:"oklch(0.6 0.28 29)",whiteTransparent:"oklch(0.98 0 0 / 0.02)",light:{background:"oklch(1 0 0)",foreground:"oklch(0.141 0.005 285.823)",card:"oklch(1 0 0)",cardForeground:"oklch(0.141 0.005 285.823)",popover:"oklch(1 0 0)",popoverForeground:"oklch(0.141 0.005 285.823)",primary:"oklch(0.21 0.006 285.885)",primaryForeground:"oklch(0.985 0 0)",secondary:"oklch(0.967 0.001 286.375)",secondaryForeground:"oklch(0.21 0.006 285.885)",muted:"oklch(0.967 0.001 286.375)",mutedForeground:"oklch(0.552 0.016 285.938)",accent:"oklch(0.967 0.001 286.375)",accentForeground:"oklch(0.21 0.006 285.885)",destructive:"oklch(0.577 0.245 27.325)",border:"oklch(0.92 0.004 286.32)",input:"oklch(0.92 0.004 286.32)",ring:"oklch(0.705 0.015 286.067)"},dark:{background:"oklch(0.141 0.005 285.823)",foreground:"oklch(0.985 0 0)",card:"oklch(0.21 0.006 285.885)",cardForeground:"oklch(0.985 0 0)",popover:"oklch(0.21 0.006 285.885)",popoverForeground:"oklch(0.985 0 0)",primary:"oklch(0.92 0.004 286.32)",primaryForeground:"oklch(0.21 0.006 285.885)",secondary:"oklch(0.274 0.006 286.033)",secondaryForeground:"oklch(0.985 0 0)",muted:"oklch(0.274 0.006 286.033)",mutedForeground:"oklch(0.705 0.015 286.067)",accent:"oklch(0.274 0.006 286.033)",accentForeground:"oklch(0.985 0 0)",destructive:"oklch(0.704 0.191 22.216)",border:"oklch(1 0 0 / 10%)",input:"oklch(1 0 0 / 15%)",ring:"oklch(0.552 0.016 285.938)"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem","2xl":"2rem","3xl":"3rem","4xl":"4rem"},radius:{none:"0",sm:"calc(0.625rem - 4px)",md:"calc(0.625rem - 2px)",lg:"0.625rem",xl:"calc(0.625rem + 4px)",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}]},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},shadow:{xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"}};exports.Button=V;exports.Card=b;exports.CardContent=Qe;exports.CardDescription=Ke;exports.CardFooter=Ue;exports.CardHeader=Xe;exports.CardTitle=Je;exports.Chip=D;exports.IconAnimation=A;exports.InfoCard=T;exports.Input=R;exports.Label=Pe;exports.LabelWithIcon=S;exports.NavigationBar=ie;exports.NavigationItem=le;exports.OpportunityDetails=ce;exports.OpportunityDetailsV1=at;exports.OpportunityItem=de;exports.RouteDetails=pe;exports.ScrollArea=W;exports.ScrollBar=B;exports.Select=E;exports.SelectContent=Z;exports.SelectGroup=De;exports.SelectItem=X;exports.SelectLabel=Fe;exports.SelectScrollDownButton=K;exports.SelectScrollUpButton=J;exports.SelectSeparator=Oe;exports.SelectTrigger=Y;exports.SelectValue=Ae;exports.Separator=qe;exports.SwapDetails=xe;exports.SwapInput=me;exports.Switch=Ge;exports.Toaster=He;exports.Toggle=$e;exports.ToggleGroup=Me;exports.ToggleGroupItem=We;exports.TokenSelector=F;exports.Tooltip=Ee;exports.TooltipContent=Ze;exports.TooltipProvider=U;exports.TooltipTrigger=Ye;exports.TxStatus=ue;exports.buttonVariants=ee;exports.cardVariants=te;exports.chipVariants=re;exports.cn=n;exports.iconAnimationVariants=ae;exports.inputVariants=C;exports.labelWithIconVariants=se;exports.navigationBarVariants=ne;exports.navigationItemVariants=oe;exports.toggleVariants=P;exports.tokens=st;
2
+ //# sourceMappingURL=index.cjs.map