@wistia/ui 0.6.17 → 0.6.18

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.6.17
3
+ * @license @wistia/ui v0.6.18
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7224,6 +7224,8 @@ var StyledBoxComponent = import_styled_components26.default.div`
7224
7224
  flex-direction: ${({ $flexDirection }) => $flexDirection};
7225
7225
  ${({ $fillBox: fill }) => getFillStyle(fill)};
7226
7226
  ${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
7227
+ height: ${({ $height }) => $height ?? null};
7228
+ width: ${({ $width }) => $width ?? null};
7227
7229
 
7228
7230
  /* Box children styles */
7229
7231
  flex-grow: ${({ $grow }) => (0, import_type_guards17.isNotNil)($grow) ? $grow : null};
@@ -7264,14 +7266,36 @@ var BoxComponent = (0, import_react16.forwardRef)(
7264
7266
  grow,
7265
7267
  hasBoxParent = false,
7266
7268
  // eslint-disable-line @typescript-eslint/no-unused-vars
7269
+ height,
7267
7270
  inline = false,
7268
7271
  justifyContent = "flex-start",
7269
7272
  order,
7270
7273
  renderAs,
7271
7274
  shrink,
7275
+ width,
7272
7276
  wrapItems = false,
7273
7277
  ...otherProps
7274
7278
  }, ref) => {
7279
+ if ((0, import_type_guards17.isNotUndefined)(height)) {
7280
+ if ((0, import_type_guards17.isTruthy)(fill) || fill === "vertical") {
7281
+ throw new Error('Cannot use height prop with fill="vertical" or fill={true}');
7282
+ }
7283
+ if ((0, import_type_guards17.isTruthy)(fillViewport) || fillViewport === "vertical") {
7284
+ throw new Error(
7285
+ 'Cannot use height prop with fillViewport="vertical" or fillViewport={true}'
7286
+ );
7287
+ }
7288
+ }
7289
+ if ((0, import_type_guards17.isNotUndefined)(width)) {
7290
+ if ((0, import_type_guards17.isTruthy)(fill) || fill === "horizontal") {
7291
+ throw new Error('Cannot use width prop with fill="horizontal" or fill={true}');
7292
+ }
7293
+ if ((0, import_type_guards17.isTruthy)(fillViewport) || fillViewport === "horizontal") {
7294
+ throw new Error(
7295
+ 'Cannot use width prop with fillViewport="horizontal" or fillViewport={true}'
7296
+ );
7297
+ }
7298
+ }
7275
7299
  return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
7276
7300
  StyledBoxComponent,
7277
7301
  {
@@ -7285,10 +7309,12 @@ var BoxComponent = (0, import_react16.forwardRef)(
7285
7309
  $flexDirection: direction,
7286
7310
  $gap: gap,
7287
7311
  $grow: grow,
7312
+ $height: height,
7288
7313
  $inline: inline,
7289
7314
  $justifyContent: justifyContent,
7290
7315
  $order: order,
7291
7316
  $shrink: shrink,
7317
+ $width: width,
7292
7318
  $wrapItems: wrapItems,
7293
7319
  as: renderAs ?? DEFAULT_ELEMENT,
7294
7320
  ...otherProps,
@@ -7458,6 +7484,8 @@ var StyledCard = (0, import_styled_components30.default)(Box)`
7458
7484
  outline-offset: -2px;
7459
7485
  border-radius: var(--wui-border-radius-02);
7460
7486
  display: flex;
7487
+ height: ${({ $height }) => $height};
7488
+ width: ${({ $width }) => $width};
7461
7489
  `;
7462
7490
  var prominenceMap = {
7463
7491
  default: {
@@ -7481,6 +7509,8 @@ var Card = ({
7481
7509
  colorScheme = "inherit",
7482
7510
  prominence = "secondary",
7483
7511
  border = false,
7512
+ height,
7513
+ width,
7484
7514
  ...props
7485
7515
  }) => /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
7486
7516
  StyledCard,
@@ -7488,7 +7518,9 @@ var Card = ({
7488
7518
  $backgroundColor: prominenceMap[prominence].backgroundColor,
7489
7519
  $borderColor: border ? prominenceMap[prominence].borderColor : "transparent",
7490
7520
  $colorScheme: colorScheme,
7521
+ $height: height,
7491
7522
  $paddingSize: paddingSize,
7523
+ $width: width,
7492
7524
  direction,
7493
7525
  gap,
7494
7526
  ...props,