sekerbura 1.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.
- package/README.md +158 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +103 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/alert.d.ts +6 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +50 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/badge.d.ts +7 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +44 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/button.d.ts +11 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +65 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.d.ts +9 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +59 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/input.d.ts +6 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +44 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/select.d.ts +6 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +44 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +44 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/templates.d.ts +17 -0
- package/dist/templates.d.ts.map +1 -0
- package/dist/templates.js +362 -0
- package/dist/templates.js.map +1 -0
- package/dist/utils/create-utils.d.ts +2 -0
- package/dist/utils/create-utils.d.ts.map +1 -0
- package/dist/utils/create-utils.js +34 -0
- package/dist/utils/create-utils.js.map +1 -0
- package/dist/utils/detect-framework.d.ts +7 -0
- package/dist/utils/detect-framework.d.ts.map +1 -0
- package/dist/utils/detect-framework.js +53 -0
- package/dist/utils/detect-framework.js.map +1 -0
- package/dist/utils/install-deps.d.ts +6 -0
- package/dist/utils/install-deps.d.ts.map +1 -0
- package/dist/utils/install-deps.js +64 -0
- package/dist/utils/install-deps.js.map +1 -0
- package/package.json +64 -0
package/README.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# sekerbura - Component CLI Library
|
|
2
|
+
|
|
3
|
+
A professional, self-contained CLI tool for distributing minimalist React components. Similar to Shadcn/ui but built from scratch with your own branding.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g sekerbura
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or use directly with npx:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx sekerbura add button
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
### 1. Initialize sekerbura (Optional)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx sekerbura init
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This will:
|
|
26
|
+
- Create `src/lib/utils.ts` with the `cn()` utility
|
|
27
|
+
- Install core dependencies (clsx, tailwind-merge, class-variance-authority)
|
|
28
|
+
|
|
29
|
+
### 2. Add Components
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx sekerbura add button
|
|
33
|
+
npx sekerbura add card
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
This will:
|
|
37
|
+
- Create the component in `src/components/sekerbura/<component>.tsx`
|
|
38
|
+
- Auto-detect your project type (Next.js/Vite)
|
|
39
|
+
- Install missing dependencies
|
|
40
|
+
- Show import instructions
|
|
41
|
+
|
|
42
|
+
### 3. Use in Your Code
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import { Button } from "@/components/sekerbura/button";
|
|
46
|
+
|
|
47
|
+
export default function App() {
|
|
48
|
+
return <Button variant="default">Click me</Button>;
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Available Components
|
|
53
|
+
|
|
54
|
+
- **button** - Minimalist button with variants: default, secondary, outline, ghost, destructive, link
|
|
55
|
+
- **card** - Clean card component with CardHeader, CardTitle, CardDescription, CardContent, CardFooter
|
|
56
|
+
- **input** - Text input field with focus ring and accessibility
|
|
57
|
+
- **textarea** - Multi-line text input with resizable option
|
|
58
|
+
- **select** - Dropdown select component
|
|
59
|
+
- **badge** - Label badges with variants: default, secondary, outline
|
|
60
|
+
- **alert** - Alert component with AlertTitle and AlertDescription
|
|
61
|
+
- **avatar** - Image wrapper with fallback support
|
|
62
|
+
- **checkbox** - Custom styled checkbox
|
|
63
|
+
- **switch** - Toggle switch
|
|
64
|
+
- **label** - Standard accessible label
|
|
65
|
+
- **skeleton** - Loading placeholder animation
|
|
66
|
+
|
|
67
|
+
View all available components:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npx sekerbura list
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## CLI Commands
|
|
74
|
+
|
|
75
|
+
### `npx sekerbura add <component>`
|
|
76
|
+
|
|
77
|
+
Add a component to your project.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx sekerbura add button
|
|
81
|
+
npx sekerbura add card
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### `npx sekerbura list`
|
|
85
|
+
|
|
86
|
+
List all available components.
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
npx sekerbura list
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### `npx sekerbura init`
|
|
93
|
+
|
|
94
|
+
Initialize sekerbura in your project (creates utils, installs dependencies).
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npx sekerbura init
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Project Structure
|
|
101
|
+
|
|
102
|
+
After adding components, your project structure looks like:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
your-project/
|
|
106
|
+
├── src/
|
|
107
|
+
│ ├── components/
|
|
108
|
+
│ │ └── sekerbura/
|
|
109
|
+
│ │ ├── button.tsx
|
|
110
|
+
│ │ └── card.tsx
|
|
111
|
+
│ ├── lib/
|
|
112
|
+
│ │ └── utils.ts # cn() utility created automatically
|
|
113
|
+
│ └── ...
|
|
114
|
+
├── package.json
|
|
115
|
+
└── ...
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Supported Frameworks
|
|
119
|
+
|
|
120
|
+
- **Next.js** (App Router and Pages Router)
|
|
121
|
+
- **Vite** + React
|
|
122
|
+
- Any project with Tailwind CSS
|
|
123
|
+
|
|
124
|
+
## Supported Package Managers
|
|
125
|
+
|
|
126
|
+
- npm
|
|
127
|
+
- yarn
|
|
128
|
+
- pnpm
|
|
129
|
+
|
|
130
|
+
The CLI automatically detects which package manager you're using based on lock files.
|
|
131
|
+
|
|
132
|
+
## Requirements
|
|
133
|
+
|
|
134
|
+
- Node.js >= 14.0.0
|
|
135
|
+
- Tailwind CSS configured in your project
|
|
136
|
+
- React (v16.8+)
|
|
137
|
+
- TypeScript (optional but recommended)
|
|
138
|
+
|
|
139
|
+
## Automatic Dependencies
|
|
140
|
+
|
|
141
|
+
sekerbura automatically installs and manages these dependencies:
|
|
142
|
+
|
|
143
|
+
- `clsx` - Utility for constructing className strings
|
|
144
|
+
- `tailwind-merge` - Merge Tailwind CSS classes without conflicts
|
|
145
|
+
- `class-variance-authority` - Create component variants
|
|
146
|
+
|
|
147
|
+
## How It Works
|
|
148
|
+
|
|
149
|
+
1. **Environment Detection** - Detects your project type and structure
|
|
150
|
+
2. **Utils Creation** - Creates `lib/utils.ts` with `cn()` utility if needed
|
|
151
|
+
3. **Dependency Check** - Identifies missing dependencies
|
|
152
|
+
4. **Auto Install** - Installs missing deps using your package manager
|
|
153
|
+
5. **Component Generation** - Creates the component file in the correct location
|
|
154
|
+
6. **Import Guide** - Shows you how to import and use the component
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
MIT - Built by Hummat Azim
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
10
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
+
const templates_1 = require("./templates");
|
|
12
|
+
const install_deps_1 = require("./utils/install-deps");
|
|
13
|
+
const detect_framework_1 = require("./utils/detect-framework");
|
|
14
|
+
const create_utils_1 = require("./utils/create-utils");
|
|
15
|
+
const program = new commander_1.Command();
|
|
16
|
+
program
|
|
17
|
+
.name("sekerbura")
|
|
18
|
+
.description("sekerbura - Custom component CLI library")
|
|
19
|
+
.version("1.0.0");
|
|
20
|
+
program
|
|
21
|
+
.command("add <component>")
|
|
22
|
+
.alias("a")
|
|
23
|
+
.description("Add a component to your project")
|
|
24
|
+
.action(async (component) => {
|
|
25
|
+
const componentName = component.toLowerCase();
|
|
26
|
+
if (!templates_1.COMPONENTS_LIST.includes(componentName)) {
|
|
27
|
+
console.log(chalk_1.default.red(`✗ Component "${component}" not found.\n`));
|
|
28
|
+
console.log(chalk_1.default.gray(`Available components: ${templates_1.COMPONENTS_LIST.join(", ")}`));
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
const cwd = process.cwd();
|
|
32
|
+
try {
|
|
33
|
+
console.log(chalk_1.default.cyan(`\n📦 Setting up sekerbura component: ${chalk_1.default.bold(componentName)}\n`));
|
|
34
|
+
await (0, create_utils_1.ensureUtilsFile)(cwd);
|
|
35
|
+
const requiredDeps = [
|
|
36
|
+
"clsx",
|
|
37
|
+
"tailwind-merge",
|
|
38
|
+
"class-variance-authority",
|
|
39
|
+
];
|
|
40
|
+
const missingDeps = requiredDeps.filter((dep) => !(0, install_deps_1.isDependencyInstalled)(cwd, dep));
|
|
41
|
+
if (missingDeps.length > 0) {
|
|
42
|
+
console.log(chalk_1.default.yellow(`\n⚙️ Installing required dependencies...\n`));
|
|
43
|
+
await (0, install_deps_1.installDependencies)(cwd, missingDeps);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
console.log(chalk_1.default.gray(`✓ All required dependencies already installed`));
|
|
47
|
+
}
|
|
48
|
+
const componentDir = (0, detect_framework_1.getComponentsDir)(cwd);
|
|
49
|
+
const componentPath = path_1.default.join(componentDir, `${componentName}.tsx`);
|
|
50
|
+
await fs_extra_1.default.ensureDir(componentDir);
|
|
51
|
+
await fs_extra_1.default.writeFile(componentPath, templates_1.TEMPLATES[componentName]);
|
|
52
|
+
console.log(chalk_1.default.green(`\n✓ Component created at: ${chalk_1.default.bold(componentPath)}\n`));
|
|
53
|
+
const importPath = (0, detect_framework_1.getComponentImportPath)(componentName);
|
|
54
|
+
console.log(chalk_1.default.gray(`Import in your code:\n`));
|
|
55
|
+
console.log(chalk_1.default.cyan(` import { ${capitalize(componentName)} } from "${importPath}"`));
|
|
56
|
+
console.log();
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
console.error(chalk_1.default.red("\n✗ Error adding component:"), error instanceof Error ? error.message : error);
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
program
|
|
64
|
+
.command("list")
|
|
65
|
+
.alias("ls")
|
|
66
|
+
.description("List all available components")
|
|
67
|
+
.action(() => {
|
|
68
|
+
console.log(chalk_1.default.cyan("\nAvailable sekerbura Components:\n"));
|
|
69
|
+
templates_1.COMPONENTS_LIST.forEach((comp) => {
|
|
70
|
+
console.log(chalk_1.default.gray(` • ${chalk_1.default.white(comp)}`));
|
|
71
|
+
});
|
|
72
|
+
console.log();
|
|
73
|
+
});
|
|
74
|
+
program
|
|
75
|
+
.command("init")
|
|
76
|
+
.description("Initialize sekerbura in your project")
|
|
77
|
+
.action(async () => {
|
|
78
|
+
const cwd = process.cwd();
|
|
79
|
+
try {
|
|
80
|
+
console.log(chalk_1.default.cyan("\n🚀 Initializing sekerbura...\n"));
|
|
81
|
+
await (0, create_utils_1.ensureUtilsFile)(cwd);
|
|
82
|
+
const requiredDeps = [
|
|
83
|
+
"clsx",
|
|
84
|
+
"tailwind-merge",
|
|
85
|
+
"class-variance-authority",
|
|
86
|
+
];
|
|
87
|
+
const missingDeps = requiredDeps.filter((dep) => !(0, install_deps_1.isDependencyInstalled)(cwd, dep));
|
|
88
|
+
if (missingDeps.length > 0) {
|
|
89
|
+
console.log(chalk_1.default.yellow(`\n⚙️ Installing core dependencies...\n`));
|
|
90
|
+
await (0, install_deps_1.installDependencies)(cwd, missingDeps);
|
|
91
|
+
}
|
|
92
|
+
console.log(chalk_1.default.green(`\n✓ sekerbura initialized! Run ${chalk_1.default.cyan("npx sekerbura add <component>")} to add components.\n`));
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
console.error(chalk_1.default.red("\n✗ Error initializing sekerbura:"), error instanceof Error ? error.message : error);
|
|
96
|
+
process.exit(1);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
function capitalize(str) {
|
|
100
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
101
|
+
}
|
|
102
|
+
program.parse(process.argv);
|
|
103
|
+
//# sourceMappingURL=cli.js.map
|
package/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AAC,IAAA,oCAAqB,EAAC,GAAG,EAAE,GAAG,CAAC,CAC1C,CAAC;QAEF,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAC;YACrE,MAAM,IAAA,kCAAmB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QAC9C,CAAC;QAED,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,KAAK,CACT,kCAAkC,eAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC,uBAAuB,CACrG,CACF,CAAC;IAEJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CACX,eAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAC9C,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,SAAS,UAAU,CAAC,GAAW;IAC7B,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
4
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
6
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,KAAK,6GAET,CAAC;AAGH,QAAA,MAAM,UAAU,yHAEd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6GAEpB,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.AlertDescription = exports.AlertTitle = exports.Alert = void 0;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const utils_1 = require("../lib/utils");
|
|
41
|
+
const Alert = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("rounded-lg border border-black bg-white p-4", className), ...props })));
|
|
42
|
+
exports.Alert = Alert;
|
|
43
|
+
Alert.displayName = "Alert";
|
|
44
|
+
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("h5", { ref: ref, className: (0, utils_1.cn)("mb-1 font-bold text-black", className), ...props })));
|
|
45
|
+
exports.AlertTitle = AlertTitle;
|
|
46
|
+
AlertTitle.displayName = "AlertTitle";
|
|
47
|
+
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("text-sm text-gray-600", className), ...props })));
|
|
48
|
+
exports.AlertDescription = AlertDescription;
|
|
49
|
+
AlertDescription.displayName = "AlertDescription";
|
|
50
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,6CAA+B;AAC/B,wCAAkC;AAClC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAuD,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACrH,gCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,6CAA6C,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CACtG,CAAC,CAAC;AAaM,sBAAK;AAZd,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAmE,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACtI,+BAAI,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,2BAA2B,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CACnF,CAAC,CAAC;AAQa,gCAAU;AAP1B,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAAuD,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChI,gCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,uBAAuB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAChF,CAAC,CAAC;AAGyB,4CAAgB;AAF5C,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: "default" | "secondary" | "outline";
|
|
4
|
+
}
|
|
5
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Badge };
|
|
7
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;CAC/C;AAED,QAAA,MAAM,KAAK,mFAYT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Badge = void 0;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const utils_1 = require("../lib/utils");
|
|
41
|
+
const Badge = React.forwardRef(({ className, variant = "default", ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("inline-flex items-center rounded-md px-2 py-1 text-xs font-semibold", variant === "default" && "bg-black text-white", variant === "secondary" && "bg-gray-100 text-black", variant === "outline" && "border border-black text-black", className), ...props })));
|
|
42
|
+
exports.Badge = Badge;
|
|
43
|
+
Badge.displayName = "Badge";
|
|
44
|
+
//# sourceMappingURL=badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,6CAA+B;AAC/B,wCAAkC;AAKlC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAA6B,CAAC,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChH,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EACX,qEAAqE,EACrE,OAAO,KAAK,SAAS,IAAI,qBAAqB,EAC9C,OAAO,KAAK,WAAW,IAAI,wBAAwB,EACnD,OAAO,KAAK,SAAS,IAAI,gCAAgC,EACzD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AAGM,sBAAK;AAFd,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Button };
|
|
11
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,cAAc;;;mFAsBnB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE1H,QAAA,MAAM,MAAM,uFAEV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Button = void 0;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const class_variance_authority_1 = require("class-variance-authority");
|
|
41
|
+
const utils_1 = require("../lib/utils");
|
|
42
|
+
const buttonVariants = (0, class_variance_authority_1.cva)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer", {
|
|
43
|
+
variants: {
|
|
44
|
+
variant: {
|
|
45
|
+
primary: "bg-black text-white hover:bg-gray-900 focus-visible:ring-black",
|
|
46
|
+
secondary: "bg-gray-100 text-black hover:bg-gray-200 focus-visible:ring-black",
|
|
47
|
+
outline: "border border-black text-black hover:bg-black hover:text-white focus-visible:ring-black",
|
|
48
|
+
ghost: "hover:bg-gray-100 text-black focus-visible:ring-black",
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
sm: "h-8 px-3 text-xs",
|
|
52
|
+
md: "h-10 px-4 text-sm",
|
|
53
|
+
lg: "h-12 px-6 text-base",
|
|
54
|
+
icon: "h-10 w-10",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
variant: "primary",
|
|
59
|
+
size: "md",
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
const Button = React.forwardRef(({ className, variant, size, ...props }, ref) => ((0, jsx_runtime_1.jsx)("button", { className: (0, utils_1.cn)(buttonVariants({ variant, size, className })), ref: ref, ...props })));
|
|
63
|
+
exports.Button = Button;
|
|
64
|
+
Button.displayName = "Button";
|
|
65
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,6CAA+B;AAC/B,uEAAkE;AAClE,wCAAkC;AAElC,MAAM,cAAc,GAAG,IAAA,8BAAG,EACxB,sOAAsO,EACtO;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,gEAAgE;YACzE,SAAS,EAAE,mEAAmE;YAC9E,OAAO,EAAE,yFAAyF;YAClG,KAAK,EAAE,uDAAuD;SAC/D;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,kBAAkB;YACtB,EAAE,EAAE,mBAAmB;YACvB,EAAE,EAAE,qBAAqB;YACzB,IAAI,EAAE,WAAW;SAClB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAC;AAIF,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAiC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC/G,mCAAQ,SAAS,EAAE,IAAA,UAAE,EAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,KAAM,KAAK,GAAI,CAC7F,CAAC,CAAC;AAGM,wBAAM;AAFf,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
9
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,IAAI,6GAER,CAAC;AAGH,QAAA,MAAM,UAAU,6GAEd,CAAC;AAGH,QAAA,MAAM,SAAS,qHAEb,CAAC;AAGH,QAAA,MAAM,eAAe,yHAEnB,CAAC;AAGH,QAAA,MAAM,WAAW,6GAEf,CAAC;AAGH,QAAA,MAAM,UAAU,6GAEd,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CardContent = exports.CardDescription = exports.CardTitle = exports.CardFooter = exports.CardHeader = exports.Card = void 0;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const utils_1 = require("../lib/utils");
|
|
41
|
+
const Card = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("rounded-lg border border-black bg-white shadow-sm", className), ...props })));
|
|
42
|
+
exports.Card = Card;
|
|
43
|
+
Card.displayName = "Card";
|
|
44
|
+
const CardHeader = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("flex flex-col space-y-1.5 p-6", className), ...props })));
|
|
45
|
+
exports.CardHeader = CardHeader;
|
|
46
|
+
CardHeader.displayName = "CardHeader";
|
|
47
|
+
const CardTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("h2", { ref: ref, className: (0, utils_1.cn)("text-2xl font-bold text-black", className), ...props })));
|
|
48
|
+
exports.CardTitle = CardTitle;
|
|
49
|
+
CardTitle.displayName = "CardTitle";
|
|
50
|
+
const CardDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("p", { ref: ref, className: (0, utils_1.cn)("text-sm text-gray-600", className), ...props })));
|
|
51
|
+
exports.CardDescription = CardDescription;
|
|
52
|
+
CardDescription.displayName = "CardDescription";
|
|
53
|
+
const CardContent = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("p-6 pt-0", className), ...props })));
|
|
54
|
+
exports.CardContent = CardContent;
|
|
55
|
+
CardContent.displayName = "CardContent";
|
|
56
|
+
const CardFooter = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: (0, utils_1.cn)("flex items-center p-6 pt-0", className), ...props })));
|
|
57
|
+
exports.CardFooter = CardFooter;
|
|
58
|
+
CardFooter.displayName = "CardFooter";
|
|
59
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,6CAA+B;AAC/B,wCAAkC;AAElC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAuD,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACpH,gCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,mDAAmD,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAC5G,CAAC,CAAC;AA4BM,oBAAI;AA3Bb,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAE1B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAuD,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1H,gCAAK,GAAG,EAAE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CAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,UAAE,EAAC,4BAA4B,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CACrF,CAAC,CAAC;AAGwB,gCAAU;AAFrC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
}
|
|
4
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export { Input };
|
|
6
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAElF,QAAA,MAAM,KAAK,qFAUT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Input = void 0;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
const utils_1 = require("../lib/utils");
|
|
41
|
+
const Input = React.forwardRef(({ className, type, ...props }, ref) => ((0, jsx_runtime_1.jsx)("input", { type: type, className: (0, utils_1.cn)("flex h-10 w-full rounded-md border border-black bg-white px-3 py-2 text-sm text-black placeholder:text-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref, ...props })));
|
|
42
|
+
exports.Input = Input;
|
|
43
|
+
Input.displayName = "Input";
|
|
44
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,6CAA+B;AAC/B,wCAAkC;AAIlC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAA+B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnG,kCACE,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,IAAA,UAAE,EACX,sQAAsQ,EACtQ,SAAS,CACV,EACD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC,CAAC;AAGM,sBAAK;AAFd,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
|
+
}
|
|
4
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
5
|
+
export { Select };
|
|
6
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAErF,QAAA,MAAM,MAAM,uFAWV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|