sonance-brand-mcp 1.3.114 → 1.3.116
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/assets/components/alert.tsx +2 -2
- package/dist/assets/components/avatar.tsx +2 -2
- package/dist/assets/components/badge.tsx +2 -2
- package/dist/assets/components/button.tsx +1 -1
- package/dist/assets/components/card.tsx +1 -1
- package/dist/assets/components/checkbox.tsx +2 -2
- package/dist/assets/components/dialog.tsx +1 -1
- package/dist/assets/components/input.tsx +1 -1
- package/dist/assets/components/kbd.tsx +1 -1
- package/dist/assets/components/number-input.tsx +1 -1
- package/dist/assets/components/pagination.tsx +4 -4
- package/dist/assets/components/popover.tsx +4 -4
- package/dist/assets/components/progress.tsx +2 -2
- package/dist/assets/components/select.tsx +2 -2
- package/dist/assets/components/spinner.tsx +2 -2
- package/dist/assets/components/switch.tsx +2 -2
- package/dist/assets/components/tabs.tsx +2 -2
- package/dist/assets/components/tooltip.tsx +1 -1
- package/dist/index.js +36 -3
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ const alertVariants = cva(
|
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: {
|
|
28
28
|
variant: "default",
|
|
29
|
-
size: "
|
|
29
|
+
size: "xs",
|
|
30
30
|
},
|
|
31
31
|
}
|
|
32
32
|
);
|
|
@@ -64,7 +64,7 @@ interface AlertProps
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export const Alert = forwardRef<HTMLDivElement, AlertProps>(
|
|
67
|
-
({ className, variant = "default", size = "
|
|
67
|
+
({ className, variant = "default", size = "xs", title, children, dismissible, onClose, state, ...props }, ref) => {
|
|
68
68
|
const Icon = iconMap[variant || "default"];
|
|
69
69
|
const showCloseButton = dismissible || onClose;
|
|
70
70
|
|
|
@@ -23,7 +23,7 @@ const avatarVariants = cva(
|
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
defaultVariants: {
|
|
26
|
-
size: "
|
|
26
|
+
size: "sm",
|
|
27
27
|
shape: "circle",
|
|
28
28
|
},
|
|
29
29
|
}
|
|
@@ -120,7 +120,7 @@ interface AvatarGroupProps {
|
|
|
120
120
|
className?: string;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
function AvatarGroup({ children, max, size = "
|
|
123
|
+
function AvatarGroup({ children, max, size = "sm", className }: AvatarGroupProps) {
|
|
124
124
|
const avatars = Array.isArray(children) ? children : [children];
|
|
125
125
|
const displayAvatars = max ? avatars.slice(0, max) : avatars;
|
|
126
126
|
const excess = max ? Math.max(0, avatars.length - max) : 0;
|
|
@@ -31,7 +31,7 @@ const badgeVariants = cva(
|
|
|
31
31
|
},
|
|
32
32
|
defaultVariants: {
|
|
33
33
|
variant: "default",
|
|
34
|
-
size: "
|
|
34
|
+
size: "xs",
|
|
35
35
|
},
|
|
36
36
|
}
|
|
37
37
|
);
|
|
@@ -70,7 +70,7 @@ interface ChipProps extends BadgeProps {
|
|
|
70
70
|
onClose?: () => void;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export function Chip({ className, variant, size = "
|
|
73
|
+
export function Chip({ className, variant, size = "xs", onClose, children, ...props }: ChipProps) {
|
|
74
74
|
return (
|
|
75
75
|
<span
|
|
76
76
|
id="chip-span"
|
|
@@ -19,7 +19,7 @@ const checkboxVariants = cva(
|
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {
|
|
22
|
-
size: "
|
|
22
|
+
size: "xs",
|
|
23
23
|
},
|
|
24
24
|
}
|
|
25
25
|
);
|
|
@@ -56,7 +56,7 @@ const getStateStyles = (state?: CheckboxState) => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
|
|
59
|
-
({ className, label, description, id, state, disabled, checked, defaultChecked, onChange, onCheckedChange, style, size = "
|
|
59
|
+
({ className, label, description, id, state, disabled, checked, defaultChecked, onChange, onCheckedChange, style, size = "xs", ...props }, ref) => {
|
|
60
60
|
const uniqueId = useId();
|
|
61
61
|
const inputId = id || `checkbox-${uniqueId}`;
|
|
62
62
|
const isDisabled = disabled || state === "disabled";
|
|
@@ -20,7 +20,7 @@ interface DialogProps {
|
|
|
20
20
|
size?: "compact" | "default" | "spacious";
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export function Dialog({ open, onClose, children, size = "
|
|
23
|
+
export function Dialog({ open, onClose, children, size = "compact" }: DialogProps) {
|
|
24
24
|
// Close on escape
|
|
25
25
|
useEffect(() => {
|
|
26
26
|
const handleEscape = (e: KeyboardEvent) => {
|
|
@@ -209,7 +209,7 @@ interface StepperProps extends Omit<NumberInputProps, "hideControls"> {
|
|
|
209
209
|
size?: "sm" | "md" | "lg";
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
export function Stepper({ size = "
|
|
212
|
+
export function Stepper({ size = "sm", className, ...props }: StepperProps) {
|
|
213
213
|
const sizeClasses = {
|
|
214
214
|
sm: "h-8 text-sm",
|
|
215
215
|
md: "h-10 text-base",
|
|
@@ -19,7 +19,7 @@ const paginationButtonVariants = cva(
|
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {
|
|
22
|
-
size: "
|
|
22
|
+
size: "xs",
|
|
23
23
|
},
|
|
24
24
|
}
|
|
25
25
|
);
|
|
@@ -38,7 +38,7 @@ const getButtonStateStyles = (state?: PaginationButtonState) => {
|
|
|
38
38
|
return stateMap[state] || "";
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const PaginationSizeContext = createContext<"xs" | "sm" | "md" | "lg">("
|
|
41
|
+
const PaginationSizeContext = createContext<"xs" | "sm" | "md" | "lg">("xs");
|
|
42
42
|
|
|
43
43
|
const ellipsisSizes = {
|
|
44
44
|
xs: "h-6 w-6 text-[10px]",
|
|
@@ -112,7 +112,7 @@ export function Pagination({
|
|
|
112
112
|
siblingCount = 1,
|
|
113
113
|
showFirstLast = true,
|
|
114
114
|
className,
|
|
115
|
-
size = "
|
|
115
|
+
size = "xs",
|
|
116
116
|
}: PaginationProps) {
|
|
117
117
|
const pages = generatePaginationRange(currentPage, totalPages, siblingCount);
|
|
118
118
|
|
|
@@ -233,7 +233,7 @@ export function CompactPagination({
|
|
|
233
233
|
totalPages,
|
|
234
234
|
onPageChange,
|
|
235
235
|
className,
|
|
236
|
-
size = "
|
|
236
|
+
size = "xs",
|
|
237
237
|
}: CompactPaginationProps) {
|
|
238
238
|
return (
|
|
239
239
|
<PaginationSizeContext.Provider value={size}>
|
|
@@ -9,7 +9,7 @@ type PopoverPosition = "top" | "bottom" | "left" | "right";
|
|
|
9
9
|
type PopoverSize = "compact" | "default" | "spacious";
|
|
10
10
|
type PopoverVariant = "default" | "glass";
|
|
11
11
|
|
|
12
|
-
const PopoverContext = createContext<{ size: PopoverSize }>({ size: "
|
|
12
|
+
const PopoverContext = createContext<{ size: PopoverSize }>({ size: "compact" });
|
|
13
13
|
|
|
14
14
|
const popoverVariants = cva(
|
|
15
15
|
"fixed z-50 min-w-[200px] border shadow-xl animate-in fade-in zoom-in-95 duration-150",
|
|
@@ -28,7 +28,7 @@ const popoverVariants = cva(
|
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
defaultVariants: {
|
|
31
|
-
size: "
|
|
31
|
+
size: "compact",
|
|
32
32
|
popoverVariant: "default",
|
|
33
33
|
},
|
|
34
34
|
}
|
|
@@ -59,7 +59,7 @@ export function Popover({
|
|
|
59
59
|
position = "bottom",
|
|
60
60
|
triggerOn = "click",
|
|
61
61
|
className,
|
|
62
|
-
size = "
|
|
62
|
+
size = "compact",
|
|
63
63
|
popoverVariant = "default",
|
|
64
64
|
}: PopoverProps) {
|
|
65
65
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -180,7 +180,7 @@ export function Popover({
|
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
return (
|
|
183
|
-
<PopoverContext.Provider value={{ size: size ?? "
|
|
183
|
+
<PopoverContext.Provider value={{ size: size ?? "compact" }}>
|
|
184
184
|
<div data-sonance-name="popover"
|
|
185
185
|
ref={containerRef}
|
|
186
186
|
className="relative inline-block"
|
|
@@ -13,7 +13,7 @@ interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const Progress = forwardRef<HTMLDivElement, ProgressProps>(
|
|
16
|
-
({ className, value = 0, max = 100, label, showValue = false, size = "
|
|
16
|
+
({ className, value = 0, max = 100, label, showValue = false, size = "sm", ...props }, ref) => {
|
|
17
17
|
const percentage = Math.min(100, Math.max(0, (value / max) * 100));
|
|
18
18
|
|
|
19
19
|
const heightClasses = {
|
|
@@ -79,7 +79,7 @@ const circularSizeMap = {
|
|
|
79
79
|
export function CircularProgress({
|
|
80
80
|
value = 0,
|
|
81
81
|
max = 100,
|
|
82
|
-
size = "
|
|
82
|
+
size = "sm",
|
|
83
83
|
strokeWidth = 4,
|
|
84
84
|
showValue = false,
|
|
85
85
|
className,
|
|
@@ -27,7 +27,7 @@ const selectTriggerVariants = cva(
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
defaultVariants: {
|
|
30
|
-
size: "
|
|
30
|
+
size: "xs",
|
|
31
31
|
selectVariant: "default",
|
|
32
32
|
},
|
|
33
33
|
}
|
|
@@ -237,7 +237,7 @@ interface NativeSelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectEl
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
export const NativeSelect = forwardRef<HTMLSelectElement, NativeSelectProps>(
|
|
240
|
-
({ className, label, error, options, state, disabled, size = "
|
|
240
|
+
({ className, label, error, options, state, disabled, size = "xs", ...props }, ref) => {
|
|
241
241
|
const isDisabled = disabled || state === "disabled";
|
|
242
242
|
const hasError = error || state === "error";
|
|
243
243
|
|
|
@@ -6,7 +6,7 @@ interface SpinnerProps {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export function Spinner({ size = "
|
|
9
|
+
export function Spinner({ size = "sm", className, label }: SpinnerProps) {
|
|
10
10
|
const sizeClasses = {
|
|
11
11
|
sm: "h-4 w-4 border-2",
|
|
12
12
|
md: "h-6 w-6 border-2",
|
|
@@ -38,7 +38,7 @@ interface DotsSpinnerProps {
|
|
|
38
38
|
className?: string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export function DotsSpinner({ size = "
|
|
41
|
+
export function DotsSpinner({ size = "sm", className }: DotsSpinnerProps) {
|
|
42
42
|
const dotSizes = {
|
|
43
43
|
sm: "h-1.5 w-1.5",
|
|
44
44
|
md: "h-2 w-2",
|
|
@@ -18,7 +18,7 @@ const switchTrackVariants = cva(
|
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: {
|
|
21
|
-
size: "
|
|
21
|
+
size: "xs",
|
|
22
22
|
},
|
|
23
23
|
}
|
|
24
24
|
);
|
|
@@ -53,7 +53,7 @@ const getTrackStateStyles = (state?: SwitchState) => {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export const Switch = forwardRef<HTMLInputElement, SwitchProps>(
|
|
56
|
-
({ className, label, description, id, state, disabled, checked, defaultChecked, onChange, style, size = "
|
|
56
|
+
({ className, label, description, id, state, disabled, checked, defaultChecked, onChange, style, size = "xs", ...props }, ref) => {
|
|
57
57
|
const uniqueId = useId();
|
|
58
58
|
const inputId = id || `switch-${uniqueId}`;
|
|
59
59
|
const isDisabled = disabled || state === "disabled";
|
|
@@ -18,7 +18,7 @@ const tabsTriggerVariants = cva(
|
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: {
|
|
21
|
-
size: "
|
|
21
|
+
size: "xs",
|
|
22
22
|
},
|
|
23
23
|
}
|
|
24
24
|
);
|
|
@@ -61,7 +61,7 @@ export function Tabs({
|
|
|
61
61
|
onValueChange,
|
|
62
62
|
className,
|
|
63
63
|
children,
|
|
64
|
-
size = "
|
|
64
|
+
size = "xs",
|
|
65
65
|
}: TabsProps) {
|
|
66
66
|
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
67
67
|
const value = controlledValue ?? internalValue;
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,18 @@ function runInstaller() {
|
|
|
60
60
|
console.log(" 📄 Found existing Claude config");
|
|
61
61
|
}
|
|
62
62
|
catch {
|
|
63
|
-
console.log("
|
|
63
|
+
console.log("");
|
|
64
|
+
console.log(" ❌ Error: Could not parse existing Claude config");
|
|
65
|
+
console.log("");
|
|
66
|
+
console.log(" Your config file may have invalid JSON (trailing commas, comments, etc.)");
|
|
67
|
+
console.log(` Please fix the file manually: ${configPath}`);
|
|
68
|
+
console.log("");
|
|
69
|
+
console.log(" Common issues:");
|
|
70
|
+
console.log(" - Trailing commas after the last item in objects/arrays");
|
|
71
|
+
console.log(" - Comments (// or /* */) which are not valid JSON");
|
|
72
|
+
console.log(" - Missing quotes around keys");
|
|
73
|
+
console.log("");
|
|
74
|
+
process.exit(1);
|
|
64
75
|
}
|
|
65
76
|
}
|
|
66
77
|
else {
|
|
@@ -136,7 +147,18 @@ function runClaudeCodeInstaller() {
|
|
|
136
147
|
console.log(" 📄 Found existing .mcp.json");
|
|
137
148
|
}
|
|
138
149
|
catch {
|
|
139
|
-
console.log("
|
|
150
|
+
console.log("");
|
|
151
|
+
console.log(" ❌ Error: Could not parse existing .mcp.json");
|
|
152
|
+
console.log("");
|
|
153
|
+
console.log(" Your config file may have invalid JSON (trailing commas, comments, etc.)");
|
|
154
|
+
console.log(` Please fix the file manually: ${configPath}`);
|
|
155
|
+
console.log("");
|
|
156
|
+
console.log(" Common issues:");
|
|
157
|
+
console.log(" - Trailing commas after the last item in objects/arrays");
|
|
158
|
+
console.log(" - Comments (// or /* */) which are not valid JSON");
|
|
159
|
+
console.log(" - Missing quotes around keys");
|
|
160
|
+
console.log("");
|
|
161
|
+
process.exit(1);
|
|
140
162
|
}
|
|
141
163
|
}
|
|
142
164
|
else {
|
|
@@ -214,7 +236,18 @@ function runCursorInstaller() {
|
|
|
214
236
|
console.log(" 📄 Found existing .cursor/mcp.json");
|
|
215
237
|
}
|
|
216
238
|
catch {
|
|
217
|
-
console.log("
|
|
239
|
+
console.log("");
|
|
240
|
+
console.log(" ❌ Error: Could not parse existing .cursor/mcp.json");
|
|
241
|
+
console.log("");
|
|
242
|
+
console.log(" Your config file may have invalid JSON (trailing commas, comments, etc.)");
|
|
243
|
+
console.log(` Please fix the file manually: ${configPath}`);
|
|
244
|
+
console.log("");
|
|
245
|
+
console.log(" Common issues:");
|
|
246
|
+
console.log(" - Trailing commas after the last item in objects/arrays");
|
|
247
|
+
console.log(" - Comments (// or /* */) which are not valid JSON");
|
|
248
|
+
console.log(" - Missing quotes around keys");
|
|
249
|
+
console.log("");
|
|
250
|
+
process.exit(1);
|
|
218
251
|
}
|
|
219
252
|
}
|
|
220
253
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonance-brand-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.116",
|
|
4
4
|
"description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|