mogh_ui 0.7.2 → 0.7.4
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/auth/index.d.ts +16 -22
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/login/header.d.ts +4 -7
- package/dist/auth/login/header.d.ts.map +1 -0
- package/dist/auth/login/index.d.ts +4 -7
- package/dist/auth/login/index.d.ts.map +1 -0
- package/dist/auth/profile/index.d.ts +4 -5
- package/dist/auth/profile/index.d.ts.map +1 -0
- package/dist/auth/profile/linked-logins.d.ts +4 -7
- package/dist/auth/profile/linked-logins.d.ts.map +1 -0
- package/dist/auth/profile/passkey.d.ts +3 -6
- package/dist/auth/profile/passkey.d.ts.map +1 -0
- package/dist/auth/profile/totp.d.ts +3 -6
- package/dist/auth/profile/totp.d.ts.map +1 -0
- package/dist/auth/utils.d.ts +3 -4
- package/dist/auth/utils.d.ts.map +1 -0
- package/dist/color.d.ts +4 -5
- package/dist/color.d.ts.map +1 -0
- package/dist/components/back-button.d.ts +4 -7
- package/dist/components/back-button.d.ts.map +1 -0
- package/dist/components/button-link.d.ts +4 -7
- package/dist/components/button-link.d.ts.map +1 -0
- package/dist/components/config/confirm.d.ts +4 -8
- package/dist/components/config/confirm.d.ts.map +1 -0
- package/dist/components/config/group.d.ts +9 -10
- package/dist/components/config/group.d.ts.map +1 -0
- package/dist/components/config/index.d.ts +12 -25
- package/dist/components/config/index.d.ts.map +1 -0
- package/dist/components/config/item.d.ts +15 -19
- package/dist/components/config/item.d.ts.map +1 -0
- package/dist/components/config/layout.d.ts +5 -9
- package/dist/components/config/layout.d.ts.map +1 -0
- package/dist/components/config/unsaved-changes.d.ts +3 -6
- package/dist/components/config/unsaved-changes.d.ts.map +1 -0
- package/dist/components/confirm-button.d.ts +8 -12
- package/dist/components/confirm-button.d.ts.map +1 -0
- package/dist/components/confirm-icon.d.ts +8 -12
- package/dist/components/confirm-icon.d.ts.map +1 -0
- package/dist/components/confirm-modal.d.ts +5 -8
- package/dist/components/confirm-modal.d.ts.map +1 -0
- package/dist/components/copy-button.d.ts +6 -9
- package/dist/components/copy-button.d.ts.map +1 -0
- package/dist/components/copy-text.d.ts +4 -7
- package/dist/components/copy-text.d.ts.map +1 -0
- package/dist/components/create-modal.d.ts +5 -8
- package/dist/components/create-modal.d.ts.map +1 -0
- package/dist/components/data-table.cjs +17 -7
- package/dist/components/data-table.cjs.map +1 -1
- package/dist/components/data-table.d.ts +11 -13
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +18 -7
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/divided-children/index.d.ts +6 -10
- package/dist/components/divided-children/index.d.ts.map +1 -0
- package/dist/components/enable-switch.d.ts +4 -7
- package/dist/components/enable-switch.d.ts.map +1 -0
- package/dist/components/entity-header.d.ts +5 -8
- package/dist/components/entity-header.d.ts.map +1 -0
- package/dist/components/entity-page.d.ts +5 -8
- package/dist/components/entity-page.d.ts.map +1 -0
- package/dist/components/fancy-card/index.d.ts +7 -10
- package/dist/components/fancy-card/index.d.ts.map +1 -0
- package/dist/components/hover-error.d.ts +3 -6
- package/dist/components/hover-error.d.ts.map +1 -0
- package/dist/components/info-card.d.ts +8 -12
- package/dist/components/info-card.d.ts.map +1 -0
- package/dist/components/input-list.d.ts +4 -7
- package/dist/components/input-list.d.ts.map +1 -0
- package/dist/components/labelled-switch.d.ts +5 -8
- package/dist/components/labelled-switch.d.ts.map +1 -0
- package/dist/components/labels-group.d.ts +4 -7
- package/dist/components/labels-group.d.ts.map +1 -0
- package/dist/components/loading-screen.d.ts +4 -7
- package/dist/components/loading-screen.d.ts.map +1 -0
- package/dist/components/mobile-friendly-tabs.d.ts +12 -15
- package/dist/components/mobile-friendly-tabs.d.ts.map +1 -0
- package/dist/components/monaco/index.d.ts +9 -11
- package/dist/components/monaco/index.d.ts.map +1 -0
- package/dist/components/monaco/init.cjs +8 -7
- package/dist/components/monaco/init.cjs.map +1 -1
- package/dist/components/monaco/init.d.ts +8 -2
- package/dist/components/monaco/init.d.ts.map +1 -0
- package/dist/components/monaco/syntax/fancy_toml.d.ts +2 -2
- package/dist/components/monaco/syntax/fancy_toml.d.ts.map +1 -0
- package/dist/components/monaco/syntax/key_value.d.ts +2 -2
- package/dist/components/monaco/syntax/key_value.d.ts.map +1 -0
- package/dist/components/monaco/syntax/shell.d.ts +2 -2
- package/dist/components/monaco/syntax/shell.d.ts.map +1 -0
- package/dist/components/monaco/syntax/string_list.d.ts +2 -2
- package/dist/components/monaco/syntax/string_list.d.ts.map +1 -0
- package/dist/components/monaco/syntax/toml.d.ts +2 -2
- package/dist/components/monaco/syntax/toml.d.ts.map +1 -0
- package/dist/components/monaco/syntax/yaml.d.ts +2 -2
- package/dist/components/monaco/syntax/yaml.d.ts.map +1 -0
- package/dist/components/monaco/theme.d.ts +2 -2
- package/dist/components/monaco/theme.d.ts.map +1 -0
- package/dist/components/page-guard.d.ts +5 -8
- package/dist/components/page-guard.d.ts.map +1 -0
- package/dist/components/page.d.ts +8 -12
- package/dist/components/page.d.ts.map +1 -0
- package/dist/components/search-input.d.ts +4 -7
- package/dist/components/search-input.d.ts.map +1 -0
- package/dist/components/section.d.ts +8 -12
- package/dist/components/section.d.ts.map +1 -0
- package/dist/components/shared-text-update.d.ts +7 -10
- package/dist/components/shared-text-update.d.ts.map +1 -0
- package/dist/components/show-hide-button.d.ts +3 -6
- package/dist/components/show-hide-button.d.ts.map +1 -0
- package/dist/components/stat-bar.d.ts +5 -8
- package/dist/components/stat-bar.d.ts.map +1 -0
- package/dist/components/stat-cell.cjs +1 -1
- package/dist/components/stat-cell.cjs.map +1 -1
- package/dist/components/stat-cell.d.ts +6 -9
- package/dist/components/stat-cell.d.ts.map +1 -0
- package/dist/components/stat-cell.js +1 -1
- package/dist/components/stat-cell.js.map +1 -1
- package/dist/components/status-badge.d.ts +8 -11
- package/dist/components/status-badge.d.ts.map +1 -0
- package/dist/components/tabbed-page.d.ts +6 -9
- package/dist/components/tabbed-page.d.ts.map +1 -0
- package/dist/components/table-skeleton.d.ts +3 -6
- package/dist/components/table-skeleton.d.ts.map +1 -0
- package/dist/components/text-update-modal.d.ts +6 -9
- package/dist/components/text-update-modal.d.ts.map +1 -0
- package/dist/components/theme-toggle.d.ts +2 -5
- package/dist/components/theme-toggle.d.ts.map +1 -0
- package/dist/formatting.d.ts +13 -14
- package/dist/formatting.d.ts.map +1 -0
- package/dist/hooks.d.ts +10 -14
- package/dist/hooks.d.ts.map +1 -0
- package/dist/index.d.ts +43 -56
- package/dist/index.d.ts.map +1 -0
- package/dist/theme.d.ts +11 -14
- package/dist/theme.d.ts.map +1 -0
- package/dist/utils.d.ts +4 -5
- package/dist/utils.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/auth/index.d.cts +0 -51
- package/dist/auth/login/header.d.cts +0 -8
- package/dist/auth/login/index.d.cts +0 -15
- package/dist/auth/profile/index.d.cts +0 -5
- package/dist/auth/profile/linked-logins.d.cts +0 -13
- package/dist/auth/profile/passkey.d.cts +0 -9
- package/dist/auth/profile/totp.d.cts +0 -9
- package/dist/auth/utils.d.cts +0 -4
- package/dist/color.d.cts +0 -5
- package/dist/components/back-button.d.cts +0 -9
- package/dist/components/button-link.d.cts +0 -9
- package/dist/components/config/confirm.d.cts +0 -20
- package/dist/components/config/group.d.cts +0 -10
- package/dist/components/config/index.d.cts +0 -62
- package/dist/components/config/item.d.cts +0 -44
- package/dist/components/config/layout.d.cts +0 -11
- package/dist/components/config/unsaved-changes.d.cts +0 -7
- package/dist/components/confirm-button.d.cts +0 -23
- package/dist/components/confirm-icon.d.cts +0 -20
- package/dist/components/confirm-modal.d.cts +0 -25
- package/dist/components/copy-button.d.cts +0 -15
- package/dist/components/copy-text.d.cts +0 -11
- package/dist/components/create-modal.d.cts +0 -18
- package/dist/components/data-table.d.cts +0 -43
- package/dist/components/divided-children/index.d.cts +0 -15
- package/dist/components/enable-switch.d.cts +0 -12
- package/dist/components/entity-header.d.cts +0 -20
- package/dist/components/entity-page.d.cts +0 -11
- package/dist/components/fancy-card/index.d.cts +0 -17
- package/dist/components/hover-error.d.cts +0 -9
- package/dist/components/info-card.d.cts +0 -21
- package/dist/components/input-list.d.cts +0 -14
- package/dist/components/labelled-switch.d.cts +0 -14
- package/dist/components/labels-group.d.cts +0 -10
- package/dist/components/loading-screen.d.cts +0 -8
- package/dist/components/mobile-friendly-tabs.d.cts +0 -43
- package/dist/components/monaco/index.d.cts +0 -32
- package/dist/components/monaco/init.d.cts +0 -2
- package/dist/components/monaco/syntax/fancy_toml.d.cts +0 -2
- package/dist/components/monaco/syntax/key_value.d.cts +0 -2
- package/dist/components/monaco/syntax/shell.d.cts +0 -2
- package/dist/components/monaco/syntax/string_list.d.cts +0 -2
- package/dist/components/monaco/syntax/toml.d.cts +0 -2
- package/dist/components/monaco/syntax/yaml.d.cts +0 -2
- package/dist/components/monaco/theme.d.cts +0 -2
- package/dist/components/page-guard.d.cts +0 -12
- package/dist/components/page.d.cts +0 -31
- package/dist/components/search-input.d.cts +0 -9
- package/dist/components/section.d.cts +0 -33
- package/dist/components/shared-text-update.d.cts +0 -20
- package/dist/components/show-hide-button.d.cts +0 -8
- package/dist/components/stat-bar.d.cts +0 -15
- package/dist/components/stat-cell.d.cts +0 -17
- package/dist/components/status-badge.d.cts +0 -20
- package/dist/components/tabbed-page.d.cts +0 -19
- package/dist/components/table-skeleton.d.cts +0 -8
- package/dist/components/text-update-modal.d.cts +0 -19
- package/dist/components/theme-toggle.d.cts +0 -5
- package/dist/formatting.d.cts +0 -14
- package/dist/hooks.d.cts +0 -30
- package/dist/index.d.cts +0 -56
- package/dist/theme.d.cts +0 -18
- package/dist/utils.d.cts +0 -17
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { SetStateAction, ReactNode } from 'react';
|
|
3
|
-
import { MonacoLanguage } from '../monaco/index.cjs';
|
|
4
|
-
export { ConfirmUpdate, ConfirmUpdateProps } from './confirm.cjs';
|
|
5
|
-
export { ConfigInput, ConfigItem, ConfigItemProps, ConfigList, ConfigSwitch } from './item.cjs';
|
|
6
|
-
export { ConfigLayout } from './layout.cjs';
|
|
7
|
-
export { UnsavedChanges } from './unsaved-changes.cjs';
|
|
8
|
-
import '@mantine/core';
|
|
9
|
-
import '../input-list.cjs';
|
|
10
|
-
import '../section.cjs';
|
|
11
|
-
|
|
12
|
-
declare function ConfigGroup<T>({ config, update, setUpdate, disabled, fields, }: {
|
|
13
|
-
config: T;
|
|
14
|
-
update: Partial<T>;
|
|
15
|
-
setUpdate: (update: Partial<T>) => void;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
fields: ConfigGroupArgs<T>["fields"];
|
|
18
|
-
}): react.JSX.Element;
|
|
19
|
-
|
|
20
|
-
interface ConfigFieldArgs {
|
|
21
|
-
label?: string;
|
|
22
|
-
description?: ReactNode;
|
|
23
|
-
/** Use a selector instead of input */
|
|
24
|
-
options?: {
|
|
25
|
-
value: string;
|
|
26
|
-
label?: string;
|
|
27
|
-
icon?: ReactNode;
|
|
28
|
-
}[];
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
hidden?: boolean;
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface ConfigGroupArgs<T> {
|
|
34
|
-
label: string;
|
|
35
|
-
labelExtra?: ReactNode;
|
|
36
|
-
icon?: ReactNode;
|
|
37
|
-
description?: ReactNode;
|
|
38
|
-
actions?: ReactNode;
|
|
39
|
-
hidden?: boolean;
|
|
40
|
-
labelHidden?: boolean;
|
|
41
|
-
contentHidden?: boolean;
|
|
42
|
-
fields: {
|
|
43
|
-
[K in keyof Partial<T>]: boolean | ConfigFieldArgs | ((value: T[K], set: (value: Partial<T>) => void) => ReactNode);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
interface ConfigProps<T> {
|
|
47
|
-
original: T;
|
|
48
|
-
update: Partial<T>;
|
|
49
|
-
setUpdate: React.Dispatch<SetStateAction<Partial<T>>>;
|
|
50
|
-
disabled: boolean;
|
|
51
|
-
onSave: () => Promise<unknown>;
|
|
52
|
-
titleOther?: ReactNode;
|
|
53
|
-
disableSidebar?: boolean;
|
|
54
|
-
fileContentsLanguage?: MonacoLanguage;
|
|
55
|
-
enableFancyToml?: boolean;
|
|
56
|
-
groups: Record<string, // Section key
|
|
57
|
-
// Section key
|
|
58
|
-
ConfigGroupArgs<T>[] | false | undefined>;
|
|
59
|
-
}
|
|
60
|
-
declare function Config<T>({ original, update, setUpdate, disabled, onSave, titleOther, disableSidebar, fileContentsLanguage, enableFancyToml, groups: _groups, }: ConfigProps<T>): react.JSX.Element;
|
|
61
|
-
|
|
62
|
-
export { Config, type ConfigFieldArgs, ConfigGroup, type ConfigGroupArgs, type ConfigProps };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import * as _mantine_core from '@mantine/core';
|
|
4
|
-
import { TextInputProps, StackProps, SwitchProps } from '@mantine/core';
|
|
5
|
-
import { InputListProps } from '../input-list.cjs';
|
|
6
|
-
|
|
7
|
-
interface ConfigItemProps extends StackProps {
|
|
8
|
-
label?: ReactNode;
|
|
9
|
-
labelExtra?: ReactNode;
|
|
10
|
-
description?: ReactNode;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const ConfigItem: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, ConfigItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(ConfigItemProps & {
|
|
14
|
-
component?: any;
|
|
15
|
-
} & Omit<any, "component" | keyof ConfigItemProps> & {
|
|
16
|
-
ref?: any;
|
|
17
|
-
renderRoot?: (props: any) => any;
|
|
18
|
-
}) | (ConfigItemProps & {
|
|
19
|
-
component: React.ElementType;
|
|
20
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
21
|
-
})>, never> & Record<string, never>;
|
|
22
|
-
declare function ConfigInput({ value, disabled, placeholder, onChange, onValueChange, onBlur, inputLeft, inputRight, inputProps, email, ...itemProps }: {
|
|
23
|
-
value: string | number | undefined;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
onValueChange?: (value: string) => void;
|
|
27
|
-
onBlur?: (value: string) => void;
|
|
28
|
-
inputLeft?: ReactNode;
|
|
29
|
-
inputRight?: ReactNode;
|
|
30
|
-
inputProps?: TextInputProps;
|
|
31
|
-
email?: boolean;
|
|
32
|
-
} & Omit<ConfigItemProps, "children">): react.JSX.Element;
|
|
33
|
-
declare function ConfigSwitch({ value, disabled, onCheckedChange, switchProps, ...itemProps }: {
|
|
34
|
-
value: boolean | undefined;
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
onCheckedChange: (value: boolean) => void;
|
|
37
|
-
switchProps?: SwitchProps;
|
|
38
|
-
} & Omit<ConfigItemProps, "children">): react.JSX.Element;
|
|
39
|
-
declare function ConfigList<T>({ addLabel, label, description, ...inputListProps }: {
|
|
40
|
-
label?: string;
|
|
41
|
-
addLabel?: string;
|
|
42
|
-
} & InputListProps<T> & Omit<ConfigItemProps, "children">): react.JSX.Element;
|
|
43
|
-
|
|
44
|
-
export { ConfigInput, ConfigItem, type ConfigItemProps, ConfigList, ConfigSwitch };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { SectionProps } from '../section.cjs';
|
|
4
|
-
import '@mantine/core';
|
|
5
|
-
|
|
6
|
-
/** Includes save buttons */
|
|
7
|
-
declare function ConfigLayout({ title, icon, titleOther, SaveOrReset, ...sectionProps }: {
|
|
8
|
-
SaveOrReset: ReactNode | undefined;
|
|
9
|
-
} & SectionProps): react.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { ConfigLayout };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, MouseEventHandler, FocusEventHandler } from 'react';
|
|
3
|
-
import * as _mantine_core from '@mantine/core';
|
|
4
|
-
import { ButtonProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface ConfirmButtonProps extends ButtonProps {
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
9
|
-
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
10
|
-
/** Passed when button is in confirm mode */
|
|
11
|
-
confirmProps?: ButtonProps;
|
|
12
|
-
}
|
|
13
|
-
declare const ConfirmButton: (<C = "button">(props: _mantine_core.PolymorphicComponentProps<C, ConfirmButtonProps>) => React.ReactElement) & Omit<react.FunctionComponent<(ConfirmButtonProps & {
|
|
14
|
-
component?: any;
|
|
15
|
-
} & Omit<any, "component" | keyof ConfirmButtonProps> & {
|
|
16
|
-
ref?: any;
|
|
17
|
-
renderRoot?: (props: any) => any;
|
|
18
|
-
}) | (ConfirmButtonProps & {
|
|
19
|
-
component: React.ElementType;
|
|
20
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
21
|
-
})>, never> & Record<string, never>;
|
|
22
|
-
|
|
23
|
-
export { ConfirmButton, type ConfirmButtonProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { MouseEventHandler, FocusEventHandler } from 'react';
|
|
3
|
-
import * as _mantine_core from '@mantine/core';
|
|
4
|
-
import { ActionIconProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface ConfirmIconProps extends ActionIconProps {
|
|
7
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
8
|
-
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
9
|
-
}
|
|
10
|
-
declare const ConfirmIcon: (<C = "button">(props: _mantine_core.PolymorphicComponentProps<C, ConfirmIconProps>) => React.ReactElement) & Omit<react.FunctionComponent<(ConfirmIconProps & {
|
|
11
|
-
component?: any;
|
|
12
|
-
} & Omit<any, "component" | keyof ConfirmIconProps> & {
|
|
13
|
-
ref?: any;
|
|
14
|
-
renderRoot?: (props: any) => any;
|
|
15
|
-
}) | (ConfirmIconProps & {
|
|
16
|
-
component: React.ElementType;
|
|
17
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
18
|
-
})>, never> & Record<string, never>;
|
|
19
|
-
|
|
20
|
-
export { ConfirmIcon, type ConfirmIconProps };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ModalProps, ButtonProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface ConfirmModalProps extends Omit<Omit<Omit<ModalProps, "opened">, "onClose">, "onClick"> {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
/** User must enter this text to confirm */
|
|
10
|
-
confirmText: string;
|
|
11
|
-
title?: ReactNode;
|
|
12
|
-
confirmButtonContent?: ReactNode;
|
|
13
|
-
onConfirm?: () => Promise<unknown>;
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
additional?: ReactNode;
|
|
16
|
-
topAdditonal?: ReactNode;
|
|
17
|
-
targetProps?: ButtonProps;
|
|
18
|
-
targetNoIcon?: boolean;
|
|
19
|
-
confirmProps?: ButtonProps;
|
|
20
|
-
/** Converts into ConfirmButton */
|
|
21
|
-
disableModal?: boolean;
|
|
22
|
-
}
|
|
23
|
-
declare function ConfirmModal({ children, icon, disabled, confirmText, title, confirmButtonContent, onConfirm, loading, additional, topAdditonal, targetProps, targetNoIcon, confirmProps, disableModal, ...modalProps }: ConfirmModalProps): react.JSX.Element;
|
|
24
|
-
|
|
25
|
-
export { ConfirmModal, type ConfirmModalProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ActionIconProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface CopyButtonProps {
|
|
6
|
-
content: string;
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
label?: string;
|
|
9
|
-
size?: string | number;
|
|
10
|
-
buttonSize?: ActionIconProps["size"];
|
|
11
|
-
}
|
|
12
|
-
declare function CopyButton({ content, icon, label, size, buttonSize, }: CopyButtonProps): react.JSX.Element;
|
|
13
|
-
declare function sendCopyNotification(label?: string): void;
|
|
14
|
-
|
|
15
|
-
export { CopyButton, type CopyButtonProps, sendCopyNotification };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { TextProps, GroupProps } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
interface CopyTextProps extends TextProps {
|
|
5
|
-
content: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
groupProps?: GroupProps;
|
|
8
|
-
}
|
|
9
|
-
declare function CopyText({ content, label, groupProps, ...textProps }: CopyTextProps): react.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { CopyText, type CopyTextProps };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ButtonProps, ModalBaseProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface CreateModalProps extends ButtonProps {
|
|
6
|
-
entityType: string;
|
|
7
|
-
configSection: (close: () => void) => ReactNode;
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
onConfirm: () => Promise<boolean>;
|
|
10
|
-
onOpenChange?: (opened: boolean) => void;
|
|
11
|
-
configureLabel?: string;
|
|
12
|
-
openShiftKeyListener?: string;
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
modalSize?: ModalBaseProps["size"];
|
|
15
|
-
}
|
|
16
|
-
declare function CreateModal({ entityType, configSection, disabled, loading, onConfirm, onOpenChange, configureLabel, openShiftKeyListener, leftSection, children, modalSize, ...targetProps }: CreateModalProps): react.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { CreateModal, type CreateModalProps };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import { ColumnDef, SortingState, RowSelectionState, Row, Column } from '@tanstack/react-table';
|
|
4
|
-
import { BoxProps, DefaultMantineColor, TableProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface DataTableProps<TData, TValue = unknown> extends BoxProps {
|
|
7
|
-
/** Unique key given to table so sorting can be remembered on local storage */
|
|
8
|
-
tableKey: string;
|
|
9
|
-
columns: (ColumnDef<TData, TValue> | false | undefined)[];
|
|
10
|
-
data: TData[];
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
onRowClick?: (row: TData) => void;
|
|
13
|
-
noResults?: ReactNode;
|
|
14
|
-
defaultSort?: SortingState;
|
|
15
|
-
sortDescFirst?: boolean;
|
|
16
|
-
/** Sorting is handled externally (eg. server side).
|
|
17
|
-
* The table still manages / persists the sorting state,
|
|
18
|
-
* but does not apply it to the rows. */
|
|
19
|
-
manualSorting?: boolean;
|
|
20
|
-
/** Called with the sorting state whenever it changes,
|
|
21
|
-
* including on load from local storage. */
|
|
22
|
-
onSortingStateChange?: (sorting: SortingState) => void;
|
|
23
|
-
selectOptions?: {
|
|
24
|
-
selectKey: (row: TData) => string;
|
|
25
|
-
onSelect?: (selected: string[]) => void;
|
|
26
|
-
state?: [RowSelectionState, Dispatch<SetStateAction<RowSelectionState>>];
|
|
27
|
-
disableRow?: boolean | ((row: Row<TData>) => boolean);
|
|
28
|
-
color?: DefaultMantineColor;
|
|
29
|
-
};
|
|
30
|
-
caption?: string;
|
|
31
|
-
tableProps?: TableProps;
|
|
32
|
-
noBox?: boolean;
|
|
33
|
-
noBorder?: boolean;
|
|
34
|
-
}
|
|
35
|
-
declare function DataTable<TData, TValue>({ tableKey, columns, data, loading, onRowClick, noResults, sortDescFirst, defaultSort, manualSorting, onSortingStateChange, selectOptions, caption, tableProps, noBox, noBorder, mah, ...boxProps }: DataTableProps<TData, TValue>): react.JSX.Element;
|
|
36
|
-
declare const SortableHeader: <T, V>({ column, title, description, sortDescFirst, }: {
|
|
37
|
-
column: Column<T, V>;
|
|
38
|
-
title: string;
|
|
39
|
-
description?: ReactNode;
|
|
40
|
-
sortDescFirst?: boolean;
|
|
41
|
-
}) => react.JSX.Element;
|
|
42
|
-
|
|
43
|
-
export { DataTable, type DataTableProps, SortableHeader };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as _mantine_core from '@mantine/core';
|
|
3
|
-
import { GroupProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
declare const DividedChildren: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, GroupProps>) => React.ReactElement) & Omit<react.FunctionComponent<(GroupProps & {
|
|
6
|
-
component?: any;
|
|
7
|
-
} & Omit<any, "component" | keyof GroupProps> & {
|
|
8
|
-
ref?: any;
|
|
9
|
-
renderRoot?: (props: any) => any;
|
|
10
|
-
}) | (GroupProps & {
|
|
11
|
-
component: React.ElementType;
|
|
12
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
13
|
-
})>, never> & Record<string, never>;
|
|
14
|
-
|
|
15
|
-
export { DividedChildren };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { SwitchProps, GroupProps } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
interface EnableSwitchProps extends SwitchProps {
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
7
|
-
redDisabled?: boolean;
|
|
8
|
-
labelProps?: GroupProps;
|
|
9
|
-
}
|
|
10
|
-
declare function EnableSwitch({ checked, color, label, onChange, onCheckedChange, disabled, redDisabled, labelProps, ...props }: EnableSwitchProps): react.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { EnableSwitch, type EnableSwitchProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
import { ColorIntention } from '../color.cjs';
|
|
4
|
-
|
|
5
|
-
interface EntityHeaderProps {
|
|
6
|
-
name?: string;
|
|
7
|
-
icon: FC<{
|
|
8
|
-
size?: string | number;
|
|
9
|
-
color?: string;
|
|
10
|
-
}>;
|
|
11
|
-
intent: ColorIntention;
|
|
12
|
-
state?: ReactNode;
|
|
13
|
-
status?: ReactNode;
|
|
14
|
-
action?: ReactNode;
|
|
15
|
-
onRename?: (name: string) => Promise<unknown>;
|
|
16
|
-
renamePending?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare function EntityHeader({ name, icon: Icon, intent, state, status, action, onRename: _onRename, renamePending, }: EntityHeaderProps): react.JSX.Element;
|
|
19
|
-
|
|
20
|
-
export { EntityHeader, type EntityHeaderProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { StackProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface EntityPageProps extends StackProps {
|
|
6
|
-
backTo?: string;
|
|
7
|
-
actions?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare function EntityPage({ backTo, actions, children, ...props }: EntityPageProps): react.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { EntityPage, type EntityPageProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as _mantine_core from '@mantine/core';
|
|
3
|
-
import { BoxProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface FancyCardProps extends BoxProps {
|
|
6
|
-
}
|
|
7
|
-
declare const FancyCard: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, FancyCardProps>) => React.ReactElement) & Omit<react.FunctionComponent<(FancyCardProps & {
|
|
8
|
-
component?: any;
|
|
9
|
-
} & Omit<any, "component" | keyof FancyCardProps> & {
|
|
10
|
-
ref?: any;
|
|
11
|
-
renderRoot?: (props: any) => any;
|
|
12
|
-
}) | (FancyCardProps & {
|
|
13
|
-
component: React.ElementType;
|
|
14
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
15
|
-
})>, never> & Record<string, never>;
|
|
16
|
-
|
|
17
|
-
export { FancyCard };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import * as _mantine_core from '@mantine/core';
|
|
4
|
-
import { StackProps, TextProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface InfoCardProps extends StackProps {
|
|
7
|
-
title: string;
|
|
8
|
-
titleProps?: TextProps;
|
|
9
|
-
info?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare const InfoCard: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, InfoCardProps>) => React.ReactElement) & Omit<react.FunctionComponent<(InfoCardProps & {
|
|
12
|
-
component?: any;
|
|
13
|
-
} & Omit<any, "component" | keyof InfoCardProps> & {
|
|
14
|
-
ref?: any;
|
|
15
|
-
renderRoot?: (props: any) => any;
|
|
16
|
-
}) | (InfoCardProps & {
|
|
17
|
-
component: React.ElementType;
|
|
18
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
19
|
-
})>, never> & Record<string, never>;
|
|
20
|
-
|
|
21
|
-
export { InfoCard, type InfoCardProps };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { TextInputProps } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
interface InputListProps<T> {
|
|
5
|
-
field: keyof T;
|
|
6
|
-
values: string[];
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
set: (update: Partial<T>) => void;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
inputProps?: TextInputProps;
|
|
11
|
-
}
|
|
12
|
-
declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react.JSX.Element;
|
|
13
|
-
|
|
14
|
-
export { InputList, type InputListProps };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface LabelledSwitchProps extends SwitchProps {
|
|
6
|
-
checked: boolean | undefined;
|
|
7
|
-
onCheckedChange: (checked: boolean) => void;
|
|
8
|
-
label?: ReactNode;
|
|
9
|
-
groupProps?: GroupProps;
|
|
10
|
-
labelProps?: TextProps;
|
|
11
|
-
}
|
|
12
|
-
declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react.JSX.Element;
|
|
13
|
-
|
|
14
|
-
export { LabelledSwitch, type LabelledSwitchProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { GroupProps } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
interface LabelsGroupProps extends GroupProps {
|
|
5
|
-
labels: [string, string][];
|
|
6
|
-
showEllipsis?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { LabelsGroup, type LabelsGroupProps };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
import { MantineBreakpoint, GroupProps, TabsProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface Tab {
|
|
6
|
-
label?: string;
|
|
7
|
-
icon?: FC<{
|
|
8
|
-
size?: string | number;
|
|
9
|
-
}>;
|
|
10
|
-
hidden?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
value: string;
|
|
13
|
-
content: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
type TabNoContent = Omit<Tab, "content">;
|
|
16
|
-
interface MobileFriendlyTabsProps extends MobileFriendlyTabsSelectorProps {
|
|
17
|
-
tabs: Tab[];
|
|
18
|
-
tabsProps?: Omit<TabsProps, "value">;
|
|
19
|
-
}
|
|
20
|
-
declare function MobileFriendlyTabs(props: MobileFriendlyTabsProps): react.JSX.Element;
|
|
21
|
-
interface MobileFriendlyTabsWrapper extends TabsProps {
|
|
22
|
-
Selector: ReactNode;
|
|
23
|
-
tabs: Tab[];
|
|
24
|
-
value: string;
|
|
25
|
-
}
|
|
26
|
-
declare function MobileFriendlyTabsWrapper({ Selector, tabs, value, children, ...tabsProps }: MobileFriendlyTabsWrapper): react.JSX.Element;
|
|
27
|
-
interface MobileFriendlyTabsSelectorProps {
|
|
28
|
-
tabs: TabNoContent[];
|
|
29
|
-
actions?: ReactNode;
|
|
30
|
-
value: string;
|
|
31
|
-
onValueChange: (value: string) => void;
|
|
32
|
-
changeAt?: MantineBreakpoint;
|
|
33
|
-
fullIconSize?: string | number;
|
|
34
|
-
mobileIconSize?: string | number;
|
|
35
|
-
tabProps?: GroupProps;
|
|
36
|
-
}
|
|
37
|
-
declare function MobileFriendlyTabsSelector({ tabs: _tabs, actions, value, onValueChange, changeAt: _changeAt, fullIconSize, mobileIconSize, tabProps, }: MobileFriendlyTabsSelectorProps): react.JSX.Element;
|
|
38
|
-
declare function MobileFriendlyTabsContent({ tabs, value, }: {
|
|
39
|
-
tabs: Tab[];
|
|
40
|
-
value: string;
|
|
41
|
-
}): ReactNode;
|
|
42
|
-
|
|
43
|
-
export { MobileFriendlyTabs, MobileFriendlyTabsContent, type MobileFriendlyTabsProps, MobileFriendlyTabsSelector, type MobileFriendlyTabsSelectorProps, MobileFriendlyTabsWrapper, type Tab, type TabNoContent };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { BoxProps } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
type MonacoLanguage = "yaml" | "toml" | "fancy_toml" | "json" | "key_value" | "ini" | "string_list" | "shell" | "dockerfile" | "rust" | "javascript" | "typescript";
|
|
5
|
-
declare function languageFromPath(path: string): MonacoLanguage | undefined;
|
|
6
|
-
interface MonacoEditorProps extends BoxProps {
|
|
7
|
-
value: string | undefined;
|
|
8
|
-
onValueChange?: (value: string) => void;
|
|
9
|
-
language: MonacoLanguage | undefined;
|
|
10
|
-
enableFancyToml?: boolean;
|
|
11
|
-
filename?: string;
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
minHeight?: number;
|
|
14
|
-
/** Define max height as proportion of dimension height. Should be between 0 and 1. */
|
|
15
|
-
maxHeightProportion?: number;
|
|
16
|
-
maxHeight?: number;
|
|
17
|
-
id?: string;
|
|
18
|
-
}
|
|
19
|
-
declare function MonacoEditor({ value, onValueChange, language: _language, enableFancyToml, readOnly, filename, minHeight, maxHeightProportion, maxHeight, id, ...boxProps }: MonacoEditorProps): react.JSX.Element;
|
|
20
|
-
interface MonacoDiffEditorProps extends BoxProps {
|
|
21
|
-
original: string | undefined;
|
|
22
|
-
modified: string | undefined;
|
|
23
|
-
onModifiedValueChange?: (value: string) => void;
|
|
24
|
-
language: MonacoLanguage | undefined;
|
|
25
|
-
enableFancyToml?: boolean;
|
|
26
|
-
readOnly?: boolean;
|
|
27
|
-
id?: string;
|
|
28
|
-
hideUnchangedRegions?: boolean;
|
|
29
|
-
}
|
|
30
|
-
declare function MonacoDiffEditor({ original, modified, onModifiedValueChange, language: _language, enableFancyToml, readOnly, id, hideUnchangedRegions, ...boxProps }: MonacoDiffEditorProps): react.JSX.Element;
|
|
31
|
-
|
|
32
|
-
export { MonacoDiffEditor, type MonacoDiffEditorProps, MonacoEditor, type MonacoEditorProps, type MonacoLanguage, languageFromPath };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { CenterProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface PageGuardProps extends CenterProps {
|
|
6
|
-
isPending?: boolean;
|
|
7
|
-
error?: false | string;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
11
|
-
|
|
12
|
-
export { PageGuard, type PageGuardProps };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
import * as _mantine_core from '@mantine/core';
|
|
4
|
-
import { StackProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface PageProps extends StackProps {
|
|
7
|
-
title?: string;
|
|
8
|
-
icon?: FC<{
|
|
9
|
-
size?: string | number;
|
|
10
|
-
}>;
|
|
11
|
-
description?: ReactNode;
|
|
12
|
-
rightTitle?: ReactNode;
|
|
13
|
-
aboveTitle?: ReactNode;
|
|
14
|
-
/** The right hand side of page opposite the title */
|
|
15
|
-
oppositeTitle?: ReactNode;
|
|
16
|
-
customTitle?: ReactNode;
|
|
17
|
-
customDescription?: ReactNode;
|
|
18
|
-
actions?: ReactNode;
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
declare const Page: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, PageProps>) => React.ReactElement) & Omit<react.FunctionComponent<(PageProps & {
|
|
22
|
-
component?: any;
|
|
23
|
-
} & Omit<any, "component" | keyof PageProps> & {
|
|
24
|
-
ref?: any;
|
|
25
|
-
renderRoot?: (props: any) => any;
|
|
26
|
-
}) | (PageProps & {
|
|
27
|
-
component: React.ElementType;
|
|
28
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
29
|
-
})>, never> & Record<string, never>;
|
|
30
|
-
|
|
31
|
-
export { Page, type PageProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { TextInputProps } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
interface SearchInputProps extends TextInputProps {
|
|
5
|
-
onSearch?: (search: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react.JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { SearchInput, type SearchInputProps };
|