nectiasw 0.0.162 → 0.0.165

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,4 @@
1
+ import { default as React } from 'react';
2
+ import { FirstModalProps } from './types.ts';
3
+
4
+ export declare const FirstModal: React.FunctionComponent<FirstModalProps>;
@@ -0,0 +1,7 @@
1
+ import { FirstModalProps } from './types';
2
+
3
+ export declare const ModalBackground: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const ModalContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FirstModalProps>> & string;
5
+ export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
6
+ export declare const Subtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
7
+ export declare const Actioners: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type FirstModalProps = {
4
+ title?: string;
5
+ isOpen?: boolean;
6
+ onClose?: (event: React.MouseEvent<HTMLDivElement>) => void;
7
+ description?: React.ReactNode;
8
+ defaultAction?: boolean;
9
+ Render?: React.ReactNode;
10
+ children?: React.ReactNode;
11
+ Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
12
+ width?: number;
13
+ height?: number;
14
+ unit?: "rem" | "%" | "px";
15
+ };
@@ -6,9 +6,9 @@ import { OverrideBuilder } from './builder';
6
6
  * This is a description of the TwSelect component and what it does in one or two sentences.
7
7
  */
8
8
  export declare const Select: React.FunctionComponent<SelectProps>;
9
- export type Option = {
10
- key: string | number;
11
- value: string;
9
+ export type Option<T = string | number> = {
10
+ key: string;
11
+ value: T;
12
12
  label: string;
13
13
  history?: string;
14
14
  };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,8 @@ export { Row } from './components/Row';
7
7
  export type { RowProps } from './components/Row';
8
8
  export { Chart } from './components/Chart';
9
9
  export type { ChartProps } from './components/Chart';
10
+ export { FirstModal } from './components/FirstModal';
11
+ export type { FirstModalProps } from './components/FirstModal/types';
10
12
  export { Modal } from './components/Modal';
11
13
  export type { ModalProps } from './components/Modal';
12
14
  export { Checkbox } from './components/Checkbox';