@yakad/ui 1.3.93 → 1.3.95
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.
|
@@ -22,7 +22,7 @@ const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
|
|
|
22
22
|
const GridItem_module_css_1 = __importDefault(require("./GridItem.module.css"));
|
|
23
23
|
exports.GridItem = (0, react_1.forwardRef)((_a, ref) => {
|
|
24
24
|
var { align, xs, sm, md, lg, xl, className, children } = _a, restProps = __rest(_a, ["align", "xs", "sm", "md", "lg", "xl", "className", "children"]);
|
|
25
|
-
const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, { [GridItem_module_css_1.default[`xs${xs}`]]: xs }, { [GridItem_module_css_1.default[`sm${sm}`]]: sm }, { [GridItem_module_css_1.default[`md${md}`]]: md }, { [GridItem_module_css_1.default[`lg${lg}`]]: lg }, { [GridItem_module_css_1.default[`xl${xl}`]]: xl }, className);
|
|
25
|
+
const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, GridItem_module_css_1.default.gridItem, { [GridItem_module_css_1.default[`xs${xs}`]]: xs }, { [GridItem_module_css_1.default[`sm${sm}`]]: sm }, { [GridItem_module_css_1.default[`md${md}`]]: md }, { [GridItem_module_css_1.default[`lg${lg}`]]: lg }, { [GridItem_module_css_1.default[`xl${xl}`]]: xl }, className);
|
|
26
26
|
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
27
27
|
});
|
|
28
28
|
exports.GridItem.displayName = "GridItem";
|
package/dist/Theme/Theme.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
4
|
var t = {};
|
|
@@ -24,13 +25,10 @@ const Theme_module_css_1 = __importDefault(require("./Theme.module.css"));
|
|
|
24
25
|
exports.Theme = (0, react_1.forwardRef)((_a, ref) => {
|
|
25
26
|
var { align, darkstyle = "system", color = "blue", zoom = 100, className, children } = _a, restProps = __rest(_a, ["align", "darkstyle", "color", "zoom", "className", "children"]);
|
|
26
27
|
const zoomPercentage = zoom ? (zoom / 100) * 62.5 : 62.5;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// zoomPercentage + "%"
|
|
31
|
-
// );
|
|
32
|
-
// }, [zoomPercentage]);
|
|
28
|
+
(0, react_1.useEffect)(() => {
|
|
29
|
+
document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
30
|
+
}, [zoomPercentage]);
|
|
33
31
|
const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, Theme_module_css_1.default.theme, Theme_module_css_1.default[darkstyle], Theme_module_css_1.default[color], className);
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children:
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
35
33
|
});
|
|
36
34
|
exports.Theme.displayName = "Theme";
|