@ctlyst.id/internal-ui 2.2.1 → 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 +73 -1
- package/dist/index.d.ts +73 -1
- package/dist/index.js +7942 -655
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7766 -458
- 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
|
}
|
@@ -339,6 +359,7 @@ type HeaderProps = BoxProps & {
|
|
339
359
|
hideEnv?: boolean;
|
340
360
|
urlLogo?: string;
|
341
361
|
profile?: React$1.ReactNode;
|
362
|
+
versionStyle?: BadgeProps$1;
|
342
363
|
};
|
343
364
|
declare const Header: React$1.FC<HeaderProps>;
|
344
365
|
|
@@ -368,6 +389,7 @@ interface NavItemProps extends LinkProps, PropsWithChildren {
|
|
368
389
|
isActive?: boolean;
|
369
390
|
isChild?: boolean;
|
370
391
|
isDisabled?: boolean;
|
392
|
+
'data-test-id'?: string;
|
371
393
|
}
|
372
394
|
declare const NavItem: {
|
373
395
|
({ children, isActive, isChild, isDisabled, ...props }: NavItemProps): react_jsx_runtime.JSX.Element;
|
@@ -376,6 +398,7 @@ declare const NavItem: {
|
|
376
398
|
isActive: boolean;
|
377
399
|
isChild: boolean;
|
378
400
|
isDisabled: boolean;
|
401
|
+
'data-test-id': undefined;
|
379
402
|
};
|
380
403
|
};
|
381
404
|
|
@@ -534,6 +557,55 @@ interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<
|
|
534
557
|
}
|
535
558
|
declare const SelectCheckbox: <T, IsMulti extends boolean = boolean>(props: SelectWithCheckboxBaseProps<OptionGroup<T>, IsMulti>) => react_jsx_runtime.JSX.Element;
|
536
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
|
+
|
537
609
|
interface SwitchProps extends Omit<UseCheckboxProps, 'isIndeterminate'>, Omit<HTMLChakraProps$1<'label'>, keyof UseCheckboxProps>, ThemingProps$1<'Switch'> {
|
538
610
|
/**
|
539
611
|
* The spacing between the switch and its label text
|
@@ -594,4 +666,4 @@ declare const ProviderContext: React__default.Context<ProviderContextObject>;
|
|
594
666
|
declare const useInternalUI: () => ProviderContextObject;
|
595
667
|
declare const Provider: FC<ProviderProps>;
|
596
668
|
|
597
|
-
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
|
}
|
@@ -339,6 +359,7 @@ type HeaderProps = BoxProps & {
|
|
339
359
|
hideEnv?: boolean;
|
340
360
|
urlLogo?: string;
|
341
361
|
profile?: React$1.ReactNode;
|
362
|
+
versionStyle?: BadgeProps$1;
|
342
363
|
};
|
343
364
|
declare const Header: React$1.FC<HeaderProps>;
|
344
365
|
|
@@ -368,6 +389,7 @@ interface NavItemProps extends LinkProps, PropsWithChildren {
|
|
368
389
|
isActive?: boolean;
|
369
390
|
isChild?: boolean;
|
370
391
|
isDisabled?: boolean;
|
392
|
+
'data-test-id'?: string;
|
371
393
|
}
|
372
394
|
declare const NavItem: {
|
373
395
|
({ children, isActive, isChild, isDisabled, ...props }: NavItemProps): react_jsx_runtime.JSX.Element;
|
@@ -376,6 +398,7 @@ declare const NavItem: {
|
|
376
398
|
isActive: boolean;
|
377
399
|
isChild: boolean;
|
378
400
|
isDisabled: boolean;
|
401
|
+
'data-test-id': undefined;
|
379
402
|
};
|
380
403
|
};
|
381
404
|
|
@@ -534,6 +557,55 @@ interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<
|
|
534
557
|
}
|
535
558
|
declare const SelectCheckbox: <T, IsMulti extends boolean = boolean>(props: SelectWithCheckboxBaseProps<OptionGroup<T>, IsMulti>) => react_jsx_runtime.JSX.Element;
|
536
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
|
+
|
537
609
|
interface SwitchProps extends Omit<UseCheckboxProps, 'isIndeterminate'>, Omit<HTMLChakraProps$1<'label'>, keyof UseCheckboxProps>, ThemingProps$1<'Switch'> {
|
538
610
|
/**
|
539
611
|
* The spacing between the switch and its label text
|
@@ -594,4 +666,4 @@ declare const ProviderContext: React__default.Context<ProviderContextObject>;
|
|
594
666
|
declare const useInternalUI: () => ProviderContextObject;
|
595
667
|
declare const Provider: FC<ProviderProps>;
|
596
668
|
|
597
|
-
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 };
|