@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.
Files changed (39) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -4
  3. package/dist/components/global-icon.d.ts +22 -1
  4. package/dist/components/global-icon.js +4 -35
  5. package/dist/components/global-icon.mjs +5 -36
  6. package/dist/components/icon-factory.d.ts +15 -0
  7. package/dist/components/icon-factory.js +39 -0
  8. package/dist/components/icon-factory.mjs +35 -0
  9. package/dist/components/language-switcher.d.ts +1 -1
  10. package/dist/components/language-switcher.js +3 -3
  11. package/dist/components/language-switcher.mjs +3 -3
  12. package/dist/components/limited-lucide-icons.d.ts +1 -1
  13. package/dist/components/limited-lucide-icons.js +84 -0
  14. package/dist/components/limited-lucide-icons.mjs +1 -1
  15. package/dist/components/server.d.ts +1 -0
  16. package/dist/components/server.js +191 -0
  17. package/dist/components/server.mjs +2 -0
  18. package/dist/icons/index.d.ts +189 -0
  19. package/dist/icons/index.js +418 -0
  20. package/dist/icons/index.mjs +225 -0
  21. package/dist/ui/button.js +2 -2
  22. package/dist/ui/button.mjs +2 -2
  23. package/dist/ui/copyable-text.js +2 -2
  24. package/dist/ui/copyable-text.mjs +2 -2
  25. package/dist/ui/dropdown-menu.js +4 -4
  26. package/dist/ui/dropdown-menu.mjs +4 -4
  27. package/dist/ui/language-button.js +1 -1
  28. package/dist/ui/language-button.mjs +1 -1
  29. package/package.json +8 -3
  30. package/src/components/global-icon.tsx +7 -65
  31. package/src/components/icon-factory.tsx +92 -0
  32. package/src/components/language-switcher.tsx +4 -4
  33. package/src/components/limited-lucide-icons.ts +21 -0
  34. package/src/components/server.ts +1 -0
  35. package/src/icons/index.ts +381 -0
  36. package/src/ui/button.tsx +2 -2
  37. package/src/ui/copyable-text.tsx +3 -3
  38. package/src/ui/dropdown-menu.tsx +4 -4
  39. package/src/ui/language-button.tsx +1 -1
@@ -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
- <icons.ChevronRight className="ml-auto" />
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
- <icons.Check className="h-4 w-4" />
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
- <icons.Circle className="h-2 w-2 fill-current" />
133
+ <CircleIcon className="h-2 w-2 fill-current" />
134
134
  </DropdownMenuPrimitive.ItemIndicator>
135
135
  </span>
136
136
  {children}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * MIT License
4
- * Copyright (c) 2025 D8ger
4
+ * Copyright (c) 2026 D8ger
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.