@wistia/ui 0.8.14 → 0.8.15
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 +16 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +19 -12
- package/dist/index.d.ts +19 -12
- package/dist/index.mjs +16 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.8.
|
|
3
|
+
* @license @wistia/ui v0.8.15
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7870,8 +7870,14 @@ var BoxComponent = (0, import_react23.forwardRef)(
|
|
|
7870
7870
|
flexMode,
|
|
7871
7871
|
...props
|
|
7872
7872
|
}, ref) => {
|
|
7873
|
+
const responsiveAlignContent = useResponsiveProp(alignContent);
|
|
7874
|
+
const responsiveAlignItems = useResponsiveProp(alignItems);
|
|
7875
|
+
const responsiveDirection = useResponsiveProp(direction);
|
|
7876
|
+
const responsiveFill = useResponsiveProp(fill);
|
|
7877
|
+
const responsiveGap = useResponsiveProp(gap);
|
|
7878
|
+
const responsiveJustifyContent = useResponsiveProp(justifyContent);
|
|
7873
7879
|
if ((0, import_type_guards20.isNotUndefined)(height)) {
|
|
7874
|
-
if (
|
|
7880
|
+
if (responsiveFill === true || responsiveFill === "vertical") {
|
|
7875
7881
|
throw new Error('Cannot use height prop with fill="vertical" or fill={true}');
|
|
7876
7882
|
}
|
|
7877
7883
|
if (fillViewport === true || fillViewport === "vertical") {
|
|
@@ -7881,7 +7887,7 @@ var BoxComponent = (0, import_react23.forwardRef)(
|
|
|
7881
7887
|
}
|
|
7882
7888
|
}
|
|
7883
7889
|
if ((0, import_type_guards20.isNotUndefined)(width)) {
|
|
7884
|
-
if (
|
|
7890
|
+
if (responsiveFill === true || responsiveFill === "horizontal") {
|
|
7885
7891
|
throw new Error('Cannot use width prop with fill="horizontal" or fill={true}');
|
|
7886
7892
|
}
|
|
7887
7893
|
if (fillViewport === true || fillViewport === "horizontal") {
|
|
@@ -7894,19 +7900,19 @@ var BoxComponent = (0, import_react23.forwardRef)(
|
|
|
7894
7900
|
StyledBoxComponent,
|
|
7895
7901
|
{
|
|
7896
7902
|
ref,
|
|
7897
|
-
$alignContent:
|
|
7898
|
-
$alignItems:
|
|
7903
|
+
$alignContent: responsiveAlignContent,
|
|
7904
|
+
$alignItems: responsiveAlignItems,
|
|
7899
7905
|
$alignSelf: alignSelf,
|
|
7900
7906
|
$basis: basis,
|
|
7901
|
-
$fillBox:
|
|
7907
|
+
$fillBox: responsiveFill,
|
|
7902
7908
|
$fillViewport: fillViewport,
|
|
7903
|
-
$flexDirection:
|
|
7909
|
+
$flexDirection: responsiveDirection,
|
|
7904
7910
|
$flexMode: flexMode,
|
|
7905
|
-
$gap:
|
|
7911
|
+
$gap: responsiveGap,
|
|
7906
7912
|
$grow: grow,
|
|
7907
7913
|
$height: height,
|
|
7908
7914
|
$inline: inline,
|
|
7909
|
-
$justifyContent:
|
|
7915
|
+
$justifyContent: responsiveJustifyContent,
|
|
7910
7916
|
$order: order,
|
|
7911
7917
|
$shrink: shrink,
|
|
7912
7918
|
$width: width,
|
|
@@ -11667,7 +11673,7 @@ var SelectOption = (0, import_react58.forwardRef)(
|
|
|
11667
11673
|
);
|
|
11668
11674
|
}
|
|
11669
11675
|
);
|
|
11670
|
-
SelectOption.displayName = "
|
|
11676
|
+
SelectOption.displayName = "SelectOption";
|
|
11671
11677
|
|
|
11672
11678
|
// src/components/Select/SelectOptionGroup.tsx
|
|
11673
11679
|
var import_react_select3 = require("@radix-ui/react-select");
|