@xqmsg/ui-core 0.22.1 → 0.22.3

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.
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormHandler } from '../../components/form/hooks/useFormHandler';
4
4
  export interface FormProps<T extends FieldValues> {
@@ -9,4 +9,4 @@ export interface FormProps<T extends FieldValues> {
9
9
  * `react-hook-form`. The `Form` component is provided a `formHandler` and is used to wrap a container
10
10
  * that contains a `FormSection` component.
11
11
  */
12
- export declare function Form<T extends FieldValues>({ formHandler, children, }: PropsWithChildren<FormProps<T>>): JSX.Element;
12
+ export declare function Form<T extends FieldValues>({ formHandler, children, }: PropsWithChildren<FormProps<T>>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
3
  import { FormStructure } from '../FormTypes';
3
4
  /**
@@ -24,4 +25,4 @@ export interface FormSectionProps<T extends string | number | symbol, U extends
24
25
  *
25
26
  * @returns a list of input's for a specific form section.
26
27
  */
27
- export declare function FormSection<T extends string | number | symbol, U extends FieldValues>({ formStructure, section, form, className, columns, spacing, }: FormSectionProps<T, U>): JSX.Element;
28
+ export declare function FormSection<T extends string | number | symbol, U extends FieldValues>({ formStructure, section, form, className, columns, spacing, }: FormSectionProps<T, U>): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { JSXIconProps } from '..';
3
+ export declare const GearIcon: React.FC<JSXIconProps>;
4
+ export default GearIcon;
@@ -35,7 +35,13 @@ import { Video } from './video';
35
35
  import { Page } from './page';
36
36
  import { Workspace } from './workspace';
37
37
  import { Task } from './task';
38
+ import GearIcon from './gear/GearIcon';
39
+ import { BoxProps } from '@chakra-ui/react';
38
40
  export interface IconProps {
39
41
  boxSize: string;
40
42
  }
41
- export { Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown, Error, FileFill, FileOutline, FolderFill, FolderOutline, FolderAddFill, FolderAddOutline, Google, GoogleDrive, Group, Home, Image, Link, Menu, Microsoft, MicrosoftOneDrive, Neutral, Page, Positive, Question, Search, Services, Settings, TableFill, TableOutline, Trash, Vault, Video, Warning, Workspace, Task, };
43
+ export interface JSXIconProps extends Pick<BoxProps, 'p' | 'padding' | 'pr' | 'paddingRight' | 'pl' | 'paddingLeft' | 'pt' | 'paddingTop' | 'pb' | 'paddingBottom'> {
44
+ color?: string;
45
+ boxSize?: string;
46
+ }
47
+ export { Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown, Error, FileFill, FileOutline, FolderFill, FolderOutline, FolderAddFill, FolderAddOutline, GearIcon, Google, GoogleDrive, Group, Home, Image, Link, Menu, Microsoft, MicrosoftOneDrive, Neutral, Page, Positive, Question, Search, Services, Settings, TableFill, TableOutline, Trash, Vault, Video, Warning, Workspace, Task, };
@@ -28,4 +28,4 @@ export interface InputProps<T extends FieldValues> extends ValidationProps {
28
28
  * A functional React component utilized to render the `Input` component. Utilizes a switch statement
29
29
  * to render the correct input based on the `inputType`.
30
30
  */
31
- export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, fullOptions, control, disabled, rightElement, leftElement, allowDefault, onChange, setValue, setError, clearErrors, }: InputProps<T>): JSX.Element;
31
+ export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, fullOptions, control, disabled, rightElement, leftElement, allowDefault, onChange, setValue, setError, clearErrors, }: InputProps<T>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReadonlyTableColumns, TableBody, TableColumns, TableHeaders } from './TableTypes';
2
3
  export interface TableProps<T extends ReadonlyTableColumns> {
3
4
  columns: TableColumns;
@@ -10,4 +11,4 @@ export interface TableProps<T extends ReadonlyTableColumns> {
10
11
  /**
11
12
  * A React component utilized to render the `Table` component
12
13
  */
13
- export declare function Table<T extends ReadonlyTableColumns>({ columns, headers, body, loading, loadMore, }: TableProps<T>): JSX.Element;
14
+ export declare function Table<T extends ReadonlyTableColumns>({ columns, headers, body, loading, loadMore, }: TableProps<T>): React.JSX.Element;