@itilite/lumina-ui 0.0.324 → 1.0.0-alpha
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 +43 -10
- package/dist/AdvancedDateRangePicker-CN9WN0rH.d.mts +56 -0
- package/dist/AdvancedDateRangePicker-CN9WN0rH.d.ts +56 -0
- package/dist/AdvancedDateRangePicker-CzN1HGsC.d.mts +57 -0
- package/dist/AdvancedDateRangePicker-CzN1HGsC.d.ts +57 -0
- package/dist/AdvancedDateRangePicker-DAPxgRl3.d.mts +54 -0
- package/dist/AdvancedDateRangePicker-DAPxgRl3.d.ts +54 -0
- package/dist/AdvancedDateRangePicker-DW94285G.d.mts +56 -0
- package/dist/AdvancedDateRangePicker-DW94285G.d.ts +56 -0
- package/dist/AdvancedDateRangePicker-Eh6n4ne0.d.mts +57 -0
- package/dist/AdvancedDateRangePicker-Eh6n4ne0.d.ts +57 -0
- package/dist/Avatar-DX2JwvAs.d.mts +17 -0
- package/dist/Avatar-DX2JwvAs.d.ts +17 -0
- package/dist/Table-BA0D3p1m.d.mts +78 -0
- package/dist/Table-BA0D3p1m.d.ts +78 -0
- package/dist/Table-BLZ6c46U.d.mts +77 -0
- package/dist/Table-BLZ6c46U.d.ts +77 -0
- package/dist/Table-BMqYnFi4.d.mts +25 -0
- package/dist/Table-BMqYnFi4.d.ts +25 -0
- package/dist/Table-BOq-_9Nr.d.mts +121 -0
- package/dist/Table-BOq-_9Nr.d.ts +121 -0
- package/dist/Table-BRcthrYV.d.mts +98 -0
- package/dist/Table-BRcthrYV.d.ts +98 -0
- package/dist/Table-BWlFCfBG.d.mts +106 -0
- package/dist/Table-BWlFCfBG.d.ts +106 -0
- package/dist/Table-CHFmNrme.d.mts +77 -0
- package/dist/Table-CHFmNrme.d.ts +77 -0
- package/dist/Table-CX6UwQiD.d.mts +116 -0
- package/dist/Table-CX6UwQiD.d.ts +116 -0
- package/dist/Table-Chud2XSq.d.mts +99 -0
- package/dist/Table-Chud2XSq.d.ts +99 -0
- package/dist/Table-D5QRe_j3.d.mts +121 -0
- package/dist/Table-D5QRe_j3.d.ts +121 -0
- package/dist/Table-DAgFGahx.d.mts +39 -0
- package/dist/Table-DAgFGahx.d.ts +39 -0
- package/dist/Table-DWniK7At.d.mts +87 -0
- package/dist/Table-DWniK7At.d.ts +87 -0
- package/dist/Table-PyFlnUDu.d.mts +47 -0
- package/dist/Table-PyFlnUDu.d.ts +47 -0
- package/dist/Table-wqyg13Y9.d.mts +77 -0
- package/dist/Table-wqyg13Y9.d.ts +77 -0
- package/dist/Tag-l7I5oeyk.d.mts +13 -0
- package/dist/Tag-l7I5oeyk.d.ts +13 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +2 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +2 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.js +791 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +11 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +18 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +18 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.js +370 -0
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.mjs +8 -0
- package/dist/atom/Avatar/Avatar.d.mts +9 -0
- package/dist/atom/Avatar/Avatar.d.ts +9 -0
- package/dist/atom/Avatar/Avatar.js +123 -0
- package/dist/atom/Avatar/Avatar.mjs +9 -0
- package/dist/{Button.js → atom/Button/Button.js} +4 -4
- package/dist/{Button.mjs → atom/Button/Button.mjs} +2 -2
- package/dist/{Checkbox.js → atom/Checkbox/Checkbox.js} +4 -4
- package/dist/{Checkbox.mjs → atom/Checkbox/Checkbox.mjs} +2 -2
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +19 -0
- package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +19 -0
- package/dist/atom/LoadingSpinner/LoadingSpinner.js +90 -0
- package/dist/atom/LoadingSpinner/LoadingSpinner.mjs +9 -0
- package/dist/atom/Modal/Modal.d.mts +25 -0
- package/dist/atom/Modal/Modal.d.ts +25 -0
- package/dist/atom/Modal/Modal.js +267 -0
- package/dist/atom/Modal/Modal.mjs +10 -0
- package/dist/atom/Radio/Radio.d.mts +17 -0
- package/dist/atom/Radio/Radio.d.ts +17 -0
- package/dist/atom/Radio/Radio.js +122 -0
- package/dist/atom/Radio/Radio.mjs +9 -0
- package/dist/atom/RangePicker/Chevron.d.mts +13 -0
- package/dist/atom/RangePicker/Chevron.d.ts +13 -0
- package/dist/atom/RangePicker/Chevron.js +110 -0
- package/dist/atom/RangePicker/Chevron.mjs +7 -0
- package/dist/atom/RangePicker/RangePicker.d.mts +26 -0
- package/dist/atom/RangePicker/RangePicker.d.ts +26 -0
- package/dist/atom/RangePicker/RangePicker.js +1465 -0
- package/dist/atom/RangePicker/RangePicker.mjs +13 -0
- package/dist/atom/Select/Select.d.mts +40 -0
- package/dist/atom/Select/Select.d.ts +40 -0
- package/dist/atom/Select/Select.js +805 -0
- package/dist/atom/Select/Select.mjs +11 -0
- package/dist/atom/Slider/Slider.d.mts +34 -0
- package/dist/atom/Slider/Slider.d.ts +34 -0
- package/dist/atom/Slider/Slider.js +107 -0
- package/dist/atom/Slider/Slider.mjs +9 -0
- package/dist/atom/Switch/Switch.d.mts +13 -0
- package/dist/atom/Switch/Switch.d.ts +13 -0
- package/dist/atom/Switch/Switch.js +102 -0
- package/dist/atom/Switch/Switch.mjs +9 -0
- package/dist/atom/Table/LuminaPagination.d.mts +7 -0
- package/dist/atom/Table/LuminaPagination.d.ts +7 -0
- package/dist/atom/Table/LuminaPagination.js +153 -0
- package/dist/atom/Table/LuminaPagination.mjs +9 -0
- package/dist/atom/Table/Table.d.mts +3 -0
- package/dist/atom/Table/Table.d.ts +3 -0
- package/dist/atom/Table/Table.js +306 -0
- package/dist/atom/Table/Table.mjs +9 -0
- package/dist/atom/Table/TableAccordion.d.mts +9 -0
- package/dist/atom/Table/TableAccordion.d.ts +9 -0
- package/dist/atom/Table/TableAccordion.js +91 -0
- package/dist/atom/Table/TableAccordion.mjs +10 -0
- package/dist/atom/Table/TableColumnHeader.d.mts +7 -0
- package/dist/atom/Table/TableColumnHeader.d.ts +7 -0
- package/dist/atom/Table/TableColumnHeader.js +151 -0
- package/dist/atom/Table/TableColumnHeader.mjs +10 -0
- package/dist/atom/Table/TableToolbar.d.mts +9 -0
- package/dist/atom/Table/TableToolbar.d.ts +9 -0
- package/dist/atom/Table/TableToolbar.js +114 -0
- package/dist/atom/Table/TableToolbar.mjs +10 -0
- package/dist/atom/Table/__tests__/Table.test.d.mts +2 -0
- package/dist/atom/Table/__tests__/Table.test.d.ts +2 -0
- package/dist/atom/Table/__tests__/Table.test.js +61133 -0
- package/dist/atom/Table/__tests__/Table.test.mjs +59522 -0
- package/dist/atom/TableAccordion/index.d.mts +17 -0
- package/dist/atom/TableAccordion/index.d.ts +17 -0
- package/dist/atom/TableAccordion/index.js +91 -0
- package/dist/atom/TableAccordion/index.mjs +9 -0
- package/dist/atom/TableToolbar/index.d.mts +23 -0
- package/dist/atom/TableToolbar/index.d.ts +23 -0
- package/dist/atom/TableToolbar/index.js +114 -0
- package/dist/atom/TableToolbar/index.mjs +9 -0
- package/dist/atom/Tag/Tag.d.mts +6 -0
- package/dist/atom/Tag/Tag.d.ts +6 -0
- package/dist/atom/Tag/Tag.js +108 -0
- package/dist/atom/Tag/Tag.mjs +9 -0
- package/dist/atom/Tooltip/Tooltip.d.mts +12 -0
- package/dist/atom/Tooltip/Tooltip.d.ts +12 -0
- package/dist/atom/Tooltip/Tooltip.js +97 -0
- package/dist/atom/Tooltip/Tooltip.mjs +9 -0
- package/dist/chunk-2EBPXGRY.mjs +65 -0
- package/dist/chunk-2PIFDGVK.mjs +420 -0
- package/dist/chunk-35KDS27M.mjs +618 -0
- package/dist/chunk-3S4X3YO2.mjs +64 -0
- package/dist/chunk-3XUHGVYA.mjs +77 -0
- package/dist/chunk-4JX54OKI.mjs +627 -0
- package/dist/chunk-4VZB2KR2.mjs +51 -0
- package/dist/chunk-5HF6Y37C.mjs +642 -0
- package/dist/chunk-5OGQ4YIR.mjs +238 -0
- package/dist/chunk-6FCSXN7R.mjs +388 -0
- package/dist/chunk-7W72LPSU.mjs +66 -0
- package/dist/chunk-A66QDQHK.mjs +627 -0
- package/dist/chunk-ABLIL47F.mjs +618 -0
- package/dist/chunk-AEPDEUGY.mjs +627 -0
- package/dist/chunk-AF2RKLH6.mjs +77 -0
- package/dist/chunk-AFLEGUF3.mjs +232 -0
- package/dist/chunk-APCEITHQ.mjs +232 -0
- package/dist/chunk-AVQBFGBT.mjs +141 -0
- package/dist/chunk-B5BOBELW.mjs +213 -0
- package/dist/chunk-BQ4PVLJ4.mjs +262 -0
- package/dist/chunk-D3N7VFER.mjs +73 -0
- package/dist/{chunk-OMYHSSPQ.mjs → chunk-DBNLBCQK.mjs} +5 -5
- package/dist/chunk-DLLT6V65.mjs +141 -0
- package/dist/chunk-DOQQRYTS.mjs +73 -0
- package/dist/chunk-DSVR2DVF.mjs +660 -0
- package/dist/chunk-DXUPULDI.mjs +424 -0
- package/dist/chunk-E465D6OH.mjs +644 -0
- package/dist/chunk-E4FCLHYA.mjs +678 -0
- package/dist/chunk-ENQN5BAN.mjs +225 -0
- package/dist/chunk-F6VMSH4N.mjs +79 -0
- package/dist/chunk-FKGGN3FA.mjs +412 -0
- package/dist/chunk-GFTO2N3Q.mjs +432 -0
- package/dist/chunk-GM6H6RPJ.mjs +232 -0
- package/dist/chunk-GU5F7Z7I.mjs +681 -0
- package/dist/chunk-HF3VJBMY.mjs +244 -0
- package/dist/{chunk-ME35H7QC.mjs → chunk-HISCHZ5H.mjs} +4 -4
- package/dist/chunk-HWQBE6PT.mjs +99 -0
- package/dist/chunk-HXM657YW.mjs +115 -0
- package/dist/chunk-I5VHKSQR.mjs +64 -0
- package/dist/chunk-ICSZZNTY.mjs +384 -0
- package/dist/chunk-IWO2Y5QX.mjs +89 -0
- package/dist/chunk-IZGLD7U3.mjs +667 -0
- package/dist/chunk-J7X2PZG6.mjs +232 -0
- package/dist/chunk-JUXBLRMQ.mjs +50 -0
- package/dist/chunk-JXFSGADI.mjs +678 -0
- package/dist/chunk-KGKRSR6D.mjs +388 -0
- package/dist/chunk-KQKNFGWZ.mjs +388 -0
- package/dist/chunk-LCH4DXJY.mjs +92 -0
- package/dist/chunk-LCXU3K57.mjs +232 -0
- package/dist/chunk-LRN4XOIR.mjs +71 -0
- package/dist/chunk-LROMXY35.mjs +116 -0
- package/dist/chunk-LUNPHYAR.mjs +681 -0
- package/dist/chunk-LVOTEPLC.mjs +64 -0
- package/dist/chunk-M2ZM3X5Y.mjs +56 -0
- package/dist/chunk-M4MIYHAV.mjs +43 -0
- package/dist/chunk-M7F7DOC4.mjs +41 -0
- package/dist/chunk-MHWFVML4.mjs +115 -0
- package/dist/chunk-MLCMZRUC.mjs +50 -0
- package/dist/chunk-MNARBWAJ.mjs +47 -0
- package/dist/chunk-MPTVYTYS.mjs +0 -0
- package/dist/chunk-MQFW3LZR.mjs +111 -0
- package/dist/chunk-N2WTNCQU.mjs +66 -0
- package/dist/chunk-N355RJGH.mjs +141 -0
- package/dist/chunk-N3YFQDW7.mjs +77 -0
- package/dist/chunk-N4DPPZVJ.mjs +269 -0
- package/dist/chunk-NGCBOOIE.mjs +225 -0
- package/dist/chunk-NWQQYJSP.mjs +688 -0
- package/dist/chunk-NYQV556V.mjs +667 -0
- package/dist/chunk-O5C3355V.mjs +246 -0
- package/dist/chunk-OCP43S7U.mjs +241 -0
- package/dist/chunk-OHLFRULE.mjs +432 -0
- package/dist/chunk-PLO46EKV.mjs +65 -0
- package/dist/chunk-PQ3B2FEB.mjs +249 -0
- package/dist/chunk-PSBEYGD4.mjs +618 -0
- package/dist/chunk-PWIBJI6Z.mjs +115 -0
- package/dist/chunk-Q5KPXEH5.mjs +223 -0
- package/dist/chunk-QC34HHAY.mjs +57 -0
- package/dist/chunk-QKTMWS4J.mjs +43 -0
- package/dist/chunk-QVWV36BK.mjs +73 -0
- package/dist/chunk-QWK3MYDM.mjs +64 -0
- package/dist/chunk-RE44YAMD.mjs +47 -0
- package/dist/chunk-RH6DAYBU.mjs +369 -0
- package/dist/chunk-RSSEJENT.mjs +269 -0
- package/dist/chunk-SJBS5QCJ.mjs +225 -0
- package/dist/chunk-SWRFCTJW.mjs +77 -0
- package/dist/chunk-T4XNCAIB.mjs +231 -0
- package/dist/chunk-TCX5IFQ4.mjs +627 -0
- package/dist/chunk-TSAUBT2F.mjs +74 -0
- package/dist/chunk-U7Q7ILSE.mjs +690 -0
- package/dist/chunk-UHTUJJH7.mjs +112 -0
- package/dist/chunk-UOHYCMUS.mjs +53 -0
- package/dist/chunk-UQJ3BDM4.mjs +141 -0
- package/dist/chunk-UQZBL3F7.mjs +0 -0
- package/dist/chunk-UQZNUEZE.mjs +64 -0
- package/dist/chunk-URGYNKJM.mjs +229 -0
- package/dist/chunk-UTMZY37A.mjs +141 -0
- package/dist/chunk-UUEPD2FH.mjs +141 -0
- package/dist/chunk-V3CHJHUX.mjs +424 -0
- package/dist/chunk-VQOUJQIF.mjs +249 -0
- package/dist/chunk-VY3QH43W.mjs +6 -0
- package/dist/chunk-W2N3AWY6.mjs +80 -0
- package/dist/chunk-WUVS6S7N.mjs +119 -0
- package/dist/chunk-WZS2K7X3.mjs +688 -0
- package/dist/chunk-X76GNSBB.mjs +87 -0
- package/dist/chunk-XG7CZXBW.mjs +244 -0
- package/dist/chunk-XXKIBYXD.mjs +109 -0
- package/dist/chunk-XXTUVMAY.mjs +51 -0
- package/dist/chunk-Y3BIY4DW.mjs +618 -0
- package/dist/chunk-Y7FP6ZMW.mjs +225 -0
- package/dist/chunk-YELLXCMY.mjs +265 -0
- package/dist/chunk-YQEEM26W.mjs +232 -0
- package/dist/chunk-ZGFE3OPJ.mjs +678 -0
- package/dist/chunk-ZMJ3KDDY.mjs +618 -0
- package/dist/chunk-ZTRM4HZJ.mjs +53 -0
- package/dist/chunk-ZYPWQ53U.mjs +6 -0
- package/dist/dist-U2IPN4FB.mjs +567 -0
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +2820 -13
- package/dist/index.mjs +59 -5
- package/dist/magic-string.es-XOWQCRDO.mjs +1311 -0
- package/dist/molecules/UserProfile/UserProfile.d.mts +23 -0
- package/dist/molecules/UserProfile/UserProfile.d.ts +23 -0
- package/dist/molecules/UserProfile/UserProfile.js +243 -0
- package/dist/molecules/UserProfile/UserProfile.mjs +11 -0
- package/dist/styles.css +1809 -1366
- package/dist/types-CA0Wby2L.d.mts +67 -0
- package/dist/types-CA0Wby2L.d.ts +67 -0
- package/dist/types-CncMmuJM.d.mts +44 -0
- package/dist/types-CncMmuJM.d.ts +44 -0
- package/dist/types-D4MD2w3_.d.mts +9 -0
- package/dist/types-D4MD2w3_.d.ts +9 -0
- package/dist/types-D4fdeMWQ.d.mts +62 -0
- package/dist/types-D4fdeMWQ.d.ts +62 -0
- package/dist/types-mhQmqhsR.d.mts +10 -0
- package/dist/types-mhQmqhsR.d.ts +10 -0
- package/package.json +9 -15
- /package/dist/{Button.d.mts → atom/Button/Button.d.mts} +0 -0
- /package/dist/{Button.d.ts → atom/Button/Button.d.ts} +0 -0
- /package/dist/{Checkbox.d.mts → atom/Checkbox/Checkbox.d.mts} +0 -0
- /package/dist/{Checkbox.d.ts → atom/Checkbox/Checkbox.d.ts} +0 -0
- /package/dist/{chunk-FUJQIYOF.mjs → chunk-FWCSY2DS.mjs} +0 -0
package/README.md
CHANGED
|
@@ -22,6 +22,43 @@ npm install react antd
|
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
|
+
### Prerequisites
|
|
26
|
+
|
|
27
|
+
This component library requires Tailwind CSS to be set up in your consuming application. The components use Tailwind utility classes and will not be styled without it.
|
|
28
|
+
|
|
29
|
+
#### Setting up Tailwind CSS in your app
|
|
30
|
+
|
|
31
|
+
1. Install Tailwind CSS:
|
|
32
|
+
```bash
|
|
33
|
+
npm install -D tailwindcss postcss autoprefixer
|
|
34
|
+
npx tailwindcss init
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
2. Configure Tailwind to scan your app (you don't need to scan the component library):
|
|
38
|
+
```js
|
|
39
|
+
// tailwind.config.js
|
|
40
|
+
module.exports = {
|
|
41
|
+
content: [
|
|
42
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
|
43
|
+
// No need to scan node_modules - component utilities are pre-compiled
|
|
44
|
+
],
|
|
45
|
+
theme: {
|
|
46
|
+
extend: {},
|
|
47
|
+
},
|
|
48
|
+
plugins: [],
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
3. Add Tailwind directives to your main CSS file:
|
|
53
|
+
```css
|
|
54
|
+
/* app.css or index.css */
|
|
55
|
+
@tailwind base;
|
|
56
|
+
@tailwind components;
|
|
57
|
+
@tailwind utilities;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Important:** The component library includes only the Tailwind utilities it uses. Your app must provide the base/reset styles via `@tailwind base`.
|
|
61
|
+
|
|
25
62
|
### Importing Components
|
|
26
63
|
|
|
27
64
|
You can import components individually (recommended for tree-shaking):
|
|
@@ -29,21 +66,20 @@ You can import components individually (recommended for tree-shaking):
|
|
|
29
66
|
```tsx
|
|
30
67
|
import { Button } from '@itilite/lumina-ui/button';
|
|
31
68
|
import { Checkbox } from '@itilite/lumina-ui/checkbox';
|
|
32
|
-
import '@itilite/lumina-ui/styles.css';
|
|
69
|
+
import '@itilite/lumina-ui/styles.css'; // Import component styles
|
|
33
70
|
```
|
|
34
71
|
|
|
35
72
|
Or import all components from the main entry point:
|
|
36
73
|
|
|
37
74
|
```tsx
|
|
38
75
|
import { Button, Checkbox } from '@itilite/lumina-ui';
|
|
39
|
-
import '@itilite/lumina-ui/styles.css';
|
|
76
|
+
import '@itilite/lumina-ui/styles.css'; // Import component styles
|
|
40
77
|
```
|
|
41
78
|
|
|
42
79
|
### Button Component
|
|
43
80
|
|
|
44
81
|
```tsx
|
|
45
82
|
import { Button } from '@itilite/lumina-ui/button';
|
|
46
|
-
import '@itilite/lumina-ui/styles.css';
|
|
47
83
|
|
|
48
84
|
function App() {
|
|
49
85
|
return (
|
|
@@ -58,7 +94,6 @@ function App() {
|
|
|
58
94
|
|
|
59
95
|
```tsx
|
|
60
96
|
import { Checkbox } from '@itilite/lumina-ui/checkbox';
|
|
61
|
-
import '@itilite/lumina-ui/styles.css';
|
|
62
97
|
|
|
63
98
|
function App() {
|
|
64
99
|
return (
|
|
@@ -69,13 +104,11 @@ function App() {
|
|
|
69
104
|
}
|
|
70
105
|
```
|
|
71
106
|
|
|
72
|
-
##
|
|
107
|
+
## Requirements
|
|
73
108
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
import '@itilite/lumina-ui/styles.css';
|
|
78
|
-
```
|
|
109
|
+
- **Tailwind CSS**: This library requires Tailwind CSS to be configured in your consuming application
|
|
110
|
+
- **React**: 18+
|
|
111
|
+
- **Ant Design**: 5.13.1
|
|
79
112
|
|
|
80
113
|
## Available Components
|
|
81
114
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => [Date, Date];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, }: DateRangePickerProps): React.JSX.Element;
|
|
52
|
+
declare namespace AdvancedDateRangePicker {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => [Date, Date];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, }: DateRangePickerProps): React.JSX.Element;
|
|
52
|
+
declare namespace AdvancedDateRangePicker {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
timezoneOptions?: TimezoneOption[];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, }: DateRangePickerProps): React.JSX.Element;
|
|
53
|
+
declare namespace AdvancedDateRangePicker {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
timezoneOptions?: TimezoneOption[];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, }: DateRangePickerProps): React.JSX.Element;
|
|
53
|
+
declare namespace AdvancedDateRangePicker {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => [Date, Date];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, }: DateRangePickerProps): React.JSX.Element;
|
|
50
|
+
declare namespace AdvancedDateRangePicker {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => [Date, Date];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, }: DateRangePickerProps): React.JSX.Element;
|
|
50
|
+
declare namespace AdvancedDateRangePicker {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, }: DateRangePickerProps): React.JSX.Element;
|
|
52
|
+
declare namespace AdvancedDateRangePicker {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, }: DateRangePickerProps): React.JSX.Element;
|
|
52
|
+
declare namespace AdvancedDateRangePicker {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
timezoneOptions?: TimezoneOption[];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, }: DateRangePickerProps): React.JSX.Element;
|
|
53
|
+
declare namespace AdvancedDateRangePicker {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
timezoneOptions?: TimezoneOption[];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, }: DateRangePickerProps): React.JSX.Element;
|
|
53
|
+
declare namespace AdvancedDateRangePicker {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { AdvancedDateRangePicker as A, type DateRangeValue as D, type PresetOption as P, type TimeValue as T, type TimezoneOption as a, type DateRangePickerProps as b };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface AvatarProps {
|
|
4
|
+
img?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
size?: "small" | "normal";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.JSX.Element;
|
|
13
|
+
declare namespace Avatar {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { type AvatarProps as A, Avatar as a };
|