@wistia/ui 0.3.1 → 0.3.2
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 +13 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -474,7 +474,7 @@ type BoxProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
474
474
|
* Box is a layout container using [CSS Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox).
|
|
475
475
|
*/
|
|
476
476
|
declare const Box: {
|
|
477
|
-
({ alignContent, alignItems, children, direction,
|
|
477
|
+
({ alignContent, alignItems, alignSelf, basis, children, direction, fill, fillViewport, gap, grow, hasBoxParent, inline, justifyContent, order, shrink, wrapItems, ...otherProps }: BoxProps): JSX.Element;
|
|
478
478
|
displayName: string;
|
|
479
479
|
};
|
|
480
480
|
|
package/dist/index.d.ts
CHANGED
|
@@ -474,7 +474,7 @@ type BoxProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
474
474
|
* Box is a layout container using [CSS Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox).
|
|
475
475
|
*/
|
|
476
476
|
declare const Box: {
|
|
477
|
-
({ alignContent, alignItems, children, direction,
|
|
477
|
+
({ alignContent, alignItems, alignSelf, basis, children, direction, fill, fillViewport, gap, grow, hasBoxParent, inline, justifyContent, order, shrink, wrapItems, ...otherProps }: BoxProps): JSX.Element;
|
|
478
478
|
displayName: string;
|
|
479
479
|
};
|
|
480
480
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.3.
|
|
3
|
+
* @license @wistia/ui v0.3.2
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -5877,7 +5877,6 @@ import styled10 from "styled-components";
|
|
|
5877
5877
|
import { isNotNil as isNotNil6, isNil as isNil7, isRecord as isRecord2 } from "@wistia/type-guards";
|
|
5878
5878
|
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
5879
5879
|
var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
|
|
5880
|
-
var propsForFlexChildren = /* @__PURE__ */ new Set(["alignSelf", "basis", "grow", "order", "shrink"]);
|
|
5881
5880
|
var getGapStyle = (gap) => {
|
|
5882
5881
|
if (isNotNil6(gap)) {
|
|
5883
5882
|
if (isRecord2(gap)) {
|
|
@@ -5956,35 +5955,39 @@ var wrapChildren = (children) => {
|
|
|
5956
5955
|
var Box = ({
|
|
5957
5956
|
alignContent = "stretch",
|
|
5958
5957
|
alignItems = "flex-start",
|
|
5958
|
+
alignSelf,
|
|
5959
|
+
basis,
|
|
5959
5960
|
children,
|
|
5960
5961
|
direction = "row",
|
|
5961
|
-
hasBoxParent = false,
|
|
5962
5962
|
fill = false,
|
|
5963
5963
|
fillViewport = false,
|
|
5964
5964
|
gap,
|
|
5965
|
+
grow,
|
|
5966
|
+
hasBoxParent = false,
|
|
5967
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5965
5968
|
inline = false,
|
|
5966
5969
|
justifyContent = "flex-start",
|
|
5970
|
+
order,
|
|
5971
|
+
shrink,
|
|
5967
5972
|
wrapItems = false,
|
|
5968
5973
|
...otherProps
|
|
5969
5974
|
}) => {
|
|
5970
|
-
if (isDev && !hasBoxParent) {
|
|
5971
|
-
Object.keys(otherProps).forEach((prop) => {
|
|
5972
|
-
if (propsForFlexChildren.has(prop)) {
|
|
5973
|
-
console.warn(`${prop} only has an effect on <Box> instances that are children of a <Box>`);
|
|
5974
|
-
}
|
|
5975
|
-
});
|
|
5976
|
-
}
|
|
5977
5975
|
return /* @__PURE__ */ jsx167(
|
|
5978
5976
|
BoxComponent,
|
|
5979
5977
|
{
|
|
5980
5978
|
$alignContent: alignContent,
|
|
5981
5979
|
$alignItems: alignItems,
|
|
5980
|
+
$alignSelf: alignSelf,
|
|
5981
|
+
$basis: basis,
|
|
5982
5982
|
$fillBox: fill,
|
|
5983
5983
|
$fillViewport: fillViewport,
|
|
5984
5984
|
$flexDirection: direction,
|
|
5985
5985
|
$gap: gap,
|
|
5986
|
+
$grow: grow,
|
|
5986
5987
|
$inline: inline,
|
|
5987
5988
|
$justifyContent: justifyContent,
|
|
5989
|
+
$order: order,
|
|
5990
|
+
$shrink: shrink,
|
|
5988
5991
|
$wrapItems: wrapItems,
|
|
5989
5992
|
as: "div",
|
|
5990
5993
|
...otherProps,
|