@mw-kit/mw-ui 1.7.23 → 1.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AbsoluteContainer/index.d.ts +1 -1
- package/dist/components/Calendar/components/Basic/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/Calendar/components/Basic/index.d.ts +1 -1
- package/dist/components/Calendar/components/Basic/interfaces.d.ts +2 -2
- package/dist/components/Calendar/components/Basic/styles.d.ts +1 -1
- package/dist/components/Calendar/components/Interval/components/Main/index.d.ts +1 -1
- package/dist/components/Calendar/components/Interval/index.d.ts +2 -2
- package/dist/components/Calendar/components/Single/components/Main/index.d.ts +1 -1
- package/dist/components/Calendar/components/Single/index.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +4 -4
- package/dist/components/Filters/AppliedFilters/components/Menu/styles.d.ts +1 -1
- package/dist/components/Filters/Filters/components/Submenu/components/Header/interfaces.d.ts +2 -2
- package/dist/components/Filters/Filters/interfaces.d.ts +2 -2
- package/dist/components/Filters/interfaces.d.ts +3 -3
- package/dist/components/Grid/components/Col/styles.d.ts +1 -1
- package/dist/components/Grid/components/Grid/styles.d.ts +1 -1
- package/dist/components/Grid/components/Row/styles.d.ts +1 -1
- package/dist/components/Input/components/Checkbox/interfaces.d.ts +4 -2
- package/dist/components/Input/components/DatePicker/interfaces.d.ts +1 -1
- package/dist/components/Input/components/Input/interfaces.d.ts +6 -2
- package/dist/components/Input/components/Input/styles.d.ts +5 -0
- package/dist/components/Input/components/RadioButton/interfaces.d.ts +2 -2
- package/dist/components/Input/components/Range/interfaces.d.ts +5 -5
- package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +3 -2
- package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Label/index.d.ts +7 -0
- package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +4 -4
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +17 -26
- package/dist/components/Input/components/Switch/interfaces.d.ts +5 -5
- package/dist/components/Input/components/Tags/interfaces.d.ts +2 -2
- package/dist/components/Menu/interfaces.d.ts +15 -13
- package/dist/components/Menu/styles.d.ts +1 -1
- package/dist/components/ScrollContainer/interfaces.d.ts +4 -4
- package/dist/functions/formatters.d.ts +2 -1
- package/dist/index.js +367 -315
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +367 -315
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -420,6 +420,14 @@ var getSpacings = function getSpacings(value, defaults) {
|
|
|
420
420
|
};
|
|
421
421
|
return values.top + " " + values.right + " " + values.bottom + " " + values.left;
|
|
422
422
|
};
|
|
423
|
+
var getBorder = function getBorder(config) {
|
|
424
|
+
return 'color' in config ? {
|
|
425
|
+
top: config,
|
|
426
|
+
left: config,
|
|
427
|
+
bottom: config,
|
|
428
|
+
right: config
|
|
429
|
+
} : config;
|
|
430
|
+
};
|
|
423
431
|
|
|
424
432
|
var Transition = function Transition(props) {
|
|
425
433
|
var active = props.active,
|
|
@@ -12102,43 +12110,73 @@ var getMask = function getMask(mask) {
|
|
|
12102
12110
|
};
|
|
12103
12111
|
};
|
|
12104
12112
|
|
|
12105
|
-
var _templateObject$4
|
|
12106
|
-
var
|
|
12113
|
+
var _templateObject$4;
|
|
12114
|
+
var EllipsisContainer = styled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
12115
|
+
|
|
12116
|
+
var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
12117
|
+
var myProps = _extends({}, props);
|
|
12118
|
+
|
|
12119
|
+
var _onMouseOver = myProps.onMouseOver || function () {};
|
|
12120
|
+
|
|
12121
|
+
myProps.onMouseOver = function (event) {
|
|
12122
|
+
_onMouseOver(event);
|
|
12123
|
+
|
|
12124
|
+
var target = event.target;
|
|
12125
|
+
|
|
12126
|
+
while (target && !('ellipsis' in target.dataset)) {
|
|
12127
|
+
target = target.parentElement;
|
|
12128
|
+
}
|
|
12129
|
+
|
|
12130
|
+
if (!target) return;
|
|
12131
|
+
|
|
12132
|
+
if (target.scrollWidth > target.offsetWidth) {
|
|
12133
|
+
target.title = target.innerText;
|
|
12134
|
+
} else target.removeAttribute('title');
|
|
12135
|
+
};
|
|
12136
|
+
|
|
12137
|
+
return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
|
|
12138
|
+
"data-ellipsis": ''
|
|
12139
|
+
}));
|
|
12140
|
+
};
|
|
12141
|
+
|
|
12142
|
+
var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
|
|
12143
|
+
var IconContainer = styled.button(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\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) {
|
|
12107
12144
|
var onClick = _ref.onClick,
|
|
12108
12145
|
disabled = _ref.disabled;
|
|
12109
12146
|
if (!onClick || disabled) return;
|
|
12110
12147
|
return css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12111
12148
|
});
|
|
12112
|
-
var
|
|
12149
|
+
var ChildrenContainer = styled(EllipsisContainer$1)(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n gap: ", ";\n"])), function (_ref2) {
|
|
12113
12150
|
var theme = _ref2.theme;
|
|
12151
|
+
return theme.spacings.s1;
|
|
12152
|
+
});
|
|
12153
|
+
var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _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 display: block;\n width: 100%;\n box-sizing: border-box;\n\n ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n ", ";\n\n box-shadow: none;\n outline: none;\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
12154
|
+
var theme = _ref3.theme;
|
|
12114
12155
|
return theme.useTypography('p');
|
|
12115
|
-
}, function (_ref3) {
|
|
12116
|
-
var theme = _ref3.theme,
|
|
12117
|
-
invalid = _ref3.invalid;
|
|
12118
|
-
return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
|
|
12119
12156
|
}, function (_ref4) {
|
|
12120
12157
|
var theme = _ref4.theme,
|
|
12121
12158
|
invalid = _ref4.invalid;
|
|
12122
|
-
return invalid ? theme.colors.warningRed : theme.colors.
|
|
12159
|
+
return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
|
|
12123
12160
|
}, function (_ref5) {
|
|
12124
|
-
var
|
|
12161
|
+
var theme = _ref5.theme,
|
|
12162
|
+
invalid = _ref5.invalid;
|
|
12163
|
+
return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
|
|
12164
|
+
}, function (_ref6) {
|
|
12165
|
+
var placeholder = _ref6.placeholder;
|
|
12125
12166
|
|
|
12126
12167
|
if (placeholder !== '••••••••') {
|
|
12127
|
-
return css(
|
|
12128
|
-
var theme =
|
|
12168
|
+
return css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 1;\n "])), function (_ref7) {
|
|
12169
|
+
var theme = _ref7.theme;
|
|
12129
12170
|
return theme.useTypography('p');
|
|
12130
12171
|
});
|
|
12131
12172
|
}
|
|
12132
12173
|
|
|
12133
|
-
return css(
|
|
12134
|
-
}, function (_ref7) {
|
|
12135
|
-
var width = _ref7.width;
|
|
12136
|
-
return width || '100%';
|
|
12174
|
+
return css(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
|
|
12137
12175
|
}, function (_ref8) {
|
|
12138
12176
|
var theme = _ref8.theme,
|
|
12139
12177
|
paddingless = _ref8.paddingless;
|
|
12140
12178
|
if (paddingless) return;
|
|
12141
|
-
return css(
|
|
12179
|
+
return css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n ~ ", " {\n padding: ", " ", ";\n }\n "])), theme.spacings.s2, theme.spacings.s3, ChildrenContainer, theme.spacings.s2, theme.spacings.s3);
|
|
12142
12180
|
}, function (_ref9) {
|
|
12143
12181
|
var theme = _ref9.theme,
|
|
12144
12182
|
invalid = _ref9.invalid,
|
|
@@ -12149,73 +12187,76 @@ var Input = styled.input(_templateObject3$4 || (_templateObject3$4 = _taggedTemp
|
|
|
12149
12187
|
var theme = _ref10.theme,
|
|
12150
12188
|
invalid = _ref10.invalid;
|
|
12151
12189
|
var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
|
|
12152
|
-
return css(
|
|
12190
|
+
return css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, color);
|
|
12153
12191
|
}, function (_ref11) {
|
|
12154
12192
|
var arrows = _ref11.arrows;
|
|
12155
12193
|
if (arrows) return;
|
|
12156
|
-
return css(
|
|
12194
|
+
return css(_templateObject9$1 || (_templateObject9$1 = _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 "])));
|
|
12157
12195
|
}, function (_ref12) {
|
|
12158
12196
|
var readOnly = _ref12.readOnly,
|
|
12159
12197
|
onClick = _ref12.onClick,
|
|
12160
12198
|
disabled = _ref12.disabled;
|
|
12161
|
-
if (!
|
|
12162
|
-
return css(
|
|
12199
|
+
if (readOnly || !onClick || disabled) return;
|
|
12200
|
+
return css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12163
12201
|
});
|
|
12164
|
-
var
|
|
12165
|
-
var
|
|
12166
|
-
return
|
|
12167
|
-
}
|
|
12202
|
+
var InputContainer = styled.div(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: ", ";\n"])), function (_ref13) {
|
|
12203
|
+
var width = _ref13.width;
|
|
12204
|
+
return width || '100%';
|
|
12205
|
+
});
|
|
12206
|
+
var Label = styled.label(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref14) {
|
|
12168
12207
|
var theme = _ref14.theme;
|
|
12169
|
-
return theme.
|
|
12208
|
+
return theme.useTypography('p');
|
|
12170
12209
|
}, function (_ref15) {
|
|
12171
|
-
var
|
|
12172
|
-
return
|
|
12210
|
+
var theme = _ref15.theme;
|
|
12211
|
+
return theme.colors.greyishBlue;
|
|
12173
12212
|
}, function (_ref16) {
|
|
12174
|
-
var
|
|
12213
|
+
var width = _ref16.width;
|
|
12214
|
+
return width || '100%';
|
|
12215
|
+
}, function (_ref17) {
|
|
12216
|
+
var disabled = _ref17.disabled;
|
|
12175
12217
|
if (!disabled) return;
|
|
12176
|
-
return css(
|
|
12177
|
-
}, IconContainer, function (
|
|
12178
|
-
var theme = _ref17.theme,
|
|
12179
|
-
paddingless = _ref17.paddingless;
|
|
12180
|
-
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12181
|
-
}, function (_ref18) {
|
|
12218
|
+
return css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12219
|
+
}, InputContainer, IconContainer, function (_ref18) {
|
|
12182
12220
|
var theme = _ref18.theme,
|
|
12183
|
-
icon = _ref18.icon,
|
|
12184
12221
|
paddingless = _ref18.paddingless;
|
|
12222
|
+
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12223
|
+
}, function (_ref19) {
|
|
12224
|
+
var readOnly = _ref19.readOnly,
|
|
12225
|
+
disabled = _ref19.disabled,
|
|
12226
|
+
loading = _ref19.loading;
|
|
12227
|
+
if (loading || readOnly || disabled) return;
|
|
12228
|
+
return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12229
|
+
}, function (_ref20) {
|
|
12230
|
+
var theme = _ref20.theme,
|
|
12231
|
+
icon = _ref20.icon,
|
|
12232
|
+
paddingless = _ref20.paddingless;
|
|
12185
12233
|
if (!icon) return;
|
|
12186
12234
|
var width = icon.width,
|
|
12187
12235
|
position = icon.position;
|
|
12188
12236
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12189
12237
|
|
|
12190
12238
|
if (position === 'right') {
|
|
12191
|
-
return css(
|
|
12239
|
+
return css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-right: calc(", " + ", ");\n ~ ", " {\n padding-right: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
|
|
12192
12240
|
}
|
|
12193
12241
|
|
|
12194
|
-
return css(
|
|
12242
|
+
return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-left: calc(", " + ", ");\n ~ ", " {\n padding-left: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
|
|
12195
12243
|
});
|
|
12196
|
-
var LabelText = styled.div(
|
|
12197
|
-
var theme =
|
|
12244
|
+
var LabelText = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
|
|
12245
|
+
var theme = _ref21.theme;
|
|
12198
12246
|
return theme.spacings.s1;
|
|
12199
|
-
}, function (
|
|
12200
|
-
var required =
|
|
12247
|
+
}, function (_ref22) {
|
|
12248
|
+
var required = _ref22.required;
|
|
12201
12249
|
if (!required) return;
|
|
12202
|
-
return css(
|
|
12250
|
+
return css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12203
12251
|
});
|
|
12204
12252
|
|
|
12205
12253
|
var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
12206
12254
|
var _props = _extends({}, props),
|
|
12207
12255
|
label = _props.label,
|
|
12208
|
-
required = _props.required,
|
|
12209
|
-
invalid = _props.invalid,
|
|
12210
|
-
disabled = _props.disabled,
|
|
12211
12256
|
loading = _props.loading,
|
|
12212
12257
|
clearable = _props.clearable,
|
|
12213
12258
|
onPressEnter = _props.onPressEnter,
|
|
12214
|
-
|
|
12215
|
-
width = _props.width,
|
|
12216
|
-
arrows = _props.arrows,
|
|
12217
|
-
borderless = _props.borderless,
|
|
12218
|
-
paddingless = _props.paddingless;
|
|
12259
|
+
width = _props.width;
|
|
12219
12260
|
|
|
12220
12261
|
var mask = getMask(props.mask);
|
|
12221
12262
|
useEffect(function () {
|
|
@@ -12223,12 +12264,14 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12223
12264
|
var masked = mask(props.value);
|
|
12224
12265
|
if (masked !== props.value) setValue(masked);
|
|
12225
12266
|
}, [props.value]);
|
|
12226
|
-
var intInvalid = invalid ? 1 : 0;
|
|
12227
|
-
var
|
|
12228
|
-
var
|
|
12229
|
-
var
|
|
12230
|
-
var
|
|
12231
|
-
var
|
|
12267
|
+
var intInvalid = props.invalid ? 1 : 0;
|
|
12268
|
+
var intLoading = props.loading ? 1 : 0;
|
|
12269
|
+
var intRequired = props.required ? 1 : 0;
|
|
12270
|
+
var intDisabled = props.disabled ? 1 : 0;
|
|
12271
|
+
var intReadOnly = props.readOnly ? 1 : 0;
|
|
12272
|
+
var intArrows = props.arrows ? 1 : 0;
|
|
12273
|
+
var intBorderless = props.borderless ? 1 : 0;
|
|
12274
|
+
var intPaddingless = props.paddingless ? 1 : 0;
|
|
12232
12275
|
var position;
|
|
12233
12276
|
var iconWidth;
|
|
12234
12277
|
var iconSubmit;
|
|
@@ -12244,13 +12287,12 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12244
12287
|
iconOnClick = props.icon.onClick;
|
|
12245
12288
|
}
|
|
12246
12289
|
|
|
12247
|
-
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless'], {
|
|
12290
|
+
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
|
|
12248
12291
|
invalid: intInvalid,
|
|
12249
12292
|
type: 'text',
|
|
12250
12293
|
arrows: intArrows,
|
|
12251
12294
|
borderless: intBorderless,
|
|
12252
|
-
paddingless: intPaddingless
|
|
12253
|
-
width: props.inputWidth
|
|
12295
|
+
paddingless: intPaddingless
|
|
12254
12296
|
});
|
|
12255
12297
|
|
|
12256
12298
|
var onChange = inputProps.onChange || function () {};
|
|
@@ -12339,27 +12381,34 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12339
12381
|
position: position,
|
|
12340
12382
|
width: iconWidth || '24px'
|
|
12341
12383
|
} : undefined;
|
|
12342
|
-
if (htmlDisabled) inputProps.disabled = true;
|
|
12384
|
+
if (props.htmlDisabled) inputProps.disabled = true;
|
|
12385
|
+
if (props.htmlReadOnly) inputProps.readOnly = true;
|
|
12343
12386
|
return React__default.createElement(Label, {
|
|
12387
|
+
readOnly: intReadOnly,
|
|
12344
12388
|
disabled: intDisabled,
|
|
12389
|
+
loading: intLoading,
|
|
12345
12390
|
invalid: intInvalid,
|
|
12346
12391
|
paddingless: intPaddingless,
|
|
12347
12392
|
icon: iconProps,
|
|
12348
12393
|
width: width
|
|
12349
12394
|
}, label && React__default.createElement(LabelText, {
|
|
12350
12395
|
required: intRequired
|
|
12351
|
-
}, label), React__default.createElement(
|
|
12396
|
+
}, label), React__default.createElement(InputContainer, {
|
|
12397
|
+
width: props.inputWidth
|
|
12398
|
+
}, React__default.createElement(Input, Object.assign({}, inputProps, {
|
|
12352
12399
|
ref: ref
|
|
12353
|
-
})),
|
|
12400
|
+
})), props.children && React__default.createElement(ChildrenContainer, {
|
|
12401
|
+
children: props.children
|
|
12402
|
+
}), icon && React__default.createElement(IconContainer, {
|
|
12354
12403
|
type: iconSubmit ? 'submit' : 'button',
|
|
12355
12404
|
onClick: props.disabled ? undefined : iconOnClick
|
|
12356
|
-
}, React__default.createElement(Icon, Object.assign({}, icon))));
|
|
12405
|
+
}, React__default.createElement(Icon, Object.assign({}, icon)))));
|
|
12357
12406
|
});
|
|
12358
12407
|
Input$1.displayName = 'Input';
|
|
12359
12408
|
|
|
12360
|
-
var _templateObject$
|
|
12409
|
+
var _templateObject$6, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2;
|
|
12361
12410
|
var size = '17px';
|
|
12362
|
-
var Checkmark = styled.div(_templateObject$
|
|
12411
|
+
var Checkmark = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n position: relative;\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\n /** if there is a label, it will be placed after this element */\n + * {\n flex: 1;\n }\n"])), size, size, function (_ref) {
|
|
12363
12412
|
var theme = _ref.theme;
|
|
12364
12413
|
return theme.colors.white;
|
|
12365
12414
|
}, function (_ref2) {
|
|
@@ -12369,7 +12418,7 @@ var Checkmark = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemp
|
|
|
12369
12418
|
var theme = _ref3.theme;
|
|
12370
12419
|
return theme.colors.blue;
|
|
12371
12420
|
});
|
|
12372
|
-
var Label$1 = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n border-color: ", ";\n\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n"])), function (_ref4) {
|
|
12421
|
+
var Label$1 = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n border-color: ", ";\n\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n\n ", "\n"])), function (_ref4) {
|
|
12373
12422
|
var theme = _ref4.theme;
|
|
12374
12423
|
return theme.useTypography('p');
|
|
12375
12424
|
}, function (_ref5) {
|
|
@@ -12444,14 +12493,17 @@ var Label$1 = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTe
|
|
|
12444
12493
|
invalid = _ref11.invalid;
|
|
12445
12494
|
if (!invalid) return;
|
|
12446
12495
|
return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n ", ",\n > input:checked ~ ", ", \n > input:checked ~ ", ":after {\n border-color: ", ";\n }\n "])), Checkmark, Checkmark, Checkmark, theme.colors.warningRed);
|
|
12496
|
+
}, function (_ref12) {
|
|
12497
|
+
var width = _ref12.width;
|
|
12498
|
+
return width && css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
12447
12499
|
});
|
|
12448
|
-
var LabelContent = styled.div(
|
|
12449
|
-
var theme =
|
|
12500
|
+
var LabelContent = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref13) {
|
|
12501
|
+
var theme = _ref13.theme;
|
|
12450
12502
|
return theme.useTypography('p');
|
|
12451
|
-
}, function (
|
|
12452
|
-
var required =
|
|
12503
|
+
}, function (_ref14) {
|
|
12504
|
+
var required = _ref14.required;
|
|
12453
12505
|
if (!required) return;
|
|
12454
|
-
return css(
|
|
12506
|
+
return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12455
12507
|
});
|
|
12456
12508
|
|
|
12457
12509
|
var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
@@ -12471,7 +12523,8 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
|
12471
12523
|
required: required ? 1 : 0,
|
|
12472
12524
|
invalid: invalid ? 1 : 0,
|
|
12473
12525
|
bordered: bordered ? 1 : 0,
|
|
12474
|
-
padding: padding
|
|
12526
|
+
padding: padding,
|
|
12527
|
+
width: props.width
|
|
12475
12528
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
12476
12529
|
type: 'checkbox',
|
|
12477
12530
|
ref: ref
|
|
@@ -12517,35 +12570,6 @@ var inputTimeWidth = {
|
|
|
12517
12570
|
withoutSeconds: '66px'
|
|
12518
12571
|
};
|
|
12519
12572
|
|
|
12520
|
-
var _templateObject$6;
|
|
12521
|
-
var EllipsisContainer = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
12522
|
-
|
|
12523
|
-
var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
12524
|
-
var myProps = _extends({}, props);
|
|
12525
|
-
|
|
12526
|
-
var _onMouseOver = myProps.onMouseOver || function () {};
|
|
12527
|
-
|
|
12528
|
-
myProps.onMouseOver = function (event) {
|
|
12529
|
-
_onMouseOver(event);
|
|
12530
|
-
|
|
12531
|
-
var target = event.target;
|
|
12532
|
-
|
|
12533
|
-
while (target && !('ellipsis' in target.dataset)) {
|
|
12534
|
-
target = target.parentElement;
|
|
12535
|
-
}
|
|
12536
|
-
|
|
12537
|
-
if (!target) return;
|
|
12538
|
-
|
|
12539
|
-
if (target.scrollWidth > target.offsetWidth) {
|
|
12540
|
-
target.title = target.innerText;
|
|
12541
|
-
} else target.removeAttribute('title');
|
|
12542
|
-
};
|
|
12543
|
-
|
|
12544
|
-
return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
|
|
12545
|
-
"data-ellipsis": ''
|
|
12546
|
-
}));
|
|
12547
|
-
};
|
|
12548
|
-
|
|
12549
12573
|
var _templateObject$7, _templateObject2$6, _templateObject3$6, _templateObject4$5;
|
|
12550
12574
|
var Container$1 = styled.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: hidden;\n"])), function (_ref) {
|
|
12551
12575
|
var theme = _ref.theme;
|
|
@@ -12619,8 +12643,8 @@ var ScrollContainer = function ScrollContainer(props) {
|
|
|
12619
12643
|
})), after);
|
|
12620
12644
|
};
|
|
12621
12645
|
|
|
12622
|
-
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3;
|
|
12623
|
-
var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12646
|
+
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
12647
|
+
var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n gap: ", ";\n flex: 1;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12624
12648
|
var theme = _ref.theme;
|
|
12625
12649
|
return theme.useTypography('p');
|
|
12626
12650
|
}, function (_ref2) {
|
|
@@ -12630,19 +12654,36 @@ var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplat
|
|
|
12630
12654
|
var theme = _ref3.theme;
|
|
12631
12655
|
return theme.colors.darkBlue;
|
|
12632
12656
|
}, function (_ref4) {
|
|
12633
|
-
var
|
|
12657
|
+
var theme = _ref4.theme;
|
|
12658
|
+
return theme.spacings.s1;
|
|
12659
|
+
}, function (_ref5) {
|
|
12660
|
+
var disabled = _ref5.disabled;
|
|
12634
12661
|
|
|
12635
12662
|
if (!disabled) {
|
|
12636
12663
|
return css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12637
12664
|
}
|
|
12638
12665
|
|
|
12639
12666
|
return css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
|
|
12640
|
-
}, function (
|
|
12641
|
-
var
|
|
12667
|
+
}, function (_ref6) {
|
|
12668
|
+
var border = _ref6.border,
|
|
12669
|
+
theme = _ref6.theme;
|
|
12670
|
+
if (!border) return;
|
|
12671
|
+
var config = getBorder(border);
|
|
12672
|
+
return keys(config).filter(function (k) {
|
|
12673
|
+
return config[k] !== undefined;
|
|
12674
|
+
}).map(function (pos) {
|
|
12675
|
+
var cfg = config[pos];
|
|
12676
|
+
var width = cfg.width || '1px';
|
|
12677
|
+
var style = cfg.style || 'solid';
|
|
12678
|
+
var color = isKeyOf(theme.colors, cfg.color) ? theme.colors[cfg.color] : cfg.color;
|
|
12679
|
+
return css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
|
|
12680
|
+
});
|
|
12681
|
+
}, function (_ref7) {
|
|
12682
|
+
var theme = _ref7.theme;
|
|
12642
12683
|
return theme.colors.iceWhite;
|
|
12643
12684
|
});
|
|
12644
|
-
var Container$2 = styled(AbsoluteContainer)(
|
|
12645
|
-
var theme =
|
|
12685
|
+
var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref8) {
|
|
12686
|
+
var theme = _ref8.theme;
|
|
12646
12687
|
return theme.colors.white;
|
|
12647
12688
|
}, function (props) {
|
|
12648
12689
|
if (!props.containerSpacing) return;
|
|
@@ -12650,31 +12691,31 @@ var Container$2 = styled(AbsoluteContainer)(_templateObject4$6 || (_templateObje
|
|
|
12650
12691
|
var tmp = spacing.split(' ');
|
|
12651
12692
|
tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
|
|
12652
12693
|
spacing = tmp.join(' ');
|
|
12653
|
-
return css(
|
|
12654
|
-
}, function (
|
|
12655
|
-
var bordered =
|
|
12694
|
+
return css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
|
|
12695
|
+
}, function (_ref9) {
|
|
12696
|
+
var bordered = _ref9.bordered;
|
|
12656
12697
|
if (!bordered) return;
|
|
12657
|
-
return css(
|
|
12658
|
-
var theme =
|
|
12698
|
+
return css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref10) {
|
|
12699
|
+
var theme = _ref10.theme;
|
|
12659
12700
|
return theme.getColor('greyishBlue', 10);
|
|
12660
12701
|
});
|
|
12661
12702
|
}, function (props) {
|
|
12662
12703
|
var theme = props.theme;
|
|
12663
12704
|
|
|
12664
12705
|
if (!props.itemSpacing) {
|
|
12665
|
-
return css(
|
|
12706
|
+
return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
|
|
12666
12707
|
}
|
|
12667
12708
|
|
|
12668
12709
|
var spacing = getSpacings(props.itemSpacing, {
|
|
12669
12710
|
right: '0'
|
|
12670
12711
|
});
|
|
12671
|
-
return css(
|
|
12712
|
+
return css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
|
|
12672
12713
|
});
|
|
12673
|
-
var Delimiter = styled.div(
|
|
12674
|
-
var theme =
|
|
12714
|
+
var Delimiter = styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref11) {
|
|
12715
|
+
var theme = _ref11.theme;
|
|
12675
12716
|
return theme.useTypography('p');
|
|
12676
|
-
}, function (
|
|
12677
|
-
var theme =
|
|
12717
|
+
}, function (_ref12) {
|
|
12718
|
+
var theme = _ref12.theme;
|
|
12678
12719
|
return theme.colors.greyishBlue;
|
|
12679
12720
|
});
|
|
12680
12721
|
|
|
@@ -12706,12 +12747,9 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12706
12747
|
var _option = _extends({}, option),
|
|
12707
12748
|
delimiter = _option.delimiter,
|
|
12708
12749
|
keepOpen = _option.keepOpen,
|
|
12709
|
-
caret = _option.caret
|
|
12750
|
+
caret = _option.caret,
|
|
12751
|
+
data = _option.data;
|
|
12710
12752
|
|
|
12711
|
-
var label = isString(option.label) ? {
|
|
12712
|
-
text: option.label,
|
|
12713
|
-
element: option.label
|
|
12714
|
-
} : option.label;
|
|
12715
12753
|
var closeMenu = keepOpen ? function () {} : close;
|
|
12716
12754
|
var onClick;
|
|
12717
12755
|
var disabled = option.disabled;
|
|
@@ -12722,9 +12760,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12722
12760
|
};
|
|
12723
12761
|
|
|
12724
12762
|
if (!disabled) {
|
|
12725
|
-
var
|
|
12726
|
-
|
|
12727
|
-
return rule(index, option.data, label);
|
|
12763
|
+
var rule = (option.rules || []).map(function (rule) {
|
|
12764
|
+
return rule(index, data);
|
|
12728
12765
|
}).find(function (result) {
|
|
12729
12766
|
return result !== true;
|
|
12730
12767
|
});
|
|
@@ -12757,12 +12794,21 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12757
12794
|
}
|
|
12758
12795
|
|
|
12759
12796
|
OptionContent.displayName = 'OptionContent';
|
|
12797
|
+
var label = option.label;
|
|
12798
|
+
var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
|
|
12799
|
+
labelOptions.disabled = disabled;
|
|
12800
|
+
var LabelComponent = typeof label === 'function' ? label : function () {
|
|
12801
|
+
return React__default.createElement(React__default.Fragment, {
|
|
12802
|
+
children: label
|
|
12803
|
+
});
|
|
12804
|
+
};
|
|
12760
12805
|
return React__default.createElement(React__default.Fragment, {
|
|
12761
12806
|
key: index
|
|
12762
12807
|
}, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
|
|
12763
12808
|
onClick: onClick,
|
|
12764
|
-
disabled: disabled
|
|
12765
|
-
|
|
12809
|
+
disabled: disabled,
|
|
12810
|
+
border: option.border
|
|
12811
|
+
}, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option))), caret ? React__default.createElement(Icon, {
|
|
12766
12812
|
type: 'semantic',
|
|
12767
12813
|
icon: 'caret right',
|
|
12768
12814
|
width: '14px'
|
|
@@ -12882,7 +12928,8 @@ var MonthPicker = function MonthPicker(props) {
|
|
|
12882
12928
|
rules: [function () {
|
|
12883
12929
|
var disabled = min !== undefined && (min.getFullYear() > year || min.getFullYear() === year && min.getMonth() > index) || max !== undefined && (max.getFullYear() < year || max.getFullYear() === year && max.getMonth() < index);
|
|
12884
12930
|
return !disabled;
|
|
12885
|
-
}]
|
|
12931
|
+
}],
|
|
12932
|
+
data: {}
|
|
12886
12933
|
};
|
|
12887
12934
|
})
|
|
12888
12935
|
}));
|
|
@@ -12925,7 +12972,7 @@ var Indicator = function Indicator(props) {
|
|
|
12925
12972
|
}, props)));
|
|
12926
12973
|
};
|
|
12927
12974
|
|
|
12928
|
-
var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$
|
|
12975
|
+
var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$2;
|
|
12929
12976
|
var Footer = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
12930
12977
|
var WeekContainer = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
12931
12978
|
var theme = _ref.theme;
|
|
@@ -12982,7 +13029,7 @@ var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _ta
|
|
|
12982
13029
|
return;
|
|
12983
13030
|
}
|
|
12984
13031
|
|
|
12985
|
-
return css(_templateObject10$
|
|
13032
|
+
return css(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n top: -60%;\n right: -60%;\n width: 100%;\n height: 100%;\n background-color: ", ";\n transform: rotate(45deg);\n }\n "])), theme.colors[appearance === 'active' ? 'white' : 'blue']);
|
|
12986
13033
|
});
|
|
12987
13034
|
var DayIndicator = styled(Indicator).attrs({
|
|
12988
13035
|
size: 'mini'
|
|
@@ -13557,7 +13604,7 @@ var getTimeProps = function getTimeProps(time, value) {
|
|
|
13557
13604
|
});
|
|
13558
13605
|
};
|
|
13559
13606
|
|
|
13560
|
-
var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$
|
|
13607
|
+
var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$5, _templateObject11$3, _templateObject12$2;
|
|
13561
13608
|
var Button = styled.button(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n ", "\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
13562
13609
|
var theme = _ref.theme,
|
|
13563
13610
|
appearance = _ref.appearance;
|
|
@@ -13629,7 +13676,7 @@ var Button = styled.button(_templateObject$e || (_templateObject$e = _taggedTemp
|
|
|
13629
13676
|
}
|
|
13630
13677
|
|
|
13631
13678
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
13632
|
-
return css(_templateObject10$
|
|
13679
|
+
return css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
13633
13680
|
}
|
|
13634
13681
|
|
|
13635
13682
|
return css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
@@ -14272,37 +14319,61 @@ var Header$1 = function Header() {
|
|
|
14272
14319
|
|
|
14273
14320
|
var getOptions = function getOptions(props, options) {
|
|
14274
14321
|
return options.map(function (option) {
|
|
14275
|
-
var label = isString(option.label) ? {
|
|
14276
|
-
text: option.label,
|
|
14277
|
-
element: option.label
|
|
14278
|
-
} : option.label;
|
|
14279
14322
|
var value = option.value,
|
|
14280
14323
|
onClick = option.onClick,
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14324
|
+
rules = option.rules,
|
|
14325
|
+
disabled = option.disabled;
|
|
14326
|
+
var selected = option.value === props.value;
|
|
14327
|
+
|
|
14328
|
+
var data = _extends({}, option.data, {
|
|
14329
|
+
selected: selected,
|
|
14330
|
+
value: value
|
|
14331
|
+
});
|
|
14332
|
+
|
|
14333
|
+
var LabelComponent = option.label;
|
|
14334
|
+
var parsed = {
|
|
14335
|
+
label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
|
|
14336
|
+
var disabled = _ref.disabled;
|
|
14337
|
+
return React__default.createElement(LabelComponent, Object.assign({}, {
|
|
14287
14338
|
value: value,
|
|
14288
|
-
data: data
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
props.setValue(value, option);
|
|
14339
|
+
data: data,
|
|
14340
|
+
disabled: disabled
|
|
14341
|
+
}));
|
|
14292
14342
|
},
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
14343
|
+
onClick: onClick || function () {
|
|
14344
|
+
props.setValue(selected ? '' : value, option.data);
|
|
14345
|
+
},
|
|
14346
|
+
disabled: disabled,
|
|
14347
|
+
rules: rules,
|
|
14348
|
+
border: {
|
|
14349
|
+
left: {
|
|
14350
|
+
color: selected ? 'blue' : 'transparent'
|
|
14351
|
+
}
|
|
14352
|
+
},
|
|
14353
|
+
data: data
|
|
14296
14354
|
};
|
|
14355
|
+
return parsed;
|
|
14297
14356
|
});
|
|
14298
14357
|
};
|
|
14299
14358
|
|
|
14300
|
-
var
|
|
14359
|
+
var getSelected = function getSelected(value, options) {
|
|
14301
14360
|
var selectedIndex = options.findIndex(function (option) {
|
|
14302
14361
|
return option.value === value;
|
|
14303
14362
|
});
|
|
14304
|
-
|
|
14305
|
-
|
|
14363
|
+
if (selectedIndex === -1) return null;
|
|
14364
|
+
var selected = options[selectedIndex];
|
|
14365
|
+
return selected;
|
|
14366
|
+
};
|
|
14367
|
+
|
|
14368
|
+
var getInputContent = function getInputContent(props, selectedOption) {
|
|
14369
|
+
if (typeof selectedOption.label !== 'function') return selectedOption.label;
|
|
14370
|
+
var LabelComponent = selectedOption.label;
|
|
14371
|
+
return React__default.createElement(LabelComponent, {
|
|
14372
|
+
data: _extends({}, selectedOption.data),
|
|
14373
|
+
value: selectedOption.value,
|
|
14374
|
+
disabled: props.disabled || props.loading,
|
|
14375
|
+
mode: 'placeholder'
|
|
14376
|
+
});
|
|
14306
14377
|
};
|
|
14307
14378
|
|
|
14308
14379
|
var useSelect = function useSelect(props) {
|
|
@@ -14311,16 +14382,15 @@ var useSelect = function useSelect(props) {
|
|
|
14311
14382
|
setOptions = _useState[1];
|
|
14312
14383
|
|
|
14313
14384
|
var parsedOptions = getOptions(props, options);
|
|
14314
|
-
var inputValue = getInputValue(props.value, options, parsedOptions);
|
|
14315
14385
|
|
|
14316
14386
|
var onReset = function onReset() {};
|
|
14317
14387
|
|
|
14388
|
+
var selectedOption = getSelected(props.value, options);
|
|
14389
|
+
var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
|
|
14318
14390
|
return {
|
|
14319
14391
|
parsedOptions: parsedOptions,
|
|
14320
14392
|
options: [options, setOptions],
|
|
14321
|
-
|
|
14322
|
-
value: inputValue
|
|
14323
|
-
},
|
|
14393
|
+
inputContent: inputContent,
|
|
14324
14394
|
onReset: onReset,
|
|
14325
14395
|
menu: {
|
|
14326
14396
|
itemSpacing: 's3',
|
|
@@ -14334,6 +14404,9 @@ var useSelect = function useSelect(props) {
|
|
|
14334
14404
|
options: options
|
|
14335
14405
|
})
|
|
14336
14406
|
}, children);
|
|
14407
|
+
},
|
|
14408
|
+
onClear: function onClear() {
|
|
14409
|
+
return props.onClear('');
|
|
14337
14410
|
}
|
|
14338
14411
|
};
|
|
14339
14412
|
};
|
|
@@ -14351,9 +14424,7 @@ var Footer$1 = function Footer() {
|
|
|
14351
14424
|
setOpen = context.setOpen;
|
|
14352
14425
|
|
|
14353
14426
|
var onClick = function onClick() {
|
|
14354
|
-
setValue(
|
|
14355
|
-
return c.value;
|
|
14356
|
-
}), [].concat(checked));
|
|
14427
|
+
setValue([].concat(checked));
|
|
14357
14428
|
setOpen(false);
|
|
14358
14429
|
};
|
|
14359
14430
|
|
|
@@ -14423,7 +14494,9 @@ var Header$2 = function Header() {
|
|
|
14423
14494
|
|
|
14424
14495
|
var onClick = function onClick() {
|
|
14425
14496
|
setChecked(function (prev) {
|
|
14426
|
-
return prev.length === options.length ? [] :
|
|
14497
|
+
return prev.length === options.length ? [] : options.map(function (o) {
|
|
14498
|
+
return o.value;
|
|
14499
|
+
});
|
|
14427
14500
|
});
|
|
14428
14501
|
};
|
|
14429
14502
|
|
|
@@ -14448,128 +14521,95 @@ var Header$2 = function Header() {
|
|
|
14448
14521
|
}));
|
|
14449
14522
|
};
|
|
14450
14523
|
|
|
14451
|
-
var
|
|
14524
|
+
var Label$2 = function Label(props) {
|
|
14525
|
+
var context = useContext$1();
|
|
14526
|
+
var _context$checked = context.checked,
|
|
14527
|
+
checked = _context$checked[0],
|
|
14528
|
+
setChecked = _context$checked[1];
|
|
14529
|
+
var _props$option$data = props.option.data,
|
|
14530
|
+
disabled = _props$option$data.disabled,
|
|
14531
|
+
value = _props$option$data.value;
|
|
14532
|
+
var LabelComponent = props.label;
|
|
14533
|
+
return React__default.createElement(Checkbox, {
|
|
14534
|
+
type: 'checkbox',
|
|
14535
|
+
checked: checked.findIndex(function (e) {
|
|
14536
|
+
return e === value;
|
|
14537
|
+
}) !== -1,
|
|
14538
|
+
label: typeof LabelComponent !== 'function' ? LabelComponent : React__default.createElement(LabelComponent, Object.assign({}, props.option)),
|
|
14539
|
+
disabled: disabled,
|
|
14540
|
+
onChange: function onChange(event) {
|
|
14541
|
+
var isChecked = event.target.checked;
|
|
14542
|
+
setChecked(function (prev) {
|
|
14543
|
+
var newState = prev.filter(function (v) {
|
|
14544
|
+
return v !== value;
|
|
14545
|
+
});
|
|
14546
|
+
if (isChecked) newState.push(value);
|
|
14547
|
+
return newState;
|
|
14548
|
+
});
|
|
14549
|
+
},
|
|
14550
|
+
padding: {
|
|
14551
|
+
top: 's3',
|
|
14552
|
+
left: 's3',
|
|
14553
|
+
right: 's3',
|
|
14554
|
+
bottom: 's3'
|
|
14555
|
+
},
|
|
14556
|
+
width: '100%'
|
|
14557
|
+
});
|
|
14558
|
+
};
|
|
14559
|
+
|
|
14560
|
+
var getOptions$1 = function getOptions(options) {
|
|
14452
14561
|
return options.map(function (option) {
|
|
14453
|
-
var
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
label: {
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
label: label.element,
|
|
14469
|
-
disabled: option.disabled,
|
|
14470
|
-
onChange: function onChange(event) {
|
|
14471
|
-
var isChecked = event.target.checked;
|
|
14472
|
-
setChecked(function (prev) {
|
|
14473
|
-
var newState = prev.filter(function (v) {
|
|
14474
|
-
return v.value !== option.value;
|
|
14475
|
-
});
|
|
14476
|
-
if (isChecked) newState.push(_extends({}, option));
|
|
14477
|
-
return newState;
|
|
14478
|
-
});
|
|
14479
|
-
},
|
|
14480
|
-
padding: {
|
|
14481
|
-
top: 's3',
|
|
14482
|
-
left: 's3',
|
|
14483
|
-
right: 's3',
|
|
14484
|
-
bottom: 's3'
|
|
14485
|
-
}
|
|
14486
|
-
})
|
|
14562
|
+
var _label = option.label,
|
|
14563
|
+
value = option.value,
|
|
14564
|
+
onClick = option.onClick;
|
|
14565
|
+
var data = {
|
|
14566
|
+
data: option.data,
|
|
14567
|
+
value: value
|
|
14568
|
+
};
|
|
14569
|
+
var parsed = {
|
|
14570
|
+
label: function label(option) {
|
|
14571
|
+
return React__default.createElement(Label$2, {
|
|
14572
|
+
option: _extends({}, data, {
|
|
14573
|
+
disabled: option.disabled
|
|
14574
|
+
}),
|
|
14575
|
+
label: _label
|
|
14576
|
+
});
|
|
14487
14577
|
},
|
|
14488
|
-
onClick: onClick
|
|
14489
|
-
onClick(index, {
|
|
14490
|
-
label: label,
|
|
14491
|
-
value: value,
|
|
14492
|
-
data: data
|
|
14493
|
-
}, event);
|
|
14494
|
-
} : undefined,
|
|
14578
|
+
onClick: onClick,
|
|
14495
14579
|
data: data,
|
|
14496
14580
|
disabled: option.disabled,
|
|
14497
14581
|
rules: option.rules,
|
|
14498
14582
|
keepOpen: true
|
|
14499
14583
|
};
|
|
14584
|
+
return parsed;
|
|
14500
14585
|
});
|
|
14501
14586
|
};
|
|
14502
14587
|
|
|
14503
|
-
var
|
|
14588
|
+
var getInputContent$1 = function getInputContent(value) {
|
|
14504
14589
|
if (value.length < 1) return '';
|
|
14505
14590
|
return value.length > 1 ? "H\xE1 " + value.length + " sele\xE7\xF5es" : "H\xE1 " + value.length + " sele\xE7\xE3o";
|
|
14506
14591
|
};
|
|
14507
14592
|
|
|
14508
14593
|
var useSelectMultiple = function useSelectMultiple(props) {
|
|
14509
|
-
var init = function init() {
|
|
14510
|
-
if (props.value.length) return [];
|
|
14511
|
-
return typeof props.value[0] === 'string' ? [].concat(props.value).map(function (value) {
|
|
14512
|
-
return {
|
|
14513
|
-
value: value,
|
|
14514
|
-
label: value
|
|
14515
|
-
};
|
|
14516
|
-
}) : [].concat(props.value);
|
|
14517
|
-
};
|
|
14518
|
-
|
|
14519
14594
|
var _useState = useState([]),
|
|
14520
14595
|
options = _useState[0],
|
|
14521
14596
|
setOptions = _useState[1];
|
|
14522
14597
|
|
|
14523
|
-
var _useState2 = useState(
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
var _useState3 = useState(init),
|
|
14528
|
-
checked = _useState3[0],
|
|
14529
|
-
setChecked = _useState3[1];
|
|
14530
|
-
|
|
14531
|
-
useEffect(function () {
|
|
14532
|
-
var getOption = function getOption(def, options, prev) {
|
|
14533
|
-
var index = options.findIndex(function (o) {
|
|
14534
|
-
return o.value === def.value;
|
|
14535
|
-
});
|
|
14536
|
-
if (index !== -1) return _extends({}, options[index]);else {
|
|
14537
|
-
var _index = prev.findIndex(function (o) {
|
|
14538
|
-
return o.value === def.value;
|
|
14539
|
-
});
|
|
14540
|
-
|
|
14541
|
-
if (_index !== -1) return _extends({}, prev[_index]);
|
|
14542
|
-
}
|
|
14543
|
-
return def;
|
|
14544
|
-
};
|
|
14598
|
+
var _useState2 = useState([].concat(props.value)),
|
|
14599
|
+
checked = _useState2[0],
|
|
14600
|
+
setChecked = _useState2[1];
|
|
14545
14601
|
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
return getOption({
|
|
14549
|
-
value: value,
|
|
14550
|
-
label: value
|
|
14551
|
-
}, options, prev);
|
|
14552
|
-
}) : props.value.map(function (value) {
|
|
14553
|
-
return getOption(value, options, prev);
|
|
14554
|
-
});
|
|
14555
|
-
};
|
|
14556
|
-
|
|
14557
|
-
setInitial(mapper);
|
|
14558
|
-
setChecked(mapper);
|
|
14559
|
-
}, [props.value, options]);
|
|
14560
|
-
var parsedOptions = getOptions$1(options, checked, setChecked);
|
|
14561
|
-
var inputValue = getInputValue$1(props.value);
|
|
14602
|
+
var parsedOptions = getOptions$1(options);
|
|
14603
|
+
var inputContent = getInputContent$1(props.value);
|
|
14562
14604
|
|
|
14563
14605
|
var onReset = function onReset() {
|
|
14564
|
-
setChecked([].concat(
|
|
14606
|
+
setChecked([].concat(props.value));
|
|
14565
14607
|
};
|
|
14566
14608
|
|
|
14567
14609
|
var returnData = {
|
|
14568
14610
|
parsedOptions: parsedOptions,
|
|
14569
14611
|
options: [options, setOptions],
|
|
14570
|
-
|
|
14571
|
-
value: inputValue
|
|
14572
|
-
},
|
|
14612
|
+
inputContent: inputContent,
|
|
14573
14613
|
onReset: onReset,
|
|
14574
14614
|
menu: {
|
|
14575
14615
|
itemSpacing: undefined,
|
|
@@ -14585,6 +14625,9 @@ var useSelectMultiple = function useSelectMultiple(props) {
|
|
|
14585
14625
|
checked: [checked, setChecked]
|
|
14586
14626
|
})
|
|
14587
14627
|
}, children);
|
|
14628
|
+
},
|
|
14629
|
+
onClear: function onClear() {
|
|
14630
|
+
return props.setValue([]);
|
|
14588
14631
|
}
|
|
14589
14632
|
};
|
|
14590
14633
|
return returnData;
|
|
@@ -14602,12 +14645,13 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14602
14645
|
|
|
14603
14646
|
var _ref = props.type === 'select-multiple' ? useSelectMultiple(props) : useSelect(props),
|
|
14604
14647
|
parsedOptions = _ref.parsedOptions,
|
|
14605
|
-
|
|
14648
|
+
inputContent = _ref.inputContent,
|
|
14606
14649
|
_ref$options = _ref.options,
|
|
14607
14650
|
setOptions = _ref$options[1],
|
|
14608
14651
|
onReset = _ref.onReset,
|
|
14609
14652
|
menuProps = _ref.menu,
|
|
14610
|
-
getContext = _ref.getContext
|
|
14653
|
+
getContext = _ref.getContext,
|
|
14654
|
+
onClear = _ref.onClear;
|
|
14611
14655
|
|
|
14612
14656
|
var _useState = useState(false),
|
|
14613
14657
|
_loading = _useState[0],
|
|
@@ -14641,9 +14685,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14641
14685
|
setPage(1);
|
|
14642
14686
|
};
|
|
14643
14687
|
|
|
14644
|
-
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']
|
|
14645
|
-
value: inputValue
|
|
14646
|
-
});
|
|
14688
|
+
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']);
|
|
14647
14689
|
|
|
14648
14690
|
var _onScrollEnd = props.onScrollEnd || function () {};
|
|
14649
14691
|
|
|
@@ -14728,7 +14770,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14728
14770
|
width: props.width
|
|
14729
14771
|
}, React__default.createElement(Input$1, Object.assign({}, inputProps, {
|
|
14730
14772
|
type: 'search',
|
|
14731
|
-
|
|
14773
|
+
htmlReadOnly: true,
|
|
14732
14774
|
onClick: onClick,
|
|
14733
14775
|
loading: loading,
|
|
14734
14776
|
icon: {
|
|
@@ -14740,7 +14782,10 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14740
14782
|
},
|
|
14741
14783
|
onClick: onClick
|
|
14742
14784
|
},
|
|
14743
|
-
ref: ref
|
|
14785
|
+
ref: ref,
|
|
14786
|
+
clearable: props.value.length > 0 ? onClear : undefined,
|
|
14787
|
+
placeholder: props.value.length === 0 ? props.placeholder : undefined,
|
|
14788
|
+
children: inputContent
|
|
14744
14789
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
14745
14790
|
open: open,
|
|
14746
14791
|
close: function close() {
|
|
@@ -14748,7 +14793,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14748
14793
|
},
|
|
14749
14794
|
options: parsedOptions,
|
|
14750
14795
|
onScrollEnd: onScrollEnd,
|
|
14751
|
-
width: '100%',
|
|
14796
|
+
width: props.inputWidth || '100%',
|
|
14752
14797
|
bordered: true,
|
|
14753
14798
|
position: position,
|
|
14754
14799
|
references: {
|
|
@@ -15011,7 +15056,7 @@ var countries = {
|
|
|
15011
15056
|
var _templateObject$n, _templateObject2$i, _templateObject3$d;
|
|
15012
15057
|
var IconContainer$1 = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n > i.icon {\n margin-top: -1px;\n }\n"])));
|
|
15013
15058
|
var RelativeContainer$3 = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
15014
|
-
var Label$
|
|
15059
|
+
var Label$3 = 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) {
|
|
15015
15060
|
var theme = _ref.theme;
|
|
15016
15061
|
return theme.useTypography('p');
|
|
15017
15062
|
}, function (_ref2) {
|
|
@@ -15090,15 +15135,16 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15090
15135
|
|
|
15091
15136
|
var options = Object.keys(countries).map(function (iso) {
|
|
15092
15137
|
return {
|
|
15093
|
-
label: {
|
|
15094
|
-
|
|
15095
|
-
|
|
15138
|
+
label: function label(option) {
|
|
15139
|
+
var country = option.data;
|
|
15140
|
+
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15096
15141
|
iso: iso
|
|
15097
|
-
}),
|
|
15142
|
+
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15098
15143
|
},
|
|
15099
15144
|
onClick: function onClick() {
|
|
15100
15145
|
setCountry(countries[iso]);
|
|
15101
|
-
}
|
|
15146
|
+
},
|
|
15147
|
+
data: countries[iso]
|
|
15102
15148
|
};
|
|
15103
15149
|
});
|
|
15104
15150
|
|
|
@@ -15342,7 +15388,7 @@ var LabelContainer$3 = styled.div(_templateObject$p || (_templateObject$p = _tag
|
|
|
15342
15388
|
if (!required) return;
|
|
15343
15389
|
return css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n :after {\n content: '*';\n }\n "])));
|
|
15344
15390
|
});
|
|
15345
|
-
var Label$
|
|
15391
|
+
var Label$4 = styled.label(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref3) {
|
|
15346
15392
|
var theme = _ref3.theme;
|
|
15347
15393
|
return theme.spacings.s1;
|
|
15348
15394
|
}, function (_ref4) {
|
|
@@ -15405,7 +15451,7 @@ var Switch = function Switch(props) {
|
|
|
15405
15451
|
};
|
|
15406
15452
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
|
|
15407
15453
|
htmlProps.disabled = props.disabled || props.htmlDisabled;
|
|
15408
|
-
return React__default.createElement(Label$
|
|
15454
|
+
return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
|
|
15409
15455
|
disabled: disabled ? 1 : 0,
|
|
15410
15456
|
invalid: invalid ? 1 : 0
|
|
15411
15457
|
}), label.label && React__default.createElement(LabelContainer$3, {
|
|
@@ -15415,7 +15461,7 @@ var Switch = function Switch(props) {
|
|
|
15415
15461
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15416
15462
|
};
|
|
15417
15463
|
|
|
15418
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$
|
|
15464
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$6, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$1, _templateObject16$1;
|
|
15419
15465
|
var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
|
|
15420
15466
|
var theme = _ref.theme;
|
|
15421
15467
|
return theme.spacings.s4;
|
|
@@ -15430,7 +15476,7 @@ var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLitera
|
|
|
15430
15476
|
return theme.getColor('black', 10);
|
|
15431
15477
|
});
|
|
15432
15478
|
var Input$2 = styled.input(_templateObject2$l || (_templateObject2$l = _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);
|
|
15433
|
-
var Label$
|
|
15479
|
+
var Label$5 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
|
|
15434
15480
|
var theme = _ref5.theme;
|
|
15435
15481
|
return theme.useTypography('p');
|
|
15436
15482
|
}, function (_ref6) {
|
|
@@ -15448,7 +15494,7 @@ var Label$4 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTe
|
|
|
15448
15494
|
if (!required) return;
|
|
15449
15495
|
return css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15450
15496
|
});
|
|
15451
|
-
var InputContainer = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
|
|
15497
|
+
var InputContainer$1 = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
|
|
15452
15498
|
var theme = _ref10.theme,
|
|
15453
15499
|
invalid = _ref10.invalid;
|
|
15454
15500
|
|
|
@@ -15459,14 +15505,14 @@ var InputContainer = styled.div(_templateObject6$9 || (_templateObject6$9 = _tag
|
|
|
15459
15505
|
return css(_templateObject8$8 || (_templateObject8$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.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
|
|
15460
15506
|
});
|
|
15461
15507
|
var MinMaxLabelContainer = styled.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
|
|
15462
|
-
var LabelsContainer = styled.div(_templateObject10$
|
|
15508
|
+
var LabelsContainer = styled.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
|
|
15463
15509
|
var position = _ref11.position;
|
|
15464
15510
|
|
|
15465
15511
|
if (position === 'bottom') {
|
|
15466
|
-
return css(_templateObject11$4 || (_templateObject11$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);
|
|
15512
|
+
return css(_templateObject11$4 || (_templateObject11$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$1, Marker, MinMaxLabelContainer);
|
|
15467
15513
|
}
|
|
15468
15514
|
|
|
15469
|
-
return css(_templateObject12$3 || (_templateObject12$3 = _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);
|
|
15515
|
+
return css(_templateObject12$3 || (_templateObject12$3 = _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$1, Marker, MinMaxLabelContainer);
|
|
15470
15516
|
});
|
|
15471
15517
|
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) {
|
|
15472
15518
|
var theme = _ref12.theme;
|
|
@@ -15483,7 +15529,7 @@ var Marker = styled.div(_templateObject15$1 || (_templateObject15$1 = _taggedTem
|
|
|
15483
15529
|
var bullet = _ref15.bullet,
|
|
15484
15530
|
theme = _ref15.theme;
|
|
15485
15531
|
if (!bullet) return;
|
|
15486
|
-
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));
|
|
15532
|
+
return css(_templateObject16$1 || (_templateObject16$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));
|
|
15487
15533
|
});
|
|
15488
15534
|
|
|
15489
15535
|
var getMarkers = function getMarkers(props) {
|
|
@@ -15601,13 +15647,13 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15601
15647
|
onChange: onChange,
|
|
15602
15648
|
value: value
|
|
15603
15649
|
});
|
|
15604
|
-
return React__default.createElement(Label$
|
|
15650
|
+
return React__default.createElement(Label$5, {
|
|
15605
15651
|
required: required ? 1 : 0,
|
|
15606
15652
|
disabled: disabled ? 1 : 0,
|
|
15607
15653
|
width: width
|
|
15608
15654
|
}, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
|
|
15609
15655
|
position: position
|
|
15610
|
-
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer, {
|
|
15656
|
+
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
|
|
15611
15657
|
invalid: invalid ? 1 : 0
|
|
15612
15658
|
}, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
|
|
15613
15659
|
var z = markers.length - 2;
|
|
@@ -15639,7 +15685,7 @@ var LabelContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _tag
|
|
|
15639
15685
|
var theme = _ref.theme;
|
|
15640
15686
|
return theme.useTypography('p');
|
|
15641
15687
|
});
|
|
15642
|
-
var Label$
|
|
15688
|
+
var Label$6 = styled.label(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n\n ", "\n\n ", "\n\n", "\n\n > input {\n height: 0;\n width: 0;\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: none;\n }\n\n > span {\n height: 17px;\n width: 17px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n position: relative;\n transition-property: border-color;\n transition-duration: 0.5s;\n transition-timing-function: ease-in-out;\n :before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n height: 0;\n width: 0;\n border-radius: 100%;\n transition-property: top, left, width, height, background-color;\n transition-duration: 0.5s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n }\n > input:checked + span {\n :before {\n top: calc(50% - 4.5px);\n left: calc(50% - 4.5px);\n height: 9px;\n width: 9px;\n }\n }\n"])), function (_ref2) {
|
|
15643
15689
|
var theme = _ref2.theme;
|
|
15644
15690
|
return theme.spacings.s1;
|
|
15645
15691
|
}, function (_ref3) {
|
|
@@ -15685,7 +15731,7 @@ var RadioButton = function RadioButton(props) {
|
|
|
15685
15731
|
required = props.required,
|
|
15686
15732
|
invalid = props.invalid;
|
|
15687
15733
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required']);
|
|
15688
|
-
return React__default.createElement(Label$
|
|
15734
|
+
return React__default.createElement(Label$6, {
|
|
15689
15735
|
disabled: disabled ? 1 : 0,
|
|
15690
15736
|
required: required ? 1 : 0,
|
|
15691
15737
|
invalid: invalid ? 1 : 0
|
|
@@ -15877,7 +15923,7 @@ var parse = function parse(value) {
|
|
|
15877
15923
|
});
|
|
15878
15924
|
};
|
|
15879
15925
|
|
|
15880
|
-
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$
|
|
15926
|
+
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5;
|
|
15881
15927
|
var RelativeContainer$5 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
15882
15928
|
var LabelContainer$5 = styled.div(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15883
15929
|
var theme = _ref.theme;
|
|
@@ -15920,7 +15966,7 @@ var Button$4 = styled.button(_templateObject8$9 || (_templateObject8$9 = _tagged
|
|
|
15920
15966
|
if (!onClick) return;
|
|
15921
15967
|
return css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15922
15968
|
});
|
|
15923
|
-
var LabelText$1 = styled.label(_templateObject10$
|
|
15969
|
+
var LabelText$1 = styled.label(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15924
15970
|
var theme = _ref10.theme;
|
|
15925
15971
|
return theme.spacings.s1;
|
|
15926
15972
|
}, function (_ref11) {
|
|
@@ -16083,22 +16129,26 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16083
16129
|
label: 'Hoje',
|
|
16084
16130
|
onClick: function onClick() {
|
|
16085
16131
|
return setValue(intervalTypes.day.initial(props.min));
|
|
16086
|
-
}
|
|
16132
|
+
},
|
|
16133
|
+
data: {}
|
|
16087
16134
|
}, {
|
|
16088
16135
|
label: 'Semana',
|
|
16089
16136
|
onClick: function onClick() {
|
|
16090
16137
|
return setValue(intervalTypes.week.initial(props.min));
|
|
16091
|
-
}
|
|
16138
|
+
},
|
|
16139
|
+
data: {}
|
|
16092
16140
|
}, {
|
|
16093
16141
|
label: 'Mês',
|
|
16094
16142
|
onClick: function onClick() {
|
|
16095
16143
|
return setValue(intervalTypes.month.initial(props.min));
|
|
16096
|
-
}
|
|
16144
|
+
},
|
|
16145
|
+
data: {}
|
|
16097
16146
|
}, {
|
|
16098
16147
|
label: 'Personalizado',
|
|
16099
16148
|
onClick: function onClick() {
|
|
16100
16149
|
return setOpen('calendar');
|
|
16101
16150
|
},
|
|
16151
|
+
data: {},
|
|
16102
16152
|
keepOpen: true,
|
|
16103
16153
|
caret: true
|
|
16104
16154
|
}],
|
|
@@ -16206,7 +16256,7 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
|
|
|
16206
16256
|
Input$4.displayName = 'Input';
|
|
16207
16257
|
|
|
16208
16258
|
var _templateObject$u, _templateObject2$o;
|
|
16209
|
-
var Label$
|
|
16259
|
+
var Label$7 = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
|
|
16210
16260
|
var theme = _ref.theme;
|
|
16211
16261
|
return theme.spacings.s1;
|
|
16212
16262
|
}, function (_ref2) {
|
|
@@ -16215,8 +16265,8 @@ var Label$6 = styled.div(_templateObject$u || (_templateObject$u = _taggedTempla
|
|
|
16215
16265
|
return css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16216
16266
|
});
|
|
16217
16267
|
|
|
16218
|
-
var Label$
|
|
16219
|
-
return props.children ? React__default.createElement(Label$
|
|
16268
|
+
var Label$8 = function Label(props) {
|
|
16269
|
+
return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
|
|
16220
16270
|
};
|
|
16221
16271
|
|
|
16222
16272
|
var _templateObject$v;
|
|
@@ -16254,7 +16304,7 @@ var Tag$1 = function Tag$1(props) {
|
|
|
16254
16304
|
};
|
|
16255
16305
|
|
|
16256
16306
|
var _templateObject$w, _templateObject2$p, _templateObject3$j;
|
|
16257
|
-
var Label$
|
|
16307
|
+
var Label$9 = styled.label(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
|
|
16258
16308
|
var theme = _ref.theme;
|
|
16259
16309
|
return theme.useTypography('p');
|
|
16260
16310
|
}, function (_ref2) {
|
|
@@ -16320,10 +16370,10 @@ var Tags = React__default.forwardRef(function (props, ref) {
|
|
|
16320
16370
|
setValue([].concat(prev));
|
|
16321
16371
|
};
|
|
16322
16372
|
|
|
16323
|
-
return React__default.createElement(Label$
|
|
16373
|
+
return React__default.createElement(Label$9, {
|
|
16324
16374
|
disabled: props.disabled,
|
|
16325
16375
|
width: props.width
|
|
16326
|
-
}, React__default.createElement(Label$
|
|
16376
|
+
}, React__default.createElement(Label$8, {
|
|
16327
16377
|
required: props.required
|
|
16328
16378
|
}, props.label), React__default.createElement(TagContainer, {
|
|
16329
16379
|
invalid: props.invalid
|
|
@@ -16950,7 +17000,7 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
16950
17000
|
Menu: AppliedFiltersMenu
|
|
16951
17001
|
});
|
|
16952
17002
|
|
|
16953
|
-
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$
|
|
17003
|
+
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$8;
|
|
16954
17004
|
var Container$9 = styled.div(_templateObject$A || (_templateObject$A = _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) {
|
|
16955
17005
|
return props.size === 'mini' && css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
16956
17006
|
}, function (props) {
|
|
@@ -16968,7 +17018,7 @@ var Container$9 = styled.div(_templateObject$A || (_templateObject$A = _taggedTe
|
|
|
16968
17018
|
}, function (props) {
|
|
16969
17019
|
return props.borderType === 'danger' && css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
|
|
16970
17020
|
}, function (props) {
|
|
16971
|
-
return props.borderType === 'none' && css(_templateObject10$
|
|
17021
|
+
return props.borderType === 'none' && css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
|
|
16972
17022
|
});
|
|
16973
17023
|
|
|
16974
17024
|
var _excluded$1 = ["children"];
|
|
@@ -17248,8 +17298,9 @@ var Submenu = function Submenu(props) {
|
|
|
17248
17298
|
|
|
17249
17299
|
var optionsParser = function optionsParser(option) {
|
|
17250
17300
|
return {
|
|
17251
|
-
label: option.label,
|
|
17252
|
-
onClick: onClickOption
|
|
17301
|
+
label: typeof option.label === 'string' ? option.label : option.label.element,
|
|
17302
|
+
onClick: onClickOption,
|
|
17303
|
+
data: {}
|
|
17253
17304
|
};
|
|
17254
17305
|
};
|
|
17255
17306
|
|
|
@@ -17311,7 +17362,7 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
17311
17362
|
|
|
17312
17363
|
var items = props.items.map(function (item) {
|
|
17313
17364
|
return {
|
|
17314
|
-
label: item.label,
|
|
17365
|
+
label: typeof item.label === 'string' ? item.label : item.label.element,
|
|
17315
17366
|
delimiter: item.delimiter,
|
|
17316
17367
|
keepOpen: true,
|
|
17317
17368
|
caret: true,
|
|
@@ -17319,7 +17370,8 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
17319
17370
|
setActive(function (prev) {
|
|
17320
17371
|
return prev === index ? -1 : index;
|
|
17321
17372
|
});
|
|
17322
|
-
}
|
|
17373
|
+
},
|
|
17374
|
+
data: {}
|
|
17323
17375
|
};
|
|
17324
17376
|
});
|
|
17325
17377
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
|
|
@@ -17384,7 +17436,7 @@ var useContext$2 = function useContext() {
|
|
|
17384
17436
|
return React__default.useContext(Provider$2);
|
|
17385
17437
|
};
|
|
17386
17438
|
|
|
17387
|
-
var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$
|
|
17439
|
+
var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$9, _templateObject11$6, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$2;
|
|
17388
17440
|
var aligns = {
|
|
17389
17441
|
self: {
|
|
17390
17442
|
horizontal: {
|
|
@@ -17467,7 +17519,7 @@ var Col = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLi
|
|
|
17467
17519
|
|
|
17468
17520
|
if (align.text !== undefined) {
|
|
17469
17521
|
var _v4 = align.text;
|
|
17470
|
-
styles.push(css(_templateObject10$
|
|
17522
|
+
styles.push(css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n "])), _v4));
|
|
17471
17523
|
}
|
|
17472
17524
|
|
|
17473
17525
|
return styles;
|
|
@@ -17543,7 +17595,7 @@ var Grid$1 = function Grid$1(props) {
|
|
|
17543
17595
|
}, React__default.createElement(Grid, Object.assign({}, gridProps)));
|
|
17544
17596
|
};
|
|
17545
17597
|
|
|
17546
|
-
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$
|
|
17598
|
+
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$a;
|
|
17547
17599
|
var horizontalAligns = {
|
|
17548
17600
|
around: 'space-around',
|
|
17549
17601
|
between: 'space-between',
|
|
@@ -17618,7 +17670,7 @@ var Row = styled.div(_templateObject$F || (_templateObject$F = _taggedTemplateLi
|
|
|
17618
17670
|
if (!hover) return;
|
|
17619
17671
|
var h = hover === true ? ['lightGrey', 50] : hover;
|
|
17620
17672
|
var c = Array.isArray(h) ? theme.getColor.apply(theme, h) : theme.colors[h];
|
|
17621
|
-
return css(_templateObject10$
|
|
17673
|
+
return css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
|
|
17622
17674
|
});
|
|
17623
17675
|
|
|
17624
17676
|
var Row$1 = function Row$1(props) {
|
|
@@ -17671,7 +17723,7 @@ var widths = {
|
|
|
17671
17723
|
default: '642.5px'
|
|
17672
17724
|
};
|
|
17673
17725
|
|
|
17674
|
-
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$
|
|
17726
|
+
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$b;
|
|
17675
17727
|
var Background = styled.div(_templateObject$G || (_templateObject$G = _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) {
|
|
17676
17728
|
var theme = _ref.theme;
|
|
17677
17729
|
return theme.getColor('black', 25);
|
|
@@ -17704,7 +17756,7 @@ var Container$b = styled.div(_templateObject9$d || (_templateObject9$d = _tagged
|
|
|
17704
17756
|
customSize = _ref6.customSize,
|
|
17705
17757
|
color = _ref6.color,
|
|
17706
17758
|
inverted = _ref6.inverted;
|
|
17707
|
-
return css(_templateObject10$
|
|
17759
|
+
return css(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n box-shadow: 0 0 21px 7px ", ";\n\n width: ", ";\n\n height: ", ";\n\n ", " {\n background-color: ", ";\n color: ", ";\n }\n "])), theme.colors.white, theme.getColor('black', 15), size === 'custom' && customSize ? customSize.width || 'auto' : widths[size], size === 'custom' && customSize ? customSize.height || 'auto' : heights[size], Header$5, inverted ? theme.isDarkColor(color) : theme.colors[color], inverted ? theme.colors[color] : theme.isDarkColor(color));
|
|
17708
17760
|
});
|
|
17709
17761
|
|
|
17710
17762
|
var _excluded$2 = ["children"];
|
|
@@ -17901,7 +17953,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
17901
17953
|
Audit: Audit
|
|
17902
17954
|
});
|
|
17903
17955
|
|
|
17904
|
-
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$
|
|
17956
|
+
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$c, _templateObject11$7;
|
|
17905
17957
|
var Container$c = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
17906
17958
|
var Header$6 = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
17907
17959
|
var HeaderImage = styled.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -17916,7 +17968,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
|
|
|
17916
17968
|
}, function (props) {
|
|
17917
17969
|
return props.size === 'medium' && css(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
17918
17970
|
}, function (props) {
|
|
17919
|
-
return props.size === 'large' && css(_templateObject10$
|
|
17971
|
+
return props.size === 'large' && css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
17920
17972
|
});
|
|
17921
17973
|
var MainLine = styled(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
17922
17974
|
|
|
@@ -18187,7 +18239,7 @@ var Template6 = function Template6(props) {
|
|
|
18187
18239
|
})));
|
|
18188
18240
|
};
|
|
18189
18241
|
|
|
18190
|
-
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$
|
|
18242
|
+
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$d;
|
|
18191
18243
|
var Container$i = styled.div(_templateObject$R || (_templateObject$R = _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"])));
|
|
18192
18244
|
var Header$9 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18193
18245
|
var HeaderLine$6 = styled.div(_templateObject3$y || (_templateObject3$y = _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) {
|
|
@@ -18209,7 +18261,7 @@ var CustomLine$3 = styled(HeaderLine$6)(_templateObject8$j || (_templateObject8$
|
|
|
18209
18261
|
return props.color;
|
|
18210
18262
|
});
|
|
18211
18263
|
var Main$2 = styled.div(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n margin: 10px 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-evenly;\n"])));
|
|
18212
|
-
var Circle$1 = styled.div(_templateObject10$
|
|
18264
|
+
var Circle$1 = styled.div(_templateObject10$d || (_templateObject10$d = _taggedTemplateLiteralLoose(["\n width: 30px;\n height: 30px;\n background-color: #ebebeb;\n border-radius: 50%;\n margin: 0 16px;\n"])));
|
|
18213
18265
|
|
|
18214
18266
|
var Template7 = function Template7(props) {
|
|
18215
18267
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18264,7 +18316,7 @@ var Template8 = function Template8(props) {
|
|
|
18264
18316
|
})));
|
|
18265
18317
|
};
|
|
18266
18318
|
|
|
18267
|
-
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$
|
|
18319
|
+
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$e;
|
|
18268
18320
|
var Container$k = styled.div(_templateObject$T || (_templateObject$T = _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"])));
|
|
18269
18321
|
var Header$b = styled.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18270
18322
|
var HeaderLine$8 = styled.div(_templateObject3$A || (_templateObject3$A = _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) {
|
|
@@ -18286,7 +18338,7 @@ var CustomLine$5 = styled(HeaderLine$8)(_templateObject8$l || (_templateObject8$
|
|
|
18286
18338
|
return props.color;
|
|
18287
18339
|
});
|
|
18288
18340
|
var Main$4 = styled.div(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
18289
|
-
var Circle$2 = styled.div(_templateObject10$
|
|
18341
|
+
var Circle$2 = styled.div(_templateObject10$e || (_templateObject10$e = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18290
18342
|
|
|
18291
18343
|
var Template8$1 = function Template8(props) {
|
|
18292
18344
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18303,7 +18355,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18303
18355
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18304
18356
|
};
|
|
18305
18357
|
|
|
18306
|
-
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$
|
|
18358
|
+
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$f, _templateObject11$8;
|
|
18307
18359
|
var Container$l = styled.div(_templateObject$U || (_templateObject$U = _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"])));
|
|
18308
18360
|
var Header$c = styled.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18309
18361
|
var HeaderLine$9 = styled.div(_templateObject3$B || (_templateObject3$B = _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) {
|
|
@@ -18325,7 +18377,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$m || (_templateObject8$
|
|
|
18325
18377
|
return props.color;
|
|
18326
18378
|
});
|
|
18327
18379
|
var GraphLine = styled(CustomLine$6)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18328
|
-
var Main$5 = styled.div(_templateObject10$
|
|
18380
|
+
var Main$5 = styled.div(_templateObject10$f || (_templateObject10$f = _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"])));
|
|
18329
18381
|
var Circle$3 = styled.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18330
18382
|
|
|
18331
18383
|
var Template10 = function Template10(props) {
|