hiver-ui-kit-extended 1.0.0-beta.2
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/README.md +73 -0
- package/dist/env.hui.d.ts +205 -0
- package/dist/env.hui.js +297 -0
- package/dist/env.hui.js.map +1 -0
- package/dist/env.prime.d.ts +221 -0
- package/dist/env.prime.js +3643 -0
- package/dist/env.prime.js.map +1 -0
- package/dist/hiver-ui-kit-extended.css +1438 -0
- package/dist/providers.hui.d.ts +38 -0
- package/dist/providers.hui.js +17 -0
- package/dist/providers.hui.js.map +1 -0
- package/dist/providers.prime.d.ts +1776 -0
- package/dist/providers.prime.js +18 -0
- package/dist/providers.prime.js.map +1 -0
- package/dist/themes.hui.d.ts +11 -0
- package/dist/themes.hui.js +12 -0
- package/dist/themes.hui.js.map +1 -0
- package/dist/themes.prime.d.ts +880 -0
- package/dist/themes.prime.js +879 -0
- package/dist/themes.prime.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const HUITheme: {
|
|
5
|
+
palette: {
|
|
6
|
+
primary: {
|
|
7
|
+
main: string;
|
|
8
|
+
light: string;
|
|
9
|
+
dark: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* HUI Theme Provider
|
|
16
|
+
* Wraps the app and provides the HUI theme via context
|
|
17
|
+
*/
|
|
18
|
+
export declare function HUIThemeProvider({ children, theme, }: HUIThemeProviderProps): JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare interface HUIThemeProviderProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
theme?: typeof HUITheme;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Hook to access the HUI theme
|
|
27
|
+
*/
|
|
28
|
+
export declare function useHUITheme(): {
|
|
29
|
+
palette: {
|
|
30
|
+
primary: {
|
|
31
|
+
main: string;
|
|
32
|
+
light: string;
|
|
33
|
+
dark: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
import { HUITheme } from './themes.hui.js';
|
|
4
|
+
|
|
5
|
+
const HUIThemeContext = createContext(HUITheme);
|
|
6
|
+
function useHUITheme() {
|
|
7
|
+
return useContext(HUIThemeContext);
|
|
8
|
+
}
|
|
9
|
+
function HUIThemeProvider({
|
|
10
|
+
children,
|
|
11
|
+
theme = HUITheme
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsx(HUIThemeContext.Provider, { value: theme, children });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { HUIThemeProvider, useHUITheme };
|
|
17
|
+
//# sourceMappingURL=providers.hui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.hui.js","sources":["../src/providers/HUIThemeProvider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { createContext, useContext } from 'react';\nimport HUITheme from '@/themes/hui';\n\ninterface HUIThemeProviderProps {\n children: ReactNode;\n theme?: typeof HUITheme;\n}\n\n// Create a context to store the HUI theme\nconst HUIThemeContext = createContext<typeof HUITheme>(HUITheme);\n\n/**\n * Hook to access the HUI theme\n */\nexport function useHUITheme() {\n return useContext(HUIThemeContext);\n}\n\n/**\n * HUI Theme Provider\n * Wraps the app and provides the HUI theme via context\n */\nexport function HUIThemeProvider({\n children,\n theme = HUITheme,\n}: HUIThemeProviderProps) {\n return (\n <HUIThemeContext.Provider value={theme}>\n {children}\n </HUIThemeContext.Provider>\n );\n}\n\n"],"names":[],"mappings":";;;;AAUA,MAAM,eAAA,GAAkB,cAA+B,QAAQ,CAAA;AAKxD,SAAS,WAAA,GAAc;AAC5B,EAAA,OAAO,WAAW,eAAe,CAAA;AACnC;AAMO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,QAAA;AAAA,EACA,KAAA,GAAQ;AACV,CAAA,EAA0B;AACxB,EAAA,2BACG,eAAA,CAAgB,QAAA,EAAhB,EAAyB,KAAA,EAAO,OAC9B,QAAA,EACH,CAAA;AAEJ;;;;"}
|