@yakad/ui 1.3.99 → 1.3.100
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/AppBar/AppBar.js +14 -20
- package/dist/Button/Button.js +11 -17
- package/dist/Card/Card.js +9 -15
- package/dist/CheckBox/CheckBox.js +9 -15
- package/dist/ClickOutsideListener/ClickOutsideListener.js +6 -10
- package/dist/CodeBox/CodeBox.js +10 -16
- package/dist/CodeField/CodeField.js +8 -14
- package/dist/Container/Container.js +9 -15
- package/dist/Display/Display.js +8 -14
- package/dist/Footer/Footer.js +12 -18
- package/dist/Form/Form.js +9 -15
- package/dist/GridContainer/GridContainer.js +8 -14
- package/dist/GridItem/GridItem.js +9 -15
- package/dist/Hr/Hr.js +8 -14
- package/dist/InputField/InputField.js +8 -14
- package/dist/List/List.js +8 -14
- package/dist/ListItem/ListItem.js +8 -14
- package/dist/LoadingIcon/LoadingIcon.js +8 -14
- package/dist/Main/Main.js +9 -15
- package/dist/Navigation/Navigation.js +10 -16
- package/dist/RadioButton/RadioButton.js +12 -18
- package/dist/RadioGroup/RadioGroup.js +9 -12
- package/dist/Row/Row.js +9 -15
- package/dist/Screen/Screen.js +9 -15
- package/dist/Select/Select.js +9 -15
- package/dist/Spacer/Spacer.js +8 -14
- package/dist/Stack/Stack.js +9 -15
- package/dist/SvgIcon/SvgIcon.js +8 -14
- package/dist/Table/Table.js +32 -38
- package/dist/Text/Text.js +40 -46
- package/dist/Theme/Theme.js +11 -17
- package/dist/index.js +31 -47
- package/package.json +3 -4
package/dist/Text/Text.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
2
|
var t = {};
|
|
4
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -10,66 +9,61 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
9
|
}
|
|
11
10
|
return t;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
const react_1 = require("react");
|
|
20
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
21
|
-
const Text_module_css_1 = __importDefault(require("./Text.module.css"));
|
|
22
|
-
exports.H1 = (0, react_1.forwardRef)((_a, ref) => {
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef } from "react";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
import styles from "./Text.module.css";
|
|
16
|
+
export const H1 = forwardRef((_a, ref) => {
|
|
23
17
|
var { variant = "heading1", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
24
|
-
const joinedClassNames = (
|
|
25
|
-
return ((
|
|
18
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
19
|
+
return (_jsx("h1", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
26
20
|
});
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
H1.displayName = "H1";
|
|
22
|
+
export const H2 = forwardRef((_a, ref) => {
|
|
29
23
|
var { variant = "heading2", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
30
|
-
const joinedClassNames = (
|
|
31
|
-
return ((
|
|
24
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
25
|
+
return (_jsx("h2", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
32
26
|
});
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
H2.displayName = "H2";
|
|
28
|
+
export const H3 = forwardRef((_a, ref) => {
|
|
35
29
|
var { variant = "heading3", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
36
|
-
const joinedClassNames = (
|
|
37
|
-
return ((
|
|
30
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
31
|
+
return (_jsx("h3", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
38
32
|
});
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
H3.displayName = "H3";
|
|
34
|
+
export const H4 = forwardRef((_a, ref) => {
|
|
41
35
|
var { variant = "heading4", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
42
|
-
const joinedClassNames = (
|
|
43
|
-
return ((
|
|
36
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
37
|
+
return (_jsx("h4", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
44
38
|
});
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
H4.displayName = "H4";
|
|
40
|
+
export const H5 = forwardRef((_a, ref) => {
|
|
47
41
|
var { variant = "heading5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
48
|
-
const joinedClassNames = (
|
|
49
|
-
return ((
|
|
42
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
43
|
+
return (_jsx("h5", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
50
44
|
});
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
H5.displayName = "H5";
|
|
46
|
+
export const H6 = forwardRef((_a, ref) => {
|
|
53
47
|
var { variant = "heading6", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
54
|
-
const joinedClassNames = (
|
|
55
|
-
return ((
|
|
48
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
49
|
+
return (_jsx("h6", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
56
50
|
});
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
H6.displayName = "H6";
|
|
52
|
+
export const P = forwardRef((_a, ref) => {
|
|
59
53
|
var { variant = "body5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
60
|
-
const joinedClassNames = (
|
|
61
|
-
return ((
|
|
54
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
55
|
+
return (_jsx("p", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
62
56
|
});
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
P.displayName = "P";
|
|
58
|
+
export const Span = forwardRef((_a, ref) => {
|
|
65
59
|
var { variant = "span", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
66
|
-
const joinedClassNames = (
|
|
67
|
-
return ((
|
|
60
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
61
|
+
return (_jsx("span", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
68
62
|
});
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
Span.displayName = "Span";
|
|
64
|
+
export const Text = forwardRef((_a, ref) => {
|
|
71
65
|
var { variant = "body5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
72
|
-
const joinedClassNames = (
|
|
73
|
-
return ((
|
|
66
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
67
|
+
return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
74
68
|
});
|
|
75
|
-
|
|
69
|
+
Text.displayName = "Text";
|
package/dist/Theme/Theme.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
2
|
var t = {};
|
|
4
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -10,24 +9,19 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
9
|
}
|
|
11
10
|
return t;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
21
|
-
require("./globals.css");
|
|
22
|
-
const Theme_module_css_1 = __importDefault(require("./Theme.module.css"));
|
|
23
|
-
const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
|
|
24
|
-
exports.Theme = (0, react_1.forwardRef)((_a, ref) => {
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef, useEffect } from "react";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
import "./globals.css";
|
|
16
|
+
import styles from "./Theme.module.css";
|
|
17
|
+
import boxingStyles from "../boxing.module.css";
|
|
18
|
+
export const Theme = forwardRef((_a, ref) => {
|
|
25
19
|
var { align, darkstyle = "system", color = "blue", zoom = 100, className, children } = _a, restProps = __rest(_a, ["align", "darkstyle", "color", "zoom", "className", "children"]);
|
|
26
20
|
const zoomPercentage = zoom ? (zoom / 100) * 62.5 : 62.5;
|
|
27
|
-
|
|
21
|
+
useEffect(() => {
|
|
28
22
|
document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
29
23
|
}, [zoomPercentage]);
|
|
30
|
-
const joinedClassNames = (
|
|
31
|
-
return ((
|
|
24
|
+
const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.theme, styles[darkstyle], styles[color], className);
|
|
25
|
+
return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
32
26
|
});
|
|
33
|
-
|
|
27
|
+
Theme.displayName = "Theme";
|
package/dist/index.js
CHANGED
|
@@ -1,53 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// import "./globals.css";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
2
|
// Layout & Structure
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
export * from "./Screen/Screen";
|
|
4
|
+
export * from "./AppBar/AppBar";
|
|
5
|
+
export * from "./Main/Main";
|
|
6
|
+
export * from "./Footer/Footer";
|
|
7
|
+
export * from "./Navigation/Navigation";
|
|
8
|
+
export * from "./Container/Container";
|
|
9
|
+
export * from "./Stack/Stack";
|
|
10
|
+
export * from "./Row/Row";
|
|
11
|
+
export * from "./GridContainer/GridContainer";
|
|
12
|
+
export * from "./GridItem/GridItem";
|
|
13
|
+
export * from "./Card/Card";
|
|
30
14
|
// Theme & Styling
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export * from "./Theme/Theme";
|
|
16
|
+
export * from "./Spacer/Spacer";
|
|
17
|
+
export * from "./Hr/Hr";
|
|
34
18
|
// UI Components
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
19
|
+
export * from "./List/List";
|
|
20
|
+
export * from "./ListItem/ListItem";
|
|
21
|
+
export * from "./Table/Table";
|
|
22
|
+
export * from "./Button/Button";
|
|
23
|
+
export * from "./LoadingIcon/LoadingIcon";
|
|
24
|
+
export * from "./SvgIcon/SvgIcon";
|
|
25
|
+
export * from "./Text/Text";
|
|
42
26
|
// Form Components
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
27
|
+
export * from "./Form/Form";
|
|
28
|
+
export * from "./InputField/InputField";
|
|
29
|
+
export * from "./Select/Select";
|
|
30
|
+
export * from "./CheckBox/CheckBox";
|
|
31
|
+
export * from "./CodeField/CodeField";
|
|
32
|
+
export * from "./RadioGroup/RadioGroup";
|
|
33
|
+
export * from "./RadioButton/RadioButton";
|
|
34
|
+
export * from "./CodeBox/CodeBox";
|
|
51
35
|
// Utilities
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
export * from "./Display/Display";
|
|
37
|
+
export * from "./ClickOutsideListener/ClickOutsideListener";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yakad/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.100",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Natiq",
|
|
6
6
|
"description": "UI components for NextJS/React",
|
|
@@ -31,11 +31,10 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit",
|
|
32
32
|
"lint": "eslint src/**/*.{ts,tsx}",
|
|
33
33
|
"test": "echo \"No tests specified\" && exit 0",
|
|
34
|
-
"
|
|
35
|
-
"prepublishOnly": "npm run i:symbols && npm run build && npm run test && npm run lint && npm run typecheck && npm version patch"
|
|
34
|
+
"prepublishOnly": "npm run build && npm run test && npm run lint && npm run typecheck && npm version patch"
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
38
|
-
"@yakad/symbols": "
|
|
37
|
+
"@yakad/symbols": "1.0.25",
|
|
39
38
|
"classnames": "2.5.1"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|