@helpdice/ui 2.5.8-beta.0 → 2.5.8
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/auto-complete/index.js +549 -491
- package/dist/avatar/index.js +82 -45
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -15
- package/dist/button/button.small.d.ts +3 -15
- package/dist/button/index.js +143 -155
- package/dist/button-dropdown/index.js +96 -83
- package/dist/button-group/index.js +61 -21
- package/dist/capacity/index.js +61 -22
- package/dist/card/index.js +147 -123
- package/dist/carousal/index.js +349 -328
- package/dist/checkbox/index.js +72 -67
- package/dist/circular-progress/CircularProgress.d.ts +17 -0
- package/dist/circular-progress/index.d.ts +3 -4
- package/dist/circular-progress/index.js +713 -336
- package/dist/circular-progress/useCircularProgress.d.ts +12 -0
- package/dist/code/index.js +70 -26
- package/dist/col/index.js +61 -24
- package/dist/collapse/index.js +102 -52
- package/dist/container/index.js +187 -188
- package/dist/copy-to-clipboard/index.js +158 -208
- package/dist/description/index.js +64 -23
- package/dist/display/index.js +64 -23
- package/dist/divider/index.js +62 -22
- package/dist/dot/index.js +63 -23
- package/dist/drawer/index.js +74 -61
- package/dist/fieldset/index.js +127 -63
- package/dist/form/index.js +15 -40
- package/dist/grid/index.js +74 -29
- package/dist/html-renderer/index.js +3 -2
- package/dist/image/index.js +163 -104
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4173 -3745
- package/dist/input/index.js +466 -419
- package/dist/keyboard/index.js +73 -29
- package/dist/linear-progress/index.js +27 -24
- package/dist/link/index.js +78 -36
- package/dist/list/index.js +118 -63
- package/dist/loadable/index.js +76 -27
- package/dist/loading/index.js +70 -29
- package/dist/menu/index.js +53 -47
- package/dist/modal/index.js +225 -178
- package/dist/note/index.js +64 -23
- package/dist/notetip/index.js +54 -45
- package/dist/notetip/note-tip.d.ts +2 -0
- package/dist/page/index.js +102 -51
- package/dist/pagination/index.js +180 -123
- package/dist/placeholder/index.js +545 -534
- package/dist/popover/index.js +94 -81
- package/dist/progress/index.js +66 -27
- package/dist/radio/index.js +94 -48
- package/dist/rating/index.js +78 -38
- package/dist/row/index.js +62 -25
- package/dist/search-bar/index.js +172 -162
- package/dist/select/index.js +364 -327
- package/dist/slider/index.js +91 -47
- package/dist/snippet/index.js +39 -39
- package/dist/spacer/index.js +58 -19
- package/dist/spinner/index.js +69 -28
- package/dist/swipe/index.js +28 -13
- package/dist/table/index.js +2217 -1973
- package/dist/table/table-body.d.ts +4 -2
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +4 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +178 -180
- package/dist/textarea/index.js +220 -214
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -52
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts +2 -1
- package/dist/tree/index.js +176 -115
- package/dist/use-scale/index.js +50 -13
- package/dist/user/index.js +146 -96
- package/esm/button/button.icon.d.ts +3 -15
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +4 -4
- package/esm/button/button.small.d.ts +3 -15
- package/esm/button/button.small.js +20 -21
- package/esm/circular-progress/CircularProgress.d.ts +17 -0
- package/esm/circular-progress/CircularProgress.js +110 -0
- package/esm/circular-progress/index.d.ts +3 -4
- package/esm/circular-progress/index.js +3 -4
- package/esm/circular-progress/useCircularProgress.d.ts +12 -0
- package/esm/circular-progress/useCircularProgress.js +35 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/list/list-item.js +11 -11
- package/esm/notetip/note-tip.d.ts +2 -0
- package/esm/notetip/note-tip.js +8 -5
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -2
- package/esm/table/table-body.js +9 -4
- package/esm/table/table-cell.d.ts +4 -2
- package/esm/table/table-cell.js +19 -3
- package/esm/table/table-types.d.ts +2 -0
- package/esm/table/table.d.ts +4 -1
- package/esm/table/table.js +13 -6
- package/esm/tooltip/index.d.ts +1 -2
- package/esm/tooltip/tooltip-content.d.ts +1 -1
- package/esm/tooltip/tooltip-content.js +5 -5
- package/esm/tooltip/tooltip.d.ts +2 -1
- package/esm/tooltip/tooltip.js +6 -5
- package/package.json +3 -3
- package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
- package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/dist/circular-progress/Path.d.ts +0 -9
- package/dist/circular-progress/buildStyles.d.ts +0 -12
- package/dist/circular-progress/constants.d.ts +0 -5
- package/dist/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
- package/esm/circular-progress/CircularProgressbar.js +0 -118
- package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
- package/esm/circular-progress/Path.d.ts +0 -9
- package/esm/circular-progress/Path.js +0 -52
- package/esm/circular-progress/buildStyles.d.ts +0 -12
- package/esm/circular-progress/buildStyles.js +0 -45
- package/esm/circular-progress/constants.d.ts +0 -5
- package/esm/circular-progress/constants.js +0 -5
- package/esm/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/types.js +0 -1
package/dist/carousal/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var require$$0 = require('react-is');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
var theme = require('@helpdice/theme');
|
|
8
9
|
var icons = require('@helpdice/icons');
|
|
9
10
|
|
|
@@ -92,15 +93,6 @@ function _defineProperty(e, r, t) {
|
|
|
92
93
|
writable: true
|
|
93
94
|
}) : e[r] = t, e;
|
|
94
95
|
}
|
|
95
|
-
function _extends() {
|
|
96
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
97
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
98
|
-
var t = arguments[e];
|
|
99
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
100
|
-
}
|
|
101
|
-
return n;
|
|
102
|
-
}, _extends.apply(null, arguments);
|
|
103
|
-
}
|
|
104
96
|
function _getPrototypeOf(t) {
|
|
105
97
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
106
98
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
@@ -1927,14 +1919,16 @@ var ReactSwipe = /*#__PURE__*/function (_Component) {
|
|
|
1927
1919
|
_this$props.innerRef;
|
|
1928
1920
|
_this$props.tolerance;
|
|
1929
1921
|
var props = _objectWithoutProperties(_this$props, _excluded$4);
|
|
1930
|
-
return /*#__PURE__*/
|
|
1922
|
+
return /*#__PURE__*/jsxRuntime.jsx(this.props.tagName, _objectSpread2(_objectSpread2({
|
|
1931
1923
|
ref: this._setSwiperRef,
|
|
1932
1924
|
onMouseDown: this._onMouseDown,
|
|
1933
1925
|
onTouchStart: this._handleSwipeStart,
|
|
1934
1926
|
onTouchEnd: this._handleSwipeEnd,
|
|
1935
1927
|
className: className,
|
|
1936
1928
|
style: style
|
|
1937
|
-
}, props),
|
|
1929
|
+
}, props), {}, {
|
|
1930
|
+
children: children
|
|
1931
|
+
}));
|
|
1938
1932
|
}
|
|
1939
1933
|
}]);
|
|
1940
1934
|
}(React.Component);
|
|
@@ -2302,11 +2296,13 @@ var withScale = function withScale(Render) {
|
|
|
2302
2296
|
getScaleProps: generateGetScaleProps(props),
|
|
2303
2297
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
2304
2298
|
};
|
|
2305
|
-
return /*#__PURE__*/
|
|
2306
|
-
value: value
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2299
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
2300
|
+
value: value,
|
|
2301
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2302
|
+
ref: ref,
|
|
2303
|
+
children: children
|
|
2304
|
+
}))
|
|
2305
|
+
});
|
|
2310
2306
|
});
|
|
2311
2307
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
2312
2308
|
return ScaleFC;
|
|
@@ -2334,35 +2330,40 @@ var ButtonDrip = function ButtonDrip(_ref) {
|
|
|
2334
2330
|
dripRef.current.removeEventListener('animationend', onCompleted);
|
|
2335
2331
|
};
|
|
2336
2332
|
});
|
|
2337
|
-
return /*#__PURE__*/
|
|
2333
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2338
2334
|
ref: dripRef,
|
|
2339
|
-
className: "jsx-3424889537" + " " + "drip"
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2335
|
+
className: "jsx-3424889537" + " " + "drip",
|
|
2336
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
2337
|
+
width: "20",
|
|
2338
|
+
height: "20",
|
|
2339
|
+
viewBox: "0 0 20 20",
|
|
2340
|
+
style: {
|
|
2341
|
+
top: top,
|
|
2342
|
+
left: left
|
|
2343
|
+
},
|
|
2344
|
+
className: "jsx-3424889537",
|
|
2345
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
2346
|
+
stroke: "none",
|
|
2347
|
+
strokeWidth: "1",
|
|
2348
|
+
fill: "none",
|
|
2349
|
+
fillRule: "evenodd",
|
|
2350
|
+
className: "jsx-3424889537",
|
|
2351
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
2352
|
+
fill: color,
|
|
2353
|
+
className: "jsx-3424889537",
|
|
2354
|
+
children: /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2355
|
+
width: "100%",
|
|
2356
|
+
height: "100%",
|
|
2357
|
+
rx: "10",
|
|
2358
|
+
className: "jsx-3424889537"
|
|
2359
|
+
})
|
|
2360
|
+
})
|
|
2361
|
+
})
|
|
2362
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2363
|
+
id: "3424889537",
|
|
2364
|
+
children: ".drip.jsx-3424889537{position:absolute;left:0;right:0;top:0;bottom:0;}svg.jsx-3424889537{position:absolute;-webkit-animation:350ms ease-in expand-jsx-3424889537;animation:350ms ease-in expand-jsx-3424889537;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;width:1rem;height:1rem;}@-webkit-keyframes expand-jsx-3424889537{0%{opacity:0;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}30%{opacity:1;}80%{opacity:0.5;}100%{-webkit-transform:scale(28);-ms-transform:scale(28);transform:scale(28);opacity:0;}}@keyframes expand-jsx-3424889537{0%{opacity:0;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}30%{opacity:1;}80%{opacity:0.5;}100%{-webkit-transform:scale(28);-ms-transform:scale(28);transform:scale(28);opacity:0;}}"
|
|
2365
|
+
})]
|
|
2366
|
+
});
|
|
2366
2367
|
};
|
|
2367
2368
|
ButtonDrip.displayName = 'ButtonDrip';
|
|
2368
2369
|
|
|
@@ -2394,35 +2395,41 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
2394
2395
|
var bgColor = React.useMemo(function () {
|
|
2395
2396
|
return getIconBgColor(type, theme$1.palette, color);
|
|
2396
2397
|
}, [type, theme$1.palette, color]);
|
|
2397
|
-
return /*#__PURE__*/
|
|
2398
|
-
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2398
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2399
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
2400
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
2401
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + "loading",
|
|
2402
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
2403
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]),
|
|
2404
|
+
children: children
|
|
2405
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
2406
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
2407
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
2408
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
2409
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
2410
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
2411
|
+
})]
|
|
2412
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2413
|
+
id: "2201634259",
|
|
2414
|
+
dynamic: [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio],
|
|
2415
|
+
children: ".loading-container.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;font-size:".concat(SCALES.font(1), ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, '100%'), ";min-height:1em;padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}label.__jsx-style-dynamic-selector{margin-right:0.5em;color:").concat(theme$1.palette.accents_5, ";line-height:1;}label.__jsx-style-dynamic-selector *{margin:0;}.loading.__jsx-style-dynamic-selector{position:absolute;top:50%;left:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}i.__jsx-style-dynamic-selector{width:0.25em;height:0.25em;border-radius:50%;background-color:").concat(bgColor, ";margin:0 calc(0.25em / 2 * ").concat(spaceRatio, ");display:inline-block;-webkit-animation:loading-blink-__jsx-style-dynamic-selector 1.4s infinite both;animation:loading-blink-__jsx-style-dynamic-selector 1.4s infinite both;}i.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:0.2s;animation-delay:0.2s;}i.__jsx-style-dynamic-selector:nth-child(3){-webkit-animation-delay:0.4s;animation-delay:0.4s;}@-webkit-keyframes loading-blink-__jsx-style-dynamic-selector{0%{opacity:0.2;}20%{opacity:1;}100%{opacity:0.2;}}@keyframes loading-blink-__jsx-style-dynamic-selector{0%{opacity:0.2;}20%{opacity:1;}100%{opacity:0.2;}}")
|
|
2416
|
+
})]
|
|
2417
|
+
}));
|
|
2413
2418
|
};
|
|
2414
2419
|
LoadingComponent.displayName = 'Loading';
|
|
2415
2420
|
var Loading = withScale(LoadingComponent);
|
|
2416
2421
|
|
|
2417
2422
|
var ButtonLoading = function ButtonLoading(_ref) {
|
|
2418
2423
|
var color = _ref.color;
|
|
2419
|
-
return /*#__PURE__*/
|
|
2420
|
-
className: "jsx-212623367" + " " + "btn-loading"
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2424
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2425
|
+
className: "jsx-212623367" + " " + "btn-loading",
|
|
2426
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
2427
|
+
color: color
|
|
2428
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2429
|
+
id: "212623367",
|
|
2430
|
+
children: ".btn-loading.jsx-212623367{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-color:var(--helpdice-ui-button-bg);}"
|
|
2431
|
+
})]
|
|
2432
|
+
});
|
|
2426
2433
|
};
|
|
2427
2434
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
2428
2435
|
|
|
@@ -2439,11 +2446,13 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
2439
2446
|
right: isRight,
|
|
2440
2447
|
single: isSingle
|
|
2441
2448
|
}, className);
|
|
2442
|
-
return /*#__PURE__*/
|
|
2443
|
-
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || "")
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2449
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2450
|
+
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || ""),
|
|
2451
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2452
|
+
id: "2467502931",
|
|
2453
|
+
children: ".icon.jsx-2467502931{position:absolute;left:var(--helpdice-ui-button-icon-padding);right:auto;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--helpdice-ui-button-color);z-index:1;}.right.jsx-2467502931{right:var(--helpdice-ui-button-icon-padding);left:auto;}.icon.jsx-2467502931 svg{background:transparent;height:calc(var(--helpdice-ui-button-height) / 2.35);width:calc(var(--helpdice-ui-button-height) / 2.35);}.single.jsx-2467502931{position:static;-webkit-transform:none;-ms-transform:none;transform:none;}"
|
|
2454
|
+
})]
|
|
2455
|
+
}));
|
|
2447
2456
|
};
|
|
2448
2457
|
ButtonIcon.displayName = 'ButtonIcon';
|
|
2449
2458
|
|
|
@@ -2454,23 +2463,30 @@ var getButtonChildrenWithIcon = function getButtonChildrenWithIcon(auto, childre
|
|
|
2454
2463
|
var isRight = Boolean(iconRight);
|
|
2455
2464
|
var paddingForAutoMode = auto ? "calc(var(--helpdice-ui-button-height) / 2 + var(--helpdice-ui-button-icon-padding) * .5)" : 0;
|
|
2456
2465
|
var classes = theme.useClasses('text', isRight ? 'right' : 'left');
|
|
2457
|
-
if (!hasIcon) return /*#__PURE__*/
|
|
2458
|
-
className: "text"
|
|
2459
|
-
|
|
2466
|
+
if (!hasIcon) return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2467
|
+
className: "text",
|
|
2468
|
+
children: children
|
|
2469
|
+
});
|
|
2460
2470
|
if (React.Children.count(children) === 0) {
|
|
2461
|
-
return /*#__PURE__*/
|
|
2471
|
+
return /*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
2462
2472
|
isRight: isRight,
|
|
2463
|
-
isSingle: true
|
|
2464
|
-
|
|
2473
|
+
isSingle: true,
|
|
2474
|
+
children: hasIcon
|
|
2475
|
+
});
|
|
2465
2476
|
}
|
|
2466
|
-
return /*#__PURE__*/
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2477
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2478
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
2479
|
+
isRight: isRight,
|
|
2480
|
+
children: hasIcon
|
|
2481
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2482
|
+
className: _JSXStyle.dynamic([["3568181479", [paddingForAutoMode, paddingForAutoMode]]]) + " " + (classes || ""),
|
|
2483
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2484
|
+
id: "3568181479",
|
|
2485
|
+
dynamic: [paddingForAutoMode, paddingForAutoMode],
|
|
2486
|
+
children: ".left.__jsx-style-dynamic-selector{padding-left:".concat(paddingForAutoMode, ";}.right.__jsx-style-dynamic-selector{padding-right:").concat(paddingForAutoMode, ";}")
|
|
2487
|
+
})]
|
|
2488
|
+
})]
|
|
2489
|
+
});
|
|
2474
2490
|
};
|
|
2475
2491
|
var filterPropsWithGroup = function filterPropsWithGroup(props, config) {
|
|
2476
2492
|
if (!config.isButtonGroup) return props;
|
|
@@ -2874,87 +2890,61 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
2874
2890
|
|
|
2875
2891
|
// If shadow provided is string then value other default
|
|
2876
2892
|
var btnShadow = typeof shadow === 'string' ? shadow : shadow ? theme$1.shadows.level.z2 : 'none';
|
|
2877
|
-
return /*#__PURE__*/
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2893
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2894
|
+
children: [to ? /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
2895
|
+
href: to
|
|
2896
|
+
}, props), {}, {
|
|
2897
|
+
className: _JSXStyle.dynamic([["612376042", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', 'btn-link', className) || ""),
|
|
2898
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
2899
|
+
color: color
|
|
2900
|
+
}), childrenWithIcon]
|
|
2901
|
+
})) : /*#__PURE__*/jsxRuntime.jsxs("button", _objectSpread2(_objectSpread2({
|
|
2902
|
+
ref: buttonRef,
|
|
2903
|
+
type: type,
|
|
2904
|
+
disabled: disabled,
|
|
2905
|
+
onClick: clickHandler
|
|
2906
|
+
}, props), {}, {
|
|
2907
|
+
className: _JSXStyle.dynamic([["612376042", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', className) || ""),
|
|
2908
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
2909
|
+
color: color
|
|
2910
|
+
}), childrenWithIcon, dripShow && /*#__PURE__*/jsxRuntime.jsx(ButtonDrip, {
|
|
2911
|
+
x: dripX,
|
|
2912
|
+
y: dripY,
|
|
2913
|
+
color: dripColor,
|
|
2914
|
+
onCompleted: dripCompletedHandle
|
|
2915
|
+
})]
|
|
2916
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2917
|
+
id: "612376042",
|
|
2918
|
+
dynamic: [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px'],
|
|
2919
|
+
children: ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;line-height:".concat(SCALES.height(2.5), ";border-radius:").concat(round ? '50%' : theme$1.layout.radius, ";font-weight:400;font-size:").concat(SCALES.font(0.875), ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none;text-transform:capitalize;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;white-space:nowrap;-webkit-transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;position:relative;overflow:hidden;color:").concat(color, ";background-color:").concat(bg, ";border:1px solid ").concat(shadow ? 'transparent' : border, ";cursor:").concat(cursor !== null && cursor !== void 0 ? cursor : 'pointer', ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ? btnShadow : 'none', ";--helpdice-ui-button-icon-padding:").concat(SCALES.pl(0.727), ";--helpdice-ui-button-height:").concat(SCALES.height(2.5), ";--helpdice-ui-button-color:").concat(color, ";--helpdice-ui-button-bg:").concat(bg, ";min-width:").concat(auto ? 'min-content' : SCALES.width(10.5), ";width:").concat(auto ? 'auto' : 'initial', ";height:").concat(SCALES.height(2.5), ";padding:").concat(SCALES.pt(0), " ").concat(paddingRight, " ").concat(SCALES.pb(0), " ").concat(paddingLeft, ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.btn.__jsx-style-dynamic-selector:hover,.btn.__jsx-style-dynamic-selector:focus{color:").concat(hover.color, ";--helpdice-ui-button-color:").concat(hover.color, ";background-color:").concat(hover.bg, ";border-color:").concat(hover.border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(btnShadow, ";}.btn-link.__jsx-style-dynamic-selector{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.btn.__jsx-style-dynamic-selector .text{position:relative;z-index:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;line-height:inherit;top:-1px;}.btn.__jsx-style-dynamic-selector .text p,.btn.__jsx-style-dynamic-selector .text pre,.btn.__jsx-style-dynamic-selector .text div{margin:0;}.ripple.__jsx-style-dynamic-selector{position:absolute;border-radius:50%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;background-color:rgba(0,0,0,0.3);pointer-events:none;z-index:1;}@-webkit-keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}@keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}")
|
|
2920
|
+
})]
|
|
2921
|
+
});
|
|
2901
2922
|
});
|
|
2902
2923
|
ButtonComponent.displayName = 'Button';
|
|
2903
2924
|
var Button = withScale(ButtonComponent);
|
|
2904
2925
|
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
var CompactButton = function CompactButton(_ref) {
|
|
2908
|
-
_ref.color;
|
|
2909
|
-
var children = _ref.children,
|
|
2910
|
-
iconRight = _ref.iconRight,
|
|
2911
|
-
icon = _ref.icon,
|
|
2912
|
-
_ref$scale = _ref.scale,
|
|
2913
|
-
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
2914
|
-
type = _ref.type,
|
|
2915
|
-
style = _ref.style,
|
|
2916
|
-
onClick = _ref.onClick,
|
|
2917
|
-
to = _ref.to;
|
|
2926
|
+
var CompactButton = function CompactButton(props) {
|
|
2918
2927
|
// const theme = useTheme();
|
|
2919
|
-
return /*#__PURE__*/
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
px: 0.6,
|
|
2928
|
-
iconRight: iconRight
|
|
2929
|
-
}, children);
|
|
2928
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread2(_objectSpread2({
|
|
2929
|
+
scale: 2 / 3,
|
|
2930
|
+
px: 0.6
|
|
2931
|
+
}, _objectSpread2({
|
|
2932
|
+
auto: true
|
|
2933
|
+
}, props)), {}, {
|
|
2934
|
+
children: props.children
|
|
2935
|
+
}));
|
|
2930
2936
|
};
|
|
2931
2937
|
var IconButton = /*#__PURE__*/React.memo(CompactButton);
|
|
2932
2938
|
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
var SmallButton = function SmallButton(_ref) {
|
|
2936
|
-
_ref.color;
|
|
2937
|
-
var children = _ref.children,
|
|
2938
|
-
iconRight = _ref.iconRight,
|
|
2939
|
-
icon = _ref.icon,
|
|
2940
|
-
_ref$scale = _ref.scale,
|
|
2941
|
-
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
2942
|
-
type = _ref.type,
|
|
2943
|
-
style = _ref.style,
|
|
2944
|
-
onClick = _ref.onClick,
|
|
2945
|
-
to = _ref.to;
|
|
2939
|
+
var SmallButton = function SmallButton(props) {
|
|
2946
2940
|
// const theme = useTheme();
|
|
2947
|
-
return /*#__PURE__*/
|
|
2948
|
-
to: to,
|
|
2949
|
-
icon: icon,
|
|
2950
|
-
style: style,
|
|
2951
|
-
type: type,
|
|
2952
|
-
onClick: onClick,
|
|
2941
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread2(_objectSpread2({
|
|
2953
2942
|
auto: true,
|
|
2954
|
-
scale:
|
|
2955
|
-
px: 0.6
|
|
2956
|
-
|
|
2957
|
-
|
|
2943
|
+
scale: 2 / 3,
|
|
2944
|
+
px: 0.6
|
|
2945
|
+
}, props), {}, {
|
|
2946
|
+
children: props.children
|
|
2947
|
+
}));
|
|
2958
2948
|
};
|
|
2959
2949
|
var SmallButton$1 = /*#__PURE__*/React.memo(SmallButton);
|
|
2960
2950
|
|
|
@@ -3158,13 +3148,15 @@ var Thumbs = /*#__PURE__*/function (_Component) {
|
|
|
3158
3148
|
width: _this2.props.thumbWidth
|
|
3159
3149
|
}
|
|
3160
3150
|
};
|
|
3161
|
-
return /*#__PURE__*/
|
|
3151
|
+
return /*#__PURE__*/jsxRuntime.jsxs("li", _objectSpread2(_objectSpread2({}, thumbProps), {}, {
|
|
3162
3152
|
role: "button",
|
|
3163
3153
|
tabIndex: 0,
|
|
3164
|
-
className: "jsx-2625056898" + " " + (thumbProps && thumbProps.className != null && thumbProps.className || "")
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3154
|
+
className: "jsx-2625056898" + " " + (thumbProps && thumbProps.className != null && thumbProps.className || ""),
|
|
3155
|
+
children: [img, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3156
|
+
id: "2625056898",
|
|
3157
|
+
children: ".thumb.jsx-2625056898{-webkit-transition:border 0.15s ease-in;transition:border 0.15s ease-in;display:inline-block;margin-right:6px;margin-bottom:0 !important;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px;}.thumb.jsx-2625056898:focus{border:3px solid #ccc;outline:none;}.thumb.selected.jsx-2625056898,.thumb.jsx-2625056898:hover{border:3px solid #0099ff;}.thumb.jsx-2625056898 img.jsx-2625056898{vertical-align:top;}"
|
|
3158
|
+
})]
|
|
3159
|
+
}));
|
|
3168
3160
|
});
|
|
3169
3161
|
}
|
|
3170
3162
|
}, {
|
|
@@ -3199,66 +3191,71 @@ var Thumbs = /*#__PURE__*/function (_Component) {
|
|
|
3199
3191
|
transitionDuration: transitionTime,
|
|
3200
3192
|
msTransitionDuration: transitionTime
|
|
3201
3193
|
};
|
|
3202
|
-
return /*#__PURE__*/
|
|
3203
|
-
className: "jsx-3452014152" + " " + (klass.CAROUSEL(false) || "")
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3194
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3195
|
+
className: "jsx-3452014152" + " " + (klass.CAROUSEL(false) || ""),
|
|
3196
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3197
|
+
ref: this.setItemsWrapperRef,
|
|
3198
|
+
className: "jsx-3452014152" + " " + (klass.WRAPPER(false) || ""),
|
|
3199
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
3200
|
+
scale: 2 / 3,
|
|
3201
|
+
auto: true,
|
|
3202
|
+
px: 0.6,
|
|
3203
|
+
type: "button",
|
|
3204
|
+
style: {
|
|
3205
|
+
position: 'absolute',
|
|
3206
|
+
zIndex: '2',
|
|
3207
|
+
left: 0
|
|
3208
|
+
},
|
|
3209
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronLeft, {}),
|
|
3210
|
+
className: klass.ARROW_PREV(!hasPrev),
|
|
3211
|
+
onClick: function onClick() {
|
|
3212
|
+
return _this3.slideRight();
|
|
3213
|
+
},
|
|
3214
|
+
"aria-label": this.props.labels.leftArrow
|
|
3215
|
+
}), isSwipeable ? /*#__PURE__*/jsxRuntime.jsx(ReactSwipe, {
|
|
3216
|
+
tagName: "ul",
|
|
3217
|
+
className: klass.SLIDER(false, this.state.swiping),
|
|
3218
|
+
onSwipeLeft: this.slideLeft,
|
|
3219
|
+
onSwipeRight: this.slideRight,
|
|
3220
|
+
onSwipeMove: this.onSwipeMove,
|
|
3221
|
+
onSwipeStart: this.onSwipeStart,
|
|
3222
|
+
onSwipeEnd: this.onSwipeEnd,
|
|
3223
|
+
style: _objectSpread2({
|
|
3224
|
+
display: 'flex',
|
|
3225
|
+
margin: '20px 45px'
|
|
3226
|
+
}, itemListStyles),
|
|
3227
|
+
innerRef: this.setItemsListRef,
|
|
3228
|
+
allowMouseEvents: this.props.emulateTouch,
|
|
3229
|
+
children: this.renderItems()
|
|
3230
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
3231
|
+
ref: function ref(node) {
|
|
3232
|
+
return _this3.setItemsListRef(node);
|
|
3233
|
+
},
|
|
3234
|
+
style: itemListStyles,
|
|
3235
|
+
className: "jsx-3452014152" + " " + (klass.SLIDER(false, this.state.swiping) || ""),
|
|
3236
|
+
children: this.renderItems()
|
|
3237
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
3238
|
+
type: "button",
|
|
3239
|
+
scale: 2 / 3,
|
|
3240
|
+
auto: true,
|
|
3241
|
+
px: 0.6,
|
|
3242
|
+
style: {
|
|
3243
|
+
position: 'absolute',
|
|
3244
|
+
zIndex: '2',
|
|
3245
|
+
right: 0
|
|
3246
|
+
},
|
|
3247
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronRight, {}),
|
|
3248
|
+
className: klass.ARROW_NEXT(!hasNext),
|
|
3249
|
+
onClick: function onClick() {
|
|
3250
|
+
return _this3.slideLeft();
|
|
3251
|
+
},
|
|
3252
|
+
"aria-label": this.props.labels.rightArrow
|
|
3253
|
+
})]
|
|
3254
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3255
|
+
id: "3452014152",
|
|
3256
|
+
children: ".thumbs-wrapper.jsx-3452014152{margin:0;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.thumbs.jsx-3452014152{-webkit-transition:all 0.15s ease-in;transition:all 0.15s ease-in;position:relative;list-style:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;white-space:nowrap;margin:0 !important;}.control-arrow.control-prev.jsx-3452014152{left:0;}.control-arrow.control-prev.jsx-3452014152:before{border-right:8px solid #fff;}.control-arrow.control-next.jsx-3452014152{right:0;}.control-arrow.control-next.jsx-3452014152:before{border-left:8px solid #fff;}"
|
|
3257
|
+
})]
|
|
3258
|
+
});
|
|
3262
3259
|
}
|
|
3263
3260
|
}]);
|
|
3264
3261
|
}(React.Component);
|
|
@@ -3334,14 +3331,17 @@ var Arrow = function Arrow(_ref) {
|
|
|
3334
3331
|
label = _ref.label;
|
|
3335
3332
|
var isPrev = direction === 'prev';
|
|
3336
3333
|
var arrowClassName = isPrev ? klass.ARROW_PREV(!enabled) : klass.ARROW_NEXT(!enabled);
|
|
3337
|
-
return /*#__PURE__*/
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3334
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3335
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("button", {
|
|
3336
|
+
type: "button",
|
|
3337
|
+
"aria-label": label,
|
|
3338
|
+
onClick: onClickHandler,
|
|
3339
|
+
className: "jsx-4058608807" + " " + (arrowClassName || "")
|
|
3340
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3341
|
+
id: "4058608807",
|
|
3342
|
+
children: ".control-arrow.jsx-4058608807{position:absolute;z-index:2;top:0;bottom:0;background:none;border:0;font-size:26px;cursor:pointer;opacity:0.4;-webkit-transition:all 0.25s ease-in;transition:all 0.25s ease-in;margin-top:-13px;padding:5px;color:#fff;}.control-arrow.jsx-4058608807:hover{background:rgba(0,0,0,0.2);opacity:1;}.control-arrow.jsx-4058608807:hover,.control-arrow.jsx-4058608807:focus{opacity:1;}.control-arrow.control-arrow.jsx-4058608807:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:'';}.control-arrow.control-disabled.jsx-4058608807{opacity:0;cursor:inherit;display:none;}.control-arrow.control-prev.jsx-4058608807{left:0;}.control-arrow.control-prev.jsx-4058608807:before{border-right:8px solid #fff;}.control-arrow.control-next.jsx-4058608807{right:0;}.control-arrow.control-next.jsx-4058608807:before{border-left:8px solid #fff;}"
|
|
3343
|
+
})]
|
|
3344
|
+
});
|
|
3345
3345
|
};
|
|
3346
3346
|
|
|
3347
3347
|
var Indicator = function Indicator(_ref) {
|
|
@@ -3352,57 +3352,65 @@ var Indicator = function Indicator(_ref) {
|
|
|
3352
3352
|
type = _ref.type;
|
|
3353
3353
|
switch (type) {
|
|
3354
3354
|
case 'line':
|
|
3355
|
-
return /*#__PURE__*/
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3355
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3356
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("li", {
|
|
3357
|
+
onClick: onClickHandler,
|
|
3358
|
+
onKeyDown: onClickHandler,
|
|
3359
|
+
value: index,
|
|
3360
|
+
role: "button",
|
|
3361
|
+
tabIndex: 0,
|
|
3362
|
+
"aria-label": "".concat(label, " ").concat(index + 1),
|
|
3363
|
+
className: "jsx-110677664" + " " + (klass.DOT(isSelected) || "")
|
|
3364
|
+
}, index), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3365
|
+
id: "110677664",
|
|
3366
|
+
children: ".dot.jsx-110677664{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;width:14px;height:2px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-110677664,.dot.jsx-110677664:hover{opacity:1;}"
|
|
3367
|
+
})]
|
|
3368
|
+
});
|
|
3367
3369
|
case 'square':
|
|
3368
|
-
return /*#__PURE__*/
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3370
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3371
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("li", {
|
|
3372
|
+
onClick: onClickHandler,
|
|
3373
|
+
onKeyDown: onClickHandler,
|
|
3374
|
+
value: index,
|
|
3375
|
+
role: "button",
|
|
3376
|
+
tabIndex: 0,
|
|
3377
|
+
"aria-label": "".concat(label, " ").concat(index + 1),
|
|
3378
|
+
className: "jsx-157344968" + " " + (klass.DOT(isSelected) || "")
|
|
3379
|
+
}, index), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3380
|
+
id: "157344968",
|
|
3381
|
+
children: ".dot.jsx-157344968{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-157344968,.dot.jsx-157344968:hover{opacity:1;}"
|
|
3382
|
+
})]
|
|
3383
|
+
});
|
|
3380
3384
|
case 'pill':
|
|
3381
|
-
return /*#__PURE__*/
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3385
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3386
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("li", {
|
|
3387
|
+
onClick: onClickHandler,
|
|
3388
|
+
onKeyDown: onClickHandler,
|
|
3389
|
+
value: index,
|
|
3390
|
+
role: "button",
|
|
3391
|
+
tabIndex: 0,
|
|
3392
|
+
"aria-label": "".concat(label, " ").concat(index + 1),
|
|
3393
|
+
className: "jsx-2836895747" + " " + (klass.DOT(isSelected) || "")
|
|
3394
|
+
}, index), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3395
|
+
id: "2836895747",
|
|
3396
|
+
children: ".dot.jsx-2836895747{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:25px;width:20px;height:5px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-2836895747,.dot.jsx-2836895747:hover{opacity:1;}"
|
|
3397
|
+
})]
|
|
3398
|
+
});
|
|
3393
3399
|
default:
|
|
3394
|
-
return /*#__PURE__*/
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3400
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3401
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("li", {
|
|
3402
|
+
onClick: onClickHandler,
|
|
3403
|
+
onKeyDown: onClickHandler,
|
|
3404
|
+
value: index,
|
|
3405
|
+
role: "button",
|
|
3406
|
+
tabIndex: 0,
|
|
3407
|
+
"aria-label": "".concat(label, " ").concat(index + 1),
|
|
3408
|
+
className: "jsx-3056554148" + " " + (klass.DOT(isSelected) || "")
|
|
3409
|
+
}, index), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3410
|
+
id: "3056554148",
|
|
3411
|
+
children: ".dot.jsx-3056554148{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-3056554148,.dot.jsx-3056554148:hover{opacity:1;}"
|
|
3412
|
+
})]
|
|
3413
|
+
});
|
|
3406
3414
|
}
|
|
3407
3415
|
};
|
|
3408
3416
|
|
|
@@ -4020,14 +4028,16 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
|
|
|
4020
4028
|
onClick: _this3.handleClickItem.bind(_this3, index, item),
|
|
4021
4029
|
style: style
|
|
4022
4030
|
};
|
|
4023
|
-
return /*#__PURE__*/
|
|
4024
|
-
className: "jsx-4120978495" + " " + (slideProps && slideProps.className != null && slideProps.className || "")
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
+
return /*#__PURE__*/jsxRuntime.jsxs("li", _objectSpread2(_objectSpread2({}, slideProps), {}, {
|
|
4032
|
+
className: "jsx-4120978495" + " " + (slideProps && slideProps.className != null && slideProps.className || ""),
|
|
4033
|
+
children: [_this3.props.renderItem(item, {
|
|
4034
|
+
isSelected: index === _this3.state.selectedItem,
|
|
4035
|
+
isPrevious: index === _this3.state.previousItem
|
|
4036
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4037
|
+
id: "4120978495",
|
|
4038
|
+
children: ".slide.jsx-4120978495{min-width:100%;margin:0;position:relative;text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}img.jsx-4120978495{width:100%;vertical-align:top;border:0;}iframe.jsx-4120978495{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0;}.legend.jsx-4120978495{-webkit-transition:opacity 0.35s ease-in-out;transition:opacity 0.35s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;}.slide.jsx-4120978495 .legend.jsx-4120978495{opacity:1;}"
|
|
4039
|
+
})]
|
|
4040
|
+
}));
|
|
4031
4041
|
});
|
|
4032
4042
|
}
|
|
4033
4043
|
}, {
|
|
@@ -4043,13 +4053,15 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
|
|
|
4043
4053
|
if (!showIndicators) {
|
|
4044
4054
|
return null;
|
|
4045
4055
|
}
|
|
4046
|
-
return /*#__PURE__*/
|
|
4047
|
-
className: "jsx-4140983776" + " " + "control-dots"
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4056
|
+
return /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
4057
|
+
className: "jsx-4140983776" + " " + "control-dots",
|
|
4058
|
+
children: [React.Children.map(children, function (_, index) {
|
|
4059
|
+
return renderIndicator && renderIndicator(_this4.changeItem(index), index === _this4.state.selectedItem, index, labels.item, indicator);
|
|
4060
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4061
|
+
id: "4140983776",
|
|
4062
|
+
children: ".control-dots.jsx-4140983776{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1;}"
|
|
4063
|
+
})]
|
|
4064
|
+
});
|
|
4053
4065
|
}
|
|
4054
4066
|
}, {
|
|
4055
4067
|
key: "renderStatus",
|
|
@@ -4057,11 +4069,13 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
|
|
|
4057
4069
|
if (!this.props.showStatus) {
|
|
4058
4070
|
return null;
|
|
4059
4071
|
}
|
|
4060
|
-
return /*#__PURE__*/
|
|
4061
|
-
className: "jsx-2959489890" + " " + "carousel-status"
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4072
|
+
return /*#__PURE__*/jsxRuntime.jsxs("p", {
|
|
4073
|
+
className: "jsx-2959489890" + " " + "carousel-status",
|
|
4074
|
+
children: [this.props.statusFormatter(this.state.selectedItem + 1, React.Children.count(this.props.children)), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4075
|
+
id: "2959489890",
|
|
4076
|
+
children: ".carousel-status.jsx-2959489890{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff;}"
|
|
4077
|
+
})]
|
|
4078
|
+
});
|
|
4065
4079
|
}
|
|
4066
4080
|
}, {
|
|
4067
4081
|
key: "renderThumbs",
|
|
@@ -4069,15 +4083,16 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
|
|
|
4069
4083
|
if (!this.props.showThumbs || !this.props.children || React.Children.count(this.props.children) === 0) {
|
|
4070
4084
|
return null;
|
|
4071
4085
|
}
|
|
4072
|
-
return /*#__PURE__*/
|
|
4086
|
+
return /*#__PURE__*/jsxRuntime.jsx(Thumbs, {
|
|
4073
4087
|
ref: this.setThumbsRef,
|
|
4074
4088
|
onSelectItem: this.handleClickThumb,
|
|
4075
4089
|
selectedItem: this.state.selectedItem,
|
|
4076
4090
|
transitionTime: this.props.transitionTime,
|
|
4077
4091
|
thumbWidth: this.props.thumbWidth,
|
|
4078
4092
|
labels: this.props.labels,
|
|
4079
|
-
emulateTouch: this.props.emulateTouch
|
|
4080
|
-
|
|
4093
|
+
emulateTouch: this.props.emulateTouch,
|
|
4094
|
+
children: this.props.renderThumbs(this.props.children)
|
|
4095
|
+
});
|
|
4081
4096
|
}
|
|
4082
4097
|
}, {
|
|
4083
4098
|
key: "render",
|
|
@@ -4127,33 +4142,39 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
|
|
|
4127
4142
|
});
|
|
4128
4143
|
containerStyles.height = this.state.itemSize;
|
|
4129
4144
|
}
|
|
4130
|
-
return /*#__PURE__*/
|
|
4145
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4131
4146
|
"aria-label": this.props.ariaLabel,
|
|
4132
4147
|
ref: this.setCarouselWrapperRef,
|
|
4133
4148
|
tabIndex: this.props.useKeyboardArrows ? 0 : undefined,
|
|
4134
|
-
className: "jsx-535322850" + " " + (klass.ROOT(this.props.className) || "")
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4149
|
+
className: "jsx-535322850" + " " + (klass.ROOT(this.props.className) || ""),
|
|
4150
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4151
|
+
style: {
|
|
4152
|
+
width: this.props.width
|
|
4153
|
+
},
|
|
4154
|
+
className: "jsx-535322850" + " " + (klass.CAROUSEL(true) || ""),
|
|
4155
|
+
children: [this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, hasPrev, this.props.labels.leftArrow), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
4156
|
+
style: containerStyles,
|
|
4157
|
+
className: "jsx-535322850" + " " + (klass.WRAPPER(true, this.props.axis) || ""),
|
|
4158
|
+
children: isSwipeable ? /*#__PURE__*/jsxRuntime.jsxs(ReactSwipe, _objectSpread2(_objectSpread2({
|
|
4159
|
+
tagName: "ul",
|
|
4160
|
+
innerRef: this.setListRef
|
|
4161
|
+
}, swiperProps), {}, {
|
|
4162
|
+
allowMouseEvents: this.props.emulateTouch,
|
|
4163
|
+
children: [this.props.infiniteLoop && lastClone, this.renderItems(), this.props.infiniteLoop && firstClone]
|
|
4164
|
+
})) : /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
4165
|
+
ref: function ref(node) {
|
|
4166
|
+
return _this5.setListRef(node);
|
|
4167
|
+
},
|
|
4168
|
+
style: this.state.itemListStyle || {},
|
|
4169
|
+
className: "jsx-535322850" + " " + (klass.SLIDER(true, this.state.swiping) || ""),
|
|
4170
|
+
children: [this.props.infiniteLoop && lastClone, this.renderItems(), this.props.infiniteLoop && firstClone]
|
|
4171
|
+
})
|
|
4172
|
+
}), this.props.renderArrowNext(this.onClickNext, hasNext, this.props.labels.rightArrow), this.renderStatus()]
|
|
4173
|
+
}), this.renderThumbs(), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4174
|
+
id: "535322850",
|
|
4175
|
+
children: ".carousel-root.jsx-535322850{outline:none;}.slider.jsx-535322850{margin:0 !important;padding:0;position:relative;list-style:none;width:100%;}.slider.jsx-535322850 .animated.jsx-535322850{-webkit-transition:all 0.35s ease-in-out;transition:all 0.35s ease-in-out;}.carousel.jsx-535322850{position:relative;width:100%;}.carousel.jsx-535322850 img.jsx-535322850{width:100%;display:inline-block;pointer-events:none;}.carousel.jsx-535322850 .carousel.jsx-535322850{position:relative;}.carousel-slider.jsx-535322850{position:relative;margin:0;overflow:hidden;}.slider-wrapper.jsx-535322850{overflow:hidden;margin:auto;width:100%;-webkit-transition:height 0.15s ease-in;transition:height 0.15s ease-in;}"
|
|
4176
|
+
})]
|
|
4177
|
+
});
|
|
4157
4178
|
}
|
|
4158
4179
|
}]);
|
|
4159
4180
|
}(React.Component);
|
|
@@ -4179,7 +4200,7 @@ _defineProperty(Carousel, "defaultProps", {
|
|
|
4179
4200
|
},
|
|
4180
4201
|
preventMovementUntilSwipeScrollTolerance: false,
|
|
4181
4202
|
renderArrowPrev: function renderArrowPrev(onClickHandler, hasPrev, label) {
|
|
4182
|
-
return /*#__PURE__*/
|
|
4203
|
+
return /*#__PURE__*/jsxRuntime.jsx(Arrow, {
|
|
4183
4204
|
direction: "prev",
|
|
4184
4205
|
onClickHandler: onClickHandler,
|
|
4185
4206
|
enabled: hasPrev,
|
|
@@ -4187,7 +4208,7 @@ _defineProperty(Carousel, "defaultProps", {
|
|
|
4187
4208
|
});
|
|
4188
4209
|
},
|
|
4189
4210
|
renderArrowNext: function renderArrowNext(onClickHandler, hasNext, label) {
|
|
4190
|
-
return /*#__PURE__*/
|
|
4211
|
+
return /*#__PURE__*/jsxRuntime.jsx(Arrow, {
|
|
4191
4212
|
direction: "next",
|
|
4192
4213
|
onClickHandler: onClickHandler,
|
|
4193
4214
|
enabled: hasNext,
|
|
@@ -4195,7 +4216,7 @@ _defineProperty(Carousel, "defaultProps", {
|
|
|
4195
4216
|
});
|
|
4196
4217
|
},
|
|
4197
4218
|
renderIndicator: function renderIndicator(onClickHandler, isSelected, index, label, type) {
|
|
4198
|
-
return /*#__PURE__*/
|
|
4219
|
+
return /*#__PURE__*/jsxRuntime.jsx(Indicator, {
|
|
4199
4220
|
type: type,
|
|
4200
4221
|
onClickHandler: onClickHandler,
|
|
4201
4222
|
isSelected: isSelected,
|