@versini/ui-system 4.0.2 → 4.0.4
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.
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import u from "clsx";
|
|
3
|
+
import { useRef as E, useEffect as l } from "react";
|
|
4
4
|
import { THEMEPROVIDER_CLASSNAME as y } from "../../chunks/constants.Gcd2KXZh.js";
|
|
5
|
-
const
|
|
5
|
+
const P = ({
|
|
6
6
|
customTheme: r,
|
|
7
7
|
children: o,
|
|
8
8
|
global: e,
|
|
9
|
-
className:
|
|
9
|
+
className: f
|
|
10
10
|
}) => {
|
|
11
|
-
const t =
|
|
11
|
+
const t = E(null), c = u(y, "contents", f);
|
|
12
12
|
return l(() => {
|
|
13
13
|
var s;
|
|
14
14
|
const n = e ? document.documentElement.style : (s = t == null ? void 0 : t.current) == null ? void 0 : s.style;
|
|
15
15
|
if (!(!n || !r))
|
|
16
|
-
for (const [
|
|
17
|
-
n.setProperty(
|
|
18
|
-
}, [r, e]),
|
|
16
|
+
for (const [i, p] of Object.entries(r))
|
|
17
|
+
n.setProperty(i, p);
|
|
18
|
+
}, [r, e]), e && !r ? o : /* @__PURE__ */ m("div", { ref: t, className: c, children: o });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
P as ThemeProvider
|
|
22
22
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
2
3
|
|
|
3
4
|
type FlexgridProps = {
|
|
4
5
|
/**
|
|
@@ -131,6 +132,6 @@ type ThemeProviderProps = {
|
|
|
131
132
|
global?: boolean;
|
|
132
133
|
};
|
|
133
134
|
|
|
134
|
-
declare const ThemeProvider: ({ customTheme, children, global, className, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
135
|
+
declare const ThemeProvider: ({ customTheme, children, global, className, }: ThemeProviderProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
135
136
|
|
|
136
137
|
export { Flexgrid, FlexgridItem, ThemeProvider };
|
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { Flexgrid as i } from "./components/Flexgrid/Flexgrid.js";
|
|
|
2
2
|
import { FlexgridItem as t } from "./components/Flexgrid/FlexgridItem.js";
|
|
3
3
|
import { ThemeProvider as I } from "./components/ThemeProvider/ThemeProvider.js";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-system v4.0.
|
|
5
|
+
@versini/ui-system v4.0.4
|
|
6
6
|
© 2025 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
|
|
10
|
-
version: "4.0.
|
|
11
|
-
buildTime: "
|
|
10
|
+
version: "4.0.4",
|
|
11
|
+
buildTime: "06/20/2025 05:21 PM EDT",
|
|
12
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
13
13
|
license: "MIT"
|
|
14
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-system",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-types": "5.0.
|
|
42
|
+
"@versini/ui-types": "5.0.4"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"clsx": "2.1.1",
|
|
46
|
-
"tailwindcss": "4.1.
|
|
46
|
+
"tailwindcss": "4.1.10"
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": [
|
|
49
49
|
"**/*.css"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "2fffae99315244f0662bdecbe45a89bc770f0f15"
|
|
52
52
|
}
|