@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.
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/section/index.d.ts +2 -1
- package/dist/components/icons/gear/GearIcon.d.ts +4 -0
- package/dist/components/icons/index.d.ts +7 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/table/index.d.ts +2 -1
- package/dist/ui-core.cjs.development.js +190 -166
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +190 -167
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +6 -6
- package/src/components/banner/index.tsx +1 -1
- package/src/components/icons/gear/GearIcon.tsx +36 -0
- package/src/components/icons/index.tsx +21 -0
- package/src/components/input/StackedSwitch/index.tsx +1 -2
- package/src/components/input/components/label/index.tsx +1 -1
- package/src/components/input/index.tsx +5 -1
|
@@ -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;
|
|
@@ -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
|
|
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;
|