@inntechcorp/it-design 2.0.41 → 2.0.43

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
@@ -61,6 +61,7 @@ export { default as TinyScrollbar } from './tinyscrollbar';
61
61
  export { default as Tabs } from './tabs';
62
62
  export { default as Card } from './card';
63
63
  export { default as Table } from './table';
64
+ export { default as Flex } from './flex';
64
65
  export type { FormContextType } from './form/context/FormContext';
65
66
  export type { NotificationContextType } from './notification/context/NotificationsContext';
66
67
  export type { ITDContextType, ITDProviderProps } from './context/ITDContext';
@@ -86,4 +87,5 @@ export type { CardProps } from './types/CardProps';
86
87
  export type { ProgressProps, ProgressStatus } from './types/ProgressProps';
87
88
  export type { StatusProps, StatusVariant } from './types/StatusProps';
88
89
  export type { ITDSize, ITDSizeSlug } from './types/ITDProps';
90
+ export type { FlexProps, FlexAlignProps, FlexGapProps, FlexJustifyProps } from './types/FlexProps';
89
91
  export { ModalState, FileExtensions, FileTypes } from './enums/enum';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { MutableRefObject, RefObject, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, FocusEventHandler, KeyboardEvent, ReactElement, MouseEvent } from 'react';
3
+ import react__default, { MutableRefObject, RefObject, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, FocusEventHandler, KeyboardEvent, ReactElement, MouseEvent, CSSProperties } from 'react';
4
4
  import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
5
5
  import { IStyledComponent } from 'styled-components';
6
6
  import { Cancel, AxiosProgressEvent } from 'axios';
@@ -638,7 +638,10 @@ declare const Card: ({ title, titleSeparator, extra, tabs, onTabChange, minWidth
638
638
 
639
639
  declare const Table: <T>({ columns, data, size, headless, bordered, dashed, noGaps }: TableProps<T>) => react_jsx_runtime.JSX.Element;
640
640
 
641
- type ChildrenProps = string | JSX.Element | JSX.Element[] | null | undefined;
641
+ declare const Flex: ({ gap, justify, align, vertical, wrap, stretch, style, className, children }: FlexProps) => react_jsx_runtime.JSX.Element;
642
+
643
+ type Element = string | JSX.Element | undefined;
644
+ type ChildrenProps = Element | Element[] | null;
642
645
 
643
646
  type AccordionProps = {
644
647
  useLink?: boolean;
@@ -649,7 +652,7 @@ type AccordionProps = {
649
652
  iconSize?: number;
650
653
  arrowSize?: number;
651
654
  onChange?: null | ((id: string) => void);
652
- children: ChildrenProps;
655
+ children?: ChildrenProps;
653
656
  };
654
657
 
655
658
  type AccordionSubMenuProps = {
@@ -1217,6 +1220,21 @@ type StatusVariant = "gray-1" | "gray-2" | "gray-3" | "green" | "yellow" | "red"
1217
1220
  type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
1218
1221
  type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";
1219
1222
 
1223
+ type FlexProps = {
1224
+ gap?: FlexGapProps;
1225
+ justify?: FlexJustifyProps;
1226
+ align?: FlexAlignProps;
1227
+ vertical?: boolean;
1228
+ wrap?: boolean;
1229
+ stretch?: boolean;
1230
+ style?: CSSProperties;
1231
+ className?: string;
1232
+ children?: ChildrenProps$1;
1233
+ };
1234
+ type FlexGapProps = "small" | "medium" | "large" | string | number;
1235
+ type FlexJustifyProps = "unset" | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
1236
+ type FlexAlignProps = "unset" | "flex-start" | "center" | "flex-end";
1237
+
1220
1238
  declare enum ModalState {
1221
1239
  NOT_SHOW = "modal-not-show",
1222
1240
  ENTERED = "modal-entered",
@@ -1245,4 +1263,4 @@ declare enum FileExtensions {
1245
1263
  OTF = ".otf"
1246
1264
  }
1247
1265
 
1248
- 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, 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, Select, type SelectOptionProps, type SelectProps, 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, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
1266
+ 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, Select, type SelectOptionProps, type SelectProps, 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, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };