@tidbcloud/uikit 2.0.0-beta.3 → 2.0.0-beta.4
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/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/dist/hooks/useURLQueryState.cjs +5 -4
- package/dist/hooks/useURLQueryState.js +5 -4
- package/dist/node_modules/.pnpm/{@babel_runtime@7.21.5 → @babel_runtime@7.24.7}/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +3 -4
- package/dist/node_modules/.pnpm/{@babel_runtime@7.21.5 → @babel_runtime@7.24.7}/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +3 -4
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.cjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.cjs +6 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@1.0.1_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.cjs +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@1.0.1_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.js +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-scroll-area@1.0.2_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-scroll-area/dist/index.module.cjs +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-scroll-area@1.0.2_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-scroll-area/dist/index.module.js +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.1_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.cjs +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.1_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.js +1 -1
- package/dist/node_modules/.pnpm/react-textarea-autosize@8.3.4_@types_react@18.2.48_react@18.2.0/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.cjs +2 -2
- package/dist/node_modules/.pnpm/react-textarea-autosize@8.3.4_@types_react@18.2.48_react@18.2.0/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js +2 -2
- package/dist/node_modules/.pnpm/react-transition-group@4.4.2_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/Transition.cjs +2 -2
- package/dist/node_modules/.pnpm/react-transition-group@4.4.2_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/Transition.js +2 -2
- package/dist/node_modules/.pnpm/react-transition-group@4.4.2_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/TransitionGroup.cjs +4 -4
- package/dist/node_modules/.pnpm/react-transition-group@4.4.2_react-dom@18.2.0_react@18.2.0/node_modules/react-transition-group/esm/TransitionGroup.js +4 -4
- package/package.json +4 -3
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.cjs +0 -16
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/inheritsLoose.cjs +0 -8
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -9
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +0 -16
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -17
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +0 -9
- package/dist/node_modules/.pnpm/@babel_runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix `useURLQueryState` bug
|
|
8
|
+
|
|
3
9
|
## 2.0.0-beta.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -24,6 +30,12 @@
|
|
|
24
30
|
|
|
25
31
|
- Upgrade react-hook-form to v7
|
|
26
32
|
|
|
33
|
+
## 1.18.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- cd2433d: add icon: vector
|
|
38
|
+
|
|
27
39
|
## 1.17.1
|
|
28
40
|
|
|
29
41
|
### Patch Changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2024 by TiDB Cloud FE Team https://tiui.tidbcloud.com/
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const qs = require("qs");
|
|
4
3
|
const React = require("react");
|
|
5
4
|
function useURLQueryState(key, defaultValue) {
|
|
6
|
-
const parsed =
|
|
5
|
+
const parsed = parse(window.location.search);
|
|
7
6
|
const initialValue = parsed[key] ? JSON.parse(parsed[key]) : defaultValue;
|
|
8
7
|
const [formState, setFormState] = React.useState(initialValue);
|
|
9
8
|
const value = formState;
|
|
10
9
|
const setValue = (partialValue) => {
|
|
11
10
|
const newFormState = { ...value, ...partialValue };
|
|
12
11
|
setFormState(newFormState);
|
|
13
|
-
const curSearch =
|
|
12
|
+
const curSearch = parse(window.location.search);
|
|
14
13
|
curSearch[key] = JSON.stringify(newFormState);
|
|
15
|
-
|
|
14
|
+
const searchParams = new URLSearchParams(curSearch);
|
|
15
|
+
window.history.replaceState({}, document.title, `?${searchParams.toString()}`);
|
|
16
16
|
};
|
|
17
17
|
return [value, setValue];
|
|
18
18
|
}
|
|
19
|
+
const parse = (search) => Object.fromEntries(new URLSearchParams(search).entries());
|
|
19
20
|
exports.useURLQueryState = useURLQueryState;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import qs from "qs";
|
|
2
1
|
import { useState } from "react";
|
|
3
2
|
function useURLQueryState(key, defaultValue) {
|
|
4
|
-
const parsed =
|
|
3
|
+
const parsed = parse(window.location.search);
|
|
5
4
|
const initialValue = parsed[key] ? JSON.parse(parsed[key]) : defaultValue;
|
|
6
5
|
const [formState, setFormState] = useState(initialValue);
|
|
7
6
|
const value = formState;
|
|
8
7
|
const setValue = (partialValue) => {
|
|
9
8
|
const newFormState = { ...value, ...partialValue };
|
|
10
9
|
setFormState(newFormState);
|
|
11
|
-
const curSearch =
|
|
10
|
+
const curSearch = parse(window.location.search);
|
|
12
11
|
curSearch[key] = JSON.stringify(newFormState);
|
|
13
|
-
|
|
12
|
+
const searchParams = new URLSearchParams(curSearch);
|
|
13
|
+
window.history.replaceState({}, document.title, `?${searchParams.toString()}`);
|
|
14
14
|
};
|
|
15
15
|
return [value, setValue];
|
|
16
16
|
}
|
|
17
|
+
const parse = (search) => Object.fromEntries(new URLSearchParams(search).entries());
|
|
17
18
|
export {
|
|
18
19
|
useURLQueryState
|
|
19
20
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function _assertThisInitialized(
|
|
3
|
-
if (
|
|
2
|
+
function _assertThisInitialized(e) {
|
|
3
|
+
if (void 0 === e)
|
|
4
4
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
|
-
|
|
6
|
-
return self;
|
|
5
|
+
return e;
|
|
7
6
|
}
|
|
8
7
|
module.exports = _assertThisInitialized;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
function _assertThisInitialized(
|
|
2
|
-
if (
|
|
1
|
+
function _assertThisInitialized(e) {
|
|
2
|
+
if (void 0 === e)
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
|
|
5
|
-
return self;
|
|
4
|
+
return e;
|
|
6
5
|
}
|
|
7
6
|
export {
|
|
8
7
|
_assertThisInitialized as default
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function _extends() {
|
|
3
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
4
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
5
|
+
var t = arguments[e];
|
|
6
|
+
for (var r in t)
|
|
7
|
+
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
8
|
+
}
|
|
9
|
+
return n;
|
|
10
|
+
}, _extends.apply(null, arguments);
|
|
11
|
+
}
|
|
12
|
+
module.exports = _extends;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
+
var t = arguments[e];
|
|
5
|
+
for (var r in t)
|
|
6
|
+
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
7
|
+
}
|
|
8
|
+
return n;
|
|
9
|
+
}, _extends.apply(null, arguments);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
_extends as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
|
+
if (null == r)
|
|
4
|
+
return {};
|
|
5
|
+
var t = {};
|
|
6
|
+
for (var n in r)
|
|
7
|
+
if ({}.hasOwnProperty.call(r, n)) {
|
|
8
|
+
if (e.indexOf(n) >= 0)
|
|
9
|
+
continue;
|
|
10
|
+
t[n] = r[n];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
module.exports = _objectWithoutPropertiesLoose;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
2
|
+
if (null == r)
|
|
3
|
+
return {};
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var n in r)
|
|
6
|
+
if ({}.hasOwnProperty.call(r, n)) {
|
|
7
|
+
if (e.indexOf(n) >= 0)
|
|
8
|
+
continue;
|
|
9
|
+
t[n] = r[n];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
_objectWithoutPropertiesLoose as default
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _extends = require("../../../../../@babel_runtime@7.
|
|
3
|
+
const _extends = require("../../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
require("react-dom");
|
|
6
6
|
const index_module = require("../../../../../@radix-ui_react-slot@1.0.1_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "../../../../../@babel_runtime@7.
|
|
1
|
+
import _extends from "../../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
2
2
|
import { forwardRef, useEffect, createElement } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
import { Slot as $5e63c961fc1ce211$export$8c6ed5c666ac1360 } from "../../../../../@radix-ui_react-slot@1.0.1_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _extends = require("../../../../../@babel_runtime@7.
|
|
3
|
+
const _extends = require("../../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const index_module$3 = require("../../../../../@radix-ui_react-primitive@1.0.1_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.cjs");
|
|
6
6
|
const index_module$4 = require("../../../../../@radix-ui_react-presence@1.0.0_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "../../../../../@babel_runtime@7.
|
|
1
|
+
import _extends from "../../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
2
2
|
import { forwardRef, useState, createElement, useRef, Fragment, useEffect, useCallback, useReducer } from "react";
|
|
3
3
|
import { Primitive as $8927f6f2acc4f386$export$250ffa63cdc0d034 } from "../../../../../@radix-ui_react-primitive@1.0.1_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.js";
|
|
4
4
|
import { Presence as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from "../../../../../@radix-ui_react-presence@1.0.0_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _extends = require("../../../../../@babel_runtime@7.
|
|
3
|
+
const _extends = require("../../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const index_module = require("../../../../../@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.cjs");
|
|
6
6
|
const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "../../../../../@babel_runtime@7.
|
|
1
|
+
import _extends from "../../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
2
2
|
import { forwardRef, Children, isValidElement, createElement, cloneElement, Fragment } from "react";
|
|
3
3
|
import { composeRefs as $6ed0406888f73fc4$export$43e446d32b3d21af } from "../../../../../@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.js";
|
|
4
4
|
const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const _extends = require("../../../../@babel_runtime@7.
|
|
3
|
-
const objectWithoutPropertiesLoose = require("../../../../@babel_runtime@7.
|
|
2
|
+
const _extends = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.cjs");
|
|
3
|
+
const objectWithoutPropertiesLoose = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const useLatest_esm = require("../../../../use-latest@1.2.1_@types_react@18.2.48_react@18.2.0/node_modules/use-latest/dist/use-latest.esm.cjs");
|
|
6
6
|
const useComposedRef_esm = require("../../../../use-composed-ref@1.3.0_react@18.2.0/node_modules/use-composed-ref/dist/use-composed-ref.esm.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "../../../../@babel_runtime@7.
|
|
2
|
-
import _objectWithoutPropertiesLoose from "../../../../@babel_runtime@7.
|
|
1
|
+
import _extends from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
3
3
|
import { forwardRef, useRef, useLayoutEffect, createElement } from "react";
|
|
4
4
|
import useLatest from "../../../../use-latest@1.2.1_@types_react@18.2.48_react@18.2.0/node_modules/use-latest/dist/use-latest.esm.js";
|
|
5
5
|
import useComposedRef from "../../../../use-composed-ref@1.3.0_react@18.2.0/node_modules/use-composed-ref/dist/use-composed-ref.esm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const objectWithoutPropertiesLoose = require("../../../../@babel_runtime@7.
|
|
4
|
-
const inheritsLoose = require("../../../../@babel_runtime@7.
|
|
3
|
+
const objectWithoutPropertiesLoose = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs");
|
|
4
|
+
const inheritsLoose = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.cjs");
|
|
5
5
|
const index = require("../../../../prop-types@15.8.1/node_modules/prop-types/index.cjs");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const ReactDOM = require("react-dom");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectWithoutPropertiesLoose from "../../../../@babel_runtime@7.
|
|
2
|
-
import _inheritsLoose from "../../../../@babel_runtime@7.
|
|
1
|
+
import _objectWithoutPropertiesLoose from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
|
+
import _inheritsLoose from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
3
3
|
import PropTypes from "../../../../prop-types@15.8.1/node_modules/prop-types/index.js";
|
|
4
4
|
import React__default from "react";
|
|
5
5
|
import ReactDOM__default from "react-dom";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const objectWithoutPropertiesLoose = require("../../../../@babel_runtime@7.
|
|
3
|
-
const _extends = require("../../../../@babel_runtime@7.
|
|
4
|
-
const assertThisInitialized = require("../../../../@babel_runtime@7.
|
|
5
|
-
const inheritsLoose = require("../../../../@babel_runtime@7.
|
|
2
|
+
const objectWithoutPropertiesLoose = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs");
|
|
3
|
+
const _extends = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.cjs");
|
|
4
|
+
const assertThisInitialized = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs");
|
|
5
|
+
const inheritsLoose = require("../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.cjs");
|
|
6
6
|
const index = require("../../../../prop-types@15.8.1/node_modules/prop-types/index.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const TransitionGroupContext = require("./TransitionGroupContext.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _objectWithoutPropertiesLoose from "../../../../@babel_runtime@7.
|
|
2
|
-
import _extends from "../../../../@babel_runtime@7.
|
|
3
|
-
import _assertThisInitialized from "../../../../@babel_runtime@7.
|
|
4
|
-
import _inheritsLoose from "../../../../@babel_runtime@7.
|
|
1
|
+
import _objectWithoutPropertiesLoose from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
|
+
import _extends from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
3
|
+
import _assertThisInitialized from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js";
|
|
4
|
+
import _inheritsLoose from "../../../../@babel_runtime@7.24.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
5
5
|
import PropTypes from "../../../../prop-types@15.8.1/node_modules/prop-types/index.js";
|
|
6
6
|
import React__default from "react";
|
|
7
7
|
import TransitionGroupContext from "./TransitionGroupContext.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidbcloud/uikit",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4",
|
|
4
4
|
"description": "tidbcloud uikit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/primitive/index.cjs",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"google-libphonenumber": "^3.2.30",
|
|
62
62
|
"lodash-es": "^4.17.21",
|
|
63
63
|
"mantine-react-table": "0.9.5",
|
|
64
|
-
"qs": "^6.11.2",
|
|
65
64
|
"rc-tree": "^5.8.2",
|
|
66
65
|
"react-hook-form": "^7.51.5",
|
|
67
66
|
"react-phone-input-2": "^2.15.1",
|
|
@@ -79,7 +78,6 @@
|
|
|
79
78
|
"@types/dompurify": "^2.3.4",
|
|
80
79
|
"@types/google-libphonenumber": "^7.4.23",
|
|
81
80
|
"@types/lodash-es": "^4.17.8",
|
|
82
|
-
"@types/qs": "^6.9.11",
|
|
83
81
|
"@types/react": "^18.2.48",
|
|
84
82
|
"@types/react-dom": "^18.2.18",
|
|
85
83
|
"@types/react-table": "^7.7.12",
|
|
@@ -114,6 +112,9 @@
|
|
|
114
112
|
"dist",
|
|
115
113
|
"CHANGELOG.md"
|
|
116
114
|
],
|
|
115
|
+
"publishConfig": {
|
|
116
|
+
"access": "public"
|
|
117
|
+
},
|
|
117
118
|
"scripts": {
|
|
118
119
|
"test": "test",
|
|
119
120
|
"copy:raw-icon": "mkdir -p ./dist/icons/raw && cpy 'src/icons/raw/*.svg' ./dist/icons/raw/",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
4
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for (var key in source) {
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
|
-
module.exports = _extends;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
3
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for (var key in source) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
_extends as default
|
|
17
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const setPrototypeOf = require("./setPrototypeOf.cjs");
|
|
3
|
-
function _inheritsLoose(subClass, superClass) {
|
|
4
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
5
|
-
subClass.prototype.constructor = subClass;
|
|
6
|
-
setPrototypeOf(subClass, superClass);
|
|
7
|
-
}
|
|
8
|
-
module.exports = _inheritsLoose;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _setPrototypeOf from "./setPrototypeOf.js";
|
|
2
|
-
function _inheritsLoose(subClass, superClass) {
|
|
3
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
4
|
-
subClass.prototype.constructor = subClass;
|
|
5
|
-
_setPrototypeOf(subClass, superClass);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
_inheritsLoose as default
|
|
9
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
3
|
-
if (source == null)
|
|
4
|
-
return {};
|
|
5
|
-
var target = {};
|
|
6
|
-
var sourceKeys = Object.keys(source);
|
|
7
|
-
var key, i;
|
|
8
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
9
|
-
key = sourceKeys[i];
|
|
10
|
-
if (excluded.indexOf(key) >= 0)
|
|
11
|
-
continue;
|
|
12
|
-
target[key] = source[key];
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
}
|
|
16
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2
|
-
if (source == null)
|
|
3
|
-
return {};
|
|
4
|
-
var target = {};
|
|
5
|
-
var sourceKeys = Object.keys(source);
|
|
6
|
-
var key, i;
|
|
7
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
8
|
-
key = sourceKeys[i];
|
|
9
|
-
if (excluded.indexOf(key) >= 0)
|
|
10
|
-
continue;
|
|
11
|
-
target[key] = source[key];
|
|
12
|
-
}
|
|
13
|
-
return target;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
_objectWithoutPropertiesLoose as default
|
|
17
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function _setPrototypeOf(o, p) {
|
|
3
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
4
|
-
o2.__proto__ = p2;
|
|
5
|
-
return o2;
|
|
6
|
-
};
|
|
7
|
-
return _setPrototypeOf(o, p);
|
|
8
|
-
}
|
|
9
|
-
module.exports = _setPrototypeOf;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function _setPrototypeOf(o, p) {
|
|
2
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
3
|
-
o2.__proto__ = p2;
|
|
4
|
-
return o2;
|
|
5
|
-
};
|
|
6
|
-
return _setPrototypeOf(o, p);
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
_setPrototypeOf as default
|
|
10
|
-
};
|