@khanacademy/wonder-blocks-icon-button
Advanced tools
Comparing version 0.0.0-PR2325-20240919175114 to 0.0.0-PR2332-20241001155238
# @khanacademy/wonder-blocks-icon-button | ||
## 0.0.0-PR2325-20240919175114 | ||
## 0.0.0-PR2332-20241001155238 | ||
### Minor Changes | ||
- bf2a6f6a: Add type=submit prop to allow submitting forms with the button | ||
- 47f224da: Adds `id` prop and fixes `type` prop to set 'button' as default value. | ||
## 5.5.0 | ||
### Minor Changes | ||
- 3463bde3: Add type=submit prop to allow submitting forms with the button | ||
## 5.4.1 | ||
@@ -10,0 +16,0 @@ |
@@ -8,2 +8,6 @@ import * as React from "react"; | ||
/** | ||
* A unique identifier for the IconButton. | ||
*/ | ||
id?: string; | ||
/** | ||
* A Phosphor icon asset (imported as a static SVG file). | ||
@@ -10,0 +14,0 @@ */ |
@@ -180,3 +180,3 @@ import _extends from '@babel/runtime/helpers/extends'; | ||
const _excluded$1 = ["color", "disabled", "href", "icon", "kind", "light", "size", "skipClientNav", "style", "testId"]; | ||
const _excluded$1 = ["color", "disabled", "href", "icon", "kind", "light", "size", "skipClientNav", "style", "testId", "type"]; | ||
function IconChooser({ | ||
@@ -217,3 +217,4 @@ icon, | ||
style, | ||
testId | ||
testId, | ||
type = "button" | ||
} = props, | ||
@@ -246,3 +247,3 @@ restProps = _objectWithoutPropertiesLoose(props, _excluded$1); | ||
return React.createElement(StyledButton, _extends({ | ||
type: "button" | ||
type: type | ||
}, commonProps, { | ||
@@ -249,0 +250,0 @@ onClick: disabled ? undefined : restProps.onClick, |
@@ -207,3 +207,3 @@ 'use strict'; | ||
const _excluded$1 = ["color", "disabled", "href", "icon", "kind", "light", "size", "skipClientNav", "style", "testId"]; | ||
const _excluded$1 = ["color", "disabled", "href", "icon", "kind", "light", "size", "skipClientNav", "style", "testId", "type"]; | ||
function IconChooser({ | ||
@@ -244,3 +244,4 @@ icon, | ||
style, | ||
testId | ||
testId, | ||
type = "button" | ||
} = props, | ||
@@ -273,3 +274,3 @@ restProps = _objectWithoutPropertiesLoose__default["default"](props, _excluded$1); | ||
return React__namespace.createElement(StyledButton, _extends__default["default"]({ | ||
type: "button" | ||
type: type | ||
}, commonProps, { | ||
@@ -276,0 +277,0 @@ onClick: disabled ? undefined : restProps.onClick, |
{ | ||
"name": "@khanacademy/wonder-blocks-icon-button", | ||
"version": "0.0.0-PR2325-20240919175114", | ||
"version": "0.0.0-PR2332-20241001155238", | ||
"design": "v1", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61404
1383