@monolith-forensics/monolith-ui 1.4.1 → 1.4.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,5 @@
1
1
  import moment from "moment";
2
+ import { ReactNode } from "react";
2
3
  import { Size, Variant } from "../core";
3
4
  type DateInputProps = {
4
5
  className?: string;
@@ -7,7 +8,7 @@ type DateInputProps = {
7
8
  value?: string | null | undefined;
8
9
  format?: FormatOptions;
9
10
  label?: string;
10
- description?: string;
11
+ description?: ReactNode;
11
12
  arrow?: boolean;
12
13
  size?: Size;
13
14
  variant?: Variant;
@@ -3,7 +3,7 @@ import { Size } from "../core";
3
3
  interface InfoComponentProps {
4
4
  className?: string;
5
5
  children?: ReactNode;
6
- description?: string;
6
+ description?: ReactNode;
7
7
  label?: string | ReactNode;
8
8
  }
9
9
  export declare const InfoComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<InfoComponentProps, never>> & string & Omit<({ className, children, description, label }: InfoComponentProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined, keyof import("react").Component<any, {}, any>>;
@@ -11,7 +11,7 @@ export interface FieldLabelProps {
11
11
  className?: string;
12
12
  children?: ReactNode;
13
13
  error?: string;
14
- description?: string;
14
+ description?: ReactNode;
15
15
  size?: Size;
16
16
  asterisk?: boolean;
17
17
  style?: React.CSSProperties;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from "react";
1
2
  import { Size, Variant } from "../core";
2
3
  export type Option = {
3
4
  label: string;
@@ -23,7 +24,7 @@ export type SelectBoxProps = {
23
24
  searchable?: boolean;
24
25
  clearable?: boolean;
25
26
  label?: string;
26
- description?: string;
27
+ description?: ReactNode;
27
28
  required?: boolean;
28
29
  error?: string;
29
30
  openOnFocus?: boolean;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from "react";
1
+ import { CSSProperties, ReactNode } from "react";
2
2
  import { Size } from "../core";
3
3
  export type SwitchProps = {
4
4
  className?: string;
@@ -6,7 +6,7 @@ export type SwitchProps = {
6
6
  size?: Exclude<Size, "xxs">;
7
7
  label?: string;
8
8
  labelPosition?: "left" | "right";
9
- description?: string;
9
+ description?: ReactNode;
10
10
  error?: string;
11
11
  required?: boolean;
12
12
  disabled?: boolean;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from "react";
1
2
  import { Size, Variant } from "../core";
2
3
  export type Option = {
3
4
  label: string;
@@ -22,7 +23,7 @@ export interface TagBoxProps {
22
23
  searchable?: boolean;
23
24
  clearable?: boolean;
24
25
  label?: string;
25
- description?: string;
26
+ description?: ReactNode;
26
27
  required?: boolean;
27
28
  error?: string;
28
29
  openOnFocus?: boolean;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
2
  import { Size } from "../core";
3
3
  import { DropDownItem } from "..";
4
4
  export type InsertableItem = {
@@ -12,7 +12,7 @@ export interface TextAreaInputProps extends React.TextareaHTMLAttributes<HTMLTex
12
12
  required?: boolean;
13
13
  colSpan?: number;
14
14
  size?: Size;
15
- description?: string;
15
+ description?: ReactNode;
16
16
  maxRows?: number;
17
17
  minRows?: number;
18
18
  cacheMeasurements?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { InputProps } from "../Input/Input";
2
2
  import { Size } from "../core";
3
+ import { ReactNode } from "react";
3
4
  export type TextInputProps = InputProps & {
4
5
  className?: string;
5
6
  label?: string;
@@ -7,7 +8,7 @@ export type TextInputProps = InputProps & {
7
8
  required?: boolean;
8
9
  size?: Size;
9
10
  colSpan?: number;
10
- description?: string;
11
+ description?: ReactNode;
11
12
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
12
13
  style?: React.CSSProperties;
13
14
  password?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",