@wistia/vhs 3.0.1 → 3.0.2-beta.71a34500.ddfe1bb
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.cjs +34 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +34 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -16
package/dist/index.d.mts
CHANGED
|
@@ -512,7 +512,7 @@ declare const Link: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps
|
|
|
512
512
|
* The visual type of Link to display
|
|
513
513
|
*/
|
|
514
514
|
variant?: "dangerous" | "primary" | "secondary";
|
|
515
|
-
} & react.RefAttributes<
|
|
515
|
+
} & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
516
516
|
|
|
517
517
|
type WrapperProviderLinkType = ((props: DefaultLinkWrapperProps) => JSX.Element) | undefined;
|
|
518
518
|
|
|
@@ -1444,7 +1444,7 @@ type ButtonLinkProps = ComponentPropsWithRef<'a'> & {
|
|
|
1444
1444
|
* **Note:** the props table below is incomplete; please
|
|
1445
1445
|
* refer to [Link](?path=/docs/link--link-stories) for additional props.
|
|
1446
1446
|
*/
|
|
1447
|
-
declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<
|
|
1447
|
+
declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1448
1448
|
|
|
1449
1449
|
type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
1450
1450
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -512,7 +512,7 @@ declare const Link: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps
|
|
|
512
512
|
* The visual type of Link to display
|
|
513
513
|
*/
|
|
514
514
|
variant?: "dangerous" | "primary" | "secondary";
|
|
515
|
-
} & react.RefAttributes<
|
|
515
|
+
} & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
516
516
|
|
|
517
517
|
type WrapperProviderLinkType = ((props: DefaultLinkWrapperProps) => JSX.Element) | undefined;
|
|
518
518
|
|
|
@@ -1444,7 +1444,7 @@ type ButtonLinkProps = ComponentPropsWithRef<'a'> & {
|
|
|
1444
1444
|
* **Note:** the props table below is incomplete; please
|
|
1445
1445
|
* refer to [Link](?path=/docs/link--link-stories) for additional props.
|
|
1446
1446
|
*/
|
|
1447
|
-
declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<
|
|
1447
|
+
declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1448
1448
|
|
|
1449
1449
|
type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
1450
1450
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v3.0.
|
|
3
|
+
* @license @wistia/vhs v3.0.2-beta.71a34500.ddfe1bb
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6549,45 +6549,39 @@ var ButtonLink = forwardRef6(
|
|
|
6549
6549
|
}
|
|
6550
6550
|
return null;
|
|
6551
6551
|
};
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
children: getContent()
|
|
6586
|
-
}
|
|
6587
|
-
)
|
|
6588
|
-
}
|
|
6589
|
-
)
|
|
6590
|
-
);
|
|
6552
|
+
const styledProps = {
|
|
6553
|
+
ref,
|
|
6554
|
+
$buttonColor: buttonColor,
|
|
6555
|
+
$forceState: forceState,
|
|
6556
|
+
$fullWidth: fullWidth,
|
|
6557
|
+
$icon: icon,
|
|
6558
|
+
$iconPosition: iconPosition,
|
|
6559
|
+
$isLoading: false,
|
|
6560
|
+
$labelWrap: labelWrap,
|
|
6561
|
+
$size: size,
|
|
6562
|
+
$square: square,
|
|
6563
|
+
$textAlign: textAlign,
|
|
6564
|
+
$variant: variant,
|
|
6565
|
+
beforeAction,
|
|
6566
|
+
disabled,
|
|
6567
|
+
href,
|
|
6568
|
+
params,
|
|
6569
|
+
type,
|
|
6570
|
+
unstyled: true,
|
|
6571
|
+
...otherProps
|
|
6572
|
+
};
|
|
6573
|
+
return /* @__PURE__ */ jsx140(StyledButtonLink, { ...styledProps, children: /* @__PURE__ */ jsx140(
|
|
6574
|
+
ButtonContent,
|
|
6575
|
+
{
|
|
6576
|
+
icon,
|
|
6577
|
+
iconName,
|
|
6578
|
+
iconPosition,
|
|
6579
|
+
isLoading: false,
|
|
6580
|
+
size,
|
|
6581
|
+
textAlign,
|
|
6582
|
+
children: getContent()
|
|
6583
|
+
}
|
|
6584
|
+
) });
|
|
6591
6585
|
}
|
|
6592
6586
|
);
|
|
6593
6587
|
ButtonLink.displayName = "ButtonLink_VHS";
|