@dartech/arsenal-ui 1.2.3 → 1.2.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 (271) hide show
  1. package/.babelrc +13 -0
  2. package/.eslintrc.json +22 -0
  3. package/{index.d.ts → index.ts} +5 -5
  4. package/jest.config.ts +11 -0
  5. package/package.json +3 -12
  6. package/project.json +94 -0
  7. package/rollup.config.js +146 -0
  8. package/src/assets/chevron_left_gray.svg +3 -0
  9. package/src/consts/index.ts +13 -0
  10. package/src/interfaces/common.ts +18 -0
  11. package/src/interfaces/definition.ts +143 -0
  12. package/src/interfaces/{index.d.ts → index.ts} +3 -3
  13. package/src/interfaces/ui.ts +80 -0
  14. package/src/lib/Alert/Alert.tsx +108 -0
  15. package/src/lib/Alert/index.ts +1 -0
  16. package/src/lib/Breadcrumbs/Breadcrumbs.styled.tsx +16 -0
  17. package/src/lib/Breadcrumbs/Breadcrumbs.tsx +40 -0
  18. package/src/lib/Breadcrumbs/{index.d.ts → index.ts} +1 -1
  19. package/src/lib/ContentLayout/ContentLayout.tsx +31 -0
  20. package/src/lib/ContentLayout/index.ts +1 -0
  21. package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +78 -0
  22. package/src/lib/Definition/CreateDefinition/{index.d.ts → index.ts} +1 -1
  23. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +71 -0
  24. package/src/lib/Definition/DefinitionFiller/{index.d.ts → index.ts} +1 -1
  25. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.tsx +54 -0
  26. package/src/lib/Definition/DefinitionValueView/PropertyDataView.tsx +67 -0
  27. package/src/lib/Definition/DefinitionValueView/{index.d.ts → index.ts} +1 -1
  28. package/src/lib/Definition/{index.d.ts → index.ts} +3 -3
  29. package/src/lib/Forms/BackButton.tsx +46 -0
  30. package/src/lib/Forms/ControlAceEditor.tsx +125 -0
  31. package/src/lib/Forms/ControlAutocomplete.tsx +145 -0
  32. package/src/lib/Forms/ControlCheckbox.tsx +113 -0
  33. package/src/lib/Forms/ControlDate.tsx +75 -0
  34. package/src/lib/Forms/ControlDateTime.tsx +77 -0
  35. package/src/lib/Forms/ControlDebouncedInput.tsx +80 -0
  36. package/src/lib/Forms/ControlInput.tsx +111 -0
  37. package/src/lib/Forms/ControlNumberInput.tsx +121 -0
  38. package/src/lib/Forms/ControlQueryAutocomplete.tsx +197 -0
  39. package/src/lib/Forms/ControlRadio.tsx +136 -0
  40. package/src/lib/Forms/ControlSelect.tsx +164 -0
  41. package/src/lib/Forms/ControlSwitch.tsx +71 -0
  42. package/src/lib/Forms/ControlTime.tsx +93 -0
  43. package/src/lib/Forms/CopyButton.tsx +46 -0
  44. package/src/lib/Forms/{index.d.ts → index.ts} +15 -15
  45. package/src/lib/Forms/useAutocomplete.tsx +47 -0
  46. package/src/lib/InfoItem/InfoItem.tsx +40 -0
  47. package/src/lib/InfoItem/{index.d.ts → index.ts} +1 -1
  48. package/src/lib/InfoItem/styles.ts +17 -0
  49. package/src/lib/JsonPathPicker/JsonPathPicker.tsx +73 -0
  50. package/src/lib/JsonPathPicker/PropertyStep.tsx +70 -0
  51. package/src/lib/JsonPathPicker/{index.d.ts → index.ts} +1 -1
  52. package/src/lib/JsonView/JsonView.tsx +41 -0
  53. package/src/lib/JsonView/{index.d.ts → index.ts} +1 -1
  54. package/src/lib/Loader/Loader.tsx +41 -0
  55. package/src/lib/Loader/{index.d.ts → index.ts} +1 -1
  56. package/src/lib/Modals/JsonModalView.tsx +53 -0
  57. package/src/lib/Modals/{index.d.ts → index.ts} +1 -1
  58. package/src/lib/Property/PropertyFiller/JsonEditor.tsx +58 -0
  59. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.tsx +129 -0
  60. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.tsx +85 -0
  61. package/src/lib/Property/PropertyFiller/PropertyFiller.tsx +199 -0
  62. package/src/lib/Property/PropertyFiller/{index.d.ts → index.ts} +2 -2
  63. package/src/lib/Property/PropertyFiller/usePropertyFiller.ts +72 -0
  64. package/src/lib/Property/PropertyFiller/useStyles.ts +12 -0
  65. package/src/lib/Property/PropertyValidator/NodeValidator.tsx +92 -0
  66. package/src/lib/Property/PropertyValidator/NodesList.tsx +26 -0
  67. package/src/lib/Property/PropertyValidator/NumericTypeValidator.tsx +59 -0
  68. package/src/lib/Property/PropertyValidator/PropertyValidator.tsx +42 -0
  69. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.tsx +4 -0
  70. package/src/lib/Property/PropertyValidator/StringTypeValidator.tsx +36 -0
  71. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.tsx +62 -0
  72. package/src/lib/Property/PropertyValidator/index.ts +1 -0
  73. package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +49 -0
  74. package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +58 -0
  75. package/src/lib/Property/PropertyValueField/DateValueField.tsx +58 -0
  76. package/src/lib/Property/PropertyValueField/JsonValueField.tsx +65 -0
  77. package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +49 -0
  78. package/src/lib/Property/PropertyValueField/StringValueField.tsx +50 -0
  79. package/src/lib/Property/PropertyValueField/TimeValueField.tsx +67 -0
  80. package/src/lib/Property/PropertyValueField/{index.d.ts → index.ts} +1 -1
  81. package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +115 -0
  82. package/src/lib/Property/PropertyWidget/{index.d.ts → index.ts} +1 -1
  83. package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +148 -0
  84. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +158 -0
  85. package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +40 -0
  86. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +41 -0
  87. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +27 -0
  88. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +133 -0
  89. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +46 -0
  90. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +52 -0
  91. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +103 -0
  92. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.d.ts → index.ts} +1 -1
  93. package/src/lib/Property/UpsertProperty/{index.d.ts → index.ts} +2 -2
  94. package/src/lib/Property/UpsertProperty/useCustomFields.ts +22 -0
  95. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +37 -0
  96. package/src/lib/Property/ViewPropertiesList/{index.d.ts → index.ts} +1 -1
  97. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +40 -0
  98. package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +48 -0
  99. package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +148 -0
  100. package/src/lib/Property/ViewProperty/PropertyItem.tsx +43 -0
  101. package/src/lib/Property/ViewProperty/ViewProperty.tsx +52 -0
  102. package/src/lib/Property/ViewProperty/{index.d.ts → index.ts} +1 -1
  103. package/src/lib/Property/{index.d.ts → index.ts} +5 -5
  104. package/src/lib/Sidebar/Sidebar.styled.tsx +157 -0
  105. package/src/lib/Sidebar/Sidebar.tsx +27 -0
  106. package/src/lib/Sidebar/SidebarContext.tsx +37 -0
  107. package/src/lib/Sidebar/SidebarDrawer.tsx +50 -0
  108. package/src/lib/Sidebar/SidebarLink/MenuIcon.tsx +16 -0
  109. package/src/lib/Sidebar/SidebarLink/SidebarLink.tsx +54 -0
  110. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.tsx +54 -0
  111. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.tsx +62 -0
  112. package/src/lib/Sidebar/SidebarLink/{index.d.ts → index.ts} +2 -2
  113. package/src/lib/Sidebar/index.ts +2 -0
  114. package/src/lib/Status/Status.tsx +16 -0
  115. package/src/lib/Status/{index.d.ts → index.ts} +1 -1
  116. package/src/lib/Status/styles.ts +21 -0
  117. package/src/lib/StepperView/StepperView.tsx +73 -0
  118. package/src/lib/StepperView/{index.d.ts → index.ts} +1 -1
  119. package/src/lib/Table/DataGrid/JsonTypeCell.tsx +51 -0
  120. package/src/lib/Table/DataGrid/Table.tsx +117 -0
  121. package/src/lib/Table/DataGrid/TableAction.tsx +43 -0
  122. package/src/lib/Table/DataGrid/TableColumnMenu.tsx +12 -0
  123. package/src/lib/Table/DataGrid/TablePagination.tsx +42 -0
  124. package/src/lib/Table/DataGrid/index.ts +2 -0
  125. package/src/lib/Table/DataGrid/styles.ts +59 -0
  126. package/src/lib/Table/DataGrid/usePagination.ts +15 -0
  127. package/src/lib/Table/DataGrid/useTableQueryPagination.ts +47 -0
  128. package/src/lib/Table/DataGrid/useTableQuerySorting.ts +47 -0
  129. package/src/lib/Table/SimpleTable/SimpleTable.tsx +138 -0
  130. package/src/lib/Table/SimpleTable/TableActionCell.tsx +67 -0
  131. package/src/lib/Table/SimpleTable/index.ts +2 -0
  132. package/src/lib/Table/SimpleTable/useTablePagination.ts +54 -0
  133. package/src/lib/Table/SimpleTable/useTableSorting.ts +50 -0
  134. package/src/lib/Table/index.ts +2 -0
  135. package/src/lib/Tabs/RouteTabs.tsx +54 -0
  136. package/src/lib/Tabs/TabPanel.tsx +42 -0
  137. package/src/lib/Tabs/{index.d.ts → index.ts} +2 -2
  138. package/src/lib/{index.d.ts → index.ts} +16 -16
  139. package/src/theme/baseTheme.ts +128 -0
  140. package/src/theme/fonts.d.ts +2 -0
  141. package/src/theme/index.ts +126 -0
  142. package/src/theme/inputThemeOptions.ts +126 -0
  143. package/src/theme/stepperThemeOptions.ts +20 -0
  144. package/src/theme/tableThemeOptions.ts +50 -0
  145. package/src/theme/typographyThemeOptions.ts +32 -0
  146. package/src/utils/common.ts +73 -0
  147. package/src/utils/dem.ts +431 -0
  148. package/src/utils/hooks.ts +41 -0
  149. package/src/utils/{index.d.ts → index.ts} +5 -5
  150. package/src/utils/ui-utils.tsx +102 -0
  151. package/src/utils/validators.ts +14 -0
  152. package/tsconfig.json +25 -0
  153. package/tsconfig.lib.json +23 -0
  154. package/tsconfig.spec.json +20 -0
  155. package/index.js +0 -1
  156. package/src/consts/index.d.ts +0 -12
  157. package/src/interfaces/common.d.ts +0 -17
  158. package/src/interfaces/definition.d.ts +0 -107
  159. package/src/interfaces/ui.d.ts +0 -70
  160. package/src/lib/Alert/Alert.d.ts +0 -53
  161. package/src/lib/Alert/index.d.ts +0 -1
  162. package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +0 -9
  163. package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +0 -2
  164. package/src/lib/ContentLayout/ContentLayout.d.ts +0 -9
  165. package/src/lib/ContentLayout/index.d.ts +0 -1
  166. package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +0 -11
  167. package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +0 -10
  168. package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +0 -8
  169. package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +0 -9
  170. package/src/lib/Forms/BackButton.d.ts +0 -7
  171. package/src/lib/Forms/ControlAceEditor.d.ts +0 -24
  172. package/src/lib/Forms/ControlAutocomplete.d.ts +0 -69
  173. package/src/lib/Forms/ControlCheckbox.d.ts +0 -51
  174. package/src/lib/Forms/ControlDate.d.ts +0 -18
  175. package/src/lib/Forms/ControlDateTime.d.ts +0 -18
  176. package/src/lib/Forms/ControlDebouncedInput.d.ts +0 -4
  177. package/src/lib/Forms/ControlInput.d.ts +0 -59
  178. package/src/lib/Forms/ControlNumberInput.d.ts +0 -51
  179. package/src/lib/Forms/ControlQueryAutocomplete.d.ts +0 -16
  180. package/src/lib/Forms/ControlRadio.d.ts +0 -66
  181. package/src/lib/Forms/ControlSelect.d.ts +0 -67
  182. package/src/lib/Forms/ControlSwitch.d.ts +0 -19
  183. package/src/lib/Forms/ControlTime.d.ts +0 -18
  184. package/src/lib/Forms/CopyButton.d.ts +0 -20
  185. package/src/lib/Forms/useAutocomplete.d.ts +0 -10
  186. package/src/lib/InfoItem/InfoItem.d.ts +0 -10
  187. package/src/lib/InfoItem/styles.d.ts +0 -12
  188. package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +0 -10
  189. package/src/lib/JsonPathPicker/PropertyStep.d.ts +0 -11
  190. package/src/lib/JsonView/JsonView.d.ts +0 -7
  191. package/src/lib/Loader/Loader.d.ts +0 -21
  192. package/src/lib/Modals/JsonModalView.d.ts +0 -10
  193. package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +0 -10
  194. package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +0 -12
  195. package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +0 -11
  196. package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +0 -12
  197. package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +0 -24
  198. package/src/lib/Property/PropertyFiller/useStyles.d.ts +0 -12
  199. package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +0 -6
  200. package/src/lib/Property/PropertyValidator/NodesList.d.ts +0 -6
  201. package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +0 -8
  202. package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +0 -6
  203. package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +0 -3
  204. package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +0 -8
  205. package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +0 -7
  206. package/src/lib/Property/PropertyValidator/index.d.ts +0 -1
  207. package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +0 -7
  208. package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +0 -9
  209. package/src/lib/Property/PropertyValueField/DateValueField.d.ts +0 -9
  210. package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +0 -10
  211. package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +0 -9
  212. package/src/lib/Property/PropertyValueField/StringValueField.d.ts +0 -9
  213. package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +0 -9
  214. package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +0 -13
  215. package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +0 -13
  216. package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +0 -10
  217. package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +0 -7
  218. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +0 -6
  219. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +0 -7
  220. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +0 -8
  221. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +0 -6
  222. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +0 -10
  223. package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +0 -6
  224. package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +0 -6
  225. package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +0 -8
  226. package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +0 -7
  227. package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +0 -8
  228. package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +0 -7
  229. package/src/lib/Property/ViewProperty/PropertyItem.d.ts +0 -9
  230. package/src/lib/Property/ViewProperty/ViewProperty.d.ts +0 -9
  231. package/src/lib/Sidebar/Sidebar.d.ts +0 -10
  232. package/src/lib/Sidebar/Sidebar.styled.d.ts +0 -117
  233. package/src/lib/Sidebar/SidebarContext.d.ts +0 -11
  234. package/src/lib/Sidebar/SidebarDrawer.d.ts +0 -9
  235. package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +0 -7
  236. package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +0 -7
  237. package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +0 -8
  238. package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +0 -10
  239. package/src/lib/Sidebar/index.d.ts +0 -2
  240. package/src/lib/Status/Status.d.ts +0 -8
  241. package/src/lib/Status/styles.d.ts +0 -12
  242. package/src/lib/StepperView/StepperView.d.ts +0 -11
  243. package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +0 -7
  244. package/src/lib/Table/DataGrid/Table.d.ts +0 -49
  245. package/src/lib/Table/DataGrid/TableAction.d.ts +0 -13
  246. package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +0 -3
  247. package/src/lib/Table/DataGrid/TablePagination.d.ts +0 -3
  248. package/src/lib/Table/DataGrid/index.d.ts +0 -2
  249. package/src/lib/Table/DataGrid/styles.d.ts +0 -12
  250. package/src/lib/Table/DataGrid/usePagination.d.ts +0 -5
  251. package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +0 -11
  252. package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +0 -6
  253. package/src/lib/Table/SimpleTable/SimpleTable.d.ts +0 -17
  254. package/src/lib/Table/SimpleTable/TableActionCell.d.ts +0 -10
  255. package/src/lib/Table/SimpleTable/index.d.ts +0 -2
  256. package/src/lib/Table/SimpleTable/useTablePagination.d.ts +0 -7
  257. package/src/lib/Table/SimpleTable/useTableSorting.d.ts +0 -6
  258. package/src/lib/Table/index.d.ts +0 -2
  259. package/src/lib/Tabs/RouteTabs.d.ts +0 -11
  260. package/src/lib/Tabs/TabPanel.d.ts +0 -25
  261. package/src/theme/baseTheme.d.ts +0 -2
  262. package/src/theme/index.d.ts +0 -1
  263. package/src/theme/inputThemeOptions.d.ts +0 -117
  264. package/src/theme/stepperThemeOptions.d.ts +0 -16
  265. package/src/theme/tableThemeOptions.d.ts +0 -47
  266. package/src/theme/typographyThemeOptions.d.ts +0 -29
  267. package/src/utils/common.d.ts +0 -7
  268. package/src/utils/dem.d.ts +0 -27
  269. package/src/utils/hooks.d.ts +0 -7
  270. package/src/utils/ui-utils.d.ts +0 -8
  271. package/src/utils/validators.d.ts +0 -5
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropertiesArrayType } from '../../../interfaces';
3
- type Props = {
4
- properties: PropertiesArrayType;
5
- };
6
- declare const EntityPropertiesShortView: ({ properties }: Props) => JSX.Element;
7
- export default EntityPropertiesShortView;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropertiesArrayType } from '../../../interfaces';
3
- type Props = {
4
- properties: PropertiesArrayType;
5
- parentNames?: string[];
6
- };
7
- declare const _default: import("react").MemoExoticComponent<({ properties, parentNames }: Props) => JSX.Element>;
8
- export default _default;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropertyUnion } from '../../../interfaces';
3
- type Props = {
4
- property: PropertyUnion;
5
- };
6
- declare const PropertyDataTable: ({ property }: Props) => JSX.Element;
7
- export default PropertyDataTable;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropertyUnion } from '../../../interfaces';
3
- type PropertyItemProps = {
4
- property: PropertyUnion;
5
- showName: boolean;
6
- showType: boolean;
7
- };
8
- declare const PropertyItem: ({ property, showName, showType }: PropertyItemProps) => JSX.Element;
9
- export default PropertyItem;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropertyUnion } from '../../../interfaces';
3
- type Props = {
4
- property: PropertyUnion;
5
- parentNames?: string[];
6
- defaultExpanded?: boolean;
7
- };
8
- export declare const ViewProperty: ({ property, parentNames, defaultExpanded }: Props) => JSX.Element;
9
- export default ViewProperty;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Route } from '@dartech/arsenal-ui';
3
- type Props = {
4
- routes: Route[];
5
- theme?: any;
6
- title?: string;
7
- id?: string;
8
- };
9
- export declare const Sidebar: ({ routes, theme, title, id }: Props) => JSX.Element;
10
- export {};
@@ -1,117 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const Drawer: import("@emotion/styled").StyledComponent<import("@mui/material/Drawer").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
4
- export declare const Header: import("@emotion/styled").StyledComponent<{
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material/Toolbar").ToolbarClasses>;
7
- disableGutters?: boolean;
8
- variant?: "regular" | "dense";
9
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
10
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
- ref?: import("react").Ref<HTMLDivElement>;
12
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disableGutters" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
- export declare const List: import("@emotion/styled").StyledComponent<{
14
- children?: import("react").ReactNode;
15
- classes?: Partial<import("@mui/material/List").ListClasses>;
16
- dense?: boolean;
17
- disablePadding?: boolean;
18
- subheader?: import("react").ReactNode;
19
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
20
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
21
- ref?: import("react").Ref<HTMLUListElement>;
22
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
23
- export declare const ListItem: import("@emotion/styled").StyledComponent<{
24
- button?: false;
25
- } & import("@mui/material/ListItem").ListItemBaseProps & {
26
- components?: {
27
- Root?: import("react").ElementType<any>;
28
- };
29
- componentsProps?: {
30
- root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material/ListItem").ListItemComponentsPropsOverrides;
31
- };
32
- slotProps?: {
33
- root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material/ListItem").ListItemComponentsPropsOverrides;
34
- };
35
- slots?: {
36
- root?: import("react").ElementType<any>;
37
- };
38
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
39
- ref?: import("react").Ref<HTMLLIElement>;
40
- }, "button" | "style" | "alignItems" | "classes" | "slotProps" | "children" | "slots" | "className" | "components" | "componentsProps" | "sx" | "disableGutters" | "dense" | "disabled" | "disablePadding" | "autoFocus" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
41
- export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemButton").ListItemButtonBaseProps & Omit<{
42
- action?: import("react").Ref<import("@mui/material/ButtonBase").ButtonBaseActions>;
43
- centerRipple?: boolean;
44
- children?: import("react").ReactNode;
45
- classes?: Partial<import("@mui/material/ButtonBase").ButtonBaseClasses>;
46
- disabled?: boolean;
47
- disableRipple?: boolean;
48
- disableTouchRipple?: boolean;
49
- focusRipple?: boolean;
50
- focusVisibleClassName?: string;
51
- LinkComponent?: import("react").ElementType<any>;
52
- onFocusVisible?: import("react").FocusEventHandler<any>;
53
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
54
- tabIndex?: number;
55
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
56
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
57
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
58
- ref?: import("react").Ref<HTMLDivElement>;
59
- }, "style" | "alignItems" | "classes" | "children" | "className" | "tabIndex" | "sx" | "disableGutters" | "dense" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
60
- export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemIcon").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
61
- export declare const ListSubheader: import("@emotion/styled").StyledComponent<{
62
- children?: import("react").ReactNode;
63
- classes?: Partial<import("@mui/material/ListSubheader").ListSubheaderClasses>;
64
- color?: "inherit" | "default" | "primary";
65
- disableGutters?: boolean;
66
- disableSticky?: boolean;
67
- inset?: boolean;
68
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
69
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
70
- ref?: import("react").Ref<HTMLLIElement>;
71
- }, "color" | "inset" | "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disableGutters" | "disableSticky"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
72
- export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemText").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
73
- export declare const ChildrenList: import("@emotion/styled").StyledComponent<{
74
- children?: import("react").ReactNode;
75
- classes?: Partial<import("@mui/material/List").ListClasses>;
76
- dense?: boolean;
77
- disablePadding?: boolean;
78
- subheader?: import("react").ReactNode;
79
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
80
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
81
- ref?: import("react").Ref<HTMLUListElement>;
82
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
83
- export declare const CollapseButton: import("@emotion/styled").StyledComponent<{
84
- action?: import("react").Ref<import("@mui/material/ButtonBase").ButtonBaseActions>;
85
- centerRipple?: boolean;
86
- children?: import("react").ReactNode;
87
- classes?: Partial<import("@mui/material/ButtonBase").ButtonBaseClasses>;
88
- disabled?: boolean;
89
- disableRipple?: boolean;
90
- disableTouchRipple?: boolean;
91
- focusRipple?: boolean;
92
- focusVisibleClassName?: string;
93
- LinkComponent?: import("react").ElementType<any>;
94
- onFocusVisible?: import("react").FocusEventHandler<any>;
95
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
96
- tabIndex?: number;
97
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
98
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
99
- } & Omit<{
100
- action?: import("react").Ref<import("@mui/material/ButtonBase").ButtonBaseActions>;
101
- centerRipple?: boolean;
102
- children?: import("react").ReactNode;
103
- classes?: Partial<import("@mui/material/ButtonBase").ButtonBaseClasses>;
104
- disabled?: boolean;
105
- disableRipple?: boolean;
106
- disableTouchRipple?: boolean;
107
- focusRipple?: boolean;
108
- focusVisibleClassName?: string;
109
- LinkComponent?: import("react").ElementType<any>;
110
- onFocusVisible?: import("react").FocusEventHandler<any>;
111
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
112
- tabIndex?: number;
113
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
114
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
115
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
116
- ref?: import("react").Ref<HTMLButtonElement>;
117
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- type SidebarContextProps = {
3
- collapsed: boolean;
4
- toggleCollapse: () => void;
5
- };
6
- export declare const SidebarContext: import("react").Context<SidebarContextProps>;
7
- export declare const useSidebarContext: () => SidebarContextProps;
8
- export declare const SidebarContextProvider: ({ children }: {
9
- children: any;
10
- }) => JSX.Element;
11
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Route } from '../../interfaces';
3
- type Props = {
4
- title?: string;
5
- routes: Route[];
6
- id?: string;
7
- };
8
- declare const SidebarDrawer: ({ title, routes, id }: Props) => JSX.Element;
9
- export default SidebarDrawer;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- type Props = {
3
- src: string;
4
- alt?: string;
5
- };
6
- export declare const MenuIcon: ({ src, alt }: Props) => JSX.Element;
7
- export default MenuIcon;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Route } from '../../../interfaces';
3
- type Props = {
4
- route: Route;
5
- };
6
- declare const SidebarLink: ({ route }: Props) => JSX.Element;
7
- export default SidebarLink;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Route } from '../../../interfaces';
3
- type Props = {
4
- route: Route;
5
- isActive: boolean;
6
- };
7
- declare const SidebarLinkItem: ({ route, isActive }: Props) => JSX.Element;
8
- export default SidebarLinkItem;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Route } from '../../../interfaces';
3
- type Props = {
4
- route: Route;
5
- isActive: boolean;
6
- isListOpen: boolean;
7
- handleClick: () => void;
8
- };
9
- declare function SidebarNestedItem({ route, isActive, isListOpen, handleClick, }: Props): JSX.Element;
10
- export default SidebarNestedItem;
@@ -1,2 +0,0 @@
1
- export * from './Sidebar';
2
- export * from './SidebarLink/MenuIcon';
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { StatusVariant } from '../../interfaces';
3
- type Props = {
4
- text: string;
5
- status?: StatusVariant;
6
- };
7
- export declare const Status: ({ text, status }: Props) => JSX.Element;
8
- export default Status;
@@ -1,12 +0,0 @@
1
- declare const _default: (params: void, styleOverrides?: {
2
- props: {
3
- classes?: Record<string, string>;
4
- } & Record<string, unknown>;
5
- ownerState?: Record<string, unknown>;
6
- }) => {
7
- classes: Record<"root", string>;
8
- theme: import("@mui/material").Theme;
9
- css: import("tss-react/types").Css;
10
- cx: import("tss-react/types").Cx;
11
- };
12
- export default _default;
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type StepperDataItem = {
3
- label: string | ReactNode;
4
- content: ReactNode;
5
- };
6
- export type StepperData = StepperDataItem[];
7
- type Props = {
8
- data: StepperData;
9
- };
10
- export declare const StepperView: ({ data }: Props) => JSX.Element;
11
- export default StepperView;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare const JsonTypeCell: ({ value, copyButton, textField, }: {
3
- value: any;
4
- copyButton?: boolean;
5
- textField?: boolean;
6
- }) => JSX.Element;
7
- export default JsonTypeCell;
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import { GridCellParams, GridColumns, GridFeatureMode, GridRowsProp } from '@mui/x-data-grid';
3
- /**
4
- * This interface is referencing the [[Table]] component props.
5
- * @category Common UI components
6
- */
7
- export interface TableProps {
8
- /**
9
- * Data loading state
10
- */
11
- loading?: boolean;
12
- /**
13
- * Table columns
14
- */
15
- columns: GridColumns;
16
- /**
17
- * Table rows
18
- */
19
- rows: GridRowsProp;
20
- /**
21
- * Rows count to display
22
- */
23
- rowCount: number;
24
- disableMargin?: boolean;
25
- /**
26
- * Data display mode.
27
- * Values: `client` | `server`;
28
- * Default: `server`
29
- */
30
- mode?: GridFeatureMode;
31
- /**
32
- * Page size. Default `10`
33
- */
34
- initialPageSize?: number;
35
- /**
36
- * On cell click handler function
37
- * ```typescript
38
- * (params: GridCellParams, event: React.MouseEvent) => void;
39
- * ```
40
- */
41
- onCellClick?: (params: GridCellParams, event: React.MouseEvent) => void;
42
- pagination?: boolean;
43
- }
44
- /**
45
- * Main data display component. MUI DataGrid used
46
- * @category Common UI components
47
- */
48
- export declare const Table: ({ columns, rows, rowCount, loading, disableMargin, mode, initialPageSize, pagination, onCellClick, }: TableProps) => JSX.Element;
49
- export default Table;
@@ -1,13 +0,0 @@
1
- import { ReactElement } from 'react';
2
- type Props = {
3
- icon: ReactElement;
4
- onClick?: () => void;
5
- label: string;
6
- showInMenu?: boolean;
7
- location?: {
8
- pathname: string;
9
- state?: Record<string, unknown>;
10
- };
11
- };
12
- export declare const TableAction: ({ icon, label, showInMenu, onClick, location }: Props) => JSX.Element;
13
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TableColumnMenu: ({ hideMenu, currentColumn, onUnsort, ...rest }: any) => JSX.Element;
3
- export default TableColumnMenu;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const TablePagination: () => JSX.Element;
3
- export default TablePagination;
@@ -1,2 +0,0 @@
1
- export * from './Table';
2
- export * from './TableAction';
@@ -1,12 +0,0 @@
1
- declare const _default: (params: void, styleOverrides?: {
2
- props: {
3
- classes?: Record<string, string>;
4
- } & Record<string, unknown>;
5
- ownerState?: Record<string, unknown>;
6
- }) => {
7
- classes: Record<"root", string>;
8
- theme: import("@mui/material").Theme;
9
- css: import("tss-react/types").Css;
10
- cx: import("tss-react/types").Cx;
11
- };
12
- export default _default;
@@ -1,5 +0,0 @@
1
- declare const usePagination: (initialPageSize?: number) => {
2
- pageSize: number;
3
- handlePageSizeChange: (size: any) => void;
4
- };
5
- export default usePagination;
@@ -1,11 +0,0 @@
1
- import { GridFeatureMode } from '@mui/x-data-grid';
2
- interface Props {
3
- mode: GridFeatureMode;
4
- }
5
- export declare const useTableQueryPagination: ({ mode }: Props) => {
6
- page: number;
7
- size: number;
8
- onPageChange: (newPage: number) => void;
9
- onSizeChange: (count: number) => void;
10
- };
11
- export default useTableQueryPagination;
@@ -1,6 +0,0 @@
1
- import { GridColumnHeaderParams, GridColumns } from '@mui/x-data-grid';
2
- export declare const useTableQuerySorting: () => {
3
- onColumnHeaderClick: ({ field }: GridColumnHeaderParams) => void;
4
- getSortedColumns: (columns: GridColumns<any>) => GridColumns<any>;
5
- };
6
- export default useTableQuerySorting;
@@ -1,17 +0,0 @@
1
- import { ReactNode, ForwardedRef } from 'react';
2
- import { Column, Row } from '../../../interfaces';
3
- interface Props<T> {
4
- columns: Column<T>[];
5
- rows: Row<T>[];
6
- totalCount: number;
7
- loading?: boolean;
8
- pagination?: boolean;
9
- onRowClick?: (row: Row<T>) => void;
10
- children?: ReactNode;
11
- verticalAlign?: 'top' | 'middle' | 'bottom' | 'sub' | 'baseline';
12
- }
13
- declare function TableInner<T>({ columns, rows, totalCount, children, pagination, loading, onRowClick, verticalAlign }: Props<T>, ref: ForwardedRef<HTMLTableElement>): JSX.Element;
14
- export declare const SimpleTable: <T>(props: Props<T> & {
15
- ref?: ForwardedRef<HTMLTableElement>;
16
- }) => ReturnType<typeof TableInner>;
17
- export default SimpleTable;
@@ -1,10 +0,0 @@
1
- import { MouseEvent } from 'react';
2
- type ActionItem = {
3
- title: string;
4
- onClick: (e?: MouseEvent<HTMLElement>) => void;
5
- };
6
- type Props = {
7
- actionsList: ActionItem[];
8
- };
9
- export declare const TableActionCell: ({ actionsList }: Props) => JSX.Element;
10
- export {};
@@ -1,2 +0,0 @@
1
- export * from './SimpleTable';
2
- export * from './TableActionCell';
@@ -1,7 +0,0 @@
1
- declare const useTablePagination: () => {
2
- page: string | number;
3
- size: string | number;
4
- onPageChange: (newPage: number) => void;
5
- onSizeChange: (newSize: number) => void;
6
- };
7
- export default useTablePagination;
@@ -1,6 +0,0 @@
1
- declare const useTableSorting: () => {
2
- sortParams: string[][];
3
- onSortChanged: (sortKey: string) => void;
4
- getColumnSorting: (sortKey: string) => string | false;
5
- };
6
- export default useTableSorting;
@@ -1,2 +0,0 @@
1
- export * from './DataGrid';
2
- export * from './SimpleTable';
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- interface RouteTab {
3
- name: string;
4
- label: string;
5
- component: React.ReactElement;
6
- }
7
- interface Props {
8
- tabs: RouteTab[];
9
- }
10
- export declare const RouteTabs: (props: Props) => JSX.Element;
11
- export default RouteTabs;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * This interface is referencing the [[TabPanel]] component props.
4
- * @category Common UI components
5
- */
6
- export interface TabPanelProps {
7
- /**
8
- * Active tab value
9
- */
10
- value: number | string;
11
- /**
12
- * Index of current panel
13
- */
14
- index: number | string;
15
- /**
16
- * Rendered children component
17
- */
18
- children: React.ReactElement;
19
- }
20
- /**
21
- * Tab panel component. Used with tabs component
22
- * @category Common UI components
23
- */
24
- export declare const TabPanel: (props: TabPanelProps) => JSX.Element;
25
- export default TabPanel;
@@ -1,2 +0,0 @@
1
- declare const _default: import("@mui/material/styles").Theme;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const theme: import("@mui/material/styles").Theme;
@@ -1,117 +0,0 @@
1
- declare const inputThemeOptions: {
2
- components: {
3
- MuiButton: {
4
- styleOverrides: {
5
- root: {
6
- lineHeight: number;
7
- };
8
- };
9
- };
10
- MuiInputBase: {
11
- styleOverrides: {
12
- root: {
13
- borderRadius: string;
14
- minWidth: string;
15
- background: string;
16
- };
17
- input: {
18
- minWidth: string;
19
- };
20
- };
21
- };
22
- MuiSelect: {
23
- styleOverrides: {
24
- nativeInput: {
25
- padding: number;
26
- height: string;
27
- };
28
- };
29
- };
30
- MuiTextField: {
31
- styleOverrides: {
32
- root: {
33
- minWidth: string;
34
- };
35
- };
36
- };
37
- MuiInputLabel: {
38
- styleOverrides: {
39
- root: {
40
- position: string;
41
- overflow: string;
42
- transform: string;
43
- marginBottom: string;
44
- fontWeight: number;
45
- fontSize: string;
46
- lineHeight: string;
47
- };
48
- };
49
- };
50
- MuiOutlinedInput: {
51
- styleOverrides: {
52
- root: {
53
- borderRadius: string;
54
- minWidth: string;
55
- };
56
- notchedOutline: {
57
- top: number;
58
- '& legend': {
59
- display: string;
60
- transition: string;
61
- };
62
- };
63
- };
64
- };
65
- MuiAutocomplete: {
66
- styleOverrides: {
67
- paper: {
68
- marginTop: number;
69
- borderRadius: number;
70
- boxShadow: string;
71
- };
72
- listbox: {
73
- '::-webkit-scrollbar': {
74
- width: string;
75
- backgroundColor: string;
76
- };
77
- '::-webkit-scrollbar-thumb': {
78
- borderRadius: string;
79
- backgroundColor: string;
80
- };
81
- };
82
- };
83
- };
84
- MuiMenu: {
85
- styleOverrides: {
86
- list: {
87
- paddingTop: number;
88
- paddingBottom: number;
89
- background: string;
90
- '& li.Mui-selected': {
91
- background: string;
92
- };
93
- };
94
- };
95
- };
96
- MuiPopover: {
97
- styleOverrides: {
98
- paper: {
99
- marginTop: number;
100
- borderRadius: number;
101
- boxShadow: string;
102
- };
103
- };
104
- };
105
- MuiFormLabel: {
106
- styleOverrides: {
107
- asterisk: {
108
- color: string;
109
- '&$error': {
110
- color: string;
111
- };
112
- };
113
- };
114
- };
115
- };
116
- };
117
- export default inputThemeOptions;