@inntechcorp/it-design 2.0.110 → 2.0.112
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/form/context/FormContext.d.ts +1 -1
- package/dist/helpers/datetime/FormatDate.d.ts +2 -0
- package/dist/helpers/datetime/FormatDateTime.d.ts +2 -0
- package/dist/helpers/datetime/FormatSimpleDate.d.ts +2 -0
- package/dist/helpers/datetime/FormatSimpleDateTime.d.ts +2 -0
- package/dist/helpers/datetime/FormatTime.d.ts +2 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/index.cjs.js +123 -117
- package/dist/index.d.ts +12 -2
- package/dist/index.esm.js +123 -117
- package/dist/{output-DCvuWNga.css → output-BwpNST6S.css} +41 -41
- package/package.json +1 -1
- package/dist/output-DjWTgiS1.css +0 -241
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,16 @@ declare function Wait(milliseconds: number): Promise<unknown>;
|
|
|
98
98
|
|
|
99
99
|
declare const SVGLoader: (src: string, width?: string | number, height?: string | number) => react_jsx_runtime.JSX.Element;
|
|
100
100
|
|
|
101
|
+
declare function FormatDate(date: Date, locale?: string, format?: string): string;
|
|
102
|
+
|
|
103
|
+
declare function FormatDateTime(date: Date, locale?: string, format?: string): string;
|
|
104
|
+
|
|
105
|
+
declare function FormatSimpleDate(date: Date, locale?: string, format?: string): string;
|
|
106
|
+
|
|
107
|
+
declare function FormatSimpleDateTime(date: Date, locale?: string, format?: string): string;
|
|
108
|
+
|
|
109
|
+
declare function FormatTime(time: moment.MomentInput, locale?: string, format?: string): string;
|
|
110
|
+
|
|
101
111
|
type Nullable<T> = T | null;
|
|
102
112
|
type THandler = Nullable<(value: string | null) => void>;
|
|
103
113
|
declare const useReCaptcha: (handler: THandler) => {
|
|
@@ -413,7 +423,7 @@ type FormContextType = {
|
|
|
413
423
|
isFormValid: () => boolean;
|
|
414
424
|
isFieldsValid: (names: string[]) => boolean;
|
|
415
425
|
isFieldValid: (name: string) => boolean;
|
|
416
|
-
resetFields: (update
|
|
426
|
+
resetFields: (update?: boolean, validation?: boolean) => void;
|
|
417
427
|
removeFields: () => void;
|
|
418
428
|
formId: string;
|
|
419
429
|
updated: {};
|
|
@@ -1325,4 +1335,4 @@ declare enum FileExtensions {
|
|
|
1325
1335
|
OTF = ".otf"
|
|
1326
1336
|
}
|
|
1327
1337
|
|
|
1328
|
-
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, 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 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 };
|
|
1338
|
+
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 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 };
|