@darajs/core 1.9.1 → 1.9.2
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.
|
Binary file
|
|
@@ -15556,11 +15556,40 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
15556
15556
|
function objectWithKey(key, value) {
|
|
15557
15557
|
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$5({}, key, value) : {};
|
|
15558
15558
|
}
|
|
15559
|
+
var defaultProps$5 = {
|
|
15560
|
+
border: false,
|
|
15561
|
+
className: "",
|
|
15562
|
+
mask: null,
|
|
15563
|
+
maskId: null,
|
|
15564
|
+
fixedWidth: false,
|
|
15565
|
+
inverse: false,
|
|
15566
|
+
flip: false,
|
|
15567
|
+
icon: null,
|
|
15568
|
+
listItem: false,
|
|
15569
|
+
pull: null,
|
|
15570
|
+
pulse: false,
|
|
15571
|
+
rotation: null,
|
|
15572
|
+
size: null,
|
|
15573
|
+
spin: false,
|
|
15574
|
+
spinPulse: false,
|
|
15575
|
+
spinReverse: false,
|
|
15576
|
+
beat: false,
|
|
15577
|
+
fade: false,
|
|
15578
|
+
beatFade: false,
|
|
15579
|
+
bounce: false,
|
|
15580
|
+
shake: false,
|
|
15581
|
+
symbol: false,
|
|
15582
|
+
title: "",
|
|
15583
|
+
titleId: null,
|
|
15584
|
+
transform: null,
|
|
15585
|
+
swapOpacity: false
|
|
15586
|
+
};
|
|
15559
15587
|
var FontAwesomeIcon = /* @__PURE__ */ React__default.default.forwardRef(function(props, ref) {
|
|
15560
|
-
var
|
|
15588
|
+
var allProps = _objectSpread2$1(_objectSpread2$1({}, defaultProps$5), props);
|
|
15589
|
+
var iconArgs = allProps.icon, maskArgs = allProps.mask, symbol = allProps.symbol, className = allProps.className, title = allProps.title, titleId = allProps.titleId, maskId = allProps.maskId;
|
|
15561
15590
|
var iconLookup = normalizeIconArgs(iconArgs);
|
|
15562
|
-
var classes = objectWithKey("classes", [].concat(_toConsumableArray$2(classList(
|
|
15563
|
-
var transform = objectWithKey("transform", typeof
|
|
15591
|
+
var classes = objectWithKey("classes", [].concat(_toConsumableArray$2(classList(allProps)), _toConsumableArray$2(className.split(" "))));
|
|
15592
|
+
var transform = objectWithKey("transform", typeof allProps.transform === "string" ? parse$1$1.transform(allProps.transform) : allProps.transform);
|
|
15564
15593
|
var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
|
|
15565
15594
|
var renderedIcon = icon(iconLookup, _objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, classes), transform), mask), {}, {
|
|
15566
15595
|
symbol,
|
|
@@ -15576,9 +15605,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
15576
15605
|
var extraProps = {
|
|
15577
15606
|
ref
|
|
15578
15607
|
};
|
|
15579
|
-
Object.keys(
|
|
15580
|
-
if (!
|
|
15581
|
-
extraProps[key] =
|
|
15608
|
+
Object.keys(allProps).forEach(function(key) {
|
|
15609
|
+
if (!defaultProps$5.hasOwnProperty(key)) {
|
|
15610
|
+
extraProps[key] = allProps[key];
|
|
15582
15611
|
}
|
|
15583
15612
|
});
|
|
15584
15613
|
return convertCurry(abstract[0], extraProps);
|
|
@@ -15613,34 +15642,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
15613
15642
|
transform: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.object]),
|
|
15614
15643
|
swapOpacity: propTypes.exports.bool
|
|
15615
15644
|
};
|
|
15616
|
-
FontAwesomeIcon.defaultProps = {
|
|
15617
|
-
border: false,
|
|
15618
|
-
className: "",
|
|
15619
|
-
mask: null,
|
|
15620
|
-
maskId: null,
|
|
15621
|
-
fixedWidth: false,
|
|
15622
|
-
inverse: false,
|
|
15623
|
-
flip: false,
|
|
15624
|
-
icon: null,
|
|
15625
|
-
listItem: false,
|
|
15626
|
-
pull: null,
|
|
15627
|
-
pulse: false,
|
|
15628
|
-
rotation: null,
|
|
15629
|
-
size: null,
|
|
15630
|
-
spin: false,
|
|
15631
|
-
spinPulse: false,
|
|
15632
|
-
spinReverse: false,
|
|
15633
|
-
beat: false,
|
|
15634
|
-
fade: false,
|
|
15635
|
-
beatFade: false,
|
|
15636
|
-
bounce: false,
|
|
15637
|
-
shake: false,
|
|
15638
|
-
symbol: false,
|
|
15639
|
-
title: "",
|
|
15640
|
-
titleId: null,
|
|
15641
|
-
transform: null,
|
|
15642
|
-
swapOpacity: false
|
|
15643
|
-
};
|
|
15644
15645
|
var convertCurry = convert.bind(null, React__default.default.createElement);
|
|
15645
15646
|
var Icon$3 = function(e3) {
|
|
15646
15647
|
var t2 = {};
|
|
@@ -18497,16 +18498,16 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18497
18498
|
widthSide = side;
|
|
18498
18499
|
heightSide = alignment === "end" ? "top" : "bottom";
|
|
18499
18500
|
}
|
|
18500
|
-
const
|
|
18501
|
-
const
|
|
18501
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
18502
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
18503
|
+
const overflowAvailableHeight = min$2(height - overflow[heightSide], maximumClippingHeight);
|
|
18504
|
+
const overflowAvailableWidth = min$2(width - overflow[widthSide], maximumClippingWidth);
|
|
18502
18505
|
const noShift = !state.middlewareData.shift;
|
|
18503
18506
|
let availableHeight = overflowAvailableHeight;
|
|
18504
18507
|
let availableWidth = overflowAvailableWidth;
|
|
18505
18508
|
if (isYAxis) {
|
|
18506
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
18507
18509
|
availableWidth = alignment || noShift ? min$2(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
18508
18510
|
} else {
|
|
18509
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
18510
18511
|
availableHeight = alignment || noShift ? min$2(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
18511
18512
|
}
|
|
18512
18513
|
if (noShift && !alignment) {
|
|
@@ -18655,10 +18656,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18655
18656
|
});
|
|
18656
18657
|
}
|
|
18657
18658
|
const topLayerSelectors = [":popover-open", ":modal"];
|
|
18658
|
-
function isTopLayer(
|
|
18659
|
+
function isTopLayer(element) {
|
|
18659
18660
|
return topLayerSelectors.some((selector2) => {
|
|
18660
18661
|
try {
|
|
18661
|
-
return
|
|
18662
|
+
return element.matches(selector2);
|
|
18662
18663
|
} catch (e3) {
|
|
18663
18664
|
return false;
|
|
18664
18665
|
}
|
|
@@ -18824,7 +18825,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18824
18825
|
rootBoundary,
|
|
18825
18826
|
strategy
|
|
18826
18827
|
} = _ref2;
|
|
18827
|
-
const elementClippingAncestors = boundary === "clippingAncestors" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
18828
|
+
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
18828
18829
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
18829
18830
|
const firstClippingAncestor = clippingAncestors[0];
|
|
18830
18831
|
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
@@ -18883,6 +18884,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18883
18884
|
height: rect.height
|
|
18884
18885
|
};
|
|
18885
18886
|
}
|
|
18887
|
+
function isStaticPositioned(element) {
|
|
18888
|
+
return getComputedStyle$2(element).position === "static";
|
|
18889
|
+
}
|
|
18886
18890
|
function getTrueOffsetParent$1(element, polyfill) {
|
|
18887
18891
|
if (!isHTMLElement$1(element) || getComputedStyle$2(element).position === "fixed") {
|
|
18888
18892
|
return null;
|
|
@@ -18893,18 +18897,28 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18893
18897
|
return element.offsetParent;
|
|
18894
18898
|
}
|
|
18895
18899
|
function getOffsetParent$1(element, polyfill) {
|
|
18896
|
-
const
|
|
18897
|
-
if (
|
|
18898
|
-
return
|
|
18900
|
+
const win = getWindow$1(element);
|
|
18901
|
+
if (isTopLayer(element)) {
|
|
18902
|
+
return win;
|
|
18903
|
+
}
|
|
18904
|
+
if (!isHTMLElement$1(element)) {
|
|
18905
|
+
let svgOffsetParent = getParentNode$1(element);
|
|
18906
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
18907
|
+
if (isElement$3(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
18908
|
+
return svgOffsetParent;
|
|
18909
|
+
}
|
|
18910
|
+
svgOffsetParent = getParentNode$1(svgOffsetParent);
|
|
18911
|
+
}
|
|
18912
|
+
return win;
|
|
18899
18913
|
}
|
|
18900
18914
|
let offsetParent = getTrueOffsetParent$1(element, polyfill);
|
|
18901
|
-
while (offsetParent && isTableElement$1(offsetParent) &&
|
|
18915
|
+
while (offsetParent && isTableElement$1(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
18902
18916
|
offsetParent = getTrueOffsetParent$1(offsetParent, polyfill);
|
|
18903
18917
|
}
|
|
18904
|
-
if (offsetParent && (
|
|
18905
|
-
return
|
|
18918
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
18919
|
+
return win;
|
|
18906
18920
|
}
|
|
18907
|
-
return offsetParent || getContainingBlock$1(element) ||
|
|
18921
|
+
return offsetParent || getContainingBlock$1(element) || win;
|
|
18908
18922
|
}
|
|
18909
18923
|
const getElementRects = async function(data) {
|
|
18910
18924
|
const getOffsetParentFn = this.getOffsetParent || getOffsetParent$1;
|
|
@@ -19515,7 +19529,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19515
19529
|
const {
|
|
19516
19530
|
open: open2,
|
|
19517
19531
|
onOpenChange,
|
|
19518
|
-
nodeId,
|
|
19519
19532
|
elements: {
|
|
19520
19533
|
reference: reference2,
|
|
19521
19534
|
domReference,
|
|
@@ -19548,9 +19561,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19548
19561
|
outsidePress: outsidePressCapture
|
|
19549
19562
|
} = normalizeProp(capture);
|
|
19550
19563
|
const closeOnEscapeKeyDown = useEffectEvent((event) => {
|
|
19564
|
+
var _dataRef$current$floa;
|
|
19551
19565
|
if (!open2 || !enabled || !escapeKey || event.key !== "Escape") {
|
|
19552
19566
|
return;
|
|
19553
19567
|
}
|
|
19568
|
+
const nodeId = (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId;
|
|
19554
19569
|
const children = tree ? getChildren$2(tree.nodesRef.current, nodeId) : [];
|
|
19555
19570
|
if (!escapeKeyBubbles) {
|
|
19556
19571
|
event.stopPropagation();
|
|
@@ -19580,6 +19595,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19580
19595
|
(_getTarget2 = getTarget(event)) == null || _getTarget2.addEventListener("keydown", callback);
|
|
19581
19596
|
});
|
|
19582
19597
|
const closeOnPressOutside = useEffectEvent((event) => {
|
|
19598
|
+
var _dataRef$current$floa2;
|
|
19583
19599
|
const insideReactTree = insideReactTreeRef.current;
|
|
19584
19600
|
insideReactTreeRef.current = false;
|
|
19585
19601
|
const endedOrStartedInside = endedOrStartedInsideRef.current;
|
|
@@ -19621,6 +19637,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19621
19637
|
return;
|
|
19622
19638
|
}
|
|
19623
19639
|
}
|
|
19640
|
+
const nodeId = (_dataRef$current$floa2 = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa2.nodeId;
|
|
19624
19641
|
const targetIsInsideChildren = tree && getChildren$2(tree.nodesRef.current, nodeId).some((node) => {
|
|
19625
19642
|
var _node$context;
|
|
19626
19643
|
return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);
|
|
@@ -19725,20 +19742,68 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19725
19742
|
};
|
|
19726
19743
|
}, [enabled, referencePress, outsidePressEvent, referencePressEvent, onOpenChange, closeOnEscapeKeyDown]);
|
|
19727
19744
|
}
|
|
19745
|
+
function useFloatingRootContext(options) {
|
|
19746
|
+
const {
|
|
19747
|
+
open: open2 = false,
|
|
19748
|
+
onOpenChange: onOpenChangeProp,
|
|
19749
|
+
elements: elementsProp
|
|
19750
|
+
} = options;
|
|
19751
|
+
const floatingId = useId();
|
|
19752
|
+
const dataRef = React__namespace.useRef({});
|
|
19753
|
+
const [events] = React__namespace.useState(() => createPubSub());
|
|
19754
|
+
const nested = useFloatingParentNodeId() != null;
|
|
19755
|
+
const [positionReference, setPositionReference] = React__namespace.useState(elementsProp.reference);
|
|
19756
|
+
const onOpenChange = useEffectEvent((open3, event, reason) => {
|
|
19757
|
+
dataRef.current.openEvent = open3 ? event : void 0;
|
|
19758
|
+
events.emit("openchange", {
|
|
19759
|
+
open: open3,
|
|
19760
|
+
event,
|
|
19761
|
+
reason,
|
|
19762
|
+
nested
|
|
19763
|
+
});
|
|
19764
|
+
onOpenChangeProp == null || onOpenChangeProp(open3, event, reason);
|
|
19765
|
+
});
|
|
19766
|
+
const refs = React__namespace.useMemo(() => ({
|
|
19767
|
+
setPositionReference
|
|
19768
|
+
}), []);
|
|
19769
|
+
const elements = React__namespace.useMemo(() => ({
|
|
19770
|
+
reference: positionReference || elementsProp.reference || null,
|
|
19771
|
+
floating: elementsProp.floating || null,
|
|
19772
|
+
domReference: elementsProp.reference
|
|
19773
|
+
}), [positionReference, elementsProp.reference, elementsProp.floating]);
|
|
19774
|
+
return React__namespace.useMemo(() => ({
|
|
19775
|
+
dataRef,
|
|
19776
|
+
open: open2,
|
|
19777
|
+
onOpenChange,
|
|
19778
|
+
elements,
|
|
19779
|
+
events,
|
|
19780
|
+
floatingId,
|
|
19781
|
+
refs
|
|
19782
|
+
}), [open2, onOpenChange, elements, events, floatingId, refs]);
|
|
19783
|
+
}
|
|
19728
19784
|
function useFloating(options) {
|
|
19729
|
-
var _options$elements;
|
|
19730
19785
|
if (options === void 0) {
|
|
19731
19786
|
options = {};
|
|
19732
19787
|
}
|
|
19733
19788
|
const {
|
|
19734
|
-
open: open2 = false,
|
|
19735
|
-
onOpenChange: unstable_onOpenChange,
|
|
19736
19789
|
nodeId
|
|
19737
19790
|
} = options;
|
|
19791
|
+
const internalRootContext = useFloatingRootContext({
|
|
19792
|
+
...options,
|
|
19793
|
+
elements: {
|
|
19794
|
+
reference: null,
|
|
19795
|
+
floating: null,
|
|
19796
|
+
...options.elements
|
|
19797
|
+
}
|
|
19798
|
+
});
|
|
19799
|
+
const rootContext = options.rootContext || internalRootContext;
|
|
19800
|
+
const computedElements = rootContext.elements;
|
|
19738
19801
|
const [_domReference, setDomReference] = React__namespace.useState(null);
|
|
19739
19802
|
const [positionReference, _setPositionReference] = React__namespace.useState(null);
|
|
19740
|
-
const optionDomReference =
|
|
19803
|
+
const optionDomReference = computedElements == null ? void 0 : computedElements.reference;
|
|
19741
19804
|
const domReference = optionDomReference || _domReference;
|
|
19805
|
+
const domReferenceRef = React__namespace.useRef(null);
|
|
19806
|
+
const tree = useFloatingTree();
|
|
19742
19807
|
index$2(() => {
|
|
19743
19808
|
if (domReference) {
|
|
19744
19809
|
domReferenceRef.current = domReference;
|
|
@@ -19747,28 +19812,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19747
19812
|
const position = useFloating$1({
|
|
19748
19813
|
...options,
|
|
19749
19814
|
elements: {
|
|
19750
|
-
...
|
|
19815
|
+
...computedElements,
|
|
19751
19816
|
...positionReference && {
|
|
19752
19817
|
reference: positionReference
|
|
19753
19818
|
}
|
|
19754
19819
|
}
|
|
19755
19820
|
});
|
|
19756
|
-
const tree = useFloatingTree();
|
|
19757
|
-
const nested = useFloatingParentNodeId() != null;
|
|
19758
|
-
const onOpenChange = useEffectEvent((open3, event, reason) => {
|
|
19759
|
-
dataRef.current.openEvent = open3 ? event : void 0;
|
|
19760
|
-
events.emit("openchange", {
|
|
19761
|
-
open: open3,
|
|
19762
|
-
event,
|
|
19763
|
-
reason,
|
|
19764
|
-
nested
|
|
19765
|
-
});
|
|
19766
|
-
unstable_onOpenChange == null || unstable_onOpenChange(open3, event, reason);
|
|
19767
|
-
});
|
|
19768
|
-
const domReferenceRef = React__namespace.useRef(null);
|
|
19769
|
-
const dataRef = React__namespace.useRef({});
|
|
19770
|
-
const events = React__namespace.useState(() => createPubSub())[0];
|
|
19771
|
-
const floatingId = useId();
|
|
19772
19821
|
const setPositionReference = React__namespace.useCallback((node) => {
|
|
19773
19822
|
const computedPositionReference = isElement$3(node) ? {
|
|
19774
19823
|
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
@@ -19798,16 +19847,13 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19798
19847
|
}), [position.elements, domReference]);
|
|
19799
19848
|
const context2 = React__namespace.useMemo(() => ({
|
|
19800
19849
|
...position,
|
|
19850
|
+
...rootContext,
|
|
19801
19851
|
refs,
|
|
19802
19852
|
elements,
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
-
floatingId,
|
|
19806
|
-
events,
|
|
19807
|
-
open: open2,
|
|
19808
|
-
onOpenChange
|
|
19809
|
-
}), [position, nodeId, floatingId, events, open2, onOpenChange, refs, elements]);
|
|
19853
|
+
nodeId
|
|
19854
|
+
}), [position, refs, elements, nodeId, rootContext]);
|
|
19810
19855
|
index$2(() => {
|
|
19856
|
+
rootContext.dataRef.current.floatingContext = context2;
|
|
19811
19857
|
const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
|
|
19812
19858
|
if (node) {
|
|
19813
19859
|
node.context = context2;
|
|
@@ -41189,6 +41235,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
41189
41235
|
handlersMap[_this._uid] = function(event) {
|
|
41190
41236
|
if (_this.componentNode === null)
|
|
41191
41237
|
return;
|
|
41238
|
+
if (_this.initTimeStamp > event.timeStamp)
|
|
41239
|
+
return;
|
|
41192
41240
|
if (_this.props.preventDefault) {
|
|
41193
41241
|
event.preventDefault();
|
|
41194
41242
|
}
|
|
@@ -41225,6 +41273,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
41225
41273
|
return _this.instanceRef = ref;
|
|
41226
41274
|
};
|
|
41227
41275
|
_this._uid = uid();
|
|
41276
|
+
_this.initTimeStamp = performance.now();
|
|
41228
41277
|
return _this;
|
|
41229
41278
|
}
|
|
41230
41279
|
var _proto = onClickOutside.prototype;
|
|
@@ -43293,12 +43342,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
43293
43342
|
const setMenuRef = menuProps.ref;
|
|
43294
43343
|
const setFloatingRef = refs.setFloating;
|
|
43295
43344
|
const { dropdownRef } = props;
|
|
43296
|
-
const
|
|
43345
|
+
const mergedDropdownRef = React__namespace.useCallback((node) => {
|
|
43297
43346
|
setFloatingRef(node);
|
|
43298
43347
|
setMenuRef(node);
|
|
43299
43348
|
dropdownRef === null || dropdownRef === void 0 ? void 0 : dropdownRef(node);
|
|
43300
43349
|
}, [setFloatingRef, setMenuRef, dropdownRef]);
|
|
43301
|
-
return jsxRuntime.exports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$5, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButtonPrimary, Object.assign({ disabled: props.disabled }, getToggleButtonProps({ disabled: props.disabled
|
|
43350
|
+
return jsxRuntime.exports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$5, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButtonPrimary, Object.assign({ disabled: props.disabled }, getToggleButtonProps({ disabled: props.disabled, ref: refs.setReference }), getReferenceProps(), { type: "button", children: [jsxRuntime.exports.jsx(SelectedItem$1, { size: props.size, children: selectedItem ? selectedItem.label : "Select" }), jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(DropdownList$1, Object.assign({}, menuProps, getFloatingProps(), { ref: mergedDropdownRef, className: `${(_a = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _a !== void 0 ? _a : ""} ${props.itemClass}`, displacement: props.displacement, isOpen, maxItems: 7, style: Object.assign(Object.assign({}, floatingStyles), { width: "16.25rem", zIndex: 9999 }), children: props.items.map((item, index2) => {
|
|
43302
43351
|
const _a2 = getItemProps({ index: index2, item }), { itemClassName } = _a2, itemProps = __rest$3(_a2, ["itemClassName"]);
|
|
43303
43352
|
return React.createElement(DatepickerListItem, Object.assign({}, itemProps, { "aria-selected": selectedItem.label === item.label, className: `${itemClassName} ${props.itemClass}`, hovered: index2 === highlightedIndex, isSelected: selectedItem.label === item.label, key: `item-${index2}`, size: props.size, title: item.label }), item.label);
|
|
43304
43353
|
}) })), document.body)] }) });
|
|
@@ -45220,12 +45269,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45220
45269
|
const setMenuRef = menuProps.ref;
|
|
45221
45270
|
const setFloatingRef = refs.setFloating;
|
|
45222
45271
|
const { dropdownRef } = props;
|
|
45223
|
-
const
|
|
45272
|
+
const mergedDropdownRef = React__namespace.useCallback((node) => {
|
|
45224
45273
|
setFloatingRef(node);
|
|
45225
45274
|
setMenuRef(node);
|
|
45226
45275
|
dropdownRef === null || dropdownRef === void 0 ? void 0 : dropdownRef(node);
|
|
45227
45276
|
}, [setFloatingRef, setMenuRef, dropdownRef]);
|
|
45228
|
-
return jsxRuntime.exports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$4, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, isOpen, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButton, Object.assign({ disabled: props.disabled, isOpen }, getToggleButtonProps({ disabled: props.disabled
|
|
45277
|
+
return jsxRuntime.exports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$4, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, isOpen, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButton, Object.assign({ disabled: props.disabled, isOpen }, getToggleButtonProps({ disabled: props.disabled, ref: refs.setReference }), getReferenceProps(), { type: "button", children: [jsxRuntime.exports.jsx(SelectedItem, { size: props.size, children: (_b = (_a = selectedItem === null ? props.placeholder : selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) !== null && _a !== void 0 ? _a : props.placeholder) !== null && _b !== void 0 ? _b : "Select" }), jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(DropdownList, Object.assign({}, menuProps, getFloatingProps(), { ref: mergedDropdownRef, className: `${(_c = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _c !== void 0 ? _c : ""} ${props.itemClass}`, isOpen, maxItems: props.maxItems, style: Object.assign(Object.assign({}, floatingStyles), { zIndex: 9999 }), children: props.items.map((item, index2) => {
|
|
45229
45278
|
const _a2 = getItemProps({ index: index2, item }), { itemClassName } = _a2, itemProps = __rest$2(_a2, ["itemClassName"]);
|
|
45230
45279
|
return React.createElement(ListItem, Object.assign({}, itemProps, { className: `${itemClassName} ${props.itemClass}`, hovered: index2 === highlightedIndex, key: `item-${index2}`, size: props.size, title: item.label }), item.label);
|
|
45231
45280
|
}) })), document.body)] }) });
|
|
@@ -53340,23 +53389,25 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
53340
53389
|
const Heading = styled__default.default.h2`
|
|
53341
53390
|
overflow: hidden;
|
|
53342
53391
|
display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
|
|
53343
|
-
-webkit-box-orient: vertical;
|
|
53344
53392
|
|
|
53345
53393
|
font-size: 1rem;
|
|
53346
53394
|
font-weight: 700;
|
|
53347
53395
|
text-overflow: ellipsis;
|
|
53348
53396
|
|
|
53397
|
+
-webkit-box-orient: vertical;
|
|
53398
|
+
|
|
53349
53399
|
-webkit-line-clamp: 1;
|
|
53350
53400
|
`;
|
|
53351
53401
|
const Body = styled__default.default.span`
|
|
53352
53402
|
overflow: hidden;
|
|
53353
53403
|
display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
|
|
53354
|
-
-webkit-box-orient: vertical;
|
|
53355
53404
|
|
|
53356
53405
|
font-weight: 400;
|
|
53357
53406
|
line-height: 1.25rem;
|
|
53358
53407
|
text-overflow: ellipsis;
|
|
53359
53408
|
|
|
53409
|
+
-webkit-box-orient: vertical;
|
|
53410
|
+
|
|
53360
53411
|
-webkit-line-clamp: ${(props) => props.moreDetailsShown ? 1 : 2};
|
|
53361
53412
|
`;
|
|
53362
53413
|
const Icon$1 = styled__default.default.div`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Dara Framework core",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@babel/preset-env": "^7.23.0",
|
|
38
38
|
"@babel/preset-react": "^7.22.15",
|
|
39
39
|
"@babel/preset-typescript": "^7.23.0",
|
|
40
|
-
"@darajs/eslint-config": "~1.9.
|
|
41
|
-
"@darajs/prettier-config": "~1.9.
|
|
42
|
-
"@darajs/stylelint-config": "~1.9.
|
|
40
|
+
"@darajs/eslint-config": "~1.9.4",
|
|
41
|
+
"@darajs/prettier-config": "~1.9.4",
|
|
42
|
+
"@darajs/stylelint-config": "~1.9.4",
|
|
43
43
|
"@rollup/plugin-inject": "^4.0.4",
|
|
44
44
|
"@testing-library/dom": "^9.3.0",
|
|
45
45
|
"@testing-library/jest-dom": "^5.16.5",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"whatwg-fetch": "^3.6.2"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@darajs/styled-components": "~1.9.
|
|
83
|
-
"@darajs/ui-components": "~1.9.
|
|
84
|
-
"@darajs/ui-notifications": "~1.9.
|
|
85
|
-
"@darajs/ui-utils": "~1.9.
|
|
82
|
+
"@darajs/styled-components": "~1.9.4",
|
|
83
|
+
"@darajs/ui-components": "~1.9.4",
|
|
84
|
+
"@darajs/ui-notifications": "~1.9.4",
|
|
85
|
+
"@darajs/ui-utils": "~1.9.4",
|
|
86
86
|
"@fortawesome/fontawesome-free": "~6.4.0",
|
|
87
87
|
"@recoiljs/refine": "^0.1.1",
|
|
88
88
|
"@tanstack/query-core": "^4.0.0",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "1292fb6a764c0c3e3f0f920042fc1ebd1120f34c"
|
|
122
122
|
}
|