sti-antd-package 0.0.1

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 { ButtonComponentProps } from "./types";
2
+ import React from "react";
3
+ declare const ButtonComponent: React.FC<ButtonComponentProps>;
4
+ export default ButtonComponent;
@@ -0,0 +1,3 @@
1
+ import { ButtonGroupAddComponentProps } from "./types";
2
+ declare const ButtonGroupAddComponent: React.FC<ButtonGroupAddComponentProps>;
3
+ export default ButtonGroupAddComponent;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Component";
2
+ export type { ButtonGroupAddComponentProps } from "./types";
@@ -0,0 +1,9 @@
1
+ import { ButtonComponentProps } from "../..";
2
+ import { FormColLayout } from "../../../../constants";
3
+ export interface ButtonGroupAddComponentProps {
4
+ formColLayout?: FormColLayout;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ onBack?: ButtonComponentProps['onClick'];
8
+ onSave?: ButtonComponentProps['onClick'];
9
+ }
@@ -0,0 +1,4 @@
1
+ import { ButtonGroupEditComponentProps } from "./types";
2
+ import React from "react";
3
+ declare const ButtonGroupEditComponent: React.FC<ButtonGroupEditComponentProps>;
4
+ export default ButtonGroupEditComponent;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Component";
2
+ export type { ButtonGroupEditComponentProps } from "./types";
@@ -0,0 +1,12 @@
1
+ import { ButtonComponentProps } from "../..";
2
+ import { FormColLayout } from "../../../../constants";
3
+ export interface ButtonGroupEditComponentProps {
4
+ formColLayout?: FormColLayout;
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ allowEdit?: boolean;
8
+ editing?: boolean;
9
+ setEditing?: React.Dispatch<React.SetStateAction<boolean>>;
10
+ onBack?: ButtonComponentProps['onClick'];
11
+ onSave?: ButtonComponentProps['onClick'];
12
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from "./Component";
2
+ export type { ButtonComponentProps, ButtonComponentRef } from "./types";
@@ -0,0 +1,26 @@
1
+ import { SizeType } from "antd/es/config-provider/SizeContext";
2
+ import { TooltipPlacement } from "antd/es/tooltip";
3
+ import React, { Ref } from "react";
4
+ export interface ButtonComponentRef {
5
+ setLoading: React.Dispatch<React.SetStateAction<boolean>>;
6
+ }
7
+ export interface ButtonComponentProps {
8
+ tooltip?: {
9
+ title?: string | React.ReactNode;
10
+ placement?: TooltipPlacement;
11
+ };
12
+ icon?: React.ReactNode;
13
+ href?: string;
14
+ htmlType?: "button" | "submit" | "reset";
15
+ shape?: "circle" | "default" | "round";
16
+ size?: SizeType;
17
+ type?: "text" | "default" | "link" | "primary" | "dashed";
18
+ color?: "primary" | "success" | "danger";
19
+ className?: string[];
20
+ disabled?: boolean;
21
+ loading?: boolean;
22
+ onClick?: React.MouseEventHandler<HTMLElement>;
23
+ style?: React.CSSProperties;
24
+ children?: React.ReactNode;
25
+ ref?: Ref<ButtonComponentRef>;
26
+ }
@@ -0,0 +1,4 @@
1
+ import { CardComponentProps } from "./types";
2
+ import React from "react";
3
+ declare const CardComponent: React.FC<CardComponentProps>;
4
+ export default CardComponent;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Component";
2
+ export type { CardComponentProps } from "./types";
@@ -0,0 +1,9 @@
1
+ import { CardProps } from "antd";
2
+ export interface CardComponentProps {
3
+ title?: React.ReactNode;
4
+ onClick?: React.MouseEventHandler<HTMLElement>;
5
+ className?: string;
6
+ classNames?: CardProps['classNames'];
7
+ style?: React.CSSProperties;
8
+ children?: React.ReactNode;
9
+ }
@@ -0,0 +1,8 @@
1
+ export { default as ButtonComponent } from "./Button";
2
+ export type { ButtonComponentProps, ButtonComponentRef } from "./Button";
3
+ export { default as ButtonGroupAddComponent } from "./Button/Group/Add/Component";
4
+ export type { ButtonGroupAddComponentProps } from "./Button/Group/Add/types";
5
+ export { default as ButtonGroupEditComponent } from "./Button/Group/Edit/Component";
6
+ export type { ButtonGroupEditComponentProps } from "./Button/Group/Edit/types";
7
+ export { default as CardComponent } from "./Card";
8
+ export type { CardComponentProps } from "./Card";
@@ -0,0 +1,31 @@
1
+ export type FormColSizeSpan = {
2
+ xs?: {
3
+ span: number;
4
+ };
5
+ sm?: {
6
+ span: number;
7
+ };
8
+ md?: {
9
+ span: number;
10
+ };
11
+ lg?: {
12
+ span: number;
13
+ };
14
+ xl?: {
15
+ span: number;
16
+ };
17
+ xxl?: {
18
+ span: number;
19
+ };
20
+ };
21
+ export type FormColLayout = {
22
+ labelCol?: FormColSizeSpan;
23
+ wrapperCol?: FormColSizeSpan;
24
+ };
25
+ declare const _default: {
26
+ default: FormColLayout;
27
+ col12: FormColLayout;
28
+ nolabel: FormColLayout;
29
+ notInline: FormColLayout;
30
+ };
31
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as formColLayout } from "./formColLayout";
2
+ export type { FormColLayout, FormColSizeSpan } from "./formColLayout";
@@ -0,0 +1,11 @@
1
+ import { FormColLayout } from "../constants";
2
+ import { ColSize } from "antd/es/grid";
3
+ declare const _default: ({ labelCol, wrapperCol }: FormColLayout) => {
4
+ xs?: ColSize;
5
+ sm?: ColSize;
6
+ md?: ColSize;
7
+ lg?: ColSize;
8
+ xl?: ColSize;
9
+ xxl?: ColSize;
10
+ };
11
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as colLayout } from "./colLayout";
@@ -0,0 +1,108 @@
1
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
2
+ import { TooltipPlacement } from 'antd/es/tooltip';
3
+ import React$1, { Ref } from 'react';
4
+ import { CardProps } from 'antd';
5
+ import { ColSize } from 'antd/es/grid';
6
+
7
+ interface ButtonComponentRef {
8
+ setLoading: React$1.Dispatch<React$1.SetStateAction<boolean>>;
9
+ }
10
+ interface ButtonComponentProps {
11
+ tooltip?: {
12
+ title?: string | React$1.ReactNode;
13
+ placement?: TooltipPlacement;
14
+ };
15
+ icon?: React$1.ReactNode;
16
+ href?: string;
17
+ htmlType?: "button" | "submit" | "reset";
18
+ shape?: "circle" | "default" | "round";
19
+ size?: SizeType;
20
+ type?: "text" | "default" | "link" | "primary" | "dashed";
21
+ color?: "primary" | "success" | "danger";
22
+ className?: string[];
23
+ disabled?: boolean;
24
+ loading?: boolean;
25
+ onClick?: React$1.MouseEventHandler<HTMLElement>;
26
+ style?: React$1.CSSProperties;
27
+ children?: React$1.ReactNode;
28
+ ref?: Ref<ButtonComponentRef>;
29
+ }
30
+
31
+ declare const ButtonComponent: React$1.FC<ButtonComponentProps>;
32
+
33
+ type FormColSizeSpan = {
34
+ xs?: {
35
+ span: number;
36
+ };
37
+ sm?: {
38
+ span: number;
39
+ };
40
+ md?: {
41
+ span: number;
42
+ };
43
+ lg?: {
44
+ span: number;
45
+ };
46
+ xl?: {
47
+ span: number;
48
+ };
49
+ xxl?: {
50
+ span: number;
51
+ };
52
+ };
53
+ type FormColLayout = {
54
+ labelCol?: FormColSizeSpan;
55
+ wrapperCol?: FormColSizeSpan;
56
+ };
57
+ declare const _default$1: {
58
+ default: FormColLayout;
59
+ col12: FormColLayout;
60
+ nolabel: FormColLayout;
61
+ notInline: FormColLayout;
62
+ };
63
+
64
+ interface ButtonGroupAddComponentProps {
65
+ formColLayout?: FormColLayout;
66
+ disabled?: boolean;
67
+ loading?: boolean;
68
+ onBack?: ButtonComponentProps['onClick'];
69
+ onSave?: ButtonComponentProps['onClick'];
70
+ }
71
+
72
+ declare const ButtonGroupAddComponent: React.FC<ButtonGroupAddComponentProps>;
73
+
74
+ interface ButtonGroupEditComponentProps {
75
+ formColLayout?: FormColLayout;
76
+ disabled?: boolean;
77
+ loading?: boolean;
78
+ allowEdit?: boolean;
79
+ editing?: boolean;
80
+ setEditing?: React.Dispatch<React.SetStateAction<boolean>>;
81
+ onBack?: ButtonComponentProps['onClick'];
82
+ onSave?: ButtonComponentProps['onClick'];
83
+ }
84
+
85
+ declare const ButtonGroupEditComponent: React$1.FC<ButtonGroupEditComponentProps>;
86
+
87
+ interface CardComponentProps {
88
+ title?: React.ReactNode;
89
+ onClick?: React.MouseEventHandler<HTMLElement>;
90
+ className?: string;
91
+ classNames?: CardProps['classNames'];
92
+ style?: React.CSSProperties;
93
+ children?: React.ReactNode;
94
+ }
95
+
96
+ declare const CardComponent: React$1.FC<CardComponentProps>;
97
+
98
+ declare const _default: ({ labelCol, wrapperCol }: FormColLayout) => {
99
+ xs?: ColSize;
100
+ sm?: ColSize;
101
+ md?: ColSize;
102
+ lg?: ColSize;
103
+ xl?: ColSize;
104
+ xxl?: ColSize;
105
+ };
106
+
107
+ export { ButtonComponent, ButtonGroupAddComponent, ButtonGroupEditComponent, CardComponent, _default as colLayout, _default$1 as formColLayout };
108
+ export type { ButtonComponentProps, ButtonComponentRef, ButtonGroupAddComponentProps, ButtonGroupEditComponentProps, CardComponentProps, FormColLayout, FormColSizeSpan };