jamespot-react-components 1.0.150 → 1.0.151
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/build/jamespot-react-components.js +201 -201
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +4 -3
- package/build/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +1 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +2 -1
- package/build/src/components/JRCFileViewer/JRCFileViewer.d.ts +1 -1
- package/build/src/components/JRCHtml/JRCHtml.d.ts +1 -1
- package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +1 -1
- package/build/src/index.d.ts +2 -1
- package/package.json +2 -2
|
@@ -20,16 +20,17 @@ export type CheckboxProps<TFieldValues> = DataCy & {
|
|
|
20
20
|
backgroundOnHover?: boolean;
|
|
21
21
|
backgroundOnSelect?: boolean;
|
|
22
22
|
valueTypeIsBoolean?: boolean;
|
|
23
|
-
setOptionsChecked?: (string | number | TFieldValues)[] | undefined;
|
|
24
|
-
getOptionsChecked?: (options: (string | number | TFieldValues)[] | undefined) => void;
|
|
25
23
|
readOnly?: boolean;
|
|
26
24
|
getReadOnlyLabel?: (value: TFieldValues) => React.ReactNode;
|
|
27
25
|
};
|
|
28
26
|
export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
29
|
-
export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
27
|
+
export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value' | 'ref'> & {
|
|
28
|
+
ref?: React.ForwardedRef<HTMLInputElement>;
|
|
29
|
+
} & {
|
|
30
30
|
value: TFieldValues | TFieldValues[];
|
|
31
31
|
};
|
|
32
32
|
export declare const ReadOnlyUl: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
33
|
+
export declare const JRCInputCheckboxRaw: <T extends FieldValues = FieldValues>(props: NativeCheckboxProps<T>) => JSX.Element;
|
|
33
34
|
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
|
|
34
35
|
export declare namespace JRCInputCheckbox {
|
|
35
36
|
var defaultProps: {
|
|
@@ -11,7 +11,7 @@ export type NativeInputFileProps = DataCy & Omit<React.ComponentPropsWithoutRef<
|
|
|
11
11
|
onChange: (files: ApiWrapper<jFileLittle>[]) => void;
|
|
12
12
|
};
|
|
13
13
|
export type JRCInputFileProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputFileProps, 'value' | 'onChange'>;
|
|
14
|
-
export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
14
|
+
export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value"> & {
|
|
15
15
|
token?: string | undefined;
|
|
16
16
|
attrName?: string | undefined;
|
|
17
17
|
onLoading?: ((state: boolean) => void) | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCInputSelectProps, NativeSelectProps } from './JRCInputSelect.types';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
|
-
export declare const Select: <T extends FieldValues = FieldValues>(props: NativeSelectProps<T>) => JSX.Element;
|
|
4
|
+
export declare const Select: <T extends FieldValues = FieldValues>(props: Pick<Partial<NativeSelectProps<T>>, "ref"> & Omit<NativeSelectProps<T>, "ref">) => JSX.Element;
|
|
5
5
|
export declare function JRCInputSelect<T extends FieldValues = FieldValues>(props: JRCInputSelectProps<T>): React.JSX.Element;
|
|
6
|
+
export declare const JRCInputSelectRaw: <T extends FieldValues = FieldValues>(props: Pick<Partial<NativeSelectProps<T>>, "ref"> & Omit<NativeSelectProps<T>, "ref">) => JSX.Element;
|
|
@@ -7,6 +7,6 @@ export type JRCHtmlProps = LimitLinesProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const JRCHtml: React.ForwardRefExoticComponent<LimitLinesProps & {
|
|
9
9
|
className?: string | undefined;
|
|
10
|
-
as?: "symbol" | "object" | "g" | "b" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "
|
|
10
|
+
as?: "symbol" | "object" | "g" | "b" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
|
11
11
|
__html: string | undefined;
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -9,4 +9,4 @@ export declare const SIZES: Readonly<{
|
|
|
9
9
|
xxl: 24;
|
|
10
10
|
xxxl: 32;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const Typography: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, Pick<JRCTypographyProps, "color" | "size" | "
|
|
12
|
+
export declare const Typography: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, Pick<JRCTypographyProps, "color" | "size" | "weight" | "align"> & FastCssProps, never>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export { JRCImageStepper } from './components/Stepper/JRCImageStepper';
|
|
|
90
90
|
export { JRCImg } from './components/JRCImg/JRCImg';
|
|
91
91
|
export { JRCInputAudience } from './components/Form/Input/JRCSelect/JRCInputAudience';
|
|
92
92
|
export { JRCInputAutocomplete } from './components/Form/Input/JRCSelect/JRCInputAutocomplete';
|
|
93
|
-
export { JRCInputCheckbox } from './components/Form/Input/JRCInputCheckbox/JRCInputCheckbox';
|
|
93
|
+
export { JRCInputCheckbox, JRCInputCheckboxRaw } from './components/Form/Input/JRCInputCheckbox/JRCInputCheckbox';
|
|
94
94
|
export { JRCInputCommunity } from './components/Form/Input/JRCSelect/JRCAutocompleteCommunity';
|
|
95
95
|
export { JRCInputDate } from './components/Form/Input/JRCInputDate/JRCInputDate';
|
|
96
96
|
export { JRCInputEmail } from './components/Form/Input/JRCFormEmail/JRCInputEmail';
|
|
@@ -100,6 +100,7 @@ export { JRCInputReorderCheckbox } from './components/Form/Input/JRCInputCheckbo
|
|
|
100
100
|
export { JRCInputRichText } from './components/Form/Input/JRCInputRichText/JRCInputRichText';
|
|
101
101
|
export { JRCInputSearch } from './components/Form/Input/JRCInputSearch/JRCInputSearch';
|
|
102
102
|
export { JRCInputSelect } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
103
|
+
export { JRCInputSelectRaw } from './components/Form/Input/JRCSelect/JRCInputSelect';
|
|
103
104
|
export { JRCInputSelectHierarchicalTree } from './components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree';
|
|
104
105
|
export { JRCInputSelectList } from './components/Form/Input/JRCSelect/JRCInputSelectList';
|
|
105
106
|
export { JRCInputTaxonomy } from './components/Form/Input/JRCSelect/JRCInputTaxonomy';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.151",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"chroma-js": "^2.1.1",
|
|
90
90
|
"classnames": "^2.3.1",
|
|
91
91
|
"dompurify": "^3.0.5",
|
|
92
|
-
"jamespot-user-api": "^1.0.
|
|
92
|
+
"jamespot-user-api": "^1.0.124",
|
|
93
93
|
"moment": "^2.29.1",
|
|
94
94
|
"react": "^17.x",
|
|
95
95
|
"react-beautiful-dnd": "^13.1.1",
|