@hilum/ui 3.2.6 → 3.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hilum/ui",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "private": false,
5
5
  "description": "Hilum UI — design system primitives (Button, Input, Dialog, Combobox, …) + tokens + fonts + icons",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@ const buttonVariants = cva(
31
31
  xs: "h-6 gap-1 px-2 caption rounded-md",
32
32
  sm: "h-8 gap-1.5 px-3 rounded-md",
33
33
  lg: "h-11 px-6 rounded-md",
34
- icon: "size-10 rounded-md",
34
+ icon: "size-9 rounded-md",
35
35
  "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
36
36
  "icon-sm": "size-8 rounded-md",
37
37
  "icon-lg": "size-11 rounded-md",
@@ -49,7 +49,7 @@ const DialogContent = React.forwardRef<
49
49
  {...props}
50
50
  >
51
51
  {children}
52
- <Dialog.Close className="absolute right-3 top-3 flex size-10 items-center justify-center rounded-md text-muted-foreground opacity-70 transition-[opacity,scale] hover:opacity-100 active:scale-[0.96] focus:outline-none focus:ring-2 focus:ring-ground-900/20">
52
+ <Dialog.Close className="absolute right-3 top-3 flex size-9 items-center justify-center rounded-md text-muted-foreground opacity-70 transition-[opacity,scale] hover:opacity-100 active:scale-[0.96] focus:outline-none focus:ring-2 focus:ring-ground-900/20">
53
53
  <X size={16} />
54
54
  <span className="sr-only">Close</span>
55
55
  </Dialog.Close>
@@ -95,7 +95,7 @@ function Notification({
95
95
  <button
96
96
  type="button"
97
97
  onClick={onClose}
98
- className="flex size-10 items-center justify-center rounded-md text-muted-foreground transition-[color,scale] hover:text-muted-foreground active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30"
98
+ className="flex size-9 items-center justify-center rounded-md text-muted-foreground transition-[color,scale] hover:text-muted-foreground active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30"
99
99
  >
100
100
  <span className="sr-only">Close</span>
101
101
  <X size={16} />
@@ -32,7 +32,7 @@ const PaginationLink = ({ className, isActive, ...props }: PaginationLinkProps)
32
32
  aria-current={isActive ? "page" : undefined}
33
33
  className={cn(
34
34
  buttonVariants({ variant: isActive ? "default" : "ghost", size: "icon" }),
35
- "size-10 rounded-md body",
35
+ "size-9 rounded-md body",
36
36
  className,
37
37
  )}
38
38
  {...props}
@@ -70,7 +70,7 @@ PaginationNext.displayName = "PaginationNext";
70
70
  const PaginationEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (
71
71
  <span
72
72
  aria-hidden
73
- className={cn("flex size-10 items-center justify-center text-muted-foreground", className)}
73
+ className={cn("flex size-9 items-center justify-center text-muted-foreground", className)}
74
74
  {...props}
75
75
  >
76
76
  <MoreHorizontal size={14} />
@@ -294,7 +294,7 @@ function RichTextEditor({
294
294
  type="button"
295
295
  variant="ghost"
296
296
  size="icon"
297
- className="size-10 text-muted-foreground hover:text-foreground"
297
+ className="size-9 text-muted-foreground hover:text-foreground"
298
298
  title={title}
299
299
  aria-label={title}
300
300
  onMouseDown={(event) => {
@@ -334,7 +334,7 @@ function RichTextEditor({
334
334
  type="button"
335
335
  variant="ghost"
336
336
  size="icon"
337
- className="size-10 text-muted-foreground hover:text-foreground"
337
+ className="size-9 text-muted-foreground hover:text-foreground"
338
338
  title="Insert link"
339
339
  aria-label="Insert link"
340
340
  onMouseDown={(event) => {
@@ -349,7 +349,7 @@ function RichTextEditor({
349
349
  type="button"
350
350
  variant="ghost"
351
351
  size="icon"
352
- className="size-10 text-muted-foreground hover:text-foreground"
352
+ className="size-9 text-muted-foreground hover:text-foreground"
353
353
  title="Insert image"
354
354
  aria-label="Insert image"
355
355
  onMouseDown={(event) => {
@@ -65,7 +65,7 @@ const SheetContent = React.forwardRef<React.ComponentRef<typeof Dialog.Content>,
65
65
  {...props}
66
66
  >
67
67
  {children}
68
- <Dialog.Close className="absolute right-3 top-3 flex size-10 items-center justify-center rounded-md text-muted-foreground opacity-70 transition-[opacity,scale] hover:opacity-100 active:scale-[0.96] focus:outline-none focus:ring-2 focus:ring-ground-900/20">
68
+ <Dialog.Close className="absolute right-3 top-3 flex size-9 items-center justify-center rounded-md text-muted-foreground opacity-70 transition-[opacity,scale] hover:opacity-100 active:scale-[0.96] focus:outline-none focus:ring-2 focus:ring-ground-900/20">
69
69
  <X size={16} />
70
70
  <span className="sr-only">Close</span>
71
71
  </Dialog.Close>
@@ -514,7 +514,7 @@ function SidebarMenuButton({
514
514
  ],
515
515
  // Collapsed state
516
516
  "group-data-[state=collapsed]/sidebar-wrapper:justify-center",
517
- "group-data-[state=collapsed]/sidebar-wrapper:size-10",
517
+ "group-data-[state=collapsed]/sidebar-wrapper:size-9",
518
518
  "group-data-[state=collapsed]/sidebar-wrapper:p-0",
519
519
  className,
520
520
  )}
@@ -37,7 +37,7 @@ const toggleVariants = cva(
37
37
  sm: "h-8 gap-1.5 px-3",
38
38
  default: "h-10 px-3",
39
39
  lg: "h-11 px-4",
40
- icon: "size-10",
40
+ icon: "size-9",
41
41
  "icon-sm": "size-8",
42
42
  "icon-lg": "size-11",
43
43
  },