@megha-ui/react 1.2.700 → 1.2.704

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.
@@ -1,10 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  const CalculateDropdown = ({ rowIndex, options, onClose, columnKey, }) => {
3
- return (_jsx("ul", { style: Object.assign(Object.assign({ position: "absolute", zIndex: 10 }, (rowIndex > 1 ? {
4
- bottom: "2.5rem",
5
- } : {
6
- top: "1.5rem"
7
- })), { left: 0, backgroundColor: "var(--background)", color: "var(--foreground)", boxShadow: "0px 0.5rem 1rem 0px rgba(0,0,0,0.2)", listStyleType: "none", padding: "0.25rem 0", width: "max-content", borderRadius: "0.5rem", fontSize: "inherit", minWidth: "14.25rem", transform: "translateY(10px)", maxHeight: "20rem", overflow: "auto" }), onClick: (e) => e.stopPropagation(), children: options.map((option, index) => (_jsx("li", { style: { padding: "0.25rem 0.75rem", cursor: "pointer" }, onClick: () => {
3
+ return (_jsx("ul", { style: Object.assign(Object.assign({ position: "absolute", zIndex: 10 }, (rowIndex < 0 || rowIndex > 1
4
+ ? {
5
+ bottom: "calc(100% + 0.25rem)",
6
+ }
7
+ : {
8
+ top: "calc(100% + 0.25rem)",
9
+ })), { left: 0, backgroundColor: "var(--background)", color: "var(--foreground)", boxShadow: "0px 0.5rem 1rem 0px rgba(0,0,0,0.2)", listStyleType: "none", padding: "0.25rem 0", width: "max-content", borderRadius: "0.5rem", fontSize: "inherit", minWidth: "14.25rem", transform: "translateY(10px)", maxHeight: "20rem", overflow: "auto" }), onClick: (e) => e.stopPropagation(), children: options.map((option, index) => (_jsx("li", { style: { padding: "0.25rem 0.75rem", cursor: "pointer" }, onClick: () => {
8
10
  columnKey &&
9
11
  option.action &&
10
12
  option.action(columnKey, option.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.700",
3
+ "version": "1.2.704",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",