@maelstrom-futurism/button 0.10.2 → 0.10.3

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/types.d.ts CHANGED
@@ -1,23 +1,17 @@
1
- import { ReactNode } from 'react';
2
- import { SerializedStyles } from '@emotion/react';
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { StyleOverride } from '../../core';
3
3
  export type ButtonVariant = 'primary' | 'secondary' | 'cancel' | 'ghost' | 'link' | 'outline';
4
4
  export type ButtonType = 'button' | 'submit';
5
5
  export type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
- export interface ButtonProps {
6
+ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
7
7
  children?: ReactNode;
8
- /**
9
- * Either type='submit' or type='button'
10
- */
8
+ /** Either type='submit' or type='button' */
11
9
  type?: ButtonType;
12
- /**
13
- * Allow the user to pass in custom styles
14
- */
15
- css?: SerializedStyles | SerializedStyles[];
10
+ /** Style override — accepts Emotion SerializedStyles (composed with the
11
+ * button's base class) or plain CSSProperties (applied inline). */
12
+ styles?: StyleOverride;
16
13
  size?: Sizes;
17
14
  variant?: ButtonVariant;
18
15
  outline?: boolean;
19
- onClick?: React.MouseEventHandler;
20
- disabled?: boolean;
21
- className?: string;
22
16
  }
23
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +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,GACnB,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAChB,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,MAAM,MAAM,KAAK,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EAAE,OAAO,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maelstrom-futurism/button",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "A button (with very cool ripples!) for MF",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "homepage": "https://github.com/DawsonG/maelstrom-futurism#readme",
34
34
  "dependencies": {
35
- "@maelstrom-futurism/core": "^0.10.2",
35
+ "@maelstrom-futurism/core": "^0.10.3",
36
36
  "@maelstrom-futurism/icons": "^0.10.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@emotion/react": ">= 11.10.5",
40
40
  "react": ">= 18.3.1"
41
41
  },
42
- "gitHead": "c7167aefd82920adf66aec15a168d8909ba2bd3b"
42
+ "gitHead": "1f2af39f5220bf1758355944449941fb01ccf21e"
43
43
  }