@wistia/ui 0.3.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.3.0
3
+ * @license @wistia/ui v0.3.2
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -5963,7 +5963,6 @@ var import_styled_components23 = __toESM(require("styled-components"));
5963
5963
  var import_type_guards14 = require("@wistia/type-guards");
5964
5964
  var import_jsx_runtime167 = require("react/jsx-runtime");
5965
5965
  var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
5966
- var propsForFlexChildren = /* @__PURE__ */ new Set(["alignSelf", "basis", "grow", "order", "shrink"]);
5967
5966
  var getGapStyle = (gap) => {
5968
5967
  if ((0, import_type_guards14.isNotNil)(gap)) {
5969
5968
  if ((0, import_type_guards14.isRecord)(gap)) {
@@ -6042,35 +6041,39 @@ var wrapChildren = (children) => {
6042
6041
  var Box = ({
6043
6042
  alignContent = "stretch",
6044
6043
  alignItems = "flex-start",
6044
+ alignSelf,
6045
+ basis,
6045
6046
  children,
6046
6047
  direction = "row",
6047
- hasBoxParent = false,
6048
6048
  fill = false,
6049
6049
  fillViewport = false,
6050
6050
  gap,
6051
+ grow,
6052
+ hasBoxParent = false,
6053
+ // eslint-disable-line @typescript-eslint/no-unused-vars
6051
6054
  inline = false,
6052
6055
  justifyContent = "flex-start",
6056
+ order,
6057
+ shrink,
6053
6058
  wrapItems = false,
6054
6059
  ...otherProps
6055
6060
  }) => {
6056
- if (isDev && !hasBoxParent) {
6057
- Object.keys(otherProps).forEach((prop) => {
6058
- if (propsForFlexChildren.has(prop)) {
6059
- console.warn(`${prop} only has an effect on <Box> instances that are children of a <Box>`);
6060
- }
6061
- });
6062
- }
6063
6061
  return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
6064
6062
  BoxComponent,
6065
6063
  {
6066
6064
  $alignContent: alignContent,
6067
6065
  $alignItems: alignItems,
6066
+ $alignSelf: alignSelf,
6067
+ $basis: basis,
6068
6068
  $fillBox: fill,
6069
6069
  $fillViewport: fillViewport,
6070
6070
  $flexDirection: direction,
6071
6071
  $gap: gap,
6072
+ $grow: grow,
6072
6073
  $inline: inline,
6073
6074
  $justifyContent: justifyContent,
6075
+ $order: order,
6076
+ $shrink: shrink,
6074
6077
  $wrapItems: wrapItems,
6075
6078
  as: "div",
6076
6079
  ...otherProps,
@@ -6101,7 +6104,7 @@ var ButtonGroupComponent = import_styled_components24.default.div`
6101
6104
 
6102
6105
  /* this helps ensure that primary buttons appear at the top of the column */
6103
6106
  flex-direction: ${({ $align }) => $align === "right" ? "column-reverse" : "column"};
6104
- gap: var(--wui-space-04);
6107
+ gap: var(--wui-space-02);
6105
6108
  align-items: center;
6106
6109
  justify-content: ${({ $align }) => getAlignment($align)};
6107
6110
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};