sate-lib 1.30.0 → 1.31.0
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.
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes } from "react";
|
|
1
|
+
import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react";
|
|
2
2
|
import { IconName } from "../icon/icon";
|
|
3
3
|
type Variant = "filled" | "outlined" | "text" | "toned";
|
|
4
4
|
type Size = "xSmall" | "small" | "medium" | "large";
|
|
5
|
-
|
|
5
|
+
type ButtonAsButton = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
+
href?: string;
|
|
7
|
+
};
|
|
8
|
+
type ButtonAsLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
9
|
+
href?: string;
|
|
10
|
+
};
|
|
11
|
+
interface CommonProps {
|
|
6
12
|
variant?: Variant;
|
|
7
13
|
size?: Size;
|
|
8
14
|
icon?: IconName;
|
|
@@ -11,6 +17,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
17
|
loading?: boolean;
|
|
12
18
|
disabled?: boolean;
|
|
13
19
|
}
|
|
14
|
-
|
|
20
|
+
type ButtonProps = CommonProps & (ButtonAsButton | ButtonAsLink);
|
|
21
|
+
export declare function Button({ href, variant, size, icon, iconPosition, label, loading, disabled, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
22
|
export {};
|
|
16
23
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG9C,KAAK,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AACxD,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,KAAK,cAAc,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AACF,KAAK,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,WAAW,GAAG,CAAC,cAAc,GAAG,YAAY,CAAC,CAAC;AAEjE,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,OAAkB,EAClB,IAAc,EACd,IAAI,EACJ,YAAqB,EACrB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAc,EACd,GAAG,KAAK,EACT,EAAE,WAAW,2CA0Cb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{Icon as t}from"../icon/icon.js";import o from"./button.styles.module.js";function n({href:n,variant:l="filled",size:r="large",icon:m,iconPosition:a="left",label:s,loading:c,disabled:d,className:u="",...f}){let g=!!m&&!s,h=g&&"large"===r?"medium":r,b="large"===r||"medium"===r?24:"small"===r?18:16,j=[o.button,o[l],o[h],g&&o.iconOnly,c&&o.loading,m&&o.icon,"right"===a&&o.directionRight,u].filter(Boolean).join(" ");return n?i("a",{className:j,href:n,...f,children:[m&&e(t,{name:m,size:b}),s]}):i("button",{className:j,disabled:d,...f,children:[m&&e(t,{name:m,size:b}),s]})}export{n as Button};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sate-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -85,34 +85,33 @@
|
|
|
85
85
|
"prepare": "husky"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@biomejs/biome": "
|
|
89
|
-
"@commitlint/cli": "19.8.
|
|
90
|
-
"@commitlint/config-conventional": "19.8.
|
|
91
|
-
"@rsbuild/core": "1.
|
|
92
|
-
"@rsbuild/plugin-react": "
|
|
93
|
-
"@rsbuild/plugin-sass": "
|
|
94
|
-
"@rsbuild/plugin-svgr": "
|
|
95
|
-
"@rslib/core": "
|
|
96
|
-
"@semantic-release/changelog": "
|
|
97
|
-
"@semantic-release/git": "
|
|
98
|
-
"@semantic-release/npm": "
|
|
99
|
-
"@storybook/addon-a11y": "
|
|
100
|
-
"@storybook/addon-designs": "
|
|
101
|
-
"@storybook/addon-docs": "
|
|
102
|
-
"@storybook/addon-links": "
|
|
103
|
-
"@
|
|
104
|
-
"@types/
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"storybook": "
|
|
111
|
-
"storybook-
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"typescript": "^5.8.3"
|
|
88
|
+
"@biomejs/biome": "2.2.4",
|
|
89
|
+
"@commitlint/cli": "19.8.1",
|
|
90
|
+
"@commitlint/config-conventional": "19.8.1",
|
|
91
|
+
"@rsbuild/core": "1.5.6",
|
|
92
|
+
"@rsbuild/plugin-react": "1.4.0",
|
|
93
|
+
"@rsbuild/plugin-sass": "1.4.0",
|
|
94
|
+
"@rsbuild/plugin-svgr": "1.2.2",
|
|
95
|
+
"@rslib/core": "0.13.2",
|
|
96
|
+
"@semantic-release/changelog": "6.0.3",
|
|
97
|
+
"@semantic-release/git": "10.0.1",
|
|
98
|
+
"@semantic-release/npm": "12.0.2",
|
|
99
|
+
"@storybook/addon-a11y": "9.1.5",
|
|
100
|
+
"@storybook/addon-designs": "10.0.2",
|
|
101
|
+
"@storybook/addon-docs": "9.1.5",
|
|
102
|
+
"@storybook/addon-links": "9.1.5",
|
|
103
|
+
"@types/node": "24.3.3",
|
|
104
|
+
"@types/react": "19.1.13",
|
|
105
|
+
"husky": "9.1.7",
|
|
106
|
+
"react": "19.1.1",
|
|
107
|
+
"sass": "1.92.1",
|
|
108
|
+
"semantic-release": "24.2.8",
|
|
109
|
+
"storybook": "9.1.5",
|
|
110
|
+
"storybook-addon-rslib": "2.1.0",
|
|
111
|
+
"storybook-react-rsbuild": "2.1.0",
|
|
112
|
+
"subset-font": "2.4.0",
|
|
113
|
+
"svgo": "4.0.0",
|
|
114
|
+
"typescript": "5.9.2"
|
|
116
115
|
},
|
|
117
116
|
"peerDependencies": {
|
|
118
117
|
"react": ">=16.9.0",
|
|
@@ -133,7 +132,7 @@
|
|
|
133
132
|
"frontend"
|
|
134
133
|
],
|
|
135
134
|
"dependencies": {
|
|
136
|
-
"@radix-ui/react-radio-group": "
|
|
137
|
-
"@radix-ui/react-tabs": "
|
|
135
|
+
"@radix-ui/react-radio-group": "1.3.8",
|
|
136
|
+
"@radix-ui/react-tabs": "1.1.13"
|
|
138
137
|
}
|
|
139
138
|
}
|