tenjin-ui-kit 0.1.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +13 -0
  2. package/assets/images/MicrosoftTeams-image (1).png +0 -0
  3. package/assets/images/tenjin-4.0-logo.png +0 -0
  4. package/common/hooks/apiHooks.js +223 -0
  5. package/common/hooks/newApiHook.js +270 -0
  6. package/common/utils/security/index.js +11 -0
  7. package/common/utils/security/securityConfig.js +8 -0
  8. package/components/Canvas.js +254 -0
  9. package/components/DragBox/index.js +45 -0
  10. package/components/InputWithChip/index.js +187 -0
  11. package/components/RightContext/index.css +20 -0
  12. package/components/RightContext/index.js +86 -0
  13. package/components/WorkFlow.js +47 -0
  14. package/components/WorkFlowBuilder.js +130 -0
  15. package/components/alert/Style.js +23 -0
  16. package/components/alert/index.js +69 -0
  17. package/components/attachment/index.js +138 -0
  18. package/components/authenticationProvider/AuthError.js +24 -0
  19. package/components/authenticationProvider/AuthLoader.js +21 -0
  20. package/components/authenticationProvider/index.js +166 -0
  21. package/components/avatar/index.js +95 -0
  22. package/components/avatar/styles.js +94 -0
  23. package/components/breadCrumbs/index.js +172 -0
  24. package/components/breadCrumbs/style.js +11 -0
  25. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +19 -0
  26. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +15 -0
  27. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +36 -0
  28. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +26 -0
  29. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +48 -0
  30. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +26 -0
  31. package/components/browsingTestCaseLayout/index.js +187 -0
  32. package/components/browsingTestCaseLayout/style.css +82 -0
  33. package/components/button/index.js +131 -0
  34. package/components/chatBotModal/index.js +200 -0
  35. package/components/checkBox/index.js +30 -0
  36. package/components/divider/index.js +41 -0
  37. package/components/editableField/index.js +135 -0
  38. package/components/error/index.js +56 -0
  39. package/components/errorBoundary/Error.jpg +0 -0
  40. package/components/errorBoundary/index.js +160 -0
  41. package/components/fileUploader/index.js +156 -0
  42. package/components/fileUploader/style.js +60 -0
  43. package/components/filter/ValueSelector.js +306 -0
  44. package/components/filter/index.js +225 -0
  45. package/components/iconButton/index.js +34 -0
  46. package/components/iconButton/style.js +1 -0
  47. package/components/input/index.js +173 -0
  48. package/components/layout/index.js +98 -0
  49. package/components/layout/main/index.js +27 -0
  50. package/components/layout/main/style.js +22 -0
  51. package/components/layout/pageContent/index.js +31 -0
  52. package/components/layout/sidebar/FlatMenu.js +64 -0
  53. package/components/layout/sidebar/GroupedIconMenu.js +246 -0
  54. package/components/layout/sidebar/GroupedMenu.js +67 -0
  55. package/components/layout/sidebar/ProjectMenu.js +230 -0
  56. package/components/layout/sidebar/index.js +91 -0
  57. package/components/layout/sidebar/style.js +154 -0
  58. package/components/layout/topBar/ProjectTopbar.js +337 -0
  59. package/components/layout/topBar/UserAvatar.js +126 -0
  60. package/components/layout/topBar/index.js +132 -0
  61. package/components/loader/index.js +28 -0
  62. package/components/menu/index.js +80 -0
  63. package/components/modal/Modal.js +56 -0
  64. package/components/modal/index.js +91 -0
  65. package/components/modal/style.js +68 -0
  66. package/components/optionMenu/index.js +112 -0
  67. package/components/pagination/index.js +129 -0
  68. package/components/pagination/style.js +36 -0
  69. package/components/paginationUpdated/index.js +75 -0
  70. package/components/paper/index.js +44 -0
  71. package/components/paper/style.js +34 -0
  72. package/components/reactSelect/index.js +212 -0
  73. package/components/reactSelect/style.js +163 -0
  74. package/components/richTextEditor/index.js +83 -0
  75. package/components/richTextEditor/style.js +1 -0
  76. package/components/select/GroupedSelect.js +183 -0
  77. package/components/select/SimpleSelect.js +238 -0
  78. package/components/select/index.js +217 -0
  79. package/components/simpleSelect/index.js +122 -0
  80. package/components/sort/index.js +141 -0
  81. package/components/switch/index.js +72 -0
  82. package/components/switch/style.js +42 -0
  83. package/components/switch/switch.js +110 -0
  84. package/components/table/ReactTable.js +118 -0
  85. package/components/table/SimpleTable.js +136 -0
  86. package/components/table/index.js +256 -0
  87. package/components/text/index.js +64 -0
  88. package/components/timeStamp/index.js +44 -0
  89. package/components/timeStamp/style.js +23 -0
  90. package/components/topBar/index.js +176 -0
  91. package/components/tree/index.js +313 -0
  92. package/components/tree/style.js +32 -0
  93. package/components/valuePicker/ValueSelector.js +273 -0
  94. package/components/valuePicker/index.js +133 -0
  95. package/components/wrapperLayout/layout/index.js +30 -0
  96. package/components/wrapperLayout/layout/style.js +1 -0
  97. package/components/wrapperLayout/main/index.js +22 -0
  98. package/components/wrapperLayout/main/pageContainer/index.js +28 -0
  99. package/components/wrapperLayout/main/sideBar/index.js +262 -0
  100. package/components/wrapperLayout/main/sideBar/style.js +196 -0
  101. package/components/wrapperLayout/topBar/UserAvatar.js +17 -0
  102. package/components/wrapperLayout/topBar/avatar.js +57 -0
  103. package/components/wrapperLayout/topBar/index.js +182 -0
  104. package/components/wrapperLayout/topBar/menuIcon.js +14 -0
  105. package/components/wrapperLayout/topBar/style.js +77 -0
  106. package/http/index.js +226 -0
  107. package/index.js +354 -0
  108. package/package.json +119 -0
  109. package/templates/listPage/index.js +301 -0
  110. package/themes/default.js +253 -0
  111. package/themes/defaultSmall.js +86 -0
  112. package/themes/responsiveTheme.js +250 -0
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _material = require("@mui/material");
8
+ var _default = (0, _material.createTheme)({
9
+ // spacing: 4,
10
+
11
+ overrides: {
12
+ MuiCssBaseline: {
13
+ '@global': {
14
+ html: {
15
+ 'scroll-behavior': 'smooth',
16
+ height: '100vh'
17
+ },
18
+ body: {
19
+ position: 'relative',
20
+ margin: 0,
21
+ height: '100vh',
22
+ color: '#000000',
23
+ backgroundColor: '#f4f7fc'
24
+ },
25
+ '*::-webkit-scrollbar': {
26
+ width: '6px'
27
+ },
28
+ a: {
29
+ textDecoration: 'none',
30
+ color: '#44409A'
31
+ },
32
+ '*::-webkit-scrollbar-thumb': {
33
+ backgroundColor: '#e4e4e4',
34
+ borderRadius: '3px',
35
+ opacity: 0.5
36
+ },
37
+ '*::-webkit-scrollbar-track': {
38
+ background: 'transparent'
39
+ }
40
+ }
41
+ }
42
+ },
43
+ palette: {
44
+ primary: {
45
+ main: '#44409A',
46
+ light: '#5B58A9',
47
+ dark: '#443F99',
48
+ white: '#FFFFFF',
49
+ tenjinLight: '#F4F7FC',
50
+ tenjinMLight: '#F7F8FF',
51
+ tenjinDarkWhite: '#F8F9FD',
52
+ tenjinBlack: '#000000',
53
+ tenjinMBlack: '#060606',
54
+ tenjinLightBlack: '#363636',
55
+ tenjinLBlack: '#343438',
56
+ tenjinDark: '#323232',
57
+ tenjinGray: '#757575',
58
+ tenjinFGray: '#636A74',
59
+ tenjinMGray: '#707070',
60
+ tenjinLightGray: '#EDF2F8',
61
+ tenjinLBlue: '#D7E0EB',
62
+ tenjinYellow: '#F6DA6E',
63
+ tenjinLightGreen: '#4CE1B6',
64
+ tenjinDarkGreen: '#2e846c',
65
+ tenjinLightBlue: '#70BBFD',
66
+ tenjinLMBlue: '#7688E8',
67
+ tenjinDarkBlue: '#006AFD',
68
+ tenjinPlaceholder: '#9CABBF',
69
+ green: '#2C7413',
70
+ warning: '#EB9A31',
71
+ blue: '#433F9B',
72
+ gray: '#7d7d7d',
73
+ red: '#be1515',
74
+ paperBorder: '#D6D9E0',
75
+ defaultShadow: '#667CBC1A'
76
+ },
77
+ secondary: {
78
+ main: '#BF1E1E'
79
+ }
80
+ },
81
+ typography: {
82
+ fontFamily: ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(','),
83
+ fontSize: 10
84
+ }
85
+ });
86
+ exports.default = _default;
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _material = require("@mui/material");
8
+ var getFontSize = function getFontSize() {
9
+ var devicePixelRatio = window.devicePixelRatio;
10
+ if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
11
+ return 14;
12
+ } else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
13
+ return 12;
14
+ } else if (devicePixelRatio >= 1.5) {
15
+ return 10;
16
+ } else {
17
+ return 40;
18
+ }
19
+ };
20
+ var getSpacing = function getSpacing() {
21
+ var devicePixelRatio = window.devicePixelRatio;
22
+ if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
23
+ return 8;
24
+ } else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
25
+ return 8;
26
+ } else if (devicePixelRatio >= 1.5) {
27
+ return 4;
28
+ } else {
29
+ return 8;
30
+ }
31
+ };
32
+ var _default = (0, _material.createTheme)({
33
+ spacing: getSpacing(),
34
+ components: {
35
+ MuiButton: {
36
+ defaultProps: {
37
+ variant: "contained",
38
+ disableRipple: true,
39
+ size: "small"
40
+ },
41
+ styleOverrides: {
42
+ root: {
43
+ textTransform: "initial"
44
+ }
45
+ }
46
+ },
47
+ MuiAppBar: {
48
+ styleOverrides: {
49
+ root: {
50
+ height: "60px !important"
51
+ }
52
+ }
53
+ },
54
+ MuiDivider: {
55
+ styleOverrides: {
56
+ root: {
57
+ height: "93% !important"
58
+ }
59
+ }
60
+ },
61
+ MuiOutlinedInput: {
62
+ defaultProps: {
63
+ size: "small"
64
+ }
65
+ }
66
+ // MuiInputBase: {
67
+ // styleOverrides: {
68
+ // input: {
69
+ // backgroundColor: '#ACACAC',
70
+ // },
71
+ // },
72
+ // },
73
+ },
74
+
75
+ MuiAutocomplete: {
76
+ styleOverrides: {
77
+ root: {
78
+ padding: "0.5rem 0.75rem",
79
+ border: "1px solid black !important",
80
+ borderRadius: "0.25rem",
81
+ backgroundColor: "white",
82
+ "& .MuiAutocomplete-input": {
83
+ padding: "0.5rem 0.75rem",
84
+ fontSize: "1rem",
85
+ border: "1px solid black !important"
86
+ }
87
+ }
88
+ },
89
+ MuiInputLabel: {
90
+ styleOverrides: {
91
+ asterisk: {
92
+ color: "#db3131",
93
+ "&$error": {
94
+ color: "#db3131"
95
+ }
96
+ }
97
+ }
98
+ }
99
+ },
100
+ overrides: {
101
+ MuiCssBaseline: {
102
+ "@global": {
103
+ html: {
104
+ "scroll-behavior": "smooth",
105
+ height: "100vh"
106
+ },
107
+ body: {
108
+ position: "relative",
109
+ margin: 0,
110
+ height: "100vh",
111
+ color: "#000000",
112
+ backgroundColor: "#f4f7fc"
113
+ },
114
+ "*::-webkit-scrollbar": {
115
+ width: "6px"
116
+ },
117
+ a: {
118
+ textDecoration: "none",
119
+ color: "#44409A"
120
+ },
121
+ "*::-webkit-scrollbar-thumb": {
122
+ backgroundColor: "#e4e4e4",
123
+ borderRadius: "3px",
124
+ opacity: 0.5
125
+ },
126
+ "*::-webkit-scrollbar-track": {
127
+ background: "transparent"
128
+ }
129
+ }
130
+ }
131
+ },
132
+ palette: {
133
+ //primary: {
134
+ // main: "#44409A",
135
+ // light: "#5B58A9",
136
+ // dark: "#443F99",
137
+ // white: "#FFFFFF",
138
+ // tenjinLight: "#F4F7FC",
139
+ // tenjinMLight: "#F7F8FF",
140
+ // tenjinDarkWhite: "#F8F9FD",
141
+ // tenjinBlack: "#000000",
142
+ // tenjinMBlack: "#060606",
143
+ // tenjinLightBlack: "#363636",
144
+ // tenjinLBlack: "#343438",
145
+ // tenjinDark: "#323232",
146
+ // tenjinGray: "#757575",
147
+ // tenjinFGray: "#636A74",
148
+ // tenjinMGray: "#707070",
149
+ // tenjinLightGray: "#EDF2F8",
150
+ // tenjinLBlue: "#D7E0EB",
151
+ // tenjinYellow: "#F6DA6E",
152
+ // tenjinLightGreen: "#4CE1B6",
153
+ // tenjinDarkGreen: "#2e846c",
154
+ // tenjinLightBlue: "#70BBFD",
155
+ // tenjinLMBlue: "#7688E8",
156
+ // tenjinDarkBlue: "#006AFD",
157
+ // tenjinPlaceholder: "#9CABBF",
158
+ // green: "#2C7413",
159
+ // warning: "#EB9A31",
160
+ // blue: "#433F9B",
161
+ // gray: "#7d7d7d",
162
+ // red: "#be1515",
163
+ // paperBorder: "#D6D9E0",
164
+ // defaultShadow: "#667CBC1A",
165
+ //},
166
+ // secondary: {
167
+ // main: "#BF1E1E",
168
+ // },
169
+ primary: {
170
+ main: "#44409A"
171
+ },
172
+ primary_light: {
173
+ main: "#5B58A9"
174
+ },
175
+ primary_dark: {
176
+ main: "#000050"
177
+ },
178
+ secondary: {
179
+ main: "#BF1E1E"
180
+ },
181
+ secondary_light: {
182
+ main: "#CC3F3F"
183
+ },
184
+ secondary_dark: {
185
+ main: "#951010"
186
+ },
187
+ success: {
188
+ main: "#2C7413"
189
+ },
190
+ success_light: {
191
+ main: "#5EA342"
192
+ },
193
+ success_dark: {
194
+ main: "#004700"
195
+ },
196
+ info: {
197
+ main: "#70BBFD"
198
+ },
199
+ info_light: {
200
+ main: "#A6EDFF"
201
+ },
202
+ info_dark: {
203
+ main: "#358BCA"
204
+ },
205
+ error: {
206
+ main: "#BE1515"
207
+ },
208
+ error_light: {
209
+ main: "#F8533F"
210
+ },
211
+ error_dark: {
212
+ main: "#860000"
213
+ },
214
+ warning: {
215
+ main: "#EB9A31"
216
+ },
217
+ warning_light: {
218
+ main: "#FFCB62"
219
+ },
220
+ warning_dark: {
221
+ main: "#B46C00"
222
+ },
223
+ grey: {
224
+ main: "#7D7D7D"
225
+ },
226
+ grey_light: {
227
+ main: "#ACACAC"
228
+ },
229
+ grey_dark: {
230
+ main: "#515151"
231
+ },
232
+ secondary_grey: {
233
+ main: "#D7E2F0"
234
+ },
235
+ white: {
236
+ main: "#ffffff"
237
+ },
238
+ default: {
239
+ main: "#7D7D7D"
240
+ },
241
+ text: {
242
+ main: "#000000"
243
+ }
244
+ },
245
+ typography: {
246
+ fontFamily: ["-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(","),
247
+ fontSize: getFontSize()
248
+ }
249
+ });
250
+ exports.default = _default;