visits-style 1.4.5 → 1.4.7

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,6 +1,6 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { ButtonHTMLAttributes } from 'react';
2
2
  import { ColorType, SizeType } from '../../types';
3
- export interface Props extends HTMLAttributes<HTMLButtonElement> {
3
+ export interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /** ボタンの色 */
5
5
  color?: ColorType;
6
6
  /** ボタンのサイズ */
@@ -14,5 +14,5 @@ export interface Props extends HTMLAttributes<HTMLButtonElement> {
14
14
  /** アイコンボタンとしてpaddingを同じにする */
15
15
  icon?: boolean;
16
16
  }
17
- declare const _default: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Props>>;
17
+ declare const _default: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Props>>;
18
18
  export default _default;
@@ -1,6 +1,6 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { ButtonHTMLAttributes } from 'react';
2
2
  import { ColorType, SizeType } from '../../types';
3
- export interface ButtonProps extends HTMLAttributes<HTMLButtonElement> {
3
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /** ボタンの色 */
5
5
  color?: ColorType;
6
6
  /** ボタンのサイズ */
@@ -12,5 +12,5 @@ export interface ButtonProps extends HTMLAttributes<HTMLButtonElement> {
12
12
  /** アイコンボタンとしてpaddingを同じにする */
13
13
  icon?: boolean;
14
14
  }
15
- declare const _default: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>>;
15
+ declare const _default: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>>;
16
16
  export default _default;
package/dist/index.cjs.js CHANGED
@@ -756,6 +756,7 @@ function stopPropagation$1(e) {
756
756
  if (!e)
757
757
  return;
758
758
  e.stopPropagation();
759
+ e.preventDefault();
759
760
  }
760
761
 
761
762
  const Popover = React.forwardRef(({
package/dist/index.es.js CHANGED
@@ -748,6 +748,7 @@ function stopPropagation$1(e) {
748
748
  if (!e)
749
749
  return;
750
750
  e.stopPropagation();
751
+ e.preventDefault();
751
752
  }
752
753
 
753
754
  const Popover = forwardRef(({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "visits-style",
3
3
  "repository": "https://github.com/visits-works/visits-style",
4
4
  "homepage": "https://github.com/visits-works/visits-style",
5
- "version": "1.4.5",
5
+ "version": "1.4.7",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs.js",
8
8
  "module": "./dist/index.es.js",