@uiw/react-tree-checked
Advanced tools
Comparing version 4.21.14 to 5.0.0-bate-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 |
@@ -10,2 +10,3 @@ "use strict"; | ||
}); | ||
var _exportNames = {}; | ||
exports["default"] = TreeChecked; | ||
@@ -23,4 +24,19 @@ | ||
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"]; | ||
@@ -51,3 +67,4 @@ | ||
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"), | ||
@@ -63,4 +80,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) { | ||
@@ -36,3 +37,4 @@ var { | ||
return /*#__PURE__*/_jsxs(Fragment, { | ||
children: [/*#__PURE__*/_jsx(Checkbox, _extends({ | ||
children: [/*#__PURE__*/_jsx(TreeCheckboxStyleBase, _extends({ | ||
as: Checkbox, | ||
className: prefixCls + "-checked", | ||
@@ -39,0 +41,0 @@ disabled: node.disabled |
{ | ||
"name": "@uiw/react-tree-checked", | ||
"version": "4.21.14", | ||
"version": "5.0.0-bate-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.14", | ||
"@uiw/react-tree": "^4.21.14", | ||
"@uiw/utils": "^4.21.14" | ||
"@uiw/react-checkbox": "^5.0.0-bate-0", | ||
"@uiw/react-tree": "^5.0.0-bate-0", | ||
"@uiw/utils": "^5.0.0-bate-0" | ||
} | ||
} |
@@ -18,5 +18,4 @@ TreeChecked 树形选择控件 | ||
<!--rehype:bgWhite=true&codeSandbox=true&codePen=true--> | ||
```jsx | ||
import ReactDOM from 'react-dom'; | ||
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true | ||
import React from 'react'; | ||
import { TreeChecked, Card, Row, Col } from 'uiw'; | ||
@@ -110,3 +109,3 @@ | ||
) | ||
ReactDOM.render(<Demo />, _mount_); | ||
export default Demo | ||
``` | ||
@@ -116,6 +115,4 @@ | ||
<!--rehype:bgWhite=true&codeSandbox=true&codePen=true--> | ||
```jsx | ||
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true | ||
import React, { useState, useRef } from "react"; | ||
import ReactDOM from 'react-dom'; | ||
import { Form, Input, Row, Col, TreeChecked, Slider, Button, Notify } from 'uiw'; | ||
@@ -225,3 +222,3 @@ | ||
} | ||
ReactDOM.render(<Demo />, _mount_); | ||
export default Demo | ||
``` | ||
@@ -228,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
21848
16
184
6
1
231
+ 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-0