@windstream/react-shared-components 0.0.73 → 0.0.76

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/core.d.ts CHANGED
@@ -13,7 +13,7 @@ import { AccordionProps } from '@shared/components/accordion/types';
13
13
  export { AccordionProps } from '@shared/components/accordion/types';
14
14
  import { Props as Props$1 } from 'react-select';
15
15
  import { TextVariant as TextVariant$1 } from '@shared/components/text';
16
- import * as _shared_components_brand_button_types from '@shared/components/brand-button/types';
16
+ import { ButtonProps as ButtonProps$2 } from '@shared/components/brand-button/types';
17
17
  import { ChecklistProps } from '@shared/components/checklist/types';
18
18
  export { ChecklistProps } from '@shared/components/checklist/types';
19
19
  import { SeeMoreProps } from '@shared/components/see-more/types';
@@ -326,12 +326,20 @@ type ButtonCustomProps = {
326
326
  isLoading?: boolean;
327
327
  label?: string;
328
328
  text?: string;
329
+ disabled?: boolean;
329
330
  fullWidth?: boolean;
330
331
  size?: ResponsiveSize;
331
332
  };
332
- type ButtonProps = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
333
+ type ButtonAsButton = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & {
334
+ as?: "button";
335
+ };
336
+ type ButtonAsAnchor = ButtonCustomProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className"> & {
337
+ as: "a";
338
+ href: string;
339
+ };
340
+ type ButtonProps = ButtonAsButton | ButtonAsAnchor;
333
341
 
334
- declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> & React$1.RefAttributes<HTMLButtonElement>>;
342
+ declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
335
343
 
336
344
  declare const Checklist: React__default.FC<ChecklistProps>;
337
345
 
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { AccordionProps } from '@shared/components/accordion/types';
13
13
  export { AccordionProps } from '@shared/components/accordion/types';
14
14
  import { Props as Props$1 } from 'react-select';
15
15
  import { TextVariant as TextVariant$1 } from '@shared/components/text';
16
- import * as _shared_components_brand_button_types from '@shared/components/brand-button/types';
16
+ import { ButtonProps as ButtonProps$2 } from '@shared/components/brand-button/types';
17
17
  import { ChecklistProps } from '@shared/components/checklist/types';
18
18
  export { ChecklistProps } from '@shared/components/checklist/types';
19
19
  import { SeeMoreProps } from '@shared/components/see-more/types';
@@ -57,15 +57,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
57
57
 
58
58
  declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
59
59
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
60
- state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
61
- size?: "slim" | "medium" | "large" | undefined;
60
+ state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
61
+ size?: "medium" | "large" | "slim" | undefined;
62
62
  label?: string | undefined;
63
63
  errorText?: string | undefined;
64
64
  prefixIconName?: "search" | "location_on" | undefined;
65
65
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
66
66
  prefixIconFill?: boolean | undefined;
67
67
  suffixIconFill?: boolean | undefined;
68
- suffixIconName?: "visibility" | "visibility_off" | "lock" | undefined;
68
+ suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
69
69
  suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
70
70
  containerClassName?: string | undefined;
71
71
  prefixIconClassName?: string | undefined;
@@ -326,12 +326,20 @@ type ButtonCustomProps = {
326
326
  isLoading?: boolean;
327
327
  label?: string;
328
328
  text?: string;
329
+ disabled?: boolean;
329
330
  fullWidth?: boolean;
330
331
  size?: ResponsiveSize;
331
332
  };
332
- type ButtonProps = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
333
+ type ButtonAsButton = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & {
334
+ as?: "button";
335
+ };
336
+ type ButtonAsAnchor = ButtonCustomProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className"> & {
337
+ as: "a";
338
+ href: string;
339
+ };
340
+ type ButtonProps = ButtonAsButton | ButtonAsAnchor;
333
341
 
334
- declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & React$1.RefAttributes<HTMLButtonElement>>;
342
+ declare const BrandButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
335
343
 
336
344
  declare const Checklist: React__default.FC<ChecklistProps>;
337
345