@commonsku/styles 1.16.10 → 1.16.12
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/index.d.ts +71 -3
- package/dist/index.es.js +223 -43
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +228 -42
- package/dist/index.js.map +1 -1
- package/dist/styles/ConfirmAlertPopup.d.ts +14 -0
- package/dist/styles/ConfirmAlertPopup.d.ts.map +1 -0
- package/dist/styles/Csku.d.ts +1 -0
- package/dist/styles/Csku.d.ts.map +1 -1
- package/dist/styles/DropArea.d.ts +4 -0
- package/dist/styles/DropArea.d.ts.map +1 -1
- package/dist/styles/Popup.d.ts +4 -0
- package/dist/styles/Popup.d.ts.map +1 -1
- package/dist/styles/ToggleSwitch.d.ts +47 -0
- package/dist/styles/ToggleSwitch.d.ts.map +1 -0
- package/dist/styles/icons/ImageIcon.d.ts +6 -0
- package/dist/styles/icons/ImageIcon.d.ts.map +1 -0
- package/dist/styles/icons/index.d.ts +1 -0
- package/dist/styles/icons/index.d.ts.map +1 -1
- package/dist/styles/index.d.ts +2 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -360,10 +360,14 @@ var getUnit = function (measurement) {
|
|
|
360
360
|
var matchedMeasurement = measurement.match(/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/);
|
|
361
361
|
return matchedMeasurement ? matchedMeasurement[2] : "px";
|
|
362
362
|
};
|
|
363
|
+
var isCalOrPercent = function (measurement) { return (measurement.endsWith('%') || measurement.includes('calc')); };
|
|
363
364
|
var stripUnit = function (measurement) {
|
|
364
365
|
return (typeof measurement === "number") ? measurement : parseFloat(measurement);
|
|
365
366
|
};
|
|
366
|
-
var parseMeasurement = function (measurement) {
|
|
367
|
+
var parseMeasurement = function (measurement) {
|
|
368
|
+
return typeof measurement === 'string' && isCalOrPercent(measurement)
|
|
369
|
+
? measurement : stripUnit(measurement) + getUnit(measurement);
|
|
370
|
+
};
|
|
367
371
|
var wait = function (time) {
|
|
368
372
|
var timeoutId;
|
|
369
373
|
var promise = new Promise(function (resolve) {
|
|
@@ -2595,6 +2599,49 @@ function DoubleArrowIcon(_a) {
|
|
|
2595
2599
|
React__default.createElement("path", { d: directionPaths[1], fill: color })));
|
|
2596
2600
|
}
|
|
2597
2601
|
|
|
2602
|
+
var iconSizes$5 = {
|
|
2603
|
+
tiny: {
|
|
2604
|
+
width: 16,
|
|
2605
|
+
height: 16,
|
|
2606
|
+
viewBox: "0 0 32 32",
|
|
2607
|
+
},
|
|
2608
|
+
small: {
|
|
2609
|
+
width: 24,
|
|
2610
|
+
height: 24,
|
|
2611
|
+
viewBox: "0 0 32 32",
|
|
2612
|
+
},
|
|
2613
|
+
medium: {
|
|
2614
|
+
width: 32,
|
|
2615
|
+
height: 32,
|
|
2616
|
+
viewBox: "0 0 32 32",
|
|
2617
|
+
},
|
|
2618
|
+
large: {
|
|
2619
|
+
width: 40,
|
|
2620
|
+
height: 40,
|
|
2621
|
+
viewBox: "0 0 32 32",
|
|
2622
|
+
},
|
|
2623
|
+
huge: {
|
|
2624
|
+
width: 48,
|
|
2625
|
+
height: 48,
|
|
2626
|
+
viewBox: "0 0 32 32",
|
|
2627
|
+
},
|
|
2628
|
+
default: {
|
|
2629
|
+
width: 32,
|
|
2630
|
+
height: 32,
|
|
2631
|
+
viewBox: "0 0 32 32",
|
|
2632
|
+
},
|
|
2633
|
+
};
|
|
2634
|
+
function ImageIcon(props) {
|
|
2635
|
+
var _a = props.color, color = _a === void 0 ? teal.main : _a, _b = props.size, size = _b === void 0 ? "medium" : _b, _c = props.altText, altText = _c === void 0 ? "ImageIcon" : _c, rest = __rest(props, ["color", "size", "altText"]);
|
|
2636
|
+
var id = uniqueId('clip0_1244_70960');
|
|
2637
|
+
return (React__default.createElement(SVG, __assign({ size: size, iconSizes: iconSizes$5, "aria-labelledby": altText, fill: "none" }, rest),
|
|
2638
|
+
React__default.createElement("g", { clipPath: "url(#".concat(id, ")") },
|
|
2639
|
+
React__default.createElement("path", { d: "M25.3333 6.66667V25.3333H6.66667V6.66667H25.3333ZM25.3333 4H6.66667C5.2 4 4 5.2 4 6.66667V25.3333C4 26.8 5.2 28 6.66667 28H25.3333C26.8 28 28 26.8 28 25.3333V6.66667C28 5.2 26.8 4 25.3333 4ZM18.8533 15.8133L14.8533 20.9733L12 17.52L8 22.6667H24L18.8533 15.8133Z", fill: color })),
|
|
2640
|
+
React__default.createElement("defs", null,
|
|
2641
|
+
React__default.createElement("clipPath", { id: id },
|
|
2642
|
+
React__default.createElement("rect", { width: "32", height: "32", fill: "white" })))));
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2598
2645
|
var avatarSizes = {
|
|
2599
2646
|
tiny: {
|
|
2600
2647
|
size: '24px',
|
|
@@ -2800,6 +2847,20 @@ function DropzonedPreviews(_a) {
|
|
|
2800
2847
|
? React__default.createElement(ThumbsContainer, null, thumbs)
|
|
2801
2848
|
: React__default.createElement(PlaceHolder, null, placeholder))));
|
|
2802
2849
|
}
|
|
2850
|
+
function DropzonedSimple(_a) {
|
|
2851
|
+
var accept = _a.accept, children = _a.children, props = __rest(_a, ["accept", "children"]);
|
|
2852
|
+
var _b = useDropzone(__assign({ accept: accept }, props)), acceptedFiles = _b.acceptedFiles, getRootProps = _b.getRootProps, getInputProps = _b.getInputProps, isDragActive = _b.isDragActive, isDragAccept = _b.isDragAccept, isDragReject = _b.isDragReject;
|
|
2853
|
+
var Child = React__default.Children.only(children);
|
|
2854
|
+
if (!Child) {
|
|
2855
|
+
return null;
|
|
2856
|
+
}
|
|
2857
|
+
var ChildElem = React__default.cloneElement(Child, {
|
|
2858
|
+
acceptedFiles: acceptedFiles,
|
|
2859
|
+
inputProps: getInputProps(),
|
|
2860
|
+
rootProps: getRootProps({ isDragActive: isDragActive, isDragAccept: isDragAccept, isDragReject: isDragReject }),
|
|
2861
|
+
});
|
|
2862
|
+
return ChildElem;
|
|
2863
|
+
}
|
|
2803
2864
|
var templateObject_1$c, templateObject_2$7, templateObject_3$3, templateObject_4$2, templateObject_5$2, templateObject_6$1;
|
|
2804
2865
|
|
|
2805
2866
|
/*
|
|
@@ -4091,6 +4152,7 @@ var useFallbackRef = function (forwardedRef) {
|
|
|
4091
4152
|
var Overlay = styled.div(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n &&& {\n position: fixed;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background: rgba(42, 56, 63, 0.45);\n display: flex;\n z-index: ", ";\n margin-left: auto;\n margin-right: auto;\n }\n"], ["\n &&& {\n position: fixed;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background: rgba(42, 56, 63, 0.45);\n display: flex;\n z-index: ", ";\n margin-left: auto;\n margin-right: auto;\n }\n"])), function (p) { return p.zIndex || 999; });
|
|
4092
4153
|
var PopupWindow = styled.div(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n &&& {\n width: ", ";\n height: ", "; \n margin: 0 !important;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: fixed;\n ", "\n overflow-y: hidden;\n display: block;\n z-index: ", ";\n\n padding: ", ";\n border: 1px solid #CCD5DA;\n background-color: #fefefe;\n border-radius: 3px;\n\n &:last-child {\n margin-bottom: 0;\n }\n .popup-content {\n overflow-y: auto;\n height: 90%;\n }\n ", "\n ", "\n }\n"], ["\n &&& {\n width: ", ";\n height: ", "; \n margin: 0 !important;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: fixed;\n ", "\n overflow-y: hidden;\n display: block;\n z-index: ", ";\n\n padding: ", ";\n border: 1px solid #CCD5DA;\n background-color: #fefefe;\n border-radius: 3px;\n\n &:last-child {\n margin-bottom: 0;\n }\n .popup-content {\n overflow-y: auto;\n height: 90%;\n }\n ", "\n ", "\n }\n"])), function (props) { var _a; return (_a = props.width) !== null && _a !== void 0 ? _a : '90%'; }, function (props) { var _a; return (_a = props.height) !== null && _a !== void 0 ? _a : '75%'; }, function (props) { return props.height ? '' : 'max-height: 700px;'; }, function (p) { return p.zIndex || 1006; }, function (props) { var _a; return (_a = props.padding) !== null && _a !== void 0 ? _a : '1rem'; }, SharedStyles, SizerCss);
|
|
4093
4154
|
var PopupHeader = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n &&& {\n position: sticky;\n top: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background: white;\n padding: 3px;\n z-index: 99;\n .title {\n font-size: 1.8rem;\n font-weight: 500;\n text-align: left;\n align-self: center;\n padding-top: 3px;\n padding-left: 3px;\n border-bottom: none;\n font-family: \"skufont-demibold\",sans-serif;\n color: #123952;\n }\n ", "\n ", "\n }\n"], ["\n &&& {\n position: sticky;\n top: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background: white;\n padding: 3px;\n z-index: 99;\n .title {\n font-size: 1.8rem;\n font-weight: 500;\n text-align: left;\n align-self: center;\n padding-top: 3px;\n padding-left: 3px;\n border-bottom: none;\n font-family: \"skufont-demibold\",sans-serif;\n color: #123952;\n }\n ", "\n ", "\n }\n"])), SharedStyles, SizerCss);
|
|
4155
|
+
var ChevronButton = styled(ChevronIcon)(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n && {\n position: absolute;\n width: 120px;\n height: 120px;\n ", "\n top: calc(50% - 120px/2 + 22.5px);\n }\n"], ["\n && {\n position: absolute;\n width: 120px;\n height: 120px;\n ", "\n top: calc(50% - 120px/2 + 22.5px);\n }\n"])), function (props) { return props.left ? 'left: 0px;' : 'right: 0px;'; });
|
|
4094
4156
|
var PopupContainer = function (_a) {
|
|
4095
4157
|
var children = _a.children;
|
|
4096
4158
|
var ref = React__default.useRef(document$1.createElement('div'));
|
|
@@ -4104,7 +4166,7 @@ var PopupContainer = function (_a) {
|
|
|
4104
4166
|
return ReactDOM.createPortal(children, ref.current);
|
|
4105
4167
|
};
|
|
4106
4168
|
var Popup = React__default.forwardRef(function (_a, forwardedRef) {
|
|
4107
|
-
var header = _a.header, _b = _a.noHeader, noHeader = _b === void 0 ? false : _b, title = _a.title, controls = _a.controls, children = _a.children, onClose = _a.onClose, _c = _a.noCloseButton, noCloseButton = _c === void 0 ? false : _c, _d = _a.closeOnEsc, closeOnEsc = _d === void 0 ? true : _d, _e = _a.closeOnClickOutside, closeOnClickOutside = _e === void 0 ? false : _e, overlayZIndex = _a.overlayZIndex, popupClassName = _a.popupClassName, contentClassName = _a.contentClassName, props = __rest(_a, ["header", "noHeader", "title", "controls", "children", "onClose", "noCloseButton", "closeOnEsc", "closeOnClickOutside", "overlayZIndex", "popupClassName", "contentClassName"]);
|
|
4169
|
+
var header = _a.header, _b = _a.noHeader, noHeader = _b === void 0 ? false : _b, title = _a.title, controls = _a.controls, children = _a.children, onClose = _a.onClose, _c = _a.noCloseButton, noCloseButton = _c === void 0 ? false : _c, _d = _a.closeOnEsc, closeOnEsc = _d === void 0 ? true : _d, _e = _a.closeOnClickOutside, closeOnClickOutside = _e === void 0 ? false : _e, overlayZIndex = _a.overlayZIndex, popupClassName = _a.popupClassName, contentClassName = _a.contentClassName, _f = _a.PopupWindowComponent, PopupWindowComponent = _f === void 0 ? PopupWindow : _f, props = __rest(_a, ["header", "noHeader", "title", "controls", "children", "onClose", "noCloseButton", "closeOnEsc", "closeOnClickOutside", "overlayZIndex", "popupClassName", "contentClassName", "PopupWindowComponent"]);
|
|
4108
4170
|
var ref = useFallbackRef(forwardedRef);
|
|
4109
4171
|
useClickOutside({
|
|
4110
4172
|
ref: ref,
|
|
@@ -4132,14 +4194,16 @@ var Popup = React__default.forwardRef(function (_a, forwardedRef) {
|
|
|
4132
4194
|
}, [closeOnClickOutside, closeOnEsc, onClose]);
|
|
4133
4195
|
return React__default.createElement(PopupContainer, null,
|
|
4134
4196
|
React__default.createElement(Overlay, { zIndex: overlayZIndex },
|
|
4135
|
-
React__default.createElement(
|
|
4197
|
+
React__default.createElement(PopupWindowComponent, __assign({ className: "popup" + (popupClassName ? " ".concat(popupClassName) : '') }, props, { ref: ref }),
|
|
4136
4198
|
noHeader ? null :
|
|
4137
4199
|
header ? header : (React__default.createElement(PopupHeader, { className: "popup-header", xsStyle: "flex-wrap: wrap-reverse;", smStyle: "flex-wrap: wrap;" },
|
|
4138
4200
|
React__default.createElement(Col, { style: { textAlign: 'left', alignSelf: 'center' } },
|
|
4139
4201
|
React__default.createElement("span", { className: "title" }, title)),
|
|
4140
4202
|
React__default.createElement(Col, { style: { textAlign: 'right', alignSelf: 'center' } }, noCloseButton ? null :
|
|
4141
4203
|
controls || React__default.createElement(Button, { onClick: onClose }, "Close")))),
|
|
4142
|
-
React__default.createElement("div", { className: "popup-content" + (contentClassName ? " ".concat(contentClassName) : '') },
|
|
4204
|
+
React__default.createElement("div", { className: "popup-content" + (contentClassName ? " ".concat(contentClassName) : '') },
|
|
4205
|
+
children,
|
|
4206
|
+
" "))));
|
|
4143
4207
|
});
|
|
4144
4208
|
var ShowPopup = function (_a) {
|
|
4145
4209
|
var _b = _a.autoOpen, autoOpen = _b === void 0 ? false : _b, PopupComponent = _a.popup, render = _a.render, _c = _a.closeOnEsc, closeOnEsc = _c === void 0 ? true : _c, _d = _a.closeOnClickOutside, closeOnClickOutside = _d === void 0 ? false : _d, props = __rest(_a, ["autoOpen", "popup", "render", "closeOnEsc", "closeOnClickOutside"]);
|
|
@@ -4148,12 +4212,22 @@ var ShowPopup = function (_a) {
|
|
|
4148
4212
|
showPopup && React__default.createElement(PopupComponent, __assign({ onClose: function () { return setShowPopup(false); }, closeOnEsc: closeOnEsc, closeOnClickOutside: closeOnClickOutside }, props)),
|
|
4149
4213
|
render && render({ onClick: function () { return setShowPopup(!showPopup); } }));
|
|
4150
4214
|
};
|
|
4151
|
-
var
|
|
4215
|
+
var ChevronPopupWindow = function (props) {
|
|
4216
|
+
var onPreviousButtonClick = props.onPreviousButtonClick, onNextButtonClick = props.onNextButtonClick, hidePreviousButton = props.hidePreviousButton, hideNextButton = props.hideNextButton, rest = __rest(props, ["onPreviousButtonClick", "onNextButtonClick", "hidePreviousButton", "hideNextButton"]);
|
|
4217
|
+
return React__default.createElement(React__default.Fragment, null,
|
|
4218
|
+
!hidePreviousButton && React__default.createElement(ChevronButton, { direction: 'left', left: true, onClick: onPreviousButtonClick }),
|
|
4219
|
+
React__default.createElement(PopupWindow, __assign({}, rest)),
|
|
4220
|
+
!hideNextButton && React__default.createElement(ChevronButton, { direction: 'right', onClick: onNextButtonClick }));
|
|
4221
|
+
};
|
|
4222
|
+
var ChevronPopup = function (props) {
|
|
4223
|
+
return React__default.createElement(Popup, __assign({ PopupWindowComponent: ChevronPopupWindow }, props));
|
|
4224
|
+
};
|
|
4225
|
+
var templateObject_1$n, templateObject_2$e, templateObject_3$7, templateObject_4$6;
|
|
4152
4226
|
|
|
4153
4227
|
var GridTableContainer = styled.div(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display:grid;\n grid-template-rows: ", ";\n grid-gap: ", ";\n width:", ";\n margin-top: 24px;\n margin-bottom: 24px;\n background: white;\n overflow: scroll;\n .droppable {\n display:grid;\n grid-template-rows: ", ";\n grid-gap: ", ";\n }\n ", "\n"], ["\n display:grid;\n grid-template-rows: ", ";\n grid-gap: ", ";\n width:", ";\n margin-top: 24px;\n margin-bottom: 24px;\n background: white;\n overflow: scroll;\n .droppable {\n display:grid;\n grid-template-rows: ", ";\n grid-gap: ", ";\n }\n ", "\n"])), function (props) { return props.gridTemplateRows ? props.gridTemplateRows : 'auto'; }, function (props) { return props.gridRowGap ? props.gridRowGap : "16px"; }, function (props) { return props.width ? props.width : '100%'; }, function (props) { return props.gridTemplateRows ? props.gridTemplateRows : 'auto'; }, function (props) { return props.gridRowGap ? props.gridRowGap : "16px"; }, SharedStyles);
|
|
4154
4228
|
var GridRow = styled.div(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n display:grid;\n grid-template-columns: ", ";\n grid-gap: ", ";\n width:100%;\n background: white;\n ", "\n"], ["\n display:grid;\n grid-template-columns: ", ";\n grid-gap: ", ";\n width:100%;\n background: white;\n ", "\n"])), function (props) { return props.gridTemplateColumns; }, function (props) { return props.gridColumnGap ? props.gridColumnGap : "16px"; }, SharedStyles);
|
|
4155
4229
|
var GridCell = styled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject([" \n background: white;\n width: ", ";\n font-family: ", ";\n color: ", ";\n text-align: ", ";\n"], [" \n background: white;\n width: ", ";\n font-family: ", ";\n color: ", ";\n text-align: ", ";\n"])), function (props) { return props.width ? props.width : 'auto'; }, function (props) { return props.header ? themeOptions.fontFamilies.bold : fontStyles.p.medium; }, function (props) { return props.header ? errors.main : neutrals.bodyText; }, function (props) { return props.centerContent ? 'center' : 'left'; });
|
|
4156
|
-
var FieldError = styled.p(templateObject_4$
|
|
4230
|
+
var FieldError = styled.p(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n margin:0;\n"], ["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n margin:0;\n"])), fontStyles.p.small.fontFamily, fontStyles.p.small.fontSize, errors['40']);
|
|
4157
4231
|
var defaultTransform = function (v) { return v.target ? v.target.value : v.currentTarget ? v.currentTarget.value : v.value; };
|
|
4158
4232
|
var Column = function (_a) {
|
|
4159
4233
|
var name = _a.name, title = _a.title, children = _a.children, centerContent = _a.centerContent, _b = _a.transform;
|
|
@@ -4336,14 +4410,14 @@ function GridTable(_a) {
|
|
|
4336
4410
|
Adding && NewRow,
|
|
4337
4411
|
onAdd && !Adding && AddNew)));
|
|
4338
4412
|
}
|
|
4339
|
-
var templateObject_1$o, templateObject_2$f, templateObject_3$8, templateObject_4$
|
|
4413
|
+
var templateObject_1$o, templateObject_2$f, templateObject_3$8, templateObject_4$7;
|
|
4340
4414
|
|
|
4341
4415
|
var tabSizes = {
|
|
4342
4416
|
small: css(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n font-size: 0.9rem;\n padding: 0.5rem 5px;\n margin: 0;\n "], ["\n font-size: 0.9rem;\n padding: 0.5rem 5px;\n margin: 0;\n "]))),
|
|
4343
4417
|
medium: css(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n font-size: inherit;\n padding: 1rem 12px;\n margin: 0 15px 0 0;\n "], ["\n font-size: inherit;\n padding: 1rem 12px;\n margin: 0 15px 0 0;\n "]))),
|
|
4344
4418
|
};
|
|
4345
4419
|
var TabBar = styled.ul(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n &&& {\n display: block;\n font-size: 16px;\n font-family: 'skufont-demibold', sans-serif;\n margin: 0;\n margin-bottom: ", ";\n padding: 0;\n ", "\n }\n"], ["\n &&& {\n display: block;\n font-size: 16px;\n font-family: 'skufont-demibold', sans-serif;\n margin: 0;\n margin-bottom: ", ";\n padding: 0;\n ", "\n }\n"])), function (props) { return props.padded ? "20px" : 0; }, SharedStyles);
|
|
4346
|
-
var Tab = styled.li(templateObject_4$
|
|
4420
|
+
var Tab = styled.li(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n &&& {\n cursor: pointer;\n display: inline-block;\n border-bottom: ", ";\n color: #222222;\n opacity: ", ";\n list-style: none;\n margin-bottom: 0 !important;\n position: relative;\n padding: 1rem 12px;\n margin-right: 15px;\n ", "\n\n ", "\n }\n"], ["\n &&& {\n cursor: pointer;\n display: inline-block;\n border-bottom: ", ";\n color: #222222;\n opacity: ", ";\n list-style: none;\n margin-bottom: 0 !important;\n position: relative;\n padding: 1rem 12px;\n margin-right: 15px;\n ", "\n\n ", "\n }\n"
|
|
4347
4421
|
/*
|
|
4348
4422
|
|
|
4349
4423
|
Here's how you use this:
|
|
@@ -4431,7 +4505,7 @@ var Tabs = /** @class */ (function (_super) {
|
|
|
4431
4505
|
};
|
|
4432
4506
|
return Tabs;
|
|
4433
4507
|
}(Component));
|
|
4434
|
-
var templateObject_1$p, templateObject_2$g, templateObject_3$9, templateObject_4$
|
|
4508
|
+
var templateObject_1$p, templateObject_2$g, templateObject_3$9, templateObject_4$8;
|
|
4435
4509
|
|
|
4436
4510
|
var toggleSizes = {
|
|
4437
4511
|
small: {
|
|
@@ -4569,7 +4643,7 @@ var templateObject_1$t, templateObject_2$i;
|
|
|
4569
4643
|
var ProductInfo = styled.div(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n width: 100%;\n background: rgba(0, 0, 0, 0.55) !important;\n position: absolute;\n left: 0;\n bottom: 0;\n opacity: 1;\n color: #fff;\n padding: 10px;\n font-size: 14px;\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n height: 110px;\n -webkit-transition: height .2s ease;\n -moz-transition: height .2s ease;\n transition: height .2s ease;\n z-index: 1;\n text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);\n -moz-text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);\n background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);\n background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);\n background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#b0000000',GradientType=0 );\n"], ["\n width: 100%;\n background: rgba(0, 0, 0, 0.55) !important;\n position: absolute;\n left: 0;\n bottom: 0;\n opacity: 1;\n color: #fff;\n padding: 10px;\n font-size: 14px;\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n height: 110px;\n -webkit-transition: height .2s ease;\n -moz-transition: height .2s ease;\n transition: height .2s ease;\n z-index: 1;\n text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);\n -moz-text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);\n background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);\n background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);\n background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#b0000000',GradientType=0 );\n"])));
|
|
4570
4644
|
var ProductName = styled.div(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n font-size: 1.2rem;\n font-weight: bold;\n display: none;\n"], ["\n font-size: 1.2rem;\n font-weight: bold;\n display: none;\n"])));
|
|
4571
4645
|
var SupplierName = styled.div(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n font-size: .9rem;\n font-weight: bold;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n font-size: .9rem;\n font-weight: bold;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
4572
|
-
var ProductWrapper = styled.div(templateObject_4$
|
|
4646
|
+
var ProductWrapper = styled.div(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n width: 100%;\n height: 17rem;\n overflow: hidden;\n background-image: url(\"", "\");\n background-repeat: no-repeat;\n background-position: center top;\n background-size: cover;\n position: relative;\n line-height: 1.5em;\n cursor: pointer;\n &:hover ", " {\n height: 100%;\n }\n &:hover ", " {\n display: block;\n }\n &:hover ", " {\n overflow: visible;\n white-space: normal;\n }\n ", "\n"], ["\n width: 100%;\n height: 17rem;\n overflow: hidden;\n background-image: url(\"", "\");\n background-repeat: no-repeat;\n background-position: center top;\n background-size: cover;\n position: relative;\n line-height: 1.5em;\n cursor: pointer;\n &:hover ", " {\n height: 100%;\n }\n &:hover ", " {\n display: block;\n }\n &:hover ", " {\n overflow: visible;\n white-space: normal;\n }\n ", "\n"])), function (props) { return props.picture; }, ProductInfo, ProductName, SupplierName, SharedStyles);
|
|
4573
4647
|
var Product = function (props) {
|
|
4574
4648
|
return React__default.createElement(ProductWrapper, __assign({}, props),
|
|
4575
4649
|
React__default.createElement(ProductInfo, null,
|
|
@@ -4580,12 +4654,12 @@ var Product = function (props) {
|
|
|
4580
4654
|
props.price && props.currency ? props.currency + "$" + props.price : null,
|
|
4581
4655
|
props.rating ? React__default.createElement(StarRating, { rating: props.rating }) : null));
|
|
4582
4656
|
};
|
|
4583
|
-
var templateObject_1$u, templateObject_2$j, templateObject_3$b, templateObject_4$
|
|
4657
|
+
var templateObject_1$u, templateObject_2$j, templateObject_3$b, templateObject_4$9;
|
|
4584
4658
|
|
|
4585
4659
|
var ArtworkName = styled.div(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n font-size: .9rem;\n font-weight: bold;\n"], ["\n font-size: .9rem;\n font-weight: bold;\n"])));
|
|
4586
4660
|
var UpdateDate = styled.div(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n"], ["\n font-size: ", ";\n color: ", ";\n"])), function (props) { return getThemeFontSize(props, 'tiny'); }, function (props) { return getThemeColor(props, 'textbody', colors.textbody); });
|
|
4587
4661
|
var ArtworkControls = styled.div(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n text-align: right;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n opacity: 0;\n transition: .3s all;\n"], ["\n text-align: right;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n padding: 10px;\n width: 100%;\n box-sizing: border-box;\n opacity: 0;\n transition: .3s all;\n"])));
|
|
4588
|
-
var ArtworkInfo = styled.div(templateObject_4$
|
|
4662
|
+
var ArtworkInfo = styled.div(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n padding-left: ", ";\n width: 100%;\n position: absolute;\n height: 3rem;\n left: 0;\n ", " : 0;\n opacity: 1;\n color: black;\n font-size: 14px;\n box-sizing: border-box;\n word-wrap: break-word;\n -moz-box-sizing: border-box;\n -webkit-transition: height .2s ease;\n -moz-transition: height .2s ease;\n transition: height .2s ease;\n z-index: 1;\n"], ["\n padding-left: ", ";\n width: 100%;\n position: absolute;\n height: 3rem;\n left: 0;\n ", " : 0;\n opacity: 1;\n color: black;\n font-size: 14px;\n box-sizing: border-box;\n word-wrap: break-word;\n -moz-box-sizing: border-box;\n -webkit-transition: height .2s ease;\n -moz-transition: height .2s ease;\n transition: height .2s ease;\n z-index: 1;\n"])), function (props) { return props.withPicture ? 0 : "4vw !important"; }, function (props) { return props.withPicture ? "bottom" : "top"; });
|
|
4589
4663
|
var ArtworkWrapper = styled.div(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n min-height: 4rem;\n position: relative;\n line-height: 1.5em;\n cursor: pointer;\n\n &:hover ", " {\n opacity: 1;\n }\n ", "\n"], ["\n width: 100%;\n height: ", ";\n min-height: 4rem;\n position: relative;\n line-height: 1.5em;\n cursor: pointer;\n\n &:hover ", " {\n opacity: 1;\n }\n ", "\n"])), function (props) { return props.cssHeight > 0 ? props.cssHeight + "vw" : "auto"; }, ArtworkControls, SharedStyles);
|
|
4590
4664
|
var ArtworkPicture = styled.div(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n width: 100%;\n height: calc(", "vw - 3.5rem);\n overflow: hidden;\n position: relative;\n line-height: 1.5em;\n cursor: pointer;\n box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);\n\n &:hover ", " {\n opacity: 1;\n }\n"], ["\n width: 100%;\n height: calc(", "vw - 3.5rem);\n overflow: hidden;\n position: relative;\n line-height: 1.5em;\n cursor: pointer;\n box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);\n\n &:hover ", " {\n opacity: 1;\n }\n"])), function (props) { return props.cssHeight; }, ArtworkControls);
|
|
4591
4665
|
function truncate$1(filename, max) {
|
|
@@ -4624,12 +4698,12 @@ var Artwork = function (_a) {
|
|
|
4624
4698
|
"Updated ",
|
|
4625
4699
|
props.date) : null));
|
|
4626
4700
|
};
|
|
4627
|
-
var templateObject_1$v, templateObject_2$k, templateObject_3$c, templateObject_4$
|
|
4701
|
+
var templateObject_1$v, templateObject_2$k, templateObject_3$c, templateObject_4$a, templateObject_5$6, templateObject_6$5;
|
|
4628
4702
|
|
|
4629
4703
|
var TaskLabel = styled.div(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["display: flex; min-height: 25px; ", ""], ["display: flex; min-height: 25px; ", ""])), function (p) { return p.hasCheckbox ? "width: calc(100% - 24px);" : ''; });
|
|
4630
4704
|
var TaskName = styled.div(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["flex-grow: 1; font-size:13px;"], ["flex-grow: 1; font-size:13px;"])));
|
|
4631
4705
|
var StyledTask = styled.div(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["margin-bottom: 1.5em; ", ""], ["margin-bottom: 1.5em; ", ""])), SharedStyles);
|
|
4632
|
-
var TaskBody = styled.div(templateObject_4$
|
|
4706
|
+
var TaskBody = styled.div(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["margin-left:34px;"], ["margin-left:34px;"])));
|
|
4633
4707
|
var Task = function (_a) {
|
|
4634
4708
|
var taskName = _a.taskName, date = _a.date, done = _a.done, assignee = _a.assignee, taskBody = _a.taskBody, _b = _a.initialChecked, initialChecked = _b === void 0 ? false : _b, onClickCheckbox = _a.onClickCheckbox, props = __rest(_a, ["taskName", "date", "done", "assignee", "taskBody", "initialChecked", "onClickCheckbox"]);
|
|
4635
4709
|
var _c = useState(initialChecked), checked = _c[0], setChecked = _c[1];
|
|
@@ -4703,7 +4777,7 @@ var CalendarTask = React__default.forwardRef(function (_a, ref) {
|
|
|
4703
4777
|
assignee ? "for " + assignee : null,
|
|
4704
4778
|
assignee ? "on " : null)));
|
|
4705
4779
|
});
|
|
4706
|
-
var templateObject_1$w, templateObject_2$l, templateObject_3$d, templateObject_4$
|
|
4780
|
+
var templateObject_1$w, templateObject_2$l, templateObject_3$d, templateObject_4$b, templateObject_5$7, templateObject_6$6;
|
|
4707
4781
|
|
|
4708
4782
|
var PublisherWrapper = styled.div(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["background: ", "; border-radius:5px; padding: 1em; margin-bottom: 1em;"], ["background: ", "; border-radius:5px; padding: 1em; margin-bottom: 1em;"])), function (props) { return getThemeColor(props, "bgblue", colors.bgblue); });
|
|
4709
4783
|
var Publisher = function (props) {
|
|
@@ -4712,7 +4786,7 @@ var Publisher = function (props) {
|
|
|
4712
4786
|
};
|
|
4713
4787
|
var PostWrapper = styled.div(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["display:flex; margin-bottom: 1em; line-height: 1.5em; ", ""], ["display:flex; margin-bottom: 1em; line-height: 1.5em; ", ""])), SharedStyles);
|
|
4714
4788
|
var WidePart = styled.div(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["flex-grow:1;"], ["flex-grow:1;"])));
|
|
4715
|
-
var Date$1 = styled.span(templateObject_4$
|
|
4789
|
+
var Date$1 = styled.span(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["color: ", "; display: inline-block;"], ["color: ", "; display: inline-block;"])), function (props) { return getThemeColor(props, "textbody", colors.textbody); });
|
|
4716
4790
|
var Action = styled.a(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["display: inline-block; margin-left: 10px;"], ["display: inline-block; margin-left: 10px;"])));
|
|
4717
4791
|
var Author = styled.div(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["flex-grow: 1; color: ", "; font-size: 18px; font-family: \"skufont-medium\", sans-serif; "], ["flex-grow: 1; color: ", "; font-size: 18px; font-family: \"skufont-medium\", sans-serif; "])), function (props) { return getThemeColor(props, "texttitle", colors.texttitle); });
|
|
4718
4792
|
var Subject = styled.div(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["color:", "; font-size: 14px; font-family: \"skufont-medium\", sans-serif; "], ["color:", "; font-size: 14px; font-family: \"skufont-medium\", sans-serif; "])), function (props) { return getThemeColor(props, "textbody", colors.textbody); });
|
|
@@ -4733,12 +4807,12 @@ var FeedPost = function (props) {
|
|
|
4733
4807
|
props.comments && props.comments.length > 0 ?
|
|
4734
4808
|
React__default.createElement(Comments, null, props.comments) : null));
|
|
4735
4809
|
};
|
|
4736
|
-
var templateObject_1$x, templateObject_2$m, templateObject_3$e, templateObject_4$
|
|
4810
|
+
var templateObject_1$x, templateObject_2$m, templateObject_3$e, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10;
|
|
4737
4811
|
|
|
4738
4812
|
var Wrapper$3 = styled.div(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n background: ", ";\n text-align: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n ", "\n"], ["\n background: ", ";\n text-align: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n ", "\n"])), function (props) { return getThemeColor(props, 'bgblue', colors.bgblue); }, SharedStyles);
|
|
4739
4813
|
var ErrorTextContainer = styled.div(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n background: white;\n max-width: 450px;\n text-align: center;\n border-radius: 10px;\n font-size: 2em;\n margin-left: auto;\n padding: 100px 50px;\n margin-top: auto;\n margin-bottom: auto;\n\n @media only screen and (max-width: 700px) {\n margin-right: auto;\n }\n\n @media only screen and (min-width: 701px) {\n margin-right: 10px;\n }\n"], ["\n background: white;\n max-width: 450px;\n text-align: center;\n border-radius: 10px;\n font-size: 2em;\n margin-left: auto;\n padding: 100px 50px;\n margin-top: auto;\n margin-bottom: auto;\n\n @media only screen and (max-width: 700px) {\n margin-right: auto;\n }\n\n @media only screen and (min-width: 701px) {\n margin-right: 10px;\n }\n"])));
|
|
4740
4814
|
var BotContainer = styled.div(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n max-width: 450px;\n text-align: center;\n border-radius: 10px;\n font-size: 2em;\n padding: 40px;\n\n margin-right: auto;\n @media only screen and (max-width: 700px) {\n margin-left: auto;\n margin-top: 20px;\n }\n\n @media only screen and (min-width: 701px) {\n margin-left: 5px;\n }\n"], ["\n max-width: 450px;\n text-align: center;\n border-radius: 10px;\n font-size: 2em;\n padding: 40px;\n\n margin-right: auto;\n @media only screen and (max-width: 700px) {\n margin-left: auto;\n margin-top: 20px;\n }\n\n @media only screen and (min-width: 701px) {\n margin-left: 5px;\n }\n"])));
|
|
4741
|
-
var BotImg = styled.img(templateObject_4$
|
|
4815
|
+
var BotImg = styled.img(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n margin-top: 20px;\n padding: 0;\n margin: 0;\n max-width: 450px;\n"], ["\n margin-top: 20px;\n padding: 0;\n margin: 0;\n max-width: 450px;\n"])));
|
|
4742
4816
|
var ErrorBoundary = /** @class */ (function (_super) {
|
|
4743
4817
|
__extends(ErrorBoundary, _super);
|
|
4744
4818
|
function ErrorBoundary(props) {
|
|
@@ -4766,7 +4840,7 @@ var ErrorBoundary = /** @class */ (function (_super) {
|
|
|
4766
4840
|
};
|
|
4767
4841
|
return ErrorBoundary;
|
|
4768
4842
|
}(Component));
|
|
4769
|
-
var templateObject_1$y, templateObject_2$n, templateObject_3$f, templateObject_4$
|
|
4843
|
+
var templateObject_1$y, templateObject_2$n, templateObject_3$f, templateObject_4$d;
|
|
4770
4844
|
|
|
4771
4845
|
var CustomDateInput = React__default.forwardRef(function (_a, ref) {
|
|
4772
4846
|
var error = _a.error, noMargin = _a.noMargin, onClick = _a.onClick, isClearable = _a.isClearable, props = __rest(_a, ["error", "noMargin", "onClick", "isClearable"]);
|
|
@@ -5285,10 +5359,10 @@ var Sparkle = function (_a) {
|
|
|
5285
5359
|
var comeInOut = keyframes(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n 0% {\n transform: scale(0);\n }\n 50% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n"], ["\n 0% {\n transform: scale(0);\n }\n 50% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n"])));
|
|
5286
5360
|
var spin = keyframes(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(180deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(180deg);\n }\n"])));
|
|
5287
5361
|
var Wrapper$4 = styled.span(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n"], ["\n display: inline-block;\n position: relative;\n"])));
|
|
5288
|
-
var SparkleWrapper = styled.span(templateObject_4$
|
|
5362
|
+
var SparkleWrapper = styled.span(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n position: absolute;\n display: block;\n @media (prefers-reduced-motion: no-preference) {\n animation: ", " 700ms forwards;\n }\n"], ["\n position: absolute;\n display: block;\n @media (prefers-reduced-motion: no-preference) {\n animation: ", " 700ms forwards;\n }\n"])), comeInOut);
|
|
5289
5363
|
var SparkleSvg = styled.svg(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n display: block;\n @media (prefers-reduced-motion: no-preference) {\n animation: ", " 1000ms linear;\n }\n"], ["\n display: block;\n @media (prefers-reduced-motion: no-preference) {\n animation: ", " 1000ms linear;\n }\n"])), spin);
|
|
5290
5364
|
var ChildWrapper = styled.strong(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n position: relative;\n z-index: 1;\n font-weight: bold;\n"], ["\n position: relative;\n z-index: 1;\n font-weight: bold;\n"])));
|
|
5291
|
-
var templateObject_1$C, templateObject_2$q, templateObject_3$i, templateObject_4$
|
|
5365
|
+
var templateObject_1$C, templateObject_2$q, templateObject_3$i, templateObject_4$e, templateObject_5$9, templateObject_6$8;
|
|
5292
5366
|
|
|
5293
5367
|
var StyledDropdown$1 = styled.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n position: relative;\n display: block;\n width: 100%;\n"], ["\n position: relative;\n display: block;\n width: 100%;\n"])));
|
|
5294
5368
|
var DropdownItem$1 = styled.div(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n color: white;\n padding: 8px 8px;\n text-decoration: none;\n display: block;\n text-align: center;\n background-color: ", ";\n border-radius: ", ";\n opacity: ", ";\n &:hover {\n opacity: .85;\n cursor: pointer;\n }\n"], ["\n color: white;\n padding: 8px 8px;\n text-decoration: none;\n display: block;\n text-align: center;\n background-color: ", ";\n border-radius: ", ";\n opacity: ", ";\n &:hover {\n opacity: .85;\n cursor: pointer;\n }\n"])), function (p) { return p.color ? p.color : "#F4F7FF"; }, function (p) { return p.rounded ? "100px" : 0; }, function (p) { return p.active ? 0.85 : 1; });
|
|
@@ -5338,7 +5412,7 @@ var templateObject_1$D, templateObject_2$r, templateObject_3$j;
|
|
|
5338
5412
|
var StyledCircles = styled.div(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n line-height: 0;\n margin-bottom: 9px;\n"], ["\n line-height: 0;\n margin-bottom: 9px;\n"])));
|
|
5339
5413
|
var Circle = styled.div(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n background: #005B8C;\n opacity: ", ";\n width: 5px;\n height: 5px;\n border-radius: 10px;\n margin-right: 2px;\n display: inline-block;\n"], ["\n background: #005B8C;\n opacity: ", ";\n width: 5px;\n height: 5px;\n border-radius: 10px;\n margin-right: 2px;\n display: inline-block;\n"])), function (p) { return p.disabled ? 0.1 : 1; });
|
|
5340
5414
|
var StyledDropdown$2 = styled.div(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n position: relative;\n display: block;\n width: 100%;\n"], ["\n position: relative;\n display: block;\n width: 100%;\n"])));
|
|
5341
|
-
var DropdownDisplay = styled.div(templateObject_4$
|
|
5415
|
+
var DropdownDisplay = styled.div(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n color: black;\n padding: 8px 8px;\n text-decoration: none;\n display: block;\n text-align: center;\n background-color: ", ";\n line-height: 1em;\n min-height: 28px;\n display: ", ";\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n opacity: ", ";\n &:hover {\n opacity: .85;\n cursor: pointer;\n }\n"], ["\n color: black;\n padding: 8px 8px;\n text-decoration: none;\n display: block;\n text-align: center;\n background-color: ", ";\n line-height: 1em;\n min-height: 28px;\n display: ", ";\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n opacity: ", ";\n &:hover {\n opacity: .85;\n cursor: pointer;\n }\n"])), function (p) { return p.background || '#F4F7FF'; }, function (p) { return p.showCircles ? "inherit" : "flex"; }, function (p) { return p.rounded ? "100px" : 0; }, function (p) { return p.active ? 0.85 : 1; });
|
|
5342
5416
|
var DropdownItem$2 = styled.div(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n color: black;\n padding: 8px 8px;\n text-decoration: none;\n display: block;\n text-align: center;\n background-color: ", ";\n line-height: 1em;\n min-height: 30px;\n border-radius: ", ";\n opacity: ", ";\n &:hover {\n opacity: .85;\n cursor: pointer;\n }\n word-wrap: break-word;\n"], ["\n color: black;\n padding: 8px 8px;\n text-decoration: none;\n display: block;\n text-align: center;\n background-color: ", ";\n line-height: 1em;\n min-height: 30px;\n border-radius: ", ";\n opacity: ", ";\n &:hover {\n opacity: .85;\n cursor: pointer;\n }\n word-wrap: break-word;\n"])), function (p) { return p.background || '#F4F7FF'; }, function (p) { return p.rounded ? "100px" : 0; }, function (p) { return p.active ? 0.85 : 1; });
|
|
5343
5417
|
var DropDownContent$2 = styled.div(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: block;\n position: absolute;\n background-color: ", ";\n width: 100%;\n box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.5);\n z-index: 10;\n border-radius: 10px;\n text-align: left;\n overflow: hidden;\n ", "\n"], ["\n display: block;\n position: absolute;\n background-color: ", ";\n width: 100%;\n box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.5);\n z-index: 10;\n border-radius: 10px;\n text-align: left;\n overflow: hidden;\n ", "\n"])), function (p) { return getColor('white'); }, function (p) { return p.scrollContentHeight ? "max-height: ".concat(p.scrollContentHeight, "; overflow-y: auto;") : ''; });
|
|
5344
5418
|
var Circles = function (_a) {
|
|
@@ -5390,7 +5464,7 @@ var StateDropdown = function (_a) {
|
|
|
5390
5464
|
" ");
|
|
5391
5465
|
}))));
|
|
5392
5466
|
};
|
|
5393
|
-
var templateObject_1$E, templateObject_2$s, templateObject_3$k, templateObject_4$
|
|
5467
|
+
var templateObject_1$E, templateObject_2$s, templateObject_3$k, templateObject_4$f, templateObject_5$a, templateObject_6$9;
|
|
5394
5468
|
|
|
5395
5469
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
5396
5470
|
if (source == null) return {};
|
|
@@ -6285,7 +6359,7 @@ function NumberInput(props) {
|
|
|
6285
6359
|
var InputStepperOuterContainer = styled.div(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n &&&{\n width: ", ";\n ", "\n ", "\n }\n"], ["\n &&&{\n width: ", ";\n ", "\n ", "\n }\n"])), function (props) { return props.width ? props.width : "160px"; }, SharedStyles, SizerCss);
|
|
6286
6360
|
var InputStepperInnerContainer = styled.div(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n &&&{\n display: flex;\n width: 100%;\n flex-direction: row;\n justify-content: space-between;\n border-radius: 5px;\n background-color: white;\n ", "\n ", "\n }\n"], ["\n &&&{\n display: flex;\n width: 100%;\n flex-direction: row;\n justify-content: space-between;\n border-radius: 5px;\n background-color: white;\n ", "\n ", "\n }\n"])), SharedStyles, SizerCss);
|
|
6287
6361
|
var InputStepperLabel = styled.label(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n &&&{\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n margin-bottom: 8px;\n color: ", "\n ", "\n ", "\n }\n"], ["\n &&&{\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n margin-bottom: 8px;\n color: ", "\n ", "\n ", "\n }\n"])), fontStyles.label.fontSize, fontStyles.label.fontFamily, fontStyles.label.lineHeight, neutrals.bodyText, SharedStyles, SizerCss);
|
|
6288
|
-
var CurrentNumber = styled.div(templateObject_4$
|
|
6362
|
+
var CurrentNumber = styled.div(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n &&&{\n display:flex;\n justify-content: center;\n align-items: center;\n height:38px;\n width:100%;\n border-top: 1px solid ", ";\n border-bottom: 1px solid ", ";\n color: ", ";\n text-align:center;\n vertical-align:middle;\n }\n"], ["\n &&&{\n display:flex;\n justify-content: center;\n align-items: center;\n height:38px;\n width:100%;\n border-top: 1px solid ", ";\n border-bottom: 1px solid ", ";\n color: ", ";\n text-align:center;\n vertical-align:middle;\n }\n"])), neutrals['60'], neutrals['60'], neutrals.bodyText);
|
|
6289
6363
|
function InputStepperStyled(props) {
|
|
6290
6364
|
var containerWidth = props.containerWidth, inputDisabled = props.inputDisabled, label = props.label, labelStyle = props.labelStyle, containerStyle = props.containerStyle, style = props.style, onIncrement = props.onIncrement, onDecrement = props.onDecrement, _a = props.decrementButtonProps, decrementButtonProps = _a === void 0 ? {} : _a, _b = props.incrementButtonProps, incrementButtonProps = _b === void 0 ? {} : _b, rest = __rest(props, ["containerWidth", "inputDisabled", "label", "labelStyle", "containerStyle", "style", "onIncrement", "onDecrement", "decrementButtonProps", "incrementButtonProps"]);
|
|
6291
6365
|
return (React__default.createElement(InputStepperOuterContainer, { width: containerWidth, style: containerStyle },
|
|
@@ -6367,7 +6441,7 @@ function InputStepper(props) {
|
|
|
6367
6441
|
onIncrementMouseDown();
|
|
6368
6442
|
}, onMouseOut: holdIncrement ? onIncrementMouseLeave : undefined, onMouseUp: holdIncrement ? onIncrementMouseUp : undefined, onTouchEnd: holdIncrement ? onIncrementTouchEnd : undefined, onTouchStart: holdIncrement ? onIncrementTouchStart : undefined }))));
|
|
6369
6443
|
}
|
|
6370
|
-
var templateObject_1$M, templateObject_2$y, templateObject_3$m, templateObject_4$
|
|
6444
|
+
var templateObject_1$M, templateObject_2$y, templateObject_3$m, templateObject_4$g;
|
|
6371
6445
|
|
|
6372
6446
|
var VirtualTable = function (props) {
|
|
6373
6447
|
var columns = props.columns, data = props.data, itemSize = props.itemSize, _a = props.height, height = _a === void 0 ? 500 : _a, _b = props.minWidth, minWidth = _b === void 0 ? 140 : _b, _c = props.maxWidth, maxWidth = _c === void 0 ? 500 : _c, defaultSort = props.defaultSort, onClickRow = props.onClickRow, onScroll = props.onScroll, onUpdateData = props.onUpdateData, _d = props.useTableProps, useTableProps = _d === void 0 ? {} : _d, _e = props.tableHeaderProps, tableHeaderProps = _e === void 0 ? {} : _e, _f = props.tableFooterProps, tableFooterProps = _f === void 0 ? {} : _f, _g = props.hideFooter, hideFooter = _g === void 0 ? true : _g, _h = props.hideHeader, hideHeader = _h === void 0 ? false : _h, _j = props.className, className = _j === void 0 ? '' : _j, NoRowsFound = props.NoRowsFound, renderRowSubComponent = props.renderRowSubComponent, onSort = props.onSort, onResize = props.onResize, rowGroupStyles = props.rowGroupStyles, rowStyles = props.rowStyles, _k = props.gutterSize, gutterSize = _k === void 0 ? 0 : _k, _l = props.customTableFooterProps, customTableFooterProps = _l === void 0 ? {} : _l, TableFooter = props.TableFooter;
|
|
@@ -6606,7 +6680,8 @@ var parseCskuStyles = function (p) {
|
|
|
6606
6680
|
});
|
|
6607
6681
|
return __spreadArray([stylesObj, sizeStylesObj], stylesArr, true);
|
|
6608
6682
|
};
|
|
6609
|
-
var Csku = styled.div(parseCskuStyles);
|
|
6683
|
+
var Csku = styled.div(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n", "\n ", "\n", "\n"], ["\n", "\n ", "\n", "\n"])), function (p) { return p.forceStyles ? '&&& {' : ''; }, parseCskuStyles, function (p) { return p.forceStyles ? '}' : ''; });
|
|
6684
|
+
var templateObject_1$O;
|
|
6610
6685
|
|
|
6611
6686
|
var Grid = styled.div(function (p) {
|
|
6612
6687
|
var params = {
|
|
@@ -6770,8 +6845,56 @@ var ConfirmPopup = function (props) {
|
|
|
6770
6845
|
}, disabled: disableDelete }, "Delete"))));
|
|
6771
6846
|
};
|
|
6772
6847
|
|
|
6773
|
-
var
|
|
6774
|
-
var
|
|
6848
|
+
var ConfirmAlertPopup = function (props) {
|
|
6849
|
+
var _a = props.padding, padding = _a === void 0 ? '16px' : _a, _b = props.maxWidth, maxWidth = _b === void 0 ? 555 : _b, _c = props.title, title = _c === void 0 ? '' : _c, _d = props.children, children = _d === void 0 ? 'Are you sure you want to perform this action?' : _d, _e = props.cancelButtonContent, cancelButtonContent = _e === void 0 ? 'Cancel' : _e, _f = props.actionButtonContent, actionButtonContent = _f === void 0 ? 'Delete' : _f, _g = props.disableActionButton, disableActionButton = _g === void 0 ? false : _g, onAction = props.onAction, onClose = props.onClose;
|
|
6850
|
+
return (React__default.createElement(Popup, { width: 'auto', height: 'auto', padding: padding, style: { borderRadius: 10, maxWidth: maxWidth, }, noHeader: true, noCloseButton: true },
|
|
6851
|
+
title ? React__default.createElement(PopupTitle, null, title) : null,
|
|
6852
|
+
React__default.createElement(PopupContent, null, children),
|
|
6853
|
+
React__default.createElement(Row, { style: { justifyContent: 'center', marginTop: 16, } },
|
|
6854
|
+
React__default.createElement(Col, { xs: true, md: 5.75, mdStyle: { marginRight: 16 } },
|
|
6855
|
+
React__default.createElement(Button, { size: "medium", variant: 'secondary', onClick: function () {
|
|
6856
|
+
onClose && onClose();
|
|
6857
|
+
}, style: { width: '100%' } }, cancelButtonContent)),
|
|
6858
|
+
React__default.createElement(Col, { xs: true, md: 5.75, xsStyle: { marginTop: 16 }, mdStyle: { marginTop: 0 } },
|
|
6859
|
+
React__default.createElement(Button, { size: "medium", variant: disableActionButton ? 'disabled' : 'error', onClick: function () {
|
|
6860
|
+
onAction && onAction();
|
|
6861
|
+
}, disabled: disableActionButton, style: { width: '100%' } }, actionButtonContent)))));
|
|
6862
|
+
};
|
|
6863
|
+
var PopupTitle = function (_a) {
|
|
6864
|
+
var children = _a.children;
|
|
6865
|
+
return (React__default.createElement("h2", { style: {
|
|
6866
|
+
fontFamily: 'var(--font-family-bold)',
|
|
6867
|
+
fontSize: fontStyles.h2.fontSize,
|
|
6868
|
+
lineHeight: fontStyles.h2.lineHeight,
|
|
6869
|
+
color: 'var(--color-neutrals-90)',
|
|
6870
|
+
paddingBottom: 16,
|
|
6871
|
+
margin: 0,
|
|
6872
|
+
} }, children));
|
|
6873
|
+
};
|
|
6874
|
+
var PopupContent = function (_a) {
|
|
6875
|
+
var children = _a.children;
|
|
6876
|
+
return (React__default.createElement("div", { style: {
|
|
6877
|
+
background: colors.errors[10],
|
|
6878
|
+
color: colors.errors.main,
|
|
6879
|
+
padding: 16,
|
|
6880
|
+
} },
|
|
6881
|
+
React__default.createElement("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'center' } },
|
|
6882
|
+
React__default.createElement("div", { style: {
|
|
6883
|
+
paddingRight: 16,
|
|
6884
|
+
verticalAlign: 'middle',
|
|
6885
|
+
alignSelf: 'center',
|
|
6886
|
+
} },
|
|
6887
|
+
React__default.createElement(AlertIcon, { size: 'medium', color: colors.errors[70] })),
|
|
6888
|
+
React__default.createElement("div", { style: {
|
|
6889
|
+
fontFamily: 'var(--font-family-regular)',
|
|
6890
|
+
fontSize: fontStyles.p.large.fontSize,
|
|
6891
|
+
lineHeight: fontStyles.p.medium.lineHeight,
|
|
6892
|
+
color: colors.errors.main,
|
|
6893
|
+
} }, children))));
|
|
6894
|
+
};
|
|
6895
|
+
|
|
6896
|
+
var StyledDayBody = styled(Col)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n position: relative;\n height: auto;\n border-right: 1px solid #eee;\n overflow: hidden;\n cursor: pointer;\n background: #fff;\n transition: 0.25s ease-out;\n font-size: 1em;\n overflow-y: auto;\n\n &:last-child {\n border-right: none;\n }\n\n &:hover {\n background: #f9f9f9;\n transition: 0.5s ease-out;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"], ["\n position: relative;\n height: auto;\n border-right: 1px solid #eee;\n overflow: hidden;\n cursor: pointer;\n background: #fff;\n transition: 0.25s ease-out;\n font-size: 1em;\n overflow-y: auto;\n\n &:last-child {\n border-right: none;\n }\n\n &:hover {\n background: #f9f9f9;\n transition: 0.5s ease-out;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (p) { return p.selected ? "\n background: #f9f9f9;\n " : ''; }, function (p) { return p.today ? "\n background: #f9f9f9;\n " : ''; }, function (p) { return p.row ? "\n border-bottom: 1px solid #eee;\n " : ''; }, function (p) { return p.disabled ? "\n color: #ccc;\n pointer-events: none;\n " : ''; });
|
|
6897
|
+
var templateObject_1$P;
|
|
6775
6898
|
|
|
6776
6899
|
var CalendarDayBody = function (_a) {
|
|
6777
6900
|
var day = _a.day, selectedDate = _a.selectedDate, onClick = _a.onClick, children = _a.children, weekend = _a.weekend, props = __rest(_a, ["day", "selectedDate", "onClick", "children", "weekend"]);
|
|
@@ -6786,8 +6909,8 @@ var CalendarDayBody = function (_a) {
|
|
|
6786
6909
|
return (React__default.createElement(StyledDayBody, __assign({ padded: true, totalCols: weekend ? 7 : 5, xs: 1, selected: isSelected, today: isToday, onClick: onClick, className: classNames }, props), children || React__default.createElement("span", { style: { padding: 10, } }, formattedDay)));
|
|
6787
6910
|
};
|
|
6788
6911
|
|
|
6789
|
-
var DaysBodyWrapper = styled.div(templateObject_1$
|
|
6790
|
-
var templateObject_1$
|
|
6912
|
+
var DaysBodyWrapper = styled.div(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\n font-size: 1em;\n font-weight: 300;\n line-height: 1;\n color: #777;\n background: #f9f9f9;\n position: relative;\n border-bottom: 1px solid #eee;\n"], ["\n font-size: 1em;\n font-weight: 300;\n line-height: 1;\n color: #777;\n background: #f9f9f9;\n position: relative;\n border-bottom: 1px solid #eee;\n"])));
|
|
6913
|
+
var templateObject_1$Q;
|
|
6791
6914
|
|
|
6792
6915
|
var CalendarDaysBody = function (_a) {
|
|
6793
6916
|
var _b = _a.days, days = _b === void 0 ? [] : _b, currentMonth = _a.currentMonth, selectedDate = _a.selectedDate, onClickDay = _a.onClickDay, components = _a.components, _c = _a.dayBodyProps, dayBodyProps = _c === void 0 ? {} : _c, _d = _a.weekend, weekend = _d === void 0 ? true : _d, props = __rest(_a, ["days", "currentMonth", "selectedDate", "onClickDay", "components", "dayBodyProps", "weekend"]);
|
|
@@ -6799,12 +6922,12 @@ var CalendarDaysBody = function (_a) {
|
|
|
6799
6922
|
}))));
|
|
6800
6923
|
};
|
|
6801
6924
|
|
|
6802
|
-
var DaysHeaderWrapper = styled(Row)(templateObject_1$
|
|
6803
|
-
var templateObject_1$Q;
|
|
6804
|
-
|
|
6805
|
-
var StyledDayText = styled(Text)(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { return props.selected ? "\n border-radius: 15px;\n background: ".concat(colors.cta, ";\n color: white;\n font-weight: bold;\n padding: 0 5px;\n ") : ''; });
|
|
6925
|
+
var DaysHeaderWrapper = styled(Row)(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n text-transform: uppercase;\n font-weight: 400;\n color: #ccc;\n font-size: 70%;\n padding: 0.75em 0 !important;\n border-bottom: 1px solid #eee;\n"], ["\n text-transform: uppercase;\n font-weight: 400;\n color: #ccc;\n font-size: 70%;\n padding: 0.75em 0 !important;\n border-bottom: 1px solid #eee;\n"])));
|
|
6806
6926
|
var templateObject_1$R;
|
|
6807
6927
|
|
|
6928
|
+
var StyledDayText = styled(Text)(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { return props.selected ? "\n border-radius: 15px;\n background: ".concat(colors.cta, ";\n color: white;\n font-weight: bold;\n padding: 0 5px;\n ") : ''; });
|
|
6929
|
+
var templateObject_1$S;
|
|
6930
|
+
|
|
6808
6931
|
var CalendarDaysHeader = function (_a) {
|
|
6809
6932
|
var currentMonth = _a.currentMonth, selectedDate = _a.selectedDate, weekend = _a.weekend;
|
|
6810
6933
|
var startDate = startOfWeek(currentMonth, { weekStartsOn: 1 });
|
|
@@ -6818,12 +6941,12 @@ var CalendarDaysHeader = function (_a) {
|
|
|
6818
6941
|
})));
|
|
6819
6942
|
};
|
|
6820
6943
|
|
|
6821
|
-
var CalendarWrapper = styled.div(templateObject_1$
|
|
6822
|
-
var templateObject_1$S;
|
|
6823
|
-
|
|
6824
|
-
var HeaderWrapper = styled(Row)(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n width: 100%;\n padding: 1.75em 0 !important;\n border-bottom: 1px solid #eee;\n background: #fff;\n font-weight: 700;\n font-size: 100%;\n"], ["\n width: 100%;\n padding: 1.75em 0 !important;\n border-bottom: 1px solid #eee;\n background: #fff;\n font-weight: 700;\n font-size: 100%;\n"])));
|
|
6944
|
+
var CalendarWrapper = styled.div(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n display: block;\n position: relative;\n width: 100%;\n background: #fff;\n .calendar-scroll {\n overflow-x: scroll;\n }\n .days-body-wrapper, .days-header-wrapper {\n min-width: 900px;\n }\n"], ["\n display: block;\n position: relative;\n width: 100%;\n background: #fff;\n .calendar-scroll {\n overflow-x: scroll;\n }\n .days-body-wrapper, .days-header-wrapper {\n min-width: 900px;\n }\n"])));
|
|
6825
6945
|
var templateObject_1$T;
|
|
6826
6946
|
|
|
6947
|
+
var HeaderWrapper = styled(Row)(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n width: 100%;\n padding: 1.75em 0 !important;\n border-bottom: 1px solid #eee;\n background: #fff;\n font-weight: 700;\n font-size: 100%;\n"], ["\n width: 100%;\n padding: 1.75em 0 !important;\n border-bottom: 1px solid #eee;\n background: #fff;\n font-weight: 700;\n font-size: 100%;\n"])));
|
|
6948
|
+
var templateObject_1$U;
|
|
6949
|
+
|
|
6827
6950
|
var DefaultCalendarFooter = function (_a) {
|
|
6828
6951
|
var currentWeek = _a.currentWeek;
|
|
6829
6952
|
return (React__default.createElement(HeaderWrapper, { middle: true },
|
|
@@ -6855,7 +6978,7 @@ var TasksCalendarDayBody = function (_a) {
|
|
|
6855
6978
|
React__default.createElement(CalendarTask, __assign({}, t, { date: undefined })))); })));
|
|
6856
6979
|
};
|
|
6857
6980
|
|
|
6858
|
-
var WeekNav = styled(Text)(templateObject_1$
|
|
6981
|
+
var WeekNav = styled(Text)(templateObject_1$V || (templateObject_1$V = __makeTemplateObject(["\n display: inline-block;\n padding: 0;\n"], ["\n display: inline-block;\n padding: 0;\n"])));
|
|
6859
6982
|
var CalendarIconDatePicker = React__default.forwardRef(function (_a, ref) {
|
|
6860
6983
|
var value = _a.value, onClick = _a.onClick;
|
|
6861
6984
|
return (React__default.createElement("span", { ref: ref, onClick: onClick },
|
|
@@ -6928,7 +7051,7 @@ var TasksCalendarHeader = function (_a) {
|
|
|
6928
7051
|
} }, "+ Add Task")
|
|
6929
7052
|
: null)));
|
|
6930
7053
|
};
|
|
6931
|
-
var templateObject_1$
|
|
7054
|
+
var templateObject_1$V;
|
|
6932
7055
|
|
|
6933
7056
|
var TasksCalendarFooter = function (_a) {
|
|
6934
7057
|
var currentWeek = _a.currentWeek, _b = _a.tasks, tasks = _b === void 0 ? [] : _b;
|
|
@@ -7280,7 +7403,7 @@ var scrollbarWidth = function () {
|
|
|
7280
7403
|
return scrollbarWidth;
|
|
7281
7404
|
};
|
|
7282
7405
|
|
|
7283
|
-
var SimpleWindowedTableStyles = styled.div(templateObject_1$
|
|
7406
|
+
var SimpleWindowedTableStyles = styled.div(templateObject_1$W || (templateObject_1$W = __makeTemplateObject(["\npadding: 1rem;\n\n.table-list-rows {\n width: 100% !important;\n\n ", "\n}\n\n.table {\n display: inline-block;\n border-spacing: 0;\n width: 100%;\n min-width: 100% !important;\n\n ", "\n\n .header.tr, .table-footer.tr {\n width: 100% !important;\n min-width: 100% !important;\n overflow-x: hidden;\n }\n\n .tr {\n :last-child {\n .td {\n border-bottom: 0;\n }\n }\n }\n\n .th {\n border-bottom: 2px solid ", ";\n\n div {\n display: inline-block;\n }\n }\n\n .td {\n border-bottom: 1px solid ", ";\n }\n\n /* set hover styles */\n ", "\n\n /* row selected => if selectedRowStyle === true then set background color else set given styles */\n ", "\n\n .th,\n .td {\n margin: 0;\n padding: 0.5rem;\n }\n}\n"], ["\npadding: 1rem;\n\n.table-list-rows {\n width: 100% !important;\n\n ", "\n}\n\n.table {\n display: inline-block;\n border-spacing: 0;\n width: 100%;\n min-width: 100% !important;\n\n ", "\n\n .header.tr, .table-footer.tr {\n width: 100% !important;\n min-width: 100% !important;\n overflow-x: hidden;\n }\n\n .tr {\n :last-child {\n .td {\n border-bottom: 0;\n }\n }\n }\n\n .th {\n border-bottom: 2px solid ", ";\n\n div {\n display: inline-block;\n }\n }\n\n .td {\n border-bottom: 1px solid ", ";\n }\n\n /* set hover styles */\n ", "\n\n /* row selected => if selectedRowStyle === true then set background color else set given styles */\n ", "\n\n .th,\n .td {\n margin: 0;\n padding: 0.5rem;\n }\n}\n"])), function (p) { return p.rowClickable ? "\n .tr {\n cursor: pointer;\n }\n " : ''; }, function (p) { return p.bordered ?
|
|
7284
7407
|
"border: ".concat(typeof p.bordered === 'string'
|
|
7285
7408
|
? p.bordered
|
|
7286
7409
|
: "1px solid ".concat(getThemeColor(p, 'tableBorder', '#edf2f5')), ";")
|
|
@@ -7370,7 +7493,64 @@ function SimpleWindowedTable(_a) {
|
|
|
7370
7493
|
React__default.createElement("div", __assign({}, getTableBodyProps()), rows.length === 0 && NoRowsFound ? React__default.createElement(NoRowsFound, null) : React__default.createElement(FixedSizeList, { height: height, itemCount: rows.length, itemSize: itemSize, width: totalColumnsWidth + scrollBarSize, className: "table-list-rows", outerRef: rowsRef, onScroll: onScroll, useIsScrolling: true }, RenderRow)),
|
|
7371
7494
|
!hideFooter ? React__default.createElement("div", __assign({}, tableFooterProps, { className: "table-footer-wrapper ".concat(tableFooterProps.className || '') }), footerGroups.map(function (footerGroup) { return (React__default.createElement("div", __assign({}, getHeaderGroupProps(footerGroup, true), { className: "table-footer tr", ref: footerRef }), footerGroup.headers.map(function (column) { return (React__default.createElement("div", __assign({}, getHeaderProps(column, true)), column.render("Footer"))); }))); })) : null));
|
|
7372
7495
|
}
|
|
7373
|
-
var templateObject_1$
|
|
7496
|
+
var templateObject_1$W;
|
|
7497
|
+
|
|
7498
|
+
var toggleSizes$1 = {
|
|
7499
|
+
small: {
|
|
7500
|
+
'font-family': fontStyles.button.small.fontFamily,
|
|
7501
|
+
'font-size': fontStyles.button.small.fontSize,
|
|
7502
|
+
'line-height': fontStyles.button.small.lineHeight,
|
|
7503
|
+
padding: '8px 12px',
|
|
7504
|
+
borderRadius: '4px',
|
|
7505
|
+
height: '15px',
|
|
7506
|
+
},
|
|
7507
|
+
medium: {
|
|
7508
|
+
'font-family': fontStyles.button.medium.fontFamily,
|
|
7509
|
+
'font-size': fontStyles.button.medium.fontSize,
|
|
7510
|
+
'line-height': fontStyles.button.medium.lineHeight,
|
|
7511
|
+
padding: '8px 16px',
|
|
7512
|
+
borderRadius: '4px',
|
|
7513
|
+
height: '20px',
|
|
7514
|
+
},
|
|
7515
|
+
large: {
|
|
7516
|
+
'font-family': fontStyles.button.large.fontFamily,
|
|
7517
|
+
'font-size': fontStyles.button.large.fontSize,
|
|
7518
|
+
'line-height': fontStyles.button.large.lineHeight,
|
|
7519
|
+
padding: '12px 24px',
|
|
7520
|
+
borderRadius: '4px',
|
|
7521
|
+
height: '35px',
|
|
7522
|
+
}
|
|
7523
|
+
};
|
|
7524
|
+
var createAnimationLeftStyle = function (p) {
|
|
7525
|
+
if (p.stretch) {
|
|
7526
|
+
return "calc(100% * 1.5px)";
|
|
7527
|
+
}
|
|
7528
|
+
return "".concat(stripUnit(toggleSizes$1[p.size || 'medium'].height) * 1.5, "px");
|
|
7529
|
+
};
|
|
7530
|
+
var ContainerStyled = styled(Csku)(templateObject_1$X || (templateObject_1$X = __makeTemplateObject(["\n &&& {\n position: relative;\n background: ", ";\n width: ", ";\n padding: 0.35rem;\n border-radius: 1.8rem;\n cursor: pointer;\n transition: background .3s;\n\n @keyframes switch-slide-to-right {\n from { left: 0; }\n to {\n left: ", ";\n }\n }\n \n @keyframes switch-slide-to-left {\n from {\n left: ", ";\n }\n to { left: 0; }\n }\n }"], ["\n &&& {\n position: relative;\n background: ", ";\n width: ", ";\n padding: 0.35rem;\n border-radius: 1.8rem;\n cursor: pointer;\n transition: background .3s;\n\n @keyframes switch-slide-to-right {\n from { left: 0; }\n to {\n left: ", ";\n }\n }\n \n @keyframes switch-slide-to-left {\n from {\n left: ", ";\n }\n to { left: 0; }\n }\n }"])), function (p) { return p.selected
|
|
7531
|
+
? getThemeColor(p, 'teal.main', 'var(--color-primary1-main)')
|
|
7532
|
+
: getThemeColor(p, 'teal.20', colors.teal['20']); }, function (p) { return p.stretch
|
|
7533
|
+
? '100%'
|
|
7534
|
+
: "".concat(stripUnit(toggleSizes$1[p.size || 'medium'].height) * 2.5, "px"); }, createAnimationLeftStyle, createAnimationLeftStyle);
|
|
7535
|
+
var ToggleSwitchDotStyled = styled(Csku)(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n &&& {\n position: relative;\n background: #FFFFFF;\n width: ", ";\n height: ", ";\n border-radius: 50%;\n\n animation: ", ";\n }\n"], ["\n &&& {\n position: relative;\n background: #FFFFFF;\n width: ", ";\n height: ", ";\n border-radius: 50%;\n\n animation: ", ";\n }\n"])), function (p) { return toggleSizes$1[p.size || 'medium'].height; }, function (p) { return toggleSizes$1[p.size || 'medium'].height; }, function (p) { return p.selected
|
|
7536
|
+
? 'switch-slide-to-right .3s forwards 1'
|
|
7537
|
+
: 'switch-slide-to-left .3s forwards 1'; });
|
|
7538
|
+
var ToggleSwitchStyled = function (_a) {
|
|
7539
|
+
var onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.selected, selected = _c === void 0 ? false : _c, _d = _a.stretch, stretch = _d === void 0 ? false : _d, _e = _a.style, style = _e === void 0 ? {} : _e, props = __rest(_a, ["onClick", "size", "selected", "stretch", "style"]);
|
|
7540
|
+
return (React__default.createElement(ContainerStyled, __assign({ selected: selected, stretch: stretch, size: size, onClick: onClick, style: style }, props),
|
|
7541
|
+
React__default.createElement(ToggleSwitchDotStyled, { selected: selected, stretch: stretch, size: size })));
|
|
7542
|
+
};
|
|
7543
|
+
var ToggleSwitch = function (_a) {
|
|
7544
|
+
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.initialSelected, initialSelected = _c === void 0 ? false : _c, _d = _a.stretch, stretch = _d === void 0 ? false : _d, onClick = _a.onClick, props = __rest(_a, ["size", "initialSelected", "stretch", "onClick"]);
|
|
7545
|
+
var _e = useState(initialSelected), state = _e[0], setState = _e[1];
|
|
7546
|
+
var handleToggle = function () {
|
|
7547
|
+
var value = !state;
|
|
7548
|
+
setState(value);
|
|
7549
|
+
onClick && onClick(value);
|
|
7550
|
+
};
|
|
7551
|
+
return (React__default.createElement(ToggleSwitchStyled, __assign({}, props, { selected: state, stretch: stretch, size: size, onClick: handleToggle })));
|
|
7552
|
+
};
|
|
7553
|
+
var templateObject_1$X, templateObject_2$z;
|
|
7374
7554
|
|
|
7375
|
-
export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, SKUAsyncSelect as AsyncSelect, Avatar, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, CollaborateIcon, CollapseStyled, CollapseWrapper, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelTitle, CollapsiblePanels, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CustomDateInput, Datepicker, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DoubleArrowIcon, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropDownContent, Dropdown, DropdownItem, Dropzoned, DropzonedPreviews, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconDoc, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number$1 as Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, ReceiptLongIcon, ResponsiveTable, Row, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyles, ShopIcon, ShoppingCartIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableStyles, SizerCss, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TD, TH, THSorted, THead, TR, Tab, TabBar, Table, TableIcon, Tabs, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, TrashIcon, UploadIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes$1 as sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
|
|
7555
|
+
export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, SKUAsyncSelect as AsyncSelect, Avatar, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, ChevronPopup, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, CollaborateIcon, CollapseStyled, CollapseWrapper, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelTitle, CollapsiblePanels, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmAlertPopup, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CustomDateInput, Datepicker, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DoubleArrowIcon, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropDownContent, Dropdown, DropdownItem, Dropzoned, DropzonedPreviews, DropzonedSimple, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconDoc, ImageIcon, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number$1 as Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, ReceiptLongIcon, ResponsiveTable, Row, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyles, ShopIcon, ShoppingCartIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableStyles, SizerCss, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TD, TH, THSorted, THead, TR, Tab, TabBar, Table, TableIcon, Tabs, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, ToggleSwitch, ToggleSwitchStyled, TrashIcon, UploadIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes$1 as sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
|
|
7376
7556
|
//# sourceMappingURL=index.es.js.map
|