eglador-ui-react 0.1.0-alpha.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kenan Gundogan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+ <img src=".github/eglador-logo.svg" alt="eglador-ui-react" width="200" />
2
+
3
+ # eglador-ui-react
4
+
5
+ A lightweight, reusable UI component library built with **Tailwind CSS v4** for React-based projects.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install eglador-ui-react
11
+ ```
12
+
13
+ **Peer dependencies:** `react >= 18` | `react-dom >= 18` | `tailwindcss ^4`
14
+
15
+ ## Setup
16
+
17
+ Add the following to your global stylesheet (e.g. `app/globals.css`) so Tailwind can detect the component classes:
18
+
19
+ ```css
20
+ @import "tailwindcss";
21
+ @source "../node_modules/eglador-ui-react/dist/**/*.{js,mjs}";
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ```tsx
27
+ import { Button, ButtonGroup } from "eglador-ui-react";
28
+ ```
29
+
30
+ ## Components
31
+
32
+ | Component | Parameters |
33
+ |-----------|-----------|
34
+ | **Button** | `variant`, `color`, `size`, `shape`, `soft`, `icon`, `iconRight`, `loading`, `active`, `disabled`, `className` |
35
+ | **ButtonGroup** | `variant`, `className`, `children` |
36
+
37
+ ## Development
38
+
39
+ ```bash
40
+ npm install # install dependencies
41
+ npm run storybook # start storybook on http://localhost:6006
42
+ npm run build # production build to dist/
43
+ npm run dev # watch mode with live rebuild
44
+ npm run typecheck # run typescript type checking
45
+ ```
46
+
47
+ ## Publishing
48
+
49
+ ```bash
50
+ npm version patch # bump version (e.g. 0.1.2 -> 0.1.3)
51
+ npm publish # publish to npm (runs typecheck + build automatically)
52
+ ```
53
+
54
+ ## Compatibility
55
+
56
+ Works with any React-based framework: **Next.js**, **Remix**, **Vite + React**, **Gatsby**, and others.
57
+
58
+ ## Author
59
+
60
+ **Kenan Gundogan** — [github.com/kenangundogan](https://github.com/kenangundogan)
61
+
62
+ ## License
63
+
64
+ MIT
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ClassValue } from 'clsx';
4
+
5
+ type ButtonColor = "default" | "black" | "primary" | "danger" | "success" | "warning" | "info";
6
+ type ButtonSize = "xs" | "sm" | "md";
7
+ type ButtonShape = "square" | "rounded" | "circle";
8
+ type ButtonVariant = "solid" | "outline" | "ghost";
9
+ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "active"> {
10
+ variant?: ButtonVariant;
11
+ color?: ButtonColor;
12
+ soft?: boolean;
13
+ size?: ButtonSize;
14
+ shape?: ButtonShape;
15
+ icon?: React.ReactNode;
16
+ iconRight?: React.ReactNode;
17
+ loading?: boolean;
18
+ active?: boolean;
19
+ className?: string;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ type ButtonGroupVariant = "bordered" | "segmented";
24
+ interface ButtonGroupProps {
25
+ variant?: ButtonGroupVariant;
26
+ className?: string;
27
+ children: React.ReactNode;
28
+ }
29
+ declare function ButtonGroup({ variant, className, children, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
30
+
31
+ declare function cn(...inputs: ClassValue[]): string;
32
+
33
+ export { Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, cn };
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ClassValue } from 'clsx';
4
+
5
+ type ButtonColor = "default" | "black" | "primary" | "danger" | "success" | "warning" | "info";
6
+ type ButtonSize = "xs" | "sm" | "md";
7
+ type ButtonShape = "square" | "rounded" | "circle";
8
+ type ButtonVariant = "solid" | "outline" | "ghost";
9
+ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "active"> {
10
+ variant?: ButtonVariant;
11
+ color?: ButtonColor;
12
+ soft?: boolean;
13
+ size?: ButtonSize;
14
+ shape?: ButtonShape;
15
+ icon?: React.ReactNode;
16
+ iconRight?: React.ReactNode;
17
+ loading?: boolean;
18
+ active?: boolean;
19
+ className?: string;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ type ButtonGroupVariant = "bordered" | "segmented";
24
+ interface ButtonGroupProps {
25
+ variant?: ButtonGroupVariant;
26
+ className?: string;
27
+ children: React.ReactNode;
28
+ }
29
+ declare function ButtonGroup({ variant, className, children, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
30
+
31
+ declare function cn(...inputs: ClassValue[]): string;
32
+
33
+ export { Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, cn };