@bigbinary/neetoui 3.5.10 → 3.5.13

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/CHANGELOG.md CHANGED
@@ -23,6 +23,20 @@ Prefix the change with one of these keywords:
23
23
  - *Fixed*: for any bug fixes.
24
24
  - *Security*: in case of vulnerabilities.
25
25
 
26
+ ## 3.5.13 - 2022-07-28
27
+
28
+ - Added: type support for all exported components. IDE will now auto-predict the component props.
29
+ - Changed: Deprecated babel-eslint was replaced with @babel/eslint-parser
30
+
31
+ ## 3.5.12 - 2022-07-25
32
+
33
+ - Security: Bump moment from 2.29.3 to 2.29.4
34
+
35
+ ## 3.5.11 - 2022-07-06
36
+
37
+ - Added: a *Button* component in neetoui/formik that automatically disables itself if the form is not in a submittable state. Example: the form contains any invalid data, the form content has not been changed, or the form is already being submitted. To make this work, you need to import *Button* from "neetoui/formik" as your submit button.
38
+ - Changed: *ActionBlock* will now use the above-mentioned logic internally. So its submit/cancel buttons will also be automatically enabled or disabled.
39
+
26
40
  ## 3.5.10 - 2022-07-05
27
41
 
28
42
  - Fixed: issue with closeOnEsc prop when the Pane is controlled.
package/formik.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import {
3
+ Input as PlainInput,
4
+ Radio as PlainRadio,
5
+ Switch as PlainSwitch,
6
+ Textarea as PlainTextarea,
7
+ Checkbox as PlainCheckbox,
8
+ Select as PlainSelect,
9
+ EmailInput as PlainEmailInput,
10
+ Button as PlainButton,
11
+ ButtonProps,
12
+ } from "./index";
13
+
14
+ export interface ActionBlockProps {
15
+ className?: string;
16
+ submitButtonProps?: ButtonProps;
17
+ cancelButtonProps?: ButtonProps;
18
+ }
19
+ export interface BlockNavigationProps {
20
+ isDirty?: boolean;
21
+ }
22
+
23
+ export const ActionBlock: React.FC<ActionBlockProps>;
24
+ export const BlockNavigation: React.FC<BlockNavigationProps>;
25
+
26
+ export const Input: typeof PlainInput;
27
+ export const Radio: typeof PlainRadio;
28
+ export const Switch: typeof PlainSwitch;
29
+ export const Textarea: typeof PlainTextarea;
30
+ export const Checkbox: typeof PlainCheckbox;
31
+ export const Select: typeof PlainSelect;
32
+ export const EmailInput: typeof PlainEmailInput;
33
+ export const Button: typeof PlainButton;