@wistia/ui 0.6.34 → 0.6.35

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.d.mts CHANGED
@@ -578,6 +578,7 @@ type Gap = {
578
578
  column: Spacings;
579
579
  row: Spacings;
580
580
  };
581
+ type FlexModeType = 'equal' | 'fluid' | 'grow' | 'initial' | 'rigid';
581
582
  declare const DEFAULT_ELEMENT$1 = "div";
582
583
  /**
583
584
  * CSS property => Box prop:
@@ -615,6 +616,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
615
616
  /**
616
617
  * Specifies the initial main size of an item
617
618
  *
619
+ * *Note: Cannot be used with `flexMode` prop.*
620
+ *
618
621
  * *Note: only works for nested `<Box />`*
619
622
  */
620
623
  basis?: string;
@@ -628,18 +631,32 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
628
631
  direction?: DirectionType;
629
632
  /**
630
633
  * Specifies whether the width and/or height should fill the container.
631
- * Cannot be used with height/width props when setting the corresponding dimension.
632
- * For example, fill="vertical" or fill={true} cannot be used with the height prop,
633
- * and fill="horizontal" or fill={true} cannot be used with the width prop.
634
+ *
635
+ * *Note: Cannot be used with height/width props when setting the corresponding dimension.*
636
+ *
637
+ * For example, `fill="vertical"` or `fill={true}` cannot be used with the `height` prop,
638
+ * and `fill="horizontal"` or `fill={true}` cannot be used with the `width` prop.
634
639
  */
635
640
  fill?: FillType;
636
641
  /**
637
642
  * Specifies whether the width and/or height should fill the viewport.
638
- * Cannot be used with height/width props when setting the corresponding dimension.
639
- * For example, fillViewport="vertical" or fillViewport={true} cannot be used with the height prop,
640
- * and fillViewport="horizontal" or fillViewport={true} cannot be used with the width prop.
643
+ *
644
+ * *Note: Cannot be used with height/width props when setting the corresponding dimension.*
645
+ *
646
+ * For example, `fillViewport="vertical"` or `fillViewport={true}` cannot be used with the `height` prop,
647
+ * and `fillViewport="horizontal"` or `fillViewport={true}` cannot be used with the `width` prop.
641
648
  */
642
649
  fillViewport?: FillType;
650
+ /**
651
+ * Predefined `flex` behavior patterns:
652
+ *
653
+ * - `grow`: fills available space (`flex: 1 0 0`)
654
+ * - `initial`: default behavior (`flex: 0 1 auto`)
655
+ * - `equal`: equal space distribution (`flex: 1`)
656
+ * - `rigid`: fixed size (`flex: 0 0 auto`)
657
+ * - `fluid`: responsive (`flex: 1 1 auto`)
658
+ */
659
+ flexMode?: FlexModeType;
643
660
  /**
644
661
  * Specifies the gaps (gutters) between rows and columns
645
662
  */
@@ -647,6 +664,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
647
664
  /**
648
665
  * Specifies what amount of space inside the flex container the item should take up
649
666
  *
667
+ * *Note: Cannot be used with `flexMode` prop.*
668
+ *
650
669
  * *Note: only works for nested `<Box />`*
651
670
  */
652
671
  grow?: number | string;
@@ -657,6 +676,7 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
657
676
  hasBoxParent?: boolean;
658
677
  /**
659
678
  * Specifies the height of the box.
679
+ *
660
680
  * *Note: Cannot be used with fill="vertical" or fillViewport="vertical"*
661
681
  */
662
682
  height?: string;
@@ -682,6 +702,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
682
702
  * Specifies how items will shrink inside the container when the default size of
683
703
  * items is larger than their container
684
704
  *
705
+ * *Note: Cannot be used with `flexMode` prop.*
706
+ *
685
707
  * *Note: only works for nested `<Box />`*
686
708
  */
687
709
  shrink?: number;
@@ -691,6 +713,7 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
691
713
  wrapItems?: boolean;
692
714
  /**
693
715
  * Specifies the width of the box.
716
+ *
694
717
  * *Note: Cannot be used with fill="horizontal" or fillViewport="horizontal"*
695
718
  */
696
719
  width?: string;
package/dist/index.d.ts CHANGED
@@ -578,6 +578,7 @@ type Gap = {
578
578
  column: Spacings;
579
579
  row: Spacings;
580
580
  };
581
+ type FlexModeType = 'equal' | 'fluid' | 'grow' | 'initial' | 'rigid';
581
582
  declare const DEFAULT_ELEMENT$1 = "div";
582
583
  /**
583
584
  * CSS property => Box prop:
@@ -615,6 +616,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
615
616
  /**
616
617
  * Specifies the initial main size of an item
617
618
  *
619
+ * *Note: Cannot be used with `flexMode` prop.*
620
+ *
618
621
  * *Note: only works for nested `<Box />`*
619
622
  */
620
623
  basis?: string;
@@ -628,18 +631,32 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
628
631
  direction?: DirectionType;
629
632
  /**
630
633
  * Specifies whether the width and/or height should fill the container.
631
- * Cannot be used with height/width props when setting the corresponding dimension.
632
- * For example, fill="vertical" or fill={true} cannot be used with the height prop,
633
- * and fill="horizontal" or fill={true} cannot be used with the width prop.
634
+ *
635
+ * *Note: Cannot be used with height/width props when setting the corresponding dimension.*
636
+ *
637
+ * For example, `fill="vertical"` or `fill={true}` cannot be used with the `height` prop,
638
+ * and `fill="horizontal"` or `fill={true}` cannot be used with the `width` prop.
634
639
  */
635
640
  fill?: FillType;
636
641
  /**
637
642
  * Specifies whether the width and/or height should fill the viewport.
638
- * Cannot be used with height/width props when setting the corresponding dimension.
639
- * For example, fillViewport="vertical" or fillViewport={true} cannot be used with the height prop,
640
- * and fillViewport="horizontal" or fillViewport={true} cannot be used with the width prop.
643
+ *
644
+ * *Note: Cannot be used with height/width props when setting the corresponding dimension.*
645
+ *
646
+ * For example, `fillViewport="vertical"` or `fillViewport={true}` cannot be used with the `height` prop,
647
+ * and `fillViewport="horizontal"` or `fillViewport={true}` cannot be used with the `width` prop.
641
648
  */
642
649
  fillViewport?: FillType;
650
+ /**
651
+ * Predefined `flex` behavior patterns:
652
+ *
653
+ * - `grow`: fills available space (`flex: 1 0 0`)
654
+ * - `initial`: default behavior (`flex: 0 1 auto`)
655
+ * - `equal`: equal space distribution (`flex: 1`)
656
+ * - `rigid`: fixed size (`flex: 0 0 auto`)
657
+ * - `fluid`: responsive (`flex: 1 1 auto`)
658
+ */
659
+ flexMode?: FlexModeType;
643
660
  /**
644
661
  * Specifies the gaps (gutters) between rows and columns
645
662
  */
@@ -647,6 +664,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
647
664
  /**
648
665
  * Specifies what amount of space inside the flex container the item should take up
649
666
  *
667
+ * *Note: Cannot be used with `flexMode` prop.*
668
+ *
650
669
  * *Note: only works for nested `<Box />`*
651
670
  */
652
671
  grow?: number | string;
@@ -657,6 +676,7 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
657
676
  hasBoxParent?: boolean;
658
677
  /**
659
678
  * Specifies the height of the box.
679
+ *
660
680
  * *Note: Cannot be used with fill="vertical" or fillViewport="vertical"*
661
681
  */
662
682
  height?: string;
@@ -682,6 +702,8 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
682
702
  * Specifies how items will shrink inside the container when the default size of
683
703
  * items is larger than their container
684
704
  *
705
+ * *Note: Cannot be used with `flexMode` prop.*
706
+ *
685
707
  * *Note: only works for nested `<Box />`*
686
708
  */
687
709
  shrink?: number;
@@ -691,6 +713,7 @@ type BoxProps = ComponentPropsWithoutRef<typeof DEFAULT_ELEMENT$1> & {
691
713
  wrapItems?: boolean;
692
714
  /**
693
715
  * Specifies the width of the box.
716
+ *
694
717
  * *Note: Cannot be used with fill="horizontal" or fillViewport="horizontal"*
695
718
  */
696
719
  width?: string;