@dartech/arsenal-ui 1.3.0 → 1.3.2
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.
- package/{index.ts → index.d.ts} +5 -5
- package/index.js +1 -0
- package/package.json +10 -3
- package/src/consts/index.d.ts +12 -0
- package/src/interfaces/common.d.ts +17 -0
- package/src/interfaces/definition.d.ts +107 -0
- package/src/interfaces/{index.ts → index.d.ts} +3 -3
- package/src/interfaces/ui.d.ts +70 -0
- package/src/lib/Alert/Alert.d.ts +53 -0
- package/src/lib/Alert/index.d.ts +1 -0
- package/src/lib/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -0
- package/src/lib/Breadcrumbs/{index.ts → index.d.ts} +1 -1
- package/src/lib/ContentLayout/ContentLayout.d.ts +9 -0
- package/src/lib/ContentLayout/index.d.ts +1 -0
- package/src/lib/Definition/CreateDefinition/CreateDefinition.d.ts +11 -0
- package/src/lib/Definition/CreateDefinition/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.d.ts +10 -0
- package/src/lib/Definition/DefinitionFiller/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.d.ts +8 -0
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.d.ts +9 -0
- package/src/lib/Definition/DefinitionValueView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Definition/{index.ts → index.d.ts} +3 -3
- package/src/lib/Forms/BackButton.d.ts +7 -0
- package/src/lib/Forms/ControlAceEditor.d.ts +24 -0
- package/src/lib/Forms/ControlAutocomplete.d.ts +69 -0
- package/src/lib/Forms/ControlCheckbox.d.ts +51 -0
- package/src/lib/Forms/ControlDate.d.ts +18 -0
- package/src/lib/Forms/ControlDateTime.d.ts +18 -0
- package/src/lib/Forms/ControlDebouncedInput.d.ts +4 -0
- package/src/lib/Forms/ControlInput.d.ts +59 -0
- package/src/lib/Forms/ControlNumberInput.d.ts +51 -0
- package/src/lib/Forms/ControlQueryAutocomplete.d.ts +16 -0
- package/src/lib/Forms/ControlRadio.d.ts +66 -0
- package/src/lib/Forms/ControlSelect.d.ts +67 -0
- package/src/lib/Forms/ControlSwitch.d.ts +19 -0
- package/src/lib/Forms/ControlTime.d.ts +18 -0
- package/src/lib/Forms/CopyButton.d.ts +20 -0
- package/src/lib/Forms/{index.ts → index.d.ts} +15 -15
- package/src/lib/Forms/useAutocomplete.d.ts +10 -0
- package/src/lib/InfoItem/InfoItem.d.ts +10 -0
- package/src/lib/InfoItem/{index.ts → index.d.ts} +1 -1
- package/src/lib/JsonPathPicker/JsonPathPicker.d.ts +10 -0
- package/src/lib/JsonPathPicker/PropertyStep.d.ts +11 -0
- package/src/lib/JsonPathPicker/{index.ts → index.d.ts} +1 -1
- package/src/lib/JsonView/JsonView.d.ts +7 -0
- package/src/lib/JsonView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Loader/Loader.d.ts +21 -0
- package/src/lib/Loader/{index.ts → index.d.ts} +1 -1
- package/src/lib/Modals/JsonModalView.d.ts +10 -0
- package/src/lib/Modals/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/PropertyFiller/JsonEditor.d.ts +10 -0
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.d.ts +12 -0
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.d.ts +11 -0
- package/src/lib/Property/PropertyFiller/PropertyFiller.d.ts +12 -0
- package/src/lib/Property/PropertyFiller/{index.ts → index.d.ts} +2 -2
- package/src/lib/Property/PropertyFiller/styled.d.ts +18 -0
- package/src/lib/Property/PropertyFiller/usePropertyFiller.d.ts +24 -0
- package/src/lib/Property/PropertyValidator/NodeValidator.d.ts +6 -0
- package/src/lib/Property/PropertyValidator/NodesList.d.ts +6 -0
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.d.ts +8 -0
- package/src/lib/Property/PropertyValidator/PropertyValidator.d.ts +6 -0
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.d.ts +3 -0
- package/src/lib/Property/PropertyValidator/StringTypeValidator.d.ts +8 -0
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.d.ts +7 -0
- package/src/lib/Property/PropertyValidator/index.d.ts +1 -0
- package/src/lib/Property/PropertyValueField/BooleanValueField.d.ts +7 -0
- package/src/lib/Property/PropertyValueField/DateTimeValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/DateValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/JsonValueField.d.ts +10 -0
- package/src/lib/Property/PropertyValueField/PropertyValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/StringValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/TimeValueField.d.ts +9 -0
- package/src/lib/Property/PropertyValueField/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/PropertyWidget/PropertyWidget.d.ts +13 -0
- package/src/lib/Property/PropertyWidget/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.d.ts +13 -0
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.d.ts +10 -0
- package/src/lib/Property/UpsertProperty/CustomPropertyField.d.ts +7 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.d.ts +7 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.d.ts +8 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.d.ts +10 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.d.ts +6 -0
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/UpsertProperty/{index.ts → index.d.ts} +2 -2
- package/src/lib/Property/UpsertProperty/useCustomFields.d.ts +6 -0
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.d.ts +8 -0
- package/src/lib/Property/ViewPropertiesList/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.d.ts +7 -0
- package/src/lib/Property/ViewProperty/EntityPropertiesView.d.ts +8 -0
- package/src/lib/Property/ViewProperty/PropertyDataTable.d.ts +7 -0
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +9 -0
- package/src/lib/Property/ViewProperty/ViewProperty.d.ts +9 -0
- package/src/lib/Property/ViewProperty/{index.ts → index.d.ts} +1 -1
- package/src/lib/Property/{index.ts → index.d.ts} +5 -5
- package/src/lib/Sidebar/Sidebar.d.ts +10 -0
- package/src/lib/Sidebar/Sidebar.styled.d.ts +117 -0
- package/src/lib/Sidebar/SidebarContext.d.ts +11 -0
- package/src/lib/Sidebar/SidebarDrawer.d.ts +9 -0
- package/src/lib/Sidebar/SidebarLink/MenuIcon.d.ts +7 -0
- package/src/lib/Sidebar/SidebarLink/SidebarLink.d.ts +7 -0
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.d.ts +8 -0
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.d.ts +10 -0
- package/src/lib/Sidebar/SidebarLink/{index.ts → index.d.ts} +2 -2
- package/src/lib/Sidebar/index.d.ts +2 -0
- package/src/lib/Status/Status.d.ts +8 -0
- package/src/lib/Status/{index.ts → index.d.ts} +1 -1
- package/src/lib/StepperView/StepperView.d.ts +11 -0
- package/src/lib/StepperView/{index.ts → index.d.ts} +1 -1
- package/src/lib/Table/DataGrid/JsonTypeCell.d.ts +7 -0
- package/src/lib/Table/DataGrid/Table.d.ts +49 -0
- package/src/lib/Table/DataGrid/TableAction.d.ts +13 -0
- package/src/lib/Table/DataGrid/TableColumnMenu.d.ts +3 -0
- package/src/lib/Table/DataGrid/TablePagination.d.ts +3 -0
- package/src/lib/Table/DataGrid/index.d.ts +2 -0
- package/src/lib/Table/DataGrid/styles.d.ts +44 -0
- package/src/lib/Table/DataGrid/usePagination.d.ts +5 -0
- package/src/lib/Table/DataGrid/useTableQueryPagination.d.ts +11 -0
- package/src/lib/Table/DataGrid/useTableQuerySorting.d.ts +6 -0
- package/src/lib/Table/SimpleTable/SimpleTable.d.ts +17 -0
- package/src/lib/Table/SimpleTable/TableActionCell.d.ts +10 -0
- package/src/lib/Table/SimpleTable/index.d.ts +2 -0
- package/src/lib/Table/SimpleTable/useTablePagination.d.ts +7 -0
- package/src/lib/Table/SimpleTable/useTableSorting.d.ts +6 -0
- package/src/lib/Table/index.d.ts +2 -0
- package/src/lib/Tabs/RouteTabs.d.ts +11 -0
- package/src/lib/Tabs/TabPanel.d.ts +25 -0
- package/src/lib/Tabs/{index.ts → index.d.ts} +2 -2
- package/src/lib/{index.ts → index.d.ts} +16 -16
- package/src/theme/baseTheme.d.ts +2 -0
- package/src/theme/index.d.ts +1 -0
- package/src/theme/inputThemeOptions.d.ts +117 -0
- package/src/theme/stepperThemeOptions.d.ts +16 -0
- package/src/theme/tableThemeOptions.d.ts +47 -0
- package/src/theme/typographyThemeOptions.d.ts +29 -0
- package/src/utils/common.d.ts +7 -0
- package/src/utils/dem.d.ts +27 -0
- package/src/utils/hooks.d.ts +7 -0
- package/src/utils/{index.ts → index.d.ts} +5 -5
- package/src/utils/ui-utils.d.ts +16 -0
- package/src/utils/validators.d.ts +5 -0
- package/.babelrc +0 -13
- package/.eslintrc.json +0 -22
- package/jest.config.ts +0 -11
- package/project.json +0 -89
- package/rollup.config.js +0 -146
- package/src/assets/chevron_left_gray.svg +0 -3
- package/src/consts/index.ts +0 -13
- package/src/interfaces/common.ts +0 -18
- package/src/interfaces/definition.ts +0 -143
- package/src/interfaces/ui.ts +0 -80
- package/src/lib/Alert/Alert.tsx +0 -108
- package/src/lib/Alert/index.ts +0 -1
- package/src/lib/Breadcrumbs/Breadcrumbs.styled.tsx +0 -16
- package/src/lib/Breadcrumbs/Breadcrumbs.tsx +0 -40
- package/src/lib/ContentLayout/ContentLayout.tsx +0 -31
- package/src/lib/ContentLayout/index.ts +0 -1
- package/src/lib/Definition/CreateDefinition/CreateDefinition.tsx +0 -78
- package/src/lib/Definition/DefinitionFiller/DefinitionFiller.tsx +0 -71
- package/src/lib/Definition/DefinitionValueView/DefinitionValueView.tsx +0 -54
- package/src/lib/Definition/DefinitionValueView/PropertyDataView.tsx +0 -67
- package/src/lib/Forms/BackButton.tsx +0 -46
- package/src/lib/Forms/ControlAceEditor.tsx +0 -125
- package/src/lib/Forms/ControlAutocomplete.tsx +0 -145
- package/src/lib/Forms/ControlCheckbox.tsx +0 -113
- package/src/lib/Forms/ControlDate.tsx +0 -75
- package/src/lib/Forms/ControlDateTime.tsx +0 -77
- package/src/lib/Forms/ControlDebouncedInput.tsx +0 -80
- package/src/lib/Forms/ControlInput.tsx +0 -111
- package/src/lib/Forms/ControlNumberInput.tsx +0 -121
- package/src/lib/Forms/ControlQueryAutocomplete.tsx +0 -197
- package/src/lib/Forms/ControlRadio.tsx +0 -136
- package/src/lib/Forms/ControlSelect.tsx +0 -164
- package/src/lib/Forms/ControlSwitch.tsx +0 -71
- package/src/lib/Forms/ControlTime.tsx +0 -93
- package/src/lib/Forms/CopyButton.tsx +0 -46
- package/src/lib/Forms/useAutocomplete.tsx +0 -47
- package/src/lib/InfoItem/InfoItem.tsx +0 -40
- package/src/lib/InfoItem/styles.ts +0 -17
- package/src/lib/JsonPathPicker/JsonPathPicker.tsx +0 -73
- package/src/lib/JsonPathPicker/PropertyStep.tsx +0 -70
- package/src/lib/JsonView/JsonView.tsx +0 -41
- package/src/lib/Loader/Loader.tsx +0 -41
- package/src/lib/Modals/JsonModalView.tsx +0 -53
- package/src/lib/Property/PropertyFiller/JsonEditor.tsx +0 -58
- package/src/lib/Property/PropertyFiller/MultiplePropertyFiller.tsx +0 -129
- package/src/lib/Property/PropertyFiller/MultiplePropertyWidget.tsx +0 -85
- package/src/lib/Property/PropertyFiller/PropertyFiller.tsx +0 -199
- package/src/lib/Property/PropertyFiller/usePropertyFiller.ts +0 -72
- package/src/lib/Property/PropertyFiller/useStyles.ts +0 -12
- package/src/lib/Property/PropertyValidator/NodeValidator.tsx +0 -92
- package/src/lib/Property/PropertyValidator/NodesList.tsx +0 -26
- package/src/lib/Property/PropertyValidator/NumericTypeValidator.tsx +0 -59
- package/src/lib/Property/PropertyValidator/PropertyValidator.tsx +0 -42
- package/src/lib/Property/PropertyValidator/PropertyValidatorContext.tsx +0 -4
- package/src/lib/Property/PropertyValidator/StringTypeValidator.tsx +0 -36
- package/src/lib/Property/PropertyValidator/ValidationNodeSelector.tsx +0 -62
- package/src/lib/Property/PropertyValidator/index.ts +0 -1
- package/src/lib/Property/PropertyValueField/BooleanValueField.tsx +0 -49
- package/src/lib/Property/PropertyValueField/DateTimeValueField.tsx +0 -58
- package/src/lib/Property/PropertyValueField/DateValueField.tsx +0 -58
- package/src/lib/Property/PropertyValueField/JsonValueField.tsx +0 -65
- package/src/lib/Property/PropertyValueField/PropertyValueField.tsx +0 -49
- package/src/lib/Property/PropertyValueField/StringValueField.tsx +0 -50
- package/src/lib/Property/PropertyValueField/TimeValueField.tsx +0 -67
- package/src/lib/Property/PropertyWidget/PropertyWidget.tsx +0 -115
- package/src/lib/Property/UpsertProperty/CreatePropertiesList.tsx +0 -148
- package/src/lib/Property/UpsertProperty/CreatePropertyFormFields.tsx +0 -158
- package/src/lib/Property/UpsertProperty/CustomPropertyField.tsx +0 -40
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/BigDecimalPropertyFields.tsx +0 -41
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/DateAdditionalFields.tsx +0 -27
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityAdditionalFields.tsx +0 -133
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/EntityReferencePropertyFields.tsx +0 -46
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/PropertyAdditionalFields.tsx +0 -52
- package/src/lib/Property/UpsertProperty/PropertyAdditionalFields/StringPropertyFields.tsx +0 -103
- package/src/lib/Property/UpsertProperty/useCustomFields.ts +0 -22
- package/src/lib/Property/ViewPropertiesList/ViewPropertiesList.tsx +0 -37
- package/src/lib/Property/ViewProperty/EntityPropertiesShortView.tsx +0 -40
- package/src/lib/Property/ViewProperty/EntityPropertiesView.tsx +0 -48
- package/src/lib/Property/ViewProperty/PropertyDataTable.tsx +0 -148
- package/src/lib/Property/ViewProperty/PropertyItem.tsx +0 -43
- package/src/lib/Property/ViewProperty/ViewProperty.tsx +0 -52
- package/src/lib/Sidebar/Sidebar.styled.tsx +0 -157
- package/src/lib/Sidebar/Sidebar.tsx +0 -27
- package/src/lib/Sidebar/SidebarContext.tsx +0 -37
- package/src/lib/Sidebar/SidebarDrawer.tsx +0 -50
- package/src/lib/Sidebar/SidebarLink/MenuIcon.tsx +0 -16
- package/src/lib/Sidebar/SidebarLink/SidebarLink.tsx +0 -54
- package/src/lib/Sidebar/SidebarLink/SidebarLinkItem.tsx +0 -54
- package/src/lib/Sidebar/SidebarLink/SidebarNestedItem.tsx +0 -62
- package/src/lib/Sidebar/index.ts +0 -2
- package/src/lib/Status/Status.tsx +0 -16
- package/src/lib/Status/styles.ts +0 -21
- package/src/lib/StepperView/StepperView.tsx +0 -73
- package/src/lib/Table/DataGrid/JsonTypeCell.tsx +0 -51
- package/src/lib/Table/DataGrid/Table.tsx +0 -117
- package/src/lib/Table/DataGrid/TableAction.tsx +0 -43
- package/src/lib/Table/DataGrid/TableColumnMenu.tsx +0 -12
- package/src/lib/Table/DataGrid/TablePagination.tsx +0 -42
- package/src/lib/Table/DataGrid/index.ts +0 -2
- package/src/lib/Table/DataGrid/styles.ts +0 -59
- package/src/lib/Table/DataGrid/usePagination.ts +0 -15
- package/src/lib/Table/DataGrid/useTableQueryPagination.ts +0 -47
- package/src/lib/Table/DataGrid/useTableQuerySorting.ts +0 -47
- package/src/lib/Table/SimpleTable/SimpleTable.tsx +0 -138
- package/src/lib/Table/SimpleTable/TableActionCell.tsx +0 -67
- package/src/lib/Table/SimpleTable/index.ts +0 -2
- package/src/lib/Table/SimpleTable/useTablePagination.ts +0 -54
- package/src/lib/Table/SimpleTable/useTableSorting.ts +0 -50
- package/src/lib/Table/index.ts +0 -2
- package/src/lib/Tabs/RouteTabs.tsx +0 -54
- package/src/lib/Tabs/TabPanel.tsx +0 -42
- package/src/theme/baseTheme.ts +0 -41
- package/src/theme/fonts.d.ts +0 -2
- package/src/theme/index.ts +0 -126
- package/src/theme/inputThemeOptions.ts +0 -126
- package/src/theme/stepperThemeOptions.ts +0 -20
- package/src/theme/tableThemeOptions.ts +0 -50
- package/src/theme/typographyThemeOptions.ts +0 -32
- package/src/utils/common.ts +0 -73
- package/src/utils/dem.ts +0 -431
- package/src/utils/hooks.ts +0 -41
- package/src/utils/ui-utils.tsx +0 -134
- package/src/utils/validators.ts +0 -14
- package/tsconfig.json +0 -25
- package/tsconfig.lib.json +0 -23
- package/tsconfig.spec.json +0 -20
@@ -1,126 +0,0 @@
|
|
1
|
-
import baseTheme from './baseTheme';
|
2
|
-
|
3
|
-
const inputThemeOptions = {
|
4
|
-
components: {
|
5
|
-
MuiButton: {
|
6
|
-
styleOverrides: {
|
7
|
-
root: {
|
8
|
-
lineHeight: 1.429,
|
9
|
-
},
|
10
|
-
},
|
11
|
-
},
|
12
|
-
MuiInputBase: {
|
13
|
-
styleOverrides: {
|
14
|
-
root: {
|
15
|
-
borderRadius: baseTheme.spacing(3),
|
16
|
-
minWidth: baseTheme.spacing(25),
|
17
|
-
background: baseTheme.palette.background.default
|
18
|
-
// height: 40
|
19
|
-
},
|
20
|
-
// sizeSmall: {
|
21
|
-
// padding: baseTheme.spacing(1, 0, 1, 4),
|
22
|
-
// },
|
23
|
-
input: {
|
24
|
-
minWidth: baseTheme.spacing(25),
|
25
|
-
// padding: 0,
|
26
|
-
// height: '32px',
|
27
|
-
},
|
28
|
-
},
|
29
|
-
},
|
30
|
-
MuiSelect: {
|
31
|
-
styleOverrides: {
|
32
|
-
nativeInput: {
|
33
|
-
padding: 0,
|
34
|
-
height: '32px',
|
35
|
-
},
|
36
|
-
},
|
37
|
-
},
|
38
|
-
MuiTextField: {
|
39
|
-
styleOverrides: {
|
40
|
-
root: {
|
41
|
-
minWidth: baseTheme.spacing(25),
|
42
|
-
},
|
43
|
-
},
|
44
|
-
},
|
45
|
-
MuiInputLabel: {
|
46
|
-
styleOverrides: {
|
47
|
-
root: {
|
48
|
-
position: 'relative',
|
49
|
-
overflow: 'initial',
|
50
|
-
transform: 'none',
|
51
|
-
marginBottom: baseTheme.spacing(1),
|
52
|
-
fontWeight: 500,
|
53
|
-
fontSize: '14px',
|
54
|
-
lineHeight: '20px',
|
55
|
-
},
|
56
|
-
},
|
57
|
-
},
|
58
|
-
MuiOutlinedInput: {
|
59
|
-
styleOverrides: {
|
60
|
-
root: {
|
61
|
-
borderRadius: baseTheme.spacing(3),
|
62
|
-
minWidth: baseTheme.spacing(25),
|
63
|
-
},
|
64
|
-
notchedOutline: {
|
65
|
-
top: 0,
|
66
|
-
'& legend': {
|
67
|
-
display: 'none',
|
68
|
-
transition: 'none',
|
69
|
-
},
|
70
|
-
},
|
71
|
-
},
|
72
|
-
},
|
73
|
-
MuiAutocomplete: {
|
74
|
-
styleOverrides: {
|
75
|
-
paper: {
|
76
|
-
marginTop: 8,
|
77
|
-
borderRadius: 12,
|
78
|
-
boxShadow: '0px 8px 16px rgba(0, 0, 0, 0.04)',
|
79
|
-
},
|
80
|
-
listbox: {
|
81
|
-
'::-webkit-scrollbar': {
|
82
|
-
width: '6px',
|
83
|
-
backgroundColor: 'white',
|
84
|
-
},
|
85
|
-
'::-webkit-scrollbar-thumb': {
|
86
|
-
borderRadius: '10px',
|
87
|
-
backgroundColor: 'rgba(38, 40, 66, 0.24)',
|
88
|
-
},
|
89
|
-
},
|
90
|
-
},
|
91
|
-
},
|
92
|
-
MuiMenu: {
|
93
|
-
styleOverrides: {
|
94
|
-
list: {
|
95
|
-
paddingTop: 0,
|
96
|
-
paddingBottom: 0,
|
97
|
-
background: 'white',
|
98
|
-
'& li.Mui-selected': {
|
99
|
-
background: 'rgba(38, 40, 66, 0.08) !important',
|
100
|
-
},
|
101
|
-
},
|
102
|
-
},
|
103
|
-
},
|
104
|
-
MuiPopover: {
|
105
|
-
styleOverrides: {
|
106
|
-
paper: {
|
107
|
-
marginTop: 8,
|
108
|
-
borderRadius: 12,
|
109
|
-
boxShadow: '0px 8px 16px rgba(0, 0, 0, 0.04)',
|
110
|
-
},
|
111
|
-
},
|
112
|
-
},
|
113
|
-
MuiFormLabel: {
|
114
|
-
styleOverrides: {
|
115
|
-
asterisk: {
|
116
|
-
color: '#D6331F',
|
117
|
-
'&$error': {
|
118
|
-
color: '#D6331F',
|
119
|
-
},
|
120
|
-
},
|
121
|
-
},
|
122
|
-
},
|
123
|
-
},
|
124
|
-
};
|
125
|
-
|
126
|
-
export default inputThemeOptions;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import baseTheme from './baseTheme';
|
2
|
-
|
3
|
-
const stepperThemeOptions = {
|
4
|
-
components: {
|
5
|
-
MuiStepIcon: {
|
6
|
-
styleOverrides: {
|
7
|
-
root: {
|
8
|
-
fontSize: '20px',
|
9
|
-
color: baseTheme.palette.text.disabled,
|
10
|
-
'&.Mui-active, &.Mui-completed': {
|
11
|
-
color: baseTheme.palette.secondary.main
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
export default stepperThemeOptions;
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import baseTheme from './baseTheme';
|
2
|
-
|
3
|
-
const tableThemeOptions = {
|
4
|
-
components: {
|
5
|
-
MuiTableContainer: {
|
6
|
-
styleOverrides: {
|
7
|
-
root: {
|
8
|
-
borderRadius: baseTheme.spacing(3),
|
9
|
-
border: '1px solid rgba(38, 40, 66, 0.08)',
|
10
|
-
},
|
11
|
-
},
|
12
|
-
},
|
13
|
-
MuiTableHead: {
|
14
|
-
styleOverrides: {
|
15
|
-
root: {
|
16
|
-
backgroundColor: '#F7F8FC',
|
17
|
-
},
|
18
|
-
},
|
19
|
-
},
|
20
|
-
MuiTableCell: {
|
21
|
-
styleOverrides: {
|
22
|
-
root: {
|
23
|
-
minHeight: 48,
|
24
|
-
padding: baseTheme.spacing(1, 2),
|
25
|
-
'&:first-of-type': {
|
26
|
-
paddingLeft: baseTheme.spacing(4),
|
27
|
-
}
|
28
|
-
},
|
29
|
-
head: {
|
30
|
-
maxHeight: '40px',
|
31
|
-
padding: baseTheme.spacing(2.75, 2),
|
32
|
-
color: '#6D6E85'
|
33
|
-
},
|
34
|
-
body: {
|
35
|
-
wordBreak: 'break-all'
|
36
|
-
},
|
37
|
-
},
|
38
|
-
},
|
39
|
-
MuiTableSortLabel: {
|
40
|
-
styleOverrides: {
|
41
|
-
root: {
|
42
|
-
maxHeight: '24px',
|
43
|
-
lineHeight: 1,
|
44
|
-
},
|
45
|
-
},
|
46
|
-
},
|
47
|
-
},
|
48
|
-
};
|
49
|
-
|
50
|
-
export default tableThemeOptions;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import baseTheme from './baseTheme';
|
2
|
-
|
3
|
-
const typographyThemeOptions = {
|
4
|
-
components: {
|
5
|
-
MuiTypography: {
|
6
|
-
styleOverrides: {
|
7
|
-
h1: {
|
8
|
-
[baseTheme.breakpoints.up('lg')]: {
|
9
|
-
fontSize: '1.5rem'
|
10
|
-
}
|
11
|
-
},
|
12
|
-
h3: {
|
13
|
-
fontSize: '1.25rem',
|
14
|
-
[baseTheme.breakpoints.up('lg')]: {
|
15
|
-
fontSize: '1.125rem'
|
16
|
-
}
|
17
|
-
},
|
18
|
-
h4: {
|
19
|
-
fontSize: '1rem',
|
20
|
-
[baseTheme.breakpoints.up('lg')]: {
|
21
|
-
fontSize: '1rem'
|
22
|
-
}
|
23
|
-
},
|
24
|
-
subtitle2: {
|
25
|
-
color: '#6D6E85'
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
export default typographyThemeOptions;
|
package/src/utils/common.ts
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
export const removeArrayItem = (arr: Array<unknown>, index: number) => {
|
2
|
-
const newArr = [...arr];
|
3
|
-
newArr.splice(index, 1);
|
4
|
-
return newArr;
|
5
|
-
};
|
6
|
-
|
7
|
-
export const validateJson = (value: string): boolean => {
|
8
|
-
try {
|
9
|
-
JSON.parse(value);
|
10
|
-
} catch (error) {
|
11
|
-
return false;
|
12
|
-
}
|
13
|
-
return true;
|
14
|
-
};
|
15
|
-
|
16
|
-
export function capitalize(str: string): string {
|
17
|
-
return str.replace(/(^\w)|([-\s]\w)/g, (c) => c.toUpperCase());
|
18
|
-
}
|
19
|
-
|
20
|
-
export const sortArrayOfObjects = (a: Record<string, unknown>, b: Record<string, unknown>, key: string, order = 'asc') => {
|
21
|
-
const valueA = a[key];
|
22
|
-
const valueB = b[key];
|
23
|
-
|
24
|
-
if (valueA < valueB) return order === 'asc' ? -1 : 1;
|
25
|
-
if (valueA > valueB) return order === 'asc' ? 1 : -1;
|
26
|
-
return 0;
|
27
|
-
};
|
28
|
-
|
29
|
-
export const getJsonStringValue = (value: unknown): string => {
|
30
|
-
if (!value) return '';
|
31
|
-
if (typeof value === 'string') {
|
32
|
-
try {
|
33
|
-
return JSON.stringify(JSON.parse(value), null, 2)
|
34
|
-
} catch (error) {
|
35
|
-
return value;
|
36
|
-
}
|
37
|
-
} else {
|
38
|
-
try {
|
39
|
-
return JSON.stringify(value, null, 2);
|
40
|
-
} catch (error) {
|
41
|
-
return 'Failed to stringify JSON';
|
42
|
-
}
|
43
|
-
}
|
44
|
-
};
|
45
|
-
|
46
|
-
export const safeParseJson = (value: string) => {
|
47
|
-
try {
|
48
|
-
return JSON.parse(value);
|
49
|
-
} catch (error) {
|
50
|
-
return null;
|
51
|
-
}
|
52
|
-
};
|
53
|
-
|
54
|
-
export const deepParseJson = (value: string) => {
|
55
|
-
try {
|
56
|
-
const parsedValue = JSON.parse(value);
|
57
|
-
Object.keys(parsedValue).forEach((key) => {
|
58
|
-
parsedValue[key] = deepParseJson(parsedValue[key]);
|
59
|
-
});
|
60
|
-
return parsedValue;
|
61
|
-
} catch (error) {
|
62
|
-
return value;
|
63
|
-
}
|
64
|
-
};
|
65
|
-
|
66
|
-
// export const convertArrayToObjectByKey = (array: { [key: string]: string }[], key: string) => {
|
67
|
-
// const obj = {};
|
68
|
-
// array.forEach((el) => {
|
69
|
-
// obj[el[key]] = { ...el };
|
70
|
-
// delete obj[el[key]][key];
|
71
|
-
// });
|
72
|
-
// return obj;
|
73
|
-
// };
|