@uniformdev/design-system 16.0.1-alpha.128 → 16.0.1-alpha.143

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
@@ -128,12 +128,14 @@ declare function IconsProvider({ children }: {
128
128
  declare type CaptionProps = {
129
129
  /** allows users to add child elements */
130
130
  children: React$1.ReactNode;
131
+ /** sets data-test-id attribute for test automation*/
132
+ testId?: string;
131
133
  };
132
134
  /**
133
135
  * Component that provides caption text to input fields
134
136
  * @example <Caption>some help text here</Caption>
135
137
  */
136
- declare const Caption: ({ children }: CaptionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
138
+ declare const Caption: ({ children, testId }: CaptionProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
137
139
 
138
140
  declare type ErrorMessageProps = {
139
141
  /** sets the error message value */
@@ -162,8 +164,10 @@ declare type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
162
164
  containerTestId?: string;
163
165
  /** (optional) sets label test id */
164
166
  labelTestId?: string;
165
- /** (optiona) sets validation message test id for test automation */
167
+ /** (option) sets validation message test id for test automation */
166
168
  errorTestId?: string;
169
+ /** (option) sets caption message test id for test automation */
170
+ captionTestId?: string;
167
171
  capture?: boolean | 'user' | 'environment';
168
172
  /**
169
173
  * (optional) sets an overriding classname on the container element
@@ -182,7 +186,7 @@ declare type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
182
186
  * Input Component
183
187
  * @example - <Input label="my label" id="some-id" name="some-name" caption="some help text" errorMessage={hasError ? 'something went wrong' : undefined} />
184
188
  */
185
- declare const Input: ({ label, icon, id, caption, showLabel, errorMessage, containerTestId, labelTestId, errorTestId, classNameContainer, classNameControl, classNameLabel, ...props }: InputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
189
+ declare const Input: ({ label, icon, id, caption, showLabel, errorMessage, containerTestId, labelTestId, errorTestId, captionTestId, classNameContainer, classNameControl, classNameLabel, ...props }: InputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
186
190
 
187
191
  declare type InputComboBoxOption = {
188
192
  /** sets the label value */
@@ -596,4 +600,42 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAt
596
600
  children?: React$1.ReactNode;
597
601
  } & React$1.RefAttributes<HTMLInputElement>>;
598
602
 
599
- export { ActionButtonsProps, AddButton, AddButtonProps, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, ChildFunction, ComboBoxGroupBase, ErrorMessage, ErrorMessageProps, Heading, HeadingProps, Icon, IconColor, IconProps, IconType, IconsProvider, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, Label, LabelProps, LevelProps, Link, LinkColorProps, LinkProps, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuProps, Paragraph, ParagraphProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, input, inputError, inputSelect, labelText, mq, scrollbarStyles, useIconContext, useMenuContext };
603
+ declare type TableProps = React$1.ComponentPropsWithoutRef<'table'>;
604
+ declare type TableHeadProps = React$1.ComponentPropsWithoutRef<'thead'>;
605
+ declare type TableBodyProps = React$1.ComponentPropsWithoutRef<'tbody'>;
606
+ declare type TableFootProps = React$1.ComponentPropsWithoutRef<'tfoot'>;
607
+ declare type TableRowProps = React$1.ComponentPropsWithoutRef<'tr'>;
608
+ declare type TableCellHeadProps = React$1.ComponentPropsWithoutRef<'th'>;
609
+ declare type TableCellDataProps = React$1.ComponentPropsWithoutRef<'td'>;
610
+ /**
611
+ * Uniform's Table component
612
+ * @example
613
+ * <Table>
614
+ <TableHead>
615
+ <TableRow>
616
+ <TableCellHead>head 1</TableCellHead>
617
+ <TableCellHead>head 2</TableCellHead>
618
+ </TableRow>
619
+ </TableHead>
620
+ <TableBody>
621
+ <TableRow>
622
+ <TableCellData>value 1</TableCellData>
623
+ <TableCellData>value 2</TableCellData>
624
+ </TableRow>
625
+ </TableBody>
626
+ <TableFoot>
627
+ <TableRow>
628
+ <TableCellData>footer</TableCellData>
629
+ </TableRow>
630
+ </TableFoot>
631
+ </Table>
632
+ */
633
+ declare const Table: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "key" | keyof React$1.TableHTMLAttributes<HTMLTableElement>> & React$1.RefAttributes<HTMLTableElement>>;
634
+ declare const TableHead: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
635
+ declare const TableBody: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
636
+ declare const TableFoot: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableSectionElement>> & React$1.RefAttributes<HTMLTableSectionElement>>;
637
+ declare const TableRow: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React$1.HTMLAttributes<HTMLTableRowElement>> & React$1.RefAttributes<HTMLTableRowElement>>;
638
+ declare const TableCellHead: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>> & React$1.RefAttributes<HTMLTableCellElement>>;
639
+ declare const TableCellData: React$1.ForwardRefExoticComponent<Pick<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "key" | keyof React$1.TdHTMLAttributes<HTMLTableDataCellElement>> & React$1.RefAttributes<HTMLTableCellElement>>;
640
+
641
+ export { ActionButtonsProps, AddButton, AddButtonProps, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, ChildFunction, ComboBoxGroupBase, ErrorMessage, ErrorMessageProps, Heading, HeadingProps, Icon, IconColor, IconProps, IconType, IconsProvider, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, Label, LabelProps, LevelProps, Link, LinkColorProps, LinkProps, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuProps, Paragraph, ParagraphProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Switch, SwitchProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Textarea, TextareaProps, Theme, ThemeProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, input, inputError, inputSelect, labelText, mq, scrollbarStyles, useIconContext, useMenuContext };