@ctlyst.id/internal-ui 3.2.2 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +379 -257
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +271 -152
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -4
- package/dist/index.css +0 -50
- package/dist/index.css.map +0 -1
- package/dist/poppins-latin-400-normal-SFWTNBQB.woff2 +0 -0
- package/dist/poppins-latin-400-normal-ZPTYLX7I.woff +0 -0
- package/dist/poppins-latin-ext-400-normal-7PFKV6Y5.woff +0 -0
- package/dist/poppins-latin-ext-400-normal-K3FV5HAI.woff2 +0 -0
package/dist/index.d.mts
CHANGED
@@ -170,6 +170,7 @@ interface Props {
|
|
170
170
|
leftHelperText?: string | ReactNode;
|
171
171
|
rightHelperText?: string | ReactNode;
|
172
172
|
isRequired?: boolean;
|
173
|
+
isDisabled?: boolean;
|
173
174
|
boxProps?: FormControlProps;
|
174
175
|
}
|
175
176
|
type FieldProps<T = unknown> = Props & T;
|
@@ -595,7 +596,7 @@ declare const CHECKBOX_STATE: {
|
|
595
596
|
readonly INDETERMINATE: 1;
|
596
597
|
readonly CHECKED: 2;
|
597
598
|
};
|
598
|
-
declare const getSelectAllCheckboxState: (totalSelected: number, totalOption: number) => 0 |
|
599
|
+
declare const getSelectAllCheckboxState: (totalSelected: number, totalOption: number) => 0 | 1 | 2;
|
599
600
|
interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<never>, IsMulti extends boolean = boolean> extends Props$1<T, IsMulti> {
|
600
601
|
isError?: boolean;
|
601
602
|
}
|
@@ -709,6 +710,36 @@ type TabProps = TabProps$1 & {
|
|
709
710
|
};
|
710
711
|
declare const Tab: _chakra_ui_react.ComponentWithAs<"button", TabProps>;
|
711
712
|
|
713
|
+
type TimeOptions = {
|
714
|
+
date?: Date;
|
715
|
+
hour12?: boolean;
|
716
|
+
digits?: 'numeric' | '2-digit';
|
717
|
+
wrapAround?: boolean;
|
718
|
+
snapToStep?: boolean;
|
719
|
+
};
|
720
|
+
declare class Time {
|
721
|
+
hours: number;
|
722
|
+
minutes: number;
|
723
|
+
seconds: number;
|
724
|
+
constructor(hours?: number, minutes?: number, seconds?: number);
|
725
|
+
toString(): string;
|
726
|
+
}
|
727
|
+
interface TimeInputProps {
|
728
|
+
config?: TimeOptions;
|
729
|
+
value?: string;
|
730
|
+
seconds?: boolean;
|
731
|
+
onChangeTime?: (time: Time) => void;
|
732
|
+
isDisabled?: boolean;
|
733
|
+
isRequired?: boolean;
|
734
|
+
label?: string;
|
735
|
+
isError?: boolean;
|
736
|
+
errorMessage?: string;
|
737
|
+
isSuccess?: boolean;
|
738
|
+
boxProps?: BoxProps;
|
739
|
+
addOnRight?: React.ReactNode;
|
740
|
+
}
|
741
|
+
declare const TimeInput: _chakra_ui_react.ComponentWithAs<"div", TimeInputProps>;
|
742
|
+
|
712
743
|
interface CustomToastOptions extends Omit<ToastOptions, 'icon'> {
|
713
744
|
icon?: ToastIcon;
|
714
745
|
link?: {
|
@@ -854,4 +885,4 @@ declare const ProviderContext: React__default.Context<ProviderContextObject>;
|
|
854
885
|
declare const useInternalUI: () => ProviderContextObject;
|
855
886
|
declare const Provider: FC<ProviderProps>;
|
856
887
|
|
857
|
-
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, ClearIndicator, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, type DisabledRowData, DropdownIndicator, EmptyState, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Logo, type LogoProps, Navigation as MainMenu, ModalBackButton, MultiDatePickerMonth, type MultiDatePickerMonthProps, MultiValue, MultiValueRemove, NavItem, type NavItemProps, Navbar, type NavbarProps, NavigationBar, type NavigationBarProps, type NavigationProps, NoOptionsMessage, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, Profile, type ProfileProps, 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, Tooltip, type TooltipProps, Uploader, type UploaderProps, Version, type VersionProps, VoilaLogo, XMSLogo, createExtendTheme, getSelectAllCheckboxState, getTheme, isCellDisabled, selectStyles, theme, themeSelect, useAlertStyles, useDataTable, useFetcher, useInternalUI, useToast };
|
888
|
+
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, ClearIndicator, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, type DisabledRowData, DropdownIndicator, EmptyState, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Logo, type LogoProps, Navigation as MainMenu, ModalBackButton, MultiDatePickerMonth, type MultiDatePickerMonthProps, MultiValue, MultiValueRemove, NavItem, type NavItemProps, Navbar, type NavbarProps, NavigationBar, type NavigationBarProps, type NavigationProps, NoOptionsMessage, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, Profile, type ProfileProps, 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, Time, TimeInput, type TimeInputProps, type TimeOptions, Tooltip, type TooltipProps, Uploader, type UploaderProps, Version, type VersionProps, VoilaLogo, XMSLogo, createExtendTheme, getSelectAllCheckboxState, getTheme, isCellDisabled, selectStyles, theme, themeSelect, useAlertStyles, useDataTable, useFetcher, useInternalUI, useToast };
|
package/dist/index.d.ts
CHANGED
@@ -170,6 +170,7 @@ interface Props {
|
|
170
170
|
leftHelperText?: string | ReactNode;
|
171
171
|
rightHelperText?: string | ReactNode;
|
172
172
|
isRequired?: boolean;
|
173
|
+
isDisabled?: boolean;
|
173
174
|
boxProps?: FormControlProps;
|
174
175
|
}
|
175
176
|
type FieldProps<T = unknown> = Props & T;
|
@@ -595,7 +596,7 @@ declare const CHECKBOX_STATE: {
|
|
595
596
|
readonly INDETERMINATE: 1;
|
596
597
|
readonly CHECKED: 2;
|
597
598
|
};
|
598
|
-
declare const getSelectAllCheckboxState: (totalSelected: number, totalOption: number) => 0 |
|
599
|
+
declare const getSelectAllCheckboxState: (totalSelected: number, totalOption: number) => 0 | 1 | 2;
|
599
600
|
interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<never>, IsMulti extends boolean = boolean> extends Props$1<T, IsMulti> {
|
600
601
|
isError?: boolean;
|
601
602
|
}
|
@@ -709,6 +710,36 @@ type TabProps = TabProps$1 & {
|
|
709
710
|
};
|
710
711
|
declare const Tab: _chakra_ui_react.ComponentWithAs<"button", TabProps>;
|
711
712
|
|
713
|
+
type TimeOptions = {
|
714
|
+
date?: Date;
|
715
|
+
hour12?: boolean;
|
716
|
+
digits?: 'numeric' | '2-digit';
|
717
|
+
wrapAround?: boolean;
|
718
|
+
snapToStep?: boolean;
|
719
|
+
};
|
720
|
+
declare class Time {
|
721
|
+
hours: number;
|
722
|
+
minutes: number;
|
723
|
+
seconds: number;
|
724
|
+
constructor(hours?: number, minutes?: number, seconds?: number);
|
725
|
+
toString(): string;
|
726
|
+
}
|
727
|
+
interface TimeInputProps {
|
728
|
+
config?: TimeOptions;
|
729
|
+
value?: string;
|
730
|
+
seconds?: boolean;
|
731
|
+
onChangeTime?: (time: Time) => void;
|
732
|
+
isDisabled?: boolean;
|
733
|
+
isRequired?: boolean;
|
734
|
+
label?: string;
|
735
|
+
isError?: boolean;
|
736
|
+
errorMessage?: string;
|
737
|
+
isSuccess?: boolean;
|
738
|
+
boxProps?: BoxProps;
|
739
|
+
addOnRight?: React.ReactNode;
|
740
|
+
}
|
741
|
+
declare const TimeInput: _chakra_ui_react.ComponentWithAs<"div", TimeInputProps>;
|
742
|
+
|
712
743
|
interface CustomToastOptions extends Omit<ToastOptions, 'icon'> {
|
713
744
|
icon?: ToastIcon;
|
714
745
|
link?: {
|
@@ -854,4 +885,4 @@ declare const ProviderContext: React__default.Context<ProviderContextObject>;
|
|
854
885
|
declare const useInternalUI: () => ProviderContextObject;
|
855
886
|
declare const Provider: FC<ProviderProps>;
|
856
887
|
|
857
|
-
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, ClearIndicator, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, type DisabledRowData, DropdownIndicator, EmptyState, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Logo, type LogoProps, Navigation as MainMenu, ModalBackButton, MultiDatePickerMonth, type MultiDatePickerMonthProps, MultiValue, MultiValueRemove, NavItem, type NavItemProps, Navbar, type NavbarProps, NavigationBar, type NavigationBarProps, type NavigationProps, NoOptionsMessage, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, Profile, type ProfileProps, 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, Tooltip, type TooltipProps, Uploader, type UploaderProps, Version, type VersionProps, VoilaLogo, XMSLogo, createExtendTheme, getSelectAllCheckboxState, getTheme, isCellDisabled, selectStyles, theme, themeSelect, useAlertStyles, useDataTable, useFetcher, useInternalUI, useToast };
|
888
|
+
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, ClearIndicator, Counter, type CustomLoaderProps, _default as DataTable, type DataTableProps, type DataTableRefs, DatePickerMonth, type DatePickerMonthProps, Datepicker, type DatepickerProps, Dialog, type DisabledRowData, DropdownIndicator, EmptyState, type Environment, Field, type FieldProps, Header, type HeaderDataProps, type HeaderProps, InputAddonLeft, InputAddonRight, InputField, type InputFieldProps, Loader, type LoaderProps, Logo, type LogoProps, Navigation as MainMenu, ModalBackButton, MultiDatePickerMonth, type MultiDatePickerMonthProps, MultiValue, MultiValueRemove, NavItem, type NavItemProps, Navbar, type NavbarProps, NavigationBar, type NavigationBarProps, type NavigationProps, NoOptionsMessage, type OptionGroup, type OptionMultiGroup, type OptionsGroup, Pagination, PaginationDetail, type PaginationDetailProps, PaginationFilter, type PaginationFilterProps, type PaginationProps, Profile, type ProfileProps, 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, Time, TimeInput, type TimeInputProps, type TimeOptions, Tooltip, type TooltipProps, Uploader, type UploaderProps, Version, type VersionProps, VoilaLogo, XMSLogo, createExtendTheme, getSelectAllCheckboxState, getTheme, isCellDisabled, selectStyles, theme, themeSelect, useAlertStyles, useDataTable, useFetcher, useInternalUI, useToast };
|