forstok-ui-lib 5.2.2 → 5.2.4
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/button/index.tsx +2 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ type TButton = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const ButtonComponent = ({ children, $mode, $isIndicatorArrow=false, isIndicatorArrowColor='initial', $isShown=true, $shadow=false, $isLoading=false, refContainer, $activated=false, $size, $iconLeft, ...props }: TButton) => {
|
|
19
|
-
const { disabled } = props;
|
|
19
|
+
const { type, disabled } = props;
|
|
20
20
|
const IndicatorArrowIconEl = $isIndicatorArrow ? (
|
|
21
21
|
<IndicatorsArrowIconSvg color={isIndicatorArrowColor} height='20' width='20' viewBox='0 0 20 20' aria-hidden='true' focusable='false'>
|
|
22
22
|
<path d='M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z'></path>
|
|
@@ -24,6 +24,7 @@ const ButtonComponent = ({ children, $mode, $isIndicatorArrow=false, isIndicator
|
|
|
24
24
|
) : null;
|
|
25
25
|
return (
|
|
26
26
|
<ButtonContainer
|
|
27
|
+
type={type || 'button'}
|
|
27
28
|
{...$mode && { name: $mode }}
|
|
28
29
|
$mode={$mode}
|
|
29
30
|
$isIndicatorArrow={$isIndicatorArrow ? true : false}
|