@a2v2ai/uikit 0.0.1
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/Alert/Alert.d.ts +11 -0
- package/Alert/Alert.js +64 -0
- package/AlertDialog/AlertDialog.d.ts +35 -0
- package/AlertDialog/AlertDialog.js +121 -0
- package/Avatar/Avatar.d.ts +12 -0
- package/Avatar/Avatar.js +64 -0
- package/Badge/Badge.d.ts +9 -0
- package/Badge/Badge.js +26 -0
- package/Breadcrumb/Breadcrumb.d.ts +19 -0
- package/Breadcrumb/Breadcrumb.js +65 -0
- package/Button/Button.d.ts +14 -0
- package/Button/Button.js +75 -0
- package/Calendar/Calendar.d.ts +16 -0
- package/Calendar/Calendar.js +113 -0
- package/Card/Card.d.ts +14 -0
- package/Card/Card.js +70 -0
- package/ChatBubble/ChatBubble.d.ts +29 -0
- package/ChatBubble/ChatBubble.js +133 -0
- package/Checkbox/Checkbox.d.ts +10 -0
- package/Checkbox/Checkbox.js +57 -0
- package/Dialog/Dialog.d.ts +35 -0
- package/Dialog/Dialog.js +130 -0
- package/Drawer/Drawer.d.ts +31 -0
- package/Drawer/Drawer.js +69 -0
- package/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/DropdownMenu/DropdownMenu.js +85 -0
- package/ErrorMessage/ErrorMessage.d.ts +27 -0
- package/ErrorMessage/ErrorMessage.js +15 -0
- package/Flex/Flex.d.ts +23 -0
- package/Flex/Flex.js +101 -0
- package/IconButton/IconButton.d.ts +17 -0
- package/IconButton/IconButton.js +85 -0
- package/Input/Input.d.ts +16 -0
- package/Input/Input.js +75 -0
- package/InputOTP/InputOTP.d.ts +18 -0
- package/InputOTP/InputOTP.js +85 -0
- package/Label/Label.d.ts +10 -0
- package/Label/Label.js +57 -0
- package/Loader/Loader.d.ts +18 -0
- package/Loader/Loader.js +67 -0
- package/Popover/Popover.d.ts +7 -0
- package/Popover/Popover.js +49 -0
- package/Progress/Progress.d.ts +13 -0
- package/Progress/Progress.js +71 -0
- package/README.md +183 -0
- package/RadioGroup/RadioGroup.d.ts +11 -0
- package/RadioGroup/RadioGroup.js +64 -0
- package/ScrollArea/ScrollArea.d.ts +5 -0
- package/ScrollArea/ScrollArea.js +48 -0
- package/Select/Select.d.ts +19 -0
- package/Select/Select.js +85 -0
- package/Separator/Separator.d.ts +4 -0
- package/Separator/Separator.js +43 -0
- package/Skeleton/Skeleton.d.ts +4 -0
- package/Skeleton/Skeleton.js +8 -0
- package/Spinner/Spinner.d.ts +15 -0
- package/Spinner/Spinner.js +68 -0
- package/Switch/Switch.d.ts +10 -0
- package/Switch/Switch.js +67 -0
- package/Tabs/Tabs.d.ts +13 -0
- package/Tabs/Tabs.js +64 -0
- package/Textarea/Textarea.d.ts +10 -0
- package/Textarea/Textarea.js +64 -0
- package/Toast/Toast.d.ts +10 -0
- package/Toast/Toast.js +29 -0
- package/Tooltip/Tooltip.d.ts +15 -0
- package/Tooltip/Tooltip.js +68 -0
- package/Typography/Typography.d.ts +15 -0
- package/Typography/Typography.js +125 -0
- package/helpers.d.ts +4 -0
- package/helpers.js +13 -0
- package/icons.d.ts +1 -0
- package/icons.js +18 -0
- package/index.css +127 -0
- package/index.d.ts +35 -0
- package/index.js +183 -0
- package/lib/utils.d.ts +3 -0
- package/lib/utils.js +18 -0
- package/package.json +29 -0
package/lib/utils.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cn = cn;
|
|
4
|
+
exports.copyToClipboard = copyToClipboard;
|
|
5
|
+
const clsx_1 = require("clsx");
|
|
6
|
+
const tailwind_merge_1 = require("tailwind-merge");
|
|
7
|
+
function cn(...inputs) {
|
|
8
|
+
return (0, tailwind_merge_1.twMerge)((0, clsx_1.clsx)(inputs));
|
|
9
|
+
}
|
|
10
|
+
async function copyToClipboard(text) {
|
|
11
|
+
try {
|
|
12
|
+
await navigator.clipboard.writeText(text);
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@a2v2ai/uikit",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "Arulraj V & abofficial1997@gmail.com",
|
|
5
|
+
"description": "A React UI component library built with shadcn/ui and Tailwind CSS",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"check:types": "tsc --noEmit",
|
|
9
|
+
"clean": "node -e \"require('fs').rmSync('../dist', { recursive: true, force: true })\"",
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"postbuild": "cpy ./package.json ../dist/ && cpy ./README.md ../dist/ && cpy ./index.css ../dist/",
|
|
12
|
+
"publish": "npm publish --access public"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"react",
|
|
16
|
+
"ui",
|
|
17
|
+
"components",
|
|
18
|
+
"tailwindcss",
|
|
19
|
+
"shadcn"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
23
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
24
|
+
"tailwindcss": "^4.0.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"cpy-cli": "^6.0.0"
|
|
28
|
+
}
|
|
29
|
+
}
|