dgz-ui 1.3.6 → 1.3.7

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 CHANGED
@@ -1,255 +1,25 @@
1
- # UI Components Library
2
-
3
- A modern, accessible, and customizable React component library built with TypeScript, Tailwind CSS, and Shadcn/ui components.
4
-
5
- ## 📋 Table of Contents
6
-
7
- - [Features](#-features)
8
- - [Installation](#-installation)
9
- - [Quick Start](#-quick-start)
10
- - [Components](#-components)
11
- - [Button](#button)
12
- - [Badge](#badge)
13
- - [Avatar](#avatar)
14
- - [Development](#️-development)
15
- - [License](#-license)
16
-
17
- ## ⚡ Quick Start
18
-
19
- ```tsx
20
- import { Button, Badge, Avatar, AvatarImage, AvatarFallback } from 'dgz-ui';
21
-
22
- function App() {
23
- return (
24
- <div className="space-y-4 p-8">
25
- <Button>Hello World</Button>
26
- <Badge variant="secondary">New Feature</Badge>
27
- <Avatar>
28
- <AvatarImage src="/avatar.jpg" alt="User" />
29
- <AvatarFallback>UN</AvatarFallback>
30
- </Avatar>
31
- </div>
32
- );
33
- }
34
- ```
35
-
36
- ## 🚀 Features
37
-
38
- - **TypeScript Support** - Full type safety with comprehensive TypeScript definitions
39
- - **Accessibility First** - WCAG compliant components with proper ARIA attributes
40
- - **Shadcn/ui Based** - Built on proven Shadcn/ui patterns and Radix UI primitives
41
- - **Customizable** - Easy theming with Tailwind CSS and CSS variables
42
- - **Copy & Paste Friendly** - Components designed for easy customization and modification
43
-
44
- ## 📦 Installation
45
-
46
- ```bash
47
- npm install dgz-ui
48
- # or
49
- yarn add dgz-ui
50
- # or
51
- pnpm add dgz-ui
52
- ```
53
-
54
- ### Peer Dependencies
55
-
56
- Make sure you have the required peer dependencies installed:
57
-
58
- ```bash
59
- npm install react react-dom
60
- ```
61
-
62
- ### Shadcn/ui Setup
63
-
64
- This library is built on top of Shadcn/ui. If you're starting fresh, initialize Shadcn/ui in your project:
65
-
66
- ```bash
67
- npx shadcn-ui@latest init
68
- ```
69
-
70
- ## 📚 Components
71
-
72
- ### Button
73
-
74
- A versatile button component with multiple variants, sizes, and states.
75
-
76
- ```tsx
77
- import { Button } from 'dgz-ui';
78
-
79
- // Basic usage
80
- <Button>Click me</Button>
81
-
82
- // With variants
83
- <Button variant="secondary">Secondary Button</Button>
84
- <Button variant="tertiary">Tertiary Button</Button>
85
- <Button variant="ghost">Ghost Button</Button>
86
- <Button variant="destructive">Destructive Button</Button>
87
-
88
- // With sizes
89
- <Button size="xs">Extra Small</Button>
90
- <Button size="sm">Small Button</Button>
91
- <Button size="lg">Large Button</Button>
92
- <Button size="icon">🎯</Button>
93
-
94
- // With states
95
- <Button disabled>Disabled Button</Button>
96
- <Button loading>Loading Button</Button>
97
- ```
98
-
99
- **Available Props:**
100
-
101
- - `variant`: `'default' | 'destructive' | 'secondary' | 'tertiary' | 'ghost'`
102
- - `size`: `'lg' | 'default' | 'sm' | 'xs' | 'icon'`
103
- - `disabled`: `boolean`
104
- - `asChild`: `boolean` - Render as child component
105
- - All standard HTML button attributes
106
-
107
- ---
108
-
109
- ### Badge
110
-
111
- A flexible badge component with multiple types, color variants, sizes, and styling options.
112
-
113
- ```tsx
114
- import { Badge } from 'dgz-ui';
115
-
116
- // Basic usage
117
- <Badge>New</Badge>
118
-
119
- // Different types
120
- <Badge type="status">Online</Badge>
121
- <Badge type="indicator">5</Badge>
122
- <Badge type="icon">⭐</Badge>
123
-
124
- // Color variants (filled)
125
- <Badge variant="blue">Info</Badge>
126
- <Badge variant="green">Success</Badge>
127
- <Badge variant="red">Error</Badge>
128
- <Badge variant="orange">Warning</Badge>
129
- <Badge variant="purple">Premium</Badge>
130
-
131
- // Outlined variants
132
- <Badge variant="blue-outlined">Info Outlined</Badge>
133
- <Badge variant="green-outlined">Success Outlined</Badge>
134
- <Badge variant="red-outlined">Error Outlined</Badge>
135
-
136
- // Different sizes
137
- <Badge size="sm">Small</Badge>
138
- <Badge size="lg">Large</Badge>
139
-
140
- // Different border radius
141
- <Badge rounded="default">Default Rounded</Badge>
142
- <Badge rounded="full">Fully Rounded</Badge>
143
-
144
- // Combinations
145
- <Badge
146
- type="status"
147
- variant="green"
148
- size="sm"
149
- rounded="full"
150
- >
151
- Active
152
- </Badge>
153
- ```
154
-
155
- **Available Props:**
156
-
157
- - `type`: `'default' | 'status' | 'indicator' | 'icon'`
158
- - `variant`: `'default' | 'gray' | 'blue' | 'cyan' | 'green' | 'lime' | 'orange' | 'red' | 'purple' | 'indigo' | 'default-outlined' | 'gray-outlined' | 'blue-outlined' | 'cyan-outlined' | 'green-outlined' | 'lime-outlined' | 'orange-outlined' | 'red-outlined' | 'purple-outlined' | 'indigo-outlined'`
159
- - `size`: `'sm' | 'lg'`
160
- - `rounded`: `'default' | 'full'`
161
- - `className`: `string` - Additional CSS classes
162
- - All standard HTML span attributes
163
-
164
- ---
165
-
166
- ### Avatar
167
-
168
- A circular avatar component for displaying user profile images with automatic fallback.
169
-
170
- ```tsx
171
- import { Avatar, AvatarImage, AvatarFallback } from 'dgz-ui';
172
-
173
- // Basic usage
174
- <Avatar>
175
- <AvatarImage src="/path/to/image.jpg" alt="User name" />
176
- <AvatarFallback>JD</AvatarFallback>
177
- </Avatar>
178
-
179
- // With sizes
180
- <Avatar size="sm">
181
- <AvatarImage src="/avatar.jpg" alt="Small avatar" />
182
- <AvatarFallback>S</AvatarFallback>
183
- </Avatar>
184
-
185
- <Avatar size="lg">
186
- <AvatarImage src="/avatar.jpg" alt="Large avatar" />
187
- <AvatarFallback>L</AvatarFallback>
188
- </Avatar>
189
-
190
- // Custom styling
191
- <Avatar className="border-2 border-blue-500">
192
- <AvatarImage src="/avatar.jpg" alt="Styled avatar" />
193
- <AvatarFallback className="bg-blue-100">ST</AvatarFallback>
194
- </Avatar>
195
- ```
196
-
197
- **Available Props:**
198
-
199
- **Avatar:**
200
-
201
- - `size`: `'sm' | 'default' | 'md' | 'lg' | 'xl'`
202
- - `className`: `string` - Additional CSS classes
203
-
204
- **AvatarImage:**
205
-
206
- - `src`: `string` - Image source URL
207
- - `alt`: `string` - Alternative text for accessibility
208
- - `className`: `string` - Additional CSS classes
209
-
210
- **AvatarFallback:**
211
-
212
- - `className`: `string` - Additional CSS classes
213
- - `children`: `ReactNode` - Fallback content (usually initials)
214
-
215
- ---
216
-
217
- ## 🏗️ Development
218
-
219
- ### Contributing
220
-
221
- 1. Fork the repository
222
- 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
223
- 3. Commit your changes (`git commit -m 'Add some amazing feature'`)
224
- 4. Push to the branch (`git push origin feature/amazing-feature`)
225
- 5. Open a Pull Request
226
-
227
- ### Testing
228
-
229
- ```bash
230
- npm run test
231
- # or
232
- yarn test
233
- ```
234
-
235
- ### Building
236
-
237
- ```bash
238
- npm run build
239
- # or
240
- yarn build
241
- ```
242
-
243
- ## 🤝 Acknowledgments
244
-
245
- - [Shadcn/ui](https://ui.shadcn.com/) - For the excellent component patterns and design system
246
- - [Radix UI](https://www.radix-ui.com/) - For the accessible primitives
247
- - [Tailwind CSS](https://tailwindcss.com/) - For the utility-first CSS framework
248
-
249
- ## 📄 License
250
-
251
- This project is licensed under the MIT License - see the [LICENSE](https://github.com/Alisher1119/dgz-ui/blob/main/LICENSE) file for details.
252
-
253
- ## 🐛 Issues
254
-
255
- If you encounter any issues or have feature requests, please [create an issue](https://github.com/Alisher1119/dgz-ui/issues) on GitHub.
1
+ # Components
2
+
3
+ - Accordion
4
+ - Alert
5
+ - Alert Dialog
6
+ - Avatar
7
+ - Badge
8
+ - Breadcrumb
9
+ - Button
10
+ - Calendar
11
+ - Card
12
+ - Collapsible
13
+ - Dialog
14
+ - Dropdown
15
+ - Form
16
+ - Pagination
17
+ - Popover
18
+ - Progress
19
+ - Scroll Area
20
+ - Separator
21
+ - Sheet
22
+ - Skeleton
23
+ - Tab
24
+ - Table
25
+ - Tooltip
@@ -1,4 +1,4 @@
1
- import { C as e, D as r, a as T, H as i, M as D, T as E, b as M } from "../timepicker-KuMTVdFp.js";
1
+ import { C as e, D as r, a as T, H as i, M as D, T as E, b as M } from "../timepicker-BudzDyUz.js";
2
2
  export {
3
3
  e as Calendar,
4
4
  r as DATE,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../timepicker-vBB7UZ_o.cjs");exports.Calendar=e.Calendar;exports.DATE=e.DATE;exports.DatePicker=e.DatePicker;exports.HOUR=e.HOUR;exports.MINUTE=e.MINUTE;exports.TIME=e.TIME;exports.TimePicker=e.TimePicker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../timepicker-BzQ5ZRr1.cjs");exports.Calendar=e.Calendar;exports.DATE=e.DATE;exports.DatePicker=e.DatePicker;exports.HOUR=e.HOUR;exports.MINUTE=e.MINUTE;exports.TIME=e.TIME;exports.TimePicker=e.TimePicker;