openseo-template 0.1.2 → 0.1.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.
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+
3
+ export interface FancyButtonProps {
4
+ label: string;
5
+ onClick: () => void;
6
+ style?: React.CSSProperties; // style 是可选的
7
+ }
8
+
9
+ declare const FancyButton: React.FC<FancyButtonProps>;
10
+
11
+ export default FancyButton;
@@ -3,7 +3,7 @@
3
3
 
4
4
  import React from 'react';
5
5
 
6
- const FancyButton = ({ label, onClick, style }) => {
6
+ const FancyButton = ({ label, onClick, style }: { label: string, onClick: () => void, style: React.CSSProperties }) => {
7
7
  const buttonStyle = {
8
8
  backgroundColor: '#6200ea',
9
9
  color: '#ffffff',
@@ -1,3 +1,3 @@
1
- import FancyButton from './FancyButton';
1
+ import FancyButton from './FancyButton.tsx';
2
2
 
3
3
  export { FancyButton };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "openseo-template",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "main": "components/index.js",
5
5
  "private": false,
6
6
  "scripts": {
7
- "publish": "npm publish --//registry.npmjs.org/:_authToken=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",
7
+ "publish": "npm publish --//registry.npmjs.org/:_authToken=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",
8
8
  "dev": "next dev",
9
9
  "build": "next build",
10
10
  "start": "next start",