@hyphen/hyphen-components 4.1.2 → 4.2.0
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/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/css/utilities.css +1 -1
- package/dist/css/variables.css +2 -2
- package/dist/hyphen-components.cjs.development.js +1 -1
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +1 -1
- package/dist/hyphen-components.esm.js.map +1 -1
- package/dist/lib/tokens.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +4 -0
- package/src/components/DropdownMenu/DropdownMenu.tsx +16 -11
|
@@ -2099,7 +2099,7 @@ var DropdownMenuItem = /*#__PURE__*/React__default.forwardRef(function (_ref, re
|
|
|
2099
2099
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
2100
2100
|
return React__default.createElement(DropdownMenuPrimitive.Item, _extends({
|
|
2101
2101
|
ref: ref,
|
|
2102
|
-
className: classNames('font-size-sm position-relative cursor-default display-flex br-sm align-items-center p-sm g-sm outline-none hover:background-color-secondary focus:background-color-secondary',
|
|
2102
|
+
className: classNames('font-size-sm position-relative cursor-default display-flex br-sm align-items-center p-sm g-sm outline-none', inset && 'p-left-md', !props.disabled && 'hover:background-color-secondary focus:background-color-secondary', props.disabled && 'cursor-not-allowed font-color-disabled', className)
|
|
2103
2103
|
}, props));
|
|
2104
2104
|
});
|
|
2105
2105
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|