@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.
- package/dist/components/client/index.d.mts +22 -1
- package/dist/components/client/index.d.ts +22 -1
- package/dist/components/client/index.js +5 -0
- package/dist/components/client/index.js.map +1 -1
- package/dist/components/client/index.mjs +4 -1
- package/dist/components/client/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -8
- package/dist/index.d.ts +1 -8
- package/dist/index.js +33 -515
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -464
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -6
- package/src/components/404-page.tsx +1 -1
- package/src/components/client/index.ts +5 -1
- package/src/{lib → components}/site-icon.tsx +1 -1
- package/src/index.ts +1 -3
- package/dist/lib/index.d.mts +0 -24
- package/dist/lib/index.d.ts +0 -24
- package/dist/lib/index.js +0 -1174
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/index.mjs +0 -1167
- package/dist/lib/index.mjs.map +0 -1
- package/src/lib/index.ts +0 -5
- /package/src/{lib → components}/icon-context.tsx +0 -0
@@ -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/
|
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 './
|
6
|
-
export * from './components'; // Only server/universal components
|
7
|
-
export * from './lib';
|
5
|
+
export * from './components'; // Only server/universal components
|
package/dist/lib/index.d.mts
DELETED
@@ -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 };
|
package/dist/lib/index.d.ts
DELETED
@@ -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 };
|