@hilum/ui 3.3.4 → 3.5.0
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/README.md +4 -0
- package/dist/{chunk-MAHPAP65.js → chunk-RI6QJR2L.js} +6 -3
- package/dist/chunk-RI6QJR2L.js.map +1 -0
- package/dist/index.d.ts +800 -122
- package/dist/index.js +10458 -1119
- package/dist/index.js.map +1 -1
- package/dist/tokens.css +17 -0
- package/dist/tokens.d.ts +3 -0
- package/dist/tokens.js +1 -1
- package/llms.txt +18 -4
- package/package.json +19 -1
- package/src/components/accordion.tsx +746 -58
- package/src/components/alert-dialog.tsx +11 -5
- package/src/components/ask-user-questions.tsx +1366 -0
- package/src/components/badge.tsx +105 -24
- package/src/components/button.tsx +207 -38
- package/src/components/card.tsx +3 -2
- package/src/components/chat-message.tsx +116 -0
- package/src/components/checkbox-group.tsx +403 -0
- package/src/components/checkbox.tsx +6 -3
- package/src/components/color-input.tsx +3 -1
- package/src/components/color-picker.tsx +1992 -80
- package/src/components/dialog.tsx +141 -81
- package/src/components/dropdown-menu.tsx +21 -13
- package/src/components/dropdown.tsx +245 -0
- package/src/components/file-thumbnail.tsx +156 -0
- package/src/components/hover-card.tsx +2 -0
- package/src/components/input-copy.tsx +307 -0
- package/src/components/input-group.tsx +303 -108
- package/src/components/input-message.tsx +883 -0
- package/src/components/input-number.tsx +62 -21
- package/src/components/input.tsx +6 -3
- package/src/components/menu-item.tsx +156 -0
- package/src/components/mobile-drawer.tsx +50 -0
- package/src/components/nav-item.tsx +43 -0
- package/src/components/nav-menu.tsx +47 -0
- package/src/components/popover.tsx +3 -1
- package/src/components/radio-group.tsx +381 -35
- package/src/components/scroll-area.tsx +9 -2
- package/src/components/select.tsx +708 -121
- package/src/components/sheet.tsx +15 -6
- package/src/components/slider.tsx +1583 -20
- package/src/components/status-badge.tsx +2 -0
- package/src/components/switch.tsx +245 -28
- package/src/components/table.tsx +191 -77
- package/src/components/tabs-subtle.tsx +411 -0
- package/src/components/tabs.tsx +459 -49
- package/src/components/textarea.tsx +7 -3
- package/src/components/thinking-indicator.tsx +106 -0
- package/src/components/thinking-steps.tsx +382 -0
- package/src/components/tooltip.tsx +158 -33
- package/src/hooks/use-merge-split.tsx +359 -0
- package/src/hooks/use-proximity-hover.ts +208 -0
- package/src/index.ts +14 -0
- package/src/lib/elevated.tsx +52 -0
- package/src/lib/font-weight.ts +18 -0
- package/src/lib/icon-context.tsx +98 -0
- package/src/lib/icon-map.tsx +669 -0
- package/src/lib/interaction.ts +102 -0
- package/src/lib/scroll-fade.tsx +241 -0
- package/src/lib/shape-context.tsx +121 -0
- package/src/lib/springs.ts +30 -0
- package/src/lib/surface-classes.ts +43 -0
- package/src/lib/surface-context.tsx +17 -0
- package/src/tokens/tokens.ts +3 -0
- package/dist/chunk-MAHPAP65.js.map +0 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { AlertDialog } from "radix-ui";
|
|
5
5
|
import { cn } from "../lib/utils";
|
|
6
|
+
import { focusRingClasses, motionClasses, pressClasses } from "../lib/interaction";
|
|
6
7
|
import {
|
|
7
8
|
desktopDialogContentClassName,
|
|
8
9
|
dialogSheetMotionClassName,
|
|
@@ -23,6 +24,7 @@ const AlertDialogOverlay = React.forwardRef<
|
|
|
23
24
|
"fixed inset-0 z-50 bg-black/30 backdrop-blur-sm",
|
|
24
25
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
25
26
|
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
27
|
+
"data-[state=closed]:duration-100 data-[state=open]:duration-150",
|
|
26
28
|
className,
|
|
27
29
|
)}
|
|
28
30
|
{...props}
|
|
@@ -41,7 +43,7 @@ const AlertDialogContent = React.forwardRef<
|
|
|
41
43
|
className={cn(
|
|
42
44
|
mobileDialogSheetContentClassName,
|
|
43
45
|
desktopDialogContentClassName,
|
|
44
|
-
"sm:max-w-md",
|
|
46
|
+
"border border-border shadow-elevated sm:max-w-md",
|
|
45
47
|
dialogSheetMotionClassName,
|
|
46
48
|
className,
|
|
47
49
|
)}
|
|
@@ -104,9 +106,11 @@ const AlertDialogAction = React.forwardRef<
|
|
|
104
106
|
ref={ref}
|
|
105
107
|
className={cn(
|
|
106
108
|
"inline-flex h-10 items-center justify-center rounded-md px-4",
|
|
107
|
-
"body font-medium whitespace-nowrap
|
|
109
|
+
"body font-medium whitespace-nowrap",
|
|
110
|
+
motionClasses,
|
|
111
|
+
pressClasses,
|
|
108
112
|
"bg-brand-primary text-background hover:bg-brand-primary/90 active:bg-brand-primary/80",
|
|
109
|
-
|
|
113
|
+
focusRingClasses,
|
|
110
114
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
111
115
|
className,
|
|
112
116
|
)}
|
|
@@ -123,9 +127,11 @@ const AlertDialogCancel = React.forwardRef<
|
|
|
123
127
|
ref={ref}
|
|
124
128
|
className={cn(
|
|
125
129
|
"inline-flex h-10 items-center justify-center rounded-md px-4",
|
|
126
|
-
"body font-medium whitespace-nowrap
|
|
130
|
+
"body font-medium whitespace-nowrap",
|
|
131
|
+
motionClasses,
|
|
132
|
+
pressClasses,
|
|
127
133
|
"bg-card text-muted-foreground shadow-natural hover:bg-muted rounded-xl",
|
|
128
|
-
|
|
134
|
+
focusRingClasses,
|
|
129
135
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
130
136
|
className,
|
|
131
137
|
)}
|