@wistia/ui 0.1.2 → 0.2.0

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
@@ -544,19 +544,17 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
544
544
  };
545
545
  declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
546
546
 
547
- type DividerProps = ComponentPropsWithoutRef<'hr'> & {
547
+ type DividerProps = ComponentPropsWithoutRef<'div'> & {
548
548
  /**
549
- * Size of the divider. Can be a [responsive prop](/docs/ui-docs-responsive-props--docs).
550
- *
551
- * @type 'lg' | 'sm'
549
+ * Orientation of the divider.
552
550
  */
553
- size?: ResponsiveObject<'lg' | 'sm'> | 'lg' | 'sm';
551
+ orientation?: 'horizontal' | 'vertical';
554
552
  };
555
553
  /**
556
- * A line used to visually separate content
554
+ * A line used to visually separate content; note that dividers have no margin/spacing on their own.
557
555
  */
558
556
  declare const Divider: {
559
- ({ size, ...otherProps }: DividerProps): JSX.Element;
557
+ ({ orientation, ...otherProps }: DividerProps): JSX.Element;
560
558
  displayName: string;
561
559
  };
562
560
 
package/dist/index.d.ts CHANGED
@@ -544,19 +544,17 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
544
544
  };
545
545
  declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
546
546
 
547
- type DividerProps = ComponentPropsWithoutRef<'hr'> & {
547
+ type DividerProps = ComponentPropsWithoutRef<'div'> & {
548
548
  /**
549
- * Size of the divider. Can be a [responsive prop](/docs/ui-docs-responsive-props--docs).
550
- *
551
- * @type 'lg' | 'sm'
549
+ * Orientation of the divider.
552
550
  */
553
- size?: ResponsiveObject<'lg' | 'sm'> | 'lg' | 'sm';
551
+ orientation?: 'horizontal' | 'vertical';
554
552
  };
555
553
  /**
556
- * A line used to visually separate content
554
+ * A line used to visually separate content; note that dividers have no margin/spacing on their own.
557
555
  */
558
556
  declare const Divider: {
559
- ({ size, ...otherProps }: DividerProps): JSX.Element;
557
+ ({ orientation, ...otherProps }: DividerProps): JSX.Element;
560
558
  displayName: string;
561
559
  };
562
560