@wistia/ui 0.15.5 → 0.15.6-beta.4b8f1bea.4ad60a9
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 +24 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +24 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -11
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.
|
|
3
|
+
* @license @wistia/ui v0.15.6-beta.4b8f1bea.4ad60a9
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7741,6 +7741,12 @@ var StyledLink = import_styled_components21.default.a`
|
|
|
7741
7741
|
text-decoration: ${({ $underline }) => $underline === "hover" || $underline === "always" ? "underline" : "none"};
|
|
7742
7742
|
}
|
|
7743
7743
|
|
|
7744
|
+
button& {
|
|
7745
|
+
display: inline;
|
|
7746
|
+
line-height: inherit;
|
|
7747
|
+
vertical-align: baseline;
|
|
7748
|
+
}
|
|
7749
|
+
|
|
7744
7750
|
&& {
|
|
7745
7751
|
svg {
|
|
7746
7752
|
width: 14px;
|
|
@@ -7803,6 +7809,7 @@ var Link = (0, import_react22.forwardRef)(
|
|
|
7803
7809
|
{
|
|
7804
7810
|
ref,
|
|
7805
7811
|
as: "button",
|
|
7812
|
+
"data-link-type": "button",
|
|
7806
7813
|
type: "button",
|
|
7807
7814
|
...props,
|
|
7808
7815
|
...commonProps,
|
|
@@ -18230,19 +18237,24 @@ WistiaLogo.displayName = "WistiaLogo_UI";
|
|
|
18230
18237
|
// src/components/SplitButton/SplitButton.tsx
|
|
18231
18238
|
var import_styled_components129 = __toESM(require("styled-components"));
|
|
18232
18239
|
var import_type_guards76 = require("@wistia/type-guards");
|
|
18240
|
+
var import_react102 = require("react");
|
|
18233
18241
|
var import_jsx_runtime328 = require("react/jsx-runtime");
|
|
18234
18242
|
var StyledSplitButton = import_styled_components129.default.span`
|
|
18243
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18235
18244
|
white-space: nowrap;
|
|
18236
18245
|
|
|
18237
|
-
|
|
18238
|
-
|
|
18239
|
-
|
|
18240
|
-
|
|
18246
|
+
&:has(:nth-child(2)) {
|
|
18247
|
+
> [data-wui-button='true']:first-child {
|
|
18248
|
+
border-top-right-radius: 0;
|
|
18249
|
+
border-bottom-right-radius: 0;
|
|
18250
|
+
padding-right: 0;
|
|
18251
|
+
}
|
|
18241
18252
|
|
|
18242
|
-
|
|
18243
|
-
|
|
18244
|
-
|
|
18245
|
-
|
|
18253
|
+
> [data-wui-button='true']:last-child {
|
|
18254
|
+
border-top-left-radius: 0;
|
|
18255
|
+
border-bottom-left-radius: 0;
|
|
18256
|
+
display: inline-flex;
|
|
18257
|
+
}
|
|
18246
18258
|
}
|
|
18247
18259
|
`;
|
|
18248
18260
|
var SplitButton = ({
|
|
@@ -18251,7 +18263,7 @@ var SplitButton = ({
|
|
|
18251
18263
|
menuIcon = /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(Icon, { type: "caret-down" }),
|
|
18252
18264
|
menuItems,
|
|
18253
18265
|
disabled = false,
|
|
18254
|
-
colorScheme = "
|
|
18266
|
+
colorScheme = "inherit",
|
|
18255
18267
|
variant = "solid",
|
|
18256
18268
|
secondaryAction,
|
|
18257
18269
|
size = "md",
|
|
@@ -18259,11 +18271,10 @@ var SplitButton = ({
|
|
|
18259
18271
|
menuProps = {},
|
|
18260
18272
|
...props
|
|
18261
18273
|
}) => {
|
|
18262
|
-
return /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(StyledSplitButton, { children: [
|
|
18274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(StyledSplitButton, { $colorScheme: colorScheme, children: [
|
|
18263
18275
|
/* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18264
18276
|
Button,
|
|
18265
18277
|
{
|
|
18266
|
-
colorScheme,
|
|
18267
18278
|
disabled,
|
|
18268
18279
|
size,
|
|
18269
18280
|
unstyled,
|
|
@@ -18280,7 +18291,6 @@ var SplitButton = ({
|
|
|
18280
18291
|
trigger: /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18281
18292
|
IconButton,
|
|
18282
18293
|
{
|
|
18283
|
-
colorScheme,
|
|
18284
18294
|
disabled,
|
|
18285
18295
|
label: menuLabel,
|
|
18286
18296
|
size,
|
|
@@ -18292,7 +18302,7 @@ var SplitButton = ({
|
|
|
18292
18302
|
children: menuItems
|
|
18293
18303
|
}
|
|
18294
18304
|
),
|
|
18295
|
-
(0, import_type_guards76.isNotNil)(secondaryAction) && secondaryAction
|
|
18305
|
+
(0, import_type_guards76.isNotNil)(secondaryAction) && (0, import_react102.cloneElement)(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
|
|
18296
18306
|
] });
|
|
18297
18307
|
};
|
|
18298
18308
|
SplitButton.displayName = "SplitButton_UI";
|