quix-ui 1.1.5 → 1.1.6

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 CHANGED
@@ -1,4 +1,6 @@
1
- import require$$0 from 'react';
1
+ 'use strict';
2
+
3
+ var require$$0 = require('react');
2
4
 
3
5
  var jsxRuntime = {exports: {}};
4
6
 
@@ -1361,5 +1363,45 @@ function requireJsxRuntime () {
1361
1363
  return jsxRuntime.exports;
1362
1364
  }
1363
1365
 
1364
- requireJsxRuntime();
1365
- uireJsxRuntime();
1366
+ var jsxRuntimeExports = requireJsxRuntime();
1367
+
1368
+ function ViewContainer(props) {
1369
+ const { display, isScrollable, direction, alignItems, justifyContent, width, height, backgroundColor, paddingX, paddingY, textColor, className, rounded } = props;
1370
+ return jsxRuntimeExports.jsx("div", { className: className, style: {
1371
+ display: display || 'block',
1372
+ overflowY: isScrollable ? 'scroll' : 'hidden',
1373
+ flexDirection: direction || 'row',
1374
+ alignItems: alignItems || 'stretch',
1375
+ justifyContent: justifyContent || 'flex-start',
1376
+ width: width ? `${width}px` : 'auto',
1377
+ height: height ? `${height}px` : 'auto',
1378
+ backgroundColor: backgroundColor || 'transparent',
1379
+ paddingInline: paddingX ? `${paddingX}px` : undefined,
1380
+ paddingBlock: paddingY ? `${paddingY}px` : undefined,
1381
+ color: textColor || 'inherit',
1382
+ borderTopLeftRadius: typeof rounded === 'number' ? rounded : rounded?.topLeft ?? 4,
1383
+ borderTopRightRadius: typeof rounded === 'number' ? rounded : rounded?.topRight ?? 4,
1384
+ borderBottomLeftRadius: typeof rounded === 'number' ? rounded : rounded?.bottomLeft ?? 4,
1385
+ borderBottomRightRadius: typeof rounded === 'number' ? rounded : rounded?.bottomRight ?? 4,
1386
+ }, children: props.children });
1387
+ }
1388
+
1389
+ function Buttons(props) {
1390
+ const { onClick, width, height, label, paddingX, paddingY, backgroundColor, textColor, rounded, className } = props;
1391
+ return jsxRuntimeExports.jsx("button", { className: className, style: {
1392
+ width: width ? `${width}px` : 'auto',
1393
+ height: height ? `${height}px` : 'auto',
1394
+ paddingInline: paddingX ?? 4,
1395
+ paddingBlock: paddingY ?? 4,
1396
+ backgroundColor: backgroundColor || 'transparent',
1397
+ color: textColor || 'inherit',
1398
+ borderTopLeftRadius: typeof rounded === 'number' ? rounded : rounded?.topLeft ?? 4,
1399
+ borderTopRightRadius: typeof rounded === 'number' ? rounded : rounded?.topRight ?? 4,
1400
+ borderBottomLeftRadius: typeof rounded === 'number' ? rounded : rounded?.bottomLeft ?? 4,
1401
+ borderBottomRightRadius: typeof rounded === 'number' ? rounded : rounded?.bottomRight ?? 4,
1402
+ cursor: 'pointer',
1403
+ }, onClick: onClick, children: label });
1404
+ }
1405
+
1406
+ exports.Buttons = Buttons;
1407
+ exports.ViewContainer = ViewContainer;
@@ -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.5",
3
+ "version": "1.1.6",
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": {
@@ -95,10 +94,11 @@
95
94
  "typescript-eslint": "^8.53.0"
96
95
  },
97
96
  "peerDependencies": {
98
- "react": "^18.3.1",
99
- "react-dom": "^18.3.1"
97
+ "react": "^16",
98
+ "react-dom": "^16"
100
99
  },
101
100
  "dependencies": {
102
- "fs": "^0.0.1-security"
101
+ "fs": "^0.0.1-security",
102
+ "quix-ui": "^1.1.5"
103
103
  }
104
104
  }