mogh_ui 0.6.0 → 0.7.0

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 (97) hide show
  1. package/dist/auth/index.cjs +10 -1
  2. package/dist/auth/index.cjs.map +1 -1
  3. package/dist/auth/index.d.cts +4 -3
  4. package/dist/auth/index.d.ts +4 -3
  5. package/dist/auth/index.js +9 -1
  6. package/dist/auth/index.js.map +1 -1
  7. package/dist/auth/login/header.d.cts +2 -2
  8. package/dist/auth/login/header.d.ts +2 -2
  9. package/dist/auth/login/index.cjs +32 -9
  10. package/dist/auth/login/index.cjs.map +1 -1
  11. package/dist/auth/login/index.d.cts +2 -2
  12. package/dist/auth/login/index.d.ts +2 -2
  13. package/dist/auth/login/index.js +41 -11
  14. package/dist/auth/login/index.js.map +1 -1
  15. package/dist/auth/profile/index.d.cts +1 -1
  16. package/dist/auth/profile/index.d.ts +1 -1
  17. package/dist/auth/profile/linked-logins.d.cts +2 -2
  18. package/dist/auth/profile/linked-logins.d.ts +2 -2
  19. package/dist/auth/profile/passkey.d.cts +2 -2
  20. package/dist/auth/profile/passkey.d.ts +2 -2
  21. package/dist/auth/profile/totp.d.cts +2 -2
  22. package/dist/auth/profile/totp.d.ts +2 -2
  23. package/dist/components/back-button.d.cts +2 -2
  24. package/dist/components/back-button.d.ts +2 -2
  25. package/dist/components/button-link.d.cts +2 -2
  26. package/dist/components/button-link.d.ts +2 -2
  27. package/dist/components/config/confirm.d.cts +2 -2
  28. package/dist/components/config/confirm.d.ts +2 -2
  29. package/dist/components/config/group.d.cts +1 -2
  30. package/dist/components/config/group.d.ts +1 -2
  31. package/dist/components/config/index.d.cts +3 -3
  32. package/dist/components/config/index.d.ts +3 -3
  33. package/dist/components/config/item.d.cts +3 -4
  34. package/dist/components/config/item.d.ts +3 -4
  35. package/dist/components/config/layout.d.cts +2 -2
  36. package/dist/components/config/layout.d.ts +2 -2
  37. package/dist/components/config/unsaved-changes.d.cts +2 -2
  38. package/dist/components/config/unsaved-changes.d.ts +2 -2
  39. package/dist/components/confirm-modal.d.cts +3 -3
  40. package/dist/components/confirm-modal.d.ts +3 -3
  41. package/dist/components/copy-button.d.cts +3 -3
  42. package/dist/components/copy-button.d.ts +3 -3
  43. package/dist/components/copy-text.d.cts +2 -2
  44. package/dist/components/copy-text.d.ts +2 -2
  45. package/dist/components/create-modal.d.cts +3 -3
  46. package/dist/components/create-modal.d.ts +3 -3
  47. package/dist/components/data-table.d.cts +3 -3
  48. package/dist/components/data-table.d.ts +3 -3
  49. package/dist/components/enable-switch.d.cts +2 -2
  50. package/dist/components/enable-switch.d.ts +2 -2
  51. package/dist/components/entity-header.d.cts +2 -2
  52. package/dist/components/entity-header.d.ts +2 -2
  53. package/dist/components/entity-page.d.cts +3 -3
  54. package/dist/components/entity-page.d.ts +3 -3
  55. package/dist/components/hover-error.d.cts +2 -2
  56. package/dist/components/hover-error.d.ts +2 -2
  57. package/dist/components/input-list.d.cts +2 -2
  58. package/dist/components/input-list.d.ts +2 -2
  59. package/dist/components/labelled-switch.d.cts +3 -3
  60. package/dist/components/labelled-switch.d.ts +3 -3
  61. package/dist/components/labels-group.d.cts +2 -2
  62. package/dist/components/labels-group.d.ts +2 -2
  63. package/dist/components/loading-screen.d.cts +2 -2
  64. package/dist/components/loading-screen.d.ts +2 -2
  65. package/dist/components/mobile-friendly-tabs.d.cts +5 -5
  66. package/dist/components/mobile-friendly-tabs.d.ts +5 -5
  67. package/dist/components/monaco/index.d.cts +3 -3
  68. package/dist/components/monaco/index.d.ts +3 -3
  69. package/dist/components/monaco/syntax/yaml.cjs +0 -13
  70. package/dist/components/monaco/syntax/yaml.cjs.map +1 -1
  71. package/dist/components/monaco/syntax/yaml.js +0 -13
  72. package/dist/components/monaco/syntax/yaml.js.map +1 -1
  73. package/dist/components/page-guard.d.cts +1 -2
  74. package/dist/components/page-guard.d.ts +1 -2
  75. package/dist/components/search-input.d.cts +2 -2
  76. package/dist/components/search-input.d.ts +2 -2
  77. package/dist/components/shared-text-update.d.cts +3 -3
  78. package/dist/components/shared-text-update.d.ts +3 -3
  79. package/dist/components/show-hide-button.d.cts +2 -2
  80. package/dist/components/show-hide-button.d.ts +2 -2
  81. package/dist/components/stat-bar.d.cts +3 -3
  82. package/dist/components/stat-bar.d.ts +3 -3
  83. package/dist/components/stat-cell.d.cts +3 -3
  84. package/dist/components/stat-cell.d.ts +3 -3
  85. package/dist/components/tabbed-page.d.cts +3 -3
  86. package/dist/components/tabbed-page.d.ts +3 -3
  87. package/dist/components/table-skeleton.d.cts +2 -2
  88. package/dist/components/table-skeleton.d.ts +2 -2
  89. package/dist/components/text-update-modal.d.cts +3 -3
  90. package/dist/components/text-update-modal.d.ts +3 -3
  91. package/dist/components/theme-toggle.d.cts +2 -2
  92. package/dist/components/theme-toggle.d.ts +2 -2
  93. package/dist/index.d.cts +1 -2
  94. package/dist/index.d.ts +1 -2
  95. package/dist/theme.d.cts +3 -3
  96. package/dist/theme.d.ts +3 -3
  97. package/package.json +26 -25
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
 
3
3
  declare function TableSkeleton({ rows, rowHeight, }: {
4
4
  rows?: number;
5
5
  rowHeight?: string | number;
6
- }): react_jsx_runtime.JSX.Element;
6
+ }): react.JSX.Element;
7
7
 
8
8
  export { TableSkeleton };
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
 
3
3
  declare function TableSkeleton({ rows, rowHeight, }: {
4
4
  rows?: number;
5
5
  rowHeight?: string | number;
6
- }): react_jsx_runtime.JSX.Element;
6
+ }): react.JSX.Element;
7
7
 
8
8
  export { TableSkeleton };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ModalProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { ModalProps } from '@mantine/core';
4
4
  import { MonacoLanguage } from './monaco/index.cjs';
5
5
 
6
6
  interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
@@ -14,6 +14,6 @@ interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose
14
14
  useMonaco?: boolean;
15
15
  monacoLanguage?: MonacoLanguage;
16
16
  }
17
- declare function TextUpdateModal({ title, titleRight, value: _value, onUpdate, placeholder, disabled, target, useMonaco, monacoLanguage, ...modalProps }: TextUpdateModalProps): react_jsx_runtime.JSX.Element;
17
+ declare function TextUpdateModal({ title, titleRight, value: _value, onUpdate, placeholder, disabled, target, useMonaco, monacoLanguage, ...modalProps }: TextUpdateModalProps): react.JSX.Element;
18
18
 
19
19
  export { TextUpdateModal, type TextUpdateModalProps };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ModalProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { ModalProps } from '@mantine/core';
4
4
  import { MonacoLanguage } from './monaco/index.js';
5
5
 
6
6
  interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose"> {
@@ -14,6 +14,6 @@ interface TextUpdateModalProps extends Omit<Omit<ModalProps, "opened">, "onClose
14
14
  useMonaco?: boolean;
15
15
  monacoLanguage?: MonacoLanguage;
16
16
  }
17
- declare function TextUpdateModal({ title, titleRight, value: _value, onUpdate, placeholder, disabled, target, useMonaco, monacoLanguage, ...modalProps }: TextUpdateModalProps): react_jsx_runtime.JSX.Element;
17
+ declare function TextUpdateModal({ title, titleRight, value: _value, onUpdate, placeholder, disabled, target, useMonaco, monacoLanguage, ...modalProps }: TextUpdateModalProps): react.JSX.Element;
18
18
 
19
19
  export { TextUpdateModal, type TextUpdateModalProps };
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
 
3
- declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
3
+ declare function ThemeToggle(): react.JSX.Element;
4
4
 
5
5
  export { ThemeToggle };
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
 
3
- declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
3
+ declare function ThemeToggle(): react.JSX.Element;
4
4
 
5
5
  export { ThemeToggle };
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth } from './auth/index.cjs';
1
+ export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth, useUserId } from './auth/index.cjs';
2
2
  export { ColorIntention, colorByIntention, hexColorByIntention } from './color.cjs';
3
3
  export { BYTES_PER_GB, BYTES_PER_KB, BYTES_PER_MB, fmtDate, fmtDateWithMinutes, fmtDuration, fmtMonth, fmtRateBytes, fmtSizeBytes, fmtSnakeCaseToUpperSpaceCase, fmtUpperCamelcase, fmtUtcDate } from './formatting.cjs';
4
4
  export { Dimensions, useCtrlKeyListener, useDebounce, useKeyListener, useSearchCombobox, useShiftKeyListener, useWindowDimensions } from './hooks.cjs';
@@ -53,5 +53,4 @@ import '@tanstack/react-query';
53
53
  import 'mogh_auth_client';
54
54
  import '@mantine/core';
55
55
  import 'react';
56
- import 'react/jsx-runtime';
57
56
  import '@tanstack/react-table';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth } from './auth/index.js';
1
+ export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth, useUserId } from './auth/index.js';
2
2
  export { ColorIntention, colorByIntention, hexColorByIntention } from './color.js';
3
3
  export { BYTES_PER_GB, BYTES_PER_KB, BYTES_PER_MB, fmtDate, fmtDateWithMinutes, fmtDuration, fmtMonth, fmtRateBytes, fmtSizeBytes, fmtSnakeCaseToUpperSpaceCase, fmtUpperCamelcase, fmtUtcDate } from './formatting.js';
4
4
  export { Dimensions, useCtrlKeyListener, useDebounce, useKeyListener, useSearchCombobox, useShiftKeyListener, useWindowDimensions } from './hooks.js';
@@ -53,5 +53,4 @@ import '@tanstack/react-query';
53
53
  import 'mogh_auth_client';
54
54
  import '@mantine/core';
55
55
  import 'react';
56
- import 'react/jsx-runtime';
57
56
  import '@tanstack/react-table';
package/dist/theme.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { DefaultMantineColor, MantineColorsTuple } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { DefaultMantineColor, MantineColorsTuple } from '@mantine/core';
4
4
 
5
5
  declare const LIGHT_BODY = "#f8f9fa";
6
6
  declare const DARK_BODY = "#0f1115";
@@ -11,7 +11,7 @@ interface ThemeProviderProps {
11
11
  }
12
12
  declare function ThemeProvider({ children, ...props }: ThemeProviderProps & {
13
13
  children: ReactNode;
14
- }): react_jsx_runtime.JSX.Element;
14
+ }): react.JSX.Element;
15
15
  declare function opacityColorsTuple(baseHex: string, length?: number): MantineColorsTuple;
16
16
  declare function functionColorsTuple(base: string, fn: (color: string) => string, length?: number): MantineColorsTuple;
17
17
 
package/dist/theme.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { DefaultMantineColor, MantineColorsTuple } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { DefaultMantineColor, MantineColorsTuple } from '@mantine/core';
4
4
 
5
5
  declare const LIGHT_BODY = "#f8f9fa";
6
6
  declare const DARK_BODY = "#0f1115";
@@ -11,7 +11,7 @@ interface ThemeProviderProps {
11
11
  }
12
12
  declare function ThemeProvider({ children, ...props }: ThemeProviderProps & {
13
13
  children: ReactNode;
14
- }): react_jsx_runtime.JSX.Element;
14
+ }): react.JSX.Element;
15
15
  declare function opacityColorsTuple(baseHex: string, length?: number): MantineColorsTuple;
16
16
  declare function functionColorsTuple(base: string, fn: (color: string) => string, length?: number): MantineColorsTuple;
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mogh_ui",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Common UI components and styling used across Mogh apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -29,38 +29,39 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "peerDependencies": {
32
- "@mantine/core": "^9.0.0",
33
- "@mantine/form": "^9.0.0",
34
- "@mantine/hooks": "^9.0.0",
35
- "@mantine/notifications": "^9.0.0",
32
+ "@mantine/core": "^9.4.1",
33
+ "@mantine/form": "^9.4.1",
34
+ "@mantine/hooks": "^9.4.1",
35
+ "@mantine/notifications": "^9.4.1",
36
36
  "@monaco-editor/react": "^4.7.0",
37
37
  "@tanstack/react-table": "^8.21.3",
38
- "@tanstack/react-query": "^5.96.2",
39
- "lucide-react": "^1.7.0",
40
- "mogh_auth_client": "^1.3.0",
38
+ "@tanstack/react-query": "^5.101.2",
39
+ "lucide-react": "^1.22.0",
40
+ "mogh_auth_client": "^1.7.0",
41
41
  "monaco-editor": "^0.55.1",
42
- "react": "^19.0.0",
43
- "react-dom": "^19.0.0",
44
- "react-router-dom": "^7.14.0"
42
+ "monaco-yaml": "^5.5.1",
43
+ "react": "^19.2.7",
44
+ "react-dom": "^19.2.7",
45
+ "react-router-dom": "^7.18.1"
45
46
  },
46
47
  "devDependencies": {
47
- "@mantine/core": "^9.0.0",
48
- "@mantine/form": "^9.0.0",
49
- "@mantine/hooks": "^9.0.0",
50
- "@mantine/notifications": "^9.0.0",
48
+ "@mantine/core": "^9.4.1",
49
+ "@mantine/form": "^9.4.1",
50
+ "@mantine/hooks": "^9.4.1",
51
+ "@mantine/notifications": "^9.4.1",
51
52
  "@monaco-editor/react": "^4.7.0",
52
53
  "@tanstack/react-table": "^8.21.3",
53
- "@tanstack/react-query": "^5.96.2",
54
- "@types/react": "^19.0.0",
55
- "@types/react-dom": "^19.0.0",
56
- "lucide-react": "^1.7.0",
57
- "mogh_auth_client": "^1.3.0",
54
+ "@tanstack/react-query": "^5.101.2",
55
+ "@types/react": "^19.2.17",
56
+ "@types/react-dom": "^19.2.3",
57
+ "lucide-react": "^1.22.0",
58
+ "mogh_auth_client": "^1.7.0",
58
59
  "monaco-editor": "^0.55.1",
59
- "monaco-yaml": "^5.4.1",
60
- "react": "^19.0.0",
61
- "react-dom": "^19.0.0",
62
- "react-router-dom": "^7.14.0",
60
+ "monaco-yaml": "^5.5.1",
61
+ "react": "^19.2.7",
62
+ "react-dom": "^19.2.7",
63
+ "react-router-dom": "^7.18.1",
63
64
  "tsup": "^8.5.1",
64
- "typescript": "^6.0.2"
65
+ "typescript": "^6.0.3"
65
66
  }
66
67
  }