xtreme-ui 0.0.4 → 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/base/Button/Button.d.ts +0 -1
- package/dist/components/base/Button/types.d.ts +13 -10
- package/dist/components/base/Icon/Icon.d.ts +0 -1
- package/dist/components/base/Icon/types.d.ts +16 -6
- package/dist/components/base/ProgressBar/ProgressBar.d.ts +0 -1
- package/dist/components/base/ProgressBar/types.d.ts.map +1 -1
- package/dist/components/base/Textfield/Textfield.d.ts +0 -1
- package/dist/components/base/Textfield/types.d.ts +3 -2
- package/dist/components/base/Textfield/types.d.ts.map +1 -1
- package/dist/components/layout/Navigation/Navigation.d.ts +0 -1
- package/dist/components/layout/Navigation/types.d.ts.map +1 -1
- package/dist/components/layout/Sider/Sider.d.ts +0 -1
- package/dist/components/layout/Sider/types.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.es.js +417 -414
- package/dist/index.umd.js +9 -9
- package/dist/manifest.json +2 -2
- package/dist/style.css +1 -1
- package/dist/utils/function/mergeRefs.d.ts +0 -1
- package/dist/utils/function/string.d.ts +2 -0
- package/dist/utils/helper/domHelper.d.ts +0 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +33 -39
- package/dist/components/base/Button/Button.d.ts.map +0 -1
- package/dist/components/base/Button/types.d.ts.map +0 -1
- package/dist/components/base/Icon/Icon.d.ts.map +0 -1
- package/dist/components/base/Icon/types.d.ts.map +0 -1
- package/dist/components/base/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/dist/components/base/Textfield/Textfield.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/layout/Navigation/Navigation.d.ts.map +0 -1
- package/dist/components/layout/Sider/Sider.d.ts.map +0 -1
- package/dist/utils/function/mergeRefs.d.ts.map +0 -1
- package/dist/utils/helper/domHelper.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
|
|
1
|
+
import { HTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
import { EIconType } from '../Icon/types';
|
|
3
|
+
interface BaseButton extends HTMLAttributes<HTMLButtonElement> {
|
|
3
4
|
className?: string;
|
|
4
5
|
type?: keyof typeof EButtonTypes;
|
|
5
6
|
size?: keyof typeof EButtonSize;
|
|
6
|
-
label?: string;
|
|
7
|
-
iconName?: string;
|
|
8
7
|
loading?: boolean;
|
|
9
8
|
disabled?: boolean;
|
|
10
|
-
|
|
9
|
+
iconType?: keyof typeof EIconType;
|
|
11
10
|
iconPosition?: 'left' | 'right';
|
|
12
11
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
interface ButtonWithLabel extends BaseButton {
|
|
14
|
+
label: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
}
|
|
17
|
+
interface ButtonWithIconName extends BaseButton {
|
|
18
|
+
label?: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
}
|
|
21
|
+
export type TButtonProps = ButtonWithLabel | ButtonWithIconName;
|
|
18
22
|
export declare enum EButtonTypes {
|
|
19
23
|
primary = "primary",
|
|
20
24
|
primaryDanger = "primaryDanger",
|
|
@@ -29,4 +33,3 @@ declare enum EButtonSize {
|
|
|
29
33
|
large = "large"
|
|
30
34
|
}
|
|
31
35
|
export {};
|
|
32
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
export type IIconProps = {
|
|
2
2
|
className?: string;
|
|
3
|
-
|
|
3
|
+
code: string;
|
|
4
|
+
type?: keyof typeof EIconType;
|
|
4
5
|
size?: number | keyof typeof EIconSize;
|
|
5
|
-
filled?: boolean;
|
|
6
6
|
};
|
|
7
|
+
export declare enum EIconType {
|
|
8
|
+
thin = "thin",
|
|
9
|
+
light = "light",
|
|
10
|
+
regular = "regular",
|
|
11
|
+
solid = "solid",
|
|
12
|
+
duotone = "duotone",
|
|
13
|
+
sharpSolid = "sharpSolid",
|
|
14
|
+
sharpRegular = "sharpRegular",
|
|
15
|
+
sharpLight = "sharpLight",
|
|
16
|
+
brand = "brand"
|
|
17
|
+
}
|
|
7
18
|
export declare enum EIconSize {
|
|
8
|
-
mini =
|
|
9
|
-
default =
|
|
10
|
-
large =
|
|
19
|
+
mini = 12,
|
|
20
|
+
default = 18,
|
|
21
|
+
large = 24
|
|
11
22
|
}
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/ProgressBar/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
+
import { EIconType } from '../Icon/types';
|
|
2
3
|
export type TTextfieldProps = {
|
|
3
4
|
className?: string;
|
|
4
5
|
type?: keyof typeof ETextfieldType;
|
|
@@ -6,8 +7,8 @@ export type TTextfieldProps = {
|
|
|
6
7
|
placeholder: string;
|
|
7
8
|
autoFocus?: boolean;
|
|
8
9
|
autoComplete?: keyof typeof ETextfieldAutoComplete;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
icon?: string;
|
|
11
|
+
iconType?: keyof typeof EIconType;
|
|
11
12
|
value?: string;
|
|
12
13
|
onChange?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Textfield/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,OAAO,sBAAsB,CAAC;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,IAAI,CAAC;CAChF,CAAA;AAED,aAAK,cAAc;IAClB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACjB;AAED,aAAK,sBAAsB;IAC1B,KAAK,QAAQ;IACb,IAAI,OAAO;IACX,MAAM,SAAS;IACf,kBAAkB,qBAAqB;IACvC,YAAY,eAAe;IAC3B,iBAAiB,oBAAoB;IACrC,aAAa,gBAAgB;IAC7B,kBAAkB,qBAAqB;IACvC,UAAU,aAAa;IACvB,OAAO,UAAU;IACjB,UAAU,aAAa;IACvB,cAAc,iBAAiB;IAC/B,kBAAkB,qBAAqB;IACvC,eAAe,kBAAkB;IACjC,oBAAoB,uBAAuB;IAC3C,cAAc,iBAAiB;IAC/B,gBAAgB,mBAAmB;IACnC,eAAe,kBAAkB;IACjC,eAAe,kBAAkB;IACjC,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,SAAS,YAAY;IACrB,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;IAC7B,SAAS,YAAY;IACrB,eAAe,kBAAkB;IACjC,oBAAoB,uBAAuB;IAC3C,gBAAgB,mBAAmB;IACnC,WAAW,cAAc;IACzB,QAAQ,WAAW;IACnB,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;IAC7B,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,sBAAsB,yBAAyB;IAC/C,oBAAoB,uBAAuB;IAC3C,UAAU,aAAa;IACvB,MAAM,SAAS;IACf,UAAU,aAAa;IACvB,YAAY,eAAe;IAC3B,WAAW,cAAc;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Navigation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC;CAC9B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC,CAAA;AACD,aAAK,UAAU;IACd,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './utils/index';
|
|
2
|
+
export { Button } from './components/base/Button/Button';
|
|
3
|
+
export { ProgressBar } from './components/base/ProgressBar/ProgressBar';
|
|
4
|
+
export { Icon } from './components/base/Icon/Icon';
|
|
5
|
+
export { Textfield } from './components/base/Textfield/Textfield';
|
|
6
|
+
export { Sider } from './components/layout/Sider/Sider';
|
|
7
|
+
export { Navigation } from './components/layout/Navigation/Navigation';
|