sonance-brand-mcp 1.3.115 → 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.
@@ -26,7 +26,7 @@ const alertVariants = cva(
26
26
  },
27
27
  defaultVariants: {
28
28
  variant: "default",
29
- size: "sm",
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 = "sm", title, children, dismissible, onClose, state, ...props }, ref) => {
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: "md",
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 = "md", className }: AvatarGroupProps) {
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: "sm",
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 = "sm", onClose, children, ...props }: ChipProps) {
73
+ export function Chip({ className, variant, size = "xs", onClose, children, ...props }: ChipProps) {
74
74
  return (
75
75
  <span
76
76
  id="chip-span"
@@ -36,7 +36,7 @@ const buttonVariants = cva(
36
36
  },
37
37
  defaultVariants: {
38
38
  variant: "default",
39
- size: "sm",
39
+ size: "xs",
40
40
  },
41
41
  }
42
42
  );
@@ -30,7 +30,7 @@ const cardVariants = cva(
30
30
  },
31
31
  defaultVariants: {
32
32
  variant: "default",
33
- size: "default",
33
+ size: "compact",
34
34
  },
35
35
  }
36
36
  );
@@ -19,7 +19,7 @@ const checkboxVariants = cva(
19
19
  },
20
20
  },
21
21
  defaultVariants: {
22
- size: "sm",
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 = "sm", ...props }, ref) => {
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 = "default" }: DialogProps) {
23
+ export function Dialog({ open, onClose, children, size = "compact" }: DialogProps) {
24
24
  // Close on escape
25
25
  useEffect(() => {
26
26
  const handleEscape = (e: KeyboardEvent) => {
@@ -24,7 +24,7 @@ const inputVariants = cva(
24
24
  },
25
25
  },
26
26
  defaultVariants: {
27
- size: "sm",
27
+ size: "xs",
28
28
  inputVariant: "default",
29
29
  },
30
30
  }
@@ -34,7 +34,7 @@ const kbdVariants = cva(
34
34
  },
35
35
  defaultVariants: {
36
36
  variant: "default",
37
- size: "md",
37
+ size: "sm",
38
38
  },
39
39
  }
40
40
  );
@@ -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 = "md", className, ...props }: StepperProps) {
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: "sm",
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">("sm");
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 = "sm",
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 = "sm",
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: "default" });
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: "default",
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 = "default",
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 ?? "default" }}>
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 = "md", ...props }, ref) => {
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 = "md",
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: "sm",
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 = "sm", ...props }, ref) => {
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 = "md", className, label }: SpinnerProps) {
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 = "md", className }: DotsSpinnerProps) {
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: "sm",
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 = "sm", ...props }, ref) => {
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: "sm",
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 = "sm",
64
+ size = "xs",
65
65
  }: TabsProps) {
66
66
  const [internalValue, setInternalValue] = useState(defaultValue);
67
67
  const value = controlledValue ?? internalValue;
@@ -31,7 +31,7 @@ const tooltipContentVariants = cva(
31
31
  },
32
32
  },
33
33
  defaultVariants: {
34
- size: "sm",
34
+ size: "xs",
35
35
  tooltipVariant: "default",
36
36
  },
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.115",
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",