@luminati-io/uikit 5.0.7 → 5.0.8-beta.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -40055,15 +40055,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
40055
40055
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40056
40056
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40057
40057
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
40058
|
-
/* harmony import */ var
|
40059
|
-
/* harmony import */ var
|
40060
|
-
/* harmony import */ var
|
40061
|
-
/* 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");
|
40062
40061
|
// LICENSE_CODE ZON
|
40063
40062
|
|
40064
40063
|
|
40065
40064
|
/*jslint react:true*/
|
40066
|
-
var _excluded = ["
|
40065
|
+
var _excluded = ["type", "showIcon", "header", "children", "container_style"];
|
40067
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); }
|
40068
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; }
|
40069
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; }
|
@@ -40073,35 +40072,36 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
40073
40072
|
|
40074
40073
|
|
40075
40074
|
|
40076
|
-
|
40077
40075
|
var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
40078
|
-
var _ref$
|
40079
|
-
variant = _ref$variant === void 0 ? 'vertical' : _ref$variant,
|
40080
|
-
_ref$type = _ref.type,
|
40076
|
+
var _ref$type = _ref.type,
|
40081
40077
|
type = _ref$type === void 0 ? 'info' : _ref$type,
|
40082
40078
|
showIcon = _ref.showIcon,
|
40083
40079
|
header = _ref.header,
|
40084
40080
|
children = _ref.children,
|
40085
|
-
|
40081
|
+
container_style = _ref.container_style,
|
40086
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;
|
40087
40087
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
|
40088
40088
|
ref: ref,
|
40089
40089
|
$type: type
|
40090
|
-
}, (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, {
|
40091
40091
|
type: type
|
40092
40092
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Container, {
|
40093
|
-
|
40094
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40095
|
-
|
40096
|
-
|
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));
|
40097
40098
|
});
|
40098
40099
|
Snackbar.displayName = 'Snackbar';
|
40099
40100
|
Snackbar.propTypes = {
|
40100
|
-
|
40101
|
+
container_style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
40101
40102
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
|
40102
40103
|
header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
40103
|
-
showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40104
|
-
action: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
40104
|
+
showIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40105
40105
|
};
|
40106
40106
|
var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40107
40107
|
displayName: "Wrapper",
|
@@ -40120,91 +40120,7 @@ var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withC
|
|
40120
40120
|
var Container = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40121
40121
|
displayName: "Container",
|
40122
40122
|
componentId: "sc-6ku6mu-1"
|
40123
|
-
})(["display:flex;flex-direction:
|
40124
|
-
return props.$variant == 'horizontal' ? 'row' : 'column';
|
40125
|
-
});
|
40126
|
-
|
40127
|
-
/***/ }),
|
40128
|
-
|
40129
|
-
/***/ "./src/snackbar/snackbar_action.js":
|
40130
|
-
/*!*****************************************!*\
|
40131
|
-
!*** ./src/snackbar/snackbar_action.js ***!
|
40132
|
-
\*****************************************/
|
40133
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40134
|
-
|
40135
|
-
"use strict";
|
40136
|
-
__webpack_require__.r(__webpack_exports__);
|
40137
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40138
|
-
/* harmony export */ SnackbarAction: () => (/* binding */ SnackbarAction)
|
40139
|
-
/* harmony export */ });
|
40140
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
40141
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
40142
|
-
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../button */ "./src/button/index.js");
|
40143
|
-
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link */ "./src/link/index.js");
|
40144
|
-
// LICENSE_CODE ZON
|
40145
|
-
|
40146
|
-
|
40147
|
-
/*jslint react:true*/
|
40148
|
-
var _excluded = ["isLink"];
|
40149
|
-
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); }
|
40150
|
-
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; }
|
40151
|
-
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; }
|
40152
|
-
|
40153
|
-
|
40154
|
-
|
40155
|
-
var SnackbarAction = function SnackbarAction(props) {
|
40156
|
-
var isLink = props.isLink,
|
40157
|
-
rest = _objectWithoutProperties(props, _excluded);
|
40158
|
-
if (isLink) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_link__WEBPACK_IMPORTED_MODULE_2__.Link, _extends({
|
40159
|
-
variant: "secondary"
|
40160
|
-
}, rest, {
|
40161
|
-
size: "md"
|
40162
|
-
}));
|
40163
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_button__WEBPACK_IMPORTED_MODULE_1__.Button, _extends({}, rest, {
|
40164
|
-
size: "sm"
|
40165
|
-
}));
|
40166
|
-
};
|
40167
|
-
|
40168
|
-
/***/ }),
|
40169
|
-
|
40170
|
-
/***/ "./src/snackbar/snackbar_content.js":
|
40171
|
-
/*!******************************************!*\
|
40172
|
-
!*** ./src/snackbar/snackbar_content.js ***!
|
40173
|
-
\******************************************/
|
40174
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40175
|
-
|
40176
|
-
"use strict";
|
40177
|
-
__webpack_require__.r(__webpack_exports__);
|
40178
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40179
|
-
/* harmony export */ SnackbarContent: () => (/* binding */ SnackbarContent)
|
40180
|
-
/* harmony export */ });
|
40181
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
40182
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
40183
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40184
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
40185
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40186
|
-
// LICENSE_CODE ZON
|
40187
|
-
|
40188
|
-
|
40189
|
-
/*jslint react:true*/
|
40190
|
-
|
40191
|
-
|
40192
|
-
|
40193
|
-
var SnackbarContent = function SnackbarContent(props) {
|
40194
|
-
var header = props.header,
|
40195
|
-
children = props.children;
|
40196
|
-
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, {
|
40197
|
-
variant: "lg",
|
40198
|
-
color: "gray_11_50"
|
40199
|
-
}, header), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Paragraph, {
|
40200
|
-
variant: "lg_snug",
|
40201
|
-
color: "gray_11_50"
|
40202
|
-
}, children));
|
40203
|
-
};
|
40204
|
-
var Container = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
40205
|
-
displayName: "Container",
|
40206
|
-
componentId: "sc-16h0vli-0"
|
40207
|
-
})(["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;"]);
|
40208
40124
|
|
40209
40125
|
/***/ }),
|
40210
40126
|
|