@moontra/moonui 2.4.0 → 2.4.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/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.global.js +30 -29
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +213 -214
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +215 -217
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/index.ts +77 -0
- package/src/components/ui/moon-logo.tsx +13 -16
package/package.json
CHANGED
|
@@ -17,6 +17,10 @@ export {
|
|
|
17
17
|
AlertDescription as MoonUIAlertDescription,
|
|
18
18
|
} from "./alert";
|
|
19
19
|
|
|
20
|
+
export type {
|
|
21
|
+
AlertProps as MoonUIAlertProps,
|
|
22
|
+
} from "./alert";
|
|
23
|
+
|
|
20
24
|
// AspectRatio
|
|
21
25
|
export { AspectRatio as MoonUIAspectRatio } from "./aspect-ratio";
|
|
22
26
|
|
|
@@ -28,12 +32,20 @@ export {
|
|
|
28
32
|
AvatarGroup as MoonUIAvatarGroup,
|
|
29
33
|
} from "./avatar";
|
|
30
34
|
|
|
35
|
+
export type {
|
|
36
|
+
AvatarProps as MoonUIAvatarProps,
|
|
37
|
+
} from "./avatar";
|
|
38
|
+
|
|
31
39
|
// Badge
|
|
32
40
|
export {
|
|
33
41
|
Badge as MoonUIBadge,
|
|
34
42
|
badgeVariants as moonUIBadgeVariants,
|
|
35
43
|
} from "./badge";
|
|
36
44
|
|
|
45
|
+
export type {
|
|
46
|
+
BadgeProps as MoonUIBadgeProps,
|
|
47
|
+
} from "./badge";
|
|
48
|
+
|
|
37
49
|
// Breadcrumb
|
|
38
50
|
export {
|
|
39
51
|
Breadcrumb as MoonUIBreadcrumb,
|
|
@@ -51,6 +63,10 @@ export {
|
|
|
51
63
|
buttonVariants as moonUIButtonVariants,
|
|
52
64
|
} from "./button";
|
|
53
65
|
|
|
66
|
+
export type {
|
|
67
|
+
ButtonProps as MoonUIButtonProps,
|
|
68
|
+
} from "./button";
|
|
69
|
+
|
|
54
70
|
// Card
|
|
55
71
|
export {
|
|
56
72
|
Card as MoonUICard,
|
|
@@ -61,6 +77,19 @@ export {
|
|
|
61
77
|
CardContent as MoonUICardContent,
|
|
62
78
|
} from "./card";
|
|
63
79
|
|
|
80
|
+
export type {
|
|
81
|
+
CardProps as MoonUICardProps,
|
|
82
|
+
} from "./card";
|
|
83
|
+
|
|
84
|
+
// Calendar
|
|
85
|
+
export {
|
|
86
|
+
Calendar as MoonUICalendar,
|
|
87
|
+
} from "./calendar";
|
|
88
|
+
|
|
89
|
+
export type {
|
|
90
|
+
CalendarProps as MoonUICalendarProps,
|
|
91
|
+
} from "./calendar";
|
|
92
|
+
|
|
64
93
|
// Card Input
|
|
65
94
|
export {
|
|
66
95
|
CardNumberInput as MoonUICardNumberInput,
|
|
@@ -77,6 +106,10 @@ export {
|
|
|
77
106
|
CheckboxLabel as MoonUICheckboxLabel,
|
|
78
107
|
} from "./checkbox";
|
|
79
108
|
|
|
109
|
+
export type {
|
|
110
|
+
CheckboxProps as MoonUICheckboxProps,
|
|
111
|
+
} from "./checkbox";
|
|
112
|
+
|
|
80
113
|
// Collapsible
|
|
81
114
|
export {
|
|
82
115
|
Collapsible as MoonUICollapsible,
|
|
@@ -91,6 +124,10 @@ export {
|
|
|
91
124
|
GradientPicker as MoonUIGradientPicker,
|
|
92
125
|
} from "./color-picker";
|
|
93
126
|
|
|
127
|
+
export type {
|
|
128
|
+
ColorPickerProps as MoonUIColorPickerProps,
|
|
129
|
+
} from "./color-picker";
|
|
130
|
+
|
|
94
131
|
// Command
|
|
95
132
|
export {
|
|
96
133
|
Command as MoonUICommand,
|
|
@@ -117,6 +154,10 @@ export {
|
|
|
117
154
|
MonthPicker as MoonUIMonthPicker,
|
|
118
155
|
} from "./date-picker";
|
|
119
156
|
|
|
157
|
+
export type {
|
|
158
|
+
DatePickerProps as MoonUIDatePickerProps,
|
|
159
|
+
} from "./date-picker";
|
|
160
|
+
|
|
120
161
|
// Dialog
|
|
121
162
|
export {
|
|
122
163
|
Dialog as MoonUIDialog,
|
|
@@ -132,6 +173,10 @@ export {
|
|
|
132
173
|
// DraggableList
|
|
133
174
|
export { DraggableList as MoonUIDraggableList } from "./draggable-list";
|
|
134
175
|
|
|
176
|
+
export type {
|
|
177
|
+
DraggableListProps as MoonUIDraggableListProps,
|
|
178
|
+
} from "./draggable-list";
|
|
179
|
+
|
|
135
180
|
// DropdownMenu
|
|
136
181
|
export {
|
|
137
182
|
DropdownMenu as MoonUIDropdownMenu,
|
|
@@ -154,15 +199,27 @@ export {
|
|
|
154
199
|
// FileUpload
|
|
155
200
|
export { FileUpload as MoonUIFileUpload } from "./file-upload";
|
|
156
201
|
|
|
202
|
+
export type {
|
|
203
|
+
FileUploadProps as MoonUIFileUploadProps,
|
|
204
|
+
} from "./file-upload";
|
|
205
|
+
|
|
157
206
|
// GestureDrawer
|
|
158
207
|
export { GestureDrawer as MoonUIGestureDrawer } from "./gesture-drawer";
|
|
159
208
|
|
|
209
|
+
export type {
|
|
210
|
+
GestureDrawerProps as MoonUIGestureDrawerProps,
|
|
211
|
+
} from "./gesture-drawer";
|
|
212
|
+
|
|
160
213
|
// GitHubStars
|
|
161
214
|
export { GitHubStars as MoonUIGitHubStars } from "./github-stars";
|
|
162
215
|
|
|
163
216
|
// Input
|
|
164
217
|
export { Input as MoonUIInput } from "./input";
|
|
165
218
|
|
|
219
|
+
export type {
|
|
220
|
+
InputProps as MoonUIInputProps,
|
|
221
|
+
} from "./input";
|
|
222
|
+
|
|
166
223
|
// Label
|
|
167
224
|
export { Label as MoonUILabel } from "./label";
|
|
168
225
|
|
|
@@ -201,6 +258,10 @@ export {
|
|
|
201
258
|
// Progress
|
|
202
259
|
export { Progress as MoonUIProgress } from "./progress";
|
|
203
260
|
|
|
261
|
+
export type {
|
|
262
|
+
ProgressProps as MoonUIProgressProps,
|
|
263
|
+
} from "./progress";
|
|
264
|
+
|
|
204
265
|
// RadioGroup
|
|
205
266
|
export {
|
|
206
267
|
RadioGroup as MoonUIRadioGroup,
|
|
@@ -209,6 +270,10 @@ export {
|
|
|
209
270
|
RadioItemWithLabel as MoonUIRadioItemWithLabel,
|
|
210
271
|
} from "./radio-group";
|
|
211
272
|
|
|
273
|
+
export type {
|
|
274
|
+
RadioGroupProps as MoonUIRadioGroupProps,
|
|
275
|
+
} from "./radio-group";
|
|
276
|
+
|
|
212
277
|
// RichTextEditor
|
|
213
278
|
export { RichTextEditor as MoonUIRichTextEditor } from "./rich-text-editor";
|
|
214
279
|
|
|
@@ -254,6 +319,10 @@ export {
|
|
|
254
319
|
skeletonVariants as moonUISkeletonVariants,
|
|
255
320
|
} from "./skeleton";
|
|
256
321
|
|
|
322
|
+
export type {
|
|
323
|
+
SkeletonProps as MoonUISkeletonProps,
|
|
324
|
+
} from "./skeleton";
|
|
325
|
+
|
|
257
326
|
// Slider
|
|
258
327
|
export { Slider as MoonUISlider } from "./slider";
|
|
259
328
|
|
|
@@ -263,6 +332,10 @@ export { SwipeableCard as MoonUISwipeableCard } from "./swipeable-card";
|
|
|
263
332
|
// Switch
|
|
264
333
|
export { Switch as MoonUISwitch } from "./switch";
|
|
265
334
|
|
|
335
|
+
export type {
|
|
336
|
+
SwitchProps as MoonUISwitchProps,
|
|
337
|
+
} from "./switch";
|
|
338
|
+
|
|
266
339
|
// Table
|
|
267
340
|
export {
|
|
268
341
|
Table as MoonUITable,
|
|
@@ -289,6 +362,10 @@ export { TagsInput as MoonUITagsInput } from "./tags-input";
|
|
|
289
362
|
// Textarea
|
|
290
363
|
export { Textarea as MoonUITextarea } from "./textarea";
|
|
291
364
|
|
|
365
|
+
export type {
|
|
366
|
+
TextareaProps as MoonUITextareaProps,
|
|
367
|
+
} from "./textarea";
|
|
368
|
+
|
|
292
369
|
// Toast
|
|
293
370
|
export {
|
|
294
371
|
Toast as MoonUIToast,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from "react"
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
5
|
|
|
6
6
|
interface MoonLogoProps extends React.SVGProps<SVGSVGElement> {
|
|
7
7
|
variant?: "default" | "monochrome" | "gradient"
|
|
@@ -16,9 +16,10 @@ export function MoonLogo({
|
|
|
16
16
|
}: MoonLogoProps) {
|
|
17
17
|
const logoId = React.useId()
|
|
18
18
|
const gradientId = `moon-gradient-${logoId}`
|
|
19
|
+
const maskId = `moon-mask-${logoId}`
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
|
-
<div className={cn("
|
|
22
|
+
<div className={cn("flex items-center gap-2", className)}>
|
|
22
23
|
{/* Moon Icon */}
|
|
23
24
|
<svg
|
|
24
25
|
width="32"
|
|
@@ -29,32 +30,28 @@ export function MoonLogo({
|
|
|
29
30
|
className="flex-shrink-0"
|
|
30
31
|
{...props}
|
|
31
32
|
>
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
<defs>
|
|
34
|
+
{variant === "gradient" && (
|
|
34
35
|
<linearGradient id={gradientId} x1="0%" y1="0%" x2="100%" y2="100%">
|
|
35
36
|
<stop offset="0%" stopColor="#3B82F6" />
|
|
36
37
|
<stop offset="50%" stopColor="#8B5CF6" />
|
|
37
38
|
<stop offset="100%" stopColor="#EC4899" />
|
|
38
39
|
</linearGradient>
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
)}
|
|
41
|
+
<mask id={maskId}>
|
|
42
|
+
<rect width="32" height="32" fill="white"/>
|
|
43
|
+
<circle cx="22" cy="10" r="10" fill="black"/>
|
|
44
|
+
</mask>
|
|
45
|
+
</defs>
|
|
41
46
|
|
|
42
|
-
{/* Moon Circle */}
|
|
47
|
+
{/* Moon Circle with transparent crescent */}
|
|
43
48
|
<circle
|
|
44
49
|
cx="16"
|
|
45
50
|
cy="16"
|
|
46
51
|
r="14"
|
|
47
52
|
fill={variant === "gradient" ? `url(#${gradientId})` : "currentColor"}
|
|
48
53
|
className={variant === "default" ? "fill-primary" : ""}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{/* Crescent cutout */}
|
|
52
|
-
<circle
|
|
53
|
-
cx="22"
|
|
54
|
-
cy="10"
|
|
55
|
-
r="10"
|
|
56
|
-
fill="white"
|
|
57
|
-
className="dark:fill-background"
|
|
54
|
+
mask={`url(#${maskId})`}
|
|
58
55
|
/>
|
|
59
56
|
</svg>
|
|
60
57
|
|