@mw-kit/mw-ui 1.0.17 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,14 +48,125 @@ function _taggedTemplateLiteralLoose(strings, raw) {
48
48
  return strings;
49
49
  }
50
50
 
51
+ var colors = {
52
+ white: '#FFFFFF',
53
+ iceWhite: '#F9F8F8',
54
+ black: '#000000',
55
+ blue: '#3455AB',
56
+ lightBlue: '#2D9AFF',
57
+ darkestBlue: '#121B2E',
58
+ darkBlue: '#192338',
59
+ greyishBlue: '#263046',
60
+ darkSilver: '#525A6A',
61
+ silver: '#B2B2B2',
62
+ darkestGrey: '#989898',
63
+ darkGrey: '#949494',
64
+ grey: '#ADADAD',
65
+ lightGrey: '#C8C8C8',
66
+ lightestGrey: '#E2E2E3',
67
+ purple: '#8E66BB',
68
+ orange: '#FB8702',
69
+ yellow: '#FBCB01',
70
+ red: '#C31717',
71
+ darkestGreen: '#1E561F',
72
+ darkGreen: '#129105',
73
+ green: '#76B100',
74
+ lightGreen: '#66BB6A',
75
+ pink: '#E23851',
76
+ brown: '#9F3A38',
77
+ vanilla: '#CCBEA0',
78
+ bronze: '#7A4D05',
79
+ warningGray: '#E6E6E6',
80
+ warningYellow: '#FBCF30',
81
+ warningRed: '#EF5350',
82
+ floralWhite: '#FFFAF3',
83
+ snowWhite: '#FFF6F6',
84
+ milkWhite: '#FCFFF5'
85
+ };
86
+ var opacities = {
87
+ 100: 'FF',
88
+ 95: 'F2',
89
+ 90: 'E6',
90
+ 85: 'D9',
91
+ 80: 'CC',
92
+ 75: 'BF',
93
+ 70: 'B3',
94
+ 65: 'A6',
95
+ 60: '99',
96
+ 55: '8C',
97
+ 50: '80',
98
+ 45: '73',
99
+ 40: '66',
100
+ 35: '59',
101
+ 30: '4D',
102
+ 25: '40',
103
+ 20: '33',
104
+ 15: '26',
105
+ 10: '1A',
106
+ 5: '0D',
107
+ 0: '00'
108
+ };
109
+ var spacings = {
110
+ s1: '7px',
111
+ s2: '8px',
112
+ s3: '14px',
113
+ s4: '21px',
114
+ s5: '28px',
115
+ s6: '35px'
116
+ };
117
+ var fonts = {
118
+ lato: '"Lato", sans-serif'
119
+ };
120
+ var typographies = {
121
+ h1: {
122
+ fontFamily: fonts.lato,
123
+ fontWeight: 'bold',
124
+ fontSize: '18px'
125
+ },
126
+ h2: {
127
+ fontFamily: fonts.lato,
128
+ fontWeight: 'bold',
129
+ fontSize: '16px'
130
+ },
131
+ h3: {
132
+ fontFamily: fonts.lato,
133
+ fontWeight: 'normal',
134
+ fontSize: '16px'
135
+ },
136
+ h4: {
137
+ fontFamily: fonts.lato,
138
+ fontWeight: 'bold',
139
+ fontSize: '14px'
140
+ },
141
+ h5: {
142
+ fontFamily: fonts.lato,
143
+ fontWeight: 'normal',
144
+ fontSize: '14px'
145
+ },
146
+ h6: {
147
+ fontFamily: fonts.lato,
148
+ fontWeight: 'normal',
149
+ fontSize: '13px'
150
+ },
151
+ p: {
152
+ fontFamily: fonts.lato,
153
+ fontWeight: 'normal',
154
+ fontSize: '14px'
155
+ }
156
+ };
157
+
158
+ var isKeyOf = function isKeyOf(object, key) {
159
+ return Object.prototype.hasOwnProperty.call(object, key);
160
+ };
161
+
51
162
  var notEmptyString = function notEmptyString(value) {
52
163
  return typeof value === 'string' && value.trim() !== '';
53
164
  };
54
165
  var isObject = function isObject(value) {
55
166
  return Object.prototype.toString.call(value) === '[object Object]';
56
167
  };
57
- var isKeyOf = function isKeyOf(object, key) {
58
- return Object.prototype.hasOwnProperty.call(object, key);
168
+ var isString = function isString(value) {
169
+ return typeof value === 'string';
59
170
  };
60
171
 
61
172
  var filterObject = function filterObject(object, keys, inital) {
@@ -79,6 +190,39 @@ var isoStringToDate = function isoStringToDate(value) {
79
190
  var date = new Date(value.split('/').reverse().join('-') + ' 00:00:00');
80
191
  return isNaN(date.getTime()) ? null : date;
81
192
  };
193
+ var getSpacings = function getSpacings(value, defaults) {
194
+ var d = {
195
+ top: 's1',
196
+ left: 's1',
197
+ bottom: 's1',
198
+ right: 's1'
199
+ };
200
+
201
+ if (defaults) {
202
+ if (typeof defaults === 'string') {
203
+ d.top = defaults;
204
+ d.left = defaults;
205
+ d.bottom = defaults;
206
+ d.right = defaults;
207
+ } else {
208
+ d = _extends({}, d, defaults);
209
+ }
210
+ }
211
+
212
+ var spacing = typeof value === 'string' ? {
213
+ top: value,
214
+ left: value,
215
+ bottom: value,
216
+ right: value
217
+ } : _extends({}, d, value);
218
+ var values = {
219
+ top: isKeyOf(spacings, spacing.top) ? spacings[spacing.top] : spacing.top,
220
+ left: isKeyOf(spacings, spacing.left) ? spacings[spacing.left] : spacing.left,
221
+ bottom: isKeyOf(spacings, spacing.bottom) ? spacings[spacing.bottom] : spacing.bottom,
222
+ right: isKeyOf(spacings, spacing.right) ? spacings[spacing.right] : spacing.right
223
+ };
224
+ return values.top + " " + values.right + " " + values.bottom + " " + values.left;
225
+ };
82
226
 
83
227
  var _templateObject, _templateObject2, _templateObject3;
84
228
  var loader = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n"])));
@@ -241,113 +385,6 @@ var Button$1 = function Button$1(props) {
241
385
  }));
242
386
  };
243
387
 
244
- var colors = {
245
- white: '#FFFFFF',
246
- iceWhite: '#F9F8F8',
247
- black: '#000000',
248
- blue: '#3455AB',
249
- lightBlue: '#2D9AFF',
250
- darkestBlue: '#121B2E',
251
- darkBlue: '#192338',
252
- greyishBlue: '#263046',
253
- darkSilver: '#525A6A',
254
- silver: '#B2B2B2',
255
- darkestGrey: '#989898',
256
- darkGrey: '#949494',
257
- grey: '#ADADAD',
258
- lightGrey: '#C8C8C8',
259
- lightestGrey: '#E2E2E3',
260
- purple: '#8E66BB',
261
- orange: '#FB8702',
262
- yellow: '#FBCB01',
263
- red: '#C31717',
264
- darkestGreen: '#1E561F',
265
- darkGreen: '#129105',
266
- green: '#76B100',
267
- lightGreen: '#66BB6A',
268
- pink: '#E23851',
269
- brown: '#9F3A38',
270
- vanilla: '#CCBEA0',
271
- bronze: '#7A4D05',
272
- warningGray: '#E6E6E6',
273
- warningYellow: '#FBCF30',
274
- warningRed: '#EF5350',
275
- floralWhite: '#FFFAF3',
276
- snowWhite: '#FFF6F6',
277
- milkWhite: '#FCFFF5'
278
- };
279
- var opacities = {
280
- 100: 'FF',
281
- 95: 'F2',
282
- 90: 'E6',
283
- 85: 'D9',
284
- 80: 'CC',
285
- 75: 'BF',
286
- 70: 'B3',
287
- 65: 'A6',
288
- 60: '99',
289
- 55: '8C',
290
- 50: '80',
291
- 45: '73',
292
- 40: '66',
293
- 35: '59',
294
- 30: '4D',
295
- 25: '40',
296
- 20: '33',
297
- 15: '26',
298
- 10: '1A',
299
- 5: '0D',
300
- 0: '00'
301
- };
302
- var spacings = {
303
- s1: '7px',
304
- s2: '8px',
305
- s3: '14px',
306
- s4: '21px',
307
- s5: '28px',
308
- s6: '35px'
309
- };
310
- var fonts = {
311
- lato: '"Lato", sans-serif'
312
- };
313
- var typographies = {
314
- h1: {
315
- fontFamily: fonts.lato,
316
- fontWeight: 'bold',
317
- fontSize: '18px'
318
- },
319
- h2: {
320
- fontFamily: fonts.lato,
321
- fontWeight: 'bold',
322
- fontSize: '16px'
323
- },
324
- h3: {
325
- fontFamily: fonts.lato,
326
- fontWeight: 'normal',
327
- fontSize: '16px'
328
- },
329
- h4: {
330
- fontFamily: fonts.lato,
331
- fontWeight: 'bold',
332
- fontSize: '14px'
333
- },
334
- h5: {
335
- fontFamily: fonts.lato,
336
- fontWeight: 'normal',
337
- fontSize: '14px'
338
- },
339
- h6: {
340
- fontFamily: fonts.lato,
341
- fontWeight: 'normal',
342
- fontSize: '13px'
343
- },
344
- p: {
345
- fontFamily: fonts.lato,
346
- fontWeight: 'normal',
347
- fontSize: '14px'
348
- }
349
- };
350
-
351
388
  var _path;
352
389
 
353
390
  function _extends$1() {
@@ -11738,15 +11775,44 @@ var TextArea = function TextArea(props) {
11738
11775
  return React__default.createElement(Container, Object.assign({}, props));
11739
11776
  };
11740
11777
 
11741
- var _templateObject$4, _templateObject2$3, _templateObject3$3;
11742
- var Container$1 = styled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n"])), function (_ref) {
11778
+ var _templateObject$4;
11779
+ var EllipsisContainer = styled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
11780
+
11781
+ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
11782
+ var myProps = _extends({}, props);
11783
+
11784
+ var _onMouseOver = myProps.onMouseOver || function () {};
11785
+
11786
+ myProps.onMouseOver = function (event) {
11787
+ _onMouseOver(event);
11788
+
11789
+ var target = event.target;
11790
+
11791
+ while (target && !('ellipsis' in target.dataset)) {
11792
+ target = target.parentElement;
11793
+ }
11794
+
11795
+ if (!target) return;
11796
+
11797
+ if (target.scrollWidth > target.offsetWidth) {
11798
+ target.title = target.innerText;
11799
+ } else target.removeAttribute('title');
11800
+ };
11801
+
11802
+ return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
11803
+ "data-ellipsis": ''
11804
+ }));
11805
+ };
11806
+
11807
+ var _templateObject$5, _templateObject2$3, _templateObject3$3, _templateObject4$2;
11808
+ var Container$1 = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n"])), function (_ref) {
11743
11809
  var theme = _ref.theme;
11744
11810
  return theme.useTypography('p');
11745
11811
  }, function (_ref2) {
11746
11812
  var theme = _ref2.theme;
11747
11813
  return theme.spacings.s1;
11748
11814
  });
11749
- var OverflowContainer = styled.div(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n max-height: 100%;\n width: 100%;\n\n ", "\n\n scrollbar-color: ", ";\n scrollbar-width: auto;\n\n ::-webkit-scrollbar {\n width: 7px;\n }\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n padding-right: calc(", " * 1.5);\n"])), function (_ref3) {
11815
+ var OverflowContainer = styled.div(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n max-height: 100%;\n width: 100%;\n\n ", "\n\n scrollbar-color: ", ";\n scrollbar-width: auto;\n\n ::-webkit-scrollbar {\n width: 7px;\n }\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ", ";\n"])), function (_ref3) {
11750
11816
  var height = _ref3.height;
11751
11817
  if (!height) return;
11752
11818
  return css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
@@ -11760,8 +11826,10 @@ var OverflowContainer = styled.div(_templateObject2$3 || (_templateObject2$3 = _
11760
11826
  var theme = _ref6.theme;
11761
11827
  return theme.colors.white;
11762
11828
  }, function (_ref7) {
11763
- var theme = _ref7.theme;
11764
- return theme.spacings.s1;
11829
+ var spacing = _ref7.spacing,
11830
+ theme = _ref7.theme;
11831
+ var value = getSpacings(spacing || '0', '0').split(' ');
11832
+ return css(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 1.5) ", "\n ", ";\n "])), value[0], theme.spacings.s1, value[2], value[3]);
11765
11833
  });
11766
11834
 
11767
11835
  var ScrollContainer = function ScrollContainer(props) {
@@ -11802,11 +11870,11 @@ var ScrollContainer = function ScrollContainer(props) {
11802
11870
  })), after);
11803
11871
  };
11804
11872
 
11805
- var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$2, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
11873
+ var _templateObject$6, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
11806
11874
  var positions = {
11807
11875
  'top right': function topRight(_ref) {
11808
11876
  var left = _ref.left;
11809
- return css(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n top: 0;\n left: ", ";\n "])), left || '100%');
11877
+ return css(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n top: 0;\n left: ", ";\n "])), left || '100%');
11810
11878
  },
11811
11879
  'top left': function topLeft(_ref2) {
11812
11880
  var right = _ref2.right;
@@ -11818,7 +11886,7 @@ var positions = {
11818
11886
  },
11819
11887
  'bottom left': function bottomLeft(_ref4) {
11820
11888
  var right = _ref4.right;
11821
- return css(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n right: ", ";\n "])), right || '100%');
11889
+ return css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n right: ", ";\n "])), right || '100%');
11822
11890
  },
11823
11891
  'right top': function rightTop(_ref5) {
11824
11892
  var bottom = _ref5.bottom;
@@ -11837,7 +11905,7 @@ var positions = {
11837
11905
  return css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n top: ", ";\n left: 0;\n "])), top || '100%');
11838
11906
  }
11839
11907
  };
11840
- var Container$2 = styled.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n ", ";\n box-shadow: 0px 3px 6px ", ";\n border: 1px solid ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n position: absolute;\n display: flex;\n\n ", "\n\n ", "\n"])), function (_ref9) {
11908
+ var Container$2 = styled.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n ", ";\n\n > div {\n box-shadow: 0px 3px 6px ", ";\n border: 1px solid ", ";\n }\n\n z-index: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n position: absolute;\n\n ", "\n\n ", "\n"])), function (_ref9) {
11841
11909
  var theme = _ref9.theme;
11842
11910
  return theme.useTypography('p');
11843
11911
  }, function (_ref10) {
@@ -11847,27 +11915,30 @@ var Container$2 = styled.div(_templateObject9$1 || (_templateObject9$1 = _tagged
11847
11915
  var theme = _ref11.theme;
11848
11916
  return theme.colors.lightestGrey;
11849
11917
  }, function (_ref12) {
11850
- var width = _ref12.width;
11918
+ var zIndex = _ref12.zIndex;
11919
+ return zIndex || 1;
11920
+ }, function (_ref13) {
11921
+ var width = _ref13.width;
11851
11922
  if (!width) return;
11852
11923
  return css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
11853
- }, function (_ref13) {
11854
- var height = _ref13.height;
11924
+ }, function (_ref14) {
11925
+ var height = _ref14.height;
11855
11926
  if (!height) return;
11856
11927
  return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
11857
- }, function (_ref14) {
11858
- var maxWidth = _ref14.maxWidth;
11928
+ }, function (_ref15) {
11929
+ var maxWidth = _ref15.maxWidth;
11859
11930
  if (!maxWidth) return;
11860
11931
  return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n "])), maxWidth);
11861
- }, function (_ref15) {
11862
- var maxHeight = _ref15.maxHeight;
11932
+ }, function (_ref16) {
11933
+ var maxHeight = _ref16.maxHeight;
11863
11934
  if (!maxHeight) return;
11864
11935
  return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n max-height: ", ";\n "])), maxHeight);
11865
- }, function (_ref16) {
11866
- var position = _ref16.position,
11867
- references = _ref16.references;
11868
- return positions[position](references || {});
11869
11936
  }, function (_ref17) {
11870
- var firstRender = _ref17.firstRender;
11937
+ var position = _ref17.position,
11938
+ references = _ref17.references;
11939
+ return positions[position](references || {});
11940
+ }, function (_ref18) {
11941
+ var firstRender = _ref18.firstRender;
11871
11942
  if (!firstRender) return;
11872
11943
  return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n visibility: hidden;\n "])));
11873
11944
  });
@@ -11910,16 +11981,16 @@ var AbsoluteContainer = function AbsoluteContainer(props) {
11910
11981
  setPosition(newPosition);
11911
11982
  setFirstRender(false);
11912
11983
  }, [ref]);
11913
- var htmlProps = filterObject(props, ['center', 'position', 'disableAutoPosition']);
11984
+ var htmlProps = filterObject(props, ['center', 'position', 'disableAutoPosition', 'children']);
11914
11985
  return React__default.createElement(Container$2, Object.assign({}, htmlProps, {
11915
11986
  position: position,
11916
11987
  ref: setRef,
11917
11988
  firstRender: firstRender
11918
- }));
11989
+ }), React__default.createElement("div", null, props.children));
11919
11990
  };
11920
11991
 
11921
- var _templateObject$6, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2;
11922
- var Option = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
11992
+ var _templateObject$7, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2;
11993
+ var Option = styled.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
11923
11994
  var theme = _ref.theme;
11924
11995
  return theme.useTypography('p');
11925
11996
  }, function (_ref2) {
@@ -11937,13 +12008,13 @@ var Option = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplat
11937
12008
  var theme = _ref4.theme;
11938
12009
  return theme.colors.iceWhite;
11939
12010
  });
11940
- var Container$3 = styled(AbsoluteContainer)(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n }\n\n ", "\n\n ", "\n"])), function (_ref5) {
12011
+ var Container$3 = styled(AbsoluteContainer)(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n > div {\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref5) {
11941
12012
  var theme = _ref5.theme;
11942
12013
  return theme.colors.white;
11943
12014
  }, function (_ref6) {
11944
12015
  var bordered = _ref6.bordered;
11945
12016
  if (!bordered) return;
11946
- return css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref7) {
12017
+ return css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref7) {
11947
12018
  var theme = _ref7.theme;
11948
12019
  return theme.getColor('greyishBlue', 10);
11949
12020
  });
@@ -11951,11 +12022,13 @@ var Container$3 = styled(AbsoluteContainer)(_templateObject4$3 || (_templateObje
11951
12022
  var theme = props.theme;
11952
12023
 
11953
12024
  if (!props.spacing) {
11954
- return css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
12025
+ return css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
11955
12026
  }
11956
12027
 
11957
- var spacing = props.spacing;
11958
- return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", " 0px ", "\n ", ";\n }\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Option, theme.spacings[spacing], theme.spacings[spacing], theme.spacings[spacing], Delimiter, theme.spacings[spacing], theme.spacings[spacing], theme.spacings[spacing]);
12028
+ var spacing = getSpacings(props.spacing, {
12029
+ right: '0'
12030
+ });
12031
+ return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
11959
12032
  });
11960
12033
  var Delimiter = styled.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref8) {
11961
12034
  var theme = _ref8.theme;
@@ -11983,7 +12056,8 @@ var Menu = function Menu(props) {
11983
12056
  onScrollEnd = _props.onScrollEnd,
11984
12057
  before = _props.before,
11985
12058
  after = _props.after,
11986
- scrollHeight = _props.scrollHeight;
12059
+ scrollHeight = _props.scrollHeight,
12060
+ scrollSpacing = _props.scrollSpacing;
11987
12061
 
11988
12062
  var _useState = useState(-1),
11989
12063
  activeOption = _useState[0],
@@ -12000,11 +12074,13 @@ var Menu = function Menu(props) {
12000
12074
 
12001
12075
  var submenuProps = options[index].submenu;
12002
12076
 
12003
- if (submenuProps === undefined) {
12077
+ if (!submenuProps) {
12004
12078
  return;
12005
12079
  }
12006
12080
 
12007
12081
  return React__default.createElement(Menu, Object.assign({}, props, submenuProps, {
12082
+ onScrollEnd: submenuProps.onScrollEnd,
12083
+ axis: 'x',
12008
12084
  open: true,
12009
12085
  close: function close() {
12010
12086
  return setActiveOption(-1);
@@ -12028,14 +12104,19 @@ var Menu = function Menu(props) {
12028
12104
  onScrollEnd: onScrollEnd,
12029
12105
  before: before,
12030
12106
  after: after,
12031
- height: scrollHeight
12107
+ height: scrollHeight,
12108
+ spacing: scrollSpacing
12032
12109
  }, options.map(function (option, index) {
12033
12110
  var _option = _extends({}, option),
12034
- label = _option.label,
12035
12111
  delimiter = _option.delimiter,
12036
- keepOpen = _option.keepOpen;
12037
-
12038
- var closeMenu = keepOpen ? function () {} : close;
12112
+ keepOpen = _option.keepOpen,
12113
+ submenu = _option.submenu;
12114
+
12115
+ var label = isString(option.label) ? {
12116
+ text: option.label,
12117
+ element: option.label
12118
+ } : option.label;
12119
+ var closeMenu = keepOpen || submenu ? function () {} : close;
12039
12120
  var onClick;
12040
12121
  var disabled;
12041
12122
 
@@ -12089,12 +12170,16 @@ var Menu = function Menu(props) {
12089
12170
  }, React__default.createElement(Option, {
12090
12171
  onClick: onClick,
12091
12172
  disabled: disabled
12092
- }, label), delimiter && React__default.createElement(Delimiter, null));
12173
+ }, isString(label.element) ? React__default.createElement(EllipsisContainer$1, null, label.element) : label.element, submenu && React__default.createElement(Icon, {
12174
+ type: 'semantic',
12175
+ icon: 'caret right',
12176
+ width: '14px'
12177
+ })), delimiter && React__default.createElement(Delimiter, null));
12093
12178
  })), getSubmenu(activeOption));
12094
12179
  };
12095
12180
 
12096
- var _templateObject$7, _templateObject2$6, _templateObject3$6, _templateObject4$4, _templateObject5$4, _templateObject6$3;
12097
- var Container$4 = styled.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n div {\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n\n span {\n display: inline-block;\n margin-left: 8px;\n color: ", ";\n }\n"])), function (_ref) {
12181
+ var _templateObject$8, _templateObject2$6, _templateObject3$6, _templateObject4$5, _templateObject5$4, _templateObject6$3;
12182
+ var Container$4 = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n div {\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n\n span {\n display: inline-block;\n margin-left: 8px;\n color: ", ";\n }\n"])), function (_ref) {
12098
12183
  var props = _ref.props;
12099
12184
  return props.size === 'medium' ? '15px' : '6px';
12100
12185
  }, function (_ref2) {
@@ -12114,7 +12199,7 @@ var Container$4 = styled.div(_templateObject$7 || (_templateObject$7 = _taggedTe
12114
12199
  });
12115
12200
  }, function (_ref7) {
12116
12201
  var props = _ref7.props;
12117
- return props.type === 'danger' && css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref8) {
12202
+ return props.type === 'danger' && css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref8) {
12118
12203
  var theme = _ref8.theme;
12119
12204
  return theme.colors.warningRed;
12120
12205
  });
@@ -12140,8 +12225,8 @@ var Indicator = function Indicator(props) {
12140
12225
  }, React__default.createElement("div", null), React__default.createElement("span", null, " ", props.description, " "));
12141
12226
  };
12142
12227
 
12143
- var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$3;
12144
- var Container$5 = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
12228
+ var _templateObject$9, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$3;
12229
+ var Container$5 = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
12145
12230
  var Progress = styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
12146
12231
  return props.value + "%";
12147
12232
  }, function (props) {
@@ -12150,7 +12235,7 @@ var Progress = styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTem
12150
12235
  return theme.colors.warningGray;
12151
12236
  });
12152
12237
  }, function (props) {
12153
- return props.type === 'info' && css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
12238
+ return props.type === 'info' && css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
12154
12239
  var theme = _ref2.theme;
12155
12240
  return theme.colors.blue;
12156
12241
  });
@@ -12210,8 +12295,8 @@ function SvgClose(props) {
12210
12295
  })));
12211
12296
  }
12212
12297
 
12213
- var _templateObject$9, _templateObject2$8, _templateObject3$8, _templateObject4$6, _templateObject5$6, _templateObject6$5;
12214
- var Container$6 = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n display: block;\n border-bottom-style: solid;\n\n ", "\n"])), function (_ref) {
12298
+ var _templateObject$a, _templateObject2$8, _templateObject3$8, _templateObject4$7, _templateObject5$6, _templateObject6$5;
12299
+ var Container$6 = styled.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: block;\n border-bottom-style: solid;\n\n ", "\n"])), function (_ref) {
12215
12300
  var theme = _ref.theme,
12216
12301
  internal = _ref.internal;
12217
12302
  return css(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n border-bottom-width: ", ";\n border-bottom-color: ", ";\n "])), theme.spacings.s2, internal ? '1px' : '2px', internal ? theme.getColor('lightestGrey', 50) : theme.colors.blue);
@@ -12219,7 +12304,7 @@ var Container$6 = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTe
12219
12304
  var Tabs = styled.ul(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n user-select: none;\n list-style: none;\n display: inline-flex;\n gap: 1px;\n padding: 0;\n margin: 0;\n\n ", "\n"])), function (_ref2) {
12220
12305
  var theme = _ref2.theme,
12221
12306
  internal = _ref2.internal;
12222
- return css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n height: ", ";\n box-shadow: 0 0 10px 0 ", ";\n "])), internal ? '41px' : '49px', theme.getColor('black', 10));
12307
+ return css(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n height: ", ";\n box-shadow: 0 0 10px 0 ", ";\n "])), internal ? '41px' : '49px', theme.getColor('black', 10));
12223
12308
  });
12224
12309
  var Tab = styled.li(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-radius: 4px 4px 0 0;\n\n svg {\n transform: scale(calc(18 / 24));\n stroke-width: 2px;\n }\n\n ", "\n"])), function (_ref3) {
12225
12310
  var theme = _ref3.theme,
@@ -12313,8 +12398,8 @@ var getMask = function getMask(mask) {
12313
12398
  };
12314
12399
  };
12315
12400
 
12316
- var _templateObject$a, _templateObject2$9, _templateObject3$9, _templateObject4$7, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$2, _templateObject10$2;
12317
- var IconContainer = styled.button(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " + 1px);\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
12401
+ var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$2, _templateObject10$2, _templateObject11$1;
12402
+ var IconContainer = styled.button(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " + 1px);\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
12318
12403
  var theme = _ref.theme;
12319
12404
  return theme.spacings.s2;
12320
12405
  }, function (_ref2) {
@@ -12323,7 +12408,7 @@ var IconContainer = styled.button(_templateObject$a || (_templateObject$a = _tag
12323
12408
  if (!onClick || disabled) return;
12324
12409
  return css(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12325
12410
  });
12326
- var Input = styled.input(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n\n ", "\n }\n\n width: 100%;\n box-sizing: border-box;\n\n padding: ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n background-color: ", ";\n\n box-shadow: none;\n outline: none;\n"])), function (_ref3) {
12411
+ var Input = styled.input(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n\n ", "\n }\n\n width: 100%;\n box-sizing: border-box;\n\n padding: ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n background-color: ", ";\n\n box-shadow: none;\n outline: none;\n\n ", "\n"])), function (_ref3) {
12327
12412
  var theme = _ref3.theme;
12328
12413
  return theme.useTypography('p');
12329
12414
  }, function (_ref4) {
@@ -12338,7 +12423,7 @@ var Input = styled.input(_templateObject3$9 || (_templateObject3$9 = _taggedTemp
12338
12423
  var placeholder = _ref6.placeholder;
12339
12424
 
12340
12425
  if (placeholder !== '••••••••') {
12341
- return css(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 1;\n "])), function (_ref7) {
12426
+ return css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 1;\n "])), function (_ref7) {
12342
12427
  var theme = _ref7.theme;
12343
12428
  return theme.useTypography('p');
12344
12429
  });
@@ -12356,49 +12441,53 @@ var Input = styled.input(_templateObject3$9 || (_templateObject3$9 = _taggedTemp
12356
12441
  var theme = _ref10.theme,
12357
12442
  invalid = _ref10.invalid;
12358
12443
  return invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
12444
+ }, function (_ref11) {
12445
+ var arrows = _ref11.arrows;
12446
+ if (arrows) return;
12447
+ return css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\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: textfield;\n "])));
12359
12448
  });
12360
- var Label = styled.label(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n\n ", "\n"])), function (_ref11) {
12361
- var theme = _ref11.theme;
12362
- return theme.useTypography('p');
12363
- }, function (_ref12) {
12449
+ var Label = styled.label(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n\n ", "\n"])), function (_ref12) {
12364
12450
  var theme = _ref12.theme;
12365
- return theme.colors.greyishBlue;
12451
+ return theme.useTypography('p');
12366
12452
  }, function (_ref13) {
12367
- var width = _ref13.width;
12368
- return width || '100%';
12453
+ var theme = _ref13.theme;
12454
+ return theme.colors.greyishBlue;
12369
12455
  }, function (_ref14) {
12370
- var disabled = _ref14.disabled;
12371
- if (!disabled) return;
12372
- return css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12456
+ var width = _ref14.width;
12457
+ return width || '100%';
12373
12458
  }, function (_ref15) {
12374
- var theme = _ref15.theme;
12375
- return theme.spacings.s1;
12459
+ var disabled = _ref15.disabled;
12460
+ if (!disabled) return;
12461
+ return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12376
12462
  }, function (_ref16) {
12377
- var required = _ref16.required;
12378
- if (!required) return;
12379
- return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12463
+ var theme = _ref16.theme;
12464
+ return theme.spacings.s1;
12380
12465
  }, function (_ref17) {
12381
- var icon = _ref17.icon;
12466
+ var required = _ref17.required;
12467
+ if (!required) return;
12468
+ return css(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12469
+ }, function (_ref18) {
12470
+ var icon = _ref18.icon;
12382
12471
  if (!icon) return;
12383
12472
  var width = icon.width,
12384
12473
  position = icon.position;
12385
12474
 
12386
12475
  if (position === 'right') {
12387
- return css(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " {\n padding-right: calc(", " + ", ");\n }\n "])), IconContainer, width, function (_ref18) {
12388
- var theme = _ref18.theme;
12389
- return theme.spacings.s3;
12390
- }, Input, function (_ref19) {
12476
+ return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " {\n padding-right: calc(", " + ", ");\n }\n "])), IconContainer, width, function (_ref19) {
12391
12477
  var theme = _ref19.theme;
12392
12478
  return theme.spacings.s3;
12479
+ }, Input, function (_ref20) {
12480
+ var theme = _ref20.theme;
12481
+ return theme.spacings.s3;
12393
12482
  }, width);
12394
12483
  }
12395
12484
 
12396
- return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " {\n padding-left: calc(", " + ", ");\n }\n "])), IconContainer, width, function (_ref20) {
12397
- var theme = _ref20.theme;
12398
- return theme.spacings.s3;
12399
- }, Input, function (_ref21) {
12485
+ return css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " {\n padding-left: calc(", " + ", ");\n }\n "])), IconContainer, width, function (_ref21) {
12400
12486
  var theme = _ref21.theme;
12401
12487
  return theme.spacings.s3;
12488
+ }, Input, function (_ref22) {
12489
+ var theme = _ref22.theme;
12490
+ return theme.spacings.s3;
12402
12491
  }, width);
12403
12492
  });
12404
12493
 
@@ -12412,12 +12501,14 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12412
12501
  clearable = _props.clearable,
12413
12502
  onPressEnter = _props.onPressEnter,
12414
12503
  htmlDisabled = _props.htmlDisabled,
12415
- width = _props.width;
12504
+ width = _props.width,
12505
+ arrows = _props.arrows;
12416
12506
 
12417
12507
  var mask = getMask(props.mask);
12418
- var intInvalid = invalid === undefined ? undefined : invalid ? 1 : 0;
12419
- var intRequired = required === undefined ? undefined : required ? 1 : 0;
12420
- var intDisabled = disabled === undefined ? undefined : disabled ? 1 : 0;
12508
+ var intInvalid = invalid ? 1 : 0;
12509
+ var intRequired = required ? 1 : 0;
12510
+ var intDisabled = disabled ? 1 : 0;
12511
+ var intArrows = arrows ? 1 : 0;
12421
12512
  var position;
12422
12513
  var iconWidth;
12423
12514
  var iconSubmit;
@@ -12433,9 +12524,10 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12433
12524
  iconOnClick = props.icon.onClick;
12434
12525
  }
12435
12526
 
12436
- var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width'], {
12527
+ var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width', 'arrows'], {
12437
12528
  invalid: intInvalid,
12438
- type: 'text'
12529
+ type: 'text',
12530
+ arrows: intArrows
12439
12531
  });
12440
12532
 
12441
12533
  var onChange = inputProps.onChange || function () {};
@@ -12544,9 +12636,9 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12544
12636
  });
12545
12637
  Input$1.displayName = 'Input';
12546
12638
 
12547
- var _templateObject$b, _templateObject2$a, _templateObject3$a, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$5;
12639
+ var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$5;
12548
12640
  var width = '17px';
12549
- var Checkmark = styled.span(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0px;\n left: 0;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color: ", ";\n border-width: 1px;\n border-radius: 4px;\n\n transition-property: border-color;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n\n :after {\n content: '';\n position: absolute;\n\n left: 50%;\n top: 50%;\n height: 0;\n width: 0;\n\n border-style: solid;\n border-color: ", ";\n border-width: 0;\n transform: rotate(45deg);\n\n transition-property: width height border-width top left;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n"])), width, width, function (_ref) {
12641
+ var Checkmark = styled.span(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0px;\n left: 0;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color: ", ";\n border-width: 1px;\n border-radius: 4px;\n\n transition-property: border-color;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n\n :after {\n content: '';\n position: absolute;\n\n left: 50%;\n top: 50%;\n height: 0;\n width: 0;\n\n border-style: solid;\n border-color: ", ";\n border-width: 0;\n transform: rotate(45deg);\n\n transition-property: width height border-width top left;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n"])), width, width, function (_ref) {
12550
12642
  var theme = _ref.theme;
12551
12643
  return theme.colors.white;
12552
12644
  }, function (_ref2) {
@@ -12607,7 +12699,7 @@ var Label$1 = styled.label(_templateObject2$a || (_templateObject2$a = _taggedTe
12607
12699
  var disabled = _ref6.disabled;
12608
12700
 
12609
12701
  if (!disabled) {
12610
- return css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12702
+ return css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12611
12703
  }
12612
12704
 
12613
12705
  return css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
@@ -12788,8 +12880,8 @@ var Time = React__default.forwardRef(function (props, ref) {
12788
12880
  });
12789
12881
  Time.displayName = 'Time';
12790
12882
 
12791
- var _templateObject$c, _templateObject2$b, _templateObject3$b, _templateObject4$9, _templateObject5$9, _templateObject6$8, _templateObject7$6, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$1, _templateObject12$1, _templateObject13$1;
12792
- var Container$7 = styled.div(_templateObject$c || (_templateObject$c = _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) {
12883
+ var _templateObject$d, _templateObject2$b, _templateObject3$b, _templateObject4$a, _templateObject5$9, _templateObject6$8, _templateObject7$6, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$1, _templateObject13$1;
12884
+ var Container$7 = styled.div(_templateObject$d || (_templateObject$d = _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) {
12793
12885
  var theme = _ref.theme;
12794
12886
  return theme.colors.white;
12795
12887
  }, function (_ref2) {
@@ -12807,7 +12899,7 @@ var AbsoluteContainer$1 = styled(AbsoluteContainer)(_templateObject2$b || (_temp
12807
12899
  return theme.spacings.s3 + " " + theme.spacings.s3 + " " + theme.spacings.s1 + " " + theme.spacings.s3;
12808
12900
  });
12809
12901
  var Footer = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
12810
- var MonthContainer = styled.div(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n > div {\n margin: ", " 0;\n }\n"])), function (_ref6) {
12902
+ var MonthContainer = styled.div(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n > div {\n margin: ", " 0;\n }\n"])), function (_ref6) {
12811
12903
  var theme = _ref6.theme;
12812
12904
  return theme.spacings.s1;
12813
12905
  });
@@ -12848,7 +12940,7 @@ var DayContainer = styled.button(_templateObject8$4 || (_templateObject8$4 = _ta
12848
12940
  return css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n :not(:disabled) {\n background-color: ", ";\n }\n "])), theme.colors.white, theme.getColor('blue', 30));
12849
12941
  }
12850
12942
 
12851
- return css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.colors.white);
12943
+ return css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.colors.white);
12852
12944
  }, function (_ref16) {
12853
12945
  var theme = _ref16.theme;
12854
12946
  return theme.colors.silver;
@@ -13126,8 +13218,8 @@ var Calendar = function Calendar(props) {
13126
13218
 
13127
13219
  var JSDate = Date;
13128
13220
 
13129
- var _templateObject$d;
13130
- var RelativeContainer = styled.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
13221
+ var _templateObject$e;
13222
+ var RelativeContainer = styled.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
13131
13223
 
13132
13224
  var isLeapYear = function isLeapYear(year) {
13133
13225
  if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
@@ -13280,13 +13372,13 @@ var useContext = function useContext() {
13280
13372
  return React__default.useContext(Provider);
13281
13373
  };
13282
13374
 
13283
- var _templateObject$e, _templateObject2$c, _templateObject3$c, _templateObject4$a;
13284
- var RelativeContainer$1 = styled.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
13375
+ var _templateObject$f, _templateObject2$c, _templateObject3$c, _templateObject4$b;
13376
+ var RelativeContainer$1 = styled.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
13285
13377
  var HeaderContainer = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
13286
13378
  var theme = _ref.theme;
13287
13379
  return css(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 0.75)\n ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
13288
13380
  });
13289
- var SelectAllContainer = styled.div(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
13381
+ var SelectAllContainer = styled.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
13290
13382
  var theme = _ref2.theme;
13291
13383
  return theme.spacings.s1;
13292
13384
  });
@@ -13294,52 +13386,53 @@ var SelectAllContainer = styled.div(_templateObject4$a || (_templateObject4$a =
13294
13386
  var Header$1 = function Header() {
13295
13387
  var context = useContext();
13296
13388
 
13297
- if (!context.props.search && !context.props.multiple) {
13389
+ var _useState = useState(''),
13390
+ search = _useState[0],
13391
+ setSearch = _useState[1];
13392
+
13393
+ if (!context.props.loader) {
13298
13394
  return React__default.createElement(React__default.Fragment, null);
13299
13395
  }
13300
13396
 
13301
- var _useState = useState(''),
13302
- value = _useState[0],
13303
- setValue = _useState[1];
13304
-
13305
- var _context$props = context.props,
13306
- search = _context$props.search,
13307
- options = _context$props.options,
13397
+ var options = context.props.options,
13308
13398
  checked = context.checked,
13309
- setChecked = context.setChecked;
13399
+ setChecked = context.setChecked,
13400
+ searched = context.searched,
13401
+ setSearched = context.setSearched,
13402
+ setPage = context.setPage;
13310
13403
 
13311
13404
  var onClick = function onClick() {
13312
- return setChecked(function (prev) {
13405
+ setChecked(function (prev) {
13313
13406
  return prev.length === options.length ? [] : options.map(function (option) {
13314
13407
  return option.value;
13315
13408
  });
13316
13409
  });
13317
13410
  };
13318
13411
 
13412
+ var onSearch = function onSearch() {
13413
+ setSearched(search);
13414
+ setPage(1);
13415
+ };
13416
+
13319
13417
  return React__default.createElement(HeaderContainer, null, context.props.type === 'select-multiple' && context.props.selectAll && React__default.createElement(SelectAllContainer, null, React__default.createElement("b", null, "Selecionados (", checked.length, ")"), React__default.createElement(Button$1, {
13320
13418
  type: 'button',
13321
13419
  content: 'Selecionar todos',
13322
13420
  appearance: 'link',
13323
13421
  onClick: onClick,
13324
13422
  color: 'darkBlue'
13325
- })), search && React__default.createElement(Input$1, {
13423
+ })), React__default.createElement(Input$1, {
13326
13424
  type: 'search',
13327
13425
  placeholder: 'Pesquisa',
13328
- onChange: function onChange(event) {
13329
- return setValue(event.target.value);
13330
- },
13331
- value: value,
13332
- onPressEnter: function onPressEnter() {
13333
- return search(value);
13334
- },
13426
+ setValue: setSearch,
13427
+ value: search,
13428
+ onPressEnter: onSearch,
13429
+ clearable: search !== '' && search === searched,
13335
13430
  icon: {
13336
13431
  icon: {
13337
13432
  type: 'feather',
13338
13433
  icon: 'search'
13339
13434
  },
13340
- onClick: function onClick() {
13341
- return search(value);
13342
- }
13435
+ onClick: onSearch
13343
13436
  }
13344
13437
  }));
13345
13438
  };
@@ -13369,28 +13462,35 @@ var Footer$1 = function Footer() {
13369
13462
  var getOptions = function getOptions(props, checked, setChecked) {
13370
13463
  if (props.type === 'select-multiple') {
13371
13464
  return props.options.map(function (option) {
13465
+ var label = isString(option.label) ? {
13466
+ text: option.label,
13467
+ element: option.label
13468
+ } : option.label;
13372
13469
  return {
13373
- label: React__default.createElement(Checkbox, {
13374
- type: 'checkbox',
13375
- checked: checked.includes(option.value),
13376
- label: option.label,
13377
- onChange: function onChange(event) {
13378
- var isChecked = event.target.checked;
13379
- setChecked(function (prev) {
13380
- var newState = prev.filter(function (v) {
13381
- return v !== option.value;
13470
+ label: {
13471
+ text: label.text,
13472
+ element: React__default.createElement(Checkbox, {
13473
+ type: 'checkbox',
13474
+ checked: checked.includes(option.value),
13475
+ label: label.element,
13476
+ onChange: function onChange(event) {
13477
+ var isChecked = event.target.checked;
13478
+ setChecked(function (prev) {
13479
+ var newState = prev.filter(function (v) {
13480
+ return v !== option.value;
13481
+ });
13482
+ if (isChecked) newState.push(option.value);
13483
+ return newState;
13382
13484
  });
13383
- if (isChecked) newState.push(option.value);
13384
- return newState;
13385
- });
13386
- },
13387
- padding: {
13388
- top: 's3',
13389
- left: 's3',
13390
- right: 's3',
13391
- bottom: 's3'
13392
- }
13393
- }),
13485
+ },
13486
+ padding: {
13487
+ top: 's3',
13488
+ left: 's3',
13489
+ right: 's3',
13490
+ bottom: 's3'
13491
+ }
13492
+ })
13493
+ },
13394
13494
  onClick: function onClick() {},
13395
13495
  data: {
13396
13496
  value: option.value
@@ -13401,8 +13501,12 @@ var getOptions = function getOptions(props, checked, setChecked) {
13401
13501
  }
13402
13502
 
13403
13503
  return props.options.map(function (option) {
13504
+ var label = isString(option.label) ? {
13505
+ text: option.label,
13506
+ element: option.label
13507
+ } : option.label;
13404
13508
  return {
13405
- label: option.label,
13509
+ label: label,
13406
13510
  onClick: option.onClick || function (_index, data) {
13407
13511
  props.setValue(data.value);
13408
13512
  },
@@ -13414,36 +13518,98 @@ var getOptions = function getOptions(props, checked, setChecked) {
13414
13518
  };
13415
13519
 
13416
13520
  var Select = React__default.forwardRef(function (props, ref) {
13417
- var onScrollEnd = props.onScrollEnd,
13418
- position = props.position,
13521
+ var position = props.position,
13419
13522
  disableAutoPosition = props.disableAutoPosition,
13420
- search = props.search,
13523
+ loader = props.loader,
13421
13524
  type = props.type;
13422
13525
 
13423
- var _useState2 = useState(false),
13424
- open = _useState2[0],
13425
- setOpen = _useState2[1];
13526
+ var _useState = useState(false),
13527
+ loading = _useState[0],
13528
+ setLoading = _useState[1];
13529
+
13530
+ var _useState2 = useState(''),
13531
+ searched = _useState2[0],
13532
+ setSearched = _useState2[1];
13533
+
13534
+ var _useState3 = useState(1),
13535
+ page = _useState3[0],
13536
+ setPage = _useState3[1];
13426
13537
 
13427
- var _useState3 = useState(Array.isArray(props.value) ? [].concat(props.value) : []),
13428
- checked = _useState3[0],
13429
- setChecked = _useState3[1];
13538
+ var _useState4 = useState(false),
13539
+ lastPage = _useState4[0],
13540
+ setLastPage = _useState4[1];
13541
+
13542
+ var _useState5 = useState(false),
13543
+ open = _useState5[0],
13544
+ setOpen = _useState5[1];
13545
+
13546
+ var _useState6 = useState(Array.isArray(props.value) ? [].concat(props.value) : []),
13547
+ checked = _useState6[0],
13548
+ setChecked = _useState6[1];
13430
13549
 
13431
13550
  var options = getOptions(props, checked, setChecked);
13432
- var inputProps = filterObject(props, ['type', 'onScrollEnd', 'options', 'position', 'disableAutoPosition']);
13551
+ var inputProps = filterObject(props, ['type', 'onScrollEnd', 'options', 'position', 'disableAutoPosition', 'value']);
13433
13552
 
13434
13553
  if (props.type === 'select-multiple') {
13435
13554
  if (props.value.length > 0) {
13436
13555
  inputProps.value = props.value.length > 1 ? "H\xE1 " + props.value.length + " sele\xE7\xF5es" : "H\xE1 " + props.value.length + " sele\xE7\xE3o";
13556
+ } else {
13557
+ inputProps.value = '';
13437
13558
  }
13559
+ } else {
13560
+ var selected = options.find(function (option) {
13561
+ return option.data.value === props.value;
13562
+ });
13563
+ inputProps.value = selected ? selected.label.text : '';
13438
13564
  }
13439
13565
 
13566
+ var _onScrollEnd = props.onScrollEnd || function () {};
13567
+
13568
+ var onScrollEnd = function onScrollEnd() {
13569
+ if (!lastPage) {
13570
+ setPage(function (prev) {
13571
+ return prev + 1;
13572
+ });
13573
+ }
13574
+
13575
+ _onScrollEnd();
13576
+ };
13577
+
13578
+ var onSubmit = useCallback(function () {
13579
+ try {
13580
+ if (!props.loader) return Promise.resolve();
13581
+ setLoading(true);
13582
+ return Promise.resolve(props.loader(searched, page)).then(function (optionsResult) {
13583
+ if (Array.isArray(optionsResult)) {
13584
+ props.setOptions(page === 1 ? optionsResult : function (prev) {
13585
+ return prev.concat(optionsResult);
13586
+ });
13587
+ setLastPage(true);
13588
+ } else {
13589
+ props.setOptions(page === 1 ? optionsResult.options : function (prev) {
13590
+ return prev.concat(optionsResult.options);
13591
+ });
13592
+ setLastPage(optionsResult.lastPage);
13593
+ }
13594
+
13595
+ setLoading(false);
13596
+ });
13597
+ } catch (e) {
13598
+ return Promise.reject(e);
13599
+ }
13600
+ }, [searched, page]);
13601
+ useEffect(function () {
13602
+ onSubmit();
13603
+ }, [onSubmit]);
13440
13604
  return React__default.createElement(Provider.Provider, {
13441
13605
  value: {
13442
13606
  props: props,
13443
- open: open,
13444
13607
  setOpen: setOpen,
13445
13608
  checked: checked,
13446
- setChecked: setChecked
13609
+ setPage: setPage,
13610
+ setChecked: setChecked,
13611
+ searched: searched,
13612
+ setSearched: setSearched
13447
13613
  }
13448
13614
  }, React__default.createElement(RelativeContainer$1, {
13449
13615
  ref: useOnClickOut(function () {
@@ -13457,6 +13623,7 @@ var Select = React__default.forwardRef(function (props, ref) {
13457
13623
  return !prev;
13458
13624
  });
13459
13625
  },
13626
+ loading: props.loading || loading,
13460
13627
  icon: {
13461
13628
  position: 'right',
13462
13629
  icon: {
@@ -13483,7 +13650,7 @@ var Select = React__default.forwardRef(function (props, ref) {
13483
13650
  },
13484
13651
  before: React__default.createElement(Header$1, null),
13485
13652
  after: React__default.createElement(Footer$1, null),
13486
- scrollHeight: search ? '135px' : '165px'
13653
+ scrollHeight: loader ? '135px' : '165px'
13487
13654
  })));
13488
13655
  });
13489
13656
  Select.displayName = 'Select';
@@ -13544,7 +13711,7 @@ Password.displayName = 'Password';
13544
13711
 
13545
13712
  var img = "flags~SpNmyrlX.png";
13546
13713
 
13547
- var _templateObject$f, _templateObject2$d;
13714
+ var _templateObject$g, _templateObject2$d;
13548
13715
  var coordinates = {
13549
13716
  ar: {
13550
13717
  s1: '0px 0px',
@@ -13619,7 +13786,7 @@ var coordinates = {
13619
13786
  s6: '0px 0px'
13620
13787
  }
13621
13788
  };
13622
- var Flag = styled.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n background-image: url(", ");\n background-size: auto 100%;\n\n ", "\n"])), img, function (_ref) {
13789
+ var Flag = styled.div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["\n background-image: url(", ");\n background-size: auto 100%;\n\n ", "\n"])), img, function (_ref) {
13623
13790
  var iso = _ref.iso,
13624
13791
  width = _ref.width,
13625
13792
  theme = _ref.theme;
@@ -13728,8 +13895,8 @@ var countries = {
13728
13895
  }
13729
13896
  };
13730
13897
 
13731
- var _templateObject$g, _templateObject2$e, _templateObject3$d;
13732
- var IconContainer$1 = styled.div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n > i.icon {\n margin-top: -1px;\n }\n"])));
13898
+ var _templateObject$h, _templateObject2$e, _templateObject3$d;
13899
+ var IconContainer$1 = styled.div(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n > i.icon {\n margin-top: -1px;\n }\n"])));
13733
13900
  var RelativeContainer$2 = styled.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
13734
13901
  var Label$2 = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n display: flex;\n gap: ", ";\n\n > span {\n color: ", ";\n }\n"])), function (_ref) {
13735
13902
  var theme = _ref.theme;
@@ -13814,9 +13981,12 @@ var Phone = React__default.forwardRef(function (props, ref) {
13814
13981
  }, [value]);
13815
13982
  var options = Object.keys(countries).map(function (iso) {
13816
13983
  return {
13817
- label: React__default.createElement(Label$2, null, React__default.createElement(Flag, {
13818
- iso: iso
13819
- }), countries[iso].name, React__default.createElement("span", null, "+", countries[iso].ddi)),
13984
+ label: {
13985
+ text: countries[iso].name,
13986
+ element: React__default.createElement(Label$2, null, React__default.createElement(Flag, {
13987
+ iso: iso
13988
+ }), countries[iso].name, React__default.createElement("span", null, "+", countries[iso].ddi))
13989
+ },
13820
13990
  onClick: function onClick(_index, country) {
13821
13991
  setCountry(country);
13822
13992
  },
@@ -13885,8 +14055,8 @@ var Phone = React__default.forwardRef(function (props, ref) {
13885
14055
  });
13886
14056
  Phone.displayName = 'Phone';
13887
14057
 
13888
- var _templateObject$h, _templateObject2$f, _templateObject3$e, _templateObject4$b, _templateObject5$a, _templateObject6$9;
13889
- var RelativeContainer$3 = styled.div(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
14058
+ var _templateObject$i, _templateObject2$f, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$9;
14059
+ var RelativeContainer$3 = styled.div(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
13890
14060
  var Container$8 = styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n width: calc(100% - 2px - ", ");\n height: 33px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: ", ";\n border-radius: 4px;\n\n ", "\n\n ", "\n"])), function (_ref) {
13891
14061
  var iconWidth = _ref.iconWidth,
13892
14062
  theme = _ref.theme;
@@ -13902,7 +14072,7 @@ var Container$8 = styled.div(_templateObject2$f || (_templateObject2$f = _tagged
13902
14072
  }, function (_ref4) {
13903
14073
  var disabled = _ref4.disabled;
13904
14074
  if (!disabled) return;
13905
- return css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14075
+ return css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
13906
14076
  });
13907
14077
  var Button$3 = styled.button(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref5) {
13908
14078
  var onClick = _ref5.onClick;
@@ -14018,8 +14188,8 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
14018
14188
  });
14019
14189
  DatePicker.displayName = 'DatePicker';
14020
14190
 
14021
- var _templateObject$i, _templateObject2$g, _templateObject3$f, _templateObject4$c, _templateObject5$b, _templateObject6$a, _templateObject7$7;
14022
- var LabelContainer = styled.div(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n"])), function (_ref) {
14191
+ var _templateObject$j, _templateObject2$g, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$7;
14192
+ var LabelContainer = styled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n"])), function (_ref) {
14023
14193
  var theme = _ref.theme;
14024
14194
  return theme.useTypography('p');
14025
14195
  });
@@ -14033,7 +14203,7 @@ var Label$3 = styled.label(_templateObject2$g || (_templateObject2$g = _taggedTe
14033
14203
  return css(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
14034
14204
  }
14035
14205
 
14036
- return css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14206
+ return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14037
14207
  }, function (_ref4) {
14038
14208
  var required = _ref4.required;
14039
14209
  if (!required) return;
@@ -14096,8 +14266,8 @@ var Switch = function Switch(props) {
14096
14266
  })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer, null, label));
14097
14267
  };
14098
14268
 
14099
- var _templateObject$j, _templateObject2$h, _templateObject3$g, _templateObject4$d, _templateObject5$c, _templateObject6$b, _templateObject7$8, _templateObject8$5, _templateObject9$4, _templateObject10$4, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$1;
14100
- var bullet = css(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
14269
+ var _templateObject$k, _templateObject2$h, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$8, _templateObject8$5, _templateObject9$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$1, _templateObject15, _templateObject16;
14270
+ var bullet = css(_templateObject$k || (_templateObject$k = _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) {
14101
14271
  var theme = _ref.theme;
14102
14272
  return theme.spacings.s4;
14103
14273
  }, function (_ref2) {
@@ -14105,64 +14275,66 @@ var bullet = css(_templateObject$j || (_templateObject$j = _taggedTemplateLitera
14105
14275
  return theme.spacings.s4;
14106
14276
  }, function (_ref3) {
14107
14277
  var theme = _ref3.theme;
14108
- return theme.colors.lightestGrey;
14278
+ return theme.colors.white;
14109
14279
  }, function (_ref4) {
14110
14280
  var theme = _ref4.theme;
14111
- return theme.colors.white;
14112
- }, function (_ref5) {
14113
- var theme = _ref5.theme;
14114
14281
  return theme.getColor('black', 10);
14115
14282
  });
14116
14283
  var Input$2 = styled.input(_templateObject2$h || (_templateObject2$h = _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);
14117
- var Label$4 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n ", ";\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 (_ref6) {
14118
- var theme = _ref6.theme;
14284
+ var Label$4 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n ", ";\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) {
14285
+ var theme = _ref5.theme;
14119
14286
  return theme.useTypography('p');
14120
- }, function (_ref7) {
14121
- var width = _ref7.width;
14287
+ }, function (_ref6) {
14288
+ var width = _ref6.width;
14122
14289
  return width || '100%';
14123
- }, function (_ref8) {
14124
- var disabled = _ref8.disabled;
14290
+ }, function (_ref7) {
14291
+ var disabled = _ref7.disabled;
14125
14292
  if (!disabled) return;
14126
- return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14127
- }, function (_ref9) {
14128
- var theme = _ref9.theme;
14293
+ return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14294
+ }, function (_ref8) {
14295
+ var theme = _ref8.theme;
14129
14296
  return theme.spacings.s1;
14130
- }, function (_ref10) {
14131
- var required = _ref10.required;
14297
+ }, function (_ref9) {
14298
+ var required = _ref9.required;
14132
14299
  if (!required) return;
14133
14300
  return css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
14134
14301
  });
14135
- var InputContainer = styled.div(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n"])));
14136
- var MinMaxLabelContainer = styled.div(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
14137
- var LabelsContainer = styled.div(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
14302
+ var InputContainer = styled.div(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
14303
+ var theme = _ref10.theme,
14304
+ invalid = _ref10.invalid;
14305
+
14306
+ if (!invalid) {
14307
+ return css(_templateObject7$8 || (_templateObject7$8 = _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);
14308
+ }
14309
+
14310
+ return css(_templateObject8$5 || (_templateObject8$5 = _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);
14311
+ });
14312
+ var MinMaxLabelContainer = styled.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
14313
+ var LabelsContainer = styled.div(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
14138
14314
  var position = _ref11.position;
14139
14315
 
14140
14316
  if (position === 'bottom') {
14141
- return css(_templateObject9$4 || (_templateObject9$4 = _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);
14317
+ return css(_templateObject11$3 || (_templateObject11$3 = _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);
14142
14318
  }
14143
14319
 
14144
- return css(_templateObject10$4 || (_templateObject10$4 = _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);
14320
+ return 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);
14145
14321
  });
14146
- var SelectedArea = styled.div(_templateObject11$2 || (_templateObject11$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 background-color: ", ";\n height: 100%;\n }\n"])), function (_ref12) {
14322
+ var SelectedArea = styled.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) {
14147
14323
  var theme = _ref12.theme;
14148
14324
  return theme.getColor('greyishBlue', 10);
14149
14325
  }, function (_ref13) {
14150
14326
  var percent = _ref13.percent;
14151
14327
  return percent;
14152
- }, function (_ref14) {
14153
- var theme = _ref14.theme,
14154
- invalid = _ref14.invalid;
14155
- return theme.colors[invalid ? 'warningRed' : 'blue'];
14156
14328
  });
14157
- var MarkersContainer = styled.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
14158
- var Marker = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n width: 40px;\n text-align: center;\n left: ", ";\n z-index: 2;\n\n :first-child {\n left: 0;\n text-align: left;\n\n :after {\n left: 0;\n }\n }\n :last-child {\n right: 0;\n left: unset;\n text-align: right;\n\n :after {\n right: 0;\n left: unset;\n }\n }\n\n ", "\n"])), function (_ref15) {
14159
- var left = _ref15.left;
14329
+ var MarkersContainer = styled.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
14330
+ var Marker = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n width: 40px;\n text-align: center;\n left: ", ";\n z-index: 2;\n\n :first-child {\n left: 0;\n text-align: left;\n\n :after {\n left: 0;\n }\n }\n :last-child {\n right: 0;\n left: unset;\n text-align: right;\n\n :after {\n right: 0;\n left: unset;\n }\n }\n\n ", "\n"])), function (_ref14) {
14331
+ var left = _ref14.left;
14160
14332
  return left;
14161
- }, function (_ref16) {
14162
- var bullet = _ref16.bullet,
14163
- theme = _ref16.theme;
14333
+ }, function (_ref15) {
14334
+ var bullet = _ref15.bullet,
14335
+ theme = _ref15.theme;
14164
14336
  if (!bullet) return;
14165
- return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n }\n "])), theme.colors.lightestGrey, theme.colors.white, theme.getColor('black', 10));
14337
+ return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n }\n "])), theme.colors.lightestGrey, theme.colors.white, theme.getColor('black', 10));
14166
14338
  });
14167
14339
 
14168
14340
  var getMarkers = function getMarkers(props) {
@@ -14277,7 +14449,9 @@ var Range = React__default.forwardRef(function (props, ref) {
14277
14449
  width: width
14278
14450
  }, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
14279
14451
  position: position
14280
- }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer, null, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
14452
+ }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer, {
14453
+ invalid: invalid ? 1 : 0
14454
+ }, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
14281
14455
  var z = markers.length - 2;
14282
14456
  if (z < markers.length - 1) z = markers.length - 1;
14283
14457
  var y = 20 / z;
@@ -14293,8 +14467,7 @@ var Range = React__default.forwardRef(function (props, ref) {
14293
14467
  })), React__default.createElement("div", null, React__default.createElement(Input$2, Object.assign({
14294
14468
  ref: ref
14295
14469
  }, inputProps)), React__default.createElement(SelectedArea, {
14296
- percent: percent,
14297
- invalid: invalid ? 1 : 0
14470
+ percent: percent
14298
14471
  }, Array(spans).fill(1).map(function (_value, index) {
14299
14472
  return React__default.createElement("span", {
14300
14473
  key: index
@@ -14303,8 +14476,8 @@ var Range = React__default.forwardRef(function (props, ref) {
14303
14476
  });
14304
14477
  Range.displayName = 'input';
14305
14478
 
14306
- var _templateObject$k, _templateObject2$i, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$c, _templateObject7$9;
14307
- var LabelContainer$1 = styled.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
14479
+ var _templateObject$l, _templateObject2$i, _templateObject3$h, _templateObject4$f, _templateObject5$d, _templateObject6$c, _templateObject7$9;
14480
+ var LabelContainer$1 = styled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
14308
14481
  var theme = _ref.theme;
14309
14482
  return theme.useTypography('p');
14310
14483
  });
@@ -14318,7 +14491,7 @@ var Label$5 = styled.label(_templateObject2$i || (_templateObject2$i = _taggedTe
14318
14491
  return css(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
14319
14492
  }
14320
14493
 
14321
- return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14494
+ return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
14322
14495
  }, function (_ref4) {
14323
14496
  var required = _ref4.required;
14324
14497
  if (!required) return;
@@ -14480,8 +14653,8 @@ var widths = {
14480
14653
  default: '642.5px'
14481
14654
  };
14482
14655
 
14483
- var _templateObject$l, _templateObject2$j, _templateObject3$i, _templateObject4$f, _templateObject5$e, _templateObject6$d, _templateObject7$a, _templateObject8$6, _templateObject9$5, _templateObject10$5;
14484
- var Background = styled.div(_templateObject$l || (_templateObject$l = _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) {
14656
+ var _templateObject$m, _templateObject2$j, _templateObject3$i, _templateObject4$g, _templateObject5$e, _templateObject6$d, _templateObject7$a, _templateObject8$6, _templateObject9$5, _templateObject10$5;
14657
+ var Background = styled.div(_templateObject$m || (_templateObject$m = _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) {
14485
14658
  var theme = _ref.theme;
14486
14659
  return theme.getColor('black', 25);
14487
14660
  });
@@ -14491,7 +14664,7 @@ var Header$2 = styled.div(_templateObject3$i || (_templateObject3$i = _taggedTem
14491
14664
  colors = _ref2$theme.colors,
14492
14665
  spacings = _ref2$theme.spacings,
14493
14666
  useTypography = _ref2$theme.useTypography;
14494
- return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
14667
+ return css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
14495
14668
  });
14496
14669
  var Footer$2 = styled.div(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
14497
14670
  var _ref3$theme = _ref3.theme,
@@ -14589,8 +14762,8 @@ var Modal = function Modal(props) {
14589
14762
  }))))));
14590
14763
  };
14591
14764
 
14592
- var _templateObject$m;
14593
- var Content$1 = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
14765
+ var _templateObject$n;
14766
+ var Content$1 = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
14594
14767
  var theme = _ref.theme;
14595
14768
  return theme.spacings.s5 + " " + theme.spacings.s4;
14596
14769
  });
@@ -14627,8 +14800,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
14627
14800
  }, React__default.createElement(Content$1, null, children || content));
14628
14801
  };
14629
14802
 
14630
- var _templateObject$n;
14631
- var Content$2 = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
14803
+ var _templateObject$o;
14804
+ var Content$2 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
14632
14805
  var theme = _ref.theme;
14633
14806
  return theme.spacings.s5 + " " + theme.spacings.s4;
14634
14807
  });
@@ -14668,8 +14841,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
14668
14841
  }, React__default.createElement(Content$2, null, children || content));
14669
14842
  };
14670
14843
 
14671
- var _templateObject$o;
14672
- var Content$3 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
14844
+ var _templateObject$p;
14845
+ var Content$3 = styled.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
14673
14846
  var theme = _ref.theme;
14674
14847
  return theme.spacings.s5 + " " + theme.spacings.s4;
14675
14848
  });
@@ -14709,13 +14882,13 @@ Modal$1.ConfirmDelete = ConfirmDelete;
14709
14882
  Modal$1.ConfirmEdit = ConfirmSuccess;
14710
14883
  Modal$1.Audit = Audit;
14711
14884
 
14712
- var _templateObject$p, _templateObject2$k, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$e, _templateObject7$b, _templateObject8$7, _templateObject9$6, _templateObject10$6;
14713
- var Container$a = styled.div(_templateObject$p || (_templateObject$p = _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) {
14885
+ var _templateObject$q, _templateObject2$k, _templateObject3$j, _templateObject4$h, _templateObject5$f, _templateObject6$e, _templateObject7$b, _templateObject8$7, _templateObject9$6, _templateObject10$6;
14886
+ var Container$a = styled.div(_templateObject$q || (_templateObject$q = _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) {
14714
14887
  return props.size === 'mini' && css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
14715
14888
  }, function (props) {
14716
14889
  return props.size === 'small' && css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
14717
14890
  }, function (props) {
14718
- return props.size === 'medium' && css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
14891
+ return props.size === 'medium' && css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
14719
14892
  }, function (props) {
14720
14893
  return props.size === 'big' && css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
14721
14894
  }, function (props) {
@@ -14739,15 +14912,15 @@ var Card = function Card(_ref) {
14739
14912
  return React__default.createElement(Container$a, Object.assign({}, rest), children);
14740
14913
  };
14741
14914
 
14742
- var _templateObject$q, _templateObject2$l, _templateObject3$k, _templateObject4$h, _templateObject5$g, _templateObject6$f;
14743
- var Container$b = styled.div(_templateObject$q || (_templateObject$q = _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) {
14915
+ var _templateObject$r, _templateObject2$l, _templateObject3$k, _templateObject4$i, _templateObject5$g, _templateObject6$f;
14916
+ var Container$b = styled.div(_templateObject$r || (_templateObject$r = _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) {
14744
14917
  return props.size === 'large' ? '837px' : '460px';
14745
14918
  }, function (props) {
14746
14919
  return props.color === 'success' && css(_templateObject2$l || (_templateObject2$l = _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 "])));
14747
14920
  }, function (props) {
14748
14921
  return props.color === 'error' && css(_templateObject3$k || (_templateObject3$k = _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 "])));
14749
14922
  }, function (props) {
14750
- return props.color === 'warning' && css(_templateObject4$h || (_templateObject4$h = _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 "])));
14923
+ return props.color === 'warning' && css(_templateObject4$i || (_templateObject4$i = _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 "])));
14751
14924
  });
14752
14925
  var IconContainer$2 = styled.div(_templateObject5$g || (_templateObject5$g = _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"])));
14753
14926
  var IconContent = styled.div(_templateObject6$f || (_templateObject6$f = _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"])));
@@ -14762,8 +14935,8 @@ var Toast = function Toast(props) {
14762
14935
  })), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
14763
14936
  };
14764
14937
 
14765
- var _templateObject$r;
14766
- var Container$c = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: ", ";\n background-color: ", ";\n display: flex;\n width: min-content;\n"])), function (_ref) {
14938
+ var _templateObject$s;
14939
+ var Container$c = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: ", ";\n background-color: ", ";\n display: flex;\n width: min-content;\n"])), function (_ref) {
14767
14940
  var theme = _ref.theme;
14768
14941
  return theme.spacings.s1 + " " + theme.spacings.s1 + " 0px " + theme.spacings.s1;
14769
14942
  }, function (_ref2) {
@@ -14868,11 +15041,11 @@ var CalendarInterval = function CalendarInterval(props) {
14868
15041
  })));
14869
15042
  };
14870
15043
 
14871
- var _templateObject$s, _templateObject2$m, _templateObject3$l, _templateObject4$i, _templateObject5$h, _templateObject6$g, _templateObject7$c, _templateObject8$8, _templateObject9$7, _templateObject10$7, _templateObject11$3;
14872
- var Container$d = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
15044
+ var _templateObject$t, _templateObject2$m, _templateObject3$l, _templateObject4$j, _templateObject5$h, _templateObject6$g, _templateObject7$c, _templateObject8$8, _templateObject9$7, _templateObject10$7, _templateObject11$4;
15045
+ var Container$d = styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
14873
15046
  var Header$3 = styled.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
14874
15047
  var HeaderImage = styled.div(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
14875
- var HeaderContent = styled.div(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
15048
+ var HeaderContent = styled.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
14876
15049
  var MainContent = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
14877
15050
  var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _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) {
14878
15051
  return props.height;
@@ -14885,7 +15058,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
14885
15058
  }, function (props) {
14886
15059
  return props.size === 'large' && css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
14887
15060
  });
14888
- var MainLine = styled(HeaderLine)(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
15061
+ var MainLine = styled(HeaderLine)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
14889
15062
 
14890
15063
  var Template1 = function Template1(props) {
14891
15064
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -14920,24 +15093,24 @@ var Template1 = function Template1(props) {
14920
15093
  })));
14921
15094
  };
14922
15095
 
14923
- var _templateObject$t, _templateObject2$n, _templateObject3$m, _templateObject4$j, _templateObject5$i;
14924
- var HeaderLine$1 = styled.div(_templateObject$t || (_templateObject$t = _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) {
15096
+ var _templateObject$u, _templateObject2$n, _templateObject3$m, _templateObject4$k, _templateObject5$i;
15097
+ var HeaderLine$1 = styled.div(_templateObject$u || (_templateObject$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) {
14925
15098
  return props.height;
14926
15099
  }, function (props) {
14927
15100
  return props.size === 'mini' && css(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
14928
15101
  }, function (props) {
14929
15102
  return props.size === 'small' && css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
14930
15103
  }, function (props) {
14931
- return props.size === 'medium' && css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15104
+ return props.size === 'medium' && css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
14932
15105
  }, function (props) {
14933
15106
  return props.size === 'large' && css(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
14934
15107
  });
14935
15108
 
14936
- var _templateObject$u, _templateObject2$o, _templateObject3$n, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$d, _templateObject8$9;
14937
- var Container$e = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15109
+ var _templateObject$v, _templateObject2$o, _templateObject3$n, _templateObject4$l, _templateObject5$j, _templateObject6$h, _templateObject7$d, _templateObject8$9;
15110
+ var Container$e = styled.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
14938
15111
  var Template2Container = styled(Container$e)(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
14939
15112
  var Header$4 = styled.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
14940
- var HeaderImage$1 = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
15113
+ var HeaderImage$1 = styled.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
14941
15114
  var HeaderContent$1 = styled.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
14942
15115
  var MainContent$1 = styled.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
14943
15116
  var MainLine$1 = styled(HeaderLine$1)(_templateObject7$d || (_templateObject7$d = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
@@ -14964,8 +15137,8 @@ var Template2 = function Template2(props) {
14964
15137
  })));
14965
15138
  };
14966
15139
 
14967
- var _templateObject$v, _templateObject2$p, _templateObject3$o;
14968
- var Container$f = styled.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15140
+ var _templateObject$w, _templateObject2$p, _templateObject3$o;
15141
+ var Container$f = styled.div(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
14969
15142
  var Template3Container = styled(Container$f)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose([""])));
14970
15143
  var Template3Line = styled(HeaderLine$1)(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
14971
15144
  return props.height;
@@ -14996,14 +15169,14 @@ var Template3 = function Template3(props) {
14996
15169
  }));
14997
15170
  };
14998
15171
 
14999
- var _templateObject$w, _templateObject2$q, _templateObject3$p, _templateObject4$l, _templateObject5$k, _templateObject6$i, _templateObject7$e, _templateObject8$a;
15000
- var Container$g = styled.div(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15172
+ var _templateObject$x, _templateObject2$q, _templateObject3$p, _templateObject4$m, _templateObject5$k, _templateObject6$i, _templateObject7$e, _templateObject8$a;
15173
+ var Container$g = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15001
15174
  var HeaderLine$3 = styled.div(_templateObject2$q || (_templateObject2$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) {
15002
15175
  return props.height;
15003
15176
  }, function (props) {
15004
15177
  return props.size === 'mini' && css(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15005
15178
  }, function (props) {
15006
- return props.size === 'small' && css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15179
+ return props.size === 'small' && css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15007
15180
  }, function (props) {
15008
15181
  return props.size === 'medium' && css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15009
15182
  }, function (props) {
@@ -15063,13 +15236,13 @@ var Template4 = function Template4(props) {
15063
15236
  }));
15064
15237
  };
15065
15238
 
15066
- var _templateObject$x, _templateObject2$r, _templateObject3$q, _templateObject4$m, _templateObject5$l, _templateObject6$j, _templateObject7$f, _templateObject8$b, _templateObject9$8;
15067
- var Container$h = styled.div(_templateObject$x || (_templateObject$x = _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"])));
15239
+ var _templateObject$y, _templateObject2$r, _templateObject3$q, _templateObject4$n, _templateObject5$l, _templateObject6$j, _templateObject7$f, _templateObject8$b, _templateObject9$8;
15240
+ var Container$h = styled.div(_templateObject$y || (_templateObject$y = _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"])));
15068
15241
  var Circle = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
15069
15242
  var HeaderLine$4 = styled.div(_templateObject3$q || (_templateObject3$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) {
15070
15243
  return props.height;
15071
15244
  }, function (props) {
15072
- return props.size === 'mini' && css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15245
+ return props.size === 'mini' && css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15073
15246
  }, function (props) {
15074
15247
  return props.size === 'small' && css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15075
15248
  }, function (props) {
@@ -15111,11 +15284,11 @@ var Template5 = function Template5(props) {
15111
15284
  })));
15112
15285
  };
15113
15286
 
15114
- var _templateObject$y, _templateObject2$s, _templateObject3$r, _templateObject4$n, _templateObject5$m, _templateObject6$k, _templateObject7$g, _templateObject8$c, _templateObject9$9;
15115
- var Container$i = styled.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
15287
+ var _templateObject$z, _templateObject2$s, _templateObject3$r, _templateObject4$o, _templateObject5$m, _templateObject6$k, _templateObject7$g, _templateObject8$c, _templateObject9$9;
15288
+ var Container$i = styled.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
15116
15289
  var Header$5 = styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
15117
15290
  var Footer$3 = styled.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
15118
- var HeaderLine$5 = styled.div(_templateObject4$n || (_templateObject4$n = _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) {
15291
+ var HeaderLine$5 = styled.div(_templateObject4$o || (_templateObject4$o = _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) {
15119
15292
  return props.height;
15120
15293
  }, function (props) {
15121
15294
  return props.size === 'mini' && css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -15154,13 +15327,13 @@ var Template6 = function Template6(props) {
15154
15327
  })));
15155
15328
  };
15156
15329
 
15157
- var _templateObject$z, _templateObject2$t, _templateObject3$s, _templateObject4$o, _templateObject5$n, _templateObject6$l, _templateObject7$h, _templateObject8$d, _templateObject9$a, _templateObject10$8;
15158
- var Container$j = styled.div(_templateObject$z || (_templateObject$z = _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"])));
15330
+ var _templateObject$A, _templateObject2$t, _templateObject3$s, _templateObject4$p, _templateObject5$n, _templateObject6$l, _templateObject7$h, _templateObject8$d, _templateObject9$a, _templateObject10$8;
15331
+ var Container$j = styled.div(_templateObject$A || (_templateObject$A = _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"])));
15159
15332
  var Header$6 = styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15160
15333
  var HeaderLine$6 = styled.div(_templateObject3$s || (_templateObject3$s = _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) {
15161
15334
  return props.height;
15162
15335
  }, function (props) {
15163
- return props.size === 'mini' && css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15336
+ return props.size === 'mini' && css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15164
15337
  }, function (props) {
15165
15338
  return props.size === 'small' && css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15166
15339
  }, function (props) {
@@ -15188,13 +15361,13 @@ var Template7 = function Template7(props) {
15188
15361
  })), 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)));
15189
15362
  };
15190
15363
 
15191
- var _templateObject$A, _templateObject2$u, _templateObject3$t, _templateObject4$p, _templateObject5$o, _templateObject6$m, _templateObject7$i, _templateObject8$e, _templateObject9$b;
15192
- var Container$k = styled.div(_templateObject$A || (_templateObject$A = _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"])));
15364
+ var _templateObject$B, _templateObject2$u, _templateObject3$t, _templateObject4$q, _templateObject5$o, _templateObject6$m, _templateObject7$i, _templateObject8$e, _templateObject9$b;
15365
+ var Container$k = styled.div(_templateObject$B || (_templateObject$B = _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"])));
15193
15366
  var Header$7 = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15194
15367
  var HeaderLine$7 = styled.div(_templateObject3$t || (_templateObject3$t = _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) {
15195
15368
  return props.height;
15196
15369
  }, function (props) {
15197
- return props.size === 'mini' && css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15370
+ return props.size === 'mini' && css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15198
15371
  }, function (props) {
15199
15372
  return props.size === 'small' && css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15200
15373
  }, function (props) {
@@ -15231,13 +15404,13 @@ var Template8 = function Template8(props) {
15231
15404
  })));
15232
15405
  };
15233
15406
 
15234
- var _templateObject$B, _templateObject2$v, _templateObject3$u, _templateObject4$q, _templateObject5$p, _templateObject6$n, _templateObject7$j, _templateObject8$f, _templateObject9$c, _templateObject10$9;
15235
- var Container$l = styled.div(_templateObject$B || (_templateObject$B = _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"])));
15407
+ var _templateObject$C, _templateObject2$v, _templateObject3$u, _templateObject4$r, _templateObject5$p, _templateObject6$n, _templateObject7$j, _templateObject8$f, _templateObject9$c, _templateObject10$9;
15408
+ var Container$l = styled.div(_templateObject$C || (_templateObject$C = _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"])));
15236
15409
  var Header$8 = styled.div(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15237
15410
  var HeaderLine$8 = styled.div(_templateObject3$u || (_templateObject3$u = _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) {
15238
15411
  return props.height;
15239
15412
  }, function (props) {
15240
- return props.size === 'mini' && css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15413
+ return props.size === 'mini' && css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15241
15414
  }, function (props) {
15242
15415
  return props.size === 'small' && css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15243
15416
  }, function (props) {
@@ -15270,13 +15443,13 @@ var Template8$1 = function Template8(props) {
15270
15443
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
15271
15444
  };
15272
15445
 
15273
- var _templateObject$C, _templateObject2$w, _templateObject3$v, _templateObject4$r, _templateObject5$q, _templateObject6$o, _templateObject7$k, _templateObject8$g, _templateObject9$d, _templateObject10$a, _templateObject11$4;
15274
- var Container$m = styled.div(_templateObject$C || (_templateObject$C = _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"])));
15446
+ var _templateObject$D, _templateObject2$w, _templateObject3$v, _templateObject4$s, _templateObject5$q, _templateObject6$o, _templateObject7$k, _templateObject8$g, _templateObject9$d, _templateObject10$a, _templateObject11$5;
15447
+ var Container$m = styled.div(_templateObject$D || (_templateObject$D = _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"])));
15275
15448
  var Header$9 = styled.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
15276
15449
  var HeaderLine$9 = styled.div(_templateObject3$v || (_templateObject3$v = _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) {
15277
15450
  return props.height;
15278
15451
  }, function (props) {
15279
- return props.size === 'mini' && css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15452
+ return props.size === 'mini' && css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15280
15453
  }, function (props) {
15281
15454
  return props.size === 'small' && css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15282
15455
  }, function (props) {
@@ -15293,7 +15466,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$g || (_templateObject8$
15293
15466
  });
15294
15467
  var GraphLine = styled(CustomLine$6)(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
15295
15468
  var Main$3 = styled.div(_templateObject10$a || (_templateObject10$a = _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"])));
15296
- var Circle$3 = styled.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
15469
+ var Circle$3 = styled.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
15297
15470
 
15298
15471
  var Template10 = function Template10(props) {
15299
15472
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -15414,6 +15587,79 @@ var Placeholder = function Placeholder(props) {
15414
15587
  }
15415
15588
  };
15416
15589
 
15590
+ var _templateObject$E, _templateObject2$x, _templateObject3$w, _templateObject4$t, _templateObject5$r;
15591
+ var Image = styled.img(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
15592
+ var Container$n = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
15593
+ var width = _ref.width;
15594
+
15595
+ switch (typeof width) {
15596
+ case 'string':
15597
+ return width;
15598
+
15599
+ case 'number':
15600
+ return width + "px";
15601
+
15602
+ default:
15603
+ return 'auto';
15604
+ }
15605
+ }, function (_ref2) {
15606
+ var height = _ref2.height;
15607
+
15608
+ switch (typeof height) {
15609
+ case 'string':
15610
+ return height;
15611
+
15612
+ case 'number':
15613
+ return height + "px";
15614
+
15615
+ default:
15616
+ return 'auto';
15617
+ }
15618
+ });
15619
+ var Dimmer = styled.div(_templateObject3$w || (_templateObject3$w = _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) {
15620
+ var theme = _ref3.theme;
15621
+ return theme.getColor('greyishBlue', 50);
15622
+ });
15623
+ var Button$4 = styled(Button$1)(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
15624
+ var theme = _ref4.theme;
15625
+ return theme.getColor('white', 50);
15626
+ });
15627
+ var ModalContent = styled.div(_templateObject5$r || (_templateObject5$r = _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"])));
15628
+
15629
+ var _excluded$3 = ["src", "defaultClickOptions"];
15630
+
15631
+ var Zoom = function Zoom(props) {
15632
+ var src = props.src,
15633
+ imgProps = _objectWithoutPropertiesLoose(props, _excluded$3);
15634
+
15635
+ var _useState = useState(false),
15636
+ modalOpened = _useState[0],
15637
+ setModalOpened = _useState[1];
15638
+
15639
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$n, Object.assign({}, imgProps, {
15640
+ onClick: function onClick() {
15641
+ return setModalOpened(true);
15642
+ }
15643
+ }), React__default.createElement(Image, {
15644
+ src: src,
15645
+ alt: 'zoom'
15646
+ }), React__default.createElement(Dimmer, null, React__default.createElement(Button$4, {
15647
+ content: 'Zoom',
15648
+ color: 'white',
15649
+ onClick: function onClick() {
15650
+ return setModalOpened(true);
15651
+ }
15652
+ }))), React__default.createElement(Modal$1, {
15653
+ openState: [modalOpened, setModalOpened],
15654
+ size: 'large',
15655
+ title: 'Zoom',
15656
+ closeOnClickOutside: true
15657
+ }, React__default.createElement(ModalContent, null, React__default.createElement("img", {
15658
+ src: src,
15659
+ alt: 'zoom'
15660
+ }))));
15661
+ };
15662
+
15417
15663
  var theme = {
15418
15664
  sizes: sizes,
15419
15665
  fontSizes: fontSizes
@@ -15423,14 +15669,14 @@ var theme$1 = {
15423
15669
  button: theme
15424
15670
  };
15425
15671
 
15426
- var _templateObject$D;
15427
- var FontStyles = createGlobalStyle(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n"])));
15672
+ var _templateObject$F;
15673
+ var FontStyles = createGlobalStyle(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n"])));
15428
15674
 
15429
15675
  var Globals = function Globals() {
15430
15676
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(FontStyles, null));
15431
15677
  };
15432
15678
 
15433
- var _templateObject$E;
15679
+ var _templateObject$G;
15434
15680
 
15435
15681
  var getColor$1 = function getColor(color, opacity) {
15436
15682
  if (opacity === void 0) {
@@ -15445,7 +15691,7 @@ var useTypography = function useTypography(typography) {
15445
15691
  fontFamily = _typographies$typogra.fontFamily,
15446
15692
  fontWeight = _typographies$typogra.fontWeight,
15447
15693
  fontSize = _typographies$typogra.fontSize;
15448
- return css(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, fontWeight, fontSize);
15694
+ return css(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, fontWeight, fontSize);
15449
15695
  };
15450
15696
 
15451
15697
  var isDarkColor = function isDarkColor(color, ifDark, ifLight) {
@@ -15482,5 +15728,5 @@ var ThemeProvider = function ThemeProvider(props) {
15482
15728
  }, React__default.createElement(Globals, null), props.children);
15483
15729
  };
15484
15730
 
15485
- export { AbsoluteContainer as MwAbsoluteContainer, Button$1 as MwButton, CalendarInterval as MwCalendarInterval, Card as MwCard, Calendar as MwDatePicker, Icon as MwIcon, Indicator as MwIndicator, Input$3 as MwInput, Loader as MwLoader, Menu as MwMenu, Modal$1 as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs$1 as MwTabs, TextArea as MwTextArea, Toast as MwToast, ThemeProvider };
15731
+ export { AbsoluteContainer as MwAbsoluteContainer, Button$1 as MwButton, CalendarInterval as MwCalendarInterval, Card as MwCard, Calendar as MwDatePicker, EllipsisContainer$1 as MwEllipsisContainer, Icon as MwIcon, Indicator as MwIndicator, Input$3 as MwInput, Loader as MwLoader, Menu as MwMenu, Modal$1 as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs$1 as MwTabs, TextArea as MwTextArea, Toast as MwToast, Zoom as MwZoom, ThemeProvider };
15486
15732
  //# sourceMappingURL=index.modern.js.map