@customafk/lunas-ui 0.0.56 → 0.0.58
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 +246 -92
- package/dist/{add-new-NPjDhZh_.js → add-new-B9KK77jE.js} +1 -1
- package/dist/{add-new-NPjDhZh_.js.map → add-new-B9KK77jE.js.map} +1 -1
- package/dist/{add-new-B_isqDA8.cjs → add-new-B9vW0r69.cjs} +1 -1
- package/dist/{add-new-B_isqDA8.cjs.map → add-new-B9vW0r69.cjs.map} +1 -1
- package/dist/{button-D-rU8Zxi.d.cts → button-D_tzwFGJ.d.cts} +5 -5
- package/dist/{button-CbUzKqWI.d.ts → button-NsFoJEG0.d.ts} +5 -5
- package/dist/{command-rcA08Vgu.d.ts → command-7NgITO2I.d.ts} +12 -12
- package/dist/{command-BjYoQgjB.d.cts → command-HP5LITqM.d.cts} +12 -12
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/{dialog-BOjG_Rwt.d.ts → dialog-BciL0byt.d.ts} +12 -12
- package/dist/{dialog-1Rot05ly.d.cts → dialog-DdcYSxA2.d.cts} +12 -12
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +30 -30
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.cjs.map +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/dialogs/form-dialog.js.map +1 -1
- package/dist/{dropdown-menu-DSjfaonn.js → dropdown-menu-BF9QbIfo.js} +1 -1
- package/dist/{dropdown-menu-DSjfaonn.js.map → dropdown-menu-BF9QbIfo.js.map} +1 -1
- package/dist/{dropdown-menu-Dd9uB7ai.cjs → dropdown-menu-CIldv8D7.cjs} +1 -1
- package/dist/{dropdown-menu-Dd9uB7ai.cjs.map → dropdown-menu-CIldv8D7.cjs.map} +1 -1
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.cjs +1 -1
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/select-field.js +1 -1
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/{input-C2_xbUlg.d.ts → input-B_wIBIc_.d.ts} +3 -3
- package/dist/{input-DylA1RM_.d.cts → input-OGFokZXp.d.cts} +3 -3
- package/dist/layouts/app-layout/index.d.cts +26 -26
- package/dist/layouts/app-layout/index.d.ts +3 -3
- package/dist/layouts/flex.d.cts +2 -2
- package/dist/layouts/flex.d.ts +2 -2
- package/dist/layouts/main/index.d.cts +4 -4
- package/dist/{refresh-D7GSuCBj.cjs → refresh-By25Z7zj.cjs} +1 -1
- package/dist/{refresh-D7GSuCBj.cjs.map → refresh-By25Z7zj.cjs.map} +1 -1
- package/dist/{refresh-DCb5DN8c.js → refresh-CMzmHeMf.js} +1 -1
- package/dist/{refresh-DCb5DN8c.js.map → refresh-CMzmHeMf.js.map} +1 -1
- package/dist/{scroll-area-DkMARNAo.js → scroll-area-CPQoJKt1.js} +1 -1
- package/dist/{scroll-area-DkMARNAo.js.map → scroll-area-CPQoJKt1.js.map} +1 -1
- package/dist/{scroll-area-DPdTIzO1.cjs → scroll-area-D7O1NyZn.cjs} +1 -1
- package/dist/{scroll-area-DPdTIzO1.cjs.map → scroll-area-D7O1NyZn.cjs.map} +1 -1
- package/dist/{search-input-CgsAwGXl.js → search-input-Ba8aUECr.js} +1 -1
- package/dist/{search-input-CgsAwGXl.js.map → search-input-Ba8aUECr.js.map} +1 -1
- package/dist/{search-input-BoMYvbuv.cjs → search-input-BmAoqcee.cjs} +1 -1
- package/dist/{search-input-BoMYvbuv.cjs.map → search-input-BmAoqcee.cjs.map} +1 -1
- package/dist/select-C7na5CE5.cjs +2 -0
- package/dist/select-C7na5CE5.cjs.map +1 -0
- package/dist/select-VpccO3h2.js +2 -0
- package/dist/select-VpccO3h2.js.map +1 -0
- package/dist/{separator-C4B7TPqd.d.ts → separator-BChPwmFZ.d.ts} +3 -3
- package/dist/{separator-Cj69RDvU.d.cts → separator-yyGmy_ba.d.cts} +3 -3
- package/dist/table/index.cjs +1 -1
- package/dist/table/index.d.cts +2 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +1 -1
- package/dist/{table-BX0M7vcu.cjs → table-Dgk7z91H.cjs} +2 -2
- package/dist/{table-BX0M7vcu.cjs.map → table-Dgk7z91H.cjs.map} +1 -1
- package/dist/{table-CBnyucZW.js → table-goPaI3yw.js} +2 -2
- package/dist/{table-CBnyucZW.js.map → table-goPaI3yw.js.map} +1 -1
- package/dist/{title-j3aTXn_c.cjs → title-DONX1fR6.cjs} +1 -1
- package/dist/{title-j3aTXn_c.cjs.map → title-DONX1fR6.cjs.map} +1 -1
- package/dist/{title-CYln9_WT.js → title-itXqz0us.js} +1 -1
- package/dist/{title-CYln9_WT.js.map → title-itXqz0us.js.map} +1 -1
- package/dist/{toggle-B3Tn0fly.d.ts → toggle-B_di9jVO.d.cts} +4 -4
- package/dist/{toggle-BwRoCj2v.d.cts → toggle-DPvX-y_y.d.ts} +4 -4
- package/dist/{tooltip-ChLgwxDy.d.ts → tooltip--7nev3Bt.d.ts} +6 -6
- package/dist/{tooltip-DgrYrDE8.d.cts → tooltip-DkK1GTLt.d.cts} +6 -6
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/title.cjs +1 -1
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/typography/title.js +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert.d.cts +6 -6
- package/dist/ui/alert.d.ts +6 -6
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/inputs/search-input.cjs +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/inputs/search-input.js +1 -1
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.ts +9 -9
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.d.cts +30 -30
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.cjs +1 -1
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/package.json +1 -1
- package/dist/select-BjTQmEN7.js +0 -2
- package/dist/select-BjTQmEN7.js.map +0 -1
- package/dist/select-BlPiYiG_.cjs +0 -2
- package/dist/select-BlPiYiG_.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
# UI
|
|
1
|
+
# Lunas UI - React Component Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@customafk/lunas-ui)
|
|
4
|
+
[](https://opensource.org/licenses/ISC)
|
|
5
|
+
[](https://nodejs.org/)
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
- 🔧 **Dễ tùy chỉnh**: Hỗ trợ CSS-in-JS, CSS modules, và Tailwind CSS
|
|
7
|
-
- 📱 **Responsive**: Tất cả component đều responsive và mobile-friendly
|
|
8
|
-
- ♿ **Accessible**: Tuân thủ các chuẩn WCAG 2.1 cho accessibility
|
|
9
|
-
<!--- 🌙 **Dark mode**: Hỗ trợ dark mode built-in-->
|
|
10
|
-
- 📦 **Tree-shaking**: Chỉ import những gì bạn cần
|
|
11
|
-
- 🔷 **TypeScript**: Được viết hoàn toàn bằng TypeScript với type definitions đầy đủ
|
|
7
|
+
A modern, accessible, and customizable React UI component library built for Lunas Enterprise applications.
|
|
12
8
|
|
|
13
|
-
##
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
- 🎨 **Modern Design**: Components designed with contemporary UI/UX principles
|
|
12
|
+
- 🔧 **Highly Customizable**: Supports TailwindCSS with class variance authority
|
|
13
|
+
- 📱 **Responsive**: All components are responsive and mobile-friendly
|
|
14
|
+
- ♿ **Accessible**: Complies with WCAG 2.1 accessibility standards
|
|
15
|
+
- 📦 **Tree-shaking**: Import only what you need for optimal bundle size
|
|
16
|
+
- 🔷 **TypeScript**: Fully typed with comprehensive TypeScript definitions
|
|
17
|
+
|
|
18
|
+
## 📦 Installation
|
|
14
19
|
|
|
15
20
|
```bash
|
|
16
21
|
# npm
|
|
17
|
-
npm
|
|
22
|
+
npm install @customafk/lunas-ui
|
|
18
23
|
|
|
19
24
|
# yarn
|
|
20
25
|
yarn add @customafk/lunas-ui
|
|
@@ -25,22 +30,49 @@ pnpm add @customafk/lunas-ui
|
|
|
25
30
|
|
|
26
31
|
### Peer Dependencies
|
|
27
32
|
|
|
33
|
+
Lunas UI requires the following peer dependencies:
|
|
34
|
+
|
|
28
35
|
```bash
|
|
29
36
|
npm install react react-dom
|
|
30
37
|
```
|
|
31
38
|
|
|
32
|
-
|
|
39
|
+
Additional peer dependencies for specific components:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install @hookform/error-message@^2.0.0 react-hook-form@^7.62.0 lucide-react@^0.541.0
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 🚀 Quick Start
|
|
46
|
+
|
|
47
|
+
1. Import styles in your main application file:
|
|
48
|
+
|
|
49
|
+
```jsx
|
|
50
|
+
// Import base styles first
|
|
51
|
+
import '@customafk/lunas-ui/styles/base'
|
|
52
|
+
// Import theme styles (required)
|
|
53
|
+
import '@customafk/lunas-ui/styles/theme'
|
|
54
|
+
// Optional: Import typography styles if needed
|
|
55
|
+
import '@customafk/lunas-ui/styles/typography'
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
2. Import and use components:
|
|
33
59
|
|
|
34
60
|
```jsx
|
|
35
61
|
import React from 'react'
|
|
36
|
-
import { Button
|
|
37
|
-
import '
|
|
62
|
+
import { Button } from '@customafk/lunas-ui/ui/button'
|
|
63
|
+
import { Card } from '@customafk/lunas-ui/ui/card'
|
|
64
|
+
import { TextField } from '@customafk/lunas-ui/forms/text-field'
|
|
65
|
+
import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'
|
|
38
66
|
|
|
39
67
|
function App() {
|
|
68
|
+
const onSubmit = (data) => console.log(data)
|
|
69
|
+
|
|
40
70
|
return (
|
|
41
|
-
<Card>
|
|
42
|
-
<
|
|
43
|
-
|
|
71
|
+
<Card className="mx-auto max-w-md p-6">
|
|
72
|
+
<FormWrapper onSubmit={onSubmit}>
|
|
73
|
+
<TextField name="username" label="Username" placeholder="Enter your username" />
|
|
74
|
+
<Button type="submit">Submit</Button>
|
|
75
|
+
</FormWrapper>
|
|
44
76
|
</Card>
|
|
45
77
|
)
|
|
46
78
|
}
|
|
@@ -48,76 +80,209 @@ function App() {
|
|
|
48
80
|
export default App
|
|
49
81
|
```
|
|
50
82
|
|
|
51
|
-
## 📋
|
|
83
|
+
## 📋 Component Import Guide
|
|
84
|
+
|
|
85
|
+
### Base UI Components
|
|
86
|
+
|
|
87
|
+
```jsx
|
|
88
|
+
// Core UI Components
|
|
89
|
+
import { Alert } from '@customafk/lunas-ui/ui/alert'
|
|
90
|
+
import { AlertDialog } from '@customafk/lunas-ui/ui/alert-dialog'
|
|
91
|
+
import { AspectRatio } from '@customafk/lunas-ui/ui/aspect-ratio'
|
|
92
|
+
import { Avatar } from '@customafk/lunas-ui/ui/avatar'
|
|
93
|
+
import { Badge } from '@customafk/lunas-ui/ui/badge'
|
|
94
|
+
import { Breadcrumb } from '@customafk/lunas-ui/ui/breadcrumb'
|
|
95
|
+
import { Button } from '@customafk/lunas-ui/ui/button'
|
|
96
|
+
import { Calendar } from '@customafk/lunas-ui/ui/calendar'
|
|
97
|
+
import { Card } from '@customafk/lunas-ui/ui/card'
|
|
98
|
+
import { Carousel } from '@customafk/lunas-ui/ui/carousel'
|
|
99
|
+
import { Collapsible } from '@customafk/lunas-ui/ui/collapsible'
|
|
100
|
+
import { Command } from '@customafk/lunas-ui/ui/command'
|
|
101
|
+
import { ContextMenu } from '@customafk/lunas-ui/ui/context-menu'
|
|
102
|
+
import { Dialog } from '@customafk/lunas-ui/ui/dialog'
|
|
103
|
+
import { DropdownMenu } from '@customafk/lunas-ui/ui/dropdown-menu'
|
|
104
|
+
import { FileUploader } from '@customafk/lunas-ui/ui/file-uploader'
|
|
105
|
+
import { Form } from '@customafk/lunas-ui/ui/form'
|
|
106
|
+
import { HoverCard } from '@customafk/lunas-ui/ui/hover-card'
|
|
107
|
+
import { Input } from '@customafk/lunas-ui/ui/input'
|
|
108
|
+
import { InputOTP } from '@customafk/lunas-ui/ui/input-otp'
|
|
109
|
+
import { Label } from '@customafk/lunas-ui/ui/label'
|
|
110
|
+
import { Menubar } from '@customafk/lunas-ui/ui/menubar'
|
|
111
|
+
import { MultiSelect } from '@customafk/lunas-ui/ui/multi-select'
|
|
112
|
+
import { NavigationMenu } from '@customafk/lunas-ui/ui/navigation-menu'
|
|
113
|
+
import { Pagination } from '@customafk/lunas-ui/ui/pagination'
|
|
114
|
+
import { Popover } from '@customafk/lunas-ui/ui/popover'
|
|
115
|
+
import { Progress } from '@customafk/lunas-ui/ui/progress'
|
|
116
|
+
import { RadioGroup } from '@customafk/lunas-ui/ui/radio-group'
|
|
117
|
+
import { Resizable } from '@customafk/lunas-ui/ui/resizable'
|
|
118
|
+
import { ScrollArea } from '@customafk/lunas-ui/ui/scroll-area'
|
|
119
|
+
import { Select } from '@customafk/lunas-ui/ui/select'
|
|
120
|
+
import { Separator } from '@customafk/lunas-ui/ui/separator'
|
|
121
|
+
import { Sheet } from '@customafk/lunas-ui/ui/sheet'
|
|
122
|
+
import { Sidebar } from '@customafk/lunas-ui/ui/sidebar'
|
|
123
|
+
import { Skeleton } from '@customafk/lunas-ui/ui/skeleton'
|
|
124
|
+
import { Slider } from '@customafk/lunas-ui/ui/slider'
|
|
125
|
+
import { Sonner } from '@customafk/lunas-ui/ui/sonner'
|
|
126
|
+
import { Switch } from '@customafk/lunas-ui/ui/switch'
|
|
127
|
+
import { Table } from '@customafk/lunas-ui/ui/table'
|
|
128
|
+
import { Tabs } from '@customafk/lunas-ui/ui/tabs'
|
|
129
|
+
import { Textarea } from '@customafk/lunas-ui/ui/textarea'
|
|
130
|
+
import { Toggle } from '@customafk/lunas-ui/ui/toggle'
|
|
131
|
+
import { ToggleGroup } from '@customafk/lunas-ui/ui/toggle-group'
|
|
132
|
+
import { Tooltip } from '@customafk/lunas-ui/ui/tooltip'
|
|
133
|
+
|
|
134
|
+
// Specialized Button Variants
|
|
135
|
+
import { AddNewButton } from '@customafk/lunas-ui/ui/buttons/add-new'
|
|
136
|
+
import { EditButton } from '@customafk/lunas-ui/ui/buttons/edit'
|
|
137
|
+
import { RefreshButton } from '@customafk/lunas-ui/ui/buttons/refresh'
|
|
138
|
+
import { TrashButton } from '@customafk/lunas-ui/ui/buttons/trash'
|
|
139
|
+
import { UploadImageButton } from '@customafk/lunas-ui/ui/buttons/upload-image'
|
|
140
|
+
|
|
141
|
+
// Specialized Input Variants
|
|
142
|
+
import { SearchInput } from '@customafk/lunas-ui/ui/inputs/search-input'
|
|
143
|
+
```
|
|
52
144
|
|
|
53
145
|
### Form Components
|
|
54
146
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
147
|
+
```jsx
|
|
148
|
+
// Import form wrapper for React Hook Form integration
|
|
149
|
+
import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'
|
|
150
|
+
|
|
151
|
+
// Field components
|
|
152
|
+
import { TextField } from '@customafk/lunas-ui/forms/text-field'
|
|
153
|
+
import { PasswordField } from '@customafk/lunas-ui/forms/password-field'
|
|
154
|
+
import { NumberField } from '@customafk/lunas-ui/forms/number-field'
|
|
155
|
+
import { SelectField } from '@customafk/lunas-ui/forms/select-field'
|
|
156
|
+
import { DateField } from '@customafk/lunas-ui/forms/date-field'
|
|
157
|
+
import { SwitchField } from '@customafk/lunas-ui/forms/switch-field'
|
|
158
|
+
import { TextareaField } from '@customafk/lunas-ui/forms/textarea-field'
|
|
159
|
+
import { MultiSelectField } from '@customafk/lunas-ui/forms/multi-select-field'
|
|
160
|
+
```
|
|
60
161
|
|
|
61
162
|
### Layout Components
|
|
62
163
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
164
|
+
```jsx
|
|
165
|
+
import { Flex } from '@customafk/lunas-ui/layouts/flex'
|
|
166
|
+
import { Grid } from '@customafk/lunas-ui/layouts/grid'
|
|
167
|
+
import { AppLayout } from '@customafk/lunas-ui/layouts/app-layout'
|
|
168
|
+
import { Main } from '@customafk/lunas-ui/layouts/main'
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Data Display Components
|
|
68
172
|
|
|
69
|
-
|
|
173
|
+
```jsx
|
|
174
|
+
import { Country } from '@customafk/lunas-ui/data-display/country'
|
|
175
|
+
import { DataList } from '@customafk/lunas-ui/data-display/data-list'
|
|
176
|
+
import { Date } from '@customafk/lunas-ui/data-display/date'
|
|
177
|
+
import { DateTooltip } from '@customafk/lunas-ui/data-display/date-tooltip'
|
|
178
|
+
import { Empty } from '@customafk/lunas-ui/data-display/empty'
|
|
179
|
+
import { Name } from '@customafk/lunas-ui/data-display/name'
|
|
180
|
+
import { PhoneNumber } from '@customafk/lunas-ui/data-display/phone-number'
|
|
181
|
+
import { RoleBadge } from '@customafk/lunas-ui/data-display/role-badge'
|
|
182
|
+
import { Statistic } from '@customafk/lunas-ui/data-display/statistic'
|
|
183
|
+
```
|
|
70
184
|
|
|
71
|
-
|
|
72
|
-
- `Toast` - Toast notifications
|
|
73
|
-
- `Loading` - Loading indicators
|
|
74
|
-
- `Progress` - Progress bars
|
|
185
|
+
### Dialog Components
|
|
75
186
|
|
|
76
|
-
|
|
187
|
+
```jsx
|
|
188
|
+
import { ConfirmDialog } from '@customafk/lunas-ui/dialogs/confirm-dialog'
|
|
189
|
+
import { DetailDialog } from '@customafk/lunas-ui/dialogs/detail-dialog'
|
|
190
|
+
import { ErrorDialog } from '@customafk/lunas-ui/dialogs/error-dialog'
|
|
191
|
+
import { FormDialog } from '@customafk/lunas-ui/dialogs/form-dialog'
|
|
192
|
+
import { LoadingDialog } from '@customafk/lunas-ui/dialogs/loading-dialog'
|
|
193
|
+
```
|
|
77
194
|
|
|
78
|
-
|
|
79
|
-
- `Breadcrumb` - Breadcrumb navigation
|
|
80
|
-
- `Pagination` - Pagination component
|
|
81
|
-
- `Tabs` - Tab component
|
|
195
|
+
### Table Components
|
|
82
196
|
|
|
83
|
-
|
|
197
|
+
```jsx
|
|
198
|
+
import { DataTable } from '@customafk/lunas-ui/table'
|
|
199
|
+
```
|
|
84
200
|
|
|
85
|
-
|
|
201
|
+
### Typography Components
|
|
86
202
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
203
|
+
```jsx
|
|
204
|
+
import { Title } from '@customafk/lunas-ui/typography/title'
|
|
205
|
+
import { Paragraph } from '@customafk/lunas-ui/typography/paragraph'
|
|
206
|
+
```
|
|
91
207
|
|
|
92
208
|
## 🎨 Theming
|
|
93
209
|
|
|
94
|
-
|
|
210
|
+
Lunas UI supports customization through CSS variables. To customize the theme:
|
|
95
211
|
|
|
96
|
-
|
|
212
|
+
1. Import the base theme:
|
|
97
213
|
|
|
98
214
|
```jsx
|
|
99
|
-
|
|
100
|
-
|
|
215
|
+
import '@customafk/lunas-ui/styles/theme'
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
2. Override CSS variables in your global CSS file:
|
|
101
219
|
|
|
102
|
-
|
|
103
|
-
|
|
220
|
+
```css
|
|
221
|
+
:root {
|
|
222
|
+
--primary: 222.2 47.4% 55.1%;
|
|
223
|
+
--primary-muted: 222.2 47.4% 95%;
|
|
224
|
+
--primary-weak: 222.2 47.4% 90%;
|
|
225
|
+
--primary-strong: 222.2 47.4% 45%;
|
|
226
|
+
--primary-intense: 222.2 47.4% 35%;
|
|
227
|
+
|
|
228
|
+
/* Other variables can be overridden similarly */
|
|
229
|
+
}
|
|
104
230
|
```
|
|
105
231
|
|
|
106
|
-
|
|
232
|
+
## 📖 Component Examples
|
|
233
|
+
|
|
234
|
+
### Form Example
|
|
107
235
|
|
|
108
236
|
```jsx
|
|
109
|
-
|
|
110
|
-
import {
|
|
237
|
+
import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'
|
|
238
|
+
import { TextField } from '@customafk/lunas-ui/forms/text-field'
|
|
239
|
+
import { PasswordField } from '@customafk/lunas-ui/forms/password-field'
|
|
240
|
+
import { Button } from '@customafk/lunas-ui/ui/button'
|
|
111
241
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
242
|
+
const LoginForm = () => {
|
|
243
|
+
const onSubmit = (data) => {
|
|
244
|
+
console.log('Form submitted:', data)
|
|
245
|
+
}
|
|
115
246
|
|
|
116
|
-
|
|
247
|
+
return (
|
|
248
|
+
<FormWrapper onSubmit={onSubmit}>
|
|
249
|
+
<TextField name="email" label="Email" placeholder="Enter your email" isShowErrorMsg />
|
|
250
|
+
<PasswordField name="password" label="Password" isShowErrorMsg />
|
|
251
|
+
<Button type="submit">Log In</Button>
|
|
252
|
+
</FormWrapper>
|
|
253
|
+
)
|
|
254
|
+
}
|
|
255
|
+
```
|
|
117
256
|
|
|
118
|
-
###
|
|
257
|
+
### Data Table Example
|
|
119
258
|
|
|
120
|
-
|
|
259
|
+
```jsx
|
|
260
|
+
import { DataTable } from '@customafk/lunas-ui/table'
|
|
261
|
+
|
|
262
|
+
const columns = [
|
|
263
|
+
{
|
|
264
|
+
accessorKey: 'name',
|
|
265
|
+
header: 'Name',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
accessorKey: 'email',
|
|
269
|
+
header: 'Email',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
accessorKey: 'role',
|
|
273
|
+
header: 'Role',
|
|
274
|
+
},
|
|
275
|
+
]
|
|
276
|
+
|
|
277
|
+
const data = [
|
|
278
|
+
{ name: 'John Doe', email: 'john@example.com', role: 'Admin' },
|
|
279
|
+
{ name: 'Jane Smith', email: 'jane@example.com', role: 'User' },
|
|
280
|
+
]
|
|
281
|
+
|
|
282
|
+
const MyTable = () => {
|
|
283
|
+
return <DataTable columns={columns} data={data} />
|
|
284
|
+
}
|
|
285
|
+
```
|
|
121
286
|
|
|
122
287
|
## 🛠️ Development
|
|
123
288
|
|
|
@@ -129,66 +294,55 @@ cd lunas-enterprise-ui-package
|
|
|
129
294
|
# Install dependencies
|
|
130
295
|
npm install
|
|
131
296
|
|
|
132
|
-
#
|
|
133
|
-
npm run
|
|
297
|
+
# Start development environment
|
|
298
|
+
npm run dev
|
|
134
299
|
|
|
135
|
-
# Run
|
|
300
|
+
# Run Storybook
|
|
136
301
|
npm run storybook
|
|
137
|
-
```
|
|
138
302
|
|
|
139
|
-
|
|
303
|
+
# Build the library
|
|
304
|
+
npm run build
|
|
305
|
+
```
|
|
140
306
|
|
|
141
307
|
## 🤝 Contributing
|
|
142
308
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Development Process
|
|
309
|
+
We welcome contributions! Please follow these steps to contribute:
|
|
146
310
|
|
|
147
311
|
1. Fork repository
|
|
148
|
-
2.
|
|
312
|
+
2. Create feature branch (`git checkout -b feature/amazing-feature`)
|
|
149
313
|
3. Commit changes (`git commit -m 'Add amazing feature'`)
|
|
150
314
|
4. Push to branch (`git push origin feature/amazing-feature`)
|
|
151
|
-
5.
|
|
315
|
+
5. Create Pull Request
|
|
152
316
|
|
|
153
317
|
### Coding Standards
|
|
154
318
|
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
- Update documentation
|
|
158
|
-
-
|
|
319
|
+
- Follow ESLint config
|
|
320
|
+
- Write tests for new features
|
|
321
|
+
- Update documentation as needed
|
|
322
|
+
- Use conventional commits
|
|
159
323
|
|
|
160
324
|
## 📝 Changelog
|
|
161
325
|
|
|
162
|
-
|
|
326
|
+
See [CHANGELOG.md](CHANGELOG.md) for version history and changes.
|
|
163
327
|
|
|
164
328
|
## 📄 License
|
|
165
329
|
|
|
166
|
-
|
|
330
|
+
ISC © [CustomAFK](https://github.com/QuangPhamvt)
|
|
167
331
|
|
|
168
332
|
## 🙋♀️ Support
|
|
169
333
|
|
|
170
|
-
- **Documentation**: [https://
|
|
171
|
-
- **GitHub Issues**: [Report bugs
|
|
172
|
-
- **
|
|
173
|
-
- **Email**: support@your-ui-library.com
|
|
334
|
+
- **Documentation**: [https://ui.lunas.vn](https://ui.lunas.vn)
|
|
335
|
+
- **GitHub Issues**: [Report bugs or feature requests](https://github.com/QuangPhamvt/lunas-enterprise-ui-package/issues)
|
|
336
|
+
- **Email**: quangpm220503vt@gmail.com
|
|
174
337
|
|
|
175
338
|
## 🏆 Credits
|
|
176
339
|
|
|
177
|
-
-
|
|
178
|
-
- Icons
|
|
179
|
-
- Inspiration
|
|
340
|
+
- Thanks to [React](https://reactjs.org/) team
|
|
341
|
+
- Icons from [Lucide React](https://lucide.dev/icons/)
|
|
342
|
+
- Inspiration from [Chakra UI](https://chakra-ui.com/) and [Material-UI](https://mui.com/)
|
|
180
343
|
|
|
181
344
|
---
|
|
182
345
|
|
|
183
346
|
<div align="center">
|
|
184
|
-
|
|
347
|
+
Created with ❤️ by <a href="https://github.com/QuangPhamvt">CustomAFK</a>
|
|
185
348
|
</div>
|
|
186
|
-
|
|
187
|
-
<!--```json
|
|
188
|
-
{
|
|
189
|
-
"./styles/base": "./styles/base.css",
|
|
190
|
-
"./styles/loader": "./styles/loader.css",
|
|
191
|
-
"./styles/theme": "./styles/theme.css",
|
|
192
|
-
"./styles/typography": "./styles/typography.css",
|
|
193
|
-
}
|
|
194
|
-
```-->
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{Paragraph as e}from"./paragraph-D4klQX4h.js";import{Button as t}from"./button-DL_i4AVi.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PlusIcon as i}from"lucide-react";const a=({onClick:a=()=>{}})=>r(t,{"aria-label":`Tạo mới`,variant:`outline`,color:`muted`,className:`outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0`,onClick:a,children:[n(i,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),n(e,{variant:`sm`,className:`max-sm:sr-only`,children:`Create`})]});export{a as AddNewBtn};
|
|
2
|
-
//# sourceMappingURL=add-new-
|
|
2
|
+
//# sourceMappingURL=add-new-B9KK77jE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-
|
|
1
|
+
{"version":3,"file":"add-new-B9KK77jE.js","names":["AddNewBtn: React.FC<React.PropsWithChildren<Props>>"],"sources":["../packages/components/ui/buttons/add-new.tsx"],"sourcesContent":["import { PlusIcon } from 'lucide-react'\n\nimport { Paragraph } from '@/components/typography/paragraph'\n\nimport { Button } from '../button'\n\ntype Props = {\n onClick?: () => void\n}\nexport const AddNewBtn: React.FC<React.PropsWithChildren<Props>> = ({ onClick = () => {} }) => {\n return (\n <Button\n aria-label=\"Tạo mới\"\n variant=\"outline\"\n color=\"muted\"\n className=\"outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0\"\n onClick={onClick}\n >\n <PlusIcon className=\"opacity-60 sm:-ms-1\" size={16} aria-hidden=\"true\" />\n <Paragraph variant=\"sm\" className=\"max-sm:sr-only\">\n Create\n </Paragraph>\n </Button>\n )\n}\n"],"mappings":"4LASA,MAAaA,GAAuD,CAAE,cAAgB,MAElF,EAAC,EAAA,CACC,aAAW,UACX,QAAQ,UACR,MAAM,QACN,UAAU,oEACD,oBAET,EAAC,EAAA,CAAS,UAAU,sBAAsB,KAAM,GAAI,cAAY,SAChE,EAAC,EAAA,CAAU,QAAQ,KAAK,UAAU,0BAAiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const e=require(`./chunk-CUT6urMc.cjs`),t=require(`./paragraph-BsEYXIR3.cjs`),n=require(`./button-ChpGfVjG.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`lucide-react`)),a=({onClick:e=()=>{}})=>(0,r.jsxs)(n.Button,{"aria-label":`Tạo mới`,variant:`outline`,color:`muted`,className:`outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0`,onClick:e,children:[(0,r.jsx)(i.PlusIcon,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),(0,r.jsx)(t.Paragraph,{variant:`sm`,className:`max-sm:sr-only`,children:`Create`})]});Object.defineProperty(exports,`AddNewBtn`,{enumerable:!0,get:function(){return a}});
|
|
2
|
-
//# sourceMappingURL=add-new-
|
|
2
|
+
//# sourceMappingURL=add-new-B9vW0r69.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-
|
|
1
|
+
{"version":3,"file":"add-new-B9vW0r69.cjs","names":["AddNewBtn: React.FC<React.PropsWithChildren<Props>>","Button","PlusIcon","Paragraph"],"sources":["../packages/components/ui/buttons/add-new.tsx"],"sourcesContent":["import { PlusIcon } from 'lucide-react'\n\nimport { Paragraph } from '@/components/typography/paragraph'\n\nimport { Button } from '../button'\n\ntype Props = {\n onClick?: () => void\n}\nexport const AddNewBtn: React.FC<React.PropsWithChildren<Props>> = ({ onClick = () => {} }) => {\n return (\n <Button\n aria-label=\"Tạo mới\"\n variant=\"outline\"\n color=\"muted\"\n className=\"outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0\"\n onClick={onClick}\n >\n <PlusIcon className=\"opacity-60 sm:-ms-1\" size={16} aria-hidden=\"true\" />\n <Paragraph variant=\"sm\" className=\"max-sm:sr-only\">\n Create\n </Paragraph>\n </Button>\n )\n}\n"],"mappings":"gMASaA,GAAuD,CAAE,cAAgB,OAElF,EAAA,EAAA,MAACC,EAAAA,OAAAA,CACC,aAAW,UACX,QAAQ,UACR,MAAM,QACN,UAAU,oEACD,qBAET,EAAA,EAAA,KAACC,EAAAA,SAAAA,CAAS,UAAU,sBAAsB,KAAM,GAAI,cAAY,UAChE,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAU,QAAQ,KAAK,UAAU,0BAAiB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/button.d.ts
|
|
@@ -7,7 +7,7 @@ declare const buttonVariants: (props?: ({
|
|
|
7
7
|
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
8
8
|
color?: "muted" | "primary" | "secondary" | "success" | "important" | "info" | "warning" | "danger" | null | undefined;
|
|
9
9
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Button({
|
|
12
12
|
className,
|
|
13
13
|
variant,
|
|
@@ -20,7 +20,7 @@ declare function Button({
|
|
|
20
20
|
}: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
21
21
|
asChild?: boolean;
|
|
22
22
|
isLoading?: boolean;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime15.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Button, buttonVariants };
|
|
26
|
-
//# sourceMappingURL=button-
|
|
26
|
+
//# sourceMappingURL=button-D_tzwFGJ.d.cts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/button.d.ts
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
8
8
|
color?: "muted" | "primary" | "secondary" | "success" | "important" | "info" | "warning" | "danger" | null | undefined;
|
|
9
9
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types2.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Button({
|
|
12
12
|
className,
|
|
13
13
|
variant,
|
|
@@ -20,7 +20,7 @@ declare function Button({
|
|
|
20
20
|
}: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
21
21
|
asChild?: boolean;
|
|
22
22
|
isLoading?: boolean;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime52.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Button, buttonVariants };
|
|
26
|
-
//# sourceMappingURL=button-
|
|
26
|
+
//# sourceMappingURL=button-NsFoJEG0.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dialog } from "./dialog-
|
|
2
|
-
import * as
|
|
1
|
+
import { Dialog } from "./dialog-BciL0byt.js";
|
|
2
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
3
3
|
import { Command } from "cmdk";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/command.d.ts
|
|
6
6
|
declare function Command$1({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command>):
|
|
9
|
+
}: React.ComponentProps<typeof Command>): react_jsx_runtime61.JSX.Element;
|
|
10
10
|
declare function CommandDialog({
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
@@ -19,34 +19,34 @@ declare function CommandDialog({
|
|
|
19
19
|
description?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
showCloseButton?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime61.JSX.Element;
|
|
23
23
|
declare function CommandInput({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Command.Input>):
|
|
26
|
+
}: React.ComponentProps<typeof Command.Input>): react_jsx_runtime61.JSX.Element;
|
|
27
27
|
declare function CommandList({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof Command.List>):
|
|
30
|
+
}: React.ComponentProps<typeof Command.List>): react_jsx_runtime61.JSX.Element;
|
|
31
31
|
declare function CommandEmpty({
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Command.Empty>):
|
|
33
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime61.JSX.Element;
|
|
34
34
|
declare function CommandGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Command.Group>):
|
|
37
|
+
}: React.ComponentProps<typeof Command.Group>): react_jsx_runtime61.JSX.Element;
|
|
38
38
|
declare function CommandSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Command.Separator>):
|
|
41
|
+
}: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime61.JSX.Element;
|
|
42
42
|
declare function CommandItem({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Command.Item>):
|
|
45
|
+
}: React.ComponentProps<typeof Command.Item>): react_jsx_runtime61.JSX.Element;
|
|
46
46
|
declare function CommandShortcut({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'span'>):
|
|
49
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime61.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
52
|
-
//# sourceMappingURL=command-
|
|
52
|
+
//# sourceMappingURL=command-7NgITO2I.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dialog } from "./dialog-
|
|
2
|
-
import * as
|
|
1
|
+
import { Dialog } from "./dialog-DdcYSxA2.cjs";
|
|
2
|
+
import * as react_jsx_runtime172 from "react/jsx-runtime";
|
|
3
3
|
import { Command } from "cmdk";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/command.d.ts
|
|
6
6
|
declare function Command$1({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command>):
|
|
9
|
+
}: React.ComponentProps<typeof Command>): react_jsx_runtime172.JSX.Element;
|
|
10
10
|
declare function CommandDialog({
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
@@ -19,34 +19,34 @@ declare function CommandDialog({
|
|
|
19
19
|
description?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
showCloseButton?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime172.JSX.Element;
|
|
23
23
|
declare function CommandInput({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Command.Input>):
|
|
26
|
+
}: React.ComponentProps<typeof Command.Input>): react_jsx_runtime172.JSX.Element;
|
|
27
27
|
declare function CommandList({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof Command.List>):
|
|
30
|
+
}: React.ComponentProps<typeof Command.List>): react_jsx_runtime172.JSX.Element;
|
|
31
31
|
declare function CommandEmpty({
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Command.Empty>):
|
|
33
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime172.JSX.Element;
|
|
34
34
|
declare function CommandGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Command.Group>):
|
|
37
|
+
}: React.ComponentProps<typeof Command.Group>): react_jsx_runtime172.JSX.Element;
|
|
38
38
|
declare function CommandSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Command.Separator>):
|
|
41
|
+
}: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime172.JSX.Element;
|
|
42
42
|
declare function CommandItem({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Command.Item>):
|
|
45
|
+
}: React.ComponentProps<typeof Command.Item>): react_jsx_runtime172.JSX.Element;
|
|
46
46
|
declare function CommandShortcut({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'span'>):
|
|
49
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime172.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
52
|
-
//# sourceMappingURL=command-
|
|
52
|
+
//# sourceMappingURL=command-HP5LITqM.d.cts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/data-display/empty.d.ts
|
|
4
|
-
declare const EmptyDisplay: () =>
|
|
4
|
+
declare const EmptyDisplay: () => react_jsx_runtime16.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { EmptyDisplay };
|
|
7
7
|
//# sourceMappingURL=empty.d.cts.map
|