@aristobyte-ui/utils 2.17.2 → 2.17.3

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.
@@ -1,2 +1,3 @@
1
- import * as React from "react";
2
- export declare const ArrowLeft: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { IconPropsType } from './type';
3
+ export declare const ArrowLeft: ({ size, color }: IconPropsType) => React.JSX.Element;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,10 +35,11 @@ var __importStar = (this && this.__importStar) || (function () {
46
35
  Object.defineProperty(exports, "__esModule", { value: true });
47
36
  exports.ArrowLeft = void 0;
48
37
  var React = __importStar(require("react"));
49
- var ArrowLeft = function (props) {
38
+ var ArrowLeft = function (_a) {
39
+ var _b = _a.size, size = _b === void 0 ? 24 : _b, _c = _a.color, color = _c === void 0 ? 'currentColor' : _c;
50
40
  var uid = React.useId();
51
41
  var svgId = "".concat(uid, "-icon-arrow-left");
52
- return (React.createElement("svg", __assign({ id: svgId, xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "lucide lucide-chevron-left-icon lucide-chevron-left" }, props),
42
+ return (React.createElement("svg", { id: svgId, xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "lucide lucide-chevron-left-icon lucide-chevron-left" },
53
43
  React.createElement("path", { d: "m15 18-6-6 6-6" })));
54
44
  };
55
45
  exports.ArrowLeft = ArrowLeft;
@@ -1,2 +1,3 @@
1
- import * as React from "react";
2
- export declare const Dna: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { IconPropsType } from './type';
3
+ export declare const Dna: ({ size }: IconPropsType) => React.JSX.Element;
package/lib/icons/Dna.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,13 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
46
35
  Object.defineProperty(exports, "__esModule", { value: true });
47
36
  exports.Dna = void 0;
48
37
  var React = __importStar(require("react"));
49
- var Dna = function (props) {
38
+ var Dna = function (_a) {
39
+ var _b = _a.size, size = _b === void 0 ? 24 : _b;
50
40
  var uid = React.useId();
51
41
  var svgId = "".concat(uid, "-icon-dna");
52
42
  var primaryGradientId = "".concat(uid, "-dna-primary-gradient");
53
43
  var secondaryGradientId = "".concat(uid, "-dna-secondary-gradient");
54
44
  var tertiaryGradientId = "".concat(uid, "-dna-tertiary-gradient");
55
- return (React.createElement("svg", __assign({ id: svgId, "data-name": "Layer-1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", viewBox: "0 0 24 24" }, props),
45
+ return (React.createElement("svg", { id: svgId, "data-name": "Layer-1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", viewBox: "0 0 24 24", width: size, height: size },
56
46
  React.createElement("defs", null,
57
47
  React.createElement("linearGradient", { id: primaryGradientId, "data-name": "Orange, yellow", x1: "11.2", y1: "5", x2: "18", y2: "5", gradientUnits: "userSpaceOnUse" },
58
48
  React.createElement("stop", { offset: "0", stopColor: "#fff23a" }),
@@ -1,2 +1,3 @@
1
- import * as React from "react";
2
- export declare const Plug: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { IconPropsType } from './type';
3
+ export declare const Plug: ({ size }: IconPropsType) => React.JSX.Element;
package/lib/icons/Plug.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,11 +35,12 @@ var __importStar = (this && this.__importStar) || (function () {
46
35
  Object.defineProperty(exports, "__esModule", { value: true });
47
36
  exports.Plug = void 0;
48
37
  var React = __importStar(require("react"));
49
- var Plug = function (props) {
38
+ var Plug = function (_a) {
39
+ var _b = _a.size, size = _b === void 0 ? 24 : _b;
50
40
  var uid = React.useId();
51
41
  var svgId = "".concat(uid, "-icon-plug");
52
42
  var primaryGradientId = "".concat(uid, "-plug-primary-gradient");
53
- return (React.createElement("svg", __assign({ id: svgId, "data-name": "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", viewBox: "0 0 24 24" }, props),
43
+ return (React.createElement("svg", { id: svgId, "data-name": "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", viewBox: "0 0 24 24", width: size, height: size },
54
44
  React.createElement("defs", null,
55
45
  React.createElement("linearGradient", { id: primaryGradientId, "data-name": "Orange, yellow", x1: "5", y1: "12", x2: "19", y2: "12", gradientUnits: "userSpaceOnUse" },
56
46
  React.createElement("stop", { offset: "0", stopColor: "#fff23a" }),
@@ -1,2 +1,3 @@
1
- import * as React from "react";
2
- export declare const Puzzle: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { IconPropsType } from './type';
3
+ export declare const Puzzle: ({ size }: IconPropsType) => React.JSX.Element;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,11 +35,12 @@ var __importStar = (this && this.__importStar) || (function () {
46
35
  Object.defineProperty(exports, "__esModule", { value: true });
47
36
  exports.Puzzle = void 0;
48
37
  var React = __importStar(require("react"));
49
- var Puzzle = function (props) {
38
+ var Puzzle = function (_a) {
39
+ var _b = _a.size, size = _b === void 0 ? 24 : _b;
50
40
  var uid = React.useId();
51
41
  var svgId = "".concat(uid, "-icon-puzzle");
52
42
  var primaryGradientId = "".concat(uid, "-puzzle-primary-gradient");
53
- return (React.createElement("svg", __assign({ id: svgId, "data-name": "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", viewBox: "0 0 24 24" }, props),
43
+ return (React.createElement("svg", { id: svgId, "data-name": "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", viewBox: "0 0 24 24", width: size, height: size },
54
44
  React.createElement("defs", null,
55
45
  React.createElement("linearGradient", { id: primaryGradientId, "data-name": "Orange, yellow", x1: "1", y1: "12", x2: "23", y2: "12", gradientUnits: "userSpaceOnUse" },
56
46
  React.createElement("stop", { offset: "0", stopColor: "#fff23a" }),
@@ -1,2 +1,3 @@
1
- import * as React from "react";
2
- export declare const Zap: (props: React.SVGProps<SVGSVGElement>) => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { IconPropsType } from './type';
3
+ export declare const Zap: ({ size }: IconPropsType) => React.JSX.Element;
package/lib/icons/Zap.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -46,11 +35,12 @@ var __importStar = (this && this.__importStar) || (function () {
46
35
  Object.defineProperty(exports, "__esModule", { value: true });
47
36
  exports.Zap = void 0;
48
37
  var React = __importStar(require("react"));
49
- var Zap = function (props) {
38
+ var Zap = function (_a) {
39
+ var _b = _a.size, size = _b === void 0 ? 24 : _b;
50
40
  var uid = React.useId();
51
41
  var svgId = "".concat(uid, "-icon-zap");
52
42
  var primaryGradientId = "".concat(uid, "-zap-primary-gradient");
53
- return (React.createElement("svg", __assign({ id: svgId, "data-name": "Layer 1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 20.01 22.01" }, props),
43
+ return (React.createElement("svg", { id: svgId, "data-name": "Layer 1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 20.01 22.01", width: size, height: size },
54
44
  React.createElement("defs", null,
55
45
  React.createElement("linearGradient", { id: primaryGradientId, "data-name": "Orange, yellow", x1: "0", y1: "11", x2: "20.01", y2: "11", gradientUnits: "userSpaceOnUse" },
56
46
  React.createElement("stop", { offset: "0", stopColor: "#fff23a" }),
@@ -4,7 +4,7 @@ export declare const Icons: {
4
4
  AristoRepo: ({ size: size }: import("./type").IconPropsType) => import("react").JSX.Element;
5
5
  AristoByteUI: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
6
6
  AristoByteUICLI: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
7
- ArrowLeft: (props: React.SVGProps<SVGSVGElement>) => import("react").JSX.Element;
7
+ ArrowLeft: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
8
8
  ArrowRight: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
9
9
  BashCursor: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
10
10
  Branching: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
@@ -15,7 +15,7 @@ export declare const Icons: {
15
15
  Comment: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
16
16
  Components: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
17
17
  Disabled: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
18
- Dna: (props: React.SVGProps<SVGSVGElement>) => import("react").JSX.Element;
18
+ Dna: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
19
19
  Dot: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
20
20
  Eye: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
21
21
  Error: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
@@ -35,9 +35,9 @@ export declare const Icons: {
35
35
  Palette: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
36
36
  PaperCode: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
37
37
  Play: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
38
- Plug: (props: React.SVGProps<SVGSVGElement>) => import("react").JSX.Element;
38
+ Plug: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
39
39
  Pnpm: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
40
- Puzzle: (props: React.SVGProps<SVGSVGElement>) => import("react").JSX.Element;
40
+ Puzzle: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
41
41
  Heart: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
42
42
  Resize: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
43
43
  Share: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
@@ -49,6 +49,6 @@ export declare const Icons: {
49
49
  UserGroup: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
50
50
  Warning: ({ size, color }: import("./type").IconPropsType) => import("react").JSX.Element;
51
51
  Yarn: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
52
- Zap: (props: React.SVGProps<SVGSVGElement>) => import("react").JSX.Element;
52
+ Zap: ({ size }: import("./type").IconPropsType) => import("react").JSX.Element;
53
53
  };
54
54
  export { type IconPropsType } from './type';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aristobyte-ui/utils",
3
3
  "description": "A collection of shared utility functions for AristoByte projects, designed to provide reusable helpers, streamline common operations, and ensure consistency across applications and packages.",
4
- "version": "2.17.2",
4
+ "version": "2.17.3",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "author": "AristoByte <info@aristobyte.com>",