mogh_ui 0.7.3 → 0.7.5

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 (200) 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.cjs +3 -2
  48. package/dist/components/data-table.cjs.map +1 -1
  49. package/dist/components/data-table.d.ts +9 -11
  50. package/dist/components/data-table.d.ts.map +1 -0
  51. package/dist/components/data-table.js +3 -2
  52. package/dist/components/data-table.js.map +1 -1
  53. package/dist/components/divided-children/index.d.ts +6 -10
  54. package/dist/components/divided-children/index.d.ts.map +1 -0
  55. package/dist/components/enable-switch.d.ts +4 -7
  56. package/dist/components/enable-switch.d.ts.map +1 -0
  57. package/dist/components/entity-header.d.ts +5 -8
  58. package/dist/components/entity-header.d.ts.map +1 -0
  59. package/dist/components/entity-page.d.ts +5 -8
  60. package/dist/components/entity-page.d.ts.map +1 -0
  61. package/dist/components/fancy-card/index.d.ts +7 -10
  62. package/dist/components/fancy-card/index.d.ts.map +1 -0
  63. package/dist/components/hover-error.d.ts +3 -6
  64. package/dist/components/hover-error.d.ts.map +1 -0
  65. package/dist/components/info-card.d.ts +8 -12
  66. package/dist/components/info-card.d.ts.map +1 -0
  67. package/dist/components/input-list.d.ts +4 -7
  68. package/dist/components/input-list.d.ts.map +1 -0
  69. package/dist/components/labelled-switch.d.ts +5 -8
  70. package/dist/components/labelled-switch.d.ts.map +1 -0
  71. package/dist/components/labels-group.d.ts +4 -7
  72. package/dist/components/labels-group.d.ts.map +1 -0
  73. package/dist/components/loading-screen.d.ts +4 -7
  74. package/dist/components/loading-screen.d.ts.map +1 -0
  75. package/dist/components/mobile-friendly-tabs.d.ts +12 -15
  76. package/dist/components/mobile-friendly-tabs.d.ts.map +1 -0
  77. package/dist/components/monaco/index.d.ts +9 -11
  78. package/dist/components/monaco/index.d.ts.map +1 -0
  79. package/dist/components/monaco/init.cjs +8 -7
  80. package/dist/components/monaco/init.cjs.map +1 -1
  81. package/dist/components/monaco/init.d.ts +8 -2
  82. package/dist/components/monaco/init.d.ts.map +1 -0
  83. package/dist/components/monaco/syntax/fancy_toml.d.ts +2 -2
  84. package/dist/components/monaco/syntax/fancy_toml.d.ts.map +1 -0
  85. package/dist/components/monaco/syntax/key_value.d.ts +2 -2
  86. package/dist/components/monaco/syntax/key_value.d.ts.map +1 -0
  87. package/dist/components/monaco/syntax/shell.d.ts +2 -2
  88. package/dist/components/monaco/syntax/shell.d.ts.map +1 -0
  89. package/dist/components/monaco/syntax/string_list.d.ts +2 -2
  90. package/dist/components/monaco/syntax/string_list.d.ts.map +1 -0
  91. package/dist/components/monaco/syntax/toml.d.ts +2 -2
  92. package/dist/components/monaco/syntax/toml.d.ts.map +1 -0
  93. package/dist/components/monaco/syntax/yaml.d.ts +2 -2
  94. package/dist/components/monaco/syntax/yaml.d.ts.map +1 -0
  95. package/dist/components/monaco/theme.d.ts +2 -2
  96. package/dist/components/monaco/theme.d.ts.map +1 -0
  97. package/dist/components/page-guard.d.ts +5 -8
  98. package/dist/components/page-guard.d.ts.map +1 -0
  99. package/dist/components/page.d.ts +8 -12
  100. package/dist/components/page.d.ts.map +1 -0
  101. package/dist/components/search-input.d.ts +4 -7
  102. package/dist/components/search-input.d.ts.map +1 -0
  103. package/dist/components/section.d.ts +8 -12
  104. package/dist/components/section.d.ts.map +1 -0
  105. package/dist/components/shared-text-update.d.ts +7 -10
  106. package/dist/components/shared-text-update.d.ts.map +1 -0
  107. package/dist/components/show-hide-button.d.ts +3 -6
  108. package/dist/components/show-hide-button.d.ts.map +1 -0
  109. package/dist/components/stat-bar.d.ts +5 -8
  110. package/dist/components/stat-bar.d.ts.map +1 -0
  111. package/dist/components/stat-cell.cjs +1 -1
  112. package/dist/components/stat-cell.cjs.map +1 -1
  113. package/dist/components/stat-cell.d.ts +6 -9
  114. package/dist/components/stat-cell.d.ts.map +1 -0
  115. package/dist/components/stat-cell.js +1 -1
  116. package/dist/components/stat-cell.js.map +1 -1
  117. package/dist/components/status-badge.d.ts +8 -11
  118. package/dist/components/status-badge.d.ts.map +1 -0
  119. package/dist/components/tabbed-page.d.ts +6 -9
  120. package/dist/components/tabbed-page.d.ts.map +1 -0
  121. package/dist/components/table-skeleton.d.ts +3 -6
  122. package/dist/components/table-skeleton.d.ts.map +1 -0
  123. package/dist/components/text-update-modal.d.ts +6 -9
  124. package/dist/components/text-update-modal.d.ts.map +1 -0
  125. package/dist/components/theme-toggle.d.ts +2 -5
  126. package/dist/components/theme-toggle.d.ts.map +1 -0
  127. package/dist/formatting.d.ts +13 -14
  128. package/dist/formatting.d.ts.map +1 -0
  129. package/dist/hooks.d.ts +10 -14
  130. package/dist/hooks.d.ts.map +1 -0
  131. package/dist/index.d.ts +43 -56
  132. package/dist/index.d.ts.map +1 -0
  133. package/dist/theme.d.ts +11 -14
  134. package/dist/theme.d.ts.map +1 -0
  135. package/dist/utils.d.ts +4 -5
  136. package/dist/utils.d.ts.map +1 -0
  137. package/package.json +5 -5
  138. package/dist/auth/index.d.cts +0 -51
  139. package/dist/auth/login/header.d.cts +0 -8
  140. package/dist/auth/login/index.d.cts +0 -15
  141. package/dist/auth/profile/index.d.cts +0 -5
  142. package/dist/auth/profile/linked-logins.d.cts +0 -13
  143. package/dist/auth/profile/passkey.d.cts +0 -9
  144. package/dist/auth/profile/totp.d.cts +0 -9
  145. package/dist/auth/utils.d.cts +0 -4
  146. package/dist/color.d.cts +0 -5
  147. package/dist/components/back-button.d.cts +0 -9
  148. package/dist/components/button-link.d.cts +0 -9
  149. package/dist/components/config/confirm.d.cts +0 -20
  150. package/dist/components/config/group.d.cts +0 -10
  151. package/dist/components/config/index.d.cts +0 -62
  152. package/dist/components/config/item.d.cts +0 -44
  153. package/dist/components/config/layout.d.cts +0 -11
  154. package/dist/components/config/unsaved-changes.d.cts +0 -7
  155. package/dist/components/confirm-button.d.cts +0 -23
  156. package/dist/components/confirm-icon.d.cts +0 -20
  157. package/dist/components/confirm-modal.d.cts +0 -25
  158. package/dist/components/copy-button.d.cts +0 -15
  159. package/dist/components/copy-text.d.cts +0 -11
  160. package/dist/components/create-modal.d.cts +0 -18
  161. package/dist/components/data-table.d.cts +0 -44
  162. package/dist/components/divided-children/index.d.cts +0 -15
  163. package/dist/components/enable-switch.d.cts +0 -12
  164. package/dist/components/entity-header.d.cts +0 -20
  165. package/dist/components/entity-page.d.cts +0 -11
  166. package/dist/components/fancy-card/index.d.cts +0 -17
  167. package/dist/components/hover-error.d.cts +0 -9
  168. package/dist/components/info-card.d.cts +0 -21
  169. package/dist/components/input-list.d.cts +0 -14
  170. package/dist/components/labelled-switch.d.cts +0 -14
  171. package/dist/components/labels-group.d.cts +0 -10
  172. package/dist/components/loading-screen.d.cts +0 -8
  173. package/dist/components/mobile-friendly-tabs.d.cts +0 -43
  174. package/dist/components/monaco/index.d.cts +0 -32
  175. package/dist/components/monaco/init.d.cts +0 -2
  176. package/dist/components/monaco/syntax/fancy_toml.d.cts +0 -2
  177. package/dist/components/monaco/syntax/key_value.d.cts +0 -2
  178. package/dist/components/monaco/syntax/shell.d.cts +0 -2
  179. package/dist/components/monaco/syntax/string_list.d.cts +0 -2
  180. package/dist/components/monaco/syntax/toml.d.cts +0 -2
  181. package/dist/components/monaco/syntax/yaml.d.cts +0 -2
  182. package/dist/components/monaco/theme.d.cts +0 -2
  183. package/dist/components/page-guard.d.cts +0 -12
  184. package/dist/components/page.d.cts +0 -31
  185. package/dist/components/search-input.d.cts +0 -9
  186. package/dist/components/section.d.cts +0 -33
  187. package/dist/components/shared-text-update.d.cts +0 -20
  188. package/dist/components/show-hide-button.d.cts +0 -8
  189. package/dist/components/stat-bar.d.cts +0 -15
  190. package/dist/components/stat-cell.d.cts +0 -17
  191. package/dist/components/status-badge.d.cts +0 -20
  192. package/dist/components/tabbed-page.d.cts +0 -19
  193. package/dist/components/table-skeleton.d.cts +0 -8
  194. package/dist/components/text-update-modal.d.cts +0 -19
  195. package/dist/components/theme-toggle.d.cts +0 -5
  196. package/dist/formatting.d.cts +0 -14
  197. package/dist/hooks.d.cts +0 -30
  198. package/dist/index.d.cts +0 -56
  199. package/dist/theme.d.cts +0 -18
  200. package/dist/utils.d.cts +0 -17
@@ -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 };
package/dist/index.d.cts DELETED
@@ -1,56 +0,0 @@
1
- export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth, useUserId } from './auth/index.cjs';
2
- export { ColorIntention, colorByIntention, hexColorByIntention } from './color.cjs';
3
- export { BYTES_PER_GB, BYTES_PER_KB, BYTES_PER_MB, fmtDate, fmtDateWithMinutes, fmtDuration, fmtMonth, fmtRateBytes, fmtSizeBytes, fmtSnakeCaseToUpperSpaceCase, fmtUpperCamelcase, fmtUtcDate } from './formatting.cjs';
4
- export { Dimensions, useCtrlKeyListener, useDebounce, useKeyListener, useSearchCombobox, useShiftKeyListener, useWindowDimensions } from './hooks.cjs';
5
- export { AdditionalColors, DARK_BODY, LIGHT_BODY, ThemeProvider, ThemeProviderProps, functionColorsTuple, opacityColorsTuple } from './theme.cjs';
6
- export { deepCompare, filterBySplit, filterMultitermBySplit } from './utils.cjs';
7
- export { Config, ConfigFieldArgs, ConfigGroup, ConfigGroupArgs, ConfigProps } from './components/config/index.cjs';
8
- export { DividedChildren } from './components/divided-children/index.cjs';
9
- export { FancyCard } from './components/fancy-card/index.cjs';
10
- export { MonacoDiffEditor, MonacoDiffEditorProps, MonacoEditor, MonacoEditorProps, MonacoLanguage, languageFromPath } from './components/monaco/index.cjs';
11
- export { BackButton, BackButtonProps } from './components/back-button.cjs';
12
- export { ButtonLink, ButtonLinkProps } from './components/button-link.cjs';
13
- export { ConfirmButton, ConfirmButtonProps } from './components/confirm-button.cjs';
14
- export { ConfirmIcon, ConfirmIconProps } from './components/confirm-icon.cjs';
15
- export { ConfirmModal, ConfirmModalProps } from './components/confirm-modal.cjs';
16
- export { CopyButton, CopyButtonProps, sendCopyNotification } from './components/copy-button.cjs';
17
- export { CopyText, CopyTextProps } from './components/copy-text.cjs';
18
- export { CreateModal, CreateModalProps } from './components/create-modal.cjs';
19
- export { DataTable, DataTableProps, SortableHeader } from './components/data-table.cjs';
20
- export { EnableSwitch, EnableSwitchProps } from './components/enable-switch.cjs';
21
- export { EntityHeader, EntityHeaderProps } from './components/entity-header.cjs';
22
- export { EntityPage, EntityPageProps } from './components/entity-page.cjs';
23
- export { HoverError, HoverErrorProps } from './components/hover-error.cjs';
24
- export { InfoCard, InfoCardProps } from './components/info-card.cjs';
25
- export { InputList, InputListProps } from './components/input-list.cjs';
26
- export { LabelledSwitch, LabelledSwitchProps } from './components/labelled-switch.cjs';
27
- export { LabelsGroup, LabelsGroupProps } from './components/labels-group.cjs';
28
- export { LoadingScreen } from './components/loading-screen.cjs';
29
- export { MobileFriendlyTabs, MobileFriendlyTabsContent, MobileFriendlyTabsProps, MobileFriendlyTabsSelector, MobileFriendlyTabsSelectorProps, MobileFriendlyTabsWrapper, Tab, TabNoContent } from './components/mobile-friendly-tabs.cjs';
30
- export { PageGuard, PageGuardProps } from './components/page-guard.cjs';
31
- export { Page, PageProps } from './components/page.cjs';
32
- export { SearchInput, SearchInputProps } from './components/search-input.cjs';
33
- export { Section, SectionProps } from './components/section.cjs';
34
- export { SharedTextUpdate, SharedTextUpdateData, SharedTextUpdateProps, useSharedTextUpdateData } from './components/shared-text-update.cjs';
35
- export { ShowHideButton } from './components/show-hide-button.cjs';
36
- export { StatBar, StatBarProps } from './components/stat-bar.cjs';
37
- export { StatCell, StatCellProps } from './components/stat-cell.cjs';
38
- export { StatusBadge } from './components/status-badge.cjs';
39
- export { TabbedPage, TabbedPageItem, TabbedPageProps } from './components/tabbed-page.cjs';
40
- export { TableSkeleton } from './components/table-skeleton.cjs';
41
- export { TextUpdateModal, TextUpdateModalProps } from './components/text-update-modal.cjs';
42
- export { ThemeToggle } from './components/theme-toggle.cjs';
43
- export { ConfigInput, ConfigItem, ConfigItemProps, ConfigList, ConfigSwitch } from './components/config/item.cjs';
44
- export { ConfigLayout } from './components/config/layout.cjs';
45
- export { ConfirmUpdate, ConfirmUpdateProps } from './components/config/confirm.cjs';
46
- export { EnrollPasskey } from './auth/profile/passkey.cjs';
47
- export { EnrollTotp } from './auth/profile/totp.cjs';
48
- export { LinkedLogins } from './auth/profile/linked-logins.cjs';
49
- export { LoginBrandingProps, LoginPage } from './auth/login/index.cjs';
50
- export { UnsavedChanges } from './components/config/unsaved-changes.cjs';
51
- export { sanitizeQuery, sanitizeQueryInner } from './auth/utils.cjs';
52
- import '@tanstack/react-query';
53
- import 'mogh_auth_client';
54
- import '@mantine/core';
55
- import 'react';
56
- import '@tanstack/react-table';
package/dist/theme.d.cts DELETED
@@ -1,18 +0,0 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { DefaultMantineColor, MantineColorsTuple } from '@mantine/core';
4
-
5
- declare const LIGHT_BODY = "#f8f9fa";
6
- declare const DARK_BODY = "#0f1115";
7
- type AdditionalColors = Partial<Record<DefaultMantineColor, MantineColorsTuple>> | undefined;
8
- interface ThemeProviderProps {
9
- primaryColor?: DefaultMantineColor;
10
- additionalColors?: AdditionalColors;
11
- }
12
- declare function ThemeProvider({ children, ...props }: ThemeProviderProps & {
13
- children: ReactNode;
14
- }): react.JSX.Element;
15
- declare function opacityColorsTuple(baseHex: string, length?: number): MantineColorsTuple;
16
- declare function functionColorsTuple(base: string, fn: (color: string) => string, length?: number): MantineColorsTuple;
17
-
18
- export { type AdditionalColors, DARK_BODY, LIGHT_BODY, ThemeProvider, type ThemeProviderProps, functionColorsTuple, opacityColorsTuple };
package/dist/utils.d.cts DELETED
@@ -1,17 +0,0 @@
1
- /**
2
- * Does deep compare of 2 items, returning `true` if equal.
3
- *
4
- * - Functions: Always `true`
5
- * - Primitives: Returns direct `a === b`
6
- * - Arrays: Returns same items and ordering (recursive)
7
- * - Objects: Returns same keys / values (recursive)
8
- *
9
- * @param a Item a
10
- * @param b Item b
11
- * @returns a === b
12
- */
13
- declare function deepCompare(a: any, b: any): boolean;
14
- declare function filterBySplit<T>(items: T[] | undefined, search: string, extract: (item: T) => string): T[];
15
- declare function filterMultitermBySplit<T>(items: T[] | undefined, search: string, extract: (item: T) => (string | undefined)[]): T[];
16
-
17
- export { deepCompare, filterBySplit, filterMultitermBySplit };