@teamturing/react-kit 2.19.16 → 2.19.18

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/index.js CHANGED
@@ -16892,8 +16892,12 @@ const UnstyledButton = styled__default.default.button`
16892
16892
 
16893
16893
  ${sx}
16894
16894
  `;
16895
+ UnstyledButton.defaultProps = {
16896
+ type: 'button'
16897
+ };
16895
16898
 
16896
16899
  const Button = /*#__PURE__*/React.forwardRef(({
16900
+ type = 'button',
16897
16901
  size = 'm',
16898
16902
  variant = 'primary',
16899
16903
  fillWidth = false,
@@ -16906,6 +16910,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
16906
16910
  }, ref) => {
16907
16911
  return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseButton, {
16908
16912
  ref: ref,
16913
+ type: type,
16909
16914
  size: size,
16910
16915
  disabled: disabled || loading,
16911
16916
  $disabled: disabled,
@@ -17890,12 +17895,10 @@ const IconButton = /*#__PURE__*/React.forwardRef(({
17890
17895
  variant = 'primary',
17891
17896
  disabled = false,
17892
17897
  loading = false,
17893
- type = 'button',
17894
17898
  ...props
17895
17899
  }, ref) => {
17896
17900
  return /*#__PURE__*/jsxRuntimeExports.jsx(BaseIconButton, {
17897
17901
  ref: ref,
17898
- type: type,
17899
17902
  icon: Icon,
17900
17903
  size: size,
17901
17904
  variant: variant,
@@ -11,6 +11,7 @@ import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js'
11
11
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
12
12
 
13
13
  const Button = /*#__PURE__*/forwardRef(({
14
+ type = 'button',
14
15
  size = 'm',
15
16
  variant = 'primary',
16
17
  fillWidth = false,
@@ -23,6 +24,7 @@ const Button = /*#__PURE__*/forwardRef(({
23
24
  }, ref) => {
24
25
  return /*#__PURE__*/jsxRuntimeExports.jsxs(BaseButton, {
25
26
  ref: ref,
27
+ type: type,
26
28
  size: size,
27
29
  disabled: disabled || loading,
28
30
  $disabled: disabled,
@@ -15,12 +15,10 @@ const IconButton = /*#__PURE__*/forwardRef(({
15
15
  variant = 'primary',
16
16
  disabled = false,
17
17
  loading = false,
18
- type = 'button',
19
18
  ...props
20
19
  }, ref) => {
21
20
  return /*#__PURE__*/jsxRuntimeExports.jsx(BaseIconButton, {
22
21
  ref: ref,
23
- type: type,
24
22
  icon: Icon,
25
23
  size: size,
26
24
  variant: variant,
@@ -10,5 +10,8 @@ const UnstyledButton = styled.button`
10
10
 
11
11
  ${sx}
12
12
  `;
13
+ UnstyledButton.defaultProps = {
14
+ type: 'button'
15
+ };
13
16
 
14
17
  export { UnstyledButton as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.19.16",
3
+ "version": "2.19.18",
4
4
  "description": "React components, hooks for create teamturing web application",
5
5
  "author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
6
6
  "homepage": "https://github.com/weareteamturing/bombe#readme",
@@ -62,5 +62,5 @@
62
62
  "react-is": "^18.2.0",
63
63
  "styled-system": "^5.1.5"
64
64
  },
65
- "gitHead": "882bff67f13764f7af42f5b8e39c417d344a1815"
65
+ "gitHead": "a461f328a9702b8391f348aceb077ce5b0cd09a2"
66
66
  }