@aws-amplify/ui-react 3.0.0 → 3.0.1

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.
Files changed (45) hide show
  1. package/README.md +1 -1
  2. package/dist/styles.css +1 -1
  3. package/dist/types/primitives/types/alert.d.ts +6 -0
  4. package/dist/types/primitives/types/badge.d.ts +2 -0
  5. package/dist/types/primitives/types/base.d.ts +15 -0
  6. package/dist/types/primitives/types/button.d.ts +8 -0
  7. package/dist/types/primitives/types/card.d.ts +4 -0
  8. package/dist/types/primitives/types/checkbox.d.ts +5 -3
  9. package/dist/types/primitives/types/collection.d.ts +11 -0
  10. package/dist/types/primitives/types/divider.d.ts +3 -0
  11. package/dist/types/primitives/types/expander.d.ts +7 -0
  12. package/dist/types/primitives/types/field.d.ts +4 -0
  13. package/dist/types/primitives/types/fieldGroupIcon.d.ts +2 -0
  14. package/dist/types/primitives/types/flex.d.ts +7 -0
  15. package/dist/types/primitives/types/heading.d.ts +4 -0
  16. package/dist/types/primitives/types/icon.d.ts +9 -4
  17. package/dist/types/primitives/types/image.d.ts +17 -3
  18. package/dist/types/primitives/types/input.d.ts +18 -3
  19. package/dist/types/primitives/types/label.d.ts +2 -0
  20. package/dist/types/primitives/types/link.d.ts +3 -0
  21. package/dist/types/primitives/types/loader.d.ts +7 -0
  22. package/dist/types/primitives/types/menu.d.ts +10 -0
  23. package/dist/types/primitives/types/pagination.d.ts +17 -0
  24. package/dist/types/primitives/types/passwordField.d.ts +12 -1
  25. package/dist/types/primitives/types/phoneNumberField.d.ts +25 -0
  26. package/dist/types/primitives/types/placeholder.d.ts +2 -0
  27. package/dist/types/primitives/types/radio.d.ts +1 -0
  28. package/dist/types/primitives/types/radioGroupField.d.ts +2 -0
  29. package/dist/types/primitives/types/rating.d.ts +7 -0
  30. package/dist/types/primitives/types/searchField.d.ts +5 -0
  31. package/dist/types/primitives/types/select.d.ts +52 -0
  32. package/dist/types/primitives/types/selectField.d.ts +1 -0
  33. package/dist/types/primitives/types/sliderField.d.ts +48 -0
  34. package/dist/types/primitives/types/stepperField.d.ts +35 -0
  35. package/dist/types/primitives/types/style.d.ts +331 -6
  36. package/dist/types/primitives/types/switchField.d.ts +13 -0
  37. package/dist/types/primitives/types/table.d.ts +12 -0
  38. package/dist/types/primitives/types/tabs.d.ts +8 -0
  39. package/dist/types/primitives/types/text.d.ts +3 -0
  40. package/dist/types/primitives/types/textArea.d.ts +19 -3
  41. package/dist/types/primitives/types/textField.d.ts +5 -0
  42. package/dist/types/primitives/types/toggleButton.d.ts +16 -0
  43. package/dist/types/primitives/types/toggleButtonGroup.d.ts +20 -0
  44. package/dist/types/primitives/types/view.d.ts +24 -0
  45. package/package.json +2 -2
package/README.md CHANGED
@@ -9,7 +9,7 @@ Amplify UI is an open-source UI library with cloud-connected components that are
9
9
 
10
10
  ## React Documentation
11
11
 
12
- - https://ui.docs.amplify.aws/?platform=react
12
+ - https://ui.docs.amplify.aws/react
13
13
 
14
14
  ## Features 🚀
15
15
 
package/dist/styles.css CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Fri, 17 Jun 2022 21:04:04 GMT
6
+ * Generated on Tue, 21 Jun 2022 22:00:04 GMT
7
7
  */
8
8
  :root, [data-amplify-theme] {
9
9
  --amplify-transforms-slide-x-large: translateX(2em);
@@ -3,26 +3,32 @@ import { FlexProps } from './flex';
3
3
  export declare type AlertVariations = 'info' | 'error' | 'warning' | 'success';
4
4
  export interface AlertProps extends FlexProps {
5
5
  /**
6
+ * @description
6
7
  * The variation property will affect the background color of the Alert.
7
8
  */
8
9
  variation?: AlertVariations;
9
10
  /**
11
+ * @description
10
12
  * The isDismissible property will affect whether the user can dismiss (close) the Alert. Defaults to false (not dismissible).
11
13
  */
12
14
  isDismissible?: boolean;
13
15
  /**
16
+ * @description
14
17
  * The onDismiss callback will be called when the user dismisses (closes) the Alert.
15
18
  */
16
19
  onDismiss?: () => void;
17
20
  /**
21
+ * @description
18
22
  * The hasIcon property will determine whether or not an icon is displayed on the Alert. Defaults to true (icon displayed).
19
23
  */
20
24
  hasIcon?: boolean;
21
25
  /**
26
+ * @description
22
27
  * The heading property will affect the content of the Alert heading.
23
28
  */
24
29
  heading?: React.ReactNode;
25
30
  /**
31
+ * @description
26
32
  * The ref will be forwarded to the dismiss button
27
33
  */
28
34
  buttonRef?: React.Ref<HTMLButtonElement>;
@@ -4,10 +4,12 @@ export declare type BadgeVariations = 'info' | 'error' | 'warning' | 'success';
4
4
  export declare type BadgeSizes = Sizes;
5
5
  export interface BadgeProps extends ViewProps {
6
6
  /**
7
+ * @description
7
8
  * The variation property will affect the background color of the badge.
8
9
  */
9
10
  variation?: BadgeVariations;
10
11
  /**
12
+ * @description
11
13
  * The size property will affect the font size of the badge.
12
14
  */
13
15
  size?: BadgeSizes;
@@ -1,21 +1,36 @@
1
1
  import React, { AriaAttributes } from 'react';
2
2
  export interface BaseComponentProps {
3
3
  /**
4
+ * @description
4
5
  * Unique identifier
5
6
  */
6
7
  id?: string;
7
8
  /**
9
+ * @description
8
10
  * Additional CSS class name for component
9
11
  */
10
12
  className?: string;
11
13
  /**
14
+ * @description
12
15
  * Used to provide a `data-testid` attribute for testing purposes
13
16
  */
14
17
  testId?: string;
15
18
  }
16
19
  export interface AriaProps {
20
+ /**
21
+ * @description
22
+ * Defines a string value that labels an interactive element for accessibility
23
+ */
17
24
  ariaLabel?: AriaAttributes['aria-label'];
25
+ /**
26
+ * @description
27
+ * Defines the human readable text alternative of `aria-valuenow` for a range widget
28
+ */
18
29
  ariaValuetext?: AriaAttributes['aria-valuetext'];
30
+ /**
31
+ * @description
32
+ * Provides semantic meaning to content, allowing screen readers to support interaction in a way that is consistent with user expectations
33
+ */
19
34
  role?: React.AriaRole;
20
35
  }
21
36
  export declare type Sizes = 'small' | 'large';
@@ -7,37 +7,45 @@ export declare type ButtonTypes = 'button' | 'reset' | 'submit';
7
7
  export declare type ButtonVariations = 'primary' | 'link' | 'menu';
8
8
  export interface ButtonProps extends ViewProps, FlexContainerStyleProps {
9
9
  /**
10
+ * @description
10
11
  * If `true`, the button will be disabled.
11
12
  */
12
13
  isDisabled?: boolean;
13
14
  /**
15
+ * @description
14
16
  * If `true`, the button will take up the full width of its container.
15
17
  */
16
18
  isFullWidth?: boolean;
17
19
  /**
20
+ * @description
18
21
  * If `true`, the button will show a spinner.
19
22
  */
20
23
  isLoading?: boolean;
21
24
  /**
25
+ * @description
22
26
  * The label to show in the button when `loading` is true
23
27
  * If no text is passed, it only shows the spinner
24
28
  */
25
29
  loadingText?: string;
26
30
  /**
31
+ * @description
27
32
  * Button click event handler
28
33
  */
29
34
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
30
35
  /**
36
+ * @description
31
37
  * Changes the size of the button.
32
38
  * @default "medium"
33
39
  */
34
40
  size?: ButtonSizes;
35
41
  /**
42
+ * @description
36
43
  * Changes the button type
37
44
  * @default "button"
38
45
  */
39
46
  type?: ButtonTypes;
40
47
  /**
48
+ * @description
41
49
  * Changes the visual weight of the button.
42
50
  */
43
51
  variation?: ButtonVariations;
@@ -1,5 +1,9 @@
1
1
  import { ViewProps } from './view';
2
2
  export declare type CardVariations = 'outlined' | 'elevated';
3
3
  export interface CardProps extends ViewProps {
4
+ /**
5
+ * @description
6
+ * Changes the displayed style of the Card. Options include ‘outlined’, ‘elevated’ and none (default)
7
+ */
4
8
  variation?: CardVariations;
5
9
  }
@@ -3,7 +3,8 @@ import { InputProps } from './input';
3
3
  import { FieldProps, LabelPositions } from './field';
4
4
  export interface CheckboxProps extends FlexProps, InputProps {
5
5
  /**
6
- * The label text
6
+ * @description
7
+ * Sets the label text
7
8
  */
8
9
  label: FieldProps['label'];
9
10
  /**
@@ -21,8 +22,9 @@ export interface CheckboxProps extends FlexProps, InputProps {
21
22
  */
22
23
  value: string;
23
24
  /**
24
- * Position of label in relation to the checkbox,
25
- * default is 'start'
25
+ * @description
26
+ * Sets the position of label in relation to the CheckboxField,
27
+ * @default "start"
26
28
  */
27
29
  labelPosition?: LabelPositions;
28
30
  }
@@ -4,37 +4,48 @@ import { BaseStyleProps } from './style';
4
4
  export declare type CollectionType = 'list' | 'grid' | 'table';
5
5
  export interface CollectionWrapperProps extends BaseStyleProps {
6
6
  /**
7
+ * @description
7
8
  * Collection type. This will be used to determine collection wrapper component.
8
9
  * @default 'list'
9
10
  */
10
11
  type?: CollectionType;
11
12
  /**
13
+ * @description
12
14
  * Enable pagination for collection items
13
15
  */
14
16
  isPaginated?: boolean;
15
17
  /**
18
+ * @description
16
19
  * Page size (when pagination is enabled)
17
20
  */
18
21
  itemsPerPage?: number;
19
22
  /**
23
+ * @description
20
24
  * Enable collection filtering
21
25
  */
22
26
  isSearchable?: boolean;
23
27
  /**
28
+ * @description
24
29
  * Custom search filter (when search is enabled)
25
30
  */
26
31
  searchFilter?: (item: unknown, searchText: string) => boolean;
27
32
  /**
33
+ * @description
28
34
  * Search field label
29
35
  * @default "Search"
30
36
  */
31
37
  searchLabel?: string;
32
38
  /**
39
+ * @description
33
40
  * Search field placeholder
34
41
  */
35
42
  searchPlaceholder?: string;
36
43
  }
37
44
  export interface CollectionBaseProps<Item> {
45
+ /**
46
+ * @description
47
+ * The items from a data source that will be mapped by the Collection component
48
+ */
38
49
  items: Array<Item>;
39
50
  children: (item: Item, index: number) => JSX.Element;
40
51
  }
@@ -4,16 +4,19 @@ export declare type DividerOrientations = 'horizontal' | 'vertical';
4
4
  export declare type DividerSizes = Sizes;
5
5
  export interface DividerOptions {
6
6
  /**
7
+ * @description
7
8
  * Controls whether the divider is oriented horizontally or vertically.
8
9
  * @default "horizontal"
9
10
  */
10
11
  orientation?: DividerOrientations;
11
12
  /**
13
+ * @description
12
14
  * Size of the divider (height for a horizontal divider, width for vertical)
13
15
  * @default "small"
14
16
  */
15
17
  size?: DividerSizes;
16
18
  /**
19
+ * @description
17
20
  * Adds text to the divider, usually something like "or" to separate 2 things.
18
21
  */
19
22
  label?: string;
@@ -3,32 +3,39 @@ import { ViewProps } from '../types/view';
3
3
  declare type ExpanderType = 'single' | 'multiple';
4
4
  export interface ExpanderProps extends ViewProps {
5
5
  /**
6
+ * @description
6
7
  * The value of the item(s) to expand. Use on uncontrolled component.
7
8
  */
8
9
  defaultValue?: string | string[];
9
10
  /**
11
+ * @description
10
12
  * The controlled value of the item(s) to expand. Must be used in conjunction with onChange.
11
13
  */
12
14
  value?: string | string[];
13
15
  /**
16
+ * @description
14
17
  * Determines whether the opened item can be collapsed if this is a single expander.
15
18
  */
16
19
  isCollapsible?: boolean;
17
20
  /**
21
+ * @description
18
22
  * Determines whether one or multiple items can be opened at the same time.
19
23
  */
20
24
  type?: ExpanderType;
21
25
  /**
26
+ * @description
22
27
  * Event handler called when the expanded state of an item changes
23
28
  */
24
29
  onChange?: (value?: string | string[]) => void;
25
30
  }
26
31
  export interface ExpanderItemProps extends ViewProps {
27
32
  /**
33
+ * @description
28
34
  * The content of the heading.
29
35
  */
30
36
  title?: React.ReactNode;
31
37
  /**
38
+ * @description
32
39
  * A unique value for the item.
33
40
  */
34
41
  value: string;
@@ -7,19 +7,23 @@ import { TextProps } from './text';
7
7
  */
8
8
  export interface FieldProps {
9
9
  /**
10
+ * @description
10
11
  * Provides additional information needed to fill field
11
12
  * (e.g. password requirements, etc.)
12
13
  */
13
14
  descriptiveText?: React.ReactNode;
14
15
  /**
16
+ * @description
15
17
  * When defined and `hasError` is true, show error message
16
18
  */
17
19
  errorMessage?: string;
18
20
  /**
21
+ * @description
19
22
  * Label text for field (required)
20
23
  */
21
24
  label: React.ReactNode;
22
25
  /**
26
+ * @description
23
27
  * Visually hide label (not recommended in most cases)
24
28
  * @default false
25
29
  */
@@ -2,10 +2,12 @@ import { ViewProps } from './view';
2
2
  import { ButtonProps } from './button';
3
3
  export interface FieldGroupIconProps extends ViewProps {
4
4
  /**
5
+ * @description
5
6
  * Determines whether Icon should be visible
6
7
  */
7
8
  isVisible?: boolean;
8
9
  /**
10
+ * @description
9
11
  * Determines whether element should be focusable.
10
12
  * When set to false, tabindex="-1" will be set
11
13
  */
@@ -3,11 +3,13 @@ import { CSSLayoutStyleProps, ResponsiveStyle } from './style';
3
3
  import { ViewProps } from './view';
4
4
  export interface FlexContainerStyleProps extends CSSLayoutStyleProps {
5
5
  /**
6
+ * @description
6
7
  * Sets how flex items are placed in the flex container defining the main axis
7
8
  * and the direction (normal or reversed). (maps to flex-direction CSS property)
8
9
  */
9
10
  direction?: ResponsiveStyle<Property.FlexDirection>;
10
11
  /**
12
+ * @description
11
13
  * The flexWrap property is set on containers and it controls what happens when
12
14
  * children overflow the size of the container along the main axis. By default,
13
15
  * children are forced into a single line (which can shrink elements). If
@@ -21,22 +23,27 @@ export interface FlexProps extends ViewProps, FlexContainerStyleProps {
21
23
  }
22
24
  export interface FlexItemStyleProps {
23
25
  /**
26
+ * @description
24
27
  * Shorthand for flex grow / shrink / basis
25
28
  */
26
29
  flex?: ResponsiveStyle<Property.Flex>;
27
30
  /**
31
+ * @description
28
32
  * Controls order flex items appear
29
33
  */
30
34
  order?: ResponsiveStyle<Property.Order>;
31
35
  /**
36
+ * @description
32
37
  * Ability for flex item to grow
33
38
  */
34
39
  grow?: ResponsiveStyle<Property.FlexGrow>;
35
40
  /**
41
+ * @description
36
42
  * Ability for flex item to shrink
37
43
  */
38
44
  shrink?: ResponsiveStyle<Property.FlexShrink>;
39
45
  /**
46
+ * @description
40
47
  * Default size of element before remaining space is distributed
41
48
  */
42
49
  basis?: ResponsiveStyle<Property.FlexBasis>;
@@ -1,5 +1,9 @@
1
1
  import { TextProps } from './text';
2
2
  export declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
3
3
  export interface HeadingProps extends TextProps {
4
+ /**
5
+ * @description
6
+ * Controls which semantic section heading element is rendered, <h1> through <h6>
7
+ */
4
8
  level?: HeadingLevel;
5
9
  }
@@ -11,32 +11,37 @@ export interface ViewBox {
11
11
  export declare type IconSize = Sizes;
12
12
  export interface IconProps extends ViewProps {
13
13
  /**
14
+ * @description
14
15
  * This defines the shape of the <path> SVG element(the 'd' attribute).
15
- * @link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
16
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path)
16
17
  */
17
18
  pathData?: string;
18
19
  /**
20
+ * @description
19
21
  * This is used to define a string that labels the current element.
20
- * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute
21
22
  */
22
23
  ariaLabel: string;
23
24
  /**
25
+ * @description
24
26
  * This defines the position and dimension, in user space, of an SVG viewport.
25
- * @link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox
27
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox)
26
28
  */
27
29
  viewBox?: ViewBox;
28
30
  /**
31
+ * @description
29
32
  * By default this will be "currentColor" to match what is generally expected
30
33
  * of icons (they inherit their color from current font color).
31
- * @link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill
34
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill)
32
35
  */
33
36
  fill?: Property.Color;
34
37
  /**
38
+ * @description
35
39
  * You can pass SVG elements like <path> directly as children for more
36
40
  * flexibility and to allow for multiple paths.
37
41
  */
38
42
  children?: React.ReactNode;
39
43
  /**
44
+ * @description
40
45
  * Optionally pass an array of path-like objects which
41
46
  * the icon will map to <path> elements.
42
47
  */
@@ -3,34 +3,48 @@ import { Property } from 'csstype';
3
3
  import { ViewProps } from './view';
4
4
  import { ResponsiveStyle } from './style';
5
5
  export interface ImageStyleProps {
6
+ /**
7
+ * @description
8
+ * Sets how the content of an <img> should be resized to fit its container
9
+ */
6
10
  objectFit?: ResponsiveStyle<Property.ObjectFit>;
11
+ /**
12
+ * @description
13
+ * Specifies the alignment of the selected replaced element's contents within the element's box
14
+ */
7
15
  objectPosition?: ResponsiveStyle<Property.ObjectPosition>;
8
16
  }
9
17
  export interface ImageOptions extends ImageStyleProps {
10
18
  /**
19
+ * @description
11
20
  * Alternative text description of the image (required)
12
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-alt
21
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-alt)
13
22
  */
14
23
  alt: React.ImgHTMLAttributes<HTMLImageElement>['alt'];
15
24
  /**
25
+ * @description
16
26
  * Set of image source sizes
17
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-sizes
27
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-sizes)
18
28
  */
19
29
  sizes?: React.ImgHTMLAttributes<HTMLImageElement>['sizes'];
20
30
  /**
31
+ * @description
21
32
  * URl source for image (required)
22
33
  */
23
34
  src: React.ImgHTMLAttributes<HTMLImageElement>['src'];
24
35
  /**
36
+ * @description
25
37
  * Possible image sources for the browser to use
26
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-srcset
38
+ * @see [MND](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-srcset)
27
39
  */
28
40
  srcSet?: React.ImgHTMLAttributes<HTMLImageElement>['srcSet'];
29
41
  /**
42
+ * @description
30
43
  * Handles loading event on image
31
44
  */
32
45
  onLoad?(event: React.SyntheticEvent<HTMLImageElement, Event>): void;
33
46
  /**
47
+ * @description
34
48
  * Handles error events on image
35
49
  */
36
50
  onError?(error: string | React.SyntheticEvent<HTMLImageElement, Event>): void;
@@ -6,52 +6,63 @@ export declare type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel'
6
6
  export declare type InputSizes = Sizes;
7
7
  export interface InputProps extends ViewProps {
8
8
  /**
9
+ * @description
9
10
  * Specifies permissions for browser UA to autocomplete field
10
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
11
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
11
12
  */
12
13
  autoComplete?: string;
13
14
  /**
15
+ * @description
14
16
  * If checked is provided, this will be a controlled checkbox or radio
15
17
  */
16
18
  checked?: boolean;
17
19
  /**
20
+ * @description
18
21
  * Use this to initialize an uncontrolled checkbox or radio
19
22
  */
20
23
  defaultChecked?: boolean;
21
24
  /**
25
+ * @description
22
26
  * Use this to provide a default value for an uncontrolled field
23
27
  */
24
28
  defaultValue?: React.AllHTMLAttributes<'input'>['defaultValue'];
25
29
  /**
30
+ * @description
26
31
  * Indicates that Field is in error state
27
32
  */
28
33
  hasError?: boolean;
29
34
  /**
35
+ * @description
30
36
  * Provides hint for virtual keyboard shown
31
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
37
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode)
32
38
  * @default: "text"
33
39
  */
34
40
  inputMode?: InputMode;
35
41
  /**
42
+ * @description
36
43
  * Determines whether field should be disabled
37
44
  * @default false
38
45
  */
39
46
  isDisabled?: boolean;
40
47
  /**
48
+ * @description
41
49
  * Determines whether field should be immutable
42
- * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly
50
+ * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly)
43
51
  * @default false
44
52
  */
45
53
  isReadOnly?: boolean;
46
54
  /**
55
+ * @description
47
56
  * Whether field should be marked required
48
57
  */
49
58
  isRequired?: boolean;
50
59
  /**
60
+ * @description
51
61
  * Name of the field. Submitted with the form as part of a name/value pair.
52
62
  */
53
63
  name?: string;
54
64
  /**
65
+ * @description
55
66
  * Placeholder text shown when field is empty
56
67
  * Accessibility tip: avoid putting important instructions for
57
68
  * filling out the TextField in the placeholder. Use descriptiveText
@@ -59,18 +70,22 @@ export interface InputProps extends ViewProps {
59
70
  */
60
71
  placeholder?: string;
61
72
  /**
73
+ * @description
62
74
  * Changes the font-size, padding, and height of the field.
63
75
  */
64
76
  size?: InputSizes;
65
77
  /**
78
+ * @description
66
79
  * Input field type
67
80
  */
68
81
  type?: React.HTMLInputTypeAttribute;
69
82
  /**
83
+ * @description
70
84
  * If value is provided, this will be a controlled field
71
85
  */
72
86
  value?: React.AllHTMLAttributes<'input'>['value'];
73
87
  /**
88
+ * @description
74
89
  * Variants
75
90
  */
76
91
  variation?: FieldVariations;
@@ -2,10 +2,12 @@
2
2
  import { ViewProps } from './view';
3
3
  export interface LabelProps extends ViewProps {
4
4
  /**
5
+ * @description
5
6
  * Whether label should be visually hidden
6
7
  */
7
8
  visuallyHidden?: boolean;
8
9
  /**
10
+ * @description
9
11
  * Inner text of the label
10
12
  */
11
13
  children: React.ReactNode;
@@ -2,15 +2,18 @@ import * as React from 'react';
2
2
  import { ViewProps } from './view';
3
3
  export interface LinkOptions {
4
4
  /**
5
+ * @description
5
6
  * Children to be rendered inside the Link component
6
7
  */
7
8
  children: React.ReactNode;
8
9
  /**
10
+ * @description
9
11
  * Boolean value indicating an external link
10
12
  * sets the rel attribute to "noopener noreferrer"
11
13
  */
12
14
  isExternal?: boolean;
13
15
  /**
16
+ * @description
14
17
  * A string representation of the URL path
15
18
  */
16
19
  to?: string;
@@ -6,30 +6,37 @@ export declare type LoaderSizes = Sizes;
6
6
  export declare type LoaderVariations = 'linear';
7
7
  export interface LoaderProps extends ViewProps {
8
8
  /**
9
+ * @description
9
10
  * This will set the size of Loader.
10
11
  */
11
12
  size?: LoaderSizes;
12
13
  /**
14
+ * @description
13
15
  * This will set the variation of Loader. Available options are linear and none(circular).
14
16
  */
15
17
  variation?: LoaderVariations;
16
18
  /**
19
+ * @description
17
20
  * This will set the filled color of Loader.
18
21
  */
19
22
  filledColor?: StyleToken<Property.Color>;
20
23
  /**
24
+ * @description
21
25
  * This will set the empty color of Loader.
22
26
  */
23
27
  emptyColor?: StyleToken<Property.Color>;
24
28
  /**
29
+ * @description
25
30
  * This will set the percentage of a determinate Loader.
26
31
  */
27
32
  percentage?: number;
28
33
  /**
34
+ * @description
29
35
  * This will mark the Loader as determinate.
30
36
  */
31
37
  isDeterminate?: boolean;
32
38
  /**
39
+ * @description
33
40
  * This will set the visibility of percentage text.
34
41
  */
35
42
  isPercentageTextHidden?: boolean;