@turtleclub/ui 0.7.0-beta.32 → 0.7.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10331 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7652 -47844
- package/dist/index.js.map +1 -1
- package/dist/types/components/features/sidebar-layout.d.ts +2 -0
- package/dist/types/components/features/sidebar-layout.d.ts.map +1 -1
- package/dist/types/components/ui/chart.d.ts +1 -1
- package/dist/types/components/ui/chart.d.ts.map +1 -1
- package/package.json +26 -22
- package/.prettierrc.json +0 -4
- package/.turbo/turbo-build.log +0 -182
- package/CHANGELOG.md +0 -795
- package/components.json +0 -21
- package/src/components/charts/QUICK_REFERENCE.md +0 -323
- package/src/components/charts/README.md +0 -658
- package/src/components/charts/RECHARTS_FEATURES.md +0 -458
- package/src/components/charts/area-chart.tsx +0 -248
- package/src/components/charts/bar-chart.tsx +0 -362
- package/src/components/charts/index.ts +0 -4
- package/src/components/charts/pie-chart.tsx +0 -277
- package/src/components/charts/radial-chart.tsx +0 -312
- package/src/components/features/api-status/index.tsx +0 -23
- package/src/components/features/data-table/data-table.tsx +0 -538
- package/src/components/features/data-table/expand-toggle.tsx +0 -17
- package/src/components/features/data-table/fuzzy-filter.tsx +0 -34
- package/src/components/features/data-table/index.ts +0 -3
- package/src/components/features/data-table/item-info.tsx +0 -19
- package/src/components/features/data-table/skeleton.tsx +0 -23
- package/src/components/features/data-table/sort-dropdown.tsx +0 -118
- package/src/components/features/data-table/sortable-header.tsx +0 -37
- package/src/components/features/index.ts +0 -6
- package/src/components/features/page-heading.tsx +0 -27
- package/src/components/features/search-bar.tsx +0 -55
- package/src/components/features/segmented-navigation.tsx +0 -18
- package/src/components/features/sidebar-layout.tsx +0 -193
- package/src/components/features/turtle-tooltip.tsx +0 -67
- package/src/components/icons/arrow.tsx +0 -23
- package/src/components/icons/beta.tsx +0 -95
- package/src/components/icons/dot.tsx +0 -102
- package/src/components/icons/index.ts +0 -7
- package/src/components/icons/issue.tsx +0 -106
- package/src/components/icons/turtle.tsx +0 -156
- package/src/components/icons/update.tsx +0 -113
- package/src/components/icons/warning.tsx +0 -95
- package/src/components/molecules/index.ts +0 -9
- package/src/components/molecules/opportunity/index.ts +0 -10
- package/src/components/molecules/opportunity/opportunity-apr.tsx +0 -129
- package/src/components/molecules/opportunity/opportunity-disclaimer.tsx +0 -46
- package/src/components/molecules/opportunity/opportunity-rate-estimator.tsx +0 -62
- package/src/components/molecules/opportunity/opportunity-section.tsx +0 -113
- package/src/components/molecules/opportunity/opportunity-selector.tsx +0 -30
- package/src/components/molecules/opportunity/opportunity-type.tsx +0 -16
- package/src/components/molecules/route-details.tsx +0 -112
- package/src/components/molecules/slippage-selector.tsx +0 -200
- package/src/components/molecules/swap-details.tsx +0 -55
- package/src/components/molecules/swap-input.tsx +0 -186
- package/src/components/molecules/tabs.tsx +0 -79
- package/src/components/molecules/token-selector.tsx +0 -180
- package/src/components/molecules/tx-status.tsx +0 -312
- package/src/components/molecules/widget/asset-list/asset-filters.tsx +0 -113
- package/src/components/molecules/widget/asset-list/asset-list.tsx +0 -178
- package/src/components/molecules/widget/asset-list/asset-row.tsx +0 -45
- package/src/components/molecules/widget/asset-list/hooks/index.ts +0 -2
- package/src/components/molecules/widget/asset-list/hooks/use-asset-filtering.ts +0 -44
- package/src/components/molecules/widget/asset-list/hooks/use-asset-grouping.ts +0 -87
- package/src/components/molecules/widget/asset-list/index.ts +0 -3
- package/src/components/molecules/widget/base-selector.tsx +0 -121
- package/src/components/molecules/widget/campaign-item.tsx +0 -82
- package/src/components/molecules/widget/deal-item.tsx +0 -92
- package/src/components/molecules/widget/index.ts +0 -36
- package/src/components/molecules/widget/opportunity-item.tsx +0 -105
- package/src/components/molecules/widget/widget-item-stats.tsx +0 -50
- package/src/components/molecules/widget/widget-item.tsx +0 -139
- package/src/components/molecules/widget/widget-list-items.tsx +0 -86
- package/src/components/ui/alert-dialog.tsx +0 -163
- package/src/components/ui/animated-background/animated-background.tsx +0 -182
- package/src/components/ui/animated-background/index.ts +0 -1
- package/src/components/ui/avatar.tsx +0 -73
- package/src/components/ui/badge.tsx +0 -59
- package/src/components/ui/banner.tsx +0 -84
- package/src/components/ui/button.tsx +0 -100
- package/src/components/ui/card.tsx +0 -119
- package/src/components/ui/chart.tsx +0 -346
- package/src/components/ui/checkbox.tsx +0 -32
- package/src/components/ui/chip.tsx +0 -52
- package/src/components/ui/collapsible.tsx +0 -34
- package/src/components/ui/combobox.tsx +0 -730
- package/src/components/ui/command.tsx +0 -184
- package/src/components/ui/dialog.tsx +0 -129
- package/src/components/ui/dropdown.tsx +0 -316
- package/src/components/ui/field.tsx +0 -244
- package/src/components/ui/heading.tsx +0 -74
- package/src/components/ui/hover-card.tsx +0 -139
- package/src/components/ui/icon-animation.tsx +0 -82
- package/src/components/ui/icon-list.tsx +0 -168
- package/src/components/ui/index.ts +0 -48
- package/src/components/ui/info-card.tsx +0 -110
- package/src/components/ui/input-group.tsx +0 -170
- package/src/components/ui/input.tsx +0 -72
- package/src/components/ui/label-with-icon.tsx +0 -122
- package/src/components/ui/label.tsx +0 -24
- package/src/components/ui/multi-select.tsx +0 -1090
- package/src/components/ui/navigation-bar.tsx +0 -153
- package/src/components/ui/navigation-menu.tsx +0 -188
- package/src/components/ui/opportunity-details-v1.tsx +0 -104
- package/src/components/ui/pagination.tsx +0 -127
- package/src/components/ui/popover.tsx +0 -48
- package/src/components/ui/scroll-area.tsx +0 -64
- package/src/components/ui/segment-control.tsx +0 -146
- package/src/components/ui/select.tsx +0 -199
- package/src/components/ui/separator.tsx +0 -26
- package/src/components/ui/sheet.tsx +0 -139
- package/src/components/ui/sidebar.tsx +0 -728
- package/src/components/ui/skeleton.tsx +0 -14
- package/src/components/ui/slider.tsx +0 -58
- package/src/components/ui/sonner.tsx +0 -24
- package/src/components/ui/switch.tsx +0 -29
- package/src/components/ui/table-shadcn.tsx +0 -110
- package/src/components/ui/table.tsx +0 -117
- package/src/components/ui/textarea.tsx +0 -22
- package/src/components/ui/toggle-group.tsx +0 -71
- package/src/components/ui/toggle.tsx +0 -47
- package/src/components/ui/tooltip.tsx +0 -66
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useIsMobile.ts +0 -77
- package/src/index.ts +0 -16
- package/src/lib/utils.ts +0 -6
- package/src/styles/globals.css +0 -181
- package/src/styles/themes/index.css +0 -9
- package/src/styles/themes/semantic.css +0 -117
- package/src/styles/tokens/colors.css +0 -124
- package/src/styles/tokens/index.css +0 -15
- package/src/styles/tokens/radius.css +0 -18
- package/src/styles/tokens/spacing.css +0 -58
- package/src/styles/tokens/typography.css +0 -87
- package/src/tokens/index.ts +0 -108
- package/tsconfig.json +0 -20
- package/vite.config.js +0 -49
- /package/{src/images/enso.png → dist/enso-22FJ4GNK.png} +0 -0
package/src/tokens/index.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export const tokens = {
|
|
2
|
-
colors: {
|
|
3
|
-
// Turtle brand colors
|
|
4
|
-
neonGreen: "oklch(0.86 0.16 142.5)",
|
|
5
|
-
darkGreen: "oklch(0.24 0.16 142.5)",
|
|
6
|
-
ninjaBlack: "oklch(0.1 0.005 120)",
|
|
7
|
-
wiseWhite: "oklch(0.98 0 0)",
|
|
8
|
-
wiseGray: "oklch(0.17 0.003 120)",
|
|
9
|
-
mintCream: "oklch(0.95 0.046 109)",
|
|
10
|
-
turtleYellow: "oklch(0.97 0.21 98.2)",
|
|
11
|
-
turtleRed: "oklch(0.6 0.28 29)",
|
|
12
|
-
whiteTransparent: "oklch(0.98 0 0 / 0.02)",
|
|
13
|
-
|
|
14
|
-
// Semantic colors - light theme
|
|
15
|
-
light: {
|
|
16
|
-
background: "oklch(1 0 0)",
|
|
17
|
-
foreground: "oklch(0.141 0.005 285.823)",
|
|
18
|
-
card: "oklch(1 0 0)",
|
|
19
|
-
cardForeground: "oklch(0.141 0.005 285.823)",
|
|
20
|
-
popover: "oklch(1 0 0)",
|
|
21
|
-
popoverForeground: "oklch(0.141 0.005 285.823)",
|
|
22
|
-
primary: "oklch(0.21 0.006 285.885)",
|
|
23
|
-
primaryForeground: "oklch(0.985 0 0)",
|
|
24
|
-
secondary: "oklch(0.967 0.001 286.375)",
|
|
25
|
-
secondaryForeground: "oklch(0.21 0.006 285.885)",
|
|
26
|
-
muted: "oklch(0.967 0.001 286.375)",
|
|
27
|
-
mutedForeground: "oklch(0.552 0.016 285.938)",
|
|
28
|
-
accent: "oklch(0.967 0.001 286.375)",
|
|
29
|
-
accentForeground: "oklch(0.21 0.006 285.885)",
|
|
30
|
-
destructive: "oklch(0.577 0.245 27.325)",
|
|
31
|
-
border: "oklch(0.92 0.004 286.32)",
|
|
32
|
-
input: "oklch(0.92 0.004 286.32)",
|
|
33
|
-
ring: "oklch(0.705 0.015 286.067)",
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
// Semantic colors - dark theme
|
|
37
|
-
dark: {
|
|
38
|
-
background: "oklch(0.141 0.005 285.823)",
|
|
39
|
-
foreground: "oklch(0.985 0 0)",
|
|
40
|
-
card: "oklch(0.21 0.006 285.885)",
|
|
41
|
-
cardForeground: "oklch(0.985 0 0)",
|
|
42
|
-
popover: "oklch(0.21 0.006 285.885)",
|
|
43
|
-
popoverForeground: "oklch(0.985 0 0)",
|
|
44
|
-
primary: "oklch(0.92 0.004 286.32)",
|
|
45
|
-
primaryForeground: "oklch(0.21 0.006 285.885)",
|
|
46
|
-
secondary: "oklch(0.274 0.006 286.033)",
|
|
47
|
-
secondaryForeground: "oklch(0.985 0 0)",
|
|
48
|
-
muted: "oklch(0.274 0.006 286.033)",
|
|
49
|
-
mutedForeground: "oklch(0.705 0.015 286.067)",
|
|
50
|
-
accent: "oklch(0.274 0.006 286.033)",
|
|
51
|
-
accentForeground: "oklch(0.985 0 0)",
|
|
52
|
-
destructive: "oklch(0.704 0.191 22.216)",
|
|
53
|
-
border: "oklch(1 0 0 / 10%)",
|
|
54
|
-
input: "oklch(1 0 0 / 15%)",
|
|
55
|
-
ring: "oklch(0.552 0.016 285.938)",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
spacing: {
|
|
60
|
-
xs: "0.25rem", // 4px
|
|
61
|
-
sm: "0.5rem", // 8px
|
|
62
|
-
md: "0.75rem", // 12px
|
|
63
|
-
lg: "1rem", // 16px
|
|
64
|
-
xl: "1.5rem", // 24px
|
|
65
|
-
"2xl": "2rem", // 32px
|
|
66
|
-
"3xl": "3rem", // 48px
|
|
67
|
-
"4xl": "4rem", // 64px
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
radius: {
|
|
71
|
-
none: "0",
|
|
72
|
-
sm: "calc(0.625rem - 4px)",
|
|
73
|
-
md: "calc(0.625rem - 2px)",
|
|
74
|
-
lg: "0.625rem",
|
|
75
|
-
xl: "calc(0.625rem + 4px)",
|
|
76
|
-
full: "9999px",
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
fontSize: {
|
|
80
|
-
xs: ["0.75rem", { lineHeight: "1rem" }],
|
|
81
|
-
sm: ["0.875rem", { lineHeight: "1.25rem" }],
|
|
82
|
-
base: ["1rem", { lineHeight: "1.5rem" }],
|
|
83
|
-
lg: ["1.125rem", { lineHeight: "1.75rem" }],
|
|
84
|
-
xl: ["1.25rem", { lineHeight: "1.75rem" }],
|
|
85
|
-
"2xl": ["1.5rem", { lineHeight: "2rem" }],
|
|
86
|
-
"3xl": ["1.875rem", { lineHeight: "2.25rem" }],
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
fontWeight: {
|
|
90
|
-
normal: "400",
|
|
91
|
-
medium: "500",
|
|
92
|
-
semibold: "600",
|
|
93
|
-
bold: "700",
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
shadow: {
|
|
97
|
-
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
98
|
-
sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
99
|
-
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
100
|
-
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
101
|
-
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
102
|
-
},
|
|
103
|
-
} as const;
|
|
104
|
-
|
|
105
|
-
export type Tokens = typeof tokens;
|
|
106
|
-
export type ColorTokens = typeof tokens.colors;
|
|
107
|
-
export type SpacingTokens = typeof tokens.spacing;
|
|
108
|
-
export type RadiusTokens = typeof tokens.radius;
|
package/tsconfig.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"jsx": "react-jsx",
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"strict": false,
|
|
8
|
-
"outDir": "dist",
|
|
9
|
-
"declarationDir": "dist/types",
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"emitDeclarationOnly": true,
|
|
12
|
-
"paths": {
|
|
13
|
-
"@/*": ["./src/*"],
|
|
14
|
-
"react": ["./node_modules/@types/react"]
|
|
15
|
-
},
|
|
16
|
-
"types": ["node", "vite/client"]
|
|
17
|
-
},
|
|
18
|
-
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"],
|
|
19
|
-
"exclude": ["node_modules"]
|
|
20
|
-
}
|
package/vite.config.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import { resolve } from "path";
|
|
3
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
-
|
|
5
|
-
const isCSS = process.env.BUILD_CSS === "true";
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [tailwindcss()],
|
|
9
|
-
assetsInclude: ["**/*.png"],
|
|
10
|
-
resolve: {
|
|
11
|
-
alias: {
|
|
12
|
-
"@": resolve(process.cwd(), "src"),
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
build: isCSS
|
|
16
|
-
? {
|
|
17
|
-
// CSS build configuration
|
|
18
|
-
outDir: "dist",
|
|
19
|
-
emptyOutDir: false,
|
|
20
|
-
cssMinify: true,
|
|
21
|
-
rollupOptions: {
|
|
22
|
-
input: resolve(process.cwd(), "src/styles/globals.css"),
|
|
23
|
-
output: {
|
|
24
|
-
assetFileNames: "styles.css",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
}
|
|
28
|
-
: {
|
|
29
|
-
// Component build configuration
|
|
30
|
-
lib: {
|
|
31
|
-
entry: resolve(process.cwd(), "src/index.ts"),
|
|
32
|
-
name: "TurtleUI",
|
|
33
|
-
formats: ["es", "cjs"],
|
|
34
|
-
fileName: (format) => `index.${format === "es" ? "js" : "cjs"}`,
|
|
35
|
-
},
|
|
36
|
-
outDir: "dist",
|
|
37
|
-
sourcemap: true,
|
|
38
|
-
rollupOptions: {
|
|
39
|
-
external: ["react", "react-dom", "react/jsx-runtime"],
|
|
40
|
-
output: {
|
|
41
|
-
globals: {
|
|
42
|
-
react: "React",
|
|
43
|
-
"react-dom": "ReactDOM",
|
|
44
|
-
"react/jsx-runtime": "ReactJSXRuntime",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
});
|
|
File without changes
|