@aristobyte-ui/button 2.5.0 → 2.5.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,29 @@
1
+ import * as React from 'react';
2
+ import { type IconPropsType } from '@aristobyte-ui/utils';
3
+ import './Button.scss';
4
+ export interface IButton {
5
+ type?: 'button' | 'link';
6
+ text?: string;
7
+ children?: React.ReactElement | React.JSX.Element | React.ReactNode | string;
8
+ href?: string;
9
+ target?: '_self' | '_blank' | '_parent' | '_top';
10
+ onClick?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement, MouseEvent>) => void | Promise<void>;
11
+ disabled?: boolean;
12
+ transparent?: boolean;
13
+ variant?: 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning';
14
+ appearance?: 'solid' | 'outline' | 'outline-dashed' | 'no-outline' | 'glowing';
15
+ size?: 'xsm' | 'sm' | 'md' | 'lg' | 'xlg';
16
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
17
+ icon?: {
18
+ component: (props: IconPropsType) => React.JSX.Element;
19
+ color?: string;
20
+ size?: number;
21
+ align?: 'left' | 'right';
22
+ };
23
+ isLoading?: boolean;
24
+ spinnerType?: 'default' | 'duo' | 'gradient' | 'pulse' | 'pulse-duo';
25
+ className?: string;
26
+ style?: React.CSSProperties;
27
+ }
28
+ export declare const Button: React.FC<IButton>;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/button/src/main/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,sBAAsB,CAAC;AAExE,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,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,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAwEpC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { type IButton, Button } from '../Button';
3
+ import './ButtonGroup.scss';
4
+ export interface IButtonGroup {
5
+ children: React.ReactElement<IButton, typeof Button> | React.ReactElement<IButton, typeof Button>[];
6
+ align?: 'vertical' | 'horizontal';
7
+ variant?: 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning';
8
+ size?: 'xsm' | 'sm' | 'md' | 'lg' | 'xlg';
9
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
10
+ disabled?: boolean;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ }
14
+ export declare const ButtonGroup: React.FC<IButtonGroup>;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/button/src/main/components/ButtonGroup/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,oBAAoB,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,MAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,MAAM,CAAC,EAAE,CAAC;IACpG,KAAK,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAChF,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA+B9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./Button";
2
+ export * from "./ButtonGroup";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/button/src/main/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/button/src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import { type IconPropsType } from '@aristobyte-ui/utils';
3
+ import './Button.scss';
4
+ export interface IButton {
5
+ type?: 'button' | 'link';
6
+ text?: string;
7
+ children?: React.ReactElement | React.JSX.Element | React.ReactNode | string;
8
+ href?: string;
9
+ target?: '_self' | '_blank' | '_parent' | '_top';
10
+ onClick?: (e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement, MouseEvent>) => void | Promise<void>;
11
+ disabled?: boolean;
12
+ transparent?: boolean;
13
+ variant?: 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning';
14
+ appearance?: 'solid' | 'outline' | 'outline-dashed' | 'no-outline' | 'glowing';
15
+ size?: 'xsm' | 'sm' | 'md' | 'lg' | 'xlg';
16
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
17
+ icon?: {
18
+ component: (props: IconPropsType) => React.JSX.Element;
19
+ color?: string;
20
+ size?: number;
21
+ align?: 'left' | 'right';
22
+ };
23
+ isLoading?: boolean;
24
+ spinnerType?: 'default' | 'duo' | 'gradient' | 'pulse' | 'pulse-duo';
25
+ className?: string;
26
+ style?: React.CSSProperties;
27
+ }
28
+ export declare const Button: React.FC<IButton>;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/button/src/main/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,sBAAsB,CAAC;AAExE,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAChF,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAAC;IAC/E,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;QACvD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAwEpC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { type IButton, Button } from '../Button';
3
+ import './ButtonGroup.scss';
4
+ export interface IButtonGroup {
5
+ children: React.ReactElement<IButton, typeof Button> | React.ReactElement<IButton, typeof Button>[];
6
+ align?: 'vertical' | 'horizontal';
7
+ variant?: 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning';
8
+ size?: 'xsm' | 'sm' | 'md' | 'lg' | 'xlg';
9
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
10
+ disabled?: boolean;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ }
14
+ export declare const ButtonGroup: React.FC<IButtonGroup>;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/button/src/main/components/ButtonGroup/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,oBAAoB,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,MAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,MAAM,CAAC,EAAE,CAAC;IACpG,KAAK,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAChF,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA+B9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./Button";
2
+ export * from "./ButtonGroup";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/button/src/main/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/button/src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristobyte-ui/button",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "react button and buttongroup components with multiple variants, appearances, sizes, radius options, icons, ripple feedback, and fully typed typescript support",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -47,13 +47,14 @@
47
47
  },
48
48
  "main": "lib/src/main/index.js",
49
49
  "module": "es/src/main/index.js",
50
+ "types": "es/src/main/index.d.ts",
50
51
  "peerDependencies": {
51
52
  "react": "^19.1.0",
52
53
  "react-dom": "^19.1.0",
53
54
  "sass": "^1.97.3"
54
55
  },
55
56
  "dependencies": {
56
- "@aristobyte-ui/spinner": "2.5.0",
57
- "@aristobyte-ui/utils": "2.5.0"
57
+ "@aristobyte-ui/spinner": "^2.5.1",
58
+ "@aristobyte-ui/utils": "^2.5.1"
58
59
  }
59
60
  }