@inntechcorp/it-design 2.2.62 → 2.2.63

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
@@ -683,4 +683,4 @@ export type { ProgressProps, ProgressStatus } from './types/ProgressProps';
683
683
  export type { StatusProps, StatusVariant } from './types/StatusProps';
684
684
  export type { ITDSize, ITDSizeSlug } from './types/ITDProps';
685
685
  export type { FlexProps, FlexAlignProps, FlexGapProps, FlexJustifyProps } from './types/FlexProps';
686
- export { ModalState, FileExtensions, FileTypes, FormValidationTypes } from './enums/enum';
686
+ export { ModalState, FileExtensions, FileTypes, FormValidationTypes, ConnectionStatus } from './enums/enum';
package/dist/index.d.ts CHANGED
@@ -2,10 +2,10 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import react__default, { RefObject, Context, ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, Ref, MutableRefObject, FocusEvent, KeyboardEvent, MouseEvent, ReactElement, CSSProperties } from 'react';
4
4
  import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
5
+ import dayjs from 'dayjs';
6
+ import { ConnectionStatus as ConnectionStatus$1, ModalState as ModalState$1, FormValidationTypes as FormValidationTypes$1 } from 'enums/enum';
5
7
  import { Cancel, AxiosProgressEvent } from 'axios';
6
8
  import { SelectValue as SelectValue$1 } from 'types/SelectProps';
7
- import { ModalState as ModalState$1, FormValidationTypes as FormValidationTypes$1 } from 'enums/enum';
8
- import moment$1 from 'moment';
9
9
  import { ModalProps as ModalProps$1 } from 'types/ModalProps';
10
10
  import { RadioButtonProps as RadioButtonProps$1, RadioGroupProps as RadioGroupProps$1 } from 'types/RadioProps';
11
11
  import { ITDImperativeFuncProps as ITDImperativeFuncProps$1 } from 'types/ITDImperativeFuncProps';
@@ -110,7 +110,7 @@ declare function FormatSimpleDate(date: Date, locale?: string, format?: string):
110
110
 
111
111
  declare function FormatSimpleDateTime(date: Date, locale?: string, format?: string): string;
112
112
 
113
- declare function FormatTime(time: moment.MomentInput, locale?: string, format?: string): string;
113
+ declare function FormatTime(time: dayjs.ConfigType, locale?: string, format?: string): string;
114
114
 
115
115
  declare function AddDefaultUnit(value: string | number): string;
116
116
 
@@ -238,10 +238,10 @@ declare const useOnResize: (handler: (event: Event) => void) => void;
238
238
  * window objesine event listener ekler ve
239
239
  * kullanıcı online ve offline olduğunda çağrılır.
240
240
  *
241
- * @param {*} handler
241
+ * @param handler
242
242
  *
243
243
  */
244
- declare const useConnectionStatus: (handler: (event: Event) => void) => void;
244
+ declare const useConnectionStatus: (handler: (status: ConnectionStatus$1, event: Event) => void) => void;
245
245
 
246
246
  declare const useComponentSize: (comRef: RefObject<any>) => {
247
247
  width: number;
@@ -528,7 +528,7 @@ declare const Calendar: ({ value, defaultValue, className, onChange, disabledDat
528
528
  defaultValue?: string;
529
529
  className?: string;
530
530
  onChange?: ((value: CalendarValueProps) => void) | null;
531
- disabledDate?: (date: moment$1.Moment) => boolean;
531
+ disabledDate?: (date: dayjs.Dayjs) => boolean;
532
532
  }) => react_jsx_runtime.JSX.Element | null;
533
533
 
534
534
  declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<ITDImperativeFuncProps>>;
@@ -835,19 +835,19 @@ type CalendarProps = {
835
835
  suffix?: ChildrenProps;
836
836
  onChange?: ((value: CalendarValueProps) => void) | null;
837
837
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
838
- disabledDate: (date: moment$1.Moment) => boolean;
838
+ disabledDate: (date: dayjs.Dayjs) => boolean;
839
839
  };
840
840
  type CalendarValueProps = {
841
841
  localizated: string;
842
842
  global: string;
843
843
  };
844
844
  type CalendarDayProps = {
845
- date: moment$1.Moment;
845
+ date: dayjs.Dayjs;
846
846
  today?: boolean;
847
847
  selected?: boolean;
848
848
  current?: boolean;
849
849
  disabled?: boolean;
850
- handleClick: (date: moment$1.Moment) => void;
850
+ handleClick: (date: dayjs.Dayjs) => void;
851
851
  };
852
852
 
853
853
  type DatePickerProps = {
@@ -865,7 +865,7 @@ type DatePickerProps = {
865
865
  suffix?: ChildrenProps;
866
866
  onChange?: ((value: CalendarValueProps) => void) | null;
867
867
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
868
- disabledDate?: (date: moment$1.Moment) => boolean;
868
+ disabledDate?: (date: dayjs.Dayjs) => boolean;
869
869
  };
870
870
 
871
871
  type TextAreaProps = {
@@ -1577,6 +1577,10 @@ declare enum FormValidationTypes {
1577
1577
  ADMIN_USERNAME = "adminUsername",
1578
1578
  URL = "url"
1579
1579
  }
1580
+ declare enum ConnectionStatus {
1581
+ ONLINE = "online",
1582
+ OFFLINE = "offline"
1583
+ }
1580
1584
 
1581
1585
  declare const resources: {
1582
1586
  tr: {
@@ -2166,5 +2170,5 @@ declare const resources: {
2166
2170
  };
2167
2171
  };
2168
2172
 
2169
- export { _default as ALink, Accordion, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, Calendar, Card, CheckFileURL, Checkbox, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, Form, FormValidationTypes, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, H1, H2, H3, H4, ITDContext, ITDProvider, _default$1 as Image, _default$5 as InlineSVGCached, InlineSelect, InlineSelectArrow, Input, IsValidJSON, Lock as LockIcon, ModalManager, ModalState, NoData, Notification, Picture, Progress, Radio, RemoveUnits, Result, SVGLoader, Select, Spin, Status, Switch, Table, Tabs, TextArea, TinyScrollbar, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, Wait, ZoomIn, ZoomOut, resources, toKebabCase, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useKeyboardShortcut, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useOrientation, useReCaptcha, useSingleQuery };
2173
+ export { _default as ALink, Accordion, AddDefaultThemeStyle, AddDefaultUnit, AddZero, Alert, Arrow as ArrowIcon, BackToTop, BackTop, Base64Decode, Base64Encode, Button, Calendar, Card, CheckFileURL, Checkbox, Checkmark, ChunkArray, Collapse, ConnectionStatus, ConsoleLog, ConvertCurrency, DatePicker, DetermineNewHeight, DetermineNewWidth, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, Form, FormValidationTypes, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, H1, H2, H3, H4, ITDContext, ITDProvider, _default$1 as Image, _default$5 as InlineSVGCached, InlineSelect, InlineSelectArrow, Input, IsValidJSON, Lock as LockIcon, ModalManager, ModalState, NoData, Notification, Picture, Progress, Radio, RemoveUnits, Result, SVGLoader, Select, Spin, Status, Switch, Table, Tabs, TextArea, TinyScrollbar, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, Wait, ZoomIn, ZoomOut, resources, toKebabCase, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useKeyboardShortcut, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useOrientation, useReCaptcha, useSingleQuery };
2170
2174
  export type { AccordionItemProps, AccordionProps, AccordionSubMenuProps, AlertProps, AlertSize, AlertType, ButtonContentPosition, ButtonProps, ButtonState, ButtonType, ButtonVariant, CalendarDayProps, CalendarProps, CalendarValueProps, CardProps, CheckboxEvent, CheckboxGroupProps, CheckboxProps, DatePickerProps, Direction, FieldUpdateProps, FlexAlignProps, FlexGapProps, FlexJustifyProps, FlexProps, FormContextType, FormItemProps, FormProps, FormRuleProps, FormSubComponentProps, FormValueProps, GroupCheckboxOptionType, ITDContextType, ITDImperativeFuncProps, ITDProviderProps, ITDSize, ITDSizeSlug, InputProps, InputVariant, ModalContentProps, ModalProps, ModalRefProps, NotificationContextType, NotificationsProps, ProgressProps, ProgressStatus, QueryValueProps, RadioButtonProps, RadioGroupProps, RadioType, ResultProps, SelectDirection, SelectOptionProps, SelectPosition, SelectProps, SelectToggleProps, SelectValue, SelectVariant, SingleQueryProps, StatusProps, StatusVariant, SwitchProps, TableColumnType, TableProps, TableRefProps, TableRow, TableTRProps, TabsItemProps, TabsProps, TextAreaEvent, TextAreaProps, TextAreaVariant, UploadProgressProps, UploadProps, UploadResultMessageProps };