@aristobyte-ui/utils 1.0.113 → 2.0.0

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.
Files changed (103) hide show
  1. package/README.md +73 -0
  2. package/dist/es/main/helpers/Portal.js +29 -0
  3. package/dist/es/main/helpers/index.js +2 -0
  4. package/dist/es/main/helpers/ripple.js +18 -0
  5. package/dist/es/main/hooks/index.js +1 -0
  6. package/dist/es/main/hooks/useMediaQuery.js +31 -0
  7. package/dist/es/main/icons/AristoByteUI.js +72 -0
  8. package/dist/es/main/icons/ArrowRight.js +6 -0
  9. package/dist/es/main/icons/BashCursor.js +7 -0
  10. package/dist/es/main/icons/Bun.js +24 -0
  11. package/dist/es/main/icons/Code.js +8 -0
  12. package/dist/es/main/icons/Comment.js +6 -0
  13. package/dist/es/main/icons/Components.js +9 -0
  14. package/dist/es/main/icons/Copy.js +7 -0
  15. package/dist/es/main/icons/Disabled.js +7 -0
  16. package/dist/es/main/icons/Dot.js +6 -0
  17. package/dist/es/main/icons/Error.js +8 -0
  18. package/dist/es/main/icons/Eye.js +7 -0
  19. package/dist/es/main/icons/GalleryVertical.js +8 -0
  20. package/dist/es/main/icons/GalleryVerticalEnd.js +8 -0
  21. package/dist/es/main/icons/Github.js +7 -0
  22. package/dist/es/main/icons/GradientSquare.js +10 -0
  23. package/dist/es/main/icons/Heart.js +6 -0
  24. package/dist/es/main/icons/Info.js +8 -0
  25. package/dist/es/main/icons/Instagram.js +8 -0
  26. package/dist/es/main/icons/Link.js +8 -0
  27. package/dist/es/main/icons/LinkedIn.js +8 -0
  28. package/dist/es/main/icons/Logo.js +47 -0
  29. package/dist/es/main/icons/Npm.js +7 -0
  30. package/dist/es/main/icons/OpenedBook.js +7 -0
  31. package/dist/es/main/icons/Package.js +9 -0
  32. package/dist/es/main/icons/Palette.js +10 -0
  33. package/dist/es/main/icons/PaperCode.js +9 -0
  34. package/dist/es/main/icons/Play.js +6 -0
  35. package/dist/es/main/icons/Pnpm.js +34 -0
  36. package/dist/es/main/icons/Resize.js +9 -0
  37. package/dist/es/main/icons/Share.js +10 -0
  38. package/dist/es/main/icons/Star.js +6 -0
  39. package/dist/es/main/icons/Stars.js +9 -0
  40. package/dist/es/main/icons/Storybook.js +7 -0
  41. package/dist/es/main/icons/Success.js +7 -0
  42. package/dist/es/main/icons/User.js +7 -0
  43. package/dist/es/main/icons/UserGroup.js +9 -0
  44. package/dist/es/main/icons/Warning.js +8 -0
  45. package/dist/es/main/icons/Yarn.js +6 -0
  46. package/dist/es/main/icons/index.js +80 -0
  47. package/dist/es/main/icons/type.js +1 -0
  48. package/dist/es/main/index.js +3 -0
  49. package/dist/lib/main/helpers/Portal.js +66 -0
  50. package/dist/lib/main/helpers/index.js +18 -0
  51. package/dist/lib/main/helpers/ripple.js +22 -0
  52. package/dist/lib/main/hooks/index.js +17 -0
  53. package/dist/lib/main/hooks/useMediaQuery.js +68 -0
  54. package/dist/lib/main/icons/AristoByteUI.js +109 -0
  55. package/dist/lib/main/icons/ArrowRight.js +43 -0
  56. package/dist/lib/main/icons/BashCursor.js +44 -0
  57. package/dist/lib/main/icons/Bun.js +61 -0
  58. package/dist/lib/main/icons/Code.js +45 -0
  59. package/dist/lib/main/icons/Comment.js +43 -0
  60. package/dist/lib/main/icons/Components.js +46 -0
  61. package/dist/lib/main/icons/Copy.js +44 -0
  62. package/dist/lib/main/icons/Disabled.js +44 -0
  63. package/dist/lib/main/icons/Dot.js +43 -0
  64. package/dist/lib/main/icons/Error.js +45 -0
  65. package/dist/lib/main/icons/Eye.js +44 -0
  66. package/dist/lib/main/icons/GalleryVertical.js +45 -0
  67. package/dist/lib/main/icons/GalleryVerticalEnd.js +45 -0
  68. package/dist/lib/main/icons/Github.js +44 -0
  69. package/dist/lib/main/icons/GradientSquare.js +47 -0
  70. package/dist/lib/main/icons/Heart.js +43 -0
  71. package/dist/lib/main/icons/Info.js +45 -0
  72. package/dist/lib/main/icons/Instagram.js +45 -0
  73. package/dist/lib/main/icons/Link.js +45 -0
  74. package/dist/lib/main/icons/LinkedIn.js +45 -0
  75. package/dist/lib/main/icons/Logo.js +84 -0
  76. package/dist/lib/main/icons/Npm.js +44 -0
  77. package/dist/lib/main/icons/OpenedBook.js +44 -0
  78. package/dist/lib/main/icons/Package.js +46 -0
  79. package/dist/lib/main/icons/Palette.js +47 -0
  80. package/dist/lib/main/icons/PaperCode.js +46 -0
  81. package/dist/lib/main/icons/Play.js +43 -0
  82. package/dist/lib/main/icons/Pnpm.js +71 -0
  83. package/dist/lib/main/icons/Resize.js +46 -0
  84. package/dist/lib/main/icons/Share.js +47 -0
  85. package/dist/lib/main/icons/Star.js +43 -0
  86. package/dist/lib/main/icons/Stars.js +46 -0
  87. package/dist/lib/main/icons/Storybook.js +44 -0
  88. package/dist/lib/main/icons/Success.js +44 -0
  89. package/dist/lib/main/icons/User.js +44 -0
  90. package/dist/lib/main/icons/UserGroup.js +46 -0
  91. package/dist/lib/main/icons/Warning.js +45 -0
  92. package/dist/lib/main/icons/Yarn.js +43 -0
  93. package/dist/lib/main/icons/index.js +83 -0
  94. package/dist/lib/main/icons/type.js +2 -0
  95. package/dist/lib/main/index.js +19 -0
  96. package/package.json +4 -37
  97. package/dist/index.d.mts +0 -66
  98. package/dist/index.d.ts +0 -66
  99. package/dist/index.js +0 -1940
  100. package/dist/index.js.map +0 -1
  101. package/dist/index.mjs +0 -1900
  102. package/dist/index.mjs.map +0 -1
  103. /package/{styles/_settings.scss → aristobyte-ui.settings.scss} +0 -0
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Icons = void 0;
4
+ var AristoByteUI_1 = require("./AristoByteUI");
5
+ var ArrowRight_1 = require("./ArrowRight");
6
+ var BashCursor_1 = require("./BashCursor");
7
+ var Bun_1 = require("./Bun");
8
+ var Code_1 = require("./Code");
9
+ var Comment_1 = require("./Comment");
10
+ var Components_1 = require("./Components");
11
+ var Copy_1 = require("./Copy");
12
+ var Disabled_1 = require("./Disabled");
13
+ var Dot_1 = require("./Dot");
14
+ var Error_1 = require("./Error");
15
+ var Eye_1 = require("./Eye");
16
+ var GalleryVertical_1 = require("./GalleryVertical");
17
+ var GalleryVerticalEnd_1 = require("./GalleryVerticalEnd");
18
+ var Github_1 = require("./Github");
19
+ var GradientSquare_1 = require("./GradientSquare");
20
+ var Heart_1 = require("./Heart");
21
+ var Info_1 = require("./Info");
22
+ var Link_1 = require("./Link");
23
+ var Logo_1 = require("./Logo");
24
+ var Npm_1 = require("./Npm");
25
+ var OpenedBook_1 = require("./OpenedBook");
26
+ var Package_1 = require("./Package");
27
+ var Palette_1 = require("./Palette");
28
+ var PaperCode_1 = require("./PaperCode");
29
+ var Play_1 = require("./Play");
30
+ var Pnpm_1 = require("./Pnpm");
31
+ var Resize_1 = require("./Resize");
32
+ var Share_1 = require("./Share");
33
+ var Stars_1 = require("./Stars");
34
+ var Star_1 = require("./Star");
35
+ var Storybook_1 = require("./Storybook");
36
+ var Success_1 = require("./Success");
37
+ var User_1 = require("./User");
38
+ var UserGroup_1 = require("./UserGroup");
39
+ var Warning_1 = require("./Warning");
40
+ var Yarn_1 = require("./Yarn");
41
+ var LinkedIn_1 = require("./LinkedIn");
42
+ var Instagram_1 = require("./Instagram");
43
+ exports.Icons = {
44
+ AristoByteUI: AristoByteUI_1.AristoByteUI,
45
+ ArrowRight: ArrowRight_1.ArrowRight,
46
+ BashCursor: BashCursor_1.BashCursor,
47
+ Bun: Bun_1.Bun,
48
+ Code: Code_1.Code,
49
+ Copy: Copy_1.Copy,
50
+ Comment: Comment_1.Comment,
51
+ Components: Components_1.Components,
52
+ Disabled: Disabled_1.Disabled,
53
+ Dot: Dot_1.Dot,
54
+ Eye: Eye_1.Eye,
55
+ Error: Error_1.Error,
56
+ GalleryVertical: GalleryVertical_1.GalleryVertical,
57
+ GalleryVerticalEnd: GalleryVerticalEnd_1.GalleryVerticalEnd,
58
+ GradientSquare: GradientSquare_1.GradientSquare,
59
+ Github: Github_1.Github,
60
+ Info: Info_1.Info,
61
+ Instagram: Instagram_1.Instagram,
62
+ Link: Link_1.Link,
63
+ LinkedIn: LinkedIn_1.LinkedIn,
64
+ Logo: Logo_1.Logo,
65
+ Npm: Npm_1.Npm,
66
+ OpenedBook: OpenedBook_1.OpenedBook,
67
+ Package: Package_1.Package,
68
+ Palette: Palette_1.Palette,
69
+ PaperCode: PaperCode_1.PaperCode,
70
+ Play: Play_1.Play,
71
+ Pnpm: Pnpm_1.Pnpm,
72
+ Heart: Heart_1.Heart,
73
+ Resize: Resize_1.Resize,
74
+ Share: Share_1.Share,
75
+ Star: Star_1.Star,
76
+ Stars: Stars_1.Stars,
77
+ Storybook: Storybook_1.Storybook,
78
+ Success: Success_1.Success,
79
+ User: User_1.User,
80
+ UserGroup: UserGroup_1.UserGroup,
81
+ Warning: Warning_1.Warning,
82
+ Yarn: Yarn_1.Yarn,
83
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./hooks"), exports);
18
+ __exportStar(require("./helpers"), exports);
19
+ __exportStar(require("./icons"), exports);
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": "1.0.113",
4
+ "version": "2.0.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "author": "AristoByte <info@aristobyte.com>",
@@ -33,48 +33,15 @@
33
33
  ],
34
34
  "files": [
35
35
  "dist",
36
- "styles"
36
+ "aristobyte-ui.settings.scss"
37
37
  ],
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "main": "dist/index.js",
42
- "module": "dist/index.mjs",
43
- "types": "dist/index.d.ts",
44
- "exports": {
45
- "development": {
46
- "import": "./index.ts",
47
- "types": "./index.ts"
48
- },
49
- "default": {
50
- "import": "./dist/index.mjs",
51
- "require": "./dist/index.js",
52
- "types": "./dist/index.d.ts"
53
- },
54
- "./styles/settings": {
55
- "import": "./dist/styles/_settings.scss",
56
- "require": "./dist/styles/_settings.scss"
57
- }
58
- },
59
- "scripts": {
60
- "build": "tsup",
61
- "lint": "eslint . --max-warnings 0",
62
- "generate:component": "turbo gen react-component",
63
- "check-types": "tsc --noEmit"
64
- },
41
+ "main": "dist/lib/main/index.js",
42
+ "module": "dist/es/main/index.js",
65
43
  "peerDependencies": {
66
44
  "react": "^19.1.0",
67
45
  "react-dom": "^19.1.0"
68
- },
69
- "devDependencies": {
70
- "@aristobyte-ui/eslint-config": "^1.0.113",
71
- "@aristobyte-ui/typescript-config": "^1.0.113",
72
- "@turbo/gen": "^2.5.0",
73
- "@types/node": "^24.3.0",
74
- "@types/react": "19.1.0",
75
- "@types/react-dom": "19.1.1",
76
- "eslint": "^9.27.0",
77
- "tsup": "^8.5.0",
78
- "typescript": "^5.8.3"
79
46
  }
80
47
  }
package/dist/index.d.mts DELETED
@@ -1,66 +0,0 @@
1
- import * as React$1 from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- declare const useMediaQuery: (query: string) => boolean;
5
-
6
- type RippleParamsRef = HTMLButtonElement | HTMLAnchorElement;
7
- type RippleParams<HTMLElementType extends RippleParamsRef> = {
8
- ref: React.RefObject<HTMLElementType | null>;
9
- clientX: number;
10
- clientY: number;
11
- };
12
- declare const renderRipple: <HTMLElementType extends RippleParamsRef>({ ref, clientX, clientY, }: RippleParams<HTMLElementType>) => void;
13
-
14
- declare const Portal: React$1.FC<{
15
- children: React$1.ReactNode;
16
- }>;
17
-
18
- type IconPropsType = {
19
- size?: number | `${number}%`;
20
- color?: string;
21
- colors?: string[];
22
- };
23
-
24
- declare const Icons: {
25
- AristoByteUI: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
26
- ArrowRight: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
27
- BashCursor: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
28
- Bun: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
29
- Code: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
30
- Copy: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
31
- Comment: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
32
- Components: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
33
- Disabled: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
34
- Dot: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
35
- Eye: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
36
- Error: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
37
- GalleryVertical: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
38
- GalleryVerticalEnd: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
39
- GradientSquare: ({ size, colors, }: IconPropsType) => react_jsx_runtime.JSX.Element;
40
- Github: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
41
- Info: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
42
- Instagram: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
43
- Link: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
44
- LinkedIn: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
45
- Logo: ({ size: size }: IconPropsType) => react_jsx_runtime.JSX.Element;
46
- Npm: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
47
- OpenedBook: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
48
- Package: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
49
- Palette: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
50
- PaperCode: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
51
- Play: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
52
- Pnpm: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
53
- Heart: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
54
- Resize: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
55
- Share: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
56
- Star: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
57
- Stars: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
58
- Storybook: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
59
- Success: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
60
- User: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
61
- UserGroup: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
62
- Warning: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
63
- Yarn: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
64
- };
65
-
66
- export { type IconPropsType, Icons, Portal, type RippleParams, renderRipple, useMediaQuery };
package/dist/index.d.ts DELETED
@@ -1,66 +0,0 @@
1
- import * as React$1 from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- declare const useMediaQuery: (query: string) => boolean;
5
-
6
- type RippleParamsRef = HTMLButtonElement | HTMLAnchorElement;
7
- type RippleParams<HTMLElementType extends RippleParamsRef> = {
8
- ref: React.RefObject<HTMLElementType | null>;
9
- clientX: number;
10
- clientY: number;
11
- };
12
- declare const renderRipple: <HTMLElementType extends RippleParamsRef>({ ref, clientX, clientY, }: RippleParams<HTMLElementType>) => void;
13
-
14
- declare const Portal: React$1.FC<{
15
- children: React$1.ReactNode;
16
- }>;
17
-
18
- type IconPropsType = {
19
- size?: number | `${number}%`;
20
- color?: string;
21
- colors?: string[];
22
- };
23
-
24
- declare const Icons: {
25
- AristoByteUI: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
26
- ArrowRight: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
27
- BashCursor: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
28
- Bun: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
29
- Code: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
30
- Copy: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
31
- Comment: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
32
- Components: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
33
- Disabled: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
34
- Dot: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
35
- Eye: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
36
- Error: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
37
- GalleryVertical: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
38
- GalleryVerticalEnd: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
39
- GradientSquare: ({ size, colors, }: IconPropsType) => react_jsx_runtime.JSX.Element;
40
- Github: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
41
- Info: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
42
- Instagram: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
43
- Link: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
44
- LinkedIn: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
45
- Logo: ({ size: size }: IconPropsType) => react_jsx_runtime.JSX.Element;
46
- Npm: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
47
- OpenedBook: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
48
- Package: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
49
- Palette: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
50
- PaperCode: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
51
- Play: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
52
- Pnpm: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
53
- Heart: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
54
- Resize: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
55
- Share: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
56
- Star: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
57
- Stars: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
58
- Storybook: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
59
- Success: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
60
- User: ({ size, color }: IconPropsType) => react_jsx_runtime.JSX.Element;
61
- UserGroup: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
62
- Warning: ({ size, color, }: IconPropsType) => react_jsx_runtime.JSX.Element;
63
- Yarn: ({ size }: IconPropsType) => react_jsx_runtime.JSX.Element;
64
- };
65
-
66
- export { type IconPropsType, Icons, Portal, type RippleParams, renderRipple, useMediaQuery };