wini-web-components 0.1.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 (62) hide show
  1. package/README.md +70 -0
  2. package/package.json +62 -0
  3. package/public/favicon.ico +0 -0
  4. package/public/index.html +43 -0
  5. package/public/logo192.png +0 -0
  6. package/public/logo512.png +0 -0
  7. package/public/manifest.json +25 -0
  8. package/public/robots.txt +3 -0
  9. package/src/App.css +38 -0
  10. package/src/App.js +25 -0
  11. package/src/App.test.js +8 -0
  12. package/src/component/calendar/calendar.css +133 -0
  13. package/src/component/calendar/calendar.tsx +448 -0
  14. package/src/component/checkbox/checkbox.css +46 -0
  15. package/src/component/checkbox/checkbox.tsx +59 -0
  16. package/src/component/component-status.tsx +53 -0
  17. package/src/component/date-picker/date-picker.css +114 -0
  18. package/src/component/date-picker/date-picker.tsx +363 -0
  19. package/src/component/dialog/dialog.css +125 -0
  20. package/src/component/dialog/dialog.tsx +91 -0
  21. package/src/component/export-component.js +48 -0
  22. package/src/component/import-file/import-file.css +86 -0
  23. package/src/component/import-file/import-file.tsx +154 -0
  24. package/src/component/infinite-scroll/infinite-scroll.css +37 -0
  25. package/src/component/infinite-scroll/infinite-scroll.tsx +33 -0
  26. package/src/component/input-multi-select/input-multi-select.css +127 -0
  27. package/src/component/input-multi-select/input-multi-select.tsx +261 -0
  28. package/src/component/pagination/pagination.css +69 -0
  29. package/src/component/pagination/pagination.tsx +65 -0
  30. package/src/component/popup/popup.css +90 -0
  31. package/src/component/popup/popup.tsx +105 -0
  32. package/src/component/progress-bar/progress-bar.css +47 -0
  33. package/src/component/progress-bar/progress-bar.tsx +34 -0
  34. package/src/component/progress-circle/progress-circle.css +47 -0
  35. package/src/component/progress-circle/progress-circle.tsx +24 -0
  36. package/src/component/radio-button/radio-button.css +49 -0
  37. package/src/component/radio-button/radio-button.tsx +59 -0
  38. package/src/component/rating/rating.css +11 -0
  39. package/src/component/rating/rating.tsx +65 -0
  40. package/src/component/select1/select1.css +155 -0
  41. package/src/component/select1/select1.tsx +241 -0
  42. package/src/component/slider/slider.css +16 -0
  43. package/src/component/slider/slider.tsx +87 -0
  44. package/src/component/switch/switch.css +53 -0
  45. package/src/component/switch/switch.tsx +67 -0
  46. package/src/component/table/table.css +74 -0
  47. package/src/component/table/table.tsx +99 -0
  48. package/src/component/text/text.css +16 -0
  49. package/src/component/text/text.tsx +21 -0
  50. package/src/component/text-area/text-area.css +63 -0
  51. package/src/component/text-area/text-area.tsx +55 -0
  52. package/src/component/text-field/text-field.css +64 -0
  53. package/src/component/text-field/text-field.tsx +63 -0
  54. package/src/component/toast-noti/toast-noti.css +0 -0
  55. package/src/component/toast-noti/toast-noti.tsx +21 -0
  56. package/src/index.css +13 -0
  57. package/src/index.js +17 -0
  58. package/src/logo.svg +1 -0
  59. package/src/reportWebVitals.js +13 -0
  60. package/src/setupTests.js +5 -0
  61. package/src/skin/color.css +17 -0
  62. package/src/skin/typography.css +378 -0
package/src/index.css ADDED
@@ -0,0 +1,13 @@
1
+ body {
2
+ margin: 0;
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5
+ sans-serif;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ }
9
+
10
+ code {
11
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12
+ monospace;
13
+ }
package/src/index.js ADDED
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import ReactDOM from 'react-dom/client';
3
+ import './index.css';
4
+ import App from './App';
5
+ import reportWebVitals from './reportWebVitals';
6
+
7
+ const root = ReactDOM.createRoot(document.getElementById('root'));
8
+ root.render(
9
+ <React.StrictMode>
10
+ <App />
11
+ </React.StrictMode>
12
+ );
13
+
14
+ // If you want to start measuring performance in your app, pass a function
15
+ // to log results (for example: reportWebVitals(console.log))
16
+ // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17
+ reportWebVitals();
package/src/logo.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
@@ -0,0 +1,13 @@
1
+ const reportWebVitals = onPerfEntry => {
2
+ if (onPerfEntry && onPerfEntry instanceof Function) {
3
+ import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4
+ getCLS(onPerfEntry);
5
+ getFID(onPerfEntry);
6
+ getFCP(onPerfEntry);
7
+ getLCP(onPerfEntry);
8
+ getTTFB(onPerfEntry);
9
+ });
10
+ }
11
+ };
12
+
13
+ export default reportWebVitals;
@@ -0,0 +1,5 @@
1
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+ // allows you to do things like:
3
+ // expect(element).toHaveTextContent(/react/i)
4
+ // learn more: https://github.com/testing-library/jest-dom
5
+ import '@testing-library/jest-dom';
@@ -0,0 +1,17 @@
1
+ :root {
2
+ --primary-color: #0968D3;
3
+ --infor-color: #366AE2;
4
+ --infor-background: #EDF2FD;
5
+ --success-color: #39AC6D;
6
+ --success-background: #E8F7EF;
7
+ --warning-color: #FC6B03;
8
+ --warning-background: #FFF3EB;
9
+ --error-color: #E14337;
10
+ --error-background: #FCEEED;
11
+ --background: #F2F5F8;
12
+ --hover-background: #f1f1f1;
13
+ --selected-background: #C0CBD83D;
14
+ --disabled-background: #f5f7fa;
15
+ --disabled-font-color: #9fb0c7b3;
16
+ --border-grey1: 1px solid #00358014;
17
+ }
@@ -0,0 +1,378 @@
1
+ .medium11 {
2
+ line-height: 1.4rem;
3
+ font-size: 1.1rem;
4
+ font-weight: 500;
5
+ color: #00204D;
6
+ }
7
+
8
+ .medium1 {
9
+ line-height: 1.6rem;
10
+ font-size: 1.2rem;
11
+ font-weight: 500;
12
+ color: #00204D;
13
+ }
14
+
15
+ .overflow-elipstic {
16
+ overflow: hidden;
17
+ text-overflow: ellipsis;
18
+ }
19
+
20
+ .regular0 {
21
+ line-height: 1.4rem;
22
+ font-size: 1rem;
23
+ color: #00204D;
24
+ }
25
+
26
+ .regular11 {
27
+ line-height: 1.4rem;
28
+ font-size: 1.1rem;
29
+ color: #00204D;
30
+ }
31
+
32
+ .regular1 {
33
+ line-height: 1.6rem;
34
+ font-size: 1.2rem;
35
+ color: #00204D;
36
+ }
37
+
38
+ .regular2 {
39
+ line-height: 2.2rem;
40
+ font-size: 1.4rem;
41
+ color: #00204D;
42
+ }
43
+
44
+ .regular3 {
45
+ line-height: 2.8rem;
46
+ font-size: 1.6rem;
47
+ color: #00204D;
48
+ }
49
+
50
+ .regular4 {
51
+ line-height: 2.8rem;
52
+ font-size: 2rem;
53
+ color: #00204D;
54
+ }
55
+
56
+ .regular5 {
57
+ line-height: 3.2rem;
58
+ font-size: 2.4rem;
59
+ color: #00204D;
60
+ }
61
+
62
+ .regular6 {
63
+ line-height: 3.8rem;
64
+ font-size: 3rem;
65
+ color: #00204D;
66
+ }
67
+
68
+ .regular7 {
69
+ line-height: 4.8rem;
70
+ font-size: 3.8rem;
71
+ color: #00204D;
72
+ }
73
+
74
+ .regular8 {
75
+ line-height: 5.4rem;
76
+ font-size: 4.6rem;
77
+ color: #00204D;
78
+ }
79
+
80
+ .regular9 {
81
+ line-height: 6.4rem;
82
+ font-size: 5.6rem;
83
+ color: #00204D;
84
+ }
85
+
86
+ .semibold0 {
87
+ line-height: 1.4rem;
88
+ font-size: 1rem;
89
+ color: #00204D;
90
+ font-weight: 600;
91
+ }
92
+
93
+ .semibold11 {
94
+ line-height: 1.4rem;
95
+ font-size: 1.1rem;
96
+ color: #00204D;
97
+ font-weight: 600;
98
+ }
99
+
100
+ .semibold1 {
101
+ line-height: 1.6rem;
102
+ font-size: 1.2rem;
103
+ color: #00204D;
104
+ font-weight: 600;
105
+ }
106
+
107
+ .semibold2 {
108
+ line-height: 2.2rem;
109
+ font-size: 1.4rem;
110
+ color: #00204D;
111
+ font-weight: 600;
112
+ }
113
+
114
+ .semibold3 {
115
+ line-height: 2.8rem;
116
+ font-size: 1.6rem;
117
+ color: #00204D;
118
+ font-weight: 600;
119
+ }
120
+
121
+ .semibold4 {
122
+ line-height: 2.8rem;
123
+ font-size: 2rem;
124
+ color: #00204D;
125
+ font-weight: 600;
126
+ }
127
+
128
+ .semibold5 {
129
+ line-height: 3.2rem;
130
+ font-size: 2.4rem;
131
+ color: #00204D;
132
+ font-weight: 600;
133
+ }
134
+
135
+ .semibold6 {
136
+ line-height: 4.8rem;
137
+ font-size: 3rem;
138
+ color: #00204D;
139
+ font-weight: 600;
140
+ }
141
+
142
+ .semibold7 {
143
+ line-height: 4.8rem;
144
+ font-size: 3.8rem;
145
+ color: #00204D;
146
+ font-weight: 600;
147
+ }
148
+
149
+ .semibold8 {
150
+ line-height: 5.4rem;
151
+ font-size: 4.6rem;
152
+ color: #00204D;
153
+ font-weight: 600;
154
+ }
155
+
156
+ .semibold9 {
157
+ line-height: 6.4rem;
158
+ font-size: 5.6rem;
159
+ color: #00204D;
160
+ font-weight: 600;
161
+ }
162
+
163
+ .heading-1 {
164
+ line-height: 6.8rem;
165
+ font-size: 5.6rem;
166
+ font-weight: 600;
167
+ color: #00204D;
168
+ }
169
+
170
+ .heading-2 {
171
+ line-height: 5.6rem;
172
+ font-size: 4.6rem;
173
+ font-weight: 600;
174
+ color: #00204D;
175
+ }
176
+
177
+ .heading-3 {
178
+ line-height: 4.6rem;
179
+ font-size: 3.8rem;
180
+ font-weight: 600;
181
+ color: #00204D;
182
+ }
183
+
184
+ .heading-4 {
185
+ line-height: 3.8rem;
186
+ font-size: 3rem;
187
+ font-weight: 600;
188
+ color: #00204D;
189
+ }
190
+
191
+ .heading-5 {
192
+ line-height: 3.2rem;
193
+ font-size: 2.4rem;
194
+ font-weight: 600;
195
+ color: #00204D;
196
+ }
197
+
198
+ .heading-6 {
199
+ line-height: 2.8rem;
200
+ font-size: 2rem;
201
+ font-weight: 600;
202
+ color: #00204D;
203
+ }
204
+
205
+ .heading-7 {
206
+ line-height: 2.4rem;
207
+ font-size: 1.6rem;
208
+ font-weight: 600;
209
+ color: #00204D;
210
+ }
211
+
212
+ .heading-8 {
213
+ line-height: 2.2rem;
214
+ font-size: 1.4rem;
215
+ font-weight: 600;
216
+ color: #00204D;
217
+ }
218
+
219
+ .heading-9 {
220
+ line-height: 2rem;
221
+ font-size: 1.2rem;
222
+ font-weight: 600;
223
+ color: #00204D;
224
+ }
225
+
226
+ .subtitle-1 {
227
+ line-height: 2.6rem;
228
+ font-size: 1.8rem;
229
+ color: #00204D99;
230
+ }
231
+
232
+ .subtitle-2 {
233
+ line-height: 2.4rem;
234
+ font-size: 1.6rem;
235
+ color: #00204D99;
236
+ }
237
+
238
+ .subtitle-3 {
239
+ line-height: 2.2rem;
240
+ font-size: 1.4rem;
241
+ color: #00204D99;
242
+ }
243
+
244
+ .subtitle-4 {
245
+ line-height: 1.6rem;
246
+ font-size: 1.2rem;
247
+ color: #00204D99;
248
+ }
249
+
250
+ .subtitle-5 {
251
+ line-height: 1.4rem;
252
+ font-size: 1rem;
253
+ color: #00204D99;
254
+ }
255
+
256
+ .body-1 {
257
+ line-height: 2.8rem;
258
+ font-size: 1.8rem;
259
+ color: #00204D;
260
+ }
261
+
262
+ .body-2 {
263
+ line-height: 2.4rem;
264
+ font-size: 1.6rem;
265
+ color: #00204D;
266
+ }
267
+
268
+ .body-3 {
269
+ line-height: 2.2rem;
270
+ font-size: 1.4rem;
271
+ font-weight: 400;
272
+ color: #00204D;
273
+ }
274
+
275
+ .button-text-1 {
276
+ line-height: 2.4rem;
277
+ font-size: 1.6rem;
278
+ font-weight: 600;
279
+ color: #00204D;
280
+ }
281
+
282
+ .button-text-2 {
283
+ line-height: 2.4rem;
284
+ font-size: 1.6rem;
285
+ font-weight: 500;
286
+ color: #00204D;
287
+ }
288
+
289
+ .button-text-3 {
290
+ line-height: 2.2rem;
291
+ font-size: 1.4rem;
292
+ font-weight: 500;
293
+ color: #00204D;
294
+ }
295
+
296
+ .button-text-4 {
297
+ line-height: 2.2rem;
298
+ font-size: 1.4rem;
299
+ font-weight: 400;
300
+ color: #00204D;
301
+ }
302
+
303
+ .button-text-5 {
304
+ line-height: 1.6rem;
305
+ font-size: 1.2rem;
306
+ font-weight: 500;
307
+ color: #00204D;
308
+ }
309
+
310
+ .button-text-6 {
311
+ line-height: 1.6rem;
312
+ font-size: 1.2rem;
313
+ font-weight: 400;
314
+ color: #00204D;
315
+ }
316
+
317
+ .label-1 {
318
+ line-height: 2.4rem;
319
+ font-size: 1.6rem;
320
+ font-weight: 500;
321
+ color: #00204D;
322
+ }
323
+
324
+ .label-2 {
325
+ line-height: 2.2rem;
326
+ font-size: 1.6rem;
327
+ font-weight: 400;
328
+ color: #00204D;
329
+ }
330
+
331
+ .label-3 {
332
+ line-height: 2.2rem;
333
+ font-size: 1.4rem;
334
+ font-weight: 500;
335
+ color: #00204D;
336
+ }
337
+
338
+ .label-4 {
339
+ line-height: 2.2rem;
340
+ font-size: 1.4rem;
341
+ font-weight: 400;
342
+ color: #00204D;
343
+ }
344
+
345
+ .label-5 {
346
+ line-height: 1.6rem;
347
+ font-size: 1.2rem;
348
+ font-weight: 400;
349
+ color: #00204D;
350
+ }
351
+
352
+ .placeholder-1 {
353
+ line-height: 2.8rem;
354
+ font-size: 1.6rem;
355
+ font-weight: 400;
356
+ color: #00204D99;
357
+ }
358
+
359
+ .placeholder-2 {
360
+ line-height: 2.2rem;
361
+ font-size: 1.4rem;
362
+ font-weight: 400;
363
+ color: #00204D99;
364
+ }
365
+
366
+ .title-3 {
367
+ line-height: 2.4rem;
368
+ font-size: 1.6rem;
369
+ font-weight: 500;
370
+ color: #00204D;
371
+ }
372
+
373
+ .title-4 {
374
+ line-height: 1.6rem;
375
+ font-size: 1.2rem;
376
+ font-weight: 500;
377
+ color: #00204D;
378
+ }