@sentio/ui-core 0.1.4 → 0.1.5

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
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { FC, ReactNode, SVGProps, MutableRefObject, ReactElement, CSSProperties } from 'react';
2
+ import react__default, { FC, ReactNode, SVGProps, MutableRefObject, ReactElement, CSSProperties, ElementType, FocusEvent, KeyboardEvent } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { LoaderHeightWidthProps } from 'react-spinners/helpers/props';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
@@ -12,17 +12,17 @@ export { LuSquareX as CloseSquareO, LuEye as EyeO, LuSquareMinus as MinusSquareO
12
12
  import { ColumnDef, ColumnResizeMode, Row, Cell, TableState } from '@tanstack/react-table';
13
13
  import BigDecimal from '@sentio/bigdecimal';
14
14
 
15
- interface Props$b {
15
+ interface Props$h {
16
16
  hint?: React.ReactNode;
17
17
  loading?: boolean;
18
18
  className?: string;
19
19
  width?: LoaderHeightWidthProps['width'];
20
20
  logo?: React.ReactNode;
21
21
  }
22
- declare function _BarLoading({ hint, loading, className, width, logo }: Props$b): react_jsx_runtime.JSX.Element | null;
22
+ declare function _BarLoading({ hint, loading, className, width, logo }: Props$h): react_jsx_runtime.JSX.Element | null;
23
23
  declare const BarLoading: react.MemoExoticComponent<typeof _BarLoading>;
24
24
 
25
- interface Props$a {
25
+ interface Props$g {
26
26
  loading?: boolean;
27
27
  children?: react__default.ReactNode;
28
28
  className?: string;
@@ -30,11 +30,11 @@ interface Props$a {
30
30
  showMask?: boolean;
31
31
  maskOpacity?: number;
32
32
  }
33
- declare const SpinLoading: react__default.ForwardRefExoticComponent<Props$a & react__default.RefAttributes<HTMLDivElement>>;
33
+ declare const SpinLoading: react__default.ForwardRefExoticComponent<Props$g & react__default.RefAttributes<HTMLDivElement>>;
34
34
 
35
35
  declare const CopyIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
36
36
  declare const CopySuccessIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
37
- interface Props$9 {
37
+ interface Props$f {
38
38
  text?: string | Function;
39
39
  size?: number;
40
40
  ml?: number;
@@ -44,7 +44,7 @@ interface Props$9 {
44
44
  className?: string;
45
45
  children?: ReactNode;
46
46
  }
47
- declare const CopyButton: FC<Props$9>;
47
+ declare const CopyButton: FC<Props$f>;
48
48
 
49
49
  declare const buttonClass: (props?: ({
50
50
  role?: "link" | "text" | "dashed" | "primary" | "secondary" | "tertiary" | "tertiarytext" | "custom" | null | undefined;
@@ -74,7 +74,7 @@ declare function Proccessing({ className, light }: {
74
74
  declare const NewButton: react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & react.RefAttributes<unknown>>;
75
75
 
76
76
  declare const BaseZIndexContext: react.Context<number>;
77
- interface Props$8 {
77
+ interface Props$e {
78
78
  title?: string | ReactElement;
79
79
  titleBorder?: boolean;
80
80
  footerBorder?: boolean;
@@ -96,13 +96,13 @@ interface Props$8 {
96
96
  zIndex?: number;
97
97
  mask?: 'normal' | 'light';
98
98
  }
99
- declare const BaseDialog: react.NamedExoticComponent<Props$8>;
99
+ declare const BaseDialog: react.NamedExoticComponent<Props$e>;
100
100
 
101
101
  /**
102
102
  * The differece between this and the PopoverTooltip.tsx is that this one pass mouse click event to the parent
103
103
  */
104
104
 
105
- interface Props$7 {
105
+ interface Props$d {
106
106
  text?: string | react__default.ReactNode;
107
107
  className?: string;
108
108
  buttonClassName?: string;
@@ -118,9 +118,9 @@ interface Props$7 {
118
118
  enableFadeAnimation?: boolean;
119
119
  animationDuration?: number;
120
120
  }
121
- declare const PopoverTooltip: FC<Props$7>;
121
+ declare const PopoverTooltip: FC<Props$d>;
122
122
 
123
- interface Props$6 {
123
+ interface Props$c {
124
124
  defaultOpen?: boolean;
125
125
  children?: ReactNode;
126
126
  title: string | ReactNode | ((open: boolean) => ReactNode);
@@ -129,7 +129,7 @@ interface Props$6 {
129
129
  iconClassName?: string;
130
130
  className?: string;
131
131
  }
132
- declare const DisclosurePanel: FC<Props$6>;
132
+ declare const DisclosurePanel: FC<Props$c>;
133
133
 
134
134
  interface CollapseProps {
135
135
  title: ReactNode | string;
@@ -151,7 +151,7 @@ type InputProps = UseFormRegisterReturn & {
151
151
  } & React.InputHTMLAttributes<HTMLInputElement>;
152
152
  declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
153
153
 
154
- interface Props$5<T> {
154
+ interface Props$b<T> {
155
155
  value?: T;
156
156
  onChange?: (v: T) => void;
157
157
  label?: string;
@@ -163,7 +163,7 @@ interface Props$5<T> {
163
163
  }[];
164
164
  vertical?: boolean;
165
165
  }
166
- declare function RadioSelect<T>({ value, onChange, label, labelClassName, options, vertical, containerClassName }: Props$5<T>): react_jsx_runtime.JSX.Element;
166
+ declare function RadioSelect<T>({ value, onChange, label, labelClassName, options, vertical, containerClassName }: Props$b<T>): react_jsx_runtime.JSX.Element;
167
167
 
168
168
  interface SwitchProps {
169
169
  checked?: boolean;
@@ -222,7 +222,7 @@ type DataNode = FieldDataNode<{
222
222
  type KeyType = string | number;
223
223
  declare const SUFFIX_NODE_KEY = "selectedKey_after";
224
224
  declare const ROOT_KEY = "root";
225
- interface Props$4 {
225
+ interface Props$a {
226
226
  data?: DataNode[];
227
227
  defaultExpandAll?: boolean;
228
228
  virtual?: boolean;
@@ -238,7 +238,7 @@ interface Props$4 {
238
238
  scrollIntoView?: boolean;
239
239
  isRootKey?: (v: KeyType) => boolean;
240
240
  }
241
- declare const FlatTree: (props: Props$4) => react_jsx_runtime.JSX.Element;
241
+ declare const FlatTree: (props: Props$a) => react_jsx_runtime.JSX.Element;
242
242
 
243
243
  interface LinkifyTextProps {
244
244
  text: any;
@@ -260,7 +260,7 @@ declare enum StatusRole {
260
260
  Disabled = "disabled",
261
261
  Info = "info"
262
262
  }
263
- interface Props$3 {
263
+ interface Props$9 {
264
264
  status: string | ReactNode;
265
265
  className?: string;
266
266
  colorClasses?: string;
@@ -268,7 +268,7 @@ interface Props$3 {
268
268
  bubble?: boolean;
269
269
  role?: string | StatusRole;
270
270
  }
271
- declare function StatusBadge({ status, className, colorClasses: _colorClasses, roundClasses, bubble, role }: Props$3): react_jsx_runtime.JSX.Element;
271
+ declare function StatusBadge({ status, className, colorClasses: _colorClasses, roundClasses, bubble, role }: Props$9): react_jsx_runtime.JSX.Element;
272
272
 
273
273
  interface HeaderToolsToggleButtonProps {
274
274
  isOpen: boolean;
@@ -283,6 +283,117 @@ interface HeaderToolsContentProps {
283
283
  }
284
284
  declare const HeaderToolsContent: FC<HeaderToolsContentProps>;
285
285
 
286
+ interface Props$8 {
287
+ title?: string | ReactNode;
288
+ open: boolean;
289
+ onClose: () => void;
290
+ children?: ReactNode;
291
+ size?: '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | string;
292
+ headAddon?: ReactNode;
293
+ triggerClose?: 'all' | 'button';
294
+ noAnimation?: boolean;
295
+ }
296
+ declare function SlideOver({ title, open, onClose, children, size, headAddon, triggerClose, noAnimation }: Props$8): react_jsx_runtime.JSX.Element;
297
+
298
+ interface Props$7 {
299
+ message?: string;
300
+ title: string;
301
+ open: boolean;
302
+ onClose: (open: boolean) => void;
303
+ onConfirm: () => void | Promise<void>;
304
+ disabled?: boolean;
305
+ buttonLabel?: string;
306
+ type: 'danger' | 'question';
307
+ buttons?: ReactNode;
308
+ children?: ReactNode;
309
+ }
310
+ declare function ConfirmDialog({ message, title, open, onClose, onConfirm, buttonLabel, type, buttons, children, disabled }: Props$7): react_jsx_runtime.JSX.Element;
311
+
312
+ declare const getTabClassName: ({ selected }: {
313
+ selected: boolean;
314
+ }) => string;
315
+ declare const Group: ({ children, className, onChange, defaultIndex, selectedIndex }: {
316
+ children: react__default.ReactNode;
317
+ className?: string;
318
+ onChange?: (index: number) => void;
319
+ defaultIndex?: number;
320
+ selectedIndex?: number;
321
+ }) => react_jsx_runtime.JSX.Element;
322
+ declare const List: ({ tabs, disabledTabs, className, noBorder, children }: {
323
+ tabs: react__default.ReactNode[];
324
+ disabledTabs?: number[];
325
+ className?: string;
326
+ noBorder?: boolean;
327
+ children?: react__default.ReactNode;
328
+ }) => react_jsx_runtime.JSX.Element;
329
+ declare const Panels: ElementType;
330
+ declare const Panel: (props: any) => react_jsx_runtime.JSX.Element;
331
+
332
+ type Props$6 = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
333
+ onChange: (value: string) => void;
334
+ value: string;
335
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
336
+ onKeydown?: (e: KeyboardEvent<HTMLInputElement>) => void;
337
+ placeholder?: string;
338
+ ref?: React.Ref<HTMLInputElement>;
339
+ addonButton?: React.ReactNode;
340
+ };
341
+ declare const SearchInput: react.ForwardRefExoticComponent<Omit<Props$6, "ref"> & react.RefAttributes<HTMLInputElement>>;
342
+
343
+ interface Props$5 {
344
+ checked?: boolean;
345
+ onChange?: (v: boolean) => void;
346
+ label?: string;
347
+ labelNode?: ReactNode;
348
+ id?: string;
349
+ name?: string;
350
+ disabled?: boolean;
351
+ inputProps?: any;
352
+ labelClassName?: string;
353
+ className?: string;
354
+ }
355
+ declare const Checkbox: ({ checked, onChange, label, labelNode, id, name, inputProps, disabled, labelClassName, className }: Props$5) => react_jsx_runtime.JSX.Element;
356
+
357
+ interface ProgressBarProps {
358
+ progress: number;
359
+ segments?: Record<number, string>;
360
+ gradient?: boolean;
361
+ upperTicks?: Record<number, ReactNode>;
362
+ lowerTicks?: Record<number, ReactNode>;
363
+ roundedFull?: boolean;
364
+ }
365
+ declare const ProgressBar: ({ progress, segments, gradient, upperTicks, lowerTicks, roundedFull }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
366
+
367
+ type DataType = {
368
+ key?: react__default.Key;
369
+ label?: ReactNode;
370
+ value?: any;
371
+ span?: number;
372
+ };
373
+ interface Props$4 {
374
+ data: DataType[];
375
+ labelClassName?: string;
376
+ labelStyle?: react__default.CSSProperties;
377
+ valueClassName?: string;
378
+ valueStyle?: react__default.CSSProperties;
379
+ className?: string;
380
+ trClassName?: string;
381
+ colon?: ReactNode;
382
+ renderLabel?: (item: DataType) => ReactNode;
383
+ renderValue?: (item: DataType) => ReactNode;
384
+ }
385
+ declare const Descriptions: (props: Props$4) => react_jsx_runtime.JSX.Element;
386
+
387
+ interface Props$3 {
388
+ show: boolean;
389
+ setShow: (show: boolean) => void;
390
+ title: string;
391
+ message: string;
392
+ type: 'success' | 'error' | 'warning' | 'info';
393
+ buttons?: () => ReactNode;
394
+ }
395
+ declare function Notification({ show, setShow, title, message, buttons, type }: Props$3): react_jsx_runtime.JSX.Element;
396
+
286
397
  interface Props$2 {
287
398
  data: any;
288
399
  columns: ColumnDef<any>[];
@@ -390,10 +501,10 @@ declare function useBoolean(defaultValue?: boolean): {
390
501
  toggle: () => void;
391
502
  };
392
503
 
504
+ declare const useDarkMode: () => boolean;
505
+
393
506
  declare const SvgFolderContext: react.Context<string>;
394
507
  declare const useDetectExtenstion: () => boolean;
395
- declare const DarkModeContext: react.Context<boolean>;
396
- declare const useDarkMode: () => boolean;
397
508
 
398
509
  declare const NavSizeContext: react.Context<{
399
510
  small: boolean;
@@ -402,4 +513,4 @@ declare const NavSizeContext: react.Context<{
402
513
  setShowLabel: (showLabel: boolean) => void;
403
514
  }>;
404
515
 
405
- export { BD, BarLoading, BaseDialog, BaseZIndexContext, NewButton as Button, type ButtonProps, COLOR_MAP, Collapse, CopyButton, CopyIcon, CopySuccessIcon, DarkModeContext, type DataNode, DeleteIcon, DisclosurePanel, Empty, FlatTree, HeaderToolsContent, HeaderToolsToggleButton, type IMenuItem, Input, LinkifyText, MenuContext, MenuItem, MoveLeftIcon, MoveRightIcon, NavSizeContext, type OnSelectMenuItem, PopoverTooltip, PopupMenuButton, Proccessing, ROOT_KEY, RadioSelect, RenameIcon, ResizeTable, SUFFIX_NODE_KEY, Select, type SelectProps, SpinLoading, StatusBadge, StatusRole, SubMenuButton, SvgFolderContext, Switch, type SwitchProps, buttonClass, getNumberWithDecimal, parseHex, useBoolean, useDarkMode, useDetectExtenstion, useMobile };
516
+ export { BD, BarLoading, BaseDialog, BaseZIndexContext, NewButton as Button, type ButtonProps, COLOR_MAP, Checkbox, Collapse, ConfirmDialog, CopyButton, CopyIcon, CopySuccessIcon, type DataNode, type DataType, DeleteIcon, Descriptions, DisclosurePanel, Empty, FlatTree, HeaderToolsContent, HeaderToolsToggleButton, type IMenuItem, Input, LinkifyText, MenuContext, MenuItem, MoveLeftIcon, MoveRightIcon, NavSizeContext, Notification, type OnSelectMenuItem, PopoverTooltip, PopupMenuButton, Proccessing, ProgressBar, ROOT_KEY, RadioSelect, RenameIcon, ResizeTable, SUFFIX_NODE_KEY, SearchInput, Select, type SelectProps, SlideOver, SpinLoading, StatusBadge, StatusRole, SubMenuButton, SvgFolderContext, Switch, type SwitchProps, Group as TabGroup, List as TabList, Panel as TabPanel, Panels as TabPanels, buttonClass, getNumberWithDecimal, getTabClassName, parseHex, useBoolean, useDarkMode, useDetectExtenstion, useMobile };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { FC, ReactNode, SVGProps, MutableRefObject, ReactElement, CSSProperties } from 'react';
2
+ import react__default, { FC, ReactNode, SVGProps, MutableRefObject, ReactElement, CSSProperties, ElementType, FocusEvent, KeyboardEvent } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { LoaderHeightWidthProps } from 'react-spinners/helpers/props';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
@@ -12,17 +12,17 @@ export { LuSquareX as CloseSquareO, LuEye as EyeO, LuSquareMinus as MinusSquareO
12
12
  import { ColumnDef, ColumnResizeMode, Row, Cell, TableState } from '@tanstack/react-table';
13
13
  import BigDecimal from '@sentio/bigdecimal';
14
14
 
15
- interface Props$b {
15
+ interface Props$h {
16
16
  hint?: React.ReactNode;
17
17
  loading?: boolean;
18
18
  className?: string;
19
19
  width?: LoaderHeightWidthProps['width'];
20
20
  logo?: React.ReactNode;
21
21
  }
22
- declare function _BarLoading({ hint, loading, className, width, logo }: Props$b): react_jsx_runtime.JSX.Element | null;
22
+ declare function _BarLoading({ hint, loading, className, width, logo }: Props$h): react_jsx_runtime.JSX.Element | null;
23
23
  declare const BarLoading: react.MemoExoticComponent<typeof _BarLoading>;
24
24
 
25
- interface Props$a {
25
+ interface Props$g {
26
26
  loading?: boolean;
27
27
  children?: react__default.ReactNode;
28
28
  className?: string;
@@ -30,11 +30,11 @@ interface Props$a {
30
30
  showMask?: boolean;
31
31
  maskOpacity?: number;
32
32
  }
33
- declare const SpinLoading: react__default.ForwardRefExoticComponent<Props$a & react__default.RefAttributes<HTMLDivElement>>;
33
+ declare const SpinLoading: react__default.ForwardRefExoticComponent<Props$g & react__default.RefAttributes<HTMLDivElement>>;
34
34
 
35
35
  declare const CopyIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
36
36
  declare const CopySuccessIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
37
- interface Props$9 {
37
+ interface Props$f {
38
38
  text?: string | Function;
39
39
  size?: number;
40
40
  ml?: number;
@@ -44,7 +44,7 @@ interface Props$9 {
44
44
  className?: string;
45
45
  children?: ReactNode;
46
46
  }
47
- declare const CopyButton: FC<Props$9>;
47
+ declare const CopyButton: FC<Props$f>;
48
48
 
49
49
  declare const buttonClass: (props?: ({
50
50
  role?: "link" | "text" | "dashed" | "primary" | "secondary" | "tertiary" | "tertiarytext" | "custom" | null | undefined;
@@ -74,7 +74,7 @@ declare function Proccessing({ className, light }: {
74
74
  declare const NewButton: react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & react.RefAttributes<unknown>>;
75
75
 
76
76
  declare const BaseZIndexContext: react.Context<number>;
77
- interface Props$8 {
77
+ interface Props$e {
78
78
  title?: string | ReactElement;
79
79
  titleBorder?: boolean;
80
80
  footerBorder?: boolean;
@@ -96,13 +96,13 @@ interface Props$8 {
96
96
  zIndex?: number;
97
97
  mask?: 'normal' | 'light';
98
98
  }
99
- declare const BaseDialog: react.NamedExoticComponent<Props$8>;
99
+ declare const BaseDialog: react.NamedExoticComponent<Props$e>;
100
100
 
101
101
  /**
102
102
  * The differece between this and the PopoverTooltip.tsx is that this one pass mouse click event to the parent
103
103
  */
104
104
 
105
- interface Props$7 {
105
+ interface Props$d {
106
106
  text?: string | react__default.ReactNode;
107
107
  className?: string;
108
108
  buttonClassName?: string;
@@ -118,9 +118,9 @@ interface Props$7 {
118
118
  enableFadeAnimation?: boolean;
119
119
  animationDuration?: number;
120
120
  }
121
- declare const PopoverTooltip: FC<Props$7>;
121
+ declare const PopoverTooltip: FC<Props$d>;
122
122
 
123
- interface Props$6 {
123
+ interface Props$c {
124
124
  defaultOpen?: boolean;
125
125
  children?: ReactNode;
126
126
  title: string | ReactNode | ((open: boolean) => ReactNode);
@@ -129,7 +129,7 @@ interface Props$6 {
129
129
  iconClassName?: string;
130
130
  className?: string;
131
131
  }
132
- declare const DisclosurePanel: FC<Props$6>;
132
+ declare const DisclosurePanel: FC<Props$c>;
133
133
 
134
134
  interface CollapseProps {
135
135
  title: ReactNode | string;
@@ -151,7 +151,7 @@ type InputProps = UseFormRegisterReturn & {
151
151
  } & React.InputHTMLAttributes<HTMLInputElement>;
152
152
  declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
153
153
 
154
- interface Props$5<T> {
154
+ interface Props$b<T> {
155
155
  value?: T;
156
156
  onChange?: (v: T) => void;
157
157
  label?: string;
@@ -163,7 +163,7 @@ interface Props$5<T> {
163
163
  }[];
164
164
  vertical?: boolean;
165
165
  }
166
- declare function RadioSelect<T>({ value, onChange, label, labelClassName, options, vertical, containerClassName }: Props$5<T>): react_jsx_runtime.JSX.Element;
166
+ declare function RadioSelect<T>({ value, onChange, label, labelClassName, options, vertical, containerClassName }: Props$b<T>): react_jsx_runtime.JSX.Element;
167
167
 
168
168
  interface SwitchProps {
169
169
  checked?: boolean;
@@ -222,7 +222,7 @@ type DataNode = FieldDataNode<{
222
222
  type KeyType = string | number;
223
223
  declare const SUFFIX_NODE_KEY = "selectedKey_after";
224
224
  declare const ROOT_KEY = "root";
225
- interface Props$4 {
225
+ interface Props$a {
226
226
  data?: DataNode[];
227
227
  defaultExpandAll?: boolean;
228
228
  virtual?: boolean;
@@ -238,7 +238,7 @@ interface Props$4 {
238
238
  scrollIntoView?: boolean;
239
239
  isRootKey?: (v: KeyType) => boolean;
240
240
  }
241
- declare const FlatTree: (props: Props$4) => react_jsx_runtime.JSX.Element;
241
+ declare const FlatTree: (props: Props$a) => react_jsx_runtime.JSX.Element;
242
242
 
243
243
  interface LinkifyTextProps {
244
244
  text: any;
@@ -260,7 +260,7 @@ declare enum StatusRole {
260
260
  Disabled = "disabled",
261
261
  Info = "info"
262
262
  }
263
- interface Props$3 {
263
+ interface Props$9 {
264
264
  status: string | ReactNode;
265
265
  className?: string;
266
266
  colorClasses?: string;
@@ -268,7 +268,7 @@ interface Props$3 {
268
268
  bubble?: boolean;
269
269
  role?: string | StatusRole;
270
270
  }
271
- declare function StatusBadge({ status, className, colorClasses: _colorClasses, roundClasses, bubble, role }: Props$3): react_jsx_runtime.JSX.Element;
271
+ declare function StatusBadge({ status, className, colorClasses: _colorClasses, roundClasses, bubble, role }: Props$9): react_jsx_runtime.JSX.Element;
272
272
 
273
273
  interface HeaderToolsToggleButtonProps {
274
274
  isOpen: boolean;
@@ -283,6 +283,117 @@ interface HeaderToolsContentProps {
283
283
  }
284
284
  declare const HeaderToolsContent: FC<HeaderToolsContentProps>;
285
285
 
286
+ interface Props$8 {
287
+ title?: string | ReactNode;
288
+ open: boolean;
289
+ onClose: () => void;
290
+ children?: ReactNode;
291
+ size?: '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full' | string;
292
+ headAddon?: ReactNode;
293
+ triggerClose?: 'all' | 'button';
294
+ noAnimation?: boolean;
295
+ }
296
+ declare function SlideOver({ title, open, onClose, children, size, headAddon, triggerClose, noAnimation }: Props$8): react_jsx_runtime.JSX.Element;
297
+
298
+ interface Props$7 {
299
+ message?: string;
300
+ title: string;
301
+ open: boolean;
302
+ onClose: (open: boolean) => void;
303
+ onConfirm: () => void | Promise<void>;
304
+ disabled?: boolean;
305
+ buttonLabel?: string;
306
+ type: 'danger' | 'question';
307
+ buttons?: ReactNode;
308
+ children?: ReactNode;
309
+ }
310
+ declare function ConfirmDialog({ message, title, open, onClose, onConfirm, buttonLabel, type, buttons, children, disabled }: Props$7): react_jsx_runtime.JSX.Element;
311
+
312
+ declare const getTabClassName: ({ selected }: {
313
+ selected: boolean;
314
+ }) => string;
315
+ declare const Group: ({ children, className, onChange, defaultIndex, selectedIndex }: {
316
+ children: react__default.ReactNode;
317
+ className?: string;
318
+ onChange?: (index: number) => void;
319
+ defaultIndex?: number;
320
+ selectedIndex?: number;
321
+ }) => react_jsx_runtime.JSX.Element;
322
+ declare const List: ({ tabs, disabledTabs, className, noBorder, children }: {
323
+ tabs: react__default.ReactNode[];
324
+ disabledTabs?: number[];
325
+ className?: string;
326
+ noBorder?: boolean;
327
+ children?: react__default.ReactNode;
328
+ }) => react_jsx_runtime.JSX.Element;
329
+ declare const Panels: ElementType;
330
+ declare const Panel: (props: any) => react_jsx_runtime.JSX.Element;
331
+
332
+ type Props$6 = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
333
+ onChange: (value: string) => void;
334
+ value: string;
335
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
336
+ onKeydown?: (e: KeyboardEvent<HTMLInputElement>) => void;
337
+ placeholder?: string;
338
+ ref?: React.Ref<HTMLInputElement>;
339
+ addonButton?: React.ReactNode;
340
+ };
341
+ declare const SearchInput: react.ForwardRefExoticComponent<Omit<Props$6, "ref"> & react.RefAttributes<HTMLInputElement>>;
342
+
343
+ interface Props$5 {
344
+ checked?: boolean;
345
+ onChange?: (v: boolean) => void;
346
+ label?: string;
347
+ labelNode?: ReactNode;
348
+ id?: string;
349
+ name?: string;
350
+ disabled?: boolean;
351
+ inputProps?: any;
352
+ labelClassName?: string;
353
+ className?: string;
354
+ }
355
+ declare const Checkbox: ({ checked, onChange, label, labelNode, id, name, inputProps, disabled, labelClassName, className }: Props$5) => react_jsx_runtime.JSX.Element;
356
+
357
+ interface ProgressBarProps {
358
+ progress: number;
359
+ segments?: Record<number, string>;
360
+ gradient?: boolean;
361
+ upperTicks?: Record<number, ReactNode>;
362
+ lowerTicks?: Record<number, ReactNode>;
363
+ roundedFull?: boolean;
364
+ }
365
+ declare const ProgressBar: ({ progress, segments, gradient, upperTicks, lowerTicks, roundedFull }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
366
+
367
+ type DataType = {
368
+ key?: react__default.Key;
369
+ label?: ReactNode;
370
+ value?: any;
371
+ span?: number;
372
+ };
373
+ interface Props$4 {
374
+ data: DataType[];
375
+ labelClassName?: string;
376
+ labelStyle?: react__default.CSSProperties;
377
+ valueClassName?: string;
378
+ valueStyle?: react__default.CSSProperties;
379
+ className?: string;
380
+ trClassName?: string;
381
+ colon?: ReactNode;
382
+ renderLabel?: (item: DataType) => ReactNode;
383
+ renderValue?: (item: DataType) => ReactNode;
384
+ }
385
+ declare const Descriptions: (props: Props$4) => react_jsx_runtime.JSX.Element;
386
+
387
+ interface Props$3 {
388
+ show: boolean;
389
+ setShow: (show: boolean) => void;
390
+ title: string;
391
+ message: string;
392
+ type: 'success' | 'error' | 'warning' | 'info';
393
+ buttons?: () => ReactNode;
394
+ }
395
+ declare function Notification({ show, setShow, title, message, buttons, type }: Props$3): react_jsx_runtime.JSX.Element;
396
+
286
397
  interface Props$2 {
287
398
  data: any;
288
399
  columns: ColumnDef<any>[];
@@ -390,10 +501,10 @@ declare function useBoolean(defaultValue?: boolean): {
390
501
  toggle: () => void;
391
502
  };
392
503
 
504
+ declare const useDarkMode: () => boolean;
505
+
393
506
  declare const SvgFolderContext: react.Context<string>;
394
507
  declare const useDetectExtenstion: () => boolean;
395
- declare const DarkModeContext: react.Context<boolean>;
396
- declare const useDarkMode: () => boolean;
397
508
 
398
509
  declare const NavSizeContext: react.Context<{
399
510
  small: boolean;
@@ -402,4 +513,4 @@ declare const NavSizeContext: react.Context<{
402
513
  setShowLabel: (showLabel: boolean) => void;
403
514
  }>;
404
515
 
405
- export { BD, BarLoading, BaseDialog, BaseZIndexContext, NewButton as Button, type ButtonProps, COLOR_MAP, Collapse, CopyButton, CopyIcon, CopySuccessIcon, DarkModeContext, type DataNode, DeleteIcon, DisclosurePanel, Empty, FlatTree, HeaderToolsContent, HeaderToolsToggleButton, type IMenuItem, Input, LinkifyText, MenuContext, MenuItem, MoveLeftIcon, MoveRightIcon, NavSizeContext, type OnSelectMenuItem, PopoverTooltip, PopupMenuButton, Proccessing, ROOT_KEY, RadioSelect, RenameIcon, ResizeTable, SUFFIX_NODE_KEY, Select, type SelectProps, SpinLoading, StatusBadge, StatusRole, SubMenuButton, SvgFolderContext, Switch, type SwitchProps, buttonClass, getNumberWithDecimal, parseHex, useBoolean, useDarkMode, useDetectExtenstion, useMobile };
516
+ export { BD, BarLoading, BaseDialog, BaseZIndexContext, NewButton as Button, type ButtonProps, COLOR_MAP, Checkbox, Collapse, ConfirmDialog, CopyButton, CopyIcon, CopySuccessIcon, type DataNode, type DataType, DeleteIcon, Descriptions, DisclosurePanel, Empty, FlatTree, HeaderToolsContent, HeaderToolsToggleButton, type IMenuItem, Input, LinkifyText, MenuContext, MenuItem, MoveLeftIcon, MoveRightIcon, NavSizeContext, Notification, type OnSelectMenuItem, PopoverTooltip, PopupMenuButton, Proccessing, ProgressBar, ROOT_KEY, RadioSelect, RenameIcon, ResizeTable, SUFFIX_NODE_KEY, SearchInput, Select, type SelectProps, SlideOver, SpinLoading, StatusBadge, StatusRole, SubMenuButton, SvgFolderContext, Switch, type SwitchProps, Group as TabGroup, List as TabList, Panel as TabPanel, Panels as TabPanels, buttonClass, getNumberWithDecimal, getTabClassName, parseHex, useBoolean, useDarkMode, useDetectExtenstion, useMobile };