jamespot-react-components 1.3.22 → 1.3.24

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,5 +1,5 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { JRCTextProps } from '../../../JRCTypo/JRCTypo';
3
3
  import { JRCFormFieldRendererProps } from './JRCFormFieldRenderer.types';
4
- export declare const StyledDescription: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, JRCTextProps>> & string;
4
+ export declare const StyledDescription: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, JRCTextProps>> & string;
5
5
  export declare function JRCFormFieldRenderer<TFieldValues extends FieldValues = FieldValues>(props: JRCFormFieldRendererProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,7 @@ type JRCInputSearchProps = {
6
6
  width?: number | string;
7
7
  loading?: boolean;
8
8
  debounceDelay?: number;
9
+ inForm?: boolean;
9
10
  } & DataCy;
10
- export declare const JRCInputSearchRaw: ({ onChange, placeholder, width, loading, onClickSearch, dataCy, debounceDelay, }: JRCInputSearchProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const JRCInputSearchRaw: ({ onChange, placeholder, width, loading, onClickSearch, dataCy, debounceDelay, inForm, }: JRCInputSearchProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -4,6 +4,7 @@ import { Ref } from 'react';
4
4
  import { DataCy } from '../../../../types/dataAttributes';
5
5
  import { MentionQuery, TinyMCEExtension } from './types';
6
6
  export type JRCInputTinyMCERawProps = DataCy & {
7
+ id?: string;
7
8
  token?: string;
8
9
  commonOptions: TinyMCECommonOptions;
9
10
  additionalExtensions?: Array<TinyMCEExtension>;
@@ -61,10 +61,12 @@ export declare const IconBefore: import('styled-components/dist/types').IStyledC
61
61
  export declare const TimesIndicator: ({ onClick }: {
62
62
  onClick?: () => void;
63
63
  }) => import("react/jsx-runtime").JSX.Element;
64
- export declare const DropdownIndicator: ({ loading, open, onClick, sizeVariant, disabled, }: {
64
+ export declare const DropdownIndicator: ({ loading, open, onClick, sizeVariant, disabled, expand, controls, }: {
65
65
  loading: boolean;
66
66
  open: boolean;
67
67
  onClick?: () => void;
68
68
  sizeVariant?: "s" | "md";
69
69
  disabled?: boolean;
70
+ expand: boolean;
71
+ controls: string;
70
72
  }) => import("react/jsx-runtime").JSX.Element;
@@ -12,12 +12,15 @@ import { AutocompleteView } from './JRCInputAutocompleteViews';
12
12
  */
13
13
  export type NativeSelectProps<T extends FieldValues = FieldValues, U = any> = PartialBy<ControllerRenderProps<T>, 'onBlur'> & SelectProps<U> & IconsProp;
14
14
  export type JRCInputSelectProps<T extends FieldValues = FieldValues, U = any> = JRCInputFieldProps<T> & SelectProps<U> & IconsProp;
15
+ type IconBase = {
16
+ icon: string;
17
+ color?: Colors | Shades | 'inherit';
18
+ };
15
19
  export type IconsProp = {
16
- iconBefore?: {
17
- icon: string;
18
- color?: Colors | Shades | 'inherit';
19
- onClick?: () => void;
20
- };
20
+ iconBefore?: IconBase | (IconBase & {
21
+ label: string;
22
+ onClick: () => void;
23
+ });
21
24
  };
22
25
  export type SelectOption = {
23
26
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.22",
3
+ "version": "1.3.24",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.js",
6
6
  "module": "dist/jamespot-react-components.mjs",
@@ -78,7 +78,7 @@
78
78
  "globals": "^16.5.0",
79
79
  "html2canvas": "^1.4.1",
80
80
  "husky": "^9.1.7",
81
- "jamespot-user-api": "^1.3.22",
81
+ "jamespot-user-api": "^1.3.24",
82
82
  "jest": "^30.2.0",
83
83
  "jest-environment-jsdom": "^30.2.0",
84
84
  "knip": "^5.70.0",