@purple/phoenix-components 4.25.0 → 4.27.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.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { HTMLAttributes, ReactElement, InputHTMLAttributes, JSXElementConstructor, MouseEventHandler, FocusEventHandler, TextareaHTMLAttributes } from 'react';
3
3
  import * as styled_components from 'styled-components';
4
4
  import { IntrinsicElementsKeys } from 'styled-components';
5
- import { LayoutProps, FlexboxProps, GridProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps } from 'styled-system';
5
+ import { LayoutProps, FlexboxProps, GridProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, BorderProps } from 'styled-system';
6
6
  import { DayPickerProps } from 'react-day-picker';
7
7
  import { Props } from 'tippy.js';
8
8
  import { OptionTypeBase, NamedProps } from 'react-select';
@@ -57,7 +57,7 @@ interface TextAlignProp {
57
57
  textAlign?: TextAlignment;
58
58
  }
59
59
 
60
- interface BoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, LayoutProps, FlexboxProps, GridProps, MarginProps, PaddingProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, TextAlignProp, GenericComponentProps {
60
+ interface BoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, LayoutProps, FlexboxProps, GridProps, MarginProps, PaddingProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, TextAlignProp, BorderProps, GenericComponentProps {
61
61
  element?: IntrinsicElementsKeys;
62
62
  }
63
63
  declare const Box: React__default.FC<BoxProps>;
@@ -391,10 +391,12 @@ interface FileUploadProps extends GenericComponentProps {
391
391
  files: FileWithPreview[];
392
392
  setFiles: (files: FileWithPreview[]) => void;
393
393
  label?: string;
394
+ labelTouchDevice?: string;
394
395
  dragInstructions?: string;
395
396
  onFileDrop?: (newFiles: File[]) => void;
396
397
  acceptedFilePattern?: Array<string>;
397
398
  uploadButtonText?: string;
399
+ uploadButtonTextTouchDevice?: string;
398
400
  onFileRemove?: (file: File) => void;
399
401
  multiple?: boolean;
400
402
  additive?: boolean;
@@ -431,7 +433,7 @@ interface IconProps extends MarginProps, GenericComponentProps {
431
433
  }
432
434
  declare const Icon: React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<IconProps> & React__default.RefAttributes<HTMLSpanElement>>;
433
435
 
434
- declare type LabelProps = React__default.LabelHTMLAttributes<HTMLLabelElement> & GenericComponentProps;
436
+ declare type LabelProps = React__default.LabelHTMLAttributes<HTMLLabelElement> & GenericComponentProps & PaddingProps & MarginProps;
435
437
  declare const Label: React__default.FC<LabelProps>;
436
438
 
437
439
  interface LinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement>, GenericComponentProps, MarginProps, PaddingProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purple/phoenix-components",
3
- "version": "4.25.0",
3
+ "version": "4.27.2",
4
4
  "description": "",
5
5
  "main": "dist/bundle.umd.js",
6
6
  "module": "dist/bundle.esm.js",