@uiw/react-tree-checked
Advanced tools
Comparing version 4.21.23 to 5.0.0-bate.2.0
import { TreeProps } from '@uiw/react-tree'; | ||
import './style/index.less'; | ||
export * from './style'; | ||
export interface TreeCheckedProps extends TreeProps { | ||
} | ||
export default function TreeChecked({ prefixCls, ...props }: TreeCheckedProps): JSX.Element; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,2 +8,3 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
exports["default"] = TreeChecked; | ||
@@ -15,3 +16,16 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _reactCheckbox = _interopRequireDefault(require("@uiw/react-checkbox")); | ||
var _index = require("./style/index"); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _style = require("./style"); | ||
Object.keys(_style).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _style[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _style[key]; | ||
} | ||
}); | ||
}); | ||
var _excluded = ["prefixCls"]; | ||
@@ -38,3 +52,4 @@ function TreeChecked(_ref) { | ||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, { | ||
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactCheckbox["default"], (0, _objectSpread2["default"])({ | ||
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TreeCheckboxStyleBase, (0, _objectSpread2["default"])({ | ||
as: _reactCheckbox["default"], | ||
className: "".concat(prefixCls, "-checked"), | ||
@@ -50,3 +65,2 @@ disabled: node.disabled | ||
} | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
import { TreeProps } from '@uiw/react-tree'; | ||
import './style/index.less'; | ||
export * from './style'; | ||
export interface TreeCheckedProps extends TreeProps { | ||
} | ||
export default function TreeChecked({ prefixCls, ...props }: TreeCheckedProps): JSX.Element; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,5 +7,6 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import Checkbox from '@uiw/react-checkbox'; | ||
import "./style/index.css"; | ||
import { TreeCheckboxStyleBase } from './style/index'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { jsxs as _jsxs } from "react/jsx-runtime"; | ||
export * from './style'; | ||
export default function TreeChecked(_ref) { | ||
@@ -32,3 +33,4 @@ var { | ||
return /*#__PURE__*/_jsxs(Fragment, { | ||
children: [/*#__PURE__*/_jsx(Checkbox, _extends({ | ||
children: [/*#__PURE__*/_jsx(TreeCheckboxStyleBase, _extends({ | ||
as: Checkbox, | ||
className: prefixCls + "-checked", | ||
@@ -35,0 +37,0 @@ disabled: node.disabled |
{ | ||
"name": "@uiw/react-tree-checked", | ||
"version": "4.21.23", | ||
"version": "5.0.0-bate.2.0", | ||
"description": "TreeChecked component", | ||
@@ -44,9 +44,10 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"react": ">=16.9.0", | ||
"react-dom": ">=16.9.0" | ||
"react-dom": ">=16.9.0", | ||
"styled-components": ">=5.3.5" | ||
}, | ||
"dependencies": { | ||
"@uiw/react-checkbox": "^4.21.23", | ||
"@uiw/react-tree": "^4.21.23", | ||
"@uiw/utils": "^4.21.23" | ||
"@uiw/react-checkbox": "^5.0.0-bate.2.0", | ||
"@uiw/react-tree": "^5.0.0-bate.2.0", | ||
"@uiw/utils": "^5.0.0-bate.2.0" | ||
} | ||
} |
@@ -18,3 +18,3 @@ TreeChecked 树形选择控件 | ||
```jsx mdx:preview&bg=#fff | ||
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true | ||
import React from 'react'; | ||
@@ -109,3 +109,3 @@ import { TreeChecked, Card, Row, Col } from 'uiw'; | ||
) | ||
export default Demo; | ||
export default Demo | ||
``` | ||
@@ -115,3 +115,3 @@ | ||
```jsx mdx:preview&bg=#fff | ||
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true | ||
import React, { useState, useRef } from "react"; | ||
@@ -222,3 +222,3 @@ import { Form, Input, Row, Col, TreeChecked, Slider, Button, Notify } from 'uiw'; | ||
} | ||
export default Demo; | ||
export default Demo | ||
``` | ||
@@ -225,0 +225,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
23831
16
184
6
1
+ Added@emotion/is-prop-valid@1.2.2(transitive)
+ Added@emotion/memoize@0.8.1(transitive)
+ Added@emotion/unitless@0.8.1(transitive)
+ Added@types/stylis@4.2.5(transitive)
+ Added@uiw/icons@2.6.1(transitive)
+ Added@uiw/react-button@5.0.0-bate-9(transitive)
+ Added@uiw/react-button-group@5.0.0-bate-9(transitive)
+ Added@uiw/react-checkbox@5.0.0-bate-9(transitive)
+ Added@uiw/react-icon@5.0.0-bate-9(transitive)
+ Added@uiw/react-radio@5.0.0-bate-9(transitive)
+ Added@uiw/react-tree@5.0.0-bate-9(transitive)
+ Added@uiw/utils@5.0.0-bate-9(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addedcss-color-keywords@1.0.0(transitive)
+ Addedcss-to-react-native@3.2.0(transitive)
+ Addednanoid@3.3.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.38(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedshallowequal@1.1.0(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedstyled-components@6.1.13(transitive)
+ Addedstylis@4.3.2(transitive)
+ Addedtslib@2.6.2(transitive)
- Removed@uiw/icons@2.6.10(transitive)
- Removed@uiw/react-button@4.22.3(transitive)
- Removed@uiw/react-button-group@4.22.3(transitive)
- Removed@uiw/react-checkbox@4.22.3(transitive)
- Removed@uiw/react-icon@4.22.3(transitive)
- Removed@uiw/react-radio@4.22.3(transitive)
- Removed@uiw/react-tree@4.22.3(transitive)
- Removed@uiw/utils@4.22.3(transitive)
Updated@uiw/utils@^5.0.0-bate.2.0