@windrun-huaiin/base-ui 3.2.4 → 3.3.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/dist/components/client/index.d.mts +46 -0
- package/dist/components/client/index.d.ts +46 -0
- package/dist/components/client/index.js +1822 -0
- package/dist/components/client/index.js.map +1 -0
- package/dist/components/client/index.mjs +1866 -0
- package/dist/components/client/index.mjs.map +1 -0
- package/dist/components/index.d.mts +1 -44
- package/dist/components/index.d.ts +1 -44
- package/dist/components/index.js +4 -571
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -564
- package/dist/components/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -318
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -312
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +0 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/ui/index.js +0 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +0 -1
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +11 -5
- package/src/components/404-page.tsx +1 -1
- package/src/components/client/index.ts +15 -0
- package/src/components/global-icon.tsx +1 -1
- package/src/components/index.ts +15 -8
- package/src/index.ts +4 -1
@@ -0,0 +1,46 @@
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
|
3
|
+
declare function NotFoundPage(): react_jsx_runtime.JSX.Element;
|
4
|
+
|
5
|
+
type I18nConfig = {
|
6
|
+
locales: readonly string[];
|
7
|
+
detector: {
|
8
|
+
storagePrefix: string;
|
9
|
+
storageKey: string;
|
10
|
+
autoCloseTimeout: number;
|
11
|
+
expirationDays: number;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
interface LanguageDetectorProps {
|
15
|
+
i18nConfig: I18nConfig;
|
16
|
+
}
|
17
|
+
declare function LanguageDetector({ i18nConfig }: LanguageDetectorProps): react_jsx_runtime.JSX.Element | null;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* @license
|
21
|
+
* MIT License
|
22
|
+
* Copyright (c) 2025 D8ger
|
23
|
+
*
|
24
|
+
* This source code is licensed under the MIT license found in the
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
26
|
+
*/
|
27
|
+
interface LanguageSwitcherProps {
|
28
|
+
locales: readonly string[];
|
29
|
+
localeLabels: Record<string, string>;
|
30
|
+
}
|
31
|
+
declare function LanguageSwitcher({ locales, localeLabels }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element;
|
32
|
+
|
33
|
+
declare function GoogleAnalyticsScript(): react_jsx_runtime.JSX.Element | null;
|
34
|
+
declare function useGoogleAnalytics(): {
|
35
|
+
trackEvent: (event: string, data?: Record<string, unknown>) => void;
|
36
|
+
};
|
37
|
+
declare global {
|
38
|
+
interface Window {
|
39
|
+
dataLayer: any[];
|
40
|
+
gtag: (...args: any[]) => void;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
|
45
|
+
|
46
|
+
export { GoogleAnalyticsScript, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, useGoogleAnalytics };
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
|
3
|
+
declare function NotFoundPage(): react_jsx_runtime.JSX.Element;
|
4
|
+
|
5
|
+
type I18nConfig = {
|
6
|
+
locales: readonly string[];
|
7
|
+
detector: {
|
8
|
+
storagePrefix: string;
|
9
|
+
storageKey: string;
|
10
|
+
autoCloseTimeout: number;
|
11
|
+
expirationDays: number;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
interface LanguageDetectorProps {
|
15
|
+
i18nConfig: I18nConfig;
|
16
|
+
}
|
17
|
+
declare function LanguageDetector({ i18nConfig }: LanguageDetectorProps): react_jsx_runtime.JSX.Element | null;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* @license
|
21
|
+
* MIT License
|
22
|
+
* Copyright (c) 2025 D8ger
|
23
|
+
*
|
24
|
+
* This source code is licensed under the MIT license found in the
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
26
|
+
*/
|
27
|
+
interface LanguageSwitcherProps {
|
28
|
+
locales: readonly string[];
|
29
|
+
localeLabels: Record<string, string>;
|
30
|
+
}
|
31
|
+
declare function LanguageSwitcher({ locales, localeLabels }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element;
|
32
|
+
|
33
|
+
declare function GoogleAnalyticsScript(): react_jsx_runtime.JSX.Element | null;
|
34
|
+
declare function useGoogleAnalytics(): {
|
35
|
+
trackEvent: (event: string, data?: Record<string, unknown>) => void;
|
36
|
+
};
|
37
|
+
declare global {
|
38
|
+
interface Window {
|
39
|
+
dataLayer: any[];
|
40
|
+
gtag: (...args: any[]) => void;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
|
45
|
+
|
46
|
+
export { GoogleAnalyticsScript, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, useGoogleAnalytics };
|