nectiasw 0.0.5 → 0.0.6
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/dist/components/Checkbox/index.d.ts +24 -0
- package/dist/components/Checkbox/styled.d.ts +6 -0
- package/dist/components/Checkbox/styles.d.ts +7 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +1738 -478
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +94 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/main.d.ts +4 -2
- package/dist/typings/index.d.ts +140 -0
- package/package.json +4 -1
- package/dist/components/Button/index.d.ts +0 -6
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type CheckboxIconProps = {
|
|
4
|
+
status?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type CheckboxProps = {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
indeterminate?: boolean;
|
|
15
|
+
onChange?: (checked: boolean) => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @description
|
|
19
|
+
* Checkbox component with Tailwind CSS styles. This component is a wrapper of the native HTML checkbox.
|
|
20
|
+
* @returns {React.FunctionComponent<CheckboxProps>}
|
|
21
|
+
* @example
|
|
22
|
+
* <TwCheckbox id="checkbox" name="checkbox" checked={true} />
|
|
23
|
+
*/
|
|
24
|
+
export declare const Checkbox: React.FunctionComponent<CheckboxProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckboxIconProps } from '.';
|
|
2
|
+
|
|
3
|
+
export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
|
|
5
|
+
}>, never>, never>> & string;
|
|
6
|
+
export declare const CheckboxIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react-icons/lib').IconBaseProps, CheckboxIconProps>> & string & Omit<import('react-icons/lib').IconType, keyof import('react').Component<any, {}, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Item, Text, Error, Title, Success, Subtitle, Description, } from './components/Text';
|
|
2
|
-
export {
|
|
3
|
-
export type { ButtonProps } from './components/Button';
|
|
2
|
+
export { Checkbox } from './components/Checkbox';
|
|
4
3
|
export type { CommonTextProps } from './components/Text';
|
|
4
|
+
export type { CheckboxProps, CheckboxIconProps } from './components/Checkbox';
|
|
5
|
+
export type { Session, Systems, SystemRole, UserSystem, SessionState, SignalConnection, CommonSignalConnection, } from './typings';
|
|
6
|
+
export { LocalStorageKeys, UrlSSOParams } from './typings';
|