@m3000/market 0.0.1 → 0.0.2
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/styles.css +2 -0
- package/dist/tokens.css +2 -0
- package/package.json +10 -10
- package/src/components/blocks/auction/Auction.tsx +0 -74
- package/src/components/blocks/auction/AuctionArtwork.tsx +0 -4
- package/src/components/blocks/auction/AuctionBidForm.tsx +0 -138
- package/src/components/blocks/auction/AuctionBidInput.tsx +0 -166
- package/src/components/blocks/auction/AuctionContext.tsx +0 -401
- package/src/components/blocks/auction/AuctionInfo.tsx +0 -36
- package/src/components/blocks/auction/AuctionLayout.tsx +0 -200
- package/src/components/blocks/auction/AuctionRankings.tsx +0 -435
- package/src/components/blocks/auction/AuctionStatusTag.tsx +0 -98
- package/src/components/blocks/auction/AuctionSuggestedBids.tsx +0 -203
- package/src/components/blocks/auction/AuctionYourBidCard.tsx +0 -125
- package/src/components/blocks/auction/AuctionYourBids.tsx +0 -61
- package/src/components/blocks/auction/index.ts +0 -42
- package/src/components/blocks/index.ts +0 -1
- package/src/components/index.ts +0 -2
- package/src/components/primitives/Button.tsx +0 -183
- package/src/components/primitives/Drawer.tsx +0 -125
- package/src/components/primitives/Feedback.tsx +0 -185
- package/src/components/primitives/MorphDialog.tsx +0 -160
- package/src/components/primitives/Price.tsx +0 -394
- package/src/components/primitives/PriceInput.tsx +0 -48
- package/src/components/primitives/Receipt.tsx +0 -711
- package/src/components/primitives/Scale.tsx +0 -287
- package/src/components/primitives/Separator.tsx +0 -87
- package/src/components/primitives/Skeleton.tsx +0 -33
- package/src/components/primitives/SteppedInput.tsx +0 -313
- package/src/components/primitives/Tabs.tsx +0 -161
- package/src/components/primitives/Tag.tsx +0 -48
- package/src/components/primitives/Text.tsx +0 -102
- package/src/components/primitives/countdown/Countdown.tsx +0 -43
- package/src/components/primitives/countdown/index.ts +0 -2
- package/src/components/primitives/framed-image/FramedImage.tsx +0 -51
- package/src/components/primitives/framed-image/index.ts +0 -1
- package/src/components/primitives/index.ts +0 -42
- package/src/components/primitives/ranked-list/RankedList.tsx +0 -9
- package/src/components/primitives/ranked-list/Ranking.tsx +0 -454
- package/src/components/primitives/ranked-list/index.ts +0 -8
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useCountdown.ts +0 -91
- package/src/index.ts +0 -130
- package/src/lib/cn.ts +0 -81
- package/src/lib/index.ts +0 -2
- package/src/lib/motion.ts +0 -55
- package/src/public/lea-83-time-walk.png +0 -0
- package/src/public/lea-83-time-walk.webp +0 -0
- package/src/stories/Auction.stories.tsx +0 -658
- package/src/stories/AuctionLayout.stories.tsx +0 -313
- package/src/stories/AuctionStatusTag.stories.tsx +0 -166
- package/src/stories/AuctionYourBidCard.stories.tsx +0 -257
- package/src/stories/Button.stories.tsx +0 -306
- package/src/stories/Countdown.stories.tsx +0 -158
- package/src/stories/Feedback.stories.tsx +0 -80
- package/src/stories/FramedImage.stories.tsx +0 -46
- package/src/stories/MorphDialog.stories.tsx +0 -88
- package/src/stories/Price.stories.tsx +0 -292
- package/src/stories/RankedList.stories.tsx +0 -190
- package/src/stories/Receipt.stories.tsx +0 -221
- package/src/stories/Scale.stories.tsx +0 -578
- package/src/stories/Separator.stories.tsx +0 -188
- package/src/stories/Skeleton.stories.tsx +0 -138
- package/src/stories/SteppedInput.stories.tsx +0 -321
- package/src/stories/Tabs.stories.tsx +0 -215
- package/src/stories/Tag.stories.tsx +0 -138
- package/src/stories/Text.stories.tsx +0 -245
- package/src/styles/globals.css +0 -39
- package/src/styles/index.css +0 -4
- package/src/styles/theme/animation.css +0 -11
- package/src/styles/theme/color.css +0 -185
- package/src/styles/theme/index.css +0 -3
- package/src/styles/theme/typography.css +0 -3
- package/src/styles/utility.css +0 -8
- package/src/types/index.ts +0 -149
- package/src/utils/format.ts +0 -130
- package/src/utils/index.ts +0 -16
- package/src/utils/rank-utils.ts +0 -131
- package/src/utils/tick-validation.ts +0 -65
package/src/lib/cn.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { type ClassValue, clsx } from "clsx";
|
|
2
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
|
-
|
|
4
|
-
// Primitive color scale (Radix-style 1-12 naming)
|
|
5
|
-
const PRIMITIVE_COLORS = [
|
|
6
|
-
"grey-1",
|
|
7
|
-
"grey-2",
|
|
8
|
-
"grey-3",
|
|
9
|
-
"grey-4",
|
|
10
|
-
"grey-5",
|
|
11
|
-
"grey-6",
|
|
12
|
-
"grey-7",
|
|
13
|
-
"grey-8",
|
|
14
|
-
"grey-9",
|
|
15
|
-
"grey-10",
|
|
16
|
-
"grey-11",
|
|
17
|
-
"grey-12",
|
|
18
|
-
"white",
|
|
19
|
-
"black",
|
|
20
|
-
"current",
|
|
21
|
-
"transparent",
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
// Semantic color tokens (shadcn-style naming)
|
|
25
|
-
const SEMANTIC_COLORS = [
|
|
26
|
-
"background",
|
|
27
|
-
"foreground",
|
|
28
|
-
"muted",
|
|
29
|
-
"muted-foreground",
|
|
30
|
-
"card",
|
|
31
|
-
"card-foreground",
|
|
32
|
-
"popover",
|
|
33
|
-
"popover-foreground",
|
|
34
|
-
"primary",
|
|
35
|
-
"primary-hover",
|
|
36
|
-
"primary-foreground",
|
|
37
|
-
"secondary",
|
|
38
|
-
"secondary-hover",
|
|
39
|
-
"secondary-foreground",
|
|
40
|
-
"accent",
|
|
41
|
-
"accent-hover",
|
|
42
|
-
"accent-active",
|
|
43
|
-
"accent-foreground",
|
|
44
|
-
"border",
|
|
45
|
-
"input",
|
|
46
|
-
"ring",
|
|
47
|
-
"disabled",
|
|
48
|
-
"disabled-foreground",
|
|
49
|
-
"destructive",
|
|
50
|
-
"destructive-hover",
|
|
51
|
-
"destructive-foreground",
|
|
52
|
-
"destructive-muted",
|
|
53
|
-
"destructive-muted-foreground",
|
|
54
|
-
"success",
|
|
55
|
-
"success-hover",
|
|
56
|
-
"success-foreground",
|
|
57
|
-
"success-muted",
|
|
58
|
-
"success-muted-foreground",
|
|
59
|
-
"warning",
|
|
60
|
-
"warning-hover",
|
|
61
|
-
"warning-foreground",
|
|
62
|
-
"warning-muted",
|
|
63
|
-
"warning-muted-foreground",
|
|
64
|
-
"separator",
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
const THEME_COLORS = [...PRIMITIVE_COLORS, ...SEMANTIC_COLORS];
|
|
68
|
-
|
|
69
|
-
const customTwMerge = extendTailwindMerge({
|
|
70
|
-
extend: {
|
|
71
|
-
classGroups: {
|
|
72
|
-
"text-color": [{ text: THEME_COLORS }],
|
|
73
|
-
"bg-color": [{ bg: THEME_COLORS }],
|
|
74
|
-
"border-color": [{ border: THEME_COLORS }],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
export function cn(...inputs: ClassValue[]): string {
|
|
80
|
-
return customTwMerge(clsx(inputs));
|
|
81
|
-
}
|
package/src/lib/index.ts
DELETED
package/src/lib/motion.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { Transition } from "motion/react";
|
|
2
|
-
|
|
3
|
-
type SpringTransition = {
|
|
4
|
-
type: "spring";
|
|
5
|
-
stiffness: number;
|
|
6
|
-
damping: number;
|
|
7
|
-
mass: number;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Shared spring configurations for consistent animations across the app.
|
|
12
|
-
*/
|
|
13
|
-
export const springs: Record<string, SpringTransition> = {
|
|
14
|
-
/** Snappy, responsive spring for UI interactions */
|
|
15
|
-
snappy: {
|
|
16
|
-
type: "spring",
|
|
17
|
-
stiffness: 500,
|
|
18
|
-
damping: 30,
|
|
19
|
-
mass: 1,
|
|
20
|
-
},
|
|
21
|
-
/** Bouncy spring with overshoot for playful interactions */
|
|
22
|
-
bouncy: {
|
|
23
|
-
type: "spring",
|
|
24
|
-
stiffness: 600,
|
|
25
|
-
damping: 20,
|
|
26
|
-
mass: 1,
|
|
27
|
-
},
|
|
28
|
-
/** Smooth spring for layout animations */
|
|
29
|
-
smooth: {
|
|
30
|
-
type: "spring",
|
|
31
|
-
stiffness: 350,
|
|
32
|
-
damping: 35,
|
|
33
|
-
mass: 1,
|
|
34
|
-
},
|
|
35
|
-
/** Quick spring for micro-interactions */
|
|
36
|
-
quick: {
|
|
37
|
-
type: "spring",
|
|
38
|
-
stiffness: 700,
|
|
39
|
-
damping: 35,
|
|
40
|
-
mass: 0.8,
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Common transition presets combining spring with other settings.
|
|
46
|
-
*/
|
|
47
|
-
export const transitions: Record<string, Transition> = {
|
|
48
|
-
/** Default layout transition */
|
|
49
|
-
layout: springs.snappy,
|
|
50
|
-
/** Fade transition for overlays */
|
|
51
|
-
fade: {
|
|
52
|
-
duration: 0.15,
|
|
53
|
-
ease: "easeOut",
|
|
54
|
-
},
|
|
55
|
-
};
|
|
Binary file
|
|
Binary file
|