mogh_ui 0.7.3 → 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.d.ts +8 -11
- package/dist/components/data-table.d.ts.map +1 -0
- 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 +5 -5
- 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 -44
- 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,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=yaml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml.d.ts","sourceRoot":"","sources":["../../../../src/components/monaco/syntax/yaml.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/components/monaco/theme.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface PageGuardProps extends CenterProps {
|
|
1
|
+
import { CenterProps } from "@mantine/core";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface PageGuardProps extends CenterProps {
|
|
6
4
|
isPending?: boolean;
|
|
7
5
|
error?: false | string;
|
|
8
6
|
children?: ReactNode;
|
|
9
7
|
}
|
|
10
|
-
declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
11
|
-
|
|
12
|
-
export { PageGuard, type PageGuardProps };
|
|
8
|
+
export declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
9
|
+
//# sourceMappingURL=page-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-guard.d.ts","sourceRoot":"","sources":["../../src/components/page-guard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAgB,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,WAAW,EACf,EAAE,cAAc,+TAkBhB"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FC, ReactNode } from
|
|
3
|
-
|
|
4
|
-
import { StackProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface PageProps extends StackProps {
|
|
1
|
+
import { StackProps } from "@mantine/core";
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
export interface PageProps extends StackProps {
|
|
7
4
|
title?: string;
|
|
8
5
|
icon?: FC<{
|
|
9
6
|
size?: string | number;
|
|
@@ -18,14 +15,13 @@ interface PageProps extends StackProps {
|
|
|
18
15
|
actions?: ReactNode;
|
|
19
16
|
children?: ReactNode;
|
|
20
17
|
}
|
|
21
|
-
declare const Page: (<C = "div">(props:
|
|
18
|
+
export declare const Page: (<C = "div">(props: import("@mantine/core").PolymorphicComponentProps<C, PageProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(PageProps & {
|
|
19
|
+
component: React.ElementType;
|
|
20
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
21
|
+
}) | (PageProps & {
|
|
22
22
|
component?: any;
|
|
23
23
|
} & Omit<any, "component" | keyof PageProps> & {
|
|
24
24
|
ref?: any;
|
|
25
25
|
renderRoot?: (props: any) => any;
|
|
26
|
-
}) | (PageProps & {
|
|
27
|
-
component: React.ElementType;
|
|
28
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
29
26
|
})>, never> & Record<string, never>;
|
|
30
|
-
|
|
31
|
-
export { Page, type PageProps };
|
|
27
|
+
//# sourceMappingURL=page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/components/page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EAEX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,EAAE,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,qDAAqD;IACrD,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,IAAI;;;;;;;;mCAuEhB,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface SearchInputProps extends TextInputProps {
|
|
1
|
+
import { TextInputProps } from "@mantine/core";
|
|
2
|
+
export interface SearchInputProps extends TextInputProps {
|
|
5
3
|
onSearch?: (search: string) => void;
|
|
6
4
|
}
|
|
7
|
-
declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react.JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { SearchInput, type SearchInputProps };
|
|
5
|
+
export declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=search-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/components/search-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,eAAe,CAAC;AAG1D,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,gBAAgB,+BAclB"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
|
|
4
|
-
import { StackProps, MantineStyleProps, CenterProps } from '@mantine/core';
|
|
5
|
-
|
|
6
|
-
interface SectionProps extends StackProps {
|
|
1
|
+
import { CenterProps, MantineStyleProps, StackProps } from "@mantine/core";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface SectionProps extends StackProps {
|
|
7
4
|
titleFz?: MantineStyleProps["fz"];
|
|
8
5
|
titleMb?: MantineStyleProps["mb"];
|
|
9
6
|
titleDimmed?: boolean;
|
|
@@ -20,14 +17,13 @@ interface SectionProps extends StackProps {
|
|
|
20
17
|
forceHeaderGroup?: boolean;
|
|
21
18
|
onHeaderClick?: () => void;
|
|
22
19
|
}
|
|
23
|
-
declare const Section: (<C = "div">(props:
|
|
20
|
+
export declare const Section: (<C = "div">(props: import("@mantine/core").PolymorphicComponentProps<C, SectionProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(SectionProps & {
|
|
21
|
+
component: React.ElementType;
|
|
22
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
23
|
+
}) | (SectionProps & {
|
|
24
24
|
component?: any;
|
|
25
25
|
} & Omit<any, "component" | keyof SectionProps> & {
|
|
26
26
|
ref?: any;
|
|
27
27
|
renderRoot?: (props: any) => any;
|
|
28
|
-
}) | (SectionProps & {
|
|
29
|
-
component: React.ElementType;
|
|
30
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
31
28
|
})>, never> & Record<string, never>;
|
|
32
|
-
|
|
33
|
-
export { Section, type SectionProps };
|
|
29
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/components/section.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAIX,iBAAiB,EAEjB,UAAU,EAEX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9C,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,OAAO,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,OAAO;;;;;;;;mCA0GnB,CAAC"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface SharedTextUpdateData {
|
|
1
|
+
import { ModalProps } from "@mantine/core";
|
|
2
|
+
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
3
|
+
export interface SharedTextUpdateData {
|
|
6
4
|
title: string;
|
|
7
5
|
value: string;
|
|
8
6
|
placeholder: string;
|
|
9
7
|
onUpdate: (value: string) => void;
|
|
10
8
|
titleRight?: ReactNode;
|
|
11
9
|
}
|
|
12
|
-
declare function useSharedTextUpdateData(): [false | SharedTextUpdateData, Dispatch<SetStateAction<false | SharedTextUpdateData>>];
|
|
13
|
-
interface SharedTextUpdateProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
|
|
10
|
+
export declare function useSharedTextUpdateData(): [false | SharedTextUpdateData, Dispatch<SetStateAction<false | SharedTextUpdateData>>];
|
|
11
|
+
export interface SharedTextUpdateProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
|
|
14
12
|
data: false | SharedTextUpdateData;
|
|
15
13
|
setData: Dispatch<SetStateAction<false | SharedTextUpdateData>>;
|
|
16
14
|
disabled?: boolean;
|
|
17
15
|
}
|
|
18
|
-
declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): react.JSX.Element;
|
|
19
|
-
|
|
20
|
-
export { SharedTextUpdate, type SharedTextUpdateData, type SharedTextUpdateProps, useSharedTextUpdateData };
|
|
16
|
+
export declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=shared-text-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-text-update.d.ts","sourceRoot":"","sources":["../../src/components/shared-text-update.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EAIX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,wBAAgB,uBAAuB,2FAEtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAC1B,SAAS,CACV;IACC,IAAI,EAAE,KAAK,GAAG,oBAAoB,CAAC;IACnC,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,GAAG,oBAAoB,CAAC,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,qBAAqB,+BAmDvB"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function ShowHideButton({ show, setShow, }: {
|
|
1
|
+
export declare function ShowHideButton({ show, setShow, }: {
|
|
4
2
|
show: boolean;
|
|
5
3
|
setShow: (show: boolean) => void;
|
|
6
|
-
}): react.JSX.Element;
|
|
7
|
-
|
|
8
|
-
export { ShowHideButton };
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=show-hide-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-hide-button.d.ts","sourceRoot":"","sources":["../../src/components/show-hide-button.tsx"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,OAAO,GACR,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC,+BAeA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface StatBarProps extends StackProps {
|
|
1
|
+
import { StackProps } from "@mantine/core";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface StatBarProps extends StackProps {
|
|
6
4
|
title: string;
|
|
7
5
|
icon: ReactNode;
|
|
8
6
|
description?: ReactNode;
|
|
@@ -10,6 +8,5 @@ interface StatBarProps extends StackProps {
|
|
|
10
8
|
warning: number | undefined;
|
|
11
9
|
critical: number | undefined;
|
|
12
10
|
}
|
|
13
|
-
declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): react.JSX.Element;
|
|
14
|
-
|
|
15
|
-
export { StatBar, type StatBarProps };
|
|
11
|
+
export declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=stat-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stat-bar.d.ts","sourceRoot":"","sources":["../../src/components/stat-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAQ,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,WAAW,EACX,UAAU,EAAE,WAAW,EACvB,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,GAAG,KAAK,EACT,EAAE,YAAY,+BAmCd"}
|
|
@@ -45,7 +45,7 @@ function StatCell({
|
|
|
45
45
|
...barProps
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs",
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs", wrap: "nowrap", ...groupProps, children: [
|
|
49
49
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
50
|
import_core.Text,
|
|
51
51
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/stat-cell.tsx"],"sourcesContent":["import { ColorIntention, hexColorByIntention } from \"../color\";\nimport {\n ActionIcon,\n FloatingPosition,\n Group,\n GroupProps,\n HoverCard,\n Progress,\n ProgressProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { ReactNode } from \"react\";\nimport { Info } from \"lucide-react\";\n\nexport interface StatCellProps extends GroupProps {\n value: number | undefined;\n intent: ColorIntention;\n textProps?: TextProps;\n barProps?: ProgressProps;\n info?: ReactNode;\n infoPosition?: FloatingPosition;\n infoDisabled?: boolean;\n}\n\nexport function StatCell({\n value,\n intent,\n textProps,\n barProps,\n info,\n infoPosition = \"left-start\",\n infoDisabled,\n ...groupProps\n}: StatCellProps) {\n const ProgressComponent = (\n <Progress\n value={value ?? 0}\n color={hexColorByIntention(intent)}\n w={200}\n size=\"xl\"\n {...barProps}\n />\n );\n return (\n <Group gap=\"xs\"
|
|
1
|
+
{"version":3,"sources":["../../src/components/stat-cell.tsx"],"sourcesContent":["import { ColorIntention, hexColorByIntention } from \"../color\";\nimport {\n ActionIcon,\n FloatingPosition,\n Group,\n GroupProps,\n HoverCard,\n Progress,\n ProgressProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { ReactNode } from \"react\";\nimport { Info } from \"lucide-react\";\n\nexport interface StatCellProps extends GroupProps {\n value: number | undefined;\n intent: ColorIntention;\n textProps?: TextProps;\n barProps?: ProgressProps;\n info?: ReactNode;\n infoPosition?: FloatingPosition;\n infoDisabled?: boolean;\n}\n\nexport function StatCell({\n value,\n intent,\n textProps,\n barProps,\n info,\n infoPosition = \"left-start\",\n infoDisabled,\n ...groupProps\n}: StatCellProps) {\n const ProgressComponent = (\n <Progress\n value={value ?? 0}\n color={hexColorByIntention(intent)}\n w={200}\n size=\"xl\"\n {...barProps}\n />\n );\n return (\n <Group gap=\"xs\" wrap=\"nowrap\" {...groupProps}>\n <Text\n w={64}\n c={value === undefined ? \"dimmed\" : undefined}\n {...textProps}\n >\n {value === undefined ? \"N/A\" : value.toFixed(1) + \"%\"}\n </Text>\n {!info && ProgressComponent}\n {info && (\n <HoverCard position={infoPosition} disabled={infoDisabled}>\n <HoverCard.Target>\n <Group gap=\"xs\" wrap=\"nowrap\">\n {ProgressComponent}\n <ActionIcon variant=\"subtle\" disabled={infoDisabled}>\n <Info size=\"1rem\" />\n </ActionIcon>\n </Group>\n </HoverCard.Target>\n <HoverCard.Dropdown>{info}</HoverCard.Dropdown>\n </HoverCard>\n )}\n </Group>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoCI;AApCJ,mBAAoD;AACpD,kBAUO;AAEP,0BAAqB;AAYd,SAAS,SAAS;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,QAAM,oBACJ;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,SAAS;AAAA,MAChB,WAAO,kCAAoB,MAAM;AAAA,MACjC,GAAG;AAAA,MACH,MAAK;AAAA,MACJ,GAAG;AAAA;AAAA,EACN;AAEF,SACE,6CAAC,qBAAM,KAAI,MAAK,MAAK,UAAU,GAAG,YAChC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,GAAG;AAAA,QACH,GAAG,UAAU,SAAY,WAAW;AAAA,QACnC,GAAG;AAAA,QAEH,oBAAU,SAAY,QAAQ,MAAM,QAAQ,CAAC,IAAI;AAAA;AAAA,IACpD;AAAA,IACC,CAAC,QAAQ;AAAA,IACT,QACC,6CAAC,yBAAU,UAAU,cAAc,UAAU,cAC3C;AAAA,kDAAC,sBAAU,QAAV,EACC,uDAAC,qBAAM,KAAI,MAAK,MAAK,UAClB;AAAA;AAAA,QACD,4CAAC,0BAAW,SAAQ,UAAS,UAAU,cACrC,sDAAC,4BAAK,MAAK,QAAO,GACpB;AAAA,SACF,GACF;AAAA,MACA,4CAAC,sBAAU,UAAV,EAAoB,gBAAK;AAAA,OAC5B;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface StatCellProps extends GroupProps {
|
|
1
|
+
import { ColorIntention } from "../color";
|
|
2
|
+
import { FloatingPosition, GroupProps, ProgressProps, TextProps } from "@mantine/core";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
export interface StatCellProps extends GroupProps {
|
|
7
5
|
value: number | undefined;
|
|
8
6
|
intent: ColorIntention;
|
|
9
7
|
textProps?: TextProps;
|
|
@@ -12,6 +10,5 @@ interface StatCellProps extends GroupProps {
|
|
|
12
10
|
infoPosition?: FloatingPosition;
|
|
13
11
|
infoDisabled?: boolean;
|
|
14
12
|
}
|
|
15
|
-
declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): react.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { StatCell, type StatCellProps };
|
|
13
|
+
export declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=stat-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stat-cell.d.ts","sourceRoot":"","sources":["../../src/components/stat-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAuB,MAAM,UAAU,CAAC;AAC/D,OAAO,EAEL,gBAAgB,EAEhB,UAAU,EAGV,aAAa,EAEb,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,YAA2B,EAC3B,YAAY,EACZ,GAAG,UAAU,EACd,EAAE,aAAa,+BAmCf"}
|
|
@@ -28,7 +28,7 @@ function StatCell({
|
|
|
28
28
|
...barProps
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
return /* @__PURE__ */ jsxs(Group, { gap: "xs",
|
|
31
|
+
return /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", ...groupProps, children: [
|
|
32
32
|
/* @__PURE__ */ jsx(
|
|
33
33
|
Text,
|
|
34
34
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/stat-cell.tsx"],"sourcesContent":["import { ColorIntention, hexColorByIntention } from \"../color\";\nimport {\n ActionIcon,\n FloatingPosition,\n Group,\n GroupProps,\n HoverCard,\n Progress,\n ProgressProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { ReactNode } from \"react\";\nimport { Info } from \"lucide-react\";\n\nexport interface StatCellProps extends GroupProps {\n value: number | undefined;\n intent: ColorIntention;\n textProps?: TextProps;\n barProps?: ProgressProps;\n info?: ReactNode;\n infoPosition?: FloatingPosition;\n infoDisabled?: boolean;\n}\n\nexport function StatCell({\n value,\n intent,\n textProps,\n barProps,\n info,\n infoPosition = \"left-start\",\n infoDisabled,\n ...groupProps\n}: StatCellProps) {\n const ProgressComponent = (\n <Progress\n value={value ?? 0}\n color={hexColorByIntention(intent)}\n w={200}\n size=\"xl\"\n {...barProps}\n />\n );\n return (\n <Group gap=\"xs\"
|
|
1
|
+
{"version":3,"sources":["../../src/components/stat-cell.tsx"],"sourcesContent":["import { ColorIntention, hexColorByIntention } from \"../color\";\nimport {\n ActionIcon,\n FloatingPosition,\n Group,\n GroupProps,\n HoverCard,\n Progress,\n ProgressProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { ReactNode } from \"react\";\nimport { Info } from \"lucide-react\";\n\nexport interface StatCellProps extends GroupProps {\n value: number | undefined;\n intent: ColorIntention;\n textProps?: TextProps;\n barProps?: ProgressProps;\n info?: ReactNode;\n infoPosition?: FloatingPosition;\n infoDisabled?: boolean;\n}\n\nexport function StatCell({\n value,\n intent,\n textProps,\n barProps,\n info,\n infoPosition = \"left-start\",\n infoDisabled,\n ...groupProps\n}: StatCellProps) {\n const ProgressComponent = (\n <Progress\n value={value ?? 0}\n color={hexColorByIntention(intent)}\n w={200}\n size=\"xl\"\n {...barProps}\n />\n );\n return (\n <Group gap=\"xs\" wrap=\"nowrap\" {...groupProps}>\n <Text\n w={64}\n c={value === undefined ? \"dimmed\" : undefined}\n {...textProps}\n >\n {value === undefined ? \"N/A\" : value.toFixed(1) + \"%\"}\n </Text>\n {!info && ProgressComponent}\n {info && (\n <HoverCard position={infoPosition} disabled={infoDisabled}>\n <HoverCard.Target>\n <Group gap=\"xs\" wrap=\"nowrap\">\n {ProgressComponent}\n <ActionIcon variant=\"subtle\" disabled={infoDisabled}>\n <Info size=\"1rem\" />\n </ActionIcon>\n </Group>\n </HoverCard.Target>\n <HoverCard.Dropdown>{info}</HoverCard.Dropdown>\n </HoverCard>\n )}\n </Group>\n );\n}\n"],"mappings":"AAoCI,cAqBQ,YArBR;AApCJ,SAAyB,2BAA2B;AACpD;AAAA,EACE;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,OAEK;AAEP,SAAS,YAAY;AAYd,SAAS,SAAS;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,QAAM,oBACJ;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,SAAS;AAAA,MAChB,OAAO,oBAAoB,MAAM;AAAA,MACjC,GAAG;AAAA,MACH,MAAK;AAAA,MACJ,GAAG;AAAA;AAAA,EACN;AAEF,SACE,qBAAC,SAAM,KAAI,MAAK,MAAK,UAAU,GAAG,YAChC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,GAAG;AAAA,QACH,GAAG,UAAU,SAAY,WAAW;AAAA,QACnC,GAAG;AAAA,QAEH,oBAAU,SAAY,QAAQ,MAAM,QAAQ,CAAC,IAAI;AAAA;AAAA,IACpD;AAAA,IACC,CAAC,QAAQ;AAAA,IACT,QACC,qBAAC,aAAU,UAAU,cAAc,UAAU,cAC3C;AAAA,0BAAC,UAAU,QAAV,EACC,+BAAC,SAAM,KAAI,MAAK,MAAK,UAClB;AAAA;AAAA,QACD,oBAAC,cAAW,SAAQ,UAAS,UAAU,cACrC,8BAAC,QAAK,MAAK,QAAO,GACpB;AAAA,SACF,GACF;AAAA,MACA,oBAAC,UAAU,UAAV,EAAoB,gBAAK;AAAA,OAC5B;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { TextProps } from '@mantine/core';
|
|
4
|
-
import { ColorIntention } from '../color.js';
|
|
5
|
-
|
|
1
|
+
import { TextProps } from "@mantine/core";
|
|
2
|
+
import { ColorIntention } from "../color";
|
|
6
3
|
interface StatusBadgeProps extends TextProps {
|
|
7
4
|
text: string | undefined;
|
|
8
5
|
intent: ColorIntention;
|
|
9
6
|
}
|
|
10
|
-
declare const StatusBadge: (<C = "div">(props:
|
|
7
|
+
export declare const StatusBadge: (<C = "div">(props: import("@mantine/core").PolymorphicComponentProps<C, StatusBadgeProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(StatusBadgeProps & {
|
|
8
|
+
component: React.ElementType;
|
|
9
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
10
|
+
}) | (StatusBadgeProps & {
|
|
11
11
|
component?: any;
|
|
12
12
|
} & Omit<any, "component" | keyof StatusBadgeProps> & {
|
|
13
13
|
ref?: any;
|
|
14
14
|
renderRoot?: (props: any) => any;
|
|
15
|
-
}) | (StatusBadgeProps & {
|
|
16
|
-
component: React.ElementType;
|
|
17
|
-
renderRoot?: (props: Record<string, any>) => any;
|
|
18
15
|
})>, never> & Record<string, never>;
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=status-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-badge.d.ts","sourceRoot":"","sources":["../../src/components/status-badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAA8B,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAuB,MAAM,UAAU,CAAC;AAK/D,UAAU,gBAAiB,SAAQ,SAAS;IAC1C,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,eAAO,MAAM,WAAW;;;;;;;;mCA+BvB,CAAC"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FC } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type TabbedPageItem<Tab extends string> = {
|
|
1
|
+
import { TabsProps } from "@mantine/core";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
export type TabbedPageItem<Tab extends string> = {
|
|
6
4
|
tab: Tab;
|
|
7
5
|
icon?: FC<{
|
|
8
6
|
size?: string | number;
|
|
9
7
|
}>;
|
|
10
8
|
content?: FC;
|
|
11
9
|
};
|
|
12
|
-
interface TabbedPageProps<Tab extends string> extends TabsProps {
|
|
10
|
+
export interface TabbedPageProps<Tab extends string> extends TabsProps {
|
|
13
11
|
/** Store current tab on localStorage */
|
|
14
12
|
storageKey: string;
|
|
15
13
|
tabs: TabbedPageItem<Tab>[];
|
|
16
14
|
}
|
|
17
|
-
declare function TabbedPage<Tab extends string>({ storageKey, tabs, ...tabsProps }: TabbedPageProps<Tab>): react.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { TabbedPage, type TabbedPageItem, type TabbedPageProps };
|
|
15
|
+
export declare function TabbedPage<Tab extends string>({ storageKey, tabs, ...tabsProps }: TabbedPageProps<Tab>): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=tabbed-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabbed-page.d.ts","sourceRoot":"","sources":["../../src/components/tabbed-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,SAAS,EAEV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,MAAM,IAAI;IAC/C,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,eAAe,CAAC,GAAG,SAAS,MAAM,CAAE,SAAQ,SAAS;IACpE,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;CAC7B;AAED,wBAAgB,UAAU,CAAC,GAAG,SAAS,MAAM,EAAE,EAC7C,UAAU,EACV,IAAI,EACJ,GAAG,SAAS,EACb,EAAE,eAAe,CAAC,GAAG,CAAC,+BAwCtB"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function TableSkeleton({ rows, rowHeight, }: {
|
|
1
|
+
export declare function TableSkeleton({ rows, rowHeight, }: {
|
|
4
2
|
rows?: number;
|
|
5
3
|
rowHeight?: string | number;
|
|
6
|
-
}): react.JSX.Element;
|
|
7
|
-
|
|
8
|
-
export { TableSkeleton };
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=table-skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/table-skeleton.tsx"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,EAC5B,IAAQ,EACR,SAAmB,GACpB,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,+BAQA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
|
|
1
|
+
import { ModalProps } from "@mantine/core";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { MonacoLanguage } from "./monaco";
|
|
4
|
+
export interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
|
|
7
5
|
title: string;
|
|
8
6
|
titleRight?: ReactNode;
|
|
9
7
|
value: string | undefined;
|
|
@@ -14,6 +12,5 @@ interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose
|
|
|
14
12
|
useMonaco?: boolean;
|
|
15
13
|
monacoLanguage?: MonacoLanguage;
|
|
16
14
|
}
|
|
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 };
|
|
15
|
+
export declare function TextUpdateModal({ title, titleRight, value: _value, onUpdate, placeholder, disabled, target, useMonaco, monacoLanguage, ...modalProps }: TextUpdateModalProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=text-update-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-update-modal.d.ts","sourceRoot":"","sources":["../../src/components/text-update-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EAIX,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AACvD,OAAO,EAAgB,cAAc,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAC1B,SAAS,CACV;IACC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IAEzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAUD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,UAAU,EACV,KAAK,EAAE,MAAW,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,SAAS,EACT,cAAc,EACd,GAAG,UAAU,EACd,EAAE,oBAAoB,+BA8DtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../src/components/theme-toggle.tsx"],"names":[],"mappings":"AASA,wBAAgB,WAAW,gCAyB1B"}
|
package/dist/formatting.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
declare function fmtDate(d: Date): string;
|
|
2
|
-
declare function fmtUtcDate(d: Date): string;
|
|
3
|
-
declare function fmtMonth(month: number): "
|
|
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 };
|
|
1
|
+
export declare function fmtDate(d: Date): string;
|
|
2
|
+
export declare function fmtUtcDate(d: Date): string;
|
|
3
|
+
export declare function fmtMonth(month: number): "Apr" | "Aug" | "Dec" | "Feb" | "Jan" | "Jul" | "Jun" | "Mar" | "May" | "Nov" | "Oct" | "Sep" | undefined;
|
|
4
|
+
export declare const fmtDateWithMinutes: (d: Date) => string;
|
|
5
|
+
export declare function fmtDuration(startTs: number, endTs: number): string;
|
|
6
|
+
export declare function fmtUpperCamelcase(input: string): string;
|
|
7
|
+
export declare function fmtSnakeCaseToUpperSpaceCase(snake: string): string;
|
|
8
|
+
export declare const BYTES_PER_KB = 1024;
|
|
9
|
+
export declare const BYTES_PER_MB: number;
|
|
10
|
+
export declare const BYTES_PER_GB: number;
|
|
11
|
+
export declare function fmtSizeBytes(bytes: number): string;
|
|
12
|
+
export declare function fmtRateBytes(bytes: number): string;
|
|
13
|
+
//# sourceMappingURL=formatting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../src/formatting.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,UAM9B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,UAMjC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,6GA2BrC;AAED,eAAO,MAAM,kBAAkB,MAAO,IAAI,WAGzC,CAAC;AAEF,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAUzD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,UAE9C;AAGD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,UAMzD;AAED,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,YAAY,QAAsB,CAAC;AAChD,eAAO,MAAM,YAAY,QAAsB,CAAC;AAEhD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,UAUzC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,UAEzC"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function useKeyListener(listenKey: string, onPress: () => void, extra?: "shift" | "ctrl"): void;
|
|
5
|
-
declare function useShiftKeyListener(listenKey: string, onPress: () => void): void;
|
|
1
|
+
export declare function useKeyListener(listenKey: string, onPress: () => void, extra?: "shift" | "ctrl"): void;
|
|
2
|
+
export declare function useShiftKeyListener(listenKey: string, onPress: () => void): void;
|
|
6
3
|
/** Listens for ctrl (or CMD on mac) + the listenKey */
|
|
7
|
-
declare function useCtrlKeyListener(listenKey: string, onPress: () => void): void;
|
|
8
|
-
type Dimensions = {
|
|
4
|
+
export declare function useCtrlKeyListener(listenKey: string, onPress: () => void): void;
|
|
5
|
+
export type Dimensions = {
|
|
9
6
|
width: number;
|
|
10
7
|
height: number;
|
|
11
8
|
};
|
|
12
|
-
declare function useWindowDimensions(): Dimensions;
|
|
13
|
-
declare function useSearchCombobox(props?: {
|
|
9
|
+
export declare function useWindowDimensions(): Dimensions;
|
|
10
|
+
export declare function useSearchCombobox(props?: {
|
|
14
11
|
onOpen?: () => void;
|
|
15
12
|
onClose?: () => void;
|
|
16
13
|
onSearch?: (search: string) => void;
|
|
17
14
|
disableSelectFirst?: boolean;
|
|
18
15
|
}): {
|
|
19
16
|
search: string;
|
|
20
|
-
setSearch: react.Dispatch<react.SetStateAction<string>>;
|
|
21
|
-
combobox:
|
|
17
|
+
setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
combobox: import("@mantine/core").ComboboxStore;
|
|
22
19
|
};
|
|
23
20
|
/**
|
|
24
21
|
* A custom React hook that debounces a value, delaying its update until after
|
|
25
22
|
* a specified period of inactivity. This is useful for performance optimization
|
|
26
23
|
* in scenarios like search inputs, form validation, or API calls.
|
|
27
24
|
*/
|
|
28
|
-
declare function useDebounce<T>(value: T, delay: number): T;
|
|
29
|
-
|
|
30
|
-
export { type Dimensions, useCtrlKeyListener, useDebounce, useKeyListener, useSearchCombobox, useShiftKeyListener, useWindowDimensions };
|
|
25
|
+
export declare function useDebounce<T>(value: T, delay: number): T;
|
|
26
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,IAAI,EACnB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,QA0BzB;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,QAEzE;AAED,uDAAuD;AACvD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,QAExE;AAED,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3D,wBAAgB,mBAAmB,eAmBlC;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE;IACxC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;;;;EAyBA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAczD"}
|