lll-date-picker 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 +176 -0
- package/dist/components/LLLDatePicker/DateInputs.d.ts +12 -0
- package/dist/components/LLLDatePicker/DateInputs.d.ts.map +1 -0
- package/dist/components/LLLDatePicker/PresetButtons.d.ts +12 -0
- package/dist/components/LLLDatePicker/PresetButtons.d.ts.map +1 -0
- package/dist/components/LLLDatePicker/index.d.ts +6 -0
- package/dist/components/LLLDatePicker/index.d.ts.map +1 -0
- package/dist/components/LLLDatePicker/types.d.ts +24 -0
- package/dist/components/LLLDatePicker/types.d.ts.map +1 -0
- package/dist/components/LLLDatePicker/utils.d.ts +59 -0
- package/dist/components/LLLDatePicker/utils.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/index.cjs +100 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9059 -0
- package/dist/lib/utils.d.ts +4 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +84 -0
package/README.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# LLLDatePicker
|
|
2
|
+
|
|
3
|
+
A modern, customizable date picker library for React with Lao language support. Built with React, TypeScript, TailwindCSS, and shadcn/ui.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- ✅ **Lao Language Support** - All preset buttons and labels in Lao
|
|
8
|
+
- ✅ **Manual Date Input** - Separate day/month/year input fields
|
|
9
|
+
- ✅ **8 Preset Date Ranges** - Quick selection for common date ranges
|
|
10
|
+
- ✅ **Customizable Styling** - Full control via className props
|
|
11
|
+
- ✅ **TypeScript Support** - Complete type definitions included
|
|
12
|
+
- ✅ **Modern UI** - Built with shadcn/ui components
|
|
13
|
+
- ✅ **Lightweight** - Minimal dependencies
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Using pnpm
|
|
19
|
+
pnpm install lll-date-picker
|
|
20
|
+
|
|
21
|
+
# Using npm
|
|
22
|
+
npm install lll-date-picker
|
|
23
|
+
|
|
24
|
+
# Using yarn
|
|
25
|
+
yarn add lll-date-picker
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Quick Start
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { LLLDatePicker } from 'lll-date-picker';
|
|
32
|
+
import 'lll-date-picker/styles.css';
|
|
33
|
+
|
|
34
|
+
function App() {
|
|
35
|
+
const handleDateChange = (startDate: Date | null, endDate: Date | null) => {
|
|
36
|
+
console.log('Selected dates:', { startDate, endDate });
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<LLLDatePicker
|
|
41
|
+
onDateChange={handleDateChange}
|
|
42
|
+
placeholder="ເລືອກວັນທີ"
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Props API
|
|
49
|
+
|
|
50
|
+
| Prop | Type | Default | Description |
|
|
51
|
+
|------|------|---------|-------------|
|
|
52
|
+
| `startDate` | `Date \| undefined` | `undefined` | Initial start date |
|
|
53
|
+
| `endDate` | `Date \| undefined` | `undefined` | Initial end date |
|
|
54
|
+
| `onDateChange` | `(startDate: Date \| null, endDate: Date \| null) => void` | `undefined` | Callback when dates change |
|
|
55
|
+
| `className` | `string` | `undefined` | Custom CSS classes for root container |
|
|
56
|
+
| `buttonClassName` | `string` | `undefined` | Custom CSS classes for trigger button |
|
|
57
|
+
| `dropdownClassName` | `string` | `undefined` | Custom CSS classes for dropdown card |
|
|
58
|
+
| `disabled` | `boolean` | `false` | Disable the date picker |
|
|
59
|
+
| `placeholder` | `string` | `'ເລືອກວັນທີ'` | Placeholder text for button |
|
|
60
|
+
|
|
61
|
+
## Preset Date Ranges
|
|
62
|
+
|
|
63
|
+
The date picker includes 8 preset options in Lao:
|
|
64
|
+
|
|
65
|
+
| Preset | Lao | Description |
|
|
66
|
+
|--------|-----|-------------|
|
|
67
|
+
| Today | ມື້ນີ້ | Current day |
|
|
68
|
+
| Yesterday | ມື້ວານ | Previous day |
|
|
69
|
+
| Last Week | ອາທິດກ່ອນ | 7 days ago to yesterday |
|
|
70
|
+
| This Week | ອາທິດນີ້ | Monday to today |
|
|
71
|
+
| Last Month | ເດືອນກ່ອນ | First to last day of previous month |
|
|
72
|
+
| This Month | ເດືອນນີ້ | First day of month to today |
|
|
73
|
+
| Last Year | ປີກ່ອນ | Jan 1 to Dec 31 of previous year |
|
|
74
|
+
| This Year | ປີນີ້ | Jan 1 to today |
|
|
75
|
+
|
|
76
|
+
## Examples
|
|
77
|
+
|
|
78
|
+
### With Initial Values
|
|
79
|
+
|
|
80
|
+
```tsx
|
|
81
|
+
<LLLDatePicker
|
|
82
|
+
startDate={new Date('2024-01-01')}
|
|
83
|
+
endDate={new Date('2024-12-31')}
|
|
84
|
+
onDateChange={handleDateChange}
|
|
85
|
+
/>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Custom Styling
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
<LLLDatePicker
|
|
92
|
+
buttonClassName="bg-blue-500 text-white hover:bg-blue-600"
|
|
93
|
+
dropdownClassName="shadow-2xl"
|
|
94
|
+
onDateChange={handleDateChange}
|
|
95
|
+
/>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Controlled Component
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
function ControlledExample() {
|
|
102
|
+
const [startDate, setStartDate] = useState<Date | null>(null);
|
|
103
|
+
const [endDate, setEndDate] = useState<Date | null>(null);
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<LLLDatePicker
|
|
107
|
+
startDate={startDate || undefined}
|
|
108
|
+
endDate={endDate || undefined}
|
|
109
|
+
onDateChange={(start, end) => {
|
|
110
|
+
setStartDate(start);
|
|
111
|
+
setEndDate(end);
|
|
112
|
+
}}
|
|
113
|
+
/>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Utility Functions
|
|
119
|
+
|
|
120
|
+
The library also exports utility functions for advanced usage:
|
|
121
|
+
|
|
122
|
+
```tsx
|
|
123
|
+
import {
|
|
124
|
+
getToday,
|
|
125
|
+
getYesterday,
|
|
126
|
+
getLastWeek,
|
|
127
|
+
getThisWeek,
|
|
128
|
+
getLastMonth,
|
|
129
|
+
getThisMonth,
|
|
130
|
+
getLastYear,
|
|
131
|
+
getThisYear,
|
|
132
|
+
formatDate,
|
|
133
|
+
parseDate,
|
|
134
|
+
isValidDate,
|
|
135
|
+
createDate,
|
|
136
|
+
extractDateParts,
|
|
137
|
+
} from 'lll-date-picker';
|
|
138
|
+
|
|
139
|
+
// Example: Get today's date range
|
|
140
|
+
const today = getToday();
|
|
141
|
+
console.log(today); // { startDate: Date, endDate: Date }
|
|
142
|
+
|
|
143
|
+
// Example: Format a date
|
|
144
|
+
const formatted = formatDate(new Date()); // "05/02/2026"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Development
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Install dependencies
|
|
151
|
+
pnpm install
|
|
152
|
+
|
|
153
|
+
# Run development server
|
|
154
|
+
pnpm dev
|
|
155
|
+
|
|
156
|
+
# Build library
|
|
157
|
+
pnpm build
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Tech Stack
|
|
161
|
+
|
|
162
|
+
- **React** - UI library
|
|
163
|
+
- **TypeScript** - Type safety
|
|
164
|
+
- **TailwindCSS** - Styling
|
|
165
|
+
- **shadcn/ui** - UI components
|
|
166
|
+
- **date-fns** - Date utilities
|
|
167
|
+
- **Vite** - Build tool
|
|
168
|
+
- **pnpm** - Package manager
|
|
169
|
+
|
|
170
|
+
## License
|
|
171
|
+
|
|
172
|
+
MIT
|
|
173
|
+
|
|
174
|
+
## Contributing
|
|
175
|
+
|
|
176
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface DateInputsProps {
|
|
4
|
+
startDate: Date | null;
|
|
5
|
+
endDate: Date | null;
|
|
6
|
+
onStartDateChange: (date: Date | null) => void;
|
|
7
|
+
onEndDateChange: (date: Date | null) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DateInputs: React.FC<DateInputsProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=DateInputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateInputs.d.ts","sourceRoot":"","sources":["../../../src/components/LLLDatePicker/DateInputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,eAAe;IACrB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,eAAe,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0DhD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateRange } from './types';
|
|
3
|
+
|
|
4
|
+
interface PresetButtonsProps {
|
|
5
|
+
onPresetSelect: (range: DateRange) => void;
|
|
6
|
+
startDate: Date | null;
|
|
7
|
+
endDate: Date | null;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PresetButtons: React.FC<PresetButtonsProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PresetButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresetButtons.d.ts","sourceRoot":"","sources":["../../../src/components/LLLDatePicker/PresetButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,UAAU,kBAAkB;IACxB,cAAc,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAcD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6DtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LLLDatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,EAAE,kBAAkB,EAAa,MAAM,SAAS,CAAC;AAExD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqGtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface LLLDatePickerProps {
|
|
2
|
+
/** Initial start date */
|
|
3
|
+
startDate?: Date;
|
|
4
|
+
/** Initial end date */
|
|
5
|
+
endDate?: Date;
|
|
6
|
+
/** Callback when dates change */
|
|
7
|
+
onDateChange?: (startDate: Date | null, endDate: Date | null) => void;
|
|
8
|
+
/** Custom CSS classes for the root container */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Custom CSS classes for the trigger button */
|
|
11
|
+
buttonClassName?: string;
|
|
12
|
+
/** Custom CSS classes for the dropdown card */
|
|
13
|
+
dropdownClassName?: string;
|
|
14
|
+
/** Disable the date picker */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Placeholder text for the button */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
}
|
|
19
|
+
export type DatePreset = 'today' | 'yesterday' | 'lastWeek' | 'thisWeek' | 'lastMonth' | 'thisMonth' | 'lastYear' | 'thisYear';
|
|
20
|
+
export interface DateRange {
|
|
21
|
+
startDate: Date | null;
|
|
22
|
+
endDate: Date | null;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/LLLDatePicker/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,yBAAyB;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,uBAAuB;IACvB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtE,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,UAAU,GAChB,OAAO,GACP,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,CAAC;AAEjB,MAAM,WAAW,SAAS;IACtB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { DateRange } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get today's date range (start and end are the same)
|
|
5
|
+
*/
|
|
6
|
+
export declare const getToday: () => DateRange;
|
|
7
|
+
/**
|
|
8
|
+
* Get yesterday's date range
|
|
9
|
+
*/
|
|
10
|
+
export declare const getYesterday: () => DateRange;
|
|
11
|
+
/**
|
|
12
|
+
* Get last week's date range (7 days ago to yesterday)
|
|
13
|
+
*/
|
|
14
|
+
export declare const getLastWeek: () => DateRange;
|
|
15
|
+
/**
|
|
16
|
+
* Get this week's date range (Monday to today)
|
|
17
|
+
*/
|
|
18
|
+
export declare const getThisWeek: () => DateRange;
|
|
19
|
+
/**
|
|
20
|
+
* Get last month's date range (first to last day of previous month)
|
|
21
|
+
*/
|
|
22
|
+
export declare const getLastMonth: () => DateRange;
|
|
23
|
+
/**
|
|
24
|
+
* Get this month's date range (first day to today)
|
|
25
|
+
*/
|
|
26
|
+
export declare const getThisMonth: () => DateRange;
|
|
27
|
+
/**
|
|
28
|
+
* Get last year's date range (Jan 1 to Dec 31 of previous year)
|
|
29
|
+
*/
|
|
30
|
+
export declare const getLastYear: () => DateRange;
|
|
31
|
+
/**
|
|
32
|
+
* Get this year's date range (Jan 1 to today)
|
|
33
|
+
*/
|
|
34
|
+
export declare const getThisYear: () => DateRange;
|
|
35
|
+
/**
|
|
36
|
+
* Format a date to display string (DD/MM/YYYY)
|
|
37
|
+
*/
|
|
38
|
+
export declare const formatDate: (date: Date | null) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Parse a date string to Date object
|
|
41
|
+
*/
|
|
42
|
+
export declare const parseDate: (dateStr: string) => Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* Validate if a day/month/year combination is valid
|
|
45
|
+
*/
|
|
46
|
+
export declare const isValidDate: (day: number, month: number, year: number) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Create a date from day, month, year
|
|
49
|
+
*/
|
|
50
|
+
export declare const createDate: (day: number, month: number, year: number) => Date | null;
|
|
51
|
+
/**
|
|
52
|
+
* Extract day, month, year from a Date object
|
|
53
|
+
*/
|
|
54
|
+
export declare const extractDateParts: (date: Date | null) => {
|
|
55
|
+
day: number;
|
|
56
|
+
month: number;
|
|
57
|
+
year: number;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/LLLDatePicker/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,QAAQ,QAAO,SAI3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,SAI/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,SAM9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,SAK9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,SAK/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,SAK/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,SAK9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,SAK9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,GAAG,IAAI,KAAG,MAG9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,MAAM,KAAG,IAAI,GAAG,IAGlD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,KAAG,OAWtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,KAAG,IAAI,GAAG,IAK5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,GAAG,IAAI,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAS9F,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
12
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EA2BnB,CAAA;AAED,MAAM,WAAW,WACb,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACrD,YAAY,CAAC,OAAO,cAAc,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -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<HTMLParagraphElement>>;
|
|
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/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,IAAI,6GAYR,CAAA;AAGF,QAAA,MAAM,UAAU,6GASd,CAAA;AAGF,QAAA,MAAM,SAAS,uHAYb,CAAA;AAGF,QAAA,MAAM,eAAe,yHASnB,CAAA;AAGF,QAAA,MAAM,WAAW,6GAKf,CAAA;AAGF,QAAA,MAAM,UAAU,6GASd,CAAA;AAGF,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -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/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,UACb,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAI;AAE3D,QAAA,MAAM,KAAK,qFAcV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
7
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,QAAA,MAAM,OAAO,yCAAwB,CAAA;AAErC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,cAAc,gKAgBlB,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
8
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAIrD,QAAA,MAAM,IAAI,gGAAqB,CAAA;AAE/B,QAAA,MAAM,QAAQ,uJAYZ,CAAA;AAGF,QAAA,MAAM,WAAW,gKAYf,CAAA;AAGF,QAAA,MAAM,WAAW,0JAYf,CAAA;AAGF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA"}
|