@windrun-huaiin/base-ui 15.1.0 → 16.0.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/LICENSE +1 -1
- package/README.md +4 -4
- package/dist/components/global-icon.d.ts +22 -1
- package/dist/components/global-icon.js +4 -35
- package/dist/components/global-icon.mjs +5 -36
- package/dist/components/icon-factory.d.ts +15 -0
- package/dist/components/icon-factory.js +39 -0
- package/dist/components/icon-factory.mjs +35 -0
- package/dist/components/language-switcher.d.ts +1 -1
- package/dist/components/language-switcher.js +3 -3
- package/dist/components/language-switcher.mjs +3 -3
- package/dist/components/limited-lucide-icons.d.ts +1 -1
- package/dist/components/limited-lucide-icons.js +84 -0
- package/dist/components/limited-lucide-icons.mjs +1 -1
- package/dist/components/server.d.ts +1 -0
- package/dist/components/server.js +191 -0
- package/dist/components/server.mjs +2 -0
- package/dist/icons/index.d.ts +189 -0
- package/dist/icons/index.js +418 -0
- package/dist/icons/index.mjs +225 -0
- package/dist/ui/button.js +2 -2
- package/dist/ui/button.mjs +2 -2
- package/dist/ui/copyable-text.js +2 -2
- package/dist/ui/copyable-text.mjs +2 -2
- package/dist/ui/dropdown-menu.js +4 -4
- package/dist/ui/dropdown-menu.mjs +4 -4
- package/dist/ui/language-button.js +1 -1
- package/dist/ui/language-button.mjs +1 -1
- package/package.json +8 -3
- package/src/components/global-icon.tsx +7 -65
- package/src/components/icon-factory.tsx +92 -0
- package/src/components/language-switcher.tsx +4 -4
- package/src/components/limited-lucide-icons.ts +21 -0
- package/src/components/server.ts +1 -0
- package/src/icons/index.ts +381 -0
- package/src/ui/button.tsx +2 -2
- package/src/ui/copyable-text.tsx +3 -3
- package/src/ui/dropdown-menu.tsx +4 -4
- package/src/ui/language-button.tsx +1 -1
package/src/ui/dropdown-menu.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from "@base-ui/icons"
|
|
3
4
|
import * as React from "react"
|
|
4
5
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
|
5
|
-
import { globalLucideIcons as icons } from "@base-ui/components/global-icon"
|
|
6
6
|
|
|
7
7
|
import { cn } from "@windrun-huaiin/lib/utils"
|
|
8
8
|
|
|
@@ -34,7 +34,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
|
|
34
34
|
{...props}
|
|
35
35
|
>
|
|
36
36
|
{children}
|
|
37
|
-
<
|
|
37
|
+
<ChevronRightIcon className="ml-auto" />
|
|
38
38
|
</DropdownMenuPrimitive.SubTrigger>
|
|
39
39
|
))
|
|
40
40
|
DropdownMenuSubTrigger.displayName =
|
|
@@ -107,7 +107,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
|
|
|
107
107
|
>
|
|
108
108
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
109
109
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
110
|
-
<
|
|
110
|
+
<CheckIcon className="h-4 w-4" />
|
|
111
111
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
112
112
|
</span>
|
|
113
113
|
{children}
|
|
@@ -130,7 +130,7 @@ const DropdownMenuRadioItem = React.forwardRef<
|
|
|
130
130
|
>
|
|
131
131
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
132
132
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
133
|
-
<
|
|
133
|
+
<CircleIcon className="h-2 w-2 fill-current" />
|
|
134
134
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
135
135
|
</span>
|
|
136
136
|
{children}
|