mogh_ui 0.6.1 → 0.7.1

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 +24 -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 +32 -10
  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.cjs +15 -0
  48. package/dist/components/data-table.cjs.map +1 -1
  49. package/dist/components/data-table.d.cts +10 -3
  50. package/dist/components/data-table.d.ts +10 -3
  51. package/dist/components/data-table.js +15 -0
  52. package/dist/components/data-table.js.map +1 -1
  53. package/dist/components/enable-switch.d.cts +2 -2
  54. package/dist/components/enable-switch.d.ts +2 -2
  55. package/dist/components/entity-header.d.cts +2 -2
  56. package/dist/components/entity-header.d.ts +2 -2
  57. package/dist/components/entity-page.d.cts +3 -3
  58. package/dist/components/entity-page.d.ts +3 -3
  59. package/dist/components/hover-error.d.cts +2 -2
  60. package/dist/components/hover-error.d.ts +2 -2
  61. package/dist/components/input-list.d.cts +2 -2
  62. package/dist/components/input-list.d.ts +2 -2
  63. package/dist/components/labelled-switch.d.cts +3 -3
  64. package/dist/components/labelled-switch.d.ts +3 -3
  65. package/dist/components/labels-group.d.cts +2 -2
  66. package/dist/components/labels-group.d.ts +2 -2
  67. package/dist/components/loading-screen.d.cts +2 -2
  68. package/dist/components/loading-screen.d.ts +2 -2
  69. package/dist/components/mobile-friendly-tabs.d.cts +5 -5
  70. package/dist/components/mobile-friendly-tabs.d.ts +5 -5
  71. package/dist/components/monaco/index.d.cts +3 -3
  72. package/dist/components/monaco/index.d.ts +3 -3
  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 +1 @@
1
- {"version":3,"sources":["../../src/components/data-table.tsx"],"sourcesContent":["import {\n Dispatch,\n ReactNode,\n SetStateAction,\n useEffect,\n useState,\n} from \"react\";\nimport {\n Column,\n ColumnDef,\n flexRender,\n getCoreRowModel,\n getSortedRowModel,\n Row,\n RowSelectionState,\n SortingState,\n useReactTable,\n} from \"@tanstack/react-table\";\nimport {\n Box,\n BoxProps,\n Center,\n Checkbox,\n DefaultMantineColor,\n Group,\n HoverCard,\n Loader,\n Table,\n TableProps,\n Text,\n UnstyledButton,\n} from \"@mantine/core\";\nimport { ArrowDown, ArrowUp, Info, Minus } from \"lucide-react\";\n\nexport interface DataTableProps<TData, TValue = unknown> extends BoxProps {\n /** Unique key given to table so sorting can be remembered on local storage */\n tableKey: string;\n columns: (ColumnDef<TData, TValue> | false | undefined)[];\n data: TData[];\n loading?: boolean;\n onRowClick?: (row: TData) => void;\n noResults?: ReactNode;\n defaultSort?: SortingState;\n sortDescFirst?: boolean;\n selectOptions?: {\n selectKey: (row: TData) => string;\n onSelect?: (selected: string[]) => void;\n state?: [RowSelectionState, Dispatch<SetStateAction<RowSelectionState>>];\n disableRow?: boolean | ((row: Row<TData>) => boolean);\n color?: DefaultMantineColor;\n };\n caption?: string;\n tableProps?: TableProps;\n noBox?: boolean;\n noBorder?: boolean;\n}\n\nexport function DataTable<TData, TValue>({\n tableKey,\n columns,\n data,\n loading,\n onRowClick,\n noResults = <Text c=\"dimmed\">No results</Text>,\n sortDescFirst = false,\n defaultSort = [],\n selectOptions,\n caption,\n tableProps,\n noBox,\n noBorder,\n mah = \"max(150px, calc(100vh - 320px))\",\n ...boxProps\n}: DataTableProps<TData, TValue>) {\n const [sorting, setSorting] = useState<SortingState>(defaultSort);\n\n // intentionally not initialized to clear selected values on table mount\n // could add some prop for adding default selected state to preserve between mounts\n const _internalState = useState<RowSelectionState>({});\n const [rowSelection, setRowSelection] = selectOptions?.state\n ? selectOptions.state\n : _internalState;\n\n const table = useReactTable({\n data,\n columns: columns.filter((c) => c) as any,\n getCoreRowModel: getCoreRowModel(),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n rowSelection,\n },\n sortDescFirst,\n onRowSelectionChange: setRowSelection,\n getRowId: selectOptions?.selectKey,\n enableRowSelection: selectOptions?.disableRow,\n });\n\n useEffect(() => {\n const stored = localStorage.getItem(\"data-table-\" + tableKey);\n const sorting = stored ? (JSON.parse(stored) as SortingState) : null;\n if (sorting) setSorting(sorting);\n }, [tableKey]);\n\n useEffect(() => {\n localStorage.setItem(\"data-table-\" + tableKey, JSON.stringify(sorting));\n }, [tableKey, sorting]);\n\n useEffect(() => {\n selectOptions?.onSelect?.(Object.keys(rowSelection));\n }, [rowSelection]);\n\n const rows = table.getPrePaginationRowModel().rows;\n\n const tableNode = (\n <Table\n borderColor=\"accent-border\"\n captionSide=\"top\"\n stickyHeader\n {...tableProps}\n >\n {caption ? <Table.Caption>{caption}</Table.Caption> : null}\n\n <Table.Thead>\n {table.getHeaderGroups().map((hg, i) => (\n <Table.Tr key={hg.id}>\n {i === 0 && selectOptions && (\n <Table.Th\n onClick={() =>\n selectOptions.disableRow !== true &&\n table.toggleAllRowsSelected()\n }\n style={{\n cursor: \"pointer\",\n borderColor: \"var(--mantine-color-accent-border-0)\",\n borderWidth: 0,\n borderRightWidth: 1,\n borderStyle: \"solid\",\n }}\n >\n <Checkbox\n color={selectOptions.color ?? \"Neutral\"}\n disabled={selectOptions.disableRow === true}\n checked={table.getIsAllRowsSelected()}\n indeterminate={table.getIsSomeRowsSelected()}\n />\n </Table.Th>\n )}\n {hg.headers.map((header, i) => {\n // const canSort = header.column.getCanSort();\n // const sortState = header.column.getIsSorted();\n return (\n <Table.Th\n key={header.id}\n px=\"md\"\n style={{\n cursor: \"pointer\",\n borderColor: \"var(--mantine-color-accent-border-0)\",\n borderWidth: 0,\n borderRightWidth: i < hg.headers.length - 1 ? 1 : 0,\n borderStyle: \"solid\",\n }}\n >\n {header.isPlaceholder ? null : (\n <Text fw={600} size=\"sm\" lineClamp={1}>\n {flexRender(\n header.column.columnDef.header,\n header.getContext(),\n )}\n </Text>\n )}\n </Table.Th>\n );\n })}\n </Table.Tr>\n ))}\n </Table.Thead>\n\n <Table.Tbody>\n {loading ? (\n <Table.Tr>\n <Table.Td\n colSpan={\n table.getAllLeafColumns().length + (selectOptions ? 1 : 0)\n }\n >\n <Group justify=\"center\" py=\"lg\">\n <Loader size=\"sm\" />\n </Group>\n </Table.Td>\n </Table.Tr>\n ) : rows.length === 0 ? (\n <Table.Tr>\n <Table.Td\n colSpan={\n table.getAllLeafColumns().length + (selectOptions ? 1 : 0)\n }\n >\n <Group justify=\"center\" py=\"lg\">\n {noResults}\n </Group>\n </Table.Td>\n </Table.Tr>\n ) : (\n rows.map((row) => (\n <Table.Tr\n key={row.id}\n style={{\n cursor: onRowClick ? \"pointer\" : undefined,\n contentVisibility: \"auto\",\n containIntrinsicSize: \"auto 2em\",\n }}\n >\n {selectOptions && (\n <Table.Td onClick={() => row.toggleSelected()}>\n <Checkbox\n aria-label=\"Select row\"\n color={selectOptions.color ?? \"Neutral\"}\n disabled={!row.getCanSelect()}\n checked={row.getIsSelected()}\n />\n </Table.Td>\n )}\n {row.getVisibleCells().map((cell) => (\n <Table.Td\n key={cell.id}\n onClick={\n onRowClick ? () => onRowClick(row.original) : undefined\n }\n style={{ flexWrap: \"nowrap\", textWrap: \"nowrap\" }}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </Table.Td>\n ))}\n </Table.Tr>\n ))\n )}\n </Table.Tbody>\n </Table>\n );\n\n if (noBox) {\n return tableNode;\n } else {\n return (\n <Box\n p={noBorder ? undefined : \"lg\"}\n pt=\"0\"\n className={noBorder ? undefined : \"bordered-light\"}\n bdrs=\"md\"\n w=\"100%\"\n mah={mah}\n style={{ overflow: \"auto\" }}\n {...boxProps}\n >\n {tableNode}\n </Box>\n );\n }\n}\n\nexport const SortableHeader = <T, V>({\n column,\n title,\n description,\n sortDescFirst,\n}: {\n column: Column<T, V>;\n title: string;\n description?: ReactNode;\n sortDescFirst?: boolean;\n}) => {\n return (\n <UnstyledButton\n onClick={column.getToggleSortingHandler()}\n style={{ width: \"100%\" }}\n >\n <Group justify=\"space-between\" gap=\"sm\" wrap=\"nowrap\">\n <Group justify=\"start\" gap=\"xs\" wrap=\"nowrap\" miw=\"120\" w=\"fit-content\">\n <Text fw={600} size=\"sm\" lineClamp={1}>\n {title}\n </Text>\n {description && (\n <HoverCard offset={10}>\n <HoverCard.Target>\n <Info size=\"1rem\" />\n </HoverCard.Target>\n <HoverCard.Dropdown>\n <Text>{description}</Text>\n </HoverCard.Dropdown>\n </HoverCard>\n )}\n </Group>\n <Center>\n <SortIcon\n state={column.getIsSorted()}\n sortDescFirst={sortDescFirst}\n />\n </Center>\n </Group>\n </UnstyledButton>\n );\n};\n\nfunction SortIcon({\n state,\n sortDescFirst,\n}: {\n state: false | \"asc\" | \"desc\";\n sortDescFirst?: boolean;\n}) {\n if (state === \"asc\")\n return sortDescFirst ? <ArrowDown size={14} /> : <ArrowUp size={14} />;\n if (state === \"desc\")\n return sortDescFirst ? <ArrowUp size={14} /> : <ArrowDown size={14} />;\n return <Minus size={14} />;\n}\n"],"mappings":"AA+Dc,cA+DJ,YA/DI;AA/Dd;AAAA,EAIE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EAIA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,SAAS,MAAM,aAAa;AAyBzC,SAAS,UAAyB;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY,oBAAC,QAAK,GAAE,UAAS,wBAAU;AAAA,EACvC,gBAAgB;AAAA,EAChB,cAAc,CAAC;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,MAAM;AAAA,EACN,GAAG;AACL,GAAkC;AAChC,QAAM,CAAC,SAAS,UAAU,IAAI,SAAuB,WAAW;AAIhE,QAAM,iBAAiB,SAA4B,CAAC,CAAC;AACrD,QAAM,CAAC,cAAc,eAAe,IAAI,eAAe,QACnD,cAAc,QACd;AAEJ,QAAM,QAAQ,cAAc;AAAA,IAC1B;AAAA,IACA,SAAS,QAAQ,OAAO,CAAC,MAAM,CAAC;AAAA,IAChC,iBAAiB,gBAAgB;AAAA,IACjC,iBAAiB;AAAA,IACjB,mBAAmB,kBAAkB;AAAA,IACrC,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA,sBAAsB;AAAA,IACtB,UAAU,eAAe;AAAA,IACzB,oBAAoB,eAAe;AAAA,EACrC,CAAC;AAED,YAAU,MAAM;AACd,UAAM,SAAS,aAAa,QAAQ,gBAAgB,QAAQ;AAC5D,UAAMA,WAAU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AAAA,aACF;AAAA,WAEJ;AAAA,QACA,oBAAC,UACC;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,OAAO,YAAY;AAAA,YAC1B;AAAA;AAAA,QACF,GACF;AAAA,SACF;AAAA;AAAA,EACF;AAEJ;AAEA,SAAS,SAAS;AAAA,EAChB;AAAA,EACA;AACF,GAGG;AACD,MAAI,UAAU;AACZ,WAAO,gBAAgB,oBAAC,aAAU,MAAM,IAAI,IAAK,oBAAC,WAAQ,MAAM,IAAI;AACtE,MAAI,UAAU;AACZ,WAAO,gBAAgB,oBAAC,WAAQ,MAAM,IAAI,IAAK,oBAAC,aAAU,MAAM,IAAI;AACtE,SAAO,oBAAC,SAAM,MAAM,IAAI;AAC1B;","names":["sorting","i"]}
1
+ {"version":3,"sources":["../../src/components/data-table.tsx"],"sourcesContent":["import {\n Dispatch,\n ReactNode,\n SetStateAction,\n useEffect,\n useState,\n} from \"react\";\nimport {\n Column,\n ColumnDef,\n flexRender,\n getCoreRowModel,\n getSortedRowModel,\n Row,\n RowSelectionState,\n SortingState,\n useReactTable,\n} from \"@tanstack/react-table\";\nimport {\n Box,\n BoxProps,\n Center,\n Checkbox,\n DefaultMantineColor,\n Group,\n HoverCard,\n Loader,\n Table,\n TableProps,\n Text,\n UnstyledButton,\n} from \"@mantine/core\";\nimport { ArrowDown, ArrowUp, Info, Minus } from \"lucide-react\";\n\nexport interface DataTableProps<TData, TValue = unknown> extends BoxProps {\n /** Unique key given to table so sorting can be remembered on local storage */\n tableKey: string;\n columns: (ColumnDef<TData, TValue> | false | undefined)[];\n data: TData[];\n loading?: boolean;\n onRowClick?: (row: TData) => void;\n noResults?: ReactNode;\n defaultSort?: SortingState;\n sortDescFirst?: boolean;\n /** Sorting is handled externally (eg. server side).\n * The table still manages / persists the sorting state,\n * but does not apply it to the rows. */\n manualSorting?: boolean;\n /** Called with the sorting state whenever it changes,\n * including on load from local storage. */\n onSortingStateChange?: (sorting: SortingState) => void;\n selectOptions?: {\n selectKey: (row: TData) => string;\n onSelect?: (selected: string[]) => void;\n state?: [RowSelectionState, Dispatch<SetStateAction<RowSelectionState>>];\n disableRow?: boolean | ((row: Row<TData>) => boolean);\n color?: DefaultMantineColor;\n };\n caption?: string;\n tableProps?: TableProps;\n noBox?: boolean;\n noBorder?: boolean;\n}\n\nexport function DataTable<TData, TValue>({\n tableKey,\n columns,\n data,\n loading,\n onRowClick,\n noResults = <Text c=\"dimmed\">No results</Text>,\n sortDescFirst = false,\n defaultSort = [],\n manualSorting,\n onSortingStateChange,\n selectOptions,\n caption,\n tableProps,\n noBox,\n noBorder,\n mah = \"max(150px, calc(100vh - 320px))\",\n ...boxProps\n}: DataTableProps<TData, TValue>) {\n const [sorting, setSorting] = useState<SortingState>(defaultSort);\n\n // intentionally not initialized to clear selected values on table mount\n // could add some prop for adding default selected state to preserve between mounts\n const _internalState = useState<RowSelectionState>({});\n const [rowSelection, setRowSelection] = selectOptions?.state\n ? selectOptions.state\n : _internalState;\n\n const table = useReactTable({\n data,\n columns: columns.filter((c) => c) as any,\n getCoreRowModel: getCoreRowModel(),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n manualSorting,\n state: {\n sorting,\n rowSelection,\n },\n sortDescFirst,\n onRowSelectionChange: setRowSelection,\n getRowId: selectOptions?.selectKey,\n enableRowSelection: selectOptions?.disableRow,\n });\n\n useEffect(() => {\n const stored = localStorage.getItem(\"data-table-\" + tableKey);\n const sorting = stored ? (JSON.parse(stored) as SortingState) : null;\n if (sorting) setSorting(sorting);\n }, [tableKey]);\n\n useEffect(() => {\n localStorage.setItem(\"data-table-\" + tableKey, JSON.stringify(sorting));\n }, [tableKey, sorting]);\n\n useEffect(() => {\n onSortingStateChange?.(sorting);\n }, [sorting]);\n\n useEffect(() => {\n selectOptions?.onSelect?.(Object.keys(rowSelection));\n }, [rowSelection]);\n\n const rows = table.getPrePaginationRowModel().rows;\n\n const tableNode = (\n <Table\n borderColor=\"accent-border\"\n captionSide=\"top\"\n stickyHeader\n {...tableProps}\n >\n {caption ? <Table.Caption>{caption}</Table.Caption> : null}\n\n <Table.Thead>\n {table.getHeaderGroups().map((hg, i) => (\n <Table.Tr key={hg.id}>\n {i === 0 && selectOptions && (\n <Table.Th\n onClick={() =>\n selectOptions.disableRow !== true &&\n table.toggleAllRowsSelected()\n }\n style={{\n cursor: \"pointer\",\n borderColor: \"var(--mantine-color-accent-border-0)\",\n borderWidth: 0,\n borderRightWidth: 1,\n borderStyle: \"solid\",\n }}\n >\n <Checkbox\n color={selectOptions.color ?? \"Neutral\"}\n disabled={selectOptions.disableRow === true}\n checked={table.getIsAllRowsSelected()}\n indeterminate={table.getIsSomeRowsSelected()}\n />\n </Table.Th>\n )}\n {hg.headers.map((header, i) => {\n // const canSort = header.column.getCanSort();\n // const sortState = header.column.getIsSorted();\n return (\n <Table.Th\n key={header.id}\n px=\"md\"\n style={{\n cursor: \"pointer\",\n borderColor: \"var(--mantine-color-accent-border-0)\",\n borderWidth: 0,\n borderRightWidth: i < hg.headers.length - 1 ? 1 : 0,\n borderStyle: \"solid\",\n }}\n >\n {header.isPlaceholder ? null : (\n <Text fw={600} size=\"sm\" lineClamp={1}>\n {flexRender(\n header.column.columnDef.header,\n header.getContext(),\n )}\n </Text>\n )}\n </Table.Th>\n );\n })}\n </Table.Tr>\n ))}\n </Table.Thead>\n\n <Table.Tbody>\n {loading ? (\n <Table.Tr>\n <Table.Td\n colSpan={\n table.getAllLeafColumns().length + (selectOptions ? 1 : 0)\n }\n >\n <Group justify=\"center\" py=\"lg\">\n <Loader size=\"sm\" />\n </Group>\n </Table.Td>\n </Table.Tr>\n ) : rows.length === 0 ? (\n <Table.Tr>\n <Table.Td\n colSpan={\n table.getAllLeafColumns().length + (selectOptions ? 1 : 0)\n }\n >\n <Group justify=\"center\" py=\"lg\">\n {noResults}\n </Group>\n </Table.Td>\n </Table.Tr>\n ) : (\n rows.map((row) => (\n <Table.Tr\n key={row.id}\n style={{\n cursor: onRowClick ? \"pointer\" : undefined,\n contentVisibility: \"auto\",\n containIntrinsicSize: \"auto 2em\",\n }}\n >\n {selectOptions && (\n <Table.Td onClick={() => row.toggleSelected()}>\n <Checkbox\n aria-label=\"Select row\"\n color={selectOptions.color ?? \"Neutral\"}\n disabled={!row.getCanSelect()}\n checked={row.getIsSelected()}\n />\n </Table.Td>\n )}\n {row.getVisibleCells().map((cell) => (\n <Table.Td\n key={cell.id}\n onClick={\n onRowClick ? () => onRowClick(row.original) : undefined\n }\n style={{ flexWrap: \"nowrap\", textWrap: \"nowrap\" }}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </Table.Td>\n ))}\n </Table.Tr>\n ))\n )}\n </Table.Tbody>\n </Table>\n );\n\n if (noBox) {\n return tableNode;\n } else {\n return (\n <Box\n p={noBorder ? undefined : \"lg\"}\n pt=\"0\"\n className={noBorder ? undefined : \"bordered-light\"}\n bdrs=\"md\"\n w=\"100%\"\n mah={mah}\n style={{ overflow: \"auto\" }}\n {...boxProps}\n >\n {tableNode}\n </Box>\n );\n }\n}\n\nexport const SortableHeader = <T, V>({\n column,\n title,\n description,\n sortDescFirst,\n}: {\n column: Column<T, V>;\n title: string;\n description?: ReactNode;\n sortDescFirst?: boolean;\n}) => {\n if (!column.getCanSort()) {\n return (\n <Group justify=\"start\" gap=\"xs\" wrap=\"nowrap\" miw=\"120\" w=\"fit-content\">\n <Text fw={600} size=\"sm\" lineClamp={1}>\n {title}\n </Text>\n {description && (\n <HoverCard offset={10}>\n <HoverCard.Target>\n <Info size=\"1rem\" />\n </HoverCard.Target>\n <HoverCard.Dropdown>\n <Text>{description}</Text>\n </HoverCard.Dropdown>\n </HoverCard>\n )}\n </Group>\n );\n }\n return (\n <UnstyledButton\n onClick={column.getToggleSortingHandler()}\n style={{ width: \"100%\" }}\n >\n <Group justify=\"space-between\" gap=\"sm\" wrap=\"nowrap\">\n <Group justify=\"start\" gap=\"xs\" wrap=\"nowrap\" miw=\"120\" w=\"fit-content\">\n <Text fw={600} size=\"sm\" lineClamp={1}>\n {title}\n </Text>\n {description && (\n <HoverCard offset={10}>\n <HoverCard.Target>\n <Info size=\"1rem\" />\n </HoverCard.Target>\n <HoverCard.Dropdown>\n <Text>{description}</Text>\n </HoverCard.Dropdown>\n </HoverCard>\n )}\n </Group>\n <Center>\n <SortIcon\n state={column.getIsSorted()}\n sortDescFirst={sortDescFirst}\n />\n </Center>\n </Group>\n </UnstyledButton>\n );\n};\n\nfunction SortIcon({\n state,\n sortDescFirst,\n}: {\n state: false | \"asc\" | \"desc\";\n sortDescFirst?: boolean;\n}) {\n if (state === \"asc\")\n return sortDescFirst ? <ArrowDown size={14} /> : <ArrowUp size={14} />;\n if (state === \"desc\")\n return sortDescFirst ? <ArrowUp size={14} /> : <ArrowDown size={14} />;\n return <Minus size={14} />;\n}\n"],"mappings":"AAsEc,cAsEJ,YAtEI;AAtEd;AAAA,EAIE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EAIA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,SAAS,MAAM,aAAa;AAgCzC,SAAS,UAAyB;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY,oBAAC,QAAK,GAAE,UAAS,wBAAU;AAAA,EACvC,gBAAgB;AAAA,EAChB,cAAc,CAAC;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,MAAM;AAAA,EACN,GAAG;AACL,GAAkC;AAChC,QAAM,CAAC,SAAS,UAAU,IAAI,SAAuB,WAAW;AAIhE,QAAM,iBAAiB,SAA4B,CAAC,CAAC;AACrD,QAAM,CAAC,cAAc,eAAe,IAAI,eAAe,QACnD,cAAc,QACd;AAEJ,QAA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IAAK,oBAAC,aAAU,MAAM,IAAI;AACtE,SAAO,oBAAC,SAAM,MAAM,IAAI;AAC1B;","names":["sorting","i"]}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { SwitchProps, GroupProps } from '@mantine/core';
3
3
 
4
4
  interface EnableSwitchProps extends SwitchProps {
@@ -7,6 +7,6 @@ interface EnableSwitchProps extends SwitchProps {
7
7
  redDisabled?: boolean;
8
8
  labelProps?: GroupProps;
9
9
  }
10
- declare function EnableSwitch({ checked, color, label, onChange, onCheckedChange, disabled, redDisabled, labelProps, ...props }: EnableSwitchProps): react_jsx_runtime.JSX.Element;
10
+ declare function EnableSwitch({ checked, color, label, onChange, onCheckedChange, disabled, redDisabled, labelProps, ...props }: EnableSwitchProps): react.JSX.Element;
11
11
 
12
12
  export { EnableSwitch, type EnableSwitchProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { SwitchProps, GroupProps } from '@mantine/core';
3
3
 
4
4
  interface EnableSwitchProps extends SwitchProps {
@@ -7,6 +7,6 @@ interface EnableSwitchProps extends SwitchProps {
7
7
  redDisabled?: boolean;
8
8
  labelProps?: GroupProps;
9
9
  }
10
- declare function EnableSwitch({ checked, color, label, onChange, onCheckedChange, disabled, redDisabled, labelProps, ...props }: EnableSwitchProps): react_jsx_runtime.JSX.Element;
10
+ declare function EnableSwitch({ checked, color, label, onChange, onCheckedChange, disabled, redDisabled, labelProps, ...props }: EnableSwitchProps): react.JSX.Element;
11
11
 
12
12
  export { EnableSwitch, type EnableSwitchProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { FC, ReactNode } from 'react';
3
3
  import { ColorIntention } from '../color.cjs';
4
4
 
@@ -15,6 +15,6 @@ interface EntityHeaderProps {
15
15
  onRename?: (name: string) => Promise<unknown>;
16
16
  renamePending?: boolean;
17
17
  }
18
- declare function EntityHeader({ name, icon: Icon, intent, state, status, action, onRename: _onRename, renamePending, }: EntityHeaderProps): react_jsx_runtime.JSX.Element;
18
+ declare function EntityHeader({ name, icon: Icon, intent, state, status, action, onRename: _onRename, renamePending, }: EntityHeaderProps): react.JSX.Element;
19
19
 
20
20
  export { EntityHeader, type EntityHeaderProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { FC, ReactNode } from 'react';
3
3
  import { ColorIntention } from '../color.js';
4
4
 
@@ -15,6 +15,6 @@ interface EntityHeaderProps {
15
15
  onRename?: (name: string) => Promise<unknown>;
16
16
  renamePending?: boolean;
17
17
  }
18
- declare function EntityHeader({ name, icon: Icon, intent, state, status, action, onRename: _onRename, renamePending, }: EntityHeaderProps): react_jsx_runtime.JSX.Element;
18
+ declare function EntityHeader({ name, icon: Icon, intent, state, status, action, onRename: _onRename, renamePending, }: EntityHeaderProps): react.JSX.Element;
19
19
 
20
20
  export { EntityHeader, type EntityHeaderProps };
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { StackProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { StackProps } from '@mantine/core';
4
4
 
5
5
  interface EntityPageProps extends StackProps {
6
6
  backTo?: string;
7
7
  actions?: ReactNode;
8
8
  }
9
- declare function EntityPage({ backTo, actions, children, ...props }: EntityPageProps): react_jsx_runtime.JSX.Element;
9
+ declare function EntityPage({ backTo, actions, children, ...props }: EntityPageProps): react.JSX.Element;
10
10
 
11
11
  export { EntityPage, type EntityPageProps };
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { StackProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { StackProps } from '@mantine/core';
4
4
 
5
5
  interface EntityPageProps extends StackProps {
6
6
  backTo?: string;
7
7
  actions?: ReactNode;
8
8
  }
9
- declare function EntityPage({ backTo, actions, children, ...props }: EntityPageProps): react_jsx_runtime.JSX.Element;
9
+ declare function EntityPage({ backTo, actions, children, ...props }: EntityPageProps): react.JSX.Element;
10
10
 
11
11
  export { EntityPage, type EntityPageProps };
@@ -1,9 +1,9 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
 
3
3
  interface HoverErrorProps {
4
4
  error: string;
5
5
  trace: string[];
6
6
  }
7
- declare function HoverError({ error, trace }: HoverErrorProps): react_jsx_runtime.JSX.Element;
7
+ declare function HoverError({ error, trace }: HoverErrorProps): react.JSX.Element;
8
8
 
9
9
  export { HoverError, type HoverErrorProps };
@@ -1,9 +1,9 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
 
3
3
  interface HoverErrorProps {
4
4
  error: string;
5
5
  trace: string[];
6
6
  }
7
- declare function HoverError({ error, trace }: HoverErrorProps): react_jsx_runtime.JSX.Element;
7
+ declare function HoverError({ error, trace }: HoverErrorProps): react.JSX.Element;
8
8
 
9
9
  export { HoverError, type HoverErrorProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { TextInputProps } from '@mantine/core';
3
3
 
4
4
  interface InputListProps<T> {
@@ -9,6 +9,6 @@ interface InputListProps<T> {
9
9
  placeholder?: string;
10
10
  inputProps?: TextInputProps;
11
11
  }
12
- declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react_jsx_runtime.JSX.Element;
12
+ declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react.JSX.Element;
13
13
 
14
14
  export { InputList, type InputListProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { TextInputProps } from '@mantine/core';
3
3
 
4
4
  interface InputListProps<T> {
@@ -9,6 +9,6 @@ interface InputListProps<T> {
9
9
  placeholder?: string;
10
10
  inputProps?: TextInputProps;
11
11
  }
12
- declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react_jsx_runtime.JSX.Element;
12
+ declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react.JSX.Element;
13
13
 
14
14
  export { InputList, type InputListProps };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
4
4
 
5
5
  interface LabelledSwitchProps extends SwitchProps {
6
6
  checked: boolean | undefined;
@@ -9,6 +9,6 @@ interface LabelledSwitchProps extends SwitchProps {
9
9
  groupProps?: GroupProps;
10
10
  labelProps?: TextProps;
11
11
  }
12
- declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react_jsx_runtime.JSX.Element;
12
+ declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react.JSX.Element;
13
13
 
14
14
  export { LabelledSwitch, type LabelledSwitchProps };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
4
4
 
5
5
  interface LabelledSwitchProps extends SwitchProps {
6
6
  checked: boolean | undefined;
@@ -9,6 +9,6 @@ interface LabelledSwitchProps extends SwitchProps {
9
9
  groupProps?: GroupProps;
10
10
  labelProps?: TextProps;
11
11
  }
12
- declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react_jsx_runtime.JSX.Element;
12
+ declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react.JSX.Element;
13
13
 
14
14
  export { LabelledSwitch, type LabelledSwitchProps };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { GroupProps } from '@mantine/core';
3
3
 
4
4
  interface LabelsGroupProps extends GroupProps {
5
5
  labels: [string, string][];
6
6
  showEllipsis?: boolean;
7
7
  }
8
- declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react_jsx_runtime.JSX.Element;
8
+ declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react.JSX.Element;
9
9
 
10
10
  export { LabelsGroup, type LabelsGroupProps };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { GroupProps } from '@mantine/core';
3
3
 
4
4
  interface LabelsGroupProps extends GroupProps {
5
5
  labels: [string, string][];
6
6
  showEllipsis?: boolean;
7
7
  }
8
- declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react_jsx_runtime.JSX.Element;
8
+ declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react.JSX.Element;
9
9
 
10
10
  export { LabelsGroup, type LabelsGroupProps };
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { LoaderProps, CenterProps } from '@mantine/core';
3
3
 
4
4
  declare function LoadingScreen({ size, mt, ...centerProps }: {
5
5
  size?: LoaderProps["size"];
6
- } & CenterProps): react_jsx_runtime.JSX.Element;
6
+ } & CenterProps): react.JSX.Element;
7
7
 
8
8
  export { LoadingScreen };
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { LoaderProps, CenterProps } from '@mantine/core';
3
3
 
4
4
  declare function LoadingScreen({ size, mt, ...centerProps }: {
5
5
  size?: LoaderProps["size"];
6
- } & CenterProps): react_jsx_runtime.JSX.Element;
6
+ } & CenterProps): react.JSX.Element;
7
7
 
8
8
  export { LoadingScreen };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { MantineBreakpoint, GroupProps, TabsProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { FC, ReactNode } from 'react';
3
+ import { MantineBreakpoint, GroupProps, TabsProps } from '@mantine/core';
4
4
 
5
5
  interface Tab {
6
6
  label?: string;
@@ -17,13 +17,13 @@ interface MobileFriendlyTabsProps extends MobileFriendlyTabsSelectorProps {
17
17
  tabs: Tab[];
18
18
  tabsProps?: Omit<TabsProps, "value">;
19
19
  }
20
- declare function MobileFriendlyTabs(props: MobileFriendlyTabsProps): react_jsx_runtime.JSX.Element;
20
+ declare function MobileFriendlyTabs(props: MobileFriendlyTabsProps): react.JSX.Element;
21
21
  interface MobileFriendlyTabsWrapper extends TabsProps {
22
22
  Selector: ReactNode;
23
23
  tabs: Tab[];
24
24
  value: string;
25
25
  }
26
- declare function MobileFriendlyTabsWrapper({ Selector, tabs, value, children, ...tabsProps }: MobileFriendlyTabsWrapper): react_jsx_runtime.JSX.Element;
26
+ declare function MobileFriendlyTabsWrapper({ Selector, tabs, value, children, ...tabsProps }: MobileFriendlyTabsWrapper): react.JSX.Element;
27
27
  interface MobileFriendlyTabsSelectorProps {
28
28
  tabs: TabNoContent[];
29
29
  actions?: ReactNode;
@@ -34,7 +34,7 @@ interface MobileFriendlyTabsSelectorProps {
34
34
  mobileIconSize?: string | number;
35
35
  tabProps?: GroupProps;
36
36
  }
37
- declare function MobileFriendlyTabsSelector({ tabs: _tabs, actions, value, onValueChange, changeAt: _changeAt, fullIconSize, mobileIconSize, tabProps, }: MobileFriendlyTabsSelectorProps): react_jsx_runtime.JSX.Element;
37
+ declare function MobileFriendlyTabsSelector({ tabs: _tabs, actions, value, onValueChange, changeAt: _changeAt, fullIconSize, mobileIconSize, tabProps, }: MobileFriendlyTabsSelectorProps): react.JSX.Element;
38
38
  declare function MobileFriendlyTabsContent({ tabs, value, }: {
39
39
  tabs: Tab[];
40
40
  value: string;
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { MantineBreakpoint, GroupProps, TabsProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { FC, ReactNode } from 'react';
3
+ import { MantineBreakpoint, GroupProps, TabsProps } from '@mantine/core';
4
4
 
5
5
  interface Tab {
6
6
  label?: string;
@@ -17,13 +17,13 @@ interface MobileFriendlyTabsProps extends MobileFriendlyTabsSelectorProps {
17
17
  tabs: Tab[];
18
18
  tabsProps?: Omit<TabsProps, "value">;
19
19
  }
20
- declare function MobileFriendlyTabs(props: MobileFriendlyTabsProps): react_jsx_runtime.JSX.Element;
20
+ declare function MobileFriendlyTabs(props: MobileFriendlyTabsProps): react.JSX.Element;
21
21
  interface MobileFriendlyTabsWrapper extends TabsProps {
22
22
  Selector: ReactNode;
23
23
  tabs: Tab[];
24
24
  value: string;
25
25
  }
26
- declare function MobileFriendlyTabsWrapper({ Selector, tabs, value, children, ...tabsProps }: MobileFriendlyTabsWrapper): react_jsx_runtime.JSX.Element;
26
+ declare function MobileFriendlyTabsWrapper({ Selector, tabs, value, children, ...tabsProps }: MobileFriendlyTabsWrapper): react.JSX.Element;
27
27
  interface MobileFriendlyTabsSelectorProps {
28
28
  tabs: TabNoContent[];
29
29
  actions?: ReactNode;
@@ -34,7 +34,7 @@ interface MobileFriendlyTabsSelectorProps {
34
34
  mobileIconSize?: string | number;
35
35
  tabProps?: GroupProps;
36
36
  }
37
- declare function MobileFriendlyTabsSelector({ tabs: _tabs, actions, value, onValueChange, changeAt: _changeAt, fullIconSize, mobileIconSize, tabProps, }: MobileFriendlyTabsSelectorProps): react_jsx_runtime.JSX.Element;
37
+ declare function MobileFriendlyTabsSelector({ tabs: _tabs, actions, value, onValueChange, changeAt: _changeAt, fullIconSize, mobileIconSize, tabProps, }: MobileFriendlyTabsSelectorProps): react.JSX.Element;
38
38
  declare function MobileFriendlyTabsContent({ tabs, value, }: {
39
39
  tabs: Tab[];
40
40
  value: string;
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { BoxProps } from '@mantine/core';
3
3
 
4
4
  type MonacoLanguage = "yaml" | "toml" | "fancy_toml" | "json" | "key_value" | "ini" | "string_list" | "shell" | "dockerfile" | "rust" | "javascript" | "typescript";
@@ -16,7 +16,7 @@ interface MonacoEditorProps extends BoxProps {
16
16
  maxHeight?: number;
17
17
  id?: string;
18
18
  }
19
- declare function MonacoEditor({ value, onValueChange, language: _language, enableFancyToml, readOnly, filename, minHeight, maxHeightProportion, maxHeight, id, ...boxProps }: MonacoEditorProps): react_jsx_runtime.JSX.Element;
19
+ declare function MonacoEditor({ value, onValueChange, language: _language, enableFancyToml, readOnly, filename, minHeight, maxHeightProportion, maxHeight, id, ...boxProps }: MonacoEditorProps): react.JSX.Element;
20
20
  interface MonacoDiffEditorProps extends BoxProps {
21
21
  original: string | undefined;
22
22
  modified: string | undefined;
@@ -27,6 +27,6 @@ interface MonacoDiffEditorProps extends BoxProps {
27
27
  id?: string;
28
28
  hideUnchangedRegions?: boolean;
29
29
  }
30
- declare function MonacoDiffEditor({ original, modified, onModifiedValueChange, language: _language, enableFancyToml, readOnly, id, hideUnchangedRegions, ...boxProps }: MonacoDiffEditorProps): react_jsx_runtime.JSX.Element;
30
+ declare function MonacoDiffEditor({ original, modified, onModifiedValueChange, language: _language, enableFancyToml, readOnly, id, hideUnchangedRegions, ...boxProps }: MonacoDiffEditorProps): react.JSX.Element;
31
31
 
32
32
  export { MonacoDiffEditor, type MonacoDiffEditorProps, MonacoEditor, type MonacoEditorProps, type MonacoLanguage, languageFromPath };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { BoxProps } from '@mantine/core';
3
3
 
4
4
  type MonacoLanguage = "yaml" | "toml" | "fancy_toml" | "json" | "key_value" | "ini" | "string_list" | "shell" | "dockerfile" | "rust" | "javascript" | "typescript";
@@ -16,7 +16,7 @@ interface MonacoEditorProps extends BoxProps {
16
16
  maxHeight?: number;
17
17
  id?: string;
18
18
  }
19
- declare function MonacoEditor({ value, onValueChange, language: _language, enableFancyToml, readOnly, filename, minHeight, maxHeightProportion, maxHeight, id, ...boxProps }: MonacoEditorProps): react_jsx_runtime.JSX.Element;
19
+ declare function MonacoEditor({ value, onValueChange, language: _language, enableFancyToml, readOnly, filename, minHeight, maxHeightProportion, maxHeight, id, ...boxProps }: MonacoEditorProps): react.JSX.Element;
20
20
  interface MonacoDiffEditorProps extends BoxProps {
21
21
  original: string | undefined;
22
22
  modified: string | undefined;
@@ -27,6 +27,6 @@ interface MonacoDiffEditorProps extends BoxProps {
27
27
  id?: string;
28
28
  hideUnchangedRegions?: boolean;
29
29
  }
30
- declare function MonacoDiffEditor({ original, modified, onModifiedValueChange, language: _language, enableFancyToml, readOnly, id, hideUnchangedRegions, ...boxProps }: MonacoDiffEditorProps): react_jsx_runtime.JSX.Element;
30
+ declare function MonacoDiffEditor({ original, modified, onModifiedValueChange, language: _language, enableFancyToml, readOnly, id, hideUnchangedRegions, ...boxProps }: MonacoDiffEditorProps): react.JSX.Element;
31
31
 
32
32
  export { MonacoDiffEditor, type MonacoDiffEditorProps, MonacoEditor, type MonacoEditorProps, type MonacoLanguage, languageFromPath };
@@ -1,6 +1,5 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
3
  import { CenterProps } from '@mantine/core';
5
4
 
6
5
  interface PageGuardProps extends CenterProps {
@@ -8,6 +7,6 @@ interface PageGuardProps extends CenterProps {
8
7
  error?: false | string;
9
8
  children?: ReactNode;
10
9
  }
11
- declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
10
+ declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
12
11
 
13
12
  export { PageGuard, type PageGuardProps };
@@ -1,6 +1,5 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
3
  import { CenterProps } from '@mantine/core';
5
4
 
6
5
  interface PageGuardProps extends CenterProps {
@@ -8,6 +7,6 @@ interface PageGuardProps extends CenterProps {
8
7
  error?: false | string;
9
8
  children?: ReactNode;
10
9
  }
11
- declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
10
+ declare function PageGuard({ isPending, error, children, ...centerProps }: PageGuardProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
12
11
 
13
12
  export { PageGuard, type PageGuardProps };
@@ -1,9 +1,9 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { TextInputProps } from '@mantine/core';
3
3
 
4
4
  interface SearchInputProps extends TextInputProps {
5
5
  onSearch?: (search: string) => void;
6
6
  }
7
- declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react_jsx_runtime.JSX.Element;
7
+ declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react.JSX.Element;
8
8
 
9
9
  export { SearchInput, type SearchInputProps };
@@ -1,9 +1,9 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { TextInputProps } from '@mantine/core';
3
3
 
4
4
  interface SearchInputProps extends TextInputProps {
5
5
  onSearch?: (search: string) => void;
6
6
  }
7
- declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react_jsx_runtime.JSX.Element;
7
+ declare function SearchInput({ onSearch, onChange, ...inputProps }: SearchInputProps): react.JSX.Element;
8
8
 
9
9
  export { SearchInput, type SearchInputProps };
@@ -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, Dispatch, SetStateAction } from 'react';
3
+ import { ModalProps } from '@mantine/core';
4
4
 
5
5
  interface SharedTextUpdateData {
6
6
  title: string;
@@ -15,6 +15,6 @@ interface SharedTextUpdateProps extends Omit<Omit<ModalProps, "opened">, "onClos
15
15
  setData: Dispatch<SetStateAction<false | SharedTextUpdateData>>;
16
16
  disabled?: boolean;
17
17
  }
18
- declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): react_jsx_runtime.JSX.Element;
18
+ declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): react.JSX.Element;
19
19
 
20
20
  export { SharedTextUpdate, type SharedTextUpdateData, type SharedTextUpdateProps, useSharedTextUpdateData };
@@ -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, Dispatch, SetStateAction } from 'react';
3
+ import { ModalProps } from '@mantine/core';
4
4
 
5
5
  interface SharedTextUpdateData {
6
6
  title: string;
@@ -15,6 +15,6 @@ interface SharedTextUpdateProps extends Omit<Omit<ModalProps, "opened">, "onClos
15
15
  setData: Dispatch<SetStateAction<false | SharedTextUpdateData>>;
16
16
  disabled?: boolean;
17
17
  }
18
- declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): react_jsx_runtime.JSX.Element;
18
+ declare function SharedTextUpdate({ data, setData, disabled, ...modalProps }: SharedTextUpdateProps): react.JSX.Element;
19
19
 
20
20
  export { SharedTextUpdate, type SharedTextUpdateData, type SharedTextUpdateProps, useSharedTextUpdateData };
@@ -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 ShowHideButton({ show, setShow, }: {
4
4
  show: boolean;
5
5
  setShow: (show: boolean) => void;
6
- }): react_jsx_runtime.JSX.Element;
6
+ }): react.JSX.Element;
7
7
 
8
8
  export { ShowHideButton };
@@ -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 ShowHideButton({ show, setShow, }: {
4
4
  show: boolean;
5
5
  setShow: (show: boolean) => void;
6
- }): react_jsx_runtime.JSX.Element;
6
+ }): react.JSX.Element;
7
7
 
8
8
  export { ShowHideButton };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { StackProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { StackProps } from '@mantine/core';
4
4
 
5
5
  interface StatBarProps extends StackProps {
6
6
  title: string;
@@ -10,6 +10,6 @@ interface StatBarProps extends StackProps {
10
10
  warning: number | undefined;
11
11
  critical: number | undefined;
12
12
  }
13
- declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): react_jsx_runtime.JSX.Element;
13
+ declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): react.JSX.Element;
14
14
 
15
15
  export { StatBar, type StatBarProps };
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { StackProps } from '@mantine/core';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { StackProps } from '@mantine/core';
4
4
 
5
5
  interface StatBarProps extends StackProps {
6
6
  title: string;
@@ -10,6 +10,6 @@ interface StatBarProps extends StackProps {
10
10
  warning: number | undefined;
11
11
  critical: number | undefined;
12
12
  }
13
- declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): react_jsx_runtime.JSX.Element;
13
+ declare function StatBar({ title, icon, description, percentage: _percentage, warning: _warning, critical: _critical, ...props }: StatBarProps): react.JSX.Element;
14
14
 
15
15
  export { StatBar, type StatBarProps };
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
  import { ColorIntention } from '../color.cjs';
3
4
  import { GroupProps, TextProps, ProgressProps, FloatingPosition } from '@mantine/core';
4
- import { ReactNode } from 'react';
5
5
 
6
6
  interface StatCellProps extends GroupProps {
7
7
  value: number | undefined;
@@ -12,6 +12,6 @@ interface StatCellProps extends GroupProps {
12
12
  infoPosition?: FloatingPosition;
13
13
  infoDisabled?: boolean;
14
14
  }
15
- declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): react_jsx_runtime.JSX.Element;
15
+ declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): react.JSX.Element;
16
16
 
17
17
  export { StatCell, type StatCellProps };
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
  import { ColorIntention } from '../color.js';
3
4
  import { GroupProps, TextProps, ProgressProps, FloatingPosition } from '@mantine/core';
4
- import { ReactNode } from 'react';
5
5
 
6
6
  interface StatCellProps extends GroupProps {
7
7
  value: number | undefined;
@@ -12,6 +12,6 @@ interface StatCellProps extends GroupProps {
12
12
  infoPosition?: FloatingPosition;
13
13
  infoDisabled?: boolean;
14
14
  }
15
- declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): react_jsx_runtime.JSX.Element;
15
+ declare function StatCell({ value, intent, textProps, barProps, info, infoPosition, infoDisabled, ...groupProps }: StatCellProps): react.JSX.Element;
16
16
 
17
17
  export { StatCell, type StatCellProps };