Skip to content

Commit bab89b8

Browse files
committed
chore: refactored to monorepo.
1 parent e1869f7 commit bab89b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+313
-190
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 {{me}}
3+
Copyright (c) 2025 Carlo Taleon
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { Tabs } from "@kobalte/core/tabs"
33
import { useClipboard } from "bagon-hooks"
44
import { clsx } from "clsx"
5-
import { MDXContent } from "dev/components/mdx-content"
65
import {
76
type ComponentProps,
87
children,
@@ -13,12 +12,13 @@ import {
1312
onCleanup,
1413
onMount,
1514
Show,
16-
# splitProps,
17-
#} from "solid-js"
18-
#import { cn } from "../../utils/cn"
15+
splitProps,
16+
} from "solid-js"
17+
import { MDXContent } from "@/components/mdx-content"
18+
import { cn } from "@/utils/cn"
1919

20-
#// TODO: Dropdown (use @kobalte)
21-
#// Dropdown
20+
// TODO: Dropdown (use @kobalte)
21+
// Dropdown
2222
// import {
2323
// Menu,
2424
// MenuButton,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import Demo, { type DemoProps, DemoSwitch } from "dev/components/demos/base-demo"
2-
import { useCycle } from "dev/hooks/use-cycle"
31
import { continuous } from "number-flow/plugins"
42
import { createSignal } from "solid-js"
5-
import NumberFlow from "src"
3+
import NumberFlow from "solid-number-flow"
4+
import Demo, { type DemoProps, DemoSwitch } from "@/components/demos/base-demo"
5+
import { useCycle } from "@/hooks/use-cycle"
66

77
const NUMBERS = [120, 140]
88

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import Demo, { type DemoProps } from "dev/components/demos/base-demo"
2-
import { useCycle } from "dev/hooks/use-cycle"
3-
import { cn } from "dev/utils/cn"
4-
import NumberFlow, { NumberFlowGroup } from "src"
1+
import NumberFlow, { NumberFlowGroup } from "solid-number-flow"
2+
import Demo, { type DemoProps } from "@/components/demos/base-demo"
3+
import { useCycle } from "@/hooks/use-cycle"
4+
import { cn } from "@/utils/cn"
55

66
const DATA = [
77
{ value: 124.23, diff: 0.0564 },
@@ -60,7 +60,7 @@ import NumberFlow, { NumberFlowGroup } from 'solid-number-flow'
6060
format={{ style: "percent", maximumFractionDigits: 2, signDisplay: "always" }}
6161
class={cn(
6262
"text-2xl transition-colors duration-300",
63-
data().diff < 0 ? "text-red-500" : "text-emerald-500",
63+
data().diff < 0 ? "text-red-500" : "text-emerald-500"
6464
)}
6565
/>
6666
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Demo, { type DemoProps, DemoSwitch } from "dev/components/demos/base-demo"
21
import { createSignal } from "solid-js"
3-
import NumberFlow from "src"
2+
import NumberFlow from "solid-number-flow"
3+
import Demo, { type DemoProps, DemoSwitch } from "@/components/demos/base-demo"
44

55
export default function IsolateDemo(props: Omit<DemoProps, "children" | "code">) {
66
const [increased, setIncreased] = createSignal(false)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Demo, { type DemoProps } from "dev/components/demos/base-demo"
2-
import { useCycle } from "dev/hooks/use-cycle"
3-
import NumberFlow, { type Value } from "src"
1+
import NumberFlow, { type Value } from "solid-number-flow"
2+
import Demo, { type DemoProps } from "@/components/demos/base-demo"
3+
import { useCycle } from "@/hooks/use-cycle"
44

55
const NUMBERS: Value[] = [3, 15, 50]
66

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Demo, { type DemoProps } from "dev/components/demos/base-demo"
2-
import { useCycle } from "dev/hooks/use-cycle"
3-
import NumberFlow, { type Value } from "src"
1+
import NumberFlow, { type Value } from "solid-number-flow"
2+
import Demo, { type DemoProps } from "@/components/demos/base-demo"
3+
import { useCycle } from "@/hooks/use-cycle"
44

55
const NUMBERS: Value[] = [3, 15, 50]
66

dev/components/demos/tabular-nums.tsx renamed to apps/site/components/demos/tabular-nums.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Demo, { type DemoProps, DemoSwitch } from "dev/components/demos/base-demo"
21
import { createSignal } from "solid-js"
3-
import NumberFlow from "src"
2+
import NumberFlow from "solid-number-flow"
3+
import Demo, { type DemoProps, DemoSwitch } from "@/components/demos/base-demo"
44

55
export default function TabularNumsDemo(props: Omit<DemoProps, "children" | "code">) {
66
const [value, setValue] = createSignal(10)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Demo, { type DemoProps } from "dev/components/demos/base-demo"
2-
import { useCycle } from "dev/hooks/use-cycle"
3-
import NumberFlow from "src"
1+
import NumberFlow from "solid-number-flow"
2+
import Demo, { type DemoProps } from "@/components/demos/base-demo"
3+
import { useCycle } from "@/hooks/use-cycle"
44

55
const bouncySpring = {
66
duration: 750,
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import Demo, { type DemoProps } from "dev/components/demos/base-demo"
1+
import type { Trend } from "number-flow"
2+
import { createSignal, For } from "solid-js"
3+
import NumberFlow from "solid-number-flow"
4+
import Demo, { type DemoProps } from "@/components/demos/base-demo"
25
import {
36
DropdownMenu,
47
DropdownMenuContent,
58
DropdownMenuRadioGroup,
69
DropdownMenuRadioItem,
710
DropdownMenuTrigger,
8-
} from "dev/components/ui/dropdown-menu"
9-
import { useCycle } from "dev/hooks/use-cycle"
10-
import type { Trend } from "number-flow"
11-
import { createSignal, For } from "solid-js"
12-
import NumberFlow from "src"
11+
} from "@/components/ui/dropdown-menu"
12+
import { useCycle } from "@/hooks/use-cycle"
1313

1414
const NUMBERS = [20, 19]
1515

0 commit comments

Comments
 (0)