oksy 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
package/public/index.html CHANGED
@@ -22,7 +22,7 @@
22
22
  height: 100% !important;
23
23
  }
24
24
  </style>
25
- <script type="module" crossorigin src="/assets/index.7c7d591a.js"></script>
25
+ <script type="module" crossorigin src="/assets/index.75c2a5f4.js"></script>
26
26
  <link rel="stylesheet" href="/assets/index.bd7a9b66.css">
27
27
  </head>
28
28
  <body class="tw-flex tw-flex-col tw-bg-gray-50">
@@ -0,0 +1,21 @@
1
+ import { BasePage } from 'oksy';
2
+ import { FlatOrFunc } from './FlatOrFunc';
3
+ import { Dayjs } from 'dayjs';
4
+ export declare type DateTimeType = {
5
+ id: string;
6
+ type: 'DATE_TIME';
7
+ disabledId: string;
8
+ getterId: string;
9
+ setterId: string;
10
+ classInit: string;
11
+ };
12
+ declare type DateTimeOptions = {
13
+ setter: (val: null | Dayjs) => void;
14
+ getter: () => null | Dayjs;
15
+ disabled?: FlatOrFunc<() => boolean>;
16
+ class?: string;
17
+ };
18
+ export declare function UseDateTime(page: BasePage): {
19
+ DateTime: (options: DateTimeOptions) => DateTimeType;
20
+ };
21
+ export {};