@ctlyst.id/internal-ui 2.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +72 -1
- package/dist/index.d.ts +72 -1
- package/dist/index.js +7890 -617
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7693 -399
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -295,6 +295,26 @@ interface DialogProps extends Omit<ModalProps, 'children'> {
|
|
295
295
|
}
|
296
296
|
declare const Dialog: React__default.FC<DialogProps>;
|
297
297
|
|
298
|
+
declare const EmptyState: {
|
299
|
+
(): react_jsx_runtime.JSX.Element;
|
300
|
+
Page: () => react_jsx_runtime.JSX.Element;
|
301
|
+
Filter: () => react_jsx_runtime.JSX.Element;
|
302
|
+
Search: () => react_jsx_runtime.JSX.Element;
|
303
|
+
Connection: () => react_jsx_runtime.JSX.Element;
|
304
|
+
Maintenance: () => react_jsx_runtime.JSX.Element;
|
305
|
+
NotAuthorize: () => react_jsx_runtime.JSX.Element;
|
306
|
+
};
|
307
|
+
|
308
|
+
interface EmptyStateLayoutProps {
|
309
|
+
icon: React__default.ReactNode;
|
310
|
+
title: string;
|
311
|
+
description: string;
|
312
|
+
buttonText?: string;
|
313
|
+
onClick?: () => void;
|
314
|
+
maxW?: number;
|
315
|
+
}
|
316
|
+
declare const EmptyStateLayout: React__default.FC<EmptyStateLayoutProps>;
|
317
|
+
|
298
318
|
interface InputAddonProps {
|
299
319
|
children: React__default.ReactNode;
|
300
320
|
}
|
@@ -369,6 +389,7 @@ interface NavItemProps extends LinkProps, PropsWithChildren {
|
|
369
389
|
isActive?: boolean;
|
370
390
|
isChild?: boolean;
|
371
391
|
isDisabled?: boolean;
|
392
|
+
'data-test-id'?: string;
|
372
393
|
}
|
373
394
|
declare const NavItem: {
|
374
395
|
({ children, isActive, isChild, isDisabled, ...props }: NavItemProps): react_jsx_runtime.JSX.Element;
|
@@ -377,6 +398,7 @@ declare const NavItem: {
|
|
377
398
|
isActive: boolean;
|
378
399
|
isChild: boolean;
|
379
400
|
isDisabled: boolean;
|
401
|
+
'data-test-id': undefined;
|
380
402
|
};
|
381
403
|
};
|
382
404
|
|
@@ -535,6 +557,55 @@ interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<
|
|
535
557
|
}
|
536
558
|
declare const SelectCheckbox: <T, IsMulti extends boolean = boolean>(props: SelectWithCheckboxBaseProps<OptionGroup<T>, IsMulti>) => react_jsx_runtime.JSX.Element;
|
537
559
|
|
560
|
+
interface SidebarProps extends BoxProps {
|
561
|
+
isCollapse: boolean;
|
562
|
+
}
|
563
|
+
declare const Sidebar: {
|
564
|
+
({ isCollapse, children, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
565
|
+
displayName: string;
|
566
|
+
};
|
567
|
+
|
568
|
+
interface SidebarHeaderProps {
|
569
|
+
isCollapse: boolean;
|
570
|
+
setCollapse: (k: boolean) => void;
|
571
|
+
}
|
572
|
+
declare const SidebarHeader: ({ isCollapse, setCollapse }: SidebarHeaderProps) => react_jsx_runtime.JSX.Element;
|
573
|
+
|
574
|
+
type SubMenuItem = {
|
575
|
+
type: string;
|
576
|
+
icon?: string | null;
|
577
|
+
navLink: string;
|
578
|
+
navHost: string;
|
579
|
+
title: string;
|
580
|
+
id: string;
|
581
|
+
};
|
582
|
+
type MenuItem = {
|
583
|
+
id: string;
|
584
|
+
icon?: string | null;
|
585
|
+
navLink: string;
|
586
|
+
navHost?: string;
|
587
|
+
title: string;
|
588
|
+
type: string;
|
589
|
+
children: SubMenuItem[];
|
590
|
+
};
|
591
|
+
|
592
|
+
interface SidebarMenuProps {
|
593
|
+
menu: MenuItem[];
|
594
|
+
isCollapse: boolean;
|
595
|
+
active: string | undefined;
|
596
|
+
setActive: (active: string) => void;
|
597
|
+
itemStyles?: NavItemProps;
|
598
|
+
mappingIcon?: Map<string, JSX.Element>;
|
599
|
+
}
|
600
|
+
declare const SidebarMenu: {
|
601
|
+
({ menu, isCollapse, mappingIcon, itemStyles, setActive, active }: SidebarMenuProps): react_jsx_runtime.JSX.Element;
|
602
|
+
displayName: string;
|
603
|
+
defaultProps: {
|
604
|
+
itemStyles: undefined;
|
605
|
+
mappingIcon: undefined;
|
606
|
+
};
|
607
|
+
};
|
608
|
+
|
538
609
|
interface SwitchProps extends Omit<UseCheckboxProps, 'isIndeterminate'>, Omit<HTMLChakraProps$1<'label'>, keyof UseCheckboxProps>, ThemingProps$1<'Switch'> {
|
539
610
|
/**
|
540
611
|
* The spacing between the switch and its label text
|
@@ -595,4 +666,4 @@ declare const ProviderContext: React__default.Context<ProviderContextObject>;
|
|
595
666
|
declare const useInternalUI: () => ProviderContextObject;
|
596
667
|
declare const Provider: FC<ProviderProps>;
|
597
668
|
|
598
|
-
export { AccordionEye, AccordionIndicator, Alert, AlertAction, type AlertActionProps, AlertClose, type AlertCloseProps, AlertDescription, type AlertDescriptionProps, AlertIcon, type AlertIconProps, type AlertProps, type AlertStatus, AlertTitle, type AlertTitleProps, Anchor, type AnchorProps, Badge, type BadgeProps, BreadCrumb, type BreadCrumbParentProps, type BreadCrumbProps, Button, type ButtonProps, CHECKBOX_STATE, CardCustom as Card, type CardProps, CheckboxComponent as Checkbox, type CheckboxComponentProps, CheckboxGroupComponent as CheckboxGroup, type CheckboxGroupComponentProps, Chips, type ChipsProps, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Navigation as MainMenu, ModalBackButton, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, type MultiDatePickerMonthProps, NavItem, type NavItemProps, NavigationBar, type NavigationBarProps, type NavigationProps, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, type Props, Provider, ProviderContext, Radio, RadioGroup, type RadioGroupComponentProps, type RadioProps, Rating, type RatingProps, Select, SelectAsync, SelectAsyncCreatable, type SelectAsyncCreatableProps, type SelectAsyncProps, SelectCheckbox as SelectCheckBox, SelectCreatable, type SelectCreatableProps, type SelectProps, type SelectWithCheckboxBaseProps, Switch, type SwitchProps, Tab, type TableStyleProps, type TextAreaProps, TextareaField, type Theme, Uploader, type UploaderProps, type UploaderState, getSelectAllCheckboxState, getTheme, theme, useAlertStyles, useDataTable, useFetcher, useInternalUI };
|
669
|
+
export { AccordionEye, AccordionIndicator, Alert, AlertAction, type AlertActionProps, AlertClose, type AlertCloseProps, AlertDescription, type AlertDescriptionProps, AlertIcon, type AlertIconProps, type AlertProps, type AlertStatus, AlertTitle, type AlertTitleProps, Anchor, type AnchorProps, Badge, type BadgeProps, BreadCrumb, type BreadCrumbParentProps, type BreadCrumbProps, Button, type ButtonProps, CHECKBOX_STATE, CardCustom as Card, type CardProps, CheckboxComponent as Checkbox, type CheckboxComponentProps, CheckboxGroupComponent as CheckboxGroup, type CheckboxGroupComponentProps, Chips, type ChipsProps, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, EmptyState, EmptyStateLayout, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Navigation as MainMenu, ModalBackButton, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, type MultiDatePickerMonthProps, NavItem, type NavItemProps, NavigationBar, type NavigationBarProps, type NavigationProps, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, type Props, Provider, ProviderContext, Radio, RadioGroup, type RadioGroupComponentProps, type RadioProps, Rating, type RatingProps, Select, SelectAsync, SelectAsyncCreatable, type SelectAsyncCreatableProps, type SelectAsyncProps, SelectCheckbox as SelectCheckBox, SelectCreatable, type SelectCreatableProps, type SelectProps, type SelectWithCheckboxBaseProps, Sidebar, SidebarHeader, type SidebarHeaderProps, SidebarMenu, type SidebarMenuProps, type SidebarProps, Switch, type SwitchProps, Tab, type TableStyleProps, type TextAreaProps, TextareaField, type Theme, Uploader, type UploaderProps, type UploaderState, getSelectAllCheckboxState, getTheme, theme, useAlertStyles, useDataTable, useFetcher, useInternalUI };
|
package/dist/index.d.ts
CHANGED
@@ -295,6 +295,26 @@ interface DialogProps extends Omit<ModalProps, 'children'> {
|
|
295
295
|
}
|
296
296
|
declare const Dialog: React__default.FC<DialogProps>;
|
297
297
|
|
298
|
+
declare const EmptyState: {
|
299
|
+
(): react_jsx_runtime.JSX.Element;
|
300
|
+
Page: () => react_jsx_runtime.JSX.Element;
|
301
|
+
Filter: () => react_jsx_runtime.JSX.Element;
|
302
|
+
Search: () => react_jsx_runtime.JSX.Element;
|
303
|
+
Connection: () => react_jsx_runtime.JSX.Element;
|
304
|
+
Maintenance: () => react_jsx_runtime.JSX.Element;
|
305
|
+
NotAuthorize: () => react_jsx_runtime.JSX.Element;
|
306
|
+
};
|
307
|
+
|
308
|
+
interface EmptyStateLayoutProps {
|
309
|
+
icon: React__default.ReactNode;
|
310
|
+
title: string;
|
311
|
+
description: string;
|
312
|
+
buttonText?: string;
|
313
|
+
onClick?: () => void;
|
314
|
+
maxW?: number;
|
315
|
+
}
|
316
|
+
declare const EmptyStateLayout: React__default.FC<EmptyStateLayoutProps>;
|
317
|
+
|
298
318
|
interface InputAddonProps {
|
299
319
|
children: React__default.ReactNode;
|
300
320
|
}
|
@@ -369,6 +389,7 @@ interface NavItemProps extends LinkProps, PropsWithChildren {
|
|
369
389
|
isActive?: boolean;
|
370
390
|
isChild?: boolean;
|
371
391
|
isDisabled?: boolean;
|
392
|
+
'data-test-id'?: string;
|
372
393
|
}
|
373
394
|
declare const NavItem: {
|
374
395
|
({ children, isActive, isChild, isDisabled, ...props }: NavItemProps): react_jsx_runtime.JSX.Element;
|
@@ -377,6 +398,7 @@ declare const NavItem: {
|
|
377
398
|
isActive: boolean;
|
378
399
|
isChild: boolean;
|
379
400
|
isDisabled: boolean;
|
401
|
+
'data-test-id': undefined;
|
380
402
|
};
|
381
403
|
};
|
382
404
|
|
@@ -535,6 +557,55 @@ interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<
|
|
535
557
|
}
|
536
558
|
declare const SelectCheckbox: <T, IsMulti extends boolean = boolean>(props: SelectWithCheckboxBaseProps<OptionGroup<T>, IsMulti>) => react_jsx_runtime.JSX.Element;
|
537
559
|
|
560
|
+
interface SidebarProps extends BoxProps {
|
561
|
+
isCollapse: boolean;
|
562
|
+
}
|
563
|
+
declare const Sidebar: {
|
564
|
+
({ isCollapse, children, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
565
|
+
displayName: string;
|
566
|
+
};
|
567
|
+
|
568
|
+
interface SidebarHeaderProps {
|
569
|
+
isCollapse: boolean;
|
570
|
+
setCollapse: (k: boolean) => void;
|
571
|
+
}
|
572
|
+
declare const SidebarHeader: ({ isCollapse, setCollapse }: SidebarHeaderProps) => react_jsx_runtime.JSX.Element;
|
573
|
+
|
574
|
+
type SubMenuItem = {
|
575
|
+
type: string;
|
576
|
+
icon?: string | null;
|
577
|
+
navLink: string;
|
578
|
+
navHost: string;
|
579
|
+
title: string;
|
580
|
+
id: string;
|
581
|
+
};
|
582
|
+
type MenuItem = {
|
583
|
+
id: string;
|
584
|
+
icon?: string | null;
|
585
|
+
navLink: string;
|
586
|
+
navHost?: string;
|
587
|
+
title: string;
|
588
|
+
type: string;
|
589
|
+
children: SubMenuItem[];
|
590
|
+
};
|
591
|
+
|
592
|
+
interface SidebarMenuProps {
|
593
|
+
menu: MenuItem[];
|
594
|
+
isCollapse: boolean;
|
595
|
+
active: string | undefined;
|
596
|
+
setActive: (active: string) => void;
|
597
|
+
itemStyles?: NavItemProps;
|
598
|
+
mappingIcon?: Map<string, JSX.Element>;
|
599
|
+
}
|
600
|
+
declare const SidebarMenu: {
|
601
|
+
({ menu, isCollapse, mappingIcon, itemStyles, setActive, active }: SidebarMenuProps): react_jsx_runtime.JSX.Element;
|
602
|
+
displayName: string;
|
603
|
+
defaultProps: {
|
604
|
+
itemStyles: undefined;
|
605
|
+
mappingIcon: undefined;
|
606
|
+
};
|
607
|
+
};
|
608
|
+
|
538
609
|
interface SwitchProps extends Omit<UseCheckboxProps, 'isIndeterminate'>, Omit<HTMLChakraProps$1<'label'>, keyof UseCheckboxProps>, ThemingProps$1<'Switch'> {
|
539
610
|
/**
|
540
611
|
* The spacing between the switch and its label text
|
@@ -595,4 +666,4 @@ declare const ProviderContext: React__default.Context<ProviderContextObject>;
|
|
595
666
|
declare const useInternalUI: () => ProviderContextObject;
|
596
667
|
declare const Provider: FC<ProviderProps>;
|
597
668
|
|
598
|
-
export { AccordionEye, AccordionIndicator, Alert, AlertAction, type AlertActionProps, AlertClose, type AlertCloseProps, AlertDescription, type AlertDescriptionProps, AlertIcon, type AlertIconProps, type AlertProps, type AlertStatus, AlertTitle, type AlertTitleProps, Anchor, type AnchorProps, Badge, type BadgeProps, BreadCrumb, type BreadCrumbParentProps, type BreadCrumbProps, Button, type ButtonProps, CHECKBOX_STATE, CardCustom as Card, type CardProps, CheckboxComponent as Checkbox, type CheckboxComponentProps, CheckboxGroupComponent as CheckboxGroup, type CheckboxGroupComponentProps, Chips, type ChipsProps, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Navigation as MainMenu, ModalBackButton, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, type MultiDatePickerMonthProps, NavItem, type NavItemProps, NavigationBar, type NavigationBarProps, type NavigationProps, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, type Props, Provider, ProviderContext, Radio, RadioGroup, type RadioGroupComponentProps, type RadioProps, Rating, type RatingProps, Select, SelectAsync, SelectAsyncCreatable, type SelectAsyncCreatableProps, type SelectAsyncProps, SelectCheckbox as SelectCheckBox, SelectCreatable, type SelectCreatableProps, type SelectProps, type SelectWithCheckboxBaseProps, Switch, type SwitchProps, Tab, type TableStyleProps, type TextAreaProps, TextareaField, type Theme, Uploader, type UploaderProps, type UploaderState, getSelectAllCheckboxState, getTheme, theme, useAlertStyles, useDataTable, useFetcher, useInternalUI };
|
669
|
+
export { AccordionEye, AccordionIndicator, Alert, AlertAction, type AlertActionProps, AlertClose, type AlertCloseProps, AlertDescription, type AlertDescriptionProps, AlertIcon, type AlertIconProps, type AlertProps, type AlertStatus, AlertTitle, type AlertTitleProps, Anchor, type AnchorProps, Badge, type BadgeProps, BreadCrumb, type BreadCrumbParentProps, type BreadCrumbProps, Button, type ButtonProps, CHECKBOX_STATE, CardCustom as Card, type CardProps, CheckboxComponent as Checkbox, type CheckboxComponentProps, CheckboxGroupComponent as CheckboxGroup, type CheckboxGroupComponentProps, Chips, type ChipsProps, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, EmptyState, EmptyStateLayout, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Navigation as MainMenu, ModalBackButton, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, type MultiDatePickerMonthProps, NavItem, type NavItemProps, NavigationBar, type NavigationBarProps, type NavigationProps, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, type Props, Provider, ProviderContext, Radio, RadioGroup, type RadioGroupComponentProps, type RadioProps, Rating, type RatingProps, Select, SelectAsync, SelectAsyncCreatable, type SelectAsyncCreatableProps, type SelectAsyncProps, SelectCheckbox as SelectCheckBox, SelectCreatable, type SelectCreatableProps, type SelectProps, type SelectWithCheckboxBaseProps, Sidebar, SidebarHeader, type SidebarHeaderProps, SidebarMenu, type SidebarMenuProps, type SidebarProps, Switch, type SwitchProps, Tab, type TableStyleProps, type TextAreaProps, TextareaField, type Theme, Uploader, type UploaderProps, type UploaderState, getSelectAllCheckboxState, getTheme, theme, useAlertStyles, useDataTable, useFetcher, useInternalUI };
|