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.
Files changed (196) hide show
  1. package/dist/auth/index.d.ts +16 -22
  2. package/dist/auth/index.d.ts.map +1 -0
  3. package/dist/auth/login/header.d.ts +4 -7
  4. package/dist/auth/login/header.d.ts.map +1 -0
  5. package/dist/auth/login/index.d.ts +4 -7
  6. package/dist/auth/login/index.d.ts.map +1 -0
  7. package/dist/auth/profile/index.d.ts +4 -5
  8. package/dist/auth/profile/index.d.ts.map +1 -0
  9. package/dist/auth/profile/linked-logins.d.ts +4 -7
  10. package/dist/auth/profile/linked-logins.d.ts.map +1 -0
  11. package/dist/auth/profile/passkey.d.ts +3 -6
  12. package/dist/auth/profile/passkey.d.ts.map +1 -0
  13. package/dist/auth/profile/totp.d.ts +3 -6
  14. package/dist/auth/profile/totp.d.ts.map +1 -0
  15. package/dist/auth/utils.d.ts +3 -4
  16. package/dist/auth/utils.d.ts.map +1 -0
  17. package/dist/color.d.ts +4 -5
  18. package/dist/color.d.ts.map +1 -0
  19. package/dist/components/back-button.d.ts +4 -7
  20. package/dist/components/back-button.d.ts.map +1 -0
  21. package/dist/components/button-link.d.ts +4 -7
  22. package/dist/components/button-link.d.ts.map +1 -0
  23. package/dist/components/config/confirm.d.ts +4 -8
  24. package/dist/components/config/confirm.d.ts.map +1 -0
  25. package/dist/components/config/group.d.ts +9 -10
  26. package/dist/components/config/group.d.ts.map +1 -0
  27. package/dist/components/config/index.d.ts +12 -25
  28. package/dist/components/config/index.d.ts.map +1 -0
  29. package/dist/components/config/item.d.ts +15 -19
  30. package/dist/components/config/item.d.ts.map +1 -0
  31. package/dist/components/config/layout.d.ts +5 -9
  32. package/dist/components/config/layout.d.ts.map +1 -0
  33. package/dist/components/config/unsaved-changes.d.ts +3 -6
  34. package/dist/components/config/unsaved-changes.d.ts.map +1 -0
  35. package/dist/components/confirm-button.d.ts +8 -12
  36. package/dist/components/confirm-button.d.ts.map +1 -0
  37. package/dist/components/confirm-icon.d.ts +8 -12
  38. package/dist/components/confirm-icon.d.ts.map +1 -0
  39. package/dist/components/confirm-modal.d.ts +5 -8
  40. package/dist/components/confirm-modal.d.ts.map +1 -0
  41. package/dist/components/copy-button.d.ts +6 -9
  42. package/dist/components/copy-button.d.ts.map +1 -0
  43. package/dist/components/copy-text.d.ts +4 -7
  44. package/dist/components/copy-text.d.ts.map +1 -0
  45. package/dist/components/create-modal.d.ts +5 -8
  46. package/dist/components/create-modal.d.ts.map +1 -0
  47. package/dist/components/data-table.d.ts +8 -11
  48. package/dist/components/data-table.d.ts.map +1 -0
  49. package/dist/components/divided-children/index.d.ts +6 -10
  50. package/dist/components/divided-children/index.d.ts.map +1 -0
  51. package/dist/components/enable-switch.d.ts +4 -7
  52. package/dist/components/enable-switch.d.ts.map +1 -0
  53. package/dist/components/entity-header.d.ts +5 -8
  54. package/dist/components/entity-header.d.ts.map +1 -0
  55. package/dist/components/entity-page.d.ts +5 -8
  56. package/dist/components/entity-page.d.ts.map +1 -0
  57. package/dist/components/fancy-card/index.d.ts +7 -10
  58. package/dist/components/fancy-card/index.d.ts.map +1 -0
  59. package/dist/components/hover-error.d.ts +3 -6
  60. package/dist/components/hover-error.d.ts.map +1 -0
  61. package/dist/components/info-card.d.ts +8 -12
  62. package/dist/components/info-card.d.ts.map +1 -0
  63. package/dist/components/input-list.d.ts +4 -7
  64. package/dist/components/input-list.d.ts.map +1 -0
  65. package/dist/components/labelled-switch.d.ts +5 -8
  66. package/dist/components/labelled-switch.d.ts.map +1 -0
  67. package/dist/components/labels-group.d.ts +4 -7
  68. package/dist/components/labels-group.d.ts.map +1 -0
  69. package/dist/components/loading-screen.d.ts +4 -7
  70. package/dist/components/loading-screen.d.ts.map +1 -0
  71. package/dist/components/mobile-friendly-tabs.d.ts +12 -15
  72. package/dist/components/mobile-friendly-tabs.d.ts.map +1 -0
  73. package/dist/components/monaco/index.d.ts +9 -11
  74. package/dist/components/monaco/index.d.ts.map +1 -0
  75. package/dist/components/monaco/init.cjs +8 -7
  76. package/dist/components/monaco/init.cjs.map +1 -1
  77. package/dist/components/monaco/init.d.ts +8 -2
  78. package/dist/components/monaco/init.d.ts.map +1 -0
  79. package/dist/components/monaco/syntax/fancy_toml.d.ts +2 -2
  80. package/dist/components/monaco/syntax/fancy_toml.d.ts.map +1 -0
  81. package/dist/components/monaco/syntax/key_value.d.ts +2 -2
  82. package/dist/components/monaco/syntax/key_value.d.ts.map +1 -0
  83. package/dist/components/monaco/syntax/shell.d.ts +2 -2
  84. package/dist/components/monaco/syntax/shell.d.ts.map +1 -0
  85. package/dist/components/monaco/syntax/string_list.d.ts +2 -2
  86. package/dist/components/monaco/syntax/string_list.d.ts.map +1 -0
  87. package/dist/components/monaco/syntax/toml.d.ts +2 -2
  88. package/dist/components/monaco/syntax/toml.d.ts.map +1 -0
  89. package/dist/components/monaco/syntax/yaml.d.ts +2 -2
  90. package/dist/components/monaco/syntax/yaml.d.ts.map +1 -0
  91. package/dist/components/monaco/theme.d.ts +2 -2
  92. package/dist/components/monaco/theme.d.ts.map +1 -0
  93. package/dist/components/page-guard.d.ts +5 -8
  94. package/dist/components/page-guard.d.ts.map +1 -0
  95. package/dist/components/page.d.ts +8 -12
  96. package/dist/components/page.d.ts.map +1 -0
  97. package/dist/components/search-input.d.ts +4 -7
  98. package/dist/components/search-input.d.ts.map +1 -0
  99. package/dist/components/section.d.ts +8 -12
  100. package/dist/components/section.d.ts.map +1 -0
  101. package/dist/components/shared-text-update.d.ts +7 -10
  102. package/dist/components/shared-text-update.d.ts.map +1 -0
  103. package/dist/components/show-hide-button.d.ts +3 -6
  104. package/dist/components/show-hide-button.d.ts.map +1 -0
  105. package/dist/components/stat-bar.d.ts +5 -8
  106. package/dist/components/stat-bar.d.ts.map +1 -0
  107. package/dist/components/stat-cell.cjs +1 -1
  108. package/dist/components/stat-cell.cjs.map +1 -1
  109. package/dist/components/stat-cell.d.ts +6 -9
  110. package/dist/components/stat-cell.d.ts.map +1 -0
  111. package/dist/components/stat-cell.js +1 -1
  112. package/dist/components/stat-cell.js.map +1 -1
  113. package/dist/components/status-badge.d.ts +8 -11
  114. package/dist/components/status-badge.d.ts.map +1 -0
  115. package/dist/components/tabbed-page.d.ts +6 -9
  116. package/dist/components/tabbed-page.d.ts.map +1 -0
  117. package/dist/components/table-skeleton.d.ts +3 -6
  118. package/dist/components/table-skeleton.d.ts.map +1 -0
  119. package/dist/components/text-update-modal.d.ts +6 -9
  120. package/dist/components/text-update-modal.d.ts.map +1 -0
  121. package/dist/components/theme-toggle.d.ts +2 -5
  122. package/dist/components/theme-toggle.d.ts.map +1 -0
  123. package/dist/formatting.d.ts +13 -14
  124. package/dist/formatting.d.ts.map +1 -0
  125. package/dist/hooks.d.ts +10 -14
  126. package/dist/hooks.d.ts.map +1 -0
  127. package/dist/index.d.ts +43 -56
  128. package/dist/index.d.ts.map +1 -0
  129. package/dist/theme.d.ts +11 -14
  130. package/dist/theme.d.ts.map +1 -0
  131. package/dist/utils.d.ts +4 -5
  132. package/dist/utils.d.ts.map +1 -0
  133. package/package.json +5 -5
  134. package/dist/auth/index.d.cts +0 -51
  135. package/dist/auth/login/header.d.cts +0 -8
  136. package/dist/auth/login/index.d.cts +0 -15
  137. package/dist/auth/profile/index.d.cts +0 -5
  138. package/dist/auth/profile/linked-logins.d.cts +0 -13
  139. package/dist/auth/profile/passkey.d.cts +0 -9
  140. package/dist/auth/profile/totp.d.cts +0 -9
  141. package/dist/auth/utils.d.cts +0 -4
  142. package/dist/color.d.cts +0 -5
  143. package/dist/components/back-button.d.cts +0 -9
  144. package/dist/components/button-link.d.cts +0 -9
  145. package/dist/components/config/confirm.d.cts +0 -20
  146. package/dist/components/config/group.d.cts +0 -10
  147. package/dist/components/config/index.d.cts +0 -62
  148. package/dist/components/config/item.d.cts +0 -44
  149. package/dist/components/config/layout.d.cts +0 -11
  150. package/dist/components/config/unsaved-changes.d.cts +0 -7
  151. package/dist/components/confirm-button.d.cts +0 -23
  152. package/dist/components/confirm-icon.d.cts +0 -20
  153. package/dist/components/confirm-modal.d.cts +0 -25
  154. package/dist/components/copy-button.d.cts +0 -15
  155. package/dist/components/copy-text.d.cts +0 -11
  156. package/dist/components/create-modal.d.cts +0 -18
  157. package/dist/components/data-table.d.cts +0 -44
  158. package/dist/components/divided-children/index.d.cts +0 -15
  159. package/dist/components/enable-switch.d.cts +0 -12
  160. package/dist/components/entity-header.d.cts +0 -20
  161. package/dist/components/entity-page.d.cts +0 -11
  162. package/dist/components/fancy-card/index.d.cts +0 -17
  163. package/dist/components/hover-error.d.cts +0 -9
  164. package/dist/components/info-card.d.cts +0 -21
  165. package/dist/components/input-list.d.cts +0 -14
  166. package/dist/components/labelled-switch.d.cts +0 -14
  167. package/dist/components/labels-group.d.cts +0 -10
  168. package/dist/components/loading-screen.d.cts +0 -8
  169. package/dist/components/mobile-friendly-tabs.d.cts +0 -43
  170. package/dist/components/monaco/index.d.cts +0 -32
  171. package/dist/components/monaco/init.d.cts +0 -2
  172. package/dist/components/monaco/syntax/fancy_toml.d.cts +0 -2
  173. package/dist/components/monaco/syntax/key_value.d.cts +0 -2
  174. package/dist/components/monaco/syntax/shell.d.cts +0 -2
  175. package/dist/components/monaco/syntax/string_list.d.cts +0 -2
  176. package/dist/components/monaco/syntax/toml.d.cts +0 -2
  177. package/dist/components/monaco/syntax/yaml.d.cts +0 -2
  178. package/dist/components/monaco/theme.d.cts +0 -2
  179. package/dist/components/page-guard.d.cts +0 -12
  180. package/dist/components/page.d.cts +0 -31
  181. package/dist/components/search-input.d.cts +0 -9
  182. package/dist/components/section.d.cts +0 -33
  183. package/dist/components/shared-text-update.d.cts +0 -20
  184. package/dist/components/show-hide-button.d.cts +0 -8
  185. package/dist/components/stat-bar.d.cts +0 -15
  186. package/dist/components/stat-cell.d.cts +0 -17
  187. package/dist/components/status-badge.d.cts +0 -20
  188. package/dist/components/tabbed-page.d.cts +0 -19
  189. package/dist/components/table-skeleton.d.cts +0 -8
  190. package/dist/components/text-update-modal.d.cts +0 -19
  191. package/dist/components/theme-toggle.d.cts +0 -5
  192. package/dist/formatting.d.cts +0 -14
  193. package/dist/hooks.d.cts +0 -30
  194. package/dist/index.d.cts +0 -56
  195. package/dist/theme.d.cts +0 -18
  196. package/dist/utils.d.cts +0 -17
@@ -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,44 +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
- * Also called on mount with the initial state
22
- * (loaded from local storage when available). */
23
- onSortingStateChange?: (sorting: SortingState) => void;
24
- selectOptions?: {
25
- selectKey: (row: TData) => string;
26
- onSelect?: (selected: string[]) => void;
27
- state?: [RowSelectionState, Dispatch<SetStateAction<RowSelectionState>>];
28
- disableRow?: boolean | ((row: Row<TData>) => boolean);
29
- color?: DefaultMantineColor;
30
- };
31
- caption?: string;
32
- tableProps?: TableProps;
33
- noBox?: boolean;
34
- noBorder?: boolean;
35
- }
36
- 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;
37
- declare const SortableHeader: <T, V>({ column, title, description, sortDescFirst, }: {
38
- column: Column<T, V>;
39
- title: string;
40
- description?: ReactNode;
41
- sortDescFirst?: boolean;
42
- }) => react.JSX.Element;
43
-
44
- 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,9 +0,0 @@
1
- import * as react from 'react';
2
-
3
- interface HoverErrorProps {
4
- error: string;
5
- trace: string[];
6
- }
7
- declare function HoverError({ error, trace }: HoverErrorProps): react.JSX.Element;
8
-
9
- export { HoverError, type HoverErrorProps };
@@ -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,8 +0,0 @@
1
- import * as react from 'react';
2
- import { LoaderProps, CenterProps } from '@mantine/core';
3
-
4
- declare function LoadingScreen({ size, mt, ...centerProps }: {
5
- size?: LoaderProps["size"];
6
- } & CenterProps): react.JSX.Element;
7
-
8
- export { LoadingScreen };
@@ -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,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -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 };
@@ -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,8 +0,0 @@
1
- import * as react from 'react';
2
-
3
- declare function ShowHideButton({ show, setShow, }: {
4
- show: boolean;
5
- setShow: (show: boolean) => void;
6
- }): react.JSX.Element;
7
-
8
- export { ShowHideButton };
@@ -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,8 +0,0 @@
1
- import * as react from 'react';
2
-
3
- declare function TableSkeleton({ rows, rowHeight, }: {
4
- rows?: number;
5
- rowHeight?: string | number;
6
- }): react.JSX.Element;
7
-
8
- export { TableSkeleton };
@@ -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 };
@@ -1,5 +0,0 @@
1
- import * as react from 'react';
2
-
3
- declare function ThemeToggle(): react.JSX.Element;
4
-
5
- export { ThemeToggle };
@@ -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 };