@maelstrom-futurism/button 0.7.4 → 0.8.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.
- package/dist/Button.d.ts.map +1 -1
- package/dist/index.js +2152 -19
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +4 -4
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'cancel' | 'ghost' | 'link';
|
|
4
|
+
export type ButtonType = 'button' | 'submit';
|
|
5
|
+
export type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
export interface ButtonProps {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Either type='submit' or type='button'
|
|
10
|
+
*/
|
|
11
|
+
type?: ButtonType;
|
|
12
|
+
/**
|
|
13
|
+
* Allow the user to pass in custom styles
|
|
14
|
+
*/
|
|
15
|
+
css?: SerializedStyles | SerializedStyles[];
|
|
16
|
+
size?: Sizes;
|
|
17
|
+
variant?: ButtonVariant;
|
|
18
|
+
outline?: boolean;
|
|
19
|
+
onClick?: React.MouseEventHandler;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,MAAM,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,MAAM,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAE5C,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maelstrom-futurism/button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "A button (with very cool ripples!) for MF",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/DawsonG/maelstrom-futurism#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@maelstrom-futurism/core": "^0.
|
|
34
|
-
"@maelstrom-futurism/icons": "^0.
|
|
33
|
+
"@maelstrom-futurism/core": "^0.8.0",
|
|
34
|
+
"@maelstrom-futurism/icons": "^0.8.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@emotion/react": ">= 11.10.5",
|
|
38
38
|
"react": ">= 18.3.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "38c4e6dff8d93b52e28b3ead27b9a187c6f4d365"
|
|
41
41
|
}
|