nectiasw 0.0.5 → 0.0.7

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.
@@ -0,0 +1,29 @@
1
+ import { default as React } from 'react';
2
+
3
+ /**
4
+ * @description
5
+ * Chart componnet for rendering content based on stages.
6
+ */
7
+ export declare const Chart: React.FunctionComponent<ChartProps>;
8
+ export interface Graph {
9
+ level: string;
10
+ count: number;
11
+ color: string;
12
+ percent: string;
13
+ }
14
+ export type ChartProps = {
15
+ className?: string;
16
+ partials: Graph[];
17
+ label: string;
18
+ width?: number;
19
+ height?: number;
20
+ labels?: string[];
21
+ closed?: boolean;
22
+ aspect?: boolean;
23
+ flex?: boolean;
24
+ disabled?: boolean;
25
+ drawText?: string;
26
+ textStyle?: string;
27
+ fontStyle?: string;
28
+ innerText?: string;
29
+ };
@@ -0,0 +1,5 @@
1
+ export declare const classes: {
2
+ label: string;
3
+ flex: string;
4
+ center: string;
5
+ };
@@ -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>>;
@@ -0,0 +1,7 @@
1
+ export declare const classes: {
2
+ container: {
3
+ root: string;
4
+ label: string;
5
+ input: string;
6
+ };
7
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  export { Item, Text, Error, Title, Success, Subtitle, Description, } from './components/Text';
2
- export { Button } from './components/Button';
3
- export type { ButtonProps } from './components/Button';
2
+ export { Chart } from './components/Chart';
3
+ export { Checkbox } from './components/Checkbox';
4
4
  export type { CommonTextProps } from './components/Text';
5
+ export type { ChartProps, Graph } from './components/Chart';
6
+ export type { CheckboxProps, CheckboxIconProps } from './components/Checkbox';
7
+ export type { Session, Systems, SystemRole, UserSystem, SessionState, SignalConnection, CommonSignalConnection, } from './typings';
8
+ export { LocalStorageKeys, UrlSSOParams } from './typings';