@windrun-huaiin/base-ui 4.1.0 → 4.1.1

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.
@@ -12,4 +12,8 @@ export * from '../language-switcher';
12
12
 
13
13
  // Script Components (All Client-side)
14
14
  export * from '../script/google-analytics-script';
15
- export * from '../script/microsoft-clarity-script';
15
+ export * from '../script/microsoft-clarity-script';
16
+
17
+ // Icon Configuration
18
+ export { IconConfigProvider, type IconConfig } from '../icon-context';
19
+ export { SiteIcon } from '../site-icon';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { type LucideProps } from 'lucide-react';
4
4
  import { cn } from '@lib/utils';
5
- import { useIconConfigSafe } from '@base-ui/lib/icon-context';
5
+ import { useIconConfigSafe } from '@base-ui/components/icon-context';
6
6
  import { globalLucideIcons } from '@base-ui/components/global-icon';
7
7
  import { themeIconColor } from '@base-ui/lib/theme-util';
8
8
 
package/src/index.ts CHANGED
@@ -2,6 +2,4 @@
2
2
  // ⚠️ IMPORTANT: Client components are NOT exported here to avoid server component contamination
3
3
  // For client components, use: import { ... } from '@base-ui/components/client'
4
4
 
5
- export * from './ui';
6
- export * from './components'; // Only server/universal components
7
- export * from './lib';
5
+ export * from './components'; // Only server/universal components
@@ -1,24 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ComponentType, ReactNode } from 'react';
3
- import { LucideProps } from 'lucide-react';
4
-
5
- interface IconConfig {
6
- siteIcon?: ComponentType | string;
7
- }
8
- interface IconConfigProviderProps {
9
- config: IconConfig;
10
- children: ReactNode;
11
- }
12
- /**
13
- * IconConfigProvider - icon config provider based on React Context
14
- * directly store the config value, without depending on module state
15
- */
16
- declare function IconConfigProvider({ config, children }: IconConfigProviderProps): react_jsx_runtime.JSX.Element;
17
-
18
- /**
19
- * site icon component - client component
20
- * based on React Context to get the config, solve the problem of cross-package module instance isolation
21
- */
22
- declare function SiteIcon({ size, className, ...props }: Omit<LucideProps, 'children'>): react_jsx_runtime.JSX.Element;
23
-
24
- export { type IconConfig, IconConfigProvider, SiteIcon };
@@ -1,24 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ComponentType, ReactNode } from 'react';
3
- import { LucideProps } from 'lucide-react';
4
-
5
- interface IconConfig {
6
- siteIcon?: ComponentType | string;
7
- }
8
- interface IconConfigProviderProps {
9
- config: IconConfig;
10
- children: ReactNode;
11
- }
12
- /**
13
- * IconConfigProvider - icon config provider based on React Context
14
- * directly store the config value, without depending on module state
15
- */
16
- declare function IconConfigProvider({ config, children }: IconConfigProviderProps): react_jsx_runtime.JSX.Element;
17
-
18
- /**
19
- * site icon component - client component
20
- * based on React Context to get the config, solve the problem of cross-package module instance isolation
21
- */
22
- declare function SiteIcon({ size, className, ...props }: Omit<LucideProps, 'children'>): react_jsx_runtime.JSX.Element;
23
-
24
- export { type IconConfig, IconConfigProvider, SiteIcon };