@mw-kit/mw-ui 1.7.5 → 1.7.6
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/dist/components/Calendar/components/Basic/components/Main/index.d.ts +3 -0
- package/dist/components/Calendar/components/Basic/components/Main/interfaces.d.ts +3 -0
- package/dist/components/Calendar/components/Basic/components/Main/styles.d.ts +10 -0
- package/dist/components/Calendar/components/Basic/components/MonthPicker/index.d.ts +9 -0
- package/dist/components/Calendar/components/Basic/index.d.ts +8 -0
- package/dist/components/Calendar/components/Basic/interfaces.d.ts +26 -0
- package/dist/components/Calendar/components/Basic/styles.d.ts +8 -0
- package/dist/components/Calendar/components/Interval/components/Main/functions.d.ts +4 -0
- package/dist/components/Calendar/components/Interval/components/Main/index.d.ts +3 -0
- package/dist/components/Calendar/components/Interval/components/Main/interfaces.d.ts +3 -0
- package/dist/components/Calendar/components/Interval/components/Main/styles.d.ts +2 -0
- package/dist/components/Calendar/components/Interval/index.d.ts +8 -0
- package/dist/components/Calendar/components/Interval/interfaces.d.ts +21 -0
- package/dist/components/Calendar/components/Single/components/Main/index.d.ts +3 -0
- package/dist/components/Calendar/components/Single/components/Main/interfaces.d.ts +3 -0
- package/dist/components/Calendar/components/Single/index.d.ts +8 -0
- package/dist/components/Calendar/components/Single/interfaces.d.ts +21 -0
- package/dist/components/Calendar/components/index.d.ts +3 -0
- package/dist/components/Calendar/components/interfaces.d.ts +3 -0
- package/dist/components/Calendar/constants.d.ts +6 -0
- package/dist/components/Calendar/functions.d.ts +11 -0
- package/dist/components/Calendar/index.d.ts +27 -8
- package/dist/components/Calendar/interfaces.d.ts +9 -20
- package/dist/components/Calendar/styles.d.ts +1 -13
- package/dist/components/Input/components/DateIntervalPicker/index.d.ts +1 -1
- package/dist/components/Input/components/DateIntervalPicker/interfaces.d.ts +2 -0
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Menu/interfaces.d.ts +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/functions/formatters.d.ts +2 -2
- package/dist/functions/validators.d.ts +9 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1109 -733
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1109 -732
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/CalendarInterval/index.d.ts +0 -4
- package/dist/components/CalendarInterval/interfaces.d.ts +0 -16
- package/dist/components/CalendarInterval/styles.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -208,14 +208,59 @@ var isString = function isString(value) {
|
|
|
208
208
|
var isDateInstance = function isDateInstance(value) {
|
|
209
209
|
return value instanceof Date && !isNaN(value.valueOf());
|
|
210
210
|
};
|
|
211
|
-
var
|
|
211
|
+
var dateCompare = function dateCompare(a, b, operation, time) {
|
|
212
212
|
if (time === void 0) {
|
|
213
213
|
time = true;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
var operations = {
|
|
217
|
+
eq: function eq(a, b) {
|
|
218
|
+
return a.getTime() === b.getTime();
|
|
219
|
+
},
|
|
220
|
+
gt: function gt(a, b) {
|
|
221
|
+
return a > b;
|
|
222
|
+
},
|
|
223
|
+
gte: function gte(a, b) {
|
|
224
|
+
return this.gt(a, b) || this.eq(a, b);
|
|
225
|
+
},
|
|
226
|
+
lt: function lt(a, b) {
|
|
227
|
+
return a < b;
|
|
228
|
+
},
|
|
229
|
+
lte: function lte(a, b) {
|
|
230
|
+
return this.lt(a, b) || this.eq(a, b);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
if (time === false) {
|
|
235
|
+
a = new Date(a);
|
|
236
|
+
a.setHours(0, 0, 0, 0);
|
|
237
|
+
b = new Date(b);
|
|
238
|
+
b.setHours(0, 0, 0, 0);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return operations[operation](a, b);
|
|
242
|
+
};
|
|
243
|
+
var isValidTime = function isValidTime(time, format) {
|
|
244
|
+
if (format === void 0) {
|
|
245
|
+
format = {
|
|
246
|
+
h: 'required',
|
|
247
|
+
m: 'required'
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
var c = {
|
|
252
|
+
h: '(([0-1][0-9])|(2[0-3]))',
|
|
253
|
+
m: '([0-5][0-9])',
|
|
254
|
+
s: '([0-5][0-9])'
|
|
255
|
+
};
|
|
256
|
+
var sep = '';
|
|
257
|
+
var conditions = Object.keys(format).map(function (f) {
|
|
258
|
+
var content = "(" + sep + c[f] + ")";
|
|
259
|
+
sep = ':';
|
|
260
|
+
return format[f] === 'required' ? content : content + "?";
|
|
261
|
+
}).join('');
|
|
262
|
+
var re = new RegExp(conditions + "$");
|
|
263
|
+
return time.match(re) !== null;
|
|
219
264
|
};
|
|
220
265
|
var strCmp = function strCmp(x, y, options) {
|
|
221
266
|
if (options === void 0) {
|
|
@@ -247,13 +292,16 @@ var strCmp = function strCmp(x, y, options) {
|
|
|
247
292
|
return options.contain ? x.includes(y) : x === y;
|
|
248
293
|
};
|
|
249
294
|
|
|
250
|
-
var
|
|
295
|
+
var keys = function keys(value) {
|
|
296
|
+
return Object.keys(value);
|
|
297
|
+
};
|
|
298
|
+
var filterObject = function filterObject(object, remove, inital) {
|
|
251
299
|
if (inital === void 0) {
|
|
252
300
|
inital = {};
|
|
253
301
|
}
|
|
254
302
|
|
|
255
|
-
var r =
|
|
256
|
-
return !
|
|
303
|
+
var r = keys(object).filter(function (key) {
|
|
304
|
+
return !remove.includes(key);
|
|
257
305
|
}).reduce(function (prev, key) {
|
|
258
306
|
var _extends2;
|
|
259
307
|
|
|
@@ -262,7 +310,14 @@ var filterObject = function filterObject(object, keys, inital) {
|
|
|
262
310
|
return r;
|
|
263
311
|
};
|
|
264
312
|
var isoStringToDate = function isoStringToDate(value) {
|
|
265
|
-
var
|
|
313
|
+
var _value$split = value.split(' '),
|
|
314
|
+
d = _value$split[0],
|
|
315
|
+
_value$split$ = _value$split[1],
|
|
316
|
+
t = _value$split$ === void 0 ? '00:00:00' : _value$split$;
|
|
317
|
+
|
|
318
|
+
var date = new Date(d.split('/').reverse().join('-') + ' ' + [].concat(t.split(':'), ['0', '0', '0']).slice(0, 3).map(function (s) {
|
|
319
|
+
return s.padEnd(2, '0');
|
|
320
|
+
}).join(':'));
|
|
266
321
|
return isNaN(date.getTime()) ? null : date;
|
|
267
322
|
};
|
|
268
323
|
var getWeekNumber = function getWeekNumber(value) {
|
|
@@ -351,9 +406,6 @@ var getSpacings = function getSpacings(value, defaults) {
|
|
|
351
406
|
};
|
|
352
407
|
return values.top + " " + values.right + " " + values.bottom + " " + values.left;
|
|
353
408
|
};
|
|
354
|
-
var keys = function keys(value) {
|
|
355
|
-
return Object.keys(value);
|
|
356
|
-
};
|
|
357
409
|
|
|
358
410
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
359
411
|
var loader = styled.keyframes(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n"])));
|
|
@@ -12988,207 +13040,173 @@ var useOnClickOut = function useOnClickOut(callback) {
|
|
|
12988
13040
|
return setRef;
|
|
12989
13041
|
};
|
|
12990
13042
|
|
|
12991
|
-
var
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
}
|
|
12997
|
-
|
|
12998
|
-
if (v.length > 1) {
|
|
12999
|
-
if (v[0] === '2') {
|
|
13000
|
-
while (v.length > 1 && parseInt(v[1]) > 3) {
|
|
13001
|
-
v = v[0] + v.substring(2);
|
|
13002
|
-
}
|
|
13003
|
-
}
|
|
13004
|
-
}
|
|
13005
|
-
|
|
13006
|
-
if (v.length > 2) {
|
|
13007
|
-
while (v.length > 2 && parseInt(v[2]) > 5) {
|
|
13008
|
-
v = v.substring(0, 2) + v.substring(3);
|
|
13009
|
-
}
|
|
13010
|
-
}
|
|
13011
|
-
|
|
13012
|
-
if (v.length > 4) {
|
|
13013
|
-
while (v.length > 4 && parseInt(v[4]) > 5) {
|
|
13014
|
-
v = v.substring(0, 4) + v.substring(5);
|
|
13015
|
-
}
|
|
13016
|
-
}
|
|
13017
|
-
|
|
13018
|
-
v = v.substring(0, seconds ? 6 : 4);
|
|
13019
|
-
if (v.length < 3) return v;else if (v.length < 5) return v.substring(0, 2) + ':' + v.substring(2);else return v.substring(0, 2) + ':' + v.substring(2, 4) + ':' + v.substring(4);
|
|
13043
|
+
var months = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
|
|
13044
|
+
var maxHeight = '378px';
|
|
13045
|
+
var inputTimeWidth = {
|
|
13046
|
+
withSeconds: '86px',
|
|
13047
|
+
withoutSeconds: '66px'
|
|
13020
13048
|
};
|
|
13021
13049
|
|
|
13022
|
-
var
|
|
13023
|
-
|
|
13024
|
-
seconds = props.seconds;
|
|
13025
|
-
|
|
13026
|
-
var _onKeyDown = props.onKeyDown || function () {};
|
|
13027
|
-
|
|
13028
|
-
var setValue = props.setValue || function () {};
|
|
13029
|
-
|
|
13030
|
-
var onKeyDown = function onKeyDown(event) {
|
|
13031
|
-
var target = event.target;
|
|
13032
|
-
var todayDate = new Date();
|
|
13033
|
-
var curH = todayDate.getHours();
|
|
13034
|
-
var curM = todayDate.getMinutes();
|
|
13035
|
-
var curS = todayDate.getSeconds();
|
|
13036
|
-
var value = target.value.replace(/[^0-9\s]/g, '');
|
|
13037
|
-
var tmp = value.substring(0, 2);
|
|
13038
|
-
var h = tmp.length === 0 ? curH : parseInt(tmp.padEnd(2, '0'));
|
|
13039
|
-
tmp = value.substring(2, 4);
|
|
13040
|
-
var m = tmp.length === 0 ? curM : parseInt(tmp.padEnd(2, '0'));
|
|
13041
|
-
tmp = value.substring(4, 6);
|
|
13042
|
-
var s = tmp.length === 0 ? curS : parseInt(tmp.padEnd(2, '0'));
|
|
13043
|
-
|
|
13044
|
-
if (event.key === 'ArrowUp') {
|
|
13045
|
-
var date = new Date();
|
|
13046
|
-
date.setHours(h);
|
|
13047
|
-
date.setMinutes(m);
|
|
13048
|
-
date.setSeconds(s);
|
|
13049
|
-
|
|
13050
|
-
if (seconds) {
|
|
13051
|
-
date.setSeconds(s + 1);
|
|
13052
|
-
h = date.getHours();
|
|
13053
|
-
m = date.getMinutes();
|
|
13054
|
-
s = date.getSeconds();
|
|
13055
|
-
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':'));
|
|
13056
|
-
} else {
|
|
13057
|
-
date.setMinutes(m + 1);
|
|
13058
|
-
h = date.getHours();
|
|
13059
|
-
m = date.getMinutes();
|
|
13060
|
-
s = date.getSeconds();
|
|
13061
|
-
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':'));
|
|
13062
|
-
}
|
|
13063
|
-
} else if (event.key === 'ArrowDown') {
|
|
13064
|
-
var _date = new Date();
|
|
13065
|
-
|
|
13066
|
-
_date.setHours(h);
|
|
13067
|
-
|
|
13068
|
-
_date.setMinutes(m);
|
|
13069
|
-
|
|
13070
|
-
_date.setSeconds(s);
|
|
13071
|
-
|
|
13072
|
-
if (seconds) {
|
|
13073
|
-
_date.setSeconds(s - 1);
|
|
13074
|
-
|
|
13075
|
-
h = _date.getHours();
|
|
13076
|
-
m = _date.getMinutes();
|
|
13077
|
-
s = _date.getSeconds();
|
|
13078
|
-
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':'));
|
|
13079
|
-
} else {
|
|
13080
|
-
_date.setMinutes(m - 1);
|
|
13081
|
-
|
|
13082
|
-
h = _date.getHours();
|
|
13083
|
-
m = _date.getMinutes();
|
|
13084
|
-
s = _date.getSeconds();
|
|
13085
|
-
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':'));
|
|
13086
|
-
}
|
|
13087
|
-
}
|
|
13088
|
-
|
|
13089
|
-
_onKeyDown(event);
|
|
13090
|
-
};
|
|
13091
|
-
|
|
13092
|
-
var placeholder = props.placeholder === undefined ? seconds ? '––:––:––' : '––:––' : props.placeholder;
|
|
13093
|
-
return React__default.createElement(Input$1, Object.assign({}, props, {
|
|
13094
|
-
type: 'text',
|
|
13095
|
-
value: _mask(value, seconds),
|
|
13096
|
-
placeholder: placeholder,
|
|
13097
|
-
mask: function mask(v) {
|
|
13098
|
-
return _mask(v, seconds);
|
|
13099
|
-
},
|
|
13100
|
-
onKeyDown: onKeyDown,
|
|
13101
|
-
ref: ref
|
|
13102
|
-
}));
|
|
13103
|
-
});
|
|
13104
|
-
Time.displayName = 'Time';
|
|
13105
|
-
|
|
13106
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$6, _templateObject8$4, _templateObject9$4, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$2;
|
|
13107
|
-
var Container$7 = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n display: inline-block;\n background-color: ", ";\n padding: ", ";\n\n > div:nth-child(1) {\n border: 1px solid ", ";\n margin-bottom: ", ";\n }\n"])), function (_ref) {
|
|
13050
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$6, _templateObject8$4, _templateObject9$4;
|
|
13051
|
+
var Container$7 = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n background-color: ", ";\n\n ", ";\n"])), function (_ref) {
|
|
13108
13052
|
var theme = _ref.theme;
|
|
13109
|
-
return theme.
|
|
13053
|
+
return theme.spacings.s3;
|
|
13110
13054
|
}, function (_ref2) {
|
|
13111
13055
|
var theme = _ref2.theme;
|
|
13112
|
-
return theme.
|
|
13056
|
+
return theme.colors.white;
|
|
13113
13057
|
}, function (_ref3) {
|
|
13114
13058
|
var theme = _ref3.theme;
|
|
13115
|
-
|
|
13116
|
-
},
|
|
13059
|
+
var s3 = theme.spacings.s3;
|
|
13060
|
+
return styled.css(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n padding-bottom: ", ";\n :first-child {\n padding-left: ", ";\n }\n :last-child {\n padding-right: ", ";\n }\n "])), s3, s3, s3, s3);
|
|
13061
|
+
});
|
|
13062
|
+
var LabelContainer = styled__default.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose([""])));
|
|
13063
|
+
var CalendarContainer = styled__default.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n"])), function (_ref4) {
|
|
13117
13064
|
var theme = _ref4.theme;
|
|
13118
|
-
return theme.
|
|
13065
|
+
return theme.colors.lightestGrey;
|
|
13119
13066
|
});
|
|
13120
|
-
var AbsoluteContainer$1 = styled__default(AbsoluteContainer)(
|
|
13067
|
+
var AbsoluteContainer$1 = styled__default(AbsoluteContainer)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n > ", " {\n padding: ", ";\n }\n"])), Container$7, function (_ref5) {
|
|
13121
13068
|
var theme = _ref5.theme;
|
|
13122
13069
|
return theme.spacings.s3 + " " + theme.spacings.s3 + " " + theme.spacings.s1 + " " + theme.spacings.s3;
|
|
13123
13070
|
});
|
|
13124
|
-
var
|
|
13125
|
-
var MonthContainer = styled__default.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n > div {\n margin: ", " 0;\n }\n"])), function (_ref6) {
|
|
13071
|
+
var MonthContainer = styled__default.div(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: ", ";\n > div {\n margin: ", " 0;\n flex: 1;\n position: relative;\n }\n"])), function (_ref6) {
|
|
13126
13072
|
var theme = _ref6.theme;
|
|
13127
13073
|
return theme.spacings.s1;
|
|
13128
|
-
})
|
|
13129
|
-
var NavBtn = styled__default.button(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n width: 32px;\n height: 32px;\n box-shadow: none;\n border: 0.5px solid transparent;\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n\n :disabled {\n visibility: hidden;\n }\n"])), function (_ref7) {
|
|
13074
|
+
}, function (_ref7) {
|
|
13130
13075
|
var theme = _ref7.theme;
|
|
13131
|
-
return theme.
|
|
13076
|
+
return theme.spacings.s1;
|
|
13132
13077
|
});
|
|
13133
|
-
var
|
|
13078
|
+
var MonthBtn = styled__default.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n text-align: center;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: ", ";\n\n ", "\n"])), function (_ref8) {
|
|
13134
13079
|
var theme = _ref8.theme;
|
|
13135
|
-
return theme.
|
|
13080
|
+
return theme.spacings.s1;
|
|
13136
13081
|
}, function (_ref9) {
|
|
13137
|
-
var
|
|
13138
|
-
return
|
|
13139
|
-
|
|
13082
|
+
var onClick = _ref9.onClick;
|
|
13083
|
+
if (!onClick) return;
|
|
13084
|
+
return styled.css(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
13085
|
+
});
|
|
13086
|
+
var NavBtn = styled__default.button(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n width: 32px;\n height: 32px;\n box-shadow: none;\n border: 0.5px solid transparent;\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n\n :disabled {\n visibility: hidden;\n }\n"])), function (_ref10) {
|
|
13140
13087
|
var theme = _ref10.theme;
|
|
13088
|
+
return theme.useTypography('p');
|
|
13089
|
+
});
|
|
13090
|
+
|
|
13091
|
+
var MonthPicker = function MonthPicker(props) {
|
|
13092
|
+
var setValue = props.setValue,
|
|
13093
|
+
close = props.close,
|
|
13094
|
+
min = props.min,
|
|
13095
|
+
max = props.max;
|
|
13096
|
+
|
|
13097
|
+
var _useState = React.useState(props.year),
|
|
13098
|
+
year = _useState[0],
|
|
13099
|
+
setYear = _useState[1];
|
|
13100
|
+
|
|
13101
|
+
React.useEffect(function () {
|
|
13102
|
+
setYear(props.year);
|
|
13103
|
+
}, [props.open, props.year]);
|
|
13104
|
+
return React__default.createElement(Menu, Object.assign({}, props, {
|
|
13105
|
+
before: React__default.createElement(MonthContainer, null, React__default.createElement(NavBtn, {
|
|
13106
|
+
type: 'button',
|
|
13107
|
+
onClick: function onClick() {
|
|
13108
|
+
return setYear(function (prev) {
|
|
13109
|
+
return prev - 1;
|
|
13110
|
+
});
|
|
13111
|
+
},
|
|
13112
|
+
disabled: min !== undefined && min.getFullYear() >= year
|
|
13113
|
+
}, React__default.createElement(Icon, {
|
|
13114
|
+
type: 'feather',
|
|
13115
|
+
icon: 'chevron_left',
|
|
13116
|
+
color: 'darkBlue',
|
|
13117
|
+
strokeWidth: '3px'
|
|
13118
|
+
})), React__default.createElement("div", null, React__default.createElement(MonthBtn, null, year)), React__default.createElement(NavBtn, {
|
|
13119
|
+
type: 'button',
|
|
13120
|
+
onClick: function onClick() {
|
|
13121
|
+
return setYear(function (prev) {
|
|
13122
|
+
return prev + 1;
|
|
13123
|
+
});
|
|
13124
|
+
},
|
|
13125
|
+
disabled: max !== undefined && max.getFullYear() <= year
|
|
13126
|
+
}, React__default.createElement(Icon, {
|
|
13127
|
+
type: 'feather',
|
|
13128
|
+
icon: 'chevron_right',
|
|
13129
|
+
color: 'darkBlue',
|
|
13130
|
+
strokeWidth: '3px'
|
|
13131
|
+
}))),
|
|
13132
|
+
options: months.map(function (label, index) {
|
|
13133
|
+
return {
|
|
13134
|
+
label: label,
|
|
13135
|
+
onClick: function onClick() {
|
|
13136
|
+
setValue(year, index);
|
|
13137
|
+
close();
|
|
13138
|
+
},
|
|
13139
|
+
rules: [{
|
|
13140
|
+
rule: function rule() {
|
|
13141
|
+
var disabled = min !== undefined && (min.getFullYear() > year || min.getFullYear() === year && min.getMonth() > index) || max !== undefined && (max.getFullYear() < year || max.getFullYear() === year && max.getMonth() < index);
|
|
13142
|
+
return !disabled;
|
|
13143
|
+
}
|
|
13144
|
+
}]
|
|
13145
|
+
};
|
|
13146
|
+
})
|
|
13147
|
+
}));
|
|
13148
|
+
};
|
|
13149
|
+
|
|
13150
|
+
var _templateObject$f, _templateObject2$d, _templateObject3$d, _templateObject4$c, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$5, _templateObject9$5, _templateObject10$3;
|
|
13151
|
+
var Footer = styled__default.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
13152
|
+
var WeekContainer = styled__default.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
13153
|
+
var theme = _ref.theme;
|
|
13154
|
+
return theme.colors.lightestGrey;
|
|
13155
|
+
}, function (_ref2) {
|
|
13156
|
+
var theme = _ref2.theme;
|
|
13157
|
+
return theme.fonts.lato;
|
|
13158
|
+
}, function (_ref3) {
|
|
13159
|
+
var theme = _ref3.theme;
|
|
13141
13160
|
return theme.spacings.s3;
|
|
13142
|
-
}, function (
|
|
13143
|
-
var theme =
|
|
13161
|
+
}, function (_ref4) {
|
|
13162
|
+
var theme = _ref4.theme;
|
|
13144
13163
|
return theme.spacings.s3;
|
|
13145
|
-
}, function (
|
|
13146
|
-
var theme =
|
|
13164
|
+
}, function (_ref5) {
|
|
13165
|
+
var theme = _ref5.theme;
|
|
13147
13166
|
return theme.colors.darkBlue;
|
|
13148
|
-
}, function (
|
|
13149
|
-
var theme =
|
|
13167
|
+
}, function (_ref6) {
|
|
13168
|
+
var theme = _ref6.theme;
|
|
13150
13169
|
return theme.colors.lightestGrey;
|
|
13151
13170
|
});
|
|
13152
|
-
var Header = styled__default.div(
|
|
13153
|
-
var theme =
|
|
13171
|
+
var Header = styled__default.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n width: 100%;\n\n background-color: ", ";\n font-weight: bolder;\n\n > ", " {\n border-top: none;\n > * {\n border-right-color: transparent;\n }\n }\n"])), function (_ref7) {
|
|
13172
|
+
var theme = _ref7.theme;
|
|
13154
13173
|
return theme.getColor('lightestGrey', 40);
|
|
13155
13174
|
}, WeekContainer);
|
|
13156
|
-
var DayContainer = styled__default.button(
|
|
13157
|
-
var theme =
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
return styled.css(
|
|
13162
|
-
}
|
|
13163
|
-
|
|
13175
|
+
var DayContainer = styled__default.button(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n\n ", ";\n\n :disabled {\n color: ", ";\n }\n\n :not(:disabled) {\n cursor: pointer;\n }\n\n &,\n :after {\n transition-property: background-color, color, border-color;\n transition-timing-function: ease-in-out;\n transition-duration: 0.25s;\n }\n\n ", "\n"])), function (_ref8) {
|
|
13176
|
+
var theme = _ref8.theme,
|
|
13177
|
+
appearance = _ref8.appearance;
|
|
13178
|
+
|
|
13179
|
+
var hover = function hover(color) {
|
|
13180
|
+
return styled.css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :not(:disabled):hover {\n border-color: ", ";\n color: ", ";\n }\n "])), theme.colors[color], theme.colors[color]);
|
|
13181
|
+
};
|
|
13182
|
+
|
|
13183
|
+
if (appearance === 'disabled') {
|
|
13184
|
+
return styled.css(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('greyishBlue', 10));
|
|
13185
|
+
} else if (appearance === 'highlight') {
|
|
13186
|
+
return styled.css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n ", "\n "])), theme.getColor('blue', 30), hover('blue'));
|
|
13187
|
+
} else if (appearance === 'active') {
|
|
13188
|
+
return styled.css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n color: ", ";\n :not(:last-child) {\n border-right-color: ", ";\n }\n ", "\n "])), theme.colors.blue, theme.colors.white, function (_ref9) {
|
|
13189
|
+
var theme = _ref9.theme;
|
|
13190
|
+
return theme.colors.blue;
|
|
13191
|
+
}, hover('white'));
|
|
13164
13192
|
}
|
|
13165
13193
|
|
|
13166
|
-
return styled.css(
|
|
13167
|
-
}, function (
|
|
13168
|
-
var theme =
|
|
13194
|
+
return styled.css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n ", "\n "])), theme.colors.white, hover('blue'));
|
|
13195
|
+
}, function (_ref10) {
|
|
13196
|
+
var theme = _ref10.theme;
|
|
13169
13197
|
return theme.colors.silver;
|
|
13170
|
-
}, function (
|
|
13171
|
-
var
|
|
13172
|
-
|
|
13198
|
+
}, function (_ref11) {
|
|
13199
|
+
var appearance = _ref11.appearance,
|
|
13200
|
+
today = _ref11.today,
|
|
13201
|
+
theme = _ref11.theme;
|
|
13173
13202
|
|
|
13174
|
-
if (
|
|
13175
|
-
return
|
|
13176
|
-
var theme = _ref18.theme;
|
|
13177
|
-
return theme.colors.blue;
|
|
13178
|
-
}, function (_ref19) {
|
|
13179
|
-
var theme = _ref19.theme;
|
|
13180
|
-
return theme.colors.blue;
|
|
13181
|
-
});
|
|
13203
|
+
if (today !== 1) {
|
|
13204
|
+
return;
|
|
13182
13205
|
}
|
|
13183
13206
|
|
|
13184
|
-
return styled.css(
|
|
13185
|
-
var theme = _ref20.theme;
|
|
13186
|
-
return theme.colors.blue;
|
|
13187
|
-
});
|
|
13207
|
+
return styled.css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n top: -60%;\n right: -60%;\n width: 100%;\n height: 100%;\n background-color: ", ";\n transform: rotate(45deg);\n }\n "])), theme.colors[appearance === 'active' ? 'white' : 'blue']);
|
|
13188
13208
|
});
|
|
13189
13209
|
|
|
13190
|
-
var months = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
|
|
13191
|
-
|
|
13192
13210
|
var getCalendar = function getCalendar(d) {
|
|
13193
13211
|
var date = new Date(d.getTime());
|
|
13194
13212
|
date.setHours(0, 0, 0, 0);
|
|
@@ -13239,89 +13257,113 @@ var getCalendar = function getCalendar(d) {
|
|
|
13239
13257
|
weeks: weeks
|
|
13240
13258
|
};
|
|
13241
13259
|
};
|
|
13260
|
+
var getMiddle = function getMiddle(min, max) {
|
|
13261
|
+
var today = new Date();
|
|
13242
13262
|
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
initalValue = props.initalValue;
|
|
13248
|
-
|
|
13249
|
-
var _ref = props.value || React.useState(initalValue && !isNaN(initalValue.getTime()) ? initalValue : null),
|
|
13250
|
-
value = _ref[0],
|
|
13251
|
-
_setValue = _ref[1];
|
|
13263
|
+
if (!max) {
|
|
13264
|
+
if (!min) return today;
|
|
13265
|
+
return dateCompare(today, min, 'gte', false) ? today : min;
|
|
13266
|
+
}
|
|
13252
13267
|
|
|
13253
|
-
|
|
13254
|
-
|
|
13268
|
+
if (!min) {
|
|
13269
|
+
if (!max) return today;
|
|
13270
|
+
return dateCompare(today, max, 'lte', false) ? today : max;
|
|
13271
|
+
}
|
|
13255
13272
|
|
|
13256
|
-
if (
|
|
13257
|
-
|
|
13258
|
-
withoutTime.max = new Date(props.max.getTime());
|
|
13259
|
-
withoutTime.max.setHours(0, 0, 0, 0);
|
|
13273
|
+
if (dateCompare(today, min, 'gte', false) && dateCompare(today, max, 'lte', false)) {
|
|
13274
|
+
return today;
|
|
13260
13275
|
}
|
|
13261
13276
|
|
|
13262
|
-
var min;
|
|
13277
|
+
var days = Math.ceil(Math.abs(max.getTime() - min.getTime()) / (1000 * 60 * 60 * 24) / 2);
|
|
13278
|
+
var result = new Date(min);
|
|
13279
|
+
result.setDate(result.getDate() + days);
|
|
13280
|
+
return result;
|
|
13281
|
+
};
|
|
13282
|
+
var getFullDate = function getFullDate(date, time, end) {
|
|
13283
|
+
var v = new Date(date);
|
|
13284
|
+
var hours = end ? [23, 59, 59, 999] : [0, 0, 0, 0];
|
|
13285
|
+
time.split(':').forEach(function (v, i) {
|
|
13286
|
+
var parsed = parseInt(v);
|
|
13287
|
+
if (isNaN(parsed)) return;
|
|
13288
|
+
hours[i] = parsed;
|
|
13289
|
+
});
|
|
13290
|
+
v.setHours.apply(v, hours);
|
|
13291
|
+
return v;
|
|
13292
|
+
};
|
|
13293
|
+
var isDateBetween = function isDateBetween(date, min, max, time) {
|
|
13294
|
+
if (time === void 0) {
|
|
13295
|
+
time = false;
|
|
13296
|
+
}
|
|
13263
13297
|
|
|
13264
|
-
if (
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
withoutTime.min.setHours(0, 0, 0, 0);
|
|
13298
|
+
if (!max) {
|
|
13299
|
+
if (!min) return true;
|
|
13300
|
+
return dateCompare(date, min, 'gte', time);
|
|
13268
13301
|
}
|
|
13269
13302
|
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13303
|
+
if (!min) {
|
|
13304
|
+
if (!max) return true;
|
|
13305
|
+
return dateCompare(date, max, 'lte', time);
|
|
13306
|
+
}
|
|
13273
13307
|
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
var
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13308
|
+
return dateCompare(date, min, 'gte', time) && dateCompare(date, max, 'lte', time);
|
|
13309
|
+
};
|
|
13310
|
+
var getTimeFromDate = function getTimeFromDate(date) {
|
|
13311
|
+
if (!date) return '';
|
|
13312
|
+
var h = date.getHours();
|
|
13313
|
+
var m = date.getMinutes();
|
|
13314
|
+
var s = date.getSeconds();
|
|
13315
|
+
return [h, m, s].map(function (v) {
|
|
13316
|
+
return v.toString().padStart(2, '0');
|
|
13317
|
+
}).join(':');
|
|
13318
|
+
};
|
|
13319
|
+
var isInvalid = function isInvalid(value, time, timeOptions, min, max) {
|
|
13320
|
+
if (!value) {
|
|
13321
|
+
return true;
|
|
13322
|
+
}
|
|
13289
13323
|
|
|
13290
|
-
|
|
13291
|
-
if (
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
var updateInvalid = React.useCallback(function (value) {
|
|
13295
|
-
if (timeProps) {
|
|
13296
|
-
if (timeProps.seconds) {
|
|
13297
|
-
setInvalid(value === null || timeProps && timeProps.seconds && time.length < 8 || max !== undefined && value > max || min !== undefined && value < min);
|
|
13298
|
-
} else {
|
|
13299
|
-
setInvalid(value === null || time.length < 5 || max !== undefined && value > max || min !== undefined && value < min);
|
|
13324
|
+
if (timeOptions) {
|
|
13325
|
+
if (time.length === 0) {
|
|
13326
|
+
if (timeOptions.required) {
|
|
13327
|
+
return true;
|
|
13300
13328
|
}
|
|
13301
|
-
} else {
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
}, [updateInvalid, value]);
|
|
13308
|
-
var setValue = timeProps ? function (date) {
|
|
13309
|
-
if (date === null) {
|
|
13310
|
-
_setValue(date);
|
|
13311
|
-
|
|
13312
|
-
return;
|
|
13329
|
+
} else if (!isValidTime(time, {
|
|
13330
|
+
h: 'required',
|
|
13331
|
+
m: 'required',
|
|
13332
|
+
s: timeOptions.seconds ? 'required' : 'optional'
|
|
13333
|
+
})) {
|
|
13334
|
+
return true;
|
|
13313
13335
|
}
|
|
13336
|
+
}
|
|
13314
13337
|
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13338
|
+
var date = getFullDate(value, time);
|
|
13339
|
+
return min !== undefined && dateCompare(date, min, 'lt') || max !== undefined && dateCompare(date, max, 'gt');
|
|
13340
|
+
};
|
|
13341
|
+
var getInitialCalendar = function getInitialCalendar(date, min, max) {
|
|
13342
|
+
return getCalendar(date && !isNaN(date.getTime()) && isDateBetween(date, min, max) ? date : getMiddle(min, max));
|
|
13343
|
+
};
|
|
13320
13344
|
|
|
13321
|
-
|
|
13345
|
+
var Main = React__default.forwardRef(function (props, ref) {
|
|
13346
|
+
var getDay = props.getDay,
|
|
13347
|
+
initialMonth = props.initialMonth;
|
|
13322
13348
|
|
|
13323
|
-
|
|
13324
|
-
|
|
13349
|
+
var _useState = React.useState(false),
|
|
13350
|
+
selectOpen = _useState[0],
|
|
13351
|
+
setSelectOpen = _useState[1];
|
|
13352
|
+
|
|
13353
|
+
var min = props.min ? function () {
|
|
13354
|
+
var date = new Date(props.min);
|
|
13355
|
+
date.setHours(0, 0, 0, 0);
|
|
13356
|
+
return date;
|
|
13357
|
+
}() : undefined;
|
|
13358
|
+
var max = props.max ? function () {
|
|
13359
|
+
var date = new Date(props.max);
|
|
13360
|
+
date.setHours(0, 0, 0, 0);
|
|
13361
|
+
return date;
|
|
13362
|
+
}() : undefined;
|
|
13363
|
+
|
|
13364
|
+
var _ref = props.calendar || React.useState(getInitialCalendar(initialMonth, min, max)),
|
|
13365
|
+
calendar = _ref[0],
|
|
13366
|
+
setCalendar = _ref[1];
|
|
13325
13367
|
|
|
13326
13368
|
var changeMonth = function changeMonth(add) {
|
|
13327
13369
|
setCalendar(function (prev) {
|
|
@@ -13365,86 +13407,533 @@ var Calendar = function Calendar(props) {
|
|
|
13365
13407
|
}));
|
|
13366
13408
|
};
|
|
13367
13409
|
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
}
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
}
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13410
|
+
return React__default.createElement(Container$7, {
|
|
13411
|
+
ref: ref
|
|
13412
|
+
}, props.label && React__default.createElement(LabelContainer, null, props.label), React__default.createElement(CalendarContainer, null, React__default.createElement(Header, null, React__default.createElement(MonthContainer, null, getPrev(), React__default.createElement("div", {
|
|
13413
|
+
ref: useOnClickOut(function () {
|
|
13414
|
+
return setSelectOpen(false);
|
|
13415
|
+
})
|
|
13416
|
+
}, React__default.createElement(MonthBtn, {
|
|
13417
|
+
onClick: function onClick() {
|
|
13418
|
+
return setSelectOpen(function (prev) {
|
|
13419
|
+
return !prev;
|
|
13420
|
+
});
|
|
13421
|
+
}
|
|
13422
|
+
}, months[calendar.month], " ", calendar.year, React__default.createElement(Icon, {
|
|
13423
|
+
type: 'semantic',
|
|
13424
|
+
icon: selectOpen ? 'caret up' : 'caret down',
|
|
13425
|
+
width: '14px'
|
|
13426
|
+
})), React__default.createElement(MonthPicker, {
|
|
13427
|
+
open: selectOpen,
|
|
13428
|
+
close: function close() {
|
|
13429
|
+
return setSelectOpen(false);
|
|
13430
|
+
},
|
|
13431
|
+
year: calendar.year,
|
|
13432
|
+
setValue: function setValue(year, month) {
|
|
13433
|
+
var date = new Date();
|
|
13434
|
+
date.setDate(1);
|
|
13435
|
+
date.setFullYear(year);
|
|
13436
|
+
date.setMonth(month);
|
|
13437
|
+
setCalendar(getCalendar(date));
|
|
13438
|
+
},
|
|
13439
|
+
min: min,
|
|
13440
|
+
max: max,
|
|
13441
|
+
width: '100%',
|
|
13442
|
+
maxHeight: '180px',
|
|
13443
|
+
transition: {
|
|
13444
|
+
properties: {
|
|
13445
|
+
'max-height': {}
|
|
13446
|
+
}
|
|
13447
|
+
},
|
|
13448
|
+
itemSpacing: 's3',
|
|
13449
|
+
bordered: true
|
|
13450
|
+
})), getNext()), React__default.createElement(WeekContainer, null, React__default.createElement("div", null, "D"), React__default.createElement("div", null, "S"), React__default.createElement("div", null, "T"), React__default.createElement("div", null, "Q"), React__default.createElement("div", null, "Q"), React__default.createElement("div", null, "S"), React__default.createElement("div", null, "S"))), calendar.weeks.map(function (week, index) {
|
|
13392
13451
|
return React__default.createElement(WeekContainer, {
|
|
13393
13452
|
key: index
|
|
13394
13453
|
}, week.map(function (date, index) {
|
|
13454
|
+
var details = getDay(date);
|
|
13395
13455
|
var day = date.getDate();
|
|
13396
13456
|
var month = date.getMonth();
|
|
13397
|
-
var disabled;
|
|
13398
|
-
var color;
|
|
13399
|
-
if (month !== calendar.month) disabled = true;
|
|
13457
|
+
var appearance = month !== calendar.month || max && date > max || min && date < min ? 'disabled' : details.appearance;
|
|
13400
13458
|
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
}
|
|
13459
|
+
var _ref2 = appearance === 'disabled' ? [true, undefined] : [undefined, details.onClick, details.onMouseOver, details.onMouseOut],
|
|
13460
|
+
disabled = _ref2[0],
|
|
13461
|
+
onClick = _ref2[1],
|
|
13462
|
+
onMouseOver = _ref2[2],
|
|
13463
|
+
onMouseOut = _ref2[3];
|
|
13407
13464
|
|
|
13408
|
-
var active = value && date.toLocaleDateString() === value.toLocaleDateString() ? 1 : 0;
|
|
13409
|
-
var onClick = active === 0 ? function () {
|
|
13410
|
-
return setValue(date);
|
|
13411
|
-
} : function () {
|
|
13412
|
-
return setValue(null);
|
|
13413
|
-
};
|
|
13414
13465
|
return React__default.createElement(DayContainer, {
|
|
13415
13466
|
key: index,
|
|
13416
13467
|
type: 'button',
|
|
13417
|
-
onClick:
|
|
13468
|
+
onClick: onClick,
|
|
13469
|
+
onMouseOver: onMouseOver,
|
|
13470
|
+
onMouseOut: onMouseOut,
|
|
13418
13471
|
disabled: disabled,
|
|
13419
|
-
|
|
13420
|
-
|
|
13472
|
+
appearance: appearance,
|
|
13473
|
+
today: dateCompare(new Date(), date, 'eq', false) ? 1 : 0
|
|
13421
13474
|
}, day);
|
|
13422
13475
|
}));
|
|
13423
|
-
})),
|
|
13476
|
+
})), props.children && React__default.createElement(Footer, null, props.children));
|
|
13477
|
+
});
|
|
13478
|
+
Main.displayName = 'Main';
|
|
13479
|
+
|
|
13480
|
+
var BasicCalendar = React__default.forwardRef(function (props, ref) {
|
|
13481
|
+
var containerProps = filterObject(props, ['initialMonth', 'max', 'min', 'getDay', 'calendar', 'absolute']);
|
|
13482
|
+
return 'absolute' in props ? React__default.createElement(AbsoluteContainer$1, Object.assign({
|
|
13483
|
+
axis: 'y',
|
|
13484
|
+
maxHeight: maxHeight
|
|
13485
|
+
}, containerProps, {
|
|
13486
|
+
ref: ref
|
|
13487
|
+
}), React__default.createElement(Main, Object.assign({}, props))) : React__default.createElement(Main, Object.assign({}, props));
|
|
13488
|
+
});
|
|
13489
|
+
BasicCalendar.displayName = 'BasicCalendar';
|
|
13490
|
+
|
|
13491
|
+
var _mask = function mask(v, seconds) {
|
|
13492
|
+
v = v.replace(/[^0-9\s]/g, '');
|
|
13493
|
+
|
|
13494
|
+
while (v.length > 0 && parseInt(v[0]) > 2) {
|
|
13495
|
+
v = v.substring(1);
|
|
13496
|
+
}
|
|
13497
|
+
|
|
13498
|
+
if (v.length > 1) {
|
|
13499
|
+
if (v[0] === '2') {
|
|
13500
|
+
while (v.length > 1 && parseInt(v[1]) > 3) {
|
|
13501
|
+
v = v[0] + v.substring(2);
|
|
13502
|
+
}
|
|
13503
|
+
}
|
|
13504
|
+
}
|
|
13505
|
+
|
|
13506
|
+
if (v.length > 2) {
|
|
13507
|
+
while (v.length > 2 && parseInt(v[2]) > 5) {
|
|
13508
|
+
v = v.substring(0, 2) + v.substring(3);
|
|
13509
|
+
}
|
|
13510
|
+
}
|
|
13511
|
+
|
|
13512
|
+
if (v.length > 4) {
|
|
13513
|
+
while (v.length > 4 && parseInt(v[4]) > 5) {
|
|
13514
|
+
v = v.substring(0, 4) + v.substring(5);
|
|
13515
|
+
}
|
|
13516
|
+
}
|
|
13517
|
+
|
|
13518
|
+
v = v.substring(0, seconds ? 6 : 4);
|
|
13519
|
+
if (v.length < 3) return v;else if (v.length < 5) return v.substring(0, 2) + ':' + v.substring(2);else return v.substring(0, 2) + ':' + v.substring(2, 4) + ':' + v.substring(4);
|
|
13520
|
+
};
|
|
13521
|
+
|
|
13522
|
+
var Time = React__default.forwardRef(function (props, ref) {
|
|
13523
|
+
var value = props.value,
|
|
13524
|
+
seconds = props.seconds;
|
|
13525
|
+
|
|
13526
|
+
var _onKeyDown = props.onKeyDown || function () {};
|
|
13527
|
+
|
|
13528
|
+
var setValue = props.setValue || function () {};
|
|
13529
|
+
|
|
13530
|
+
var onKeyDown = function onKeyDown(event) {
|
|
13531
|
+
var target = event.target;
|
|
13532
|
+
var todayDate = new Date();
|
|
13533
|
+
var curH = todayDate.getHours();
|
|
13534
|
+
var curM = todayDate.getMinutes();
|
|
13535
|
+
var curS = todayDate.getSeconds();
|
|
13536
|
+
var value = target.value.replace(/[^0-9\s]/g, '');
|
|
13537
|
+
var tmp = value.substring(0, 2);
|
|
13538
|
+
var h = tmp.length === 0 ? curH : parseInt(tmp.padEnd(2, '0'));
|
|
13539
|
+
tmp = value.substring(2, 4);
|
|
13540
|
+
var m = tmp.length === 0 ? curM : parseInt(tmp.padEnd(2, '0'));
|
|
13541
|
+
tmp = value.substring(4, 6);
|
|
13542
|
+
var s = tmp.length === 0 ? curS : parseInt(tmp.padEnd(2, '0'));
|
|
13543
|
+
|
|
13544
|
+
if (event.key === 'ArrowUp') {
|
|
13545
|
+
var date = new Date();
|
|
13546
|
+
date.setHours(h);
|
|
13547
|
+
date.setMinutes(m);
|
|
13548
|
+
date.setSeconds(s);
|
|
13549
|
+
|
|
13550
|
+
if (seconds) {
|
|
13551
|
+
date.setSeconds(s + 1);
|
|
13552
|
+
h = date.getHours();
|
|
13553
|
+
m = date.getMinutes();
|
|
13554
|
+
s = date.getSeconds();
|
|
13555
|
+
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':'));
|
|
13556
|
+
} else {
|
|
13557
|
+
date.setMinutes(m + 1);
|
|
13558
|
+
h = date.getHours();
|
|
13559
|
+
m = date.getMinutes();
|
|
13560
|
+
s = date.getSeconds();
|
|
13561
|
+
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':'));
|
|
13562
|
+
}
|
|
13563
|
+
} else if (event.key === 'ArrowDown') {
|
|
13564
|
+
var _date = new Date();
|
|
13565
|
+
|
|
13566
|
+
_date.setHours(h);
|
|
13567
|
+
|
|
13568
|
+
_date.setMinutes(m);
|
|
13569
|
+
|
|
13570
|
+
_date.setSeconds(s);
|
|
13571
|
+
|
|
13572
|
+
if (seconds) {
|
|
13573
|
+
_date.setSeconds(s - 1);
|
|
13574
|
+
|
|
13575
|
+
h = _date.getHours();
|
|
13576
|
+
m = _date.getMinutes();
|
|
13577
|
+
s = _date.getSeconds();
|
|
13578
|
+
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':'));
|
|
13579
|
+
} else {
|
|
13580
|
+
_date.setMinutes(m - 1);
|
|
13581
|
+
|
|
13582
|
+
h = _date.getHours();
|
|
13583
|
+
m = _date.getMinutes();
|
|
13584
|
+
s = _date.getSeconds();
|
|
13585
|
+
setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':'));
|
|
13586
|
+
}
|
|
13587
|
+
}
|
|
13588
|
+
|
|
13589
|
+
_onKeyDown(event);
|
|
13590
|
+
};
|
|
13591
|
+
|
|
13592
|
+
var placeholder = props.placeholder === undefined ? seconds ? '––:––:––' : '––:––' : props.placeholder;
|
|
13593
|
+
return React__default.createElement(Input$1, Object.assign({}, props, {
|
|
13594
|
+
type: 'text',
|
|
13595
|
+
value: _mask(value, seconds),
|
|
13596
|
+
placeholder: placeholder,
|
|
13597
|
+
mask: function mask(v) {
|
|
13598
|
+
return _mask(v, seconds);
|
|
13599
|
+
},
|
|
13600
|
+
onKeyDown: onKeyDown,
|
|
13601
|
+
ref: ref
|
|
13602
|
+
}));
|
|
13603
|
+
});
|
|
13604
|
+
Time.displayName = 'Time';
|
|
13605
|
+
|
|
13606
|
+
var getValue = function getValue(dates, min, max) {
|
|
13607
|
+
var n = [].concat(dates.filter(function (d) {
|
|
13608
|
+
return d && !isNaN(d.getTime()) && isDateBetween(d, min, max);
|
|
13609
|
+
}).sort(function (a, b) {
|
|
13610
|
+
if (dateCompare(a, b, 'eq')) return 0;
|
|
13611
|
+
return dateCompare(a, b, 'lt') ? -1 : 1;
|
|
13612
|
+
}), [null, null]);
|
|
13613
|
+
return n.slice(0, 2);
|
|
13614
|
+
};
|
|
13615
|
+
var getCalendar2 = function getCalendar2(calendar1) {
|
|
13616
|
+
var date = new Date();
|
|
13617
|
+
date.setFullYear(calendar1.year);
|
|
13618
|
+
date.setMonth(calendar1.month + 1);
|
|
13619
|
+
date.setDate(1);
|
|
13620
|
+
date.setHours(0, 0, 0, 0);
|
|
13621
|
+
return getCalendar(date);
|
|
13622
|
+
};
|
|
13623
|
+
|
|
13624
|
+
var _templateObject$g;
|
|
13625
|
+
var SubmitButton = styled__default(Button$1)(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["\n width: 105px;\n"])));
|
|
13626
|
+
|
|
13627
|
+
var _templateObject$h;
|
|
13628
|
+
var CalendarsContainer = styled__default.div(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n"])), function (_ref) {
|
|
13629
|
+
var theme = _ref.theme;
|
|
13630
|
+
return theme.spacings.s3;
|
|
13631
|
+
});
|
|
13632
|
+
|
|
13633
|
+
var Main$1 = React__default.forwardRef(function (props, ref) {
|
|
13634
|
+
var initialMonth = props.initialMonth,
|
|
13635
|
+
initialValue = props.initialValue,
|
|
13636
|
+
min = props.min,
|
|
13637
|
+
max = props.max;
|
|
13638
|
+
|
|
13639
|
+
var _ref = props.value || React.useState(getValue(initialValue || [], min, max)),
|
|
13640
|
+
value = _ref[0],
|
|
13641
|
+
setValue = _ref[1];
|
|
13642
|
+
|
|
13643
|
+
var _ref2 = props.invalid || React.useState([false, false]),
|
|
13644
|
+
invalid = _ref2[0],
|
|
13645
|
+
setInvalid = _ref2[1];
|
|
13646
|
+
|
|
13647
|
+
var _useState = React.useState(function () {
|
|
13648
|
+
return value.map(getTimeFromDate);
|
|
13649
|
+
}),
|
|
13650
|
+
time = _useState[0],
|
|
13651
|
+
setTime = _useState[1];
|
|
13652
|
+
|
|
13653
|
+
var _useState2 = React.useState(getInitialCalendar(value[0] || initialMonth, min, max)),
|
|
13654
|
+
calendar1 = _useState2[0],
|
|
13655
|
+
setCalendar1 = _useState2[1];
|
|
13656
|
+
|
|
13657
|
+
var _useState3 = React.useState(getCalendar2(calendar1)),
|
|
13658
|
+
calendar2 = _useState3[0],
|
|
13659
|
+
setCalendar2 = _useState3[1];
|
|
13660
|
+
|
|
13661
|
+
var _useState4 = React.useState(null),
|
|
13662
|
+
hoverDay = _useState4[0],
|
|
13663
|
+
setHoverDay = _useState4[1];
|
|
13664
|
+
|
|
13665
|
+
React.useEffect(function () {
|
|
13666
|
+
var timeProps = props.time === true ? [{}, {}] : props.time;
|
|
13667
|
+
setHoverDay(null);
|
|
13668
|
+
|
|
13669
|
+
if (value[0]) {
|
|
13670
|
+
var c1 = getCalendar(value[0]);
|
|
13671
|
+
setCalendar1(c1);
|
|
13672
|
+
|
|
13673
|
+
if (value[1]) {
|
|
13674
|
+
var c2 = getCalendar(value[1]);
|
|
13675
|
+
|
|
13676
|
+
if (c2.year > c1.year || c2.year === c1.year && c2.month > c1.month) {
|
|
13677
|
+
setCalendar2(c2);
|
|
13678
|
+
}
|
|
13679
|
+
}
|
|
13680
|
+
}
|
|
13681
|
+
|
|
13682
|
+
setInvalid(value.map(function (v, i) {
|
|
13683
|
+
return isInvalid(v, time[i], timeProps ? timeProps[i] : undefined, min, max);
|
|
13684
|
+
}));
|
|
13685
|
+
}, [value, time, props.time]);
|
|
13686
|
+
var onSubmit = {
|
|
13687
|
+
disabled: invalid.some(function (v) {
|
|
13688
|
+
return v;
|
|
13689
|
+
}),
|
|
13690
|
+
onClick: function onClick() {}
|
|
13691
|
+
};
|
|
13692
|
+
|
|
13693
|
+
if (props.onSubmit) {
|
|
13694
|
+
var _props$onSubmit = props.onSubmit,
|
|
13695
|
+
disabled = _props$onSubmit.disabled,
|
|
13696
|
+
onClick = _props$onSubmit.onClick;
|
|
13697
|
+
|
|
13698
|
+
if (disabled) {
|
|
13699
|
+
onSubmit.disabled = true;
|
|
13700
|
+
}
|
|
13701
|
+
|
|
13702
|
+
if (!onSubmit.disabled) {
|
|
13703
|
+
onSubmit.onClick = function () {
|
|
13704
|
+
onClick([value[0] ? getFullDate(value[0], time[0]) : null, value[1] ? getFullDate(value[1], time[1], true) : null]);
|
|
13705
|
+
};
|
|
13706
|
+
}
|
|
13707
|
+
}
|
|
13708
|
+
|
|
13709
|
+
var getDay = function getDay(day) {
|
|
13710
|
+
var onClick = function onClick() {
|
|
13711
|
+
var newValue = [].concat(value);
|
|
13712
|
+
|
|
13713
|
+
if (!newValue[0]) {
|
|
13714
|
+
newValue[0] = new Date(day);
|
|
13715
|
+
} else if (newValue[1]) {
|
|
13716
|
+
newValue[0] = new Date(day);
|
|
13717
|
+
newValue[1] = null;
|
|
13718
|
+
} else if (dateCompare(day, newValue[0], 'lt')) {
|
|
13719
|
+
newValue[1] = newValue[0];
|
|
13720
|
+
newValue[0] = new Date(day);
|
|
13721
|
+
} else {
|
|
13722
|
+
newValue[1] = new Date(day);
|
|
13723
|
+
}
|
|
13724
|
+
|
|
13725
|
+
setValue(newValue);
|
|
13726
|
+
};
|
|
13727
|
+
|
|
13728
|
+
var _ref3 = value[0] && !value[1] ? [function () {
|
|
13729
|
+
return setHoverDay(day);
|
|
13730
|
+
}, function () {
|
|
13731
|
+
return setHoverDay(null);
|
|
13732
|
+
}] : [],
|
|
13733
|
+
onMouseOver = _ref3[0],
|
|
13734
|
+
onMouseOut = _ref3[1];
|
|
13735
|
+
|
|
13736
|
+
var appearance = function () {
|
|
13737
|
+
if (value.some(function (v) {
|
|
13738
|
+
return v && dateCompare(v, day, 'eq', false);
|
|
13739
|
+
})) {
|
|
13740
|
+
return 'active';
|
|
13741
|
+
}
|
|
13742
|
+
|
|
13743
|
+
if (value[0] && value[1] && isDateBetween(day, value[0], value[1]) || value[0] && hoverDay && (isDateBetween(day, value[0], hoverDay) || isDateBetween(day, hoverDay, value[0]))) {
|
|
13744
|
+
return 'highlight';
|
|
13745
|
+
}
|
|
13746
|
+
|
|
13747
|
+
return undefined;
|
|
13748
|
+
}();
|
|
13749
|
+
|
|
13750
|
+
return {
|
|
13751
|
+
appearance: appearance,
|
|
13752
|
+
onClick: onClick,
|
|
13753
|
+
onMouseOver: onMouseOver,
|
|
13754
|
+
onMouseOut: onMouseOut
|
|
13755
|
+
};
|
|
13756
|
+
};
|
|
13757
|
+
|
|
13758
|
+
var calendarProps = filterObject(props, ['initialValue', 'value', 'time', 'onSubmit', 'invalid', 'initialMonth', 'max', 'min']);
|
|
13759
|
+
var middle = new Date();
|
|
13760
|
+
middle.setFullYear(calendar1.year);
|
|
13761
|
+
middle.setMonth(calendar1.month + 1);
|
|
13762
|
+
middle.setDate(1);
|
|
13763
|
+
middle.setHours(0, 0, 0, 0);
|
|
13764
|
+
var inputs = props.time ? (props.time === true ? [{}, {}] : props.time).map(function (timeProps, index) {
|
|
13765
|
+
var width = timeProps.seconds ? 'withSeconds' : 'withoutSeconds';
|
|
13766
|
+
return React__default.createElement(Time, Object.assign({
|
|
13767
|
+
key: index
|
|
13768
|
+
}, timeProps, {
|
|
13769
|
+
type: 'time',
|
|
13770
|
+
value: time[index],
|
|
13771
|
+
setValue: function setValue(v) {
|
|
13772
|
+
return setTime(function (prev) {
|
|
13773
|
+
var n = [].concat(prev);
|
|
13774
|
+
n[index] = v;
|
|
13775
|
+
return n;
|
|
13776
|
+
});
|
|
13777
|
+
},
|
|
13778
|
+
invalid: time[index] !== '' && value[index] !== null && invalid[index],
|
|
13779
|
+
width: inputTimeWidth[width]
|
|
13780
|
+
}));
|
|
13781
|
+
}) : [];
|
|
13782
|
+
return React__default.createElement(CalendarsContainer, null, React__default.createElement(BasicCalendar, Object.assign({}, calendarProps, {
|
|
13783
|
+
getDay: getDay
|
|
13784
|
+
}, {
|
|
13785
|
+
ref: ref,
|
|
13786
|
+
label: React__default.createElement(React__default.Fragment, null, React__default.createElement("b", null, "Inicio:"), ' ', value[0] ? dateToIsoString(value[0]) : '––/––/––––'),
|
|
13787
|
+
calendar: [calendar1, function (v) {
|
|
13788
|
+
setCalendar1(function (prev) {
|
|
13789
|
+
var c1 = typeof v === 'function' ? v(prev) : v;
|
|
13790
|
+
setCalendar2(getCalendar2(c1));
|
|
13791
|
+
return c1;
|
|
13792
|
+
});
|
|
13793
|
+
}],
|
|
13794
|
+
min: min,
|
|
13795
|
+
max: max && dateCompare(max, middle, 'lt') ? max : middle
|
|
13796
|
+
}), inputs[0]), React__default.createElement(BasicCalendar, Object.assign({}, calendarProps, {
|
|
13797
|
+
getDay: getDay
|
|
13798
|
+
}, {
|
|
13799
|
+
ref: ref,
|
|
13800
|
+
label: React__default.createElement(React__default.Fragment, null, React__default.createElement("b", null, "Fim:"), " ", value[1] ? dateToIsoString(value[1]) : '––/––/––––'),
|
|
13801
|
+
calendar: [calendar2, setCalendar2],
|
|
13802
|
+
min: min && dateCompare(min, middle, 'gt') ? min : middle,
|
|
13803
|
+
max: max
|
|
13804
|
+
}), inputs[1], props.onSubmit && React__default.createElement(SubmitButton, Object.assign({}, onSubmit, {
|
|
13805
|
+
type: 'button',
|
|
13806
|
+
content: 'Aplicar'
|
|
13807
|
+
}))));
|
|
13808
|
+
});
|
|
13809
|
+
Main$1.displayName = 'Main';
|
|
13810
|
+
|
|
13811
|
+
var CalendarInterval = React__default.forwardRef(function (props, ref) {
|
|
13812
|
+
var containerProps = filterObject(props, ['initialMonth', 'max', 'min', 'initialValue', 'value', 'time', 'onSubmit', 'invalid', 'absolute']);
|
|
13813
|
+
var mainProps = filterObject(props, ['absolute']);
|
|
13814
|
+
return props.absolute ? React__default.createElement(AbsoluteContainer, Object.assign({
|
|
13815
|
+
axis: 'y',
|
|
13816
|
+
maxHeight: maxHeight
|
|
13817
|
+
}, containerProps, {
|
|
13818
|
+
ref: ref
|
|
13819
|
+
}), React__default.createElement(Main$1, Object.assign({}, mainProps))) : React__default.createElement(Main$1, Object.assign({}, mainProps));
|
|
13820
|
+
});
|
|
13821
|
+
CalendarInterval.displayName = 'CalendarInterval';
|
|
13822
|
+
|
|
13823
|
+
var SingleCalendar = React__default.forwardRef(function (props, ref) {
|
|
13824
|
+
var initialValue = props.initialValue,
|
|
13825
|
+
min = props.min,
|
|
13826
|
+
max = props.max;
|
|
13827
|
+
var timeProps = props.time === true ? {} : props.time;
|
|
13828
|
+
|
|
13829
|
+
var _ref = props.value || React.useState(initialValue && !isNaN(initialValue.getTime()) && isDateBetween(initialValue, min, max) ? initialValue : null),
|
|
13830
|
+
value = _ref[0],
|
|
13831
|
+
setValue = _ref[1];
|
|
13832
|
+
|
|
13833
|
+
var _ref2 = props.invalid || React.useState(false),
|
|
13834
|
+
invalid = _ref2[0],
|
|
13835
|
+
setInvalid = _ref2[1];
|
|
13836
|
+
|
|
13837
|
+
var _useState = React.useState(getTimeFromDate(value)),
|
|
13838
|
+
time = _useState[0],
|
|
13839
|
+
setTime = _useState[1];
|
|
13840
|
+
|
|
13841
|
+
React.useEffect(function () {
|
|
13842
|
+
setInvalid(isInvalid(value, time, timeProps, min, max));
|
|
13843
|
+
}, [value, time, timeProps]);
|
|
13844
|
+
var onSubmit = {
|
|
13845
|
+
disabled: invalid,
|
|
13846
|
+
onClick: function onClick() {}
|
|
13847
|
+
};
|
|
13848
|
+
|
|
13849
|
+
if (props.onSubmit) {
|
|
13850
|
+
var _props$onSubmit = props.onSubmit,
|
|
13851
|
+
disabled = _props$onSubmit.disabled,
|
|
13852
|
+
onClick = _props$onSubmit.onClick;
|
|
13853
|
+
|
|
13854
|
+
if (disabled) {
|
|
13855
|
+
onSubmit.disabled = true;
|
|
13856
|
+
}
|
|
13857
|
+
|
|
13858
|
+
onSubmit.onClick = function () {
|
|
13859
|
+
onClick(value ? getFullDate(value, time) : null);
|
|
13860
|
+
};
|
|
13861
|
+
}
|
|
13862
|
+
|
|
13863
|
+
var getDay = function getDay(day) {
|
|
13864
|
+
var active = value && dateCompare(value, day, 'eq', false);
|
|
13865
|
+
var onClick = active ? function () {
|
|
13866
|
+
return setValue(null);
|
|
13867
|
+
} : function () {
|
|
13868
|
+
return setValue(new Date(day));
|
|
13869
|
+
};
|
|
13870
|
+
return {
|
|
13871
|
+
appearance: active ? 'active' : undefined,
|
|
13872
|
+
onClick: onClick
|
|
13873
|
+
};
|
|
13874
|
+
};
|
|
13875
|
+
|
|
13876
|
+
var calendarProps = filterObject(props, ['value', 'time', 'onSubmit', 'invalid']);
|
|
13877
|
+
return React__default.createElement(BasicCalendar, Object.assign({}, calendarProps, {
|
|
13878
|
+
getDay: getDay
|
|
13879
|
+
}, {
|
|
13880
|
+
ref: ref,
|
|
13881
|
+
initialMonth: props.initialValue || props.initialMonth
|
|
13882
|
+
}), timeProps && React__default.createElement(Time, Object.assign({}, timeProps, {
|
|
13424
13883
|
type: 'time',
|
|
13425
13884
|
value: time,
|
|
13426
13885
|
setValue: setTime,
|
|
13427
|
-
invalid: time
|
|
13428
|
-
width: timeProps.seconds ? '
|
|
13429
|
-
}))
|
|
13430
|
-
onClick: function onClick() {
|
|
13431
|
-
return onSubmit.onClick(value);
|
|
13432
|
-
},
|
|
13433
|
-
disabled: onSubmit.disabled,
|
|
13886
|
+
invalid: time !== '' && value !== null && invalid,
|
|
13887
|
+
width: inputTimeWidth[timeProps.seconds ? 'withSeconds' : 'withoutSeconds']
|
|
13888
|
+
})), props.onSubmit && React__default.createElement(SubmitButton, Object.assign({}, onSubmit, {
|
|
13434
13889
|
type: 'button',
|
|
13435
13890
|
content: 'Aplicar'
|
|
13436
|
-
}))
|
|
13437
|
-
|
|
13438
|
-
|
|
13891
|
+
})));
|
|
13892
|
+
});
|
|
13893
|
+
SingleCalendar.displayName = 'SingleCalendar';
|
|
13894
|
+
|
|
13895
|
+
var CalendarSingle = React__default.forwardRef(function (props, ref) {
|
|
13896
|
+
var containerProps = filterObject(props, ['initialMonth', 'max', 'min', 'initialValue', 'value', 'time', 'onSubmit', 'invalid', 'absolute']);
|
|
13897
|
+
var mainProps = filterObject(props, ['absolute']);
|
|
13898
|
+
return props.absolute ? React__default.createElement(AbsoluteContainer, Object.assign({
|
|
13439
13899
|
axis: 'y',
|
|
13440
|
-
maxHeight:
|
|
13441
|
-
},
|
|
13442
|
-
|
|
13900
|
+
maxHeight: maxHeight
|
|
13901
|
+
}, containerProps, {
|
|
13902
|
+
ref: ref
|
|
13903
|
+
}), React__default.createElement(SingleCalendar, Object.assign({}, mainProps))) : React__default.createElement(SingleCalendar, Object.assign({}, mainProps));
|
|
13904
|
+
});
|
|
13905
|
+
CalendarSingle.displayName = 'CalendarSingle';
|
|
13906
|
+
|
|
13907
|
+
var Calendar = React__default.forwardRef(function (props, ref) {
|
|
13908
|
+
switch (props.type) {
|
|
13909
|
+
case 'basic':
|
|
13910
|
+
{
|
|
13911
|
+
return React__default.createElement(BasicCalendar, Object.assign({}, props, {
|
|
13912
|
+
ref: ref
|
|
13913
|
+
}));
|
|
13914
|
+
}
|
|
13915
|
+
|
|
13916
|
+
case 'interval':
|
|
13917
|
+
{
|
|
13918
|
+
return React__default.createElement(CalendarInterval, Object.assign({}, props, {
|
|
13919
|
+
ref: ref
|
|
13920
|
+
}));
|
|
13921
|
+
}
|
|
13922
|
+
|
|
13923
|
+
case 'single':
|
|
13924
|
+
{
|
|
13925
|
+
return React__default.createElement(CalendarSingle, Object.assign({}, props, {
|
|
13926
|
+
ref: ref
|
|
13927
|
+
}));
|
|
13928
|
+
}
|
|
13929
|
+
}
|
|
13930
|
+
});
|
|
13931
|
+
Calendar.displayName = 'Input';
|
|
13443
13932
|
|
|
13444
13933
|
var JSDate = Date;
|
|
13445
13934
|
|
|
13446
|
-
var _templateObject$
|
|
13447
|
-
var RelativeContainer$1 = styled__default.div(_templateObject$
|
|
13935
|
+
var _templateObject$i;
|
|
13936
|
+
var RelativeContainer$1 = styled__default.div(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
13448
13937
|
|
|
13449
13938
|
var isLeapYear = function isLeapYear(year) {
|
|
13450
13939
|
if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
|
|
@@ -13574,8 +14063,10 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
|
|
|
13574
14063
|
icon: icon,
|
|
13575
14064
|
ref: ref
|
|
13576
14065
|
})), React__default.createElement(Calendar, {
|
|
14066
|
+
type: 'single',
|
|
14067
|
+
absolute: true,
|
|
13577
14068
|
open: open,
|
|
13578
|
-
|
|
14069
|
+
initialValue: value ? isoStringToDate(value) : undefined,
|
|
13579
14070
|
onSubmit: {
|
|
13580
14071
|
onClick: function onClick(date) {
|
|
13581
14072
|
if (!date) return;
|
|
@@ -13598,10 +14089,10 @@ var useContext = function useContext() {
|
|
|
13598
14089
|
return React__default.useContext(Provider);
|
|
13599
14090
|
};
|
|
13600
14091
|
|
|
13601
|
-
var _templateObject$
|
|
13602
|
-
var HeaderContainer = styled__default.div(_templateObject$
|
|
14092
|
+
var _templateObject$j, _templateObject2$e;
|
|
14093
|
+
var HeaderContainer = styled__default.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
13603
14094
|
var theme = _ref.theme;
|
|
13604
|
-
return styled.css(_templateObject2$
|
|
14095
|
+
return styled.css(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 0.75)\n ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
13605
14096
|
});
|
|
13606
14097
|
|
|
13607
14098
|
var Header$1 = function Header() {
|
|
@@ -13728,12 +14219,12 @@ var Footer$1 = function Footer() {
|
|
|
13728
14219
|
});
|
|
13729
14220
|
};
|
|
13730
14221
|
|
|
13731
|
-
var _templateObject$
|
|
13732
|
-
var HeaderContainer$1 = styled__default.div(_templateObject$
|
|
14222
|
+
var _templateObject$k, _templateObject2$f, _templateObject3$e;
|
|
14223
|
+
var HeaderContainer$1 = styled__default.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
13733
14224
|
var theme = _ref.theme;
|
|
13734
|
-
return styled.css(_templateObject2$
|
|
14225
|
+
return styled.css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 0.75)\n ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
13735
14226
|
});
|
|
13736
|
-
var SelectAllContainer = styled__default.div(_templateObject3$
|
|
14227
|
+
var SelectAllContainer = styled__default.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
|
|
13737
14228
|
var theme = _ref2.theme;
|
|
13738
14229
|
return theme.spacings.s1;
|
|
13739
14230
|
});
|
|
@@ -13923,8 +14414,8 @@ var useSelectMultiple = function useSelectMultiple(props) {
|
|
|
13923
14414
|
return returnData;
|
|
13924
14415
|
};
|
|
13925
14416
|
|
|
13926
|
-
var _templateObject$
|
|
13927
|
-
var RelativeContainer$2 = styled__default.div(_templateObject$
|
|
14417
|
+
var _templateObject$l;
|
|
14418
|
+
var RelativeContainer$2 = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
13928
14419
|
|
|
13929
14420
|
var Select = React__default.forwardRef(function (props, ref) {
|
|
13930
14421
|
var position = props.position,
|
|
@@ -14153,7 +14644,7 @@ Password.displayName = 'Password';
|
|
|
14153
14644
|
|
|
14154
14645
|
var flags = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAFf4AAAAPCAMAAAAsJ+pWAAADAFBMVEUAAAB/U1dILHgLN5L////OECYAAAAAJH3tKDj90hXSDjT/AAABNpb/zQAAK34AI5XQFCvvKixCit7eKQ/+3wPCJy0BlUMBn0rQJToCd2DuGiPkHR52rtwgRYzUKx3pDS4AYTPGDDDjBxnCAQPpAA4DAowBbML6+voBKGXbAgcDUqYZigICeDUAaU3/1QDbEh7cIx8AHaXlZG7NCR8BMKQGMIQDakCvFCvaJRr98/GOosMAbTLosrgPrioANqvx9vZXc7MAccsCaKgDn18gtTkkSqUAI4ICot4BrspNYaBLrNf3eH775ORzq98ormartMzWER7zogbFDhufMzwBhlHfMzkRDAr83kgBeUEAgTwAmzoLRq/IND0GiTDCBSXdTSECgABYWVnsi5QHP4QBZQBjtOXz0tXkaBjl7PX+wwHDZnXIzuBIl9DcEjn/zyKtxeL5r7ABPxo5fc4ypjIgXDg6gzsAf/8BHJAFlWeMGjn3PjXQAgBzhrb6fAHk7ORZUoHvzBmq0bj96QNmzf/JsBkCl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ep0L5qEMZfQf49Tsh1/h1AUDT9u4aa/kXC6V8Ck9KZYL662LufM8X5lx5OkPKQIMy/HE7/gh328i8o4gcuf+CH+QZUdMTppovwJs6/oNZg/s0O6aO/kXKIvy7NvyXFxSW5zL+IkRzLvyQv/yrLvwRmYfcFJMi/Uh1kiGE5wOYnA/c+iPMv1t/0/Au8/JuN1gWjiQktGdq0KdL5V0xB/qXlPv+ify//AiP/cjz/pnl7PSn/Dh5sO//amv4FFbFYBX7kXw1MZ7ElVYKXf02PCe7Mv37X5F/7+GOSvecLssq/Kbz86+VfpHL6N1pTM5vnX343mo/5d3UfQOXf4p39++VL/h28Ns6X1n/dl39jsQ4IFkDI5V/aVjiv33qjTa++bQEAt/WWDaKgs738S/of8y/FPdO/kHyRa/LvXFj76878S3Ey/7ZbvGyZS/NvDEd/nc6/7QnS+RfYzr+CzTJq8i8S518CY/Cab1r1WKi/4vzrXmT+9XAS+dcj/100x0KJvQ/I1tdo5vkb6PzrITmdf2m7wEs8OObxAHc9vLONzr8eT0644B+Axz1E+df5c/rPZ02tL5ibdUj3gHk8ih+4pkz+nuDTvx5PXjPzb96ec5D5N6d+AU9U34jqcCCnAAAAAElFTkSuQmCC';
|
|
14155
14646
|
|
|
14156
|
-
var _templateObject$
|
|
14647
|
+
var _templateObject$m, _templateObject2$g;
|
|
14157
14648
|
var coordinates = {
|
|
14158
14649
|
ar: {
|
|
14159
14650
|
s1: '0px 0px',
|
|
@@ -14228,12 +14719,12 @@ var coordinates = {
|
|
|
14228
14719
|
s6: '0px 0px'
|
|
14229
14720
|
}
|
|
14230
14721
|
};
|
|
14231
|
-
var Flag = styled__default.div(_templateObject$
|
|
14722
|
+
var Flag = styled__default.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n background-image: url(", ");\n background-size: auto 100%;\n\n ", "\n"])), flags, function (_ref) {
|
|
14232
14723
|
var iso = _ref.iso,
|
|
14233
14724
|
width = _ref.width,
|
|
14234
14725
|
theme = _ref.theme;
|
|
14235
14726
|
width = width || 's4';
|
|
14236
|
-
return styled.css(_templateObject2$
|
|
14727
|
+
return styled.css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n background-position: ", ";\n width: ", ";\n height: calc(", " / 1.4);\n "])), coordinates[iso][width], theme.spacings[width], theme.spacings[width]);
|
|
14237
14728
|
});
|
|
14238
14729
|
|
|
14239
14730
|
var countries = {
|
|
@@ -14337,10 +14828,10 @@ var countries = {
|
|
|
14337
14828
|
}
|
|
14338
14829
|
};
|
|
14339
14830
|
|
|
14340
|
-
var _templateObject$
|
|
14341
|
-
var IconContainer$1 = styled__default.div(_templateObject$
|
|
14342
|
-
var RelativeContainer$3 = styled__default.div(_templateObject2$
|
|
14343
|
-
var Label$2 = styled__default.div(_templateObject3$
|
|
14831
|
+
var _templateObject$n, _templateObject2$h, _templateObject3$f;
|
|
14832
|
+
var IconContainer$1 = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n > i.icon {\n margin-top: -1px;\n }\n"])));
|
|
14833
|
+
var RelativeContainer$3 = styled__default.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
14834
|
+
var Label$2 = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n display: flex;\n gap: ", ";\n\n > span {\n color: ", ";\n }\n"])), function (_ref) {
|
|
14344
14835
|
var theme = _ref.theme;
|
|
14345
14836
|
return theme.useTypography('p');
|
|
14346
14837
|
}, function (_ref2) {
|
|
@@ -14515,39 +15006,39 @@ var Phone = Object.assign(Component, {
|
|
|
14515
15006
|
getPhoneDetails: getPhoneDetails
|
|
14516
15007
|
});
|
|
14517
15008
|
|
|
14518
|
-
var _templateObject$
|
|
14519
|
-
var RelativeContainer$4 = styled__default.div(_templateObject$
|
|
14520
|
-
var LabelContainer = styled__default.div(_templateObject2$
|
|
15009
|
+
var _templateObject$o, _templateObject2$i, _templateObject3$g, _templateObject4$d, _templateObject5$c, _templateObject6$a, _templateObject7$8, _templateObject8$6, _templateObject9$6;
|
|
15010
|
+
var RelativeContainer$4 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
|
|
15011
|
+
var LabelContainer$1 = styled__default.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
|
|
14521
15012
|
var theme = _ref.theme;
|
|
14522
15013
|
return theme.useTypography('p');
|
|
14523
15014
|
}, function (_ref2) {
|
|
14524
15015
|
var theme = _ref2.theme;
|
|
14525
15016
|
return theme.spacings.s3;
|
|
14526
15017
|
});
|
|
14527
|
-
var Container$8 = styled__default.div(_templateObject3$
|
|
15018
|
+
var Container$8 = styled__default.div(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-radius: 4px;\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
14528
15019
|
var theme = _ref3.theme,
|
|
14529
15020
|
iconWidth = _ref3.iconWidth,
|
|
14530
15021
|
paddingless = _ref3.paddingless;
|
|
14531
15022
|
|
|
14532
15023
|
if (paddingless) {
|
|
14533
|
-
return styled.css(_templateObject4$
|
|
15024
|
+
return styled.css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n height: 19px;\n "])), iconWidth);
|
|
14534
15025
|
}
|
|
14535
15026
|
|
|
14536
|
-
return styled.css(_templateObject5$
|
|
15027
|
+
return styled.css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", " - ", ");\n height: 33px;\n padding: ", " 0 ", " ", ";\n "])), iconWidth, theme.spacings.s3, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
14537
15028
|
}, function (_ref4) {
|
|
14538
15029
|
var invalid = _ref4.invalid,
|
|
14539
15030
|
theme = _ref4.theme;
|
|
14540
15031
|
if (!invalid) return;
|
|
14541
|
-
return styled.css(_templateObject6$
|
|
15032
|
+
return styled.css(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
14542
15033
|
}, function (_ref5) {
|
|
14543
15034
|
var disabled = _ref5.disabled;
|
|
14544
15035
|
if (!disabled) return;
|
|
14545
|
-
return styled.css(_templateObject7$
|
|
15036
|
+
return styled.css(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
14546
15037
|
});
|
|
14547
|
-
var Button$3 = styled__default.button(_templateObject8$
|
|
15038
|
+
var Button$3 = styled__default.button(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref6) {
|
|
14548
15039
|
var onClick = _ref6.onClick;
|
|
14549
15040
|
if (!onClick) return;
|
|
14550
|
-
return styled.css(_templateObject9$
|
|
15041
|
+
return styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
14551
15042
|
});
|
|
14552
15043
|
|
|
14553
15044
|
var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
@@ -14567,7 +15058,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
14567
15058
|
var date = isoStringToDate(value);
|
|
14568
15059
|
|
|
14569
15060
|
if (!date) {
|
|
14570
|
-
setValue(dateToIsoString(
|
|
15061
|
+
setValue(dateToIsoString(getMiddle(min, max)));
|
|
14571
15062
|
}
|
|
14572
15063
|
}, [value]);
|
|
14573
15064
|
|
|
@@ -14627,7 +15118,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
14627
15118
|
icon: 'chevron_left',
|
|
14628
15119
|
color: props.invalid ? 'warningRed' : 'grey',
|
|
14629
15120
|
strokeWidth: '3px'
|
|
14630
|
-
})), React__default.createElement(LabelContainer, null, today === value ? 'Hoje' : value), React__default.createElement(Button$3, {
|
|
15121
|
+
})), React__default.createElement(LabelContainer$1, null, today === value ? 'Hoje' : value), React__default.createElement(Button$3, {
|
|
14631
15122
|
type: 'button',
|
|
14632
15123
|
onClick: disabled ? undefined : onAdd,
|
|
14633
15124
|
disabled: disabled || function () {
|
|
@@ -14642,8 +15133,10 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
14642
15133
|
color: props.invalid ? 'warningRed' : 'grey',
|
|
14643
15134
|
strokeWidth: '3px'
|
|
14644
15135
|
}))), React__default.createElement(Calendar, {
|
|
15136
|
+
type: 'single',
|
|
15137
|
+
absolute: true,
|
|
14645
15138
|
open: open,
|
|
14646
|
-
|
|
15139
|
+
initialValue: value ? isoStringToDate(value) : undefined,
|
|
14647
15140
|
onSubmit: {
|
|
14648
15141
|
onClick: function onClick(date) {
|
|
14649
15142
|
if (!date) return;
|
|
@@ -14660,31 +15153,31 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
14660
15153
|
});
|
|
14661
15154
|
DatePicker.displayName = 'DatePicker';
|
|
14662
15155
|
|
|
14663
|
-
var _templateObject$
|
|
14664
|
-
var LabelContainer$
|
|
15156
|
+
var _templateObject$p, _templateObject2$j, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$b, _templateObject7$9;
|
|
15157
|
+
var LabelContainer$2 = styled__default.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
14665
15158
|
var theme = _ref.theme;
|
|
14666
15159
|
return theme.useTypography('p');
|
|
14667
15160
|
});
|
|
14668
|
-
var Label$3 = styled__default.label(_templateObject2$
|
|
15161
|
+
var Label$3 = styled__default.label(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref2) {
|
|
14669
15162
|
var theme = _ref2.theme;
|
|
14670
15163
|
return theme.spacings.s1;
|
|
14671
15164
|
}, function (_ref3) {
|
|
14672
15165
|
var disabled = _ref3.disabled;
|
|
14673
15166
|
|
|
14674
15167
|
if (!disabled) {
|
|
14675
|
-
return styled.css(_templateObject3$
|
|
15168
|
+
return styled.css(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
14676
15169
|
}
|
|
14677
15170
|
|
|
14678
|
-
return styled.css(_templateObject4$
|
|
15171
|
+
return styled.css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
14679
15172
|
}, function (_ref4) {
|
|
14680
15173
|
var required = _ref4.required;
|
|
14681
15174
|
if (!required) return;
|
|
14682
|
-
return styled.css(_templateObject5$
|
|
15175
|
+
return styled.css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: '*';\n }\n }\n "])), LabelContainer$2);
|
|
14683
15176
|
}, function (_ref5) {
|
|
14684
15177
|
var invalid = _ref5.invalid;
|
|
14685
15178
|
|
|
14686
15179
|
if (!invalid) {
|
|
14687
|
-
return styled.css(_templateObject6$
|
|
15180
|
+
return styled.css(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n > span:before {\n border-color: ", ";\n }\n > input:checked + span {\n background-color: ", ";\n }\n "])), function (_ref6) {
|
|
14688
15181
|
var theme = _ref6.theme;
|
|
14689
15182
|
return theme.colors.lightGrey;
|
|
14690
15183
|
}, function (_ref7) {
|
|
@@ -14693,7 +15186,7 @@ var Label$3 = styled__default.label(_templateObject2$i || (_templateObject2$i =
|
|
|
14693
15186
|
});
|
|
14694
15187
|
}
|
|
14695
15188
|
|
|
14696
|
-
return styled.css(_templateObject7$
|
|
15189
|
+
return styled.css(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose(["\n > span:before {\n border-color: ", ";\n }\n > input:checked + span {\n background-color: ", ";\n }\n "])), function (_ref8) {
|
|
14697
15190
|
var theme = _ref8.theme;
|
|
14698
15191
|
return theme.colors.warningRed;
|
|
14699
15192
|
}, function (_ref9) {
|
|
@@ -14735,11 +15228,11 @@ var Switch = function Switch(props) {
|
|
|
14735
15228
|
invalid: invalid ? 1 : 0
|
|
14736
15229
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
14737
15230
|
type: 'checkbox'
|
|
14738
|
-
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$
|
|
15231
|
+
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$2, null, label));
|
|
14739
15232
|
};
|
|
14740
15233
|
|
|
14741
|
-
var _templateObject$
|
|
14742
|
-
var bullet = styled.css(_templateObject$
|
|
15234
|
+
var _templateObject$q, _templateObject2$k, _templateObject3$i, _templateObject4$f, _templateObject5$e, _templateObject6$c, _templateObject7$a, _templateObject8$7, _templateObject9$7, _templateObject10$4, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$1, _templateObject16;
|
|
15235
|
+
var bullet = styled.css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
|
|
14743
15236
|
var theme = _ref.theme;
|
|
14744
15237
|
return theme.spacings.s4;
|
|
14745
15238
|
}, function (_ref2) {
|
|
@@ -14752,8 +15245,8 @@ var bullet = styled.css(_templateObject$n || (_templateObject$n = _taggedTemplat
|
|
|
14752
15245
|
var theme = _ref4.theme;
|
|
14753
15246
|
return theme.getColor('black', 10);
|
|
14754
15247
|
});
|
|
14755
|
-
var Input$2 = styled__default.input(_templateObject2$
|
|
14756
|
-
var Label$4 = styled__default.label(_templateObject3$
|
|
15248
|
+
var Input$2 = styled__default.input(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: 100%;\n height: 10px;\n background-color: transparent;\n outline: none;\n position: relative;\n z-index: 3;\n margin: 0;\n\n :not(:disabled) {\n cursor: pointer;\n }\n\n /** firefox */\n ::-moz-range-thumb {\n ", "\n }\n /** ie */\n ::-ms-thumb {\n ", "\n }\n /** chrome */\n ::-webkit-slider-thumb {\n ", "\n }\n"])), bullet, bullet, bullet);
|
|
15249
|
+
var Label$4 = styled__default.label(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
|
|
14757
15250
|
var theme = _ref5.theme;
|
|
14758
15251
|
return theme.useTypography('p');
|
|
14759
15252
|
}, function (_ref6) {
|
|
@@ -14762,36 +15255,36 @@ var Label$4 = styled__default.label(_templateObject3$h || (_templateObject3$h =
|
|
|
14762
15255
|
}, function (_ref7) {
|
|
14763
15256
|
var disabled = _ref7.disabled;
|
|
14764
15257
|
if (!disabled) return;
|
|
14765
|
-
return styled.css(_templateObject4$
|
|
15258
|
+
return styled.css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
14766
15259
|
}, function (_ref8) {
|
|
14767
15260
|
var theme = _ref8.theme;
|
|
14768
15261
|
return theme.spacings.s1;
|
|
14769
15262
|
}, function (_ref9) {
|
|
14770
15263
|
var required = _ref9.required;
|
|
14771
15264
|
if (!required) return;
|
|
14772
|
-
return styled.css(_templateObject5$
|
|
15265
|
+
return styled.css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
14773
15266
|
});
|
|
14774
|
-
var InputContainer = styled__default.div(_templateObject6$
|
|
15267
|
+
var InputContainer = styled__default.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
|
|
14775
15268
|
var theme = _ref10.theme,
|
|
14776
15269
|
invalid = _ref10.invalid;
|
|
14777
15270
|
|
|
14778
15271
|
if (!invalid) {
|
|
14779
|
-
return styled.css(_templateObject7$
|
|
15272
|
+
return styled.css(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.blue, Input$2, theme.colors.lightestGrey, theme.colors.lightestGrey, theme.colors.lightestGrey);
|
|
14780
15273
|
}
|
|
14781
15274
|
|
|
14782
|
-
return styled.css(_templateObject8$
|
|
15275
|
+
return styled.css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
|
|
14783
15276
|
});
|
|
14784
|
-
var MinMaxLabelContainer = styled__default.div(_templateObject9$
|
|
15277
|
+
var MinMaxLabelContainer = styled__default.div(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
|
|
14785
15278
|
var LabelsContainer = styled__default.div(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
|
|
14786
15279
|
var position = _ref11.position;
|
|
14787
15280
|
|
|
14788
15281
|
if (position === 'bottom') {
|
|
14789
|
-
return styled.css(_templateObject11$
|
|
15282
|
+
return styled.css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10.5px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer, Marker, MinMaxLabelContainer);
|
|
14790
15283
|
}
|
|
14791
15284
|
|
|
14792
|
-
return styled.css(_templateObject12$
|
|
15285
|
+
return styled.css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 8px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer, Marker, MinMaxLabelContainer);
|
|
14793
15286
|
});
|
|
14794
|
-
var SelectedArea = styled__default.div(_templateObject13$
|
|
15287
|
+
var SelectedArea = styled__default.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n height: 3px;\n width: 100%;\n position: absolute;\n bottom: calc(50% - 2px);\n left: 0;\n display: flex;\n z-index: 1;\n\n > span {\n width: ", "%;\n display: block;\n box-sizing: border-box;\n height: 100%;\n }\n"])), function (_ref12) {
|
|
14795
15288
|
var theme = _ref12.theme;
|
|
14796
15289
|
return theme.getColor('greyishBlue', 10);
|
|
14797
15290
|
}, function (_ref13) {
|
|
@@ -14957,31 +15450,31 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
14957
15450
|
});
|
|
14958
15451
|
Range.displayName = 'input';
|
|
14959
15452
|
|
|
14960
|
-
var _templateObject$
|
|
14961
|
-
var LabelContainer$
|
|
15453
|
+
var _templateObject$r, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b;
|
|
15454
|
+
var LabelContainer$3 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
14962
15455
|
var theme = _ref.theme;
|
|
14963
15456
|
return theme.useTypography('p');
|
|
14964
15457
|
});
|
|
14965
|
-
var Label$5 = styled__default.label(_templateObject2$
|
|
15458
|
+
var Label$5 = styled__default.label(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n\n ", "\n\n ", "\n\n", "\n\n > input {\n height: 0;\n width: 0;\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: none;\n }\n\n > span {\n height: 17px;\n width: 17px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n position: relative;\n transition-property: border-color;\n transition-duration: 0.5s;\n transition-timing-function: ease-in-out;\n :before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n height: 0;\n width: 0;\n border-radius: 100%;\n transition-property: top, left, width, height, background-color;\n transition-duration: 0.5s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n }\n > input:checked + span {\n :before {\n top: calc(50% - 4.5px);\n left: calc(50% - 4.5px);\n height: 9px;\n width: 9px;\n }\n }\n"])), function (_ref2) {
|
|
14966
15459
|
var theme = _ref2.theme;
|
|
14967
15460
|
return theme.spacings.s1;
|
|
14968
15461
|
}, function (_ref3) {
|
|
14969
15462
|
var disabled = _ref3.disabled;
|
|
14970
15463
|
|
|
14971
15464
|
if (!disabled) {
|
|
14972
|
-
return styled.css(_templateObject3$
|
|
15465
|
+
return styled.css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
14973
15466
|
}
|
|
14974
15467
|
|
|
14975
|
-
return styled.css(_templateObject4$
|
|
15468
|
+
return styled.css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
14976
15469
|
}, function (_ref4) {
|
|
14977
15470
|
var required = _ref4.required;
|
|
14978
15471
|
if (!required) return;
|
|
14979
|
-
return styled.css(_templateObject5$
|
|
15472
|
+
return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$3);
|
|
14980
15473
|
}, function (_ref5) {
|
|
14981
15474
|
var invalid = _ref5.invalid;
|
|
14982
15475
|
|
|
14983
15476
|
if (!invalid) {
|
|
14984
|
-
return styled.css(_templateObject6$
|
|
15477
|
+
return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n > span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n "])), function (_ref6) {
|
|
14985
15478
|
var theme = _ref6.theme;
|
|
14986
15479
|
return theme.colors.blue;
|
|
14987
15480
|
}, function (_ref7) {
|
|
@@ -14990,7 +15483,7 @@ var Label$5 = styled__default.label(_templateObject2$k || (_templateObject2$k =
|
|
|
14990
15483
|
});
|
|
14991
15484
|
}
|
|
14992
15485
|
|
|
14993
|
-
return styled.css(_templateObject7$
|
|
15486
|
+
return styled.css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n > span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n "])), function (_ref8) {
|
|
14994
15487
|
var theme = _ref8.theme;
|
|
14995
15488
|
return theme.colors.warningRed;
|
|
14996
15489
|
}, function (_ref9) {
|
|
@@ -15014,127 +15507,7 @@ var RadioButton = function RadioButton(props) {
|
|
|
15014
15507
|
invalid: invalid ? 1 : 0
|
|
15015
15508
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
15016
15509
|
type: 'radio'
|
|
15017
|
-
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$
|
|
15018
|
-
};
|
|
15019
|
-
|
|
15020
|
-
var _templateObject$p;
|
|
15021
|
-
var Container$9 = styled__default.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n padding: ", ";\n background-color: ", ";\n display: flex;\n width: min-content;\n"])), function (_ref) {
|
|
15022
|
-
var theme = _ref.theme;
|
|
15023
|
-
return theme.spacings.s1 + " " + theme.spacings.s1 + " 0px " + theme.spacings.s1;
|
|
15024
|
-
}, function (_ref2) {
|
|
15025
|
-
var theme = _ref2.theme;
|
|
15026
|
-
return theme.colors.white;
|
|
15027
|
-
});
|
|
15028
|
-
|
|
15029
|
-
var CalendarInterval = function CalendarInterval(props) {
|
|
15030
|
-
var time = props.time;
|
|
15031
|
-
|
|
15032
|
-
var _ref = props.value && Array.isArray(props.value.start) ? props.value.start : React.useState(null),
|
|
15033
|
-
start = _ref[0],
|
|
15034
|
-
setStart = _ref[1];
|
|
15035
|
-
|
|
15036
|
-
var _ref2 = props.value && Array.isArray(props.value.end) ? props.value.end : React.useState(null),
|
|
15037
|
-
end = _ref2[0],
|
|
15038
|
-
setEnd = _ref2[1];
|
|
15039
|
-
|
|
15040
|
-
React.useEffect(function () {
|
|
15041
|
-
if (!props.value) return;
|
|
15042
|
-
|
|
15043
|
-
if (!Array.isArray(props.value.start)) {
|
|
15044
|
-
setStart(props.value.start);
|
|
15045
|
-
}
|
|
15046
|
-
|
|
15047
|
-
if (!Array.isArray(props.value.end)) {
|
|
15048
|
-
setEnd(props.value.end);
|
|
15049
|
-
}
|
|
15050
|
-
}, [props.value]);
|
|
15051
|
-
|
|
15052
|
-
var _useState = React.useState(false),
|
|
15053
|
-
startInvalid = _useState[0],
|
|
15054
|
-
setStartInvalid = _useState[1];
|
|
15055
|
-
|
|
15056
|
-
var _useState2 = React.useState(false),
|
|
15057
|
-
endInvalid = _useState2[0],
|
|
15058
|
-
setEndInvalid = _useState2[1];
|
|
15059
|
-
|
|
15060
|
-
var min;
|
|
15061
|
-
|
|
15062
|
-
if (props.min) {
|
|
15063
|
-
min = new Date(props.min.getTime());
|
|
15064
|
-
}
|
|
15065
|
-
|
|
15066
|
-
var max;
|
|
15067
|
-
|
|
15068
|
-
if (props.max) {
|
|
15069
|
-
max = new Date(props.max.getTime());
|
|
15070
|
-
}
|
|
15071
|
-
|
|
15072
|
-
var minEnd;
|
|
15073
|
-
|
|
15074
|
-
if (start) {
|
|
15075
|
-
minEnd = start;
|
|
15076
|
-
|
|
15077
|
-
if (min) {
|
|
15078
|
-
minEnd = start >= min ? start : min;
|
|
15079
|
-
}
|
|
15080
|
-
} else if (min) {
|
|
15081
|
-
minEnd = min;
|
|
15082
|
-
}
|
|
15083
|
-
|
|
15084
|
-
var maxStart;
|
|
15085
|
-
|
|
15086
|
-
if (end) {
|
|
15087
|
-
maxStart = end;
|
|
15088
|
-
|
|
15089
|
-
if (max) {
|
|
15090
|
-
maxStart = end <= max ? end : max;
|
|
15091
|
-
}
|
|
15092
|
-
} else if (max) {
|
|
15093
|
-
maxStart = max;
|
|
15094
|
-
}
|
|
15095
|
-
|
|
15096
|
-
var _onSubmit = props.onSubmit || {};
|
|
15097
|
-
|
|
15098
|
-
var onSubmit = _extends({
|
|
15099
|
-
disabled: startInvalid || endInvalid,
|
|
15100
|
-
onClick: function onClick() {}
|
|
15101
|
-
}, _onSubmit);
|
|
15102
|
-
|
|
15103
|
-
var absoluteContainerProps = filterObject(props, ['max', 'min', 'value', 'time', 'onSubmit']);
|
|
15104
|
-
return React__default.createElement(AbsoluteContainer, Object.assign({
|
|
15105
|
-
axis: 'y',
|
|
15106
|
-
maxHeight: '329px'
|
|
15107
|
-
}, absoluteContainerProps), React__default.createElement(Container$9, null, React__default.createElement(Calendar, {
|
|
15108
|
-
open: true,
|
|
15109
|
-
value: [start, setStart],
|
|
15110
|
-
min: min,
|
|
15111
|
-
max: maxStart,
|
|
15112
|
-
overlay: {
|
|
15113
|
-
type: 'after',
|
|
15114
|
-
value: end
|
|
15115
|
-
},
|
|
15116
|
-
time: time,
|
|
15117
|
-
invalid: [startInvalid, setStartInvalid],
|
|
15118
|
-
notAbsolute: true
|
|
15119
|
-
}), React__default.createElement(Calendar, {
|
|
15120
|
-
open: true,
|
|
15121
|
-
value: [end, setEnd],
|
|
15122
|
-
min: minEnd,
|
|
15123
|
-
max: max,
|
|
15124
|
-
overlay: {
|
|
15125
|
-
type: 'before',
|
|
15126
|
-
value: start
|
|
15127
|
-
},
|
|
15128
|
-
time: time,
|
|
15129
|
-
invalid: [endInvalid, setEndInvalid],
|
|
15130
|
-
notAbsolute: true,
|
|
15131
|
-
onSubmit: {
|
|
15132
|
-
onClick: function onClick() {
|
|
15133
|
-
return onSubmit.onClick(start, end);
|
|
15134
|
-
},
|
|
15135
|
-
disabled: onSubmit.disabled
|
|
15136
|
-
}
|
|
15137
|
-
})));
|
|
15510
|
+
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$3, null, label));
|
|
15138
15511
|
};
|
|
15139
15512
|
|
|
15140
15513
|
var validate = function validate(_ref, min, max) {
|
|
@@ -15150,7 +15523,7 @@ var intervalTypes = {
|
|
|
15150
15523
|
label: function label(prev) {
|
|
15151
15524
|
var today = new Date();
|
|
15152
15525
|
today.setHours(0, 0, 0, 0);
|
|
15153
|
-
if (
|
|
15526
|
+
if (dateCompare(today, prev[0], 'eq')) return 'Hoje';
|
|
15154
15527
|
return dateToIsoString(prev[0], false, false);
|
|
15155
15528
|
},
|
|
15156
15529
|
initial: function initial(base) {
|
|
@@ -15158,7 +15531,7 @@ var intervalTypes = {
|
|
|
15158
15531
|
var start = new Date(base);
|
|
15159
15532
|
start.setHours(0, 0, 0, 0);
|
|
15160
15533
|
var end = new Date(base);
|
|
15161
|
-
end.setHours(23, 59, 59,
|
|
15534
|
+
end.setHours(23, 59, 59, 999);
|
|
15162
15535
|
return [start, end];
|
|
15163
15536
|
},
|
|
15164
15537
|
increment: function increment(prev) {
|
|
@@ -15289,7 +15662,7 @@ var identify = function identify(value) {
|
|
|
15289
15662
|
expectedStart = _intervalTypes$day$in[0],
|
|
15290
15663
|
expectedEnd = _intervalTypes$day$in[1];
|
|
15291
15664
|
|
|
15292
|
-
if (
|
|
15665
|
+
if (dateCompare(start, expectedStart, 'eq') && dateCompare(end, expectedEnd, 'eq')) {
|
|
15293
15666
|
return 'day';
|
|
15294
15667
|
}
|
|
15295
15668
|
}
|
|
@@ -15299,7 +15672,7 @@ var identify = function identify(value) {
|
|
|
15299
15672
|
_expectedStart = _intervalTypes$week$i[0],
|
|
15300
15673
|
_expectedEnd = _intervalTypes$week$i[1];
|
|
15301
15674
|
|
|
15302
|
-
if (
|
|
15675
|
+
if (dateCompare(start, _expectedStart, 'eq') && dateCompare(end, _expectedEnd, 'eq')) {
|
|
15303
15676
|
return 'week';
|
|
15304
15677
|
}
|
|
15305
15678
|
}
|
|
@@ -15309,7 +15682,7 @@ var identify = function identify(value) {
|
|
|
15309
15682
|
_expectedStart2 = _intervalTypes$month$[0],
|
|
15310
15683
|
_expectedEnd2 = _intervalTypes$month$[1];
|
|
15311
15684
|
|
|
15312
|
-
if (
|
|
15685
|
+
if (dateCompare(start, _expectedStart2, 'eq') && dateCompare(end, _expectedEnd2, 'eq')) {
|
|
15313
15686
|
return 'month';
|
|
15314
15687
|
}
|
|
15315
15688
|
}
|
|
@@ -15322,17 +15695,17 @@ var parse = function parse(value) {
|
|
|
15322
15695
|
});
|
|
15323
15696
|
};
|
|
15324
15697
|
|
|
15325
|
-
var _templateObject$
|
|
15326
|
-
var RelativeContainer$5 = styled__default.div(_templateObject$
|
|
15327
|
-
var LabelContainer$
|
|
15698
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$k, _templateObject4$h, _templateObject5$g, _templateObject6$e, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$3;
|
|
15699
|
+
var RelativeContainer$5 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
15700
|
+
var LabelContainer$4 = styled__default.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15328
15701
|
var theme = _ref.theme;
|
|
15329
15702
|
return theme.useTypography('p');
|
|
15330
15703
|
}, function (_ref2) {
|
|
15331
15704
|
var onClick = _ref2.onClick;
|
|
15332
15705
|
if (!onClick) return;
|
|
15333
|
-
return styled.css(_templateObject3$
|
|
15706
|
+
return styled.css(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15334
15707
|
});
|
|
15335
|
-
var Container$
|
|
15708
|
+
var Container$9 = styled__default.div(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
15336
15709
|
var theme = _ref3.theme;
|
|
15337
15710
|
return theme.spacings.s1;
|
|
15338
15711
|
}, function (_ref4) {
|
|
@@ -15349,21 +15722,21 @@ var Container$a = styled__default.div(_templateObject4$g || (_templateObject4$g
|
|
|
15349
15722
|
bgColor = _ref6[0],
|
|
15350
15723
|
color = _ref6[1];
|
|
15351
15724
|
|
|
15352
|
-
return styled.css(_templateObject5$
|
|
15725
|
+
return styled.css(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n color: ", ";\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, bgColor, bgColor);
|
|
15353
15726
|
}, function (_ref7) {
|
|
15354
15727
|
var theme = _ref7.theme,
|
|
15355
15728
|
paddingless = _ref7.paddingless;
|
|
15356
15729
|
if (paddingless) return;
|
|
15357
|
-
return styled.css(_templateObject6$
|
|
15730
|
+
return styled.css(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
|
|
15358
15731
|
}, function (_ref8) {
|
|
15359
15732
|
var disabled = _ref8.disabled;
|
|
15360
15733
|
if (!disabled) return;
|
|
15361
|
-
return styled.css(_templateObject7$
|
|
15734
|
+
return styled.css(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15362
15735
|
});
|
|
15363
|
-
var Button$4 = styled__default.button(_templateObject8$
|
|
15736
|
+
var Button$4 = styled__default.button(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref9) {
|
|
15364
15737
|
var onClick = _ref9.onClick;
|
|
15365
15738
|
if (!onClick) return;
|
|
15366
|
-
return styled.css(_templateObject9$
|
|
15739
|
+
return styled.css(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15367
15740
|
});
|
|
15368
15741
|
var LabelText$1 = styled__default.label(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15369
15742
|
var theme = _ref10.theme;
|
|
@@ -15371,7 +15744,7 @@ var LabelText$1 = styled__default.label(_templateObject10$5 || (_templateObject1
|
|
|
15371
15744
|
}, function (_ref11) {
|
|
15372
15745
|
var required = _ref11.required;
|
|
15373
15746
|
if (!required) return;
|
|
15374
|
-
return styled.css(_templateObject11$
|
|
15747
|
+
return styled.css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15375
15748
|
});
|
|
15376
15749
|
|
|
15377
15750
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -15479,13 +15852,13 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15479
15852
|
invalid: invalid
|
|
15480
15853
|
}, props.label ? React__default.createElement(LabelText$1, {
|
|
15481
15854
|
required: props.required ? 1 : 0
|
|
15482
|
-
}, props.label, input) : input, React__default.createElement(Container$
|
|
15855
|
+
}, props.label, input) : input, React__default.createElement(Container$9, {
|
|
15483
15856
|
invalid: props.invalid ? 1 : 0,
|
|
15484
15857
|
disabled: props.disabled ? 1 : 0,
|
|
15485
15858
|
paddingless: props.paddingless ? 1 : 0,
|
|
15486
15859
|
borderless: props.borderless ? 1 : 0
|
|
15487
15860
|
}, function () {
|
|
15488
|
-
var label = React__default.createElement(LabelContainer$
|
|
15861
|
+
var label = React__default.createElement(LabelContainer$4, {
|
|
15489
15862
|
onClick: onClick
|
|
15490
15863
|
}, value.some(function (v) {
|
|
15491
15864
|
return !isDateInstance(v);
|
|
@@ -15550,14 +15923,15 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15550
15923
|
width: '165px',
|
|
15551
15924
|
itemSpacing: 's3',
|
|
15552
15925
|
bordered: true
|
|
15553
|
-
}), React__default.createElement(
|
|
15926
|
+
}), React__default.createElement(Calendar, {
|
|
15927
|
+
type: 'interval',
|
|
15928
|
+
absolute: true,
|
|
15554
15929
|
open: open === 'calendar',
|
|
15555
|
-
|
|
15556
|
-
start: value[0],
|
|
15557
|
-
end: value[1]
|
|
15558
|
-
},
|
|
15930
|
+
initialValue: value,
|
|
15559
15931
|
onSubmit: {
|
|
15560
|
-
onClick: function onClick(
|
|
15932
|
+
onClick: function onClick(_ref2) {
|
|
15933
|
+
var start = _ref2[0],
|
|
15934
|
+
end = _ref2[1];
|
|
15561
15935
|
if (start === null || end === null) return;
|
|
15562
15936
|
setValue([start, end]);
|
|
15563
15937
|
setOpen(null);
|
|
@@ -15568,16 +15942,17 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15568
15942
|
references: {
|
|
15569
15943
|
bottom: '35px'
|
|
15570
15944
|
},
|
|
15571
|
-
time:
|
|
15945
|
+
time: props.time
|
|
15572
15946
|
}));
|
|
15573
15947
|
});
|
|
15574
15948
|
Component$1.displayName = 'DatePicker';
|
|
15575
15949
|
|
|
15576
|
-
var useDefaultDateIntervalState = function useDefaultDateIntervalState() {
|
|
15577
|
-
var
|
|
15950
|
+
var useDefaultDateIntervalState = function useDefaultDateIntervalState(min, max) {
|
|
15951
|
+
var middle = getMiddle(min, max);
|
|
15952
|
+
var start = new Date(middle);
|
|
15578
15953
|
start.setHours(0, 0, 0, 0);
|
|
15579
|
-
var end = new Date();
|
|
15580
|
-
end.setHours(23, 59, 59,
|
|
15954
|
+
var end = new Date(middle);
|
|
15955
|
+
end.setHours(23, 59, 59, 999);
|
|
15581
15956
|
return [start.toISOString(), end.toISOString()];
|
|
15582
15957
|
};
|
|
15583
15958
|
|
|
@@ -15585,8 +15960,8 @@ var DatePicker$1 = Object.assign(Component$1, {
|
|
|
15585
15960
|
useDefaultDateIntervalState: useDefaultDateIntervalState
|
|
15586
15961
|
});
|
|
15587
15962
|
|
|
15588
|
-
var _templateObject$
|
|
15589
|
-
var Input$3 = styled__default.input(_templateObject$
|
|
15963
|
+
var _templateObject$t;
|
|
15964
|
+
var Input$3 = styled__default.input(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n ", ";\n opacity: 1;\n }\n\n display: block;\n box-sizing: border-box;\n flex: 1;\n min-width: ", ";\n\n padding: calc(", " / 2) 0;\n\n box-shadow: none;\n outline: none;\n border: 1px solid transparent;\n"])), function (_ref) {
|
|
15590
15965
|
var theme = _ref.theme;
|
|
15591
15966
|
return theme.useTypography('p');
|
|
15592
15967
|
}, function (_ref2) {
|
|
@@ -15649,22 +16024,22 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
|
|
|
15649
16024
|
});
|
|
15650
16025
|
Input$4.displayName = 'Input';
|
|
15651
16026
|
|
|
15652
|
-
var _templateObject$
|
|
15653
|
-
var Label$6 = styled__default.div(_templateObject$
|
|
16027
|
+
var _templateObject$u, _templateObject2$n;
|
|
16028
|
+
var Label$6 = styled__default.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
|
|
15654
16029
|
var theme = _ref.theme;
|
|
15655
16030
|
return theme.spacings.s1;
|
|
15656
16031
|
}, function (_ref2) {
|
|
15657
16032
|
var required = _ref2.required;
|
|
15658
16033
|
if (!required) return;
|
|
15659
|
-
return styled.css(_templateObject2$
|
|
16034
|
+
return styled.css(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15660
16035
|
});
|
|
15661
16036
|
|
|
15662
16037
|
var Label$7 = function Label(props) {
|
|
15663
16038
|
return props.children ? React__default.createElement(Label$6, Object.assign({}, props)) : null;
|
|
15664
16039
|
};
|
|
15665
16040
|
|
|
15666
|
-
var _templateObject$
|
|
15667
|
-
var Tag = styled__default.div(_templateObject$
|
|
16041
|
+
var _templateObject$v;
|
|
16042
|
+
var Tag = styled__default.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n\n background-color: ", ";\n color: ", ";\n padding: calc(", " / 2);\n\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n display: flex;\n align-items: center;\n gap: ", ";\n\n > div:last-child {\n cursor: pointer;\n }\n"])), function (_ref) {
|
|
15668
16043
|
var theme = _ref.theme;
|
|
15669
16044
|
return theme.useTypography('p');
|
|
15670
16045
|
}, function (_ref2) {
|
|
@@ -15697,8 +16072,8 @@ var Tag$1 = function Tag$1(props) {
|
|
|
15697
16072
|
})));
|
|
15698
16073
|
};
|
|
15699
16074
|
|
|
15700
|
-
var _templateObject$
|
|
15701
|
-
var Label$8 = styled__default.label(_templateObject$
|
|
16075
|
+
var _templateObject$w, _templateObject2$o, _templateObject3$l;
|
|
16076
|
+
var Label$8 = styled__default.label(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
|
|
15702
16077
|
var theme = _ref.theme;
|
|
15703
16078
|
return theme.useTypography('p');
|
|
15704
16079
|
}, function (_ref2) {
|
|
@@ -15710,9 +16085,9 @@ var Label$8 = styled__default.label(_templateObject$u || (_templateObject$u = _t
|
|
|
15710
16085
|
}, function (_ref4) {
|
|
15711
16086
|
var disabled = _ref4.disabled;
|
|
15712
16087
|
if (!disabled) return;
|
|
15713
|
-
return styled.css(_templateObject2$
|
|
16088
|
+
return styled.css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15714
16089
|
});
|
|
15715
|
-
var TagContainer = styled__default.div(_templateObject3$
|
|
16090
|
+
var TagContainer = styled__default.div(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n display: flex;\n flex-wrap: wrap;\n gap: calc(", " / 2);\n padding: ", ";\n"])), function (_ref5) {
|
|
15716
16091
|
var theme = _ref5.theme,
|
|
15717
16092
|
invalid = _ref5.invalid;
|
|
15718
16093
|
return theme.colors[invalid ? 'warningRed' : 'lightGrey'];
|
|
@@ -15792,8 +16167,8 @@ var Tags = React__default.forwardRef(function (props, ref) {
|
|
|
15792
16167
|
});
|
|
15793
16168
|
Tags.displayName = 'Tags';
|
|
15794
16169
|
|
|
15795
|
-
var _templateObject$
|
|
15796
|
-
var RelativeContainer$6 = styled__default.div(_templateObject$
|
|
16170
|
+
var _templateObject$x;
|
|
16171
|
+
var RelativeContainer$6 = styled__default.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
15797
16172
|
|
|
15798
16173
|
var isLeapYear$1 = function isLeapYear(year) {
|
|
15799
16174
|
if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
|
|
@@ -16060,8 +16435,10 @@ var DateTime = React__default.forwardRef(function (props, ref) {
|
|
|
16060
16435
|
icon: icon,
|
|
16061
16436
|
ref: ref
|
|
16062
16437
|
})), React__default.createElement(Calendar, {
|
|
16438
|
+
type: 'single',
|
|
16439
|
+
absolute: true,
|
|
16063
16440
|
open: open,
|
|
16064
|
-
|
|
16441
|
+
initialValue: value ? isoStringToDate(value) : undefined,
|
|
16065
16442
|
onSubmit: {
|
|
16066
16443
|
onClick: function onClick(date) {
|
|
16067
16444
|
if (!date) return;
|
|
@@ -16223,34 +16600,34 @@ var widths = {
|
|
|
16223
16600
|
default: '642.5px'
|
|
16224
16601
|
};
|
|
16225
16602
|
|
|
16226
|
-
var _templateObject$
|
|
16227
|
-
var Background = styled__default.div(_templateObject$
|
|
16603
|
+
var _templateObject$y, _templateObject2$p, _templateObject3$m, _templateObject4$i, _templateObject5$h, _templateObject6$f, _templateObject7$d, _templateObject8$9, _templateObject9$9, _templateObject10$6;
|
|
16604
|
+
var Background = styled__default.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
|
|
16228
16605
|
var theme = _ref.theme;
|
|
16229
16606
|
return theme.getColor('black', 25);
|
|
16230
16607
|
});
|
|
16231
|
-
var Content = styled__default.div(_templateObject2$
|
|
16232
|
-
var Header$3 = styled__default.div(_templateObject3$
|
|
16608
|
+
var Content = styled__default.div(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
|
|
16609
|
+
var Header$3 = styled__default.div(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n ", "\n"])), function (_ref2) {
|
|
16233
16610
|
var _ref2$theme = _ref2.theme,
|
|
16234
16611
|
colors = _ref2$theme.colors,
|
|
16235
16612
|
spacings = _ref2$theme.spacings,
|
|
16236
16613
|
useTypography = _ref2$theme.useTypography;
|
|
16237
|
-
return styled.css(_templateObject4$
|
|
16614
|
+
return styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
|
|
16238
16615
|
});
|
|
16239
|
-
var Footer$2 = styled__default.div(_templateObject5$
|
|
16616
|
+
var Footer$2 = styled__default.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
|
|
16240
16617
|
var _ref3$theme = _ref3.theme,
|
|
16241
16618
|
spacings = _ref3$theme.spacings,
|
|
16242
16619
|
colors = _ref3$theme.colors;
|
|
16243
|
-
return styled.css(_templateObject6$
|
|
16620
|
+
return styled.css(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n border-top: 1px solid ", ";\n padding: ", ";\n "])), colors.lightestGrey, spacings.s3);
|
|
16244
16621
|
});
|
|
16245
|
-
var FooterMessage = styled__default.div(_templateObject7$
|
|
16622
|
+
var FooterMessage = styled__default.div(_templateObject7$d || (_templateObject7$d = _taggedTemplateLiteralLoose(["\n max-width: 75%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n span {\n font-size: 14px;\n color: ", ";\n }\n"])), function (_ref4) {
|
|
16246
16623
|
var theme = _ref4.theme;
|
|
16247
16624
|
return theme.getColor('darkBlue', 75);
|
|
16248
16625
|
});
|
|
16249
|
-
var FooterButtons = styled__default.div(_templateObject8$
|
|
16626
|
+
var FooterButtons = styled__default.div(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: ", ";\n"])), function (_ref5) {
|
|
16250
16627
|
var theme = _ref5.theme;
|
|
16251
16628
|
return theme.spacings.s3;
|
|
16252
16629
|
});
|
|
16253
|
-
var Container$
|
|
16630
|
+
var Container$a = styled__default.div(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n ", "\n"])), function (_ref6) {
|
|
16254
16631
|
var theme = _ref6.theme,
|
|
16255
16632
|
size = _ref6.size,
|
|
16256
16633
|
customSize = _ref6.customSize,
|
|
@@ -16307,7 +16684,7 @@ var Modal = function Modal(props) {
|
|
|
16307
16684
|
id: 'modal'
|
|
16308
16685
|
}, React__default.createElement(Background, {
|
|
16309
16686
|
onClick: onClickOutside
|
|
16310
|
-
}, React__default.createElement(Container$
|
|
16687
|
+
}, React__default.createElement(Container$a, {
|
|
16311
16688
|
size: size || 'small',
|
|
16312
16689
|
color: color || 'blue',
|
|
16313
16690
|
inverted: +(inverted || false),
|
|
@@ -16332,8 +16709,8 @@ var Modal = function Modal(props) {
|
|
|
16332
16709
|
}))))));
|
|
16333
16710
|
};
|
|
16334
16711
|
|
|
16335
|
-
var _templateObject$
|
|
16336
|
-
var Content$1 = styled__default.div(_templateObject$
|
|
16712
|
+
var _templateObject$z;
|
|
16713
|
+
var Content$1 = styled__default.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
16337
16714
|
var theme = _ref.theme;
|
|
16338
16715
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
16339
16716
|
});
|
|
@@ -16370,8 +16747,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
|
|
|
16370
16747
|
}, React__default.createElement(Content$1, null, children || content));
|
|
16371
16748
|
};
|
|
16372
16749
|
|
|
16373
|
-
var _templateObject$
|
|
16374
|
-
var Content$2 = styled__default.div(_templateObject$
|
|
16750
|
+
var _templateObject$A;
|
|
16751
|
+
var Content$2 = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
16375
16752
|
var theme = _ref.theme;
|
|
16376
16753
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
16377
16754
|
});
|
|
@@ -16411,8 +16788,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
|
|
|
16411
16788
|
}, React__default.createElement(Content$2, null, children || content));
|
|
16412
16789
|
};
|
|
16413
16790
|
|
|
16414
|
-
var _templateObject$
|
|
16415
|
-
var Content$3 = styled__default.div(_templateObject$
|
|
16791
|
+
var _templateObject$B;
|
|
16792
|
+
var Content$3 = styled__default.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
16416
16793
|
var theme = _ref.theme;
|
|
16417
16794
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
16418
16795
|
});
|
|
@@ -16453,23 +16830,23 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
16453
16830
|
Audit: Audit
|
|
16454
16831
|
});
|
|
16455
16832
|
|
|
16456
|
-
var _templateObject$
|
|
16457
|
-
var Container$
|
|
16458
|
-
return props.size === 'mini' && styled.css(_templateObject2$
|
|
16833
|
+
var _templateObject$C, _templateObject2$q, _templateObject3$n, _templateObject4$j, _templateObject5$i, _templateObject6$g, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$7;
|
|
16834
|
+
var Container$b = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
|
|
16835
|
+
return props.size === 'mini' && styled.css(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
16459
16836
|
}, function (props) {
|
|
16460
|
-
return props.size === 'small' && styled.css(_templateObject3$
|
|
16837
|
+
return props.size === 'small' && styled.css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
|
|
16461
16838
|
}, function (props) {
|
|
16462
|
-
return props.size === 'medium' && styled.css(_templateObject4$
|
|
16839
|
+
return props.size === 'medium' && styled.css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
|
|
16463
16840
|
}, function (props) {
|
|
16464
|
-
return props.size === 'big' && styled.css(_templateObject5$
|
|
16841
|
+
return props.size === 'big' && styled.css(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
|
|
16465
16842
|
}, function (props) {
|
|
16466
|
-
return props.borderType === 'info' && styled.css(_templateObject6$
|
|
16843
|
+
return props.borderType === 'info' && styled.css(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n border-left-color: #4d6dbe;\n "])));
|
|
16467
16844
|
}, function (props) {
|
|
16468
|
-
return props.borderType === 'success' && styled.css(_templateObject7$
|
|
16845
|
+
return props.borderType === 'success' && styled.css(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n border-left-color: #66bb6a;\n "])));
|
|
16469
16846
|
}, function (props) {
|
|
16470
|
-
return props.borderType === 'warning' && styled.css(_templateObject8$
|
|
16847
|
+
return props.borderType === 'warning' && styled.css(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n border-left-color: #fbcb01;\n "])));
|
|
16471
16848
|
}, function (props) {
|
|
16472
|
-
return props.borderType === 'danger' && styled.css(_templateObject9$
|
|
16849
|
+
return props.borderType === 'danger' && styled.css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
|
|
16473
16850
|
}, function (props) {
|
|
16474
16851
|
return props.borderType === 'none' && styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
|
|
16475
16852
|
});
|
|
@@ -16480,24 +16857,24 @@ var Card = function Card(_ref) {
|
|
|
16480
16857
|
var children = _ref.children,
|
|
16481
16858
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
16482
16859
|
|
|
16483
|
-
return React__default.createElement(Container$
|
|
16860
|
+
return React__default.createElement(Container$b, Object.assign({}, rest), children);
|
|
16484
16861
|
};
|
|
16485
16862
|
|
|
16486
|
-
var _templateObject$
|
|
16487
|
-
var Container$
|
|
16863
|
+
var _templateObject$D, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h;
|
|
16864
|
+
var Container$c = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
|
|
16488
16865
|
return props.size === 'large' ? '837px' : '460px';
|
|
16489
16866
|
}, function (props) {
|
|
16490
|
-
return props.color === 'success' && styled.css(_templateObject2$
|
|
16867
|
+
return props.color === 'success' && styled.css(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n background-color: #fcfff5;\n opacity: 1;\n border-color: #a8c599;\n h4 {\n color: #1e561f;\n }\n p {\n color: #1e561fcc;\n }\n "])));
|
|
16491
16868
|
}, function (props) {
|
|
16492
|
-
return props.color === 'error' && styled.css(_templateObject3$
|
|
16869
|
+
return props.color === 'error' && styled.css(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
|
|
16493
16870
|
}, function (props) {
|
|
16494
|
-
return props.color === 'warning' && styled.css(_templateObject4$
|
|
16871
|
+
return props.color === 'warning' && styled.css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
|
|
16495
16872
|
});
|
|
16496
|
-
var IconContainer$2 = styled__default.div(_templateObject5$
|
|
16497
|
-
var IconContent = styled__default.div(_templateObject6$
|
|
16873
|
+
var IconContainer$2 = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
|
|
16874
|
+
var IconContent = styled__default.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
|
|
16498
16875
|
|
|
16499
16876
|
var Toast = function Toast(props) {
|
|
16500
|
-
return React__default.createElement(Container$
|
|
16877
|
+
return React__default.createElement(Container$c, Object.assign({}, props), React__default.createElement(IconContainer$2, null, React__default.createElement(Icon, {
|
|
16501
16878
|
type: 'feather',
|
|
16502
16879
|
icon: 'x',
|
|
16503
16880
|
onClick: function onClick() {
|
|
@@ -16506,28 +16883,28 @@ var Toast = function Toast(props) {
|
|
|
16506
16883
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
16507
16884
|
};
|
|
16508
16885
|
|
|
16509
|
-
var _templateObject$
|
|
16510
|
-
var Container$
|
|
16511
|
-
var Header$4 = styled__default.div(_templateObject2$
|
|
16512
|
-
var HeaderImage = styled__default.div(_templateObject3$
|
|
16513
|
-
var HeaderContent = styled__default.div(_templateObject4$
|
|
16514
|
-
var MainContent = styled__default.div(_templateObject5$
|
|
16515
|
-
var HeaderLine = styled__default.div(_templateObject6$
|
|
16886
|
+
var _templateObject$E, _templateObject2$s, _templateObject3$p, _templateObject4$l, _templateObject5$k, _templateObject6$i, _templateObject7$f, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$4;
|
|
16887
|
+
var Container$d = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
16888
|
+
var Header$4 = styled__default.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16889
|
+
var HeaderImage = styled__default.div(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
16890
|
+
var HeaderContent = styled__default.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
16891
|
+
var MainContent = styled__default.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
16892
|
+
var HeaderLine = styled__default.div(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16516
16893
|
return props.height;
|
|
16517
16894
|
}, function (props) {
|
|
16518
|
-
return props.size === 'mini' && styled.css(_templateObject7$
|
|
16895
|
+
return props.size === 'mini' && styled.css(_templateObject7$f || (_templateObject7$f = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16519
16896
|
}, function (props) {
|
|
16520
|
-
return props.size === 'small' && styled.css(_templateObject8$
|
|
16897
|
+
return props.size === 'small' && styled.css(_templateObject8$b || (_templateObject8$b = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16521
16898
|
}, function (props) {
|
|
16522
|
-
return props.size === 'medium' && styled.css(_templateObject9$
|
|
16899
|
+
return props.size === 'medium' && styled.css(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16523
16900
|
}, function (props) {
|
|
16524
16901
|
return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16525
16902
|
});
|
|
16526
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
16903
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16527
16904
|
|
|
16528
16905
|
var Template1 = function Template1(props) {
|
|
16529
16906
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16530
|
-
return React__default.createElement(Container$
|
|
16907
|
+
return React__default.createElement(Container$d, null, React__default.createElement(Header$4, null, React__default.createElement(HeaderImage, null), React__default.createElement(HeaderContent, null, React__default.createElement(HeaderLine, {
|
|
16531
16908
|
size: 'medium',
|
|
16532
16909
|
height: '9px',
|
|
16533
16910
|
color: '#E6E6E6'
|
|
@@ -16558,28 +16935,28 @@ var Template1 = function Template1(props) {
|
|
|
16558
16935
|
})));
|
|
16559
16936
|
};
|
|
16560
16937
|
|
|
16561
|
-
var _templateObject$
|
|
16562
|
-
var HeaderLine$1 = styled__default.div(_templateObject$
|
|
16938
|
+
var _templateObject$F, _templateObject2$t, _templateObject3$q, _templateObject4$m, _templateObject5$l;
|
|
16939
|
+
var HeaderLine$1 = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16563
16940
|
return props.height;
|
|
16564
16941
|
}, function (props) {
|
|
16565
|
-
return props.size === 'mini' && styled.css(_templateObject2$
|
|
16942
|
+
return props.size === 'mini' && styled.css(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16566
16943
|
}, function (props) {
|
|
16567
|
-
return props.size === 'small' && styled.css(_templateObject3$
|
|
16944
|
+
return props.size === 'small' && styled.css(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16568
16945
|
}, function (props) {
|
|
16569
|
-
return props.size === 'medium' && styled.css(_templateObject4$
|
|
16946
|
+
return props.size === 'medium' && styled.css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16570
16947
|
}, function (props) {
|
|
16571
|
-
return props.size === 'large' && styled.css(_templateObject5$
|
|
16948
|
+
return props.size === 'large' && styled.css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16572
16949
|
});
|
|
16573
16950
|
|
|
16574
|
-
var _templateObject$
|
|
16575
|
-
var Container$
|
|
16576
|
-
var Template2Container = styled__default(Container$
|
|
16577
|
-
var Header$5 = styled__default.div(_templateObject3$
|
|
16578
|
-
var HeaderImage$1 = styled__default.div(_templateObject4$
|
|
16579
|
-
var HeaderContent$1 = styled__default.div(_templateObject5$
|
|
16580
|
-
var MainContent$1 = styled__default.div(_templateObject6$
|
|
16581
|
-
var MainLine$1 = styled__default(HeaderLine$1)(_templateObject7$
|
|
16582
|
-
var HeaderLine$2 = styled__default(HeaderLine$1)(_templateObject8$
|
|
16951
|
+
var _templateObject$G, _templateObject2$u, _templateObject3$r, _templateObject4$n, _templateObject5$m, _templateObject6$j, _templateObject7$g, _templateObject8$c;
|
|
16952
|
+
var Container$e = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
16953
|
+
var Template2Container = styled__default(Container$e)(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
|
|
16954
|
+
var Header$5 = styled__default.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16955
|
+
var HeaderImage$1 = styled__default.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
16956
|
+
var HeaderContent$1 = styled__default.div(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
16957
|
+
var MainContent$1 = styled__default.div(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
16958
|
+
var MainLine$1 = styled__default(HeaderLine$1)(_templateObject7$g || (_templateObject7$g = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16959
|
+
var HeaderLine$2 = styled__default(HeaderLine$1)(_templateObject8$c || (_templateObject8$c = _taggedTemplateLiteralLoose([""])));
|
|
16583
16960
|
|
|
16584
16961
|
var Template2 = function Template2(props) {
|
|
16585
16962
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -16602,10 +16979,10 @@ var Template2 = function Template2(props) {
|
|
|
16602
16979
|
})));
|
|
16603
16980
|
};
|
|
16604
16981
|
|
|
16605
|
-
var _templateObject$
|
|
16606
|
-
var Container$
|
|
16607
|
-
var Template3Container = styled__default(Container$
|
|
16608
|
-
var Template3Line = styled__default(HeaderLine$1)(_templateObject3$
|
|
16982
|
+
var _templateObject$H, _templateObject2$v, _templateObject3$s;
|
|
16983
|
+
var Container$f = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
16984
|
+
var Template3Container = styled__default(Container$f)(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose([""])));
|
|
16985
|
+
var Template3Line = styled__default(HeaderLine$1)(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
|
|
16609
16986
|
return props.height;
|
|
16610
16987
|
});
|
|
16611
16988
|
|
|
@@ -16634,21 +17011,21 @@ var Template3 = function Template3(props) {
|
|
|
16634
17011
|
}));
|
|
16635
17012
|
};
|
|
16636
17013
|
|
|
16637
|
-
var _templateObject$
|
|
16638
|
-
var Container$
|
|
16639
|
-
var HeaderLine$3 = styled__default.div(_templateObject2$
|
|
17014
|
+
var _templateObject$I, _templateObject2$w, _templateObject3$t, _templateObject4$o, _templateObject5$n, _templateObject6$k, _templateObject7$h, _templateObject8$d;
|
|
17015
|
+
var Container$g = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
17016
|
+
var HeaderLine$3 = styled__default.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16640
17017
|
return props.height;
|
|
16641
17018
|
}, function (props) {
|
|
16642
|
-
return props.size === 'mini' && styled.css(_templateObject3$
|
|
17019
|
+
return props.size === 'mini' && styled.css(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16643
17020
|
}, function (props) {
|
|
16644
|
-
return props.size === 'small' && styled.css(_templateObject4$
|
|
17021
|
+
return props.size === 'small' && styled.css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16645
17022
|
}, function (props) {
|
|
16646
|
-
return props.size === 'medium' && styled.css(_templateObject5$
|
|
17023
|
+
return props.size === 'medium' && styled.css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16647
17024
|
}, function (props) {
|
|
16648
|
-
return props.size === 'large' && styled.css(_templateObject6$
|
|
17025
|
+
return props.size === 'large' && styled.css(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16649
17026
|
});
|
|
16650
|
-
var Template4Container = styled__default(Container$
|
|
16651
|
-
var CustomLine = styled__default(HeaderLine$3)(_templateObject8$
|
|
17027
|
+
var Template4Container = styled__default(Container$g)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n"])));
|
|
17028
|
+
var CustomLine = styled__default(HeaderLine$3)(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
16652
17029
|
return props.width;
|
|
16653
17030
|
}, function (props) {
|
|
16654
17031
|
return props.height;
|
|
@@ -16701,32 +17078,32 @@ var Template4 = function Template4(props) {
|
|
|
16701
17078
|
}));
|
|
16702
17079
|
};
|
|
16703
17080
|
|
|
16704
|
-
var _templateObject$
|
|
16705
|
-
var Container$
|
|
16706
|
-
var Circle = styled__default.div(_templateObject2$
|
|
16707
|
-
var HeaderLine$4 = styled__default.div(_templateObject3$
|
|
17081
|
+
var _templateObject$J, _templateObject2$x, _templateObject3$u, _templateObject4$p, _templateObject5$o, _templateObject6$l, _templateObject7$i, _templateObject8$e, _templateObject9$c;
|
|
17082
|
+
var Container$h = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
17083
|
+
var Circle = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
|
|
17084
|
+
var HeaderLine$4 = styled__default.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16708
17085
|
return props.height;
|
|
16709
17086
|
}, function (props) {
|
|
16710
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
17087
|
+
return props.size === 'mini' && styled.css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16711
17088
|
}, function (props) {
|
|
16712
|
-
return props.size === 'small' && styled.css(_templateObject5$
|
|
17089
|
+
return props.size === 'small' && styled.css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16713
17090
|
}, function (props) {
|
|
16714
|
-
return props.size === 'medium' && styled.css(_templateObject6$
|
|
17091
|
+
return props.size === 'medium' && styled.css(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16715
17092
|
}, function (props) {
|
|
16716
|
-
return props.size === 'large' && styled.css(_templateObject7$
|
|
17093
|
+
return props.size === 'large' && styled.css(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16717
17094
|
});
|
|
16718
|
-
var CustomLine$1 = styled__default(HeaderLine$4)(_templateObject8$
|
|
17095
|
+
var CustomLine$1 = styled__default(HeaderLine$4)(_templateObject8$e || (_templateObject8$e = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
16719
17096
|
return props.width;
|
|
16720
17097
|
}, function (props) {
|
|
16721
17098
|
return props.height;
|
|
16722
17099
|
}, function (props) {
|
|
16723
17100
|
return props.color;
|
|
16724
17101
|
});
|
|
16725
|
-
var MainContent$2 = styled__default.div(_templateObject9$
|
|
17102
|
+
var MainContent$2 = styled__default.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n margin-left: 35px;\n"])));
|
|
16726
17103
|
|
|
16727
17104
|
var Template5 = function Template5(props) {
|
|
16728
17105
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16729
|
-
return React__default.createElement(Container$
|
|
17106
|
+
return React__default.createElement(Container$h, null, React__default.createElement(Circle, null), React__default.createElement(MainContent$2, null, React__default.createElement(CustomLine$1, {
|
|
16730
17107
|
width: '406px',
|
|
16731
17108
|
height: '16px',
|
|
16732
17109
|
color: '#DDDEDF',
|
|
@@ -16749,22 +17126,22 @@ var Template5 = function Template5(props) {
|
|
|
16749
17126
|
})));
|
|
16750
17127
|
};
|
|
16751
17128
|
|
|
16752
|
-
var _templateObject$
|
|
16753
|
-
var Container$
|
|
16754
|
-
var Header$6 = styled__default.div(_templateObject2$
|
|
16755
|
-
var Footer$3 = styled__default.div(_templateObject3$
|
|
16756
|
-
var HeaderLine$5 = styled__default.div(_templateObject4$
|
|
17129
|
+
var _templateObject$K, _templateObject2$y, _templateObject3$v, _templateObject4$q, _templateObject5$p, _templateObject6$m, _templateObject7$j, _templateObject8$f, _templateObject9$d;
|
|
17130
|
+
var Container$i = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
|
|
17131
|
+
var Header$6 = styled__default.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
|
|
17132
|
+
var Footer$3 = styled__default.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
|
|
17133
|
+
var HeaderLine$5 = styled__default.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16757
17134
|
return props.height;
|
|
16758
17135
|
}, function (props) {
|
|
16759
|
-
return props.size === 'mini' && styled.css(_templateObject5$
|
|
17136
|
+
return props.size === 'mini' && styled.css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16760
17137
|
}, function (props) {
|
|
16761
|
-
return props.size === 'small' && styled.css(_templateObject6$
|
|
17138
|
+
return props.size === 'small' && styled.css(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16762
17139
|
}, function (props) {
|
|
16763
|
-
return props.size === 'medium' && styled.css(_templateObject7$
|
|
17140
|
+
return props.size === 'medium' && styled.css(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16764
17141
|
}, function (props) {
|
|
16765
|
-
return props.size === 'large' && styled.css(_templateObject8$
|
|
17142
|
+
return props.size === 'large' && styled.css(_templateObject8$f || (_templateObject8$f = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16766
17143
|
});
|
|
16767
|
-
var CustomLine$2 = styled__default(HeaderLine$5)(_templateObject9$
|
|
17144
|
+
var CustomLine$2 = styled__default(HeaderLine$5)(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
16768
17145
|
return props.width;
|
|
16769
17146
|
}, function (props) {
|
|
16770
17147
|
return props.height;
|
|
@@ -16774,7 +17151,7 @@ var CustomLine$2 = styled__default(HeaderLine$5)(_templateObject9$c || (_templat
|
|
|
16774
17151
|
|
|
16775
17152
|
var Template6 = function Template6(props) {
|
|
16776
17153
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16777
|
-
return React__default.createElement(Container$
|
|
17154
|
+
return React__default.createElement(Container$i, null, React__default.createElement(Header$6, null, React__default.createElement(CustomLine$2, {
|
|
16778
17155
|
width: '274px',
|
|
16779
17156
|
height: '10px',
|
|
16780
17157
|
color: '#EBEBEB',
|
|
@@ -16792,71 +17169,71 @@ var Template6 = function Template6(props) {
|
|
|
16792
17169
|
})));
|
|
16793
17170
|
};
|
|
16794
17171
|
|
|
16795
|
-
var _templateObject$
|
|
16796
|
-
var Container$
|
|
16797
|
-
var Header$7 = styled__default.div(_templateObject2$
|
|
16798
|
-
var HeaderLine$6 = styled__default.div(_templateObject3$
|
|
17172
|
+
var _templateObject$L, _templateObject2$z, _templateObject3$w, _templateObject4$r, _templateObject5$q, _templateObject6$n, _templateObject7$k, _templateObject8$g, _templateObject9$e, _templateObject10$9;
|
|
17173
|
+
var Container$j = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
17174
|
+
var Header$7 = styled__default.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
17175
|
+
var HeaderLine$6 = styled__default.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16799
17176
|
return props.height;
|
|
16800
17177
|
}, function (props) {
|
|
16801
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
17178
|
+
return props.size === 'mini' && styled.css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16802
17179
|
}, function (props) {
|
|
16803
|
-
return props.size === 'small' && styled.css(_templateObject5$
|
|
17180
|
+
return props.size === 'small' && styled.css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16804
17181
|
}, function (props) {
|
|
16805
|
-
return props.size === 'medium' && styled.css(_templateObject6$
|
|
17182
|
+
return props.size === 'medium' && styled.css(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16806
17183
|
}, function (props) {
|
|
16807
|
-
return props.size === 'large' && styled.css(_templateObject7$
|
|
17184
|
+
return props.size === 'large' && styled.css(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16808
17185
|
});
|
|
16809
|
-
var CustomLine$3 = styled__default(HeaderLine$6)(_templateObject8$
|
|
17186
|
+
var CustomLine$3 = styled__default(HeaderLine$6)(_templateObject8$g || (_templateObject8$g = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
16810
17187
|
return props.width;
|
|
16811
17188
|
}, function (props) {
|
|
16812
17189
|
return props.height;
|
|
16813
17190
|
}, function (props) {
|
|
16814
17191
|
return props.color;
|
|
16815
17192
|
});
|
|
16816
|
-
var Main = styled__default.div(_templateObject9$
|
|
17193
|
+
var Main$2 = styled__default.div(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n margin: 10px 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-evenly;\n"])));
|
|
16817
17194
|
var Circle$1 = styled__default.div(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n width: 30px;\n height: 30px;\n background-color: #ebebeb;\n border-radius: 50%;\n margin: 0 16px;\n"])));
|
|
16818
17195
|
|
|
16819
17196
|
var Template7 = function Template7(props) {
|
|
16820
17197
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16821
|
-
return React__default.createElement(Container$
|
|
17198
|
+
return React__default.createElement(Container$j, null, React__default.createElement(Header$7, null, React__default.createElement(CustomLine$3, {
|
|
16822
17199
|
width: '89px',
|
|
16823
17200
|
height: '10px',
|
|
16824
17201
|
color: '#EBEBEB',
|
|
16825
17202
|
size: 'large'
|
|
16826
|
-
})), React__default.createElement(Main, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
|
|
17203
|
+
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
|
|
16827
17204
|
};
|
|
16828
17205
|
|
|
16829
|
-
var _templateObject$
|
|
16830
|
-
var Container$
|
|
16831
|
-
var Header$8 = styled__default.div(_templateObject2$
|
|
16832
|
-
var HeaderLine$7 = styled__default.div(_templateObject3$
|
|
17206
|
+
var _templateObject$M, _templateObject2$A, _templateObject3$x, _templateObject4$s, _templateObject5$r, _templateObject6$o, _templateObject7$l, _templateObject8$h, _templateObject9$f;
|
|
17207
|
+
var Container$k = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
17208
|
+
var Header$8 = styled__default.div(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
17209
|
+
var HeaderLine$7 = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16833
17210
|
return props.height;
|
|
16834
17211
|
}, function (props) {
|
|
16835
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
17212
|
+
return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16836
17213
|
}, function (props) {
|
|
16837
|
-
return props.size === 'small' && styled.css(_templateObject5$
|
|
17214
|
+
return props.size === 'small' && styled.css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16838
17215
|
}, function (props) {
|
|
16839
|
-
return props.size === 'medium' && styled.css(_templateObject6$
|
|
17216
|
+
return props.size === 'medium' && styled.css(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16840
17217
|
}, function (props) {
|
|
16841
|
-
return props.size === 'large' && styled.css(_templateObject7$
|
|
17218
|
+
return props.size === 'large' && styled.css(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16842
17219
|
});
|
|
16843
|
-
var CustomLine$4 = styled__default(HeaderLine$7)(_templateObject8$
|
|
17220
|
+
var CustomLine$4 = styled__default(HeaderLine$7)(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
16844
17221
|
return props.width;
|
|
16845
17222
|
}, function (props) {
|
|
16846
17223
|
return props.height;
|
|
16847
17224
|
}, function (props) {
|
|
16848
17225
|
return props.color;
|
|
16849
17226
|
});
|
|
16850
|
-
var Main$
|
|
17227
|
+
var Main$3 = styled__default.div(_templateObject9$f || (_templateObject9$f = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
|
|
16851
17228
|
|
|
16852
17229
|
var Template8 = function Template8(props) {
|
|
16853
17230
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16854
|
-
return React__default.createElement(Container$
|
|
17231
|
+
return React__default.createElement(Container$k, null, React__default.createElement(Header$8, null, React__default.createElement(CustomLine$4, {
|
|
16855
17232
|
width: '89px',
|
|
16856
17233
|
height: '10px',
|
|
16857
17234
|
color: '#EBEBEB',
|
|
16858
17235
|
size: 'large'
|
|
16859
|
-
})), React__default.createElement(Main$
|
|
17236
|
+
})), React__default.createElement(Main$3, null, React__default.createElement(CustomLine$4, {
|
|
16860
17237
|
width: '217px',
|
|
16861
17238
|
height: '10px',
|
|
16862
17239
|
color: '#EBEBEB',
|
|
@@ -16869,33 +17246,33 @@ var Template8 = function Template8(props) {
|
|
|
16869
17246
|
})));
|
|
16870
17247
|
};
|
|
16871
17248
|
|
|
16872
|
-
var _templateObject$
|
|
16873
|
-
var Container$
|
|
16874
|
-
var Header$9 = styled__default.div(_templateObject2$
|
|
16875
|
-
var HeaderLine$8 = styled__default.div(_templateObject3$
|
|
17249
|
+
var _templateObject$N, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$a;
|
|
17250
|
+
var Container$l = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
17251
|
+
var Header$9 = styled__default.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
17252
|
+
var HeaderLine$8 = styled__default.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16876
17253
|
return props.height;
|
|
16877
17254
|
}, function (props) {
|
|
16878
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
17255
|
+
return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16879
17256
|
}, function (props) {
|
|
16880
|
-
return props.size === 'small' && styled.css(_templateObject5$
|
|
17257
|
+
return props.size === 'small' && styled.css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16881
17258
|
}, function (props) {
|
|
16882
|
-
return props.size === 'medium' && styled.css(_templateObject6$
|
|
17259
|
+
return props.size === 'medium' && styled.css(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16883
17260
|
}, function (props) {
|
|
16884
|
-
return props.size === 'large' && styled.css(_templateObject7$
|
|
17261
|
+
return props.size === 'large' && styled.css(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16885
17262
|
});
|
|
16886
|
-
var CustomLine$5 = styled__default(HeaderLine$8)(_templateObject8$
|
|
17263
|
+
var CustomLine$5 = styled__default(HeaderLine$8)(_templateObject8$i || (_templateObject8$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
16887
17264
|
return props.width;
|
|
16888
17265
|
}, function (props) {
|
|
16889
17266
|
return props.height;
|
|
16890
17267
|
}, function (props) {
|
|
16891
17268
|
return props.color;
|
|
16892
17269
|
});
|
|
16893
|
-
var Main$
|
|
17270
|
+
var Main$4 = styled__default.div(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
16894
17271
|
var Circle$2 = styled__default.div(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16895
17272
|
|
|
16896
17273
|
var Template8$1 = function Template8(props) {
|
|
16897
17274
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16898
|
-
return React__default.createElement(Container$
|
|
17275
|
+
return React__default.createElement(Container$l, null, React__default.createElement(Header$9, null, React__default.createElement(CustomLine$5, {
|
|
16899
17276
|
width: '89px',
|
|
16900
17277
|
height: '10px',
|
|
16901
17278
|
color: '#EBEBEB',
|
|
@@ -16905,37 +17282,37 @@ var Template8$1 = function Template8(props) {
|
|
|
16905
17282
|
height: '10px',
|
|
16906
17283
|
color: '#EBEBEB',
|
|
16907
17284
|
size: 'large'
|
|
16908
|
-
})), React__default.createElement(Main$
|
|
17285
|
+
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
16909
17286
|
};
|
|
16910
17287
|
|
|
16911
|
-
var _templateObject$
|
|
16912
|
-
var Container$
|
|
16913
|
-
var Header$a = styled__default.div(_templateObject2$
|
|
16914
|
-
var HeaderLine$9 = styled__default.div(_templateObject3$
|
|
17288
|
+
var _templateObject$O, _templateObject2$C, _templateObject3$z, _templateObject4$u, _templateObject5$t, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$b, _templateObject11$5;
|
|
17289
|
+
var Container$m = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
17290
|
+
var Header$a = styled__default.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
17291
|
+
var HeaderLine$9 = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
16915
17292
|
return props.height;
|
|
16916
17293
|
}, function (props) {
|
|
16917
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
17294
|
+
return props.size === 'mini' && styled.css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
16918
17295
|
}, function (props) {
|
|
16919
|
-
return props.size === 'small' && styled.css(_templateObject5$
|
|
17296
|
+
return props.size === 'small' && styled.css(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
16920
17297
|
}, function (props) {
|
|
16921
|
-
return props.size === 'medium' && styled.css(_templateObject6$
|
|
17298
|
+
return props.size === 'medium' && styled.css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
16922
17299
|
}, function (props) {
|
|
16923
|
-
return props.size === 'large' && styled.css(_templateObject7$
|
|
17300
|
+
return props.size === 'large' && styled.css(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16924
17301
|
});
|
|
16925
|
-
var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$
|
|
17302
|
+
var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
16926
17303
|
return props.width;
|
|
16927
17304
|
}, function (props) {
|
|
16928
17305
|
return props.height;
|
|
16929
17306
|
}, function (props) {
|
|
16930
17307
|
return props.color;
|
|
16931
17308
|
});
|
|
16932
|
-
var GraphLine = styled__default(CustomLine$6)(_templateObject9$
|
|
16933
|
-
var Main$
|
|
16934
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
17309
|
+
var GraphLine = styled__default(CustomLine$6)(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
17310
|
+
var Main$5 = styled__default.div(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
|
|
17311
|
+
var Circle$3 = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16935
17312
|
|
|
16936
17313
|
var Template10 = function Template10(props) {
|
|
16937
17314
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
16938
|
-
return React__default.createElement(Container$
|
|
17315
|
+
return React__default.createElement(Container$m, null, React__default.createElement(Header$a, null, React__default.createElement(CustomLine$6, {
|
|
16939
17316
|
width: '89px',
|
|
16940
17317
|
height: '10px',
|
|
16941
17318
|
color: '#EBEBEB',
|
|
@@ -16945,7 +17322,7 @@ var Template10 = function Template10(props) {
|
|
|
16945
17322
|
height: '10px',
|
|
16946
17323
|
color: '#EBEBEB',
|
|
16947
17324
|
size: 'large'
|
|
16948
|
-
})), React__default.createElement(Main$
|
|
17325
|
+
})), React__default.createElement(Main$5, null, React__default.createElement(GraphLine, {
|
|
16949
17326
|
width: '27px',
|
|
16950
17327
|
height: '56px',
|
|
16951
17328
|
color: '#EBEBEB',
|
|
@@ -17052,9 +17429,9 @@ var Placeholder = function Placeholder(props) {
|
|
|
17052
17429
|
}
|
|
17053
17430
|
};
|
|
17054
17431
|
|
|
17055
|
-
var _templateObject$
|
|
17056
|
-
var Image = styled__default.img(_templateObject$
|
|
17057
|
-
var Container$
|
|
17432
|
+
var _templateObject$P, _templateObject2$D, _templateObject3$A, _templateObject4$v, _templateObject5$u;
|
|
17433
|
+
var Image = styled__default.img(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
17434
|
+
var Container$n = styled__default.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
|
|
17058
17435
|
var width = _ref.width;
|
|
17059
17436
|
|
|
17060
17437
|
switch (typeof width) {
|
|
@@ -17081,15 +17458,15 @@ var Container$o = styled__default.div(_templateObject2$C || (_templateObject2$C
|
|
|
17081
17458
|
return 'auto';
|
|
17082
17459
|
}
|
|
17083
17460
|
});
|
|
17084
|
-
var Dimmer = styled__default.div(_templateObject3$
|
|
17461
|
+
var Dimmer = styled__default.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: opacity 0.5s;\n cursor: pointer;\n\n :hover {\n opacity: 1;\n }\n"])), function (_ref3) {
|
|
17085
17462
|
var theme = _ref3.theme;
|
|
17086
17463
|
return theme.getColor('greyishBlue', 50);
|
|
17087
17464
|
});
|
|
17088
|
-
var Button$5 = styled__default(Button$1)(_templateObject4$
|
|
17465
|
+
var Button$5 = styled__default(Button$1)(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
17089
17466
|
var theme = _ref4.theme;
|
|
17090
17467
|
return theme.getColor('white', 50);
|
|
17091
17468
|
});
|
|
17092
|
-
var ModalContent = styled__default.div(_templateObject5$
|
|
17469
|
+
var ModalContent = styled__default.div(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n\n img {\n max-height: 100%;\n max-width: 100%;\n }\n"])));
|
|
17093
17470
|
|
|
17094
17471
|
var _excluded$3 = ["src", "defaultClickOptions"];
|
|
17095
17472
|
|
|
@@ -17101,7 +17478,7 @@ var Zoom = function Zoom(props) {
|
|
|
17101
17478
|
modalOpened = _useState[0],
|
|
17102
17479
|
setModalOpened = _useState[1];
|
|
17103
17480
|
|
|
17104
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
17481
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$n, Object.assign({}, imgProps, {
|
|
17105
17482
|
onClick: function onClick() {
|
|
17106
17483
|
return setModalOpened(true);
|
|
17107
17484
|
}
|
|
@@ -17125,8 +17502,8 @@ var Zoom = function Zoom(props) {
|
|
|
17125
17502
|
}))));
|
|
17126
17503
|
};
|
|
17127
17504
|
|
|
17128
|
-
var _templateObject$
|
|
17129
|
-
var Container$
|
|
17505
|
+
var _templateObject$Q, _templateObject2$E, _templateObject3$B;
|
|
17506
|
+
var Container$o = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
|
|
17130
17507
|
var theme = _ref.theme;
|
|
17131
17508
|
return theme.spacings.s4;
|
|
17132
17509
|
}, function (_ref2) {
|
|
@@ -17136,10 +17513,10 @@ var Container$p = styled__default.div(_templateObject$O || (_templateObject$O =
|
|
|
17136
17513
|
var onClick = _ref3.onClick;
|
|
17137
17514
|
|
|
17138
17515
|
if (!onClick) {
|
|
17139
|
-
return styled.css(_templateObject2$
|
|
17516
|
+
return styled.css(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n opacity: 0.3;\n pointer-events: none;\n "])));
|
|
17140
17517
|
}
|
|
17141
17518
|
|
|
17142
|
-
return styled.css(_templateObject3$
|
|
17519
|
+
return styled.css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
17143
17520
|
});
|
|
17144
17521
|
|
|
17145
17522
|
var Button$6 = function Button(props) {
|
|
@@ -17160,7 +17537,7 @@ var Button$6 = function Button(props) {
|
|
|
17160
17537
|
};
|
|
17161
17538
|
return React__default.createElement("div", {
|
|
17162
17539
|
ref: useOnClickOut(close)
|
|
17163
|
-
}, React__default.createElement(Container$
|
|
17540
|
+
}, React__default.createElement(Container$o, Object.assign({}, props, {
|
|
17164
17541
|
onClick: onClick
|
|
17165
17542
|
}), props.children, React__default.createElement(Icon, {
|
|
17166
17543
|
type: 'semantic',
|
|
@@ -17169,8 +17546,8 @@ var Button$6 = function Button(props) {
|
|
|
17169
17546
|
})), getContent(open, close));
|
|
17170
17547
|
};
|
|
17171
17548
|
|
|
17172
|
-
var _templateObject$
|
|
17173
|
-
var Container$
|
|
17549
|
+
var _templateObject$R;
|
|
17550
|
+
var Container$p = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
|
|
17174
17551
|
var _ref$theme$spacings = _ref.theme.spacings,
|
|
17175
17552
|
s1 = _ref$theme$spacings.s1,
|
|
17176
17553
|
s3 = _ref$theme$spacings.s3;
|
|
@@ -17216,7 +17593,7 @@ var Header$b = function Header(props) {
|
|
|
17216
17593
|
setSearched('');
|
|
17217
17594
|
};
|
|
17218
17595
|
|
|
17219
|
-
return React__default.createElement(Container$
|
|
17596
|
+
return React__default.createElement(Container$p, null, React__default.createElement("div", null, isString(title) ? title : title.element), withSearch && React__default.createElement(Input$5, {
|
|
17220
17597
|
type: 'search',
|
|
17221
17598
|
placeholder: 'Pesquisa',
|
|
17222
17599
|
setValue: setSearch,
|
|
@@ -17233,8 +17610,8 @@ var Header$b = function Header(props) {
|
|
|
17233
17610
|
}));
|
|
17234
17611
|
};
|
|
17235
17612
|
|
|
17236
|
-
var _templateObject$
|
|
17237
|
-
var EmptyMessage = styled__default.div(_templateObject$
|
|
17613
|
+
var _templateObject$S;
|
|
17614
|
+
var EmptyMessage = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
|
|
17238
17615
|
var lightGrey = _ref.theme.colors.lightGrey;
|
|
17239
17616
|
return lightGrey;
|
|
17240
17617
|
});
|
|
@@ -17564,22 +17941,22 @@ var Filters = Object.assign(function (props) {
|
|
|
17564
17941
|
Menu: FiltersMenu
|
|
17565
17942
|
});
|
|
17566
17943
|
|
|
17567
|
-
var _templateObject$
|
|
17568
|
-
var Container$
|
|
17944
|
+
var _templateObject$T, _templateObject2$F, _templateObject3$C, _templateObject4$w;
|
|
17945
|
+
var Container$q = styled__default(AbsoluteContainer)(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
|
|
17569
17946
|
var theme = _ref.theme;
|
|
17570
17947
|
return theme.colors.white;
|
|
17571
17948
|
}, function (_ref2) {
|
|
17572
17949
|
var s3 = _ref2.theme.spacings.s3;
|
|
17573
17950
|
return s3 + " 0 " + s3 + " " + s3;
|
|
17574
17951
|
});
|
|
17575
|
-
var Header$c = styled__default.div(_templateObject2$
|
|
17952
|
+
var Header$c = styled__default.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n padding: ", ";\n > div {\n display: flex;\n justify-content: space-between;\n }\n"])), function (_ref3) {
|
|
17576
17953
|
var s3 = _ref3.theme.spacings.s3;
|
|
17577
17954
|
return s3;
|
|
17578
17955
|
}, function (_ref4) {
|
|
17579
17956
|
var s3 = _ref4.theme.spacings.s3;
|
|
17580
17957
|
return "0 " + s3 + " " + s3 + " 0";
|
|
17581
17958
|
});
|
|
17582
|
-
var Title = styled__default.div(_templateObject3$
|
|
17959
|
+
var Title = styled__default.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n ", "\n color: ", ";\n"])), function (_ref5) {
|
|
17583
17960
|
var useTypography = _ref5.theme.useTypography;
|
|
17584
17961
|
return useTypography('p', {
|
|
17585
17962
|
fontWeight: 'bold'
|
|
@@ -17588,7 +17965,7 @@ var Title = styled__default.div(_templateObject3$B || (_templateObject3$B = _tag
|
|
|
17588
17965
|
var getColor = _ref6.theme.getColor;
|
|
17589
17966
|
return getColor('greyishBlue', 50);
|
|
17590
17967
|
});
|
|
17591
|
-
var Item = styled__default.div(_templateObject4$
|
|
17968
|
+
var Item = styled__default.div(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n align-items: center;\n\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n > div:nth-child(1) {\n flex: 1;\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n > div:nth-child(2) {\n ", "\n }\n }\n > div:nth-child(2) {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n"])), function (_ref7) {
|
|
17592
17969
|
var s1 = _ref7.theme.spacings.s1;
|
|
17593
17970
|
return s1 + " " + s1 + " " + s1 + " 0";
|
|
17594
17971
|
}, function (_ref8) {
|
|
@@ -17647,7 +18024,7 @@ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
|
|
|
17647
18024
|
});
|
|
17648
18025
|
};
|
|
17649
18026
|
|
|
17650
|
-
return React__default.createElement(Container$
|
|
18027
|
+
return React__default.createElement(Container$q, {
|
|
17651
18028
|
open: open,
|
|
17652
18029
|
width: '275px',
|
|
17653
18030
|
height: '261px',
|
|
@@ -17726,7 +18103,7 @@ var useContext$2 = function useContext() {
|
|
|
17726
18103
|
return React__default.useContext(Provider$2);
|
|
17727
18104
|
};
|
|
17728
18105
|
|
|
17729
|
-
var _templateObject$
|
|
18106
|
+
var _templateObject$U, _templateObject2$G, _templateObject3$D, _templateObject4$x, _templateObject5$v, _templateObject6$r, _templateObject7$o, _templateObject8$k, _templateObject9$i, _templateObject10$c, _templateObject11$6, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2;
|
|
17730
18107
|
var aligns = {
|
|
17731
18108
|
self: {
|
|
17732
18109
|
horizontal: {
|
|
@@ -17755,17 +18132,17 @@ var aligns = {
|
|
|
17755
18132
|
}
|
|
17756
18133
|
}
|
|
17757
18134
|
};
|
|
17758
|
-
var Col = styled__default.div(_templateObject$
|
|
18135
|
+
var Col = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n ", "\n\n padding: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
17759
18136
|
var width = _ref.width;
|
|
17760
18137
|
|
|
17761
18138
|
if (width === undefined) {
|
|
17762
|
-
return styled.css(_templateObject2$
|
|
18139
|
+
return styled.css(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n width: 100%;\n "])));
|
|
17763
18140
|
} else if (width === 'auto') {
|
|
17764
|
-
return styled.css(_templateObject3$
|
|
18141
|
+
return styled.css(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n "])));
|
|
17765
18142
|
}
|
|
17766
18143
|
|
|
17767
18144
|
var w = parseFloat(width) * 100 / 12;
|
|
17768
|
-
return styled.css(_templateObject4$
|
|
18145
|
+
return styled.css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
|
|
17769
18146
|
}, function (_ref2) {
|
|
17770
18147
|
var spacing = _ref2.spacing;
|
|
17771
18148
|
var padding = getSpacings(spacing === undefined ? 's1' : spacing);
|
|
@@ -17773,7 +18150,7 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17773
18150
|
}, function (_ref3) {
|
|
17774
18151
|
var spacingAround = _ref3.spacingAround;
|
|
17775
18152
|
if (spacingAround) return;
|
|
17776
|
-
return styled.css(_templateObject5$
|
|
18153
|
+
return styled.css(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n :first-child {\n padding-left: 0;\n }\n :last-child {\n padding-right: 0;\n }\n "])));
|
|
17777
18154
|
}, function (_ref4) {
|
|
17778
18155
|
var align = _ref4.align;
|
|
17779
18156
|
if (align === undefined) return;
|
|
@@ -17783,13 +18160,13 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17783
18160
|
if (align.self.horizontal !== undefined) {
|
|
17784
18161
|
var v = align.self.horizontal;
|
|
17785
18162
|
var a = aligns.self.horizontal;
|
|
17786
|
-
styles.push(styled.css(_templateObject6$
|
|
18163
|
+
styles.push(styled.css(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n justify-self: ", ";\n "])), a[v]));
|
|
17787
18164
|
}
|
|
17788
18165
|
|
|
17789
18166
|
if (align.self.vertical !== undefined) {
|
|
17790
18167
|
var _v = align.self.vertical;
|
|
17791
18168
|
var _a = aligns.self.vertical;
|
|
17792
|
-
styles.push(styled.css(_templateObject7$
|
|
18169
|
+
styles.push(styled.css(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n align-self: ", ";\n "])), _a[_v]));
|
|
17793
18170
|
}
|
|
17794
18171
|
}
|
|
17795
18172
|
|
|
@@ -17797,13 +18174,13 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17797
18174
|
if (align.content.horizontal !== undefined) {
|
|
17798
18175
|
var _v2 = align.content.horizontal;
|
|
17799
18176
|
var _a2 = aligns.content.horizontal;
|
|
17800
|
-
styles.push(styled.css(_templateObject8$
|
|
18177
|
+
styles.push(styled.css(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), _a2[_v2]));
|
|
17801
18178
|
}
|
|
17802
18179
|
|
|
17803
18180
|
if (align.content.vertical !== undefined) {
|
|
17804
18181
|
var _v3 = align.content.vertical;
|
|
17805
18182
|
var _a3 = aligns.content.vertical;
|
|
17806
|
-
styles.push(styled.css(_templateObject9$
|
|
18183
|
+
styles.push(styled.css(_templateObject9$i || (_templateObject9$i = _taggedTemplateLiteralLoose(["\n align-items: ", ";\n "])), _a3[_v3]));
|
|
17807
18184
|
}
|
|
17808
18185
|
}
|
|
17809
18186
|
|
|
@@ -17817,19 +18194,19 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17817
18194
|
var bordered = _ref5.bordered,
|
|
17818
18195
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17819
18196
|
if (!bordered) return;
|
|
17820
|
-
return styled.css(_templateObject11$
|
|
18197
|
+
return styled.css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17821
18198
|
}, function (_ref6) {
|
|
17822
18199
|
var fontColor = _ref6.fontColor,
|
|
17823
18200
|
theme = _ref6.theme;
|
|
17824
18201
|
if (fontColor === undefined) return;
|
|
17825
18202
|
var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
|
|
17826
|
-
return styled.css(_templateObject12$
|
|
18203
|
+
return styled.css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
|
|
17827
18204
|
}, function (_ref7) {
|
|
17828
18205
|
var backgroundColor = _ref7.backgroundColor,
|
|
17829
18206
|
theme = _ref7.theme;
|
|
17830
18207
|
if (backgroundColor === undefined) return;
|
|
17831
18208
|
var c = Array.isArray(backgroundColor) ? theme.getColor.apply(theme, backgroundColor) : theme.colors[backgroundColor];
|
|
17832
|
-
return styled.css(_templateObject13$
|
|
18209
|
+
return styled.css(_templateObject13$3 || (_templateObject13$3 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), c);
|
|
17833
18210
|
}, function (_ref8) {
|
|
17834
18211
|
var hover = _ref8.hover,
|
|
17835
18212
|
theme = _ref8.theme;
|
|
@@ -17860,17 +18237,17 @@ var useContext$3 = function useContext() {
|
|
|
17860
18237
|
return React__default.useContext(Provider$3);
|
|
17861
18238
|
};
|
|
17862
18239
|
|
|
17863
|
-
var _templateObject$
|
|
17864
|
-
var Grid = styled__default.div(_templateObject$
|
|
18240
|
+
var _templateObject$V, _templateObject2$H, _templateObject3$E;
|
|
18241
|
+
var Grid = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
17865
18242
|
var spacing = _ref.spacing;
|
|
17866
18243
|
if (spacing === undefined) return;
|
|
17867
18244
|
var padding = getSpacings(spacing);
|
|
17868
|
-
return styled.css(_templateObject2$
|
|
18245
|
+
return styled.css(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), padding);
|
|
17869
18246
|
}, function (_ref2) {
|
|
17870
18247
|
var borderless = _ref2.borderless,
|
|
17871
18248
|
lightestGrey = _ref2.theme.colors.lightestGrey;
|
|
17872
18249
|
if (borderless) return;
|
|
17873
|
-
return styled.css(_templateObject3$
|
|
18250
|
+
return styled.css(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n "])), lightestGrey);
|
|
17874
18251
|
});
|
|
17875
18252
|
|
|
17876
18253
|
var Grid$1 = function Grid$1(props) {
|
|
@@ -17885,7 +18262,7 @@ var Grid$1 = function Grid$1(props) {
|
|
|
17885
18262
|
}, React__default.createElement(Grid, Object.assign({}, gridProps)));
|
|
17886
18263
|
};
|
|
17887
18264
|
|
|
17888
|
-
var _templateObject$
|
|
18265
|
+
var _templateObject$W, _templateObject2$I, _templateObject3$F, _templateObject4$y, _templateObject5$w, _templateObject6$s, _templateObject7$p, _templateObject8$l, _templateObject9$j, _templateObject10$d;
|
|
17889
18266
|
var horizontalAligns = {
|
|
17890
18267
|
around: 'space-around',
|
|
17891
18268
|
between: 'space-between',
|
|
@@ -17898,23 +18275,23 @@ var verticalAligns = {
|
|
|
17898
18275
|
top: 'start',
|
|
17899
18276
|
bottom: 'end'
|
|
17900
18277
|
};
|
|
17901
|
-
var Row = styled__default.div(_templateObject$
|
|
18278
|
+
var Row = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n color: ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
17902
18279
|
var spacing = _ref.spacing;
|
|
17903
18280
|
if (spacing === undefined) return;
|
|
17904
18281
|
var padding = getSpacings(spacing);
|
|
17905
|
-
return styled.css(_templateObject2$
|
|
18282
|
+
return styled.css(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), padding);
|
|
17906
18283
|
}, function (_ref2) {
|
|
17907
18284
|
var spacingAround = _ref2.spacingAround;
|
|
17908
18285
|
if (spacingAround) return;
|
|
17909
|
-
return styled.css(_templateObject3$
|
|
18286
|
+
return styled.css(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n :first-child {\n padding-top: 0;\n }\n :last-child {\n padding-bottom: 0;\n }\n "])));
|
|
17910
18287
|
}, function (_ref3) {
|
|
17911
18288
|
var horizontalAlign = _ref3.horizontalAlign;
|
|
17912
18289
|
if (horizontalAlign === undefined) return;
|
|
17913
|
-
return styled.css(_templateObject4$
|
|
18290
|
+
return styled.css(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
|
|
17914
18291
|
}, function (_ref4) {
|
|
17915
18292
|
var verticalAlign = _ref4.verticalAlign;
|
|
17916
18293
|
if (verticalAlign === undefined) return;
|
|
17917
|
-
return styled.css(_templateObject5$
|
|
18294
|
+
return styled.css(_templateObject5$w || (_templateObject5$w = _taggedTemplateLiteralLoose(["\n align-items: ", ";\n "])), verticalAligns[verticalAlign]);
|
|
17918
18295
|
}, function (_ref5) {
|
|
17919
18296
|
var striped = _ref5.striped,
|
|
17920
18297
|
backgroundColor = _ref5.backgroundColor,
|
|
@@ -17922,11 +18299,11 @@ var Row = styled__default.div(_templateObject$U || (_templateObject$U = _taggedT
|
|
|
17922
18299
|
|
|
17923
18300
|
if (backgroundColor !== undefined) {
|
|
17924
18301
|
var c = Array.isArray(backgroundColor) ? theme.getColor.apply(theme, backgroundColor) : theme.colors[backgroundColor];
|
|
17925
|
-
return styled.css(_templateObject6$
|
|
18302
|
+
return styled.css(_templateObject6$s || (_templateObject6$s = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), c);
|
|
17926
18303
|
}
|
|
17927
18304
|
|
|
17928
18305
|
if (striped === undefined) {
|
|
17929
|
-
return styled.css(_templateObject7$
|
|
18306
|
+
return styled.css(_templateObject7$p || (_templateObject7$p = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.colors.white);
|
|
17930
18307
|
}
|
|
17931
18308
|
|
|
17932
18309
|
var config = striped === true ? {
|
|
@@ -17942,7 +18319,7 @@ var Row = styled__default.div(_templateObject$U || (_templateObject$U = _taggedT
|
|
|
17942
18319
|
even: theme.colors.white,
|
|
17943
18320
|
odd: theme.colors.white
|
|
17944
18321
|
});
|
|
17945
|
-
return styled.css(_templateObject8$
|
|
18322
|
+
return styled.css(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n :nth-child(even) {\n background-color: ", ";\n }\n :nth-child(odd) {\n background-color: ", ";\n }\n "])), colors.even, colors.odd);
|
|
17946
18323
|
}, function (_ref6) {
|
|
17947
18324
|
var fontColor = _ref6.fontColor,
|
|
17948
18325
|
theme = _ref6.theme;
|
|
@@ -17953,7 +18330,7 @@ var Row = styled__default.div(_templateObject$U || (_templateObject$U = _taggedT
|
|
|
17953
18330
|
var borderless = _ref7.borderless,
|
|
17954
18331
|
lightestGrey = _ref7.theme.colors.lightestGrey;
|
|
17955
18332
|
if (borderless) return;
|
|
17956
|
-
return styled.css(_templateObject9$
|
|
18333
|
+
return styled.css(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17957
18334
|
}, function (_ref8) {
|
|
17958
18335
|
var hover = _ref8.hover,
|
|
17959
18336
|
theme = _ref8.theme;
|
|
@@ -17990,14 +18367,14 @@ var theme$1 = {
|
|
|
17990
18367
|
button: theme
|
|
17991
18368
|
};
|
|
17992
18369
|
|
|
17993
|
-
var _templateObject$
|
|
17994
|
-
var FontStyles = styled.createGlobalStyle(_templateObject$
|
|
18370
|
+
var _templateObject$X;
|
|
18371
|
+
var FontStyles = styled.createGlobalStyle(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n"])));
|
|
17995
18372
|
|
|
17996
18373
|
var Globals = function Globals() {
|
|
17997
18374
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(FontStyles, null));
|
|
17998
18375
|
};
|
|
17999
18376
|
|
|
18000
|
-
var _templateObject$
|
|
18377
|
+
var _templateObject$Y;
|
|
18001
18378
|
|
|
18002
18379
|
var getColor$1 = function getColor(color, opacity) {
|
|
18003
18380
|
if (opacity === void 0) {
|
|
@@ -18016,7 +18393,7 @@ var useTypography = function useTypography(typography, options) {
|
|
|
18016
18393
|
fontFamily = _typographies$typogra.fontFamily,
|
|
18017
18394
|
fontWeight = _typographies$typogra.fontWeight,
|
|
18018
18395
|
fontSize = _typographies$typogra.fontSize;
|
|
18019
|
-
return styled.css(_templateObject$
|
|
18396
|
+
return styled.css(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, options.fontWeight || fontWeight, fontSize);
|
|
18020
18397
|
};
|
|
18021
18398
|
|
|
18022
18399
|
var isDarkColor = function isDarkColor(color, ifDark, ifLight) {
|
|
@@ -18069,13 +18446,12 @@ Object.keys(reactCalendar).forEach(function (k) {
|
|
|
18069
18446
|
}
|
|
18070
18447
|
});
|
|
18071
18448
|
});
|
|
18072
|
-
exports.
|
|
18449
|
+
exports.ReactCalendar = reactCalendar;
|
|
18073
18450
|
exports.MwAbsoluteContainer = AbsoluteContainer;
|
|
18074
18451
|
exports.MwAppliedFilters = AppliedFilters;
|
|
18075
18452
|
exports.MwButton = Button$1;
|
|
18076
|
-
exports.
|
|
18453
|
+
exports.MwCalendar = Calendar;
|
|
18077
18454
|
exports.MwCard = Card;
|
|
18078
|
-
exports.MwDatePicker = Calendar;
|
|
18079
18455
|
exports.MwEllipsisContainer = EllipsisContainer$1;
|
|
18080
18456
|
exports.MwFilters = Filters;
|
|
18081
18457
|
exports.MwGrid = Grid$2;
|