quix-ui 1.1.5 → 1.1.8
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/index.js +43 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/test/Test.d.ts +1 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1361,5 +1361,46 @@ function requireJsxRuntime () {
|
|
|
1361
1361
|
return jsxRuntime.exports;
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
requireJsxRuntime();
|
|
1365
|
-
|
|
1364
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
1365
|
+
|
|
1366
|
+
function ViewContainer(props) {
|
|
1367
|
+
const { display, isScrollable, direction, alignItems, justifyContent, width, height, backgroundColor, paddingX, paddingY, textColor, className, rounded } = props;
|
|
1368
|
+
return jsxRuntimeExports.jsx("div", { className: className, style: {
|
|
1369
|
+
display: display || 'block',
|
|
1370
|
+
overflowY: isScrollable ? 'scroll' : 'hidden',
|
|
1371
|
+
flexDirection: direction || 'row',
|
|
1372
|
+
alignItems: alignItems || 'stretch',
|
|
1373
|
+
justifyContent: justifyContent || 'flex-start',
|
|
1374
|
+
width: width ? `${width}px` : 'auto',
|
|
1375
|
+
height: height ? `${height}px` : 'auto',
|
|
1376
|
+
backgroundColor: backgroundColor || 'transparent',
|
|
1377
|
+
paddingInline: paddingX ? `${paddingX}px` : undefined,
|
|
1378
|
+
paddingBlock: paddingY ? `${paddingY}px` : undefined,
|
|
1379
|
+
color: textColor || 'inherit',
|
|
1380
|
+
borderTopLeftRadius: typeof rounded === 'number' ? rounded : rounded?.topLeft ?? 4,
|
|
1381
|
+
borderTopRightRadius: typeof rounded === 'number' ? rounded : rounded?.topRight ?? 4,
|
|
1382
|
+
borderBottomLeftRadius: typeof rounded === 'number' ? rounded : rounded?.bottomLeft ?? 4,
|
|
1383
|
+
borderBottomRightRadius: typeof rounded === 'number' ? rounded : rounded?.bottomRight ?? 4,
|
|
1384
|
+
}, children: props.children });
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
function Buttons(props) {
|
|
1388
|
+
const { onClick, width, height, label, paddingX, paddingY, backgroundColor, textColor, rounded, className } = props;
|
|
1389
|
+
return jsxRuntimeExports.jsx("button", { className: className, style: {
|
|
1390
|
+
width: width ? `${width}px` : 'auto',
|
|
1391
|
+
height: height ? `${height}px` : 'auto',
|
|
1392
|
+
paddingInline: paddingX ?? 4,
|
|
1393
|
+
paddingBlock: paddingY ?? 4,
|
|
1394
|
+
backgroundColor: backgroundColor || 'transparent',
|
|
1395
|
+
color: textColor || 'inherit',
|
|
1396
|
+
borderTopLeftRadius: typeof rounded === 'number' ? rounded : rounded?.topLeft ?? 4,
|
|
1397
|
+
borderTopRightRadius: typeof rounded === 'number' ? rounded : rounded?.topRight ?? 4,
|
|
1398
|
+
borderBottomLeftRadius: typeof rounded === 'number' ? rounded : rounded?.bottomLeft ?? 4,
|
|
1399
|
+
borderBottomRightRadius: typeof rounded === 'number' ? rounded : rounded?.bottomRight ?? 4,
|
|
1400
|
+
cursor: 'pointer',
|
|
1401
|
+
}, onClick: onClick, children: label });
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
export { Buttons, ViewContainer };
|
|
1405
|
+
Buttons;
|
|
1406
|
+
exports.ViewContainer = ViewContainer;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { default as ViewContainer } from './view/ViewContainer';
|
|
2
|
+
export { default as Buttons } from './components/Buttons/Buttons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Test(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quix-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "This is a react component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
|
-
|
|
18
17
|
"dist"
|
|
19
18
|
],
|
|
20
19
|
"scripts": {
|
|
@@ -81,6 +80,7 @@
|
|
|
81
80
|
"jest": "^30.2.0",
|
|
82
81
|
"jest-environment-jsdom": "^30.2.0",
|
|
83
82
|
"jiti": "^2.6.1",
|
|
83
|
+
"quix-ui": "^1.1.6",
|
|
84
84
|
"react": "^18.3.1",
|
|
85
85
|
"react-dom": "^18.3.1",
|
|
86
86
|
"rimraf": "^6.1.2",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"typescript-eslint": "^8.53.0"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"react": "^
|
|
99
|
-
"react-dom": "^
|
|
98
|
+
"react": "^16",
|
|
99
|
+
"react-dom": "^16"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"fs": "^0.0.1-security"
|