react-cron-generator 2.0.15 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,6 +85,12 @@ const options = {
85
85
 
86
86
  ```
87
87
 
88
+ ## Importables
89
+
90
+ Cron - The react Cron component. - Default
91
+ CronProp - Cron component types.
92
+ cronsture - Cronsture/i18 - [cronstrue](https://www.npmjs.com/package/cronstrue)
93
+
88
94
 
89
95
  ## Release notes 2.x.x
90
96
  1. Build Procedure updated
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent } from 'react';
2
2
  interface MonthlyCronProp {
3
3
  onChange(e?: string[]): void;
4
4
  value: string[];
package/build/cron.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { HeaderKeyType } from './meta';
3
3
  import './cron-builder.css';
4
- interface CronProp {
4
+ export interface CronProp {
5
5
  value?: string;
6
6
  onChange(val: string, text: string): void;
7
7
  showResultText: boolean;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ type DaySelectProp = {
3
+ disabled?: boolean;
4
+ onChange(value: null | string): void;
5
+ value: string;
6
+ multi?: false;
7
+ } | {
8
+ multi: true;
9
+ disabled?: boolean;
10
+ onChange(value: string[]): void;
11
+ value: string[];
12
+ };
13
+ declare const DaySelect: React.FunctionComponent<DaySelectProp>;
14
+ export default DaySelect;
package/build/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- import Cron from './cron';
1
+ import Cron, { CronProp } from './cron';
2
2
  import { HEADER } from './meta';
3
- export { HEADER };
3
+ import cronstrue from 'cronstrue/i18n';
4
+ export { HEADER, cronstrue };
5
+ export type { CronProp };
4
6
  export default Cron;