@purple/phoenix-components 4.28.0 → 4.30.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.ts CHANGED
@@ -3,6 +3,7 @@ import React__default, { HTMLAttributes, ReactElement, InputHTMLAttributes, JSXE
3
3
  import * as styled_components from 'styled-components';
4
4
  import { IntrinsicElementsKeys } from 'styled-components';
5
5
  import { LayoutProps, FlexboxProps, GridProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, BorderProps } from 'styled-system';
6
+ import * as CSS from 'csstype';
6
7
  import { DayPickerProps } from 'react-day-picker';
7
8
  import { Props } from 'tippy.js';
8
9
  import { OptionTypeBase, NamedProps } from 'react-select';
@@ -39,8 +40,6 @@ interface PaddingProps {
39
40
 
40
41
  declare const ColorTheme: readonly ["primary", "success", "warning", "error", "info", "neutral"];
41
42
  declare type ColorTheme = typeof ColorTheme[number];
42
- declare const ButtonColorTheme: readonly ["primary", "success", "error", "neutral"];
43
- declare type ButtonColorTheme = typeof ButtonColorTheme[number];
44
43
 
45
44
  declare const TextAlignment: readonly ["left", "center", "right", "justify"];
46
45
  declare type TextAlignment = typeof TextAlignment[number];
@@ -57,7 +56,11 @@ interface TextAlignProp {
57
56
  textAlign?: TextAlignment;
58
57
  }
59
58
 
60
- interface BoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, LayoutProps, FlexboxProps, GridProps, MarginProps, PaddingProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, TextAlignProp, BorderProps, GenericComponentProps {
59
+ interface CommonBoxProps {
60
+ gap?: CSS.Property.Gap;
61
+ }
62
+
63
+ interface BoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, LayoutProps, FlexboxProps, GridProps, MarginProps, PaddingProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, TextAlignProp, BorderProps, GenericComponentProps, CommonBoxProps {
61
64
  element?: IntrinsicElementsKeys;
62
65
  }
63
66
  declare const Box: React__default.FC<BoxProps>;
@@ -152,6 +155,7 @@ declare const PhoenixIconsOutlinedSrc: {
152
155
  readonly wrench: string;
153
156
  };
154
157
  declare const PhoenixIconsColoredSrc: {
158
+ readonly 'browser-primary': string;
155
159
  readonly 'calendar-primary': string;
156
160
  readonly 'camera-primary': string;
157
161
  readonly 'driving-licence-primary': string;
@@ -173,6 +177,7 @@ declare const PhoenixIconsColoredSrc: {
173
177
  readonly 'trash-error': string;
174
178
  };
175
179
  declare const PhoenixIconsSrc: {
180
+ readonly 'browser-primary': string;
176
181
  readonly 'calendar-primary': string;
177
182
  readonly 'camera-primary': string;
178
183
  readonly 'driving-licence-primary': string;
@@ -270,15 +275,15 @@ declare const PhoenixIconsSrc: {
270
275
  };
271
276
  declare const PhoenixIconsOutlined: ("filter" | "search" | "revert" | "document" | "list" | "email" | "copy" | "download" | "actions" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "asterisk" | "bell" | "browser" | "bullet-point" | "burger" | "calendar" | "camera" | "chat" | "check" | "check-circle" | "clock" | "cog" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "forward-arrow" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lock" | "paper" | "passport" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "star" | "smartphone" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench")[];
272
277
  declare type PhoenixIconsOutlined = keyof typeof PhoenixIconsOutlinedSrc;
273
- declare const PhoenixIconsColored: ("calendar-primary" | "camera-primary" | "driving-licence-primary" | "email-primary" | "exclamation-error" | "exclamation-warning" | "house-primary" | "id-card-primary" | "lock-primary" | "lock-success" | "paper-primary" | "passport-primary" | "photo-user-primary" | "pin-primary" | "question-circle-primary" | "smartphone-primary" | "star-primary" | "star-warning" | "trash-error")[];
278
+ declare const PhoenixIconsColored: ("browser-primary" | "calendar-primary" | "camera-primary" | "driving-licence-primary" | "email-primary" | "exclamation-error" | "exclamation-warning" | "house-primary" | "id-card-primary" | "lock-primary" | "lock-success" | "paper-primary" | "passport-primary" | "photo-user-primary" | "pin-primary" | "question-circle-primary" | "smartphone-primary" | "star-primary" | "star-warning" | "trash-error")[];
274
279
  declare type PhoenixIconsColored = keyof typeof PhoenixIconsColoredSrc;
275
- declare const PhoenixIcons: ("filter" | "search" | "revert" | "document" | "list" | "email" | "copy" | "download" | "actions" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "asterisk" | "bell" | "browser" | "bullet-point" | "burger" | "calendar" | "camera" | "chat" | "check" | "check-circle" | "clock" | "cog" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "forward-arrow" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lock" | "paper" | "passport" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "star" | "smartphone" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench" | "calendar-primary" | "camera-primary" | "driving-licence-primary" | "email-primary" | "exclamation-error" | "exclamation-warning" | "house-primary" | "id-card-primary" | "lock-primary" | "lock-success" | "paper-primary" | "passport-primary" | "photo-user-primary" | "pin-primary" | "question-circle-primary" | "smartphone-primary" | "star-primary" | "star-warning" | "trash-error")[];
280
+ declare const PhoenixIcons: ("filter" | "search" | "revert" | "document" | "list" | "email" | "copy" | "download" | "actions" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "asterisk" | "bell" | "browser" | "bullet-point" | "burger" | "calendar" | "camera" | "chat" | "check" | "check-circle" | "clock" | "cog" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "forward-arrow" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lock" | "paper" | "passport" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "star" | "smartphone" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench" | "browser-primary" | "calendar-primary" | "camera-primary" | "driving-licence-primary" | "email-primary" | "exclamation-error" | "exclamation-warning" | "house-primary" | "id-card-primary" | "lock-primary" | "lock-success" | "paper-primary" | "passport-primary" | "photo-user-primary" | "pin-primary" | "question-circle-primary" | "smartphone-primary" | "star-primary" | "star-warning" | "trash-error")[];
276
281
  declare type PhoenixIcons = keyof typeof PhoenixIconsSrc;
277
282
 
278
283
  declare type IconType = PhoenixIconsOutlined | React.ReactElement | string;
279
284
 
280
285
  interface CommonButtonProps extends MarginProps {
281
- colorTheme?: ButtonColorTheme;
286
+ colorTheme?: ColorTheme;
282
287
  size?: ComponentSize;
283
288
  minimal?: boolean;
284
289
  light?: boolean;
@@ -309,7 +314,7 @@ declare type FormControlErrorType = ReactElement | string | boolean;
309
314
 
310
315
  interface CheckboxRadioCommonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>, GenericComponentProps {
311
316
  RTL?: boolean;
312
- colorTheme?: ButtonColorTheme;
317
+ colorTheme?: ColorTheme;
313
318
  size?: ComponentSizeMediumLarge;
314
319
  label?: React__default.ReactNode;
315
320
  warning?: FormControlWarningType;
@@ -530,6 +535,11 @@ declare const MultiSlider: React__default.FC<MultiSliderProps>;
530
535
  interface NoticeProps extends GenericComponentProps, MarginProps, PaddingProps {
531
536
  colorTheme?: ColorTheme;
532
537
  buttonText?: string;
538
+ buttonLoading?: boolean;
539
+ buttonIcon?: IconType;
540
+ buttonIconAlignment?: IconAlignment;
541
+ buttonTestId?: string;
542
+ closeTestId?: string;
533
543
  onClick?: (event: React__default.MouseEvent) => void;
534
544
  onClose?: (event: React__default.MouseEvent) => void;
535
545
  breakpoint?: number;
@@ -607,7 +617,7 @@ interface SelectPickerProps extends GenericComponentProps {
607
617
  warning?: string;
608
618
  onMouseOver?: (event: React__default.MouseEvent) => void;
609
619
  onMouseLeave?: (event: React__default.MouseEvent) => void;
610
- colorTheme?: ButtonColorTheme;
620
+ colorTheme?: ColorTheme;
611
621
  size?: ComponentSizeMediumLarge;
612
622
  imageSize?: string;
613
623
  }
@@ -642,7 +652,7 @@ interface SpinnerProps extends MarginProps, GenericComponentProps {
642
652
  }
643
653
  declare const Spinner: React__default.FC<SpinnerProps>;
644
654
 
645
- interface TabProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'tabIndex'> {
655
+ interface TabProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'tabIndex'>, GenericComponentProps {
646
656
  animate?: boolean;
647
657
  selected?: boolean;
648
658
  disabled?: boolean;
@@ -663,7 +673,7 @@ declare const TabList: React__default.FC<TabListProps> & {
663
673
  tabsRole: 'TabList';
664
674
  };
665
675
 
666
- interface TagProps extends GenericComponentProps {
676
+ interface TagProps extends GenericComponentProps, MarginProps {
667
677
  colorTheme?: ColorTheme;
668
678
  size?: ComponentSizeSmallMedium;
669
679
  }
@@ -734,11 +744,21 @@ declare const prefixedTheme: {
734
744
  };
735
745
  warning: {
736
746
  dark: string;
747
+ darkHoverBackground: string;
748
+ darkDisabledBackground: string;
737
749
  light: string;
750
+ lightHoverBackground: string;
751
+ lightDisabledBackground: string;
752
+ lightDisabledColor: string;
738
753
  };
739
754
  info: {
740
755
  dark: string;
756
+ darkHoverBackground: string;
757
+ darkDisabledBackground: string;
741
758
  light: string;
759
+ lightHoverBackground: string;
760
+ lightDisabledBackground: string;
761
+ lightDisabledColor: string;
742
762
  };
743
763
  gray: {
744
764
  _0: string;
@@ -942,4 +962,4 @@ declare const prefixedTheme: {
942
962
 
943
963
  declare const GlobalStyles: styled_components.GlobalStyleComponent<{}, styled_components.DefaultTheme>;
944
964
 
945
- export { Box, BoxProps, Button, ButtonColorTheme, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, ClosableButton, ClosableButtonProps, ClosableItem, ClosableItemProps, Collapsible, CollapsibleCard, CollapsibleCardProps, CollapsibleProps, ColorTheme, ComponentSize, ComponentSizeMediumLarge, ComponentSizeSmallMedium, ComponentSizeSmallMediumLarge, DateInput, DateInputProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, DateRangeValue, DateValue, Dropdown, DropdownProps, FileUpload, FileUploadProps, FileWithPreview, Flex, GlobalStyles, Grid, Heading, HeadingProps, HeadingSizes, HorizontalDivider, HorizontalDividerProps, Icon, IconAlignment, IconProps, IconType, Label, LabelProps, Link, LinkButton, LinkButtonProps, LinkProps, List, ListItem, ListItemProps, ListProps, Menu, MenuDivider, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, MultiSlider, MultiSliderProps, MultiSliderValue, Notice, NoticeProps, NumberInput, NumberInputProps, Paragraph, ParagraphProps, PhoenixIcons, PhoenixIconsColored, PhoenixIconsColoredSrc, PhoenixIconsOutlined, PhoenixIconsOutlinedSrc, PhoenixIconsSrc, Radio, RadioProps, Select, SelectNative, SelectNativeProps, SelectOption, SelectPicker, SelectPickerOption, SelectPickerProps, SelectProps, Slider, SliderProps, SliderValue, Spacer, SpacerProps, Spacing, Spinner, SpinnerProps, Tab, TabFunctionProps, TabList, TabListProps, TabProps, Tag, TagProps, Text, TextArea, TextAreaProps, TextColor, TextInput, TextInputProps, TextProps, prefixedTheme as Theme, TimezonePicker, TimezonePickerProps, Tooltip, TooltipProps, getOptions as getTimezoneOptions };
965
+ export { Box, BoxProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, ClosableButton, ClosableButtonProps, ClosableItem, ClosableItemProps, Collapsible, CollapsibleCard, CollapsibleCardProps, CollapsibleProps, ColorTheme, ComponentSize, ComponentSizeMediumLarge, ComponentSizeSmallMedium, ComponentSizeSmallMediumLarge, DateInput, DateInputProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, DateRangeValue, DateValue, Dropdown, DropdownProps, FileUpload, FileUploadProps, FileWithPreview, Flex, GlobalStyles, Grid, Heading, HeadingProps, HeadingSizes, HorizontalDivider, HorizontalDividerProps, Icon, IconAlignment, IconProps, IconType, Label, LabelProps, Link, LinkButton, LinkButtonProps, LinkProps, List, ListItem, ListItemProps, ListProps, Menu, MenuDivider, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, MultiSlider, MultiSliderProps, MultiSliderValue, Notice, NoticeProps, NumberInput, NumberInputProps, Paragraph, ParagraphProps, PhoenixIcons, PhoenixIconsColored, PhoenixIconsColoredSrc, PhoenixIconsOutlined, PhoenixIconsOutlinedSrc, PhoenixIconsSrc, Radio, RadioProps, Select, SelectNative, SelectNativeProps, SelectOption, SelectPicker, SelectPickerOption, SelectPickerProps, SelectProps, Slider, SliderProps, SliderValue, Spacer, SpacerProps, Spacing, Spinner, SpinnerProps, Tab, TabFunctionProps, TabList, TabListProps, TabProps, Tag, TagProps, Text, TextArea, TextAreaProps, TextColor, TextInput, TextInputProps, TextProps, prefixedTheme as Theme, TimezonePicker, TimezonePickerProps, Tooltip, TooltipProps, getOptions as getTimezoneOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purple/phoenix-components",
3
- "version": "4.28.0",
3
+ "version": "4.30.0",
4
4
  "description": "",
5
5
  "main": "dist/bundle.umd.js",
6
6
  "module": "dist/bundle.esm.js",