@wistia/ui 0.14.34 → 0.14.35
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 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +51 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.35
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1665,7 +1665,7 @@ var UIProviderNestingContext = (0, import_react3.createContext)(false);
|
|
|
1665
1665
|
var UIProvider = ({ children }) => {
|
|
1666
1666
|
const isNested = (0, import_react3.useContext)(UIProviderNestingContext);
|
|
1667
1667
|
if (isNested) {
|
|
1668
|
-
|
|
1668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children });
|
|
1669
1669
|
}
|
|
1670
1670
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UIProviderNestingContext.Provider, { value: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AriaLiveProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react_tooltip.Provider, { children: [
|
|
1671
1671
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(GlobalStyle, {}),
|
|
@@ -2970,6 +2970,7 @@ var StyledToast = import_styled_components16.default.div`
|
|
|
2970
2970
|
svg {
|
|
2971
2971
|
height: 16px;
|
|
2972
2972
|
width: 16px;
|
|
2973
|
+
flex: 0 0 16px;
|
|
2973
2974
|
}
|
|
2974
2975
|
`;
|
|
2975
2976
|
var Action = ({ actionButton }) => {
|
|
@@ -3191,6 +3192,7 @@ var buttonBaseStyles = import_styled_components18.css`
|
|
|
3191
3192
|
color: var(--button-color-icon);
|
|
3192
3193
|
width: var(--button-icon-size);
|
|
3193
3194
|
height: var(--button-icon-size);
|
|
3195
|
+
flex: 0 0 var(--button-icon-size);
|
|
3194
3196
|
}
|
|
3195
3197
|
}
|
|
3196
3198
|
|
|
@@ -7239,6 +7241,7 @@ var StyledIcon = import_styled_components19.default.svg`
|
|
|
7239
7241
|
--wui-icon-size: var(--wui-icon-inline-size, ${({ $height }) => $height}px);
|
|
7240
7242
|
--wui-icon-vertical-align: middle;
|
|
7241
7243
|
|
|
7244
|
+
flex: 0 0 var(--wui-icon-size);
|
|
7242
7245
|
height: var(--wui-icon-size);
|
|
7243
7246
|
width: var(--wui-icon-size);
|
|
7244
7247
|
`;
|
|
@@ -7329,6 +7332,7 @@ var StyledLink = import_styled_components20.default.a`
|
|
|
7329
7332
|
svg {
|
|
7330
7333
|
width: 14px;
|
|
7331
7334
|
height: 14px;
|
|
7335
|
+
flex: 0 0 14px;
|
|
7332
7336
|
}
|
|
7333
7337
|
}
|
|
7334
7338
|
`;
|
|
@@ -7629,6 +7633,7 @@ var StyledMainIcon = import_styled_components22.default.div`
|
|
|
7629
7633
|
svg {
|
|
7630
7634
|
width: 24px;
|
|
7631
7635
|
height: 24px;
|
|
7636
|
+
flex: 0 0 24px;
|
|
7632
7637
|
}
|
|
7633
7638
|
}
|
|
7634
7639
|
`;
|
|
@@ -7655,6 +7660,7 @@ var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
|
7655
7660
|
svg {
|
|
7656
7661
|
width: 24px;
|
|
7657
7662
|
height: 24px;
|
|
7663
|
+
flex: 0 0 24px;
|
|
7658
7664
|
}
|
|
7659
7665
|
}
|
|
7660
7666
|
`;
|
|
@@ -7990,6 +7996,7 @@ var StyledBadge = import_styled_components26.default.div`
|
|
|
7990
7996
|
color: var(--wui-color-icon);
|
|
7991
7997
|
height: 12px;
|
|
7992
7998
|
width: 12px;
|
|
7999
|
+
flex: 0 0 12px;
|
|
7993
8000
|
}
|
|
7994
8001
|
}
|
|
7995
8002
|
`;
|
|
@@ -12091,6 +12098,7 @@ var TagLabel = import_styled_components66.default.a`
|
|
|
12091
12098
|
svg {
|
|
12092
12099
|
height: 12px;
|
|
12093
12100
|
width: 12px;
|
|
12101
|
+
flex: 0 0 12px;
|
|
12094
12102
|
}
|
|
12095
12103
|
|
|
12096
12104
|
&:focus-visible {
|
|
@@ -12386,12 +12394,25 @@ var extractOptions = (children) => {
|
|
|
12386
12394
|
});
|
|
12387
12395
|
return options;
|
|
12388
12396
|
};
|
|
12397
|
+
var defaultDisplayValues = (values, onRemove) => {
|
|
12398
|
+
return values.map((selectedValue) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
12399
|
+
Tag,
|
|
12400
|
+
{
|
|
12401
|
+
href: "https://example.com",
|
|
12402
|
+
label: selectedValue,
|
|
12403
|
+
onClickRemove: () => onRemove(selectedValue),
|
|
12404
|
+
onClickRemoveLabel: `Remove ${selectedValue}`
|
|
12405
|
+
},
|
|
12406
|
+
selectedValue
|
|
12407
|
+
));
|
|
12408
|
+
};
|
|
12389
12409
|
var Combobox2 = ({
|
|
12390
12410
|
placeholder,
|
|
12391
12411
|
value = [],
|
|
12392
12412
|
onChange,
|
|
12393
12413
|
searchValue,
|
|
12394
12414
|
onSearchValueChange,
|
|
12415
|
+
displayValues = defaultDisplayValues,
|
|
12395
12416
|
children,
|
|
12396
12417
|
fullWidth = true
|
|
12397
12418
|
}) => {
|
|
@@ -12437,17 +12458,14 @@ var Combobox2 = ({
|
|
|
12437
12458
|
ref: comboboxWrapperRef,
|
|
12438
12459
|
$fullWidth: fullWidth,
|
|
12439
12460
|
children: [
|
|
12440
|
-
value
|
|
12441
|
-
|
|
12461
|
+
displayValues(value, handleRemoveValue),
|
|
12462
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
12463
|
+
ComboboxInput,
|
|
12442
12464
|
{
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
},
|
|
12448
|
-
selectedValue
|
|
12449
|
-
)),
|
|
12450
|
-
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(ComboboxInput, { placeholder })
|
|
12465
|
+
autoSelect: true,
|
|
12466
|
+
placeholder
|
|
12467
|
+
}
|
|
12468
|
+
)
|
|
12451
12469
|
]
|
|
12452
12470
|
}
|
|
12453
12471
|
),
|
|
@@ -12746,6 +12764,7 @@ var StyledLeftIconContainer = import_styled_components71.default.div`
|
|
|
12746
12764
|
svg {
|
|
12747
12765
|
height: var(--menu-item-left-icon-size);
|
|
12748
12766
|
width: var(--menu-item-left-icon-size);
|
|
12767
|
+
flex: 0 0 var(--menu-item-left-icon-size);
|
|
12749
12768
|
}
|
|
12750
12769
|
}
|
|
12751
12770
|
`;
|
|
@@ -12757,6 +12776,7 @@ var StyledRightIconContainer = import_styled_components71.default.div`
|
|
|
12757
12776
|
svg {
|
|
12758
12777
|
height: var(--menu-item-right-icon-size);
|
|
12759
12778
|
width: var(--menu-item-right-icon-size);
|
|
12779
|
+
flex: 0 0 var(--menu-item-right-icon-size);
|
|
12760
12780
|
}
|
|
12761
12781
|
}
|
|
12762
12782
|
`;
|
|
@@ -16279,6 +16299,7 @@ var segmentedControlItemStyles = import_styled_components108.css`
|
|
|
16279
16299
|
svg {
|
|
16280
16300
|
height: 16px;
|
|
16281
16301
|
width: 16px;
|
|
16302
|
+
flex: 0 0 16px;
|
|
16282
16303
|
|
|
16283
16304
|
/* add right margin if there's a label and an icon */
|
|
16284
16305
|
${({ $hasLabel }) => $hasLabel ? "margin-right: var(--wui-space-01)" : ""}
|
|
@@ -17019,6 +17040,7 @@ var StyledThumbnailBadge = import_styled_components122.default.div`
|
|
|
17019
17040
|
svg {
|
|
17020
17041
|
height: 12px;
|
|
17021
17042
|
width: 12px;
|
|
17043
|
+
flex: 0 0 12px;
|
|
17022
17044
|
|
|
17023
17045
|
path {
|
|
17024
17046
|
color: var(--wui-color-icon-on-fill);
|