@inntechcorp/it-design 2.0.121 → 2.0.124

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
@@ -69,6 +69,8 @@ export type { AccordionProps } from './types/AccordionProps';
69
69
  export type { AccordionSubMenuProps } from './types/AccordionSubMenuProps';
70
70
  export type { AccordionItemProps } from './types/AccordionItemProps';
71
71
  export type { InputProps, InputVariant } from './types/InputProps';
72
+ export type { DatePickerProps } from './types/DatePickerProps';
73
+ export type { CalendarProps, CalendarValueProps, CalendarDayProps } from './types/CalendarProps';
72
74
  export type { TextAreaProps, TextAreaVariant, TextAreaEvent } from './types/TextAreaProps';
73
75
  export type { SelectProps, SelectToggleProps, SelectOptionProps, SelectValue, SelectVariant, SelectDirection, SelectPosition } from './types/SelectProps';
74
76
  export type { CheckboxProps, CheckboxGroupProps, GroupCheckboxOptionType, CheckboxEvent } from './types/CheckboxProps';
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
5
5
  import { IStyledComponent } from 'styled-components';
6
6
  import { Cancel, AxiosProgressEvent } from 'axios';
7
7
  import { ModalState as ModalState$1, FormValidationTypes } from 'enums/enum';
8
+ import moment$1 from 'moment';
8
9
  import { ModalProps as ModalProps$1 } from 'types/ModalProps';
9
10
  import { ResultProps as ResultProps$1 } from 'types/ResultProps';
10
11
 
@@ -468,9 +469,15 @@ type AccordionMenuProps = AccordionProps & {
468
469
  };
469
470
  declare const Accordion: FunctionComponent<AccordionMenuProps> & AccordionMenuSubComponents;
470
471
 
471
- declare const Calendar: react__default.ForwardRefExoticComponent<react__default.RefAttributes<any>>;
472
+ declare const Calendar: react.ForwardRefExoticComponent<{
473
+ value: string;
474
+ defaultValue: string;
475
+ className?: string | undefined;
476
+ onChange: ((value: CalendarValueProps) => void) | null;
477
+ disabledDate?: ((date: moment$1.Moment) => boolean) | undefined;
478
+ } & react.RefAttributes<unknown>>;
472
479
 
473
- declare const DatePicker: react__default.ForwardRefExoticComponent<react__default.RefAttributes<any>>;
480
+ declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<ITDImperativeFuncProps>>;
474
481
 
475
482
  /**
476
483
  * https://github.com/sanniassin/react-input-mask
@@ -732,6 +739,53 @@ type InputProps = {
732
739
  };
733
740
  type InputVariant = "default" | "filled" | "dashed";
734
741
 
742
+ type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
743
+ type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";
744
+
745
+ type CalendarProps = {
746
+ id?: string;
747
+ placeholder?: string;
748
+ defaultValue: CalendarValueProps;
749
+ className?: string;
750
+ mask?: null | string;
751
+ size?: ITDSize;
752
+ variant?: InputVariant;
753
+ disabled?: boolean;
754
+ floating?: boolean;
755
+ suffix?: ChildrenProps;
756
+ onChange?: ((value: CalendarValueProps) => void) | null;
757
+ onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
758
+ disabledDate: (date: moment$1.Moment) => boolean;
759
+ };
760
+ type CalendarValueProps = {
761
+ localizated: string;
762
+ global: string;
763
+ };
764
+ type CalendarDayProps = {
765
+ date: moment$1.Moment;
766
+ today?: boolean;
767
+ selected?: boolean;
768
+ current?: boolean;
769
+ disabled?: boolean;
770
+ handleClick: (date: moment$1.Moment) => void;
771
+ };
772
+
773
+ type DatePickerProps = {
774
+ id?: string;
775
+ placeholder?: string;
776
+ defaultValue?: CalendarValueProps;
777
+ className?: string;
778
+ mask?: null | string;
779
+ size?: ITDSize;
780
+ variant?: InputVariant;
781
+ disabled?: boolean;
782
+ floating?: boolean;
783
+ suffix?: ChildrenProps;
784
+ onChange?: ((value: CalendarValueProps) => void) | null;
785
+ onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
786
+ disabledDate?: (date: moment$1.Moment) => boolean;
787
+ };
788
+
735
789
  type TextAreaProps = {
736
790
  id?: string;
737
791
  placeholder?: string;
@@ -893,7 +947,7 @@ type ButtonContentPosition = "left" | "right";
893
947
 
894
948
  type FormProps = {
895
949
  initialValues?: {};
896
- children: ChildrenProps$1;
950
+ children: ChildrenProps;
897
951
  onReset?: () => void;
898
952
  onUpdate?: (values: {}) => void;
899
953
  onFinish?: (values: {}) => void;
@@ -1288,9 +1342,6 @@ type StatusProps = {
1288
1342
  };
1289
1343
  type StatusVariant = "gray-1" | "gray-2" | "gray-3" | "green" | "yellow" | "red" | "brown" | "lavender" | "pink" | "violet" | "blue" | "filled-red" | "filled-yellow" | "filled-pink" | "filled-blue" | "filled-green" | "filled-purple" | "filled-black";
1290
1344
 
1291
- type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
1292
- type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";
1293
-
1294
1345
  type FlexProps = {
1295
1346
  gap?: FlexGapProps;
1296
1347
  justify?: FlexJustifyProps;
@@ -1300,7 +1351,7 @@ type FlexProps = {
1300
1351
  stretch?: boolean;
1301
1352
  style?: CSSProperties;
1302
1353
  className?: string;
1303
- children?: ChildrenProps$1;
1354
+ children?: ChildrenProps;
1304
1355
  };
1305
1356
  type FlexGapProps = "small" | "medium" | "large" | string | number;
1306
1357
  type FlexJustifyProps = "unset" | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
@@ -1338,4 +1389,4 @@ declare enum FileExtensions {
1338
1389
  OTF = ".otf"
1339
1390
  }
1340
1391
 
1341
- export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, type FlexAlignProps, type FlexGapProps, type FlexJustifyProps, type FlexProps, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, type FormValueProps, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, type GroupCheckboxOptionType, H1, H2, H3, H4, ITDContext, type ITDContextType, type ITDImperativeFuncProps, ITDProvider, type ITDProviderProps, type ITDSize, type ITDSizeSlug, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, type InputVariant, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, NoData, Notification, type NotificationContextType, type NotificationsProps, Picture, Progress, type ProgressProps, type ProgressStatus, Radio, RemoveUnits, Result, type ResultProps, SVGLoader, Select, type SelectDirection, type SelectOptionProps, type SelectPosition, type SelectProps, type SelectToggleProps, type SelectValue, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
1392
+ export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, type CalendarDayProps, type CalendarProps, type CalendarValueProps, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, type DatePickerProps, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, type FlexAlignProps, type FlexGapProps, type FlexJustifyProps, type FlexProps, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, type FormValueProps, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, type GroupCheckboxOptionType, H1, H2, H3, H4, ITDContext, type ITDContextType, type ITDImperativeFuncProps, ITDProvider, type ITDProviderProps, type ITDSize, type ITDSizeSlug, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, type InputVariant, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, NoData, Notification, type NotificationContextType, type NotificationsProps, Picture, Progress, type ProgressProps, type ProgressStatus, Radio, RemoveUnits, Result, type ResultProps, SVGLoader, Select, type SelectDirection, type SelectOptionProps, type SelectPosition, type SelectProps, type SelectToggleProps, type SelectValue, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };