@darajs/core 1.14.3 → 1.14.5
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
|
|
@@ -36530,6 +36530,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
36530
36530
|
|
|
36531
36531
|
overflow: hidden;
|
|
36532
36532
|
|
|
36533
|
+
display: flex;
|
|
36534
|
+
justify-content: space-between;
|
|
36535
|
+
align-items: center;
|
|
36533
36536
|
width: 100%;
|
|
36534
36537
|
min-height: 2rem;
|
|
36535
36538
|
padding: 0.25rem 1rem;
|
|
@@ -36574,10 +36577,16 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
36574
36577
|
border-radius: 0 0 0.25rem 0.25rem;
|
|
36575
36578
|
outline: 0;
|
|
36576
36579
|
box-shadow: ${(props) => props.theme.shadow.light};
|
|
36580
|
+
`;
|
|
36581
|
+
const InnerItem = styled__default.default.span`
|
|
36582
|
+
min-width: 0;
|
|
36583
|
+
overflow: hidden;
|
|
36584
|
+
text-overflow: ellipsis;
|
|
36585
|
+
white-space: nowrap;
|
|
36577
36586
|
`;
|
|
36578
36587
|
const DropdownList = React__default.default.forwardRef(({ items, getItemProps, getFloatingProps, isOpen, getMenuProps, size: size2, style, maxItems, itemClass, className, children, selectedItem, kbdHighlightIdx }, ref) => jsxRuntime.exports.jsx(StyledDropdownList$1, Object.assign({}, getMenuProps ? getMenuProps({ ref }) : { ref }, getFloatingProps(), { isOpen, maxItems, style: Object.assign(Object.assign({}, style), { zIndex: 9999 }), className, children: !lodash$2.exports.isEmpty(items) ? items.map((item, index2) => {
|
|
36579
36588
|
const isSelected = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) === item.label;
|
|
36580
|
-
return children ? children(item, index2) : jsxRuntime.exports.
|
|
36589
|
+
return children ? children(item, index2) : jsxRuntime.exports.jsxs(ListItem$1, { getItemProps, size: size2, title: item.label, item, index: index2, itemClass, isHighlighted: isOpen && kbdHighlightIdx !== void 0 && kbdHighlightIdx === index2, isSelected, children: [jsxRuntime.exports.jsx(InnerItem, { children: item.label }), item.icon] }, `item-${index2}-${isOpen && isSelected}`);
|
|
36581
36590
|
}) : jsxRuntime.exports.jsx(NoItemsLabel, { children: "No Items" }) })));
|
|
36582
36591
|
DropdownList.displayName = "DropdownList";
|
|
36583
36592
|
const DropdownList$1 = React__default.default.memo(DropdownList);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/core",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.5",
|
|
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.14.
|
|
41
|
-
"@darajs/prettier-config": "1.14.
|
|
42
|
-
"@darajs/stylelint-config": "1.14.
|
|
40
|
+
"@darajs/eslint-config": "1.14.5",
|
|
41
|
+
"@darajs/prettier-config": "1.14.5",
|
|
42
|
+
"@darajs/stylelint-config": "1.14.5",
|
|
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.14.
|
|
83
|
-
"@darajs/ui-components": "1.14.
|
|
84
|
-
"@darajs/ui-notifications": "1.14.
|
|
85
|
-
"@darajs/ui-utils": "1.14.
|
|
82
|
+
"@darajs/styled-components": "1.14.5",
|
|
83
|
+
"@darajs/ui-components": "1.14.5",
|
|
84
|
+
"@darajs/ui-notifications": "1.14.5",
|
|
85
|
+
"@darajs/ui-utils": "1.14.5",
|
|
86
86
|
"@fortawesome/fontawesome-free": "~6.4.0",
|
|
87
87
|
"@recoiljs/refine": "^0.1.1",
|
|
88
88
|
"@tanstack/query-core": "^4.0.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "3a5257a6b87b7a55bf36f047769e2f75c29c5e2e"
|
|
121
121
|
}
|