elseware-ui 2.17.0 → 2.17.2
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/build/components/data-entry/checkbox/Checkbox.d.ts +14 -3
- package/build/components/utils/glow-wrapper/GlowWrapper.d.ts +11 -0
- package/build/components/utils/glow-wrapper/index.d.ts +2 -0
- package/build/components/utils/index.d.ts +1 -0
- package/build/index.es.js +103 -26
- package/build/index.js +103 -25
- package/package.json +1 -1
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldHookConfig } from "formik";
|
|
2
|
-
export interface
|
|
3
|
+
export interface CheckboxOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface BaseCheckboxProps {
|
|
3
8
|
placeholder: string;
|
|
4
|
-
options: any[];
|
|
5
9
|
}
|
|
6
|
-
|
|
10
|
+
interface SingleCheckboxProps extends BaseCheckboxProps {
|
|
11
|
+
options?: never;
|
|
12
|
+
}
|
|
13
|
+
interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
14
|
+
options: CheckboxOption[];
|
|
15
|
+
}
|
|
16
|
+
export type CheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
17
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
7
18
|
export default Checkbox;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export interface GlowWrapperProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
glowSize?: number;
|
|
5
|
+
glowColor?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
/** optional: when true, glow hides while mouse is outside */
|
|
8
|
+
hideOnLeave?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const GlowWrapper: FC<GlowWrapperProps>;
|
|
11
|
+
export default GlowWrapper;
|