@6thbridge/hexa 0.0.0-pr76-133 → 0.0.0-pr76-135

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/index.d.mts CHANGED
@@ -798,10 +798,11 @@ type RichTextEditorProps = {
798
798
  */
799
799
  declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) => React$1.JSX.Element | null;
800
800
 
801
+ type TagInputVariant = "success" | "failed" | "pending" | "default";
801
802
  type TagOption = {
802
803
  value: string;
803
804
  label: string;
804
- variant?: string;
805
+ variant?: TagInputVariant;
805
806
  disabled?: boolean;
806
807
  [key: string]: unknown;
807
808
  };
@@ -817,7 +818,7 @@ interface TagsInputProps {
817
818
  disabled?: boolean;
818
819
  isLoading?: boolean;
819
820
  allowCreate?: boolean;
820
- renderTag?: (tag: TagOption, remove: () => void) => React$1.ReactNode;
821
+ renderTag?: (tag: TagOption) => React$1.ReactNode;
821
822
  renderOption?: (option: TagOption, selected: boolean) => React$1.ReactNode;
822
823
  validateTag?: (input: string) => boolean;
823
824
  onCreate?: (input: string) => TagOption;
package/dist/index.d.ts CHANGED
@@ -798,10 +798,11 @@ type RichTextEditorProps = {
798
798
  */
799
799
  declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) => React$1.JSX.Element | null;
800
800
 
801
+ type TagInputVariant = "success" | "failed" | "pending" | "default";
801
802
  type TagOption = {
802
803
  value: string;
803
804
  label: string;
804
- variant?: string;
805
+ variant?: TagInputVariant;
805
806
  disabled?: boolean;
806
807
  [key: string]: unknown;
807
808
  };
@@ -817,7 +818,7 @@ interface TagsInputProps {
817
818
  disabled?: boolean;
818
819
  isLoading?: boolean;
819
820
  allowCreate?: boolean;
820
- renderTag?: (tag: TagOption, remove: () => void) => React$1.ReactNode;
821
+ renderTag?: (tag: TagOption) => React$1.ReactNode;
821
822
  renderOption?: (option: TagOption, selected: boolean) => React$1.ReactNode;
822
823
  validateTag?: (input: string) => boolean;
823
824
  onCreate?: (input: string) => TagOption;