singularity-components 0.1.7 → 0.1.10
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/README.md +3 -46
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.js +30 -79
- package/dist/index.mjs +7 -0
- package/package.json +14 -48
- package/components.json +0 -21
- package/dist/components/ui/badge.d.ts +0 -9
- package/dist/components/ui/badge.js +0 -34
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/exports.d.ts +0 -2
- package/dist/exports.js +0 -3
- package/dist/exports.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +0 -10
- package/dist/lib/utils.js.map +0 -1
- package/dist/tests/index.test.d.ts +0 -1
- package/jest.config.js +0 -4
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/rollup.config.js +0 -16
- package/src/components/ui/badge.tsx +0 -37
- package/src/index.css +0 -73
- package/src/index.ts +0 -7
- package/src/lib/utils.ts +0 -6
- package/src/logo.svg +0 -1
- package/src/react-app-env.d.ts +0 -1
- package/src/tests/index.test.ts +0 -21
- package/tailwind.config.js +0 -49
- package/tsconfig.json +0 -35
package/README.md
CHANGED
|
@@ -1,46 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `npm start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
-
|
|
14
|
-
The page will reload if you make edits.\
|
|
15
|
-
You will also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
-
|
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
-
|
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
1
|
+
# TEST
|
|
2
|
+
|
|
3
|
+
Test
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
type Person = {
|
|
2
|
+
name: string;
|
|
3
|
+
age: number;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
declare function sayHello({ name, age }: Person): void;
|
|
7
|
+
|
|
8
|
+
export { type Person, sayHello };
|
package/dist/index.js
CHANGED
|
@@ -1,83 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
18
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
-
***************************************************************************** */
|
|
22
|
-
|
|
23
|
-
var __assign = function() {
|
|
24
|
-
__assign = Object.assign || function __assign(t) {
|
|
25
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
26
|
-
s = arguments[i];
|
|
27
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
};
|
|
31
|
-
return __assign.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
function __rest(s, e) {
|
|
35
|
-
var t = {};
|
|
36
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
37
|
-
t[p] = s[p];
|
|
38
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
39
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
40
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
41
|
-
t[p[i]] = s[p[i]];
|
|
42
|
-
}
|
|
43
|
-
return t;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
47
|
-
var e = new Error(message);
|
|
48
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
49
17
|
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
50
19
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
sayHello: () => sayHello
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(src_exports);
|
|
58
26
|
|
|
59
|
-
//
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
variant: {
|
|
63
|
-
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
64
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
65
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
66
|
-
outline: "text-foreground",
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
defaultVariants: {
|
|
70
|
-
variant: "default",
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
function Badge(_a) {
|
|
74
|
-
var className = _a.className, variant = _a.variant, props = __rest(_a, ["className", "variant"]);
|
|
75
|
-
return (jsxRuntime.jsx("div", __assign({ className: cn(badgeVariants({ variant: variant }), className) }, props)));
|
|
27
|
+
// src/functions.ts
|
|
28
|
+
function sayHello({ name, age }) {
|
|
29
|
+
console.log(`Hello, my name is ${name} and I am ${age} years old`);
|
|
76
30
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
exports.Badge = Badge;
|
|
82
|
-
exports.sayHello = sayHello;
|
|
83
|
-
//# sourceMappingURL=index.js.map
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
sayHello
|
|
34
|
+
});
|
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,55 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "singularity-components",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"@testing-library/react": "^13.4.0",
|
|
8
|
-
"@testing-library/user-event": "^13.5.0",
|
|
9
|
-
"@types/jest": "^29.5.14",
|
|
10
|
-
"@types/node": "^16.18.119",
|
|
11
|
-
"@types/react": "^18.3.12",
|
|
12
|
-
"@types/react-dom": "^18.3.1",
|
|
13
|
-
"class-variance-authority": "^0.7.0",
|
|
14
|
-
"clsx": "^2.1.1",
|
|
15
|
-
"concurrently": "^9.1.0",
|
|
16
|
-
"jest": "^29.7.0",
|
|
17
|
-
"lucide-react": "^0.461.0",
|
|
18
|
-
"nodemon": "^3.1.7",
|
|
19
|
-
"react": "^18.3.1",
|
|
20
|
-
"react-dom": "^18.3.1",
|
|
21
|
-
"react-scripts": "5.0.1",
|
|
22
|
-
"rollup": "^2.79.2",
|
|
23
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
24
|
-
"tailwind-merge": "^2.5.5",
|
|
25
|
-
"tailwindcss-animate": "^1.0.7",
|
|
26
|
-
"ts-jest": "^29.2.5",
|
|
27
|
-
"typescript": "^4.9.5",
|
|
28
|
-
"web-vitals": "^2.1.4"
|
|
29
|
-
},
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"module": "./dist/index.mjs",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
30
7
|
"scripts": {
|
|
31
|
-
"build": "
|
|
32
|
-
"dev": "concurrently \"tsc --watch\" \"nodemon ./dist/index.js\"",
|
|
33
|
-
"prepare": "npm run build"
|
|
34
|
-
},
|
|
35
|
-
"eslintConfig": {
|
|
36
|
-
"extends": [
|
|
37
|
-
"react-app"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"browserslist": {
|
|
41
|
-
"production": [
|
|
42
|
-
">0.2%",
|
|
43
|
-
"not dead",
|
|
44
|
-
"not op_mini all"
|
|
45
|
-
],
|
|
46
|
-
"development": [
|
|
47
|
-
"last 1 chrome version",
|
|
48
|
-
"last 1 firefox version",
|
|
49
|
-
"last 1 safari version"
|
|
50
|
-
]
|
|
8
|
+
"build": "tsup"
|
|
51
9
|
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"test"
|
|
12
|
+
],
|
|
13
|
+
"author": "snoffsan",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"description": "MIT",
|
|
16
|
+
"dependencies": {},
|
|
52
17
|
"devDependencies": {
|
|
53
|
-
"
|
|
18
|
+
"tsup": "^8.3.5",
|
|
19
|
+
"typescript": "^5.7.2"
|
|
54
20
|
}
|
|
55
21
|
}
|
package/components.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
-
"style": "new-york",
|
|
4
|
-
"rsc": false,
|
|
5
|
-
"tsx": true,
|
|
6
|
-
"tailwind": {
|
|
7
|
-
"config": "tailwind.config.js",
|
|
8
|
-
"css": "src/index.css",
|
|
9
|
-
"baseColor": "zinc",
|
|
10
|
-
"cssVariables": true,
|
|
11
|
-
"prefix": ""
|
|
12
|
-
},
|
|
13
|
-
"aliases": {
|
|
14
|
-
"components": "@/components",
|
|
15
|
-
"utils": "@/lib/utils",
|
|
16
|
-
"ui": "@/components/ui",
|
|
17
|
-
"lib": "@/lib",
|
|
18
|
-
"hooks": "@/hooks"
|
|
19
|
-
},
|
|
20
|
-
"iconLibrary": "lucide"
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
-
}
|
|
8
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Badge, badgeVariants };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import * as React from "react";
|
|
13
|
-
import { cva } from "class-variance-authority";
|
|
14
|
-
import { cn } from "lib/utils";
|
|
15
|
-
// import { cn } from "@/lib/utils"
|
|
16
|
-
var badgeVariants = cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
17
|
-
variants: {
|
|
18
|
-
variant: {
|
|
19
|
-
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
20
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
21
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
22
|
-
outline: "text-foreground",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
defaultVariants: {
|
|
26
|
-
variant: "default",
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
function Badge(_a) {
|
|
30
|
-
var className = _a.className, variant = _a.variant, props = __rest(_a, ["className", "variant"]);
|
|
31
|
-
return (<div className={cn(badgeVariants({ variant: variant }), className)} {...props}/>);
|
|
32
|
-
}
|
|
33
|
-
export { Badge, badgeVariants };
|
|
34
|
-
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAE/B,mCAAmC;AAEnC,IAAM,aAAa,GAAG,GAAG,CACvB,sKAAsK,EACtK;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,kFAAkF;YACpF,SAAS,EACP,iFAAiF;YACnF,WAAW,EACT,8FAA8F;YAChG,OAAO,EAAE,iBAAiB;SAC3B;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAC;AAMF,SAAS,KAAK,CAAC,EAA4C;IAA1C,IAAA,SAAS,eAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAA9B,wBAAgC,CAAF;IAC3C,OAAO,CACL,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,SAAA,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CACzE,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/exports.d.ts
DELETED
package/dist/exports.js
DELETED
package/dist/exports.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../src/exports.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/lib/utils.ts","../src/components/ui/badge.tsx","../src/index.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}\r\n","import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"lib/utils\";\n\n// import { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return (\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants };\n","import { Badge } from \"components/ui/badge\";\n\nexport { Badge };\n\nconsole.log(\"Hello world\");\n\nexport const sayHello = (name: string) => `Hello, ${name}`;\n"],"names":["twMerge","clsx","cva","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAGgB,EAAE,GAAA;IAAC,IAAuB,MAAA,GAAA,EAAA,CAAA;SAAvB,IAAuB,EAAA,GAAA,CAAA,EAAvB,EAAuB,GAAA,SAAA,CAAA,MAAA,EAAvB,EAAuB,EAAA,EAAA;QAAvB,MAAuB,CAAA,EAAA,CAAA,GAAA,SAAA,CAAA,EAAA,CAAA,CAAA;;AACxC,IAAA,OAAOA,qBAAO,CAACC,SAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B;;ACDA;AAEA,IAAM,aAAa,GAAGC,0BAAG,CACvB,sKAAsK,EACtK;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EACL,kFAAkF;AACpF,YAAA,SAAS,EACP,iFAAiF;AACnF,YAAA,WAAW,EACT,8FAA8F;AAChG,YAAA,OAAO,EAAE,iBAAiB;AAC3B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AACnB,KAAA;AACF,CAAA,CACF,CAAC;AAMF,SAAS,KAAK,CAAC,EAA4C,EAAA;IAA1C,IAAA,SAAS,eAAA,EAAE,OAAO,aAAA,EAAK,KAAK,GAA9B,MAAA,CAAA,EAAA,EAAA,CAAA,WAAA,EAAA,SAAA,CAAgC,CAAF,CAAA;IAC3C,QACEC,iCAAK,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,SAAA,EAAE,CAAC,EAAE,SAAS,CAAC,IAAM,KAAK,CAAA,CAAI,EACxE;AACJ;;AC9BA,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAEpB,IAAM,QAAQ,GAAG,UAAC,IAAY,EAAK,EAAA,OAAA,SAAU,CAAA,MAAA,CAAA,IAAI,CAAE,CAAA;;;;;"}
|
package/dist/lib/utils.d.ts
DELETED
package/dist/lib/utils.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
-
export function cn() {
|
|
4
|
-
var inputs = [];
|
|
5
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
6
|
-
inputs[_i] = arguments[_i];
|
|
7
|
-
}
|
|
8
|
-
return twMerge(clsx(inputs));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/lib/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE;IAAC,gBAAuB;SAAvB,UAAuB,EAAvB,qBAAuB,EAAvB,IAAuB;QAAvB,2BAAuB;;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/jest.config.js
DELETED
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!--
|
|
14
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
-
-->
|
|
17
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
-
<!--
|
|
19
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
-
|
|
23
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
-
-->
|
|
27
|
-
<title>React App</title>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
-
<div id="root"></div>
|
|
32
|
-
<!--
|
|
33
|
-
This HTML file is a template.
|
|
34
|
-
If you open it directly in the browser, you will see an empty page.
|
|
35
|
-
|
|
36
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
-
|
|
39
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
-
-->
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
package/public/logo192.png
DELETED
|
Binary file
|
package/public/logo512.png
DELETED
|
Binary file
|
package/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/public/robots.txt
DELETED
package/rollup.config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const typescript = require("rollup-plugin-typescript2");
|
|
2
|
-
const pkg = require("./package.json");
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
input: "src/index.ts",
|
|
6
|
-
output: [
|
|
7
|
-
{
|
|
8
|
-
file: pkg.main,
|
|
9
|
-
format: "cjs",
|
|
10
|
-
exports: "named",
|
|
11
|
-
sourcemap: true,
|
|
12
|
-
strict: false,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
plugins: [typescript()],
|
|
16
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { cn } from "lib/utils";
|
|
4
|
-
|
|
5
|
-
// import { cn } from "@/lib/utils"
|
|
6
|
-
|
|
7
|
-
const badgeVariants = cva(
|
|
8
|
-
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default:
|
|
13
|
-
"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
14
|
-
secondary:
|
|
15
|
-
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
16
|
-
destructive:
|
|
17
|
-
"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
18
|
-
outline: "text-foreground",
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
variant: "default",
|
|
23
|
-
},
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
export interface BadgeProps
|
|
28
|
-
extends React.HTMLAttributes<HTMLDivElement>,
|
|
29
|
-
VariantProps<typeof badgeVariants> {}
|
|
30
|
-
|
|
31
|
-
function Badge({ className, variant, ...props }: BadgeProps) {
|
|
32
|
-
return (
|
|
33
|
-
<div className={cn(badgeVariants({ variant }), className)} {...props} />
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { Badge, badgeVariants };
|
package/src/index.css
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
|
8
|
-
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
|
9
|
-
sans-serif;
|
|
10
|
-
-webkit-font-smoothing: antialiased;
|
|
11
|
-
-moz-osx-font-smoothing: grayscale;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
code {
|
|
15
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
|
16
|
-
monospace;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@layer base {
|
|
20
|
-
:root {
|
|
21
|
-
--background: 0 0% 100%;
|
|
22
|
-
--foreground: 222.2 47.4% 11.2%;
|
|
23
|
-
--muted: 210 40% 96.1%;
|
|
24
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
25
|
-
--popover: 0 0% 100%;
|
|
26
|
-
--popover-foreground: 222.2 47.4% 11.2%;
|
|
27
|
-
--border: 214.3 31.8% 91.4%;
|
|
28
|
-
--input: 214.3 31.8% 91.4%;
|
|
29
|
-
--card: 0 0% 100%;
|
|
30
|
-
--card-foreground: 222.2 47.4% 11.2%;
|
|
31
|
-
--primary: 222.2 47.4% 11.2%;
|
|
32
|
-
--primary-foreground: 210 40% 98%;
|
|
33
|
-
--secondary: 210 40% 96.1%;
|
|
34
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
35
|
-
--accent: 210 40% 96.1%;
|
|
36
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
37
|
-
--destructive: 0 100% 50%;
|
|
38
|
-
--destructive-foreground: 210 40% 98%;
|
|
39
|
-
--ring: 215 20.2% 65.1%;
|
|
40
|
-
--radius: 0.5rem;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.dark {
|
|
44
|
-
--background: 224 71% 4%;
|
|
45
|
-
--foreground: 213 31% 91%;
|
|
46
|
-
--muted: 223 47% 11%;
|
|
47
|
-
--muted-foreground: 215.4 16.3% 56.9%;
|
|
48
|
-
--accent: 216 34% 17%;
|
|
49
|
-
--accent-foreground: 210 40% 98%;
|
|
50
|
-
--popover: 224 71% 4%;
|
|
51
|
-
--popover-foreground: 215 20.2% 65.1%;
|
|
52
|
-
--border: 216 34% 17%;
|
|
53
|
-
--input: 216 34% 17%;
|
|
54
|
-
--card: 224 71% 4%;
|
|
55
|
-
--card-foreground: 213 31% 91%;
|
|
56
|
-
--primary: 210 40% 98%;
|
|
57
|
-
--primary-foreground: 222.2 47.4% 1.2%;
|
|
58
|
-
--secondary: 222.2 47.4% 11.2%;
|
|
59
|
-
--secondary-foreground: 210 40% 98%;
|
|
60
|
-
--destructive: 0 63% 31%;
|
|
61
|
-
--destructive-foreground: 210 40% 98%;
|
|
62
|
-
--ring: 216 34% 17%;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@layer base {
|
|
67
|
-
* {
|
|
68
|
-
@apply border-border;
|
|
69
|
-
}
|
|
70
|
-
body {
|
|
71
|
-
@apply font-sans antialiased bg-background text-foreground;
|
|
72
|
-
}
|
|
73
|
-
}
|
package/src/index.ts
DELETED
package/src/lib/utils.ts
DELETED
package/src/logo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
package/src/react-app-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-scripts" />
|
package/src/tests/index.test.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { sayHello } from "index";
|
|
2
|
-
|
|
3
|
-
describe("sayHello", () => {
|
|
4
|
-
it("should return a greeting message with the provided name", () => {
|
|
5
|
-
const name = "John";
|
|
6
|
-
const result = sayHello(name);
|
|
7
|
-
expect(result).toBe("Hello, John");
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
it("should handle an empty string as the name", () => {
|
|
11
|
-
const name = "";
|
|
12
|
-
const result = sayHello(name);
|
|
13
|
-
expect(result).toBe("Hello, ");
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it("should handle a name with special characters", () => {
|
|
17
|
-
const name = "@#$%^";
|
|
18
|
-
const result = sayHello(name);
|
|
19
|
-
expect(result).toBe("Hello, @#$%^");
|
|
20
|
-
});
|
|
21
|
-
});
|
package/tailwind.config.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: ["./src/**/*.{js,jsx,ts,tsx}"],
|
|
4
|
-
theme: {
|
|
5
|
-
extend: {
|
|
6
|
-
colors: {
|
|
7
|
-
border: "hsl(var(--border))",
|
|
8
|
-
input: "hsl(var(--input))",
|
|
9
|
-
ring: "hsl(var(--ring))",
|
|
10
|
-
background: "hsl(var(--background))",
|
|
11
|
-
foreground: "hsl(var(--foreground))",
|
|
12
|
-
primary: {
|
|
13
|
-
DEFAULT: "hsl(var(--primary))",
|
|
14
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
15
|
-
},
|
|
16
|
-
secondary: {
|
|
17
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
18
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
19
|
-
},
|
|
20
|
-
destructive: {
|
|
21
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
22
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
23
|
-
},
|
|
24
|
-
muted: {
|
|
25
|
-
DEFAULT: "hsl(var(--muted))",
|
|
26
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
27
|
-
},
|
|
28
|
-
accent: {
|
|
29
|
-
DEFAULT: "hsl(var(--accent))",
|
|
30
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
31
|
-
},
|
|
32
|
-
popover: {
|
|
33
|
-
DEFAULT: "hsl(var(--popover))",
|
|
34
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
35
|
-
},
|
|
36
|
-
card: {
|
|
37
|
-
DEFAULT: "hsl(var(--card))",
|
|
38
|
-
foreground: "hsl(var(--card-foreground))",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
borderRadius: {
|
|
42
|
-
lg: `var(--radius)`,
|
|
43
|
-
md: `calc(var(--radius) - 2px)`,
|
|
44
|
-
sm: "calc(var(--radius) - 4px)",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
plugins: [require("tailwindcss-animate")],
|
|
49
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// "jsx": "react",
|
|
4
|
-
// // "target": "es5",
|
|
5
|
-
// // "lib": ["dom", "dom.iterable", "esnext"],
|
|
6
|
-
// // "allowJs": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
// // "forceConsistentCasingInFileNames": true,
|
|
12
|
-
"noFallthroughCasesInSwitch": true,
|
|
13
|
-
// // "module": "esnext",
|
|
14
|
-
// // "moduleResolution": "node",
|
|
15
|
-
"resolveJsonModule": true,
|
|
16
|
-
// "isolatedModules": true,
|
|
17
|
-
"noEmit": true,
|
|
18
|
-
"jsx": "react-jsx",
|
|
19
|
-
"baseUrl": "./src",
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["/*"]
|
|
22
|
-
},
|
|
23
|
-
"outDir": "dist",
|
|
24
|
-
"module": "esnext",
|
|
25
|
-
"target": "es5",
|
|
26
|
-
"lib": ["es6", "dom", "es2016", "es2017"],
|
|
27
|
-
"sourceMap": true,
|
|
28
|
-
"allowJs": false,
|
|
29
|
-
"declaration": true,
|
|
30
|
-
"moduleResolution": "node",
|
|
31
|
-
"forceConsistentCasingInFileNames": true
|
|
32
|
-
},
|
|
33
|
-
"include": ["src"],
|
|
34
|
-
"exclude": ["node_modules", "dist", "rollup.config.js"]
|
|
35
|
-
}
|