@yakad/ui 1.3.94 → 1.3.96
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.d.ts
CHANGED
package/dist/Theme/Theme.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
"use strict";
|
|
3
2
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
4
3
|
var t = {};
|
|
@@ -19,16 +18,15 @@ exports.Theme = void 0;
|
|
|
19
18
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
20
19
|
const react_1 = require("react");
|
|
21
20
|
const classnames_1 = __importDefault(require("classnames"));
|
|
22
|
-
require("./
|
|
21
|
+
const theme_module_css_1 = __importDefault(require("./theme.module.css"));
|
|
23
22
|
const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
|
|
24
|
-
const Theme_module_css_1 = __importDefault(require("./Theme.module.css"));
|
|
25
23
|
exports.Theme = (0, react_1.forwardRef)((_a, ref) => {
|
|
26
24
|
var { align, darkstyle = "system", color = "blue", zoom = 100, className, children } = _a, restProps = __rest(_a, ["align", "darkstyle", "color", "zoom", "className", "children"]);
|
|
27
25
|
const zoomPercentage = zoom ? (zoom / 100) * 62.5 : 62.5;
|
|
28
26
|
(0, react_1.useEffect)(() => {
|
|
29
27
|
document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
30
28
|
}, [zoomPercentage]);
|
|
31
|
-
const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align },
|
|
29
|
+
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);
|
|
32
30
|
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
33
31
|
});
|
|
34
32
|
exports.Theme.displayName = "Theme";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
require("./globals.css");
|
|
17
18
|
// Layout & Structure
|
|
18
19
|
__exportStar(require("./Screen/Screen"), exports);
|
|
19
20
|
__exportStar(require("./AppBar/AppBar"), exports);
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yakad/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.96",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Natiq",
|
|
6
6
|
"description": "UI components for NextJS/React",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"dist/globals.css"
|
|
11
|
+
],
|
|
9
12
|
"keywords": [
|
|
10
13
|
"yakad",
|
|
11
14
|
"react",
|
|
File without changes
|