@aic-kits/react 0.17.0 → 0.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/dist/components/Button/StyledButton.d.ts +1 -0
- package/dist/components/Button/types.d.ts +11 -5
- package/dist/components/Modal/StyledModal.d.ts +10 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/types.d.ts +19 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +82 -62
- package/dist/index.js +373 -345
- package/package.json +2 -2
|
@@ -31,6 +31,7 @@ declare const StyledButtonText: import('styled-components/dist/types').IStyledCo
|
|
|
31
31
|
type ButtonIconWrapperProps = {
|
|
32
32
|
$themePosition: 'left' | 'right';
|
|
33
33
|
$iconSpacing: Space;
|
|
34
|
+
$hasText?: boolean;
|
|
34
35
|
};
|
|
35
36
|
declare const StyledButtonIconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
36
37
|
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Icon } from '@phosphor-icons/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
import { ButtonCorner, ButtonSize, ButtonVariant, Color } from '../../theme';
|
|
3
4
|
import { BoxProps } from '../Box';
|
|
4
|
-
|
|
5
|
+
interface ButtonBaseProps extends BoxProps {
|
|
5
6
|
/**
|
|
6
7
|
* Disable state of button.
|
|
7
8
|
*/
|
|
@@ -56,8 +57,13 @@ export interface ButtonProps extends BoxProps {
|
|
|
56
57
|
* Testing id of the component.
|
|
57
58
|
*/
|
|
58
59
|
'data-testid'?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Button text.
|
|
61
|
-
*/
|
|
62
|
-
text: React.ReactNode;
|
|
63
60
|
}
|
|
61
|
+
type ButtonContentProps = {
|
|
62
|
+
icon: Icon;
|
|
63
|
+
text?: React.ReactNode;
|
|
64
|
+
} | {
|
|
65
|
+
icon?: Icon;
|
|
66
|
+
text: React.ReactNode;
|
|
67
|
+
};
|
|
68
|
+
export type ButtonProps = ButtonBaseProps & ButtonContentProps;
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const StyledBackdrop: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
|
|
2
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
3
|
+
}, never>> & string & Omit<(props: import('..').BoxProps & {
|
|
4
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
5
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
6
|
+
export declare const StyledModalContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
|
|
7
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
8
|
+
}, never>> & string & Omit<(props: import('..').BoxProps & {
|
|
9
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
10
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
/**
|
|
4
|
+
* If `true`, the modal is open.
|
|
5
|
+
*/
|
|
6
|
+
open: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Callback fired when the component requests to be closed.
|
|
9
|
+
*/
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* The content of the component.
|
|
13
|
+
*/
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Testing id of the component.
|
|
17
|
+
*/
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
}
|