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,33 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import * as _mantine_core from '@mantine/core';
|
|
4
|
-
import { StackProps, MantineStyleProps, CenterProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface SectionProps extends StackProps {
|
|
7
|
-
titleFz?: MantineStyleProps["fz"];
|
|
8
|
-
titleMb?: MantineStyleProps["mb"];
|
|
9
|
-
titleDimmed?: boolean;
|
|
10
|
-
titleNode?: ReactNode;
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
titleRight?: ReactNode;
|
|
13
|
-
titleOther?: ReactNode;
|
|
14
|
-
description?: ReactNode;
|
|
15
|
-
actions?: ReactNode;
|
|
16
|
-
withBorder?: boolean;
|
|
17
|
-
isPending?: boolean;
|
|
18
|
-
error?: false | string;
|
|
19
|
-
guardProps?: CenterProps;
|
|
20
|
-
forceHeaderGroup?: boolean;
|
|
21
|
-
onHeaderClick?: () => void;
|
|
22
|
-
}
|
|
23
|
-
declare const Section: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, SectionProps>) => React.ReactElement) & Omit<react.FunctionComponent<(SectionProps & {
|
|
24
|
-
component?: any;
|
|
25
|
-
} & Omit<any, "component" | keyof SectionProps> & {
|
|
26
|
-
ref?: any;
|
|
27
|
-
renderRoot?: (props: any) => any;
|
|
28
|
-
}) | (SectionProps & {
|
|
29
|
-
component: React.ElementType;
|
|
30
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
31
|
-
})>, never> & Record<string, never>;
|
|
32
|
-
|
|
33
|
-
export { Section, type SectionProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import { ModalProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface SharedTextUpdateData {
|
|
6
|
-
title: string;
|
|
7
|
-
value: string;
|
|
8
|
-
placeholder: string;
|
|
9
|
-
onUpdate: (value: string) => void;
|
|
10
|
-
titleRight?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare function useSharedTextUpdateData(): [false | SharedTextUpdateData, Dispatch<SetStateAction<false | SharedTextUpdateData>>];
|
|
13
|
-
interface SharedTextUpdateProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
|
|
14
|
-
data: false | SharedTextUpdateData;
|
|
15
|
-
setData: Dispatch<SetStateAction<false | SharedTextUpdateData>>;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): react.JSX.Element;
|
|
19
|
-
|
|
20
|
-
export { SharedTextUpdate, type SharedTextUpdateData, type SharedTextUpdateProps, useSharedTextUpdateData };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { StackProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
interface StatBarProps extends StackProps {
|
|
6
|
-
title: string;
|
|
7
|
-
icon: ReactNode;
|
|
8
|
-
description?: ReactNode;
|
|
9
|
-
percentage: number | undefined;
|
|
10
|
-
warning: number | undefined;
|
|
11
|
-
critical: number | undefined;
|
|
12
|
-
}
|
|
13
|
-
declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): react.JSX.Element;
|
|
14
|
-
|
|
15
|
-
export { StatBar, type StatBarProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ColorIntention } from '../color.cjs';
|
|
4
|
-
import { GroupProps, TextProps, ProgressProps, FloatingPosition } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface StatCellProps extends GroupProps {
|
|
7
|
-
value: number | undefined;
|
|
8
|
-
intent: ColorIntention;
|
|
9
|
-
textProps?: TextProps;
|
|
10
|
-
barProps?: ProgressProps;
|
|
11
|
-
info?: ReactNode;
|
|
12
|
-
infoPosition?: FloatingPosition;
|
|
13
|
-
infoDisabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): react.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { StatCell, type StatCellProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as _mantine_core from '@mantine/core';
|
|
3
|
-
import { TextProps } from '@mantine/core';
|
|
4
|
-
import { ColorIntention } from '../color.cjs';
|
|
5
|
-
|
|
6
|
-
interface StatusBadgeProps extends TextProps {
|
|
7
|
-
text: string | undefined;
|
|
8
|
-
intent: ColorIntention;
|
|
9
|
-
}
|
|
10
|
-
declare const StatusBadge: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, StatusBadgeProps>) => React.ReactElement) & Omit<react.FunctionComponent<(StatusBadgeProps & {
|
|
11
|
-
component?: any;
|
|
12
|
-
} & Omit<any, "component" | keyof StatusBadgeProps> & {
|
|
13
|
-
ref?: any;
|
|
14
|
-
renderRoot?: (props: any) => any;
|
|
15
|
-
}) | (StatusBadgeProps & {
|
|
16
|
-
component: React.ElementType;
|
|
17
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
18
|
-
})>, never> & Record<string, never>;
|
|
19
|
-
|
|
20
|
-
export { StatusBadge };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { TabsProps } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
type TabbedPageItem<Tab extends string> = {
|
|
6
|
-
tab: Tab;
|
|
7
|
-
icon?: FC<{
|
|
8
|
-
size?: string | number;
|
|
9
|
-
}>;
|
|
10
|
-
content?: FC;
|
|
11
|
-
};
|
|
12
|
-
interface TabbedPageProps<Tab extends string> extends TabsProps {
|
|
13
|
-
/** Store current tab on localStorage */
|
|
14
|
-
storageKey: string;
|
|
15
|
-
tabs: TabbedPageItem<Tab>[];
|
|
16
|
-
}
|
|
17
|
-
declare function TabbedPage<Tab extends string>({ storageKey, tabs, ...tabsProps }: TabbedPageProps<Tab>): react.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { TabbedPage, type TabbedPageItem, type TabbedPageProps };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ModalProps } from '@mantine/core';
|
|
4
|
-
import { MonacoLanguage } from './monaco/index.cjs';
|
|
5
|
-
|
|
6
|
-
interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
|
|
7
|
-
title: string;
|
|
8
|
-
titleRight?: ReactNode;
|
|
9
|
-
value: string | undefined;
|
|
10
|
-
onUpdate: (value: string) => void;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
target?: (open: () => void) => ReactNode;
|
|
14
|
-
useMonaco?: boolean;
|
|
15
|
-
monacoLanguage?: MonacoLanguage;
|
|
16
|
-
}
|
|
17
|
-
declare function TextUpdateModal({ title, titleRight, value: _value, onUpdate, placeholder, disabled, target, useMonaco, monacoLanguage, ...modalProps }: TextUpdateModalProps): react.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { TextUpdateModal, type TextUpdateModalProps };
|
package/dist/formatting.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare function fmtDate(d: Date): string;
|
|
2
|
-
declare function fmtUtcDate(d: Date): string;
|
|
3
|
-
declare function fmtMonth(month: number): "Jan" | "Feb" | "Mar" | "Apr" | "May" | "Jun" | "Jul" | "Aug" | "Sep" | "Oct" | "Nov" | "Dec" | undefined;
|
|
4
|
-
declare const fmtDateWithMinutes: (d: Date) => string;
|
|
5
|
-
declare function fmtDuration(startTs: number, endTs: number): string;
|
|
6
|
-
declare function fmtUpperCamelcase(input: string): string;
|
|
7
|
-
declare function fmtSnakeCaseToUpperSpaceCase(snake: string): string;
|
|
8
|
-
declare const BYTES_PER_KB = 1024;
|
|
9
|
-
declare const BYTES_PER_MB: number;
|
|
10
|
-
declare const BYTES_PER_GB: number;
|
|
11
|
-
declare function fmtSizeBytes(bytes: number): string;
|
|
12
|
-
declare function fmtRateBytes(bytes: number): string;
|
|
13
|
-
|
|
14
|
-
export { BYTES_PER_GB, BYTES_PER_KB, BYTES_PER_MB, fmtDate, fmtDateWithMinutes, fmtDuration, fmtMonth, fmtRateBytes, fmtSizeBytes, fmtSnakeCaseToUpperSpaceCase, fmtUpperCamelcase, fmtUtcDate };
|
package/dist/hooks.d.cts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as _mantine_core from '@mantine/core';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
|
|
4
|
-
declare function useKeyListener(listenKey: string, onPress: () => void, extra?: "shift" | "ctrl"): void;
|
|
5
|
-
declare function useShiftKeyListener(listenKey: string, onPress: () => void): void;
|
|
6
|
-
/** Listens for ctrl (or CMD on mac) + the listenKey */
|
|
7
|
-
declare function useCtrlKeyListener(listenKey: string, onPress: () => void): void;
|
|
8
|
-
type Dimensions = {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
|
-
declare function useWindowDimensions(): Dimensions;
|
|
13
|
-
declare function useSearchCombobox(props?: {
|
|
14
|
-
onOpen?: () => void;
|
|
15
|
-
onClose?: () => void;
|
|
16
|
-
onSearch?: (search: string) => void;
|
|
17
|
-
disableSelectFirst?: boolean;
|
|
18
|
-
}): {
|
|
19
|
-
search: string;
|
|
20
|
-
setSearch: react.Dispatch<react.SetStateAction<string>>;
|
|
21
|
-
combobox: _mantine_core.ComboboxStore;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* A custom React hook that debounces a value, delaying its update until after
|
|
25
|
-
* a specified period of inactivity. This is useful for performance optimization
|
|
26
|
-
* in scenarios like search inputs, form validation, or API calls.
|
|
27
|
-
*/
|
|
28
|
-
declare function useDebounce<T>(value: T, delay: number): T;
|
|
29
|
-
|
|
30
|
-
export { type Dimensions, useCtrlKeyListener, useDebounce, useKeyListener, useSearchCombobox, useShiftKeyListener, useWindowDimensions };
|
package/dist/index.d.cts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth, useUserId } from './auth/index.cjs';
|
|
2
|
-
export { ColorIntention, colorByIntention, hexColorByIntention } from './color.cjs';
|
|
3
|
-
export { BYTES_PER_GB, BYTES_PER_KB, BYTES_PER_MB, fmtDate, fmtDateWithMinutes, fmtDuration, fmtMonth, fmtRateBytes, fmtSizeBytes, fmtSnakeCaseToUpperSpaceCase, fmtUpperCamelcase, fmtUtcDate } from './formatting.cjs';
|
|
4
|
-
export { Dimensions, useCtrlKeyListener, useDebounce, useKeyListener, useSearchCombobox, useShiftKeyListener, useWindowDimensions } from './hooks.cjs';
|
|
5
|
-
export { AdditionalColors, DARK_BODY, LIGHT_BODY, ThemeProvider, ThemeProviderProps, functionColorsTuple, opacityColorsTuple } from './theme.cjs';
|
|
6
|
-
export { deepCompare, filterBySplit, filterMultitermBySplit } from './utils.cjs';
|
|
7
|
-
export { Config, ConfigFieldArgs, ConfigGroup, ConfigGroupArgs, ConfigProps } from './components/config/index.cjs';
|
|
8
|
-
export { DividedChildren } from './components/divided-children/index.cjs';
|
|
9
|
-
export { FancyCard } from './components/fancy-card/index.cjs';
|
|
10
|
-
export { MonacoDiffEditor, MonacoDiffEditorProps, MonacoEditor, MonacoEditorProps, MonacoLanguage, languageFromPath } from './components/monaco/index.cjs';
|
|
11
|
-
export { BackButton, BackButtonProps } from './components/back-button.cjs';
|
|
12
|
-
export { ButtonLink, ButtonLinkProps } from './components/button-link.cjs';
|
|
13
|
-
export { ConfirmButton, ConfirmButtonProps } from './components/confirm-button.cjs';
|
|
14
|
-
export { ConfirmIcon, ConfirmIconProps } from './components/confirm-icon.cjs';
|
|
15
|
-
export { ConfirmModal, ConfirmModalProps } from './components/confirm-modal.cjs';
|
|
16
|
-
export { CopyButton, CopyButtonProps, sendCopyNotification } from './components/copy-button.cjs';
|
|
17
|
-
export { CopyText, CopyTextProps } from './components/copy-text.cjs';
|
|
18
|
-
export { CreateModal, CreateModalProps } from './components/create-modal.cjs';
|
|
19
|
-
export { DataTable, DataTableProps, SortableHeader } from './components/data-table.cjs';
|
|
20
|
-
export { EnableSwitch, EnableSwitchProps } from './components/enable-switch.cjs';
|
|
21
|
-
export { EntityHeader, EntityHeaderProps } from './components/entity-header.cjs';
|
|
22
|
-
export { EntityPage, EntityPageProps } from './components/entity-page.cjs';
|
|
23
|
-
export { HoverError, HoverErrorProps } from './components/hover-error.cjs';
|
|
24
|
-
export { InfoCard, InfoCardProps } from './components/info-card.cjs';
|
|
25
|
-
export { InputList, InputListProps } from './components/input-list.cjs';
|
|
26
|
-
export { LabelledSwitch, LabelledSwitchProps } from './components/labelled-switch.cjs';
|
|
27
|
-
export { LabelsGroup, LabelsGroupProps } from './components/labels-group.cjs';
|
|
28
|
-
export { LoadingScreen } from './components/loading-screen.cjs';
|
|
29
|
-
export { MobileFriendlyTabs, MobileFriendlyTabsContent, MobileFriendlyTabsProps, MobileFriendlyTabsSelector, MobileFriendlyTabsSelectorProps, MobileFriendlyTabsWrapper, Tab, TabNoContent } from './components/mobile-friendly-tabs.cjs';
|
|
30
|
-
export { PageGuard, PageGuardProps } from './components/page-guard.cjs';
|
|
31
|
-
export { Page, PageProps } from './components/page.cjs';
|
|
32
|
-
export { SearchInput, SearchInputProps } from './components/search-input.cjs';
|
|
33
|
-
export { Section, SectionProps } from './components/section.cjs';
|
|
34
|
-
export { SharedTextUpdate, SharedTextUpdateData, SharedTextUpdateProps, useSharedTextUpdateData } from './components/shared-text-update.cjs';
|
|
35
|
-
export { ShowHideButton } from './components/show-hide-button.cjs';
|
|
36
|
-
export { StatBar, StatBarProps } from './components/stat-bar.cjs';
|
|
37
|
-
export { StatCell, StatCellProps } from './components/stat-cell.cjs';
|
|
38
|
-
export { StatusBadge } from './components/status-badge.cjs';
|
|
39
|
-
export { TabbedPage, TabbedPageItem, TabbedPageProps } from './components/tabbed-page.cjs';
|
|
40
|
-
export { TableSkeleton } from './components/table-skeleton.cjs';
|
|
41
|
-
export { TextUpdateModal, TextUpdateModalProps } from './components/text-update-modal.cjs';
|
|
42
|
-
export { ThemeToggle } from './components/theme-toggle.cjs';
|
|
43
|
-
export { ConfigInput, ConfigItem, ConfigItemProps, ConfigList, ConfigSwitch } from './components/config/item.cjs';
|
|
44
|
-
export { ConfigLayout } from './components/config/layout.cjs';
|
|
45
|
-
export { ConfirmUpdate, ConfirmUpdateProps } from './components/config/confirm.cjs';
|
|
46
|
-
export { EnrollPasskey } from './auth/profile/passkey.cjs';
|
|
47
|
-
export { EnrollTotp } from './auth/profile/totp.cjs';
|
|
48
|
-
export { LinkedLogins } from './auth/profile/linked-logins.cjs';
|
|
49
|
-
export { LoginBrandingProps, LoginPage } from './auth/login/index.cjs';
|
|
50
|
-
export { UnsavedChanges } from './components/config/unsaved-changes.cjs';
|
|
51
|
-
export { sanitizeQuery, sanitizeQueryInner } from './auth/utils.cjs';
|
|
52
|
-
import '@tanstack/react-query';
|
|
53
|
-
import 'mogh_auth_client';
|
|
54
|
-
import '@mantine/core';
|
|
55
|
-
import 'react';
|
|
56
|
-
import '@tanstack/react-table';
|
package/dist/theme.d.cts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { DefaultMantineColor, MantineColorsTuple } from '@mantine/core';
|
|
4
|
-
|
|
5
|
-
declare const LIGHT_BODY = "#f8f9fa";
|
|
6
|
-
declare const DARK_BODY = "#0f1115";
|
|
7
|
-
type AdditionalColors = Partial<Record<DefaultMantineColor, MantineColorsTuple>> | undefined;
|
|
8
|
-
interface ThemeProviderProps {
|
|
9
|
-
primaryColor?: DefaultMantineColor;
|
|
10
|
-
additionalColors?: AdditionalColors;
|
|
11
|
-
}
|
|
12
|
-
declare function ThemeProvider({ children, ...props }: ThemeProviderProps & {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}): react.JSX.Element;
|
|
15
|
-
declare function opacityColorsTuple(baseHex: string, length?: number): MantineColorsTuple;
|
|
16
|
-
declare function functionColorsTuple(base: string, fn: (color: string) => string, length?: number): MantineColorsTuple;
|
|
17
|
-
|
|
18
|
-
export { type AdditionalColors, DARK_BODY, LIGHT_BODY, ThemeProvider, type ThemeProviderProps, functionColorsTuple, opacityColorsTuple };
|
package/dist/utils.d.cts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Does deep compare of 2 items, returning `true` if equal.
|
|
3
|
-
*
|
|
4
|
-
* - Functions: Always `true`
|
|
5
|
-
* - Primitives: Returns direct `a === b`
|
|
6
|
-
* - Arrays: Returns same items and ordering (recursive)
|
|
7
|
-
* - Objects: Returns same keys / values (recursive)
|
|
8
|
-
*
|
|
9
|
-
* @param a Item a
|
|
10
|
-
* @param b Item b
|
|
11
|
-
* @returns a === b
|
|
12
|
-
*/
|
|
13
|
-
declare function deepCompare(a: any, b: any): boolean;
|
|
14
|
-
declare function filterBySplit<T>(items: T[] | undefined, search: string, extract: (item: T) => string): T[];
|
|
15
|
-
declare function filterMultitermBySplit<T>(items: T[] | undefined, search: string, extract: (item: T) => (string | undefined)[]): T[];
|
|
16
|
-
|
|
17
|
-
export { deepCompare, filterBySplit, filterMultitermBySplit };
|