diginet-core-ui 1.3.34 → 1.3.35
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/assets/images/menu/dhr/MHRP09N0032.svg +7 -0
- package/components/avatar/index.js +19 -19
- package/components/badge/index.js +61 -64
- package/components/button/icon.js +21 -21
- package/components/button/index.js +180 -180
- package/components/button/ripple-effect.js +23 -23
- package/components/chart/Pie-v2/index.js +40 -42
- package/components/chip/index.js +129 -134
- package/components/form-control/attachment/index.js +431 -435
- package/components/form-control/calendar/function.js +69 -46
- package/components/form-control/calendar/index.js +12 -3
- package/components/form-control/control/index.js +35 -23
- package/components/form-control/date-picker/index.js +36 -36
- package/components/form-control/date-range-picker/index.js +84 -86
- package/components/form-control/dropdown/index.js +462 -431
- package/components/form-control/dropdown-box/index.js +53 -53
- package/components/form-control/label/index.js +16 -15
- package/components/form-control/money-input/index.js +106 -7
- package/components/form-control/radio/index.js +129 -132
- package/components/form-control/text-input/index.js +25 -28
- package/components/form-control/toggle/index.js +106 -107
- package/components/modal/modal.js +43 -46
- package/components/popover/index.js +27 -29
- package/components/popup/index.js +73 -77
- package/components/popup/proposals_popup.js +46 -48
- package/components/popup/v2/index.js +108 -110
- package/components/progress/circular.js +65 -66
- package/components/tab/tab-container.js +32 -14
- package/components/tab/tab-header.js +81 -56
- package/components/tab/tab-panel.js +46 -17
- package/components/tab/tab.js +105 -87
- package/components/tooltip/index.js +24 -26
- package/components/typography/index.js +10 -10
- package/icons/basic.js +148 -27
- package/icons/effect.js +26 -26
- package/package.json +1 -1
- package/readme.md +17 -0
- package/theme/settings.js +7 -5
- package/utils/number.js +11 -12
|
@@ -126,25 +126,26 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
126
126
|
const confirmText = getGlobal(['confirm']);
|
|
127
127
|
const unitText = getGlobal([unitCount]);
|
|
128
128
|
const iconAreaCSS = css`
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
129
|
+
align-items: center;
|
|
130
|
+
color: inherit;
|
|
131
|
+
display: flex;
|
|
132
|
+
width: 24px;
|
|
133
|
+
& span {
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
.${unique.icon} {
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
opacity: 0;
|
|
139
|
+
transition: display 50ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
140
|
+
opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 50ms;
|
|
141
|
+
display: none;
|
|
142
|
+
will-change: display, opacity;
|
|
143
|
+
}
|
|
144
|
+
.${unique.icon}-accept {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
display: block;
|
|
147
|
+
}
|
|
148
|
+
`;
|
|
148
149
|
const hiddenStyle = {
|
|
149
150
|
opacity: 0,
|
|
150
151
|
display: 'none'
|
|
@@ -155,10 +156,10 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
155
156
|
display: 'block'
|
|
156
157
|
};
|
|
157
158
|
const controlContainerCSS = css`
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
display: flex;
|
|
160
|
+
justify-content: flex-end;
|
|
161
|
+
margin: 0 16px 16px;
|
|
162
|
+
`;
|
|
162
163
|
const buttonProps = {
|
|
163
164
|
style: {
|
|
164
165
|
display: 'none',
|
|
@@ -199,60 +200,61 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
199
200
|
const pickerCSS = {
|
|
200
201
|
backGr: 'background-color: transparent; inset: 0px; pointer-events: auto; position: fixed; z-index: 9001;',
|
|
201
202
|
container: css`
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
203
|
+
background-color: ${theme.colors.white};
|
|
204
|
+
border-radius: ${theme.border.radius};
|
|
205
|
+
box-shadow: ${theme.boxShadows.large};
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-flow: column;
|
|
208
|
+
.${unique.wrapper} {
|
|
209
|
+
display: flex;
|
|
210
|
+
min-width: 633px;
|
|
211
|
+
}
|
|
212
|
+
.${unique.tooltip} {
|
|
213
|
+
background-color: rgba(21, 26, 48, 0.9);
|
|
214
|
+
border-radius: ${theme.border.radius};
|
|
215
|
+
height: 18px;
|
|
216
|
+
min-width: 65px;
|
|
217
|
+
padding: 3px 6px;
|
|
218
|
+
pointer-events: none;
|
|
219
|
+
position: fixed;
|
|
220
|
+
text-align: center;
|
|
221
|
+
transition: left 0.05s ease-in, top 0.05s ease-in;
|
|
222
|
+
user-select: none;
|
|
223
|
+
vertical-align: middle;
|
|
224
|
+
visibility: hidden;
|
|
225
|
+
white-space: nowrap;
|
|
226
|
+
will-change: left top visibility;
|
|
227
|
+
z-index: 9003;
|
|
228
|
+
}
|
|
229
|
+
@media only screen and (max-width: 599px) {
|
|
230
|
+
max-width: 400px;
|
|
231
|
+
.${unique.wrapper} {
|
|
232
|
+
flex-direction: column;
|
|
233
|
+
min-width: 260px;
|
|
234
|
+
}
|
|
235
|
+
.${unique.divider} {
|
|
236
|
+
height: 1px !important;
|
|
237
|
+
margin: 0px 16px !important;
|
|
238
|
+
width: calc(100% - 32px) !important;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
`,
|
|
241
242
|
picker: (position, width) => css`
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
243
|
+
border-radius: ${theme.border.radius};
|
|
244
|
+
height: max-content;
|
|
245
|
+
left: ${position.left}px;
|
|
246
|
+
max-width: 805px;
|
|
247
|
+
min-width: ${window.innerWidth <= 633 ? 300 : 633}px;
|
|
248
|
+
opacity: 0;
|
|
249
|
+
position: fixed;
|
|
250
|
+
top: ${position.top}px;
|
|
251
|
+
transform: scale(0);
|
|
252
|
+
transform-origin: ${position.transformOrigin};
|
|
253
|
+
transition: opacity 120ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
254
|
+
transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
255
|
+
width: ${width}px;
|
|
256
|
+
z-index: 9002;
|
|
257
|
+
`,
|
|
256
258
|
active: {
|
|
257
259
|
opacity: 1,
|
|
258
260
|
transform: 'scale(1)'
|
|
@@ -456,8 +458,8 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
456
458
|
tableData = [],
|
|
457
459
|
weekDateFirst = getDateOfWeek(firstDay),
|
|
458
460
|
weekDateLast = getDateOfWeek(lastDay);
|
|
459
|
-
/**
|
|
460
|
-
* days of previous month
|
|
461
|
+
/**
|
|
462
|
+
* days of previous month
|
|
461
463
|
*/
|
|
462
464
|
|
|
463
465
|
for (let i = weekDateFirst; i > 0; i--) {
|
|
@@ -470,8 +472,8 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
470
472
|
className: unique.day.day
|
|
471
473
|
})));
|
|
472
474
|
}
|
|
473
|
-
/**
|
|
474
|
-
* days of current month
|
|
475
|
+
/**
|
|
476
|
+
* days of current month
|
|
475
477
|
*/
|
|
476
478
|
|
|
477
479
|
|
|
@@ -485,8 +487,8 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
485
487
|
}, jsx(Typography, { ...typographyProps(unique.day.day)
|
|
486
488
|
}, i + 1)));
|
|
487
489
|
}
|
|
488
|
-
/**
|
|
489
|
-
* days of next month
|
|
490
|
+
/**
|
|
491
|
+
* days of next month
|
|
490
492
|
*/
|
|
491
493
|
|
|
492
494
|
|
|
@@ -531,8 +533,6 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
531
533
|
render(tableBody, tableToRef.current.appendChild(document.createElement('tbody')));
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
|
-
|
|
535
|
-
;
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
const updateFromTo = (times = [new Date(), new Date()]) => {
|
|
@@ -907,8 +907,6 @@ const DateRangePickerV2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
907
907
|
target: null
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
|
-
|
|
911
|
-
;
|
|
912
910
|
};
|
|
913
911
|
|
|
914
912
|
const renderPicker = () => {
|