@inntechcorp/it-design 2.0.212 → 2.0.214

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.ts CHANGED
@@ -745,12 +745,20 @@ type AccordionItemProps = {
745
745
  children?: null | ChildrenProps;
746
746
  };
747
747
 
748
+ declare enum InputTypes {
749
+ TEXT = "text",
750
+ NUMBER = "number",
751
+ CURRENCY = "currency",
752
+ PASSWORD = "password"
753
+ }
754
+ type InputType = `${InputTypes}`;
755
+ type InputVariant = "default" | "filled" | "dashed";
748
756
  type InputProps = {
749
757
  id?: string;
750
758
  placeholder?: string;
751
759
  value?: string;
752
760
  defaultValue?: string;
753
- type?: "text" | "number" | "currency" | "password";
761
+ type?: InputType;
754
762
  className?: string;
755
763
  size?: ITDSize;
756
764
  variant?: InputVariant;
@@ -776,7 +784,6 @@ type InputProps = {
776
784
  onKeyDown?: ((event: KeyboardEvent) => void) | null;
777
785
  children?: ChildrenProps;
778
786
  };
779
- type InputVariant = "default" | "filled" | "dashed";
780
787
 
781
788
  type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
782
789
  type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";