@luminati-io/uikit 6.3.125 → 6.3.127
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.js +24 -24
- package/dist/index.js.map +1 -1
- package/dist/umd/uikit.development.js +81 -55
- package/dist/umd/uikit.development.js.map +1 -1
- package/dist/umd/uikit.production.min.js +24 -24
- package/package.json +1 -1
|
@@ -44113,11 +44113,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44113
44113
|
|
|
44114
44114
|
/*jslint react:true*/
|
|
44115
44115
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
44116
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
44117
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
44118
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
44119
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
44120
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
44121
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
44116
44122
|
|
|
44117
44123
|
|
|
44118
44124
|
|
|
44119
44125
|
|
|
44120
44126
|
|
|
44127
|
+
var useElementBorderBoxHeight = function useElementBorderBoxHeight() {
|
|
44128
|
+
var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
|
44129
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
|
|
44130
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
44131
|
+
height = _useState2[0],
|
|
44132
|
+
setHeight = _useState2[1];
|
|
44133
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
|
44134
|
+
var el = ref.current;
|
|
44135
|
+
if (!el) return;
|
|
44136
|
+
var observer = new ResizeObserver(function (entries) {
|
|
44137
|
+
setHeight(entries[0].borderBoxSize[0].blockSize);
|
|
44138
|
+
});
|
|
44139
|
+
observer.observe(el);
|
|
44140
|
+
return function () {
|
|
44141
|
+
return observer.disconnect();
|
|
44142
|
+
};
|
|
44143
|
+
}, []);
|
|
44144
|
+
return [ref, height];
|
|
44145
|
+
};
|
|
44121
44146
|
var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
44122
44147
|
var className = props.className,
|
|
44123
44148
|
classNamePrefix = props.classNamePrefix,
|
|
@@ -44127,6 +44152,7 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
|
44127
44152
|
maxHeight = props.maxHeight,
|
|
44128
44153
|
_props$max_height = props.max_height,
|
|
44129
44154
|
max_height = _props$max_height === void 0 ? '500px' : _props$max_height,
|
|
44155
|
+
maxTotalHeight = props.maxTotalHeight,
|
|
44130
44156
|
lineNumbers = props.lineNumbers,
|
|
44131
44157
|
copyButton = props.copyButton,
|
|
44132
44158
|
onCopy = props.onCopy,
|
|
@@ -44136,6 +44162,11 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
|
44136
44162
|
wrap = props.wrap,
|
|
44137
44163
|
_props$copyButtonPlac = props.copyButtonPlacement,
|
|
44138
44164
|
copyButtonPlacement = _props$copyButtonPlac === void 0 ? 'top' : _props$copyButtonPlac;
|
|
44165
|
+
var _useElementBorderBoxH = useElementBorderBoxHeight(),
|
|
44166
|
+
_useElementBorderBoxH2 = _slicedToArray(_useElementBorderBoxH, 2),
|
|
44167
|
+
headerRef = _useElementBorderBoxH2[0],
|
|
44168
|
+
headerHeight = _useElementBorderBoxH2[1];
|
|
44169
|
+
var snippetMaxHeight = maxTotalHeight != null ? Math.max(0, maxTotalHeight - headerHeight) : maxHeight || max_height;
|
|
44139
44170
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockWrapper, _extends({
|
|
44140
44171
|
ref: ref,
|
|
44141
44172
|
"data-testid": "code_block"
|
|
@@ -44144,6 +44175,7 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
|
44144
44175
|
wrapper: true
|
|
44145
44176
|
}, className)
|
|
44146
44177
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockHeader, {
|
|
44178
|
+
ref: headerRef,
|
|
44147
44179
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
|
|
44148
44180
|
header: true
|
|
44149
44181
|
}, variant)
|
|
@@ -44151,7 +44183,7 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
|
44151
44183
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.cn)(classNamePrefix, {
|
|
44152
44184
|
snippet: true
|
|
44153
44185
|
}),
|
|
44154
|
-
maxHeight:
|
|
44186
|
+
maxHeight: snippetMaxHeight,
|
|
44155
44187
|
lang: lang,
|
|
44156
44188
|
code: code,
|
|
44157
44189
|
variant: variant,
|
|
@@ -44180,7 +44212,8 @@ CodeBlock.propTypes = {
|
|
|
44180
44212
|
loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
44181
44213
|
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
44182
44214
|
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
44183
|
-
copyButtonPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'bottom'])
|
|
44215
|
+
copyButtonPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'bottom']),
|
|
44216
|
+
maxTotalHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
44184
44217
|
};
|
|
44185
44218
|
var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
|
44186
44219
|
displayName: "CodeBlockWrapper",
|
|
@@ -47521,23 +47554,6 @@ var PickerPopover = function PickerPopover(_ref) {
|
|
|
47521
47554
|
internalMonth = _useState8[0],
|
|
47522
47555
|
setInternalMonth = _useState8[1];
|
|
47523
47556
|
var selectedYear = selected instanceof Date ? selected.getFullYear() : selected === null || selected === void 0 || (_selected$from = selected.from) === null || _selected$from === void 0 || (_selected$from$getFul = _selected$from.getFullYear) === null || _selected$from$getFul === void 0 ? void 0 : _selected$from$getFul.call(_selected$from);
|
|
47524
|
-
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
|
47525
|
-
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
|
47526
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
47527
|
-
lockedSize = _useState10[0],
|
|
47528
|
-
setLockedSize = _useState10[1];
|
|
47529
|
-
var onToggleYearPicker = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
|
47530
|
-
setShowYearPicker(function (prev) {
|
|
47531
|
-
if (!prev && wrapperRef.current) {
|
|
47532
|
-
var rect = wrapperRef.current.getBoundingClientRect();
|
|
47533
|
-
setLockedSize({
|
|
47534
|
-
width: rect.width,
|
|
47535
|
-
height: rect.height
|
|
47536
|
-
});
|
|
47537
|
-
} else setLockedSize(null);
|
|
47538
|
-
return !prev;
|
|
47539
|
-
});
|
|
47540
|
-
}, []);
|
|
47541
47557
|
var onYearSelect = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (year) {
|
|
47542
47558
|
var newMonth = new Date(internalMonth);
|
|
47543
47559
|
newMonth.setFullYear(year);
|
|
@@ -47547,7 +47563,6 @@ var PickerPopover = function PickerPopover(_ref) {
|
|
|
47547
47563
|
onChange(clampToMonthDay(selected.getDate(), year, newMonth.getMonth()));
|
|
47548
47564
|
}
|
|
47549
47565
|
setShowYearPicker(false);
|
|
47550
|
-
setLockedSize(null);
|
|
47551
47566
|
}, [internalMonth, onMonthChange, mode, selected, onChange]);
|
|
47552
47567
|
var onSelect = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (_, day, modifiers) {
|
|
47553
47568
|
if (modifiers.disabled) return;
|
|
@@ -47586,7 +47601,9 @@ var PickerPopover = function PickerPopover(_ref) {
|
|
|
47586
47601
|
},
|
|
47587
47602
|
onClick: function onClick(e) {
|
|
47588
47603
|
e.stopPropagation();
|
|
47589
|
-
|
|
47604
|
+
setShowYearPicker(function (prev) {
|
|
47605
|
+
return !prev;
|
|
47606
|
+
});
|
|
47590
47607
|
}
|
|
47591
47608
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, captionProps.children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
|
47592
47609
|
name: "ChevronDown",
|
|
@@ -47595,30 +47612,35 @@ var PickerPopover = function PickerPopover(_ref) {
|
|
|
47595
47612
|
}));
|
|
47596
47613
|
}
|
|
47597
47614
|
});
|
|
47598
|
-
}, [
|
|
47615
|
+
}, []);
|
|
47599
47616
|
var render = typeof renderPopover == 'function' ? renderPopover : function (_ref2) {
|
|
47600
47617
|
var picker = _ref2.picker;
|
|
47601
47618
|
return picker;
|
|
47602
47619
|
};
|
|
47603
|
-
var wrapperStyle = lockedSize ? {
|
|
47604
|
-
width: lockedSize.width,
|
|
47605
|
-
height: lockedSize.height
|
|
47606
|
-
} : undefined;
|
|
47607
47620
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DayPickerWrapper, {
|
|
47608
|
-
ref: wrapperRef,
|
|
47609
|
-
style: wrapperStyle,
|
|
47610
47621
|
onMouseDown: function onMouseDown(e) {
|
|
47611
47622
|
// prevents loss of input focus
|
|
47612
47623
|
e.preventDefault();
|
|
47613
47624
|
}
|
|
47614
47625
|
}, render({
|
|
47615
|
-
picker:
|
|
47626
|
+
picker: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PickerContainer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledDayPicker, _extends({}, rest, pickerProps, {
|
|
47627
|
+
$hidden: showYearPicker,
|
|
47628
|
+
captionLayout: captionLayout,
|
|
47629
|
+
month: internalMonth,
|
|
47630
|
+
onMonthChange: _onMonthChange,
|
|
47631
|
+
onSelect: onSelect,
|
|
47632
|
+
mode: mode,
|
|
47633
|
+
selected: selected,
|
|
47634
|
+
components: pickerComponents
|
|
47635
|
+
})), showYearPicker && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(YearPickerOverlay, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CaptionToggleWrapper, {
|
|
47616
47636
|
onMouseDown: function onMouseDown(e) {
|
|
47617
47637
|
return e.stopPropagation();
|
|
47618
47638
|
},
|
|
47619
47639
|
onClick: function onClick(e) {
|
|
47620
47640
|
e.stopPropagation();
|
|
47621
|
-
|
|
47641
|
+
setShowYearPicker(function (prev) {
|
|
47642
|
+
return !prev;
|
|
47643
|
+
});
|
|
47622
47644
|
}
|
|
47623
47645
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, (0,date_fns_format__WEBPACK_IMPORTED_MODULE_13__["default"])(internalMonth, 'MMMM yyyy')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
|
47624
47646
|
name: "ChevronUp",
|
|
@@ -47628,15 +47650,7 @@ var PickerPopover = function PickerPopover(_ref) {
|
|
|
47628
47650
|
selectedYear: selectedYear,
|
|
47629
47651
|
currentYear: currentYear,
|
|
47630
47652
|
onYearSelect: onYearSelect
|
|
47631
|
-
}))
|
|
47632
|
-
captionLayout: captionLayout,
|
|
47633
|
-
month: internalMonth,
|
|
47634
|
-
onMonthChange: _onMonthChange,
|
|
47635
|
-
onSelect: onSelect,
|
|
47636
|
-
mode: mode,
|
|
47637
|
-
selected: selected,
|
|
47638
|
-
components: pickerComponents
|
|
47639
|
-
})),
|
|
47653
|
+
}))),
|
|
47640
47654
|
hidePopover: hidePopover,
|
|
47641
47655
|
// XXX legacy api
|
|
47642
47656
|
popover: {
|
|
@@ -47658,9 +47672,19 @@ var DayPickerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().
|
|
|
47658
47672
|
var spacing = _ref3.spacing;
|
|
47659
47673
|
return spacing['02'];
|
|
47660
47674
|
}));
|
|
47675
|
+
var PickerContainer = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
47676
|
+
displayName: "PickerContainer",
|
|
47677
|
+
componentId: "sc-1gurvxq-1"
|
|
47678
|
+
})(["position:relative;"]);
|
|
47679
|
+
var YearPickerOverlay = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
47680
|
+
displayName: "YearPickerOverlay",
|
|
47681
|
+
componentId: "sc-1gurvxq-2"
|
|
47682
|
+
})(["position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;background-color:", ";border-radius:4px;"], theme(function (t) {
|
|
47683
|
+
return t.color.bg;
|
|
47684
|
+
}));
|
|
47661
47685
|
var StyledDropdown = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_dropdown__WEBPACK_IMPORTED_MODULE_10__.Dropdown).withConfig({
|
|
47662
47686
|
displayName: "StyledDropdown",
|
|
47663
|
-
componentId: "sc-1gurvxq-
|
|
47687
|
+
componentId: "sc-1gurvxq-3"
|
|
47664
47688
|
})(["display:inline-flex;"]);
|
|
47665
47689
|
var CustomSelectDropdown = function CustomSelectDropdown(_ref4) {
|
|
47666
47690
|
var options = _ref4.options,
|
|
@@ -47798,7 +47822,7 @@ var YearPickerGrid = function YearPickerGrid(_ref8) {
|
|
|
47798
47822
|
};
|
|
47799
47823
|
var YearGridScroller = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
47800
47824
|
displayName: "YearGridScroller",
|
|
47801
|
-
componentId: "sc-1gurvxq-
|
|
47825
|
+
componentId: "sc-1gurvxq-4"
|
|
47802
47826
|
})(["overflow-y:auto;flex:1;width:100%;border-top:1px solid ", ";", ""], theme(function (t) {
|
|
47803
47827
|
return t.color.border_secondary;
|
|
47804
47828
|
}), function (p) {
|
|
@@ -47806,11 +47830,11 @@ var YearGridScroller = styled_components__WEBPACK_IMPORTED_MODULE_3___default().
|
|
|
47806
47830
|
});
|
|
47807
47831
|
var YearGrid = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
47808
47832
|
displayName: "YearGrid",
|
|
47809
|
-
componentId: "sc-1gurvxq-
|
|
47833
|
+
componentId: "sc-1gurvxq-5"
|
|
47810
47834
|
})(["display:grid;grid-template-columns:repeat(4,1fr);gap:12px;"]);
|
|
47811
47835
|
var YearCell = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
|
|
47812
47836
|
displayName: "YearCell",
|
|
47813
|
-
componentId: "sc-1gurvxq-
|
|
47837
|
+
componentId: "sc-1gurvxq-6"
|
|
47814
47838
|
})(["display:flex;align-items:center;justify-content:center;height:32px;border-radius:4px;cursor:pointer;font-family:", ";font-weight:", ";font-size:", ";color:", ";background-color:", ";border:1px solid ", ";&:hover{background-color:", ";border-color:", ";color:", ";}"], theme(function (t) {
|
|
47815
47839
|
return t.font_family.sans;
|
|
47816
47840
|
}), theme(function (t) {
|
|
@@ -47832,7 +47856,7 @@ var YearCell = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.w
|
|
|
47832
47856
|
});
|
|
47833
47857
|
var CaptionToggleWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
|
|
47834
47858
|
displayName: "CaptionToggleWrapper",
|
|
47835
|
-
componentId: "sc-1gurvxq-
|
|
47859
|
+
componentId: "sc-1gurvxq-7"
|
|
47836
47860
|
})(["height:36px;display:inline-flex;align-items:center;justify-content:center;gap:4px;background:none;border:none;cursor:pointer;padding:0;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";"], theme(function (t) {
|
|
47837
47861
|
return t.font_family.sans;
|
|
47838
47862
|
}), theme(function (t) {
|
|
@@ -47844,10 +47868,6 @@ var CaptionToggleWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___defaul
|
|
|
47844
47868
|
}), theme(function (t) {
|
|
47845
47869
|
return t.color.text_secondary;
|
|
47846
47870
|
}));
|
|
47847
|
-
var YearPickerContainer = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
47848
|
-
displayName: "YearPickerContainer",
|
|
47849
|
-
componentId: "sc-1gurvxq-6"
|
|
47850
|
-
})(["display:flex;flex-direction:column;align-items:center;height:100%;box-sizing:border-box;"]);
|
|
47851
47871
|
var StyledDayPicker = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(react_day_picker__WEBPACK_IMPORTED_MODULE_2__.DayPicker).attrs(function (props) {
|
|
47852
47872
|
return {
|
|
47853
47873
|
components: props.components || defaultPickerComponents,
|
|
@@ -47855,8 +47875,10 @@ var StyledDayPicker = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(r
|
|
|
47855
47875
|
};
|
|
47856
47876
|
}).withConfig({
|
|
47857
47877
|
displayName: "StyledDayPicker",
|
|
47858
|
-
componentId: "sc-1gurvxq-
|
|
47859
|
-
})([".rdp-months{position:relative;display:flex;}.rdp-month{padding:0 ", " ", ";&:nth-of-type(2){border-left:1px solid ", ";}}.rdp-month_caption{box-sizing:border-box;height:36px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;.rdp-caption_label{width:100%;text-align:center;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-dropdowns{display:flex;align-items:center;justify-content:center;gap:8px;font-family:'Inter',sans-serif;font-style:normal;font-weight:", ";font-size:", ";}}.rdp-nav{position:absolute;top:8px;right:12px;left:12px;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;pointer-events:none;.rdp-button_previous,.rdp-button_next{pointer-events:auto;display:flex;align-items:center;justify-content:center;padding:0;border:0 none;border-radius:4px;cursor:pointer;background-color:", ";.rdp-chevron{width:20px;height:20px;fill:", ";}&:hover:not(:disabled){background-color:", ";.rdp-chevron{fill:", ";}}&:active:not(:disabled){background-color:", ";.rdp-chevron{fill:", ";}}&:disabled{.rdp-chevron{fill:", ";}cursor:not-allowed;}}}.rdp-month_grid{border-collapse:collapse;border:none;border-spacing:0;}.rdp-weekday{box-sizing:border-box;min-width:32px;max-width:32px;height:32px;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-today .rdp-day_button{color:", ";font-weight:", ";}.rdp-selected .rdp-day_button{background-color:", ";border:1px solid ", ";color:", ";}.rdp-range_middle{.rdp-day_button{background-color:", ";border:1px solid ", ";color:", ";}&.rdp-today .rdp-day_button{color:", ";}}.rdp-day_button{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:4px;border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){background-color:", ";border:1px solid ", ";color:", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-range_start:not(.rdp-range_end) .rdp-day_button,.rdp-range_middle .rdp-day_button{border-top-right-radius:0;border-bottom-right-radius:0;}.rdp-range_end:not(.rdp-range_start) .rdp-day_button,.rdp-range_middle .rdp-day_button{border-top-left-radius:0;border-bottom-left-radius:0;}.rdp-day{padding:0;}"],
|
|
47878
|
+
componentId: "sc-1gurvxq-8"
|
|
47879
|
+
})(["", " .rdp-months{position:relative;display:flex;}.rdp-month{padding:0 ", " ", ";&:nth-of-type(2){border-left:1px solid ", ";}}.rdp-month_caption{box-sizing:border-box;height:36px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;.rdp-caption_label{width:100%;text-align:center;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-dropdowns{display:flex;align-items:center;justify-content:center;gap:8px;font-family:'Inter',sans-serif;font-style:normal;font-weight:", ";font-size:", ";}}.rdp-nav{position:absolute;top:8px;right:12px;left:12px;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;pointer-events:none;.rdp-button_previous,.rdp-button_next{pointer-events:auto;display:flex;align-items:center;justify-content:center;padding:0;border:0 none;border-radius:4px;cursor:pointer;background-color:", ";.rdp-chevron{width:20px;height:20px;fill:", ";}&:hover:not(:disabled){background-color:", ";.rdp-chevron{fill:", ";}}&:active:not(:disabled){background-color:", ";.rdp-chevron{fill:", ";}}&:disabled{.rdp-chevron{fill:", ";}cursor:not-allowed;}}}.rdp-month_grid{border-collapse:collapse;border:none;border-spacing:0;}.rdp-weekday{box-sizing:border-box;min-width:32px;max-width:32px;height:32px;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-today .rdp-day_button{color:", ";font-weight:", ";}.rdp-selected .rdp-day_button{background-color:", ";border:1px solid ", ";color:", ";}.rdp-range_middle{.rdp-day_button{background-color:", ";border:1px solid ", ";color:", ";}&.rdp-today .rdp-day_button{color:", ";}}.rdp-day_button{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:4px;border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){background-color:", ";border:1px solid ", ";color:", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-range_start:not(.rdp-range_end) .rdp-day_button,.rdp-range_middle .rdp-day_button{border-top-right-radius:0;border-bottom-right-radius:0;}.rdp-range_end:not(.rdp-range_start) .rdp-day_button,.rdp-range_middle .rdp-day_button{border-top-left-radius:0;border-bottom-left-radius:0;}.rdp-day{padding:0;}"], function (p) {
|
|
47880
|
+
return p.$hidden && 'visibility: hidden;';
|
|
47881
|
+
}, theme(function (t) {
|
|
47860
47882
|
return t.spacing['04'];
|
|
47861
47883
|
}), theme(function (t) {
|
|
47862
47884
|
return t.spacing['03'];
|
|
@@ -55133,7 +55155,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55133
55155
|
|
|
55134
55156
|
/*jslint react:true*/
|
|
55135
55157
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
55136
|
-
var _excluded = ["className", "classNamePrefix", "onClick", "hotKey", "size"];
|
|
55158
|
+
var _excluded = ["className", "classNamePrefix", "onClick", "hotKey", "size", "disabled"];
|
|
55137
55159
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55138
55160
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
55139
55161
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -55156,6 +55178,7 @@ var ModalButton = function ModalButton(_ref) {
|
|
|
55156
55178
|
hotKey = _ref.hotKey,
|
|
55157
55179
|
_ref$size = _ref.size,
|
|
55158
55180
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
55181
|
+
disabled = _ref.disabled,
|
|
55159
55182
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
55160
55183
|
var hotKeyIcon = getHotKeyIcon(hotKey);
|
|
55161
55184
|
var useHotKeyIcon = typeof rest.icon == 'undefined' && typeof hotKeyIcon != 'undefined';
|
|
@@ -55167,21 +55190,24 @@ var ModalButton = function ModalButton(_ref) {
|
|
|
55167
55190
|
if (!hotKey) return;
|
|
55168
55191
|
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.blur();
|
|
55169
55192
|
var onKeydown = function onKeydown(e) {
|
|
55170
|
-
|
|
55171
|
-
|
|
55193
|
+
if (e.key && e.key.toLowerCase() == hotKey.toLowerCase() && !disabled) {
|
|
55194
|
+
var _onClickRef$current;
|
|
55195
|
+
(_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 || _onClickRef$current.call(onClickRef, e);
|
|
55196
|
+
}
|
|
55172
55197
|
};
|
|
55173
55198
|
window.addEventListener('keydown', onKeydown);
|
|
55174
55199
|
return function () {
|
|
55175
55200
|
return window.removeEventListener('keydown', onKeydown);
|
|
55176
55201
|
};
|
|
55177
|
-
}, [hotKey]);
|
|
55202
|
+
}, [hotKey, disabled]);
|
|
55178
55203
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledModalButton, _extends({
|
|
55179
55204
|
onClick: onClick,
|
|
55180
55205
|
size: size,
|
|
55181
55206
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.cn)(classNamePrefix, {
|
|
55182
55207
|
'-with_hot_key': useHotKeyIcon
|
|
55183
55208
|
}, className),
|
|
55184
|
-
classNamePrefix: classNamePrefix
|
|
55209
|
+
classNamePrefix: classNamePrefix,
|
|
55210
|
+
disabled: disabled
|
|
55185
55211
|
}, rest, {
|
|
55186
55212
|
iconPlacement: iconPlacement,
|
|
55187
55213
|
icon: icon,
|