tenjin-ui-kit 0.2.137 → 0.2.138

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 (116) hide show
  1. package/common/hooks/apiHooks.js +223 -0
  2. package/common/hooks/newApiHook.js +270 -0
  3. package/common/utils/security/index.js +11 -0
  4. package/common/utils/security/securityConfig.js +8 -0
  5. package/components/Canvas.js +254 -0
  6. package/components/DragBox/index.js +45 -0
  7. package/components/InputWithChip/index.js +149 -0
  8. package/components/RightContext/index.css +20 -0
  9. package/components/RightContext/index.js +86 -0
  10. package/components/WorkFlow.js +47 -0
  11. package/components/WorkFlowBuilder.js +130 -0
  12. package/components/alert/Style.js +23 -0
  13. package/components/alert/index.js +69 -0
  14. package/components/attachment/index.js +138 -0
  15. package/components/authenticationProvider/AuthError.js +24 -0
  16. package/components/authenticationProvider/AuthLoader.js +21 -0
  17. package/components/authenticationProvider/index.js +128 -0
  18. package/components/avatar/index.js +95 -0
  19. package/components/avatar/styles.js +94 -0
  20. package/components/breadCrumbs/index.js +162 -0
  21. package/components/breadCrumbs/style.js +11 -0
  22. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +19 -0
  23. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +15 -0
  24. package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +36 -0
  25. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +26 -0
  26. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +48 -0
  27. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +26 -0
  28. package/components/browsingTestCaseLayout/index.js +187 -0
  29. package/components/browsingTestCaseLayout/style.css +82 -0
  30. package/components/button/index.js +131 -0
  31. package/components/checkBox/index.js +30 -0
  32. package/components/divider/index.js +39 -0
  33. package/components/editableField/index.js +125 -0
  34. package/components/error/index.js +56 -0
  35. package/components/errorBoundary/Error.jpg +0 -0
  36. package/components/errorBoundary/index.js +160 -0
  37. package/components/fileUploader/index.js +124 -0
  38. package/components/fileUploader/style.js +60 -0
  39. package/components/iconButton/index.js +35 -0
  40. package/components/iconButton/style.js +1 -0
  41. package/components/input/index.js +124 -0
  42. package/components/layout/index.js +98 -0
  43. package/components/layout/main/index.js +27 -0
  44. package/components/layout/main/style.js +22 -0
  45. package/components/layout/pageContent/index.js +30 -0
  46. package/components/layout/sidebar/FlatMenu.js +64 -0
  47. package/components/layout/sidebar/GroupedIconMenu.js +227 -0
  48. package/components/layout/sidebar/GroupedMenu.js +68 -0
  49. package/components/layout/sidebar/ProjectMenu.js +230 -0
  50. package/components/layout/sidebar/index.js +84 -0
  51. package/components/layout/sidebar/style.js +154 -0
  52. package/components/layout/topBar/ProjectTopbar.js +234 -0
  53. package/components/layout/topBar/UserAvatar.js +102 -0
  54. package/components/layout/topBar/index.js +132 -0
  55. package/components/loader/index.js +28 -0
  56. package/components/menu/index.js +80 -0
  57. package/components/modal/Modal.js +56 -0
  58. package/components/modal/index.js +88 -0
  59. package/components/modal/style.js +60 -0
  60. package/components/optionMenu/index.js +112 -0
  61. package/components/pagination/index.js +129 -0
  62. package/components/pagination/style.js +36 -0
  63. package/components/paper/index.js +44 -0
  64. package/components/paper/style.js +34 -0
  65. package/components/reactSelect/index.js +212 -0
  66. package/components/reactSelect/style.js +163 -0
  67. package/components/richTextEditor/index.js +34 -0
  68. package/components/richTextEditor/style.js +1 -0
  69. package/components/select/SimpleSelect.js +123 -0
  70. package/components/select/index.js +211 -0
  71. package/components/simpleSelect/index.js +122 -0
  72. package/components/switch/index.js +73 -0
  73. package/components/switch/style.js +42 -0
  74. package/components/switch/switch.js +110 -0
  75. package/components/table/ReactTable.js +116 -0
  76. package/components/table/SimpleTable.js +57 -0
  77. package/components/table/index.js +257 -0
  78. package/components/text/index.js +64 -0
  79. package/components/timeStamp/index.js +40 -0
  80. package/components/timeStamp/style.js +23 -0
  81. package/components/topBar/index.js +176 -0
  82. package/components/tree/index.js +314 -0
  83. package/components/tree/style.js +32 -0
  84. package/components/valuePicker/ValueSelector.js +275 -0
  85. package/components/valuePicker/index.js +133 -0
  86. package/components/wrapperLayout/layout/index.js +30 -0
  87. package/components/wrapperLayout/layout/style.js +1 -0
  88. package/components/wrapperLayout/main/index.js +22 -0
  89. package/components/wrapperLayout/main/pageContainer/index.js +28 -0
  90. package/components/wrapperLayout/main/sideBar/index.js +262 -0
  91. package/components/wrapperLayout/main/sideBar/style.js +196 -0
  92. package/components/wrapperLayout/topBar/UserAvatar.js +17 -0
  93. package/components/wrapperLayout/topBar/avatar.js +57 -0
  94. package/components/wrapperLayout/topBar/index.js +182 -0
  95. package/components/wrapperLayout/topBar/menuIcon.js +14 -0
  96. package/components/wrapperLayout/topBar/style.js +77 -0
  97. package/http/index.js +225 -0
  98. package/index.js +320 -0
  99. package/package.json +1 -1
  100. package/templates/listPage/index.js +301 -0
  101. package/themes/default.js +253 -0
  102. package/themes/defaultSmall.js +86 -0
  103. package/themes/responsiveTheme.js +250 -0
  104. package/.dockerignore +0 -6
  105. package/.storybook/main.js +0 -16
  106. package/.storybook/preview.js +0 -11
  107. package/Dockerfile +0 -17
  108. package/Jenkinsfile +0 -66
  109. package/README.md +0 -13
  110. package/public/favicon.ico +0 -0
  111. package/public/index.html +0 -43
  112. package/public/logo192.png +0 -0
  113. package/public/logo512.png +0 -0
  114. package/public/manifest.json +0 -25
  115. package/public/robots.txt +0 -3
  116. package/public/tenjinLogo.png +0 -0
@@ -0,0 +1,253 @@
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 16;
12
+ } else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
13
+ return 14;
14
+ } else if (devicePixelRatio >= 1.5) {
15
+ return 12;
16
+ } else {
17
+ return 40;
18
+ }
19
+ };
20
+ var getSpacing = function getSpacing() {
21
+ if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
22
+ return 8;
23
+ } else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
24
+ return 6;
25
+ } else if (devicePixelRatio >= 1.5) {
26
+ return 4;
27
+ } else {
28
+ return 8;
29
+ }
30
+ };
31
+ var _default = (0, _material.createTheme)({
32
+ spacing: getSpacing(),
33
+ components: {
34
+ MuiButton: {
35
+ defaultProps: {
36
+ variant: "contained",
37
+ disableRipple: true,
38
+ size: "small"
39
+ },
40
+ styleOverrides: {
41
+ root: {
42
+ textTransform: "initial"
43
+ }
44
+ }
45
+ },
46
+ MuiAppBar: {
47
+ styleOverrides: {
48
+ root: {
49
+ height: "60px !important"
50
+ }
51
+ }
52
+ },
53
+ MuiDivider: {
54
+ styleOverrides: {
55
+ root: {
56
+ height: "93% !important"
57
+ }
58
+ }
59
+ },
60
+ MuiOutlinedInput: {
61
+ defaultProps: {
62
+ size: "small"
63
+ }
64
+ }
65
+ // MuiInputBase: {
66
+ // styleOverrides: {
67
+ // input: {
68
+ // backgroundColor: '#ACACAC',
69
+ // },
70
+ // },
71
+ // },
72
+ },
73
+
74
+ MuiAutocomplete: {
75
+ styleOverrides: {
76
+ root: {
77
+ padding: "0.5rem 0.75rem",
78
+ border: "1px solid black !important",
79
+ borderRadius: "0.25rem",
80
+ backgroundColor: "white",
81
+ "& .MuiAutocomplete-input": {
82
+ padding: "0.5rem 0.75rem",
83
+ fontSize: "1rem",
84
+ border: "1px solid black !important"
85
+ }
86
+ }
87
+ },
88
+ MuiInputLabel: {
89
+ styleOverrides: {
90
+ asterisk: {
91
+ color: "#db3131",
92
+ "&$error": {
93
+ color: "#db3131"
94
+ }
95
+ }
96
+ }
97
+ }
98
+ },
99
+ overrides: {
100
+ MuiCssBaseline: {
101
+ "@global": {
102
+ html: {
103
+ "scroll-behavior": "smooth",
104
+ height: "100vh"
105
+ },
106
+ body: {
107
+ position: "relative",
108
+ margin: 0,
109
+ height: "100vh",
110
+ color: "#000000",
111
+ backgroundColor: "#f4f7fc"
112
+ },
113
+ "*::-webkit-scrollbar": {
114
+ width: "6px"
115
+ },
116
+ a: {
117
+ textDecoration: "none",
118
+ color: "#44409A"
119
+ },
120
+ "*::-webkit-scrollbar-thumb": {
121
+ backgroundColor: "#e4e4e4",
122
+ borderRadius: "3px",
123
+ opacity: 0.5
124
+ },
125
+ "*::-webkit-scrollbar-track": {
126
+ background: "transparent"
127
+ }
128
+ }
129
+ }
130
+ },
131
+ palette: {
132
+ //primary: {
133
+ // main: "#44409A",
134
+ // light: "#5B58A9",
135
+ // dark: "#443F99",
136
+ // white: "#FFFFFF",
137
+ // tenjinLight: "#F4F7FC",
138
+ // tenjinMLight: "#F7F8FF",
139
+ // tenjinDarkWhite: "#F8F9FD",
140
+ // tenjinBlack: "#000000",
141
+ // tenjinMBlack: "#060606",
142
+ // tenjinLightBlack: "#363636",
143
+ // tenjinLBlack: "#343438",
144
+ // tenjinDark: "#323232",
145
+ // tenjinGray: "#757575",
146
+ // tenjinFGray: "#636A74",
147
+ // tenjinMGray: "#707070",
148
+ // tenjinLightGray: "#EDF2F8",
149
+ // tenjinLBlue: "#D7E0EB",
150
+ // tenjinYellow: "#F6DA6E",
151
+ // tenjinLightGreen: "#4CE1B6",
152
+ // tenjinDarkGreen: "#2e846c",
153
+ // tenjinLightBlue: "#70BBFD",
154
+ // tenjinLMBlue: "#7688E8",
155
+ // tenjinDarkBlue: "#006AFD",
156
+ // tenjinPlaceholder: "#9CABBF",
157
+ // green: "#2C7413",
158
+ // warning: "#EB9A31",
159
+ // blue: "#433F9B",
160
+ // gray: "#7d7d7d",
161
+ // red: "#be1515",
162
+ // paperBorder: "#D6D9E0",
163
+ // defaultShadow: "#667CBC1A",
164
+ //},
165
+ // secondary: {
166
+ // main: "#BF1E1E",
167
+ // },
168
+
169
+ primary: {
170
+ main: "#44409A"
171
+ },
172
+ primary_light: {
173
+ main: "#5B58A9"
174
+ },
175
+ primary_dark: {
176
+ main: "#000050"
177
+ },
178
+ primary_link: {
179
+ main: "#44409a"
180
+ },
181
+ secondary: {
182
+ main: "#BF1E1E"
183
+ },
184
+ secondary_light: {
185
+ main: "#CC3F3F"
186
+ },
187
+ secondary_dark: {
188
+ main: "#951010"
189
+ },
190
+ success: {
191
+ main: "#2C7413"
192
+ },
193
+ success_light: {
194
+ main: "#5EA342"
195
+ },
196
+ success_dark: {
197
+ main: "#004700"
198
+ },
199
+ info: {
200
+ main: "#70BBFD"
201
+ },
202
+ info_light: {
203
+ main: "#A6EDFF"
204
+ },
205
+ info_dark: {
206
+ main: "#358BCA"
207
+ },
208
+ error: {
209
+ main: "#BE1515"
210
+ },
211
+ error_light: {
212
+ main: "#F8533F"
213
+ },
214
+ error_dark: {
215
+ main: "#860000"
216
+ },
217
+ warning: {
218
+ main: "#EB9A31"
219
+ },
220
+ warning_light: {
221
+ main: "#FFCB62"
222
+ },
223
+ warning_dark: {
224
+ main: "#B46C00"
225
+ },
226
+ grey: {
227
+ main: "#7D7D7D"
228
+ },
229
+ grey_light: {
230
+ main: "#ACACAC"
231
+ },
232
+ grey_dark: {
233
+ main: "#515151"
234
+ },
235
+ secondary_grey: {
236
+ main: "#D7E2F0"
237
+ },
238
+ white: {
239
+ main: "#ffffff"
240
+ },
241
+ default: {
242
+ main: "#7D7D7D"
243
+ },
244
+ text: {
245
+ main: "#000000"
246
+ }
247
+ },
248
+ typography: {
249
+ fontFamily: ["-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(",")
250
+ // fontSize: getFontSize(),
251
+ }
252
+ });
253
+ exports.default = _default;
@@ -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;
package/.dockerignore DELETED
@@ -1,6 +0,0 @@
1
- node_modules
2
- build
3
- .dockerignore
4
- Dockerfile
5
- Dockerfile.prod
6
- storybook-static
@@ -1,16 +0,0 @@
1
- module.exports = {
2
- "stories": [
3
- "../src/**/*.stories.mdx",
4
- "../src/**/*.stories.@(js|jsx|ts|tsx)"
5
- ],
6
- "addons": [
7
- "@storybook/addon-links",
8
- "@storybook/addon-essentials",
9
- "@storybook/addon-interactions",
10
- "@storybook/preset-create-react-app"
11
- ],
12
- "framework": "@storybook/react",
13
- "core": {
14
- "builder": "@storybook/builder-webpack5"
15
- }
16
- }
@@ -1,11 +0,0 @@
1
- import ".././src/App.css"
2
-
3
- export const parameters = {
4
- actions: { argTypesRegex: "^on[A-Z].*" },
5
- controls: {
6
- matchers: {
7
- color: /(background|color)$/i,
8
- date: /Date$/,
9
- },
10
- },
11
- }
package/Dockerfile DELETED
@@ -1,17 +0,0 @@
1
- # build environment
2
- FROM node:16-alpine as build
3
- WORKDIR /app
4
- ENV PATH /app/node_modules/.bin:$PATH
5
- COPY package.json ./
6
- COPY package-lock.json ./
7
- COPY . ./
8
- RUN npm install
9
- RUN npm run build-storybook
10
- RUN npm run compile
11
- RUN npm version patch -m "CI patch version bump"
12
- RUN cp ./package.json ./dist
13
- RUN cp ./README.md ./dist
14
- RUN cd dist
15
- RUN npm publish
16
- # TEST COMMIT 2
17
-
package/Jenkinsfile DELETED
@@ -1,66 +0,0 @@
1
- pipeline {
2
- agent {label 'tjui-kit'}
3
-
4
-
5
-
6
-
7
- stages {
8
- stage ("Build") {
9
- steps {
10
- dir("./") {
11
- sh 'npm install'
12
- sh 'npm run compile'
13
- }
14
- }
15
- }
16
- stage ("Upgrade version") {
17
- steps {
18
- dir("./") {
19
- sh 'git restore package-lock.json'
20
-
21
- sh 'npm version patch'
22
- sh 'git remote set-url origin https://vybhavkadam:glpat-Ee-CqdVnwzURCGPzFwys@gitlab.com/yethi/react/tenjin-ui-kit.git'
23
- sh 'git push origin HEAD:main --tags'
24
- //sh 'git push --tags'
25
- }
26
- }
27
- }
28
-
29
- stage ("Publish library") {
30
- steps {
31
- dir("./dist") {
32
- sh 'cp ./package.json ./dist'
33
- sh 'cp ./README.md ./dist'
34
- }
35
-
36
- dir("./") {
37
- //sh 'npm config set //registry.npmjs.org/:_authToken=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'
38
- sh 'export NPM_TOKEN=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'
39
- sh 'npm publish'
40
- }
41
- }
42
- }
43
-
44
- stage ("Build Storybook") {
45
- steps {
46
- dir("./") {
47
- sh 'npm run build-storybook'
48
- }
49
- }
50
- }
51
-
52
- stage ("Deploy Storybook") {
53
- steps {
54
- dir("./") {
55
- sh 'npx netlify deploy --auth xZ5gRrdcq6pPShzAcOtxCqD3e5MzwWxwBevsrQdyIl0 --site 9a55e91f-3c3e-4492-8d50-7f17ca87adeb --dir storybook-static --prod'
56
- }
57
- }
58
- }
59
- stage('CleanWorkspace') {
60
- steps {
61
- cleanWs()
62
- }
63
- }
64
- }
65
-
66
- }