react-mkx-components
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Input = void 0; | ||
exports.Choice = exports.Input = void 0; | ||
const react_1 = __importDefault(require("react")); | ||
@@ -28,2 +28,14 @@ const Input = (_a) => { | ||
exports.Input = Input; | ||
const Choice = { | ||
When: ({ condition, children }) => { | ||
return condition ? children : null; | ||
}, | ||
Then: ({ condition, children }) => { | ||
return !condition ? children : null; | ||
}, | ||
And: ({ condition, children }) => { | ||
return condition && children; | ||
}, | ||
}; | ||
exports.Choice = Choice; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "react-mkx-components", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -18,5 +18,4 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.24.1", | ||
"@types/react": "^18.2.66" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6428
1
139
7