@luminati-io/uikit 5.0.6 → 5.0.8-beta.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -39757,10 +39757,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
39757
39757
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
39758
39758
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
39759
39759
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
39760
|
-
/* harmony import */ var
|
39761
|
-
/* harmony import */ var
|
39762
|
-
/* harmony import */ var
|
39763
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
39760
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
39761
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
39762
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
39764
39763
|
// LICENSE_CODE ZON
|
39765
39764
|
|
39766
39765
|
|
@@ -39779,12 +39778,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
39779
39778
|
|
39780
39779
|
|
39781
39780
|
|
39782
|
-
|
39783
39781
|
var withBackdrop = function withBackdrop(Comp) {
|
39784
39782
|
var WithBackdrop = function WithBackdrop(props) {
|
39785
39783
|
var show = props.show,
|
39786
39784
|
_props$zIndex = props.zIndex,
|
39787
|
-
zIndex = _props$zIndex === void 0 ?
|
39785
|
+
zIndex = _props$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.backdrop : _props$zIndex,
|
39788
39786
|
onOutsideClick = props.onOutsideClick,
|
39789
39787
|
swallowOutsideClick = props.swallowOutsideClick,
|
39790
39788
|
restProps = _objectWithoutProperties(props, _excluded);
|
@@ -39823,7 +39821,7 @@ var withBackdrop = function withBackdrop(Comp) {
|
|
39823
39821
|
evt.stopPropagation();
|
39824
39822
|
evt.preventDefault();
|
39825
39823
|
}, [visible, swallowOutsideClick, onOutsideClick]);
|
39826
|
-
(0,
|
39824
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useOutsideClick)(popperElement.current, hideAndStopEvt);
|
39827
39825
|
if (!mount) return null;
|
39828
39826
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopupContainer, {
|
39829
39827
|
$zIndex: zIndex
|
@@ -39839,10 +39837,10 @@ var withBackdrop = function withBackdrop(Comp) {
|
|
39839
39837
|
}
|
39840
39838
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, restProps))));
|
39841
39839
|
};
|
39842
|
-
WithBackdrop.displayName = "WithBackdrop(".concat((0,
|
39840
|
+
WithBackdrop.displayName = "WithBackdrop(".concat((0,_hoc__WEBPACK_IMPORTED_MODULE_2__.getDisplayName)(Comp), ")");
|
39843
39841
|
return WithBackdrop;
|
39844
39842
|
};
|
39845
|
-
var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
39843
|
+
var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39846
39844
|
displayName: "StyledBackdrop",
|
39847
39845
|
componentId: "sc-upusus-0"
|
39848
39846
|
})(["width:100%;height:100%;background-color:", ";opacity:", ";transition:opacity .15s linear;"], function (_ref) {
|
@@ -39851,25 +39849,21 @@ var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_l
|
|
39851
39849
|
}, function (props) {
|
39852
39850
|
return props.$show ? 0.5 : 0;
|
39853
39851
|
});
|
39854
|
-
var PopupContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
39852
|
+
var PopupContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39855
39853
|
displayName: "PopupContainer",
|
39856
39854
|
componentId: "sc-upusus-1"
|
39857
|
-
})(["position:
|
39855
|
+
})(["position:fixed;top:0;right:0;bottom:0;left:0;z-index:", ";"], function (props) {
|
39858
39856
|
return props.$zIndex;
|
39859
39857
|
});
|
39860
|
-
var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
39861
|
-
justify_content: 'center',
|
39862
|
-
width: '100%'
|
39863
|
-
}).withConfig({
|
39858
|
+
var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39864
39859
|
displayName: "CompContainer",
|
39865
39860
|
componentId: "sc-upusus-2"
|
39866
|
-
})(["position:absolute;top:
|
39861
|
+
})(["display:flex;flex-direction:row;justify-content:center;width:100%;position:absolute;top:10vh;max-height:80vh;z-index:", ";opacity:", ";transform:translate(0,", ");transition:opacity 0.15s linear,transform 0.3s ease-out;"], function (props) {
|
39867
39862
|
return props.$zIndex;
|
39868
39863
|
}, function (props) {
|
39869
39864
|
return props.$show ? 1 : 0;
|
39870
|
-
}, function (
|
39871
|
-
|
39872
|
-
return $show ? 'calc(50vh - 50%)' : '-100%';
|
39865
|
+
}, function (props) {
|
39866
|
+
return props.$show ? '0' : '-25%';
|
39873
39867
|
});
|
39874
39868
|
|
39875
39869
|
/***/ }),
|
@@ -40061,15 +40055,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
40061
40055
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40062
40056
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40063
40057
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
40064
|
-
/* harmony import */ var
|
40065
|
-
/* harmony import */ var
|
40066
|
-
/* harmony import */ var
|
40067
|
-
/* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
|
40058
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40059
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
40060
|
+
/* harmony import */ var _snackbar_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./snackbar_icon */ "./src/snackbar/snackbar_icon.js");
|
40068
40061
|
// LICENSE_CODE ZON
|
40069
40062
|
|
40070
40063
|
|
40071
40064
|
/*jslint react:true*/
|
40072
|
-
var _excluded = ["
|
40065
|
+
var _excluded = ["type", "showIcon", "header", "children", "container_style"];
|
40073
40066
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
40074
40067
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
40075
40068
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
@@ -40079,35 +40072,36 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
40079
40072
|
|
40080
40073
|
|
40081
40074
|
|
40082
|
-
|
40083
40075
|
var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
40084
|
-
var _ref$
|
40085
|
-
variant = _ref$variant === void 0 ? 'vertical' : _ref$variant,
|
40086
|
-
_ref$type = _ref.type,
|
40076
|
+
var _ref$type = _ref.type,
|
40087
40077
|
type = _ref$type === void 0 ? 'info' : _ref$type,
|
40088
40078
|
showIcon = _ref.showIcon,
|
40089
40079
|
header = _ref.header,
|
40090
40080
|
children = _ref.children,
|
40091
|
-
|
40081
|
+
container_style = _ref.container_style,
|
40092
40082
|
rest = _objectWithoutProperties(_ref, _excluded);
|
40083
|
+
var content = typeof children == 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Paragraph, {
|
40084
|
+
variant: "lg_snug",
|
40085
|
+
color: "gray_11_50"
|
40086
|
+
}, children) : children;
|
40093
40087
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
|
40094
40088
|
ref: ref,
|
40095
40089
|
$type: type
|
40096
|
-
}, (0,
|
40090
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest)), !!showIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_icon__WEBPACK_IMPORTED_MODULE_5__.SnackbarIcon, {
|
40097
40091
|
type: type
|
40098
40092
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Container, {
|
40099
|
-
|
40100
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40101
|
-
|
40102
|
-
|
40093
|
+
style: container_style
|
40094
|
+
}, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
40095
|
+
variant: "lg",
|
40096
|
+
color: "gray_11_50"
|
40097
|
+
}, header), content));
|
40103
40098
|
});
|
40104
40099
|
Snackbar.displayName = 'Snackbar';
|
40105
40100
|
Snackbar.propTypes = {
|
40106
|
-
|
40101
|
+
container_style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
40107
40102
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
|
40108
40103
|
header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
40109
|
-
showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40110
|
-
action: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
40104
|
+
showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40111
40105
|
};
|
40112
40106
|
var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40113
40107
|
displayName: "Wrapper",
|
@@ -40126,91 +40120,7 @@ var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withC
|
|
40126
40120
|
var Container = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40127
40121
|
displayName: "Container",
|
40128
40122
|
componentId: "sc-6ku6mu-1"
|
40129
|
-
})(["display:flex;flex-direction:
|
40130
|
-
return props.$variant == 'horizontal' ? 'row' : 'column';
|
40131
|
-
});
|
40132
|
-
|
40133
|
-
/***/ }),
|
40134
|
-
|
40135
|
-
/***/ "./src/snackbar/snackbar_action.js":
|
40136
|
-
/*!*****************************************!*\
|
40137
|
-
!*** ./src/snackbar/snackbar_action.js ***!
|
40138
|
-
\*****************************************/
|
40139
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40140
|
-
|
40141
|
-
"use strict";
|
40142
|
-
__webpack_require__.r(__webpack_exports__);
|
40143
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40144
|
-
/* harmony export */ SnackbarAction: () => (/* binding */ SnackbarAction)
|
40145
|
-
/* harmony export */ });
|
40146
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
40147
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
40148
|
-
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../button */ "./src/button/index.js");
|
40149
|
-
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link */ "./src/link/index.js");
|
40150
|
-
// LICENSE_CODE ZON
|
40151
|
-
|
40152
|
-
|
40153
|
-
/*jslint react:true*/
|
40154
|
-
var _excluded = ["isLink"];
|
40155
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
40156
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
40157
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
40158
|
-
|
40159
|
-
|
40160
|
-
|
40161
|
-
var SnackbarAction = function SnackbarAction(props) {
|
40162
|
-
var isLink = props.isLink,
|
40163
|
-
rest = _objectWithoutProperties(props, _excluded);
|
40164
|
-
if (isLink) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_link__WEBPACK_IMPORTED_MODULE_2__.Link, _extends({
|
40165
|
-
variant: "secondary"
|
40166
|
-
}, rest, {
|
40167
|
-
size: "md"
|
40168
|
-
}));
|
40169
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_button__WEBPACK_IMPORTED_MODULE_1__.Button, _extends({}, rest, {
|
40170
|
-
size: "sm"
|
40171
|
-
}));
|
40172
|
-
};
|
40173
|
-
|
40174
|
-
/***/ }),
|
40175
|
-
|
40176
|
-
/***/ "./src/snackbar/snackbar_content.js":
|
40177
|
-
/*!******************************************!*\
|
40178
|
-
!*** ./src/snackbar/snackbar_content.js ***!
|
40179
|
-
\******************************************/
|
40180
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40181
|
-
|
40182
|
-
"use strict";
|
40183
|
-
__webpack_require__.r(__webpack_exports__);
|
40184
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40185
|
-
/* harmony export */ SnackbarContent: () => (/* binding */ SnackbarContent)
|
40186
|
-
/* harmony export */ });
|
40187
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
40188
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
40189
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40190
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
40191
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40192
|
-
// LICENSE_CODE ZON
|
40193
|
-
|
40194
|
-
|
40195
|
-
/*jslint react:true*/
|
40196
|
-
|
40197
|
-
|
40198
|
-
|
40199
|
-
var SnackbarContent = function SnackbarContent(props) {
|
40200
|
-
var header = props.header,
|
40201
|
-
children = props.children;
|
40202
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Container, null, !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Label, {
|
40203
|
-
variant: "lg",
|
40204
|
-
color: "gray_11_50"
|
40205
|
-
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Paragraph, {
|
40206
|
-
variant: "lg_snug",
|
40207
|
-
color: "gray_11_50"
|
40208
|
-
}, children));
|
40209
|
-
};
|
40210
|
-
var Container = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
40211
|
-
displayName: "Container",
|
40212
|
-
componentId: "sc-16h0vli-0"
|
40213
|
-
})(["display:flex;flex-direction:column;align-items:flex-start;gap:8px;"]);
|
40123
|
+
})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;"]);
|
40214
40124
|
|
40215
40125
|
/***/ }),
|
40216
40126
|
|