@janiscommerce/ui-web 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -4
- package/dist/index.esm.js +107 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +107 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -5647,7 +5647,7 @@
|
|
|
5647
5647
|
});
|
|
5648
5648
|
|
|
5649
5649
|
var _templateObject$4;
|
|
5650
|
-
var styles = {
|
|
5650
|
+
var styles$2 = {
|
|
5651
5651
|
Svg: styled__default["default"].svg.withConfig({
|
|
5652
5652
|
displayName: "styles__Svg",
|
|
5653
5653
|
componentId: "sc-jf3e5i-0"
|
|
@@ -5671,7 +5671,7 @@
|
|
|
5671
5671
|
Item: styled__default["default"].div.withConfig({
|
|
5672
5672
|
displayName: "styles__Item",
|
|
5673
5673
|
componentId: "sc-jf3e5i-3"
|
|
5674
|
-
})(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles.Svg, mixins.transition('fill'), palette.blue, styles.Svg, palette.blue),
|
|
5674
|
+
})(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles$2.Svg, mixins.transition('fill'), palette.blue, styles$2.Svg, palette.blue),
|
|
5675
5675
|
SearchInput: styled__default["default"].input.withConfig({
|
|
5676
5676
|
displayName: "styles__SearchInput",
|
|
5677
5677
|
componentId: "sc-jf3e5i-4"
|
|
@@ -7098,7 +7098,7 @@
|
|
|
7098
7098
|
var color = _ref.color,
|
|
7099
7099
|
name = _ref.name,
|
|
7100
7100
|
sizeProp = _ref.size,
|
|
7101
|
-
styles
|
|
7101
|
+
styles = _ref.styles,
|
|
7102
7102
|
pathStyles = _ref.pathStyles,
|
|
7103
7103
|
width = _ref.width,
|
|
7104
7104
|
height = _ref.height,
|
|
@@ -7111,14 +7111,14 @@
|
|
|
7111
7111
|
defaultSize = _icons$name.size;
|
|
7112
7112
|
var size = sizeProp || defaultSize;
|
|
7113
7113
|
if (!path) return null;
|
|
7114
|
-
return /*#__PURE__*/React__default["default"].createElement(styles.Svg, _extends$1({
|
|
7114
|
+
return /*#__PURE__*/React__default["default"].createElement(styles$2.Svg, _extends$1({
|
|
7115
7115
|
width: width || size,
|
|
7116
7116
|
height: height || size,
|
|
7117
|
-
styles: styles
|
|
7117
|
+
styles: styles,
|
|
7118
7118
|
color: color,
|
|
7119
7119
|
viewBox: viewBox,
|
|
7120
7120
|
size: size
|
|
7121
|
-
}, props), /*#__PURE__*/React__default["default"].createElement(styles.Path, {
|
|
7121
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(styles$2.Path, {
|
|
7122
7122
|
d: path,
|
|
7123
7123
|
styles: pathStyles
|
|
7124
7124
|
}));
|
|
@@ -35518,6 +35518,105 @@
|
|
|
35518
35518
|
}));
|
|
35519
35519
|
};
|
|
35520
35520
|
|
|
35521
|
+
var rotate = styled$g.keyframes(["to{transform:rotate(360deg);}"]);
|
|
35522
|
+
var Spinner$1 = styled__default["default"].div.withConfig({
|
|
35523
|
+
displayName: "styles__Spinner",
|
|
35524
|
+
componentId: "sc-1e490ps-0"
|
|
35525
|
+
})(["", ""], function (_ref) {
|
|
35526
|
+
var color = _ref.color,
|
|
35527
|
+
duration = _ref.duration,
|
|
35528
|
+
size = _ref.size,
|
|
35529
|
+
thickness = _ref.thickness,
|
|
35530
|
+
backSpinnerColor = _ref.backSpinnerColor;
|
|
35531
|
+
return styled$g.css(["width:", "px;height:", "px;border-radius:50%;background-color:transparent;border-top:", "px solid ", ";border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";animation:", " ", "s linear infinite;position:absolute;"], size, size, thickness, getColor(color), thickness, getColor(color), thickness, getColor(color), thickness, getColor(backSpinnerColor), rotate, duration);
|
|
35532
|
+
});
|
|
35533
|
+
var SpinnerWrapper = styled__default["default"].div.withConfig({
|
|
35534
|
+
displayName: "styles__SpinnerWrapper",
|
|
35535
|
+
componentId: "sc-1e490ps-1"
|
|
35536
|
+
})(["position:relative;display:flex;justify-content:center;align-items:center;width:", "px;height:", "px;"], function (_ref2) {
|
|
35537
|
+
var size = _ref2.size;
|
|
35538
|
+
return size;
|
|
35539
|
+
}, function (_ref3) {
|
|
35540
|
+
var size = _ref3.size;
|
|
35541
|
+
return size;
|
|
35542
|
+
});
|
|
35543
|
+
var CenterContent = styled__default["default"].div.withConfig({
|
|
35544
|
+
displayName: "styles__CenterContent",
|
|
35545
|
+
componentId: "sc-1e490ps-2"
|
|
35546
|
+
})(["position:absolute;display:flex;justify-content:center;align-items:center;"]);
|
|
35547
|
+
var styles$1 = {
|
|
35548
|
+
Spinner: Spinner$1,
|
|
35549
|
+
CenterContent: CenterContent,
|
|
35550
|
+
SpinnerWrapper: SpinnerWrapper
|
|
35551
|
+
};
|
|
35552
|
+
|
|
35553
|
+
var Spinner = function Spinner(_ref) {
|
|
35554
|
+
var _ref$config = _ref.config,
|
|
35555
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
|
35556
|
+
children = _ref.children;
|
|
35557
|
+
var _config$color = config.color,
|
|
35558
|
+
color = _config$color === void 0 ? 'blue' : _config$color,
|
|
35559
|
+
_config$duration = config.duration,
|
|
35560
|
+
duration = _config$duration === void 0 ? 4 : _config$duration,
|
|
35561
|
+
_config$size = config.size,
|
|
35562
|
+
size = _config$size === void 0 ? 115 : _config$size,
|
|
35563
|
+
_config$thickness = config.thickness,
|
|
35564
|
+
thickness = _config$thickness === void 0 ? 8 : _config$thickness,
|
|
35565
|
+
_config$backSpinnerCo = config.backSpinnerColor,
|
|
35566
|
+
backSpinnerColor = _config$backSpinnerCo === void 0 ? 'grey' : _config$backSpinnerCo;
|
|
35567
|
+
return /*#__PURE__*/React__default["default"].createElement(styles$1.SpinnerWrapper, {
|
|
35568
|
+
size: size
|
|
35569
|
+
}, /*#__PURE__*/React__default["default"].createElement(styles$1.Spinner, {
|
|
35570
|
+
color: color,
|
|
35571
|
+
duration: duration,
|
|
35572
|
+
size: size,
|
|
35573
|
+
thickness: thickness,
|
|
35574
|
+
backSpinnerColor: backSpinnerColor
|
|
35575
|
+
}), children && /*#__PURE__*/React__default["default"].createElement(styles$1.CenterContent, null, children));
|
|
35576
|
+
};
|
|
35577
|
+
|
|
35578
|
+
var show = styled$g.keyframes(["0%{opacity:0;}to{opacity:1;}"]);
|
|
35579
|
+
var Container = styled__default["default"].section.withConfig({
|
|
35580
|
+
displayName: "styles__Container",
|
|
35581
|
+
componentId: "sc-19kt9g-0"
|
|
35582
|
+
})(["display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;position:fixed;top:0;left:0;background:", ";", ";z-index:100;animation:", " 0.2s ease-in;"], function (_ref) {
|
|
35583
|
+
var backgroundColor = _ref.backgroundColor;
|
|
35584
|
+
return backgroundColor;
|
|
35585
|
+
}, function (_ref2) {
|
|
35586
|
+
var effect = _ref2.effect;
|
|
35587
|
+
return effect && styled$g.css(effect);
|
|
35588
|
+
}, show);
|
|
35589
|
+
var LoaderContainer = styled__default["default"].div.withConfig({
|
|
35590
|
+
displayName: "styles__LoaderContainer",
|
|
35591
|
+
componentId: "sc-19kt9g-1"
|
|
35592
|
+
})(["position:relative;display:flex;justify-content:center;align-items:center;width:115px;height:115px;"]);
|
|
35593
|
+
var styles = {
|
|
35594
|
+
Container: Container,
|
|
35595
|
+
LoaderContainer: LoaderContainer
|
|
35596
|
+
};
|
|
35597
|
+
|
|
35598
|
+
var FullLoader = function FullLoader(_ref) {
|
|
35599
|
+
var children = _ref.children,
|
|
35600
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
35601
|
+
backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor,
|
|
35602
|
+
_ref$spinnerConfig = _ref.spinnerConfig,
|
|
35603
|
+
spinnerConfig = _ref$spinnerConfig === void 0 ? {} : _ref$spinnerConfig,
|
|
35604
|
+
_ref$effect = _ref.effect,
|
|
35605
|
+
effect = _ref$effect === void 0 ? {} : _ref$effect;
|
|
35606
|
+
var defaultSpinnerConfig = {
|
|
35607
|
+
color: 'blue',
|
|
35608
|
+
duration: 4,
|
|
35609
|
+
size: 115,
|
|
35610
|
+
thickness: 8
|
|
35611
|
+
};
|
|
35612
|
+
return /*#__PURE__*/React__default["default"].createElement(styles.Container, {
|
|
35613
|
+
effect: effect,
|
|
35614
|
+
backgroundColor: backgroundColor
|
|
35615
|
+
}, /*#__PURE__*/React__default["default"].createElement(styles.LoaderContainer, null, children || /*#__PURE__*/React__default["default"].createElement(Spinner, {
|
|
35616
|
+
config: _objectSpread2(_objectSpread2({}, defaultSpinnerConfig), spinnerConfig)
|
|
35617
|
+
})));
|
|
35618
|
+
};
|
|
35619
|
+
|
|
35521
35620
|
exports.Avatar = Avatar;
|
|
35522
35621
|
exports.AvatarGroup = AvatarGroup$1;
|
|
35523
35622
|
exports.Button = Button;
|
|
@@ -35528,6 +35627,7 @@
|
|
|
35528
35627
|
exports.ColorPicker = ColorPicker;
|
|
35529
35628
|
exports.Drawer = Drawer;
|
|
35530
35629
|
exports.ErrorBoundary = ErrorBoundary;
|
|
35630
|
+
exports.FullLoader = FullLoader;
|
|
35531
35631
|
exports.HTML = HTML;
|
|
35532
35632
|
exports.Icon = Icon;
|
|
35533
35633
|
exports.Image = Image;
|
|
@@ -35536,6 +35636,7 @@
|
|
|
35536
35636
|
exports.Map = Map$1;
|
|
35537
35637
|
exports.QRCode = QRCode;
|
|
35538
35638
|
exports.Skeleton = Skeleton;
|
|
35639
|
+
exports.Spinner = Spinner;
|
|
35539
35640
|
exports.Switch = Switch;
|
|
35540
35641
|
exports.Textarea = Textarea;
|
|
35541
35642
|
exports.icons = icons;
|