@wistia/ui 0.6.34-beta.102cdb30.1a306e1 → 0.6.34
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 +2 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -29
- package/dist/index.d.ts +6 -29
- package/dist/index.mjs +81 -116
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.34
|
|
3
|
+
* @license @wistia/ui v0.6.34
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7358,38 +7358,6 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
7358
7358
|
}
|
|
7359
7359
|
return void 0;
|
|
7360
7360
|
};
|
|
7361
|
-
var getFlexStyle = (flexMode) => {
|
|
7362
|
-
if (!flexMode) return null;
|
|
7363
|
-
switch (flexMode) {
|
|
7364
|
-
// grows to fill space, won't shrink, starts at 0
|
|
7365
|
-
case "grow":
|
|
7366
|
-
return import_styled_components25.css`
|
|
7367
|
-
flex: 1 0 0;
|
|
7368
|
-
`;
|
|
7369
|
-
// default behavior, can shrink but won't grow
|
|
7370
|
-
case "initial":
|
|
7371
|
-
return import_styled_components25.css`
|
|
7372
|
-
flex: 0 1 auto;
|
|
7373
|
-
`;
|
|
7374
|
-
// equal distribution of space
|
|
7375
|
-
case "equal":
|
|
7376
|
-
return import_styled_components25.css`
|
|
7377
|
-
flex: 1;
|
|
7378
|
-
`;
|
|
7379
|
-
// won't grow or shrink
|
|
7380
|
-
case "rigid":
|
|
7381
|
-
return import_styled_components25.css`
|
|
7382
|
-
flex: 0 0 auto;
|
|
7383
|
-
`;
|
|
7384
|
-
// can grow and shrink from content size
|
|
7385
|
-
case "fluid":
|
|
7386
|
-
return import_styled_components25.css`
|
|
7387
|
-
flex: 1 1 auto;
|
|
7388
|
-
`;
|
|
7389
|
-
default:
|
|
7390
|
-
return null;
|
|
7391
|
-
}
|
|
7392
|
-
};
|
|
7393
7361
|
var StyledBoxComponent = import_styled_components25.default.div`
|
|
7394
7362
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
7395
7363
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
@@ -7399,8 +7367,6 @@ var StyledBoxComponent = import_styled_components25.default.div`
|
|
|
7399
7367
|
flex-direction: ${({ $flexDirection }) => $flexDirection};
|
|
7400
7368
|
${({ $fillBox: fill }) => getFillStyle(fill)};
|
|
7401
7369
|
${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
|
|
7402
|
-
${({ $flexMode }) => getFlexStyle($flexMode)};
|
|
7403
|
-
${({ $gap }) => getGapStyle($gap)};
|
|
7404
7370
|
height: ${({ $height }) => $height ?? null};
|
|
7405
7371
|
width: ${({ $width }) => $width ?? null};
|
|
7406
7372
|
|
|
@@ -7408,6 +7374,7 @@ var StyledBoxComponent = import_styled_components25.default.div`
|
|
|
7408
7374
|
flex-grow: ${({ $grow }) => (0, import_type_guards17.isNotNil)($grow) ? $grow : null};
|
|
7409
7375
|
flex-shrink: ${({ $shrink }) => (0, import_type_guards17.isNotNil)($shrink) ? $shrink : null};
|
|
7410
7376
|
flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
|
|
7377
|
+
${({ $gap }) => getGapStyle($gap)};
|
|
7411
7378
|
justify-content: ${({ $justifyContent }) => $justifyContent};
|
|
7412
7379
|
order: ${({ $order }) => (0, import_type_guards17.isNotNil)($order) ? $order : null};
|
|
7413
7380
|
`;
|
|
@@ -7450,7 +7417,6 @@ var BoxComponent = (0, import_react17.forwardRef)(
|
|
|
7450
7417
|
shrink,
|
|
7451
7418
|
width,
|
|
7452
7419
|
wrapItems = false,
|
|
7453
|
-
flexMode,
|
|
7454
7420
|
...otherProps
|
|
7455
7421
|
}, ref) => {
|
|
7456
7422
|
if ((0, import_type_guards17.isNotUndefined)(height)) {
|
|
@@ -7484,7 +7450,6 @@ var BoxComponent = (0, import_react17.forwardRef)(
|
|
|
7484
7450
|
$fillBox: fill,
|
|
7485
7451
|
$fillViewport: fillViewport,
|
|
7486
7452
|
$flexDirection: direction,
|
|
7487
|
-
$flexMode: flexMode,
|
|
7488
7453
|
$gap: gap,
|
|
7489
7454
|
$grow: grow,
|
|
7490
7455
|
$height: height,
|